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
#ifndef CGnuPlotKey_H #define CGnuPlotKey_H #include <CGnuPlotKeyData.h> #include <CGnuPlotMouseEvent.h> #include <CDirectionType.h> #include <CPoint2D.h> #include <CBBox2D.h> #include <CFont.h> #include <string> #include <vector> #include <memory> #include <sys/types.h> class CGnuPlot; class CGnuPlotGroup; class C...
44.34
125
(translation_unit) "#ifndef CGnuPlotKey_H\n#define CGnuPlotKey_H\n\n#include <CGnuPlotKeyData.h>\n#include <CGnuPlotMouseEvent.h>\n#include <CDirectionType.h>\n#include <CPoint2D.h>\n#include <CBBox2D.h>\n#include <CFont.h>\n#include <string>\n#include <vector>\n#include <memory>\n\n#include <sys/types.h>\n\nclass CGnu...
2,108
86
{"language": "c", "success": true, "metadata": {"lines": 125, "avg_line_length": 44.34, "nodes": 1108, "errors": 0, "source_hash": "24fa0884b4c137f211d728d8d248e5131cba52d1ce89f607c99ca670cb0254a9", "categorized_nodes": 778}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef CGnu...
2,700
c
/************************************************************ * <bsn.cl fy=2013 v=epl-1.0> * * Copyright 2013, 2014 Big Switch Networks, Inc. * * Licensed under the Eclipse Public License, Version 1.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a co...
27.39
268
(translation_unit) "/************************************************************\n * <bsn.cl fy=2013 v=epl-1.0>\n *\n * Copyright 2013, 2014 Big Switch Networks, Inc.\n *\n * Licensed under the Eclipse Public License, Version 1.0 (the\n * "License"); you may not use this file except in compliance\n * with the L...
1,994
0
{"language": "c", "success": true, "metadata": {"lines": 268, "avg_line_length": 27.39, "nodes": 1206, "errors": 0, "source_hash": "a5a1ea66946237b3f184cef15acee58d2b4248c917c31cd748bdf614f152ceb8", "categorized_nodes": 885}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
2,701
c
#ifndef ori_object_h #define ori_object_h #include "common.h" #include "value.h" // Extracts object type tag from a given value #define OBJ_TYPE(value) (AS_OBJ(value)->type) #define IS_STRING(value) isObjType(value, OBJ_STRING) #define AS_STRING(value) ((ObjString*)AS_OBJ(value)) #define AS_CSTRING(value) (((ObjStr...
32.51
43
(translation_unit) "#ifndef ori_object_h\n#define ori_object_h\n\n#include "common.h"\n#include "value.h"\n\n// Extracts object type tag from a given value\n#define OBJ_TYPE(value) (AS_OBJ(value)->type)\n\n#define IS_STRING(value) isObjType(value, OBJ_STRING)\n\n#define AS_STRING(value) ((ObjString*)AS_OBJ(value))\n#de...
213
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 32.51, "nodes": 142, "errors": 0, "source_hash": "7a23abf4cfd7ed46e492d1b7745a828bc1627791b78b10afd19f2a34bad64df2", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
2,702
c
/* ** Copyright 2018 Bloomberg Finance L.P. ** ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** ** http://www.apache.org/licenses/LICENSE-2.0 ** ** Unless required by applicable law or...
34.88
84
(translation_unit) "/*\n** Copyright 2018 Bloomberg Finance L.P.\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 ...
456
31
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 34.88, "nodes": 298, "errors": 0, "source_hash": "cd3ab9268d9d73ad5a61e0cee400fab0353491fe783a0a97a69d6ccd3fa04ac1", "categorized_nodes": 193}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,703
c
#ifndef ARRAY_SYMBOLIO_H #define ARRAY_SYMBOLIO_H #include <stddef.h> #include <stdexcept> #include "isymbolio.h" template <typename SYMBOL_TYPE> class ArraySymbolOut : public ISymbolOut<SYMBOL_TYPE> { public: typedef SYMBOL_TYPE symbol_type; private: symbol_type *array; size_t size; size_t idx; public: Arra...
20.55
53
(translation_unit) "#ifndef ARRAY_SYMBOLIO_H\n#define ARRAY_SYMBOLIO_H\n\n#include <stddef.h>\n#include <stdexcept>\n#include "isymbolio.h"\n\ntemplate <typename SYMBOL_TYPE>\nclass ArraySymbolOut : public ISymbolOut<SYMBOL_TYPE> {\npublic:\n typedef SYMBOL_TYPE symbol_type;\n \nprivate:\n symbol_type *array;\n size_t ...
372
21
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 20.55, "nodes": 225, "errors": 0, "source_hash": "a1a712afab8d46864a7421f978deccb1b7ba3b7eef6b5556bea3808de49f7ed5", "categorized_nodes": 151}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,704
c
#pragma once #include "../container-header.h" using std::string; class Containers { private: vector <Container*>* containers; public: Containers(vector <Container*>* containers); ~Containers(); public: void addEventListener(string action, eventCallback event_callback); void each(eachCallback each_callback); };
21.64
14
(translation_unit) "#pragma once\n\n#include "../container-header.h"\nusing std::string;\n\nclass Containers\n{\nprivate:\n vector <Container*>* containers;\n\npublic:\n Containers(vector <Container*>* containers);\n ~Containers();\n\npublic:\n void addEventListener(string action, eventCallback event_callback);\n void ...
101
3
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 21.64, "nodes": 65, "errors": 0, "source_hash": "992a100787919b2c6f4b5579f1410ca1ee3bee4eb4cd2e3ed6b1c3ced6a7746f", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
2,705
c
/* * $PIP_license: <Simplified BSD License> * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the follo...
33.52
153
(translation_unit) "/*\n * $PIP_license: <Simplified BSD License>\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n * \n * Redistributions of source code must retain the above copyright notice,\n * this list o...
1,315
0
{"language": "c", "success": true, "metadata": {"lines": 153, "avg_line_length": 33.52, "nodes": 770, "errors": 0, "source_hash": "c50f75a71e27149e8036dcf30d53b76c162c3fc4232c87e971a5271e2030a4fd", "categorized_nodes": 573}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,706
c
/* * * Copyright (c) 2017-2018 Intel Corporation. All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
36.19
53
(translation_unit) "/*\n*\n* Copyright (c) 2017-2018 Intel Corporation. All Rights Reserved\n*\n* Licensed under the Apache License, Version 2.0 (the "License");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENS...
240
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 36.19, "nodes": 171, "errors": 0, "source_hash": "e5672057b21cc324f2a3673fe10fb89c404de4ede7af551f91d90241bc22655d", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,707
c
#ifndef __UI_H__ #define __UI_H__ extern u8 autoA,autoB; //0=off, 1=on, 2=R extern u8 stime; extern u8 autostate; extern int selected;//selected menuitem. used by all menus. extern int mainmenuitems;//? or CARTMENUITEMS, depending on whether saving is allowed extern u32 oldkey;//init this before using getm...
22.4
57
(translation_unit) "#ifndef __UI_H__ \n#define __UI_H__ \n \nextern u8 autoA,autoB; //0=off, 1=on, 2=R \nextern u8 stime; \nextern u8 autostate; \nextern int selected;//selected menuitem. used by all menus. \nextern int mainmenuitems;//? or CARTMENUITEMS, depending on whether saving is allowed \nextern u32 oldkey;/...
486
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 22.4, "nodes": 350, "errors": 0, "source_hash": "3c2dd9dad5c3b886a8f846aceb376b6760b13ce97aca7d2c26b049806c891ed8", "categorized_nodes": 206}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
2,708
c
// // SMRCVCircleLayoutController.h // SMRCollectionViewLayouts // // Created by Tinswin on 2021/12/30. // #import "SMRCVLayoutController.h" NS_ASSUME_NONNULL_BEGIN @interface SMRCVCircleLayoutController : SMRCVLayoutController @end NS_ASSUME_NONNULL_END
22.45
11
(translation_unit) "//\n// SMRCVCircleLayoutController.h\n// SMRCollectionViewLayouts\n//\n// Created by Tinswin on 2021/12/30.\n//\n\n#import "SMRCVLayoutController.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface SMRCVCircleLayoutController : SMRCVLayoutController\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" ...
26
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 22.45, "nodes": 15, "errors": 0, "source_hash": "8967eb307b24cd9db66fa21077c4fc17ffbeb81e898e65cda4fc58f967dda105", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
2,709
c
/* This implements a general-purpose data compression engine class. It has adequate performance for most uses. I am pretty sure that the algorithm used is Limpel-Ziv, or at least highly similar. (I wrote this over a year after last reading about data compression algorithms, and did a better job at remembering...
24.5
189
(translation_unit) "/* \n This implements a general-purpose data compression engine class. It has \n adequate performance for most uses. I am pretty sure that the algorithm \n used is Limpel-Ziv, or at least highly similar. (I wrote this over a year \n after last reading about data compression algorithms, and did a bet...
872
8
{"language": "c", "success": true, "metadata": {"lines": 189, "avg_line_length": 24.5, "nodes": 589, "errors": 0, "source_hash": "d76999129e4a35cc33d58cffffac3c14725727a3f20ba7b66e3f2cae570590fe", "categorized_nodes": 361}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,710
c
#include <string.h> #define max(a, b) (((a) > (b)) ? (a) : (b)) #define min(a, b) (((a) < (b)) ? (a) : (b)) #define trimin(a, b, c) (min(min(a, b), c)) //the minimum of a,b,c int maximalSquare(char** matrix, int matrixSize, int* matrixColSize) { if (matrixSize == 0) return 0; int M = matrixSize, N = *matrixColSi...
24.2
25
(translation_unit) "#include <string.h>\n\n#define max(a, b) (((a) > (b)) ? (a) : (b))\n#define min(a, b) (((a) < (b)) ? (a) : (b))\n#define trimin(a, b, c) (min(min(a, b), c)) //the minimum of a,b,c\n\nint maximalSquare(char** matrix, int matrixSize, int* matrixColSize)\n{\n if (matrixSize == 0)\n return 0;\n int M ...
295
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 24.2, "nodes": 196, "errors": 0, "source_hash": "284762a312ad069d9721b418904dc3132d97cf592263aa03ab6b2a814af43465", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
2,711
c
/* * devenv - environment */ #include "dat.h" #include "fns.h" #include "error.h" static void envremove(Chan*); static int envgen(Chan *c, Dirtab *d, int nd, int s, Dir *dp) { Egrp *eg; Evalue *e; USED(d); USED(nd); if(s == DEVDOTDOT){ devdir(c, c->qid, "#e", 0, eve, CHDIR|0775, dp); return 1; } eg = up...
15.9
221
(translation_unit) "/*\n * devenv - environment\n */\n#include "dat.h"\n#include "fns.h"\n#include "error.h"\n\nstatic void envremove(Chan*);\n\nstatic int\nenvgen(Chan *c, Dirtab *d, int nd, int s, Dir *dp)\n{\n Egrp *eg;\n Evalue *e;\n\n USED(d);\n USED(nd);\n if(s == DEVDOTDOT){\n devdir(c, c->qid, "#e", 0, eve, CH...
2,036
0
{"language": "c", "success": true, "metadata": {"lines": 221, "avg_line_length": 15.9, "nodes": 1260, "errors": 0, "source_hash": "50e0805b0ac8f799719b516b7174682881d22e5d0b9c29b57bb152b7d861f3ec", "categorized_nodes": 989}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,712
c
// "Build Engine & Tools" Copyright (c) 1993-1997 <NAME> // <NAME>'s official web site: "http://www.advsys.net/ken" // See the included license file "BUILDLIC.TXT" for license info. #ifndef _SDL_DRIVER_H #define _SDL_DRIVER_H #include "SDL.h" // Defines #define kinp(x) _kinp_handler((x), __FILE__, __LINE__) #d...
34.48
25
(translation_unit) "// "Build Engine & Tools" Copyright (c) 1993-1997 <NAME>\n// <NAME>'s official web site: "http://www.advsys.net/ken"\n// See the included license file "BUILDLIC.TXT" for license info.\n\n#ifndef _SDL_DRIVER_H\n#define _SDL_DRIVER_H\n\n#include "SDL.h"\n\n// Defines\n#define kinp(x) _kinp_handl...
212
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 34.48, "nodes": 153, "errors": 0, "source_hash": "f47d7a4fafec15470683d274ea0f78bc7e487a44ece45f957e3454a48173c273", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
2,713
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <xbee.h> #define XBEE_BAUD_RATE 9600 #define XBEE_USB_ADDR "/dev/ttyUSB0" #define XBEE_MODEL_NO "xbee1" int main(void) { int i; void *d; struct xbee *xbee; struct xbee_con *con; struct xbee_conAddress address; struct xbee_conSettings setting...
26.2
65
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#include <xbee.h>\n\n\n#define XBEE_BAUD_RATE 9600\n#define XBEE_USB_ADDR "/dev/ttyUSB0"\n#define XBEE_MODEL_NO "xbee1"\n\n\nint main(void) {\n int i;\n void *d;\n struct xbee *xbee;\n struct xbee_con *con;\n struct xbee_conAddress addr...
563
0
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 26.2, "nodes": 312, "errors": 0, "source_hash": "69a886b1cc58943053e6adc6cb639b2c77e20428f0eacb76c13601cc0bb22fcb", "categorized_nodes": 237}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
2,714
c
/* * Copyright (C) 2015 University of Oregon * * You may distribute under the terms of either the GNU General Public * License or the Apache License, as specified in the LICENSE file. * * For more information, see the LICENSE file. */ /* */ /* This program is part of the VNMR installation procedure. It ...
33.17
90
(translation_unit) "/*\n * Copyright (C) 2015 University of Oregon\n *\n * You may distribute under the terms of either the GNU General Public\n * License or the Apache License, as specified in the LICENSE file.\n *\n * For more information, see the LICENSE file.\n */\n/* \n*/\n\n/* This program is part of the VNMR i...
458
0
{"language": "c", "success": true, "metadata": {"lines": 90, "avg_line_length": 33.17, "nodes": 215, "errors": 0, "source_hash": "c542b317235c9f45f210722d183d94bd1fdf1f0ebc50945e7da31455b6481895", "categorized_nodes": 160}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,715
c
#ifndef STRING_H #define STRING_H #include "Elem.h" #define str static_pointer_cast<String> class String : public Elem { public: string elem; String() : Elem(STRING) { elem = ""; } // Default constructor. String(string &x) : Elem(STRING) { elem = x; } // Parameterized constructor 1. String(...
27.52
65
(translation_unit) "#ifndef STRING_H \n#define STRING_H \n \n#include "Elem.h" \n \n#define str static_pointer_cast<String> \n \nclass String : public Elem \n{ \npublic: \n string elem; \n \n String() : Elem(STRING) { elem = ""; } // Default constructor. \n \n String(string &x) : Elem(STRING) { elem = x; } // Parame...
821
10
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 27.52, "nodes": 520, "errors": 0, "source_hash": "71962a07e3e3d83b30c8480684eca75a76e0db2fb77a35ffbca0b27d23694629", "categorized_nodes": 326}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,716
c
/* * Copyright (C) 2016 prpl Foundation * Written by <NAME> <<EMAIL>> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROV...
25.59
91
(translation_unit) "/*\n * Copyright (C) 2016 prpl Foundation\n * Written by <NAME> <<EMAIL>>\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\...
555
0
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 25.59, "nodes": 327, "errors": 0, "source_hash": "5afcf1926bf732a5daae096bf238252f681341667b73f4c2bebc598a880a08c6", "categorized_nodes": 221}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,717
c
/* * MIRACL C++ Headerfile SF2m12x.h * * AUTHOR : <NAME> * * PURPOSE : Definition of class SF2m12x - Arithmetic over the special extension * field GF(2^12m). Representation is a quadratic extension of GF2m6x * * NOTE : The underlying GF(2^m) field basis must be set by the modulo() ...
38.18
84
(translation_unit) "/*\n * MIRACL C++ Headerfile SF2m12x.h\n *\n * AUTHOR : <NAME>\n *\n * PURPOSE : Definition of class SF2m12x - Arithmetic over the special extension \n * field GF(2^12m). Representation is a quadratic extension of GF2m6x\n *\n * NOTE : The underlying GF(2^m) field basis ...
1,432
85
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 38.18, "nodes": 823, "errors": 0, "source_hash": "983a79c2bf05877ce5f6756457bec456495ddb556516a832942c3ea2471c1217", "categorized_nodes": 616}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,718
c
#include <stdio.h> #include "graph_matrix.h" void add_vertex(GRAPH_MATRIX *matrix, VER_TYPE vertex) { if (!matrix || matrix->ver_num >= MAX_VERTEXS) { printf("Invalid parameter\n"); return; } matrix->vertexs[matrix->ver_num++] = vertex; return; } static int get_vertex_index(GRAPH_...
22.66
101
(translation_unit) "#include <stdio.h>\n#include "graph_matrix.h"\n\nvoid add_vertex(GRAPH_MATRIX *matrix, VER_TYPE vertex)\n{\n if (!matrix || matrix->ver_num >= MAX_VERTEXS)\n {\n printf("Invalid parameter\n");\n return;\n }\n\n matrix->vertexs[matrix->ver_num++] = vertex;\n return;\n}\n\...
757
0
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 22.66, "nodes": 434, "errors": 0, "source_hash": "90c89089d31e4518c4d31368ccab94d361079dc5f8f29b9d2c503e3878eed4c2", "categorized_nodes": 329}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,719
c
#ifndef AVL_TREE_NODE_H #define AVL_TREE_NODE_H #include <stdlib.h> struct node; struct node { int value; struct node *left; struct node *right; }; struct node_height { int left; int right; }; void init_node(struct node *target, int target_value); void free_tree(struct node **head_ptr); void free_node(struct n...
16.63
19
(translation_unit) "#ifndef AVL_TREE_NODE_H\n#define AVL_TREE_NODE_H\n\n#include <stdlib.h>\n\nstruct node;\nstruct node\n{\n int value;\n struct node *left;\n struct node *right;\n};\n\nstruct node_height\n{\n int left;\n int right;\n};\n\nvoid init_node(struct node *target, int target_value);\nvoid free_tree(struct n...
108
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 16.63, "nodes": 83, "errors": 0, "source_hash": "87e537c866daafac8fd56149e56a25c17617a77f9918a6fd272f9902d65d55b0", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,720
c
#pragma once #include <Windows.h> #include "mem.h" bool Detour32(BYTE* src, BYTE* dst, const uintptr_t len); BYTE* TrampHook32(BYTE* src, BYTE* dst, const uintptr_t len); void* TrampHook64(void* src, void* dst, int len); class Hook { public: bool bEnabled{ false }; BYTE* src{ nullptr }; BYTE* dst{ nullptr }; uin...
27.46
24
(translation_unit) "#pragma once\n#include <Windows.h>\n#include "mem.h"\n\nbool Detour32(BYTE* src, BYTE* dst, const uintptr_t len);\nBYTE* TrampHook32(BYTE* src, BYTE* dst, const uintptr_t len);\nvoid* TrampHook64(void* src, void* dst, int len);\n\nclass Hook\n{\npublic:\n bool bEnabled{ false };\n\n BYTE* src{ nullp...
274
12
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 27.46, "nodes": 173, "errors": 0, "source_hash": "82c922bf73938ecd60b42c626e0e634bafa8d004f2ca354316549ac5906df182", "categorized_nodes": 96}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
2,721
c
/*++ Copyright (c) 1999 - 2006, Intel Corporation. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licens...
25.62
136
(translation_unit) "/*++ \n \nCopyright (c) 1999 - 2006, Intel Corporation. All rights reserved.<BR> \nThis program and the accompanying materials \nare licensed and made available under the terms and conditions of the BSD License \nwhich accompanies this distribution. The full text of the license may be found at \nht...
188
8
{"language": "c", "success": true, "metadata": {"lines": 136, "avg_line_length": 25.62, "nodes": 141, "errors": 0, "source_hash": "e1b448f84880905e97e2bf868de58925b1f550d709260af80ac635a5f314c70b", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,722
c
// Kinaro template. Upgrades to match Darol'dralych. Nienne, '07. #define INH "/d/dagger/kinaro/storage/" #define ROOMS "/d/dagger/kinaro/city/" #define MINES "/d/dagger/kinaro/mines/" #define OBJ "/d/dagger/kinaro/obj/" #define MON "/d/dagger/kinaro/mon/"
41.83
6
(translation_unit) "// Kinaro template. Upgrades to match Darol'dralych. Nienne, '07.\n\n#define INH "/d/dagger/kinaro/storage/"\n#define ROOMS "/d/dagger/kinaro/city/"\n#define MINES "/d/dagger/kinaro/mines/"\n#define OBJ "/d/dagger/kinaro/obj/"\n#define MON "/d/dagger/kinaro/mon/"\n" (comment) "// Kinaro template. ...
22
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 41.83, "nodes": 20, "errors": 0, "source_hash": "700e3fecb5a616a6b5ef0a73bfd3dc32617a80d5d4b01264e2a88102b10271c5", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define INH ...
2,723
c
#pragma once namespace AppVersion { const char* Name = "0.0.1"; const char* Code = "1"; }
17
5
(translation_unit) "#pragma once\nnamespace AppVersion {\nconst char* Name = "0.0.1";\nconst char* Code = "1";\n}\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (function_definition) "namespace AppVersion {\nconst char* Name = "0.0.1";\nconst char* Code = "1";\n}" ...
38
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 17.0, "nodes": 22, "errors": 0, "source_hash": "66c8366ddf474c4dae64a5198ec4f3657fac7c59ee93c23e101ddc9e64ef8690", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
2,724
c
#pragma once #include<iostream> #include<unordered_map> #include<string> #include"../utils/Serializable.h" #include "src/utils/Enums.h" #include <fstream> using namespace std; class Schema : public Serializable { public: long id; string name; ElementType type; Schema(); Schema(string name, unordered_map<string,...
21.53
19
(translation_unit) "#pragma once\n#include<iostream>\n#include<unordered_map>\n#include<string>\n#include"../utils/Serializable.h"\n#include "src/utils/Enums.h"\n#include <fstream>\nusing namespace std;\n\n\nclass Schema : public Serializable {\npublic:\n long id;\n string name;\n ElementType type;\n\n Schema();\n Sche...
119
5
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 21.53, "nodes": 81, "errors": 0, "source_hash": "1749600d87e41a22562c4d00b7a41a250a17e43abeb0b9750f8870510623f4c1", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
2,725
c
#pragma once #ifndef __PHYSICLAYER_H__ #define __PHYSICLAYER_H__ #include"cocos2d.h" #include"onwind.h" #include"SpriteWithPhysicsAndAnimation.h" #include"PlaneSprite.h" using namespace cocos2d; class PhysicsLayer : public Layer { vector<SpriteWithPhysicsAndAnimation*> m_castObject; void RemoveObject(SpriteWithPhys...
33.42
24
(translation_unit) "#pragma once\n#ifndef __PHYSICLAYER_H__\n#define __PHYSICLAYER_H__\n\n#include"cocos2d.h"\n#include"onwind.h"\n#include"SpriteWithPhysicsAndAnimation.h"\n#include"PlaneSprite.h"\nusing namespace cocos2d;\n\nclass PhysicsLayer : public Layer\n{\n vector<SpriteWithPhysicsAndAnimation*> m_castObject;\n...
212
6
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 33.42, "nodes": 146, "errors": 0, "source_hash": "ad0602cd5edb2c7196fb8df05d59fd04ec907b200a9cc3608bb4a48baa560a10", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
2,726
c
#pragma once /* * h_Sprite.h * - This is used to grab images and turn them into sprites. Animated if available. * */ //#include "..\SDL2\include\SDL.h" #include <SDL.h> #include <string> #include "h_Image.h" namespace Heyo { class Graphics; typedef SDL_Point Point; typedef SDL_Point Coord; struct Range { int ...
34.11
75
(translation_unit) "#pragma once\n\n/*\n* h_Sprite.h\n* - This is used to grab images and turn them into sprites. Animated if available.\n*\n*/\n\n//#include "..\SDL2\include\SDL.h"\n#include <SDL.h>\n#include <string>\n#include "h_Image.h"\n\nnamespace Heyo {\n class Graphics;\n typedef SDL_Point Point;\n typedef SDL_...
682
12
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 34.11, "nodes": 379, "errors": 0, "source_hash": "abb23b8479393df3dc601b8ebccaa8ee3c9c9b5937564208250e9c6d53db44a1", "categorized_nodes": 268}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
2,727
c
// // LocalDeviceCell.h // Yoosee // // Created by guojunyi on 14-7-25. // Copyright (c) 2014年 guojunyi. All rights reserved. // #import <UIKit/UIKit.h> @interface LocalDeviceCell : UITableViewCell @property (nonatomic,strong) NSString *leftImage; @property (nonatomic,strong) NSString *rightImage; @property (non...
31.94
16
(translation_unit) "//\n// LocalDeviceCell.h\n// Yoosee\n//\n// Created by guojunyi on 14-7-25.\n// Copyright (c) 2014年 guojunyi. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface LocalDeviceCell : UITableViewCell\n\n@property (nonatomic,strong) NSString *leftImage;\n@property (nonatomic,strong) NSS...
126
26
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 31.94, "nodes": 93, "errors": 0, "source_hash": "45196ce01896b8cfbd69bfd097bf88f0f45857dc0eed9c85fca22fc6c5e9424a", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <UI...
2,728
c
/* $NetBSD: ixp12x0_clkreg.h,v 1.3 2003/03/06 06:14:16 igy Exp $ */ /* * Copyright (c) 2002 * <NAME> <<EMAIL>>. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of sou...
35.56
108
(translation_unit) "/* $NetBSD: ixp12x0_clkreg.h,v 1.3 2003/03/06 06:14:16 igy Exp $ */\n\n/*\n * Copyright (c) 2002\n * <NAME> <<EMAIL>>. All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\...
213
0
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 35.56, "nodes": 198, "errors": 0, "source_hash": "a28f795068c05d35ee982861ec354c5bc2630690c67775e9a494bc19683a5883", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,729
c
#include "types.h" #include "stat.h" #include "user.h" #include "sound.h" #include "fcntl.h" #define SINGLE_BUF_SIZE 4096 #define BUF_SIZE (SINGLE_BUF_SIZE * 8) int main(int argc, char *argv[]) { int i; int fd; struct wav info; fd = open(argv[1], O_RDWR); if (fd < 0) { printf(0, "open wav file fail\...
21.24
71
(translation_unit) "#include "types.h"\n#include "stat.h"\n#include "user.h"\n#include "sound.h"\n#include "fcntl.h"\n\n#define SINGLE_BUF_SIZE 4096\n#define BUF_SIZE (SINGLE_BUF_SIZE * 8)\n\nint\nmain(int argc, char *argv[])\n{\n int i;\n int fd;\n struct wav info;\n\n fd = open(argv[1], O_RDWR);\n if (fd < 0)\n...
644
0
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 21.24, "nodes": 375, "errors": 0, "source_hash": "b23c2cbcecaf2465dc1296f6b2e2d392b07a6993b525a76a200597305bfb5535", "categorized_nodes": 282}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,730
c
/** * \file * * \brief AVR UC3 IISC I2S example 2 * * Copyright (c) 2014 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page License * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * *...
33.32
142
(translation_unit) "/**\n * \file\n *\n * \brief AVR UC3 IISC I2S example 2\n *\n * Copyright (c) 2014 Atmel Corporation. All rights reserved.\n *\n * \asf_license_start\n *\n * \page License\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the fol...
326
0
{"language": "c", "success": true, "metadata": {"lines": 142, "avg_line_length": 33.32, "nodes": 163, "errors": 0, "source_hash": "30ecdcdc86c9ca49a993b5cd61cb0042cf1aa876b98030a50c832533e616424c", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,731
c
#ifndef __VANILLA_OPTION_H #define __VANILLA_OPTION_H #include "payoff.h" class VanillaOption { public: PayOff* pay_off; double K; double r; double T; double sigma; VanillaOption(); VanillaOption(double _K, double _r, double _T, double _sigma, PayOff* _pay_off); }; ...
15.45
20
(translation_unit) "#ifndef __VANILLA_OPTION_H \n#define __VANILLA_OPTION_H \n \n#include "payoff.h" \n \nclass VanillaOption { \n public: \n PayOff* pay_off; \n \n double K; \n double r; \n double T; \n double sigma; \n \n VanillaOption(); \n VanillaOption(double _K, double _r, double _T, \n dou...
83
5
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 15.45, "nodes": 53, "errors": 0, "source_hash": "09688eccd69b6c8fac6b81b0e45af1aede675b22e648cab2c5e1d88958ac4eaf", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,732
c
// // Created by kenhuang on 2019-11-19. // //#ifdef _WIN32 //#include <windows.h> //#else //#include <unistd.h> //#include <signal.h> //#include <zconf.h> //#endif // //#include "System.h" // //PRIVATE(System) // //END ///*************************************************************************************************...
25.75
107
(translation_unit) "//\n// Created by kenhuang on 2019-11-19.\n//\n//#ifdef _WIN32\n//#include <windows.h>\n//#else\n//#include <unistd.h>\n//#include <signal.h>\n//#include <zconf.h>\n//#endif\n//\n//#include "System.h"\n//\n//PRIVATE(System)\n//\n//END\n///*************************************************************...
108
0
{"language": "c", "success": true, "metadata": {"lines": 107, "avg_line_length": 25.75, "nodes": 0, "errors": 0, "source_hash": "01c4e6c81f0a4fa2276a46b0c83c2def1542d4e2495b6539293dff0d0e5db2f6", "categorized_nodes": 0}, "ast": {"root": "translation_unit", "nodes": []}, "node_categories": {"declarations": {"functions":...
2,733
c
#pragma once // Forward declaration class Scene; class Camera; struct Material { Vec3Df ambientColor; Vec3Df diffuseColor; Vec3Df specularColor; Vec3Df absorbtion; float mirror; float refracIndex; }; struct HitInfo { Vec3Df normal; Vec3Df hitPos; float distance; Material material; int id; }; struct Ray { ...
17.32
53
(translation_unit) "#pragma once\n// Forward declaration\nclass Scene;\nclass Camera;\nstruct Material\n{\n Vec3Df ambientColor;\n Vec3Df diffuseColor;\n Vec3Df specularColor;\n Vec3Df absorbtion;\n float mirror;\n float refracIndex;\n};\n\n\nstruct HitInfo {\n Vec3Df normal;\n Vec3Df hitPos;\n float distance;\n Materi...
339
4
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 17.32, "nodes": 237, "errors": 0, "source_hash": "da123c6e94c734d7aac985e2549538cc300b1759c0ab8a8a6a6828261838c000", "categorized_nodes": 162}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
2,734
c
/* * File: LoginServer.h * Author: <NAME> * * Created on 2010_9_6 PM 3:23 */ #ifndef _LOGINSERVER_H_ #define _LOGINSERVER_H_ #include <vector> #include <map> #include "NodeDefines.h" #include "CThreads.h" #include "rpcz.hpp" #include "AutoPointer.h" #include "TCPPacketInterface.h" #include "ControlCentreServi...
31.78
79
(translation_unit) "/* \n * File: LoginServer.h\n * Author: <NAME>\n *\n * Created on 2010_9_6 PM 3:23\n */\n\n#ifndef _LOGINSERVER_H_\n#define _LOGINSERVER_H_\n\n#include <vector>\n#include <map>\n#include "NodeDefines.h"\n#include "CThreads.h"\n#include "rpcz.hpp"\n#include "AutoPointer.h"\n#include "TCPPacketInter...
683
37
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 31.78, "nodes": 406, "errors": 0, "source_hash": "2727c3cfefbfa23228c0a8f5bc7301f0b915c1264c9b0e93fcc0aaa0b8d813f1", "categorized_nodes": 281}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,735
c
//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
31.92
85
(translation_unit) "//===----------------------------------------------------------------------===//\n//\n// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.\n// See https://llvm.org/LICENSE.txt for license information.\n// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception\n//\n//===-...
785
44
{"language": "c", "success": true, "metadata": {"lines": 85, "avg_line_length": 31.92, "nodes": 448, "errors": 0, "source_hash": "4e867a6d33fd25b966fed68d4c109d427c1006f6a4a4db65dafc5538562e5ff2", "categorized_nodes": 300}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,736
c
/* * Copyright 2018-2019 Redis Labs Ltd. and Contributors * * This file is available under the Redis Labs Source Available License Agreement */ #ifndef __OP_SKIP_H #define __OP_SKIP_H #include "op.h" typedef struct { OpBase op; unsigned int rec_to_skip; unsigned int skipped; } OpSkip; OpBase* NewSki...
23.83
18
(translation_unit) "/*\n * Copyright 2018-2019 Redis Labs Ltd. and Contributors\n *\n * This file is available under the Redis Labs Source Available License Agreement\n */\n\n#ifndef __OP_SKIP_H\n#define __OP_SKIP_H\n\n#include "op.h"\n\ntypedef struct {\n OpBase op;\n unsigned int rec_to_skip;\n unsigned int ...
94
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 23.83, "nodes": 70, "errors": 0, "source_hash": "7775c0a42e184ffbcf275617cdc6deded94515ddf58e1eb66125269fba9ed660", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,737
c
#ifndef INCLUDE_FLAMEGPU_RUNTIME_MESSAGING_MESSAGEBRUTEFORCE_H_ #define INCLUDE_FLAMEGPU_RUNTIME_MESSAGING_MESSAGEBRUTEFORCE_H_ #include "flamegpu/runtime/messaging/MessageNone.h" namespace flamegpu { struct ModelData; /** * Brute force messaging functionality * * Every agent accesses all messages * This techni...
31.45
33
(translation_unit) "#ifndef INCLUDE_FLAMEGPU_RUNTIME_MESSAGING_MESSAGEBRUTEFORCE_H_\n#define INCLUDE_FLAMEGPU_RUNTIME_MESSAGING_MESSAGEBRUTEFORCE_H_\n\n#include "flamegpu/runtime/messaging/MessageNone.h"\n\nnamespace flamegpu {\n\nstruct ModelData;\n\n/**\n * Brute force messaging functionality\n *\n * Every agent acce...
92
2
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 31.45, "nodes": 47, "errors": 0, "source_hash": "36062c5b6804ac39922f89b6069a339d1bc2c7300323efa1632fb367687061f5", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,738
c
#include <stdio.h> #include <string.h> #include <ctype.h> #include <sys/types.h> #include <dirent.h> int max(int a, int b) { if (a > b) return a; return b; } unsigned int iscmd(char c) { switch (c) { case '.': case '_': case '-': return 1; default: return isalnum(c); ...
17.67
107
(translation_unit) "#include <stdio.h>\n#include <string.h>\n#include <ctype.h>\n#include <sys/types.h>\n#include <dirent.h>\n\nint max(int a, int b)\n{\n if (a > b) return a;\n return b;\n}\n\nunsigned int iscmd(char c)\n{\n switch (c)\n {\n case '.':\n case '_': \n case '-': return 1;...
760
0
{"language": "c", "success": true, "metadata": {"lines": 107, "avg_line_length": 17.67, "nodes": 493, "errors": 0, "source_hash": "cc126b0005d97b28f2b3eb3c7df3a540f264d448d7b85c8bb3429532cae2b085", "categorized_nodes": 318}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,739
c
#include "tree_sitter_comment/parser.h" #include "tree_sitter_comment/chars.c" #include "tree_sitter_comment/tokens.h" /// Parse the name of the tag. /// /// They can be of the form: /// - TODO: /// - TODO: text /// - TODO(stsewd): /// - TODO(stsewd): text /// - TODO (stsewd): text bool parse_tagname(TSLexer* lexer, ...
28.03
109
(translation_unit) "#include "tree_sitter_comment/parser.h"\n\n#include "tree_sitter_comment/chars.c"\n#include "tree_sitter_comment/tokens.h"\n\n/// Parse the name of the tag.\n///\n/// They can be of the form:\n/// - TODO:\n/// - TODO: text\n/// - TODO(stsewd):\n/// - TODO(stsewd): text\n/// - TODO (stsewd): text\nbo...
881
0
{"language": "c", "success": true, "metadata": {"lines": 109, "avg_line_length": 28.03, "nodes": 483, "errors": 0, "source_hash": "614d67e7b141e5bcf45dde9ca54fb6e59f87fa67eba4f80268f899a973db6c95", "categorized_nodes": 354}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,740
c
#include <stdio.h> #include <stdlib.h> #include <sys/types.h> #ifdef __APPLE__ #include <OpenCL/opencl.h> #include <unistd.h> #else #include <CL/cl.h> #endif #include "err_code.h" #ifndef DEVICE #define DEVICE CL_DEVICE_TYPE_DEFAULT #endif extern int output_device_info(cl_device_id); #define TOL (0.001) #define ...
41.01
110
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <sys/types.h>\n#ifdef __APPLE__\n#include <OpenCL/opencl.h>\n#include <unistd.h>\n#else\n#include <CL/cl.h>\n#endif\n\n#include "err_code.h"\n\n#ifndef DEVICE\n#define DEVICE CL_DEVICE_TYPE_DEFAULT\n#endif\n\nextern int output_device_info(cl_device_i...
1,252
0
{"language": "c", "success": true, "metadata": {"lines": 110, "avg_line_length": 41.01, "nodes": 751, "errors": 0, "source_hash": "03dd9b2845bf1967e9df4fc29f70df536c945dbc74afed470703d4ab9965e0ce", "categorized_nodes": 507}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,741
c
#ifndef __HELPER #define __HELPER #include <emp-tool/emp-tool.h> #include "c2pc_config.h" #include <immintrin.h> #include <boost/align/align.hpp> using std::future; using std::cout; using std::endl; using std::flush; #undef align namespace emp { void send_bool_aligned(NetIO* io, const bool * data, int length) { uns...
28.12
106
(translation_unit) "#ifndef __HELPER\n#define __HELPER\n#include <emp-tool/emp-tool.h>\n#include "c2pc_config.h"\n#include <immintrin.h>\n#include <boost/align/align.hpp>\n\nusing std::future;\nusing std::cout;\nusing std::endl;\nusing std::flush;\n#undef align\n\nnamespace emp {\n\nvoid send_bool_aligned(NetIO* io, co...
1,223
14
{"language": "c", "success": true, "metadata": {"lines": 106, "avg_line_length": 28.12, "nodes": 796, "errors": 0, "source_hash": "789f40ef7ba765fccf58f261de12213a5620762a335b932d17bc9586ec2fbd97", "categorized_nodes": 521}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,742
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import "NICellObject.h" @interface NIDrawRectBlockCellObject : NICellObject { CDUnknownBlockType _block; id _object; } + (id)objec...
35.06
17
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.\n//\n\n#import "NICellObject.h"\n\n@interface NIDrawRectBlockCellObject : NICellObject\n{\n CDUnknownBlockType _block;\...
121
14
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 35.06, "nodes": 70, "errors": 0, "source_hash": "5f485db5b92ddd45251782a1cbf68cc548d3cde23f9de5a4ab3e22622c362d02", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
2,743
c
// Copyright 2021 the V8 project 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 V8_BASELINE_BYTECODE_OFFSET_ITERATOR_H_ #define V8_BASELINE_BYTECODE_OFFSET_ITERATOR_H_ #include "src/base/vlq.h" #include "src/common/globals....
36.87
83
(translation_unit) "// Copyright 2021 the V8 project 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 V8_BASELINE_BYTECODE_OFFSET_ITERATOR_H_\n#define V8_BASELINE_BYTECODE_OFFSET_ITERATOR_H_\n\n#include "src/base/vlq.h"\n#...
554
11
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 36.87, "nodes": 322, "errors": 0, "source_hash": "2e7de503ddc9f6f72f127505dcc323827eab5ca97bf0ccb7e8ca1e9dd50b559a", "categorized_nodes": 227}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,744
c
#ifndef _CSF_WINDOW_INC #define _CSF_WINDOW_INC #define SF_WIN_STYLE_TITLEBAR (-857527493) #define SF_WIN_STYLE_RESIZE ( 142301684) #define SF_WIN_STYLE_CLOSE (-933029960) #define SF_WIN_STYLE_FULLSCREEN (-105629125) #define SF_WIN_STYLE_DEFAULT (-974566413) #endif // _CSF_WINDOW_INC
29.1
10
(translation_unit) "#ifndef _CSF_WINDOW_INC\n#define _CSF_WINDOW_INC\n\n\n#define SF_WIN_STYLE_TITLEBAR (-857527493)\n#define SF_WIN_STYLE_RESIZE ( 142301684)\n#define SF_WIN_STYLE_CLOSE (-933029960)\n#define SF_WIN_STYLE_FULLSCREEN (-105629125)\n#define SF_WIN_STYLE_DEFAULT (-974566413)\n\n\n#endif // _C...
29
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 29.1, "nodes": 27, "errors": 0, "source_hash": "2a9c34b5eede620a41e8f9d7c44791ec64d04596595d21bc56a3dc325d77404a", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
2,745
c
#pragma once #include <Renaissance.h>
18
2
(translation_unit) "#pragma once\n\n#include <Renaissance.h>" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <Renaissance.h>" (#include) "#include" (system_lib_string) "<Renaissance.h>"
7
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 18.0, "nodes": 6, "errors": 0, "source_hash": "7f599a443643185f23613051143553b6d57693b914d46226a2a2498867814b33", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\...
2,746
c
/* // Copyright (c) 2020 Intel Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
40.2
25
(translation_unit) "/*\n// Copyright (c) 2020 Intel Corporation\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless ...
152
9
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 40.2, "nodes": 88, "errors": 0, "source_hash": "ba7dc944f04bffd1368a8d8ae82b45fc53711357ff8ca38d6bc4cf73a7e4ff1e", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
2,747
c
/* * Description: declaration for lowpower APIs */ #ifndef LWIP_HDR_LOWPOWER_H #define LWIP_HDR_LOWPOWER_H #include "lwip/opt.h" #include "lwip/err.h" #if !NO_SYS #include "lwip/sys.h" #endif #if LWIP_LOWPOWER #define LOWPOWER_TIMER_DEBUG 0 #define TIMEOUT_TICK 100 /* 100ms */ #define TIMEOUT_CHECK 30 #if ...
31.02
117
(translation_unit) "/*\n * Description: declaration for lowpower APIs\n */\n#ifndef LWIP_HDR_LOWPOWER_H\n#define LWIP_HDR_LOWPOWER_H\n\n#include "lwip/opt.h"\n#include "lwip/err.h"\n#if !NO_SYS\n#include "lwip/sys.h"\n#endif\n\n#if LWIP_LOWPOWER\n\n#define LOWPOWER_TIMER_DEBUG 0\n#define TIMEOUT_TICK 100 /* 100ms *...
595
0
{"language": "c", "success": true, "metadata": {"lines": 117, "avg_line_length": 31.02, "nodes": 464, "errors": 0, "source_hash": "45252af752145ca888114aec32a9d4da31541f90b12802a0c0daf14f9d315796", "categorized_nodes": 267}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,748
c
#ifndef CUSTOM_STRING_EXCEPTION_H #define CUSTOM_STRING_EXCEPTION_H #include "stringf.h" class string_exception : public std::string, public std::exception { public: template< typename... argv > string_exception( const char* format, argv... args ) { std::string::operator=(stringf(forma...
42.93
14
(translation_unit) "#ifndef CUSTOM_STRING_EXCEPTION_H\n#define CUSTOM_STRING_EXCEPTION_H\n\n#include "stringf.h"\n\nclass string_exception : public std::string, public std::exception {\n public:\n template< typename... argv >\n string_exception( const char* format, argv... args ) {\n std::st...
138
6
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 42.93, "nodes": 71, "errors": 0, "source_hash": "8142fc0477207edc81be647d724afc277e28d0dfcf701bb9b69ad406cc3f36ba", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,749
c
#ifndef SESSION_H #define SESSION_H /* session timeout should be in the range of 30-45 seconds */ #define TR64_SESSION_TIMEOUT 45 #define TR64_MAX_WAIT_EVENT 10 #define TR64_SSID_LEN 16 typedef enum { WAIT_EVENT_RESOURCE_ERROR, WAIT_EVENT_OK } sessionWaitEventStatus; typedef enum { ...
30.25
48
(translation_unit) "#ifndef SESSION_H\n#define SESSION_H\n\n/* session timeout should be in the range of 30-45 seconds */\n#define TR64_SESSION_TIMEOUT 45 \n#define TR64_MAX_WAIT_EVENT 10\n#define TR64_SSID_LEN 16\n\ntypedef enum {\n WAIT_EVENT_RESOURCE_ERROR,\n WAIT_EVENT_OK\n} sessionWaitE...
234
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 30.25, "nodes": 170, "errors": 0, "source_hash": "82ce07a1af00a427e6473f6645cde9da1664e593f7c9109bd7ddb474c59a99cd", "categorized_nodes": 122}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,750
c
// Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required...
36.28
36
(translation_unit) "// Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE...
157
6
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 36.28, "nodes": 87, "errors": 0, "source_hash": "883596dc17554232411f70a8e70f957209c1edc88414b86d34f7460def7f55c5", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
2,751
c
#pragma once #include <stdint.h> #pragma pack(push, 1) typedef struct { int32_t status; int32_t unk_entity_1; int32_t unk2; int32_t unk3; wchar_t* errstring; int32_t unk_entity_4; int32_t unk_5; } InventoryActionResult; #pragma pack(pop)
16.5
14
(translation_unit) "#pragma once\n\n#include <stdint.h>\n\n#pragma pack(push, 1)\n\ntypedef struct\n{\n int32_t status;\n int32_t unk_entity_1;\n int32_t unk2;\n int32_t unk3;\n wchar_t* errstring;\n int32_t unk_entity_4;\n int32_t unk_5;\n} InventoryActionResult;\n#pragma pack(pop)" (preproc_call) "#pragma once\n" ...
52
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 16.5, "nodes": 40, "errors": 0, "source_hash": "d51f3f5cd8e43783ee767ab901c117e35e1835a2e372fd6600d75ba8cad8b69d", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
2,752
c
/* Public header for libminorminer_clib */ /* Generated by gcc -E -P graph_clib.h local_interaction_clib.h find_embedding_clib.h > minorminer_clib.h */ typedef struct input_graph input_graph; input_graph* make_graph(); void delete_graph(input_graph*); void push_back(input_graph*,int,int); void clear(input_gra...
32.88
64
(translation_unit) "/* Public header for libminorminer_clib */\n\n/* Generated by gcc -E -P graph_clib.h local_interaction_clib.h find_embedding_clib.h > minorminer_clib.h */\n\ntypedef struct input_graph input_graph;\n input_graph* make_graph();\n void delete_graph(input_graph*);\n void push_back(input_graph*,int,i...
644
0
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 32.88, "nodes": 475, "errors": 0, "source_hash": "b27baebf733543aa7817582e900c95ecfcc285904fe9f9537648a19814002bb3", "categorized_nodes": 271}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "type...
2,753
c
/* * vp8parser.h - VP8 parser * * Copyright (C) 2013-2014 Intel Corporation * Author: <NAME> <<EMAIL>> * Author: <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Found...
33.84
310
(translation_unit) "/*\n * vp8parser.h - VP8 parser\n *\n * Copyright (C) 2013-2014 Intel Corporation\n * Author: <NAME> <<EMAIL>>\n * Author: <NAME> <<EMAIL>>\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Library General Public\n * License as publish...
520
0
{"language": "c", "success": true, "metadata": {"lines": 310, "avg_line_length": 33.84, "nodes": 347, "errors": 0, "source_hash": "9f01044ef5adcde2bd6d74a8d4656c66be4f1d18a8e6a738eed7b90d1287f111", "categorized_nodes": 256}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,754
c
//Tencent is pleased to support the open source community by making FeatherCNN available. //Copyright (C) 2018 THL A29 Limited, a Tencent company. All rights reserved. //Licensed under the BSD 3-Clause License (the "License"); you may not use this file except //in compliance with the License. You may obtain a copy of...
39.54
26
(translation_unit) "//Tencent is pleased to support the open source community by making FeatherCNN available.\n\n//Copyright (C) 2018 THL A29 Limited, a Tencent company. All rights reserved.\n\n//Licensed under the BSD 3-Clause License (the "License"); you may not use this file except\n//in compliance with the License....
132
3
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 39.54, "nodes": 79, "errors": 0, "source_hash": "7b11ec022e673d124437aad45795ce100aae22debe7c11c3599981be9fca3146", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
2,755
c
/* ======================== Copyright (c) 2014 Vinyl Games Studio NetworkNode.h Created by: <NAME> Created on: 5/23/2014 11:51:58 AM ======================== */ #ifndef __NETWORKNODE_H__ #define __NETWORKNODE_H__ #include "Node.h" #include <RakString.h> #include <list> namespace merrymen { class Character...
27.66
104
(translation_unit) "/*\n========================\n\nCopyright (c) 2014 Vinyl Games Studio\n\n NetworkNode.h\n\n Created by: <NAME>\n Created on: 5/23/2014 11:51:58 AM\n\n========================\n*/\n#ifndef __NETWORKNODE_H__\n#define __NETWORKNODE_H__\n\n#include "Node.h"\n\n#include <RakString.h>\n\n#include <list>...
625
27
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 27.66, "nodes": 350, "errors": 0, "source_hash": "f8fbe4b34d47b115a65c5fff44bfac7d97b8bb1e2bf4bbf2b92654a0ead5b2b9", "categorized_nodes": 231}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,756
c
#include "mgos.h" #include "mongoose-touch.h" #ifdef MGOS_PLATFORM_ESP32 #include <esp_wifi.h> #endif static long map(long x, long in_min, long in_max, long out_min, long out_max) { return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min; } // Returns a value between 0 and 100% static uint8_t widget...
27.75
61
(translation_unit) "#include "mgos.h"\n#include "mongoose-touch.h"\n#ifdef MGOS_PLATFORM_ESP32\n#include <esp_wifi.h>\n#endif\n\nstatic long map(long x, long in_min, long in_max, long out_min, long out_max)\n{\n return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;\n}\n\n// Returns a value between 0...
518
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 27.75, "nodes": 323, "errors": 0, "source_hash": "126e49aa718210c93b493ee9bacaab90d2cb72710a71f45967723b30219fd236", "categorized_nodes": 253}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,757
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @class NSView, TKTonePickerView; @protocol TKTonePickerViewDelegate <NSObject> @optional - (NSView *)viewForSizingTonePickerView:(TKTonePickerView *)arg1; - (NSVie...
31.42
12
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n@class NSView, TKTonePickerView;\n\n@protocol TKTonePickerViewDelegate <NSObject>\n\n@optional\n- (NSView *)viewForSizingTonePickerView:(...
69
10
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 31.42, "nodes": 44, "errors": 0, "source_hash": "e9daebf1efb750957808c2bca3f6d374da1c4866154f252ef1a3cd0f8dab1598", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
2,758
c
#import <Foundation/Foundation.h> @interface xNetworkAsyncOperation : NSOperation /** 异步调用的代码,子类重写 */ - (void)execute; /** 给子类调用的完成当前operation */ - (void)finishOperation; /** 暂停任务 */ - (void)pause; /** 继续任务 */ - (void)resume; @end
11.63
19
(translation_unit) "#import <Foundation/Foundation.h>\n\n@interface xNetworkAsyncOperation : NSOperation\n\n/**\n 异步调用的代码,子类重写\n */\n- (void)execute;\n\n/**\n 给子类调用的完成当前operation\n */\n- (void)finishOperation;\n\n/**\n 暂停任务\n */\n- (void)pause;\n\n/**\n 继续任务\n */\n- (void)resume;\n@end\n" (preproc_call) "#import <Fo...
59
4
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 11.63, "nodes": 35, "errors": 0, "source_hash": "2aff7e7a4c114449390306b5a45b823a10eb8464a19f6b61381872cab6a66b27", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
2,759
c
#ifndef LIB_DAMN_GNODE_H_ #define LIB_DAMN_GNODE_H_ #include <vector> #include <set> #include <queue> // queue class NeighborNode { public: size_t id; double weight; double accum_weight; NeighborNode(size_t id,double weight,double accum_weight): id(id), weight(weight), accum...
20.83
72
(translation_unit) "#ifndef LIB_DAMN_GNODE_H_\n#define LIB_DAMN_GNODE_H_\n\n#include <vector>\n#include <set>\n#include <queue> // queue\n\n\n\nclass NeighborNode {\npublic:\n size_t id;\n double weight;\n double accum_weight;\n NeighborNode(size_t id,double weight,double accum_weight):\n id(id),\n ...
414
11
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 20.83, "nodes": 225, "errors": 0, "source_hash": "bfc322ff297080bce2f3574f32583333a6e5bca78032e76fcc622bd4c16943dd", "categorized_nodes": 154}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,760
c
// // This class is copied from G4UnitsTable //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... #ifndef CocoaUnitsTable_HH #define CocoaUnitsTable_HH #include "Alignment/CocoaUtilities/interface/CocoaGlobals.h" #include <vector> #include "CLHEP/Vector/ThreeVector.h" class CocoaUnitsCatego...
42.67
93
(translation_unit) "//\n// This class is copied from G4UnitsTable\n//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....\n\n#ifndef CocoaUnitsTable_HH\n#define CocoaUnitsTable_HH\n\n#include "Alignment/CocoaUtilities/interface/CocoaGlobals.h"\n#include <vector>\n#include "CLHEP/Vector/ThreeVect...
774
43
{"language": "c", "success": true, "metadata": {"lines": 93, "avg_line_length": 42.67, "nodes": 381, "errors": 0, "source_hash": "793ad08d082cd5f28258c62f151a90290c77dc674502e839d7f1ae2a996f1b84", "categorized_nodes": 274}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,761
c
/*--------------------------------------------------------------------------- * Project : TR069 Generic Agent * * Copyright (C) 2014 Orange * * This software is distributed under the terms and conditions of the 'Apache-2.0' * license which can be found in the file 'LICENSE.txt' in this package distribution *...
30.72
47
(translation_unit) "/*---------------------------------------------------------------------------\n * Project : TR069 Generic Agent\n *\n * Copyright (C) 2014 Orange\n *\n * This software is distributed under the terms and conditions of the 'Apache-2.0'\n * license which can be found in the file 'LICENSE.txt' in th...
174
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 30.72, "nodes": 127, "errors": 0, "source_hash": "d0e747562eafb250bc5058af96b597fb3423a47f3c3fb808a1d32ad21b375988", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
2,762
c
#ifndef OBJECTS #define OBJECTS class MainObject { int x, y; bool LBLOCK, RBLOCK, UBLOCK, DBLOCK; public: MainObject(int _x, int _y) : x(_x), y(_y) {}; //Constructor int getX() { return x; }; int getY() { return y; }; void setLBLOCK(bool state) { this->LBLOCK = state; } void setRBLOCK(bool state)...
23.72
81
(translation_unit) "#ifndef OBJECTS\n #define OBJECTS\n\n class MainObject {\n int x, y;\n bool LBLOCK, RBLOCK, UBLOCK, DBLOCK;\n\n public:\n MainObject(int _x, int _y) : x(_x), y(_y) {};\n //Constructor\n\n int getX() { return x; };\n int getY() { return y; };\n\n void setLBLOCK(bool state) { this->LBLOCK = sta...
791
12
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 23.72, "nodes": 460, "errors": 0, "source_hash": "dbe3cf07ae9401c0f422fafe2f14e05db2415a74ea6768c81bf65a9869942559", "categorized_nodes": 317}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,763
c
#ifdef free #undef free #define sstmac_must_return_free #endif #ifdef memset #undef memset #define sstmac_must_return_memset #endif #ifdef gethostname #undef gethostname #define sstmac_must_return_gethostname #endif
17
12
(translation_unit) "#ifdef free\n#undef free\n#define sstmac_must_return_free\n#endif\n\n#ifdef memset\n#undef memset\n#define sstmac_must_return_memset\n#endif\n\n#ifdef gethostname\n#undef gethostname\n#define sstmac_must_return_gethostname\n#endif\n\n" (preproc_ifdef) "#ifdef free\n#undef free\n#define sstmac_must...
31
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 17.0, "nodes": 30, "errors": 0, "source_hash": "8f27210bf5aca5ecadbc87cbb21a7a3bdb4963ed5c2ad7c016d109867abb48eb", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef fr...
2,764
c
/****************************************************************************** * @file main.c * @version V1.00 * @brief Show how to print and get character with IDE console window. * * * SPDX-License-Identifier: Apache-2.0 * @copyright (C) 2016 Nuvoton Technology Corp. All rights reserved. *************...
32.61
64
(translation_unit) "/******************************************************************************\n * @file main.c\n * @version V1.00\n * @brief Show how to print and get character with IDE console window.\n *\n *\n * SPDX-License-Identifier: Apache-2.0\n * @copyright (C) 2016 Nuvoton Technology Corp. All rig...
218
0
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 32.61, "nodes": 112, "errors": 0, "source_hash": "47a84627c3400bec6589251952d4041d5a745e4ce87e21c894d2cfe02ebc3082", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
2,765
c
// <! // Created by <NAME> on 2018/05/25 // Copyright 2013-2018 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // !> // <@if not PROCEDURAL_SHADER_CONSTANTS_H@> // <@def PROCEDURAL_SHADER_CONSTANTS...
26.94
47
(translation_unit) "// <!\n// Created by <NAME> on 2018/05/25\n// Copyright 2013-2018 High Fidelity, Inc.\n//\n// Distributed under the Apache License, Version 2.0.\n// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html\n// !>\n\n// <@if not PROCEDURAL_SHADER_CONSTANTS_H@>\n// <@de...
134
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 26.94, "nodes": 82, "errors": 0, "source_hash": "3ed27e2ecadb31dd1bcecd30dbb936c3aff1089d35745f617b06c12c634550bf", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,766
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/AssistantUI.framework/AssistantUI */ @interface AFUISiriPPTManager : NSObject { NSString * _currentTestName; bool _runningPPT; NSDictionary * _testOptions; } @property (nonatomic, readonly, copy) NSString *currentTestName; @prope...
33.33
21
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/AssistantUI.framework/AssistantUI\n */\n\n@interface AFUISiriPPTManager : NSObject {\n NSString * _currentTestName;\n bool _runningPPT;\n NSDictionary * _testOptions;\n}\n\n@property (nonatomic, readonly, copy) NSS...
218
17
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 33.33, "nodes": 133, "errors": 0, "source_hash": "8f402bb93f4c55b617cf1f1d792d0e450a6fb69570664c37925e755379710953", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": n...
2,767
c
#ifndef COUNTER_H #define COUNTER_H #include <cstddef> #include <functional> #include <string> #include <robin_hood.h> class CountObj; struct Counter { // Obj for only swaps & equals. Used for optimizing. // Can't use static counters here because I want to do it in parallel. class Obj { public: ...
24.42
74
(translation_unit) "#ifndef COUNTER_H\n#define COUNTER_H\n\n#include <cstddef>\n#include <functional>\n#include <string>\n\n#include <robin_hood.h>\n\nclass CountObj;\n\nstruct Counter {\n // Obj for only swaps & equals. Used for optimizing.\n // Can't use static counters here because I want to do it in parallel....
596
29
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 24.42, "nodes": 317, "errors": 0, "source_hash": "b0feb8bfb11a80690df903e8af0f71940cc19d1d2faadb2b56f7e5b762a02070", "categorized_nodes": 213}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,768
c
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/ecr-public/ECRPublic_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <aws/core/utils/DateTime.h> #include <aws/ecr-public/model/ReferencedImageDetail.h>...
36.43
131
(translation_unit) "*\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0.\n */\n\n#pragma once\n#include <aws/ecr-public/ECRPublic_EXPORTS.h>\n#include <aws/core/utils/memory/stl/AWSString.h>\n#include <aws/core/utils/DateTime.h>\n#include <aws/ecr-public/mode...
892
54
{"language": "c", "success": true, "metadata": {"lines": 131, "avg_line_length": 36.43, "nodes": 548, "errors": 0, "source_hash": "542b3b8b87dd13bcb4ebab902fce1df29b8715a883a0ae99ca9411e6ddfbbb14", "categorized_nodes": 352}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma ...
2,769
c
#include "args.h" bool args__parse(Modes* const modes, int* argc, char** const argv) { // Notice: argv[0] is the program name. const int fname_arg_sz = 1; const int files_max = 4; const int options_max = 8; const int argc_max = fname_arg_sz + files_max + options_max; const int orig_...
29.25
56
(translation_unit) "#include "args.h"\n\nbool args__parse(Modes* const modes, int* argc, char** const argv)\n{\n // Notice: argv[0] is the program name.\n const int fname_arg_sz = 1;\n const int files_max = 4;\n const int options_max = 8;\n const int argc_max = fname_arg_sz + files_max + opti...
385
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 29.25, "nodes": 226, "errors": 0, "source_hash": "d0d0cb3aa1c8b21b2cbbebffcbe5fc5ebfe056cdfa735cbe307bbcad45c8e52a", "categorized_nodes": 145}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,770
c
/* * Copyright 2010 Tilera Corporation. 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 * as published by the Free Software Foundation, version 2. * * This program is distributed in the hope that it will ...
35.57
21
(translation_unit) "/*\n * Copyright 2010 Tilera Corporation. All Rights Reserved.\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * as published by the Free Software Foundation, version 2.\n *\n * This program is distribute...
56
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 35.57, "nodes": 36, "errors": 0, "source_hash": "c236fdaa438797c349bb280eb38d81e1f13897ffaabcf3803ec2d9dfe933ef6b", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
2,771
c
// // TDPerformanceDataModel.h // TuanDaiV4 // // Created by guoxiaoliang on 2018/6/28. // Copyright © 2018 Dee. All rights reserved. // #import <Foundation/Foundation.h> @interface TDPerformanceDataModel : NSObject //类别,1表示cup,2表示FPS,3表示内存大小,4表示页面停留时间 @property(nonatomic,strong)NSNumber *type; @property(nonatomi...
25.47
15
(translation_unit) "//\n// TDPerformanceDataModel.h\n// TuanDaiV4\n//\n// Created by guoxiaoliang on 2018/6/28.\n// Copyright © 2018 Dee. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface TDPerformanceDataModel : NSObject\n//类别,1表示cup,2表示FPS,3表示内存大小,4表示页面停留时间\n@property(nonatomic,strong)NS...
73
14
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 25.47, "nodes": 49, "errors": 0, "source_hash": "8ef099d39c0df89d4f5412481954ee1191107b91012a2856749db4d79d10c619", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
2,772
c
#pragma once #pragma once #include <iostream> #include <vector> #include <memory> #include <algorithm> #include <bitset> #include <array> /** * @author Let's Play Games */ class Component; class Entity; class Manager; class GameState; using ComponentID = std::size_t; using Group = std::size_t; inline ComponentID ...
22.48
144
(translation_unit) "#pragma once\n#pragma once\n\n#include <iostream>\n#include <vector>\n#include <memory>\n#include <algorithm>\n#include <bitset>\n#include <array>\n\n/**\n * @author Let's Play Games\n*/\n\nclass Component;\nclass Entity;\nclass Manager;\nclass GameState;\n\nusing ComponentID = std::size_t;\nusing G...
1,316
77
{"language": "c", "success": true, "metadata": {"lines": 144, "avg_line_length": 22.48, "nodes": 793, "errors": 0, "source_hash": "acf757246a88b03e28be2c3ea951cc696fb12bc1eca9df0870fbaf5ac6e77f35", "categorized_nodes": 525}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
2,773
c
/* ** getfloat.c for my_getfloat in /home/descou_c/CPE/CPE_2016_n4s ** ** Made by <NAME> ** Login <<EMAIL>> ** ** Started on Wed May 3 11:37:55 2017 <NAME> ** Last update Wed May 3 11:37:56 2017 <NAME> */ #include "inc/n4s.h" int get_num(char *str, int i) { int is_neg; int result; result = 0; ...
18.32
60
(translation_unit) "/*\n** getfloat.c for my_getfloat in /home/descou_c/CPE/CPE_2016_n4s\n** \n** Made by <NAME>\n** Login <<EMAIL>>\n** \n** Started on Wed May 3 11:37:55 2017 <NAME>\n** Last update Wed May 3 11:37:56 2017 <NAME>\n*/\n\n#include "inc/n4s.h"\n\nint get_num(char *str, int i)\n{\n int is_neg;...
415
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 18.32, "nodes": 270, "errors": 0, "source_hash": "728fd9fcd37fcd1538c1ffc73e2f8637621d50e1458b6cfa416fbbb7d5d4f0ee", "categorized_nodes": 193}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,774
c
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <signal.h> #include "smsh.h" #define DFL_PROMPT ">" int main(){ char *cmdline,*prompt,**arglist; int result; void setup(); prompt = DFL_PROMPT; setup(); while((cmdline = next_cmd(prompt,stdin))!= NULL){ if((arglist = spl...
21.04
50
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <unistd.h>\n#include <signal.h>\n#include "smsh.h"\n#define DFL_PROMPT ">"\nint main(){\n char *cmdline,*prompt,**arglist;\n int result;\n void setup();\n prompt = DFL_PROMPT;\n setup();\n while((cmdline = next_cmd(prompt,stdin))!= ...
419
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 21.04, "nodes": 239, "errors": 0, "source_hash": "ab3851bbaafdbb5d014d3e0705bd64d17eec97e54806ef65b4d956e546322de9", "categorized_nodes": 162}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,775
c
/* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class com_almasb_nativewindow_NativeWindow */ #ifndef _Included_com_almasb_nativewindow_NativeWindow #define _Included_com_almasb_nativewindow_NativeWindow #ifdef __cplusplus extern "C" { #endif /* * Class: com_almasb_nativewindo...
28.04
26
(translation_unit) "/* DO NOT EDIT THIS FILE - it is machine generated */\n#include <jni.h>\n/* Header for class com_almasb_nativewindow_NativeWindow */\n\n#ifndef _Included_com_almasb_nativewindow_NativeWindow\n#define _Included_com_almasb_nativewindow_NativeWindow\n#ifdef __cplusplus\nextern "C" {\n#endif\n/*\n * Cla...
96
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 28.04, "nodes": 67, "errors": 0, "source_hash": "a7560612d45f43e5db578dd801a36668d530dba5e8a7cb63cdf2303a05404f0c", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
2,776
c
#pragma once #include "Hq/NonCopyable.h" #include "Ecs/ISystem.h" namespace atlas { class RenderSystem : public hq::NonCopyable, public ISystem { public: RenderSystem(); ~RenderSystem(); void render(); // ISystem interface public: void runSystem(entt::registry &registry, float dt) override; }; ...
20
16
(translation_unit) "#pragma once\n\n#include "Hq/NonCopyable.h"\n#include "Ecs/ISystem.h"\n\nnamespace atlas\n{\n\nclass RenderSystem : public hq::NonCopyable, public ISystem\n{\npublic:\n RenderSystem();\n ~RenderSystem();\n\n void render();\n\n // ISystem interface\npublic:\n void runSystem(entt::regis...
94
4
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 20.0, "nodes": 47, "errors": 0, "source_hash": "852361d247815536c9947f78b862b0dcc3cfc19a19f415eab27599efa87e634f", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
2,777
c
#ifndef DSRADVANCED_H #define DSRADVANCED_H #include "mainwindow.h" #include <QDialog> namespace Ui { class DSRadvanced; } class DSRadvanced : public QDialog { Q_OBJECT public: explicit DSRadvanced(GUIvals &guiVals, QWidget *parent = nullptr); ~DSRadvanced(); private slots: void on_cancelButton_cl...
19.05
22
(translation_unit) "#ifndef DSRADVANCED_H\n#define DSRADVANCED_H\n\n#include "mainwindow.h"\n#include <QDialog>\n\n\nnamespace Ui {\nclass DSRadvanced;\n}\n\nclass DSRadvanced : public QDialog\n{\n Q_OBJECT\n\npublic:\n explicit DSRadvanced(GUIvals &guiVals, QWidget *parent = nullptr);\n ~DSRadvanced();\n\npri...
118
6
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 19.05, "nodes": 71, "errors": 0, "source_hash": "6cb3dc4b8fc8ea28a1bef26bcf6a37b7896ac6514261a854446e34daa1d4999f", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,778
c
// // Copyright (c) SRG SSR. All rights reserved. // // License information is available from the LICENSE file. // @import Foundation; /** * Protocol which can be implemented by classes that need to be recursively describable. */ @protocol SRGDescribable <NSObject> /** * Return the description for display at ...
26.6
15
(translation_unit) "//\n// Copyright (c) SRG SSR. All rights reserved.\n//\n// License information is available from the LICENSE file.\n//\n\n@import Foundation;\n\n/**\n * Protocol which can be implemented by classes that need to be recursively describable.\n */\n@protocol SRGDescribable <NSObject>\n\n/**\n * Retu...
44
7
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 26.6, "nodes": 24, "errors": 0, "source_hash": "c4900e8d96fdc98968e21f880d064327b8880ee83c2f9117ae9bf33f4a7d1192", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nul...
2,779
c
/* * * Copyright (c) 2013-2017 <NAME>, Inc. * All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2....
36.63
283
(translation_unit) "/*\n *\n * Copyright (c) 2013-2017 <NAME>, Inc.\n * All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.a...
1,165
40
{"language": "c", "success": true, "metadata": {"lines": 283, "avg_line_length": 36.63, "nodes": 724, "errors": 0, "source_hash": "ae5af1ae17b2df051242f6cf632e68b73d57cbaeb6d79bf78cfb066267d9f9c6", "categorized_nodes": 456}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef _WEAV...
2,780
c
/* Copyright (c) 2009-2017 <NAME> and cJSON contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify...
32.9
203
(translation_unit) "/*\n Copyright (c) 2009-2017 <NAME> and cJSON contributors\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the "Software"), to deal\n in the Software without restriction, including without limitation the righ...
1,590
0
{"language": "c", "success": true, "metadata": {"lines": 203, "avg_line_length": 32.9, "nodes": 901, "errors": 0, "source_hash": "00108b021b443a2c23d44cf9d279637a47675ac8a3b86160c351a1a24fa50fa3", "categorized_nodes": 499}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,781
c
#include <stdlib.h> #include <stdio.h> #include <stdint.h> #include <assert.h> #include <string.h> #include <sys/stat.h> #include <errno.h> #include <limits.h> #ifdef _WIN32 #include <windows.h> #else #include <unistd.h> #include <dirent.h> #endif #include "valecutils/RemoveFileExtern.h" #include "valecutils/RemoveD...
26.98
163
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n#include <stdint.h>\n#include <assert.h>\n#include <string.h>\n#include <sys/stat.h>\n#include <errno.h>\n#include <limits.h>\n\n#ifdef _WIN32\n#include <windows.h>\n#else\n#include <unistd.h>\n#include <dirent.h>\n#endif\n\n#include "valecutils/RemoveFileExt...
889
0
{"language": "c", "success": true, "metadata": {"lines": 163, "avg_line_length": 26.98, "nodes": 505, "errors": 0, "source_hash": "3e2cb06c2f52a1dd6e0a51d035b3a41eb42c50ae8de4b20929ee6e59934d5bf8", "categorized_nodes": 372}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,782
c
/* * GDevelop Core * Copyright 2008-2016 <NAME> (<EMAIL>). All rights * reserved. This project is released under the MIT License. */ #ifndef GDCORE_ABSTRACTFILESYSTEM #define GDCORE_ABSTRACTFILESYSTEM #include <vector> #include "GDCore/String.h" #undef CopyFile // Remove a Windows macro namespace gd { /** * \...
34.65
157
(translation_unit) "/*\n * GDevelop Core\n * Copyright 2008-2016 <NAME> (<EMAIL>). All rights\n * reserved. This project is released under the MIT License.\n */\n\n#ifndef GDCORE_ABSTRACTFILESYSTEM\n#define GDCORE_ABSTRACTFILESYSTEM\n#include <vector>\n#include "GDCore/String.h"\n\n#undef CopyFile // Remove a Windows ...
996
79
{"language": "c", "success": true, "metadata": {"lines": 157, "avg_line_length": 34.65, "nodes": 568, "errors": 0, "source_hash": "48d3069b58b7f98d556e6538c18e4ab16d366fe724abaf6f0dcc7c89a9ad7ddb", "categorized_nodes": 399}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,783
c
// // main.c // Base 32 // // Created by MacBook on 12/05/17. // Copyright © 2017 <NAME>. All rights reserved. // typedef unsigned long long int natural; #include <stdio.h> #include <string.h> char returnChar (unsigned long long int a){ if(a>=10) return (char) 55 +a; else return (char) 48+a;...
18.12
48
(translation_unit) "//\n// main.c\n// Base 32\n//\n// Created by MacBook on 12/05/17.\n// Copyright © 2017 <NAME>. All rights reserved.\n//\ntypedef unsigned long long int natural;\n#include <stdio.h>\n#include <string.h>\nchar returnChar (unsigned long long int a){\n if(a>=10)\n return (char) 55 +a;\n ...
329
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 18.12, "nodes": 184, "errors": 0, "source_hash": "e0c934a203c8de64133499da49d48e56506ede04d23568bba4a3dca89164973b", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "yped...
2,784
c
#ifndef SORTED_LIST #define SORTED_LIST /// sorts by m_nStart, make sure your node has this member. /// also, your node type should have m_poNext, and m_poPrev template <typename T> class SortedList { public: SortedList() { m_oEntries.m_poNext = &m_oEntries; m_oEntries.m_poPrev = &m_oEntries; m...
26.86
80
(translation_unit) "#ifndef SORTED_LIST\n#define SORTED_LIST\n\n/// sorts by m_nStart, make sure your node has this member.\n/// also, your node type should have m_poNext, and m_poPrev\ntemplate <typename T>\nclass SortedList\n{\npublic:\n SortedList()\n {\n m_oEntries.m_poNext = &m_oEntries;\n m_oEntries...
459
2
{"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 26.86, "nodes": 278, "errors": 0, "source_hash": "b5cc276d325982221eedcdf12fc98e15a16e361a47a3a35dabc4c8cb92038d13", "categorized_nodes": 198}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,785
c
#include <stdlib.h> // malloc() #include <stdbool.h> #include "queue.h" // q_node, Q #include "die.h" // die() void q_enq(Queue* Q, int val) { // Exit gracefully on error if (Q == NULL) die("q_enq: Q is NULL"); if ((Q->head == NULL) != (Q->tail == NULL)) die("q_deq: Q's emptiness is ambi...
28.4
55
(translation_unit) "#include <stdlib.h> // malloc()\n#include <stdbool.h>\n\n#include "queue.h" // q_node, Q\n#include "die.h" // die()\n\nvoid q_enq(Queue* Q, int val)\n{\n // Exit gracefully on error\n if (Q == NULL)\n die("q_enq: Q is NULL");\n if ((Q->head == NULL) != (Q->tail == NULL))\n d...
504
0
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 28.4, "nodes": 309, "errors": 0, "source_hash": "e906f8f04409a52ff908dce3b6e8c6b3de6bd5093324e51466b2ee3a4f5c74e5", "categorized_nodes": 217}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
2,786
c
// Copyright (c) 2021 - <NAME> void websocketsend(int, char *); void websockreport(char *); void websockotmessage(char, unsigned); void websetup(); void webevent();
26.5
6
(translation_unit) "// Copyright (c) 2021 - <NAME>\n\nvoid websocketsend(int, char *);\nvoid websockreport(char *);\nvoid websockotmessage(char, unsigned);\n\nvoid websetup();\nvoid webevent();\n" (comment) "// Copyright (c) 2021 - <NAME>" (declaration) "void websocketsend(int, char *);" (primitive_type) "void"...
59
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 26.5, "nodes": 40, "errors": 0, "source_hash": "9f20c3e87f824440f40349cfedd4001c9dfe00f8fde7f20b69429dcd5915bbf6", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "void websock...
2,787
c
#ifndef SUDOKU_UTIL_GLOBAL_H_ #define SUDOKU_UTIL_GLOBAL_H_ #include <cstdio> #include <cstdlib> #include <cstring> #include <cmath> #include <vector> #include <string> #include <list> #include <map> #include <cassert> #include <algorithm> #include <numeric> #include <cfloat> #include <cstdint> #include <stdint.h> #i...
21.56
61
(translation_unit) "#ifndef SUDOKU_UTIL_GLOBAL_H_\n#define SUDOKU_UTIL_GLOBAL_H_\n\n\n#include <cstdio>\n#include <cstdlib>\n#include <cstring>\n#include <cmath>\n#include <vector>\n#include <string>\n#include <list>\n#include <map>\n#include <cassert>\n#include <algorithm>\n#include <numeric>\n#include <cfloat>\n#incl...
231
2
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 21.56, "nodes": 199, "errors": 0, "source_hash": "628fe40283a6b4052a8fe20a2dc9c8d2a7fa71d79114de26775039a2d3a7de11", "categorized_nodes": 124}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,788
c
/* * Copyright (C) 2015 University of Oregon * * You may distribute under the terms of either the GNU General Public * License or the Apache License, as specified in the LICENSE file. * * For more information, see the LICENSE file. */ /*-*- Mode: C++ -*-*/ #ifndef _POINT_H #define _POINT_H /*******************...
32.78
68
(translation_unit) "/*\n * Copyright (C) 2015 University of Oregon\n *\n * You may distribute under the terms of either the GNU General Public\n * License or the Apache License, as specified in the LICENSE file.\n *\n * For more information, see the LICENSE file.\n */\n/*-*- Mode: C++ -*-*/\n\n#ifndef _POINT_H\n#defin...
460
15
{"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 32.78, "nodes": 294, "errors": 0, "source_hash": "270c9a1eaad0f715d5a6b8bea2ca7cac5a2ee4c4b868c5de70797a0588bdc34c", "categorized_nodes": 197}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,789
c
#pragma once #include "RenderCoreDefine.h" RENDER_CORE_BEGIN namespace GLResource { unsigned int CreateTexture(); } RENDER_CORE_END
15.5
8
(translation_unit) "#pragma once\n\n#include "RenderCoreDefine.h"\n\nRENDER_CORE_BEGIN\n\nnamespace GLResource\n{\nunsigned int CreateTexture();\n}\n\nRENDER_CORE_END\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "RenderCoreDefine.h"\n" ...
31
1
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 15.5, "nodes": 19, "errors": 0, "source_hash": "ce1a69b218369606f6595774022684c19ba0c66170859d1835d0cf8631b2d5f8", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
2,790
c
#pragma once #include <vector> #include "point.h" #include "stdafx.h" class Part { typedef std::vector<std::shared_ptr<Point>> Container; typedef Container::const_iterator ConstIterator; public: int start_index; int end_index; int length; Color color; Container points; Part(ConstIterator ...
22.5
24
(translation_unit) "#pragma once\n#include <vector>\n#include "point.h"\n#include "stdafx.h"\n\nclass Part\n{\n typedef std::vector<std::shared_ptr<Point>> Container;\n typedef Container::const_iterator ConstIterator;\npublic:\n int start_index;\n int end_index;\n int length;\n Color color;\n Contain...
174
11
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 22.5, "nodes": 111, "errors": 0, "source_hash": "67ad5ff4665f6d8215e1c9efc97e2df4e2adf579c255d00affe0cdd16b9508da", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
2,791
c
// // OCMovieBandeAnnonceSliderElement.h // ociney // // Created by <NAME> on 02/01/2015. // Copyright (c) 2015 bdc. All rights reserved. // #import <UIKit/UIKit.h> #import "Media.h" #import "OCMovieDelegates.h" @interface OCMovieBandeAnnonceSliderElement : UIView @property (strong,nonatomic) UIView * warfog; @p...
34.81
21
(translation_unit) "//\n// OCMovieBandeAnnonceSliderElement.h\n// ociney\n//\n// Created by <NAME> on 02/01/2015.\n// Copyright (c) 2015 bdc. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "Media.h"\n#import "OCMovieDelegates.h"\n\n@interface OCMovieBandeAnnonceSliderElement : UIView\n\n@property (str...
195
38
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 34.81, "nodes": 149, "errors": 0, "source_hash": "6125cb1901b3c9f30850b2be9de098360cd93ff2bbfb8324d29cd8609c76f19e", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
2,792
c
////////////////////////////////////////////////////////////////////////////////////// // This file is distributed under the University of Illinois/NCSA Open Source License. // See LICENSE file in top directory for details. // // Copyright (c) 2016 <NAME> and QMCPACK developers. // // File developed by: <NAME>, <EMAIL>...
33.07
67
(translation_unit) "//////////////////////////////////////////////////////////////////////////////////////\n// This file is distributed under the University of Illinois/NCSA Open Source License.\n// See LICENSE file in top directory for details.\n//\n// Copyright (c) 2016 <NAME> and QMCPACK developers.\n//\n// File dev...
317
10
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 33.07, "nodes": 173, "errors": 0, "source_hash": "95744f69eea23257d173421cb005e5a86466008ae2671ca49c3bd28027d8c290", "categorized_nodes": 129}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,793
c
#pragma once #include <JimmyGodEngine/Inc/JimmyGodEngine.h> namespace JimmyCom { class Environment { public: Environment(std::string name, bool destructible); void Initialize(JimmyGod::GameWorld* gameWorld, std::filesystem::path& path); virtual void Terminate(); virtual void Update(float deltaTime); virt...
30.56
34
(translation_unit) "#pragma once\n#include <JimmyGodEngine/Inc/JimmyGodEngine.h>\nnamespace JimmyCom\n{\n class Environment\n {\n public:\n Environment(std::string name, bool destructible);\n\n void Initialize(JimmyGod::GameWorld* gameWorld, std::filesystem::path& path);\n\n virtual void Terminate();\n virtual void...
327
26
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 30.56, "nodes": 208, "errors": 0, "source_hash": "4b3dc2f6c9654bcbc9e9e4725438a9ccd9e3d8d1f2dd1c21ad916e8f0c745b64", "categorized_nodes": 139}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
2,794
c
#pragma once #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif // !WIN32_LEAN_AND_MEAN #include <windows.h> #define GetAValue(rgb) (LOBYTE((rgb)>>24)) #define RGBA(r,g,b,a) (RGB(r,g,b)|(a<<24)) #define CR_INVALID 0x00FFFFFF //以ARGB格式存储颜色值 class SColor { public: SCo...
16.99
76
(translation_unit) "ragma once \n \n#ifndef WIN32_LEAN_AND_MEAN \n#define WIN32_LEAN_AND_MEAN \n#endif // !WIN32_LEAN_AND_MEAN \n \n#include <windows.h> \n \n#define GetAValue(rgb) (LOBYTE((rgb)>>24)) \n#define RGBA(r,g,b,a) (RGB(r,g,b)|(a<<24)) \n#define CR_INVALID 0x00FFFFFF \n \n//以ARGB格式存储颜色值 \n...
480
16
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 16.99, "nodes": 278, "errors": 0, "source_hash": "d604ba3be12ea82e1df25992636bd5d25472258aca46f34c2b1f43f49d7627c3", "categorized_nodes": 196}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma o...
2,795
c
#include <stdio.h> #include <stdlib.h> #include <stddef.h> #include <stdbool.h> #include <float.h> #include <string.h> #include <getopt.h> #include "clp.h" char version[] = "version..."; char *progname; int verbosity; int dryrun; FILE *cf; int myint; unsigned int myuint; long mylong; unsigned long myulong; float myfl...
30.5
113
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <stddef.h>\n#include <stdbool.h>\n#include <float.h>\n#include <string.h>\n#include <getopt.h>\n\n#include "clp.h"\n\nchar version[] = "version...";\nchar *progname;\nint verbosity;\nint dryrun;\nFILE *cf;\nint myint;\nunsigned int myuint;\nlong mylo...
1,432
0
{"language": "c", "success": true, "metadata": {"lines": 113, "avg_line_length": 30.5, "nodes": 816, "errors": 0, "source_hash": "aee50336f85d8e50a17ab65531beb198dee786f1b17b2718dff1b58cac1a314a", "categorized_nodes": 504}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,796
c
// // Created by Hugo on 13/12/2017. // #ifndef CBDD1_TYPE_TEST_H #define CBDD1_TYPE_TEST_H int typeTestAll(); #endif //CBDD1_TYPE_TEST_H
18.71
7
(translation_unit) "//\n// Created by Hugo on 13/12/2017.\n//\n\n#ifndef CBDD1_TYPE_TEST_H\n#define CBDD1_TYPE_TEST_H\n\nint typeTestAll();\n\n#endif //CBDD1_TYPE_TEST_H\n" (comment) "//" (comment) "// Created by Hugo on 13/12/2017." (comment) "//" (preproc_ifdef) "#ifndef CBDD1_TYPE_TEST_H\n#define CBDD1_TYPE_...
20
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 18.71, "nodes": 12, "errors": 0, "source_hash": "19ea453e7a72895b065e18bcc47d642a147ff2dafd827ad0d9bf2eb211cae7cd", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef CB...
2,797
c
// // XMViewController.h // XMFlowLayout // // Created by mm on 02/25/2020. // Copyright (c) 2020 mm. All rights reserved. // @import UIKit; @interface XMViewController : UIViewController @end
18.7
10
(translation_unit) "//\n// XMViewController.h\n// XMFlowLayout\n//\n// Created by mm on 02/25/2020.\n// Copyright (c) 2020 mm. All rights reserved.\n//\n\n@import UIKit;\n\n@interface XMViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// XMViewController.h" (comment) "// XMFlowLayout" ...
22
5
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 18.7, "nodes": 10, "errors": 0, "source_hash": "aba4284ec07e39fb089d75404cbf252b70e2098f41be635c5e7836b98e02a8a1", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": null...
2,798
c
#pragma once #include "engine/common.h" void credits_start(void); void credits_stop(void); void credits_update(void); void credits_draw(void); void credits_show_image(const int id); void credits_hide_image(void);
25.62
8
(translation_unit) "#pragma once\n\n#include "engine/common.h"\n\nvoid credits_start(void);\nvoid credits_stop(void);\nvoid credits_update(void);\nvoid credits_draw(void);\nvoid credits_show_image(const int id);\nvoid credits_hide_image(void);\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (...
73
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 25.62, "nodes": 49, "errors": 0, "source_hash": "4bb62b888f0adc821fd6a361f80e8c011229fc53c0a2a6da795a172855b06b76", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
2,799