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
/* this file should cover the following functions in hmm.h - hmm_vec2 HMM_NormalizeVec2(hmm_vec2 A); - hmm_vec3 HMM_NormalizeVec3(hmm_vec3 A); - hmm_vec4 HMM_NormalizeVec4(hmm_vec4 A); */ #pragma once #include <boost\test\included\unit_test.hpp>
29.75
8
(translation_unit) "/*\nthis file should cover the following functions in hmm.h\n- hmm_vec2 HMM_NormalizeVec2(hmm_vec2 A);\n- hmm_vec3 HMM_NormalizeVec3(hmm_vec3 A);\n- hmm_vec4 HMM_NormalizeVec4(hmm_vec4 A);\n*/\n#pragma once\n#include <boost\test\included\unit_test.hpp>\n" (comment) "/*\nthis file should cover the ...
8
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 29.75, "nodes": 6, "errors": 0, "source_hash": "177ae023e5b8a07ef479cb29596235195e1d5489752ca15828b7ffa6d51a3d88", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once...
1,700
c
#include <stdlib.h> #include <stdio.h> #include <time.h> void swap(int a[], int i, int j) { int temp = a[i]; a[i] = a[j]; a[j] = temp; } void quicksort( int a[], int sx, int dx ) { int perno, pivot; if( sx < dx ) { pivot = sx + (rand() % (dx-sx + 1)); int valore = a[pivot]; swap(a, pivot, dx); int i =...
17.67
58
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n#include <time.h>\n\nvoid swap(int a[], int i, int j)\n{\n int temp = a[i];\n a[i] = a[j];\n a[j] = temp;\n}\n\nvoid quicksort( int a[], int sx, int dx ) {\n int perno, pivot;\n if( sx < dx )\n {\n pivot = sx + (rand() % (dx-sx + 1));\n\n int valore = a[pi...
650
0
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 17.67, "nodes": 423, "errors": 0, "source_hash": "8d3f8e4d37de1d7ab022fb3f626c66b3a1c8afa697c2706c85384c65ab9abf94", "categorized_nodes": 295}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,701
c
/*#include "gamemap.h" #include "datafile.h" struct tw_map { tw_datafile *df; }; typedef struct tw_map_fixed // fixed point - 22.10 { int32_t value; } tw_map_fixed; // TW_MAP_ITEMTYPE_VERSION typedef struct tw_map_itemtype_version { int32_t version; } tw_map_itemtype_version; // TW_MAP_ITEMTYPE_INFO typedef str...
18.84
56
(translation_unit) "/*#include "gamemap.h"\n\n#include "datafile.h"\n\nstruct tw_map\n{\n tw_datafile *df;\n};\n\ntypedef struct tw_map_fixed // fixed point - 22.10\n{\n int32_t value;\n} tw_map_fixed;\n\n// TW_MAP_ITEMTYPE_VERSION\ntypedef struct tw_map_itemtype_version\n{\n int32_t version;\n} tw_map_itemtype_version...
2
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 18.84, "nodes": 0, "errors": 0, "source_hash": "e82656393123a540196ab697299178d6c1fe9468a7c65ef2d27e536221745a7a", "categorized_nodes": 0}, "ast": {"root": "translation_unit", "nodes": []}, "node_categories": {"declarations": {"functions": ...
1,702
c
#include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <string.h> int main(int argc, char **argv) { char *ttname = ttyname(0); char *tn; FILE *ttys; char buffer[100]; char found = 0; int j,k; char delim; char *parts[30]; int part; if(!ttname) return 10; ...
20.38
94
(translation_unit) "#include <stdio.h>\n#include <unistd.h>\n#include <stdlib.h>\n#include <string.h>\n\nint main(int argc, char **argv)\n{\n char *ttname = ttyname(0);\n char *tn;\n FILE *ttys;\n char buffer[100];\n char found = 0;\n int j,k;\n char delim;\n char *parts[30];\n int part;\n\n ...
705
0
{"language": "c", "success": true, "metadata": {"lines": 94, "avg_line_length": 20.38, "nodes": 435, "errors": 0, "source_hash": "c4b41e9805e655fd7d0d63637dcba6a6adeb7ab237bcd25c87ceca4270faab57", "categorized_nodes": 313}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,703
c
/* ------------------------------------------------------------------------------ ALGORITHMEN & DATENSTRUKTUREN <NAME> Github: https://github.com/oakoneric/algorithmen-datenstrukturen-ws19 ------------------------------------------------------------------------------ Aufgabe 2 ----------------------------------------...
27.74
65
(translation_unit) "/* \n------------------------------------------------------------------------------\nALGORITHMEN & DATENSTRUKTUREN\n<NAME> \nGithub: https://github.com/oakoneric/algorithmen-datenstrukturen-ws19\n------------------------------------------------------------------------------\nAufgabe 2\n-------------...
629
0
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 27.74, "nodes": 391, "errors": 0, "source_hash": "404d7b75a932070ef49148dff3a8df1abeeb5e2128f24b445139286ca1bc30e5", "categorized_nodes": 245}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,704
c
/* derived from PR optimization/11440 */ extern void abort (void); extern void exit (int); typedef _Bool bool; const bool false = 0; const bool true = 1; enum EPosition { STATIC, RELATIVE, ABSOLUTE, FIXED }; typedef enum EPosition EPosition; enum EFloat { FNONE = 0, FLEFT, FRIGHT }; typedef enum EFloat EFloat;...
21.21
157
(translation_unit) "/* derived from PR optimization/11440 */\n\nextern void abort (void);\nextern void exit (int);\n\ntypedef _Bool bool;\nconst bool false = 0;\nconst bool true = 1;\n\nenum EPosition\n{\n STATIC, RELATIVE, ABSOLUTE, FIXED\n};\ntypedef enum EPosition EPosition;\n\nenum EFloat\n{\n FNONE = 0, FLEFT, ...
1,009
0
{"language": "c", "success": true, "metadata": {"lines": 157, "avg_line_length": 21.21, "nodes": 674, "errors": 0, "source_hash": "121e70604f0a1b40f965074365110cd868717a04bc00f5540607d97a64c3f9e7", "categorized_nodes": 493}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern ...
1,705
c
/******************************************************************** created: 2015/09/24 filename: ImporterManager.h author: Crazii purpose: *********************************************************************/ #ifndef __Blade_ImporterManager_h__ #define __Blade_ImporterManager_h__ #include <interface/IImpor...
30.35
82
(translation_unit) "/********************************************************************\n created: 2015/09/24\n filename: ImporterManager.h\n author: Crazii\n \n purpose: \n*********************************************************************/\n#ifndef __Blade_ImporterManager_h__\n#define __Blade_ImporterManager_h_...
334
20
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 30.35, "nodes": 190, "errors": 0, "source_hash": "1c64358d00205d12628355fc898453e5ce0f5fcb818fec6e62cd6e79df3e3208", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,706
c
#include <stdio.h> int main(){ int valor,maior = -999, menor = 999, soma = 0; float media; for (int i = 0; i < 10; i++){ printf("Informe um valor: "); scanf("%d", &valor); if (valor > 0){ if (valor > maior){ maior = valor; } if (valor < menor) { meno...
19.3
27
(translation_unit) "#include <stdio.h>\n\nint main(){\nint valor,maior = -999, menor = 999, soma = 0;\nfloat media;\n\nfor (int i = 0; i < 10; i++){\n printf("Informe um valor: ");\n scanf("%d", &valor);\n if (valor > 0){\n if (valor > maior){\n maior = valor;\n }\n if (valor < ...
202
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 19.3, "nodes": 111, "errors": 0, "source_hash": "61d31073f3d3594188585435eb608356066996d8cc736de6ec2e47886aa9761a", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
1,707
c
extern "C" { void Add_LONGOP(long bits, long *dest, long *pB, long *pA); void Sub_LONGOP(long bits, long *dest, long *pB, long *pA); void Mul_LONGOP(long bits, long *dest, long *pB, long *pA); }
32
6
(translation_unit) "extern "C"\n{\n void Add_LONGOP(long bits, long *dest, long *pB, long *pA);\n void Sub_LONGOP(long bits, long *dest, long *pB, long *pA);\n void Mul_LONGOP(long bits, long *dest, long *pB, long *pA);\n}" (linkage_specification) "extern "C"\n{\n void Add_LONGOP(long bits, long *dest, long *pB, long...
109
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 32.0, "nodes": 84, "errors": 0, "source_hash": "e4de2817e71f425406ad43bc3da7aa68c74f78805b19e9ed44473025e8651ce2", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "linkage_specification", "text": "ex...
1,708
c
/*! \file bcmtm_tdm_sched_linerate.c * * TDM core functions for linerate scheduler calendar. */ /* * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Copyright 2007-2020 Broadcom Inc. All rights reserved. */ #ifdef _TDM_STAN...
29.37
257
(translation_unit) "/*! \file bcmtm_tdm_sched_linerate.c\n *\n * TDM core functions for linerate scheduler calendar.\n */\n/*\n * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.\n * \n * Copyright 2007-2020 Broadcom Inc. All rights rese...
1,480
0
{"language": "c", "success": true, "metadata": {"lines": 257, "avg_line_length": 29.37, "nodes": 888, "errors": 0, "source_hash": "d9c84773d28d273722f38080bd5a1dd51d676e9acf6ddfc105171094b99a9854", "categorized_nodes": 684}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifde...
1,709
c
#pragma once #include "idocumentnode.h" #include <map> #include <memory> namespace htcpp{ class GlobalStatementNode; class ProcedureNode; std::unique_ptr<IDocumentNode> readTagAttributeNode(StreamReader& stream); std::unique_ptr<IDocumentNode> readTagContentNode(StreamReader& stream); std::unique_...
40
13
(translation_unit) "#pragma once\n#include "idocumentnode.h"\n#include <map>\n#include <memory>\n\nnamespace htcpp{\n class GlobalStatementNode;\n class ProcedureNode;\n\n std::unique_ptr<IDocumentNode> readTagAttributeNode(StreamReader& stream);\n std::unique_ptr<IDocumentNode> readTagContentNode(StreamRea...
140
5
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 40.0, "nodes": 89, "errors": 0, "source_hash": "eebd4f28b17862c6a4cbd9b9d4b7796d88363b1902dfec88ed07dd33fefd672f", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
1,710
c
/** Copyright 2020-2021 Alibaba Group Holding Limited. 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...
36.55
108
(translation_unit) "/** Copyright 2020-2021 Alibaba Group Holding Limited.\n\nLicensed under the Apache License, Version 2.0 (the "License");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by...
1,049
50
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 36.55, "nodes": 657, "errors": 0, "source_hash": "a8db974452a5651c1bb2f28e73d83cae58f42eed036d05932852fa7790e79f55", "categorized_nodes": 451}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
1,711
c
#ifndef MSGBOXDLG_H #define MSGBOXDLG_H #include <QLabel> #include <QPushButton> #include <QGridLayout> #include <QDialog> class MsgBoxDlg : public QDialog { Q_OBJECT public: MsgBoxDlg(QWidget *parent = 0); private: QLabel *label; QPushButton *questionBtn; QPushButton *informationBtn; QPushBu...
21.59
29
(translation_unit) "#ifndef MSGBOXDLG_H\n#define MSGBOXDLG_H\n\n#include <QLabel>\n#include <QPushButton>\n#include <QGridLayout>\n#include <QDialog>\n\nclass MsgBoxDlg : public QDialog\n{\n Q_OBJECT\npublic:\n MsgBoxDlg(QWidget *parent = 0);\n\nprivate:\n QLabel *label;\n QPushButton *questionBtn;\n QPu...
157
4
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 21.59, "nodes": 110, "errors": 0, "source_hash": "2a33f3bd0632e8335b4085762d0afe2bb5ca16b04e8b4afdb9a2c56b5bed1d05", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,712
c
// // MTAutomationBridge.h // SimpleMonkey // // Created by tcui on 13/7/15. // Copyright (c) 2015 LuckyTR. All rights reserved. // #import "UIAutomationBridge.h" @interface MTAutomationBridge : UIAutomationBridge + (BOOL) typeIntoKeyboard:(NSString *)string userInfo:(id)userInfo; + (BOOL) typeIntoKeyboard:(NS...
35.65
20
(translation_unit) "//\n// MTAutomationBridge.h\n// SimpleMonkey\n//\n// Created by tcui on 13/7/15.\n// Copyright (c) 2015 LuckyTR. All rights reserved.\n//\n\n#import "UIAutomationBridge.h"\n\n\n\n@interface MTAutomationBridge : UIAutomationBridge\n\n+ (BOOL) typeIntoKeyboard:(NSString *)string userInfo:(id)userI...
215
26
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 35.65, "nodes": 130, "errors": 0, "source_hash": "4649e7f02d5f5bbd29640e159feca48923aef48896b0e6708c7185372c0d713d", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
1,713
c
#ifndef _XSM_WORD_H #define _XSM_WORD_H #include "types.h" int word_get_integer (xsm_word* word); int word_get_unix_type (xsm_word *word); char* word_get_string (xsm_word *word); int word_store_integer (xsm_word *word, int integer); int word_store_string (xsm_word *word, const char *str); void word_copy (xsm_wo...
20.11
18
(translation_unit) "#ifndef _XSM_WORD_H\n\n#define _XSM_WORD_H\n\n#include "types.h"\n\nint\nword_get_integer (xsm_word* word);\n\nint\nword_get_unix_type (xsm_word *word);\n\nchar*\nword_get_string (xsm_word *word);\n\nint\nword_store_integer (xsm_word *word, int integer);\n\nint\nword_store_string (xsm_word *word, co...
125
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 20.11, "nodes": 95, "errors": 0, "source_hash": "78654dea58b4f91fc8b42dcd0768501252927138793bf5538d130fc0f80de43a", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,714
c
#pragma once #include "DFA.h" class Parser { private: string input; ATNset atnset; Grammar grammar; shared_ptr<ParsConfigs> configs; int predict(string restInput); public: Parser(string gramFile); void goInput(string input); };
15.79
14
(translation_unit) "#pragma once\n#include "DFA.h"\n\nclass Parser\n{\nprivate:\n string input;\n ATNset atnset;\n Grammar grammar;\n shared_ptr<ParsConfigs> configs;\n int predict(string restInput);\npublic:\n Parser(string gramFile);\n void goInput(string input);\n};\n\n" (preproc_call) "#pragma once\n" (prepro...
78
1
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 15.79, "nodes": 50, "errors": 0, "source_hash": "7c6191405592953310240c6b1f4ed8d4015eb7d16b8f87aebd6d1035cdc1ff8f", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
1,715
c
/****************************************************************************** * * IMD -- The ITAP Molecular Dynamics Program * * Copyright 1996-2005 Institute for Theoretical and Applied Physics, * University of Stuttgart, D-70550 Stuttgart * **************************************************************************...
30.07
27
(translation_unit) "/******************************************************************************\n*\n* IMD -- The ITAP Molecular Dynamics Program\n*\n* Copyright 1996-2005 Institute for Theoretical and Applied Physics,\n* University of Stuttgart, D-70550 Stuttgart\n*\n************************************************...
46
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 30.07, "nodes": 37, "errors": 0, "source_hash": "77487aea3e23950ac39ff73c47f20dbf8baba0bf8fd842ea70dd93adf318a619", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,716
c
/* * Copyright 2006 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkColorPriv_DEFINED #define SkColorPriv_DEFINED #include "../private/SkTo.h" #include "SkColor.h" #include "SkMath.h" /** Turn 0..255 into 0..256...
39.16
134
(translation_unit) "/*\n * Copyright 2006 The Android Open Source Project\n *\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n#ifndef SkColorPriv_DEFINED\n#define SkColorPriv_DEFINED\n\n#include "../private/SkTo.h"\n#include "SkColor.h"\n#include "SkMath...
828
1
{"language": "c", "success": true, "metadata": {"lines": 134, "avg_line_length": 39.16, "nodes": 587, "errors": 0, "source_hash": "2bb8295eb585f1221a493e1ce9026a159cef97a83c79844e55cd165285139bf3", "categorized_nodes": 380}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
1,717
c
#include <string> #include <set> #include <map> #include <vector> #include <boost/algorithm/string/split.hpp> #include <boost/algorithm/string.hpp> namespace WikiMainPath { using InvertedIndex = std::map<std::string, std::set<std::size_t>>; using DocumentSet = std::set<std::size_t>; std::string stem(std::string ...
35.92
13
(translation_unit) "#include <string>\n#include <set>\n#include <map>\n#include <vector>\n\n#include <boost/algorithm/string/split.hpp>\n#include <boost/algorithm/string.hpp>\n\nnamespace WikiMainPath {\n\n using InvertedIndex = std::map<std::string, std::set<std::size_t>>;\n using DocumentSet = std::set<std::size_t>;\...
137
9
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 35.92, "nodes": 90, "errors": 0, "source_hash": "503602aec7f974c6d45bff5bc1194c7bb5b84512d1fd378db712510cb95a7c45", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
1,718
c
#include "lsx.h" #if defined(__WIN32__) || defined(_WIN32) || defined(WIN32) #include <windows.h> #include <stdio.h> void lsx_get_random(void* p, size_t n) { static HMODULE hLib = NULL; static BOOLEAN (APIENTRY *pfn)(void*, ULONG); if(hLib == NULL) { hLib = LoadLibraryA("ADVAPI32.DLL"); if(!hLib) { ...
28.67
121
(translation_unit) "#include "lsx.h"\n\n#if defined(__WIN32__) || defined(_WIN32) || defined(WIN32)\n\n#include <windows.h>\n#include <stdio.h>\n\nvoid lsx_get_random(void* p, size_t n) {\n static HMODULE hLib = NULL;\n static BOOLEAN (APIENTRY *pfn)(void*, ULONG);\n if(hLib == NULL) {\n hLib = LoadLibraryA("ADVA...
1,019
2
{"language": "c", "success": true, "metadata": {"lines": 121, "avg_line_length": 28.67, "nodes": 583, "errors": 0, "source_hash": "0339b41da9ef3b3cc1605de27893de195f440636d57557a217cd56c42b1d2e93", "categorized_nodes": 398}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
1,719
c
#include<stdio.h> #include<sys/types.h> #include<sys/stat.h> #include<sys/mman.h> #include<sys/ioctl.h> #include<unistd.h> #include<fcntl.h> #include<linux/fb.h> int main(int argc, char *argv[]) { int fd; struct fb_var_screeninfo screen_info; fd = open("/dev/fb0",O_RDWR); if (fd < 0) { p...
20.72
29
(translation_unit) "#include<stdio.h>\n#include<sys/types.h>\n#include<sys/stat.h>\n#include<sys/mman.h>\n#include<sys/ioctl.h>\n#include<unistd.h>\n#include<fcntl.h>\n#include<linux/fb.h>\n\n\n\nint main(int argc, char *argv[])\n{\n int fd;\n struct fb_var_screeninfo screen_info;\n \n fd = open("/dev/fb0",...
168
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 20.72, "nodes": 97, "errors": 0, "source_hash": "538646bbe3984ed59262e7360554179f45b00928a2a22b3dac1c9da26fc4af09", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
1,720
c
// // SDWebImageSDWebImage.h // Pods-tkCommonlib_Example // // Created by tk-ios03 on 2020/12/1. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface SDWebImageSDWebImage : NSObject @end NS_ASSUME_NONNULL_END
20
11
(translation_unit) "//\n// SDWebImageSDWebImage.h\n// Pods-tkCommonlib_Example\n//\n// Created by tk-ios03 on 2020/12/1.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface SDWebImageSDWebImage : NSObject\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" (comment) "// SDWebImageSD...
26
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 20.0, "nodes": 15, "errors": 0, "source_hash": "ffa6ee84379584bc79b729417802a69ae4007bc6fb160fe710386b87bf69489d", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Fo...
1,721
c
#ifndef CPU_MAYAH_MOVE_EVALUATOR_H_ #define CPU_MAYAH_MOVE_EVALUATOR_H_ class RefPlan; template<typename ScoreCollector> class MoveEvaluator { public: explicit MoveEvaluator(ScoreCollector* sc) : sc_(sc) {} void eval(const RefPlan&); void evalFrameFeature(int totalFrames, int numChigiri); private: ...
28
13
(translation_unit) "#ifndef CPU_MAYAH_MOVE_EVALUATOR_H_\n#define CPU_MAYAH_MOVE_EVALUATOR_H_\n\nclass RefPlan;\n\ntemplate<typename ScoreCollector>\nclass MoveEvaluator {\npublic:\n explicit MoveEvaluator(ScoreCollector* sc) : sc_(sc) {}\n\n void eval(const RefPlan&);\n\n void evalFrameFeature(int totalFrames,...
93
5
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 28.0, "nodes": 58, "errors": 0, "source_hash": "6a88f7ccb003fa67f91303a2f83bb5d7f4b87f26f8f4fe7aaf722b129bda215b", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef C...
1,722
c
// // Program.c // Listing 9 // // Created by <NAME> on 8/3/17. // Copyright © 2017 Umm Al-Qura University. All rights reserved. // #include <stdio.h> int main(void) { char var1; printf("Enter character: "); scanf("%c", &var1); printf("You entered %c.\n", var1); return 0; }
18
16
(translation_unit) "//\n// Program.c\n// Listing 9\n//\n// Created by <NAME> on 8/3/17.\n// Copyright © 2017 Umm Al-Qura University. All rights reserved.\n//\n\n#include <stdio.h>\n\nint main(void) {\n \n char var1;\n printf("Enter character: ");\n scanf("%c", &var1);\n printf("You entered %c.\n", va...
71
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 18.0, "nodes": 31, "errors": 0, "source_hash": "d498c40ae14a275cd8b4f052e12d4dec228dc9f2ce1827ec32c6b37204321031", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "include...
1,723
c
// // SBControlView.h // SBPlayer // // Created by sycf_ios on 2017/4/10. // Copyright © 2017年 shibiao. All rights reserved. // #import <UIKit/UIKit.h> #import "SBCommonHeader.h" @class SBControlView; @protocol SBControlViewDelegate <NSObject> @required /** 点击UISlider获取点击点 @param controlView 控制视图 @param value ...
25.2
51
(translation_unit) "//\n// SBControlView.h\n// SBPlayer\n//\n// Created by sycf_ios on 2017/4/10.\n// Copyright © 2017年 shibiao. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "SBCommonHeader.h"\n@class SBControlView;\n@protocol SBControlViewDelegate <NSObject>\n@required\n/**\n 点击UISlider获取点击点\n\n @p...
290
55
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 25.2, "nodes": 201, "errors": 0, "source_hash": "896af7571fa8da44f2d95038cc5527b8921e59c44d824fc69c8d114283c889ad", "categorized_nodes": 107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UI...
1,724
c
#pragma once // gongzhuDlg.h: 头文件 // #include<string> #include "CDlgLink.h" class CgongzhuDlg; //全局变量声明 extern int g_id; extern int g_order;//开始菜单1为主机,0为客户端 extern std::string g_ipAddr; extern CDlgLink* g_pCDlgLink; extern CgongzhuDlg* g_pCgongzhuDlg; // CgongzhuDlg 对话框 class CgongzhuDlg : public CD...
19.76
82
(translation_unit) "ragma once \n \n// gongzhuDlg.h: 头文件 \n// \n#include<string> \n#include "CDlgLink.h" \n \nclass CgongzhuDlg; \n//全局变量声明 \nextern int g_id; \nextern int g_order;//开始菜单1为主机,0为客户端 \nextern std::string g_ipAddr; \nextern CDlgLink* g_pCDlgLink; \nextern CgongzhuDlg* g_pCgongzhuDlg; \n \n// CgongzhuDlg 对话...
418
16
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 19.76, "nodes": 281, "errors": 0, "source_hash": "0bd206b1e1124259b992b0332d1719e95afeacba3b038ec16342c8e82756fd8a", "categorized_nodes": 204}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma o...
1,725
c
#if !defined(AFX_EXPORTASMODELDLG_H__D6D49AC4_D597_4192_B6C1_C89379B4D1E7__INCLUDED_) #define AFX_EXPORTASMODELDLG_H__D6D49AC4_D597_4192_B6C1_C89379B4D1E7__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // ExportAsModelDlg.h : header file // #include "XPStyleButtonST.h" #include "The...
26.78
55
(translation_unit) "#if !defined(AFX_EXPORTASMODELDLG_H__D6D49AC4_D597_4192_B6C1_C89379B4D1E7__INCLUDED_) \n#define AFX_EXPORTASMODELDLG_H__D6D49AC4_D597_4192_B6C1_C89379B4D1E7__INCLUDED_ \n \n#if _MSC_VER > 1000 \n#pragma once \n#endif // _MSC_VER > 1000 \n// ExportAsModelDlg.h : header file \n// \n \n \n#include "XPS...
148
2
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 26.78, "nodes": 81, "errors": 0, "source_hash": "ea7a73be898db5721891287953fc7f144fa0c4aa0bbc8f32132495c4e5ccb05a", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !define...
1,726
c
#ifndef __vec4_squaredLength__ #define __vec4_squaredLength__ #include "type.h" /** * Calculates the squared length of a vec4 * * @param {vec4} a vector to calculate squared length of * @returns {Number} squared length of a */ float vec4_squaredLength (vec4 a) { float x = a[0], y = a[1], z = a[2], ...
21.18
17
(translation_unit) "#ifndef __vec4_squaredLength__\n#define __vec4_squaredLength__\n\n#include "type.h"\n\n/**\n * Calculates the squared length of a vec4\n *\n * @param {vec4} a vector to calculate squared length of\n * @returns {Number} squared length of a\n */\nfloat vec4_squaredLength (vec4 a) {\n float x = a[0],\...
91
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 21.18, "nodes": 67, "errors": 0, "source_hash": "cb2aeacc41c95a8d700b764c657e5bf22c868d410be19fb1d6cf90d0120e15a9", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,727
c
#pragma once #include <DataStreams/BlockIO.h> #include <Processors/QueryPipeline.h> namespace DB { /** Interpreters interface for different queries. */ class IInterpreter { public: /** For queries that return a result (SELECT and similar), sets in BlockIO a stream from which you can read this result. * ...
39.68
22
(translation_unit) "#pragma once\n\n#include <DataStreams/BlockIO.h>\n\n#include <Processors/QueryPipeline.h>\n\nnamespace DB\n{\n\n/** Interpreters interface for different queries.\n */\nclass IInterpreter\n{\npublic:\n /** For queries that return a result (SELECT and similar), sets in BlockIO a stream from which ...
137
11
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 39.68, "nodes": 72, "errors": 0, "source_hash": "d113ace877e1b83c5e5e7894a4a75c07845940a642b4874787a0c9ac05b61238", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
1,728
c
// // MYTableCellMapper.h // MyLittleCraft // // Created by huangkun on 2017/11/16. // Copyright © 2017年 huangkun. All rights reserved. // #import <Foundation/Foundation.h> typedef NS_ENUM(NSInteger, MYTableElementType) { MYTableElementTypeSectionHeader, MYTableElementTypeCell, }; @interface MYTableCellM...
30.42
26
(translation_unit) "//\n// MYTableCellMapper.h\n// MyLittleCraft\n//\n// Created by huangkun on 2017/11/16.\n// Copyright © 2017年 huangkun. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\ntypedef NS_ENUM(NSInteger, MYTableElementType) {\n MYTableElementTypeSectionHeader,\n MYTableElementTypeC...
141
14
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 30.42, "nodes": 85, "errors": 0, "source_hash": "66369c21325b18fd4f8df628c1823f00c2a66a9a25ce53d84a587bb299101909", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
1,729
c
//========================================================================= // Copyright (C) 2012 The Elastos Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // ...
34.16
124
(translation_unit) "//=========================================================================\n// Copyright (C) 2012 The Elastos Open Source Project\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of...
659
21
{"language": "c", "success": true, "metadata": {"lines": 124, "avg_line_length": 34.16, "nodes": 352, "errors": 0, "source_hash": "6c31bd23ec21c9a14c7c6b92c8893196c8ed9063937267d84263339f99cfcae8", "categorized_nodes": 261}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
1,730
c
#pragma once #include "alias/number.h" #include "gtest/gtest.h" namespace utility { namespace number { class NumberTest : public ::testing::Test { public: NumberTest(); protected: alias::NumberPointer bin; alias::NumberPointer dec; alias::NumberPointer hex; alias::NumberPointer negativeBin; alias::Numb...
22.44
18
(translation_unit) "#pragma once\n\n#include "alias/number.h"\n#include "gtest/gtest.h"\n\nnamespace utility {\nnamespace number {\n\nclass NumberTest : public ::testing::Test {\npublic:\n NumberTest();\n\nprotected:\n alias::NumberPointer bin;\n alias::NumberPointer dec;\n alias::NumberPointer hex;\n\n alias::Num...
114
7
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 22.44, "nodes": 55, "errors": 0, "source_hash": "8c21b6fbf892236827b4a8505c09cc5f4ca466f6df4503f841b8897c87ac6268", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
1,731
c
/* * setbuf.c - control buffering of a stream */ /* $Id$ */ #include <stdio.h> #include "loc_incl.h" void setbuf(register FILE *stream, char *buf) { (void) setvbuf(stream, buf, (buf ? _IOFBF : _IONBF), (size_t) BUFSIZ); }
19.45
11
(translation_unit) "/*\n * setbuf.c - control buffering of a stream\n */\n/* $Id$ */\n\n#include <stdio.h>\n#include "loc_incl.h"\n\nvoid\nsetbuf(register FILE *stream, char *buf)\n{\n (void) setvbuf(stream, buf, (buf ? _IOFBF : _IONBF), (size_t) BUFSIZ);\n}\n" (comment) "/*\n * setbuf.c - control buffering of a stre...
67
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 19.45, "nodes": 41, "errors": 0, "source_hash": "14733707f863691819e46b119ecf9012613ee6111941bd91fc959ccff93bff3c", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
1,732
c
#pragma once class GLFWwindow; __BEGIN_NAMESPACE typedef struct GraphicInitialInfo { GLFWwindow* m_Window; int m_Width; int m_Height; } GraphicInitialInfo; typedef struct GraphicResizeInfo { int m_OldWidth; int m_OldHeight; int m_NewWidth; int m_NewHeight; }...
36.63
70
(translation_unit) "#pragma once\n\n\nclass GLFWwindow;\n\n\n__BEGIN_NAMESPACE\n\n\ntypedef struct GraphicInitialInfo {\n GLFWwindow* m_Window;\n int m_Width;\n int m_Height;\n} GraphicInitialInfo;\n\ntypedef struct GraphicResizeInfo {\n int m_OldWidth;\n int m_OldHeight;\n int m...
456
19
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 36.63, "nodes": 298, "errors": 0, "source_hash": "00fe5a34271ad4e5a84a061fee0cc28c6e70e86a095b37c685e01bd8d11bf81c", "categorized_nodes": 217}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
1,733
c
#pragma once #include <cstdint> #include <warcraft3/jass.h> namespace warcraft3::lua_engine::lua_loader { void initialize(); }
16.12
8
(translation_unit) "#pragma once \n \n#include <cstdint> \n#include <warcraft3/jass.h> \n \nnamespace warcraft3::lua_engine::lua_loader { \n void initialize(); \n} \n" (preproc_call) "#pragma once \n" (preproc_directive) "#pragma" (preproc_arg) "once " (preproc_include) "#include <cstdint> \n" (#include...
31
1
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 16.12, "nodes": 20, "errors": 0, "source_hash": "ab117f05cbcb66d1d7a99a417c66f13eac1afa7198fc6eac61ed6b05afdee925", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
1,734
c
// // ZPUserAgreementController.h // idlesse // // Created by 胡知平 on 16/6/7. // Copyright © 2016年 fakepinge. All rights reserved. // #import <UIKit/UIKit.h> @interface ZPUserAgreementController : UIViewController @end
21.2
10
(translation_unit) "//\n// ZPUserAgreementController.h\n// idlesse\n//\n// Created by 胡知平 on 16/6/7.\n// Copyright © 2016年 fakepinge. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ZPUserAgreementController : UIViewController\n\n@end\n" (comment) "//" (comment) "// ZPUserAgreementController....
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.2, "nodes": 10, "errors": 0, "source_hash": "b95eead2a84a53aea06d455763dd7d0c4cc251c282c9848b76ff28f1c19c107b", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit/UIKit...
1,735
c
/* * Copyright (C) 2017 <NAME> * * 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 ...
28.93
241
(translation_unit) "/*\n * Copyright (C) 2017 <NAME>\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 ap...
1,939
0
{"language": "c", "success": true, "metadata": {"lines": 241, "avg_line_length": 28.93, "nodes": 1018, "errors": 0, "source_hash": "6bdf75e5ef101bc41e3402f93b33b1b55fd1e54bcbbc647be8f1d44085c275fb", "categorized_nodes": 663}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#defin...
1,736
c
#import <Foundation/Foundation.h> #import "CMObject.h" /** * validateapi * The validation APIs help you validate data. Check if an E-mail address is real. Check if a domain is real. Check up on an IP address, and even where it is located. All this and much more is available in the validation API. * * OpenAPI spec vers...
32.64
25
(translation_unit) "#import <Foundation/Foundation.h>\n#import "CMObject.h"\n\n/**\n* validateapi\n* The validation APIs help you validate data. Check if an E-mail address is real. Check if a domain is real. Check up on an IP address, and even where it is located. All this and much more is available in the validation A...
53
11
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 32.64, "nodes": 40, "errors": 0, "source_hash": "6e583263d6e0c275b93f7d0e55a5f858abbab1aa34292105653f270e45b8b9ec", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
1,737
c
#ifndef DASH__MEMORY__HBW_SPACE_H__INCLUDED #define DASH__MEMORY__HBW_SPACE_H__INCLUDED #include <dash/memory/MemorySpaceBase.h> #ifdef DASH_ENABLE_MEMKIND #include <hbwmalloc.h> #else #include <cstdlib> #endif namespace dash { class HBWSpace : public dash::MemorySpace<memory_domain_local, memory_space_hbw_tag> {...
30.83
36
(translation_unit) "#ifndef DASH__MEMORY__HBW_SPACE_H__INCLUDED\n#define DASH__MEMORY__HBW_SPACE_H__INCLUDED\n\n#include <dash/memory/MemorySpaceBase.h>\n\n#ifdef DASH_ENABLE_MEMKIND\n#include <hbwmalloc.h>\n#else\n#include <cstdlib>\n#endif\n\nnamespace dash {\n\nclass HBWSpace\n : public dash::MemorySpace<memory_dom...
288
9
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 30.83, "nodes": 187, "errors": 0, "source_hash": "1c3926fb6ff8f5c4f9a082713380795bf471dc87a6951c996d000b6d3ae8cb70", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,738
c
// The MIT License (MIT) // Copyright (c) 2013 lailongwei<<EMAIL>> // // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in // the Software without restriction, including without limitation the rights to /...
35.05
109
(translation_unit) "// The MIT License (MIT)\n\n// Copyright (c) 2013 lailongwei<<EMAIL>>\n// \n// Permission is hereby granted, free of charge, to any person obtaining a copy of \n// this software and associated documentation files (the "Software"), to deal in \n// the Software without restriction, including without l...
368
16
{"language": "c", "success": true, "metadata": {"lines": 109, "avg_line_length": 35.05, "nodes": 231, "errors": 0, "source_hash": "901d0d52a67b68da2bf6930cf1852fe17f834d55595f9b41c1baf51750e72072", "categorized_nodes": 133}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
1,739
c
#pragma once class CGameControl; class CRShockWaveEffect { public: CRShockWaveEffect(); ~CRShockWaveEffect(); GLvoid SetForStart(); GLvoid DoDrawShockWave(const CVector3 &cPos); GLvoid DrawShockWave(); private: CGameControl *m_pGameCtrl; GLfloat m_fShockWaveScale; GLboolean m_bDrawShock...
18.76
29
(translation_unit) "#pragma once \n \nclass CGameControl; \n \nclass CRShockWaveEffect \n{ \npublic: \n CRShockWaveEffect(); \n ~CRShockWaveEffect(); \n \n GLvoid SetForStart(); \n \n GLvoid DoDrawShockWave(const CVector3 &cPos); \n GLvoid DrawShockWave(); \n \nprivate: \n CGameControl *m_pGameCtrl; \n \n GLfloat m_fSh...
139
3
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 18.76, "nodes": 81, "errors": 0, "source_hash": "7586136019e0f24ed5a94e174158e0fa95bd24c955111402d4405d83574456de", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
1,740
c
// // Test.h // PodTest // // Created by yy on 16/4/18. // Copyright © 2016年 BP. All rights reserved. // #import <Foundation/Foundation.h> @interface Test : NSObject - (void)test; @end
16.18
11
(translation_unit) "//\n// Test.h\n// PodTest\n//\n// Created by yy on 16/4/18.\n// Copyright © 2016年 BP. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface Test : NSObject\n\n- (void)test;\n\n@end\n" (comment) "//" (comment) "// Test.h" (comment) "// PodTest" (comment) "//" (co...
35
5
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 16.18, "nodes": 19, "errors": 0, "source_hash": "5e0f5cf5d1f7f21d2304988c0b35e0b6e82647b129e79bdfeafca31a5680bf32", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Foun...
1,741
c
$NetBSD: patch-bb_gob.h,v 1.1 2011/11/25 21:50:31 joerg Exp $ --- bb/gob.h.orig 2011-11-25 15:17:06.000000000 +0000 +++ bb/gob.h @@ -7,8 +7,10 @@ #define BBGOB_h -#include <list.h> -#include <vector.h> +#include <list> +#include <vector> + +using namespace std; #include "view.h" #include "bb.h"
18.06
16
(translation_unit) "$NetBSD: patch-bb_gob.h,v 1.1 2011/11/25 21:50:31 joerg Exp $\n\n--- bb/gob.h.orig 2011-11-25 15:17:06.000000000 +0000\n+++ bb/gob.h\n@@ -7,8 +7,10 @@\n #define BBGOB_h\n \n \n-#include <list.h>\n-#include <vector.h>\n+#include <list>\n+#include <vector>\n+\n+using namespace std;\n \n #include "view...
150
13
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 18.06, "nodes": 127, "errors": 0, "source_hash": "97b3dfe973ea7b4c70d39c5b4b6bb9d762c97fe84c702d4f5ab3ee320cd77ab7", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "labeled_statement", "text": "$Ne...
1,742
c
// This file is part of libnosync library. See LICENSE file for license details. #ifndef NOSYNC__RESULT_H #define NOSYNC__RESULT_H #include <optional> #include <system_error> #include <tuple> #include <type_traits> namespace nosync { /*! Variant-like class template for storing either value of an operation or error ...
30.62
72
(translation_unit) "// This file is part of libnosync library. See LICENSE file for license details.\n#ifndef NOSYNC__RESULT_H\n#define NOSYNC__RESULT_H\n\n#include <optional>\n#include <system_error>\n#include <tuple>\n#include <type_traits>\n\n\nnamespace nosync\n{\n\n/*!\nVariant-like class template for storing eith...
617
50
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 30.62, "nodes": 404, "errors": 0, "source_hash": "4cf563bb4152e107c226ff8ec6baee31a621d62ebd5d1d0f87caee9a75b50e2b", "categorized_nodes": 252}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef NOSYNC...
1,743
c
// Defines.h // #ifndef __DEFINES_INCLUDED__ #define __DEFINES_INCLUDED__ #define IDS_FIRSTDAY IDS_SUNDAY #define IDS_LASTDAY IDS_SATURDAY void ShowError(UINT nIDError,CWnd *pWnd = NULL,UINT uType = MB_OK | MB_ICONEXCLAMATION); #endif // __DEFINES_INCLUDED__
31.38
8
(translation_unit) "// Defines.h\n//\n\n#ifndef __DEFINES_INCLUDED__\n#define __DEFINES_INCLUDED__\n\n#define IDS_FIRSTDAY IDS_SUNDAY\n#define IDS_LASTDAY IDS_SATURDAY\n\nvoid ShowError(UINT nIDError,CWnd *pWnd = NULL,UINT uType = MB_OK | MB_ICONEXCLAMATION);\n\n#endif // __DEFINES_INCLUDED__\n" (comment) "// Defines...
52
2
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 31.38, "nodes": 40, "errors": 0, "source_hash": "bfc47ea000e5a1fdecec99e3d45156ac0474e6618b87003f7ea1333aa6391162", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
1,744
c
// // NSObject+MZPopoverProgressHub.h // MengZhu // // Created by LiWei on 2020/4/16. // Copyright © 2020 <EMAIL>. All rights reserved. // #import <UIKit/UIKit.h> #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface NSObject (MZPopoverProgressHub) //显示Progress (在当前控制器或当前view中心显示) -(void)showPro...
29.08
50
(translation_unit) "//\n// NSObject+MZPopoverProgressHub.h\n// MengZhu\n//\n// Created by LiWei on 2020/4/16.\n// Copyright © 2020 <EMAIL>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface NSObject (MZPopoverProgressHub)\n//显示Progres...
322
39
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 29.08, "nodes": 193, "errors": 0, "source_hash": "b269fbf09d14504f9b63107ceb74682f0bfb05d8a54f1cbb35750f6dbc6e75da", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import ...
1,745
c
// // HomeImageViewController.h // 108tian // // Created by SUN on 15-7-18. // Copyright (c) 2015年 www.sun.com. All rights reserved. // #import "RootViewController.h" @interface HomeImageViewController : RootViewController @property (nonatomic,strong) NSString *homeDownStr; @end
21
13
(translation_unit) "//\n// HomeImageViewController.h\n// 108tian\n//\n// Created by SUN on 15-7-18.\n// Copyright (c) 2015年 www.sun.com. All rights reserved.\n//\n\n#import "RootViewController.h"\n\n\n\n@interface HomeImageViewController : RootViewController\n\n\n@property (nonatomic,strong) NSString *homeDownStr;\...
36
6
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 21.0, "nodes": 23, "errors": 0, "source_hash": "d3dc18fcdba570b71e3ec05e90de92349bf829b67d51412c3b7e4d5d34d0f962", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport \"Ro...
1,746
c
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2015 <NAME> <<EMAIL>> // // 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...
26.14
94
(translation_unit) "// This file is part of Eigen, a lightweight C++ template library\n// for linear algebra.\n//\n// Copyright (C) 2015 <NAME> <<EMAIL>>\n//\n// This Source Code Form is subject to the terms of the Mozilla\n// Public License v. 2.0. If a copy of the MPL was not distributed\n// with this file, You can o...
606
28
{"language": "c", "success": true, "metadata": {"lines": 94, "avg_line_length": 26.14, "nodes": 392, "errors": 0, "source_hash": "7823e40fbd0a6e8942e19dba62e82941642e068bed6d06b712c55a4f258be17b", "categorized_nodes": 272}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,747
c
/* * @author <NAME> <<EMAIL>> * @date 12.03.2015 * * A C driver for the sensor lm75. * */ void *lm75_init(int address, const char* i2c_device_filepath); void lm75_close(void *_s); float lm75_temperature(void *_s);
19.45
11
(translation_unit) "/*\n * @author <NAME> <<EMAIL>>\n * @date 12.03.2015\n *\n * A C driver for the sensor lm75.\n * \n */\n\n\nvoid *lm75_init(int address, const char* i2c_device_filepath);\n\nvoid lm75_close(void *_s);\n\nfloat lm75_temperature(void *_s);\n\n" (comment) "/*\n * @author <NAME> <<EMAIL>>\n * @dat...
49
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 19.45, "nodes": 35, "errors": 0, "source_hash": "396827a7a2500a4e0094cf97b775b0eaf3d403afae76be3e37fcee53d6f64aa4", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "void *lm75...
1,748
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* heredoc.c :+: :+: :+: ...
30.25
57
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* heredoc.c ...
433
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 30.25, "nodes": 248, "errors": 0, "source_hash": "ff2e286f5137cf7db76ae4f26d0641e0b85432ac0b2cc18f07c8fcc86d1852f0", "categorized_nodes": 180}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,749
c
#ifndef NALUWIND_H #define NALUWIND_H #include <vector> #include <string> #include "Simulation.h" #include "stk_util/parallel/Parallel.hpp" #include "yaml-cpp/yaml.h" namespace TIOGA { class tioga; } namespace exwsim { class NaluWind { private: YAML::Node m_doc; sierra::nalu::Simulation m_sim; public: ...
24.11
37
(translation_unit) "#ifndef NALUWIND_H\n#define NALUWIND_H\n\n#include <vector>\n#include <string>\n\n#include "Simulation.h"\n#include "stk_util/parallel/Parallel.hpp"\n#include "yaml-cpp/yaml.h"\n\nnamespace TIOGA {\nclass tioga;\n}\n\nnamespace exwsim {\n\nclass NaluWind\n{\nprivate:\n YAML::Node m_doc;\n sier...
258
8
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 24.11, "nodes": 147, "errors": 0, "source_hash": "4695eb6aded2eeb30173e31a8a467441e43c05b436b1ac81dba5174ee401705a", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,750
c
#ifndef MAWAR_XML_TYPES_H #define MAWAR_XML_TYPES_H #include <string> #include <vector> #include <map> #include <list> class XmlTag; enum XmlNodeType { TTag, TCharacterData }; class XmlNode { public: XmlNode(XmlNodeType nodetype, XmlTag *t) { type = nodetype; tag = t; } XmlNode(XmlNodeType nodetype, std::s...
21.75
28
(translation_unit) "#ifndef MAWAR_XML_TYPES_H\n#define MAWAR_XML_TYPES_H\n\n#include <string>\n#include <vector>\n#include <map>\n#include <list>\n\nclass XmlTag;\n\nenum XmlNodeType { TTag, TCharacterData };\n\nclass XmlNode {\n public:\n XmlNode(XmlNodeType nodetype, XmlTag *t) {\n type = nodetype;\n tag = t;\n }\n...
197
10
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 21.75, "nodes": 130, "errors": 0, "source_hash": "0c90857c2729547b4e1b105a1ca99e988379bee5de42ad2ce984de2e5dd700cf", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,751
c
#pragma once #include "qmesh.h" namespace piLibs { int mod_connect( QMESH **mp, float *fp, unsigned char *bp, intptr *vp ); int mod_cloth( QMESH **mp, float *fp, unsigned char *bp, intptr *vp ); } // namespace piLibs
35.5
6
(translation_unit) "#pragma once\n\n#include "qmesh.h"\n\nnamespace piLibs {\n\nint mod_connect( QMESH **mp, float *fp, unsigned char *bp, intptr *vp );\nint mod_cloth( QMESH **mp, float *fp, unsigned char *bp, intptr *vp );\n\n} // namespace piLibs" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma"...
87
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 35.5, "nodes": 67, "errors": 0, "source_hash": "ce74096a25ba97612c41f52b03f629a0c44760ee55bde15ded86b514cb7c5b25", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
1,752
c
/* * Autor: <NAME>. * Fecha: 18/09/17 * Pide numero del 1 al 7 y dice que dia de la semana es */ #include <stdio.h> int main() { int dia; printf("Ingrese un numero entre el 1 y el 7: "); scanf("%d", &dia); switch (dia) { case 1: printf("Es lunes\n"); break; ...
21.68
38
(translation_unit) "/*\n * Autor: <NAME>.\n * Fecha: 18/09/17\n * Pide numero del 1 al 7 y dice que dia de la semana es\n*/\n\n#include <stdio.h>\n\nint main() {\n int dia;\n printf("Ingrese un numero entre el 1 y el 7: ");\n scanf("%d", &dia);\n\n switch (dia) {\n case 1:\n printf("Es lun...
209
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 21.68, "nodes": 106, "errors": 0, "source_hash": "c528a844f3b50a4ce37484a647d5af428a2a47fe8d13d00484a3489467f9c141", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
1,753
c
/* Quadtree implementation to keep track of recursive subdivisions of the * simulation field into rectangular cells. */ #ifndef BARNES_HUT_H #define BARNES_HUT_H #include <stdbool.h> // TODO: Limit tree depth #ifndef THETA #define THETA 0.5f #endif struct Star; struct Cell { float center_x; float center_...
29.27
52
(translation_unit) "/* Quadtree implementation to keep track of recursive subdivisions of the\n * simulation field into rectangular cells.\n */\n\n#ifndef BARNES_HUT_H\n#define BARNES_HUT_H\n\n#include <stdbool.h>\n\n// TODO: Limit tree depth\n#ifndef THETA\n#define THETA 0.5f\n#endif\n\nstruct Star;\n\nstruct Cell\n{\...
389
0
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 29.27, "nodes": 307, "errors": 0, "source_hash": "f37dade4830d0f08b76e2ea2180ab646666352d079f20e525ab55fdc666d8672", "categorized_nodes": 213}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,754
c
/* Extended Module Player * Copyright (C) 1996-2010 <NAME> and <NAME> * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See doc/COPYING * for more information. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "load....
22.73
186
(translation_unit) "/* Extended Module Player \n * Copyright (C) 1996-2010 <NAME> and <NAME> \n * \n * This file is part of the Extended Module Player and is distributed \n * under the terms of the GNU General Public License. See doc/COPYING \n * for more information. \n */ \n \n#ifdef HAVE_CONFIG_H \n#include "config....
1,994
0
{"language": "c", "success": true, "metadata": {"lines": 186, "avg_line_length": 22.73, "nodes": 1184, "errors": 0, "source_hash": "00698a115f369337d653c6c04e8ef1d2b1f74a50147c6918121bc6bda2d2c423", "categorized_nodes": 955}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifd...
1,755
c
#define _GNU_SOURCE #include <dirent.h> #include <dlfcn.h> #include <errno.h> #include <fcntl.h> #include <limits.h> #include <openssl/md5.h> #include <pthread.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/mman.h> #include <sys/stat.h> #include <sys/types.h> #include <...
27.14
221
(translation_unit) "#define _GNU_SOURCE\n\n#include <dirent.h>\n#include <dlfcn.h>\n#include <errno.h>\n#include <fcntl.h>\n#include <limits.h>\n#include <openssl/md5.h>\n#include <pthread.h>\n#include <stdarg.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <sys/mman.h>\n#include <sys/stat.h>...
2,398
0
{"language": "c", "success": true, "metadata": {"lines": 221, "avg_line_length": 27.14, "nodes": 1423, "errors": 0, "source_hash": "4c657a4e4e105a95d9fc86ef5b1e8523b52324c1f6cb84eb94a715ac3db52d1d", "categorized_nodes": 887}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#defin...
1,756
c
// // CCCommonDefine.h // CCLocalLibrary // // Created by 冯明庆 on 2017/3/28. // Copyright © 2017年 冯明庆. All rights reserved. // #import <Foundation/Foundation.h> #import "CCMethodDef.h" #import "NSObject+CCExtension.h" @class UIColor ; @class UIImage ; @interface CCCommonDefine : NSObject void CC_Safe_Operation(i...
36.08
38
(translation_unit) "//\n// CCCommonDefine.h\n// CCLocalLibrary\n//\n// Created by 冯明庆 on 2017/3/28.\n// Copyright © 2017年 冯明庆. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "CCMethodDef.h"\n#import "NSObject+CCExtension.h"\n\n@class UIColor ;\n@class UIImage ;\n\n@interface CCCommonDefine :...
269
8
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 36.08, "nodes": 195, "errors": 0, "source_hash": "336dcaf93c0197213cbed69ec3ff0ff29942f888d42248dc0d6a0ea999bace32", "categorized_nodes": 124}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "tion/Fo...
1,757
c
// Instructions: Rename or copy file to secrets.h, then edit the file as needed to match your specific environment // Credentials for wifi network the ESP8266 should connect to #ifndef WIFI_SSID #define WIFI_SSID "SSID-name" #define WIFI_PASSPHRASE "<PASSWORD>" #endif // Pwd for OTA updates of ESP8266 cons...
45.64
14
(translation_unit) "// Instructions: Rename or copy file to secrets.h, then edit the file as needed to match your specific environment\n\n// Credentials for wifi network the ESP8266 should connect to\n#ifndef WIFI_SSID\n #define WIFI_SSID "SSID-name"\n #define WIFI_PASSPHRASE "<PASSWORD>"\n#endif\n\n// Pwd for ...
88
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 45.64, "nodes": 52, "errors": 0, "source_hash": "f7e2d73c5040b06678d4317df95a41b7c365efb9df5025517036bdc0b6eecd64", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,758
c
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2012, <NAME>. All rights reserved. // Copyright (c) 2013, Image Engine Design Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that...
35.88
152
(translation_unit) "//////////////////////////////////////////////////////////////////////////\n//\n// Copyright (c) 2012, <NAME>. All rights reserved.\n// Copyright (c) 2013, Image Engine Design Inc. All rights reserved.\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, a...
1,106
73
{"language": "c", "success": true, "metadata": {"lines": 152, "avg_line_length": 35.88, "nodes": 553, "errors": 0, "source_hash": "11fe30ebb65911fe19d84885daa18bb8152d7b29b9828148e64376b9de667cd0", "categorized_nodes": 377}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
1,759
c
#include <stdlib.h> #include <string.h> #include <stdio.h> #include "cJSON.h" #include "list.h" #include "keyValuePair.h" #include "private_user_data.h" #include "game_profile_property.h" #include "list.h" #include "reduced_user_data.h" private_user_data_t *private_user_data_create( char *id, list_t *properti...
30.67
97
(translation_unit) "#include <stdlib.h>\n#include <string.h>\n#include <stdio.h>\n#include "cJSON.h"\n#include "list.h"\n#include "keyValuePair.h"\n#include "private_user_data.h"\n#include "game_profile_property.h"\n#include "list.h"\n#include "reduced_user_data.h"\n\n\nprivate_user_data_t *private_user_data_create(\n ...
726
0
{"language": "c", "success": true, "metadata": {"lines": 97, "avg_line_length": 30.67, "nodes": 437, "errors": 0, "source_hash": "a89f9e4dba1ac9c996c0ed7627c01c54821dd7cb4693017efb4d835c7d53c322", "categorized_nodes": 279}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,760
c
/* * This header is generated by classdump-dyld 1.0 * on Monday, September 28, 2020 at 5:55:07 PM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/PhotosUIC...
35.73
26
(translation_unit) "/*\n * This header is generated by classdump-dyld 1.0\n * on Monday, September 28, 2020 at 5:55:07 PM Mountain Standard Time\n * Operating System: Version 14.0 (Build 18A373)\n * Image Source: /System/Library/Pri...
185
6
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 35.73, "nodes": 99, "errors": 0, "source_hash": "5c48b8e68371bea6953c187fbba85debea74f994584f4faa2932c3c50582a15a", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <P...
1,761
c
/* * Find a cover image for the given album cover. I guess we can dig * around the internet looking for these things, but I will probably * just populate my database by hand. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "sqlite3.h" #include "image_intf.h" #include "log_intf.h" #include "...
33.77
104
(translation_unit) "/*\n * Find a cover image for the given album cover. I guess we can dig\n * around the internet looking for these things, but I will probably\n * just populate my database by hand.\n */\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#include "sqlite3.h"\n\n#include "image_intf.h"\n...
784
0
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 33.77, "nodes": 475, "errors": 0, "source_hash": "2bacbdfa894053baef2fa9f9742a168b3db45c05ceab78eb7bd28427555eb82c", "categorized_nodes": 361}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
1,762
c
/* * Copyright 2013-2015 Guardtime, Inc. * * This file is part of the Guardtime client SDK. * * 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/LICENS...
25.18
163
(translation_unit) "/*\n * Copyright 2013-2015 Guardtime, Inc.\n *\n * This file is part of the Guardtime client SDK.\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 * http://ww...
1,228
0
{"language": "c", "success": true, "metadata": {"lines": 163, "avg_line_length": 25.18, "nodes": 784, "errors": 0, "source_hash": "e3e40427b802d9d34b0a6e21828199a3bc8e80338470e30cfa652592641d4b56", "categorized_nodes": 473}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
1,763
c
// // SSUITypeDef.h // ShareSDKUI // // Created by Max on 2018/4/3. // Copyright © 2018年 Max. All rights reserved. // #ifndef SSUITypeDef_h #define SSUITypeDef_h /** * 分享状态变更 * * @param state 返回状态 * @param platformType 平台类型 * @param userData 用户数据 * @param contentEntity 分享内容实体 * @param e...
29.5
38
(translation_unit) "//\n// SSUITypeDef.h\n// ShareSDKUI\n//\n// Created by Max on 2018/4/3.\n// Copyright © 2018年 Max. All rights reserved.\n//\n\n#ifndef SSUITypeDef_h\n#define SSUITypeDef_h\n\n/**\n * 分享状态变更\n *\n * @param state 返回状态\n * @param platformType 平台类型\n * @param userData 用户数据\n * @pa...
84
4
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 29.5, "nodes": 54, "errors": 0, "source_hash": "447c434a148d7189c57436a556db7161b0172385c75ac2a9ec72889859920657", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ndef SSUI...
1,764
c
#pragma once #include <stdint.h> #include <stddef.h> struct tss { uint32_t link; uint32_t esp0; uint16_t ss0; uint16_t reserved0; uint32_t reserved1[21]; uint16_t reserved2; uint16_t iopb; } __attribute__((packed)); extern struct tss TSS; void init_gdt(); void reload_tss();
19.2
15
(translation_unit) "#pragma once\n\n#include <stdint.h>\n#include <stddef.h>\n\nstruct tss {\n uint32_t link;\n uint32_t esp0;\n uint16_t ss0;\n uint16_t reserved0;\n uint32_t reserved1[21];\n uint16_t reserved2;\n uint16_t iopb;\n} __attribute__((packed));\n\nextern struct tss TSS;\n\nvoid init_gd...
81
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 19.2, "nodes": 56, "errors": 0, "source_hash": "37fcfa74944f824f9aa626f72a6a240e123b2fc925bb695e6530b73f2b093387", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
1,765
c
#ifndef _COMPAT_PARAM_H #define _COMPAT_PARAM_H #include <sys/param.h> /* need this to define BSD */ #endif /* _COMPAT_PARAM_H */
31.75
4
(translation_unit) "#ifndef _COMPAT_PARAM_H\n#define _COMPAT_PARAM_H\n\n#include <sys/param.h> /* need this to define BSD */\n\n#endif /* _COMPAT_PARAM_H */\n" (preproc_ifdef) "#ifndef _COMPAT_PARAM_H\n#define _COMPAT_PARAM_H\n\n#include <sys/param.h> /* need this to define BSD */\n\n#endif" (#ifndef) "#ifndef" ...
13
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 31.75, "nodes": 10, "errors": 0, "source_hash": "7e2c2e9fdeb6346bfe92905076c4c01ef3036c69051b2e7166c554c564c44fef", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _C...
1,766
c
#ifndef MARKETSIMULATION_COMPANY_H #define MARKETSIMULATION_COMPANY_H #include <memory> #include <vector> #include <unordered_map> #include "Product.h" #include "Factory.h" namespace poler::market { enum class Strategies { InvestInHighDemand, InvestInHighPrice, InvestRandomly, Ma...
30.08
49
(translation_unit) "#ifndef MARKETSIMULATION_COMPANY_H\n#define MARKETSIMULATION_COMPANY_H\n\n#include <memory>\n#include <vector>\n#include <unordered_map>\n\n#include "Product.h"\n#include "Factory.h"\n\n\nnamespace poler::market {\n enum class Strategies {\n InvestInHighDemand,\n InvestInHighPrice,\...
387
14
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 30.08, "nodes": 242, "errors": 0, "source_hash": "15dadb286d77d0a71a7ba85fb1d8aaa94d72761a53ba87ca90d4edce871aff0e", "categorized_nodes": 164}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef MARKET...
1,767
c
#pragma once typedef struct Node { void *data; struct Node *next; } Node; typedef struct Chain { void (*Destructor)(struct Chain*); bool (*add)(struct Chain*,void*); Node* (*remove)(struct Chain*,Node*); Node *node; }Chain; Chain* ChainConstructor();
16.13
15
(translation_unit) "#pragma once\n\ntypedef struct Node\n{\n void *data;\n struct Node *next;\n}\nNode;\n\ntypedef struct Chain\n{\n void (*Destructor)(struct Chain*);\n bool (*add)(struct Chain*,void*);\n Node* (*remove)(struct Chain*,Node*);\n\n Node *node;\n}Chain;\n\nChain* ChainConstructor();" (preproc_call) "#p...
123
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 16.13, "nodes": 91, "errors": 0, "source_hash": "569aef373104766ae649acffb8b0f6bc132474076631edc002fa0c68ad5a5e68", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
1,768
c
#ifndef INCLUDED_VISH_PHYSICS_BOUNDINGVOLUMEHIRACHY_H #define INCLUDED_VISH_PHYSICS_BOUNDINGVOLUMEHIRACHY_H namespace Vishv::Physics { class RigidBody; using RigidBodyID = size_t; using ParticleID = size_t; using Contact = std::pair<RigidBodyID, RigidBodyID>; using PotentialContact = std::pair<RigidBodyID, RigidBo...
35.89
53
(translation_unit) "#ifndef INCLUDED_VISH_PHYSICS_BOUNDINGVOLUMEHIRACHY_H\n#define INCLUDED_VISH_PHYSICS_BOUNDINGVOLUMEHIRACHY_H\n\nnamespace Vishv::Physics {\n \nclass RigidBody;\n\nusing RigidBodyID = size_t;\nusing ParticleID = size_t;\n\nusing Contact = std::pair<RigidBodyID, RigidBodyID>;\nusing PotentialContact =...
661
40
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 35.89, "nodes": 411, "errors": 0, "source_hash": "5022bac02d7932288d213b9a5be42ba06c4f65230550fcd090030f6cd6d2467a", "categorized_nodes": 279}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,769
c
/* * Copyright (c) 2009-2021, Google LLC * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of ...
42.41
58
(translation_unit) "/*\n * Copyright (c) 2009-2021, Google LLC\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n * * Redistributions of source code must retain the above copyright\n * ...
87
0
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 42.41, "nodes": 66, "errors": 0, "source_hash": "37bae8452a8db1042ff422c363e8e30220bc9fbe841ec80e9d4545ce8e852255", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,770
c
/* * Copyright@ Samsung Electronics Co. LTD * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
32.37
266
(translation_unit) "/*\n * Copyright@ Samsung Electronics Co. LTD\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unles...
1,116
2
{"language": "c", "success": true, "metadata": {"lines": 266, "avg_line_length": 32.37, "nodes": 754, "errors": 0, "source_hash": "28fd3fe079642f8a66093b33c7fddbeb3729dd5aa5e8d08abb09b93735d7a63c", "categorized_nodes": 527}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef __SAM...
1,771
c
#ifndef PMM_INTERNALS_H_ #define PMM_INTERNALS_H_ #define BLOCKS_PER_DWORD 32 #define BLOCK_SIZE 4096 #define BLOCK_ALIGN BLOCK_SIZE /* Macros for testing and aligning memory. */ #define IS_ALIGNED(addr, align) !((addr) & ~((align) - 1)) #define ALIGN(addr, align) (((addr) & ~((align) - 1)) + (align)) /*...
34.56
27
(translation_unit) "#ifndef PMM_INTERNALS_H_\n#define PMM_INTERNALS_H_\n\n#define BLOCKS_PER_DWORD 32\n#define BLOCK_SIZE 4096\n#define BLOCK_ALIGN BLOCK_SIZE\n\n/* Macros for testing and aligning memory. */\n\n#define IS_ALIGNED(addr, align) !((addr) & ~((align) - 1))\n#define ALIGN(addr, align) (((addr) & ...
83
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 34.56, "nodes": 56, "errors": 0, "source_hash": "4e6745cfe61eca409ff1672cf7dafcf71ce7f8cbc965f70854dcb52cc8dfc71a", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,772
c
#include <axl_gui/axl_gui_GdiWidget.h>
38
1
(translation_unit) "#include <axl_gui/axl_gui_GdiWidget.h>\n" (preproc_include) "#include <axl_gui/axl_gui_GdiWidget.h>\n" (#include) "#include" (system_lib_string) "<axl_gui/axl_gui_GdiWidget.h>"
4
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 38.0, "nodes": 3, "errors": 0, "source_hash": "e17b98a2a0a44034307867f52ebafbe06fe3dd8c91bedd9f0c5eb2b159e5af0a", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <...
1,773
c
// license:BSD-3-Clause // copyright-holders:<NAME> /********************************************************************** Poisk-1 FDC device (model B504) **********************************************************************/ #ifndef MAME_BUS_ISA_P1_FDC_H #define MAME_BUS_ISA_P1_FDC_H #pragma once #include ...
32.09
44
(translation_unit) "// license:BSD-3-Clause\n// copyright-holders:<NAME>\n/**********************************************************************\n\n Poisk-1 FDC device (model B504)\n\n**********************************************************************/\n\n#ifndef MAME_BUS_ISA_P1_FDC_H\n#define MAME_BUS_ISA_P1_FD...
231
15
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 32.09, "nodes": 136, "errors": 0, "source_hash": "e88c659e0f68cb32bee08bc765adcf43f2fd3f94457c364b2e02f3771703f58f", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,774
c
#pragma once /************************************************************************************************************************/ namespace SPACE_LIGHT{ /************************************************************ ************************************************************/ /*******************...
30.94
274
(translation_unit) "#pragma once \n \n/************************************************************************************************************************/ \nnamespace SPACE_LIGHT{ \n \n \n \n \n/************************************************************ \n********************************************************...
786
0
{"language": "c", "success": true, "metadata": {"lines": 274, "avg_line_length": 30.94, "nodes": 258, "errors": 0, "source_hash": "f683bb533cfd26ea368e6e3975b62db0ed31b2986abff505b4e756d07d6bb265", "categorized_nodes": 190}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
1,775
c
/* * The contents of this file are subject to the Mozilla Public * License Version 1.1 (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.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS * IS...
31.61
258
(translation_unit) "/*\n * The contents of this file are subject to the Mozilla Public\n * License Version 1.1 (the "License"); you may not use this file\n * except in compliance with the License. You may obtain a copy of\n * the License at http://www.mozilla.org/MPL/\n *\n * Software distributed under the License is d...
1,710
29
{"language": "c", "success": true, "metadata": {"lines": 258, "avg_line_length": 31.61, "nodes": 1089, "errors": 0, "source_hash": "8d0cf0e0a0e646d3db9e49ea3f320ed03bbfedbd16afae6d4a49eb9f4f12ca0d", "categorized_nodes": 689}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
1,776
c
// // AirPlayBgControlView.h // ZJPlayerSDK // // Created by leeco on 2019/7/15. // Copyright © 2019 zsw. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @protocol AirPlayBgControlViewDelegate <NSObject> /** 退出事件 */ - (void)backOut; - (void)changeDevice; @end @interface AirPlayBgContr...
22.48
21
(translation_unit) "//\n// AirPlayBgControlView.h\n// ZJPlayerSDK\n//\n// Created by leeco on 2019/7/15.\n// Copyright © 2019 zsw. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n@protocol AirPlayBgControlViewDelegate <NSObject>\n\n/**\n 退出事件\n */\n- (void)backOut;\n\n- (void)changeD...
103
12
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 22.48, "nodes": 66, "errors": 0, "source_hash": "15d9721c78ccdbccec92371ba3c190d560b5c15e22e0dbe46c3eef70bb28af59", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
1,777
c
// // AppDelegate.h // QSPlayer // // Created by wuqiushan on 2020/5/26. // Copyright © 2020 <EMAIL>. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
21.42
12
(translation_unit) "//\n// AppDelegate.h\n// QSPlayer\n//\n// Created by wuqiushan on 2020/5/26.\n// Copyright © 2020 <EMAIL>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface AppDelegate : UIResponder <UIApplicationDelegate>\n\n@property (strong, nonatomic) UIWindow *window;\n\n\n@end\n\n" (comm...
39
6
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 21.42, "nodes": 25, "errors": 0, "source_hash": "af560f8c8bcb724bbe9679df2149bcfa9aaa8a2b4675f2b9d758a246c5f2c822", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
1,778
c
#pragma once #include "Object.h" #include "../Common/WindowHelper.h" #include "../Presentation/LayoutEngine.h" namespace Ir { ////////////////////////////////////////////////////////////////////////// /// /// Application /// /// Wrapper class for all functionalities related to running a program. /// /// ///...
23.78
27
(translation_unit) "#pragma once\n\n#include "Object.h"\n\n#include "../Common/WindowHelper.h"\n\n#include "../Presentation/LayoutEngine.h"\n\nnamespace Ir\n{\n //////////////////////////////////////////////////////////////////////////\n ///\n /// Application\n ///\n /// Wrapper class for all functionalities related to...
123
3
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 23.78, "nodes": 61, "errors": 0, "source_hash": "8fb48b2f96d49c07dab5f7e120a93c601e270e89e10bd01e94e65d04756636e8", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
1,779
c
#include <stdio.h> #include <math.h> #include <ccore/display.h> #include <ccore/window.h> #include <ccore/opengl.h> #include <ccore/time.h> #include <ccNoise/ccNoise.h> #include <ccRandom/ccRandom.h> #ifdef WINDOWS #include <gl/GL.h> #else #include <GL/glew.h> #endif #define WIDTH 512 #define HEIGHT (256 + 128) #...
31.18
193
(translation_unit) "#include <stdio.h>\n#include <math.h>\n\n#include <ccore/display.h>\n#include <ccore/window.h>\n#include <ccore/opengl.h>\n#include <ccore/time.h>\n\n#include <ccNoise/ccNoise.h>\n#include <ccRandom/ccRandom.h>\n\n#ifdef WINDOWS\n#include <gl/GL.h>\n#else\n#include <GL/glew.h>\n#endif\n\n#define WID...
1,775
0
{"language": "c", "success": true, "metadata": {"lines": 193, "avg_line_length": 31.18, "nodes": 972, "errors": 0, "source_hash": "c79cc29b2ccc8b9c994a7dcd98dcb8df8b7086491dc892ec3837c6488847447d", "categorized_nodes": 732}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
1,780
c
/* Copyright (c) 2019, The University of Oxford. See LICENSE file. */ /* See "Spherical Harmonic Lighting: The Gritty Details", * <NAME>DC 2003. */ /* OUT is P_l^m(cos_theta) */ #define OSKAR_LEGENDRE1(FP, L, M, COS_THETA, SIN_THETA, OUT) {\ FP p0_ = (FP) 1;\ if (M > 0) {\ FP fact = (FP) 1;\ ...
52.97
34
(translation_unit) "/* Copyright (c) 2019, The University of Oxford. See LICENSE file. */\n\n/* See "Spherical Harmonic Lighting: The Gritty Details",\n * <NAME>DC 2003. */\n\n/* OUT is P_l^m(cos_theta) */\n#define OSKAR_LEGENDRE1(FP, L, M, COS_THETA, SIN_THETA, OUT) {\\n FP p0_ = (FP) 1;\\n if (M > 0) {\\n ...
117
3
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 52.97, "nodes": 75, "errors": 0, "source_hash": "2749c5ff4e6366285a5d48436e925d5c0f23b0895bce46d43ff63b5ddc1f56d3", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_function_def", "text": "#...
1,781
c
#ifndef PESSOA_FISICA_H #define PESSOA_FISICA_H #include "Pessoa.h" #include <string> using std::string; class PessoaFisica : public Pessoa { public: PessoaFisica(string n, string cpf) : Pessoa(n),cpf(cpf) {} PessoaFisica &setCPF(string c) {cpf = c; return *this;} string getCPF() const {return cpf;} priv...
20.5
16
(translation_unit) "#ifndef PESSOA_FISICA_H\n#define PESSOA_FISICA_H \n\n#include "Pessoa.h"\n\n#include <string>\nusing std::string;\n\nclass PessoaFisica : public Pessoa\n{\npublic:\n PessoaFisica(string n, string cpf) : Pessoa(n),cpf(cpf) {}\n\n PessoaFisica &setCPF(string c) {cpf = c; return *this;}\n\n string g...
114
6
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 20.5, "nodes": 67, "errors": 0, "source_hash": "55d599cb3dc33f806a88ee64c3299f174b340e930bc0d3231f38a9ad48c9b42f", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef P...
1,782
c
#include <stdlib.h> #include <stdint.h> #include "nb/memory_bot.h" #include "sparse_struct.h" uint32_t nb_sparse_bsearch_row(const nb_sparse_t *const A, uint32_t i, uint32_t col, int imin, int imax) { uint32_t index = (imin + imax) / 2; while (A->rows_index[i][index] != col && imin <= imax) { ...
27.37
27
(translation_unit) "#include <stdlib.h>\n#include <stdint.h>\n\n#include "nb/memory_bot.h"\n\n#include "sparse_struct.h"\n\nuint32_t nb_sparse_bsearch_row(const nb_sparse_t *const A,\n uint32_t i, uint32_t col, \n int imin, int imax)\n{\n uint32_t index = (imin + imax) / 2;\n while (A->rows_index[i][i...
297
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 27.37, "nodes": 195, "errors": 0, "source_hash": "7a818d159784c86ae172fc5fac575c9b214232022e113a4b6828557b2f13a096", "categorized_nodes": 147}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,783
c
// // Copyright(C) 1993-1996 Id Software, Inc. // Copyright(C) 2005-2014 <NAME> // // 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 2 // of the License, or (at your option) any ...
24.18
50
(translation_unit) "//\n// Copyright(C) 1993-1996 Id Software, Inc.\n// Copyright(C) 2005-2014 <NAME>\n//\n// This program is free software; you can redistribute it and/or\n// modify it under the terms of the GNU General Public License\n// as published by the Free Software Foundation; either version 2\n// of the Licens...
126
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 24.18, "nodes": 77, "errors": 0, "source_hash": "91011d2cbed6e5d66a3c7c7ce082277cdef2a7ac3e798cdb5004e28e60bb7ed1", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,784
c
/* * Copyright (c) 2018 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL...
31.46
89
(translation_unit) "/*\n * Copyright (c) 2018 <NAME> <<EMAIL>>\n *\n * Permission to use, copy, modify, and distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED "...
673
0
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 31.46, "nodes": 404, "errors": 0, "source_hash": "f1501065e4e373925327ed224820f49e445564751c0ca67b8fe720d1019d1012", "categorized_nodes": 291}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if defin...
1,785
c
/* * CSparse.c * * Created on: Jul 21, 2011 * Author: amatf */ #include "CSparse.h" /* allocate a sparse matrix (triplet form or compressed-column form) */ cs *cs_spalloc (csi m, csi n, csi nzmax) { cs *A = cs_calloc (1, sizeof (cs)) ; /* allocate the cs struct */ if (!A) return (NULL) ; ...
30.47
66
(translation_unit) "/*\n * CSparse.c\n *\n * Created on: Jul 21, 2011\n * Author: amatf\n */\n\n#include "CSparse.h"\n/* allocate a sparse matrix (triplet form or compressed-column form) */\ncs *cs_spalloc (csi m, csi n, csi nzmax)\n{\n cs *A = cs_calloc (1, sizeof (cs)) ; /* allocate the cs struct */\n ...
710
0
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 30.47, "nodes": 438, "errors": 0, "source_hash": "93916b5221980bd66fdcb473674d78782f47b378e03cc84d48ccbfc487e3f693", "categorized_nodes": 327}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,786
c
#pragma once #include "scene.h" #include "xek.h" class scene_manager { public: static void next(); static void prev(); static void start(const char* name, int width, int height); private: static void initialize(); static void mainLoop(); static void idle(); static void cleanup(); static void resize(GLFWwind...
36.2
25
(translation_unit) "#pragma once\n\n#include "scene.h"\n#include "xek.h"\n\nclass scene_manager {\npublic:\n static void next();\n static void prev();\n\n static void start(const char* name, int width, int height);\n\nprivate:\n static void initialize();\n static void mainLoop();\n static void idle();\n static void cle...
313
1
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 36.2, "nodes": 190, "errors": 0, "source_hash": "9a2b04cc69c5a3f65164f56413357bace51491c6ed3722fdb7059c117afe1fd6", "categorized_nodes": 118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
1,787
c
#ifndef SHA256 #define SHA256 #include "iw.h" #define SHA256_BLOCK_SIZE 64 #define LOAD32B(addr) \ ((__u32)((addr)[0] << 24) | ((addr)[1] << 16) | \ ((addr)[2] << 8) | (addr)[3]) #define STORE64B(addr, data) \ do { (addr)[0] = (__u8)((data) >> 56); (addr)[1] = (__u8)((data) >> 48); \ (addr)[2] = (__u8)((data) ...
37.67
46
(translation_unit) "#ifndef SHA256\n#define SHA256\n\n#include "iw.h"\n#define SHA256_BLOCK_SIZE 64\n\n#define LOAD32B(addr) \\n ((__u32)((addr)[0] << 24) | ((addr)[1] << 16) | \\n ((addr)[2] << 8) | (addr)[3])\n\n#define STORE64B(addr, data) \\ndo { (addr)[0] = (__u8)((data) >> 56); (addr)[1] = (__u8)((data) >> 48);...
179
0
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 37.67, "nodes": 128, "errors": 0, "source_hash": "20fb8d56ed180e1996867a0fbcc0954f8bf55a2763e6dd55062dbdb6e15745f3", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,788
c
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #define FactoryResetCmdHandlerId "factoryResetCmd" #define JsonFactoryResetClearTpm "clearTpm" #define JsonFactoryResetPartitionGuid "partitionGuid"
42
6
(translation_unit) "// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT License.\n\n#pragma once\n\n#define FactoryResetCmdHandlerId "factoryResetCmd"\n#define JsonFactoryResetClearTpm "clearTpm"\n#define JsonFactoryResetPartitionGuid "partitionGuid"\n" (comment) "// Copyright (c) ...
18
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 42.0, "nodes": 15, "errors": 0, "source_hash": "9f027ce4b41b57cd3b901eb8bb7e6e47884f356b385ca37f0ec4f69f0d866320", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once...
1,789
c
// // Created by yona on 11/5/16. // #ifndef EXPLORACNC_ECNCGCODE_H #define EXPLORACNC_ECNCGCODE_H #include "Vector3.h" #define GCODE_NUM(v) (int32_t(v)*100) #define FROM_GCODE_NUM(v) (int32_t(v)/100) ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////...
35.35
96
(translation_unit) "//\n// Created by yona on 11/5/16.\n//\n\n#ifndef EXPLORACNC_ECNCGCODE_H\n#define EXPLORACNC_ECNCGCODE_H\n\n#include "Vector3.h"\n\n#define GCODE_NUM(v) (int32_t(v)*100)\n#define FROM_GCODE_NUM(v) (int32_t(v)/100)\n\n///////////////////////////////////////////////////////////////////////////////////...
283
0
{"language": "c", "success": true, "metadata": {"lines": 96, "avg_line_length": 35.35, "nodes": 183, "errors": 0, "source_hash": "e23ef819ba35f8d860f844e1ee56c50503484335c18da3a49809e45faf15fa4a", "categorized_nodes": 123}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,790
c
//////////////////////////////////////////////////////////////////////////// // Created : 03.03.2008 // Author : <NAME> // Description : sphere - single triangle tests //////////////////////////////////////////////////////////////////////////// #ifndef TRIANGLE_SPHERE_H_INCLUDED #define TRIANGLE_SPHERE_H_INCLUD...
23.1
62
(translation_unit) "//////////////////////////////////////////////////////////////////////////// \n// Created : 03.03.2008 \n// Author : <NAME> \n// Description : sphere - single triangle tests \n//////////////////////////////////////////////////////////////////////////// \n#ifndef TRIANGLE_SPHERE_H_INCLUDED \n#defin...
246
11
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 23.1, "nodes": 136, "errors": 0, "source_hash": "11d9978dd00c77f2617bfca11e1d37d8f0eb09d2126533647284586e4fa4fe74", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,791
c
// Copyright 2021 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SRC_SYS_FUZZING_FRAMEWORK_ADAPTERS_LLVM_H_ #define SRC_SYS_FUZZING_FRAMEWORK_ADAPTERS_LLVM_H_ #include <fuchsia/fuzzer/cpp/fidl.h> #include <fuchs...
39.8
49
(translation_unit) "// Copyright 2021 The Fuchsia Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef SRC_SYS_FUZZING_FRAMEWORK_ADAPTERS_LLVM_H_\n#define SRC_SYS_FUZZING_FRAMEWORK_ADAPTERS_LLVM_H_\n\n#include <fuchsia/fuzzer/...
356
17
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 39.8, "nodes": 213, "errors": 0, "source_hash": "42b8940b99f864724695616797d44eae33b176d9583ab206d557a6691147cf56", "categorized_nodes": 161}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,792
c
/* { dg-do compile } */ /* { dg-options "-O2" } */ /* { dg-options "-O2 -mlp64" { target ia64-*-hpux* } } */ void copy_loop_ldouble (void *xdest, const void *xsrc, long roff, long soff, long len, lon...
26.27
22
(translation_unit) "/* { dg-do compile } */\n/* { dg-options "-O2" } */\n/* { dg-options "-O2 -mlp64" { target ia64-*-hpux* } } */\n\nvoid copy_loop_ldouble (void *xdest,\n const void *xsrc,\n long roff,\n long soff,\n long len,...
153
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 26.27, "nodes": 104, "errors": 0, "source_hash": "a10e655186a6ee1cbc46ef34399fd8af08556a11234f33a5f0973eec339e69a5", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "v...
1,793
c
#ifndef SUNXI_BUDGET_COOLING_H #define SUNXI_BUDGET_COOLING_H #include <linux/thermal.h> #include <linux/cpufreq.h> #define NOTIFY_INVALID NULL #define INVALID_FREQ (-1) #define CLUSTER_MAX (2) struct sunxi_cpufreq_cooling_table{ u32 cluster_freq[CLUSTER_MAX]; }; struct sunxi_hotplug_cooling_table{ u32 cluster...
26.98
45
(translation_unit) "#ifndef SUNXI_BUDGET_COOLING_H\n#define SUNXI_BUDGET_COOLING_H\n\n#include <linux/thermal.h>\n#include <linux/cpufreq.h>\n\n#define NOTIFY_INVALID NULL\n#define INVALID_FREQ (-1)\n#define CLUSTER_MAX (2)\n\nstruct sunxi_cpufreq_cooling_table{\n u32 cluster_freq[CLUSTER_MAX];\n};\n\nstruct sunxi_h...
246
0
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 26.98, "nodes": 179, "errors": 0, "source_hash": "166f073b9a4938c740d810f76f83ab2d6fca1fb62457b4666f941364d61be37a", "categorized_nodes": 143}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,794
c
#include "types.h" #include "stat.h" #include "user.h" // enum to store process state by name enum procstate { UNUSED, EMBRYO, SLEEPING, RUNNABLE, RUNNING, ZOMBIE }; // a character array to print correspding state names char *psstate[6] = {"Unused ", "Embryo ", "Sleeping ", "Runnable", "Running ", "Zombie "}; // ...
26.13
30
(translation_unit) "#include "types.h"\n#include "stat.h"\n#include "user.h"\n\n// enum to store process state by name\nenum procstate { UNUSED, EMBRYO, SLEEPING, RUNNABLE, RUNNING, ZOMBIE };\n\n// a character array to print correspding state names\nchar *psstate[6] = {"Unused ", "Embryo ", "Sleeping ", "Runnable", "...
209
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 26.13, "nodes": 99, "errors": 0, "source_hash": "2e5b206cc3fa5c4e5ea789f24a7f63be107ebed4a3c5bb442e4c9240cd3e0e89", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
1,795
c
// // SCParallaxPageLayouter.h // SCPageViewController // // Created by <NAME> on 15/02/2014. // Copyright (c) 2014 <NAME>. All rights reserved. // #import "SCPageLayouter.h" /** A SCPageLayouter subclass that adds a parallax effect when navigating between pages */ @interface SCParallaxPageLayouter : SCPageLayout...
28.64
11
(translation_unit) "//\n// SCParallaxPageLayouter.h\n// SCPageViewController\n//\n// Created by <NAME> on 15/02/2014.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n\n#import "SCPageLayouter.h"\n\n/** A SCPageLayouter subclass that adds a parallax effect when navigating between pages */\n@interface SCPara...
20
3
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 28.64, "nodes": 9, "errors": 0, "source_hash": "7fc63f8332cbee4c366f1a8974fa7536e6c9c49f49533e159f2a9ca1945ffaba", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"S...
1,796
c
#ifndef IP_PARSER_PARSER_XTOI #define IP_PARSER_PARSER_XTOI #include <string> #include <utility> #include "./byte.h" using namespace std; pair<int, int> xtoi(string s); #endif
21
8
(translation_unit) "#ifndef IP_PARSER_PARSER_XTOI\n#define IP_PARSER_PARSER_XTOI\n\n#include <string>\n#include <utility>\n\n#include "./byte.h"\n\nusing namespace std;\n\npair<int, int> xtoi(string s);\n\n#endif" (preproc_ifdef) "#ifndef IP_PARSER_PARSER_XTOI\n#define IP_PARSER_PARSER_XTOI\n\n#include <string>\n#inc...
45
2
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 21.0, "nodes": 35, "errors": 0, "source_hash": "9578bf46e9f6f0f982c805086c1d2f1eac7f1279b59e8cfbf2ac59fb7925a31a", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef IP...
1,797
c
// <copyright file="OperationGraphReader.h" company="Soup"> // Copyright (c) Soup. All rights reserved. // </copyright> #pragma once #include "OperationGraph.h" namespace Soup::Build::Runtime { /// <summary> /// The operation graph state reader /// </summary> export class OperationGraphReader { private: // B...
29.7
181
(translation_unit) " <copyright file="OperationGraphReader.h" company="Soup">\n// Copyright (c) Soup. All rights reserved.\n// </copyright>\n\n#pragma once\n#include "OperationGraph.h"\n\nnamespace Soup::Build::Runtime\n{\n /// <summary>\n /// The operation graph state reader\n /// </summary>\n export class OperationGr...
1,643
90
{"language": "c", "success": true, "metadata": {"lines": 181, "avg_line_length": 29.7, "nodes": 998, "errors": 0, "source_hash": "58b1b5e2ce525b36d0d7dcb3d2868b294e57e767339fcdee9144b1f7833f6092", "categorized_nodes": 662}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma o...
1,798
c
#ifndef _GRAPHICS_H_ #define _GRAPHICS_H_ #include <lcom/lcf.h> #include <machine/int86.h> #include <lcom/vbe.h> #include <minix/driver.h> #include <sys/mman.h> #include <math.h> #include "graphics_macros.h" #include "xpms.h" /** * @author <NAME> * @defgroup graphics Graphics * Basic graphics func...
30.25
146
(translation_unit) "#ifndef _GRAPHICS_H_ \n#define _GRAPHICS_H_ \n \n \n#include <lcom/lcf.h> \n#include <machine/int86.h> \n#include <lcom/vbe.h> \n#include <minix/driver.h> \n#include <sys/mman.h> \n#include <math.h> \n#include "graphics_macros.h" \n#include "xpms.h" \n \n/** \n * @author <NAME> \n * @defgroup graphi...
411
0
{"language": "c", "success": true, "metadata": {"lines": 146, "avg_line_length": 30.25, "nodes": 261, "errors": 0, "source_hash": "427dcb67b3e3381f136a982fb164c5553428abaf9fb93287783ae0d73b8a807e", "categorized_nodes": 174}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
1,799