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
// // GHLogisticsTrackStatusModel.h // GHLogisticsTrack // // Created by mac on 2019/12/22. // Copyright © 2019 GHome. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface GHLogisticsTrackStatusModel : NSObject /** * 物流信息,比如:“【北京转运中心】 已发出 下一站 【北京市石景山区首钢分公司公司】” */ @prope...
24.1
21
(translation_unit) "//\n// GHLogisticsTrackStatusModel.h\n// GHLogisticsTrack\n//\n// Created by mac on 2019/12/22.\n// Copyright © 2019 GHome. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface GHLogisticsTrackStatusModel : NSObject\n\n/**\n * 物流信息,比如:“【北京转运中心】 已...
83
10
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 24.1, "nodes": 52, "errors": 0, "source_hash": "cf6c5c54a66bb3f47b59dec1fec91c646bb02c702f7b4d34e65f3b0c6a8e2575", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <Fo...
7,800
c
// Copyright (c) 2019-2020 Altronix Corp // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "fixture.h" #include "netw.h"...
26.31
72
(translation_unit) "// Copyright (c) 2019-2020 Altronix Corp\n// Distributed under the MIT software license, see the accompanying\n// file COPYING or http://www.opensource.org/licenses/mit-license.php.\n\n#include <stdbool.h>\n#include <stdint.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#include...
617
0
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 26.31, "nodes": 354, "errors": 0, "source_hash": "6a46348b1b6486a7b5817141eeb5bd3050d674260fc20edce4f86512bb65c0d2", "categorized_nodes": 221}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,801
c
//--------------------------------------------------------------------------- // // celement.h - This file contains the class declarations for the Elements // //---------------------------------------------------------------------------// // Copyright (C) Microsoft Corporation. All rights reserved. // /...
29.03
31
(translation_unit) "//---------------------------------------------------------------------------\n//\n// celement.h - This file contains the class declarations for the Elements\n//\n//---------------------------------------------------------------------------//\n// Copyright (C) Microsoft Corporation. All rights reser...
102
3
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 29.03, "nodes": 59, "errors": 0, "source_hash": "786d04406926f5fb4a3fcf80727b2b5b71080b452e89228dfd465c3a100d6324", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,802
c
//**********************************************************************; // Copyright (c) 2016, Intel Corporation // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // 1. Redistributions of s...
38.69
70
(translation_unit) "//**********************************************************************;\n// Copyright (c) 2016, Intel Corporation\n// All rights reserved.\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are met:\n//\...
387
0
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 38.69, "nodes": 223, "errors": 0, "source_hash": "91b7bc8111bcd2913daf50c5662f90ce1c9ea81db5e8543e6979f71b9128968c", "categorized_nodes": 151}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,803
c
// BlueprintGeneratedClass GCL_BoostJumpPack_Hovering_Papaya.GCL_BoostJumpPack_Hovering_Papaya_C // Size: 0x930 (Inherited: 0x930) struct AGCL_BoostJumpPack_Hovering_Papaya_C : AGCL_BoostJumpPack_Hovering_Infinite_C { };
54.25
4
(translation_unit) "// BlueprintGeneratedClass GCL_BoostJumpPack_Hovering_Papaya.GCL_BoostJumpPack_Hovering_Papaya_C\n// Size: 0x930 (Inherited: 0x930)\nstruct AGCL_BoostJumpPack_Hovering_Papaya_C : AGCL_BoostJumpPack_Hovering_Infinite_C {\n};\n\n" (comment) "// BlueprintGeneratedClass GCL_BoostJumpPack_Hovering_Papa...
15
1
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 54.25, "nodes": 5, "errors": 0, "source_hash": "4941e0cecb599fc4c06bbcae8fca41c6b6f9aa0c1ee8b2e76eebcc2d4b2bb4b3", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "struc...
7,804
c
// // LPResumeStateApi+Categories.h // LeanplumTests // // Created by <NAME> on 10/22/19. // Copyright © 2019 Leanplum. All rights reserved. // #import "LPResumeStateApi.h" @interface LPResumeStateApi (Categories) + (void)validate_onResponse:(void (^)(NSDictionary *))response; + (void)swizzle_methods; @end
23.08
13
(translation_unit) "//\n// LPResumeStateApi+Categories.h\n// LeanplumTests\n//\n// Created by <NAME> on 10/22/19.\n// Copyright © 2019 Leanplum. All rights reserved.\n//\n\n#import "LPResumeStateApi.h"\n\n\n@interface LPResumeStateApi (Categories)\n\n+ (void)validate_onResponse:(void (^)(NSDictionary *))response;\n...
61
7
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 23.08, "nodes": 31, "errors": 0, "source_hash": "63840454ac104f108b226aaadc05e9d038d28a4bf19711a127bf239ce487094e", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"...
7,805
c
// // Yuwee.h // YuWee SDK // // Created by Tanay on 30/01/20. // Copyright © 2020 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import "UserManager.h" #import "ChatManager.h" #import "StatusManager.h" #import "ContactManager.h" #import "ConnectionManager.h" #import "NotificationManager.h" #im...
27.17
42
(translation_unit) "//\n// Yuwee.h\n// YuWee SDK\n//\n// Created by Tanay on 30/01/20.\n// Copyright © 2020 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "UserManager.h"\n#import "ChatManager.h"\n#import "StatusManager.h"\n#import "ContactManager.h"\n#import "ConnectionManager.h"\n#...
245
11
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 27.17, "nodes": 140, "errors": 0, "source_hash": "a24fd27a2535e68a432f278a64fba734547cd038fdb0c2c4ae74fb04abc5a78c", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <...
7,806
c
#include <stdio.h> #include <string.h> #include <gst/gst.h> /* author Pander */ static GMainLoop *loop; //TODO Not used yet, perhaps not needed at all when width and height are // retrieved in another way. /*static void read_video_props (GstCaps *caps) { gint width, height; const GstStructure *str; g_return_i...
32.09
207
(translation_unit) "#include <stdio.h>\n#include <string.h>\n#include <gst/gst.h>\n\n/* author Pander */\n\nstatic GMainLoop *loop;\n\n//TODO Not used yet, perhaps not needed at all when width and height are\n// retrieved in another way.\n/*static void\nread_video_props (GstCaps *caps)\n{\n gint width, height;\n cons...
1,470
0
{"language": "c", "success": true, "metadata": {"lines": 207, "avg_line_length": 32.09, "nodes": 766, "errors": 0, "source_hash": "a4b3f00a389ba762a6194e6939f0e0a2bd1a66720973eab8d0e9a5cf0d213ef6", "categorized_nodes": 520}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,807
c
#include "kernel_.h" inline rbf_distance_t fast_gaussianRBF(data_distance_t r, float epsilon) { data_distance_t p = epsilon * r; return (rbf_distance_t) exp((double) -p * p); } inline rbf_distance_t fast_multiquadricRBF(data_distance_t r, float epsilon) { data_distance_t p = epsilon * r; return (rbf_distance_t) s...
40.78
23
(translation_unit) "#include "kernel_.h"\n\ninline rbf_distance_t fast_gaussianRBF(data_distance_t r, float epsilon) {\n data_distance_t p = epsilon * r;\n return (rbf_distance_t) exp((double) -p * p);\n}\n\ninline rbf_distance_t fast_multiquadricRBF(data_distance_t r, float epsilon) {\n data_distance_t p = epsilon * r...
321
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 40.78, "nodes": 219, "errors": 0, "source_hash": "71c0ade2de09e3b424b0f18047e5e461283ef439aaec40923909b65d8fcb471c", "categorized_nodes": 156}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,808
c
// // demo-gamma.h // v8 // // Created by jie on 13-9-24. // Copyright (c) 2013年 jie. All rights reserved. // #ifndef v8_demo_gamma_h #define v8_demo_gamma_h int main_markup( int argc, char **argv ); #endif
18.18
11
(translation_unit) "//\n// demo-gamma.h\n// v8\n//\n// Created by jie on 13-9-24.\n// Copyright (c) 2013年 jie. All rights reserved.\n//\n\n#ifndef v8_demo_gamma_h\n#define v8_demo_gamma_h\n\nint main_markup( int argc, char **argv );\n\n#endif\n" (comment) "//" (comment) "// demo-gamma.h" (comment) "// v8" ...
34
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 18.18, "nodes": 22, "errors": 0, "source_hash": "424f1f015113f0f68d6a6efbd92f4537020570177c962afa29b1b7721bab98c9", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef v8...
7,809
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import <IBFoundation/IBICFolder.h> @interface IBICCatalog : IBICFolder { } - (void)replaceChildrenWithDiskContent:(id)arg1; - (BOOL)canBeEmbeddedInFolder; - (BOOL)canHaveChildren; - (i...
22.56
18
(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 <IBFoundation/IBICFolder.h>\n\n@interface IBICCatalog : IBICFolder\n{\n}\n\n- (void)replaceChildrenWithDiskContent:(id)arg1;\n- (BOOL)canBeEmbeddedInFold...
111
6
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 22.56, "nodes": 63, "errors": 0, "source_hash": "696e79dd96dc36c51a27d0f8465aef64a6b04df573df1c9d42a8c18b08a1f90b", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
7,810
c
#include "lmath.h" static inline double obj2double(obj_t *n) { // Taken from arith.c return n->type==INTEGER?(double)n->data.i:n->data.d; } #define FUNC_FROM_MATHFUNC_2(func) \ obj_t *l_##func(obj_t *x,obj_t *y) \ { \ bool type_err=false; \ type_err|=!type_check(x,INTEGER|DOUBLE,#func"(), arg 1: "); \ type_err|=!ty...
27
61
(translation_unit) "#include "lmath.h"\nstatic inline double obj2double(obj_t *n)\n{ // Taken from arith.c\n return n->type==INTEGER?(double)n->data.i:n->data.d;\n}\n#define FUNC_FROM_MATHFUNC_2(func) \\nobj_t *l_##func(obj_t *x,obj_t *y) \\n{ \\n bool type_err=false; \\n type_err|=!type_check(x,INTEGER|DOUBLE,#func"()...
437
3
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 27.0, "nodes": 254, "errors": 0, "source_hash": "d392d1516ef3c7d17c44110c4aae801be58700324bdba8a7f3a90fa9fdff1b1f", "categorized_nodes": 183}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
7,811
c
//=========== (C) Copyright 1999 Valve, L.L.C. All rights reserved. =========== // // The copyright to the contents herein is the property of Valve, L.L.C. // The contents may be used and/or copied only with the written permission of // Valve, L.L.C., or in accordance with the terms and conditions stipulated in // the ...
35.92
78
(translation_unit) "//=========== (C) Copyright 1999 Valve, L.L.C. All rights reserved. ===========\n//\n// The copyright to the contents herein is the property of Valve, L.L.C.\n// The contents may be used and/or copied only with the written permission of\n// Valve, L.L.C., or in accordance with the terms and conditio...
348
7
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 35.92, "nodes": 189, "errors": 0, "source_hash": "6345d9dbfdd3f6f85eb775ce77b0b8df0d2428dee84e73f5332ec71ba670542d", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,812
c
// Copyright (C) 2021 Internet Systems Consortium, Inc. ("ISC") // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. #ifndef RUN_SCRIPT_LOG_H #define RUN_SCRIPT_LOG_H ...
32.71
17
(translation_unit) "// Copyright (C) 2021 Internet Systems Consortium, Inc. ("ISC")\n//\n// This Source Code Form is subject to the terms of the Mozilla Public\n// License, v. 2.0. If a copy of the MPL was not distributed with this\n// file, You can obtain one at http://mozilla.org/MPL/2.0/.\n\n#ifndef RUN_SCRIPT_LOG_H...
52
1
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 32.71, "nodes": 33, "errors": 0, "source_hash": "1cde43000df38dd1e9f776810f39235212755c6f0a612384e70e2bf3637085b4", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,813
c
#ifndef MAIN_H #define MAIN_H extern int statsonly; extern int vis; extern FILE *fout; #endif
14.67
6
(translation_unit) "#ifndef MAIN_H\n#define MAIN_H\nextern int statsonly;\nextern int vis;\nextern FILE *fout;\n#endif\n" (preproc_ifdef) "#ifndef MAIN_H\n#define MAIN_H\nextern int statsonly;\nextern int vis;\nextern FILE *fout;\n#endif" (#ifndef) "#ifndef" (identifier) "MAIN_H" (preproc_def) "#define MA...
28
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 14.67, "nodes": 24, "errors": 0, "source_hash": "9653235418abf18e09285b8141998ae5f1bc7e7afbe924e3cd670a28992bf3fb", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef M...
7,814
c
#ifndef MODULEAUDIO_H #define MODULEAUDIO_H #include "Module.h" #include "Globals.h" #include "WwiseT.h" class ModuleAudio : public Module { public: ModuleAudio(bool start_enabled = true); ~ModuleAudio(); bool Start(); update_status Update(float dt); update_status PostUpdate(float dt); bool CleanUp(); // Set ...
21.97
32
(translation_unit) "#ifndef MODULEAUDIO_H\n#define MODULEAUDIO_H\n\n#include "Module.h"\n#include "Globals.h"\n#include "WwiseT.h"\n\nclass ModuleAudio : public Module\n{\npublic:\n ModuleAudio(bool start_enabled = true);\n ~ModuleAudio();\n bool Start();\n update_status Update(float dt);\n update_status PostUpdate(flo...
229
10
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 21.97, "nodes": 135, "errors": 0, "source_hash": "e1c60681279cc83c6316de98d6e0c67312d148f8669862b5fa48fd1156b875c8", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,815
c
/* stlink/v2 stm8 memory programming utility (c) <NAME>, 2012 - 2014 */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "ihex.h" #include "error.h" #include "byte_utils.h" char line[256]; static unsigned char checksum(unsigned char *buf, unsigned int length, int chunk_len, int chunk_addr, int ...
31.13
78
(translation_unit) "/* stlink/v2 stm8 memory programming utility\n (c) <NAME>, 2012 - 2014 */\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include "ihex.h"\n#include "error.h"\n#include "byte_utils.h"\n\nchar line[256];\n\nstatic unsigned char checksum(unsigned char *buf, unsigned int length, int...
816
0
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 31.13, "nodes": 481, "errors": 0, "source_hash": "346c9a4f6c5524d60176720389331c02fe05cdb09e123d64582346b91b9e5b9a", "categorized_nodes": 347}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,816
c
// This code contains NVIDIA Confidential Information and is disclosed to you // under a form of NVIDIA software license agreement provided separately to you. // // Notice // NVIDIA Corporation and its licensors retain all intellectual property and // proprietary rights in and to this software and related documentation...
32.88
124
(translation_unit) "// This code contains NVIDIA Confidential Information and is disclosed to you\n// under a form of NVIDIA software license agreement provided separately to you.\n//\n// Notice\n// NVIDIA Corporation and its licensors retain all intellectual property and\n// proprietary rights in and to this software ...
753
21
{"language": "c", "success": true, "metadata": {"lines": 124, "avg_line_length": 32.88, "nodes": 421, "errors": 0, "source_hash": "211268155aa615c1145ee78de325e6c6eaa05856800249fd9877dbad3f42e777", "categorized_nodes": 304}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,817
c
#ifndef __RHF76_LORA_H__ #define __RHF76_LORA_H__ #include <stdio.h> #include <stdbool.h> #include <string.h> #include "usart.h" #define UART_RXBUF_MAXSIZE 256 typedef enum _class { CLASS_A = 1, CLASS_B , CLASS_C , }ENUM_CLASS_TypeDef; typedef enum _mode { LWOTAA = 1, LWABP , }ENUM_MODE_TypeDef; typ...
15.41
34
(translation_unit) "#ifndef __RHF76_LORA_H__\n#define __RHF76_LORA_H__\n\n#include <stdio.h>\n#include <stdbool.h>\n#include <string.h>\n#include "usart.h"\n#define UART_RXBUF_MAXSIZE 256\n\ntypedef enum _class\n{\n CLASS_A = 1,\n CLASS_B ,\n CLASS_C ,\n}ENUM_CLASS_TypeDef;\n\ntypedef enum _mode\n{\n LWOTAA ...
138
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 15.41, "nodes": 101, "errors": 0, "source_hash": "3cc21b0e369c1bc7a158671949414dccec7f4df1d2731943352a9039c56a68a8", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,818
c
/* strtok( char *, const char * ) This file is part of the Public Domain C Library (PDCLib). Permission is granted to use, modify, and / or redistribute at will. */ #ifndef REGTEST #define __STDC_WANT_LIB_EXT1__ 1 #endif #include <string.h> #ifndef REGTEST char * strtok( char * _PDCLIB_restrict s1, const cha...
26.52
52
(translation_unit) "/* strtok( char *, const char * )\n\n This file is part of the Public Domain C Library (PDCLib).\n Permission is granted to use, modify, and / or redistribute at will.\n*/\n\n#ifndef REGTEST\n#define __STDC_WANT_LIB_EXT1__ 1\n#endif\n\n#include <string.h>\n\n#ifndef REGTEST\n\nchar * strtok( cha...
602
2
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 26.52, "nodes": 371, "errors": 0, "source_hash": "df224dfab486a2ad14db6ff23f5c4a2560bf68bd9a8b232b1d6c7c96ffe15517", "categorized_nodes": 229}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,819
c
// // UIButton+DPCategory.h // WisdomTree // // Created by 麻小亮 on 2018/12/18. // Copyright © 2018 able-elec. All rights reserved. // #import <UIKit/UIKit.h> #import "UILabel+DPCategory.h" NS_ASSUME_NONNULL_BEGIN typedef NS_ENUM(NSInteger, DPButtonImageDirection) { DPButtonImageDirectionTop, DPButtonImageD...
26.05
20
(translation_unit) "//\n// UIButton+DPCategory.h\n// WisdomTree\n//\n// Created by 麻小亮 on 2018/12/18.\n// Copyright © 2018 able-elec. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "UILabel+DPCategory.h"\nNS_ASSUME_NONNULL_BEGIN\n\ntypedef NS_ENUM(NSInteger, DPButtonImageDirection) {\n DPButtonImag...
78
7
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 26.05, "nodes": 47, "errors": 0, "source_hash": "115ea0f36f58fb064c5e40341bcc590b2e78bb174639aac746808dcd77320573", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <UIKit/U...
7,820
c
/* -*- linux-c -*- * * (C) Copyright IBM Corp. 2005, 2006 * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This * file and program are licensed under a BSD style licens...
32.58
105
(translation_unit) "/* -*- linux-c -*-\n *\n * (C) Copyright IBM Corp. 2005, 2006\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This\n * file and program are licens...
446
0
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 32.58, "nodes": 312, "errors": 0, "source_hash": "cf74a3e521b4581961bec3882793703b7366de67cb88440d24ae9d4f4e879427", "categorized_nodes": 209}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,821
c
// // AlarmSlider.h // Wimoto // // Created by <NAME> on 22.05.14. // // #import <UIKit/UIKit.h> #import "NMRangeSlider.h" @protocol AlarmSliderDelegate <NSObject> - (void)alarmSliderSaveAction:(id)sender; @end @interface AlarmSlider : UIView @property (nonatomic, weak) id<AlarmSliderDelegate>delegate; - (voi...
25.76
25
(translation_unit) "//\n// AlarmSlider.h\n// Wimoto\n//\n// Created by <NAME> on 22.05.14.\n//\n//\n\n#import <UIKit/UIKit.h>\n#import "NMRangeSlider.h"\n\n@protocol AlarmSliderDelegate <NSObject>\n\n- (void)alarmSliderSaveAction:(id)sender;\n\n@end\n\n@interface AlarmSlider : UIView\n\n@property (nonatomic, weak) i...
226
20
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 25.76, "nodes": 137, "errors": 0, "source_hash": "7a56a5173c2315dc179694b78a3b9a5564a5ecbf4f93d718804613c6347edbd3", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
7,822
c
int get_sig_rejections_wi(void); void delete_sig_rejections_wi(void); int get_sig_rejections_final(void); void delete_sig_rejections_final(void);
35.5
4
(translation_unit) "int get_sig_rejections_wi(void);\nvoid delete_sig_rejections_wi(void);\nint get_sig_rejections_final(void);\nvoid delete_sig_rejections_final(void);\n" (declaration) "int get_sig_rejections_wi(void);" (primitive_type) "int" (function_declarator) "get_sig_rejections_wi(void)" (identif...
41
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 35.5, "nodes": 28, "errors": 0, "source_hash": "09705683535471454bdff97cef0ee04e65724a1a70fea1e405930cfead7ac161", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "int get_sig_...
7,823
c
// // VisualizationsTableViewController.h // InternetMap // // Created by <NAME> on 12-11-30. // Copyright (c) 2012 Peer1. All rights reserved. // #import <UIKit/UIKit.h> @class MapControllerWrapper; @interface StringListViewController : UITableViewController @property (strong) void (^selectedBlock)(int index);...
28.71
14
(translation_unit) "//\n// VisualizationsTableViewController.h\n// InternetMap\n//\n// Created by <NAME> on 12-11-30.\n// Copyright (c) 2012 Peer1. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@class MapControllerWrapper;\n\n@interface StringListViewController : UITableViewController\n\n@property (strong)...
86
14
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 28.71, "nodes": 54, "errors": 0, "source_hash": "17ef808eeadf167dd1525bdd8507e3f6b5ab4faabfe4c123a914d299fae4332e", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
7,824
c
/*++ BUILD Version: 0001 * * WOW v1.0 * * Copyright (c) 1991, 1992, 1993 Microsoft Corporation * * WOWTABLE.H * WOW32 API thunk table * --*/ /* thunk table */ extern W32 aw32WOW[]; #ifdef DEBUG_OR_WOWPROFILE extern INT cAPIThunks; #endif
12.14
21
(translation_unit) "/*++ BUILD Version: 0001 \n * \n * WOW v1.0 \n * \n * Copyright (c) 1991, 1992, 1993 Microsoft Corporation \n * \n * WOWTABLE.H \n * WOW32 API thunk table \n * \n--*/ \n \n \n \n/* thunk table \n */ \nextern W32 aw32WOW[]; \n \n \n#ifdef DEBUG_OR_WOWPROFILE \nextern INT cAPIThunks; \n#endif \n" ...
22
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 12.14, "nodes": 15, "errors": 0, "source_hash": "414bf1f402654d8e8a9f2afd5ec192f9585c43c1c755b40a74b1041f80f5f281", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern W32...
7,825
c
// string.h kütüphanesini kullanmadan strcpy fonksiyonu ile aynı işi yapan manuel program: #include <stdio.h> void stringcpy(char [],char[]); void stringcpy(char a[],char b[]){ int i; for(i=0;b[i] != '\0';i++) a[i] = b[i]; printf("%s \n", a); } int main(void) { char s1[10]; char s2[10]; printf("1....
19.14
22
(translation_unit) "// string.h kütüphanesini kullanmadan strcpy fonksiyonu ile aynı işi yapan manuel program:\n#include <stdio.h>\n\nvoid stringcpy(char [],char[]);\nvoid stringcpy(char a[],char b[]){\n int i;\n \n for(i=0;b[i] != '\0';i++)\n a[i] = b[i];\n printf("%s \n", a);\n \n}\n\nint main(void) {\n char s1...
196
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 19.14, "nodes": 98, "errors": 0, "source_hash": "4197b4ec9c5e6834fd6dd08136e70b487347f1c08f234ce5ccce62aaf8cfe2e6", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "lude <...
7,826
c
#ifndef MICO_EXPRESSIONS_VALUE_H #define MICO_EXPRESSIONS_VALUE_H #include <sstream> #include "mico/ast.h" #include "mico/tokens.h" #include "mico/expressions/impl.h" namespace mico { namespace ast { namespace expressions { template <type TN, typename ValueT> class value_expr: public typed_expr<TN> { pu...
26.19
98
(translation_unit) "#ifndef MICO_EXPRESSIONS_VALUE_H\n#define MICO_EXPRESSIONS_VALUE_H\n\n#include <sstream>\n#include "mico/ast.h"\n#include "mico/tokens.h"\n#include "mico/expressions/impl.h"\n\nnamespace mico { namespace ast { namespace expressions {\n\n template <type TN, typename ValueT>\n class value_expr: ...
773
58
{"language": "c", "success": true, "metadata": {"lines": 98, "avg_line_length": 26.19, "nodes": 468, "errors": 0, "source_hash": "09b4d87f726cafa7827ea009466c21798da78444e92b02e4d0924a2e02c54bf3", "categorized_nodes": 298}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,827
c
/* GStreamer * Copyright (C) 2007 <NAME> <EMAIL> * * 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 Foundation; either * version 2 of the License, or (at your option) any later version. * * T...
34.63
52
(translation_unit) "/* GStreamer\n * Copyright (C) 2007 <NAME> <EMAIL>\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 published by the Free Software Foundation; either\n * version 2 of the License, or (at your option) ...
163
0
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 34.63, "nodes": 120, "errors": 0, "source_hash": "8261874f3a6e080dceefe2156b50bbde3870bb5c2056cb98c920982e6883536e", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,828
c
//============================================================================= // // The MIT License (MIT) // // Copyright(c) 2014 <NAME> // // 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...
33.71
65
(translation_unit) "//=============================================================================\n//\n// The MIT License (MIT)\n//\n// Copyright(c) 2014 <NAME>\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files(the "Software"),...
241
9
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 33.71, "nodes": 129, "errors": 0, "source_hash": "3c0a36d4b188c824677cf77d75c435b9dc90a5323cf153721efea8e6c46c78b7", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,829
c
#ifndef IATextureDelegateAttributes_h #define IATextureDelegateAttributes_h #include "IABitmap.h" typedef struct{ //@get void * correspondingObject; //@set+get void (*onBitmapUsageBegin)(void * correspondingObject, IABitmap * bitmap); //@set+get void (*onBitmapUsageEnd)(void * correspondingObj...
34.4
15
(translation_unit) "#ifndef IATextureDelegateAttributes_h\n#define IATextureDelegateAttributes_h\n\n#include "IABitmap.h"\n\ntypedef struct{\n //@get\n void * correspondingObject;\n //@set+get\n void (*onBitmapUsageBegin)(void * correspondingObject, IABitmap * bitmap);\n //@set+get\n void (*onBitmapUs...
104
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 34.4, "nodes": 73, "errors": 0, "source_hash": "e847da24cbe132ec4a28f409bb66171d8c4faee1c45135f79e265e8a8dcf241c", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef I...
7,830
c
#include <stdio.h> #include <libavutil/file.h> #include "index.h" int main(int argc, char *argv[]) { int ret = 0; uint8_t * buffer_list[2] = { NULL }; size_t size_list[2] = { 0 }; char *filename = argv[1]; uint8_t *buffer = NULL; size_t size = 0; ret = av_file_map(filename, &buffer, &siz...
28.55
22
(translation_unit) "#include <stdio.h>\n#include <libavutil/file.h>\n#include "index.h"\n\n\nint main(int argc, char *argv[]) {\n int ret = 0;\n uint8_t * buffer_list[2] = { NULL };\n size_t size_list[2] = { 0 };\n char *filename = argv[1];\n\n uint8_t *buffer = NULL;\n size_t size = 0;\n\n ret = a...
248
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 28.55, "nodes": 160, "errors": 0, "source_hash": "d4ef11a49186bf6033f18308481c2835fa8e92e561722d607dc78afd93d8442e", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,831
c
#ifndef DEDICATEDSLAVE_LOGIC_APP_H #define DEDICATEDSLAVE_LOGIC_APP_H #include <dedicatedslave/logic/helperio.h> #include <dedicatedslave/logic/processmanager.h> #include <dedicatedslave/logic/helpersys.h> #include <dedicatedslave/logic/appsteamapi.h> #include <dedicatedslave/logic/config.h> #include <QString> #inclu...
33.11
61
(translation_unit) "#ifndef DEDICATEDSLAVE_LOGIC_APP_H\n#define DEDICATEDSLAVE_LOGIC_APP_H\n\n#include <dedicatedslave/logic/helperio.h>\n#include <dedicatedslave/logic/processmanager.h>\n#include <dedicatedslave/logic/helpersys.h>\n#include <dedicatedslave/logic/appsteamapi.h>\n#include <dedicatedslave/logic/config.h>...
464
14
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 33.11, "nodes": 314, "errors": 0, "source_hash": "3ae658b08fadab1f8016e91d5c32a2eacd4ca3302728fd69a5c97edc21881526", "categorized_nodes": 229}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,832
c
#include <config.h> #include <pmic.h> void Delay(void) { unsigned long i,j; for(i=0;i<DELAY;i++); } void SCLH_SDAH() { IIC_ESCL_Hi; IIC_ESDA_Hi; Delay(); } void SCLH_SDAL() { IIC_ESCL_Hi; IIC_ESDA_Lo; Delay(); } void SCLL_SDAH() { IIC_ESCL_Lo; IIC_ESDA_Hi; Delay(); } void SCLL_SDAL() { IIC_ESCL_Lo; II...
26.31
193
(translation_unit) "#include <config.h>\n#include <pmic.h>\n\nvoid Delay(void)\n{\n unsigned long i,j;\n for(i=0;i<DELAY;i++);\n}\n\nvoid SCLH_SDAH()\n{\n IIC_ESCL_Hi;\n IIC_ESDA_Hi;\n Delay();\n}\n\nvoid SCLH_SDAL()\n{\n IIC_ESCL_Hi;\n IIC_ESDA_Lo;\n Delay();\n}\n\nvoid SCLL_SDAH()\n{\n IIC_ESCL_Lo;\n IIC_ESDA_Hi;\n D...
1,401
0
{"language": "c", "success": true, "metadata": {"lines": 193, "avg_line_length": 26.31, "nodes": 710, "errors": 0, "source_hash": "c24e027f5947dc8da5cff0268821a33b002292dfc868631ec0ee1a323d05857e", "categorized_nodes": 520}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,833
c
//========================================================================= // Copyright (C) 2018 The C++ Component Model(CCM) Open Source Project // // 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 Lic...
35.73
45
(translation_unit) "//=========================================================================\n// Copyright (C) 2018 The C++ Component Model(CCM) Open Source Project\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...
186
8
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 35.73, "nodes": 110, "errors": 0, "source_hash": "a443c9dfd6db34b23fb2ca3b6b977a399966c4d7c4f99f01ec35d7de665e180f", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,834
c
#ifndef QTASKBARCONTROL_X11_H #define QTASKBARCONTROL_X11_H #include "qtaskbarcontrol_p.h" #include <QVariantMap> class QX11TaskbarControl : public QTaskbarControlPrivate { public: // QTaskbarControlPrivate interface void setWindow(QWindow *window) override; bool setAttribute(QTaskbarControl::SetupKey key, const Q...
33.95
19
(translation_unit) "#ifndef QTASKBARCONTROL_X11_H\n#define QTASKBARCONTROL_X11_H\n\n#include "qtaskbarcontrol_p.h"\n#include <QVariantMap>\n\nclass QX11TaskbarControl : public QTaskbarControlPrivate\n{\npublic:\n // QTaskbarControlPrivate interface\n void setWindow(QWindow *window) override;\n bool setAttribute(QTaskba...
155
10
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 33.95, "nodes": 95, "errors": 0, "source_hash": "c9b730be128e0afbf7abea720be9eb59c20166d3b3f9ae87b68d8345f915604e", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,835
c
#ifndef MPU6050_H #define MPU6050_H #include <Arduino.h> #include <Wire.h> #include "IMU.h" #define IMU_ADDRESS 0x68 #define CALIBRATE_SIZE 100 #define ACCEL_LSB_SENSITIVITY 4096 #define GYRO_LSB_SENSITIVITY 65.5 #define REG_PWR_MGMT_1 0x6b #define REG_GYRO_CONFIG 0x1b #define REG_ACCEL_CONFIG 0x1c #define REG_GYRO...
27.59
34
(translation_unit) "#ifndef MPU6050_H\n#define MPU6050_H\n\n#include <Arduino.h>\n#include <Wire.h>\n#include "IMU.h"\n\n#define IMU_ADDRESS 0x68\n#define CALIBRATE_SIZE 100\n#define ACCEL_LSB_SENSITIVITY 4096 \n#define GYRO_LSB_SENSITIVITY 65.5\n\n#define REG_PWR_MGMT_1 0x6b\n#define REG_GYRO_CONFIG 0x1b\n#define REG_...
253
16
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 27.59, "nodes": 160, "errors": 0, "source_hash": "be8c0993bccc7e6d9f1ef26ea5d1a7fba96c0d8baa5d45db5a30b3dd42da6c5c", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,836
c
#pragma once namespace CainEngine::Editor { class ShaderSourceManager { public: // ctor & dtor ShaderSourceManager(); ~ShaderSourceManager(); public: // Main functionality bool CompileShaders(); private: // Member variables Common::JsonDeclaration<ShaderCompiler::ShaderCompilation> m_declaration; }; }
18.38
16
(translation_unit) "#pragma once\n\nnamespace CainEngine::Editor {\n\nclass ShaderSourceManager\n{\npublic:\n // ctor & dtor\n ShaderSourceManager();\n ~ShaderSourceManager();\n\npublic:\n // Main functionality\n\n bool CompileShaders();\n\nprivate:\n // Member variables\n\n Common::JsonDeclaration<ShaderCompiler::Shad...
75
2
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 18.38, "nodes": 37, "errors": 0, "source_hash": "bd11ecb5cdac2608a96a321036f207ac2b673f07af1280dfad3e94331b139eee", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
7,837
c
/* * Copyright (c) 2016, https://github.com/nebula-im/imengine * 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....
38.06
36
(translation_unit) "/*\n * Copyright (c) 2016, https://github.com/nebula-im/imengine\n * 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.ap...
170
14
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 38.06, "nodes": 101, "errors": 0, "source_hash": "876615657e202108c018cc0ae068bd1d0bc050168906de8c57390fdca13b347b", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,838
c
// Copyright 2021 Tinkerrer #ifndef TEMPLATE_ASYNCHTTPCLIENT_H #define TEMPLATE_ASYNCHTTPCLIENT_H #include <boost/asio/signal_set.hpp> #include <boost/asio/strand.hpp> #include <boost/beast/core.hpp> #include <boost/beast/http.hpp> #include <boost/beast/version.hpp> #include <boost/bind/bind.hpp> #include <iostream> ...
39.59
39
(translation_unit) "// Copyright 2021 Tinkerrer\n\n#ifndef TEMPLATE_ASYNCHTTPCLIENT_H\n#define TEMPLATE_ASYNCHTTPCLIENT_H\n\n#include <boost/asio/signal_set.hpp>\n#include <boost/asio/strand.hpp>\n#include <boost/beast/core.hpp>\n#include <boost/beast/http.hpp>\n#include <boost/beast/version.hpp>\n#include <boost/bind/...
371
25
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 39.59, "nodes": 223, "errors": 0, "source_hash": "4d9f0f90a2f7104bb94cd2d133a9ce6de2c372e2cc2b1ab09ad829cb9617a082", "categorized_nodes": 161}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,839
c
// @file lib.h // @author <NAME> [<EMAIL>] // // Copyright (c) 2020 <NAME>, all rights reserved #ifndef lib_H_ #define lib_H_ #include <lib/example_lib.hpp> #endif // lib_H_
22.38
8
(translation_unit) "// @file lib.h\n// @author <NAME> [<EMAIL>]\n//\n// Copyright (c) 2020 <NAME>, all rights reserved\n#ifndef lib_H_\n#define lib_H_\n\n#include <lib/example_lib.hpp>\n\n#endif // lib_H_\n" (comment) "// @file lib.h" (comment) "// @author <NAME> [<EMAIL>]" (comment) "//"...
16
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 22.38, "nodes": 10, "errors": 0, "source_hash": "7f3c640010d43f36cf8fbd25bdd41a55951ed17cf08d3c2fff4dc883cc899837", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef li...
7,840
c
/*- * Copyright (c) 2008 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
25.61
270
(translation_unit) "/*-\n * Copyright (c) 2008 <NAME>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n * notic...
1,888
0
{"language": "c", "success": true, "metadata": {"lines": 270, "avg_line_length": 25.61, "nodes": 1109, "errors": 0, "source_hash": "15460b375f9cef1a0968e2040df14e0844ba98c54d86093925d2e32a12cdc47e", "categorized_nodes": 787}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
7,841
c
/* * Smalltalk interpreter: Main byte code interpriter. * * Copyright 1999-2017 <NAME>. * * This program is free software; you can redistribute it and/or modify it * under the terms of the the Artistic License (2.0). You may obtain a copy * of the full license at: * * http://www.perlfoundation.org/artistic_lic...
35.29
171
(translation_unit) "/*\n * Smalltalk interpreter: Main byte code interpriter.\n *\n * Copyright 1999-2017 <NAME>.\n *\n * This program is free software; you can redistribute it and/or modify it\n * under the terms of the the Artistic License (2.0). You may obtain a copy\n * of the full license at:\n *\n * http://www.pe...
563
0
{"language": "c", "success": true, "metadata": {"lines": 171, "avg_line_length": 35.29, "nodes": 443, "errors": 0, "source_hash": "531e0190cd4c8f4289f3046f23349508750bb3505f1925dc38627038d63bac01", "categorized_nodes": 233}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
7,842
c
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CC_TEST_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ #define CC_TEST_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ #include <stdint.h> #include "base/synchronizati...
38.33
46
(translation_unit) "// Copyright 2013 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef CC_TEST_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_\n#define CC_TEST_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_\n\n#include <stdint.h>\n\...
327
18
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 38.33, "nodes": 196, "errors": 0, "source_hash": "0f513ce76f68f61d7c309f9941ab5f7736c9a13bd5178de624ca6f11ccbf3ec7", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,843
c
#pragma once #include <stdint.h> // `flags` #define IDT_TYPE_INT 0xE // 32 bit interrupt gate. Interrupts will be disabled #define IDT_DPL(n) (n << 5) // Required provilege level #define IDT_PRESENT (1 << 7) // Always set // Used IDT flags #define IDT_INT_KERNEL (IDT_TYPE_INT | IDT_DPL(0) | IDT_PRESENT) #define IDT_...
34.84
25
(translation_unit) "#pragma once\n\n#include <stdint.h>\n\n// `flags`\n#define IDT_TYPE_INT 0xE // 32 bit interrupt gate. Interrupts will be disabled\n#define IDT_DPL(n) (n << 5) // Required provilege level\n#define IDT_PRESENT (1 << 7) // Always set\n\n// Used IDT flags\n#define IDT_INT_KERNEL (IDT_TYPE_INT | IDT_DPL(...
130
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 34.84, "nodes": 89, "errors": 0, "source_hash": "7f2ff37b1d7d7abcad1565a04a3b359245141231dc49f88bc600affbacd73f4d", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
7,844
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strnstr.c :+: :+: :+: ...
32.78
59
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* ft_strnstr.c ...
584
0
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 32.78, "nodes": 279, "errors": 0, "source_hash": "9e0bbcc30f50ca26e5092ead7b8bb39cb33f20378bf59fd5c73006ab3bba735b", "categorized_nodes": 217}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,845
c
// // ClassRoom+CoreDataProperties.h // MyTestCoreData // // Created by Chengguangfa on 2019/2/27. // Copyright © 2019年 com.medosport.mo. All rights reserved. // // #import "ClassRoom+CoreDataClass.h" NS_ASSUME_NONNULL_BEGIN @interface ClassRoom (CoreDataProperties) + (NSFetchRequest<ClassRoom *> *)fetchReques...
24
17
(translation_unit) "//\n// ClassRoom+CoreDataProperties.h\n// MyTestCoreData\n//\n// Created by Chengguangfa on 2019/2/27.\n// Copyright © 2019年 com.medosport.mo. All rights reserved.\n//\n//\n\n#import "ClassRoom+CoreDataClass.h"\n\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface ClassRoom (CoreDataProperties)\n\n+ (NSFet...
68
11
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 24.0, "nodes": 46, "errors": 0, "source_hash": "3ba1d2d7540e1bf8da782bf109fa9bb4ad9c0d47ad8ab7a419bf2a964e0b5854", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"Cla...
7,846
c
/* * Copyright (c) 2000-2013 Apple Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except in * co...
33.06
140
(translation_unit) "/*\n * Copyright (c) 2000-2013 Apple Inc. All rights reserved.\n *\n * @APPLE_LICENSE_HEADER_START@\n *\n * This file contains Original Code and/or Modifications of Original Code\n * as defined in and that are subject to the Apple Public Source License\n * Version 2.0 (the 'License'). You may not us...
725
0
{"language": "c", "success": true, "metadata": {"lines": 140, "avg_line_length": 33.06, "nodes": 480, "errors": 0, "source_hash": "ec78500abc5da92637bcaf5882dd4d9b84ce93880e6f173bc07faf59218b74b3", "categorized_nodes": 285}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,847
c
#ifndef HC854C71C_B9DB_406F_ADF6_779E2B16ED4D #define HC854C71C_B9DB_406F_ADF6_779E2B16ED4D #include <cum/core/def/IsDef.h> CUM_NS_BEGIN inline Matcher<bool>* be_true() { return is(true); } inline Matcher<bool>* be_false() { return is(false); } CUM_NS_END #endif
32.12
8
(translation_unit) "#ifndef HC854C71C_B9DB_406F_ADF6_779E2B16ED4D\n#define HC854C71C_B9DB_406F_ADF6_779E2B16ED4D\n\n#include <cum/core/def/IsDef.h>\n\nCUM_NS_BEGIN\n\ninline Matcher<bool>* be_true() { return is(true); }\ninline Matcher<bool>* be_false() { return is(false); }\n\nCUM_NS_END\n\n#endif\n" (preproc_ifde...
68
2
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 32.12, "nodes": 48, "errors": 0, "source_hash": "f73c33fac4ab45af927c82b8349d23da32f3f41a50904d3b9a5d8a2dd6a8f85b", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef H...
7,848
c
/* * Copyright (c) 2022 Renwei * * This is a free software; you can redistribute it and/or modify * it under the terms of the MIT license. See LICENSE for details. */ #include "base_macro.h" #if defined(__DAVE_BASE__) #include "dave_base.h" #include "dave_tools.h" #include "dos_show.h" #include "dos_cmd.h" #inclu...
24.56
63
(translation_unit) "/*\n * Copyright (c) 2022 Renwei\n *\n * This is a free software; you can redistribute it and/or modify\n * it under the terms of the MIT license. See LICENSE for details.\n */\n\n#include "base_macro.h"\n#if defined(__DAVE_BASE__)\n#include "dave_base.h"\n#include "dave_tools.h"\n#include "dos_show...
433
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 24.56, "nodes": 235, "errors": 0, "source_hash": "3d141afba293eba7f663d2dd7179b2e308268d0e5457f5c46fa52989fb9ba070", "categorized_nodes": 180}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,849
c
// // objects.c // loxi - a Lox interpreter // // Created by <NAME> on 17/10/2017. // #include "garbage_collector.h" #include "lox_callable.h" #include "lox_class.h" #include "lox_function.h" #include "lox_instance.h" #include "memory.h" #include "objects.h" #include "string.h" #include <math.h> extern inline Obj...
30.41
308
(translation_unit) "//\n// objects.c\n// loxi - a Lox interpreter\n//\n// Created by <NAME> on 17/10/2017.\n//\n\n#include "garbage_collector.h"\n#include "lox_callable.h"\n#include "lox_class.h"\n#include "lox_function.h"\n#include "lox_instance.h"\n#include "memory.h"\n#include "objects.h"\n#include "string.h"\n\n...
2,383
2
{"language": "c", "success": true, "metadata": {"lines": 308, "avg_line_length": 30.41, "nodes": 1461, "errors": 0, "source_hash": "2320ca990585c291826d504e7343aee80893b5c08d3e1491cf10e6c4cd35ef8e", "categorized_nodes": 972}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
7,850
c
/*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2004-2005 HighPoint Technologies, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of sour...
34.51
252
(translation_unit) "/*-\n * SPDX-License-Identifier: BSD-2-Clause-FreeBSD\n *\n * Copyright (c) 2004-2005 HighPoint Technologies, Inc.\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n...
929
22
{"language": "c", "success": true, "metadata": {"lines": 252, "avg_line_length": 34.51, "nodes": 660, "errors": 0, "source_hash": "02e174561e75e3cec9fb88c53e0b8af1baf90aecfd472f924139929ad1c3fa39", "categorized_nodes": 492}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,851
c
#pragma once #include "../BaseComponent.h" #include "../../defines.h" #include "../../Graphics/Color.h" #include <vector> namespace star { class Font; /// <summary> /// Information of a text element. /// Gets sent to the <see cref="SpriteBatch"> to process it correctly. /// Contains the font, a p...
26.24
266
(translation_unit) "#pragma once \n \n#include "../BaseComponent.h" \n#include "../../defines.h" \n#include "../../Graphics/Color.h" \n#include <vector> \n \nnamespace star \n{ \n class Font; \n \n /// <summary> \n /// Information of a text element. \n /// Gets sent to the <see cref="SpriteBatch"> to process it correc...
786
38
{"language": "c", "success": true, "metadata": {"lines": 266, "avg_line_length": 26.24, "nodes": 394, "errors": 0, "source_hash": "1fb057349c5e873c1072cbd3f039cc70c0149846413b6cb0db0e7789a658734b", "categorized_nodes": 281}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
7,852
c
// // WTContactDataMember.h // wutong // // Created by 魏欣宇 on 2018/9/19. // Copyright © 2018年 wutonglife. All rights reserved. // #import <Foundation/Foundation.h> @class WTIMInfo; @interface WTContactDataMember : NSObject @property (nonatomic, strong) WTIMInfo *info; @end
22.17
12
(translation_unit) "//\n// WTContactDataMember.h\n// wutong\n//\n// Created by 魏欣宇 on 2018/9/19.\n// Copyright © 2018年 wutonglife. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n@class WTIMInfo;\n\n@interface WTContactDataMember : NSObject\n\n@property (nonatomic, strong) WTIMInfo *info;\n\n@end\n" ...
42
8
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 22.17, "nodes": 27, "errors": 0, "source_hash": "e1d74e0361d07b181a635149b27fa643ba9f6d44e7d627d3d94ba17bf22e463c", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Foundatio...
7,853
c
#ifndef GNL_H # define GNL_H # include "libft.h" int make_line_and_set_stock(char **line, char **buff, char **stock); int make_buff(int fd, ssize_t *read_len, char **buff, char **stock); int make_stock(char **buff, char **stock); int get_next_line(int fd, char **line); #endif
34.12
8
(translation_unit) "#ifndef GNL_H\n# define GNL_H\n\n# include "libft.h"\n\nint make_line_and_set_stock(char **line, char **buff, char **stock);\nint make_buff(int fd, ssize_t *read_len, char **buff, char **stock);\nint make_stock(char **buff, char **stock);\nint get_next_line(int fd, char **line);\n\n#endif" (pr...
120
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 34.12, "nodes": 97, "errors": 0, "source_hash": "255731b8d77c26df39f3f3330d708f7b6f74d6ee8c32d96f8e8355b1e530b714", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef G...
7,854
c
#ifndef SUBTITLES_FIXER_H #define SUBTITLES_FIXER_H #include <QString> #include <QMap> #include <QList> #include <QPair> template< typename T > /** * @brief The FixField class contains 2 fields: * - value with field value; * - enabled flag, used in process functions. */ class FixField { //! Public membe...
32.51
161
(translation_unit) "#ifndef SUBTITLES_FIXER_H\n#define SUBTITLES_FIXER_H\n\n#include <QString>\n#include <QMap>\n#include <QList>\n#include <QPair>\n\ntemplate< typename T >\n/**\n * @brief The FixField class contains 2 fields:\n * - value with field value;\n * - enabled flag, used in process functions.\n */\...
472
23
{"language": "c", "success": true, "metadata": {"lines": 161, "avg_line_length": 32.51, "nodes": 253, "errors": 0, "source_hash": "1cbb8b83873effc1ac38a7e951df2dc8d315d0f43de117744069cf6ad5c830a6", "categorized_nodes": 176}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,855
c
#ifndef ATS9462_H #define ATS9462_H // C System-Headers #include <stdio.h> #include <stdint.h> // C++ System headers #include <string> #include <stdexcept> #include <list> #include <vector> #include <memory> #include <thread> #include <mutex> //AlazarTech Headers #include "AlazarError.h" #include "AlazarApi.h" #includ...
31.48
79
(translation_unit) "#ifndef ATS9462_H\n#define ATS9462_H\n\n// C System-Headers\n#include <stdio.h>\n#include <stdint.h>\n// C++ System headers\n#include <string>\n#include <stdexcept>\n#include <list>\n#include <vector>\n#include <memory>\n#include <thread>\n#include <mutex>\n//AlazarTech Headers\n#include "AlazarErro...
586
27
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 31.48, "nodes": 403, "errors": 0, "source_hash": "85e4d5ca8e90f727844b750634ab06fa413582d4aed5f8567a68778a530b5c38", "categorized_nodes": 263}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef ATS946...
7,856
c
#import <Foundation/Foundation.h> #import "SIRSI.h" @interface SIRSI2 : SIRSI { } @end
13.5
6
(translation_unit) "#import <Foundation/Foundation.h>\n#import "SIRSI.h"\n\n@interface SIRSI2 : SIRSI\n{\n}\n\n@end" (preproc_call) "#import <Foundation/Foundation.h>\n" (preproc_directive) "#import" (preproc_arg) "<Foundation/Foundation.h>" (preproc_call) "#import "SIRSI.h"\n" (preproc_directive) "#imp...
23
5
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 13.5, "nodes": 15, "errors": 0, "source_hash": "a53782435962a37493044109d648fbb238ffe99788f9d88443e10e070daa3ba5", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Fou...
7,857
c
/* vi: set sw=4 ts=4: */ /* * bb_get_last_path_component implementation for busybox * * Copyright (C) 2001 <NAME> <<EMAIL>> * * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. */ #include "libbb.h" char *bb_get_last_path_component(char *path) { char *first = path; char *last; ...
18.62
26
(translation_unit) "/* vi: set sw=4 ts=4: */\n/*\n * bb_get_last_path_component implementation for busybox\n *\n * Copyright (C) 2001 <NAME> <<EMAIL>>\n *\n * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.\n */\n\n#include "libbb.h"\n\nchar *bb_get_last_path_component(char *path)\n{\n ch...
146
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 18.62, "nodes": 97, "errors": 0, "source_hash": "8de7b91cdf0aa9f97643b5da4a3a11cf9f4535843560889a420a6504eb725e30", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
7,858
c
#include <stdlib.h> #include <ctype.h> #include "msg_factory.h" #include "string_utility.h" #include "error_code.h" #define tbl_hexvalue \ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"\ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"\ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00...
27
182
(translation_unit) "#include <stdlib.h>\n#include <ctype.h>\n#include "msg_factory.h"\n#include "string_utility.h"\n#include "error_code.h"\n\n#define tbl_hexvalue \\n "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"\\n "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"\\n "\x00\x00\x0...
1,421
0
{"language": "c", "success": true, "metadata": {"lines": 182, "avg_line_length": 27.0, "nodes": 932, "errors": 0, "source_hash": "b07250d6e8ef33a94872fe2c8e2a4d4e341d24dd601993b884366700f8b8a097", "categorized_nodes": 599}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,859
c
#pragma once #include "shader.h" namespace RedSunlight { class ShaderProgram { public: ~ShaderProgram(); ShaderProgram(const ShaderProgram&) = delete; ShaderProgram(ShaderProgram&&) noexcept; ShaderProgram& operator=(const ShaderProgram&) = delete; ShaderProgram& operator=(ShaderProgram&&) noexcept; s...
39.17
29
(translation_unit) "#pragma once\n#include "shader.h"\n\nnamespace RedSunlight\n{\n class ShaderProgram\n {\n public:\n ~ShaderProgram();\n ShaderProgram(const ShaderProgram&) = delete;\n ShaderProgram(ShaderProgram&&) noexcept;\n\n ShaderProgram& operator=(const ShaderProgram&) = delete;\n ShaderProgram& operator...
378
29
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 39.17, "nodes": 188, "errors": 0, "source_hash": "dea42fc9677696f995bb386246d20ccb9ca68f1aa43d48735d17193514f2c7a5", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
7,860
c
#ifndef MAIN_TEST_HARNESS #define CONSUMER_PRODUCER_TEST class MainTestHarness { public: int Run(int argc, char* argv[]); }; #endif
18
7
(translation_unit) "#ifndef MAIN_TEST_HARNESS\n#define CONSUMER_PRODUCER_TEST\n\nclass MainTestHarness {\npublic:\n int Run(int argc, char* argv[]);\n};\n\n#endif" (preproc_ifdef) "#ifndef MAIN_TEST_HARNESS\n#define CONSUMER_PRODUCER_TEST\n\nclass MainTestHarness {\npublic:\n int Run(int argc, char* argv[]);\n};\n\n#...
39
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 18.0, "nodes": 24, "errors": 0, "source_hash": "17546fbe0c7d2bf86bfea8c028b117674fb544d2ab2e0c671b6684fc1035898b", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef MA...
7,861
c
#include<stdio.h> int main(){ int a , b ,c; printf("Digite os dois numeros: "); scanf("%d%d",&a,&b); c=a+b; printf("Resultado = %d\n",c); return 0; }
16.33
9
(translation_unit) "#include<stdio.h>\n\nint main(){\n int a , b ,c;\n printf("Digite os dois numeros: ");\n scanf("%d%d",&a,&b);\n c=a+b;\n printf("Resultado = %d\n",c);\n return 0;\n}\n" (preproc_include) "#include<stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (function_definition) "in...
79
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 16.33, "nodes": 40, "errors": 0, "source_hash": "277b74903ace9bc2b75c4db55ab0531139b6a63741f3925342c66a4167dea672", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
7,862
c
#include <stdio.h> #include "free_parking_struct.h" #include "cast_arr.h" #include "errupd.h" /* dophot subroutine converted to c void function on 01-17-2012 */ void errupd_(float *C_ptr, float *SHADERR, int *NFIT_ptr) { /* dereferencing the pointers */ int NFIT = *NFIT_ptr ; /* SHADDERR is a pointer t...
35.59
22
(translation_unit) "#include <stdio.h>\n#include "free_parking_struct.h"\n#include "cast_arr.h"\n#include "errupd.h"\n\n/* dophot subroutine converted to c void function on 01-17-2012 */\n\nvoid errupd_(float *C_ptr, float *SHADERR, int *NFIT_ptr)\n{\n /* dereferencing the pointers */\n int NFIT = *NFIT_ptr ;\n...
145
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 35.59, "nodes": 91, "errors": 0, "source_hash": "29239d7fc9335e34b18f986b7301b45f6543c911681d6fd7c1a3ac2222cbe650", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
7,863
c
// // NNTableViewDiffReloadAnimations.h // ArrayDiff // // Created by <NAME> on 08/12/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> @interface NNTableViewDiffReloadAnimations : NSObject @property (nonatomic, assign) UITableViewRowAnimation row...
39.1
21
(translation_unit) "//\n// NNTableViewDiffReloadAnimations.h\n// ArrayDiff\n//\n// Created by <NAME> on 08/12/14.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n\n@interface NNTableViewDiffReloadAnimations : NSObject\n\n@property (nonatomic, as...
145
30
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 39.1, "nodes": 100, "errors": 0, "source_hash": "d1d53e83d8844ce653dcdd5160551d4cb2ff177f4e728267861c6583a0d7feec", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
7,864
c
#ifndef IS_GIF_H #define IS_GIF_H #define _CRT_SECURE_NO_WARNINGS #include <stdlib.h> #include <stdio.h> #include <string.h> #include <stdbool.h> extern bool is_gif(const char* filename); #endif //IS_GIF_H
22.78
9
(translation_unit) "#ifndef IS_GIF_H \n#define IS_GIF_H \n#define _CRT_SECURE_NO_WARNINGS \n#include <stdlib.h> \n#include <stdio.h> \n#include <string.h> \n#include <stdbool.h> \nextern bool is_gif(const char* filename); \n#endif //IS_GIF_H" (preproc_ifdef) "#ifndef IS_GIF_H \n#define IS_GIF_H \n#define _CRT_SECURE_...
41
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 22.78, "nodes": 34, "errors": 0, "source_hash": "1ef9a116286b7cee4d9bf0688d6526418324542811f275c7531a2119eb2c4f23", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef I...
7,865
c
// // ColorMacro.h // RACUnitTest // // Created by <NAME> on 8/30/15. // Copyright (c) 2015 <NAME>. All rights reserved. // #ifndef RACUnitTest_ColorMacro_h #define RACUnitTest_ColorMacro_h // UIColor Helper Macro #define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16)) / 255....
36.31
13
(translation_unit) "//\n// ColorMacro.h\n// RACUnitTest\n//\n// Created by <NAME> on 8/30/15.\n// Copyright (c) 2015 <NAME>. All rights reserved.\n//\n\n#ifndef RACUnitTest_ColorMacro_h\n#define RACUnitTest_ColorMacro_h\n\n// UIColor Helper Macro\n#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgb...
28
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 36.31, "nodes": 17, "errors": 0, "source_hash": "ef695b2b705f00d22b099206e0f8069ccec8f5606d13f536970776b36f2a9adc", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef R...
7,866
c
/* Copyright 2008 NVIDIA Corporation. All Rights Reserved */ #pragma once #include <vector> #include <algorithm> #include <assert.h> #include "mem.h" template<class T> T * vector_to_array(const std::vector<T>& V){ T * arr = new_host_array<T>(V.size()); std::copy(V.begin(),V.end(),arr); return arr; } ...
24.87
31
(translation_unit) "/* Copyright 2008 NVIDIA Corporation. All Rights Reserved */\n\n#pragma once\n\n#include <vector>\n#include <algorithm>\n#include <assert.h>\n\n#include "mem.h"\n\ntemplate<class T>\nT * vector_to_array(const std::vector<T>& V){\n T * arr = new_host_array<T>(V.size());\n std::copy(V.begin(),V...
369
16
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 24.87, "nodes": 242, "errors": 0, "source_hash": "fb269855d3844a82d680a023854fe4c3ce3344603f78a6ee97499e584b2c4bd5", "categorized_nodes": 168}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
7,867
c
#ifndef PRINT_GENERATED_INPUT_H #define PRINT_GENERATED_INPUT_H #include <cstdint> #include <simd-diagonal-load-json-demo/input-spec/input-spec.capnp.h> void print_generated_input(InputSpec::Reader input_spec_value); #endif // PRINT_GENERATED_INPUT_H
41
6
(translation_unit) "#ifndef PRINT_GENERATED_INPUT_H\n#define PRINT_GENERATED_INPUT_H\n\n#include <cstdint>\n#include <simd-diagonal-load-json-demo/input-spec/input-spec.capnp.h>\n\nvoid print_generated_input(InputSpec::Reader input_spec_value);\n\n#endif // PRINT_GENERATED_INPUT_H\n" (preproc_ifdef) "#ifndef PRINT_G...
30
1
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 41.0, "nodes": 23, "errors": 0, "source_hash": "774e3b3db9aec9fa3003e8ad900650d18140f1db2ac94cd7b1d1515bd6c92e7a", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef PR...
7,868
c
// // YDViewController.h // ApeTribe_6.22 // // Created by ibokan on 16/7/26. // Copyright © 2016年 One. All rights reserved. // #import <UIKit/UIKit.h> #import "InteractivityTransitionDelegate.h" @interface YDViewController : UIViewController @property (nonatomic, strong) InteractivityTransitionDelegate *customTra...
27.42
12
(translation_unit) "//\n// YDViewController.h\n// ApeTribe_6.22\n//\n// Created by ibokan on 16/7/26.\n// Copyright © 2016年 One. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "InteractivityTransitionDelegate.h"\n@interface YDViewController : UIViewController\n@property (nonatomic, strong) Interactivi...
39
6
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 27.42, "nodes": 26, "errors": 0, "source_hash": "a0a97d228c34097688f82509980d6d6683948f40cbba38253599df1f29481a8a", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
7,869
c
#include "../../../VISION/VISION.h" #define WIDTH_OF_WINDOW 168 #define HEIGHT_OF_WINDOW 192 #define PIXELS_PER_CELL 8 #define CELLS_PER_BLOCK 4 #define NUMBER_OF_ANGLE_BINS 9 #define NUMBER_OF_FEATURES ((HEIGHT_OF_WINDOW / PIXELS_PER_CELL) - (CELLS_PER_BLOCK - 1)) * ((WIDTH_OF_WINDOW / PIXELS_PER_CELL) - (CEL...
30.53
96
(translation_unit) "#include "../../../VISION/VISION.h"\n\n#define WIDTH_OF_WINDOW 168\n\n#define HEIGHT_OF_WINDOW 192\n\n#define PIXELS_PER_CELL 8\n\n#define CELLS_PER_BLOCK 4\n\n#define NUMBER_OF_ANGLE_BINS 9\n\n#define NUMBER_OF_FEATURES ((HEIGHT_OF_WINDOW / PIXELS_PER_CELL) - (CELLS_PER_BLOCK - 1)) * ((WIDTH_OF_W...
984
0
{"language": "c", "success": true, "metadata": {"lines": 96, "avg_line_length": 30.53, "nodes": 591, "errors": 0, "source_hash": "6f366966000a1365f9c7bcf455372571c8caca5fc6c1d8f54b37b141a20829a1", "categorized_nodes": 418}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,870
c
/* * regional.c -- region based memory allocator. * * Copyright (c) 2001-2006, NLnet Labs. All rights reserved. * * Copyright (c) 2007, NLnet Labs. All rights reserved. * * This software is open source. * * Redistribution and use in source and binary forms, with or without * modification, are permitted prov...
26
236
(translation_unit) "/*\n * regional.c -- region based memory allocator.\n *\n * Copyright (c) 2001-2006, NLnet Labs. All rights reserved.\n *\n * Copyright (c) 2007, NLnet Labs. All rights reserved.\n * \n * This software is open source.\n * \n * Redistribution and use in source and binary forms, with or without\n * mo...
1,404
4
{"language": "c", "success": true, "metadata": {"lines": 236, "avg_line_length": 26.0, "nodes": 927, "errors": 0, "source_hash": "e9a31f0180c83fa189a41834659776d17899cbe98cf4024bce3f562a342b6b40", "categorized_nodes": 588}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,871
c
#ifndef CUSTOM_MATH_H #define CUSTOM_MATH_H #include <algorithm> #include <cmath> #include <cassert> #define PI 3.141592741f #define EPSILON 0.0001f typedef float customFloat; template <class T> class Vec2 { public: T x, y; Vec2() :x(0), y(0) {} Vec2(T x, T y) : x(x), y(y) {} Vec2(const Vec2& v) : x(v.x), y(v.y) ...
18.91
196
(translation_unit) "#ifndef CUSTOM_MATH_H\n#define CUSTOM_MATH_H\n\n#include <algorithm>\n#include <cmath>\n#include <cassert>\n#define PI 3.141592741f\n#define EPSILON 0.0001f\ntypedef float customFloat;\ntemplate <class T>\nclass Vec2 {\npublic:\n T x, y;\n\n Vec2() :x(0), y(0) {}\n Vec2(T x, T y) : x(x), y(y) {}\n V...
1,934
60
{"language": "c", "success": true, "metadata": {"lines": 196, "avg_line_length": 18.91, "nodes": 1242, "errors": 0, "source_hash": "955eccd3316ba1d1cb7ad87622265f9252369ebd0addf6dfa44adeb2679de820", "categorized_nodes": 913}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
7,872
c
/* Older versions of libav (and perhaps ffmpeg) used a different naming scheme for constants. Since distributions like Ubuntu 12.04 are locked down with these old versions, we hack in support for the newer constant names. */ #if LIBAVUTIL_VERSION_MAJOR < 53 #define AV_PIX_FMT_NONE PIX_FMT_NONE #define AV_PIX_...
35.59
46
(translation_unit) "/* Older versions of libav (and perhaps ffmpeg) used a different\n naming scheme for constants. Since distributions like Ubuntu 12.04\n are locked down with these old versions, we hack in support for the\n newer constant names. */\n\n#if LIBAVUTIL_VERSION_MAJOR < 53\n#define AV_PIX_FMT_NONE PI...
170
0
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 35.59, "nodes": 168, "errors": 0, "source_hash": "2c58d7910e505a6ff2a6ee233f5f9a2760d0ec74327ba76e7c05527cafd199e8", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if LIBAVU...
7,873
c
/* * MikroSDK - MikroE Software Development Kit * Copyright© 2020 MikroElektronika d.o.o. * * 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...
32.33
120
(translation_unit) "/*\n * MikroSDK - MikroE Software Development Kit\n * Copyright© 2020 MikroElektronika d.o.o.\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 restrict...
754
0
{"language": "c", "success": true, "metadata": {"lines": 120, "avg_line_length": 32.33, "nodes": 499, "errors": 0, "source_hash": "509ac256206df9a184a7da22ed8df91daeb8cd069b3cd7b25448749c6c79d652", "categorized_nodes": 348}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "inc...
7,874
c
#include <stdio.h> #include "api.h" #include "poly.h" #include "poly_mul.h" #include "pack_unpack.h" #include "cbd.h" #include "fips202.h" void MatrixVectorMul(const uint16_t A[SABER_L][SABER_L][SABER_N], const uint16_t sw[SABER_L][7][64], uint16_t res[SABER_L][SABER_N], int16_t transpose) { uint16_t acc[889] = {0}; ...
22.91
77
(translation_unit) "#include <stdio.h>\n#include "api.h"\n#include "poly.h"\n#include "poly_mul.h"\n#include "pack_unpack.h"\n#include "cbd.h"\n#include "fips202.h"\n\nvoid MatrixVectorMul(const uint16_t A[SABER_L][SABER_L][SABER_N], const uint16_t sw[SABER_L][7][64], uint16_t res[SABER_L][SABER_N], int16_t transpose)\...
729
0
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 22.91, "nodes": 414, "errors": 0, "source_hash": "898a6bd7219e296981eef40966a06d1915cf2b8bcf1df91970d5746f755baf80", "categorized_nodes": 301}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,875
c
#include <avr/pgmspace.h> #include <stdio.h> #include "vt100.h" // Functions void vt100Init(void) { // initializes terminal to "power-on" settings // ESC c printf("\x1B\x63"); } void vt100ClearScreen(void) { // ESC [ 2 J printf("\x1B[2J"); } void vt100SetAttr(char attr) { // ESC [ Ps...
14.28
40
(translation_unit) "#include <avr/pgmspace.h> \n#include <stdio.h> \n#include "vt100.h" \n \n \n// Functions \nvoid vt100Init(void) \n{ \n // initializes terminal to "power-on" settings \n // ESC c \n printf("\x1B\x63"); \n} \n \nvoid vt100ClearScreen(void) \n{ \n // ESC [ 2 J \n printf("\x1B[2J"); \n} \n \nvoid vt100...
174
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 14.28, "nodes": 88, "errors": 0, "source_hash": "837816b6dab688661fd5def236d45afcf48571caed518232e550aaca1174e98b", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
7,876
c
// // NYT360CameraPanGestureRecognizer.h // NYT360Video // // Created by <NAME> on 8/5/16. // Copyright © 2016 The New York Times Company. All rights reserved. // @import UIKit; /** * An otherwise vanilla subclass of UIPanGestureRecognizer used by NYT360Video to enable manual camera panning. * * This class i...
38.07
15
(translation_unit) "//\n// NYT360CameraPanGestureRecognizer.h\n// NYT360Video\n//\n// Created by <NAME> on 8/5/16.\n// Copyright © 2016 The New York Times Company. All rights reserved.\n//\n\n@import UIKit;\n\n/**\n * An otherwise vanilla subclass of UIPanGestureRecognizer used by NYT360Video to enable manual came...
23
5
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 38.07, "nodes": 12, "errors": 0, "source_hash": "35095db68070330e5086bed5325e6b5b8b63d373044bbf01a1b3ed5afd26ed09", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "i", "parent": nul...
7,877
c
/** * Copyright (c) 2017 <NAME> * * This software is released under the MIT License. * https://opensource.org/licenses/MIT */ #include "plat_defs.h" #include "boot_information.h" int module_init() { //Setup syscall system syscall_plat_init(); return 0; } int user_mp_init() { sys...
15.95
21
(translation_unit) "/** \n * Copyright (c) 2017 <NAME> \n * \n * This software is released under the MIT License. \n * https://opensource.org/licenses/MIT \n */ \n#include "plat_defs.h" \n#include "boot_information.h" \n \nint module_init() \n{ \n //Setup syscall system \n syscall_plat_init(); \n return 0; \n}...
57
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 15.95, "nodes": 26, "errors": 0, "source_hash": "08fc5613bf23d0057484c146037f7ac155ea27db908dfa5e630748ebd8b23fc0", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
7,878
c
/* * main.c * * Created on: Aug 12, 2017 * Author: nafiu */ #include <stdio.h> #include "./include/hash.h" #include "./include/linked_list.h" int main(void){ int buff[] = { 410, 1, 2, 45, -1, 78, 12, 74, 45, 84, 85, 78, 12, 23, 89, 15, 14, 17, 78, 18, 20, 56, 1, 45, 47, 45, 74, 12, 74, 54, 12, 74, 42, 8...
29.88
32
(translation_unit) "/*\n * main.c\n *\n * Created on: Aug 12, 2017\n * Author: nafiu\n */\n\n#include <stdio.h>\n#include "./include/hash.h"\n#include "./include/linked_list.h"\n\nint main(void){\n\n int buff[] = { 410, 1, 2, 45, -1, 78, 12, 74, 45, 84, 85, 78, 12, 23, 89, 15, 14, 17, 78, 18, 20, 56, 1, 45, 47, ...
401
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 29.88, "nodes": 210, "errors": 0, "source_hash": "f9ebd2c6957eb0ac329bb4fcdb5282720c573b83889c7eff69dcac19723e7ef9", "categorized_nodes": 179}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,879
c
#pragma once #include "Station.h" namespace w2 { class Stations { private: int stationCount; Station* stationsTable; char* filename; public: Stations(); Stations(char* f); ~Stations(); void update() const; void restock() const; void report() const; }; }
13.43
21
(translation_unit) "#pragma once \n#include "Station.h" \n \nnamespace w2 \n{ \n class Stations \n { \n private: \n int stationCount; \n Station* stationsTable; \n char* filename; \n \n public: \n Stations(); \n Stations(char* f); \n ~Stations(); \n void update() const; \n void restock() const; \n void repo...
102
3
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 13.43, "nodes": 55, "errors": 0, "source_hash": "0739e3d385e6a3cae5d57a606e9b636a671533693080e58df562a92e984fe372", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
7,880
c
/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "S1AP-IEs" * found in "./asn1c/S1AP-IEs.asn" * `asn1c -fcompound-names -fno-include-deps -gen-PER -findirect-choice -pdu=S1AP-PDU` */ #ifndef _CNDomain_H_ #define _CNDomain_H_ #include <asn_application.h> /* Including external depe...
28.89
44
(translation_unit) "/*\n * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)\n * From ASN.1 module "S1AP-IEs"\n * found in "./asn1c/S1AP-IEs.asn"\n * `asn1c -fcompound-names -fno-include-deps -gen-PER -findirect-choice -pdu=S1AP-PDU`\n */\n\n#ifndef _CNDomain_H_\n#define _CNDomain_H_\n\n\n#include <asn_application...
139
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 28.89, "nodes": 103, "errors": 0, "source_hash": "5739f3096fd4ca87db2ad4451fdbff43a65f065ec8d6ee3dd1663ddc2d8789fa", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,881
c
/* * This file is part of the Glaziery. * Copyright <NAME>. * * READ README.TXT BEFORE USE!! */ #ifndef __GLAZIERY_MENUWINDOW_H #define __GLAZIERY_MENUWINDOW_H namespace glaziery { class MenuPopup : public Popup { private: bool destroyMenu; Menu * menu; protected: virtual ~MenuPopup(); v...
36.89
79
(translation_unit) "/*\n * This file is part of the Glaziery.\n * Copyright <NAME>.\n *\n * READ README.TXT BEFORE USE!!\n */\n\n\n#ifndef __GLAZIERY_MENUWINDOW_H\n#define __GLAZIERY_MENUWINDOW_H\n\n\nnamespace glaziery\n{\n class MenuPopup : public Popup\n {\n private:\n\n bool destroyMenu;\n\n Menu * menu;\n\n ...
180
6
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 36.89, "nodes": 111, "errors": 0, "source_hash": "527eda3ca0f6180bc2092d84923bf5570cd4ca5d985fcc3cb87de6c947e421a3", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,882
c
#include "threads1.h" int contador_global = 0; void* thread_function(void* argv) { int num_threads = *((int *)argv); for (int i = 0; i < num_threads * 1000; ++i) { contador_global++; } } int main(int argc, char* argv[]) { int num_threads; if (argc < 2) { printf("Not enough argumen...
26.5
26
(translation_unit) "#include "threads1.h"\n\nint contador_global = 0;\n\nvoid* thread_function(void* argv) {\n int num_threads = *((int *)argv);\n for (int i = 0; i < num_threads * 1000; ++i) {\n contador_global++;\n }\n}\n\nint main(int argc, char* argv[]) {\n int num_threads;\n if (argc < 2) {\n...
268
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 26.5, "nodes": 158, "errors": 0, "source_hash": "2ea1d0589c18287cd25ae265e18fb498e86887b03899e7d34ce6ed6aaab6e115", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
7,883
c
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif #import "RECommonFunctions.h" #import "RESideMenu.h" #import "UIViewController+RESideMenu.h" FOUNDATION_EXPORT double RESide...
24.12
16
(translation_unit) "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#else\n#ifndef FOUNDATION_EXPORT\n#if defined(__cplusplus)\n#define FOUNDATION_EXPORT extern "C"\n#else\n#define FOUNDATION_EXPORT extern\n#endif\n#endif\n#endif\n\n#import "RECommonFunctions.h"\n#import "RESideMenu.h"\n#import "UIViewController+RESideMenu.h...
61
1
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 24.12, "nodes": 51, "errors": 0, "source_hash": "86a2149191b6bdb8cee41bb4032c0e044ac95a3bb3d301fa638e5bbee55ef331", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef _...
7,884
c
#include <stdarg.h> #include <types.h> uint32_t vsnprintf(char* str, size_t n, const char* format, va_list args) { uint32_t i = 0; //Index for format uint32_t j = 0; //Index for s uint16_t base = 0; //base used for number representation uint32_t arg_width; bool_t specifier_expected = FALSE; uint32_t k; ...
20.69
201
(translation_unit) "#include <stdarg.h>\n#include <types.h>\n\nuint32_t vsnprintf(char* str, size_t n, const char* format, va_list args)\n{\n uint32_t i = 0; //Index for format\n uint32_t j = 0; //Index for s\n uint16_t base = 0; //base used for number representation\n uint32_t arg_width;\n bool_t specifier_expect...
1,225
1
{"language": "c", "success": true, "metadata": {"lines": 201, "avg_line_length": 20.69, "nodes": 785, "errors": 0, "source_hash": "59fd0337f60659788284461117855d75fdc7cf857b167de641f3e26e9323754d", "categorized_nodes": 502}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,885
c
/** * BicliqueLite is a container class that tracks and manages vertices which * comprise some BicliqueLite in a graph. * See BicliqueLite.cpp for full documentation. * * @authors <NAME>, <NAME>, <NAME> * * This file is part of MI-bicliques, https://github.com/TheoryInPractice/MI-bicliques, * and is Copyright (...
41.77
86
(translation_unit) "/**\n * BicliqueLite is a container class that tracks and manages vertices which\n * comprise some BicliqueLite in a graph.\n * See BicliqueLite.cpp for full documentation.\n *\n * @authors <NAME>, <NAME>, <NAME>\n *\n * This file is part of MI-bicliques, https://github.com/TheoryInPractice/MI-bicli...
811
49
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 41.77, "nodes": 487, "errors": 0, "source_hash": "15c493c796c103b3e7011709a277bf9f47c19d3c576f8980a3f606b1fe9bbe2d", "categorized_nodes": 326}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,886
c
template<typename T> class GenericContainer { private: T storage; public: GenericContainer(T value) { storage = value; }; }; typedef GenericContainer<int> IntContainer; struct Foo { class Bar; Bar *bar; };
15.57
14
(translation_unit) "template<typename T>\nclass GenericContainer {\n private:\n T storage;\n\n public:\n GenericContainer(T value) {\n storage = value;\n };\n};\n\ntypedef GenericContainer<int> IntContainer;\n\nstruct Foo {\n class Bar;\n Bar *bar;\n};\n" (ERROR) "template<typename T>\nclass Generic...
73
5
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 15.57, "nodes": 44, "errors": 0, "source_hash": "22d60bfeb272a4c7b2b0cd31c1d79d2f55e2a34539ed4963828485bca7ee8d34", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "template<typenam...
7,887
c
#ifndef STUDIO_DATA_MESH_H #define STUDIO_DATA_MESH_H #include <QString> #include <QSharedPointer> #include <itkeigen/Eigen/Dense> #include <itkeigen/Eigen/Sparse> #include <vtkPolyData.h> #include <vtkSmartPointer.h> #include <vtkImageImport.h> #include <itkImage.h> #include <vnl/vnl_vector.h> #include <Groom/Shap...
28.86
44
(translation_unit) "#ifndef STUDIO_DATA_MESH_H\n#define STUDIO_DATA_MESH_H\n\n#include <QString>\n#include <QSharedPointer>\n\n#include <itkeigen/Eigen/Dense>\n#include <itkeigen/Eigen/Sparse>\n\n#include <vtkPolyData.h>\n#include <vtkSmartPointer.h>\n#include <vtkImageImport.h>\n#include <itkImage.h>\n\n#include <vnl/...
204
5
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 28.86, "nodes": 138, "errors": 0, "source_hash": "eeca98af112acc5978de15a8b37fbf6ada25fddc65150702843735cace6b9f14", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,888
c
// // C2DBManager.h // C2-iOS-Base // // Created by watson on 2020/6/29. // Copyright © 2020 watson. All rights reserved. // #import <YTKKeyValueStore.h> NS_ASSUME_NONNULL_BEGIN extern NSString *const kTableName_UserInfo; extern NSString *const kTableName_StaticFiles; extern NSString *const kTableName_RequestCac...
32
33
(translation_unit) "//\n// C2DBManager.h\n// C2-iOS-Base\n//\n// Created by watson on 2020/6/29.\n// Copyright © 2020 watson. All rights reserved.\n//\n\n#import <YTKKeyValueStore.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\nextern NSString *const kTableName_UserInfo;\nextern NSString *const kTableName_StaticFiles;\nextern NSS...
302
36
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 32.0, "nodes": 200, "errors": 0, "source_hash": "da34eb56e1760a89155974062607115248786486999caff5e5cf09f9c2c130e1", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <...
7,889
c
// // liebiaoTableViewCell.h // HuiShengHuo2.0 // // Created by 晋中华晟 on 2018/5/30. // Copyright © 2018年 晋中华晟. All rights reserved. // #import <UIKit/UIKit.h> #import "liebiaomodel.h" @interface liebiaoTableViewCell : UITableViewCell @property (nonatomic,strong)liebiaomodel *model; @property (nonatomic,strong)UII...
35.05
22
(translation_unit) "//\n// liebiaoTableViewCell.h\n// HuiShengHuo2.0\n//\n// Created by 晋中华晟 on 2018/5/30.\n// Copyright © 2018年 晋中华晟. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "liebiaomodel.h"\n@interface liebiaoTableViewCell : UITableViewCell\n\n@property (nonatomic,strong)liebiaomodel *model;\...
219
46
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 35.05, "nodes": 165, "errors": 0, "source_hash": "277613ffda0c13d70758fba6da93418703d4ae161733d04b50a1ca8fdd016268", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "t.h>\n#i...
7,890
c
#pragma once #ifdef USE_PYTHON3 #include <contrib/tools/python3/src/Include/parsetok.h> #else #include <contrib/tools/python/src/Include/parsetok.h> #endif
25
6
(translation_unit) "#pragma once\n\n#ifdef USE_PYTHON3\n#include <contrib/tools/python3/src/Include/parsetok.h>\n#else\n#include <contrib/tools/python/src/Include/parsetok.h>\n#endif\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_ifdef) "#ifdef USE_PYTHON3\n#i...
16
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 25.0, "nodes": 15, "errors": 0, "source_hash": "b46d7f258e3ddbafa94188d477602bf0ded6043ee7a5b2bf61fa9ebc7d1f9b4a", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
7,891
c
/* Copyright (c) <2003-2016> <<NAME>, Newton Game Dynamics> * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any purpose, *...
39.08
118
(translation_unit) "/* Copyright (c) <2003-2016> <<NAME>, Newton Game Dynamics>\n* \n* This software is provided 'as-is', without any express or implied\n* warranty. In no event will the authors be held liable for any damages\n* arising from the use of this software.\n* \n* Permission is granted to anyone to use this s...
1,066
51
{"language": "c", "success": true, "metadata": {"lines": 118, "avg_line_length": 39.08, "nodes": 596, "errors": 0, "source_hash": "066bc4e16c3c831c40221c796c0789cc7f712647bfafc358368857bc4c18f5ba", "categorized_nodes": 433}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,892
c
/* * Copyright (C) 2022 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/test/common/mocks/ult_device_factory.h" #include "shared/test/common/test_macros/test.h" #include "level_zero/core/test/unit_tests/fixtures/device_fixture.h" #include "level_zero/tools/source/sysman/sysman_imp.h" #i...
36.89
44
(translation_unit) "/*\n * Copyright (C) 2022 Intel Corporation\n *\n * SPDX-License-Identifier: MIT\n *\n */\n\n#include "shared/test/common/mocks/ult_device_factory.h"\n#include "shared/test/common/test_macros/test.h"\n\n#include "level_zero/core/test/unit_tests/fixtures/device_fixture.h"\n#include "level_zero/tools/...
428
20
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 36.89, "nodes": 251, "errors": 0, "source_hash": "531cb503f003528e0ce91ee72c1c56611026c4bc6ef28c68ef6de0525f318f65", "categorized_nodes": 179}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,893
c
#include "stdio.h" #include "string.h" #include "stdint.h" #include "stdbool.h" #include "utils.h" /* * @brief 数组转成HEX字符串 * @param * @param * @return * @note */ int dump_hex_str(const char *src,char *dst,uint16_t src_len) { char temp; if (src == NULL || dst == NULL) { return -1; } char hex_...
22.26
27
(translation_unit) "#include "stdio.h"\n#include "string.h"\n#include "stdint.h"\n#include "stdbool.h"\n#include "utils.h"\n\n/*\n* @brief 数组转成HEX字符串\n* @param\n* @param\n* @return \n* @note\n*/\nint dump_hex_str(const char *src,char *dst,uint16_t src_len)\n {\n char temp;\n\n if (src == NULL || dst == NULL) {\n ...
279
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 22.26, "nodes": 168, "errors": 0, "source_hash": "7c511c6453b17c1105d8dcd02c81acd1e6ea0720f0f4b6a3a05be56183fbc38d", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,894
c
#pragma once #include "Point3d.h" #include "Particle.h" #include "Constraint.h" #include <vector> class ParticlesSym { float widht_; float height_; float depth_; Point3d gravity_; float friction_; float groundFriction_; std::vector<Particle> particles_; std::vector<Constraint*> constraints_; float m_forcePo...
34.54
35
(translation_unit) "#pragma once\n\n#include "Point3d.h"\n#include "Particle.h"\n#include "Constraint.h"\n#include <vector>\n\nclass ParticlesSym {\n\n float widht_;\n float height_;\n float depth_;\n Point3d gravity_;\n float friction_;\n float groundFriction_;\n std::vector<Particle> particles_;\n std::vector<Constra...
379
12
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 34.54, "nodes": 253, "errors": 0, "source_hash": "72d18d8f8a957c9b78fc22d66482f0fa36d6bf96402a9064d4cc5addca6b8ef3", "categorized_nodes": 164}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
7,895
c
/* =============================================================================== Copyright (C) 2019 d&b audiotechnik GmbH & Co. KG. All Rights Reserved. This file is part of the Soundscape VST, AU, and AAX Plug-in. Redistribution and use in source and binary forms, with or without modification, are permitted provi...
37.95
193
(translation_unit) "/*\n===============================================================================\n\nCopyright (C) 2019 d&b audiotechnik GmbH & Co. KG. All Rights Reserved.\n\nThis file is part of the Soundscape VST, AU, and AAX Plug-in.\n\nRedistribution and use in source and binary forms, with or without\nmodif...
824
34
{"language": "c", "success": true, "metadata": {"lines": 193, "avg_line_length": 37.95, "nodes": 527, "errors": 0, "source_hash": "8452483a0a23a0b0044e6da1ccc9b2f851ced451b0925ee501a876c7303cfc23", "categorized_nodes": 368}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
7,896
c
// Copyright (c) 2017 Couchbase, Inc. // 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 law or agreed to in w...
32.8
49
(translation_unit) "// Copyright (c) 2017 Couchbase, Inc.\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// http://www.apache.org/licenses/LICENSE-2.0\n// Unless required by applica...
310
6
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 32.8, "nodes": 201, "errors": 0, "source_hash": "a5ac1fd5763c3002e366ffa6745ea2895f28ee48bdfd589a21bd9c7e55291029", "categorized_nodes": 136}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,897
c
//wroad05.c #include "../../kildare.h" inherit WHIGH; void create() { ::create(); set_exits(([ "north" : ROADS"wroad04", "south" : ROADS"wroad06" ])); }
15.09
11
(translation_unit) "//wroad05.c\n#include "../../kildare.h"\n\ninherit WHIGH;\n\nvoid create()\n{\n ::create();\n set_exits(([\n "north" : ROADS"wroad04",\n "south" : ROADS"wroad06"\n ]));\n}\n" (comment) "//wroad05.c" (preproc_include) "#include "../../kildare.h"\n" (#include) "#include" ...
69
2
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 15.09, "nodes": 29, "errors": 0, "source_hash": "68d48a73a978a60f6dfd8cb162af011dff7b4a339b60467799ac60ef932b728c", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
7,898
c
// Generated by gencpp from file kuka_cv/RequestPaletteResponse.msg // DO NOT EDIT! #ifndef KUKA_CV_MESSAGE_REQUESTPALETTERESPONSE_H #define KUKA_CV_MESSAGE_REQUESTPALETTERESPONSE_H #include <string> #include <vector> #include <map> #include <ros/types.h> #include <ros/serialization.h> #include <ros/builtin_messag...
31.97
192
(translation_unit) "// Generated by gencpp from file kuka_cv/RequestPaletteResponse.msg\n// DO NOT EDIT!\n\n\n#ifndef KUKA_CV_MESSAGE_REQUESTPALETTERESPONSE_H\n#define KUKA_CV_MESSAGE_REQUESTPALETTERESPONSE_H\n\n\n#include <string>\n#include <vector>\n#include <map>\n\n#include <ros/types.h>\n#include <ros/serializatio...
1,719
122
{"language": "c", "success": true, "metadata": {"lines": 192, "avg_line_length": 31.97, "nodes": 1000, "errors": 0, "source_hash": "41afa273265d0e600c1e9783a22d1a36bff0d8d2b6bf280d57e0433105c72de8", "categorized_nodes": 647}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
7,899