language
stringclasses
1 value
code
stringlengths
6
12.3k
avg_line_length
float64
2.79
91
line_count
float64
1
367
lang_specific_parse
stringlengths
60
1.08M
ast_node_count
int64
2
6.81k
num_errors
int64
0
499
universal_schema
stringlengths
799
825k
__index_level_0__
int64
0
81.2k
c
/* * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless...
37.22
36
(translation_unit) "/*\n * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licens...
133
9
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 37.22, "nodes": 73, "errors": 0, "source_hash": "e206d9572618dc9118507df62574c833b3f5d3bd4101b050e01acfa5662dde90", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,800
c
/* * Copyright (C) 2018 bzt (<EMAIL>) * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, copy, * modify, merge, pu...
37.95
186
(translation_unit) "/*\n * Copyright (C) 2018 bzt (<EMAIL>)\n *\n * Permission is hereby granted, free of charge, to any person\n * obtaining a copy of this software and associated documentation\n * files (the "Software"), to deal in the Software without\n * restriction, including without limitation the rights to use, ...
1,397
0
{"language": "c", "success": true, "metadata": {"lines": 186, "avg_line_length": 37.95, "nodes": 859, "errors": 0, "source_hash": "86a08989c21c540c9def3cbbf281469f9505b38cbd645343bc5a2f8fd33a87dc", "categorized_nodes": 626}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,801
c
// // DetailCommitteeViewController.h // SkillsUSA // // Created by <NAME> on 11/17/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface DetailCommitteeViewController : UIViewController @end
22.5
10
(translation_unit) "//\n// DetailCommitteeViewController.h\n// SkillsUSA\n//\n// Created by <NAME> on 11/17/14.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface DetailCommitteeViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// DetailCommitt...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 22.5, "nodes": 9, "errors": 0, "source_hash": "1a1705c808fd35a6b91d585bb3f85aa18e401e840e9d064aa7bbb7aebbf71a27", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UIK...
10,802
c
#ifndef FONDLE_FISH_MYSQL_AST_OPTS_H_INCLUDED #define FONDLE_FISH_MYSQL_AST_OPTS_H_INCLUDED #include <vector> #include "ast_base.h" class Ast_Expr; class Ast_ColumnList; class Ast_InsertAsgnList; class Ast_GroupByList : public Ast_Base { public: explicit Ast_GroupByList(Ast_Expr *expr, bool asc); virtual ~As...
21.86
112
(translation_unit) "#ifndef FONDLE_FISH_MYSQL_AST_OPTS_H_INCLUDED\n#define FONDLE_FISH_MYSQL_AST_OPTS_H_INCLUDED\n\n#include <vector>\n#include "ast_base.h"\n\nclass Ast_Expr;\nclass Ast_ColumnList;\nclass Ast_InsertAsgnList;\n\nclass Ast_GroupByList : public Ast_Base {\npublic:\n explicit Ast_GroupByList(Ast_Expr *...
713
30
{"language": "c", "success": true, "metadata": {"lines": 112, "avg_line_length": 21.86, "nodes": 427, "errors": 0, "source_hash": "de085c16b807e97931a27e71153053519a835883e91c60e9a99d105db055e29c", "categorized_nodes": 269}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,803
c
#pragma once #include "plog/Severity.h" struct CSGFoundry ; struct CSGSolid ; struct CSGPrim ; struct CSGNode ; class GGeo ; class GParts ; struct CSG_GGeo_Convert { static const plog::Severity LEVEL ; CSGFoundry* foundry ; const GGeo* ggeo ; const Opticks* ok ; bool reverse ; ...
36.95
43
(translation_unit) "#pragma once\n\n#include "plog/Severity.h"\n\nstruct CSGFoundry ;\nstruct CSGSolid ; \nstruct CSGPrim ; \nstruct CSGNode ; \n\nclass GGeo ;\nclass GParts ; \n\nstruct CSG_GGeo_Convert\n{ \n static const plog::Severity LEVEL ; \n\n CSGFoundry* foundry ; \n const GGeo* ggeo ; \n const Op...
327
5
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 36.95, "nodes": 220, "errors": 0, "source_hash": "c4e2c50851993924e1b84d0d8cbd0eab19c0f5574001a94a9a041ca4a3dc5e3a", "categorized_nodes": 145}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
10,804
c
// vi:nu:et:sts=4 ts=4 sw=4 //**************************************************************** // Trace support (trace) Header //**************************************************************** /* * Program * Trace support (trace) * Purpose * This object provides a standardized way of handling * ...
30.91
228
(translation_unit) "// vi:nu:et:sts=4 ts=4 sw=4\n\n//****************************************************************\n// Trace support (trace) Header\n//****************************************************************\n/*\n * Program\n * Trace support (trace)\n * Purpose\n * This object provides a stand...
494
0
{"language": "c", "success": true, "metadata": {"lines": 228, "avg_line_length": 30.91, "nodes": 322, "errors": 0, "source_hash": "f6643d5d5edf1f4306a825a8ae4de8c1d62332d3e01dd51bfa213df07a968c75", "categorized_nodes": 194}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,805
c
#ifndef TRIE_H #define TRIE_H #include <stdio.h> #include <stdlib.h> #include <string.h> #define ARRAY_SIZE(a) sizeof(a)/sizeof(a[0]) // Alphabet size (# of symbols) #define ALPHABET_SIZE (26) #define MAX_KEY 100 // Converts key current character into index // use only 'a' through 'z' and lower case //#define CHA...
33.55
44
(translation_unit) "#ifndef TRIE_H\n#define TRIE_H\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#define ARRAY_SIZE(a) sizeof(a)/sizeof(a[0])\n\n// Alphabet size (# of symbols)\n#define ALPHABET_SIZE (26)\n#define MAX_KEY 100\n\n// Converts key current character into index\n// use only 'a' throug...
251
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 33.55, "nodes": 175, "errors": 0, "source_hash": "748cc537ae9961f1ee55119d35109f1627b93651cbb0e3eabc7fd24548c66bb5", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,806
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import <SafariShared/WBSParsecCardSection.h> @class NSArray, NSString, WBSParsecSportsScoreSummary; @interface WBSParsecSportsScoreSummaryCardSection : WBSParsecCardSection { WBSPa...
34.53
19
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.\n//\n\n#import <SafariShared/WBSParsecCardSection.h>\n\n@class NSArray, NSString, WBSParsecSportsScoreSummary;\n\n@interface WBSParsecSportsScoreSummaryCardSection : WB...
146
15
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 34.53, "nodes": 88, "errors": 0, "source_hash": "7403679f467512add5e57986da12ce3654f2a5d73f0867189ac5ab1b59085e47", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
10,807
c
#ifndef COMPILE_H #define COMPILE_H #include <stdbool.h> #include "constant.h" #include "module.h" #include "value.h" #include "oak.h" #include "symbol.h" #include "gc.h" struct compiler { struct instruction *code; size_t ip; size_t instr_alloc; size_t *next, *last; int np, lp; struct statement **tree; size_...
19.43
35
(translation_unit) "#ifndef COMPILE_H\n#define COMPILE_H\n\n#include <stdbool.h>\n#include "constant.h"\n#include "module.h"\n#include "value.h"\n#include "oak.h"\n#include "symbol.h"\n#include "gc.h"\n\nstruct compiler {\n struct instruction *code;\n size_t ip;\n size_t instr_alloc;\n\n size_t *next, *last;\n int np, ...
233
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 19.43, "nodes": 178, "errors": 0, "source_hash": "f8e69763312c9228c99381983f46ff065b5adc5cc822b58444023d4b7cd719ca", "categorized_nodes": 123}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,808
c
/** * (C) Copyright 2016-2020 Intel Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
33.68
72
(translation_unit) "/**\n * (C) Copyright 2016-2020 Intel Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Un...
322
1
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 33.68, "nodes": 222, "errors": 0, "source_hash": "25f7b2d7c39b1323787ad1ce94d6ec5c09f5cf9f91c718318e8c84869d38186c", "categorized_nodes": 167}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,809
c
/// Copyright 2016-2018 - asm128 #include "llc_platform.h" #if defined(LLC_WINDOWS) # include <Windows.h> #endif #ifndef LLC_RUNTIME_H_28903749028374 #define LLC_RUNTIME_H_28903749028374 namespace llc { #if defined(LLC_WINDOWS) struct SWindowsEntryPointArgs { HINSTANCE hInstance ; HINSTAN...
27
33
(translation_unit) "/// Copyright 2016-2018 - asm128\n#include "llc_platform.h"\n#if defined(LLC_WINDOWS)\n# include <Windows.h>\n#endif\n\n#ifndef LLC_RUNTIME_H_28903749028374\n#define LLC_RUNTIME_H_28903749028374\n\nnamespace llc \n{\n#if defined(LLC_WINDOWS)\n struct SWindowsEntryPointArgs {\n HINSTANCE ...
135
3
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 27.0, "nodes": 97, "errors": 0, "source_hash": "26abde54a81174d9b3b6fcc5d7e3cf403eb3e882bba4f0584c077af8c02f5333", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
10,810
c
/* for MAX_TXT_SEG_BYTES & MAX_TXT_SEG_LEN */ #include "txt-seg/config.h" #define MAX_TERM_BYTES MAX_TXT_SEG_BYTES /* consider both math & term */ #define MAX_QUERY_BYTES (MAX_TXT_SEG_BYTES * 32) #define MAX_QUERY_WSTR_LEN (MAX_TXT_SEG_LEN * 32) #define MAX_MERGE_POSTINGS 4096 #define MAX_POSTINGS_PER_MATH (MAX_...
31.06
33
(translation_unit) "/* for MAX_TXT_SEG_BYTES & MAX_TXT_SEG_LEN */\n#include "txt-seg/config.h"\n#define MAX_TERM_BYTES MAX_TXT_SEG_BYTES\n\n/* consider both math & term */\n#define MAX_QUERY_BYTES (MAX_TXT_SEG_BYTES * 32)\n#define MAX_QUERY_WSTR_LEN (MAX_TXT_SEG_LEN * 32)\n\n#define MAX_MERGE_POSTINGS 4096\n#defin...
81
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 31.06, "nodes": 64, "errors": 0, "source_hash": "cff5ac6bf2a4c1215a7e60e61a0249a483474a164cd215dbe24b4c049b2f95f8", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
10,811
c
#ifndef DEBUG_CRAYON_H #define DEBUG_CRAYON_H #include <stdarg.h> #include <stdio.h> #include <dc/biosfont.h> #include <dc/video.h> #include <dc/pvr.h> //Write a message to the screen using the BIOS font, and hang extern void error_freeze(const char *format, ...); #endif
26.2
10
(translation_unit) "#ifndef DEBUG_CRAYON_H\n#define DEBUG_CRAYON_H\n\n#include <stdarg.h>\n#include <stdio.h>\n\n#include <dc/biosfont.h>\n#include <dc/video.h>\n#include <dc/pvr.h>\n\n//Write a message to the screen using the BIOS font, and hang\nextern void error_freeze(const char *format, ...);\n\n#endif\n" (prepr...
44
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 26.2, "nodes": 34, "errors": 0, "source_hash": "fb8429637984783f4b3a980fbbb8d6f86c9b37519b1e8bb41f2c257d9f2d7a32", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef D...
10,812
c
// // Created by weijing on 18-11-6. // #include "event_loop.h" #ifdef HAVE_EPOLL #include <sys/resource.h> #include <unistd.h> #include <errno.h> #include <signal.h> #include <sys/epoll.h> #include "../core/log.h" #include "../core/memory.h" #ifndef OPEN_MAX #include <sys/param.h> #ifndef OPEN_MAX #ifdef NOFILE ...
30.72
188
(translation_unit) "//\n// Created by weijing on 18-11-6.\n//\n\n#include "event_loop.h"\n\n#ifdef HAVE_EPOLL\n\n#include <sys/resource.h>\n#include <unistd.h>\n#include <errno.h>\n#include <signal.h>\n#include <sys/epoll.h>\n#include "../core/log.h"\n#include "../core/memory.h"\n\n#ifndef OPEN_MAX\n\n#include <sys/par...
1,677
0
{"language": "c", "success": true, "metadata": {"lines": 188, "avg_line_length": 30.72, "nodes": 1062, "errors": 0, "source_hash": "dd03414d848959a42cf313f3703096b8ac7078ecd1a176acd0716053828ee6d7", "categorized_nodes": 781}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
10,813
c
#include <libc-internal.h> /* MIPS forces a frame pointer for five-argument syscalls using alloca, so resulting in "inlining failed in call to 'do_waitid': function not inlinable". */ DIAG_IGNORE_NEEDS_COMMENT (4.9, "-Winline"); #include <sysdeps/unix/sysv/linux/waitid.c>
45.67
6
(translation_unit) "#include <libc-internal.h>\n\n/* MIPS forces a frame pointer for five-argument syscalls using\n alloca, so resulting in "inlining failed in call to 'do_waitid':\n function not inlinable". */\nDIAG_IGNORE_NEEDS_COMMENT (4.9, "-Winline");\n#include <sysdeps/unix/sysv/linux/waitid.c>\n" (preproc...
21
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 45.67, "nodes": 11, "errors": 0, "source_hash": "f2693503a6b4bc31b7dfd9f2c972e50885eccba4c430554a5dbaccb4a6e7f604", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
10,814
c
#include "free_rtos_tasks.h" extern UART_HandleTypeDef huart3; SemaphoreHandle_t handleMutexForFlashMemoryReadWrite; SemaphoreHandle_t handleSemaphoreForMessageQueue; QueueHandle_t ptrUserMessagesQueue; void FreeRTOS_InitTasks() { handleMutexForFlashMemoryReadWrite = xSemaphoreCreateMutex(); assert_param(h...
30.81
139
(translation_unit) "#include "free_rtos_tasks.h"\n\nextern UART_HandleTypeDef huart3;\n\nSemaphoreHandle_t handleMutexForFlashMemoryReadWrite;\nSemaphoreHandle_t handleSemaphoreForMessageQueue;\nQueueHandle_t ptrUserMessagesQueue;\n\nvoid FreeRTOS_InitTasks()\n{\n handleMutexForFlashMemoryReadWrite = xSemaphoreC...
1,076
0
{"language": "c", "success": true, "metadata": {"lines": 139, "avg_line_length": 30.81, "nodes": 575, "errors": 0, "source_hash": "5cb203b18ff51371af8605ec128df681e65831c142f8e7eb6c202e87f59f2b9a", "categorized_nodes": 424}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,815
c
/* WAVE sound file writer for recording 16-bit output during program development. A single header library version in C89 of the Wave_Writer library written by <NAME>. Copyright (C) 2003-2005 by <NAME>. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and as...
39.86
154
(translation_unit) "/* \n WAVE sound file writer for recording 16-bit output during program development.\n A single header library version in C89 of the Wave_Writer library written by <NAME>.\n\n Copyright (C) 2003-2005 by <NAME>. Permission is hereby granted, free\n of charge, to any person obtaining a cop...
1,240
2
{"language": "c", "success": true, "metadata": {"lines": 154, "avg_line_length": 39.86, "nodes": 824, "errors": 0, "source_hash": "56b58176d97f7bcd388408238190faf6fcc30bbc77772a382e9488c54bef2fae", "categorized_nodes": 543}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef SHL_W...
10,816
c
/* * Copyright 2012-2019 CNRS-UM LIRMM, CNRS-AIST JRL */ #pragma once // includes // std #include <string> // SpaceVecAlg #include <SpaceVecAlg/SpaceVecAlg> namespace rbd { /** Body representation. * Hold body id, name and spatial rigid body inertia of one body. */ class Body { public: Body() {} /** * ...
22.9
61
(translation_unit) "/*\n * Copyright 2012-2019 CNRS-UM LIRMM, CNRS-AIST JRL\n */\n\n#pragma once\n\n// includes\n// std\n#include <string>\n\n// SpaceVecAlg\n#include <SpaceVecAlg/SpaceVecAlg>\n\nnamespace rbd\n{\n\n/** Body representation.\n * Hold body id, name and spatial rigid body inertia of one body.\n */\nclass ...
341
19
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 22.9, "nodes": 174, "errors": 0, "source_hash": "568c0c8bd9a3bcc1ce83374a50fc936619e5870a0a7179a8ba859a4dd7312520", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
10,817
c
/* * Copyright (c) 2019 Nordic Semiconductor ASA * * SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic */ #include <zephyr.h> #include <hal/nrf_power.h> #define MODULE constlat #include "module_state_event.h" #include "power_event.h" #include <logging/log.h> LOG_MODULE_REGISTER(MODULE); static bool enab...
23.44
66
(translation_unit) "/*\n * Copyright (c) 2019 Nordic Semiconductor ASA\n *\n * SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic\n */\n\n#include <zephyr.h>\n#include <hal/nrf_power.h>\n\n#define MODULE constlat\n#include "module_state_event.h"\n\n#include "power_event.h"\n\n#include <logging/log.h>\nLOG_MODULE_R...
382
0
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 23.44, "nodes": 201, "errors": 0, "source_hash": "f04a1765db7482b834eb73463941d7d1f693323bec6d2d6d888341194d5c22bd", "categorized_nodes": 144}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,818
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "UIImageView.h" @interface UIImageView (GeometryConversion) - (struct CGRect)convertRectFromView:(struct CGRect)arg1; - (struct CGPoint)convertPointFromView:(struct CGPoint)arg1;...
36.08
12
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "UIImageView.h"\n\n@interface UIImageView (GeometryConversion)\n- (struct CGRect)convertRectFromView:(struct CGRect)arg1;\n- (struct CGPoint)convertPoint...
106
11
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 36.08, "nodes": 67, "errors": 0, "source_hash": "627028a4167da81087fadaeb373664665e5d56050d4d16f1f6b519f4291e7919", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
10,819
c
#include "unwind_i.h" static inline int is_local_addr_space (unw_addr_space_t as) { extern unw_addr_space_t _ULhppa_local_addr_space; return (as == _Uhppa_local_addr_space #ifndef UNW_REMOTE_ONLY || as == _ULhppa_local_addr_space #endif ); } HIDDEN int tdep_find_proc_info (unw_addr_space_t as, unw_word_t i...
24.24
37
(translation_unit) "#include "unwind_i.h"\n\nstatic inline int\nis_local_addr_space (unw_addr_space_t as)\n{\n extern unw_addr_space_t _ULhppa_local_addr_space;\n\n return (as == _Uhppa_local_addr_space\n#ifndef UNW_REMOTE_ONLY\n || as == _ULhppa_local_addr_space\n#endif\n );\n}\n\nHIDDEN int\ntdep_find_proc_info...
241
5
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 24.24, "nodes": 150, "errors": 0, "source_hash": "3e0bc02dab046d8d380374704448863049e2435a0207f43d80426c463905e128", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,820
c
#ifndef GENERIC_ROBOT_WPILIB_DRIVETRAIN_INTERFACE_H_ #define GENERIC_ROBOT_WPILIB_DRIVETRAIN_INTERFACE_H_ #include "WPILib.h" #include "generic_robot/queue_manager/queue_manager.h" #include "muan/utils/math_utils.h" #include "muan/wpilib/can_wrapper.h" #include "muan/wpilib/pcm_wrapper.h" namespace generic_robot { na...
34.04
25
(translation_unit) "#ifndef GENERIC_ROBOT_WPILIB_DRIVETRAIN_INTERFACE_H_\n#define GENERIC_ROBOT_WPILIB_DRIVETRAIN_INTERFACE_H_\n\n#include "WPILib.h"\n#include "generic_robot/queue_manager/queue_manager.h"\n#include "muan/utils/math_utils.h"\n#include "muan/wpilib/can_wrapper.h"\n#include "muan/wpilib/pcm_wrapper.h"\n\...
178
10
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 34.04, "nodes": 96, "errors": 0, "source_hash": "c540507b9b6f3562a9dba49dc877ac4697a04334c77039d5c54fedf5d3f1793c", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,821
c
// program that accepts of marks of 48 student of csit first semester in C programming , display in descending order, also display topper and loser #include <stdio.h> void accept(){ int i,j,num[50]; printf("Enter the Marks obtained by 50 students in CSIT:\n"); for(i=0;i<50;i++){ scanf("%d\n",&num[i...
23.64
42
(translation_unit) "// program that accepts of marks of 48 student of csit first semester in C programming , display in descending order, also display topper and loser\n\n#include <stdio.h>\nvoid accept(){\n int i,j,num[50];\n printf("Enter the Marks obtained by 50 students in CSIT:\n");\n for(i=0;i<50;i++){\n...
406
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 23.64, "nodes": 221, "errors": 0, "source_hash": "b5e6cf06e81375e50fc9610786cf3ab37d4c24f6de36c17cd5868a440945bb7b", "categorized_nodes": 163}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,822
c
// // UIColor+Add.h // portal // // Created by Store on 2017/9/1. // Copyright © 2017年 <EMAIL>. All rights reserved. // #import <UIKit/UIKit.h> @interface UIColor (Add) - (UIImage *)imageWithColor; @end
17.82
11
(translation_unit) "//\n// UIColor+Add.h\n// portal\n//\n// Created by Store on 2017/9/1.\n// Copyright © 2017年 <EMAIL>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIColor (Add)\n- (UIImage *)imageWithColor;\n@end\n" (comment) "//" (comment) "// UIColor+Add.h" (comment) "// portal" ...
37
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 17.82, "nodes": 21, "errors": 0, "source_hash": "b1307764d332382f94ab228ff15e7b44910df392d419b619a664e0723c3d30b9", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
10,823
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "GKRectShadowCell.h" @class UILabel; @interface GKDashboardShowMoreTextCell : GKRectShadowCell { UILabel *_label; // 8 = 0x8 } + (struct CGSize)defaultSize; // IMP=0x000000...
28.73
15
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "GKRectShadowCell.h"\n\n@class UILabel;\n\n@interface GKDashboardShowMoreTextCell : GKRectShadowCell\n{\n UILabel *_label; // 8 = 0x8\n}\n\n+ (struct ...
78
10
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 28.73, "nodes": 47, "errors": 0, "source_hash": "cc70a204c82dbc27f6e76fe9d579602d36256caca28e2811a0f675419aadd635", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
10,824
c
// CPMath stands for Cross Platform Math #include <cmath> #undef M_PI #define M_PI 3.14159265358979323846 #undef M_TWOPI #define M_TWOPI (2 * M_PI)
23.67
6
(translation_unit) "// CPMath stands for Cross Platform Math\n\n#include <cmath>\n\n#undef M_PI\n#define M_PI 3.14159265358979323846\n#undef M_TWOPI\n#define M_TWOPI (2 * M_PI)\n" (comment) "// CPMath stands for Cross Platform Math" (preproc_include) "#include <cmath>\n" (#include) "#include" (system_lib_st...
19
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 23.67, "nodes": 17, "errors": 0, "source_hash": "4edc7a3001c69b154de0823087c7a297f6a83200a8b6eafc97e50c7e957e0885", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
10,825
c
#ifndef __included_agup_h #define __included_agup_h void rpagup_init(void); void rpagup_shutdown(void); #endif
15.14
7
(translation_unit) "#ifndef __included_agup_h\n#define __included_agup_h\n\n\nvoid rpagup_init(void);\nvoid rpagup_shutdown(void);\n\n\n#endif\n" (preproc_ifdef) "#ifndef __included_agup_h\n#define __included_agup_h\n\n\nvoid rpagup_init(void);\nvoid rpagup_shutdown(void);\n\n\n#endif" (#ifndef) "#ifndef" (id...
28
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 15.14, "nodes": 21, "errors": 0, "source_hash": "c3c938de073a15a0c89b39874f1447dfe3e316ac34bcf9e145037c72ce952645", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
10,826
c
// // asynccal.h // #ifndef AYNCCAL_H #define AYNCCAL_H #include "helpers.h" ////////////////////////////////////////////////////////////////////////////// // // CAsyncCall // ////////////////////////////////////////////////////////////////////////////// class CAsyncCall { public: CAsyncCall(I...
20.65
116
(translation_unit) "// \n// asynccal.h \n// \n \n#ifndef AYNCCAL_H \n#define AYNCCAL_H \n \n#include "helpers.h" \n \n////////////////////////////////////////////////////////////////////////////// \n// \n// CAsyncCall \n// \n////////////////////////////////////////////////////////////////////////////// \n \nclass CAsyn...
535
0
{"language": "c", "success": true, "metadata": {"lines": 116, "avg_line_length": 20.65, "nodes": 329, "errors": 0, "source_hash": "8686aaf6b01db266aaa87668ced17b6d1cbf54de9d7fbd34eb1fc02b8f30492d", "categorized_nodes": 230}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,827
c
// // Created by honhe on 11/9/16. // #ifndef DEMO_VTK_VOLUME_NOT_REFRESH_MYDIRECTOR_H #define DEMO_VTK_VOLUME_NOT_REFRESH_MYDIRECTOR_H #include <vtkRenderWindow.h> #include <vtkSmartPointer.h> #include <vtkVolumeProperty.h> #include <vtkRenderWindowInteractor.h> class MyDirector { public: void init(); vtk...
25.25
20
(translation_unit) "//\n// Created by honhe on 11/9/16.\n//\n\n#ifndef DEMO_VTK_VOLUME_NOT_REFRESH_MYDIRECTOR_H\n#define DEMO_VTK_VOLUME_NOT_REFRESH_MYDIRECTOR_H\n\n#include <vtkRenderWindow.h>\n#include <vtkSmartPointer.h>\n#include <vtkVolumeProperty.h>\n#include <vtkRenderWindowInteractor.h>\n\n\nclass MyDirector {\...
77
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 25.25, "nodes": 51, "errors": 0, "source_hash": "aa7167bc7fde52accd1e832b4e3d1a25911620c189e51886b2a2fb384ef4a11d", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,828
c
// // MyHZViewController.h // MedicineClient // // Created by L on 2018/5/3. // Copyright © 2018年 深圳乐易住智能科技股份有限公司. All rights reserved. // #import <UIKit/UIKit.h> @interface MyHZViewController : UIViewController @property (nonatomic, copy) NSString *orderStatus; @property (nonatomic, copy) NSString *huizhnid; @pr...
27.15
13
(translation_unit) "//\n// MyHZViewController.h\n// MedicineClient\n//\n// Created by L on 2018/5/3.\n// Copyright © 2018年 深圳乐易住智能科技股份有限公司. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface MyHZViewController : UIViewController\n@property (nonatomic, copy) NSString *orderStatus;\n@property (nonatomi...
72
14
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 27.15, "nodes": 51, "errors": 0, "source_hash": "1e7c658d4aabe4a631d04c98e76fc32ac892cfeb9629e33d1c0911a368c263db", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ce MyHZVi...
10,829
c
/* * Amanda, The Advanced Maryland Automatic Network Disk Archiver * Copyright (c) 1991-1999 University of Maryland at College Park * All Rights Reserved. * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that *...
36.58
207
(translation_unit) "/*\n * Amanda, The Advanced Maryland Automatic Network Disk Archiver\n * Copyright (c) 1991-1999 University of Maryland at College Park\n * All Rights Reserved.\n *\n * Permission to use, copy, modify, distribute, and sell this software and its\n * documentation for any purpose is hereby granted wit...
412
1
{"language": "c", "success": true, "metadata": {"lines": 207, "avg_line_length": 36.58, "nodes": 282, "errors": 0, "source_hash": "11f5d62bf459c27bcf6b54448af6dd27cc0fa53b1393042024cae14cefe9405c", "categorized_nodes": 153}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,830
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "mac.h" int main(int argc, char *argv[]) { if (argc != 2) return EXIT_FAILURE; char *interface = argv[1]; unsigned char address[6]; memset(address, 0, 6); unsigned char *pt = address; int i = 0; i = get_mac_address(add...
26.83
23
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#include "mac.h"\n\nint main(int argc, char *argv[])\n{\n if (argc != 2) return EXIT_FAILURE;\n\n char *interface = argv[1];\n\n unsigned char address[6];\n memset(address, 0, 6);\n unsigned char *pt = address;\n\n int...
213
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 26.83, "nodes": 126, "errors": 0, "source_hash": "2c320ff83478dde7e4c5c179abf8a13137884ff10515af1f97e17d3f50d22ac6", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
10,831
c
#pragma once #include <exception> #include <string> class UsernameAlreadyExistsException : public std::exception { public: const char *what() const throw() { return message.c_str(); } private: const std::string message = "Error: username already exists"; }; class EmailAlreadyExistsException : pu...
27.96
53
(translation_unit) "#pragma once\n\n#include <exception>\n#include <string>\n\nclass UsernameAlreadyExistsException : public std::exception {\npublic:\n const char *what() const throw() {\n return message.c_str();\n }\n\nprivate:\n const std::string message = "Error: username already exists";\n};\n\ncla...
428
18
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 27.96, "nodes": 194, "errors": 0, "source_hash": "fa5b4fc795aabf55e35864338fd292e3fab2a60db56efdc2779a679cd998e3b6", "categorized_nodes": 112}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
10,832
c
/* * Set up the VMAs to tell the VM about the vDSO. * Copyright 2007 <NAME>, SUSE Labs. * Subject to the GPL, v.2 */ /* * Copyright (c) 2017 Oracle and/or its affiliates. All rights reserved. */ #include <linux/mm.h> #include <linux/err.h> #include <linux/sched.h> #include <linux/slab.h> #include <linux/init.h>...
23.81
221
(translation_unit) "/*\n * Set up the VMAs to tell the VM about the vDSO.\n * Copyright 2007 <NAME>, SUSE Labs.\n * Subject to the GPL, v.2\n */\n\n/*\n * Copyright (c) 2017 Oracle and/or its affiliates. All rights reserved.\n */\n\n#include <linux/mm.h>\n#include <linux/err.h>\n#include <linux/sched.h>\n#include <linu...
1,578
4
{"language": "c", "success": true, "metadata": {"lines": 221, "avg_line_length": 23.81, "nodes": 1015, "errors": 0, "source_hash": "b9d5aa79a7a820fc00e15695a052b2538c587e046dbb2f4db99200fa8b38e7b9", "categorized_nodes": 726}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
10,833
c
// // NSURL+NXOAuth2.h // OAuth2Client // // Created by <NAME> on 07.10.09. // // Copyright 2010 nxtbgthng. All rights reserved. // // Licenced under the new BSD-licence. // See README.md in this repository for // the full licence. // #import <Foundation/Foundation.h> @interface NSURL (NXOAuth2) - (NSURL *)nx...
28.09
23
(translation_unit) "//\n// NSURL+NXOAuth2.h\n// OAuth2Client\n//\n// Created by <NAME> on 07.10.09.\n//\n// Copyright 2010 nxtbgthng. All rights reserved.\n//\n// Licenced under the new BSD-licence.\n// See README.md in this repository for\n// the full licence.\n//\n\n#import <Foundation/Foundation.h>\n\n@interf...
98
7
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 28.09, "nodes": 55, "errors": 0, "source_hash": "887e069ec0e56d5cc78845d1c9d7386410fc230bc60ecaf3ff63829f44753d6a", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
10,834
c
// Copyright (c) 2016 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_STATS_H #define BITCOIN_STATS_H #include <sync.h> #include <atomic> #include <stdlib.h> #include <vector> #incl...
40.8
59
(translation_unit) "// Copyright (c) 2016 The Bitcoin Core developers\n// Distributed under the MIT software license, see the accompanying\n// file COPYING or http://www.opensource.org/licenses/mit-license.php.\n\n#ifndef BITCOIN_STATS_H\n#define BITCOIN_STATS_H\n\n#include <sync.h>\n\n#include <atomic>\n#include <stdl...
325
8
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 40.8, "nodes": 179, "errors": 0, "source_hash": "a87e16a768e78690c59c926e3af3d9d02da1010f03ff5d32469b0516767f7a1b", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,835
c
#if !defined(AFX_VECTOROPTIONSPAGE_H__121CFCA5_0014_11D4_8108_00C04F61038F__INCLUDED_) #define AFX_VECTOROPTIONSPAGE_H__121CFCA5_0014_11D4_8108_00C04F61038F__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // VectorOptionsPage.h : header file // ///////////////////////////////////////////////////...
29.29
56
(translation_unit) "#if !defined(AFX_VECTOROPTIONSPAGE_H__121CFCA5_0014_11D4_8108_00C04F61038F__INCLUDED_)\n#define AFX_VECTOROPTIONSPAGE_H__121CFCA5_0014_11D4_8108_00C04F61038F__INCLUDED_\n\n#if _MSC_VER > 1000\n#pragma once\n#endif // _MSC_VER > 1000\n// VectorOptionsPage.h : header file\n//\n\n//////////////////////...
283
10
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 29.29, "nodes": 180, "errors": 0, "source_hash": "8d5213f29124f71e41e7e420dbaa082408d913fd26517f94b5855246c2846477", "categorized_nodes": 124}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defi...
10,836
c
/** ****************************************************************************** * @file MotionPM_Manager.c * @author System Research & Applications Team - Catania Lab. * @version V4.2.0 * @date 03-Nov-2021 * @brief This file includes Pedometer interface functions ******************************...
33.12
69
(translation_unit) "/**\n ******************************************************************************\n * @file MotionPM_Manager.c\n * @author System Research & Applications Team - Catania Lab.\n * @version V4.2.0\n * @date 03-Nov-2021\n * @brief This file includes Pedometer interface functions\n ***...
190
0
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 33.12, "nodes": 106, "errors": 0, "source_hash": "75a9cab8f4abceb6ca42984f75206716360da2e1abff42a8689a2553c3af43dd", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
10,837
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_lstsort.c :+: :+: :+: ...
36.29
34
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* ft_lstsort.c ...
195
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 36.29, "nodes": 112, "errors": 0, "source_hash": "67c5b835c4cba4255b1f5f79ea7cdb57596c45e9187d82ced0eb5d657042234a", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
10,838
c
#ifndef __FUNCTIONS_H__ #define __FUNCTIONS_H__ #include <iostream> #include <list> #include <string> #include "MathGeoLib\float2.h" #include "MathGeoLib\float4.h" #include "MathGeoLib\float4x4.h" #include "MathGeoLib\Quat.h" // ----------------------------------------- // ----------------------------------------- /...
41.77
31
(translation_unit) "#ifndef __FUNCTIONS_H__\n#define __FUNCTIONS_H__\n\n#include <iostream>\n#include <list>\n#include <string>\n#include "MathGeoLib\float2.h"\n#include "MathGeoLib\float4.h"\n#include "MathGeoLib\float4x4.h"\n#include "MathGeoLib\Quat.h"\n\n// -----------------------------------------\n// ------------...
260
6
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 41.77, "nodes": 164, "errors": 0, "source_hash": "63220b7ca95fea73e4c66b786771c091aec1ff73cdfc8cfdaa9909241ac909e4", "categorized_nodes": 112}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,839
c
#ifndef FEASOLVERS_H_ #define FEASOLVERS_H_ #include "amsiFEA.h" #include "amsiLAS.h" #include "amsiNonlinearAnalysis.h" #include <string> namespace amsi { Iteration * buildLinearFEMIteration(FEA * f, LAS * l); void LinearSolver(FEA*,LAS*); //void NewtonSolver(FEA*,LAS*,int,double,double,double&); } #endif
23.15
13
(translation_unit) "#ifndef FEASOLVERS_H_\n#define FEASOLVERS_H_\n#include "amsiFEA.h"\n#include "amsiLAS.h"\n#include "amsiNonlinearAnalysis.h"\n#include <string>\nnamespace amsi\n{\n Iteration * buildLinearFEMIteration(FEA * f, LAS * l);\n void LinearSolver(FEA*,LAS*);\n //void NewtonSolver(FEA*,LAS*,int,double,do...
74
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 23.15, "nodes": 52, "errors": 0, "source_hash": "9d8b0d472f02c5ecd6183daeed33369699bff0667f91d9a4c2f6500e3323142a", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,840
c
//C program to print a right angled binary triangle #include<stdio.h> int main(){ int rows,col,n; printf("Enter number of lines: "); scanf("%d",&n); for(rows=1;rows<=n;rows++){ for(col=1;col<=rows;col++){ if((rows+col)%2==0){ printf("1 "); } else{ printf("0 "); } } printf("\n"); } }
16.5
18
(translation_unit) "//C program to print a right angled binary triangle\n#include<stdio.h>\nint main(){\n int rows,col,n;\n printf("Enter number of lines: ");\n scanf("%d",&n);\n for(rows=1;rows<=n;rows++){\n for(col=1;col<=rows;col++){\n if((rows+col)%2==0){\n printf("1 ");\n }\n else{\n printf("0 ");\n ...
148
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 16.5, "nodes": 74, "errors": 0, "source_hash": "c3b04075369e88657338f87ae29b6051c32c971ade576011f64a2c4297517306", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
10,841
c
#include "types.h" #include "user.h" #include "fcntl.h" #include "stat.h" int main(int argc , char * argv[]){ struct mystat *ct = malloc (sizeof(struct mystat)); ct->sz = argc - 1; int i; for(i = 1;i<argc;i++){ //printf(1,"%d->" , atoi(argv[i])); ct->nums[i-1] = atoi(argv[i]); } ...
23.27
15
(translation_unit) "#include "types.h"\n#include "user.h"\n#include "fcntl.h"\n#include "stat.h"\n\nint main(int argc , char * argv[]){\n struct mystat *ct = malloc (sizeof(struct mystat));\n ct->sz = argc - 1;\n int i;\n for(i = 1;i<argc;i++){\n //printf(1,"%d->" , atoi(argv[i]));\n ct->nums[...
160
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 23.27, "nodes": 96, "errors": 0, "source_hash": "bf5412c766aa06c5e5296c2c56a9414f7e21f531954405794b3d493daa7395a1", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
10,842
c
#if (__LSB_VERSION__ >= 31 ) #ifndef _QTGUI_QTOOLBAR_H_ #define _QTGUI_QTOOLBAR_H_ class QToolBar; // *INDENT-OFF* class QToolBar; /* Function prototypes */ extern struct QMetaObject _ZN8QToolBar16staticMetaObjectE; // *INDENT-ON* #endif /* protection */ #endif /* LSB version */
22.92
12
(translation_unit) "#if (__LSB_VERSION__ >= 31 )\n#ifndef _QTGUI_QTOOLBAR_H_\n#define _QTGUI_QTOOLBAR_H_\n\nclass QToolBar;\n// *INDENT-OFF*\n\nclass QToolBar;\n\n\n/* Function prototypes */\n\nextern struct QMetaObject _ZN8QToolBar16staticMetaObjectE;\n// *INDENT-ON*\n#endif /* protection */\n#endif /* LSB versi...
40
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 22.92, "nodes": 27, "errors": 0, "source_hash": "26771a2eb85338ebb391905f5a472df98ff6bfaec36159455bc74793f140f40c", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if (__LSB_...
10,843
c
#ifndef PAIRSEDITOR_H #define PAIRSEDITOR_H #include <QWidget> class QHBoxLayout; class QVBoxLayout; template class QPair<QString, QString>; class PairsEditor : public QWidget { Q_OBJECT public: PairsEditor(const QString &keyPlaceholder); void clear(); QList<QPair<QString, QString> > pairs(); private slo...
22.05
22
(translation_unit) "#ifndef PAIRSEDITOR_H\n#define PAIRSEDITOR_H\n\n#include <QWidget>\n\nclass QHBoxLayout;\nclass QVBoxLayout;\ntemplate class QPair<QString, QString>;\n\nclass PairsEditor : public QWidget\n{\n Q_OBJECT\n\npublic:\n PairsEditor(const QString &keyPlaceholder);\n void clear();\n QList<QPair<QStri...
148
6
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 22.05, "nodes": 96, "errors": 0, "source_hash": "3e46e261506d8e2d848b652169ffcdf591d4db19c89efef8fc212a96c5d9eb81", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,844
c
#import <Foundation/Foundation.h> #import <JSONModel/JSONValueTransformer.h> /** * virusapi * The Cloudmersive Virus Scan API lets you scan files and content for viruses and identify security issues with content. * * OpenAPI spec version: v1 * * * NOTE: This class is auto generated by the swagger code generator progr...
27.81
16
(translation_unit) "#import <Foundation/Foundation.h>\n#import <JSONModel/JSONValueTransformer.h>\n\n/**\n* virusapi\n* The Cloudmersive Virus Scan API lets you scan files and content for viruses and identify security issues with content.\n*\n* OpenAPI spec version: v1\n* \n*\n* NOTE: This class is auto generated by th...
20
4
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 27.81, "nodes": 15, "errors": 0, "source_hash": "ff20b550006d71c6de9ac380b5b6fb97abee3e871224a17f5ef8be5b3e11974c", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
10,845
c
#ifndef _WIN_T_SOUND_ #define _WIN_T_SOUND_ #include <_type/type.predefines.h> #include <_type/type.sound.definitions.h> #include <_type/type.sound.channel.h> class _sound { friend class _soundChannel; private: //! Attribute the indicates a previous call to enable() static bool soundEnabled; ...
21.38
77
(translation_unit) "#ifndef _WIN_T_SOUND_ \n#define _WIN_T_SOUND_ \n \n#include <_type/type.predefines.h> \n#include <_type/type.sound.definitions.h> \n#include <_type/type.sound.channel.h> \n \nclass _sound \n{ \n friend class _soundChannel; \n \n private: \n \n //! Attribute the indicates a previous call to enabl...
376
6
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 21.38, "nodes": 206, "errors": 0, "source_hash": "d3d0fc312a0abd565dc7b8524c9b5ca41f9fe4b0845d67b5a5d591cb81d19526", "categorized_nodes": 148}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,846
c
/* $Id: macros.h,v 1.1 1998-10-05 22:32:09 cg Exp $ */ /* * Mesa 3-D graphics library * Version: 3.0 * Copyright (C) 1995-1998 <NAME> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foun...
32.34
196
(translation_unit) "/* $Id: macros.h,v 1.1 1998-10-05 22:32:09 cg Exp $ */\n\n/*\n * Mesa 3-D graphics library\n * Version: 3.0\n * Copyright (C) 1995-1998 <NAME>\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Library General Public\n * License as publis...
575
0
{"language": "c", "success": true, "metadata": {"lines": 196, "avg_line_length": 32.34, "nodes": 404, "errors": 0, "source_hash": "b0082c9720270c689a25d628fa1cce18ae4555e4b1b585012def25a30e0ef003", "categorized_nodes": 227}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,847
c
// // UIViewController+YJKit.h // YJKit // // Created by 袁杰 on 17/1/1. // Copyright © 2017年 BiggerMax All rights reserved. // #import <UIKit/UIKit.h> @interface UIViewController (YJKit) + (UIViewController*)current; - (void)callback:(dispatch_block_t)callback; @end
21.5
12
(translation_unit) "//\n// UIViewController+YJKit.h\n// YJKit\n//\n// Created by 袁杰 on 17/1/1.\n// Copyright © 2017年 BiggerMax All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIViewController (YJKit)\n+ (UIViewController*)current;\n- (void)callback:(dispatch_block_t)callback;\n@end\n" (comment) ...
53
5
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 21.5, "nodes": 29, "errors": 0, "source_hash": "5d6b485496001ea2e69239bc8b0eed7310e1b84b9f95475ffb9af57c70ce39ff", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <UIKit/UI...
10,848
c
// WARNING in __mutex_unlock_slowpath // https://syzkaller.appspot.com/bug?id=48781c4af80aa18724ffca7a0be2e8055dfd5315 // status:fixed // autogenerated by syzkaller (http://github.com/google/syzkaller) #define _GNU_SOURCE #include <endian.h> #include <stdint.h> #include <string.h> #include <sys/syscall.h> #include <un...
24.79
61
(translation_unit) "// WARNING in __mutex_unlock_slowpath\n// https://syzkaller.appspot.com/bug?id=48781c4af80aa18724ffca7a0be2e8055dfd5315\n// status:fixed\n// autogenerated by syzkaller (http://github.com/google/syzkaller)\n\n#define _GNU_SOURCE\n#include <endian.h>\n#include <stdint.h>\n#include <string.h>\n#include...
559
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 24.79, "nodes": 347, "errors": 0, "source_hash": "5c151da1c288d8163cb35ff197f12566f7bd310043b20a8d9af9b1500a76e772", "categorized_nodes": 222}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ...
10,849
c
/*========================================================================= Program: Visualization Toolkit Module: TestImageDataLIC2D.h Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distributed WIT...
47.18
17
(translation_unit) "/*=========================================================================\n\n Program: Visualization Toolkit\n Module: TestImageDataLIC2D.h\n\n Copyright (c) <NAME>, <NAME>, <NAME>\n All rights reserved.\n See Copyright.txt or http://www.kitware.com/Copyright.htm for details.\n\n Thi...
32
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 47.18, "nodes": 21, "errors": 0, "source_hash": "eb6c0b0474c9ca4aa8091c4b00b3b87693fa7a3f5ac93c2e3f8844ccccad1ac7", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,850
c
#ifndef ALERTS_H #define ALERTS_H #include "../parsing/rule.h" #include <unistd.h> typedef struct{ // pid_t pid; // uint type; long type; char data[256]; } ipc_queue_mem; #define GAM_IPC 0x34 #define GAM_STDOUT 0x35 #define GAM_LOG 0x36 void format_msg(const struct rule_data...
32.54
28
(translation_unit) "#ifndef ALERTS_H\n#define ALERTS_H\n#include "../parsing/rule.h"\n#include <unistd.h>\n\ntypedef struct{\n // pid_t pid;\n // uint type;\n long type;\n char data[256];\n} ipc_queue_mem;\n\n#define GAM_IPC 0x34\n#define GAM_STDOUT 0x35\n#define GAM_LOG 0x36\n\n\nv...
206
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 32.54, "nodes": 138, "errors": 0, "source_hash": "bf14f4e72837486e22632cf9448476a1d226386b8f9f65db68766af76b6e7451", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,851
c
// // JCMediator.h // JCMediator_Example // // Created by JC on 2018/5/22. // Copyright © 2018年 lswh. All rights reserved. // #import <Foundation/Foundation.h> @interface JCMediator : NSObject + (instancetype)sharedInstance; /** 本地组件调用入口 @param targetName target名 @param actionName action名 @param params 杰...
24.25
36
(translation_unit) "//\n// JCMediator.h\n// JCMediator_Example\n//\n// Created by JC on 2018/5/22.\n// Copyright © 2018年 lswh. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface JCMediator : NSObject\n\n+ (instancetype)sharedInstance;\n\n/**\n 本地组件调用入口\n \n @param targetName target名\n @para...
138
19
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 24.25, "nodes": 87, "errors": 0, "source_hash": "97df30749c6149b96b4c4f93d6bd353284c7b2a9888dd6a62fa0d86631e0413d", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
10,852
c
#include <stdio.h> #include <fcntl.h> int open_it(const char *name); void die(char *); void die(char *msg) { fprintf(stderr, "DIE %s\n", msg); fflush(stderr); exit(-1); } int open_it(const char *name) { #define DOES_NOT_MATTER 0 int fd; fd = open(name, O_RDONLY, DOES_NOT_MATTER); if (fd < 0) { die(...
20.98
57
(translation_unit) "#include <stdio.h>\n#include <fcntl.h>\n\nint open_it(const char *name);\nvoid die(char *);\n\n\nvoid die(char *msg) \n{\n fprintf(stderr, "DIE %s\n", msg);\n fflush(stderr);\n exit(-1);\n}\n\nint open_it(const char *name)\n{\n#define DOES_NOT_MATTER 0\n int fd;\n fd = open(name, O_RDONLY, DOES...
406
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 20.98, "nodes": 219, "errors": 0, "source_hash": "72eed9f6739a0151494f1b060c1a6be4e5bea58d5590d45f05c776925f6f8da1", "categorized_nodes": 145}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,853
c
#include "heatshrink_encoder.h" int main() { #if HEATSHRINK_DYNAMIC_ALLOC heatshrink_encoder *hse = heatshrink_encoder_alloc(8, 7); heatshrink_encoder_reset(hse); heatshrink_encoder_free(hse); #else heatshrink_encoder hse; heatshrink_encoder_reset(&hse); #endif return 0; }
23.83
12
(translation_unit) "#include "heatshrink_encoder.h"\n\nint main() {\n#if HEATSHRINK_DYNAMIC_ALLOC\n heatshrink_encoder *hse = heatshrink_encoder_alloc(8, 7);\n heatshrink_encoder_reset(hse);\n heatshrink_encoder_free(hse);\n#else\n heatshrink_encoder hse;\n heatshrink_encoder_reset(&hse);\n#endif\n\n ...
74
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 23.83, "nodes": 45, "errors": 0, "source_hash": "286f0a0f8449a5c586474cf3657217e831d16382109483bf1d7ce147cb9b1d7f", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
10,854
c
#include <stdio.h> /* Linear time Constant Space */ int linear(int n){ int a = 0, b = 1, c = n; for(int i = 2; i <= n; i++){ c = (a+b) % 100; a = b; b = c; } return c; } int main(){ int n; scanf("%d", &n); printf("%d",linear(n)); return 0; }
11.9
20
(translation_unit) "#include <stdio.h>\n/*\n Linear time\n Constant Space\n*/\nint linear(int n){\n\n int a = 0, b = 1, c = n;\n for(int i = 2; i <= n; i++){\n c = (a+b) % 100;\n a = b;\n b = c;\n }\n return c;\n}\n\nint main(){\n int n;\n scanf("%d", &n);\n printf("%d",linear(n));\n return 0;\n}\n" (preproc_inclu...
139
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 11.9, "nodes": 84, "errors": 0, "source_hash": "4eefc4a985a4c00c4cc04c128cf7db4960f73c19f65e1f7528ad4a1d5a6b92fc", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
10,855
c
#define MNTPATHLEN 1024 #define MNTNAMLEN 255 #define FHSIZE 32 typedef char fhandle[FHSIZE]; bool_t xdr_fhandle(); struct fhstatus { u_int fhs_status; union { fhandle fhs_fhandle; } fhstatus_u; }; typedef struct fhstatus fhstatus; bool_t xdr_fhstatus(); typedef char *dirpath; bool_t xdr_di...
18.88
80
(translation_unit) "#define MNTPATHLEN 1024 \n#define MNTNAMLEN 255 \n#define FHSIZE 32 \n \ntypedef char fhandle[FHSIZE]; \nbool_t xdr_fhandle(); \n \n \nstruct fhstatus { \n u_int fhs_status; \n union { \n fhandle fhs_fhandle; \n } fhstatus_u; \n}; \ntypedef struct fhstatus fhstatus; \nbool_t xdr_fhstatus(); \n \n \...
367
0
{"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 18.88, "nodes": 273, "errors": 0, "source_hash": "0b6b34cfd78e8cba1b965584d50c1bb65db5301582bfd2fd8a5b497598f9cb00", "categorized_nodes": 172}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ...
10,856
c
#ifndef _EXCEPTION_H #define _EXCEPTION_H #include "thread.h" #endif
13
5
(translation_unit) "#ifndef _EXCEPTION_H\n#define _EXCEPTION_H\n\n\n#include "thread.h"\n\n#endif\n" (preproc_ifdef) "#ifndef _EXCEPTION_H\n#define _EXCEPTION_H\n\n\n#include "thread.h"\n\n#endif" (#ifndef) "#ifndef" (identifier) "_EXCEPTION_H" (preproc_def) "#define _EXCEPTION_H\n" (#define) "#defi...
14
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 13.0, "nodes": 10, "errors": 0, "source_hash": "4deee1188757f4b2784324ea0ced776e501e75c34978546524b35262c8372f10", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef\t_E...
10,857
c
#ifndef _COG_MATH_H_ #define _COG_MATH_H_ #include "CogVector2.h" #include "CogVector3.h" #include "cogvector4.h" #include "cogquaternion.h" #include "cogmatrix2.h" #include "cogmatrix3.h" #include "cogmatrix4.h" #include "cogbezier2.h" #include "cogbezier3.h" #include "cogcatmullrom2.h" #include "cogcatmullrom3.h...
20.82
22
(translation_unit) "#ifndef _COG_MATH_H_\n#define _COG_MATH_H_\n\n#include "CogVector2.h"\n#include "CogVector3.h"\n#include "cogvector4.h"\n\n#include "cogquaternion.h"\n\n#include "cogmatrix2.h"\n#include "cogmatrix3.h"\n#include "cogmatrix4.h"\n\n#include "cogbezier2.h"\n#include "cogbezier3.h"\n\n#include "cogcatmu...
116
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 20.82, "nodes": 61, "errors": 0, "source_hash": "73f89874d033fb974cfbc06e08a8255f254da8410f2ca915f8bc26be3e385345", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,858
c
#ifndef EDGETPU_CPP_TOOLS_PARTITIONER_STRATEGY_H_ #define EDGETPU_CPP_TOOLS_PARTITIONER_STRATEGY_H_ #include <vector> #include "absl/container/flat_hash_set.h" #include "tensorflow/lite/schema/schema_generated.h" namespace coral { // Describes a segment of a tflite graph. struct SegmentConfig { // Indices of oper...
42.05
21
(translation_unit) "#ifndef EDGETPU_CPP_TOOLS_PARTITIONER_STRATEGY_H_\n#define EDGETPU_CPP_TOOLS_PARTITIONER_STRATEGY_H_\n\n#include <vector>\n\n#include "absl/container/flat_hash_set.h"\n#include "tensorflow/lite/schema/schema_generated.h"\n\nnamespace coral {\n\n// Describes a segment of a tflite graph.\nstruct Segme...
125
7
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 42.05, "nodes": 79, "errors": 0, "source_hash": "4ea73e80cd32d98a1c61a2848a1b81538f3de2f884cac565862cd9f72033f73b", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,859
c
#include "private.h" #include "entities_generated.h" static bool istextchar(int ch) { /* not really sure if this is actually necessary */ if(strchr("<>+`;\"'", ch) || (isprint(ch) == 0)) { return false; } return true; } static void* fnpre(FILE* infh, FILE* outfh) { (void)infh; (vo...
25.14
71
(translation_unit) "#include "private.h"\n#include "entities_generated.h"\n\nstatic bool istextchar(int ch)\n{\n /* not really sure if this is actually necessary */\n if(strchr("<>+`;\"'", ch) || (isprint(ch) == 0))\n {\n return false;\n }\n return true;\n}\n\nstatic void* fnpre(FILE* infh, FILE* ...
536
0
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 25.14, "nodes": 314, "errors": 0, "source_hash": "bf94468fb048d6ac8c9b867e59b074cf7c760850f61fa1cc9f39d989f7cbd698", "categorized_nodes": 224}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,860
c
#include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "matrice.h" void matrice_print(matrice *m) { assert(m && m-> data); printf("Matrice %ux%u:\n", m->height, m->width); for (uint i=0; i<m->height; i++) { printf ("[ "); for(uint j=0; j<m->width; j++) { printf("%u ", MATR...
22.99
83
(translation_unit) "#include <assert.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#include "matrice.h"\n\n\nvoid matrice_print(matrice *m)\n{\n assert(m && m-> data);\n\n printf("Matrice %ux%u:\n", m->height, m->width);\n for (uint i=0; i<m->height; i++) {\n printf ("[ ");\n for(uint j=0; j<m->...
938
0
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 22.99, "nodes": 594, "errors": 0, "source_hash": "d044ea9650b4e8d3fafe4c6e08e20cb9047017ff1b4b78ee0da505324dcbce35", "categorized_nodes": 443}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,861
c
// Copyright (c) 2015 fjz13. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. #pragma once #include "MedusaPreDeclares.h" #include "Core/Geometry/Rect2.h" #include "Core/Geometry/Point2.h" #include "Core/Collection/Array.h" MEDUSA_BEGIN; #pra...
24.59
71
(translation_unit) "// Copyright (c) 2015 fjz13. All rights reserved.\n// Use of this source code is governed by a MIT-style\n// license that can be found in the LICENSE file.\n#pragma once\n#include "MedusaPreDeclares.h"\n#include "Core/Geometry/Rect2.h"\n#include "Core/Geometry/Point2.h"\n#include "Core/Collection/Ar...
479
13
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 24.59, "nodes": 281, "errors": 0, "source_hash": "62288af247e806e98a956e690f52018975e948f24f966739f35acd3c5b90244c", "categorized_nodes": 189}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
10,862
c
/* * * Copyright (C) 2012 ITE TECH. INC. All Rights Reserved. * */ #pragma once #ifdef __cplusplus extern "C" { #endif typedef void (*IDBCALLBACK)(void* data); int idbIsRunning(); int idbIsConnected(); int idbSend2Host(void* data, int size, int wait); int idbSend2HostAsync(void* data, int size, int wait); int...
21.17
18
(translation_unit) "/*\n *\n * Copyright (C) 2012 ITE TECH. INC. All Rights Reserved.\n *\n */\n\n #pragma once\n\n#ifdef __cplusplus\nextern "C" {\n#endif\ntypedef void (*IDBCALLBACK)(void* data);\nint idbIsRunning();\nint idbIsConnected();\nint idbSend2Host(void* data, int size, int wait);\nint idbSend2HostAsync(v...
116
1
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 21.17, "nodes": 81, "errors": 0, "source_hash": "d86ed89678b3ada64c7dc7dcb385a9607ae76bbaf330b2a59ab5f721b44ca1d6", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
10,863
c
// Copyright (c) 2015-2018 <NAME> (at gmail dot com) // This file is distributed under the MIT License. #ifndef OFP_QUEUERANGE_H_ #define OFP_QUEUERANGE_H_ #include "ofp/protocolrange.h" #include "ofp/queue.h" namespace ofp { class Writable; using QueueIterator = ProtocolIterator<Queue, ProtocolIteratorType::Queue...
34.14
29
(translation_unit) "// Copyright (c) 2015-2018 <NAME> (at gmail dot com)\n// This file is distributed under the MIT License.\n\n#ifndef OFP_QUEUERANGE_H_\n#define OFP_QUEUERANGE_H_\n\n#include "ofp/protocolrange.h"\n#include "ofp/queue.h"\n\nnamespace ofp {\n\nclass Writable;\n\nusing QueueIterator = ProtocolIterator<Q...
174
8
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 34.14, "nodes": 112, "errors": 0, "source_hash": "9c4ac345bdff380f00101db53b562c25ed831ea755d6e432fb5d9d9bdab0bb4e", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,864
c
/* Unix SMB/CIFS implementation. async implementation of WINBINDD_PAM_CHNG_PSWD_AUTH_CRAP Copyright (C) <NAME> 2010 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 ...
35.31
101
(translation_unit) "/*\n Unix SMB/CIFS implementation.\n async implementation of WINBINDD_PAM_CHNG_PSWD_AUTH_CRAP\n Copyright (C) <NAME> 2010\n\n This program is free software; you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Fo...
794
4
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 35.31, "nodes": 504, "errors": 0, "source_hash": "4948eef70a28a4c578bd2feff9a030505f150d211c824de00c83c0c0dcf46010", "categorized_nodes": 377}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,865
c
// This is a personal academic project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com #include <systemCalls.h> #include <stdint.h> #include <lib.h> void *mallocCust(unsigned int qty) { return (void *)syscall(MALLOC, qty, 0, 0, 0, 0, 0); } void freeCu...
29.08
13
(translation_unit) "// This is a personal academic project. Dear PVS-Studio, please check it.\n// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com\n#include <systemCalls.h>\n#include <stdint.h>\n#include <lib.h>\n\nvoid *mallocCust(unsigned int qty)\n{\n return (void *)syscall(MALLOC, qty, 0,...
97
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 29.08, "nodes": 60, "errors": 0, "source_hash": "c61f0a7e110ef406eccb04ed38b3f9743ec870aa2bf385df0c91e55d6d166061", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
10,866
c
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2019 Arm Limited * Original author: <NAME> <<EMAIL>> */ #ifndef BTITEST_H #define BTITEST_H /* Trampolines for calling the test stubs: */ void call_using_br_x0(void (*)(void)); void call_using_br_x16(void (*)(void)); void call_using_blr(void (*)(void)); /...
25.47
19
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0 */\n/*\n * Copyright (C) 2019 Arm Limited\n * Original author: <NAME> <<EMAIL>>\n */\n\n#ifndef BTITEST_H\n#define BTITEST_H\n\n/* Trampolines for calling the test stubs: */\nvoid call_using_br_x0(void (*)(void));\nvoid call_using_br_x16(void (*)(void));\nvoid ca...
136
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 25.47, "nodes": 91, "errors": 0, "source_hash": "8301ed998ba0a3a9479c34b0d1bb0bbf637e9f4cac504089f39d723dff582dd8", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,867
c
#ifndef int_view_h #define int_view_h #include <cassert> #include <chuffed/core/sat-types.h> #include <chuffed/core/sat.h> // y = (-1)a*x + b // affine: type = 1*minus + 2*scale + 4*offset template <int type = 0> class IntView { public: IntVar *var; int a; int b; IntView(IntVar *v = NULL, int _a = 1, int _b = ...
25.58
257
(ERROR) "#ifndef int_view_h\n#define int_view_h\n\n#include <cassert>\n#include <chuffed/core/sat-types.h>\n#include <chuffed/core/sat.h>\n\n// y = (-1)a*x + b\n\n// affine: type = 1*minus + 2*scale + 4*offset\n\ntemplate <int type = 0>\nclass IntView {\npublic:\n IntVar *var;\n int a;\n int b;\n\n IntView(IntVar *v = ...
2,157
24
{"language": "c", "success": true, "metadata": {"lines": 257, "avg_line_length": 25.58, "nodes": 1097, "errors": 0, "source_hash": "8f64f4f9461c66a703cff51e20ba4a473772ae1a7a084992908141d5b6e7260d", "categorized_nodes": 758}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef int_view_h\n#de...
10,868
c
int orderG(){ return 36; } int sizeG(){ return 594;} int are_adjacent(int u, int v){ if(0<=u && 0<=v && u<orderG() && v<orderG()){ if (u>v) return (u-v)%12; else return (v-u)%12; } return 0; }
17.14
14
(translation_unit) "int orderG(){\n return 36;\n}\n\nint sizeG(){\n return 594;}\n\nint are_adjacent(int u, int v){\n if(0<=u && 0<=v && u<orderG() && v<orderG()){\n if (u>v)\n return (u-v)%12;\n else\n return (v-u)%12;\n }\n return 0;\n}\n\n\n\n\n\n" (function_defi...
125
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 17.14, "nodes": 80, "errors": 0, "source_hash": "328514dd6b4c4b264cf1a3814ffc4a4f17fb45bf61d0097dde353fdd1fc4c258", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "in...
10,869
c
#include <stdio.h> #include <stdlib.h> #include "vector_c.h" void * vector_memory_alloc(vector *v, VECTOR_C_CAP_TYPE size, int alloc) { VECTOR_C_CAP_TYPE reserved_size_total = ((VECTOR_C_CAP_TYPE)(size)); if(alloc!=0) { reserved_size_total+=v->reserved_pointer_offset; } else { reserved_size_total+=v->reserved...
23.38
184
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\n#include "vector_c.h"\n\nvoid * vector_memory_alloc(vector *v, VECTOR_C_CAP_TYPE size, int alloc)\n{\n VECTOR_C_CAP_TYPE reserved_size_total = ((VECTOR_C_CAP_TYPE)(size));\n if(alloc!=0)\n {\n reserved_size_total+=v->reserved_pointer_offset;\n } else {\n ...
1,670
0
{"language": "c", "success": true, "metadata": {"lines": 184, "avg_line_length": 23.38, "nodes": 1064, "errors": 0, "source_hash": "42a2e160f835a72553cfea6f0e063119e7054f0546da110776b76c5020256b11", "categorized_nodes": 755}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
10,870
c
/* This file is part of Into. * Copyright (C) Intopii 2013. * All rights reserved. * * Licensees holding a commercial Into license may use this file in * accordance with the commercial license agreement. Please see * LICENSE.commercial for commercial licensing terms. * * Alternatively, this file may be used und...
30.94
51
(translation_unit) "/* This file is part of Into.\n * Copyright (C) Intopii 2013.\n * All rights reserved.\n *\n * Licensees holding a commercial Into license may use this file in\n * accordance with the commercial license agreement. Please see\n * LICENSE.commercial for commercial licensing terms.\n *\n * Alternativel...
195
8
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 30.94, "nodes": 123, "errors": 0, "source_hash": "58534214e023fade87c7ca10227c45b1c5307832ad9f9779cad59474d210342e", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,871
c
// // MySection2.h // TableViewDemo // // Created by caoyangmin on 15/12/15. // #import <UIKit/UIKit.h> #import "CYMTableViewSection.h" /** 测试section2*/ @interface MySection2 : CYMTableViewSection<UITableViewDataSource> @end
19.73
11
(translation_unit) "//\n// MySection2.h\n// TableViewDemo\n//\n// Created by caoyangmin on 15/12/15.\n//\n\n#import <UIKit/UIKit.h>\n#import "CYMTableViewSection.h"\n/** 测试section2*/\n@interface MySection2 : CYMTableViewSection<UITableViewDataSource>\n\n@end\n" (comment) "//" (comment) "// MySection2.h" (comm...
28
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 19.73, "nodes": 18, "errors": 0, "source_hash": "2779d1f80ed5846e5e2d341c7eab0ab610eb753ee90e7ee304f65a0aa8fa9d7b", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <U...
10,872
c
/* * $Id: math_ceilf.c,v 1.3 2006-01-08 12:04:23 obarthel Exp $ * * :ts=4 * * Portable ISO 'C' (1994) runtime library for the Amiga computer * Copyright (c) 2002-2015 by <NAME> <obarthel (at) gmx.net> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification,...
35.73
81
(translation_unit) "/*\n * $Id: math_ceilf.c,v 1.3 2006-01-08 12:04:23 obarthel Exp $\n *\n * :ts=4\n *\n * Portable ISO 'C' (1994) runtime library for the Amiga computer\n * Copyright (c) 2002-2015 by <NAME> <obarthel (at) gmx.net>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, wit...
308
0
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 35.73, "nodes": 174, "errors": 0, "source_hash": "dab493fe84cf40bea081ec3e8e1a5c059ec496f95b5f5320613618d010c7b40b", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,873
c
#ifndef TESTING_H #define TESTING_H #include "common.h" #include "utils.h" #include <deque> /***************************************************** * class: Testing * * Attributes and functionality of infection testing * *****************************************************/ class Testing{ public: // // ...
31.24
80
(translation_unit) "#ifndef TESTING_H\n#define TESTING_H\n\n#include "common.h"\n#include "utils.h"\n#include <deque>\n\n/***************************************************** \n * class: Testing\n * \n * Attributes and functionality of infection testing \n * \n *****************************************************/\n\...
330
7
{"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 31.24, "nodes": 186, "errors": 0, "source_hash": "7043ce9ae33e89f5b209ffab477b66d631d5c8ee844d0154b5f8ad6dc43837e9", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,874
c
/*P10.11 Program to print the strings of the two-dimensional character array*/ #include<stdio.h> #define N 5 #define LEN 10 int main(void) { char arr[N][LEN]={ "white", "red", "green", "yellow", "blue" }; int i; for(i=0; i<N; i++) { printf("String=%s\t",arr[i...
17.43
21
(translation_unit) "/*P10.11 Program to print the strings of the two-dimensional character array*/ \n#include<stdio.h> \n#define N 5 \n#define LEN 10 \nint main(void) \n{ \n char arr[N][LEN]={ \n "white", \n "red", \n "green", \n "yellow", \n "blue" \n }; \n int i; \n for(i=0; i<N; i++)...
130
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 17.43, "nodes": 66, "errors": 0, "source_hash": "9dd27644c989d9ef4089fffb86facd51938c8ced6fb408ec4b19ffa7d598b801", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
10,875
c
// Room: /d/yanping/baoyunsi.c // Date: Sep 28, 2002 Winder inherit ROOM; void create() { set("short", "寶雲寺"); set("long", @LONG 寶雲寺位於九峯山上,始建於唐朝龍紀元年,原名南峯普濟院,元 代改稱“三寺”,遂有“三寺雲深”景名。寺廟宏偉富麗,金碧輝煌, 寺旁古木參天,夕雲起處,若隱若現。 LONG ); set("exits", ([ "northdown" : __DIR__"9fengshan", ])...
23
24
(translation_unit) "// Room: /d/yanping/baoyunsi.c\n// Date: Sep 28, 2002 Winder\n\ninherit ROOM;\n\nvoid create()\n{\n set("short", "寶雲寺");\n set("long", @LONG\n寶雲寺位於九峯山上,始建於唐朝龍紀元年,原名南峯普濟院,元\n代改稱“三寺”,遂有“三寺雲深”景名。寺廟宏偉富麗,金碧輝煌,\n寺旁古木參天,夕雲起處,若隱若現。\nLONG );\n set("exits", ([\n "northdown...
203
19
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 23.0, "nodes": 93, "errors": 0, "source_hash": "a33d3cf15d475b784b300339531462389ec6a9c711fa5a4868b7cc7130e48015", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "inherit ROO...
10,876
c
#pragma once //src : https://github.com/bhhbazinga/LockFreeLinkedList #include <atomic> #include <cstdio> #include <iostream> #include "reclaimer.h" template <typename T> class ListReclaimer; template <typename T> class LockFreeLinkedList { static_assert(std::is_copy_constructible_v<T>, "T requires copy constru...
35.68
283
(translation_unit) "#pragma once\n\n//src : https://github.com/bhhbazinga/LockFreeLinkedList\n\n#include <atomic>\n#include <cstdio>\n\n#include <iostream>\n\n#include "reclaimer.h"\n\ntemplate <typename T>\nclass ListReclaimer;\n\ntemplate <typename T>\nclass LockFreeLinkedList {\n static_assert(std::is_copy_construc...
2,870
133
{"language": "c", "success": true, "metadata": {"lines": 283, "avg_line_length": 35.68, "nodes": 1730, "errors": 0, "source_hash": "34291084ae6fec27c5bd8fe6e0138749a44b60a0dd6cf53f3b36cf6d8437d9cf", "categorized_nodes": 1185}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pra...
10,877
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" #import "NSCopying.h" @class NSData, NSString; @interface ABCNPhoto : NSObject <NSCopying> { NSString *_identifier; NSData *_imageData; struct CGRect _...
32.57
23
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n#import "NSCopying.h"\n\n@class NSData, NSString;\n\n@interface ABCNPhoto : NSObject <NSCopying>\n{\n NSString *_identifier;\n NSDa...
204
21
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 32.57, "nodes": 132, "errors": 0, "source_hash": "dd243c3c0a7598e81dc7230905c86e3ee8b2baf96eeb685cdc2da9c4e198be78", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
10,878
c
/** * Copyright 2017 Comcast Cable Communications Management, LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
32.33
24
(translation_unit) "/**\n * Copyright 2017 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICE...
36
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 32.33, "nodes": 27, "errors": 0, "source_hash": "985abf9fb70e34d05f223074cfa8535402f30a03373995528ec0c29c2a48914c", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,879
c
/* Copyright (C) 2013 by <NAME> <<EMAIL>> This file is part of Tox Qt GUI. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at you...
28.77
52
(translation_unit) "/*\n Copyright (C) 2013 by <NAME> <<EMAIL>>\n \n This file is part of Tox Qt GUI.\n \n This program is free software: you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of ...
224
9
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 28.77, "nodes": 139, "errors": 0, "source_hash": "936970bb4d395d44f4c51566f3f993c4138e4f58b56fd2b2f2b345671de99e72", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,880
c
/***************************************************************************//** * @file * @brief Temperature sensor driver for DS75 temperature sensor compatible * device on the DK. * @version 5.3.2 ******************************************************************************* * # License * <b>Copyright 2015...
34.03
204
(translation_unit) "/***************************************************************************//**\n * @file\n * @brief Temperature sensor driver for DS75 temperature sensor compatible\n * device on the DK.\n * @version 5.3.2\n *******************************************************************************\n * # Li...
951
0
{"language": "c", "success": true, "metadata": {"lines": 204, "avg_line_length": 34.03, "nodes": 568, "errors": 0, "source_hash": "753de89b302ccb5a42b64ec8ec32edf6d0192aac10784c02ad419539f910f871", "categorized_nodes": 431}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,881
c
/***************************************************************** * uart.c * by <NAME>, <EMAIL> * University of Otago * ********************************************************************/ #include "types.h" #include "defs.h" #include "memlayout.h" #include "traps.h" #include "arm.h" #define GPF...
23.43
182
(translation_unit) "/*****************************************************************\n* uart.c\n* by <NAME>, <EMAIL>\n* University of Otago\n*\n********************************************************************/\n\n\n\n#include "types.h"\n#include "defs.h"\n#include "memlayout.h"\n#include "traps....
1,254
0
{"language": "c", "success": true, "metadata": {"lines": 182, "avg_line_length": 23.43, "nodes": 763, "errors": 0, "source_hash": "a8e13236d6ccba53708189577ed84502f80b4664326b2d7e7c6ac96d6cd47dde", "categorized_nodes": 532}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,882
c
#ifndef VOLUMETRIC_DECAL_H_ #define VOLUMETRIC_DECAL_H_ #ifndef CLUSTERER_BINDLESS #define CLUSTERER_BINDLESS #endif #extension GL_EXT_nonuniform_qualifier : require #include "clusterer_bindless_buffers.h" #include "../inc/subgroup_extensions.h" layout(std430, set = 0, binding = BINDING_GLOBAL_CLUSTER_BITMASK_DECAL)...
36.87
71
(translation_unit) "#ifndef VOLUMETRIC_DECAL_H_\n#define VOLUMETRIC_DECAL_H_\n\n#ifndef CLUSTERER_BINDLESS\n#define CLUSTERER_BINDLESS\n#endif\n\n#extension GL_EXT_nonuniform_qualifier : require\n#include "clusterer_bindless_buffers.h"\n#include "../inc/subgroup_extensions.h"\n\nlayout(std430, set = 0, binding = BINDIN...
796
5
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 36.87, "nodes": 558, "errors": 0, "source_hash": "0621f6d495451f1fe755eece6a5c99d592d30ce96405a8fc5a0cc0eebb86b3b2", "categorized_nodes": 407}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,883
c
#ifndef STACK_H_ #define STACK #include "structure/list.h" struct Stack : public List { virtual Node *setPrev(Node *head) { return head; } virtual Node *setNext(Node *head) { return head->_next; } }; #endif
15.47
15
(translation_unit) "#ifndef STACK_H_\n#define STACK\n\n#include "structure/list.h"\n\nstruct Stack : public List\n{\n\n virtual Node *setPrev(Node *head)\n {\n return head;\n }\n\n virtual Node *setNext(Node *head)\n {\n return head->_next;\n }\n};\n\n#endif" (preproc_ifdef) "#ifndef S...
76
3
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 15.47, "nodes": 50, "errors": 0, "source_hash": "fb8a1a9dd4376c580327dcf415080d8133b10cc8c21363a681bea5b87c4e97c5", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,884
c
// // Created by krab1k on 23/10/18. // #pragma once #include <string> #include <utility> class Element { size_t Z_{}; std::string symbol_; std::string name_; double electronegativity_{}; double covalent_radius_{}; double vdw_radius_{}; int period_{}; int group_{}; double electro...
44.81
37
(translation_unit) "//\n// Created by krab1k on 23/10/18.\n//\n\n#pragma once\n\n#include <string>\n#include <utility>\n\n\nclass Element {\n size_t Z_{};\n std::string symbol_;\n std::string name_;\n double electronegativity_{};\n double covalent_radius_{};\n double vdw_radius_{};\n int period_{};...
495
28
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 44.81, "nodes": 276, "errors": 0, "source_hash": "09714d1db87612c7a207ea26ddfcc787b0a814ae221ecd2202ef98581803e91a", "categorized_nodes": 173}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
10,885
c
/* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class com_breadwallet_core_BRCoreWallet */ #ifndef _Included_com_breadwallet_core_BRCoreWallet #define _Included_com_breadwallet_core_BRCoreWallet #ifdef __cplusplus extern "C" { #endif /* * Class: com_breadwallet_core_BRCoreWall...
34.09
264
(translation_unit) "/* DO NOT EDIT THIS FILE - it is machine generated */\n#include <jni.h>\n/* Header for class com_breadwallet_core_BRCoreWallet */\n\n#ifndef _Included_com_breadwallet_core_BRCoreWallet\n#define _Included_com_breadwallet_core_BRCoreWallet\n#ifdef __cplusplus\nextern "C" {\n#endif\n/*\n * Class: c...
839
0
{"language": "c", "success": true, "metadata": {"lines": 264, "avg_line_length": 34.09, "nodes": 585, "errors": 0, "source_hash": "5355c3784cbffae5e418fbd6988f2eb83452bda313195a17a87af07e75939ed4", "categorized_nodes": 473}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,886
c
int max2(int a, int b){ return a>b ? a : b; }
15.67
3
(translation_unit) "int max2(int a, int b){\n return a>b ? a : b;\n}" (function_definition) "int max2(int a, int b){\n return a>b ? a : b;\n}" (primitive_type) "int" (function_declarator) "max2(int a, int b)" (identifier) "max2" (parameter_list) "(int a, int b)" (() "(" (para...
30
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 15.67, "nodes": 20, "errors": 0, "source_hash": "80912ea6f4570ffbc952a4cc91a9ce8699d68f08db3e50ecccf0ea872d5dbebd", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "int...
10,887
c
#pragma once #include "../object.h" #include "container.h" class Tree : public Object { public: Tree() : children(Object::create<List<ref<Tree>>>()) {} weakref<Tree> parent; ref<List<ref<Tree>>> children; option<String> info; virtual void ps(std::ostream &ss) { lateref<...
24.91
34
(translation_unit) "#pragma once \n \n#include "../object.h" \n#include "container.h" \n \nclass Tree : public Object \n{ \npublic: \n Tree() : children(Object::create<List<ref<Tree>>>()) {} \n weakref<Tree> parent; \n ref<List<ref<Tree>>> children; \n option<String> info; \n \n virtual void ps(std::ostr...
302
17
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 24.91, "nodes": 197, "errors": 0, "source_hash": "d41445e0807ebcfc2da1088258a013c6020c8ef13ee4de3fe736b360eb8a2a20", "categorized_nodes": 129}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
10,888
c
/* * AbstractStreamProvider.h * * Copyright (C) 2019 by Universitaet Stuttgart (VIS). * Alle Rechte vorbehalten. */ #pragma once #include "mmcore/CallerSlot.h" #include "mmcore/job/AbstractTickJob.h" #include <iostream> namespace megamol { namespace core { /** * Provides a stream. * * @author <NAME> */ cla...
19.36
56
(translation_unit) "/*\n * AbstractStreamProvider.h\n *\n * Copyright (C) 2019 by Universitaet Stuttgart (VIS).\n * Alle Rechte vorbehalten.\n */\n#pragma once\n\n#include "mmcore/CallerSlot.h"\n#include "mmcore/job/AbstractTickJob.h"\n\n#include <iostream>\n\nnamespace megamol {\nnamespace core {\n\n/**\n * Provides a...
138
7
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 19.36, "nodes": 73, "errors": 0, "source_hash": "0826da95cb0f6a454871ecfdf1b1c3aaa46bca7cf89164539d9452a93d083dba", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
10,889
c
#pragma once #include <string> #include <itkImageFileReader.h> #include <itkImageFileWriter.h> #include <itkThresholdImageFilter.h> #include <macros.hpp> #include <reg_pipe.h> namespace threshold { struct pipe : public gipp::i_pipe { int operator()(int argc, char** argv) override; }; templa...
25.93
41
(translation_unit) "#pragma once\n\n#include <string>\n\n#include <itkImageFileReader.h>\n#include <itkImageFileWriter.h>\n#include <itkThresholdImageFilter.h>\n\n#include <macros.hpp>\n#include <reg_pipe.h>\n\nnamespace threshold\n{\n struct pipe : public gipp::i_pipe\n {\n int operator()(int argc, char**...
280
17
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 25.93, "nodes": 180, "errors": 0, "source_hash": "48c6f4f643ee3f89899608bb219d94123e1f200de5a660ef1e469d90f6f0f963", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
10,890
c
#pragma once #ifndef BLAZE_MOUSEINPUT_H #define BLAZE_MOUSEINPUT_H #include <Blaze/Core.h> #include <Blaze/Window.h> #include <Blaze/InputBase.h> #include <bitset> namespace Blaze { class MouseInput { public: inline MouseInput() = default; inline MouseInput(const MouseInput& other) :m_window(other.m_windo...
35.86
96
(translation_unit) "#pragma once\n\n#ifndef BLAZE_MOUSEINPUT_H\n#define BLAZE_MOUSEINPUT_H\n\n#include <Blaze/Core.h>\n#include <Blaze/Window.h>\n#include <Blaze/InputBase.h>\n\n#include <bitset>\n\nnamespace Blaze\n{\n class MouseInput\n {\n public:\n inline MouseInput() = default;\n inline MouseInput(const MouseInp...
1,056
49
{"language": "c", "success": true, "metadata": {"lines": 96, "avg_line_length": 35.86, "nodes": 623, "errors": 0, "source_hash": "db19990d65504a28d76220375208f06ffcff4626e9bbfb2a0214c535bd6f99b9", "categorized_nodes": 446}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
10,891
c
#pragma once #include "chat_server.h" #include "chat_ui.h" #include <string> #include <vector> #include <sstream> #include <iterator> namespace ChatApp { class CommandHandler { public: static void handle(std::string command, std::vector<std::string> args, ChatApp::ChatUI * chat_ui, ChatApp::ChatServer ...
38.18
33
(translation_unit) "#pragma once\n\n#include "chat_server.h"\n#include "chat_ui.h"\n\n#include <string>\n#include <vector>\n#include <sstream>\n#include <iterator>\n\nnamespace ChatApp {\n\n class CommandHandler {\n\n public:\n static void handle(std::string command, std::vector<std::string> args, ChatApp::Cha...
403
10
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 38.18, "nodes": 221, "errors": 0, "source_hash": "8b173d53125e334a99b4b0c65848b152ed2ec9df2acf2c6c8eb8452953f9f93e", "categorized_nodes": 159}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
10,892
c
// PARAM: --set ana.activated "['base','threadid','threadflag','escape','mallocWrapper']" extern void f_everything_up(); struct s { void (*f)(void); int data; } s; void hello(){ //is it me your looking for ... assert(1); } int g = 0; void (*fp)(void) = &hello; int main(){ s.f = &hello; assert(s.f == &hello); ...
19.64
22
(translation_unit) "// PARAM: --set ana.activated "['base','threadid','threadflag','escape','mallocWrapper']"\nextern void f_everything_up();\n\nstruct s {\n void (*f)(void);\n int data;\n} s;\n\nvoid hello(){\n //is it me your looking for ...\n assert(1);\n}\n\nint g = 0;\nvoid (*fp)(void) = &hello;\n\nint main(){\n s...
186
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 19.64, "nodes": 111, "errors": 0, "source_hash": "5b483a2433d8f1fffbaf4d8196064acef2b9508791ea25093a54183380137125", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern vo...
10,893
c
/* Copyright (c) 2018 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #ifndef STORAGE_QUERYBOUNDPROCESSOR_H_ #define STORAGE_QUERYBOUNDPROCESSOR_H_ #include "base/Base.h" #include <gtest/gt...
40.79
42
(translation_unit) "/* Copyright (c) 2018 vesoft inc. All rights reserved.\n *\n * This source code is licensed under Apache 2.0 License,\n * attached with Common Clause Condition 1.0, found in the LICENSES directory.\n */\n\n#ifndef STORAGE_QUERYBOUNDPROCESSOR_H_\n#define STORAGE_QUERYBOUNDPROCESSOR_H_\n\n#include "ba...
292
18
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 40.79, "nodes": 176, "errors": 0, "source_hash": "dba3cb147daf1a1b1e935705968e556d3c5b32a3432d384ade238b1ef987b042", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,894
c
/*=========================================== GRRLIB Spot Light Sample Code ============================================*/ #include <grrlib.h> #include <stdlib.h> #include <math.h> #include <wiiuse/wpad.h> #include "Snap_ITC_12.h" int main(int argc, char **argv) { f32 lightx=0.0f; GRRLIB_Init(); ...
38.78
37
(translation_unit) "/*===========================================\n GRRLIB\n Spot Light Sample Code\n============================================*/\n#include <grrlib.h>\n\n#include <stdlib.h>\n#include <math.h>\n#include <wiiuse/wpad.h>\n\n#include "Snap_ITC_12.h"\n\nint main(int argc, char **argv) {\n f32 li...
452
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 38.78, "nodes": 253, "errors": 0, "source_hash": "a2af354148b979e72b13b794b21c9a1baa7252654233efb1c9a4454552642466", "categorized_nodes": 193}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,895
c
#include "types.h" #include "stat.h" #include "pstat.h" #include "user.h" int main(int argc, char *argv[]) { if(argc <= 1) { printf(2, "No pid provided!\n"); printf(2, "Usage: getpinfotest <pid>\n"); } else { int x = atoi(argv[1]); printf(2, "Printing info for pid %d [", x);...
31.62
26
(translation_unit) "#include "types.h"\n#include "stat.h"\n#include "pstat.h"\n#include "user.h"\n\nint main(int argc, char *argv[]) {\n if(argc <= 1) {\n printf(2, "No pid provided!\n");\n printf(2, "Usage: getpinfotest <pid>\n");\n }\n else {\n int x = atoi(argv[1]);\n printf(2, "...
298
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 31.62, "nodes": 153, "errors": 0, "source_hash": "2655cdadba5792a0697006ff9a7f551eb6796ab14fba88e5afdd3b3c975e6d20", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,896
c
/* * Copyright (C) 2017 Intel Corporation. * Copyright (c) 2017, Fuzhou Rockchip Electronics Co., Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
37.17
64
(translation_unit) "/*\n * Copyright (C) 2017 Intel Corporation.\n * Copyright (c) 2017, Fuzhou Rockchip Electronics Co., Ltd\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * ...
466
27
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 37.17, "nodes": 301, "errors": 0, "source_hash": "27ead056b0cfc5ae6afba9da1e941baa3c3f66757a20bfd5eccb485d88584a9c", "categorized_nodes": 208}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,897
c
// // VRTSkybox.h // React // // Created by <NAME> on 10/5/16. // Copyright © 2016 Viro Media. All rights reserved. // #import <Foundation/Foundation.h> #import <React/RCTImageSource.h> #import "VRTControl.h" #import "VRTCubeMap.h" #import "VRTImageAsyncLoaderEventDelegate.h" @interface VRTSkybox : VRTControl<VRT...
33.45
20
(translation_unit) "//\n// VRTSkybox.h\n// React\n//\n// Created by <NAME> on 10/5/16.\n// Copyright © 2016 Viro Media. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <React/RCTImageSource.h>\n#import "VRTControl.h"\n#import "VRTCubeMap.h"\n#import "VRTImageAsyncLoaderEventDelegate.h"\n\n@in...
127
23
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 33.45, "nodes": 88, "errors": 0, "source_hash": "873e1520ae352120a7978d3f9e80afb026030452a33995a32dbe823b73c9800f", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
10,898
c
#include <ctype.h> #include <stdbool.h> #include <stdlib.h> #include <string.h> bool all_of(char *word, int *hash, int row) { for (; *word; ++word) { if (hash[toupper(*word) - 'A'] != row) return false; } return true; } /** * Note: The returned array must be malloced, assume caller calls free(). */ char **...
23.62
34
(translation_unit) "#include <ctype.h>\n#include <stdbool.h>\n#include <stdlib.h>\n#include <string.h>\n\nbool all_of(char *word, int *hash, int row)\n{\n for (; *word; ++word)\n {\n if (hash[toupper(*word) - 'A'] != row)\n return false;\n }\n return true;\n}\n\n/**\n * Note: The returned array must be malloced, ass...
378
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 23.62, "nodes": 245, "errors": 0, "source_hash": "6ead9c61c78f794a3422919475b23cbc06762944484ebaf5e41217093757dc1b", "categorized_nodes": 149}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,899