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
#include "stdio.h" void swap (int *a, int *b) { int t = *a; *a = *b; *b = t; } int main () { int a, b; scanf("%d%d", &a, &b); swap(&a, &b); printf("%d %d", a, b); return 0; }
13.08
13
(translation_unit) "#include "stdio.h"\n\nvoid swap (int *a, int *b) {\n int t = *a;\n *a = *b;\n *b = t;\n}\n\nint main () {\n int a, b;\n scanf("%d%d", &a, &b);\n swap(&a, &b);\n printf("%d %d", a, b);\n return 0;\n}\n" (preproc_include) "#include "stdio.h"\n" (#include) "#include" (string_literal) ""stdio....
123
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 13.08, "nodes": 72, "errors": 0, "source_hash": "bd29252c60fe454404d4beeac14dbc416f75450a4f538ec2a82150b541745a5b", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
9,400
c
//////////////////////////////////////////////////////////////////////////// // Created : 19.02.2010 // Author : <NAME> // Copyright (C) GSC Game World - 2010 //////////////////////////////////////////////////////////////////////////// #ifndef MULTIPLICATION_LEXEME_H_INCLUDED #define MULTIPLICATION_LEXEME_H_I...
29.9
41
(translation_unit) "//////////////////////////////////////////////////////////////////////////// \n// Created : 19.02.2010 \n// Author : <NAME> \n// Copyright (C) GSC Game World - 2010 \n//////////////////////////////////////////////////////////////////////////// \n \n#ifndef MULTIPLICATION_LEXEME_H_INCLUDED \n#defin...
186
10
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 29.9, "nodes": 110, "errors": 0, "source_hash": "9c72cc1ec452326b0a8ab3fefaaa925b8000ba9c3711c28fa01cb2ab38af603d", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,401
c
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
27.01
237
(translation_unit) "/*\n * CDDL HEADER START\n *\n * The contents of this file are subject to the terms of the\n * Common Development and Distribution License (the "License").\n * You may not use this file except in compliance with the License.\n *\n * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE...
1,888
0
{"language": "c", "success": true, "metadata": {"lines": 237, "avg_line_length": 27.01, "nodes": 1184, "errors": 0, "source_hash": "8b76eca723233de04cbdabc679d6b10b314393bcfa4ee34d51203efea05a86df", "categorized_nodes": 856}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
9,402
c
#include <stdio.h> /* Write a login program in C that ask the user to enter his ID and his password, if the ID is correct the system will ask the user to enter his password up to 3 times, if he enters the password right the systems welcomes him, if the three times are incorrect, the system print No more tries...
22.78
91
(translation_unit) "#include <stdio.h> \n \n/* Write a login program in C that ask the \nuser to enter his ID and his password, if \nthe ID is correct the system will ask the \nuser to enter his password up to 3 times, \nif he enters the password right the \nsystems welcomes him, if the three times \nare incorrect, the...
486
6
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 22.78, "nodes": 256, "errors": 0, "source_hash": "946535ee4f163bd2c576aa45b0cd461b5441f0fb2700ef95bcf03abab7bab48b", "categorized_nodes": 172}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,403
c
#include <stdint.h> #include "boot/atags.h" #include "lib/printk.h" #include "boot/hardware_detect.h" #include "lib/string.h" #include "lib/memset.h" /* Original references */ /* http://www.raspberrypi.org/forums/viewtopic.php?t=10889&p=123721 */ /* http://www.simtec.co.uk/products/SWLINUX/files/booting_article.html ...
22.1
204
(translation_unit) "#include <stdint.h>\n\n#include "boot/atags.h"\n#include "lib/printk.h"\n#include "boot/hardware_detect.h"\n#include "lib/string.h"\n#include "lib/memset.h"\n\n/* Original references */\n/* http://www.raspberrypi.org/forums/viewtopic.php?t=10889&p=123721 */\n/* http://www.simtec.co.uk/products/SWLIN...
1,379
0
{"language": "c", "success": true, "metadata": {"lines": 204, "avg_line_length": 22.1, "nodes": 799, "errors": 0, "source_hash": "f471a97464e99babef01e807fb68dae12c555115cafc99a53a80007217a7181d", "categorized_nodes": 554}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,404
c
#pragma once #include <time.h> // our product typedef struct { char* name; char* type; double quantity; struct tm expirationDate; } Product; /* "Constructor", "destructor", "Copy constructor" */ Product* createProduct(char* name, char* type, double quantity, struct tm expirationDate); void destroyProduct(Product*...
26.82
22
(translation_unit) "#pragma once\n#include <time.h>\n// our product\ntypedef struct {\n char* name;\n char* type;\n double quantity;\n struct tm expirationDate;\n} Product;\n\n/*\n "Constructor", "destructor", "Copy constructor"\n*/\nProduct* createProduct(char* name, char* type, double quantity, struct tm expirationDa...
190
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 26.82, "nodes": 147, "errors": 0, "source_hash": "cef9dbacfa90da4a44d25e2f9aefe5303f3b554233b508190e79d0d74afd2888", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
9,405
c
// 详细请参考《RFC2617》协议标准 #ifndef __HTTPAUTH_H__ #define __HTTPAUTH_H__ #ifdef __cplusplus extern "C" { #endif #define HASHLEN 16 #define HASHHEXLEN 32 typedef char hash_t[HASHLEN]; typedef char hashhex_t[HASHHEXLEN+1]; /* calculate H(A1) as per spec */ void digest_calc_ha1( const char*alg, /* 算法名称 md5||md5-...
31.71
38
(translation_unit) "// 详细请参考《RFC2617》协议标准\n\n#ifndef __HTTPAUTH_H__\n#define __HTTPAUTH_H__\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n\n#define HASHLEN 16\n#define HASHHEXLEN 32\ntypedef char hash_t[HASHLEN];\ntypedef char hashhex_t[HASHHEXLEN+1];\n\n/* calculate H(A1) as per spec */\nvoid digest_calc_ha1(\n cons...
190
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 31.71, "nodes": 127, "errors": 0, "source_hash": "d4738696191be711fc6f53c1a40cda2c90cb3e27597e03a4404ea90bee8811a3", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "\n#defi...
9,406
c
/** * For any simple test */ #include <stdio.h> #include <string.h> static void TestGetc(void) { FILE *fp = fopen("./temptest.c", "r"); char ch; while ((ch = getc(fp)) != EOF) { printf("%c", ch); } printf("\n"); fclose(fp); } static void ungetstr(const char *str, FILE *stream) { for (int i = strlen(str) - ...
18.18
38
(translation_unit) "/**\n * For any simple test\n */\n#include <stdio.h>\n#include <string.h>\n\nstatic void TestGetc(void) {\n FILE *fp = fopen("./temptest.c", "r");\n char ch;\n while ((ch = getc(fp)) != EOF) {\n printf("%c", ch);\n }\n printf("\n");\n fclose(fp);\n}\n\nstatic void ungetstr(const char *str, FILE *st...
354
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 18.18, "nodes": 192, "errors": 0, "source_hash": "563b861cad5f1f9bb79297ee9e351f8eab42dfed46e91aaf13cc0d034c0a4842", "categorized_nodes": 124}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,407
c
// ---------------------------------------------------------------------------- // progress_layer - Displays a configurable progress bar // Copyright (c) 2013 <NAME> (<EMAIL>) // Licensed under the MIT license: http://opensource.org/licenses/MIT // -----------------------------------------------------------------------...
41.05
42
(translation_unit) "// ----------------------------------------------------------------------------\n// progress_layer - Displays a configurable progress bar\n// Copyright (c) 2013 <NAME> (<EMAIL>)\n// Licensed under the MIT license: http://opensource.org/licenses/MIT\n// -----------------------------------------------...
348
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 41.05, "nodes": 221, "errors": 0, "source_hash": "e493e972b2f6d8f589b7cb37045e8dbfc06b1a65f7e69e66c85c8e7b2c983358", "categorized_nodes": 152}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,408
c
/* * Name: <NAME> * Seneca Student ID: 137105177 * Seneca email: <EMAIL> * Date of completion: 12/11/2018 * * I confirm that I am the only author of this file * and the content was created entirely by me. */ #ifndef UTILITIES_H #define UTILITIES_H #include <cstddef> #include <string> class Utilities { public...
24.5
26
(translation_unit) "/*\n * Name: <NAME>\n * Seneca Student ID: 137105177\n * Seneca email: <EMAIL>\n * Date of completion: 12/11/2018\n *\n * I confirm that I am the only author of this file\n * and the content was created entirely by me.\n */\n\n#ifndef UTILITIES_H\n#define UTILITIES_H\n\n#include <cstddef>\n#include ...
136
10
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 24.5, "nodes": 79, "errors": 0, "source_hash": "045ba4b1ce7882f5c1761d298be7c357fcdd5e4e1173b13a2e1b2fe198faa3f2", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef U...
9,409
c
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. #pragma once class IMessageContext; /** * Interface for message interceptors. */ class IMessageInterceptor { public: /** * Intercepts a message before it is being passed to the message router. * * @param Context The context of the message to in...
33.44
27
(translation_unit) "// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.\n\n#pragma once\n\n\nclass IMessageContext;\n\n\n/**\n * Interface for message interceptors.\n */\nclass IMessageInterceptor\n{\npublic:\n\n /**\n * Intercepts a message before it is being passed to the message router.\n *\n * @param Co...
100
9
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 33.44, "nodes": 59, "errors": 0, "source_hash": "1324750a0f034e9c3717cf2f0cf5b56773a5d64350067bec941a36541df24ecf", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
9,410
c
// // UIImage+Fix.h // Category // https://github.com/nicklockwood/FXImageView // Created by Silence on 02/01/2017. // Copyright © 2017 silence. All rights reserved. // #import <UIKit/UIKit.h> @interface UIImage (Fix) - (UIImage *)imageCroppedToRect:(CGRect)rect; - (UIImage *)imageScaledToSize:(CGSize)size; - (...
41.67
24
(translation_unit) "//\n// UIImage+Fix.h\n// Category\n// https://github.com/nicklockwood/FXImageView\n// Created by Silence on 02/01/2017.\n// Copyright © 2017 silence. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIImage (Fix)\n\n- (UIImage *)imageCroppedToRect:(CGRect)rect;\n- (UIImage *)im...
293
21
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 41.67, "nodes": 155, "errors": 0, "source_hash": "7d0be10ac3f38a55fd747b6db2c516c548aa688996f570b30cfdbb0012c4cedc", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import ...
9,411
c
//===-- serialbox/core/FieldID.h ----------------------------------------------------*- C++ -*-===// // // S E R I A L B O X // // This file is distributed under terms of BSD license. // See LICENSE.txt for more information // //===----------------------------------------------...
26.69
45
(translation_unit) "//===-- serialbox/core/FieldID.h ----------------------------------------------------*- C++ -*-===// \n// \n// S E R I A L B O X \n// \n// This file is distributed under terms of BSD license. \n// See LICENSE.txt for more information \n// \n//===-------------------...
132
8
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 26.69, "nodes": 66, "errors": 0, "source_hash": "c492c83fd3b5012051c19cb25e5bc468ea018c8edfa49797d23a17a829bd59ff", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,412
c
/** * @file drive_init.h * * driver_init.h * * Created on: Mar 27, 2019 * Author: <NAME> s.r.o. * */ #ifndef DRIVER_INIT_H_ #define DRIVER_INIT_H_ #include <stdbool.h> #include <stdio.h> #include "main.h" #include "modbus_dependencies.h" /** * \defgroup Firmware Version defines */ /*@{*/ /** major ...
18.55
123
(translation_unit) "/**\n * @file drive_init.h\n *\n * driver_init.h\n *\n * Created on: Mar 27, 2019\n * Author: <NAME> s.r.o.\n *\n */\n\n#ifndef DRIVER_INIT_H_\n#define DRIVER_INIT_H_\n\n#include <stdbool.h>\n#include <stdio.h>\n\n#include "main.h"\n#include "modbus_dependencies.h"\n\n/**\n * \defgroup Firmwar...
188
0
{"language": "c", "success": true, "metadata": {"lines": 123, "avg_line_length": 18.55, "nodes": 119, "errors": 0, "source_hash": "07674cdf73b390f7332d14571ec635e78bdb9b3a525a83c8e2197d353e32fd0c", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,413
c
#ifndef GSGEAR_H__ #define GSGEAR_H__ /** \description GsGear is pretty much what ensures a correct connection to running Application. Based on the game structure it represents an functional object, that is run at LPS rate and specified renders at FPS. It can also be star...
36.47
19
(translation_unit) "#ifndef GSGEAR_H__\n#define GSGEAR_H__\n\n/**\n \description GsGear is pretty much what ensures a correct connection\n to running Application. Based on the game structure\n it represents an functional object, that is run at LPS rate\n and specified renders ...
69
2
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 36.47, "nodes": 42, "errors": 0, "source_hash": "b38e9016837d942722777608575baffbeaebfab94ebd9e3510abb065d49e8797", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,414
c
// Copyright (c) 2003-2007 INRIA Sophia-Antipolis (France). // All rights reserved. // // This file is part of CGAL (www.cgal.org). // // $URL: https://github.com/CGAL/cgal/blob/v5.1/Surface_mesher/include/CGAL/IO/Complex_2_in_triangulation_3_to_medit.h $ // $Id: Complex_2_in_triangulation_3_to_medit.h 254d60f 2019-10...
32.66
67
(translation_unit) "// Copyright (c) 2003-2007 INRIA Sophia-Antipolis (France).\n// All rights reserved.\n//\n// This file is part of CGAL (www.cgal.org).\n//\n// $URL: https://github.com/CGAL/cgal/blob/v5.1/Surface_mesher/include/CGAL/IO/Complex_2_in_triangulation_3_to_medit.h $\n// $Id: Complex_2_in_triangulation_3_...
542
11
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 32.66, "nodes": 327, "errors": 0, "source_hash": "984f6869991a5b78db94ffd89ca5986a4738b89fc04a3b3723bd2dabaa6e6688", "categorized_nodes": 226}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef...
9,415
c
#include "glthread.h" typedef struct emp_{ char name[30]; unsigned int salary; char designation[30]; unsigned int emp_id; glthread_node_t glnode; }emp_t;
18.88
8
(translation_unit) "#include "glthread.h"\n\ntypedef struct emp_{\n\n char name[30];\n unsigned int salary;\n char designation[30];\n unsigned int emp_id;\n glthread_node_t glnode;\n\n}emp_t;\n" (preproc_include) "#include "glthread.h"\n" (#include) "#include" (string_literal) ""glthread.h"" (") """ ...
49
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 18.88, "nodes": 32, "errors": 0, "source_hash": "603bd0865b4a3a328dec33e954d2ffa2ee57f86b890d8a483d4ffe05e348be28", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
9,416
c
/* * Phoenix-RTOS * * kill - send signal_kill to process * * Copyright 2017, 2018, 2020, 2021 Phoenix Systems * Author: <NAME>, <NAME>, <NAME>, <NAME>, <NAME> * * This file is part of Phoenix-RTOS. * * %LICENSE% */ #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/...
19.67
45
(translation_unit) "/*\n * Phoenix-RTOS\n *\n * kill - send signal_kill to process\n *\n * Copyright 2017, 2018, 2020, 2021 Phoenix Systems\n * Author: <NAME>, <NAME>, <NAME>, <NAME>, <NAME>\n *\n * This file is part of Phoenix-RTOS.\n *\n * %LICENSE%\n */\n\n#include <errno.h>\n#include <stdio.h>\n#include <stdlib.h>\...
258
0
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 19.67, "nodes": 150, "errors": 0, "source_hash": "ce00ee46473b9e3e6db8f758aeb961541bc5ea283d8b0c3c829649773cbfa17b", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,417
c
// // CustomBannerViewModel.h // CrossPromoteAds // // Created by star.liao on 2017/5/30. // Copyright © 2017年 com.idreamsky. All rights reserved. // #import "CustomAdBaseLogicModule.h" #import "CustomAdsAdxDataManagerModule.h" #import <CustomAdsModule/CustomAdsAdxDataManagerModule.h> #import "CustomAdInteractiveL...
42.1
51
(translation_unit) "//\n// CustomBannerViewModel.h\n// CrossPromoteAds\n//\n// Created by star.liao on 2017/5/30.\n// Copyright © 2017年 com.idreamsky. All rights reserved.\n//\n\n#import "CustomAdBaseLogicModule.h"\n#import "CustomAdsAdxDataManagerModule.h"\n#import <CustomAdsModule/CustomAdsAdxDataManagerModule.h>...
466
73
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 42.1, "nodes": 318, "errors": 0, "source_hash": "c5241ba95b7992b8103616964823a437ab8fcfe167f70edf176410d33c0030a6", "categorized_nodes": 155}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"C...
9,418
c
#import <UIKit/UIKit.h> #import <LegacyComponents/TGModernGalleryItem.h> @protocol TGModernGalleryDefaultHeaderView <NSObject> @required - (void)setItem:(id<TGModernGalleryItem>)item; @end
30.5
6
(translation_unit) "#import <UIKit/UIKit.h>\n\n#import <LegacyComponents/TGModernGalleryItem.h>\n\n@protocol TGModernGalleryDefaultHeaderView <NSObject>\n\n@required\n\n- (void)setItem:(id<TGModernGalleryItem>)item;\n\n@end\n" (preproc_call) "#import <UIKit/UIKit.h>\n" (preproc_directive) "#import" (preproc_a...
42
6
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 30.5, "nodes": 30, "errors": 0, "source_hash": "9e372933fe74884836439e176c5f78f61919baa06dc26bd2b8b965edb39df8d9", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UI...
9,419
c
/** * Copyright (c) 2017-present, Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
30.68
41
(translation_unit) "/**\n * Copyright (c) 2017-present, Facebook, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * U...
187
8
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 30.68, "nodes": 103, "errors": 0, "source_hash": "0f0d1a5cd845714a7d8715ecf070136f9a528560e3051ff479cc1206d213f5a1", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
9,420
c
#include <rc.h> #include <stdio.h> #include <stdlib.h> #include <string.h> void adjust_url_urlelist(void) { char *nv, *nvp, *b, *chk, *chkp = NULL; char *url; char replacebox[2048], rerule[256]; int cnt = 0; int RESAVE = OFF; nv = nvp = strdup(nvram_safe_get("url_rulelist")); /* Change setting format ...
25.02
105
(translation_unit) "#include <rc.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\nvoid adjust_url_urlelist(void)\n{\n char *nv, *nvp, *b, *chk, *chkp = NULL;\n char *url;\n char replacebox[2048], rerule[256];\n int cnt = 0;\n int RESAVE = OFF;\n \n nv = nvp = strdup(nvram_safe_get("url_rulelist"...
961
0
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 25.02, "nodes": 557, "errors": 0, "source_hash": "8d5e9c88387fc241d01bb405b21a4e563224562ae2b7a9ae5a8f24d040a97037", "categorized_nodes": 372}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,421
c
#ifndef FAMILYTREE_H #define FAMILYTREE_H #include <lube.h> #include <boost/graph/adjacency_list.hpp> class FamilyTree { typedef boost::adjacency_list< boost::vecS, boost::vecS, boost::bidirectionalS, var, var > graph; public: typedef boost::graph_traits<gr...
25.69
26
(translation_unit) "#ifndef FAMILYTREE_H\n#define FAMILYTREE_H\n\n#include <lube.h>\n#include <boost/graph/adjacency_list.hpp>\n\nclass FamilyTree\n{\n typedef boost::adjacency_list<\n boost::vecS,\n boost::vecS,\n boost::bidirectionalS,\n var,\n var\n >\n graph;\n\npubli...
175
7
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 25.69, "nodes": 105, "errors": 0, "source_hash": "04a0f65cdd7615b7f9be73ac3929968209388999145701f0914f3a37ba0e1272", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,422
c
//DELETE NODE AT THE N-TH POSITION (head global variable) //You have to fix the list and deallocate the memory of the deleted node #include "common.h" struct Node { int data; struct Node* next; }; struct Node* head; //define 3 functions //void Insert(int data); //insert integer at the end of the list //void ...
23.88
72
(translation_unit) "//DELETE NODE AT THE N-TH POSITION (head global variable)\n//You have to fix the list and deallocate the memory of the deleted node\n#include "common.h"\n\nstruct Node {\n int data;\n struct Node* next;\n};\n\nstruct Node* head;\n\n//define 3 functions\n//void Insert(int data); //insert intege...
500
0
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 23.88, "nodes": 292, "errors": 0, "source_hash": "275c9ce47fe6c7f6e5563712f60a9ca0cc20e5c15f8e3142bacbc29ef20cfcf5", "categorized_nodes": 204}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,423
c
#pragma once #include "ofMain.h" #include "imgui.h" class BaseTheme { public: BaseTheme(); virtual ~BaseTheme(){ }; virtual void setup(); void themeColorsWindow(bool isOpen); void updateColors(); ofColor col_main_text; ofColor col_main_head; ofColor col_main_area; ...
17.72
25
(translation_unit) "#pragma once\n\n#include "ofMain.h"\n#include "imgui.h"\n\n\nclass BaseTheme\n{\npublic:\n BaseTheme();\n virtual ~BaseTheme(){\n \n };\n \n virtual void setup();\n void themeColorsWindow(bool isOpen);\n\n void updateColors();\n \n ofColor col_main_text;\n ofColor co...
127
3
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 17.72, "nodes": 78, "errors": 0, "source_hash": "720504c58fabf88e4178a648737fb848a2e8c7cbb8de795748532d272defb538", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
9,424
c
#ifndef DEF_LIBCRC_CHECKSUM_H #define DEF_LIBCRC_CHECKSUM_H #include <stdint.h> /* * #define CRC_POLY_xxxx * * The constants of the form CRC_POLY_xxxx define the polynomials for some well * known CRC calculations. */ #define CRC_POLY_16 0xA001 /* * #define CRC_START_xxxx * * The constants of the form CRC_ST...
30.13
31
(translation_unit) "#ifndef DEF_LIBCRC_CHECKSUM_H\n#define DEF_LIBCRC_CHECKSUM_H\n\n#include <stdint.h>\n\n/*\n * #define CRC_POLY_xxxx\n *\n * The constants of the form CRC_POLY_xxxx define the polynomials for some well\n * known CRC calculations.\n */\n\n#define CRC_POLY_16 0xA001\n\n/*\n * #define CRC_START_xxxx\n *...
138
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 30.13, "nodes": 100, "errors": 0, "source_hash": "ae9e375af42135600d366704386bf4625df8a0fca88b7ecd8434950957084c4c", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,425
c
/* ---------------------------------------------------------------------- * Project: CMSIS DSP Library * Title: arm_mat_ldl_f64.c * Description: Floating-point LDL decomposition * * $Date: 23 April 2021 * $Revision: V1.9.0 * * Target Processor: Cortex-M and Cortex-A cores * -------------...
27
183
(translation_unit) "/* ----------------------------------------------------------------------\n * Project: CMSIS DSP Library\n * Title: arm_mat_ldl_f64.c\n * Description: Floating-point LDL decomposition\n *\n * $Date: 23 April 2021\n * $Revision: V1.9.0\n *\n * Target Processor: Cortex-M and Cor...
870
1
{"language": "c", "success": true, "metadata": {"lines": 183, "avg_line_length": 27.0, "nodes": 564, "errors": 0, "source_hash": "efde393cf26e44d7d005f6f9b4b28a4ab372fd324cb34ed1322fb83a120081a2", "categorized_nodes": 424}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,426
c
// // SODA iOS SDK - Socrata, Inc // // Copyright (C) 2013 Socrata, Inc // All rights reserved. // // Developed for Socrata, Inc by: // 47 Degrees, LLC // http://47deg.com // <EMAIL> // #import <Foundation/Foundation.h> @class SODAResponse; typedef void (^ResultBlock)(SODAResponse *); /** * Async callback...
20.69
29
(translation_unit) "//\n// SODA iOS SDK - Socrata, Inc\n//\n// Copyright (C) 2013 Socrata, Inc\n// All rights reserved.\n//\n// Developed for Socrata, Inc by:\n// 47 Degrees, LLC\n// http://47deg.com\n// <EMAIL>\n//\n\n\n#import <Foundation/Foundation.h>\n\n@class SODAResponse;\n\n\ntypedef void (^ResultBlock)(S...
114
12
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 20.69, "nodes": 67, "errors": 0, "source_hash": "e6304800abc8f65d866bc07c75ed8e15732425468b6397e91c82ae568a18283c", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
9,427
c
/*************************************************************************** * Copyright (C) 2004 by <NAME> * * <EMAIL> * * * * This program is free software; you can redistr...
33.78
65
(translation_unit) "/***************************************************************************\n * Copyright (C) 2004 by <NAME> *\n * <EMAIL> *\n * *\n * This program is free s...
215
9
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 33.78, "nodes": 115, "errors": 0, "source_hash": "d09cdf7bf44e19c7727fdb20feab8d1875bf07af87b90de9f94f85eb884ee8ed", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,428
c
#include "../include/siphon/bloom.h" #include "../include/siphon/alloc.h" #include "mu.h" static void test_basic (void) { SpBloom *b = sp_bloom_new (3, 0.01); sp_bloom_put (b, "test", 4); sp_bloom_put (b, "value", 5); sp_bloom_put (b, "stuff", 5); mu_assert (sp_bloom_maybe (b, "test", 4)) mu_assert (sp_bloom_ma...
23.49
41
(translation_unit) "#include "../include/siphon/bloom.h"\n#include "../include/siphon/alloc.h"\n#include "mu.h"\n\nstatic void\ntest_basic (void)\n{\n SpBloom *b = sp_bloom_new (3, 0.01);\n sp_bloom_put (b, "test", 4);\n sp_bloom_put (b, "value", 5);\n sp_bloom_put (b, "stuff", 5);\n\n mu_assert (sp_bloom_maybe (b, "te...
431
3
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 23.49, "nodes": 223, "errors": 0, "source_hash": "05ba436dfc7a4e78bbea21b7699462e662bdf6b70267df08b04251a744bccb86", "categorized_nodes": 161}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,429
c
/*------------------------------------------------------------------------- * * pg_user_mapping_d.h * Macro definitions for pg_user_mapping * * Portions Copyright (c) 1996-2018, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * NOTES * **********...
31.23
26
(translation_unit) "/*-------------------------------------------------------------------------\n *\n * pg_user_mapping_d.h\n * Macro definitions for pg_user_mapping\n *\n * Portions Copyright (c) 1996-2018, PostgreSQL Global Development Group\n * Portions Copyright (c) 1994, Regents of the University of California\...
30
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 31.23, "nodes": 27, "errors": 0, "source_hash": "03051e7537610cdb5a154ce0c738d741f2d696f9200acee2b3cdadb8662e1063", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,430
c
#include <stddef.h> int memcmp(const void *ptr1, const void *ptr2, size_t size) { const unsigned char *a = (const unsigned char *) ptr1; const unsigned char *b = (const unsigned char *) ptr2; for(size_t i = 0; i < size; ++i) { if(a[i] < b[i]) return -1; else if(b[i] < a[i]) retu...
25.46
13
(translation_unit) "#include <stddef.h>\n\nint memcmp(const void *ptr1, const void *ptr2, size_t size)\n{\n const unsigned char *a = (const unsigned char *) ptr1;\n const unsigned char *b = (const unsigned char *) ptr2;\n\n for(size_t i = 0; i < size; ++i) {\n if(a[i] < b[i])\n return -1;\n else...
151
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 25.46, "nodes": 96, "errors": 0, "source_hash": "ba4cb9c8900a7cefb10babf057d7bf665ecd95c80fa73d035818f9a6ec5330e1", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
9,431
c
// // DCBCalculatorButtton.h // DCBCalculator // // Created by <NAME> on 10/28/13. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> typedef enum { DCBCalculatorButttonStyleNumber, DCBCalculatorButttonStyleOperator, DCBCalculatorButttonStyleOther } DCBCalculatorButttonStyle...
25.44
16
(translation_unit) "//\n// DCBCalculatorButtton.h\n// DCBCalculator\n//\n// Created by <NAME> on 10/28/13.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\ntypedef enum {\n DCBCalculatorButttonStyleNumber,\n DCBCalculatorButttonStyleOperator,\n DCBCalculatorButttonStyle...
49
6
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 25.44, "nodes": 31, "errors": 0, "source_hash": "3639367c60da454c9cc64e857315eb646cca4fb2e0339ebe07d6db410e275f3c", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
9,432
c
// // StdOutView.h // Auger // // Created by <NAME> on 10/02/11. // Copyright 2011 __MyCompanyName__. All rights reserved. // #import <Cocoa/Cocoa.h> @interface LogView : NSTextView { } -(void) writeToLog: (NSString *) logMsg WithTimeStamp: (BOOL) timeStamp AndUpdateDisplay: (BOOL) updateDisplay; @end
22.69
13
(translation_unit) "//\n// StdOutView.h\n// Auger\n//\n// Created by <NAME> on 10/02/11.\n// Copyright 2011 __MyCompanyName__. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n\n\n@interface LogView : NSTextView {\n\n}\n\n-(void) writeToLog: (NSString *) logMsg WithTimeStamp: (BOOL) timeStamp AndUpdateDisplay: ...
61
9
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 22.69, "nodes": 34, "errors": 0, "source_hash": "a0e6fc8b182be14fcbdce32014148f504d41933a5fe41029f31b791694932d55", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
9,433
c
/*! * Copyright (c) 2017-present, SeetaTech, Co.,Ltd. * * Licensed under the BSD 2-Clause License. * You should have received a copy of the BSD 2-Clause License * along with the software. If not, See, * * <https://opensource.org/licenses/BSD-2-Clause> * * ---------------------------------------------------...
29.58
31
(translation_unit) "/*!\n * Copyright (c) 2017-present, SeetaTech, Co.,Ltd.\n *\n * Licensed under the BSD 2-Clause License.\n * You should have received a copy of the BSD 2-Clause License\n * along with the software. If not, See,\n *\n * <https://opensource.org/licenses/BSD-2-Clause>\n *\n * ----------------------...
171
8
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 29.58, "nodes": 95, "errors": 0, "source_hash": "c464f6930ac3ac3605a2aa2b940f2353b6cf28fd17f609b8f6b0b35d49d875fe", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,434
c
#include <threads.h> #include <pthread.h> void call_once(once_flag *flag, void (*func)(void)) { pthread_once(flag, func); } /* STDC(201112) */
15
9
(translation_unit) "#include <threads.h>\n#include <pthread.h>\n\nvoid call_once(once_flag *flag, void (*func)(void))\n{\n pthread_once(flag, func);\n}\n\n/*\nSTDC(201112)\n*/\n" (preproc_include) "#include <threads.h>\n" (#include) "#include" (system_lib_string) "<threads.h>" (preproc_include) "#include <p...
48
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 15.0, "nodes": 31, "errors": 0, "source_hash": "e4dc496308cfdb1a5e8befb8425df43bf6ad7df26f74348db1d751fb2f7b1776", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
9,435
c
// // main.c // 53-maxSubArray // // Created by keso on 2017/9/8. // Copyright © 2017年 FlyElephant. All rights reserved. // #include <stdio.h> #include <stdlib.h> #include <stddef.h> #include <math.h> int maxSubArray(int* nums, int numsSize) { int max_so_far = *nums;// 最大值 int max_ending_here = *nums;// 当...
25.92
48
(translation_unit) "//\n// main.c\n// 53-maxSubArray\n//\n// Created by keso on 2017/9/8.\n// Copyright © 2017年 FlyElephant. All rights reserved.\n//\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <stddef.h>\n#include <math.h>\n\nint maxSubArray(int* nums, int numsSize) {\n int max_so_far = *nums;// 最大值\n ...
337
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 25.92, "nodes": 208, "errors": 0, "source_hash": "83744f9f7ddb15f8c409f418a9d2f505dc1b3a4976b3e74c1c71abc874571319", "categorized_nodes": 131}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "clud...
9,436
c
#ifndef BC_GFX_H #define BC_GFX_H #include "bc_common.h" typedef struct { uint8_t _width; uint8_t _height; uint8_t *_buffer; size_t _length; uint8_t _pages; int _cursor; } bc_gfx_t; void bc_gfx_init(bc_gfx_t *self, uint8_t width, uint8_t height, uint8_t *buffer); void bc_gfx_clean(bc_gfx_t *...
26.89
19
(translation_unit) "#ifndef BC_GFX_H\n#define BC_GFX_H\n\n#include "bc_common.h"\n\ntypedef struct\n{\n uint8_t _width;\n uint8_t _height;\n uint8_t *_buffer;\n size_t _length;\n uint8_t _pages;\n int _cursor;\n\n} bc_gfx_t;\n\nvoid bc_gfx_init(bc_gfx_t *self, uint8_t width, uint8_t height, uint8_t *b...
156
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 26.89, "nodes": 117, "errors": 0, "source_hash": "0a6feed11f7c39b8d99f9fce60fa4842b7cd646511d2b6d4bee7ab92b2266e8d", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,437
c
/* * Copyright 2022 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing ...
39.65
26
(translation_unit) "/*\n * Copyright 2022 The WebRTC project authors. All Rights Reserved.\n *\n * Use of this source code is governed by a BSD-style license\n * that can be found in the LICENSE file in the root of the source\n * tree. An additional intellectual property rights grant can be found\n * in the file P...
72
4
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 39.65, "nodes": 49, "errors": 0, "source_hash": "4f0b1b6380789936661cfac21d8513fe4ffe868c0b4dfbb1e1c2c354ebef0dd3", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,438
c
/* * $Id$ * * Copyright (C) 1997 University of Chicago. * See COPYRIGHT notice in top-level directory. */ #include "mpiimpl.h" #ifdef HAVE_WEAK_SYMBOLS #if defined(HAVE_PRAGMA_WEAK) #pragma weak MPI_Info_f2c = PMPI_Info_f2c #elif defined(HAVE_ATTRIBUTE_WEAK) MPI_Info MPI_Info_f2c(MPI_Fint info) __at...
27.61
49
(translation_unit) "/* \n * $Id$ \n *\n * Copyright (C) 1997 University of Chicago. \n * See COPYRIGHT notice in top-level directory.\n */\n\n#include "mpiimpl.h"\n\n#ifdef HAVE_WEAK_SYMBOLS\n\n#if defined(HAVE_PRAGMA_WEAK)\n#pragma weak MPI_Info_f2c = PMPI_Info_f2c\n#elif defined(HAVE_ATTRIBUTE_WEAK)\nMPI_Inf...
250
0
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 27.61, "nodes": 155, "errors": 0, "source_hash": "a83548573a3752938805980329102908e0faa753713bccc63fe31a3610563cf6", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,439
c
//============================================================================ // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // PURP...
33.25
201
(translation_unit) "//============================================================================\n// Copyright (c) Kitware, Inc.\n// All rights reserved.\n// See LICENSE.txt for details.\n//\n// This software is distributed WITHOUT ANY WARRANTY; without even\n// the implied warranty of MERCHANTABILITY or FITNESS...
1,516
103
{"language": "c", "success": true, "metadata": {"lines": 201, "avg_line_length": 33.25, "nodes": 872, "errors": 0, "source_hash": "df96aac1850dfabbec7ecfccc6b272c66147cb08a8e263f96eef7a8db915baf1", "categorized_nodes": 644}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef vtk_m...
9,440
c
/* VCLSTD.C - This file brings in the proper libs for C++ Builder (Standard edition) It is the only .obj that goes into making VCL.LIB. This .obj is pulled in by a reference in crtlvcl.cpp If the user is not linking with the VCL libraries, then the external sym...
33.44
18
(translation_unit) "/*\n VCLSTD.C - This file brings in the proper libs for C++ Builder (Standard\n edition) It is the only .obj that goes into making VCL.LIB.\n This .obj is pulled in by a reference in crtlvcl.cpp If the\n user is not linking with the VCL libraries, then the ex...
13
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 33.44, "nodes": 6, "errors": 0, "source_hash": "918969c5f028f5fefb32ff39fc2998eedcbc550ae64639d820e43ad72be0221d", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define __VC...
9,441
c
/* * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RRLP-Components" * found in "../rrlp-components.asn" * `asn1c -gen-PER` */ #ifndef _GANSSAddIonosphericModel_H_ #define _GANSSAddIonosphericModel_H_ #include <asn_application.h> /* Including external dependencies */ #include <BIT_...
25.41
32
(translation_unit) "/*\n * Generated by asn1c-0.9.28 (http://lionet.info/asn1c)\n * From ASN.1 module "RRLP-Components"\n * found in "../rrlp-components.asn"\n * `asn1c -gen-PER`\n */\n\n#ifndef _GANSSAddIonosphericModel_H_\n#define _GANSSAddIonosphericModel_H_\n\n\n#include <asn_application.h>\n\n/* Including extern...
79
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 25.41, "nodes": 55, "errors": 0, "source_hash": "b77774df6fb105ed0d9a7524c53754f8a20a089fecad73ed188296b875808409", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef\...
9,442
c
#pragma once #include "envoy/common/exception.h" #include "contrib/kafka/filters/network/source/external/serialization_composite.h" #include "contrib/kafka/filters/network/source/serialization.h" #include "contrib/kafka/filters/network/source/tagged_fields.h" namespace Envoy { namespace Extensions { namespace Networ...
37.47
147
(translation_unit) "#pragma once\n\n#include "envoy/common/exception.h"\n\n#include "contrib/kafka/filters/network/source/external/serialization_composite.h"\n#include "contrib/kafka/filters/network/source/serialization.h"\n#include "contrib/kafka/filters/network/source/tagged_fields.h"\n\nnamespace Envoy {\nnamespace ...
962
54
{"language": "c", "success": true, "metadata": {"lines": 147, "avg_line_length": 37.47, "nodes": 530, "errors": 0, "source_hash": "d1dddfa40747c78d8f35941af5e5d35192fd130ef1e6561c10eda2c68fc60af9", "categorized_nodes": 391}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
9,443
c
/* Name: main.c * Author: JoppyFurr * Description: My first play with Kindle code. * MIT License - "Yes, it is fine to use this under an MIT / BSD license" * Email of the 2020-12-25 * Update by <NAME> */ // https://www.mobileread.com/forums/showthread.php?t=178513 #include <stdio.h> #include <stdlib.h> #in...
30.19
80
(translation_unit) "/* Name: main.c\n * Author: JoppyFurr\n * Description: My first play with Kindle code.\n * MIT License - "Yes, it is fine to use this under an MIT / BSD license"\n * Email of the 2020-12-25\n * Update by <NAME> \n */\n\n// https://www.mobileread.com/forums/showthread.php?t=178513\n\n\n#include <s...
490
0
{"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 30.19, "nodes": 299, "errors": 0, "source_hash": "7d0578495583e22421b66dc2b0d6900468373592db4107abca9e44477d7a5bb1", "categorized_nodes": 196}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,444
c
#define LIBCO_IMPLEMENTATION #include "stdio.h" #include "libco.h" cothread_t main_cothread; void my_entry(void) { int i = 0; while (1) { printf("%d\n", i++); // Yield to main cothread co_switch(main_cothread); } } int main() { // Get reference to the main cthread ma...
22.56
27
(translation_unit) "#define LIBCO_IMPLEMENTATION\n\n#include "stdio.h"\n#include "libco.h"\n\ncothread_t main_cothread;\n\nvoid my_entry(void)\n{\n int i = 0;\n while (1)\n {\n printf("%d\n", i++);\n\n // Yield to main cothread\n co_switch(main_cothread);\n }\n}\n\nint main()\n{\n //...
152
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 22.56, "nodes": 85, "errors": 0, "source_hash": "e3739ba4c9f6e2c4d9116ec43874d7592987c0bff255cb92205071bcb6bad4e0", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define LI...
9,445
c
// Copyright (C) 2004 Id Software, Inc. // #ifndef __PHYSICS_PLAYER_H__ #define __PHYSICS_PLAYER_H__ /* =================================================================================== Player physics Simulates the motion of a player through the environment. Input from the player is used to allow a certain de...
36.74
185
(translation_unit) " Copyright (C) 2004 Id Software, Inc.\n//\n\n#ifndef __PHYSICS_PLAYER_H__\n#define __PHYSICS_PLAYER_H__\n\n/*\n===================================================================================\n\n Player physics\n\n Simulates the motion of a player through the environment. Input from the\n player ...
1,453
49
{"language": "c", "success": true, "metadata": {"lines": 185, "avg_line_length": 36.74, "nodes": 992, "errors": 0, "source_hash": "c660db88501c06f336de7f47f46d29560d6bb8a6f7e12ed380f3b3a28ae87630", "categorized_nodes": 624}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef...
9,446
c
#include "ops.h" #include "expr_comma.h" #include "../type_is.h" const char *str_expr_comma(void) { return "comma"; } static void fold_const_expr_comma(expr *e, consty *k) { consty klhs; const_fold(e->lhs, &klhs); const_fold(e->rhs, k); if(cc1_std >= STD_C99){ /* commas are allowed in ICEs in C99+ */ if(!...
23.47
107
(translation_unit) "#include "ops.h"\n#include "expr_comma.h"\n#include "../type_is.h"\n\nconst char *str_expr_comma(void)\n{\n return "comma";\n}\n\nstatic void fold_const_expr_comma(expr *e, consty *k)\n{\n consty klhs;\n\n const_fold(e->lhs, &klhs);\n const_fold(e->rhs, k);\n\n if(cc1_std >= STD_C99){\n /* commas a...
861
0
{"language": "c", "success": true, "metadata": {"lines": 107, "avg_line_length": 23.47, "nodes": 507, "errors": 0, "source_hash": "1db94415baed63a046f4714a5fbc92489d64a2315541b2103f5d63b31d5cccc7", "categorized_nodes": 389}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,447
c
#include<stdio.h> int main() { char x[6]; int i=0; gets(x); while(x[i]!='\0'){ i++; } printf("%d\n",i); puts(x); while(i>=0){ printf("%c",x[i-1]); i--; } return 0; }
12.53
17
(translation_unit) "#include<stdio.h>\nint main()\n{\n char x[6];\n int i=0;\n gets(x);\n while(x[i]!='\0'){\n i++;\n }\n printf("%d\n",i);\n puts(x);\n while(i>=0){\n printf("%c",x[i-1]);\n i--;\n }\n return 0;\n}\n" (preproc_include) "#include<stdio.h>\n" (#inc...
124
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 12.53, "nodes": 68, "errors": 0, "source_hash": "122ad2a89a7c4dea3921856661070efb5f5c4274fd14742b1b069a3a222474ca", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
9,448
c
/* $Id: signs.h 3337 2005-12-24 20:51:21Z tron $ */ #if 0 #ifndef SIGNS_H #define SIGNS_H #include "pool.h" typedef struct SignStruct { StringID str; ViewportSign sign; int32 x; int32 y; byte z; PlayerID owner; // placed by this player. Anyone can delete them though. // OWNER_NO...
25.18
51
(translation_unit) "/* $Id: signs.h 3337 2005-12-24 20:51:21Z tron $ */\n#if 0\n#ifndef SIGNS_H\n#define SIGNS_H\n\n#include "pool.h"\n\ntypedef struct SignStruct {\n StringID str;\n ViewportSign sign;\n int32 x;\n int32 y;\n byte z;\n PlayerID owner; // placed by this player. Anyone can delet...
260
2
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 25.18, "nodes": 170, "errors": 0, "source_hash": "6c3009ecd41a8ae6a6a0da6cea853c78247a4154113afb0244c80c86a8117195", "categorized_nodes": 124}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if 0\n#i...
9,449
c
// // MapViewController.h // RevealControllerStoryboardExample // // Created by <NAME> on 1/9/13. // Copyright (c) 2013 CoDeveloper. All rights reserved. // #import <UIKit/UIKit.h> @interface MapViewController : UIViewController @end
22.8
10
(translation_unit) "//\n// MapViewController.h\n// RevealControllerStoryboardExample\n//\n// Created by <NAME> on 1/9/13.\n// Copyright (c) 2013 CoDeveloper. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface MapViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// MapViewCon...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 22.8, "nodes": 9, "errors": 0, "source_hash": "67b40f4e6808508ca545d2ce273dc005ff9d64ae7bb01e4ca1fe4fc2044e5b7e", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UIK...
9,450
c
/* ** EPITECH PROJECT, 2020 ** bootstrap ** File description: ** toto */ #include <stdio.h> #include <unistd.h> #include <stdlib.h> void toto(void) { printf("i am in toto()\n"); } void tutu(void) { printf("i am in tutu()\n"); } int main(void) { toto(); tutu(); return 0; }
11.74
23
(translation_unit) "/*\n** EPITECH PROJECT, 2020\n** bootstrap\n** File description:\n** toto\n*/\n\n#include <stdio.h>\n#include <unistd.h>\n#include <stdlib.h>\n\nvoid toto(void)\n{\n printf("i am in toto()\n");\n}\n\nvoid tutu(void)\n{\n printf("i am in tutu()\n");\n}\n\nint main(void)\n{\n toto();\n tut...
89
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 11.74, "nodes": 48, "errors": 0, "source_hash": "037e69458f3f17698bc4c952c12bb701a36d2f4cc720014c8ea5f71727e0562c", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
9,451
c
#include <errno.h> #include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <signal.h> #include <string.h> #include <assert.h> #include <sys/wait.h> #include <sys/types.h> #include "proc-common.h" #include "request.h" /* Compile-time parameters. */ #define SCHED_TQ_SEC 2 /* time quantum */ #de...
25.12
175
(translation_unit) "#include <errno.h>\n#include <unistd.h>\n#include <stdlib.h>\n#include <stdio.h>\n#include <signal.h>\n#include <string.h>\n#include <assert.h>\n#include <sys/wait.h>\n#include <sys/types.h>\n#include "proc-common.h"\n#include "request.h"\n/* Compile-time parameters. */\n#define SCHED_TQ_SEC 2 ...
1,268
0
{"language": "c", "success": true, "metadata": {"lines": 175, "avg_line_length": 25.12, "nodes": 733, "errors": 0, "source_hash": "0aefb72910c40cba9ff2ff0fb96d17884b8339f78d0cd763b5a3ba5c5966423c", "categorized_nodes": 520}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,452
c
#pragma once #include "../stdafx.h" #include "../base/XmlUIElement.h" class ResString :public XmlUIElement { public: ResString(); wstring GetStringW(); protected: void InitAttrMap(); void InitAttrValuePatternMap(); void InitAttrValueParserMap(); private: };
19.79
14
(translation_unit) "#pragma once\n#include "../stdafx.h"\n#include "../base/XmlUIElement.h"\nclass ResString :public XmlUIElement\n{\npublic:\n ResString();\n wstring GetStringW();\nprotected:\n void InitAttrMap();\n void InitAttrValuePatternMap();\n void InitAttrValueParserMap();\n private:\...
78
1
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 19.79, "nodes": 39, "errors": 0, "source_hash": "1efbcd88482f43cd9eefd05a00184ed188fa5795c7de26fcb4af65a3bb4b7e63", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
9,453
c
/* Copyright (c) Microsoft Corporation 2014 Copyright <NAME> 2015 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_PREDEF_PLAT_WINDOWS_PHONE_H #define BOOST_PREDEF_PLAT_WINDOWS_PHONE_H #include <boost/pr...
35.66
38
(translation_unit) "/*\nCopyright (c) Microsoft Corporation 2014\nCopyright <NAME> 2015\nDistributed under the Boost Software License, Version 1.0.\n(See accompanying file LICENSE_1_0.txt or copy at\nhttp://www.boost.org/LICENSE_1_0.txt)\n*/\n\n#ifndef BOOST_PREDEF_PLAT_WINDOWS_PHONE_H\n#define BOOST_PREDEF_PLAT_WINDOW...
80
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 35.66, "nodes": 69, "errors": 0, "source_hash": "905de2114b183491f23a93cbb27cff5330e4a24e3d39a7ecf61a3a3dfff33312", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,454
c
#pragma once // This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild #include "kaitai/kaitaistruct.h" #include <stdint.h> #include <memory> #if KAITAI_STRUCT_VERSION < 9000L #error "Incompatible Kaitai Struct C++/STL API: version 0.9 or later is required" #endif /** * \s...
27.56
264
(translation_unit) "#pragma once\n\n// This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild\n\n#include "kaitai/kaitaistruct.h"\n#include <stdint.h>\n#include <memory>\n\n#if KAITAI_STRUCT_VERSION < 9000L\n#error "Incompatible Kaitai Struct C++/STL API: version 0.9 or later i...
1,997
63
{"language": "c", "success": true, "metadata": {"lines": 264, "avg_line_length": 27.56, "nodes": 1096, "errors": 0, "source_hash": "35c4d783dc7c6f9540546b95660ab1db10dce97f870050868a9eb57345bce261", "categorized_nodes": 658}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#prag...
9,455
c
#ifndef __CONFIG__H__ #define __CONFIG__H__ #include <stdint.h> #include <Arduino.h> // Make Serial streaming available to all #include <Streaming.h> // X Size of the LED matrix #define LEDMATRIX_X 8 // Y Size of the LED matrix #define LEDMATRIX_Y 8 // Set the rotation angle if needed - 0, 90, 180 or 270 #define DISP...
29.6
55
(translation_unit) "#ifndef __CONFIG__H__\n#define __CONFIG__H__\n\n#include <stdint.h>\n#include <Arduino.h>\n// Make Serial streaming available to all\n#include <Streaming.h>\n\n// X Size of the LED matrix\n#define LEDMATRIX_X 8\n// Y Size of the LED matrix\n#define LEDMATRIX_Y 8\n// Set the rotation angle if needed ...
130
0
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 29.6, "nodes": 102, "errors": 0, "source_hash": "f8dae768554c0d64f9a85152f60f18219b5e6d39eda36c951a246495f03afbca", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,456
c
#ifndef PINE_CORE_RAY_H #define PINE_CORE_RAY_H #include <core/vecmath.h> #include <pstd/tuple.h> namespace pine { struct Ray { static Ray SpawnRay(vec3 p0, vec3 p1) { Ray ray; ray.o = p0; ray.d = Normalize(p1 - p0, ray.tmax); return ray; }; Ray() = default; Ray(vec3...
33.96
57
(translation_unit) "#ifndef PINE_CORE_RAY_H\n#define PINE_CORE_RAY_H\n\n#include <core/vecmath.h>\n\n#include <pstd/tuple.h>\n\nnamespace pine {\n\nstruct Ray {\n static Ray SpawnRay(vec3 p0, vec3 p1) {\n Ray ray;\n ray.o = p0;\n ray.d = Normalize(p1 - p0, ray.tmax);\n return ray;\n };...
787
22
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 33.96, "nodes": 541, "errors": 0, "source_hash": "5fbcad51659af73bc517aadd11ac317592ac6fb64b23a9d7a26cff80b448ac09", "categorized_nodes": 406}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,457
c
#ifndef _TOYLIB_H #define _TOYLIB_H #define BAD -1 #define GOOD 1 int printStringUpper (char *); int printHexInteger (int); int readHexInteger (int *); int readFloat (float *); int printFloat (float); #endif
20.6
10
(translation_unit) "#ifndef _TOYLIB_H\n #define _TOYLIB_H\n #define BAD -1\n #define GOOD 1\n int printStringUpper (char *);\n int printHexInteger (int);\n int readHexInteger (int *);\n int readFloat (float *);\n int printFloat (float);\n#endif" (preproc_ifdef) "#ifndef _TOYLIB_H\n #define _TOYLIB_H\n #define BAD -1\...
72
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.6, "nodes": 56, "errors": 0, "source_hash": "d839bf4b14c8813ac4d9c9da1977ead68f1560d7c00a5dfe6152d61fa5aeca9c", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
9,458
c
// // MouoShareManager.h // mouo // // Created by tqh on 2016/12/29. // Copyright © 2016年 tqh. All rights reserved. // #import <Foundation/Foundation.h> #import "MouoShareUser.h" //h5分享类型 typedef NS_ENUM(NSInteger, MouoShareManagerH5Type) { MouoShareManagerH5TypeCircleInfo, //圈子信息 }; typedef void(^Share...
35.73
41
(translation_unit) "//\n// MouoShareManager.h\n// mouo\n//\n// Created by tqh on 2016/12/29.\n// Copyright © 2016年 tqh. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "MouoShareUser.h"\n\n//h5分享类型\ntypedef NS_ENUM(NSInteger, MouoShareManagerH5Type) {\n MouoShareManagerH5TypeCircleInfo, ...
377
32
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 35.73, "nodes": 234, "errors": 0, "source_hash": "0e9e89028da490389701ecb005e789ffec9fca645247ad0d6b5028e2dad153b9", "categorized_nodes": 122}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <F...
9,459
c
//struct Person{/ // char name[20]; // int age; // double d; //}; /* struct: a ptr 1 * 20 0 4 * 1 20 8 * d 24 names: name, age, d indices: 0, 20, 24 struct Person p; p.age = 25; p.d = 2.0; tmp = p + 20 //tmp is a pointer to type char convertTo int* from char* tmp1 tmp dref r1 tmp1 return tmp1 name = person type...
13.56
36
(translation_unit) "//struct Person{/\n// char name[20];\n// int age;\n// double d;\n//};\n\n/*\nstruct: a ptr\n1 * 20 0\n4 * 1 20\n8 * d 24\n\nnames: name, age, d\nindices: 0, 20, 24\n\nstruct Person p;\np.age = 25;\np.d = 2.0;\n\ntmp = p + 20 //tmp is a pointer to type char\nconvertTo int* from char* tmp1 tmp\ndref r...
104
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 13.56, "nodes": 63, "errors": 0, "source_hash": "1da32cd96bedae05c29a50e6f7039b965b6a4eade61a21eceff872d20131970b", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "struct_specifier", "text": "struc...
9,460
c
/* * riff.h library for RIFF file format i/o * Copyright (C) 2000 - 2002 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option)...
30.19
118
(translation_unit) "/*\n* riff.h library for RIFF file format i/o\n* Copyright (C) 2000 - 2002 <NAME> <<EMAIL>>\n*\n* This program is free software; you can redistribute it and/or modify\n* it under the terms of the GNU General Public License as published by\n* the Free Software Foundation; either version 2 of the Lice...
583
41
{"language": "c", "success": true, "metadata": {"lines": 118, "avg_line_length": 30.19, "nodes": 395, "errors": 0, "source_hash": "b662b7dcce28c46cf8852f51aefe17a586b054cedd1b35a4577d0322752b13fc", "categorized_nodes": 261}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
9,461
c
// Copyright 2019 the deepx authors. // Author: <NAME> (<EMAIL>) // #pragma once #include <deepx_core/common/hash_map.h> #include <deepx_core/common/stream.h> #include <cstdint> #include <utility> namespace deepx_core { template <typename Key, typename Value, class KeyHash, class KeyEqual> OutputStream& operator<<(O...
23.57
103
(translation_unit) "// Copyright 2019 the deepx authors.\n// Author: <NAME> (<EMAIL>)\n//\n\n#pragma once\n#include <deepx_core/common/hash_map.h>\n#include <deepx_core/common/stream.h>\n#include <cstdint>\n#include <utility>\n\nnamespace deepx_core {\n\ntemplate <typename Key, typename Value, class KeyHash, class KeyE...
837
15
{"language": "c", "success": true, "metadata": {"lines": 103, "avg_line_length": 23.57, "nodes": 501, "errors": 0, "source_hash": "e1373543945ef36bf74310391a5023d57ee0494c31fb1a7150e2f497dcb4bc5d", "categorized_nodes": 376}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
9,462
c
// // StripeCameraCore.h // StripeCameraCore // // Created by <NAME> on 11/15/21. // #import <Foundation/Foundation.h> //! Project version number for StripeCameraCore. FOUNDATION_EXPORT double StripeCameraCoreVersionNumber; //! Project version string for StripeCameraCore. FOUNDATION_EXPORT const unsigned char Str...
39.75
12
(translation_unit) "//\n// StripeCameraCore.h\n// StripeCameraCore\n//\n// Created by <NAME> on 11/15/21.\n//\n\n#import <Foundation/Foundation.h>\n\n//! Project version number for StripeCameraCore.\nFOUNDATION_EXPORT double StripeCameraCoreVersionNumber;\n\n//! Project version string for StripeCameraCore.\nFOUNDATI...
32
1
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 39.75, "nodes": 15, "errors": 0, "source_hash": "23795e5e457f0c6aed7e3b9758e44f6d1dd4483a3c043a1f24cb80be068afe00", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
9,463
c
/* Heap management routines for GNU Emacs on the Microsoft Windows API. Copyright (C) 1994, 2001-2015 Free Software Foundation, Inc. This file is part of GNU Emacs. GNU Emacs 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 Softwa...
33.31
219
(translation_unit) "/* Heap management routines for GNU Emacs on the Microsoft Windows API.\n Copyright (C) 1994, 2001-2015 Free Software Foundation, Inc.\n\nThis file is part of GNU Emacs.\n\nGNU Emacs is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as pu...
1,079
0
{"language": "c", "success": true, "metadata": {"lines": 219, "avg_line_length": 33.31, "nodes": 678, "errors": 0, "source_hash": "5356ad27cb9bbfde33df74167f5b234f2593398135065dd7bab3722a0c3ae5ae", "categorized_nodes": 441}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,464
c
// // CapitalCloudVideoUploader.h // CapitalCloudClient // // Created by julien on 14-1-9. // Copyright (c) 2014年 capitalCloud. All rights reserved. // /*! @header CapitalCloudVideoUploader @abstract 视频上传类; @author capitalCloud @version 1.3.2 */ #import <Foundation/Foundation.h> #import "CapitalCloudAPIClien...
26.76
76
(translation_unit) "//\n// CapitalCloudVideoUploader.h\n// CapitalCloudClient\n//\n// Created by julien on 14-1-9.\n// Copyright (c) 2014年 capitalCloud. All rights reserved.\n//\n\n/*!\n @header CapitalCloudVideoUploader\n @abstract 视频上传类;\n @author capitalCloud\n @version 1.3.2\n */\n#import <Foundation/Foundatio...
275
40
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 26.76, "nodes": 189, "errors": 0, "source_hash": "f02fec846d2d3453f5fc16ca8ae3d2f8729809c9dd07156d48c7791b408dd754", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ation/F...
9,465
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "SBAlertItem.h" @interface SBIPhotoLaunchDeniedAlertItem : SBAlertItem { _Bool _offersMigration; // 8 = 0x8 } @property(nonatomic) _Bool offersMigration; // @synthesize offe...
36.27
15
(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 "SBAlertItem.h"\n\n@interface SBIPhotoLaunchDeniedAlertItem : SBAlertItem\n{\n _Bool _offersMigration; // 8 = 0x8\n}\n\n@property(nonatomic) _Bool off...
90
10
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 36.27, "nodes": 51, "errors": 0, "source_hash": "3dcf4736608a372e2c129eae928a4dcc2b3ca9c0685a525328146fc76cbced5d", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
9,466
c
#ifndef NODE_H #define NODE_H #include <thread> #include <vector> #include <nlohmann/json.hpp> #include <net/peer.h> #include <blockchain.h> namespace encoin { using nlohmann::json; class node { public: node(blockchain&, std::string addr = "127.0.0.1", unsigned short port = 1234); ~node(); void messag...
29.34
68
(translation_unit) "#ifndef NODE_H\n#define NODE_H\n\n#include <thread>\n#include <vector>\n#include <nlohmann/json.hpp>\n#include <net/peer.h>\n#include <blockchain.h>\n\nnamespace encoin {\n\nusing nlohmann::json;\n\nclass node {\npublic:\n\n node(blockchain&, std::string addr = "127.0.0.1", unsigned short port = ...
706
32
{"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 29.34, "nodes": 403, "errors": 0, "source_hash": "9f829cbe50d0c2fbe43326627330ccad2b8d2d6988879b7e2bee5ebb3fa13d9c", "categorized_nodes": 297}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,467
c
#include <stdio.h> int main ( ) { int x[29],cont,cont1,val,cont_aux=0; for(cont=0;cont<30;cont++) { printf("Digite n %d: ",cont+1); scanf("%d",&val); for(cont1=0;(cont1 < cont_aux) && (val != x[cont1]);cont1++) {} if (cont1 == cont_aux) { x[cont_aux] = val; cont_au...
22.76
21
(translation_unit) "#include <stdio.h>\nint main ( )\n{\n int x[29],cont,cont1,val,cont_aux=0;\n for(cont=0;cont<30;cont++)\n {\n printf("Digite n %d: ",cont+1);\n scanf("%d",&val);\n for(cont1=0;(cont1 < cont_aux) && (val != x[cont1]);cont1++)\n {}\n if (cont1 == cont_aux) {\n x[c...
209
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 22.76, "nodes": 112, "errors": 0, "source_hash": "9f685ec0bd60e25e03e6a1ba36fe6096c851955b05e83c3f22caa79def37fe12", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
9,468
c
#ifndef CCPP_FIBONACCI_RESULT_RESPONSE__H #define CCPP_FIBONACCI_RESULT_RESPONSE__H #include "Fibonacci_Result_Response_.h" #undef OS_API #include "Fibonacci_Result_Response_Dcps.h" #undef OS_API #include <orb_abstraction.h> #include "Fibonacci_Result_Response_Dcps_impl.h" #endif /* CCPP_FIBONACCI_RESULT_RESPONSE__H...
34.67
9
(translation_unit) "#ifndef CCPP_FIBONACCI_RESULT_RESPONSE__H\n#define CCPP_FIBONACCI_RESULT_RESPONSE__H\n\n#include "Fibonacci_Result_Response_.h"\n#undef OS_API\n#include "Fibonacci_Result_Response_Dcps.h"\n#undef OS_API\n\n#include <orb_abstraction.h>\n#include "Fibonacci_Result_Response_Dcps_impl.h"\n\n#endif /* CC...
36
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 34.67, "nodes": 25, "errors": 0, "source_hash": "71d3a1ed2e485b13e82da45fcdf369fbc38941085e8ceb69019bc386d4e1f836", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef C...
9,469
c
#ifndef _MR_ASSET_MANAGER_H_ #define _MR_ASSET_MANAGER_H_ #include <vector> #include <cstring> #include <string> #include <inttypes.h> #define MR_MAX_PATH 260 namespace mr { class AssetManager { public: ~AssetManager(){} /// TODO: replace std::vector<char> to a data type that doesn't allocate in heap ...
24.35
34
(translation_unit) "#ifndef _MR_ASSET_MANAGER_H_\n#define _MR_ASSET_MANAGER_H_\n\n#include <vector>\n#include <cstring>\n#include <string>\n#include <inttypes.h>\n\n#define MR_MAX_PATH 260\n\nnamespace mr\n{\n \nclass AssetManager\n{\npublic:\n ~AssetManager(){}\n\n /// TODO: replace std::vector<char> to a dat...
218
7
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 24.35, "nodes": 127, "errors": 0, "source_hash": "d43237aeb5abf2980dc216dd9e042494f7a8b75a27af3f65d47f9dea9fb80d42", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,470
c
/************************************************************************** * Copyright (C) 2016 <NAME> (<EMAIL>) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the L...
36.15
84
(translation_unit) "/**************************************************************************\n * Copyright (C) 2016 <NAME> (<EMAIL>)\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, ...
684
34
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 36.15, "nodes": 395, "errors": 0, "source_hash": "d1f3f2575040c418dab4cad9e89dfc0c12e0883e5b20a0471b264be8d129f0f9", "categorized_nodes": 276}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,471
c
#pragma once #include "Util/ConditionParser.h" #include "Util/Graphics.h" #include "Util/Magic.h" #include "Util/Script.h" #define BIND(a_method, ...) a_vm.RegisterFunction(#a_method##sv, script, a_method __VA_OPT__(, ) __VA_ARGS__) #define BIND_EVENT(a_method, ...) a_vm.RegisterFunction(#a_method##sv, obj, a_method...
39.14
14
(translation_unit) "#pragma once\n\n#include "Util/ConditionParser.h"\n#include "Util/Graphics.h"\n#include "Util/Magic.h"\n#include "Util/Script.h"\n\n#define BIND(a_method, ...) a_vm.RegisterFunction(#a_method##sv, script, a_method __VA_OPT__(, ) __VA_ARGS__)\n\n#define BIND_EVENT(a_method, ...) a_vm.RegisterFunction...
117
3
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 39.14, "nodes": 72, "errors": 0, "source_hash": "413145612ed60588dd48401005e6f7efec80d8409c046552d836e31fc74264e0", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
9,472
c
/* * object.c * * Copyright (c) 2008-2010 CSIRO, Delft University of Technology. * * This file is part of Darjeeling. * * Darjeeling is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation, either ve...
30.96
49
(translation_unit) "/*\n * object.c\n * \n * Copyright (c) 2008-2010 CSIRO, Delft University of Technology.\n * \n * This file is part of Darjeeling.\n * \n * Darjeeling is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published\n * by the Free S...
186
0
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 30.96, "nodes": 118, "errors": 0, "source_hash": "865e48f2eb574622286a5988c43399eeb9ea565651ae31751a1356218428baf9", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
9,473
c
#pragma once #include "effects/effect.h" class sunlight_effect_t : public effect_t { CRGB current; virtual const char *name() const { return "sunlight"; } virtual void setup(); virtual void set_speed(int, size_t idx, size_t sz); virtual void loop(); };
26.3
10
(translation_unit) "#pragma once\n\n#include "effects/effect.h"\n\nclass sunlight_effect_t : public effect_t\n{\n CRGB current;\n\n virtual const char *name() const { return "sunlight"; }\n virtual void setup();\n virtual void set_speed(int, size_t idx, size_t sz);\n virtual void loop();\n};" (preproc_...
90
5
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 26.3, "nodes": 53, "errors": 0, "source_hash": "cc14c969737f99b4f1fc669e36d60a528c0896343f6041a17564d64dd54f6bbd", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
9,474
c
// // BaseTableViewCell.h // NewPipe // // Created by Somiya on 2018/10/14. // Copyright © 2018 Somiya. All rights reserved. // #import <UIKit/UIKit.h> @interface BaseTableViewCell : UITableViewCell - (void)configCellData:(id)data; @end
20.91
11
(translation_unit) "//\n// BaseTableViewCell.h\n// NewPipe\n//\n// Created by Somiya on 2018/10/14.\n// Copyright © 2018 Somiya. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface BaseTableViewCell : UITableViewCell\n- (void)configCellData:(id)data;\n@end\n" (comment) "//" (comment) "// BaseTabl...
38
5
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 20.91, "nodes": 20, "errors": 0, "source_hash": "237fa46d13f2592facd4f11f922b9a24f1d30cb23bcc2333b23d0eb8bb884cc9", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
9,475
c
#include <windows.h> #include <stdio.h> #include <time.h> typedef struct { HWND hwnd; int x; int y; int dx; int dy; } particle; static particle p[4] = {0}; static HBRUSH hb = NULL; LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { HDC hdc = NULL; RECT rc = {0}; PAINTST...
27.84
131
(translation_unit) "#include <windows.h>\n#include <stdio.h>\n#include <time.h>\n\ntypedef struct {\n HWND hwnd;\n int x;\n int y;\n int dx;\n int dy;\n} particle;\n\nstatic particle p[4] = {0};\nstatic HBRUSH hb = NULL;\n\nLRESULT CALLBACK\nWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) {\n HDC h...
1,647
3
{"language": "c", "success": true, "metadata": {"lines": 131, "avg_line_length": 27.84, "nodes": 1018, "errors": 0, "source_hash": "e4a2eeb467762b64d5a8c64d1b2e899e9662d2e17bdfefbfdbcf3904dafce769", "categorized_nodes": 773}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
9,476
c
#ifndef SENDFILEWINDOW_H #define SENDFILEWINDOW_H #include <QDialog> #include <onlinedeviceitem.h> #include <QHeaderView> #include <QMessageBox> #include <QFileDialog> #include <QList> #include <QMessageBox> #include <QTcpSocket> #include <QTimer> #include <util.h> #include <context.h> #include <progressBarui.h> #inclu...
25.22
67
(translation_unit) "#ifndef SENDFILEWINDOW_H\n#define SENDFILEWINDOW_H\n#include <QDialog>\n#include <onlinedeviceitem.h>\n#include <QHeaderView>\n#include <QMessageBox>\n#include <QFileDialog>\n#include <QList>\n#include <QMessageBox>\n#include <QTcpSocket>\n#include <QTimer>\n#include <util.h>\n#include <context.h>\n...
416
16
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 25.22, "nodes": 295, "errors": 0, "source_hash": "a49102fd6320a3b9feef526254422e636db748c9786b612bdde65d9970d529c7", "categorized_nodes": 217}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,477
c
#pragma once #include <functional> #include <memory> #include <string> #include <vector> namespace systelab { namespace web_server { class Reply; class Request; }} namespace systelab { namespace rest_api_core { class IRoute; class Router { public: Router(); virtual ~Router(); void addRoute(std::uniqu...
21
23
(translation_unit) "#pragma once\n\n#include <functional>\n#include <memory>\n#include <string>\n#include <vector>\n\n\nnamespace systelab { namespace web_server {\n class Reply;\n class Request;\n}}\n\nnamespace systelab { namespace rest_api_core {\n\n class IRoute;\n\n class Router\n {\n public:\n Router();\n virtu...
161
8
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 21.0, "nodes": 95, "errors": 0, "source_hash": "33daa87cafeb0d041f194d7c3a087d478a5ae985cb6adeb1e55d5142218c18f2", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
9,478
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> void quickSortKeyAtEndUINT32(char *a, int64_t len, int64_t reclen);
28.4
5
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <stdint.h>\n\nvoid quickSortKeyAtEndUINT32(char *a, int64_t len, int64_t reclen);\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <stdlib.h...
34
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 28.4, "nodes": 28, "errors": 0, "source_hash": "8d0acda88f0529f7e41dd2d35ea2b7fee628528d12dad666e10cac8fccc9c455", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
9,479
c
/* * Copyright 2020 Broadcom * * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr/device.h> #include <zephyr/init.h> #include <soc.h> #include <zephyr/arch/cpu.h> /** * @brief Perform basic hardware initialization at boot. * * This needs to be run from the very beginning. * So the init priority has to ...
23.44
34
(translation_unit) "/*\n * Copyright 2020 Broadcom\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\n#include <zephyr/device.h>\n#include <zephyr/init.h>\n#include <soc.h>\n#include <zephyr/arch/cpu.h>\n\n/**\n * @brief Perform basic hardware initialization at boot.\n *\n * This needs to be run from the very beginnin...
141
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 23.44, "nodes": 84, "errors": 0, "source_hash": "7ea444cb598be875c3e89c7d4ac59d99e24f497050ee22e2172b4e9638109596", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
9,480
c
#pragma once #include <map> #include <chrono> #include <iostream> namespace spark { class Timer { public: static inline std::map<std::string, double> measurements; static double getMeasurement(const std::string&& measurementName); Timer(const std::string&& measurementName); ~Timer(); private:...
23.44
18
(translation_unit) "#pragma once\n\n#include <map>\n#include <chrono>\n#include <iostream>\n\nnamespace spark\n{\nclass Timer\n{\n public:\n static inline std::map<std::string, double> measurements;\n static double getMeasurement(const std::string&& measurementName);\n Timer(const std::string&& measurementN...
138
9
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 23.44, "nodes": 77, "errors": 0, "source_hash": "0d79d642781cfc986e52405f2538dc8ae90ac2e1c760aa8c0c2a0f49b6ffc9f4", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
9,481
c
#ifndef _TRACKER_CURVILINEARTRAJECTORYPARAMETERS_H_ #define _TRACKER_CURVILINEARTRAJECTORYPARAMETERS_H_ #include "DataFormats/TrajectoryState/interface/TrackCharge.h" #include "DataFormats/Math/interface/AlgebraicROOTObjects.h" #include "DataFormats/GeometryVector/interface/GlobalPoint.h" #include "DataFormats/Geomet...
40.56
87
(translation_unit) "#ifndef _TRACKER_CURVILINEARTRAJECTORYPARAMETERS_H_\n#define _TRACKER_CURVILINEARTRAJECTORYPARAMETERS_H_\n\n\n#include "DataFormats/TrajectoryState/interface/TrackCharge.h"\n#include "DataFormats/Math/interface/AlgebraicROOTObjects.h"\n#include "DataFormats/GeometryVector/interface/GlobalPoint.h"\n#...
468
20
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 40.56, "nodes": 255, "errors": 0, "source_hash": "358e32047e221f272e36d9ac35b69491309a7b6ddf3bd20a1ee4abd8daeae4c6", "categorized_nodes": 181}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,482
c
/* * Copyright (c) 2018 James, https://github.com/zhuguangxiang * * 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, ...
25.64
222
(translation_unit) "/*\n * Copyright (c) 2018 James, https://github.com/zhuguangxiang\n *\n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this software and associated documentation files (the "Software"),\n * to deal in the Software without restriction, including without limitati...
1,786
0
{"language": "c", "success": true, "metadata": {"lines": 222, "avg_line_length": 25.64, "nodes": 1137, "errors": 0, "source_hash": "c4ca310d9a0bab41b841e48f9ccb326e42528dbecf7c4b263281e4b11ddc439f", "categorized_nodes": 750}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
9,483
c
int str_to_mac (unsigned char *mac, char *str); int str_to_ip (unsigned long *ip, char *str);
46
2
(translation_unit) "int str_to_mac (unsigned char *mac, char *str);\nint str_to_ip (unsigned long *ip, char *str);\n" (declaration) "int str_to_mac (unsigned char *mac, char *str);" (primitive_type) "int" (function_declarator) "str_to_mac (unsigned char *mac, char *str)" (identifier) "str_to_mac" ...
43
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 46.0, "nodes": 34, "errors": 0, "source_hash": "e6a361a18420566fc90ad6462883822bea31b89bf109a097bf0888859d27a66e", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "int str_to_m...
9,484
c
#include<stdio.h> #include"../../Zend/zend.h" int main(){ zval *test = "abc"; printf("这个变量的数据类型不是NULL,这种数据类型对应的数字是: %d", test->type); return 0; }
19.38
8
(translation_unit) "#include<stdio.h>\n#include"../../Zend/zend.h"\n\nint main(){\n zval *test = "abc";\n printf("这个变量的数据类型不是NULL,这种数据类型对应的数字是: %d", test->type);\n return 0;\n \n}\n" (preproc_include) "#include<stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "...
52
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 19.38, "nodes": 29, "errors": 0, "source_hash": "19a8fde6b23bf78bd1e9ff567b4ba00a764cdf5a6f7ea807d9ce4fb0768c63d2", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
9,485
c
#include <stdio.h> #include <stdlib.h> #include <sys/file.h> #include <sys/stat.h> #include <unistd.h> #include <fcntl.h> #include <sys/types.h> #include <dirent.h> #include "apue.h" #include <sys/wait.h> #include <math.h> #include <signal.h> #include <sys/socket.h> #include <netinet/in.h> #include <sys/un.h> #include...
29.53
75
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <sys/file.h>\n#include <sys/stat.h>\n#include <unistd.h>\n#include <fcntl.h>\n#include <sys/types.h>\n#include <dirent.h>\n#include "apue.h" \n#include <sys/wait.h>\n#include <math.h>\n#include <signal.h>\n#include <sys/socket.h>\n#include <netinet/i...
608
0
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 29.53, "nodes": 343, "errors": 0, "source_hash": "1f675ad4f86059fee54bb0673e8a26925b6689a5556fb5d6d5b991b16b236537", "categorized_nodes": 240}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,486
c
#ifndef ALIMUONTRACKERVOLTAGES_H #define ALIMUONTRACKERVOLTAGES_H /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ #ifndef ROOT_TObject # include "TObject.h" #endif #ifndef ROOT_TString # include "TString.h" #endi...
41.87
47
(translation_unit) "#ifndef ALIMUONTRACKERVOLTAGES_H\n#define ALIMUONTRACKERVOLTAGES_H\n\n/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *\n* See cxx source for full Copyright notice */\n\n#ifndef ROOT_TObject\n# include "TObject.h"\n#endif\n#ifndef ROOT_TString...
509
21
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 41.87, "nodes": 332, "errors": 0, "source_hash": "b92e0a9dbd9fe10d63a9c0d0c8e5db7fe11d07017988e7af2f65646f6f6f9043", "categorized_nodes": 208}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,487
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/iTunesStoreUI.framework/iTunesStoreUI */ @interface SUMediaPlayerItem : NSObject <NSCopying> { NSURL * _backgroundImageURL; NSString * _bookmarkIdentifier; NSArray * _downloadPingURLs; long long _initialOrientation; unsign...
34.17
58
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/iTunesStoreUI.framework/iTunesStoreUI\n */\n\n@interface SUMediaPlayerItem : NSObject <NSCopying> {\n NSURL * _backgroundImageURL;\n NSString * _bookmarkIdentifier;\n NSArray * _downloadPingURLs;\n long long _in...
690
50
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 34.17, "nodes": 447, "errors": 0, "source_hash": "22bc6fba91d672ad01cbc437b156f357d19a73664e3c5b8be62480f0f27320e9", "categorized_nodes": 256}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": ...
9,488
c
#include <stdio.h> #include <time.h> #include <cblas.h>// libatlas-dev (3.10.2-7) #include "include/Matrix.h" #include "include/HelpFunctions.h" // file output char* RESULT_FOLDER_PATH = "results/"; struct stat ST = {0}; int main(int argc, const char **argv) { // VARIABLES clock_t start, end; // measure t...
38.1
117
(translation_unit) "#include <stdio.h>\n#include <time.h>\n#include <cblas.h>// libatlas-dev (3.10.2-7)\n\n#include "include/Matrix.h"\n#include "include/HelpFunctions.h"\n\n// file output\nchar* RESULT_FOLDER_PATH = "results/";\nstruct stat ST = {0};\n\n\nint main(int argc, const char **argv) {\n\n // VARIABLES\n\n...
1,215
0
{"language": "c", "success": true, "metadata": {"lines": 117, "avg_line_length": 38.1, "nodes": 718, "errors": 0, "source_hash": "8eaa296293d3916c80720df0433af0fdeaff37bdcd7dce8e92377234849a724e", "categorized_nodes": 468}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,489
c
#ifndef IMAGEWINDOW_H #define IMAGEWINDOW_H #include <QWidget> //#include <QGraphicsView> #include "iudefs.h" class QScrollArea; class QScrollBar; class QToolBar; class QLabel; class QSpinBox; namespace iu { // forward declarations in iu namespace class QGLImageGpuWidget; /** class documentation todo */ class IUG...
33.13
63
(translation_unit) "#ifndef IMAGEWINDOW_H\n#define IMAGEWINDOW_H\n\n#include <QWidget>\n//#include <QGraphicsView>\n#include "iudefs.h"\n\nclass QScrollArea;\nclass QScrollBar;\nclass QToolBar;\nclass QLabel;\nclass QSpinBox;\n\nnamespace iu {\n\n// forward declarations in iu namespace\nclass QGLImageGpuWidget;\n\n/** ...
620
23
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 33.13, "nodes": 424, "errors": 0, "source_hash": "530d553e4f4b2062ebd2a8b5d98f374aaf5c3b2afadd7675b2f980287c84b339", "categorized_nodes": 260}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,490
c
/* $OpenBSD: linux_errno.h,v 1.3 2011/04/05 22:54:30 pirofti Exp $ */ /* $NetBSD: linux_errno.h,v 1.1 1995/02/28 23:25:34 fvdl Exp $ */ /* * Copyright (c) 1995 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the follo...
31.51
156
(translation_unit) "/* $OpenBSD: linux_errno.h,v 1.3 2011/04/05 22:54:30 pirofti Exp $ */\n/* $NetBSD: linux_errno.h,v 1.1 1995/02/28 23:25:34 fvdl Exp $ */\n/*\n * Copyright (c) 1995 <NAME>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permit...
496
0
{"language": "c", "success": true, "metadata": {"lines": 156, "avg_line_length": 31.51, "nodes": 491, "errors": 0, "source_hash": "9058c9bdb56e19113d2cecf9db407acf9bc0f78b87de0af2a8cc1aef0543c865", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
9,491
c
#ifndef _GRAPHCOLORING_H_ #define _GRAPHCOLORING_H_ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <cuda_runtime_api.h> #include <cuda.h> #include <iostream> using namespace std; // Should be at least equal to maxDegree of graph + 1 // if doing that generates an erro...
35.19
31
(translation_unit) "#ifndef _GRAPHCOLORING_H_ \n#define _GRAPHCOLORING_H_ \n\n#include <stdlib.h> \n#include <stdio.h> \n#include <string.h> \n#include <math.h> \n#include <cuda_runtime_api.h> \n#include <cuda.h> \n#include <iostream>\nusing namespace std;\n\n\n// Should be at least equal to maxDegree of graph + 1\n// ...
181
3
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 35.19, "nodes": 142, "errors": 0, "source_hash": "e2d773cb2a8e1d35df0ddbdcd567ab57ab15c496a5bf8841091f942c0f4a7ca3", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,492
c
#ifndef ADAPTIVE_STATE_MANAGER_BASE_TEST_H #define ADAPTIVE_STATE_MANAGER_BASE_TEST_H #include "WarpedUnitTest.h" #include "AdaptiveStateManagerBase.h" class AdaptiveStateManagerBase; class AdaptiveStateManagerBaseTest : public WarpedUnitTest { CPPUNIT_TEST_SUITE(AdaptiveStateManagerBaseTest); CPPUNIT_TEST(t...
33.61
38
(translation_unit) "#ifndef ADAPTIVE_STATE_MANAGER_BASE_TEST_H\n#define ADAPTIVE_STATE_MANAGER_BASE_TEST_H\n\n#include "WarpedUnitTest.h"\n#include "AdaptiveStateManagerBase.h"\n\nclass AdaptiveStateManagerBase;\n\nclass AdaptiveStateManagerBaseTest : public WarpedUnitTest {\n CPPUNIT_TEST_SUITE(AdaptiveStateManager...
298
6
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 33.61, "nodes": 173, "errors": 0, "source_hash": "3bfdd76923f8ac425d108c4f4052f54612216c7417388f16b57ac4bf5670cdff", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,493
c
#include <stdlib.h> #include "sphia-test.h" static void test_set_get() { char key[] = "test-set-key"; char value[] = "test-set-value"; int rc = sphia_set(sphia, key, value); assert(-1 != rc); char *actual = sphia_get(sphia, key); assert(0 == strncmp(actual, value, strlen(actual))); } TEST(test_set_get)...
25.42
12
(translation_unit) "#include <stdlib.h>\n#include "sphia-test.h"\n\nstatic void\ntest_set_get() {\n char key[] = "test-set-key";\n char value[] = "test-set-value";\n\n int rc = sphia_set(sphia, key, value);\n assert(-1 != rc);\n\n char *actual = sphia_get(sphia, key);\n assert(0 == strncmp(actual, value, strlen(a...
124
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 25.42, "nodes": 74, "errors": 0, "source_hash": "c47551418f95a1ad65315329f007e7e41a2b017ccfb079fc1eb20344856eddc8", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
9,494
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" @class CIImage, NSArray; __attribute__((visibility("hidden"))) @interface TCMPSLabeledImage : NSObject { CIImage *_image; NSArray *_annotations; struct ...
30.74
19
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n@class CIImage, NSArray;\n\n__attribute__((visibility("hidden")))\n@interface TCMPSLabeledImage : NSObject\n{\n CIImage *_image;\n ...
133
14
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 30.74, "nodes": 80, "errors": 0, "source_hash": "f132246793720ba92732e276501b17a872acaa83224d666b6f8a58f2ea56322b", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
9,495
c
// // geomcpp // Shared types for 2D lines. // // Jul-2020, <NAME> // MIT license // #pragma once namespace geom { /////////////////// enum class Line2Type { Segment, Ray, Infinite }; } // namespace geom
10.26
19
(translation_unit) "//\n// geomcpp\n// Shared types for 2D lines.\n//\n// Jul-2020, <NAME>\n// MIT license\n//\n#pragma once\n\n\nnamespace geom\n{\n///////////////////\n\nenum class Line2Type\n{\n Segment,\n Ray,\n Infinite\n};\n\n} // namespace geom\n" (comment) "//" (comment) "// geomcpp" (comment) "// S...
38
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 10.26, "nodes": 15, "errors": 0, "source_hash": "51118440edb49f66ebcd403824f4573b2271f40d04adfd05dfda1eba48af4592", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
9,496
c
#import <Foundation/Foundation.h> @protocol FBSceneClientProvider <NSObject> @required - (void)beginTransaction; - (void)endTransaction; @end
22.67
6
(translation_unit) "#import <Foundation/Foundation.h>\n\n@protocol FBSceneClientProvider <NSObject>\n\n@required\n\n- (void)beginTransaction;\n\n- (void)endTransaction;\n\n@end\n" (preproc_call) "#import <Foundation/Foundation.h>\n" (preproc_directive) "#import" (preproc_arg) "<Foundation/Foundation.h>" (ER...
38
5
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 22.67, "nodes": 26, "errors": 0, "source_hash": "57da420e943d53a45d1edde7558f58af6eea551913f796ba9b6f802b0e3a6ee1", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
9,497
c
// // HWTitleView.h // VideoDemo // // Created by lenew on 2019/5/15. // Copyright © 2019 hwei. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @protocol HWTitleViewDelegate <NSObject> /** switch page @param selectIndex the selected index @param deselectIndex the deselected index @p...
41.74
46
(translation_unit) "//\n// HWTitleView.h\n// VideoDemo\n//\n// Created by lenew on 2019/5/15.\n// Copyright © 2019 hwei. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@protocol HWTitleViewDelegate <NSObject>\n/**\n switch page\n @param selectIndex the selected index\n @param des...
397
69
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 41.74, "nodes": 264, "errors": 0, "source_hash": "462975bbbfbf340c6bdd042236fda5ace06fd6b0bca23f17aaa0a2c5aef9d490", "categorized_nodes": 152}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import ...
9,498
c
/******************************************************************************* * COPYRIGHT(c) 2015 STMicroelectronics * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * 1. Redistributions of source code must ret...
32.73
139
(translation_unit) "/*******************************************************************************\n * COPYRIGHT(c) 2015 STMicroelectronics\n *\n * Redistribution and use in source and binary forms, with or without modification,\n * are permitted provided that the following conditions are met:\n * 1. Redistribution...
317
29
{"language": "c", "success": true, "metadata": {"lines": 139, "avg_line_length": 32.73, "nodes": 209, "errors": 0, "source_hash": "6c8933c83bcf8c49052649c9baf1d162fd4bfa0f639b630965cf3e47b381fda6", "categorized_nodes": 121}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
9,499