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
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/CameraKit.framework/CameraKit */ @interface CMKVideoCaptureRequest : CMKCaptureRequest <NSCopying, NSMutableCopying> { long long _captureDevice; long long _deviceOrientation; long long _torchMode; } @property (nonatomic, readon...
35.72
18
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/CameraKit.framework/CameraKit\n */\n\n@interface CMKVideoCaptureRequest : CMKCaptureRequest <NSCopying, NSMutableCopying> {\n long long _captureDevice;\n long long _deviceOrientation;\n long long _torchMode;\n}\n...
182
15
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 35.72, "nodes": 121, "errors": 0, "source_hash": "82b8c14e1c13a464d04ce6859608bbaf219fd69f8f256e51ab3b4182d3c1c056", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface CMKV...
11,000
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" #import "NSMenuDelegate.h" @class NSMenu, NSMutableDictionary, NSString, NSTimer, Watchdog; __attribute__((visibility("hidden"))) @interface DebugUtilities : NSObj...
32.08
65
(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#import "NSMenuDelegate.h"\n\n@class NSMenu, NSMutableDictionary, NSString, NSTimer, Watchdog;\n\n__attribute__((visibility("hidden")))\n...
654
32
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 32.08, "nodes": 393, "errors": 0, "source_hash": "6466978787094dcd9ee02444b6f093ad9f89bcc192b0e50233598b49134273fb", "categorized_nodes": 232}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
11,001
c
#ifndef TITLE_H_ #define TITLE_H_ #include "ConsoleColor.h" #include "Quoted.h" struct Title { std::string str; Title(); Title(const std::string& Str); bool read_quoted_from(std::istream &is); Title& operator=(const std::string& Str); }; //outputs title (quoted if it contains spaces) std::ostream& operator<<...
29
21
(translation_unit) "#ifndef TITLE_H_\n#define TITLE_H_\n\n#include "ConsoleColor.h"\n#include "Quoted.h"\n\nstruct Title\n{\n std::string str;\n\n Title();\n Title(const std::string& Str);\n\n bool read_quoted_from(std::istream &is);\n\n Title& operator=(const std::string& Str);\n};\n\n//outputs title (quoted if it con...
198
16
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 29.0, "nodes": 107, "errors": 0, "source_hash": "43d2f310917f620b1d91e6db9c5118d59525a09e63a4b582db0cc8c227d5b914", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,002
c
#include <stdio.h> int main(void) { int stu, numOfThing; int ban[10000] = {0}; scanf("%d %d", &stu, &numOfThing); char name[stu][5]; int ban_thing = 0; int ban_stu = 0; for (int i = 0; i < numOfThing; i++) { int cur; scanf("%d", &cur); ban[cur] = 1; } for (in...
25.49
35
(translation_unit) "#include <stdio.h>\n\nint main(void) {\n int stu, numOfThing;\n int ban[10000] = {0};\n scanf("%d %d", &stu, &numOfThing);\n char name[stu][5];\n int ban_thing = 0;\n int ban_stu = 0;\n for (int i = 0; i < numOfThing; i++) {\n int cur;\n scanf("%d", &cur);\n ...
369
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 25.49, "nodes": 207, "errors": 0, "source_hash": "12c68fb7677e630d6fc6e5ace5d1ddf6fc3bf2744749181b93e0036bab3c883b", "categorized_nodes": 146}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,003
c
/* * HelpPage.h * * Created on: Jun 7, 2015 * Author: lingnan */ #ifndef HELPPAGE_H_ #define HELPPAGE_H_ #include <bb/cascades/NavigationPane> #include <PushablePage.h> namespace bb { namespace cascades { class Label; class Header; class Option; class ScrollView; ...
29.79
66
(translation_unit) "/*\n * HelpPage.h\n *\n * Created on: Jun 7, 2015\n * Author: lingnan\n */\n\n#ifndef HELPPAGE_H_\n#define HELPPAGE_H_\n\n#include <bb/cascades/NavigationPane>\n#include <PushablePage.h>\n\nnamespace bb {\n namespace cascades {\n class Label;\n class Header;\n class Opt...
619
60
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 29.79, "nodes": 353, "errors": 0, "source_hash": "593f16f053baf216a6441be2dbcb2b267b222054922e5530d96b41f9cb9208f8", "categorized_nodes": 225}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,004
c
#include <stdio.h> void judul(){ printf("--------------------------------------------------\n"); printf("| NAMA : <NAME> |\n"); printf("| NPM : 19081010075 |\n"); printf("| MATA KULIAH : PEMROGRAMAN DASAR |\n"); printf("--------------------------------------------------\n"); printf("Selamat Data...
21.76
135
(translation_unit) "#include <stdio.h> \nvoid judul(){ \n printf("--------------------------------------------------\n"); \n printf("| NAMA : <NAME> |\n"); \n printf("| NPM : 19081010075 |\n"); \n printf("| MATA KULIAH : PEMROGRAMAN DASAR |\n"); \n printf("--------------------------------------------------\n...
1,533
0
{"language": "c", "success": true, "metadata": {"lines": 135, "avg_line_length": 21.76, "nodes": 802, "errors": 0, "source_hash": "7109b492216cab3c0a6b4773d1e263c3f0fa50274e1cef6424607dc51de67ada", "categorized_nodes": 585}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
11,005
c
#include <r_reg.h> void show_regs(struct r_reg_t *reg, int bitsize) { RList *reglist; RListIter *iter; RRegItem *ri; printf("%d bit registers:\n", bitsize); reglist = r_reg_get_list(reg, bitsize==1? R_REG_TYPE_FLG: R_REG_TYPE_GPR); r_list_foreach (reglist, iter, ri) { if (ri->size == bitsize) printf(" - %...
26.83
106
(translation_unit) "#include <r_reg.h>\n\nvoid show_regs(struct r_reg_t *reg, int bitsize) {\n RList *reglist;\n RListIter *iter;\n RRegItem *ri;\n printf("%d bit registers:\n", bitsize);\n reglist = r_reg_get_list(reg, bitsize==1?\n R_REG_TYPE_FLG: R_REG_TYPE_GPR);\n r_list_foreach (reglist, iter, ri) {\n if (ri->si...
1,273
0
{"language": "c", "success": true, "metadata": {"lines": 106, "avg_line_length": 26.83, "nodes": 643, "errors": 0, "source_hash": "54b722be73760f93a86f514ddd337e215ab7a43b61fa3dc1477fa39fd71c149f", "categorized_nodes": 475}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
11,006
c
#ifndef __ActionDemos_h__ #define __ActionDemos_h__ #if ANDROID #include <jni.h> #endif #include "common.h" #ifdef __cplusplus extern "C" { #endif DEMO_ENTRY(action, AnimationTest); DEMO_ENTRY(action, AtlasAnimationTest); DEMO_ENTRY(action, BezierTest); DEMO_ENTRY(action, BlinkTest); DEMO_ENTRY(action, CallFuncTest...
27.43
44
(translation_unit) "#ifndef __ActionDemos_h__\n#define __ActionDemos_h__\n\n#if ANDROID\n #include <jni.h>\n#endif\n#include "common.h"\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\nDEMO_ENTRY(action, AnimationTest);\nDEMO_ENTRY(action, AtlasAnimationTest);\nDEMO_ENTRY(action, BezierTest);\nDEMO_ENTRY(action, BlinkTes...
351
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 27.43, "nodes": 186, "errors": 0, "source_hash": "1f5a65a3315e5d1bfb4e7f8b4c37da5737f2d9803558e84fe1b69b58fd932992", "categorized_nodes": 150}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,007
c
#include "Arduino.h" #ifndef QDPRobotQDPPlayerMini_cpp #define QDPRobotQDPPlayerMini_cpp #define QDPPLAYER_EQ_NORMAL 0 #define QDPPLAYER_EQ_POP 1 #define QDPPLAYER_EQ_ROCK 2 #define QDPPLAYER_EQ_JAZZ 3 #define QDPPLAYER_EQ_CLASSIC 4 #define QDPPLAYER_EQ_BASS 5 #define QDPPLAYER_DEVICE_U_DISK 1 #define QDPPLAYER...
19.66
168
(translation_unit) "#include "Arduino.h"\n\n#ifndef QDPRobotQDPPlayerMini_cpp\n #define QDPRobotQDPPlayerMini_cpp\n\n\n#define QDPPLAYER_EQ_NORMAL 0\n#define QDPPLAYER_EQ_POP 1\n#define QDPPLAYER_EQ_ROCK 2\n#define QDPPLAYER_EQ_JAZZ 3\n#define QDPPLAYER_EQ_CLASSIC 4\n#define QDPPLAYER_EQ_BASS 5\n\n#define QDPPLAYER_...
868
5
{"language": "c", "success": true, "metadata": {"lines": 168, "avg_line_length": 19.66, "nodes": 636, "errors": 0, "source_hash": "25a5244ecc23657810ead4c1d084f6b9212e71dc0683ffa5b43d180f0a1f3e3a", "categorized_nodes": 332}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
11,008
c
/** * \file SmartDeviceLinkRawMessage.h * \brief SmartDeviceLinkRawMessage class header file. * * Copyright (c) 2013, Ford Motor Company * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redist...
34.66
103
(translation_unit) "/**\n* \file SmartDeviceLinkRawMessage.h\n* \brief SmartDeviceLinkRawMessage class header file.\n* \n* Copyright (c) 2013, Ford Motor Company\n* All rights reserved.\n*\n* Redistribution and use in source and binary forms, with or without\n* modification, are permitted provided that the following co...
148
8
{"language": "c", "success": true, "metadata": {"lines": 103, "avg_line_length": 34.66, "nodes": 87, "errors": 0, "source_hash": "5110c1a48eb67df601352e5cb56d8e620b9817eab16ab1897777cc0f205fffdc", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
11,009
c
// Oscillator.h // ofxPDSP // <NAME>, MIT License, 2016 #ifndef PDSP_OSC_OSCILLATOR_H_INCLUDED #define PDSP_OSC_OSCILLATOR_H_INCLUDED #include "../../pdspCore.h" namespace pdsp{ /*! @brief Abstract class to implement oscillators This is a abstract class to rapresent oscillators, wi...
29.55
77
(translation_unit) "// Oscillator.h \n// ofxPDSP \n// <NAME>, MIT License, 2016 \n \n \n#ifndef PDSP_OSC_OSCILLATOR_H_INCLUDED \n#define PDSP_OSC_OSCILLATOR_H_INCLUDED \n \n#include "../../pdspCore.h" \n \nnamespace pdsp{ \n \n /*! \n @brief Abstract class to implement oscillators \n \n This is a abstract c...
205
9
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 29.55, "nodes": 120, "errors": 0, "source_hash": "8f3ff0cad3999fdbb11321518b5f859d478ea844d1de1ad93314aa4abb93ce09", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
11,010
c
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * arch/arm/include/asm/hardware/vic.h * * Copyright (c) ARM Limited 2003. All rights reserved. */ #ifndef __ASM_ARM_HARDWARE_VIC_H #define __ASM_ARM_HARDWARE_VIC_H #include <linux/types.h> #define VIC_RAW_STATUS 0x08 #define VIC_INT_ENABLE 0x10 /* 1 = enab...
36.85
20
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0-or-later */\n/*\n * arch/arm/include/asm/hardware/vic.h\n *\n * Copyright (c) ARM Limited 2003. All rights reserved.\n */\n#ifndef __ASM_ARM_HARDWARE_VIC_H\n#define __ASM_ARM_HARDWARE_VIC_H\n\n#include <linux/types.h>\n\n#define VIC_RAW_STATUS 0x08\n#define V...
131
3
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 36.85, "nodes": 105, "errors": 0, "source_hash": "763f9278247caa4619e14f80d3b55304fcf803752fb6f7cf0a089afb086d6bf0", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
11,011
c
// REQUIRES: x86_64-linux // RUN: clang -o %t %s -O2 // RUN: llvm-mctoll -d %t // RUN: clang -o %t1 %t-dis.ll // RUN: %t1 2>&1 | FileCheck %s // CHECK: Test passed #include <stdio.h> #include <stdlib.h> typedef struct list_head_s { struct list_head_s *next; } list_head; __attribute__((noinline)) list_head *core_li...
23.77
48
(translation_unit) "// REQUIRES: x86_64-linux\n// RUN: clang -o %t %s -O2\n// RUN: llvm-mctoll -d %t\n// RUN: clang -o %t1 %t-dis.ll\n// RUN: %t1 2>&1 | FileCheck %s\n// CHECK: Test passed\n\n#include <stdio.h>\n#include <stdlib.h>\n\ntypedef struct list_head_s {\n struct list_head_s *next;\n} list_head;\n\n__attribut...
429
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 23.77, "nodes": 267, "errors": 0, "source_hash": "76ead03962f9a55076a2f826cfc7c6de2665d5ef9fcf9322afa697c5ac61e1d9", "categorized_nodes": 174}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,012
c
/* * AliFemtoPPbpbLamBaseParticle.h * * Created on: Aug 29, 2017 * Author: gu74req */ #ifndef ALIFEMTODREAMBASEPART_H_ #define ALIFEMTODREAMBASEPART_H_ #include "AliAODTrack.h" #include "AliAODMCParticle.h" #include "AliMCEvent.h" #include "AliAODEvent.h" #include "Rtypes.h" #include "TVector3.h" #include "...
20.41
300
(translation_unit) "/*\n * AliFemtoPPbpbLamBaseParticle.h\n *\n * Created on: Aug 29, 2017\n * Author: gu74req\n */\n\n#ifndef ALIFEMTODREAMBASEPART_H_\n#define ALIFEMTODREAMBASEPART_H_\n#include "AliAODTrack.h"\n#include "AliAODMCParticle.h"\n#include "AliMCEvent.h"\n#include "AliAODEvent.h"\n#include "Rtypes.h"...
1,939
53
{"language": "c", "success": true, "metadata": {"lines": 300, "avg_line_length": 20.41, "nodes": 1088, "errors": 0, "source_hash": "d2765306fa5310e077ec8a63e7091c298c2c0c59c4a37576c79a9462f82cea66", "categorized_nodes": 729}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
11,013
c
#ifndef LIBTENSOR_BTOD_SYMMETRIZE3_TEST_H #define LIBTENSOR_BTOD_SYMMETRIZE3_TEST_H #include <libtest/unit_test.h> namespace libtensor { /** \brief Tests the libtensor::btod_symmetrize3 class \ingroup libtensor_tests_btod **/ class btod_symmetrize3_test : public libtest::unit_test { public: virtual void pe...
23.72
25
(translation_unit) "#ifndef LIBTENSOR_BTOD_SYMMETRIZE3_TEST_H\n#define LIBTENSOR_BTOD_SYMMETRIZE3_TEST_H\n\n#include <libtest/unit_test.h>\n\nnamespace libtensor {\n\n/** \brief Tests the libtensor::btod_symmetrize3 class\n\n \ingroup libtensor_tests_btod\n **/\nclass btod_symmetrize3_test : public libtest::unit_tes...
139
2
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 23.72, "nodes": 82, "errors": 0, "source_hash": "972fa3b6b35db0ed000129d22bf6e3533ce585edec1276ff7dc9f2390efdbb09", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,014
c
/* ** drawer.c for tetris in /home/thibrex/Dropbox/delivery/PSU/PSU_2016_tetris ** ** Made by <NAME> ** Login <<EMAIL>> ** ** Started on Wed Mar 1 10:02:59 2017 <NAME> ** Last update Wed Mar 1 10:05:21 2017 <NAME> */ #include <ncurses.h> void create_box(int pos_x, int pos_y, int x, int y) { int i; int j...
22.35
52
(translation_unit) "/*\n** drawer.c for tetris in /home/thibrex/Dropbox/delivery/PSU/PSU_2016_tetris\n** \n** Made by <NAME>\n** Login <<EMAIL>>\n** \n** Started on Wed Mar 1 10:02:59 2017 <NAME>\n** Last update Wed Mar 1 10:05:21 2017 <NAME>\n*/\n\n#include <ncurses.h>\n\nvoid create_box(int pos_x, int pos_y, in...
487
0
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 22.35, "nodes": 303, "errors": 0, "source_hash": "c8972e481faf5ed1473c8f9665326b87fa0efcc7c67bc9197e46df167537a955", "categorized_nodes": 221}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,015
c
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- #ifndef __javax_realtime_SizeEstimator__ #define __javax_realtime_SizeEstimator__ #pragma interface #include <java/lang/Object.h> extern "Java" { namespace javax { namespace realtime { class SizeEstimator; } } }; class ::javax::...
27.43
35
(translation_unit) "// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-\n\n#ifndef __javax_realtime_SizeEstimator__\n#define __javax_realtime_SizeEstimator__\n\n#pragma interface\n\n#include <java/lang/Object.h>\n\nextern "Java"\n{\n namespace javax\n {\n namespace realtime\n {\n class SizeEstim...
307
21
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 27.43, "nodes": 153, "errors": 0, "source_hash": "3f8aff880e2fad03fb2cc49b61832344a1fe69df7b57f6ee2b84f760997fd4d8", "categorized_nodes": 96}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
11,016
c
/* // @(#) libioctl.c - intercept ioctl requests // // Here we edit the return values from the system call // alternatively we could alter the parameters before // the system call or even both. */ # define _GNU_SOURCE # include <dlfcn.h> # include <sys/ioctl.h> # include <stdarg.h> # include <string.h> # include <st...
28.75
28
(translation_unit) "/*\n// @(#) libioctl.c - intercept ioctl requests \n//\n// Here we edit the return values from the system call\n// alternatively we could alter the parameters before\n// the system call or even both.\n*/\n# define _GNU_SOURCE\n# include <dlfcn.h>\n\n# include <sys/ioctl.h>\n\n# include <stdarg.h>\n#...
218
1
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 28.75, "nodes": 134, "errors": 0, "source_hash": "70f53fda2b54b2fa01010647d6be0e2571d910890e6677159fc11ac0689825ad", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "# define\...
11,017
c
/* Copyright 2016 <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed ...
43.08
75
(translation_unit) "/*\nCopyright 2016 <NAME>\n\nLicensed under the Apache License, Version 2.0 (the "License");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in w...
294
0
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 43.08, "nodes": 197, "errors": 0, "source_hash": "d3863a88d29a759b1bafa5a9956e3e7a08c5491c7cdeb74a226c3bfcce60888c", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
11,018
c
/* * @author <NAME>, IUPUI * @date 2017 */ #ifndef UTILITY_H #define UTILITY_H #ifdef __cplusplus extern "C" { #endif #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <unistd.h> #include <sys/wait.h> #include <sys/time.h> #include <pthread.h> #include <math.h> #include <string.h> #include <un...
22.37
81
(translation_unit) "/*\n * @author <NAME>, IUPUI\n * @date 2017\n */\n\n#ifndef UTILITY_H\n#define UTILITY_H\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <stdint.h>\n#include <unistd.h>\n#include <sys/wait.h>\n#include <sys/time.h>\n#include <pthread.h>\n#include <m...
469
0
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 22.37, "nodes": 334, "errors": 0, "source_hash": "76eb600ec069201c72eabcabd03a77df062e0c0b521f2268f310376d2713d952", "categorized_nodes": 232}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,019
c
// // ViewController.h // ExampleProject // // Created by <NAME> on 05.04.16. // Copyright © 2016 Uploadcare. All rights reserved. // #import <UIKit/UIKit.h> @protocol LogDelegateProtocol <NSObject> - (void)didReceiveLogMessage:(NSString *)logMessage; @end @interface ViewController : UIViewController @propert...
25.64
14
(translation_unit) "//\n// ViewController.h\n// ExampleProject\n//\n// Created by <NAME> on 05.04.16.\n// Copyright © 2016 Uploadcare. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@protocol LogDelegateProtocol <NSObject>\n\n- (void)didReceiveLogMessage:(NSString *)logMessage;\n\n@end\n\n@interface ViewCon...
71
12
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 25.64, "nodes": 48, "errors": 0, "source_hash": "edda842e91b2dcb053cf383be19d2f9324889f5c287887d89a205c22d98e6f83", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
11,020
c
using namespace std; #include "enum.h" #ifndef INCLUDED_DISPERSION #define INCLUDED_DISPERSION class Dispersion { private: double* dispersion; public: Dispersion(DispersionType, double, CutoffType); ~Dispersion(); double Get(int, int, int); // Returns energy associated with momenta specifies by th...
27.93
15
(translation_unit) "using namespace std;\n#include "enum.h"\n\n#ifndef INCLUDED_DISPERSION\n#define INCLUDED_DISPERSION\nclass Dispersion\n{\n private:\n double* dispersion;\n\n public:\n Dispersion(DispersionType, double, CutoffType);\n ~Dispersion();\n double Get(int, int, int); // Returns energy associ...
89
1
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 27.93, "nodes": 53, "errors": 0, "source_hash": "ef287d8c98baae00d8931b677f1257e30499bc3665ea9e1e9297341861f1425a", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "using name...
11,021
c
/*/ GICHT Copyright (c) 2013, <NAME> <<EMAIL>>. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of condition...
37.69
58
(translation_unit) "/*/ GICHT\n\nCopyright (c) 2013, <NAME> <<EMAIL>>.\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n * Redistributions of source code must retain the above copyright notice,\...
142
0
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 37.69, "nodes": 101, "errors": 0, "source_hash": "c7e5619c04ec4b3bf4a4fa05a023774f272f47af116a549b80e58dfce48f1e73", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
11,022
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "UIButton.h" @class PhoneItemInfo; @interface PhoneBtn : UIButton { PhoneItemInfo *phontItem; } @property(retain, nonatomic) PhoneItemInfo *phontItem; // @synthesize phontI...
23.93
14
(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 "UIButton.h"\n\n@class PhoneItemInfo;\n\n@interface PhoneBtn : UIButton\n{\n PhoneItemInfo *phontItem;\n}\n\n@property(retain, nonatomic) PhoneItemInf...
68
10
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 23.93, "nodes": 39, "errors": 0, "source_hash": "e704f9c0d774f63bca89290f73fd74c1f16372f4cee032dfd3e8cd8c972bb3c8", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
11,023
c
#ifndef _SQUID_SRC_AUTH_NEGOTIATE_USERREQUEST_H #define _SQUID_SRC_AUTH_NEGOTIATE_USERREQUEST_H #include "auth/UserRequest.h" #include "MemPool.h" class ConnStateData; class HttpReply; class HttpRequest; class helper_stateful_server; namespace Auth { namespace Negotiate { /// \ingroup AuthNegotiateAPI class UserReq...
34.52
46
(translation_unit) "#ifndef _SQUID_SRC_AUTH_NEGOTIATE_USERREQUEST_H\n#define _SQUID_SRC_AUTH_NEGOTIATE_USERREQUEST_H\n\n#include "auth/UserRequest.h"\n#include "MemPool.h"\n\nclass ConnStateData;\nclass HttpReply;\nclass HttpRequest;\nclass helper_stateful_server;\n\nnamespace Auth\n{\nnamespace Negotiate\n{\n\n/// \in...
287
18
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 34.52, "nodes": 178, "errors": 0, "source_hash": "5a15e0ab1bc24b48bff3357458c1461d9e21274a2ec999724c9cb7f958a65a7c", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,024
c
#ifndef DataFormats_RPCDigi_DataRecord_H #define DataFormats_RPCDigi_DataRecord_H #include <boost/cstdint.hpp> #include <string> #include <bitset> #include <sstream> namespace rpcrawtodigi { class DataRecord { public: typedef uint16_t Data; enum DataRecordType { None = 0, StartOfBXData = 1, ...
24.51
39
(translation_unit) "#ifndef DataFormats_RPCDigi_DataRecord_H\n#define DataFormats_RPCDigi_DataRecord_H\n\n#include <boost/cstdint.hpp>\n#include <string>\n#include <bitset>\n#include <sstream>\n\nnamespace rpcrawtodigi {\n class DataRecord {\n public:\n typedef uint16_t Data;\n enum DataRecordType {\n None...
273
14
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 24.51, "nodes": 162, "errors": 0, "source_hash": "f193dfc8a22efc2ec3508ba771c426673469c9053838d98f88b350a68228bc39", "categorized_nodes": 124}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,025
c
/** * \file * System.Environment support internal calls * * Authors: * <NAME> (<EMAIL>) * <NAME> (<EMAIL>) * * Copyright 2002-2003 Ximian, Inc (http://www.ximian.com) * Copyright 2004-2009 Novell, Inc (http://www.novell.com) * Licensed under the MIT license. See LICENSE file in the project root for full licen...
28.16
99
(translation_unit) "/**\n * \file\n * System.Environment support internal calls\n *\n * Authors:\n * <NAME> (<EMAIL>)\n * <NAME> (<EMAIL>)\n *\n * Copyright 2002-2003 Ximian, Inc (http://www.ximian.com)\n * Copyright 2004-2009 Novell, Inc (http://www.novell.com)\n * Licensed under the MIT license. See LICENSE file in t...
519
0
{"language": "c", "success": true, "metadata": {"lines": 99, "avg_line_length": 28.16, "nodes": 317, "errors": 0, "source_hash": "55ac0b59b20a87fb696eb5da0e4224a3b3a809de7ed8d5627333286f10d72cca", "categorized_nodes": 236}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,026
c
/**************************************************************************** ****************************************************************************/ #ifndef _UI_USB_PICTURE_H_ #define _UI_USB_PICTURE_H_ #include "ui_common.h" /*coordinates*/ #define MP_MENU_X (SCREEN_WIDTH - MP_MENU_W)/2 #define MP_MENU_Y ...
32.91
249
(translation_unit) "/****************************************************************************\n\n ****************************************************************************/\n#ifndef _UI_USB_PICTURE_H_\n#define _UI_USB_PICTURE_H_\n\n#include "ui_common.h"\n\n/*coordinates*/\n#define MP_MENU_X (SCREEN_WIDTH - MP_...
905
0
{"language": "c", "success": true, "metadata": {"lines": 249, "avg_line_length": 32.91, "nodes": 863, "errors": 0, "source_hash": "9186cdf810b00835db52704720f73b9cafdd6bc98f1f0cc3f9309b4679ed0a11", "categorized_nodes": 233}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
11,027
c
#include <stdio.h> int a[11]; int dp[10][10][1<<10]; int ans; void solve(int n) { ans = 0; int head, p, h, l; int nl, nh, np; int ok, sa; for (head = 0 ; head < n ; head++) { memset(dp, 0, sizeof(dp[0][0][0]) * 100 * (1<<10)); dp[head][head][1<<head] = 1; for (p = 0 ; p < (1<<n) ; p++) { ...
20.38
66
(translation_unit) "#include <stdio.h>\n\nint a[11];\nint dp[10][10][1<<10];\nint ans;\n\nvoid solve(int n) {\n ans = 0;\n int head, p, h, l;\n int nl, nh, np;\n int ok, sa;\n\n for (head = 0 ; head < n ; head++) {\n memset(dp, 0, sizeof(dp[0][0][0]) * 100 * (1<<10));\n dp[head][head][1<<head] = 1;\n for ...
719
0
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 20.38, "nodes": 424, "errors": 0, "source_hash": "e09738a59401effa39536a99ff2381216d4ffd1f17f3af4d07a0516e0c531121", "categorized_nodes": 322}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,028
c
// -*- c++ -*- // // <NAME> <<EMAIL>> // parasim // (c) 1998-2021 all rights reserved // code guard #if !defined(ampcor_viz_Uniform1D_h) #define ampcor_viz_Uniform1D_h // a uniform 1D interpolator template <class iteratorT> class ampcor::viz::Uniform1D { // types public: // my template parameter using so...
27.84
67
(translation_unit) "// -*- c++ -*-\n//\n// <NAME> <<EMAIL>>\n// parasim\n// (c) 1998-2021 all rights reserved\n\n// code guard\n#if !defined(ampcor_viz_Uniform1D_h)\n#define ampcor_viz_Uniform1D_h\n\n\n// a uniform 1D interpolator\ntemplate <class iteratorT>\nclass ampcor::viz::Uniform1D {\n // types\npublic:\n /...
326
19
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 27.84, "nodes": 201, "errors": 0, "source_hash": "1ee236c6e51eee21ecd9eb7e2eb4d41d1d9d698ecaf33466fdfecca9b269e8f9", "categorized_nodes": 119}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defi...
11,029
c
// // DJAudioDownloadManager.h // DJVideoGenerateDemo // // Created by Tommy on 2019/4/10. // Copyright © 2019年 Tommy. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface DJAudioDownloadManager : NSObject -(void)downloadWithUrlString:(NSString *)urlString finish:(void(^)...
29.46
13
(translation_unit) "//\n// DJAudioDownloadManager.h\n// DJVideoGenerateDemo\n//\n// Created by Tommy on 2019/4/10.\n// Copyright © 2019年 Tommy. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface DJAudioDownloadManager : NSObject\n\n-(void)downloadWithUrlString:(NS...
79
6
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 29.46, "nodes": 51, "errors": 0, "source_hash": "d31fa072ab5152226ad9ca839f6023fcd99df26e9310b344eeab5e1f7aed4483", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
11,030
c
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. * * This source code is licensed under the license found in the * LICENSE file in the root directory of this source tree. */ #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN /** The error domain for all errors from FBSDKLo...
38.58
67
(translation_unit) "/*\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n * All rights reserved.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n/**\n The error d...
161
5
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 38.58, "nodes": 94, "errors": 0, "source_hash": "6f85c3684365f91eeee2409c07b4426227baa0f08ff1dc2f51ef767f94730f3f", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
11,031
c
/** * Relatório 8 - INE5416/2017.2 * <NAME> * 16100735 */ #include <stdio.h> #include <stdlib.h> #include <math.h> #define size(x) (sizeof(x)/sizeof((x)[0]))+1 /** Parte 1 - Vetores */ float norma(const float* vetor) { float soma = 0; int size1 = size(vetor); for (int i = 0; i < size1; ++i) soma += v...
24.85
169
(translation_unit) "/**\n * Relatório 8 - INE5416/2017.2\n * <NAME>\n * 16100735\n */\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n#define size(x) (sizeof(x)/sizeof((x)[0]))+1 \n\n/** \n Parte 1 - Vetores\n */\n\nfloat norma(const float* vetor) {\n float soma = 0;\n int size1 = size(vetor);\n for (...
2,272
0
{"language": "c", "success": true, "metadata": {"lines": 169, "avg_line_length": 24.85, "nodes": 1178, "errors": 0, "source_hash": "1e68cb88a29d9e129e9b8ea4b0d5d3846fb00eb39bc752871f648316758bc982", "categorized_nodes": 729}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "in...
11,032
c
#include <avr/io.h> #include <avr/sfr_defs.h> #define F_CPU 8000000UL #define BAUD 250000UL #include <util/setbaud.h> #define CHIP_SIZE 0x40000 const char cmd_clear = 'c'; const char cmd_write = 'w'; const char cmd_dump = 'd'; const char* error_str = "error"; const char* cmd_str = "eepeepcmd"; #define SREG_CLK_DI...
29.42
248
(translation_unit) "#include <avr/io.h>\n#include <avr/sfr_defs.h>\n\n#define F_CPU 8000000UL\n#define BAUD 250000UL\n#include <util/setbaud.h>\n\n#define CHIP_SIZE 0x40000\n\nconst char cmd_clear = 'c';\nconst char cmd_write = 'w';\nconst char cmd_dump = 'd';\nconst char* error_str = "error";\nconst char* cmd_str = ...
1,713
0
{"language": "c", "success": true, "metadata": {"lines": 248, "avg_line_length": 29.42, "nodes": 1040, "errors": 0, "source_hash": "5f8e411a7c02e1a1376a086017658956e6892a5e84d879944618c0e3998e18d6", "categorized_nodes": 663}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
11,033
c
// // SentryGlobalEventProcessor.h // Sentry // // Created by <NAME> on 22.01.20. // Copyright © 2020 Sentry. All rights reserved. // #if __has_include(<Sentry/Sentry.h>) #import <Sentry/SentryEvent.h> #else #import "SentryEvent.h" #endif typedef SentryEvent *__nullable (^SentryEventProcessor)(SentryEvent *_Nonnu...
28.1
21
(translation_unit) "//\n// SentryGlobalEventProcessor.h\n// Sentry\n//\n// Created by <NAME> on 22.01.20.\n// Copyright © 2020 Sentry. All rights reserved.\n//\n\n#if __has_include(<Sentry/Sentry.h>)\n#import <Sentry/SentryEvent.h>\n#else\n#import "SentryEvent.h"\n#endif\n\ntypedef SentryEvent *__nullable (^SentryE...
128
12
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 28.1, "nodes": 88, "errors": 0, "source_hash": "d54b223551095df0ee69bb1153fca2fd555df2eb46b2efc4cab17c185cebe56b", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "if __has_include(...
11,034
c
/*++ Copyright (c) 2011 Microsoft Corporation Module Name: purify_arith_tactic.h Abstract: Tactic for eliminating arithmetic operators: DIV, IDIV, MOD, TO_INT, and optionally (OP_IRRATIONAL_ALGEBRAIC_NUM). This tactic uses the simplifier for also eliminating: OP_SUB, OP_UMINUS, OP_POWER (option...
40.73
45
(translation_unit) "/*++\nCopyright (c) 2011 Microsoft Corporation\n\nModule Name:\n\n purify_arith_tactic.h\n\nAbstract:\n\n Tactic for eliminating arithmetic operators: DIV, IDIV, MOD,\n TO_INT, and optionally (OP_IRRATIONAL_ALGEBRAIC_NUM).\n\n This tactic uses the simplifier for also eliminating:\n OP...
52
1
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 40.73, "nodes": 31, "errors": 0, "source_hash": "3ad936aa07fabfad5875376439ba62f8639d1f522833da229846600932e7dbc5", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,035
c
/* * @Author: <NAME> * @Date: 2019-02-17 18:02:01 * @Last Modified by: <NAME> * @Last Modified time: 2019-02-17 18:39:37 */ /* * 程序设计题 * * 此程序中,请编写函数'fun'其功能是: 移动一维数组中的内容,若数组中有'n'个整数,要求把下标从'0 ~ p'(包含'p',p <= n-1) * 的数组元素平移到数组的最后. */ #include <stdio.h> #include <stdlib.h> #define N 15 /* * Declare the m...
20.63
63
(translation_unit) "/*\n * @Author: <NAME> \n * @Date: 2019-02-17 18:02:01 \n * @Last Modified by: <NAME>\n * @Last Modified time: 2019-02-17 18:39:37\n */\n\n/*\n * 程序设计题\n * \n * 此程序中,请编写函数'fun'其功能是: 移动一维数组中的内容,若数组中有'n'个整数,要求把下标从'0 ~ p'(包含'p',p <= n-1)\n * 的数组元素平移到数组的最后.\n */\n\n#include <stdio.h>\n#include <stdlib.h...
394
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 20.63, "nodes": 208, "errors": 0, "source_hash": "80eff9c112c8e7284038028b794b6d744326440be3b3ebfb86aa0e37344fb38e", "categorized_nodes": 149}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": " p, ...
11,036
c
/** * @file <argos3/plugins/robots/builderbot/hardware/builderbot_lift_system_default_sensor.h> * * @author <NAME> - <<EMAIL>> */ #ifndef BUILDERBOT_LIFT_SYSTEM_DEFAULT_SENSOR_H #define BUILDERBOT_LIFT_SYSTEM_DEFAULT_SENSOR_H namespace argos { class CBuilderBotLiftSystemDefaultSensor; } struct iio_device; str...
32.31
39
(translation_unit) "/**\n * @file <argos3/plugins/robots/builderbot/hardware/builderbot_lift_system_default_sensor.h>\n *\n * @author <NAME> - <<EMAIL>>\n */\n\n#ifndef BUILDERBOT_LIFT_SYSTEM_DEFAULT_SENSOR_H\n#define BUILDERBOT_LIFT_SYSTEM_DEFAULT_SENSOR_H\n\nnamespace argos {\n class CBuilderBotLiftSystemDefaultSen...
193
7
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 32.31, "nodes": 126, "errors": 0, "source_hash": "2d604a174ab0b3f6014bfed54219a47729414d5a3b291d59f88fd0a043de081a", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
11,037
c
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBLAYER_COMMON_FEATURES_H_ #define WEBLAYER_COMMON_FEATURES_H_ #include "base/feature_list.h" namespace weblayer { namespace features { // Web...
36.92
13
(translation_unit) "// Copyright 2019 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef WEBLAYER_COMMON_FEATURES_H_\n#define WEBLAYER_COMMON_FEATURES_H_\n\n#include "base/feature_list.h"\n\nnamespace weblayer {...
45
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 36.92, "nodes": 23, "errors": 0, "source_hash": "8cf2301910ea9492c2e6a61495c69e14f50c288a17a06bf6d76d62ac4cbb3b5c", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,038
c
/* Show size of various things */ #include <limits.h> #include <stdio.h> #include <stdlib.h> #include <inttypes.h> #define long int64_t int main(void) { printf("short %lu bytes\n", sizeof (short int)); printf("int %lu bytes\n", sizeof (int)); printf("long %lu bytes\n", sizeof (long)); ...
32.88
17
(translation_unit) "/* Show size of various things */\n\n#include <limits.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <inttypes.h>\n#define long int64_t\n\nint main(void) {\n printf("short %lu bytes\n", sizeof (short int));\n printf("int %lu bytes\n", sizeof (int));\n printf("long %lu ...
183
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 32.88, "nodes": 91, "errors": 0, "source_hash": "68bb1dd33480f42aa47828bc9ae605f8cd3046f025539ca6cbd3994039713917", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
11,039
c
#import <UIKit/UIKit.h> #import "RootViewController.h" @interface certremaintimeApplication: UIApplication <UIApplicationDelegate> @property (nonatomic, retain) UIWindow *window; @end
35.8
5
(translation_unit) "#import <UIKit/UIKit.h>\n\n#import "RootViewController.h"\n\n@interface certremaintimeApplication: UIApplication <UIApplicationDelegate>\n\n@property (nonatomic, retain) UIWindow *window;\n\n@end" (preproc_call) "#import <UIKit/UIKit.h>\n" (preproc_directive) "#import" (preproc_arg) "<UIKi...
35
6
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 35.8, "nodes": 28, "errors": 0, "source_hash": "cab0f224fa7a23cee520d2c5c4bf18d8b6ff23be85b303a14d0310f80388e1fe", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UI...
11,040
c
#pragma once #include "ofMain.h" #include "waveformDraw.h" #include "ofxSoundPlayerObject.h" #include "ofxGui.h" #include "VUMeter.h" class ofApp : public ofBaseApp{ public: void setup(); void update(); void draw(); void exit(); void keyPressed (int key); void keyReleased(int key); void mouseMoved(int x...
27.44
73
(translation_unit) "#pragma once\n\n#include "ofMain.h"\n\n#include "waveformDraw.h"\n\n#include "ofxSoundPlayerObject.h"\n#include "ofxGui.h"\n#include "VUMeter.h"\n\nclass ofApp : public ofBaseApp{\n\npublic:\n void setup();\n void update();\n void draw();\n void exit();\n void keyPressed (int key);\n void keyRel...
668
23
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 27.44, "nodes": 410, "errors": 0, "source_hash": "0b842548893539db2cb271960e24de60f08ddf0288733efd87f0c40627abcb70", "categorized_nodes": 295}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
11,041
c
// // PPSimNumberRecognizerResult.h // BlinkIdFramework // // Created by Admin on 23/02/2017. // Copyright © 2017 MicroBlink Ltd. All rights reserved. // #import "PPRecognizerResult.h" /** * Result of scanning with SimNumber Recognizer */ PP_CLASS_AVAILABLE_IOS(6.0) @interface PPSimNumberRecognizerResult : PPRe...
23.39
18
(translation_unit) "//\n// PPSimNumberRecognizerResult.h\n// BlinkIdFramework\n//\n// Created by Admin on 23/02/2017.\n// Copyright © 2017 MicroBlink Ltd. All rights reserved.\n//\n\n#import "PPRecognizerResult.h"\n\n/**\n * Result of scanning with SimNumber Recognizer\n */\nPP_CLASS_AVAILABLE_IOS(6.0)\n@interface ...
55
6
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 23.39, "nodes": 33, "errors": 0, "source_hash": "71135bdba30622e6ff943ec415f17526e513255cd4f194a1c8dd407fb6297b65", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"...
11,042
c
/* * Copyright (c) 2021, <NAME> <<EMAIL>> * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include <Kernel/Arch/x86/PageDirectory.h> #include <Kernel/Multiboot.h> #include <Kernel/PhysicalAddress.h> #include <Kernel/VirtualAddress.h> extern "C" PhysicalAddress start_of_prekernel_image; extern "C" Physi...
35.39
36
(translation_unit) "/*\n * Copyright (c) 2021, <NAME> <<EMAIL>>\n *\n * SPDX-License-Identifier: BSD-2-Clause\n */\n\n#pragma once\n\n#include <Kernel/Arch/x86/PageDirectory.h>\n#include <Kernel/Multiboot.h>\n#include <Kernel/PhysicalAddress.h>\n#include <Kernel/VirtualAddress.h>\n\nextern "C" PhysicalAddress start_of_...
281
1
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 35.39, "nodes": 177, "errors": 0, "source_hash": "dbfad3a11024b8f771b8c210533f0411b0246f4624c8572a8e676834a5035443", "categorized_nodes": 136}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
11,043
c
#import "MOBProjection.h" @interface MOBProjectionEPSG26855 : MOBProjection @end
26
3
(translation_unit) "#import "MOBProjection.h"\n\n@interface MOBProjectionEPSG26855 : MOBProjection\n\n@end\n" (preproc_call) "#import "MOBProjection.h"\n" (preproc_directive) "#import" (preproc_arg) ""MOBProjection.h"" (ERROR) "@interface MOBProjectionEPSG26855 : MOBProjection\n\n@end" (ERROR) "@" (...
12
3
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 26.0, "nodes": 9, "errors": 0, "source_hash": "c133d0e16902d1c714568ed18aa3fe9f36586b5c89fb6b98b0f6b2db80dd8123", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"MOB...
11,044
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import "WALoadingViewController.h" @class MFTitleView, MMProgressViewEx, MMUIButton, UIImageView; @interface WASimulatedNativeImageLoading...
32
29
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.\n//\n\n#import "WALoadingViewController.h"\n\n@class MFTitleView, MMProgressViewEx, MMUIButton, UIImageView;\n\n@interface...
229
12
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 32.0, "nodes": 141, "errors": 0, "source_hash": "1be65ebb6e173c77ea90c6e1ea0de6ec8a6da2d78761b201fa8f85b985d0cc42", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
11,045
c
#ifndef BANK_TRANSACTION_MARKER_H #define BANK_TRANSACTION_MARKER_H enum BankTransactionMarker { PURCHASE, REFUND }; #endif // BANK_TRANSACTION_MARKER_H
22
7
(translation_unit) "#ifndef BANK_TRANSACTION_MARKER_H\n#define BANK_TRANSACTION_MARKER_H\n\nenum BankTransactionMarker {\n PURCHASE,\n REFUND\n};\n\n#endif // BANK_TRANSACTION_MARKER_H\n" (preproc_ifdef) "#ifndef BANK_TRANSACTION_MARKER_H\n#define BANK_TRANSACTION_MARKER_H\n\nenum BankTransactionMarker {\n P...
21
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 22.0, "nodes": 15, "errors": 0, "source_hash": "7c001a40dcf77b6dceeb15251d464557b9d4cfa26432e327e090099ea90ff99f", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef BA...
11,046
c
#ifndef BELIEF_H #define BELIEF_H //References// //-----------// #include "SDR.h" #include "Stamp.h" #include "Truth.h" //Data structure// //--------------// typedef struct { SDR sdr; SDR_HASH_TYPE sdr_hash; Truth truth; Stamp stamp; long occurrenceTimeOffset; } Implication; //...
17.12
25
(translation_unit) "#ifndef BELIEF_H \n#define BELIEF_H \n \n//References// \n//-----------// \n#include "SDR.h" \n#include "Stamp.h" \n#include "Truth.h" \n \n//Data structure// \n//--------------// \ntypedef struct { \n SDR sdr; \n SDR_HASH_TYPE sdr_hash; \n Truth truth; \n Stamp stamp; \n long occurre...
80
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 17.12, "nodes": 50, "errors": 0, "source_hash": "1a65f99cc5224d5b837015d1a430ea5629e03e2f1870a4719ff978b713bb5fa5", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,047
c
// Copyright 2019 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
42.38
40
(translation_unit) "// Copyright 2019 Google LLC\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// https://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by ap...
177
8
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 42.38, "nodes": 85, "errors": 0, "source_hash": "8829b82ed7836e58db171b9f058b895127c0c095199191da8849e1d5f8a538c4", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,048
c
#include <stdio.h> #include <stdlib.h> typedef struct { void *data; struct List *next; }List; void insert(List **, void *, unsigned int); void print(List *); //pointer to function still not supported on parser /*, void (*)(void *)*/ void printstr(void *); void insert(List **p, void *data, unsigned int...
18.5
38
(translation_unit) "#include <stdio.h>\n\n#include <stdlib.h>\n\n\n\ntypedef struct\n\n{\n\n void *data;\n\n struct List *next;\n\n}List;\n\nvoid insert(List **, void *, unsigned int);\n\nvoid print(List *); //pointer to function still not supported on parser /*, void (*)(void *)*/\n\nvoid printstr(void *);\n\nvoid...
281
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 18.5, "nodes": 190, "errors": 0, "source_hash": "8aabc693e869390ccd0c335a608a33777a02ee6fdc93e4e95cf68b09e932cba6", "categorized_nodes": 118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
11,049
c
#pragma once #ifndef __THREAT_RESPONSE_EVENT_H__ #define __THREAT_RESPONSE_EVENT_H__ class ThreatResponseEventCallbacks { public: static void AddCallbacks(); }; #endif __THREAT_RESPONSE_EVENT_H__
18.8
10
(translation_unit) "#pragma once\n#ifndef __THREAT_RESPONSE_EVENT_H__\n#define __THREAT_RESPONSE_EVENT_H__\n\n\nclass ThreatResponseEventCallbacks\n{\npublic:\n static void AddCallbacks();\n};\n\n#endif __THREAT_RESPONSE_EVENT_H__\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) ...
35
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 18.8, "nodes": 19, "errors": 0, "source_hash": "4d67d70489b189592edf5c092ec3733abb5f5613390f9a64de119ce18545d87b", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
11,050
c
/****************************** File Header ***********************************\ * File Name: int_stack.c * Author: <NAME> * Description: Quiz - Implementation of a INT stack's data structure functions. * Date: 29/03/2021 * Version: 2.0 \******************************************************************************/ ...
28.56
73
(translation_unit) "/****************************** File Header ***********************************\\n* File Name: int_stack.c\n* Author: <NAME>\n* Description: Quiz - Implementation of a INT stack's data structure functions.\n* Date: 29/03/2021\n* Version: 2.0\n\******************************************************...
400
0
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 28.56, "nodes": 230, "errors": 0, "source_hash": "a3f2dee65f1e2bd2afdfea28d71d068185c158bb57c464c88e12f2cc292bfbb9", "categorized_nodes": 155}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,051
c
#ifndef _TESTER_TRASH_H #define _TESTER_TRASH_H #include <glib.h> #include <gio/gio.h> #include "trash_item.h" #include "utils.h" /** * The offset to the beginning of the line containing the * restore path. */ #define TRASH_INFO_PATH_OFFSET 13 /** * The offset from the beginning of a line to the start of * the ...
30.43
70
(translation_unit) "#ifndef _TESTER_TRASH_H\n#define _TESTER_TRASH_H\n\n#include <glib.h>\n#include <gio/gio.h>\n#include "trash_item.h"\n#include "utils.h"\n\n/**\n * The offset to the beginning of the line containing the\n * restore path.\n */\n#define TRASH_INFO_PATH_OFFSET 13\n\n/**\n * The offset from the beginnin...
223
0
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 30.43, "nodes": 162, "errors": 0, "source_hash": "4e2b83e5dcee747cff9673e2e2ee7efe924c11a934e15e2024b763e3c6e1f7f1", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
11,052
c
// // HomeCollectionCell.h // DiscuzQ // // Created by WebersonGao on 2019/11/20. // Copyright © 2019 WebersonGao. All rights reserved. // #import "DZBaseCollectionCell.h" @interface HomeCollectionCell : DZBaseCollectionCell @property (nonatomic, strong, readonly) DZQCateModel *cellModel; //!< <#属性注释#> -(void)...
30.08
12
(translation_unit) "//\n// HomeCollectionCell.h\n// DiscuzQ\n//\n// Created by WebersonGao on 2019/11/20.\n// Copyright © 2019 WebersonGao. All rights reserved.\n//\n\n#import "DZBaseCollectionCell.h"\n\n@interface HomeCollectionCell : DZBaseCollectionCell\n\n@property (nonatomic, strong, readonly) DZQCateModel *ce...
57
8
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 30.08, "nodes": 35, "errors": 0, "source_hash": "4efa249ac841f33843caa33304e6182f08a1dff083578dfad4a436f58738d72c", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"...
11,053
c
// // INSTaskTableManager.h // ChameleonFramework // // Created by <NAME> on 2021/1/28. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @class INSTaskModel; @class INSTomatoConfiguration; //@class INSTaskTableConfiguration; // 任务表的增删改查,单例模式。APP仅维护一份内存数据,结合INSTaskTablePersistence进行持久化。 // task表以字典的形...
34.56
45
(translation_unit) "//\n// INSTaskTableManager.h\n// ChameleonFramework\n//\n// Created by <NAME> on 2021/1/28.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@class INSTaskModel;\n@class INSTomatoConfiguration;\n//@class INSTaskTableConfiguration;\n\n// 任务表的增删改查,单例模式。APP仅维护一份内存数据,结合INSTaskTa...
340
40
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 34.56, "nodes": 216, "errors": 0, "source_hash": "39fa5ceab6df9c46a042730e83251236c6a195cf744ce49414a01f15dd89a69f", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
11,054
c
#include "sfc_famicom.h" #include "sfc_cpu.h" #include <stdio.h> void sfc_log_exec(void* arg, sfc_famicom_t* famicom) { static int line = 0; line++; char buf[SFC_DISASSEMBLY_BUF_LEN2]; const uint16_t pc = famicom->registers.program_counter; sfc_fc_disassembly(pc, famicom, buf); printf( ...
29.05
42
(translation_unit) "nclude "sfc_famicom.h"\n#include "sfc_cpu.h"\n#include <stdio.h>\n\n\nvoid sfc_log_exec(void* arg, sfc_famicom_t* famicom) {\n static int line = 0;\n line++;\n char buf[SFC_DISASSEMBLY_BUF_LEN2];\n const uint16_t pc = famicom->registers.program_counter;\n sfc_fc_disassembly(pc, famico...
334
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 29.05, "nodes": 199, "errors": 0, "source_hash": "9a89e32b9347028ca5afebf97dbe5ee84e1ac37629764f8629a474f118301047", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "nclu...
11,055
c
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <float.h> #include "NURBS.h" #include "mex.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { /* Return the NURBS basis functions and first derivatives to matlab // All non-zero basis functions and derivatives at point ...
26.92
153
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n#include <float.h>\n#include "NURBS.h"\n#include "mex.h"\n\n\nvoid mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])\n{\n /* Return the NURBS basis functions and first derivatives to matlab\n // All non-zero basis func...
1,287
0
{"language": "c", "success": true, "metadata": {"lines": 153, "avg_line_length": 26.92, "nodes": 881, "errors": 0, "source_hash": "334bcf8156c61ddd9b6af60a8d0783ffee8e7b61361b67d171afed03b01ffce3", "categorized_nodes": 598}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
11,056
c
// // HQR_typedef.h // vCode // // Created by ruitaocc on 15/6/6. // Copyright (c) 2015年 ruitaocc. All rights reserved. // #ifndef vCode_HQR_typedef_h #define vCode_HQR_typedef_h typedef enum _HQR_type{ HQR_Unknown = 0, HQR_Url, HQR_Weichat, HQR_Qr2vCode,//qr code 2 v code HQR_Text, HQR_On...
19.88
25
(translation_unit) "//\n// HQR_typedef.h\n// vCode\n//\n// Created by ruitaocc on 15/6/6.\n// Copyright (c) 2015年 ruitaocc. All rights reserved.\n//\n\n#ifndef vCode_HQR_typedef_h\n#define vCode_HQR_typedef_h\n\ntypedef enum _HQR_type{\n HQR_Unknown = 0,\n HQR_Url,\n HQR_Weichat,\n HQR_Qr2vCode,//qr cod...
69
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 19.88, "nodes": 45, "errors": 0, "source_hash": "29b25cb796e05c195670b7e19a99dcd3e76a852e1dd146e5365935f060cbfbe4", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef vC...
11,057
c
#include <stdio.h> #include <stdlib.h> #include "string.h" String *build() { char temp; int size = 0; String * build_str = (String *) malloc (sizeof(String)); build_str -> start = (char *) malloc (sizeof(char)); temp = getchar(); while (temp != '\n') { *((build_str->start)+size) = tem...
26.55
20
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include "string.h"\n\nString *build() {\n char temp;\n int size = 0;\n\n String * build_str = (String *) malloc (sizeof(String));\n build_str -> start = (char *) malloc (sizeof(char));\n temp = getchar();\n\n while (temp != '\n') {\n ...
230
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 26.55, "nodes": 148, "errors": 0, "source_hash": "2f63a6fdb386b513d0845228cbfe8e5a459ea908e7d95af20d718248df765b56", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
11,058
c
#pragma once // This file is taken from the CommsFramework project enum Key { A = 4, B = 5, C = 6, D = 7, E = 8, F = 9, G = 10, H = 11, I = 12, J = 13, K = 14, L = 15, M = 16, N = 17, O = 18, P = 19, Q = 20, R = 21, S = 22, T = 23, U...
18.25
136
(translation_unit) "#pragma once\n\n// This file is taken from the CommsFramework project\n\nenum Key\n{\n\n A = 4,\n B = 5,\n C = 6,\n D = 7,\n E = 8,\n F = 9,\n G = 10,\n H = 11,\n I = 12,\n J = 13,\n K = 14,\n L = 15,\n M = 16,\n N = 17,\n O = 18,\n P = 19,\n Q = 20...
547
0
{"language": "c", "success": true, "metadata": {"lines": 136, "avg_line_length": 18.25, "nodes": 411, "errors": 0, "source_hash": "141553fd2de5497021539d5e67a844c24fee89d9fee8740bc1ee9f17c19b4d9f", "categorized_nodes": 308}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
11,059
c
#ifndef AUTOMATO_H_INCLUDED #define AUTOMATO_H_INCLUDED typedef struct transicao{ char *conjunto; int proximoEstado; struct transicao *proxima; struct transicao *anterior; }Transicao; typedef struct estado{ int id; int final; Transicao *primeira; Transicao *ultima; int numTransico...
26.08
39
(translation_unit) "#ifndef AUTOMATO_H_INCLUDED\n#define AUTOMATO_H_INCLUDED\n\n\ntypedef struct transicao{\n char *conjunto;\n int proximoEstado;\n struct transicao *proxima;\n struct transicao *anterior;\n}Transicao;\n\ntypedef struct estado{\n int id;\n int final;\n Transicao *primeira;\n Tra...
262
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 26.08, "nodes": 200, "errors": 0, "source_hash": "4ee2db8f8454f5da3baf0834064749497a127ac9aa6b75392ead8e023dbf956c", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,060
c
/* * Copyright 2021 BaiQiang * * Use of this source code is governed by a MIT license that can be * found in the LICENSE file. */ #pragma once #include <vector> #include <string> #include <cmath> #include <climits> struct FlexLine { int mLeft = INT_MAX; int mTop = INT_MAX; int mRight = INT_MIN; ...
32.67
103
(translation_unit) "/*\n * Copyright 2021 BaiQiang\n *\n * Use of this source code is governed by a MIT license that can be\n * found in the LICENSE file.\n */\n\n#pragma once\n\n#include <vector>\n#include <string>\n#include <cmath>\n#include <climits>\n\nstruct FlexLine {\n\n int mLeft = INT_MAX;\n\n int mTop =...
279
28
{"language": "c", "success": true, "metadata": {"lines": 103, "avg_line_length": 32.67, "nodes": 176, "errors": 0, "source_hash": "46eb63eee38943d0e2dc494f31d96110482ddff054106c68534e9b553e455ef7", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
11,061
c
/* This code is part of the MCJoin project. Authored by <NAME> (<EMAIL>) as part of my PhD candidature. La Trobe University, Melbourne, Australia. */ #pragma once #include "CFlipFlopBuffer.h" #include "CPackedPartitionMemory.h" #include "Timer.h" #include <vector> #include "SMetrics.h" using namespa...
27.18
352
(translation_unit) "/* \n This code is part of the MCJoin project. \n Authored by <NAME> (<EMAIL>) as part of my PhD candidature. \n La Trobe University, \n Melbourne, Australia. \n*/ \n#pragma once \n \n#include "CFlipFlopBuffer.h" \n#include "CPackedPartitionMemory.h" \n#include "Timer.h" \n#include <vector> \n#inclu...
2,075
33
{"language": "c", "success": true, "metadata": {"lines": 352, "avg_line_length": 27.18, "nodes": 1265, "errors": 0, "source_hash": "ee5c90220fbc7743a885716067bf91b59c0cd2063a85320616a4e69838548888", "categorized_nodes": 968}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#prag...
11,062
c
#pragma once #include <string> #include <sstream> #include <set> #include <tchar.h> using namespace std; typedef basic_string<_TCHAR> tstring; typedef basic_stringstream<_TCHAR> tstringstream; string toansi(tstring s); tstring tocurenc(string s); tstring tstrlower(const _TCHAR *s); tstring tstrprint...
32.9
29
(translation_unit) "#pragma once \n \n#include <string> \n#include <sstream> \n#include <set> \n#include <tchar.h> \n \nusing namespace std; \n \ntypedef basic_string<_TCHAR> tstring; \ntypedef basic_stringstream<_TCHAR> tstringstream; \n \nstring toansi(tstring s); \ntstring tocurenc(string s); \ntstring tstrlower(co...
286
4
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 32.9, "nodes": 217, "errors": 0, "source_hash": "e06e2b2ff238d25bf9ebbeef3000535510930be456698ec097b44e2445256d07", "categorized_nodes": 168}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
11,063
c
/* crc.h declares a module that calculates cyclic redundancy checksums over * arbitrary sequences of bytes. * * written nml 2004-08-26 * */ #ifndef CRC_H #define CRC_H #include <zstdint.h> struct crc; /* create a new CRC object */ struct crc *crc_new(); /* reinitialise the CRC object, to restart the checksumm...
29.62
21
(translation_unit) "/* crc.h declares a module that calculates cyclic redundancy checksums over\n * arbitrary sequences of bytes.\n *\n * written nml 2004-08-26\n *\n */\n\n#ifndef CRC_H\n#define CRC_H\n\n#include <zstdint.h>\n\nstruct crc;\n\n/* create a new CRC object */\nstruct crc *crc_new();\n\n/* reinitialise the...
107
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 29.62, "nodes": 80, "errors": 0, "source_hash": "9ee1777635d98217ddd63318d3b5193a4f239d6c728804631523d8c0bc043cd3", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,064
c
#ifndef BOARD_CONFIG_H #define BOARD_CONFIG_H /* * 板级配置选择 */ #define CONFIG_BOARD_AC637N_DEMO // #define CONFIG_BOARD_AC6376F_DEMO // #define CONFIG_BOARD_AC6373B_MOUSE // #define CONFIG_BOARD_AC6379B_MOUSE // #define CONFIG_BOARD_AC6379B_KEYFOB // #define CONFIG_BOARD_AC6376F_MOUSE #include "board_ac637n_demo_cf...
27.56
18
(translation_unit) "#ifndef BOARD_CONFIG_H\n#define BOARD_CONFIG_H\n\n/*\n * 板级配置选择\n */\n\n#define CONFIG_BOARD_AC637N_DEMO\n// #define CONFIG_BOARD_AC6376F_DEMO\n// #define CONFIG_BOARD_AC6373B_MOUSE\n// #define CONFIG_BOARD_AC6379B_MOUSE\n// #define CONFIG_BOARD_AC6379B_KEYFOB\n// #define CONFIG_BOARD_AC6376F_MOUSE...
53
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 27.56, "nodes": 28, "errors": 0, "source_hash": "f9e83c0e57c15e6d4187b444e5699f1ae4b1afe8b6e9bf94cd3ce06397e07536", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,065
c
#ifndef TIMER_H #define TIMER_H #include <chrono> #include <string> #include <ostream> #include <iostream> #include <vector> #include <stack> #include <stdexcept> /** @brief A simple timer * * The timer will record a timing event with the start time when tic() is * called. A subsequent call to toc() will record ...
31.88
106
(translation_unit) "#ifndef TIMER_H\n#define TIMER_H\n\n#include <chrono>\n#include <string>\n#include <ostream>\n#include <iostream>\n#include <vector>\n#include <stack>\n#include <stdexcept>\n\n/** @brief A simple timer\n *\n * The timer will record a timing event with the start time when tic() is\n * called. A sub...
818
42
{"language": "c", "success": true, "metadata": {"lines": 106, "avg_line_length": 31.88, "nodes": 480, "errors": 0, "source_hash": "754db18ae9c33a2de26fd57bb1791209f69eab7bb73f739c07c1244bcf229eaf", "categorized_nodes": 331}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
11,066
c
#include <sys/sem.h> void setsembuf(struct sembuf *s, int num, int op, int flg) { s->sem_num = (short)num; s->sem_op = (short)op; s->sem_flg = (short)flg; return; }
21.38
8
(translation_unit) "#include <sys/sem.h>\n \nvoid setsembuf(struct sembuf *s, int num, int op, int flg) {\n s->sem_num = (short)num;\n s->sem_op = (short)op;\n s->sem_flg = (short)flg;\n return;\n}\n" (preproc_include) "#include <sys/sem.h>\n" (#include) "#include" (system_lib_string) "<sys/sem.h>" ...
81
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 21.38, "nodes": 55, "errors": 0, "source_hash": "8b52cd6cda463141db709faf65b17ac4e2a51a2b78a032a8fe978eaee871817f", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
11,067
c
/*************************************************************************/ /* File : CKTargetLight.h */ /* Author : <NAME> */ /* */ /* Virtools SDK */ /* Copyright (c) Virtools 2000, All Rights Reserved. */ /***********************************************...
37.26
42
(translation_unit) "/*************************************************************************/\n/* File : CKTargetLight.h */\n/* Author : <NAME> */\n/* */\n/* Virtools SDK */\n/* Copyright (c) Virtools 2000, All Rights Reserved. */\n/*********************...
82
2
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 37.26, "nodes": 44, "errors": 0, "source_hash": "16363f07c78a13c58a099216695a171ff01d58d00be684bb91bf56046850afb7", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,068
c
#pragma once #include <vector> #include "Mon.h" #include "../Items.h" //make all the values private!!!! class Trainer: public Combatant { //game gets more challenging as floors rise int floors; //coins to be spent at shops int trainer_coins; public: Trainer(const char* _name, int att, int def, int...
23.59
63
(translation_unit) "#pragma once \n#include <vector> \n#include "Mon.h" \n#include "../Items.h" \n \n//make all the values private!!!! \nclass Trainer: public Combatant \n{ \n \n //game gets more challenging as floors rise \n int floors; \n //coins to be spent at shops \n int trainer_coins; \npublic: \n Trainer(const ...
403
9
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 23.59, "nodes": 254, "errors": 0, "source_hash": "06cdb420b0193e7addce9ffb7dc726109d0b51c0aedf6ddfed032e18db949436", "categorized_nodes": 146}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
11,069
c
#include <stdio.h> #include <stdlib.h> #include <malloc.h> void shellcomb(int* massiv , int n){ int buff; int max; int indexmax; for(int i = n/2; i >= 1; i /= 2){ for(int j = 0 ; j < n; ++j){ max = massiv[j]; for(int d = j;...
28.45
29
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <malloc.h>\n\nvoid shellcomb(int* massiv , int n){\n int buff;\n int max;\n int indexmax;\n for(int i = n/2; i >= 1; i /= 2){\n for(int j = 0 ; j < n; ++j){\n max = massiv[j];\n ...
340
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 28.45, "nodes": 219, "errors": 0, "source_hash": "f6263a1098548fa910af5b23f8924131d43570ecc6467ea1cbd6cbb67c47d76b", "categorized_nodes": 155}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,070
c
#ifndef ZC_GESCL3D_H #define ZC_GESCL3D_H #include "zadesk.h" #include "zgegbl.h" #pragma pack (push, 8) class ZcGeMatrix3d; class GE_DLLEXPIMPORT ZcGeScale3d { public: ZcGeScale3d(); ZcGeScale3d(const ZcGeScale3d& src); ZcGeScale3d(double factor); ZcGeScale3d(double xFact, doub...
27.38
81
(translation_unit) "#ifndef ZC_GESCL3D_H \n#define ZC_GESCL3D_H \n \n#include "zadesk.h" \n#include "zgegbl.h" \n#pragma pack (push, 8) \n \nclass ZcGeMatrix3d; \n \nclass \nGE_DLLEXPIMPORT \nZcGeScale3d \n{ \npublic: \n ZcGeScale3d(); \n ZcGeScale3d(const ZcGeScale3d& src); \n ZcGeScale3d(double factor); \n ...
652
50
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 27.38, "nodes": 367, "errors": 0, "source_hash": "68e21edb1822e4169885164e2dd6a7c0de08d1ee04d3008735af621c4c1f3847", "categorized_nodes": 252}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef ZC_GES...
11,071
c
fn(char s1[], char s2[]) { int i; i = 0; while(s1[i] != 0) { debug(s1[i]); i = i + 1; } i = 0; while(s2[i] != 0) { debug(s2[i]); i = i + 1; } } main() { fn("hello", "world"); }
10.47
17
(translation_unit) "fn(char s1[], char s2[]) {\n int i;\n\n i = 0;\n while(s1[i] != 0) {\n debug(s1[i]);\n i = i + 1;\n }\n \n i = 0;\n while(s2[i] != 0) {\n debug(s2[i]);\n i = i + 1;\n }\n}\n\nmain() {\n\n fn("hello", "world");\n}\n" (declaration) "fn(char s1[], char s2[]) {\n int i;" (macro_type_specifier)...
137
4
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 10.47, "nodes": 73, "errors": 0, "source_hash": "70ca80bf075d6f793a4d6f71f40211964c8334cf5ffbf59af19cb116d650e761", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "fn(char s1...
11,072
c
#ifndef U_Books_H #define U_Books_H #include "ustatic.h" class UBooks : public UStatic { enum { ID_TIMER_UPDATE = 1111 }; public: UBooks(HWND hParent, UINT nID, HINSTANCE hInst); UBooks(); ~UBooks(); UBooks(UBaseWindow *pWndParent, UINT nID = -1); // BOOL create(); //...
14.59
27
(translation_unit) "#ifndef U_Books_H\n#define U_Books_H\n\n#include "ustatic.h"\n\nclass UBooks : public UStatic\n{\n enum {\n ID_TIMER_UPDATE = 1111\n };\npublic:\n UBooks(HWND hParent, UINT nID, HINSTANCE hInst);\n UBooks();\n ~UBooks();\n UBooks(UBaseWindow *pWndParent, UINT nID = -1);\n ...
132
4
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 14.59, "nodes": 76, "errors": 0, "source_hash": "b94af5eb09f97a03fb8ed93d1ca0577d14301976a3104c0687f79bee60500f4f", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,073
c
#pragma once struct Transforms { glm::mat4 Proj; glm::mat4 View; glm::vec3 CamPos; float HorizAngle; float VertAngle; };
16.67
9
(translation_unit) "#pragma once\n\nstruct Transforms\n{\n glm::mat4 Proj;\n glm::mat4 View;\n glm::vec3 CamPos;\n float HorizAngle;\n float VertAngle;\n};\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (struct_specifier) "struct Transf...
43
3
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 16.67, "nodes": 27, "errors": 0, "source_hash": "332a4980ec5d6551b737a159ac1df2d259d41d429e15d38f345901e9b74db2de", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
11,074
c
/********************************************************************** * * C Source: type.c * Instance: idc_rads_2 * Description: DOS type Emulation * %created_by: smscm % * %date_created: Fri Apr 20 19:05:34 2001 % * **********************************************************************/ #ifndef lint static char *_...
23.61
44
(translation_unit) "/**********************************************************************\n*\n* C Source: type.c\n* Instance: idc_rads_2\n* Description: DOS type Emulation\n* %created_by: smscm %\n* %date_created: Fri Apr 20 19:05:34 2001 %\n*\n**********************************************************************/...
262
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 23.61, "nodes": 154, "errors": 0, "source_hash": "cd78e536e7d6cc806487741983ddfec5ebba052ae30840a04cea09c6c60dc9e5", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,075
c
#ifndef __LOGGING_H #define __LOGGING_H #include "BKM10Rduino.h" #ifdef SERIAL_LOGGING #define TX_EN digitalWrite(TX_ENABLE_PIN, HIGH); #define TX_D digitalWrite(TX_ENABLE_PIN, LOW); #endif void logCommand(ControlCode *cmd, int idx) { #ifdef SERIAL_LOGGING TX_D char buffer[20]; strcpy_P(buffer, (char*)pgm_read...
23.7
83
(translation_unit) "#ifndef __LOGGING_H\n#define __LOGGING_H\n\n#include "BKM10Rduino.h"\n\n#ifdef SERIAL_LOGGING\n#define TX_EN digitalWrite(TX_ENABLE_PIN, HIGH);\n#define TX_D digitalWrite(TX_ENABLE_PIN, LOW);\n#endif\n\nvoid logCommand(ControlCode *cmd, int idx) {\n#ifdef SERIAL_LOGGING\n TX_D\n char buffer[20];\n...
742
10
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 23.7, "nodes": 428, "errors": 0, "source_hash": "d19a37b248dd1d324dfa4376477cd7247099ba3c627b5f50156320accb16764f", "categorized_nodes": 317}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
11,076
c
#pragma once #include "Module.h" namespace WPEFramework { namespace Exchange { enum example_ids { ID_WALLCLOCK = 0x80001000, ID_WALLCLOCK_NOTIFICATION = 0x80001001 }; struct IWallClock : virtual public Core::IUnknown { enum { ID = ID_WALLCLOCK }; struct ICallback : virt...
31.17
23
(translation_unit) "#pragma once\n\n#include "Module.h"\n\nnamespace WPEFramework {\n\nnamespace Exchange {\n\n enum example_ids {\n ID_WALLCLOCK = 0x80001000,\n ID_WALLCLOCK_NOTIFICATION = 0x80001001\n };\n\n struct IWallClock : virtual public Core::IUnknown {\n enum { ID = ID_WALLCLOCK }...
197
11
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 31.17, "nodes": 127, "errors": 0, "source_hash": "3986dc7b8753c731eaf1436664f5979db9202e9cbb96565501060fae3f985857", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
11,077
c
// Copyright © 2018 nekoatsume_atsuko. All rights reserved. #pragma once #include "CoreMinimal.h" #include "GameFramework/Actor.h" #include "CharacterStatus.generated.h" class UDataTable; /*! スキル配置場所 */ UENUM(BlueprintType) enum class ESkillPos : uint8 { Up, Right, Down, Left, Num, }; ...
21.97
110
(translation_unit) " Copyright © 2018 nekoatsume_atsuko. All rights reserved. \n \n#pragma once \n \n#include "CoreMinimal.h" \n#include "GameFramework/Actor.h" \n#include "CharacterStatus.generated.h" \n \nclass UDataTable; \n \n/*! スキル配置場所 \n*/ \nUENUM(BlueprintType) \nenum class ESkillPos : uint8 \n{ \n Up, \n Right...
651
11
{"language": "c", "success": true, "metadata": {"lines": 110, "avg_line_length": 21.97, "nodes": 364, "errors": 0, "source_hash": "26c5ecfeff5baf7e830e68be29fd7634f66ec7d03528704f5b60becc9b826256", "categorized_nodes": 281}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "agma o...
11,078
c
// -*- C++ -*- // -*- coding: utf-8 -*- // // <NAME> <<EMAIL>> // parasim // (c) 1998-2019 all rights reserved #pragma once // externals #include <complex> // encapsulation of SLC raster images class ampcor::dom::SLC : public ampcor::dom::Raster { // types public: // for sizing things using size_type = s...
28.67
64
(translation_unit) "// -*- C++ -*-\n// -*- coding: utf-8 -*-\n//\n// <NAME> <<EMAIL>>\n// parasim\n// (c) 1998-2019 all rights reserved\n\n#pragma once\n\n// externals\n#include <complex>\n\n// encapsulation of SLC raster images\nclass ampcor::dom::SLC : public ampcor::dom::Raster {\n // types\npublic:\n // for s...
397
27
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 28.67, "nodes": 228, "errors": 0, "source_hash": "580e3ab9ba272017611cc8e64b5ab20e2958f22ece285ba3eb5a2441b51a0496", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
11,079
c
/* Copyright (c) 2014, <NAME> <<EMAIL>> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISC...
24.18
79
(translation_unit) "/* Copyright (c) 2014, <NAME> <<EMAIL>>\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED "...
257
22
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 24.18, "nodes": 180, "errors": 0, "source_hash": "9a48ed9aa7dca83651d20ffbf11f6e7f20e1c3a53d74c1629396a9715b066a20", "categorized_nodes": 109}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "static c...
11,080
c
#include <stdio.h> #include <string.h> static char str[] = "Computer Science"; int main(void) { int i = 0, j = 0, len = 0; char *p = str; len = strlen(str); for (i = 0; i < len; i++) { if (*(p + i) == ' ') { for (j = i; j <= len; j++) { *(p + j) = *(p + j + 1); ...
20.26
23
(translation_unit) "#include <stdio.h>\n#include <string.h>\n\nstatic char str[] = "Computer Science";\n\nint main(void)\n{\n int i = 0, j = 0, len = 0;\n char *p = str;\n\n len = strlen(str);\n for (i = 0; i < len; i++) {\n if (*(p + i) == ' ') {\n for (j = i; j <= len; j++) {\n ...
233
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 20.26, "nodes": 147, "errors": 0, "source_hash": "cc4e3ad767bc60a2a64fae88eb28c6d0ddfc113b92d14dc0fafd9ea8a83c6c19", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
11,081
c
#include "FreeRTOS.h" #include <stdlib.h> #include <stdio.h> #include <stdarg.h> #include <stdint.h> #include <string.h> #include <assert.h> #include <modality/probe.h> #include "util.h" #ifndef TEST_NAME #error "TEST_NAME not defined" #endif #if (MPT_CFG_MAX_PROBES != 4) #error "Expecting MPT_CFG_MAX_PROBES == 4"...
25.8
65
(translation_unit) "#include "FreeRTOS.h"\n\n#include <stdlib.h>\n#include <stdio.h>\n#include <stdarg.h>\n#include <stdint.h>\n#include <string.h>\n#include <assert.h>\n\n#include <modality/probe.h>\n\n#include "util.h"\n\n#ifndef TEST_NAME\n#error "TEST_NAME not defined"\n#endif\n\n#if (MPT_CFG_MAX_PROBES != 4)\n#err...
441
0
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 25.8, "nodes": 266, "errors": 0, "source_hash": "e0cae2957914574a25fece0f13c76e966b755fe13b1f0c3b139a591bbad8b278", "categorized_nodes": 178}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
11,082
c
#pragma once #include <glm/glm.hpp> typedef glm::vec3 VertexData; // base object for 3d objects class Object3D { private: unsigned int vbo[2]; protected: unsigned int shaderProgramId; VertexData* pData; unsigned int dataCount; unsigned int* pIndexes; unsigned int indexesCount; glm::vec2 size; glm::vec3 c...
18.62
39
(translation_unit) "#pragma once\n#include <glm/glm.hpp>\n\ntypedef glm::vec3 VertexData;\n\n// base object for 3d objects\nclass Object3D\n{ \nprivate: \n unsigned int vbo[2]; \nprotected:\n unsigned int shaderProgramId;\n VertexData* pData;\n unsigned int dataCount;\n\n unsigned int* pIndexes;\n unsigned int indexesC...
243
8
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 18.62, "nodes": 153, "errors": 0, "source_hash": "2318127545e62e21f4196a843958507b12b5b7f1e025f432c22adb5250d12635", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
11,083
c
////////////////////////////////////////////////////////////////////////// /* XeEngine * Xe::Collections header * Developed by Xeeynamo (<NAME>) * This file is part of XeEngine. Please do not share. *//////////////////////////////////////////////////////////////////////// #pragma once #include <XeSDK/ICollection.h...
30.43
28
(translation_unit) "//////////////////////////////////////////////////////////////////////////\n/* XeEngine\n * Xe::Collections header\n * Developed by Xeeynamo (<NAME>)\n * This file is part of XeEngine. Please do not share.\n *////////////////////////////////////////////////////////////////////////\n\n#pragma once\n#...
62
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 30.43, "nodes": 51, "errors": 0, "source_hash": "f6efb8a4fd57bcd18d9bad7c456c71702ac7bda84a38f397bbdeba488e834d6c", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
11,084
c
#ifndef __PANEL_CODE_EDITOR_H__ #define __PANEL_CODE_EDITOR_H__ #ifndef GAMEMODE #include "Panel.h" #include "Globals.h" #include "ImGui\imgui.h" #include "ImGuiColorTextEdit\TextEditor.h" class PanelCodeEditor : public Panel { public: PanelCodeEditor(const char* name); ~PanelCodeEditor(); bool Draw(); void ...
21.75
24
(translation_unit) "#ifndef __PANEL_CODE_EDITOR_H__\n#define __PANEL_CODE_EDITOR_H__\n\n#ifndef GAMEMODE\n\n#include "Panel.h"\n#include "Globals.h"\n\n#include "ImGui\imgui.h"\n#include "ImGuiColorTextEdit\TextEditor.h"\n\nclass PanelCodeEditor : public Panel\n{\npublic:\n\n PanelCodeEditor(const char* name);\n ~Panel...
156
2
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 21.75, "nodes": 95, "errors": 0, "source_hash": "ef760251d771704d9a4cbd582fec96ae863d707cdec79a3d1a35e75311c49c48", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,085
c
// Copyright 2017, Institute for Artificial Intelligence - University of Bremen #pragma once #include "ConstructorHelpers.h" #include "Containers/Queue.h" #include "Controller/RController.h" #include "Conversions.h" #include "Physics/RJoint.h" #include "Physics/RModel.h" #include "ROSUtilities.h" // clang-format off ...
34.56
70
(translation_unit) "// Copyright 2017, Institute for Artificial Intelligence - University of Bremen\n\n#pragma once\n\n#include "ConstructorHelpers.h"\n#include "Containers/Queue.h"\n#include "Controller/RController.h"\n#include "Conversions.h"\n#include "Physics/RJoint.h"\n#include "Physics/RModel.h"\n#include "ROSUti...
586
38
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 34.56, "nodes": 398, "errors": 0, "source_hash": "2bdd82607039a472e3f2803d0b990d613bd11cfc4c27e64e0a1f75f1372f549a", "categorized_nodes": 288}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
11,086
c
/* * This header is generated by classdump-dyld 1.0 * on Tuesday, November 5, 2019 at 2:38:50 AM Mountain Standard Time * Operating System: Version 13.0 (Build 17J586) * Image Source: /System/Library/PrivateFrameworks/AppStoreDaemon.framework/Support/appstored * classdump-dyld is licensed under GPLv3, Copyright © 2013-...
32.62
24
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Tuesday, November 5, 2019 at 2:38:50 AM Mountain Standard Time\n* Operating System: Version 13.0 (Build 17J586)\n* Image Source: /System/Library/PrivateFrameworks/AppStoreDaemon.framework/Support/appstored\n* classdump-dyld is licensed under...
137
12
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 32.62, "nodes": 82, "errors": 0, "source_hash": "9212618fdd7c9d53a447b2ad81c6f74179a7f76c87229a2f4976c35edc75895c", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "p", "parent": nu...
11,087
c
// // SOSpeaker.h // ScalaOne // // Created by <NAME> on 9/15/12. // Copyright (c) 2012 Magnetic Bear Studios. All rights reserved. // http://www.magneticbear.com #import <Foundation/Foundation.h> #import <CoreData/CoreData.h> @interface SOSpeaker : NSManagedObject @property (nonatomic, retain) NSString * abou...
33.33
21
(translation_unit) "//\n// SOSpeaker.h\n// ScalaOne\n//\n// Created by <NAME> on 9/15/12.\n// Copyright (c) 2012 Magnetic Bear Studios. All rights reserved.\n// http://www.magneticbear.com\n\n#import <Foundation/Foundation.h>\n#import <CoreData/CoreData.h>\n\n\n@interface SOSpeaker : NSManagedObject\n\n@property (...
183
38
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 33.33, "nodes": 137, "errors": 0, "source_hash": "9563ecebeaf83ec2a1e6c097f165746efc8bec1c26458369408ec77596641fba", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
11,088
c
/**************************************************************************** **************************************************************************** *** *** This header was automatically generated from a Linux kernel header *** of the same name, to make information necessary for userspace to *** call i...
36.24
25
(translation_unit) "/****************************************************************************\n ****************************************************************************\n ***\n *** This header was automatically generated from a Linux kernel header\n *** of the same name, to make information necessary for us...
54
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 36.24, "nodes": 42, "errors": 0, "source_hash": "3dc9076e2ab3252612e3db52ccfc1939146bb2b21271374a902dfe3487524fc4", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,089
c
#pragma once typedef void (*func4)(); typedef int (*func5)(int, int); int* func6(func4 f4, func5 f5); void func7(); int func8(int x, int y);
22.5
6
(translation_unit) "#pragma once\n\ntypedef void (*func4)();\ntypedef int (*func5)(int, int);\nint* func6(func4 f4, func5 f5);\nvoid func7();\nint func8(int x, int y);" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (type_definition) "typedef void (*func4)();" (typede...
77
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 22.5, "nodes": 54, "errors": 0, "source_hash": "9cb158e81447e979271595c4d272b64203675bce271e94701463698cf0af7365", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
11,090
c
#pragma once #include <stdint.h> #include <liblox/atomic.h> /** * Spinlock mechanism. */ typedef struct spin_lock { atomic_int32 addr; atomic_int32 waiters; void* last_acquired_by; #ifdef DEBUG_SPINLOCKS char* label; #endif } spin_lock_t; // Makes it possible to mark a spin lock with a label. #if...
20.77
35
(translation_unit) "#pragma once\n\n#include <stdint.h>\n\n#include <liblox/atomic.h>\n\n/**\n * Spinlock mechanism.\n */\ntypedef struct spin_lock {\n atomic_int32 addr;\n atomic_int32 waiters;\n void* last_acquired_by;\n\n#ifdef DEBUG_SPINLOCKS\n char* label;\n#endif\n} spin_lock_t;\n\n// Makes it possibl...
119
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 20.77, "nodes": 90, "errors": 0, "source_hash": "5f8ecd132c5c750c681015647c488f43b0755877a29673c35074afb1c0d52a3d", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
11,091
c
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/ipc.h> #include <sys/msg.h> #include <sys/shm.h> #include <sys/sem.h> #include <time.h> #include <signal.h> #include <sys/wait.h> typedef struct { long type; int tip_servera; int rbr; int pid; } LOGIN; #define LOGIN_SIZE sizeof(L...
23.04
52
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <unistd.h>\n#include <sys/ipc.h>\n#include <sys/msg.h>\n#include <sys/shm.h>\n#include <sys/sem.h>\n#include <time.h>\n#include <signal.h>\n#include <sys/wait.h>\n\ntypedef struct\n{\n long type;\n int tip_servera;\n int rbr;\n int pid;\n...
361
0
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 23.04, "nodes": 237, "errors": 0, "source_hash": "fe95562055b75e9bc59a61f3679d1754a9502f8c97577d90a98046a4139d339d", "categorized_nodes": 181}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,092
c
/* ** Copyright (C) 1998-2006 <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 ** the Free Software Foundation; either version 2 of the License, or ** (at your option) any later version. ** ** This program...
42.08
60
(translation_unit) "/*\n** Copyright (C) 1998-2006 <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 License as published by\n** the Free Software Foundation; either version 2 of the License, or\n** (at your option) any later v...
145
6
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 42.08, "nodes": 87, "errors": 0, "source_hash": "64346df108675f94119efd18f966d5dac4fc7b7d69febe99cff4433282b011bb", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,093
c
#ifndef RECEIVER_H #define RECEIVER_H #include <QString> #include <string> class Receiver { public: Receiver(); ~Receiver(); static QVector<std::string> getGetReceivers(QString devServiceURL); }; #endif // RECEIVER_H
15.47
15
(translation_unit) "#ifndef RECEIVER_H \n#define RECEIVER_H \n \n#include <QString> \n#include <string> \nclass Receiver \n{ \npublic: \n Receiver(); \n ~Receiver(); \n \n static QVector<std::string> getGetReceivers(QString devServiceURL); \n}; \n \n#endif // RECEIVER_H \n" (preproc_ifdef) "#ifndef RECEIVER...
62
1
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 15.47, "nodes": 37, "errors": 0, "source_hash": "b0aa8e84034a9ab140e79d3aa29f2d3c9f2416325f12f7c9e3fcce2fad5cf02c", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,094
c
/************************************************************************** * * ADOBE CONFIDENTIAL * ___________________ * * Copyright 2009 Adobe Systems Incorporated * All Rights Reserved. * * NOTICE: All information contained herein is, and remains the property of * Adobe Systems Incorporated and its sup...
29.19
123
(translation_unit) "/**************************************************************************\n *\n * ADOBE CONFIDENTIAL\n * ___________________\n *\n * Copyright 2009 Adobe Systems Incorporated\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains the property of\n * Adobe Syst...
386
0
{"language": "c", "success": true, "metadata": {"lines": 123, "avg_line_length": 29.19, "nodes": 275, "errors": 0, "source_hash": "289c7f188858edd2099768bd69cf51acb773c1c601c097c28a4226dbcf9984f7", "categorized_nodes": 202}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
11,095
c
/* * The routines in this file * read in code from the intermediate file. * It is almost machine independent but it has been * broken out just in case a strange machine creeps * along. */ #ifdef vax #include "INC$LIB:cc2.h" #else #include "cc2.h" #endif /* * Read in a code item. * Return a pointer to a fille...
20.25
75
(translation_unit) "/*\n * The routines in this file\n * read in code from the intermediate file.\n * It is almost machine independent but it has been\n * broken out just in case a strange machine creeps\n * along.\n */\n#ifdef vax\n#include "INC$LIB:cc2.h"\n#else\n#include "cc2.h"\n#endif\n\n/*\n * Read in a code it...
505
0
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 20.25, "nodes": 307, "errors": 0, "source_hash": "65d110101139e70c6f4a06dd1c24c30a8cd110e0bc3fe3325435ddaa56f39311", "categorized_nodes": 226}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef...
11,096
c
#ifndef TABLE_H #define TABLE_H #include "query.h" #include "field.h" #include "schema.h" #include "fqlimits.h" #include "util/hashmap.h" #include "util/stringy.h" enum source_type { SOURCE_TABLE, SOURCE_SUBQUERY, }; struct table { string name; string alias; struct query* subquery; struct reader* reader; stru...
27.98
57
(translation_unit) "#ifndef TABLE_H\n#define TABLE_H\n\n#include "query.h"\n#include "field.h"\n#include "schema.h"\n#include "fqlimits.h"\n#include "util/hashmap.h"\n#include "util/stringy.h"\n\nenum source_type {\n SOURCE_TABLE,\n SOURCE_SUBQUERY,\n};\n\nstruct table {\n string name;\n string alias;\n struct query* s...
411
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 27.98, "nodes": 315, "errors": 0, "source_hash": "2456eec9e3af1b02c7a04ea24c6e77bad657de5d745ac815d15e74ad0b738dc6", "categorized_nodes": 228}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,097
c
#include <stdio.h> #include <stdlib.h> #define READBUF_SIZE 1024 #define TMPNAME "/tmp/x2y.tmp" static void proc( const char *name ) { FILE *fp,*outfp; int i; size_t readin; char readbuf[READBUF_SIZE]; /* open input file */ if((fp = fopen(name, "r")) == NULL){ fprintf(stderr, ...
24.07
59
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\n#define READBUF_SIZE 1024\n#define TMPNAME "/tmp/x2y.tmp"\n\nstatic void\nproc(\n const char *name\n )\n{\n FILE *fp,*outfp;\n int i;\n size_t readin;\n char readbuf[READBUF_SIZE];\n\n /* open input file */\n if((fp = fopen(name, "r"...
466
0
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 24.07, "nodes": 247, "errors": 0, "source_hash": "82070c8ebb913b9fcc72997ab570065f4d873ac8b88a81e35b813e5df7860049", "categorized_nodes": 173}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,098
c
version https://git-lfs.github.com/spec/v1 oid sha256:5e3fa74d6d6d5fbfac28de8575674706cdd97bee0b7955c0557c08002e54e577 size 2525
42
3
(translation_unit) "version https://git-lfs.github.com/spec/v1\noid sha256:5e3fa74d6d6d5fbfac28de8575674706cdd97bee0b7955c0557c08002e54e577\nsize 2525\n" (declaration) "version https://git-lfs.github.com/spec/v1\noid" (type_identifier) "version" (ERROR) "https:" (identifier) "https" (:) ":" (c...
15
2
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 42.0, "nodes": 10, "errors": 0, "source_hash": "15524c683b23372968c740e912c21aeb9c8004ef28a209ca4ee1a5ec1d96add2", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "version https...
11,099