language
stringclasses
1 value
code
stringlengths
6
12.3k
avg_line_length
float64
2.79
91
line_count
float64
1
367
lang_specific_parse
stringlengths
60
1.08M
ast_node_count
int64
2
6.81k
num_errors
int64
0
499
universal_schema
stringlengths
799
825k
__index_level_0__
int64
0
81.2k
c
#include "stats.h" struct Stats compute_statistics(const float* numberset, int setlength) { struct Stats s; int i = 0; float total; /* function call for sorting */ numberset = num_sort((float *)numberset, setlength); /* update the minimum */ s.min = numberset[i]; /* calculate the total ...
24.67
43
(translation_unit) "#include "stats.h"\n\nstruct Stats compute_statistics(const float* numberset, int setlength) {\n struct Stats s;\n int i = 0;\n float total;\n /* function call for sorting */\n numberset = num_sort((float *)numberset, setlength);\n /* update the minimum */\n s.min = numberset[i]...
295
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 24.67, "nodes": 186, "errors": 0, "source_hash": "b9388b4f785fda9c1fba26a724630fb6ab775255934e5db15da167c56fede6f1", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,900
c
/* { dg-do compile } */ /* { dg-options "-fcilkplus -Wall" } */ __attribute__((vector (linear (x:y)))) /* { dg-message "parameter" "" { target c++ } } */ int func2 (int x, int y) { /* { dg-message "using parameters for" "" { target c } } */ return (x+y); } int main (void) { return (func2 (5,6)); }
26.64
11
(translation_unit) "/* { dg-do compile } */\n/* { dg-options "-fcilkplus -Wall" } */\n\n__attribute__((vector (linear (x:y)))) /* { dg-message "parameter" "" { target c++ } } */\nint func2 (int x, int y) \n{ /* { dg-message "using parameters for" "" { target c } } */\n return (x+y);\n}\n\nint main (void)\n{\n return ...
79
1
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 26.64, "nodes": 43, "errors": 0, "source_hash": "05e345ea00160174437a10057e99672dfeca0ff63ed50370a68c40436a50c201", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "__...
6,901
c
#import "appdel.h" @interface ctrmain:UIViewController +(ctrmain*)sha; -(void)statusbarlight; -(void)statusbardark; -(void)statusbarhide; -(void)statusbarshow; @end
19.62
8
(translation_unit) "#import "appdel.h"\n\n@interface ctrmain:UIViewController\n\n+(ctrmain*)sha;\n-(void)statusbarlight;\n-(void)statusbardark;\n-(void)statusbarhide;\n-(void)statusbarshow;\n\n@end" (preproc_call) "#import "appdel.h"\n" (preproc_directive) "#import" (preproc_arg) ""appdel.h"" (ERROR) "@" ...
70
5
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 19.62, "nodes": 44, "errors": 0, "source_hash": "45c4b7c8deb871601df8f297bbdc7d3ec573e416ece66fe4dc0b41007d1b94a8", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
6,902
c
/*************************************************************************** video.c Functions to emulate the video hardware of the machine. ***************************************************************************/ #include "driver.h" #define CPK_VIDEO_SIZE 0x800 UINT8 * cpk_colorram; UINT8 * cpk_videoram;...
25.06
215
(translation_unit) "/***************************************************************************\n\n video.c\n\n Functions to emulate the video hardware of the machine.\n\n***************************************************************************/\n\n#include "driver.h"\n\n#define CPK_VIDEO_SIZE 0x800\n\nUINT8 * cpk...
1,677
0
{"language": "c", "success": true, "metadata": {"lines": 215, "avg_line_length": 25.06, "nodes": 983, "errors": 0, "source_hash": "195a5037c9741dd8180300da4bff9cd500eb98d13f953e8663e3cca4947fe3f2", "categorized_nodes": 756}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,903
c
// // MOCAInbox.h // // MOCA iOS SDK // // This module is part of InnoQuant MOCA Platform. // // Copyright (c) 2014 InnoQuant Strategic Analytics, S.L. // All rights reserved. // // All rights to this software by InnoQuant are owned by InnoQuant // and only limited rights are provided by the licensing or contrac...
29.51
53
(translation_unit) "//\n// MOCAInbox.h\n//\n// MOCA iOS SDK\n//\n// This module is part of InnoQuant MOCA Platform.\n//\n// Copyright (c) 2014 InnoQuant Strategic Analytics, S.L.\n// All rights reserved.\n//\n// All rights to this software by InnoQuant are owned by InnoQuant\n// and only limited rights are provi...
115
8
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 29.51, "nodes": 57, "errors": 0, "source_hash": "8d1abb87a51753b8985ae0df31fd9cd54d81764a7b7b97af4f9be07c33ac309e", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
6,904
c
// // Created by efeng on 2016/10/29. // Copyright (c) 2016 buerguo. All rights reserved. // #import <Foundation/Foundation.h> @interface NSDictionary (FYJson) /** * 字典转为JSON字符串 * @return JSON字符串 */ - (NSString *)fy_jsonString; /** * 字典转为URL字符串 */ - (NSString *)fy_urlString; @end
16.88
16
(translation_unit) "//\n// Created by efeng on 2016/10/29.\n// Copyright (c) 2016 buerguo. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NSDictionary (FYJson)\n\n/**\n * 字典转为JSON字符串\n * @return JSON字符串\n */\n- (NSString *)fy_jsonString;\n\n/**\n * 字典转为URL字符串\n */\n- (NSString *)fy_urlStrin...
48
4
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 16.88, "nodes": 29, "errors": 0, "source_hash": "a01b4ccf40dc0e9d3922f6df0eb8f9f274d0bf635b739c8072dd1431c6c9617d", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
6,905
c
/** * @file * @brief Defines the LehrFemInfo class * @author <NAME> * @date 2020-10-22 09:27:12 * @copyright MIT License */ #ifndef __8efea66a20694b749ebcac463c2beaae #define __8efea66a20694b749ebcac463c2beaae #include <string> namespace lf::base { /** * @brief Provides extra information about this version...
33.52
60
(translation_unit) "/**\n * @file\n * @brief Defines the LehrFemInfo class\n * @author <NAME>\n * @date 2020-10-22 09:27:12\n * @copyright MIT License\n */\n\n#ifndef __8efea66a20694b749ebcac463c2beaae\n#define __8efea66a20694b749ebcac463c2beaae\n\n#include <string>\n\nnamespace lf::base {\n\n/**\n * @brief Provides ...
138
7
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 33.52, "nodes": 69, "errors": 0, "source_hash": "fbd460b7ebc77e75da172cf9e150feb4a73a6710b7781acb73076043ffd846ad", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,906
c
#pragma once /* * Copyright (c) 2009-2020, <NAME> <<EMAIL>> * CWUtils is published under the BSD-3-Clause license. * * CWUtils is a set of standalone APIs for developers to speed up their * programming. It should be very easy to port them to other projects or * learn how to implement things on different language...
36.9
50
(translation_unit) "#pragma once\n\n/*\n * Copyright (c) 2009-2020, <NAME> <<EMAIL>>\n * CWUtils is published under the BSD-3-Clause license.\n *\n * CWUtils is a set of standalone APIs for developers to speed up their\n * programming. It should be very easy to port them to other projects or\n * learn how to implement ...
344
25
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 36.9, "nodes": 271, "errors": 0, "source_hash": "78aaab14cab1411c4384caa4fa19201be2ac753fed47aaaad5a4448132fe6db4", "categorized_nodes": 189}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
6,907
c
/* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class hybrid_PrismHybrid */ #ifndef _Included_hybrid_PrismHybrid #define _Included_hybrid_PrismHybrid #ifdef __cplusplus extern "C" { #endif /* * Class: hybrid_PrismHybrid * Method: PH_FreeGlobalRefs * Signature: ()V */ JNI...
33.48
229
(translation_unit) "/* DO NOT EDIT THIS FILE - it is machine generated */\n#include <jni.h>\n/* Header for class hybrid_PrismHybrid */\n\n#ifndef _Included_hybrid_PrismHybrid\n#define _Included_hybrid_PrismHybrid\n#ifdef __cplusplus\nextern "C" {\n#endif\n/*\n * Class: hybrid_PrismHybrid\n * Method: PH_FreeGloba...
1,429
0
{"language": "c", "success": true, "metadata": {"lines": 229, "avg_line_length": 33.48, "nodes": 975, "errors": 0, "source_hash": "d9ab2791000707725ff6e8aaa3c8ae48d972d7994a6a976f459ec6b6eb59f84c", "categorized_nodes": 878}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,908
c
/*! \file getaddressoftype.h Gets address of specified type */ #pragma once #include "../db/dbvariant.h" #include "../3rdparty/dukpp-03.h" #include "../animations/animationsanimations.h" namespace sad { class Renderer; class Window; namespace resource { class Tree; } namespace pipeline { class Pipeline;...
25.12
277
(translation_unit) "/*! \file getaddressoftype.h\n \n Gets address of specified type\n */\n#pragma once\n#include "../db/dbvariant.h"\n#include "../3rdparty/dukpp-03.h"\n#include "../animations/animationsanimations.h"\n\nnamespace sad\n{\n\nclass Renderer;\nclass Window;\n\nnamespace resource\n{\n\nclass Tree;\n}...
1,351
88
{"language": "c", "success": true, "metadata": {"lines": 277, "avg_line_length": 25.12, "nodes": 731, "errors": 0, "source_hash": "90750b6fddf8fa4aeabc1a681b403dcf88dddcfdf8d955161931d5af6016d082", "categorized_nodes": 437}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
6,909
c
#include <stdio.h> #include <string.h> #include <stdint.h> #include <assert.h> #include <inttypes.h> int w=4, z=3, y = 2, x=1; int main() { intptr_t ux = (intptr_t)&x; intptr_t uy = (intptr_t)&y; intptr_t offsetxy = uy - ux; intptr_t uz = (intptr_t)&z; intptr_t uw = (intptr_t)&w; intptr_t offsetzw = uw - ...
32.43
23
(translation_unit) "#include <stdio.h>\n#include <string.h> \n#include <stdint.h>\n#include <assert.h>\n#include <inttypes.h>\nint w=4, z=3, y = 2, x=1;\nint main() {\n intptr_t ux = (intptr_t)&x;\n intptr_t uy = (intptr_t)&y;\n intptr_t offsetxy = uy - ux;\n intptr_t uz = (intptr_t)&z;\n intptr_t uw = (intptr_t)...
299
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 32.43, "nodes": 193, "errors": 0, "source_hash": "a04d96b279a60f1ae1d5a91e26567ba1bdaf6f5269fe33f968b84c31bf762111", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,910
c
// Carte MEGA //Pin Midi interne On utilise le Serial1 avec la Pin TX 18 //Pin Midi externe On utilise le Serial2 avec la Pin TX 16 // Midi Etendu int BankMSB = 0; int BankLSB = 0; int Program = 0; void Instrument(byte channel, int Program, int IntExt) { if (IntExt == Midi_Int) { Serial1.write(0xC0...
31.36
89
(translation_unit) "// Carte MEGA \n//Pin Midi interne On utilise le Serial1 avec la Pin TX 18 \n//Pin Midi externe On utilise le Serial2 avec la Pin TX 16 \n \n// Midi Etendu \nint BankMSB = 0; \nint BankLSB = 0; \nint Program = 0; \n \nvoid Instrument(byte channel, int Program, int IntExt) { \n if (IntExt == Midi_...
740
0
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 31.36, "nodes": 410, "errors": 0, "source_hash": "56e4c4dcf5c23887bdb0ec95255b5a77958e7b51e19657b805c617f4f2b68c3f", "categorized_nodes": 321}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "int Bank...
6,911
c
// // AHCustomeView.h // AHHRSocketDemo // // Created by 孟庆宇 on 2021/1/6. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface AHCustomeView : UIView - (void)setCustomeColor; @end NS_ASSUME_NONNULL_END
16.83
12
(translation_unit) "//\n// AHCustomeView.h\n// AHHRSocketDemo\n//\n// Created by 孟庆宇 on 2021/1/6.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface AHCustomeView : UIView\n\n- (void)setCustomeColor;\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" (comment) "// AHCustomeView.h" (commen...
36
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 16.83, "nodes": 22, "errors": 0, "source_hash": "dfe7ffd5ec86f9607f728671408e1c75b99feaed2e612d9771a261cb31806fb6", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "t <UIKit/...
6,912
c
/* * Copyright (C) 2015-2017 Alibaba Group Holding Limited */ #include "stdint.h" #include "hal/soc/wdg.h" #include "aos/kernel.h" #include "rtos_pub.h" #include "drv_model_pub.h" #include "flash_pub.h" #include "ll.h" extern wdg_dev_t wdg; #define SECTOR_SIZE 0x1000 /* 4 K/sector */ extern void _app_data_flash_...
31.03
176
(translation_unit) "/*\n * Copyright (C) 2015-2017 Alibaba Group Holding Limited\n */\n\n#include "stdint.h"\n#include "hal/soc/wdg.h"\n#include "aos/kernel.h"\n#include "rtos_pub.h"\n#include "drv_model_pub.h"\n#include "flash_pub.h"\n#include "ll.h"\n\nextern wdg_dev_t wdg;\n\n#define SECTOR_SIZE 0x1000 /* 4 K/sector...
1,350
0
{"language": "c", "success": true, "metadata": {"lines": 176, "avg_line_length": 31.03, "nodes": 828, "errors": 0, "source_hash": "2401d78cfb2d73c382ccb07143e127de1b1c4d1e0eb67b389e8112ef02307c92", "categorized_nodes": 610}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,913
c
/* * Copyright (c) 2018, <NAME> <<EMAIL>> * All rights reserved. * * This file is under MIT, see LICENSE for details. * * Author: <NAME> <<EMAIL>> * Datetime: 2018/8/16 17:09 * */ #include <stdio.h> void func(int *pInt) { *pInt = 1; } int main() { int i = 0; printf("i:[%d]\n", i); func(&i)...
14.04
24
(translation_unit) "/*\n * Copyright (c) 2018, <NAME> <<EMAIL>>\n * All rights reserved.\n *\n * This file is under MIT, see LICENSE for details.\n *\n * Author: <NAME> <<EMAIL>>\n * Datetime: 2018/8/16 17:09\n *\n */\n\n#include <stdio.h>\n\nvoid func(int *pInt)\n{\n *pInt = 1;\n}\n\n\nint main()\n{\n int i = 0;...
87
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 14.04, "nodes": 49, "errors": 0, "source_hash": "296e720934c378412dec2a0428f005dc4886de7c2b72f82611dbd9f9d543ddd2", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
6,914
c
#pragma once #include <stdexcept> #include <string> #ifdef FULL_EXCEPTION # define EXCEPTION(msg) Exception(msg) #else # define EXCEPTION(msg) Exception(msg, __FILE__, __PRETTY_FUNCTION__, __LINE__) #endif class Exception : public std::exception { public: Exception(const std::string &msg) : msg(msg...
22.13
38
(translation_unit) "#pragma once \n \n#include <stdexcept> \n#include <string> \n \n#ifdef FULL_EXCEPTION \n# define EXCEPTION(msg) Exception(msg) \n#else \n# define EXCEPTION(msg) Exception(msg, __FILE__, __PRETTY_FUNCTION__, __LINE__) \n#endif \n \nclass Exception : public std::exception \n{ \npublic: \n Exception(co...
308
18
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 22.13, "nodes": 161, "errors": 0, "source_hash": "e68196dc0591c3bd9b14decc8e721d6bcb9725b287089637f5a3489e446d1cec", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
6,915
c
// // decrypt-self.c // by <NAME> (<EMAIL>) // #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <openssl/aes.h> #include <zlib.h> #include <elf.h> #include "self.h" #include <byteswap.h> #ifdef __BIG_ENDIAN__ #define fix16(value) value #define fix32(value) value #define fix6...
45.29
209
(translation_unit) "//\n// decrypt-self.c\n// by <NAME> (<EMAIL>)\n//\n\n#include <stdio.h>\n#include <stdint.h>\n#include <stdlib.h>\n#include <string.h>\n\n#include <openssl/aes.h>\n\n#include <zlib.h>\n\n#include <elf.h>\n#include "self.h"\n\n#include <byteswap.h>\n\n#ifdef __BIG_ENDIAN__\n#define fix16(value) value...
2,725
0
{"language": "c", "success": true, "metadata": {"lines": 209, "avg_line_length": 45.29, "nodes": 1510, "errors": 0, "source_hash": "3e9d93f8574ef676483f7be94394628d51bd6b6c4fdf619a91b45a298189be64", "categorized_nodes": 1131}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
6,916
c
/** * Problem souce: 《C 程序设计(第四版)》郑华强 * Problem description: There are n perons sitting round with ordered sequence. Now, we start to count off from one, and someone who reports the number 3 should quit the circle. So who will be the last one left in the cirle, please output his number. * Example: n is 10, output is ...
22.6
87
(translation_unit) "/**\n* Problem souce: 《C 程序设计(第四版)》郑华强\n* Problem description: There are n perons sitting round with ordered sequence. Now, we start to count off from one, and someone who reports the number 3 should quit the circle. So who will be the last one left in the cirle, please output his number. \n* Exampl...
612
0
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 22.6, "nodes": 397, "errors": 0, "source_hash": "249ef49440dabb1abb680c1baec2b0248f117d64e73316a7fa1bf23522da161f", "categorized_nodes": 271}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "<stdl...
6,917
c
#include <stdio.h> #include <stdlib.h> void merge(int *p,int *pt,int *ptr,int n,int m,int j) { int i,k; for(i=0;i<n;i++) *(ptr+i)=*(p+i); for(i=0,k=n;k<j && i<m;i++,k++) *(ptr+k)=*(pt+i); //Array1 printf("Array 1\n"); for(i=0;i<n;i++) printf("%d\n",*(p+i)); //Array2 printf("Array 2\n"); for(i=0;i<m;i++) printf("%d\n"...
20.4
42
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\nvoid merge(int *p,int *pt,int *ptr,int n,int m,int j)\n{\nint i,k;\nfor(i=0;i<n;i++)\n*(ptr+i)=*(p+i);\n\nfor(i=0,k=n;k<j && i<m;i++,k++)\n*(ptr+k)=*(pt+i);\n\n//Array1\nprintf("Array 1\n");\nfor(i=0;i<n;i++)\nprintf("%d\n",*(p+i));\n//Array2\nprintf("Array 2...
596
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 20.4, "nodes": 363, "errors": 0, "source_hash": "d25092b2ea3f90e74f1a796d4b6939f68a9709c908ac536c4a36122b1f65dd78", "categorized_nodes": 241}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
6,918
c
/** * @file VideoModes.c * @brief Pre-calculated video timings sent to the DisplayLink device when a video mode is selected * * Copyright (c) 2018-2019, DisplayLink (UK) Ltd. All rights reserved. * * SPDX-License-Identifier: BSD-2-Clause-Patent * **/ #include "UsbDisplayLink.h" // Supported video modes - must...
20.17
243
(translation_unit) "/**\n * @file VideoModes.c\n * @brief Pre-calculated video timings sent to the DisplayLink device when a video mode is selected\n *\n * Copyright (c) 2018-2019, DisplayLink (UK) Ltd. All rights reserved.\n *\n * SPDX-License-Identifier: BSD-2-Clause-Patent\n *\n**/\n\n#include "UsbDisplayLink.h"\n\n...
1,399
0
{"language": "c", "success": true, "metadata": {"lines": 243, "avg_line_length": 20.17, "nodes": 958, "errors": 0, "source_hash": "8a25212b00e3b409acd1eb1734ff5ebb2becd5b71d9f153a8fea19a70cdb7484", "categorized_nodes": 581}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,919
c
#include <stdio.h> #include <stdlib.h> int main(){ int inteiro = 5, *pInteiro = &inteiro; char caractere = 'c', *pCaractere = &caractere; float flutuante = 5.5, *pFlutuante = &flutuante; printf("\n\nAntes da mudanca: %d, %.2f, %c", inteiro, flutuante, caractere); *pInteiro = 10; *...
26.24
17
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\nint main(){\n int inteiro = 5, *pInteiro = &inteiro;\n char caractere = 'c', *pCaractere = &caractere;\n float flutuante = 5.5, *pFlutuante = &flutuante;\n \n printf("\n\nAntes da mudanca: %d, %.2f, %c", inteiro, flutuante, caractere);\n \...
138
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 26.24, "nodes": 95, "errors": 0, "source_hash": "62b556296f4faa17b9c1b59e78db25360c2f6dd0f90f3cbfe4bc9df3dd9b438e", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
6,920
c
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <time.h> #include <mpi.h> #include "include/util.h" void master(int N, int rank, int cant_proc); void slave(int N, int rank, int cant_proc); int main(int argc, char *argv[]) { int rank, amount; int N = atoi(argv[1]); MPI_Init...
36.63
201
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n#include <string.h>\n#include <time.h>\n#include <mpi.h>\n#include "include/util.h"\n\nvoid master(int N, int rank, int cant_proc);\nvoid slave(int N, int rank, int cant_proc);\n\nint\nmain(int argc, char *argv[])\n{\n int rank, amount;\n int N ...
1,773
0
{"language": "c", "success": true, "metadata": {"lines": 201, "avg_line_length": 36.63, "nodes": 1029, "errors": 0, "source_hash": "b0d7bf2830f5b7e7d3d1f59d485c6eaa85c213060344685ede41ba05271ea085", "categorized_nodes": 753}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
6,921
c
#ifndef MIGRATION_H_ #define MIGRATION_H_ #include "amsiCoupling.h" #include "amsiControlService.h" #ifdef ZOLTAN #include <zoltan.h> #endif namespace amsi { typedef void (*lb_fctn)(std::vector<int>&,std::vector<int>&,MPI_Comm,int,double*); class Migration { protected: MPI_Comm comm; int comm_size; int algo; lb...
23.27
56
(translation_unit) "#ifndef MIGRATION_H_\n#define MIGRATION_H_\n#include "amsiCoupling.h"\n#include "amsiControlService.h"\n#ifdef ZOLTAN\n#include <zoltan.h>\n#endif\nnamespace amsi\n{\ntypedef void (*lb_fctn)(std::vector<int>&,std::vector<int>&,MPI_Comm,int,double*);\nclass Migration\n{\nprotected:\n MPI_Comm comm;\...
401
22
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 23.27, "nodes": 272, "errors": 0, "source_hash": "b518a4f39ff5d32d50e0f1dc5915c1a88e0bd6b2c33597b40012b5c0e10922fe", "categorized_nodes": 167}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,922
c
// Adapted from // https://stackoverflow.com/a/44699230 #include "stdlib.h" #include "stdio.h" void example_fun3(void) { printf("Example Fun 3\n"); } void example_fun2(void) { printf("Example Fun 2\n"); } void example_fun(int param) { printf("Example Fun\n"); void (*fp) (void); int param2 = 10; ...
15.22
32
(translation_unit) "// Adapted from\n// https://stackoverflow.com/a/44699230\n#include "stdlib.h"\n#include "stdio.h"\n\nvoid example_fun3(void)\n{\n printf("Example Fun 3\n");\n}\n\nvoid example_fun2(void)\n{\n printf("Example Fun 2\n");\n}\n\nvoid example_fun(int param)\n{\n printf("Example Fun\n");\n\n v...
197
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 15.22, "nodes": 108, "errors": 0, "source_hash": "f0b14edb44b3ef6400f2f06ed0a0fdfd226086748cf4fdfa9fc7ed3a1ad2dba9", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
6,923
c
/* * Generated by asn1c-0.9.29 n1 (http://lionet.info/asn1c) * From ASN.1 module "E2AP-PDU-Descriptions" * found in "../../asn_defs/asn1/e2ap-v031-subset.asn" * `asn1c -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-OER` */ #include "E2N_E2AP-PDU.h" #include "E2N_InitiatingMessage.h" #inc...
33.67
72
(translation_unit) "/*\n * Generated by asn1c-0.9.29 n1 (http://lionet.info/asn1c)\n * From ASN.1 module "E2AP-PDU-Descriptions"\n * found in "../../asn_defs/asn1/e2ap-v031-subset.asn"\n * `asn1c -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-OER`\n */\n\n#include "E2N_E2AP-PDU.h"\n\n#include "...
493
4
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 33.67, "nodes": 245, "errors": 0, "source_hash": "43fc9be97f24174af9046810bfc78f5ae2c55254c5c7d2fa3cf4f5b4b4b39417", "categorized_nodes": 192}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,924
c
/**************************************************************************************** * 6 - 62 - 63 - 64 - 65 * 6 - Sanguinololu <1.2 * 62 - Sanguinololu 1.2 and above * 63 - Melzi * 64 - STB 1.1 * 65 - Azteeg X1 * 66 - MELZI 1284 ************************************************************************************...
36.96
158
(translation_unit) "/****************************************************************************************\n* 6 - 62 - 63 - 64 - 65\n* 6 - Sanguinololu <1.2\n* 62 - Sanguinololu 1.2 and above\n* 63 - Melzi\n* 64 - STB 1.1\n* 65 - Azteeg X1\n* 66 - MELZI 1284\n********************************************************...
606
0
{"language": "c", "success": true, "metadata": {"lines": 158, "avg_line_length": 36.96, "nodes": 542, "errors": 0, "source_hash": "cbd65c09dfd1cfdc9868bb411ceeb498991320b57c7639950bd0579fe179fbb5", "categorized_nodes": 221}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !def...
6,925
c
#ifndef OUT_LEGACY_NAVY_NAMES_H #define OUT_LEGACY_NAVY_NAMES_H #include "HOI4World/Navies/LegacyShipTypeNames.h" #include <ostream> #include <set> namespace HoI4 { void outLegacyNavyNames(std::ostream& out, const std::set<LegacyShipTypeNames>& navyNames, std::string_view tag); } // namespace HoI4 #endif // ...
24.85
13
(translation_unit) "#ifndef OUT_LEGACY_NAVY_NAMES_H\n#define OUT_LEGACY_NAVY_NAMES_H\n\n\n\n#include "HOI4World/Navies/LegacyShipTypeNames.h"\n#include <ostream>\n#include <set>\n\n\n\nnamespace HoI4\n{\n\nvoid outLegacyNavyNames(std::ostream& out, const std::set<LegacyShipTypeNames>& navyNames, std::string_view tag);\...
66
3
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 24.85, "nodes": 42, "errors": 0, "source_hash": "14a1e2d6c45cd1aad91792b8878d4db8a7535ca18fca97f1fc7c753f449c9320", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,926
c
/* * ipt_u32 - kernel module to match u32 packet content * * Original author: <NAME> <<EMAIL>> * © <NAME> <<EMAIL>>, 2007 */ /* U32 tests whether quantities of up to 4 bytes extracted from a packet have specified values. The specification of what to extract is general enough to find data at given offsets fro...
33.76
223
(translation_unit) "/*\n * ipt_u32 - kernel module to match u32 packet content\n *\n * Original author: <NAME> <<EMAIL>>\n * © <NAME> <<EMAIL>>, 2007\n */\n\n/* \nU32 tests whether quantities of up to 4 bytes extracted from a packet \nhave specified values. The specification of what to extract is general \nenough to ...
981
2
{"language": "c", "success": true, "metadata": {"lines": 223, "avg_line_length": 33.76, "nodes": 647, "errors": 0, "source_hash": "451a615e3079092490bf951be3f53a19e147ccb4948dd7ef8c1c0376dfc6586e", "categorized_nodes": 455}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "ncl...
6,927
c
#include <stdio.h> static int total = 0; void accumulate(int k); void accumulate(int k) { static int sub_total = 0; if (k == 0) { printf("Total = %d, subTotal = %d\n", total, sub_total); sub_total = 0; } else { total += k; sub_total += k; } }
15.06
17
(translation_unit) "#include <stdio.h>\n\nstatic int total = 0;\nvoid accumulate(int k);\nvoid accumulate(int k)\n{\n static int sub_total = 0;\n if (k == 0)\n {\n printf("Total = %d, subTotal = %d\n", total, sub_total);\n sub_total = 0;\n }\n else\n {\n total += k;\n sub_total += k;\n }\n}" (prepr...
97
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 15.06, "nodes": 57, "errors": 0, "source_hash": "eb47882ca2e5b519ed2bfc6614ac82507062c0e8b11b00e66da9b30be2573e64", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
6,928
c
#include "process.h" #include <calendon/log.h> #ifdef _WIN32 #include <calendon/compat-windows.h> #include <tchar.h> #include <psapi.h> // Adapted from sample code at: // https://docs.microsoft.com/en-us/windows/win32/psapi/enumerating-all-modules-for-a-process?redirectedfrom=MSDN bool cnProc_PrintLoadedDLLs(void) ...
28.71
38
(translation_unit) "#include "process.h"\n\n#include <calendon/log.h>\n\n#ifdef _WIN32\n\n#include <calendon/compat-windows.h>\n#include <tchar.h>\n#include <psapi.h>\n\n// Adapted from sample code at:\n// https://docs.microsoft.com/en-us/windows/win32/psapi/enumerating-all-modules-for-a-process?redirectedfrom=MSDN\nbo...
260
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 28.71, "nodes": 144, "errors": 0, "source_hash": "1891e48226506ff83b03b158b88e06616cf158b753cd77f44f6b8eb5350046e0", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,929
c
// I/O buffer class /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/.*/ #ifndef __IO_BUFFER_H_INCLUDED__ #define __IO_BUFFER_H_INCLUDED__ #include <stdint.h> #inclu...
21.37
98
(translation_unit) "// I/O buffer class\n\n/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://mozilla.org/MPL/2.0/.*/\n\n#ifndef __IO_BUFFER_H_INCLUDED__\n#define __IO_BUFFER_H_INCLUDED__\...
682
0
{"language": "c", "success": true, "metadata": {"lines": 98, "avg_line_length": 21.37, "nodes": 464, "errors": 0, "source_hash": "851212ff26abb95f6dcf4c7ed40c9ae4891edb8d86eed668992df8a09e920775", "categorized_nodes": 315}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,930
c
#pragma once // This file and the associated implementation has been placed in the public domain, waiving all copyright. No restrictions are placed on its use. #include <cryptoTools/Common/Defines.h> #include <cryptoTools/Crypto/AES.h> #include <vector> #include <cstring> namespace osuCrypto { // A Peudora...
28.31
130
(translation_unit) "#pragma once \n// This file and the associated implementation has been placed in the public domain, waiving all copyright. No restrictions are placed on its use. \n#include <cryptoTools/Common/Defines.h> \n#include <cryptoTools/Crypto/AES.h> \n#include <vector> \n#include <cstring> \n \nnamespace os...
758
24
{"language": "c", "success": true, "metadata": {"lines": 130, "avg_line_length": 28.31, "nodes": 456, "errors": 0, "source_hash": "56b1e2e1195bed1c4ccb11c68aea73748c1037596bdf3cdb4666f19987f6117b", "categorized_nodes": 308}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
6,931
c
/* * Copyright (c) 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. */ #ifndef _NAMEI_ #define _NAMEI_ #ifdef KERNEL #include "uio.h" #else #include <sys/uio.h> #endif /* * Encapsulation of namei...
36.19
91
(translation_unit) "/*\n * Copyright (c) 1986 Regents of the University of California.\n * All rights reserved. The Berkeley software License Agreement\n * specifies the terms and conditions for redistribution.\n */\n#ifndef _NAMEI_\n#define _NAMEI_\n\n#ifdef KERNEL\n#include "uio.h"\n#else\n#include <sys/uio.h>\n#end...
381
0
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 36.19, "nodes": 266, "errors": 0, "source_hash": "681f0e9e1246b8e419b1d0a9d631e8a7783afaa80608714c887de275f255aad4", "categorized_nodes": 186}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,932
c
// // ASVideoBehavior.h // ASMediaFocusExemple // // Created by <NAME> on 02/04/2015. // Copyright (c) 2015 AutreSphere. All rights reserved. // #import <Foundation/Foundation.h> @interface ASVideoBehavior : NSObject - (void)addVideoIconToView:(UIView *)view image:(UIImage *)image; @end
25.55
11
(translation_unit) "//\n// ASVideoBehavior.h\n// ASMediaFocusExemple\n//\n// Created by <NAME> on 02/04/2015.\n// Copyright (c) 2015 AutreSphere. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface ASVideoBehavior : NSObject\n\n- (void)addVideoIconToView:(UIView *)view image:(UIImage *)image...
49
6
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 25.55, "nodes": 26, "errors": 0, "source_hash": "ac0c8adc20416fde82fb5bf0fafdd87f1dd4b4c41443367c22043575853098e4", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
6,933
c
/* Copyright (C) 2010-2020 The RetroArch team * * --------------------------------------------------------------------------------------- * The following license statement only applies to this file (config_file_test.c). * --------------------------------------------------------------------------------------- * *...
35.04
306
(translation_unit) "/* Copyright (C) 2010-2020 The RetroArch team\n *\n * ---------------------------------------------------------------------------------------\n * The following license statement only applies to this file (config_file_test.c).\n * ---------------------------------------------------------------------...
2,159
0
{"language": "c", "success": true, "metadata": {"lines": 306, "avg_line_length": 35.04, "nodes": 1177, "errors": 0, "source_hash": "b505edce6fcc42fd69bca1f1c8ea43597dfeb494871e90292ee78ed53d1d61c6", "categorized_nodes": 807}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
6,934
c
/**************************************************************************** ** ** Copyright (C) 2014 <NAME> <<EMAIL>> ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the QtPrintSupport module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ** Licensees holding valid co...
40.95
128
(translation_unit) "/****************************************************************************\n**\n** Copyright (C) 2014 <NAME> <<EMAIL>>\n** Contact: https://www.qt.io/licensing/\n**\n** This file is part of the QtPrintSupport module of the Qt Toolkit.\n**\n** $QT_BEGIN_LICENSE:LGPL$\n** Commercial License Usage\n...
751
34
{"language": "c", "success": true, "metadata": {"lines": 128, "avg_line_length": 40.95, "nodes": 415, "errors": 0, "source_hash": "704308f096453bdcb40cb2062e4a2e915e0815269489bd7254e5dffe4003c1cf", "categorized_nodes": 299}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
6,935
c
#ifndef _LINUX_HISI_BCI_BATTERY_H #define _LINUX_HISI_BCI_BATTERY_H enum charge_status_event { VCHRG_POWER_NONE_EVENT = 0, VCHRG_NOT_CHARGING_EVENT, VCHRG_START_CHARGING_EVENT, VCHRG_START_AC_CHARGING_EVENT, VCHRG_START_USB_CHARGING_EVENT, VCHRG_CHARGE_DONE_EVENT, VCHRG_STOP_CHARGING_EVENT, VCHRG_POWER_SUPPLY...
29.25
126
(translation_unit) "#ifndef _LINUX_HISI_BCI_BATTERY_H\n#define _LINUX_HISI_BCI_BATTERY_H\n\n\nenum charge_status_event {\n VCHRG_POWER_NONE_EVENT = 0,\n VCHRG_NOT_CHARGING_EVENT,\n VCHRG_START_CHARGING_EVENT,\n VCHRG_START_AC_CHARGING_EVENT,\n VCHRG_START_USB_CHARGING_EVENT,\n VCHRG_CHARGE_DONE_EVENT,\n VCHRG_STOP_CHAR...
554
0
{"language": "c", "success": true, "metadata": {"lines": 126, "avg_line_length": 29.25, "nodes": 443, "errors": 0, "source_hash": "12c708b6d537a39a02a8a7ee53ef1f1e424726d37aafc1932fdb2e6c4cd8a34e", "categorized_nodes": 242}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
6,936
c
/* FragExt - Shell extension for providing file fragmentation * information. * * Copyright (C) 2004-2009 <NAME>. All rights reserved. * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this softwa...
24.94
94
(translation_unit) "/* FragExt - Shell extension for providing file fragmentation\n * information.\n *\n * Copyright (C) 2004-2009 <NAME>. All rights reserved.\n *\n * This software is provided 'as-is', without any express or implied\n * warranty. In no event will the authors be held liable for any damages\n * arising ...
211
20
{"language": "c", "success": true, "metadata": {"lines": 94, "avg_line_length": 24.94, "nodes": 165, "errors": 0, "source_hash": "844f79cf98140c57093e175008f2c123edd2bae493b0724744e2e6bce6e49f2e", "categorized_nodes": 124}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
6,937
c
/* * Copyright (c) 2016, Freescale Semiconductor, Inc. * Copyright 2016-2020 NXP * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ /******************************************************************************* * Includes **********************************************************************...
38.23
70
(translation_unit) "/*\n * Copyright (c) 2016, Freescale Semiconductor, Inc.\n * Copyright 2016-2020 NXP\n * All rights reserved.\n *\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/*******************************************************************************\n * Includes\n ****************************************...
303
0
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 38.23, "nodes": 176, "errors": 0, "source_hash": "a22e269fbd4c0b671db79cec6593e4338417afdc4de3f6682a03c42d9371adff", "categorized_nodes": 124}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,938
c
#pragma once #include "Base/Mesh.h" #include "Base/Texture2D.h" #include <string> class Model { public: Model(std::string name); ~Model(); void Update(); void SetupMeshOnGPU(); void UploadToGPU(); void Render(); glm::vec3 position = glm::vec3(0.0f); glm::vec3 rotation = glm::vec3(0.0f); glm::vec3 scale = ...
18.96
25
(translation_unit) "#pragma once\n\n#include "Base/Mesh.h"\n#include "Base/Texture2D.h"\n\n#include <string>\n\nclass Model\n{\npublic:\n Model(std::string name);\n ~Model();\n\n void Update();\n void SetupMeshOnGPU();\n void UploadToGPU();\n void Render();\n\n glm::vec3 position = glm::vec3(0.0f);\n glm::vec3 rotation...
212
8
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 18.96, "nodes": 128, "errors": 0, "source_hash": "8598fa36734e53e55e4324e5d1b6ae289c13caae30a451dffaaa6c317373a9b8", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
6,939
c
#include<stdio.h> #include<conio.h> #include<graphics.h> #define stangle 0 #define endangle 360 void main(){ int de,md; int radius ; int xE =300 , yE=250; int xE1 =300 , yE1=250; int xRad = 150 , yRad =30 ; int xRad1= 30 , yRad1 =150; clrscr(); de=DETECT; initgraph(&de,&md,"c:\\Tc\\bgi"); setcolor(BLUE); el...
18.91
22
(translation_unit) "#include<stdio.h>\n#include<conio.h>\n#include<graphics.h>\n#define stangle 0\n#define endangle 360\nvoid main(){\n int de,md;\n int radius ;\n int xE =300 , yE=250;\n int xE1 =300 , yE1=250;\n int xRad = 150 , yRad =30 ;\n int xRad1= 30 , yRad1 =150;\n clrscr();\n de=DETECT;\n initgraph(&de,&md,"c:...
180
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 18.91, "nodes": 114, "errors": 0, "source_hash": "a58f1704cf084cc1fa253cf825b2ba672f526bae16a22972643f749ef3e04ef6", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
6,940
c
/* * This header is generated by classdump-dyld 1.0 * on Tuesday, November 5, 2019 at 2:38:50 AM Mountain Standard Time * Operating System: Version 13.0 (Build 17J586) * Image Source: /System/Library/PrivateFrameworks/AppStoreDaemon.framework/Support/appstored * classdump-dyld is licensed under GPLv3, Copyright © 2013-...
31.39
23
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Tuesday, November 5, 2019 at 2:38:50 AM Mountain Standard Time\n* Operating System: Version 13.0 (Build 17J586)\n* Image Source: /System/Library/PrivateFrameworks/AppStoreDaemon.framework/Support/appstored\n* classdump-dyld is licensed under...
168
11
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 31.39, "nodes": 94, "errors": 0, "source_hash": "46e4b0b7b4aa2443ccd2a277d89e7f210d8d20353a3636473e769bb1b2a8fbb8", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "c", "parent": nu...
6,941
c
/* author: <NAME> */ #include "hashTable.h" //init sHashTable* h_init(uint capacity, uint (*hash_function)(const void *, uint, void *), void * hash_info) { sHashTable * h = (sHashTable*) malloc(sizeof(sHashTable)); h->table = _h_initTable(capacity); h->size = capacity; h->hash_func = hash_function; h->num_elemen...
22.5
230
(translation_unit) "/* author: <NAME> */\n#include "hashTable.h"\n\n//init\nsHashTable* h_init(uint capacity, uint (*hash_function)(const void *, uint, void *), void * hash_info)\n{\n sHashTable * h = (sHashTable*) malloc(sizeof(sHashTable));\n h->table = _h_initTable(capacity); \n h->size = capacity;\n h->hash_func = ...
2,208
0
{"language": "c", "success": true, "metadata": {"lines": 230, "avg_line_length": 22.5, "nodes": 1435, "errors": 0, "source_hash": "ade30a336d3c08cb5cef465a8bb1cab77afebf51b791ef5bb201370a915bbc34", "categorized_nodes": 918}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,942
c
#pragma once /* //Defaults; //Stencil buffer doesn't support Render to Texture //Color and Depth Buffers doesn't Render to Texture //We use RenderBuffer as default //Viewport Settings are default (At Functional Header) //MSAA is off as default (You can enable it) class Framebuffer { private: Viewport Viewport_Info = C...
35.22
264
(translation_unit) "#pragma once\n/*\n//Defaults;\n//Stencil buffer doesn't support Render to Texture\n//Color and Depth Buffers doesn't Render to Texture\n//We use RenderBuffer as default\n//Viewport Settings are default (At Functional Header)\n//MSAA is off as default (You can enable it)\nclass Framebuffer {\nprivate...
1,027
4
{"language": "c", "success": true, "metadata": {"lines": 264, "avg_line_length": 35.22, "nodes": 576, "errors": 0, "source_hash": "8a130258d131fd7a57e2f59659f0d77ead38312fbfece6114ba779233657f8e8", "categorized_nodes": 445}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
6,943
c
/* * This file is a part of the open source stm32plus library. * Copyright (c) 2011,2012,2013,2014 <NAME> <www.andybrown.me.uk> * Please see website for licensing terms. */ #pragma once // ensure the MCU series is correct #ifndef STM32PLUS_F1 #error This class can only be used with the STM32F1 series #endif nam...
26.39
33
(translation_unit) "/*\n * This file is a part of the open source stm32plus library.\n * Copyright (c) 2011,2012,2013,2014 <NAME> <www.andybrown.me.uk>\n * Please see website for licensing terms.\n */\n\n#pragma once\n\n// ensure the MCU series is correct\n#ifndef STM32PLUS_F1\n#error This class can only be used with t...
93
4
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 26.39, "nodes": 46, "errors": 0, "source_hash": "129f4739692a616620f675ce1711e94975697501eeb21bc2e376027df7626f88", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
6,944
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <stdbool.h> #include "hardInput.h" #include "version.h" #include "pause.h" #define PRINT_COMMENTS true #define MAGIC "JACPATCH" #define MAGIC_SIZE (long)sizeof(MAGIC) #define MAX_FN_LEN 256 #define MAX_ASCII_SIZE 256 // Exit codes...
23.51
39
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <ctype.h>\n#include <stdbool.h>\n#include "hardInput.h"\n#include "version.h"\n#include "pause.h"\n\n#define PRINT_COMMENTS true\n\n#define MAGIC "JACPATCH"\n#define MAGIC_SIZE (long)sizeof(MAGIC)\n#define MAX_FN_LEN 256\n#define...
276
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 23.51, "nodes": 218, "errors": 0, "source_hash": "d7521581d01f6a24e7d4e38f78e1d335f0e69a72f868c396cc3bccc69ca9cb66", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,945
c
/* ----------------------------------------------------------------------------- * Component Name: Image Handler * Parent Component: Img Processing * Author(s): <NAME> * Purpose: Process and store images along with housekeeping data, as well as * sending it to ground. * ----------------------------------...
34.2
136
(translation_unit) "/* -----------------------------------------------------------------------------\n * Component Name: Image Handler\n * Parent Component: Img Processing\n * Author(s): <NAME>\n * Purpose: Process and store images along with housekeeping data, as well as\n * sending it to ground.\n * --------...
1,174
0
{"language": "c", "success": true, "metadata": {"lines": 136, "avg_line_length": 34.2, "nodes": 658, "errors": 0, "source_hash": "b5877b0403e9c731a097e371103b67bc3695397c6b6e37eb8812ff52caa0f25f", "categorized_nodes": 475}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,946
c
// // BridgeVC.h // ArchitectureOCDemo // // Created by DaiMing on 2018/6/23. // Copyright © 2018年 Starming. All rights reserved. // #import <UIKit/UIKit.h> @interface BridgeVC : UIViewController @end
19.5
10
(translation_unit) "//\n// BridgeVC.h\n// ArchitectureOCDemo\n//\n// Created by DaiMing on 2018/6/23.\n// Copyright © 2018年 Starming. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface BridgeVC : UIViewController\n\n@end\n" (comment) "//" (comment) "// BridgeVC.h" (comment) "// ArchitectureOC...
22
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.5, "nodes": 12, "errors": 0, "source_hash": "3f8765143f23fcf1c308759cdc7df1cc7d4f67a178572774e191e210edfdd9d1", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKit...
6,947
c
#include "init.h" #include "fault.h" #include "mem.h" #include "nvic.h" #define STACK_BOTTOM 0x20088000 void *vector_table[] SECTION(".vector_tbl") = { (void *)STACK_BOTTOM, (void *)init, (void *)bad_int, (void *)fault_handler, (void *)fault_handler, (void *)fault_handler, (void *)fault_handler, (void...
18.89
53
(translation_unit) "#include "init.h"\n#include "fault.h"\n#include "mem.h"\n#include "nvic.h"\n\n#define STACK_BOTTOM 0x20088000\n\nvoid *vector_table[] SECTION(".vector_tbl") = {\n (void *)STACK_BOTTOM,\n (void *)init,\n (void *)bad_int,\n (void *)fault_handler,\n (void *)fault_handler,\n (void *)fault_handler,...
514
2
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 18.89, "nodes": 349, "errors": 0, "source_hash": "45bba9f477dcde53c69c19daa3b68553ecbdcfe5778ea6701247a3cafc9f9579", "categorized_nodes": 155}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,948
c
#ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif #undef __CRT__NO_INLINE #define __CRT__NO_INLINE #include <winsock2.h> #include <ws2tcpip.h> int IN6_IS_ADDR_V4COMPAT(const struct in6_addr *a) { return ((a->s6_words[0] == 0) && (a->s6_words[1] == 0) && (a->s6_words[2] == 0) && (a->s6_words[3] == ...
24.3
20
(translation_unit) "#ifndef WIN32_LEAN_AND_MEAN\n#define WIN32_LEAN_AND_MEAN\n#endif\n#undef __CRT__NO_INLINE\n#define __CRT__NO_INLINE\n#include <winsock2.h>\n#include <ws2tcpip.h>\n\nint IN6_IS_ADDR_V4COMPAT(const struct in6_addr *a)\n{\n return ((a->s6_words[0] == 0) &&\n (a->s6_words[1] == 0) &&\n (a->s6_words[2...
211
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 24.3, "nodes": 145, "errors": 0, "source_hash": "753c0bee995223ff4ff990dda68fc88c06583aa3c6328c78449655c1cb68cd0c", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,949
c
// Copyright (c) 2019, <NAME> // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // 1. Redistributions of source code must retain the above copyright // notice, this list of conditions and ...
39.31
122
(translation_unit) "// Copyright (c) 2019, <NAME>\n// All rights reserved.\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are\n// met:\n//\n// 1. Redistributions of source code must retain the above copyright\n// notice, ...
656
38
{"language": "c", "success": true, "metadata": {"lines": 122, "avg_line_length": 39.31, "nodes": 367, "errors": 0, "source_hash": "842f567d5d7688b60e3ab07feac1f85a4dda19c16205631b7041ac70acbc035e", "categorized_nodes": 245}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef RST_T...
6,950
c
#include <stdio.h> #include <errno.h> #include <assert.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <netdb.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #define HS110_PORT (9999) #define HS110_KEY (171) static char *encrypt(char *message, size_t message_len...
33.21
130
(translation_unit) "#include <stdio.h>\n#include <errno.h>\n#include <assert.h>\n#include <string.h>\n#include <stdlib.h>\n#include <unistd.h>\n\n#include <netdb.h>\n#include <sys/socket.h>\n#include <netinet/in.h>\n#include <arpa/inet.h>\n\n\n#define HS110_PORT (9999)\n#define HS110_KEY (171)\n\n\nstatic char *encr...
1,272
0
{"language": "c", "success": true, "metadata": {"lines": 130, "avg_line_length": 33.21, "nodes": 747, "errors": 0, "source_hash": "07aababfcce45861d13ad0065da80a7eb11f158ef5681ee605e7f2629e30e81f", "categorized_nodes": 531}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,951
c
#ifndef __OPTIMIZER_H__ #define __OPTIMIZER_H__ #include "Common.h" #include "Matrix.h" #include "FuncAbstractor.h" class Optimizer { protected: //超参数 double step; int maxEpoch; int seed; //初始化参数使用的种子 double randL, randR, randEps; //初始化参数使用的范围和精度 int miniBatchSize; //SGD使用的 mini-batch 的大小 //其他辅助参数 int epoc...
22.87
46
(translation_unit) "#ifndef __OPTIMIZER_H__\n#define __OPTIMIZER_H__\n\n#include "Common.h"\n#include "Matrix.h"\n#include "FuncAbstractor.h"\n\n\nclass Optimizer {\n protected:\n //超参数\n double step;\n int maxEpoch;\n int seed; //初始化参数使用的种子\n double randL, randR, randEps; //初始化参数使用的范围和精度\n int miniBatchSize; //SGD使用的 ...
315
16
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 22.87, "nodes": 222, "errors": 0, "source_hash": "f0e378b6b5fe3104282292b759a32a1c35d1715b675247f6d35c68b1913b2b61", "categorized_nodes": 141}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,952
c
/* * Part of Very Secure FTPd * Licence: GPL v2 * Author: <NAME> * netstr.c * * The netstr interface extends the standard string interface, adding * functions which can cope safely with building strings from the network, * and send them out too. */ #include "netstr.h" #include "str.h" #include "sysstr.h" #inc...
23.5
117
(translation_unit) "/*\n * Part of Very Secure FTPd\n * Licence: GPL v2\n * Author: <NAME>\n * netstr.c\n *\n * The netstr interface extends the standard string interface, adding\n * functions which can cope safely with building strings from the network,\n * and send them out too.\n */\n\n#include "netstr.h"\n#include ...
721
0
{"language": "c", "success": true, "metadata": {"lines": 117, "avg_line_length": 23.5, "nodes": 424, "errors": 0, "source_hash": "c035b2e5e2e8d164555c653abafb36e4a76785176f2f6e0586fb990f2521c82c", "categorized_nodes": 303}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,953
c
/*! * \file tick2.c * \brief timestaping the packets from timer2 * * \author <NAME> * URL: http://robotika.cz/ * * Revision: 1.0 * Date: 2009/12/22 */ #include <avr/io.h> #include <avr/interrupt.h> #include "tick2.h" static volatile uint8_t g_timeTicks; PtrTimeTick2Handler_t g_handler; void TimeTick2_Init(PtrT...
20.31
32
(translation_unit) "/*!\n* \file tick2.c\n* \brief timestaping the packets from timer2\n*\n* \author <NAME>\n* URL: http://robotika.cz/\n* \n* Revision: 1.0\n* Date: 2009/12/22\n*/\n\n#include <avr/io.h>\n#include <avr/interrupt.h>\n\n#include "tick2.h"\n\nstatic volatile uint8_t g_timeTicks;\nPtrTimeTick2Handler_t...
134
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 20.31, "nodes": 77, "errors": 0, "source_hash": "3bd2c1aa93607874bc89a89768ffff3c5c3e04f775dd3228db676e3a6445551a", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
6,954
c
/* ** Vector math library ** See Copyright Notice in lua.h */ #include <stdlib.h> #include <math.h> #define lveclib_c #define LUA_LIB #include "lua.h" #include "lauxlib.h" #include "lualib.h" static int vec_new (lua_State *L) { float x = (float)lua_tonumber(L, 1); float y = (float)lua_tonumber(L, 2); float ...
25.45
66
(translation_unit) "/*\n** Vector math library\n** See Copyright Notice in lua.h\n*/\n\n\n#include <stdlib.h>\n#include <math.h>\n\n#define lveclib_c\n#define LUA_LIB\n\n#include "lua.h"\n\n#include "lauxlib.h"\n#include "lualib.h"\n\nstatic int vec_new (lua_State *L) {\n float x = (float)lua_tonumber(L, 1);\n float ...
842
1
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 25.45, "nodes": 511, "errors": 0, "source_hash": "13294074b06b4cdebb87e028f4b558befc4c728e7b85bdc6575fe87f63ef746b", "categorized_nodes": 359}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,955
c
//===-- Implementation header for abort -------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
40.46
13
(translation_unit) "//===-- Implementation header for abort -------------------------*- C++ -*-===//\n//\n// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.\n// See https://llvm.org/LICENSE.txt for license information.\n// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception\n//\n//===-...
36
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 40.46, "nodes": 20, "errors": 0, "source_hash": "7007c795d8dd4e66acca1c5c1d218a73bc5e27867d992bc5f4888a9d286dc893", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,956
c
// // NSDate+KMExtension.h // KMCategory // // Created by kimiLin on 2017/6/7. // Copyright © 2017年 KimiLin. All rights reserved. // #import <Foundation/Foundation.h> @interface NSDate (KMExtension) /// format date string, default format set to @"@"yyyy-MM-dd HH:mm:ss"" - (NSString *)km_dateString; /// format d...
35.31
16
(translation_unit) "//\n// NSDate+KMExtension.h\n// KMCategory\n//\n// Created by kimiLin on 2017/6/7.\n// Copyright © 2017年 KimiLin. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NSDate (KMExtension)\n\n/// format date string, default format set to @"@"yyyy-MM-dd HH:mm:ss""\n- (NSStri...
77
9
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 35.31, "nodes": 48, "errors": 0, "source_hash": "c87dc13bb82b387eadb3a894e9b9c93127a62033d5aef82f2fabd4e0d50837c0", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
6,957
c
#include <quat/add.h> #include <quat/calculateW.h> #include <quat/clone.h> #include <quat/conjugate.h> #include <quat/copy.h> #include <quat/create.h> #include <quat/dot.h> #include <quat/fromMat3.h> #include <quat/fromValues.h> #include <quat/identity.h> #include <quat/invert.h> #include <quat/length.h> #include <quat...
22.72
32
(translation_unit) "#include <quat/add.h>\n#include <quat/calculateW.h>\n#include <quat/clone.h>\n#include <quat/conjugate.h>\n#include <quat/copy.h>\n#include <quat/create.h>\n#include <quat/dot.h>\n#include <quat/fromMat3.h>\n#include <quat/fromValues.h>\n#include <quat/identity.h>\n#include <quat/invert.h>\n#include...
102
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 22.72, "nodes": 94, "errors": 0, "source_hash": "3961b6c24045ce59367db8c60c3eadd52c27ffd726283f88023b1d9ebdd63062", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
6,958
c
/* * Copyright (C) 2007 The Android 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
37.37
62
(translation_unit) "/*\n * Copyright (C) 2007 The Android 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 the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n...
174
0
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 37.37, "nodes": 127, "errors": 0, "source_hash": "ebd98239b85364521f048c3c64ba7bb83c072aebbc3cde88fa1c5fe4ae95dc6e", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,959
c
// Copyright (c) 2020 National Instruments // SPDX-License-Identifier: MIT /*! \file \brief A Vireo codec for the VIB (VI Binary) binary format. */ #ifndef TypeAndDataCodecBin8_h #define TypeAndDataCodecBin8_h namespace Vireo { //------------------------------------------------------------ class SubVibBuffer :...
39.09
77
(translation_unit) "// Copyright (c) 2020 National Instruments\n// SPDX-License-Identifier: MIT\n\n/*! \file\n \brief A Vireo codec for the VIB (VI Binary) binary format.\n */\n\n#ifndef TypeAndDataCodecBin8_h\n#define TypeAndDataCodecBin8_h\n\nnamespace Vireo\n{\n\n//------------------------------------------------...
604
3
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 39.09, "nodes": 405, "errors": 0, "source_hash": "782e99a6d0da78909ba20c07e5ecc0cfb8f239c37a3dfa1861db3b4b36df7634", "categorized_nodes": 289}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,960
c
#ifndef GAME_H_ #define GAME_H_ #include "kid.h" #include <list> #include <queue> #include <string> using namespace std; class Game { list<Kid> kids; public: Game(); Game(list<Kid>& l2); static unsigned numberOfWords(string phrase); void addKid(const Kid k1); list<Kid> getKids() const; voi...
21.38
24
(translation_unit) "#ifndef GAME_H_\n#define GAME_H_\n\n#include "kid.h"\n#include <list>\n#include <queue>\n#include <string>\nusing namespace std;\n\nclass Game\n{\n list<Kid> kids;\npublic:\n Game();\n Game(list<Kid>& l2);\n static unsigned numberOfWords(string phrase);\n void addKid(const Kid k1);\n ...
199
6
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 21.38, "nodes": 131, "errors": 0, "source_hash": "1c849be06165187d63184d37cea5f459d33f424394604c1df289322ea62e57ca", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,961
c
/***************************************************************************//** * @file * @brief Non-Volatile Memory Wear-Leveling driver HAL implementation ******************************************************************************* * # License * <b>Copyright 2018 Silicon Laboratories Inc. www.silabs.com</b> ...
31.96
222
(translation_unit) "/***************************************************************************//**\n * @file\n * @brief Non-Volatile Memory Wear-Leveling driver HAL implementation\n *******************************************************************************\n * # License\n * <b>Copyright 2018 Silicon Laboratories...
1,274
0
{"language": "c", "success": true, "metadata": {"lines": 222, "avg_line_length": 31.96, "nodes": 768, "errors": 0, "source_hash": "25511dbbc0f4d09b2aa81b63e0a4da882f7eadb958da211512ab02a7750f4c6d", "categorized_nodes": 552}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,962
c
/* Simple DirectMedia Layer Copyright (C) 1997-2022 <NAME> <<EMAIL>> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any ...
33.39
59
(translation_unit) "/*\n Simple DirectMedia Layer\n Copyright (C) 1997-2022 <NAME> <<EMAIL>>\n\n This software is provided 'as-is', without any express or implied\n warranty. In no event will the authors be held liable for any damages\n arising from the use of this software.\n\n Permission is granted to anyone t...
258
0
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 33.39, "nodes": 114, "errors": 0, "source_hash": "8d754aa6e2e2a228cef8952dd506dc053f287dbbb3c3346126f75765abad771a", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
6,963
c
// // YBLLogLoadingView.h // YC168 // // Created by 乔同新 on 2017/5/27. // Copyright © 2017年 乔同新. All rights reserved. // #import <UIKit/UIKit.h> @interface YBLLogLoadingView : UIView -(void)show; -(void)dismiss; +(void)showInView:(UIView*)view; +(void)dismissInView:(UIView*)view; + (void)showInWindow; + (voi...
20
16
(translation_unit) "//\n// YBLLogLoadingView.h\n// YC168\n//\n// Created by 乔同新 on 2017/5/27.\n// Copyright © 2017年 乔同新. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface YBLLogLoadingView : UIView\n\n-(void)show;\n\n-(void)dismiss;\n\n+(void)showInView:(UIView*)view;\n\n+(void)dismissInView:(UIView...
102
9
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 20.0, "nodes": 59, "errors": 0, "source_hash": "adaea96c52bf4cb61dde81b77e815d2135948cc7c552dc160405574d37b4b680", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit.h>\n...
6,964
c
#ifndef _WINDOWS_QUEUE_H_ #define _WINDOWS_QUEUE_H_ #ifdef __cplusplus extern "C" { #endif #include <Windows.h> #include "windows_glue.h" #undef interface #include <csp/arch/csp_queue.h> #define WINDOWS_QUEUE_ERROR CSP_QUEUE_ERROR #define WINDOWS_QUEUE_EMPTY CSP_QUEUE_ERROR #define WINDOWS_QUEUE_FULL CSP_QUEUE_ERRO...
29.84
32
(translation_unit) "#ifndef _WINDOWS_QUEUE_H_\n#define _WINDOWS_QUEUE_H_\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n#include <Windows.h>\n#include "windows_glue.h"\n#undef interface\n\n#include <csp/arch/csp_queue.h>\n\n#define WINDOWS_QUEUE_ERROR CSP_QUEUE_ERROR\n#define WINDOWS_QUEUE_EMPTY CSP_QUEUE_ERROR\n#defin...
193
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 29.84, "nodes": 149, "errors": 0, "source_hash": "836474fc93d60463fb7fe4da4f9c8a8cf55700c76e9f108956bed98a120f0f76", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,965
c
/* * Copyright (c) 2005, <NAME> and IFS Institute for Software at HSR Rapperswil, Switzerland * All rights reserved. * * This library/application is free software; you can redistribute and/or modify it under the terms of * the license that is included with this library/application in the file license.txt. */ #if...
30
27
(translation_unit) "/*\n * Copyright (c) 2005, <NAME> and IFS Institute for Software at HSR Rapperswil, Switzerland\n * All rights reserved.\n *\n * This library/application is free software; you can redistribute and/or modify it under the terms of\n * the license that is included with this library/application in the f...
78
2
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 30.0, "nodes": 40, "errors": 0, "source_hash": "aa418174e2d000bfe3b2872e978e9ec809045b9f43d719716fac493260ce6571", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
6,966
c
namespace detail { template < typename I1, typename I2, bool b > inline I2 copy_imp(I1 first, I1 last, I2 out, const boost::integral_constant< bool, b >&) { while (first != last) { *out = (typename boost::remove_pointer< I2 >::type) * first; ++out; ++first; } return out; } template < typename T > inli...
18.43
93
(translation_unit) "namespace detail\n{\ntemplate < typename I1, typename I2, bool b >\ninline I2 copy_imp(I1 first, I1 last, I2 out,\n const boost::integral_constant< bool, b >&)\n{\n while (first != last)\n {\n *out = (typename boost::remove_pointer< I2 >::type) * first;\n ++out;\n ++first;\n }\n return out;...
770
46
{"language": "c", "success": true, "metadata": {"lines": 93, "avg_line_length": 18.43, "nodes": 448, "errors": 0, "source_hash": "e5d36e4edfdd370c400955f376f1e7eeda2520329c8f5a73ddca9f3b5e4c5924", "categorized_nodes": 308}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "...
6,967
c
// // Created by <NAME> on 4/28/20. // #pragma once #include "../JuceLibraryCode/JuceHeader.h" #include "Globals.h" class CUtil { public: static String getResourcePath() { File app = File::getSpecialLocation(File::currentApplicationFile); auto resourcesDir = app.getChildFile("Contents").getChildFi...
26.93
14
(translation_unit) "//\n// Created by <NAME> on 4/28/20.\n//\n#pragma once\n\n#include "../JuceLibraryCode/JuceHeader.h"\n#include "Globals.h"\n\nclass CUtil {\npublic:\n static String getResourcePath() {\n File app = File::getSpecialLocation(File::currentApplicationFile);\n auto resourcesDir = app.get...
104
3
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 26.93, "nodes": 54, "errors": 0, "source_hash": "f81a76ff8b2274a08d2b6d31869d9772f6c689320ea82fbda12fa091ae57c31c", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
6,968
c
#ifndef TRANSCEIVERMANAGER_H #define TRANSCEIVERMANAGER_H #pragma once #include "radioprovider.h" #if defined(Q_OS_ANDROID) #include "androidraduimember.h" #else #include "radiomember.h" #endif #include "../fpv/fpvmember.h" #include <QGCToolbox.h> #include <QString> #include <QObject> /** ** c...
24.1
71
(translation_unit) "fndef TRANSCEIVERMANAGER_H \n#define TRANSCEIVERMANAGER_H \n \n#pragma once \n \n#include "radioprovider.h" \n#if defined(Q_OS_ANDROID) \n#include "androidraduimember.h" \n#else \n#include "radiomember.h" \n#endif \n \n#include "../fpv/fpvmember.h" \n \n#include <QGCToolbox.h> \n#include <QString> \...
344
7
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 24.1, "nodes": 240, "errors": 0, "source_hash": "136a371b8fed4a50f64dc28ebc5fa9480717f62f77331e00581856bd26915368", "categorized_nodes": 155}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef T...
6,969
c
/** * @file MultiTermIterator.h * @author <NAME> * @version SF1 v5.0 * @brief Multi Term Iterator */ #ifndef MULTITERMITERATOR_H #define MULTITERMITERATOR_H #include <ir/index_manager/index/AbsTermIterator.h> #include <ir/index_manager/utility/PriorityQueue.h> #include <vector> NS_IZENELIB_IR_BEGIN n...
25.23
86
(translation_unit) "/**\n* @file MultiTermIterator.h\n* @author <NAME>\n* @version SF1 v5.0\n* @brief Multi Term Iterator\n*/\n#ifndef MULTITERMITERATOR_H\n#define MULTITERMITERATOR_H\n\n#include <ir/index_manager/index/AbsTermIterator.h>\n#include <ir/index_manager/utility/PriorityQueue.h>\n\n#include <...
452
13
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 25.23, "nodes": 273, "errors": 0, "source_hash": "7d2908a145a67e026a78b912113c9576064673186d9ea80555d37ca0621b4ae5", "categorized_nodes": 171}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,970
c
#ifndef __ADDRESS_H__ #define __ADDRESS_H__ namespace shipcloud { namespace api { namespace v1 { namespace types { class SHIPCLOUD_API Address { public: std::string id; std::string company; std::string first_name; std::string last_name; std::string care_of; std::strin...
26.78
36
(translation_unit) "#ifndef __ADDRESS_H__\n#define __ADDRESS_H__\n\nnamespace shipcloud {\n namespace api {\n namespace v1 {\n namespace types {\n class SHIPCLOUD_API Address {\n public:\n std::string id;\n std::string company;\n std::string first_name;\n std::string last_name;\n std:...
299
15
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 26.78, "nodes": 175, "errors": 0, "source_hash": "395f9e1ac00b4e19b7631ade51d18dc22cfcef021016f840761610a440f69f61", "categorized_nodes": 130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,971
c
#include <stdlib.h> #include <stdio.h> #include <stdbool.h> #include <stdint.h> void Ombrelloni(unsigned int, unsigned int, unsigned, bool *, unsigned *); uint32_t pot(uint32_t, uint32_t); uint32_t pot(uint32_t x, uint32_t y) { while (y > 1) return x * pot(x, --y); } void main(void) { unsigned int n ...
25.01
84
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n#include <stdbool.h>\n#include <stdint.h>\n\nvoid Ombrelloni(unsigned int, unsigned int, unsigned, bool *, unsigned *);\nuint32_t pot(uint32_t, uint32_t);\n\nuint32_t pot(uint32_t x, uint32_t y)\n{\n while (y > 1)\n return x * pot(x, --y);\n}\n\nvoi...
479
0
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 25.01, "nodes": 306, "errors": 0, "source_hash": "ba6673f0801ef662e9c2408c2c96172908b89bc295cf5baedd6fef6a8d94f302", "categorized_nodes": 206}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,972
c
/*12502 - Three Families*/ #include <stdio.h> int main(){ int casos; scanf("%d", &casos); while(casos--){ int A, B, pay, aux=0; double ax=0; float tot = 0; scanf("%d %d %d", &A, &B, &pay); if(A>B){ aux = A - B; ax = (float)pay / (float)(A+B); A += aux; tot = ax * A; ...
12.72
43
(translation_unit) "/*12502 - Three Families*/ \n#include <stdio.h> \n \nint main(){ \n \n int casos; \n \n scanf("%d", &casos); \n \n while(casos--){ \n int A, B, pay, aux=0; \n double ax=0; \n float tot = 0; \n scanf("%d %d %d", &A, &B, &pay); \n \n if(A>B){ \n \n aux = A - B; \n ax = (float)pay / (float)(A+...
293
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 12.72, "nodes": 178, "errors": 0, "source_hash": "94b8b547ea6b76a47c754ca37478146de3805805823a675a08e280facdb10ec3", "categorized_nodes": 121}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,973
c
/** * 8/8/2018 * @author Hatem * @header file * Copyright (c) Enigma Labs 2019 */ #import "Foundation/Foundation.h" #import "Cordova/CDV.h" #import <Cordova/CDVPlugin.h> #import <PassKit/PassKit.h> #import <WatchConnectivity/WatchConnectivity.h> @interface AppleWallet : CDVPlugin - (void) isAvailable:(CDVInvok...
37.25
24
(translation_unit) "/**\n * 8/8/2018\n * @author Hatem \n * @header file\n * Copyright (c) Enigma Labs 2019\n */\n#import "Foundation/Foundation.h"\n#import "Cordova/CDV.h"\n#import <Cordova/CDVPlugin.h>\n#import <PassKit/PassKit.h>\n#import <WatchConnectivity/WatchConnectivity.h>\n\n\n@interface AppleWallet : CDVPlugi...
214
31
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 37.25, "nodes": 131, "errors": 0, "source_hash": "dd4df5753e04f612db667998a28552fc72d42c1bb073bf165d63aa7a3d0edb0d", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
6,974
c
/* This is a SAMP (0.3.7-R3) API project file. Developer: LUCHARE <<EMAIL>> See more here https://github.com/LUCHARE/SAMP-API Copyright (c) 2018 BlastHack Team <BlastHack.Net>. All rights reserved. */ #pragma once #include "common.h" #include "CVector.h" SAMP_BEGIN class SAMP_API CTextDraw {...
22.18
99
(translation_unit) "/* \n This is a SAMP (0.3.7-R3) API project file. \n Developer: LUCHARE <<EMAIL>> \n \n See more here https://github.com/LUCHARE/SAMP-API \n \n Copyright (c) 2018 BlastHack Team <BlastHack.Net>. All rights reserved. \n*/ \n \n#pragma once \n \n#include "common.h" \n#include "CVector.h" \n \nSAMP_B...
471
2
{"language": "c", "success": true, "metadata": {"lines": 99, "avg_line_length": 22.18, "nodes": 339, "errors": 0, "source_hash": "169815209723f725fd565aa0a612a7aceeb8877e623dd64198f0e4c9473fec2a", "categorized_nodes": 229}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
6,975
c
/*****************************************************************************\ * * * File name: fopen.c * * * * Description: Open a file * * * * Notes: * * * * History: * * 1998/05/24 JFL Created t...
33.28
72
(translation_unit) "/*****************************************************************************\\n* *\n* File name: fopen.c *\n* *\n* Description: Open a file *\n* *\n* Notes: *\n* *\n* History: *\n...
258
0
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 33.28, "nodes": 150, "errors": 0, "source_hash": "a31737da3ba9a530a3e13733ccee4dbc51d2fae8b4a1cf62485bdc5ff6874291", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,976
c
#pragma once #include <SFML\Graphics.hpp> #include <iostream> namespace Camera { void cameraZoom(sf::Event event); void followEntitySmooth(sf::Vector2f entityPos, float deltaTime); sf::View getView(sf::Vector2f newCameraSpeed = { 0, 0 }); sf::FloatRect getViewPort(); float Lerp(float x, float y, float z); s...
26.67
15
(translation_unit) "#pragma once\n#include <SFML\Graphics.hpp>\n#include <iostream>\n\n\nnamespace Camera\n{\n void cameraZoom(sf::Event event);\n void followEntitySmooth(sf::Vector2f entityPos, float deltaTime);\n\n sf::View getView(sf::Vector2f newCameraSpeed = { 0, 0 });\n\n sf::FloatRect getViewPort();\n\n float Le...
147
8
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 26.67, "nodes": 90, "errors": 0, "source_hash": "53625430567b5f20957fba13bbf1435988671c5aaf2c3543cffc0d4abcb1e2bc", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
6,977
c
#pragma once #include "codegen.h" #include "statement.h" namespace CodeGen { struct MADGINE_CODEGEN_EXPORT CppFile : File { CppFile(); CppFile(const CppFile &) = delete; CppFile &operator=(const CppFile &) = delete; void include(size_t level, std::string_view file); void beginNamespace(std::s...
39.57
49
(translation_unit) "#pragma once\n\n#include "codegen.h"\n#include "statement.h"\n\nnamespace CodeGen {\n\nstruct MADGINE_CODEGEN_EXPORT CppFile : File {\n\n CppFile();\n CppFile(const CppFile &) = delete;\n\n CppFile &operator=(const CppFile &) = delete;\n\n void include(size_t level, std::string_view file...
648
49
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 39.57, "nodes": 392, "errors": 0, "source_hash": "cbe27a9500a57d7e13e7a15f4de63d9e438c77a10c3905ac3c0cc03e810ad550", "categorized_nodes": 281}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
6,978
c
// // PreferenceManager.h // Insomnia // // Created by Pat on 2015-12-03. // Copyright © 2015 <NAME> Software Design. All rights reserved. // #ifndef _PREFERENCEMANAGER_ #define _PREFERENCEMANAGER_ #import <Cocoa/Cocoa.h> extern NSString* const PreferenceManagerPrefsChange; @interface PreferenceManager : NSWind...
28.33
21
(translation_unit) "//\n// PreferenceManager.h\n// Insomnia\n//\n// Created by Pat on 2015-12-03.\n// Copyright © 2015 <NAME> Software Design. All rights reserved.\n//\n\n#ifndef _PREFERENCEMANAGER_\n#define _PREFERENCEMANAGER_\n\n#import <Cocoa/Cocoa.h>\n\nextern NSString* const PreferenceManagerPrefsChange;\n\n@i...
116
13
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 28.33, "nodes": 78, "errors": 0, "source_hash": "1261fee417a4be297a906953a9c85001fcb997d7f49b5f3d2845d6c047fd1b25", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef _...
6,979
c
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #include "stdafx.h" #pragma once namespace Internal { namespace Ese { namespace BlockCache { namespace Interop { class CVisitSegment { public:...
43.69
45
(translation_unit) "// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n#include "stdafx.h"\n\n#pragma once\n\nnamespace Internal\n{\n namespace Ese\n {\n namespace BlockCache\n {\n namespace Interop\n {\n class CVisitSegment\n ...
274
14
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 43.69, "nodes": 157, "errors": 0, "source_hash": "cd64d442a1566071182bfdbd19afac491c9ce8455dec8cf6e3e44bbe69eb8e0c", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,980
c
#pragma once #include "CoreMinimal.h" #include "FSDGameMode.h" #include "ESpacerigStartType.h" #include "FSDGameModeSpaceRig.generated.h" class AFSDPlayerController; class AActor; UCLASS(MinimalAPI, NonTransient) class AFSDGameModeSpaceRig : public AFSDGameMode { GENERATED_BODY() public: protected: UPROPERTY(...
25.21
24
(translation_unit) "#pragma once\n#include "CoreMinimal.h"\n#include "FSDGameMode.h"\n#include "ESpacerigStartType.h"\n#include "FSDGameModeSpaceRig.generated.h"\n\nclass AFSDPlayerController;\nclass AActor;\n\nUCLASS(MinimalAPI, NonTransient)\nclass AFSDGameModeSpaceRig : public AFSDGameMode {\n GENERATED_BODY()\np...
129
6
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 25.21, "nodes": 74, "errors": 0, "source_hash": "e9d5ec9bfbf64c8491aa50659caca029f869e32998399fcaf6731db041766d1a", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
6,981
c
/* * Public domain. * Operations on vectors in R^3 using SSE1 operations. */ #include <config/have_sse.h> #ifdef HAVE_SSE #include <core/core.h> #include "m.h" const M_VectorOps3 mVecOps3_SSE = { "sse", M_VectorZero3_SSE, /* -31 clks */ M_VectorGet3_SSE, /* -8 clks */ M_VectorSet3_FPU, /* +8 clks */ M...
24.01
125
(translation_unit) "/*\n * Public domain.\n * Operations on vectors in R^3 using SSE1 operations.\n */\n\n#include <config/have_sse.h>\n\n#ifdef HAVE_SSE\n\n#include <core/core.h>\n#include "m.h"\n\nconst M_VectorOps3 mVecOps3_SSE = {\n "sse",\n M_VectorZero3_SSE, /* -31 clks */\n M_VectorGet3_SSE, /* -8 clks */\n ...
1,058
4
{"language": "c", "success": true, "metadata": {"lines": 125, "avg_line_length": 24.01, "nodes": 652, "errors": 0, "source_hash": "6ec03a06cc8be2f35693cb2b05dea41a98db1f1e6db0ebc28b2422def5ebaf07", "categorized_nodes": 537}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,982
c
/* * --INFO-- * Address: 802160E0 * Size: 00003C */ void wcstombs(void) { /* .loc_0x0: cmplwi r5, 0 mtctr r5 li r6, 0 ble- .loc_0x34 .loc_0x10: lhz r0, 0x0(r4) addi r4, r4, 0x2 extsb r5, r0 extsb. r0, r5 stb r5, 0x0(r3) addi r3, r3,...
12.9
90
(translation_unit) "/*\n * --INFO--\n * Address: 802160E0\n * Size: 00003C\n */\nvoid wcstombs(void)\n{\n /*\n .loc_0x0:\n cmplwi r5, 0\n mtctr r5\n li r6, 0\n ble- .loc_0x34\n\n .loc_0x10:\n lhz r0, 0x0(r4)\n addi r4, r4, 0x2\n extsb r5, r0\n extsb. r0, r5\n stb ...
71
0
{"language": "c", "success": true, "metadata": {"lines": 90, "avg_line_length": 12.9, "nodes": 35, "errors": 0, "source_hash": "a7583bf7b7a4219c6ca4903c345085b3f134bc00df4b709b1514277df79df322", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "voi...
6,983
c
a = b
5
1
(translation_unit) "a = b\n" (ERROR) "a = b" (assignment_expression) "a = b" (identifier) "a" (=) "=" (identifier) "b"
6
1
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 5.0, "nodes": 5, "errors": 0, "source_hash": "83147372b31735878beba3926601373b33976d2e9775bdb9229cea0cf6fdff0b", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "a = b", "parent": nul...
6,984
c
#ifndef RESIZE_HANDLE_H #define RESIZE_HANDLE_H #include <QWidget> #include <QApplication> #include "log4qt/logger.h" class ResizeHandle : public QWidget { Q_OBJECT LOG4QT_DECLARE_QCLASS_LOGGER public: enum Position { pTopLeft = 0, pTopRight = 1, ...
29.45
33
(translation_unit) "#ifndef RESIZE_HANDLE_H\n#define RESIZE_HANDLE_H\n\n#include <QWidget>\n#include <QApplication>\n#include "log4qt/logger.h"\n\nclass ResizeHandle : public QWidget\n{\n Q_OBJECT\n LOG4QT_DECLARE_QCLASS_LOGGER\n public:\n\n enum Position {\n pTopLeft = 0,\n ...
240
12
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 29.45, "nodes": 166, "errors": 0, "source_hash": "8ad878c25b2ca743c780587469d371dc760435a1e9dbbce0896dc5a28e19d47b", "categorized_nodes": 109}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,985
c
int timecheck(char time[]); int placecheck(char place[]); void add_bus(void); void delete_bus(void);
24.25
4
(translation_unit) "int timecheck(char time[]);\nint placecheck(char place[]);\nvoid add_bus(void);\nvoid delete_bus(void);\n" (declaration) "int timecheck(char time[]);" (primitive_type) "int" (function_declarator) "timecheck(char time[])" (identifier) "timecheck" (parameter_list) "(char time[])"...
49
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 24.25, "nodes": 32, "errors": 0, "source_hash": "d12bb0994c2d9aa2a04d139493fbf81638ba182bafe551fce31a96d23af7ec24", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "int timeche...
6,986
c
/** * @Author <NAME> * @Email <EMAIL> * @Date: 2020/6/12 */ #pragma once #include <memory> #include "Channel.h" #include "EventLoop.h" #include "EventLoopThreadPool.h" // 相当于TcpServer,简化了,没有实现单独的Acceptor类 // 直接持有 AcceptChannel_ // 主线程是一个mainReactor运行一个eventloop // 只监听是否有新连接 // 如何实现长连接 keep-alive ...
23.77
39
(translation_unit) "/** \n * @Author <NAME> \n * @Email <EMAIL> \n * @Date: 2020/6/12 \n */ \n \n#pragma once \n#include <memory> \n#include "Channel.h" \n#include "EventLoop.h" \n#include "EventLoopThreadPool.h" \n// 相当于TcpServer,简化了,没有实现单独的Acceptor类 \n// 直接持有 AcceptChannel_ \n// 主线程是一个mainReactor运行一个eventloop \n// 只监...
204
4
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 23.77, "nodes": 118, "errors": 0, "source_hash": "f6bef27454e71249a93582475b4fbdf693e977e9378483722315dd96fdd46b2d", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
6,987
c
/* * Copyright (C) <NAME>. */ #include "mln_thread.h" #include "mln_fork.h" #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <errno.h> #include "mln_types.h" #include "mln_global.h" #include "mln_tools.h" #include "mln_log.h" #include "mln_string.h" #include "mln_conf.h" #inclu...
28.28
242
(ERROR) "/*\n * Copyright (C) <NAME>.\n */\n#include "mln_thread.h"\n#include "mln_fork.h"\n#include <stdio.h>\n#include <stdlib.h>\n#include <unistd.h>\n#include <string.h>\n#include <errno.h>\n#include "mln_types.h"\n#include "mln_global.h"\n#include "mln_tools.h"\n#include "mln_log.h"\n#include "mln_string.h"\n#incl...
2,239
2
{"language": "c", "success": true, "metadata": {"lines": 242, "avg_line_length": 28.28, "nodes": 1302, "errors": 0, "source_hash": "6fde7d54bd3e140aa72d299b20264dd5819966a6adb5554c531fdc1aef9027cd", "categorized_nodes": 909}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "/*\n * Copyright (C) <N...
6,988
c
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include "ui_app.h" class MainWindow : public QMainWindow { Q_OBJECT public: MainWindow(QWidget *parent = 0, Qt::WindowFlags flags = 0); ~MainWindow(); private: Ui::AppClass ui; }; #endif // MAINWINDOW_H
19.36
14
(translation_unit) "#ifndef MAINWINDOW_H\n#define MAINWINDOW_H\n\n#include <QMainWindow>\n#include "ui_app.h"\n\nclass MainWindow : public QMainWindow\n{\n Q_OBJECT\n\npublic:\n MainWindow(QWidget *parent = 0, Qt::WindowFlags flags = 0);\n ~MainWindow();\n\nprivate:\n Ui::AppClass ui;\n};\n\n#endif // MAINW...
82
5
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 19.36, "nodes": 49, "errors": 0, "source_hash": "65ec12d50493de518b98ca092e809b914ec33d85955698f3e6d1b8c12cd9f32e", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,989
c
//=========================================================== // mmRISC Project //----------------------------------------------------------- // File Name : system.h // Description : System Control Header //----------------------------------------------------------- // History : // Rev.01 2021.10.23 M.Maruyama First ...
38.45
20
(translation_unit) "//===========================================================\n// mmRISC Project\n//-----------------------------------------------------------\n// File Name : system.h\n// Description : System Control Header\n//-----------------------------------------------------------\n// History :\n// Rev.01 2...
37
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 38.45, "nodes": 13, "errors": 0, "source_hash": "2498e7984d8338be7eb3803e487beb61c2b8a09600b4093759031289ed07a5ad", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
6,990
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "UIButton.h" @interface MidasIAPButton : UIButton { } + (id)imageWithColor:(id)arg1; // IMP=0x000000010057784c - (void)setDark; // IMP=0x0000000100577c30 - (void)awakeFromNib; /...
25.69
13
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "UIButton.h"\n\n@interface MidasIAPButton : UIButton\n{\n}\n\n+ (id)imageWithColor:(id)arg1; // IMP=0x000000010057784c\n- (void)setDark; // IMP=0x0000000...
64
6
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 25.69, "nodes": 33, "errors": 0, "source_hash": "5a6780736006e7c5e63a1777f9e7ff246207cbbba7ae3aea197d4b681c532f3c", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
6,991
c
#pragma once #include "caffe2/contrib/gloo/common.h" #include "caffe2/core/operator.h" #include <gloo/algorithm.h> #include <gloo/barrier_all_to_one.h> #include <gloo/common/error.h> #include <gloo/context.h> namespace caffe2 { namespace gloo { template <class Context> class BarrierOp final : public Operator<Contex...
30.43
54
(translation_unit) "#pragma once\n\n#include "caffe2/contrib/gloo/common.h"\n#include "caffe2/core/operator.h"\n\n#include <gloo/algorithm.h>\n#include <gloo/barrier_all_to_one.h>\n#include <gloo/common/error.h>\n#include <gloo/context.h>\n\nnamespace caffe2 {\nnamespace gloo {\n\ntemplate <class Context>\nclass Barrie...
472
38
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 30.43, "nodes": 252, "errors": 0, "source_hash": "08f3a498789e8089c14b2bd644486d86d628c265223d3d5a5b90a1ecb167f488", "categorized_nodes": 177}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
6,992
c
/** * @file * @brief linux wrapper * * @date 21.01.14 * @author <NAME> */ #ifndef COMPAT_LINUX_LINUX_IF_ARP_H_ #define COMPAT_LINUX_LINUX_IF_ARP_H_ #include <net/l3/arp.h> #include <net/l3/rarp.h> #endif /* COMPAT_LINUX_LINUX_IF_ARP_H_ */
19.42
12
(translation_unit) "/**\n * @file\n * @brief linux wrapper\n *\n * @date 21.01.14\n * @author <NAME>\n */\n\n#ifndef COMPAT_LINUX_LINUX_IF_ARP_H_\n#define COMPAT_LINUX_LINUX_IF_ARP_H_\n\n#include <net/l3/arp.h>\n#include <net/l3/rarp.h>\n\n#endif /* COMPAT_LINUX_LINUX_IF_ARP_H_ */\n" (comment) "/**\n * @file\n * @bri...
16
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 19.42, "nodes": 13, "errors": 0, "source_hash": "93b599009307323715d7391f4d8523a4cb4ef27c3be1160aa88af823f0aeed10", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,993
c
#include <ruby.h> #include <ruby/intern.h> VALUE c_backtrace(VALUE self) { rb_backtrace(); return Qnil; } void Init_c_backtrace(void) { rb_define_global_function("c_backtrace", c_backtrace, 0); }
19.8
10
(translation_unit) "#include <ruby.h>\n#include <ruby/intern.h>\n\nVALUE c_backtrace(VALUE self) {\n rb_backtrace();\n return Qnil;\n}\n\nvoid Init_c_backtrace(void)\n{\n rb_define_global_function("c_backtrace", c_backtrace, 0);\n}\n" (preproc_include) "#include <ruby.h>\n" (#include) "#include" (sys...
58
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.8, "nodes": 32, "errors": 0, "source_hash": "4d8031e7b4ba2fad34ce69795c6b5e30395e7d6ff48403e84797c1d6fbac8a3c", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
6,994
c
/****************************************************** 日 期: 2020.4.16 功 能: 计算器的实现:实现加、减、乘、除和左右括号 作 者: zkyun *******************************************************/ #include <stdio.h> #include "SqStack.h" #define MAX 255 //优先级判断函数 int get_pri(int ope) { switch(ope) { case '(': return...
22.2
157
(translation_unit) "/******************************************************\n 日 期: 2020.4.16\n 功 能: 计算器的实现:实现加、减、乘、除和左右括号\n 作 者: zkyun\n*******************************************************/\n\n#include <stdio.h>\n#include "SqStack.h"\n#define MAX 255\n\n//优先级判断函数\nint get_pri(int ope)\n{\n switch(...
921
0
{"language": "c", "success": true, "metadata": {"lines": 157, "avg_line_length": 22.2, "nodes": 508, "errors": 0, "source_hash": "cb149a55081801fdb8e124eb683d5844c33d66567ebaf1af8781a88cd8e0572c", "categorized_nodes": 339}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": " 255...
6,995
c
#if !defined(AFX_STDAFX_H__B36C325D_F0EA_4C45_F3BC_1E5EAB3A5E43__INCLUDED_) #define AFX_STDAFX_H__B36C325D_F0EA_4C45_F3BC_1E5EAB3A5E43__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include <CryModuleDefs.h> #define eCryModule eCryM_Game #include <algorithm> #include <vector> #include <memor...
26.25
28
(translation_unit) "#if !defined(AFX_STDAFX_H__B36C325D_F0EA_4C45_F3BC_1E5EAB3A5E43__INCLUDED_)\n#define AFX_STDAFX_H__B36C325D_F0EA_4C45_F3BC_1E5EAB3A5E43__INCLUDED_\n\n#if _MSC_VER > 1000\n#pragma once\n#endif // _MSC_VER > 1000\n\n#include <CryModuleDefs.h>\n#define eCryModule eCryM_Game\n\n#include <algorithm>\n#in...
95
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 26.25, "nodes": 90, "errors": 0, "source_hash": "5a5feb04db73426d1890a46b5f95c6f6d10e1281f99b342ba2bacb5b3dd2ac13", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !define...
6,996
c
#ifndef APP_H #define APP_H 1 #include "system.h" typedef struct{ uint8_t id; char *name; uint8_t (*start)(void); uint8_t (*stop)(void); void (*draw)(void); void (*update)(void); uint8_t (*input_handler)(int8_t, uint32_t); } AppInfo; #include "app_def.h" AppInfo* app_getByID(uint8_t id); uint8_t app_get...
21.58
24
(translation_unit) "#ifndef APP_H\n#define APP_H 1\n\n\n#include "system.h"\n\ntypedef struct{\n uint8_t id;\n char *name;\n uint8_t (*start)(void);\n uint8_t (*stop)(void);\n void (*draw)(void);\n void (*update)(void);\n uint8_t (*input_handler)(int8_t, uint32_t);\n \n} AppInfo;\n\n#include "app_def.h"\n\n\nAppInfo* ...
190
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 21.58, "nodes": 129, "errors": 0, "source_hash": "673ff1088f3b15d931c0943b9a9d4a865f2a2abe01852c3ba4ae8fd491a2a5bc", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,997
c
/** * Manages the OpenSL ES output mix. */ #ifndef SRC_OUTPUTMIXER_H #define SRC_OUTPUTMIXER_H #include <SLES/OpenSLES.h> #include <SLES/OpenSLES_Android.h> class OutputMixer { public: OutputMixer(); void start(SLEngineItf audioEngineInterface); void close(); SLObjectItf getS...
22.4
20
(translation_unit) "/**\n * Manages the OpenSL ES output mix.\n */\n\n#ifndef SRC_OUTPUTMIXER_H\n#define SRC_OUTPUTMIXER_H\n\n#include <SLES/OpenSLES.h>\n\n#include <SLES/OpenSLES_Android.h>\n\nclass OutputMixer\n{\n public:\n OutputMixer();\n\n void start(SLEngineItf audioEngineInterface);\n vo...
76
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 22.4, "nodes": 47, "errors": 0, "source_hash": "b95c39ac6c77c7f026be681584d23c2c6106e7fee0b2acb0a645560cccddc2b0", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef S...
6,998
c
#ifndef SAY_TEXT_H_ #define SAY_TEXT_H_ #include "say_font.h" #include "say_drawable.h" #define SAY_TEXT_NORMAL 0x0 #define SAY_TEXT_BOLD 0x1 #define SAY_TEXT_ITALIC 0x2 #define SAY_TEXT_UNDERLINED 0x4 typedef struct { say_drawable *drawable; say_font *font; size_t size; uint32_t *string; ...
34.14
44
(translation_unit) "#ifndef SAY_TEXT_H_\n#define SAY_TEXT_H_\n\n#include "say_font.h"\n#include "say_drawable.h"\n\n#define SAY_TEXT_NORMAL 0x0\n#define SAY_TEXT_BOLD 0x1\n#define SAY_TEXT_ITALIC 0x2\n#define SAY_TEXT_UNDERLINED 0x4\n\ntypedef struct {\n say_drawable *drawable;\n\n say_font *font;\n si...
390
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 34.14, "nodes": 300, "errors": 0, "source_hash": "baa8f3498d02e60487279cc0df9e0c53e685c24ccf2594e75e69f58619b59647", "categorized_nodes": 187}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,999