language
stringclasses
1 value
code
stringlengths
6
12.3k
avg_line_length
float64
2.79
91
line_count
float64
1
367
lang_specific_parse
stringlengths
60
1.08M
ast_node_count
int64
2
6.81k
num_errors
int64
0
499
universal_schema
stringlengths
799
825k
__index_level_0__
int64
0
81.2k
c
#ifndef SIGNALS_SIGNAL_TRAITS_H__ #define SIGNALS_SIGNAL_TRAITS_H__ namespace signals { template <typename SignalType> class SignalTraits { public: static SignalType Reference; }; // If you got an error here, that means most likely that you have a signal that // does not provide a default constructor. template <t...
34.15
13
(translation_unit) "#ifndef SIGNALS_SIGNAL_TRAITS_H__\n#define SIGNALS_SIGNAL_TRAITS_H__\n\nnamespace signals {\n\ntemplate <typename SignalType>\nclass SignalTraits {\n\npublic:\n\n static SignalType Reference;\n};\n\n// If you got an error here, that means most likely that you have a signal that\n// does not provide ...
72
5
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 34.15, "nodes": 46, "errors": 0, "source_hash": "f1439120b0b194d242248c8b1c4489ec9688ad8f54e90363cfe24b068062c5cb", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,200
c
#pragma once #pragma comment(lib, "fmodex_vc.lib" ) // fmod library #include "fmod.hpp" //fmod c++ header #include <stdio.h> #include <stdlib.h> //Sound array size #define NUM_SOUNDS 14 //Sound identifiers enum { ALIENBEEP, ALIENWRITE, MOTHERCONSOLE, LASER1, LASER2, LASER3, EXP1, EXP2, EXP3, BRIDGEKHAZADD...
20.36
44
(translation_unit) "#pragma once\n\n#pragma comment(lib, "fmodex_vc.lib" ) // fmod library\n\n#include "fmod.hpp" //fmod c++ header\n#include <stdio.h>\n#include <stdlib.h>\n\n//Sound array size\n#define NUM_SOUNDS 14\n\n//Sound identifiers\nenum {\n ALIENBEEP,\n ALIENWRITE,\n MOTHERCONSOLE,\n LASER1,\n LASER2,\n LASER...
255
11
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 20.36, "nodes": 161, "errors": 0, "source_hash": "98d9703df0a65c57cbec70449c79230d0b678963c31631df42134886533c41f2", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,201
c
struct node { int data; node *next, *prev; };
9.4
5
(translation_unit) "struct node\n {\n int data;\n node *next, *prev;\n };" (struct_specifier) "struct node\n {\n int data;\n node *next, *prev;\n }" (struct) "struct" (type_identifier) "node" (field_declaration_list) "{\n int data;\n node *next, *prev;\n }" ({) "{" (field_declaration) "i...
22
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 9.4, "nodes": 14, "errors": 0, "source_hash": "3597e1b8224089fbf87ced2a5097b2b7ceaabcbe89fefbbc522c11d36243e8bc", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "struct_specifier", "text": "struct no...
9,202
c
// // ViewController.h // VGADemo // // Created by Jason on 2021/12/31. // #import <UIKit/UIKit.h> @interface VGAViewController : UIViewController @end
14.6
10
(translation_unit) "//\n// ViewController.h\n// VGADemo\n//\n// Created by Jason on 2021/12/31.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface VGAViewController : UIViewController\n\n\n@end\n\n" (comment) "//" (comment) "// ViewController.h" (comment) "// VGADemo" (comment) "//" (comment) "// Created by J...
18
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 14.6, "nodes": 9, "errors": 0, "source_hash": "766e02300c33fa65072d4449161dc16cb8c8f0b9930490b274a428d98469ef2a", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UIK...
9,203
c
// BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE #ifndef AWKWARD_FORMBUILDER_H_ #define AWKWARD_FORMBUILDER_H_ #include <complex> #include <map> #include <memory> #include <string> #include "awkward/forth/ForthMachine.h" #include "awkward/forth/ForthOutputBuffer.h" namespace a...
38.66
122
(translation_unit) "// BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE\n\n#ifndef AWKWARD_FORMBUILDER_H_\n#define AWKWARD_FORMBUILDER_H_\n\n#include <complex>\n#include <map>\n#include <memory>\n#include <string>\n#include "awkward/forth/ForthMachine.h"\n#include "awkward/forth/For...
842
86
{"language": "c", "success": true, "metadata": {"lines": 122, "avg_line_length": 38.66, "nodes": 474, "errors": 0, "source_hash": "12c98d23fedd02580a1ebf065b9942f3825a91d4e5336c2d84aa58116ff1d561", "categorized_nodes": 316}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
9,204
c
int i,j; int a = 0; int main(){ for(i = 0; i < 7;i++){ for(j = 0; j < 4; j++){ a++; } } return a; // a = 28 }
11.1
10
(translation_unit) "int i,j;\n int a = 0;\nint main(){\n\n for(i = 0; i < 7;i++){\n for(j = 0; j < 4; j++){\n a++;\n }\n }\n return a; // a = 28\n}\n" (declaration) "int i,j;" (primitive_type) "int" (identifier) "i" (,) "," (identifier) "j" (;) ";" (declaration) "int a = 0;" (primitive_t...
74
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 11.1, "nodes": 44, "errors": 0, "source_hash": "4a3dbce2e9af7017ef312ebdfa6c09c6c13dc0560dc14b67da44d01930705ec3", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "int i,j;", ...
9,205
c
// // GroupWallViewControllerOutput.h // VKWallReader // // Created by nvv on 10.11.16. // Copyright © 2016 nvv. All rights reserved. // #import <Foundation/Foundation.h> @protocol GroupWallViewControllerOutput <NSObject> - (void)requestInitialSetup; - (void)requestGroupIdUpdate:(NSString *)groupId; - (void)req...
23.8
15
(translation_unit) "//\n// GroupWallViewControllerOutput.h\n// VKWallReader\n//\n// Created by nvv on 10.11.16.\n// Copyright © 2016 nvv. All rights reserved.\n//\n\n\n#import <Foundation/Foundation.h>\n\n@protocol GroupWallViewControllerOutput <NSObject>\n\n- (void)requestInitialSetup;\n- (void)requestGroupIdUpdat...
74
6
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 23.8, "nodes": 43, "errors": 0, "source_hash": "14f4aab5bd7f80b094aef6261d6904667459ae290cee85592afbda8370032c5c", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <Fo...
9,206
c
#ifndef SLANG_JSON_DIAGNOSTICS_H #define SLANG_JSON_DIAGNOSTICS_H #include "../core/slang-basic.h" #include "../core/slang-writer.h" #include "slang-source-loc.h" #include "slang-diagnostic-sink.h" #include "slang-token.h" #include "../../slang.h" namespace Slang { DiagnosticsLookup* getJSONDiagnosticsLookup(); n...
25.67
18
(translation_unit) "#ifndef SLANG_JSON_DIAGNOSTICS_H\n#define SLANG_JSON_DIAGNOSTICS_H\n\n#include "../core/slang-basic.h"\n#include "../core/slang-writer.h"\n\n#include "slang-source-loc.h"\n#include "slang-diagnostic-sink.h"\n#include "slang-token.h"\n\n#include "../../slang.h"\n\nnamespace Slang\n{\n\nDiagnosticsLoo...
86
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 25.67, "nodes": 50, "errors": 0, "source_hash": "85b8817e6044e888cc7dd466fad418ed41ed50e0c5a496316e629ef1d0869279", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,207
c
// // ActionEvent.h // KunKun // // Created by <NAME> on 11/24/10. // Copyright 2010 Viettel. All rights reserved. // #import <Foundation/Foundation.h> enum ActionEventEnum { none, login, logout, sync_post_object, sync_get_timestamp, sync_get_sysorganization, sync_get_account, sync_g...
24.22
72
(translation_unit) "//\n// ActionEvent.h\n// KunKun\n//\n// Created by <NAME> on 11/24/10.\n// Copyright 2010 Viettel. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n\nenum ActionEventEnum {\n none,\n login,\n logout,\n sync_post_object,\n sync_get_timestamp,\n sync_get_sysorganizat...
368
29
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 24.22, "nodes": 244, "errors": 0, "source_hash": "fdc996aa21edc461a1adb3d095d8188543fb31417bdd37f203e87cccee72794a", "categorized_nodes": 186}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
9,208
c
/* Copyright 2012, <NAME>, Croatia. 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 ...
26.42
52
(translation_unit) "/*\n Copyright 2012, <NAME>, Croatia.\n\n Licensed under the Apache License, Version 2.0 (the "License");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by...
179
9
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 26.42, "nodes": 121, "errors": 0, "source_hash": "7e236d2897182d3044c1c0ff125ab5b56c88dd80df62e91f30edad8b9fbaf15d", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
9,209
c
#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <sys/mman.h> #include <unistd.h> /* int shell_code() { return 2019; } */ #if __x86_64__ static unsigned char SHELL_CODE[] = "\x48\xC7\xC0\xE3\x07\x00\x00\xC3"; // mov rax, 2019; ret; #else static unsigned char SHELL_CODE[] = "\xB8\xE3\x07\x00\x00\xC3"...
30.55
22
(translation_unit) "#include <stdint.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <sys/mman.h>\n#include <unistd.h>\n\n/*\nint shell_code() { return 2019; }\n*/\n#if __x86_64__\nstatic unsigned char SHELL_CODE[] = "\x48\xC7\xC0\xE3\x07\x00\x00\xC3"; // mov rax, 2019; ret;\n#else\nstatic unsigned char SHELL_COD...
205
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 30.55, "nodes": 138, "errors": 0, "source_hash": "bbdf5fb9cdbc408852a6aad447311c56e9547da02776b58da59520751e7695fe", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
9,210
c
#define N 2 #define T int static unsigned int foo(int x) { T a[(1,N)]; return sizeof(a) == (N * sizeof(T)); } /* * check-name: vla-sizeof cte,cte * check-command: test-linearize -Wvla $file * * check-output-ignore * check-output-contains: ret\\.32 *\\$1 * * check-error-start * check-error-end */
17.12
17
(translation_unit) "#define N 2\n#define T int\n\nstatic unsigned int foo(int x)\n{\n T a[(1,N)];\n\n return sizeof(a) == (N * sizeof(T));\n}\n\n/*\n * check-name: vla-sizeof cte,cte\n * check-command: test-linearize -Wvla $file\n *\n * check-output-ignore\n * check-output-contains: ret\\.32 *\\$1\n *\n * check-error-s...
64
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 17.12, "nodes": 39, "errors": 0, "source_hash": "98df2fb71bcbb224e02587d4bd44937bb9c05b3fbd54941bffd66e653f2d1cb7", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define N ...
9,211
c
// // ColorViewController.h // NavigationDemo // // Created by <NAME> on 11/26/14. // Copyright (c) 2014 Groomsy Dev. All rights reserved. // @import UIKit; @interface ColorViewController : UIViewController @property (nonatomic, copy) UIColor *backgroundColor; @end
23.55
11
(translation_unit) "//\n// ColorViewController.h\n// NavigationDemo\n//\n// Created by <NAME> on 11/26/14.\n// Copyright (c) 2014 Groomsy Dev. All rights reserved.\n//\n\n@import UIKit;\n\n@interface ColorViewController : UIViewController\n\n@property (nonatomic, copy) UIColor *backgroundColor;\n\n@end\n" (commen...
39
8
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 23.55, "nodes": 23, "errors": 0, "source_hash": "e73a78168429b6f562f357706accb4d2cfb1a7b133f4f0cf9f4858f582fa5762", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nu...
9,212
c
#ifndef OPERATORS_H #define OPERATORS_H #include "global.h" #include "token.h" #include <stdio.h> // operators.h - <NAME> // This module manages operators in bytecode and in VM enum vm_operator { O_ADD, O_SUB, O_MUL, O_DIV, O_REM, O_IDIV, O_AND, O_OR, O_RANGE, O_NEQ, O_EQ, O_IN, O_COPY, O_GT, O_LT, O_GTE, O_LTE, ...
39.8
20
(translation_unit) "#ifndef OPERATORS_H\n#define OPERATORS_H\n\n#include "global.h"\n#include "token.h"\n#include <stdio.h>\n\n// operators.h - <NAME>\n// This module manages operators in bytecode and in VM\n\nenum vm_operator {\n O_ADD, O_SUB, O_MUL, O_DIV, O_REM, O_IDIV, O_AND, O_OR, O_RANGE, O_NEQ,\n O_EQ, O_IN, O_C...
162
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 39.8, "nodes": 112, "errors": 0, "source_hash": "6cc4ad9c0b6a80531e39a941bae5ed8585549e6b76c11e3e5da4eb401aa275bb", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,213
c
/* File: history.c COPYING: Full text of the copyrights statement at the bottom of the file Project: WW Started: 14th December, 1998 Descrition: Input line history list maintaining functions. */ #include "global.h" #include "memory.h" #include "history.h" #define INIT_HISTLIST(pHist) INITIALIZE_LIST_HEAD(&pHist-...
30.88
264
(translation_unit) "/*\n\nFile: history.c\nCOPYING: Full text of the copyrights statement at the bottom of the file\nProject: WW\nStarted: 14th December, 1998\nDescrition:\n Input line history list maintaining functions.\n\n*/\n\n#include "global.h"\n#include "memory.h"\n#include "history.h"\n\n#define INIT_HISTLIST(p...
1,268
0
{"language": "c", "success": true, "metadata": {"lines": 264, "avg_line_length": 30.88, "nodes": 782, "errors": 0, "source_hash": "2dbbb1f040502246e95780af105732258034ae25b9d82327aad17355c93c41c4", "categorized_nodes": 507}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,214
c
// // UIImage+EX.h // EXFrameWork // // Created by Eric on 2019/1/23. // Copyright © 2019 icety. All rights reserved. // #import <UIKit/UIKit.h> @interface UIImage (EX) /** // Pure color image. @param color Image color. @param size Image size. @return UIImage. */ + (UIImage *)imageWithColor:(UIColor *)col...
19.31
26
(translation_unit) "//\n// UIImage+EX.h\n// EXFrameWork\n//\n// Created by Eric on 2019/1/23.\n// Copyright © 2019 icety. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIImage (EX)\n\n/**\n // Pure color image.\n \n @param color Image color.\n @param size Image size.\n @return UIImage.\n */\n+ (...
83
10
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 19.31, "nodes": 42, "errors": 0, "source_hash": "63b02059ad671f8718653fd931cd49920297916ccc00cfa4e48c69ab6c4c067e", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
9,215
c
// // RCProductFetcher.h // Purchases // // Created by RevenueCat. // Copyright © 2019 RevenueCat. All rights reserved. // #import <Foundation/Foundation.h> #import <StoreKit/StoreKit.h> NS_ASSUME_NONNULL_BEGIN typedef void(^RCFetchProductsCompletionHandler)(NSArray<SKProduct *> *products); typedef void(^RCFetc...
39.17
24
(translation_unit) "//\n// RCProductFetcher.h\n// Purchases\n//\n// Created by RevenueCat.\n// Copyright © 2019 RevenueCat. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <StoreKit/StoreKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\ntypedef void(^RCFetchProductsCompletionHandler)(NSArray<SKProduct *> ...
200
22
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 39.17, "nodes": 134, "errors": 0, "source_hash": "34a4189a24abb8db54e74d760897f2ff60f39067c71ff105c463b82d508ab27a", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <...
9,216
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @interface SKEDocumentEdition : NSObject { id <SKEDocumentProtocol> _document; SKEDocumentEdition *_revertingEdition; } - (void).cxx_destruct; - (id)reverse...
24.53
19
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n@interface SKEDocumentEdition : NSObject\n{\n id <SKEDocumentProtocol> _document;\n SKEDocumentEdition *_revertingEdition;\n}\n\n- ...
130
11
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 24.53, "nodes": 79, "errors": 0, "source_hash": "910d3ec9a700a4187611d2e71e35150e26ba7978b55eab2038c700fa5539fcad", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
9,217
c
//********************************************************************************************** // CAskNameDlg.h // // Author(s): lmout82 // Version 1.x // Licence: MIT License // Link: https://github.com/lmout82/HeatTreatmentPilot // Creation date: September 2007 // Las...
26.2
25
(translation_unit) "//********************************************************************************************** \n// CAskNameDlg.h \n// \n// Author(s): lmout82 \n// Version 1.x \n// Licence: MIT License \n// Link: https://github.com/lmout82/HeatTreatmentPilot \n// Creation d...
75
5
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 26.2, "nodes": 34, "errors": 0, "source_hash": "c0cd2a9fa52dd2265dccf9c9f9c87c9dce368a37775bf57d2d798a3838fc02c9", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef C...
9,218
c
// MIT License // Copyright (c) 2019 <NAME> // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, p...
39.19
48
(translation_unit) "// MIT License\n\n// Copyright (c) 2019 <NAME>\n\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the "Software"), to deal\n// in the Software without restriction, including without limitation the rights\n// to ...
217
10
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 39.19, "nodes": 110, "errors": 0, "source_hash": "556d6e5a89fe5b9659504d487d9e95666fe456210d16df28a23578b7b8f03847", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,219
c
#ifndef PhiBorderFinder_H #define PhiBorderFinder_H /** \class PhiBorderFinder * Find the phi binning of a list of detector according to several * definitions. * * \author <NAME> - INFN Torino */ #include <Geometry/CommonDetUnit/interface/GeomDet.h> #include <DataFormats/GeometrySurface/interface/BoundingB...
36.66
141
(translation_unit) "#ifndef PhiBorderFinder_H\n#define PhiBorderFinder_H\n\n/** \class PhiBorderFinder\n * Find the phi binning of a list of detector according to several \n * definitions.\n *\n * \author <NAME> - INFN Torino\n */\n\n\n#include <Geometry/CommonDetUnit/interface/GeomDet.h>\n\n#include <DataFormats/Ge...
1,466
45
{"language": "c", "success": true, "metadata": {"lines": 141, "avg_line_length": 36.66, "nodes": 906, "errors": 0, "source_hash": "58e32de484b81eb11035ec85a597cd2195aabf5c44b0924b622c9c02b9141370", "categorized_nodes": 613}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
9,220
c
#ifndef PHYSICS_H #define PHYSICS_H #include "types.h" waypoint_t* create_waypoint(double x, double y, double vx, double vy, double t, wptype type); void free_waypoint(waypoint_t* wp); void free_route(waypoint_t* head); double get_acceleration(entity_t* s); void complete_flightplan(entity_t* s); #endif
32.78
9
(translation_unit) "#ifndef PHYSICS_H\n#define PHYSICS_H\n#include "types.h"\nwaypoint_t* create_waypoint(double x, double y, double vx, double vy, double t, wptype type);\nvoid free_waypoint(waypoint_t* wp);\nvoid free_route(waypoint_t* head);\ndouble get_acceleration(entity_t* s);\nvoid complete_flightplan(entity_t* ...
99
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 32.78, "nodes": 75, "errors": 0, "source_hash": "73f76334355b1416989aed37765a9b36f07a62e0196b80509ce291cc027995b7", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef P...
9,221
c
#pragma once #include <libdevcore/Exceptions.h> namespace dev { DEV_SIMPLE_EXCEPTION(KeyCenterAlreadyInit); DEV_SIMPLE_EXCEPTION(KeyCenterDataKeyError); DEV_SIMPLE_EXCEPTION(KeyCenterConnectionError); DEV_SIMPLE_EXCEPTION(KeyCenterCall); DEV_SIMPLE_EXCEPTION(KeyCenterInitError); DEV_SIMPLE_EXCEPTION(KeyCenterCloseErro...
34.07
14
(translation_unit) "#pragma once\n#include <libdevcore/Exceptions.h>\n\nnamespace dev\n{\nDEV_SIMPLE_EXCEPTION(KeyCenterAlreadyInit);\nDEV_SIMPLE_EXCEPTION(KeyCenterDataKeyError);\nDEV_SIMPLE_EXCEPTION(KeyCenterConnectionError);\nDEV_SIMPLE_EXCEPTION(KeyCenterCall);\nDEV_SIMPLE_EXCEPTION(KeyCenterInitError);\nDEV_SIMPL...
86
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 34.07, "nodes": 45, "errors": 0, "source_hash": "40be71eb1e83735501d772403e96a5222a9a76f34cfa8fa8d53ec002b5ac4d39", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
9,222
c
/*=================================================================== BlueBerry Platform Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY o...
26.23
156
(translation_unit) "/*=================================================================== \n \nBlueBerry Platform \n \nCopyright (c) German Cancer Research Center, \nDivision of Medical and Biological Informatics. \nAll rights reserved. \n \nThis software is distributed WITHOUT ANY WARRANTY; without \neven the implied ...
883
35
{"language": "c", "success": true, "metadata": {"lines": 156, "avg_line_length": 26.23, "nodes": 591, "errors": 0, "source_hash": "45f2e50e5bf83d5d87fa3d5cb518884fa656fc7f041714b2e208109984c839b0", "categorized_nodes": 400}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
9,223
c
#ifndef FWCore_PythonParameterSet_BoostPython_h #define FWCore_PythonParameterSet_BoostPython_h // avoids compiler warning #undef _POSIX_C_SOURCE #include <boost/python.hpp> #endif
29.17
6
(translation_unit) "#ifndef FWCore_PythonParameterSet_BoostPython_h\n#define FWCore_PythonParameterSet_BoostPython_h\n// avoids compiler warning\n#undef _POSIX_C_SOURCE\n#include <boost/python.hpp>\n#endif\n" (preproc_ifdef) "#ifndef FWCore_PythonParameterSet_BoostPython_h\n#define FWCore_PythonParameterSet_BoostPyth...
15
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 29.17, "nodes": 13, "errors": 0, "source_hash": "9d3abf8ed2fa0934dd77199f212ac5d5b08c5e31a95d8acba12fe93b42174f6f", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef FW...
9,224
c
#include "os_kernel.h" #include "internals/internals.h" #include "shared/device.h" // Device header #include "core_cm3.h" // Cortex m3 core header #include <stddef.h> #define MAX_NUM_OF_THREADS (64) #define STACK_SIZE (18) #define NUM_OF_REGISTERS_TO_STORE (16) #define STACK_POINTE...
24.92
123
(translation_unit) "#include "os_kernel.h"\n#include "internals/internals.h"\n#include "shared/device.h" // Device header\n#include "core_cm3.h" // Cortex m3 core header\n#include <stddef.h>\n\n\n#define MAX_NUM_OF_THREADS (64)\n#define STACK_SIZE (18)\n#define NUM_OF_REGISTERS_TO_STORE...
656
0
{"language": "c", "success": true, "metadata": {"lines": 123, "avg_line_length": 24.92, "nodes": 395, "errors": 0, "source_hash": "88fb682a3975034d4112413ee56dafbb063aef443e155af34000cfabf690dda9", "categorized_nodes": 279}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,225
c
/* * This file is part of LibCSS * Licensed under the MIT License, * http://www.opensource.org/licenses/mit-license.php * Copyright 2009 <NAME> <<EMAIL>> */ #include <assert.h> #include "bytecode/bytecode.h" #include "bytecode/opcodes.h" #include "select/propset.h" #include "select/propget.h" #include "utils/...
30.23
60
(translation_unit) "/*\n * This file is part of LibCSS\n * Licensed under the MIT License,\n * http://www.opensource.org/licenses/mit-license.php\n * Copyright 2009 <NAME> <<EMAIL>>\n */\n\n#include <assert.h>\n\n#include "bytecode/bytecode.h"\n#include "bytecode/opcodes.h"\n#include "select/propset.h"\n#include "se...
419
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 30.23, "nodes": 247, "errors": 0, "source_hash": "a3e8aac673656aff4588df3ff4d27a9b0c6c9e5e4545dbd2550bf90c1874a28f", "categorized_nodes": 190}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,226
c
/** * @file misc.c * @author <NAME> (<EMAIL>) * @brief Implements various convenience functions (e.g., error reporting) * **/ /* =================================================================== Copyright (c) 2013, <NAME> All rights reserved. Redistribution and use in source and binary forms, with or withou...
38.94
54
(translation_unit) "/**\n * @file misc.c\n * @author <NAME> (<EMAIL>)\n * @brief Implements various convenience functions (e.g., error reporting)\n * **/\n\n/* ===================================================================\nCopyright (c) 2013, <NAME>\nAll rights reserved.\n\nRedistribution and use in source an...
206
0
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 38.94, "nodes": 119, "errors": 0, "source_hash": "fcec1dfb0c81e673cf7bf9038010e9865d5684fa9351a81bef9942bd06c8ab25", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
9,227
c
#ifndef ATL_ztGetNB_geqrf /* * NB selection for GEQRF: Side='RIGHT', Uplo='UPPER' * M : 25,87,149,211,273,521,1018,2012,4000 * N : 25,87,149,211,273,521,1018,2012,4000 * NB : 10,15,25,25,40,40,40,40,40 */ #define ATL_ztGetNB_geqrf(n_, nb_) \ { \ if ((n_) < 56) (nb_) = 10; \ else if ((n_) < 118) (nb_) = 15; ...
36.23
13
(translation_unit) "#ifndef ATL_ztGetNB_geqrf\n\n/*\n * NB selection for GEQRF: Side='RIGHT', Uplo='UPPER'\n * M : 25,87,149,211,273,521,1018,2012,4000\n * N : 25,87,149,211,273,521,1018,2012,4000\n * NB : 10,15,25,25,40,40,40,40,40\n */\n#define ATL_ztGetNB_geqrf(n_, nb_) \\n{ \\n if ((n_) < 56) (nb_) = 10; \\n el...
17
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 36.23, "nodes": 11, "errors": 0, "source_hash": "64556b39d321fbeeae1bcb3c180ceb59361982ba813f4a0b4af89a50c06eb790", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef A...
9,228
c
/* Error Handling implementation file: error.c * <NAME> "07-25-18" */ #include "error.h" #include <stdio.h> #include <stdlib.h> void raiseError(int errorcode, char *message) { char *errortype; switch (errorcode) { case MEMORY_ERROR: errortype = "Memory Error"; break; case UNDECLARED_ERROR: errortype ...
21.02
43
(translation_unit) "/* Error Handling implementation file: error.c\n * <NAME> "07-25-18"\n */\n\n#include "error.h"\n#include <stdio.h>\n#include <stdlib.h>\n\nvoid raiseError(int errorcode, char *message) {\n char *errortype;\n switch (errorcode) {\n case MEMORY_ERROR:\n errortype = "Memory Error";\n break;\n ca...
233
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 21.02, "nodes": 132, "errors": 0, "source_hash": "1346d31d861f0c1f2a37000871276ec0d09053a5418b73410347c0efcf500ca3", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
9,229
c
#pragma once #include <cstdint> namespace drivers { namespace midi { namespace scummvm { #pragma pack(push) #pragma pack(1) struct InstrumentExtra { uint8_t a; uint8_t b; uint8_t c; uint8_t d; ...
31.55
53
(translation_unit) "#pragma once\n\n#include <cstdint>\n\nnamespace drivers\n{\n namespace midi\n {\n namespace scummvm\n {\n#pragma pack(push)\n#pragma pack(1)\n struct InstrumentExtra\n {\n uint8_t a;\n uint8_t b;\n uint8_t c;\n ...
264
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 31.55, "nodes": 176, "errors": 0, "source_hash": "ec82acc7b379c547f9543f0e12fbc744ad1cff38a039452756e1bd134cca75ee", "categorized_nodes": 118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,230
c
/******************************************************************************* * wrapper/junction_wrapper.h * * Wrapper to use junction's junction::ConcurrentMap_... in our benchmarks * use #define JUNCTION_TYPE junction::ConcurrentMap_Leapfrog to chose the table * * Part of Project growt - https://github.com/T...
32.56
36
(translation_unit) "/*******************************************************************************\n * wrapper/junction_wrapper.h\n *\n * Wrapper to use junction's junction::ConcurrentMap_... in our benchmarks\n * use #define JUNCTION_TYPE junction::ConcurrentMap_Leapfrog to chose the table\n *\n * Part of Project gr...
234
14
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 32.56, "nodes": 140, "errors": 0, "source_hash": "a5223df0a637dcaa8e4b2838a0f8acccd0ea2c534b75d827806527edf2cf1791", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
9,231
c
// // CYConstParameters.h // Cheneyee // // Created by <NAME> on 2019/7/4. // Copyright © 2019 <NAME>. All rights reserved. // 通用的请求参数请放在这里 #import "CYDataModel.h" NS_ASSUME_NONNULL_BEGIN @interface CYConstParameters : CYDataModel @end NS_ASSUME_NONNULL_END
19.31
13
(translation_unit) "//\n// CYConstParameters.h\n// Cheneyee\n//\n// Created by <NAME> on 2019/7/4.\n// Copyright © 2019 <NAME>. All rights reserved.\n// 通用的请求参数请放在这里\n\n#import "CYDataModel.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface CYConstParameters : CYDataModel\n\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment)...
27
4
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 19.31, "nodes": 16, "errors": 0, "source_hash": "9cebe96d05a8a9486f13c5959026c59b2eae0951a28f10d7c7e80f6ccf440464", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "NS_ASSUME_...
9,232
c
// // AddNePhone.h // Homework // // Created by Konstantina on 1/26/16. // Copyright © 2016 Konstantina. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> @interface AddNewPhone : UIViewController @property (nonatomic,strong) NSMutableArray* arr; @property (weak, nonatomic) IBOutle...
41.05
21
(translation_unit) "//\n// AddNePhone.h\n// Homework\n//\n// Created by Konstantina on 1/26/16.\n// Copyright © 2016 Konstantina. All rights reserved.\n//\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n\n@interface AddNewPhone : UIViewController\n\n@property (nonatomic,strong) NSMutableArray* arr;\n@p...
228
33
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 41.05, "nodes": 168, "errors": 0, "source_hash": "4787e93cc11ede88f49d76a83fab604d4719277d086be043de84d93b2df4c571", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <...
9,233
c
#ifndef KRITI_RENDER__PROGRAM_H #define KRITI_RENDER__PROGRAM_H #include <boost/shared_ptr.hpp> #include <map> #include "Shader.h" #include "../math/Colour.h" #include "../math/Matrix.h" namespace Kriti { namespace Render { class Texture; class TextureContext; class Program { private: std::string m_vsName; ...
31.47
38
(translation_unit) "#ifndef KRITI_RENDER__PROGRAM_H\n#define KRITI_RENDER__PROGRAM_H\n\n#include <boost/shared_ptr.hpp>\n\n#include <map>\n\n#include "Shader.h"\n\n#include "../math/Colour.h"\n#include "../math/Matrix.h"\n\nnamespace Kriti {\nnamespace Render {\n\nclass Texture;\nclass TextureContext;\n\nclass Program ...
381
20
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 31.47, "nodes": 216, "errors": 0, "source_hash": "c1ae310def8bc6744fff39f2f94c452aaa05a63a0dc2685e8bd58d6049ff6ea5", "categorized_nodes": 160}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,234
c
#include <string.h> #if defined(__APPLE__) #include <sys/resource.h> /* avoiding circular dependency */ #include <sys/signal.h> /* avoiding circular dependency */ #elif defined(__FreeBSD__) #include <stdint.h> /* before sys/cdefs.h */ #elif defined(__gnu_linux__) #if !defined(_BITS_LIBIO_H) #include <features.h> /* __G...
27.51
35
(translation_unit) "#include <string.h>\n#if defined(__APPLE__)\n#include <sys/resource.h> /* avoiding circular dependency */\n#include <sys/signal.h> /* avoiding circular dependency */\n#elif defined(__FreeBSD__)\n#include <stdint.h> /* before sys/cdefs.h */\n#elif defined(__gnu_linux__)\n#if !defined(_BITS_LIBIO_H)\n...
148
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 27.51, "nodes": 119, "errors": 0, "source_hash": "dd23ea66a315a5f7ef219b984d29aedc98e4cc651df14328b3b425d0f1158915", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
9,235
c
// // ABUAdSDKManager.h // ABUAdSDK // // Created by wangchao on 2020/2/23. // Copyright © 2020 bytedance. All rights reserved. // #import <Foundation/Foundation.h> #import "ABUAdSDKDefines.h" #import "ABUUserInfoForSegment.h" /// ABUAdSDKManager @interface ABUAdSDKManager : NSObject ///SDKVersion @property (no...
39.4
47
(translation_unit) "//\n// ABUAdSDKManager.h\n// ABUAdSDK\n//\n// Created by wangchao on 2020/2/23.\n// Copyright © 2020 bytedance. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n#import "ABUAdSDKDefines.h"\n#import "ABUUserInfoForSegment.h"\n\n/// ABUAdSDKManager\n@interface ABUAdSDKManager : NSO...
212
16
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 39.4, "nodes": 121, "errors": 0, "source_hash": "09a6c7fcc4a788c02e2afa25c408e89f13709f16b9b130b50bbefd7d5e48302e", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
9,236
c
// // LogisticsCell.h // YTproject // // Created by suhuahao on 2018/7/21. // Copyright © 2018年 suhuahao. All rights reserved. // #import <UIKit/UIKit.h> #import "LogistcModel.h" @interface LogisticsCell : UITableViewCell @property (strong, nonatomic)LogistcModel *model; @end
22.42
12
(translation_unit) "//\n// LogisticsCell.h\n// YTproject\n//\n// Created by suhuahao on 2018/7/21.\n// Copyright © 2018年 suhuahao. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "LogistcModel.h"\n\n@interface LogisticsCell : UITableViewCell\n\n@property (strong, nonatomic)LogistcModel *model;\n\n@end\...
39
6
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 22.42, "nodes": 26, "errors": 0, "source_hash": "b765ab9708c1e96d23e7ead37112d41ac436304a097ddb05b8fa965a3f92e236", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
9,237
c
// // ModuleDetail.h // Exercise1 // // Created by Student1 on 24/5/18. // Copyright © 2018 ciyfhx. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> @interface ModuleDetail : NSObject @property (nonatomic) UIImage* moduleImage; @property (nonatomic) NSString* moduleTitle; @proper...
34.75
16
(translation_unit) "//\n// ModuleDetail.h\n// Exercise1\n//\n// Created by Student1 on 24/5/18.\n// Copyright © 2018 ciyfhx. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n\n@interface ModuleDetail : NSObject\n\n@property (nonatomic) UIImage* moduleImage;\n@property (nonatom...
133
21
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 34.75, "nodes": 90, "errors": 0, "source_hash": "bbe03e06c4eedc7278e48fb114825c52634d91aa6f3b3c2e4406d3533a4c3069", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
9,238
c
// Tic-tac-toe (T3) Network Game // <NAME> //----------------------------------------------------------------------------- // Compile notes for C99 code //----------------------------------------------------------------------------- // gcc -o t3 t3.c udp.c //----------------------------------------------------------...
28.73
223
(translation_unit) "// Tic-tac-toe (T3) Network Game\n// <NAME>\n\n//-----------------------------------------------------------------------------\n// Compile notes for C99 code\n//-----------------------------------------------------------------------------\n\n// gcc -o t3 t3.c udp.c\n\n//-----------------------------...
1,741
0
{"language": "c", "success": true, "metadata": {"lines": 223, "avg_line_length": 28.73, "nodes": 958, "errors": 0, "source_hash": "ab30230876248d3538c6aef3a1b20313cedee280879f044e60c67211fd97d0a0", "categorized_nodes": 648}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,239
c
/** @file Reset scheduling library services Copyright (c) 2019 Intel Corporation. All rights reserved. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #ifndef _SI_SCHEDULE_RESET_LIB_H_ #define _SI_SCHEDULE_RESET_LIB_H_ #include <Uefi/UefiMultiPhase.h> #include <PchResetPlatformSpecific.h> ...
26.81
48
(translation_unit) "/** @file \n Reset scheduling library services \n \n Copyright (c) 2019 Intel Corporation. All rights reserved. <BR> \n \n SPDX-License-Identifier: BSD-2-Clause-Patent \n**/ \n \n#ifndef _SI_SCHEDULE_RESET_LIB_H_ \n#define _SI_SCHEDULE_RESET_LIB_H_ \n \n#include <Uefi/UefiMultiPhase.h> \n#include...
62
3
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 26.81, "nodes": 46, "errors": 0, "source_hash": "25be38d4054c428cd87199f4994c5bb74851066e3c7c1f80d5b43cdb5c45cb31", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,240
c
/* * Copyright © 2012-2016 VMware, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the “License”); you may not * use this file except in compliance with the License. You may obtain a copy * of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
31.09
225
(translation_unit) "/*\n * Copyright © 2012-2016 VMware, Inc. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the “License”); you may not\n * use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n *...
1,418
0
{"language": "c", "success": true, "metadata": {"lines": 225, "avg_line_length": 31.09, "nodes": 828, "errors": 0, "source_hash": "583c1d3a706b011356bf8c9689eca4efda2fb82e32ef0e01f806c7aef58472dd", "categorized_nodes": 550}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "\"i...
9,241
c
#include "Graph.h" typedef struct Graph{ Node* nodes[200]; int nodesCount; int matrix[200][200]; }Graph; typedef struct Node{ int index; Graph* graph; } Node;
16.9
10
(translation_unit) "#include "Graph.h"\n\ntypedef struct Graph{\n Node* nodes[200];\n int nodesCount;\n int matrix[200][200];\n}Graph;\n\ntypedef struct Node{\n int index;\n Graph* graph;\n} Node;\n" (preproc_include) "#include "Graph.h"\n" (#include) "#include" (string_literal) ""Graph.h"" ...
63
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 16.9, "nodes": 40, "errors": 0, "source_hash": "b73fca106023d16feb7d305e03434d0683c02e6f4543612348d5d374bd2b11d5", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
9,242
c
#ifndef TR_StraightLine_Propagator_H_ #define TR_StraightLine_Propagator_H_ #include "TrackingTools/GeomPropagators/interface/Propagator.h" #include "DataFormats/TrajectorySeed/interface/PropagationDirection.h" #include "TrackingTools/TrajectoryState/interface/TrajectoryStateOnSurface.h" class MagneticField; /** A...
38.79
63
(translation_unit) "#ifndef TR_StraightLine_Propagator_H_\n#define TR_StraightLine_Propagator_H_\n\n#include "TrackingTools/GeomPropagators/interface/Propagator.h"\n#include "DataFormats/TrajectorySeed/interface/PropagationDirection.h"\n#include "TrackingTools/TrajectoryState/interface/TrajectoryStateOnSurface.h"\n\ncl...
469
41
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 38.79, "nodes": 239, "errors": 0, "source_hash": "eadd76a955fe7b731dd2c41a14f10d4b30604b912f95f2fa87d9cfdcef28ec77", "categorized_nodes": 182}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,243
c
#include <asm-sh/sci.h>
23
1
(translation_unit) "#include <asm-sh/sci.h>\n" (preproc_include) "#include <asm-sh/sci.h>\n" (#include) "#include" (system_lib_string) "<asm-sh/sci.h>"
4
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 23.0, "nodes": 3, "errors": 0, "source_hash": "1f2da15d8fe950a03f36cc0ef7e77ad5b7e4c60da51a177f74df5e3512730db5", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <...
9,244
c
/* bug #1348, wrongly optimized integer promotion in comparison */ #include <stdio.h> static const int notrandtab[] = { 0xffff, 0x7fff, 0x3fff, 0x1fff, 0x0fff, 0x07ff, 0x03ff, 0x01ff, 0x00ff, 0x007f, 0x003f, 0x001f, 0x000f, 0x0007, 0x0003, 0x0001 }; static unsigned char notrandcount = 0; static int ...
26.02
47
(translation_unit) "/* bug #1348, wrongly optimized integer promotion in comparison */\n\n#include <stdio.h>\n\nstatic const int notrandtab[] = {\n 0xffff, 0x7fff, 0x3fff, 0x1fff,\n 0x0fff, 0x07ff, 0x03ff, 0x01ff,\n 0x00ff, 0x007f, 0x003f, 0x001f,\n 0x000f, 0x0007, 0x0003, 0x0001\n};\n\nstatic unsigned char...
388
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 26.02, "nodes": 213, "errors": 0, "source_hash": "7936e30f526e627f05ed19bc36b8d450afe2916eaaa4f3dc18b645b76278d681", "categorized_nodes": 160}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,245
c
#include<stdio.h> #include<math.h> #include "simonalgo.h" #include "modes.h" void encrypt_file_ecb(FILE *input, FILE *output, void (*function) (uint32_t*, uint32_t*, uint16_t*)) { pass_header(input, output); uint16_t key_exp[32]; key_generation((uint64_t*) key, key_exp); uint32_t block;...
25.28
172
(translation_unit) "#include<stdio.h> \n#include<math.h> \n#include "simonalgo.h" \n#include "modes.h" \n \nvoid encrypt_file_ecb(FILE *input, FILE *output, \n void (*function) (uint32_t*, uint32_t*, uint16_t*)) { \n pass_header(input, output); \n \n uint16_t key_exp[32]; \n key_generation((uint64_t*) key, ...
1,600
0
{"language": "c", "success": true, "metadata": {"lines": 172, "avg_line_length": 25.28, "nodes": 941, "errors": 0, "source_hash": "d29b868dca0adf2154730cd5c0c630e96fabea80ea353ce514b7d88eb8a5c0ec", "categorized_nodes": 663}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,246
c
#ifndef Led_h #define Led_h class Led { public: // Constructor Led(byte pin); // Functions void on(); void off(); private: // variables byte _pin; }; #endif
11.6
15
(translation_unit) "#ifndef Led_h\n#define Led_h\n\nclass Led\n{\n public:\n // Constructor\n Led(byte pin);\n\n // Functions\n void on();\n void off();\n\n private:\n // variables\n byte _pin;\n};\n\n#endif" (preproc_ifdef) "#ifndef Led_h\n#define Led_h\n\nclass Led\n{\n public:\n // Const...
56
1
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 11.6, "nodes": 32, "errors": 0, "source_hash": "f4b4e03bd1bda43e6bb389cba1448693db2e16924b0f82358404f89f7e364fb9", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef L...
9,247
c
// // CMPConsentTool.h // GDPR // #import <Foundation/Foundation.h> #import "CMPConfig.h" #import "CloseListener.h" #import "CloseListenerDelegate.h" #import "OpenListener.h" #import "NetworkErrorListener.h" #import "ServerErrorListener.h" #import "CustomOpenListener.h" #import "CMPServerResponse.h" #import <UIKit/U...
36.07
105
(translation_unit) "//\n// CMPConsentTool.h\n// GDPR\n//\n\n#import <Foundation/Foundation.h>\n#import "CMPConfig.h"\n#import "CloseListener.h"\n#import "CloseListenerDelegate.h"\n#import "OpenListener.h"\n#import "NetworkErrorListener.h"\n#import "ServerErrorListener.h"\n#import "CustomOpenListener.h"\n#import "CMPS...
454
45
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 36.07, "nodes": 294, "errors": 0, "source_hash": "f290d66a6d91bee4dd2698d77dd17470b568d60fc7b604bb8ab7600d90b26742", "categorized_nodes": 163}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#impor...
9,248
c
#pragma once #include <chrono> #include <memory> #include "envoy/common/pure.h" #include "envoy/grpc/status.h" #include "envoy/service/ext_proc/v3alpha/external_processor.pb.h" namespace Envoy { namespace Extensions { namespace HttpFilters { namespace ExternalProcessing { class ExternalProcessorStream { public: v...
36.05
37
(translation_unit) "#pragma once\n\n#include <chrono>\n#include <memory>\n\n#include "envoy/common/pure.h"\n#include "envoy/grpc/status.h"\n#include "envoy/service/ext_proc/v3alpha/external_processor.pb.h"\n\nnamespace Envoy {\nnamespace Extensions {\nnamespace HttpFilters {\nnamespace ExternalProcessing {\n\nclass Ext...
304
22
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 36.05, "nodes": 183, "errors": 0, "source_hash": "c8d0751712c980ab1423f9350bd215162217a15d6657aa30bf6164982ad72304", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,249
c
/* * Copyright (c) 2003, Intel Corporation. All rights reserved. * Created by: crystal.xiong REMOVE-THIS AT intel DOT com * This file is licensed under the GPL license. For the full content * of this license, see the COPYING file at the top level of this * source tree. */ /* In x-mode * There are severa...
29.02
139
(translation_unit) "/*\n * Copyright (c) 2003, Intel Corporation. All rights reserved.\n * Created by: crystal.xiong REMOVE-THIS AT intel DOT com\n * This file is licensed under the GPL license. For the full content\n * of this license, see the COPYING file at the top level of this\n * source tree.\n */\n\n/* In...
981
0
{"language": "c", "success": true, "metadata": {"lines": 139, "avg_line_length": 29.02, "nodes": 508, "errors": 0, "source_hash": "584634390339edd366afcf95d260e846ccefe11a1ff0f9c86cec5a8a33662acd", "categorized_nodes": 374}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,250
c
/* $Id$ */ /* * Copyright (c) 2012 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this ...
34.88
210
(translation_unit) "/* $Id$ */\n\n/*\n * Copyright (c) 2012 <NAME>\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 conditions\n * are met:\n * 1. Redistributions of source code must retain the above co...
1,597
0
{"language": "c", "success": true, "metadata": {"lines": 210, "avg_line_length": 34.88, "nodes": 958, "errors": 0, "source_hash": "69f43feac5b03d2301f7e344e5e99f1fd91d7e536fb188caeff4e1000622e963", "categorized_nodes": 680}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,251
c
#include "stm32f1xx_hal.h" #include "mems.h" #include "i2c.h" #include <math.h> #include "ssd1306.h" uint8_t CC = 0; char buf1[10]; char buf2[10]; volatile float temper,hum; void hts221WriteByte(uint8_t address, uint8_t data) { uint8_t dd[1]; dd[0] = data; HAL_I2C_Mem_Write(&hi2c1, HTS221_ADDRESS, address, I...
28.85
136
(translation_unit) "#include "stm32f1xx_hal.h"\n#include "mems.h"\n#include "i2c.h"\n#include <math.h>\n#include "ssd1306.h"\nuint8_t CC = 0;\nchar buf1[10];\nchar buf2[10];\nvolatile float temper,hum;\n\n\n\n\n\n\n void hts221WriteByte(uint8_t address, uint8_t data) {\n uint8_t dd[1];\n dd[0] = data;\n HAL_I2C_Mem_Wr...
1,488
0
{"language": "c", "success": true, "metadata": {"lines": 136, "avg_line_length": 28.85, "nodes": 860, "errors": 0, "source_hash": "ea4f249abcd04221f0704b9d1c672a3d11fcc24d919cb99d9caa888b670bba66", "categorized_nodes": 619}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,252
c
/* * Copyright (c) 2016 Intel Corporation. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, ...
39.1
58
(translation_unit) "/*\n * Copyright (c) 2016 Intel Corporation.\n *\n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this software and associated documentation files (the\n * "Software"), to deal in the Software without restriction, including\n * without limitation the rights to ...
230
1
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 39.1, "nodes": 162, "errors": 0, "source_hash": "42fa9e95fe0b98b73503a1d8acbe4eaf2ebc769b030bee7eb309198c60059e0e", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,253
c
/**************************************************************************** Copyright (c) 2008-2020 <NAME> (<NAME>) github: https://github.com/kevinwu1024/ExtremeCopy site: http://www.easersoft.com Licensed under the Apache License, Version 2.0 License (the "License"); you may not use this file except in complianc...
32.73
26
(translation_unit) "/****************************************************************************\n\nCopyright (c) 2008-2020 <NAME> (<NAME>)\n\ngithub: https://github.com/kevinwu1024/ExtremeCopy\nsite: http://www.easersoft.com\n\nLicensed under the Apache License, Version 2.0 License (the "License"); you may not use th...
119
4
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 32.73, "nodes": 71, "errors": 0, "source_hash": "711813408b2a30133f7615ea84c36adee6da22e2a626b419f312017f05723641", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
9,254
c
#import <Foundation/Foundation.h> @interface Animal : NSObject { int age; int height; NSString *name; } @property int age, height; @property (retain, readonly) NSString *name; @end
19.44
9
(translation_unit) "#import <Foundation/Foundation.h>\n\n@interface Animal : NSObject {\n int age;\n int height;\n NSString *name;\n}\n\n@property int age, height;\n@property (retain, readonly) NSString *name;\n\n@end\n" (preproc_call) "#import <Foundation/Foundation.h>\n" (preproc_directive) "#import" (prepr...
62
10
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 19.44, "nodes": 43, "errors": 0, "source_hash": "e2358085ddd37f22ceb1aec06f07ec19a0ef6327e59c171e2b1ab7ae468baf40", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
9,255
c
#ifndef __LIB_UNISTD_H__ # define __LIB_UNISTD_H__ #include <stddef.h> #include <stdint.h> #include <sys/types.h> // TODO: move me #define STDIN_FILENO 0 #define STDOUT_FILENO 1 #define STDERR_FILENO 2 //TODO: move me #define _SC_PAGE_SIZE 0 #define _SC_PAGESIZE _SC_PAGE_SIZE // Process part extern pid_t getpid(vo...
27.59
27
(translation_unit) "#ifndef __LIB_UNISTD_H__\n# define __LIB_UNISTD_H__\n\n#include <stddef.h>\n#include <stdint.h>\n#include <sys/types.h>\n\n// TODO: move me\n#define STDIN_FILENO 0\n#define STDOUT_FILENO 1\n#define STDERR_FILENO 2\n\n//TODO: move me\n#define _SC_PAGE_SIZE 0\n#define _SC_PAGESIZE _SC_PAGE_SIZE\n\n\n/...
225
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 27.59, "nodes": 175, "errors": 0, "source_hash": "a04fb15839250e9775bd6892cd66775f72743c1279300b1269ce636a89b1daf4", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,256
c
#pragma once #include <unordered_set> class NetLibrary; namespace rage { class netObject; } class CNetGamePlayer; namespace sync { class INetObjMgrAbstraction { public: virtual ~INetObjMgrAbstraction() = default; virtual bool RegisterNetworkObject(rage::netObject* object) = 0; virtual void DestroyNetworkObjec...
36.2
46
(translation_unit) "#pragma once\n\n#include <unordered_set>\n\nclass NetLibrary;\n\nnamespace rage\n{\nclass netObject;\n}\n\nclass CNetGamePlayer;\n\nnamespace sync\n{\nclass INetObjMgrAbstraction\n{\npublic:\n virtual ~INetObjMgrAbstraction() = default;\n\n virtual bool RegisterNetworkObject(rage::netObject* object)...
558
37
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 36.2, "nodes": 389, "errors": 0, "source_hash": "46154e60876d4a57b140ff5199b2ced9deccf74da88ed0766e740b5c661ccea9", "categorized_nodes": 231}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
9,257
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/CoreFollowUp.framework/CoreFollowUp */ @interface FLFollowUpAction : NSObject <NSSecureCoding> { NSString * _label; NSData * _launchActionArguments; NSURL * _launchActionURL; unsigned long long _sqlID; NSURL * _url; } @pr...
30.41
32
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/CoreFollowUp.framework/CoreFollowUp\n */\n\n@interface FLFollowUpAction : NSObject <NSSecureCoding> {\n NSString * _label;\n NSData * _launchActionArguments;\n NSURL * _launchActionURL;\n unsigned long long _sql...
364
32
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 30.41, "nodes": 238, "errors": 0, "source_hash": "d1cd60ace786a407e8a8aebc69b0d419a00b2699f2e496b405210beac3375691", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": ...
9,258
c
// -*- mode: objective-c -*- @import Cocoa; @interface Updater : NSObject - (void)checkForUpdatesInBackground; - (void)checkForUpdatesStableOnly; - (void)checkForUpdatesWithBetaVersion; @end
26.29
7
(translation_unit) "// -*- mode: objective-c -*-\n\n@import Cocoa;\n\n@interface Updater : NSObject\n\n- (void)checkForUpdatesInBackground;\n- (void)checkForUpdatesStableOnly;\n- (void)checkForUpdatesWithBetaVersion;\n\n@end\n" (comment) "// -*- mode: objective-c -*-" (ERROR) "@import Cocoa;\n\n@interface Updater :...
50
7
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 26.29, "nodes": 30, "errors": 0, "source_hash": "28c2e8d644ffe9d448abc824441a33bfbb4b415a8cb94675c8be4315eea16919", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@import Cocoa;\n\...
9,259
c
#include <sys/types.h> #include <sys/stat.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> /* 파일 타입을 검사한다. */ int main(int argc, char *argv[]) { int i; struct stat buf; for (i = 1; i < argc; i++) { printf("%s: ", argv[i]); if (lstat(argv[i], &buf) < 0) { ...
26.76
33
(translation_unit) "#include <sys/types.h> \n#include <sys/stat.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <unistd.h>\n\n/* 파일 타입을 검사한다. */ \nint main(int argc, char *argv[])\n{ \n int i;\n struct stat buf;\n\n for (i = 1; i < argc; i++) {\n printf("%s: ", argv[i]);\n if (lst...
350
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 26.76, "nodes": 172, "errors": 0, "source_hash": "d9eeb2b6f099136a69f0df5055c11d6e721ee47d427daeaa8109728b1e92d8f6", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,260
c
/* * Small Allocator * * Copyright (c) 2008-2021 <NAME> <<EMAIL>> * * SPDX-License-Identifier: BSD-2-Clause */ #ifndef COLIBRI_DATA_SA_H #define COLIBRI_DATA_SA_H 1 #include <stddef.h> struct sa_pool *sa_pool_alloc (unsigned align); void sa_pool_free (struct sa_pool *o); void *sa_alloc (struct sa_pool *o, si...
24.71
14
(translation_unit) "/*\n * Small Allocator\n *\n * Copyright (c) 2008-2021 <NAME> <<EMAIL>>\n *\n * SPDX-License-Identifier: BSD-2-Clause\n */\n\n#ifndef COLIBRI_DATA_SA_H\n#define COLIBRI_DATA_SA_H 1\n\n#include <stddef.h>\n\nstruct sa_pool *sa_pool_alloc (unsigned align);\nvoid sa_pool_free (struct sa_pool *o);\n\nv...
66
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 24.71, "nodes": 53, "errors": 0, "source_hash": "6ef7a8a18239a4638744c33b33316b7c3a6d65bbf52adaff739faec097865822", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,261
c
#pragma once #include "../../namespaces.h" #include "../../util/signal.h" #include <boost/asio/ip/udp.hpp> #include <set> namespace ouinet { class LocalPeerDiscovery { using udp = asio::ip::udp; struct Impl; public: LocalPeerDiscovery(const asio::executor&, std::set<udp::endpoint> advertised_eps); ...
26.48
21
(translation_unit) "#pragma once\n\n#include "../../namespaces.h"\n#include "../../util/signal.h"\n#include <boost/asio/ip/udp.hpp>\n#include <set>\n\nnamespace ouinet {\n\nclass LocalPeerDiscovery {\n using udp = asio::ip::udp;\n struct Impl;\n\npublic:\n LocalPeerDiscovery(const asio::executor&, std::set<udp...
174
10
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 26.48, "nodes": 97, "errors": 0, "source_hash": "624cc0b2b44ef540cfc406aafe0cb0e84062ac20084f3e6242e0c1715c28adcf", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
9,262
c
#define __READDIR __readdir64 #define __GETDENTS __getdents64 #define DIRENT_TYPE struct dirent64 #include <sysdeps/posix/readdir.c> weak_alias (__readdir64, readdir64)
32.8
5
(translation_unit) "#define __READDIR __readdir64\n#define __GETDENTS __getdents64\n#define DIRENT_TYPE struct dirent64\n\n#include <sysdeps/posix/readdir.c>\n\nweak_alias (__readdir64, readdir64)\n" (preproc_def) "#define __READDIR __readdir64\n" (#define) "#define" (identifier) "__READDIR" (preproc_arg)...
26
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 32.8, "nodes": 20, "errors": 0, "source_hash": "1f6327433ba1dff6ab2c91759dbef356c75a26ca879d389ac5368a004e4d627f", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define __RE...
9,263
c
#ifndef DATACHANNEL_IMPL_ENDPOINT_H_ #define DATACHANNEL_IMPL_ENDPOINT_H_ #include "Datachannels.h" #include "sctp/Association.h" namespace datachannels { namespace impl { class Endpoint : public datachannels::Endpoint { public: Endpoint(TimeService& timeService); virtual ~Endpoint(); virtual bool Init(const Opt...
25.54
28
(translation_unit) "#ifndef DATACHANNEL_IMPL_ENDPOINT_H_\n#define DATACHANNEL_IMPL_ENDPOINT_H_\n#include "Datachannels.h"\n#include "sctp/Association.h"\n\nnamespace datachannels\n{\nnamespace impl\n{\n\nclass Endpoint : public datachannels::Endpoint\n{\npublic:\n Endpoint(TimeService& timeService);\n virtual ~Endpoint...
178
11
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 25.54, "nodes": 97, "errors": 0, "source_hash": "0680861b0312cd7666134a2f89cb1c601f0fc26d85a452f65c033393cafce028", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,264
c
#ifndef MATCHR_THEN_UNARY_PATTERN_H #define MATCHR_THEN_UNARY_PATTERN_H #include "UnaryPattern.h" #include "Context.h" class ThenUnaryPattern: public UnaryPattern { public: explicit ThenUnaryPattern(SEXP r_expression, Pattern* pattern, SEXP r_predicate...
33.97
33
(translation_unit) "#ifndef MATCHR_THEN_UNARY_PATTERN_H\n#define MATCHR_THEN_UNARY_PATTERN_H\n\n#include "UnaryPattern.h"\n#include "Context.h"\n\nclass ThenUnaryPattern: public UnaryPattern {\n public:\n explicit ThenUnaryPattern(SEXP r_expression,\n Pattern* pattern,\n ...
266
4
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 33.97, "nodes": 160, "errors": 0, "source_hash": "c904c4c1759f71ebd85040ee8d137c8422137d32be7bf5e842ec89e4bdcbab39", "categorized_nodes": 121}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,265
c
// ========================================================================== // // Copyright (c) 2017-2018 The University of Texas at Austin. // // All rights reserved. // // ...
36.16
151
(translation_unit) "// ========================================================================== //\n// Copyright (c) 2017-2018 The University of Texas at Austin. //\n// All rights reserved. //\n// ...
1,623
69
{"language": "c", "success": true, "metadata": {"lines": 151, "avg_line_length": 36.16, "nodes": 1004, "errors": 0, "source_hash": "8a2ae3b6c47c74666b79f29d94f2b09be1425f9374ce4a5cd7ee5c627d965d3c", "categorized_nodes": 689}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#prag...
9,266
c
/* * File : FaultHandling.c * Remark : Demonstrate how to handle fault(s) in NanoOS application. This application uses SetProbe()/ResetProbe() * of NanoOS API to 'simulate' or 'mimic' try/finally logic. */ #include "..\NanoOSApi.h" UINT32_T gVar = 0xFEEDABEE; /* Display fault(s) */ void ShowFault(U...
32.74
140
(translation_unit) "/*\n * File : FaultHandling.c\n * Remark : Demonstrate how to handle fault(s) in NanoOS application. This application uses SetProbe()/ResetProbe()\n * of NanoOS API to 'simulate' or 'mimic' try/finally logic.\n */\n\n#include "..\NanoOSApi.h"\n\nUINT32_T gVar = 0xFEEDABEE;\n\n/* Displa...
848
0
{"language": "c", "success": true, "metadata": {"lines": 140, "avg_line_length": 32.74, "nodes": 412, "errors": 0, "source_hash": "c63da4feb7cc6ecb3e54115d49a6b408b01c7b29ff6a6b39b37281098ddd4f4e", "categorized_nodes": 277}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,267
c
#ifndef MYCLASS_H #define MYCLASS_H #include <QObject> class MyClass : public QObject { Q_OBJECT public: explicit MyClass(QObject* parent = nullptr); void runIs(); ~MyClass(); void closeClass(); signals: public slots: private: bool close_class; }; #endif // MYCLASS_H
17.25
16
(translation_unit) "#ifndef MYCLASS_H\n#define MYCLASS_H\n\n#include <QObject>\n\nclass MyClass : public QObject {\n Q_OBJECT\npublic:\n explicit MyClass(QObject* parent = nullptr);\n void runIs();\n ~MyClass();\n void closeClass();\nsignals:\n\npublic slots:\nprivate:\n bool close_class;\n};\n\n#endi...
86
4
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 17.25, "nodes": 53, "errors": 0, "source_hash": "8caf14544d4a90dfb1c62a5b0577dd2095e9d42e58884f9f0cbd5702e878b5a1", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,268
c
// // Created by Duncan on 2/10/2017. // #ifndef GDA_SPRING_2017_WINDOW_H #define GDA_SPRING_2017_WINDOW_H class Window { }; #endif //GDA_SPRING_2017_WINDOW_H
15.1
10
(translation_unit) "//\n// Created by Duncan on 2/10/2017.\n//\n\n#ifndef GDA_SPRING_2017_WINDOW_H\n#define GDA_SPRING_2017_WINDOW_H\n\n\nclass Window {\n\n};\n\n\n#endif //GDA_SPRING_2017_WINDOW_H\n" (comment) "//" (comment) "// Created by Duncan on 2/10/2017." (comment) "//" (preproc_ifdef) "#ifndef GDA_SPRIN...
20
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 15.1, "nodes": 9, "errors": 0, "source_hash": "a59181b69b133f8abe6e87f69508cd6734f57915d3637db2f868a129e0bfa1c4", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef GDA...
9,269
c
/* kprintf.c - kputc, kgetc, kprintf */ #include <xinu.h> #include <stdarg.h> /*------------------------------------------------------------------------ * kputc - use polled I/O to write a character to the console *------------------------------------------------------------------------ */ syscall kputc(byte c...
30.41
73
(translation_unit) "/* kprintf.c - kputc, kgetc, kprintf */\n\n#include <xinu.h>\n#include <stdarg.h>\n\n\n/*------------------------------------------------------------------------\n * kputc - use polled I/O to write a character to the console\n *---------------------------------------------------------------------...
498
0
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 30.41, "nodes": 298, "errors": 0, "source_hash": "ee172f61a3a410c9fd2d5c6a5b4e5fc2ae90b362600cc4bb9d43b8bc1f77b330", "categorized_nodes": 215}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,270
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 <objc/NSObject.h> @class NSData; @interface CRPTEncryption : NSObject { NSData *_payload; NSData *_associatedData; } @prop...
31.12
17
(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 <objc/NSObject.h>\n\n@class NSData;\n\n@interface CRPTEncryption : NSObject\n{\n NSData *_payload;\n ...
109
13
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 31.12, "nodes": 65, "errors": 0, "source_hash": "a62db9e40ab762a12c21fc5683c3056df5c05e0406838368a53d84d58eaf6f53", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
9,271
c
/* SPDX-License-Identifier: MIT */ #ifndef _KCL_HEADER_DRM_AUTH_H_H_ #define _KCL_HEADER_DRM_AUTH_H_H_ #ifdef HAVE_DRM_DRM_AUTH_H #include_next <drm/drm_auth.h> #else #include <drm/drmP.h> #endif #endif
21.56
9
(translation_unit) "/* SPDX-License-Identifier: MIT */\n#ifndef _KCL_HEADER_DRM_AUTH_H_H_\n#define _KCL_HEADER_DRM_AUTH_H_H_\n\n#ifdef HAVE_DRM_DRM_AUTH_H\n#include_next <drm/drm_auth.h>\n#else\n#include <drm/drmP.h>\n#endif\n\n#endif\n" (comment) "/* SPDX-License-Identifier: MIT */" (preproc_ifdef) "#ifndef _KCL_H...
21
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 21.56, "nodes": 19, "errors": 0, "source_hash": "2e8b37357098268b3e16e52cbe31d622231ea52198b76a501c9faab1619dad46", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
9,272
c
#pragma once #include "NonInstanciable.h" namespace Storm { class VisualStudioOutputCompliantParser : Storm::NonInstanciable { public: // Returns if the path has been appended as Visual Studio Output expects. static bool produceVSOutputCompliantLine(std::string &inOutAppend, const std::string_view filePath,...
35.21
14
(translation_unit) "#pragma once\n \n#include "NonInstanciable.h" \n\n\nnamespace Storm\n{\n class VisualStudioOutputCompliantParser : Storm::NonInstanciable\n {\n public:\n // Returns if the path has been appended as Visual Studio Output expects.\n static bool produceVSOutputCompliantLine(std::string &inOutAppend, c...
120
8
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 35.21, "nodes": 60, "errors": 0, "source_hash": "1613a9293bb0fe97ad5274fe4a7d76bd9aa0ed28f3547bd84845c769e649e062", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
9,273
c
/* * Copyright (C) 2015-2017 Alibaba Group Holding Limited */ /* @file * * AOS Bluetooth Low Energy (BLE) Functions * */ #ifndef _AOS_BT_NVRAM_ACCESS_H_ #define _AOS_BT_NVRAM_ACCESS_H_ #ifndef OFFSETOF #define OFFSETOF( type, member ) ( (uintptr_t)&((type *)0)->member ) #endif /* OFFSETOF */ #define AOS_BT_P...
41.64
28
(translation_unit) "/*\n * Copyright (C) 2015-2017 Alibaba Group Holding Limited\n */\n\n/* @file\n *\n * AOS Bluetooth Low Energy (BLE) Functions\n *\n */\n\n#ifndef _AOS_BT_NVRAM_ACCESS_H_\n#define _AOS_BT_NVRAM_ACCESS_H_\n\n#ifndef OFFSETOF\n#define OFFSETOF( type, member ) ( (uintptr_t)&((type *)0)->member )\n#end...
77
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 41.64, "nodes": 66, "errors": 0, "source_hash": "9c0aa530b7cf6baadc7a7bfaa66fdd2e66213780f5469c8a1116f4b1a8f44c29", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,274
c
#ifndef _SEP_DECODER_H #define _SEP_DECODER_H /***************************************************************** ** ** io/decoder.h ** ** Code responsible from reading the binary September module files ** and decoding them into SepModules. ** *************** ** September ** ***********************************...
36.91
33
(translation_unit) "#ifndef _SEP_DECODER_H\n#define _SEP_DECODER_H\n\n/*****************************************************************\n **\n ** io/decoder.h\n **\n ** Code responsible from reading the binary September module files\n ** and decoding them into SepModules.\n **\n ***************\n ** September **\n ***...
103
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 36.91, "nodes": 70, "errors": 0, "source_hash": "fef18fab023c7f32ec9cc69f245bf7e767e94576d5674fdfa9b399a0908178be", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,275
c
//// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF //// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO //// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A //// PARTICULAR PURPOSE. //// //// Copyright (c) Microsoft Corporation. All rights reserved // stdaf...
27.32
34
(translation_unit) "//// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF \n//// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO \n//// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A \n//// PARTICULAR PURPOSE. \n//// \n//// Copyright (c) Microsoft Corporation. All ri...
79
1
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 27.32, "nodes": 58, "errors": 0, "source_hash": "ec0f7cad1d3066fea8f398e281847832553960acace2412a7d23beee58be34ad", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
9,276
c
#include "KMotionDef.h" #define SPINDLE_BIT 46 #define ZAXIS 2 #define SAFE_Z_HEIGHT 10000.0 main() { if (ReadBit(SPINDLE_BIT)) // only move up if Spindle was on { ClearBit(SPINDLE_BIT); //spindle off Move(ZAXIS,SAFE_Z_HEIGHT); while (!CheckDone(ZAXIS)); printf("SafeZ\n"); } }
18.25
16
(translation_unit) "#include "KMotionDef.h" \n \n#define SPINDLE_BIT 46 \n#define ZAXIS 2 \n#define SAFE_Z_HEIGHT 10000.0 \n \nmain() \n{ \n if (ReadBit(SPINDLE_BIT)) // only move up if Spindle was on \n { \n ClearBit(SPINDLE_BIT); //spindle off \n Move(ZAXIS,SAFE_Z_HEIGHT); \n while (!CheckDone(ZAXIS)); \n print...
90
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 18.25, "nodes": 46, "errors": 0, "source_hash": "ab05efa88feb10501ea8a267c2840d4bd953aed7b8e9a1b1ac41decf93b50d65", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
9,277
c
/* * Write s spatial smearing function in a format that * can be loaded into the static variational code. * */ #include <stdio.h> #include <math.h> /* * Ths routine writes a single smearing function, * over the spatial lattice, to a disk file. * * This is scalar code * * The smearing function is writ...
27.11
70
(translation_unit) "/*\n * Write s spatial smearing function in a format that\n * can be loaded into the static variational code.\n *\n */\n\n\n\n#include <stdio.h>\n#include <math.h>\n\n/*\n * Ths routine writes a single smearing function,\n * over the spatial lattice, to a disk file.\n *\n * This is scalar code\n...
347
0
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 27.11, "nodes": 186, "errors": 0, "source_hash": "59ebbaa5d55ca1cf6a1a40c84170fa6db5f011e44ab424124f5e4cd62a2a49b9", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,278
c
#include "rct_core.h" int main(int argc,char *argv[]) { r_status status; struct instance nci; rctContext *rct_ctx; rct_set_default_options(&nci); status = rct_get_options(argc, argv, &nci); if (status != RCT_OK) { rct_show_usage(); exit(1); } if (nci.show_vers...
21.97
36
(translation_unit) "#include "rct_core.h"\n\nint main(int argc,char *argv[])\n{\n r_status status;\n struct instance nci;\n rctContext *rct_ctx;\n\n rct_set_default_options(&nci);\n \n status = rct_get_options(argc, argv, &nci);\n if (status != RCT_OK) {\n rct_show_usage();\n exit(1);...
251
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 21.97, "nodes": 134, "errors": 0, "source_hash": "710f59d40dac7485e6c0f95317bafe2880e51606102c5b692ca3874b84265aa6", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,279
c
// dsp.cpp INT32 DspInit(); INT32 DspExit(); INT32 DspDo(INT16* Wave, INT32 nCount);
20.25
4
(translation_unit) "// dsp.cpp\nINT32 DspInit();\nINT32 DspExit();\nINT32 DspDo(INT16* Wave, INT32 nCount);\n" (comment) "// dsp.cpp" (declaration) "INT32 DspInit();" (type_identifier) "INT32" (function_declarator) "DspInit()" (identifier) "DspInit" (parameter_list) "()" (() "(" ...
35
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 20.25, "nodes": 23, "errors": 0, "source_hash": "a232f997cdc886aa88932de5350e3970eeebc635a3c0604626bb548024fb5c48", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "INT32 DspIn...
9,280
c
// Copyright 2021 <NAME> #ifndef MODULES_TASK_1_KOSTIN_M_VEC_MAX_DIFF_VEC_MAX_DIFF_H_ #define MODULES_TASK_1_KOSTIN_M_VEC_MAX_DIFF_VEC_MAX_DIFF_H_ #include <vector> std::vector<int> getRandomVector(int sz); int getParallelMaxDiff(std::vector<int> global_vec); int getSequentialMaxDiff(std::vector<int> vec); #endif /...
45.5
8
(translation_unit) "// Copyright 2021 <NAME>\n#ifndef MODULES_TASK_1_KOSTIN_M_VEC_MAX_DIFF_VEC_MAX_DIFF_H_\n#define MODULES_TASK_1_KOSTIN_M_VEC_MAX_DIFF_VEC_MAX_DIFF_H_\n\n#include <vector>\n\nstd::vector<int> getRandomVector(int sz);\nint getParallelMaxDiff(std::vector<int> global_vec);\nint getSequentialMaxDiff(std::...
70
4
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 45.5, "nodes": 50, "errors": 0, "source_hash": "238f0024973dab1453010ad22c4e6bb741a33987660d98385f91d303d03db228", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef MO...
9,281
c
#include "gets.h" int main() { int n; printf("\n"); while (getint(&n) != EOF) { printf("\t%d\n", n); } printf("\n"); return EXIT_SUCCESS; }
13.67
12
(translation_unit) "#include "gets.h"\n\nint main()\n{\n int n;\n\n printf("\n");\n while (getint(&n) != EOF)\n {\n printf("\t%d\n", n);\n }\n printf("\n");\n\n return EXIT_SUCCESS;\n}\n" (preproc_include) "#include "gets.h"\n" (#include) "#include" (string_literal) ""gets.h"" ...
81
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 13.67, "nodes": 40, "errors": 0, "source_hash": "3ab486b8985496ba1fe9fd50bd341cc80e877c106e210d754e5caaf651cc168f", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
9,282
c
#pragma once #include <string> #include <properties.h> #include <net/socket.h> #include <net/reactor.h> #include <forwarder.h> #include "module.h" #include <stdMessage.h> namespace airt { class Server { public: Server(); ~Server(); void onStart(); void onStop(); void onQuit(); void onPowerOff(); void...
34.1
61
(translation_unit) "#pragma once\n\n#include <string>\n#include <properties.h>\n#include <net/socket.h>\n#include <net/reactor.h>\n#include <forwarder.h>\n\n#include "module.h"\n#include <stdMessage.h>\n\nnamespace airt\n{\nclass Server\n{\npublic:\n Server();\n ~Server();\n\n void onStart();\n void onStop();\n vo...
608
34
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 34.1, "nodes": 372, "errors": 0, "source_hash": "24bbe25c0daa74f9679df6cb48cdcd1ee81a33951d61f4fa3e8207f699758de3", "categorized_nodes": 260}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
9,283
c
// // pnicorr.h // pni_correlation_service // // Created by <NAME> on 10/15/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #ifndef pni_correlation_service_pnicorr_h #define pni_correlation_service_pnicorr_h #ifdef __cplusplus extern "C" { #endif #include "opts2struct/opts2struct.h" #include "pnicorr_de...
19.21
19
(translation_unit) "//\n// pnicorr.h\n// pni_correlation_service\n//\n// Created by <NAME> on 10/15/14.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n\n#ifndef pni_correlation_service_pnicorr_h\n#define pni_correlation_service_pnicorr_h\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n#include "opts2struct/o...
52
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 19.21, "nodes": 29, "errors": 0, "source_hash": "b7e62d74ec9b21e2cca2d426c26d555ed3a1bb873fbcdbce8c78c8a0709f630d", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,284
c
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include "bios.h" /* A very simple program to demonstrate alarms and interrupt handlers. */ /* interrupt handler */ void handle_alarm() { printf("ALARM in core %d\n", cpu_core_id); } /* core boot func */ void bootfunc() { fprint...
20.78
45
(translation_unit) "#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <unistd.h>\n\n#include "bios.h"\n\n\n/* \n A very simple program to demonstrate alarms and \n interrupt handlers.\n*/\n\n\n/* interrupt handler */\nvoid handle_alarm()\n{\n printf("ALARM in core %d\n", cpu_core_id);\n}\n\n/* core...
234
0
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 20.78, "nodes": 117, "errors": 0, "source_hash": "8ed10704f04b1a476032653727669f6b9fb11a201f2e5689bb7a5fef80628ee9", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
9,285
c
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "GameFramework/Actor.h" #include "FourPlayerCoop/STypes.h" #include "SWeapon.generated.h" enum class EInventorySlot : uint8; class ASCharacter; UENUM() enum class EWeaponState { Idle, Firi...
31.19
210
(translation_unit) "// Fill out your copyright notice in the Description page of Project Settings.\n\n#pragma once\n\n#include "CoreMinimal.h"\n#include "GameFramework/Actor.h"\n#include "FourPlayerCoop/STypes.h"\n#include "SWeapon.generated.h"\n\nenum class EInventorySlot : uint8;\nclass ASCharacter;\n\nUENUM()\nenum ...
1,342
71
{"language": "c", "success": true, "metadata": {"lines": 210, "avg_line_length": 31.19, "nodes": 822, "errors": 0, "source_hash": "baed87d691f0e483abdd339aba44713c1d6483d36b0a1b6c62b39f637182ea62", "categorized_nodes": 540}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
9,286
c
#pragma once #include <cstdlib> #include <string> #include <assert.h> #define DEFAULT_BUFFER_SIZE 16 #define TESTING_MODE class TextBuffer { char* buffer; char* point; char* gapstrt; char* gapend; size_t size; size_t capacity; public: TextBuffer(); ~TextBuffer(); void move_point_left() { ...
25.96
170
(translation_unit) "#pragma once \n#include <cstdlib> \n#include <string> \n#include <assert.h> \n#define DEFAULT_BUFFER_SIZE 16 \n#define TESTING_MODE \n \nclass TextBuffer \n{ \n char* buffer; \n char* point; \n char* gapstrt; \n char* gapend; \n size_t size; \n size_t capacity; \npublic: \n TextBuffer(); \n ~TextBuf...
1,553
16
{"language": "c", "success": true, "metadata": {"lines": 170, "avg_line_length": 25.96, "nodes": 981, "errors": 0, "source_hash": "509f8a55318e7632b3a957c806d294a941556f5f0ad30aefbafcb8a897d139cc", "categorized_nodes": 645}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
9,287
c
/* * sensor_descriptor.h - sensor descriptor * * Copyright (c) 2015 Intel Corporation * * 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...
35.22
55
(translation_unit) "/*\n * sensor_descriptor.h - sensor descriptor\n *\n * Copyright (c) 2015 Intel Corporation\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://ww...
212
14
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 35.22, "nodes": 129, "errors": 0, "source_hash": "97992ff76a8fa1407cc632cc6e938fa24ab32929a90845a66fe55f3c4e942539", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,288
c
#ifndef __dx11ShaderSemantics_h__ #define __dx11ShaderSemantics_h__ namespace dx11ShaderSemantic { extern const char* kSTANDARDSGLOBAL; extern const char* kUndefined; extern const char* kWorld; extern const char* kWorldTranspose; extern const char* kWorldInverse; extern const char* kWorldInverseTrans...
28.15
240
(translation_unit) "#ifndef __dx11ShaderSemantics_h__ \n#define __dx11ShaderSemantics_h__ \n \nnamespace dx11ShaderSemantic \n{ \n extern const char* kSTANDARDSGLOBAL; \n extern const char* kUndefined; \n \n extern const char* kWorld; \n extern const char* kWorldTranspose; \n extern const char* kWorldInverse; \n extern...
1,754
0
{"language": "c", "success": true, "metadata": {"lines": 240, "avg_line_length": 28.15, "nodes": 1216, "errors": 0, "source_hash": "b1ac9bc6512345ebf6aba6817229b62b862e4dc35053136817d5afda740db77a", "categorized_nodes": 530}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
9,289
c
/* linux/drivers/mtd/maps/bast-flash.c * * Copyright (c) 2004-2005 Simtec Electronics * <NAME> <<EMAIL>> * * Simtec Bast (EB2410ITX) NOR MTD Mapping driver * * Changelog: * 20-Sep-2004 BJD Initial version * 17-Jan-2005 BJD Add whole device if no partitions found * * $Id: bast-flash.c,v 1.5 2005/11/07 11:...
28.43
178
(translation_unit) "/* linux/drivers/mtd/maps/bast-flash.c\n *\n * Copyright (c) 2004-2005 Simtec Electronics\n * <NAME> <<EMAIL>>\n *\n * Simtec Bast (EB2410ITX) NOR MTD Mapping driver\n *\n * Changelog:\n * 20-Sep-2004 BJD Initial version\n * 17-Jan-2005 BJD Add whole device if no partitions found\n *\n * $Id: ba...
1,292
11
{"language": "c", "success": true, "metadata": {"lines": 178, "avg_line_length": 28.43, "nodes": 782, "errors": 0, "source_hash": "03802950410af52aa9633ff1f36a2e033d714f698298586ff7b269ad6eca8f85", "categorized_nodes": 588}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,290
c
#include "sqlite3.h" #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ const sqlite3_module systblTablesModule; const sqlite3_module systblColumnsModule; const sqlite3_module systblKeysModule; const sqlite3_module systblFieldsModule; const sqlite3_module systblConstraintsModule; const sqlite3_module systblTbl...
32.79
19
(translation_unit) "#include "sqlite3.h"\n\n#ifdef __cplusplus\nextern "C" {\n#endif /* __cplusplus */\n\nconst sqlite3_module systblTablesModule;\nconst sqlite3_module systblColumnsModule;\nconst sqlite3_module systblKeysModule;\nconst sqlite3_module systblFieldsModule;\nconst sqlite3_module systblConstraintsModule;\...
98
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 32.79, "nodes": 52, "errors": 0, "source_hash": "47f6b4959f0a1d3819996a72464ad8f5e8a6fb72dacc718311c680375456998b", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
9,291
c
/*! * dockerpack. * config.h * * \date 09/25/2020 * \author <NAME> (<EMAIL>) * \link https://github.com/edwardstock */ #ifndef DOCKERPACK_CONFIG_H #define DOCKERPACK_CONFIG_H #include "data.h" #include "execmd.h" #include <cstdlib> #include <memory> #include <string> #include <unordered_map> #include <vector...
32.26
66
(translation_unit) "/*!\n * dockerpack.\n * config.h\n *\n * \date 09/25/2020\n * \author <NAME> (<EMAIL>)\n * \link https://github.com/edwardstock\n */\n#ifndef DOCKERPACK_CONFIG_H\n#define DOCKERPACK_CONFIG_H\n\n#include "data.h"\n#include "execmd.h"\n\n#include <cstdlib>\n#include <memory>\n#include <string>\n#inc...
653
37
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 32.26, "nodes": 384, "errors": 0, "source_hash": "aed598383ab1f2ef1ffdc45ece43c34b10a8356efb0bafaad79e67120e60a046", "categorized_nodes": 261}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,292
c
#ifndef DD_OPENTRACING_SAMPLE_H #define DD_OPENTRACING_SAMPLE_H #include <datadog/opentracing.h> #include <opentracing/tracer.h> #include <iostream> #include <limits> #include <map> #include <mutex> #include <nlohmann/json.hpp> #include "propagation.h" namespace ot = opentracing; using json = nlohmann::json; namespa...
34.49
59
(translation_unit) "#ifndef DD_OPENTRACING_SAMPLE_H\n#define DD_OPENTRACING_SAMPLE_H\n\n#include <datadog/opentracing.h>\n#include <opentracing/tracer.h>\n#include <iostream>\n#include <limits>\n#include <map>\n#include <mutex>\n#include <nlohmann/json.hpp>\n#include "propagation.h"\n\nnamespace ot = opentracing;\nusin...
535
32
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 34.49, "nodes": 288, "errors": 0, "source_hash": "2a9de9c91fb260d469f5e5e438350d111be2a764ad0984bf2f60a8422b2e49d5", "categorized_nodes": 206}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,293
c
/* Unix SMB/CIFS implementation. irpc services for the NBT server Copyright (C) <NAME> 2005 Copyright (C) <NAME> 2005 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...
31.48
186
(translation_unit) "/* \n Unix SMB/CIFS implementation.\n\n irpc services for the NBT server\n\n Copyright (C) <NAME> 2005\n Copyright (C) <NAME> 2005\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 Fr...
1,411
4
{"language": "c", "success": true, "metadata": {"lines": 186, "avg_line_length": 31.48, "nodes": 851, "errors": 0, "source_hash": "3e4df2ec69f08e35013d606942ffbfc6e710d91dd02be160e9f0cfe54e726aba", "categorized_nodes": 673}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,294
c
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif #import "LDZFBaseCell.h" #import "LdzfTemplateCell.h" #import "LdzfTemplateCellData.h" #import "LdzfTemplateGridCell.h" FOUN...
24.47
17
(translation_unit) "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#else\n#ifndef FOUNDATION_EXPORT\n#if defined(__cplusplus)\n#define FOUNDATION_EXPORT extern "C"\n#else\n#define FOUNDATION_EXPORT extern\n#endif\n#endif\n#endif\n\n#import "LDZFBaseCell.h"\n#import "LdzfTemplateCell.h"\n#import "LdzfTemplateCellData.h"\n#im...
64
1
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 24.47, "nodes": 54, "errors": 0, "source_hash": "c036a5d83e0d330d70929d0247942f9bfa436ff321a5187bae074fff71c77d65", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef _...
9,295
c
#ifndef Constants_h #define Constants_h static const int kTheAnswer = 42; #endif /* Constants_h */
23.75
4
(translation_unit) "#ifndef Constants_h\n#define Constants_h\n\nstatic const int kTheAnswer = 42;\n\n#endif /* Constants_h */\n" (preproc_ifdef) "#ifndef Constants_h\n#define Constants_h\n\nstatic const int kTheAnswer = 42;\n\n#endif" (#ifndef) "#ifndef" (identifier) "Constants_h" (preproc_def) "#define C...
20
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 23.75, "nodes": 13, "errors": 0, "source_hash": "a1e17dca954bef0e1e943ee521c7b92135421d90e86dc3362b3921732e42267b", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef Co...
9,296
c
#ifndef Vsa_IEvaluatorPoolSettings_Ex7_Interface #define Vsa_IEvaluatorPoolSettings_Ex7_Interface #ifndef Vsa_IEvaluatorPoolSettings_Ex7 #define Vsa_IEvaluatorPoolSettings_Ex7 extern #endif /********************* ***** Library ***** *********************/ #include "Vsa.h" /************************ ***** Compo...
37.87
38
(translation_unit) "#ifndef Vsa_IEvaluatorPoolSettings_Ex7_Interface\n#define Vsa_IEvaluatorPoolSettings_Ex7_Interface\n\n#ifndef Vsa_IEvaluatorPoolSettings_Ex7\n#define Vsa_IEvaluatorPoolSettings_Ex7 extern\n#endif\n\n/*********************\n ***** Library *****\n *********************/\n\n#include "Vsa.h"\n\n/*****...
206
8
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 37.87, "nodes": 120, "errors": 0, "source_hash": "b42b72a1a7392d0203987ac19b354305eb83168b47b9381f70bb5e64c7d996df", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,297
c
/* Copyright (c) 2019 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dist...
42.78
45
(translation_unit) "/*\nCopyright (c) 2019 <NAME>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\n to use, copy, mo...
294
29
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 42.78, "nodes": 160, "errors": 0, "source_hash": "40efd2ef8c0299a82388f3b6db9ec92ae20ff368f436639bd9742d953021908c", "categorized_nodes": 109}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef CIRCLE...
9,298
c
/* SDL_mixer: An audio mixer library based on the SDL library Copyright (C) 1997-2012 <NAME> <<EMAIL>> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to a...
27.92
213
(translation_unit) "/*\n SDL_mixer: An audio mixer library based on the SDL library\n Copyright (C) 1997-2012 <NAME> <<EMAIL>>\n\n This software is provided 'as-is', without any express or implied\n warranty. In no event will the authors be held liable for any damages\n arising from the use of this software.\n\n...
1,634
2
{"language": "c", "success": true, "metadata": {"lines": 213, "avg_line_length": 27.92, "nodes": 937, "errors": 0, "source_hash": "68a989c6784ac5109ecc548886f9388f1117f75e4782e477737fbb5736aa2285", "categorized_nodes": 700}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifde...
9,299