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
/*! \ingroup PkgTriangulationsConcepts \cgalConcept The concept `TriangulationVertex` describes the requirements on the type used by the class `CGAL::Triangulation<TriangulationTraits_, TriangulationDataStructure_>`, and its derived classes, to represent a vertex. \cgalRefines `TriangulationDSVertex` We only list be...
32.61
67
(translation_unit) "/*!\n\ingroup PkgTriangulationsConcepts\n\cgalConcept\n\nThe concept `TriangulationVertex` describes the requirements on the type used by the\nclass `CGAL::Triangulation<TriangulationTraits_, TriangulationDataStructure_>`, and its derived classes, to\nrepresent a vertex.\n\n\cgalRefines `Triangulati...
149
11
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 32.61, "nodes": 63, "errors": 0, "source_hash": "6d14eda563e1da2174ace2e7bbe09159bd264136af340f46e974b02bbd203d69", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "cl...
5,400
c
/*********************************************************************** created: 20th February 2010 author: <NAME> purpose: Header of the ColourPicker colour type classes *************************************************************************/ /*************************************************...
34.04
100
(translation_unit) "/***********************************************************************\n created: 20th February 2010\n author: <NAME>\n\n purpose: Header of the ColourPicker colour type classes\n*************************************************************************/\n/***********************...
562
41
{"language": "c", "success": true, "metadata": {"lines": 100, "avg_line_length": 34.04, "nodes": 321, "errors": 0, "source_hash": "168a2c98892aa12fe4b63047209546f6320196ebfee4ea56cc9bcc7722de98b3", "categorized_nodes": 217}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
5,401
c
/* #include <yajl/yajl_version.h> int yajl_version(void) { return YAJL_VERSION; } */
11.29
7
(translation_unit) "/*\n#include <yajl/yajl_version.h>\n\nint yajl_version(void)\n{\n return YAJL_VERSION;\n}\n*/\n" (comment) "/*\n#include <yajl/yajl_version.h>\n\nint yajl_version(void)\n{\n return YAJL_VERSION;\n}\n*/"
2
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 11.29, "nodes": 0, "errors": 0, "source_hash": "ae87b866438637d1c3ed647eb4990621a2cbcfe2dfb7523ce2d155cd10741713", "categorized_nodes": 0}, "ast": {"root": "translation_unit", "nodes": []}, "node_categories": {"declarations": {"functions": [...
5,402
c
#include <iostream> class a { public: virtual ~a() = default; void something() { std::cout << "<a> do something" << std::endl; do_something(); } private: VIRTUAL_ON_TEST void do_something() { std::cout << "<a> doing something" << std::endl; } };
16.12
16
(translation_unit) "#include <iostream>\nclass a\n{\npublic:\n virtual ~a() = default;\n \n void something() {\n std::cout << "<a> do something" << std::endl;\n do_something();\n }\n \nprivate:\n VIRTUAL_ON_TEST void do_something() {\n std::cout << "<a> doing something" << std::endl;\n }\n};\n" (prepr...
100
5
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 16.12, "nodes": 54, "errors": 0, "source_hash": "eba9067b6ec4b40ec282f081610b1f87b8a66723223bce928fed6b57305026e8", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,403
c
#include <Arduino.h> #ifndef actuator_h #define actuator_h class Actuator { public: virtual void act(float input) = 0; //acts according to the input virtual void activate() = 0; //activate the output regardless of input virtual void deactivate() = 0; //deactivate the output virtual float getOutput() = 0; //gets t...
32.92
13
(translation_unit) "#include <Arduino.h>\n\n#ifndef actuator_h\n#define actuator_h\n\nclass Actuator {\npublic:\n virtual void act(float input) = 0; //acts according to the input\n virtual void activate() = 0; //activate the output regardless of input\n virtual void deactivate() = 0; //deactivate the output\n virtual f...
110
6
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 32.92, "nodes": 79, "errors": 0, "source_hash": "2576e38d76ed8c1dcf841037c782684efbae37c3e936842e9e7433b0093e9777", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,404
c
/* sampleCodeModule.c */ #include<lib64.h> #include<types.h> #include<string.h> #include<syscalls.h> #include<shell.h> #include<standardIO.h> char * v = (char*)0xB8000 + 79 * 2; int main() { initShell(); return 0; }
15.64
14
(translation_unit) "/* sampleCodeModule.c */ \n#include<lib64.h> \n#include<types.h> \n#include<string.h> \n#include<syscalls.h> \n#include<shell.h> \n#include<standardIO.h> \n \nchar * v = (char*)0xB8000 + 79 * 2; \n \nint main() { \n initShell(); \n return 0; \n}" (comment) "/* sampleCodeModule.c */" (preproc_inc...
63
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 15.64, "nodes": 47, "errors": 0, "source_hash": "04c451987ced438d547f03d62c0a76dd794c0bd496bf6ea653f1db828ceda700", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,405
c
/* * Copyright (c) 2016 Intel Corporation. All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow * * $HEADER$ */ #ifndef ETHTEST_TESTS_H #define ETHTEST_TESTS_H #ifdef __cplusplus extern "C" { #endif // __cplusplus // OPAL #include "opal/dss/dss.h" // ORTE #include "orte/...
32.54
50
(translation_unit) "/*\n * Copyright (c) 2016 Intel Corporation. All rights reserved.\n * $COPYRIGHT$\n *\n * Additional copyrights may follow\n *\n * $HEADER$\n */\n\n#ifndef ETHTEST_TESTS_H\n#define ETHTEST_TESTS_H\n\n#ifdef __cplusplus\nextern "C" {\n#endif // __cplusplus\n // OPAL\n #include "opal/dss/ds...
229
3
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 32.54, "nodes": 136, "errors": 0, "source_hash": "dc3b370b858b35ef4b450e90306f2d713deef25ea5a5651cc56024e80aa4edd2", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef ETHTEST...
5,406
c
/* * (C) 2010,2016,2021 <NAME> * * Botan is released under the Simplified BSD License (see license.txt) */ #ifndef BOTAN_SHA3_ROUND_H_ #define BOTAN_SHA3_ROUND_H_ #include <botan/types.h> #include <botan/rotate.h> /* A bug in Clang 12 and XCode 13 cause a miscompilation of SHA3_round with optimization levels -O2 and...
35.27
107
(translation_unit) "/*\n* (C) 2010,2016,2021 <NAME>\n*\n* Botan is released under the Simplified BSD License (see license.txt)\n*/\n\n#ifndef BOTAN_SHA3_ROUND_H_\n#define BOTAN_SHA3_ROUND_H_\n\n#include <botan/types.h>\n#include <botan/rotate.h>\n\n/*\nA bug in Clang 12 and XCode 13 cause a miscompilation of SHA3_round...
1,853
27
{"language": "c", "success": true, "metadata": {"lines": 107, "avg_line_length": 35.27, "nodes": 1278, "errors": 0, "source_hash": "945e5997305d169c7721ff96f7d1939139ed26ca95eb021f3c9f688db9133a2b", "categorized_nodes": 870}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
5,407
c
#ifndef _CPU_TOPOLOGY_H_ #define _CPU_TOPOLOGY_H_ #ifdef _KERNEL /* CPU TOPOLOGY DATA AND FUNCTIONS */ struct cpu_node { struct cpu_node * parent_node; struct cpu_node * child_node[MAXCPU]; uint32_t child_no; cpumask_t members; uint8_t type; uint8_t compute_unit_id; /* AMD compute unit ID */ }; typedef struct c...
28.86
28
(translation_unit) "#ifndef _CPU_TOPOLOGY_H_\n#define _CPU_TOPOLOGY_H_\n\n#ifdef _KERNEL\n\n/* CPU TOPOLOGY DATA AND FUNCTIONS */\nstruct cpu_node {\n struct cpu_node * parent_node;\n struct cpu_node * child_node[MAXCPU];\n uint32_t child_no;\n cpumask_t members;\n uint8_t type;\n uint8_t compute_unit_id; /* AMD comput...
139
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 28.86, "nodes": 108, "errors": 0, "source_hash": "d444e2196ca35998d8edb028da91690dd254fd1ba6d0a3054991dd732311fefc", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,408
c
while (*ptr) {
14
1
(translation_unit) "while (*ptr) {\n" (while_statement) "while (*ptr) {" (while) "while" (parenthesized_expression) "(*ptr)" (() "(" (pointer_expression) "*ptr" (*) "*" (identifier) "ptr" ()) ")" (compound_statement) "{" ({) "{" (}) ""
12
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 14.0, "nodes": 5, "errors": 0, "source_hash": "4ddd78ed12c8eb477a7578c7be669afcabb86bfc16c8ec6048bdfd4c7919f65b", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "while_statement", "text": "while (*pt...
5,409
c
/* * Filename: squeeze.c * Author: <NAME> <<EMAIL>> * Date: 23-FEB-2010 * * The C Programming Language, second edition, * by <NAME> and <NAME> * * Exercise 2-4, page 48 * * Write an alternate version of squeeze(s1,s2) that deletes each * character in the string s1 that matches any character in...
22.66
38
(translation_unit) "/*\n * Filename: squeeze.c\n * Author: <NAME> <<EMAIL>>\n * Date: 23-FEB-2010\n *\n * The C Programming Language, second edition,\n * by <NAME> and <NAME>\n *\n * Exercise 2-4, page 48\n *\n * Write an alternate version of squeeze(s1,s2) that deletes each\n * character in the string s...
262
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 22.66, "nodes": 164, "errors": 0, "source_hash": "843cd306dcf0f9e36bce97bac6d7ee94ab170e80062d6ff9b337cf1c9701e550", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,410
c
/************************************************************************** * @file: FileSystem.h * @brief: std::filesystem adapter * * Copyright (c) 2021 O-Net Technologies (Group) Limited. *************************************************************************/ #pragma once #if defined(_WIN32) #include <fi...
28.45
38
(translation_unit) "/**************************************************************************\n * @file: FileSystem.h\n * @brief: std::filesystem adapter\n *\n * Copyright (c) 2021 O-Net Technologies (Group) Limited.\n *************************************************************************/\n\n#pragma once\n\n#if ...
233
14
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 28.45, "nodes": 145, "errors": 0, "source_hash": "77cd3c285a11349f0fe8819c8a677846088bf9c8d13f902b14631e757dc74537", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
5,411
c
/***************** gaussrand.c (in su3.a) ***************************** ** * Real gaussian_ran_no( double_prn *prn_pt )* * Gaussian distributed random number* * Probability distribution exp( -x*x ), so < x^2 > = 1/2* * This requires a random number generator named "myrand()", returning* * a Real uniformly ...
29.1
92
(translation_unit) "/***************** gaussrand.c (in su3.a) *****************************\n **\n * Real gaussian_ran_no( double_prn *prn_pt )*\n * Gaussian distributed random number*\n * Probability distribution exp( -x*x ), so < x^2 > = 1/2*\n * This requires a random number generator named "myrand()", returni...
570
0
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 29.1, "nodes": 373, "errors": 0, "source_hash": "07a83ce06674eef617c993687a09c329a9efab43debcd3c80debc1d679027bf1", "categorized_nodes": 266}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
5,412
c
#include <fx2regs.h> #include <fx2i2c.h> #include "glasgow.h" struct buffer_desc { uint8_t selector; uint8_t index; }; static const struct buffer_desc buffers[] = { { IO_BUF_A, 0 }, { IO_BUF_B, 1 }, { 0, 0 } }; void iobuf_init_dac_ldo() { // Configure I/O buffer pins as open-source/open-drain; they have ...
31.68
129
(translation_unit) "#include <fx2regs.h>\n#include <fx2i2c.h>\n#include "glasgow.h"\n\nstruct buffer_desc {\n uint8_t selector;\n uint8_t index;\n};\n\nstatic const struct buffer_desc buffers[] = {\n { IO_BUF_A, 0 },\n { IO_BUF_B, 1 },\n { 0, 0 }\n};\n\nvoid iobuf_init_dac_ldo() {\n // Configure I/O buffer pins a...
1,203
7
{"language": "c", "success": true, "metadata": {"lines": 129, "avg_line_length": 31.68, "nodes": 745, "errors": 0, "source_hash": "ef780d222ed88e1bf9205c77033499307573b20907c5570b7c151b147d54c5c2", "categorized_nodes": 541}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,413
c
/* * <unistd.h> * * Open Hack'Ware BIOS: subset of POSIX unistd definitions * * Copyright (c) 2004-2005 <NAME> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License V2 * as published by the Free Software Foundation * * This p...
34.64
39
(translation_unit) "/*\n * <unistd.h>\n *\n * Open Hack'Ware BIOS: subset of POSIX unistd definitions\n * \n * Copyright (c) 2004-2005 <NAME>\n * \n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License V2\n * as published by the Free Softw...
175
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 34.64, "nodes": 124, "errors": 0, "source_hash": "3412cb06cb13dfe84aa542275edba3f47834e907f8a90bcfcdc541fe7bbde841", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defin...
5,414
c
/** * By downloading, copying, installing or using the software you agree to this license. * If you do not agree to this license, do not download, install, * copy or use the software. * * * License Agreement * For Open Source Computer Vision Library * ...
33.76
191
(translation_unit) "/**\n * By downloading, copying, installing or using the software you agree to this license.\n * If you do not agree to this license, do not download, install,\n * copy or use the software.\n *\n *\n * License Agreement\n * For Open Source Computer Vision Lib...
1,276
63
{"language": "c", "success": true, "metadata": {"lines": 191, "avg_line_length": 33.76, "nodes": 848, "errors": 0, "source_hash": "b03f13cf8c9d8afc8f2cebba39be79428afa44fc1113e9344bd8a1dfafa76e88", "categorized_nodes": 555}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
5,415
c
#pragma once #include <ros/ros.h> #include <ros/console.h> #include <rosplan_action_interface/RPActionInterface.h> // Position #include <geometry_msgs/Pose.h> #include <geometry_msgs/Point.h> // to actually move #include <target_pose/target_pose_node.h> namespace KCL_rosplan { class RPPickup : public RPActionInte...
25.73
22
(translation_unit) "#pragma once\n\n#include <ros/ros.h>\n#include <ros/console.h>\n#include <rosplan_action_interface/RPActionInterface.h>\n\n// Position\n#include <geometry_msgs/Pose.h>\n#include <geometry_msgs/Point.h>\n\n// to actually move\n#include <target_pose/target_pose_node.h>\n\nnamespace KCL_rosplan\n{\n\n ...
94
4
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 25.73, "nodes": 54, "errors": 0, "source_hash": "e60ad50ea8af537133c7242854d583ad41c7672225fc1a1af014a65234e8e670", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
5,416
c
/* * This header is generated by classdump-dyld 1.0 * on Wednesday, March 22, 2017 at 9:03:08 AM Mountain Standard Time * Operating System: Version 10.1 (Build 14U593) * Image Source: /System/Library/Frameworks/AVFoundation.framework/AVFoundation * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>...
31.84
19
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Wednesday, March 22, 2017 at 9:03:08 AM Mountain Standard Time\n* Operating System: Version 10.1 (Build 14U593)\n* Image Source: /System/Library/Frameworks/AVFoundation.framework/AVFoundation\n* classdump-dyld is licensed under GPLv3, Copyri...
93
8
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 31.84, "nodes": 53, "errors": 0, "source_hash": "8847ed2bf386d1ef093930fd4aa03001079aed4dce89ae64ac855572db045910", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <A...
5,417
c
//The question is to find the number of rectangles that can be formed parallel to x axis and y axis when coordinates are enteres by user. // I have solved this question with O(n4) complexity. You can think of a better solution and commit the changes. #include<stdio.h> #include<stdlib.h> int main(){ int n, count ...
35.24
46
(translation_unit) "//The question is to find the number of rectangles that can be formed parallel to x axis and y axis when coordinates are enteres by user.\n// I have solved this question with O(n4) complexity. You can think of a better solution and commit the changes.\n\n\n#include<stdio.h>\n#include<stdlib.h>\n\nin...
426
0
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 35.24, "nodes": 228, "errors": 0, "source_hash": "22acb1b5544c7a4548deea45e6df88cb220e266011dc3c50aa453c784da1b020", "categorized_nodes": 171}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,418
c
// SPDX-License-Identifier: GPL-2.0-or-later /* * Test TEST PROTECTION emulation. * * Copyright IBM Corp. 2021 */ #include <sys/mman.h> #include "test_util.h" #include "kvm_util.h" #define PAGE_SHIFT 12 #define PAGE_SIZE (1 << PAGE_SHIFT) #define CR0_FETCH_PROTECTION_OVERRIDE (1UL << (63 - 38)) #define CR0_STORAG...
33.6
196
(translation_unit) "// SPDX-License-Identifier: GPL-2.0-or-later\n/*\n * Test TEST PROTECTION emulation.\n *\n * Copyright IBM Corp. 2021\n */\n\n#include <sys/mman.h>\n#include "test_util.h"\n#include "kvm_util.h"\n\n#define PAGE_SHIFT 12\n#define PAGE_SIZE (1 << PAGE_SHIFT)\n#define CR0_FETCH_PROTECTION_OVERRIDE (1UL...
1,235
1
{"language": "c", "success": true, "metadata": {"lines": 196, "avg_line_length": 33.6, "nodes": 712, "errors": 0, "source_hash": "088f4cea20e264a054b149ce19294a3fab55f60d03ba467ea0c9efd6057ac1e6", "categorized_nodes": 496}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,419
c
#include <weapon.h> #include <ansi.h> inherit CLUB; void create() { set_name(HIG "南海神木" NOR, ({ "nanhai shenmu", "nanhai", "shenmu", "club" }) ); set_weight(6000); if (clonep()) destruct(this_object()); else { set("long", HIG "半截蓉绿半截焦枯的木棍,看似普通,却竟如铁铸一般,坚硬...
32.73
40
(translation_unit) "#include <weapon.h>\n#include <ansi.h>\n\ninherit CLUB;\n\nvoid create()\n{\n set_name(HIG "南海神木" NOR, ({ "nanhai shenmu", "nanhai", "shenmu", "club" }) );\n set_weight(6000);\n if (clonep())\n destruct(this_object());\n else {\n set("long", ...
435
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 32.73, "nodes": 200, "errors": 0, "source_hash": "227082c609c7988d3df94b86c2623689afaa5969d9905865367f24294751f3a9", "categorized_nodes": 160}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,420
c
#ifndef BICYCLE_H #define BICYCLE_H #include "../WheelOdom/WheelOdom.h" #include <cmath> namespace wheel_odom { // ^ x // | // | // y<----O // // - [0] // | | | // length | | // | | | // - [1] class Bicycle : public WheelOdom { p...
22.6
42
(translation_unit) "#ifndef BICYCLE_H\n#define BICYCLE_H\n\n#include "../WheelOdom/WheelOdom.h"\n#include <cmath>\n\nnamespace wheel_odom\n{\n// ^ x\n// |\n// |\n// y<----O\n//\n// - [0]\n// | | |\n// length | |\n// | | |\n// - [1]\n\nc...
259
15
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 22.6, "nodes": 152, "errors": 0, "source_hash": "ff704f2e41552891e94681568ce9c5993224caaba5db5636c7d46f73d2ead44c", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,421
c
#include<stdio.h> #include<math.h> /* for atof() */ #define MAXOP 100 /* maximum size of operand or operator */ #define NUMBER '0' /* signal that a number was found */ int getop(char []); void ungets(char []); void push(double); double pop(void); /* reverse polish calculator, uses command line */ int main(int ...
23.93
121
(translation_unit) "#include<stdio.h>\n#include<math.h> /* for atof() */\n\n#define MAXOP 100 /* maximum size of operand or operator */\n#define NUMBER '0' /* signal that a number was found */\n\nint getop(char []);\nvoid ungets(char []);\nvoid push(double);\ndouble pop(void);\n\n\n/* reverse polish calculator, use...
918
0
{"language": "c", "success": true, "metadata": {"lines": 121, "avg_line_length": 23.93, "nodes": 566, "errors": 0, "source_hash": "9a090abfe5799bdb914a7784546d12c24df22dd1d284c2882a004ca0bac3ebf9", "categorized_nodes": 356}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,422
c
// Copyright 2021. Elysia-ff #pragma once #include "CoreMinimal.h" #include "GameFramework/GameModeBase.h" #include "StealthGameMode.generated.h" /** * */ UCLASS() class STEALTHTUTORIAL_API AStealthGameMode : public AGameModeBase { GENERATED_BODY() };
17.43
14
(translation_unit) "// Copyright 2021. Elysia-ff\n\n#pragma once\n\n#include "CoreMinimal.h"\n#include "GameFramework/GameModeBase.h"\n#include "StealthGameMode.generated.h"\n\n/**\n * \n */\nUCLASS()\nclass STEALTHTUTORIAL_API AStealthGameMode : public AGameModeBase\n{\n GENERATED_BODY()\n \n};\n" (comment) "// Copy...
50
2
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 17.43, "nodes": 24, "errors": 0, "source_hash": "79ced66ee982d28f23bbd324d4026a3f8e63d3032254baadd80952d90c524ea8", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
5,423
c
#ifndef SINK_RECEIVER_H #define SINK_RECEIVER_H PROCESS_NAME (sink_receiver_process); // to initialize the fake_uart void sink_receiver_init(); #endif
24.17
6
(translation_unit) "#ifndef SINK_RECEIVER_H\n#define SINK_RECEIVER_H\n\nPROCESS_NAME (sink_receiver_process);\n\n// to initialize the fake_uart\nvoid sink_receiver_init();\n\n#endif \n" (preproc_ifdef) "#ifndef SINK_RECEIVER_H\n#define SINK_RECEIVER_H\n\nPROCESS_NAME (sink_receiver_process);\n\n// to initialize the f...
25
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 24.17, "nodes": 16, "errors": 0, "source_hash": "534fb0b01eb84aabf380b9771af0407bcbd6f083abfd4d502927a2e6a7c457f3", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef S...
5,424
c
// // AppDelegate.h // newsPopView // // Created by apple on 16/12/5. // Copyright © 2016年 zhangyanlin. All rights reserved. // #import <UIKit/UIKit.h> #define kDelNotification @"kDelNotification" @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @e...
23.54
13
(translation_unit) "//\n// AppDelegate.h\n// newsPopView\n//\n// Created by apple on 16/12/5.\n// Copyright © 2016年 zhangyanlin. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n#define kDelNotification @"kDelNotification"\n@interface AppDelegate : UIResponder <UIApplicationDelegate>\n\n@property (strong, ...
43
6
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 23.54, "nodes": 30, "errors": 0, "source_hash": "99164df139369723abbba4f17412cce2f2d54874e47b63f5d1cfe131cc166579", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
5,425
c
// // MIUInitWithCoder.h // ModelImprovmentUtilite // // Created by <NAME> on 4/10/15. // Copyright (c) 2015 NIX. All rights reserved. // #import <Foundation/Foundation.h> #import "MIUMethod.h" @interface MIUInitWithCoder : MIUMethod @end
21.09
11
(translation_unit) "//\n// MIUInitWithCoder.h\n// ModelImprovmentUtilite\n//\n// Created by <NAME> on 4/10/15.\n// Copyright (c) 2015 NIX. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "MIUMethod.h"\n\n@interface MIUInitWithCoder : MIUMethod\n\n@end\n" (comment) "//" (comment) "// MIUI...
22
3
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 21.09, "nodes": 12, "errors": 0, "source_hash": "fc39fe1db2c17ad972080477637612689772af416e0bbe89ab3edda995f1fdf0", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
5,426
c
#if !defined(__another_rxcpp_h_merge__) #define __another_rxcpp_h_merge__ #include "../observable.h" #include "../internal/tools/util.h" #include "../schedulers.h" #include <algorithm> #include <vector> namespace another_rxcpp { namespace operators { namespace merge_internal { template <typename T, typename OB> ...
37.45
69
(translation_unit) "#if !defined(__another_rxcpp_h_merge__)\n#define __another_rxcpp_h_merge__\n\n#include "../observable.h"\n#include "../internal/tools/util.h"\n#include "../schedulers.h"\n#include <algorithm>\n#include <vector>\n\nnamespace another_rxcpp {\nnamespace operators {\n\nnamespace merge_internal {\n temp...
953
76
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 37.45, "nodes": 540, "errors": 0, "source_hash": "d52a880d5284da8e614d268a2265786988fe84e5aaf7398986ba6f98c3fa3163", "categorized_nodes": 379}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defi...
5,427
c
/************************************************************************************************** Phyplus Microelectronics Limited confidential and proprietary. All rights reserved. IMPORTANT: All rights of this software belong to Phyplus Microelectronics Limited ("Phyplus"). Your use of this Software is...
34.03
218
(translation_unit) "/**************************************************************************************************\n \n Phyplus Microelectronics Limited confidential and proprietary. \n All rights reserved.\n\n IMPORTANT: All rights of this software belong to Phyplus Microelectronics \n Limited ("Phyplus"). Yo...
1,113
0
{"language": "c", "success": true, "metadata": {"lines": 218, "avg_line_length": 34.03, "nodes": 634, "errors": 0, "source_hash": "623e8c83109ecf394a40a4d1f996f8d7e9bef6a4cb8bd53f34bf38a7c05c77fe", "categorized_nodes": 440}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,428
c
#include "array.h" void display_array(int* array, int number_to_display){ int i = 0; int j = 0; /* printf("ARRAY :\n\n"); */ while (j < SHAPE_SIZE){ i = 0; while(i < SHAPE_SIZE){ if(array[i+j*SHAPE_SIZE] == 1) printf("%c",number_to_display+65); ...
19.59
32
(translation_unit) "#include "array.h"\n\n\n\nvoid display_array(int* array, int number_to_display){\n int i = 0;\n int j = 0;\n /* printf("ARRAY :\n\n"); */\n while (j < SHAPE_SIZE){\n i = 0;\n while(i < SHAPE_SIZE){\n if(array[i+j*SHAPE_SIZE] == 1)\n printf("%c",num...
246
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 19.59, "nodes": 148, "errors": 0, "source_hash": "dbc4d210447a9e98c4a37f5e1e50917652f589dd180377845aa3afe488f84181", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
5,429
c
/* * Copyright (c) 2014-2018 Cesanta Software Limited * All rights reserved * * Licensed under the Apache License, Version 2.0 (the ""License""); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ...
31.08
39
(translation_unit) "/*\n * Copyright (c) 2014-2018 Cesanta Software Limited\n * All rights reserved\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...
71
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 31.08, "nodes": 54, "errors": 0, "source_hash": "bd4c7f26bbb54a65e8b57b0ce06ecdc797fff5ef3cca74d806a89632fbf28379", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,430
c
// // Created by kier on 2018/11/7. // #ifndef TENSORSTACK_MODULE_IO_SSTREAM_H #define TENSORSTACK_MODULE_IO_SSTREAM_H #include "stream.h" #include <sstream> namespace ts { class TS_DEBUG_API StringStreamReader : public StreamReader { public: using self = StringStreamReader; using supper = S...
34.27
70
(translation_unit) "//\n// Created by kier on 2018/11/7.\n//\n\n#ifndef TENSORSTACK_MODULE_IO_SSTREAM_H\n#define TENSORSTACK_MODULE_IO_SSTREAM_H\n\n\n#include "stream.h"\n#include <sstream>\n\nnamespace ts {\n class TS_DEBUG_API StringStreamReader : public StreamReader {\n public:\n using self = StringStre...
666
40
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 34.27, "nodes": 375, "errors": 0, "source_hash": "2cdc83c79379a61278a1ad75c9d5de38ae6fb36a29fb7582fd7dcf48e56fe170", "categorized_nodes": 249}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,431
c
// -*- C++ -*- // $Id: config-irix6.5.x-sgic++.h 80826 2008-03-04 14:51:23Z wotte $ // Use this file for IRIX 6.5.x #ifndef ACE_CONFIG_IRIX65X_H #define ACE_CONFIG_IRIX65X_H #include /**/ "ace/pre.h" // Include IRIX 6.[234] configuration #include "ace/config-irix6.x-sgic++.h" // Irix 6.5 man pages show that they ex...
33.62
13
(translation_unit) "// -*- C++ -*-\n// $Id: config-irix6.5.x-sgic++.h 80826 2008-03-04 14:51:23Z wotte $\n\n// Use this file for IRIX 6.5.x\n\n#ifndef ACE_CONFIG_IRIX65X_H\n#define ACE_CONFIG_IRIX65X_H\n#include /**/ "ace/pre.h"\n\n// Include IRIX 6.[234] configuration\n#include "ace/config-irix6.x-sgic++.h"\n\n// Irix...
40
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 33.62, "nodes": 22, "errors": 0, "source_hash": "1b7d961a6495b071567641cbd7e59132a13ff48c27b78c13bbea0ea8020f544f", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,432
c
// // JHListViewConfig.h // JHListView // // Created by HaoCold on 2020/3/5. // Copyright © 2020 HaoCold. All rights reserved. // #import <UIKit/UIKit.h> #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface JHListViewConfig : NSObject @property (nonatomic, copy) NSString *identity; ...
43.23
22
(translation_unit) "//\n// JHListViewConfig.h\n// JHListView\n//\n// Created by HaoCold on 2020/3/5.\n// Copyright © 2020 HaoCold. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface JHListViewConfig : NSObject\n@property (nonatomic, cop...
181
22
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 43.23, "nodes": 112, "errors": 0, "source_hash": "3ccc886770032e5c8740adba61b534f5bcccbfe428d488caacb3d05b2eff1f06", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <...
5,433
c
/* * This header is generated by classdump-dyld 1.0 * on Saturday, June 1, 2019 at 6:45:50 PM Mountain Standard Time * Operating System: Version 12.1.1 (Build 16C5050a) * Image Source: /System/Library/PrivateFrameworks/AXMediaUtilities.framework/AXMediaUtilities * classdump-dyld is licensed under GPLv3, Copyright © 201...
43.75
20
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Saturday, June 1, 2019 at 6:45:50 PM Mountain Standard Time\n* Operating System: Version 12.1.1 (Build 16C5050a)\n* Image Source: /System/Library/PrivateFrameworks/AXMediaUtilities.framework/AXMediaUtilities\n* classdump-dyld is licensed und...
120
12
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 43.75, "nodes": 70, "errors": 0, "source_hash": "0873c17174622b7807392eaa760bf56cf8aaa97a8da7e348154977aef49788c2", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <A...
5,434
c
/************************************************************************************************* * The extended advanced API of QDBM * Copyright (C) 2000-2007 <NAME> * This file is part of QDBM, Quick Database Manager. * QDBM is free software; you can redistrib...
36.54
121
(translation_unit) "/*************************************************************************************************\n * The extended advanced API of QDBM\n * Copyright (C) 2000-2007 <NAME>\n * This file is part of QDBM, Quick Database Manager.\n * QDBM is free sof...
398
0
{"language": "c", "success": true, "metadata": {"lines": 121, "avg_line_length": 36.54, "nodes": 378, "errors": 0, "source_hash": "a3c9d372c2777243c0cf47247c43875d2891d224b357810cb69809029d0edeaa", "categorized_nodes": 118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
5,435
c
// // Copyright (c) 2013 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> #import "UISSConfig.h" #import "UISSArgumentValueConverter.h" @class UISSPropertySetter; @interface UISSArgument : NSObject { @protected NSString *_name; } @property (nonatomic, weak) UISSPropertySetter *propertySetter; @prope...
31.18
22
(translation_unit) "//\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "UISSConfig.h"\n#import "UISSArgumentValueConverter.h"\n\n@class UISSPropertySetter;\n\n@interface UISSArgument : NSObject {\n @protected\n NSString *_name;\n}\n\n@property (nonatomic, weak) UISSProp...
191
34
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 31.18, "nodes": 133, "errors": 0, "source_hash": "792cb28fc89f034628be0517377bbde0e68dcc80236fb42265cc0502793e3324", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
5,436
c
#ifndef MENU_THREAD_H #define MENU_THREAD_H #include "CppThread.h" #include "Menu.h" //#include <wiringPi.h> /** * @file MenuThread.h * @brief This header file contains all definitions relating to the * use of the menu as a thread * @author <NAME> * @date 10/04/2019 */ /** * @brief Threadable implementation of menu */...
22
31
(translation_unit) "#ifndef MENU_THREAD_H\n#define MENU_THREAD_H\n#include "CppThread.h"\n#include "Menu.h"\n\n//#include <wiringPi.h>\n/**\n* @file MenuThread.h\n* @brief This header file contains all definitions relating to the\n* use of the menu as a thread\n* @author <NAME>\n* @date 10/04/2019\n*/\n/**\n* @brief Th...
72
1
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 22.0, "nodes": 37, "errors": 0, "source_hash": "27e8cdd153a463c97124d159dd170522704e57b9e7709a911b6067cd9da0fa71", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef M...
5,437
c
/******************************************************************************* WINC Driver Power Save Implementation File Name: wdrv_winc_powersave.c Summary: WINC wireless driver power save implementation. Description: Provides an interface to control the power states of the WINC. ***********...
33.67
199
(translation_unit) "/*******************************************************************************\n WINC Driver Power Save Implementation\n\n File Name:\n wdrv_winc_powersave.c\n\n Summary:\n WINC wireless driver power save implementation.\n\n Description:\n Provides an interface to control the power st...
452
0
{"language": "c", "success": true, "metadata": {"lines": 199, "avg_line_length": 33.67, "nodes": 254, "errors": 0, "source_hash": "263779d036db8ae372584bc3bf2bf1c3434628d3bb396d0e2b4e001465399130", "categorized_nodes": 190}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,438
c
/* * This header is generated by classdump-dyld 1.0 * on Wednesday, March 22, 2017 at 9:01:46 AM Mountain Standard Time * Operating System: Version 10.1 (Build 14U593) * Image Source: /System/Library/Frameworks/CoreImage.framework/CoreImage * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>. */ ...
18.6
277
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Wednesday, March 22, 2017 at 9:01:46 AM Mountain Standard Time\n* Operating System: Version 10.1 (Build 14U593)\n* Image Source: /System/Library/Frameworks/CoreImage.framework/CoreImage\n* classdump-dyld is licensed under GPLv3, Copyright © ...
1,239
0
{"language": "c", "success": true, "metadata": {"lines": 277, "avg_line_length": 18.6, "nodes": 892, "errors": 0, "source_hash": "194d85d157e110a55fcaff16d7fef4a78ab53821e1a7ae466e7d2d909c8517ba", "categorized_nodes": 640}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "yped...
5,439
c
#ifndef ARRAYLIST_H #define ARRAYLIST_H static const int INITIAL_CAPACITY = 16; typedef struct arraylist { void** data; int size; int capacity; } arraylist; arraylist* arraylist_new(void); void arraylist_init(arraylist* list); void arraylist_free(arraylist* list); int arraylist_size(const arraylist*...
31.32
28
(translation_unit) "#ifndef ARRAYLIST_H \n#define ARRAYLIST_H \n \nstatic const int INITIAL_CAPACITY = 16; \n \ntypedef struct arraylist { \n void** data; \n int size; \n int capacity; \n} arraylist; \n \narraylist* arraylist_new(void); \nvoid arraylist_init(arraylist* list); \nvoid arraylist_free(arraylist* list); \ni...
307
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 31.32, "nodes": 227, "errors": 0, "source_hash": "d68780706ee487111cbeff84d35b01d772c11014433b058e537deb90c2820c29", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,440
c
// // ISOPVChapterCellView.h // xBilim // // Created by <NAME> on 11/1/13. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <Cocoa/Cocoa.h> @interface ISOPVChapterCellView : NSTableCellView @property IBOutlet NSTextField *chapterTitleField; @property IBOutlet NSTextField *chapterDescField; @end
25.08
12
(translation_unit) "//\n// ISOPVChapterCellView.h\n// xBilim\n//\n// Created by <NAME> on 11/1/13.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n\n@interface ISOPVChapterCellView : NSTableCellView\n\n@property IBOutlet NSTextField *chapterTitleField;\n@property IBOutlet NSTextF...
44
8
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 25.08, "nodes": 29, "errors": 0, "source_hash": "298f901e2fc70c82fb164d07b55958d7e337a5510327b08a38c76b696c7cb2f5", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
5,441
c
/* (C)opyright MMIV-MMVI <NAME> <<EMAIL>beam at gmail dot com> * Copyright ©2006-2007 <NAME> <<EMAIL>> * See LICENSE file for license details. */ #ifndef __MIXP_STAT_H #define __MIXP_STAT_H // FIXME #ifndef _LARGEFILE64_SOURCE #define _LARGEFILE64_SOURCE #endif #include <sys/types.h> #include <inttypes.h> #inclu...
21.35
31
(translation_unit) "/* (C)opyright MMIV-MMVI <NAME> <<EMAIL>beam at gmail dot com>\n * Copyright ©2006-2007 <NAME> <<EMAIL>>\n * See LICENSE file for license details.\n */\n\n#ifndef __MIXP_STAT_H\n#define __MIXP_STAT_H\n\n// FIXME\n#ifndef _LARGEFILE64_SOURCE\n#define _LARGEFILE64_SOURCE\n#endif\n\n#include <sys/types...
128
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 21.35, "nodes": 103, "errors": 0, "source_hash": "ba06e728b6e6dba83b20eb95940a9cb93c0e885b280a0346ca7d845347eddbf6", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef ...
5,442
c
#include <gb/gb.h> #include <gb/gbdecompress.h> #include <stdint.h> #include <stdbool.h> // Include graphics data #include "monalisa_tiles_comp.h" #include "monalisa_map.h" // The map tiles were exported from GBTD with compression enabled // using this updated version of GBTD: https://github.com/untoxa/GBTD_GBMB // S...
34.9
31
(translation_unit) "#include <gb/gb.h>\n#include <gb/gbdecompress.h>\n#include <stdint.h>\n#include <stdbool.h>\n\n// Include graphics data\n#include "monalisa_tiles_comp.h"\n#include "monalisa_map.h"\n\n// The map tiles were exported from GBTD with compression enabled\n// using this updated version of GBTD: https://gi...
98
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 34.9, "nodes": 45, "errors": 0, "source_hash": "c2ac4843ed8f871a38cacb4591810cf83ae2cb9846712b96b9401b1ecabb9afb", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
5,443
c
#include "fan.h" #include "main.h" #include "luos.h" #include "reachy.h" #include "pub_msg.h" void Fan_Init() { // ********************* Gpio configuration **************************** GPIO_InitTypeDef GPIO_InitStruct = {0}; // GPIO Ports Clock Enable __HAL_RCC_GPIOB_CLK_ENABLE(); // Set a safe pi...
29.9
127
(translation_unit) "#include "fan.h"\n#include "main.h"\n#include "luos.h"\n#include "reachy.h"\n#include "pub_msg.h"\n\n\nvoid Fan_Init()\n{\n // ********************* Gpio configuration ****************************\n GPIO_InitTypeDef GPIO_InitStruct = {0};\n // GPIO Ports Clock Enable\n __HAL_RCC_GPIOB_CL...
930
0
{"language": "c", "success": true, "metadata": {"lines": 127, "avg_line_length": 29.9, "nodes": 563, "errors": 0, "source_hash": "ffba8b0d807f58dc0b4879ed1399df3652671edbd09acd22c1bdd227d48276f8", "categorized_nodes": 413}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,444
c
#include<GL\freeglut.h> void DisplayChairCarpet() { //code glBegin(GL_QUADS); //glColor3f(0.68f, 0.18f, 0.19f); //Dark color //glColor3f(0.78f, 0.21f, 0.22f); //Light Color glColor3f(0.78f, 0.21f, 0.22f); glVertex3f(-0.2f, -0.35f, 0.0f); //left top glColor3f(0.68f, 0.18f, 0.19f); glVertex3f(-0.25...
30.29
17
(translation_unit) "#include<GL\freeglut.h>\n\nvoid DisplayChairCarpet()\n{\n //code\n\n glBegin(GL_QUADS);\n\n //glColor3f(0.68f, 0.18f, 0.19f); //Dark color\n //glColor3f(0.78f, 0.21f, 0.22f); //Light Color\n\n glColor3f(0.78f, 0.21f, 0.22f);\n glVertex3f(-0.2f, -0.35f, 0.0f); //left top\n\n glColor3f(0.68f...
132
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 30.29, "nodes": 63, "errors": 0, "source_hash": "3919e2dc6f4f6fc4261dcb6a18975046fde69b70ccec4d157ea54b9ff8d00b55", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,445
c
#ifndef __view_layer_helper_h__ #define __view_layer_helper_h__ #pragma once #include "base/basic_types.h" #include "base/memory/ref_counted.h" #include "base/memory/scoped_ptr.h" #include "ui_gfx/rect.h" namespace gfx { class Transform; } namespace ui { class Layer; class Texture;...
29.97
125
(translation_unit) "#ifndef __view_layer_helper_h__ \n#define __view_layer_helper_h__ \n \n#pragma once \n \n#include "base/basic_types.h" \n#include "base/memory/ref_counted.h" \n#include "base/memory/scoped_ptr.h" \n \n#include "ui_gfx/rect.h" \n \nnamespace gfx \n{ \n class Transform; \n} \n \nnamespace ui \n{ \n...
541
16
{"language": "c", "success": true, "metadata": {"lines": 125, "avg_line_length": 29.97, "nodes": 296, "errors": 0, "source_hash": "7a0daaabd2b26b4d613bf40b730f7315fa08a5560b4a239d441854a0753e3d12", "categorized_nodes": 201}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
5,446
c
#ifndef __LED_H__ #define __LED_H__ class Led { private: int pin; int state; bool reversed; public: Led(int pin, bool reversed = false) : pin(pin) , state(0) , reversed(reversed) {} void turnOn() { state = reversed ? 0 : 1; } void turnOff() { state = reversed ? 1 : 0; } void...
16.62
42
(translation_unit) "#ifndef __LED_H__\n#define __LED_H__\n\nclass Led {\nprivate:\n int pin;\n int state;\n bool reversed;\n\npublic:\n Led(int pin, bool reversed = false)\n : pin(pin)\n , state(0)\n , reversed(reversed)\n {}\n\n void turnOn() {\n state = reversed ? 0 : 1;\n }\n\n void turnOff() {\n...
279
13
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 16.62, "nodes": 169, "errors": 0, "source_hash": "e526fdb30d4c5a154011226f261ce8fbb3af522a31db573d784f0c639c05c009", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,447
c
// // VCExampleTableViewController.h // VisualConstraints // // Created by <NAME> on 4/28/15. // Copyright (c) 2015 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface VCExampleTableViewController : UITableViewController @end
23.5
10
(translation_unit) "//\n// VCExampleTableViewController.h\n// VisualConstraints\n//\n// Created by <NAME> on 4/28/15.\n// Copyright (c) 2015 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface VCExampleTableViewController : UITableViewController\n\n@end\n" (comment) "//" (comment) "// VCE...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 23.5, "nodes": 9, "errors": 0, "source_hash": "d3c5272610e8e2d3ae9ccfa78028a23ccfc7aec260e3778cfe5287cbcfe4f6ed", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UIK...
5,448
c
/* * Copyright 2012-2014 NAVER Corp. * * 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...
29.25
36
(translation_unit) "/*\n * Copyright 2012-2014 NAVER Corp.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required b...
240
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 29.25, "nodes": 125, "errors": 0, "source_hash": "cc167a1095322b4561187389eeda29f7274a0f144fdc4c6e5e4aed5a1458e015", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
5,449
c
/* * * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Copyright 2007-2020 Broadcom Inc. All rights reserved. * * File: fifodma_internal.h * Purpose: Maps out structures used for FIFO DMA operations and * ...
31.4
104
(translation_unit) "/*\n * \n * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.\n * \n * Copyright 2007-2020 Broadcom Inc. All rights reserved.\n *\n * File: fifodma_internal.h\n * Purpose: Maps out structures used for FIFO D...
498
0
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 31.4, "nodes": 368, "errors": 0, "source_hash": "3f4a9a24611d78e24aa518142b555d7618e68c0cc2ff48a1584618f87f84d3b5", "categorized_nodes": 214}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,450
c
// Copyright 2017 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 Grid_h #define Grid_h #include "core/layout/OrderIterator.h" #include "core/style/GridArea.h" #include "core/style/GridPositionsResolver.h" #incl...
43.32
99
(ERROR) "// Copyright 2017 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 Grid_h\n#define Grid_h\n\n#include "core/layout/OrderIterator.h"\n#include "core/style/GridArea.h"\n#include "core/style/GridPosition...
812
58
{"language": "c", "success": true, "metadata": {"lines": 99, "avg_line_length": 43.32, "nodes": 469, "errors": 0, "source_hash": "badb5d8666f05b05574d4c471caf1827fe14d98a971b876a6b09f67d96962874", "categorized_nodes": 295}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "// Copyright 2017 The Chr...
5,451
c
/* * This file is part of RTRlib. * * This file is subject to the terms and conditions of the MIT license. * See the file LICENSE in the top level directory for more details. * * Website: http://rtrlib.realmv6.org/ */ #include <arpa/inet.h> #include <assert.h> #include <netinet/in.h> #include <sys/socket.h> #in...
24.68
53
(translation_unit) "/*\n * This file is part of RTRlib.\n *\n * This file is subject to the terms and conditions of the MIT license.\n * See the file LICENSE in the top level directory for more details.\n *\n * Website: http://rtrlib.realmv6.org/\n */\n\n#include <arpa/inet.h>\n#include <assert.h>\n#include <netinet/in...
317
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 24.68, "nodes": 215, "errors": 0, "source_hash": "f173c2a6dfcc638f38688b8891b3b9ad128537808fada6f0470fd7ccbd75ec37", "categorized_nodes": 164}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,452
c
#ifndef __AGCShips_h__ #define __AGCShips_h__ ///////////////////////////////////////////////////////////////////////////// // AGCShips.h : Declaration of the CAGCShips class. // #include "resource.h" #include "IAGCCollectionImpl.h" ///////////////////////////////////////////////////////////////////////////// // CA...
27.37
35
(translation_unit) "#ifndef __AGCShips_h__\n#define __AGCShips_h__\n\n/////////////////////////////////////////////////////////////////////////////\n// AGCShips.h : Declaration of the CAGCShips class.\n//\n\n#include "resource.h"\n#include "IAGCCollectionImpl.h"\n\n\n////////////////////////////////////////////////////...
133
10
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 27.37, "nodes": 69, "errors": 0, "source_hash": "c4eb387199d8e16dc129a54c4ff12c6861c31c0391464e58027c4309c8a22e46", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,453
c
#ifndef xrMemory_POOLh #define xrMemory_POOLh #pragma once class xrMemory; class MEMPOOL { #ifdef DEBUG_MEMORY_MANAGER friend class xrMemory; #endif // DEBUG_MEMORY_MANAGER private: xrCriticalSection cs; u32 s_sector; // large-memory sector size u32 s_element; // element size, for example 32 u32 s_...
23.85
46
(translation_unit) "#ifndef xrMemory_POOLh\n#define xrMemory_POOLh\n#pragma once\n\nclass xrMemory;\n\nclass MEMPOOL\n{\n#ifdef DEBUG_MEMORY_MANAGER\n friend class xrMemory;\n#endif // DEBUG_MEMORY_MANAGER\nprivate:\n xrCriticalSection cs;\n u32 s_sector; // large-memory sector size\n u32 s_element; // elemen...
362
8
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 23.85, "nodes": 224, "errors": 0, "source_hash": "8d1339c3c124c3446c22518b7fe412cc20d6c24f631dfa2d3fc9c277b2295fa3", "categorized_nodes": 153}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,454
c
#pragma once #include "entities.h" #include "types.h" #include <stdbool.h> typedef struct Room { RoomId roomId; // Which room owns this entity? } Room; Room* GetRoom(EntityId id); void SetRoom(EntityId id, Room* room); static struct { Room* (*Get)(EntityId id); void (*Set)(EntityId id, Room* room); } R...
22.73
15
(translation_unit) "#pragma once\n\n#include "entities.h"\n#include "types.h"\n\n#include <stdbool.h>\n\ntypedef struct Room\n{\n RoomId roomId; // Which room owns this entity?\n} Room;\n\nRoom* GetRoom(EntityId id);\nvoid SetRoom(EntityId id, Room* room);\n\nstatic struct\n{\n Room* (*Get)(EntityId id);\n voi...
132
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 22.73, "nodes": 90, "errors": 0, "source_hash": "ed74c4eea2fc932f6f0c6d18c62f637e5ba26bd4b37230374cfe868ae3e58034", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
5,455
c
#include <stdlib.h> #include "smack.h" // @expect error int main(void) { int* a; int b = a[0]; return b; }
13.12
8
(translation_unit) "#include <stdlib.h>\n#include "smack.h"\n\n// @expect error\n\nint main(void) {\n int* a;\n int b = a[0];\n return b;\n}\n\n" (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (preproc_include) "#include "smack.h"\n" (#include) "#incl...
44
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 13.12, "nodes": 28, "errors": 0, "source_hash": "47e0afb05e9ce3e5e0f541fe6e42399d29999462a6ac76255aeb8e342bba180d", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
5,456
c
#include <linux/uaccess.h> #include <linux/export.h> #include <linux/uio.h> /* * Copy iovec to kernel. Returns -EFAULT on error. * * Note: this modifies the original iovec. */ int memcpy_fromiovec(unsigned char *kdata, struct iovec *iov, int len) { while (len > 0) { if (iov->iov_len) { int copy = min_t(unsi...
21.72
97
(translation_unit) "#include <linux/uaccess.h>\n#include <linux/export.h>\n#include <linux/uio.h>\n\n/*\n * Copy iovec to kernel. Returns -EFAULT on error.\n *\n * Note: this modifies the original iovec.\n */\n\nint memcpy_fromiovec(unsigned char *kdata, struct iovec *iov, int len)\n{\n while (len > 0) {\n if (iov->io...
660
5
{"language": "c", "success": true, "metadata": {"lines": 97, "avg_line_length": 21.72, "nodes": 419, "errors": 0, "source_hash": "b78cf09e6fd3897230be8cc7234fabf21e1a535b17c3aaaa14d51cf7aab49a1e", "categorized_nodes": 310}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,457
c
/*================================================================ Filename: MetaLang/Parser.h Date: 2018.4.15 Created by AirGuanZ ================================================================*/ #pragma once #include <Common/Utility.h> #include <MetaLang/AST.h> #include <MetaLang/Tokenizer.h> NS_BEGIN(AGZ) NS_BEGI...
27.53
38
(translation_unit) "/*================================================================\nFilename: MetaLang/Parser.h\nDate: 2018.4.15\nCreated by AirGuanZ\n================================================================*/\n#pragma once\n\n#include <Common/Utility.h>\n#include <MetaLang/AST.h>\n#include <MetaLang/Tokeni...
230
7
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 27.53, "nodes": 143, "errors": 0, "source_hash": "d45b63df7a12e1c6366836513c3a7deb27543f13416a4bf4ab3323feb7cc39f8", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
5,458
c
#ifndef _light_Socket_H_ #define _light_Socket_H_ #include "light_server_app.h" #ifdef LIGHT_SERVER_APPLICATION #ifdef TCP_SERVER_LIGHT #include "compiler.h" #include "doubly_list.h" typedef struct { LIST_HEADER_T list; int fd; } light_socket_handler_meg_T; int light_tcp_fd_find_connect(int fd); int light_...
25.78
18
(translation_unit) "#ifndef _light_Socket_H_\n#define _light_Socket_H_\n\n#include "light_server_app.h"\n\n#ifdef LIGHT_SERVER_APPLICATION\n\n#ifdef TCP_SERVER_LIGHT\n#include "compiler.h"\n#include "doubly_list.h"\n\ntypedef struct\n{\n LIST_HEADER_T list;\n int fd;\n} light_socket_handler_meg_T;\n\nint light_tc...
81
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 25.78, "nodes": 55, "errors": 0, "source_hash": "0a17ffc4efbb7ed3ccf7ec1326c1eb0abf1895eb6d27c969c57f914d75f46185", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,459
c
//Take a look at the below mentioned lik to know about the algorithm //https://www.geeksforgeeks.org/bellman-ford-algorithm-dp-23/ #include<stdio.h> #define MAX 999999 #define MIN -999999 struct node { int u,v,w; }a[1000]; int d[1000],pi[1000]; void main() { int k,i,j,e,n,u,v,w,src; printf("Enter no. of ...
20.28
67
(translation_unit) "//Take a look at the below mentioned lik to know about the algorithm\n//https://www.geeksforgeeks.org/bellman-ford-algorithm-dp-23/\n\n#include<stdio.h>\n#define MAX 999999\n#define MIN -999999\n\nstruct node\n{\n int u,v,w;\n}a[1000];\n\nint d[1000],pi[1000];\n\nvoid main()\n{\n int k,i,j,e,n,...
623
0
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 20.28, "nodes": 349, "errors": 0, "source_hash": "f6fadb72f86e21e7bc4b31ebb59b125e11f93b1c3a22dc978c1fb1b968bb5009", "categorized_nodes": 279}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,460
c
#ifndef _GTOUCHE_ #define _GTOUCHE_ #include "Structure.h" #include "ManipTranche.h" void toucheEntree(Curseur* curseur); void toucheEspace(Curseur* curseur); void toucheSuppr(Curseur* curseur); void toucheDel(Curseur* curseur); void toucheLettre(Curseur* curseur, char c); void inserer(Curseur* curseur, char c); voi...
28.33
15
(translation_unit) "#ifndef _GTOUCHE_\n#define _GTOUCHE_\n\n#include "Structure.h"\n#include "ManipTranche.h"\n\nvoid toucheEntree(Curseur* curseur);\nvoid toucheEspace(Curseur* curseur);\nvoid toucheSuppr(Curseur* curseur);\nvoid toucheDel(Curseur* curseur);\nvoid toucheLettre(Curseur* curseur, char c);\nvoid inserer(...
158
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 28.33, "nodes": 119, "errors": 0, "source_hash": "f7c5730cd0404c3c317a258f914abef5b0988c419e5cfd42e54b094d84f4ac7e", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,461
c
/* Copyright 2019 <NAME>, <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 ...
36.35
31
(translation_unit) "/*\n Copyright 2019 <NAME>, <NAME>\n\n Licensed under the Apache License, Version 2.0 (the "License");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by ap...
110
2
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 36.35, "nodes": 68, "errors": 0, "source_hash": "5bdaaa004c14f3a568fb87fd55236c81b31cf848fa46ac3f63e0f73ecf0dff53", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,462
c
#include <util/delay.h> #include <avr/io.h> #include <util/atomic.h> #include <stdio.h> //printf functions #include <avr/interrupt.h> #include <stdint.h> //uint #include "menu.h" //Menu for LCD #include "LCD/st7565.h" //LCD low level #include "LCD/graphics.h" //LCD high level #include "LCD/fonts/fonts.h" //f...
30.01
236
(translation_unit) "#include <util/delay.h> \n#include <avr/io.h> \n#include <util/atomic.h> \n#include <stdio.h> //printf functions \n#include <avr/interrupt.h> \n#include <stdint.h> //uint \n \n#include "menu.h" //Menu for LCD \n#include "LCD/st7565.h" //LCD low level \n#include "LCD/graphics.h" //LCD high level \n#i...
1,816
0
{"language": "c", "success": true, "metadata": {"lines": 236, "avg_line_length": 30.01, "nodes": 961, "errors": 0, "source_hash": "cdabc1dc2adf2e7ab2036ffba5ac915a42f41cf4ca845fbe2590414eca0defeb", "categorized_nodes": 704}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,463
c
/* Copyright 2020 Neijwiert 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 distr...
28.48
112
(translation_unit) "/*\nCopyright 2020 Neijwiert\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 ...
672
48
{"language": "c", "success": true, "metadata": {"lines": 112, "avg_line_length": 28.48, "nodes": 389, "errors": 0, "source_hash": "0eb2dd473cbb4a55f53067d8a441b52adaa0730a1ba7656f23887871b4524462", "categorized_nodes": 255}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
5,464
c
// // WebBrowserViewController.h // ECSDKDemo_OC // // Created by admin on 16/3/17. // Copyright © 2016年 ronglian. All rights reserved. // #import <UIKit/UIKit.h> #import "BaseViewController.h" @class WebBrowserBaseViewController; @protocol WebBrowserBaseViewControllerDelegate <NSObject> - (void)onSendPreviewMsg...
43.33
18
(ERROR) "//\n// WebBrowserViewController.h\n// ECSDKDemo_OC\n//\n// Created by admin on 16/3/17.\n// Copyright © 2016年 ronglian. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "BaseViewController.h"\n\n@class WebBrowserBaseViewController;\n@protocol WebBrowserBaseViewControllerDelegate <NSObject>\n\n-...
138
15
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 43.33, "nodes": 88, "errors": 0, "source_hash": "38843daf41803757f3b738f5a4b9eada7b197b6f5f4a0cde6391085e1ce58286", "categorized_nodes": 53}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// WebBrowserViewContr...
5,465
c
#pragma once #include <string> std::string ws2s(const std::wstring& ws); std::wstring s2ws(const std::string& s); int is_begin_with(const char* str1, char* str2); int is_end_with(const char* str1, char* str2);
29.14
7
(translation_unit) "#pragma once\n\n\n#include <string>\n\nstd::string ws2s(const std::wstring& ws);\nstd::wstring s2ws(const std::string& s);\nint is_begin_with(const char* str1, char* str2);\nint is_end_with(const char* str1, char* str2);" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (prepr...
91
4
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 29.14, "nodes": 54, "errors": 0, "source_hash": "f25ccbfcd20e5059fd9218f64076d116c5213ddc976175919907463f66934acb", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
5,466
c
/* * internal.h * * Created on: 11.06.2021 * Author: <NAME> */ #ifndef MESSAGES_INTERNAL_H_ #define MESSAGES_INTERNAL_H_ #include "rodos.h" #include "matlib.h" namespace INTERNAL_MSG { struct MEASUREMENT { MEASUREMENT() : accel(Vector3D(0, 0, 0)), gyro(Vector3D(0, 0, 0)), GYRO_SPEED(Vector3D(0,...
24
67
(translation_unit) "/*\n * internal.h\n *\n * Created on: 11.06.2021\n * Author: <NAME>\n */\n\n#ifndef MESSAGES_INTERNAL_H_\n#define MESSAGES_INTERNAL_H_\n\n#include "rodos.h"\n#include "matlib.h"\n\nnamespace INTERNAL_MSG {\n struct MEASUREMENT {\n MEASUREMENT()\n : accel(Vector3D(0, 0, 0)),\n gyro(Vecto...
498
22
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 24.0, "nodes": 281, "errors": 0, "source_hash": "c1774e037ef31397e55d3ab2d2c8f3761ef82dd9cae207895b98af701ea5a18f", "categorized_nodes": 234}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,467
c
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #pragma once #include "arcana/type_traits.h" #include "arcana/utils/serialization/base_stream.h" #include "arcana/utils/serialization/serializable.h" #include <gsl/gsl> #include <memory> #include <type_traits> namespace mira { template<t...
31.01
175
(translation_unit) "// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n#pragma once\n\n#include "arcana/type_traits.h"\n#include "arcana/utils/serialization/base_stream.h"\n#include "arcana/utils/serialization/serializable.h"\n\n#include <gsl/gsl>\n#include <memory>\n#include <type_traits>\n...
1,817
114
{"language": "c", "success": true, "metadata": {"lines": 175, "avg_line_length": 31.01, "nodes": 1143, "errors": 0, "source_hash": "9bde337d4ca724303ebf8c8c6742fcf69bce9e9dbe7a2ce50101669bf385cda6", "categorized_nodes": 781}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#prag...
5,468
c
#include "FreeRTOS.h" #include "task.h" #include "../inc/main.h" #include "../inc/uart.h" #include "board.h" #include "queue.h" #include "../inc/funciones.h" /*UART3*/ extern xQueueHandle colarxA; extern xQueueHandle colatxA; /*UART2*/ extern xQueueHandle colarxB; extern xQueueHandle colatxB; void initHardware(void) ...
23.81
144
(translation_unit) "#include "FreeRTOS.h"\n#include "task.h"\n#include "../inc/main.h"\n#include "../inc/uart.h"\n#include "board.h"\n#include "queue.h"\n#include "../inc/funciones.h"\n\n/*UART3*/\nextern xQueueHandle colarxA;\nextern xQueueHandle colatxA;\n/*UART2*/\nextern xQueueHandle colarxB;\nextern xQueueHandle c...
982
0
{"language": "c", "success": true, "metadata": {"lines": 144, "avg_line_length": 23.81, "nodes": 553, "errors": 0, "source_hash": "ef4ba844b534a5ec249c431242f01037ccc324c9cad9d085340372a1292fd614", "categorized_nodes": 406}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,469
c
// Copyright 2020 <NAME> // SPDX-License-Identifier: ISC #include <sys/socket.h> #include <netinet/in.h> #include <sys/un.h> #include <dirent.h> #include <errno.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "unix.h" int unix_read(int fd, char *buf, size_t cap, size_t *out) { size_t le...
23.99
228
(translation_unit) "// Copyright 2020 <NAME>\n// SPDX-License-Identifier: ISC\n\n#include <sys/socket.h>\n\n#include <netinet/in.h>\n#include <sys/un.h>\n\n#include <dirent.h>\n#include <errno.h>\n#include <stdlib.h>\n#include <string.h>\n#include <unistd.h>\n\n#include "unix.h"\n\nint unix_read(int fd, char *buf, size...
2,081
0
{"language": "c", "success": true, "metadata": {"lines": 228, "avg_line_length": 23.99, "nodes": 1319, "errors": 0, "source_hash": "e6913a74cebd8aaec0b08d92025f958a852ef523ee480a0d4872ce25aa7bb166", "categorized_nodes": 953}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
5,470
c
#ifndef WORKERWIDGET_H #define WORKERWIDGET_H #include <QWidget> #include <QThread> #include <QProgressBar> #include <QTimer> #include "Worker.h" class WorkerWidget : public QWidget { Q_OBJECT public: explicit WorkerWidget(QWidget *parent = 0); ~WorkerWidget(); private: QProgressBar mStatus; Wor...
19.5
20
(translation_unit) "#ifndef WORKERWIDGET_H\n#define WORKERWIDGET_H\n\n#include <QWidget>\n#include <QThread>\n#include <QProgressBar>\n#include <QTimer>\n\n#include "Worker.h"\n\nclass WorkerWidget : public QWidget\n{\n Q_OBJECT\npublic:\n explicit WorkerWidget(QWidget *parent = 0);\n ~WorkerWidget();\n\npriva...
89
3
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 19.5, "nodes": 59, "errors": 0, "source_hash": "4028438a0385f00bd6fe15a688935d87a82940e50e531d218080f42a4b40fde2", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef W...
5,471
c
/* * Copyright (C) 2019 - 2020 Arm Ltd. All Rights Reserved. * SPDX-License-Identifier: MIT * * 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 lim...
34.32
88
(translation_unit) "/*\n * Copyright (C) 2019 - 2020 Arm Ltd. All Rights Reserved.\n * SPDX-License-Identifier: MIT\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy of\n * this software and associated documentation files (the "Software"), to deal in\n * the Software without restrict...
163
0
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 34.32, "nodes": 105, "errors": 0, "source_hash": "f2ab4f3970ebb60ff3d38fb4aa4c5302ccb863884dee75457e1477b938411b92", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,472
c
#pragma once #include <Lethe/Script/Ast/AstNode.h> namespace lethe { // && || class LETHE_API AstLazyBinaryOp : public AstNode { public: LETHE_AST_NODE(AstLazyBinaryOp) typedef AstNode Super; AstLazyBinaryOp(AstNodeType ntype, const TokenLocation &nloc) : Super(ntype, nloc) {} bool CodeGen(CompiledProgram &p)...
26.94
16
(translation_unit) "#pragma once\n\n#include <Lethe/Script/Ast/AstNode.h>\n\nnamespace lethe\n{\n\n// && ||\nclass LETHE_API AstLazyBinaryOp : public AstNode\n{\npublic:\n LETHE_AST_NODE(AstLazyBinaryOp)\n\n typedef AstNode Super;\n\n AstLazyBinaryOp(AstNodeType ntype, const TokenLocation &nloc) : Super(ntype, nloc) {}...
118
6
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 26.94, "nodes": 66, "errors": 0, "source_hash": "773b7f4e5576b7a8e88fd1a4a6ae29c421be01d0c13067dc6e94a8ff335bcb19", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
5,473
c
// // PublishModel.h // BossCommonClass // // Created by admin on 2019/4/19. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface PublishModel : NSObject /** 公众号代理人id Y */ @property (nonatomic, strong) NSString *proxyId; /** 标题 必传 */ @property(nonatomic, copy)NSString *title; /** 接受人列表 ...
15.94
31
(translation_unit) "//\n// PublishModel.h\n// BossCommonClass\n//\n// Created by admin on 2019/4/19.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface PublishModel : NSObject\n\n/**\n 公众号代理人id Y\n */\n@property (nonatomic, strong) NSString *proxyId;\n\n/**\n 标题 必传\n */\n@property(nona...
121
14
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 15.94, "nodes": 78, "errors": 0, "source_hash": "e3087b96d3db933c79f5587d45df980303c1c5bc4429c349ab0956a6984b2317", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
5,474
c
// // RIBViewingInteractor.h // pieces // // Created by <NAME> on 03.11.18. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import <pieces/RIBInteractor.h> #import <pieces/RIBViewablePresenter.h> NS_ASSUME_NONNULL_BEGIN @interface RIBViewingInteractor<Router, Presenter: RIBViewablePresenter *> : RI...
32
17
(translation_unit) "//\n// RIBViewingInteractor.h\n// pieces\n//\n// Created by <NAME> on 03.11.18.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n\n#import <pieces/RIBInteractor.h>\n#import <pieces/RIBViewablePresenter.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface RIBViewingInteractor<Router, Pres...
97
9
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 32.0, "nodes": 68, "errors": 0, "source_hash": "b08c805e9ee138c10868a159d7393cc97c7f380faaf688b42a4aaac2d51a5e32", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
5,475
c
#ifndef GRR_CLIENT_MINICOMM_CLIENT_ACTIONS_LIST_PROCESSES_H_ #define GRR_CLIENT_MINICOMM_CLIENT_ACTIONS_LIST_PROCESSES_H_ #include "grr/proto/sysinfo.pb.h" #include "gtest/gtest_prod.h" #include "grr/client/minicomm/client_action.h" #include "grr/client/minicomm/file_operations.h" #include "grr/client/minicomm/paths.h...
36
21
(translation_unit) "#ifndef GRR_CLIENT_MINICOMM_CLIENT_ACTIONS_LIST_PROCESSES_H_\n#define GRR_CLIENT_MINICOMM_CLIENT_ACTIONS_LIST_PROCESSES_H_\n\n#include "grr/proto/sysinfo.pb.h"\n#include "gtest/gtest_prod.h"\n#include "grr/client/minicomm/client_action.h"\n#include "grr/client/minicomm/file_operations.h"\n#include "...
140
4
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 36.0, "nodes": 75, "errors": 0, "source_hash": "d91977d0452efa26246d2c936c0c6b211d49984302af554875b18f3982bf0f4a", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef G...
5,476
c
//===================== Copyright (c) Valve Corporation. All Rights Reserved. ====================== // // A modeless dialog showing a list of all entities in the map that can be filtered by various criteria. // //================================================================================================== #ifnde...
26.6
111
(translation_unit) "//===================== Copyright (c) Valve Corporation. All Rights Reserved. ======================\n//\n// A modeless dialog showing a list of all entities in the map that can be filtered by various criteria.\n//\n//==================================================================================...
626
29
{"language": "c", "success": true, "metadata": {"lines": 111, "avg_line_length": 26.6, "nodes": 415, "errors": 0, "source_hash": "5709813ba2a9e74ef4a7c241a68011fc1b5b4c0aef92bd84824d0b0ef5f29482", "categorized_nodes": 289}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,477
c
// sbmfcsample.h : main header file for the SBMFCSAMPLE application // #if !defined(AFX_SBMFCSAMPLE_H__F2EE1BD5_6089_4F00_9E83_2D0A7C9AA592__INCLUDED_) #define AFX_SBMFCSAMPLE_H__F2EE1BD5_6089_4F00_9E83_2D0A7C9AA592__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #ifndef __AFXWIN_H__ #error in...
32.66
35
(translation_unit) "// sbmfcsample.h : main header file for the SBMFCSAMPLE application\n//\n\n#if !defined(AFX_SBMFCSAMPLE_H__F2EE1BD5_6089_4F00_9E83_2D0A7C9AA592__INCLUDED_)\n#define AFX_SBMFCSAMPLE_H__F2EE1BD5_6089_4F00_9E83_2D0A7C9AA592__INCLUDED_\n\n#if _MSC_VER > 1000\n#pragma once\n#endif // _MSC_VER > 1000\n\n#...
100
2
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 32.66, "nodes": 52, "errors": 0, "source_hash": "563b8d58152b3f9b03c7e4e771604d0bfa2ee1ae51f6e1f25225f5e8bf1fda85", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !define...
5,478
c
/* * Copyright 2015 WebAssembly Community Group participants * * 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...
31.08
165
(translation_unit) "/*\n * Copyright 2015 WebAssembly Community Group participants\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...
1,605
24
{"language": "c", "success": true, "metadata": {"lines": 165, "avg_line_length": 31.08, "nodes": 1014, "errors": 0, "source_hash": "2a420159e521affcfeb47812eaf538dc382976b045eb2eef1b045592fdd8d812", "categorized_nodes": 709}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
5,479
c
// // YYBLandlordCalendarView.h // YiYiBnb // // Created by Onein on 16/2/24. // Copyright © 2016年 haxwn. All rights reserved. // #import <UIKit/UIKit.h> #import "YYBCalendarCell.h" #import "YYBHouseCalendarModel.h" @interface YYBLandlordCalendarView : UIView //数据源数组 @property (nonatomic, strong) NSMutableArray*...
22.5
20
(translation_unit) "//\n// YYBLandlordCalendarView.h\n// YiYiBnb\n//\n// Created by Onein on 16/2/24.\n// Copyright © 2016年 haxwn. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "YYBCalendarCell.h"\n#import "YYBHouseCalendarModel.h"\n\n@interface YYBLandlordCalendarView : UIView\n\n//数据源数组\n@property ...
81
12
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 22.5, "nodes": 55, "errors": 0, "source_hash": "8ad8c81d58e4c8842d7c7c130a41b0af90805ae491b3ba0f4e5f89523775d617", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKi...
5,480
c
#ifndef TGBOT_CHAT_MEMBER_OWNER_H #define TGBOT_CHAT_MEMBER_OWNER_H #include "tgbot/types/User.h" #include <cstdint> #include <memory> #include <string> namespace TgBot { /** * @brief Represents a chat member that owns the chat and has all administrator privileges. * @ingroup types */ class ChatMemberOwner { pub...
24.88
33
(translation_unit) "#ifndef TGBOT_CHAT_MEMBER_OWNER_H\n#define TGBOT_CHAT_MEMBER_OWNER_H\n\n#include "tgbot/types/User.h"\n\n#include <cstdint>\n#include <memory>\n#include <string>\n\nnamespace TgBot {\n\n/**\n * @brief Represents a chat member that owns the chat and has all administrator privileges.\n * @ingroup type...
91
4
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 24.88, "nodes": 55, "errors": 0, "source_hash": "5021230bc4f479e018f88ad46531849e5bd8db8d865fbc9d082a064cac549597", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,481
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import <Memories/AudioClip.h> @class FMSong, FMSongRendition; __attribute__((visibility("hidden"))) @interface FlexAudioClip : AudioClip { BOOL _lockedRendition; FMSongRenditio...
35.17
35
(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 <Memories/AudioClip.h>\n\n@class FMSong, FMSongRendition;\n\n__attribute__((visibility("hidden")))\n@interface FlexAudioClip : AudioClip\n{\n BOOL _lo...
384
34
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 35.17, "nodes": 230, "errors": 0, "source_hash": "d60f8df6c558d08dc5014f7bd2aaac793e5c19efa79377f8c48626d9568b9667", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
5,482
c
// // UIImage+Extension.h // GHAlibabaSpecificationSelectionDemo // // Created by mac on 2019/11/27. // Copyright © 2019 macBookPro. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface UIImage (Extension) + (UIImage *)imageWithColor:(UIColor *)color; @end NS_ASSUME_NONNULL_END
21.43
14
(translation_unit) "//\n// UIImage+Extension.h\n// GHAlibabaSpecificationSelectionDemo\n//\n// Created by mac on 2019/11/27.\n// Copyright © 2019 macBookPro. All rights reserved.\n//\n\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface UIImage (Extension)\n\n+ (UIImage *)imageWithColor:(UIColor *)c...
49
5
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 21.43, "nodes": 25, "errors": 0, "source_hash": "b761e4da0eaa56232bd344aecb46341923529f6cfcff0685126ee1b6123b9112", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
5,483
c
#ifndef UNITTEST_H #define UNITTEST_H #include <string> /* * This class helps support self-checking unit tests. * * A small collection of test assertions (inspired by the JUNIT * package for Java is supported). The number of successes and failures * of these assertions are tallied and can be accessed at an...
37.93
58
(translation_unit) "#ifndef UNITTEST_H\n#define UNITTEST_H\n\n#include <string>\n\n/*\n * This class helps support self-checking unit tests.\n * \n * A small collection of test assertions (inspired by the JUNIT\n * package for Java is supported). The number of successes and failures\n * of these assertions are tal...
311
2
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 37.93, "nodes": 184, "errors": 0, "source_hash": "7ad28d98d46e601bb60510ed49def06253b8cf1a28b55a6994d98bc8d15dbe5d", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,484
c
#pragma once int echo(int argc, char *argv[]); int printftest(int argc, char *argv[]);
28
3
(translation_unit) "#pragma once\n\nint echo(int argc, char *argv[]);\nint printftest(int argc, char *argv[]);\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (declaration) "int echo(int argc, char *argv[]);" (primitive_type) "int" (function_declarator) "echo(in...
44
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 28.0, "nodes": 31, "errors": 0, "source_hash": "4e035e72c8ff4623550bad06582f87db089ed869d2342ee76759176523635c63", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
5,485
c
#ifndef _XIABODAN_LIST_H_ #define _XIABODAN_LIST_H_ void xiabodan_list(void); #endif
20.25
4
(translation_unit) "#ifndef _XIABODAN_LIST_H_\n#define _XIABODAN_LIST_H_\n\nvoid xiabodan_list(void);\n\n#endif" (preproc_ifdef) "#ifndef _XIABODAN_LIST_H_\n#define _XIABODAN_LIST_H_\n\nvoid xiabodan_list(void);\n\n#endif" (#ifndef) "#ifndef" (identifier) "_XIABODAN_LIST_H_" (preproc_def) "#define _XIABOD...
18
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 20.25, "nodes": 14, "errors": 0, "source_hash": "b227704feb076d7be4ecd056a1bfe005ddc193d368b54c42d3321eb26f451f67", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _X...
5,486
c
#include "window.h" #include <glad/glad.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <tchar.h> LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam); void switch_to_fullscreen(snow_window* window); WNDCLASSEXW wnd; snow_uint win_count = 0; int handle_count = 0; cons...
29.37
199
(translation_unit) "#include "window.h"\n#include <glad/glad.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <tchar.h>\n\nLRESULT CALLBACK\nWndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam);\n\nvoid\nswitch_to_fullscreen(snow_window* window);\n\nWNDCLASSEXW wnd;\n\nsnow_uint win_coun...
1,285
2
{"language": "c", "success": true, "metadata": {"lines": 199, "avg_line_length": 29.37, "nodes": 818, "errors": 0, "source_hash": "cb453734d4a2cdb5bea3c837f18430712b0212e31a59986c41b887cfb14de1e3", "categorized_nodes": 609}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,487
c
#pragma once #include "chess.h" class ChessRook : public Chess { public: ChessRook(int init_cor_x, int init_cor_y, int team, int id, std::string const &path, bool gamma = false); ~ChessRook(); virtual void show(Shader &input_shader); };
25.78
9
(translation_unit) "ragma once\n#include "chess.h"\n\nclass ChessRook : public Chess\n{\npublic:\n ChessRook(int init_cor_x, int init_cor_y, int team, int id, std::string const &path, bool gamma = false);\n ~ChessRook();\n virtual void show(Shader &input_shader);\n};\n\n" (preproc_call) "ragma once\n#i" (preproc_...
88
7
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 25.78, "nodes": 54, "errors": 0, "source_hash": "3729bc54b2797bb9933b9c85154f90ee379fe37bfe00f39fb0e6e2c7586ec814", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma once...
5,488
c
/* -*- c++ -*- ---------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator http://lammps.sandia.gov, Sandia National Laboratories <NAME>, <EMAIL> Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with San...
37.67
80
(translation_unit) "/* -*- c++ -*- ----------------------------------------------------------\n LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator\n http://lammps.sandia.gov, Sandia National Laboratories\n <NAME>, <EMAIL>\n\n Copyright (2003) Sandia Corporation. Under the terms of Contract\n ...
208
2
{"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 37.67, "nodes": 132, "errors": 0, "source_hash": "39650681f2975efac0fcf63e6baca9019ec6a442b6cb1232f114745587ff3e00", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef ...
5,489
c
// // TCameraSizeMaskView.h // YKYClient // // Created by tao on 2018/8/4. // Copyright © 2018年 tao. All rights reserved. // #import <UIKit/UIKit.h> #import "TCameraSizeBtn.h" @interface TCameraSizeMaskView : UIView - (instancetype)initWithFrame:(CGRect)frame rulerTarget:(id)target action:(SEL)action; //增加动画过渡...
24.75
16
(translation_unit) "//\n// TCameraSizeMaskView.h\n// YKYClient\n//\n// Created by tao on 2018/8/4.\n// Copyright © 2018年 tao. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "TCameraSizeBtn.h"\n\n\n@interface TCameraSizeMaskView : UIView\n\n- (instancetype)initWithFrame:(CGRect)frame rulerTarget:(id)ta...
90
9
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 24.75, "nodes": 55, "errors": 0, "source_hash": "5b1f36366d20c1752f414174d9958c01531961c34f78bc4a52db1502d9b0312b", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
5,490
c
#ifndef MPM_ELEMENT_H #define MPM_ELEMENT_H #include <cmath> #include <map> #include <vector> #include <eigen3/Eigen/Dense> //! Namespace containing required global constants / functions //! Used in computing material points namespace element { //! Map to store gauss points coefficients const std::map<unsigned, st...
38.06
88
(translation_unit) "#ifndef MPM_ELEMENT_H\n#define MPM_ELEMENT_H\n\n#include <cmath>\n\n#include <map>\n#include <vector>\n\n#include <eigen3/Eigen/Dense>\n\n//! Namespace containing required global constants / functions\n//! Used in computing material points\nnamespace element {\n\n//! Map to store gauss points coeffi...
1,136
25
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 38.06, "nodes": 698, "errors": 0, "source_hash": "c7cab77cc786360eac37cc782f381b50587ec02e8c03ee5ea015ce16c0fa7de5", "categorized_nodes": 519}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,491
c
// // UIApplication+Extension.h // CPBaseKit // // Created by MisakaTao on 2018/5/23. // Copyright © 2018年 misakatao. All rights reserved. // #import <UIKit/UIKit.h> @interface UIApplication (Extension) /** * 统计应用文件大小 * * @return 大小 */ - (NSString *)applicationSize; /** * 计算文件夹大小 * * @param folderPath...
17.68
34
(translation_unit) "//\n// UIApplication+Extension.h\n// CPBaseKit\n//\n// Created by MisakaTao on 2018/5/23.\n// Copyright © 2018年 misakatao. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIApplication (Extension)\n\n/**\n * 统计应用文件大小\n *\n * @return 大小\n */\n- (NSString *)applicationSize;\n/*...
128
6
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 17.68, "nodes": 75, "errors": 0, "source_hash": "1eff92eecb1b35b1a653d13e94c95312a582b8ec619e1d52d8ffb89c0ab04af8", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
5,492
c
#include "../../corelibs/U2Lang/src/model/IntegralBus.h"
56
1
(translation_unit) "#include "../../corelibs/U2Lang/src/model/IntegralBus.h"\n" (preproc_include) "#include "../../corelibs/U2Lang/src/model/IntegralBus.h"\n" (#include) "#include" (string_literal) ""../../corelibs/U2Lang/src/model/IntegralBus.h"" (") """ (string_content) "../../corelibs/U2Lang/sr...
7
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 56.0, "nodes": 3, "errors": 0, "source_hash": "a3db128982df373912cf209278474e072e0c4db8048c6a44f6c21246359c034b", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \...
5,493
c
#pragma once #include<SFML/Graphics.hpp> #include<thread> using namespace sf; class C_Square : public sf::RectangleShape { public: C_Square(float x, float pos_x, float pos_y, float window_x, float window_y) : RectangleShape(sf::Vector2f(x, x)) { this->setPosition(pos_x, pos_y); this->obj = new RectangleShape(Vec...
21.09
23
(translation_unit) "#pragma once\n#include<SFML/Graphics.hpp>\n#include<thread>\nusing namespace sf;\nclass C_Square :\n public sf::RectangleShape\n{\npublic:\n C_Square(float x, float pos_x, float pos_y, float window_x, float window_y) : RectangleShape(sf::Vector2f(x, x))\n {\n this->setPosition(pos_x, pos_y);\n thi...
181
11
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 21.09, "nodes": 114, "errors": 0, "source_hash": "e08c9860e9f674d61bb4d1a728afef00265926abd273c933171f706a811ddcf6", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
5,494
c
/* MIT License Copyright (c) 2018 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distrib...
38.42
36
(translation_unit) "/*\nMIT License\n\nCopyright (c) 2018 <NAME>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, mod...
106
6
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 38.42, "nodes": 64, "errors": 0, "source_hash": "096a41ca645a8622125e65c47eedd9ad8f72dd02efb584a7147715d52cfa278a", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
5,495
c
#include "copyright.h" /*============================================================================*/ /*! \file cylunif.c * \brief A test of conservation using uniform initial conditions. */ /*============================================================================*/ #include <math.h> #include <stdio.h> #in...
33.36
184
(translation_unit) "#include "copyright.h"\n/*============================================================================*/\n/*! \file cylunif.c\n * \brief A test of conservation using uniform initial conditions. \n */\n/*============================================================================*/\n\n#include <mat...
2,034
0
{"language": "c", "success": true, "metadata": {"lines": 184, "avg_line_length": 33.36, "nodes": 1256, "errors": 0, "source_hash": "d47a8b2dcf3fdc0d1954070fc2d112c1aac8e6334afabb34e07ebde3fb2fc1ce", "categorized_nodes": 986}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
5,496
c
/* ************************************************************************************************* * Emulation of Freescale iMX21 Watchdog module * * state: minimal implementation allowing reboot by watchdog. * * Copyright 2006 <NAME>. All rights reserved. * * Redistribution and use in source and binary for...
31.55
229
(translation_unit) "/*\n *************************************************************************************************\n * Emulation of Freescale iMX21 Watchdog module \n *\n * state: minimal implementation allowing reboot by watchdog. \n *\n * Copyright 2006 <NAME>. All rights reserved.\n *\n * Redistribution and ...
1,408
0
{"language": "c", "success": true, "metadata": {"lines": 229, "avg_line_length": 31.55, "nodes": 879, "errors": 0, "source_hash": "aed3970bf9dc4a504350eb69a39a989a7651d728ca44ea6d9230f749e69b2894", "categorized_nodes": 611}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,497
c
// For conditions of distribution and use, see copyright notice in license.txt #ifndef incl_OpenALAudio_VorbisDecoder_h #define incl_OpenALAudio_VorbisDecoder_h #include "SoundServiceInterface.h" #include "ThreadTask.h" namespace OpenALAudio { //! Ogg vorbis decode request class VorbisDecodeRequest : public F...
29.38
50
(translation_unit) "// For conditions of distribution and use, see copyright notice in license.txt\n#ifndef incl_OpenALAudio_VorbisDecoder_h\n#define incl_OpenALAudio_VorbisDecoder_h\n\n#include "SoundServiceInterface.h"\n#include "ThreadTask.h"\n\nnamespace OpenALAudio\n{\n //! Ogg vorbis decode request\n class ...
197
11
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 29.38, "nodes": 100, "errors": 0, "source_hash": "6d23ca6ff6a0604e70b36a7fa0c6009ddc772ce05bc1c6cf5379fcda4a852fc4", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,498
c
/* Implementation of gamma function according to ISO C. Copyright (C) 1997-2019 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by <NAME> <<EMAIL>>, 1997. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser Gen...
32.03
198
(translation_unit) "/* Implementation of gamma function according to ISO C.\n Copyright (C) 1997-2019 Free Software Foundation, Inc.\n This file is part of the GNU C Library.\n Contributed by <NAME> <<EMAIL>>, 1997.\n\n The GNU C Library is free software; you can redistribute it and/or\n modify it under the t...
1,366
0
{"language": "c", "success": true, "metadata": {"lines": 198, "avg_line_length": 32.03, "nodes": 914, "errors": 0, "source_hash": "ccb375d4c992dc96ebc7960857338b2aec42b03892f0eee0399674322cb129fa", "categorized_nodes": 622}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,499