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
//-------- <<< Use Configuration Wizard in Context Menu >>> ----------------- // // <e> Antenna Diversity CLI #define SL_OPENTHREAD_ANT_DIV_CLI_ENABLE 1 // </e> // <<< end of configuration section >>>
36.33
6
(translation_unit) "//-------- <<< Use Configuration Wizard in Context Menu >>> -----------------\n//\n// <e> Antenna Diversity CLI\n#define SL_OPENTHREAD_ANT_DIV_CLI_ENABLE 1\n// </e>\n// <<< end of configuration section >>>\n" (comment) "//-------- <<< Use Configuration Wizard in Context Menu...
10
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 36.33, "nodes": 4, "errors": 0, "source_hash": "6857c4b82325c7419a6481c5d06a3863cc5207dd14ef245e471ef33e9ff11b40", "categorized_nodes": 1}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define SL_OP...
4,700
c
#include <stdio.h> int main(void) { /* 자료형 크기 알아보기 */ int x; printf("변수 x의 크기 : %d\n", sizeof(x)); // 4 printf("값 10의 크기 : %d\n", sizeof(10)); // 4 printf("자료형 int의 크기 : %d\n", sizeof(int)); // 4 double d; printf("변수 d의 크기 : %d\n", sizeof(d)); // 8 printf("값 3.14의 크기 :...
35.83
24
(translation_unit) "#include <stdio.h>\n\nint main(void) {\n /* 자료형 크기 알아보기 */\n int x;\n printf("변수 x의 크기 : %d\n", sizeof(x)); // 4\n printf("값 10의 크기 : %d\n", sizeof(10)); // 4\n printf("자료형 int의 크기 : %d\n", sizeof(int)); // 4\n\n double d;\n printf("변수 d의 크기 : %d\n", sizeof(d)); // 8...
332
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 35.83, "nodes": 157, "errors": 0, "source_hash": "84c53e5da7ef2dad5ced57922b10a96250b4b63f77f3520ed094d911ba05c8c5", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
4,701
c
#include "../../src/corelib/arch/qatomic_symbian.h"
51
1
(translation_unit) "#include "../../src/corelib/arch/qatomic_symbian.h"\n" (preproc_include) "#include "../../src/corelib/arch/qatomic_symbian.h"\n" (#include) "#include" (string_literal) ""../../src/corelib/arch/qatomic_symbian.h"" (") """ (string_content) "../../src/corelib/arch/qatomic_symbian....
7
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 51.0, "nodes": 3, "errors": 0, "source_hash": "76ca4baad5461ddbc87e86f197e3446d78bb86a8595b9ff74b16eab5b51ead9f", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \...
4,702
c
// // RXNewHomeTableViewCell.h // RXExtenstion // // Created by srx on 16/5/24. // Copyright © 2016年 https://github.com/srxboys. All rights reserved. // #import <UIKit/UIKit.h> @protocol RXNewHomeTableViewCellDelegate <NSObject> @optional - (void)RXNewHomeTableViewCellScrollView:(CGFloat)offsetY; @end @interfa...
27.94
18
(translation_unit) "//\n// RXNewHomeTableViewCell.h\n// RXExtenstion\n//\n// Created by srx on 16/5/24.\n// Copyright © 2016年 https://github.com/srxboys. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n\n@protocol RXNewHomeTableViewCellDelegate <NSObject>\n\n@optional\n- (void)RXNewHomeTableViewCellScrollVie...
97
16
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 27.94, "nodes": 67, "errors": 0, "source_hash": "b9f06ffc93bd9f8bc823d549fb7f307af037cf59e05036d6875999f1b312dd0d", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
4,703
c
#ifndef STORAGE_LEVELDB_DB_MEMTABLE_H_ #define STORAGE_LEVELDB_DB_MEMTABLE_H_ #include <string> #include "leveldb/db.h" #include "db/dbformat.h" #include "db/skiplist.h" #include "util/arena.h" namespace leveldb { class InternalKeyComparator; class Mutex; class MemTableIterator; class MemTable { public: ex...
19.97
59
(translation_unit) "#ifndef STORAGE_LEVELDB_DB_MEMTABLE_H_\n#define STORAGE_LEVELDB_DB_MEMTABLE_H_\n\n#include <string>\n#include "leveldb/db.h"\n#include "db/dbformat.h"\n#include "db/skiplist.h"\n#include "util/arena.h"\n\nnamespace leveldb {\n\nclass InternalKeyComparator;\nclass Mutex;\nclass MemTableIterator;\n\nc...
354
16
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 19.97, "nodes": 202, "errors": 0, "source_hash": "9c75c3df972159810af7fea1840327beff1e5669f8c93ab60adad1dcc63742c3", "categorized_nodes": 147}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef STORAG...
4,704
c
/* Expected result: x[i] and t[i] can be scalarized NOTE: no copy-out on x[i] and t[i], as only y is copied out. */ #include <stdio.h> #define SIZE 100 int scalarization14(int n) { int x[SIZE], y[SIZE][SIZE], t[SIZE]; int i, j; for (i=0 ; i < SIZE ; i++) { x[i] = i; for (j=0 ; j < SIZE ; j++...
19.6
25
(translation_unit) "/* Expected result:\n x[i] and t[i] can be scalarized\n\n NOTE:\n no copy-out on x[i] and t[i], as only y is copied out.\n */\n\n#include <stdio.h>\n#define SIZE 100\n\nint scalarization14(int n)\n{\n int x[SIZE], y[SIZE][SIZE], t[SIZE];\n int i, j;\n\n for (i=0 ; i < SIZE ; i++) {\n x[i...
235
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 19.6, "nodes": 143, "errors": 0, "source_hash": "30a36d7234e42b76569492e47e4eb6d12bdfd54f48b3ac441251ac1cea8b1379", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
4,705
c
/* seqmod.c - sequenced modifies */ /* This work is part of OpenLDAP Software <http://www.openldap.org/>. * * Copyright 2004-2021 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted only as authorized by the OpenLDAP ...
27.24
172
(translation_unit) "/* seqmod.c - sequenced modifies */\n/* This work is part of OpenLDAP Software <http://www.openldap.org/>.\n *\n * Copyright 2004-2021 The OpenLDAP Foundation.\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted only as ...
1,213
0
{"language": "c", "success": true, "metadata": {"lines": 172, "avg_line_length": 27.24, "nodes": 761, "errors": 0, "source_hash": "a9bf3f8bbe066f9021c7b0c24f30255a9e491d649e7634d9a207f5a6b8d4a86b", "categorized_nodes": 569}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,706
c
/***************************************************************************************** * SGCT * * Simple Graphics Cluster Toolkit * * ...
29.15
59
(translation_unit) "/*****************************************************************************************\n * SGCT *\n * Simple Graphics Cluster Toolkit *\n * ...
486
9
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 29.15, "nodes": 330, "errors": 0, "source_hash": "b5ee85082e447bd261192384316772acd5514148966849888f4a307fea239a54", "categorized_nodes": 220}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,707
c
/* * Copyright 2019 Codeplay Software Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
36.93
97
(translation_unit) "/*\n * Copyright 2019 Codeplay Software Ltd\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless r...
838
60
{"language": "c", "success": true, "metadata": {"lines": 97, "avg_line_length": 36.93, "nodes": 466, "errors": 0, "source_hash": "e775721a6ec013fec97206466a440805fc642003dff08639c45092f033138e75", "categorized_nodes": 314}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef SYCLDN...
4,708
c
#pragma config(Sensor, in7, irSense, sensorReflection) #pragma config(Sensor, in8, midLine, sensorReflection) #pragma config(Sensor, dgtl11, rightTouch, sensorTouch) #pragma config(Sensor, dgtl12, leftTouch, sensorTouch) #pragma config(Motor, port1, motRight, tmotorVex393_HB...
25.02
87
(translation_unit) "#pragma config(Sensor, in7, irSense, sensorReflection)\n#pragma config(Sensor, in8, midLine, sensorReflection)\n#pragma config(Sensor, dgtl11, rightTouch, sensorTouch)\n#pragma config(Sensor, dgtl12, leftTouch, sensorTouch)\n#pragma config(Motor, port1, motRig...
628
0
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 25.02, "nodes": 352, "errors": 0, "source_hash": "4b57d0b8298e99b4b8d610dc77e7f7263d0d0f74ed508cd0a0d809cecfae41e0", "categorized_nodes": 240}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
4,709
c
#include <stdio.h> int main() { int sum = 0; for (int i = 0; i < 1000; i++) { if (!(i % 3) || !(i % 5)) sum += i; } printf("%d\n", sum); }
17.88
8
(translation_unit) "#include <stdio.h>\n\nint main() {\n int sum = 0;\n for (int i = 0; i < 1000; i++) {\n if (!(i % 3) || !(i % 5)) sum += i;\n }\n printf("%d\n", sum);\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (function_definition) "int mai...
88
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 17.88, "nodes": 56, "errors": 0, "source_hash": "d0dc1bc9a5143f6c8525df4875816903db6de6715220b34cd418029b84bbe04d", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
4,710
c
#ifndef PATRICIA_TREE_BINARY_SAME_LEN_KEYS_H #define PATRICIA_TREE_BINARY_SAME_LEN_KEYS_H #include <iostream> #include <vector> #include "NodeOfPatriciaTreeBinarySameLenKeys.h" #include "NodeBranchOfPatriciaTreeBinarySameLenKeys.h" #include "NodeLeafOfPatriciaTreeBinarySameLenKeys.h" /*! * \brief The PatriciaTreeBi...
25.18
117
(translation_unit) "#ifndef PATRICIA_TREE_BINARY_SAME_LEN_KEYS_H\n#define PATRICIA_TREE_BINARY_SAME_LEN_KEYS_H\n\n#include <iostream>\n#include <vector>\n\n#include "NodeOfPatriciaTreeBinarySameLenKeys.h"\n#include "NodeBranchOfPatriciaTreeBinarySameLenKeys.h"\n#include "NodeLeafOfPatriciaTreeBinarySameLenKeys.h"\n\n/*...
362
13
{"language": "c", "success": true, "metadata": {"lines": 117, "avg_line_length": 25.18, "nodes": 217, "errors": 0, "source_hash": "10162df6816f356b82857dc85f1b4d7f4bac0cc4fe11bc508dac9915819e5bbf", "categorized_nodes": 145}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,711
c
#ifndef PTXN_GAME_BOY_GAME_H #define PTXN_GAME_BOY_GAME_H #include "common/Game.h" #define R16(V) (((V) & 0xFF) << 8) | (((V) & 0xFF00) >> 8) #define R24(V) (((V) & 0xFF) << 16) | ((V) & 0xFF00) | (((V) & 0xFF0000) >> 16) #define R32(V) (((V) & 0xFF) << 24) | (((V) & 0xFF00) << 8) | (((V) & 0xFF0000) >> 8) | (((V) & ...
34.14
43
(translation_unit) "#ifndef PTXN_GAME_BOY_GAME_H\n#define PTXN_GAME_BOY_GAME_H\n\n#include "common/Game.h"\n\n#define R16(V) (((V) & 0xFF) << 8) | (((V) & 0xFF00) >> 8)\n#define R24(V) (((V) & 0xFF) << 16) | ((V) & 0xFF00) | (((V) & 0xFF0000) >> 16)\n#define R32(V) (((V) & 0xFF) << 24) | (((V) & 0xFF00) << 8) | (((V) &...
426
18
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 34.14, "nodes": 269, "errors": 0, "source_hash": "8d6c0ac7f9300eef2dacad129f24d162a19caec3b4bb83a2319435ba958a832e", "categorized_nodes": 166}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,712
c
/******************************************************************************/ /*! @file TurretCreator.h @brief 砲台生成機クラス定義ファイル *******************************************************************************/ #ifndef TURRETCREATOR_H #define TURRETCREATOR_H #include "Turret.h" namespace Shooting2D { ...
39.63
30
(translation_unit) "/******************************************************************************/\n/*! @file TurretCreator.h\n @brief 砲台生成機クラス定義ファイル\n*******************************************************************************/\n\n#ifndef TURRETCREATOR_H\n#define TURRETCREATOR_H\n\n#include "Turret....
83
4
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 39.63, "nodes": 51, "errors": 0, "source_hash": "b30f21244c1b4f436089f44ae18aa0f60a79699d5c2b66937cd0e1a6934e7608", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ine TURR...
4,713
c
#include "/d/dagger/aketon/short.h" #include <daemons.h> inherit MONSTER; object *bad_list; int count,blink_count; void create() { object obj; ::create(); set_name("naxterr"); set_id( ({"naxterr","mayor","leader"}) ); set("race","elf"); set_gender("male"); set_short("Naxterr the mayor"); set...
30.83
215
(translation_unit) "#include "/d/dagger/aketon/short.h"\n#include <daemons.h>\n\ninherit MONSTER;\n\nobject *bad_list;\n\nint count,blink_count;\n\nvoid create() {\n object obj;\n ::create();\n set_name("naxterr");\n set_id( ({"naxterr","mayor","leader"}) );\n set("race","elf");\n set_gender("male");\n se...
2,438
8
{"language": "c", "success": true, "metadata": {"lines": 215, "avg_line_length": 30.83, "nodes": 1142, "errors": 0, "source_hash": "15764ab65d21f3557a86622bbe80121b78869b6e8dd62a089f1223cbb098ec7d", "categorized_nodes": 871}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
4,714
c
// // CLChartXLabel.h // CLDemo // // Created by JmoVxia on 2017/3/15. // Copyright © 2017年 JmoVxia. All rights reserved. // #import <UIKit/UIKit.h> @interface CLChartXLabel : UIView /**label*/ @property (nonatomic,strong) UILabel *label; /**是否需要圆形*/ @property (nonatomic,assign) BOOL round; @end
19.13
15
(translation_unit) "//\n// CLChartXLabel.h\n// CLDemo\n//\n// Created by JmoVxia on 2017/3/15.\n// Copyright © 2017年 JmoVxia. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface CLChartXLabel : UIView\n\n/**label*/\n@property (nonatomic,strong) UILabel *label;\n\n/**是否需要圆形*/\n@property (nonatomic,assi...
54
10
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 19.13, "nodes": 33, "errors": 0, "source_hash": "57be7e1ce1241f2a655daf60f5185ca7e85102e093a2b58244d93f3ea7d49ef7", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
4,715
c
/***************************************************************************** * CVS File Information : * $RCSfile: oct_util.c,v $ * $Author: dneckels $ * $Date: 2007/11/28 16:13:52 $ * Revision: 1.15 $ ****************************************************************************/ #include "SFC.h" #in...
30.19
306
(translation_unit) "/*****************************************************************************\n * CVS File Information :\n * $RCSfile: oct_util.c,v $\n * $Author: dneckels $\n * $Date: 2007/11/28 16:13:52 $\n * Revision: 1.15 $\n *************************************************************************...
1,978
0
{"language": "c", "success": true, "metadata": {"lines": 306, "avg_line_length": 30.19, "nodes": 1159, "errors": 0, "source_hash": "cf753901485b89569022885b9e0b0bf9a4a9c84ce6a2d9a105da7720e44044d6", "categorized_nodes": 931}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
4,716
c
#pragma once #include "carte.h" class Revista :public Carte { string titlu; int nrArticole; public: Revista(string titlu, int nrArticole); string GetInfo(); };
15.4
10
(translation_unit) "#pragma once\n#include "carte.h"\nclass Revista :public Carte\n{\n string titlu;\n int nrArticole;\npublic:\n Revista(string titlu, int nrArticole);\n string GetInfo();\n};" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "ca...
55
2
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 15.4, "nodes": 31, "errors": 0, "source_hash": "02ce624ffe9024bdc6b0ee06b28163e068218b4835003d79a0ea23986e176edc", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
4,717
c
/* * This header is generated by classdump-dyld 1.5 * on Wednesday, October 27, 2021 at 3:22:22 PM Mountain Standard Time * Operating System: Version 13.5.1 (Build 17F80) * Image Source: /System/Library/PrivateFrameworks/HealthE...
41.19
27
(translation_unit) "/*\n * This header is generated by classdump-dyld 1.5\n * on Wednesday, October 27, 2021 at 3:22:22 PM Mountain Standard Time\n * Operating System: Version 13.5.1 (Build 17F80)\n * Image Source: /System/Library/P...
158
12
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 41.19, "nodes": 82, "errors": 0, "source_hash": "c45c90c8c79d2b67863d934c5811a8a0de58f6a6a871cd037752d775e5463d39", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <H...
4,718
c
/* * IPSEC tunneling code * Copyright (C) 1996, 1997 <NAME>. * Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 <NAME>. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version...
31.94
183
(translation_unit) "/*\n * IPSEC tunneling code\n * Copyright (C) 1996, 1997 <NAME>.\n * Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 <NAME>.\n * \n * This program is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public License as published by the\n * Free Software...
605
0
{"language": "c", "success": true, "metadata": {"lines": 183, "avg_line_length": 31.94, "nodes": 457, "errors": 0, "source_hash": "b32a56305f2eef50bd68022523a4f3f5c944c9e1ee5548891f4e52b6cc835742", "categorized_nodes": 336}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,719
c
#ifndef ICARUS_ANALYSE_H #define ICARUS_ANALYSE_H #include "data/kludge.h" /* takes a kludge and performs analysis on it * * see kludge->errors for errors * * returns 1 on success * returns 0 on failure */ unsigned int ic_analyse(struct ic_kludge *kludge); /* takes a decl_type and performs analysis * * FIXME...
31.66
62
(translation_unit) "#ifndef ICARUS_ANALYSE_H\n#define ICARUS_ANALYSE_H\n\n#include "data/kludge.h"\n\n/* takes a kludge and performs analysis on it\n *\n * see kludge->errors for errors\n *\n * returns 1 on success\n * returns 0 on failure\n */\nunsigned int ic_analyse(struct ic_kludge *kludge);\n\n/* takes a decl_type...
230
0
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 31.66, "nodes": 185, "errors": 0, "source_hash": "42ec8ac1a25dad819edc812c029826db5dc2ec7de3d993436f316fbcd0b836be", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,720
c
#ifndef VIDEO_ENC #define VIDEO_ENC class RtpQueue; #define MAX_FRAMES 10000 class VideoEnc { public: VideoEnc(RtpQueue* rtpQueue, float frameRate, char *fname, int ixOffset=0); int encode(float time); void setTargetBitrate(float targetBitrate); RtpQueue* rtpQueue; float frameSize[MAX_FRAMES]; ...
21.55
20
(translation_unit) "#ifndef VIDEO_ENC\n#define VIDEO_ENC\n\nclass RtpQueue;\n#define MAX_FRAMES 10000\nclass VideoEnc {\npublic:\n VideoEnc(RtpQueue* rtpQueue, float frameRate, char *fname, int ixOffset=0);\n\n int encode(float time);\n\n void setTargetBitrate(float targetBitrate);\n\n RtpQueue* rtpQueue;\n...
116
2
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 21.55, "nodes": 82, "errors": 0, "source_hash": "c64acd2c988c6b9ce8a4907eab859af43a49967cfed035d3cde9f7cc1bea2956", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,721
c
/* JSON65 - A JSON parser for the 6502 microprocessor. https://github.com/ppelleti/json65 Copyright © 2018 <NAME> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission i...
31.1
124
(translation_unit) "/*\n JSON65 - A JSON parser for the 6502 microprocessor.\n\n https://github.com/ppelleti/json65\n\n Copyright © 2018 <NAME>\n\n This software is provided 'as-is', without any express or implied\n warranty. In no event will the authors be held liable for any damages\n arising from the use of t...
717
1
{"language": "c", "success": true, "metadata": {"lines": 124, "avg_line_length": 31.1, "nodes": 396, "errors": 0, "source_hash": "221d1b7966877208ca569e19d6e641e6ce5da748fb96ddd317ddf47a6dbf11ae", "categorized_nodes": 267}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "incl...
4,722
c
// // SegueBetweenEmbedded.h // SampleContainerViewUse // // Created by School of Computing Macbook on 3/29/17. // Copyright © 2017 CIRC. All rights reserved. // #import <Cocoa/Cocoa.h> @interface SegueBetweenEmbedded : NSStoryboardSegue @end
23.7
10
(translation_unit) "//\n// SegueBetweenEmbedded.h\n// SampleContainerViewUse\n//\n// Created by School of Computing Macbook on 3/29/17.\n// Copyright © 2017 CIRC. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n\n@interface SegueBetweenEmbedded : NSStoryboardSegue\n\n@end\n" (comment) "//" (comment) "// S...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 23.7, "nodes": 9, "errors": 0, "source_hash": "a2f4fea063c3fe5781411181257f1556629f8f41956e786e68e65d81958671f5", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <Coco...
4,723
c
#ifndef __NESIS_SPINBOX_H #define __NESIS_SPINBOX_H /*************************************************************************** * * * Copyright (C) 2007 by Kanardia d.o.o. [see www.kanardia.eu] * * Writen by: ...
36.51
70
(translation_unit) "#ifndef __NESIS_SPINBOX_H\n#define __NESIS_SPINBOX_H\n\n/***************************************************************************\n * *\n * Copyright (C) 2007 by Kanardia d.o.o. [see www.kanardia.eu] *\n * Write...
263
13
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 36.51, "nodes": 154, "errors": 0, "source_hash": "749aa12044829bb07618051175257ff2015104d3b81dece15029f64783de43a3", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,724
c
#ifndef CONTENT_WIDGET #define CONTENT_WIDGET #include <functional> #include <string> #include <vector> #include <ftxui/component/component.hpp> #include <ftxui/component/event.hpp> namespace TermME { class content_widget : public ftxui::ComponentBase { public: content_widget(std::reference_wrapper<std...
25.28
18
(translation_unit) "#ifndef CONTENT_WIDGET\n#define CONTENT_WIDGET\n\n#include <functional>\n#include <string>\n#include <vector>\n\n#include <ftxui/component/component.hpp>\n#include <ftxui/component/event.hpp>\n\nnamespace TermME\n{\n class content_widget : public ftxui::ComponentBase\n {\n public:\n conten...
110
5
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 25.28, "nodes": 67, "errors": 0, "source_hash": "f2cfceaed370bef1dac306469a5dd28ccd09948e86a037cbf52c430490eadcc1", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,725
c
/** * @file pchildren.h * @author <NAME> * @license MIT * @date 2014 */ #ifndef PTREE_PCHILDREN_H #define PTREE_PCHILDREN_H // forward declaration typedef struct proc_t proc_t; typedef struct proc_list_t proc_list_t; /** * A child node for a process information structure pointing to a child process. */ typede...
27.14
36
(translation_unit) "/**\n * @file pchildren.h\n * @author <NAME>\n * @license MIT\n * @date 2014\n */\n\n#ifndef PTREE_PCHILDREN_H\n#define PTREE_PCHILDREN_H\n\n// forward declaration\ntypedef struct proc_t proc_t;\ntypedef struct proc_list_t proc_list_t;\n\n/**\n * A child node for a process information structure poin...
114
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 27.14, "nodes": 85, "errors": 0, "source_hash": "9c52faeb61f6a2d7435a401d5f1833b0dc660c273ed6e4f31e5f54acac019da5", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,726
c
#ifndef __SWD_PACKETLAYER_H #define __SWD_PACKETLAYER_H #define SWD_OK_ACK 0x01 extern unsigned char swd_PacketAck; #endif
26.2
5
(translation_unit) "#ifndef __SWD_PACKETLAYER_H\n#define __SWD_PACKETLAYER_H\n\n#define SWD_OK_ACK 0x01\nextern unsigned char swd_PacketAck; \n\n#endif\n" (preproc_ifdef) "#ifndef __SWD_PACKETLAYER_H\n#define __SWD_PACKETLAYER_H\n\n#define SWD_OK_ACK 0x01\nextern unsigned char swd_PacketAck; \...
20
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 26.2, "nodes": 18, "errors": 0, "source_hash": "f50b110f9fd72539456ac2fea2a15a59cc7481a9c82bd2bf1f82de21f4040ad3", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __...
4,727
c
// // ViewController.h // ScrollingNavigationDemo // // Created by Loganathan on 04/03/13. // Copyright (c) 2013 Loganathan. All rights reserved. // #import <UIKit/UIKit.h> #import "ScrollingNavigationViewController.h" #import "Logging.h" @interface ViewController : ScrollingNavigationViewController<ScrollingNav...
27.64
14
(translation_unit) "//\n// ViewController.h\n// ScrollingNavigationDemo\n//\n// Created by Loganathan on 04/03/13.\n// Copyright (c) 2013 Loganathan. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "ScrollingNavigationViewController.h"\n#import "Logging.h"\n\n\n@interface ViewController : ScrollingNavi...
47
7
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 27.64, "nodes": 33, "errors": 0, "source_hash": "218b8d7846508790ae5f48d55ad063b4adaac237888b2fa6606908ebba510e46", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
4,728
c
/* ** Purpose: Manage the Packet Table that defines which packets will be sent from the ** software bus to a socket. ** ** Notes: ** 1. This has some of the features of a flight app such as packet filtering but it ** would need design/code reviews to transition it to a flight mission. For starters ** ...
33.19
293
(translation_unit) "/* \n** Purpose: Manage the Packet Table that defines which packets will be sent from the\n** software bus to a socket.\n**\n** Notes:\n** 1. This has some of the features of a flight app such as packet filtering but it\n** would need design/code reviews to transition it to a flight ...
639
0
{"language": "c", "success": true, "metadata": {"lines": 293, "avg_line_length": 33.19, "nodes": 459, "errors": 0, "source_hash": "6ca49e754bffc5edaa5c0faf18bf3a6227349de1a27b9281a264b00f1d821018", "categorized_nodes": 292}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,729
c
// // AMTableView.h // SlideOutSample // // Created by Andrea on 13/04/13. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface AMTableView : UITableView @property (nonatomic, weak) NSDictionary* options; @end
21.73
11
(translation_unit) "//\n// AMTableView.h\n// SlideOutSample\n//\n// Created by Andrea on 13/04/13.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface AMTableView : UITableView\n\n@property (nonatomic, weak) NSDictionary* options;\n\n@end\n" (comment) "//" (comment) ...
36
6
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 21.73, "nodes": 22, "errors": 0, "source_hash": "de66eefe6692f8973aab91421844c2af91e9d1eef32f61c456879147d68b0cc5", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
4,730
c
/* * This file is subject to the terms of the GFX License. If a copy of * the license was not distributed with this file, you can obtain one at: * * http://ugfx.org/license.html */ #ifndef _GFXCONF_H #define _GFXCONF_H /* The operating system to use. One of these must be defined - preferably in your...
35.59
32
(translation_unit) "/*\n * This file is subject to the terms of the GFX License. If a copy of\n * the license was not distributed with this file, you can obtain one at:\n *\n * http://ugfx.org/license.html\n */\n\n#ifndef _GFXCONF_H\n#define _GFXCONF_H\n\n/* The operating system to use. One of these must b...
72
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 35.59, "nodes": 59, "errors": 0, "source_hash": "ff56f320be9beb517c9b5d3ef6a92dc17016fb83305a27bb8969154bb636b3d2", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,731
c
/* * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. Copyright 2007-2020 Broadcom Inc. All rights reserved. */ #include <src/soc/dnx/dbal/dbal_internal.h> #include <soc/dnx/dnx_data/auto_generated/dnx_data.h> shr_error_e sat_tx...
28.83
60
(translation_unit) "/*\n * \n This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.\n \n Copyright 2007-2020 Broadcom Inc. All rights reserved.\n */\n#include <src/soc/dnx/dbal/dbal_internal.h>\n#include <soc/dnx/dnx_data/auto_generated/dnx_d...
300
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 28.83, "nodes": 199, "errors": 0, "source_hash": "3bb4179ab20b8e2c1ffec6403b67d369d27409351af764c4e96eca3a9ef5d2b3", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,732
c
// // AliyunMediator.h // AliyunVideo // // Created by Worthy on 2017/5/4. // Copyright © 2017年 Alibaba Group Holding Limited. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> extern NSString *const AliyunShortVideoModuleString_VideoShooting; extern NSString *const AliyunShortVide...
36.1
29
(translation_unit) "//\n// AliyunMediator.h\n// AliyunVideo\n//\n// Created by Worthy on 2017/5/4.\n// Copyright © 2017年 Alibaba Group Holding Limited. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n\nextern NSString *const AliyunShortVideoModuleString_VideoShooting;\nextern...
220
4
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 36.1, "nodes": 148, "errors": 0, "source_hash": "b7df0bb3160dbef899f34335b8bceef1fd66d93f2c7dd6e8b075d614cd27af92", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
4,733
c
#ifndef REAL_STAT_H #define REAL_STAT_H #include "libts.h" #include "P_EventSystem.h" #include "P_Net.h" #define MAX_BUCKETS 97 #define MAX_DOMAIN_LEN 256 struct RealStatEntry { LINK(RealStatEntry, hash_link); uint32_t key; int32_t proto; int32_t node; int32_t domain_len; int64_t out_bytes; int64_t rt...
23.42
119
(translation_unit) "#ifndef REAL_STAT_H\n#define REAL_STAT_H\n\n#include "libts.h"\n#include "P_EventSystem.h"\n#include "P_Net.h"\n\n#define MAX_BUCKETS 97\n#define MAX_DOMAIN_LEN 256\n\nstruct RealStatEntry\n{\n LINK(RealStatEntry, hash_link);\n\n uint32_t key;\n int32_t proto;\n int32_t node;\n int32_t domain_l...
689
6
{"language": "c", "success": true, "metadata": {"lines": 119, "avg_line_length": 23.42, "nodes": 470, "errors": 0, "source_hash": "454eacaf2cba9972f50fcd0fa832368c0a7e2e653323d44582938d087340fde1", "categorized_nodes": 311}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,734
c
/* * Copyright Supranational LLC * Licensed under the Apache License, Version 2.0, see LICENSE for details. * SPDX-License-Identifier: Apache-2.0 */ #ifndef __FIL_BLST_GO_HPP__ #define __FIL_BLST_GO_HPP__ #include <stdint.h> #include <stddef.h> typedef uint8_t byte; void threadpool_init(size_t thread_count); in...
37.06
18
(translation_unit) "/*\n * Copyright Supranational LLC\n * Licensed under the Apache License, Version 2.0, see LICENSE for details.\n * SPDX-License-Identifier: Apache-2.0\n */\n\n#ifndef __FIL_BLST_GO_HPP__\n#define __FIL_BLST_GO_HPP__\n\n#include <stdint.h>\n#include <stddef.h>\n\ntypedef uint8_t byte;\n\nvoid thread...
85
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 37.06, "nodes": 67, "errors": 0, "source_hash": "b0e7a1333e6578e5f73295c49561bf8b9429968b658fc352c41168f906d87119", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,735
c
#ifndef NVIM_BUFHL_DEFS_H #define NVIM_BUFHL_DEFS_H #include "nvim/pos.h" #include "nvim/lib/kvec.h" // bufhl: buffer specific highlighting struct bufhl_hl_item { int src_id; int hl_id; // highlight group colnr_T start; // first column to highlight colnr_T stop; // last column to highlight }; typedef struc...
25.25
20
(translation_unit) "#ifndef NVIM_BUFHL_DEFS_H\n#define NVIM_BUFHL_DEFS_H\n\n#include "nvim/pos.h"\n#include "nvim/lib/kvec.h"\n// bufhl: buffer specific highlighting\n\nstruct bufhl_hl_item\n{\n int src_id;\n int hl_id; // highlight group\n colnr_T start; // first column to highlight\n colnr_T stop; // last colu...
88
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 25.25, "nodes": 57, "errors": 0, "source_hash": "2b5604e68289942b3848c8533e64b790005bf3f3e6fa83dd8026d3d317a0ebfb", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,736
c
#pragma once #include "../required.h" #include "memmgr.h" #include "../util/log.h" namespace ion { class detour { public: detour(BYTE *src, BYTE* dst) : m_src(src), m_dst(dst), m_bApplied(0) {} detour() {} ~detour() {} bool apply(); void remove(); template<typename Fn> Fn tramp() const { return (...
16.81
27
(translation_unit) "#pragma once\n\n#include "../required.h"\n#include "memmgr.h"\n#include "../util/log.h"\n\nnamespace ion\n{\n class detour\n {\n public:\n detour(BYTE *src, BYTE* dst) : m_src(src), m_dst(dst), m_bApplied(0) {}\n detour() {}\n ~detour() {}\n\n bool apply();\n void remove();\n template<typename...
205
5
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 16.81, "nodes": 124, "errors": 0, "source_hash": "836f2bec3bca6e09c9f854ef9286eef8f31d5d362e5ea0b7bdea0b3dabdf5aa5", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
4,737
c
/* ** EPITECH PROJECT, 2017 ** live_intruction ** File description: ** live_intruction */ #include "header_corewar.h" int live_instruction(corewar_t *core, champion_t *ch) { linked_list_t *list = core->champion; int nb = load_integer_variable(core, ch->pc + 1); bool isdo = false; champion_t *champ; champion_t *r...
22.24
33
(translation_unit) "/*\n** EPITECH PROJECT, 2017\n** live_intruction\n** File description:\n** live_intruction\n*/\n\n#include "header_corewar.h"\n\nint live_instruction(corewar_t *core, champion_t *ch)\n{\n linked_list_t *list = core->champion;\n int nb = load_integer_variable(core, ch->pc + 1);\n bool isdo = false;\n...
259
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 22.24, "nodes": 170, "errors": 0, "source_hash": "d30bdf3e2d72d4e1116d15cfb26101885cf106e80e62c06448975c3fdc70bce5", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,738
c
// // FSHomeViewController.h // ModuleA // // Created by FlyingFish on 2021/11/19. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface FSHomeViewController : UIViewController @property (strong, nonatomic) NSString *desc; - (UIViewController *)Action_getHome:(NSDictionary *)params; @end NS_ASSUME_NON...
23.77
13
(translation_unit) "//\n// FSHomeViewController.h\n// ModuleA\n//\n// Created by FlyingFish on 2021/11/19.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface FSHomeViewController : UIViewController\n\n@property (strong, nonatomic) NSString *desc;\n\n- (UIViewController *)Action_getHome:(NSDictio...
64
8
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 23.77, "nodes": 42, "errors": 0, "source_hash": "9ab7ed0431f9a65b078fcabec714d7397ee3fc4444486b50c383089f3e733d8e", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
4,739
c
// // (C) 2005 <NAME> // // This library is free software, you can redistribute it // and/or modify // it under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation; // either version 2 of the License, or any later version. // The library is distributed in the hope that it...
30.67
64
(translation_unit) "//\n// (C) 2005 <NAME>\n//\n// This library is free software, you can redistribute it\n// and/or modify\n// it under the terms of the GNU Lesser General Public License\n// as published by the Free Software Foundation;\n// either version 2 of the License, or any later version.\n// The library is dis...
376
18
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 30.67, "nodes": 217, "errors": 0, "source_hash": "696ba048069bb4f740f1b25325eb764592ac4942284457395eb6194533562211", "categorized_nodes": 166}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,740
c
#ifndef PICTUS_SETTINGS_H #define PICTUS_SETTINGS_H #include "appreg.h" #include <wx/dialog.h> #include <wx/treectrl.h> #include <wx/button.h> namespace App { class SettingsPage; class Settings : public wxDialog { public: boost::signals2::signal<void(Reg::Settings)> OnSettingsChanged; Settings(wxWindow* par...
26.41
34
(translation_unit) "#ifndef PICTUS_SETTINGS_H\n#define PICTUS_SETTINGS_H\n\n#include "appreg.h"\n#include <wx/dialog.h>\n#include <wx/treectrl.h>\n#include <wx/button.h>\n\nnamespace App\n{\n class SettingsPage;\n\n class Settings : public wxDialog\n {\n public:\n boost::signals2::signal<void(Reg::Settings)> OnSetting...
272
14
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 26.41, "nodes": 175, "errors": 0, "source_hash": "219762542b06023b5d26d7a0ddba148b10bd63dfac49d53d8f66f30551aa82d0", "categorized_nodes": 124}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,741
c
// // AbstractPlayer.h // DanMuPlayer // // Created by zfu on 2017/12/3. // Copyright © 2017年 zfu. All rights reserved. // #import <Foundation/Foundation.h> #import "DanMuLayer.h" #import "DanMuView.h" #import "DMPlaylist.h" @import JavaScriptCore; typedef enum _PlayerState { PS_INIT = 0, PS_PLAYING, ...
31.38
63
(translation_unit) "//\n// AbstractPlayer.h\n// DanMuPlayer\n//\n// Created by zfu on 2017/12/3.\n// Copyright © 2017年 zfu. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "DanMuLayer.h"\n#import "DanMuView.h"\n#import "DMPlaylist.h"\n@import JavaScriptCore;\n\ntypedef enum _PlayerState {\n ...
524
58
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 31.38, "nodes": 345, "errors": 0, "source_hash": "95902504c01d35fa550ad2c9269b9da4326811f61b5ffd437dd59e584fa082dd", "categorized_nodes": 221}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <F...
4,742
c
/* -*- C -*- * * $HEADER$ * */ #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/mman.h> #include <sys/stat.h> #include <netinet/in.h> #include <signal.h> #include <pthread.h> #include <unistd.h> #include <time.h> #include <fcntl.h> #include <string.h> #include <errno.h> int main(int arg...
28.85
150
(translation_unit) "/* -*- C -*-\n *\n * $HEADER$\n *\n */\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <sys/types.h>\n#include <sys/mman.h>\n#include <sys/stat.h>\n#include <netinet/in.h>\n#include <signal.h>\n#include <pthread.h>\n#include <unistd.h>\n#include <time.h>\n#include <fcntl.h>\n#include <string.h>...
1,433
0
{"language": "c", "success": true, "metadata": {"lines": 150, "avg_line_length": 28.85, "nodes": 815, "errors": 0, "source_hash": "89e4efd31a6eb334496018ba25f68f945d34d6b5b898822d39ccd42858ed0877", "categorized_nodes": 610}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,743
c
# ifndef TREE_H # define TREE_H #include "Node.h" template <class T> class Tree{ private: Node<T> *root; void inserir(Node<T>*, T); void printGivenLevel(Node<T>*, T); Node<T>* maxMin(Node<T>*); public: Tree(); void inicializa(); void setRaiz(Node<T>*); Node<T>* getRaiz(); void inser...
21.2
25
(translation_unit) "# ifndef TREE_H\n# define TREE_H\n#include "Node.h"\n\ntemplate <class T>\nclass Tree{\nprivate:\n Node<T> *root;\n void inserir(Node<T>*, T);\n void printGivenLevel(Node<T>*, T);\n Node<T>* maxMin(Node<T>*);\npublic:\n Tree();\n void inicializa();\n void setRaiz(Node<T>*);\n ...
285
11
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 21.2, "nodes": 213, "errors": 0, "source_hash": "4ce315bbece8b69cf563e6ae2d4748e3e16614281cf1297a11d149b534cd1251", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "# ifnde...
4,744
c
int function () { return 1; } int main() { //int arr[2] = {1.1,2}; int a = 1; int i; i = &function(); return 0; }
9
12
(translation_unit) "int function ()\n{\n return 1;\n}\nint main()\n{\n //int arr[2] = {1.1,2};\n int a = 1;\n int i;\n i = &function();\n return 0;\n}" (function_definition) "int function ()\n{\n return 1;\n}" (primitive_type) "int" (function_declarator) "function ()" (identifier) "function" (para...
53
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 9.0, "nodes": 28, "errors": 0, "source_hash": "f76e72eca8d59ff096ddcf4d62d22dc8b793ee4c7fec08f7f884dda0918eebf1", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "int ...
4,745
c
/** * @file DEMSignificantLocation.h * @brief Model for Location objects in the trip summary gpsTrail. * * @copyright Copyright © 2016 Allstate Insurance Corporation. All rights reserved. */ #import <Foundation/Foundation.h> @interface DEMSignificantLocation : NSObject <NSCopying> /** * @...
31.92
64
(translation_unit) "/**\n * @file DEMSignificantLocation.h\n * @brief Model for Location objects in the trip summary gpsTrail.\n *\n * @copyright Copyright © 2016 Allstate Insurance Corporation. All rights reserved.\n */\n\n\n#import <Foundation/Foundation.h>\n\n\n@interface DEMSignificantLocation : NSOb...
209
42
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 31.92, "nodes": 154, "errors": 0, "source_hash": "e1b7de8403168b5be9aa99a5d94057e955edb2c5aca57fec360b29ab8e7dc9ec", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <...
4,746
c
#include<stdio.h> #include<string.h> int main() { int n, i, j, a; double x; double ara1[1]; printf("%d\n", ara1); int ara[1]; printf("%d\n", ara); char b[1], d; printf("%d", b); scanf("%d", &n); printf("%d\n", b); while(n>0) { for(i=0,a=strlen(b)-1;i<strlen(b)&&...
15.48
31
(translation_unit) "#include<stdio.h>\n#include<string.h>\n\nint main()\n{\n int n, i, j, a;\n double x;\n double ara1[1];\n printf("%d\n", ara1);\n int ara[1];\n printf("%d\n", ara);\n char b[1], d;\n printf("%d", b);\n scanf("%d", &n);\n printf("%d\n", b);\n\n while(n>0)\n {\n ...
273
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 15.48, "nodes": 160, "errors": 0, "source_hash": "8b39ff5b58ec08831bf60dd74ac553eff3c12f12a475f0119baf7c836789d863", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,747
c
#pragma once #include "Component.h" class RotateComponent : public Component { public: RotateComponent() {}; ~RotateComponent() {}; void update(float deltaTime); };
15.55
11
(translation_unit) "#pragma once\n#include "Component.h"\nclass RotateComponent :\n public Component\n{\npublic:\n RotateComponent() {};\n ~RotateComponent() {};\n\n void update(float deltaTime);\n\n\n};\n\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (pre...
62
1
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 15.55, "nodes": 27, "errors": 0, "source_hash": "756e70d0e635a7d1b3a36e325097f36c3f84463daba04b9509c9390033259bfe", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
4,748
c
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: client sound i/o functions // //===========================================================================// #ifndef SOUND_H #define SOUND_H #ifdef _WIN32 #pragma once #endif #include "basetypes.h" #include "datamap.h" #includ...
28.52
126
(translation_unit) "//========= Copyright Valve Corporation, All rights reserved. ============//\n//\n// Purpose: client sound i/o functions\n//\n//===========================================================================//\n#ifndef SOUND_H\n#define SOUND_H\n#ifdef _WIN32\n#pragma once\n#endif\n\n#include "basetypes....
911
22
{"language": "c", "success": true, "metadata": {"lines": 126, "avg_line_length": 28.52, "nodes": 613, "errors": 0, "source_hash": "47934abfa034845a08e4916126f80618070f613fa8cf901a180fe77c332b1ab4", "categorized_nodes": 377}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef SOUND...
4,749
c
/** * This header is generated by class-dump-z 0.2-1. * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3. * * Source: /System/Library/PrivateFrameworks/DataAccess.framework/DataAccess */ #import <Foundation/NSObject.h> #import "DataAccess-Structs.h" @interface NSObject (CALExtensions) -(BOOL...
33.27
15
(translation_unit) "/**\n * This header is generated by class-dump-z 0.2-1.\n * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3.\n *\n * Source: /System/Library/PrivateFrameworks/DataAccess.framework/DataAccess\n */\n\n#import <Foundation/NSObject.h>\n#import "DataAccess-Structs.h"\n\n\n@interface ...
93
9
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 33.27, "nodes": 57, "errors": 0, "source_hash": "056e79a8020e7fa359e65dd0953661d06913d96220cf07c30edfb69b6d4b703f", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
4,750
c
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include "check.h" int x[5] = {1,2,3,4,5}; void allocate() { int i; int *p; for(i =1 ; i<1000000 ; i++) { p = malloc(500 * sizeof(int)); if(func(i)) { free (p);} // func(i) is defined in check.c // func takes in input i, and while...
22.91
53
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <unistd.h>\n#include "check.h"\n\nint x[5] = {1,2,3,4,5};\n\nvoid allocate()\n{\n int i;\n int *p;\n for(i =1 ; i<1000000 ; i++)\n {\n p = malloc(500 * sizeof(int));\n if(func(i)) { free (p);} // func(i) is defined in check.c\n ...
382
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 22.91, "nodes": 224, "errors": 0, "source_hash": "0d14eb75bb047e9f7b143bc0cb4f7eb3ff06688c7fbbbb744f350c770dc00e37", "categorized_nodes": 148}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,751
c
/* * Copyright (c) 2020 <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * This file is part of libsquash, distributed under the MIT License * For full terms see the included LICENSE file */ #ifndef ENCLOSE_IO_H_999BC1DA #define ENCLOSE_IO_H_999BC1DA #include "enclose_io_prelude.h" #include ...
23.29
17
(translation_unit) "/* \n * Copyright (c) 2020 <NAME> <<EMAIL>> \n * <NAME> <<EMAIL>> \n * \n * This file is part of libsquash, distributed under the MIT License \n * For full terms see the included LICENSE file \n */ \n \n#ifndef ENCLOSE_IO_H_999BC1DA \n#define ENCLOSE_IO_H_999BC1DA \n \n#include "e...
33
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 23.29, "nodes": 19, "errors": 0, "source_hash": "b716d89050f4ead37f7ae161f55d75818c8d6031cd6bcfe0a4f836d11f048dbe", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,752
c
#include <assert.h> #include <stdio.h> #include <string.h> #include "object.h" #include "class.h" #include "function.h" #include "hash.h" #include "iterator.h" #include "string.h" #include "Vendor/bdwgc/include/gc.h" static struct object_type ClassType; static struct object_type InstanceType; static struct object_ty...
30.74
200
(translation_unit) "#include <assert.h>\n#include <stdio.h>\n#include <string.h>\n\n#include "object.h"\n#include "class.h"\n#include "function.h"\n#include "hash.h"\n#include "iterator.h"\n#include "string.h"\n\n#include "Vendor/bdwgc/include/gc.h"\n\nstatic struct object_type ClassType;\nstatic struct object_type Ins...
2,060
0
{"language": "c", "success": true, "metadata": {"lines": 200, "avg_line_length": 30.74, "nodes": 1292, "errors": 0, "source_hash": "f5c8b23366388c702f1d1e063f11cc34c78977da7c21eeaf159c4c17bf4c90c5", "categorized_nodes": 881}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
4,753
c
#include <stdio.h> #include "sdkconfig.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "esp_system.h" #include "esp_spi_flash.h" #include "driver/gpio.h" #include <driver/dac.h> #include <math.h> void play_beep() { // for (int volt = 0; volt < 256; volt+=32) { // dac_output_voltage(DA...
28.48
25
(translation_unit) "#include <stdio.h>\n#include "sdkconfig.h"\n#include "freertos/FreeRTOS.h"\n#include "freertos/task.h"\n#include "esp_system.h"\n#include "esp_spi_flash.h"\n#include "driver/gpio.h"\n#include <driver/dac.h>\n#include <math.h>\n\nvoid play_beep() {\n // for (int volt = 0; volt < 256; volt+=32) {\n...
172
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 28.48, "nodes": 103, "errors": 0, "source_hash": "4ae79f3486ae0a6f749b6a62e63f13a6b77fad892d2e1dbebb62edd2fb271766", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
4,754
c
#include "include/types.h" #include "include/param.h" #include "include/memlayout.h" #include "include/riscv.h" #include "include/buf.h" #ifndef QEMU #include "include/sdcard.h" #include "include/dmac.h" #else #include "include/virtio.h" #endif void disk_init(void) { #ifdef QEMU virtio_disk_init(); #else ...
16.09
43
(translation_unit) "#include "include/types.h"\n#include "include/param.h"\n#include "include/memlayout.h"\n#include "include/riscv.h"\n\n#include "include/buf.h"\n\n#ifndef QEMU\n#include "include/sdcard.h"\n#include "include/dmac.h"\n#else\n#include "include/virtio.h"\n#endif \n\nvoid disk_init(void)\n{\n #ifdef Q...
218
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 16.09, "nodes": 133, "errors": 0, "source_hash": "80d2be9a952ec71a25e779ac54ee1ffd58d8108fffffc51c946a62fcc7ba570a", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,755
c
/** * \file * \brief Parsing of an XML data using relative addressing method. * \author <NAME> * \date 30 January 2022 * Copyright (c) 2019-2022 <NAME> * https://github.com/kiishor * Distributed under the MIT License, (See accompanying * file LICENSE or copy at https://mit-license.org/) */ #inclu...
39.9
31
(translation_unit) "/**\n * \file\n * \brief Parsing of an XML data using relative addressing method.\n\n * \author <NAME>\n * \date 30 January 2022\n\n * Copyright (c) 2019-2022 <NAME>\n * https://github.com/kiishor\n\n * Distributed under the MIT License, (See accompanying\n * file LICENSE or copy at https:...
316
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 39.9, "nodes": 169, "errors": 0, "source_hash": "9b93a524c40ab487f8464d201a98358aef5ece631dc7b815847152167acbea44", "categorized_nodes": 137}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
4,756
c
/* Copyright (C) 2011 Ion Torrent Systems, Inc. All Rights Reserved */ #ifndef ELAPSEDTIMER_H #define ELAPSEDTIMER_H #include <stdio.h> #include <stdlib.h> #include <sys/time.h> using namespace std; namespace ION { /** * Calculates the elapsed time. */ class ElapsedTimer { public: ElapsedTimer() : _dDurat...
20.87
46
(translation_unit) "/* Copyright (C) 2011 Ion Torrent Systems, Inc. All Rights Reserved */\n#ifndef ELAPSEDTIMER_H\n#define ELAPSEDTIMER_H\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <sys/time.h>\n\nusing namespace std;\n\nnamespace ION\n{\n/**\n * Calculates the elapsed time.\n */\nclass ElapsedTimer\n{\npubl...
234
4
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 20.87, "nodes": 135, "errors": 0, "source_hash": "54e778e3cf0934969a9761f1910573039084af33c31a1653cfcc98b029dbaf8c", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,757
c
#ifndef __HUMANFOOTMAN_H__ #define __HUMANFOOTMAN_H__ #include "j1Module.h" #include "Animation.h" #include "p2Point.h" #include "j1Entity.h" #include "DynamicEnt.h" class HumanFootman : public DynamicEnt { public: // Constructor HumanFootman(int posx, int posy); // Destructor ~HumanFootman(); // Called before...
21.38
26
(translation_unit) "#ifndef __HUMANFOOTMAN_H__\n#define __HUMANFOOTMAN_H__\n\n#include "j1Module.h"\n#include "Animation.h"\n#include "p2Point.h"\n#include "j1Entity.h"\n#include "DynamicEnt.h"\n\nclass HumanFootman : public DynamicEnt\n{\npublic:\n // Constructor\n HumanFootman(int posx, int posy);\n\n // Destructor\n...
132
2
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 21.38, "nodes": 76, "errors": 0, "source_hash": "018d2dabeab60a344a4e8ade621dfa3527fb8e4d8d4cb0072cadd00dd05686ea", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,758
c
#ifndef _X86_DESC_H_ #define _X86_DESC_H_ #include <setjmp.h> void setup_idt(void); void setup_alt_stack(void); struct ex_regs { unsigned long rax, rcx, rdx, rbx; unsigned long dummy, rbp, rsi, rdi; #ifdef __x86_64__ unsigned long r8, r9, r10, r11; unsigned long r12, r13, r14, r15; #endif unsigne...
26.45
213
(translation_unit) "#ifndef _X86_DESC_H_\n#define _X86_DESC_H_\n\n#include <setjmp.h>\n\nvoid setup_idt(void);\nvoid setup_alt_stack(void);\n\nstruct ex_regs {\n unsigned long rax, rcx, rdx, rbx;\n unsigned long dummy, rbp, rsi, rdi;\n#ifdef __x86_64__\n unsigned long r8, r9, r10, r11;\n unsigned long r12, ...
1,184
2
{"language": "c", "success": true, "metadata": {"lines": 213, "avg_line_length": 26.45, "nodes": 881, "errors": 0, "source_hash": "66a1d458bb7cc19e24053c3b4da9db303d3cbf7de10cfaa611c20743871aaa8b", "categorized_nodes": 614}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,759
c
/* * #%L * ********************************************************************** * ORGANIZATION : Pi4J * PROJECT : Pi4J :: JNI Native Library * FILENAME : com_pi4j_wiringpi_Shift.h * * This file is part of the Pi4J project. More information about * this project can be found here: http://www...
32.16
56
(translation_unit) "/*\n * #%L\n * **********************************************************************\n * ORGANIZATION : Pi4J\n * PROJECT : Pi4J :: JNI Native Library\n * FILENAME : com_pi4j_wiringpi_Shift.h \n * \n * This file is part of the Pi4J project. More information about \n * this project ca...
108
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 32.16, "nodes": 79, "errors": 0, "source_hash": "45e8e533183157c680e96c0b09f7de3036384c53bf4f9ee396cdbd1b697fff6c", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
4,760
c
#ifndef _COLOR_H #define _COLOR_H #include "vec3.h" // Type alias vec3 as color using color = vec3; void write_color(std::ostream& out, color pixel_color, int samples_per_pixel) { auto r = pixel_color.r(); auto g = pixel_color.g(); auto b = pixel_color.b(); auto scale = 1.0 / samples_per_pixel; r = sqrt(scale ...
31.18
17
(translation_unit) "#ifndef _COLOR_H\n#define _COLOR_H\n\n#include "vec3.h"\n\n// Type alias vec3 as color\nusing color = vec3;\n\nvoid write_color(std::ostream& out, color pixel_color, int samples_per_pixel)\n{\n auto r = pixel_color.r();\n auto g = pixel_color.g();\n auto b = pixel_color.b();\n\n auto scale = 1.0 / s...
243
1
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 31.18, "nodes": 182, "errors": 0, "source_hash": "73d000570747fc85a4c61a639a1ed0d6a9f86b634a1e211bbb0b1f5eaa03e7b9", "categorized_nodes": 122}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,761
c
/* Copyright 2018 <NAME> <<EMAIL>> * * 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...
26.47
64
(translation_unit) "/* Copyright 2018 <NAME> <<EMAIL>>\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap...
277
0
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 26.47, "nodes": 207, "errors": 0, "source_hash": "35bdf7a067f4877002d64c5cb70932ab0101ecd32c069525d6f9fc9488b6745b", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,762
c
// 1885. Count Pairs in Two Arrays // https://leetcode.com/problems/count-pairs-in-two-arrays/ // Runtime: 640 ms, faster than 100.00% of C++ online submissions for Count Pairs in Two Arrays. // Memory Usage: 183.3 MB, less than 100.00% of C++ online submissions for Count Pairs in Two Arrays. class Solution { ...
32
42
(translation_unit) "// 1885. Count Pairs in Two Arrays\n// https://leetcode.com/problems/count-pairs-in-two-arrays/\n\n// Runtime: 640 ms, faster than 100.00% of C++ online submissions for Count Pairs in Two Arrays.\n// Memory Usage: 183.3 MB, less than 100.00% of C++ online submissions for Count Pairs in Two Arrays.\n...
326
3
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 32.0, "nodes": 205, "errors": 0, "source_hash": "96d8731826d154b64673d60fce9f20b768060fc0978398368ea43d22924cf92b", "categorized_nodes": 141}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "c...
4,763
c
/* ISC license. */ #include <stdint.h> #include <skalibs/uint64.h> #include <skalibs/genalloc.h> #include "shibari-internal.h" int shibari_whitelist_add6 (genalloc *g, char const *ip6, uint16_t mask) { shibari_ip6_t shix ; if (mask >= 64) { shix.mask0 = ~(uint64_t)0 ; shix.mask1 = ((uint64_t)1 << (mas...
24.5
24
(translation_unit) "/* ISC license. */\n\n#include <stdint.h>\n\n#include <skalibs/uint64.h>\n#include <skalibs/genalloc.h>\n\n#include "shibari-internal.h"\n\nint shibari_whitelist_add6 (genalloc *g, char const *ip6, uint16_t mask)\n{\n shibari_ip6_t shix ;\n if (mask >= 64)\n {\n shix.mask0 = ~(uint64_t)0 ;\n ...
214
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 24.5, "nodes": 136, "errors": 0, "source_hash": "c15e8e52873b7d763869431cf132fdc0f3971459f6399ddd1e36e3aa765723ea", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
4,764
c
// Copyright 2019 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #pragma once #include <ddk/device.h> #include <ddk/protocol/platform/bus.h> #include <zircon/compiler.h> zx_status_t publish_sysmem(pbus_protocol_t* pbus...
39
8
(translation_unit) "// Copyright 2019 The Fuchsia Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#pragma once\n\n#include <ddk/device.h>\n#include <ddk/protocol/platform/bus.h>\n#include <zircon/compiler.h>\n\nzx_status_t publis...
29
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 39.0, "nodes": 22, "errors": 0, "source_hash": "ce802c9d599144bc63524656fe923a8c085ec562e01eaca2f32413b47e9212fc", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
4,765
c
/** * @file include/retdec/fileformat/utils/byte_array_buffer.h * @brief Array of bytes to std::istream abstraction. * @copyright (c) 2019 Avast Software, licensed under the MIT license */ #ifndef RETDEC_FILEFORMAT_UTILS_BYTE_ARRAY_BUFFER_H #define RETDEC_FILEFORMAT_UTILS_BYTE_ARRAY_BUFFER_H #include <streambuf> ...
33.38
45
(translation_unit) "/**\n * @file include/retdec/fileformat/utils/byte_array_buffer.h\n * @brief Array of bytes to std::istream abstraction.\n * @copyright (c) 2019 Avast Software, licensed under the MIT license\n */\n\n#ifndef RETDEC_FILEFORMAT_UTILS_BYTE_ARRAY_BUFFER_H\n#define RETDEC_FILEFORMAT_UTILS_BYTE_ARRAY_BUFF...
337
22
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 33.38, "nodes": 179, "errors": 0, "source_hash": "ef68bb7cbfee3e2ed48add5c762c84d89cbfc4cd384ae1b991b82420e73038f9", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,766
c
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
31.92
49
(translation_unit) "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0...
212
8
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 31.92, "nodes": 127, "errors": 0, "source_hash": "e85786e4b8775eb8d9d18d16a26a0c69004d5fba431e9333e345a1facf3f7f73", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,767
c
#ifndef _SCANNER_ACTION_H_ #define _SCANNER_ACTION_H_ //------------------------------------------------------------------------------ // class definitions //------------------------------------------------------------------------------ class ScannerAction { public: virtual /* void */ ~ScannerAction (v...
34.25
16
(translation_unit) "#ifndef _SCANNER_ACTION_H_ \n#define _SCANNER_ACTION_H_ \n \n//------------------------------------------------------------------------------ \n// class definitions \n//------------------------------------------------------------------------------ \nclass ScannerAction \n{ \npublic: \nvirtual /* v...
69
2
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 34.25, "nodes": 44, "errors": 0, "source_hash": "8f4d2411dbfa3b982c8911f1b9db05d1e8ea5f00bf2e136378f639318ae72d99", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef\...
4,768
c
/* pololu motordriver controller (A4988) */ #include "./stepper.h" int8_t motorDir[4]; void initMotors() { //front right motor DDRC|=(1<<5); //x-dir as output DDRD|=(1<<7); //x-step as output //back right motor DDRC|=(1<<7); //y-dir as output DDRC|=(1<<6); //y-step as output //back left motor DDRB|=(1<<2); ...
21.77
114
(translation_unit) "/*\npololu motordriver controller (A4988)\n\n*/\n\n#include "./stepper.h"\n\nint8_t motorDir[4];\n\nvoid initMotors()\n{\n //front right motor\n DDRC|=(1<<5); //x-dir as output\n DDRD|=(1<<7); //x-step as output\n //back right motor\n DDRC|=(1<<7); //y-dir as output\n DDRC|=(1<<6); //y-step as outpu...
663
0
{"language": "c", "success": true, "metadata": {"lines": 114, "avg_line_length": 21.77, "nodes": 400, "errors": 0, "source_hash": "1100784e90ac5c376d298673aaec9ed38123c5d3396142b695e43e8b35b1ee60", "categorized_nodes": 294}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,769
c
#ifndef SERVER_CLI_H #define SERVER_CLI_H int servercli_run(int argc, char **argv); #endif
21.75
4
(translation_unit) "#ifndef SERVER_CLI_H\n#define SERVER_CLI_H\n\nint servercli_run(int argc, char **argv);\n\n#endif\n" (preproc_ifdef) "#ifndef SERVER_CLI_H\n#define SERVER_CLI_H\n\nint servercli_run(int argc, char **argv);\n\n#endif" (#ifndef) "#ifndef" (identifier) "SERVER_CLI_H" (preproc_def) "#defin...
27
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 21.75, "nodes": 22, "errors": 0, "source_hash": "94ba1a1202425744335ccd6bb23c38f0bd6717b0955c257debe0934bc3c0a5eb", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef S...
4,770
c
//========================================================================= // Copyright (C) 2012 The Elastos Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // ...
34.15
62
(translation_unit) "//=========================================================================\n// Copyright (C) 2012 The Elastos Open Source Project\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of...
273
8
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 34.15, "nodes": 143, "errors": 0, "source_hash": "508416283852c3a60740243200b0edb3da0a7c3d264465003c29fafea2640c41", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,771
c
#pragma once #include <QString> #include <QDebug> namespace Helpers { QString timeFormat(int seconds); int getIdleTimeS(); void restartApplication(); void lockScreen(); static constexpr int EXIT_RESTART = -1; } // namespace Helpers
17.92
13
(translation_unit) "#pragma once \n \n#include <QString> \n#include <QDebug> \n \nnamespace Helpers \n{ \nQString timeFormat(int seconds); \nint getIdleTimeS(); \nvoid restartApplication(); \nvoid lockScreen(); \nstatic constexpr int EXIT_RESTART = -1; \n} // namespace Helpers \n" (preproc_call) "#pragma once \n" ...
63
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 17.92, "nodes": 43, "errors": 0, "source_hash": "d2c10c36e82d038c1ccf1123417081e15f0b68697946ac72755d3787207e89a0", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
4,772
c
/** * `value.c` - libjson * * copyright (c) 2014 - <NAME> <<EMAIL>> */ #include <stdlib.h> #include <json/type.h> #include <json/value.h> #include <json/boolean.h> #include <json/null.h> #include <json/number.h> #include <json/string.h> #include <json/object.h> #include <json/array.h> json_value_t * json_value_n...
27.41
44
(translation_unit) "/**\n * `value.c` - libjson\n *\n * copyright (c) 2014 - <NAME> <<EMAIL>>\n */\n\n#include <stdlib.h>\n#include <json/type.h>\n#include <json/value.h>\n#include <json/boolean.h>\n#include <json/null.h>\n#include <json/number.h>\n#include <json/string.h>\n#include <json/object.h>\n#include <json/arra...
302
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 27.41, "nodes": 204, "errors": 0, "source_hash": "534075324053eeb7d9cf940eb3be9bfd91645f1c3530707aaae5f92fbbe59282", "categorized_nodes": 145}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,773
c
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied w...
26.76
106
(ERROR) "/*=================================================================== \n \nThe Medical Imaging Interaction Toolkit (MITK) \n \nCopyright (c) German Cancer Research Center, \nDivision of Medical and Biological Informatics. \nAll rights reserved. \n \nThis software is distributed WITHOUT ANY WARRANTY; without \n...
256
20
{"language": "c", "success": true, "metadata": {"lines": 106, "avg_line_length": 26.76, "nodes": 144, "errors": 0, "source_hash": "e09542d58086deb0e38994a329125c64186c6a1e1e5e4ee052d6be45a0b1e4ac", "categorized_nodes": 99}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "/*=======================...
4,774
c
#ifndef BISECCION_H #define BISECCION_H #include <QMainWindow> #include <menuecuacionesnolineales.h> #include <QJSEngine> #include <QJSValue> #include<QStandardItemModel> #include <QMessageBox> namespace Ui { class biseccion; } class biseccion : public QMainWindow { Q_OBJECT public: expli...
19.8
44
(translation_unit) "#ifndef BISECCION_H \n#define BISECCION_H \n#include <QMainWindow> \n#include <menuecuacionesnolineales.h> \n#include <QJSEngine> \n#include <QJSValue> \n#include<QStandardItemModel> \n#include <QMessageBox> \n \n \nnamespace Ui { \nclass biseccion; \n} \n \nclass biseccion : public QMainWindow \n{ ...
185
7
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 19.8, "nodes": 124, "errors": 0, "source_hash": "b3e61b151c23c122a25c1f647e39e69334b80d20d94b0848c6bc448ecb4643f5", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,775
c
#pragma once #include "ElkPhysics/export.h" #include "ElkPhysics/Math/Math.h" namespace ElkPhysics { namespace Data { namespace Physics { struct ELK_PHYSICS_EXPORT TransformData { glm::vec3 position = glm::vec3(0.f); glm::vec3 rotation = glm::vec3(0.f); glm::vec3 scale = glm::vec3(1.f); };...
17.22
18
(translation_unit) "#pragma once\n\n#include "ElkPhysics/export.h"\n#include "ElkPhysics/Math/Math.h"\n\nnamespace ElkPhysics\n{\n namespace Data\n {\n namespace Physics\n {\n struct ELK_PHYSICS_EXPORT TransformData\n {\n glm::vec3 position = glm::vec3(0.f);\n glm::vec3 rotation = glm::vec3(0.f);\n glm::...
104
3
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 17.22, "nodes": 59, "errors": 0, "source_hash": "425b8a408ea8405901a2c70a6db774765c5ef4051902eddd80c9e47879fc83d3", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
4,776
c
#ifndef _calc2__defines_h_ #define _calc2__defines_h_ #define DIGIT 257 #define LETTER 258 #define UMINUS 259 #endif /* _calc2__defines_h_ */
22.67
6
(translation_unit) "#ifndef _calc2__defines_h_\n#define _calc2__defines_h_\n\n#define DIGIT 257\n#define LETTER 258\n#define UMINUS 259\n\n#endif /* _calc2__defines_h_ */\n" (preproc_ifdef) "#ifndef _calc2__defines_h_\n#define _calc2__defines_h_\n\n#define DIGIT 257\n#define LETTER 258\n#define UMINUS 259\n\n#endif" ...
21
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 22.67, "nodes": 19, "errors": 0, "source_hash": "76537f72755b313ab8729e380ffd1d8821f2fd9a0f3b60a4c48576a4a52d723b", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _c...
4,777
c
// // RocksDBEnv.h // ObjectiveRocks // // Created by Iska on 05/01/15. // Copyright (c) 2015 BrainCookie. All rights reserved. // #import <Foundation/Foundation.h> /** All file operations (and other operating system calls) issued by the RocksDB implementation are routed through an `RocksDBEnv` object. Currentl...
38.94
33
(translation_unit) "//\n// RocksDBEnv.h\n// ObjectiveRocks\n//\n// Created by Iska on 05/01/15.\n// Copyright (c) 2015 BrainCookie. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n/**\n All file operations (and other operating system calls) issued by the RocksDB implementation are routed through an...
99
8
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 38.94, "nodes": 54, "errors": 0, "source_hash": "e63e1538f517c96602ccbced0cab200e32f0d0097c8942eec9ed3dea0d9e2fa6", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
4,778
c
extern unsigned long l; int foo(void) { return (int) (typeof(fundecl(0))) l; } /* * check-name: cast-bad 01 * * check-error-start cast-bad-01.c:4:30: error: undefined identifier 'fundecl' * check-error-end */
18.55
11
(translation_unit) "extern unsigned long l;\n\nint foo(void) {\n return (int) (typeof(fundecl(0))) l;\n}\n\n/*\n * check-name: cast-bad 01\n *\n * check-error-start\ncast-bad-01.c:4:30: error: undefined identifier 'fundecl'\n * check-error-end\n */\n" (declaration) "extern unsigned long l;" (storage_class_specifi...
46
1
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 18.55, "nodes": 27, "errors": 0, "source_hash": "418a67221154e6989582cae6f7b5cc659e3dfb8976fc45f128dc981d3d885f06", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern uns...
4,779
c
#pragma once #include <GL/glew.h> #include "OpenGLMeshRender/meshnode.h" #include "OpenGLShader/shader.h" #include "compute_octree.h" #include "intersect_mesh.h" #include "mesh.h" #include <QOpenGLWidget> #include <QWidget> #ifndef GLM_FORCE_RADIANS #define GLM_FORCE_RADIANS #endif #include <glm/glm.hpp> #include <...
29.24
90
(ERROR) "#pragma once\n\n#include <GL/glew.h>\n\n#include "OpenGLMeshRender/meshnode.h"\n#include "OpenGLShader/shader.h"\n#include "compute_octree.h"\n#include "intersect_mesh.h"\n#include "mesh.h"\n\n#include <QOpenGLWidget>\n#include <QWidget>\n\n#ifndef GLM_FORCE_RADIANS\n#define GLM_FORCE_RADIANS\n#endif\n#include...
786
45
{"language": "c", "success": true, "metadata": {"lines": 90, "avg_line_length": 29.24, "nodes": 498, "errors": 0, "source_hash": "9ff96a3a57b6d2f4ce38e02b2201a98ae820ea788b56f2ba0801b403aecf3f86", "categorized_nodes": 353}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#pragma once\n\n#include ...
4,780
c
/* s_rintf.c -- float version of s_rint.c. * Conversion to float by <NAME>, Cygnus Support, <EMAIL>. */ /* * ==================================================== * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. * * Developed at SunPro, a Sun Microsystems, Inc. business. * Permission to use, c...
22.67
60
(translation_unit) "/* s_rintf.c -- float version of s_rint.c.\n * Conversion to float by <NAME>, Cygnus Support, <EMAIL>.\n */\n\n/*\n * ====================================================\n * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.\n *\n * Developed at SunPro, a Sun Microsystems, Inc. busin...
288
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 22.67, "nodes": 174, "errors": 0, "source_hash": "bb3f6366735317ffb38c9b39d516f4d18047c5085796b05b5559df29d97da466", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ...
4,781
c
#ifndef TEST_EXTENSIONS_H #define TEST_EXTENSIONS_H #include <QObject> #include "Markdown.h" class TestExtensions : public QObject { Q_OBJECT public: TestExtensions(); ~TestExtensions(); private slots: void initTestCase(); void cleanupTestCase(); void init(); void cleanup(); void a...
19.25
24
(translation_unit) "#ifndef TEST_EXTENSIONS_H\n#define TEST_EXTENSIONS_H\n\n#include <QObject>\n\n#include "Markdown.h"\n\nclass TestExtensions : public QObject\n{\n Q_OBJECT\npublic:\n TestExtensions();\n ~TestExtensions();\n\nprivate slots:\n void initTestCase();\n void cleanupTestCase();\n\n void i...
135
3
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 19.25, "nodes": 80, "errors": 0, "source_hash": "c0202a506d720a6efe186476ff9fffd7b4a0fdc8e2dcac0a5d6387868f48cbcc", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,782
c
// // AdLefeeNativeAdNetworkAdapter.h // AdLefeeLibrary // // Created by sweetchao on 16/8/25. // Copyright © 2016年 adlefee. All rights reserved. // #import "AdLefeeAdNetworkAdapter.h" #import "AdLefeeBookNativeDelegate.h" #import "AdLefeeBookNative.h" #import "AdLefeeAdNetworkType.h" #import "AdLefeeBrowserDelega...
32.26
38
(translation_unit) "//\n// AdLefeeNativeAdNetworkAdapter.h\n// AdLefeeLibrary\n//\n// Created by sweetchao on 16/8/25.\n// Copyright © 2016年 adlefee. All rights reserved.\n//\n\n#import "AdLefeeAdNetworkAdapter.h"\n#import "AdLefeeBookNativeDelegate.h"\n#import "AdLefeeBookNative.h"\n#import "AdLefeeAdNetworkType.h...
306
21
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 32.26, "nodes": 200, "errors": 0, "source_hash": "2a0cba4d34a4836cee8ac33d7e2dffb8e7114697ece59ce0df69e258a9ce3226", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"...
4,783
c
// // WUClassification.h // wuaki // // Created by <NAME> on 1/4/17. // Copyright © 2017 OPEN input. All rights reserved. // #import <Foundation/Foundation.h> #import "WUObject.h" @interface WUClassification : WUObject @property (nonatomic, copy ) NSString *name; @property (nonatomic ) NSUInteger age; @...
26.38
16
(translation_unit) "//\n// WUClassification.h\n// wuaki\n//\n// Created by <NAME> on 1/4/17.\n// Copyright © 2017 OPEN input. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "WUObject.h"\n\n\n@interface WUClassification : WUObject\n@property (nonatomic, copy ) NSString *name;\n@property (no...
83
16
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 26.38, "nodes": 58, "errors": 0, "source_hash": "8a8b120f4d85ca4bc745eb1a72c8f7557a83127f2497aafcf37d60b499522c45", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
4,784
c
// // Created by xhinliang on 16-3-16. // #ifndef STRUCTURE_TREE_H #define STRUCTURE_TREE_H int get_parent(const int index); int get_left(const int index); int get_right(const int index); #endif //STRUCTURE_TREE_H
22.78
9
(translation_unit) "//\n// Created by xhinliang on 16-3-16.\n//\n\n#ifndef STRUCTURE_TREE_H\n#define STRUCTURE_TREE_H\n\nint get_parent(const int index);\n\nint get_left(const int index);\n\nint get_right(const int index);\n\n#endif //STRUCTURE_TREE_H\n" (comment) "//" (comment) "// Created by xhinliang on 16-3-16....
51
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 22.78, "nodes": 31, "errors": 0, "source_hash": "c0d320d29665fbd12a2516f17f22874e86dfdb48f53194960d5da960d658ef08", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef S...
4,785
c
#ifndef HTrackAssociator_HTrackAssociator_h #define HTrackAssociator_HTrackAssociator_h 1 // -*- C++ -*- // // Package: HTrackAssociator // Class: HTrackAssociator // /* Description: <one line class summary> Implementation: <Notes on implementation> */ // // Original Author: <NAME> // Modified for E...
30.61
201
(translation_unit) "#ifndef HTrackAssociator_HTrackAssociator_h\n#define HTrackAssociator_HTrackAssociator_h 1\n\n// -*- C++ -*-\n//\n// Package: HTrackAssociator\n// Class: HTrackAssociator\n// \n/*\n\n Description: <one line class summary>\n\n Implementation:\n <Notes on implementation>\n*/\n//\n// Origin...
1,269
89
{"language": "c", "success": true, "metadata": {"lines": 201, "avg_line_length": 30.61, "nodes": 620, "errors": 0, "source_hash": "9464d39b175f80e686861cae7e200c4c4a9cb3461ea6ad8d57f83219f5660517", "categorized_nodes": 457}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,786
c
/* Generated by RuntimeBrowser Image: /System/Library/Frameworks/CoreData.framework/CoreData */ @interface NSSQLGenerationalRowCache : NSObject { int _lock; NSSQLRowCache * _primaryCache; NSMutableDictionary * _rowCachesByGenerationToken; } - (void)dealloc; - (void)forgetAllExternalData; - (id)initWi...
29.5
14
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/Frameworks/CoreData.framework/CoreData\n */\n\n@interface NSSQLGenerationalRowCache : NSObject {\n int _lock;\n NSSQLRowCache * _primaryCache;\n NSMutableDictionary * _rowCachesByGenerationToken;\n}\n\n- (void)dealloc;\n- (void)forg...
102
8
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 29.5, "nodes": 61, "errors": 0, "source_hash": "7b24548bdc106046f1dabb25fd2daff0f2fe88fed91e79ed997151d653c65c76", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nul...
4,787
c
#include "z80.h" #define get_jaddr() jaddr.bytes.low = readmemory(pc);\ pc++;\ jaddr.bytes.high = readmemory(pc);\ pc++; void z80_push(void *var1, void *var2) //top, bottom { z80_outflag = 2; sp.full -= 2; z80_outaddr.full = sp.full; ...
17.57
214
(translation_unit) "#include "z80.h" \n \n#define get_jaddr() jaddr.bytes.low = readmemory(pc);\ \n pc++;\ \n jaddr.bytes.high = readmemory(pc);\ \n pc++; \n \n \nvoid z80_push(void *var1, void *var2) //top, bottom \n{ \n z80_outflag = 2; \n sp.full -= 2;...
1,569
0
{"language": "c", "success": true, "metadata": {"lines": 214, "avg_line_length": 17.57, "nodes": 1027, "errors": 0, "source_hash": "6052ef3870cf8c3bb6ad99b8bc591ccf3e1fa62ead946cf65b93eb817ec97f2f", "categorized_nodes": 692}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
4,788
c
#pragma once #include "Constants.h" namespace Rendering { class SwapChain; class FramebufferGroup { public: FramebufferGroup(SwapChain* swapChain); ~FramebufferGroup(); inline const VkImageView& GetColorView() const { return colorImageView; } inline VkFramebuffer& GetFrameBuffer(const size_t& imageIndex...
30.53
30
(translation_unit) "#pragma once\n\n#include "Constants.h"\n\nnamespace Rendering\n{\n class SwapChain;\n\n class FramebufferGroup\n {\n public:\n FramebufferGroup(SwapChain* swapChain);\n ~FramebufferGroup();\n\n inline const VkImageView& GetColorView() const { return colorImageView; }\n inline VkFramebuffer& GetF...
240
9
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 30.53, "nodes": 143, "errors": 0, "source_hash": "59447ba025907d6a3281b403f60464cafafd416861f1f482f0c40d7c3e2a1e8a", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
4,789
c
/* * poppassd.c * * A PAM based Eudora password server. * * <NAME> <<EMAIL>> * * Derived from version by <NAME> <<EMAIL>> * * * # FreeBSD 4.9 does NOT have a working pam_unix.so that can * # update account passwords. You may get errors like: * # * # poppassd[15261]: unable to resolve symbol: pam_sm_chaut...
25.76
226
(translation_unit) "/*\n * poppassd.c\n *\n * A PAM based Eudora password server.\n * \n * <NAME> <<EMAIL>>\n *\n * Derived from version by <NAME> <<EMAIL>>\n *\n *\n * # FreeBSD 4.9 does NOT have a working pam_unix.so that can \n * # update account passwords. You may get errors like:\n * #\n * # poppassd[15261]: unabl...
1,609
0
{"language": "c", "success": true, "metadata": {"lines": 226, "avg_line_length": 25.76, "nodes": 908, "errors": 0, "source_hash": "82570d59210332f66acf51cb72cffd091aa76c31cb63c032d0169e420917bf9f", "categorized_nodes": 663}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,790
c
// TriangleMeshAdapter.h // created on 2021/10/11 // author @zoloypzuo #pragma once #include "ZeloPrerequisites.h" #include "Core/Interface/IMeshData.h" #include <glad/glad.h> // GLuint GLfloat class TriangleMeshAdapter : public Zelo::Core::Interface::IMeshData { public: ~TriangleMeshAdapter() override = default...
34
26
(translation_unit) "// TriangleMeshAdapter.h\n// created on 2021/10/11\n// author @zoloypzuo\n#pragma once\n\n#include "ZeloPrerequisites.h"\n#include "Core/Interface/IMeshData.h"\n#include <glad/glad.h> // GLuint GLfloat\n\nclass TriangleMeshAdapter : public Zelo::Core::Interface::IMeshData {\npublic:\n ~TriangleM...
274
17
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 34.0, "nodes": 165, "errors": 0, "source_hash": "902dff5ad0a7bf1dffd2682df84dafb2601d76700149aec84693e6cf5ab2d3db", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
4,791
c
#pragma once #include <dispatch/dispatch.h> namespace pa { template <int N> class ThreadSignal { public: ThreadSignal(); ~ThreadSignal(); void sync(); private: dispatch_semaphore_t m_mutex; dispatch_semaphore_t m_barrier; dispatch_semaphore_t m_barrier2; int m_count; }; } #include <Pineapple/P...
17.11
19
(translation_unit) "#pragma once\n\n#include <dispatch/dispatch.h>\n\nnamespace pa\n{\n template <int N>\n class ThreadSignal\n {\n public:\n ThreadSignal();\n ~ThreadSignal();\n\n void sync();\n\n private:\n dispatch_semaphore_t m_mutex;\n dispatch_semaphore_t m_barrier;\n dispatch_semaphore_t m_barrier2;\n\n i...
78
2
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 17.11, "nodes": 49, "errors": 0, "source_hash": "23de4e54b1c7e03185a36b4d4ab7f96735139d9e9fdfb21673e7395d88c6247c", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
4,792
c
#ifndef VICTIM_H #define VICTIM_H extern char *secret; void gadget(void); typedef int cmp_func_t(int, int); int example_cmp(int a, int b); int victim_entry(cmp_func_t *cmp); #endif /* VICTIM_H */
23.5
8
(translation_unit) "#ifndef VICTIM_H\n#define VICTIM_H\n\nextern char *secret;\n\nvoid gadget(void);\n\ntypedef int cmp_func_t(int, int);\n\nint example_cmp(int a, int b);\nint victim_entry(cmp_func_t *cmp);\n\n#endif /* VICTIM_H */\n" (preproc_ifdef) "#ifndef VICTIM_H\n#define VICTIM_H\n\nextern char *secret;\n\nvoi...
69
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 23.5, "nodes": 52, "errors": 0, "source_hash": "ad8b8fff294f1afb9bcc6940642be30f72b2e4abe42c07ca1391e85f9a9cc716", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef VI...
4,793
c
/* * G. Runs Up Test */ #include "bash.h" #define T 6 runs(stream) register FILE *stream; { double count[T + 1]; register u; register c1, c2; int i, r, q, lastu, reject; double x2, n, p; rewind(stream); for (i = 0; i < T + 1; i++) count[i] = 0.0; n = 0.0; r = 0; reject = 0; q = 0; while ((c1 = getc(s...
17.49
53
(translation_unit) "/*\n * G. Runs Up Test\n */\n#include "bash.h"\n#define T 6\n\nruns(stream)\nregister FILE *stream;\n{\n double count[T + 1];\n register u;\n register c1, c2;\n int i, r, q, lastu, reject;\n double x2, n, p;\n\n rewind(stream);\n for (i = 0; i < T + 1; i++)\n count[i] = 0.0;\n n = 0.0;\n r = 0;\n ...
545
2
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 17.49, "nodes": 355, "errors": 0, "source_hash": "e9acc0d86e025ecf422dcecb9585102726ab1b4b04bb8cc39b07380bfbad0aca", "categorized_nodes": 254}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,794
c
#ifndef PLEX_T_H #define PLEX_T_H typedef enum { T_ERR, T_SEP, T_SEMI, T_STR, T_EQ, T_LT, T_GT, T_EOF, T_EPS } plex_t; #endif
8.64
14
(translation_unit) "#ifndef PLEX_T_H\n#define PLEX_T_H\n\ntypedef enum {\n T_ERR,\n T_SEP,\n T_SEMI,\n T_STR,\n T_EQ,\n T_LT,\n T_GT,\n T_EOF,\n T_EPS\n} plex_t;\n\n#endif\n" (preproc_ifdef) "#ifndef PLEX_T_H\n#define PLEX_T_H\n\ntypedef enum {\n T_ERR,\n T_SEP,\n T_SEMI,\n T_STR,\n T_EQ,\n T_LT,\n T_GT,\n T_EOF,\n T...
43
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 8.64, "nodes": 31, "errors": 0, "source_hash": "8df72f39afdecd6496c45559a88c97c517f9e9440d49fe7497aaf0abcadfd96f", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef P...
4,795
c
// Copyright 2014 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 CONTENT_COMMON_NAVIGATOR_CONNECT_TYPES_H_ #define CONTENT_COMMON_NAVIGATOR_CONNECT_TYPES_H_ #include "url/gurl.h" // This file is to have common...
38.05
21
(translation_unit) "// Copyright 2014 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 CONTENT_COMMON_NAVIGATOR_CONNECT_TYPES_H_\n#define CONTENT_COMMON_NAVIGATOR_CONNECT_TYPES_H_\n\n#include "url/gurl.h"\n\n/...
87
3
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 38.05, "nodes": 49, "errors": 0, "source_hash": "20accd4489484d77383438d6d55345bb56c05f1edc083de120dfbc364c43e5a7", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,796
c
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #include <stdio.h> #include <string.h> int main(int argc, const char** argv) { int ret = 0; if (argc == 2) { if (strcmp(argv[0], "/bin/shell") != 0) { fprintf(stderr, "shell path wrong: %s\n", argv[0]);...
27.72
76
(translation_unit) "// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n#include <stdio.h>\n#include <string.h>\n\nint main(int argc, const char** argv)\n{\n int ret = 0;\n\n if (argc == 2)\n {\n if (strcmp(argv[0], "/bin/shell") != 0)\n {\n fprintf(stderr, "...
702
0
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 27.72, "nodes": 350, "errors": 0, "source_hash": "ede22aad99a6845a4613805e705b2b4c66019670369eb2114a128b368f3e128d", "categorized_nodes": 272}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,797
c
#include <stdio.h> #include <stdlib.h> #include <string.h> long soma_digitos(int n) { if (n < 10) return n; return n % 10 + soma_digitos(n / 10); } int main(int argc, char** argv) { int n = 0; printf("Digite um inteiro positivo: "); scanf("%d", &n); printf("A soma dos dígitos de %d é: %...
23.73
15
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\nlong soma_digitos(int n) {\n if (n < 10) return n;\n\n return n % 10 + soma_digitos(n / 10);\n}\n\nint main(int argc, char** argv) {\n int n = 0;\n \n printf("Digite um inteiro positivo: ");\n scanf("%d", &n);\n\n p...
134
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 23.73, "nodes": 82, "errors": 0, "source_hash": "cbefe3d07c533fb03af67a7ad96b4581b3e505b8740dc36e56d02e40f143eda5", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
4,798
c
/*! Copyright (c) 2010-2012 Delft University of Technology. * * This software is protected by national and international copyright. * Any unauthorized use, reproduction or modification is unlawful and * will be prosecuted. Commercial and non-private application of the * software in any form is strict...
30.93
58
(translation_unit) "/*! Copyright (c) 2010-2012 Delft University of Technology.\n *\n * This software is protected by national and international copyright.\n * Any unauthorized use, reproduction or modification is unlawful and\n * will be prosecuted. Commercial and non-private application of the\n * softw...
57
3
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 30.93, "nodes": 24, "errors": 0, "source_hash": "7955062bd1ac776b59a0bc326c417260391b93893f5477ba138f84e668f5f5f4", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef SURFACEG...
4,799