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 <stdint.h> #include <string.h> #include <stdbool.h> #include <stdio.h> #include "json_utils.h" #if 0 #define JSMN_MAX_TOKEN_COUNT 300 static jsmntok_t t[JSMN_MAX_TOKEN_COUNT]; static jsmn_parser jsmn; static char json_buf[128]; #endif /* * jsmn_convert_line_breaks() - convert the strings "\\n" into a "\n" ...
28.95
152
(translation_unit) "#include <stdint.h>\n#include <string.h>\n#include <stdbool.h>\n#include <stdio.h>\n\n#include "json_utils.h"\n\n#if 0\n#define JSMN_MAX_TOKEN_COUNT 300\nstatic jsmntok_t t[JSMN_MAX_TOKEN_COUNT];\nstatic jsmn_parser jsmn;\nstatic char json_buf[128];\n#endif\n\n/*\n * jsmn_convert_line_breaks() - con...
926
0
{"language": "c", "success": true, "metadata": {"lines": 152, "avg_line_length": 28.95, "nodes": 570, "errors": 0, "source_hash": "35114f88a1f4ae4efaf5ccf79b36fb4d1394e22bca04749202887a5b09b3c047", "categorized_nodes": 392}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,500
c
// // HorizontalScrollMenu.h // MenuTest // // Created by xinqing on 15/9/10. // Copyright (c) 2015年 Pansoft. All rights reserved. // #import <UIKit/UIKit.h> //@class StubObject; #import "StubObject.h" @class HorizontalScrollMenu; @protocol HorizontalScrollMenuDelegate <NSObject> @required -(void)menu:(Horizo...
29.53
43
(translation_unit) "//\n// HorizontalScrollMenu.h\n// MenuTest\n//\n// Created by xinqing on 15/9/10.\n// Copyright (c) 2015年 Pansoft. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n//@class StubObject;\n\n#import "StubObject.h"\n\n@class HorizontalScrollMenu;\n\n@protocol HorizontalScrollMenuDelegate <NSOb...
324
41
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 29.53, "nodes": 211, "errors": 0, "source_hash": "20efe1ac5eff3400b9de27a4a9d475ab2fc4e7a719ed5b6ba164443112dced54", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <...
4,501
c
#include <cstdint> #include <iostream> #include <libcec/cectypes.h> namespace HDMI { class physical_address { public: physical_address(uint16_t address=0) : address(address) {}; physical_address(int a, int b=0, int c=0, int d=0) : address((a & 15)<<12|(b & 15)<<8|(c & 15)<<...
35.94
33
(translation_unit) "#include <cstdint>\n#include <iostream>\n#include <libcec/cectypes.h>\n\nnamespace HDMI\n{\n class physical_address\n {\n public:\n\n physical_address(uint16_t address=0) : address(address) {};\n physical_address(int a, int b=0, int c=0, int d=0) :\n address((a ...
500
20
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 35.94, "nodes": 284, "errors": 0, "source_hash": "a491e7b16ac48bb8af7375851dd37a5ec3f5a9db9ae593fb06d9dc012d5149b1", "categorized_nodes": 216}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,502
c
#ifndef LAUNCH_H_ #define LAUNCH_H_ /* Stateful notification functions =============================== These functions are similar to the notify(3) API found in Darwin. Before using these functions, application developers should add the appropriate keys to their launchd job manifest. Example: { "Labe...
35.08
112
(translation_unit) "#ifndef LAUNCH_H_\n#define LAUNCH_H_\n\n/*\n Stateful notification functions\n ===============================\n\n These functions are similar to the notify(3) API found in Darwin.\n\n Before using these functions, application developers should add the\n appropriate keys to their launchd job ma...
228
1
{"language": "c", "success": true, "metadata": {"lines": 112, "avg_line_length": 35.08, "nodes": 160, "errors": 0, "source_hash": "49ebd9318c37a34d21c3bc6f6e87cda2468ef4022676a5a04661b600ad639c4c", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,503
c
#ifndef __CBUFFER_H # define __CBUFFER_H #ifdef __KERNEL__ # include <linux/types.h> #else # define u8 unsigned char # include <assert.h> #include <stdlib.h> #include <string.h> #endif // Custom types. #define bool int #define true 1 #define false 0 struct cbuffer { u8 *buffer; u8 *head; u8 *tail; s...
29.09
90
(translation_unit) "#ifndef __CBUFFER_H\n# define __CBUFFER_H\n#ifdef __KERNEL__\n# include <linux/types.h>\n#else\n# define u8 unsigned char\n# include <assert.h>\n#include <stdlib.h>\n#include <string.h>\n#endif\n\n// Custom types.\n#define bool int \n#define true 1 \n#define false 0\n\nstruct cbuffer {\n u8 *buff...
279
0
{"language": "c", "success": true, "metadata": {"lines": 90, "avg_line_length": 29.09, "nodes": 194, "errors": 0, "source_hash": "2ec06af29399fb2bfc2522cd4a210e16aff680589b8fead92ee1537bf39fe82a", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,504
c
// // Created by <NAME> on 20/04/2018. // #ifndef EXAMPLE_SNAKE_CPP_IMENURENDERER_H #define EXAMPLE_SNAKE_CPP_IMENURENDERER_H #include <vector> #include <Settings.h> #include <menu/Menu.h> #include <GameLogic.h> class IMenuRenderer { public: virtual void render(GameLogic *gameLogic) = 0; }; #endif //EXAMPLE_SNAK...
23.14
14
(translation_unit) "//\n// Created by <NAME> on 20/04/2018.\n//\n\n#ifndef EXAMPLE_SNAKE_CPP_IMENURENDERER_H\n#define EXAMPLE_SNAKE_CPP_IMENURENDERER_H\n\n#include <vector>\n#include <Settings.h>\n#include <menu/Menu.h>\n#include <GameLogic.h>\n\nclass IMenuRenderer {\n public:\n virtual void render(GameLogic *gameLog...
53
1
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 23.14, "nodes": 37, "errors": 0, "source_hash": "9f02fbe1315375a3c2d0c4b0abc99a47835491139adc4257bbe67573c14acccc", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,505
c
/*------------------------------------------------------------------------- * * option_parser.c * Parse user input into data structure in memory * * It gets user input from argc, argv, then parses each options or * parameters into internal data structures in memory, and allocates * memory...
28.13
184
(translation_unit) "/*-------------------------------------------------------------------------\n *\n * option_parser.c\n * Parse user input into data structure in memory\n *\n * It gets user input from argc, argv, then parses each options or\n * parameters into internal data structures in memory, and ...
1,284
0
{"language": "c", "success": true, "metadata": {"lines": 184, "avg_line_length": 28.13, "nodes": 731, "errors": 0, "source_hash": "4106c7e849deb5ff838a35e1990d762cc23dca50fc5b7f4c1bc8a56ccaebd498", "categorized_nodes": 478}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,506
c
//----------------------------------------------------------------------------- // Copyright (c) 2012 GarageGames, LLC // // 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 restrictio...
35.99
84
(translation_unit) "//-----------------------------------------------------------------------------\n// Copyright (c) 2012 GarageGames, LLC\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 So...
607
26
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 35.99, "nodes": 327, "errors": 0, "source_hash": "4b06dba99b8ba93da48c7e7507ef31259f598151617d76d29f2a05311a7c5c75", "categorized_nodes": 244}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,507
c
// SPDX-License-Identifier: BSD-3-Clause // Copyright Contributors to the OpenColorIO Project. #ifndef _OPENCOLORIO_AE_GL_H_ #define _OPENCOLORIO_AE_GL_H_ #include "AEConfig.h" #ifdef AE_OS_WIN #include <GL/glew.h> #include <GL/wglew.h> #elif defined(AE_OS_MAC) #include <OpenGL/OpenGL.h> #include <O...
25.41
27
(translation_unit) "// SPDX-License-Identifier: BSD-3-Clause\n// Copyright Contributors to the OpenColorIO Project.\n\n\n#ifndef _OPENCOLORIO_AE_GL_H_\n#define _OPENCOLORIO_AE_GL_H_\n\n#include "AEConfig.h"\n\n#ifdef AE_OS_WIN\n #include <GL/glew.h>\n #include <GL/wglew.h>\n#elif defined(AE_OS_MAC)\n #include ...
100
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 25.41, "nodes": 71, "errors": 0, "source_hash": "f161a4412590a7e3e09ede014a83786808997137b8ab40649eec0cea7841fd82", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,508
c
#ifndef UTIL_H #define UTIL_H #include <inttypes.h> #include <stdint.h> #include <stdio.h> #define u_int2str(i,b) snprintf(b, sizeof b, "%"PRId64, i) #define u_flt2str(f,b) snprintf(b, sizeof b, "%g", f) char *u_file2str(const char *); uint32_t u_strhash(const char *); int u_decval(int); int u_hexva...
31.47
17
(translation_unit) "#ifndef UTIL_H\n#define UTIL_H\n\n#include <inttypes.h>\n#include <stdint.h>\n#include <stdio.h>\n\n#define u_int2str(i,b) snprintf(b, sizeof b, "%"PRId64, i)\n#define u_flt2str(f,b) snprintf(b, sizeof b, "%g", f)\n\nchar *u_file2str(const char *);\nuint32_t u_strhash(const char *);\nint ...
184
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 31.47, "nodes": 133, "errors": 0, "source_hash": "7a516cf1047cdd9a2b5d27578260b92253dcef76264e27d16a8a0e577e61497c", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,509
c
#include <stdlib.h> // problem 1 - line 8 : heap block overrun // problem 2 - line 9 : memory leak -- x not freed void f( void ) { int *x = malloc( 10 * sizeof( int ) ); x[10] = 0; } int main( void ) { f(); return 0; }
16.77
13
(translation_unit) "#include <stdlib.h>\n\n// problem 1 - line 8 : heap block overrun\n// problem 2 - line 9 : memory leak -- x not freed\nvoid f( void )\n{\n int *x = malloc( 10 * sizeof( int ) );\n x[10] = 0; \n} \n\nint main( void )\n{\n f();\n return 0;\n}\n" (preproc_include) "#include <stdlib.h>\n" (#...
73
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 16.77, "nodes": 44, "errors": 0, "source_hash": "1cbea96f44684942e83fcd03faa6ab32e22001ce4b6f3a69dd27342942898af5", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
4,510
c
// // ABI32_0_0RNBranchEventEmitter.h // Pods // // Created by <NAME> on 4/6/17. // // Based on https://gist.github.com/andybangs/c4651a3916ebde0df1c977b220bbec4b #import <ReactABI32_0_0/ABI32_0_0RCTEventEmitter.h> #import <ReactABI32_0_0/ABI32_0_0RCTBridge.h> extern NSString * const ABI32_0_0RNBranchInitSessionS...
42.67
15
(translation_unit) "//\n// ABI32_0_0RNBranchEventEmitter.h\n// Pods\n//\n// Created by <NAME> on 4/6/17.\n//\n// Based on https://gist.github.com/andybangs/c4651a3916ebde0df1c977b220bbec4b\n\n#import <ReactABI32_0_0/ABI32_0_0RCTEventEmitter.h>\n#import <ReactABI32_0_0/ABI32_0_0RCTBridge.h>\n\nextern NSString * cons...
102
9
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 42.67, "nodes": 67, "errors": 0, "source_hash": "065f90194a1b3bcd78d0eb9086063ee6c71e8e510c7ae85f86ac857c724f4b8a", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
4,511
c
// // NSData+ImageType.h // TFY_Bannerscroll // // Created by 田风有 on 2021/1/31. // Copyright © 2021 田风有. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN typedef NS_ENUM(NSInteger, ImageFormat) { ImageFormatUndefined = -1, ImageFormatJPEG = 0, ImageFormatPNG, Imag...
21.91
34
(translation_unit) "//\n// NSData+ImageType.h\n// TFY_Bannerscroll\n//\n// Created by 田风有 on 2021/1/31.\n// Copyright © 2021 田风有. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\ntypedef NS_ENUM(NSInteger, ImageFormat) {\n ImageFormatUndefined = -1,\n ImageFormatJPEG...
130
13
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 21.91, "nodes": 83, "errors": 0, "source_hash": "09a51736405af2f247d02270e3f76cab5132c6206b19dbfae30c33f46be04780", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "dation/Fo...
4,512
c
/* Written by <NAME> <<EMAIL> at Gmail> */ /* Public domain */ #include "util.h" #include <sys/time.h> uvlong nsec(void) { struct timeval tv; gettimeofday(&tv, nil); return (uvlong)tv.tv_sec * 1000000000 + (uvlong)tv.tv_usec * 1000; }
22.8
10
(translation_unit) "/* Written by <NAME> <<EMAIL> at Gmail> */\n/* Public domain */\n#include "util.h"\n#include <sys/time.h>\n\nuvlong\nnsec(void) {\n struct timeval tv;\n\n gettimeofday(&tv, nil);\n return (uvlong)tv.tv_sec * 1000000000 + (uvlong)tv.tv_usec * 1000;\n}\n\n" (comment) "/* Written by <NAME> <<EMAIL> a...
71
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 22.8, "nodes": 45, "errors": 0, "source_hash": "ce30d467d82d96cf17452dbeb0c41c266547c51f26fadf43d5026cc8e65d9f4f", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
4,513
c
/* * Copyright (C) 2011 by <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, merge, publish, ...
34.9
67
(translation_unit) "/*\n * Copyright (C) 2011 by <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 deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy...
366
2
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 34.9, "nodes": 225, "errors": 0, "source_hash": "b7360c3ba0f5568d8fa105b8fa335cb5fbbe42a6f9d13d0f55ee930139359102", "categorized_nodes": 157}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
4,514
c
// Begin CVS Header // $Source: /fs/turing/cvs/copasi_dev/copasi/layoutUI/CQCurrentValueTable.h,v $ // $Revision: 1.9 $ // $Name: Build-33 $ // $Author: gauges $ // $Date: 2010/02/03 13:53:00 $ // End CVS Header // Copyright (C) 2008 by <NAME>, Virginia Tech Intellectual // Properties, Inc., EML Research, gG...
31.35
55
(translation_unit) "// Begin CVS Header\n// $Source: /fs/turing/cvs/copasi_dev/copasi/layoutUI/CQCurrentValueTable.h,v $\n// $Revision: 1.9 $\n// $Name: Build-33 $\n// $Author: gauges $\n// $Date: 2010/02/03 13:53:00 $\n// End CVS Header\n\n// Copyright (C) 2008 by <NAME>, Virginia Tech Intellectual\n// Prope...
364
13
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 31.35, "nodes": 230, "errors": 0, "source_hash": "487a2b7485db7f4c48afd509169ad6d3cb84cd46bea78588ece7baa7d0f582c5", "categorized_nodes": 153}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,515
c
// // Created by a6735 on 2020/8/2. // #ifndef LZUI_LZ_OBJ_H #define LZUI_LZ_OBJ_H #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <stdint.h> typedef enum { lui_true = 1, lui_false = 0, } lz_bool; typedef struct lz_point_t { int x; int y; } lz_point_t; typedef struct lz_size_t { uint16_t w...
27.58
65
(translation_unit) "//\n// Created by a6735 on 2020/8/2.\n//\n\n#ifndef LZUI_LZ_OBJ_H\n#define LZUI_LZ_OBJ_H\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <stdarg.h>\n#include <stdint.h>\n\ntypedef enum {\n lui_true = 1,\n lui_false = 0,\n} lz_bool;\n\ntypedef struct lz_point_t {\n int x;\n int y;\n} lz_point_t;...
572
0
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 27.58, "nodes": 430, "errors": 0, "source_hash": "3eaacdfcee3ffe701e5a9c6a6d4da2eade543abc74b36de7065a0284158fde4c", "categorized_nodes": 271}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,516
c
#ifndef mRMRe_Filter_h #define mRMRe_Filter_h #include <cmath> #include <limits> #ifdef _OPENMP #include <omp.h> #endif #include <vector> #include "MathExtensions.h" #include "Matrix.h" class Filter { private: Filter(const Filter&); Filter& operator=(const Filter&); int const* const mpChildrenCou...
31.43
51
(translation_unit) "#ifndef mRMRe_Filter_h\n#define mRMRe_Filter_h\n\n#include <cmath>\n#include <limits>\n\n#ifdef _OPENMP\n#include <omp.h>\n#endif\n\n#include <vector>\n\n#include "MathExtensions.h"\n#include "Matrix.h"\n\nclass Filter\n{\nprivate:\n Filter(const Filter&);\n\n Filter&\n operator=(const Filt...
393
12
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 31.43, "nodes": 236, "errors": 0, "source_hash": "1c19f80017ab92f335b9b80530c8aad5d4c18d3fbf6a6068e6089ba5b7ba6afb", "categorized_nodes": 142}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,517
c
// usermsg.h: Routines for displaying messages in a Windows environment // // Copyright (C) 2005-2013, <NAME> #ifndef STASM_USERMSG_H #define STASM_USERMSG_H namespace stasm { void CloseUserMsg(void); // remove popup message void TimedUserMsg(HWND hwnd, const char* format, ...); // popup msg for 3 seconds void User...
36.33
12
(translation_unit) "// usermsg.h: Routines for displaying messages in a Windows environment\n//\n// Copyright (C) 2005-2013, <NAME>\n\n#ifndef STASM_USERMSG_H\n#define STASM_USERMSG_H\n\nnamespace stasm\n{\nvoid CloseUserMsg(void); // remove popup message\n\nvoid TimedUserMsg(HWND hwnd, const char* format, ...); // pop...
76
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 36.33, "nodes": 43, "errors": 0, "source_hash": "505ed5ef489409cbaa77136a9aa2546b6b7547a8466d1c7bd74d34ee00be84f2", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,518
c
#pragma once #include "MemoryFileBuffer.h" extern "C" { #include <mupdf/fitz.h> } namespace Docapost { namespace IA { namespace Tesseract { class FzBufferMemoryFileBuffer : public MemoryFileBuffer { private: fz_buffer* mBuffer; fz_context* mContext; public: FzBufferMemoryFileBuffer(fz_conte...
20.05
22
(translation_unit) "#pragma once\n#include "MemoryFileBuffer.h"\n\nextern "C" {\n#include <mupdf/fitz.h>\n}\n\nnamespace Docapost {\n namespace IA {\n namespace Tesseract {\n class FzBufferMemoryFileBuffer : public MemoryFileBuffer\n {\n private:\n fz_buffer* mBuffer;\n fz_context* mContext;\n public:\n ...
118
3
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 20.05, "nodes": 71, "errors": 0, "source_hash": "c12e9dffc07815eb5a555184a5f91937c5f6d3a5717e5a24361f192a010dafa4", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
4,519
c
// apt install libc-dev -yqq // gcc go.c -o go -lpthread; ./go #include "pthread.h" // #include <tls.h> #include <stdio.h> int main() { pthread_t id; printf("pthread_t size: %lu bytes\n", sizeof(id)); id=pthread_self(); printf("thread id: %lu\n", id); }
22.82
11
(translation_unit) "// apt install libc-dev -yqq\n// gcc go.c -o go -lpthread; ./go\n\n#include "pthread.h"\n// #include <tls.h>\n#include <stdio.h>\n\nint main() {\n pthread_t id;\n printf("pthread_t size: %lu bytes\n", sizeof(id));\n id=pthread_self();\n printf("thread id: %lu\n", id);\n}\n\n" (comment) "// apt...
70
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 22.82, "nodes": 34, "errors": 0, "source_hash": "88eea7e2da421043d84d8a4f7992465832f8d92fe78e03107dacfce742ae2fb4", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
4,520
c
#import "LegacyComponents.h" @class TGUser; @class TGCallSession; @interface TGCallControllerWindow : TGOverlayControllerWindow @end @interface TGCallController : TGOverlayController @property (nonatomic, readonly) int64_t peerId; @property (nonatomic, readonly) TGUser *peer; @property (nonatomic, copy) void (^on...
39.94
18
(translation_unit) "#import "LegacyComponents.h"\n\n@class TGUser;\n@class TGCallSession;\n\n@interface TGCallControllerWindow : TGOverlayControllerWindow\n\n@end\n\n@interface TGCallController : TGOverlayController\n\n@property (nonatomic, readonly) int64_t peerId;\n@property (nonatomic, readonly) TGUser *peer;\n\n@pr...
251
29
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 39.94, "nodes": 161, "errors": 0, "source_hash": "63558a085c71f1227ac2c6eecbc98d6c32c3742e52d11cb095c2a82674f55534", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
4,521
c
/*************************************************************************** * Copyright (C) by <NAME> * * * * You can redistribute and/or modify this program under the * * terms of the...
34.43
229
(translation_unit) "/***************************************************************************\n * Copyright (C) by <NAME> *\n * *\n * You can redistribute and/or modify this program under the ...
1,207
58
{"language": "c", "success": true, "metadata": {"lines": 229, "avg_line_length": 34.43, "nodes": 660, "errors": 0, "source_hash": "6831b788a42f4d56ce5c02c1c4d333e2b4923981cf44c30d5f501d198abfd66f", "categorized_nodes": 428}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,522
c
#pragma once #include <atomic> #include <cstddef> namespace MetaNN { class InstanceID { public: InstanceID() = delete; static size_t Get() { return m_counter.fetch_add(1); } private: inline static std::atomic<size_t> m_counter = 0; }; }
17.18
17
(translation_unit) "#pragma once\n#include <atomic>\n#include <cstddef>\n\nnamespace MetaNN\n{\n class InstanceID\n {\n public:\n InstanceID() = delete;\n static size_t Get()\n {\n return m_counter.fetch_add(1);\n }\n private:\n inline static std::atomic<size_t>...
82
1
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 17.18, "nodes": 46, "errors": 0, "source_hash": "6a9697a5053edcbad66e136c29cfb6c66155a03c89f85a9f8ee58cf947f444b2", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
4,523
c
#ifndef CAMERAPLUGIN_H #define CAMERAPLUGIN_H #include <QObject> #include <opencv2/opencv.hpp> #include "plugins.h" #define LINUX_CAMERA_NODE "/dev/video" #define MILLA_CAMERA_FPS 20 class CameraPlugin : public QObject, public MillaGenericPlugin { Q_OBJECT Q_PLUGIN_METADATA(IID MILLA_PLUGIN_LID FILE "camplug...
32.79
34
(translation_unit) "#ifndef CAMERAPLUGIN_H\n#define CAMERAPLUGIN_H\n\n#include <QObject>\n#include <opencv2/opencv.hpp>\n#include "plugins.h"\n\n#define LINUX_CAMERA_NODE "/dev/video"\n#define MILLA_CAMERA_FPS 20\n\nclass CameraPlugin : public QObject, public MillaGenericPlugin\n{\n Q_OBJECT\n Q_PLUGIN_METADATA(I...
299
6
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 32.79, "nodes": 181, "errors": 0, "source_hash": "eca20591f7c7f76b2143cf8e857575058cfdd78a277cf7958b1af858decf5f57", "categorized_nodes": 118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,524
c
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright 2020 Arm Ltd. */ #ifndef _CCU_SUN50I_H616_H_ #define _CCU_SUN50I_H616_H_ #include <dt-bindings/clock/sun50i-h616-ccu.h> #include <dt-bindings/reset/sun50i-h616-ccu.h> #define CLK_OSC12M 0 #define CLK_PLL_CPUX 1 #define CLK_PLL_DDR0 2 #define CLK_PLL_DDR1 3 ...
26.95
42
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0 */\n/*\n * Copyright 2020 Arm Ltd.\n */\n\n#ifndef _CCU_SUN50I_H616_H_\n#define _CCU_SUN50I_H616_H_\n\n#include <dt-bindings/clock/sun50i-h616-ccu.h>\n#include <dt-bindings/reset/sun50i-h616-ccu.h>\n\n#define CLK_OSC12M 0\n#define CLK_PLL_CPUX 1\n#define CLK_PLL...
137
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 26.95, "nodes": 129, "errors": 0, "source_hash": "f94ba26f9b8caaf6b3a518322b44b92fd45a14b5ecbff2733dadc37c8d7602c3", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,525
c
//========================================================================= // Copyright (C) 2012 The Elastos Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // ...
35.04
184
(translation_unit) "//=========================================================================\n// Copyright (C) 2012 The Elastos Open Source Project\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of...
950
26
{"language": "c", "success": true, "metadata": {"lines": 184, "avg_line_length": 35.04, "nodes": 532, "errors": 0, "source_hash": "feb8f08a06aa2a0c688b6b1aead104f072816f298796e9437b376eb3069be28e", "categorized_nodes": 383}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,526
c
class CaptureScope : public Ope { public: CaptureScope(const std::shared_ptr<Ope> &ope) : ope_(ope) {} size_t parse_core(const char *s, size_t n, SemanticValues &vs, Context &c, std::any &dt) const override { c.push_capture_scope(); auto se = scope_exit([&]() { c.pop_capture_scope(); }...
35
51
(translation_unit) "class CaptureScope : public Ope {\npublic:\n CaptureScope(const std::shared_ptr<Ope> &ope) : ope_(ope) {}\n\n size_t parse_core(const char *s, size_t n, SemanticValues &vs, Context &c,\n std::any &dt) const override {\n c.push_capture_scope();\n auto se = scope_exit([&]() ...
779
53
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 35.0, "nodes": 440, "errors": 0, "source_hash": "dc7d3a134dcedcbc32308d01d39da12fecd25b525b8c0769d8521f99c7180e80", "categorized_nodes": 299}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "c...
4,527
c
/*5) Faça um programa para ler uma matriz 5x5, cujos elementos são do tipo inteiro. Em seguida, o programa deve possuir um menu com opções para cada uma das seguintes operações: (a) Mostrar todos os elementos da matriz (na forma de uma matriz LxC); (b) Mostrar todos os elementos da quarta linha da matriz e da primeira...
29.89
180
(translation_unit) "/*5) Faça um programa para ler uma matriz 5x5, cujos elementos são do tipo inteiro. Em seguida,\no programa deve possuir um menu com opções para cada uma das seguintes operações:\n(a) Mostrar todos os elementos da matriz (na forma de uma matriz LxC);\n(b) Mostrar todos os elementos da quarta linha d...
1,619
0
{"language": "c", "success": true, "metadata": {"lines": 180, "avg_line_length": 29.89, "nodes": 797, "errors": 0, "source_hash": "b3ef725c426197d8441d42acca30097c44544d9c5190fd24c40403ea33d21c19", "categorized_nodes": 546}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "io....
4,528
c
#pragma once #include "Bullet.h" class Bullet2D:public Bullet { protected: MultipleAnimation *m_bullet_object; virtual const Math::Vector3D &GetNowBulletPosition(); public: Bullet2D(int pierceful_count , float flying_distance , int power ); Bullet2D(); virtual ~Bullet2D(); virtual void Release(); virtual voi...
26.5
16
(translation_unit) "#pragma once\n\n#include "Bullet.h"\n\nclass Bullet2D:public Bullet\n{\nprotected:\n MultipleAnimation *m_bullet_object;\n\n virtual const Math::Vector3D &GetNowBulletPosition();\npublic:\n Bullet2D(int pierceful_count , float flying_distance , int power );\n Bullet2D();\n virtual ~Bullet2D();\n vir...
135
8
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 26.5, "nodes": 83, "errors": 0, "source_hash": "dd84f27d53ca2ccc8b4e4bde000a54132ab6ad4712c3df1811510b08cd39d2a3", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
4,529
c
/*************************************************************************** * __________ __ ___. * Open \______ \ ____ ____ | | _\_ |__ _______ ___ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / * Jukebox | | ( <_> ) \___| < | \_\ ( <_> ...
38.39
153
(translation_unit) "/***************************************************************************\n * __________ __ ___.\n * Open \______ \ ____ ____ | | _\_ |__ _______ ___\n * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /\n * Jukebox | | ( <_> ) ...
767
3
{"language": "c", "success": true, "metadata": {"lines": 153, "avg_line_length": 38.39, "nodes": 559, "errors": 0, "source_hash": "b0e61fda1bada90a50f1ffd1399d255b7075cbff1fe1618f11df6a297c5d2948", "categorized_nodes": 303}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,530
c
// // Downloader_iOS_WorkerThread.h // G3MiOSSDK // // Created by <NAME> on 31/07/12. // // #import <Foundation/Foundation.h> class Downloader_iOS; @interface Downloader_iOS_WorkerThread : NSThread { Downloader_iOS* _downloader; bool _stopping; NSLock* _lock; // synchronization helper ...
21.14
22
(translation_unit) "//\n// Downloader_iOS_WorkerThread.h\n// G3MiOSSDK\n//\n// Created by <NAME> on 31/07/12.\n//\n//\n\n#import <Foundation/Foundation.h>\n\nclass Downloader_iOS;\n\n@interface Downloader_iOS_WorkerThread : NSThread\n{\n Downloader_iOS* _downloader;\n bool _stopping;\n \n NSLock* ...
118
10
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 21.14, "nodes": 69, "errors": 0, "source_hash": "17cb9a6766ae6f9142977e0f4ab33f1ee94d7ed30e7caebfc3693895c70686cb", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
4,531
c
#ifndef FECONFLUTDAT_H #define FECONFLUTDAT_H #include <vector> #include <stdexcept> #include "OnlineDB/EcalCondDB/interface/IDataItem.h" #include "OnlineDB/EcalCondDB/interface/FEConfigLUTInfo.h" #include "OnlineDB/EcalCondDB/interface/EcalLogicID.h" class FEConfigLUTDat : public IDataItem { public: friend class...
37.22
27
(translation_unit) "#ifndef FECONFLUTDAT_H\n#define FECONFLUTDAT_H\n\n#include <vector>\n#include <stdexcept>\n\n#include "OnlineDB/EcalCondDB/interface/IDataItem.h"\n#include "OnlineDB/EcalCondDB/interface/FEConfigLUTInfo.h"\n#include "OnlineDB/EcalCondDB/interface/EcalLogicID.h"\n\nclass FEConfigLUTDat : public IData...
268
12
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 37.22, "nodes": 163, "errors": 0, "source_hash": "cb730c425380e36ca383760ffbd09b2a4a4d0825d5f829977470458ea6e89d8d", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,532
c
#include <time.h> #include <errno.h> #include <stdio.h> #include <stdarg.h> #include <string.h> #include "conf.h" #include "logger.h" FILE *log_open(const char *path) { FILE *fp; char *lvl; lvl = dconf_get_str("log.level", 0); /* * parse the debug level */ if (!strcasecmp(lv...
23.95
82
(translation_unit) "#include <time.h>\n#include <errno.h>\n#include <stdio.h>\n#include <stdarg.h>\n#include <string.h>\n#include "conf.h"\n#include "logger.h"\n\nFILE *log_open(const char *path) {\n FILE *fp;\n char *lvl;\n\n lvl = dconf_get_str("log.level", 0);\n\n /*\n * parse the debug ...
701
0
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 23.95, "nodes": 401, "errors": 0, "source_hash": "7e575b4f6c907bb33599ef51d026efec2d6101d33e7ef06028d87bfed9599e28", "categorized_nodes": 289}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,533
c
// pidc.h // Propotional Integral Differential Control. // // (c)2012-2017 <NAME> #ifndef PIDC_H #define PIDC_H #include "vmath.h" //! Scalar PID controller typedef struct { float P; float I; float D; float previousError; // Last error float integralError; // Historic error bool fresh; // If set, we have no '...
28.63
41
(translation_unit) "// pidc.h\n// Propotional Integral Differential Control.\n//\n// (c)2012-2017 <NAME>\n\n#ifndef PIDC_H\n#define PIDC_H\n\n#include "vmath.h"\n\n//! Scalar PID controller\ntypedef struct\n{\n float P;\n float I;\n float D;\n float previousError; // Last error\n float integralError; // Historic error\...
190
4
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 28.63, "nodes": 120, "errors": 0, "source_hash": "b118c5f006e42fbdd537b5ee7167aca3ce1ce5067e9311d6c1732d8b2732cf4c", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,534
c
/* * ==== DO NOT MODIFY THIS FILE - CHANGES WILL BE OVERWRITTEN ==== * * Generated from * C:/ti/grace_1_10_00_17/packages/ti/mcu/msp430/csl/watchdog/WDTplus_init.xdt */ #include <msp430.h> /* * ======== WDTplus_init ======== * Initialize MSP430 Watchdog Timer+ */ void WDTplus_init(void) { /* ...
25.2
30
(translation_unit) "/*\n * ==== DO NOT MODIFY THIS FILE - CHANGES WILL BE OVERWRITTEN ====\n *\n * Generated from\n * C:/ti/grace_1_10_00_17/packages/ti/mcu/msp430/csl/watchdog/WDTplus_init.xdt\n */\n\n#include <msp430.h>\n\n/*\n * ======== WDTplus_init ========\n * Initialize MSP430 Watchdog Timer+\n */\nvoid...
28
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 25.2, "nodes": 17, "errors": 0, "source_hash": "8c1f2aab3a98b513cd748b1036a0bff604a13cfb9bca24594f51079b9b8d9407", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
4,535
c
#include<stdio.h> int main() { int a,b,sum=0; printf("Enter two number:"); scanf("%d %d",&a,&b); sum=factorial(a)+factorial(b); printf("%d",sum); return 0; } int factorial( int x ) { if( x==0) { return 1; } else{ return x*factorial( x-1 ); } }
12.91
22
(translation_unit) "#include<stdio.h>\nint main()\n{\n int a,b,sum=0;\n printf("Enter two number:");\n scanf("%d %d",&a,&b);\n sum=factorial(a)+factorial(b);\n printf("%d",sum);\n\n\n\n return 0;\n}\n\n\nint factorial( int x )\n{\n if( x==0)\n {\n return 1;\n }\n else{\n retu...
140
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 12.91, "nodes": 76, "errors": 0, "source_hash": "e1b7e16189032b4aa19f19078b3527fbf7d059300e7a3adc7b3dd23ba09143eb", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
4,536
c
#ifndef __TESTBED_CONSOLE_H__ #define __TESTBED_CONSOLE_H__ #include "windows.h" #include "windef.h" #include "stdlib.h" #include "stdio.h" // sscanf_s, _snscanf_s #include "Ntsecapi.h" // UNICODE_STRING #include "resource.h" #include "Shlwapi.h" // PathFileExists #pragma comment(lib,"shlwapi.lib") // PathFileExists ...
31.85
85
(translation_unit) "#ifndef __TESTBED_CONSOLE_H__\n#define __TESTBED_CONSOLE_H__\n\n#include "windows.h"\n#include "windef.h"\n#include "stdlib.h"\n#include "stdio.h" // sscanf_s, _snscanf_s\n#include "Ntsecapi.h" // UNICODE_STRING\n#include "resource.h"\n#include "Shlwapi.h" // PathFileExists\n#pragma comment(lib,"shl...
507
15
{"language": "c", "success": true, "metadata": {"lines": 85, "avg_line_length": 31.85, "nodes": 322, "errors": 0, "source_hash": "dbe661e590336122f544ffc35dc773957112dbd43ad0bc78eba97401d91c0275", "categorized_nodes": 240}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,537
c
#define _GNU_SOURCE #include "pipe.h" #include <stdbool.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #include <complex.h> // Define values #define THREADS 4 #define STRINGSIZE 1024 // Type definitions for pipes typedef pipe_t* flow; typedef pipe_producer_t* output; typedef pipe_consumer_t* input; typ...
32.85
41
(translation_unit) "#define _GNU_SOURCE\n#include "pipe.h"\n#include <stdbool.h>\n#include <string.h>\n#include <stdlib.h>\n#include <stdio.h>\n#include <complex.h>\n\n// Define values\n#define THREADS 4\n#define STRINGSIZE 1024\n\n// Type definitions for pipes\ntypedef pipe_t* flow;\ntypedef pipe_producer_t* output;\n...
272
1
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 32.85, "nodes": 202, "errors": 0, "source_hash": "67972eafd1e2b595f275cc92c1d7cc918ab485a7c41462ea0a2bbeff4bce5215", "categorized_nodes": 109}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ...
4,538
c
#ifndef ALU_REF_H #define ALU_REF_H #ifdef __cplusplus extern "C" { #endif uint8_t flags_of_add8(uint8_t a, uint8_t b); uint8_t flags_of_sub8(uint8_t a, uint8_t b); uint8_t add8_set_carry(uint8_t a, uint8_t b); uint8_t sub8_set_carry(uint8_t a, uint8_t b); uint8_t flags_of_add8_with_c(uint8_t a, uint8_t b); uint8_t ...
23.35
17
(translation_unit) "#ifndef ALU_REF_H\n#define ALU_REF_H\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\nuint8_t flags_of_add8(uint8_t a, uint8_t b);\nuint8_t flags_of_sub8(uint8_t a, uint8_t b);\nuint8_t add8_set_carry(uint8_t a, uint8_t b);\nuint8_t sub8_set_carry(uint8_t a, uint8_t b);\n\nuint8_t flags_of_add8_with_c...
118
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 23.35, "nodes": 86, "errors": 0, "source_hash": "0bf648d55a9e748b001bba9ae2849c1f5ef7828b9e8a20be5c50cee8206c98cb", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,539
c
#ifndef PROCESSBAR_H #define PROCESSBAR_H #include <QDialog> namespace Ui { class processBar; } class processBar : public QDialog { Q_OBJECT public: explicit processBar(QWidget *parent = 0); ~processBar(); void setLabel(QString text); void setBarValue(int value); private: Ui::processBar *u...
18.06
18
(translation_unit) "#ifndef PROCESSBAR_H\n#define PROCESSBAR_H\n\n#include <QDialog>\n\nnamespace Ui {\nclass processBar;\n}\n\nclass processBar : public QDialog\n{\n Q_OBJECT\n\npublic:\n explicit processBar(QWidget *parent = 0);\n ~processBar();\n\n void setLabel(QString text);\n void setBarValue(int v...
101
4
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 18.06, "nodes": 63, "errors": 0, "source_hash": "46ee7cfea4c141dc14cd4ffd0e0ab3e9ee58975f76b2eae9f43cc7d084cb46f3", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,540
c
// Channel Silence Daemon // Thorn@ShadowGate // 960528 // /adm/daemon/silence_d // Removes access to speaking on channels from users // who are silenced. Good for breaking up those nasty // line fights. Interacts with the chat daemon. -- Thorn #include <std.h> string silence_user(string str); string unsilence_use...
35.84
43
(translation_unit) "// Channel Silence Daemon\n// Thorn@ShadowGate\n// 960528\n// /adm/daemon/silence_d\n\n// Removes access to speaking on channels from users\n// who are silenced. Good for breaking up those nasty\n// line fights. Interacts with the chat daemon. -- Thorn\n\n#include <std.h>\n\nstring silence_user(st...
381
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 35.84, "nodes": 211, "errors": 0, "source_hash": "24a95bbc96afe5287456df0ba1bc6f98a4d3387cc6b1f392133c77d2205f606d", "categorized_nodes": 161}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,541
c
#pragma once #include <iostream> #include <memory> #include "stratum_protocol.h" #include <libnet/worker.h> #include <libdevcore/logger.h> #include <libdevcore/expiring_dict.h> class Stratum : public StratumProtocol { typedef double difficulty_type; public: Stratum(std::shared_ptr<boost::asio::io_context> c...
29.97
29
(translation_unit) "#pragma once\n\n#include <iostream>\n#include <memory>\n\n#include "stratum_protocol.h"\n\n#include <libnet/worker.h>\n#include <libdevcore/logger.h>\n#include <libdevcore/expiring_dict.h>\n\nclass Stratum : public StratumProtocol\n{\n typedef double difficulty_type;\npublic:\n Stratum(std::sh...
247
16
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 29.97, "nodes": 143, "errors": 0, "source_hash": "8b27d2793c8b4e1a51154a2ef480462483f3c54b5b6808fc2b54ca35b810a576", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
4,542
c
// Copyright (c) 2012 The Chromium 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 CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_BASE_SCREEN_HANDLER_H_ #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_BASE_SCREEN_HANDLER_H_ #include ...
45.13
23
(translation_unit) "// Copyright (c) 2012 The Chromium 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 CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_BASE_SCREEN_HANDLER_H_\n#define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_BASE_SCR...
115
4
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 45.13, "nodes": 59, "errors": 0, "source_hash": "f6640cae7b266875ffcdc797a81377619a268948eb0b9fd26cd9d1cdca9c6091", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,543
c
#ifndef LIGHTNING_LIGHTNINGD_LIGHTNINGD_H #define LIGHTNING_LIGHTNINGD_LIGHTNINGD_H #include "config.h" #include <bitcoin/chainparams.h> #include <bitcoin/privkey.h> #include <ccan/container_of/container_of.h> #include <ccan/time/time.h> #include <ccan/timer/timer.h> #include <lightningd/htlc_end.h> #include <stdio.h> ...
31.95
130
(translation_unit) "#ifndef LIGHTNING_LIGHTNINGD_LIGHTNINGD_H\n#define LIGHTNING_LIGHTNINGD_LIGHTNINGD_H\n#include "config.h"\n#include <bitcoin/chainparams.h>\n#include <bitcoin/privkey.h>\n#include <ccan/container_of/container_of.h>\n#include <ccan/time/time.h>\n#include <ccan/timer/timer.h>\n#include <lightningd/htl...
470
0
{"language": "c", "success": true, "metadata": {"lines": 130, "avg_line_length": 31.95, "nodes": 328, "errors": 0, "source_hash": "637c42a8df1292a24711ae26cac07b270c7b1a053cdada0088cace903fdd355d", "categorized_nodes": 255}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,544
c
#ifndef GLOBAL2_H_ #define GLOBAL2_H_ #define GLOBAL2 #endif /* GLOBAL2_H_ */
18.5
4
(translation_unit) "#ifndef GLOBAL2_H_\n#define GLOBAL2_H_\n\n#define GLOBAL2\n\n#endif /* GLOBAL2_H_ */\n" (preproc_ifdef) "#ifndef GLOBAL2_H_\n#define GLOBAL2_H_\n\n#define GLOBAL2\n\n#endif" (#ifndef) "#ifndef" (identifier) "GLOBAL2_H_" (preproc_def) "#define GLOBAL2_H_\n" (#define) "#define" ...
12
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 18.5, "nodes": 10, "errors": 0, "source_hash": "eb01763f437f8e7d36a9ca60d3a99980b33451b5480ab20bf5cce55f54dd8371", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef GLO...
4,545
c
// // Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved // LICENSE: Atomic Game Engine Editor and Tools EULA // Please see LICENSE_ATOMIC_EDITOR_AND_TOOLS.md in repository root for // license information: https://github.com/AtomicGameEngine/AtomicGameEngine // #pragma once #include <Atomic/Core/Obje...
36.34
61
(translation_unit) "//\n// Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved\n// LICENSE: Atomic Game Engine Editor and Tools EULA\n// Please see LICENSE_ATOMIC_EDITOR_AND_TOOLS.md in repository root for\n// license information: https://github.com/AtomicGameEngine/AtomicGameEngine\n//\n\n#pragma once\...
488
26
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 36.34, "nodes": 293, "errors": 0, "source_hash": "06621567b2e013f780fb21d5492d87c722070870e8c5668f460e1637274d6c70", "categorized_nodes": 205}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
4,546
c
#pragma once #include <vector> using namespace std; class Animation { public: float speed; vector<SDL_Rect> frames; public: float current_frame; public: Animation() : frames(), speed(0.0f), current_frame(0.0f) {} SDL_Rect& GetCurrentFrame() { current_frame += speed; if(current_frame >= frames.size()) ...
18.59
32
(translation_unit) "#pragma once\n#include <vector>\n\nusing namespace std;\n\nclass Animation\n{\npublic:\n float speed;\n vector<SDL_Rect> frames;\n\npublic:\n float current_frame;\n\npublic:\n Animation() : frames(), speed(0.0f), current_frame(0.0f)\n {}\n\n SDL_Rect& GetCurrentFrame()\n {\n current_frame += speed;...
215
2
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 18.59, "nodes": 121, "errors": 0, "source_hash": "1c4e83c1ebad29d774b164db1013a6f5f0783247de87af1488723743962b8ac8", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
4,547
c
/***************************************************************************** * * Copyright (c) 2003-2018 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...
34.41
54
(translation_unit) "/*****************************************************************************\n*\n* Copyright (c) 2003-2018 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...
204
4
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 34.41, "nodes": 145, "errors": 0, "source_hash": "404abacd0cf5ff6455a47d2a609ebb87661b48d35bda3d0fa6f7b09b1452780b", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,548
c
// Copyright 2020 The Chromium 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 COMPONENTS_FEDERATED_LEARNING_FLOC_ID_H_ #define COMPONENTS_FEDERATED_LEARNING_FLOC_ID_H_ #include "base/optional.h" #include <stdint.h> #inclu...
33.12
32
(translation_unit) "// Copyright 2020 The Chromium 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 COMPONENTS_FEDERATED_LEARNING_FLOC_ID_H_\n#define COMPONENTS_FEDERATED_LEARNING_FLOC_ID_H_\n\n#include "base/optional.h"\n...
201
6
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 33.12, "nodes": 109, "errors": 0, "source_hash": "964666086b1c7d4237dcdf3084e0094440f2f180a8ec294ef1802109d4cee15a", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,549
c
// // RPContact.h // Divvy // // Created by <NAME> on 7/22/13. // Copyright (c) 2013 OpenCoin Inc. All rights reserved. // #import <Foundation/Foundation.h> @interface RPContact : NSObject @property (strong, nonatomic) NSString * address; @property (strong, nonatomic) NSString * name; @end
23.58
12
(translation_unit) "//\n// RPContact.h\n// Divvy\n//\n// Created by <NAME> on 7/22/13.\n// Copyright (c) 2013 OpenCoin Inc. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface RPContact : NSObject\n\n@property (strong, nonatomic) NSString * address;\n@property (strong, nonatomic) NSString * ...
55
10
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 23.58, "nodes": 37, "errors": 0, "source_hash": "6a3d32963bd1523c39ad928bf579d6ec74a3f3903b92588c0d3a6fd3b510f96a", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
4,550
c
/* This file is Copyright University of Edinburgh 2018. For license details, see LICENSE. */ /* * File: SSAPass.h * Author: harry * * Created on 18 April 2017, 12:46 */ #ifndef SSAPASS_H #define SSAPASS_H #include "ComponentManager.h" #include <vector> namespace gensim { namespace genc { namespace ssa ...
20.73
64
(translation_unit) "/* This file is Copyright University of Edinburgh 2018. For license details, see LICENSE. */\n\n/*\n * File: SSAPass.h\n * Author: harry\n *\n * Created on 18 April 2017, 12:46\n */\n\n#ifndef SSAPASS_H\n#define SSAPASS_H\n\n#include "ComponentManager.h"\n\n#include <vector>\n\nnamespace gensim\n{...
373
16
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 20.73, "nodes": 212, "errors": 0, "source_hash": "dd202473d51b218b15061c3db0d7457fb3752a20788b6c2b5b53fb7b56789231", "categorized_nodes": 146}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,551
c
/* * @(#)transport_common.h generated by: makeheader Mon Dec 3 23:08:03 2007 * * built from: common.ifc */ #ifndef transport_common_h #define transport_common_h #ifndef osapi_type_h #include "osapi/osapi_type.h" #endif #ifndef reda_buffer_h #include "reda/reda_buffer.h" #endif #ifndef transport_dll_h #...
24.62
71
(translation_unit) "/*\n * @(#)transport_common.h generated by: makeheader Mon Dec 3 23:08:03 2007\n *\n * built from: common.ifc\n */\n\n#ifndef transport_common_h\n#define transport_common_h\n\n\n#ifndef osapi_type_h\n#include "osapi/osapi_type.h"\n#endif\n\n#ifndef reda_buffer_h\n#include "reda/reda_buffer.h...
172
1
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 24.62, "nodes": 119, "errors": 0, "source_hash": "d4a962127c99475a9a9672671b2f79e5dd8c3dec3d91d48a8d6aec3bf9fa245b", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,552
c
// // LGBNavigationBar.h // LGBNaviBar // // Created by <NAME> on 2018/11/23. //Copyright © 2018 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface LGBNavigationBar : UINavigationBar <UINavigationBarDelegate> @property (nonatomic, strong) UINavigationItem *navigationItem; -(instancetype)initWithVi...
33.92
13
(translation_unit) "//\n// LGBNavigationBar.h\n// LGBNaviBar\n//\n// Created by <NAME> on 2018/11/23.\n//Copyright © 2018 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface LGBNavigationBar : UINavigationBar <UINavigationBarDelegate>\n@property (nonatomic, strong) UINavigationItem *navigationI...
76
9
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 33.92, "nodes": 45, "errors": 0, "source_hash": "a93304b87d0ba7e5b817d6b80a3e865abc6160b53eecb8b821ccb1c9abcde666", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
4,553
c
#pragma once //#include <game_math.h> #include "iPhysicsComponent.h" namespace nPhysics { struct sPlaneDef { float Constant; float Mass; glm::vec3 Normal; glm::vec3 Position; glm::vec3 Rotation; float Angle; glm::vec3 Scale; }; class iPlaneComponent : public iPhysicsComponent { public: virtual ~i...
22.14
28
(translation_unit) "#pragma once\n//#include <game_math.h>\n#include "iPhysicsComponent.h"\n\nnamespace nPhysics\n{\n struct sPlaneDef\n {\n float Constant;\n float Mass;\n glm::vec3 Normal;\n glm::vec3 Position;\n glm::vec3 Rotation;\n float Angle;\n glm::vec3 Scale;\n };\n class iPlaneComponent : public iPhysi...
179
13
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 22.14, "nodes": 101, "errors": 0, "source_hash": "fc6c9f7160cbec526129fce43a8b79dc8335557aafb2e57481d454394ca917fd", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
4,554
c
/* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2003-2010 <NAME> <<EMAIL>> * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License,...
30.86
98
(translation_unit) "/*\n *\n * BlueZ - Bluetooth protocol stack for Linux\n *\n * Copyright (C) 2003-2010 <NAME> <<EMAIL>>\n *\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; eit...
466
0
{"language": "c", "success": true, "metadata": {"lines": 98, "avg_line_length": 30.86, "nodes": 373, "errors": 0, "source_hash": "9b00cbeab9ab926d533cf6a77da7f82c14818a9502990acaa4dcbcf209702bab", "categorized_nodes": 191}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,555
c
// // LHBVoicePlayBtn.h // RideGirl // // Created by LHB on 16/7/8. // Copyright © 2016年 LHB. All rights reserved. // #import <UIKit/UIKit.h> @class LHBWordModel; @interface LHBVoicePlayBtn : UIButton @property(nonatomic,strong)LHBWordModel *wordModel; @end
20.83
12
(translation_unit) "//\n// LHBVoicePlayBtn.h\n// RideGirl\n//\n// Created by LHB on 16/7/8.\n// Copyright © 2016年 LHB. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@class LHBWordModel;\n\n@interface LHBVoicePlayBtn : UIButton\n\n@property(nonatomic,strong)LHBWordModel *wordModel;\n\n@end\n" (comment) "/...
42
8
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 20.83, "nodes": 28, "errors": 0, "source_hash": "371aa13cf5e11dd108c24fe2b4d69cbdd8c85d380496cc6079de10b08d473b8c", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
4,556
c
#include <stdio.h> #include <string.h> #include "infra_types.h" #include "infra_defs.h" #include "infra_compat.h" #include "dynamic_activate_api.h" #include "wrappers.h" char g_product_key[IOTX_PRODUCT_KEY_LEN + 1] = "<KEY>"; char g_product_secret[IOTX_PRODUCT_SECRET_LEN + 1] = "<KEY>"; char g_device_name[IOTX_D...
36.46
35
(translation_unit) "#include <stdio.h>\n#include <string.h>\n#include "infra_types.h"\n#include "infra_defs.h"\n#include "infra_compat.h"\n#include "dynamic_activate_api.h"\n#include "wrappers.h"\n\nchar g_product_key[IOTX_PRODUCT_KEY_LEN + 1] = "<KEY>";\nchar g_product_secret[IOTX_PRODUCT_SECRET_LEN + 1] = "<KEY...
358
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 36.46, "nodes": 210, "errors": 0, "source_hash": "ba44438f93365d9526c27589d641508068993f6064ec84bed749099abfd57da4", "categorized_nodes": 143}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,557
c
/*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (C) 2019 <NAME> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notic...
26.98
126
(translation_unit) "/*-\n * SPDX-License-Identifier: BSD-2-Clause-FreeBSD\n *\n * Copyright (C) 2019 <NAME>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the...
743
0
{"language": "c", "success": true, "metadata": {"lines": 126, "avg_line_length": 26.98, "nodes": 412, "errors": 0, "source_hash": "78c08b543151291b366fc5b966106a01a702e54ea57d25cb95fe74fcba20fffc", "categorized_nodes": 319}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,558
c
/** * @file llphysicsshapebuilder.h * @brief Generic system to convert LL(Physics)VolumeParams to physics shapes * * $LicenseInfo:firstyear=2001&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2010, Linden Research, Inc. * * This library is free software; you can redistribute it and/or *...
37
110
(translation_unit) "/** \n * @file llphysicsshapebuilder.h\n * @brief Generic system to convert LL(Physics)VolumeParams to physics shapes\n *\n * $LicenseInfo:firstyear=2001&license=viewerlgpl$\n * Second Life Viewer Source Code\n * Copyright (C) 2010, Linden Research, Inc.\n * \n * This library is free software; you c...
592
25
{"language": "c", "success": true, "metadata": {"lines": 110, "avg_line_length": 37.0, "nodes": 333, "errors": 0, "source_hash": "61728eb3d8d6372a3a96045d64396b11274213d64447d8bf1c3244bf79dc49e4", "categorized_nodes": 227}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,559
c
/* * Copyright 2002-2011, The TenDRA Project. * Copyright 1997, United Kingdom Secretary of State for Defence. * * See doc/copyright/ for the full copyright terms. */ #ifndef TDF_INCLUDED #define TDF_INCLUDED /* AUTOMATICALLY GENERATED BY make_tdf VERSION 2.0 FROM TDF 4.1 */ extern long de_access(void); extern...
29.52
215
(translation_unit) "/*\n * Copyright 2002-2011, The TenDRA Project.\n * Copyright 1997, United Kingdom Secretary of State for Defence.\n *\n * See doc/copyright/ for the full copyright terms.\n */\n\n#ifndef TDF_INCLUDED\n#define TDF_INCLUDED\n\n\n/* AUTOMATICALLY GENERATED BY make_tdf VERSION 2.0 FROM TDF 4.1 */\n\nex...
1,502
0
{"language": "c", "success": true, "metadata": {"lines": 215, "avg_line_length": 29.52, "nodes": 1273, "errors": 0, "source_hash": "912c53dfbc12cee52b71cd861a83ff372893be404afcbe442d108a50b198fe34", "categorized_nodes": 587}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
4,560
c
/*! \ingroup PkgTSMAConcepts \cgalConcept The concept `ErrorMetricProxy` defines the notion of proxy, computes the fitting error from a face to a proxy, and fits a proxy from a range of faces. \cgalHasModel `CGAL::Surface_mesh_approximation::L21_metric_plane_proxy` \cgalHasModel `CGAL::Surface_mesh_approximation::L2_...
37.38
32
(translation_unit) "/*!\n\ingroup PkgTSMAConcepts\n\cgalConcept\n\nThe concept `ErrorMetricProxy` defines the notion of proxy,\ncomputes the fitting error from a face to a proxy,\nand fits a proxy from a range of faces.\n\n\cgalHasModel `CGAL::Surface_mesh_approximation::L21_metric_plane_proxy`\n\cgalHasModel `CGAL::Su...
112
8
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 37.38, "nodes": 54, "errors": 0, "source_hash": "07a9122fa59ee793feff04dff3a34345ab1ab3de44dcdf19666df9f86d4e6b50", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "cl...
4,561
c
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ /* Dataquay A C++/Qt library for simple RDF datastore management. Copyright 2009-2012 <NAME>. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation...
38.08
186
(translation_unit) "/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */\n\n/*\n Dataquay\n\n A C++/Qt library for simple RDF datastore management.\n Copyright 2009-2012 <NAME>.\n \n Permission is hereby granted, free of charge, to any person\n obtaining a copy of this software...
1,771
44
{"language": "c", "success": true, "metadata": {"lines": 186, "avg_line_length": 38.08, "nodes": 1017, "errors": 0, "source_hash": "0eafad11633c79b27576d86f82f7b2d93e650628bfb6263a1c24aec59628dcdc", "categorized_nodes": 762}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
4,562
c
#ifndef _RENDER_WINDOW_H_ #define _RENDER_WINDOW_H_ #include "Maths.h" enum class Key : unsigned int { F1 = 0, F2, F3, F4, F5, Count, }; class CRenderWindow { public: CRenderWindow(int width, int height) : m_width(width), m_height(height){} int GetWidth() const { return m_width;} int Getheight() c...
19.93
30
(translation_unit) "#ifndef _RENDER_WINDOW_H_\n#define _RENDER_WINDOW_H_\n\n#include "Maths.h"\n\nenum class Key : unsigned int\n{\n F1 = 0,\n F2,\n F3,\n F4,\n F5,\n\n Count,\n};\n\nclass CRenderWindow\n{\npublic:\n CRenderWindow(int width, int height)\n : m_width(width), m_height(height){}\n\n int GetWidth() cons...
224
11
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 19.93, "nodes": 146, "errors": 0, "source_hash": "d01c294b604b2f87af738f83975a4dc7e4f75c7c850be20eb4975c1107513184", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,563
c
#pragma once #include <iostream> #include <string> #include <experimental/filesystem> #ifndef TNL_MESH_TESTS_DATA_DIR #error "The TNL_MESH_TESTS_DATA_DIR macro is not defined." #endif template< typename MeshType, typename ReaderType > MeshType loadMeshFromFile( std::string relative_path ) { namespace fs = std:...
32.83
18
(translation_unit) "#pragma once\n\n#include <iostream>\n#include <string>\n#include <experimental/filesystem>\n\n#ifndef TNL_MESH_TESTS_DATA_DIR\n #error "The TNL_MESH_TESTS_DATA_DIR macro is not defined."\n#endif\n\ntemplate< typename MeshType, typename ReaderType >\nMeshType loadMeshFromFile( std::string relative_...
147
8
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 32.83, "nodes": 100, "errors": 0, "source_hash": "82c98691c4baee4a3bf889feaddfe5ae026711ed61635addbde234019a8b77f1", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
4,564
c
///////////////////////////////////////////////////////////////////////////////// // TgcViewer-cpp // // Author: <NAME> // ///////////////////////////////////////////////////////////////////////////////// #pragma once //General Includes: #include <string> //Project Includes: #include "TgcViewer/globals.h" #incl...
24.92
132
(translation_unit) "/////////////////////////////////////////////////////////////////////////////////\n// TgcViewer-cpp\n// \n// Author: <NAME>\n// \n/////////////////////////////////////////////////////////////////////////////////\n\n\n\n#pragma once\n\n\n//General Includes:\n#include <string>\n\n//Project Includes:\n...
661
1
{"language": "c", "success": true, "metadata": {"lines": 132, "avg_line_length": 24.92, "nodes": 423, "errors": 0, "source_hash": "88c34b928261807374c9333426fa4e88d492172a71a45ea74bc6808098ef0c80", "categorized_nodes": 312}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
4,565
c
/* * Part of DNS zone file validator `validns`. * * Copyright 2011-2014 <NAME> <<EMAIL>> * Modified BSD license. * (See LICENSE file in the distribution.) * */ #include <stdlib.h> #include <string.h> #include <stdio.h> #include <errno.h> #include <ctype.h> #include "base64.h" /* * Very straightforward, ugly, ...
26.21
189
(translation_unit) "/*\n * Part of DNS zone file validator `validns`.\n *\n * Copyright 2011-2014 <NAME> <<EMAIL>>\n * Modified BSD license.\n * (See LICENSE file in the distribution.)\n *\n */\n#include <stdlib.h>\n#include <string.h>\n#include <stdio.h>\n#include <errno.h>\n#include <ctype.h>\n\n#include "base64.h"\n...
1,864
5
{"language": "c", "success": true, "metadata": {"lines": 189, "avg_line_length": 26.21, "nodes": 1054, "errors": 0, "source_hash": "4f58a573714ac58393d4320b8a764b824c356e1d3269f8b5dd3c23685c1d90ec", "categorized_nodes": 759}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
4,566
c
#ifndef __UTIL_H #define __UTIL_H #include <mycms/mycms-dict.h> char * util_strchr_escape( char * const s, const char c ); int util_split_string( const mycms_dict dict, const char * const str ); #endif
13.79
14
(translation_unit) "#ifndef __UTIL_H\n#define __UTIL_H\n\n#include <mycms/mycms-dict.h>\n\nchar *\nutil_strchr_escape(\n char * const s,\n const char c\n);\n\nint\nutil_split_string(\n const mycms_dict dict,\n const char * const str\n);\n\n#endif\n" (preproc_ifdef) "#ifndef __UTIL_H\n#define __UTIL_H\n\n#include <m...
57
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 13.79, "nodes": 38, "errors": 0, "source_hash": "41ef68c0689bfbc9ad02e43cd05318c402014bcf88a5fdabecc094e1a0e230bf", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,567
c
/* ***************************************************************************** * * Name: elmsession.c * Author: <NAME> * Email: <EMAIL> * License: The MIT License (MIT) * * Description: Create a user session which handles authenticating, logging in, * and logging out. * * Notes: None. ...
30.72
136
(translation_unit) "/* *****************************************************************************\n * \n * Name: elmsession.c\n * Author: <NAME>\n * Email: <EMAIL>\n * License: The MIT License (MIT)\n * \n * Description: Create a user session which handles authenticating, logging in,\n * and loggi...
806
0
{"language": "c", "success": true, "metadata": {"lines": 136, "avg_line_length": 30.72, "nodes": 412, "errors": 0, "source_hash": "19cd9cc8fc28fe996b8f4c11423b266fbd451c255016e945fcecb17875f97412", "categorized_nodes": 301}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,568
c
// // ClientConnection.h // PlexPad // // Created by <NAME> on 19.01.11. // Copyright 2011 ambertation. All rights reserved. // #import <Foundation/Foundation.h> @interface ClientConnection : NSObject<NSCoding> { NSString* name; NSString* hostName; } @property(readonly, retain) NSString* name; @property(reado...
27.11
18
(translation_unit) "//\n// ClientConnection.h\n// PlexPad\n//\n// Created by <NAME> on 19.01.11.\n// Copyright 2011 ambertation. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n\n@interface ClientConnection : NSObject<NSCoding> {\n NSString* name;\n NSString* hostName;\n}\n\n@property(readonly, ret...
135
18
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 27.11, "nodes": 87, "errors": 0, "source_hash": "615b994bc35ab9e2aa642113ae0d0fccbe0b61991ffc37616c8fff30c42cf75e", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
4,569
c
#include <stdio.h> int c( int m,int n ) { int a = 1,b = 1; if (n > m-n) n = m-n; if( n == 0 ) return 1; for( int i = m ; i >=m-n+1 ; i-- ) a = a*i; for( int i = 1 ; i <= n ; i++ ) b = b*i; return a/b; } int main() { int m,n,res; scanf("%d %d", &m, &n); res = c(m,n); printf("%d\n", ...
14.5
22
(translation_unit) "#include <stdio.h>\nint c( int m,int n )\n{\n int a = 1,b = 1;\n if (n > m-n)\n n = m-n; \n if( n == 0 )\n return 1;\n for( int i = m ; i >=m-n+1 ; i-- )\n a = a*i;\n for( int i = 1 ; i <= n ; i++ )\n b = b*i;\n return a/b;\n}\n\nint main()\n{\n int m,n,res;\n scanf("%d %d", &m, &n);...
204
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 14.5, "nodes": 135, "errors": 0, "source_hash": "9558df316474d95fed5a5392b74a0e541999e141b42fe94ac9606356288bbab3", "categorized_nodes": 96}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
4,570
c
#include "lib.h" #include <unistd.h> #include <errno.h> #include "sys9.h" /* * BUG: errno mapping */ off_t lseek(int d, off_t offset, int whence) { long long n; int flags; flags = _fdinfo[d].flags; if(flags&(FD_BUFFERED|FD_BUFFEREDX|FD_ISTTY)) { errno = ESPIPE; return -1; } n = _SEEK(d, offset, whence); ...
15.18
22
(translation_unit) "#include "lib.h"\n#include <unistd.h>\n#include <errno.h>\n#include "sys9.h"\n\n/*\n * BUG: errno mapping\n */\noff_t\nlseek(int d, off_t offset, int whence)\n{\n long long n;\n int flags;\n\n flags = _fdinfo[d].flags;\n if(flags&(FD_BUFFERED|FD_BUFFEREDX|FD_ISTTY)) {\n errno = ESPIPE;\n return -1...
130
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 15.18, "nodes": 78, "errors": 0, "source_hash": "424e7f0d568f239904d6873ae3740e45540898e35035cdb1030c7e30e4c223ca", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
4,571
c
/* * Copyright 2008, The Android Open Source Project * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and ...
34.03
67
(translation_unit) "/*\n * Copyright 2008, The Android Open Source Project\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * * Redistributions of source code must retain the above copyright\n * notice, t...
275
4
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 34.03, "nodes": 166, "errors": 0, "source_hash": "8892095a227abe7a56cafad6014ae3ec01f5fb77363123603c7ca40f9313b37c", "categorized_nodes": 119}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,572
c
#pragma once #include "Elven/Renderer/VertexArray.h" namespace Elven { class OpenGLVertexArray : public VertexArray { public: OpenGLVertexArray(); ~OpenGLVertexArray(); void Bind() const override; void Unbind() const override; void AddVertexBuffer(const Ref<Vertex...
35.82
22
(translation_unit) "#pragma once\n\n#include "Elven/Renderer/VertexArray.h"\n\nnamespace Elven\n{\n class OpenGLVertexArray : public VertexArray\n {\n public:\n OpenGLVertexArray();\n ~OpenGLVertexArray();\n\n void Bind() const override;\n void Unbind() const override;\n\n vo...
195
10
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 35.82, "nodes": 113, "errors": 0, "source_hash": "e4c55f03fde7238212668554fd3e396bb5ba1f8869ac982b2371d241c6229c73", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
4,573
c
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <limits.h> #include <math.h> #include "Deq.h" ////////////////////////////////////////////////// Deq_t *createDeq() { Deq_t *deq = malloc(sizeof(Deq_t)); if (deq == NULL) return NULL; deq->list = createDLList(); if (deq->list == NULL)...
25.07
91
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <stdbool.h>\n#include <limits.h>\n#include <math.h>\n#include "Deq.h"\n\n//////////////////////////////////////////////////\nDeq_t *createDeq() {\n Deq_t *deq = malloc(sizeof(Deq_t));\n if (deq == NULL) return NULL;\n deq->list = createDLLis...
794
0
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 25.07, "nodes": 506, "errors": 0, "source_hash": "3909985eaa64196ddc5a0b164e6dd769ac319438788b3cb3be60b0f5c2a9fe26", "categorized_nodes": 313}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,574
c
/** * Definition for a binary tree node. * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * }; */ int m; struct TreeNode* insert(struct TreeNode* root, int* preorder, int* inorder, int l, int r); struct TreeNode* buildTree(int* preorder, int preorderSize, int* inorder...
25.33
36
(translation_unit) "/**\n * Definition for a binary tree node.\n * struct TreeNode {\n * int val;\n * struct TreeNode *left;\n * struct TreeNode *right;\n * };\n */\nint m;\nstruct TreeNode* insert(struct TreeNode* root, int* preorder, int* inorder, int l, int r);\nstruct TreeNode* buildTree(int* preorder, ...
348
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 25.33, "nodes": 242, "errors": 0, "source_hash": "8e69792144976eddd29868a978effcb7802f565d0fc71d97524d33dfaee4653c", "categorized_nodes": 167}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "int m;",...
4,575
c
/* This file has been autogenerated by Ivory * Compiler version 0.1.0.3 */ #include "output_Server_UART_out_put_pt_data_monitor.h" void callback_output_Server_UART_out_put_pt_data_2(const uint8_t n_var0[80U]) { //Server_UART_out_put_pt_data(n_var0); Server_write_send_output(n_var0); }
32
9
(translation_unit) "/* This file has been autogenerated by Ivory\n * Compiler version 0.1.0.3\n */\n#include "output_Server_UART_out_put_pt_data_monitor.h"\n\nvoid callback_output_Server_UART_out_put_pt_data_2(const uint8_t n_var0[80U])\n{\n //Server_UART_out_put_pt_data(n_var0);\n Server_write_send_output(n_var...
36
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 32.0, "nodes": 17, "errors": 0, "source_hash": "99414f949693b354c02be103c65cbe69decefc91efc8493a6856cc4c0a79db8a", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
4,576
c
#include "snapconfig.h" /* $Log: plotbin.c,v $ Revision 1.2 1997/04/28 10:58:55 CHRIS Added function to access notes associated with data. Not properly done - does not share common code with snap\notedata.c Revision 1.1 1996/01/03 22:23:34 CHRIS Initial revision */ #include <stdio.h> #include...
28.19
169
(translation_unit) "#include "snapconfig.h"\n\n/*\n $Log: plotbin.c,v $\n Revision 1.2 1997/04/28 10:58:55 CHRIS\n Added function to access notes associated with data. Not properly done -\n does not share common code with snap\notedata.c\n\n Revision 1.1 1996/01/03 22:23:34 CHRIS\n Initial revision\n\n...
1,406
0
{"language": "c", "success": true, "metadata": {"lines": 169, "avg_line_length": 28.19, "nodes": 814, "errors": 0, "source_hash": "3a7db9a747d5f69333965c984c313c3b215b2b4bd769b197c0381327da6e2005", "categorized_nodes": 592}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,577
c
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. #pragma once #include "CoreMinimal.h" class FUICommandInfo; class IViewportLayoutEntity; struct FViewportConstructionArgs; /** Definition of a custom viewport */ struct FViewportTypeDefinition { typedef TFunction<TSharedRef<IViewportLayoutEntity>(const F...
40.88
26
(translation_unit) "// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.\n\n#pragma once\n\n#include "CoreMinimal.h"\n\nclass FUICommandInfo;\nclass IViewportLayoutEntity;\nstruct FViewportConstructionArgs;\n\n/** Definition of a custom viewport */\nstruct FViewportTypeDefinition\n{\n typedef TFunction<TSharedR...
182
11
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 40.88, "nodes": 103, "errors": 0, "source_hash": "b1bd4b0dc252aba53d2cd6361b96296fa5becfae5920f68610917e5482337528", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
4,578
c
// // Created by djnic on 04.11.2020. // #ifndef SUFFIXTABLE_SUFFIXTABLE_H #define SUFFIXTABLE_SUFFIXTABLE_H #include <string> #include "PTable.h" #include "List.h" class SuffixTable : public PTable { int *index; // TODO: change to the List if possible std::string *suffix; // TODO: change to the List if poss...
27.93
27
(translation_unit) "//\n// Created by djnic on 04.11.2020.\n//\n\n#ifndef SUFFIXTABLE_SUFFIXTABLE_H\n#define SUFFIXTABLE_SUFFIXTABLE_H\n\n#include <string>\n#include "PTable.h"\n#include "List.h"\n\nclass SuffixTable : public PTable {\n int *index; // TODO: change to the List if possible\n std::string *suffix; //...
222
12
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 27.93, "nodes": 139, "errors": 0, "source_hash": "87694546c16542752df50cd8037921de4f10a67903afdb10846ac4e4a0f2bd3a", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,579
c
#pragma once #include "EngineMinimal.h"
19
2
(translation_unit) "#pragma once\n\n#include "EngineMinimal.h"\n\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "EngineMinimal.h"\n" (#include) "#include" (string_literal) ""EngineMinimal.h"" (") """ (string_content) "Eng...
10
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 19.0, "nodes": 6, "errors": 0, "source_hash": "bdb6c7b89d35fb234a6d0b2082edd775c33867844e229b5e5b7435f810047d83", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\...
4,580
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "util.h" #include "setup.h" #ifdef STATIC_ALLOCATION const size_t nelem = 16777216; static double a[nelem]; static double b[nelem]; #endif int main(int argc, char* argv[]) { if ((argc > 1) && ( 0==strncmp("-h",argv[1],2) || ...
36.91
114
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n\n#include "util.h"\n#include "setup.h"\n\n#ifdef STATIC_ALLOCATION\nconst size_t nelem = 16777216;\nstatic double a[nelem];\nstatic double b[nelem];\n#endif\n\nint main(int argc, char* argv[])\n{\n if ((argc > 1) && ( 0==strncmp("-h...
1,347
0
{"language": "c", "success": true, "metadata": {"lines": 114, "avg_line_length": 36.91, "nodes": 789, "errors": 0, "source_hash": "31dce33e50761bb663ac7ed3bbb34ca46e0908e1dcf7765a54bf36e8fc7e81ff", "categorized_nodes": 544}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,581
c
/** * Copyright 2012 JDS Uniphase. All rights reserved. * $URL: http://sinsvn5.sin.ds.jdsu.net/svn/xtreme/branches/1.00.100_phase2_tip/src/cpp/include/xtreme/cpp/ste/base/ba_container-inl.h $ * $Revision: 3324 $ * $Author: yuh55587 $ * $Date: 2013-04-12 14:45:37 +0800 (Fri, 12 Apr 2013) $ * STE basic container ty...
29.17
86
(translation_unit) "/**\n * Copyright 2012 JDS Uniphase. All rights reserved.\n * $URL: http://sinsvn5.sin.ds.jdsu.net/svn/xtreme/branches/1.00.100_phase2_tip/src/cpp/include/xtreme/cpp/ste/base/ba_container-inl.h $\n * $Revision: 3324 $\n * $Author: yuh55587 $\n * $Date: 2013-04-12 14:45:37 +0800 (Fri, 12 Apr 2013) $\...
790
59
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 29.17, "nodes": 482, "errors": 0, "source_hash": "b374e6b01cce715ab81e6277b015fd6d676e0df000dbc0516e25dcc21b65cf70", "categorized_nodes": 329}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,582
c
#ifndef EK_MATH_COLOR_H #define EK_MATH_COLOR_H #include <stdint.h> #ifdef __cplusplus extern "C" { #endif typedef union color_t { struct { uint8_t r, g, b, a; }; uint32_t value; uint8_t data[4]; #ifdef __cplusplus inline uint8_t& operator[](const int index) { return data[index]; } #end...
31.47
95
(translation_unit) "#ifndef EK_MATH_COLOR_H\n#define EK_MATH_COLOR_H\n\n#include <stdint.h>\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\ntypedef union color_t {\n struct {\n uint8_t r, g, b, a;\n };\n uint32_t value;\n uint8_t data[4];\n#ifdef __cplusplus\n\n inline uint8_t& operator[](const int...
682
2
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 31.47, "nodes": 484, "errors": 0, "source_hash": "392951e75ef9f4cc46f4fce6d69d39c308601517496a6f14c5838acfcc244273", "categorized_nodes": 372}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,583
c
/* Copyright: Copyright (c) MOSEK ApS, Denmark. All rights reserved. File: sparsecholesky.c Purpose: */ #include <stdio.h> #include "mosek.h" static MSKrescodee sparsecholesky(MSKenv_t env, const MSKint32t n, const MSK...
33.9
159
(translation_unit) "/* \n Copyright: Copyright (c) MOSEK ApS, Denmark. All rights reserved.\n\n File: sparsecholesky.c\n\n Purpose: \n\n */\n#include <stdio.h>\n\n#include "mosek.h" \n\n\n static MSKrescodee sparsecholesky(MSKenv_t env,\n const MSKint32t n,\n ...
1,286
0
{"language": "c", "success": true, "metadata": {"lines": 159, "avg_line_length": 33.9, "nodes": 731, "errors": 0, "source_hash": "1b19e91c3eb8b9a86f742104e6f2a1cffe8d9c91bec9ad8b4ad5d8b2e5085599", "categorized_nodes": 500}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,584
c
// // SQLJSONHashListToStringListTransformer.h // fb2sql // // Created by <NAME> on 04/03/2019. // Copyright © 2019 Inventivelink. All rights reserved. // #import "SQLJSONTransformer.h" NS_ASSUME_NONNULL_BEGIN @interface SQLJSONHashListToStringListTransformer : SQLJSONTransformer @property NSString *property; @...
32.26
19
(translation_unit) "//\n// SQLJSONHashListToStringListTransformer.h\n// fb2sql\n//\n// Created by <NAME> on 04/03/2019.\n// Copyright © 2019 Inventivelink. All rights reserved.\n//\n\n#import "SQLJSONTransformer.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface SQLJSONHashListToStringListTransformer : SQLJSONTransformer\...
136
27
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 32.26, "nodes": 92, "errors": 0, "source_hash": "e1e9a9e599568c8c6488b1320ab06ba0b3ffbbaf28a4d8bfd1d2d91ba96685a7", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"...
4,585
c
#pragma once #if !defined( _DEBUG ) # define _CRT_SECURE_NO_WARNINGS # define _SCL_SECURE_NO_WARNINGS #endif #define NTDDI_VERSION NTDDI_WIN10 #define _WIN32_WINNT _WIN32_WINNT_WIN10 #include <sdkddkver.h> #include <windows.h> #include <shellapi.h> #include <shlobj.h> #include <commctrl.h> #include <richedit.h> #in...
20.51
35
(translation_unit) "#pragma once\n\n#if !defined( _DEBUG )\n# define _CRT_SECURE_NO_WARNINGS\n# define _SCL_SECURE_NO_WARNINGS\n#endif\n\n#define NTDDI_VERSION NTDDI_WIN10\n#define _WIN32_WINNT _WIN32_WINNT_WIN10\n\n#include <sdkddkver.h>\n\n#include <windows.h>\n#include <shellapi.h>\n#include <shlobj.h>\n#include <co...
106
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 20.51, "nodes": 96, "errors": 0, "source_hash": "ccc50fc862d60bea06cadf2a22c1f4705c38cc2e1b541161550b2579c6c64f76", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
4,586
c
#pragma once #include "common.h" class Keyboard { friend class Window; private: enum class KeyState { ksFREE, ksDOWN, ksHOLD, ksUP }; private: static Keyboard instance; static constexpr int numKeys = 256; KeyState previousKeyStates[numKeys] = {}; KeyState currentKeyStates[numKeys] = {}; bool enab...
22.03
32
(translation_unit) "#pragma once\n#include "common.h"\n\nclass Keyboard\n{\n friend class Window;\n\nprivate:\n enum class KeyState\n {\n ksFREE,\n ksDOWN,\n ksHOLD,\n ksUP\n };\n\nprivate:\n static Keyboard instance;\n\n static constexpr int numKeys = 256;\n\n KeyState previousKeyStates[numKeys] = {};\n KeyState c...
239
3
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 22.03, "nodes": 141, "errors": 0, "source_hash": "bdfaf89a4dfc8e152789a0efa4839936ddb44865e5b0ef8c10964254830cb91b", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
4,587
c
#pragma once #ifndef _GFAL2_TRANSFER_TYPES_INTERNAL_ #define _GFAL2_TRANSFER_TYPES_INTERNAL_ /* * Copyright @ Members of the EMI Collaboration, 2010. * See www.eu-emi.eu for details on the copyright holders. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in co...
36.79
63
(translation_unit) "#pragma once\n#ifndef _GFAL2_TRANSFER_TYPES_INTERNAL_\n#define _GFAL2_TRANSFER_TYPES_INTERNAL_\n\n/* \n* Copyright @ Members of the EMI Collaboration, 2010.\n* See www.eu-emi.eu for details on the copyright holders.\n* \n* Licensed under the Apache License, Version 2.0 (the "License"); \n* you may n...
173
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 36.79, "nodes": 125, "errors": 0, "source_hash": "628dd95e9b5f341ecdd633023a68fbeb939dcb5070a95ab32fedf9314b97526a", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
4,588
c
/* * Top users/processes display for Unix * Version 3 * * This program may be freely redistributed, * but this entire comment MUST remain intact. * * Copyright (c) 1984, 1989, <NAME>, Rice University * Copyright (c) 1989, 1990, 1992, <NAME>, Northwestern University * Copyright (c) 2016, <NAME> * * $Fr...
16.65
55
(translation_unit) "/*\n * Top users/processes display for Unix\n * Version 3\n *\n * This program may be freely redistributed,\n * but this entire comment MUST remain intact.\n *\n * Copyright (c) 1984, 1989, <NAME>, Rice University\n * Copyright (c) 1989, 1990, 1992, <NAME>, Northwestern University\n * Copyrig...
172
0
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 16.65, "nodes": 113, "errors": 0, "source_hash": "ad44d23cc2db7e985b2dde69e5f190b5ba851f825cf44d7050a2f2a5731b2adc", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,589
c
/* * parallel.h - This file contains all of the defines for doing parallel * message passing and such. * * $Id: parallel.h,v 1.15 2013/04/21 08:11:09 johns Exp $ * */ int rt_par_init(int *, char ***); int rt_par_finish(void); int rt_mynode(void); int rt_numnodes(void); int rt_getcpuinfo(nodeinfo ...
33.67
21
(translation_unit) "/*\n * parallel.h - This file contains all of the defines for doing parallel\n * message passing and such.\n *\n * $Id: parallel.h,v 1.15 2013/04/21 08:11:09 johns Exp $\n *\n */\n\nint rt_par_init(int *, char ***);\nint rt_par_finish(void);\nint rt_mynode(void);\nint rt_numnodes(voi...
183
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 33.67, "nodes": 138, "errors": 0, "source_hash": "3f821eccfb689354945dacc38da2c7569ad0699ddac7fca5c7ef66db97ffbc7d", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "int rt_pa...
4,590
c
// // KSRecord.h // PuzzlePoker // // Created by <NAME> on 13/08/18. // Copyright (c) 2013年 momiji-mac. All rights reserved. // #import <UIKit/UIKit.h> #import "KSResults.h" @interface KSRecord : UIView @property (nonatomic, retain) UILabel *date; @property (nonatomic, retain) UILabel *score; @property (no...
32.48
21
(translation_unit) "//\n// KSRecord.h\n// PuzzlePoker\n//\n// Created by <NAME> on 13/08/18.\n// Copyright (c) 2013年 momiji-mac. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "KSResults.h"\n\n@interface KSRecord : UIView\n\n@property (nonatomic, retain) UILabel *date;\n@property (nonatomic, retain...
182
36
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 32.48, "nodes": 129, "errors": 0, "source_hash": "924bf4843f195bf54f4c55444ea11a6577adfb35e98c71d59c3ed6d3fc9f28ce", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <U...
4,591
c
#pragma once #include <eonpath/Path.h> #include <fcntl.h> #ifdef EON_WINDOWS # include <io.h> #endif /****************************************************************************** The 'eon' namespace encloses all public functionality ******************************************************************************/ ...
26.38
29
(translation_unit) "#pragma once\n\n#include <eonpath/Path.h>\n#include <fcntl.h>\n#ifdef EON_WINDOWS\n# include <io.h>\n#endif\n\n\n/******************************************************************************\n The 'eon' namespace encloses all public functionality\n*************************************************...
75
4
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 26.38, "nodes": 39, "errors": 0, "source_hash": "73041782518acc5bd3e6c0c4afb11bb2cb1589281b91655e139e082c8428db35", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
4,592
c
#ifndef LIBTENSOR_ADJACENCY_LIST_H #define LIBTENSOR_ADJACENCY_LIST_H #include <cstdlib> // for size_t #include <map> #include <vector> namespace libtensor { /** \brief Adjacency list for an undirected, weighted graph **/ class adjacency_list { private: typedef std::map<size_t, size_t> adjacent_list_t; typ...
30.44
81
(translation_unit) "#ifndef LIBTENSOR_ADJACENCY_LIST_H\n#define LIBTENSOR_ADJACENCY_LIST_H\n\n#include <cstdlib> // for size_t\n#include <map>\n#include <vector>\n\nnamespace libtensor {\n\n\n/** \brief Adjacency list for an undirected, weighted graph\n **/\nclass adjacency_list {\nprivate:\n typedef std::map<size_t...
279
14
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 30.44, "nodes": 173, "errors": 0, "source_hash": "3bd6e8b32061e268b536941fc428e978ea1da9037278d6ee6fbf0c73e115e863", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,593
c
/* ** PCHWIO.H - SNIPPETS header file for portable hardware I/O access under DOS ** ** public domain by <NAME> */ #ifndef PCHWIO__H #define PCHWIO__H #include <dos.h> #include "extkword.h" #if defined(__TURBOC__) || defined(__POWERC) #ifndef inp #define inp inportb #endif #ifndef outp #define outp ...
22.33
70
(translation_unit) "/*\n** PCHWIO.H - SNIPPETS header file for portable hardware I/O access under DOS\n**\n** public domain by <NAME>\n*/\n\n#ifndef PCHWIO__H\n#define PCHWIO__H\n\n#include <dos.h>\n#include "extkword.h"\n\n\n#if defined(__TURBOC__) || defined(__POWERC)\n#ifndef inp\n#define inp inportb\n#e...
330
2
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 22.33, "nodes": 269, "errors": 0, "source_hash": "13d8613a2febd6a9930be633086d7f6e7a7f2b5973590ff9a67dee6cb8332ffe", "categorized_nodes": 147}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,594
c
// t2k - Tatsuko Driver is a software library designed to drive game development. // Copyright (C) Damako Soft since 2020, all rights reserved. // current version is ver. 0.1. // // Damako Soft staff: // Da: <NAME> // Ma: <NAME> // Ko: <NAME> // // If you are interested in t2k, please follow our Twitter account @Dam...
38.34
47
(translation_unit) "// t2k - Tatsuko Driver is a software library designed to drive game development.\n// Copyright (C) Damako Soft since 2020, all rights reserved.\n// current version is ver. 0.1.\n//\n// Damako Soft staff:\n// Da: <NAME>\n// Ma: <NAME>\n// Ko: <NAME>\n//\n// If you are interested in t2k, please fo...
296
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 38.34, "nodes": 180, "errors": 0, "source_hash": "c68c6f0b459ffcda85c53b27cfbc1a4bf5b27b431b08d8a3746aa1259451fb6c", "categorized_nodes": 121}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,595
c
// // stdblock.c // // Outputting blocks // #include "deflate.h" #include <string.h> #include <stdio.h> #include <crtdbg.h> #include "maketbl.h" // // Decode a recorded literal // #define DECODE_LITERAL(slot) \ slot = encoder->recording_literal_tree_table[read_bitbuf & REC_LITERALS_DECODING_TABLE_...
29.26
356
(translation_unit) "// \n// stdblock.c \n// \n// Outputting blocks \n// \n#include "deflate.h" \n#include <string.h> \n#include <stdio.h> \n#include <crtdbg.h> \n#include "maketbl.h" \n \n \n// \n// Decode a recorded literal \n// \n#define DECODE_LITERAL(slot) \ \n slot = encoder->recording_literal_tree_table[read_b...
1,236
0
{"language": "c", "success": true, "metadata": {"lines": 356, "avg_line_length": 29.26, "nodes": 708, "errors": 0, "source_hash": "bee5adb297fbfc524ef9143b47b1e123730e29d791e7ef7c2624e6cb5c0d5741", "categorized_nodes": 554}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,596
c
#ifndef _HAL_I2S_H_ #define _HAL_I2S_H_ #include "sys/intc.h" // components/ typedef void (*I2S_ISR) (void); typedef enum { I2S_INTR_RXDA = 0, I2S_INTR_RXFO = 1, I2S_INTR_RXFE = 4, I2S_INTR_TXFO = 5 } i2s_int_status_t; typedef enum{ SampleRate_08kHZ = 8, SampleRate_32kHZ = ...
25.17
58
(translation_unit) "#ifndef _HAL_I2S_H_ \n#define _HAL_I2S_H_ \n \n#include "sys/intc.h" // components/ \n \ntypedef void (*I2S_ISR) (void); \n \ntypedef enum { \n I2S_INTR_RXDA = 0, \n I2S_INTR_RXFO = 1, \n I2S_INTR_RXFE = 4, \n I2S_INTR_TXFO = 5 \n} i2s_int_status_t; \n \n \ntypedef enum{ \n SampleR...
365
0
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 25.17, "nodes": 260, "errors": 0, "source_hash": "681c987a41c2e51b3bbf13350b5be0a811f98815b4c69debd3882abb86f38c26", "categorized_nodes": 173}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,597
c
/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #pragma once #include <AzCore/Memory/SystemAllocator.h> #include <GraphCanvas/Widgets/EditorConte...
39.63
75
(translation_unit) "/*\n * Copyright (c) Contributors to the Open 3D Engine Project.\n * For complete copyright and license terms please see the LICENSE at the root of this distribution.\n *\n * SPDX-License-Identifier: Apache-2.0 OR MIT\n *\n */\n#pragma once\n\n#include <AzCore/Memory/SystemAllocator.h>\n\n#include <...
516
39
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 39.63, "nodes": 305, "errors": 0, "source_hash": "1be067b5ec589674fe38c5570b9ca7996df51e441fa3fa8bb3c48850179b09d1", "categorized_nodes": 211}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
4,598
c
#include <stdio.h> #include <stdbool.h> #include <stdlib.h> #define _POSIX_C_SOURCE 1 // so I can get sleep (which I'll replace soon no doubt) #include <unistd.h> #include "simulator.h" #include "dispatcher.h" #include "process.h" #include "macros.h" struct sim_struct { int mode; dispatcher dis; int...
29.73
86
(translation_unit) "#include <stdio.h>\n#include <stdbool.h>\n#include <stdlib.h>\n\n#define _POSIX_C_SOURCE 1 // so I can get sleep (which I'll replace soon no doubt)\n#include <unistd.h>\n\n#include "simulator.h"\n#include "dispatcher.h"\n#include "process.h"\n#include "macros.h"\n\nstruct sim_struct {\n int m...
750
0
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 29.73, "nodes": 453, "errors": 0, "source_hash": "99eb7a742e99b39729805652e945f6ae9cf9e5a4a19a155c019b5abb50f3fb5a", "categorized_nodes": 329}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,599