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
// RUN: %clang_cc1 -emit-llvm %s -o - -O1 -triple=x86_64-gnu-linux | grep "i64 -1" // PR3709 long long a() { return (long long)(int*)-1;}
45
3
(translation_unit) "// RUN: %clang_cc1 -emit-llvm %s -o - -O1 -triple=x86_64-gnu-linux | grep "i64 -1"\n\n// PR3709\nlong long a() { return (long long)(int*)-1;}\n\n" (comment) "// RUN: %clang_cc1 -emit-llvm %s -o - -O1 -triple=x86_64-gnu-linux | grep "i64 -1"" (comment) "// PR3709" (function_definition) "long lo...
33
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 45.0, "nodes": 19, "errors": 0, "source_hash": "2654722d31b13025ff54accd0255e43203a31f2eb76f2db02931d212569e6e68", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "long ...
3,600
c
#include <stdio.h> #define MAXSTRING 80 /* rightrot: return bit pattern rotatad n position to right */ int setbits(int x, int p, int n, int y); int invert(int x, int p, int n); unsigned int rightrot(unsigned int x, int n); int char2bin(char *sx); void bin2char(unsigned int x, char *sx); int main(void) { ...
18.64
85
(translation_unit) "#include <stdio.h> \n#define MAXSTRING 80 \n \n/* rightrot: return bit pattern rotatad n position to right */ \nint setbits(int x, int p, int n, int y); \nint invert(int x, int p, int n); \nunsigned int rightrot(unsigned int x, int n); \nint char2bin(char *sx); \nvoid bin2char(unsigned int x, char ...
788
0
{"language": "c", "success": true, "metadata": {"lines": 85, "avg_line_length": 18.64, "nodes": 538, "errors": 0, "source_hash": "edc70ee223d8dc5e9b6277d521f9ec9097bbb2051fd23eb838cc204b2fb4e294", "categorized_nodes": 359}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,601
c
/** * @file * * @date Aug 29, 2013 * @author: <NAME> */ #ifndef SSIZE_T_DEF_H_ #define SSIZE_T_DEF_H_ #ifdef __SSIZE_TYPE__ typedef __SSIZE_TYPE__ ssize_t; #else #include <asm/types.h> typedef __ssize_t ssize_t; #endif #endif /* SSIZE_T_DEF_H_ */
15
16
(translation_unit) "/**\n * @file\n *\n * @date Aug 29, 2013\n * @author: <NAME>\n */\n\n#ifndef SSIZE_T_DEF_H_\n#define SSIZE_T_DEF_H_\n\n#ifdef __SSIZE_TYPE__\n typedef __SSIZE_TYPE__ ssize_t;\n#else\n #include <asm/types.h>\n typedef __ssize_t ssize_t;\n#endif\n\n\n#endif /* SSIZE_T_DEF_H_ */\n" (comment) "/**\n *...
29
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 15.0, "nodes": 24, "errors": 0, "source_hash": "444f9458108344b3d8b082d41b89190b4f56ca7fc5ff507357dce764845599f8", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef S...
3,602
c
// Epoll.h // Part of PUMPER, copyright (C) 2015 Alogfans. // // Provide an efficient Linux socket multiplexer for multi-thread // networking invocations (especially as protobuf-based RPC system) // // Epoll class will use Linux epoll(5) to handle input or output request // and call the corresponding user-defined func...
35.7
56
(translation_unit) "// Epoll.h\n// Part of PUMPER, copyright (C) 2015 Alogfans.\n//\n// Provide an efficient Linux socket multiplexer for multi-thread\n// networking invocations (especially as protobuf-based RPC system)\n// \n// Epoll class will use Linux epoll(5) to handle input or output request\n// and call the corr...
287
4
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 35.7, "nodes": 177, "errors": 0, "source_hash": "b44a15af077aa701de467ba2d6c63279737ef8925480232c21ccf21ec56de7c9", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
3,603
c
/**------------------------------------------------------------------------- @file system_sam4e.c @brief CMSIS System initializations @author <NAME> @date June. 24, 2020 @license MIT License Copyright (c) 2020 I-SYST inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining ...
25.07
279
(translation_unit) "/**-------------------------------------------------------------------------\n@file system_sam4e.c\n\n@brief CMSIS System initializations\n\n\n@author <NAME>\n@date June. 24, 2020\n\n@license\n\nMIT License\n\nCopyright (c) 2020 I-SYST inc. All rights reserved.\n\nPermission is hereby granted, free ...
1,407
1
{"language": "c", "success": true, "metadata": {"lines": 279, "avg_line_length": 25.07, "nodes": 860, "errors": 0, "source_hash": "025e50065d9f7ae01fdb42af9002ebb30d1aac85b59a3bd70aa0d8f189a35eb1", "categorized_nodes": 632}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,604
c
// // GFTableViewController.h // GFRefreshControl_Example // // Created by <NAME> on 12/10/2019. // Copyright © 2019 guidosette. All rights reserved. // #import <UIKit/UIKit.h> #import "GFRefreshControlProtocol.h" NS_ASSUME_NONNULL_BEGIN @interface GFTableViewController : UIViewController<GFRefreshControlProtoco...
29.08
13
(translation_unit) "//\n// GFTableViewController.h\n// GFRefreshControl_Example\n//\n// Created by <NAME> on 12/10/2019.\n// Copyright © 2019 guidosette. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "GFRefreshControlProtocol.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface GFTableViewController : UIViewC...
41
4
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 29.08, "nodes": 24, "errors": 0, "source_hash": "70ca66331cef0d3fee182e33a14499049c4750e4335cd44d3be3f4db883f91c3", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
3,605
c
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:54:22 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/DigitalTouchShared.framework/DigitalTouchShared * classdump-dyld is licensed under GPLv3, Copyright ...
39.14
14
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Sunday, September 27, 2020 at 11:54:22 AM Mountain Standard Time\n* Operating System: Version 14.0 (Build 18A373)\n* Image Source: /System/Library/PrivateFrameworks/DigitalTouchShared.framework/DigitalTouchShared\n* classdump-dyld is license...
89
10
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 39.14, "nodes": 53, "errors": 0, "source_hash": "6c35b38fcc7b8184ef0249b93e7a64ca505d2accd63e6f190abc5bf4a017c635", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "protocol DTSColo...
3,606
c
/* * Copyright (c) 1999, 2000, 2001, 2002, 2010 <NAME> <<EMAIL>> * * Framebuffer drivers header file for Microwindows Screen Drivers * * Portions contributed by Koninklijke Philips Electronics N.V. * These portions are Copyright 2002 Koninklijke Philips Electronics * N.V. All Rights Reserved. These portions ar...
48.17
177
(translation_unit) "/*\n * Copyright (c) 1999, 2000, 2001, 2002, 2010 <NAME> <<EMAIL>>\n *\n * Framebuffer drivers header file for Microwindows Screen Drivers\n *\n * Portions contributed by Koninklijke Philips Electronics N.V.\n * These portions are Copyright 2002 Koninklijke Philips Electronics\n * N.V. All Rights R...
956
0
{"language": "c", "success": true, "metadata": {"lines": 177, "avg_line_length": 48.17, "nodes": 712, "errors": 0, "source_hash": "975de53710cfb4bb63512c4cd33d75dc647153f03b34aa1e93c4762d228a6b29", "categorized_nodes": 575}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if VTSW...
3,607
c
#pragma once // --------------------- Includes needed for this application ----------------- // Exported functions by ExampleAP.cpp void setupAP(); void loopAP();
33.2
5
(translation_unit) "#pragma once\n\n// --------------------- Includes needed for this application -----------------\n\n// Exported functions by ExampleAP.cpp\n\n void setupAP();\n void loopAP();\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (comment) "// -------...
22
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 33.2, "nodes": 13, "errors": 0, "source_hash": "f398959c48a94a7a0a9099f6153e067e065a0fb83b8944f246dc1c77205327a0", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once...
3,608
c
// // ShutdownEventListener.h // libraries/shared/src // // Created by <NAME> on 09/03/14. // Copyright 2014 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #ifndef hifi_ShutdownEventListener_h...
32.39
23
(translation_unit) "//\n// ShutdownEventListener.h\n// libraries/shared/src\n//\n// Created by <NAME> on 09/03/14.\n// Copyright 2014 High Fidelity, Inc.\n//\n// Distributed under the Apache License, Version 2.0.\n// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html\n//\n\n#ifnd...
105
6
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 32.39, "nodes": 58, "errors": 0, "source_hash": "808d4045d41fb219566073e9696a3c4526262109b4ec13ff5ce5a06727fea9f0", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,609
c
Datum pg_xxh32(PG_FUNCTION_ARGS); Datum pg_xxh64(PG_FUNCTION_ARGS); Datum pg_xxh3_64(PG_FUNCTION_ARGS); Datum pg_xxh3_128(PG_FUNCTION_ARGS); Datum pg_xxh32b(PG_FUNCTION_ARGS); Datum pg_xxh64b(PG_FUNCTION_ARGS); Datum pg_xxh3_64b(PG_FUNCTION_ARGS); Datum pg_xxh3_128b(PG_FUNCTION_ARGS);
34.75
8
(translation_unit) "Datum pg_xxh32(PG_FUNCTION_ARGS);\nDatum pg_xxh64(PG_FUNCTION_ARGS);\nDatum pg_xxh3_64(PG_FUNCTION_ARGS);\nDatum pg_xxh3_128(PG_FUNCTION_ARGS);\n\nDatum pg_xxh32b(PG_FUNCTION_ARGS);\nDatum pg_xxh64b(PG_FUNCTION_ARGS);\nDatum pg_xxh3_64b(PG_FUNCTION_ARGS);\nDatum pg_xxh3_128b(PG_FUNCTION_ARGS);" (d...
81
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 34.75, "nodes": 56, "errors": 0, "source_hash": "d2c8e823135919b3f88629255981df5ee690f0eb0ba0e1e40e2976cf09a023ef", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "Datum pg_xx...
3,610
c
// gcc -o transmitter -lpigpio -lpthread -lm transmitter.c // THIS MODULE IS DEPRECIATED AND WAS NEVER SUCESSFULLY OPERATIONAL // YOU WILL NEED TO FIX THE PROGRAM TO GET IT TO WORK, IT WILL NOT BE MAINTAINED BY ME // COPRIGHT / LICENSE // parts of this code adapted from work by <NAME>. <<EMAIL>>, found on // https://...
34.93
217
(translation_unit) "// gcc -o transmitter -lpigpio -lpthread -lm transmitter.c\n\n// THIS MODULE IS DEPRECIATED AND WAS NEVER SUCESSFULLY OPERATIONAL\n// YOU WILL NEED TO FIX THE PROGRAM TO GET IT TO WORK, IT WILL NOT BE MAINTAINED BY ME\n\n// COPRIGHT / LICENSE\n// parts of this code adapted from work by <NAME>. <<EMA...
1,869
0
{"language": "c", "success": true, "metadata": {"lines": 217, "avg_line_length": 34.93, "nodes": 1022, "errors": 0, "source_hash": "ddccd8949c447c56874327e29657c14e07af5603d18c96e5d7a09b4ee277a835", "categorized_nodes": 726}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
3,611
c
uint8_t detectCard(void);
25
1
(translation_unit) "uint8_t detectCard(void); \n" (declaration) "uint8_t detectCard(void);" (primitive_type) "uint8_t" (function_declarator) "detectCard(void)" (identifier) "detectCard" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "voi...
11
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 25.0, "nodes": 7, "errors": 0, "source_hash": "21a90257bf8dfd5a35c8f4ac95369af08f4a66ed904f9f7bb85e69df4181c7f6", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "uint8_t detect...
3,612
c
// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later /* * Copyright 2019 IBM Corp. */ #include <skiboot.h> #include <pci.h> #include <phb4.h> #include <npu2.h> #include <pau.h> #define TL_RATE_BUF_SIZE 32 static int64_t opal_npu_init_context(uint64_t phb_id, int pid __unused, uint64_t msr, uint64_t ...
30.35
209
(translation_unit) "// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later\n/*\n * Copyright 2019 IBM Corp.\n */\n\n#include <skiboot.h>\n#include <pci.h>\n#include <phb4.h>\n#include <npu2.h>\n#include <pau.h>\n\n#define TL_RATE_BUF_SIZE 32\n\nstatic int64_t opal_npu_init_context(uint64_t phb_id, int pid __unused,...
1,639
3
{"language": "c", "success": true, "metadata": {"lines": 209, "avg_line_length": 30.35, "nodes": 1026, "errors": 0, "source_hash": "a395497f33f064e792b4f926f3abc0e161513055516547c4d74d810ec9146fba", "categorized_nodes": 773}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
3,613
c
// // EasyTimeline.h // TypeTeacher // // Created by <NAME> on 2/26/14. // Copyright (c) 2014 KSITechnology. All rights reserved. // // 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 ...
40.68
74
(translation_unit) "//\n// EasyTimeline.h\n// TypeTeacher\n//\n// Created by <NAME> on 2/26/14.\n// Copyright (c) 2014 KSITechnology. All rights reserved.\n//\n// Permission is hereby granted, free of charge, to any person\n// obtaining a copy of this software and associated documentation\n// files (the "Softwar...
481
45
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 40.68, "nodes": 306, "errors": 0, "source_hash": "7228b0cf3d91309cb98dc8aa307fc18baa777dd05b4fbfe872dcf4f67679de59", "categorized_nodes": 175}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
3,614
c
/* Safety Framework for Component-based Robotics Created on: August 16, 2012 Copyright (C) 2012 <NAME>, <NAME> 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 _cisstDic_h #define _cisstDic_h ...
32.38
29
(translation_unit) "/*\n\n Safety Framework for Component-based Robotics\n\n Created on: August 16, 2012\n\n Copyright (C) 2012 <NAME>, <NAME>\n\n Distributed under the Boost Software License, Version 1.0.\n (See accompanying file LICENSE_1_0.txt or copy at\n http://www.boost.org/LICENSE_1_0.txt)\n\n*/\n\n#ifndef...
115
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 32.38, "nodes": 56, "errors": 0, "source_hash": "8439d590f93729c5f084d3952c77e14d037a52b95bf4932be3c1c831fa6cdf91", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,615
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import "JSExport-Protocol.h" @class JSValue, NSDictionary, NSString, VZMistPageWeakWrapper; @protocol O2OTemplateRpcHelperExport <JSExport...
36.35
17
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.\n//\n\n#import "JSExport-Protocol.h"\n\n@class JSValue, NSDictionary, NSString, VZMistPageWeakWrapper;\n\n@protocol O2OTem...
154
18
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 36.35, "nodes": 98, "errors": 0, "source_hash": "180b575ed86f6f548a853698a27f46c1263698bf9cd34000e57a811ed8568cb1", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
3,616
c
// // Image.h // // Created by Christian on 12/27/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #pragma once #include<vector> #include<OpenGL/gl3.h> #include "glm/glm.hpp" class Image { public: Image(int index, GLsizei width, GLsizei height, std::vector<unsigned char>& pixels); const unsigned WID...
23
24
(translation_unit) "//\n// Image.h\n//\n// Created by Christian on 12/27/14.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n#pragma once\n#include<vector>\n#include<OpenGL/gl3.h>\n#include "glm/glm.hpp"\nclass Image\n{\npublic:\n Image(int index, GLsizei width, GLsizei height, std::vector<unsigned char>...
187
11
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 23.0, "nodes": 114, "errors": 0, "source_hash": "5d24d2bf93e630782bccc1aba8ab941917b72fcea743028e6623198b6a9dc5d7", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
3,617
c
#include <stdio.h> #include "testC.h" void PrintHelloWorldArchive(void) { fprintf(stderr, "Hello World Static!\n"); }
18.83
6
(translation_unit) "#include <stdio.h>\n\n#include "testC.h"\n\nvoid PrintHelloWorldArchive(void)\n{\n fprintf(stderr, "Hello World Static!\n");\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include "testC.h"\n" (#include) "#incl...
36
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 18.83, "nodes": 19, "errors": 0, "source_hash": "060efd45ba113463b9b51a67149396a4fed5e98e4c272539a1e9ef116f719154", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
3,618
c
/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkImageToMeshFilter.h Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Insight Software Consortium. All rights reserved. See ITKCopyright.txt...
39.66
71
(translation_unit) "/*=========================================================================\n\n Program: Insight Segmentation & Registration Toolkit\n Module: itkImageToMeshFilter.h\n Language: C++\n Date: $Date$\n Version: $Revision$\n\n Copyright (c) Insight Software Consortium. All rights rese...
313
16
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 39.66, "nodes": 195, "errors": 0, "source_hash": "d21156822994e226d44f4b0736c9f83ccc79b6fd8e0f1aa9e9cd78409482b8d4", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,619
c
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> QT_BEGIN_NAMESPACE namespace Ui { class MainWindow; } QT_END_NAMESPACE class MainWindow : public QMainWindow { Q_OBJECT public: MainWindow(QWidget *parent = nullptr); ~MainWindow(); void paintEvent(QPaintEvent *event); QTimer *t1, ...
23.44
27
(translation_unit) "#ifndef MAINWINDOW_H\n#define MAINWINDOW_H\n\n#include <QMainWindow>\n\nQT_BEGIN_NAMESPACE\nnamespace Ui { class MainWindow; }\nQT_END_NAMESPACE\n\nclass MainWindow : public QMainWindow\n{\n Q_OBJECT\n\npublic:\n MainWindow(QWidget *parent = nullptr);\n ~MainWindow();\n void paintEvent(Q...
214
6
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 23.44, "nodes": 150, "errors": 0, "source_hash": "c43f2e208099cba100f1f93dc0112348bf075fe258c98e6dd368327528f6d153", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
3,620
c
// public interface for the nrf driver. // we do the gross thing of having a global variable. #include "nrf-internal.h" #include "timeout.h" #if 0 // we hard-code that there is one nrf for the whole system. // it's better to support multiple --- for such usage you'd // need interrupts, so you'd have a way to associ...
37.14
104
(translation_unit) "// public interface for the nrf driver.\n// we do the gross thing of having a global variable.\n\n#include "nrf-internal.h"\n#include "timeout.h"\n\n#if 0\n// we hard-code that there is one nrf for the whole system. \n// it's better to support multiple --- for such usage you'd\n// need interrupts, ...
781
0
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 37.14, "nodes": 470, "errors": 0, "source_hash": "cebbbe8beab803193dc3a033e3bee9ea58b29720f10f26072d1e939eac0e50c5", "categorized_nodes": 340}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,621
c
#ifndef TYPES_H #define TYPES_H #include "globals.h" #include "BigInteger.hh" #include "node.h" using std::ofstream; using std::vector; using std::string; struct Element { Element() : prime(false) {}; int id; bool prime; bool operator == (const Element & rhs) const; bool operator != (const E...
16.44
36
(translation_unit) "#ifndef TYPES_H \n#define TYPES_H \n \n#include "globals.h" \n#include "BigInteger.hh" \n#include "node.h" \n \nusing std::ofstream; \nusing std::vector; \nusing std::string; \n \nstruct Element { \n Element() : prime(false) {}; \n \n int id; \n bool prime; \n \n bool operator == (const Element & rh...
185
13
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 16.44, "nodes": 110, "errors": 0, "source_hash": "5c63016c6b4bb45efbe68dd6c36469de2ec28cf9d05e22d3e5dc52889b2a6f3c", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
3,622
c
// Copyright (c) 1998-2003 INRIA Sophia-Antipolis (France). // All rights reserved. // // This file is part of CGAL (www.cgal.org). // // $URL$ // $Id$ // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial // $Date$ // // // Author(s) : <NAME> <<EMAIL>> #ifndef CGAL_TEST_WEIGHTED_ALPHA_SHAPE_3_H #...
36.94
140
(translation_unit) "// Copyright (c) 1998-2003 INRIA Sophia-Antipolis (France).\n// All rights reserved.\n//\n// This file is part of CGAL (www.cgal.org).\n//\n// $URL$\n// $Id$\n// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial\n// $Date$\n//\n//\n// Author(s) : <NAME> <<EMAIL>>\n\n#ifndef CGA...
1,843
42
{"language": "c", "success": true, "metadata": {"lines": 140, "avg_line_length": 36.94, "nodes": 1034, "errors": 0, "source_hash": "60b5e876cda7a8bba2ec6ae44aa60e90f1b20f87be25bc9d9991f96bdcf0c160", "categorized_nodes": 778}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
3,623
c
#pragma once #include "coord/builtin/type.h" #include "coord/protobuf/init.h" #include <uv.h> #include <map> #include <tuple> extern "C" { #include <lua/lua.h> #include <lua/lualib.h> #include <lua/lauxlib.h> } namespace coord {//tolua_export class Coord; namespace protobuf{ class Reflect; } namespace gate {//to...
22.67
49
(translation_unit) "#pragma once \n\n#include "coord/builtin/type.h"\n#include "coord/protobuf/init.h"\n#include <uv.h>\n#include <map>\n#include <tuple>\n\nextern "C" {\n#include <lua/lua.h>\n#include <lua/lualib.h>\n#include <lua/lauxlib.h>\n}\n\n\nnamespace coord {//tolua_export\nclass Coord;\n\nnamespace protobuf{\...
303
4
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 22.67, "nodes": 187, "errors": 0, "source_hash": "a56fd48971107902b989e46b49d8420b87f8d07eb9b36e2729a2ed1634c523ee", "categorized_nodes": 130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
3,624
c
#include <stdio.h> #include <math.h> int main(void) { double a = 2.32f; char str[8]; double integral; double fractional = modf(a, &integral); snprintf(str, 8, "%.2f", fractional); puts(str); snprintf(str, 8, "%.2f", integral); puts(str); }
20.33
12
(translation_unit) "#include <stdio.h>\n#include <math.h>\n\nint main(void) {\n double a = 2.32f;\n char str[8];\n double integral;\n double fractional = modf(a, &integral);\n\n snprintf(str, 8, "%.2f", fractional);\n puts(str);\n snprintf(str, 8, "%.2f", integral);\n puts(str);\n\n}\n" (preproc_include) "#in...
104
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 20.33, "nodes": 60, "errors": 0, "source_hash": "8f6a5005b63c3f4e6802ecd13152310ac72caf29233f8734963c7736bf2052a5", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
3,625
c
// // FDSerialEngine.h // program // // Created by <NAME> on 1/7/13. // Copyright (c) 2013 Firefly Design. All rights reserved. // #import <Foundation/Foundation.h> @class FDUSBDevice; @interface FDSerialEngine : NSObject @property FDUSBDevice *usbDevice; @property NSTimeInterval timeout; - (void)reset; - (voi...
32.09
33
(translation_unit) "//\n// FDSerialEngine.h\n// program\n//\n// Created by <NAME> on 1/7/13.\n// Copyright (c) 2013 Firefly Design. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@class FDUSBDevice;\n\n@interface FDSerialEngine : NSObject\n\n@property FDUSBDevice *usbDevice;\n@property NSTimeInter...
339
27
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 32.09, "nodes": 203, "errors": 0, "source_hash": "8fc35b18a4d366755b6a38fa8b3ac26493eae65e12c9477f1200e0b9e68b1fc8", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
3,626
c
#ifndef _SIMPLE_TILES_UTIL_H #define _SIMPLE_TILES_UTIL_H #include <time.h> #ifdef __cplusplus extern "C" { #endif char *simplet_copy_string(const char *src); int simplet_parse_color(const char *src, unsigned int *r, unsigned int *g, unsigned int *b, unsigned int *a); #define SIMPLET_CCEIL 25...
24.43
14
(translation_unit) "#ifndef _SIMPLE_TILES_UTIL_H\n#define _SIMPLE_TILES_UTIL_H\n#include <time.h>\n#ifdef __cplusplus\nextern "C" {\n#endif\n\nchar *simplet_copy_string(const char *src);\n\nint simplet_parse_color(const char *src, unsigned int *r, unsigned int *g,\n unsigned int *b, unsigned int ...
98
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 24.43, "nodes": 77, "errors": 0, "source_hash": "f3502003b77694f4e6fe7f7a288e98ce3c7e5ffb55b53d7a15a299fd10be23f2", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,627
c
#ifndef NOTE_H #define NOTE_H #include <QObject> #include <QtDebug> #include <QGraphicsOpacityEffect> #include <QSoundEffect> #include <QTimer> #include "item.h" class UI; class Note : public QObject { Q_OBJECT public: UI *_UI; qint32 _Num; qint32 _ColourNum; qint32 _Colourstyle; qint32 _Cu...
20.59
49
(translation_unit) "#ifndef NOTE_H\n#define NOTE_H\n\n#include <QObject>\n#include <QtDebug>\n#include <QGraphicsOpacityEffect>\n#include <QSoundEffect>\n#include <QTimer>\n#include "item.h"\n\nclass UI;\n\nclass Note : public QObject\n{\n Q_OBJECT\n\npublic:\n\n UI *_UI;\n qint32 _Num;\n qint32 _ColourNum;...
249
8
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 20.59, "nodes": 170, "errors": 0, "source_hash": "a0cb4e240d08c1bf643234888044f5433ec97c5b72b29e2c4e485a5ac88075e2", "categorized_nodes": 142}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,628
c
/**************************************************************************** * boards/arm/samv7/same70-qmtech/src/sam_gpio.c * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regardi...
32.41
277
(translation_unit) "/****************************************************************************\n * boards/arm/samv7/same70-qmtech/src/sam_gpio.c\n *\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for addit...
1,972
25
{"language": "c", "success": true, "metadata": {"lines": 277, "avg_line_length": 32.41, "nodes": 1283, "errors": 0, "source_hash": "be79bb518ce7550bffd5bacc00ad088498cabd7eb1c818f24c5bede96da55540", "categorized_nodes": 913}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
3,629
c
#ifndef FONT_IMPL_H_ #define FONT_IMPL_H_ #include "lua_stack.h" #include "SDL_TTF.h" #include "ttf_library.h" #include "boost/filesystem.hpp" #include <boost/flyweight.hpp> #include <boost/flyweight/key_value.hpp> #include "ttf_exception.h" namespace sdl { typedef std::pair<boost::filesystem::path, int> FontKey; stru...
20.24
49
(translation_unit) "#ifndef FONT_IMPL_H_\n#define FONT_IMPL_H_\n#include "lua_stack.h"\n#include "SDL_TTF.h"\n#include "ttf_library.h"\n#include "boost/filesystem.hpp"\n#include <boost/flyweight.hpp>\n#include <boost/flyweight/key_value.hpp>\n#include "ttf_exception.h"\nnamespace sdl\n{\ntypedef std::pair<boost::filesy...
340
23
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 20.24, "nodes": 186, "errors": 0, "source_hash": "4010a81071d1fb938092e37d7a828d9214c35aab0adb0b601bcd046d9c631890", "categorized_nodes": 131}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,630
c
#include <stdio.h> int main() { int a = 100; void (^block5)(int) = ^(int paramA) { printf("%d\n", paramA); }; block5(a); void (^block51)() = ^() { printf("block51"); }; block51(); return 0; }
14.87
15
(translation_unit) "#include <stdio.h>\n\nint main()\n{\n int a = 100;\n void (^block5)(int) = ^(int paramA) {\n printf("%d\n", paramA);\n };\n block5(a);\n\n\n void (^block51)() = ^() {\n printf("block51");\n };\n block51();\n\n return 0;\n}\n\n" (preproc_include) "#include <stdio....
121
5
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 14.87, "nodes": 68, "errors": 0, "source_hash": "afecb74488773a577e211a2e9a6f7dd0f2ce87635f010facc45df752f714d928", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
3,631
c
#include <stdio.h> #include <string.h> #include <stdlib.h> #include "fs.h" FILE* fptr; struct partition tf;//total file int root_node; struct inode* root_ptr; int user_node; struct inode* user_ptr; char buffer[1024]; int block_num=0; int block_store[0x6]; int user_db_size=0; void init_partition() { /* ============...
25.79
132
(translation_unit) "#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include "fs.h"\n\nFILE* fptr;\nstruct partition tf;//total file\nint root_node;\nstruct inode* root_ptr;\nint user_node;\nstruct inode* user_ptr;\nchar buffer[1024];\nint block_num=0;\nint block_store[0x6];\nint user_db_size=0;\n\n\nvoid...
1,113
0
{"language": "c", "success": true, "metadata": {"lines": 132, "avg_line_length": 25.79, "nodes": 663, "errors": 0, "source_hash": "4accbac8add277441ee1b957d0de02391117f644d3bb770f133892acc51a41aa", "categorized_nodes": 480}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,632
c
#import <UIKit/UIKit.h> @interface UIFont (ChauPhilomeneOne) + (instancetype)chauPhilomeneOneRegularFontOfSize:(CGFloat)size; + (instancetype)chauPhilomeneOneItalicFontOfSize:(CGFloat)size; @end
38
5
(translation_unit) "#import <UIKit/UIKit.h>\n@interface UIFont (ChauPhilomeneOne)\n\n+ (instancetype)chauPhilomeneOneRegularFontOfSize:(CGFloat)size;\n+ (instancetype)chauPhilomeneOneItalicFontOfSize:(CGFloat)size;\n\n@end\n\n" (preproc_call) "#import <UIKit/UIKit.h>\n" (preproc_directive) "#import" (preproc_...
50
6
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 38.0, "nodes": 30, "errors": 0, "source_hash": "18405cf48253e3359573213bd97cc17eba2c34806f54e841b199ed3cdad68739", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UI...
3,633
c
#pragma once #define STRINGIFY(A) #A #include "ofMain.h" #include "ofxPatches/Patch.h" namespace ofxPatches { class BitwiseOR : public Patch { public: BitwiseOR * create() { return new BitwiseOR(); }; BitwiseOR(){ name = "Bitwise OR"; maxPasses = 1; fragmentShader = STRINGIFY( ...
21.79
42
(translation_unit) "#pragma once\n\n#define STRINGIFY(A) #A\n\n#include "ofMain.h"\n#include "ofxPatches/Patch.h"\n\n\nnamespace ofxPatches {\n \n class BitwiseOR : public Patch {\n public:\n BitwiseOR * create() { return new BitwiseOR(); };\n \n BitwiseOR(){\n name = "Bitwise OR";\n \n maxPasses = 1;\n \n ...
293
5
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 21.79, "nodes": 177, "errors": 0, "source_hash": "7ad2640bdd1cf3297f89755d83c664b164d9dbf6ddf56052856c8448c9e6d23d", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
3,634
c
/* randomize - shuffle lines in a file ** ** Copyright (C) 1993,2000,2009 by <NAME> <<EMAIL>>. ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without ** modification, are permitted provided that the following conditions ** are met: ** 1. Redistributions of source code must reta...
27.97
104
(translation_unit) "/* randomize - shuffle lines in a file\n**\n** Copyright (C) 1993,2000,2009 by <NAME> <<EMAIL>>.\n** All rights reserved.\n**\n** Redistribution and use in source and binary forms, with or without\n** modification, are permitted provided that the following conditions\n** are met:\n** 1. Redistributi...
688
0
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 27.97, "nodes": 422, "errors": 0, "source_hash": "b57d8e9cf70ebc38285dab8a256c56975006d5b66ce455aa5ffd22e69160f806", "categorized_nodes": 269}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,635
c
#ifndef HDR_ERROR #define HDR_ERROR #include <stddef.h> enum AbortType { ABORT_ALLOCATION, ABORT_ATEXIT, ABORT_NO_FILE, ABORT_NUM_ARGS, ABORT_NO_FREE_TARGET, ABORT_FATAL_ERROR, }; enum ErrorType { ERROR_LONG_LEXEME, ERROR_NOT_NUM, ERROR_NOT_HEX, ERROR_NO_NUM, ERROR_NO_HEX, ERROR_NOT_CHIP, ERROR_UNEXPECTE...
13.43
65
(translation_unit) "#ifndef HDR_ERROR\n#define HDR_ERROR\n#include <stddef.h>\n\nenum AbortType {\n ABORT_ALLOCATION,\n ABORT_ATEXIT,\n ABORT_NO_FILE,\n ABORT_NUM_ARGS,\n ABORT_NO_FREE_TARGET,\n ABORT_FATAL_ERROR,\n};\n\nenum ErrorType {\n ERROR_LONG_LEXEME,\n ERROR_NOT_NUM,\n ERROR_NOT_HEX,\n ERROR_NO_NUM,\n ERROR_NO_...
229
0
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 13.43, "nodes": 161, "errors": 0, "source_hash": "8aa4de37c27c19a2c5dde1bd2c96de076134233e3e35c83128f3b8607037c25e", "categorized_nodes": 121}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,636
c
/* ARM configuration file; HZ is 100 rather than the default 60 */ #ifndef _SYS_PARAM_H # define _SYS_PARAM_H #include <machine/param.h> #include <machine/endian.h> #ifndef NBBY # define NBBY 8 /* number of bits in a byte */ #endif #ifndef HZ # define HZ (60) #endif #ifndef NOFILE # define NOFILE (60) #endif #ifnde...
21.45
20
(translation_unit) "/* ARM configuration file; HZ is 100 rather than the default 60 */\n\n#ifndef _SYS_PARAM_H\n# define _SYS_PARAM_H\n\n#include <machine/param.h>\n#include <machine/endian.h>\n\n#ifndef NBBY\n# define NBBY 8 /* number of bits in a byte */\n#endif\n#ifndef HZ\n# define HZ (60)\n#endif\n#ifndef NOFILE\...
68
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 21.45, "nodes": 59, "errors": 0, "source_hash": "b58f423316c7efbaa8e48277120ed5c7b8cb1257b7cc172e0a52332805871bf0", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,637
c
#pragma once #include <memory> #include <functional> struct event_base; namespace recipes { class TimerEventWatcher; class InvokeTimer; typedef std::shared_ptr<InvokeTimer> InvokeTimerPtr; class InvokeTimer : public std::enable_shared_from_this<InvokeTimer> { public: typedef std::function<void()> Functor; ...
28.79
33
(translation_unit) "#pragma once\n\n#include <memory>\n#include <functional>\n\nstruct event_base;\n\nnamespace recipes {\n\nclass TimerEventWatcher;\nclass InvokeTimer;\n\ntypedef std::shared_ptr<InvokeTimer> InvokeTimerPtr;\n\nclass InvokeTimer : public std::enable_shared_from_this<InvokeTimer> {\npublic:\n typede...
252
10
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 28.79, "nodes": 156, "errors": 0, "source_hash": "4192d1290b92e99fd13ec28cecf480265bf302c211b29e3dcf55051e1b389d8e", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
3,638
c
#ifndef __TOKEN_H__ #define __TOKEN_H__ #include <sstream> #include <iostream> #include <any> #include "object.h" #include "types.h" #include <memory> namespace lasm { class Token { public: Token(TokenType type, std::string lexeme, LasmObject literal, int line, std::string ...
26.93
46
(translation_unit) "#ifndef __TOKEN_H__\n#define __TOKEN_H__\n\n#include <sstream>\n#include <iostream>\n#include <any>\n#include "object.h"\n#include "types.h"\n#include <memory>\n\nnamespace lasm {\n class Token {\n public:\n Token(TokenType type, std::string lexeme, LasmObject literal, int line,...
294
14
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 26.93, "nodes": 172, "errors": 0, "source_hash": "919b5f8d3e30277489abc32ab5a24824651277823e37de741389510e5a804e49", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,639
c
// // UIButton+Extension.h // PandaShop // // Created by songlin on 30/03/2018. // Copyright © 2018 com.cn.camel. All rights reserved. // #import <UIKit/UIKit.h> @interface UIButton (Extension) /** 设置按钮的四个边缘距离 @param top 顶部 @param right 右边 @param bottom 下面 @param left 左边 */ - (void)setEnlargeEdgeWithTop:...
20.36
22
(translation_unit) "//\n// UIButton+Extension.h\n// PandaShop\n//\n// Created by songlin on 30/03/2018.\n// Copyright © 2018 com.cn.camel. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIButton (Extension)\n\n\n/**\n 设置按钮的四个边缘距离\n\n @param top 顶部\n @param right 右边\n @param bottom 下面\n @param lef...
71
6
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 20.36, "nodes": 38, "errors": 0, "source_hash": "17c85aad54f37eaf87c3bbf0639f6fe0b4583317eeed20b0a10c48dfc3eda9a5", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
3,640
c
#pragma once #include "../pch.h" /* Swappable Engine Factory, I think a better variation to the Factory Pattern */ namespace car_factory { // engine tag is public // thus clients can also use it // to order a car of particular kind enum class engine_tag : char { old = 'O', next = 'N' }; namespace engine_w...
32.94
160
(translation_unit) "#pragma once\n#include "../pch.h"\n\n/*\n Swappable Engine Factory, I think a better variation to the \n Factory Pattern\n*/\n\nnamespace car_factory {\n\n // engine tag is public\n // thus clients can also use it\n // to order a car of particular kind\n enum class engine_tag : char { old = 'O', n...
1,033
70
{"language": "c", "success": true, "metadata": {"lines": 160, "avg_line_length": 32.94, "nodes": 565, "errors": 0, "source_hash": "ccbb5e851e89d5b7020746729816d8f79d799e690a2dfceb0ed6de896be95c0b", "categorized_nodes": 378}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
3,641
c
#include "../../i386/lxstat.c"
30
1
(translation_unit) "#include "../../i386/lxstat.c"\n" (preproc_include) "#include "../../i386/lxstat.c"\n" (#include) "#include" (string_literal) ""../../i386/lxstat.c"" (") """ (string_content) "../../i386/lxstat.c" (") """
7
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 30.0, "nodes": 3, "errors": 0, "source_hash": "71589f5b377cb813c28956fd1d58fa4b1de5119c2cbeb64f9e23227ac710f8df", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \...
3,642
c
#ifndef LIST_H #define LIST_H #define YES 1 #define NO 0 typedef struct list_t list_t; struct list_t { unsigned int size; unsigned int capacity; void** _data; }; list_t* list_create(unsigned int capacity); void list_resize(list_t* list, unsigned int capacity); void* list_get(list_t* list, unsigned int index); vo...
30.75
20
(translation_unit) "#ifndef LIST_H\n#define LIST_H\n\n#define YES 1\n#define NO 0\n\ntypedef struct list_t list_t;\n\nstruct list_t {\n unsigned int size;\n unsigned int capacity;\n void** _data;\n};\n\nlist_t* list_create(unsigned int capacity);\nvoid list_resize(list_t* list, unsigned int capacity);\nvoid* list_get(l...
225
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 30.75, "nodes": 175, "errors": 0, "source_hash": "d1085c9b4a2550b6c7408dced57d0c1e33004509711075d99cef7e4b1b2933a0", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
3,643
c
#ifndef COUCHCPP_COMMON_HEADER #define COUCHCPP_COMMON_HEADER #pragma once #include "../api.h" class IProc { public: typedef std::function<void(const Value &key, const Value &value)> EmitFn; typedef std::function<void(const StrViewA &string)> LogFn; typedef std::function<Value()> GetRowFn; typedef std::functio...
32
291
(translation_unit) "#ifndef COUCHCPP_COMMON_HEADER\n#define COUCHCPP_COMMON_HEADER\n\n#pragma once\n\n#include "../api.h"\n\n\nclass IProc {\npublic:\n\n typedef std::function<void(const Value &key, const Value &value)> EmitFn;\n typedef std::function<void(const StrViewA &string)> LogFn;\n typedef std::function<Value()...
1,239
76
{"language": "c", "success": true, "metadata": {"lines": 291, "avg_line_length": 32.0, "nodes": 717, "errors": 0, "source_hash": "6892eb2186e2bc7c55477e37d2c51de042c3235c1087b772712a6fba9e5c3d4b", "categorized_nodes": 515}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,644
c
#include <stdio.h> int main() { char option = 'p'; printf("Enter 'P' to show a pine and 'S' to show a squade. [P/S]\n"); scanf("%c", &option); if (option == 'P' || option == 'p') { printf(" X\n"); printf(" XXX\n"); printf(" XXXXX\n"); printf(" XXXXXXX\n"); printf(" ...
21.4
30
(translation_unit) "#include <stdio.h>\n\nint main()\n{\n\n char option = 'p';\n\n printf("Enter 'P' to show a pine and 'S' to show a squade. [P/S]\n");\n scanf("%c", &option);\n\n if (option == 'P' || option == 'p')\n {\n printf(" X\n");\n printf(" XXX\n");\n printf(" XXXXX\n");\n print...
276
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 21.4, "nodes": 138, "errors": 0, "source_hash": "cb1018e512b7574c549620de1b85904392b4535ca5ebdcf46f3a68c40adb43bb", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
3,645
c
/** * Copyright (c) 2014, Institute of Telematics, Karlsruhe Institute of Technology. * * This file is part of the PktAnon project. PktAnon is distributed under 2-clause BSD licence. * See LICENSE file found in the top-level directory of this distribution. */ #ifndef PKTANON_PCAPHEADERS_H #define PKTANON_PCAPHE...
29.49
39
(translation_unit) "/**\n * Copyright (c) 2014, Institute of Telematics, Karlsruhe Institute of Technology.\n * \n * This file is part of the PktAnon project. PktAnon is distributed under 2-clause BSD licence. \n * See LICENSE file found in the top-level directory of this distribution.\n */\n\n#ifndef PKTANON_PCAPHEADE...
147
2
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 29.49, "nodes": 92, "errors": 0, "source_hash": "4e79ff08e42416014caf98f59eb07d8744be5c5fb0550e35b5f1f93e36abaf7e", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,646
c
/** * Student class for CE221 Assignment 2 - ex1 * created by msands, edited by mal 19th Dec 2019 */ #ifndef _STUDENT_H_ #define _STUDENT_H_ #include <string> #include <map> #include <stdexcept> #include <vector> #include "Person.h" using namespace std; class NoMarkException: public exception { }; /** * Studen...
35.58
130
(translation_unit) "/**\n * Student class for CE221 Assignment 2 - ex1\n * created by msands, edited by mal 19th Dec 2019\n */\n\n#ifndef _STUDENT_H_\n#define _STUDENT_H_\n\n#include <string>\n#include <map>\n#include <stdexcept>\n#include <vector>\n#include "Person.h"\n\nusing namespace std;\n\nclass NoMarkException: ...
279
13
{"language": "c", "success": true, "metadata": {"lines": 130, "avg_line_length": 35.58, "nodes": 156, "errors": 0, "source_hash": "5fa19b0f358cc5162882eb859f1386bd015a1680b3300d0d68a7cab7d52fc0c3", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
3,647
c
/** * animal_builder_monkey.c 2014-04-28 16:14:06 * anonymouse(<EMAIL>) * * Copyright (C) 2000-2014 All Right Reserved * * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND/O...
34.04
53
(translation_unit) "/**\n * animal_builder_monkey.c 2014-04-28 16:14:06\n * anonymouse(<EMAIL>)\n *\n * Copyright (C) 2000-2014 All Right Reserved\n * \n * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY\n * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE\n * IMPLIED WARRANTI...
288
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 34.04, "nodes": 171, "errors": 0, "source_hash": "b585c79108299092273f19218547a72fee32c49f5bd41d0e7682228780ff6680", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,648
c
#pragma once #include "Endpoint.h" class EndpointIdentify : public Endpoint { public: EndpointIdentify(HomeControlMagic* hcm_ptr, int8_t pin); void incomingMessage(const char* topic, const uint8_t* payload, const unsigned int length); private: uint8_t m_pin; };
26.4
10
(translation_unit) "#pragma once\n\n#include "Endpoint.h"\n\nclass EndpointIdentify : public Endpoint\n{\npublic:\n EndpointIdentify(HomeControlMagic* hcm_ptr, int8_t pin);\n\n void incomingMessage(const char* topic, const uint8_t* payload, const unsigned int length);\n\nprivate:\n uint8_t m_pin;\n};\n" (pre...
78
2
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 26.4, "nodes": 45, "errors": 0, "source_hash": "62ed1bfbb921f0cc4f505f36de90d3ed2891aa25391af3d2f53c596865f1ebd4", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
3,649
c
/* * $Id: c_velvec.c,v 1.5 2008-07-23 16:17:08 haley Exp $ */ /************************************************************************ * * * Copyright (C) 2000 * * University Corporation fo...
27.77
47
(translation_unit) "/*\n * $Id: c_velvec.c,v 1.5 2008-07-23 16:17:08 haley Exp $\n */\n/************************************************************************\n* *\n* Copyright (C) 2000 *\n* ...
271
3
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 27.77, "nodes": 189, "errors": 0, "source_hash": "c7119261d34bf3e6054b20ab767295e5152c483972dd73cb5c732e186225cc57", "categorized_nodes": 109}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,650
c
#ifndef ATA_CLIENT_H #define ATA_CLIENT_H #include <stdint.h> #include <stdlibadd/array.h> #include <drivers/ata/ata_driver_messages.h> typedef struct ata_sector { uint32_t size; void* data[]; } ata_sector_t; ata_sector_t* ata_read_sector(uint32_t sector_lba); void ata_write_sector(uint32_t sector_lba, void* secto...
26.75
12
(translation_unit) "#ifndef ATA_CLIENT_H\n#define ATA_CLIENT_H\n\n#include <stdint.h>\n#include <stdlibadd/array.h>\n#include <drivers/ata/ata_driver_messages.h>\n\ntypedef struct ata_sector {\n uint32_t size;\n void* data[];\n} ata_sector_t;\n\nata_sector_t* ata_read_sector(uint32_t sector_lba);\nvoid ata_write_sector...
70
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 26.75, "nodes": 54, "errors": 0, "source_hash": "6f162a841c52792c1d087298c481a565d1e3cf00ba0fa98f5f9b58eb906af246", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,651
c
#include <stdio.h> #include <stdlib.h> typedef struct _node { int id; struct _node *prev, *next; } node; int main() { int n, m, q; scanf("%d%d%d", &n, &m, &q); node *p1 = (node *)malloc(sizeof(node)), *p2 = p1; p1->id = 1; p1->next = p1; p1->prev = p1; for (int i = 2; i <= n; i++) { node *p = (node *)mallo...
17.46
37
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\ntypedef struct _node {\n int id;\n struct _node *prev, *next;\n} node;\n\nint main() {\n int n, m, q;\n scanf("%d%d%d", &n, &m, &q);\n node *p1 = (node *)malloc(sizeof(node)), *p2 = p1;\n p1->id = 1;\n p1->next = p1;\n p1->prev = p1;\n for (int i = 2; i <= ...
382
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 17.46, "nodes": 246, "errors": 0, "source_hash": "6d0de047dc1de36989b1e97ef92abcf4f6e3819d048ec2484ca6f1bf0b4cb40d", "categorized_nodes": 182}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,652
c
/* Copyright (c) 2013-2016 <NAME> <<EMAIL>> */ #include "ring.h" void ring_vm_gc_checkreferences ( VM *pVM ) { int x ; List *pList, *pList2 ; Item *pItem ; /* Check References (Called when we delete a scope) */ pList = ring_list_getlist(pVM->pMem,ring_list_getsize(pVM->pMem)); for ( x = ring_list_getsize(pLis...
33.27
119
(translation_unit) "/* Copyright (c) 2013-2016 <NAME> <<EMAIL>> */\n#include "ring.h"\n\nvoid ring_vm_gc_checkreferences ( VM *pVM )\n{\n int x ;\n List *pList, *pList2 ;\n Item *pItem ;\n /* Check References (Called when we delete a scope) */\n pList = ring_list_getlist(pVM->pMem,ring_list_getsize(pVM->pMem));\n fo...
791
0
{"language": "c", "success": true, "metadata": {"lines": 119, "avg_line_length": 33.27, "nodes": 468, "errors": 0, "source_hash": "5124aeadf5862cb584011f59d60a66ffcd66a5b1eef9e41cb314c757e5a341a7", "categorized_nodes": 333}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,653
c
/*++ Copyright (c) 2000 Microsoft Corporation Module Name: isorwr.h Abstract: Environment: Kernel mode Notes: Copyright (c) 2000 Microsoft Corporation. All Rights Reserved. --*/ #ifndef _ISOUSB_RWR_H #define _ISOUSB_RWR_H typedef struct _SUB_CONTEXT { PIRP Su...
18.29
94
(translation_unit) "/*++ \n \nCopyright (c) 2000 Microsoft Corporation \n \nModule Name: \n \n isorwr.h \n \nAbstract: \n \nEnvironment: \n \n Kernel mode \n \nNotes: \n \n Copyright (c) 2000 Microsoft Corporation. \n All Rights Reserved. \n \n--*/ \n \n#ifndef _ISOUSB_RWR_H \n#define _ISOUSB_RWR_H \n \n...
250
20
{"language": "c", "success": true, "metadata": {"lines": 94, "avg_line_length": 18.29, "nodes": 193, "errors": 0, "source_hash": "7ebe16244a439d9e4f55f230ef3fbd834cbfee523f1b5cb3f8806552864e14f5", "categorized_nodes": 158}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,654
c
#import "Number.h" #import <Foundation/Foundation.h> @interface NumberParser : NSObject + (Number *)parse:(NSDictionary *)json key:(NSString *)key; @end
29.6
5
(translation_unit) "#import "Number.h"\n#import <Foundation/Foundation.h>\n\n@interface NumberParser : NSObject\n\n+ (Number *)parse:(NSDictionary *)json key:(NSString *)key;\n\n@end\n" (preproc_call) "#import "Number.h"\n" (preproc_directive) "#import" (preproc_arg) ""Number.h"" (preproc_call) "#import <Fo...
48
7
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 29.6, "nodes": 31, "errors": 0, "source_hash": "c2419c7105e3a3e0eaf7dc03cda44e0827743edf612e3cd6e33c44a07dcebbc7", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"N...
3,655
c
/* The Keccak sponge function, designed by <NAME>, <NAME>, <NAME> and <NAME>. For more information, feedback or questions, please refer to our website: http://keccak.noekeon.org/ Implementation by <NAME>, hereby denoted as "the implementer". To the extent possible under law, the implementer has waived all copyright a...
33.55
192
(translation_unit) "/*\nThe Keccak sponge function, designed by <NAME>, <NAME>,\n<NAME> and <NAME>. For more information, feedback or\nquestions, please refer to our website: http://keccak.noekeon.org/\n\nImplementation by <NAME>,\nhereby denoted as "the implementer".\n\nTo the extent possible under law, the implemente...
1,725
3
{"language": "c", "success": true, "metadata": {"lines": 192, "avg_line_length": 33.55, "nodes": 1113, "errors": 0, "source_hash": "2f7617883887acbb51ec653234acd35b062ad46020b379a4b8bcb8597421e2a5", "categorized_nodes": 720}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
3,656
c
/* xdone.c - xdone */ #include <kernel.h> #include <stdio.h> /*------------------------------------------------------------------------ * xdone -- print system completion message as last process exits *------------------------------------------------------------------------ */ int xdone() { kprintf("\n\nAll u...
30.17
12
(translation_unit) "/* xdone.c - xdone */\n#include <kernel.h>\n#include <stdio.h>\n\n/*------------------------------------------------------------------------\n * xdone -- print system completion message as last process exits\n *------------------------------------------------------------------------\n */\nint xdon...
41
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 30.17, "nodes": 22, "errors": 0, "source_hash": "09cc2918e2fe7dc7a389bff34ba405d73ae1bd0f1a7cc2336af0ee9a168d3998", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
3,657
c
// // Navigator.h // BasicProject // // Created by lanfeng on 17/1/17. // Copyright © 2017年 lanfeng. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface Navigator : NSObject @property (nonatomic, readonly, nullable) __kindof UINavigationController *navigationController; + (instan...
32.75
16
(translation_unit) "//\n// Navigator.h\n// BasicProject\n//\n// Created by lanfeng on 17/1/17.\n// Copyright © 2017年 lanfeng. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface Navigator : NSObject\n\n@property (nonatomic, readonly, nullable) __kindof UINavigationController...
101
12
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 32.75, "nodes": 67, "errors": 0, "source_hash": "5846c94f196dc0ba174c8cbd07d1c01c2b6d3cceecd811a7c425652c6c3000f4", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
3,658
c
// Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // // Copyright(C) 2005 <NAME> // // 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...
36.15
60
(translation_unit) "// Emacs style mode select -*- C++ -*- \n//-----------------------------------------------------------------------------\n//\n// Copyright(C) 2005 <NAME>\n//\n// This program is free software; you can redistribute it and/or\n// modify it under the terms of the GNU General Public License\n// as pub...
279
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 36.15, "nodes": 188, "errors": 0, "source_hash": "2bab0ffaf9a0ee62e5b5711b9cb30b4d51f36fd0f561cd720d569054bef7cb80", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,659
c
#include "esp_wifi.h" #include "esp_system.h" #include "esp_event.h" #include "esp_event_loop.h" #include "nvs_flash.h" esp_err_t event_handler(void *ctx, system_event_t *event) { if (event->event_id == SYSTEM_EVENT_SCAN_DONE) { uint16_t apCount = 0; esp_wifi_scan_get_ap_num(&apCount); printf("WiF...
31.24
74
(translation_unit) "#include "esp_wifi.h"\n#include "esp_system.h"\n#include "esp_event.h"\n#include "esp_event_loop.h"\n#include "nvs_flash.h"\n\nesp_err_t event_handler(void *ctx, system_event_t *event)\n{\n if (event->event_id == SYSTEM_EVENT_SCAN_DONE) {\n uint16_t apCount = 0;\n esp_wifi_scan_get_ap_nu...
601
0
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 31.24, "nodes": 347, "errors": 0, "source_hash": "0dbe261a0ae508e8c27b12c97d4245fcf8adb53b59b33eb1cf0093c8f7311953", "categorized_nodes": 237}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,660
c
// // FCColorSilder.h // FCFontKeyboard // // Created by zz on 2017/7/5. // Copyright © 2017年 FlyCatkin. All rights reserved. // #import <UIKit/UIKit.h> @protocol FCColorSliderDelegate <NSObject> - (void)colorSliderSelectColor:(UIColor *)color; @end @interface FCColorSlider : UIView @property (strong, nonatomi...
27.4
15
(translation_unit) "//\n// FCColorSilder.h\n// FCFontKeyboard\n//\n// Created by zz on 2017/7/5.\n// Copyright © 2017年 FlyCatkin. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@protocol FCColorSliderDelegate <NSObject>\n\n- (void)colorSliderSelectColor:(UIColor *)color;\n\n@end\n\n@interface FCColorSlider ...
92
13
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 27.4, "nodes": 64, "errors": 0, "source_hash": "deb734e0c6c90956c261d3c75ddeeff582269d69ca02f708eac0c2ab6ee66064", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKi...
3,661
c
// edreact.h ///////////////////////////////////////////////////////// // editor-reactor-definitions // // ATTENTION: do not modify this code. // #include <aced.h> ///////////////////////////////////////////////////////// // functions for CEditorReactor //declaration of CEditorReactor class CEditorReactor : public A...
24.4
20
(translation_unit) "// edreact.h\n/////////////////////////////////////////////////////////\n\n// editor-reactor-definitions\n//\n// ATTENTION: do not modify this code.\n//\n#include <aced.h>\n\n/////////////////////////////////////////////////////////\n// functions for CEditorReactor\n\n//declaration of CEditorReactor...
82
2
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 24.4, "nodes": 36, "errors": 0, "source_hash": "62cc5de9207d8fa23535964c898311091c4b290e1cab245d170cbcc04df380e7", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
3,662
c
#pragma once #ifndef OOSL_OPERATOR_ID_H #define OOSL_OPERATOR_ID_H namespace oosl{ namespace common{ enum class operator_id{ nil, comma, assignment, compound_plus, compound_minus, compound_times, compound_divide, compound_modulus, compound_bitwise_or, compound_bitwise_xor, compound...
15.1
63
(translation_unit) "#pragma once\n\n#ifndef OOSL_OPERATOR_ID_H\n#define OOSL_OPERATOR_ID_H\n\nnamespace oosl{\n namespace common{\n enum class operator_id{\n nil,\n comma,\n assignment,\n compound_plus,\n compound_minus,\n compound_times,\n compound_divide,\n compound_modulus,\n compound_bitwise_or,\...
192
2
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 15.1, "nodes": 125, "errors": 0, "source_hash": "6a8eb5d9dc9eba7980bb6e9097182b64f5c0cf9789cfa66f8888c71cc93ce1b0", "categorized_nodes": 118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
3,663
c
// // HYLabel.h // QAService // // Created by captain on 15/9/6. // Copyright (c) 2015年 李诚. All rights reserved. // #import <UIKit/UIKit.h> @interface HYLabel : UILabel /* * Label工厂 */ - (id)initWithFrame:(CGRect)frame text:(NSString *)text Color:(UIColor *)textColor font:(UIFont *)font alignment:(NSTextAlign...
23.43
14
(translation_unit) "//\n// HYLabel.h\n// QAService\n//\n// Created by captain on 15/9/6.\n// Copyright (c) 2015年 李诚. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface HYLabel : UILabel\n\n/*\n * Label工厂\n */\n- (id)initWithFrame:(CGRect)frame text:(NSString *)text Color:(UIColor *)textColor font:(U...
84
6
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 23.43, "nodes": 48, "errors": 0, "source_hash": "cda766564dcd6430cffd6827b2337649be9e8b9862d2eb44085e25695a223db7", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "t <UIKit/...
3,664
c
// Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // // $Id:$ // // Copyright (C) 1993-1996 by id Software, Inc. // // This source is available for distribution and/or modification // only under the terms of the DOOM Source Code License as ...
22.33
256
(translation_unit) "// Emacs style mode select -*- C++ -*- \n//----------------------------------------------------------------------------- \n// \n// $Id:$ \n// \n// Copyright (C) 1993-1996 by id Software, Inc. \n// \n// This source is available for distribution and/or modification \n// only under the terms of the D...
696
0
{"language": "c", "success": true, "metadata": {"lines": 256, "avg_line_length": 22.33, "nodes": 415, "errors": 0, "source_hash": "80507837264ba680998c5cc0ededa80a2c5f18c4cf540a1a94f8c081ec2a235e", "categorized_nodes": 291}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
3,665
c
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:51:34 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/AVConference.framework/AVConference * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 ...
34.24
17
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Sunday, September 27, 2020 at 11:51:34 AM Mountain Standard Time\n* Operating System: Version 14.0 (Build 18A373)\n* Image Source: /System/Library/PrivateFrameworks/AVConference.framework/AVConference\n* classdump-dyld is licensed under GPLv...
105
12
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 34.24, "nodes": 62, "errors": 0, "source_hash": "8880d6427c5dcae23350b1b6d142e726dbb693be4fde7b1c803750e954297ff9", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "c", "parent": nu...
3,666
c
/** * @file hl7800_http_fota.h * @brief * * Copyright (c) 2021 Laird Connectivity * * SPDX-License-Identifier: Apache-2.0 */ #ifndef __HL7800_HTTP_FOTA_H__ #define __HL7800_HTTP_FOTA_H__ #ifdef __cplusplus extern "C" { #endif /*********************************************************************...
29.92
65
(translation_unit) "/** \n * @file hl7800_http_fota.h \n * @brief \n * \n * Copyright (c) 2021 Laird Connectivity \n * \n * SPDX-License-Identifier: Apache-2.0 \n */ \n#ifndef __HL7800_HTTP_FOTA_H__ \n#define __HL7800_HTTP_FOTA_H__ \n \n#ifdef __cplusplus \nextern "C" { \n#endif \n \n/**********************************...
119
0
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 29.92, "nodes": 78, "errors": 0, "source_hash": "afb110c09bc04234279a4cc86f60dba4182be9c4e575db2bf940679deec4fcb0", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,667
c
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:54:20 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/CoreUtilsUI.framework/CoreUtilsUI * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by...
37.94
18
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Sunday, September 27, 2020 at 11:54:20 AM Mountain Standard Time\n* Operating System: Version 14.0 (Build 18A373)\n* Image Source: /System/Library/PrivateFrameworks/CoreUtilsUI.framework/CoreUtilsUI\n* classdump-dyld is licensed under GPLv3,...
95
9
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 37.94, "nodes": 53, "errors": 0, "source_hash": "973a2fb7abbd83e625249936766309e75ba42676af2836d5214e8b1d3f395c5e", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
3,668
c
// // ViewController.h // DataStackBenchmark // // Created by <NAME> on 26/05/16. // Copyright © 2016 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> typedef NS_ENUM(NSUInteger, BenchmarkType) { BenchmarkTypeWriting, BenchmarkTypeReading, BenchmarkTypeCounting }; @interface ViewController : U...
22
16
(translation_unit) "//\n// ViewController.h\n// DataStackBenchmark\n//\n// Created by <NAME> on 26/05/16.\n// Copyright © 2016 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\ntypedef NS_ENUM(NSUInteger, BenchmarkType) {\n BenchmarkTypeWriting,\n BenchmarkTypeReading,\n BenchmarkTypeCounting\...
51
9
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 22.0, "nodes": 29, "errors": 0, "source_hash": "07ab0e178eedea197c86062acd30dd1333e463cd7d6cb2629ad53de4bc774847", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UI...
3,669
c
#include <bits/stdc++.h> using namespace std; #define vs vector<string> #define pb push_back #define mp make_pair #define psc pair<string,char> #define pscs pair<psc,string> #define mpscs map<psc, string> #define ss set<string>
24.33
9
(translation_unit) "#include <bits/stdc++.h>\nusing namespace std;\n#define vs vector<string>\n#define pb push_back\n#define mp make_pair\n#define psc pair<string,char>\n#define pscs pair<psc,string>\n#define mpscs map<psc, string>\n#define ss set<string>\n" (preproc_include) "#include <bits/stdc++.h>\n" (#includ...
38
1
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 24.33, "nodes": 36, "errors": 0, "source_hash": "14b4e1ed3152628eff2ac00e272e9d86c5e8958b37658f1450439bb5d1fb70f5", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
3,670
c
#ifndef HASH_TABLE_H_INCLUDED #define HASH_TABLE_H_INCLUDED #include "Entry.h" /* simple_hashtable.c */ typedef struct item *HashTable; //retuns a boolean straight up comparable // of whether the key was successfully added int add_key(HashTable *hashtable,const char *key,const Entry entry); Entry find_key(const HashTa...
35.86
14
(translation_unit) "#ifndef HASH_TABLE_H_INCLUDED\n#define HASH_TABLE_H_INCLUDED\n#include "Entry.h"\n/* simple_hashtable.c */\n\ntypedef struct item *HashTable;\n//retuns a boolean straight up comparable\n// of whether the key was successfully added\nint add_key(HashTable *hashtable,const char *key,const Entry entry);...
120
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 35.86, "nodes": 82, "errors": 0, "source_hash": "0cf9d0fa47d0cf8fc0a821acd52d7b47d2bfe1b50757d59573ea2fd0ebba311a", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,671
c
#include "../../../src/xmlpatterns/expr/qcastableas_p.h"
56
1
(translation_unit) "#include "../../../src/xmlpatterns/expr/qcastableas_p.h" \n" (preproc_include) "#include "../../../src/xmlpatterns/expr/qcastableas_p.h" \n" (#include) "#include" (string_literal) ""../../../src/xmlpatterns/expr/qcastableas_p.h"" (") """ (string_content) "../../../src/xmlpatter...
7
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 56.0, "nodes": 3, "errors": 0, "source_hash": "b4e15ff03b552e2815412ad7f1feed11504406b2fb54404bdd0447001d8221e5", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \...
3,672
c
/* * Copyright (C) 2000 <NAME> (<EMAIL>) * (C) 2000 <NAME> (<EMAIL>) * (C) 2000 <NAME> <EMAIL>) * Copyright (C) 2003, 2006, 2007, 2011 Apple Inc. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Publi...
35.92
281
(translation_unit) "/*\n * Copyright (C) 2000 <NAME> (<EMAIL>)\n * (C) 2000 <NAME> (<EMAIL>)\n * (C) 2000 <NAME> <EMAIL>)\n * Copyright (C) 2003, 2006, 2007, 2011 Apple Inc. All rights reserved.\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of th...
2,291
86
{"language": "c", "success": true, "metadata": {"lines": 281, "avg_line_length": 35.92, "nodes": 1359, "errors": 0, "source_hash": "3fbd16e4cb28d0d394d222c1a0688a2fde3df854023a3a584e0d871a5dbad6b9", "categorized_nodes": 947}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
3,673
c
/* Copyright (C) 2003 Rice1964 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) any later version. This program is distributed in the hope that it...
28.99
159
(translation_unit) "/*\nCopyright (C) 2003 Rice1964\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU General Public License\nas published by the Free Software Foundation; either version 2\nof the License, or (at your option) any later version.\n\nThis program is dis...
1,813
39
{"language": "c", "success": true, "metadata": {"lines": 159, "avg_line_length": 28.99, "nodes": 1195, "errors": 0, "source_hash": "abc3f0294211d395455bb64e8275e0f2d9b66dea67d1a53d2fcbe4a344a25c27", "categorized_nodes": 802}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
3,674
c
// // JSNetworkInterface.h // JSNetwork // // Created by jiasong on 2020/4/18. // Copyright © 2020 jiasong. All rights reserved. // #import <Foundation/Foundation.h> #import "JSNetworkInterfaceProtocol.h" NS_ASSUME_NONNULL_BEGIN @interface JSNetworkInterface : NSObject <JSNetworkInterfaceProtocol> @end NS_ASSU...
24.38
13
(translation_unit) "//\n// JSNetworkInterface.h\n// JSNetwork\n//\n// Created by jiasong on 2020/4/18.\n// Copyright © 2020 jiasong. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "JSNetworkInterfaceProtocol.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface JSNetworkInterface : NSObject <JSNetwork...
35
4
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 24.38, "nodes": 20, "errors": 0, "source_hash": "6ac985d461baac8ea977a0b4dd796dcb3cbef71d6a7f1f88bf2728367f0386b4", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
3,675
c
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- vim:set ts=4 sw=4 sts=4 noet: */ #ifndef FLINT_PHML_NODE_H_ #define FLINT_PHML_NODE_H_ #include <libxml/globals.h> #include <libxml/xmlstring.h> namespace flint { namespace phml { class Node { public: Node(const Node &) = delete; Node &oper...
22.18
28
(translation_unit) "/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- vim:set ts=4 sw=4 sts=4 noet: */\n#ifndef FLINT_PHML_NODE_H_\n#define FLINT_PHML_NODE_H_\n\n#include <libxml/globals.h>\n#include <libxml/xmlstring.h>\n\nnamespace flint {\nnamespace phml {\n\nclass Node {\npublic:\n Node(con...
198
7
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 22.18, "nodes": 108, "errors": 0, "source_hash": "aa02401eebe11d968576411195d0d19f4ebc73437e6820a63ba1fd7b5eec685c", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
3,676
c
/*++ Copyright (C) 1996-1999 Microsoft Corporation Module Name: BINARY.H History: --*/ #ifndef ESPUTIL_BINARY_H #define ESPUTIL_BINARY_H // // Base class for binary classes. This allows serialization // of arbitrary data. // class CLocVariant; class CLocItem; #pragma warning(d...
20.44
167
(translation_unit) "/*++ \n \nCopyright (C) 1996-1999 Microsoft Corporation \n \nModule Name: \n \n BINARY.H \n \nHistory: \n \n--*/ \n \n \n#ifndef ESPUTIL_BINARY_H \n#define ESPUTIL_BINARY_H \n \n \n// \n// Base class for binary classes. This allows serialization \n// of arbitrary data. \n// \n \nclass CLocVari...
499
20
{"language": "c", "success": true, "metadata": {"lines": 167, "avg_line_length": 20.44, "nodes": 280, "errors": 0, "source_hash": "67d65f117a3b510a7be5d374ed9239cd4ba10e923ec642103237ccb0d952fdca", "categorized_nodes": 218}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
3,677
c
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and Freie Universit...
31.13
189
(translation_unit) "// --------------------------------------------------------------------------\n// OpenMS -- Open-Source Mass Spectrometry\n// --------------------------------------------------------------------------\n// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,\n// ETH Zur...
945
34
{"language": "c", "success": true, "metadata": {"lines": 189, "avg_line_length": 31.13, "nodes": 497, "errors": 0, "source_hash": "2cf31c4d6be2ee442bd29e73caa93946a75c02977fe7b8a7cc1c35069da388b0", "categorized_nodes": 367}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
3,678
c
// // This source file is part of appleseed. // Visit http://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2010-2013 <NAME>, Jupiter Jazz Limited // Copyright (c) 2014-2017 <NAME>, The appleseedhq Organization // // Permission is h...
31.92
199
(translation_unit) "//\n// This source file is part of appleseed.\n// Visit http://appleseedhq.net/ for additional information and resources.\n//\n// This software is released under the MIT license.\n//\n// Copyright (c) 2010-2013 <NAME>, Jupiter Jazz Limited\n// Copyright (c) 2014-2017 <NAME>, The appleseedhq Organiza...
2,226
47
{"language": "c", "success": true, "metadata": {"lines": 199, "avg_line_length": 31.92, "nodes": 1415, "errors": 0, "source_hash": "17877bb9ff49cdac536f731c6fa4599d9ca52257dda2e31a9d1b5b2c84aa45f9", "categorized_nodes": 1043}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#if...
3,679
c
/* * Copyright (c) 2016 CartoDB. All rights reserved. * Copying and using this code is allowed only according * to license terms, as given in https://cartodb.com/terms/ */ #ifndef _CARTO_MAPNIKVT_PARSERUTILS_H_ #define _CARTO_MAPNIKVT_PARSERUTILS_H_ #include "Value.h" #include "Expression.h" #include "Transform.h...
39.89
37
(translation_unit) "/*\n * Copyright (c) 2016 CartoDB. All rights reserved.\n * Copying and using this code is allowed only according\n * to license terms, as given in https://cartodb.com/terms/\n */\n\n#ifndef _CARTO_MAPNIKVT_PARSERUTILS_H_\n#define _CARTO_MAPNIKVT_PARSERUTILS_H_\n\n#include "Value.h"\n#include "Expre...
423
30
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 39.89, "nodes": 216, "errors": 0, "source_hash": "8adb7facb8983543fdf531f3f4f828f58eb96c2d23a0037a41ec79d068141bb7", "categorized_nodes": 167}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,680
c
// Author(s): <NAME> // Copyright: see the accompanying file COPYING or copy at // https://svn.win.tue.nl/trac/MCRL2/browser/trunk/COPYING // // 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) // /// \file mcrl2/mod...
28.34
65
(translation_unit) "// Author(s): <NAME>\n// Copyright: see the accompanying file COPYING or copy at\n// https://svn.win.tue.nl/trac/MCRL2/browser/trunk/COPYING\n//\n// Distributed under the Boost Software License, Version 1.0.\n// (See accompanying file LICENSE_1_0.txt or copy at\n// http://www.boost.org/LICENSE_1_0.t...
311
17
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 28.34, "nodes": 166, "errors": 0, "source_hash": "e22864c330451b7be2859bb30cef6b65ac03f6d5cc260a1775cd039ec0e16100", "categorized_nodes": 121}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef MCRL2_...
3,681
c
#include <XeSDK/IDelegate.h> #include <XeGame/XeGameImGuiHandler.h> namespace ImGuiSample { class FrameHelloWorld : public Xe::IDelegate<const Xe::Game::ImGuiFrameArgs&> { Xe::Graphics::Color m_ForeHsvColor; public: void operator()(const Xe::Game::ImGuiFrameArgs& args); }; }
24.82
11
(translation_unit) "#include <XeSDK/IDelegate.h>\n#include <XeGame/XeGameImGuiHandler.h>\n\nnamespace ImGuiSample\n{\n class FrameHelloWorld : public Xe::IDelegate<const Xe::Game::ImGuiFrameArgs&>\n {\n Xe::Graphics::Color m_ForeHsvColor;\n public:\n void operator()(const Xe::Game::ImGuiFrameArgs& args);\n };\n}" (...
81
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 24.82, "nodes": 40, "errors": 0, "source_hash": "3c9e515de60bdbefb9b0ecc7602312a90210ab3464ea583c39ffc788db98bfad", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
3,682
c
#ifndef AL_TREE_H #define AL_TREE_H typedef uintptr_t al_rbtree_key_t; typedef intptr_t al_rbtree_key_int_t; typedef struct al_rbtree_node_s al_rbtree_node_t; struct al_rbtree_node_s { al_rbtree_key_t key; al_rbtree_node_t *left; al_rbtree_node_t *right; al_rbtree_node_t *parent...
41.19
52
(translation_unit) "#ifndef AL_TREE_H\n#define AL_TREE_H\n\ntypedef uintptr_t al_rbtree_key_t;\ntypedef intptr_t al_rbtree_key_int_t;\n\ntypedef struct al_rbtree_node_s al_rbtree_node_t;\n\nstruct al_rbtree_node_s {\n al_rbtree_key_t key;\n al_rbtree_node_t *left;\n al_rbtree_node_t *right;\n...
388
0
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 41.19, "nodes": 286, "errors": 0, "source_hash": "3995f8794b952bdf7dbbe2d2b94ad10b90eadcdfb9fa4c26fe4f93be343e6f84", "categorized_nodes": 180}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,683
c
#include <stdio.h> int main(){ double a = 0.0; scanf("%lf", &a); printf("%lf", a); return 0; }
11.44
9
(translation_unit) "#include <stdio.h>\n\n\nint main(){\n double a = 0.0;\n \n scanf("%lf", &a);\n printf("%lf", a);\n return 0;\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (function_definition) "int main(){\n double a = 0.0;\n \n scan...
53
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 11.44, "nodes": 27, "errors": 0, "source_hash": "5900f305d8489ece1dd36dc2682f6feea434acbcc0264fb62228027403b82bce", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
3,684
c
/* * Copyright (C) 2014-2019 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
32.36
28
(translation_unit) "/*\n * Copyright (C) 2014-2019 <NAME>\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless requir...
48
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 32.36, "nodes": 37, "errors": 0, "source_hash": "5f557cdeff12854a8fe24780c27ff95ec5ae6f1d303dafc2167d16d4a7e492be", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,685
c
// C:\diabpsx\PSXSRC\CPLAYER.H #include "types.h" // address: 0x80096398 // line start: 76 // line end: 80 int GetDatMaxSize__7CPlayer(struct CPlayer *this) { } // address: 0x8009C15C // line start: 55 // line end: 55 int GetTexId__7CPlayer(struct CPlayer *this) { } // address: 0x800A0574 // size: 0x90 // lin...
18.96
70
(translation_unit) "// C:\diabpsx\PSXSRC\CPLAYER.H\n\n#include "types.h"\n\n// address: 0x80096398\n// line start: 76\n// line end: 80\nint GetDatMaxSize__7CPlayer(struct CPlayer *this) {\n}\n\n\n// address: 0x8009C15C\n// line start: 55\n// line end: 55\nint GetTexId__7CPlayer(struct CPlayer *this) {\n}\n\n\n// ad...
231
0
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 18.96, "nodes": 135, "errors": 0, "source_hash": "2463c9d639ed841fa6bc28a9fe4b9838cdd42dd20b2ea6d94e41c15df8cdb528", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
3,686
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import <MusicLibrary/ML3PropertyPredicate.h> @class NSSet; @interface ML3ContainmentPredicate : ML3PropertyPredicate { NSSet *_values; } + (id)predicateWithProperty:(id)arg1 value...
32.23
26
(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 <MusicLibrary/ML3PropertyPredicate.h>\n\n@class NSSet;\n\n@interface ML3ContainmentPredicate : ML3PropertyPredicate\n{\n NSSet *_values;\n}\n\n+ (id)p...
268
22
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 32.23, "nodes": 158, "errors": 0, "source_hash": "3c45baa11fb4a0c758dcbfe23a65eeaa8cd4a3c9f7c18d9f145160cfda1956ab", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
3,687
c
#pragma once #ifndef _BLEIMUSERVICE_H #define _BLEIMUSERVICE_H #include <Adafruit_BNO055.h> #include <stdint.h> #include <cassert> #include <vector> #include "BLEServiceHandler.h" #include "BNO055Dummy.h" const char BLE_IMU_SERVICE_UUID[] = "509B0001-EBE1-4AA5-BC51-11004B78D5CB"; const char BLE_IMU_SENSOR_CHAR_UUID[...
32.88
170
(translation_unit) "#pragma once\n#ifndef _BLEIMUSERVICE_H\n#define _BLEIMUSERVICE_H\n#include <Adafruit_BNO055.h>\n#include <stdint.h>\n\n#include <cassert>\n#include <vector>\n\n#include "BLEServiceHandler.h"\n#include "BNO055Dummy.h"\n\nconst char BLE_IMU_SERVICE_UUID[] = "509B0001-EBE1-4AA5-BC51-11004B78D5CB";\ncon...
1,719
26
{"language": "c", "success": true, "metadata": {"lines": 170, "avg_line_length": 32.88, "nodes": 1019, "errors": 0, "source_hash": "8de2d63b81f729b4d3282298ad0a7908814ad8d46d5bc2f3c9b6b2733a035767", "categorized_nodes": 733}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#prag...
3,688
c
#pragma once #include <RenderedObject.h> #include <glm/glm.hpp> #include <ModelMatrix.h> #include <AnimationParameters.h> class ShaderProgram; class VAOWrapper; class Texture; class AnimationParameters; class Piston: public RenderedObject { public: Piston(const ShaderProgram &shader_program, const VAOWrapper &vao...
35.69
29
(translation_unit) "#pragma once\n#include <RenderedObject.h>\n#include <glm/glm.hpp>\n#include <ModelMatrix.h>\n#include <AnimationParameters.h>\n\nclass ShaderProgram;\nclass VAOWrapper;\nclass Texture;\nclass AnimationParameters;\n\nclass Piston: public RenderedObject\n{\npublic:\n Piston(const ShaderProgram &sha...
245
11
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 35.69, "nodes": 142, "errors": 0, "source_hash": "5a527950e1bc55e942a6116b02f3ce3a244e0e897ee8c32698c2c914076daffa", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
3,689
c
/* Copyright (C) 2010-2019, The Regents of The University of Michigan. All rights reserved. This software was developed as part of the The Vulcan project in the Intelligent Robotics Lab under the direction of <NAME>, <EMAIL>. Use of this code is governed by an MIT-style License that can be found at "https://github...
30.64
114
(translation_unit) "/* Copyright (C) 2010-2019, The Regents of The University of Michigan.\n All rights reserved.\n\n This software was developed as part of the The Vulcan project in the Intelligent Robotics Lab\n under the direction of <NAME>, <EMAIL>. Use of this code is governed by an\n MIT-style License that can be...
822
47
{"language": "c", "success": true, "metadata": {"lines": 114, "avg_line_length": 30.64, "nodes": 450, "errors": 0, "source_hash": "333c12ed86ecdf15cd95653bd5067541f7befa4e73a6434ca0021e714924ceb4", "categorized_nodes": 294}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
3,690
c
/* Stride is licensed under the terms of the 3-clause BSD license. Copyright (C) 2017. The Regents of the University of California. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: ...
38.86
95
(translation_unit) "/*\n Stride is licensed under the terms of the 3-clause BSD license.\n\n Copyright (C) 2017. The Regents of the University of California.\n All rights reserved.\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the followi...
506
22
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 38.86, "nodes": 334, "errors": 0, "source_hash": "82b96b38b9366f7de9c2e732d1f7108950ff31f2c09e5156e4789e7b35a8adb4", "categorized_nodes": 233}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,691
c
/** * @file find_hide_string.c * @author <NAME> (<EMAIL>) * @brief * @version 0.1 * @date 2020-09-28 * * @copyright Copyright (c) 2020 * */ #include "lib_utils.h" int find_hide_string(char *hide, char *str) { int r, j = 0; for (int i = 0; hide[i]; i++) { for (; str[j] && hide[i] != str[j]; j++...
15.48
23
(translation_unit) "/**\n * @file find_hide_string.c\n * @author <NAME> (<EMAIL>)\n * @brief \n * @version 0.1\n * @date 2020-09-28\n * \n * @copyright Copyright (c) 2020\n * \n */\n\n#include "lib_utils.h"\n\n int find_hide_string(char *hide, char *str)\n {\n int r, j = 0;\n for (int i = 0; hide[i]; i++)\n {\n fo...
117
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 15.48, "nodes": 70, "errors": 0, "source_hash": "f3a72f7ed855103e4835d868ff7b0c72fc2ac00c106d44378c4164b3a7404268", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
3,692
c
/* Nombre Fichero: src/potencia.c */ #include "potencia.h" int potencia(int op, int n) { if (!n) return 1; return op * potencia(op, n - 1); }
19.86
7
(translation_unit) "/* Nombre Fichero: src/potencia.c */\n\n#include "potencia.h"\n\nint potencia(int op, int n)\n{\n if (!n) return 1;\n return op * potencia(op, n - 1);\n}\n" (comment) "/* Nombre Fichero: src/potencia.c */" (preproc_include) "#include "potencia.h"\n" (#include) "#include" (string_litera...
54
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 19.86, "nodes": 33, "errors": 0, "source_hash": "03dda39891348b46bb41015dd3d9239a12e4f837c2a47814dbc3d764d1f9ffb1", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
3,693
c
// // MealTableViewController.h // Storyboard Travel Notes // // Created by <NAME> on 20/10/16. // Copyright © 2016 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> #import "JournalTableViewCell.h" #import "JournalID.h" @interface JournalsViewController : UITableViewController{ @public JournalID* j...
22.31
16
(translation_unit) "//\n// MealTableViewController.h\n// Storyboard Travel Notes\n//\n// Created by <NAME> on 20/10/16.\n// Copyright © 2016 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "JournalTableViewCell.h"\n#import "JournalID.h"\n\n@interface JournalsViewController : UITableViewControll...
49
8
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 22.31, "nodes": 30, "errors": 0, "source_hash": "9a196ceb8efeaa75629d3f6eb43a0958c2f91231a6e8e5f2a3c29cbf5602062f", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
3,694
c
/* * Copyright 2009-2017 Alibaba Cloud All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
34.62
68
(translation_unit) "/*\n * Copyright 2009-2017 Alibaba Cloud All rights reserved.\n * \n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE...
424
25
{"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 34.62, "nodes": 249, "errors": 0, "source_hash": "c028c4e1e5eae6750ef44c5933ba195c8ce25ec5b952b4df4a78be1866f0d96e", "categorized_nodes": 170}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,695
c
#ifndef SKEWEACTION_H #define SKEWACTION_H #include "../ActionInterval.h" OFXCOCOS_NS_BEGIN ACTIONS_NS_BEGIN /** @class SkewTo * @brief Rotates a ActionTarget object to a certain angle by modifying it's rotation attribute. The direction will be decided by the shortest angle. */ class SkewTo : public ActionInterval ...
28.43
111
(translation_unit) "#ifndef SKEWEACTION_H\n#define SKEWACTION_H\n#include "../ActionInterval.h"\n\nOFXCOCOS_NS_BEGIN\nACTIONS_NS_BEGIN\n\n/** @class SkewTo\n * @brief Rotates a ActionTarget object to a certain angle by modifying it's rotation attribute.\n The direction will be decided by the shortest angle.\n*/\nclass ...
480
22
{"language": "c", "success": true, "metadata": {"lines": 111, "avg_line_length": 28.43, "nodes": 278, "errors": 0, "source_hash": "fb1388d4e4a004d911349b60f8a4c2ea1e6f2ba9d7d29f518e6abb64c55b8aa1", "categorized_nodes": 184}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
3,696
c
#pragma once #include "_global.h" class cFullMagic { public: bool SetMagicUp(int dataid, ulong id, int x, int y); vector<cWasFile> m_FullSkilUP; vector<cWasFile> m_SufferMagic; cFullMagic(); };
18.8
10
(translation_unit) "#pragma once\n#include "_global.h"\n\nclass cFullMagic\n{\npublic:\n bool SetMagicUp(int dataid, ulong id, int x, int y);\n vector<cWasFile> m_FullSkilUP;\n vector<cWasFile> m_SufferMagic;\n cFullMagic();\n};" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "onc...
69
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 18.8, "nodes": 43, "errors": 0, "source_hash": "d4abefe05a9091816f7e1f9ed4dddc95dbc23dc2b570b91168467762d239612b", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
3,697
c
#ifndef SIMULATOR_H #define SIMULATOR_H #include "history.h" #include "node.h" #include "XES_logger.h" #include "utils.h" #include <iostream> #include <math.h> #include <random> #include <stdexcept> #include <z3.h> #include <z3++.h> /// TMP struct Models { Models(z3::context &c) : tight_model(c), loos...
33.87
186
(translation_unit) "#ifndef SIMULATOR_H\n#define SIMULATOR_H\n\n#include "history.h"\n#include "node.h"\n#include "XES_logger.h"\n#include "utils.h"\n#include <iostream>\n#include <math.h>\n#include <random>\n#include <stdexcept>\n\n#include <z3.h>\n#include <z3++.h>\n\n/// TMP \nstruct Models {\n Models(z...
1,595
107
{"language": "c", "success": true, "metadata": {"lines": 186, "avg_line_length": 33.87, "nodes": 898, "errors": 0, "source_hash": "8dba13d542f1511d1d171956ae71117dc1d0597f1b0b86afb3d5c64227136682", "categorized_nodes": 658}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
3,698
c
5750 // The I/O APIC manages hardware interrupts for an SMP system. 5751 // http://www.intel.com/design/chipsets/datashts/29056601.pdf 5752 // See also picirq.c. 5753 5754 #include "types.h" 5755 #include "defs.h" 5756 #include "traps.h" 5757 5758 #define IOAPIC 0xFEC00000 // Default physical address of IO APIC 57...
25.36
100
(translation_unit) "5750 // The I/O APIC manages hardware interrupts for an SMP system.\n5751 // http://www.intel.com/design/chipsets/datashts/29056601.pdf\n5752 // See also picirq.c.\n5753 \n5754 #include "types.h"\n5755 #include "defs.h"\n5756 #include "traps.h"\n5757 \n5758 #define IOAPIC 0xFEC00000 // Default ph...
555
34
{"language": "c", "success": true, "metadata": {"lines": 100, "avg_line_length": 25.36, "nodes": 390, "errors": 0, "source_hash": "85a89c4decfe744149f931dfd43f9347141b6b90a5bc351bc2327b5c586acef4", "categorized_nodes": 277}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "5750 // The I...
3,699