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
/* * * ZDKETag.h * ZendeskSDK * * Created by Zendesk on 01/09/2014. * * Copyright (c) 2014 Zendesk. All rights reserved. * * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms * of Service https://www.zendesk.com/company/terms and Application Developer and API License * A...
23.53
55
(translation_unit) "/*\n *\n * ZDKETag.h\n * ZendeskSDK\n *\n * Created by Zendesk on 01/09/2014. \n *\n * Copyright (c) 2014 Zendesk. All rights reserved.\n *\n * By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Terms\n * of Service https://www.zendesk.com/company/terms and Application D...
90
13
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 23.53, "nodes": 56, "errors": 0, "source_hash": "38cc6ebb157b8fa2e5bac59aba5ad987c79996e6a7016656edb5bac28518bbee", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
9,900
c
#include<stdio.h> int main() { int a,b,c,d,temp; while(scanf("%d",&a)!=EOF){ scanf("%d%d%d",&b,&c,&d); if(a<b){temp=a;a=b;b=temp;} if(a<c){temp=a;a=c;c=temp;} if(a<d){temp=a;a=d;d=temp;} if(b<c){temp=b;b=c;c=temp;} if(b<d){temp=b;b=d;d=temp;} if(c<d){temp=...
24.06
17
(translation_unit) "#include<stdio.h>\nint main()\n{\n int a,b,c,d,temp;\n while(scanf("%d",&a)!=EOF){\n scanf("%d%d%d",&b,&c,&d);\n if(a<b){temp=a;a=b;b=temp;}\n if(a<c){temp=a;a=c;c=temp;}\n if(a<d){temp=a;a=d;d=temp;}\n if(b<c){temp=b;b=c;c=temp;}\n if(b<d){temp=b;b=d;...
304
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 24.06, "nodes": 175, "errors": 0, "source_hash": "0bd3ae866c352e46fdc8bdb0f89a0f5caa3238d2165e3460519e1d051cd14140", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,901
c
// // TTAsset.h // TTImagePicker // // Created by 陈欢 on 2020/4/25. // Copyright © 2020 Matcha00. All rights reserved. // #import "TTPhotoManager.h" NS_ASSUME_NONNULL_BEGIN typedef NS_ENUM(NSUInteger, TTAssetType) { TTAssetTypeUnknow, TTAssetTypeImage, TTAssetTypeVideo, TTAssetTypeAudio }; typedef N...
38.2
123
(translation_unit) "//\n// TTAsset.h\n// TTImagePicker\n//\n// Created by 陈欢 on 2020/4/25.\n// Copyright © 2020 Matcha00. All rights reserved.\n//\n#import "TTPhotoManager.h"\nNS_ASSUME_NONNULL_BEGIN\ntypedef NS_ENUM(NSUInteger, TTAssetType) {\n TTAssetTypeUnknow,\n TTAssetTypeImage,\n TTAssetTypeVideo,\n ...
698
65
{"language": "c", "success": true, "metadata": {"lines": 123, "avg_line_length": 38.2, "nodes": 454, "errors": 0, "source_hash": "e2da344b66a5b8db9e7fc1d3a075a609efcc911fb2dbb5a6613cadf1a37eb37e", "categorized_nodes": 265}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "rt \"TT...
9,902
c
// // AFHttpTool.h // RCloud_liv_demo // // Created by Liv on 14-10-22. // Copyright (c) 2014年 RongCloud. All rights reserved. // #import <Foundation/Foundation.h> typedef NS_ENUM(NSInteger, RequestMethodType){ RequestMethodTypePost = 1, RequestMethodTypeGet = 2 }; @interface AFHttpTool : NSObject /** ...
38.15
100
(translation_unit) "//\n// AFHttpTool.h\n// RCloud_liv_demo\n//\n// Created by Liv on 14-10-22.\n// Copyright (c) 2014年 RongCloud. All rights reserved.\n//\n\n\n#import <Foundation/Foundation.h>\n\ntypedef NS_ENUM(NSInteger, RequestMethodType){\n RequestMethodTypePost = 1,\n RequestMethodTypeGet = 2\n};\n\n@i...
1,332
99
{"language": "c", "success": true, "metadata": {"lines": 100, "avg_line_length": 38.15, "nodes": 820, "errors": 0, "source_hash": "45c7f6725d298bd5c46b59335225e8b1b22a642798c165d88ff2665307635db9", "categorized_nodes": 406}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport ...
9,903
c
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
36.95
38
(translation_unit) "/*\n* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or\n* its licensors.\n*\n* For complete copyright and license terms please see the LICENSE at the root of this\n* distribution (the "License"). All use of this software is governed by the License,\n* or, if provided,...
173
12
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 36.95, "nodes": 118, "errors": 0, "source_hash": "20e8ab33e06bfc7ecbe008038049c1c522e4ec331cf8c39a9f839b54ed53316e", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,904
c
#pragma once #include <Windows.h> #include <set> enum ActionType { Unknown = 0, ViewAngles, MouseButtonDown, MouseButtonUp, KeyDown, KeyUp, }; typedef struct { float yaw; float pitch; } SViewAngles; typedef struct { float pitch; float yaw; } CViewAngles_t; typedef struct { ...
14.68
72
(translation_unit) "#pragma once\n\n#include <Windows.h>\n#include <set>\n\nenum ActionType\n{\n Unknown = 0,\n ViewAngles,\n MouseButtonDown,\n MouseButtonUp,\n KeyDown,\n KeyUp,\n};\n\ntypedef struct\n{\n float yaw;\n float pitch;\n} SViewAngles;\n\ntypedef struct\n{\n float pitch;\n flo...
286
1
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 14.68, "nodes": 176, "errors": 0, "source_hash": "edbb6bd7d8eb97fdd9691bbcfe2b7774175e658e34ab47506971a43a76916697", "categorized_nodes": 147}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,905
c
struct Big { int field_int; char field_arr[2560]; }; void foo(struct Big big); void call_foo(void); void call_foo(void) { struct Big big; big.field_int = 3; foo(big); }
16.18
11
(translation_unit) "struct Big {\n int field_int;\n char field_arr[2560];\n};\n\nvoid foo(struct Big big);\nvoid call_foo(void);\nvoid call_foo(void) {\n struct Big big;\n big.field_int = 3;\n foo(big);\n}\n" (struct_specifier) "struct Big {\n int field_int;\n char field_arr[2560];\n}" (struc...
78
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 16.18, "nodes": 50, "errors": 0, "source_hash": "eb5fc9d0fca924502b29cb2763016c305e1742689883e26c43752db4ec6b2d2b", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "struct_specifier", "text": "struc...
9,906
c
#include<iostream.h> class distance { private: int meter; public: dist(); diam(); friend int addfive(distance); }; int addfive(distance) { return 1; } int main() { distance d; cout<<"distance:"; return 0; }
10.3
20
(translation_unit) "#include<iostream.h> \nclass distance \n{ \nprivate: \nint meter; \npublic: \ndist(); \ndiam(); \nfriend int addfive(distance); \n}; \nint addfive(distance) \n{ \nreturn 1; \n} \nint main() \n{ \ndistance d; \ncout<<"distance:"; \nreturn 0; \n}" (preproc_include) "#include<iostream.h> \n" (#in...
91
1
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 10.3, "nodes": 48, "errors": 0, "source_hash": "ade906d19edb22566a599bf8c1e7642aee6d664bb5b2d8996826d731db31680a", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
9,907
c
#ifndef LNODE_H #define LNODE_H #include "CSError.h" #include <stdlib.h> // Linked list node struct LNode { unsigned integer; void * data; struct LNode * next; }; static inline CSError LNode_prepend(struct LNode ** root, void * data, unsigned integer) { if (NULL == root) ...
24.15
86
(translation_unit) "#ifndef LNODE_H\n#define LNODE_H\n#include "CSError.h"\n#include <stdlib.h>\n\n// Linked list node\nstruct LNode {\n unsigned integer;\n void * data;\n struct LNode * next;\n};\n\nstatic inline\nCSError LNode_prepend(struct LNode ** root, void * data, unsigned inte...
697
0
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 24.15, "nodes": 463, "errors": 0, "source_hash": "215ce7126e0607bf5d1d8ea02484884f0fed738156092e22c8300395e6fbf882", "categorized_nodes": 301}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,908
c
#ifndef SGX_NETIF_T_H__ #define SGX_NETIF_T_H__ #include <stdint.h> #include <wchar.h> #include <stddef.h> #include "sgx_edger8r.h" /* for sgx_ocall etc. */ #include "struct/sgx_netif_struct.h" #include <stdlib.h> /* for size_t */ #define SGX_CAST(type, item) ((type)(item)) #ifdef __cplusplus extern "C" { #endif ...
32.19
21
(translation_unit) "#ifndef SGX_NETIF_T_H__\n#define SGX_NETIF_T_H__\n\n#include <stdint.h>\n#include <wchar.h>\n#include <stddef.h>\n#include "sgx_edger8r.h" /* for sgx_ocall etc. */\n\n#include "struct/sgx_netif_struct.h"\n\n#include <stdlib.h> /* for size_t */\n\n#define SGX_CAST(type, item) ((type)(item))\n\n#ifdef...
154
4
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 32.19, "nodes": 118, "errors": 0, "source_hash": "ec7f7ff5e86cda17a90078fc339caa9735425fb9d30eea078bcca4bcd3a0783a", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,909
c
#include<stdio.h> struct complex{ int real,img; }; int main() { struct complex a1,b1,a2,b2,c1,c2; scanf("%d",&a1.real); scanf("%d",&b1.img); printf("\n"); scanf("%d",&a2.real); scanf("%d",&b2.img); c1.real=a1.real+a2.real; c2.img=b1.img+b2.img; printf("%d+i%d",c1.real,c2.img); ...
18.18
17
(translation_unit) "#include<stdio.h>\nstruct complex{\n int real,img;\n};\nint main()\n{\n struct complex a1,b1,a2,b2,c1,c2;\n scanf("%d",&a1.real);\n scanf("%d",&b1.img);\n printf("\n");\n scanf("%d",&a2.real);\n scanf("%d",&b2.img);\n c1.real=a1.real+a2.real;\n c2.img=b1.img+b2.img;\n ...
183
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 18.18, "nodes": 98, "errors": 0, "source_hash": "d7502c724624861101e2aaf5f285b77b2fe48a0759f779134b3ecd1f412d7fe6", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
9,910
c
/* * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Copyright 2007-2019 Broadcom Inc. All rights reserved. * */ #ifdef LINUX /* #include <stdint.h> */ #endif #include <phymod/phymod.h> #include <phymod/phymod_system.h> #incl...
31.52
113
(translation_unit) "/*\n * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.\n * \n * Copyright 2007-2019 Broadcom Inc. All rights reserved.\n * \n*/\n\n#ifdef LINUX\n/* #include <stdint.h> */\n#endif\n#include <phymod/phymod.h>\n#include...
798
0
{"language": "c", "success": true, "metadata": {"lines": 113, "avg_line_length": 31.52, "nodes": 459, "errors": 0, "source_hash": "a282ff15c880ca5b3a8047628060502f5a1a9f0b703178dda9d217b67ad61147", "categorized_nodes": 351}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifde...
9,911
c
#pragma once #define NUMBER_OF_BUBBLES 7 uint8_t count_bubble = 0; enum class BubbleType : uint8_t { R_Shoot, L_Shoot, Captured, Up_Bubble, Pop_Bubble, }; ////////////////////////// struct Bubble{ int8_t x; int8_t y; BubbleType b_type; bool shooting; const uint8_t *image; }; ...
24.06
31
(translation_unit) "#pragma once \n#define NUMBER_OF_BUBBLES 7 \nuint8_t count_bubble = 0; \n \nenum class BubbleType : uint8_t { \n R_Shoot, \n L_Shoot, \n Captured, \n Up_Bubble, \n Pop_Bubble, \n}; \n \n////////////////////////// \nstruct Bubble{ \n int8_t x; \n int8_t y; \n BubbleType b_type; \n bool shoot...
238
17
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 24.06, "nodes": 137, "errors": 0, "source_hash": "4067b2bb85980b07e5628c2c18228e1ed9e5f1160803fa72bcacc82a5ffe4bcc", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,912
c
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE400_Resource_Exhaustion__connect_socket_sleep_22b.c Label Definition File: CWE400_Resource_Exhaustion.label.xml Template File: sources-sinks-22b.tmpl.c */ /* * @description * CWE: 400 Resource Exhaustion * BadSource: connect_socket Read data using a connect so...
32.66
104
(translation_unit) "/* TEMPLATE GENERATED TESTCASE FILE \nFilename: CWE400_Resource_Exhaustion__connect_socket_sleep_22b.c \nLabel Definition File: CWE400_Resource_Exhaustion.label.xml \nTemplate File: sources-sinks-22b.tmpl.c \n*/ \n/* \n * @description \n * CWE: 400 Resource Exhaustion \n * BadSource: connect_socket ...
321
0
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 32.66, "nodes": 166, "errors": 0, "source_hash": "c132814b1c76b822bd7e43968dc2aa86900f581d2a7f2b9276174a5a63ce5166", "categorized_nodes": 118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,913
c
#include "matrix_algo.h" #include <stddef.h> void matrix_cofactor(const matrix_type_t mat, matrix_type_t tmp, unsigned p, unsigned q) { unsigned i = 1, j = 1; unsigned row, col; for (row = 1; row <= matrix_height(mat); row++) { for (col = 1; col <= matrix_width(mat); col++) { if ((row...
25.46
109
(translation_unit) "#include "matrix_algo.h"\n\n#include <stddef.h>\n\nvoid matrix_cofactor(const matrix_type_t mat, matrix_type_t tmp, unsigned p, unsigned q)\n{\n unsigned i = 1, j = 1;\n unsigned row, col;\n\n for (row = 1; row <= matrix_height(mat); row++) {\n for (col = 1; col <= matrix_width(mat);...
987
0
{"language": "c", "success": true, "metadata": {"lines": 109, "avg_line_length": 25.46, "nodes": 600, "errors": 0, "source_hash": "cd9c8006f293280dc35c48a90d8a94cc19e90c001d71008efcf392b18d085be4", "categorized_nodes": 439}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,914
c
/* * (c) 2020-2021 Copyright, Real-Time Innovations, Inc. (RTI) * * 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...
33.49
129
(translation_unit) "/*\n * (c) 2020-2021 Copyright, Real-Time Innovations, Inc. (RTI)\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENS...
831
0
{"language": "c", "success": true, "metadata": {"lines": 129, "avg_line_length": 33.49, "nodes": 433, "errors": 0, "source_hash": "6e64820d491aff0053f078ce18c694affe832cea11b491dcb47d9b3eacb77e49", "categorized_nodes": 287}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
9,915
c
/* SCHED watchdog timer management, based on servers/pm/timers.c. * * The entry points into this file are: * sched_set_timer: reset and existing or set a new watchdog timer * sched_expire_timers: check for expired timers and run watchdog functions * */ #include "sched.h" #include <timers.h> ...
31.65
62
(translation_unit) "/* SCHED watchdog timer management, based on servers/pm/timers.c. \n * \n * The entry points into this file are: \n * sched_set_timer: reset and existing or set a new watchdog timer \n * sched_expire_timers: check for expired timers and run watchdog functions \n * \n */ \n \n#include "sche...
303
4
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 31.65, "nodes": 188, "errors": 0, "source_hash": "17000160c0fa9ba1ae85f33fb86c8edea11abac25f7ae35da5c5a071494aa4ee", "categorized_nodes": 143}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,916
c
#include <stdio.h> void print_it(){ printf("From C!\n"); } void print_this_too(){ printf("From C, too!\n"); } void dont_print_this(){ printf("You shouldn't have done that!\n"); }
17.5
10
(translation_unit) "#include <stdio.h>\n\nvoid print_it(){\n printf("From C!\n");\n}\nvoid print_this_too(){\n printf("From C, too!\n");\n}\n\nvoid dont_print_this(){\n printf("You shouldn't have done that!\n");\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdi...
70
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 17.5, "nodes": 33, "errors": 0, "source_hash": "e4ca82bd411eca5e20dec1bfae05e849217783ce210ab167d95a8d7b145e5f1b", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
9,917
c
// Copyright 2017 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 FLUTTER_FML_MAPPING_H_ #define FLUTTER_FML_MAPPING_H_ #include <initializer_list> #include <memory> #include <string> #include <vector> #include...
27.41
69
(translation_unit) "// Copyright 2017 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 FLUTTER_FML_MAPPING_H_\n#define FLUTTER_FML_MAPPING_H_\n\n#include <initializer_list>\n#include <memory>\n#include <string...
491
26
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 27.41, "nodes": 284, "errors": 0, "source_hash": "096c9838bdd9aa76c3e010fd60d594658a67352ea4cceaf2df089b4c7b077f37", "categorized_nodes": 173}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef FLUTTE...
9,918
c
// // UILabel+Commonly.h // coding-ios-master // // Created by MAC on 2018/4/23. // Copyright © 2018年 kk. All rights reserved. // #import <UIKit/UIKit.h> @interface UILabel (Commonly) /// 标题 - (void)titleFontAndColor; /// 描述 - (void)descFontAndColor; /// 小字 - (void)eyeFontAndColor; /// - (void)changeFont:(UIFont...
18.67
18
(translation_unit) "//\n// UILabel+Commonly.h\n// coding-ios-master\n//\n// Created by MAC on 2018/4/23.\n// Copyright © 2018年 kk. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UILabel (Commonly)\n\n/// 标题\n- (void)titleFontAndColor;\n/// 描述\n- (void)descFontAndColor;\n/// 小字\n- (void)eyeFontAnd...
85
8
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 18.67, "nodes": 49, "errors": 0, "source_hash": "e76cdadd48e196832797cd8e022679cd2d07c14ed1460a061944e9edd3e81de2", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
9,919
c
// Note that 0 is left unused, hence <= 0 and not < 0 #define chk_chunk_dir_idx(x) { \ if ( ( x <= 0 ) || ( (uint32_t)x >= ptr_S->chunk_dir->sz) ) { go_BYE(-1); } \ } #define chk_whole_vec_dir_idx(x) { \ if ( ( x <= 0 ) || ( (uint32_t)x >= ptr_S->whole_vec_dir->sz) ) { go_BYE(-1); } \ } #define INITIAL_NUM_CHUNK...
47.12
8
(translation_unit) "// Note that 0 is left unused, hence <= 0 and not < 0\n#define chk_chunk_dir_idx(x) { \\n if ( ( x <= 0 ) || ( (uint32_t)x >= ptr_S->chunk_dir->sz) ) { go_BYE(-1); } \\n}\n#define chk_whole_vec_dir_idx(x) { \\n if ( ( x <= 0 ) || ( (uint32_t)x >= ptr_S->whole_vec_dir->sz) ) { go_BYE(-1); } \\n}\n\...
26
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 47.12, "nodes": 20, "errors": 0, "source_hash": "814d6b3280678690ad6e09fd90a5b7981d8a2bdc6f748c81b6dfc565d4ffd2b2", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_function_def", "text": "#de...
9,920
c
#pragma once #include <nan.h> namespace flamegraph_profiler { void Initialize(v8::Local<v8::Object> exports); void setSamplingInterval(const Nan::FunctionCallbackInfo<v8::Value>& args); void start(const Nan::FunctionCallbackInfo<v8::Value>& args); void stop(const Nan::FunctionCallbackInfo<v8::Value>& args); NO...
38.44
9
(translation_unit) "#pragma once\n\n#include <nan.h>\n\nnamespace flamegraph_profiler {\n void Initialize(v8::Local<v8::Object> exports);\n\n void setSamplingInterval(const Nan::FunctionCallbackInfo<v8::Value>& args);\n void start(const Nan::FunctionCallbackInfo<v8::Value>& args);\n void stop(const Nan::FunctionCallbac...
116
4
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 38.44, "nodes": 70, "errors": 0, "source_hash": "45b148de5d0a40bc135644e9d10839bb27773763bb641f0cf8c63a30653f7121", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
9,921
c
#pragma once #include <iostream> using namespace std; // Class to implement node class Node { public: int key; // Array to hold pointers to node of different level Node **forward; Node(int, int); }; Node::Node(int key, int level) { this->key = key; // Allocate memory to forward forwar...
20.93
160
(translation_unit) "#pragma once \n#include <iostream> \n \nusing namespace std; \n \n// Class to implement node \nclass Node \n{ \npublic: \n int key; \n \n // Array to hold pointers to node of different level \n Node **forward; \n Node(int, int); \n}; \n \nNode::Node(int key, int level) \n{ \n this->key = key; \n \n...
901
11
{"language": "c", "success": true, "metadata": {"lines": 160, "avg_line_length": 20.93, "nodes": 544, "errors": 0, "source_hash": "7648fcecb98883706bd5167725f0046ff6eecbe66fcbed267e68c57b6666c3ab", "categorized_nodes": 367}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
9,922
c
#pragma once #include <assert.h> #define MAX_NAME_LEN (64) #define MAX_TEXT_LEN (80) enum MsgType { INVALID = 0, LOGIN, ECHO, LOGOUT }; struct Msg { long type; /* message type, must be > 0 */ char name[MAX_NAME_LEN]; /* sender's name */ char text[MAX_TEXT_LEN]; /* message content */ }; void errExit(c...
25.16
32
(translation_unit) "#pragma once\n\n#include <assert.h>\n\n#define MAX_NAME_LEN (64)\n#define MAX_TEXT_LEN (80)\n\nenum MsgType {\n INVALID = 0,\n LOGIN,\n ECHO,\n LOGOUT\n};\n\nstruct Msg {\n long type; /* message type, must be > 0 */\n char name[MAX_NAME_LEN]; /* sender's name */\n char text[MAX_TEXT_LEN]; /* ...
294
5
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 25.16, "nodes": 169, "errors": 0, "source_hash": "b9fbd2af2ba3c4f32e8f2b8cc2d396adcb18e42ea5a528d369ed62656a5b9e64", "categorized_nodes": 123}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,923
c
/******************************************************************** Copyright 2018 <NAME>. All Rights Reserved. Description : shape plain Author : <NAME> Email : <EMAIL> Created : Feb. 28th, 2018 ********************************************************************/ #ifndef LL_GRAPHIC_MODEL_PLAIN_H_ #de...
27.43
23
(translation_unit) "/********************************************************************\nCopyright 2018 <NAME>. All Rights Reserved.\nDescription : shape plain\nAuthor : <NAME>\nEmail : <EMAIL>\nCreated : Feb. 28th, 2018\n********************************************************************/\n#ifndef LL...
81
3
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 27.43, "nodes": 40, "errors": 0, "source_hash": "7d4155c949dc49ad040db85bf2ca9ca0f3b86944a60ef5061f3e4670d63f1420", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,924
c
//-------------------------------------------------------------------------------------- // Copyright (c) XU, Tianchen. All rights reserved. //-------------------------------------------------------------------------------------- #pragma once #include "MeshShaderFallbackLayer.h" #include "Model.h" class Renderer { p...
30.82
95
(translation_unit) "//--------------------------------------------------------------------------------------\n// Copyright (c) XU, Tianchen. All rights reserved.\n//--------------------------------------------------------------------------------------\n\n#pragma once\n\n#include "MeshShaderFallbackLayer.h"\n#include "M...
796
65
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 30.82, "nodes": 460, "errors": 0, "source_hash": "4e784afefc984a94ea3cc712f41d7b1c8b563c53782408eae6de54099a27d126", "categorized_nodes": 336}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,925
c
/* APPLE LOCAL file -falign-jumps-max-skip */ /* {dg-do compile } */ /* Test -falign-jumps-max-skip */ /* { dg-options "-falign-jumps-max-skip=1234" } */ void foo() { }
23.14
7
(translation_unit) "/* APPLE LOCAL file -falign-jumps-max-skip */\n/* {dg-do compile } */\n/* Test -falign-jumps-max-skip */\n/* { dg-options "-falign-jumps-max-skip=1234" } */\n\nvoid foo()\n{\n}\n" (comment) "/* APPLE LOCAL file -falign-jumps-max-skip */" (comment) "/* {dg-do compile } */" (comment) "/* Test -f...
15
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 23.14, "nodes": 5, "errors": 0, "source_hash": "e4394f8dded9198c7c1077db76e073212463764a589d3104a3f997f0357c5c93", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "void ...
9,926
c
#include "ldr.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/portmacro.h" #include "esp_log.h" #include "driver/adc.h" #include <string.h> SENSOR_HANDLE ldr_create(); void ldr_destroy(SENSOR_HANDLE handle); void ldr_set_options(SENSOR_HANDLE handle, void * options); void* ldr_get_op...
29.6
123
(translation_unit) "#include "ldr.h"\n\n#include "freertos/FreeRTOS.h"\n#include "freertos/task.h"\n#include "freertos/portmacro.h"\n#include "esp_log.h"\n\n#include "driver/adc.h"\n\n#include <string.h>\n\nSENSOR_HANDLE ldr_create();\nvoid ldr_destroy(SENSOR_HANDLE handle);\nvoid ldr_set_options(SENSOR_HANDLE handle, ...
928
0
{"language": "c", "success": true, "metadata": {"lines": 123, "avg_line_length": 29.6, "nodes": 594, "errors": 0, "source_hash": "89f73087563032e5ce0ae051d5a1dcc1498ae7820afa75e38f0c691c002e842e", "categorized_nodes": 418}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,927
c
#pragma once #include "imgui/imgui.h" #include "ViewportCameraController.h" #include "Interfaces/ICopyable.h" #include "Interfaces/IUndoable.h" #include "Interfaces/ISaveable.h" #include "Renderer/Shader.h" #include "HierarchyPanel.h" class ViewportPanel :public Layer, public ICopyable, public IUndoable, public ...
27.66
58
(translation_unit) "#pragma once\n\n#include "imgui/imgui.h"\n\n#include "ViewportCameraController.h"\n\n#include "Interfaces/ICopyable.h"\n#include "Interfaces/IUndoable.h"\n#include "Interfaces/ISaveable.h"\n\n#include "Renderer/Shader.h"\n\n#include "HierarchyPanel.h"\n\nclass ViewportPanel\n :public Layer, public I...
423
18
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 27.66, "nodes": 277, "errors": 0, "source_hash": "b3109445c4cfb4c91fc7442ae758c05f5bac60889ec5dba5522c478fcef4449c", "categorized_nodes": 194}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,928
c
#import "MOBProjection.h" @interface MOBProjectionEPSG5926 : MOBProjection @end
25.67
3
(translation_unit) "#import "MOBProjection.h"\n\n@interface MOBProjectionEPSG5926 : MOBProjection\n\n@end\n" (preproc_call) "#import "MOBProjection.h"\n" (preproc_directive) "#import" (preproc_arg) ""MOBProjection.h"" (ERROR) "@interface MOBProjectionEPSG5926 : MOBProjection\n\n@end" (ERROR) "@" (ty...
12
3
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 25.67, "nodes": 9, "errors": 0, "source_hash": "7ab53e5abab71c4e5a76073ce2392ce21078fe7031789b3e5008092f6aaab174", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"MO...
9,929
c
#include "types.h" #include "user.h" void clear(int x) { if(x=='x') return; printf(1,"\xa"); clear(x+('1'-48)); } int main(void) { clear('A'); exit(); }
9.93
14
(translation_unit) "#include "types.h"\n#include "user.h"\nvoid clear(int x)\n{\nif(x=='x')\nreturn;\nprintf(1,"\xa");\nclear(x+('1'-48));\n}\nint main(void)\n{\nclear('A');\nexit();\n}\n" (preproc_include) "#include "types.h"\n" (#include) "#include" (string_literal) ""types.h"" (") """ (string_c...
104
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 9.93, "nodes": 61, "errors": 0, "source_hash": "ebf0e65e607f287a0e7a75a7ba037a9e556e2b1357c3868439d6b58a3e72a86a", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
9,930
c
// // LPDModelProtocol.h // LPDMvvmKit // // Created by foxsofter on 16/1/12. // Copyright © 2016年 eleme. All rights reserved. // #import <YYModel/YYModel.h> #import <Foundation/Foundation.h> @protocol LPDModelProtocol <YYModel, NSCoding, NSCopying> /** Creates and returns a new instance of the receiver from a ...
43.16
82
(translation_unit) "//\n// LPDModelProtocol.h\n// LPDMvvmKit\n//\n// Created by foxsofter on 16/1/12.\n// Copyright © 2016年 eleme. All rights reserved.\n//\n\n#import <YYModel/YYModel.h>\n#import <Foundation/Foundation.h>\n\n@protocol LPDModelProtocol <YYModel, NSCoding, NSCopying>\n\n/**\n Creates and returns a ne...
141
11
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 43.16, "nodes": 85, "errors": 0, "source_hash": "fe0aef49e919249e4fa5b44777fdac6bd4ba59b1e21b2188ec193173dc909b4b", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <YYM...
9,931
c
main() //hjk //нужно раскоментить чтобы код дальнейший читался корректно int main() { return 0; }
15.83
6
(translation_unit) "main()\n\n//hjk //нужно раскоментить чтобы код дальнейший читался корректно\nint main() \n{ \n return 0;\n}" (ERROR) "main()" (call_expression) "main()" (identifier) "main" (argument_list) "()" (() "(" ()) ")" (comment) "//hjk //нужно раскоментить чтобы код дальне...
22
1
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 15.83, "nodes": 11, "errors": 0, "source_hash": "327dd630f550a8b7523c3ac8e527a168baa27fd070cd584c6f1d4040ff66617b", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "main()", "parent":...
9,932
c
/* * kokkos_ops.h * * Created on: Jul 26, 2017 * Author: bjoo */ #pragma once #include <dslash/dslash_complex.h> namespace MG { #if 1 template<typename T> inline void ComplexCopy(MGComplex<T>& result, const MGComplex<T>& source) { result=source; } template<typename T> inline void ComplexZero(MGComplex<T...
23.4
151
(translation_unit) "/*\n * kokkos_ops.h\n *\n * Created on: Jul 26, 2017\n * Author: bjoo\n */\n\n#pragma once\n\n#include <dslash/dslash_complex.h>\n\nnamespace MG\n{\n#if 1\ntemplate<typename T>\ninline\nvoid ComplexCopy(MGComplex<T>& result, const MGComplex<T>& source)\n{\n result=source;\n}\n\ntemplate<typena...
1,817
66
{"language": "c", "success": true, "metadata": {"lines": 151, "avg_line_length": 23.4, "nodes": 1300, "errors": 0, "source_hash": "3548896ff5b161aeb13778fb42d39cb2aad5d21e630c4f2abd6e4b5b87bcd053", "categorized_nodes": 929}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
9,933
c
/******************************************************************************************** * 2.9 Feladat * * Olvasson be számokat addig, amíg a beolvasott számok értékének összege kisebb, mint 100 * * Ha a beolvasott szám osztható kett...
33.8
20
(translation_unit) "/********************************************************************************************\n* 2.9 Feladat *\n* Olvasson be számokat addig, amíg a beolvasott számok értékének összege kisebb, mint 100 *\n* Ha a beolva...
101
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 33.8, "nodes": 55, "errors": 0, "source_hash": "faedf243d2948a33f2fec66c9faa3a1b66a3d59558abc940cd55dc3f030a081b", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": ".h>\n\n...
9,934
c
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details #pragma once #include "Luau/Common.h" #include <stdexcept> #include <exception> LUAU_FASTFLAG(LuauRecursionLimitException); namespace Luau { struct RecursionLimitException : public std::exception { ...
24.22
51
(translation_unit) "// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details\n#pragma once\n\n#include "Luau/Common.h"\n\n#include <stdexcept>\n#include <exception>\n\nLUAU_FASTFLAG(LuauRecursionLimitException);\n\nnamespace Luau\n{\n\nstruct RecursionLimitExc...
288
15
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 24.22, "nodes": 159, "errors": 0, "source_hash": "b3dd7ef7e05e38f4fd63453aadf78b2adae09e02b1145f9379424c6db55868ba", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,935
c
#include "config.h" #define LIBSSH_STATIC #include "torture.h" #include "libssh/bignum.h" #include "libssh/crypto.h" #include "libssh/dh.h" uint8_t key[32] = <KEY>" <KEY>" "\x8a\x42"; uint8_t secret[32] = "\x33\x64\x8e\x7f\xea\xd9\xd7\xee\x89\x4f\xd8\xd0\xe5\x83\x00" "\x3d\x53\x17\xbc\xa8\x8b\x6b...
32.15
84
(translation_unit) "#include "config.h"\n\n#define LIBSSH_STATIC\n\n#include "torture.h"\n#include "libssh/bignum.h"\n#include "libssh/crypto.h"\n#include "libssh/dh.h"\n\nuint8_t key[32] =\n <KEY>"\n <KEY>"\n "\x8a\x42";\nuint8_t secret[32] =\n "\x33\x64\x8e\x7f\xea\xd9\xd7\xee\x89\x4f\xd8\xd0\xe5\x83\x00"...
818
5
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 32.15, "nodes": 580, "errors": 0, "source_hash": "78baffa6389ed3fcebbd846b78c7310463f51a650ec098a5973f7c7eff704d7c", "categorized_nodes": 253}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,936
c
#import "cocos2d.h" #import "FDPath.h" #import "FDPosition.h" #import "FDPointMap.h" #import "FDIntMap.h" typedef enum PathBlockType { PathBlockType_Plain = 0, PathBlockType_Blocked = 1 } PathBlockType; @interface PathResolver : NSObject { FDIntMap *blockMap; int width; int height; in...
17.43
40
(translation_unit) "#import "cocos2d.h" \n#import "FDPath.h" \n#import "FDPosition.h" \n#import "FDPointMap.h" \n#import "FDIntMap.h" \n \ntypedef enum PathBlockType \n{ \n PathBlockType_Plain = 0, \n PathBlockType_Blocked = 1 \n \n} PathBlockType; \n \n@interface PathResolver : NSObject \n{ \n \n FDIntMap *blockMap; ...
215
16
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 17.43, "nodes": 143, "errors": 0, "source_hash": "e3bb6c2b7b1fd832d00588259c73535d71ea097b3f4ca6225ddb71b99c7fdcac", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
9,937
c
#include "X86.h" #include "llvm/MC/MCStreamer.h" #include "X86AsmPrinter.h" #include "X86MCInstLower.h" #include "llvm/MC/MCCodeEmitter.h" #include "llvm/CodeGen/MachineInstr.h" #include "llvm/Support/raw_ostream.h" #include "llvm/Support/TargetRegistry.h" #include "llvm/CodeGen/MachineRegisterInfo.h" #include "llvm/Co...
33.52
33
(translation_unit) "#include "X86.h"\n#include "llvm/MC/MCStreamer.h"\n#include "X86AsmPrinter.h"\n#include "X86MCInstLower.h"\n#include "llvm/MC/MCCodeEmitter.h"\n#include "llvm/CodeGen/MachineInstr.h"\n#include "llvm/Support/raw_ostream.h"\n#include "llvm/Support/TargetRegistry.h"\n#include "llvm/CodeGen/MachineRegis...
283
6
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 33.52, "nodes": 183, "errors": 0, "source_hash": "a67863e18e14a0ee2995bca3b99c12a4966e8a07545aacb7e233944faa5ee762", "categorized_nodes": 127}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,938
c
// chainsql�ĸ����﷨�����ṹ #pragma once #include <string> #include <vector> #include <memory> #include <fc/io/enum_type.hpp> namespace chainsql { struct ChainsqlColumnDef { std::string column_name; std::string column_type; }; enum ChainsqlStmtType { CST_CREATE_TABLE = 0, CST_CREATE_INDEX = 1, CST_SELEC...
27.58
252
(translation_unit) "// chainsql�ĸ����﷨�����ṹ\n\n#pragma once\n\n#include <string>\n#include <vector>\n#include <memory>\n#include <fc/io/enum_type.hpp>\n\nnamespace chainsql\n{\n struct ChainsqlColumnDef\n {\n std::string column_name;\n std::string column_type;\n };\n\n enum ChainsqlStmtType\n {\n CST_CREATE_TABLE =...
1,881
136
{"language": "c", "success": true, "metadata": {"lines": 252, "avg_line_length": 27.58, "nodes": 1204, "errors": 0, "source_hash": "c60dd3cbfb471d709e5fa115bc9a4f25f5ee7b52570d8929ba884075aff1f05a", "categorized_nodes": 824}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "tring...
9,939
c
#define IRQ_EVENT_PROBE(irq) do { \ if(irq_debug) \ if(irq == 57 || irq == 58) \ kernel_event_monitor(IRQ_EVENT); \ } while(0) typedef enum { NO_EVENT, IRQ_EVENT, } moca_km_enum_type; extern bool irq_debug; extern void kernel_event_monitor(moca_km_enum_type type);
22.89
9
(translation_unit) "#define IRQ_EVENT_PROBE(irq) do { \\n if(irq_debug) \\n if(irq == 57 || irq == 58) \\n kernel_event_monitor(IRQ_EVENT); \\n } while(0)\n\ntypedef enum\n{ \n NO_EVENT,\n IRQ_EVENT,\n} moca_km_enum_type;\n\nextern bool irq_debug;\nextern void kernel_event_monitor(moca_km_enum_type type);...
43
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 22.89, "nodes": 31, "errors": 0, "source_hash": "69a8d11290aedc3d7d29b7f515e324058ef3e6b79b9e5253e90382e99e13ca50", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_function_def", "text": "#d...
9,940
c
// Benoit 2010-10-25 #ifndef EU_NIFTI_OCU_VISUALIZATION_MANAGER_FOR_VIRTUAL_SCENE_H_ #define EU_NIFTI_OCU_VISUALIZATION_MANAGER_FOR_VIRTUAL_SCENE_H_ #include "VisualizationManager.h" namespace eu { namespace nifti { namespace ocu { namespace selection { ...
41.83
42
(translation_unit) "// Benoit 2010-10-25\n\n#ifndef EU_NIFTI_OCU_VISUALIZATION_MANAGER_FOR_VIRTUAL_SCENE_H_\n#define EU_NIFTI_OCU_VISUALIZATION_MANAGER_FOR_VIRTUAL_SCENE_H_\n\n#include "VisualizationManager.h"\n\nnamespace eu\n{\n namespace nifti\n {\n namespace ocu\n {\n\n namespace sele...
259
12
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 41.83, "nodes": 146, "errors": 0, "source_hash": "4a9e2847d390e6db9d8a5591e32ecbdb5224e15295c06d37f239f1eb90b7b5e6", "categorized_nodes": 96}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,941
c
#ifndef EPOCHX64_IO_H #define EPOCHX64_IO_H /********************************************************************** * Includes *********************************************************************/ #include <defs/int.h> #include <stdarg.h> #include <ipc.h> /********************************************************...
36.78
55
(translation_unit) "#ifndef EPOCHX64_IO_H\n#define EPOCHX64_IO_H\n\n/**********************************************************************\n * Includes\n *********************************************************************/\n\n#include <defs/int.h>\n#include <stdarg.h>\n#include <ipc.h>\n\n/*************************...
354
0
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 36.78, "nodes": 247, "errors": 0, "source_hash": "a01aa0a3a2768d629808882b8e29683650fea46ed706700d127c57425581222e", "categorized_nodes": 159}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,942
c
/********************************************************************************************/ /********************************************************************************************/ #ifndef __LRC_INPUT_PIN_INTRA_H_ #define __LRC_INPUT_PIN_INTRA_H_ /*! lrc input pin private data */ typedef struct tag_lrc_i...
23.14
42
(translation_unit) "/********************************************************************************************/\n/********************************************************************************************/\n#ifndef __LRC_INPUT_PIN_INTRA_H_\n#define __LRC_INPUT_PIN_INTRA_H_\n\n\n/*!\n lrc input pin private data\n ...
81
1
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 23.14, "nodes": 54, "errors": 0, "source_hash": "7a555c898f8e23a6caafb6c2a7b75a00a54a18898d9e6aee5bc2a96fe8c95c3c", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,943
c
#ifndef PvlToJSON_h #define PvlToJSON_h /** This is free and unencumbered software released into the public domain. The authors of ISIS do not claim copyright on the contents of this file. For more details about the LICENSE terms and the AUTHORS, you will find files of those names at the top level of this repository. ...
35.57
21
(translation_unit) "#ifndef PvlToJSON_h\n#define PvlToJSON_h\n\n/** This is free and unencumbered software released into the public domain.\nThe authors of ISIS do not claim copyright on the contents of this file.\nFor more details about the LICENSE terms and the AUTHORS, you will\nfind files of those names at the top ...
129
10
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 35.57, "nodes": 73, "errors": 0, "source_hash": "d85fe30f09e778e253511b28b3da7bb8cfa8cc7839c734ad2d9de2fe679af471", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,944
c
#include <VP_Os/vp_os_types.h> #include <VLIB/video_macroblock.h> #include <VLIB/video_controller.h> // init h264 ip C_RESULT video_p264_p6_init(void); // prepare ip to encode a new frame C_RESULT video_p264_prepare_slice ( video_controller_t* controller, const vp_api_picture_t* blockline); // encode a MB int32_t vi...
38
12
(translation_unit) "#include <VP_Os/vp_os_types.h>\n#include <VLIB/video_macroblock.h>\n#include <VLIB/video_controller.h>\n\n// init h264 ip\nC_RESULT video_p264_p6_init(void);\n\n// prepare ip to encode a new frame\nC_RESULT video_p264_prepare_slice ( video_controller_t* controller, const vp_api_picture_t* blockline)...
76
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 38.0, "nodes": 54, "errors": 0, "source_hash": "72bc135727c643c84a7b3cd5f097b0e2328e9f04c00c1c8f08e8b4c3c404ed79", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
9,945
c
#ifndef KK_DEVICE_H #define KK_DEVICE_H #include <klingklang/base.h> #include <klingklang/format.h> #include <klingklang/frame.h> #include <pthread.h> typedef struct kk_device kk_device_t; typedef struct kk_device_backend kk_device_backend_t; struct kk_device { kk_format_t *format; pthread_mutex_t mutex; }; st...
30.35
26
(translation_unit) "#ifndef KK_DEVICE_H\n#define KK_DEVICE_H\n\n#include <klingklang/base.h>\n#include <klingklang/format.h>\n#include <klingklang/frame.h>\n\n#include <pthread.h>\n\ntypedef struct kk_device kk_device_t;\ntypedef struct kk_device_backend kk_device_backend_t;\n\nstruct kk_device {\n kk_format_t *format...
243
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 30.35, "nodes": 185, "errors": 0, "source_hash": "13ecd2ed526b27d249110198ef7228724e94a9e25c044d64351c849a16386f89", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,946
c
#include <stdio.h> #include <stdlib.h> #define size(array) (sizeof(array) / sizeof(array[0])) #include "insertion_sort.h" int main (void) { //uint64_t array[] = {10,9,3,9,2,6,3,1,4,1,1,5,4,4,1,1}; //uint64_t array[] = {1}; //uint64_t array[] = {1,2,3,9,8,7}; //uint64_t array[] = {5,6,1,9,4,4}; //uint64_t...
26.61
18
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#define size(array) (sizeof(array) / sizeof(array[0]))\n\n#include "insertion_sort.h"\n\nint main (void) {\n \n //uint64_t array[] = {10,9,3,9,2,6,3,1,4,1,1,5,4,4,1,1};\n //uint64_t array[] = {1};\n //uint64_t array[] = {1,2,3,9,8,7};\n //uint64_t array[...
73
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 26.61, "nodes": 40, "errors": 0, "source_hash": "37cf72d525c33bc8fdaeec90b9117706e7c9f11181aad929bc9e20e3af846e96", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
9,947
c
/* * i2c_if.h * * Created on: Sep 14, 2019 * Author: lamar */ #ifndef DRIVERS_DS3231_I2C_INCLUDE_I2C_IF_H_ #define DRIVERS_DS3231_I2C_INCLUDE_I2C_IF_H_ #include <functional> namespace ds3231 { enum class Status : uint8_t { Ok = 0, Error = 1, Busy = 2, Timeout = 3 }; using duration_type = std::chrono::du...
32.61
23
(translation_unit) "/*\n * i2c_if.h\n *\n * Created on: Sep 14, 2019\n * Author: lamar\n */\n\n#ifndef DRIVERS_DS3231_I2C_INCLUDE_I2C_IF_H_\n#define DRIVERS_DS3231_I2C_INCLUDE_I2C_IF_H_\n\n#include <functional>\n\nnamespace ds3231 {\n\nenum class Status : uint8_t { Ok = 0, Error = 1, Busy = 2, Timeout = 3 };\n\nu...
164
8
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 32.61, "nodes": 108, "errors": 0, "source_hash": "3c9e68dee271a0a90ba22230dcda7b749c56f772f565596a1ebdeb2dface68b2", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef DRIVERS...
9,948
c
/* Copyright (c) 2011-2013, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the...
29.29
277
(translation_unit) "/* Copyright (c) 2011-2013, The Linux Foundation. All rights reserved.\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License version 2 and\n * only version 2 as published by the Free Software Foundation.\n *\n * This pro...
2,412
5
{"language": "c", "success": true, "metadata": {"lines": 277, "avg_line_length": 29.29, "nodes": 1564, "errors": 0, "source_hash": "c9f481ea4ceff89c20ab6d662c8bb86ef09dbdb96abf91db690cecec1bb0242b", "categorized_nodes": 1159}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
9,949
c
// some programes to p[ractice]!!.. // function which returnss sum , average and standard deviation.. #include<stdio.h> #include<math.h> void stats (int*,int*,double*); int main() { int sum,avg; double stdev; stats(&sum,&avg,&stdev);//function call by refference.. printf("Sum=%d\n Average=%d\n...
26.85
27
(translation_unit) "// some programes to p[ractice]!!.. \n// function which returnss sum , average and standard deviation.. \n#include<stdio.h> \n#include<math.h> \nvoid stats (int*,int*,double*); \nint main() \n{ \n int sum,avg; \n double stdev; \n stats(&sum,&avg,&stdev);//function call by refference.. \n ...
318
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 26.85, "nodes": 206, "errors": 0, "source_hash": "095cc2050b3b5e9eed6db2c74bbdaaf79b87b9a3169f8ea5a824b0a6b95c563a", "categorized_nodes": 138}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,950
c
// // AppDelegate.h // IMTOSCQueryTest // // Created by <NAME> on 10/06/15. // Copyright (c) 2015 Imimot Kft. All rights reserved. // #import <Cocoa/Cocoa.h> #import "IMTOSCQueryServer.h" #import "IMTOSCQueryClient.h" #import "IMTOSCQueryClientDelegate.h" #import "IMTOSCQueryDefinitions.h" @interface AppDelegate ...
29.79
34
(translation_unit) "//\n// AppDelegate.h\n// IMTOSCQueryTest\n//\n// Created by <NAME> on 10/06/15.\n// Copyright (c) 2015 Imimot Kft. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n#import "IMTOSCQueryServer.h"\n#import "IMTOSCQueryClient.h"\n#import "IMTOSCQueryClientDelegate.h"\n#import "IMTOSCQueryDefinit...
165
13
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 29.79, "nodes": 118, "errors": 0, "source_hash": "de622954d46d8b07b1c87ab0f028b9866ad1fe4dc05d62d2488a0b924bfba03e", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
9,951
c
#pragma once #include "CesiumJsonReader/Library.h" #include <cstdint> #include <string_view> #include <vector> namespace CesiumJsonReader { class CESIUMJSONREADER_API IJsonHandler { public: virtual ~IJsonHandler(){}; virtual IJsonHandler* readNull() = 0; virtual IJsonHandler* readBool(bool b) = 0; virtual IJs...
38.15
27
(translation_unit) "#pragma once\n\n#include "CesiumJsonReader/Library.h"\n#include <cstdint>\n#include <string_view>\n#include <vector>\n\nnamespace CesiumJsonReader {\nclass CESIUMJSONREADER_API IJsonHandler {\npublic:\n virtual ~IJsonHandler(){};\n virtual IJsonHandler* readNull() = 0;\n virtual IJsonHandler* rea...
344
18
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 38.15, "nodes": 242, "errors": 0, "source_hash": "73fa0bfbcd3217c6cd5f7ede478cec94ecbf1fd6102c12bc0cb59b759bc89e14", "categorized_nodes": 150}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,952
c
typedef unsigned int uint32_t; typedef int int32_t; typedef unsigned long uint64_t; typedef long int64_t;
32.5
4
(translation_unit) "typedef unsigned int uint32_t;\ntypedef int int32_t;\ntypedef unsigned long uint64_t;\ntypedef long int64_t;" (type_definition) "typedef unsigned int uint32_t;" (typedef) "typedef" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primi...
26
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 32.5, "nodes": 21, "errors": 0, "source_hash": "6492ecce432be803338d11df96619aca94bd407c7821fddef7d1a4a29a1a350e", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "typedef u...
9,953
c
#ifndef DONELANG_CODEWRITER_H #define DONELANG_CODEWRITER_H #include <string> #include <vector> class CodeWriter { private: std::vector<std::string> codeVector; public: void append(const std::string &); void appendLine(const std::string &); std::string getSource(); void clear(); int size(); }; #endif
19.93
15
(translation_unit) "#ifndef DONELANG_CODEWRITER_H\n#define DONELANG_CODEWRITER_H\n\n#include <string>\n#include <vector>\n\nclass CodeWriter {\n\nprivate:\n std::vector<std::string> codeVector;\n\npublic:\n void append(const std::string &);\n void appendLine(const std::string &);\n std::string getSource();\n void ...
110
6
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 19.93, "nodes": 61, "errors": 0, "source_hash": "76e1064004836b1216ee63b1a1031411dd5b267027355dba74154cea85cc7de1", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,954
c
#include <string.h> #include <stdlib.h> #include <stdio.h> int count_memory(char* input) { int i, count; i = 0; count = 0; while (1) { if (input[i] == ',') { count++; } else if (input[i] == '\0') { count++; break; } i++; } ret...
26.6
131
(translation_unit) "#include <string.h>\n#include <stdlib.h>\n#include <stdio.h>\n\nint count_memory(char* input) {\n int i, count;\n i = 0;\n count = 0;\n while (1) {\n if (input[i] == ',') {\n count++;\n } else if (input[i] == '\0') {\n count++;\n break;\n ...
1,284
0
{"language": "c", "success": true, "metadata": {"lines": 131, "avg_line_length": 26.6, "nodes": 770, "errors": 0, "source_hash": "2dc7779d6e388b1d76cba8900de109e8871bdae57f7d41f4a4943607494309ad", "categorized_nodes": 482}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,955
c
// Copyright 2014 runtime.js project authors // // 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 o...
31.31
175
(translation_unit) "// Copyright 2014 runtime.js project authors\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless ...
1,720
59
{"language": "c", "success": true, "metadata": {"lines": 175, "avg_line_length": 31.31, "nodes": 1013, "errors": 0, "source_hash": "8da15409b05ea244482a020928b5877a04e5b4f599f32da1359cd1c7b99db95a", "categorized_nodes": 681}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#prag...
9,956
c
#pragma once #include <vector> #include <string> #include <glm/common.hpp> #include <glm/gtc/random.hpp> #include <glm/gtc/constants.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/vec2.hpp> #include <glm/vec3.hpp> #include <glm/vec4.hpp> const std::string & dataPath(); // Read raw binary file into a ...
33
18
(translation_unit) "#pragma once\n\n\n#include <vector>\n#include <string>\n\n#include <glm/common.hpp>\n#include <glm/gtc/random.hpp>\n#include <glm/gtc/constants.hpp>\n#include <glm/gtc/matrix_transform.hpp>\n#include <glm/vec2.hpp>\n#include <glm/vec3.hpp>\n#include <glm/vec4.hpp>\n\n\nconst std::string & dataPath()...
154
9
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 33.0, "nodes": 96, "errors": 0, "source_hash": "da2b456a4ce89e08d3a20f94e08f1a8174c5e1713f272a2cdf53f84cc054538c", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
9,957
c
// Copyright 2019 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 CONTENT_PUBLIC_BROWSER_MEDIA_PLAYER_ID_H_ #define CONTENT_PUBLIC_BROWSER_MEDIA_PLAYER_ID_H_ #include "content/common/content_export.h" #include "...
41.45
20
(translation_unit) "// Copyright 2019 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 CONTENT_PUBLIC_BROWSER_MEDIA_PLAYER_ID_H_\n#define CONTENT_PUBLIC_BROWSER_MEDIA_PLAYER_ID_H_\n\n#include "content/common/c...
128
7
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 41.45, "nodes": 64, "errors": 0, "source_hash": "1749af96bb96020ac15826fc06db7edfd1f6ff5a0a6ca0a446ddccca340d3e58", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,958
c
// shoutout to zerosum0x0 for replacing getprocaddress // https://github.com/zerosum0x0/LoadLibrary-GetProcAddress-Replacements #pragma once #include "vxheader.h" #include <intrin.h> void WINAPI RtlInitUnicodeString( PUNICODE_STRING target, /* [I/O] Buffered unicode string to be initialized */ PCWSTR s...
29.41
140
(translation_unit) "// shoutout to zerosum0x0 for replacing getprocaddress \n// https://github.com/zerosum0x0/LoadLibrary-GetProcAddress-Replacements \n \n#pragma once \n \n#include "vxheader.h" \n \n#include <intrin.h> \n \nvoid WINAPI RtlInitUnicodeString( \n PUNICODE_STRING target, /* [I/O] Buffered unicode string t...
1,119
8
{"language": "c", "success": true, "metadata": {"lines": 140, "avg_line_length": 29.41, "nodes": 757, "errors": 0, "source_hash": "0e8a7868a144ae58baa47b709982ba227563bf2aefec7929f2814c84e19d6976", "categorized_nodes": 473}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
9,959
c
// // XXTEEditorRenameTableViewController.h // XXTExplorer // // Created by Darwin on 8/30/19. // Copyright © 2019 Zheng. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @class XXTEEditorRenameTableViewController; @protocol XXTEEditorRenameTableViewControllerDelegate <NSObject> - (void)r...
36.79
19
(translation_unit) "//\n// XXTEEditorRenameTableViewController.h\n// XXTExplorer\n//\n// Created by Darwin on 8/30/19.\n// Copyright © 2019 Zheng. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@class XXTEEditorRenameTableViewController;\n\n@protocol XXTEEditorRenameTableViewContr...
128
19
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 36.79, "nodes": 84, "errors": 0, "source_hash": "25e22b51aecbbc2e3518b4482cd56ef348f6e515223f57060239a17609dd241f", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
9,960
c
// // ParticleDeveloperAgreement.h // // Created by <NAME> on 1/2/21. // Copyright © 2021 Particle Inc. All rights reserved. // #import <Foundation/Foundation.h> #import "ParticleDevice.h" NS_ASSUME_NONNULL_BEGIN @interface ParticleDeveloperAgreement : NSObject /*! * Number of max devices allowed by the current...
25.76
21
(translation_unit) "//\n// ParticleDeveloperAgreement.h\n//\n// Created by <NAME> on 1/2/21.\n// Copyright © 2021 Particle Inc. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "ParticleDevice.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface ParticleDeveloperAgreement : NSObject\n\n/*!\n * Number of...
71
9
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 25.76, "nodes": 44, "errors": 0, "source_hash": "e778bf48728cd57a8cebe9d36237f4ce304665f156373d31cfd7bd16506581c5", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
9,961
c
// // TimelineScrollView.h // Lessons // // Created by <NAME> on 10/04/08. // Copyright PTEz 2010. All rights reserved. // #import "TimelineMiniView.h" #define kMagnificationFactorMax 2.0 @class ScrollView; @interface TimelineScrollView : EventTreeView { // Outlets ScrollView * scrollView; // Internal Vari...
22.45
51
(translation_unit) "//\n// TimelineScrollView.h\n// Lessons\n//\n// Created by <NAME> on 10/04/08.\n// Copyright PTEz 2010. All rights reserved.\n//\n\n#import "TimelineMiniView.h"\n\n#define kMagnificationFactorMax 2.0\n\n@class ScrollView;\n\n@interface TimelineScrollView : EventTreeView\n{\n // Outlets\n ScrollV...
278
31
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 22.45, "nodes": 190, "errors": 0, "source_hash": "a2fa39943b5873235734b04eabcd0265bebf957f02173bd9ebb92b358da6bd15", "categorized_nodes": 109}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
9,962
c
#include <stdio.h> #include <string.h> #include <unordered_map> #include "Hash.h" #include "Table.h" std::unordered_map<long long, long long> HT[6]; void hash_init(int idx) { HT[idx].clear(); } void hash_insert(int idx, int key) { HT[idx][key] = 1; } int hash_find(int idx, int key) { return HT[idx].cou...
23.43
28
(translation_unit) "#include <stdio.h>\n#include <string.h>\n#include <unordered_map>\n\n#include "Hash.h"\n#include "Table.h"\n\nstd::unordered_map<long long, long long> HT[6];\n\nvoid hash_init(int idx) {\n HT[idx].clear();\n}\n\nvoid hash_insert(int idx, int key) {\n HT[idx][key] = 1;\n}\n\nint hash_find(int i...
291
3
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 23.43, "nodes": 181, "errors": 0, "source_hash": "ad280f16656ecb32c7e6239b5a2310f6aa690b727355084b59b3b91a8fa91c2b", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,963
c
#ifndef PROXY_H #define PROXY_H #include "Config.h" #include "Thread.h" class Proxy : public Thread { private: int sock; vector<string> message; public: Proxy(int s); int getSock(); bool isTerminated(); bool sendMessage(string); string getMessage(); bool hasMessage(); virtual void run(); virtual ~Proxy(); ...
16.05
20
(translation_unit) "#ifndef PROXY_H\n#define PROXY_H\n\n#include "Config.h"\n#include "Thread.h"\n\nclass Proxy : public Thread\n{\nprivate:\n int sock;\n vector<string> message;\n\npublic:\n Proxy(int s);\n int getSock();\n bool isTerminated();\n bool sendMessage(string);\n string getMessage();\n bool hasMessage();\n ...
125
4
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 16.05, "nodes": 78, "errors": 0, "source_hash": "90b36e6bd924208b513af40988ed95938635ec5c3f01fbd532ad7dd2d208b151", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,964
c
/* gps103.c shared library for decode/encode gps/glonass terminal GPS-101 - GPS-103 messages help: D:\Work\Документы\Трекеры\Авто\GPS101C\GPRS data protocol.xls http://www.javased.com/?source_dir=traccar/src/org/traccar/protocol/Gps103ProtocolDecoder.java compile: make -B gps103 */ #include <std...
39.09
152
(translation_unit) "/*\n gps103.c\n shared library for decode/encode gps/glonass terminal GPS-101 - GPS-103 messages\n\n help:\n D:\Work\Документы\Трекеры\Авто\GPS101C\GPRS data protocol.xls\n http://www.javased.com/?source_dir=traccar/src/org/traccar/protocol/Gps103ProtocolDecoder.java\n\n compile:\n mak...
1,410
0
{"language": "c", "success": true, "metadata": {"lines": 152, "avg_line_length": 39.09, "nodes": 922, "errors": 0, "source_hash": "de1c1fe3b1247edfd235a7d8d29556373d1d20eca7c7848336d80d8384e1ab01", "categorized_nodes": 665}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "/* ...
9,965
c
/* Public domain. */ #ifndef _ACPI_VIDEO_H #define _ACPI_VIDEO_H #define acpi_video_register() #define acpi_video_unregister() #endif
21.33
6
(translation_unit) "/* Public domain. */\n\n#ifndef _ACPI_VIDEO_H\n#define _ACPI_VIDEO_H\n\n#define acpi_video_register()\n#define acpi_video_unregister()\n\n#endif\n" (comment) "/* Public domain. */" (preproc_ifdef) "#ifndef _ACPI_VIDEO_H\n#define _ACPI_VIDEO_H\n\n#define acpi_video_register()\n#define acpi_video_...
21
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 21.33, "nodes": 15, "errors": 0, "source_hash": "1636d30241bb8475c40d426ab2d16d8c0b9caafc312f51706b51a3025307a0a3", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _A...
9,966
c
// // Licensed to Green Energy Corp (www.greenenergycorp.com) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. Green Enery Corp licenses this file // to you under the Apache License, Version 2.0 (the // "...
31.14
44
(translation_unit) "//\n// Licensed to Green Energy Corp (www.greenenergycorp.com) under one\n// or more contributor license agreements. See the NOTICE file\n// distributed with this work for additional information\n// regarding copyright ownership. Green Enery Corp licenses this file\n// to you under the Apache Licen...
253
12
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 31.14, "nodes": 135, "errors": 0, "source_hash": "1e51e9938732cb9695cdffed0972ab77cd95916c6fb074e8d1b7ecb1f5e0e995", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,967
c
#pragma once #include <cstddef> // std::byte #include <map> #include <memory> // std::align #include <memory_resource> #include <vector> #include <gsl-lite/gsl-lite.hpp> #include <cuda/runtime_api.hpp> namespace thrustshift { namespace pmr { //! Unified CUDA Memory Resource. Buffers cannet be deallocated partiall...
31.41
285
(translation_unit) "#pragma once\n\n#include <cstddef> // std::byte\n#include <map>\n#include <memory> // std::align\n#include <memory_resource>\n#include <vector>\n\n#include <gsl-lite/gsl-lite.hpp>\n\n#include <cuda/runtime_api.hpp>\n\nnamespace thrustshift {\n\nnamespace pmr {\n\n//! Unified CUDA Memory Resource. Bu...
2,147
134
{"language": "c", "success": true, "metadata": {"lines": 285, "avg_line_length": 31.41, "nodes": 1231, "errors": 0, "source_hash": "eb6e26ddce787b3c79ae383e64e0807e795207e3de637e55970aacafe10ff779", "categorized_nodes": 812}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#prag...
9,968
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import <NeutrinoKit/NUImageLayer.h> @interface _NUROILayer : NUImageLayer { } @end
20.6
10
(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 <NeutrinoKit/NUImageLayer.h>\n\n@interface _NUROILayer : NUImageLayer\n{\n}\n\n@end\n\n" (comment) "//" (comment) "// Generated by class-dump 3.5...
25
5
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.6, "nodes": 12, "errors": 0, "source_hash": "5aa0063579ec7be2861c8faebf75d068e30dcd1fe45a680576fda3dc56554793", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Ne...
9,969
c
// // ReadTextZoomViewController.h // Angelina-New-Teacher-Universal // // Created by <NAME> on 2011-09-05. // Copyright (c) 2011 Commind. All rights reserved. // #import <UIKit/UIKit.h> #import "PopoverImageViewController.h" @interface ReadTextZoomViewController : UIViewController { IBOutlet UIView *tex...
29.43
28
(translation_unit) "//\n// ReadTextZoomViewController.h\n// Angelina-New-Teacher-Universal\n//\n// Created by <NAME> on 2011-09-05.\n// Copyright (c) 2011 Commind. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "PopoverImageViewController.h"\n\n@interface ReadTextZoomViewController : UIViewController ...
192
16
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 29.43, "nodes": 123, "errors": 0, "source_hash": "33bf61e18144c8f7a2a4d0fba8b0d46153bf9fe69664cf7f4a46ae8008a4c276", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
9,970
c
// Copyright 2019 Google LLC // // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. #include <assert.h> #include <xnnpack/gavgpool.h> #include <xnnpack/math.h> void xnn_f32_gavgpool_cw_ukernel__scalar_x1( size_t elements, size_t...
27.36
47
(translation_unit) "// Copyright 2019 Google LLC\n//\n// This source code is licensed under the BSD-style license found in the\n// LICENSE file in the root directory of this source tree.\n\n#include <assert.h>\n\n#include <xnnpack/gavgpool.h>\n#include <xnnpack/math.h>\n\n\nvoid xnn_f32_gavgpool_cw_ukernel__scalar_x1(\...
391
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 27.36, "nodes": 259, "errors": 0, "source_hash": "0aeccca7384477b9f76d60e58aa9c7cd26d918e9bf297f1f4eecd5061f72d183", "categorized_nodes": 172}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,971
c
#ifndef BABYLON_MATERIALS_TEXTURES_HARDWARE_TEXTURE_WRAPPER_H #define BABYLON_MATERIALS_TEXTURES_HARDWARE_TEXTURE_WRAPPER_H #include <babylon/babylon_api.h> #include <babylon/babylon_common.h> #include <babylon/materials/textures/internal_texture_source.h> namespace BABYLON { /** * @brief Hidden */ template <class...
37.04
25
(translation_unit) "#ifndef BABYLON_MATERIALS_TEXTURES_HARDWARE_TEXTURE_WRAPPER_H\n#define BABYLON_MATERIALS_TEXTURES_HARDWARE_TEXTURE_WRAPPER_H\n\n#include <babylon/babylon_api.h>\n#include <babylon/babylon_common.h>\n#include <babylon/materials/textures/internal_texture_source.h>\n\nnamespace BABYLON {\n\n/**\n * @br...
158
8
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 37.04, "nodes": 102, "errors": 0, "source_hash": "2c51fad54c26cee25ba53796de51808d071499c388db45631be07f1912fef05b", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,972
c
/* * tcp_raw.c * * Copyright (c) 2000 <NAME> <<EMAIL>> * * $Id: tcp_raw.c,v 1.10 2001/03/15 08:33:04 dugsong Exp $ */ #include "config.h" #include <sys/types.h> #include <sys/uio.h> #include <netinet/in.h> #include <time.h> #include <err.h> #include <libnet.h> #include "options.h" #include "tcp_raw.h" struct ...
22.08
210
(translation_unit) "/*\n * tcp_raw.c\n *\n * Copyright (c) 2000 <NAME> <<EMAIL>>\n *\n * $Id: tcp_raw.c,v 1.10 2001/03/15 08:33:04 dugsong Exp $\n */\n\n#include "config.h"\n\n#include <sys/types.h>\n#include <sys/uio.h>\n#include <netinet/in.h>\n\n#include <time.h>\n#include <err.h>\n#include <libnet.h>\n#include "opt...
1,891
0
{"language": "c", "success": true, "metadata": {"lines": 210, "avg_line_length": 22.08, "nodes": 1202, "errors": 0, "source_hash": "cfeb7b1226de5c343ef15abff532b1e0fb6d5df576d7b4578ef4636a8c75dade", "categorized_nodes": 904}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
9,973
c
/* * ms_taskwrapper.c * * Copyright (C) 2015, <NAME> <<EMAIL>>, <NAME> <<EMAIL>> * All rights reserved. * * This software may be modified and distributed under the terms * of the BSD license. See the LICENSE file for details. * * encoding: UTF-8 * tab size: 4 * * author: <NAME> (<EMAIL>) * created: 8/0...
34.95
165
(translation_unit) "/*\n * ms_taskwrapper.c\n * \n * Copyright (C) 2015, <NAME> <<EMAIL>>, <NAME> <<EMAIL>>\n * All rights reserved.\n * \n * This software may be modified and distributed under the terms\n * of the BSD license. See the LICENSE file for details.\n * \n * encoding: UTF-8\n * tab size: 4\n * \n * author: ...
1,412
0
{"language": "c", "success": true, "metadata": {"lines": 165, "avg_line_length": 34.95, "nodes": 849, "errors": 0, "source_hash": "3093b82d63cde93b35b8dcdaeffbedc9b485fb3986aad1716d4676eab218b887", "categorized_nodes": 632}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,974
c
#include "util.h" #define STRING(X) X , ARRAY_SIZE(X)-1 #define STRLEN(X) (ARRAY_SIZE(X)-1) static void test_cstr() { { struct CStr str = CStrDupLen( STRING("HelloWorld") ); assert(strcmp(str.str,"HelloWorld")==0); assert(str.len == STRLEN("HelloWorld")); CStrDestroy(&str); } { struct CStr s...
26.5
140
(translation_unit) "#include "util.h"\n\n#define STRING(X) X , ARRAY_SIZE(X)-1\n#define STRLEN(X) (ARRAY_SIZE(X)-1)\n\nstatic void test_cstr() {\n {\n struct CStr str = CStrDupLen( STRING("HelloWorld") );\n assert(strcmp(str.str,"HelloWorld")==0);\n assert(str.len == STRLEN("HelloWorld"));\n CStrDestroy(&s...
1,707
0
{"language": "c", "success": true, "metadata": {"lines": 140, "avg_line_length": 26.5, "nodes": 950, "errors": 0, "source_hash": "db1b2a1caabcd654f488f60092496506fd1f8ec1cd8aca0e9d52fb4b337c719c", "categorized_nodes": 719}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,975
c
#pragma once #include "CoreMinimal.h" #include "EDamageUpgrade.generated.h" UENUM(BlueprintType) enum class EDamageUpgrade : uint8 { Damage, WeakpointDamageMultiplier, StaggerChance, StaggerDuration, RadialDamage, RadialRange, ArmorDamageMultiplier, FearFactor, RadialRangeMultiplier...
21.06
18
(translation_unit) "#pragma once\n#include "CoreMinimal.h"\n#include "EDamageUpgrade.generated.h"\n\nUENUM(BlueprintType)\nenum class EDamageUpgrade : uint8 {\n Damage,\n WeakpointDamageMultiplier,\n StaggerChance,\n StaggerDuration,\n RadialDamage,\n RadialRange,\n ArmorDamageMultiplier,\n Fear...
73
2
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 21.06, "nodes": 43, "errors": 0, "source_hash": "099375456752d451805878d646714441dbafb4f649dbeada63dc8c2e595074bb", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
9,976
c
#ifndef SourceMapperFile_java_model_INCLUDED_INCLUDED #define SourceMapperFile_java_model_INCLUDED_INCLUDED #include <JCDT_Lib/internal/impl/FileBase.h> namespace Jikes { // Open namespace Jikes block namespace JavaModel{ class SourceMapperFile :public FileBase { public: wstring GetUnicodeFileName() overrid...
21.67
33
(translation_unit) "#ifndef SourceMapperFile_java_model_INCLUDED_INCLUDED\n#define SourceMapperFile_java_model_INCLUDED_INCLUDED\n#include <JCDT_Lib/internal/impl/FileBase.h>\n\n\nnamespace Jikes { // Open namespace Jikes block\n\n\nnamespace JavaModel{\n \n class SourceMapperFile :public FileBase\n {\n public:\n wstr...
169
4
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 21.67, "nodes": 89, "errors": 0, "source_hash": "bb39a82fbb697dac38f30e1c889c6a761f9ecf996d0dffa25fdbec0e71a75152", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,977
c
/*========================================================================= * * Copyright NumFOCUS * * 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.or...
36.17
183
(translation_unit) "/*=========================================================================\n *\n * Copyright NumFOCUS\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 * ...
796
41
{"language": "c", "success": true, "metadata": {"lines": 183, "avg_line_length": 36.17, "nodes": 491, "errors": 0, "source_hash": "266d54048ef58c85dc1190cd509971573233355d95ac04f7532cb52f88f7d6c1", "categorized_nodes": 355}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
9,978
c
#pragma once #include "./card.h" class deck { private: card cards[52]; int num_cards; void remove_card(); public: deck(); void shuffle(); void reset(); //void remove_card(); card deal_top_card(); bool out_of_cards(); void add_card(card); //debug functions void print_all_cards(); };
16.17
18
(translation_unit) "#pragma once\n#include "./card.h"\n\nclass deck {\n private:\n card cards[52];\n int num_cards;\n void remove_card();\n public:\n deck();\n void shuffle();\n void reset();\n //void remove_card();\n card deal_top_card();\n bool out_of_cards();\n void add_card(card);\n\n //debug functions\n...
103
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 16.17, "nodes": 58, "errors": 0, "source_hash": "2b0cc559a083231b7f974a263071fe80545f54e44791dcf3c1109cd97dec6f29", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
9,979
c
// // MGAnimationVC.h // MGDemo // // Created by ming on 16/7/8. // Copyright © 2016年 ming. All rights reserved. // #import <UIKit/UIKit.h> @interface MGAnimationVC : UIViewController /** 当前按钮 */ @property(strong,nonatomic)UIButton *button; @end
19.83
12
(translation_unit) "//\n// MGAnimationVC.h\n// MGDemo\n//\n// Created by ming on 16/7/8.\n// Copyright © 2016年 ming. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface MGAnimationVC : UIViewController\n/** 当前按钮 */\n@property(strong,nonatomic)UIButton *button;\n@end\n" (comment) "//" (comment) "//...
37
6
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 19.83, "nodes": 23, "errors": 0, "source_hash": "26305920e8af4bd39a4d8072f628bf9e9b7eb6a581a3d421aded0f074d0cdd33", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
9,980
c
// 2019-2 Programming Report 1 // Problem #1 #define _CRT_SECURE_NO_WARNINGS 1 #define PI 3.141592 #include <stdio.h> int main() { // printf("삼각형 [1] 정사각형 [2] 사각형 [3] 원 [4]\n"); printf("Triangle [1] Square [2] Rectangle [3] Circle [4]\n"); int type; int count; // printf("\n면적을 구할 도형 번호를 선택하세요. >> "); printf...
28.5
108
(translation_unit) " 2019-2 Programming Report 1\n// Problem #1\n\n#define _CRT_SECURE_NO_WARNINGS 1\n#define PI 3.141592\n\n#include <stdio.h>\n\nint main() {\n // printf("삼각형 [1] 정사각형 [2] 사각형 [3] 원 [4]\n");\n printf("Triangle [1] Square [2] Rectangle [3] Circle [4]\n");\n\n int type;\n int count;\n\n // printf("\n면적을...
652
0
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 28.5, "nodes": 305, "errors": 0, "source_hash": "ee5f6c8aaef01f4df68273207fe40699dcb863565fcea4246a6fd06b0684a3a5", "categorized_nodes": 203}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "efine _C...
9,981
c
/* * Last Modified: Sat May 16 2020 * Modified By: SmartPolarBear * ----- * Copyright (C) 2006 by SmartPolarBear <<EMAIL>> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIM...
28.53
70
(translation_unit) "/*\n * Last Modified: Sat May 16 2020\n * Modified By: SmartPolarBear\n * -----\n * Copyright (C) 2006 by SmartPolarBear <<EMAIL>>\n * \n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted.\n * \n * THE SOFTWARE IS PROVIDED "A...
409
2
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 28.53, "nodes": 253, "errors": 0, "source_hash": "f352d7c1f62613d15a6d917a1b7bfa9dc44f6e3a7803a383678d8fd283636ee9", "categorized_nodes": 172}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,982
c
#include <dirent.h> #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <string.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include "../../framework/vfs.h" /**f * NOTE: Test lightly only. **/ void runFopenTests(){ fopen_basic(); fopen_enoent(); fopen_enotdir(); fopen_einval...
21.01
131
(translation_unit) "#include <dirent.h>\n#include <errno.h>\n#include <fcntl.h>\n#include <stdio.h>\n#include <string.h>\n#include <sys/stat.h>\n#include <sys/types.h>\n#include <unistd.h>\n#include "../../framework/vfs.h"\n\n/**f\n * NOTE: Test lightly only.\n **/\nvoid runFopenTests(){\n fopen_basic();\n fopen_enoent...
906
0
{"language": "c", "success": true, "metadata": {"lines": 131, "avg_line_length": 21.01, "nodes": 500, "errors": 0, "source_hash": "032e7a6c28e2b4040f2c325b1162294ab95266bd2d8c3da48d935621fcc24c52", "categorized_nodes": 327}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,983
c
/** **************************************************************************************** * * @file systick.h * * @brief SysTick driver header file. * * Copyright (C) 2014. Dialog Semiconductor Ltd, unpublished work. This computer * program includes Confidential, Proprietary Information and is a Trade Secret of ...
37.96
74
(translation_unit) "/**\n****************************************************************************************\n*\n* @file systick.h\n*\n* @brief SysTick driver header file.\n*\n* Copyright (C) 2014. Dialog Semiconductor Ltd, unpublished work. This computer \n * program includes Confidential, Proprietary Information...
97
0
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 37.96, "nodes": 65, "errors": 0, "source_hash": "5cd16277d2312fb0dc9c2240862e180d4a04fa8884f93edbb41d2fb34163b47f", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,984
c
uint64_t siphash24(const void *src, unsigned long src_sz, const char key[16]);
78
1
(translation_unit) "uint64_t siphash24(const void *src, unsigned long src_sz, const char key[16]);\n" (declaration) "uint64_t siphash24(const void *src, unsigned long src_sz, const char key[16]);" (primitive_type) "uint64_t" (function_declarator) "siphash24(const void *src, unsigned long src_sz, const char ke...
32
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 78.0, "nodes": 20, "errors": 0, "source_hash": "536893cfe4c37e3d7098a70db5b01312e2e74b0f47207d5eaeab7d0f85d31c45", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "uint64_t sip...
9,985
c
// // UIResponder+IUController.h // IUUtil // // Created by admin on 2017/2/10. // Copyright © 2017年 刘海文. All rights reserved. // #import <UIKit/UIKit.h> @interface UIResponder (IUController) @property (nonatomic, readonly) UIViewController *viewController; @property (nonatomic, readonly) UINavigationContr...
33.29
14
(translation_unit) "//\n// UIResponder+IUController.h\n// IUUtil\n//\n// Created by admin on 2017/2/10.\n// Copyright © 2017年 刘海文. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIResponder (IUController)\n\n@property (nonatomic, readonly) UIViewController *viewController;\n@property (nonat...
94
19
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 33.29, "nodes": 65, "errors": 0, "source_hash": "2abb1dd8344a771ba7b6186c24ed6964b9ea17c15149fb6e5b3c669a0c2dce85", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit/UIK...
9,986
c
#include "sgp30.h" #include <inttypes.h> // PRIu64 #include <stdio.h> // printf #include <string.h> #include <unistd.h> // sleep #include <sys/socket.h> #include <arpa/inet.h> #define MAX_BUFFER_SIZE 1024 int main(int argc, char *argv[]) { uint64_t i = 0; int16_t err; uint16_t tvoc_ppb, co2_eq_pp...
37.05
140
(translation_unit) "#include "sgp30.h"\n\n#include <inttypes.h> // PRIu64\n#include <stdio.h> // printf\n#include <string.h>\n#include <unistd.h> // sleep\n#include <sys/socket.h>\n#include <arpa/inet.h>\n\n#define MAX_BUFFER_SIZE 1024\n\nint main(int argc, char *argv[]) {\n uint64_t i = 0;\n int16_t err;...
1,109
0
{"language": "c", "success": true, "metadata": {"lines": 140, "avg_line_length": 37.05, "nodes": 570, "errors": 0, "source_hash": "636d24ea822e264ae83762fba25b8e2e684c3a6f615131479e57b4ff9f7cd696", "categorized_nodes": 396}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,987
c
#include "lily_alloc.h" #include "lily_core_types.h" #include "lily_value.h" lily_function_val *lily_new_foreign_function_val(lily_foreign_func func, char *class_name, char *name) { lily_function_val *f = lily_malloc(sizeof(lily_function_val)); f->refcount = 1; f->class_name = class_name; f->t...
31.32
129
(translation_unit) "#include "lily_alloc.h"\n#include "lily_core_types.h"\n#include "lily_value.h"\n\nlily_function_val *lily_new_foreign_function_val(lily_foreign_func func,\n char *class_name, char *name)\n{\n lily_function_val *f = lily_malloc(sizeof(lily_function_val));\n\n f->refcount = 1;\n f->cla...
1,107
0
{"language": "c", "success": true, "metadata": {"lines": 129, "avg_line_length": 31.32, "nodes": 713, "errors": 0, "source_hash": "4945308308c9f479f8a35353154da5db9868eb616e145b1ec8410b93a524d469", "categorized_nodes": 519}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,988
c
#ifndef CONSTRUCTSCREEN_H #define CONSTRUCTSCREEN_H //Using SDL and standard IO #include "EventsHandling.h" #include <SDL2/SDL.h> #include <stdio.h> typedef struct rgb { int red; int green; int blue; }Rgb; class ConstructScreen { public: ConstructScreen(int width, int height,Rgb* rgb); ~Construct...
26.07
40
(translation_unit) "#ifndef CONSTRUCTSCREEN_H \n#define CONSTRUCTSCREEN_H \n//Using SDL and standard IO \n#include "EventsHandling.h" \n#include <SDL2/SDL.h> \n#include <stdio.h> \n \ntypedef struct rgb \n{ \n int red; \n int green; \n int blue; \n}Rgb; \nclass ConstructScreen \n{ \npublic: \n ConstructScreen(int width...
219
3
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 26.07, "nodes": 147, "errors": 0, "source_hash": "72784e9f3996997853be5c2ff40029670aad108ab18e6f6971c4b22803836819", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,989
c
// // UGHTTPHelpers.h // UGHTTP // // Created by <NAME> on 2/24/12. // Copyright (c) 2012 Radtastical Inc. All rights reserved. // #import <Foundation/Foundation.h> @interface NSString (UGHTTPHelpers) - (NSString *) URLEncodedString; - (NSString *) URLDecodedString; - (NSDictionary *) URLQueryDictionary; @end @in...
23.8
20
(translation_unit) "//\n// UGHTTPHelpers.h\n// UGHTTP\n//\n// Created by <NAME> on 2/24/12.\n// Copyright (c) 2012 Radtastical Inc. All rights reserved.\n//\n#import <Foundation/Foundation.h>\n\n@interface NSString (UGHTTPHelpers)\n- (NSString *) URLEncodedString;\n- (NSString *) URLDecodedString;\n- (NSDictionary ...
121
12
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 23.8, "nodes": 78, "errors": 0, "source_hash": "14310ffd241eb0fe1869ad5fd47df8c933cf8c8f32cbb90b37b123ee4c2b51e9", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
9,990
c
// // NLViewController.h // NUKit // // Created by <EMAIL> on 12/05/2019. // Copyright (c) 2019 <EMAIL>. All rights reserved. // @import UIKit; @interface NLViewControllerDataSource : NSObject @end @interface NLViewController : UIViewController @end
20.17
12
(translation_unit) "//\n// NLViewController.h\n// NUKit\n//\n// Created by <EMAIL> on 12/05/2019.\n// Copyright (c) 2019 <EMAIL>. All rights reserved.\n//\n\n@import UIKit;\n@interface NLViewControllerDataSource : NSObject\n\n@end\n@interface NLViewController : UIViewController\n\n@end\n" (comment) "//" (commen...
29
7
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 20.17, "nodes": 15, "errors": 0, "source_hash": "f080ce6504f9c1d09b9bdc76742163b1f5991ad9020e3d1b1be5db123b454fdc", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nul...
9,991
c
// // QYViewController.h // QYCategorys // // Created by qiaoy on 05/09/2017. // Copyright (c) 2017 qiaoy. All rights reserved. // @import UIKit; @interface QYViewController : UIViewController @end
19.2
10
(translation_unit) "//\n// QYViewController.h\n// QYCategorys\n//\n// Created by qiaoy on 05/09/2017.\n// Copyright (c) 2017 qiaoy. All rights reserved.\n//\n\n@import UIKit;\n\n@interface QYViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// QYViewController.h" (comment) "// QYCategor...
22
5
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.2, "nodes": 10, "errors": 0, "source_hash": "defd418e48a6518427aafb3636e18b48ccec243d45760ba839c311a275df769b", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": null...
9,992
c
/* ===================================================================== * * The MIT License (MIT) * Copyright 2009, 2010, Freescale Semiconductor, Inc. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software")...
27.56
177
(translation_unit) "/* ===================================================================== \n * \n * The MIT License (MIT) \n * Copyright 2009, 2010, Freescale Semiconductor, Inc. \n * \n * Permission is hereby granted, free of charge, to any person obtaining \n * a copy of this software and associated documentation ...
1,104
47
{"language": "c", "success": true, "metadata": {"lines": 177, "avg_line_length": 27.56, "nodes": 647, "errors": 0, "source_hash": "a8e623efa4d4b6900e84df54462f2618eef6702f87ac58e1f39d43621e0c45ac", "categorized_nodes": 434}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
9,993
c
#include <stdio.h> #include <limits.h> int main() { int i = 31; int n = INT_MAX;; int temp; int h = 1; while(i--) { temp = n; printf("%d", (temp >> i) & 1); } }
11.29
14
(translation_unit) "#include <stdio.h>\n#include <limits.h>\nint main()\n{\n int i = 31;\n int n = INT_MAX;;\n int temp;\n int h = 1;\n while(i--)\n {\n temp = n;\n printf("%d", (temp >> i) & 1);\n }\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (prep...
83
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 11.29, "nodes": 52, "errors": 0, "source_hash": "d076a67dcb614fb207e6fad18a4b0510644699146499e133b7d2bdf20bc2cf21", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
9,994
c
#include "list.h" #include <string.h> #include <assert.h> #include <stdlib.h> void list_init(list *l, size_t n_bytes, size_t len) { l->n_bytes = n_bytes; l->array = malloc(n_bytes * len); assert(l->array != NULL); l->len = len; l->used = 0; } void *list_index(list *l, size_t index) { assert(i...
21.48
44
(translation_unit) "#include "list.h"\n\n#include <string.h>\n#include <assert.h>\n#include <stdlib.h>\n\nvoid list_init(list *l, size_t n_bytes, size_t len)\n{\n l->n_bytes = n_bytes;\n l->array = malloc(n_bytes * len);\n assert(l->array != NULL);\n l->len = len;\n l->used = 0;\n}\n\nvoid *list_index(li...
410
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 21.48, "nodes": 274, "errors": 0, "source_hash": "208649d7479eb4258a4ee451b99738f0cb91fc7eadf02e91d3db4c1eae337caa", "categorized_nodes": 192}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,995
c
/* * This file is part of libdom. * Licensed under the MIT License, * http://www.opensource.org/licenses/mit-license.php * Copyright 2009 <NAME> <<EMAIL>> * Copyright 2014 <NAME> <<EMAIL>> */ #ifndef dom_internal_html_area_element_h_ #define dom_internal_html_area_element_h_ #include <dom/html/ht...
40.96
46
(translation_unit) "/*\n * This file is part of libdom.\n * Licensed under the MIT License,\n * http://www.opensource.org/licenses/mit-license.php\n * Copyright 2009 <NAME> <<EMAIL>>\n * Copyright 2014 <NAME> <<EMAIL>>\n */\n\n#ifndef dom_internal_html_area_element_h_\n#define dom_internal_html_area_elem...
220
0
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 40.96, "nodes": 168, "errors": 0, "source_hash": "39843f819a74cf832a4eed5e3f112441ba865429cabfe39efec87a634aa99c25", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,996
c
// // CreateDirectionsView.h // RecipeApp // // Created by <NAME> on 2014-11-28. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @class CreateDirectionsView; @protocol CreateDirectionsViewDelegate <NSObject> - (void)didFinishWritingRecipe; @end @interface CreateDirectionsView : ...
34.59
22
(translation_unit) "//\n// CreateDirectionsView.h\n// RecipeApp\n//\n// Created by <NAME> on 2014-11-28.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@class CreateDirectionsView;\n\n@protocol CreateDirectionsViewDelegate <NSObject>\n\n- (void)didFinishWritingRecipe;\n\n@end...
187
24
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 34.59, "nodes": 125, "errors": 0, "source_hash": "f1e719db4daba70d1893aa8bbd4ca1409714b0ca87ea6834649b87f57905b00a", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
9,997
c
#ifndef _mpeg4_inst_h_ #define _mpeg4_inst_h_ #include <rbtree.h> #include <mlog.h> #define mlog_level_width 4 #define mlog_level_inital 1 #define mlog_level_dump(_fmt, ...) mlog_printf(mlog, "%*c" _fmt, level, 0, ##__VA_ARGS__) #define mpeg4$define(_major, _minor, _func) mpeg4$##_major##$##_m...
44
22
(translation_unit) "#ifndef _mpeg4_inst_h_\n#define _mpeg4_inst_h_\n\n#include <rbtree.h>\n#include <mlog.h>\n\n#define mlog_level_width 4\n#define mlog_level_inital 1\n#define mlog_level_dump(_fmt, ...) mlog_printf(mlog, "%*c" _fmt, level, 0, ##__VA_ARGS__)\n\n#define mpeg4$define(_major, _minor,...
215
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 44.0, "nodes": 163, "errors": 0, "source_hash": "7bdf9ca7e6910f53a662d06a995a78448cf31aa1b27459f50da30a5a055e567f", "categorized_nodes": 107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,998
c
/* Send to a mailbox a message that is too large for the mailbox. */ #include <stdio.h> #include <usloss.h> #include <phase1.h> #include <phase2.h> int XXp1(char *); char buf[256]; int start2(char *arg) { int mbox_id; int result; char buffer[80]; USLOSS_Console("start2(): started\n"); mbox_id...
34.06
32
(translation_unit) "/* Send to a mailbox a message that is too large for the mailbox. */\n\n#include <stdio.h>\n#include <usloss.h>\n#include <phase1.h>\n#include <phase2.h>\n\n\nint XXp1(char *);\nchar buf[256];\n\n\nint start2(char *arg)\n{\n int mbox_id;\n int result;\n char buffer[80];\n\n USLOSS_Consol...
253
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 34.06, "nodes": 135, "errors": 0, "source_hash": "d30fcc4a3a00342a5763f73e9d9f9953fa5f11e167494e8b139eab32c142fdfd", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
9,999