Global Metrics
path: .metrics.nexits.average
old: 3.8
new: 0.6
path: .metrics.nexits.sum
old: 19.0
new: 6.0
path: .metrics.halstead.purity_ratio
old: 1.254230171244444
new: 1.0191297331083444
path: .metrics.halstead.n1
old: 38.0
new: 9.0
path: .metrics.halstead.length
old: 8369.0
new: 340.0
path: .metrics.halstead.vocabulary
old: 1067.0
new: 64.0
path: .metrics.halstead.bugs
old: 10.804281892636867
new: 0.27244829654721753
path: .metrics.halstead.volume
old: 84186.65379263961
new: 2040.0
path: .metrics.halstead.n2
old: 1029.0
new: 55.0
path: .metrics.halstead.difficulty
old: 69.31584062196308
new: 11.454545454545457
path: .metrics.halstead.effort
old: 5835468.676786991
new: 23367.272727272728
path: .metrics.halstead.N1
old: 4615.0
new: 200.0
path: .metrics.halstead.level
old: 0.014426716765274933
new: 0.0873015873015873
path: .metrics.halstead.time
old: 324192.70426594396
new: 1298.1818181818182
path: .metrics.halstead.N2
old: 3754.0
new: 140.0
path: .metrics.halstead.estimated_program_length
old: 10496.65230314475
new: 346.50410925683707
path: .metrics.loc.cloc
old: 22.0
new: 276.0
path: .metrics.loc.blank
old: 0.0
new: 27.0
path: .metrics.loc.sloc
old: 115.0
new: 392.0
path: .metrics.loc.lloc
old: 418.0
new: 13.0
path: .metrics.loc.ploc
old: 1427.0
new: 89.0
path: .metrics.mi.mi_original
old: -13.37001722401969
new: 23.367891743835543
path: .metrics.mi.mi_sei
old: -42.159792721339
new: 11.177921905990928
path: .metrics.mi.mi_visual_studio
old: 0.0
new: 13.66543376832488
path: .metrics.nom.functions
old: 5.0
new: 10.0
path: .metrics.nom.total
old: 5.0
new: 10.0
path: .metrics.cognitive.sum
old: 192.0
new: 0.0
path: .metrics.cognitive.average
old: 38.4
new: 0.0
path: .metrics.nargs.sum
old: 5.0
new: 11.0
path: .metrics.nargs.average
old: 1.0
new: 1.1
path: .metrics.cyclomatic.average
old: 3.3492063492063493
new: 1.0
path: .metrics.cyclomatic.sum
old: 211.0
new: 49.0
Spaces Data
Minimal test - lines (123, 123)
path: .spaces[4].metrics.loc.ploc
old: 47.0
new: 1.0
path: .spaces[4].metrics.loc.lloc
old: 22.0
new: 0.0
path: .spaces[4].metrics.loc.blank
old: 1.0
new: 0.0
path: .spaces[4].metrics.loc.cloc
old: 1.0
new: 0.0
path: .spaces[4].metrics.loc.sloc
old: 49.0
new: 1.0
path: .spaces[4].metrics.cyclomatic.average
old: 2.0
new: 1.0
path: .spaces[4].metrics.cyclomatic.sum
old: 12.0
new: 1.0
path: .spaces[4].metrics.halstead.N1
old: 95.0
new: 0.0
path: .spaces[4].metrics.halstead.purity_ratio
old: 1.5687493301943818
new: null
path: .spaces[4].metrics.halstead.bugs
old: 0.2137452265751653
new: 0.0
path: .spaces[4].metrics.halstead.level
old: 0.05344827586206896
new: null
path: .spaces[4].metrics.halstead.difficulty
old: 18.70967741935484
new: 0.0
path: .spaces[4].metrics.halstead.length
old: 153.0
new: 1.0
path: .spaces[4].metrics.halstead.n2
old: 31.0
new: 1.0
path: .spaces[4].metrics.halstead.vocabulary
old: 51.0
new: 1.0
path: .spaces[4].metrics.halstead.effort
old: 16237.774995050017
new: 0.0
path: .spaces[4].metrics.halstead.time
old: 902.098610836112
new: 0.0
path: .spaces[4].metrics.halstead.estimated_program_length
old: 240.0186475197404
new: null
path: .spaces[4].metrics.halstead.n1
old: 20.0
new: 0.0
path: .spaces[4].metrics.halstead.N2
old: 58.0
new: 1.0
path: .spaces[4].metrics.halstead.volume
old: 867.8810773216387
new: 0.0
path: .spaces[4].metrics.cognitive.average
old: 7.0
new: null
path: .spaces[4].metrics.cognitive.sum
old: 7.0
new: 0.0
path: .spaces[4].metrics.nargs.average
old: 1.0
new: null
path: .spaces[4].metrics.nargs.sum
old: 1.0
new: 0.0
path: .spaces[4].metrics.mi.mi_sei
old: 37.4982177144172
new: null
path: .spaces[4].metrics.mi.mi_visual_studio
old: 40.94095131180819
new: null
path: .spaces[4].metrics.mi.mi_original
old: 70.00902674319201
new: null
path: .spaces[4].metrics.nom.functions
old: 1.0
new: 0.0
path: .spaces[4].metrics.nom.total
old: 1.0
new: 0.0
path: .spaces[4].metrics.nexits.sum
old: 2.0
new: 0.0
path: .spaces[4].metrics.nexits.average
old: 2.0
new: null
Code
extern const struct wl_interface zxdg_output_v1_interface;
Minimal test - lines (162, 168)
path: .spaces[8].metrics.nom.total
old: 0.0
new: 1.0
path: .spaces[8].metrics.nom.functions
old: 0.0
new: 1.0
path: .spaces[8].metrics.cyclomatic.sum
old: 1.0
new: 4.0
path: .spaces[8].metrics.mi.mi_original
old: null
new: 115.612595989948
path: .spaces[8].metrics.mi.mi_sei
old: null
new: 91.50014634460234
path: .spaces[8].metrics.mi.mi_visual_studio
old: null
new: 67.60970525727953
path: .spaces[8].metrics.nargs.average
old: null
new: 1.0
path: .spaces[8].metrics.nargs.sum
old: 0.0
new: 1.0
path: .spaces[8].metrics.halstead.estimated_program_length
old: null
new: 31.019550008653873
path: .spaces[8].metrics.halstead.purity_ratio
old: null
new: 1.348676087332777
path: .spaces[8].metrics.halstead.volume
old: 0.0
new: 82.45413751658658
path: .spaces[8].metrics.halstead.difficulty
old: 0.0
new: 5.0
path: .spaces[8].metrics.halstead.time
old: 0.0
new: 22.903927087940716
path: .spaces[8].metrics.halstead.level
old: null
new: 0.2
path: .spaces[8].metrics.halstead.vocabulary
old: 1.0
new: 12.0
path: .spaces[8].metrics.halstead.N2
old: 1.0
new: 10.0
path: .spaces[8].metrics.halstead.effort
old: 0.0
new: 412.2706875829329
path: .spaces[8].metrics.halstead.length
old: 1.0
new: 23.0
path: .spaces[8].metrics.halstead.n1
old: 0.0
new: 6.0
path: .spaces[8].metrics.halstead.n2
old: 1.0
new: 6.0
path: .spaces[8].metrics.halstead.N1
old: 0.0
new: 13.0
path: .spaces[8].metrics.halstead.bugs
old: 0.0
new: 0.018464336956543932
path: .spaces[8].metrics.nexits.average
old: null
new: 0.0
path: .spaces[8].metrics.loc.sloc
old: 1.0
new: 7.0
path: .spaces[8].metrics.loc.lloc
old: 0.0
new: 2.0
path: .spaces[8].metrics.loc.ploc
old: 1.0
new: 6.0
path: .spaces[8].metrics.loc.blank
old: 0.0
new: 1.0
path: .spaces[8].metrics.cognitive.average
old: null
new: 0.0
Code
static inline void zxdg_output_manager_v1_destroy(
struct zxdg_output_manager_v1* zxdg_output_manager_v1) {
wl_proxy_marshal((struct wl_proxy*)zxdg_output_manager_v1,
ZXDG_OUTPUT_MANAGER_V1_DESTROY);
wl_proxy_destroy((struct wl_proxy*)zxdg_output_manager_v1);
}
Minimal test - lines (191, 318)
path: .spaces[10].metrics.halstead.bugs
old: 0.0
new: 0.06055912500420872
path: .spaces[10].metrics.halstead.vocabulary
old: 1.0
new: 18.0
path: .spaces[10].metrics.halstead.volume
old: 0.0
new: 362.7834751254812
path: .spaces[10].metrics.halstead.time
old: 0.0
new: 136.04380317205542
path: .spaces[10].metrics.halstead.N2
old: 1.0
new: 27.0
path: .spaces[10].metrics.halstead.N1
old: 0.0
new: 60.0
path: .spaces[10].metrics.halstead.estimated_program_length
old: null
new: 58.529325012980806
path: .spaces[10].metrics.halstead.effort
old: 0.0
new: 2448.7884570969977
path: .spaces[10].metrics.halstead.level
old: null
new: 0.14814814814814814
path: .spaces[10].metrics.halstead.n2
old: 1.0
new: 12.0
path: .spaces[10].metrics.halstead.difficulty
old: 0.0
new: 6.75
path: .spaces[10].metrics.halstead.length
old: 1.0
new: 87.0
path: .spaces[10].metrics.halstead.n1
old: 0.0
new: 6.0
path: .spaces[10].metrics.halstead.purity_ratio
old: null
new: 0.6727508622181702
path: .spaces[10].metrics.mi.mi_visual_studio
old: null
new: 35.30369452953509
path: .spaces[10].metrics.mi.mi_original
old: null
new: 60.36931764550501
path: .spaces[10].metrics.mi.mi_sei
old: null
new: 61.8037216645332
path: .spaces[10].metrics.loc.sloc
old: 1.0
new: 128.0
path: .spaces[10].metrics.loc.cloc
old: 0.0
new: 117.0
path: .spaces[10].metrics.loc.ploc
old: 1.0
new: 11.0
path: .spaces[10].metrics.cyclomatic.sum
old: 1.0
new: 6.0
Code
struct zxdg_output_v1_listener {
/**
* position of the output within the global compositor space
*
* The position event describes the location of the wl_output
* within the global compositor space.
*
* The logical_position event is sent after creating an xdg_output
* (see xdg_output_manager.get_xdg_output) and whenever the
* location of the output changes within the global compositor
* space.
* @param x x position within the global compositor space
* @param y y position within the global compositor space
*/
void (*logical_position)(void* data, struct zxdg_output_v1* zxdg_output_v1,
int32_t x, int32_t y);
/**
* size of the output in the global compositor space
*
* The logical_size event describes the size of the output in the
* global compositor space.
*
* For example, a surface without any buffer scale, transformation
* nor rotation set, with the size matching the logical_size will
* have the same size as the corresponding output when displayed.
*
* Most regular Wayland clients should not pay attention to the
* logical size and would rather rely on xdg_shell interfaces.
*
* Some clients such as Xwayland, however, need this to configure
* their surfaces in the global compositor space as the compositor
* may apply a different scale from what is advertised by the
* output scaling property (to achieve fractional scaling, for
* example).
*
* For example, for a wl_output mode 3840×2160 and a scale factor
* 2:
*
* - A compositor not scaling the surface buffers will advertise a
* logical size of 3840×2160,
*
* - A compositor automatically scaling the surface buffers will
* advertise a logical size of 1920×1080,
*
* - A compositor using a fractional scale of 1.5 will advertise a
* logical size to 2560×1620.
*
* For example, for a wl_output mode 1920×1080 and a 90 degree
* rotation, the compositor will advertise a logical size of
* 1080x1920.
*
* The logical_size event is sent after creating an xdg_output (see
* xdg_output_manager.get_xdg_output) and whenever the logical size
* of the output changes, either as a result of a change in the
* applied scale or because of a change in the corresponding output
* mode(see wl_output.mode) or transform (see wl_output.transform).
* @param width width in global compositor space
* @param height height in global compositor space
*/
void (*logical_size)(void* data, struct zxdg_output_v1* zxdg_output_v1,
int32_t width, int32_t height);
/**
* all information about the output have been sent
*
* This event is sent after all other properties of an xdg_output
* have been sent.
*
* This allows changes to the xdg_output properties to be seen as
* atomic, even if they happen via multiple events.
*
* For objects version 3 onwards, this event is deprecated.
* Compositors are not required to send it anymore and must send
* wl_output.done instead.
*/
void (*done)(void* data, struct zxdg_output_v1* zxdg_output_v1);
/**
* name of this output
*
* Many compositors will assign names to their outputs, show them
* to the user, allow them to be configured by name, etc. The
* client may wish to know this name as well to offer the user
* similar behaviors.
*
* The naming convention is compositor defined, but limited to
* alphanumeric characters and dashes (-). Each name is unique
* among all wl_output globals, but if a wl_output global is
* destroyed the same name may be reused later. The names will also
* remain consistent across sessions with the same hardware and
* software configuration.
*
* Examples of names include 'HDMI-A-1', 'WL-1', 'X11-1', etc.
* However, do not assume that the name is a reflection of an
* underlying DRM connector, X11 connection, etc.
*
* The name event is sent after creating an xdg_output (see
* xdg_output_manager.get_xdg_output). This event is only sent once
* per xdg_output, and the name does not change over the lifetime
* of the wl_output global.
* @param name output name
* @since 2
*/
void (*name)(void* data, struct zxdg_output_v1* zxdg_output_v1,
const char* name);
/**
* human-readable description of this output
*
* Many compositors can produce human-readable descriptions of
* their outputs. The client may wish to know this description as
* well, to communicate the user for various purposes.
*
* The description is a UTF-8 string with no convention defined for
* its contents. Examples might include 'Foocorp 11" Display' or
* 'Virtual X11 output via :1'.
*
* The description event is sent after creating an xdg_output (see
* xdg_output_manager.get_xdg_output) and whenever the description
* changes. The description is optional, and may not be sent at
* all.
*
* For objects of version 2 and lower, this event is only sent once
* per xdg_output, and the description does not change over the
* lifetime of the wl_output global.
* @param description output description
* @since 2
*/
void (*description)(void* data, struct zxdg_output_v1* zxdg_output_v1,
const char* description);
};
Minimal test - lines (93, 93)
path: .spaces[3].metrics.nom.total
old: 1.0
new: 0.0
path: .spaces[3].metrics.nom.functions
old: 1.0
new: 0.0
path: .spaces[3].metrics.cognitive.sum
old: 1.0
new: 0.0
path: .spaces[3].metrics.cognitive.average
old: 1.0
new: null
path: .spaces[3].metrics.cyclomatic.sum
old: 2.0
new: 1.0
path: .spaces[3].metrics.cyclomatic.average
old: 2.0
new: 1.0
path: .spaces[3].metrics.loc.lloc
old: 3.0
new: 0.0
path: .spaces[3].metrics.loc.ploc
old: 10.0
new: 1.0
path: .spaces[3].metrics.loc.sloc
old: 10.0
new: 1.0
path: .spaces[3].metrics.nexits.average
old: 0.0
new: null
path: .spaces[3].metrics.mi.mi_sei
old: 81.50321081486506
new: null
path: .spaces[3].metrics.mi.mi_original
old: 108.82440061021347
new: null
path: .spaces[3].metrics.mi.mi_visual_studio
old: 63.640000356849995
new: null
path: .spaces[3].metrics.nargs.average
old: 0.0
new: null
path: .spaces[3].metrics.halstead.N1
old: 16.0
new: 0.0
path: .spaces[3].metrics.halstead.level
old: 0.14583333333333334
new: null
path: .spaces[3].metrics.halstead.time
old: 41.673499686490864
new: 0.0
path: .spaces[3].metrics.halstead.vocabulary
old: 15.0
new: 1.0
path: .spaces[3].metrics.halstead.volume
old: 109.39293667703852
new: 0.0
path: .spaces[3].metrics.halstead.N2
old: 12.0
new: 1.0
path: .spaces[3].metrics.halstead.purity_ratio
old: 1.5589815876572584
new: null
path: .spaces[3].metrics.halstead.n2
old: 7.0
new: 1.0
path: .spaces[3].metrics.halstead.difficulty
old: 6.857142857142857
new: 0.0
path: .spaces[3].metrics.halstead.estimated_program_length
old: 43.65148445440323
new: null
path: .spaces[3].metrics.halstead.effort
old: 750.1229943568355
new: 0.0
path: .spaces[3].metrics.halstead.n1
old: 8.0
new: 0.0
path: .spaces[3].metrics.halstead.bugs
old: 0.027519068609818505
new: 0.0
path: .spaces[3].metrics.halstead.length
old: 28.0
new: 1.0
Code
extern const struct wl_interface zxdg_output_manager_v1_interface;
Minimal test - lines (175, 185)
path: .spaces[9].metrics.mi.mi_visual_studio
old: null
new: 60.725427529084456
path: .spaces[9].metrics.mi.mi_original
old: null
new: 103.8404810747344
path: .spaces[9].metrics.mi.mi_sei
old: null
new: 74.82203411386213
path: .spaces[9].metrics.cyclomatic.sum
old: 1.0
new: 7.0
path: .spaces[9].metrics.nargs.average
old: null
new: 0.0
path: .spaces[9].metrics.nexits.sum
old: 0.0
new: 1.0
path: .spaces[9].metrics.nexits.average
old: null
new: 1.0
path: .spaces[9].metrics.cognitive.average
old: null
new: 0.0
path: .spaces[9].metrics.nom.functions
old: 0.0
new: 1.0
path: .spaces[9].metrics.nom.total
old: 0.0
new: 1.0
path: .spaces[9].metrics.loc.sloc
old: 1.0
new: 11.0
path: .spaces[9].metrics.loc.blank
old: 0.0
new: 2.0
path: .spaces[9].metrics.loc.lloc
old: 0.0
new: 2.0
path: .spaces[9].metrics.loc.ploc
old: 1.0
new: 9.0
path: .spaces[9].metrics.halstead.difficulty
old: 0.0
new: 6.545454545454546
path: .spaces[9].metrics.halstead.bugs
old: 0.0
new: 0.03578189568206679
path: .spaces[9].metrics.halstead.estimated_program_length
old: null
new: 62.05374780501027
path: .spaces[9].metrics.halstead.N2
old: 1.0
new: 18.0
path: .spaces[9].metrics.halstead.volume
old: 0.0
new: 169.9171005377434
path: .spaces[9].metrics.halstead.time
old: 0.0
new: 61.78803655917942
path: .spaces[9].metrics.halstead.vocabulary
old: 1.0
new: 19.0
path: .spaces[9].metrics.halstead.n1
old: 0.0
new: 8.0
path: .spaces[9].metrics.halstead.N1
old: 0.0
new: 22.0
path: .spaces[9].metrics.halstead.effort
old: 0.0
new: 1112.1846580652295
path: .spaces[9].metrics.halstead.length
old: 1.0
new: 40.0
path: .spaces[9].metrics.halstead.n2
old: 1.0
new: 11.0
path: .spaces[9].metrics.halstead.purity_ratio
old: null
new: 1.5513436951252566
path: .spaces[9].metrics.halstead.level
old: null
new: 0.15277777777777776
Code
static inline struct zxdg_output_v1* zxdg_output_manager_v1_get_xdg_output(
struct zxdg_output_manager_v1* zxdg_output_manager_v1,
struct wl_output* output) {
struct wl_proxy* id;
id = wl_proxy_marshal_constructor((struct wl_proxy*)zxdg_output_manager_v1,
ZXDG_OUTPUT_MANAGER_V1_GET_XDG_OUTPUT,
&zxdg_output_v1_interface, NULL, output);
return (struct zxdg_output_v1*)id;
}
Minimal test - lines (149, 152)
path: .spaces[7].metrics.mi.mi_original
old: null
new: 127.52733440181224
path: .spaces[7].metrics.mi.mi_visual_studio
old: null
new: 74.57738853907149
path: .spaces[7].metrics.mi.mi_sei
old: null
new: 108.58766050548368
path: .spaces[7].metrics.cognitive.average
old: null
new: 0.0
path: .spaces[7].metrics.halstead.difficulty
old: 0.0
new: 4.5
path: .spaces[7].metrics.halstead.n2
old: 1.0
new: 4.0
path: .spaces[7].metrics.halstead.n1
old: 0.0
new: 6.0
path: .spaces[7].metrics.halstead.vocabulary
old: 1.0
new: 10.0
path: .spaces[7].metrics.halstead.volume
old: 0.0
new: 49.82892142331043
path: .spaces[7].metrics.halstead.effort
old: 0.0
new: 224.23014640489697
path: .spaces[7].metrics.halstead.estimated_program_length
old: null
new: 23.509775004326936
path: .spaces[7].metrics.halstead.bugs
old: 0.0
new: 0.012302916570267969
path: .spaces[7].metrics.halstead.N1
old: 0.0
new: 9.0
path: .spaces[7].metrics.halstead.level
old: null
new: 0.2222222222222222
path: .spaces[7].metrics.halstead.purity_ratio
old: null
new: 1.5673183336217955
path: .spaces[7].metrics.halstead.time
old: 0.0
new: 12.457230355827608
path: .spaces[7].metrics.halstead.length
old: 1.0
new: 15.0
path: .spaces[7].metrics.halstead.N2
old: 1.0
new: 6.0
path: .spaces[7].metrics.nargs.average
old: null
new: 1.0
path: .spaces[7].metrics.nargs.sum
old: 0.0
new: 1.0
path: .spaces[7].metrics.cyclomatic.sum
old: 1.0
new: 3.0
path: .spaces[7].metrics.nom.total
old: 0.0
new: 1.0
path: .spaces[7].metrics.nom.functions
old: 0.0
new: 1.0
path: .spaces[7].metrics.loc.lloc
old: 0.0
new: 1.0
path: .spaces[7].metrics.loc.ploc
old: 1.0
new: 4.0
path: .spaces[7].metrics.loc.sloc
old: 1.0
new: 4.0
path: .spaces[7].metrics.nexits.average
old: null
new: 1.0
path: .spaces[7].metrics.nexits.sum
old: 0.0
new: 1.0
Code
static inline uint32_t zxdg_output_manager_v1_get_version(
struct zxdg_output_manager_v1* zxdg_output_manager_v1) {
return wl_proxy_get_version((struct wl_proxy*)zxdg_output_manager_v1);
}
Minimal test - lines (359, 362)
path: .spaces[12].metrics.nargs.sum
old: 0.0
new: 2.0
path: .spaces[12].metrics.nargs.average
old: null
new: 2.0
path: .spaces[12].metrics.nexits.average
old: null
new: 0.0
path: .spaces[12].metrics.cognitive.average
old: null
new: 0.0
path: .spaces[12].metrics.nom.functions
old: 0.0
new: 1.0
path: .spaces[12].metrics.nom.total
old: 0.0
new: 1.0
path: .spaces[12].metrics.halstead.difficulty
old: 0.0
new: 4.8
path: .spaces[12].metrics.halstead.length
old: 1.0
new: 20.0
path: .spaces[12].metrics.halstead.estimated_program_length
old: null
new: 27.11941547876375
path: .spaces[12].metrics.halstead.vocabulary
old: 1.0
new: 11.0
path: .spaces[12].metrics.halstead.purity_ratio
old: null
new: 1.3559707739381874
path: .spaces[12].metrics.halstead.N1
old: 0.0
new: 12.0
path: .spaces[12].metrics.halstead.volume
old: 0.0
new: 69.18863237274594
path: .spaces[12].metrics.halstead.n1
old: 0.0
new: 6.0
path: .spaces[12].metrics.halstead.N2
old: 1.0
new: 8.0
path: .spaces[12].metrics.halstead.bugs
old: 0.0
new: 0.015985616907190494
path: .spaces[12].metrics.halstead.level
old: null
new: 0.20833333333333337
path: .spaces[12].metrics.halstead.n2
old: 1.0
new: 5.0
path: .spaces[12].metrics.halstead.effort
old: 0.0
new: 332.1054353891805
path: .spaces[12].metrics.halstead.time
old: 0.0
new: 18.450301966065584
path: .spaces[12].metrics.loc.lloc
old: 0.0
new: 1.0
path: .spaces[12].metrics.loc.sloc
old: 1.0
new: 4.0
path: .spaces[12].metrics.loc.ploc
old: 1.0
new: 4.0
path: .spaces[12].metrics.cyclomatic.sum
old: 1.0
new: 3.0
path: .spaces[12].metrics.mi.mi_original
old: null
new: 125.8204811491492
path: .spaces[12].metrics.mi.mi_sei
old: null
new: 106.12519178234146
path: .spaces[12].metrics.mi.mi_visual_studio
old: null
new: 73.57922874219251
Code
static inline void zxdg_output_v1_set_user_data(
struct zxdg_output_v1* zxdg_output_v1, void* user_data) {
wl_proxy_set_user_data((struct wl_proxy*)zxdg_output_v1, user_data);
}
Minimal test - lines (144, 147)
path: .spaces[6].metrics.nom.total
old: 0.0
new: 1.0
path: .spaces[6].metrics.nom.functions
old: 0.0
new: 1.0
path: .spaces[6].metrics.cyclomatic.sum
old: 1.0
new: 3.0
path: .spaces[6].metrics.mi.mi_visual_studio
old: null
new: 74.38113104789292
path: .spaces[6].metrics.mi.mi_sei
old: null
new: 108.10349160264798
path: .spaces[6].metrics.mi.mi_original
old: null
new: 127.1917340918969
path: .spaces[6].metrics.cognitive.average
old: null
new: 0.0
path: .spaces[6].metrics.halstead.N2
old: 1.0
new: 6.0
path: .spaces[6].metrics.halstead.effort
old: 0.0
new: 239.17882283189007
path: .spaces[6].metrics.halstead.purity_ratio
old: null
new: 1.4693609377704335
path: .spaces[6].metrics.halstead.estimated_program_length
old: null
new: 23.509775004326936
path: .spaces[6].metrics.halstead.time
old: 0.0
new: 13.287712379549449
path: .spaces[6].metrics.halstead.bugs
old: 0.0
new: 0.012843810659451275
path: .spaces[6].metrics.halstead.volume
old: 0.0
new: 53.150849518197795
path: .spaces[6].metrics.halstead.n2
old: 1.0
new: 4.0
path: .spaces[6].metrics.halstead.level
old: null
new: 0.2222222222222222
path: .spaces[6].metrics.halstead.N1
old: 0.0
new: 10.0
path: .spaces[6].metrics.halstead.length
old: 1.0
new: 16.0
path: .spaces[6].metrics.halstead.n1
old: 0.0
new: 6.0
path: .spaces[6].metrics.halstead.difficulty
old: 0.0
new: 4.5
path: .spaces[6].metrics.halstead.vocabulary
old: 1.0
new: 10.0
path: .spaces[6].metrics.nexits.sum
old: 0.0
new: 1.0
path: .spaces[6].metrics.nexits.average
old: null
new: 1.0
path: .spaces[6].metrics.nargs.average
old: null
new: 0.0
path: .spaces[6].metrics.loc.lloc
old: 0.0
new: 1.0
path: .spaces[6].metrics.loc.ploc
old: 1.0
new: 4.0
path: .spaces[6].metrics.loc.sloc
old: 1.0
new: 4.0
Code
static inline void* zxdg_output_manager_v1_get_user_data(
struct zxdg_output_manager_v1* zxdg_output_manager_v1) {
return wl_proxy_get_user_data((struct wl_proxy*)zxdg_output_manager_v1);
}
Minimal test - lines (138, 141)
path: .spaces[5].metrics.cognitive.average
old: 85.0
new: 0.0
path: .spaces[5].metrics.cognitive.sum
old: 85.0
new: 0.0
path: .spaces[5].metrics.halstead.N1
old: 484.0
new: 12.0
path: .spaces[5].metrics.halstead.effort
old: 216704.2126103834
new: 332.1054353891805
path: .spaces[5].metrics.halstead.N2
old: 288.0
new: 8.0
path: .spaces[5].metrics.halstead.bugs
old: 1.2026067796778477
new: 0.015985616907190494
path: .spaces[5].metrics.halstead.purity_ratio
old: 0.8279370114237079
new: 1.3559707739381874
path: .spaces[5].metrics.halstead.difficulty
old: 41.63855421686747
new: 4.8
path: .spaces[5].metrics.halstead.n1
old: 24.0
new: 6.0
path: .spaces[5].metrics.halstead.time
old: 12039.122922799075
new: 18.450301966065584
path: .spaces[5].metrics.halstead.volume
old: 5204.412513501685
new: 69.18863237274594
path: .spaces[5].metrics.halstead.n2
old: 83.0
new: 5.0
path: .spaces[5].metrics.halstead.length
old: 772.0
new: 20.0
path: .spaces[5].metrics.halstead.level
old: 0.024016203703703703
new: 0.20833333333333337
path: .spaces[5].metrics.halstead.vocabulary
old: 107.0
new: 11.0
path: .spaces[5].metrics.halstead.estimated_program_length
old: 639.1673728191025
new: 27.11941547876375
path: .spaces[5].metrics.loc.sloc
old: 183.0
new: 4.0
path: .spaces[5].metrics.loc.lloc
old: 102.0
new: 1.0
path: .spaces[5].metrics.loc.cloc
old: 10.0
new: 0.0
path: .spaces[5].metrics.loc.blank
old: 5.0
new: 0.0
path: .spaces[5].metrics.loc.ploc
old: 168.0
new: 4.0
path: .spaces[5].metrics.nargs.average
old: 3.0
new: 2.0
path: .spaces[5].metrics.nargs.sum
old: 3.0
new: 2.0
path: .spaces[5].metrics.mi.mi_sei
old: -8.737087566832628
new: 106.12519178234146
path: .spaces[5].metrics.mi.mi_visual_studio
old: 17.899743495783184
new: 73.57922874219251
path: .spaces[5].metrics.mi.mi_original
old: 30.608561377789243
new: 125.8204811491492
path: .spaces[5].metrics.cyclomatic.average
old: 2.9411764705882355
new: 1.0
path: .spaces[5].metrics.cyclomatic.sum
old: 50.0
new: 3.0
path: .spaces[5].metrics.nexits.sum
old: 5.0
new: 0.0
path: .spaces[5].metrics.nexits.average
old: 5.0
new: 0.0
Code
static inline void zxdg_output_manager_v1_set_user_data(
struct zxdg_output_manager_v1* zxdg_output_manager_v1, void* user_data) {
wl_proxy_set_user_data((struct wl_proxy*)zxdg_output_manager_v1, user_data);
}
Minimal test - lines (365, 368)
path: .spaces[13].metrics.loc.sloc
old: 1.0
new: 4.0
path: .spaces[13].metrics.loc.ploc
old: 1.0
new: 4.0
path: .spaces[13].metrics.loc.lloc
old: 0.0
new: 1.0
path: .spaces[13].metrics.nexits.sum
old: 0.0
new: 1.0
path: .spaces[13].metrics.nexits.average
old: null
new: 1.0
path: .spaces[13].metrics.nargs.average
old: null
new: 0.0
path: .spaces[13].metrics.halstead.time
old: 0.0
new: 13.287712379549449
path: .spaces[13].metrics.halstead.N2
old: 1.0
new: 6.0
path: .spaces[13].metrics.halstead.length
old: 1.0
new: 16.0
path: .spaces[13].metrics.halstead.level
old: null
new: 0.2222222222222222
path: .spaces[13].metrics.halstead.difficulty
old: 0.0
new: 4.5
path: .spaces[13].metrics.halstead.bugs
old: 0.0
new: 0.012843810659451275
path: .spaces[13].metrics.halstead.volume
old: 0.0
new: 53.150849518197795
path: .spaces[13].metrics.halstead.estimated_program_length
old: null
new: 23.509775004326936
path: .spaces[13].metrics.halstead.n2
old: 1.0
new: 4.0
path: .spaces[13].metrics.halstead.effort
old: 0.0
new: 239.17882283189007
path: .spaces[13].metrics.halstead.vocabulary
old: 1.0
new: 10.0
path: .spaces[13].metrics.halstead.purity_ratio
old: null
new: 1.4693609377704335
path: .spaces[13].metrics.halstead.N1
old: 0.0
new: 10.0
path: .spaces[13].metrics.halstead.n1
old: 0.0
new: 6.0
path: .spaces[13].metrics.cognitive.average
old: null
new: 0.0
path: .spaces[13].metrics.cyclomatic.sum
old: 1.0
new: 3.0
path: .spaces[13].metrics.mi.mi_visual_studio
old: null
new: 74.38113104789292
path: .spaces[13].metrics.mi.mi_original
old: null
new: 127.1917340918969
path: .spaces[13].metrics.mi.mi_sei
old: null
new: 108.10349160264798
path: .spaces[13].metrics.nom.total
old: 0.0
new: 1.0
path: .spaces[13].metrics.nom.functions
old: 0.0
new: 1.0
Code
static inline void* zxdg_output_v1_get_user_data(
struct zxdg_output_v1* zxdg_output_v1) {
return wl_proxy_get_user_data((struct wl_proxy*)zxdg_output_v1);
}
Minimal test - lines (370, 373)
path: .spaces[14].metrics.cognitive.average
old: null
new: 0.0
path: .spaces[14].metrics.mi.mi_visual_studio
old: null
new: 74.57738853907149
path: .spaces[14].metrics.mi.mi_sei
old: null
new: 108.58766050548368
path: .spaces[14].metrics.mi.mi_original
old: null
new: 127.52733440181224
path: .spaces[14].metrics.nom.total
old: 0.0
new: 1.0
path: .spaces[14].metrics.nom.functions
old: 0.0
new: 1.0
path: .spaces[14].metrics.loc.lloc
old: 0.0
new: 1.0
path: .spaces[14].metrics.loc.ploc
old: 1.0
new: 4.0
path: .spaces[14].metrics.loc.sloc
old: 1.0
new: 4.0
path: .spaces[14].metrics.cyclomatic.sum
old: 1.0
new: 3.0
path: .spaces[14].metrics.halstead.n2
old: 1.0
new: 4.0
path: .spaces[14].metrics.halstead.N2
old: 1.0
new: 6.0
path: .spaces[14].metrics.halstead.length
old: 1.0
new: 15.0
path: .spaces[14].metrics.halstead.N1
old: 0.0
new: 9.0
path: .spaces[14].metrics.halstead.level
old: null
new: 0.2222222222222222
path: .spaces[14].metrics.halstead.time
old: 0.0
new: 12.457230355827608
path: .spaces[14].metrics.halstead.vocabulary
old: 1.0
new: 10.0
path: .spaces[14].metrics.halstead.difficulty
old: 0.0
new: 4.5
path: .spaces[14].metrics.halstead.n1
old: 0.0
new: 6.0
path: .spaces[14].metrics.halstead.purity_ratio
old: null
new: 1.5673183336217955
path: .spaces[14].metrics.halstead.volume
old: 0.0
new: 49.82892142331043
path: .spaces[14].metrics.halstead.bugs
old: 0.0
new: 0.012302916570267969
path: .spaces[14].metrics.halstead.estimated_program_length
old: null
new: 23.509775004326936
path: .spaces[14].metrics.halstead.effort
old: 0.0
new: 224.23014640489697
path: .spaces[14].metrics.nexits.sum
old: 0.0
new: 1.0
path: .spaces[14].metrics.nexits.average
old: null
new: 1.0
path: .spaces[14].metrics.nargs.sum
old: 0.0
new: 1.0
path: .spaces[14].metrics.nargs.average
old: null
new: 1.0
Code
static inline uint32_t zxdg_output_v1_get_version(
struct zxdg_output_v1* zxdg_output_v1) {
return wl_proxy_get_version((struct wl_proxy*)zxdg_output_v1);
}
Minimal test - lines (381, 386)
path: .spaces[15].metrics.loc.blank
old: 0.0
new: 1.0
path: .spaces[15].metrics.loc.sloc
old: 1.0
new: 6.0
path: .spaces[15].metrics.loc.lloc
old: 0.0
new: 2.0
path: .spaces[15].metrics.loc.ploc
old: 1.0
new: 5.0
path: .spaces[15].metrics.nom.total
old: 0.0
new: 1.0
path: .spaces[15].metrics.nom.functions
old: 0.0
new: 1.0
path: .spaces[15].metrics.halstead.time
old: 0.0
new: 22.903927087940716
path: .spaces[15].metrics.halstead.n2
old: 1.0
new: 6.0
path: .spaces[15].metrics.halstead.purity_ratio
old: null
new: 1.348676087332777
path: .spaces[15].metrics.halstead.bugs
old: 0.0
new: 0.018464336956543932
path: .spaces[15].metrics.halstead.N1
old: 0.0
new: 13.0
path: .spaces[15].metrics.halstead.vocabulary
old: 1.0
new: 12.0
path: .spaces[15].metrics.halstead.volume
old: 0.0
new: 82.45413751658658
path: .spaces[15].metrics.halstead.N2
old: 1.0
new: 10.0
path: .spaces[15].metrics.halstead.estimated_program_length
old: null
new: 31.019550008653873
path: .spaces[15].metrics.halstead.difficulty
old: 0.0
new: 5.0
path: .spaces[15].metrics.halstead.level
old: null
new: 0.2
path: .spaces[15].metrics.halstead.effort
old: 0.0
new: 412.2706875829329
path: .spaces[15].metrics.halstead.n1
old: 0.0
new: 6.0
path: .spaces[15].metrics.halstead.length
old: 1.0
new: 23.0
path: .spaces[15].metrics.cognitive.average
old: null
new: 0.0
path: .spaces[15].metrics.nargs.average
old: null
new: 1.0
path: .spaces[15].metrics.nargs.sum
old: 0.0
new: 1.0
path: .spaces[15].metrics.mi.mi_visual_studio
old: null
new: 69.07008011880093
path: .spaces[15].metrics.mi.mi_sei
old: null
new: 95.1029035702528
path: .spaces[15].metrics.mi.mi_original
old: null
new: 118.10983700314958
path: .spaces[15].metrics.nexits.average
old: null
new: 0.0
path: .spaces[15].metrics.cyclomatic.sum
old: 1.0
new: 4.0
Code
static inline void zxdg_output_v1_destroy(
struct zxdg_output_v1* zxdg_output_v1) {
wl_proxy_marshal((struct wl_proxy*)zxdg_output_v1, ZXDG_OUTPUT_V1_DESTROY);
wl_proxy_destroy((struct wl_proxy*)zxdg_output_v1);
}
Minimal test - lines (323, 328)
path: .spaces[11].metrics.nargs.sum
old: 0.0
new: 3.0
path: .spaces[11].metrics.nargs.average
old: null
new: 3.0
path: .spaces[11].metrics.mi.mi_sei
old: null
new: 91.71909757912071
path: .spaces[11].metrics.mi.mi_original
old: null
new: 115.76436142083452
path: .spaces[11].metrics.mi.mi_visual_studio
old: null
new: 67.69845697124826
path: .spaces[11].metrics.cyclomatic.sum
old: 1.0
new: 4.0
path: .spaces[11].metrics.cognitive.average
old: null
new: 0.0
path: .spaces[11].metrics.loc.ploc
old: 1.0
new: 6.0
path: .spaces[11].metrics.loc.sloc
old: 1.0
new: 6.0
path: .spaces[11].metrics.loc.lloc
old: 0.0
new: 1.0
path: .spaces[11].metrics.nom.functions
old: 0.0
new: 1.0
path: .spaces[11].metrics.nom.total
old: 0.0
new: 1.0
path: .spaces[11].metrics.nexits.average
old: null
new: 1.0
path: .spaces[11].metrics.nexits.sum
old: 0.0
new: 1.0
path: .spaces[11].metrics.halstead.length
old: 1.0
new: 34.0
path: .spaces[11].metrics.halstead.n2
old: 1.0
new: 7.0
path: .spaces[11].metrics.halstead.N1
old: 0.0
new: 23.0
path: .spaces[11].metrics.halstead.effort
old: 0.0
new: 711.975370424772
path: .spaces[11].metrics.halstead.n1
old: 0.0
new: 7.0
path: .spaces[11].metrics.halstead.difficulty
old: 0.0
new: 5.5
path: .spaces[11].metrics.halstead.vocabulary
old: 1.0
new: 14.0
path: .spaces[11].metrics.halstead.volume
old: 0.0
new: 129.45006734995854
path: .spaces[11].metrics.halstead.bugs
old: 0.0
new: 0.026577985414838832
path: .spaces[11].metrics.halstead.N2
old: 1.0
new: 11.0
path: .spaces[11].metrics.halstead.estimated_program_length
old: null
new: 39.302968908806456
path: .spaces[11].metrics.halstead.level
old: null
new: 0.18181818181818185
path: .spaces[11].metrics.halstead.time
old: 0.0
new: 39.554187245820664
path: .spaces[11].metrics.halstead.purity_ratio
old: null
new: 1.155969673788425
Code
static inline int zxdg_output_v1_add_listener(
struct zxdg_output_v1* zxdg_output_v1,
const struct zxdg_output_v1_listener* listener, void* data) {
return wl_proxy_add_listener((struct wl_proxy*)zxdg_output_v1,
(void (**)(void))listener, data);
}