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 header is generated by classdump-dyld 1.0 * on Saturday, June 1, 2019 at 6:50:59 PM Mountain Standard Time * Operating System: Version 12.1.1 (Build 16C5050a) * Image Source: /System/Library/PrivateFrameworks/HealthUI.framework/HealthUI * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>...
38.17
12
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Saturday, June 1, 2019 at 6:50:59 PM Mountain Standard Time\n* Operating System: Version 12.1.1 (Build 16C5050a)\n* Image Source: /System/Library/PrivateFrameworks/HealthUI.framework/HealthUI\n* classdump-dyld is licensed under GPLv3, Copyri...
50
5
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 38.17, "nodes": 30, "errors": 0, "source_hash": "79f4fa1095e3ef9a4392b69df5170dd10f7ae9ccd110b6bd0130a297211d3332", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "interface HKPick...
14,600
c
#pragma once #include "interfaces.h" #include <lightspeed/base/containers/arrayref.h> namespace Tempe { Value fnEval(IExprEnvironment& env, ArrayRef<Value> values); }
23.14
7
(translation_unit) "#pragma once\n#include "interfaces.h"\n#include <lightspeed/base/containers/arrayref.h>\n\nnamespace Tempe {\n\n Value fnEval(IExprEnvironment& env, ArrayRef<Value> values);\n\n\n}" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#inc...
40
2
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 23.14, "nodes": 27, "errors": 0, "source_hash": "07790fddbcb60dbeafbc32a2c95450d5a9bda624ba5af15ed7f2e3515e556368", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
14,601
c
#pragma once #include "tickdb/common.h" #include <dxapi/dxapi.h> #include "util/srw_lock.h" #include <unordered_map> namespace DxApiImpl { class TickDbImpl; // TODO: make all operations atomic later struct StreamInfo { std::string key; DxApi::StreamOptions options; }; class Ti...
37.28
120
(translation_unit) "#pragma once\n\n#include "tickdb/common.h"\n#include <dxapi/dxapi.h>\n#include "util/srw_lock.h"\n#include <unordered_map>\n\n\nnamespace DxApiImpl {\n\n class TickDbImpl;\n // TODO: make all operations atomic later\n\n struct StreamInfo {\n std::string key;\n DxApi::StreamOpt...
925
43
{"language": "c", "success": true, "metadata": {"lines": 120, "avg_line_length": 37.28, "nodes": 515, "errors": 0, "source_hash": "5416e4bb44932e7372033050f45fe2f88a6b916744fb73b5718f5cd25086b22e", "categorized_nodes": 351}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
14,602
c
#include <stdio.h> #include <time.h> void bye1(){puts("Goodbye");} void bye2(){puts("Farewell");} void hello(char* name, void (*bye_func)()){ printf("Hello %s!\n", name); bye_func(); } int main(int argc, char** argv){ char name[1024]; gets(name); srand(time(0)); if(rand() % 2) hello(bye1, name); // a mistake ...
22.38
16
(translation_unit) "#include <stdio.h>\n#include <time.h>\n\nvoid bye1(){puts("Goodbye");}\nvoid bye2(){puts("Farewell");}\n\nvoid hello(char* name, void (*bye_func)()){\n printf("Hello %s!\n", name);\n bye_func();\n}\n\n\nint main(int argc, char** argv){\n char name[1024];\n gets(name);\n srand(time(0));\n if(rand() %...
184
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 22.38, "nodes": 101, "errors": 0, "source_hash": "725ffbce902862afdcf8f68077d8ee09863abe90a41a71bbdaa9ae71743e1451", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
14,603
c
/* Fortunately nothing to do. */
33
1
(translation_unit) "/* Fortunately nothing to do. */\n" (comment) "/* Fortunately nothing to do. */"
2
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 33.0, "nodes": 0, "errors": 0, "source_hash": "2840bb3d4adfa7f79942a6a115fbce7acc8ffe64766364de281a15523d549528", "categorized_nodes": 0}, "ast": {"root": "translation_unit", "nodes": []}, "node_categories": {"declarations": {"functions": []...
14,604
c
// // BCChatClient.h // BlueChatLib // // Created by <NAME> on 11/06/2016. // Copyright © 2016 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import "BCChatManagerInterface.h" #import "BCChatServerInfo.h" /** * The chat client delegate which receives the chat client statuses and events. */ ...
33.72
88
(translation_unit) "//\n// BCChatClient.h\n// BlueChatLib\n//\n// Created by <NAME> on 11/06/2016.\n// Copyright © 2016 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "BCChatManagerInterface.h"\n#import "BCChatServerInfo.h"\n\n/**\n * The chat client delegate which receives the chat...
283
27
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 33.72, "nodes": 181, "errors": 0, "source_hash": "8af50c06afa5aecb2e06a9ddd07defbcd12187218ad74d5cc8e298059327f81a", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <...
14,605
c
#pragma once // Traits for R value reference. template<typename T> struct TIsRValueReference { static constexpr bool Value = false; }; template <typename T> struct TIsRValueReference<T&&> { static constexpr bool Value = true; };
18.25
12
(translation_unit) "#pragma once\n\n// Traits for R value reference.\ntemplate<typename T>\nstruct TIsRValueReference\n{\n static constexpr bool Value = false;\n};\n\ntemplate <typename T>\nstruct TIsRValueReference<T&&>\n{\n static constexpr bool Value = true;\n};\n" (preproc_call) "#pragma once\n" (preproc_dire...
65
5
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 18.25, "nodes": 47, "errors": 0, "source_hash": "8a3d9c5bf776cca3528b321ccdefe902188a4b997e40c62add4f8d14e8df9d36", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
14,606
c
#include <stdio.h> #include <stdlib.h> #include <conio.h> #include <string.h> #include <ctype.h> #include "validaciones.h" char getChar(char* mensaje) { char auxiliar; printf("%s",mensaje); fflush(stdin); scanf("%c",&auxiliar); return auxiliar; } int getInt(char* mensaje) { ...
16.32
41
(translation_unit) "#include <stdio.h> \n#include <stdlib.h> \n#include <conio.h> \n#include <string.h> \n#include <ctype.h> \n#include "validaciones.h" \n \n \nchar getChar(char* mensaje) \n{ \n char auxiliar; \n printf("%s",mensaje); \n fflush(stdin); \n scanf("%c",&auxiliar); \n return auxiliar; \n} \...
251
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 16.32, "nodes": 134, "errors": 0, "source_hash": "f0c617a0f3796ec1c04d0b71ee1128af93e75626b06a808d7c0eb4a844b7c9eb", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
14,607
c
#pragma once struct PteEntry { uint64_t valid : 1; // 0 uint64_t system : 1; // 1 uint64_t snooped : 1; // 2 uint64_t executable : 1; // 3 uint64_t readable : 1; // 4 uint64_t writeable : 1; // 5 uint64_t...
33.35
69
(translation_unit) "#pragma once\n\nstruct PteEntry {\n uint64_t valid : 1; // 0\n uint64_t system : 1; // 1\n uint64_t snooped : 1; // 2\n uint64_t executable : 1; // 3\n uint64_t readable : 1; // 4\n uint64_t writeable ...
405
1
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 33.35, "nodes": 268, "errors": 0, "source_hash": "e5dc3f39057927e97c2f7cb38e4f0095f661b1a022940a137a135dee85c43769", "categorized_nodes": 190}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
14,608
c
#ifndef ALLOCATOR_H_ #define ALLOCATOR_H_ #include <list.h> #include <math.h> #define BUDDY_ADDR_START 0x00000000 #define BUDDY_ADDR_END 0x3C000000 // #define BUDDY_ADDR_START 0x10000000 // #define BUDDY_ADDR_END 0x20000000 #define FRAME_SIZE 4096 #define FRAME_NUM ((BUDDY_ADDR_END-B...
26.88
43
(translation_unit) "#ifndef ALLOCATOR_H_\n#define ALLOCATOR_H_\n#include <list.h>\n#include <math.h>\n\n#define BUDDY_ADDR_START 0x00000000\n#define BUDDY_ADDR_END 0x3C000000\n// #define BUDDY_ADDR_START 0x10000000\n// #define BUDDY_ADDR_END 0x20000000\n#define FRAME_SIZE 4096\n#define FRAME_NU...
327
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 26.88, "nodes": 243, "errors": 0, "source_hash": "5fa6ef478841c4029c2beb3a2fe0b09783b76018c7769a63dab26d59e29ff6e1", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,609
c
/* Copyright (c) 2020-2021 <NAME> Distributed under the MIT license. Refer to the LICENSE file at the root directory for details. */ #ifndef WLIBC_MACROS_H #define WLIBC_MACROS_H #if BUILDING_WLIBC # ifdef WLIBC_DLL # define WLIBC_API __declspec(dllexport) # else # define WLIBC_API # endif #else # define ...
22.22
27
(translation_unit) "/*\n Copyright (c) 2020-2021 <NAME>\n\n Distributed under the MIT license.\n Refer to the LICENSE file at the root directory for details.\n*/\n\n#ifndef WLIBC_MACROS_H\n#define WLIBC_MACROS_H\n\n#if BUILDING_WLIBC\n# ifdef WLIBC_DLL\n# define WLIBC_API __declspec(dllexport)\n# else\n# define...
58
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 22.22, "nodes": 53, "errors": 0, "source_hash": "28dfb31c0d905e1a496f924d07b8b74465b01e0684bc5086511c627961fd8509", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,610
c
#include <alice/core.h> #include <alice/entity.h> #include <alice/input.h> #include <alice/graphics.h> #include <alice/resource.h> #include <alice/physics.h> typedef struct monkey_physics_t { bool panic; } monkey_physics_t; ALICE_API u32 ALICE_CALL alice_get_monkey_physics_size() { return sizeof(monkey_physics_t); ...
29.11
46
(translation_unit) "#include <alice/core.h>\n#include <alice/entity.h>\n#include <alice/input.h>\n#include <alice/graphics.h>\n#include <alice/resource.h>\n#include <alice/physics.h>\n\ntypedef struct monkey_physics_t {\n bool panic;\n} monkey_physics_t;\n\nALICE_API u32 ALICE_CALL alice_get_monkey_physics_size() {\n r...
395
0
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 29.11, "nodes": 243, "errors": 0, "source_hash": "8e708bfef69ccb747a141fab68aa57fdd12494b7f982534f19d97951885a805c", "categorized_nodes": 189}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,611
c
#ifndef COMMON_H #define COMMON_H /*********************************************************************** * * Common functions and defines. * ATmega328P (Arduino Uno), 16 MHz, AVR 8-bit Toolchain 3.6.2 * * Copyright (c) 2019 <NAME> * Dept. of Radio Electronics, Brno University of Technology, Czechia * This wo...
29.97
30
(translation_unit) "#ifndef COMMON_H\n#define COMMON_H\n\n/***********************************************************************\n * \n * Common functions and defines.\n * ATmega328P (Arduino Uno), 16 MHz, AVR 8-bit Toolchain 3.6.2\n *\n * Copyright (c) 2019 <NAME>\n * Dept. of Radio Electronics, Brno University of T...
29
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 29.97, "nodes": 19, "errors": 0, "source_hash": "78250bd98e590298bbf8ed02a5af6421f1835b9e689757a05ec8d7bf7a111ff0", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,612
c
#include <stdint.h> void upstr(uintptr_t as, uintptr_t len) { char *s = (char*) as; int l = len; for (int pos = 0; pos < l; pos++) { s[pos] = (((unsigned)s[pos] - 'a') & 0xff) < 26 ? s[pos] & 0x5f : s[pos]; } }
30.57
7
(translation_unit) "#include <stdint.h>\n\nvoid upstr(uintptr_t as, uintptr_t len) {\n char *s = (char*) as; int l = len;\n for (int pos = 0; pos < l; pos++) {\n s[pos] = (((unsigned)s[pos] - 'a') & 0xff) < 26 ? s[pos] & 0x5f : s[pos];\n }\n}\n" (preproc_include) "#include <stdint.h>\n" (#include) "#include...
120
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 30.57, "nodes": 80, "errors": 0, "source_hash": "0e783a75df553b71ada50bd4004c5047bdc4f7acb6934a629957f3e9fd3f9b6f", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
14,613
c
/* ** Purpose: Define message IDs for the Eyassat_if application ** ** Notes: ** None ** ** License: ** Written by <NAME>, licensed under the copyleft GNU General ** Public License (GPL). ** ** References: ** 1. OpenSatKit Object-based Application Developer's Guide. ** 2. cFS Application Developer's Guide. **...
26.14
36
(translation_unit) "/*\n** Purpose: Define message IDs for the Eyassat_if application\n**\n** Notes:\n** None\n**\n** License:\n** Written by <NAME>, licensed under the copyleft GNU General\n** Public License (GPL).\n**\n** References:\n** 1. OpenSatKit Object-based Application Developer's Guide.\n** 2. cFS A...
53
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 26.14, "nodes": 47, "errors": 0, "source_hash": "1483046a8c5283465624639fac66fdad044d29dc770e5b5ee5a9bb1de05e94f7", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,614
c
// // MCIMService.h // NPushMail // // Created by admin on 3/3/16. // Copyright © 2016 sprite. All rights reserved. // #import <Foundation/Foundation.h> #import "MCIMClient.h" @interface MCIMService : NSObject @property (atomic,assign,readonly) BOOL isRunning; @property (nonatomic,weak) MCIMClient *client; - (i...
23.88
16
(translation_unit) "//\n// MCIMService.h\n// NPushMail\n//\n// Created by admin on 3/3/16.\n// Copyright © 2016 sprite. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "MCIMClient.h"\n\n@interface MCIMService : NSObject\n\n@property (atomic,assign,readonly) BOOL isRunning;\n@property (nonatom...
97
11
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 23.88, "nodes": 59, "errors": 0, "source_hash": "67c653afbbd0c657ed27e822c5578f74cff9a3a1798fbb1632d3170c022ef72f", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
14,615
c
#ifndef PASSAGEMAINWINDOW_H #define PASSAGEMAINWINDOW_H #include <QMainWindow> #include <QResizeEvent> class DocPassage; // 文档类型 class DocPage; // 文档中的某一页 class PassageMainWindow : public QMainWindow { Q_OBJECT public: explicit PassageMainWindow(QWidget *parent = 0); ~PassageMainWindow(); ...
23.95
22
(translation_unit) "#ifndef PASSAGEMAINWINDOW_H\n#define PASSAGEMAINWINDOW_H\n\n#include <QMainWindow>\n#include <QResizeEvent>\n\nclass DocPassage; // 文档类型\nclass DocPage; // 文档中的某一页\n\nclass PassageMainWindow : public QMainWindow\n{\n Q_OBJECT\npublic:\n explicit PassageMainWindow(QWidget *parent...
127
4
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 23.95, "nodes": 89, "errors": 0, "source_hash": "ab11cf9d99658ee8ce41d926ce494a090abb48a02db773279e7d0da8e4593610", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,616
c
/** * __ ____ * / /__ _ __ / __/ __ * / //_/(_)/ /_ / / ___ ____ ___ __ __ / /_ * / ,< / // __/_\ \ / _ \ / __// _ \/ // // __/ * /_/|_|/_/ \__//___// .__//_/ \___/\_,_/ \__/ * /_/ github.com/KitSprout * * @file kComman...
38.32
44
(translation_unit) "/**\n * __ ____\n * / /__ _ __ / __/ __ \n * / //_/(_)/ /_ / / ___ ____ ___ __ __ / /_ \n * / ,< / // __/_\ \ / _ \ / __// _ \/ // // __/ \n * /_/|_|/_/ \__//___// .__//_/ \___/\_,_/ \__/ \n * /_/ github.com/KitSprout ...
165
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 38.32, "nodes": 110, "errors": 0, "source_hash": "f1b14d4f9e4f36878e4e700ca4ee9a3578b0739dc4cbcb3fb8219645d410ef3d", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,617
c
/***********************license start*************** * Copyright (c) 2003-2010 <NAME> (<EMAIL>). All rights * reserved. * * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source cod...
34.29
136
(translation_unit) "/***********************license start***************\n * Copyright (c) 2003-2010 <NAME> (<EMAIL>). All rights\n * reserved.\n *\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are\n * met:\n *\n * * ...
460
0
{"language": "c", "success": true, "metadata": {"lines": 136, "avg_line_length": 34.29, "nodes": 312, "errors": 0, "source_hash": "c8243d5bcbdb6e026fed05db4a1e09ceb7865204de7e2f244e5e61dbb2ca31d1", "categorized_nodes": 246}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
14,618
c
// // FRSelectMusicViewController.h // FRPlayer // // Created by fmouer on 2019/8/25. // Copyright © 2019 xiaopeng. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface FRSelectMusicViewController : UIViewController @end NS_ASSUME_NONNULL_END
22.08
12
(translation_unit) "//\n// FRSelectMusicViewController.h\n// FRPlayer\n//\n// Created by fmouer on 2019/8/25.\n// Copyright © 2019 xiaopeng. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface FRSelectMusicViewController : UIViewController\n\n@end\n\nNS_ASSUME_NONNULL_END\n"...
27
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 22.08, "nodes": 14, "errors": 0, "source_hash": "0847dc426a69e5d77f49bcedbe04aa5df1c228cac6917e55aa5a516c2e884eac", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UI...
14,619
c
// @Copyright 2007 <NAME> // #ifndef __LOGGING__ #define __LOGGING__ #include <iostream> using namespace std; enum { TRACE, STATS, TIMING }; #ifdef _LOGGING map<int,ostream*> slog; #define LOGV(ilog,name) do { (*slog[ilog])<<__FILE__<<" ["<<__LINE__<<"] : "<<#name<<" = "<<(name)<< std::endl;} while(false) #defin...
28.23
61
(translation_unit) "// @Copyright 2007 <NAME>\n// \n#ifndef __LOGGING__\n#define __LOGGING__\n\n#include <iostream>\n\nusing namespace std;\n\n\nenum { TRACE, STATS, TIMING };\n\n#ifdef _LOGGING\n\nmap<int,ostream*> slog;\n#define LOGV(ilog,name) do { (*slog[ilog])<<__FILE__<<" ["<<__LINE__<<"] : "<<#name<<" = "<<(name...
135
2
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 28.23, "nodes": 97, "errors": 0, "source_hash": "76e1fbce99630ded6ab2832a6d3ae27c064df714327493ea741875de13806473", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,620
c
// // NSDecimalNumber+Easy.h // YHCategory // // Created by FengYinghao on 2021/9/15. // Copyright (c) 2021 FyhSky. All rights reserved. // #import <Foundation/Foundation.h> typedef NS_ENUM(NSInteger, SICalculationType) { SICalculationAdd, SICalculationSubtract, SICalculationMultiply, SICalculatio...
41.03
31
(translation_unit) "//\n// NSDecimalNumber+Easy.h\n// YHCategory\n//\n// Created by FengYinghao on 2021/9/15.\n// Copyright (c) 2021 FyhSky. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\ntypedef NS_ENUM(NSInteger, SICalculationType) {\n SICalculationAdd,\n SICalculationSubtract,\n SICalc...
311
24
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 41.03, "nodes": 188, "errors": 0, "source_hash": "b10bcbdfeaaf86c140784b99b110bffabca3e162f901c3a16dad6d499d41a584", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
14,621
c
#include <stdio.h> #include <omp.h> int main() { int x = 0; #pragma omp parallel { x = x + 1; printf("%d", x); // Produces a read-write conflict } printf("\n\n"); int y = 0; #pragma omp parallel { #pragma omp critical { y = y + 1; printf("%d", y);...
16.71
21
(translation_unit) "#include <stdio.h>\n#include <omp.h>\n\nint main()\n{\n int x = 0;\n#pragma omp parallel\n {\n x = x + 1;\n printf("%d", x); // Produces a read-write conflict\n }\n printf("\n\n");\n int y = 0;\n#pragma omp parallel\n {\n#pragma omp critical\n {\n y ...
107
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 16.71, "nodes": 62, "errors": 0, "source_hash": "90e43dbd23f06835fe39051e02e20ebfadbf115d52aeaa6d370a52baf0964fc5", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
14,622
c
// // UIButton+Custom.h // Copyright © 2015年 Livesxu. All rights reserved. // #import <UIKit/UIKit.h> @interface UIButton (Custom) /** bgImage + title btn @param frame frame @param title title @param font font @param tc TitleColor @param image BackgroundImage @return btn */ + (UIButton *)buttonWithNomalF...
24.14
56
(translation_unit) "//\n// UIButton+Custom.h\n\n// Copyright © 2015年 Livesxu. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIButton (Custom)\n\n/**\n bgImage + title btn\n\n @param frame frame\n @param title title\n @param font font\n @param tc TitleColor\n @param image BackgroundImage\n @return ...
237
16
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 24.14, "nodes": 145, "errors": 0, "source_hash": "e518ca6f51c66b5f5968cb4080d705947250b424114f8cbed1470a58b0802d4d", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UI...
14,623
c
#ifndef CQChartsParallelPlot_H #define CQChartsParallelPlot_H #include <CQChartsPlot.h> #include <CQChartsPlotType.h> #include <CQChartsPlotObj.h> #include <CQChartsData.h> //--- /*! * \brief Parallel plot type * \ingroup Charts */ class CQChartsParallelPlotType : public CQChartsPlotType { public: CQChartsPara...
37.39
153
(ERROR) "#ifndef CQChartsParallelPlot_H\n#define CQChartsParallelPlot_H\n\n#include <CQChartsPlot.h>\n#include <CQChartsPlotType.h>\n#include <CQChartsPlotObj.h>\n#include <CQChartsData.h>\n\n//---\n\n/*!\n * \brief Parallel plot type\n * \ingroup Charts\n */\nclass CQChartsParallelPlotType : public CQChartsPlotType {\...
1,283
89
{"language": "c", "success": true, "metadata": {"lines": 153, "avg_line_length": 37.39, "nodes": 687, "errors": 0, "source_hash": "23dc0796eb220e49af90e4a021aded30e04bad27c08ae96f3368e08646aafa03", "categorized_nodes": 471}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef CQChartsParallel...
14,624
c
#ifndef __QVTK_DENTAL_IMPLANT_H__ #define __QVTK_DENTAL_IMPLANT_H__ #pragma once // me #include "QvtkAnnotationPolyData.h" #include "data_export.h" namespace Q { namespace vtk { class DATA_EXPORT DentalImplant : public AnnotationPolyData { Q_OBJECT; Q_VTK_DATA_H( DentalImplant, Q_VTK_KEY(ToothPositio...
24.23
66
(translation_unit) "#ifndef __QVTK_DENTAL_IMPLANT_H__\n#define __QVTK_DENTAL_IMPLANT_H__\n#pragma once\n// me\n#include "QvtkAnnotationPolyData.h"\n#include "data_export.h"\nnamespace Q {\n namespace vtk {\n class DATA_EXPORT DentalImplant : public AnnotationPolyData\n {\n Q_OBJECT;\n Q_VTK_DATA_H(\n DentalImp...
397
18
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 24.23, "nodes": 253, "errors": 0, "source_hash": "7736f19f93d9067d3f39e9928b8f9735daa6736561e895cf09e59ef81b2b9270", "categorized_nodes": 182}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef __QVTK...
14,625
c
#ifndef MM_TLS_H #define MM_TLS_H /* * machinarium. * * cooperative multitasking engine. */ void mm_tls_engine_init(void); void mm_tls_engine_free(void); static inline int mm_tls_is_active(mm_io_t *io) { return io->tls_ssl != NULL; } void mm_tls_init(mm_io_t *); void mm_tls_free(mm_io_t *); void mm_tls_error_r...
17.27
37
(translation_unit) "#ifndef MM_TLS_H\n#define MM_TLS_H\n\n/*\n * machinarium.\n *\n * cooperative multitasking engine.\n */\n\nvoid\nmm_tls_engine_init(void);\nvoid\nmm_tls_engine_free(void);\n\nstatic inline int\nmm_tls_is_active(mm_io_t *io)\n{\n return io->tls_ssl != NULL;\n}\n\nvoid\nmm_tls_init(mm_io_t *);\nvoid\n...
221
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 17.27, "nodes": 163, "errors": 0, "source_hash": "b542c3f641582b8a39bb17809a11b16d2957cd230eebbd696c71a21346567aab", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,626
c
// // PickTagView.h // PickTag // // Created by Somiya on 2019/2/24. // Copyright © 2019 Somiya. All rights reserved. // #import <UIKit/UIKit.h> @protocol PickTagDelegate <NSObject> - (void)confirmDidClick:(NSString *)tag; - (void)addTagDidClick:(UIAlertController *)alertVC; @end @interface PickTagView : UIView @...
22.38
24
(translation_unit) "//\n// PickTagView.h\n// PickTag\n//\n// Created by Somiya on 2019/2/24.\n// Copyright © 2019 Somiya. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n@protocol PickTagDelegate <NSObject>\n- (void)confirmDidClick:(NSString *)tag;\n- (void)addTagDidClick:(UIAlertController *)alertVC;\n@end\n\...
147
16
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 22.38, "nodes": 89, "errors": 0, "source_hash": "0627ee0f8995009eca1fbd854beb052d3d711c79268179fc37e1cb587e126cc6", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
14,627
c
/* * (C) 2021 MEAN00 <EMAIL> * See license file */ #pragma once #include "lnPeripherals.h" enum lnADC_DIVIDER { lnADC_CLOCK_DIV_BY_2=0, lnADC_CLOCK_DIV_BY_4=1, lnADC_CLOCK_DIV_BY_6=2, lnADC_CLOCK_DIV_BY_8=3, //lnADC_CLOCK_DIV_BY_2=4, lnADC_CLOCK_DIV_BY_12=5, //lnADC_CLOCK_DIV_BY_8=6,...
22.17
29
(translation_unit) "/*\n * (C) 2021 MEAN00 <EMAIL>\n * See license file\n */\n\n\n#pragma once\n#include "lnPeripherals.h"\n\nenum lnADC_DIVIDER\n{\n lnADC_CLOCK_DIV_BY_2=0,\n lnADC_CLOCK_DIV_BY_4=1,\n lnADC_CLOCK_DIV_BY_6=2,\n lnADC_CLOCK_DIV_BY_8=3,\n //lnADC_CLOCK_DIV_BY_2=4,\n lnADC_CLOCK_DIV_BY...
137
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 22.17, "nodes": 78, "errors": 0, "source_hash": "7ba946ecb82a48c9b326611aa95e3c858c284177034b4ac987beedcb0618d24e", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
14,628
c
#ifndef MEMORY_H #define MEMORY_H #define MALLOC_FAIL_CHECK(__ptr_in) \ do { \ if(!(__ptr_in)) \ { ...
69.53
15
(translation_unit) "#ifndef MEMORY_H\n\n#define MEMORY_H\n#define MALLOC_FAIL_CHECK(__ptr_in) \\ndo { \\n if(!(__ptr_in)) \\n { ...
27
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 69.53, "nodes": 20, "errors": 0, "source_hash": "9e2411cd094e94920c37d664d10e08b7b2683352c816b17b1464058629dce1ff", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,629
c
/** * Ecbdirect.h * * Copyright (c) 1999 Microsoft Corporation */ #if _MSC_VER > 1000 #pragma once #endif #ifndef _Ecbdirect_H #define _Ecbdirect_H ///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////...
23.65
48
(translation_unit) "/** \n * Ecbdirect.h \n * \n * Copyright (c) 1999 Microsoft Corporation \n */ \n \n#if _MSC_VER > 1000 \n#pragma once \n#endif \n \n#ifndef _Ecbdirect_H \n#define _Ecbdirect_H \n \n///////////////////////////////////////////////////////////////////////////// \n///////////////////////////////////////...
111
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 23.65, "nodes": 80, "errors": 0, "source_hash": "23be725e54323cdfa3938b26e97e20b9c51883f6bb29bf29eea321f2e0f94ec7", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if _MSC_VE...
14,630
c
#include <stdlib.h> #include <stdarg.h> #ifndef __STDIO_H #define __STDIO_H /** * Sends formatted output to a string pointer (*str) **/ int sprintf(char *str, const char *format, ...); /** * Writes formatted output to a character array (*str) up to a maximum amount of characters (size) **/ int snprintf(char *str, si...
33.83
29
(translation_unit) "#include <stdlib.h>\n#include <stdarg.h>\n\n#ifndef __STDIO_H\n#define __STDIO_H\n\n/**\n* Sends formatted output to a string pointer (*str)\n**/\nint sprintf(char *str, const char *format, ...);\n\n/**\n* Writes formatted output to a character array (*str) up to a maximum amount of characters (size...
179
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 33.83, "nodes": 122, "errors": 0, "source_hash": "634b112488fc1f93a3a8217eeac5c1fe600bf0f68f15d8052774b50b49a2033b", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
14,631
c
/* * Copyright 2017, Data61 * Commonwealth Scientific and Industrial Research Organisation (CSIRO) * ABN 41 687 119 230. * * This software may be distributed and modified according to the terms of * the BSD 2-Clause license. Note that NO WARRANTY is provided. * See "LICENSE_BSD2.txt" for details. * * @TAG(DATA...
31.32
194
(translation_unit) "/*\n * Copyright 2017, Data61\n * Commonwealth Scientific and Industrial Research Organisation (CSIRO)\n * ABN 41 687 119 230.\n *\n * This software may be distributed and modified according to the terms of\n * the BSD 2-Clause license. Note that NO WARRANTY is provided.\n * See "LICENSE_BSD2.txt" f...
1,709
0
{"language": "c", "success": true, "metadata": {"lines": 194, "avg_line_length": 31.32, "nodes": 1064, "errors": 0, "source_hash": "75f1b3f0d8053d8fa90fce988ea25de58e4da04709e14c923feb2797ce6452b8", "categorized_nodes": 754}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
14,632
c
/* $OpenBSD: varargs.h,v 1.1 2005/04/01 10:40:48 mickey Exp $ */ #ifndef _MACHINE_VARARGS_H_ #define _MACHINE_VARARGS_H_ #include <machine/stdarg.h> #define __va_ellipsis ... #define va_alist __builtin_va_alist #define va_dcl long __builtin_va_alist; __va_ellipsis #undef va_start #define va_start(ap) \ ((ap) = (...
37.2
10
(translation_unit) "/* $OpenBSD: varargs.h,v 1.1 2005/04/01 10:40:48 mickey Exp $ */\n\n#ifndef _MACHINE_VARARGS_H_\n#define _MACHINE_VARARGS_H_\n\n#include <machine/stdarg.h>\n\n#define __va_ellipsis ...\n\n#define va_alist __builtin_va_alist\n#define va_dcl long __builtin_va_alist; __va_ellipsis\n\n#undef va_start\n...
36
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 37.2, "nodes": 30, "errors": 0, "source_hash": "f2d4d6e71adf3d35f140d347fb8c8bac47347176d7e5ce9e0c5129ee93fbd5ff", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
14,633
c
/*! * @brief Returns the last Win32 error as a char array. * @note The returned string is allocated with MALLOC() and MUST be FREEd * manually. */ char* get_last_error_string(void);
25.57
7
(translation_unit) "/*!\n * @brief Returns the last Win32 error as a char array.\n * @note The returned string is allocated with MALLOC() and MUST be FREEd\n * manually.\n */\nchar*\nget_last_error_string(void);\n" (comment) "/*!\n * @brief Returns the last Win32 error as a char array.\n * @note The returned string i...
14
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 25.57, "nodes": 9, "errors": 0, "source_hash": "1972a73892e9d067b8ed4781f2d2ac8c7ba4a1f4223fbd90668bb1019abd9943", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "char*\nget_la...
14,634
c
// TCMFoundation.h // TCMFoundation // // Created by <NAME> on Thu Mar 31 2005. #import "TCMDebug.h" #import "NSDateTCMAdditions.h" #import "NSDataTCMAdditions.h" #import "NSDictionaryTCMAdditions.h" #import "NSNetServiceTCMAdditions.h" #import "NSRangeTCMAdditions.h" #import "NSStringTCMAdditions.h" #import "TCMBe...
27.62
13
(translation_unit) "// TCMFoundation.h\n// TCMFoundation\n//\n// Created by <NAME> on Thu Mar 31 2005.\n\n#import "TCMDebug.h"\n#import "NSDateTCMAdditions.h"\n#import "NSDataTCMAdditions.h"\n#import "NSDictionaryTCMAdditions.h"\n#import "NSNetServiceTCMAdditions.h"\n#import "NSRangeTCMAdditions.h"\n#import "NSStrin...
32
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 27.62, "nodes": 27, "errors": 0, "source_hash": "1df1c8e0589a3eb44ba8ead4a6991480a5b2b031d5a57113322967be33d49fe4", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
14,635
c
#import <UIKit/UIKit.h> #import "Mixpanel.h" #import "MPSurvey.h" @protocol MPSurveyNavigationControllerDelegate; @interface MPSurveyNavigationController : UIViewController @property(nonatomic,retain) MPSurvey *survey; @property(nonatomic,retain) UIImage *backgroundImage; @property(nonatomic,assign) id<MPSurveyNavi...
43.33
12
(translation_unit) "#import <UIKit/UIKit.h>\n\n#import "Mixpanel.h"\n#import "MPSurvey.h"\n\n@protocol MPSurveyNavigationControllerDelegate;\n\n@interface MPSurveyNavigationController : UIViewController\n\n@property(nonatomic,retain) MPSurvey *survey;\n@property(nonatomic,retain) UIImage *backgroundImage;\n@property(no...
114
24
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 43.33, "nodes": 88, "errors": 0, "source_hash": "b13b695e0bb77dda7b083a3fd8e03a67acbc6ff1ee0312966fc01ed650625a3e", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
14,636
c
/*++ Copyright (c) 1990-1995, Microsoft Corporation All rights reserved. Module Name: privcomd.h Abstract: This module contains the private header information for the Win32 common dialogs. Revision History: --*/ #ifndef COMDLG_PRIVCOMD #define COMDLG_PRIVCOMD #ifdef __cplu...
19.74
341
(translation_unit) "/*++ \n \nCopyright (c) 1990-1995, Microsoft Corporation All rights reserved. \n \nModule Name: \n \n privcomd.h \n \nAbstract: \n \n This module contains the private header information for the Win32 \n common dialogs. \n \nRevision History: \n \n--*/ \n \n \n \n#ifndef COMDLG_PRIVCOMD \n...
994
4
{"language": "c", "success": true, "metadata": {"lines": 341, "avg_line_length": 19.74, "nodes": 767, "errors": 0, "source_hash": "b5185947d2d4dbf80f47f41adefa1fdb95f7499055eb423f992dba39424b5997", "categorized_nodes": 477}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef COMDL...
14,637
c
#include <stdio.h> #include <string.h> #define maxnum 100 int n=0; struct data { char name[20]; int number; char time[10]; }data[maxnum]; void add() { printf("用户姓名:"); scanf("%s",data[n].name); printf("用餐人数:"); scanf("%d",&data[n].number); printf("用餐时间:"); scanf("%s",data[n].time)...
18.28
95
(translation_unit) "#include <stdio.h>\n#include <string.h>\n#define maxnum 100\n\nint n=0;\n\nstruct data\n{\n char name[20];\n int number;\n char time[10];\n}data[maxnum];\n\nvoid add()\n{\n printf("用户姓名:");\n scanf("%s",data[n].name);\n printf("用餐人数:");\n scanf("%d",&data[n].number);\n printf...
815
0
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 18.28, "nodes": 388, "errors": 0, "source_hash": "20a612e0ccb21b9fc72a1a462838c9a574dc3c39399ae5b732df99069d6183de", "categorized_nodes": 289}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,638
c
#include "tree.h" #define LSB(N) ((N) & -(N)) size_t TYPED(sizeForSegmentTree)(size_t n) { if (n == LSB(n)) { return 2*n - 1; } else { do { n -= LSB(n); } while (n != LSB(n)); return 4*n - 1; } } TYPE* TYPED(createSegmentTree)(size_t n) { size_t size = TYP...
30.04
78
(translation_unit) "#include "tree.h"\n\n#define LSB(N) ((N) & -(N))\n\nsize_t TYPED(sizeForSegmentTree)(size_t n) {\n if (n == LSB(n)) {\n return 2*n - 1;\n } else {\n do {\n n -= LSB(n);\n } while (n != LSB(n));\n return 4*n - 1;\n }\n}\n\nTYPE* TYPED(createSegmentTree)...
1,014
0
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 30.04, "nodes": 659, "errors": 0, "source_hash": "07c04215a72afc645d5870986a68ae0503a63c9c28224e619bb1160f4cd0f32b", "categorized_nodes": 451}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,639
c
// C Program for Message Queue (Reader Process) #include <stdio.h> #include <sys/ipc.h> #include <string.h> #include<unistd.h> #include <sys/msg.h> #define MAX 100 // structure for message queue struct mesg_buffer { long mesg_type; char mesg_text[100]; } message; struct query_buffer { long sender; char mesg_text[...
22.05
91
(translation_unit) "// C Program for Message Queue (Reader Process)\n#include <stdio.h>\n#include <sys/ipc.h>\n#include <string.h>\n#include<unistd.h>\n#include <sys/msg.h>\n#define MAX 100\n\n// structure for message queue\nstruct mesg_buffer {\n long mesg_type;\n char mesg_text[100];\n} message;\n\nstruct query_buffe...
622
0
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 22.05, "nodes": 341, "errors": 0, "source_hash": "afa85d5d484bb7bee092b6fdc46b95fa251def6ececae1c03e9e60cec03dd28b", "categorized_nodes": 257}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,640
c
#ifndef IGRIS_DEFS_IO_H #define IGRIS_DEFS_IO_H #define IO_NOBLOCK 0x01 #define IO_HOTLOOP 0x02 #define IO_ONLYWAIT 0x04 #endif
20.33
6
(translation_unit) "#ifndef IGRIS_DEFS_IO_H\n#define IGRIS_DEFS_IO_H\n\n#define IO_NOBLOCK 0x01\n#define IO_HOTLOOP 0x02\n#define IO_ONLYWAIT 0x04\n\n#endif\n" (preproc_ifdef) "#ifndef IGRIS_DEFS_IO_H\n#define IGRIS_DEFS_IO_H\n\n#define IO_NOBLOCK 0x01\n#define IO_HOTLOOP 0x02\n#define IO_ONLYWAIT 0x04\n\n#endif" ...
20
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 20.33, "nodes": 19, "errors": 0, "source_hash": "1da6ebaead2e7e4f50f92b01bc8fc5821b367bb00070cf2bbcb311c6212ebed4", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef IG...
14,641
c
#pragma once #include <dirent.h> #include <vector> #include <memory> #include "commons.h" #include "turbo_jpeg_decoder.h" #include "reader_factory.h" #include "timing_debug.h" #include "loader_module.h" class ImageReadAndDecode { public: ImageReadAndDecode(); ~ImageReadAndDecode(); size_t count(); voi...
31.67
48
(translation_unit) "#pragma once\n#include <dirent.h>\n#include <vector>\n#include <memory>\n#include "commons.h"\n#include "turbo_jpeg_decoder.h"\n#include "reader_factory.h"\n#include "timing_debug.h"\n#include "loader_module.h"\n\n\nclass ImageReadAndDecode\n{\npublic:\n ImageReadAndDecode();\n ~ImageReadAndDe...
299
8
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 31.67, "nodes": 199, "errors": 0, "source_hash": "8388c4d43fb9160ce4de25a4f06b4fd88d4094de40e2cec3842f8f43af459c71", "categorized_nodes": 136}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
14,642
c
#ifndef __Pipeline_h__ #define __Pipeline_h__ #include <nan.h> #include <gst/gst.h> #include "GLibHelpers.h" class Pipeline : public Nan::ObjectWrap { public: static void Init( Local<Object> exports ); void play(); void pause(); void stop(); gboolean seek(gint64 time_nanoseconds, GstSeekFlags flags); ...
24.64
56
(translation_unit) "#ifndef __Pipeline_h__\n#define __Pipeline_h__\n\n#include <nan.h>\n#include <gst/gst.h>\n\n#include "GLibHelpers.h"\n\nclass Pipeline : public Nan::ObjectWrap {\n public:\n static void Init( Local<Object> exports );\n \n void play();\n void pause();\n void stop();\n gboolean seek(gint64 time_...
449
5
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 24.64, "nodes": 259, "errors": 0, "source_hash": "604cd64e875903962b8f2bec7548d419d75f905b5ee407fd7f4390629b3853f1", "categorized_nodes": 172}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,643
c
// //#ifndef _MODULE_PHYSICAL_ //#define _MODULE_PHYSICAL_ // //#include "core/types/types.h" //#include "core/utils/armodule.h" // //class ModulePhysical //{ //public: // PHYS_API static void ARMODULE_DEFINITION; //}; // //#endif//_MODULE_PHYSICAL_
16.86
14
(translation_unit) "//\n//#ifndef _MODULE_PHYSICAL_\n//#define _MODULE_PHYSICAL_\n//\n//#include "core/types/types.h"\n//#include "core/utils/armodule.h"\n//\n//class ModulePhysical\n//{\n//public:\n// PHYS_API static void ARMODULE_DEFINITION;\n//};\n//\n//#endif//_MODULE_PHYSICAL_" (comment) "//" (comment) "//#ifn...
15
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 16.86, "nodes": 0, "errors": 0, "source_hash": "9e9644dd7ff95221420d2193ebd2f186b525e7aeef4b986e11d041b1be5a6a44", "categorized_nodes": 0}, "ast": {"root": "translation_unit", "nodes": []}, "node_categories": {"declarations": {"functions": ...
14,644
c
#include <sstream> #include <vector> #include <cxxtest/TestSuite.h> #include <libgeodecomp/misc/apitraits.h> #include <libgeodecomp/misc/testhelper.h> #include <libgeodecomp/storage/grid.h> #include <libgeodecomp/storage/soagrid.h> #include <libgeodecomp/storage/updatefunctor.h> #include <libgeodecomp/storage/updatefun...
35.37
241
(translation_unit) "#include <sstream>\n#include <vector>\n#include <cxxtest/TestSuite.h>\n#include <libgeodecomp/misc/apitraits.h>\n#include <libgeodecomp/misc/testhelper.h>\n#include <libgeodecomp/storage/grid.h>\n#include <libgeodecomp/storage/soagrid.h>\n#include <libgeodecomp/storage/updatefunctor.h>\n#include <li...
2,670
76
{"language": "c", "success": true, "metadata": {"lines": 241, "avg_line_length": 35.37, "nodes": 1669, "errors": 0, "source_hash": "34cb766db278eddf90fca8f5afa702abe8587f1d0512f91eae21fa16f68ed1f5", "categorized_nodes": 1173}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
14,645
c
#pragma once #include "../components/button.h" #include "../components/motors/servo.h" #include "../components/motors/stepper.h" #include "../globals/config.h" #include "../utils/waiter.h" class Robot { public: enum class State { Paused, Waiting, Working }; St...
22.52
42
(translation_unit) "#pragma once\n\n#include "../components/button.h"\n#include "../components/motors/servo.h"\n#include "../components/motors/stepper.h"\n#include "../globals/config.h"\n#include "../utils/waiter.h"\n\nclass Robot {\n public:\n enum class State { Paused,\n Waiting,\n ...
257
2
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 22.52, "nodes": 163, "errors": 0, "source_hash": "cc38df5fbd73b28e1c9a3626d40acd496f259bfb268fea91ab755fcb30167098", "categorized_nodes": 118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
14,646
c
/* Html_Table_Editor https://github.com/rickycorte/Html_Table_Editor Copyright (c) 2016 <NAME> Licenced under Apache 2.0 Licence http://www.apache.org/licenses/LICENSE-2.0 */ #pragma once #ifndef Common_H // prevent multiple declarations #define Common_H #include "CustomExceptions.h" #include <string> #include...
38.18
38
(translation_unit) "/*\n Html_Table_Editor\n https://github.com/rickycorte/Html_Table_Editor\n\n Copyright (c) 2016 <NAME>\n\n Licenced under Apache 2.0 Licence\n http://www.apache.org/licenses/LICENSE-2.0\n*/\n\n#pragma once\n#ifndef Common_H // prevent multiple declarations\n#define Common_H\n\n#include "CustomExcept...
409
25
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 38.18, "nodes": 208, "errors": 0, "source_hash": "ba991ebb87935e7afa385bb9d7401027d0adba0443e8b1eb5e68cdca600ebdf6", "categorized_nodes": 150}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
14,647
c
#ifndef AdafruitSd_h #define AdafruitSd_h #include <Arduino.h> #include <Constants.h> #include <Log.h> #include <SPI.h> #include "SdFat.h" // CS: 8 // DI: 11 // SCK: 13 // DO: 12 // CD: 9 class AdafruitSd: public SdFat, SdFile { private: public: bool init(); void createFile(const char* filename); void o...
22.58
31
(translation_unit) "#ifndef AdafruitSd_h\n#define AdafruitSd_h\n#include <Arduino.h>\n#include <Constants.h>\n#include <Log.h>\n#include <SPI.h>\n#include "SdFat.h"\n\n// CS: 8\n// DI: 11\n// SCK: 13\n// DO: 12\n// CD: 9\n\nclass AdafruitSd: public SdFat, SdFile {\nprivate:\n\npublic:\n bool init();\n\n void crea...
217
4
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 22.58, "nodes": 136, "errors": 0, "source_hash": "1ac43f62c1d8ae6e3701348c0059212521451d9085f6f3c02c47dbdc0f580853", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,648
c
#ifndef STORAGE_DEVICE_H__INCLUDED #define STORAGE_DEVICE_H__INCLUDED #include "I_Storage_Device.h" #include <vector> #include "Octet.h" namespace NewFs { using std::vector; template< typename Sector_Type, typename Data_Type = typename Sector_Type::Data_Type> class Storage_Device: pu...
31.15
39
(translation_unit) "#ifndef STORAGE_DEVICE_H__INCLUDED\n#define STORAGE_DEVICE_H__INCLUDED\n\n\n#include "I_Storage_Device.h"\n\n#include <vector>\n\n#include "Octet.h"\n\n\nnamespace NewFs {\n using std::vector;\n\n\n template<\n typename Sector_Type,\n typename Data_Type = typename Sector_Type::Da...
258
16
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 31.15, "nodes": 147, "errors": 0, "source_hash": "9c7254375f4740d9fbcd86ca518a6d548bd642915e7f7013b8c0f475fa0276a3", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,649
c
// Copyright (c) 2016-2017, Intel Corporation. // C includes #include <stdint.h> #include <string.h> // ZJS includes #include "zjs_common.h" char *zjs_shorten_filepath(char *filepath) { // find end of string char *ptr = filepath; while (*ptr) ptr++; // find second to last slash or beginning ...
22.32
93
(translation_unit) "// Copyright (c) 2016-2017, Intel Corporation.\n\n// C includes\n#include <stdint.h>\n#include <string.h>\n\n// ZJS includes\n#include "zjs_common.h"\n\nchar *zjs_shorten_filepath(char *filepath)\n{\n // find end of string\n char *ptr = filepath;\n while (*ptr)\n ptr++;\n\n // fin...
538
0
{"language": "c", "success": true, "metadata": {"lines": 93, "avg_line_length": 22.32, "nodes": 314, "errors": 0, "source_hash": "1f87465ecd4fe417614873c5fbe5d7374eceb3e222da46f195b9abc57582a52e", "categorized_nodes": 234}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,650
c
/*! \author <NAME> \license FreeBSD (see the LICENSE file) The main yarn header for the target programs. */ #include "check_libyarn.h" #include "t_utils.h" #include <yarn.h> #include <epoch.h> #include <assert.h> #include <stdio.h> #define YARN_DBG 0 #include "dbg.h" static void t_yarn_setup (void) { yarn_i...
23.98
85
(translation_unit) "/*!\n\author <NAME>\n\license FreeBSD (see the LICENSE file)\n\nThe main yarn header for the target programs.\n */\n\n\n#include "check_libyarn.h"\n\n#include "t_utils.h"\n\n#include <yarn.h>\n#include <epoch.h>\n\n#include <assert.h>\n#include <stdio.h>\n\n#define YARN_DBG 0\n#include "dbg.h"\n\n\n...
605
1
{"language": "c", "success": true, "metadata": {"lines": 85, "avg_line_length": 23.98, "nodes": 368, "errors": 0, "source_hash": "6a86d9d2317271763eb5991f0f8a1c48c59eb0d57e50ae7422142046006c5e87", "categorized_nodes": 278}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,651
c
// // GRLineChart.h // GRCharts // // Created by <NAME> on 1/23/10. // Copyright (c) 2010 <NAME> - ghostRadio.net // // 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 restrictio...
31.18
61
(translation_unit) "//\n// GRLineChart.h\n// GRCharts\n//\n// Created by <NAME> on 1/23/10.\n// Copyright (c) 2010 <NAME> - ghostRadio.net\n// \n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the "Software"), to deal\n// in th...
237
19
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 31.18, "nodes": 151, "errors": 0, "source_hash": "8bda2d646f69a80f7b04ec55d7c7c6fae4f24d9aeb1ce6253472dfe21b8d7edc", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
14,652
c
#include <std.h> #include "../juran.h" inherit ROOM; void create(){ ::create(); set_property("indoors",1); set_short("Juran General Store"); set_terrain(STONE_BUILDING); set_travel(PAVED_ROAD); set_long( "This small, disorganized general store is set up with general "+ "supplies that common...
32.71
35
(translation_unit) "#include <std.h>\n#include "../juran.h"\ninherit ROOM;\n\nvoid create(){\n ::create();\n set_property("indoors",1);\n set_short("Juran General Store");\n set_terrain(STONE_BUILDING);\n set_travel(PAVED_ROAD);\n set_long(\n "This small, disorganized general store is set up with genera...
310
5
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 32.71, "nodes": 129, "errors": 0, "source_hash": "921367039966aae787adaa13222bd64874f5e37c91e27652844c649c9c5edae5", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
14,653
c
/** * (c) <NAME> * <EMAIL> */ #ifndef BOUNDINGSPHERE_H #define BOUNDINGSPHERE_H #include "BoundingObject.h" #include "Common.h" class BoundingSphere : public BoundingObject { public: BoundingSphere(const float r, const glm::vec3& centerPoint = glm::vec3(0.0f,0.0f,0.0f)); ~BoundingSphere(); bool isVisible(const C...
23.43
21
(translation_unit) "/**\n* (c) <NAME>\n* <EMAIL>\n*/\n\n#ifndef BOUNDINGSPHERE_H\n#define BOUNDINGSPHERE_H\n\n#include "BoundingObject.h"\n#include "Common.h"\n\nclass BoundingSphere : public BoundingObject\n{\npublic:\n BoundingSphere(const float r, const glm::vec3& centerPoint = glm::vec3(0.0f,0.0f,0.0f));\n ~Boundin...
163
11
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 23.43, "nodes": 88, "errors": 0, "source_hash": "985d4d57e541505230563ac47540506d1bf3d7bb66f345a765b3085d12802979", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,654
c
#ifndef POSIXTIMECONVERSION_H #define POSIXTIMECONVERSION_H #include <boost/date_time/posix_time/posix_time.hpp> #include <boost/version.hpp> // old boost versions compatibility #if BOOST_VERSION < 105800 namespace boost { namespace posix_time { time_t to_time_t(boost::posix_time::ptime t); } } ...
24.08
13
(translation_unit) "#ifndef POSIXTIMECONVERSION_H\n#define POSIXTIMECONVERSION_H\n\n#include <boost/date_time/posix_time/posix_time.hpp>\n#include <boost/version.hpp>\n\n// old boost versions compatibility\n\n#if BOOST_VERSION < 105800\n\nnamespace boost {\n\n namespace posix_time {\n\n time_t to_time_t(boost...
53
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 24.08, "nodes": 38, "errors": 0, "source_hash": "3b54aa9c72173221f8b04ea0a365e66e6b7edca493296c5afadff27aab989a60", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,655
c
/////////////////////////////////////////////////////////////////////////////////// // Copyright(c) 2016, <NAME>, <EMAIL> // // // // Author : <NAME> // // Module : Magnum Engine v1.0.0 // // Date : 14/Jun/2016 // // ...
32.37
43
(translation_unit) "///////////////////////////////////////////////////////////////////////////////////\n// Copyright(c) 2016, <NAME>, <EMAIL> //\n// //\n// Author : <NAME> //\n// Module : Magnum Engine v1.0.0 //\n// Date : 14/Jun/2016 ...
191
10
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 32.37, "nodes": 114, "errors": 0, "source_hash": "87702bcf507f15bab068b4e430f3ddb858c285467ef6d964e3f831876dac89ed", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,656
c
#pragma once #include "pch.h" #include "Image.h" #include "CML/Matrix.h" struct ShaderInput { inline ShaderInput(RGBImage* texture, const cml::vec3 lightPosition, const cml::mat4x4 projectionMatrix, const cml::mat4x4 viewMatrix) : texture(texture), lightPosition(lightPosition), projectionMatrix(projectionMatrix), v...
36.24
25
(translation_unit) "#pragma once\n#include "pch.h"\n#include "Image.h"\n#include "CML/Matrix.h"\n\nstruct ShaderInput {\n inline ShaderInput(RGBImage* texture, const cml::vec3 lightPosition, const cml::mat4x4 projectionMatrix, const cml::mat4x4 viewMatrix)\n : texture(texture), lightPosition(lightPosition), projection...
311
12
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 36.24, "nodes": 185, "errors": 0, "source_hash": "685dfc0ad05736034e4453d643f3fe2ba40ff691bada934266c415b72588e5d6", "categorized_nodes": 143}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
14,657
c
#include <platform/kernel_init.h> #include "process.h" KERNEL_INIT(init_processes)
26.67
3
(translation_unit) "#include <platform/kernel_init.h>\n#include "process.h"\n\nKERNEL_INIT(init_processes)\n" (preproc_include) "#include <platform/kernel_init.h>\n" (#include) "#include" (system_lib_string) "<platform/kernel_init.h>" (preproc_include) "#include "process.h"\n" (#include) "#include" ...
17
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 26.67, "nodes": 10, "errors": 0, "source_hash": "a1c08b3d5bc4249a74c9069340e4eec58aebb799e46b953254df5fe2145e51eb", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
14,658
c
/* * This is sample code generated by rpcgen. * These are only templates and you can use them * as a guideline for developing your own functions. */ #include "ttt.h" void ttt_1(host) char *host; { CLIENT *clnt; char * *result_1; char* currentboard_1_arg; int *result_2; play_args play_1_arg; int *result...
19.06
50
(translation_unit) "/*\n * This is sample code generated by rpcgen.\n * These are only templates and you can use them\n * as a guideline for developing your own functions.\n */\n\n#include "ttt.h"\n\n\nvoid\nttt_1(host)\nchar *host;\n{\n CLIENT *clnt;\n char * *result_1;\n char* currentboard_1_arg;\n int *result_2;\n...
349
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 19.06, "nodes": 198, "errors": 0, "source_hash": "2564f65f6a1f5a1d69d02c7191be26447c220572fed8bc0e0b097b55f082c80c", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,659
c
struct list12 { struct list22 *realnext; struct list12 *next; }; struct list22 { double d; struct list22 *data; }; int main() { struct list12 l; }
12.67
12
(translation_unit) "struct list12 {\n struct list22 *realnext;\n struct list12 *next;\n};\n\nstruct list22 {\n double d;\n struct list22 *data;\n};\n\n\nint main() {\n struct list12 l;\n}\n" (struct_specifier) "struct list12 {\n struct list22 *realnext;\n struct list12 *next;\n}" (struct) "struct" ...
59
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 12.67, "nodes": 40, "errors": 0, "source_hash": "06a03e11cb9eaa8c3a995724b2a23641a530f6cd888af404a45a21071ed1f2ea", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "struct_specifier", "text": "struc...
14,660
c
#include <limits.h> #include <stdio.h> #include <stddef.h> typedef struct { int max_left; int max_right; int sum; } subarray_t; subarray_t find_max_crossing(int arr[], int low, int mid, int high) { subarray_t sub = { 0, 0, 0 }; int left_sum = -100000; int sum = 0; int i; for (i = mid; i >= low; i-...
22.51
65
(translation_unit) "#include <limits.h>\n#include <stdio.h>\n#include <stddef.h>\n\ntypedef struct {\n int max_left;\n int max_right;\n int sum;\n} subarray_t;\n\nsubarray_t find_max_crossing(int arr[], int low, int mid, int high) {\n subarray_t sub = { 0, 0, 0 };\n \n int left_sum = -100000;\n int sum = 0;\n\n ...
596
0
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 22.51, "nodes": 386, "errors": 0, "source_hash": "2e663ccf71aaa65c9dcd303c0fed1bc7f8bbb15f9ee6f4dece0bc495405e2dae", "categorized_nodes": 294}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,661
c
#pragma once #include <unordered_map> #include <string> #include <vector> #include <unordered_set> #include <iostream> #include "../src/virtualMachine.h" #include "../src/DllLoader.cpp" #include "../src/ExceptionTrace.cpp" #include "../src/assemblyEditor.cpp" #include "../src/stringExtensions.cpp" #include "../src/op...
29.28
29
(translation_unit) "#pragma once\n\n#include <unordered_map>\n#include <string>\n#include <vector>\n#include <unordered_set>\n#include <iostream>\n\n#include "../src/virtualMachine.h"\n#include "../src/DllLoader.cpp"\n#include "../src/ExceptionTrace.cpp"\n#include "../src/assemblyEditor.cpp"\n#include "../src/stringExt...
209
7
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 29.28, "nodes": 123, "errors": 0, "source_hash": "ce9808e48ada7366a28dbdaeb780db9839e64f0f17b78091d9c32bdf39c63036", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
14,662
c
#ifndef H_UTILS #define H_UTILS char* pystrdup(PyObject*); #endif
15.5
4
(translation_unit) "#ifndef H_UTILS\n#define H_UTILS\n\nchar* pystrdup(PyObject*);\n\n#endif\n" (preproc_ifdef) "#ifndef H_UTILS\n#define H_UTILS\n\nchar* pystrdup(PyObject*);\n\n#endif" (#ifndef) "#ifndef" (identifier) "H_UTILS" (preproc_def) "#define H_UTILS\n" (#define) "#define" (identifie...
22
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 15.5, "nodes": 18, "errors": 0, "source_hash": "82e49b837017ce91c027c8faa71c6e3d69e41647f1e226498d57848a825ca109", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef H_...
14,663
c
// // MMViewModelServiceImpl.h // MVVMDemo // // Created by Insomnia on 2019/1/11. // Copyright © 2019 Insomnia. All rights reserved. // #import <Foundation/Foundation.h> #import "MMViewModelService.h" NS_ASSUME_NONNULL_BEGIN @interface MMViewModelServiceImpl : NSObject<MMViewModelService> - (instancetype)initMo...
24.71
14
(translation_unit) "//\n// MMViewModelServiceImpl.h\n// MVVMDemo\n//\n// Created by Insomnia on 2019/1/11.\n// Copyright © 2019 Insomnia. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "MMViewModelService.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface MMViewModelServiceImpl : NSObject<MMViewMod...
45
4
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 24.71, "nodes": 28, "errors": 0, "source_hash": "fd697d44d860b7583fe2fdb15c9e6c48108a88c76a1fe4b5c0087297c6f37a86", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
14,664
c
// // Log4CocoaTouch.h // MSDownloader // // Created by <NAME> on 13/07/2011. // Copyright 2011 __MyCompanyName__. All rights reserved. // #import "NSDate-Calendar.h" #import "Log4Cocoa.h"
20.44
9
(translation_unit) "//\n// Log4CocoaTouch.h\n// MSDownloader\n//\n// Created by <NAME> on 13/07/2011.\n// Copyright 2011 __MyCompanyName__. All rights reserved.\n//\n#import "NSDate-Calendar.h"\n#import "Log4Cocoa.h"" (comment) "//" (comment) "// Log4CocoaTouch.h" (comment) "// MSDownloader" (comment) "//...
14
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 20.44, "nodes": 6, "errors": 0, "source_hash": "fe3214b03074903d2fe730f8fb0f6a037b808d9e78b0cb15689246cb0637a546", "categorized_nodes": 2}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"NS...
14,665
c
/* * Copyright (c) 2008 - 2012, <NAME>, All Rights Reserved. * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specifi...
30.77
158
(translation_unit) "/*\n * Copyright (c) 2008 - 2012, <NAME>, All Rights Reserved.\n * \n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the ...
246
0
{"language": "c", "success": true, "metadata": {"lines": 158, "avg_line_length": 30.77, "nodes": 171, "errors": 0, "source_hash": "ccc5861b2d36c292b4351942e8150717ce078d141e7909c24666030cfad9473f", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
14,666
c
// // XQQMeCell.h // XQQThinkProj // // Created by XQQ on 16/10/11. // Copyright © 2016年 UIP. All rights reserved. // #import <UIKit/UIKit.h> @interface XQQMeCell : UITableViewCell @end
18
10
(translation_unit) "//\n// XQQMeCell.h\n// XQQThinkProj\n//\n// Created by XQQ on 16/10/11.\n// Copyright © 2016年 UIP. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface XQQMeCell : UITableViewCell\n\n@end\n" (comment) "//" (comment) "// XQQMeCell.h" (comment) "// XQQThinkProj" (comment) "/...
22
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 18.0, "nodes": 12, "errors": 0, "source_hash": "cfb9769dff4f8a2efdaae93c848d04accf03aabf28160f09d0e279d7f2b119ec", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKit...
14,667
c
#pragma once namespace BTL { namespace Log { enum class log_level : int { OFF = 9, ERROR = 8, AUDIT = 7, ADMIN = 6, WARNING = 5, INFO = 4, TRACE = 3, DEBUG = 2, VERBOSE = 1, ALL = 0 }; struct level_format { static const char *get_level(int value) { union int_to_level ...
22.42
55
(translation_unit) "#pragma once\n\nnamespace BTL {\n namespace Log {\n \n enum class log_level : int {\n OFF = 9,\n ERROR = 8,\n AUDIT = 7,\n ADMIN = 6,\n WARNING = 5,\n INFO = 4,\n TRACE = 3,\n DEBUG = 2,\n VERBOSE = 1,\n ALL = 0\n };\n \n struct level_format {\n\n static const char *get_le...
463
15
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 22.42, "nodes": 275, "errors": 0, "source_hash": "58e2315955e41fe7dfad3a3d467b2196e523cec9d9b9696633d929ab26070a80", "categorized_nodes": 192}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
14,668
c
// Authors: <NAME> and <NAME> // Copyright (C) 2008 by Max-Planck Institute for Developmental Biology, Tuebingen, Germany #include "pmindex.h" int pos2bin(unsigned int slot, unsigned int chr); int pos2bin_rev(unsigned int slot, unsigned int chr); int get_slot(char *seq, int pos); int index_chromosome(unsigned int ch...
22.51
166
(translation_unit) "// Authors: <NAME> and <NAME>\n// Copyright (C) 2008 by Max-Planck Institute for Developmental Biology, Tuebingen, Germany\n\n#include "pmindex.h"\n\nint pos2bin(unsigned int slot, unsigned int chr);\nint pos2bin_rev(unsigned int slot, unsigned int chr);\nint get_slot(char *seq, int pos);\n\nint ind...
1,617
0
{"language": "c", "success": true, "metadata": {"lines": 166, "avg_line_length": 22.51, "nodes": 982, "errors": 0, "source_hash": "4f37be646030c25845dba132e9984a1e6763931a1c324b5d9cecaacbf58787b6", "categorized_nodes": 687}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,669
c
/* * Copyright (c) 1996-2001 <NAME>. * See README file for details. * * This file contains functions for constructing and * interpolating the adaptive tree structure. This is * the default evaluation structure used by Locfit. */ #include "local.h" /* Guess the number of fitting points. Needs impr...
24.84
195
(translation_unit) "/*\n * Copyright (c) 1996-2001 <NAME>.\n * See README file for details.\n *\n * This file contains functions for constructing and\n * interpolating the adaptive tree structure. This is\n * the default evaluation structure used by Locfit.\n */\n\n#include "local.h"\n\n/*\n Guess the number...
2,564
0
{"language": "c", "success": true, "metadata": {"lines": 195, "avg_line_length": 24.84, "nodes": 1575, "errors": 0, "source_hash": "f3d0b190c5da06dfe321ed08010f24ca53b1f9269f215bc6d62d60e1496bd87d", "categorized_nodes": 1223}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
14,670
c
/* * Copyright (C) <NAME>. */ #include <string.h> #include <stdio.h> #include "mln_rc.h" void mln_rc4_init(mln_u8ptr_t s, mln_u8ptr_t key, mln_uauto_t len) { mln_u32_t i = 0, j = 0; mln_u8_t tmp; mln_uauto_t k[256] = {0}; for (i = 0; i < 256; ++i) { s[i] = i; k[i] = key[i % len]; ...
22.24
38
(translation_unit) "/*\n * Copyright (C) <NAME>.\n */\n\n#include <string.h>\n#include <stdio.h>\n#include "mln_rc.h"\n\nvoid mln_rc4_init(mln_u8ptr_t s, mln_u8ptr_t key, mln_uauto_t len)\n{\n mln_u32_t i = 0, j = 0;\n mln_u8_t tmp;\n mln_uauto_t k[256] = {0};\n\n for (i = 0; i < 256; ++i) {\n s[i] =...
383
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 22.24, "nodes": 245, "errors": 0, "source_hash": "771d78fddb84ec86f9ac8ee99deb9acc54030f2e42417a7bc26984b8b18c4c91", "categorized_nodes": 195}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,671
c
/* * JobMatchPrune.h * * Created on: Mar 27, 2013 * Author: johnchronis */ #ifndef JOBMATCHPRUNE_H_ #define JOBMATCHPRUNE_H_ #include "job.h" namespace mple { class JobMatchPruneQD3: public mple::Job { public: //int start; int end; int length; int querylength,doclength,start,end; JobMatchPruneQD3(int ...
22.01
82
(translation_unit) "/*\n * JobMatchPrune.h\n *\n * Created on: Mar 27, 2013\n * Author: johnchronis\n */\n\n#ifndef JOBMATCHPRUNE_H_\n#define JOBMATCHPRUNE_H_\n\n#include "job.h"\n\nnamespace mple {\n\nclass JobMatchPruneQD3: public mple::Job {\npublic:\n //int start; int end; int length;\n int querylength,doclen...
563
30
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 22.01, "nodes": 306, "errors": 0, "source_hash": "5aff4542a87fd93b027951d613955daeae61fe1b32b637acbb0e4cb4fe428063", "categorized_nodes": 206}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,672
c
#ifndef CalConfig_h #define CalConfig_h #include "CalDefs.h" namespace CalUtil { typedef enum { autoRng= -1, lex8, lex1, hex8, hex1 } CalFirstRng; }; #endif
12
16
(translation_unit) "#ifndef CalConfig_h\n#define CalConfig_h\n\n#include "CalDefs.h"\n\nnamespace CalUtil\n{\n typedef enum\n {\n autoRng= -1,\n lex8,\n lex1,\n hex8,\n hex1\n }\n CalFirstRng;\n};\n\n#endif\n" (preproc_ifdef) "#ifndef CalConfig_h\n#define CalConfig_h\n\n#incl...
47
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 12.0, "nodes": 31, "errors": 0, "source_hash": "5075be52ae4ba511cec19399f0ed7933776439c9f96c7da6ddfd1c4458f5ad94", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef C...
14,673
c
/* Demo controller Not used for test */ #include "esp.h" static void list() { render("DONE\n"); } static void restart() { MaAppweb *appweb; MaServer *server; HttpEndpoint *endpoint; render("Restarting"); flush(); finalize(); appweb = MPR->appwebService; ...
31.1
67
(translation_unit) "/*\n Demo controller\n\n Not used for test\n */\n#include "esp.h"\n\nstatic void list() {\n render("DONE\n");\n}\n\nstatic void restart() {\n MaAppweb *appweb;\n MaServer *server;\n HttpEndpoint *endpoint;\n \n render("Restarting");\n flush();\n finaliz...
553
1
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 31.1, "nodes": 290, "errors": 0, "source_hash": "65989846082f69aae30fcdc57cff143927fb8c0898bfb2836d551118abf0a56d", "categorized_nodes": 192}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
14,674
c
//===- subzero/src/IceTargetLoweringX8664.h - lowering for x86-64 -*- C++ -*-=// // // The Subzero Code Generator // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------...
38.23
80
(translation_unit) "//===- subzero/src/IceTargetLoweringX8664.h - lowering for x86-64 -*- C++ -*-=//\n//\n// The Subzero Code Generator\n//\n// This file is distributed under the University of Illinois Open Source\n// License. See LICENSE.TXT for details.\n//\n//===-------------------------------...
597
24
{"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 38.23, "nodes": 364, "errors": 0, "source_hash": "758838a0602eaa22096dd05fe28f6b808c8940fc90842299dbf87e638c5a63d2", "categorized_nodes": 238}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,675
c
//******************************************************************* //Author: Seokhyeon //Description: SNTv1's CLK Testing //******************************************************************* #include "PRCv20.h" #include "PRCv20_RF.h" #include "SNTv4_RF.h" #include "mbus.h" // uncomment this for debug mbus message...
35.83
216
(translation_unit) "//*******************************************************************\n//Author: Seokhyeon \n//Description: SNTv1's CLK Testing\n//*******************************************************************\n#include "PRCv20.h"\n#include "PRCv20_RF.h"\n#include "SNTv4_RF.h"\n#include "mbus.h"\n\n// uncommen...
1,355
0
{"language": "c", "success": true, "metadata": {"lines": 216, "avg_line_length": 35.83, "nodes": 802, "errors": 0, "source_hash": "59c464b2da6fd38b3a31771f760fe324cc4000dab6c0172cfc3122a0616b646a", "categorized_nodes": 549}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,676
c
/* * Author: <NAME> * Email: <EMAIL> * Website: viniciusarruda.github.io * Professor: <NAME> * Subject: Computer Graphics * Assignment: Implementation of a gameplay. * */ #include "../../util/math/math.h" #include "../../util/global/global.h" #include <GL/gl.h> #include <GL/glut.h> #define N_TRIANGLES 100 #...
29.22
81
(translation_unit) "/*\n * Author: <NAME>\n * Email: <EMAIL>\n * Website: viniciusarruda.github.io\n * Professor: <NAME>\n * Subject: Computer Graphics\n * Assignment: Implementation of a gameplay.\n *\n */\n \n#include "../../util/math/math.h"\n#include "../../util/global/global.h"\n#include <GL/gl.h>\n#include <GL/g...
640
0
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 29.22, "nodes": 411, "errors": 0, "source_hash": "92b1239477cc132cb0bed7a0af32e1da628407a914debb9a5f9b185f0c6dbddc", "categorized_nodes": 291}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,677
c
#pragma once #include <mutex> #include <map> #include <string> #include <memory> #include "ftp_user.h" namespace fineftp { class UserDatabase { public: UserDatabase(); ~UserDatabase(); bool addUser(const std::string& username, const std::string& password, const std::string& local_root_path, Permis...
31.95
22
(translation_unit) "#pragma once\n\n#include <mutex>\n#include <map>\n#include <string>\n#include <memory>\n\n#include "ftp_user.h"\n\nnamespace fineftp\n{\n class UserDatabase\n {\n public:\n UserDatabase();\n ~UserDatabase();\n\n bool addUser(const std::string& username, const std::string& password, const...
210
12
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 31.95, "nodes": 119, "errors": 0, "source_hash": "5fb45baf7052ea2f0e4fd3dc2682d0d99d4db24e8325926eddd6a927c9e88e87", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
14,678
c
#ifndef GMT_PSSAC_H #define GMT_PSSAC_H #include <QDialog> #include <QColorDialog> #include "gmt_j_option.h" #include "gmt_r_option.h" namespace Ui { class GMT_pssac; } class GMT_pssac : public QDialog { Q_OBJECT public: explicit GMT_pssac(QWidget *parent,QString S); // 传入参数 ~GMT_pssac(); QString s...
24
34
(translation_unit) "#ifndef GMT_PSSAC_H\n#define GMT_PSSAC_H\n\n#include <QDialog>\n#include <QColorDialog>\n\n#include "gmt_j_option.h"\n#include "gmt_r_option.h"\n\nnamespace Ui {\nclass GMT_pssac;\n}\n\nclass GMT_pssac : public QDialog\n{\n Q_OBJECT\n\npublic:\n explicit GMT_pssac(QWidget *parent,QString S); /...
199
4
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 24.0, "nodes": 123, "errors": 0, "source_hash": "f1f3fb97946cde4655cc5be33e933539327ed2b808d52d38dbd7998a34c84c7d", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,679
c
// // testController.h // testbenchios // // Created by gwh on 2019/8/19. // Copyright © 2019 gwh. All rights reserved. // #import "CC_Foundation.h" #import "ccs.h" NS_ASSUME_NONNULL_BEGIN @protocol TestControllerDelegate @property (nonatomic, retain) NSString *n; - (void)methd2withA:(NSString *)a b:(NSArray *...
24.45
22
(translation_unit) "//\n// testController.h\n// testbenchios\n//\n// Created by gwh on 2019/8/19.\n// Copyright © 2019 gwh. All rights reserved.\n//\n\n#import "CC_Foundation.h"\n#import "ccs.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@protocol TestControllerDelegate\n\n@property (nonatomic, retain) NSString *n;\n\n- (void)m...
159
18
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 24.45, "nodes": 95, "errors": 0, "source_hash": "33283610f995f00847ff76b9f93ca7a5af266d13b8b2fa9abb54259b1e0060fa", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"...
14,680
c
#pragma once #include <agz/tracer/render/common.h> AGZ_TRACER_RENDER_BEGIN struct TraceParams { int min_depth = 5; int max_depth = 10; real cont_prob = real(0.9); int direct_illum_sample_count = 1; // additional depth for specular scattering int specular_depth = 20; }; struct AOParams { ...
24.57
42
(translation_unit) "#pragma once\n\n#include <agz/tracer/render/common.h>\n\nAGZ_TRACER_RENDER_BEGIN\n\nstruct TraceParams\n{\n int min_depth = 5;\n int max_depth = 10;\n real cont_prob = real(0.9);\n\n int direct_illum_sample_count = 1;\n\n // additional depth for specular scattering\n int specular...
281
24
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 24.57, "nodes": 161, "errors": 0, "source_hash": "2eb48276f91d98532a38af6c42229861c0152ce3a7ed27526648aeb0428a4cec", "categorized_nodes": 129}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
14,681
c
#include "kernel_params.h" // Return M[r][c] where M is an SxS matrix #define ELEMENT(M, S, r, c) M[r*S+c] /******************************************************************************/ #ifdef kernel_default void execute_kernel() { /* SREG[0]: A Matrix (Virtual Pointer) SREG[1]: B Matrix (Virtual Pointer) SREG...
27.78
36
(translation_unit) "#include "kernel_params.h"\n\n// Return M[r][c] where M is an SxS matrix\n#define ELEMENT(M, S, r, c) M[r*S+c]\n\n/******************************************************************************/\n#ifdef kernel_default\n\nvoid execute_kernel()\n{\n /*\n SREG[0]: A Matrix (Virtual Pointer)\n SREG[1]: ...
328
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 27.78, "nodes": 188, "errors": 0, "source_hash": "d243b749aace9972987423505e59013b423cf2b0cdf29781d17e1bde6b9d61a1", "categorized_nodes": 138}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,682
c
#include "holberton.h" #include <stdio.h> /** * print_numbers - prints numbers from 0 to 9 * void: No Input Parameter * * Return: On success 1. * On error, -1 is returned, and errno is set appropriately. */ void print_numbers(void) { int i; for (i = 48; i < 58; i++) { putchar(i); } putchar('\n'); }
16.39
18
(translation_unit) "#include "holberton.h"\n#include <stdio.h>\n\n/**\n * print_numbers - prints numbers from 0 to 9\n * void: No Input Parameter\n *\n * Return: On success 1.\n * On error, -1 is returned, and errno is set appropriately.\n */\nvoid print_numbers(void)\n{\n int i;\n\n for (i = 48; i < 58; i++)\n {\n pu...
66
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 16.39, "nodes": 39, "errors": 0, "source_hash": "51b78522308b817a6a46a57109ce1a520b6341f95f412599ef2164d81405b888", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
14,683
c
// File: Compiler.impl.h // // Copyright 2017-2018 <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 app...
33.1
104
(translation_unit) "// File: Compiler.impl.h\n// \n// Copyright 2017-2018 <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...
861
48
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 33.1, "nodes": 501, "errors": 0, "source_hash": "bdfb781da5d795570685e190fd2f9fc2429a47a19ce08e661bd56aaf8bf681d9", "categorized_nodes": 366}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
14,684
c
///////////////////////////////////////////////////////////////////////////// // Name: dcmemory.h // Purpose: wxMemoryDC class // Author: <NAME> // Modified by: // Created: 1998-01-01 // RCS-ID: $Id: dcmemory.h,v 1.3 2004/05/23 20:51:10 JS Exp $ // Copyright: (c) <NAME> // Licence: wxWind...
31.71
31
(translation_unit) "/////////////////////////////////////////////////////////////////////////////\n// Name: dcmemory.h\n// Purpose: wxMemoryDC class\n// Author: <NAME>\n// Modified by:\n// Created: 1998-01-01\n// RCS-ID: $Id: dcmemory.h,v 1.3 2004/05/23 20:51:10 JS Exp $\n// Copyright: (c) <N...
162
6
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 31.71, "nodes": 95, "errors": 0, "source_hash": "655c6c4c954e4156bd43846554b1e5e62ca4b3860b95d6d41dbeea7b3ed67e79", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,685
c
/**************************************************************************** ** ** Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies). ** Contact: Qt Software Information (<EMAIL>) ** ** This file is part of the QtSql module of the Qt Toolkit. ** ** Commercial Usage ** Licensees holding valid Qt Commerci...
38.93
98
(translation_unit) "/****************************************************************************\n**\n** Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies).\n** Contact: Qt Software Information (<EMAIL>)\n**\n** This file is part of the QtSql module of the Qt Toolkit.\n**\n** Commercial Usage\n** License...
693
49
{"language": "c", "success": true, "metadata": {"lines": 98, "avg_line_length": 38.93, "nodes": 395, "errors": 0, "source_hash": "835a181143023e1612384a0a2581c7df2fef5c5f696a2e03e151159cbf184a4c", "categorized_nodes": 267}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,686
c
// // GPKGStyleDao.h // geopackage-ios // // Created by <NAME> on 1/17/19. // Copyright © 2019 NGA. All rights reserved. // #import "GPKGAttributesDao.h" #import "GPKGStyleTable.h" #import "GPKGStyleRow.h" #import "GPKGStyleMappingRow.h" /** * Style DAO for reading style tables */ @interface GPKGStyleDao : GPKG...
19.67
51
(translation_unit) "//\n// GPKGStyleDao.h\n// geopackage-ios\n//\n// Created by <NAME> on 1/17/19.\n// Copyright © 2019 NGA. All rights reserved.\n//\n\n#import "GPKGAttributesDao.h"\n#import "GPKGStyleTable.h"\n#import "GPKGStyleRow.h"\n#import "GPKGStyleMappingRow.h"\n\n/**\n * Style DAO for reading style tables\...
128
11
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 19.67, "nodes": 62, "errors": 0, "source_hash": "ee04b180df2eff586328ac9d35f939239c7ca9acdf780ece471e409e45116eb9", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"...
14,687
c
/* ** EPITECH PROJECT, 2021 ** bistro - my_in_two.c ** File description: ** abc */ #include <stdlib.h> #include "../../../include/my_lib.h" char ini(char *needle, char const *haystack) { int i = 0; int j = 0; char *search_res; search_res = malloc(sizeof(char) * (my_strlen(haystack) + 1)); if (my_s...
27.07
55
(translation_unit) "/*\n** EPITECH PROJECT, 2021\n** bistro - my_in_two.c\n** File description:\n** abc\n*/\n\n#include <stdlib.h>\n#include "../../../include/my_lib.h"\n\nchar ini(char *needle, char const *haystack)\n{\n int i = 0;\n int j = 0;\n char *search_res;\n search_res = malloc(sizeof(char) * (my_s...
540
0
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 27.07, "nodes": 321, "errors": 0, "source_hash": "67af21ec9f8c678bdc1be0bc54afd370fc5e402c27a9113a429e2155db4dca07", "categorized_nodes": 215}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,688
c
#ifndef CHECKERS_BOARD_H #define CHECKERS_BOARD_H // Standard Includes #include <iostream> #include <string> #include <sstream> #include <vector> // 3rd Party Includes // Our Includes #include "board.h" #include "CheckersPieces.h" #include "PrintEnums.hpp" // explicit instantiation to compile .cpp for the CheckersP...
36.44
34
(translation_unit) "#ifndef CHECKERS_BOARD_H\n#define CHECKERS_BOARD_H\n\n// Standard Includes\n#include <iostream>\n#include <string>\n#include <sstream>\n#include <vector>\n\n// 3rd Party Includes\n\n// Our Includes\n#include "board.h"\n#include "CheckersPieces.h"\n#include "PrintEnums.hpp"\n\n// explicit instantiati...
153
6
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 36.44, "nodes": 81, "errors": 0, "source_hash": "28e1a1a4ddccc5c33b43952366d0e2fc5f5eabfea0b79c9f4a422c250e7dd27c", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,689
c
/* - Range ID Convertor - Copyright (C) 2017 <NAME> * * This program is free software; you can redistribute it and/or * modify it under the terms of the MIT License. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softwar...
39.35
57
(translation_unit) "/* - Range ID Convertor - Copyright (C) 2017 <NAME>\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the MIT License.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documen...
286
19
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 39.35, "nodes": 168, "errors": 0, "source_hash": "700089e80f6c39a1390e7fb5aa45bba6a4fee1b870c21d0bc728fe98dd2a6dfd", "categorized_nodes": 107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,690
c
// Geometric Tools, Inc. // http://www.geometrictools.com // Copyright (c) 1998-2006. All Rights Reserved // // The Wild Magic Version 4 Foundation Library source code is supplied // under the terms of the license agreement // http://www.geometrictools.com/License/Wm4FoundationLicense.pdf // and may not be copied ...
35.26
74
(translation_unit) "// Geometric Tools, Inc.\n// http://www.geometrictools.com\n// Copyright (c) 1998-2006. All Rights Reserved\n//\n// The Wild Magic Version 4 Foundation Library source code is supplied\n// under the terms of the license agreement\n// http://www.geometrictools.com/License/Wm4FoundationLicense.pdf...
581
18
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 35.26, "nodes": 354, "errors": 0, "source_hash": "192489a4a9069d44bfb4e93013b7461787c70a0fd4d478ac94d3d26fe7e98f91", "categorized_nodes": 305}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,691
c
/* ==================================================================================== Author: SwingCoder Email: <EMAIL> Github: https://github.com/SwingCoder Copyright (c) 2012 by SwingCoder ==================================================================================== */ #ifndef __COLOURCOMP...
36.96
77
(translation_unit) "\n====================================================================================\n Author: SwingCoder\n Email: <EMAIL>\n Github: https://github.com/SwingCoder\n\n Copyright (c) 2012 by SwingCoder\n====================================================================================\...
295
19
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 36.96, "nodes": 184, "errors": 0, "source_hash": "349cf023615eddeef1277aa8a90642656a41d9b0af3f0e657eca4e25debd74ea", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef ...
14,692
c
int x[3][2]; int main() { *x = 1; *(x + 1) = 2; *(x + 2) = 11; *(x + 3) = 12; *(x + 4) = 21; *(x + 5) = 22; return x[1][1]; }
13
10
(translation_unit) "int x[3][2];\n\nint main() {\n\n *x = 1;\n *(x + 1) = 2;\n *(x + 2) = 11;\n *(x + 3) = 12;\n *(x + 4) = 21;\n *(x + 5) = 22;\n\n return x[1][1];\n}\n" (declaration) "int x[3][2];" (primitive_type) "int" (array_declarator) "x[3][2]" (array_declarator) "x[3]" (identifier...
113
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 13.0, "nodes": 74, "errors": 0, "source_hash": "c380c01c961f9102c6f4c20c4af4df399fa68ffffeeea82d6d80bf472c100359", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "int x[3][2]...
14,693
c
#pragma once #include <pthread.h> extern volatile unsigned int glob; pthread_rwlock_t rwlock; void init_readwritelock(){ pthread_rwlock_init(&rwlock, NULL); } /** * Increments a global counter using a read/write lock to ensure that no thread writes to it at the same time. * The critical section is within the lo...
37
24
(translation_unit) "#pragma once\n\n#include <pthread.h>\n\nextern volatile unsigned int glob;\n\npthread_rwlock_t rwlock;\n\nvoid init_readwritelock(){\n pthread_rwlock_init(&rwlock, NULL);\n}\n\n/**\n * Increments a global counter using a read/write lock to ensure that no thread writes to it at the same time.\n * The...
125
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 37.0, "nodes": 80, "errors": 0, "source_hash": "c7792a24822a0d6618d2c456ce85119da63d2b01b67e9e27cfdca78ffd3f0121", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
14,694
c
/* * Copyright © 2012-2015 VMware, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the “License”); you may not * use this file except in compliance with the License. You may obtain a copy * of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
29.3
37
(translation_unit) "/*\n * Copyright © 2012-2015 VMware, Inc. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the “License”); you may not\n * use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n * \n ...
70
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 29.3, "nodes": 45, "errors": 0, "source_hash": "61514fd089ae96a632bef40504cb19a3279d29041a244baf4b70612eab35c654", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "truct _...
14,695
c
// counter.c //wsw於2004年2月20日 //玩家櫃枱 //玩家有此櫃枱後,可把物品擺在櫃枱上出售,重啟後保留。 //如果是隨機屬性物品,物品->set("changed",1) #include "counter.h" void create() { seteuid(0); set_name(HIC"櫃枱"NOR,({"counter" }) ); set_weight(50000); if( clonep() ) set_default_object(__FILE__); ...
25.85
27
(translation_unit) "// counter.c\n//wsw於2004年2月20日\n//玩家櫃枱\n//玩家有此櫃枱後,可把物品擺在櫃枱上出售,重啟後保留。\n//如果是隨機屬性物品,物品->set("changed",1)\n\n#include "counter.h" \n\nvoid create()\n{ \n seteuid(0);\n set_name(HIC"櫃枱"NOR,({"counter" }) ); \n set_weight(50000); \n if( clonep() ) \n ...
222
1
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 25.85, "nodes": 82, "errors": 0, "source_hash": "df98e1e2c6d0390aca10afe9d2000c721dbc72ee744d6780dc9f9ad78a86b2a5", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "\"NOR,...
14,696
c
// // editor.hpp // PretendToWork // // Created by tqtifnypmb on 14/12/2017. // Copyright © 2017 tqtifnypmb. All rights reserved. // #pragma once #include "../crdt/Engine.h" #include "../types.h" #include <memory> #include <gsl/gsl> #include <map> namespace brick { class Rope; class Editor { public: ...
25.03
58
(translation_unit) "//\n// editor.hpp\n// PretendToWork\n//\n// Created by tqtifnypmb on 14/12/2017.\n// Copyright © 2017 tqtifnypmb. All rights reserved.\n//\n\n#pragma once\n\n#include "../crdt/Engine.h"\n#include "../types.h"\n\n#include <memory>\n#include <gsl/gsl>\n#include <map>\n\nnamespace brick\n{\n \nclas...
449
30
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 25.03, "nodes": 293, "errors": 0, "source_hash": "ce5bc8ebf62c062671b2a06691ec892ff84076e62f53d4521431532562e058cd", "categorized_nodes": 200}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "pragma ...
14,697
c
// // DemoCompatibleScrollViewViewController.h // ZXNavigationBarDemo // // Created by 李兆祥 on 2020/7/29. // Copyright © 2020 ZXLee. All rights reserved. // #import "DemoBaseViewController.h" NS_ASSUME_NONNULL_BEGIN @interface DemoCompatibleScrollViewViewController : DemoBaseViewController @end NS_ASSUME_NONNUL...
25.75
12
(translation_unit) "//\n// DemoCompatibleScrollViewViewController.h\n// ZXNavigationBarDemo\n//\n// Created by 李兆祥 on 2020/7/29.\n// Copyright © 2020 ZXLee. All rights reserved.\n//\n\n#import "DemoBaseViewController.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface DemoCompatibleScrollViewViewController : DemoBaseViewCo...
27
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 25.75, "nodes": 16, "errors": 0, "source_hash": "cd5d08069e09a3fec2a58f40c76a295a42fdfbc154fd351ef85c5236d6cbe056", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " \"DemoBas...
14,698
c
// // OVHistogramController.h // OVis // // Created by <NAME> on 26/09/13. // Copyright (c) 2013 <NAME>. All rights reserved. // // System Headers #import <Cocoa/Cocoa.h> // Custom Headers #import "OVAppDelegateProtocol.h" #import <CorePlot/CorePlot.h> @class OVVariable; @interface OVHistogramController : NSObj...
28.85
55
(translation_unit) "//\n// OVHistogramController.h\n// OVis\n//\n// Created by <NAME> on 26/09/13.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n// System Headers\n#import <Cocoa/Cocoa.h>\n\n// Custom Headers\n#import "OVAppDelegateProtocol.h"\n#import <CorePlot/CorePlot.h>\n\n@class OVVariable;\n\n@in...
259
13
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 28.85, "nodes": 175, "errors": 0, "source_hash": "821b308a0350ca493f7e6fdcf12887e710a02df9f304fab22efec59e49888252", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
14,699