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
#pragma once #include "Rule.h" // Rule for steering a boid towards the average position of its neighbours. class Cohesion : public Rule { public: Cohesion() = default; ~Cohesion() = default; Vector3 force(GameData* _GD, std::vector<Boid*>& _neighbours, ParameterisedRule* _rule_params) override; private: ...
33.54
13
(translation_unit) "#pragma once\n#include "Rule.h"\n\n// Rule for steering a boid towards the average position of its neighbours.\nclass Cohesion : public Rule\n{\npublic:\n Cohesion() = default;\n ~Cohesion() = default;\n\n Vector3 force(GameData* _GD, std::vector<Boid*>& _neighbours, ParameterisedRule* _rul...
121
5
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 33.54, "nodes": 75, "errors": 0, "source_hash": "f33392ad7e4b33ddfbe4403d612b004bb4f04c62fac07862d864a0b35fe7754b", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
6,100
c
#ifndef LR_SEMANTIC_ANALYSIS_PROC_INPUT_H #define LR_SEMANTIC_ANALYSIS_PROC_INPUT_H #include "global.h" void input_preprocess(); void display_input(); #endif //LR_SEMANTIC_ANALYSIS_PROC_INPUT_H
31.33
6
(translation_unit) "#ifndef LR_SEMANTIC_ANALYSIS_PROC_INPUT_H\n#define LR_SEMANTIC_ANALYSIS_PROC_INPUT_H\n\n#include "global.h"\n\nvoid input_preprocess();\nvoid display_input();\n\n#endif //LR_SEMANTIC_ANALYSIS_PROC_INPUT_H\n" (preproc_ifdef) "#ifndef LR_SEMANTIC_ANALYSIS_PROC_INPUT_H\n#define LR_SEMANTIC_ANALYSIS_P...
31
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 31.33, "nodes": 20, "errors": 0, "source_hash": "ba7ad1063c718ab6dcdda0062efb0ce0f03584223bc0e6038e057f43c9dd8eb3", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef L...
6,101
c
#pragma once #include <RuntimeObjectSystem/IObject.h> namespace BABYLON { namespace rtc { enum InterfaceIDEnumConsoleExample { IID_RENDERABLESCENE_PRODUCER = IID_ENDInterfaceID, IID_ENDInterfaceIDEnumConsoleExample }; } // namespace BABYLON } // namespace rtc
22.82
11
(translation_unit) "#pragma once\n#include <RuntimeObjectSystem/IObject.h>\n\nnamespace BABYLON {\nnamespace rtc {\nenum InterfaceIDEnumConsoleExample\n{\n IID_RENDERABLESCENE_PRODUCER = IID_ENDInterfaceID,\n\n IID_ENDInterfaceIDEnumConsoleExample\n};\n} // namespace BABYLON\n} // namespace rtc\n" (preproc_call) "#pr...
35
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 22.82, "nodes": 22, "errors": 0, "source_hash": "2b80082d265dd21d20a114f930ec48b613e05a8761d0644716f4df75898a91d2", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
6,102
c
#include <std.h> #include "../include/tabor.h" inherit ROOM; int count; void create() { ::create(); set_terrain(WOOD_BUILDING); set_travel(DIRT_ROAD); set_property("indoors",1); set_property("light",2); set_name("Empty Lot"); set_short("Empty Lot"); set_long( "%^BOLD%^Empty Lot, Tabor%^RESET...
32.75
40
(translation_unit) "#include <std.h>\n#include "../include/tabor.h"\ninherit ROOM;\n\nint count;\nvoid create()\n{\n ::create();\n set_terrain(WOOD_BUILDING);\n set_travel(DIRT_ROAD);\n set_property("indoors",1);\n set_property("light",2);\n set_name("Empty Lot");\n set_short("Empty Lot");\n set_long(\n ...
359
12
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 32.75, "nodes": 166, "errors": 0, "source_hash": "5747b29533405b7b10f357fc37dff5d3c9a386d0993a08d4f8cbb62dddfa3c4e", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,103
c
/* -*- Mode: c; c-basic-offset: 2 -*- * * rdf_log.c - Kids love log * * Copyright (C) 2004-2008, <NAME> http://www.dajobe.org/ * Copyright (C) 2004-2004, University of Bristol, UK http://www.bristol.ac.uk/ * * This package is Free Software and part of Redland http://librdf.org/ * * It is licensed under the f...
25.24
286
(translation_unit) "/* -*- Mode: c; c-basic-offset: 2 -*-\n *\n * rdf_log.c - Kids love log\n *\n * Copyright (C) 2004-2008, <NAME> http://www.dajobe.org/\n * Copyright (C) 2004-2004, University of Bristol, UK http://www.bristol.ac.uk/\n * \n * This package is Free Software and part of Redland http://librdf.org/\n * \n...
1,181
0
{"language": "c", "success": true, "metadata": {"lines": 286, "avg_line_length": 25.24, "nodes": 701, "errors": 0, "source_hash": "b776cfbe72b47ef393397d84ae8015f9148ced2565df48dd06cbbd8dad642353", "categorized_nodes": 505}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifde...
6,104
c
#include<stdio.h> int main(){ int n,i=1; scanf("%d",&n); while(i<=10){ printf("%d x %d = %d\n",i,n,i*n); i++; } return 0; }
12.6
10
(translation_unit) "#include<stdio.h>\n\nint main(){\n int n,i=1;\n scanf("%d",&n);\n\n while(i<=10){\n\n printf("%d x %d = %d\n",i,n,i*n);\n i++;\n\n }\n return 0;\n}" (preproc_include) "#include<stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (function_definition) "int main(){\n int...
80
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 12.6, "nodes": 43, "errors": 0, "source_hash": "d0650d253edfa2fd44a7ac217d25ee0f12d17403594a47c87d697e4f888fbaf1", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
6,105
c
// // BTXCommon.h // BlueTeeth // // Created by <NAME> on 8/24/14. // Copyright (c) 2014 sefbkn. All rights reserved. // #import <Foundation/Foundation.h> #define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((floa...
34.33
12
(translation_unit) "//\n// BTXCommon.h\n// BlueTeeth\n//\n// Created by <NAME> on 8/24/14.\n// Copyright (c) 2014 sefbkn. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0x...
42
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 34.33, "nodes": 24, "errors": 0, "source_hash": "f389c9a3b550ac2e93bde9982fcd1f5cf1ec1572b8e8302cd96157ff2a7e4469", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
6,106
c
// // SimpleCraig_Core.h // SimpleCraig.Core // // Created by <NAME> on 12/20/13. // Copyright (c) 2013 Studio MDS. All rights reserved. // #import <Foundation/Foundation.h> @interface SimpleCraig_Core : NSObject @end
21.2
10
(translation_unit) "//\n// SimpleCraig_Core.h\n// SimpleCraig.Core\n//\n// Created by <NAME> on 12/20/13.\n// Copyright (c) 2013 Studio MDS. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface SimpleCraig_Core : NSObject\n\n@end\n" (comment) "//" (comment) "// SimpleCraig_Core.h" (com...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.2, "nodes": 9, "errors": 0, "source_hash": "38ac7a12f4a811c8be34cab36dacb47dd280ee170c19b46dfd19ca2c707f8d99", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Fou...
6,107
c
//eq2.c int main(void) { int w; int x; int y; int z; (x = w); (y = (w + 1)); (z = (x + 1)); while (unknown()) { y = y + 1; z = z + 1; } assert(y == z); return 0; }
13
16
(translation_unit) "//eq2.c\nint main(void) {\n int w;\n int x;\n int y;\n int z;\n (x = w);\n (y = (w + 1));\n (z = (x + 1));\n while (unknown()) {\n y = y + 1;\n z = z + 1;\n }\n assert(y == z);\n return 0;\n}\n" (comment) "//eq2.c" (function_definition) "int main(vo...
115
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 13.0, "nodes": 70, "errors": 0, "source_hash": "01406296370400280df3df882d2eb6352247da01e566c2cad7b1b7168076e5bd", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "int...
6,108
c
/* vim: set sw=8 ts=8 sts=8 expandtab: */ #include "Ewl_Test.h" #include "ewl_test_private.h" #include "ewl_menubar.h" #include <stdio.h> #include <string.h> #include <stdlib.h> static int test_constructor(char *buf, int len); Ewl_Unit_Test menubar_unit_tests[] = { {"constructor", test_constructor, NU...
35.25
32
(translation_unit) "/* vim: set sw=8 ts=8 sts=8 expandtab: */\n#include "Ewl_Test.h"\n#include "ewl_test_private.h"\n#include "ewl_menubar.h"\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n\nstatic int test_constructor(char *buf, int len);\n\nEwl_Unit_Test menubar_unit_tests[] = {\n {"con...
258
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 35.25, "nodes": 149, "errors": 0, "source_hash": "21080deaf510afcb5e64899c0404a47a1b9242df9f51e1ae8f308215c98c4648", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,109
c
/******************** (C) COPYRIGHT 2013 ************************************** * File Name : cmd_r.h * Author : deh * Date First Issued : 09/22/2013 * Board : PC * Description : Send master reset *******************************************************************************/ #ifnde...
31.53
34
(translation_unit) "/******************** (C) COPYRIGHT 2013 **************************************\n* File Name : cmd_r.h\n* Author : deh\n* Date First Issued : 09/22/2013\n* Board : PC\n* Description : Send master reset\n**************************************************************...
79
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 31.53, "nodes": 68, "errors": 0, "source_hash": "74c7f3a77a507330dc0ca0bfbceaadf55c0403cc78530023179e9ea72bbbbc02", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,110
c
#ifndef Listener_INCLUDED #define Listener_INCLUDED #include <Poco/Net/StreamSocket.h> #include <Poco/Net/SocketAddress.h> #include <Poco/AutoPtr.h> #include <Poco/FIFOBuffer.h> #include <string> #include "Message.h" namespace ChoiceNet { namespace Eco { enum ListenerType { UNDEFINED_TYPE = 0, MARKET_PLACE = 1, ...
22.66
61
(translation_unit) "#ifndef Listener_INCLUDED\n#define Listener_INCLUDED\n\n#include <Poco/Net/StreamSocket.h>\n#include <Poco/Net/SocketAddress.h>\n#include <Poco/AutoPtr.h>\n#include <Poco/FIFOBuffer.h>\n#include <string>\n\n#include "Message.h"\n\nnamespace ChoiceNet\n{\nnamespace Eco\n{\n \nenum ListenerType\n{\n U...
424
23
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 22.66, "nodes": 260, "errors": 0, "source_hash": "0808181fa7ac78c4a1455cc7a965bab480ef99da83c99a83f538b28ae1b0ea79", "categorized_nodes": 192}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,111
c
/** Fibonacci series in C using recursion */ #include <stdio.h> #include <stdlib.h> int Fibonacci(int x) { if (x < 2){ return x; } return (Fibonacci (x - 1) + Fibonacci (x - 2)); } int main(void) { int number; printf( "Please enter a positive integer: "); scanf("%d", &number); if (number < 0) ...
15.53
32
(translation_unit) "/**\nFibonacci series in C using recursion \n*/\n \n#include <stdio.h>\n#include <stdlib.h>\n \nint Fibonacci(int x) {\n if (x < 2){\n return x;\n }\n return (Fibonacci (x - 1) + Fibonacci (x - 2));\n}\n \nint main(void) {\n int number;\n printf( "Please enter a positive integer: ");\n scan...
154
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 15.53, "nodes": 84, "errors": 0, "source_hash": "a9683077bb64f082cb0506037406ae47bd38c62a73271f025717ab8432d01cc2", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
6,112
c
// // TFY_Promptbox.h // TFY_RouterMessage // // Created by 田风有 on 2021/11/17. // Copyright © 2021 田风有. All rights reserved. // #import <UIKit/UIKit.h> /** 通知框出现的样式, */ typedef NS_ENUM(NSInteger, TFY_Style) { TFY_StyleFit, //默认样式 (上 左 右 有间距) TFY_StyleFill, //填满样式 (上 左 右 无间距) }; @class TFY_PromptboxConfig...
32.53
45
(translation_unit) "//\n// TFY_Promptbox.h\n// TFY_RouterMessage\n//\n// Created by 田风有 on 2021/11/17.\n// Copyright © 2021 田风有. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n/** 通知框出现的样式, */\ntypedef NS_ENUM(NSInteger, TFY_Style) {\n TFY_StyleFit, //默认样式 (上 左 右 有间距)\n TFY_StyleFill, //填满样式 (上 左 右 无间...
271
35
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 32.53, "nodes": 169, "errors": 0, "source_hash": "ba62ecac7bd4a477dc4fc4b83de5a64c5520ae4b391127432251bc62601591ec", "categorized_nodes": 96}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "t/UIKit....
6,113
c
/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 1996, 1997, 1998, 2001 by <NAME> */ #ifndef _ASM_BRANCH_H #define _ASM_BRANCH_H #include <asm/cpu-features.h> #include <as...
28.5
84
(translation_unit) "/*\n * This file is subject to the terms and conditions of the GNU General Public\n * License. See the file "COPYING" in the main directory of this archive\n * for more details.\n *\n * Copyright (C) 1996, 1997, 1998, 2001 by <NAME>\n */\n#ifndef _ASM_BRANCH_H\n#define _ASM_BRANCH_H\n\n#include <as...
635
0
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 28.5, "nodes": 436, "errors": 0, "source_hash": "ce789d325193a265c6e70d00b0af5d08743dcd98680fa4048e7e8ff12843ced9", "categorized_nodes": 312}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,114
c
/* Bitsy pcmcia code for wavelan.c */ #include "u.h" #include "../port/lib.h" #include "mem.h" #include "dat.h" #include "fns.h" #include "io.h" #include "../port/error.h" #include "../port/netif.h" #include "etherif.h" #include "../pc/wavelan.h" static int wavelanpcmciareset(Ether *ether) { Ctlr *ctlr; if((ctlr =...
19.52
42
(translation_unit) "/* Bitsy pcmcia code for wavelan.c */\n\n#include "u.h"\n#include "../port/lib.h"\n#include "mem.h"\n#include "dat.h"\n#include "fns.h"\n#include "io.h"\n#include "../port/error.h"\n#include "../port/netif.h"\n#include "etherif.h"\n#include "../pc/wavelan.h"\n\nstatic int\nwavelanpcmciareset(Ether *...
348
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 19.52, "nodes": 197, "errors": 0, "source_hash": "5828e199e66bed404dd3919181e8e44328ddf191b694331b6de4d3697509dc44", "categorized_nodes": 167}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,115
c
/***************************************************************************** * Zoltan Library for Parallel Applications * * Copyright (c) 2000,2001,2002, Sandia National Laboratories. * * For more info, see the README file in the top-level Zoltan directory. * *...
34.69
205
(translation_unit) "/*****************************************************************************\n * Zoltan Library for Parallel Applications *\n * Copyright (c) 2000,2001,2002, Sandia National Laboratories. *\n * For more info, see the README file in the top-level Zolta...
2,246
0
{"language": "c", "success": true, "metadata": {"lines": 205, "avg_line_length": 34.69, "nodes": 1309, "errors": 0, "source_hash": "ca22623e50b92afe8638ba8bc5bd23d3742fb1993677d588f0f2fcdca91fb7cb", "categorized_nodes": 1030}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
6,116
c
class Rotary { public: int pinA, pinB; volatile int encoderPos; volatile int aState, aLastState; int num; Rotary(int num, int A, int B, void* func); }; Rotary::Rotary(int num, int A, int B, void* onChange) { this->num = num; this->pinA = A; this->pinB = B; pinMode(pinA, INPUT_PULLUP); p...
24.94
16
(translation_unit) "class Rotary {\n public:\n int pinA, pinB;\n volatile int encoderPos;\n volatile int aState, aLastState;\n int num;\n Rotary(int num, int A, int B, void* func);\n};\n\nRotary::Rotary(int num, int A, int B, void* onChange) {\n this->num = num;\n this->pinA = A;\n this->pinB = B;\n ...
154
9
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 24.94, "nodes": 93, "errors": 0, "source_hash": "2cb6ea95d49573d7d7fc7ce06b7f01830934b0ade573a362e70908ab28e14973", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "cl...
6,117
c
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (the "License"). You may not use this file except in compliance * with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * o...
22.79
126
(translation_unit) "/*\n * CDDL HEADER START\n *\n * The contents of this file are subject to the terms of the\n * Common Development and Distribution License, Version 1.0 only\n * (the "License"). You may not use this file except in compliance\n * with the License.\n *\n * You can obtain a copy of the license at usr/...
699
0
{"language": "c", "success": true, "metadata": {"lines": 126, "avg_line_length": 22.79, "nodes": 385, "errors": 0, "source_hash": "4b62bd88fbba86c18636867b387194832694ff133b4e83ac6f42348fdcd105ae", "categorized_nodes": 295}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
6,118
c
#ifndef _CSF_SHADER_INC #define _CSF_SHADER_INC #include <SFML/Graphics/Shader.h> #define Val_sfShader(shader) ((value)(shader)) #define SfShader_val(shader) ((sfShader *)(shader)) #endif // _CSF_SHADER_INC
33.5
6
(translation_unit) "#ifndef _CSF_SHADER_INC\n#define _CSF_SHADER_INC\n\n#include <SFML/Graphics/Shader.h>\n\n#define Val_sfShader(shader) ((value)(shader))\n#define SfShader_val(shader) ((sfShader *)(shader))\n\n#endif // _CSF_SHADER_INC\n" (preproc_ifdef) "#ifndef _CSF_SHADER_INC\n#define _CSF_SHADER_INC\n\n#include...
28
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 33.5, "nodes": 22, "errors": 0, "source_hash": "aaf46ddeef73330e97a0ef75d175882ce056683e70d77024ec57c342a2a226bf", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _C...
6,119
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "HMFObject.h" #import "NSCopying.h" @class HMDCameraSnapshotSessionID, NSString; @interface HMDSnapshotSessionApplicationID : HMFObject <NSCopying> { HMDCameraSnapshotSessi...
36.05
22
(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 "HMFObject.h"\n\n#import "NSCopying.h"\n\n@class HMDCameraSnapshotSessionID, NSString;\n\n@interface HMDSnapshotSessionApplicationID : HMFObject <NSCopyi...
184
17
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 36.05, "nodes": 115, "errors": 0, "source_hash": "9acd6d909882c7527b3fc874c2c21a6f62948403f53a9f3b1404b5227ba7ca72", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
6,120
c
/* Copyright 2019 <NAME> * This program is licensed under the BSD 3-Clause License. * See LICENSE.txt or https://opensource.org/licenses/BSD-3-Clause for details. * * Main program. Opens sockets, launches threads, and performs initialization. */ #define _POSIX_C_SOURCE 200809L #define _DEFAULT_SOURCE #include <er...
31.7
159
(translation_unit) "/* Copyright 2019 <NAME>\n * This program is licensed under the BSD 3-Clause License.\n * See LICENSE.txt or https://opensource.org/licenses/BSD-3-Clause for details.\n *\n * Main program. Opens sockets, launches threads, and performs initialization.\n */\n#define _POSIX_C_SOURCE 200809L\n#define _D...
1,305
0
{"language": "c", "success": true, "metadata": {"lines": 159, "avg_line_length": 31.7, "nodes": 761, "errors": 0, "source_hash": "5b39af028b7bc383d2007d755874e6667ba2829934a849b8c835622e204be0b8", "categorized_nodes": 547}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ...
6,121
c
// // iPhoneDevice.h // FactoryPattern // // Created by LiChen on 16/7/11. // Copyright © 2016年 LiChen. All rights reserved. // #import "BaseDevice.h" @interface iPhoneDevice : BaseDevice - (void)fingerprintIndetification; @end
20.09
11
(translation_unit) "//\n// iPhoneDevice.h\n// FactoryPattern\n//\n// Created by LiChen on 16/7/11.\n// Copyright © 2016年 LiChen. All rights reserved.\n//\n\n#import "BaseDevice.h"\n\n@interface iPhoneDevice : BaseDevice\n\n- (void)fingerprintIndetification;\n\n@end\n" (comment) "//" (comment) "// iPhoneDevice....
32
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 20.09, "nodes": 17, "errors": 0, "source_hash": "9474889d44943095036c51fcd3dac963a771d1a839ab4b9ed6786e1d548a512e", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"Bas...
6,122
c
#include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> #include "gps.h" #include "bits.h" #include "utils.h" int checksum() { char buf[] = "$IIMTW,00,C"; char csum[3] = { '0', '0', '0' }; unsigned int n = 1, crc; for (n = 1; buf[n] != '\0'; n++) crc ^= buf[n]; (void)snprintf(csu...
27.05
169
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <ctype.h>\n#include <string.h>\n\n#include "gps.h"\n#include "bits.h"\n#include "utils.h"\n\nint checksum() {\n\n char buf[] = "$IIMTW,00,C";\n char csum[3] = { '0', '0', '0' };\n unsigned int n = 1, crc;\n\n for (n = 1; buf[n] != '\0'; n++)\n ...
1,725
0
{"language": "c", "success": true, "metadata": {"lines": 169, "avg_line_length": 27.05, "nodes": 987, "errors": 0, "source_hash": "07698c3dc6aac2d09587d78b125ac80c6a3fcbb055ba1c14333de55de9fe7799", "categorized_nodes": 655}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,123
c
/* Distributed under the Apache License, Version 2.0. See accompanying NOTICE file for details.*/ //---------------------------------------------------------------------------- /// @file UCCommon.h /// @author <NAME> //---------------------------------------------------------------------------- #pragma once #incl...
33.8
20
(translation_unit) "/* Distributed under the Apache License, Version 2.0.\n See accompanying NOTICE file for details.*/\n\n//----------------------------------------------------------------------------\n/// @file UCCommon.h\n/// @author <NAME>\n//-----------------------------------------------------------------------...
84
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 33.8, "nodes": 42, "errors": 0, "source_hash": "ff10efa75988768efc8547777c87369de118905b9162c0d4c1fca39a48c4376b", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
6,124
c
// // CASHandleExternalScreen.h // MarkShown // // Created by <NAME> on 10/2/13. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface CASExternalScreen : NSObject @property (strong, nonatomic) UIWindow *secondWindow; - (void)setUpScreenConnectionNotificationHandlers...
29.79
14
(translation_unit) "//\n// CASHandleExternalScreen.h\n// MarkShown\n//\n// Created by <NAME> on 10/2/13.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface CASExternalScreen : NSObject\n\n@property (strong, nonatomic) UIWindow *secondWindow;\n\n- (void)setUpSc...
68
6
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 29.79, "nodes": 40, "errors": 0, "source_hash": "2adaf58f62a4c93b4809598fda641c436366c57da8767d6033c32861833e8e46", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
6,125
c
/* This file is part of the MKR GSM library. Copyright (C) 2017 Arduino AG (http://www.arduino.cc/) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the Licen...
38.58
48
(translation_unit) "/*\n This file is part of the MKR GSM library.\n Copyright (C) 2017 Arduino AG (http://www.arduino.cc/)\n\n This library is free software; you can redistribute it and/or\n modify it under the terms of the GNU Lesser General Public\n License as published by the Free Software Foundation; either\...
130
1
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 38.58, "nodes": 89, "errors": 0, "source_hash": "469c5ae708cf7af05e34ee942aae8d1485d5a231b0f4622eeef9de996454d978", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,126
c
#define CONFIG_FEATURE_MOUNT_OTHERTAB 1
39
1
(translation_unit) "#define CONFIG_FEATURE_MOUNT_OTHERTAB 1\n" (preproc_def) "#define CONFIG_FEATURE_MOUNT_OTHERTAB 1\n" (#define) "#define" (identifier) "CONFIG_FEATURE_MOUNT_OTHERTAB" (preproc_arg) "1"
5
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 39.0, "nodes": 4, "errors": 0, "source_hash": "2af327b9f4f0a8aab43cf72a75973bd93b42713fe2a9b31f83617c194a26010f", "categorized_nodes": 1}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define CONFIG...
6,127
c
#ifndef __AWTRIX_SENSORS_H__ #define __AWTRIX_SENSORS_H__ #include <Wire.h> #include "Adafruit_HTU21DF.h" #include <Adafruit_BMP280.h> #endif
22.67
6
(translation_unit) "#ifndef __AWTRIX_SENSORS_H__\n#define __AWTRIX_SENSORS_H__\n#include <Wire.h>\n#include "Adafruit_HTU21DF.h"\n#include <Adafruit_BMP280.h>\n#endif" (preproc_ifdef) "#ifndef __AWTRIX_SENSORS_H__\n#define __AWTRIX_SENSORS_H__\n#include <Wire.h>\n#include "Adafruit_HTU21DF.h"\n#include <Adafruit_BMP2...
20
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 22.67, "nodes": 16, "errors": 0, "source_hash": "4755da80b5fb81c9f4f75730739b7cbca31eb551349f2e6197672ef9575c0127", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
6,128
c
#pragma once #include <mirheo/core/interactions/interface.h> #include <map> #include <string> #include <vector> namespace mirheo { class LocalParticleVector; class InteractionManager { public: InteractionManager() = default; ~InteractionManager() = default; void add(Interaction *interaction, ParticleV...
41.14
49
(translation_unit) "#pragma once\n\n#include <mirheo/core/interactions/interface.h>\n\n#include <map>\n#include <string>\n#include <vector>\n\nnamespace mirheo\n{\n\nclass LocalParticleVector;\n\nclass InteractionManager\n{\npublic:\n InteractionManager() = default;\n ~InteractionManager() = default;\n\n void ...
546
23
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 41.14, "nodes": 370, "errors": 0, "source_hash": "ad036080012a4dfe2eccc597fa22ddfcb572a383d70112265057d84c37728deb", "categorized_nodes": 235}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
6,129
c
#pragma once #include "Estate.h" //---------------------------------------------------------------------------------------------------------------------------- class Parcel:public Estate { bool water; bool electricity; bool nearnessToTheRoad; public: Parcel(); Parcel(bool pwater, bool pelectricity, boo...
27.93
15
(translation_unit) "#pragma once \n#include "Estate.h" \n \n//---------------------------------------------------------------------------------------------------------------------------- \nclass Parcel:public Estate \n{ \n bool water; \n bool electricity; \n bool nearnessToTheRoad; \npublic: \n Parcel(); \n Parcel(bool...
100
7
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 27.93, "nodes": 61, "errors": 0, "source_hash": "723c5e44fe616568ce4d0a39ce3cc3fc193db8ccbb66d7146bcd26434ff94851", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
6,130
c
#pragma once #include <iperf_api.h> #ifdef __cplusplus extern "C" { #endif void tr_iperf_run(); #ifdef __cplusplus } #endif
12.78
9
(translation_unit) "#pragma once\n\n#include <iperf_api.h>\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\nvoid tr_iperf_run();\n\n#ifdef __cplusplus\n}\n#endif\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <iperf_api.h>\n" (#include) "#...
34
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 12.78, "nodes": 24, "errors": 0, "source_hash": "7a61e1290ca640e9fe71f836fe9a6cb77234344d24a2237ca7a52a3a58a4c716", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
6,131
c
#include "header.h" #include "focus.h" #include "materials.h" #include <lvgl.h> static lv_obj_t *emissivity_label; static lv_obj_t *emissivity_dropdown; static lv_obj_t *reflected_label; static lv_obj_t *range_label; static Settings *current_settings; static void emissivity_dropdown_handler(lv_obj_t *obj, lv_event_...
36.7
138
(translation_unit) "#include "header.h"\n\n#include "focus.h"\n#include "materials.h"\n\n#include <lvgl.h>\n\nstatic lv_obj_t *emissivity_label;\nstatic lv_obj_t *emissivity_dropdown;\nstatic lv_obj_t *reflected_label;\nstatic lv_obj_t *range_label;\nstatic Settings *current_settings;\n\nstatic void emissivity_dropdown...
1,128
0
{"language": "c", "success": true, "metadata": {"lines": 138, "avg_line_length": 36.7, "nodes": 654, "errors": 0, "source_hash": "dd2735480cb1f99a86dad67f457dd81acef133ef8d2bc72fe13b52f1d7d54032", "categorized_nodes": 452}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,132
c
/* * Copyright 2021 (c) Microsoft 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-2.0 * * Unless required by applicable ...
23.65
107
(translation_unit) "/*\n * Copyright 2021 (c) Microsoft 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://www.apache.org/licenses/LICENSE-2.0\n *\n * U...
189
11
{"language": "c", "success": true, "metadata": {"lines": 107, "avg_line_length": 23.65, "nodes": 106, "errors": 0, "source_hash": "5a176291a5d69e7ee05240af265f1cad6509b85094d4ee59963c19b8b411cc07", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,133
c
// // Created by <NAME> on 07.08.18. // #include <string.h> #include <errno.h> #include <fff.h> /* Макросы для создания заглушек/mocks */ #include <tap.h> /* Тестирующие макросы (протокол TAP) */ #include <fsa/fsa.h> /* Инициализация тестовой среды */ DEFINE_FFF_GLOBALS void fsa_test_use( ...
44.76
41
(translation_unit) "//\n// Created by <NAME> on 07.08.18.\n//\n\n#include <string.h>\n#include <errno.h>\n\n#include <fff.h> /* Макросы для создания заглушек/mocks */\n#include <tap.h> /* Тестирующие макросы (протокол TAP) */\n\n#include <fsa/fsa.h>\n\n/* Инициализация тестовой среды */\nDEFINE_FF...
476
1
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 44.76, "nodes": 229, "errors": 0, "source_hash": "5bac99be7f781838468e220e8a354d4d81558580c3a122c4fad327f5848b87a2", "categorized_nodes": 165}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,134
c
#pragma once namespace Packet { struct Header { struct Buffer { char* data; void Destroy() { delete[] data; } }; int packetID; int length; static constexpr int Size = 8; Header(); void Init(); Buffer Serialize(); void Serialize(void* buffer); void Deserialize(Buffer buf...
13.28
25
(translation_unit) "#pragma once\n\nnamespace Packet\n{\n struct Header\n {\n struct Buffer\n {\n char* data;\n\n void Destroy()\n {\n delete[] data;\n }\n };\n\n int packetID;\n int length;\n\n static constexpr int Size = 8;\n\n Header();\n\n void Init();\n\n Buffer Serialize();\n void Serialize(v...
130
3
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 13.28, "nodes": 82, "errors": 0, "source_hash": "7604d7cdb99ae06c012894b42b57aec1a59446cdef574cbfb978e39405359f19", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
6,135
c
/* -*- c++ -*- */ //============================================================================= /** * @file facet_svth.h * * $Id: facet_svth.h 95291 2011-12-12 08:52:52Z johnnyw $ * * Concrete visitor for the Interface node. * This provides for code generation for the facet servant * class declaration ...
26.55
33
(translation_unit) "/* -*- c++ -*- */\n//=============================================================================\n/**\n * @file facet_svth.h\n *\n * $Id: facet_svth.h 95291 2011-12-12 08:52:52Z johnnyw $\n *\n * Concrete visitor for the Interface node.\n * This provides for code generation for the facet se...
65
2
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 26.55, "nodes": 37, "errors": 0, "source_hash": "c18053eebd94872eda904443ba91b07a90a3732ec02290c7ba32f9b1ce616788", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,136
c
/** *********************************************************************************************************************** * Copyright (c) 2020, China Mobile Communications Group Co.,Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the ...
29.15
78
(translation_unit) "/**\n ***********************************************************************************************************************\n * Copyright (c) 2020, China Mobile Communications Group Co.,Ltd.\n *\n * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in...
220
0
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 29.15, "nodes": 165, "errors": 0, "source_hash": "b6c1ee55180729b191dc5c0c7c7b74dccb550f0b16fd5064c51ed56e4ad2085f", "categorized_nodes": 129}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,137
c
// // ISSQuickSort.h // HomeWork1 // // Created by <NAME> on 26/09/2019. // Copyright © 2019 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> /** Class that implements sorting algorithms */ @interface ISSQuickSort : NSObject + (NSArray*) quickSortArray:(NSArray*)sourceArray withOrdering: (NSS...
21.67
15
(translation_unit) "//\n// ISSQuickSort.h\n// HomeWork1\n//\n// Created by <NAME> on 26/09/2019.\n// Copyright © 2019 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n\n/**\n Class that implements sorting algorithms\n */\n@interface ISSQuickSort : NSObject\n\n+ (NSArray*) quickSortArray:(NSA...
49
6
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 21.67, "nodes": 25, "errors": 0, "source_hash": "00229b3f8439a3ce10405b79674518ecd05b5f080ed91fbb49124e845c938e99", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
6,138
c
// // UIView+UIViewController.h // 05 Responder // // Created by wei.chen on 14-8-23. // Copyright (c) 2014年 www.iphonetrain.com 无限互联3G学院. All rights reserved. // #import <UIKit/UIKit.h> @interface UIView (UIViewController) - (UIViewController *)viewController; - (UINavigationController *)navigationViewControll...
26.08
12
(translation_unit) "//\n// UIView+UIViewController.h\n// 05 Responder\n//\n// Created by wei.chen on 14-8-23.\n// Copyright (c) 2014年 www.iphonetrain.com 无限互联3G学院. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIView (UIViewController)\n\n- (UIViewController *)viewController;\n\n- (UINavigationC...
49
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 26.08, "nodes": 29, "errors": 0, "source_hash": "8488c1d09addc5cdae34ef2eed55948d83c93a3e3dc77dda3945b54862f2de6c", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "/UIKit.h>...
6,139
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* system.c :+: :+: :+: ...
33.79
39
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* system.c ...
213
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 33.79, "nodes": 110, "errors": 0, "source_hash": "a1b5234389a68fec97169b4b563fcd2b68a13c2d06ed57574f40594a228690f2", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
6,140
c
#ifndef AFTERSHOW_H_INCLUDED #define AFTERSHOW_H_INCLUDED #ifndef STDIN_FILENO # define STDIN_FILENO 0 # define STDOUT_FILENO 1 # define STDERR_FILENO 2 #endif #if !defined (EACCESS) && defined(EAGAIN) # define EACCESS EAGAIN #endif #ifndef EXIT_SUCCESS /* missing from <stdlib.h> */ # define EXIT_SUCC...
28.16
174
(translation_unit) "#ifndef AFTERSHOW_H_INCLUDED\n#define AFTERSHOW_H_INCLUDED\n\n#ifndef STDIN_FILENO\n# define STDIN_FILENO 0\n# define STDOUT_FILENO 1\n# define STDERR_FILENO 2\n#endif\n\n#if !defined (EACCESS) && defined(EAGAIN)\n# define EACCESS EAGAIN\n#endif\n\n#ifndef EXIT_SUCCESS /* missing from...
952
0
{"language": "c", "success": true, "metadata": {"lines": 174, "avg_line_length": 28.16, "nodes": 733, "errors": 0, "source_hash": "4e281bc5b5dfc28b06c827ec6a670505db0a073c76c543d6426332ba49cf1f6f", "categorized_nodes": 494}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
6,141
c
// // TTPLTestCase.h // TestReportGeneration // // Created by Subramanian on 2/9/15. // Copyright (c) 2015 Tarento Technologies Pvt Ltd. All rights reserved. // #import <Foundation/Foundation.h> @interface TTPLTestCase : NSObject @property(nonatomic, strong) NSString *tcId; @property(nonatomic, strong) NSString ...
35.29
17
(translation_unit) "//\n// TTPLTestCase.h\n// TestReportGeneration\n//\n// Created by Subramanian on 2/9/15.\n// Copyright (c) 2015 Tarento Technologies Pvt Ltd. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface TTPLTestCase : NSObject\n\n@property(nonatomic, strong) NSString *tcId;\n@prop...
147
30
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 35.29, "nodes": 108, "errors": 0, "source_hash": "ba84a67e16cf75f3cc8e8a3e278dad7a11fb504156f16055dce21b413e6b6259", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
6,142
c
// // IValidator.h // Eruntech //数据类型校验辅助协议 // Created by 杜明悦 on 12-11-23. // Copyright 2012年 __MyCompanyName__. All rights reserved. // #import <Foundation/Foundation.h> @protocol IValidator <NSObject> /** 数据校验方法 @return 数据校验是否通过 **/ -(BOOL)validator; @end
15.56
16
(translation_unit) "//\n// IValidator.h\n// Eruntech\n//数据类型校验辅助协议\n// Created by 杜明悦 on 12-11-23.\n// Copyright 2012年 __MyCompanyName__. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n\n@protocol IValidator <NSObject>\n/**\n 数据校验方法\n@return 数据校验是否通过\n **/\n-(BOOL)validator;\n@end\n" (comment) "...
34
4
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 15.56, "nodes": 19, "errors": 0, "source_hash": "850bae569ffd3b6b8624eb08e64eec36cc5204e154ffb93e6a01f70c9075ef2b", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "on.h>\n\n\...
6,143
c
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "Camera/CameraActor.h" #include "GameCamera.generated.h" class ACar; UCLASS() class CARS_API AGameCamera : public ACameraActor { GENERATED_BODY() public: // Sets default values for this ...
25.11
28
(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 "Camera/CameraActor.h"\n#include "GameCamera.generated.h"\n\nclass ACar;\n\nUCLASS()\nclass CARS_API AGameCamera : public ACameraActor\n{\n GENERATED_BODY()\n \npublic...
148
9
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 25.11, "nodes": 88, "errors": 0, "source_hash": "6864d0b88f7e34fec56b632f926a8f4cba7be5cb9215d69fedda5d871485e6bd", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
6,144
c
#include "elapsed.h" #if defined( __APPLE__ ) # include <mach/mach_time.h> #endif #if defined( XWIN ) || defined( ANDROID ) || defined( JS ) # include <time.h> #endif #if defined( MSWIN ) # define BILLION (1E9) # define CLOCK_MONOTONIC -1 # include <Windows.h> struct timespec { long tv_...
25.87
111
(translation_unit) "#include "elapsed.h"\n\n\n#if defined( __APPLE__ )\n# include <mach/mach_time.h>\n#endif\n\n#if defined( XWIN ) || defined( ANDROID ) || defined( JS )\n# include <time.h>\n#endif\n\n#if defined( MSWIN )\n# define BILLION (1E9)\n# define CLOCK_MONOTONIC -1\n# include <Wind...
881
0
{"language": "c", "success": true, "metadata": {"lines": 111, "avg_line_length": 25.87, "nodes": 590, "errors": 0, "source_hash": "ab9f68693a39664e2c6d8f5d8626cb47a79c70725e23cc810dffc2e50ac9a81b", "categorized_nodes": 403}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,145
c
// // LinkageListModel.h // LinkageMenu // // Created by blacksky on 2020/2/26. // Copyright © 2020 blacksky. All rights reserved. // #import <Foundation/Foundation.h> #import "LinkageModel.h" NS_ASSUME_NONNULL_BEGIN @interface LinkageListModel : NSObject @property(nonatomic, strong) NSArray<LinkageModel*> *linkL...
24
14
(translation_unit) "//\n// LinkageListModel.h\n// LinkageMenu\n//\n// Created by blacksky on 2020/2/26.\n// Copyright © 2020 blacksky. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "LinkageModel.h"\nNS_ASSUME_NONNULL_BEGIN\n\n@interface LinkageListModel : NSObject\n@property(nonatomic, stro...
54
8
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 24.0, "nodes": 37, "errors": 0, "source_hash": "f6eacefedcea3f3286facae1606ba01a16d397c551683616f316bf332002f6ee", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <Fo...
6,146
c
#pragma once #include "LibLsp/JsonRpc/RequestInMessage.h" #include "LibLsp/JsonRpc/lsResponseMessage.h" #include <regex> #include "LibLsp/lsp/lsp_completion.h" #include "LibLsp/lsp/lsTextDocumentPositionParams.h" #include "completion.h" /** * The request is sent from the client to the server to resolve additional ...
34
13
(translation_unit) "#pragma once\n\n\n#include "LibLsp/JsonRpc/RequestInMessage.h"\n#include "LibLsp/JsonRpc/lsResponseMessage.h"\n\n#include <regex>\n#include "LibLsp/lsp/lsp_completion.h"\n#include "LibLsp/lsp/lsTextDocumentPositionParams.h"\n#include "completion.h"\n\n/**\n * The request is sent from the client to t...
50
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 34.0, "nodes": 27, "errors": 0, "source_hash": "2376a0ad2c7225605858723537c68ad1633cf66094e59994758cdc3aeab5e079", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
6,147
c
class SFileHelper { /** * @brief Touch a file. If it doesn't exist, create it, and if necessary create its parent directories * @param path - File path to touch */ static void touch(string path){ if(FileExist(path)) return; //Trim file name TStringArray dirs = new TStringArray; path.Split("\\",dir...
21.76
90
(translation_unit) "class SFileHelper {\n \n \n /**\n * @brief Touch a file. If it doesn't exist, create it, and if necessary create its parent directories\n * @param path - File path to touch\n */\n static void touch(string path){\n if(FileExist(path)) return;\n\n //Trim file name \n TStringArray dirs = new TStr...
596
3
{"language": "c", "success": true, "metadata": {"lines": 90, "avg_line_length": 21.76, "nodes": 330, "errors": 0, "source_hash": "7a7e5d20e743b137b1ec8ff99bd3ed8dbbd9c2c5e092c50b2e532951aa03b9ab", "categorized_nodes": 250}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "...
6,148
c
#ifndef __LOCKABLE_H_ #define __LOCKABLE_H_ #include <types.h> #ifdef __cplusplus extern "C" { #endif typedef unsigned int lock_t; void atomicCreate(lock_t* lock); void atomicDestroy(lock_t* lock); void atomicLock(lock_t* lock); bool atomicTryLock(lock_t* lock); bool atomicIsLock(lock_t* lock); void atomicUnLock(l...
18.26
19
(translation_unit) "#ifndef __LOCKABLE_H_\n#define __LOCKABLE_H_\n\n#include <types.h>\n\n#ifdef __cplusplus\nextern "C" \n{\n#endif\ntypedef unsigned int lock_t;\n\nvoid atomicCreate(lock_t* lock);\nvoid atomicDestroy(lock_t* lock);\n\nvoid atomicLock(lock_t* lock);\nbool atomicTryLock(lock_t* lock);\nbool atomicIsLoc...
115
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 18.26, "nodes": 89, "errors": 0, "source_hash": "e82b6f9fb4fdfa572c13f5d352acd2def5c45819cf504e2e404734cc1dcf6ad8", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,149
c
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_BUILDER_MAC_H_ #define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_BUILDER_MAC_H_ #include <memory> #i...
50.38
13
(translation_unit) "// Copyright 2016 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_BUILDER_MAC_H_\n#define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_BUILDER_MAC_...
51
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 50.38, "nodes": 29, "errors": 0, "source_hash": "1337b780b5e17ea73982524a9b5ea08f19c40287d2fd615ace3d21ad1338cd45", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,150
c
#ifndef TESTUTIL_H #define TESTUTIL_H #include <stdarg.h> #include <stdio.h> #include <ByteBuffer.h> #if defined(_MSC_VER) && _MSC_VER < 1900 #define snprintf c99_snprintf #define vsnprintf c99_vsnprintf int c99_vsnprintf(char *outBuf, size_t size, const char *format, va_list ap); int c99_snprintf(char...
22.71
21
(translation_unit) "#ifndef TESTUTIL_H \n#define TESTUTIL_H \n \n#include <stdarg.h> \n#include <stdio.h> \n#include <ByteBuffer.h> \n \n#if defined(_MSC_VER) && _MSC_VER < 1900 \n \n#define snprintf c99_snprintf \n#define vsnprintf c99_vsnprintf \n \nint c99_vsnprintf(char *outBuf, size_t size, const char *format, va_...
132
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 22.71, "nodes": 100, "errors": 0, "source_hash": "dda45a47f52d3255bb5c428f68d3ef52ca5f8c78f05c3e615157a19c08b2ad07", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,151
c
#ifndef GTF_INCLUDED_GLOBAL_DATAPOOL_IDENTIFIERS_H #define GTF_INCLUDED_GLOBAL_DATAPOOL_IDENTIFIERS_H //! @brief Name : focused //! @brief Namespace : //! @brief Types : gtf::datapool::Item //! gtf::datapool::Value //! gtf::datapool::BoolValue #define GLOBAL_DP_ID_FOCUSED "ff56931d-9eca...
43
9
(translation_unit) "#ifndef GTF_INCLUDED_GLOBAL_DATAPOOL_IDENTIFIERS_H\n#define GTF_INCLUDED_GLOBAL_DATAPOOL_IDENTIFIERS_H\n\n//! @brief Name : focused\n//! @brief Namespace : \n//! @brief Types : gtf::datapool::Item\n//! gtf::datapool::Value\n//! gtf::datapool::BoolValue\n#define GLOBAL_...
18
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 43.0, "nodes": 11, "errors": 0, "source_hash": "d184cef424cea0b0bb121c079f8232e044074c0def1787fd3b14f61629889da6", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef GTF...
6,152
c
#pragma once #include <stdint.h> #include "esp_err.h" /** * @brief running intro and menu (choose rom/game) * * @return - integer for choosing game partition */ int runMenu(); void setBr(int bright);
19.4
10
(translation_unit) "#pragma once\n#include <stdint.h>\n#include "esp_err.h"\n\n/**\n * @brief running intro and menu (choose rom/game)\n *\n * @return - integer for choosing game partition\n */\nint runMenu();\nvoid setBr(int bright);" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg...
33
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.4, "nodes": 22, "errors": 0, "source_hash": "1fa9f8ac0a0ab33d17c9681b0b8399c20a130f6480936b2fbca61912c0044ef3", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
6,153
c
#pragma once #include <string> #include <vector> class Block { public: static Block* mNewGoldBlock; }; class VanillaItem { public: static Item* mNewApple; static Item* mNewApple_enchanted; }; class ItemInstance { public: ItemInstance(const VanillaItem&, int); }; class Recipes { publi...
20.97
34
(translation_unit) "#pragma once\n#include <string>\n#include <vector>\n\nclass Block {\n public:\n static Block* mNewGoldBlock;\n};\n\nclass VanillaItem {\n public:\n static Item* mNewApple;\n static Item* mNewApple_enchanted;\n};\n\nclass ItemInstance {\n public:\n ItemInstance(const VanillaItem&...
244
16
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 20.97, "nodes": 125, "errors": 0, "source_hash": "8fd4e1b702df1d26b6a065ef268898ce9b416bd5198f78ed7a4e21c132cacb29", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
6,154
c
/* * Copyright 2020-2022 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-2.0 * * Unless required by applicable law or...
34.51
260
(translation_unit) "/*\n * Copyright 2020-2022 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://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless ...
2,150
0
{"language": "c", "success": true, "metadata": {"lines": 260, "avg_line_length": 34.51, "nodes": 1294, "errors": 0, "source_hash": "783fdb3048b5fe2829da6d317b824306d51e3747c8e0a07ab6bd46f7be9be195", "categorized_nodes": 840}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
6,155
c
#include <stdio.h> int main(){ int n,i,temp; scanf("%d",&n); int a[n]; for (i=0;i<n;i++){ scanf("%d",&a[i]); } for(i=0;i<n/2;i++){ temp=a[i]; a[i]=a[n-i-1]; a[n-i-1]=temp; } for(i=0;i<n;i++){ printf("%d\n",a[i]); } return 0; }
15.21
19
(translation_unit) "#include <stdio.h>\n\nint main(){\n int n,i,temp;\n scanf("%d",&n);\n int a[n];\n for (i=0;i<n;i++){\n scanf("%d",&a[i]);\n }\n for(i=0;i<n/2;i++){\n temp=a[i];\n a[i]=a[n-i-1];\n a[n-i-1]=temp;\n\n }\n for(i=0;i<n;i++){\n printf("%d\n",a[i]...
195
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 15.21, "nodes": 113, "errors": 0, "source_hash": "be07d4a1278ea19107e3b14308dd0a354a0d8ec2ee19f18c715ef76358904679", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
6,156
c
// // BUReferenceViewModelConstructor.h // SUAI_Navigation // // Created by Виктор on 22/11/2017. // Copyright © 2017 Viktor. All rights reserved. // #import <Foundation/Foundation.h> #import "BUReferenceViewModelTableType.h" #import "BUReferenceViewModelTableConstructorProtocol.h" @interface BUReferenceViewModel...
33.23
13
(translation_unit) "//\n// BUReferenceViewModelConstructor.h\n// SUAI_Navigation\n//\n// Created by Виктор on 22/11/2017.\n// Copyright © 2017 Viktor. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "BUReferenceViewModelTableType.h"\n#import "BUReferenceViewModelTableConstructorProtocol.h"\n\...
50
6
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 33.23, "nodes": 32, "errors": 0, "source_hash": "d8cd921451793127e2933a3c1c934d1c6978dbdc51ded83b3c45b433b5dbbd24", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <Foundat...
6,157
c
// // Created by 田尘殇 on 2017/7/26. // Copyright (c) 2017 Sitb Software. All rights reserved. // #import <React/RCTBridgeModule.h> #import <MessageUI/MFMessageComposeViewController.h> @interface SmsManager : NSObject <RCTBridgeModule, MFMessageComposeViewControllerDelegate> @property(nonatomic, copy) RCTPromiseResolv...
38.5
10
(translation_unit) "//\n// Created by 田尘殇 on 2017/7/26.\n// Copyright (c) 2017 Sitb Software. All rights reserved.\n//\n\n#import <React/RCTBridgeModule.h>\n\n#import <MessageUI/MFMessageComposeViewController.h>\n\n@interface SmsManager : NSObject <RCTBridgeModule, MFMessageComposeViewControllerDelegate>\n@property(non...
54
7
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 38.5, "nodes": 39, "errors": 0, "source_hash": "8b8c3ad65cd107a49cc87ec23962e2c601ba6aa66bfefe88f47d1224204e6d48", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "t <React/R...
6,158
c
// // AddTagViewController.h // Talk // // Created by 史丹青 on 7/13/15. // Copyright (c) 2015 jiaoliao. All rights reserved. // #import <UIKit/UIKit.h> #import "AddTagViewModel.h" #import "VENTokenField.h" @interface AddTagViewController : UIViewController <VENTokenFieldDelegate, VENTokenFieldDataSource, UITableVie...
38.12
16
(translation_unit) "//\n// AddTagViewController.h\n// Talk\n//\n// Created by 史丹青 on 7/13/15.\n// Copyright (c) 2015 jiaoliao. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "AddTagViewModel.h"\n#import "VENTokenField.h"\n\n@interface AddTagViewController : UIViewController <VENTokenFieldDelegate, VEN...
108
14
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 38.12, "nodes": 78, "errors": 0, "source_hash": "7c13a6e4548171fa2defe8ddfd1927b454dd33d41d253cdc1311fa351fee40b3", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "t <UIKit/...
6,159
c
/* shichi.c * * Hyperbolic sine and cosine integrals * * * * SYNOPSIS: * * double x, Chi, Shi, shichi(); * * shichi( x, &Chi, &Shi ); * * * DESCRIPTION: * * Approximates the integrals * * x * ...
24.39
278
(translation_unit) "/* shichi.c\n *\n * Hyperbolic sine and cosine integrals\n *\n *\n *\n * SYNOPSIS:\n *\n * double x, Chi, Shi, shichi();\n *\n * shichi( x, &Chi, &Shi );\n *\n *\n * DESCRIPTION:\n *\n * Approximates the integrals\n *\n * ...
1,194
0
{"language": "c", "success": true, "metadata": {"lines": 278, "avg_line_length": 24.39, "nodes": 751, "errors": 0, "source_hash": "ddded01fcb96b1290f50786e9d11bfa049124084496d6d8928cf8df8e74ce6e1", "categorized_nodes": 548}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,160
c
#include <__struct_msghdr.h>
28
1
(translation_unit) "#include <__struct_msghdr.h>\n" (preproc_include) "#include <__struct_msghdr.h>\n" (#include) "#include" (system_lib_string) "<__struct_msghdr.h>"
4
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 28.0, "nodes": 3, "errors": 0, "source_hash": "7f7fe51bc6aaac1ddcebcf82304a22d253ac85031e7b92e0d665f877833e433c", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <...
6,161
c
#ifndef INCLUDED_GSTASKREGISTRY_H #define INCLUDED_GSTASKREGISTRY_H #import "common.h" @class NSArray; @class NSURLSessionTask; /* * This helper class keeps track of all tasks. * * Each `NSURLSession` has a `GSTaskRegistry` for its running tasks. * * - Note: This must **only** be accessed on the owning session...
28.15
20
(translation_unit) "#ifndef INCLUDED_GSTASKREGISTRY_H\n#define INCLUDED_GSTASKREGISTRY_H\n\n#import "common.h"\n\n@class NSArray;\n@class NSURLSessionTask;\n\n/*\n * This helper class keeps track of all tasks.\n *\n * Each `NSURLSession` has a `GSTaskRegistry` for its running tasks. \n *\n * - Note: This must **only** ...
126
16
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 28.15, "nodes": 79, "errors": 0, "source_hash": "4f3ffef5d9c3d726f7b3abf2fabe1f371c14d936648298a5f73673d3b48ea676", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef\...
6,162
c
/* * A fast BINARY GCD ALGORITHM using ITERATION and BIT SHIFTS. * * Copyright (c) 2012 <NAME> * http://csl.sublevel3.org * * Distributed under the BSD 3-clause license; see the file LICENSE. * */ template<typename INT> INT binary_gcd(INT u, INT v) { INT shl = 0; while ( u>0 && v>0 && u!=v ) { // ev...
19.15
33
(translation_unit) "/*\n * A fast BINARY GCD ALGORITHM using ITERATION and BIT SHIFTS.\n *\n * Copyright (c) 2012 <NAME>\n * http://csl.sublevel3.org\n *\n * Distributed under the BSD 3-clause license; see the file LICENSE.\n *\n */\n\ntemplate<typename INT>\nINT binary_gcd(INT u, INT v)\n{\n INT shl = 0;\n\n while...
236
5
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 19.15, "nodes": 166, "errors": 0, "source_hash": "01cfb8fcafba6a1ec1ca4fe9bc0ce26a69778a947c57e44cbaf6594ed075bdda", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "template<typen...
6,163
c
//------------------------------------------------------------ // snakeoil (c) <NAME> // Distributed under the MIT license //------------------------------------------------------------ #ifndef _SNAKEOIL_APPLICATION_WINDOW_WINDOW_MESSAGE_H_ #define _SNAKEOIL_APPLICATION_WINDOW_WINDOW_MESSAGE_H_ #include "../typedefs.h...
22.05
41
(translation_unit) "//------------------------------------------------------------\n// snakeoil (c) <NAME>\n// Distributed under the MIT license\n//------------------------------------------------------------\n#ifndef _SNAKEOIL_APPLICATION_WINDOW_WINDOW_MESSAGE_H_\n#define _SNAKEOIL_APPLICATION_WINDOW_WINDOW_MESSAGE_H_...
139
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 22.05, "nodes": 78, "errors": 0, "source_hash": "ed3360a9f01307a884d1fea29f8724bf74c22491c6a80365e5062345757147ae", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,164
c
/* Provide a more complete sys/time.h. Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any...
34.2
76
(translation_unit) "/* Provide a more complete sys/time.h.\n\n Copyright (C) 2007-2010 Free Software Foundation, Inc.\n\n This program is free software; you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation; either version 3, ...
322
33
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 34.2, "nodes": 237, "errors": 0, "source_hash": "99020c2e4c848d5e0188adea611f447b216398a8b39cc7cc51d6026df4a7a361", "categorized_nodes": 136}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if __GNUC...
6,165
c
/*numPass=9, numTotal=9 Verdict:ACCEPTED, Visibility:1, Input:"5 abcde", ExpOutput:"Good String", Output:"Good String" Verdict:ACCEPTED, Visibility:1, Input:"8 pqrsabcd", ExpOutput:"Good String", Output:"Good String" Verdict:ACCEPTED, Visibility:1, Input:"4 azpg", ExpOutput:"Not Good String", Output:"Not Good String" V...
25.69
61
(translation_unit) "/*numPass=9, numTotal=9\nVerdict:ACCEPTED, Visibility:1, Input:"5\nabcde", ExpOutput:"Good String", Output:"Good String"\nVerdict:ACCEPTED, Visibility:1, Input:"8\npqrsabcd", ExpOutput:"Good String", Output:"Good String"\nVerdict:ACCEPTED, Visibility:1, Input:"4\nazpg", ExpOutput:"Not Good String", ...
384
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 25.69, "nodes": 241, "errors": 0, "source_hash": "aeaa85246f322e661ca91f4fd435a24aa7aed96f26e595aabef79a671486880f", "categorized_nodes": 162}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,166
c
/* Get the smaller value */ inline uint3x3 min(const uint3x3& a, const uint3x3& b) { return uint3x3(min(a[0], b[0]), min(a[1], b[1]), min(a[2], b[2])); } /* Get the larger value */ inline uint3x3 max(const uint3x3& a, const uint3x3& b) { return uint3x3(max(a[0], b[0]), ...
26.96
24
(translation_unit) "/* Get the smaller value\n */\ninline uint3x3 min(const uint3x3& a, const uint3x3& b)\n{\n return uint3x3(min(a[0], b[0]),\n min(a[1], b[1]),\n min(a[2], b[2]));\n}\n\n/* Get the larger value\n */\ninline uint3x3 max(const uint3x3& a, const uint3x3& b)\n{\n ...
285
7
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 26.96, "nodes": 144, "errors": 0, "source_hash": "6a729e0a398eb9a91a6de935e87ef640a027409977e212e86583d0546560d711", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "...
6,167
c
/* -*- c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* ==================================================================== * Copyright (c) 1999-2004 Carnegie Mellon University. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided ...
35.15
264
(translation_unit) "/* -*- c-basic-offset: 4; indent-tabs-mode: nil -*- */\n/* ====================================================================\n * Copyright (c) 1999-2004 Carnegie Mellon University. All rights\n * reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modificatio...
1,869
0
{"language": "c", "success": true, "metadata": {"lines": 264, "avg_line_length": 35.15, "nodes": 1208, "errors": 0, "source_hash": "df9735e8900bf82a38b4f9e590e45256ddb93f863ade91047955e10b4f4d0d2c", "categorized_nodes": 791}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
6,168
c
/** Pixel type conversion routines Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) (1) Kamaelia Contributors are listed in the AUTHORS file and at http://www.kamaelia.org/AUTHORS - please extend this file, not this notice. Licensed under the Apache License, Version 2.0 (the "Lice...
38.32
232
(translation_unit) "/** Pixel type conversion routines\n\nCopyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1)\n\n(1) Kamaelia Contributors are listed in the AUTHORS file and at\n http://www.kamaelia.org/AUTHORS - please extend this file,\n not this notice.\n\nLicensed under the Apache Lic...
3,603
0
{"language": "c", "success": true, "metadata": {"lines": 232, "avg_line_length": 38.32, "nodes": 2512, "errors": 0, "source_hash": "dd242b6872adc26d126940ef40ef5931c85750433786ec9fa60aea7e695ea311", "categorized_nodes": 1686}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
6,169
c
// // STCASRPackageNetworkingManager.h // SpeechKit // // Created by <NAME> on 28.05.2018. // Copyright © 2018 Speech Tehnology Center. All rights reserved. // #import "STCNetworkingManager.h" /** * Provides working with the recognize API requests with load/unload package */ @interface STCASRPackageNetworkingMa...
23.06
17
(translation_unit) "//\n// STCASRPackageNetworkingManager.h\n// SpeechKit\n//\n// Created by <NAME> on 28.05.2018.\n// Copyright © 2018 Speech Tehnology Center. All rights reserved.\n//\n\n#import "STCNetworkingManager.h"\n\n/**\n * Provides working with the recognize API requests with load/unload package\n */\n@in...
36
4
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 23.06, "nodes": 15, "errors": 0, "source_hash": "23e85db32b989506480f21e82e5d3b1293e378608c60acffdf6c227131ad263f", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"S...
6,170
c
/** * MultiSlider library * * The MIT License (MIT) * Copyright (c) 2016 <NAME> */ #ifndef _MULTI_SLIDER_ROOM_INFO_H_ #define _MULTI_SLIDER_ROOM_INFO_H_ #include <string> #include <vector> #include "CommonIncludes.h" namespace jsonxx { class Object; } namespace multislider { /** * Room descriptor for ...
25.65
98
(translation_unit) "/**\n* MultiSlider library\n*\n* The MIT License (MIT)\n* Copyright (c) 2016 <NAME>\n*/\n\n#ifndef _MULTI_SLIDER_ROOM_INFO_H_\n#define _MULTI_SLIDER_ROOM_INFO_H_\n\n#include <string>\n#include <vector>\n\n#include "CommonIncludes.h"\n\nnamespace jsonxx\n{\n class Object;\n}\n\nnamespace multislid...
412
25
{"language": "c", "success": true, "metadata": {"lines": 98, "avg_line_length": 25.65, "nodes": 204, "errors": 0, "source_hash": "b9629432f19bcdfe36d60020ce4fce9178d6e7d045eb5a66ff8f766e93817a34", "categorized_nodes": 145}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,171
c
#ifndef __DATABASE__H #define __DATABASE__H #include "utils.h" #include <algorithm> #include <chrono> #include <cstddef> #include <fstream> #include <iomanip> #include <iostream> #include <limits> #include <memory> #include <mutex> #include <numeric> #include <random> #include <sstream> #include <string> #include <thr...
26.68
37
(translation_unit) "#ifndef __DATABASE__H\n#define __DATABASE__H\n\n#include "utils.h"\n#include <algorithm>\n#include <chrono>\n#include <cstddef>\n#include <fstream>\n#include <iomanip>\n#include <iostream>\n#include <limits>\n#include <memory>\n#include <mutex>\n#include <numeric>\n#include <random>\n#include <sstre...
197
7
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 26.68, "nodes": 152, "errors": 0, "source_hash": "e24ed52d081b1a1da838e74f5cef6093d617e196616c98de9a04bbdf87b6a1c8", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,172
c
// Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed ...
35.33
81
(translation_unit) "// 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 applicable law or agreed to in writing...
535
17
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 35.33, "nodes": 303, "errors": 0, "source_hash": "1730a5816eb2ac4d50aafb201a80b84e4b9937d494b1711748731d94c3309e91", "categorized_nodes": 213}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,173
c
#include <stdio.h> #include <stdlib.h> #include <ctype.h> #define CANCELLED 0 #define RESERVED 1 struct passenger { int id; char name[20]; int seatno; int cancel; struct passenger *next; }; typedef struct passenger TRAVELLER; TRAVELLER *start, *end; void createnode() { TRAVELLER *tmp; ...
23.67
148
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <ctype.h>\n\n\n#define CANCELLED 0\n#define RESERVED 1\n\nstruct passenger {\n int id;\n char name[20];\n int seatno;\n int cancel;\n struct passenger *next;\n};\n\ntypedef struct passenger TRAVELLER;\nTRAVELLER *start, *end;\n\nvoid ...
1,034
0
{"language": "c", "success": true, "metadata": {"lines": 148, "avg_line_length": 23.67, "nodes": 574, "errors": 0, "source_hash": "c0f79bd567053b2b79e1d3b3f78d887397aa678ca8c389dab6439769760be4c3", "categorized_nodes": 397}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,174
c
#include <ccan/err/err.h> #include <ccan/str/str.h> #include <ccan/tal/path/path.h> #include <ccan/tal/grab_file/grab_file.h> #include "read_config_header.h" #include "tools.h" #include <string.h> /* Get an identifier token. */ char *get_symbol_token(void *ctx, const char **line) { unsigned int toklen; char *ret; ...
24.84
118
(translation_unit) "#include <ccan/err/err.h>\n#include <ccan/str/str.h>\n#include <ccan/tal/path/path.h>\n#include <ccan/tal/grab_file/grab_file.h>\n#include "read_config_header.h"\n#include "tools.h"\n#include <string.h>\n\n/* Get an identifier token. */\nchar *get_symbol_token(void *ctx, const char **line)\n{\n unsi...
1,260
0
{"language": "c", "success": true, "metadata": {"lines": 118, "avg_line_length": 24.84, "nodes": 807, "errors": 0, "source_hash": "8d39d4bfd7c2659b9c0f876bc92dcca1f0bd8dc0398271cac19bdd74650cbe80", "categorized_nodes": 510}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,175
c
#pragma once #include "lumix.h" #include "iplugin.h" namespace physx { class PxControllerManager; class PxCooking; class PxPhysics; } // namespace physx namespace Lumix { class LUMIX_PHYSICS_API PhysicsSystem : public IPlugin { friend class PhysicsScene; friend struct PhysicsSceneImpl; public: virtual...
18.8
30
(translation_unit) "#pragma once\n\n\n#include "lumix.h"\n#include "iplugin.h"\n\n\nnamespace physx\n{\n\n class PxControllerManager;\n class PxCooking;\n class PxPhysics;\n\n} // namespace physx\n\n\nnamespace Lumix\n{\n\n\nclass LUMIX_PHYSICS_API PhysicsSystem : public IPlugin\n{\n friend class PhysicsScene;\n friend...
163
9
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 18.8, "nodes": 91, "errors": 0, "source_hash": "57845d7e20daba1959397d0669adfbac3ebb6d01e1f2682b168b074ed5679586", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
6,176
c
#ifndef XTEA_XTEA_RTL_TESTBENCH_H #define XTEA_XTEA_RTL_TESTBENCH_H #include <systemc.h> SC_MODULE(XTEA_RTL_testbench) { private: void run(); public: sc_in_clk clk; // The clock signal sc_out<bool> rst; // The reset signal sc_out<sc_uint<32>> text_input[2]; // 32-bit data input ports sc_out<sc_uint<32>...
36.79
19
(translation_unit) "#ifndef XTEA_XTEA_RTL_TESTBENCH_H\n#define XTEA_XTEA_RTL_TESTBENCH_H\n\n#include <systemc.h>\n\nSC_MODULE(XTEA_RTL_testbench) {\nprivate:\n void run();\n\npublic:\n sc_in_clk clk; // The clock signal\n sc_out<bool> rst; // The reset signal\n\n sc_out<sc_uint<32>> text_input[2]; // 32-bit data...
141
1
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 36.79, "nodes": 91, "errors": 0, "source_hash": "6431719ce13e3345663658a6518f66a56bfcbd35c3a8898b8ef414088bf7592d", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,177
c
#ifndef _CPU_H_ #define _CPU_H_ #include <stdint.h> #include <stdbool.h> typedef enum { REG_R0 = 0, REG_R1 = 1, REG_R2 = 2, REG_R3 = 3, REG_R4 = 4, REG_R5 = 5, REG_R6 = 6, REG_R7 = 7, REG_R8 = 8, REG_R9 = 9, REG_R10 = 10, REG_R11 = 11, REG_R12 = 12, REG_R13 = 13, REG_SP = 13, REG_R14 =...
25.39
137
(translation_unit) "#ifndef _CPU_H_\n#define _CPU_H_\n\n#include <stdint.h>\n#include <stdbool.h>\n\ntypedef enum {\n REG_R0 = 0,\n REG_R1 = 1,\n REG_R2 = 2,\n REG_R3 = 3,\n REG_R4 = 4,\n REG_R5 = 5,\n REG_R6 = 6,\n REG_R7 = 7,\n REG_R8 = 8,\n REG_R9 = 9,\n REG_R10 = 10,\n REG_R11 = 11,\n REG_R12 = 12,\n ...
958
0
{"language": "c", "success": true, "metadata": {"lines": 137, "avg_line_length": 25.39, "nodes": 704, "errors": 0, "source_hash": "f338df296294f49fa7ecb6d0c8f27e96767dee7b656402d7ca8c3c8523909a79", "categorized_nodes": 420}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
6,178
c
//========================================================================== // FILESNAPSHOTMGR.H - part of // OMNeT++/OMNEST // Discrete System Simulation in C++ // // Author: <NAME> // //========================================================================== /*--------------------...
24.93
72
(translation_unit) "//==========================================================================\n// FILESNAPSHOTMGR.H - part of\n// OMNeT++/OMNEST\n// Discrete System Simulation in C++\n//\n// Author: <NAME>\n//\n//=======================================================================...
169
7
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 24.93, "nodes": 89, "errors": 0, "source_hash": "567cc677cd2b45bff6acfd440c92495853add88fdb567b88028d8ce492772420", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,179
c
/**********************************************************************/ /* ____ ____ */ /* / /\/ / */ /* /___/ \ / */ /* \ \ \/ ...
26.29
277
(translation_unit) "/**********************************************************************/\n/* ____ ____ */\n/* / /\/ / */\n/* /___/ \ / */\n/* \...
2,974
1
{"language": "c", "success": true, "metadata": {"lines": 277, "avg_line_length": 26.29, "nodes": 2032, "errors": 0, "source_hash": "4c1b85ef77f4bb9851857a7bc41164d0f7354e8cfb0a863763f16b3b49232d48", "categorized_nodes": 1133}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#defi...
6,180
c
/* Copyright 2017 <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distribu...
23.74
124
(translation_unit) "/*\nCopyright 2017 <NAME>\n\nLicensed under the Apache License, Version 2.0 (the "License");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to ...
766
0
{"language": "c", "success": true, "metadata": {"lines": 124, "avg_line_length": 23.74, "nodes": 460, "errors": 0, "source_hash": "eb1719bdb4099164ccc7e3e85dd8874bfbc88687eadb93f3f738b4bef326313e", "categorized_nodes": 316}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
6,181
c
/* mbed TextLCD Library,4-bit 16x2 LCD for KS0066U * Copyright (c) 2015 <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 rig...
31.3
124
(translation_unit) "/* mbed TextLCD Library,4-bit 16x2 LCD for KS0066U\n * Copyright (c) 2015 <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 w...
230
11
{"language": "c", "success": true, "metadata": {"lines": 124, "avg_line_length": 31.3, "nodes": 146, "errors": 0, "source_hash": "7768a65a228763c0e255eafae431c3343b07dd07e0e6dfd86d3e063822fc752b", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,182
c
#ifndef BOUNDARY_H_ #define BOUNDARY_H_ void setBoundaryType(Model *model, vector<variableInfo*> &varInfoList, vector<GeometryInfo*> &geoInfoList, int Xindex, int Yindex, int Zindex, int dimension); #endif
50.5
4
(translation_unit) "#ifndef BOUNDARY_H_\n#define BOUNDARY_H_\n\nvoid setBoundaryType(Model *model, vector<variableInfo*> &varInfoList, vector<GeometryInfo*> &geoInfoList, int Xindex, int Yindex, int Zindex, int dimension);\n\n#endif\n" (preproc_ifdef) "#ifndef BOUNDARY_H_\n#define BOUNDARY_H_\n\nvoid setBoundaryType(...
57
2
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 50.5, "nodes": 45, "errors": 0, "source_hash": "37ce6cd0148e40e7969c2e9e3a39b13e6ff9d8760e28acc56aa8629132663956", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef BO...
6,183
c
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_DISCOVER_DISCOVER_BROWSER_TEST_H_ #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_DISCOVER_DISCOVER_BROWSER_...
38.55
44
(translation_unit) "// Copyright 2018 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_DISCOVER_DISCOVER_BROWSER_TEST_H_\n#define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_D...
233
8
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 38.55, "nodes": 128, "errors": 0, "source_hash": "3dce4c058d6e9d6d7d576e0c9164da9a3f13d5110bc51290f472aff657adbf62", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,184
c
#ifndef _XLIB_XSTREAM_FILE_H #define _XLIB_XSTREAM_FILE_H #include <xlib/xdefs.h> #include <xlib/xstream.h> __XLIB_BEGIN_DECL xstream_t *xstream_file_open(const char *path, const char *mode); __XLIB_END_DECL #endif /* _XLIB_XSTREAM_FILE_H */
29.25
8
(translation_unit) "#ifndef _XLIB_XSTREAM_FILE_H\n#define _XLIB_XSTREAM_FILE_H\n\n#include <xlib/xdefs.h>\n#include <xlib/xstream.h>\n\n__XLIB_BEGIN_DECL\n\nxstream_t *xstream_file_open(const char *path, const char *mode);\n\n__XLIB_END_DECL\n\n#endif /* _XLIB_XSTREAM_FILE_H */\n" (preproc_ifdef) "#ifndef _XLIB_XSTRE...
44
1
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 29.25, "nodes": 33, "errors": 0, "source_hash": "1a3350b3110eab27d0dd6dda112710d397fb31c802502d0f87beedf70940847f", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
6,185
c
/* Copyright (c) 2021 <NAME>. See the COPYRIGHT file at the top-level directory of this distribution. Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option. T...
27.72
112
(translation_unit) "/*\n Copyright (c) 2021 <NAME>. See the COPYRIGHT\n file at the top-level directory of this distribution.\n\n Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or\n http://www.apache.org/licenses/LICENSE-2.0> or the MIT license\n <LICENSE-MIT or http://opensource.org/licenses/...
686
0
{"language": "c", "success": true, "metadata": {"lines": 112, "avg_line_length": 27.72, "nodes": 413, "errors": 0, "source_hash": "ea496ef9e5e6bea55f680eb5490221ccd7b5ffcd21d4279c7d5bf7719ee84bcb", "categorized_nodes": 313}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,186
c
#include <stdlib.h> extern char *getenv(const char *); int main() { char *tainted = getenv("gude"); int rc; if (tainted) { rc = 0; } else { int b = 0; abort(); } int ut = 1; return rc; }
14.93
15
(translation_unit) "#include <stdlib.h>\n\nextern char *getenv(const char *);\n\nint\nmain() {\n char *tainted = getenv("gude");\n\n int rc;\n if (tainted) {\n rc = 0;\n } else {\n int b = 0;\n abort();\n }\n\n int ut = 1;\n\n return rc;\n}\n\n" (preproc_include) "#include <s...
98
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 14.93, "nodes": 60, "errors": 0, "source_hash": "7042e15052a7aa7a65bf5fe7878bbd1b93fb75e67e3e7d587f9f170b13653ac2", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
6,187
c
/** * \author <NAME> * \date 2013-08-13 * * \copyright * Copyright (c) 2012-2016, OpenGeoSys Community (http://www.opengeosys.org) * Distributed under a Modified BSD License. * See accompanying file LICENSE.txt or * http://www.opengeosys.org/project/license * */ #ifnde...
23.35
34
(translation_unit) "/**\n * \author <NAME>\n * \date 2013-08-13\n *\n * \copyright\n * Copyright (c) 2012-2016, OpenGeoSys Community (http://www.opengeosys.org)\n * Distributed under a Modified BSD License.\n * See accompanying file LICENSE.txt or\n * http://www.opengeosys.org/pro...
79
4
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 23.35, "nodes": 43, "errors": 0, "source_hash": "18f1d080fb5ef4d1d872234b7610118ccee02e226832244f0d2d86625e98d273", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,188
c
class VoltageSource : public Segment { protected: double value; public: double VoltageSource(double value); double getValue(void); };
20.38
8
(translation_unit) "class VoltageSource : public Segment {\n\n protected:\n double value;\n \n public:\n double VoltageSource(double value);\n double getValue(void);\n};" (function_definition) "class VoltageSource : public Segment {\n\n protected:\n double value;\n \n pub...
44
1
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 20.38, "nodes": 24, "errors": 0, "source_hash": "e56c771c52b6d2278ecf06daf736c348e320dbc48a5ca2f2865e176077ef898b", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "cla...
6,189
c
#ifndef NEGAMAXSEARCH_H #define NEGAMAXSEARCH_H #include "search.h" #include <fstream> class NegamaxSearch : public Search { public: NegamaxSearch(); public: Move search(Board *board, Evaluation *evaluation, int depth) const; private: double negaMax(int depth, Board * board, Evaluation * evaluation) cons...
21.53
17
(translation_unit) "#ifndef NEGAMAXSEARCH_H\n#define NEGAMAXSEARCH_H\n\n#include "search.h"\n\n#include <fstream>\n\nclass NegamaxSearch\n : public Search\n{\npublic:\n NegamaxSearch();\n\npublic:\n Move search(Board *board, Evaluation *evaluation, int depth) const;\n\nprivate:\n double negaMax(int depth, Board *...
107
3
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 21.53, "nodes": 63, "errors": 0, "source_hash": "ed29deea03d2abaa6076974b7a761430bebd462aad7b77756e1c8e0f3032d393", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,190
c
/* * nara_classroom_impl * * The NARA "classroom" record implementation. * */ #include "nara_classroom.h" typedef union { nara_classroom_t break_out; struct { uint32_t f1[5 + nara_ethnicity_total]; } compact; } nara_classroom_internal_t; /**/ int __nara_record_is_type_classroom( ...
30.2
146
(translation_unit) "/*\n * nara_classroom_impl\n *\n * The NARA "classroom" record implementation.\n *\n */\n\n#include "nara_classroom.h"\n\ntypedef union {\n nara_classroom_t break_out;\n struct {\n uint32_t f1[5 + nara_ethnicity_total];\n } compact;\n} nara_classroom_internal_t;\n\n/**/\n\n...
843
0
{"language": "c", "success": true, "metadata": {"lines": 146, "avg_line_length": 30.2, "nodes": 500, "errors": 0, "source_hash": "c7d67e8db4a52e66676738b1cc6bdc9299c562b8c9785514eb172b5cf6f510c9", "categorized_nodes": 356}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,191
c
#pragma once namespace app { namespace game { class alignas(16) MoveBound : public MoveController { public: struct Description { csl::math::Vector3 field_00; float field_10; float field_14; float fie...
33.5
74
(translation_unit) "#pragma once\n\nnamespace app\n{\n namespace game\n {\n class alignas(16) MoveBound : public MoveController\n {\n public:\n struct Description\n {\n csl::math::Vector3 field_00;\n float field_10;\n float fi...
573
32
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 33.5, "nodes": 357, "errors": 0, "source_hash": "b182c2ba16586d694a0c6d60a9062c2420edbf2c092f61ab746ad8f74307fe5d", "categorized_nodes": 217}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
6,192
c
#ifndef SPECTRADEFINEWIDGET #define SPECTRADEFINEWIDGET #include <QtCore> #include <QHBoxLayout> #include <QLabel> #include <QPushButton> #include <QSpinBox> #include <QComboBox> #include <QVBoxLayout> #include <QWidget> #include <QFileDialog> #include "eqtablewidget.h" class SpectraDefineWidget : public QWidget { ...
28.27
55
(translation_unit) "#ifndef SPECTRADEFINEWIDGET\n#define SPECTRADEFINEWIDGET\n\n#include <QtCore>\n#include <QHBoxLayout>\n#include <QLabel>\n#include <QPushButton>\n#include <QSpinBox>\n#include <QComboBox>\n#include <QVBoxLayout>\n#include <QWidget>\n#include <QFileDialog>\n#include "eqtablewidget.h"\n\nclass Spectra...
491
10
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 28.27, "nodes": 313, "errors": 0, "source_hash": "5ac781baacb4e3a92bb00c5570a82da3866321890cd34e73677d125964ae0a16", "categorized_nodes": 214}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,193
c
// ***START*** #ifndef OPCUA_EXCLUDE__NAME_ /*============================================================================ * The _NAME_ structure. *===========================================================================*/ typedef struct __TYPE_ { // _FieldList_ } _TYPE_; OPCUA_EXPORT OpcUa_Void _TYPE__Initia...
43
18
(translation_unit) "// ***START***\n#ifndef OPCUA_EXCLUDE__NAME_\n/*============================================================================\n * The _NAME_ structure.\n *===========================================================================*/\ntypedef struct __TYPE_\n{\n // _FieldList_\n}\n_TYPE_;\n\nOPCUA_...
134
5
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 43.0, "nodes": 104, "errors": 0, "source_hash": "b414827f4e1f515b32f42bebc5ba92b2e2c100712de54210cd3300350717beb4", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,194
c
/* * Automatically Generated from Mathematica. * Tue 8 Jan 2019 22:43:28 GMT-05:00 */ #ifndef P_HIP_ABDUCTION_LEFT_SRC_H #define P_HIP_ABDUCTION_LEFT_SRC_H #ifdef MATLAB_MEX_FILE #include <tmwtypes.h> #else #include "rtwtypes.h" #endif void p_hip_abduction_left_src(double *p_output1, const double *var1); #endif ...
24
14
(translation_unit) "/*\n * Automatically Generated from Mathematica.\n * Tue 8 Jan 2019 22:43:28 GMT-05:00\n */\n\n#ifndef P_HIP_ABDUCTION_LEFT_SRC_H\n#define P_HIP_ABDUCTION_LEFT_SRC_H\n\n#ifdef MATLAB_MEX_FILE\n#include <tmwtypes.h>\n#else\n#include "rtwtypes.h"\n#endif\n\nvoid p_hip_abduction_left_src(double *p_outp...
46
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 24.0, "nodes": 34, "errors": 0, "source_hash": "7014e43cc158d1402d89d74a35798d1715d99d9eab78ff9555f35d7f4be2c7a9", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef P...
6,195
c
/* * interpreter.h * * Created on: Jan 25, 2020 * Author: marwankhan */ #ifndef INTERPRETER_H_ #define INTERPRETER_H_ int parseInput(char ui[]); int interpreter(char *words[]); #endif /* INTERPRETER_H_ */
14.64
14
(translation_unit) "/*\n * interpreter.h\n *\n * Created on: Jan 25, 2020\n * Author: marwankhan\n */\n\n#ifndef INTERPRETER_H_\n#define INTERPRETER_H_\n\n\nint parseInput(char ui[]);\nint interpreter(char *words[]);\n\n\n\n\n#endif /* INTERPRETER_H_ */\n" (comment) "/*\n * interpreter.h\n *\n * Created on: Ja...
40
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 14.64, "nodes": 27, "errors": 0, "source_hash": "794852e59ee3bbec8412105261d13c9f2c229af29b2a099f7f8da308adf8df8a", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,196
c
//! //! Copyright (c) 2015, The casual project //! //! This software is licensed under the MIT license, https://opensource.org/licenses/MIT //! #pragma once #include "common/buffer/type.h" #include "common/flag.h" #include "common/service/header.h" #include "common/strong/id.h" #include "common/flag/xatmi.h" nam...
35.56
81
(translation_unit) "//! \n//! Copyright (c) 2015, The casual project\n//!\n//! This software is licensed under the MIT license, https://opensource.org/licenses/MIT\n//!\n\n\n#pragma once\n\n\n#include "common/buffer/type.h"\n#include "common/flag.h"\n#include "common/service/header.h"\n#include "common/strong/id.h"\n\n...
627
50
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 35.56, "nodes": 356, "errors": 0, "source_hash": "223fdb67ad3279456ff717633152f68b170dcc7cb387779f32aae843b7d8d0a8", "categorized_nodes": 270}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
6,197
c
#pragma once #include <cstdint> #include "graphics/meshobjects.h" class World; class Npc; class Bullet final { public: Bullet(World& owner, size_t inst); Bullet(Bullet&&)=default; ~Bullet(); Bullet& operator=(Bullet&&)=default; enum Flg:uint8_t { NoFlags = 0, Stopped = 1 }; ...
42.54
48
(translation_unit) "#pragma once\n\n#include <cstdint>\n\n#include "graphics/meshobjects.h"\n\nclass World;\nclass Npc;\n\nclass Bullet final {\n public:\n Bullet(World& owner, size_t inst);\n Bullet(Bullet&&)=default;\n ~Bullet();\n Bullet& operator=(Bullet&&)=default;\n\n enum Flg:uint8_t {\n NoF...
626
29
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 42.54, "nodes": 381, "errors": 0, "source_hash": "b06fb376f39b3ca87c899beffd75ccc72dac9268b2b2b79a94c9189722a61371", "categorized_nodes": 233}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
6,198
c
/* * Copyright 2005 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ /* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */ /* All Rights Reserved */ /* * Copyright (c) 1980 Regents of the University of California. * All rights reserved. The Berkeley Software Lic...
22.6
181
(translation_unit) "/*\n * Copyright 2005 Sun Microsystems, Inc. All rights reserved.\n * Use is subject to license terms.\n */\n\n/* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */\n/* All Rights Reserved */\n\n/*\n * Copyright (c) 1980 Regents of the University of California.\n * All rights reserv...
907
0
{"language": "c", "success": true, "metadata": {"lines": 181, "avg_line_length": 22.6, "nodes": 535, "errors": 0, "source_hash": "0e25a5a2450d9d7a0be78ed9246ec0d572011893e9314dcd42309b2fe42f8f72", "categorized_nodes": 361}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
6,199