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
#ifndef FIGHTER_H #define FIGHTER_H #include "player.h" class Fighter : public Player { public: Fighter(std::string); void doAction(Player*); }; #endif
16.11
9
(translation_unit) "#ifndef FIGHTER_H\n#define FIGHTER_H\n\n#include "player.h"\n\nclass Fighter : public Player {\npublic:\n Fighter(std::string);\n\n void doAction(Player*);\n};\n\n#endif" (preproc_ifdef) "#ifndef FIGHTER_H\n#define FIGHTER_H\n\n#include "player.h"\n\nclass Fighter : public Player {\npublic:\n Figh...
54
3
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 16.11, "nodes": 30, "errors": 0, "source_hash": "0c5678add33150bd90cda32c5a609b515f1401e884205fcda154afc6f60657b4", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef F...
3,100
c
#pragma once class Console { public: Console(); ~Console(); char InputBuf[256]; std::vector<char*> Items; bool ScrollToBottom; std::vector<char*> History; int HistoryPos; // -1: new line, 0..History.Size-1 browsing history. std::vector<const cha...
33.5
20
(translation_unit) "#pragma once\nclass Console {\npublic:\n Console();\n ~Console();\n char InputBuf[256];\n std::vector<char*> Items;\n bool ScrollToBottom;\n std::vector<char*> History;\n int HistoryPos; // -1: new line, 0..History.Size-1 browsing hi...
213
7
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 33.5, "nodes": 137, "errors": 0, "source_hash": "f2d775441a90f08deba7664cd21057f9391c0611ba51f14a25c5b29d3b896932", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
3,101
c
/* ******************************** */ /* Warning! Don't modify this file! */ /* ******************************** */ #ifndef __PikaStdLib__H #define __PikaStdLib__H #include <stdio.h> #include <stdlib.h> #include "PikaObj.h" PikaObj *New_PikaStdLib(Args *args); Arg * PikaStdLib_MemChecker(PikaObj *self); Arg * PikaSt...
28.42
12
(translation_unit) "/* ******************************** */\n/* Warning! Don't modify this file! */\n/* ******************************** */\n#ifndef __PikaStdLib__H\n#define __PikaStdLib__H\n#include <stdio.h>\n#include <stdlib.h>\n#include "PikaObj.h"\n\nPikaObj *New_PikaStdLib(Args *args);\n\nArg * PikaStdLib_MemCheck...
68
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 28.42, "nodes": 52, "errors": 0, "source_hash": "4e6be7d159a26ad87c34fb3360c85f9667d5f89f11fb0b1119fccf0e133531ed", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,102
c
#ifndef TEMPERED__TYPE_HID__SHT1X_H #define TEMPERED__TYPE_HID__SHT1X_H #include <stdbool.h> #include "type-info.h" bool tempered_type_hid_get_temperature_sht1x( tempered_device *device, struct tempered_type_hid_sensor *sensor, struct tempered_type_hid_query_result *group_data, float *tempC ); bool tempered_type_...
36.23
13
(translation_unit) "#ifndef TEMPERED__TYPE_HID__SHT1X_H\n#define TEMPERED__TYPE_HID__SHT1X_H\n\n#include <stdbool.h>\n\n#include "type-info.h"\n\nbool tempered_type_hid_get_temperature_sht1x(\n tempered_device *device, struct tempered_type_hid_sensor *sensor,\n struct tempered_type_hid_query_result *group_data, float *...
87
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 36.23, "nodes": 71, "errors": 0, "source_hash": "8cb06274c6837b5f5079e98b33071985b42dd3687ab2905d849e2e79b4588827", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,103
c
/* SPDX-License-Identifier: GPL-2.0-only */ /* * AArch64 KGDB support * * Based on arch/arm/include/kgdb.h * * Copyright (C) 2013 Cavium Inc. * Author: <NAME> <<EMAIL>> */ #ifndef __ARM_KGDB_H #define __ARM_KGDB_H #include <linux/ptrace.h> #include <asm/debug-monitors.h> #ifndef __ASSEMBLY__ static inline vo...
36.09
89
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0-only */\n/*\n * AArch64 KGDB support\n *\n * Based on arch/arm/include/kgdb.h\n *\n * Copyright (C) 2013 Cavium Inc.\n * Author: <NAME> <<EMAIL>>\n */\n\n#ifndef __ARM_KGDB_H\n#define __ARM_KGDB_H\n\n#include <linux/ptrace.h>\n#include <asm/debug-monitors.h>\n\n#i...
110
0
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 36.09, "nodes": 75, "errors": 0, "source_hash": "94282f300faf0987c00c31880513e3d95d95af1ae3ef88f999d271b4143c83fe", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,104
c
#ifndef DIALOGCOLORPICKER_H #define DIALOGCOLORPICKER_H #include <QColorDialog> class DialogColorPicker : public QColorDialog { Q_OBJECT public: explicit DialogColorPicker(QWidget *parent = 0); explicit DialogColorPicker(const QColor &initial, QWidget *parent = 0); ~DialogColorPicker(); signals: ...
24.53
15
(translation_unit) "#ifndef DIALOGCOLORPICKER_H\n#define DIALOGCOLORPICKER_H\n\n#include <QColorDialog>\n\n\nclass DialogColorPicker : public QColorDialog\n{\n Q_OBJECT\n\npublic:\n explicit DialogColorPicker(QWidget *parent = 0);\n explicit DialogColorPicker(const QColor &initial, QWidget *parent = 0);\n ~...
92
5
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 24.53, "nodes": 57, "errors": 0, "source_hash": "c1f706b9cf1b64e5b5b4ad0dece64c96fa926be168176ef67b7b962d21477e27", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,105
c
/* * BiquadFilter.c * <NAME> * Copyright 2012 <NAME> */ #include "BiquadFilter.h" #include "Dsp.h" #ifdef __APPLE__ #include <Accelerate/Accelerate.h> #endif #include <stddef.h> #include <stdlib.h> /******************************************************************************* BiquadFilter */...
24.52
284
(translation_unit) "/* \n * BiquadFilter.c \n * <NAME> \n * Copyright 2012 <NAME> \n */ \n \n#include "BiquadFilter.h" \n#include "Dsp.h" \n \n#ifdef __APPLE__ \n#include <Accelerate/Accelerate.h> \n#endif \n \n#include <stddef.h> \n#include <stdlib.h> \n \n/*************************************************************...
1,926
0
{"language": "c", "success": true, "metadata": {"lines": 284, "avg_line_length": 24.52, "nodes": 1159, "errors": 0, "source_hash": "6486f3f2d8d06bbca45bbfa1126e2a7f81c559d9930c51eade5a2c637998269b", "categorized_nodes": 901}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
3,106
c
/* SPDX-License-Identifier: BSD-2-Clause */ /* Copyright (c) 2019-2022 Technologic Systems, Inc. dba embeddedTS */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <fcntl.h> #include <unistd.h> #include <sys/select.h> #include <sys/stat.h> #ifdef CTL #include <getopt.h> const char copyright[] = "Co...
20.24
274
(translation_unit) "/* SPDX-License-Identifier: BSD-2-Clause */\n/* Copyright (c) 2019-2022 Technologic Systems, Inc. dba embeddedTS */\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <fcntl.h>\n#include <unistd.h>\n#include <sys/select.h>\n#include <sys/stat.h>\n\n#ifdef CTL\n#include <getopt...
2,044
0
{"language": "c", "success": true, "metadata": {"lines": 274, "avg_line_length": 20.24, "nodes": 1109, "errors": 0, "source_hash": "e92f90cca0d46d7be5d44ff6e1051b7523471f2d3f4533201b54bfc39f87ef2b", "categorized_nodes": 803}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
3,107
c
#include <string.h> // This implementation comes from: // https://clc-wiki.net/wiki/C_standard_library:string.h:strspn size_t strspn(const char* s1, const char* s2) { size_t ret = 0; while (*s1 && strchr(s2, *s1++)) { ret++; } return ret; }
22
11
(translation_unit) "#include <string.h>\n\n// This implementation comes from:\n// https://clc-wiki.net/wiki/C_standard_library:string.h:strspn\nsize_t strspn(const char* s1, const char* s2)\n{\n size_t ret = 0;\n\n while (*s1 && strchr(s2, *s1++)) {\n ret++;\n }\n\n return ret;\n}\n" (preproc_include) "#includ...
72
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 22.0, "nodes": 45, "errors": 0, "source_hash": "bead1b031d52dfc5ae630a569b2aec78db243936a74ba4104774024f9bf8b34f", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
3,108
c
// // DateRangeView.h // Wallet // // All rights reserved. // #import <UIKit/UIKit.h> #import "DateRangeType.h" NS_ASSUME_NONNULL_BEGIN @interface DateRangeView : UIView @property (nonatomic, assign) DateRangeType rangeType; @property (nonatomic, assign) NSTimeInterval startTimestamp; @property (nonatomic, assig...
31
16
(translation_unit) "//\n// DateRangeView.h\n// Wallet\n//\n// All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "DateRangeType.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface DateRangeView : UIView\n\n@property (nonatomic, assign) DateRangeType rangeType;\n\n@property (nonatomic, assign) NSTimeInterval startTi...
111
10
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 31.0, "nodes": 72, "errors": 0, "source_hash": "c1b5e4fedf7df8cedc18a1a46de0814ccc0f061bdc376699432c14ecc7f0329e", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <U...
3,109
c
// This program is a part of NITAN MudLIB // duo.c 空手入白刃 #include <ansi.h> inherit F_SSERVER; string name() { return "空手入白刃"; } int perform(object me, object target) { string msg; object weapon, weapon2; int ap, dp, skill; if (! target) { me->clean_up_enemy()...
35.56
54
(translation_unit) "// This program is a part of NITAN MudLIB\n// duo.c 空手入白刃\n\n#include <ansi.h>\n\ninherit F_SSERVER;\n\nstring name() { return "空手入白刃"; }\n\nint perform(object me, object target)\n{\n string msg;\n object weapon, weapon2;\n int ap, dp, skill;\n\n if (! target)\n {\...
583
0
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 35.56, "nodes": 321, "errors": 0, "source_hash": "d70285087f96db0ecbf0eeffcaa6c8c2b2aaa297a88bac517224e8a4b3a506bf", "categorized_nodes": 237}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "ansi...
3,110
c
#pragma once #include <fs/ext2/ext2.h> typedef Result(FsError, void *) Ext2FsBlockResult; Ext2FsBlockResult ext2_acquire_blocks(Ext2Fs *self, size_t off, size_t count, FsBlockFlags flags); void ext2_release_blocks(Ext2Fs *self, void *block); FsResult ext2_alloc_block(Ext2Fs *self, uint32_t preferred_group_id, uint...
54
6
(translation_unit) "#pragma once\n\n#include <fs/ext2/ext2.h>\n\ntypedef Result(FsError, void *) Ext2FsBlockResult;\n\nExt2FsBlockResult ext2_acquire_blocks(Ext2Fs *self, size_t off, size_t count, FsBlockFlags flags);\n\nvoid ext2_release_blocks(Ext2Fs *self, void *block);\n\nFsResult ext2_alloc_block(Ext2Fs *self, uin...
90
1
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 54.0, "nodes": 70, "errors": 0, "source_hash": "120f59863d48b2cc8caa8e55e39311851ec79817e5270354e8a2316b03d1f3da", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
3,111
c
#ifndef STATEINDICATOREDITOR_H #define STATEINDICATOREDITOR_H #include <QDialog> #include "dashboard/elements/state_display.h" #include "ui/propertieswidget.h" namespace Ui { class QTBStateDisplayEditor; } class QTBStateDisplayEditor : public QDialog { Q_OBJECT public: explicit QTBStateDispl...
22.75
36
(translation_unit) "#ifndef STATEINDICATOREDITOR_H \n#define STATEINDICATOREDITOR_H \n \n#include <QDialog> \n#include "dashboard/elements/state_display.h" \n#include "ui/propertieswidget.h" \n \nnamespace Ui { \nclass QTBStateDisplayEditor; \n} \n \nclass QTBStateDisplayEditor : public QDialog \n{ \n Q_OBJECT \n \n...
173
6
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 22.75, "nodes": 112, "errors": 0, "source_hash": "821e70da34eb820acb4f802c472615c18d1b37149e3695c2582cf31bd0d78d5a", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
3,112
c
#include <header.h> char array[]={0x3F,0x06,0x5B,0x4F,0x66,0x6D,0x7D,0x07,0x7F,0x6F}; void func5(char step){ unsigned int i = 0; unsigned int number=0; unsigned int temp = 0; unsigned int sadghan=0; unsigned int dahghan=0; unsigned int yekan=0; unsigned int decimal...
26.3
77
(translation_unit) "#include <header.h> \n \nchar array[]={0x3F,0x06,0x5B,0x4F,0x66,0x6D,0x7D,0x07,0x7F,0x6F}; \n \nvoid func5(char step){ \nunsigned int i = 0; \n unsigned int number=0; \n unsigned int temp = 0; \n unsigned int sadghan=0; \n unsigned int dahghan=0; \n unsigned int yeka...
567
9
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 26.3, "nodes": 392, "errors": 0, "source_hash": "7c75a4c7cfc066f36a2a31eecf35956cb5d731f5d0c19c7aec237d814851f2c2", "categorized_nodes": 271}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
3,113
c
// See the file "COPYING" in the main distribution directory for copyright. #ifndef REPORTER_H #define REPORTER_H #include <stdarg.h> #include <list> #include <utility> #include <string> #include <map> #include <unordered_set> #include <unordered_map> #include "util.h" #include "EventHandler.h" #include "IPAddr.h" ...
36.2
230
(translation_unit) "// See the file "COPYING" in the main distribution directory for copyright.\n\n#ifndef REPORTER_H\n#define REPORTER_H\n\n#include <stdarg.h>\n\n#include <list>\n#include <utility>\n#include <string>\n#include <map>\n#include <unordered_set>\n#include <unordered_map>\n\n#include "util.h"\n#include "E...
1,555
53
{"language": "c", "success": true, "metadata": {"lines": 230, "avg_line_length": 36.2, "nodes": 873, "errors": 0, "source_hash": "7a6755754736bed27377e05c173fa0a87a000686881d5cd83995d34ad0c04e7f", "categorized_nodes": 547}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,114
c
#ifndef _SKELETONIMPORTER_H_ #define _SKELETONIMPORTER_H_ #include "ResourceManagement/Importer/Importer.h" #include "ResourceManagement/Resources/Skeleton.h" #include <assimp/mesh.h> #include <string> struct aiScene; struct aiNode; class SkeletonImporter : public Importer { public: SkeletonImporter() : Importer(R...
41.68
19
(translation_unit) "#ifndef _SKELETONIMPORTER_H_\n#define _SKELETONIMPORTER_H_\n\n#include "ResourceManagement/Importer/Importer.h"\n#include "ResourceManagement/Resources/Skeleton.h"\n\n#include <assimp/mesh.h>\n#include <string>\n\nstruct aiScene;\nstruct aiNode;\n\nclass SkeletonImporter : public Importer\n{\npublic...
180
11
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 41.68, "nodes": 104, "errors": 0, "source_hash": "8154d4086d1a31c9e8de9cabae8c9e4670f488daf589d69c2bff8cfb57b5684f", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
3,115
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @interface PodcastProducerASL : NSObject { struct _PCPLogContext *pcpLogContext; } + (id)logger:(id)arg1; - (int)logDebug:(id)arg1; - (int)logInfo:(id)arg1; - (...
24.76
25
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n@interface PodcastProducerASL : NSObject\n{\n struct _PCPLogContext *pcpLogContext;\n}\n\n+ (id)logger:(id)arg1;\n- (int)logDebug:(id)...
263
17
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 24.76, "nodes": 150, "errors": 0, "source_hash": "e6bd87a3ac38ef8ac13b74a4cab6de14bb3659f8704fc6218de828225c7a19f7", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
3,116
c
#ifndef MIDI_DRIVER_RTMIDI_H #define MIDI_DRIVER_RTMIDI_H // void register_rtmidi_driver(); void unregister_rtmidi_driver(); #endif // MIDI_DRIVER_RTMIDI_H
25
6
(translation_unit) "#ifndef MIDI_DRIVER_RTMIDI_H\n#define MIDI_DRIVER_RTMIDI_H\n\n//\n\nvoid register_rtmidi_driver();\nvoid unregister_rtmidi_driver();\n\n#endif // MIDI_DRIVER_RTMIDI_H\n" (preproc_ifdef) "#ifndef MIDI_DRIVER_RTMIDI_H\n#define MIDI_DRIVER_RTMIDI_H\n\n//\n\nvoid register_rtmidi_driver();\nvoid unregi...
26
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 25.0, "nodes": 17, "errors": 0, "source_hash": "a903a9e40441195074aa9e1c294adf2d22c6c082671b1948071dec500951e831", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef MI...
3,117
c
/* Parse printf format string. Copyright (C) 1999, 2002-2003, 2005, 2007, 2010-2022 Free Software Foundation, Inc. This file 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....
29.86
170
(translation_unit) "/* Parse printf format string.\n Copyright (C) 1999, 2002-2003, 2005, 2007, 2010-2022 Free Software\n Foundation, Inc.\n\n This file is free software: you can redistribute it and/or modify\n it under the terms of the GNU Lesser General Public License as\n published by the Free Software Fou...
713
2
{"language": "c", "success": true, "metadata": {"lines": 170, "avg_line_length": 29.86, "nodes": 495, "errors": 0, "source_hash": "12b51a8a99642b3a7d14cae4e311b7233acefaee5ddf49d65df442aa5a9317c2", "categorized_nodes": 277}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
3,118
c
#include <assert.h> int main(int argc, char *argv[]) { assert(argc == 0); }
14.6
5
(translation_unit) "#include <assert.h>\n\nint main(int argc, char *argv[])\n{\n assert(argc == 0);\n}\n" (preproc_include) "#include <assert.h>\n" (#include) "#include" (system_lib_string) "<assert.h>" (function_definition) "int main(int argc, char *argv[])\n{\n assert(argc == 0);\n}" (primitive_type...
37
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 14.6, "nodes": 24, "errors": 0, "source_hash": "29bb3efb08f7cff79330a4fda3c754599b251b7537d277f171c679fd1cc66e6b", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
3,119
c
/** \file archdep_default_fliplist_file_name.h * \brief Determine path to default fliplist file - header * * \author <NAME> <<EMAIL>> */ #ifndef VICE_ARCHDEP_DEFAULT_FLIPLIST_FILE_NAME_H #define VICE_ARCHDEP_DEFAULT_FLIPLIST_FILE_NAME_H char *archdep_default_fliplist_file_name(void); #endif
32.44
9
(translation_unit) "/** \file archdep_default_fliplist_file_name.h\n * \brief Determine path to default fliplist file - header\n *\n * \author <NAME> <<EMAIL>>\n */\n\n#ifndef VICE_ARCHDEP_DEFAULT_FLIPLIST_FILE_NAME_H\n#define VICE_ARCHDEP_DEFAULT_FLIPLIST_FILE_NAME_H\n\nchar *archdep_default_fliplist_file_name(vo...
21
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 32.44, "nodes": 16, "errors": 0, "source_hash": "9f7c902a1795f807920dec85886c63b89d87495b97a5a3434a31981ec7ea1cda", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef VI...
3,120
c
/* Compile with: make sadstrings CFLAGS="-g -Wall -std=gnu11 -O3" */ #include <stdio.h> #include <string.h> //strlen #include <stdlib.h> //malloc, free, system void get_strings(char const *in){ char *cmd; int len = strlen("strings ") + strlen(in) + 1; cmd = malloc(len); snprintf(cmd, len, "strings %s",...
27.17
18
(translation_unit) "/* Compile with:\nmake sadstrings CFLAGS="-g -Wall -std=gnu11 -O3"\n*/\n#include <stdio.h>\n#include <string.h> //strlen\n#include <stdlib.h> //malloc, free, system\n\nvoid get_strings(char const *in){\n char *cmd;\n int len = strlen("strings ") + strlen(in) + 1;\n cmd = malloc(len);\n s...
150
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 27.17, "nodes": 89, "errors": 0, "source_hash": "d267871f4682c949bec72a3d0725bfc879310d62c995aedf99b5c3bfd4ea7de1", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
3,121
c
// Copyright (c) 2018 BaiQiang. All rights reserved. #include <stdlib.h> #include <stdio.h> #include "screenshot.h" #define STB_IMAGE_WRITE_IMPLEMENTATION #include <stb_image_write.h> void screenshot(GLFWwindow *window, const char *path) { int width, height; FILE *out = fopen(path, "wb"); glfwGetWindowS...
38.17
35
(translation_unit) "// Copyright (c) 2018 BaiQiang. All rights reserved.\n\n#include <stdlib.h>\n#include <stdio.h>\n#include "screenshot.h"\n#define STB_IMAGE_WRITE_IMPLEMENTATION\n#include <stb_image_write.h>\n\nvoid screenshot(GLFWwindow *window, const char *path) {\n int width, height;\n\n FILE *out = fopen(p...
438
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 38.17, "nodes": 265, "errors": 0, "source_hash": "07747b529e1f22fcddcf7e9e1f29dadff1daa7ff39848db91ab8c861767ea23d", "categorized_nodes": 183}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,122
c
#ifndef LIBSSH2_COMPAT_H #define LIBSSH2_COMPAT_H struct _LIBSSH2_USERAUTH_KBDINT_PROMPT { char* text; unsigned int length; unsigned char echo; }; struct _LIBSSH2_USERAUTH_KBDINT_RESPONSE { char* text; unsigned int length; }; #endif
16
14
(translation_unit) "#ifndef LIBSSH2_COMPAT_H\n#define LIBSSH2_COMPAT_H\n\nstruct _LIBSSH2_USERAUTH_KBDINT_PROMPT\n{\n char* text;\n unsigned int length;\n unsigned char echo;\n};\n\nstruct _LIBSSH2_USERAUTH_KBDINT_RESPONSE\n{\n char* text;\n unsigned int length;\n};\n\n#endif\n" (preproc_ifdef) "#ifndef LIBSSH2_COMPA...
52
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 16.0, "nodes": 38, "errors": 0, "source_hash": "3adbb7699d82cbbb68cb05371af18b867b77b147b6870080d7f2b5a61ee752f4", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef L...
3,123
c
// // TLChatCellMenuView.h // TLChat // // Created by 李伯坤 on 16/3/16. // Copyright © 2016年 李伯坤. All rights reserved. // #import <UIKit/UIKit.h> typedef NS_ENUM(NSInteger, TLChatMenuItemType) { TLChatMenuItemTypeCancel, TLChatMenuItemTypeCopy, TLChatMenuItemTypeDelete, }; @interface TLChatCellMenuView...
32
20
(translation_unit) "//\n// TLChatCellMenuView.h\n// TLChat\n//\n// Created by 李伯坤 on 16/3/16.\n// Copyright © 2016年 李伯坤. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\ntypedef NS_ENUM(NSInteger, TLChatMenuItemType) {\n TLChatMenuItemTypeCancel,\n TLChatMenuItemTypeCopy,\n TLChatMenuItemTypeDelete,\...
169
16
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 32.0, "nodes": 103, "errors": 0, "source_hash": "6d24cdbe0ea2ba55adcd51dfd654d1b8489035344715d9267814bf80c488315d", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit.h>\...
3,124
c
/* Program to calculate the inductance of a coil * * Reference: <NAME> and <NAME>, _Tables of Functions_, * 4th edition, Dover, 1945, pp 86-89. */ double sin(), cos(), atan(), ellpe(), ellpk(); double d; double l; double N; /* double PI = 3.14159265358979323846; */ extern double PI; main() { double a, f, tana, ...
21.59
54
(translation_unit) "/* Program to calculate the inductance of a coil\n *\n * Reference: <NAME> and <NAME>, _Tables of Functions_,\n * 4th edition, Dover, 1945, pp 86-89.\n */\n\ndouble sin(), cos(), atan(), ellpe(), ellpk();\n\ndouble d;\ndouble l;\ndouble N;\n\n/* double PI = 3.14159265358979323846; */\nextern double ...
462
0
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 21.59, "nodes": 266, "errors": 0, "source_hash": "a40a086c7d4ddfc744b4e5c4432c41193262602b0f79d85aa72c7507ae65a300", "categorized_nodes": 188}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "double s...
3,125
c
// Copyright (c) YugaByte, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
35.4
50
(translation_unit) "// Copyright (c) YugaByte, Inc.\n//\n// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except\n// in compliance with the License. You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicab...
370
21
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 35.4, "nodes": 194, "errors": 0, "source_hash": "876de77e2cdda3d93f02b2bb54d3d0b32633a7685b773deb84da24543a591d82", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
3,126
c
// // BXHCategoryHeader.h // Pods // // Created by yit on 2020/12/10. // #ifndef BXHCategoryHeader_h #define BXHCategoryHeader_h #import "NSDate+BXH.h" #import "NSDictionary+BXH.h" #import "NSString+BXH.h" #import "NSURL+BXH.h" #import "NSUserDefaults+BXH.h" #import "UIImageView+BXH.h" #import "UIView+BXH.h" #imp...
20.76
17
(translation_unit) "//\n// BXHCategoryHeader.h\n// Pods\n//\n// Created by yit on 2020/12/10.\n//\n\n#ifndef BXHCategoryHeader_h\n#define BXHCategoryHeader_h\n\n#import "NSDate+BXH.h"\n#import "NSDictionary+BXH.h"\n#import "NSString+BXH.h"\n#import "NSURL+BXH.h"\n#import "NSUserDefaults+BXH.h"\n\n#import "UIImageVie...
39
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 20.76, "nodes": 31, "errors": 0, "source_hash": "6fd8b1f1e1cda9131e77d3118862a2e9602a5bc4d24bb03f5af4ff34107017cf", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,127
c
#ifndef VTKFILTERSGENERIC_EXPORT_H #define VTKFILTERSGENERIC_EXPORT_H #ifdef VTKFILTERSGENERIC_STATIC_DEFINE # define VTKFILTERSGENERIC_EXPORT # define VTKFILTERSGENERIC_NO_EXPORT #else # ifndef VTKFILTERSGENERIC_EXPORT # ifdef FiltersGeneric_EXPORTS /* We are building this library */ # define VTKF...
33.68
34
(translation_unit) "#ifndef VTKFILTERSGENERIC_EXPORT_H\n#define VTKFILTERSGENERIC_EXPORT_H\n\n#ifdef VTKFILTERSGENERIC_STATIC_DEFINE\n# define VTKFILTERSGENERIC_EXPORT\n# define VTKFILTERSGENERIC_NO_EXPORT\n#else\n# ifndef VTKFILTERSGENERIC_EXPORT\n# ifdef FiltersGeneric_EXPORTS\n /* We are building this l...
86
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 33.68, "nodes": 81, "errors": 0, "source_hash": "552a37eb144744e3fe145eea784df1a50027b83c27e186fe952f21301b3aa1ad", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,128
c
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif FOUNDATION_EXPORT double Pods_SwiftLocation_macOS_TestsVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_SwiftLocati...
24
14
(translation_unit) "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#else\n#ifndef FOUNDATION_EXPORT\n#if defined(__cplusplus)\n#define FOUNDATION_EXPORT extern "C"\n#else\n#define FOUNDATION_EXPORT extern\n#endif\n#endif\n#endif\n\n\nFOUNDATION_EXPORT double Pods_SwiftLocation_macOS_TestsVersionNumber;\nFOUNDATION_EXPORT co...
52
1
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 24.0, "nodes": 42, "errors": 0, "source_hash": "22c34a098d9a2597c9eb6d910c1ae1be3191575350ae3e856782cbcd9fb18fe7", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef __...
3,129
c
#pragma once #include <memory> #include <cstddef> namespace Bel { class IWindow; class ITexture2D; class Resource; enum class RenderMode { kRenderFull, kRenderFree, kRenderCount }; enum class ShapeType { kRectangle, kSquare, kLine, ...
31.02
133
(translation_unit) "#pragma once\n\n#include <memory>\n#include <cstddef>\n\nnamespace Bel\n{\n class IWindow;\n class ITexture2D;\n class Resource;\n\n enum class RenderMode\n {\n kRenderFull,\n kRenderFree,\n kRenderCount\n };\n\n enum class ShapeType\n {\n kRectang...
1,075
41
{"language": "c", "success": true, "metadata": {"lines": 133, "avg_line_length": 31.02, "nodes": 731, "errors": 0, "source_hash": "a58e204e7f24dd5aa72e001b7121ad7fe205a576fc22bcf6529135ee5ea5799a", "categorized_nodes": 512}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
3,130
c
#ifndef OBJECT_INCL #define OBJECT_INCL #include "common.h" //dim-style memory management //A notational macro used to indicate an obj was/should be //allocated with dim meta data. #define d(x) x typedef struct dimmeta { size_t elsz; int ncol; int nrow; int ndep; int ndim; } dimmeta; #define di...
47.43
123
(translation_unit) "#ifndef OBJECT_INCL\n#define OBJECT_INCL\n\n#include "common.h"\n\n//dim-style memory management\n\n//A notational macro used to indicate an obj was/should be\n//allocated with dim meta data.\n#define d(x) x\n\ntypedef struct dimmeta {\n size_t elsz;\n int ncol;\n int nrow;\n int ndep;\n...
886
0
{"language": "c", "success": true, "metadata": {"lines": 123, "avg_line_length": 47.43, "nodes": 630, "errors": 0, "source_hash": "cdd1cdf2dd66666c8c6d6331c0a46d84c21389040a5a804d4e330c627bdfd943", "categorized_nodes": 393}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
3,131
c
#include<stdio.h> // Log 方法 void printSort(int data[], int n, int currentIndex) { printf("\n"); printf("排序后%d:", currentIndex); for (int i = 0; i < n; ++ i) { printf("%d ", data[i]); } printf("\n"); } // 引自 StraightInsertionSort.c 直接插入排序方式三: /** 针对特定子序列进行直接插入排序,比较每一趟排序的数字并排排序 @par...
27.84
77
(translation_unit) "#include<stdio.h>\n\n// Log 方法\nvoid printSort(int data[], int n, int currentIndex) {\n \n printf("\n");\n printf("排序后%d:", currentIndex);\n for (int i = 0; i < n; ++ i) {\n printf("%d ", data[i]);\n }\n printf("\n");\n}\n\n// 引自 StraightInsertionSort.c 直接插入排序方式三:\n/**\n 针对特...
593
0
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 27.84, "nodes": 325, "errors": 0, "source_hash": "2d1266092a8a9a24d5d2d4a82e1863ae1a809930b85c7f9f0c1e8d09a63e8923", "categorized_nodes": 238}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,132
c
// // Copyright 2018 Pixar // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is deleted and replaced with: // // 6. Trad...
37.81
111
(translation_unit) "//\n// Copyright 2018 Pixar\n//\n// Licensed under the Apache License, Version 2.0 (the "Apache License")\n// with the following modification; you may not use this file except in\n// compliance with the Apache License and the following modification to it:\n// Section 6. Trademarks. is deleted and re...
585
34
{"language": "c", "success": true, "metadata": {"lines": 111, "avg_line_length": 37.81, "nodes": 330, "errors": 0, "source_hash": "baee14861c7c6e891417377302aaa0deb1d474d67363187bb841289485e86edb", "categorized_nodes": 265}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
3,133
c
char* longestCommonPrefix(char** strs, int strsSize) { int i=0; int j=0; int k=0; char *ret; if(!strs){ return ""; } if(!(strs[0])){ return ""; } for(j=0; j<strsSize; j++){ if(!(strs[j])){ return ""; } if(!strs[j][0]){ ...
17.11
44
(translation_unit) "char* longestCommonPrefix(char** strs, int strsSize) {\n int i=0;\n int j=0;\n int k=0;\n char *ret;\n if(!strs){\n return "";\n }\n \n if(!(strs[0])){\n return "";\n }\n for(j=0; j<strsSize; j++){\n if(!(strs[j])){\n return "";\n }...
375
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 17.11, "nodes": 207, "errors": 0, "source_hash": "a91893fc1ac78275ada8c5c02c30313d8b27808ff46426a6ef0f7b4e677e789c", "categorized_nodes": 147}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "...
3,134
c
#include <engine/gfx/draw_manager.h> #include <engine/gfx/interface_window.h> #include <engine/gfx/interface_renderer.h> #include <engine/gfx/sprite.h> #include <SDL.h> void draw_scene(draw_manager_t *draw_manager) { interface_renderer_t* renderer = draw_manager->renderer; renderer->set_draw_color(renderer, 6...
37.27
56
(translation_unit) "#include <engine/gfx/draw_manager.h>\n#include <engine/gfx/interface_window.h>\n#include <engine/gfx/interface_renderer.h>\n#include <engine/gfx/sprite.h>\n#include <SDL.h>\n\nvoid draw_scene(draw_manager_t *draw_manager)\n{\n interface_renderer_t* renderer = draw_manager->renderer;\n\n render...
474
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 37.27, "nodes": 297, "errors": 0, "source_hash": "b4063d11393fe1320af94d2f408308f0cdacbc3079435a6836812f0950b872aa", "categorized_nodes": 235}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,135
c
/*---------------------------------------------------------------------------- * Copyright (c) <2018>, <Huawei Technologies Co., Ltd> * All rights reserved. * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * 1. Redist...
35.8
191
(translation_unit) "/*----------------------------------------------------------------------------\n * Copyright (c) <2018>, <Huawei Technologies Co., Ltd>\n * All rights reserved.\n * Redistribution and use in source and binary forms, with or without modification,\n * are permitted provided that the following conditio...
1,101
0
{"language": "c", "success": true, "metadata": {"lines": 191, "avg_line_length": 35.8, "nodes": 690, "errors": 0, "source_hash": "1eab7a68bb690716bda3f513a923758e894cb83a010fb7bd2646a0388b43ff5a", "categorized_nodes": 452}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,136
c
#ifndef UFOMAP_RVIZ_PLUGIN_OCTREE_BASE_DISPLAY_H #define UFOMAP_RVIZ_PLUGIN_OCTREE_BASE_DISPLAY_H #ifndef Q_MOC_RUN #include <ros/ros.h> #include <rviz/display.h> #include <rviz/ogre_helpers/point_cloud.h> #endif // Q_MOC_RUN #include <message_filters/subscriber.h> #include <OGRE/OgreSceneManager.h> #include <OGRE/...
23.62
303
(translation_unit) "#ifndef UFOMAP_RVIZ_PLUGIN_OCTREE_BASE_DISPLAY_H\n#define UFOMAP_RVIZ_PLUGIN_OCTREE_BASE_DISPLAY_H\n\n#ifndef Q_MOC_RUN\n#include <ros/ros.h>\n#include <rviz/display.h>\n#include <rviz/ogre_helpers/point_cloud.h>\n#endif // Q_MOC_RUN\n\n#include <message_filters/subscriber.h>\n\n#include <OGRE/Ogre...
2,090
73
{"language": "c", "success": true, "metadata": {"lines": 303, "avg_line_length": 23.62, "nodes": 1188, "errors": 0, "source_hash": "e47ddda5ffe2b5e3f37bddb12be1e483975d33c58e51ef704b04d2dea6a609a9", "categorized_nodes": 861}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
3,137
c
#import <LibSwift-Swift.h> char *greeting();
21.5
2
(translation_unit) "#import <LibSwift-Swift.h>\n\nchar *greeting();\n" (preproc_call) "#import <LibSwift-Swift.h>\n" (preproc_directive) "#import" (preproc_arg) "<LibSwift-Swift.h>" (declaration) "char *greeting();" (primitive_type) "char" (pointer_declarator) "*greeting()" (*) "*" (func...
14
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 21.5, "nodes": 10, "errors": 0, "source_hash": "28e2859a0e67d0be49793b70f23d9e3265cfbc7ed243988726cc87d3143b3843", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Lib...
3,138
c
//----------------------------------------------------------------------------- class ItemSuppressor extends InventoryItemSuper { }; typedef ItemSuppressor SuppressorBase; //----------------------------------------------------------------------------- class ItemWatch extends InventoryItemSuper { }; //--------------...
29.28
134
(translation_unit) "//-----------------------------------------------------------------------------\nclass ItemSuppressor extends InventoryItemSuper\n{\n};\n\ntypedef ItemSuppressor SuppressorBase;\n\n//-----------------------------------------------------------------------------\nclass ItemWatch extends InventoryItemS...
667
4
{"language": "c", "success": true, "metadata": {"lines": 134, "avg_line_length": 29.28, "nodes": 370, "errors": 0, "source_hash": "46107f2a568a42925f5fc07b2b6ac90b5b14d9e5049e56e60541c064c4fadb88", "categorized_nodes": 295}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "class I...
3,139
c
#include <stdio.h> #include <string.h> #include <stdbool.h> #include "parse.h" #include "ast.h" #include "match.h" void printUsage(char** argv) { printf("usage: %s regex-pattern [--print-ast]\n", argv[0]); } int main(int argc, char** argv) { if (argc != 2 && argc != 3) { printUsage(argv); retu...
21.23
40
(translation_unit) "#include <stdio.h>\n#include <string.h>\n#include <stdbool.h>\n#include "parse.h"\n#include "ast.h"\n#include "match.h"\n\nvoid printUsage(char** argv) {\n printf("usage: %s regex-pattern [--print-ast]\n", argv[0]);\n}\n\nint main(int argc, char** argv) {\n if (argc != 2 && argc != 3) {\n ...
304
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 21.23, "nodes": 169, "errors": 0, "source_hash": "623eac42706aa719047c1882293e596d8925bf8239456b2f01de8b083e35051c", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,140
c
# /* # * YDTrigger专用宏 # * # * 函数部分 # * # * By actboy168 # * # */ # #ifndef INCLUDE_FUNCTION_H #define INCLUDE_FUNCTION_H # #endif
10.85
13
(translation_unit) "# /* \n# * YDTrigger专用宏 \n# * \n# * 函数部分 \n# * \n# * By actboy168 \n# * \n# */ \n# \n#ifndef INCLUDE_FUNCTION_H \n#define INCLUDE_FUNCTION_H \n# \n#endif \n" (ERROR) "# /* \n# * YDTrigger专用宏 \n# * \n# * 函数部分 \n# * \n# * By actboy168 \n# * \n# */ \n# \n#ifndef INCL" (ERR...
14
5
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 10.85, "nodes": 12, "errors": 0, "source_hash": "bcb4cdd1a5e1c96c7245dc905e788dc9ac927153f16fd1079d6a6d0d8e1e0013", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "# /*\r\n# * YDT...
3,141
c
// /************************************************************************************************** * IOWOW library * * MIT License * * Copyright (c) 2012-2021 Softmotions Ltd <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated document...
30.76
317
(translation_unit) "//\n/**************************************************************************************************\n * IOWOW library\n *\n * MIT License\n *\n * Copyright (c) 2012-2021 Softmotions Ltd <<EMAIL>>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this sof...
2,685
0
{"language": "c", "success": true, "metadata": {"lines": 317, "avg_line_length": 30.76, "nodes": 1591, "errors": 0, "source_hash": "383b86866732ed0654fd175239b7d7f8a1da5a3009c06b86e0ad7fcb65749f05", "categorized_nodes": 1206}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
3,142
c
// Copyright 2022 PingCAP, 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 agreed to i...
38.93
57
(translation_unit) "// Copyright 2022 PingCAP, 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 required by a...
440
31
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 38.93, "nodes": 255, "errors": 0, "source_hash": "a4b16353dff0c93e9ee7f857015bffc72a786f82ec1a82e61c6cafeab21738c4", "categorized_nodes": 170}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
3,143
c
/////////////////////////////////////////////////////////// // SignedRealEnergy.h // Implementation of the Class SignedRealEnergy // Created on: 13-Apr-2020 2:51:42 PM // Original author: shu /////////////////////////////////////////////////////////// #if !defined(EA_D58C5784_78D1_4838_A6B2_1F6513479B6C__INCL...
27.21
28
(translation_unit) "///////////////////////////////////////////////////////////\n// SignedRealEnergy.h\n// Implementation of the Class SignedRealEnergy\n// Created on: 13-Apr-2020 2:51:42 PM\n// Original author: shu\n///////////////////////////////////////////////////////////\n\n#if !defined(EA_D58C5784_78D1_4...
73
1
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 27.21, "nodes": 37, "errors": 0, "source_hash": "8dad98c0f4f6f500a06cf8c56eaa30e03385234e6662348531c8766c4110a768", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !define...
3,144
c
inherit "room/room"; reset(arg) { if(!present("undead")) { move_object(clone_object("/wizards/neophyte/city/monst/undead"), this_object()); } if(arg) return; set_not_out(1); set_light(1); short_desc = "A private room of drake"; long_desc = "This is the private resting place ...
36.74
19
(translation_unit) "inherit "room/room";\nreset(arg) {\n if(!present("undead")) {\n move_object(clone_object("/wizards/neophyte/city/monst/undead"),\n this_object());\n }\nif(arg) return;\n\nset_not_out(1);\nset_light(1);\n\nshort_desc = "A private room of drake";\nlong_desc = "Th...
171
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 36.74, "nodes": 80, "errors": 0, "source_hash": "98ed9e56d98f8c0f66ed73b4081aa86673a1edceb1ff564cab38fe46f31f36c7", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "concatenated_string", "text": "in...
3,145
c
// -*- mode: c++ -*- // Copyright 2010, <NAME>, <NAME>, <NAME>, // JRL, CNRS/AIST. // #ifndef DYNAMIC_GRAPH_EXCEPTION_SIGNAL_H #define DYNAMIC_GRAPH_EXCEPTION_SIGNAL_H #include <dynamic-graph/dynamic-graph-api.h> #include <dynamic-graph/exception-abstract.h> #include <dynamic-graph/fwd.hh> namespace dynamicgraph { /...
33.09
35
(translation_unit) "// -*- mode: c++ -*-\n// Copyright 2010, <NAME>, <NAME>, <NAME>,\n// JRL, CNRS/AIST.\n//\n\n#ifndef DYNAMIC_GRAPH_EXCEPTION_SIGNAL_H\n#define DYNAMIC_GRAPH_EXCEPTION_SIGNAL_H\n\n#include <dynamic-graph/dynamic-graph-api.h>\n#include <dynamic-graph/exception-abstract.h>\n#include <dynamic-graph/fwd.h...
222
12
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 33.09, "nodes": 113, "errors": 0, "source_hash": "66250326d6d72f39c91e759ac5e856c3bcdd3e8315f243eb17001d7584186dd0", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
3,146
c
// Lab 9 //Lab 9 int fd = open(filename,mode,permis) //fopen open ///"rb" O_RDONLY //"wb" O_WRONLY | O_CREAT | O_TRUNC // turn bit on : byte|flag // turn bit off: byte&flag // toggle bit on/off byte ^ flag // check to see if the it is set (byte & flag) == flag // check if a bit is not se...
21.3
106
(translation_unit) "// Lab 9 \n\n//Lab 9 int fd = open(filename,mode,permis)\n\n//fopen open\n///"rb" O_RDONLY\n//"wb" O_WRONLY | O_CREAT | O_TRUNC\n// turn bit on : byte|flag\n// turn bit off: byte&flag\n// toggle bit on/off byte ^ flag\n// check to see if the it is set (byte & flag) == fl...
789
0
{"language": "c", "success": true, "metadata": {"lines": 106, "avg_line_length": 21.3, "nodes": 424, "errors": 0, "source_hash": "a0803bb1bb61d23b17680411dc545a0826dfaa324b700df489345e220e6f2b5f", "categorized_nodes": 315}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,147
c
/* * Copyright (c) 2017 Cisco and/or its affiliates. * 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 applicabl...
35.43
112
(translation_unit) "/*\n * Copyright (c) 2017 Cisco and/or its affiliates.\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 * ...
514
3
{"language": "c", "success": true, "metadata": {"lines": 112, "avg_line_length": 35.43, "nodes": 377, "errors": 0, "source_hash": "bca072e787c54cd3fe782d3b8c413bfc4375a0ccfec01fd0ea0685c6ac4bff4c", "categorized_nodes": 262}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
3,148
c
/** * @file _probe-api.h * @brief probe API private header file * @author "<NAME>" <<EMAIL>> * @author "<NAME>" <<EMAIL>> */ /* * Copyright 2009 Red Hat Inc., Durham, North Carolina. * All Rights Reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GN...
31.35
48
(translation_unit) "/**\n * @file _probe-api.h\n * @brief probe API private header file\n * @author "<NAME>" <<EMAIL>>\n * @author "<NAME>" <<EMAIL>>\n */\n\n/*\n * Copyright 2009 Red Hat Inc., Durham, North Carolina.\n * All Rights Reserved.\n *\n * This library is free software; you can redistribute it and/or\n * mod...
71
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 31.35, "nodes": 46, "errors": 0, "source_hash": "86c3e6abc1b01a6cb0663f6aa043e3f436d95b8f89184309feff27703aee9de2", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
3,149
c
#ifdef USE_DKDuktape #pragma once #ifndef DKFileJS_H #define DKFileJS_H #include "DKDuktape/DKDuktape.h" class DKFileJS : public DKObjectT<DKFileJS> { public: bool Init(); static int ChDir(duk_context* ctx); static int Copy(duk_context* ctx); static int CopyFolder(duk_context* ctx); static int Delete(duk_cont...
33.29
41
(translation_unit) "#ifdef USE_DKDuktape \n#pragma once\n#ifndef DKFileJS_H\n#define DKFileJS_H\n\n#include "DKDuktape/DKDuktape.h"\n\nclass DKFileJS : public DKObjectT<DKFileJS>\n{\npublic:\n bool Init();\n \n static int ChDir(duk_context* ctx);\n static int Copy(duk_context* ctx);\n static int CopyFolder(duk_context*...
465
2
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 33.29, "nodes": 306, "errors": 0, "source_hash": "498266707610b64e6e9b4553f2c1d5659014c7f69b47ed6366b3c1c102a7b322", "categorized_nodes": 185}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef...
3,150
c
// // // Created by <NAME> on 2013-04-03. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> typedef void(^DrawBlock)(CGRect frame); @interface BADrawView : UIView @property (nonatomic, copy) DrawBlock drawBlock; @end
23.7
10
(translation_unit) "//\n//\n// Created by <NAME> on 2013-04-03.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\ntypedef void(^DrawBlock)(CGRect frame);\n\n@interface BADrawView : UIView\n\n@property (nonatomic, copy) DrawBlock drawBlock;\n\n@end\n" (comment) "//" (comment) "/...
49
7
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 23.7, "nodes": 32, "errors": 0, "source_hash": "fbf3687df2f0aeb4e48594a9cf6d8e9671160866a0d31b1ebf94b2356014d50b", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <U...
3,151
c
#include "coridium_pcb.h" #if defined LPC1751 || defined LPC1756 || defined LPC1768 void HWPWM (int cycle, int cnt, int *list) { //PCONP defaults PWM1 = 1 //PCLK is half CCLK, approx 50 MHz int turnOn, val, prescale, divider,j; LPC_SC->PCONP |= 1<<6; // turn PWM on prescale = SystemCoreClock/(4)/100000...
22.62
299
(translation_unit) "#include "coridium_pcb.h"\n\n#if defined LPC1751 || defined LPC1756 || defined LPC1768\n\nvoid HWPWM (int cycle, int cnt, int *list) {\n //PCONP defaults PWM1 = 1\n //PCLK is half CCLK, approx 50 MHz\n\n int turnOn, val, prescale, divider,j;\n \n LPC_SC->PCONP |= 1<<6; // turn PWM on\n\n presca...
1,808
0
{"language": "c", "success": true, "metadata": {"lines": 299, "avg_line_length": 22.62, "nodes": 1210, "errors": 0, "source_hash": "ec1f0424f9e7e5379c221c364203b0544ec3306906d825f12cced58cc82032be", "categorized_nodes": 873}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
3,152
c
// // Created by bkg2k on 02/11/2020. // #pragma once //! Board model/generation enum class BoardType { // Undetected UndetectedYet, // Not yet detected Unknown, // Unknown hardware // RaspberryPi Pi0, // Pi 0, 0W Pi1, // Pi 1, A, B, A+, B+ Pi2, // Pi 2B ...
22.04
24
(translation_unit) "//\n// Created by bkg2k on 02/11/2020.\n//\n#pragma once\n\n//! Board model/generation\nenum class BoardType\n{\n // Undetected\n UndetectedYet, // Not yet detected\n Unknown, // Unknown hardware\n // RaspberryPi\n Pi0, // Pi 0, 0W\n Pi1, // Pi 1, A, B, A+...
69
1
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 22.04, "nodes": 31, "errors": 0, "source_hash": "9a5c3370c316c6e2c3bfd7c42b385b9b8f51b39a1c36d438f14d64f8f8c74c57", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
3,153
c
// // TestPKPathNodeDelegateMaxLength.h // PathKit // // Created by <NAME> on 3/10/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import "PKPathNodeDelegate.h" @interface TestPKPathNodeDelegateMaxLength : NSObject <PKPathNodeDelegate> @property (copy, readonly) NSStr...
28.77
13
(translation_unit) "//\n// TestPKPathNodeDelegateMaxLength.h\n// PathKit\n//\n// Created by <NAME> on 3/10/14.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "PKPathNodeDelegate.h"\n\n@interface TestPKPathNodeDelegateMaxLength : NSObject <PKPathNodeDelegate>\n\...
61
10
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 28.77, "nodes": 43, "errors": 0, "source_hash": "dc7ea139fe2eb82523489a0dd4ec0d31a22a2b3fcbeffbf4eee46f229c2b4885", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
3,154
c
#ifndef FILE_H #define FILE_H #include "captcha3d.h" void save_png(struct Configuration *config, struct Image *image); #endif
16
8
(translation_unit) "#ifndef FILE_H \n#define FILE_H \n \n#include "captcha3d.h" \n \nvoid save_png(struct Configuration *config, struct Image *image); \n \n#endif \n" (preproc_ifdef) "#ifndef FILE_H \n#define FILE_H \n \n#include "captcha3d.h" \n \nvoid save_png(struct Configuration *config, struct Image *image); \n ...
37
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 16.0, "nodes": 29, "errors": 0, "source_hash": "47f6cbb8c4c4d93513c3f2a2f495dd9054da89688f310dc039c0d82b7b7e73c9", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef FI...
3,155
c
#ifndef CONTROL_H #define CONTROL_H #include "admin.h" #include "dash.h" #include "login.h" #include "model.h" #include "QWidget" #include "deletebook.h" #include "data.h" #include "bor.h" #include "ret.h" #include "addbok.h" #include <vector> class control { public: Admin *manager; Student *student; Data...
20.24
50
(translation_unit) "#ifndef CONTROL_H\n#define CONTROL_H\n\n#include "admin.h"\n#include "dash.h"\n#include "login.h"\n#include "model.h"\n#include "QWidget"\n#include "deletebook.h"\n#include "data.h"\n#include "bor.h"\n#include "ret.h"\n#include "addbok.h"\n#include <vector>\n\nclass control\n{\npublic:\n Admin *m...
377
4
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 20.24, "nodes": 244, "errors": 0, "source_hash": "06ce350fb1fdce3cf718a53da58f209b0ef8d7a9fab8eba25f6ab98f035186c3", "categorized_nodes": 163}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,156
c
/* * Copyright (c) 2010-2011 Apple Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file ex...
34.3
60
(translation_unit) "/*\n * Copyright (c) 2010-2011 Apple Inc. All rights reserved.\n *\n * @APPLE_OSREFERENCE_LICENSE_HEADER_START@\n * \n * This file contains Original Code and/or Modifications of Original Code\n * as defined in and that are subject to the Apple Public Source License\n * Version 2.0 (the 'License'). Y...
232
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 34.3, "nodes": 123, "errors": 0, "source_hash": "edb805490cb606e727b0e72581a822b81c55ebe09e096388ff6024587e94967a", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
3,157
c
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef GrAAHairLinePathRenderer_DEFINED #define GrAAHairLinePathRenderer_DEFINED #include "GrPathRenderer.h" class GrAAHairLinePathRenderer : public GrPathRenderer { publi...
38.5
54
(translation_unit) "/*\n * Copyright 2011 Google Inc.\n *\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n#ifndef GrAAHairLinePathRenderer_DEFINED\n#define GrAAHairLinePathRenderer_DEFINED\n\n#include "GrPathRenderer.h"\n\nclass GrAAHairLinePathRenderer ...
349
26
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 38.5, "nodes": 214, "errors": 0, "source_hash": "abc9e804cc01e02e48b2858a301adb01c5908c28d817af29abd1e2e10893eb6c", "categorized_nodes": 138}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
3,158
c
#ifndef RETURNNODE_H #define RETURNNODE_H #include "Node.h" class ReturnNode : public Node { public: ReturnNode(const llvm::Instruction * instruction = nullptr); }; #endif // RETURNNODE_H
20.33
9
(translation_unit) "#ifndef RETURNNODE_H\n#define RETURNNODE_H\n\n#include "Node.h"\n\nclass ReturnNode : public Node\n{\npublic:\n ReturnNode(const llvm::Instruction * instruction = nullptr);\n};\n\n#endif // RETURNNODE_H\n" (preproc_ifdef) "#ifndef RETURNNODE_H\n#define RETURNNODE_H\n\n#include "Node.h"\n\nclass...
52
3
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 20.33, "nodes": 29, "errors": 0, "source_hash": "a57c431182ae9da391f6c7eb0ef1d439f73c7e16a8d0e02c555d2da564269531", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef R...
3,159
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/ContactsFoundation.framework/Versions/A/ContactsFoundation */ @interface _CNForkJoinObservable : CNObservable { NSArray * _observables; <CNForkJoinResultReportingStrategy> * _resultReportingStrategy; } + (id)forkJoin:(id)arg1; + (id)p...
34.69
13
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/ContactsFoundation.framework/Versions/A/ContactsFoundation\n */\n\n@interface _CNForkJoinObservable : CNObservable {\n NSArray * _observables;\n <CNForkJoinResultReportingStrategy> * _resultReportingStrategy;\n}\n\n+ (...
117
12
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 34.69, "nodes": 69, "errors": 0, "source_hash": "d0d94cd5d2095e2515cd6dba2b007d33577c2d6fccb29ee578ca18a8ad3cbf2a", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nu...
3,160
c
#include "trie.h" #include "dynstring.h" #include "dynlinks.h" int main(int argc, char **argv){ struct Node *trie = NewTrie(); for (int i = 1; i < argc; i++) { storeValue(trie, argv[i], "x"); } int idx = -1, state = 0; struct DynamicLinkArray *stack = NewDynamicLinkArray(); struct Dyn...
27.12
24
(translation_unit) "#include "trie.h"\n#include "dynstring.h"\n#include "dynlinks.h"\n\n\nint main(int argc, char **argv){\n struct Node *trie = NewTrie();\n for (int i = 1; i < argc; i++) {\n storeValue(trie, argv[i], "x");\n }\n\n int idx = -1, state = 0;\n struct DynamicLinkArray *stack = NewDy...
252
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 27.12, "nodes": 152, "errors": 0, "source_hash": "f1e5ad4cd717a185b9cd0461466a277de1dcf398fd3040c95c4a3238f1c37b68", "categorized_nodes": 107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,161
c
/*! \file bcma_testcase_reg_reset.c * * Test case for register reset. */ /* * 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 <bsl/bsl.h> #include <shr/shr_...
31.42
262
(translation_unit) "/*! \file bcma_testcase_reg_reset.c\n *\n * Test case for register reset.\n */\n/*\n * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.\n * \n * Copyright 2007-2020 Broadcom Inc. All rights reserved.\n */\n\n#include ...
2,046
0
{"language": "c", "success": true, "metadata": {"lines": 262, "avg_line_length": 31.42, "nodes": 1170, "errors": 0, "source_hash": "7d7854f8b90e85b26b1940651036172b262948748ee3c64f29b21f8bdc514745", "categorized_nodes": 815}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
3,162
c
#ifndef keyboard_c #define keyboard_c void pressLeft(); void pressRight(); #endif
15.4
5
(translation_unit) "#ifndef keyboard_c\n#define keyboard_c\nvoid pressLeft();\nvoid pressRight();\n#endif\n\n" (preproc_ifdef) "#ifndef keyboard_c\n#define keyboard_c\nvoid pressLeft();\nvoid pressRight();\n#endif" (#ifndef) "#ifndef" (identifier) "keyboard_c" (preproc_def) "#define keyboard_c\n" (#...
24
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 15.4, "nodes": 17, "errors": 0, "source_hash": "1dcea95f387f27a8ff38cafdb844d8d4bee8ad8ff8239c991d0dad5573761374", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ke...
3,163
c
#include "kernel_samples.h" static SemaphoreId sync; static uint32_t noof_gives = 0; static uint32_t noof_syncs = 0; static void DemoTask1(void *arg) { sync = Kalango_SemaphoreCreate(0, 1); for(;;) { Kalango_SemaphoreTake(sync, KERNEL_WAIT_FOREVER); noof_syncs++; } } static void DemoTask3...
25.06
34
(translation_unit) "#include "kernel_samples.h"\n\nstatic SemaphoreId sync;\nstatic uint32_t noof_gives = 0;\nstatic uint32_t noof_syncs = 0;\n\nstatic void DemoTask1(void *arg) {\n sync = Kalango_SemaphoreCreate(0, 1);\n for(;;) {\n Kalango_SemaphoreTake(sync, KERNEL_WAIT_FOREVER);\n noof_syncs++;\...
271
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 25.06, "nodes": 155, "errors": 0, "source_hash": "390cafa565c49db6c6b41e0176c5daf207a699c80fd2a340e931e5bd43352792", "categorized_nodes": 107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,164
c
// // NSDictionary+GHCities.h // GoHikeAmsterdam // // Created by Giovanni on 8/26/13. // Copyright (c) 2013 Code for Europe. All rights reserved. // #import <Foundation/Foundation.h> @interface NSDictionary (GHCities) - (NSArray*)GHwithin; - (NSArray*)GHother; @end typedef NSDictionary GHCities;
22.23
13
(translation_unit) "//\n// NSDictionary+GHCities.h\n// GoHikeAmsterdam\n//\n// Created by Giovanni on 8/26/13.\n// Copyright (c) 2013 Code for Europe. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NSDictionary (GHCities)\n\n- (NSArray*)GHwithin;\n- (NSArray*)GHother;\n\n@end\n\ntypedef...
54
4
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 22.23, "nodes": 33, "errors": 0, "source_hash": "254b170dd73fa0330ec4de604841e365b960890eebfce4cbb42a87459e1a7637", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
3,165
c
#ifndef test143_Class_Defined__ #define test143_Class_Defined__ #include <stdint.h> class test143 { public: void Putval(void); private: int32_t *volatile Ptr; volatile int32_t Data[10]; }; #endif
17.64
11
(translation_unit) "#ifndef test143_Class_Defined__\n#define test143_Class_Defined__\n\n#include <stdint.h>\n\nclass test143 {\npublic:\n void Putval(void);\nprivate:\n int32_t *volatile Ptr;\n volatile int32_t Data[10];\n};\n\n#endif\n" (preproc_ifdef) "#ifndef test143_Class_Defined__\n#define test143_Class_De...
53
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 17.64, "nodes": 35, "errors": 0, "source_hash": "0d26033d8be3886089d5fbe4f10b24670ca5f148979e69114cd39c3e1f67f0bb", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,166
c
// Copyright eeGeo Ltd (2012-2015), All Rights Reserved #pragma once #include "MyPins.h" #include "Types.h" #include "BidirectionalBus.h" #include "IPlaceJumpController.h" #include "ICallback.h" #include "MyPinSelectedMessage.h" #include "CameraTransitions.h" namespace ExampleApp { namespace MyPins { ...
36.86
29
(translation_unit) "// Copyright eeGeo Ltd (2012-2015), All Rights Reserved\n\n#pragma once\n#include "MyPins.h"\n#include "Types.h"\n#include "BidirectionalBus.h"\n#include "IPlaceJumpController.h"\n#include "ICallback.h"\n#include "MyPinSelectedMessage.h"\n#include "CameraTransitions.h"\n\nnamespace ExampleApp\n{\n ...
183
11
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 36.86, "nodes": 90, "errors": 0, "source_hash": "4f85a8b89e988f09711327bf9289decfbcc45c32f99d1977f1fe09817b3f6d4d", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
3,167
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/AppleAccount.framework/AppleAccount */ @interface AASetupAssistantSetupDelegatesRequest : AARequest { ACAccount * _account; NSDictionary * setupParameters; AASigningSession * signingSession; } + (Class)responseClass; - (void).cxx...
31.36
14
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/AppleAccount.framework/AppleAccount\n */\n\n@interface AASetupAssistantSetupDelegatesRequest : AARequest {\n ACAccount * _account;\n NSDictionary * setupParameters;\n AASigningSession * signingSession;\n}\n\n+ (Clas...
107
8
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 31.36, "nodes": 65, "errors": 0, "source_hash": "09d2da2e60920992447344784fa1738b812053fc49a0a1089d7abee071e25983", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nu...
3,168
c
// // JWCNoReuseDemoVC.h // JWCTableViewController_Example // // Created by 鞠汶成 on 2018/9/25. // Copyright © 2018年 Juwencheng. All rights reserved. // #import <JWCTableViewController/JWCNoReuseViewController.h> @interface JWCNoReuseDemoVC : JWCNoReuseViewController @end
26.5
10
(translation_unit) "//\n// JWCNoReuseDemoVC.h\n// JWCTableViewController_Example\n//\n// Created by 鞠汶成 on 2018/9/25.\n// Copyright © 2018年 Juwencheng. All rights reserved.\n//\n\n#import <JWCTableViewController/JWCNoReuseViewController.h>\n\n@interface JWCNoReuseDemoVC : JWCNoReuseViewController\n\n@end\n" (comm...
22
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 26.5, "nodes": 12, "errors": 0, "source_hash": "fd8bb2ee403720e091ab852ca68d9805f7f131ee34f3cb05adf22582e1640958", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "JWCTableVie...
3,169
c
#ifndef __CLK_H__ #define __CLK_H__ void hdmi_clk_enable (void); void hdmi_ddc_clk_enable (void); void tcon_tv_clk_config (u32 rate); void de_clk_enable (void); void tcon_top_clk_enable (void); void hdmi_ddc_gpio_enable (void); #endif
25.11
9
(translation_unit) "#ifndef __CLK_H__\n#define __CLK_H__\n\nvoid hdmi_clk_enable (void);\nvoid hdmi_ddc_clk_enable (void);\nvoid tcon_tv_clk_config (u32 rate);\nvoid de_clk_enable (void);\nvoid tcon_top_clk_enable (void);\nvoid hdmi_ddc_gpio_enable (void);\n\n#endif\n" (preproc_ifdef) "#ifndef __CLK_H__\n#define __CL...
69
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 25.11, "nodes": 50, "errors": 0, "source_hash": "a1ad20d191c1a6a4a40e6f47d4573b92e085eb1a211231360bb1bb1ec674c234", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
3,170
c
// // WKWebView+ExtJSBridge.h // ExtJSBridge // // Created by hang_pan on 2020/8/13. // #import <WebKit/WebKit.h> #import "ExtJSWebViewBridge.h" NS_ASSUME_NONNULL_BEGIN @interface WKWebView (ExtJSBridge) @property (nonatomic, strong, readonly) ExtJSWebViewBridge *ext_bridge; - (void)ext_initializeBridge; @end ...
23
14
(translation_unit) "//\n// WKWebView+ExtJSBridge.h\n// ExtJSBridge\n//\n// Created by hang_pan on 2020/8/13.\n//\n\n#import <WebKit/WebKit.h>\n#import "ExtJSWebViewBridge.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface WKWebView (ExtJSBridge)\n\n@property (nonatomic, strong, readonly) ExtJSWebViewBridge *ext_bridge;\n\n...
57
8
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 23.0, "nodes": 38, "errors": 0, "source_hash": "8ed1a0acd89776c3e1826f2072a7809ef855aea234efad6083b8fe600cd808bc", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <W...
3,171
c
#ifndef __DrakeShapesGeometry_H__ #define __DrakeShapesGeometry_H__ #include <string> #include <Eigen/Dense> #include <Eigen/StdVector> #include "drakeShapesMacros.h" namespace DrakeShapes { enum DLLEXPORT_drakeShapes Shape { UNKNOWN = 0, BOX = 1, SPHERE = 2, CYLINDER = 3, ...
26.61
79
(translation_unit) "#ifndef __DrakeShapesGeometry_H__\n#define __DrakeShapesGeometry_H__\n\n#include <string>\n\n#include <Eigen/Dense>\n#include <Eigen/StdVector>\n\n#include "drakeShapesMacros.h"\n\nnamespace DrakeShapes\n{\n enum DLLEXPORT_drakeShapes Shape {\n UNKNOWN = 0,\n BOX = 1,\n SPHERE ...
631
44
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 26.61, "nodes": 357, "errors": 0, "source_hash": "a6e944fd1aaf43c0e3e059ded46a1c72b55d5cd85295a02231988278f136c843", "categorized_nodes": 233}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef __Drak...
3,172
c
#define _GNU_SOURCE #include "fork.h" #include "common.h" #include "exitcode.h" #include "noise.h" #include <fsdyn/integer.h> #include <fsdyn/list.h> #include <unixkit/unixkit.h> #include <errno.h> #include <fcntl.h> #include <paths.h> #include <sys/wait.h> #include <unistd.h> // Within this code, we have three se...
33.4
237
(translation_unit) "#define _GNU_SOURCE\n\n#include "fork.h"\n\n#include "common.h"\n#include "exitcode.h"\n#include "noise.h"\n\n#include <fsdyn/integer.h>\n#include <fsdyn/list.h>\n#include <unixkit/unixkit.h>\n\n#include <errno.h>\n#include <fcntl.h>\n#include <paths.h>\n#include <sys/wait.h>\n#include <unistd.h>\n\...
1,900
0
{"language": "c", "success": true, "metadata": {"lines": 237, "avg_line_length": 33.4, "nodes": 1060, "errors": 0, "source_hash": "27d6617ee87dee5bbe4ee15988a808278f7b82bdcbe4c7f31a63b16c561aa227", "categorized_nodes": 798}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
3,173
c
#ifndef __FOO_H__ #define __FOO_H__ #include <stdio.h> #include <stdlib.h> int miFoo(); int miBar(); #endif
14.43
7
(translation_unit) "#ifndef __FOO_H__\n#define __FOO_H__\n\n#include <stdio.h>\n#include <stdlib.h>\n\nint miFoo();\n\nint miBar();\n\n#endif" (preproc_ifdef) "#ifndef __FOO_H__\n#define __FOO_H__\n\n#include <stdio.h>\n#include <stdlib.h>\n\nint miFoo();\n\nint miBar();\n\n#endif" (#ifndef) "#ifndef" (identi...
30
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 14.43, "nodes": 23, "errors": 0, "source_hash": "616389b5fc4adf70d08c56933bb9420640c748b6489e6d5056412cb7d89e0552", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
3,174
c
#ifndef _DINTERR_H_ #define _DINTERR_H_ #include <unistd.h> #include <sys/time.h> /* struct timeval */ /* DinterR extra data */ typedef ssize_t dinterr_count_t; typedef long long dinterr_pos_t; typedef pid_t dinterr_pid_t; typedef struct timeval dinterr_ts_t; #endif // _DINTERR_H_
28.3
10
(translation_unit) "#ifndef _DINTERR_H_\n#define _DINTERR_H_\n\n#include <unistd.h>\n#include <sys/time.h> /* struct timeval */\n\n/* DinterR extra data */\ntypedef ssize_t dinterr_count_t;\ntypedef long long dinterr_pos_t;\ntypedef pid_t dinterr_pid_t;\ntypedef struct timeval dinterr_ts_t;\n\n#endif // _DIN...
41
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 28.3, "nodes": 33, "errors": 0, "source_hash": "0c9ed7d304fdd532607d3abe5884d18f50839eb55062a55b577d09fdd867619e", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
3,175
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* rb_push_front.c :+: :+: :+: ...
30.11
61
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* rb_push_front.c ...
445
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 30.11, "nodes": 272, "errors": 0, "source_hash": "a193637139839783defc8b5cd9f27d8bc3c9ccd0df933e795dea5d96874f289e", "categorized_nodes": 196}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,176
c
// // Created by laeri on 1/16/17. // #ifndef RER_TREE_RER_TREE_H #define RER_TREE_RER_TREE_H #include "rer_node.h" #include "Rectangle.h" class rer_tree { public: rer_tree(); rer_node *root; rer_node *findNearest(Point pos, std::vector<Rectangle> *rects); bool intersect_tree(Point from, Point to...
23.39
18
(translation_unit) "//\n// Created by laeri on 1/16/17.\n//\n\n#ifndef RER_TREE_RER_TREE_H\n#define RER_TREE_RER_TREE_H\n\n\n#include "rer_node.h"\n#include "Rectangle.h"\n\nclass rer_tree {\npublic:\n rer_tree();\n\n rer_node *root;\n\n rer_node *findNearest(Point pos, std::vector<Rectangle> *rects);\n\n b...
123
3
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 23.39, "nodes": 75, "errors": 0, "source_hash": "a92cce72fd2bfc978d247fbf1aac3fac74ebdedca080af13daf7b75e438fb421", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,177
c
/* endinconv.c -- Endian conversions utilities. */ #include <stdint.h> /* Toggle the 16 bit unsigned integer pointed by *p from little endian to * big endian */ void memrev16(void *p) { unsigned char *x = p, t; t = x[0]; x[0] = x[1]; x[1] = t; } /* Toggle the 32 bit unsigned integer pointed by *p from little e...
17.29
51
(translation_unit) "/* endinconv.c -- Endian conversions utilities. */\n\n\n#include <stdint.h>\n\n/* Toggle the 16 bit unsigned integer pointed by *p from little endian to\n* big endian */\nvoid memrev16(void *p) {\n unsigned char *x = p, t;\n\n t = x[0];\n x[0] = x[1];\n x[1] = t;\n}\n\n/* Toggle the 32 bit unsigned ...
411
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 17.29, "nodes": 251, "errors": 0, "source_hash": "56e6307b5aad40269078e948e940eaaaea2afa068bed5637671578eb57b6231c", "categorized_nodes": 185}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,178
c
#pragma once typedef struct NvGpu NvGpu; typedef struct { NvGpu* parent; Event event; bool has_init; } NvErrorNotifier; Result nvErrorNotifierCreate(NvErrorNotifier* t, NvGpu* parent); void nvErrorNotifierClose(NvErrorNotifier* t); Result nvErrorNotifierWait(NvErrorNotifier* t, u64 timeout); Result ...
33.18
11
(translation_unit) "#pragma once\n\ntypedef struct NvGpu NvGpu;\n\ntypedef struct {\n NvGpu* parent;\n Event event;\n bool has_init;\n} NvErrorNotifier;\n\nResult nvErrorNotifierCreate(NvErrorNotifier* t, NvGpu* parent);\nvoid nvErrorNotifierClose(NvErrorNotifier* t);\nResult nvErrorNotifierWait(NvErrorNo...
102
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 33.18, "nodes": 78, "errors": 0, "source_hash": "4d4eef826f4bac144587b2e52c1b6f2ec17b61c8b1d1c35bc415b12f85d70a18", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
3,179
c
#pragma once #include <cstddef> #include <Windows.h> namespace Gdi { class TitleBar { public: TitleBar(HWND hwnd); void drawAll(HDC dc) const; void drawButtons(HDC dc) const; void drawCaption(HDC dc) const; private: void drawButton(HDC dc, std::size_t tbiIndex, UINT dfcState) const; bool isVisible(...
19.48
25
(translation_unit) "#pragma once\n\n#include <cstddef>\n\n#include <Windows.h>\n\nnamespace Gdi\n{\n class TitleBar\n {\n public:\n TitleBar(HWND hwnd);\n\n void drawAll(HDC dc) const;\n void drawButtons(HDC dc) const;\n void drawCaption(HDC dc) const;\n\n private:\n void drawButton(HDC dc, std::size_t tbiIndex, U...
154
8
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 19.48, "nodes": 98, "errors": 0, "source_hash": "9c0b62beae76b744056e2fb8fd639dfe3b93441dc30ed7e26eab524caf51be9b", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
3,180
c
/*- * This file is provided under a dual BSD/LGPLv2 license. When using or * redistributing this file, you may do so under either license. * * GNU LESSER GENERAL PUBLIC LICENSE * * Copyright(c) 2010-2013 Intel Corporation. All rights reserved. * Copyright(c) 2014 Wind River Systems, Inc. All rights re...
31.93
151
(translation_unit) "/*-\n * This file is provided under a dual BSD/LGPLv2 license. When using or\n * redistributing this file, you may do so under either license.\n *\n * GNU LESSER GENERAL PUBLIC LICENSE\n *\n * Copyright(c) 2010-2013 Intel Corporation. All rights reserved.\n * Copyright(c) 2014 Wind River ...
648
0
{"language": "c", "success": true, "metadata": {"lines": 151, "avg_line_length": 31.93, "nodes": 438, "errors": 0, "source_hash": "3ae517c8a448dc44150f6019fc31281c329bdf6b6f3bae9062f580e8d07b1c72", "categorized_nodes": 305}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
3,181
c
#include <chisql/chisql.h> Literal_t *litInt(int i) { Literal_t *lval = (Literal_t *)calloc(1, sizeof(Literal_t)); lval->t = TYPE_INT; lval->val.ival = i; return lval; } Literal_t *litDouble(double d) { Literal_t *lval = (Literal_t *)calloc(1, sizeof(Literal_t)); lval->t = TYPE_DOUBLE; lv...
20.62
91
(translation_unit) "#include <chisql/chisql.h>\n\n\nLiteral_t *litInt(int i)\n{\n Literal_t *lval = (Literal_t *)calloc(1, sizeof(Literal_t));\n lval->t = TYPE_INT;\n lval->val.ival = i;\n return lval;\n}\n\nLiteral_t *litDouble(double d)\n{\n Literal_t *lval = (Literal_t *)calloc(1, sizeof(Literal_t));\...
747
0
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 20.62, "nodes": 453, "errors": 0, "source_hash": "dc4efddea5d2d8cd4a9ee87f77a0807c4edf1db8946c2b3f5a40460310ad3e2a", "categorized_nodes": 323}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,182
c
/* Copyright (c) 2008-2011 Xiph.Org Foundation, Mozilla Corporation, <NAME> Written by <NAME>, <NAME>, and <NAME> */ /* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributi...
25.73
253
(translation_unit) "/* Copyright (c) 2008-2011 Xiph.Org Foundation, Mozilla Corporation,\n <NAME>\n Written by <NAME>, <NAME>, and <NAME> */\n/*\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions\n a...
1,865
0
{"language": "c", "success": true, "metadata": {"lines": 253, "avg_line_length": 25.73, "nodes": 1194, "errors": 0, "source_hash": "c6b1cd92f1fed4ca3c2570f4f773ff5f7d46379e72dc0981cd201058eabcd16b", "categorized_nodes": 867}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifd...
3,183
c
/* * Copyright (C) 2017-2021 Intel Corporation * * SPDX-License-Identifier: MIT * */ #pragma once #include "shared/source/helpers/aligned_memory.h" #include "shared/source/helpers/debug_helpers.h" #include "shared/source/memory_manager/memory_manager.h" #include "shared/source/utilities/idlist.h" #include <atomi...
43.1
147
(translation_unit) "/*\n * Copyright (C) 2017-2021 Intel Corporation\n *\n * SPDX-License-Identifier: MIT\n *\n */\n\n#pragma once\n#include "shared/source/helpers/aligned_memory.h"\n#include "shared/source/helpers/debug_helpers.h"\n#include "shared/source/memory_manager/memory_manager.h"\n#include "shared/source/utili...
1,475
76
{"language": "c", "success": true, "metadata": {"lines": 147, "avg_line_length": 43.1, "nodes": 960, "errors": 0, "source_hash": "726028b20b31a030624963040edad5c99ca7ee4447f7186455781d3639089be7", "categorized_nodes": 586}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
3,184
c
#pragma once #include <string> // std::string namespace rn1 { enum class News { Info, Warn, Corr }; auto const amtOfNewsTypes = 3; using String = std::string; using NewsIndexType = int; String toString(News news); NewsIndexType toIndex(News news) noexcept; News toNews(NewsIndexType idx); String toString(N...
25.43
14
(translation_unit) "#pragma once\n#include <string> // std::string\n\nnamespace rn1 {\n enum class News {\n Info, Warn, Corr\n };\n\n auto const amtOfNewsTypes = 3;\n using String = std::string;\n using NewsIndexType = int;\n\n String toString(News news);\n NewsIndexType toIndex(News news) noexcept;\n News toNews(News...
117
4
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 25.43, "nodes": 76, "errors": 0, "source_hash": "cc2e102c68767087a2058f0be21b88ce562304635e12772cac1d7966d21a745f", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
3,185
c
// This code is part of the project "Theoretically Efficient Parallel Graph // Algorithms Can Be Fast and Scalable", presented at Symposium on Parallelism // in Algorithms and Architectures, 2018. // Copyright (c) 2018 <NAME>, <NAME>, and <NAME> // // Permission is hereby granted, free of charge, to any person obtainin...
36.01
77
(translation_unit) "// This code is part of the project "Theoretically Efficient Parallel Graph\n// Algorithms Can Be Fast and Scalable", presented at Symposium on Parallelism\n// in Algorithms and Architectures, 2018.\n// Copyright (c) 2018 <NAME>, <NAME>, and <NAME>\n//\n// Permission is hereby granted, free of charg...
694
35
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 36.01, "nodes": 396, "errors": 0, "source_hash": "fe9cf8f6e04083ae973b56f7a451916ee6a34d21e6b3131b90c19fece61b089c", "categorized_nodes": 274}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
3,186
c
#pragma once #include "deflate.h" DLL_EXPORT int test(void);
19.33
3
(translation_unit) "#pragma once\n#include "deflate.h"\n\nDLL_EXPORT int test(void);\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "deflate.h"\n" (#include) "#include" (string_literal) ""deflate.h"" (") """ (string_conte...
22
1
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 19.33, "nodes": 15, "errors": 0, "source_hash": "250166fd52dceec68d80bde92db09b8ab63a8e823403ae20f36b646213db38fe", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
3,187
c
#pragma once #include <SDL/SDL_mixer.h> #include <string> #include <map> namespace Bengine2 { class SoundEffect { public: friend class AudioEngine; //the change keyword allows AudioEngine to change private variables //plays the effect file //@param loops: If loops == -1, loop forever, otherwise play it loop...
23.89
47
(translation_unit) "#pragma once\n\n#include <SDL/SDL_mixer.h>\n#include <string>\n#include <map>\n\n\nnamespace Bengine2 {\n\n class SoundEffect {\n public:\n friend class AudioEngine; //the change keyword allows AudioEngine to change private variables\n //plays the effect file\n //@param loops: If loops == -1, loo...
304
11
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 23.89, "nodes": 178, "errors": 0, "source_hash": "9b535aec379402aca13efe935ad48891fb17892b6bd19c24851ab7aaa23d3eb6", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
3,188
c
#pragma once #include "General/Entity.h" #include "General/GameListener.h" class HealthPanel; class PlayField; class ScorePanel; class TopPanel : public Entity, public GameListener { public: TopPanel(); void Initialize(shared_ptr<PlayField> playfield); void Call(GameEvent event, shared_ptr<Entit...
24.68
96
(ERROR) "#pragma once \n \n#include "General/Entity.h" \n#include "General/GameListener.h" \n \nclass HealthPanel; \nclass PlayField; \nclass ScorePanel; \n \nclass TopPanel : public Entity, public GameListener \n{ \npublic: \n TopPanel(); \n \n void Initialize(shared_ptr<PlayField> playfield); \n \n void Call(GameEven...
734
49
{"language": "c", "success": true, "metadata": {"lines": 96, "avg_line_length": 24.68, "nodes": 400, "errors": 0, "source_hash": "48d46ecf9b42ac577c8e9e762ae9b3d8146ed608094414ef0526f2a14e8090c3", "categorized_nodes": 253}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#pragma once\r\n\r\n#incl...
3,189
c
#ifndef VpFileMapping_Linux_Interface #define VpFileMapping_Linux_Interface #include <sys/mman.h> #endif
25.25
4
(translation_unit) "#ifndef VpFileMapping_Linux_Interface\n#define VpFileMapping_Linux_Interface\n\n#include <sys/mman.h>\n\n#endif\n" (preproc_ifdef) "#ifndef VpFileMapping_Linux_Interface\n#define VpFileMapping_Linux_Interface\n\n#include <sys/mman.h>\n\n#endif" (#ifndef) "#ifndef" (identifier) "VpFileMappi...
11
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 25.25, "nodes": 10, "errors": 0, "source_hash": "ce10194a29cef8bdef0ddf0fea0371847e456bf12e371b6b767f145722eded4a", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef Vp...
3,190
c
#ifndef Rendering_IRenderTarget_H #define Rendering_IRenderTarget_H #include <Core/SmartPtr.h> struct ID3D11RenderTargetView; namespace sg { namespace rendering { //============================================================================= class ResolutionServer; //=====================================...
28.83
24
(translation_unit) "#ifndef Rendering_IRenderTarget_H \n#define Rendering_IRenderTarget_H \n \n#include <Core/SmartPtr.h> \n \nstruct ID3D11RenderTargetView; \n \nnamespace sg { \nnamespace rendering { \n//============================================================================= \nclass ResolutionServer; \n//======...
92
3
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 28.83, "nodes": 56, "errors": 0, "source_hash": "632ebe22872179185beca2dc8ceb7378a2fe0c80b2854131e091e0a821d69220", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,191
c
/* * Copyright (c) 2014-2016 DeNA Co., Ltd., <NAME>, Fastly, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights ...
31.71
282
(translation_unit) "/* \n * Copyright (c) 2014-2016 DeNA Co., Ltd., <NAME>, Fastly, Inc. \n * \n * Permission is hereby granted, free of charge, to any person obtaining a copy \n * of this software and associated documentation files (the "Software"), to \n * deal in the Software without restriction, including without l...
2,426
2
{"language": "c", "success": true, "metadata": {"lines": 282, "avg_line_length": 31.71, "nodes": 1610, "errors": 0, "source_hash": "1d1a9603974fc9b593521af011876f3f18e68dae77459f02f925e98fc62961cb", "categorized_nodes": 1142}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "struct_specifier", "text": "...
3,192
c
// Copyright 2015, University of Freiburg, // Chair of Algorithms and Data Structures. // Author: <NAME> (<EMAIL>) #pragma once #include <array> #include <fstream> #include <string> using std::array; using std::string; class TsvParser { public: explicit TsvParser(const string& tsvFile); ~TsvParser(); // Don't...
28.12
24
(translation_unit) "// Copyright 2015, University of Freiburg,\n// Chair of Algorithms and Data Structures.\n// Author: <NAME> (<EMAIL>)\n#pragma once\n\n#include <array>\n#include <fstream>\n#include <string>\n\nusing std::array;\nusing std::string;\n\nclass TsvParser {\n public:\n explicit TsvParser(const string& ts...
172
8
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 28.12, "nodes": 103, "errors": 0, "source_hash": "17a0bf17c1b4c7ccb754a5433a10c4c47a42903af669872f5ffb721fe0f2327e", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
3,193
c
#ifndef OXYGENDRAGON_SOLDER_DETECTION_MAIN_FUNCTIONS_H_ #define OXYGENDRAGON_SOLDER_DETECTION_MAIN_FUNCTIONS_H_ void setup(); void loop(); #endif // OXYGENDRAGON_SOLDER_DETECTION_MAIN_FUNCTIONS_H_
38.6
5
(translation_unit) "#ifndef OXYGENDRAGON_SOLDER_DETECTION_MAIN_FUNCTIONS_H_\n#define OXYGENDRAGON_SOLDER_DETECTION_MAIN_FUNCTIONS_H_\n\nvoid setup();\n\nvoid loop();\n\n#endif // OXYGENDRAGON_SOLDER_DETECTION_MAIN_FUNCTIONS_H_\n" (preproc_ifdef) "#ifndef OXYGENDRAGON_SOLDER_DETECTION_MAIN_FUNCTIONS_H_\n#define OXYGE...
25
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 38.6, "nodes": 17, "errors": 0, "source_hash": "1b357c6cb460586ce85c33e4faf28cd551948a67777fd1b88f54550c27ad2b7d", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef OX...
3,194
c
//===-- StringPrinter.h -----------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
45.62
109
(translation_unit) "//===-- StringPrinter.h -----------------------------------------*- C++ -*-===//\n//\n// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.\n// See https://llvm.org/LICENSE.txt for license information.\n// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception\n//\n//===-...
1,026
31
{"language": "c", "success": true, "metadata": {"lines": 109, "avg_line_length": 45.62, "nodes": 563, "errors": 0, "source_hash": "14081ec8aeef016b74e4301dc5f5093c568617f2105189a7802f7a8949ca77f3", "categorized_nodes": 366}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef LLDB_...
3,195
c
#pragma once #include "shader_program.h" namespace aiko { class StaticShader : public ShaderProgram { public: StaticShader(); ~StaticShader(); void bindAttributes(); }; }
16.58
12
(translation_unit) "#pragma once\n\n#include "shader_program.h"\n\nnamespace aiko\n{\n\n class StaticShader : public ShaderProgram\n {\n public:\n StaticShader();\n ~StaticShader();\n\n void bindAttributes();\n };\n\n}" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma"...
55
1
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 16.58, "nodes": 27, "errors": 0, "source_hash": "3e564e2061f9269f4a4094ecdf20f8528d3bb99ba45009b575c1f98777b21af7", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
3,196
c
/* * rcar_du_crtc.c -- R-Car Display Unit CRTCs * * Copyright (C) 2016 <NAME> * Copyright (C) 2016 Renesas Electronics Corporation * * Contact: <NAME> (<EMAIL>) * * 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 * t...
29.75
228
(translation_unit) "/*\n * rcar_du_crtc.c -- R-Car Display Unit CRTCs\n *\n * Copyright (C) 2016 <NAME>\n * Copyright (C) 2016 Renesas Electronics Corporation\n *\n * Contact: <NAME> (<EMAIL>)\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public...
1,926
1
{"language": "c", "success": true, "metadata": {"lines": 228, "avg_line_length": 29.75, "nodes": 1148, "errors": 0, "source_hash": "fe24fd39b8f95a0f53461d27efe6bebace4fcebec8fe5171a158246bbfb3eeed", "categorized_nodes": 892}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
3,197
c
#ifndef ADD_BUDDY_WINDOW_H #define ADD_BUDDY_WINDOW_H #include <interface/OptionPopUp.h> #include <interface/StringView.h> #include <interface/TextControl.h> #include <interface/View.h> #include <interface/Window.h> class AddBuddyWindow : public BWindow { public: static AddBuddyWindow *Instance(BRect frame); ...
27.08
24
(translation_unit) "#ifndef ADD_BUDDY_WINDOW_H\n#define ADD_BUDDY_WINDOW_H\n\n#include <interface/OptionPopUp.h>\n#include <interface/StringView.h>\n#include <interface/TextControl.h>\n#include <interface/View.h>\n#include <interface/Window.h>\n\nclass AddBuddyWindow : public BWindow {\npublic:\n static AddBuddyWindow ...
141
2
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 27.08, "nodes": 97, "errors": 0, "source_hash": "4bca36b42cbe31295f7718651da7bff23e6e9b413268ee5acd13c94c628f3b1d", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,198
c
/*! * Copyright (c) 2019 by Contributors * \file graph/bipartite.h * \brief Bipartite graph */ #ifndef DGL_GRAPH_BIPARTITE_H_ #define DGL_GRAPH_BIPARTITE_H_ #include <dgl/graph_interface.h> #include <dgl/base_heterograph.h> #include <vector> #include <string> #include <utility> #include <memory> namespace dgl {...
42.86
122
(translation_unit) "/*!\n * Copyright (c) 2019 by Contributors\n * \file graph/bipartite.h\n * \brief Bipartite graph\n */\n\n#ifndef DGL_GRAPH_BIPARTITE_H_\n#define DGL_GRAPH_BIPARTITE_H_\n\n#include <dgl/graph_interface.h>\n#include <dgl/base_heterograph.h>\n#include <vector>\n#include <string>\n#include <utility>\n...
1,091
52
{"language": "c", "success": true, "metadata": {"lines": 122, "avg_line_length": 42.86, "nodes": 676, "errors": 0, "source_hash": "c8818537c175baab3dd8f78df702d3bd76290168a479616bfdf4ce52a3660bd3", "categorized_nodes": 514}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
3,199