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
// // ACAppDelegate.h // GraphView // // Created by <NAME> on 5/20/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface ACAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
23.45
11
(translation_unit) "//\n// ACAppDelegate.h\n// GraphView\n//\n// Created by <NAME> on 5/20/14.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ACAppDelegate : UIResponder <UIApplicationDelegate>\n\n@property (strong, nonatomic) UIWindow *window;\n\n@end\n" (comment...
39
6
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 23.45, "nodes": 25, "errors": 0, "source_hash": "f8f671adbcdc2f894a046d5ad658c810406b5cd10c40a6db2d91dc7e5ee260f6", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
13,300
c
/* * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell c...
32.18
105
(translation_unit) "/*\n* Permission is hereby granted, free of charge, to any person obtaining\n* a copy of this software and associated documentation files (the\n* "Software"), to deal in the Software without restriction, including\n* without limitation the rights to use, copy, modify, merge, publish,\n* distribute, ...
586
33
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 32.18, "nodes": 349, "errors": 0, "source_hash": "c88a2e4e7294fda8c3e49d52d92bc0bb5dc25b34caacfdb9b1c0b975fa5c6ebc", "categorized_nodes": 206}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
13,301
c
#ifndef IMOBILESTORAGE_H_ #define IMOBILESTORAGE_H_ class IMobileStorage { public: virtual void Read(){} virtual void Write(){} }; #endif
14.56
9
(translation_unit) "#ifndef IMOBILESTORAGE_H_\n#define IMOBILESTORAGE_H_\nclass IMobileStorage\n{\npublic:\n virtual void Read(){}\n virtual void Write(){}\n};\n#endif" (preproc_ifdef) "#ifndef IMOBILESTORAGE_H_\n#define IMOBILESTORAGE_H_\nclass IMobileStorage\n{\npublic:\n virtual void Read(){}\n virtual void Write(...
40
2
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 14.56, "nodes": 22, "errors": 0, "source_hash": "89124b3e63a063aba52818b3254c768bfcafa33dc3896d4fd461faaf80001290", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef I...
13,302
c
#include "unaligned.h" #if INTERFACE #include <stdint.h> #include <stddef.h> #endif uint8_t unalignedGet8(void* src) { uintptr_t csrc = (uintptr_t)src; uint32_t v = *(uint32_t*)(csrc & 0xfffffffc); v = (v >> (((uint32_t)csrc & 0x3) * 8)) & 0x000000ff; return v; } void unalignedSet8(...
23.67
58
(translation_unit) "#include "unaligned.h" \n \n \n#if INTERFACE \n#include <stdint.h> \n#include <stddef.h> \n#endif \n \n \nuint8_t unalignedGet8(void* src) { \n uintptr_t csrc = (uintptr_t)src; \n uint32_t v = *(uint32_t*)(csrc & 0xfffffffc); \n v = (v >> (((uint32_t)csrc & 0x3) * 8)) & 0x000000ff; \n re...
550
0
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 23.67, "nodes": 376, "errors": 0, "source_hash": "16e0eb574980eb3dcff32034d21463a1ef25284889cb2e15cd069018100ed9f7", "categorized_nodes": 225}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,303
c
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "GameFramework/Actor.h" #include "TriggerableActor.generated.h" DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam( FTriggerableActorOnTriggered, bool, IsActive ); UCLASS() class ASSIGNMENT_API ATriggerableActor : public A...
31.68
53
(translation_unit) "// Fill out your copyright notice in the Description page of Project Settings.\n\n#pragma once\n\n#include "GameFramework/Actor.h"\n#include "TriggerableActor.generated.h"\n\nDECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam( FTriggerableActorOnTriggered, bool, IsActive );\n\nUCLASS()\nclass ASSIGNMENT_AP...
238
14
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 31.68, "nodes": 143, "errors": 0, "source_hash": "c022056834e7243c1b71b04dff314cd0d23125d0bb49a9e65c5e384f69387911", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
13,304
c
/* * Copyright (c) 1989 Stanford University * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided * that the above copyright notice appear in all copies and that both that * copyright notice and this permission notic...
36.67
61
(translation_unit) "/*\n * Copyright (c) 1989 Stanford University\n *\n * Permission to use, copy, modify, distribute, and sell this software and its\n * documentation for any purpose is hereby granted without fee, provided\n * that the above copyright notice appear in all copies and that both that\n * copyright notice...
365
10
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 36.67, "nodes": 241, "errors": 0, "source_hash": "a7604df0c6ef216634a470180847850c387e596ac4176a17aa1a503a2e1b7113", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,305
c
/************************************************ * GW KV * https://github.com/gwAdvNet2015/gw-kv-store * * Copyright 2015 <NAME>, <NAME>, <NAME> * * This program is licensed under the MIT license. * * marshal.h - defines the functions and structs * for marshal.c **********************...
26.71
41
(translation_unit) "/************************************************\n * GW KV\n * https://github.com/gwAdvNet2015/gw-kv-store\n *\n * Copyright 2015 <NAME>, <NAME>, <NAME>\n *\n * This program is licensed under the MIT license.\n *\n * marshal.h - defines the functions and structs\n * for mars...
180
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 26.71, "nodes": 143, "errors": 0, "source_hash": "10bccd43a211e782a5a5477ff778e616eaf219e7e8f4eb3a8677a337fa44b8a4", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
13,306
c
#include "te-linux.h" /* The EABI requires the use of VFP. */ #define FPU_DEFAULT FPU_ARCH_VFP_V2 #define EABI_DEFAULT EF_ARM_EABI_VER4
33.25
4
(translation_unit) "#include "te-linux.h"\n\n/* The EABI requires the use of VFP. */\n#define FPU_DEFAULT FPU_ARCH_VFP_V2\n#define EABI_DEFAULT EF_ARM_EABI_VER4\n" (preproc_include) "#include "te-linux.h"\n" (#include) "#include" (string_literal) ""te-linux.h"" (") """ (string_content) "te-linux....
16
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 33.25, "nodes": 11, "errors": 0, "source_hash": "3c7daf2acc7b7b69dffc06219e1fd939282f2d27df271e6b8cc55df7fb6ea302", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
13,307
c
#include <Windows.h> #include <stdio.h> #include <tchar.h> #define RVA_TO_VA(ptype, base, offset) (ptype) (((DWORD_PTR) (base)) + (offset)) typedef struct _RELOCATIONS { WORD Offset : 12; WORD Type : 4; } RELOCATIONS, *PRELOCATIONS; int main() { // \ex_original (2).exe HANDLE file = CreateFileA("C:\\Users\\arte...
35.86
99
(translation_unit) "#include <Windows.h>\n#include <stdio.h>\n#include <tchar.h>\n\n#define RVA_TO_VA(ptype, base, offset) (ptype) (((DWORD_PTR) (base)) + (offset))\n\ntypedef struct _RELOCATIONS\n{\n WORD Offset : 12;\n WORD Type : 4;\n} RELOCATIONS, *PRELOCATIONS;\n\nint main()\n{\n // \ex_original (2).exe\n HANDLE ...
958
2
{"language": "c", "success": true, "metadata": {"lines": 99, "avg_line_length": 35.86, "nodes": 615, "errors": 0, "source_hash": "9a17ddf107b10c3bcb431cac392689b8a1f8cebcd4c2295ab1dddc12c8513383", "categorized_nodes": 444}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,308
c
#include <config.h> #if !HAVE_STRSTR /* * Amanda, The Advanced Maryland Automatic Network Disk Archiver * Copyright (c) 1991-1998 University of Maryland at College Park * All Rights Reserved. * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereb...
36.89
46
(translation_unit) "#include <config.h>\n\n#if !HAVE_STRSTR\n\n/*\n * Amanda, The Advanced Maryland Automatic Network Disk Archiver\n * Copyright (c) 1991-1998 University of Maryland at College Park\n * All Rights Reserved.\n *\n * Permission to use, copy, modify, distribute, and sell this software and its\n * document...
127
1
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 36.89, "nodes": 87, "errors": 0, "source_hash": "b4323263a809a67c27d932210f5a397c1a72024340d29b2cb32ae0e460e15f6b", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
13,309
c
#ifndef CONSTANTS_H #define CONSTANTS_H #ifndef uint8_t typedef unsigned char uint8_t; #endif #define PR_MAX_VALUE UINT8_MAX /// Number of valves, pressure regulators, and pumps defined below #define N_VALVES 32 #define N_PRS 3 #define N_PUMPS 2 /// The minimum and maximum pressure values (in PSI) supported by the ...
22.37
38
(translation_unit) "#ifndef CONSTANTS_H\n#define CONSTANTS_H\n\n#ifndef uint8_t\ntypedef unsigned char uint8_t;\n#endif\n\n#define PR_MAX_VALUE UINT8_MAX\n\n/// Number of valves, pressure regulators, and pumps defined below\n#define N_VALVES 32\n#define N_PRS 3\n#define N_PUMPS 2\n\n/// The minimum and maximum pressure...
143
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 22.37, "nodes": 111, "errors": 0, "source_hash": "4d578370fe6b59af32620759cd7eab7212e2e98ac5a76485ed17c812bc195a8f", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
13,310
c
/* $OpenBSD: tp_states.h,v 1.2 1996/03/04 10:36:26 mickey Exp $ */ /* $NetBSD: tp_states.h,v 1.4 1994/06/29 06:40:31 cgd Exp $ */ #define ST_ERROR 0x0 #define TP_CLOSED 0x1 #define TP_CRSENT 0x2 #define TP_AKWAIT 0x3 #define TP_OPEN 0x4 #define TP_CLOSING 0x5 #define TP_REFWAIT 0x6 #define TP_LISTENING 0x7 #define TP_...
28.75
12
(translation_unit) "/* $OpenBSD: tp_states.h,v 1.2 1996/03/04 10:36:26 mickey Exp $ */\n/* $NetBSD: tp_states.h,v 1.4 1994/06/29 06:40:31 cgd Exp $ */\n\n#define ST_ERROR 0x0\n#define TP_CLOSED 0x1\n#define TP_CRSENT 0x2\n#define TP_AKWAIT 0x3\n#define TP_OPEN 0x4\n#define TP_CLOSING 0x5\n#define TP_REFWAIT 0x6\n#defin...
43
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 28.75, "nodes": 40, "errors": 0, "source_hash": "7387cf8335eca4068b95a7f7fa40b773de8822ea5a9369ee75a93a6c3499ef2f", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ST...
13,311
c
#include <pic.h> #include <stdbool.h> #define TIMER_INIT_VALUE 12 void initTimer() { T016BIT = 0; //8-bit mode T0CS2 = 1; T0CS1 = 0; T0CS0 = 0; //LFINTOSC T0CKPS3 = 0; T0CKPS2 = 1; T0CKPS1 = 1; T0CKPS0 = 1; //1:128 prescaler TMR0L = TIMER_INIT_VALUE; TMR0IF = 0; TMR0IE = 1; ...
17.25
32
(translation_unit) "#include <pic.h> \n#include <stdbool.h> \n \n#define TIMER_INIT_VALUE 12 \n \nvoid initTimer() { \n T016BIT = 0; //8-bit mode \n T0CS2 = 1; T0CS1 = 0; T0CS0 = 0; //LFINTOSC \n T0CKPS3 = 0; T0CKPS2 = 1; T0CKPS1 = 1; T0CKPS0 = 1; //1:128 prescaler \n \n TMR0L = TIMER_INIT_VALUE; \n \n ...
164
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 17.25, "nodes": 99, "errors": 0, "source_hash": "d488ede00cdf2e1c4243967f7cdcc453e343d18aa8c8690058e08fc73ff428c6", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
13,312
c
// digger object by Garrett and Obsidian #include <std.h> inherit OBJECT ; void create() { ::create(); set_name("Digging Object"); set_short("digger object"); set_long("This is something you dig with. Offer it"); set_id(({"dig","digger object","digger"})); } void init() { ::init(); if (ETO == find...
31.57
84
(translation_unit) "// digger object by Garrett and Obsidian\n#include <std.h>\n\ninherit OBJECT ;\n\nvoid create() {\n ::create();\n set_name("Digging Object");\n set_short("digger object");\n set_long("This is something you dig with. Offer it");\n set_id(({"dig","digger object","digger"}));\n}\n\nvoid init(...
1,000
2
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 31.57, "nodes": 494, "errors": 0, "source_hash": "bdf768741590fc623dc536a5b23b03523aef66b202ed90595e02d819588c5985", "categorized_nodes": 385}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,313
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import <SearchFoundation/SFFeedback.h> @interface SFClearInputFeedback : SFFeedback { unsigned long long _triggerEvent; } + (BOOL)supportsSecureCoding; @property(nonatomic) unsigne...
30.31
16
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import <SearchFoundation/SFFeedback.h>\n\n@interface SFClearInputFeedback : SFFeedback\n{\n unsigned long long _triggerEvent;\n}\n\n+ (BOOL)supportsSecureCod...
110
11
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 30.31, "nodes": 67, "errors": 0, "source_hash": "38b914f7daf723984e8801953d19cdd8110ddb571fbd5b91b830489e7275b597", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
13,314
c
// // SHRealTimeLogger.h // SmartHome // // Created by zhenwenl on 2017/7/3. // Copyright © 2017年 EverGrande. All rights reserved. // #import "SHBaseLogger.h" typedef void (^realTimeLoguploadBlock)(id date); @class SHLogMessage; @interface SHRealTimeLogger : SHBaseLogger <SHLogProtocol> @property (nonatomic, c...
26.77
13
(translation_unit) "//\n// SHRealTimeLogger.h\n// SmartHome\n//\n// Created by zhenwenl on 2017/7/3.\n// Copyright © 2017年 EverGrande. All rights reserved.\n//\n\n#import "SHBaseLogger.h"\n\ntypedef void (^realTimeLoguploadBlock)(id date);\n\n@class SHLogMessage;\n\n@interface SHRealTimeLogger : SHBaseLogger <SHLog...
60
9
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 26.77, "nodes": 41, "errors": 0, "source_hash": "99fd5f3d41a1b7f4ee8c0fb6758c930df1b676025c312b753a3c253ef5e7885f", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"SH...
13,315
c
#pragma once template<typename _Object> class CStateControlAttack : public CState<_Object> { typedef CState<_Object> inherited; enum { eActionPrepare, eActionContinue, eActionFire, eActionWaitTripleEnd, eActionCompleted } m_action; u32 time_control_started; public: CStateControlAttack (_Obje...
27.96
28
(translation_unit) "#pragma once\n\ntemplate<typename _Object>\nclass CStateControlAttack : public CState<_Object> {\n typedef CState<_Object> inherited;\n\n enum {\n eActionPrepare,\n eActionContinue,\n eActionFire,\n eActionWaitTripleEnd,\n eActionCompleted\n } m_action;\n\n u32 time_control_started;\n\npubli...
214
13
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 27.96, "nodes": 142, "errors": 0, "source_hash": "7996e052b0ed0863980d36ddbe653f733f02e0b68ad56ffed2009f77aee294b9", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
13,316
c
// // EFWebNativeAPPJSONEdit.h // WebComps // // Created by <NAME> on 2017/1/17. // Copyright © 2017年 Pansoft. All rights reserved. // #import <Foundation/Foundation.h> #import "IEFWebNative.h" @interface EFWebNativeAPPJSONEdit : NSObject<IEFWebNative> @end
22.82
11
(translation_unit) "//\n// EFWebNativeAPPJSONEdit.h\n// WebComps\n//\n// Created by <NAME> on 2017/1/17.\n// Copyright © 2017年 Pansoft. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "IEFWebNative.h"\n@interface EFWebNativeAPPJSONEdit : NSObject<IEFWebNative>\n\n@end\n" (comment) "//" (c...
25
3
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 22.82, "nodes": 16, "errors": 0, "source_hash": "79e6e88fb7f6aeef9ffdba0f8ed3ca05d1bd7cf7f65572d35d3cce9568676729", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Foun...
13,317
c
#include <stdio.h> #include <dlfcn.h> #include "mach_hook.h" void libtest(); //from libtest.dylib int hooked_puts(char const *s) { puts(s); //calls the original puts() from libSystem.B.dylib, because our main executable module called "test" remains intact return puts("HOOKED!"); } int main() { void *...
32.21
47
(translation_unit) "#include <stdio.h>\n#include <dlfcn.h>\n\n#include "mach_hook.h"\n\nvoid libtest(); //from libtest.dylib\n\nint hooked_puts(char const *s)\n{\n puts(s); //calls the original puts() from libSystem.B.dylib, because our main executable module called "test" remains intact\n\n return puts("HOOKED...
358
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 32.21, "nodes": 178, "errors": 0, "source_hash": "8647851d9424f8c83c6c241df9a7c014bfae99daf0f7a040f7c864d701c20f70", "categorized_nodes": 122}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,318
c
$NetBSD: patch-include_kiway.h,v 1.3 2019/06/14 15:59:32 bouyer Exp $ Add NetBSD support. --- include/kiway.h.orig 2018-07-13 19:53:52.000000000 +0000 +++ include/kiway.h @@ -116,7 +116,7 @@ as such! As such, it is OK to use UTF8 #define KIFACE_INSTANCE_NAME_AND_VERSION "KIFACE_1" #ifndef SWIG -#if defined(__...
41.31
13
(translation_unit) "$NetBSD: patch-include_kiway.h,v 1.3 2019/06/14 15:59:32 bouyer Exp $\n\nAdd NetBSD support.\n\n--- include/kiway.h.orig 2018-07-13 19:53:52.000000000 +0000\n+++ include/kiway.h\n@@ -116,7 +116,7 @@ as such! As such, it is OK to use UTF8 \n #define KIFACE_INSTANCE_NAME_AND_VERSION "KIFACE_1"\n \n...
164
10
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 41.31, "nodes": 134, "errors": 0, "source_hash": "3e1b89eca803ce4bd72ec4f889cf895146b9438de03378f5644a95887fc02d1f", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "labeled_statement", "text": "$Ne...
13,319
c
version https://git-lfs.github.com/spec/v1 oid sha256:dfb678680416d771d9b6a6c840646ff94c644b8e060aaa36d17c6e07b53333c1 size 1722
42
3
(translation_unit) "version https://git-lfs.github.com/spec/v1\noid sha256:dfb678680416d771d9b6a6c840646ff94c644b8e060aaa36d17c6e07b53333c1\nsize 1722\n" (declaration) "version https://git-lfs.github.com/spec/v1\noid" (type_identifier) "version" (ERROR) "https:" (identifier) "https" (:) ":" (c...
15
2
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 42.0, "nodes": 10, "errors": 0, "source_hash": "dc9062a45f600c4c5fa2cf898aae8106fae1a5687d42b73a0370c1b054809a02", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "version https...
13,320
c
int** return_combinations(int n, int r); void print_matrix(int** arr, int m, int n); int factorial(int n);
34.67
3
(translation_unit) "int** return_combinations(int n, int r);\nvoid print_matrix(int** arr, int m, int n);\n\nint factorial(int n);" (declaration) "int** return_combinations(int n, int r);" (primitive_type) "int" (pointer_declarator) "** return_combinations(int n, int r)" (*) "*" (pointer_declarato...
54
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 34.67, "nodes": 41, "errors": 0, "source_hash": "8ce0ce1ba02014a4ff5c455a4ba38266326308e1959a75cb2562caf276517a7a", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "int** retur...
13,321
c
#pragma once #include <string> #include <vector> #include "StringOP.h" class CMBBlock; class CBuildup { public: CBuildup(void); CBuildup(string m); CBuildup(const CBuildup &B); CBuildup& operator=(const CBuildup &BB); ~CBuildup(void); string model; string constituent; string phase; string solid; vector<d...
19.39
23
(translation_unit) "#pragma once\n#include <string>\n#include <vector>\n#include "StringOP.h"\n\nclass CMBBlock;\n\nclass CBuildup\n{\npublic:\n CBuildup(void);\n CBuildup(string m);\n CBuildup(const CBuildup &B);\n CBuildup& operator=(const CBuildup &BB);\n ~CBuildup(void);\n string model;\n string constituent;\n s...
165
3
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 19.39, "nodes": 107, "errors": 0, "source_hash": "4e03e5118f3b13c6b03b1072a281795e95f522c5e45b6ace0dd6e16edeef375a", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
13,322
c
#pragma once #include <ATen/ATen.h> #include <cstdint> namespace torch { namespace autograd { /// A tensor's type and shape. Each Function records the required type and /// shape of its inputs. If is_valid() is false, then the corresponding input /// is not used and may be an undefined tensor. struct InputMetadata ...
29.89
35
(translation_unit) "#pragma once\n\n#include <ATen/ATen.h>\n\n#include <cstdint>\n\nnamespace torch { namespace autograd {\n\n/// A tensor's type and shape. Each Function records the required type and\n/// shape of its inputs. If is_valid() is false, then the corresponding input\n/// is not used and may be an undefined...
309
20
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 29.89, "nodes": 162, "errors": 0, "source_hash": "bc309d9eb3d960d1683a04ce2096f4027e39641f7081eadcb68ccaa637d39538", "categorized_nodes": 109}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
13,323
c
// // <#SwiftRadio#>-Bridging-Header.h // SwiftRadio // // Created by <NAME> on 17/2/16. // Copyright © 2016 CodeMarket.io. All rights reserved. // #ifndef __SwiftRadio___Bridging_Header_h #define __SwiftRadio___Bridging_Header_h #import "Reachability.h" #endif /* __SwiftRadio___Bridging_Header_h */
26.73
11
(translation_unit) "//\n// <#SwiftRadio#>-Bridging-Header.h\n// SwiftRadio\n//\n// Created by <NAME> on 17/2/16.\n// Copyright © 2016 CodeMarket.io. All rights reserved.\n//\n\n#ifndef __SwiftRadio___Bridging_Header_h\n#define __SwiftRadio___Bridging_Header_h\n\n#import "Reachability.h"\n#endif /* __SwiftRadio___Br...
19
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 26.73, "nodes": 9, "errors": 0, "source_hash": "873ce29cd60fcab68d00e8d3aef6675468e69526a15a229a707e7f44fa86b4e4", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef __S...
13,324
c
#pragma once #include "shadow/ecs/component.h" #include "shadow/ui/ui_container.h" namespace Shadow { class UiComponent { public: UiComponent() = default; UiComponent(const UiComponent&) = default; explicit UiComponent(const UiContainer& container) : Container(container) {} UiContainer Container;...
23.85
13
(translation_unit) "#pragma once\n\n#include "shadow/ecs/component.h"\n#include "shadow/ui/ui_container.h"\n\nnamespace Shadow {\nclass UiComponent {\npublic:\n UiComponent() = default;\n UiComponent(const UiComponent&) = default;\n explicit UiComponent(const UiContainer& container)\n : Container(container)...
88
3
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 23.85, "nodes": 45, "errors": 0, "source_hash": "daeaa4a6d0392782df6b4c195c446a58b0abe8304ff54227db273b54e05e66c7", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,325
c
// // IDMGlucose.h // Pods // // Created by <NAME> on 4/27/17. // // #import <Foundation/Foundation.h> #import "UIView+Glucose.h"
13.78
9
(translation_unit) "//\n// IDMGlucose.h\n// Pods\n//\n// Created by <NAME> on 4/27/17.\n//\n//\n\n#import <Foundation/Foundation.h>\n\n#import "UIView+Glucose.h"\n" (comment) "//" (comment) "// IDMGlucose.h" (comment) "// Pods" (comment) "//" (comment) "// Created by <NAME> on 4/27/17." (comment) "//"...
14
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 13.78, "nodes": 6, "errors": 0, "source_hash": "f94e7a0e6d791c3181da4b5d188be7312952db22fa5dbacc7081fbb76b809dbf", "categorized_nodes": 2}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Fou...
13,326
c
#ifndef DTREE_H #define DTREE_H #include "rect.h" #include "indexer.h" template<class Data, int Dim> class DNode : public Data { public: typedef DNode<Data, Dim> Self; typedef Vector<double, Dim> Vec; typedef Rect<double, Dim> MyRect; int countNodes() const { int nodes = 1; if(chi...
28
85
(translation_unit) "#ifndef DTREE_H\n#define DTREE_H\n\n#include "rect.h"\n#include "indexer.h"\n\ntemplate<class Data, int Dim>\nclass DNode : public Data\n{\npublic:\n typedef DNode<Data, Dim> Self;\n typedef Vector<double, Dim> Vec;\n typedef Rect<double, Dim> MyRect;\n\n int countNodes() const\n {\n ...
940
54
{"language": "c", "success": true, "metadata": {"lines": 85, "avg_line_length": 28.0, "nodes": 591, "errors": 0, "source_hash": "1d111ad4208cebe53225e035b7ad4cccde0180223ccac29b3e50d49d6e227349", "categorized_nodes": 383}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
13,327
c
/* * Copyright (c) 2017-2020 Project PAI Foundation * Distributed under the MIT software license, see the accompanying * file COPYING or http://www.opensource.org/licenses/mit-license.php. */ #ifndef PAICOIN_STAKE_VOTEBITS_H #define PAICOIN_STAKE_VOTEBITS_H #include <cstdint> // A generic vote bits implementatio...
33.7
74
(translation_unit) "/* * Copyright (c) 2017-2020 Project PAI Foundation\n * Distributed under the MIT software license, see the accompanying\n * file COPYING or http://www.opensource.org/licenses/mit-license.php.\n */\n\n\n#ifndef PAICOIN_STAKE_VOTEBITS_H\n#define PAICOIN_STAKE_VOTEBITS_H\n\n#include <cstdint>\n\n// A ...
358
15
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 33.7, "nodes": 196, "errors": 0, "source_hash": "783b38de401529a1910ad18a5e67339ef35bc3454e2866e099f6bf87202b3698", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
13,328
c
#include "debug.h" #include "../../common/native_wuclasses/native_wuclasses.h" #include <avr/io.h> #include "../../common/native_wuclasses/GENERATEDwuclass_pir_sensor.h" #define F_CPU 16000000 #include <util/delay.h> //#define F_CPU 16000000 #define US_PORT PORTH #define US_PIN PINH #define US_DDR DDRH ...
28.74
105
(translation_unit) "#include "debug.h"\n#include "../../common/native_wuclasses/native_wuclasses.h"\n#include <avr/io.h>\n#include "../../common/native_wuclasses/GENERATEDwuclass_pir_sensor.h"\n#define F_CPU 16000000\n#include <util/delay.h>\n//#define F_CPU 16000000\n#define US_PORT PORTH\n#define US_P...
1,131
0
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 28.74, "nodes": 717, "errors": 0, "source_hash": "90526ad4bd668a83b4dfaa81e2b0fd5f3b8b392ffc4b3081b50c7f69c5a0f1bd", "categorized_nodes": 512}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
13,329
c
#pragma once #include <stdexcept> #include <vector> #include <glm/vec3.hpp> using glm::vec3; using std::runtime_error; using std::vector; struct PaletteColor { uint8_t r; uint8_t g; uint8_t b; }; struct Palette { vector<PaletteColor> colors; Palette(FILE*, int32_t offset, int32_t size); };
18.44
16
(translation_unit) "#pragma once\n\n#include <stdexcept>\n#include <vector>\n\n#include <glm/vec3.hpp>\n\nusing glm::vec3;\nusing std::runtime_error;\nusing std::vector;\n\nstruct PaletteColor {\n uint8_t r;\n uint8_t g;\n uint8_t b;\n};\n\nstruct Palette {\n vector<PaletteColor> colors;\n\n Palette(FILE...
91
6
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 18.44, "nodes": 63, "errors": 0, "source_hash": "c9dc9b80bc9b14281e6f635d87684f790e509c32cd45ebd5d3a8b5ed1772e4ff", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,330
c
// // DropboxListRevisionsArg+DictionarySerializer.h // Pods // // Created by <NAME> on 06.04.16. // // #import "DropboxListRevisionsArg.h" #import "DictionarySerializer.h" @interface DropboxListRevisionsArg (DictionarySerializer) <DictionarySerializer> @end
22.82
11
(translation_unit) "//\n// DropboxListRevisionsArg+DictionarySerializer.h\n// Pods\n//\n// Created by <NAME> on 06.04.16.\n//\n//\n\n#import "DropboxListRevisionsArg.h"\n#import "DictionarySerializer.h"\n\n@interface DropboxListRevisionsArg (DictionarySerializer) <DictionarySerializer>\n\n@end\n" (comment) "//" ...
30
5
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 22.82, "nodes": 19, "errors": 0, "source_hash": "f3055bbe3ad3dd2bbc6aafc234fba0cf1e40bab4156b3abf995325991ef31018", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
13,331
c
/* * Description: * History: <EMAIL>, 2013/11/27, create */ # undef _GNU_SOURCE # define _GNU_SOURCE # include <stdio.h> # include <stdlib.h> # include <string.h> # include <errno.h> # include <error.h> # include <assert.h> # include "udp_ev.h" int main(int argc, char *argv[]) { if (argc != 3) ...
29.76
45
(translation_unit) "/*\n * Description: \n * History: <EMAIL>, 2013/11/27, create\n */\n\n# undef _GNU_SOURCE\n# define _GNU_SOURCE\n\n# include <stdio.h>\n# include <stdlib.h>\n# include <string.h>\n# include <errno.h>\n# include <error.h>\n# include <assert.h>\n\n# include "udp_ev.h"\n\nint main(int argc, char *...
454
0
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 29.76, "nodes": 269, "errors": 0, "source_hash": "9912859c5a4ec06a5fff3a30cfb0afd257e6834f36bc5745021f990b16ac521a", "categorized_nodes": 198}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "# undef...
13,332
c
// vroots.h : Declaration of the CNntpVirtualRoot & CNntpVirtualRoots classes. #ifndef _VROOTS_INCLUDED_ #define _VROOTS_INCLUDED_ // // Dependencies: // #include "nntptype.h" #include "nntpapi.h" #include "metafact.h" class CMetabaseKey; // // A simple VRoot class: // class CVRoot { public: ...
28.79
287
(translation_unit) "// vroots.h : Declaration of the CNntpVirtualRoot & CNntpVirtualRoots classes. \n \n#ifndef _VROOTS_INCLUDED_ \n#define _VROOTS_INCLUDED_ \n \n// \n// Dependencies: \n// \n \n#include "nntptype.h" \n#include "nntpapi.h" \n#include "metafact.h" \nclass CMetabaseKey; \n \n// \n// A simple VRoot class:...
1,467
20
{"language": "c", "success": true, "metadata": {"lines": 287, "avg_line_length": 28.79, "nodes": 971, "errors": 0, "source_hash": "77b7bfd567d407c9a8d9af8df8b54cc44f1037e48c55d2a71abb68e9de28e036", "categorized_nodes": 763}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
13,333
c
/* ** EPITECH PROJECT, 2020 ** LibErty ** File description: ** efd */ #ifndef __LIBERTY__EFD__H__ #define __LIBERTY__EFD__H__ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// #include <erty/ectypes.h> #include...
35.27
90
(translation_unit) "/*\n** EPITECH PROJECT, 2020\n** LibErty\n** File description:\n** efd\n*/\n\n#ifndef __LIBERTY__EFD__H__\n #define __LIBERTY__EFD__H__\n\n ////////////////////////////////////////////////////////////\n // Headers\n ////////////////////////////////////////////////////////////\n\n #inc...
171
0
{"language": "c", "success": true, "metadata": {"lines": 90, "avg_line_length": 35.27, "nodes": 74, "errors": 0, "source_hash": "0e159dfc8955dd4277bee37431a859bc5bd3193af979293c76c72d4c14b1c32f", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,334
c
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) | +---------...
35.66
131
(translation_unit) "/*\n +----------------------------------------------------------------------+\n | HipHop for PHP |\n +----------------------------------------------------------------------+\n | Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook....
990
54
{"language": "c", "success": true, "metadata": {"lines": 131, "avg_line_length": 35.66, "nodes": 565, "errors": 0, "source_hash": "3d1b1fcd0a1d8d7586966eef65abef37742c8d611be862ade3223a65825b7190", "categorized_nodes": 380}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
13,335
c
int inc(int x) //@ requires true; //@ ensures result == x + 1; { x = x + 1; return x; // result = j; } int abs(int x) //@ requires true; //@ ensures 0 <= x ? result == x: result == 0 - x; { if(0<=x) { return x; } else { return 0 - x; } } int main() //@ requires true; ...
12.78
32
(translation_unit) "int inc(int x) \n //@ requires true; \n //@ ensures result == x + 1; \n{ \n x = x + 1; \n return x; // result = j; \n} \n \nint abs(int x) \n //@ requires true; \n //@ ensures 0 <= x ? result == x: result == 0 - x; \n{ \n if(0<=x) { \n return x; \n } else { \n return 0 - x; \n } \n} \...
122
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 12.78, "nodes": 69, "errors": 0, "source_hash": "2bb821a54dec26f72914d8285a0ae85f9366a8a18a9846ad85abb09460d37d4c", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "in...
13,336
c
// // NowPlayingFullScreenControlView.h // Projector // // Created by <NAME> on 9/26/14. // #import "NowPlayingControlView.h" @interface NowPlayingFullScreenControlView : NowPlayingControlView @property (nonatomic, weak) PCOLabel *titleLabel; @property (nonatomic, weak) PCOLabel *nextLabel; @property (nonatomic, ...
34.35
17
(translation_unit) "//\n// NowPlayingFullScreenControlView.h\n// Projector\n//\n// Created by <NAME> on 9/26/14.\n//\n\n#import "NowPlayingControlView.h"\n\n@interface NowPlayingFullScreenControlView : NowPlayingControlView\n\n@property (nonatomic, weak) PCOLabel *titleLabel;\n@property (nonatomic, weak) PCOLabel *n...
161
34
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 34.35, "nodes": 120, "errors": 0, "source_hash": "c0b2a08a51212d6ed46e79beb19483948ae0c9dcdddc80f82447a4f71cfcf6a1", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
13,337
c
// // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Jun 10 2020 10:03:13). // // Copyright (C) 1997-2019 <NAME>. // #import <UIKit/UIWindow.h> @interface PBSafeAreaWindow : UIWindow { } - (void)drawRect:(struct CGRect)arg1; // IMP=0x00000001000665bc - (_Bool)_ignores...
33.29
14
(translation_unit) "//\n// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Jun 10 2020 10:03:13).\n//\n// Copyright (C) 1997-2019 <NAME>.\n//\n\n#import <UIKit/UIWindow.h>\n\n@interface PBSafeAreaWindow : UIWindow\n{\n}\n\n- (void)drawRect:(struct CGRect)arg1; // IMP=0x00...
87
9
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 33.29, "nodes": 48, "errors": 0, "source_hash": "fcb8087d552084ce7e14fbe44faefb72474465ac8a7335986ffe1d9203a709d7", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
13,338
c
#ifndef SIMPLEFVM_FVMSOLVER_COEFFSPARTSVELOCITY_RHSVELOCITY_RHSU_H #define SIMPLEFVM_FVMSOLVER_COEFFSPARTSVELOCITY_RHSVELOCITY_RHSU_H #include "AbstractRhsVelocity.h" namespace fvmsolver { class RhsU : public AbstractRhsVelocity{ private: using uPtrDataPort = std::unique_ptr<RhsUPort>; public: RhsU(uPtrDat...
29.72
18
(translation_unit) "#ifndef SIMPLEFVM_FVMSOLVER_COEFFSPARTSVELOCITY_RHSVELOCITY_RHSU_H\n#define SIMPLEFVM_FVMSOLVER_COEFFSPARTSVELOCITY_RHSVELOCITY_RHSU_H\n\n#include "AbstractRhsVelocity.h"\n\n\nnamespace fvmsolver {\n\nclass RhsU : public AbstractRhsVelocity{\nprivate:\n using uPtrDataPort = std::unique_ptr<RhsUPo...
109
6
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 29.72, "nodes": 67, "errors": 0, "source_hash": "454464e59bda673e54651e81d3f9c7f537e074e5c5067a956afe2771f954b576", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,339
c
/* * Copyright (C) 2010 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
37.01
73
(translation_unit) "/*\n * Copyright (C) 2010 Apple Inc. All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n * notice...
501
24
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 37.01, "nodes": 305, "errors": 0, "source_hash": "267285ad3d39e44d008b8768e9ae0e179d693263b3a0f4ec57813094d952a960", "categorized_nodes": 212}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,340
c
// This was an early scene which I didn't end up using void redGreenYellow() { FastLED.clear(); for (int i = 0; i < NUM_LEDS; i++) { uint8_t ms = millis() / 40; uint8_t val = cubicwave8(ms + i * 8); leds[i].r = scale8(gamma8[val], 180); val = cubicwave8(ms + i * 12); ...
24.87
15
(translation_unit) "// This was an early scene which I didn't end up using\n\nvoid redGreenYellow()\n{\n FastLED.clear();\n for (int i = 0; i < NUM_LEDS; i++)\n {\n uint8_t ms = millis() / 40;\n uint8_t val = cubicwave8(ms + i * 8);\n leds[i].r = scale8(gamma8[val], 180);\n\n val = ...
152
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 24.87, "nodes": 96, "errors": 0, "source_hash": "13517da1bdf1dee1278f9e46af81c8b627b52cc7555d82e6364b9371fe383e1f", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "vo...
13,341
c
#include <sys/socket.h> #include "syscall.h" #include "libc.h" #ifdef __EMSCRIPTEN__ #include "socket_host.h" int connect(int fd, const struct sockaddr *addr, socklen_t len) { return connect_internal(fd, addr, len); } int normal_connect(int fd, const struct sockaddr *addr, socklen_t len) #else int connect(int fd, c...
26.88
16
(translation_unit) "#include <sys/socket.h>\n#include "syscall.h"\n#include "libc.h"\n\n#ifdef __EMSCRIPTEN__\n#include "socket_host.h"\n\nint connect(int fd, const struct sockaddr *addr, socklen_t len)\n{\n return connect_internal(fd, addr, len);\n}\n\nint normal_connect(int fd, const struct sockaddr *addr, socklen_t ...
143
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 26.88, "nodes": 90, "errors": 0, "source_hash": "eaf1261c77592b594754d1c03dc91d1afaf249eab762dec4fb3950005b8aacd8", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
13,342
c
/*- * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * <NAME> of the University of Guelph. * * %sccs.include.redist.c% */ #ifndef lint static char sccsid[] = "@(#)line_number.c 8.1 (Berkeley) 05/31/...
20.29
42
(translation_unit) "/*-\n * Copyright (c) 1992, 1993\n * The Regents of the University of California. All rights reserved.\n *\n * This code is derived from software contributed to Berkeley by\n * <NAME> of the University of Guelph.\n *\n * %sccs.include.redist.c%\n */\n\n#ifndef lint\nstatic char sccsid[] = "@(#)line...
163
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 20.29, "nodes": 102, "errors": 0, "source_hash": "d64c20796ee241e736cee263180f78d0275c4f83567753aa4addac105329587a", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
13,343
c
/** * @file llpreviewscript.h * @brief LLPreviewScript class definition * * $LicenseInfo:firstyear=2002&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2010, Linden Research, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Les...
34.24
316
(translation_unit) "/** \n * @file llpreviewscript.h\n * @brief LLPreviewScript class definition\n *\n * $LicenseInfo:firstyear=2002&license=viewerlgpl$\n * Second Life Viewer Source Code\n * Copyright (C) 2010, Linden Research, Inc.\n * \n * This library is free software; you can redistribute it and/or\n * modify it u...
2,462
94
{"language": "c", "success": true, "metadata": {"lines": 316, "avg_line_length": 34.24, "nodes": 1504, "errors": 0, "source_hash": "de4acf188d7ea9a9fe0b6a5159651b013dfc502335bd3552bb8beebee408fea8", "categorized_nodes": 989}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef LL_L...
13,344
c
// // HMAdSplashModel.h // KuaiYinADProject // // Created by 法正磊 on 2021/10/8. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN /// 需要传入有 placementId、platform /// 如果有slotId就传入,没有就忽略 /// platform传入平台类型 比如 ocean_engine、gdt、lanren、topon @interface HMAdSplashModel : NSObject /// 广告平台字符串 @property (nonatomic...
27.68
28
(translation_unit) "//\n// HMAdSplashModel.h\n// KuaiYinADProject\n//\n// Created by 法正磊 on 2021/10/8.\n//\n\n#import <Foundation/Foundation.h>\nNS_ASSUME_NONNULL_BEGIN\n/// 需要传入有 placementId、platform\n/// 如果有slotId就传入,没有就忽略\n/// platform传入平台类型 比如 ocean_engine、gdt、lanren、topon\n@interface HMAdSplashModel : NSObject\...
163
18
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 27.68, "nodes": 100, "errors": 0, "source_hash": "712b56a8b139392b061323cc42928e3464e9a2c59c8162e06db78a8d4700f534", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "t <Found...
13,345
c
/* * Copyright (C) 2019-2020 Alibaba Group Holding Limited */ #include "spiflash_test.h" int test_spiflash_interface(char *args) { csi_error_t ret; ret = csi_spiflash_spi_init(NULL, 0, NULL); TEST_CASE_ASSERT(ret == -1, "csi_spiflash_spi_init interface test error"); ret = csi_spiflash_qspi_init(NU...
45.56
27
(translation_unit) "/*\n * Copyright (C) 2019-2020 Alibaba Group Holding Limited\n */\n\n#include "spiflash_test.h"\n\nint test_spiflash_interface(char *args)\n{\n csi_error_t ret;\n\n ret = csi_spiflash_spi_init(NULL, 0, NULL);\n TEST_CASE_ASSERT(ret == -1, "csi_spiflash_spi_init interface test error");\n\n ...
315
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 45.56, "nodes": 180, "errors": 0, "source_hash": "9846e99e19e381ce064644b7e82fc6778dfc70fbed2d575a1c719fd45b748ee2", "categorized_nodes": 109}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,346
c
// // Encoder.h // // Library: PDF // Package: PDFCore // Module: Encoder // // Definition of the Encoder class. // // Copyright (c) 2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef PDF_Encoder_INCLUDED #define PDF_Encoder_INCLUDED #include...
26.86
95
(translation_unit) "//\n// Encoder.h\n//\n// Library: PDF\n// Package: PDFCore\n// Module: Encoder\n//\n// Definition of the Encoder class.\n//\n// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.\n// and Contributors.\n//\n// SPDX-License-Identifier: BSL-1.0\n//\n\n\n#ifndef PDF_Encoder_INCLUDED\n#d...
434
17
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 26.86, "nodes": 239, "errors": 0, "source_hash": "029dad9b5fd7418277226cb7ae5e08d00fee58e95f60a85b12b4c63cca5025f7", "categorized_nodes": 175}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef PDF_En...
13,347
c
/* This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. In jurisdictions that recognize copy...
27.73
194
(translation_unit) "/*\nThis is free and unencumbered software released into the public domain.\n\nAnyone is free to copy, modify, publish, use, compile, sell, or\ndistribute this software, either in source code form or as a compiled\nbinary, for any purpose, commercial or non-commercial, and by any\nmeans.\n\nIn juris...
1,319
0
{"language": "c", "success": true, "metadata": {"lines": 194, "avg_line_length": 27.73, "nodes": 824, "errors": 0, "source_hash": "d8a3bdaadc5dfbb57b0805e4fa022e09934682d6e3e869ff8b79dab4704b4678", "categorized_nodes": 611}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
13,348
c
// // UIViewController+Category.h // LCPageView // // Created by 陈连辰 on 2018/5/12. // Copyright © 2018年 复新会智. All rights reserved. // #import <UIKit/UIKit.h> @interface UIViewController (Category) /** 滚动视图(控制器需要把当前的scrollView赋值过来) */ @property(nonatomic, strong) UIScrollView *lcScrollView; @end
20.57
14
(translation_unit) "//\n// UIViewController+Category.h\n// LCPageView\n//\n// Created by 陈连辰 on 2018/5/12.\n// Copyright © 2018年 复新会智. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n\n@interface UIViewController (Category)\n\n\n/** 滚动视图(控制器需要把当前的scrollView赋值过来) */\n@property(nonatomic, strong) UIScrollView ...
42
8
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 20.57, "nodes": 27, "errors": 0, "source_hash": "27cbf2e1a9e21ea5dd22d4b258fd6742287ffba8013ff0a3b100ad043d4dc794", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Kit.h>\n\...
13,349
c
#pragma once #if 0 #include "UI/UIComponent.h" class Texture; class RoguePlayer; class HealthBar : public UIComponent { Texture* m_fullTex; Texture* m_emptyTex; RoguePlayer* m_player; public: HealthBar(RoguePlayer* player); virtual ~HealthBar(); virtual void render() override; }; #endif
18.6
15
(translation_unit) "#pragma once\n#if 0\n#include "UI/UIComponent.h"\n\nclass Texture;\nclass RoguePlayer;\n\nclass HealthBar : public UIComponent {\n Texture* m_fullTex;\n Texture* m_emptyTex;\n\n RoguePlayer* m_player;\npublic:\n HealthBar(RoguePlayer* player);\n virtual ~HealthBar();\n\n virtual void render() overri...
89
4
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 18.6, "nodes": 57, "errors": 0, "source_hash": "ba0c021af8920f00ea2c8502c4b379cc90d4581d946923c39324e3a1417d8018", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
13,350
c
/* Copyright (c) 2011-2014 <<EMAIL>> This file is part of the X13.Home project. http://X13home.org http://X13home.net http://X13home.github.io/ BSD New License See LICENSE file for license details. */ // TWI Driver for smart devices #include "../../config.h" #if (defined EXTDIO_USED) && (defined TWI_USED) && (defi...
32.87
150
(translation_unit) "/*\nCopyright (c) 2011-2014 <<EMAIL>>\n\nThis file is part of the X13.Home project.\nhttp://X13home.org\nhttp://X13home.net\nhttp://X13home.github.io/\n\nBSD New License\nSee LICENSE file for license details.\n*/\n\n// TWI Driver for smart devices\n\n#include "../../config.h"\n\n#if (defined EXTDIO_...
1,393
0
{"language": "c", "success": true, "metadata": {"lines": 150, "avg_line_length": 32.87, "nodes": 874, "errors": 0, "source_hash": "1a63a70b3416ce549a9bf9b82fb1f2680912fa28827b7524db9ac894862fc6fb", "categorized_nodes": 664}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
13,351
c
/* Program to calculate adler32 checksum for every file given on the command line. Uses zlib's adler32 routine. For the CMS Experiment http://cms.cern.ch Author: <NAME> <<EMAIL>> Created: 6th Dec 2008 */ #define _LARGEFILE64_SOURCE #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <s...
25.66
61
(translation_unit) "/*\n\n\n Program to calculate adler32 checksum for every file given\n on the command line. Uses zlib's adler32 routine.\n\n For the CMS Experiment http://cms.cern.ch\n\n Author: <NAME> <<EMAIL>>\n Created: 6th Dec 2008\n\n*/\n\n#define _LARGEFILE64_SOURCE\n#include <sys/stat.h>\n#include <fcntl...
385
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 25.66, "nodes": 240, "errors": 0, "source_hash": "1283157208b761b888628128ae9c7181b24569bc97acc3bd1d383fa57cf57249", "categorized_nodes": 171}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ...
13,352
c
// // Copyright 2017 <NAME> <<EMAIL>> // // This software is supplied under the terms of the MIT License, a // copy of which should be located in the distribution where this // file was obtained (LICENSE.txt). A copy of the license may also be // found online at https://opensource.org/licenses/MIT. // #ifndef STUBS_H...
21.4
40
(translation_unit) "//\n// Copyright 2017 <NAME> <<EMAIL>>\n//\n// This software is supplied under the terms of the MIT License, a\n// copy of which should be located in the distribution where this\n// file was obtained (LICENSE.txt). A copy of the license may also be\n// found online at https://opensource.org/license...
183
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 21.4, "nodes": 111, "errors": 0, "source_hash": "b2c4147ce1ac63a61cb1162ae7e850c07a0432e4f861c8799ea529c6615563ce", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,353
c
#pragma once #include <GLUL/Config.h> #include <GLUL/GL++/Texture.h> #include <GL/glew.h> #include <glm/matrix.hpp> #include <stack> namespace GL { class GLUL_API Framebuffer { public: enum class Status { Complete = GL_FRAMEBUFFER_COMPLETE, Undefined = GL_FR...
38.55
53
(translation_unit) "#pragma once\n\n#include <GLUL/Config.h>\n#include <GLUL/GL++/Texture.h>\n\n#include <GL/glew.h>\n#include <glm/matrix.hpp>\n\n#include <stack>\n\n\nnamespace GL {\n\n class GLUL_API Framebuffer {\n public:\n enum class Status {\n Complete = GL_FRAMEBUFFER_COMPLET...
340
15
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 38.55, "nodes": 212, "errors": 0, "source_hash": "d7bdf7d1a3f37612da16d416f3ded530086276fdef280e7350a26e26bb14e1ce", "categorized_nodes": 139}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
13,354
c
// Copyright 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CC_TEST_RENDER_PASS_TEST_UTILS_H_ #define CC_TEST_RENDER_PASS_TEST_UTILS_H_ #include "cc/base/scoped_ptr_vector.h" #include "cc/quads/render_pass...
41.19
42
(translation_unit) "// Copyright 2012 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef CC_TEST_RENDER_PASS_TEST_UTILS_H_\n#define CC_TEST_RENDER_PASS_TEST_UTILS_H_\n\n#include "cc/base/scoped_ptr_vector.h"\n#i...
232
8
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 41.19, "nodes": 148, "errors": 0, "source_hash": "7432ea350e4021515f7b80378f68f86bb1dc7dd15a701fa8a19461c8475845f1", "categorized_nodes": 109}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,355
c
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. /** @file fileops.h @brief Functions to load and save keys and ciphertexts and other objects to files. */ #pragma once #include <cassert> #include <fstream> #include <iostream> #include "seal/seal.h" #include "utils.h" ...
39.07
227
(translation_unit) "// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\n\n/**\n@file fileops.h\n\n@brief Functions to load and save keys and ciphertexts and other objects to files.\n*/\n\n#pragma once\n\n#include <cassert>\n#include <fstream>\n#include <iostream>\n\n#includ...
1,560
79
{"language": "c", "success": true, "metadata": {"lines": 227, "avg_line_length": 39.07, "nodes": 872, "errors": 0, "source_hash": "d38395ff8e28a7bcfdd2cedc4c1541352d7875aafb76c63b4ceb44dfa3121142", "categorized_nodes": 621}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
13,356
c
/* * This header is generated by classdump-dyld 1.0 * on Sunday, June 7, 2020 at 11:13:31 AM Mountain Standard Time * Operating System: Version 13.4.5 (Build 17L562) * Image Source: /System/Library/Frameworks/CoreImage.framework/CoreImage * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>. */ #...
35.97
32
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Sunday, June 7, 2020 at 11:13:31 AM Mountain Standard Time\n* Operating System: Version 13.4.5 (Build 17L562)\n* Image Source: /System/Library/Frameworks/CoreImage.framework/CoreImage\n* classdump-dyld is licensed under GPLv3, Copyright © 20...
370
27
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 35.97, "nodes": 208, "errors": 0, "source_hash": "03fb04fe2a68d0878f8e61db82c44c62cc5f8787e8eccc9d64c54baabfd2cd5c", "categorized_nodes": 138}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import ...
13,357
c
#include <stdio.h> int main(void) { printf("HELLO, %s!\n", "PRINTF"); return 0; }
16.2
5
(translation_unit) "#include <stdio.h>\n\nint main(void) {\n printf("HELLO, %s!\n", "PRINTF");\n return 0;\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (function_definition) "int main(void) {\n printf("HELLO, %s!\n", "PRINTF");\n return 0;\n}" ...
37
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 16.2, "nodes": 18, "errors": 0, "source_hash": "0ae412094c908b96fd740a757d93fb7043bf3fd3c734d6daf6c8a56ab777a860", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
13,358
c
#include "stdafx.h" #ifndef RPGLIB_ENGINEINCLUDE_H #define RPGLIB_ENGINEINCLUDE_H namespace Osaka{ namespace Engine{ /* Use `render_info` in `rpglib_include.h` to render with optimization. Do not use this. * This struct is used in SDL Render, to save time not settings some variables. */ struct render_i...
21.22
54
(translation_unit) "#include "stdafx.h" \n#ifndef RPGLIB_ENGINEINCLUDE_H \n#define RPGLIB_ENGINEINCLUDE_H \n \nnamespace Osaka{ \n namespace Engine{ \n /* Use `render_info` in `rpglib_include.h` to render with optimization. Do not use this. \n * This struct is used in SDL Render, to save time not settings some varia...
322
10
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 21.22, "nodes": 207, "errors": 0, "source_hash": "78d48fbb68ce771181fd7a1e8f2f18514a917da195f26c8e5b5c616c551f97b9", "categorized_nodes": 155}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,359
c
// Paula: One of your two companions during the campaign // Smart thinker, will remind you of your conscience #appendto Dialogue // Prelude func Dlg_Paula_1(object clonk) { var options = [["$MsgPaulaA1$", "Dlg_Paula_2"], ["$MsgPaulaA2$", "Dlg_Paula_3"], ["$MsgPaulaLeave$", "StopDialogue()"]]; MessageBox("$MsgPaula...
29.52
134
(translation_unit) "// Paula: One of your two companions during the campaign\n// Smart thinker, will remind you of your conscience\n\n#appendto Dialogue\n\n// Prelude\n\nfunc Dlg_Paula_1(object clonk)\n{\n var options = [["$MsgPaulaA1$", "Dlg_Paula_2"], ["$MsgPaulaA2$", "Dlg_Paula_3"], ["$MsgPaulaLeave$", "StopDialogue...
1,104
19
{"language": "c", "success": true, "metadata": {"lines": 134, "avg_line_length": 29.52, "nodes": 487, "errors": 0, "source_hash": "b94762b42f48b5454154d0147eaf42c77f9511e06f42c7841b5d6d6b5796b38b", "categorized_nodes": 375}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#appen...
13,360
c
#ifndef PROJECTJSONFILE_H #define PROJECTJSONFILE_H #include <QtCore> #include "graphics/itemInfo.h" class ProjectJSONFile { public: ProjectJSONFile(); }; #endif // PROJECTJSONFILE_H
16.09
11
(translation_unit) "#ifndef PROJECTJSONFILE_H\n#define PROJECTJSONFILE_H\n\n#include <QtCore>\n\n#include "graphics/itemInfo.h"\n\nclass ProjectJSONFile\n{\npublic:\n ProjectJSONFile();\n\n\n};\n\n#endif // PROJECTJSONFILE_H\n" (preproc_ifdef) "#ifndef PROJECTJSONFILE_H\n#define PROJECTJSONFILE_H\n\n#include <QtCo...
36
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 16.09, "nodes": 19, "errors": 0, "source_hash": "8f5752d17f58d78c0be456868ddf5d69983ea9033c34b59e17be95b3031b6a13", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,361
c
template <class T, class posVecType> inline T distance(const posVecType* position, const int i, const int j); template <class T> inline void insertInOrder(std::list<T>& currDist, std::list<int>& currList, const int j, const T distIJ, const int maxNeighbors); template <class T, class posVecType> inline int buildNe...
31.43
196
(translation_unit) "template <class T, class posVecType>\ninline T distance(const posVecType* position, const int i, const int j);\n\ntemplate <class T>\ninline void insertInOrder(std::list<T>& currDist, std::list<int>& currList,\n const int j, const T distIJ, const int maxNeighbors);\n\ntemplate <class T, class pos...
1,101
56
{"language": "c", "success": true, "metadata": {"lines": 196, "avg_line_length": 31.43, "nodes": 667, "errors": 0, "source_hash": "3b50cc1f057522edd9bcf49b0af3d774316430f5f5f08a7076ea1795f0832b7c", "categorized_nodes": 461}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "update_expression", "text": "t...
13,362
c
#pragma once #include "AppSettings.h" /**Struktura zawierajaca parametry figury wybrane przez uzytownia z menu*/ struct ShapeProperities { /**Glowny kolor - najczesciej kolor wypelnienia figury*/ sf::Color primaryColor; /**Drugorzedny kolor - najczesciej kolor obramowania figury*/ sf::Color secondaryColor; /**W...
30.85
33
(translation_unit) "#pragma once\n#include "AppSettings.h"\n\n/**Struktura zawierajaca parametry figury wybrane przez uzytownia z menu*/\nstruct ShapeProperities\n{\n /**Glowny kolor - najczesciej kolor wypelnienia figury*/\n sf::Color primaryColor;\n\n /**Drugorzedny kolor - najczesciej kolor obramowania figury*/\n sf...
182
12
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 30.85, "nodes": 111, "errors": 0, "source_hash": "a4ca628ec033385c9beaeffb2b1b6009b099d262390de44f951de19bacd00c41", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
13,363
c
/* * Copyright 2018 Google * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
35.26
47
(translation_unit) "/*\n * Copyright 2018 Google\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by app...
168
9
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 35.26, "nodes": 78, "errors": 0, "source_hash": "d449c48832e225d8cfe943d0de17715bedfa81a60a3be6f3c0ebfb3ed41d9afe", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,364
c
/******************************************************************************* * $Revision: 1.2 $ * $Date: 2001/09/11 06:19:36 $ * $Author: vyzo $ * * Contents: A streambuf which uses the GNU readline library for line I/O * (c) 2001 by <NAME> [<EMAIL>] * * This program is free software; you can redistribute i...
25.19
130
(translation_unit) "/*******************************************************************************\n * $Revision: 1.2 $\n * $Date: 2001/09/11 06:19:36 $\n * $Author: vyzo $\n *\n * Contents: A streambuf which uses the GNU readline library for line I/O\n * (c) 2001 by <NAME> [<EMAIL>]\n *\n * This program is free soft...
815
16
{"language": "c", "success": true, "metadata": {"lines": 130, "avg_line_length": 25.19, "nodes": 518, "errors": 0, "source_hash": "7a142b38c4448d4418a4a5de701622491c154fe56c110ec49a918ee419d5afeb", "categorized_nodes": 356}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
13,365
c
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:40:54 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/Frameworks/MapKit.framework/MapKit * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>. */ #imp...
38.48
40
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Sunday, September 27, 2020 at 11:40:54 AM Mountain Standard Time\n* Operating System: Version 14.0 (Build 18A373)\n* Image Source: /System/Library/Frameworks/MapKit.framework/MapKit\n* classdump-dyld is licensed under GPLv3, Copyright © 2013...
418
28
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 38.48, "nodes": 229, "errors": 0, "source_hash": "cb36b1c909ecdc9762ede66e7a3104abfd37c217c5a9e47a46efb4562d2425fa", "categorized_nodes": 143}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import ...
13,366
c
extern void bar(); int main() { #if CALL_BAR bar(); #endif return 0; }
8.12
8
(translation_unit) "extern void bar();\n\nint main()\n{\n#if CALL_BAR\n bar();\n#endif\n return 0;\n}\n" (declaration) "extern void bar();" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (function_declarator) "bar()" (identifier) "bar" (parameter_list) "()" ...
37
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 8.12, "nodes": 22, "errors": 0, "source_hash": "9c8488345c34d3b88ecb3317e869cba6b8e0a7a87ee28d475cf8e6b75252ca91", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern void ...
13,367
c
// Copyright (c) 2017, Lawrence Livermore National Security, LLC and // UT-Battelle, LLC. // Produced at the Lawrence Livermore National Laboratory and the Oak Ridge // National Laboratory. // LLNL-CODE-743438 // All rights reserved. // This file is part of MGmol. For details, see https://github.com/llnl/mgmol. // Plea...
35.99
73
(translation_unit) "// Copyright (c) 2017, Lawrence Livermore National Security, LLC and\n// UT-Battelle, LLC.\n// Produced at the Lawrence Livermore National Laboratory and the Oak Ridge\n// National Laboratory.\n// LLNL-CODE-743438\n// All rights reserved.\n// This file is part of MGmol. For details, see https://gith...
751
23
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 35.99, "nodes": 444, "errors": 0, "source_hash": "73d85bc1cc79077dd697244c3207568cec6e301dc14db7e73de1f575f2acd7ff", "categorized_nodes": 325}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,368
c
#ifndef SONG_H #define SONG_H #include "track.h" class Song { public: enum { DEFAULT_BEATS_PER_BAR = 4, DEFAULT_PATTERN_BEATS = 16, DEFAULT_BPM = 125, DEFAULT_PROCESS_BUFFER_SIZE = 256, ORDER_MAX = 999, ORDER_EMPTY = 0xFFFFF, ORDER_SKIP = 0xFFFFE, MAX_PATTERN = 999, SINGLE_EVENT_MAX = 1024 }; en...
29.37
144
(translation_unit) "#ifndef SONG_H\n#define SONG_H\n\n#include "track.h"\n\nclass Song {\npublic:\n enum {\n DEFAULT_BEATS_PER_BAR = 4,\n DEFAULT_PATTERN_BEATS = 16,\n DEFAULT_BPM = 125,\n DEFAULT_PROCESS_BUFFER_SIZE = 256,\n ORDER_MAX = 999,\n ORDER_EMPTY = 0xFFFFF,\n ORDER_SKIP = 0xFFFFE,\n MAX_PATTERN = 999,...
1,151
34
{"language": "c", "success": true, "metadata": {"lines": 144, "avg_line_length": 29.37, "nodes": 763, "errors": 0, "source_hash": "88c343d80ba823b98131fe9b4d0d16e096bbbb6f80ebdc00abf631ba48b2191b", "categorized_nodes": 508}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
13,369
c
// // LFLiveStreamInfo.h // LFLiveKit // // Created by LaiFeng on 16/5/20. // Copyright © 2016年 LaiFeng All rights reserved. // #import <Foundation/Foundation.h> #import "LFLiveAudioConfiguration.h" #import "LFLiveVideoConfiguration.h" typedef NS_ENUM (NSUInteger, LFLiveState){ LFLiveStateReady, LFLiveSt...
29.61
36
(translation_unit) "//\n// LFLiveStreamInfo.h\n// LFLiveKit\n//\n// Created by LaiFeng on 16/5/20.\n// Copyright © 2016年 LaiFeng All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "LFLiveAudioConfiguration.h"\n#import "LFLiveVideoConfiguration.h"\n\n\ntypedef NS_ENUM (NSUInteger, LFLiveState){\n...
193
24
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 29.61, "nodes": 130, "errors": 0, "source_hash": "c9df8cd86ab06f546220de9c8ac2bafd7f50703649f74b515117dfa7292cf0a7", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fo...
13,370
c
#ifndef __dbmon__ #define __dbmon__ #ifdef __cplusplus extern "C" { #endif Hook *dbmon_init( Dbptr db, Tbl *table_subset, void (*newrow)(Dbptr db, char *table, long irecord, char *sync, void *pvt), void (*delrow)(Dbptr db, char *table, char *sync, void *pvt), Tbl *(*querysyncs)(Dbptr db, char *table, ...
31.05
19
(translation_unit) "#ifndef __dbmon__\n#define __dbmon__\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\nHook *dbmon_init( Dbptr db, Tbl *table_subset, \n void (*newrow)(Dbptr db, char *table, long irecord, char *sync, void *pvt), \n void (*delrow)(Dbptr db, char *table, char *sync, void *pvt), \n Tbl *(*querys...
238
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 31.05, "nodes": 184, "errors": 0, "source_hash": "8d04ebf9141c2b26584978049de139b57e88aea44db86b3bf80d10cb9bcf6bf9", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,371
c
// Python-like exceptions #pragma once #ifndef __wasm__ #include <exception> #include <stdexcept> #include <typeinfo> #include <string> #endif namespace pentago { #ifdef __wasm__ struct RuntimeError {}; #define SIMPLE_EXCEPTION(Error, Base) struct Error {}; #else // if !__wasm__ using std::string; using std::type...
32.13
39
(translation_unit) "// Python-like exceptions\n#pragma once\n\n#ifndef __wasm__\n#include <exception>\n#include <stdexcept>\n#include <typeinfo>\n#include <string>\n#endif\nnamespace pentago {\n\n#ifdef __wasm__\n\nstruct RuntimeError {};\n#define SIMPLE_EXCEPTION(Error, Base) struct Error {};\n\n#else // if !__wasm__...
248
4
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 32.13, "nodes": 144, "errors": 0, "source_hash": "b9261d6b0cfefa753e71769eeb90f4cee823cc3d98968093dcb0d7d9b457899f", "categorized_nodes": 112}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
13,372
c
// // YYBaseVCHeader.h // YYTools // // Created by admin on 2019/1/19. // Copyright © 2019年 ArrQ. All rights reserved. // #ifndef YYBaseVCHeader_h #define YYBaseVCHeader_h #import "BgBaseViewController.h" #endif /* YYBaseVCHeader_h */
20.73
11
(translation_unit) "//\n// YYBaseVCHeader.h\n// YYTools\n//\n// Created by admin on 2019/1/19.\n// Copyright © 2019年 ArrQ. All rights reserved.\n//\n\n#ifndef YYBaseVCHeader_h\n#define YYBaseVCHeader_h\n\n#import "BgBaseViewController.h"\n\n#endif /* YYBaseVCHeader_h */\n" (comment) "//" (comment) "// YYBaseVC...
19
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 20.73, "nodes": 10, "errors": 0, "source_hash": "30bd25a2a1678d778bc24590ba391b965318c4b6b03b459b3963e74e9898a640", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ndef YYBa...
13,373
c
/** * @author <NAME> (github.com/tralf-strues) * @file listener_notifier.h * @date 2021-10-04 * * @copyright Copyright (c) 2021 */ #pragma once #include <assert.h> #include <initializer_list> #include <unordered_map> #include <list> #include "event.h" namespace Sml { #define DEFINE_STATIC_LISTENED_EVENT_T...
33.66
35
(translation_unit) "/**\n * @author <NAME> (github.com/tralf-strues)\n * @file listener_notifier.h\n * @date 2021-10-04\n * \n * @copyright Copyright (c) 2021\n */\n\n#pragma once\n\n#include <assert.h>\n#include <initializer_list>\n#include <unordered_map>\n#include <list>\n#include "event.h"\n\nnamespace Sml\n{\n ...
200
9
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 33.66, "nodes": 135, "errors": 0, "source_hash": "b91603d566867592a56252fb33c780e5f23ea01722ac2c6491912bbf3d6e7842", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
13,374
c
// // QMImageView.h // Q-municate // // Created by <NAME> on 27.06.14. // Copyright (c) 2014 Quickblox. All rights reserved. // #import <UIKit/UIKit.h> #import "SDWebImageManager.h" IB_DESIGNABLE @protocol QMImageViewDelegate ; typedef NS_ENUM(NSUInteger, QMImageViewType) { QMImageViewTypeNone, QMImageVie...
32.06
35
(translation_unit) "//\n// QMImageView.h\n// Q-municate\n//\n// Created by <NAME> on 27.06.14.\n// Copyright (c) 2014 Quickblox. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "SDWebImageManager.h"\nIB_DESIGNABLE\n@protocol QMImageViewDelegate ;\n\ntypedef NS_ENUM(NSUInteger, QMImageViewType) {\n Q...
225
32
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 32.06, "nodes": 147, "errors": 0, "source_hash": "34ece2e7c7e1455c5062b03bdb0f0a1a07b4275720e221edfab7bc648b79fc58", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
13,375
c
// // Created by <NAME> on 28/01/2018. // #include <zconf.h> #include "../includes/auto.h" void ef_auto(routineInfo info ) { } void df_auto(routineInfo info) { } void cf_auto(routineInfo info) { } char* es_auto(routineInfo info) { return NULL; } char* ds_auto(routineInfo info) { return NULL; } char* cs_auto(...
12.35
26
(translation_unit) "//\n// Created by <NAME> on 28/01/2018.\n//\n\n#include <zconf.h>\n#include "../includes/auto.h"\nvoid ef_auto(routineInfo info )\n{\n\n}\n\nvoid df_auto(routineInfo info)\n{\n\n}\n\nvoid cf_auto(routineInfo info)\n{\n\n}\n\nchar* es_auto(routineInfo info)\n{\n return NULL;\n}\n\nchar* ds_auto(routi...
112
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 12.35, "nodes": 69, "errors": 0, "source_hash": "23adeed36d8bd9e99e788b5ca03e86dd052749e51b256925f3b1282118ac257f", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
13,376
c
// // SWParallaxScrollView.h // ParallaxScrollView // // Created by <NAME> on 14.02.14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> /** A parallax scroll view associates a layer (as a @c CGFloat) with each * subview. Layer 0 scrolls with the regular scrolling speed while views ...
32.05
22
(translation_unit) "//\n// SWParallaxScrollView.h\n// ParallaxScrollView\n//\n// Created by <NAME> on 14.02.14.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n/** A parallax scroll view associates a layer (as a @c CGFloat) with each\n * subview. Layer 0 scrolls with the regul...
53
8
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 32.05, "nodes": 28, "errors": 0, "source_hash": "a6855df29b72278af159d82d6f4cfe81455158ecd350a1b6bdaa2846aceb432f", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
13,377
c
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include "log.h" #include "sealark_predicators.h" EXPORT bool sealark_is_printable(struct node_s *ast_node) { /* log_debug("tid %d printable?", ast_node->tid); */ for (int i = 0; printable_tokens[i] != 0; i++) { /* log_debug...
36.67
243
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n#include <string.h>\n#include <math.h>\n\n#include "log.h"\n\n#include "sealark_predicators.h"\n\nEXPORT bool sealark_is_printable(struct node_s *ast_node)\n{\n /* log_debug("tid %d printable?", ast_node->tid); */\n for (int i = 0; printable_tokens[i] !...
1,962
6
{"language": "c", "success": true, "metadata": {"lines": 243, "avg_line_length": 36.67, "nodes": 1197, "errors": 0, "source_hash": "8aaa5c9c01d5f0392c9ecefbc5068ca5c71d7f0834c0d82da7b20ba0d7d91bfa", "categorized_nodes": 843}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
13,378
c
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* */ #ifndef _ASM_POWERPC_MMAN_H #define _ASM_POWERPC_MMAN_H #include <uapi/asm/mman.h> #ifdef CONFIG_PPC64 #include <asm/cputable.h> #include <linux/mm.h> #include <linux/pkeys.h> #include <asm/cpu_has_feature.h> /* * This file is included by linux/mman.h, so we c...
30.43
47
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0-or-later */\n/*\n */\n#ifndef _ASM_POWERPC_MMAN_H\n#define _ASM_POWERPC_MMAN_H\n\n#include <uapi/asm/mman.h>\n\n#ifdef CONFIG_PPC64\n\n#include <asm/cputable.h>\n#include <linux/mm.h>\n#include <linux/pkeys.h>\n#include <asm/cpu_has_feature.h>\n\n/*\n * This file ...
310
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 30.43, "nodes": 205, "errors": 0, "source_hash": "cf470e3f678c9976ffa1846cba7c11786a54d7dabb3ca609c16e8507ada1641b", "categorized_nodes": 153}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,379
c
#pragma once #include "CoreMinimal.h" #include "Modules/ModuleInterface.h" class FBlueprintQuaternionLibraryModule : public IModuleInterface { virtual void StartupModule() override; virtual void ShutdownModule() override; };
28.12
8
(translation_unit) "#pragma once\n\n#include "CoreMinimal.h"\n#include "Modules/ModuleInterface.h"\n\nclass FBlueprintQuaternionLibraryModule : public IModuleInterface\n{\n virtual void StartupModule() override;\n virtual void ShutdownModule() override;\n};" (preproc_call) "#pragma once\n" (preproc_directiv...
52
4
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 28.12, "nodes": 30, "errors": 0, "source_hash": "693570b858e96b44d72ec2d547110c26cebb3b9b15e1f3ce61201e3031ebd0d6", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
13,380
c
// ****************************************************************** // A server that accepts a connection and then immediately closes it. // ****************************************************************** #include <arpa/inet.h> #include <errno.h> #include <netdb.h> #include <stdio.h> #include <stdlib.h> #include ...
34.92
88
(translation_unit) "// ******************************************************************\n// A server that accepts a connection and then immediately closes it.\n// ******************************************************************\n\n#include <arpa/inet.h>\n#include <errno.h>\n#include <netdb.h>\n#include <stdio.h>\n#...
906
0
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 34.92, "nodes": 508, "errors": 0, "source_hash": "753e9ebbfec0d38f0115186ae125e3942d7a37320be74f42a7023a393292199d", "categorized_nodes": 369}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,381
c
//===- llvm/CodeGen/WinEHFuncInfo.h -----------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
37.96
104
(translation_unit) "//===- llvm/CodeGen/WinEHFuncInfo.h -----------------------------*- C++ -*-===//\n//\n// The LLVM Compiler Infrastructure\n//\n// This file is distributed under the University of Illinois Open Source\n// License. See LICENSE.TXT for details.\n//\n//===----------------------------...
691
50
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 37.96, "nodes": 443, "errors": 0, "source_hash": "482ca841c0cc7d86173ba6ef9ca17ba59c04c64d85242c2e94637604439a843d", "categorized_nodes": 288}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
13,382
c
#ifndef MMU_H #define MMU_H #include <stdint.h> #include <stdlib.h> #include "memory.h" struct tlb_entry { uint8_t flags; uint8_t vaddr; uint16_t paddr; }; struct mmu { struct tlb_entry tlb[4]; uint32_t baseaddr; char lru; struct memory *mem; }; typedef struct mmu mmu; #define MMU_ACTIVE 1 #define MM...
23.33
36
(translation_unit) "#ifndef MMU_H\n#define MMU_H\n\n#include <stdint.h>\n#include <stdlib.h>\n\n#include "memory.h"\n\nstruct tlb_entry\n{\n uint8_t flags;\n uint8_t vaddr;\n uint16_t paddr;\n};\n\nstruct mmu\n{\n struct tlb_entry tlb[4];\n uint32_t baseaddr;\n char lru;\n struct memory *mem;\n};\ntypedef struct...
177
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 23.33, "nodes": 132, "errors": 0, "source_hash": "6294cbb694ab2a539dc1da7fde2bd323219df299f5de85b6284da0371cd1099c", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
13,383
c
// // harbaughsim16-Bridging-Header.h // harbaughsim16 // // Created by <NAME> on 1/5/18. // Copyright © 2018 <NAME>. All rights reserved. // #ifndef harbaughsim16_Bridging_Header_h #define harbaughsim16_Bridging_Header_h #import "STPopup.h" #import "UIScrollView+EmptyDataSet.h" #import "Player.h" #endif /* harb...
23.93
14
(translation_unit) "//\n// harbaughsim16-Bridging-Header.h\n// harbaughsim16\n//\n// Created by <NAME> on 1/5/18.\n// Copyright © 2018 <NAME>. All rights reserved.\n//\n\n#ifndef harbaughsim16_Bridging_Header_h\n#define harbaughsim16_Bridging_Header_h\n#import "STPopup.h"\n#import "UIScrollView+EmptyDataSet.h"\n#im...
25
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 23.93, "nodes": 13, "errors": 0, "source_hash": "cd2b2ca8c51f36805796faa704c1a9e0f780700e4455c32875323be59d8a8177", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef ha...
13,384
c
/* NEC remote infrared RMT example This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include ...
33.32
335
(translation_unit) "/* NEC remote infrared RMT example\n\n This example code is in the Public Domain (or CC0 licensed, at your option.)\n\n Unless required by applicable law or agreed to in writing, this\n software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR\n CONDITIONS OF ANY KIND, either expres...
2,136
0
{"language": "c", "success": true, "metadata": {"lines": 335, "avg_line_length": 33.32, "nodes": 1289, "errors": 0, "source_hash": "87dc234ccb7490193e0b553ae82023a47520fa7399760d8c2896e156985d5af5", "categorized_nodes": 876}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
13,385
c
/* * Copyright 2018-present Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
33.74
62
(translation_unit) "/*\n * Copyright 2018-present Facebook, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless re...
388
30
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 33.74, "nodes": 248, "errors": 0, "source_hash": "1afc616ac121aa10a7f43144378c4d295eaad3ab664056ee63bd2062d379b2f6", "categorized_nodes": 163}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
13,386
c
#include "types.h" #include "stat.h" #include "user.h" int main(int argc, char **argv){ int before, after; int pid; printf(1,"TEST2 : "); before = freemem(); pid = fork(); if(pid == 0){ after = freemem(); if(before - after == 68) printf(1,"OK\n"); else ...
17.61
23
(translation_unit) "#include "types.h"\n#include "stat.h"\n#include "user.h"\n\nint main(int argc, char **argv){\n int before, after;\n int pid;\n\n printf(1,"TEST2 : ");\n before = freemem();\n pid = fork();\n if(pid == 0){\n after = freemem();\n if(before - after == 68)\n pr...
173
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 17.61, "nodes": 92, "errors": 0, "source_hash": "6ef6d0cf0dfa59bb9589bf385f379877473e25321acd9b4922047be00a7f24a3", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
13,387
c
/** * Project Untitled */ #ifndef _COMMANDSERVICE_H #define _COMMANDSERVICE_H class CommandService { private: int commandPrice; }; #endif //_COMMANDSERVICE_H
13.82
11
(translation_unit) "/**\n * Project Untitled\n */\n\n\n#ifndef _COMMANDSERVICE_H\n#define _COMMANDSERVICE_H\n\nclass CommandService {\nprivate: \n int commandPrice;\n};\n\n#endif //_COMMANDSERVICE_H" (comment) "/**\n * Project Untitled\n */" (preproc_ifdef) "#ifndef _COMMANDSERVICE_H\n#define _COMMANDSERVICE_H\n\nc...
25
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 13.82, "nodes": 13, "errors": 0, "source_hash": "46a348394da3d8ac99aa12cf4e8a7fece8fcdf3cf0d1930200f46ebad5b2a814", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
13,388
c
#pragma once #include <vector> #include <algorithm> #include <string> class Scene; class SceneManager { public: static SceneManager * GetInstance(); static void AddScenes(std::vector<Scene*> scenes); static int GetActiveSceneIndex(); static Scene * GetActiveScene(); static void ChangeActiveSc...
19.59
34
(translation_unit) "#pragma once \n \n#include <vector> \n#include <algorithm> \n#include <string> \n \nclass Scene; \n \nclass SceneManager \n{ \npublic: \n \n static SceneManager * GetInstance(); \n \n static void AddScenes(std::vector<Scene*> scenes); \n static int GetActiveSceneIndex(); \n static Scene * GetActiveS...
228
6
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 19.59, "nodes": 124, "errors": 0, "source_hash": "9b48a1a264e287e75a3fb1edc6e91d0fd7bb3ac4e3499590172ce0f9558e6a93", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
13,389
c
#ifndef TSQL_COLLATION_H #define TSQL_COLLATION_H #include "mb/pg_wchar.h" #include "nodes/nodeFuncs.h" #include "nodes/pathnodes.h" /* Set default encoding to UTF8 */ #define COLL_DEFAULT_ENCODING PG_UTF8 typedef struct coll_info { Oid oid; /* oid is only retrievable during runtime, so we have to init to 0 */ ...
39.34
83
(translation_unit) "#ifndef TSQL_COLLATION_H\n#define TSQL_COLLATION_H\n\n#include "mb/pg_wchar.h"\n#include "nodes/nodeFuncs.h"\n#include "nodes/pathnodes.h"\n\n/* Set default encoding to UTF8 */\n#define COLL_DEFAULT_ENCODING PG_UTF8\n\ntypedef struct coll_info\n{\n Oid oid; /* oid is only retrievable during runti...
565
0
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 39.34, "nodes": 392, "errors": 0, "source_hash": "5f2dc7e416913c7cd69e804a8a80024f3b84f61658492ff2cfab2c38b039e327", "categorized_nodes": 242}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,390
c
/** * The MIT License (MIT) * * Copyright (c) 2014 <NAME>, University of Massachusetts * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without lim...
36.74
104
(translation_unit) "/**\n * The MIT License (MIT)\n *\n * Copyright (c) 2014 <NAME>, University of Massachusetts\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy of\n * this software and associated documentation files (the "Software"), to deal in\n * the Software without restric...
244
17
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 36.74, "nodes": 147, "errors": 0, "source_hash": "2d597407693331f94fa27bc368eb687a0609b67902dd25914b77906ef0863e2f", "categorized_nodes": 96}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,391
c
/********************************************************************** * LeechCraft - modular cross-platform feature rich internet client. * Copyright (C) 2010 <NAME>, <NAME> * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1...
29.44
27
(translation_unit) "/**********************************************************************\n * LeechCraft - modular cross-platform feature rich internet client.\n * Copyright (C) 2010 <NAME>, <NAME>\n *\n * Distributed under the Boost Software License, Version 1.0.\n * (See accompanying file LICENSE or copy at https:...
109
8
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 29.44, "nodes": 57, "errors": 0, "source_hash": "564c167755a5f10285a8af6f8bc9eb66cdcc068b87c114e217b94695a920f870", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,392
c
//-----------------------BEGIN NOTICE -- DO NOT EDIT----------------------- // NASA Goddard Space Flight Center // Land Information System Framework (LISF) // Version 7.3 // // Copyright (c) 2020 United States Government as represented by the // Administrator of the National Aeronautics and Space Administration. // All...
25.08
184
(translation_unit) "//-----------------------BEGIN NOTICE -- DO NOT EDIT-----------------------\n// NASA Goddard Space Flight Center\n// Land Information System Framework (LISF)\n// Version 7.3\n//\n// Copyright (c) 2020 United States Government as represented by the\n// Administrator of the National Aeronautics and Sp...
976
0
{"language": "c", "success": true, "metadata": {"lines": 184, "avg_line_length": 25.08, "nodes": 567, "errors": 0, "source_hash": "d43522244880c40cc930113b8649aac29e06d6a270cdc58178cdc6d6571d535d", "categorized_nodes": 360}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
13,393
c
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <sys/file.h> #include <openssl/md5.h> #include <openssl/sha.h> #define CHUNK_SIZE 1024 #define MAX_PATH_SIZE 4096 #define FINAL_HASH_SIZE 16 #define FINAL_BUFFER_SIZE 40 #define EOS(str) ((str) + strlen(str)) char *hio_md5(c...
27.14
105
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <unistd.h>\n#include <string.h>\n#include <sys/file.h>\n\n#include <openssl/md5.h>\n#include <openssl/sha.h>\n\n#define CHUNK_SIZE 1024\n#define MAX_PATH_SIZE 4096\n#define FINAL_HASH_SIZE 16\n#define FINAL_BUFFER_SIZE 40\n\n#define EOS(str) ((st...
966
0
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 27.14, "nodes": 557, "errors": 0, "source_hash": "8384163bdc180a2077d6e7e0100c02a5d59777ec2092d6f74612584abcb9f6a8", "categorized_nodes": 356}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
13,394
c
#ifndef CHC_H__ #define CHC_H__ #ifdef __cplusplus extern "C" { #endif #include <stddef.h> #define DATA_TYPE unsigned char /* change this to any guaranteed 8 bit type you need */ #define USE_PTHREADS 1 /* set to 0 if you don't want pthreads/threading support */ enum { USING_CUSTOM_ALLOCATORS = 0b00000000000000000...
28.43
42
(translation_unit) "#ifndef CHC_H__\n#define CHC_H__\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n#include <stddef.h>\n\n#define DATA_TYPE unsigned char /* change this to any guaranteed 8 bit type you need */\n#define USE_PTHREADS 1 /* set to 0 if you don't want pthreads/threading support */\n\nenum\n{\n USING_CUSTO...
284
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 28.43, "nodes": 204, "errors": 0, "source_hash": "60b7eb678de8de42f16e8f64c10b9c5ddb4a41baf43bd95f7bfffc488f3259b0", "categorized_nodes": 119}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,395
c
#include <avr/io.h> #include "LED.h" void LED_Reg_Write(uint8_t val) { LEDPORT = ~val; } void LED_set(uint8_t LED) { LEDPORT &= ~(1 << LED); } void LED_clr(uint8_t LED) { LEDPORT |= (1 << LED); } void LED_toggle(uint8_t LED) { LEDPORT ^= (1 << LED); }
17.29
14
(translation_unit) "#include <avr/io.h>\n#include "LED.h"\n\nvoid LED_Reg_Write(uint8_t val) {\n LEDPORT = ~val;\n}\n\nvoid LED_set(uint8_t LED) {\n LEDPORT &= ~(1 << LED);\n}\n\nvoid LED_clr(uint8_t LED) {\n LEDPORT |= (1 << LED);\n}\n\nvoid LED_toggle(uint8_t LED) {\n LEDPORT ^= (1 << LED);\n}" (preproc_include) "#...
108
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 17.29, "nodes": 70, "errors": 0, "source_hash": "2fa0557bc0018393bb527a44ddb0c2bd1284c98b97a0e9265b41feb3f1f601a3", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
13,396
c
// // ChatListController.h // getgood // // Created by <NAME> on 22/12/17. // Copyright © 2017 PH. All rights reserved. // // // HomeActivityController.h // getgood // // Created by <NAME> on 21/11/17. // Copyright © 2017 PH. All rights reserved. // #import <UIKit/UIKit.h> #import "XLPagerTabStripViewControlle...
24.66
35
(translation_unit) "//\n// ChatListController.h\n// getgood\n//\n// Created by <NAME> on 22/12/17.\n// Copyright © 2017 PH. All rights reserved.\n//\n//\n// HomeActivityController.h\n// getgood\n//\n// Created by <NAME> on 21/11/17.\n// Copyright © 2017 PH. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#...
160
18
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 24.66, "nodes": 108, "errors": 0, "source_hash": "7deca79188e1dcef48ea776dad112c86f451ec93db20e42dae1dc562792d522d", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <U...
13,397
c
#include <fs/fs.h> #include <fs/devfile.h> #include <errno.h> #include <mm/heap.h> #include <mm/memset.h> #include <print.h> int fsOpen(struct File *f) { int error = 0; f->lock = 0; f->refCount = 1; acquireSpinlock(&f->inode->lock); if (f->flags & SYSOPEN_FLAG_DIR && !isDir(f->inode)) { error = -ENOTDIR; g...
23.09
98
(translation_unit) "#include <fs/fs.h>\n#include <fs/devfile.h>\n#include <errno.h>\n#include <mm/heap.h>\n#include <mm/memset.h>\n#include <print.h>\n\nint fsOpen(struct File *f) {\n int error = 0;\n f->lock = 0;\n f->refCount = 1;\n\n acquireSpinlock(&f->inode->lock);\n \n if (f->flags & SYSOPEN_FLAG_DIR && !isDir(f-...
923
0
{"language": "c", "success": true, "metadata": {"lines": 98, "avg_line_length": 23.09, "nodes": 560, "errors": 0, "source_hash": "d9647968d113c542df33e26b5dcf19ff0c1b6a4feebd8b7b9b49eb751bd16845", "categorized_nodes": 453}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,398
c
// // Created by deput on 3/12/16. // Copyright (c) 2016 RW. All rights reserved. // #import "RWPromise.h" #define STATE_PROTECT if (sSelf.state != RWPromiseStatePending) return; typedef NS_ENUM(NSUInteger, RWPromiseState) { RWPromiseStatePending = 0, RWPromiseStateResolved = 1, RWPromiseStateRejected = ...
34.09
47
(translation_unit) "//\n// Created by deput on 3/12/16.\n// Copyright (c) 2016 RW. All rights reserved.\n//\n\n#import "RWPromise.h"\n\n#define STATE_PROTECT if (sSelf.state != RWPromiseStatePending) return;\n\ntypedef NS_ENUM(NSUInteger, RWPromiseState) {\n RWPromiseStatePending = 0,\n RWPromiseStateResolved = 1...
479
89
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 34.09, "nodes": 338, "errors": 0, "source_hash": "ebb0350cc19eec476b3b1f6813b13a575fd244b605ca64f2d4ca58fa793c8c9d", "categorized_nodes": 178}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
13,399