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
// lasterror.h /* Copyright 2009 10gen Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will b...
36.52
102
(translation_unit) "// lasterror.h\n\n/* Copyright 2009 10gen Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License, version 3,\n * as published by the Free Software Foundation.\n *\n * This program is distribute...
426
11
{"language": "c", "success": true, "metadata": {"lines": 102, "avg_line_length": 36.52, "nodes": 250, "errors": 0, "source_hash": "bb383452804aa0f016919da425d31febcf7d70830372447e9d5d26c76ceff5ce", "categorized_nodes": 157}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
77,500
c
/* * Microwindows keyboard driver for Compaq iPAQ * * Copyright (c) 2000, 2003 Century Software Embedded Technologies * Written by <NAME> */ #include <stdio.h> #include <sys/types.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> #include "kbd_types.h" #include "keyboard.h" #define KEYBOARD "/dev/Mega...
22.99
136
(translation_unit) "/*\n * Microwindows keyboard driver for Compaq iPAQ\n *\n * Copyright (c) 2000, 2003 Century Software Embedded Technologies\n * Written by <NAME>\n */\n#include <stdio.h>\n#include <sys/types.h>\n#include <fcntl.h>\n#include <unistd.h>\n#include <errno.h>\n#include "kbd_types.h"\n#include "keyboard....
867
0
{"language": "c", "success": true, "metadata": {"lines": 136, "avg_line_length": 22.99, "nodes": 472, "errors": 0, "source_hash": "98b79b1509d994cb9c6d51680adc4860128296d8f250e8f1157518dfd69c2130", "categorized_nodes": 341}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
77,501
c
#include "vpn-ws.h" #if defined(__linux__) #include <sys/epoll.h> int vpn_ws_event_queue(int n) { int ret = epoll_create(n); if (ret < 0) { vpn_ws_error("vpn_ws_event_queue()/epoll_create()"); return -1; } return ret; } int vpn_ws_event_read_to_write(int queue, int fd) { struct epoll_event ev; ev.e...
28.07
145
(translation_unit) "#include "vpn-ws.h"\n\n#if defined(__linux__)\n\n#include <sys/epoll.h>\n\nint vpn_ws_event_queue(int n) {\n int ret = epoll_create(n);\n if (ret < 0) {\n vpn_ws_error("vpn_ws_event_queue()/epoll_create()");\n return -1;\n }\n return ret;\n}\n\nint vpn_ws_event_read_to_write(int queue, int fd) {\n...
1,324
0
{"language": "c", "success": true, "metadata": {"lines": 145, "avg_line_length": 28.07, "nodes": 784, "errors": 0, "source_hash": "082a2b2189da57f35b84dd1c4eefca029d584806c3a7f9d3e67e6ad00361f676", "categorized_nodes": 562}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
77,502
c
/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * File: cubicRegScript_data.c * * MATLAB Coder version : 4.1 * C/C++ source code generated on : 15-Ju...
26.95
22
(translation_unit) "/*\n * Academic License - for use in teaching, academic research, and meeting\n * course requirements at degree granting institutions only. Not for\n * government, commercial, or other organizational use.\n * File: cubicRegScript_data.c\n *\n * MATLAB Coder version : 4.1\n * C/C++ source...
51
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 26.95, "nodes": 28, "errors": 0, "source_hash": "9a683c040f23308e3269e7502161ad9cdd07ceed9f7fd9b4cf640cac4fec0f2e", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
77,503
c
// // MSSegmentedControl.h // MSSegmentedControl // // Created by 爱写代码的小马 on 2021/9/15. // #import <Foundation/Foundation.h> #import <MSSegmentedControl/MSSegmentedControlItem.h> //! Project version number for MSSegmentedControl. FOUNDATION_EXPORT double MSSegmentedControlVersionNumber; //! Project version string...
27.98
52
(translation_unit) "//\n// MSSegmentedControl.h\n// MSSegmentedControl\n//\n// Created by 爱写代码的小马 on 2021/9/15.\n//\n\n#import <Foundation/Foundation.h>\n#import <MSSegmentedControl/MSSegmentedControlItem.h>\n\n//! Project version number for MSSegmentedControl.\nFOUNDATION_EXPORT double MSSegmentedControlVersionNumb...
271
41
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 27.98, "nodes": 184, "errors": 0, "source_hash": "d7ff247a2cd0b9533fa34d7529e9a89d45c96acace5965d5eb297b607643c57e", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ation/F...
77,504
c
#include<stdio.h> #include<conio.h> #include<stdlib.h> typedef struct node { int info; struct node *next; }node; void create(node **t, int num) { node *p=(node *)malloc(sizeof(node)); p->info=num; p->next=NULL; if((*t)==NULL) (*t)=p; else { p->next=(*t); ...
16.12
58
(translation_unit) "#include<stdio.h> \n#include<conio.h> \n#include<stdlib.h> \ntypedef struct node \n{ \n int info; \n struct node *next; \n}node; \nvoid create(node **t, int num) \n{ \n node *p=(node *)malloc(sizeof(node)); \n p->info=num; \n p->next=NULL; \n if((*t)==NULL) \n (*t)=p; \n ...
452
0
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 16.12, "nodes": 276, "errors": 0, "source_hash": "077c6a9e5f58c7c5daab4391bd91eeefc042de21d0f683718270bc1b9f8a5865", "categorized_nodes": 183}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
77,505
c
/* * Copyright 2021 IBM Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
38.22
58
(translation_unit) "/*\n * Copyright 2021 IBM Corporation\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless require...
214
11
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 38.22, "nodes": 117, "errors": 0, "source_hash": "75f8c53ca41066a82a93ede62ca1814e6b32e48be77596e4db1b4440c4d8e785", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
77,506
c
/** * Appcelerator Titanium Mobile * Copyright (c) 2017-present by <NAME>. All Rights Reserved. * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. */ #import "TiModule.h" @interface TiAnimationModule : TiModule @end
31.89
9
(translation_unit) "/**\n * Appcelerator Titanium Mobile\n * Copyright (c) 2017-present by <NAME>. All Rights Reserved.\n * Licensed under the terms of the Apache Public License\n * Please see the LICENSE included with this distribution for details.\n */\n\n#import "TiModule.h"\n\n@interface TiAnimationModule : TiModul...
13
3
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 31.89, "nodes": 9, "errors": 0, "source_hash": "477dee997237157f2e287bed37467d84ebc774236fbaad81cf85177a897dff7f", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"Ti...
77,507
c
// Generated by Haxe 4.1.1 #ifndef INCLUDED_shoppingcart_ItemRepository #define INCLUDED_shoppingcart_ItemRepository #ifndef HXCPP_H #include <hxcpp.h> #endif #ifndef INCLUDED_16d41c6fc5b8bf5d #define INCLUDED_16d41c6fc5b8bf5d #include "maglev/MagLev.h" #endif HX_DECLARE_CLASS1(haxe,IMap) HX_DECLARE_CLASS2(haxe,ds,St...
39.95
59
(translation_unit) "// Generated by Haxe 4.1.1\n#ifndef INCLUDED_shoppingcart_ItemRepository\n#define INCLUDED_shoppingcart_ItemRepository\n\n#ifndef HXCPP_H\n#include <hxcpp.h>\n#endif\n\n#ifndef INCLUDED_16d41c6fc5b8bf5d\n#define INCLUDED_16d41c6fc5b8bf5d\n#include "maglev/MagLev.h"\n#endif\nHX_DECLARE_CLASS1(haxe,IM...
776
59
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 39.95, "nodes": 407, "errors": 0, "source_hash": "271f5e973fa6001894be14bbdf8882a6af525c51b476736abb722681bb49746e", "categorized_nodes": 285}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
77,508
c
// // AKAEnumConstantBindingExpression.h // AKABeacon // // Created by <NAME> on 29.04.16. // Copyright © 2016 <NAME> & AKA Sarl. All rights reserved. // #import "AKAConstantBindingExpression.h" @interface AKAEnumConstantBindingExpression: AKAConstantBindingExpression @property(nonatomic, nullable) NSString* en...
29.23
13
(translation_unit) "//\n// AKAEnumConstantBindingExpression.h\n// AKABeacon\n//\n// Created by <NAME> on 29.04.16.\n// Copyright © 2016 <NAME> & AKA Sarl. All rights reserved.\n//\n\n#import "AKAConstantBindingExpression.h"\n\n\n@interface AKAEnumConstantBindingExpression: AKAConstantBindingExpression\n\n@property(...
54
10
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 29.23, "nodes": 36, "errors": 0, "source_hash": "4904b0d0fcd18b46cce519768af8561ee44b18c52541e89d5872236d868b01dc", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"...
77,509
c
#include <stdio.h> #include <stdlib.h> #include <ctype.h> #include "bfcc.h" #include "tree.h" #include "tree.h" #include "cstring.h" #include "string.h" #include "parse.h" int MAX_LINE_LENGTH = 120; int MAX_NUM_LINES=1000; int MAX_TOKEN_PER_LINE=20; token* tokens; int currToken; token** tokenLines; int main(int arg...
25.99
166
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <ctype.h>\n#include "bfcc.h"\n#include "tree.h"\n#include "tree.h"\n#include "cstring.h"\n#include "string.h"\n#include "parse.h"\n\nint MAX_LINE_LENGTH = 120;\nint MAX_NUM_LINES=1000;\nint MAX_TOKEN_PER_LINE=20;\n\n\ntoken* tokens;\nint currToken;\n...
1,151
1
{"language": "c", "success": true, "metadata": {"lines": 166, "avg_line_length": 25.99, "nodes": 722, "errors": 0, "source_hash": "03e8b3659d6450ffc2df925c4804cfbb66ffd2d3bfcf4a23473ca64104d76bfb", "categorized_nodes": 468}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
77,510
c
#pragma once #include "Light.h" namespace Library { class PointLight : public Light { RTTI_DECLARATIONS(PointLight, Light) public: PointLight(Game& game); PointLight(Game& game, const DirectX::XMFLOAT3& position, float radius); PointLight(const PointLight&) = default; PointLight& operator=(const PointLi...
30.18
28
(translation_unit) "#pragma once\n\n#include "Light.h"\n\nnamespace Library\n{\n class PointLight : public Light\n {\n RTTI_DECLARATIONS(PointLight, Light)\n\n public:\n PointLight(Game& game);\n PointLight(Game& game, const DirectX::XMFLOAT3& position, float radius);\n PointLight(const PointLight&) = default;\n P...
290
18
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 30.18, "nodes": 172, "errors": 0, "source_hash": "3364ade86ec88cd6552851c31a7147755da8606c66dc9575998bae3ecf8ac069", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
77,511
c
#include <jni.h> #include <stdio.h> #include <stdlib.h> #include "log_jni.h" #define _Included_Jni_Load #include "jni_load.h" #include "jni_comm_code.h" /* * Class: com_qsa_comm_libscomm * Method: start_comm * Signature: (Ljava/lang/String;)I; */ JNIEXPORT jint JNICALL native_open(JNIEnv *env, jobject o...
22.96
56
(translation_unit) "#include <jni.h>\n#include <stdio.h>\n#include <stdlib.h>\n\n#include "log_jni.h"\n\n#define _Included_Jni_Load\n#include "jni_load.h"\n\n#include "jni_comm_code.h"\n\n/*\n * Class: com_qsa_comm_libscomm\n * Method: start_comm\n * Signature: (Ljava/lang/String;)I;\n */\n\nJNIEXPORT jint JNICA...
310
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 22.96, "nodes": 182, "errors": 0, "source_hash": "dd81fa899f966a18e1c5b34f6f35fbb764967045f35640075219d208bfe085bb", "categorized_nodes": 146}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
77,512
c
// Heap allocated 2D arrays using double ** pointers and Iliffle vectors // This will result in heap fragmentation due to several calls to malloc. // // See <http://stackoverflow.com/questions/917783/how-do-i-work-with-dynamic-multi-dimensional-arrays-in-c> // See <https://en.wikipedia.org/wiki/C_syntax#Multidimensiona...
22.82
73
(translation_unit) "// Heap allocated 2D arrays using double ** pointers and Iliffle vectors\n// This will result in heap fragmentation due to several calls to malloc.\n//\n// See <http://stackoverflow.com/questions/917783/how-do-i-work-with-dynamic-multi-dimensional-arrays-in-c>\n// See <https://en.wikipedia.org/wiki/...
452
0
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 22.82, "nodes": 271, "errors": 0, "source_hash": "b1932b1087185b7b2ac13f78b0e34211281380e94d9fa48c5324545e057af0f9", "categorized_nodes": 183}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
77,513
c
/* * Copyright (c) 2006 Apple Computer, Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this fi...
29.22
83
(translation_unit) "/*\n * Copyright (c) 2006 Apple Computer, Inc. All rights reserved.\n *\n * @APPLE_OSREFERENCE_LICENSE_HEADER_START@\n * \n * This file contains Original Code and/or Modifications of Original Code\n * as defined in and that are subject to the Apple Public Source License\n * Version 2.0 (the 'License...
255
4
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 29.22, "nodes": 159, "errors": 0, "source_hash": "93de0cd75a749fe4bb797af1e409bb6c9cdf033f97bfac0a2be677220574bcb2", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
77,514
c
// Copyright 2017 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SRC_PUFF_READER_H_ #define SRC_PUFF_READER_H_ #include <cstddef> #include <cstdint> #include "puffin/src/include/puffin/common.h" #include "p...
37.69
58
(translation_unit) "// Copyright 2017 The Chromium OS Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef SRC_PUFF_READER_H_\n#define SRC_PUFF_READER_H_\n\n#include <cstddef>\n#include <cstdint>\n\n#include "puffin/src/includ...
284
15
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 37.69, "nodes": 162, "errors": 0, "source_hash": "2fe6296561f68304a83ce29e7ed4441af20237af1bb7cd13eabc33fb83943884", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
77,515
c
#include "DynamicArray.h" #include <assert.h> #include <stdlib.h> #include <string.h> DynamicArray* daNew(int capacity, int elementSize) { assert(capacity >= 0); assert(elementSize > 0); DynamicArray* array = malloc(sizeof(DynamicArray)); array->count = 0; array->capacity = capacity; array->e...
25.56
96
(translation_unit) "#include "DynamicArray.h"\n\n#include <assert.h>\n#include <stdlib.h>\n#include <string.h>\n\nDynamicArray* daNew(int capacity, int elementSize)\n{\n assert(capacity >= 0);\n assert(elementSize > 0);\n\n DynamicArray* array = malloc(sizeof(DynamicArray));\n array->count = 0;\n array->...
830
0
{"language": "c", "success": true, "metadata": {"lines": 96, "avg_line_length": 25.56, "nodes": 541, "errors": 0, "source_hash": "7a74f6cc6b09d9779c5e8b202ca984f3a5d36d04097e41a724a1bd7df925872a", "categorized_nodes": 384}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
77,516
c
/*------------------------------------------------------------------ * Configuration manager API * * November 2014, <NAME> * * Copyright (c) 2014-2015 by cisco Systems, Inc. * All rights reserved. *------------------------------------------------------------------*/ #ifndef CONFIG_H_ #define CONFIG_H_ #include...
37.02
212
(translation_unit) "/*------------------------------------------------------------------\n * Configuration manager API\n *\n * November 2014, <NAME>\n *\n * Copyright (c) 2014-2015 by cisco Systems, Inc.\n * All rights reserved.\n *------------------------------------------------------------------*/\n\n#ifndef CONFIG_H...
604
2
{"language": "c", "success": true, "metadata": {"lines": 212, "avg_line_length": 37.02, "nodes": 421, "errors": 0, "source_hash": "6e6c74712a12b53b8787556ce0e3d7abdc480be407a4b30adccc79f8c7cb2968", "categorized_nodes": 284}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
77,517
c
/* Created by flo071 */ #define keypadPORT 0b00001111 #define keypadKEYS 0111111111 #define COLUMN1 0b11111110 #define COLUMN2 0b11111101 #define COLUMN3 0b11111011 #define COLUMN4 0b11110111 #define ROW1 0b01111111 #define ROW2 0b10111111 #define ROW3 0b11011111 #define ROW4 0b11101111 uint16_t ou...
18.12
17
(translation_unit) "/* \nCreated by flo071 \n*/ \n#define keypadPORT 0b00001111 \n#define keypadKEYS 0111111111 \n \n#define COLUMN1 0b11111110 \n#define COLUMN2 0b11111101 \n#define COLUMN3 0b11111011 \n#define COLUMN4 0b11110111 \n \n#define ROW1 0b01111111 \n#define ROW2 0b10111111 \n#define ROW3 0b11011111 \n#def...
49
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 18.12, "nodes": 46, "errors": 0, "source_hash": "00c235c276893dd44181e5fe54e43b1467654fc48fbb35afb7e7553b705b57ac", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ke...
77,518
c
/* -*- c++ -*- */ /* * Copyright 2009,2013 Free Software Foundation, Inc. * * This file is part of GNU Radio * * GNU Radio is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3, or (at your o...
33.96
77
(translation_unit) "/* -*- c++ -*- */\n/*\n * Copyright 2009,2013 Free Software Foundation, Inc.\n *\n * This file is part of GNU Radio\n *\n * GNU Radio is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; eit...
328
18
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 33.96, "nodes": 187, "errors": 0, "source_hash": "6ed8d64b25457bb1dc5b67650b8f34dbf33d28efb2cd3f88951cd704704d7822", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
77,519
c
#ifndef DURATION_H #define DURATION_H #include <string> namespace duration { struct Time { unsigned hour; unsigned minute; }; std::string computeDuration(Time start, Time end); } // namespace duration #endif
18.27
11
(translation_unit) "#ifndef DURATION_H\n#define DURATION_H\n\n#include <string>\n\nnamespace duration {\nstruct Time {\n unsigned hour;\n unsigned minute;\n};\nstd::string computeDuration(Time start, Time end);\n} // namespace duration\n\n#endif\n" (preproc_ifdef) "#ifndef DURATION_H\n#define DURATION_H\n\n#include...
55
1
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 18.27, "nodes": 36, "errors": 0, "source_hash": "1735d50f830caf30de94932f985727a998d593ccb03391813bf9e4d6ac540577", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
77,520
c
/* LibTomCrypt, modular cryptographic library -- <NAME> * * LibTomCrypt is a library that provides various cryptographic * algorithms in a highly modular and flexible manner. * * The library is free for all purposes without any express * guarantee it works. */ #include "tomcrypt_private.h" /** @file x25519_im...
35.91
33
(translation_unit) "/* LibTomCrypt, modular cryptographic library -- <NAME>\n *\n * LibTomCrypt is a library that provides various cryptographic\n * algorithms in a highly modular and flexible manner.\n *\n * The library is free for all purposes without any express\n * guarantee it works.\n */\n#include "tomcrypt_priva...
83
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 35.91, "nodes": 50, "errors": 0, "source_hash": "d8d59f1b979d02e39a786d39022d8875dfcfc722d214d596c804b19fc6af3f76", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
77,521
c
/* * linux/fs/nfs/nfs4namespace.c * * Copyright (C) 2005 <NAME> <<EMAIL>> * - Modified by <NAME> <<EMAIL>> * * NFSv4 namespace */ #include <linux/dcache.h> #include <linux/mount.h> #include <linux/namei.h> #include <linux/nfs_fs.h> #include <linux/string.h> #include <linux/sunrpc/clnt.h> #include <linux/vfs.h> ...
28.16
224
(translation_unit) "/*\n * linux/fs/nfs/nfs4namespace.c\n *\n * Copyright (C) 2005 <NAME> <<EMAIL>>\n * - Modified by <NAME> <<EMAIL>>\n *\n * NFSv4 namespace\n */\n\n#include <linux/dcache.h>\n#include <linux/mount.h>\n#include <linux/namei.h>\n#include <linux/nfs_fs.h>\n#include <linux/string.h>\n#include <linux/sunr...
1,897
0
{"language": "c", "success": true, "metadata": {"lines": 224, "avg_line_length": 28.16, "nodes": 1232, "errors": 0, "source_hash": "dd0c137f88cf5d9500c6437f16b0917b159bdf118d82acf01718b6c44ba16f0e", "categorized_nodes": 861}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
77,522
c
// // Macros.h // Ropes // // Created by <NAME> on 11/7/09. // Copyright 2009 __MyCompanyName__. All rights reserved. // #define AbstractMethod { @throw [NSException exceptionWithName:@"ImproperSubclassing" reason:@"" userInfo:nil]; }
28.88
8
(translation_unit) "//\n// Macros.h\n// Ropes\n//\n// Created by <NAME> on 11/7/09.\n// Copyright 2009 __MyCompanyName__. All rights reserved.\n//\n\n#define AbstractMethod { @throw [NSException exceptionWithName:@"ImproperSubclassing" reason:@"" userInfo:nil]; }\n" (comment) "//" (comment) "// Macros.h" (co...
12
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 28.88, "nodes": 4, "errors": 0, "source_hash": "3e3cf459b987439230cedcab1c2c90faf8b20adeecc2e986918f7d0be35b0f81", "categorized_nodes": 1}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define Abstr...
77,523
c
//========================================================================= // Copyright (C) 2012 The Elastos Open Source Project // // 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 // // ...
30.85
97
(translation_unit) "//=========================================================================\n// Copyright (C) 2012 The Elastos Open Source Project\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...
521
18
{"language": "c", "success": true, "metadata": {"lines": 97, "avg_line_length": 30.85, "nodes": 278, "errors": 0, "source_hash": "86fdc4bd7e76c14620c7e83e9b8048fd6cf4c5cb7680524ace0488aecb3cc3cb", "categorized_nodes": 211}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
77,524
c
/* * Copyright (c) 1990, 1991 Stanford University * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided * that the above copyright notice appear in all copies and that both that * copyright notice and this permission...
32.23
108
(translation_unit) "/*\n * Copyright (c) 1990, 1991 Stanford University\n *\n * Permission to use, copy, modify, distribute, and sell this software and its\n * documentation for any purpose is hereby granted without fee, provided\n * that the above copyright notice appear in all copies and that both that\n * copyright ...
859
30
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 32.23, "nodes": 591, "errors": 0, "source_hash": "757e8d2d6edde34580d859225ac460edf895fb21d1c715ecb3e89c7630414a52", "categorized_nodes": 371}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
77,525
c
/* * License: BSD-style license * Copyright: <NAME> <<EMAIL>>, * <NAME> <<EMAIL>> */ #ifndef UNIONFS_H #define UNIONFS_H #define PATHLEN_MAX 1024 #define HIDETAG "_HIDDEN~" #define METANAME ".unionfs-fuse" #define METADIR (METANAME "/") // string concetanation! // fuse meta files, we might want to hide ...
28.74
23
(translation_unit) "/*\n* License: BSD-style license\n* Copyright: <NAME> <<EMAIL>>,\n* <NAME> <<EMAIL>>\n*/\n\n#ifndef UNIONFS_H\n#define UNIONFS_H\n\n#define PATHLEN_MAX 1024\n#define HIDETAG "_HIDDEN~"\n\n#define METANAME ".unionfs-fuse"\n#define METADIR (METANAME "/") // string concetanation!\n\n// fuse...
71
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 28.74, "nodes": 56, "errors": 0, "source_hash": "2fd07b17c12138a1584199566da30c0991ba1295dc2ce6c8f3a309b274158092", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
77,526
c
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/apprunner/AppRunner_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSString.h> namespace Aws { namespace AppRunner { namespace Model { enum class ServiceStatus { N...
22.32
31
(translation_unit) "*\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0.\n */\n\n#pragma once\n#include <aws/apprunner/AppRunner_EXPORTS.h>\n#include <aws/core/utils/memory/stl/AWSString.h>\n\nnamespace Aws\n{\nnamespace AppRunner\n{\nnamespace Model\n{\n en...
108
4
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 22.32, "nodes": 65, "errors": 0, "source_hash": "be268501ddf5a6bc0dc41689683432dc225c03a45ca3faa570480e7009cb0738", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma onc...
77,527
c
#define _GNU_SOURCE #include <stdio.h> #include <signal.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <stdint.h> #include <sched.h> #include <sys/time.h> #include <time.h> #include <pthread.h> #include <edgeos_logger.h> #include <edgeos_list.h> struct edge_os_threadpool_work_priv { void (...
31.52
163
(translation_unit) "#define _GNU_SOURCE\n#include <stdio.h>\n#include <signal.h>\n#include <stdlib.h>\n#include <string.h>\n#include <unistd.h>\n#include <stdint.h>\n#include <sched.h>\n#include <sys/time.h>\n#include <time.h>\n#include <pthread.h>\n#include <edgeos_logger.h>\n#include <edgeos_list.h>\n\nstruct edge_os...
1,290
0
{"language": "c", "success": true, "metadata": {"lines": 163, "avg_line_length": 31.52, "nodes": 821, "errors": 0, "source_hash": "a1863138c593d608b0621bd5c9cab21043cb91f5f3c6df0d0d89cb6095c3b46f", "categorized_nodes": 582}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
77,528
c
#include <emote.h> EMOTE( "~Name ~verbwonder.", "~Name ~verbwonder about ~targ." )
40.5
2
(translation_unit) "#include <emote.h>\n\nEMOTE( "~Name ~verbwonder.", "~Name ~verbwonder about ~targ." )\n" (preproc_include) "#include <emote.h>\n" (#include) "#include" (system_lib_string) "<emote.h>" (expression_statement) "EMOTE( "~Name ~verbwonder.", "~Name ~verbwonder about ~targ." )" (call_expre...
20
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 40.5, "nodes": 8, "errors": 0, "source_hash": "1592ebffc89aa2c758a758c64c0711e54903536b46817f1f165954163cfb15d6", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <...
77,529
c
#include <stdlib.h> #include <stdio.h> #include <math.h> #include "xmlrpc_config.h" #include "xmlrpc-c/util.h" #include "xmlrpc-c/util_int.h" extern int total_tests; extern int total_failures; /* This is a good place to set a breakpoint. */ static __inline__ void test_failure(const char * const file, u...
31
73
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n#include <math.h>\n\n#include "xmlrpc_config.h"\n#include "xmlrpc-c/util.h"\n#include "xmlrpc-c/util_int.h"\n\nextern int total_tests;\nextern int total_failures;\n\n\n/* This is a good place to set a breakpoint. */\nstatic __inline__ void\ntest_failure(const...
434
0
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 31.0, "nodes": 243, "errors": 0, "source_hash": "9b3948bc3fc4d79e62901e862abc7f57add0468bd7944588c79e2b2eaa9d05d4", "categorized_nodes": 154}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
77,530
c
// // Created by gmorehead on 11/9/16. // #pragma once #include <core/ITick.h> namespace PBFault { //////////////////////////////////////////////////////////////////////////////////////////////////// class FaultTrigger { public: FaultTrigger(ITick &ticker, Poco::Int64 & delay_ms); ~FaultTrigger(); b...
20.25
28
(translation_unit) "//\n// Created by gmorehead on 11/9/16.\n//\n\n#pragma once\n\n#include <core/ITick.h>\n\nnamespace PBFault {\n\n\n////////////////////////////////////////////////////////////////////////////////////////////////////\nclass FaultTrigger {\npublic:\n\n FaultTrigger(ITick &ticker, Poco::Int64 & dela...
133
3
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 20.25, "nodes": 73, "errors": 0, "source_hash": "b5986ed859a89252758cb9f98b8cf60e9746f5bd4f06528ecfb357196d033bfb", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
77,531
c
#ifndef HUAWEICLOUD_SDK_OCR_V1_MODEL_BankcardResult_H_ #define HUAWEICLOUD_SDK_OCR_V1_MODEL_BankcardResult_H_ #include <huaweicloud/ocr/v1/OcrExport.h> #include <huaweicloud/core/utils/ModelBase.h> #include <huaweicloud/core/http/HttpResponse.h> #include <huaweicloud/core/utils/Object.h> #include <string> namespac...
26.74
94
(translation_unit) "#ifndef HUAWEICLOUD_SDK_OCR_V1_MODEL_BankcardResult_H_\n#define HUAWEICLOUD_SDK_OCR_V1_MODEL_BankcardResult_H_\n\n#include <huaweicloud/ocr/v1/OcrExport.h>\n\n#include <huaweicloud/core/utils/ModelBase.h>\n#include <huaweicloud/core/http/HttpResponse.h>\n\n#include <huaweicloud/core/utils/Object.h>\...
556
32
{"language": "c", "success": true, "metadata": {"lines": 94, "avg_line_length": 26.74, "nodes": 320, "errors": 0, "source_hash": "4bb9fbf72fadb1026e3d1f3df179fa5ff559bfb3bc182892973b360b6f9cba64", "categorized_nodes": 224}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
77,532
c
#ifndef NETLIBCC_CORE_TIMEANCHOR_H_ #define NETLIBCC_CORE_TIMEANCHOR_H_ #include <string> namespace netlibcc { // simple UTC time stamp class class TimeAnchor { public: TimeAnchor() : stamp_(0) {} TimeAnchor(int64_t stamp) : stamp_(stamp) {} // get string of stamp_ value std::string toStr() const; ...
33.24
46
(translation_unit) "#ifndef NETLIBCC_CORE_TIMEANCHOR_H_\n#define NETLIBCC_CORE_TIMEANCHOR_H_\n\n#include <string>\n\nnamespace netlibcc {\n\n// simple UTC time stamp class\nclass TimeAnchor {\npublic:\n TimeAnchor() : stamp_(0) {}\n TimeAnchor(int64_t stamp) : stamp_(stamp) {}\n\n // get string of stamp_ value...
401
17
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 33.24, "nodes": 237, "errors": 0, "source_hash": "4b4a7f59019158151ab8ce3322edde5f730e5c33b8493715d07f907ca1678b6e", "categorized_nodes": 161}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
77,533
c
#ifdef __cplusplus extern "C" { #endif #pragma once #include "common_functions.h" #include <stdbool.h> //============================================================================== // STRUCTS typedef struct { Point3D translation; Point3D rotation; Point3D scaling; } Affine_Parameter; typedef struct { ...
20.58
43
(translation_unit) "#ifdef __cplusplus\nextern "C" {\n#endif\n\n#pragma once\n#include "common_functions.h"\n#include <stdbool.h>\n\n //==============================================================================\n // STRUCTS\n typedef struct {\n Point3D translation;\n Point3D rotation;\n Point3D scaling;\n } Affi...
159
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 20.58, "nodes": 111, "errors": 0, "source_hash": "c2816f128ce7bb5087daaa14bffd9a9219bbeed1afe0e3c55bf6be5d28dec373", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef ...
77,534
c
#ifndef NAVIERSTOKESBOUNDARYCONDITIONS_H_ #define NAVIERSTOKESBOUNDARYCONDITIONS_H_ #include <TNL/Config/ParameterContainer.h> template< typename Mesh > class navierStokesBoundaryConditions { public: typedef Mesh MeshType; typedef typename Mesh::RealType RealType; typedef typename Mesh::DeviceType Device...
33.44
27
(translation_unit) "#ifndef NAVIERSTOKESBOUNDARYCONDITIONS_H_\n#define NAVIERSTOKESBOUNDARYCONDITIONS_H_\n\n#include <TNL/Config/ParameterContainer.h>\n\ntemplate< typename Mesh >\nclass navierStokesBoundaryConditions\n{\n public:\n\n typedef Mesh MeshType;\n typedef typename Mesh::RealType RealType;\n typedef ...
195
12
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 33.44, "nodes": 120, "errors": 0, "source_hash": "18691969a126967720f42cf4f9601e0d79e95b75a2b7ae9fb7543f81196e5d6e", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
77,535
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/PhotoEditSupport.framework/PhotoEditSupport */ @interface BLPerceptualBlendFilter : CIFilter { CIImage * _inputBackgroundImage; CIImage * _inputImage; CIImage * _inputMaskImage; } @property (retain) CIImage *inputBackgroundImage; ...
30.35
20
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/PhotoEditSupport.framework/PhotoEditSupport\n */\n\n@interface BLPerceptualBlendFilter : CIFilter {\n CIImage * _inputBackgroundImage;\n CIImage * _inputImage;\n CIImage * _inputMaskImage;\n}\n\n@property (retain) C...
181
18
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 30.35, "nodes": 117, "errors": 0, "source_hash": "0a2d8866ad04284d78e1017985b7e569f5d83ca9ff4aee25df94394f2b8bbca8", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": n...
77,536
c
#include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/semphr.h" #include "core2forAWS.h" #include "ledBarAnimation.h" static xSemaphoreHandle lock; static uint8_t stop_show = false; void sk6812ShowTask(void *arg) { lock = xSemaphoreCreateMutex(); uint8_t stop_show_stash; while (1) {...
31.33
54
(translation_unit) "#include "freertos/FreeRTOS.h"\n#include "freertos/task.h"\n#include "freertos/semphr.h"\n#include "core2forAWS.h"\n#include "ledBarAnimation.h"\n\nstatic xSemaphoreHandle lock;\nstatic uint8_t stop_show = false;\n\nvoid sk6812ShowTask(void *arg) {\n lock = xSemaphoreCreateMutex();\n uint8_t s...
417
0
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 31.33, "nodes": 227, "errors": 0, "source_hash": "eecbe13d76316be91528dc1135b17e79ae6bd6dbdb552f7a34f3f8848c831698", "categorized_nodes": 158}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
77,537
c
#ifndef TETRIXPIECE_H #define TETRIXPIECE_H enum TetrixShape { NoShape, ZShape, SShape, LineShape, TShape, SquareShape, LShape, MirroredLShape }; class TetrixPiece { public: TetrixPiece() { setShape(NoShape); } void setRandomShape(); void setShape(TetrixShape shape); TetrixShape s...
30.88
26
(translation_unit) "#ifndef TETRIXPIECE_H\n#define TETRIXPIECE_H\n\nenum TetrixShape { NoShape, ZShape, SShape, LineShape, TShape, SquareShape,\n LShape, MirroredLShape };\n\nclass TetrixPiece\n{\npublic:\n TetrixPiece() { setShape(NoShape); }\n\n void setRandomShape();\n void setShape(Tetrix...
285
4
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 30.88, "nodes": 159, "errors": 0, "source_hash": "30a318b1093be3793f37410525f339a3daae0b4da6c31f50b3add48de606558f", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
77,538
c
#include <kernel/shm.h> #include <kernel/gpio.h> #include <kernel/memory.h> #include <common/stdio.h> #include <common/string.h> extern struct page *all_pages; void *shm_open() { struct shm_section *shared; shared = kmalloc(sizeof(struct shm_section)); shared->addr = alloc_shared(); return shared->addr; } voi...
24.73
30
(translation_unit) "#include <kernel/shm.h>\n#include <kernel/gpio.h>\n#include <kernel/memory.h>\n\n#include <common/stdio.h>\n#include <common/string.h>\n\nextern struct page *all_pages;\n\nvoid *shm_open() {\n\n struct shm_section *shared;\n shared = kmalloc(sizeof(struct shm_section));\n shared->addr = alloc_shared...
262
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 24.73, "nodes": 167, "errors": 0, "source_hash": "f86273bcc21f742f3490f7af043a7ea724bd01dfe63e211dde1244e0cbceb264", "categorized_nodes": 112}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
77,539
c
#include <nautilus/cpu.h> #include <nautilus/printk.h> #include <arch/riscv/plic.h> #include <arch/riscv/sbi.h> void kernel_vec(); // set up to take exceptions and traps while in the kernel. void trap_init_hart(void) { w_stvec((uint64_t)kernel_vec); } /* Supervisor Trap Function */ void kernel_trap(struct nk_regs *r...
34.46
48
(translation_unit) "#include <nautilus/cpu.h>\n#include <nautilus/printk.h>\n#include <arch/riscv/plic.h>\n#include <arch/riscv/sbi.h>\n\nvoid kernel_vec();\n\n// set up to take exceptions and traps while in the kernel.\nvoid trap_init_hart(void) { w_stvec((uint64_t)kernel_vec); }\n\n/* Supervisor Trap Function */\nvoi...
343
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 34.46, "nodes": 194, "errors": 0, "source_hash": "13ce40a58806e2c1317b1782758cb20df54e8011a14671458f6dd0f8566358cc", "categorized_nodes": 136}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
77,540
c
#ifndef EVENTLOOP_IFC_H #define EVENTLOOP_IFC_H #include "HumiPlatform.h" #include "esp_event.h" typedef int16_t TimerId; /** * Sends event to application loop */ class EventLoopIfc { public: /** * Deconstructor */ ~EventLoopIfc() { } /** * Used for sending event from task context to ap...
29.68
40
(translation_unit) "#ifndef EVENTLOOP_IFC_H\n#define EVENTLOOP_IFC_H\n\n#include "HumiPlatform.h"\n#include "esp_event.h"\n\ntypedef int16_t TimerId;\n\n/**\n * Sends event to application loop\n */\nclass EventLoopIfc {\npublic:\n /**\n * Deconstructor\n */\n ~EventLoopIfc() { }\n\n /**\n * Used fo...
146
7
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 29.68, "nodes": 100, "errors": 0, "source_hash": "2cd2c1a78e3df643beba5af7cb3da062c69094a40840359cf1c4a4ebe12115cf", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
77,541
c
#pragma once #include "common.h" #include "CUDADeviceMemory.h" void CRAFT( cudawrapper::CUDADeviceMemoryUnique<std::uint8_t> const& in_frames, cudawrapper::CUDAHostMemoryUnique<std::uint8_t>& out_text_region_mask_cpu, cudawrapper::CUDAHostMemoryUnique<float>& out_text_region_score, cudawrapper::CUDADeviceMemoryU...
36.5
22
(translation_unit) "#pragma once\n\n#include "common.h"\n\n#include "CUDADeviceMemory.h"\n\nvoid CRAFT(\n cudawrapper::CUDADeviceMemoryUnique<std::uint8_t> const& in_frames,\n cudawrapper::CUDAHostMemoryUnique<std::uint8_t>& out_text_region_mask_cpu,\n cudawrapper::CUDAHostMemoryUnique<float>& out_text_region_score,\n ...
182
13
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 36.5, "nodes": 116, "errors": 0, "source_hash": "9a1f85c44f7e0f1923c43199be60c1994a4351bd5879e9549e4cb0230dcc084e", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
77,542
c
// // UITextView+YYHPlaceHolder.h // YYH_LimitCountAndPlaceholderTextView // // Created by 杨昱航 on 2017/6/13. // Copyright © 2017年 杨昱航. All rights reserved. // #import <UIKit/UIKit.h> @interface UITextView (YYHPlaceHolder) /** placeHolder*/ @property (nonatomic, copy) NSString *YYH_placeHolder; /** placeHolderColo...
26.94
17
(translation_unit) "//\n// UITextView+YYHPlaceHolder.h\n// YYH_LimitCountAndPlaceholderTextView\n//\n// Created by 杨昱航 on 2017/6/13.\n// Copyright © 2017年 杨昱航. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UITextView (YYHPlaceHolder)\n/** placeHolder*/\n@property (nonatomic, copy) NSString *YYH_...
80
16
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 26.94, "nodes": 55, "errors": 0, "source_hash": "0315be36a91e98d3334c0492efcb5360d40fc7a015a03ee8ef33ca25f62f79ea", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit.h>\...
77,543
c
#import <ABI45_0_0EXFileSystem/ABI45_0_0EXFileSystem.h> @interface ABI45_0_0EXFileSystemLocalFileHandler : NSObject <ABI45_0_0EXFileSystemHandler> @end
49.67
3
(translation_unit) "#import <ABI45_0_0EXFileSystem/ABI45_0_0EXFileSystem.h>\n\n@interface ABI45_0_0EXFileSystemLocalFileHandler : NSObject <ABI45_0_0EXFileSystemHandler>\n\n@end\n" (preproc_call) "#import <ABI45_0_0EXFileSystem/ABI45_0_0EXFileSystem.h>\n" (preproc_directive) "#import" (preproc_arg) "<ABI45_0_...
15
3
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 49.67, "nodes": 12, "errors": 0, "source_hash": "8374ae2c0acec0ba55cc5539ba6a2c40a22ba38e45b117bca63718a75659254c", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <AB...
77,544
c
/** \file colorpicker.h Defines class for picking colors */ #ifndef ___COLORPICK__ #define ___COLORPICK__ #include <QWidget> #include <QPainter> #include <QColor> #include "ui_colorPicker.h" #include <vector> #include <QColor> /** \brief main class for color picking */ /** This class handles color picking...
26.19
47
(translation_unit) "/** \file colorpicker.h Defines class for picking colors */ \n#ifndef ___COLORPICK__ \n#define ___COLORPICK__ \n \n#include <QWidget> \n#include <QPainter> \n#include <QColor> \n#include "ui_colorPicker.h" \n#include <vector> \n#include <QColor> \n \n/** \brief main class for color picking */ \n/** ...
153
3
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 26.19, "nodes": 90, "errors": 0, "source_hash": "2d3bb08a04359452a5198e4fa948eb03b70392389066fce954f93447d508a1c5", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
77,545
c
/* This file was generated by syncqt. */ #ifndef QT_QTQML_VERSION_H #define QT_QTQML_VERSION_H #define QTQML_VERSION_STR "5.14.0" #define QTQML_VERSION 0x050E00 #endif // QT_QTQML_VERSION_H
30.67
6
(translation_unit) "/* This file was generated by syncqt. */\n#ifndef QT_QTQML_VERSION_H\n#define QT_QTQML_VERSION_H\n\n#define QTQML_VERSION_STR "5.14.0"\n\n#define QTQML_VERSION 0x050E00\n\n#endif // QT_QTQML_VERSION_H\n" (comment) "/* This file was generated by syncqt. */" (preproc_ifdef) "#ifndef QT_QTQML_VERSI...
18
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 30.67, "nodes": 15, "errors": 0, "source_hash": "294adc54b0d48768c697e9dd6ae940b2cc11214c3ccb2efda422e006297bfff3", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef QT...
77,546
c
#pragma once #include "ReCommon.h" #include "ReArgumentExpression.h" #include "ReInputStream.h" namespace Redneck { class Parser { private: Lexer* _lexer; Expression* Statement(); Expression* Expr(); Expression* Term(); Expression* Bool(); Expression* Assignment(); Expression* Fact...
18.55
33
(translation_unit) "#pragma once \n \n#include "ReCommon.h" \n#include "ReArgumentExpression.h" \n#include "ReInputStream.h" \n \nnamespace Redneck \n{ \n class Parser \n { \n private: \n Lexer* _lexer; \n \n Expression* Statement(); \n Expression* Expr(); \n Expression* Term(); \n Expression* Bool(); \n Expressi...
210
4
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 18.55, "nodes": 136, "errors": 0, "source_hash": "c3aed8d127614022a07ced0f283fd413ae4159a2695766bb8def658f642b70e7", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
77,547
c
// // SlideInViewController.h // DiBK // // Created by <NAME> on 20/07/2013. // Copyright (c) 2013 com.Byte.DiBK. All rights reserved. // #import <UIKit/UIKit.h> @class SlideInView, Template; @interface SlideInViewController : UIViewController <UITableViewDelegate, ...
26.86
21
(translation_unit) "//\n// SlideInViewController.h\n// DiBK\n//\n// Created by <NAME> on 20/07/2013.\n// Copyright (c) 2013 com.Byte.DiBK. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@class SlideInView, Template;\n\n@interface SlideInViewController : UIViewController <UITableViewDelegate,\n ...
91
9
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 26.86, "nodes": 61, "errors": 0, "source_hash": "4b0110dd8ecb95863c4f84516160be68fc3e142705826b8a92281c49319c240a", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
77,548
c
// // DRRScene.h // Drawing // // Created by Diego on 09/01/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <SpriteKit/SpriteKit.h> #import "DRRDock.h" #include <dispatch/dispatch.h> //#define DEBUGSCENE //#define DEBUGPHYSICS #define lGreen colorWithCalibratedRed:0.35 green:0.88 blue:0.11 alph...
36.72
133
(translation_unit) "//\n// DRRScene.h\n// Drawing\n//\n// Created by Diego on 09/01/14.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n\n#import <SpriteKit/SpriteKit.h>\n#import "DRRDock.h"\n#include <dispatch/dispatch.h>\n\n//#define DEBUGSCENE\n//#define DEBUGPHYSICS\n\n#define lGreen colorWithCalibrate...
1,106
180
{"language": "c", "success": true, "metadata": {"lines": 133, "avg_line_length": 36.72, "nodes": 716, "errors": 0, "source_hash": "130c3a115feeb2eb075c5e0013e9a4f18f44db698a235d4f51a5a381107b4ac1", "categorized_nodes": 418}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#impor...
77,549
c
/* gmp-mparam.h -- Compiler/machine parameter header file. Copyright (C) 1991, 1993, 1994, 1999, 2000 Free Software Foundation, Inc. This file is part of the GNU MP Library. The GNU MP Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as publi...
37.33
46
(translation_unit) "/* gmp-mparam.h -- Compiler/machine parameter header file.\n\nCopyright (C) 1991, 1993, 1994, 1999, 2000 Free Software Foundation, Inc.\n\nThis file is part of the GNU MP Library.\n\nThe GNU MP Library is free software; you can redistribute it and/or modify\nit under the terms of the GNU Lesser Gene...
85
0
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 37.33, "nodes": 80, "errors": 0, "source_hash": "bcf9ccc9095877532d59643fa9ba17bb92ba09099ae093a1651fb91b99bbdff8", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define BI...
77,550
c
// // ensembling.h // LightCTR // // Created by SongKuangshi on 2018/12/3. // Copyright © 2018 SongKuangshi. All rights reserved. // #ifndef ensembling_h #define ensembling_h #include <cmath> #include <vector> #include <iostream> #include <algorithm> // Hard majority voting // Weighted Average Probabilities clas...
28.42
106
(translation_unit) "//\n// ensembling.h\n// LightCTR\n//\n// Created by SongKuangshi on 2018/12/3.\n// Copyright © 2018 SongKuangshi. All rights reserved.\n//\n\n#ifndef ensembling_h\n#define ensembling_h\n\n#include <cmath>\n#include <vector>\n#include <iostream>\n#include <algorithm>\n\n// Hard majority voting\n/...
886
21
{"language": "c", "success": true, "metadata": {"lines": 106, "avg_line_length": 28.42, "nodes": 519, "errors": 0, "source_hash": "9b7089a4336226a3fd782d29d4dcb2c59024dbab40b80a6a5191fc08fc5a3741", "categorized_nodes": 354}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifnde...
77,551
c
// @(#)root/mathcore:$Id$ // Authors: <NAME>, <NAME>, <NAME> 2005 /********************************************************************** * * * Copyright (c) 2005 , LCG ROOT MathLib Team * * ...
40.48
61
(translation_unit) "// @(#)root/mathcore:$Id$\n// Authors: <NAME>, <NAME>, <NAME> 2005\n\n /**********************************************************************\n * *\n * Copyright (c) 2005 , LCG ROOT MathLib Team *\n * ...
182
16
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 40.48, "nodes": 123, "errors": 0, "source_hash": "f01234f1e3a66b2b0363d30275b79f0381614b6814eb519ffa510dbc882c8b4e", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
77,552
c
/* * $XFree86: xc/lib/font/builtins/dir.c,v 1.5 2005/10/14 15:16:05 tsi Exp $ * * Copyright 1999 SuSE, Inc. * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that * the above copyright notice appear in all copie...
34.2
55
(translation_unit) "/*\n * $XFree86: xc/lib/font/builtins/dir.c,v 1.5 2005/10/14 15:16:05 tsi Exp $\n *\n * Copyright 1999 SuSE, Inc.\n *\n * Permission to use, copy, modify, distribute, and sell this software and its\n * documentation for any purpose is hereby granted without fee, provided that\n * the above copyright...
232
0
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 34.2, "nodes": 136, "errors": 0, "source_hash": "6d486b0a2335e319d26eb484c0c89626be1e28ccaa7553d6352a3ca70eba620c", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
77,553
c
// // Created by anast on 11/14/2020. // #ifndef CRYPTO_RSA_H #define CRYPTO_RSA_H #include "../BigInt.h" #include "MillerRabin.h" struct Key { BigInt mod; BigInt val; }; class RSA { public: pair<Key, Key> keygen(int prime_size); vector<uint8_t> encrypt(const vector<uint8_t>& m, const Key& pk); ...
26.7
23
(translation_unit) "//\n// Created by anast on 11/14/2020.\n//\n\n#ifndef CRYPTO_RSA_H\n#define CRYPTO_RSA_H\n\n#include "../BigInt.h"\n#include "MillerRabin.h"\n\nstruct Key {\n BigInt mod;\n BigInt val;\n};\n\nclass RSA {\npublic:\n pair<Key, Key> keygen(int prime_size);\n vector<uint8_t> encrypt(const ve...
215
11
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 26.7, "nodes": 138, "errors": 0, "source_hash": "3b9346c976647eab680c2175404258e6b79314f07b9c51ff5a350e06ab0a3d08", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
77,554
c
#pragma once #include <string> #include "XTypes.h" #include "GLUtils.h" namespace IonEngine { // ---- Field Info ---- enum class ShaderFieldType { In, InLayout, Out, Uniform, UniformLayout, UniformBufferLayout, NativeType, NativeTypeArray, }; struct ShaderFieldInfo { ShaderFieldType fieldType; ...
35.06
110
(translation_unit) "#pragma once\n#include <string>\n#include "XTypes.h"\n#include "GLUtils.h"\n\n\nnamespace IonEngine {\n // ---- Field Info ----\n enum class ShaderFieldType {\n In,\n InLayout,\n Out,\n Uniform,\n UniformLayout,\n UniformBufferLayout,\n NativeType,\n NativeTypeArray,\n };\n\n struct ShaderFi...
1,109
66
{"language": "c", "success": true, "metadata": {"lines": 110, "avg_line_length": 35.06, "nodes": 677, "errors": 0, "source_hash": "bb443ab49ed21845ee10fb16a86ffb784484b11409fad198b7f184a93fb1df1d", "categorized_nodes": 476}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
77,555
c
#ifndef H_FIFO #define H_FIFO ///////////////////////////////////// // First in first out (forgotten) // ///////////////////////////////////// //A FIFO-like structure, that only supports put in and overwrites //the oldest task when full //References// //-----------// #include "Inference.h" #include "Globals.h" #incl...
23.32
40
(translation_unit) "#ifndef H_FIFO\n#define H_FIFO\n\n/////////////////////////////////////\n// First in first out (forgotten) //\n/////////////////////////////////////\n//A FIFO-like structure, that only supports put in and overwrites\n//the oldest task when full\n\n//References//\n//-----------//\n#include "Inferenc...
173
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 23.32, "nodes": 113, "errors": 0, "source_hash": "d15250c7df4155712df47f0a8110a272e4389500ef869ab0fdcdf6e39cd6d600", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
77,556
c
require_fp; softfloat_roundingMode = RM; FRD = f32_div(FRS1, FRS2); set_fp_exceptions;
20.75
4
(translation_unit) "require_fp;\nsoftfloat_roundingMode = RM;\nFRD = f32_div(FRS1, FRS2);\nset_fp_exceptions;\n" (expression_statement) "require_fp;" (identifier) "require_fp" (;) ";" (expression_statement) "softfloat_roundingMode = RM;" (assignment_expression) "softfloat_roundingMode = RM" (ident...
26
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 20.75, "nodes": 14, "errors": 0, "source_hash": "40357c2b535400abc423de42fb4eace5e74c4d01b7b2fe49b098402b76d357f3", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "identifier", "text": "require_fp",...
77,557
c
#ifndef FILE_IO #define FILE_IO #include <stdio.h> #include "bytecode.h" char* read_file( FILE* file ); void write_bytecode( bytecode_t* bytecode ); #endif
14.45
11
(translation_unit) "#ifndef FILE_IO \n#define FILE_IO \n \n#include <stdio.h> \n#include "bytecode.h" \n \nchar* read_file( FILE* file ); \nvoid write_bytecode( bytecode_t* bytecode ); \n \n \n#endif" (preproc_ifdef) "#ifndef FILE_IO \n#define FILE_IO \n \n#include <stdio.h> \n#include "bytecode.h" \n \nchar* read_fi...
45
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 14.45, "nodes": 35, "errors": 0, "source_hash": "aa88979c3432da0c9f373f423a1c10a49defa56e8a548b87e6a3830a2f25a147", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
77,558
c
/** * MIT License * * Copyright (c) 2021 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy...
32.32
194
(translation_unit) "/**\n * MIT License\n *\n * Copyright (c) 2021 <NAME> <<EMAIL>>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation...
565
1
{"language": "c", "success": true, "metadata": {"lines": 194, "avg_line_length": 32.32, "nodes": 329, "errors": 0, "source_hash": "78959761851bd009561f0386798732a64e12509be746c01b48ee9a692c62fe7d", "categorized_nodes": 237}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
77,559
c
#include "spec.h" int external_start(int, string | string *, string | function, string | function, string | function | void);
62
2
(translation_unit) "#include "spec.h"\n\nint external_start(int, string | string *, string | function, string | function, string | function | void);\n" (preproc_include) "#include "spec.h"\n" (#include) "#include" (string_literal) ""spec.h"" (") """ (string_content) "spec.h" (") """ (decla...
46
5
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 62.0, "nodes": 24, "errors": 0, "source_hash": "7ac432f4f12124a25cd2ffbacae6a820b6e79c22610fe0befcad703f0b0780e0", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
77,560
c
/* APPLE LOCAL file CW asm blocks */ /* { dg-do assemble { target i?86*-*-darwin* x86_64*-*-darwin*} } */ /* { dg-options { -fasm-blocks -msse3 -O3 -Winline -Wall } } */ /* Radar 4381918 */ /* This should have no prologue/epilogue */ inline int numberFive (void); asm int numberFive (void) { mov eax, 1 mov edi,...
24.43
14
(translation_unit) "/* APPLE LOCAL file CW asm blocks */\n/* { dg-do assemble { target i?86*-*-darwin* x86_64*-*-darwin*} } */\n/* { dg-options { -fasm-blocks -msse3 -O3 -Winline -Wall } } */\n/* Radar 4381918 */\n\n/* This should have no prologue/epilogue */\ninline int numberFive (void);\nasm int numberFive (void)\n{...
57
3
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 24.43, "nodes": 34, "errors": 0, "source_hash": "7f2f1dffe81ac7e972c140e99892ac667094febe9ef5b1ce3bf291e3a57111ea", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "inline int...
77,561
c
#ifndef RKDerivative_H #define RKDerivative_H #include "FWCore/Utilities/interface/Visibility.h" #include "RKSmallVector.h" #include "FWCore/Utilities/interface/GCC11Compatibility.h" /// Base class for derivative calculation. template <typename T, int N> class dso_internal RKDerivative { public: typedef T Scalar;...
30.73
15
(translation_unit) "#ifndef RKDerivative_H\n#define RKDerivative_H\n\n#include "FWCore/Utilities/interface/Visibility.h"\n#include "RKSmallVector.h"\n\n#include "FWCore/Utilities/interface/GCC11Compatibility.h"\n\n/// Base class for derivative calculation.\n\ntemplate <typename T, int N>\nclass dso_internal RKDerivativ...
113
8
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 30.73, "nodes": 72, "errors": 0, "source_hash": "8db478775c1f9576b0778a7b53e9dcfe9f5a6c36d272fe0fce28730e541a7800", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
77,562
c
// Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima). // // 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 re...
42.97
127
(translation_unit) "// Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima).\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/L...
748
48
{"language": "c", "success": true, "metadata": {"lines": 127, "avg_line_length": 42.97, "nodes": 421, "errors": 0, "source_hash": "7f855c3986da558ae159a71721a86f04cb5c9e0c0eaf1ef693b68d9d2e000628", "categorized_nodes": 322}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
77,563
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 "GOOBaseContentView.h" @class QTMSwitch, UIImageView, UILabel; @interface JETAutomaticSiteBlockingToggle : GOOBaseContentView { ...
38.44
27
(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 "GOOBaseContentView.h"\n\n@class QTMSwitch, UIImageView, UILabel;\n\n@interface JETAutomaticSiteBlockingTog...
244
21
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 38.44, "nodes": 154, "errors": 0, "source_hash": "93958fa5d94e1bf66992583d3a2fe58d9804b06270d9c53e152f0b4d069056ee", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
77,564
c
/* * fft.h * * Copyright (c) 2018 <NAME> * * Author: <NAME> * Email: <EMAIL> * https://www.mathworks.com/matlabcentral/profile/authors/3734620-disi-a * * http://www.netlib.org/fftpack/doc * * PARAMETERS: * * int n; The length of the sequence to be transformed. * * float *x; A real array o...
40.51
81
(translation_unit) "/*\n * fft.h\n *\n * Copyright (c) 2018 <NAME>\n * \n * Author: <NAME>\n * Email: <EMAIL>\n * https://www.mathworks.com/matlabcentral/profile/authors/3734620-disi-a\n * \n * http://www.netlib.org/fftpack/doc\n * \n * PARAMETERS:\n * * int n; The length of the sequence to be transformed.\n *...
428
0
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 40.51, "nodes": 330, "errors": 0, "source_hash": "052c57077b3cedffd3b6a64e351cc2f9a216ff17d3e0d9af0c0bf8bfe797de16", "categorized_nodes": 191}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
77,565
c
#ifndef _PROCESS_SCHEDULER_DEF_H_ #define _PROCESS_SCHEDULER_DEF_H_ #include <process/process.h> #define _STD_NANO_ 50 void schedulerInitialize(process_t* kproc); void schedulerAdd(process_t* new_process); void schedulerRemove(process_t* old_process); process_t* getCurrentProcess(); int schedulerNumProcesses(); void...
37.75
16
(translation_unit) "#ifndef _PROCESS_SCHEDULER_DEF_H_\n#define _PROCESS_SCHEDULER_DEF_H_\n#include <process/process.h>\n#define _STD_NANO_ 50\n\nvoid schedulerInitialize(process_t* kproc);\n\nvoid schedulerAdd(process_t* new_process);\nvoid schedulerRemove(process_t* old_process);\n\nprocess_t* getCurrentProcess();\nin...
137
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 37.75, "nodes": 103, "errors": 0, "source_hash": "82f2535ee2275e4ade7dfee27d1cc8408d9a1b4fc41f377e28d3f03058dc48e6", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
77,566
c
#pragma once #include "ATen/ATenGeneral.h" #include "ATen/CPUGeneral.h" #include "ATen/Allocator.h" #include "ATen/Scalar.h" #include "ATen/Type.h" #include "ATen/Generator.h" #include "ATen/Context.h" #include "ATen/Storage.h" #include "ATen/Tensor.h" #include "ATen/TensorGeometry.h" #include "ATen/Functions.h" #incl...
26.25
16
(translation_unit) "#pragma once\n\n#include "ATen/ATenGeneral.h"\n#include "ATen/CPUGeneral.h"\n#include "ATen/Allocator.h"\n#include "ATen/Scalar.h"\n#include "ATen/Type.h"\n#include "ATen/Generator.h"\n#include "ATen/Context.h"\n#include "ATen/Storage.h"\n#include "ATen/Tensor.h"\n#include "ATen/TensorGeometry.h"\n#...
94
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 26.25, "nodes": 48, "errors": 0, "source_hash": "75966741b66f2527769513dcc3f3385bf330e2ff2f1d0e83f5a1714ade2c653f", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
77,567
c
// // AppUtilities.h // CoffeeSVP // // Created by bmaci on 2/1/13. // Copyright (c) 2013 bmaci. All rights reserved. // #import <Foundation/Foundation.h> //store statuses #define statusOpen @"open" #define statusClose @"closed" #define statusBreak @"on_break" //tab slugs #define orderSlug @"order" #define statu...
24
28
(translation_unit) "//\n// AppUtilities.h\n// CoffeeSVP\n//\n// Created by bmaci on 2/1/13.\n// Copyright (c) 2013 bmaci. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n//store statuses\n#define statusOpen @"open"\n#define statusClose @"closed"\n#define statusBreak @"on_break"\n\n//tab slugs\n#def...
92
5
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 24.0, "nodes": 68, "errors": 0, "source_hash": "bcf52c447b4f894b9e58a1317558a1c7917e4467f9c116f17a02dac22e80061c", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
77,568
c
#include <SDL2/sdl.h> #include "gfx/graphics.h" static Uint32 getrawpixel(SDL_Surface *surface, int x, int y) { int bpp = surface->format->BytesPerPixel; /* Here p is the address to the pixel we want to retrieve */ Uint8 *p = (Uint8 *)surface->pixels + y * surface->pitch + x * bpp; switch (bpp) ...
25.6
53
(translation_unit) "#include <SDL2/sdl.h>\n#include "gfx/graphics.h"\n\nstatic Uint32\ngetrawpixel(SDL_Surface *surface, int x, int y)\n{\n int bpp = surface->format->BytesPerPixel;\n \n /* Here p is the address to the pixel we want to retrieve */\n\n Uint8 *p = (Uint8 *)surface->pixels + y * surface->pitch...
512
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 25.6, "nodes": 339, "errors": 0, "source_hash": "1a59cf9de0dfd0d3d85ff2f7490614a6584fbcdc27ae3ecba5b82e8a13cc09a3", "categorized_nodes": 258}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
77,569
c
#include <stdio.h> #include <stdlib.h> #include "api.h" #define CRYPTO_BYTES 4756 int main(void) { unsigned char sk[PRIVATE_KEY_LEN] = { 0 }; unsigned char pk[HSS_MAX_PUBLIC_KEY_LEN] = { 0 }; unsigned char message[17] = "This should work!"; unsigned char signature[CRYPTO_BYTES + 17]; unsigned long long len...
31.22
36
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\n#include "api.h"\n#define CRYPTO_BYTES 4756\n\nint main(void) {\n unsigned char sk[PRIVATE_KEY_LEN] = { 0 };\n unsigned char pk[HSS_MAX_PUBLIC_KEY_LEN] = { 0 };\n unsigned char message[17] = "This should work!";\n unsigned char signature[CRYPTO_BYTES + ...
213
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 31.22, "nodes": 132, "errors": 0, "source_hash": "50a142b702daf14103fffc8afeac558fd8e88305e90f0eb216c93536ae0a30f0", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
77,570
c
extern int libshared(void);
27
1
(translation_unit) "extern int libshared(void);\n" (declaration) "extern int libshared(void);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (function_declarator) "libshared(void)" (identifier) "libshared" (parameter_list) "(void)" (() "(" (p...
13
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 27.0, "nodes": 9, "errors": 0, "source_hash": "bfdec8dd635931bdcadbdbbbf1d0e8b70e52cacd1f2f59667c7798ccfc11ba4f", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern int lib...
77,571
c
/* * libplayerc : a Player client library * Copyright (C) <NAME> 2002-2003 * * 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) ...
34.99
93
(translation_unit) "/* \n * libplayerc : a Player client library\n * Copyright (C) <NAME> 2002-2003\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 published by the Free Software Foundation; either version 2\n * of the Li...
384
0
{"language": "c", "success": true, "metadata": {"lines": 93, "avg_line_length": 34.99, "nodes": 238, "errors": 0, "source_hash": "ba00a2ba323b8e7b0fed1f8fc56693e02f0be0f7b1de8ba0cb6e808c96f87a60", "categorized_nodes": 173}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
77,572
c
#pragma once #include "network.h" class TcpClient { private: ASocket fSocket; IPAddress fAddress; bool fIsValid=false; int fLastError=0; public: // Create a TcpClient connected to a specific host static TcpClient create(const char* hostname, const char* portname, bool hostNumeric = false...
31.36
133
(translation_unit) "#pragma once\n\n#include "network.h"\n\n\nclass TcpClient {\nprivate:\n ASocket fSocket;\n IPAddress fAddress;\n bool fIsValid=false;\n int fLastError=0;\n\npublic:\n\n // Create a TcpClient connected to a specific host\n static TcpClient create(const char* hostname, const char*...
767
22
{"language": "c", "success": true, "metadata": {"lines": 133, "avg_line_length": 31.36, "nodes": 416, "errors": 0, "source_hash": "37fe81f34872c1c3d6b6de5acf4818043f8af0ba055b6124130830dc87f458d0", "categorized_nodes": 272}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
77,573
c
// // UIViewController+Additions.h // JudoKit_iOS // // Copyright (c) 2019 Alternative Payments Ltd // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including ...
38.52
82
(translation_unit) "//\n// UIViewController+Additions.h\n// JudoKit_iOS\n//\n// Copyright (c) 2019 Alternative Payments Ltd\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the "Software"), to deal\n// in the Software wit...
249
22
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 38.52, "nodes": 137, "errors": 0, "source_hash": "d6eeb1815327dfdef6efd13e17737ac12320c2a408ceadbd985301abbbfc9edf", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
77,574
c
#include "sokol.h" static struct { sg_draw_state draw_state; int fb_width; int fb_height; int fb_aspect_scale_x; int fb_aspect_scale_y; bool integer_scale; bool portrait_top_align; } sokol_gfx; #if defined(SOKOL_GLCORE33) static const char* gfx_vs_src = "#version 330\n" "in vec2 ...
32.36
205
(translation_unit) "#include "sokol.h"\n\nstatic struct \n{\n sg_draw_state draw_state;\n int fb_width;\n int fb_height;\n int fb_aspect_scale_x;\n int fb_aspect_scale_y;\n\n bool integer_scale;\n bool portrait_top_align;\n} sokol_gfx;\n\n#if defined(SOKOL_GLCORE33)\nstatic const char* gfx_vs_src =...
1,679
0
{"language": "c", "success": true, "metadata": {"lines": 205, "avg_line_length": 32.36, "nodes": 988, "errors": 0, "source_hash": "521161746136ace5cd4b7ce077fd817e2e8b35562faed92d5d8f7f936d4bf83d", "categorized_nodes": 617}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
77,575
c
/* Auto-generated by genmsg_cpp for file /home/jchen/workspace/src/quadrotor_msgs/msg/OutputData.msg */ #ifndef QUADROTOR_MSGS_MESSAGE_OUTPUTDATA_H #define QUADROTOR_MSGS_MESSAGE_OUTPUTDATA_H #include <string> #include <vector> #include <map> #include <ostream> #include "ros/serialization.h" #include "ros/builtin_messa...
39.44
218
(translation_unit) "/* Auto-generated by genmsg_cpp for file /home/jchen/workspace/src/quadrotor_msgs/msg/OutputData.msg */\n#ifndef QUADROTOR_MSGS_MESSAGE_OUTPUTDATA_H\n#define QUADROTOR_MSGS_MESSAGE_OUTPUTDATA_H\n#include <string>\n#include <vector>\n#include <map>\n#include <ostream>\n#include "ros/serialization.h"\...
2,328
144
{"language": "c", "success": true, "metadata": {"lines": 218, "avg_line_length": 39.44, "nodes": 1370, "errors": 0, "source_hash": "3d71c2488228a855c675f250c4abe226e69c401b89db339fe99dd6fe1a204735", "categorized_nodes": 867}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
77,576
c
// // XFVedioRequestTask.h // Mobi_Vedio // // Created by 李新丰 on 2020/7/10. // Copyright © 2020 李新丰. All rights reserved. // ///这个task的功能是从网络请求数据,并把数据保存到本地的一个临时文件,网络请求结束的时候,如果数据完整,则把数据缓存到指定的路径,不完整就删除 #import <Foundation/Foundation.h> #import <AVFoundation/AVFoundation.h> @class MobiXFVideoRequestTask; @protocol ...
39.09
32
(translation_unit) "//\n// XFVedioRequestTask.h\n// Mobi_Vedio\n//\n// Created by 李新丰 on 2020/7/10.\n// Copyright © 2020 李新丰. All rights reserved.\n//\n\n///这个task的功能是从网络请求数据,并把数据保存到本地的一个临时文件,网络请求结束的时候,如果数据完整,则把数据缓存到指定的路径,不完整就删除\n#import <Foundation/Foundation.h>\n#import <AVFoundation/AVFoundation.h>\n\n@class Mob...
312
36
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 39.09, "nodes": 200, "errors": 0, "source_hash": "1dfeab87eacbf5b8d2418c6edaa47dcbe0b0d0474df25aa7475782861c636a0a", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "NSObjec...
77,577
c
/* Device specific implementation of button communication */ #ifndef _HA_BUTTONNET #define _HA_BUTTONNET #include "../devtools.h" #include "buttonnetwork.h" //This function will handle all sending of messages. Just make approparite bool _send_beacon(char* msg); void _recv_beacon(char* msg); //not sure how bluetooth me...
35.9
10
(translation_unit) "/* Device specific implementation of button communication */\n#ifndef _HA_BUTTONNET\n#define _HA_BUTTONNET\n#include "../devtools.h"\n#include "buttonnetwork.h"\n\n//This function will handle all sending of messages. Just make approparite\nbool _send_beacon(char* msg);\nvoid _recv_beacon(char* msg);...
50
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 35.9, "nodes": 33, "errors": 0, "source_hash": "2c1336573b3b1d1b59fe8d5aede78490a5ef6db58ca62b4eca1f309169ed5f7b", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
77,578
c
#pragma once #include "GameObject.h" #include "../DataStructuresLib/List.h" #include "CollisionManager.h" #include "Platform.h" #include "Rock.h" class Level : public GameObject { public: Level(); void Update(float deltaTime); void Draw(aie::Renderer2D* renderer); private: Platform* _platform; List<Rock*> _roc...
18.06
17
(translation_unit) "#pragma once\n#include "GameObject.h"\n#include "../DataStructuresLib/List.h"\n#include "CollisionManager.h"\n#include "Platform.h"\n#include "Rock.h"\n\nclass Level :\n public GameObject\n{\npublic:\n Level();\n\n void Update(float deltaTime);\n void Draw(aie::Renderer2D* renderer);\n\nprivate:\n P...
104
3
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 18.06, "nodes": 61, "errors": 0, "source_hash": "3c87bd7c9a034d7b9ef63445442ea22bdc7f477ff80d78153466a290bf86093e", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
77,579
c
// // Created by ARCTOPUS on 11/1/2018. // #ifndef PROGNHF_HASHTABLE_H #define PROGNHF_HASHTABLE_H #include <math.h> #include "List.h" typedef struct Hashtable { int size; // size of vector int count; // number of items currently in the hashtable List **vector; void (*free_item)(void *); } Hashtab...
24.68
37
(translation_unit) "//\n// Created by ARCTOPUS on 11/1/2018.\n//\n\n#ifndef PROGNHF_HASHTABLE_H\n#define PROGNHF_HASHTABLE_H\n\n#include <math.h>\n\n#include "List.h"\n\n\ntypedef struct Hashtable\n{\n int size; // size of vector\n int count; // number of items currently in the hashtable\n List **vector;\n\n ...
285
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 24.68, "nodes": 206, "errors": 0, "source_hash": "c2e3bb52d69f68131554d48ba9b4bde6a15030e6f152ea7fa084ff84e61be308", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
77,580
c
#pragma once #include "tinyxml.h" #include "GameTextLoader.h" using namespace NS_TEXT_LOADER; #define MAX_TEXTLEN 1024 class CRanXMLParser { TiXmlDocument m_XmlDoc; CString m_strLang; public: CRanXMLParser( CString & strLang ); ~CRanXMLParser(); private: BOOL _ParseWORD( STRFLAG & pData ); BOOL _ParseSENTEN...
30.59
27
(translation_unit) "#pragma once\n\n#include "tinyxml.h"\n#include "GameTextLoader.h"\n\nusing namespace NS_TEXT_LOADER;\n#define MAX_TEXTLEN 1024\n\nclass CRanXMLParser\n{\n TiXmlDocument m_XmlDoc; \n CString m_strLang;\n\npublic:\n CRanXMLParser( CString & strLang );\n ~CRanXMLParser();\n\nprivate:\n BOOL _ParseWORD(...
268
8
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 30.59, "nodes": 158, "errors": 0, "source_hash": "b56671ca39d05a25d169f6c99082c684093c65edbd4e9ad5428c65e9a42efbbe", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
77,581
c
// // VSAdConfig.h // VPN-SpeedPro // // Created by hf on 2020/11/10. // #import <Foundation/Foundation.h> #import "VSAdMacro.h" NS_ASSUME_NONNULL_BEGIN @class VSGlobalConfigCloseBtnModel; @interface VSAdConfig : NSObject + (void)configAds; + (BOOL)allowRequestWithShowPlaceType:(VSAdShowPlaceType)placeType; ...
25.64
22
(translation_unit) "//\n// VSAdConfig.h\n// VPN-SpeedPro\n//\n// Created by hf on 2020/11/10.\n//\n\n#import <Foundation/Foundation.h>\n#import "VSAdMacro.h"\n\n\nNS_ASSUME_NONNULL_BEGIN\n\n\n@class VSGlobalConfigCloseBtnModel;\n\n@interface VSAdConfig : NSObject\n\n+ (void)configAds;\n\n+ (BOOL)allowRequestWithShow...
122
9
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 25.64, "nodes": 73, "errors": 0, "source_hash": "fb5650155ec9175102f0a722148172cca8ba87233fa372e2d003c607331ae761", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
77,582
c
// // Copyright (c) 2014, Facebook, Inc. // All rights reserved. // // This source code is licensed under the University of Illinois/NCSA Open // Source License found in the LICENSE file in the root directory of this // source tree. An additional grant of patent rights can be found in the // PATENTS file in the same di...
35.31
13
(translation_unit) "//\n// Copyright (c) 2014, Facebook, Inc.\n// All rights reserved.\n//\n// This source code is licensed under the University of Illinois/NCSA Open\n// Source License found in the LICENSE file in the root directory of this\n// source tree. An additional grant of patent rights can be found in the\n// ...
24
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 35.31, "nodes": 10, "errors": 0, "source_hash": "90d7acff7897972adebd26b526a533b6e025d44b46864884de5a9445423af293", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
77,583
c
#pragma once #include "GLVertexBuffer.h" #include <glad/glad.h> class GLVertexArray { public: GLVertexArray(); ~GLVertexArray(); void AddVertexBuffer(const GLVertexBuffer& vbo); void Bind() const; static void Unbind(); private: GLuint m_RendererID; unsigned int m_NumLocations; };
18.2
15
(translation_unit) "#pragma once\n\n#include "GLVertexBuffer.h"\n\n#include <glad/glad.h>\n\nclass GLVertexArray\n{\npublic:\n GLVertexArray();\n ~GLVertexArray();\n\n void AddVertexBuffer(const GLVertexBuffer& vbo);\n\n void Bind() const;\n static void Unbind();\n\nprivate:\n GLuint m_RendererID;\n unsigned int m_NumL...
89
4
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 18.2, "nodes": 47, "errors": 0, "source_hash": "bd2d2a063025dcc02ed0cbe2a2d42a3b158d445f5bc9f86fc6b55136d1a2a140", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
77,584
c
/* Generated by RuntimeBrowser. */ @protocol PUImageDataNode <PXRunNode> @required - (NSData *)imageData; @end
17.67
6
(translation_unit) "/* Generated by RuntimeBrowser.\n */\n\n@protocol PUImageDataNode <PXRunNode>\n\n@required\n\n- (NSData *)imageData;\n\n@end\n" (comment) "/* Generated by RuntimeBrowser.\n */" (ERROR) "@protocol PUImageDataNode <PXRunNode>\n\n@required\n\n- (NSData *)imageData;\n\n@end" (ERROR) "@" (typ...
26
5
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 17.67, "nodes": 19, "errors": 0, "source_hash": "493afaf863b5ff77ea39ea9d2069984aa8f037eec58188d0c647c9c7d663879a", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@protocol PUImageD...
77,585
c
/* @author <NAME> (e-mail: <EMAIL>) @par License that can be found in the LICENSE file. https://github.com/openprf/smart_syslog */ #ifndef PROJECT_CPPSTYLELOG_H #define PROJECT_CPPSTYLELOG_H #include "SmartSyslogger.h" #include <string> class CppStyleLog : public SmartSyslogger { public: CppSty...
23.83
36
(translation_unit) "/*\n@author <NAME> (e-mail: <EMAIL>)\n\n@par\n License that can be found in the LICENSE file.\n https://github.com/openprf/smart_syslog\n*/\n\n#ifndef PROJECT_CPPSTYLELOG_H\n#define PROJECT_CPPSTYLELOG_H\n\n#include "SmartSyslogger.h"\n#include <string>\n\nclass CppStyleLog : public Sm...
184
8
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 23.83, "nodes": 110, "errors": 0, "source_hash": "7521a1e2da9c743362461780a7321d32ffc768933eb7b790311c034fb744927d", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef PROJECT...
77,586
c
#import "XcodeDownloads.h" @interface HelperClass: NSObject @property XcodeDownloads *xcDownloadInfo; @property BOOL hasAppleId; @property BOOL hasDeveloperAccount; @property NSString *theosPath; @property NSString *dpkgPath; @property NSString *username; @property (strong, atomic) void (^BasicProgressBlock)(NSString...
41.08
39
(translation_unit) "#import "XcodeDownloads.h"\n\n@interface HelperClass: NSObject\n\n@property XcodeDownloads *xcDownloadInfo;\n@property BOOL hasAppleId;\n@property BOOL hasDeveloperAccount;\n@property NSString *theosPath;\n@property NSString *dpkgPath;\n@property NSString *username;\n@property (strong, atomic) void ...
573
63
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 41.08, "nodes": 383, "errors": 0, "source_hash": "fd4ac1055e8e5fdc0b4e37c984e5788bf9cd68fed0d7404e1fbafccc56aafe08", "categorized_nodes": 205}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
77,587
c
/* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class org_neuropod_NeuropodValue */ #ifndef _Included_org_neuropod_NeuropodValue #define _Included_org_neuropod_NeuropodValue #ifdef __cplusplus extern "C" { #endif /* * Class: org_neuropod_NeuropodValue * Method: nativeToLis...
25.38
26
(translation_unit) "/* DO NOT EDIT THIS FILE - it is machine generated */\n#include <jni.h>\n/* Header for class org_neuropod_NeuropodValue */\n\n#ifndef _Included_org_neuropod_NeuropodValue\n#define _Included_org_neuropod_NeuropodValue\n#ifdef __cplusplus\nextern "C" {\n#endif\n/*\n * Class: org_neuropod_NeuropodV...
78
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 25.38, "nodes": 55, "errors": 0, "source_hash": "56496f6eae574d083c0a99fed1af5ba23e4fc5f89ab579b81ab7c6cbb48cde53", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
77,588
c
#pragma once #include <string> #include <iostream> using namespace std; struct Item { std::string name; int weight; }; struct Inventory { Item items[10]; }; class Character { public: Character(); std::string getName(); private: std::string name; protected:...
17.39
23
(translation_unit) "#pragma once\n#include <string>\n#include <iostream>\n\nusing namespace std;\n\nstruct Item {\n std::string name;\n int weight;\n};\n\nstruct Inventory {\n Item items[10];\n};\n\nclass Character {\n\n public:\n Character();\n\n std::string getName();\n\n private:\n ...
128
6
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 17.39, "nodes": 73, "errors": 0, "source_hash": "ada3f4db62655d6d9540fcf0e5268e6f3f29d6d98802d14f70647f3636c95ceb", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
77,589
c
// // UIView+HitTest.h // Event // // Created by 朱献国 on 2018/10/24. // Copyright © 2018年 朱献国. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface UIView (HitTest) - (UIView *)hitTest:(CGPoint)point event:(UIEvent *)event; @end NS_ASSUME_NONNULL_END
19.64
14
(translation_unit) "//\n// UIView+HitTest.h\n// Event\n//\n// Created by 朱献国 on 2018/10/24.\n// Copyright © 2018年 朱献国. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface UIView (HitTest)\n \n- (UIView *)hitTest:(CGPoint)point event:(UIEvent *)event;\n\n@end\n\nNS_ASSUME_...
60
5
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 19.64, "nodes": 35, "errors": 0, "source_hash": "ebbd5c0059eb4611c8049f98f2f2b255e862bcf2589f985ec0c28b65dc0bd190", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit.h>\...
77,590
c
#pragma once struct ImgContrastBB { ImgContrastBB(CStr &imgPath); ImgContrastBB(CMat &img3u); inline float contrastVal(Vec4i &center); inline int regSum(Vec4i &box, Vec3i &sumColor); // Return region size and sum color private: Mat iImg; int _w, _h; inline void assertBBox(Vec4i &center, CStr &nam...
26.81
62
(translation_unit) "#pragma once \n \nstruct ImgContrastBB \n{ \n ImgContrastBB(CStr &imgPath); \n ImgContrastBB(CMat &img3u); \n \n inline float contrastVal(Vec4i &center); \n inline int regSum(Vec4i &box, Vec3i &sumColor); // Return region size and sum color \n \nprivate: \n Mat iImg; \n int _w, _h; \n inline void as...
800
24
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 26.81, "nodes": 513, "errors": 0, "source_hash": "103b3d833e6b16b54cc0a2dff6b3ba332c6fd1e5630ce68450b2d33c8af08d1b", "categorized_nodes": 380}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
77,591
c
inline bool LoadTextFile(const char* fileName, TDYNAMICARRAY<char>& data) { // open the file if we can FILE* file = nullptr; fopen_s(&file, fileName, "rb"); if (!file) return false; // get the file size fseek(file, 0, SEEK_END); long size = ftell(file); fseek(file, 0, SEEK_SET);...
30.08
84
(translation_unit) "inline bool LoadTextFile(const char* fileName, TDYNAMICARRAY<char>& data)\n{\n // open the file if we can\n FILE* file = nullptr;\n fopen_s(&file, fileName, "rb");\n if (!file)\n return false;\n\n // get the file size\n fseek(file, 0, SEEK_END);\n long size = ftell(file);...
748
19
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 30.08, "nodes": 452, "errors": 0, "source_hash": "227804ece5b3d60f781e559e3959aa45eddb0622d8afcce0b6e09fd2f0db352f", "categorized_nodes": 314}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "...
77,592
c
#ifndef FRAME_H #define FRAME_H class Frame { public: Frame(); Frame(int x); int frameCount; int frameDelay; void resetFrameCount(); void Set_count_delay(int frame_delay); }; Frame::Frame() {} Frame::Frame(int x) { this->frameCount = 0; this->frameDelay = x; } void Frame::resetFrame...
12.03
37
(translation_unit) "#ifndef FRAME_H \n#define FRAME_H \n \nclass Frame \n{ \npublic: \n Frame(); \n Frame(int x); \n int frameCount; \n int frameDelay; \n \n void resetFrameCount(); \n void Set_count_delay(int frame_delay); \n}; \n \n \nFrame::Frame() \n{} \n \nFrame::Frame(int x) \n{ \n this->frameCount = 0; \n this->...
167
6
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 12.03, "nodes": 100, "errors": 0, "source_hash": "4b9be0facdde042ea8c63e450a4c303614cd411ded863f434c3e8cd06adfc6dc", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
77,593
c
/* © 2014 the PBNF Authors under the MIT license. See AUTHORS for the list of authors.*/ /** * \file a_star.h * * Contains the AStar class. * * \author <NAME> * \date 2008-10-09 */ #if !defined(_A_STAR_H_) #define _A_STAR_H_ #include "state.h" #include "search.h" #include "closed_list.h" #include "pq_open_lis...
19.9
31
(translation_unit) "/* © 2014 the PBNF Authors under the MIT license. See AUTHORS for the list of authors.*/\n\n/**\n * \file a_star.h\n *\n * Contains the AStar class.\n *\n * \author <NAME>\n * \date 2008-10-09\n */\n\n#if !defined(_A_STAR_H_)\n#define _A_STAR_H_\n\n#include "state.h"\n#include "search.h"\n#include "...
147
5
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 19.9, "nodes": 91, "errors": 0, "source_hash": "ba1b4d33c84b65fb3042a62b9e707ca799f16c0fe196f62947e598b14d5dd89e", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "if !defined(...
77,594
c
#ifndef CSCDCCStatusDigi_CSCDCCStatusDigi_h #define CSCDCCStatusDigi_CSCDCCStatusDigi_h /** \class CSCDCCStatusDigi * * Digi for CSC DCC info available in DDU * * */ #include <vector> #include <iosfwd> #include <cstdint> class CSCDCCStatusDigi { public: /// Constructor for all variables CSCDCCStatusDigi(...
31.24
33
(translation_unit) "#ifndef CSCDCCStatusDigi_CSCDCCStatusDigi_h\n#define CSCDCCStatusDigi_CSCDCCStatusDigi_h\n\n/** \class CSCDCCStatusDigi\n *\n * Digi for CSC DCC info available in DDU\n * \n *\n */\n\n#include <vector>\n#include <iosfwd>\n#include <cstdint>\n\nclass CSCDCCStatusDigi {\npublic:\n /// Constructor f...
235
12
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 31.24, "nodes": 123, "errors": 0, "source_hash": "9bc81a0dcb7a75b5207860f19ab5ae5188faaa935186ae138e4ba8571e2fc93f", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
77,595
c
/*==================[inlcusiones]============================================*/ #include "FreeRTOS.h" #include "task.h" #include "queue.h" #include "semphr.h" #include "string.h" // sAPI header #include "sapi.h" //Funciones correspondientes a interrupcion #include "gpioIRQ.h" #include "edgeDetector.h" #include "Fre...
40.29
111
(translation_unit) "/*==================[inlcusiones]============================================*/\n\n#include "FreeRTOS.h"\n#include "task.h"\n#include "queue.h"\n#include "semphr.h"\n\n#include "string.h"\n\n// sAPI header\n#include "sapi.h"\n\n//Funciones correspondientes a interrupcion\n#include "gpioIRQ.h"\n#incl...
1,069
0
{"language": "c", "success": true, "metadata": {"lines": 111, "avg_line_length": 40.29, "nodes": 576, "errors": 0, "source_hash": "2bcad7e65e911e0a40a14974688c1a174b8d176dced8ab1ce550eb74891288e9", "categorized_nodes": 430}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
77,596
c
#include <stdbool.h> #include <stdint.h> #include <openssl/aes.h> #include <openssl/evp.h> #include "sha256.h" #ifdef __cplusplus extern "C" { #endif #define BITSTREAM_BUF_SIZE ((32) * (AES_BLOCK_SIZE)) #define N_NEIGHBORS (3) #define SALT_LEN (32) #define INLEN_MAX (1ull<<20) #define TCOST_MIN 1ull #define SCOST_MIN...
33.87
63
(translation_unit) "#include <stdbool.h>\n#include <stdint.h>\n#include <openssl/aes.h>\n#include <openssl/evp.h>\n#include "sha256.h"\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n#define BITSTREAM_BUF_SIZE ((32) * (AES_BLOCK_SIZE))\n#define N_NEIGHBORS (3)\n#define SALT_LEN (32)\n#define INLEN_MAX (1ull<<20)\n#defin...
610
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 33.87, "nodes": 463, "errors": 0, "source_hash": "1d917d6e339cb4a27dbe4691367b71f493b58fe32ab266077b157ec681b70382", "categorized_nodes": 277}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
77,597
c
/* * rational.h * * Created on: 05/08/2015 * Author: pperezm */ #ifndef RATIONAL_H_ #define RATIONAL_H_ #include "exception.h" #include <string> #include <sstream> class Rational { private: int numerator; int denominator; void normalize(); public: Rational(); Rational(int); Rational(int, int); R...
23.27
128
(translation_unit) "/*\n * rational.h\n *\n * Created on: 05/08/2015\n * Author: pperezm\n */\n\n#ifndef RATIONAL_H_\n#define RATIONAL_H_\n\n#include "exception.h"\n#include <string>\n#include <sstream>\n\nclass Rational {\nprivate:\n int numerator;\n int denominator;\n\n void normalize();\n\npublic:\n Rational()...
1,159
38
{"language": "c", "success": true, "metadata": {"lines": 128, "avg_line_length": 23.27, "nodes": 696, "errors": 0, "source_hash": "f7132677fd47366b04aacee0b7f8c8d662b62df3bcf0c71ea14958125fceae96", "categorized_nodes": 479}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef RATIO...
77,598
c
// // Created by Joshua on 8/11/2019. // #ifndef PARSIFY_DEFINITION_H #define PARSIFY_DEFINITION_H #include <string> class Definition { public: explicit Definition(std::string name); virtual void toSource() {}; std::string name; }; #endif //PARSIFY_DEFINITION_H
14.68
19
(translation_unit) "// \n// Created by Joshua on 8/11/2019. \n// \n \n#ifndef PARSIFY_DEFINITION_H \n#define PARSIFY_DEFINITION_H \n \n \n#include <string> \n \nclass Definition { \npublic: \n explicit Definition(std::string name); \n virtual void toSource() {}; \n std::string name; \n}; \n \n \n#endif //PARSI...
64
3
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 14.68, "nodes": 35, "errors": 0, "source_hash": "8545c93514f04d4787ac9805ae4982dc21f73f9d800b3aac00d6d5a96655b67f", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
77,599