language
stringclasses
1 value
code
stringlengths
6
12.3k
avg_line_length
float64
2.79
91
line_count
float64
1
367
lang_specific_parse
stringlengths
60
1.08M
ast_node_count
int64
2
6.81k
num_errors
int64
0
499
universal_schema
stringlengths
799
825k
__index_level_0__
int64
0
81.2k
c
// // Copyright (c) SRG SSR. All rights reserved. // // License information is available from the LICENSE file. // @import SRGDataProvider; @import SRGDataProviderModel; NS_ASSUME_NONNULL_BEGIN /** * Common `NSURLRequest` builders. Refer to the service documentation for more information about the purpose and * ...
36.95
19
(translation_unit) "//\n// Copyright (c) SRG SSR. All rights reserved.\n//\n// License information is available from the LICENSE file.\n//\n\n@import SRGDataProvider;\n@import SRGDataProviderModel;\n\nNS_ASSUME_NONNULL_BEGIN\n\n/**\n * Common `NSURLRequest` builders. Refer to the service documentation for more infor...
101
11
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 36.95, "nodes": 61, "errors": 0, "source_hash": "03b63a6b7e1fb1e178cae725112986b7803a437bbfd546d0a0801e77b0d355a9", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nu...
78,100
c
// ***************************************************************************************** // // File description: // // Author: <NAME> // Purpose: Util private error declarations // // ***************************************************************************************** #ifndef OSAPI_ERROR_PRIV_UTIL_H_ #define ...
35.72
29
(translation_unit) "// *****************************************************************************************\n//\n// File description:\n//\n// Author: <NAME>\n// Purpose: Util private error declarations\n//\n// *****************************************************************************************\n\n#ifndef OSAP...
73
1
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 35.72, "nodes": 33, "errors": 0, "source_hash": "b9e1986b7a6f7d6258f1807cfc7f3d9a76160dccbbfddefcdcace0d6f8e120c5", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,101
c
/** * PLL (version 1.0.0) a software library for phylogenetic inference * Copyright (C) 2013 <NAME> and <NAME> * * Derived from * RAxML-HPC, a program for sequential and parallel estimation of phylogenetic * trees by <NAME> * * This program is free software: you can redistribute it and/or modify it * under t...
32.09
265
(translation_unit) "/** \n * PLL (version 1.0.0) a software library for phylogenetic inference\n * Copyright (C) 2013 <NAME> and <NAME>\n *\n * Derived from \n * RAxML-HPC, a program for sequential and parallel estimation of phylogenetic\n * trees by <NAME>\n *\n * This program is free software: you can redistribute it...
1,669
0
{"language": "c", "success": true, "metadata": {"lines": 265, "avg_line_length": 32.09, "nodes": 1036, "errors": 0, "source_hash": "4f7a155b831deab34a70d0ba993109077b41055f3c32d625ff972d01e42d7dcd", "categorized_nodes": 748}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
78,102
c
#ifndef _INCLUDED_ASW_MELEE_SYSTEM_H #define _INCLUDED_ASW_MELEE_SYSTEM_H #include "asw_marine_profile.h" #include "UtlSortVector.h" class CASW_Player; class CASW_Marine; class CMoveData; DECLARE_LOGGING_CHANNEL( LOG_ASW_Melee ); #define ASW_MEL_MSG(string, ...) ASW_MSG( LOG_ASW_Melee, ##string, ##__VA_ARGS__ ) #def...
33.07
117
(translation_unit) "#ifndef _INCLUDED_ASW_MELEE_SYSTEM_H\n#define _INCLUDED_ASW_MELEE_SYSTEM_H\n\n#include "asw_marine_profile.h"\n#include "UtlSortVector.h"\n\nclass CASW_Player;\nclass CASW_Marine;\nclass CMoveData;\n\nDECLARE_LOGGING_CHANNEL( LOG_ASW_Melee );\n#define ASW_MEL_MSG(string, ...) ASW_MSG( LOG_ASW_Melee,...
856
12
{"language": "c", "success": true, "metadata": {"lines": 117, "avg_line_length": 33.07, "nodes": 594, "errors": 0, "source_hash": "290ff103d9a5e770e3d1e334c98030fe3d4772fb3aba59cad97e89b3426ccaaf", "categorized_nodes": 380}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,103
c
#ifndef TRAINER_H #define TRAINER_H #include "multi_layer_net.h" #include "multi_layer_net_extend.h" #include "simple_convnet.h" typedef struct Trainer Trainer; struct Trainer { MultiLayerNet* net; double** train_images; uint8_t* train_labels; double** test_images; uint8_t* test_labels; int ep...
22.94
123
(translation_unit) "#ifndef TRAINER_H\n#define TRAINER_H\n\n#include "multi_layer_net.h"\n#include "multi_layer_net_extend.h"\n#include "simple_convnet.h"\n\ntypedef struct Trainer Trainer;\nstruct Trainer {\n MultiLayerNet* net;\n double** train_images;\n uint8_t* train_labels;\n double** test_images;\n ...
651
0
{"language": "c", "success": true, "metadata": {"lines": 123, "avg_line_length": 22.94, "nodes": 506, "errors": 0, "source_hash": "5295bde9e5eebbae2e805dd5548e340ef25dd712b2898bcec96e2351b4490e12", "categorized_nodes": 272}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,104
c
/* * * Copyright (C) 2011, 2015 Cisco Systems, Inc. * Copyright (C) 2015 CBA research group, Technical University of Catalonia. * * 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: * * ...
30.09
101
(translation_unit) "/*\n *\n * Copyright (C) 2011, 2015 Cisco Systems, Inc.\n * Copyright (C) 2015 CBA research group, Technical University of Catalonia.\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...
544
0
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 30.09, "nodes": 376, "errors": 0, "source_hash": "60cbcd65f836607b30d5f8d4d4c3a1901f40cccab745989a306d5331bb8a0560", "categorized_nodes": 231}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,105
c
#include <cs50.h> #include <stdio.h> int main(int argc, string argv[]) { // take arguments if (argc >= 2) { printf("Hello, %s\n", argv[1]); } else { printf("Hello, World\n"); } }
13.36
14
(translation_unit) "#include <cs50.h>\n#include <stdio.h>\n\nint main(int argc, string argv[])\n{\n // take arguments\n if (argc >= 2)\n {\n printf("Hello, %s\n", argv[1]);\n }\n else\n {\n printf("Hello, World\n");\n }\n}\n\n" (preproc_include) "#include <cs50.h>\n" (#include) "#include" (system...
75
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 13.36, "nodes": 38, "errors": 0, "source_hash": "042c6e25660e8c66770b74bca6d5468999e7453be494464d7a04ac6cd3bcf8fd", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
78,106
c
/* * Copyright (c) 2022 Mesh4all <mesh4all.org> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
29.06
62
(translation_unit) "/*\n * Copyright (c) 2022 Mesh4all <mesh4all.org>\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Un...
73
0
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 29.06, "nodes": 45, "errors": 0, "source_hash": "3a69bfeb618f02f3fac60ecdaa74f409fcc0d7117538928874688bdaa882a103", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,107
c
#ifndef ALIPHOSIMPACT_H #define ALIPHOSIMPACT_H /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ /* $Id$ */ /* History of cvs commits: * * $Log$ * Revision 1.2 2005/05/28 14:19:04 schutz * Compilation warning...
33.93
60
(translation_unit) "#ifndef ALIPHOSIMPACT_H\n#define ALIPHOSIMPACT_H\n/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *\n * See cxx source for full Copyright notice */\n\n/* $Id$ */\n\n/* History of cvs commits:\n *\n * $Log$\n * Revision 1.2 2005/05/28 14:19:04 ...
246
12
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 33.93, "nodes": 122, "errors": 0, "source_hash": "49ef59c9b817563fd815f5cf4dcc35fadc7534d634212f97ca03c698dee66913", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,108
c
#pragma once #include <string> class RawAnalogValue { public: RawAnalogValue() = default; RawAnalogValue(int input, uint32_t value) : input(input), value(value), name("a" + std::to_string(input)) { } int get_input() cons...
20.62
29
(translation_unit) "#pragma once\n\n#include <string>\n\nclass RawAnalogValue\n{\n public:\n RawAnalogValue() = default;\n\n RawAnalogValue(int input, uint32_t value)\n : input(input),\n value(value),\n name("a" + std::to_string(input))\n {\n ...
161
9
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 20.62, "nodes": 88, "errors": 0, "source_hash": "45eff65445f314891ab1beb8d8916303fefb843494b10bea5d6ab0b54cc53e2e", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
78,109
c
/** * @file snap.h * @brief Function prototypes for reading and writing graphs in SNAP format * @author <NAME> <<EMAIL>> * Copyright 2014 * @version 1 * @date 2014-02-09 */ #ifndef BOWSTRING_IO_SNAP_H #define BOWSTRING_IO_SNAP_H #include "io.h" /*******************************************************...
26
29
(translation_unit) "/**\n * @file snap.h\n * @brief Function prototypes for reading and writing graphs in SNAP format\n * @author <NAME> <<EMAIL>>\n * Copyright 2014\n * @version 1\n * @date 2014-02-09\n */\n\n\n\n\n#ifndef BOWSTRING_IO_SNAP_H\n#define BOWSTRING_IO_SNAP_H\n\n\n\n\n#include "io.h"\n\n\n\n\n/************...
120
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 26.0, "nodes": 86, "errors": 0, "source_hash": "803ca5b1a57dc9de9670a4255371b19b6aebc2464d9ec8ec453dd5edd29a3f7c", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef B...
78,110
c
/* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class com_noisepages_nettoyeur_patchfield_Patchfield */ #ifndef _Included_com_noisepages_nettoyeur_patchfield_Patchfield #define _Included_com_noisepages_nettoyeur_patchfield_Patchfield #ifdef __cplusplus extern "C" { #endif /* * Cla...
33.43
131
(translation_unit) "/* DO NOT EDIT THIS FILE - it is machine generated */\n#include <jni.h>\n/* Header for class com_noisepages_nettoyeur_patchfield_Patchfield */\n\n#ifndef _Included_com_noisepages_nettoyeur_patchfield_Patchfield\n#define _Included_com_noisepages_nettoyeur_patchfield_Patchfield\n#ifdef __cplusplus\nex...
492
0
{"language": "c", "success": true, "metadata": {"lines": 131, "avg_line_length": 33.43, "nodes": 341, "errors": 0, "source_hash": "01f74bb478a929b0211bca2f679ac0a3bce73e7f03a94761db9d6e825286d149", "categorized_nodes": 286}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,111
c
// Use of this source code is governed by a BSD 3-Clause License // that can be found in the LICENSE file. // Author: caozhiyi (<EMAIL>) #ifndef COMMON_TIMER_TIMER #define COMMON_TIMER_TIMER #include <memory> #include "timer_interface.h" namespace quicx { std::shared_ptr<Timer> MakeTimer50Ms(); std::shared_ptr<Ti...
29.43
14
(translation_unit) "// Use of this source code is governed by a BSD 3-Clause License\n// that can be found in the LICENSE file.\n\n// Author: caozhiyi (<EMAIL>)\n\n#ifndef COMMON_TIMER_TIMER\n#define COMMON_TIMER_TIMER\n\n#include <memory>\n#include "timer_interface.h"\n\nnamespace quicx {\n\nstd::shared_ptr<Timer> Mak...
98
4
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 29.43, "nodes": 60, "errors": 0, "source_hash": "4fc3aaff211c9b755bf8a08d81eb0dba8506e6112570703af469abdbaa664553", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,112
c
#include <stdlib.h> #include <string.h> #include <stdio.h> #include <unistd.h> #include <pwd.h> int switch_to_user (const char *user) { struct passwd pwbuf; struct passwd *pwbufp; char *buf; size_t buflen; buflen = sysconf (_SC_GETPW_R_SIZE_MAX); if (buflen < 0) { perror ("sysconf"); return -1; } buf = (...
20.27
40
(translation_unit) "#include <stdlib.h>\n#include <string.h>\n#include <stdio.h>\n#include <unistd.h>\n#include <pwd.h>\n\nint switch_to_user (const char *user)\n{\n struct passwd pwbuf;\n struct passwd *pwbufp;\n char *buf;\n size_t buflen;\n\n buflen = sysconf (_SC_GETPW_R_SIZE_MAX);\n if (buflen < 0) {\n perror ("s...
309
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 20.27, "nodes": 172, "errors": 0, "source_hash": "276192a60b0a2c3d9a2344a262fd4c8912d67d2fdd1b22c35771c64d6f73ddf5", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,113
c
/* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class org_cef_misc_CefPrintSettings_N */ #ifndef _Included_org_cef_misc_CefPrintSettings_N #define _Included_org_cef_misc_CefPrintSettings_N #ifdef __cplusplus extern "C" { #endif /* * Class: org_cef_misc_CefPrintSettings_N * Me...
29.97
187
(translation_unit) "/* DO NOT EDIT THIS FILE - it is machine generated */\n#include <jni.h>\n/* Header for class org_cef_misc_CefPrintSettings_N */\n\n#ifndef _Included_org_cef_misc_CefPrintSettings_N\n#define _Included_org_cef_misc_CefPrintSettings_N\n#ifdef __cplusplus\nextern "C" {\n#endif\n/*\n * Class: org_cef...
571
0
{"language": "c", "success": true, "metadata": {"lines": 187, "avg_line_length": 29.97, "nodes": 399, "errors": 0, "source_hash": "4b69f25e452059b9f98f820630157baa8df926d7325c94f559d7424858f18c40", "categorized_nodes": 320}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,114
c
/* * irq.c * * (C) Copyright 2007, <NAME> <<EMAIL>> * * This file is subject to the terms and conditions of the GNU General Public * License. See the file COPYING in the main directory of this archive * for more details. */ #include <linux/types.h> #include <linux/init.h> #include <linux/kernel.h> #include <l...
22.94
67
(translation_unit) "/*\n * irq.c\n *\n * (C) Copyright 2007, <NAME> <<EMAIL>>\n *\n * This file is subject to the terms and conditions of the GNU General Public\n * License. See the file COPYING in the main directory of this archive\n * for more details.\n */\n\n#include <linux/types.h>\n#include <linux/init.h>\n#incl...
517
2
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 22.94, "nodes": 313, "errors": 0, "source_hash": "3e960309fe68d0b68efbf94e9a78c4e4aad3530a5707578ab075214665868e88", "categorized_nodes": 234}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,115
c
/* Serial - TCP <NAME>, 2018-02 https://github.com/Mokolea/serialTcp MIT License Copyright (c) 2018 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including witho...
34.33
55
(translation_unit) "/*\n\nSerial - TCP\n\n<NAME>, 2018-02\nhttps://github.com/Mokolea/serialTcp\n\n\nMIT License\n\nCopyright (c) 2018 <NAME>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software wi...
223
10
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 34.33, "nodes": 126, "errors": 0, "source_hash": "854fe6d18133f7019171b983ca2e6cd80513cbbdd1bb785d5cc900947d7c4554", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,116
c
/* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by <NAME>. */ #import <DevToolsCore/PBXBookmark.h> @class PBXExecutable; @interface PBXExecutableBookmark : PBXBookmark { PBXExecutable *_executable; } + (id)archiveNameForKey:(id)arg1; + (id...
24.09
22
(translation_unit) "/*\n * Generated by class-dump 3.3.4 (64 bit).\n *\n * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by <NAME>.\n */\n\n#import <DevToolsCore/PBXBookmark.h>\n\n@class PBXExecutable;\n\n@interface PBXExecutableBookmark : PBXBookmark\n{\n PBXExecutable *_executable;\n}\n\n+ (i...
160
11
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 24.09, "nodes": 96, "errors": 0, "source_hash": "067ff2674d8a9ed83f4a4a5318df05bea008f8fd8ad767c2da5b21bbaae84a82", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
78,117
c
/** * @brief Header file for rational. * * This file describes the rational functions and the rational data structure. * * @file rational.h * @author <NAME> * @date 17 Feb 2015 */ #ifndef RATIONAL_H #define RATIONAL_H RATIONAL_H #define BUFFER 40 /**< Buffer size for string representations of rational numbers...
27.68
130
(translation_unit) "/**\n * @brief Header file for rational.\n *\n * This file describes the rational functions and the rational data structure.\n *\n * @file rational.h\n * @author <NAME>\n * @date 17 Feb 2015\n */\n\n#ifndef RATIONAL_H\n#define RATIONAL_H RATIONAL_H\n\n#define BUFFER 40 /**< Buffer size for string re...
298
0
{"language": "c", "success": true, "metadata": {"lines": 130, "avg_line_length": 27.68, "nodes": 232, "errors": 0, "source_hash": "3d6b97151f81bc8679d1f811db736f59deb1490b1ad9ccab31d3879784248c29", "categorized_nodes": 153}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,118
c
// Copyright 2013 Intel Corporation // All Rights Reserved // // Permission is granted to use, copy, distribute and prepare derivative works of this // software for any purpose and without fee, provided, that the above copyright notice // and this statement appear in all copies. Intel makes no representations about th...
33.71
51
(translation_unit) "// Copyright 2013 Intel Corporation\n// All Rights Reserved\n//\n// Permission is granted to use, copy, distribute and prepare derivative works of this\n// software for any purpose and without fee, provided, that the above copyright notice\n// and this statement appear in all copies. Intel makes no...
287
9
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 33.71, "nodes": 153, "errors": 0, "source_hash": "6552afbc106d28a0691a1edc3b9db8ec693dd5a37aef1b6148d282090c43b66b", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
78,119
c
#pragma once #include "Helpers/Logger/Logger.h" #define noop (void)0 #ifdef _DEBUG // #define new new(_NORMAL_BLOCK, __FILE__, __LINE__) #define NEW new(_NORMAL_BLOCK, __FILE__, __LINE__) #else #define NEW new #endif #ifndef SAFE_DELETE #define SAFE_DELETE(x) if(x) delete x; x = nullptr; #endif #ifndef SAFE_DE...
35
32
(translation_unit) "#pragma once\n\n#include "Helpers/Logger/Logger.h"\n\n#define noop (void)0\n\n#ifdef _DEBUG\n // #define new new(_NORMAL_BLOCK, __FILE__, __LINE__)\n #define NEW new(_NORMAL_BLOCK, __FILE__, __LINE__)\n#else\n #define NEW new\n#endif\n\n#ifndef SAFE_DELETE\n #define SAFE_DELETE(x) if(x) delete x; x ...
153
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 35.0, "nodes": 111, "errors": 0, "source_hash": "3678d13e83fec723644400abbc2e16d53eb63e6fe2327c0481b92b6c10a86e32", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
78,120
c
#pragma once #ifndef RECTANGLE_H #define RECTANGLE_H #include "Object.h" #include "Color.h" namespace deffem { class Rectangle : protected Object { public: Rectangle(GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height); Rectangle(GLfloat x, GLfloat y, GLfloat z, GLfloat width,...
27.5
20
(translation_unit) "#pragma once\n#ifndef RECTANGLE_H\n#define RECTANGLE_H\n#include "Object.h"\n#include "Color.h"\n\n\nnamespace deffem\n{\n class Rectangle : protected Object\n {\n public:\n\n Rectangle(GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height);\n\n Rectangle(GLfloat x, G...
169
18
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 27.5, "nodes": 110, "errors": 0, "source_hash": "4a1407a62d9beef2c32c3a3857cf730840b948e3d60a66a5138210316f940b93", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
78,121
c
#ifndef bool_h #define bool_h enum case_bool_t { false, true }; typedef enum case_bool_t case_bool_t; void case_bool_invert(case_bool_t *bool); #endif
16.22
9
(translation_unit) "#ifndef bool_h\n#define bool_h\n\nenum case_bool_t {\n false,\n true\n};\ntypedef enum case_bool_t case_bool_t;\n\nvoid case_bool_invert(case_bool_t *bool);\n\n#endif\n" (preproc_ifdef) "#ifndef bool_h\n#define bool_h\n\nenum case_bool_t {\n false,\n true\n};\ntypedef enum case_bool_t case_boo...
40
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 16.22, "nodes": 31, "errors": 0, "source_hash": "8752939f69156e02fd0e77eb20336ffaf671ec97f959cf2adac1de518a169f08", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef b...
78,122
c
#include <stdio.h> #include <stdlib.h> #include <windows.h> #include <time.h> #include <conio.h> #define EnemyNumber 16 typedef enum {false, true} bool; struct Plane { int x ; int y ; bool isalive; }; //声明 const int MapHigh = 25,MapLong = 25,RefreshLine = 3,SpeedUpCount = 15; int PlayerScore = 0,DelayTime = 250; str...
19.95
186
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <windows.h>\n#include <time.h>\n#include <conio.h>\n#define EnemyNumber 16\ntypedef enum {false, true} bool;\nstruct Plane\n{\n int x ;\n int y ;\n bool isalive;\n};\n//声明\nconst int MapHigh = 25,MapLong = 25,RefreshLine = 3,SpeedUpCount = 15;\nint P...
1,616
0
{"language": "c", "success": true, "metadata": {"lines": 186, "avg_line_length": 19.95, "nodes": 939, "errors": 0, "source_hash": "58fed0639c4c096d1b67e98c6c51cc207a72a90310ee5ecd04bc3ce72087651c", "categorized_nodes": 672}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,123
c
#ifndef PC_STRCONST_H_INCLUDED #define PC_STRCONST_H_INCLUDED #endif /* PC_STRCONST_H_INCLUDED */
32
3
(translation_unit) "#ifndef PC_STRCONST_H_INCLUDED\n#define PC_STRCONST_H_INCLUDED\n\n#endif /* PC_STRCONST_H_INCLUDED */\n\n" (preproc_ifdef) "#ifndef PC_STRCONST_H_INCLUDED\n#define PC_STRCONST_H_INCLUDED\n\n#endif" (#ifndef) "#ifndef" (identifier) "PC_STRCONST_H_INCLUDED" (preproc_def) "#define PC_STR...
9
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 32.0, "nodes": 7, "errors": 0, "source_hash": "6fc8b4c7bb6cbb0f64754254804195438229ea4e52274267b838c82fde6fe97a", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef PC_S...
78,124
c
// // XXSYDIYHeader.h // XXSYRefreshDemo // // Created by liming on 2018/7/24. // Copyright © 2018年 stayslee. All rights reserved. // #import "XXSYRefreshHeader.h" #import "XXSYRefreshCircleView.h" @interface XXSYDIYHeader : XXSYRefreshHeader + (instancetype)headerWithNavgationBarHidden:(BOOL)navigationBarHidden ...
31.75
12
(translation_unit) "//\n// XXSYDIYHeader.h\n// XXSYRefreshDemo\n//\n// Created by liming on 2018/7/24.\n// Copyright © 2018年 stayslee. All rights reserved.\n//\n\n#import "XXSYRefreshHeader.h"\n#import "XXSYRefreshCircleView.h"\n\n@interface XXSYDIYHeader : XXSYRefreshHeader\n+ (instancetype)headerWithNavgationBarH...
46
7
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 31.75, "nodes": 28, "errors": 0, "source_hash": "26d9bb33b1cd40c9b8baab28b35b76041dce52652f8ed6878bbc987e2a429d18", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"XX...
78,125
c
#ifndef DEVICE_H #define DEVICE_H #include <project.h> extern cyisraddress CyRamVectors[]; #endif
13.12
8
(translation_unit) "#ifndef DEVICE_H \n#define DEVICE_H \n \n#include <project.h> \n \nextern cyisraddress CyRamVectors[]; \n \n#endif" (preproc_ifdef) "#ifndef DEVICE_H \n#define DEVICE_H \n \n#include <project.h> \n \nextern cyisraddress CyRamVectors[]; \n \n#endif" (#ifndef) "#ifndef" (identifier...
20
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 13.12, "nodes": 16, "errors": 0, "source_hash": "6637a5c5127627d2dcc76cc22f60d558a99193a251f85e190712ac992d76e9de", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef D...
78,126
c
#include <math.h> #include <stdlib.h> #include <mpi.h> #include "allvars.h" #include "proto.h" void read_glass(char *fname) { int i, j, k, n, m, slab, count, type; unsigned int dummy, dummy2; float *pos = 0; float x, y, z; FILE *fd = 0; size_t bytes; int *npart_Task; int num, numfiles, skip, nlocal;...
25.02
219
(translation_unit) "#include <math.h>\n#include <stdlib.h>\n#include <mpi.h>\n#include "allvars.h"\n#include "proto.h"\n\n\n\n\nvoid read_glass(char *fname)\n{\n int i, j, k, n, m, slab, count, type;\n unsigned int dummy, dummy2;\n float *pos = 0;\n float x, y, z;\n FILE *fd = 0;\n size_t bytes;\n int *npart_Tas...
2,201
0
{"language": "c", "success": true, "metadata": {"lines": 219, "avg_line_length": 25.02, "nodes": 1325, "errors": 0, "source_hash": "96720cb7ef82f69579f05c09111698d6511e93eec482fdb4398e49d25d024794", "categorized_nodes": 987}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
78,127
c
#ifndef _LCOM_UART_PROTOCOL_H_ #define _LCOM_UART_PROTOCOL_H_ #include <lcom/lcf.h> #include <stdbool.h> /** @defgroup uart_protocol uart_protocol * @{ * * File for uart protocol */ #define BIT_RATE 19200 #define MAX_MSG_SIZE 2 #define BLOWN_UP_MSG_SIZE 1 #define LANDED_MSG_SIZE 1 #define CONNE...
26.79
34
(translation_unit) "#ifndef _LCOM_UART_PROTOCOL_H_\n#define _LCOM_UART_PROTOCOL_H_\n\n#include <lcom/lcf.h>\n#include <stdbool.h>\n\n\n/** @defgroup uart_protocol uart_protocol\n * @{\n *\n * File for uart protocol \n */\n\n\n#define BIT_RATE 19200\n\n#define MAX_MSG_SIZE 2\n#define BLOWN_UP_MSG_SIZE 1\n#defi...
74
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 26.79, "nodes": 57, "errors": 0, "source_hash": "7ca294f3366352afe8d42c5cb1b4ce31b317e23bee58ce1520315c81537537bc", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,128
c
/*- * Copyright (c) 2002, 2005 <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 source code must retain the above copyright * notice, this list...
35.44
279
(translation_unit) "/*-\n * Copyright (c) 2002, 2005 <NAME> <<EMAIL>>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyri...
3,197
0
{"language": "c", "success": true, "metadata": {"lines": 279, "avg_line_length": 35.44, "nodes": 1225, "errors": 0, "source_hash": "889b4ed0bcbc6851cb9233f3b651d1095d7bcb2d2edcca3279adc7b0f444f599", "categorized_nodes": 954}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
78,129
c
#include "php.h" #if PHP_VERSION_ID >= 70000 #include <Zend/zend_exceptions.h> #include <ext/spl/spl_exceptions.h> #include "ddtrace.h" #include "debug.h" #include "dispatch.h" #include "dispatch_compat.h" #include "env_config.h" ZEND_EXTERN_MODULE_GLOBALS(ddtrace) void ddtrace_setup_fcall(zend_execute_data *execu...
38.63
131
(translation_unit) "#include "php.h"\n#if PHP_VERSION_ID >= 70000\n\n#include <Zend/zend_exceptions.h>\n\n#include <ext/spl/spl_exceptions.h>\n\n#include "ddtrace.h"\n#include "debug.h"\n#include "dispatch.h"\n#include "dispatch_compat.h"\n#include "env_config.h"\n\nZEND_EXTERN_MODULE_GLOBALS(ddtrace)\n\nvoid ddtrace_s...
1,407
6
{"language": "c", "success": true, "metadata": {"lines": 131, "avg_line_length": 38.63, "nodes": 888, "errors": 0, "source_hash": "5e9e61312ed7c57b7f9fbf7fd10fb265b3f5de85b5a44d89f85535c71e3ee1b1", "categorized_nodes": 641}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,130
c
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* ** File: switch.c **...
29.96
210
(translation_unit) "/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */\n/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://mozilla.org/MPL/2.0/. */\n\n/*\n** Fi...
1,674
2
{"language": "c", "success": true, "metadata": {"lines": 210, "avg_line_length": 29.96, "nodes": 997, "errors": 0, "source_hash": "a653d70a5589473324b758a4cc1c5acdd4914fbfb5f132b2d309f6f9177bccdf", "categorized_nodes": 714}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,131
c
#ifndef ITRON_OS_WRAPPER_ITRON_MUTEX_FACTORY_H_INCLUDED #define ITRON_OS_WRAPPER_ITRON_MUTEX_FACTORY_H_INCLUDED #include "OSWrapper/MutexFactory.h" #include "kernel.h" namespace ItronOSWrapper { class ItronMutexFactory : public OSWrapper::MutexFactory { public: ItronMutexFactory(); virtual ~ItronMutexFactory(); p...
31.65
20
(translation_unit) "#ifndef ITRON_OS_WRAPPER_ITRON_MUTEX_FACTORY_H_INCLUDED\n#define ITRON_OS_WRAPPER_ITRON_MUTEX_FACTORY_H_INCLUDED\n\n#include "OSWrapper/MutexFactory.h"\n#include "kernel.h"\n\nnamespace ItronOSWrapper {\n\nclass ItronMutexFactory : public OSWrapper::MutexFactory {\npublic:\n ItronMutexFactory();\n v...
154
8
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 31.65, "nodes": 89, "errors": 0, "source_hash": "7467de5a4162df4ad6efc228d5d85e7f710eb738cd4a2e1d3800f7ad334426ab", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,132
c
#pragma once #include <math.h> #include "Common.h" struct Vector3 { public : Vector3() {};//default Constructor //Component x, y, and z of a Point 3 Vector. float x; float y; float z; //Shorthand form of different Vector3. i.e Vector3::back returns a Vector3 with x == 0, y = 0, z = -1 co...
19.83
86
(translation_unit) "#pragma once \n \n#include <math.h> \n#include "Common.h" \n \n \nstruct Vector3 \n{ \npublic : \n \n Vector3() {};//default Constructor \n //Component x, y, and z of a Point 3 Vector. \n float x; \n float y; \n float z; \n \n \n //Shorthand form of different Vector3. i.e Vector3::back returns a Ve...
637
28
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 19.83, "nodes": 367, "errors": 0, "source_hash": "b7e63c16eb4a82ebb13f80bea9f77185eda3b7037a76ea167e630cb7bdf01163", "categorized_nodes": 263}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
78,133
c
/** * This file is part of se2lam * * Copyright (C) <NAME> (github.com/izhengfan), <NAME> (github.com/hbtang) */ #ifndef SENSORS_H #define SENSORS_H #include <opencv2/core/core.hpp> #include <thread> #include <mutex> #include <atomic> #include <condition_variable> namespace se2lam { class Sensors {...
16.23
62
(translation_unit) "/** \n* This file is part of se2lam \n* \n* Copyright (C) <NAME> (github.com/izhengfan), <NAME> (github.com/hbtang) \n*/ \n \n#ifndef SENSORS_H \n#define SENSORS_H \n \n#include <opencv2/core/core.hpp> \n#include <thread> \n#include <mutex> \n#include <atomic> \n#include <condition_variable> \n \nna...
243
12
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 16.23, "nodes": 150, "errors": 0, "source_hash": "041b2d9aef08f1b41f4442c866f560644f0c3fa3852c8a4b4f3fe5e5ecf6d941", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,134
c
#ifndef QEMU_QDEV_MONITOR_H #define QEMU_QDEV_MONITOR_H #include "hw/qdev-core.h" #include "monitor/monitor.h" /*** monitor commands ***/ void hmp_info_qtree(Monitor *mon, const QDict *qdict); void hmp_info_qdm(Monitor *mon, const QDict *qdict); void hmp_info_qom_tree(Monitor *mon, const QDict *dict); int do_device_...
37.92
12
(translation_unit) "#ifndef QEMU_QDEV_MONITOR_H\n#define QEMU_QDEV_MONITOR_H\n\n#include "hw/qdev-core.h"\n#include "monitor/monitor.h"\n\n/*** monitor commands ***/\n\nvoid hmp_info_qtree(Monitor *mon, const QDict *qdict);\nvoid hmp_info_qdm(Monitor *mon, const QDict *qdict);\nvoid hmp_info_qom_tree(Monitor *mon, cons...
141
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 37.92, "nodes": 102, "errors": 0, "source_hash": "07725fae7d7a2e5997b1a9dd4a294bf7c125f7772e245b6ebdf67e413f198a7a", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,135
c
// // Pingpp.h // Pingpp // // Created by afon on 14/11/20. // #ifndef Pingpp_Pingpp_h #define Pingpp_Pingpp_h #import <UIKit/UIKit.h> #import <Foundation/Foundation.h> typedef NS_ENUM(NSUInteger, PingppErrorOption) { PingppErrInvalidCharge, PingppErrInvalidCredential, PingppErrInvalidChannel, Ping...
26.43
136
(translation_unit) "//\n// Pingpp.h\n// Pingpp\n//\n// Created by afon on 14/11/20.\n//\n#ifndef Pingpp_Pingpp_h\n#define Pingpp_Pingpp_h\n\n#import <UIKit/UIKit.h>\n#import <Foundation/Foundation.h>\n\ntypedef NS_ENUM(NSUInteger, PingppErrorOption)\n{\n PingppErrInvalidCharge,\n PingppErrInvalidCredential,\n ...
571
49
{"language": "c", "success": true, "metadata": {"lines": 136, "avg_line_length": 26.43, "nodes": 347, "errors": 0, "source_hash": "ed24379912520a074b7e06f7aaeedcfc7fb3f8c6faffb7ff00600af6f221e697", "categorized_nodes": 197}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,136
c
// // ImageViewController.h // Imaginarium // // Created by <NAME> on 02/10/16. // Copyright © 2016 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface ImageViewController : UIViewController @property (strong, nonatomic) NSURL *imageURL; @end
22.82
11
(translation_unit) "//\n// ImageViewController.h\n// Imaginarium\n//\n// Created by <NAME> on 02/10/16.\n// Copyright © 2016 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ImageViewController : UIViewController\n@property (strong, nonatomic) NSURL *imageURL;\n@end\n" (comment) "//" (c...
36
6
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 22.82, "nodes": 22, "errors": 0, "source_hash": "e8aa511bcb160d0e5215c6be7d10b986287f572ba7826366fd8b7fe2be1358ef", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
78,137
c
/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2009 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (...
37.91
76
(translation_unit) "/*\n For more information, please see: http://software.sci.utah.edu\n\n The MIT License\n\n Copyright (c) 2009 Scientific Computing and Imaging Institute,\n University of Utah.\n\n \n Permission is hereby granted, free of charge, to any person obtaining a\n copy of this software and as...
348
21
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 37.91, "nodes": 195, "errors": 0, "source_hash": "d62096e04167d7d8ddb054c29554f159d978789a1132ed899790b37aa6e75abe", "categorized_nodes": 133}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,138
c
#include "rand.h" uint32_t hash(int position) { const unsigned int BIT_NOISE1 = 0xB5297A4D; const unsigned int BIT_NOISE2 = 0x68E31DA4; const unsigned int BIT_NOISE3 = 0x1B56C4E9; unsigned int mangled = position; mangled *= BIT_NOISE1; mangled ^= (mangled >> 8); mangled += BIT_NOISE2; ...
32.08
25
(translation_unit) "#include "rand.h"\n\nuint32_t hash(int position) {\n const unsigned int BIT_NOISE1 = 0xB5297A4D;\n const unsigned int BIT_NOISE2 = 0x68E31DA4;\n const unsigned int BIT_NOISE3 = 0x1B56C4E9;\n\n unsigned int mangled = position;\n mangled *= BIT_NOISE1;\n mangled ^= (mangled >> 8);\n ...
297
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 32.08, "nodes": 202, "errors": 0, "source_hash": "4b59d6872d0404599d0d0b25ff384c44b97972ac736951431c0dbccfe4653dc7", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,139
c
/* * i2c.c - driver for Blackfin on-chip TWI/I2C * * Copyright (c) 2006-2008 Analog Devices Inc. * * Licensed under the GPL-2 or later. */ #include <common.h> #include <i2c.h> #include <asm/blackfin.h> #include <asm/mach-common/bits/twi.h> #ifdef DEBUG # define dmemset(s, c, n) memset(s, c, n) #else # define d...
30.51
251
(translation_unit) "/*\n * i2c.c - driver for Blackfin on-chip TWI/I2C\n *\n * Copyright (c) 2006-2008 Analog Devices Inc.\n *\n * Licensed under the GPL-2 or later.\n */\n\n#include <common.h>\n#include <i2c.h>\n\n#include <asm/blackfin.h>\n#include <asm/mach-common/bits/twi.h>\n\n#ifdef DEBUG\n# define dmemset(s, c, ...
1,732
1
{"language": "c", "success": true, "metadata": {"lines": 251, "avg_line_length": 30.51, "nodes": 1004, "errors": 0, "source_hash": "0a57abc8e709d45e42aedf7e709803eb463978c1f61a34063a7ef0deadfa709a", "categorized_nodes": 739}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
78,140
c
#pragma once #include "logging/Logger.h" class Console_logger : public Logger { public: void log(const std::string&, Log_level) override; };
19.71
7
(translation_unit) "#pragma once\n#include "logging/Logger.h"\n\nclass Console_logger : public Logger\n{\npublic:\n void log(const std::string&, Log_level) override;\n};\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "logging/Logger.h"\n"...
48
4
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 19.71, "nodes": 22, "errors": 0, "source_hash": "2d2f306000404fba27939031b472a74bdeb274efd34419086e2ea1514df59fda", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
78,141
c
/** @file cond_private.h * * @brief private function for conditional variables * @author <NAME> (<EMAIL>) * @author <NAME> (<EMAIL>) */ #ifndef _COND_PRIVATE_H #define _COND_PRIVATE_H #include <cond.h> /** @brief check if a conditional variable is idle * * @param cv the conditional variable we want to che...
24.81
16
(translation_unit) "/** @file cond_private.h\n *\n * @brief private function for conditional variables\n * @author <NAME> (<EMAIL>)\n * @author <NAME> (<EMAIL>)\n */\n\n#ifndef _COND_PRIVATE_H\n#define _COND_PRIVATE_H\n\n#include <cond.h>\n\n/** @brief check if a conditional variable is idle\n *\n * @param cv the c...
27
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 24.81, "nodes": 20, "errors": 0, "source_hash": "392e418052162d6e44d736312dd972d2280ff2d94502956b980bcce80ef6e65e", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,142
c
// // TSLockListViewModel.h // ELockSDK // // Created by jiaguoshang on 2017/12/7. // Copyright © 2017年 Hangzhou BitInfo Technology Co., Ltd. All rights reserved. // #import <Foundation/Foundation.h> #import "TSLockListEntity.h" #import "ReactiveObjC.h" @interface TSLockListViewModel : NSObject @property (nonato...
29.79
14
(translation_unit) "//\n// TSLockListViewModel.h\n// ELockSDK\n//\n// Created by jiaguoshang on 2017/12/7.\n// Copyright © 2017年 Hangzhou BitInfo Technology Co., Ltd. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "TSLockListEntity.h"\n#import "ReactiveObjC.h"\n\n@interface TSLockListViewMod...
60
10
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 29.79, "nodes": 43, "errors": 0, "source_hash": "2004fe21ac9d2a9128c8e151b7b2cf607ddc4f65e3f6a58ab4e07e0bc6ba167b", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
78,143
c
/* * This file is part of MPlayer. * * MPlayer is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * MPlayer is distributed in th...
28.6
166
(translation_unit) "/*\n * This file is part of MPlayer.\n *\n * MPlayer is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or\n * (at your option) any later version.\n *\n * ...
1,266
0
{"language": "c", "success": true, "metadata": {"lines": 166, "avg_line_length": 28.6, "nodes": 809, "errors": 0, "source_hash": "50ec5aada916c21694a4cc85207534ecb7bfe7f2c2eb365237af2bb584303830", "categorized_nodes": 655}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,144
c
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2009-2019 The Virtualcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_UTIL_VALIDATION_H #define BITCOIN_UTIL_VALIDATION_H #include <string> ...
45
12
(translation_unit) "// Copyright (c) 2009-2010 <NAME>\n// Copyright (c) 2009-2019 The Virtualcoin Core developers\n// Distributed under the MIT software license, see the accompanying\n// file COPYING or http://www.opensource.org/licenses/mit-license.php.\n\n#ifndef BITCOIN_UTIL_VALIDATION_H\n#define BITCOIN_UTIL_VALIDA...
53
3
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 45.0, "nodes": 29, "errors": 0, "source_hash": "1de615ab6b75cf48c9d02e253ba9cd7ae783cdc731c789424fee8aff472b24ca", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef B...
78,145
c
// Copyright 2015 ETH Zurich and University of Bologna. // Copyright and related rights are licensed under the Solderpad Hardware // License, Version 0.51 (the “License”); you may not use this file except in // compliance with the License. You may obtain a copy of the License at // http://solderpad.org/licenses/SHL-0....
28.06
126
(translation_unit) "// Copyright 2015 ETH Zurich and University of Bologna.\n// Copyright and related rights are licensed under the Solderpad Hardware\n// License, Version 0.51 (the “License”); you may not use this file except in\n// compliance with the License. You may obtain a copy of the License at\n// http://solde...
965
0
{"language": "c", "success": true, "metadata": {"lines": 126, "avg_line_length": 28.06, "nodes": 590, "errors": 0, "source_hash": "0daff39b7b28d28533be8c5d0b531fd7411995efc3b139e4273ea2567c799f83", "categorized_nodes": 384}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": " \"...
78,146
c
#ifndef __MONTY_H__ #define __MONTY_H__ #define _GNU_SOURCE #define _POSIX_C_SOURCE 200809L #include <stdio.h> #include <stdlib.h> #include <unistd.h> #define STACK 0 #define QUEUE 1 #define DELIMS " \n\t\a\b" /* GLOBAL OPCODE TOKENS */ extern char **op_toks; /** * struct stack_s - doubly linked list representa...
34.85
81
(translation_unit) "#ifndef __MONTY_H__\n#define __MONTY_H__\n\n#define _GNU_SOURCE\n#define _POSIX_C_SOURCE 200809L\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <unistd.h>\n\n#define STACK 0\n#define QUEUE 1\n#define DELIMS " \n\t\a\b"\n\n/* GLOBAL OPCODE TOKENS */\nextern char **op_toks;\n\n/**\n * struct s...
750
0
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 34.85, "nodes": 593, "errors": 0, "source_hash": "7a49f6d397692884951a283f2741a2dc6fc317be6b391051afdd431bc768b47f", "categorized_nodes": 319}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,147
c
/* Copyright (C) 2020-2021 Free Software Foundation, Inc. This file is part of GDB. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option...
37.01
140
(translation_unit) "/* Copyright (C) 2020-2021 Free Software Foundation, Inc.\n\n This file is part of GDB.\n\n This program is free software; you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation; either version 3 of the Lice...
757
17
{"language": "c", "success": true, "metadata": {"lines": 140, "avg_line_length": 37.01, "nodes": 440, "errors": 0, "source_hash": "3fafe41d20d468e01b9f76417bf82b9ae53fe65f568c889cd9e16913957dbd74", "categorized_nodes": 312}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,148
c
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #import <Foundation/Foundation.h> typedef NS_ENUM(NSInteger, ABI45_0_0RCTAnimationType) { ABI45_0_0RCTAnimationTypeSpring = 0,...
32.8
15
(translation_unit) "/*\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n#import <Foundation/Foundation.h>\n\ntypedef NS_ENUM(NSInteger, ABI45_0_0RCTAnimationType) {\n ABI45_...
44
3
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 32.8, "nodes": 27, "errors": 0, "source_hash": "f3d9c9257a1720e457ac79cd769d2872733c984c86be183a25e15f72329be50e", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
78,149
c
// // SKSLocationMessageObject.h // AtFirstSight // // Created by iCrany on 2016/11/10. // Copyright (c) 2016 Sachsen. All rights reserved. // #import <CoreLocation/CoreLocation.h> #import "SKSChatMessageObject.h" @class SKSChatMessage; NS_ASSUME_NONNULL_BEGIN @interface SKSLocationMessageObject : NSObject <SKSC...
22.05
61
(ERROR) "//\n// SKSLocationMessageObject.h\n// AtFirstSight\n//\n// Created by iCrany on 2016/11/10.\n// Copyright (c) 2016 Sachsen. All rights reserved.\n//\n\n#import <CoreLocation/CoreLocation.h>\n#import "SKSChatMessageObject.h"\n@class SKSChatMessage;\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface SKSLocationMessage...
208
26
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 22.05, "nodes": 134, "errors": 0, "source_hash": "40be5a94e1eb7acbac8a26fefc541aa89c9fa7d3722b8992c418cc491e3b70ff", "categorized_nodes": 80}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// SKSLocationMessage...
78,150
c
#pragma once #include "CoreMinimal.h" #include "Blueprint/UserWidget.h" #include "MasteryIconWidget.generated.h" UCLASS(Abstract, Blueprintable, EditInlineNew) class UMasteryIconWidget : public UUserWidget { GENERATED_BODY() public: UMasteryIconWidget(); UFUNCTION(BlueprintCallable, BlueprintImplementableE...
26.77
13
(translation_unit) "#pragma once\n#include "CoreMinimal.h"\n#include "Blueprint/UserWidget.h"\n#include "MasteryIconWidget.generated.h"\n\nUCLASS(Abstract, Blueprintable, EditInlineNew)\nclass UMasteryIconWidget : public UUserWidget {\n GENERATED_BODY()\npublic:\n UMasteryIconWidget();\n UFUNCTION(BlueprintCal...
78
4
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 26.77, "nodes": 40, "errors": 0, "source_hash": "0649e16f6a575e61863f26d259f5144e8a18e41940e08dd57e73c5d802549a3c", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
78,151
c
/* * Copyright (c) 2016 <NAME> * * This file is subject to the terms of the MIT license. If a copy of * the MIT license was not distributed with this file, You can obtain * one at https://opensource.org/licenses/MIT. */ #include "headers_all.h" #ifdef assert #undef assert #define assert(condition) do { } while ...
23.19
54
(translation_unit) "/*\n * Copyright (c) 2016 <NAME>\n *\n * This file is subject to the terms of the MIT license. If a copy of\n * the MIT license was not distributed with this file, You can obtain\n * one at https://opensource.org/licenses/MIT.\n */\n\n#include "headers_all.h"\n\n#ifdef assert\n#undef assert\n#define...
171
0
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 23.19, "nodes": 111, "errors": 0, "source_hash": "898dd2a4937ae56704d66fc414a30a98b593ded9d29d606357ad8701e2c6ab63", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
78,152
c
/******************************************************************************* * * (C) COPYRIGHT AUTHORS, 2018 - 2019 * * TITLE: GLOBAL.H * * VERSION: 1.02 * * DATE: 20 May 2019 * * Common include header file. * * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF * ANY KIND, EITH...
27.11
53
(translation_unit) "/*******************************************************************************\n*\n* (C) COPYRIGHT AUTHORS, 2018 - 2019\n*\n* TITLE: GLOBAL.H\n*\n* VERSION: 1.02\n*\n* DATE: 20 May 2019\n*\n* Common include header file.\n*\n* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITH...
145
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 27.11, "nodes": 113, "errors": 0, "source_hash": "9ee8a3cb7fbed0548eb5a9005d276a0110969a1b57dfe3789da263d914dcb8ce", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
78,153
c
// // CollectionPagerViewController.h // sample // // Created by <NAME> on 04/05/15. // Copyright (c) 2015 Adform. All rights reserved. // #import <UIKit/UIKit.h> @interface CollectionPagerViewController : UICollectionViewController @end
23.2
10
(translation_unit) "//\n// CollectionPagerViewController.h\n// sample\n//\n// Created by <NAME> on 04/05/15.\n// Copyright (c) 2015 Adform. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface CollectionPagerViewController : UICollectionViewController\n\n@end\n" (comment) "//" (comment) "// Collec...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 23.2, "nodes": 9, "errors": 0, "source_hash": "90f057aba030c842a54a88901334f3ca6be8109ed43171f1ba6b3f5e743275a9", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UIK...
78,154
c
/** * author: UncP * date: 2018-11-21 * license: BSD-3 **/ #include <stdlib.h> #include <assert.h> // TODO: remove this #include <stdio.h> #include "mapping_array.h" // find first set bit, ported from linux kernal, `word` must not be 0UL static inline unsigned long ffs_(unsigned long word) { ...
26.64
104
(translation_unit) "/**\n * author: UncP\n * date: 2018-11-21\n * license: BSD-3\n**/\n\n#include <stdlib.h>\n#include <assert.h>\n// TODO: remove this\n#include <stdio.h>\n\n#include "mapping_array.h"\n\n// find first set bit, ported from linux kernal, `word` must not be 0UL\nstatic inline unsigned ...
1,064
0
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 26.64, "nodes": 671, "errors": 0, "source_hash": "b91a3a89e7860822c4c32f848f98dc3c7c16aaeb7a043eb1447ce381ac304517", "categorized_nodes": 480}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,155
c
/* * Crude test driver for processing the VST and MCT testvector files * generated by the CMVP RNGVS product. * * Note the input files are assumed to have a _very_ specific format * as described in the NIST document "The Random Number Generator * Validation System (RNGVS)", May 25, 2004. * */ #include <openssl/...
20.21
215
(translation_unit) "/*\n * Crude test driver for processing the VST and MCT testvector files\n * generated by the CMVP RNGVS product.\n *\n * Note the input files are assumed to have a _very_ specific format\n * as described in the NIST document "The Random Number Generator\n * Validation System (RNGVS)", May 25, 2004....
2,032
0
{"language": "c", "success": true, "metadata": {"lines": 215, "avg_line_length": 20.21, "nodes": 1214, "errors": 0, "source_hash": "1ef719df318ed217715b851524eaf5e8bf91e12d56c0d6ff17015790e62acaa1", "categorized_nodes": 824}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
78,156
c
#include <stdlib.h> #include "libbf.h" static void *libBF_hs_realloc(void *clo, void *ptr, size_t size) { return realloc(ptr,size); } void bf_context_init_hs(bf_context_t *s) { bf_context_init(s, libBF_hs_realloc, NULL); } void bf_delete_hs(bf_t *s) { bf_delete(s); }
21.83
12
(translation_unit) "#include <stdlib.h>\n#include "libbf.h"\n\nstatic\nvoid *libBF_hs_realloc(void *clo, void *ptr, size_t size) {\n return realloc(ptr,size);\n}\n\nvoid bf_context_init_hs(bf_context_t *s) {\n bf_context_init(s, libBF_hs_realloc, NULL);\n}\n\nvoid bf_delete_hs(bf_t *s) {\n bf_delete(s);\n}\n\n" (p...
101
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 21.83, "nodes": 63, "errors": 0, "source_hash": "7961e8a9a835a2f5d8e3fbf6386d94c83ffd06bef9b73462755755110e39f42e", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
78,157
c
// Copyright 2013 <NAME>. // Copyright 2020 <NAME>. // // Author: <NAME> (<EMAIL>) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the ...
32.66
116
(translation_unit) "// Copyright 2013 <NAME>.\n// Copyright 2020 <NAME>.\n//\n// Author: <NAME> (<EMAIL>)\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, includ...
656
8
{"language": "c", "success": true, "metadata": {"lines": 116, "avg_line_length": 32.66, "nodes": 404, "errors": 0, "source_hash": "992a2453f3b3989a32fcd9c091041d6b197212684a6b83079e40f63e4d8684cd", "categorized_nodes": 285}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,158
c
#ifndef RUBY_TYPER_LSP_NOTIFICATIONS_INITIALIZED_H #define RUBY_TYPER_LSP_NOTIFICATIONS_INITIALIZED_H #include "absl/synchronization/notification.h" #include "main/lsp/LSPFileUpdates.h" #include "main/lsp/LSPTask.h" namespace sorbet::realmain::lsp { class InitializedTask final : public LSPDangerousTypecheckerTask { ...
39.29
21
(translation_unit) "#ifndef RUBY_TYPER_LSP_NOTIFICATIONS_INITIALIZED_H\n#define RUBY_TYPER_LSP_NOTIFICATIONS_INITIALIZED_H\n\n#include "absl/synchronization/notification.h"\n#include "main/lsp/LSPFileUpdates.h"\n#include "main/lsp/LSPTask.h"\n\nnamespace sorbet::realmain::lsp {\nclass InitializedTask final : public LSP...
173
12
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 39.29, "nodes": 97, "errors": 0, "source_hash": "0b59153f072cacd86c1238fb84e2087fce7fdf7c0ca0b2cb6eff34987e565b98", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,159
c
// // NSData+SCPCoreBluetoothManager.h // SCPCoreBluetoothManager // // Created by <NAME> on 02/05/2014. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface NSData (SCPCoreBluetoothManager) + (NSString *)hexStringFromNSData:(NSData *)data; - (NSString *)hexString; ...
25.75
12
(translation_unit) "//\n// NSData+SCPCoreBluetoothManager.h\n// SCPCoreBluetoothManager\n//\n// Created by <NAME> on 02/05/2014.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NSData (SCPCoreBluetoothManager)\n\n+ (NSString *)hexStringFromNSData:(NSData *)...
57
5
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 25.75, "nodes": 32, "errors": 0, "source_hash": "80bcbb849de837f2ab71c5e2ed576660beded8088a7348f5d013cb84051d4881", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
78,160
c
#include "common.h" #include "math_utils.h" namespace rsa { void generate_key(); void encrypt_message(); void add_padding_(); // https://www.di-mgt.com.au/rsa_alg.html#pkcs1schemes void decrypt_message(); void remove_padding_(); // void distribute_key(target); void sign_message(); ...
24.12
24
(translation_unit) "#include "common.h"\n#include "math_utils.h"\n\nnamespace rsa {\n\n void generate_key();\n \n void encrypt_message();\n void add_padding_(); // https://www.di-mgt.com.au/rsa_alg.html#pkcs1schemes\n\n void decrypt_message();\n void remove_padding_();\n // void distribute_key(targ...
140
2
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 24.12, "nodes": 85, "errors": 0, "source_hash": "54ad0953c4536da5c0890507caa1064c9347132e34352a2d1b9a86e482cea06e", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
78,161
c
#include <X11/X.h> #include <X11/Xproto.h> #include <stddef.h> char* x11_error(unsigned long result) { switch( result ) { case Success: // 0 return "Success"; case BadRequest: // 1 return "BadRequest"; case BadValue: // 2 return "BadValue"; case BadWindow: // 3 return "BadWindow"; case BadPixmap:...
26.51
294
(translation_unit) "#include <X11/X.h>\n#include <X11/Xproto.h>\n#include <stddef.h>\n\nchar* x11_error(unsigned long result)\n{\n switch( result ) {\n case Success: // 0\n return "Success";\n case BadRequest: // 1\n return "BadRequest";\n case BadValue: // 2\n return "BadValue";\n case BadWindow: // 3\n ret...
1,734
0
{"language": "c", "success": true, "metadata": {"lines": 294, "avg_line_length": 26.51, "nodes": 741, "errors": 0, "source_hash": "f2bedc9e5b702b2c27d3de2ba5af059da5345f4a029baeb40ab84db7dd437561", "categorized_nodes": 723}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,162
c
#pragma once #include "envoy/grpc/async_client.h" namespace Envoy { namespace Grpc { template <class ResponseType> class TypedAsyncRequestCallbacksShim : public TypedAsyncRequestCallbacks<ResponseType> { public: typedef std::unique_ptr<ResponseType> ResponseTypePtr; TypedAsyncRequestCallbacksShim( std...
39.26
31
(translation_unit) "#pragma once\n\n#include "envoy/grpc/async_client.h"\n\nnamespace Envoy {\nnamespace Grpc {\n\ntemplate <class ResponseType>\nclass TypedAsyncRequestCallbacksShim\n : public TypedAsyncRequestCallbacks<ResponseType> {\npublic:\n typedef std::unique_ptr<ResponseType> ResponseTypePtr;\n\n TypedAsy...
353
26
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 39.26, "nodes": 190, "errors": 0, "source_hash": "a058b788af73d992d20e364744065217300fd5b5581fded7424945c077ed6f66", "categorized_nodes": 129}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
78,163
c
// // Population Synthesis of Planet Formation // // output.c // // // Created by <NAME> // 2016/05/03 // // #include "header.h" void output(int *n, double a[], double Mp[], double Mr[], double Mi[], double Mg[]) { FILE *fp; int i, j; if ((fp = fopen("a_Mp_default_05_2.dat", "a")) == NULL) { printf("ca...
22.43
28
(translation_unit) "//\n// Population Synthesis of Planet Formation\n//\n// output.c\n//\n//\n// Created by <NAME>\n// 2016/05/03\n//\n//\n\n#include "header.h"\n\nvoid output(int *n, double a[], double Mp[], double Mr[], double Mi[], double Mg[])\n{\n FILE *fp;\n int i, j;\n\n if ((fp = fopen("a_Mp_default_05_2...
301
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 22.43, "nodes": 166, "errors": 0, "source_hash": "36c6a1ed8bac421555232a683d7e1cb5c7e1ac51026497f58e9e933707feae94", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,164
c
/* * Copyright (c) 2013 <NAME>. * Released under the MIT License: * KoboldAid/licenses/KoboldKitFree.License.txt */ #import "KKBehavior.h" @interface KKRemoveOnNotificationBehavior : KKBehavior @property (atomic, copy) NSString* notification; @end
27
9
(translation_unit) "/*\n * Copyright (c) 2013 <NAME>.\n * Released under the MIT License:\n * KoboldAid/licenses/KoboldKitFree.License.txt\n */\n\n#import "KKBehavior.h"\n\n@interface KKRemoveOnNotificationBehavior : KKBehavior\n\n@property (atomic, copy) NSString* notification;\n\n@end\n" (comment) "/*\n * Copyright...
30
6
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 27.0, "nodes": 22, "errors": 0, "source_hash": "015ba21fe86f55fb723157619fd9c4a9d5a71c198f7291bc0377313cbd59e886", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"K...
78,165
c
// // FLInsterLinkAlertViewController.h // BallOfBitcoin // // Created by <NAME> on 2018/5/21. // Copyright © 2018年 Flame. All rights reserved. // #import <UIKit/UIKit.h> typedef void(^FLLinkInsetBlock)(NSString *URL,NSString *title); @interface FLInsterLinkAlertViewController : UIAlertController + (instancetyp...
29.75
12
(translation_unit) "//\n// FLInsterLinkAlertViewController.h\n// BallOfBitcoin\n//\n// Created by <NAME> on 2018/5/21.\n// Copyright © 2018年 Flame. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\ntypedef void(^FLLinkInsetBlock)(NSString *URL,NSString *title);\n\n@interface FLInsterLinkAlertViewController : U...
63
6
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 29.75, "nodes": 40, "errors": 0, "source_hash": "2cea03c1ac0f1b2b9bff5f2e6831aa28db0e7093ca1da7ecf89ba05399ad7a8c", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
78,166
c
#ifndef COMMON_H #define COMMON_H #include <limits> #include <cmath> #define UNUSED __attribute__((unused)) constexpr double infinity = std::numeric_limits<double>::infinity(); constexpr double pi = M_PI; int random_int(int min, int max); double degrees_to_radians(double degrees); double random_double(void); doub...
23.22
27
(translation_unit) "#ifndef COMMON_H\n#define COMMON_H\n\n#include <limits>\n#include <cmath>\n\n#define UNUSED __attribute__((unused))\n\nconstexpr double infinity = std::numeric_limits<double>::infinity();\nconstexpr double pi = M_PI;\n\nint random_int(int min, int max);\n\ndouble degrees_to_radians(double degrees);\...
238
13
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 23.22, "nodes": 164, "errors": 0, "source_hash": "043daf0bff1654442330eda5575304a360952241128fefc250d61996352f9a71", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,167
c
//------------------------------------------------------------------------------ #pragma once #include <eight/core/debug.h> #include <eight/core/types.h> #include <eight/core/alloc/new.h> #include <eight/core/alloc/scope.h> #include <eight/core/thread/atomic.h> #include <eight/core/math/tmp.h> namespace eight { //-----...
31.98
178
(translation_unit) "//------------------------------------------------------------------------------\n#pragma once\n#include <eight/core/debug.h>\n#include <eight/core/types.h>\n#include <eight/core/alloc/new.h>\n#include <eight/core/alloc/scope.h>\n#include <eight/core/thread/atomic.h>\n#include <eight/core/math/tmp.h...
1,872
87
{"language": "c", "success": true, "metadata": {"lines": 178, "avg_line_length": 31.98, "nodes": 1143, "errors": 0, "source_hash": "47549dea80ecc6646ffd8204904d512f403a97014fc6cd6a4f12db02fdc4e3d3", "categorized_nodes": 804}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#prag...
78,168
c
#ifndef CIRCULAR_BUFFER_H_ # define CIRCULAR_BUFFER_H_ #include <string.h> #include <unistd.h> #include "defines.h" #include <iostream> namespace Network { /** * @brief Circular Buffer. Convenient for network communications * * @author <NAME>. * @date June 2015 */ class CircularBuffer { public:...
37.32
121
(translation_unit) "#ifndef CIRCULAR_BUFFER_H_\n# define CIRCULAR_BUFFER_H_\n\n#include <string.h>\n#include <unistd.h>\n\n#include "defines.h"\n\n#include <iostream>\n\nnamespace Network\n{\n/** \n * @brief Circular Buffer. Convenient for network communications\n *\n * @author <NAME>.\n * @date June 2015\n */...
749
16
{"language": "c", "success": true, "metadata": {"lines": 121, "avg_line_length": 37.32, "nodes": 436, "errors": 0, "source_hash": "3e9683c96946e4c7915f0b5494f0abdfda1748c8c0bb948278a5d8226c18b158", "categorized_nodes": 316}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,169
c
#pragma once #include <cmath> #include <vector> #include <ctime> #include <algorithm> #include "2d/geometry/event.h" #include "2d/geometry/ellipse.h" #include "2d/geometry/rectangle.h" #if _OPENMP #include <omp.h> #else #define omp_get_max_threads() 1 #define omp_get_thread_num() 0 #endif const double RADIAN = M_PI...
30.33
172
(translation_unit) "#pragma once\n\n#include <cmath>\n#include <vector>\n#include <ctime>\n#include <algorithm>\n\n#include "2d/geometry/event.h"\n#include "2d/geometry/ellipse.h"\n#include "2d/geometry/rectangle.h"\n\n#if _OPENMP\n#include <omp.h>\n#else\n#define omp_get_max_threads() 1\n#define omp_get_thread_num() 0...
1,858
69
{"language": "c", "success": true, "metadata": {"lines": 172, "avg_line_length": 30.33, "nodes": 1142, "errors": 0, "source_hash": "5537f838723426917cc1b60e181b49fe5f9806af026718aec1d5c8b71db4b620", "categorized_nodes": 807}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#prag...
78,170
c
#pragma once #include "pch.h" class jass_globals { public: static void jasslua_regist_globals(sol::state_view lua); };
13.44
9
(translation_unit) "#pragma once \n \n#include "pch.h" \n \nclass jass_globals \n{ \npublic: \n static void jasslua_regist_globals(sol::state_view lua); \n}; \n" (preproc_call) "#pragma once \n" (preproc_directive) "#pragma" (preproc_arg) "once " (preproc_include) "#include "pch.h" \n" (#include) "#incl...
38
1
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 13.44, "nodes": 19, "errors": 0, "source_hash": "b3b19d545591408780448baaf391696e92b6dff1918669bbe887eb6082c41929", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
78,171
c
/* * m68k beeper driver for Linux * * Copyright (c) 2002 <NAME> * Copyright (c) 2002 <NAME> * Copyright (c) 1992 <NAME> * */ /* * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published by * the Free Software Found...
26.94
65
(translation_unit) "/*\n * m68k beeper driver for Linux\n *\n * Copyright (c) 2002 <NAME>\n * Copyright (c) 2002 <NAME>\n * Copyright (c) 1992 <NAME>\n *\n */\n\n/*\n * This program is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public License version 2 as publishe...
462
2
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 26.94, "nodes": 275, "errors": 0, "source_hash": "7a8c4e4c9adee962cd9a9c755212b3b8bcae0f16077dba1591b41d66ea5df7c4", "categorized_nodes": 211}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,172
c
//engine.h #ifndef ENGINE_VG_H #define ENGINE_VG_H #include <wrapper.h> #include <Parameters.h> #include <MCStatistics.h> #include <path_generation_vg.h> #include <memory> #include <Timer.h> using namespace std; //Compute MC pricing of vanilla options template<typename T> void mc_pricer_vg(const T& TheOption, ...
28.36
55
(translation_unit) "//engine.h\n\n#ifndef ENGINE_VG_H\n#define ENGINE_VG_H\n\n#include <wrapper.h>\n#include <Parameters.h>\n#include <MCStatistics.h>\n#include <path_generation_vg.h>\n#include <memory>\n#include <Timer.h>\n\nusing namespace std;\n\n//Compute MC pricing of vanilla options\ntemplate<typename T>\nvoid mc...
525
14
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 28.36, "nodes": 347, "errors": 0, "source_hash": "809313906989c9c1b808ac2df585ca1b370d6d3a31a929c4624c07917acbe5e7", "categorized_nodes": 255}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,173
c
/* * (C) Copyright Itude Mobile B.V., The Netherlands. * * 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 applica...
34.13
52
(translation_unit) "/*\n * (C) Copyright Itude Mobile B.V., The Netherlands.\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...
390
37
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 34.13, "nodes": 274, "errors": 0, "source_hash": "1b9e91cb56fa82f35b0cb64205c8ff343e2e8edc18f8422233399e3ee7385554", "categorized_nodes": 158}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
78,174
c
/* * Copyright © 2020 Google, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish,...
37.19
64
(translation_unit) "/*\n * Copyright © 2020 Google, Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a\n * copy of this software and associated documentation files (the "Software"),\n * to deal in the Software without restriction, including without limitation\n * the rights to use, cop...
399
0
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 37.19, "nodes": 266, "errors": 0, "source_hash": "8d7284eb8d474a3e9dd77a32306778ac391c335fbc6137b6dc9a0e6f7c86ec10", "categorized_nodes": 180}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "incl...
78,175
c
// Copyright 2012 Cloudera Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wr...
31.47
76
(translation_unit) "// Copyright 2012 Cloudera Inc.\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 required by appli...
637
30
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 31.47, "nodes": 353, "errors": 0, "source_hash": "000ba3510a81c35be2a6cc4dc98b293d998d2ee945fe75895d40a1706d45d881", "categorized_nodes": 252}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,176
c
#import <UnityAds/UADSBannerViewDelegate.h> #if __has_include(<MoPub/MoPub.h>) #import <MoPub/MoPub.h> #elif __has_include(<MoPubSDKFramework/MoPub.h>) #import <MoPubSDKFramework/MoPub.h> #else #import "MPBannerCustomEvent.h" #endif @interface UnityAdsBannerCustomEvent : MPBannerCustomEvent <UADSBannerVie...
32.4
10
(translation_unit) "#import <UnityAds/UADSBannerViewDelegate.h>\n\n#if __has_include(<MoPub/MoPub.h>)\n #import <MoPub/MoPub.h>\n#elif __has_include(<MoPubSDKFramework/MoPub.h>)\n #import <MoPubSDKFramework/MoPub.h>\n#else\n #import "MPBannerCustomEvent.h"\n#endif\n\n@interface UnityAdsBannerCustomEvent : MPBa...
47
6
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 32.4, "nodes": 40, "errors": 0, "source_hash": "d775098ef6777250b0a3834fec0bfe681f08ea50ccfb3fec3b6ec77dd339d25a", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <U...
78,177
c
/* * Copyright (c) 2014 <NAME> <<EMAIL>> * See LICENSE file for copyright and license details. */ #ifndef _GATE_H #define _GATE_H #include <rpc/types.h> #include <sys/nvpair.h> #include <err.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> typedef enum zgate_exit_codes { ZGATE_SUCCESS = 0, ZGATE_E...
23.42
24
(translation_unit) "/*\n * Copyright (c) 2014 <NAME> <<EMAIL>>\n * See LICENSE file for copyright and license details.\n */\n\n#ifndef _GATE_H\n#define _GATE_H\n\n#include <rpc/types.h>\n#include <sys/nvpair.h>\n#include <err.h>\n#include <errno.h>\n#include <stdio.h>\n#include <stdlib.h>\n\ntypedef enum zgate_exit_cod...
132
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 23.42, "nodes": 102, "errors": 0, "source_hash": "36f5eeff52bd01fddcf8d60d41d3fba3095a0c361cf1c4e1db2a0c4a582398fe", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,178
c
//haigu-1.c //zqb #include <ansi.h> inherit ITEM; void setup() {} void init() { add_action("do_move", "move"); } void create() { set_name("骸骨", ({"haigu","skeleton"}) ); set_weight(10000); set_max_encumbrance(6000000); if( clonep() ) set_default_object(__FILE__); ...
20.23
43
(translation_unit) "//haigu-1.c\n//zqb\n#include <ansi.h>\n\ninherit ITEM;\n\nvoid setup()\n{}\n\nvoid init()\n{\n add_action("do_move", "move");\n}\n\nvoid create()\n{\n set_name("骸骨", ({"haigu","skeleton"}) );\n set_weight(10000);\n set_max_encumbrance(6000000);\n if( clonep() )\n ...
317
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 20.23, "nodes": 136, "errors": 0, "source_hash": "c97174d65ca0b19cd6725f09521b7523907d3da671512f06a50587c6368001ab", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,179
c
#include "hk_chr_timed_write.h" #include <time.h> #include "../../../utils/hk_logging.h" #include "../../../utils/hk_tlv.h" #include "../hk_formats_ble.h" hk_mem *hk_chr_timed_write_write_request; time_t time_of_death = -1; esp_err_t hk_chr_timed_write(hk_transaction_t *transaction, hk_chr_t *chr) { esp_err_t ...
31.57
84
(translation_unit) "#include "hk_chr_timed_write.h"\n\n#include <time.h>\n\n#include "../../../utils/hk_logging.h"\n#include "../../../utils/hk_tlv.h"\n\n#include "../hk_formats_ble.h"\n\nhk_mem *hk_chr_timed_write_write_request;\ntime_t time_of_death = -1;\n\nesp_err_t hk_chr_timed_write(hk_transaction_t *transaction,...
600
0
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 31.57, "nodes": 347, "errors": 0, "source_hash": "efa548c70653e3b7eea0fd555be94abd426b6f5350d6225fc5ce990186adb14e", "categorized_nodes": 253}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,180
c
/* * Copyright 2009-2017 Alibaba Cloud 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...
28.38
81
(translation_unit) "/*\n * Copyright 2009-2017 Alibaba Cloud 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...
372
26
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 28.38, "nodes": 218, "errors": 0, "source_hash": "119f85f55b8ef2353e030c581f800338bcc2292a66c4e9d0bffb2f09b5b87676", "categorized_nodes": 169}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,181
c
#pragma once // KeyExchange #include "NGCrypto/KeyExchange/DiffieHellman.h" // Hashing #include "NGCrypto/Hash/SHA256.h" #include "NGCrypto/Hash/HMAC.h" // Encryption #include "NGCrypto/Encryption/AES.h"
24.5
8
(translation_unit) "#pragma once\n\n// KeyExchange\n#include "NGCrypto/KeyExchange/DiffieHellman.h"\n\n// Hashing\n#include "NGCrypto/Hash/SHA256.h"\n#include "NGCrypto/Hash/HMAC.h"\n\n// Encryption\n#include "NGCrypto/Encryption/AES.h"" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_a...
31
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 24.5, "nodes": 15, "errors": 0, "source_hash": "4cc13e1f66bff6d6d8f696d6c1051dc97a9858f5a68225c2c7cd6e28ff4dc6d2", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
78,182
c
// // MVVMCKit.h // MVVMCKit // // Created by <NAME> on 3/11/18. // Copyright © 2018 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for MVVMCKit. FOUNDATION_EXPORT double MVVMCKitVersionNumber; //! Project version string for MVVMCKit. FOUNDATION_EXPORT const unsigned char MVVM...
35.31
13
(translation_unit) "//\n// MVVMCKit.h\n// MVVMCKit\n//\n// Created by <NAME> on 3/11/18.\n// Copyright © 2018 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n//! Project version number for MVVMCKit.\nFOUNDATION_EXPORT double MVVMCKitVersionNumber;\n\n//! Project version string for MVVMCKit.\nFOUNDATI...
33
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 35.31, "nodes": 15, "errors": 0, "source_hash": "12716737209fabff27ffdbe470a4583984a1e556b6b3bf3094ab4024f5456467", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
78,183
c
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QWidget> #include <QMainWindow> #include <QMenuBar> #include <QFileDialog> #include <QXmlStreamReader> #include <QStatusBar> #include <QAction> #include <QActionGroup> #include <QToolBar> #include <QMessageBox> #include <QDate> #include <QSignalMapper> #include <QGr...
31.62
82
(translation_unit) "#ifndef MAINWINDOW_H\n#define MAINWINDOW_H\n\n\n#include <QWidget>\n#include <QMainWindow>\n#include <QMenuBar>\n#include <QFileDialog>\n#include <QXmlStreamReader>\n#include <QStatusBar>\n#include <QAction>\n#include <QActionGroup>\n#include <QToolBar>\n#include <QMessageBox>\n#include <QDate>\n#in...
648
4
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 31.62, "nodes": 473, "errors": 0, "source_hash": "dbaf99d2d6ce4401b2c559b6256a161540d6b339d97bdfc08f61c92761102397", "categorized_nodes": 264}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,184
c
/* * Phantom Slayer * Utility functions * * @version 1.1.1 * @author smittytone * @copyright 2021, <NAME> * @licence MIT * */ #ifndef _GAME_UTILS_HEADER_ #define _GAME_UTILS_HEADER_ /* * PROTOYPES */ namespace Utils { int irandom(int start, int max); uint8_t inkey...
16.26
23
(translation_unit) "/*\n * Phantom Slayer\n * Utility functions\n *\n * @version 1.1.1\n * @author smittytone\n * @copyright 2021, <NAME>\n * @licence MIT\n *\n */\n#ifndef _GAME_UTILS_HEADER_\n#define _GAME_UTILS_HEADER_\n\n\n/*\n * PROTOYPES\n */\nnamespace Utils {\n int irandom(int star...
51
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 16.26, "nodes": 34, "errors": 0, "source_hash": "ba062c12da8344600e0289e5fc56e995c49fec233a321d14312d027fd2a09bf2", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,185
c
#ifndef BIO_PSSM_MOTIF_ELEMENTS_H_ #define BIO_PSSM_MOTIF_ELEMENTS_H_ #include "bio/defs.h" #include "bio/pssm_motif.h" #include "bio/common.h" BIO_NS_START struct PssmMotifPssmElement : PssmMotif::ElementMatcher { TableLink link; PssmMotifPssmElement(TableLink link); virtual ~PssmMotifPssmElement() { } boo...
24.54
37
(translation_unit) "#ifndef BIO_PSSM_MOTIF_ELEMENTS_H_\n#define BIO_PSSM_MOTIF_ELEMENTS_H_\n\n#include "bio/defs.h"\n#include "bio/pssm_motif.h"\n#include "bio/common.h"\n\n\nBIO_NS_START\n\n\n\nstruct PssmMotifPssmElement : PssmMotif::ElementMatcher\n{\n TableLink link;\n\n PssmMotifPssmElement(TableLink link);\n virt...
256
21
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 24.54, "nodes": 137, "errors": 0, "source_hash": "ce6158350c7d85ed35b9e2bdd3ac9cd6a7740d529772f7e6fe0ac81aafc93bfe", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,186
c
#include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "packet.h" int acm_fd; void crc32(uint32_t *dst, void *src, size_t len) { uint8_t *data = src; uint32_t val, crc = 0xFFFFFFFF; for(size_t i = 0; i < len; i++) { val = (crc ^ data[i]) & 0xFF; for (uint8...
23.38
48
(translation_unit) "#include <stdio.h>\n#include <stdint.h>\n#include <stdlib.h>\n#include <string.h>\n#include <unistd.h>\n\n#include "packet.h"\n\nint acm_fd;\n\nvoid crc32(uint32_t *dst, void *src, size_t len)\n{\n uint8_t *data = src;\n uint32_t val, crc = 0xFFFFFFFF;\n\n for(size_t i = 0; i < len; i++) {\n val = ...
435
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 23.38, "nodes": 279, "errors": 0, "source_hash": "7d28cd4374c3f7c0fff15d21a0d06412e0cb25d354225e8a5c3fa975f33109f2", "categorized_nodes": 191}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,187
c
#include "bob/hello.h" #include <stdio.h> void hello_world( void ) { printf( "Hello World!\n" ); }
15
7
(translation_unit) "#include "bob/hello.h"\n#include <stdio.h>\n\n\nvoid hello_world( void )\n {\n printf( "Hello World!\n" );\n }\n\n" (preproc_include) "#include "bob/hello.h"\n" (#include) "#include" (string_literal) ""bob/hello.h"" (") """ (string_content) "bob/hello.h" (") """ ...
34
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 15.0, "nodes": 18, "errors": 0, "source_hash": "ed4d260dae332881f43f486204de2bda32d71443c9ce845c5f448a73ec9866ea", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
78,188
c
#include <stdio.h> int main() { for (unsigned i = 100; i >= 1; i--) printf("%u ", i); return 0; }
11.56
9
(translation_unit) "#include <stdio.h> \n \n \nint main() { \n for (unsigned i = 100; i >= 1; i--) \n printf("%u ", i); \n \n return 0; \n}" (preproc_include) "#include <stdio.h> \n" (#include) "#include" (system_lib_string) "<stdio.h>" (function_definition) "int main() { \n for (unsigned i = 100; i >= 1; ...
51
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 11.56, "nodes": 30, "errors": 0, "source_hash": "4f97dc60368bf6f8319987e98da7948efe9aa2dc1f0ce77b224d16b25f141abc", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
78,189
c
/*--- This software is copyrighted by the Regents of the University of California, and other parties. The following terms apply to all files associated with the software unless explicitly disclaimed in individual files. The authors hereby grant permission to use, copy, modify, distribute, and license this software and...
42.31
122
(translation_unit) "/*---\nThis software is copyrighted by the Regents of the University of\nCalifornia, and other parties. The following terms apply to all files\nassociated with the software unless explicitly disclaimed in\nindividual files.\n\nThe authors hereby grant permission to use, copy, modify, distribute,\nan...
1,013
1
{"language": "c", "success": true, "metadata": {"lines": 122, "avg_line_length": 42.31, "nodes": 616, "errors": 0, "source_hash": "28eddaebb7f0516868d50094f431c8794a8af2abc146912b6ea85e2560efdee2", "categorized_nodes": 426}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,190
c
#include"sorts.h" void InsertionSort(){ } int asc_order(const ElementType a, const ElementType b) { return (a<b); } int desc_order(const ELementType b, const ElementType b) { return (1-asc_order(a,b)); } void InsertionSort_2(ElementTypePtrA, int numElems,int comp(const ElementType a, const ElementType b)){ ...
21.21
29
(translation_unit) "#include"sorts.h"\nvoid InsertionSort(){\n\n}\nint asc_order(const ElementType a, const ElementType b)\n{\n return (a<b);\n}\nint desc_order(const ELementType b, const ElementType b)\n{\n return (1-asc_order(a,b));\n}\nvoid InsertionSort_2(ElementTypePtrA, int numElems,int comp(const ElementTy...
247
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 21.21, "nodes": 145, "errors": 0, "source_hash": "3c20e10f30329ed18192d4aa4ecf2746e29fd81391f0e214f0ef4680f4dbebc4", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,191
c
void scale_vec(const double xscale, const int n, double x[]) { for (int i=0; i<n; i++) { x[i] *= xscale; } }
22.4
5
(translation_unit) "void scale_vec(const double xscale, const int n, double x[]) { \n for (int i=0; i<n; i++) { \n x[i] *= xscale; \n } \n}" (function_definition) "void scale_vec(const double xscale, const int n, double x[]) { \n for (int i=0; i<n; i++) { \n x[i] *= xscale; \n } \n}" (primitive_type) "void" ...
61
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 22.4, "nodes": 35, "errors": 0, "source_hash": "f719e73fedf5727514f5e4a90d178dcdf653a3f896ea2963122161f005ad92c7", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "void...
78,192
c
#ifndef FORMFILESYSTEMLIST_H #define FORMFILESYSTEMLIST_H #include "abstractform.h" #include "createscenedialog.h" #include "confirmdialog.h" #include <QFileSystemModel> #include <QItemSelection> #include <QDebug> #include "scene.h" namespace Ui { class FormFileSystemList; } class ScenesListForm : public AbstractFor...
28.22
59
(translation_unit) "#ifndef FORMFILESYSTEMLIST_H\n#define FORMFILESYSTEMLIST_H\n\n#include "abstractform.h"\n#include "createscenedialog.h"\n#include "confirmdialog.h"\n#include <QFileSystemModel>\n#include <QItemSelection>\n#include <QDebug>\n#include "scene.h"\n\nnamespace Ui {\nclass FormFileSystemList;\n}\n\nclass ...
436
7
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 28.22, "nodes": 281, "errors": 0, "source_hash": "44044522278a235c1d6f211424655fb85af5655f1668c37ad9eb96d4daf7300f", "categorized_nodes": 192}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,193
c
#ifndef BRIGHTBLURTASK_H #define BRIGHTBLURTASK_H #include "ComputeTask.h" class ShaderResourceView; class PingPongResource; class BlurComputeTask : public ComputeTask { public: BlurComputeTask( ID3D12Device5* device, RootSignature* rootSignature, std::vector<std::pair<std::wstring, std::wstring>> csNamePSONam...
30.09
32
(translation_unit) "#ifndef BRIGHTBLURTASK_H\n#define BRIGHTBLURTASK_H\n\n#include "ComputeTask.h"\nclass ShaderResourceView;\nclass PingPongResource;\n\nclass BlurComputeTask : public ComputeTask\n{\npublic:\n BlurComputeTask(\n ID3D12Device5* device,\n RootSignature* rootSignature,\n std::vector<std::pair<std::wst...
213
15
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 30.09, "nodes": 145, "errors": 0, "source_hash": "7153f0e175f24d06b04b90adf2326e52b869e43a23cca531ab58988b0538616e", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,194
c
/***************************************************************************** * * (c) Copyright 2009, Freescale & STMicroelectronics * ***************************************************************************//*! * * @file GDFLIB_FilterFIR.h * * @author r29302 * * @version 1.0.1.0 * * @date Dec-6-...
38.92
84
(translation_unit) "/*****************************************************************************\n*\n* (c) Copyright 2009, Freescale & STMicroelectronics\n*\n***************************************************************************//*!\n*\n* @file GDFLIB_FilterFIR.h\n* \n* @author r29302 \n* \n* @version ...
195
0
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 38.92, "nodes": 113, "errors": 0, "source_hash": "4f070d404953c293785ac1cd533b4285df5cd7f4ac767c7ff5812405e4aea56d", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,195
c
#ifndef CNOID_BASE_ITEM_CLASS_REGISTRY_H #define CNOID_BASE_ITEM_CLASS_REGISTRY_H #include "Item.h" #include <cnoid/HierarchicalClassRegistry> #include "exportdecl.h" namespace cnoid { class CNOID_EXPORT ItemClassRegistry : public HierarchicalClassRegistry<Item> { public: static ItemClassRegistry& instance(); p...
22.12
16
(translation_unit) "#ifndef CNOID_BASE_ITEM_CLASS_REGISTRY_H\n#define CNOID_BASE_ITEM_CLASS_REGISTRY_H\n\n#include "Item.h"\n#include <cnoid/HierarchicalClassRegistry>\n#include "exportdecl.h"\n\nnamespace cnoid {\n\nclass CNOID_EXPORT ItemClassRegistry : public HierarchicalClassRegistry<Item>\n{\npublic:\n static I...
72
2
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 22.12, "nodes": 38, "errors": 0, "source_hash": "600ff65c73eb361b28c76d1b7da99cb145da2c76d75f8ab82e4c233dec16e371", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,196
c
#ifndef MODELCHANGE_H #define MODELCHANGE_H #include <string> #include "phrasedml-namespace.h" #include "sbml/math/ASTNode.h" class SedChange; class SedChange; class SedDocument; class SedModel; class SedParameter; class SedRange; class SedRepeatedTask; class SedSetValue; PHRASEDML_CPP_NAMESPACE_BEGI...
27.16
86
(translation_unit) "#ifndef MODELCHANGE_H \n#define MODELCHANGE_H \n \n#include <string> \n#include "phrasedml-namespace.h" \n#include "sbml/math/ASTNode.h" \n \nclass SedChange; \nclass SedChange; \nclass SedDocument; \nclass SedModel; \nclass SedParameter; \nclass SedRange; \nclass SedRepeatedTask; \nclass SedSetValu...
723
48
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 27.16, "nodes": 435, "errors": 0, "source_hash": "8873500b8852aa1ce1689e110e367b3632456c10ed7c3887176fda5c66e3051b", "categorized_nodes": 290}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,197
c
// // JsApiHandler4Rpc.h // H5Service // // Created by chenwenhong on 14-9-3. // Copyright (c) 2014年 Alipay. All rights reserved. // #import <NebulaPoseidon/NebulaPoseidon.h> @interface JsApiHandler4Rpc : PSDJsApiHandler @end
22
10
(translation_unit) "//\n// JsApiHandler4Rpc.h\n// H5Service\n//\n// Created by chenwenhong on 14-9-3.\n// Copyright (c) 2014年 Alipay. All rights reserved.\n//\n\n#import <NebulaPoseidon/NebulaPoseidon.h>\n\n@interface JsApiHandler4Rpc : PSDJsApiHandler\n\n@end\n" (comment) "//" (comment) "// JsApiHandler4Rpc.h...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 22.0, "nodes": 10, "errors": 0, "source_hash": "12f06bafba020773bc56132801a8ed9a5269338a2e50b2131598ba65faee0fd5", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <Nebu...
78,198
c
/* * Button.c * * Created on: Mar 19, 2019 * Author: Phong */ #include "Button.h" extern void Button_Init(void) { PORT_BUTTON_SEL &=~ PIN_BUTTON; PORT_BUTTON_SEL2 &=~ PIN_BUTTON; PORT_BUTTON_DIR &=~ PIN_BUTTON; PORT_BUTTON_REN |= PIN_BUTTON; //Pull up register enable PORT_BUTTON...
23.7
33
(translation_unit) "/*\n * Button.c\n *\n * Created on: Mar 19, 2019\n * Author: Phong\n */\n\n\n#include "Button.h"\n\nextern void Button_Init(void)\n{\n PORT_BUTTON_SEL &=~ PIN_BUTTON;\n PORT_BUTTON_SEL2 &=~ PIN_BUTTON;\n PORT_BUTTON_DIR &=~ PIN_BUTTON;\n PORT_BUTTON_REN |= PIN_BUTTON; //Pull...
101
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 23.7, "nodes": 56, "errors": 0, "source_hash": "7b9280f6b290a76644013de6275a2cc8877b6d24f627da5b680eed03be22a394", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
78,199