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 <string.h> #include "ip_in.h" #include "eth_in.h" #include "eth_out.h" #include "arp.h" #include "debug.h" #include "ip_out.h" #include "config.h" /*----------------------------------------------------------------------------*/ inline void FillInPacketEthContext (struct pkt_ctx *pctx, uint32_t cur_ts, int in...
27.34
85
(translation_unit) "#include <string.h>\n\n#include "ip_in.h"\n#include "eth_in.h"\n#include "eth_out.h"\n#include "arp.h"\n#include "debug.h"\n#include "ip_out.h"\n#include "config.h"\n\n/*----------------------------------------------------------------------------*/\ninline void\nFillInPacketEthContext (struct pkt_ct...
656
1
{"language": "c", "success": true, "metadata": {"lines": 85, "avg_line_length": 27.34, "nodes": 394, "errors": 0, "source_hash": "399c303d29b4b524c0063d65f365c7c465e48c33262aba7483a5a4f8d5eece06", "categorized_nodes": 316}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,900
c
#pragma once #include "Broccoli/Audio/AudioSource.h" #include "XAudio2Clip.h" #include "XAudio2Device.h" #include <xaudio2.h> namespace brcl { class XAudio2Source : public AudioSource { public: void Start() override; void Stop() override; void LoadClip(std::string path) override; private: XAudio2Clip* ...
17.94
18
(translation_unit) "ragma once\n#include "Broccoli/Audio/AudioSource.h"\n#include "XAudio2Clip.h"\n#include "XAudio2Device.h"\n#include <xaudio2.h>\n\n\nnamespace brcl\n{\n class XAudio2Source : public AudioSource\n {\n public:\n\n void Start() override;\n void Stop() override;\n\n void LoadClip(std::string path) ov...
96
4
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 17.94, "nodes": 61, "errors": 0, "source_hash": "68e5ef8dd43f3528984b94ba575668cdeb1eef2cbbaf348cbe5769f99dff438f", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma onc...
2,901
c
//----------------------------------------------------------------------------- // Copyright (c) 2016 <NAME> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // deal in the Software without restriction, includi...
34.86
50
(translation_unit) "//-----------------------------------------------------------------------------\n// Copyright (c) 2016 <NAME>\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the "Software"), to\n// deal in the Software wit...
129
2
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 34.86, "nodes": 70, "errors": 0, "source_hash": "7646d3bb4111294eb27cca8c9d3f9b582964848ac57ddb78d356158e0a123cb5", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,902
c
#include <stdio.h> #include <stdlib.h> #include <file.h> #include "minunit.h" //============================================================================== // // Test Cases // //============================================================================== //-------------------------------------- // File exists ...
33.8
82
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\n#include <file.h>\n#include "minunit.h"\n\n\n//==============================================================================\n//\n// Test Cases\n//\n//==============================================================================\n\n//---------------------...
673
0
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 33.8, "nodes": 368, "errors": 0, "source_hash": "ad4a8cc1537c82c0c1b47ca23656ab80873f71a34cf0637cc52b919e3db7741e", "categorized_nodes": 271}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
2,903
c
/* ======================== Copyright (c) 2014 Vinyl Games Studio CharacterEntity.h Created by: <NAME> Created on: 5/28/2014 3:18:13 PM ======================== */ #ifndef __CHARACTER_ENTITY_H__ #define __CHARACTER_ENTITY_H__ #include "ServerEntity.h" #include "WeaponSS.h" #include <CharacterStats.h> #inclu...
42.28
97
(translation_unit) "/*\n========================\n\nCopyright (c) 2014 Vinyl Games Studio\n\n CharacterEntity.h\n\n Created by: <NAME>\n Created on: 5/28/2014 3:18:13 PM\n\n========================\n*/\n#ifndef __CHARACTER_ENTITY_H__\n#define __CHARACTER_ENTITY_H__\n\n#include "ServerEntity.h"\n#include "WeaponSS.h"\...
895
32
{"language": "c", "success": true, "metadata": {"lines": 97, "avg_line_length": 42.28, "nodes": 513, "errors": 0, "source_hash": "c9907c513c9a0114956034b8435a3ce0e54daa30fead4852928104a38a8790fe", "categorized_nodes": 326}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,904
c
// // UIColor+Create.h // #define UIColorFromKey(color) [UIColor colorWithObject:color] #import <UIKit/UIKit.h> @interface UIColor (Create) /*! * Returns UIColor from separate red, green and blue components. * * @param NSInteger red component * @param NSInteger green component * @param NSInteger blue componen...
30.04
49
(translation_unit) "//\n// UIColor+Create.h\n//\n\n#define UIColorFromKey(color) [UIColor colorWithObject:color]\n\n#import <UIKit/UIKit.h>\n\n@interface UIColor (Create)\n\n/*!\n * Returns UIColor from separate red, green and blue components.\n *\n * @param NSInteger red component\n * @param NSInteger green component...
216
19
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 30.04, "nodes": 131, "errors": 0, "source_hash": "6658dc7ba136fadcbb8cecc959ed67f2973156f02df359902fb28b92ea606d28", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_function_def", "text": "...
2,905
c
// // Created by david on 09/06/2020. // #pragma once #include "ui/IPlanePrimitive.h" class Button : public IPlanePrimitive { private: vec3 color; float value; public: Button(vec3 color, float value, vec2 origin, vec2 size, float z); void on_move(vec2 pos) override; void on_scroll(vec2 off) ov...
24.88
16
(translation_unit) "//\n// Created by david on 09/06/2020.\n//\n\n#pragma once\n\n#include "ui/IPlanePrimitive.h"\n\nclass Button : public IPlanePrimitive {\nprivate:\n vec3 color;\n float value;\n\npublic:\n Button(vec3 color, float value, vec2 origin, vec2 size, float z);\n\n void on_move(vec2 pos) overri...
122
9
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 24.88, "nodes": 75, "errors": 0, "source_hash": "3d0b30c73ab497e9c21d72c3da485352c608b8ee33634b09740f241991898f79", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
2,906
c
#pragma once #include "common.h" #include "CUDADeviceMemory.h" // (batch) from raw decoded yuv(batch first) to resized, padded and bilateral filtered fp32 RGB image range [-1,1] (NCHW format) void PreprocessNV12( cudawrapper::CUDADeviceMemoryUnique<std::uint8_t>& output, cudawrapper::CUDADeviceMemoryUnique<std::ui...
37.82
17
(translation_unit) "#pragma once\n\n#include "common.h"\n\n#include "CUDADeviceMemory.h"\n\n// (batch) from raw decoded yuv(batch first) to resized, padded and bilateral filtered fp32 RGB image range [-1,1] (NCHW format)\nvoid PreprocessNV12(\n cudawrapper::CUDADeviceMemoryUnique<std::uint8_t>& output,\n cudawrapper::C...
140
11
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 37.82, "nodes": 87, "errors": 0, "source_hash": "b09d6aa3d96826408d9ea2d589e510bc974d3b7df4c4b36a585c22d0ce3205d0", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
2,907
c
/* gcc -std=c17 -lc -lm -pthread -o ../_build/c/io_tmpfile.exe ./c/io_tmpfile.c && (cd ../_build/c/;./io_tmpfile.exe) https://en.cppreference.com/w/c/io/tmpfile */ #define _POSIX_C_SOURCE 200112L #include <stdio.h> #include <unistd.h> int main(void) { printf("TMP_MAX = %d, FOPEN_MAX = %d\n", TMP_MAX, FOPEN_MAX); ...
33.55
22
(translation_unit) "/*\ngcc -std=c17 -lc -lm -pthread -o ../_build/c/io_tmpfile.exe ./c/io_tmpfile.c && (cd ../_build/c/;./io_tmpfile.exe)\nhttps://en.cppreference.com/w/c/io/tmpfile\n*/\n#define _POSIX_C_SOURCE 200112L\n#include <stdio.h>\n#include <unistd.h>\nint main(void)\n{\n printf("TMP_MAX = %d, FOPEN_MAX = %...
188
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 33.55, "nodes": 103, "errors": 0, "source_hash": "74df93ebe164fd60095a6864c5550b028af4d560b901d8f65b445ffaef084c14", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define _...
2,908
c
/** * @file utf.h * @author <NAME> * * All files in META are dual-licensed under the MIT and NCSA licenses. For more * details, consult the file LICENSE.mit and LICENSE.ncsa in the root of the * project. */ #ifndef META_UTF8_H_ #define META_UTF8_H_ #include <array> #include <cstdint> #include <functional> #inc...
28.25
166
(translation_unit) "/**\n * @file utf.h\n * @author <NAME>\n *\n * All files in META are dual-licensed under the MIT and NCSA licenses. For more\n * details, consult the file LICENSE.mit and LICENSE.ncsa in the root of the\n * project.\n */\n\n#ifndef META_UTF8_H_\n#define META_UTF8_H_\n\n#include <array>\n#include <cs...
746
34
{"language": "c", "success": true, "metadata": {"lines": 166, "avg_line_length": 28.25, "nodes": 421, "errors": 0, "source_hash": "6f5ff1d3b94d5598ddfe4d8fe7c1fd56b88ea74d817d80c23bcf03841a72ddaa", "categorized_nodes": 310}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,909
c
#ifndef __ARCOM_PCMCIA_H #define __ARCOM_PCMCIA_H struct arcom_pcmcia_pdata { int cd_gpio; int rdy_gpio; int pwr_gpio; void (*reset)(int state); }; #endif
16.67
9
(translation_unit) "#ifndef __ARCOM_PCMCIA_H\n#define __ARCOM_PCMCIA_H\n\nstruct arcom_pcmcia_pdata {\n int cd_gpio;\n int rdy_gpio;\n int pwr_gpio;\n void (*reset)(int state);\n};\n\n#endif\n" (preproc_ifdef) "#ifndef __ARCOM_PCMCIA_H\n#define __ARCOM_PCMCIA_H\n\nstruct arcom_pcmcia_pdata {\n int cd_gpio;\n int rdy_...
43
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 16.67, "nodes": 30, "errors": 0, "source_hash": "7066a2da5a57ad6d545611982c7a12e6a2dc61447620ba20f0477d25631a38e2", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
2,910
c
/* * $Id: tap.c 1432 2009-02-14 04:30:41Z vapier $ * * Copyright (C) 2002 ETC s.r.o. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your opti...
34.58
122
(translation_unit) "/*\n * $Id: tap.c 1432 2009-02-14 04:30:41Z vapier $\n *\n * Copyright (C) 2002 ETC s.r.o.\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * as published by the Free Software Foundation; either version 2\n * of t...
1,047
0
{"language": "c", "success": true, "metadata": {"lines": 122, "avg_line_length": 34.58, "nodes": 596, "errors": 0, "source_hash": "bce82791f5358e9c5726b19379cc2380c33685e2930ae42c3dea8dddb29dac97", "categorized_nodes": 456}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,911
c
/* * fat.c, "Free(grid cell) Array Thing" * * Keeps track of unused/used blocks by shuffling their indexes in an * array; items in m->fat_arr[] <= fat_p are considered unused. */ #include "snake.h" /* Initializes a fat_mem struct to the default state */ void fat_reset(struct fat_mem *m) { for (int i = 0; i < FIE...
27.38
60
(translation_unit) "/*\n * fat.c, "Free(grid cell) Array Thing"\n *\n * Keeps track of unused/used blocks by shuffling their indexes in an\n * array; items in m->fat_arr[] <= fat_p are considered unused.\n */\n#include "snake.h"\n\n/* Initializes a fat_mem struct to the default state */\nvoid fat_reset(struct fat_mem *...
522
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 27.38, "nodes": 311, "errors": 0, "source_hash": "28f34597fd4d4b04917e612de5d459add1a49e35c10e5a622249a59021170f2f", "categorized_nodes": 236}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,912
c
// // WMGTextLayout.h // LYTextDrawer // // Created by 李玉臣 on 2020/2/8. // Copyright © 2020 <EMAIL>. All rights reserved. // #import <Foundation/Foundation.h> #import "WMGFontMetrics.h" extern CGFloat const WMGTextLayoutMaximumWidth; extern CGFloat const WMGTextLayoutMaximumHeight; @class WMGTextLayout; @class W...
33.6
53
(translation_unit) "//\n// WMGTextLayout.h\n// LYTextDrawer\n//\n// Created by 李玉臣 on 2020/2/8.\n// Copyright © 2020 <EMAIL>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "WMGFontMetrics.h"\n\nextern CGFloat const WMGTextLayoutMaximumWidth;\nextern CGFloat const WMGTextLayoutMaximumHeight;...
305
53
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 33.6, "nodes": 214, "errors": 0, "source_hash": "35fedd15cfe8b1cda55d861b068606fba330ed04201ae0f2bf1b3e67374e2e5e", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <Founda...
2,913
c
//%%%%% dumb read datasets functions #include <stdio.h> #include <stdlib.h> #include <string.h> #include "../inc/readlib.h" double *read_1(char *file_path, int *n, int *d){ if(strstr(file_path,"ColorH")!=NULL){ *n=68040; *d=32; }else if(strstr(file_path,"ColorM")!=NULL){ *n = 68040; *d = 9; }else{...
23.68
182
(translation_unit) "//%%%%% dumb read datasets functions\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include "../inc/readlib.h"\n\ndouble *read_1(char *file_path, int *n, int *d){\n if(strstr(file_path,"ColorH")!=NULL){\n *n=68040;\n *d=32;\n }else if(strstr(file_path,"ColorM")!=NULL){\n *...
1,923
0
{"language": "c", "success": true, "metadata": {"lines": 182, "avg_line_length": 23.68, "nodes": 1181, "errors": 0, "source_hash": "324bba850e70fedb632e56a26db0e8b321064dea155e79f2a313f800d16445f2", "categorized_nodes": 713}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
2,914
c
// // QZNavgationController.h // QZAppFrame // // Created by 000 on 17/11/16. // Copyright © 2017年 faner. All rights reserved. // #import <UIKit/UIKit.h> @interface QZNavgationController : UINavigationController @end
21.1
10
(translation_unit) "//\n// QZNavgationController.h\n// QZAppFrame\n//\n// Created by 000 on 17/11/16.\n// Copyright © 2017年 faner. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface QZNavgationController : UINavigationController\n\n@end\n" (comment) "//" (comment) "// QZNavgationController.h" ...
22
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.1, "nodes": 12, "errors": 0, "source_hash": "5040fc69bb008a094ff77461861354178334ca0fdf3f231ee9bbf78c6493173e", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKit...
2,915
c
// Criacao de variaveis // Biblioteca #include <stdio.h> // Funcao principal int main(int argc, char const *argv[]) { // Variavel do tipo caracter char character = 'a'; printf("Letra: %c\n", character); // Variavel do tipo Inteiro int integer = 1; printf("Inteiro: %d\n", integer); // Variavel do tipo real/ponto ...
24.35
20
(translation_unit) "// Criacao de variaveis\n// Biblioteca\n#include <stdio.h>\n// Funcao principal\nint main(int argc, char const *argv[])\n{\n // Variavel do tipo caracter\n char character = 'a';\n printf("Letra: %c\n", character);\n // Variavel do tipo Inteiro\n int integer = 1;\n printf("Inteiro: %d\n", integer);\n...
126
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 24.35, "nodes": 70, "errors": 0, "source_hash": "8fcca9b67ffbbf255bfaaaab7a4a5ee55733ceb6bbe2d579f93895bb23afde3b", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
2,916
c
// Information form the "ARM Cortex-M0 Devices Generic User Guide", rev. r0p0 #pragma once #include "./cm0-def.h" // == memory mapping ================================================================================================== #define SCB ((struct Scb_t *) 0xE000ED00) #define SysTick ...
30.05
55
(translation_unit) "// Information form the "ARM Cortex-M0 Devices Generic User Guide", rev. r0p0\n\n#pragma once\n\n#include "./cm0-def.h"\n\n// == memory mapping ==================================================================================================\n\n#define SCB ((struct Scb_t *) 0xE000E...
400
9
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 30.05, "nodes": 229, "errors": 0, "source_hash": "de6c3c390d9f18eb262e365ff46931a9c270369b8e3a6688fad037118e3bff12", "categorized_nodes": 146}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
2,917
c
/** * This header is generated by class-dump-z 0.2-0. * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3. * * Source: (null) */ #import "Component5Controller.h" @class TextKitLabelInteractive, TextComponent, TextComponentNode; __attribute__((visibility("hidden"))) @interface TextComponentCon...
37.24
17
(translation_unit) "/**\n * This header is generated by class-dump-z 0.2-0.\n * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3.\n *\n * Source: (null)\n */\n\n#import "Component5Controller.h"\n\n@class TextKitLabelInteractive, TextComponent, TextComponentNode;\n\n__attribute__((visibility("hidden"...
145
15
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 37.24, "nodes": 88, "errors": 0, "source_hash": "484c747c3d15fe9bd7e51ad6efe9098919dfd5419ac25cec74919c88f6ab9760", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
2,918
c
/* Copyright (c) 2013-2022 <NAME> <<EMAIL>> */ #include "ring.h" int main ( int argc, char *argv[] ) { ring_state_main(argc,argv); return 0 ; }
19.86
7
(translation_unit) "/* Copyright (c) 2013-2022 <NAME> <<EMAIL>> */\n#include "ring.h"\n\nint main ( int argc, char *argv[] )\n{\n ring_state_main(argc,argv);\n return 0 ;\n}\n" (comment) "/* Copyright (c) 2013-2022 <NAME> <<EMAIL>> */" (preproc_include) "#include "ring.h"\n" (#include) "#include" (string_li...
44
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 19.86, "nodes": 24, "errors": 0, "source_hash": "ce8480893c0e44703f2a615b4c443758f85550aafa496dee2f5d2550839cef28", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
2,919
c
// // LGeminiPath.h // GeminiSK // // Created by <NAME> on 11/15/13. // // #include "lua.h" #include "lualib.h" #include "lauxlib.h" int luaopen_path_lib (lua_State *L);
14.73
11
(translation_unit) "//\n// LGeminiPath.h\n// GeminiSK\n//\n// Created by <NAME> on 11/15/13.\n//\n//\n\n#include "lua.h"\n#include "lualib.h"\n#include "lauxlib.h"\n\nint luaopen_path_lib (lua_State *L);" (comment) "//" (comment) "// LGeminiPath.h" (comment) "// GeminiSK" (comment) "//" (comment) "// Cr...
39
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 14.73, "nodes": 19, "errors": 0, "source_hash": "3668671756cdc846e14ab4d2a4298a592b6e833609fe7f10da02ca0d1fd665a0", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
2,920
c
#ifndef PH_EDITOR_LOG_REQUEST_H #define PH_EDITOR_LOG_REQUEST_H #include "Phobos/Editor/Request.h" #include <Phobos/String.h> namespace Phobos { namespace Editor { class LogRequest: public Request { public: LogRequest(const rapidjson::Value &value); protected: virtual void OnExecute(JsonCreator:...
18.43
21
(translation_unit) "#ifndef PH_EDITOR_LOG_REQUEST_H\n#define PH_EDITOR_LOG_REQUEST_H\n\n#include "Phobos/Editor/Request.h"\n\n#include <Phobos/String.h>\n\nnamespace Phobos\n{\n namespace Editor\n {\n class LogRequest: public Request\n {\n public:\n LogRequest(const rapidjson::Value &value);\n\n protected:\n ...
92
6
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 18.43, "nodes": 50, "errors": 0, "source_hash": "7e7aa50ab5983ccd9950caca298dbe58ceb75713839455fa4e479ae5c6336936", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,921
c
#ifndef v1_load_balancer_status_TEST #define v1_load_balancer_status_TEST // the following is to include only the main from the first c file #ifndef TEST_MAIN #define TEST_MAIN #define v1_load_balancer_status_MAIN #endif // TEST_MAIN #include <stdlib.h> #include <string.h> #include <stdio.h> #include <stdbool.h> #inc...
38.52
46
(translation_unit) "#ifndef v1_load_balancer_status_TEST\n#define v1_load_balancer_status_TEST\n\n// the following is to include only the main from the first c file\n#ifndef TEST_MAIN\n#define TEST_MAIN\n#define v1_load_balancer_status_MAIN\n#endif // TEST_MAIN\n\n#include <stdlib.h>\n#include <string.h>\n#include <std...
289
0
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 38.52, "nodes": 184, "errors": 0, "source_hash": "688ecc956440aa2d888d569a889fa9ac6b7f932390476b042a44eb4b870dce82", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,922
c
#include "header.h" int image_size(char reffile[],long naxes[]){ /*CFTISIO VARIABLES */ fitsfile *fptr; /* FITS file pointer, defined in fitsio.h */ int status = 0; /* CFITSIO status value MUST be initialized to zero! */ int bitpix, naxis; FILE *file; if (!fits_open_file(&fptr,...
34.95
19
(translation_unit) "#include "header.h"\n\nint image_size(char reffile[],long naxes[]){\n/*CFTISIO VARIABLES */\n fitsfile *fptr; /* FITS file pointer, defined in fitsio.h */\n int status = 0; /* CFITSIO status value MUST be initialized to zero! */\n int bitpix, naxis;\n FILE *file;\...
178
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 34.95, "nodes": 97, "errors": 0, "source_hash": "58671a357491f418ec86ce19829768e89664fefdaf30d816299e5fd753a575cc", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
2,923
c
#include <stdio.h> #include <stdlib.h> #include "metric.h" #include "lia/cmd.h" static void cmd_print(cmd_t *cmd) { printf("%s ", cmd->name); for (int i = 0; i < CMD_ARGC; i++) printf("%c:%c ", cmd->args[i].name, cmd->args[i].type); printf("= \"%s\"\n", cmd->body->text); } static void tree_print(cmd_t...
29.19
117
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include "metric.h"\n#include "lia/cmd.h"\n\nstatic void cmd_print(cmd_t *cmd)\n{\n printf("%s ", cmd->name);\n \n for (int i = 0; i < CMD_ARGC; i++)\n printf("%c:%c ", cmd->args[i].name, cmd->args[i].type);\n \n printf("= \"%s\"\n", cmd->body->text);...
1,693
0
{"language": "c", "success": true, "metadata": {"lines": 117, "avg_line_length": 29.19, "nodes": 929, "errors": 0, "source_hash": "dec051c9a47b8aa782696f089797c508dee5c862831bfee9de235dde23ec8700", "categorized_nodes": 573}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,924
c
/* * Author: MontaVista Software, Inc. * <EMAIL> * * Copyright 2001-2002 MontaVista Software Inc. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the Lic...
28.82
163
(translation_unit) "/*\n * Author: MontaVista Software, Inc.\n * <EMAIL>\n *\n * Copyright 2001-2002 MontaVista Software Inc.\n *\n * This program is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public License as published by the\n * Free Software Foundation;...
1,178
4
{"language": "c", "success": true, "metadata": {"lines": 163, "avg_line_length": 28.82, "nodes": 633, "errors": 0, "source_hash": "745cfa4becd632ada4e88fe3505a2d503c62aea617235973340ed4b71e30b2ae", "categorized_nodes": 460}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,925
c
/* reader.h */ #ifndef LSP_READER_H #define LSP_READER_H #include "protocol/request.h" #include "core/variant.h" #include "protocol/response.h" namespace lsp { class Reader { public: static ResponseError parse_rpc_request(String &connection_data, Request &ret_req); static ResponseError parse_json_request(String &...
32.95
20
(translation_unit) "/* reader.h */\n\n#ifndef LSP_READER_H\n#define LSP_READER_H\n\n#include "protocol/request.h"\n#include "core/variant.h"\n#include "protocol/response.h"\n\nnamespace lsp {\nclass Reader {\n\npublic:\n static ResponseError parse_rpc_request(String &connection_data, Request &ret_req);\n static Respons...
163
10
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 32.95, "nodes": 83, "errors": 0, "source_hash": "66ef9a50728f16146fbdd75798cf1b980f1936d496991172406d1946350993d7", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,926
c
// // ListInteractiveTransition.h // bam // // Created by <NAME> on 26/07/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface ListInteractiveTransition : UIPercentDrivenInteractiveTransition @property(nonatomic, strong)UIView* view; @property (nonatomic, copy) void (^dismi...
27.25
12
(translation_unit) "//\n// ListInteractiveTransition.h\n// bam\n//\n// Created by <NAME> on 26/07/14.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ListInteractiveTransition : UIPercentDrivenInteractiveTransition\n@property(nonatomic, strong)UIView* view;\n@propert...
62
10
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 27.25, "nodes": 40, "errors": 0, "source_hash": "91ee42ae93bf2722fd1eb5c49926fa3c2de62d994b8050b7b4852a895b8cb0c4", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
2,927
c
// // Created by <NAME> on 02/11/2020. // #ifndef SRUP_LIBRARY_SRUP_SYNDICATED_DATA_H #define SRUP_LIBRARY_SRUP_SYNDICATED_DATA_H #include "SRUP_Data.h" namespace SRUP { static const uint8_t SRUP_MESSAGE_TYPE_SYNDICATED_DATA = 0x25; } // SRUP_SYNDICATED_DATA Message class SRUP_MSG_SYNDICATED_DATA : public SRU...
26.65
26
(translation_unit) "//\n// Created by <NAME> on 02/11/2020.\n//\n\n#ifndef SRUP_LIBRARY_SRUP_SYNDICATED_DATA_H\n#define SRUP_LIBRARY_SRUP_SYNDICATED_DATA_H\n\n#include "SRUP_Data.h"\n\nnamespace SRUP\n{\n static const uint8_t SRUP_MESSAGE_TYPE_SYNDICATED_DATA = 0x25;\n}\n\n// SRUP_SYNDICATED_DATA Message\n\nclass SR...
144
5
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 26.65, "nodes": 82, "errors": 0, "source_hash": "327186b2d78f2daa3c123cf170f7ca730b3b9f3f6f2a721a12d7ee48180c635a", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,928
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_tail.c :+: :+: :+: ...
28.12
88
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* ft_tail.c ...
786
0
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 28.12, "nodes": 491, "errors": 0, "source_hash": "6c6b85fef672fc183b915b7071a72e6b8394438be62c463e7209f5f9b5515496", "categorized_nodes": 333}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,929
c
#define _GNU_SOURCE #include <pthread.h> #include <sched.h> int attachCurrentThreadToCore(int core); int detachCurrentThreadFromCore(); int attachCurrentThreadToCore(int core) { pthread_t thread; thread = pthread_self(); cpu_set_t set; CPU_ZERO(&set); CPU_SET(core, &set); return pthread_setaffinity_np(th...
24.1
21
(translation_unit) "#define _GNU_SOURCE\n\n#include <pthread.h>\n#include <sched.h>\n\nint attachCurrentThreadToCore(int core);\nint detachCurrentThreadFromCore();\n\nint attachCurrentThreadToCore(int core) {\n\n pthread_t thread;\n\n thread = pthread_self();\n\n cpu_set_t set;\n\n CPU_ZERO(&set);\n\n CPU_SET(core, &se...
160
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 24.1, "nodes": 95, "errors": 0, "source_hash": "78acaed704540ef393096ef23108bb1e9561dab4e44a2e5ad40ee733988e97c9", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define _GN...
2,930
c
#ifndef NVIM_TERM_H #define NVIM_TERM_H #ifdef INCLUDE_GENERATED_DECLARATIONS # include "term.h.generated.h" #endif #endif // NVIM_TERM_H
22.17
6
(translation_unit) "#ifndef NVIM_TERM_H\n#define NVIM_TERM_H\n\n#ifdef INCLUDE_GENERATED_DECLARATIONS\n# include "term.h.generated.h"\n#endif\n#endif // NVIM_TERM_H\n" (preproc_ifdef) "#ifndef NVIM_TERM_H\n#define NVIM_TERM_H\n\n#ifdef INCLUDE_GENERATED_DECLARATIONS\n# include "term.h.generated.h"\n#endif\n#endif" ...
19
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 22.17, "nodes": 14, "errors": 0, "source_hash": "564a3e693ce87b02a99cae0b80219bee9f039346f1ba737e74899c81b8533064", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef N...
2,931
c
#include <stdio.h> #define POINTS_COUNT 22 typedef struct { int temp; int lsb; } temp_point; static temp_point thermistorPoints[] = { { 850 , 129 }, { 800 , 146 }, { 750 , 165 }, { 700 , 186 }, { 650 , 210 }, { 600 , 236 }, { 550 , 267 }, { 500 , 300 }, { 450 ,...
29.41
79
(translation_unit) "#include <stdio.h>\n\n#define POINTS_COUNT 22\n\ntypedef struct {\n int temp;\n int lsb;\n} temp_point;\n\nstatic temp_point thermistorPoints[] = {\n { 850 , 129 },\n { 800 , 146 },\n { 750 , 165 }, \n { 700 , 186 }, \n { 650 , 210 }, \n { 600 , 236 }, \n { 550 , 267 }...
661
0
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 29.41, "nodes": 378, "errors": 0, "source_hash": "bdff90c80cc6f46b435c51f697a43bf09fb4385c3bd5bf1f5f1ef8eac90fa325", "categorized_nodes": 280}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,932
c
/* * Top-level clock management API * see include/linux/clk.h for description. * These routines are hardware-independent, * and all hardware-specific code is invoked * through the "ops" methods. */ #include <linux/module.h> #include <linux/kernel.h> #include <linux/errno.h> #include <linux/clk.h> #include <linux/...
21.17
113
(translation_unit) "/*\n * Top-level clock management API\n * see include/linux/clk.h for description.\n * These routines are hardware-independent,\n * and all hardware-specific code is invoked\n * through the "ops" methods.\n */\n#include <linux/module.h>\n#include <linux/kernel.h>\n#include <linux/errno.h>\n#include ...
775
0
{"language": "c", "success": true, "metadata": {"lines": 113, "avg_line_length": 21.17, "nodes": 491, "errors": 0, "source_hash": "a7da58ae112b6509e5e734048e9521bd8dec4ac2ad10f73f4f4cf83590215be3", "categorized_nodes": 391}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,933
c
/* main.c (De)initialization stuff. It's also here where sessions are being accepted. (c) TuxSH, 2016-2017 This is part of 3ds_pxi, which is licensed under the MIT license (see LICENSE for details). */ #include <string.h> #include "PXI.h" #include "common.h" #include "MyThread.h" #include "receiver.h" #include "...
35.78
165
(translation_unit) "/*\nmain.c\n (De)initialization stuff. It's also here where sessions are being accepted.\n\n(c) TuxSH, 2016-2017\nThis is part of 3ds_pxi, which is licensed under the MIT license (see LICENSE for details).\n*/\n\n#include <string.h>\n\n#include "PXI.h"\n#include "common.h"\n#include "MyThread.h"\...
1,636
4
{"language": "c", "success": true, "metadata": {"lines": 165, "avg_line_length": 35.78, "nodes": 904, "errors": 0, "source_hash": "f3e880edea6385874fce8042edb9aac74069a6a6370ae1035ecad9cfdea74cfa", "categorized_nodes": 661}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,934
c
#pragma once #include <Math/Vector/Vec3.h> #include <Math/Matrix/Mat4.h> #include <Color.h> using namespace Math::Vector; using namespace Math::Matrix; struct Vertex { Vec3 m_position; Vec3 m_normal; Vec4* m_pos; Mat4* m_rotation; Mat4* m_scale; Color m_color; bool operator<(const Vertex& p_other) { if (m...
19.03
30
(translation_unit) "#pragma once\n#include <Math/Vector/Vec3.h>\n#include <Math/Matrix/Mat4.h>\n#include <Color.h>\n\nusing namespace Math::Vector;\nusing namespace Math::Matrix;\n\nstruct Vertex\n{\n Vec3 m_position;\n Vec3 m_normal;\n Vec4* m_pos;\n Mat4* m_rotation;\n Mat4* m_scale;\n\n Color m_color;\n\n bool opera...
181
7
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 19.03, "nodes": 113, "errors": 0, "source_hash": "682b58bb1662fbfed61675ea9d1681fd9ed7a9cd4085f9b9eb79f684aae321c3", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
2,935
c
#ifndef DS_PAYPAL_CONNECTION_TYPE_H_ #define DS_PAYPAL_CONNECTION_TYPE_H_ #define DS_PAYPAL_CONNECTION_TYPE_VERSION _N("0.0.1") #define DS_PAYPAL_CONNECTION_TYPE_NAME _N("DSPayPalConnectionType") #define DS_PAYPAL_CONNECTION_TYPE_AUTHOR _N("<NAME> (<EMAIL>)") #define DS_PAYPAL_CONNECTION_TYPE_DEFAULT_VERSION ...
33.12
82
(translation_unit) "#ifndef DS_PAYPAL_CONNECTION_TYPE_H_\n#define DS_PAYPAL_CONNECTION_TYPE_H_\n\n#define DS_PAYPAL_CONNECTION_TYPE_VERSION _N("0.0.1")\n#define DS_PAYPAL_CONNECTION_TYPE_NAME _N("DSPayPalConnectionType")\n#define DS_PAYPAL_CONNECTION_TYPE_AUTHOR _N("<NAME> (<EMAIL>)")\n\n#define DS_PAYPAL_CONNECTIO...
568
36
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 33.12, "nodes": 339, "errors": 0, "source_hash": "3ba4ee3cb1a1c079bf89608b2e53bd9b44f63708386a63d1d93faffc55183fd1", "categorized_nodes": 225}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,936
c
// // AWRequestMecros.h // AWBTCChinaAPIDemo // // Created by mafengwo on 15/3/19. // Copyright (c) 2015年 Aldaron. All rights reserved. // #ifndef AWBTCChinaAPIDemo_AWRequestMecros_h #define AWBTCChinaAPIDemo_AWRequestMecros_h #define BTCCHINA_REQUEST_BASE_URL @"https://api.btcchina.com/api_trade_v1.php" #endif
27.82
11
(translation_unit) "//\n// AWRequestMecros.h\n// AWBTCChinaAPIDemo\n//\n// Created by mafengwo on 15/3/19.\n// Copyright (c) 2015年 Aldaron. All rights reserved.\n//\n\n#ifndef AWBTCChinaAPIDemo_AWRequestMecros_h\n#define AWBTCChinaAPIDemo_AWRequestMecros_h\n\n#define BTCCHINA_REQUEST_BASE_URL @"https://api.btcchina...
19
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 27.82, "nodes": 11, "errors": 0, "source_hash": "6f7ce787704e6a4637e2e1b49c66554817396cc7455cdd5fe24cdbba2e56dbaa", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef AWB...
2,937
c
/* POSSIBLE SECURITY RISK better not owned by root sends USRSIG1 to the Process of ControlPi which will make it reload. */ // Compiles to reloadCond // give this executable the sticky bit with chmod u+s, what will make it executable under the user that it owns. // enabling e.g. www-data to restart the bac...
34.54
28
(translation_unit) "/*\n POSSIBLE SECURITY RISK\n better not owned by root\n\n sends USRSIG1 to the Process of ControlPi which will make it reload.\n*/\n\n// Compiles to reloadCond \n// give this executable the sticky bit with chmod u+s, what will make it executable under the user that it owns.\n// enabling e.g....
106
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 34.54, "nodes": 53, "errors": 0, "source_hash": "cd71d991536cbb13ad6610291931f5b07cb63a06dbd3d8116fc72f7daf9f7c16", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
2,938
c
/* * CStatusScreenGalaxy.h * * Created on: 05.03.2011 * Author: gerstrong * * Base class for the creation of the Status Screen */ #ifndef CSTATUSSCREENGALAXY_H_ #define CSTATUSSCREENGALAXY_H_ #include <SDL.h> #include <string> #include <memory> #include <graphics/GsSurface.h> #include "../res/ItemsGala...
30.88
43
(translation_unit) "/*\n * CStatusScreenGalaxy.h\n *\n * Created on: 05.03.2011\n * Author: gerstrong\n *\n * Base class for the creation of the Status Screen\n */\n\n#ifndef CSTATUSSCREENGALAXY_H_\n#define CSTATUSSCREENGALAXY_H_\n\n#include <SDL.h>\n#include <string>\n#include <memory>\n#include <graphics/GsSur...
147
4
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 30.88, "nodes": 85, "errors": 0, "source_hash": "a12893f0c5dc7f66a1d4a1d70f8e8156b65d67e400591a4d77a95b2688e61588", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,939
c
// created by <NAME> 2018-2019 // https://github.com/masszhou/lidarviewer #ifndef LIDARVIEWER_CAMERA_H #define LIDARVIEWER_CAMERA_H #include <QVector3D> #include <QVector2D> #include <QQuaternion> #include <QMatrix4x4> #define PI 3.14159265359f /** * @brief The Camera class, right hand coordinates */ class Camera ...
35.42
136
(translation_unit) "// created by <NAME> 2018-2019\n// https://github.com/masszhou/lidarviewer\n\n#ifndef LIDARVIEWER_CAMERA_H\n#define LIDARVIEWER_CAMERA_H\n\n#include <QVector3D>\n#include <QVector2D>\n#include <QQuaternion>\n#include <QMatrix4x4>\n#define PI 3.14159265359f\n\n/**\n * @brief The Camera class, right h...
878
37
{"language": "c", "success": true, "metadata": {"lines": 136, "avg_line_length": 35.42, "nodes": 520, "errors": 0, "source_hash": "b455b234988d2d713dad4fdbb082e5196afb2469788a1d045ac9fe86a2744ce3", "categorized_nodes": 347}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef LIDAR...
2,940
c
// Copyright (c) Microsoft Corporation // Licensed under the MIT license. See LICENSE file in the project root for full license information. #pragma once #pragma warning(disable: 4503) // C4503: decorated name length exceeded, name was truncated #pragma warning(disable: 4242) #ifdef _WIN32 // If you wish to build...
26.23
74
(translation_unit) "// Copyright (c) Microsoft Corporation\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n#pragma once\n\n#pragma warning(disable: 4503) // C4503: decorated name length exceeded, name was truncated \n#pragma warning(disable: 4242) \n\n#ifdef _W...
266
2
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 26.23, "nodes": 209, "errors": 0, "source_hash": "c544a8a701b04039d618c65325b83d30f95d3df64de7d946fef69f7b37eb4aaa", "categorized_nodes": 159}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
2,941
c
#ifndef IO_MIDI_DEFAULT_H_ #define IO_MIDI_DEFAULT_H_ #include <Arduino.h> #include "io_instrument.h" #include "io_state.h" #include "io_view.h" bool defaultNoteOnHandler(byte channel, byte note, byte velocity) { if (note == 16 || note == 40) { toggleGcMode(); return true; } else if (note == ...
24.78
32
(translation_unit) "#ifndef IO_MIDI_DEFAULT_H_\n#define IO_MIDI_DEFAULT_H_\n\n#include <Arduino.h>\n\n#include "io_instrument.h"\n#include "io_state.h"\n#include "io_view.h"\n\nbool defaultNoteOnHandler(byte channel, byte note, byte velocity) {\n if (note == 16 || note == 40) {\n toggleGcMode();\n retu...
239
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 24.78, "nodes": 130, "errors": 0, "source_hash": "21912948fdc6f2e2fba26b97edf212d7af70701e84f1bf33089cd5cf3ea975e8", "categorized_nodes": 96}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
2,942
c
#ifndef TIME_HEAP_H #define TIME_HEAP_H #include <iostream> #include <netinet/in.h> #include <time.h> #define BUFFER_SIZE 64 using std::exception; class heap_timer; struct client_data { sockaddr_in address; int sockfd; char buf[BUFFER_SIZE]; heap_timer *timer; }; class heap_timer { public: heap...
22.22
180
(translation_unit) "#ifndef TIME_HEAP_H\n#define TIME_HEAP_H\n\n#include <iostream>\n#include <netinet/in.h>\n#include <time.h>\n\n#define BUFFER_SIZE 64\n\nusing std::exception;\n\nclass heap_timer;\nstruct client_data {\n sockaddr_in address;\n int sockfd;\n char buf[BUFFER_SIZE];\n heap_timer *timer;\n};...
1,374
31
{"language": "c", "success": true, "metadata": {"lines": 180, "avg_line_length": 22.22, "nodes": 805, "errors": 0, "source_hash": "09458fb32ce1c78f651c2952a9ad44d83bcf8f6decf65c248c70186809c35642", "categorized_nodes": 544}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,943
c
/* * Copyright 2016 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
36.86
43
(translation_unit) "/*\n * Copyright 2016 Intel Corporation\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless requi...
326
19
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 36.86, "nodes": 191, "errors": 0, "source_hash": "31ed39a95d86dd3e4fa36680d41e164e8c42deec0f1b2c8fdee117030492ab6d", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,944
c
#include <stdio.h> #include <stdlib.h> #define RLE_ESCAPE 182 #define DEBUG void rawbyte(int data) { DEBUG(stderr,"- write: %d\n",data); putchar(data); } void databyte(int data) { if(data==RLE_ESCAPE) rawbyte(data); rawbyte(data); } int main() { int count=0,data,lastbyte=-1; for(;;) { dat...
16.91
67
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\n#define RLE_ESCAPE 182\n#define DEBUG\n\nvoid rawbyte(int data)\n{\n DEBUG(stderr,"- write: %d\n",data);\n\n putchar(data);\n}\n\nvoid databyte(int data)\n{\n if(data==RLE_ESCAPE) rawbyte(data);\n rawbyte(data);\n}\n\nint main()\n{\n int count=0,d...
380
0
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 16.91, "nodes": 209, "errors": 0, "source_hash": "8f8551308e78b9b90e52c8600db807e0d4c0544e2776f35e511bb0953341e6d2", "categorized_nodes": 152}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,945
c
/******************************************************************************* * Copyright @ Huawei Technologies Co., Ltd. 2017-2018. All rights reserved. ********************************************************************************/ #ifndef _AGENTCLI_CHGPWD_H_ #define _AGENTCLI_CHGPWD_H_ #include "common/Types....
35.89
108
(translation_unit) "/*******************************************************************************\n* Copyright @ Huawei Technologies Co., Ltd. 2017-2018. All rights reserved.\n********************************************************************************/\n\n#ifndef _AGENTCLI_CHGPWD_H_\n#define _AGENTCLI_CHGPWD_H_...
464
1
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 35.89, "nodes": 346, "errors": 0, "source_hash": "a73c651d7f2b52fe3a4d8d0c5968c3b62996da11b5db22ee9fe7a24837d9ad3a", "categorized_nodes": 195}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,946
c
#ifndef ENTITY_H #define ENTITY_H #include <string> #include "JsonBox.h" class EntityManager; class Entity { private: std::string id; public: Entity(std::string _id); virtual ~Entity(); std::string GetID(); virtual void Load(JsonBox::Value& v, EntityManager* manager) = 0; }; #endif
17
16
(translation_unit) "#ifndef ENTITY_H\n#define ENTITY_H\n\n#include <string>\n\n#include "JsonBox.h"\n\nclass EntityManager;\n\nclass Entity\n{\nprivate:\n std::string id;\n\npublic:\n Entity(std::string _id);\n virtual ~Entity();\n\n std::string GetID();\n\n virtual void Load(JsonBox::Value& v, EntityManager* manager) ...
108
7
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 17.0, "nodes": 66, "errors": 0, "source_hash": "612ee1f3846a0fce58ef7649806adb04e14c1b46b0f75c042271378e2770b3b5", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef E...
2,947
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @class NSBundle, UIImage; @interface QResourceReader : NSObject { NSBundle *_bundle; UIImage *_worldLogo; } + (id)instance; @property(retain) UIImage *worl...
25.3
30
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n@class NSBundle, UIImage;\n\n@interface QResourceReader : NSObject\n{\n NSBundle *_bundle;\n UIImage *_worldLogo;\n}\n\n+ (id)insta...
257
17
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 25.3, "nodes": 155, "errors": 0, "source_hash": "e6ff8f69adef98842d1b0c0ade4e9fb4fee0342b6a78b258fc3e4bc6d017b85b", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
2,948
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "SmartDeviceCellBase.h" @class UIImage, UIImageView, UILabel, UIView; @interface LuaSmartDeviceCellStruct : SmartDeviceCellBase { UIImage *_bgImageNormal; UIImage *_bgIm...
32.54
24
(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 "SmartDeviceCellBase.h"\n\n@class UIImage, UIImageView, UILabel, UIView;\n\n@interface LuaSmartDeviceCellStruct : SmartDeviceCellBase\n{\n UIImage *_b...
151
12
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 32.54, "nodes": 102, "errors": 0, "source_hash": "ca3314760b0bf987204d78d00b3beccd3d5c4b369048ac3413621d1c81eba500", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
2,949
c
#pragma once #include <Windows.h> #include <string> #include <set> #include <map> #include "KGAMEMATH.h" #include "KGAMEDEBUG.h" #include "KGameReference.h" #include "KGAMESTRING.h" class KGameWindow : public KGameReference { private: static LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);...
19.55
77
(translation_unit) "#pragma once\n#include <Windows.h>\n#include <string>\n#include <set>\n#include <map>\n#include "KGAMEMATH.h"\n#include "KGAMEDEBUG.h"\n#include "KGameReference.h"\n#include "KGAMESTRING.h"\n\nclass KGameWindow : public KGameReference\n{\nprivate:\n static LRESULT CALLBACK WndProc(HWND hWnd, UINT ms...
520
17
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 19.55, "nodes": 295, "errors": 0, "source_hash": "1bdb7a7a5be3aaf276e8327cad13b62db7d1fe18efe7903565e4c9870f4e4bcf", "categorized_nodes": 195}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
2,950
c
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a ...
31.08
136
(translation_unit) "// Tencent is pleased to support the open source community by making ncnn available. \n// \n// Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. \n// \n// Licensed under the BSD 3-Clause License (the "License"); you may not use this file except \n// in compliance with the L...
979
13
{"language": "c", "success": true, "metadata": {"lines": 136, "avg_line_length": 31.08, "nodes": 619, "errors": 0, "source_hash": "f94a8aa0bdf7b76562fbf20aedfd88184d2a0ffa415713f4b3564ee6cfaee62d", "categorized_nodes": 407}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": ...
2,951
c
#if 0 * for Microware OS-9 * This pilot patch was created from kernos9.car patch _kos9 * This directory was created from kernos9.car patch qmos9 * This directory was created from kernfor.car patch qmos9 * external names with underscore * IEEE floating point * Hollerith c...
24.74
47
(translation_unit) "#if 0\n* for Microware OS-9\n* This pilot patch was created from kernos9.car patch _kos9\n* This directory was created from kernos9.car patch qmos9\n* This directory was created from kernfor.car patch qmos9\n* external names with underscore\n* IEEE floating point\n* ...
249
11
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 24.74, "nodes": 207, "errors": 0, "source_hash": "da740b5d458757e6e543c3590cb198eebfa21a5bc9efce39e90a212f7bab61c9", "categorized_nodes": 150}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if 0\n* ...
2,952
c
//{{BLOCK(Soldat) //====================================================================== // // Soldat, 8x8@4, // + palette 256 entries, not compressed // + 1 tiles not compressed // Total size: 512 + 32 = 544 // // Time-stamp: 2019-01-09, 22:13:33 // Exported by Cearn's GBA Image Transmogrifier, v0.8.3 ...
24.22
27
(translation_unit) "//{{BLOCK(Soldat) \n \n//====================================================================== \n// \n// Soldat, 8x8@4, \n// + palette 256 entries, not compressed \n// + 1 tiles not compressed \n// Total size: 512 + 32 = 544 \n// \n// Time-stamp: 2019-01-09, 22:13:33 \n// Exported by Cearn's GBA I...
59
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 24.22, "nodes": 33, "errors": 0, "source_hash": "2781ef17d18f50660336e79d5f62cb70a133a3ee3c495db609b06b07e52863bd", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,953
c
#pragma once #include <glm/glm.hpp> #include "Pipeline/RasterPipeline.h" #include "Buffer/VertexArray.h" #include "Texture/Sampler.h" #include "GraphicsApi.h" #include "DrawCommand.h" #include "../Core/Windowing/Window.h" namespace Quanta::GraphicsDevice { void Create(const Window& window); void Destroy(); ...
33.76
21
(translation_unit) "#pragma once\n\n#include <glm/glm.hpp>\n\n#include "Pipeline/RasterPipeline.h"\n#include "Buffer/VertexArray.h"\n#include "Texture/Sampler.h"\n#include "GraphicsApi.h"\n#include "DrawCommand.h"\n#include "../Core/Windowing/Window.h"\n\nnamespace Quanta::GraphicsDevice\n{\n void Create(const Windo...
216
10
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 33.76, "nodes": 122, "errors": 0, "source_hash": "0f19b07c54fbe36c296568287b1370a9b6c3271a16621ee70486518fc2ee5f70", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
2,954
c
#import <UIKit/UIKit.h> #import <Cordova/CDVPlugin.h> @interface DeviceName : CDVPlugin {} - (NSString*)deviceProperties; - (void)getDeviceName:(CDVInvokedUrlCommand*)command; @end
24.86
7
(translation_unit) "#import <UIKit/UIKit.h>\n#import <Cordova/CDVPlugin.h>\n\n@interface DeviceName : CDVPlugin\n{}\n\n- (NSString*)deviceProperties;\n- (void)getDeviceName:(CDVInvokedUrlCommand*)command;\n\n@end\n" (preproc_call) "#import <UIKit/UIKit.h>\n" (preproc_directive) "#import" (preproc_arg) "<UIKit...
51
7
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 24.86, "nodes": 34, "errors": 0, "source_hash": "8f9ba77461fdd289129b2fc9123fe4044cda320c3c022fce29121bd319f4243b", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <U...
2,955
c
#pragma once #include "ButterEngine/Core/Core.h" #include "ButterEngine/Core/DataTypes.h" namespace Butter { class Transform { public: Transform(); virtual ~Transform() = default; Vector3 GetPosition(); Vector3 GetRotation(); Vector3 GetScale(); //void SetPosition(); //void SetRotation(); //void S...
18.86
22
(translation_unit) "#pragma once\n#include "ButterEngine/Core/Core.h"\n#include "ButterEngine/Core/DataTypes.h"\n\nnamespace Butter\n{\n class Transform\n {\n public:\n Transform();\n virtual ~Transform() = default;\n\n Vector3 GetPosition();\n Vector3 GetRotation();\n Vector3 GetScale();\n\n //void SetPosition()...
116
1
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 18.86, "nodes": 68, "errors": 0, "source_hash": "09aa91c85acbf30be3eef69236ef27e7bacfca50ff052ad42e27728384cc9c9c", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
2,956
c
// Copyright (c) 2011-2013 The Bitcoin developers // Copyright (c) 2013-2017 The Anoncoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef ACCOUNTSPAGE_H #define ACCOUNTSPAGE_H #include <QDialog> class O...
32.33
55
(translation_unit) "// Copyright (c) 2011-2013 The Bitcoin developers\n// Copyright (c) 2013-2017 The Anoncoin Core developers\n// Distributed under the MIT software license, see the accompanying\n// file COPYING or http://www.opensource.org/licenses/mit-license.php.\n\n#ifndef ACCOUNTSPAGE_H\n#define ACCOUNTSPAGE_H\n\...
291
13
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 32.33, "nodes": 168, "errors": 0, "source_hash": "a03ed1657863eb02de84ed81ad684859ed3fd957bd079509fb75471124cc4ef3", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,957
c
/* Deccan Game Engine - C11 2D SDL Game Engine. * Copyright 2020, 2021 <NAME> * * This software is licensed under MIT License. * See LICENSE.md included with this package for more info. */ #include "systems.h" //////////////////////////////////////////////////////////////////////////////// // Registrar /////////...
33.4
15
(translation_unit) "/* Deccan Game Engine - C11 2D SDL Game Engine.\n * Copyright 2020, 2021 <NAME>\n *\n * This software is licensed under MIT License.\n * See LICENSE.md included with this package for more info.\n */\n\n#include "systems.h"\n\n//////////////////////////////////////////////////////////////////////////...
44
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 33.4, "nodes": 19, "errors": 0, "source_hash": "ae90afa35c126c1f321343862313bae41c8fe40ca7bd8a37b3dd2147a5fb601a", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
2,958
c
/* * * Copyright 2017 Asylo authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
33.9
50
(translation_unit) "/*\n *\n * Copyright 2017 Asylo authors\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless requi...
167
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 33.9, "nodes": 115, "errors": 0, "source_hash": "1109d4f8bd6500bb2da9642ac20ad2004bc61a916092a6ad2813b3df35e0ae59", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,959
c
// Licensed under the BSD license. See LICENSE.txt for more details. #ifndef PHYSIS_RUNTIME_GRID_MPI_H_ #define PHYSIS_RUNTIME_GRID_MPI_H_ #include "runtime/runtime_common.h" #include "runtime/grid.h" #include "runtime/grid_util.h" #include <iostream> #include <sstream> namespace physis { namespace runtime { templ...
34.46
260
(translation_unit) "// Licensed under the BSD license. See LICENSE.txt for more details.\n\n#ifndef PHYSIS_RUNTIME_GRID_MPI_H_\n#define PHYSIS_RUNTIME_GRID_MPI_H_\n\n#include "runtime/runtime_common.h"\n#include "runtime/grid.h"\n#include "runtime/grid_util.h"\n\n#include <iostream>\n#include <sstream>\n\nnamespace phy...
1,538
74
{"language": "c", "success": true, "metadata": {"lines": 260, "avg_line_length": 34.46, "nodes": 869, "errors": 0, "source_hash": "80cf26c6b43e62152d2a976b33e829674631a5b5cad1ccbf3b2b07ca0818b062", "categorized_nodes": 630}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,960
c
#ifndef SCENE_13_ACTORS_H #define SCENE_13_ACTORS_H // Scene: Deeper Underground // Actors #include "gbs_types.h" BANKREF_EXTERN(scene_13_actors) extern const struct actor_t scene_13_actors[]; #endif
24
8
(translation_unit) "#ifndef SCENE_13_ACTORS_H\n#define SCENE_13_ACTORS_H\n\n// Scene: Deeper Underground\n// Actors\n\n#include "gbs_types.h"\n\nBANKREF_EXTERN(scene_13_actors)\nextern const struct actor_t scene_13_actors[];\n\n#endif\n" (preproc_ifdef) "#ifndef SCENE_13_ACTORS_H\n#define SCENE_13_ACTORS_H\n\n// Scen...
36
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 24.0, "nodes": 22, "errors": 0, "source_hash": "764681c0e33c745b9e8461e71f7f49966ce5a09aab65d5c66f4427fc451984ef", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef SC...
2,961
c
#pragma once #include "traits3d/types.h" #include "glb/glhelper.h" #include "traits3d/light.h" namespace traits3d { /** The class covers mouse/keyboard handling, lighting and basic transformations, like scaling, shifting and rotating objects. */ class TRAITS3D_EXPORT ExtGLWidget { public: ExtGLWidget(); virtu...
30.26
109
(translation_unit) "#pragma once\n\n#include "traits3d/types.h"\n#include "glb/glhelper.h"\n#include "traits3d/light.h"\n\nnamespace traits3d\n{\n/**\nThe class covers mouse/keyboard handling, lighting and basic transformations, like\nscaling, shifting and rotating objects.\n*/\nclass TRAITS3D_EXPORT ExtGLWidget\n{\npu...
721
32
{"language": "c", "success": true, "metadata": {"lines": 109, "avg_line_length": 30.26, "nodes": 415, "errors": 0, "source_hash": "02a523a89ceebdf45803e9c1efc7a62c5e36afb5d0deaf6d784723b58f92cb69", "categorized_nodes": 257}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
2,962
c
// qstrs specific to this port // *FORMAT-OFF* // Q(machine) // //Q(hello) // Q(hello_obj) // Q(machine_hello) // Q(machine_hello_obj) // Q(helloObj) // Q(mymodule_helloObj) //############################################################## // da_gpio.c Q(machine) Q(Pin) //constants Q(mode) Q(pull) Q(value) Q(OUT) Q(...
13.48
31
(translation_unit) "// qstrs specific to this port\n// *FORMAT-OFF*\n// Q(machine)\n// //Q(hello)\n// Q(hello_obj)\n// Q(machine_hello)\n// Q(machine_hello_obj)\n// Q(helloObj)\n// Q(mymodule_helloObj)\n\n//############################################################## \n// da_gpio.c\nQ(machine)\nQ(Pin)\n\n//constants\...
107
1
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 13.48, "nodes": 62, "errors": 0, "source_hash": "d9872417ff2e299a0d07e339de6864a7857c1112251093ae65081e8334c6c325", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "Q(machine)\nQ(Pi...
2,963
c
// // UIImage+KPTint.h // Demo // // Created by kunpeng on 16/7/6. // Copyright © 2016年 liukunpeng. All rights reserved. // #import <UIKit/UIKit.h> @interface UIImage (KPTint) - (UIImage*)imageWithTintColor:(UIColor*)tintColor; - (UIImage*)imageWithGradientTintColor:(UIColor *)tintColor; @end
23.83
12
(translation_unit) "//\n// UIImage+KPTint.h\n// Demo\n//\n// Created by kunpeng on 16/7/6.\n// Copyright © 2016年 liukunpeng. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIImage (KPTint)\n\n- (UIImage*)imageWithTintColor:(UIColor*)tintColor;\n- (UIImage*)imageWithGradientTintColor:(UIColor *)ti...
63
7
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 23.83, "nodes": 40, "errors": 0, "source_hash": "7769f4d4613cc6a1e47a90d9ab34b4e041d65c2a7b3d1b31e4a197f2dd5e75fe", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
2,964
c
// // AMGMember.h // mixit // // Created by <NAME> on 01/05/14. // Copyright (c) 2014-2018 Studio AMANgA. All rights reserved. // @import Foundation; @import CoreData; @interface AMGMember : NSManagedObject @property (nonatomic, strong) NSString *company; @property (nonatomic, strong) NSString *firstName; @prop...
29.9
21
(translation_unit) "//\n// AMGMember.h\n// mixit\n//\n// Created by <NAME> on 01/05/14.\n// Copyright (c) 2014-2018 Studio AMANgA. All rights reserved.\n//\n\n@import Foundation;\n@import CoreData;\n\n\n@interface AMGMember : NSManagedObject\n\n@property (nonatomic, strong) NSString *company;\n@property (nonatomic,...
182
40
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 29.9, "nodes": 132, "errors": 0, "source_hash": "016a968f4a4a69e1f87df68e93826f8072259f77043a1005f6eca440a3adeaa8", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nu...
2,965
c
#import <Availability2.h> #if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_3_2 #import <UIKit/UIView.h> @class UIBookViewController; __attribute__((visibility("hidden"))) @interface _UIBookViewControllerView : UIView { @private UIBookViewController* _bookViewController; } -(id)initWithBookViewController:(id)bookView...
31.14
14
(translation_unit) "#import <Availability2.h>\n\n#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_3_2\n\n#import <UIKit/UIView.h>\n@class UIBookViewController;\n\n__attribute__((visibility("hidden")))\n@interface _UIBookViewControllerView : UIView {\n@private\n UIBookViewController* _bookViewController;\n}\n-(id)initWit...
88
11
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 31.14, "nodes": 55, "errors": 0, "source_hash": "081c9a2565e5c3763134dd1778f70eead3342ac8efcb34518fb780dfa2fb946d", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
2,966
c
/** * DeepDetect * Copyright (c) 2014-2015 <NAME> * Author: <NAME> <<EMAIL>> * * This file is part of deepdetect. * * deepdetect is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3...
27.31
252
(translation_unit) "/**\n * DeepDetect\n * Copyright (c) 2014-2015 <NAME>\n * Author: <NAME> <<EMAIL>>\n *\n * This file is part of deepdetect.\n *\n * deepdetect is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software...
1,420
70
{"language": "c", "success": true, "metadata": {"lines": 252, "avg_line_length": 27.31, "nodes": 760, "errors": 0, "source_hash": "f2aee5ed6aed6587cec2346201a9b5090ff0a12b0b9b23c17c4ac006b927efce", "categorized_nodes": 521}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,967
c
void putc(char c) { char *tx = (char*)0xff000000; *tx = c; } void puts(char *s) { while (*s) putc(*s++); } void main(void) { puts("Hello World\n"); }
10.85
13
(translation_unit) "void putc(char c)\n{\n char *tx = (char*)0xff000000;\n *tx = c;\n}\n\nvoid puts(char *s)\n{\n while (*s) putc(*s++);\n}\n\nvoid main(void)\n{\n puts("Hello World\n");\n}\n" (function_definition) "void putc(char c)\n{\n char *tx = (char*)0xff000000;\n *tx = c;\n}" (primitive_type) "void" (f...
97
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 10.85, "nodes": 62, "errors": 0, "source_hash": "f98b65abba0ca17678bbc5e480215325a9f1464ee823d9f79c39dc29da17610c", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "vo...
2,968
c
/* * Copyright (c) 2014 liblcf authors * This file is released under the MIT License * http://opensource.org/licenses/MIT */ #ifndef LCF_READER_TYPES_H #define LCF_READER_TYPES_H #ifndef _MSC_VER #include <stdint.h> #else typedef unsigned char uint8_t; typedef signed short int16_t; typedef unsigned short uint...
22.53
17
(translation_unit) "/*\n * Copyright (c) 2014 liblcf authors\n * This file is released under the MIT License\n * http://opensource.org/licenses/MIT\n */\n\n#ifndef LCF_READER_TYPES_H\n#define LCF_READER_TYPES_H\n\n#ifndef _MSC_VER\n #include <stdint.h>\n#else\n typedef unsigned char uint8_t;\n typedef signed short int1...
53
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 22.53, "nodes": 46, "errors": 0, "source_hash": "43b376c3764eb52ed3c2da8b54471e2958cd661fe0869ed369997d68cf927d28", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,969
c
// // ProjectSquareViewController.h // Coding_iOS // // Created by jwill on 15/11/11. // Copyright © 2015年 Coding. All rights reserved. // #import "BaseViewController.h" #import "Project.h" @interface ProjectSquareViewController : BaseViewController @end
22.55
11
(translation_unit) "//\n// ProjectSquareViewController.h\n// Coding_iOS\n//\n// Created by jwill on 15/11/11.\n// Copyright © 2015年 Coding. All rights reserved.\n//\n\n#import "BaseViewController.h"\n#import "Project.h"\n\n@interface ProjectSquareViewController : BaseViewController\n\n@end\n" (comment) "//" (co...
22
3
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 22.55, "nodes": 13, "errors": 0, "source_hash": "a1f76e1818d0f4f041d137fd1bfa162562adc7c7bcb5612a4f79e4d49d704bb7", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"Bas...
2,970
c
#include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <semaphore.h> #include<time.h> #include <sys/mman.h> #define SEM_RMUTEX_NAME "/sem-Rmutex" #define SEM_WMUTEX_NAME "/sem-Wmutex" #define SEM_READTRY_NAME "/sem-Readtry" #define SEM_SPOOL...
33.22
103
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <sys/types.h>\n#include <sys/stat.h>\n#include <fcntl.h>\n#include <unistd.h>\n#include <semaphore.h>\n#include<time.h>\n#include <sys/mman.h>\n\n\n#define SEM_RMUTEX_NAME "/sem-Rmutex"\n#define SEM_WMUTEX_NAME "/sem-Wmutex"\n#define SEM_READTRY_NAME...
984
0
{"language": "c", "success": true, "metadata": {"lines": 103, "avg_line_length": 33.22, "nodes": 575, "errors": 0, "source_hash": "2727c4bdb030c1136ab7121e7e367bd718bcbf245587f76c306e709d2e35d048", "categorized_nodes": 415}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,971
c
/* FILE: oxs.h -*-Mode: c++-*- * * Standard macro definitions. * */ #ifndef OXS_H #define OXS_H #include "oc.h" /* End includes */ /* * NOTE: When version number information is changed here, it must * also be changed in the following files: * oommf/app/oxs/base/oxs.tcl */ #define OXS_MA...
27.12
24
(translation_unit) "/* FILE: oxs.h -*-Mode: c++-*-\n *\n * Standard macro definitions.\n *\n */\n\n#ifndef OXS_H\n#define OXS_H\n\n#include "oc.h"\n\n/* End includes */\n\n/*\n * NOTE: When version number information is changed here, it must\n * also be changed in the following files:\n * oommf/app/o...
44
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 27.12, "nodes": 34, "errors": 0, "source_hash": "082eef765dc6385cd8970a65cf2e6e4f18bad090cbb6f899083ed359f14d5619", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,972
c
#ifndef ALGORITHM_4_H #define ALGORITHM_4_H #include "bankopladeformat/bankopladeformat.h" /* Precalculated worst case. Actually 97 bits, which is unfortunately one bit above 12 bytes. */ #define NECESSARY_BYTES 13 static unsigned __int128 a4_arithmetic_encode ( const uint8_t *src, size_t src_len, size_t src_...
27.59
110
(translation_unit) "#ifndef ALGORITHM_4_H\n#define ALGORITHM_4_H\n\n#include "bankopladeformat/bankopladeformat.h"\n\n/* Precalculated worst case. Actually 97 bits, which is unfortunately one bit\n above 12 bytes. */\n#define NECESSARY_BYTES 13\n\nstatic unsigned __int128 a4_arithmetic_encode\n(\n const uint8_t *src...
840
0
{"language": "c", "success": true, "metadata": {"lines": 110, "avg_line_length": 27.59, "nodes": 529, "errors": 0, "source_hash": "c80ae4a38f16ca0315f6b296e5cc0dd3f6144dc25bad63ddc822bafea9dec364", "categorized_nodes": 375}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,973
c
/******************************************************************************* ** File: upstream_type.h ** Author: neevek <<EMAIL>>. ** Creation Time: 2018-11-27 Tue 09:52 AM ** Description: socks5 or http *******************************************************************************/ #ifndef PROXY...
33.75
16
(translation_unit) "/*******************************************************************************\n** File: upstream_type.h\n** Author: neevek <<EMAIL>>.\n** Creation Time: 2018-11-27 Tue 09:52 AM\n** Description: socks5 or http\n*********************************************************************...
36
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 33.75, "nodes": 19, "errors": 0, "source_hash": "a9d73f8db74b291164ad6bf65426d1b0319ece9d793915825a7a67158b3acdba", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,974
c
#pragma once #include <SFML/Graphics.hpp> class Tile { public: Tile(sf::Texture *tex, int x, int y); ~Tile(); bool isPassable(); void setPassable(bool pass); sf::Sprite getSprite(); void setSprite(sf::Sprite sprite); void setRenderPosition(int x, int y); private: bool passable; sf::Sprite sprite; };
18.38
16
(translation_unit) "#pragma once\n#include <SFML/Graphics.hpp>\nclass Tile\n{\npublic:\n Tile(sf::Texture *tex, int x, int y);\n ~Tile();\n\n bool isPassable();\n void setPassable(bool pass);\n\n sf::Sprite getSprite();\n void setSprite(sf::Sprite sprite);\n\n void setRenderPosition(int x, int y);\nprivate:\n bool pass...
128
6
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 18.38, "nodes": 80, "errors": 0, "source_hash": "1dcb84958c549eb01e58269f3624f5492440d88e697990fa667e895b02d11d41", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
2,975
c
#include "cpu.h" /** * Interrupt vector base address, defined by the linker */ extern const void *_isr_vectors; static inline void cortexm_init_isr_priorities(void) { /* initialize the interrupt priorities */ /* set pendSV interrupt to same priority as the rest */ NVIC_SetPriority(PendSV_IRQn, CPU_DEFAU...
33.11
37
(translation_unit) "#include "cpu.h"\n\n/**\n * Interrupt vector base address, defined by the linker\n */\nextern const void *_isr_vectors;\n\nstatic inline void cortexm_init_isr_priorities(void)\n{\n /* initialize the interrupt priorities */\n /* set pendSV interrupt to same priority as the rest */\n NVIC_Set...
194
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 33.11, "nodes": 112, "errors": 0, "source_hash": "1431d6afaabdfc29befd55316f69dfa5e8871e29e359241b6e899cdc7a6a959d", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
2,976
c
/* _ ____ _ _ ____ _ __ ___ (_) ___ _ __ ___ | __ )| | / \ / ___| | '_ ` _ \| |/ __| '__/ _ \ | _ \| | / _ \ \___ \ | | | | | | | (__| | | (_) | | |_) | |___ / ___ \ ___) | |_| |_| |_|_|\___|_| \___/ |____/|_____/_/ \_\____/ Author: <NAME> --------...
30.87
15
(translation_unit) "/*\n _ ____ _ _ ____ \n _ __ ___ (_) ___ _ __ ___ | __ )| | / \ / ___| \n | '_ ` _ \| |/ __| '__/ _ \ | _ \| | / _ \ \___ \ \n | | | | | | | (__| | | (_) | | |_) | |___ / ___ \ ___) |\n |_| |_| |_|_|\___|_| \___/ |____/|_____/_/ \_\____/ \n\...
48
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 30.87, "nodes": 28, "errors": 0, "source_hash": "ff8bf2e5779578819c502b1f911d9b6c51db366868443ee62abe114cb706bae6", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
2,977
c
/** * Copyright (C) Mellanox Technologies Ltd. 2021. ALL RIGHTS RESERVED. * * See file LICENSE for terms. */ #ifndef UCC_TL_NCCL_COLL_H_ #define UCC_TL_NCCL_COLL_H_ #include "tl_nccl.h" ucc_status_t ucc_tl_nccl_allgather_init(ucc_tl_nccl_task_t *task); ucc_status_t ucc_tl_nccl_allgatherv_init(ucc_tl_nccl_task_...
38.73
15
(translation_unit) "/**\n * Copyright (C) Mellanox Technologies Ltd. 2021. ALL RIGHTS RESERVED.\n *\n * See file LICENSE for terms.\n */\n\n#ifndef UCC_TL_NCCL_COLL_H_\n#define UCC_TL_NCCL_COLL_H_\n\n#include "tl_nccl.h"\n\nucc_status_t ucc_tl_nccl_allgather_init(ucc_tl_nccl_task_t *task);\n\nucc_status_t ucc_tl_nccl_...
93
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 38.73, "nodes": 70, "errors": 0, "source_hash": "9995198213480e49ae6d017048d016fd0c11b8619158b83727ba8e6a3606242e", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,978
c
#pragma once /* The MIT License (MIT) Copyright (c) 2015 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify,...
36.42
45
(translation_unit) "#pragma once\n\n/*\nThe MIT License (MIT)\n\nCopyright (c) 2015 <NAME>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the...
304
12
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 36.42, "nodes": 204, "errors": 0, "source_hash": "c3a587b567b348c03831d03013e63ac825cb184e2afef99d8fc9657dbdbcc5af", "categorized_nodes": 144}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
2,979
c
/***************************************************************************** * * Copyright (c) 2003-2020 by The University of Queensland * http://www.uq.edu.au * * Primary Business: Queensland, Australia * Licensed under the Apache License, version 2.0 * http://www.apache.org/licenses/LICENSE-2.0 * * Development unt...
31.95
61
(translation_unit) "/*****************************************************************************\n*\n* Copyright (c) 2003-2020 by The University of Queensland\n* http://www.uq.edu.au\n*\n* Primary Business: Queensland, Australia\n* Licensed under the Apache License, version 2.0\n* http://www.apache.org/licenses/LICEN...
253
13
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 31.95, "nodes": 195, "errors": 0, "source_hash": "dd5a2f8f252dc0a247f32b9e201184de19426950d307b67a7b125e2f79fa291e", "categorized_nodes": 122}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,980
c
#ifndef WINDOWSREDEF_H #define WINDOWSREDEF_H #include <fcntl.h> #define BUILD_FOR_LINUX 0 #if BUILD_FOR_LINUX #include <sys/types.h> #include <unistd.h> #include <sys/io.h> #define O_BINARY 0 #else #include <io.h> #endif #define _llseek lseek #define _lread read #define _lopen open #define _lwrite write #define _...
18.7
20
(translation_unit) "#ifndef WINDOWSREDEF_H\n#define WINDOWSREDEF_H\n\n#include <fcntl.h>\n\n#define BUILD_FOR_LINUX 0\n#if BUILD_FOR_LINUX\n#include <sys/types.h>\n#include <unistd.h>\n#include <sys/io.h>\n#define O_BINARY 0\n#else\n#include <io.h>\n#endif\n\n#define _llseek lseek\n#define _lread read\n#define _lopen ...
66
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 18.7, "nodes": 65, "errors": 0, "source_hash": "4eb3bdefe33f6b5a41311053518f22a3431681c54dbdfad3b673685ea4827bdc", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef W...
2,981
c
/*! * \brief Widget for the general settings. * * \copyright Copyright (c) 2014-2018 Governikus GmbH & Co. KG, Germany */ #pragma once #include "GlobalStatus.h" #include <QScopedPointer> #include <QWidget> namespace Ui { class GeneralSettingsWidget; } // namespace Ui namespace governikus { class GeneralSettin...
22.03
36
(translation_unit) "/*!\n * \brief Widget for the general settings.\n *\n * \copyright Copyright (c) 2014-2018 Governikus GmbH & Co. KG, Germany\n */\n\n#pragma once\n\n#include "GlobalStatus.h"\n\n#include <QScopedPointer>\n#include <QWidget>\n\nnamespace Ui\n{\nclass GeneralSettingsWidget;\n} // namespace Ui\n\nnames...
177
8
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 22.03, "nodes": 112, "errors": 0, "source_hash": "4c15763df1f9f90df622011273e8815b6e334002b22a786275e4d1939c38357d", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
2,982
c
#pragma once #include <SFML/Graphics.hpp> namespace lbe { class TextBox { private: sf::RectangleShape Background; sf::Text Text; sf::Font Font; public: TextBox(); TextBox(sf::Font &TextFont); ~TextBox(); void Draw(sf::RenderWindow &window); bool bIsPointInBounds(sf::Vector2f Point); void SetPosi...
20.78
27
(translation_unit) "#pragma once\n#include <SFML/Graphics.hpp>\n\nnamespace lbe\n{\n class TextBox\n {\n private:\n sf::RectangleShape Background;\n sf::Text Text;\n sf::Font Font;\n public:\n TextBox();\n TextBox(sf::Font &TextFont);\n ~TextBox();\n\n void Draw(sf::RenderWindow &window);\n bool bIsPointInBound...
227
14
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 20.78, "nodes": 131, "errors": 0, "source_hash": "4712aede9e84e54e5ce6827c4a46477b58af473192d69fe34789463e1cfcf415", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
2,983
c
#pragma once #include "Json/JsonParser.h" #include <memory> class Game; class Shape; namespace Parser { std::shared_ptr<Shape> getShapeObj(Game& game, const rapidjson::Value& elem); typedef decltype(&getShapeObj) getShapeObjFuncPtr; void parseShape(Game& game, const rapidjson::Value& elem, const getShapeObjFu...
29.85
13
(translation_unit) "#pragma once\n\n#include "Json/JsonParser.h"\n#include <memory>\n\nclass Game;\nclass Shape;\n\nnamespace Parser\n{\n std::shared_ptr<Shape> getShapeObj(Game& game, const rapidjson::Value& elem);\n\n typedef decltype(&getShapeObj) getShapeObjFuncPtr;\n\n void parseShape(Game& game, const rapidjson::...
125
7
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 29.85, "nodes": 71, "errors": 0, "source_hash": "538ae9c7aeba16bf22e97bd716d848182c9ad2d85e3cf7623021acfdadc34753", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
2,984
c
// Copyright 2018 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CROS_DISKS_SSHFS_HELPER_H_ #define CROS_DISKS_SSHFS_HELPER_H_ #include <memory> #include <string> #include <vector> #include "cros-disks/fuse...
36.9
29
(translation_unit) "// Copyright 2018 The Chromium OS Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef CROS_DISKS_SSHFS_HELPER_H_\n#define CROS_DISKS_SSHFS_HELPER_H_\n\n#include <memory>\n#include <string>\n#include <vecto...
199
10
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 36.9, "nodes": 117, "errors": 0, "source_hash": "95e83663e419932a3ea132bd26e588565c8a4848ee6d99236f4fc5cb6310767b", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,985
c
// // YWViewController.h // 雨掌柜 // // Created by double on 17/5/20. // Copyright © 2017年 Shanghai DuRui Information Technology Company. All rights reserved. // #import <UIKit/UIKit.h> #import "LimitChildModel.h" #import "ChildModel.h" @interface YWViewController : UIViewController @property (nonatomic,assign)NSInt...
30.47
15
(translation_unit) "//\n// YWViewController.h\n// 雨掌柜\n//\n// Created by double on 17/5/20.\n// Copyright © 2017年 Shanghai DuRui Information Technology Company. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "LimitChildModel.h"\n#import "ChildModel.h"\n@interface YWViewController : UIViewController\n@...
89
14
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 30.47, "nodes": 61, "errors": 0, "source_hash": "37451bde8b50feb5e91b2d13a65b40f644cd9a76587a293c0c7fbb9bdde67b75", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit/UIK...
2,986
c
#pragma once #include "liblfds711.h" typedef struct { void(*task)(void* user_data); void* user_data; } scd_task_; typedef struct { struct lfds711_freelist_element fe; scd_task_ task; } scd_task_fe_; typedef struct { struct lfds711_queue_bmm_element task_queue_buffer[16]; struct lfds711_queu...
28.59
22
(translation_unit) "#pragma once\n\n#include "liblfds711.h"\n\ntypedef struct\n{\n void(*task)(void* user_data);\n void* user_data;\n} scd_task_;\n\ntypedef struct\n{\n struct lfds711_freelist_element fe;\n scd_task_ task;\n} scd_task_fe_;\n\ntypedef struct\n{\n struct lfds711_queue_bmm_element task_queu...
170
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 28.59, "nodes": 122, "errors": 0, "source_hash": "348af3b54b32258fc22f7fc08022f6a0e8594a4a85201788e104ef75b73e43ad", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
2,987
c
// // UIImage+HC.h // LZNewsCarouselView // // Created by zhajianjun on 2017/10/31. // Copyright © 2017年 TTanys. All rights reserved. // #import <UIKit/UIKit.h> @interface UIImage (HC) /** * 根据颜色获取一个纯色UIImage * * @param color 颜色 * * @return 生成的纯色图片 */ + (UIImage *)imageWithColor:(UIColor *)color; @end
16.56
18
(translation_unit) "//\n// UIImage+HC.h\n// LZNewsCarouselView\n//\n// Created by zhajianjun on 2017/10/31.\n// Copyright © 2017年 TTanys. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIImage (HC)\n/**\n * 根据颜色获取一个纯色UIImage\n *\n * @param color 颜色\n *\n * @return 生成的纯色图片\n */\n+ (UIImage *)im...
44
6
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 16.56, "nodes": 27, "errors": 0, "source_hash": "5e1c1512201c0b7ca1541521af0e9258b0d058520288d45b3aed876101bac928", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
2,988
c
/* Memory types (MT) to scan in /proc/meminfo */ MT_ADD(MemTotal) MT_ADD(MemFree) MT_ADD(MemShared) MT_ADD(Slab) MT_ADD(Buffers) MT_ADD(Cached) MT_ADD(SwapTotal) MT_ADD(SwapFree)
18.89
9
(translation_unit) "/* Memory types (MT) to scan in /proc/meminfo */\nMT_ADD(MemTotal)\nMT_ADD(MemFree)\nMT_ADD(MemShared)\nMT_ADD(Slab)\nMT_ADD(Buffers)\nMT_ADD(Cached)\n\nMT_ADD(SwapTotal)\nMT_ADD(SwapFree)\n" (comment) "/* Memory types (MT) to scan in /proc/meminfo */" (ERROR) "MT_ADD(MemTotal)\nMT_ADD(MemFree)\...
52
1
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 18.89, "nodes": 34, "errors": 0, "source_hash": "5ccc102da972976f7322534e4cb029f2f481c96e1eff2343109b4584827b7669", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "MT_ADD(MemTotal)\...
2,989
c
#include <stdio.h> int main() { //For the int int ame; int *pointAme = &ame; *pointAme = 100; printf("%d is in %p\n", *pointAme, pointAme); //For the float float dupo; float *pointDupo = &dupo; *pointDupo = 3.1416; printf("%f is in %p\n", *pointDupo, pointDupo); return 0; }
19.43
14
(translation_unit) "#include <stdio.h>\n\nint main() {\n //For the int\n int ame;\n int *pointAme = &ame;\n *pointAme = 100;\n printf("%d is in %p\n", *pointAme, pointAme);\n\n //For the float\n float dupo;\n float *pointDupo = &dupo;\n *pointDupo = 3.1416;\n printf("%f is in %p\n", *pointDupo, pointDupo);\n return 0;\...
102
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 19.43, "nodes": 64, "errors": 0, "source_hash": "bb6f515abbd8c0c3a054e5793cdc34237c4244d40cab017a2394b680cb800439", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
2,990
c
/* * Copyright (C) [2020] Futurewei Technologies, Inc. All rights reverved. * * OpenArkFE is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS...
37.1
77
(translation_unit) "/*\n* Copyright (C) [2020] Futurewei Technologies, Inc. All rights reverved.\n*\n* OpenArkFE is licensed under the Mulan PSL v2.\n* You can use this software according to the terms and conditions of the Mulan PSL v2.\n* You may obtain a copy of Mulan PSL v2 at:\n*\n* http://license.coscl.org.cn/Mul...
278
8
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 37.1, "nodes": 168, "errors": 0, "source_hash": "9c39c9d059c0ea6c7ec2cfa190bd4331cb3737d7b64a5b29039f769aa7b6367c", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
2,991
c
#ifndef C_PROGRAMS_ARRAYLIST_TEST_H #define C_PROGRAMS_ARRAYLIST_TEST_H char *test_arraylist(); #endif // C_PROGRAMS_ARRAYLIST_TEST_H
32.5
4
(translation_unit) "#ifndef C_PROGRAMS_ARRAYLIST_TEST_H\n#define C_PROGRAMS_ARRAYLIST_TEST_H\n\nchar *test_arraylist();\n\n#endif // C_PROGRAMS_ARRAYLIST_TEST_H\n" (preproc_ifdef) "#ifndef C_PROGRAMS_ARRAYLIST_TEST_H\n#define C_PROGRAMS_ARRAYLIST_TEST_H\n\nchar *test_arraylist();\n\n#endif" (#ifndef) "#ifndef" ...
19
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 32.5, "nodes": 14, "errors": 0, "source_hash": "61a26c0d0648bc45626b7a2a80c8f1e969f54437a9799e9ac103892d9a0081ad", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef C_P...
2,992
c
#include <stdio.h> #include <stdbool.h> #include <stdlib.h> #include <string.h> #ifdef TEST_ELIMINATE // 100% of the score void eliminate(int n, int k) { // allocate an arry of n elements int * arr = malloc(sizeof(* arr) * n); // check whether memory allocation succeeds. // if allocation fails, sto...
21.86
49
(translation_unit) "#include <stdio.h> \n#include <stdbool.h> \n#include <stdlib.h> \n#include <string.h> \n \n#ifdef TEST_ELIMINATE \n// 100% of the score \nvoid eliminate(int n, int k) \n{ \n // allocate an arry of n elements \n int * arr = malloc(sizeof(* arr) * n); \n // check whether memory allocation succeeds....
261
0
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 21.86, "nodes": 154, "errors": 0, "source_hash": "f417c2f4026eeb87316c751acbe74a48093d6d0d639cd7dce9b1f4f7cd21ede2", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,993
c
#ifndef _VECTOR_4F_H_ #define _VECTOR_4F_H_ #include <iostream> struct Vector2f; struct Vector3f; struct Matrix4f; struct Quaternion; // 4D floating-point vector. struct Vector4f { float x, y, z, w; // Constants. static const Vector4f ZERO; // (0, 0, 0, 0) static const Vector4f ONE; // (1, 1, 1, 1) static ...
34.23
70
(translation_unit) "#ifndef _VECTOR_4F_H_\n#define _VECTOR_4F_H_\n\n#include <iostream>\n\nstruct Vector2f;\nstruct Vector3f;\nstruct Matrix4f;\nstruct Quaternion;\n\n\n// 4D floating-point vector.\nstruct Vector4f\n{\n float x, y, z, w;\n\n\n // Constants.\n static const Vector4f ZERO; // (0, 0, 0, 0)\n static const ...
711
55
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 34.23, "nodes": 381, "errors": 0, "source_hash": "0844b561438103c422ab27b0188bdf041f6133788d09ed7c2b277ee013e01ef3", "categorized_nodes": 268}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,994
c
/*============================================================================ CMake - Cross Platform Makefile Generator Copyright 2000-2009 Kitware, Inc., Insight Software Consortium Distributed under the OSI-approved BSD License (the "License"); see accompanying file Copyright.txt for details. This softwa...
40.65
79
(translation_unit) "/*============================================================================\n CMake - Cross Platform Makefile Generator\n Copyright 2000-2009 Kitware, Inc., Insight Software Consortium\n\n Distributed under the OSI-approved BSD License (the "License");\n see accompanying file Copyright.txt fo...
674
41
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 40.65, "nodes": 366, "errors": 0, "source_hash": "fbafef1b69e145903655ea182ab0d5881c3a0b70e903e5fafee6ba1475413e2a", "categorized_nodes": 257}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,995
c
#pragma once // This is the implementation class for the mediator. // All the actual "brains" of the mediator should be here, not in the cMediator #include "iMediator.h" #include "iShip.h" class cMediator_Imp : public iMediator { public: cMediator_Imp(); ~cMediator_Imp(); // ***********************************...
33.67
24
(translation_unit) "#pragma once\n\n// This is the implementation class for the mediator.\n// All the actual "brains" of the mediator should be here, not in the cMediator\n\n#include "iMediator.h"\n\n#include "iShip.h"\n\nclass cMediator_Imp :\n public iMediator\n{\npublic:\n cMediator_Imp();\n ~cMediator_Imp();\n\n //...
125
7
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 33.67, "nodes": 73, "errors": 0, "source_hash": "6c09880f8b27c9eaac44f47118dfa8ffa5d88ba0ef7907594bc2e027f9d83622", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
2,996
c
#define CRYPTO_BYTES 28 #define CRYPTO_VERSION "3.1.0"
26.5
2
(translation_unit) "#define CRYPTO_BYTES 28\n#define CRYPTO_VERSION "3.1.0"\n" (preproc_def) "#define CRYPTO_BYTES 28\n" (#define) "#define" (identifier) "CRYPTO_BYTES" (preproc_arg) "28" (preproc_def) "#define CRYPTO_VERSION "3.1.0"\n" (#define) "#define" (identifier) "CRYPTO_VERSION" (prep...
9
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 26.5, "nodes": 8, "errors": 0, "source_hash": "291e3bcdaab4ec140f4ace707f91ec01c139157f8225f0b20dac8ba9ff26c765", "categorized_nodes": 2}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define CRYPTO...
2,997
c
#ifndef __NOUVEAU_MC_H__ #define __NOUVEAU_MC_H__ #include <core/subdev.h> #include <core/device.h> struct nouveau_mc { struct nouveau_subdev base; bool use_msi; unsigned int irq; void (*unk260)(struct nouveau_mc *, u32); }; static inline struct nouveau_mc * nouveau_mc(void *obj) { return (void *)nv_device(obj)...
30.31
26
(translation_unit) "#ifndef __NOUVEAU_MC_H__\n#define __NOUVEAU_MC_H__\n\n#include <core/subdev.h>\n#include <core/device.h>\n\nstruct nouveau_mc {\n struct nouveau_subdev base;\n bool use_msi;\n unsigned int irq;\n void (*unk260)(struct nouveau_mc *, u32);\n};\n\nstatic inline struct nouveau_mc *\nnouveau_mc(void *obj...
205
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 30.31, "nodes": 165, "errors": 0, "source_hash": "0985005dc0064b7cd97f43dce95e5ba0f42a0404f93177ed5dc31ebb4c661ed8", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,998
c
// Copyright 2015-2021 Piperift - All rights reserved #pragma once #include "PCH.h" #include "Memory/OwnPtr.h" #include "Reflection/HasType.h" #include "Reflection/ReflectionTraits.h" #include "Reflection/Registry/TypeInstance.h" namespace Rift { namespace Refl { class StructType; class ClassType; class Enu...
24.84
104
(translation_unit) "// Copyright 2015-2021 Piperift - All rights reserved\n#pragma once\n\n#include "PCH.h"\n\n#include "Memory/OwnPtr.h"\n#include "Reflection/HasType.h"\n#include "Reflection/ReflectionTraits.h"\n#include "Reflection/Registry/TypeInstance.h"\n\n\nnamespace Rift\n{\n namespace Refl\n {\n class StructT...
828
26
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 24.84, "nodes": 528, "errors": 0, "source_hash": "af853e2afa909ebbec588421cf25adccfb4a45ca20e914e1e626de13a745958a", "categorized_nodes": 380}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
2,999