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
// // Created by sadjad-pc on 1/16/17. // #include "types.h" #include "stat.h" #include "user.h" #define N 10 // child number #define wait_num 1000 // print number void do_test(void) { int n, pid; printf(1, "\n----------3.2 test started.----------\n\n"); for(n=0; n<N; n++){ pid = fork...
19.16
37
(translation_unit) "//\n// Created by sadjad-pc on 1/16/17.\n//\n\n\n#include "types.h"\n#include "stat.h"\n#include "user.h"\n\n#define N 10 // child number\n#define wait_num 1000 // print number\n\nvoid\ndo_test(void)\n{\n int n, pid;\n\n printf(1, "\n----------3.2 test started.----------\n\n");\n\n ...
255
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 19.16, "nodes": 139, "errors": 0, "source_hash": "9b5ea05eb35538a86b821c6d1181463627a73b4193b6b47fd3cbb1a6875b22fb", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
2,600
c
/*++ Copyright (c) 2016 Microsoft Corporation Module Name: bv_bounds_tactic.h Abstract: Contextual bounds simplification tactic. Author: <NAME> (nbjorner) 2016-2-12 --*/ #ifndef BV_BOUNDS_TACTIC_H_ #define BV_BOUNDS_TACTIC_H_ #include "tactic/tactic.h" tactic * mk_bv_bounds_tactic(ast_manager & m, ...
27.17
18
(translation_unit) "/*++\nCopyright (c) 2016 Microsoft Corporation\n\nModule Name:\n\n bv_bounds_tactic.h\n\nAbstract:\n\n Contextual bounds simplification tactic.\n\nAuthor:\n\n <NAME> (nbjorner) 2016-2-12\n\n\n--*/\n#ifndef BV_BOUNDS_TACTIC_H_\n#define BV_BOUNDS_TACTIC_H_\n#include "tactic/tactic.h"\n\ntacti...
44
1
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 27.17, "nodes": 27, "errors": 0, "source_hash": "e7b732ca0b51cc042c0151806c263d35f9da1ded07fdbb435e049b24a63863db", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,601
c
/* Copyright 2017 Urban Airship and Contributors */ #import "UAirship.h" @class UABaseAppDelegateSurrogate; @class UAJavaScriptDelegate; @class UAPreferenceDataStore; @class UAChannelCapture; @interface UAirship() NS_ASSUME_NONNULL_BEGIN ///-------------------------------------------------------------------------...
33.48
85
(translation_unit) "/* Copyright 2017 Urban Airship and Contributors */\n\n#import "UAirship.h"\n\n@class UABaseAppDelegateSurrogate;\n@class UAJavaScriptDelegate;\n@class UAPreferenceDataStore;\n@class UAChannelCapture;\n\n\n@interface UAirship()\n\nNS_ASSUME_NONNULL_BEGIN\n\n///---------------------------------------...
430
85
{"language": "c", "success": true, "metadata": {"lines": 85, "avg_line_length": 33.48, "nodes": 306, "errors": 0, "source_hash": "9d19a6d8ceae60b46ac7d7c5ae41b3bbc54b7f2adbafaa8af263f5cc998ae115", "categorized_nodes": 157}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
2,602
c
#include <stdio.h> #include <stdlib.h> #include <conio.h> #include <unistd.h> struct data { char name[30]; int age; } d; int main() { FILE *fp; chdir("C:\\Users\\SUBHADEEP\\Desktop"); system("cls"); fp = fopen("File.txt", "r"); if (fp == NULL) { puts("File cannot be open..\n"); ...
18.56
27
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <conio.h>\n#include <unistd.h>\nstruct data\n{\n char name[30];\n int age;\n} d;\nint main()\n{\n FILE *fp;\n chdir("C:\\Users\\SUBHADEEP\\Desktop");\n system("cls");\n fp = fopen("File.txt", "r");\n if (fp == NULL)\n {\n ...
216
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 18.56, "nodes": 113, "errors": 0, "source_hash": "4d2043436424a331511f840bd77eecf79d6edd64c49b0158c4533560ad1e2c8b", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
2,603
c
/** * Copyright (c) 2015-present, Horcrux. * All rights reserved. * * This source code is licensed under the MIT-style license found in the * LICENSE file in the root directory of this source tree. */ #import "ABI45_0_0RNSVGUIKit.h" #import "ABI45_0_0RNSVGPainter.h" #import "ABI45_0_0RNSVGContainer.h" #import "...
48.06
47
(translation_unit) "/**\n * Copyright (c) 2015-present, Horcrux.\n * All rights reserved.\n *\n * This source code is licensed under the MIT-style license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n#import "ABI45_0_0RNSVGUIKit.h"\n\n#import "ABI45_0_0RNSVGPainter.h"\n#import "ABI45...
542
95
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 48.06, "nodes": 371, "errors": 0, "source_hash": "c69282c07116e906623aafcc7424ec905f3cacf83496c51ae0be2842c29649cf", "categorized_nodes": 195}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
2,604
c
/* * AppStateImpl.h * * Created on: Jan 31, 2014 * Author: Shanee */ #ifndef APPSTATEIMPL_H_ #define APPSTATEIMPL_H_ #include "IAppStateInterface.h" #include <jni.h> namespace Android { class AppStateImpl : public IAppStateInterface { public: AppStateImpl( JNIEnv* pEnv ); virtual ~AppStateImpl(); ...
27.29
24
(translation_unit) "/*\n * AppStateImpl.h\n *\n * Created on: Jan 31, 2014\n * Author: Shanee\n */\n\n#ifndef APPSTATEIMPL_H_\n#define APPSTATEIMPL_H_\n\n#include "IAppStateInterface.h"\n#include <jni.h>\n\nnamespace Android\n{\n class AppStateImpl : public IAppStateInterface\n {\n public:\n AppStateImpl( JNIEnv...
139
2
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 27.29, "nodes": 78, "errors": 0, "source_hash": "cd55701f4b207a250759eebf5d3430566c2dee1de1b639ad374b442586e7adf1", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,605
c
#ifndef COLORS_H #define COLORS_H #define c_black 0 #define c_blue 1 #define c_green 2 #define c_cyan 3 #define c_red 4 #define c_magenta 5 #define c_brown 6 #define c_light_grey 7 #define c_dark_grey 8 #define c_light_blue 9 #define c_light_green 10 #define c_light_cyan 11 #define c_light_red 12 #define c_light...
19.16
19
(translation_unit) "#ifndef COLORS_H\n#define COLORS_H\n\n#define c_black 0\n#define c_blue 1\n#define c_green 2\n#define c_cyan 3\n#define c_red 4\n#define c_magenta 5\n#define c_brown 6\n#define c_light_grey 7\n#define c_dark_grey 8\n#define c_light_blue 9\n#define c_light_green 10\n#define c_light_cyan 11\n#de...
72
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 19.16, "nodes": 71, "errors": 0, "source_hash": "81e20c08538d03e6b3ec7395ce6f7ef7b230c0cc018ee86c1cbcca6a27904e7f", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,606
c
/* ** Copyright 1994, Silicon Graphics, Inc. ** All Rights Reserved. ** ** This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.; ** the contents of this file may not be disclosed to third parties, copied or ** duplicated in any form, in whole or in part, without the prior written ** permission ...
23.35
219
(translation_unit) "/* \n** Copyright 1994, Silicon Graphics, Inc. \n** All Rights Reserved. \n** \n** This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.; \n** the contents of this file may not be disclosed to third parties, copied or \n** duplicated in any form, in whole or in part, without the pri...
1,706
0
{"language": "c", "success": true, "metadata": {"lines": 219, "avg_line_length": 23.35, "nodes": 1103, "errors": 0, "source_hash": "4c35715acb385e851fd7f1ded61e163810f79ca48769a30194d21cec0678c752", "categorized_nodes": 805}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
2,607
c
// // AppDelegate.h // RSSReader // // Created by <NAME> on 07.10.17. // Copyright © 2017 vbat. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
22.82
11
(translation_unit) "//\n// AppDelegate.h\n// RSSReader\n//\n// Created by <NAME> on 07.10.17.\n// Copyright © 2017 vbat. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface AppDelegate : UIResponder <UIApplicationDelegate>\n\n@property (strong, nonatomic) UIWindow *window;\n\n@end\n\n" (comment) "//...
39
6
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 22.82, "nodes": 25, "errors": 0, "source_hash": "fed6321fb26f6d5dff672672662e291898c0ddec1127aea0c820b118f9324f36", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
2,608
c
#pragma once namespace MeshSyncClient { enum class FrameRange : int { Current, All, Custom, }; } // namespace MeshSyncClient
16.12
8
(translation_unit) "#pragma once\n\nnamespace MeshSyncClient {\n\nenum class FrameRange : int {\n Current,\n All,\n Custom,\n};\n\n} // namespace MeshSyncClient\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (function_definition) "namespace MeshSyncClient {\n\...
34
2
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 16.12, "nodes": 18, "errors": 0, "source_hash": "cf7188c30150e6632bf170e65a0d11940e59ddd6595b503f5ac7927a403e093b", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
2,609
c
#ifndef _VALUEARRAY_H_ #define _VALUEARRAY_H_ template<typename T, int N> struct ValueArray { T data[N]; T &operator[](int index) { return data[index]; } static const int size = N; bool operator!=(ValueArray<T,N> &other) { return !operator==(other); } bool operator==(ValueArray<T,N> &other) { for(i...
20
20
(translation_unit) "#ifndef _VALUEARRAY_H_ \n#define _VALUEARRAY_H_ \n \ntemplate<typename T, int N> \nstruct ValueArray \n{ \n T data[N]; \n T &operator[](int index) { return data[index]; } \n static const int size = N; \n bool operator!=(ValueArray<T,N> &other) { return !operator==(other); } \n bool operator==(ValueA...
167
11
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 20.0, "nodes": 103, "errors": 0, "source_hash": "9f78bbb283e203a47556f06a3e1b65da2594d619836ef4073c9c0da969e9743b", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,610
c
// // GetPhotoViewController.h // EditPhoto&Pic_demo // // Created by 陈小明 on 2017/7/27. // Copyright © 2017年 陈小明. All rights reserved. // #import <UIKit/UIKit.h> @interface GetPhotoViewController : UIViewController @end
21.4
10
(translation_unit) "//\n// GetPhotoViewController.h\n// EditPhoto&Pic_demo\n//\n// Created by 陈小明 on 2017/7/27.\n// Copyright © 2017年 陈小明. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface GetPhotoViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// GetPhotoViewController.h...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.4, "nodes": 10, "errors": 0, "source_hash": "0b8fa800efbdf15c38f1a37fe474133b6322261f5cb39ef69b8c2868ed88aef9", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit.h>\n\...
2,611
c
#include "types.h" #include "stat.h" #include "user.h" #define fabs(a) (a>=0) ? a : -a #define N 10 #define EPSILON 0.01 #define procs 2 int parent_pid; int num; int parta = 0; int partb = 0; int main(int argc, char *argv[]) { // double diff; // int i,j; // double mean; // double u[N][N]; // double w[N][N]; i...
18.36
59
(translation_unit) "#include "types.h"\n#include "stat.h"\n#include "user.h"\n\n#define fabs(a) (a>=0) ? a : -a\n\n#define N 10\n#define EPSILON 0.01\n#define procs 2\n\nint parent_pid;\nint num;\nint parta = 0;\nint partb = 0;\n\nint main(int argc, char *argv[])\n{\n // double diff;\n // int i,j;\n // double mean;\n /...
433
0
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 18.36, "nodes": 244, "errors": 0, "source_hash": "cb96be836ff2c6f026cb8a6490f6b3d424b34405bcd834d45e456386a8d8592a", "categorized_nodes": 159}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,612
c
// // ToolView.h // ChatVCDemo // // Created by Ios_Developer on 2017/12/28. // Copyright © 2017年 hai. All rights reserved. // #import <UIKit/UIKit.h> typedef void(^Block_SendMessage)(UITextView *chatTV); @interface ToolView : UIView @property (nonatomic ,copy)Block_SendMessage sendMessage; @property (nonatomic ...
27.64
14
(translation_unit) "//\n// ToolView.h\n// ChatVCDemo\n//\n// Created by Ios_Developer on 2017/12/28.\n// Copyright © 2017年 hai. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\ntypedef void(^Block_SendMessage)(UITextView *chatTV);\n@interface ToolView : UIView\n\n@property (nonatomic ,copy)Block_SendMessage s...
87
15
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 27.64, "nodes": 61, "errors": 0, "source_hash": "88c59ae17998c42433f1b84d18c635ce8c9ebee7f5cb201d8d416154b684f816", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
2,613
c
#include "string.h" #include "fifo.h" #include "serial_frame.h" #include "ush.h" #include "ad5791.h" #include "uart.h" #include "printf.h" #include "hmi.h" fifo_t uartrx_fifo; ush_def ush; static float curr_volt = 0; //current voltage setting. static void _uart_rx_callback(uint8_t ch){ fifo_push(&uartrx_fifo, &ch);...
25.7
100
(translation_unit) "#include "string.h"\n#include "fifo.h"\n#include "serial_frame.h"\n#include "ush.h"\n#include "ad5791.h"\n#include "uart.h"\n#include "printf.h"\n#include "hmi.h"\n\nfifo_t uartrx_fifo;\nush_def ush;\n\nstatic float curr_volt = 0; //current voltage setting.\nstatic void _uart_rx_callback(uint8_t ch)...
813
2
{"language": "c", "success": true, "metadata": {"lines": 100, "avg_line_length": 25.7, "nodes": 467, "errors": 0, "source_hash": "d36eb4e6b5ac43085f27739d05bf20d3d024f7b0df715f34852ee81ca434dbd1", "categorized_nodes": 333}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,614
c
#pragma once #include "Stream.h" class CJsDiscImageDeviceStream : public Framework::CStream { public: virtual ~CJsDiscImageDeviceStream() = default; void Seek(int64, Framework::STREAM_SEEK_DIRECTION) override; uint64 Tell() override; uint64 Read(void*, uint64) override; uint64 Write(const void*, uint64) overrid...
25.93
15
(translation_unit) "#pragma once\n\n#include "Stream.h"\n\nclass CJsDiscImageDeviceStream : public Framework::CStream\n{\npublic:\n virtual ~CJsDiscImageDeviceStream() = default;\n\n void Seek(int64, Framework::STREAM_SEEK_DIRECTION) override;\n uint64 Tell() override;\n uint64 Read(void*, uint64) override;\n uint64 Wr...
134
7
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 25.93, "nodes": 83, "errors": 0, "source_hash": "381ecb977356c8fe538ba3590984625c93ff8d598c27ec58b7593fe92c5d1349", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
2,615
c
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty o...
37.91
34
(translation_unit) "/*===================================================================\n\nThe Medical Imaging Interaction Toolkit (MITK)\n\nCopyright (c) German Cancer Research Center,\nDivision of Medical and Biological Informatics.\nAll rights reserved.\n\nThis software is distributed WITHOUT ANY WARRANTY; without...
102
6
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 37.91, "nodes": 60, "errors": 0, "source_hash": "4d01a821339df9777099d4f09d4974e8082046632bbf7abab958ed860a347ea6", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,616
c
/* ============================================================================= * Pure64 -- a 64-bit OS/software loader written in Assembly for x86-64 systems * Copyright (C) 2008-2017 Return Infinity -- see LICENSE.TXT * ============================================================================= */ #include "e...
30.48
25
(translation_unit) "/* =============================================================================\n * Pure64 -- a 64-bit OS/software loader written in Assembly for x86-64 systems\n * Copyright (C) 2008-2017 Return Infinity -- see LICENSE.TXT\n * =======================================================================...
166
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 30.48, "nodes": 106, "errors": 0, "source_hash": "a4543f7f74657552e53f16234ccab541ac2a79111b8108ca3e973020c703f6dc", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
2,617
c
/* A* ------------------------------------------------------------------- B* This file contains source code for the PyMOL computer program C* Copyright (c) Schrodinger, LLC. D* ------------------------------------------------------------------- E* It is unlawful to modify or remove this copyright notice. F* ---------...
35.07
27
(translation_unit) "/* \nA* -------------------------------------------------------------------\nB* This file contains source code for the PyMOL computer program\nC* Copyright (c) Schrodinger, LLC. \nD* -------------------------------------------------------------------\nE* It is unlawful to modify or remove this copyr...
40
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 35.07, "nodes": 32, "errors": 0, "source_hash": "85eecaa4893c7596d62dc8b8a85e0864ef28a5af0b3923927acabbcec6aa2c9c", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,618
c
/* * File: untitled_private.h * * Code generated for Simulink model 'untitled'. * * Model version : 1.0 * Simulink Coder version : 8.4 (R2013a) 13-Feb-2013 * TLC version : 8.4 (Jan 19 2013) * C/C++ source code generated on : Mon Feb 08 22:07:37 2016 * * Target selec...
34.5
36
(translation_unit) "/*\n * File: untitled_private.h\n *\n * Code generated for Simulink model 'untitled'.\n *\n * Model version : 1.0\n * Simulink Coder version : 8.4 (R2013a) 13-Feb-2013\n * TLC version : 8.4 (Jan 19 2013)\n * C/C++ source code generated on : Mon Feb 08 22:0...
46
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 34.5, "nodes": 35, "errors": 0, "source_hash": "438cf4a2a45d6366fae0fbadb0ef17b24c386fa803de4c5b737c09357432a29a", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef R...
2,619
c
/* * Copyright (C) 2016 <NAME>. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL ...
23.15
143
(translation_unit) "/*\n * Copyright (C) 2016 <NAME>.\n *\n * Permission to use, copy, modify, and distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED "AS IS" AN...
849
0
{"language": "c", "success": true, "metadata": {"lines": 143, "avg_line_length": 23.15, "nodes": 536, "errors": 0, "source_hash": "6c7e5dfce2a4b9fb40dd24304b0e3cdcb31f169452ac9754c0eab9c93694ceb6", "categorized_nodes": 370}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,620
c
/* Generated by RuntimeBrowser Image: /System/Library/Frameworks/UIKit.framework/UIKit */ @interface _UIStatistics : NSObject { NSMutableSet * _children; NSString * _key; double _sampleRate; double _sampleValue; } @property (nonatomic) double sampleRate; + (id)_sharedStatisticWithDomain:(id)arg...
35.71
51
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/Frameworks/UIKit.framework/UIKit\n */\n\n@interface _UIStatistics : NSObject {\n NSMutableSet * _children;\n NSString * _key;\n double _sampleRate;\n double _sampleValue;\n}\n\n@property (nonatomic) double sampleRate;\n\n+ (id)_...
638
39
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 35.71, "nodes": 382, "errors": 0, "source_hash": "bc4e36a5dfb597c24be60ab066b36b9faa265533409841debb0be08b0a96ab5d", "categorized_nodes": 232}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": ...
2,621
c
#include "ndnv03/tlv.h" #include "ndnv03/data.h" #include "ndnv03/name.h" static size_t metainfo_length(const ndnv03_data_t *data) { size_t length = 0; if (data->contenttype_enabled) { length += 2 + tlv_nonnegative_int_length(data->metainfo.contenttype); } if (data->freshnessperiod_enabled) {...
31.82
157
(translation_unit) "#include "ndnv03/tlv.h"\n#include "ndnv03/data.h"\n#include "ndnv03/name.h"\n\nstatic size_t metainfo_length(const ndnv03_data_t *data)\n{\n size_t length = 0;\n\n if (data->contenttype_enabled) {\n length += 2 + tlv_nonnegative_int_length(data->metainfo.contenttype);\n }\n\n if (...
1,236
0
{"language": "c", "success": true, "metadata": {"lines": 157, "avg_line_length": 31.82, "nodes": 701, "errors": 0, "source_hash": "e63529dcab0749b8b1dfefd12c3022d59503946a44ffc8ee5f80eef3760d8cc1", "categorized_nodes": 533}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,622
c
/** * \file * \author <NAME> * \date 2012-03-21 * \brief Definition of the GMSHPoint class. * * \copyright * Copyright (c) 2013, OpenGeoSys Community (http://www.opengeosys.org) * Distributed under a Modified BSD License. * See accompanying file LICENSE.txt or * http://...
24.82
33
(translation_unit) "/**\n * \file\n * \author <NAME>\n * \date 2012-03-21\n * \brief Definition of the GMSHPoint class.\n *\n * \copyright\n * Copyright (c) 2013, OpenGeoSys Community (http://www.opengeosys.org)\n * Distributed under a Modified BSD License.\n * See accompanying file LICENSE.t...
142
10
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 24.82, "nodes": 74, "errors": 0, "source_hash": "9b47c78390f89ee3d7ea0aa2ba829ee3af47e60d07a87e124afd9f3ceba7af74", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,623
c
#include <stdlib.h> #include <stdio.h> #include <errno.h> #include <string.h> void CO(char* restrict cmd, char* restrict buf) { FILE *p = popen(cmd, "r"); if(p == NULL) { char buffer[256]; strerror_r(errno, buffer, 256); printf("ERROR: %s\n", buffer); exit(-1); } char c; size_t len = 0; while((c = fgetc...
17.64
89
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n#include <errno.h>\n#include <string.h>\n\nvoid CO(char* restrict cmd, char* restrict buf)\n{\n FILE *p = popen(cmd, "r");\n if(p == NULL)\n {\n char buffer[256];\n strerror_r(errno, buffer, 256);\n printf("ERROR: %s\n", buffer);\n exit(-1);\n }\n char c;...
771
0
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 17.64, "nodes": 467, "errors": 0, "source_hash": "72972336abcc8945e8363222f01ddfdd764d774add5879a9307e3e951641e42f", "categorized_nodes": 312}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,624
c
#ifndef H_SOUND #define H_SOUND typedef struct { uint8_t enabled; uint8_t sweepTime; uint8_t sweepDirection; uint8_t sweepShift; uint8_t waveDuty; uint8_t waveLength; uint8_t volume; uint8_t volumeSweep; uint8_t volumeSweepDir; uint16_t frequency; uint8_t initial; ui...
19.43
61
(translation_unit) "#ifndef H_SOUND\n#define H_SOUND\n\ntypedef struct\n{\n uint8_t enabled;\n\n uint8_t sweepTime;\n uint8_t sweepDirection;\n uint8_t sweepShift;\n\n uint8_t waveDuty;\n uint8_t waveLength;\n\n uint8_t volume;\n uint8_t volumeSweep;\n uint8_t volumeSweepDir;\n\n uint16_t ...
253
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 19.43, "nodes": 186, "errors": 0, "source_hash": "e7b9cb71df18346379c51a082058a717002e3ab0e2ee42ede61e4b04f8d2c932", "categorized_nodes": 127}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,625
c
#pragma once namespace Bincalc { double expr(bool); }
12.5
4
(translation_unit) "#pragma once\n\nnamespace Bincalc {\n\ndouble expr(bool);\n\n}\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (function_definition) "namespace Bincalc {\n\ndouble expr(bool);\n\n}" (type_identifier) "namespace" (identifier) "Bincalc" (co...
20
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 12.5, "nodes": 13, "errors": 0, "source_hash": "9d30e4a5ec4ace4ef2af522bfdf58954cee1c50a044f8afc0ec8e8adca917432", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once...
2,626
c
// Copyright (c) 1999 Microsoft Corporation. All Rights Reserved. /* Caching the filter cache Filter cache cache looks like this FILTER_CACHE - includes total size version merit */ typedef struct _FILTER_CACHE { DWORD dwSize; // Signature enum { ...
22.6
30
(translation_unit) "// Copyright (c) 1999 Microsoft Corporation. All Rights Reserved. \n/* \n Caching the filter cache \n \n \n Filter cache cache looks like this \n \n FILTER_CACHE - includes \n total size \n version \n merit \n*/ \n \n \ntypedef struct _FILTER_CACHE \n{ \n DWORD dwS...
84
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 22.6, "nodes": 59, "errors": 0, "source_hash": "b00b1392ad2f4ae34fe165e5b9acc110849713792e3f6157ed000c6dfdcf069c", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "typedef...
2,627
c
/** * Copyright (c) 2017 <NAME> * Licensed under the MIT License. * See LICENSE file for more information. */ #pragma once #include "saiga/config.h" #include <string> #include <vector> namespace Saiga { class SAIGA_CORE_API CommandLineArguments { public: struct CLA { std::string longName; ...
25.98
62
(translation_unit) "/**\n * Copyright (c) 2017 <NAME>\n * Licensed under the MIT License.\n * See LICENSE file for more information.\n */\n\n#pragma once\n\n#include "saiga/config.h"\n\n#include <string>\n#include <vector>\nnamespace Saiga\n{\nclass SAIGA_CORE_API CommandLineArguments\n{\n public:\n struct CLA\n ...
451
31
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 25.98, "nodes": 271, "errors": 0, "source_hash": "ba01fffb48dee9cf6e02cefea081f349fe7a2cbff9a0acf3c4d716fb237d478b", "categorized_nodes": 174}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
2,628
c
#pragma once #include "Common.h" #include "MacroCommand.h" namespace KoalaRunBot { enum class MacroLocation { Anywhere // default location , Macro // macro hatchery or main base building , Expo // gas expansion , MinOnly // any expansion (mineral-only or gas, whatever's next) , H...
29.58
74
(translation_unit) "#pragma once\n\n#include "Common.h"\n#include "MacroCommand.h"\n\nnamespace KoalaRunBot {\n enum class MacroLocation {\n Anywhere // default location\n ,\n Macro // macro hatchery or main base building\n ,\n Expo // gas expansion\n ,\n MinOnly // any expansion (mineral-only or ...
543
23
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 29.58, "nodes": 281, "errors": 0, "source_hash": "024c116b2589b7f535ea30d0cc1703d51395e4029ab04aadd04d2ddd68636468", "categorized_nodes": 200}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
2,629
c
#ifndef BUILT_IN_H #define BUILT_IN_H void getFile(char* path, char* searchName,int print); char* printMode(mode_t permissions, char* perms); int (*getBuiltin(char* command))(char**); #endif
30.83
6
(translation_unit) "#ifndef BUILT_IN_H\n#define BUILT_IN_H\n\nvoid getFile(char* path, char* searchName,int print);\n\nchar* printMode(mode_t permissions, char* perms);\n\nint (*getBuiltin(char* command))(char**);\n\n#endif\n" (preproc_ifdef) "#ifndef BUILT_IN_H\n#define BUILT_IN_H\n\nvoid getFile(char* path, char* s...
78
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 30.83, "nodes": 61, "errors": 0, "source_hash": "dcd4ad6eae335b6980a0928eaee4041f145ced507833eb9ac88d4d839887b8f5", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef B...
2,630
c
#ifndef CPPUNIT_TESTFIXTURE_H // -*- C++ -*- #define CPPUNIT_TESTFIXTURE_H #include <cppunit/Portability.h> CPPUNIT_NS_BEGIN /*! \brief Wraps a test case with setUp and tearDown methods. * \ingroup WritingTestFixture * * A TestFixture is used to provide a common environment for a set * of test cases. * * T...
27.72
92
(translation_unit) "#ifndef CPPUNIT_TESTFIXTURE_H // -*- C++ -*-\n#define CPPUNIT_TESTFIXTURE_H\n\n#include <cppunit/Portability.h>\n\nCPPUNIT_NS_BEGIN\n\n\n/*! \brief Wraps a test case with setUp and tearDown methods.\n * \ingroup WritingTestFixture\n *\n * A TestFixture is used to provide a common environment for ...
74
4
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 27.72, "nodes": 38, "errors": 0, "source_hash": "6fdf78d5b6a606f0183d77dadfa4f2c88f4ffb58ae910863ebccf267bc6e530f", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,631
c
#include <stdlib.h> #include <stdint.h> #include <string.h> #include <stdio.h> #include <assert.h> #include <time.h> #include "layout.h" #include "mblock.h" #include "mblock_ops.h" #include "sblock.h" #include "sblock_ops.h" #include "inode.h" #include "inode_ops.h" #include "inode_vec.h" #include "inode_vec_ops.h" s...
29.78
116
(translation_unit) "#include <stdlib.h>\n#include <stdint.h>\n#include <string.h>\n#include <stdio.h>\n#include <assert.h>\n#include <time.h>\n\n#include "layout.h"\n#include "mblock.h"\n#include "mblock_ops.h"\n#include "sblock.h"\n#include "sblock_ops.h"\n#include "inode.h"\n#include "inode_ops.h"\n#include "inode_ve...
1,284
0
{"language": "c", "success": true, "metadata": {"lines": 116, "avg_line_length": 29.78, "nodes": 804, "errors": 0, "source_hash": "416efd355e24fea8f55cee21d08e40b94ff200219ad363c6d4c61bdeecf28775", "categorized_nodes": 647}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,632
c
// // MegFaceIDFlashLiveConfig.h // MegLive // // Created by MegviiDev on 2017/8/18. // Copyright © 2017年 megvii. All rights reserved. // #ifndef MegFaceIDFlashLiveConfig_h #define MegFaceIDFlashLiveConfig_h typedef enum : int { MegFaceIDFlashStepLookMirror, MegFaceIDFlashStepLightEV, MegFaceIDFlashSt...
28
24
(translation_unit) "//\n// MegFaceIDFlashLiveConfig.h\n// MegLive\n//\n// Created by MegviiDev on 2017/8/18.\n// Copyright © 2017年 megvii. All rights reserved.\n//\n\n#ifndef MegFaceIDFlashLiveConfig_h\n#define MegFaceIDFlashLiveConfig_h\n\ntypedef enum : int {\n MegFaceIDFlashStepLookMirror,\n MegFaceIDFlash...
70
2
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 28.0, "nodes": 41, "errors": 0, "source_hash": "f404a44c93b18970e022b46d22792f93336c12eb50d88e7dae75c2cf91279fd8", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ndef MegF...
2,633
c
// // Created by alfons on 18-11-8. // #ifndef ALGORITHMSTEST_DELETEREPEATELEM_H #define ALGORITHMSTEST_DELETEREPEATELEM_H void DelRepeatElems(); #endif //ALGORITHMSTEST_DELETEREPEATELEM_H
26
7
(translation_unit) "//\n// Created by alfons on 18-11-8.\n//\n\n#ifndef ALGORITHMSTEST_DELETEREPEATELEM_H\n#define ALGORITHMSTEST_DELETEREPEATELEM_H\n\nvoid DelRepeatElems();\n\n#endif //ALGORITHMSTEST_DELETEREPEATELEM_H\n" (comment) "//" (comment) "// Created by alfons on 18-11-8." (comment) "//" (preproc_ifde...
20
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 26.0, "nodes": 12, "errors": 0, "source_hash": "5ca630f3a59ab6b39e9905b7f9928b3f281cd60fc3fc312b95dbce1ab33cf6e0", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ALG...
2,634
c
#pragma once #include <string> namespace Engine { class Color; class Mesh; class Transform; } using namespace std; namespace Framework { class FDraw { /*** Constants ***/ /*** Ctors ***/ private: FDraw(); /*** Fields ***/ /*** Methods ***/ public: static unsigned int BindVAO(Engine::Mesh& Data);...
15.13
23
(translation_unit) "#pragma once\n#include <string>\n\nnamespace Engine {\n class Color; \n class Mesh;\n class Transform;\n}\n\nusing namespace std;\n\nnamespace Framework\n{\n class FDraw\n {\n /*** Constants ***/\n /*** Ctors ***/\n private:\n FDraw();\n\n /*** Fields ***/\n /*** Methods ***/\n public:\n stati...
97
2
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 15.13, "nodes": 52, "errors": 0, "source_hash": "cabca91b9dd7a164914d70ca0899e43f60d71a225ff8665a1a23b2863273e4f7", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
2,635
c
// // MainViewController.h // yble // // Created by <NAME> on 2015-3-18. // Copyright (c) 2015年 Yang.me. All rights reserved. // #import <UIKit/UIKit.h> @interface MainViewController : UITableViewController @end
20.6
10
(translation_unit) "//\n// MainViewController.h\n// yble\n//\n// Created by <NAME> on 2015-3-18.\n// Copyright (c) 2015年 Yang.me. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface MainViewController : UITableViewController\n\n@end\n" (comment) "//" (comment) "// MainViewController.h" (comment...
22
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.6, "nodes": 12, "errors": 0, "source_hash": "06f7b32c623905db716b0c0af8d9c902f9ae6bad38d2fb172bbc7eef32c0786d", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <UIKi...
2,636
c
#include "gen_hashmap.h" bool initHashmap(HashMap *hashmap, int length, hashFunc hashFunc, compareFunc compareFunc, freeFunc freeFunc) { if (hashmap != NULL) { hashmap->size = length; hashmap->hashFunc = hashFunc; hashmap->compareFunc = compareFunc; hashmap->buckets = mallo...
31.81
53
(translation_unit) "#include "gen_hashmap.h"\n\nbool initHashmap(HashMap *hashmap, int length, hashFunc hashFunc,\n compareFunc compareFunc, freeFunc freeFunc) {\n\n if (hashmap != NULL) {\n hashmap->size = length;\n hashmap->hashFunc = hashFunc;\n hashmap->compareFunc = compareFunc;\n ...
576
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 31.81, "nodes": 369, "errors": 0, "source_hash": "c5d81401cf02c099fadfa9babad6819f88599aaba82513d590b9bbc718bd19e1", "categorized_nodes": 252}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,637
c
// // CalcLex.h // ParserCPP // // Created by <NAME> on 4/3/19. // Copyright © 2019 Glenview Software. All rights reserved. // #ifndef CalcLex_h #define CalcLex_h #include "CalcParser.h" class CalcLex : public CalcParserInput { public: CalcLex() { ix = 1; } virtual int32_t lex(); private: int...
14.73
22
(translation_unit) "//\n// CalcLex.h\n// ParserCPP\n//\n// Created by <NAME> on 4/3/19.\n// Copyright © 2019 Glenview Software. All rights reserved.\n//\n\n#ifndef CalcLex_h\n#define CalcLex_h\n\n#include "CalcParser.h"\n\nclass CalcLex : public CalcParserInput\n{\n public:\n CalcLex()\n {\n ix = 1;\n }\n\n...
69
3
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 14.73, "nodes": 36, "errors": 0, "source_hash": "14144ef54af9605c2bcfce714abeceb53c49c500d9cd7f185c9d39bae988add9", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef C...
2,638
c
#include <stdio.h> int main() { int n, i, a, b, c, x = 0, y = 0, z = 0; scanf("%d", &n); for (i = 1; i <= n; i++) { scanf("%d%d%d", &a, &b, &c); x += a; y += b; z += c; } if (x == 0 && y == 0 && z == 0) printf("YES\n"); else printf("NO\n"); }
17.76
17
(translation_unit) "#include <stdio.h>\nint main()\n{\n int n, i, a, b, c, x = 0, y = 0, z = 0;\n scanf("%d", &n);\n for (i = 1; i <= n; i++)\n {\n scanf("%d%d%d", &a, &b, &c);\n x += a;\n y += b;\n z += c;\n }\n if (x == 0 && y == 0 && z == 0)\n printf("YES\n");\n ...
164
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 17.76, "nodes": 96, "errors": 0, "source_hash": "397a88315f17888e89c1f44e89fc1025e732db9945caf485f670db40eb55e94d", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
2,639
c
#include <stdio.h> #include <stdlib.h> #include <unistd.h> typedef struct linkedlist { int val; struct linkedlist *next; } linkedlist_t; void addElement(linkedlist_t* list, int val){ linkedlist_t * current = list; while(current -> next != NULL){ current = current -> next; } current -> next = malloc(si...
21.55
49
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <unistd.h>\n\ntypedef struct linkedlist {\n int val;\n struct linkedlist *next;\n} linkedlist_t;\n\nvoid addElement(linkedlist_t* list, int val){\n linkedlist_t * current = list;\n while(current -> next != NULL){\n current = current -> next;\n...
391
0
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 21.55, "nodes": 261, "errors": 0, "source_hash": "fa74b2596e5ecbd70e4a75e331dc471ab80c28dcdac0060550d11467400e61cc", "categorized_nodes": 177}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,640
c
#ifndef DIALOGSETTINGS_H #define DIALOGSETTINGS_H #include <QDialog> namespace Ui { class DialogSettings; } class DialogSettings : public QDialog { Q_OBJECT public: explicit DialogSettings(QWidget *parent = 0); ~DialogSettings(); private slots: void on_pushButton_clicked(); void on_toolButtonm...
29.15
26
(translation_unit) "#ifndef DIALOGSETTINGS_H\n#define DIALOGSETTINGS_H\n\n#include <QDialog>\n\nnamespace Ui {\nclass DialogSettings;\n}\n\nclass DialogSettings : public QDialog\n{\n Q_OBJECT\n\npublic:\n explicit DialogSettings(QWidget *parent = 0);\n ~DialogSettings();\n\nprivate slots:\n void on_pushButt...
193
10
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 29.15, "nodes": 112, "errors": 0, "source_hash": "0dcc45f185cc02254aabff2191839e754815934d9d9141e241022a0f96349f9c", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
2,641
c
// RUN: %clang_cc1 -emit-llvm %s -o /dev/null // XFAIL: * // XTARGET: arm, i386, i686, x86_64 int foo() { #ifdef __arm__ register int X __asm__("r1"); #else register int X __asm__("ebx"); #endif return X; }
18.45
11
(translation_unit) "// RUN: %clang_cc1 -emit-llvm %s -o /dev/null\n// XFAIL: *\n// XTARGET: arm, i386, i686, x86_64\n\nint foo() {\n#ifdef __arm__\n register int X __asm__("r1");\n#else\n register int X __asm__("ebx");\n#endif\n return X;\n}\n" (comment) "// RUN: %clang_cc1 -emit-llvm %s -o /dev/null" (comment...
52
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 18.45, "nodes": 29, "errors": 0, "source_hash": "4ebb3bf0b05c6bd0c93c9cab2c69bcaed53091b5aab7b112e2f879bec7db71d7", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "in...
2,642
c
#ifndef AXI_LITE_DRIVER_H #define AXI_LITE_DRIVER_H #include <stdint.h> void lx_write32(uintptr_t addr, uint32_t val); uint32_t lx_read32(uintptr_t addr); void axi_led_write(uint32_t val); uint32_t axi_led_read(void); uint32_t axi_sw_read(void); #endif
27.11
9
(translation_unit) "#ifndef AXI_LITE_DRIVER_H\n#define AXI_LITE_DRIVER_H\n\n#include <stdint.h>\n\nvoid lx_write32(uintptr_t addr, uint32_t val);\n\nuint32_t lx_read32(uintptr_t addr);\n\nvoid axi_led_write(uint32_t val);\n\nuint32_t axi_led_read(void);\n\nuint32_t axi_sw_read(void);\n\n#endif\n" (preproc_ifdef) "#if...
68
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 27.11, "nodes": 51, "errors": 0, "source_hash": "7122eb9ecc47065be8c3ed155fb4f67b5f95673b7307ea4fa0e64203b7c0cdd8", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef A...
2,643
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import <NeutrinoCore/NURenderJob.h> @interface NUVideoPropertiesJob : NURenderJob { id <NUVideoProperties> _videoProperties; } - (void).cxx_destruct; - (id)result; - (BOOL)prepare:...
23.5
16
(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 <NeutrinoCore/NURenderJob.h>\n\n@interface NUVideoPropertiesJob : NURenderJob\n{\n id <NUVideoProperties> _videoProperties;\n}\n\n- (void).cxx_destruc...
96
8
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 23.5, "nodes": 55, "errors": 0, "source_hash": "e2b20c624a19b51e77b8d8eb437ced98886f179657ef7c85750c74abacb2f704", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <N...
2,644
c
/* Copyright (c) 2009-2019 Arm Limited * SPDX-License-Identifier: Apache-2.0 * * 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...
32.57
119
(translation_unit) "/* Copyright (c) 2009-2019 Arm Limited\n * SPDX-License-Identifier: Apache-2.0\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/licens...
486
0
{"language": "c", "success": true, "metadata": {"lines": 119, "avg_line_length": 32.57, "nodes": 266, "errors": 0, "source_hash": "fb6d83c9132401654d6898adef381a75cf5776dcc805964c2248bf2ee6648bfd", "categorized_nodes": 208}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,645
c
#pragma once #include <utility> #define ASSERT_OK_AND_ASSIGN(dest, expr) \ dest = ({ \ auto __result = (expr); \ ASSERT_TRUE(__result.ok()) << __result.status(); \ std::move(*__result); \ });
50.5
6
(translation_unit) "#pragma once\n\n#include <utility>\n\n#define ASSERT_OK_AND_ASSIGN(dest, expr) \\n dest = ({ \\n auto __result = (expr); \\n ASSERT_TRUE(__result.ok()) << __result.status(); \\n std::move(*__result); ...
17
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 50.5, "nodes": 13, "errors": 0, "source_hash": "795076f3ab251d7378934d27162e5255d668999453ea6ae967146a8e3e31a011", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once...
2,646
c
/* C K O A D M . H -- Header for Hazeltine Emulation */ /* Author: <NAME> <<EMAIL>>, Secure Endpoints Inc., New York City. Copyright (C) 1985, 2004, Trustees of Columbia University in the City of New York. */ _PROTOTYP( void admascii, ( int ) ) ;
32.38
8
(translation_unit) "/* C K O A D M . H -- Header for Hazeltine Emulation */\n\n/*\n Author: <NAME> <<EMAIL>>,\n Secure Endpoints Inc., New York City.\n\n Copyright (C) 1985, 2004, Trustees of Columbia University in the City of New\n York.\n*/\n_PROTOTYP( void admascii, ( int ) ) ;\n\n\n" (comment) "/*...
19
1
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 32.38, "nodes": 8, "errors": 0, "source_hash": "5498b658b1a10f6dc5bd35273d2dd1c7b60af8f56c148160d1aa99443ea7a466", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "_PROTOTYP( vo...
2,647
c
/* This file is Copyright University of Edinburgh 2018. For license details, see LICENSE. */ /* * InstructionDescription.h * * Created on: 20 May 2015 * Author: harry */ #ifndef INC_ISA_INSTRUCTIONDESCRIPTION_H_ #define INC_ISA_INSTRUCTIONDESCRIPTION_H_ #include <cstdint> #include <string> #include <vect...
34.03
87
(translation_unit) "/* This file is Copyright University of Edinburgh 2018. For license details, see LICENSE. */\n\n/*\n * InstructionDescription.h\n *\n * Created on: 20 May 2015\n * Author: harry\n */\n\n#ifndef INC_ISA_INSTRUCTIONDESCRIPTION_H_\n#define INC_ISA_INSTRUCTIONDESCRIPTION_H_\n\n#include <cstdint>\n...
745
33
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 34.03, "nodes": 453, "errors": 0, "source_hash": "2d3f287e1a90bce482bbc79d55156787d05d88fa07d7f1ea31e6ab6b6663f36e", "categorized_nodes": 328}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,648
c
/** ****************************************************************************** * @file stm32f0xx_it.c * @brief Interrupt Service Routines. ****************************************************************************** * * COPYRIGHT(c) 2018 STMicroelectronics * * Redistribution and use in source...
35.87
187
(translation_unit) "/**\n ******************************************************************************\n * @file stm32f0xx_it.c\n * @brief Interrupt Service Routines.\n ******************************************************************************\n *\n * COPYRIGHT(c) 2018 STMicroelectronics\n *\n * Redi...
480
0
{"language": "c", "success": true, "metadata": {"lines": 187, "avg_line_length": 35.87, "nodes": 240, "errors": 0, "source_hash": "fdec95ce4e09f60f943793a7f3e8167e78fa81566d29762bfb9d7665c354add6", "categorized_nodes": 171}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,649
c
/* * Vax 32V Unix filesystem (same as pre-FFS Berkeley) */ #include <u.h> #include <libc.h> #include <auth.h> #include <fcall.h> #include "tapefs.h" /* * v32 disk inode */ #define VNADDR 13 #define VFMT 0160000 #define VIFREG 0100000 #define VIFDIR 0040000 #define VIFCHR 0120000 #define VIFBLK 0160000 #define VMOD...
18.94
196
(translation_unit) "/*\n * Vax 32V Unix filesystem (same as pre-FFS Berkeley)\n */\n#include <u.h>\n#include <libc.h>\n#include <auth.h>\n#include <fcall.h>\n#include "tapefs.h"\n\n/*\n * v32 disk inode\n */\n#define VNADDR 13\n#define VFMT 0160000\n#define VIFREG 0100000\n#define VIFDIR 0040000\n#define VIFCHR 0120000...
1,716
0
{"language": "c", "success": true, "metadata": {"lines": 196, "avg_line_length": 18.94, "nodes": 1119, "errors": 0, "source_hash": "0efd9873dbd164bc84d4c8e14bb3b5adcaccecf8eeaad10fb0ebfb7614827710", "categorized_nodes": 791}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
2,650
c
#ifndef TASKS #define TASKS #include "../include/pollux.h" void velocityProjection(particleData &galaxy, hslParticles tracer, string filename,string curvename); void diskData(particleData &galaxy); void starFormation(particleData &galaxy); void radialMotion(particleData &galaxy); void gasPoints(particleData &galaxy); ...
36.73
15
(translation_unit) "#ifndef TASKS\n#define TASKS\n#include "../include/pollux.h"\n\nvoid velocityProjection(particleData &galaxy, hslParticles tracer, string filename,string curvename);\nvoid diskData(particleData &galaxy);\nvoid starFormation(particleData &galaxy);\nvoid radialMotion(particleData &galaxy);\nvoid gasPo...
169
11
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 36.73, "nodes": 107, "errors": 0, "source_hash": "b214be4d8bff76db04267630a79a584bbdb2beb835607c0271cbc33305a8f764", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
2,651
c
// // SFRouterLoader.h // Pods-SFRouter_Example // // Created by longfei on 2020/9/11. // #import <Foundation/Foundation.h> #import <SFRouter/SFRouterModels.h> NS_ASSUME_NONNULL_BEGIN @interface SFRouterLoader : NSObject @property (readonly) NSDictionary<SFRouterKey, SFRouterInfoItem *> *routerMap; ///< 路由数据 - ...
25
14
(translation_unit) "//\n// SFRouterLoader.h\n// Pods-SFRouter_Example\n//\n// Created by longfei on 2020/9/11.\n//\n\n#import <Foundation/Foundation.h>\n#import <SFRouter/SFRouterModels.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface SFRouterLoader : NSObject\n\n@property (readonly) NSDictionary<SFRouterKey, SFRouterInf...
62
7
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 25.0, "nodes": 43, "errors": 0, "source_hash": "aa247ef34be1302d84b28bcea6f92149bb3ac6848248d23a97418e904c1c61b3", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
2,652
c
// // QMPermissions.h // // Created by Hideki on 5/11/16. // Copyright © 2016 Hideki_Ingrid. All rights reserved. // #import <Foundation/Foundation.h> typedef void (^PermissionBlock)(BOOL granted); /** * QMPerfmissions class interface. * Used as main permission request. */ @interface QMPermissions : NSObjec...
25.5
26
(translation_unit) "//\n// QMPermissions.h\n\n//\n// Created by Hideki on 5/11/16.\n// Copyright © 2016 Hideki_Ingrid. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\ntypedef void (^PermissionBlock)(BOOL granted);\n\n/**\n * QMPerfmissions class interface.\n * Used as main permission request.\n */...
73
7
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 25.5, "nodes": 40, "errors": 0, "source_hash": "d75663c87c56f21da943c0dffa3949dd40f60610bea0a6a8cdbf08b93185492a", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <Fo...
2,653
c
/* * Copyright (c) 2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #ifndef THP...
36.89
138
(translation_unit) "/*\n * Copyright (c) 2014, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same dire...
1,408
66
{"language": "c", "success": true, "metadata": {"lines": 138, "avg_line_length": 36.89, "nodes": 860, "errors": 0, "source_hash": "7903f061054d19b96e8131204d5501854ff968f1881eb4fbffcfaf737a6110a1", "categorized_nodes": 556}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,654
c
// // JPCardDetails.h // JudoKitObjC // // Copyright (c) 2016 Alternative Payments Ltd // // 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 limit...
24.77
231
(translation_unit) "//\n// JPCardDetails.h\n// JudoKitObjC\n//\n// Copyright (c) 2016 Alternative Payments Ltd\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the "Software"), to deal\n// in the Software without restrict...
429
64
{"language": "c", "success": true, "metadata": {"lines": 231, "avg_line_length": 24.77, "nodes": 254, "errors": 0, "source_hash": "b1a584ab7d9b3793562923cd33ca0b2187d0078a75bde51c6d1011cd783925d2", "categorized_nodes": 148}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#impor...
2,655
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" #import "QMSdkLoggerDelegate.h" @class NSString; @interface QMusic : NSObject <QMSdkLoggerDelegate> { _Bool _audioSessionActived; NSString *pageUrl; } + (...
29.62
58
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n#import "QMSdkLoggerDelegate.h"\n\n@class NSString;\n\n@interface QMusic : NSObject <QMSdkLoggerDelegate>\n{\n _Bool _audioSessionActi...
647
41
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 29.62, "nodes": 394, "errors": 0, "source_hash": "b7d74683f6e0f1b3e8b974df46c59be795048d08d206173d6dbd7a7567d5075c", "categorized_nodes": 231}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
2,656
c
#ifndef LLIST_H # define LLIST_H struct llist_elt { void *data; int type; struct llist_elt *next; }; struct llist { size_t size; struct llist_elt *head; }; struct llist *llist_init(void); void llist_append(struct llist *l, void *data, int type); void llist_pop(struct llist *l, void (*free_data)(void *dat...
28.86
22
(translation_unit) "#ifndef LLIST_H\n# define LLIST_H\n\nstruct llist_elt\n{\n void *data;\n int type;\n struct llist_elt *next;\n};\n\nstruct llist\n{\n size_t size;\n struct llist_elt *head;\n};\n\nstruct llist *llist_init(void);\n\nvoid llist_append(struct llist *l, void *data, int type);\n\nvoid llist_pop(stru...
255
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 28.86, "nodes": 194, "errors": 0, "source_hash": "d1f810c04dc6472fd0c186d901a8bb78f51c8a5b1075d51837e2fffc398d84e9", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,657
c
#ifndef VIENNA_RNA_PACKAGE_STRUCTURAL_DOMAINS_H #define VIENNA_RNA_PACKAGE_STRUCTURAL_DOMAINS_H /** * @file structured_domains.h * @ingroup domains_struc * * @brief This module provides interfaces that deal with additional structured domains in the folding grammar. */ /** * @addtogroup domains_struc * * ...
33.16
25
(translation_unit) "#ifndef VIENNA_RNA_PACKAGE_STRUCTURAL_DOMAINS_H\n#define VIENNA_RNA_PACKAGE_STRUCTURAL_DOMAINS_H\n\n/**\n * @file structured_domains.h\n * @ingroup domains_struc\n *\n * @brief This module provides interfaces that deal with additional structured domains in the folding grammar.\n */\n\n/**\n * @...
29
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 33.16, "nodes": 19, "errors": 0, "source_hash": "0146973d681c5fbdba8d6b99cc066547323ccbadc083a55b44650fa2e730aad1", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,658
c
/* Copyright 2018. Massachusetts Institute of Technology. * All rights reserved. Use of this source code is governed by * a BSD-style license which can be found in the LICENSE file. * * Authors: * 2018 <NAME> <<EMAIL>> */ #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <complex.h> #include <...
27.66
47
(translation_unit) "/* Copyright 2018. Massachusetts Institute of Technology.\n * All rights reserved. Use of this source code is governed by\n * a BSD-style license which can be found in the LICENSE file.\n *\n * Authors: \n * 2018 <NAME> <<EMAIL>>\n */\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <assert.h>\n...
446
3
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 27.66, "nodes": 280, "errors": 0, "source_hash": "06a9dba2735a2f5fac70885f2d3d008dc295fc237ea59be98b9a10481d91849a", "categorized_nodes": 198}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,659
c
#ifndef _M68K_REG_H_ #define _M68K_REG_H_ /* Interface between ptrace.c:ptrace() and kern_sig.c:stopped_process_handler(). Register set accessible via ptrace(). */ struct reg { /* Registers, d0-d7/a0-a7. D0 is r_regs[0], a0 is r_regs[8]. */ int r_regs[16]; caddr_t r_pc; /* prog...
31.94
17
(translation_unit) "#ifndef _M68K_REG_H_\n#define _M68K_REG_H_\n\n/* Interface between ptrace.c:ptrace() and kern_sig.c:stopped_process_handler().\n Register set accessible via ptrace(). */\nstruct reg\n {\n /* Registers, d0-d7/a0-a7. D0 is r_regs[0], a0 is r_regs[8]. */\n int r_regs[16];\n caddr_t r_pc; ...
66
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 31.94, "nodes": 39, "errors": 0, "source_hash": "922120730f1a4d6c191407faa87c4b6138a57eba277322db1050290144ad2ed7", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,660
c
typedef unsigned short Ushort; typedef unsigned char Uchar; typedef unsigned long Ulong; typedef union { char clength[8]; #ifdef BIGEND struct{ Ulong hlength; Ulong length; }l; #else struct{ Ulong length; Ulong hlength; }l; #endif }Length;
13.06
18
(translation_unit) "typedef unsigned short Ushort;\ntypedef unsigned char Uchar;\ntypedef unsigned long Ulong;\ntypedef union\n{\n char clength[8];\n#ifdef BIGEND\n struct{\n Ulong hlength;\n Ulong length;\n }l;\n#else\n struct{\n Ulong length;\n Ulong hlength;\n }l;\n#endif\n}Length;\n" (type_definition) "typede...
77
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 13.06, "nodes": 54, "errors": 0, "source_hash": "293139bdae32f29569031be081bc1fd8bc34ab07db29a2bfed76268097b97c3e", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "typede...
2,661
c
// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. #pragma once #include <frc2/command/CommandBase.h> #include <frc2/command/CommandHelper.h> #include <functional> #in...
34.28
46
(translation_unit) "// Copyright (c) FIRST and other WPILib contributors.\n// Open Source Software; you can modify and/or share it under the terms of\n// the WPILib BSD license file in the root directory of this project.\n\n#pragma once\n\n#include <frc2/command/CommandBase.h>\n#include <frc2/command/CommandHelper.h>\n...
301
16
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 34.28, "nodes": 193, "errors": 0, "source_hash": "dcb1efd7dae697a45552e6ad6813c0890c284e1ea5f814abc4f2b9039b753278", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
2,662
c
#ifndef COCOATWEET_API_MODEL_USER_H_ #define COCOATWEET_API_MODEL_USER_H_ #include <string> namespace CocoaTweet::API::Model { /// @brief data class for tweet object class User final { public: /// @brief constructor User() = default; /// @brief copy constructor User(const User&) = default; /// @brief con...
32.47
64
(translation_unit) "#ifndef COCOATWEET_API_MODEL_USER_H_\n#define COCOATWEET_API_MODEL_USER_H_\n\n#include <string>\n\nnamespace CocoaTweet::API::Model {\n\n/// @brief data class for tweet object\nclass User final {\npublic:\n /// @brief constructor\n User() = default;\n\n /// @brief copy constructor\n User(const U...
621
28
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 32.47, "nodes": 331, "errors": 0, "source_hash": "d40a9747e309fc1c00bfbb8f8f5658918eabdc1a0392342ca3df08368e0b6f64", "categorized_nodes": 234}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,663
c
// name your method #ifndef METHODS_METHOD_TEMPLATE_H #define METHODS_METHOD_TEMPLATE_H // include only the necessary header files #include "quartz_internal/propagate.h" #include "details/math/polynomial.h" namespace method { // use your method name to create a subspace for your // implementation of details namespace...
32.68
108
(translation_unit) "// name your method\n#ifndef METHODS_METHOD_TEMPLATE_H\n#define METHODS_METHOD_TEMPLATE_H\n\n// include only the necessary header files\n#include "quartz_internal/propagate.h"\n#include "details/math/polynomial.h"\n\nnamespace method {\n// use your method name to create a subspace for your\n// imple...
565
40
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 32.68, "nodes": 326, "errors": 0, "source_hash": "cc110e2170455290601338c42391c42a52c891ead5d76358e14a5e632ea5e5f6", "categorized_nodes": 204}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,664
c
#include <assert.h> #include "cmap.h" #include "errcodes.h" #include "palchunk.h" #include "picfile.h" #include "unchunk.h" static Errcode read_pic_pixels(XFILE *xf, Pic_header *pic, Raster *cel, SHORT chunk_type, LONG offset, LONG data_size) { Errcode err; LONG bufsize; Bytemap rr; LONG bpr; LONG top...
20.91
217
(translation_unit) "#include <assert.h> \n#include "cmap.h" \n#include "errcodes.h" \n#include "palchunk.h" \n#include "picfile.h" \n#include "unchunk.h" \n \nstatic Errcode \nread_pic_pixels(XFILE *xf, Pic_header *pic, Raster *cel, \n SHORT chunk_type, LONG offset, LONG data_size) \n{ \nErrcode err; \nLONG bufsize; \...
1,459
0
{"language": "c", "success": true, "metadata": {"lines": 217, "avg_line_length": 20.91, "nodes": 922, "errors": 0, "source_hash": "88bc693d446a07a623ff9f9d8b6de2281e5630f227a5f981f89c3116ff1ea50f", "categorized_nodes": 712}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,665
c
/* ########################################################################## # If not stated otherwise in this file or this component's LICENSE # file the following copyright and licenses apply: # # Copyright 2019 RDK Management # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this...
25.73
225
(translation_unit) "/*\n##########################################################################\n# If not stated otherwise in this file or this component's LICENSE\n# file the following copyright and licenses apply:\n#\n# Copyright 2019 RDK Management\n#\n# Licensed under the Apache License, Version 2.0 (the "Licens...
649
0
{"language": "c", "success": true, "metadata": {"lines": 225, "avg_line_length": 25.73, "nodes": 436, "errors": 0, "source_hash": "3f2e7b87a9be73d2496e5c4bf560abc6e928266e98199fcd90b2b6406c35ef34", "categorized_nodes": 290}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,666
c
// // JWUnitHelper.h // JWUtilDemo // // Created by 吴建文 on 2018/1/16. // Copyright © 2018年 Javen. All rights reserved. // #import <Foundation/Foundation.h> @interface JWUnitModel: NSObject @property (nonatomic, assign) double value; @property (nonatomic, copy) NSString *unit; @end; @interface JWUnitHelper : NS...
28.65
20
(translation_unit) "//\n// JWUnitHelper.h\n// JWUtilDemo\n//\n// Created by 吴建文 on 2018/1/16.\n// Copyright © 2018年 Javen. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface JWUnitModel: NSObject\n\n@property (nonatomic, assign) double value;\n@property (nonatomic, copy) NSString *unit;\n\n...
85
16
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 28.65, "nodes": 56, "errors": 0, "source_hash": "a93a35cc17e96675297ae09ff890b932f600b0e3f2fcc046f3d6072fed1b59c3", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Foundatio...
2,667
c
// // Created by <NAME> on 2/10/17. // #ifndef WS2812ADAPTER_HPP #define WS2812ADAPTER_HPP #include <Arduino.h> #include <functional> #include <memory> extern "C" { #include "eagle_soc.h" #include "uart_register.h" } //borrowed from Adafruit // Color-order flag for LED pixels (optional extra parameter to constructo...
27.64
64
(translation_unit) "//\n// Created by <NAME> on 2/10/17.\n//\n\n#ifndef WS2812ADAPTER_HPP\n#define WS2812ADAPTER_HPP\n\n#include <Arduino.h>\n#include <functional>\n#include <memory>\n\nextern "C"\n{\n#include "eagle_soc.h"\n#include "uart_register.h"\n}\n\n//borrowed from Adafruit\n// Color-order flag for LED pixels (...
331
4
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 27.64, "nodes": 214, "errors": 0, "source_hash": "21273c2f4153a31d230c952eeadc8ec7edee8617c381f0d3cb9d700b12d6a2ea", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,668
c
#pragma once namespace Engine { struct Vector3 { float x; float y; float z; Vector3(); Vector3(float X, float Y, float Z); }; }
10.75
12
(translation_unit) "#pragma once\n\nnamespace Engine\n{\n struct Vector3\n {\n float x;\n float y;\n float z;\n\n Vector3();\n Vector3(float X, float Y, float Z);\n };\n}" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (function_definition) "namespace Engine\n{\n str...
55
2
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 10.75, "nodes": 35, "errors": 0, "source_hash": "db6272ec32819163db296a229998f9a77beb61460c54101444d8e71ef6a04d05", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
2,669
c
#pragma once #include "esphome/core/component.h" #include "esphome/core/defines.h" #include "esphome/components/sensor/sensor.h" #ifdef USE_BINARY_SENSOR #include "esphome/components/binary_sensor/binary_sensor.h" #endif #include "esphome/components/uart/uart.h" namespace esphome { namespace hydreon_rgxx { enum RGMo...
30.92
62
(translation_unit) "#pragma once\n\n#include "esphome/core/component.h"\n#include "esphome/core/defines.h"\n#include "esphome/components/sensor/sensor.h"\n#ifdef USE_BINARY_SENSOR\n#include "esphome/components/binary_sensor/binary_sensor.h"\n#endif\n#include "esphome/components/uart/uart.h"\n\nnamespace esphome {\nname...
442
15
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 30.92, "nodes": 279, "errors": 0, "source_hash": "2b46ec2a6d395ad0ec5e68f2e4422c07910a84ac120fbd5da56cd6e28b6ac668", "categorized_nodes": 176}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
2,670
c
#pragma once #include "rendering/VkCoreIncludes.h" namespace vl { struct RQueue : public vk::Queue { struct Family { vk::QueueFamilyProperties props; uint32 index{ UINT_MAX }; bool supportsPresent{ false }; }; const Family& family; RQueue(const Family& fam); }; } // namespace vl
21.31
13
(translation_unit) "#pragma once\n\n#include "rendering/VkCoreIncludes.h"\n\nnamespace vl {\nstruct RQueue : public vk::Queue {\n struct Family {\n vk::QueueFamilyProperties props;\n uint32 index{ UINT_MAX };\n bool supportsPresent{ false };\n };\n\n const Family& family;\n\n RQueue(const Family& fam);\n};\n\n} // n...
91
7
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 21.31, "nodes": 43, "errors": 0, "source_hash": "7f05bee2baa8cd0bc8d544e12856311b335f592598dd294dc82fba92e34a115a", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
2,671
c
#ifndef USER_DETAIL_RENDER_H #define USER_DETAIL_RENDER_H #include <mustache.h> #include <sys/queue.h> #include "pages/partial/partial_render.h" #include "pages/shared/shared_user_render.h" int user_detail_render(UserContext *context); void user_detail_render_clean(UserContext *context); #endif
26.73
11
(translation_unit) "#ifndef USER_DETAIL_RENDER_H\n#define USER_DETAIL_RENDER_H\n\n#include <mustache.h>\n#include <sys/queue.h>\n\n#include "pages/partial/partial_render.h"\n#include "pages/shared/shared_user_render.h"\n\nint\nuser_detail_render(UserContext *context);\n\nvoid \nuser_detail_render_clean(UserCont...
52
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 26.73, "nodes": 39, "errors": 0, "source_hash": "1fa93d60a5b307d7996716f5f7a8fe9656c17d71cde295a24b57ef9d1901510b", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,672
c
// these are missing in qio_xml.h char *QIO_encode_as_string(char *buf, QIO_TagCharValue *tag_value, int *remainder); char *QIO_encode_as_int(char *buf, QIO_TagIntValue *tag_value, int *remainder); char *QIO_next_tag(char *parse_pt, char *tag, char **left_angle); char *QIO_get_tag_value(char *parse_pt, cha...
42.67
15
(translation_unit) "// these are missing in qio_xml.h\n\nchar *QIO_encode_as_string(char *buf, QIO_TagCharValue *tag_value,\n int *remainder);\n\nchar *QIO_encode_as_int(char *buf, QIO_TagIntValue *tag_value,\n int *remainder);\n\nchar *QIO_next_tag(char *parse_pt, char *tag, char **left_angle);\n\nchar *QIO_get...
189
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 42.67, "nodes": 150, "errors": 0, "source_hash": "513f095b2e6133f10baf6c95c16297a7c4520ca9b64b384c076c4127ac7ecef2", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "char *QIO...
2,673
c
/* * Renesas USB driver * * Copyright (C) 2011 Renesas Solutions Corp. * <NAME> <<EMAIL>> * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public Lic...
36.89
94
(translation_unit) "/*\n * Renesas USB driver\n *\n * Copyright (C) 2011 Renesas Solutions Corp.\n * <NAME> <<EMAIL>>\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See t...
634
0
{"language": "c", "success": true, "metadata": {"lines": 94, "avg_line_length": 36.89, "nodes": 484, "errors": 0, "source_hash": "6590a90930f0613f0fd835b55daede5da119dec17f012933c0743dcaa89af89f", "categorized_nodes": 314}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,674
c
/* * I/O remap functions for Hexagon * * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation....
34.94
47
(translation_unit) "/*\n * I/O remap functions for Hexagon\n *\n * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License version 2 and\n * only version 2 as published by th...
283
3
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 34.94, "nodes": 194, "errors": 0, "source_hash": "254cd39272c35ea0108c9a833a02849742409ea98083c6656dd2c36691714e62", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,675
c
#pragma once //------------------------------------------------------------------------------ /** @class BaseGameFeature::TimingTimeSource Provides timing information for the Timing logic. (C) 2007 Radon Labs GmbH (C) 2013-2016 Individual contributors, see AUTHORS file */ #include "basegametim...
28.96
27
(translation_unit) "#pragma once\n//------------------------------------------------------------------------------\n/**\n @class BaseGameFeature::TimingTimeSource\n \n Provides timing information for the Timing logic.\n \n (C) 2007 Radon Labs GmbH\n (C) 2013-2016 Individual contributors, see AUTHORS f...
77
2
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 28.96, "nodes": 35, "errors": 0, "source_hash": "6d959625e6b34b7d40651b309efe1eed5363d556c791f22bcb9fda2ea2da9dcd", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
2,676
c
// Copyright 2019 The TCMalloc Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agr...
39.4
204
(ERROR) "// Copyright 2019 The TCMalloc Authors\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// https://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by appl...
1,710
95
{"language": "c", "success": true, "metadata": {"lines": 204, "avg_line_length": 39.4, "nodes": 996, "errors": 0, "source_hash": "fc565efc8e8bcb8745136ab9d9a89f189651d7f4feaa1e89140a8c65db2eb3df", "categorized_nodes": 688}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "// Copyright 2019 The TCM...
2,677
c
/* * Copyright (c) 2010, 2014 Mellanox Technologies. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public License (GPL) Version 2, available from the file * COPYING in the main directory of th...
30.17
271
(translation_unit) "/*\n * Copyright (c) 2010, 2014 Mellanox Technologies. All rights reserved.\n *\n * This software is available to you under a choice of one of two\n * licenses. You may choose to be licensed under the terms of the GNU\n * General Public License (GPL) Version 2, available from the file\n * COPYING i...
1,257
1
{"language": "c", "success": true, "metadata": {"lines": 271, "avg_line_length": 30.17, "nodes": 732, "errors": 0, "source_hash": "caa8f5b3d96371a712d43c6c518f5364a5cb80ec09fe29dbf9e8b065fd8fff68", "categorized_nodes": 507}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,678
c
#pragma once #pragma warning(disable : 5030) #include <UECS/Entity.h> #include <UGM/transform.h> #include <UDP/Basic/Read.h> #include <string> namespace Ubpa { class Scene; class SObj { public: std::string name; [[is_not_serialize]] Read<SObj, SObj*> parent{ nullptr }; Read<SObj, std::set<SObj*>> child...
25.67
45
(translation_unit) "#pragma once\n#pragma warning(disable : 5030)\n\n#include <UECS/Entity.h>\n\n#include <UGM/transform.h>\n\n#include <UDP/Basic/Read.h>\n\n#include <string>\n\nnamespace Ubpa {\n class Scene;\n\n class SObj {\n public:\n std::string name;\n [[is_not_serialize]]\n Read<SObj, SObj*> parent{ nullptr ...
426
27
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 25.67, "nodes": 279, "errors": 0, "source_hash": "99264d679c77853e2b5d696e6a2a8a428d6d472c94a0cfe658f076879c445135", "categorized_nodes": 171}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
2,679
c
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "Engine.h" #include "ReplicatedVRCameraComponent.generated.h" UCLASS(Blueprintable, meta = (BlueprintSpawnableComponent), ClassGroup = VRExpansionLibrary) class VREXPANSIONPLUGIN_API UReplicatedVRCameraComponent : p...
39.06
65
(translation_unit) "// Fill out your copyright notice in the Description page of Project Settings.\n\n#pragma once\n\n#include "Engine.h"\n#include "ReplicatedVRCameraComponent.generated.h"\n\n\nUCLASS(Blueprintable, meta = (BlueprintSpawnableComponent), ClassGroup = VRExpansionLibrary)\nclass VREXPANSIONPLUGIN_API URe...
364
9
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 39.06, "nodes": 205, "errors": 0, "source_hash": "709f3485c9207e43ae8331db61c1a41a9b4299fa2443e9c62c1d92c950ee7575", "categorized_nodes": 140}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
2,680
c
/* * MIT License * * Copyright (c) 2021 <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, m...
32.28
67
(translation_unit) "/*\n * MIT License\n *\n * Copyright (c) 2021 <NAME>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights...
351
12
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 32.28, "nodes": 240, "errors": 0, "source_hash": "cb684d07a7a58bdca881af8113675f7510d5c8821a5d6af6ebe30212f6b884fa", "categorized_nodes": 167}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,681
c
// // uspios.h // // External functions used by the USPi library // // USPi - An USB driver for Raspberry Pi written in C // Copyright (C) 2014-2018 <NAME> <<EMAIL>> // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the...
32.27
105
(translation_unit) "//\n// uspios.h\n//\n// External functions used by the USPi library\n//\n// USPi - An USB driver for Raspberry Pi written in C\n// Copyright (C) 2014-2018 <NAME> <<EMAIL>>\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public L...
428
0
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 32.27, "nodes": 273, "errors": 0, "source_hash": "cc377075db04c4f04e21a65c35f98f3d6e3484dc17bf08830fc71d535178e686", "categorized_nodes": 151}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,682
c
// // Created by Metagross on 5/20/2018. // #ifndef VOLTORBFLIPCALCULATOR2_MAINCPPCLASS_H #define VOLTORBFLIPCALCULATOR2_MAINCPPCLASS_H #include <list> #include "cell.h" #include "board.h" #include "layout.h" #include "cellStats.h" class MainCppClass { public: MainCppClass(); ~MainCppClass(); bool Verif...
31.59
32
(translation_unit) "//\n// Created by Metagross on 5/20/2018.\n//\n\n#ifndef VOLTORBFLIPCALCULATOR2_MAINCPPCLASS_H\n#define VOLTORBFLIPCALCULATOR2_MAINCPPCLASS_H\n\n#include <list>\n\n#include "cell.h"\n#include "board.h"\n#include "layout.h"\n#include "cellStats.h"\n\nclass MainCppClass {\npublic:\n MainCppClass();...
294
3
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 31.59, "nodes": 184, "errors": 0, "source_hash": "8c06c422423c2692f09eea782e4f09e2cd5706f99dc9eb9aace281dee2f16e00", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,683
c
/* * Copyright (c) 2021 <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, dis...
31.62
204
(translation_unit) "/*\n * Copyright (c) 2021 <NAME>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, m...
1,827
0
{"language": "c", "success": true, "metadata": {"lines": 204, "avg_line_length": 31.62, "nodes": 1044, "errors": 0, "source_hash": "dec7e2399d036bdb7bff6682c23c77307e79bb87301d528b7298ee5cec7336c7", "categorized_nodes": 734}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
2,684
c
/* SDLEngine <NAME> */ #pragma once #include "uniform_buffer.h" #include <memory> #include <glm/glm.hpp> namespace Render { class Mesh; // This contains everything used to render a mesh class MeshInstance { public: MeshInstance() { } explicit MeshInstance(const Mesh* mesh, uint32_t startChunk, uint32_t endC...
24.49
41
(translation_unit) "/*\nSDLEngine\n<NAME>\n*/\n#pragma once\n\n#include "uniform_buffer.h"\n#include <memory>\n#include <glm/glm.hpp>\n\nnamespace Render\n{\n class Mesh;\n\n // This contains everything used to render a mesh\n class MeshInstance\n {\n public:\n MeshInstance() { }\n explicit MeshInstance(const Mesh* m...
269
12
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 24.49, "nodes": 150, "errors": 0, "source_hash": "da3611bda30f9b526cd2c58def374d2acf0bb37fa7b581547cfbee44c815b522", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
2,685
c
#ifndef UTILITY_H #define UTILITY_H #include <vector> #include <string> #include <map> #include <stdexcept> #include <sstream> #include <iostream> /* Improved Split funtion that skips over consecutive delimiters, * and splits on more than one delimiter (Used for space and tab) */ std::vector<std::string> Split(const...
31.77
78
(translation_unit) "#ifndef UTILITY_H\n#define UTILITY_H\n#include <vector>\n#include <string>\n#include <map>\n#include <stdexcept>\n#include <sstream>\n#include <iostream>\n\n/* Improved Split funtion that skips over consecutive delimiters, \n * and splits on more than one delimiter (Used for space and tab) */\nstd::...
798
59
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 31.77, "nodes": 462, "errors": 0, "source_hash": "dad37f04cb30a8c8a6a317351adcdfaf5517be0eda8968c7883a1ba81b50f452", "categorized_nodes": 316}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,686
c
#include "afl.h" #include <sys/types.h> #include <unistd.h> #include "qemu/osdep.h" #include "qapi/error.h" #include "qemu/main-loop.h" #include "qemu/option.h" #include "qemu/config-file.h" #include "hw/qdev.h" #include "monitor/qdev.h" #include "qom/object_interfaces.h" #include "glib.h" /* from command line option...
29.2
173
(translation_unit) "#include "afl.h"\n#include <sys/types.h>\n#include <unistd.h>\n#include "qemu/osdep.h"\n#include "qapi/error.h"\n#include "qemu/main-loop.h"\n#include "qemu/option.h"\n#include "qemu/config-file.h"\n#include "hw/qdev.h"\n#include "monitor/qdev.h"\n#include "qom/object_interfaces.h"\n#include "glib.h...
1,087
0
{"language": "c", "success": true, "metadata": {"lines": 173, "avg_line_length": 29.2, "nodes": 616, "errors": 0, "source_hash": "8f1cecaa82a69c3f42696633d5ce91656754ae0f0edfa63477574393cc218fb3", "categorized_nodes": 387}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,687
c
/* * Copyright (c) 2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #pragma once ...
32.53
109
(translation_unit) "/*\n * Copyright (c) 2014, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same dire...
320
23
{"language": "c", "success": true, "metadata": {"lines": 109, "avg_line_length": 32.53, "nodes": 204, "errors": 0, "source_hash": "9deb43cace6bd5bbfb2277c9237216a8963945710e4771d368d5de87aef14b1d", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
2,688
c
#ifndef UMKOIN_CHAINPARAMSSEEDS_H #define UMKOIN_CHAINPARAMSSEEDS_H /** * List of fixed seed nodes for the umkoin network * AUTOGENERATED by contrib/seeds/generate-seeds.py * * Each line contains a BIP155 serialized (networkID, addr, port) tuple. */ static const uint8_t chainparams_seed_main[] = { 0x01,0x04,0x...
32.82
17
(translation_unit) "#ifndef UMKOIN_CHAINPARAMSSEEDS_H\n#define UMKOIN_CHAINPARAMSSEEDS_H\n/**\n * List of fixed seed nodes for the umkoin network\n * AUTOGENERATED by contrib/seeds/generate-seeds.py\n *\n * Each line contains a BIP155 serialized (networkID, addr, port) tuple.\n */\nstatic const uint8_t chainparams_seed...
106
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 32.82, "nodes": 53, "errors": 0, "source_hash": "92abbc31722e9f42f02c9bbc4351cc198abb96d36b3360ae203d3589371e241f", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,689
c
//============================================================================= /** * @file Loader.h * * $Id: Loader.h 93650 2011-03-28 08:44:53Z johnnyw $ * * @author <NAME> */ //============================================================================= #ifndef TAO_OBJECT_LOADER_LOADER_H #define TAO_O...
25.45
33
(translation_unit) "//=============================================================================\n/**\n * @file Loader.h\n *\n * $Id: Loader.h 93650 2011-03-28 08:44:53Z johnnyw $\n *\n * @author <NAME>\n */\n//=============================================================================\n\n\n#ifndef TAO_OBJECT...
97
3
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 25.45, "nodes": 51, "errors": 0, "source_hash": "0a234af1f3cb1a48065784cb90835c48e5564ab6dd1c98e10fce15d440dfd962", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,690
c
/*************************************************************************************** * Original Author: <NAME> * Created: 2019-01-13 * Copyright: <NAME> (https://github.com/GabrieleGiuseppini) ***************************************************************************************/ #pra...
34.27
64
(translation_unit) "/***************************************************************************************\n* Original Author: <NAME>\n* Created: 2019-01-13\n* Copyright: <NAME> (https://github.com/GabrieleGiuseppini)\n*********************************************************************...
371
16
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 34.27, "nodes": 226, "errors": 0, "source_hash": "d47217ec959f58520a6cccc5a59c089ef7f965e0e5f378344a8c9be4278d4266", "categorized_nodes": 152}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
2,691
c
#include "../../../test_common.h" #include <math.h> void runSuccess() { floorf(1.0f); floorf(0.0f); floorf(43.56f); floorf(-2.5f); floorf(anyfloat()); } void runFailure() { } int f; void testValues() { f = 2; float result; floorf(anyfloat()); //@ assert f == 2; ...
14.77
22
(translation_unit) "#include "../../../test_common.h"\n#include <math.h>\n\nvoid runSuccess() {\n floorf(1.0f);\n floorf(0.0f);\n floorf(43.56f);\n floorf(-2.5f);\n floorf(anyfloat());\n}\n\nvoid runFailure() {\n \n}\n\nint f;\nvoid testValues() {\n f = 2;\n float result;\n \n floorf(anyfl...
112
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 14.77, "nodes": 59, "errors": 0, "source_hash": "4bbf81985b8ca4f95e4bdd0af7e1b54ebb17a39ee66ac684136ba90c07a7000b", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
2,692
c
#include <stdio.h> /* * export a function that returns a pointer to a struct * containing the public functions pointers */ #define _MOD1_H_NAMESPACE_ #include "mod1.h" /* * export a function that returns a pointer to a struct * containing the public functions pointers */ #define _MOD2_H_NAMESPACE_ #include "mod...
27.09
69
(translation_unit) "#include <stdio.h>\n\n/*\n * export a function that returns a pointer to a struct\n * containing the public functions pointers\n */\n#define _MOD1_H_NAMESPACE_\n#include "mod1.h"\n\n/*\n * export a function that returns a pointer to a struct\n * containing the public functions pointers\n */\n#define...
407
0
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 27.09, "nodes": 259, "errors": 0, "source_hash": "795aba06173778a7c34a3dee420dfb8294cb8275d080d5930a5bb369a237c614", "categorized_nodes": 161}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,693
c
/* SPDX-License-Identifier: MIT */ /* * Author: <NAME> <<EMAIL>> * Date: 2021 */ #include <stdint.h> #include <gpio.h> #define GPIO_PRV #include <gpio_prv.h> #include <iomux.h> struct gpio_pin { struct gpio *gpio; bool init; uint32_t pin; enum gpio_direction dir; bool oldvalue; enum gpio_setting setting; boo...
23.56
275
(translation_unit) "/* SPDX-License-Identifier: MIT */\n/*\n * Author: <NAME> <<EMAIL>>\n * Date: 2021\n */\n#include <stdint.h>\n#include <gpio.h>\n#define GPIO_PRV\n#include <gpio_prv.h>\n#include <iomux.h>\n\nstruct gpio_pin {\n struct gpio *gpio;\n bool init;\n uint32_t pin;\n enum gpio_direction dir;\n bool oldval...
1,139
1
{"language": "c", "success": true, "metadata": {"lines": 275, "avg_line_length": 23.56, "nodes": 642, "errors": 0, "source_hash": "6304e4f245e5fd72f2b6e0d04351e9e1a17f6a260b29517fe40ab9f9956a01b6", "categorized_nodes": 489}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,694
c
/* * strcmp : compare 2 lists as if they were strings * * (c) 1999-2011 <NAME>, forum::für::umläute, institute of electronic music and acoustics (iem) * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Sof...
26.48
166
(translation_unit) "/*\n * strcmp : compare 2 lists as if they were strings\n *\n * (c) 1999-2011 <NAME>, forum::für::umläute, institute of electronic music and acoustics (iem)\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\n * a...
1,438
0
{"language": "c", "success": true, "metadata": {"lines": 166, "avg_line_length": 26.48, "nodes": 876, "errors": 0, "source_hash": "85996c41b6a8912afd036c6268130ee9fb06be5628444aab48f9695423aeb8f8", "categorized_nodes": 619}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "ncl...
2,695
c
/* * This header is generated by classdump-dyld 1.0 * on Tuesday, November 5, 2019 at 2:44:49 AM Mountain Standard Time * Operating System: Version 13.0 (Build 17J586) * Image Source: /System/Library/PrivateFrameworks/ShareSheet.framework/ShareSheet * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NA...
24.46
37
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Tuesday, November 5, 2019 at 2:44:49 AM Mountain Standard Time\n* Operating System: Version 13.0 (Build 17J586)\n* Image Source: /System/Library/PrivateFrameworks/ShareSheet.framework/ShareSheet\n* classdump-dyld is licensed under GPLv3, Cop...
153
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 24.46, "nodes": 104, "errors": 0, "source_hash": "52e38a598a66b724e70760fd577e1aaf790c3b74f8127bba476134269d0e9e43", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "ypede...
2,696
c
/** * MIT License * * Copyright (c) 2019 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, ...
28.91
69
(translation_unit) "/**\n * MIT License\n *\n * Copyright (c) 2019 <NAME>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the right...
286
13
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 28.91, "nodes": 146, "errors": 0, "source_hash": "4299d45d069c536529403d27e07c76da77c1dcc452045502230411a1e252af7a", "categorized_nodes": 96}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
2,697
c
struct biblioteca { // Crea la estructura del registro int code; char titulo[20]; char autor[20]; }libro;
20.8
5
(translation_unit) "struct biblioteca { // Crea la estructura del registro\n int code;\n char titulo[20];\n char autor[20];\n}libro;\n" (declaration) "struct biblioteca { // Crea la estructura del registro\n int code;\n char titulo[20];\n char autor[20];\n}libro;" (struct_specifier) "struct biblioteca { // Crea l...
31
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 20.8, "nodes": 18, "errors": 0, "source_hash": "8a0b8137d67897fa624bd38d1bb145731b70a5c33739b9b32a9bcefbce3418d0", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "struct bibli...
2,698
c
/* -------------------------------------------------------------------------- * * File Ch6_StreamingAudio.h * Ported By <NAME> * Contact <EMAIL> * * Created By <NAME> * Contact <EMAIL> * * ---------------------------------------------------------...
40.61
56
(translation_unit) "/* --------------------------------------------------------------------------\n *\n * File Ch6_StreamingAudio.h\n * Ported By <NAME>\n * Contact <EMAIL> \n *\n * Created By <NAME>\n * Contact <EMAIL>\n * \n * ----------------------------...
190
3
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 40.61, "nodes": 131, "errors": 0, "source_hash": "7cc8899bb70834d93c4adcf97fb8f3c5507f770bdd971a3d6336da662f913534", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
2,699