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
// // #import <Foundation/Foundation.h> @interface UMengAnalyticsManager : NSObject + (UMengAnalyticsManager *)sharedInstance; /** checkConfig YES/NO 检测在线设置数据 {"fource_version":"1.0.1"},强制升级 */ -(void)prepareUMSetting:(NSString *)umeng_appkey appStoreId:(NSString *)app_store_id checkConfig:(BOOL)che...
22.67
15
(translation_unit) "// \n//\n\n#import <Foundation/Foundation.h>\n\n\n\n@interface UMengAnalyticsManager : NSObject\n\n\n+ (UMengAnalyticsManager *)sharedInstance;\n/**\n checkConfig YES/NO 检测在线设置数据 {"fource_version":"1.0.1"},强制升级\n \n\n \n */\n-(void)prepareUMSetting:(NSString *)umeng_appkey appStoreId:(NSString *...
72
9
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 22.67, "nodes": 45, "errors": 0, "source_hash": "08558c80c29aabf668ff11204ac0efc6930dbe783569ba13aa3a821366cd0866", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
4,200
c
#include<stdio.h> int main() { int size = 10; int marks[size]; for(int i = 0; i < size; i++) { printf("Enter the marks of student %d = ",i); scanf("%d",marks+i); } for(int i = 0; i < size; i++) { printf("Mark of student %d = %d\n",i,*(marks+i)); ...
18.06
18
(translation_unit) "#include<stdio.h> \n \nint main() \n{ \n int size = 10; \n int marks[size]; \n for(int i = 0; i < size; i++) \n { \n printf("Enter the marks of student %d = ",i); \n scanf("%d",marks+i); \n } \n \n for(int i = 0; i < size; i++) \n { \n printf("Mark of st...
130
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 18.06, "nodes": 75, "errors": 0, "source_hash": "7c660c76d2fcccfd0bf7388e6e1409047f8a708f1bf47c7bdaa0b1294b212a40", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
4,201
c
#pragma once #include "debugMenu.hpp" #include "fl/ui/page.h" #include "fl/ui/pages.h" #include "fl/ui/ui.h" #include <game/Player/PlayerActorHakoniwa.h> #include <game/StageScene/StageScene.h> #include <sead/container/seadPtrArray.h> #include <sead/math/seadQuat.h> #include <sead/math/seadVector.h> #include <str.h> ...
32.17
148
(ERROR) "#pragma once\n\n#include "debugMenu.hpp"\n#include "fl/ui/page.h"\n#include "fl/ui/pages.h"\n#include "fl/ui/ui.h"\n#include <game/Player/PlayerActorHakoniwa.h>\n#include <game/StageScene/StageScene.h>\n#include <sead/container/seadPtrArray.h>\n#include <sead/math/seadQuat.h>\n#include <sead/math/seadVector.h>...
1,437
61
{"language": "c", "success": true, "metadata": {"lines": 148, "avg_line_length": 32.17, "nodes": 813, "errors": 0, "source_hash": "fce26d0b502d92c3e3a41ad5b7484549f3609b2aef6d8cea0ac972e53ca7c8d4", "categorized_nodes": 517}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#pragma once\n\n#include...
4,202
c
#include "time.h" #include <libopencm3/cm3/systick.h> /* monotonically increasing number of milliseconds from reset */ static volatile uint32_t system_millis; /* Magic: This is called when systick fires. * GCC insists there is a decalaration before * a definition. (LibOpenCM3 doesn't do this?) */ void sys_tick_han...
23
24
(translation_unit) "#include "time.h"\n#include <libopencm3/cm3/systick.h>\n/* monotonically increasing number of milliseconds from reset\n */\nstatic volatile uint32_t system_millis;\n\n/* Magic: This is called when systick fires.\n * GCC insists there is a decalaration before\n * a definition. (LibOpenCM3 doesn't do ...
98
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 23.0, "nodes": 60, "errors": 0, "source_hash": "e6c08eb61aa50e163d5f69d6aab4c03bb94138bd5d00a5189bb9da9591e819ae", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
4,203
c
#import "MOBProjection.h" @interface MOBProjectionEPSG32526 : MOBProjection @end
26
3
(translation_unit) "#import "MOBProjection.h"\n\n@interface MOBProjectionEPSG32526 : MOBProjection\n\n@end\n" (preproc_call) "#import "MOBProjection.h"\n" (preproc_directive) "#import" (preproc_arg) ""MOBProjection.h"" (ERROR) "@interface MOBProjectionEPSG32526 : MOBProjection\n\n@end" (ERROR) "@" (...
12
3
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 26.0, "nodes": 9, "errors": 0, "source_hash": "29ab73f9c5546ba59c050915689c30b3ac796d2e009e81df142c9e4dda71688e", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"MOB...
4,204
c
// // WindowDelegate.h // CatchMouseEvent // // Created by barry on 2020/3/1. // Copyright © 2020 barry. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN // 该类对象在xib中创建,相关IBAction事件在xib中手动关联到相关按钮 @interface WindowDelegate : NSObject { IBOutlet id pidField; } // 响应按钮点击动作 - (IB...
22.73
22
(translation_unit) "//\n// WindowDelegate.h\n// CatchMouseEvent\n//\n// Created by barry on 2020/3/1.\n// Copyright © 2020 barry. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n// 该类对象在xib中创建,相关IBAction事件在xib中手动关联到相关按钮\n@interface WindowDelegate : NSObject {\n IBOutlet ...
106
10
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 22.73, "nodes": 58, "errors": 0, "source_hash": "55789733b26ebb49929cb7e1cf8191b8a342cf6e5ae6158e27cc5e42fe0c0f03", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
4,205
c
/* strace -e raw=mknod mknod ... */ #define FUNC mknod #define SFUNC "mknod" #define FUNC_STR "\"%s\", %o, %llx" #define FUNC_IMP file, mode, (unsigned long long)dev #define ARG_CNT 3 #define ARG_USE "<file> <mode> <dev>" #define process_args() \ s = argv[i++]; \ const char *file = f_get_file(s); \ \ s = argv[i++...
31.08
13
(translation_unit) "/* strace -e raw=mknod mknod ... */\n\n#define FUNC mknod\n#define SFUNC "mknod"\n#define FUNC_STR "\"%s\", %o, %llx"\n#define FUNC_IMP file, mode, (unsigned long long)dev\n#define ARG_CNT 3\n#define ARG_USE "<file> <mode> <dev>"\n\n#define process_args() \\n s = argv[i++]; \\n const char *file = f_...
39
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 31.08, "nodes": 32, "errors": 0, "source_hash": "ce1c18d6d2f60806f6e03a39e1a0f048b2a3b9c6085c4fa45c66fb58b5993f37", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define FU...
4,206
c
/* Copyright (c) 2015, IBM * Author(s): <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * Copyright (c) 2017, RWTH Aachen University * Author(s): <NAME> <<EMAIL>> * * Permission to use, copy, modify, and/or distribute this software * for any purpose with or without fee is hereby granted, provided * that the abov...
29.98
182
(translation_unit) "/* Copyright (c) 2015, IBM\n * Author(s): <NAME> <<EMAIL>>\n * <NAME> <<EMAIL>>\n * Copyright (c) 2017, RWTH Aachen University\n * Author(s): <NAME> <<EMAIL>>\n *\n * Permission to use, copy, modify, and/or distribute this software\n * for any purpose with or without fee is hereby granted...
1,205
0
{"language": "c", "success": true, "metadata": {"lines": 182, "avg_line_length": 29.98, "nodes": 697, "errors": 0, "source_hash": "4be3ac50d0ce393299adf01ea96a3188c0caf8c0c36f436df610f1c6767335ec", "categorized_nodes": 484}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,207
c
#pragma once #include "GameTechRenderer.h" #include "../CSC8503Common/PhysicsSystem.h" namespace NCL { namespace CSC8503 { class TutorialGame { public: TutorialGame(); ~TutorialGame(); virtual void UpdateGame(float dt); protected: void InitialiseAssets(); void InitCamera(); void UpdateKeys...
37.67
72
(translation_unit) "#pragma once\n#include "GameTechRenderer.h"\n#include "../CSC8503Common/PhysicsSystem.h"\n\n\nnamespace NCL {\n namespace CSC8503 {\n class TutorialGame {\n public:\n TutorialGame();\n ~TutorialGame();\n\n virtual void UpdateGame(float dt);\n\n protected:\n void InitialiseAssets();\n\n ...
640
11
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 37.67, "nodes": 451, "errors": 0, "source_hash": "4e146f6ef0d702a8359167e0108f781db117b172bad84facd91ad1e2c5828000", "categorized_nodes": 267}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
4,208
c
/* Copyright (c) 2006 Trusted Computer Solutions, Inc. */ #include <selinux/selinux.h> extern int init_translations(void); extern void finish_context_translations(void); extern int trans_context(const char *, char **); extern int untrans_context(const char *, char **);
44
6
(translation_unit) "/* Copyright (c) 2006 Trusted Computer Solutions, Inc. */\n\n#include <selinux/selinux.h>\n\nextern int init_translations(void);\nextern void finish_context_translations(void);\nextern int trans_context(const char *, char **);\nextern int untrans_context(const char *, char **);\n\n" (comment) "/* ...
75
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 44.0, "nodes": 55, "errors": 0, "source_hash": "4be4be578af04bb035776db178bdd34941ba775846df72c77e0b9e8fdb0e33f3", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
4,209
c
// // BAbstractUploadHandler.h // Pods // // Created by <NAME> on 12/11/2016. // // #import <Foundation/Foundation.h> #import <ChatSDK/PUploadHandler.h> @interface BAbstractUploadHandler : NSObject<PUploadHandler> @end
19.18
11
(translation_unit) "//\n// BAbstractUploadHandler.h\n// Pods\n//\n// Created by <NAME> on 12/11/2016.\n//\n//\n\n#import <Foundation/Foundation.h>\n#import <ChatSDK/PUploadHandler.h>\n\n@interface BAbstractUploadHandler : NSObject<PUploadHandler>\n\n@end\n" (comment) "//" (comment) "// BAbstractUploadHandler.h"...
25
3
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 19.18, "nodes": 15, "errors": 0, "source_hash": "1b6a3752de93e1090a1bd99e2832d5715484c63306d97d5e6ea6e3ad6f047ffd", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
4,210
c
// // BYImageEditor.h // BYImageEditor // // Created by 侯博野 on 2018/7/16. // Copyright © 2018 satelens. All rights reserved. // #import <UIKit/UIKit.h> @interface BYImageEditor : UIViewController @property (nonatomic, strong) UIImage *sourceImage; // 初始图片,不会修改此图片 @end
23.82
11
(translation_unit) "//\n// BYImageEditor.h\n// BYImageEditor\n//\n// Created by 侯博野 on 2018/7/16.\n// Copyright © 2018 satelens. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface BYImageEditor : UIViewController\n\n@property (nonatomic, strong) UIImage *sourceImage; // 初始图片,不会修改此图片\n\n@end\n" (com...
37
6
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 23.82, "nodes": 23, "errors": 0, "source_hash": "69f82fe1fb8c972aab3e2792d3fce5bb00633aed8089d3f784d19104b70466ee", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <UIKit/U...
4,211
c
/* * File: ToolPWM.h * Author: Bob * * Created on April 25, 2020, 9:50 AM */ #ifndef TOOLPWM_H #define TOOLPWM_H #include "ToolPWMBase.h" #include "fixed.h" #include "SquareWavePane.h" class ToolPWM : public ToolPWMBase { public: static Tool *Factory() {return new ToolPWM;} ToolPWM(); virtua...
18.12
41
(translation_unit) "/* \n * File: ToolPWM.h\n * Author: Bob\n *\n * Created on April 25, 2020, 9:50 AM\n */\n\n#ifndef TOOLPWM_H\n#define TOOLPWM_H\n\n#include "ToolPWMBase.h"\n#include "fixed.h"\n#include "SquareWavePane.h"\n\nclass ToolPWM : public ToolPWMBase\n{\npublic:\n static Tool *Factory() {return new Too...
235
8
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 18.12, "nodes": 129, "errors": 0, "source_hash": "78b6146b4659133213f9dfa75dbf3312fd5a06aca7a2753fa49ccb9ad098e3f6", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,212
c
/** * Copyright 2021 astro. All rights reserved. * Use of this source code is governed by a BSD-style * license that can be found in the LICENSE file. */ /** * @file amk_printf.h */ #pragma once #include "printf.h" #define AMK_DEBUG 1 #define AMK_PRINT_TIMESTAMP 0 #if AMK_DEBUG #if AMK_PRINT_TIMESTAMP int amk...
23
22
(translation_unit) "/**\n * Copyright 2021 astro. All rights reserved.\n * Use of this source code is governed by a BSD-style\n * license that can be found in the LICENSE file.\n */\n\n/**\n * @file amk_printf.h\n */\n#pragma once\n\n#include "printf.h"\n\n#define AMK_DEBUG 1\n#define AMK_PRINT_TIMESTAMP 0\n\n#if AMK_D...
81
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 23.0, "nodes": 55, "errors": 0, "source_hash": "4a05319e719da4e4e9ce9e774983d0ef21a04c2dfb5bd5d704ea0a75b8dfea9f", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
4,213
c
#pragma once #include "mysql.h" #include<Windows.h> #include <stdio.h> #include<winsock2.h> class DBHelper { public: DBHelper(); ~DBHelper(); static bool Connect(); static void Close(); static MYSQL_RES* Query(CString str); static int Update(CString str); static MYSQL mysql; };
16.82
17
(translation_unit) "#pragma once \n#include "mysql.h" \n#include<Windows.h> \n#include <stdio.h> \n#include<winsock2.h> \n \nclass DBHelper \n{ \npublic: \n DBHelper(); \n ~DBHelper(); \n static bool Connect(); \n static void Close(); \n static MYSQL_RES* Query(CString str); \n static int Update(CString str); \n static...
100
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 16.82, "nodes": 57, "errors": 0, "source_hash": "6957ee90ab23c04bd0f0c991f340a97fe803898aa7f9831bcf0a800e04f71915", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
4,214
c
/* * Copyright (c), <NAME>. * * MIT License (MIT), http://opensource.org/licenses/MIT * Full license can be found in the LICENSE file */ #ifndef cglmc_ease_h #define cglmc_ease_h #ifdef __cplusplus extern "C" { #endif #include "../cglm.h" CGLM_EXPORT float glmc_ease_linear(float t); CGLM_EXPORT float glmc_ease...
15.51
106
(translation_unit) "/*\n * Copyright (c), <NAME>.\n *\n * MIT License (MIT), http://opensource.org/licenses/MIT\n * Full license can be found in the LICENSE file\n */\n\n#ifndef cglmc_ease_h\n#define cglmc_ease_h\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n#include "../cglm.h"\n\nCGLM_EXPORT\nfloat\nglmc_ease_linear(f...
430
32
{"language": "c", "success": true, "metadata": {"lines": 106, "avg_line_length": 15.51, "nodes": 327, "errors": 0, "source_hash": "75988c6158afb0fca453af6e21c17d9416f25e041ebe84580038492a03d18243", "categorized_nodes": 228}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef cglmc...
4,215
c
#include "pivotpi.c" #include <wiringPi.h> #include <stdio.h> #include <stdlib.h> /* Enter the following command to compile the program: gcc example_3_servo.c -o example_3_servo -lwiringPi -lwiringPiDev -lpthread -lm -lwiringPiPca9685 Enter the following command to run the program: ./example_3_servo */ int main...
26.47
38
(translation_unit) "#include "pivotpi.c"\n\n#include <wiringPi.h>\n\n#include <stdio.h>\n#include <stdlib.h>\n\n/*\nEnter the following command to compile the program:\n gcc example_3_servo.c -o example_3_servo -lwiringPi -lwiringPiDev -lpthread -lm -lwiringPiPca9685\nEnter the following command to run the program:\n ...
229
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 26.47, "nodes": 112, "errors": 0, "source_hash": "bc7bb5699a35c1a0d2ac43863b30c3c9cc0333aa91b8e9b48f42d161b4084698", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
4,216
c
#pragma once #include "ofMain.h" #include "ofxCv.h" #include "ofxGui.h" class Highpass { public: cv::Mat lab, lowpass, highpass; vector<cv::Mat> labChannels; template <class S, class D> void filter(S& src, D& dst, int size, float contrast = 1) { ofxCv::convertColor(src, lab, CV_RGB2Lab); ...
28.26
39
(translation_unit) "#pragma once\n\n#include "ofMain.h"\n#include "ofxCv.h"\n#include "ofxGui.h"\n\nclass Highpass {\npublic:\n cv::Mat lab, lowpass, highpass;\n vector<cv::Mat> labChannels;\n \n template <class S, class D>\n void filter(S& src, D& dst, int size, float contrast = 1) {\n ofxCv::con...
369
18
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 28.26, "nodes": 201, "errors": 0, "source_hash": "fd84f58c08ec72a6a6ea54598bdf9f6878b8bcb8c8c464a1d1e23975970c3a36", "categorized_nodes": 150}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
4,217
c
#include <options/options.h> #include "../csm/csm_all.h" void ld_linearize(LDP ld); double weighted_mean(double *x, double *weight, int n); int main(int argc, const char * argv[]) { sm_set_program_name(argv[0]); int errors = 0; int count = -1; LDP ld; while( (ld = ld_read_smart(stdin)) ) { count++; if(!ld_...
22.19
84
(translation_unit) "#include <options/options.h>\n#include "../csm/csm_all.h"\n\nvoid ld_linearize(LDP ld);\ndouble weighted_mean(double *x, double *weight, int n);\n\nint main(int argc, const char * argv[]) {\n sm_set_program_name(argv[0]);\n \n int errors = 0;\n int count = -1;\n LDP ld;\n while( (ld = ld_read_smart(...
829
0
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 22.19, "nodes": 543, "errors": 0, "source_hash": "0dac6f121b3ffe49bb0255cbaeec8cd865983bfbd7d7d34e6b681ff067020ae5", "categorized_nodes": 382}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,218
c
int tecla_prescionada();
24
1
(translation_unit) "int tecla_prescionada();\n" (declaration) "int tecla_prescionada();" (primitive_type) "int" (function_declarator) "tecla_prescionada()" (identifier) "tecla_prescionada" (parameter_list) "()" (() "(" ()) ")" (;) ";"
9
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 24.0, "nodes": 5, "errors": 0, "source_hash": "859a62e30da26d9dbf42b3214cd290650fb6ab30694c90e5189f0ffb8fbe3c38", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "int tecla_pres...
4,219
c
#pragma once #include <memory> #include "correlator.h" #include "derandomizer.h" #include "reader.h" #include "reed_solomon.h" #include "viterbi.h" namespace decoder { class Packetizer { static constexpr auto frameBits = 8192; static constexpr auto syncWordBits = 32; static constexpr auto framePreludeBits = 3...
31.27
56
(translation_unit) "#pragma once\n\n#include <memory>\n\n#include "correlator.h"\n#include "derandomizer.h"\n#include "reader.h"\n#include "reed_solomon.h"\n#include "viterbi.h"\n\nnamespace decoder {\n\nclass Packetizer {\n static constexpr auto frameBits = 8192;\n static constexpr auto syncWordBits = 32;\n static ...
354
5
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 31.27, "nodes": 244, "errors": 0, "source_hash": "a204f9a02fdd957c3cd282409df28618798fc4b631260da8acf521d8ff07be72", "categorized_nodes": 166}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
4,220
c
/*- * %sccs.include.proprietary.c% */ #ifndef lint static char sccsid[] = "@(#)refer4.c 4.2 (Berkeley) 04/18/91"; #endif /* not lint */ #include "refer..c" #define punctuat(c) (c=='.' || c=='?' || c=='!' || c==',' || c==';' || c==':') static gate = 0; static char buff[BUFSIZ]; output(s) char *s; { if (gate) fp...
14.12
81
(translation_unit) "/*-\n * %sccs.include.proprietary.c%\n */\n\n#ifndef lint\nstatic char sccsid[] = "@(#)refer4.c 4.2 (Berkeley) 04/18/91";\n#endif /* not lint */\n\n#include "refer..c"\n#define punctuat(c) (c=='.' || c=='?' || c=='!' || c==',' || c==';' || c==':')\n\nstatic gate = 0;\nstatic char buff[BUFSIZ];\n\nou...
568
3
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 14.12, "nodes": 366, "errors": 0, "source_hash": "684226b826f4c1d2e0be835f22202c8bdce3e530b818c3e409e7b135f5fa2593", "categorized_nodes": 232}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,221
c
// // PNCTLinkData.h // Penn // // Created by emoji on 2018/8/1. // Copyright © 2018年 PENN. All rights reserved. // #import <Foundation/Foundation.h> @interface PNCTLinkData : NSObject @property (nonatomic, copy) NSString * title; @property (nonatomic, copy) NSString * url; @property (nonatomic, assign) NSRange ...
22.57
14
(translation_unit) "//\n// PNCTLinkData.h\n// Penn\n//\n// Created by emoji on 2018/8/1.\n// Copyright © 2018年 PENN. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface PNCTLinkData : NSObject\n\n@property (nonatomic, copy) NSString * title;\n@property (nonatomic, copy) NSString * url;\n@pro...
70
14
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 22.57, "nodes": 49, "errors": 0, "source_hash": "10d353dea1c07e2c1db0419ea000a1122bed9e8eeb81de0719b31d8ed8d4df0e", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
4,222
c
/******************************************************************************* * 版权所有(C) 2011-2012 caidongyun All Rights Reserved. * * 文件名称 : lxwindows.h * 作 者 : 蔡东赟 (mailto:<EMAIL>) * 创建日期 : 2012/2/6 * 功能描述 : * 备 注 : ********************************************************************************/ #ifndef ...
26.95
38
(translation_unit) "******************************************************************************\n* 版权所有(C) 2011-2012 caidongyun All Rights Reserved.\n*\n* 文件名称 : lxwindows.h\n* 作 者 : 蔡东赟 (mailto:<EMAIL>)\n* 创建日期 : 2012/2/6\n* 功能描述 : \n* 备 注 : \n*****************************************************************...
206
11
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 26.95, "nodes": 144, "errors": 0, "source_hash": "d5762eb1e1aa1633f14e1fca3fcd2f37dee5f32cc519a91ff540098f26e26794", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "\n#inc...
4,223
c
#ifndef SRC_SPELLCHECKER_WIN_H_ #define SRC_SPELLCHECKER_WIN_H_ #include <spellcheck.h> #include "spellchecker.h" namespace spellchecker { class WindowsSpellchecker : public SpellcheckerImplementation { public: bool IsSupported(); WindowsSpellchecker(); ~WindowsSpellchecker(); bool SetDictio...
28.55
33
(translation_unit) "#ifndef SRC_SPELLCHECKER_WIN_H_ \n#define SRC_SPELLCHECKER_WIN_H_ \n \n#include <spellcheck.h> \n#include "spellchecker.h" \n \nnamespace spellchecker { \n \nclass WindowsSpellchecker : public SpellcheckerImplementation { \npublic: \n bool IsSupported(); \n \n WindowsSpellchecker(); \n ~WindowsSp...
260
12
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 28.55, "nodes": 154, "errors": 0, "source_hash": "49ff840ed13816cf72e19a3be5895db9a04d6391c96184550905605ae42bf1e5", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,224
c
enum SYMBOL_KIND { Symbol_Var, Symbol_Const, Symbol_UsingLink, }; enum SYMBOL_STATE { SymbolState_Unresolved = 0, SymbolState_Resolving, SymbolState_Resolved, }; typedef union Const_Val { Big_Num num; Interned_String string; } Const_Val; typedef struct Symbol { struct Symbol* next...
19.78
110
(translation_unit) "enum SYMBOL_KIND\n{\n Symbol_Var,\n Symbol_Const,\n Symbol_UsingLink,\n};\n\nenum SYMBOL_STATE\n{\n SymbolState_Unresolved = 0,\n SymbolState_Resolving,\n SymbolState_Resolved,\n};\n\ntypedef union Const_Val\n{\n Big_Num num;\n Interned_String string;\n} Const_Val;\n\ntypedef...
652
4
{"language": "c", "success": true, "metadata": {"lines": 110, "avg_line_length": 19.78, "nodes": 433, "errors": 0, "source_hash": "57e26e3e1daaf2d2d22cd2ce9912f23598d0c5b8253da3c6a5523366d1aa8448", "categorized_nodes": 322}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "enum_specifier", "text": "enum...
4,225
c
/////////////////////////////////////////////////////////////////// // PseudoValue.h: Contains three pseudocolor tables /////////////////////////////////////////////////////////////////// #ifndef PSEUDOVALUE_H #define PSEUDOVALUE_H #include <Xm/Xm.h> class BasicWedgeOverlay; class PseudoMarks; class PseudoValue { ...
39.04
48
(translation_unit) "///////////////////////////////////////////////////////////////////\n// PseudoValue.h: Contains three pseudocolor tables\n///////////////////////////////////////////////////////////////////\n#ifndef PSEUDOVALUE_H\n#define PSEUDOVALUE_H\n#include <Xm/Xm.h>\n\nclass BasicWedgeOverlay;\nclass PseudoMar...
571
6
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 39.04, "nodes": 393, "errors": 0, "source_hash": "ae7b1778d9115ad02c71199f97cd87ade634a870b55173dd091fedab17d737ba", "categorized_nodes": 219}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,226
c
/* ************************************************************************************** * void md33toms33(MS33 *pb, MD33 *pa); * @brief : Convert double prec matrix to single precision * @param : pa = pointer to input matrix * @param : pb = pointer to output matrix * *********************************************...
29.6
20
(translation_unit) "/* **************************************************************************************\n * void md33toms33(MS33 *pb, MD33 *pa);\n * @brief : Convert double prec matrix to single precision\n * @param : pa = pointer to input matrix\n * @param : pb = pointer to output matrix\n * ********************...
140
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 29.6, "nodes": 91, "errors": 0, "source_hash": "e482b793d860e936c077ddbfda174081e74d082c7446f433ca726c5ec44830e9", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
4,227
c
// // PlanViewController.h // My Game Plan // // Created by <NAME> on 7/4/13. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface PlanViewController : UITableViewController @end
20.9
10
(translation_unit) "//\n// PlanViewController.h\n// My Game Plan\n//\n// Created by <NAME> on 7/4/13.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface PlanViewController : UITableViewController\n\n@end\n" (comment) "//" (comment) "// PlanViewController.h" (comm...
22
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.9, "nodes": 11, "errors": 0, "source_hash": "9c488e3ce2fa0e1cea4ba51b70e35c71f1ff4f951f6c64fcbb2c01a6641b3f07", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UI...
4,228
c
/** * @file */ #ifndef TELEM_FILTER_TELEM_DATA_H #define TELEM_FILTER_TELEM_DATA_H #include <map> #include <string> /** * @brief Represents telemetry data that consists of * velocity magnitude and altitude values. */ class telem_data { protected: /** * A mapping of time offsets to velocity magnitudes. ...
26.42
50
(translation_unit) "/**\n * @file\n */\n\n#ifndef TELEM_FILTER_TELEM_DATA_H\n#define TELEM_FILTER_TELEM_DATA_H\n\n#include <map>\n#include <string>\n\n/**\n * @brief Represents telemetry data that consists of\n * velocity magnitude and altitude values.\n */\nclass telem_data {\nprotected:\n /**\n * A mapping of ...
171
10
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 26.42, "nodes": 101, "errors": 0, "source_hash": "fbd8da4f5051a26aac580bfedc299ed9a0cd99849a65b8555b1657c15f9e4c79", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,229
c
#include<stdio.h> #include<stdlib.h> int lasti=0,lastj=0; void goback(int x,int y) { printf("\033[%dA",x); printf("\033[%dD",y); } void gotoxy(int x,int y) { extern int lasti, lastj; int i; goback(lasti, lastj); for(i=0;i<x;i++) printf("\n"); for(i=0;i<y;i++) printf("\t"); lasti=x; lastj=y; } int main () { int i=0...
12.94
32
(translation_unit) "#include<stdio.h>\n#include<stdlib.h>\nint lasti=0,lastj=0;\nvoid goback(int x,int y)\n{ \nprintf("\033[%dA",x);\nprintf("\033[%dD",y);\n}\nvoid gotoxy(int x,int y)\n{ \nextern int lasti, lastj;\nint i;\ngoback(lasti, lastj);\n\nfor(i=0;i<x;i++)\nprintf("\n");\nfor(i=0;i<y;i++)\nprintf("\t");\nlasti...
270
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 12.94, "nodes": 159, "errors": 0, "source_hash": "183af3709534ae39e074ef0c9445edbf12c2da5485298c7f59a5d152bc29a359", "categorized_nodes": 109}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,230
c
#include <stdio.h> #include <syslog.h> #include <glib.h> #include "ibf-mapper.h" int main (int argc, char *argv[]) { char line[256]; int count; char **args; openlog ("ibf-map", 0, LOG_DAEMON); if (setvbuf (stdin, NULL, _IOLBF, 0) != 0) { syslog (LOG_ERR, "cannot set line buffered mode"); return 1; } wh...
22.59
34
(translation_unit) "#include <stdio.h>\n#include <syslog.h>\n\n#include <glib.h>\n\n#include "ibf-mapper.h"\n\nint main (int argc, char *argv[])\n{\n char line[256];\n int count;\n char **args;\n\n openlog ("ibf-map", 0, LOG_DAEMON);\n\n if (setvbuf (stdin, NULL, _IOLBF, 0) != 0) {\n syslog (LOG_ERR, "cannot set line ...
327
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 22.59, "nodes": 168, "errors": 0, "source_hash": "a9c852f0936b418f4553a6c9241ddd3c6177e7da131c3d7ee3331bbc27ef8acf", "categorized_nodes": 121}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,231
c
#ifndef COL_FILE_H #define COL_FILE_H #include "../Media/Palette.h" // A COL file (assuming it means "color" file) has the colors for a palette. class COLFile { private: Palette palette; public: bool init(const char *filename); const Palette &getPalette() const; }; #endif
20.23
13
(translation_unit) "#ifndef COL_FILE_H\n#define COL_FILE_H\n\n#include "../Media/Palette.h"\n\n// A COL file (assuming it means "color" file) has the colors for a palette.\n\nclass COLFile\n{\nprivate:\n Palette palette;\npublic:\n bool init(const char *filename);\n\n const Palette &getPalette() const;\n};\n\n#endif\n"...
63
2
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 20.23, "nodes": 32, "errors": 0, "source_hash": "c944a725192687dbdd04a64a75434f757f0110b4f058f6d8c98bcfe27e8d2a96", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,232
c
#pragma once #include "kpoller.h" #include "../../include/knet/kconn_factory.h" #include "../../include/knet/kaddress.h" namespace knet { class socket final { public: explicit socket(rawsocket_t rs); ~socket(); bool init(poller& plr, conn_factory& cf); bool write(buffer* buf, size_t num); void ...
25.96
23
(translation_unit) "#pragma once\n#include "kpoller.h"\n#include "../../include/knet/kconn_factory.h"\n#include "../../include/knet/kaddress.h"\n\nnamespace knet {\n\nclass socket final {\npublic:\n explicit socket(rawsocket_t rs);\n ~socket();\n\n bool init(poller& plr, conn_factory& cf);\n\n bool write(bu...
194
10
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 25.96, "nodes": 116, "errors": 0, "source_hash": "3944eab068e442d65cd3b8953b5c051f920360175dbed11dc41e0e87ab6e4e7d", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
4,233
c
/* * Gray: A Ray Tracing-based Monte Carlo Simulator for PET * * Copyright (c) 2018, <NAME>, <NAME>, <NAME>, <NAME> * * This software is distributed under the terms of the MIT License unless * otherwise noted. See LICENSE for further details. * */ #ifndef VIEWABLESPHERE_H #define VIEWABLESPHERE_H #include "G...
27.5
219
(translation_unit) "/*\n * Gray: A Ray Tracing-based Monte Carlo Simulator for PET\n *\n * Copyright (c) 2018, <NAME>, <NAME>, <NAME>, <NAME>\n *\n * This software is distributed under the terms of the MIT License unless\n * otherwise noted. See LICENSE for further details.\n *\n */\n\n#ifndef VIEWABLESPHERE_H\n#defin...
1,594
69
{"language": "c", "success": true, "metadata": {"lines": 219, "avg_line_length": 27.5, "nodes": 877, "errors": 0, "source_hash": "eaff20f9fa583916520057f52f869f46071036543412924e5179fb711eccefcd", "categorized_nodes": 583}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,234
c
/** **************************************************************************************** * * @file uds_common.h * * @brief Header File - User Data service common types. * * Copyright (C) 2015. Dialog Semiconductor Ltd, unpublished work. This computer * program includes Confidential, Proprietary Information...
30.67
215
(translation_unit) "/**\n ****************************************************************************************\n *\n * @file uds_common.h\n *\n * @brief Header File - User Data service common types.\n *\n * Copyright (C) 2015. Dialog Semiconductor Ltd, unpublished work. This computer \n * program includes Confident...
569
0
{"language": "c", "success": true, "metadata": {"lines": 215, "avg_line_length": 30.67, "nodes": 379, "errors": 0, "source_hash": "4b6a867cb587f66bd86c646a1f1901d8e1a28bfc0229b8faa0a81055ae3b6ddd", "categorized_nodes": 285}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,235
c
#include <stdlib.h> #include "nut/stream_reader.h" //main int main(){ StreamReader_init(); int ret = StreamReader_read(); return ret ? EXIT_FAILURE : EXIT_SUCCESS; }
21.25
8
(translation_unit) "#include <stdlib.h>\n#include "nut/stream_reader.h"\n\n//main\nint main(){\n StreamReader_init();\n int ret = StreamReader_read();\n return ret ? EXIT_FAILURE : EXIT_SUCCESS;\n}" (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (pr...
48
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 21.25, "nodes": 28, "errors": 0, "source_hash": "2fb021dff9c12dcf7e833d365951d0719616654d10af529e19e467ebcc9961f2", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
4,236
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Mar 11 2021 20:53:35). // // Copyright (C) 1997-2019 <NAME>. // @class OZEyeDropperTool; @protocol OZEyeDropperToolProtocol - (void)willDeleteEyeDropperTool:(OZEyeDropperTool *)arg1; - (void)setPickedColor:(struct PCColor *)arg1; - (void)endSetti...
29.92
12
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Mar 11 2021 20:53:35).\n//\n// Copyright (C) 1997-2019 <NAME>.\n//\n\n@class OZEyeDropperTool;\n\n@protocol OZEyeDropperToolProtocol\n- (void)willDeleteEyeDropperTool:(OZEyeDropperTool *)arg1;\n- (void)setPickedColor:(struct PC...
80
9
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 29.92, "nodes": 46, "errors": 0, "source_hash": "03357356e0071ebca5705551b787ddaace18a77c72a4fab8a0df1cc0d44d941c", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@class OZEyeDrop...
4,237
c
#pragma once #include "abstract_node.h" class leaf : public abstract_node { public: leaf(const std::string& name); void print(std::ostream& os) const override; };
16
10
(translation_unit) "#pragma once\n#include "abstract_node.h"\n\n\nclass leaf :\n public abstract_node\n{\npublic:\n leaf(const std::string& name);\n\n void print(std::ostream& os) const override;\n};\n\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include)...
62
5
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 16.0, "nodes": 30, "errors": 0, "source_hash": "a884e469d4dbc730ffe365f227d3722f801f65152c26b11bb0331a74085a3a89", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
4,238
c
// Copyright (c) <NAME>. For more information see 'LICENSE.txt' #pragma once #include "Core/STL/Math/3D/Plane.h" namespace GX_STL { namespace GXMath { // // Frustum // template <typename T> struct Frustum { // types public: using Self = Frustum<T>; using Value_t = T; using Vec3_t = Vec<T,3>; usi...
32.23
183
(translation_unit) "// Copyright (c) <NAME>. For more information see 'LICENSE.txt'\n\n#pragma once\n\n#include "Core/STL/Math/3D/Plane.h"\n\nnamespace GX_STL\n{\nnamespace GXMath\n{\n \n //\n // Frustum\n //\n\n template <typename T>\n struct Frustum\n {\n // types\n public:\n using Self = Frustum<T>;\n using Valu...
2,184
121
{"language": "c", "success": true, "metadata": {"lines": 183, "avg_line_length": 32.23, "nodes": 1398, "errors": 0, "source_hash": "1c2bdec2522e34bc66b2950f99a332d72bed8e6a96acd6cf349095d3891fd019", "categorized_nodes": 999}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#prag...
4,239
c
// // LFBaseViewControllerConfig.h // LFBaseViewController // // Created by liufan on 2019/9/14. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface LFBaseViewControllerConfig : NSObject + (instancetype)shareConfig; @property (nonatomic,strong) UIColor *LF_Nav_BgColor; @property (nonatomic,...
32.53
17
(translation_unit) "//\n// LFBaseViewControllerConfig.h\n// LFBaseViewController\n//\n// Created by liufan on 2019/9/14.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface LFBaseViewControllerConfig : NSObject\n\n+ (instancetype)shareConfig;\n\n@property (nonatomic,strong) UIColor *LF...
126
14
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 32.53, "nodes": 81, "errors": 0, "source_hash": "33c988f105fbbc243c9db83b2e88afd37b98fc207f419ae45ca5601e1e843b8f", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
4,240
c
/********************************************************************* * SEGGER MICROCONTROLLER GmbH & Co. KG * * Solutions for real time microcontroller applications * ********************************************************************** * ...
34.56
103
(translation_unit) "/*********************************************************************\n* SEGGER MICROCONTROLLER GmbH & Co. KG *\n* Solutions for real time microcontroller applications *\n**********************************************************************\n* ...
326
1
{"language": "c", "success": true, "metadata": {"lines": 103, "avg_line_length": 34.56, "nodes": 228, "errors": 0, "source_hash": "9471b48fea2681eba59661b75858ab9aac0cb8fda5c96c4a0e68f2ab73b90c30", "categorized_nodes": 156}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,241
c
#include "remras_i.c"
21
1
(translation_unit) "#include "remras_i.c"" (preproc_include) "#include "remras_i.c"" (#include) "#include" (string_literal) ""remras_i.c"" (") """ (string_content) "remras_i.c" (") """
7
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 21.0, "nodes": 3, "errors": 0, "source_hash": "15bb4956090ca9efcf8d8449706dc0e27741cd7a109c5723add7fceb9ab6a4aa", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \...
4,242
c
// // TenNavigationController.h // TenYuan // // Created by lanou on 15/11/8. // Copyright (c) 2015年 zhangxu. All rights reserved. // #import <UIKit/UIKit.h> @interface TenNavigationController : UINavigationController @end
21.7
10
(translation_unit) "//\n// TenNavigationController.h\n// TenYuan\n//\n// Created by lanou on 15/11/8.\n// Copyright (c) 2015年 zhangxu. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface TenNavigationController : UINavigationController\n\n@end\n" (comment) "//" (comment) "// TenNavigationControll...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.7, "nodes": 10, "errors": 0, "source_hash": "a5b5129207bc91acdf1fdee1422d22724955bb7db5f5ff610fa5c4d83d638ef4", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <UIKi...
4,243
c
#ifndef WAIFU2X_NCNN_VULKAN_WAIFU2X_WRAPPED_H #define WAIFU2X_NCNN_VULKAN_WAIFU2X_WRAPPED_H #include "waifu2x.h" // wrapper class of ncnn::Mat typedef struct Image{ unsigned char *data; int w; int h; int elempack; Image(unsigned char *d, int w, int h, int channels) { this->data = d; ...
27.82
33
(translation_unit) "#ifndef WAIFU2X_NCNN_VULKAN_WAIFU2X_WRAPPED_H\n#define WAIFU2X_NCNN_VULKAN_WAIFU2X_WRAPPED_H\n#include "waifu2x.h"\n\n// wrapper class of ncnn::Mat\ntypedef struct Image{\n unsigned char *data;\n int w;\n int h;\n int elempack;\n Image(unsigned char *d, int w, int h, int channels) {\n...
271
21
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 27.82, "nodes": 165, "errors": 0, "source_hash": "510c61eb377266cff4be2eac994146322d5aaca9845e9c0c2f99bc5d596f1dbd", "categorized_nodes": 107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,244
c
// Problem : UVA 10200 - Prime Time // Author : timwilliam // Compiled : 06/27/2021 #include <stdio.h> #include <stdlib.h> #include <string.h> int is_prime(int number){ int i, count; if(number % 2 == 0) return 0; count = 0; for(i = 1; i <= number; i++){ if(number % i == 0) count++; if(count > 2) b...
21.4
62
(translation_unit) "// Problem : UVA 10200 - Prime Time\n// Author : timwilliam\n// Compiled : 06/27/2021\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\nint is_prime(int number){\n int i, count;\n\n if(number % 2 == 0)\n return 0;\n\n count = 0;\n for(i = 1; i <= number; i++){\n if(number % i == ...
465
0
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 21.4, "nodes": 276, "errors": 0, "source_hash": "10b0b855074713ca2ab7676db0b1c4fbf538cc6b991bad80b8a51df7c52b9a94", "categorized_nodes": 201}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
4,245
c
#import "SBIcon.h" @interface SBLeafIcon : SBIcon - (instancetype)initWithLeafIdentifier:(NSString *)leafIdentifier applicationBundleID:(NSString *)bundleID; @end
39.75
4
(translation_unit) "#import "SBIcon.h"\n\n@interface SBLeafIcon : SBIcon\n\n- (instancetype)initWithLeafIdentifier:(NSString *)leafIdentifier applicationBundleID:(NSString *)bundleID;\n\n@end\n" (preproc_call) "#import "SBIcon.h"\n" (preproc_directive) "#import" (preproc_arg) ""SBIcon.h"" (ERROR) "@interfac...
42
6
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 39.75, "nodes": 26, "errors": 0, "source_hash": "5c19f0869f8809b89735e31e207bde218be58815bb66accc6ab1fdace893eabd", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
4,246
c
/******************************************************************************* * - FILE: pipeline_index.c * - DESC: Index pipeline. *******************************************************************************/ /* imports */ #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <stdbool....
31.48
61
(translation_unit) "/*******************************************************************************\n * - FILE: pipeline_index.c\n * - DESC: Index pipeline.\n *******************************************************************************/\n\n/* imports */\n#include <stdio.h>\n#include <unistd.h>\n#include <...
347
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 31.48, "nodes": 199, "errors": 0, "source_hash": "5a4e9442ad6be06589d8ee298eca682a7091d425c4d2617c900e3ac24655f3b1", "categorized_nodes": 149}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,247
c
#pragma once #include "func.h" #include "vector.h" #include "matrix.h"
16.75
4
(translation_unit) "#pragma once\n\n#include "func.h"\n#include "vector.h"\n#include "matrix.h"\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "func.h"\n" (#include) "#include" (string_literal) ""func.h"" (") """ (string_...
22
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 16.75, "nodes": 12, "errors": 0, "source_hash": "0913c81669f417bbc71a37c28adacfd99085709153f042de2175321705129c82", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
4,248
c
/* * Copyright 2015, <NAME>, <EMAIL>. * Distributed under the terms of the MIT License. */ #ifndef VALUE_FORMATTER_H #define VALUE_FORMATTER_H #include <Referenceable.h> class BString; class Settings; class Value; class ValueFormatter : public BReferenceable { public: virtual ~ValueFormatter(); virtual ...
28.66
35
(translation_unit) "/*\n * Copyright 2015, <NAME>, <EMAIL>.\n * Distributed under the terms of the MIT License.\n */\n#ifndef VALUE_FORMATTER_H\n#define VALUE_FORMATTER_H\n\n\n#include <Referenceable.h>\n\nclass BString;\nclass Settings;\nclass Value;\n\n\nclass ValueFormatter : public BReferenceable {\npublic:\n virtu...
161
10
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 28.66, "nodes": 92, "errors": 0, "source_hash": "0ce380a7e3a588fabf010f9cfc9058ddcddc98cea05f7f634f83b50be047becb", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,249
c
#include "shell.h" static char *s_replace_from_local(t_var *ptr, char *tmp) { while (ptr) { if (ft_strcmp(tmp, ptr->key) == 0) { free(tmp); if (ptr->value) return (ft_strdup(ptr->value)); } ptr = ptr->next; } return (NULL); } static char *s_local_var_replace_loop(t_sh *sh, char *input, int *i)...
20.87
61
(translation_unit) "#include "shell.h"\n\nstatic char *s_replace_from_local(t_var *ptr, char *tmp)\n{\n while (ptr)\n {\n if (ft_strcmp(tmp, ptr->key) == 0)\n {\n free(tmp);\n if (ptr->value)\n return (ft_strdup(ptr->value));\n }\n ptr = ptr->next;\n }\n return (NULL);\n}\n\nstatic char *s_local_var_replac...
627
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 20.87, "nodes": 402, "errors": 0, "source_hash": "bdd934ca2fcd6c86ffc33aec20178135967ac6e9e91f4bd207e6f2f5aed882df", "categorized_nodes": 266}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,250
c
#ifndef __LOADER__ #define __LOADER__ #include <vector> #include "ressource_loader.h" namespace sleek { namespace loader { class loader : public std::enable_shared_from_this<loader> { public: loader(std::shared_ptr<io::filesystem>); virtual ~loader()...
34.84
31
(translation_unit) "#ifndef __LOADER__\n#define __LOADER__\n\n#include <vector>\n#include "ressource_loader.h"\n\nnamespace sleek\n{\n namespace loader\n {\n class loader : public std::enable_shared_from_this<loader>\n {\n public:\n loader(std::shared_ptr<io::filesystem>);\...
302
29
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 34.84, "nodes": 175, "errors": 0, "source_hash": "039af5708722c6a066f9f25022616cccaced060a1d11e578f21be54133417695", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,251
c
////////////////////////////////////////////////////////////// // // project: STUSB4500 EVALUATION // date: 05.09.2020 // // author: <NAME> // ////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////// // INCLUDES //////////////////...
26.33
140
(translation_unit) "////////////////////////////////////////////////////////////// \n// \n// project: STUSB4500 EVALUATION \n// date: 05.09.2020 \n// \n// author: <NAME> \n// \n////////////////////////////////////////////////////////////// \n \n \n////////////////////////////////////////////////////////////// \n...
426
0
{"language": "c", "success": true, "metadata": {"lines": 140, "avg_line_length": 26.33, "nodes": 222, "errors": 0, "source_hash": "595ab88ecc300a4ae6e90961f7dbe7ab809120dd691b5bb059966e50a6a87c6f", "categorized_nodes": 148}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,252
c
/* Message list test for ASCII character set. Copyright (C) 2001-2003, 2005 Free Software Foundation, Inc. Written by <NAME> <<EMAIL>>, 2001. 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 Founda...
33.41
39
(translation_unit) "/* Message list test for ASCII character set.\n Copyright (C) 2001-2003, 2005 Free Software Foundation, Inc.\n Written by <NAME> <<EMAIL>>, 2001.\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 ...
115
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 33.41, "nodes": 86, "errors": 0, "source_hash": "a2f1ea95afa5d517fc6ad4eedca3d23f0c5dbbfa34d08d03b599505b82c4c023", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,253
c
#ifndef __DO_FORWARD_STREAM_H__ #define __DO_FORWARD_STREAM_H__ #include "fill.h" #include "xbaseband.h" #include "apb_bus.h" #include "csr_control.h" #include "vmem.h" #include "dma.h" #include "ringbus2_pre.h" #include "ringbus2_post.h" #include "ringbus.h" #include "check_bootload.h" #include "pipeline_work.h" #inc...
29.3
200
(translation_unit) "#ifndef __DO_FORWARD_STREAM_H__\n#define __DO_FORWARD_STREAM_H__\n\n#include "fill.h"\n#include "xbaseband.h"\n#include "apb_bus.h"\n#include "csr_control.h"\n#include "vmem.h"\n#include "dma.h"\n#include "ringbus2_pre.h"\n#include "ringbus2_post.h"\n#include "ringbus.h"\n#include "check_bootload.h"...
1,205
1
{"language": "c", "success": true, "metadata": {"lines": 200, "avg_line_length": 29.3, "nodes": 741, "errors": 0, "source_hash": "37dd9564e472cef34633bb3544127313949d771bf13e9c4c817ed25fd53dec76", "categorized_nodes": 527}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,254
c
/** * Copyright (C) 2009 Ubixum, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This libra...
22.88
69
(translation_unit) "/**\n * Copyright (C) 2009 Ubixum, Inc. \n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later...
231
2
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 22.88, "nodes": 140, "errors": 0, "source_hash": "3cb9816f6b345592662264c5545e56fc0036babab546207589aa1fe82ceb19a8", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
4,255
c
/* * Microsoft busmouse driver based on Logitech driver (see busmouse.c) * * Microsoft BusMouse support by <NAME> (<EMAIL>) (02AUG92) * * Microsoft Bus Mouse support modified by <NAME> (<EMAIL>) * 8/28/92 * * Microsoft Bus Mouse support folded into 0.97pl4 code * by <NAME> (<EMAIL>) (08SEP92) * Changes:...
28.42
154
(translation_unit) "/*\n * Microsoft busmouse driver based on Logitech driver (see busmouse.c)\n *\n * Microsoft BusMouse support by <NAME> (<EMAIL>) (02AUG92)\n *\n * Microsoft Bus Mouse support modified by <NAME> (<EMAIL>)\n * 8/28/92\n *\n * Microsoft Bus Mouse support folded into 0.97pl4 code\n * by <NAME> (<...
1,156
0
{"language": "c", "success": true, "metadata": {"lines": 154, "avg_line_length": 28.42, "nodes": 742, "errors": 0, "source_hash": "836cbd02c78700dcfec79ae2c3288f1beac36bb08a56a138cc0d198b865feae3", "categorized_nodes": 566}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,256
c
// $Id: publisher_impl.h 81961 2008-06-16 00:55:02Z sowayaa $ #ifndef EXPLOIT_PUBLISHER_IMPL_H #define EXPLOIT_PUBLISHER_IMPL_H #include "publisherS.h" #include "subscriberC.h" class Publisher_impl : public POA_Publisher { public: Publisher_impl(CORBA::ORB_ptr orb); ~Publisher_impl(); virtual void subscribe (...
23.95
19
(translation_unit) "// $Id: publisher_impl.h 81961 2008-06-16 00:55:02Z sowayaa $\n\n#ifndef EXPLOIT_PUBLISHER_IMPL_H\n#define EXPLOIT_PUBLISHER_IMPL_H\n\n#include "publisherS.h"\n#include "subscriberC.h"\n\nclass Publisher_impl : public POA_Publisher\n{\npublic:\n Publisher_impl(CORBA::ORB_ptr orb);\n ~Publisher_imp...
113
8
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 23.95, "nodes": 64, "errors": 0, "source_hash": "0d53ec7c645040c7182a1c20aa09363546b95732cc5ba763f70a9129994fae9f", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,257
c
// // UITableViewHeaderFooterView+WExtension.h // teee // // Created by mac on 2019/3/21. // Copyright © 2019年 wzj. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface UITableViewHeaderFooterView(WExtension) +(NSString*)w_tableViewHeaderIdentifier; +(NSString*)w_tableViewFooterIden...
24.14
14
(translation_unit) "//\n// UITableViewHeaderFooterView+WExtension.h\n// teee\n//\n// Created by mac on 2019/3/21.\n// Copyright © 2019年 wzj. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface UITableViewHeaderFooterView(WExtension)\n+(NSString*)w_tableViewHeaderIdentifier;\...
52
5
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 24.14, "nodes": 33, "errors": 0, "source_hash": "81697b15ba8b6a74bf5cf008e6b5e68f62760a5818f32564b87b9af9504a088e", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
4,258
c
typedef unsigned short f16; void ftof16(f16* dst, const float* src, int count); void f16tof(float* dst, const f16* src, int count); void f16add(f16* dst, f16* src, int len); void f16sub(f16* dst, f16* src, int len); void f16mul(f16* dst, int len, float val);
42.17
6
(translation_unit) "typedef unsigned short f16;\n\nvoid ftof16(f16* dst, const float* src, int count);\nvoid f16tof(float* dst, const f16* src, int count);\n\nvoid f16add(f16* dst, f16* src, int len);\nvoid f16sub(f16* dst, f16* src, int len);\nvoid f16mul(f16* dst, int len, float val);\n" (type_definition) "typedef ...
125
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 42.17, "nodes": 94, "errors": 0, "source_hash": "f3db07e8d59bf8a6f22d5915df69eaaf8a6356bc2fc1916bd0bfb7b48f634d07", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "typedef...
4,259
c
#pragma once #include "ConsoleLogger.h" #include "FileLogger.h" #include "DatabaseLogger.h" #include <Poco/Mutex.h> #include <string_view> #include <vector> #include <memory> namespace Common::Logging { // Forward enum declaration enum class Level; class ILogger; class Logger final { public: ...
34.66
35
(translation_unit) "#pragma once\n#include "ConsoleLogger.h"\n#include "FileLogger.h"\n#include "DatabaseLogger.h"\n#include <Poco/Mutex.h>\n#include <string_view>\n#include <vector>\n#include <memory>\n\nnamespace Common::Logging {\n\n // Forward enum declaration\n enum class Level;\n class ILogger;\n\n cl...
347
19
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 34.66, "nodes": 207, "errors": 0, "source_hash": "e43db7cafbdf12a96a679db9bd7ee9204fce77af0102894622bb30a96532c204", "categorized_nodes": 150}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
4,260
c
/* * Copyright (c) 2016-2019, Pelion and affiliates. * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
36.95
148
(translation_unit) "/*\n * Copyright (c) 2016-2019, Pelion and affiliates.\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://w...
1,182
0
{"language": "c", "success": true, "metadata": {"lines": 148, "avg_line_length": 36.95, "nodes": 751, "errors": 0, "source_hash": "76d9e97b3aef84f71823bbabf833f1d87ee7fb7ce86ce9c2f9547b8ef62d6d7d", "categorized_nodes": 567}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,261
c
// Copyright & License details are available under JXCORE_LICENSE file // Common header file used by "public/" #ifndef SRC_JX_JX_PRIVATE_H #define SRC_JX_JX_PRIVATE_H #include "commons.h" #include "../jxcore.h" #include "../wrappers/node_buffer.h" #include "extend.h" #include "job.h" #ifdef JS_ENGINE_MOZJS #include...
39.84
61
(translation_unit) "// Copyright & License details are available under JXCORE_LICENSE file\n\n// Common header file used by "public/"\n\n#ifndef SRC_JX_JX_PRIVATE_H\n#define SRC_JX_JX_PRIVATE_H\n\n#include "commons.h"\n#include "../jxcore.h"\n#include "../wrappers/node_buffer.h"\n#include "extend.h"\n#include "job.h"\n...
275
3
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 39.84, "nodes": 174, "errors": 0, "source_hash": "e9336c05639abe25bb0ff6979d18b02a3d454be55e46c90962245e44f1987994", "categorized_nodes": 118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,262
c
#ifndef JOB_H #define JOB_H #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <stdarg.h> #include <signal.h> #include <sys/types.h> #ifndef DEBUG #define DEBUG #endif #undef DEBUG #define BUFLEN 100 #define GLOBALFILE "screendump" //作业状态 enum jobstate{ READY,RUNNING,DONE }; enum cmdtype{ ...
22.36
67
(translation_unit) "#ifndef JOB_H\n#define JOB_H\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <unistd.h>\n#include <stdarg.h>\n#include <signal.h>\n#include <sys/types.h>\n\n#ifndef DEBUG\n#define DEBUG\n#endif\n\n#undef DEBUG\n\n#define BUFLEN 100\n#define GLOBALFILE "screendump"\n\n//作业状态\nenum jobstate{\n ...
433
0
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 22.36, "nodes": 313, "errors": 0, "source_hash": "40a276807945dd10269ca0a2d85d129800571bccb4e41497e33961379b8becc8", "categorized_nodes": 212}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,263
c
// File: 9.3.c // Author: TaoKY #include <stdio.h> #define NAMLEN 20 struct student_t{ int num; char name[NAMLEN]; int score[3]; } students[5]; void print(struct student_t *stu); int main(){ for (int i = 0; i < 5; i++){ scanf("%d%s%d%d%d", &students[i].num, students[i].name, &students[i].score[0], &s...
24.21
24
(translation_unit) "// File: 9.3.c\n// Author: TaoKY\n\n#include <stdio.h>\n\n#define NAMLEN 20\n\nstruct student_t{\n int num;\n char name[NAMLEN];\n int score[3];\n} students[5];\n\nvoid print(struct student_t *stu);\n\nint main(){\n for (int i = 0; i < 5; i++){\n scanf("%d%s%d%d%d", &students[i].num, students[i].na...
286
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 24.21, "nodes": 165, "errors": 0, "source_hash": "3f72e1a7cbc5fb87f595a2b3db590b3a0d9be5cf34d0877d6288349d036671ad", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,264
c
#ifndef CONFIG_UTILS_H #define CONFIG_UTILS_H #include <Arduino.h> #include <utility> #include <map> using namespace std; const std::map<String, String> getConfigValues(); void readConfigFromFS(); std::pair<String, String> splitLine(String&& line); const String& getConfigValue(const String& name, const String& dfl...
32.67
12
(translation_unit) "#ifndef CONFIG_UTILS_H\n#define CONFIG_UTILS_H\n\n#include <Arduino.h>\n#include <utility>\n#include <map>\n\nusing namespace std;\n\nconst std::map<String, String> getConfigValues();\n\nvoid readConfigFromFS();\nstd::pair<String, String> splitLine(String&& line);\n\nconst String& getConfigValue(con...
127
9
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 32.67, "nodes": 77, "errors": 0, "source_hash": "48f9bb572f791d930fa1e4d714b6cb9b19c562ccb049cd743a546b0510724c56", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,265
c
#include "index.h" void index_init(struct index *idx) { memset(idx, sizeof(idx), 0); } struct index *make_new_index(const char *fn, size_t s, size_t l, uint8_t f) { struct index *idx = MALLOC(struct index, 1); memcpy(idx->filename, fn, strlen((char *)fn) + 1); idx->flags = f; idx->pack_start = s; ...
30.76
29
(translation_unit) "#include "index.h"\n\nvoid index_init(struct index *idx) { memset(idx, sizeof(idx), 0); }\n\nstruct index *make_new_index(const char *fn, size_t s, size_t l, uint8_t f)\n{\n struct index *idx = MALLOC(struct index, 1);\n memcpy(idx->filename, fn, strlen((char *)fn) + 1);\n idx->flags = f;\n...
351
1
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 30.76, "nodes": 224, "errors": 0, "source_hash": "abc4373483a81d58e87845dd970faba4d4e6045232dfbb229283326610cfd899", "categorized_nodes": 160}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,266
c
#include <stdarg.h> extern void abort (void); extern void exit (int); void bar (int n, int c) { static int lastn = -1, lastc = -1; if (lastn != n) { if (lastc != lastn) abort (); lastc = 0; lastn = n; } if (c != (char) (lastc ^ (n << 3))) abort (); lastc++; } #define D(N) typ...
22.55
65
(translation_unit) "#include <stdarg.h>\n\nextern void abort (void);\nextern void exit (int);\n\nvoid bar (int n, int c)\n{\n static int lastn = -1, lastc = -1;\n\n if (lastn != n)\n {\n if (lastc != lastn)\n abort ();\n lastc = 0;\n lastn = n;\n }\n\n if (c != (char) (lastc ^ (n << 3)))\n ab...
1,301
2
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 22.55, "nodes": 695, "errors": 0, "source_hash": "9761b4035e92a4db16471a7d3567043633029d827fe5f9c636558f14c770c17f", "categorized_nodes": 496}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,267
c
/** @file */ #ifndef CROW_PUBSUB_H #define CROW_PUBSUB_H #include <assert.h> #include <crow/proto/protocol.h> #include <crow/tower.h> #include <igris/buffer.h> #include <igris/event/delegate.h> #include <igris/sync/syslock.h> #include <igris/buffer.h> struct crow_theme; #define SUBSCRIBE 0 #define PUBLISH 1 #defi...
36.62
116
(translation_unit) "/** @file */\n\n#ifndef CROW_PUBSUB_H\n#define CROW_PUBSUB_H\n\n#include <assert.h>\n#include <crow/proto/protocol.h>\n#include <crow/tower.h>\n\n#include <igris/buffer.h>\n#include <igris/event/delegate.h>\n#include <igris/sync/syslock.h>\n\n#include <igris/buffer.h>\n\nstruct crow_theme;\n\n#defin...
967
31
{"language": "c", "success": true, "metadata": {"lines": 116, "avg_line_length": 36.62, "nodes": 594, "errors": 0, "source_hash": "f1c3bc200e584281f5f7b8eb4f14be5140a4e0d99e7985e326fcdcf4e3511e7d", "categorized_nodes": 395}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,268
c
/*==========================================================================; * * Copyright (C) 1995-1997 Microsoft Corporation. All Rights Reserved. * * File: d3drmvis.h * Content: Direct3DRM external visualinclude file *@@BEGIN_MSINTERNAL * * History: * Date By Reason * ==== == ====== ...
28.97
208
(translation_unit) "/*==========================================================================; \n * \n * Copyright (C) 1995-1997 Microsoft Corporation. All Rights Reserved. \n * \n * File: d3drmvis.h \n * Content: Direct3DRM external visualinclude file \n *@@BEGIN_MSINTERNAL \n * \n * History: \n * Date By R...
781
14
{"language": "c", "success": true, "metadata": {"lines": 208, "avg_line_length": 28.97, "nodes": 515, "errors": 0, "source_hash": "75ef2a23d4b3bf370161cab6c541e6708e03f0f5e2280c308b89c2d7e0d5e34b", "categorized_nodes": 404}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,269
c
// // ViewController.h // iosTechRepostitory // // Created by tang on 2018/1/14. // Copyright © 2018年 tang. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
18.18
11
(translation_unit) "//\n// ViewController.h\n// iosTechRepostitory\n//\n// Created by tang on 2018/1/14.\n// Copyright © 2018年 tang. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ViewController : UIViewController\n\n\n@end\n\n" (comment) "//" (comment) "// ViewController.h" (comment) "// ...
22
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 18.18, "nodes": 12, "errors": 0, "source_hash": "4c3ba2c9ac69f908923c78ce7ec8eb13b1d7d999e0fe32b1025756b86f34ad99", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKi...
4,270
c
#pragma strict_types #include "../def.h" inherit STD_TREASURE; void create_object(void); void create_object(void) { set_name("cloth"); add_id("damp cloth"); set_short("a damp cloth"); set_long("A piece of damp cloth.\n"); set_value(25); set_weight(1); set_material("cloth"); }
20.79
14
(translation_unit) "#pragma strict_types\n#include "../def.h"\ninherit STD_TREASURE;\n\nvoid create_object(void);\n\nvoid create_object(void)\n{\n set_name("cloth");\n add_id("damp cloth");\n set_short("a damp cloth");\n set_long("A piece of damp cloth.\n");\n set_value(25);\n set_weight(1);\n set_...
108
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 20.79, "nodes": 52, "errors": 0, "source_hash": "53abec9de57807d1bb7cb1a61e995a71d175aace29daa59c16eeaaa7c010a21c", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma s...
4,271
c
/* * ISC License * * Copyright (C) 1985-2018 by * <NAME> * <NAME> * Delft University of Technology * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all c...
32.14
57
(translation_unit) "/*\n * ISC License\n *\n * Copyright (C) 1985-2018 by\n * <NAME>\n * <NAME>\n * Delft University of Technology\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this per...
295
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 32.14, "nodes": 175, "errors": 0, "source_hash": "2302af2d13d457dd0f461a9530228c331e3f69611d4b629cfae58757f7df357b", "categorized_nodes": 129}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,272
c
/************************************************************************ * Class: Deck * Updates: * * * Overview: * * * Constructors: * Deck() * * * Mutators: * None. * * Methods: * void Shuffle() * This method randomly shuffles the deck. * Card Deal(int m_currentCard) * Deals one card but does not display it. * sta...
21.1
63
(translation_unit) "/************************************************************************\n* Class: Deck\n* Updates:\n*\n*\n* Overview:\n*\n*\n* Constructors:\n* Deck()\n*\n*\n* Mutators:\n* None.\n*\n* Methods:\n* void Shuffle()\n* This method randomly shuffles the deck.\n* Card Deal(int m_currentCard)\n* Deals ...
203
4
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 21.1, "nodes": 129, "errors": 0, "source_hash": "36fb58ade69ddc01cb8bc2c253192bc37a43453da6a47022aa7c7e467c671980", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,273
c
/* ri0t r00t b0t by h1t3m of h1t3m.org | h4cky0u.org (rxBot MP modded with vnc scanner / auto-r00ter) */ #ifndef NO_RLOGIND #define PERMISSION_DENIED_MSG "Permission denied\n" typedef struct RLOGIND { SOCKET sock; char hostname[MAXHOSTNAME]; char chan[MAXCHANLEN]; char username[MAXNICKLEN]; unsign...
26.07
27
(translation_unit) "/*\n\n ri0t r00t b0t by h1t3m of h1t3m.org | h4cky0u.org\n\n (rxBot MP modded with vnc scanner / auto-r00ter)\n\n*/\n\n\n#ifndef NO_RLOGIND\n\n#define PERMISSION_DENIED_MSG "Permission denied\n"\n\ntypedef struct RLOGIND \n{\n SOCKET sock;\n char hostname[MAXHOSTNAME];\n char chan[MAXCHANLEN]...
173
2
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 26.07, "nodes": 124, "errors": 0, "source_hash": "81c84d376f3f9fda152f84e85db75e1d038225f372a57432819f717cb7fcf574", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,274
c
/* Header file for kernel module to match connection tracking information. * GPL (C) 2001 <NAME> (<EMAIL>). */ #ifndef _XT_CONNTRACK_H #define _XT_CONNTRACK_H #include <linux/types.h> #include <linux/netfilter/nf_conntrack_tuple_common.h> #define XT_CONNTRACK_STATE_BIT(ctinfo) (1 << ((ctinfo)%IP_CT_IS_REPLY+1)) #...
34.94
68
(translation_unit) "/* Header file for kernel module to match connection tracking information.\n * GPL (C) 2001 <NAME> (<EMAIL>).\n */\n\n#ifndef _XT_CONNTRACK_H\n#define _XT_CONNTRACK_H\n\n#include <linux/types.h>\n#include <linux/netfilter/nf_conntrack_tuple_common.h>\n\n#define XT_CONNTRACK_STATE_BIT(ctinfo) (1 << ...
390
0
{"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 34.94, "nodes": 294, "errors": 0, "source_hash": "d1bc2f82de4bc2c1224d8649b2d69c5e74119bcfc2a70bceeed24d0c797c427d", "categorized_nodes": 249}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,275
c
#include "libft.h" #include <dirent.h> int main(int argc, char **argv) { DIR *directory; struct dirent *data; if (argc || argv) {} if (argc > 1) directory = opendir(argv[1]); else directory = opendir("."); if (directory) { while ((data = readdir(directory))) { ft_printf("%s\n", data->d_name); ...
14.41
22
(translation_unit) "#include "libft.h"\n#include <dirent.h>\n\nint main(int argc, char **argv)\n{\n DIR *directory;\n struct dirent *data;\n \n if (argc || argv) {}\n \n if (argc > 1)\n directory = opendir(argv[1]);\n else\n directory = opendir(".");\n if (directory)\n {\n while ((data = readdir(directory)))\n {\n...
150
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 14.41, "nodes": 86, "errors": 0, "source_hash": "984f4947a7335d623c3b4e8a069e9a032eb8b5720aecd2d1ff929272f03fc37a", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
4,276
c
// // ViewController2.h // ShuttleNavigationControllerExample // // Created by bibibi on 15/8/7. // Copyright (c) 2015年 bibibi. All rights reserved. // #import "BaseViewController.h" @interface ViewController2 : BaseViewController @end
23
10
(translation_unit) "//\n// ViewController2.h\n// ShuttleNavigationControllerExample\n//\n// Created by bibibi on 15/8/7.\n// Copyright (c) 2015年 bibibi. All rights reserved.\n//\n\n#import "BaseViewController.h"\n\n@interface ViewController2 : BaseViewController\n\n@end\n" (comment) "//" (comment) "// ViewCont...
22
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 23.0, "nodes": 12, "errors": 0, "source_hash": "f19534e87e11ebfb448fac090d23d386a0e867a8dc497858c5d3570f73fd990a", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport \"Bas...
4,277
c
/** * @file main_uart_example.c * * @brief This file tests the UART driver APIs with all the suported * input parameters values */ /* * Copyright (c) 2014 - 2019, Texas Instruments Incorporated * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modifica...
32.82
158
(translation_unit) "/**\n * @file main_uart_example.c\n *\n * @brief This file tests the UART driver APIs with all the suported\n * input parameters values\n */\n/*\n * Copyright (c) 2014 - 2019, Texas Instruments Incorporated\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms...
687
0
{"language": "c", "success": true, "metadata": {"lines": 158, "avg_line_length": 32.82, "nodes": 397, "errors": 0, "source_hash": "57b926d3dc498904817e75adfdddf4e57754ae2c344c4e97018ad83bd10742ae", "categorized_nodes": 282}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,278
c
#ifndef LIBNAO_GLOBAL_H #define LIBNAO_GLOBAL_H #include <QtCore/qglobal.h> #ifdef LIBNAO_LIBRARY #define LIBNAO_API Q_DECL_EXPORT #else #define LIBNAO_API Q_DECL_IMPORT #endif #endif // LIBNAO_GLOBAL_H
21.56
9
(translation_unit) "#ifndef LIBNAO_GLOBAL_H\n#define LIBNAO_GLOBAL_H\n\n#include <QtCore/qglobal.h>\n\n#ifdef LIBNAO_LIBRARY\n#define LIBNAO_API Q_DECL_EXPORT\n#else\n#define LIBNAO_API Q_DECL_IMPORT\n#endif\n\n#endif // LIBNAO_GLOBAL_H\n" (preproc_ifdef) "#ifndef LIBNAO_GLOBAL_H\n#define LIBNAO_GLOBAL_H\n\n#include ...
26
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 21.56, "nodes": 24, "errors": 0, "source_hash": "2133302f413facf2dfe507abead04c98f83b8b6169208da0aa07746fb86847c5", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef L...
4,279
c
/* * Copyright 2018 GoPro Inc. * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Vers...
34.04
249
(translation_unit) "/*\n * Copyright 2018 GoPro Inc.\n *\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you und...
2,069
0
{"language": "c", "success": true, "metadata": {"lines": 249, "avg_line_length": 34.04, "nodes": 1370, "errors": 0, "source_hash": "ccfc21ddf324ce3202a6b16f37f788f8506c4c52331dfc76972387422f00c67f", "categorized_nodes": 905}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
4,280
c
//********************************************************* // // Copyright (c) Microsoft. All rights reserved. // This code is licensed under the MIT License (MIT). // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY // IMPLIED WARRANTIES OF FITNESS FOR A PARTICUL...
33.74
130
(translation_unit) "//*********************************************************\n//\n// Copyright (c) Microsoft. All rights reserved.\n// This code is licensed under the MIT License (MIT).\n// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF\n// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY\n// IMPLIED WARRANTIES...
949
58
{"language": "c", "success": true, "metadata": {"lines": 130, "avg_line_length": 33.74, "nodes": 591, "errors": 0, "source_hash": "baa99fda7967cb5665cb8993792414f31585a98d175d8770a2340732eb865477", "categorized_nodes": 410}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
4,281
c
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. #pragma once #include "GameFramework/GameMode.h" #include "Cookbook_Chapter9GameMode.generated.h" UCLASS(minimalapi) class ACookbook_Chapter9GameMode : public AGameMode { GENERATED_BODY() public: ACookbook_Chapter9GameMode(); void StartMatch(); };
25
12
(translation_unit) "// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.\n#pragma once\n#include "GameFramework/GameMode.h"\n#include "Cookbook_Chapter9GameMode.generated.h"\n\nUCLASS(minimalapi)\nclass ACookbook_Chapter9GameMode : public AGameMode\n{\n GENERATED_BODY()\n\npublic:\n ACookbook_Chapter9GameMode()...
59
3
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 25.0, "nodes": 29, "errors": 0, "source_hash": "c47619fb8b8114930a4d325a07d1ae7ae246197ddc1cff8cbf578d6f5e66c01a", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
4,282
c
/* * Copyright (c) 1997-2014 Wind River Systems, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
30.83
128
(translation_unit) "/*\n * Copyright (c) 1997-2014 Wind River Systems, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\...
147
0
{"language": "c", "success": true, "metadata": {"lines": 128, "avg_line_length": 30.83, "nodes": 100, "errors": 0, "source_hash": "c07cd4949ae603b042656ee213d2899c1061eee86d00ce95a7983ceeac923e96", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,283
c
// // KKBOfflineDefine.h // KaiKeBa // // Created by zddMac on 2019/4/12. // Copyright © 2019 kaikeba. All rights reserved. // #ifndef KKBOfflineDefine_h #define KKBOfflineDefine_h #define OFFLINE_DIR @"Offline" #define OFFLINE_COURSE_TABLE @"OfflineCourse" #define OFFLINE_CONTENT_TABLE ...
26.61
31
(translation_unit) "//\n// KKBOfflineDefine.h\n// KaiKeBa\n//\n// Created by zddMac on 2019/4/12.\n// Copyright © 2019 kaikeba. All rights reserved.\n//\n\n#ifndef KKBOfflineDefine_h\n#define KKBOfflineDefine_h\n\n#define OFFLINE_DIR @"Offline"\n#define OFFLINE_COURSE_TABLE @"OfflineCourse"\n...
90
2
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 26.61, "nodes": 57, "errors": 0, "source_hash": "8a4817a23b967e4d705a77493b12e3d04ebd85c0613bf132397373d8565c334f", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef K...
4,284
c
/* FPF - Frame Processing Framework See the file COPYING for copying permission. */ /* CNode_CADUdump - dumper of TF (CADU) frame structures History: created: 2015-11 - A.Shumilin. */ #ifndef CNODE_CADUDUMP_H #define CNODE_CADUDUMP_H #include <fstream> #include "fpf.h" #define FACTORY_CNODE_CADUDUMP(c) FACTORY_...
25.07
43
(translation_unit) "/*\nFPF - Frame Processing Framework\nSee the file COPYING for copying permission.\n*/\n/*\nCNode_CADUdump - dumper of TF (CADU) frame structures\n\nHistory:\n created: 2015-11 - A.Shumilin.\n*/\n\n#ifndef CNODE_CADUDUMP_H\n#define CNODE_CADUDUMP_H\n#include <fstream>\n#include "fpf.h"\n\n#define...
212
4
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 25.07, "nodes": 141, "errors": 0, "source_hash": "880eed69e958aa84c74af43a390cd94ba5df236bf0c1e7b45b180639c17d4f53", "categorized_nodes": 96}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,285
c
#pragma once #include "multiex.h" class MultiExPlugin { private: GUID m_uid; HMODULE m_hModule; Array<ArchiveFormatInfo> m_pFormatInfo; string m_strModuleName; MPGETINTERFACEVERSION m_pfnMpGetInterfaceVersion; MPGETPLUGININFO m_pfnMpGetPluginInfo; MPGETFORMATCOUNT m_pfnMpGetFormatCount; MPGETFORMATINFO ...
38.67
66
(translation_unit) "ragma once\n#include "multiex.h"\n\nclass MultiExPlugin {\n\nprivate:\n\n GUID m_uid;\n HMODULE m_hModule;\n\n Array<ArchiveFormatInfo> m_pFormatInfo;\n \n string m_strModuleName;\n\n MPGETINTERFACEVERSION m_pfnMpGetInterfaceVersion;\n MPGETPLUGININFO m_pfnMpGetPluginInfo;\n MPGETFORMATCOUNT m_pfnMp...
546
8
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 38.67, "nodes": 393, "errors": 0, "source_hash": "392e17ee7aa3407b1172cc0426a40b20bb15c3788123d13a8ac5c9dbfcca33e3", "categorized_nodes": 286}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma o...
4,286
c
#include "quad.h" /* * Return remainder after dividing two signed quads. * * XXX we assume a % b < 0 iff a < 0, but this is actually machine-dependent. */ quad_t __moddi3(quad_t a, quad_t b) { u_quad_t ua, ub, ur; int neg = 0; ua = a; ub = b; if (a < 0) { ua = -ua, neg ^= 1; } if (b < 0) { ub = -ub; ...
15.38
24
(translation_unit) "#include "quad.h"\n\n/*\n * Return remainder after dividing two signed quads.\n *\n * XXX we assume a % b < 0 iff a < 0, but this is actually machine-dependent.\n */\nquad_t\n__moddi3(quad_t a, quad_t b) {\n u_quad_t ua, ub, ur;\n int neg = 0;\n\n ua = a;\n ub = b;\n\n if (a < 0) {\n ua = -ua, neg ...
141
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 15.38, "nodes": 84, "errors": 0, "source_hash": "ae605814eb3023bd7cee76cad4684e58be12b8ccc06fe329dfdee3e544c7f2b0", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
4,287
c
// // CityManage.h // SurfNewsHD // // Created by yujiuyin on 14/12/22. // Copyright (c) 2014年 apple. All rights reserved. // #import <Foundation/Foundation.h> #import "SurfJsonResponseBase.h" @interface CityRssListData : NSObject @property(nonatomic,strong) NSString *cityId; @property(nonatomic,strong) NSStrin...
23.94
34
(translation_unit) "//\n// CityManage.h\n// SurfNewsHD\n//\n// Created by yujiuyin on 14/12/22.\n// Copyright (c) 2014年 apple. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "SurfJsonResponseBase.h"\n\n\n@interface CityRssListData : NSObject\n\n@property(nonatomic,strong) NSString *cityId;\n...
210
38
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 23.94, "nodes": 153, "errors": 0, "source_hash": "63b495d958f7c47cddb4a940e12fc771680fae509ca0c6830790ec175d040e06", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <F...
4,288
c
#include <stdio.h> #include <math.h> int a[10000000]={0}; int b[10000000]={0}; int f[10000000]={0}; /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main() { int n; scanf("%d",&n); int s,i,d; int k=1,pd; for (d=1;d<=n;d++) { b[d]=1; } ...
14.84
37
(translation_unit) "#include <stdio.h>\n#include <math.h>\nint a[10000000]={0};\nint b[10000000]={0};\nint f[10000000]={0};\n/* run this program using the console pauser or add your own getch, system("pause") or input loop */\n\nint main() {\n int n;\n scanf("%d",&n);\n int s,i,d;\n int k=1,pd;\n for (d=1;d...
313
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 14.84, "nodes": 177, "errors": 0, "source_hash": "d33dd142f8af991b438ac2b9643b241380df0dd7acae2b3b11b391f956584fc9", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,289
c
/** * * Created by https://github.com/mythkiven/ on 19/05/23. * Copyright © 2019年 mythkiven. All rights reserved. * */ #import <Cocoa/Cocoa.h> @interface AboutVC : NSWindowController @end
20.44
9
(translation_unit) "/**\n *\n * Created by https://github.com/mythkiven/ on 19/05/23.\n * Copyright © 2019年 mythkiven. All rights reserved.\n *\n */\n\n#import <Cocoa/Cocoa.h>\n\n@interface AboutVC : NSWindowController\n\n@end\n" (comment) "/**\n *\n * Created by https://github.com/mythkiven/ on 19/05/23.\n * Copyrig...
16
4
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 20.44, "nodes": 12, "errors": 0, "source_hash": "ff335fbb7b62f38ee2950a3d612aa5bfe1c9cd07e442225a1a91b2bee06984ab", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Cocoa...
4,290
c
/* Copyright (c) 2010 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 PPAPI_C_PP_VAR_H_ #define PPAPI_C_PP_VAR_H_ /** * @file * Defines the API ... * * @addtogroup PP * @{ */ #include "ppapi/c/pp_bool....
29.44
86
(translation_unit) "/* Copyright (c) 2010 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 PPAPI_C_PP_VAR_H_\n#define PPAPI_C_PP_VAR_H_\n\n/**\n * @file\n * Defines the API ...\n *\n * @addtogroup PP\n * @{...
351
0
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 29.44, "nodes": 214, "errors": 0, "source_hash": "46796143c57fe4dfef26e4a8be8e477c627e07dc73b0a4ba845500b2738ed393", "categorized_nodes": 175}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,291
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* intersections.c :+: :+: :+: ...
36.32
71
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* intersections.c ...
949
0
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 36.32, "nodes": 588, "errors": 0, "source_hash": "e0eccb6ed6b3a36bed7f66ce6066e97de1488c41b8c240fd3f05229176981931", "categorized_nodes": 472}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,292
c
#ifndef __LED_HEADER_H #define __LED_HEADER_H // LED Color typedefs -------------------------------------------------------------------------------------------------- typedef enum { RED, BLUE, GREEN, ORANGE, PURPLE } led_color_t; // LED functionality ---------------------------------------------------------...
30.12
17
(translation_unit) "#ifndef __LED_HEADER_H \n#define __LED_HEADER_H \n \n// LED Color typedefs -------------------------------------------------------------------------------------------------- \n \ntypedef enum { RED, BLUE, GREEN, ORANGE, PURPLE } led_color_t; \n \n \n// LED functionality -----------------------------...
85
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 30.12, "nodes": 59, "errors": 0, "source_hash": "d361ee832055bbd227d7c857386b5aa0ccbf427c8446299d1501e616c26cf885", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,293
c
// // GLCryptor.h // gl-ios // // Created by henvy on 2019/8/20. // Copyright © 2019 henvy. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface GLCryptor : NSObject + (NSString *)encrypt:(NSData *)data publicKeyInHex:(NSString *)keyInHex; @end NS_ASSUME_NONNULL_END
22.92
13
(translation_unit) "//\n// GLCryptor.h\n// gl-ios\n//\n// Created by henvy on 2019/8/20.\n// Copyright © 2019 henvy. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface GLCryptor : NSObject\n\n+ (NSString *)encrypt:(NSData *)data publicKeyInHex:(NSString *)keyInHex...
62
5
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 22.92, "nodes": 32, "errors": 0, "source_hash": "48fef400472da0b3513cd151d30bedc7ebb1a9b8b30e1ff812da55b9ef8887be", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
4,294
c
/** * Copyright (C) 2017, <NAME> **/ /** * @brief ITC module binary management * @details This file provides the function that is used to manage the module binary * Both built-in module and external module in a same way * @file itc/binary.h **/ #ifndef __PLUMBER_ITC_BINARY_H__ #define __PLUMBER_ITC_BINA...
28.11
28
(translation_unit) "/**\n * Copyright (C) 2017, <NAME>\n **/\n/**\n * @brief ITC module binary management\n * @details This file provides the function that is used to manage the module binary\n * Both built-in module and external module in a same way\n * @file itc/binary.h\n **/\n#ifndef __PLUMBER_ITC_BINARY_H...
53
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 28.11, "nodes": 33, "errors": 0, "source_hash": "5a0a3b282793f8e9c4cd7aa231ce933089996f70020c507dfe1cb6b393c3f0f2", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,295
c
// // ContactViewController.h // MyFitnessApp // // Created by macmini on 09/01/17. // Copyright © 2017 rlogical-dev-21. All rights reserved. // #import <UIKit/UIKit.h> @interface ContactViewController : UIViewController { } - (IBAction)btnBack:(id)sender; @end
18.36
14
(translation_unit) "//\n// ContactViewController.h\n// MyFitnessApp\n//\n// Created by macmini on 09/01/17.\n// Copyright © 2017 rlogical-dev-21. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ContactViewController : UIViewController\n{\n \n}\n- (IBAction)btnBack:(id)sender;\n\n@end\n" (comm...
43
6
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 18.36, "nodes": 21, "errors": 0, "source_hash": "992e9a0ce7e6e7691637e4db76f206b915abc723696c71c715f650ea6c1bf688", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
4,296
c
#ifndef __CCX_PLUGINMANAGER_H__ #define __CCX_PLUGINMANAGER_H__ #include "PluginProtocol.h" #include "RegisterPlugin.h" namespace cocos2d { namespace plugin { class PluginManager { public: virtual ~PluginManager(); /** Get singleton of PluginManager */ static PluginManager* getInstance(); /**...
25.13
30
(translation_unit) "#ifndef __CCX_PLUGINMANAGER_H__ \n#define __CCX_PLUGINMANAGER_H__ \n \n#include "PluginProtocol.h" \n#include "RegisterPlugin.h" \n \nnamespace cocos2d { namespace plugin { \n \nclass PluginManager \n{ \npublic: \n virtual ~PluginManager(); \n /** Get singleton of PluginManager */ \n static Plugi...
149
2
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 25.13, "nodes": 83, "errors": 0, "source_hash": "864b0d53e7dfd4d65c22a973d2eadaae2e6dcf4d5959a8fbe04738de757ab2f1", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,297
c
// // HttpBasicAuth.h // HttpBasicAuth // // This source file is part of the HttpBasicAuth open source project // // Created by <NAME> on 1/13/16. // Copyright © 2016 Beckersoft. All rights reserved. // Licensed under MIT License // // See LICENSE.txt for license information. // #import <Cocoa/Cocoa.h> //! Pro...
35.83
18
(translation_unit) "//\n// HttpBasicAuth.h\n// HttpBasicAuth\n//\n// This source file is part of the HttpBasicAuth open source project\n//\n// Created by <NAME> on 1/13/16.\n// Copyright © 2016 Beckersoft. All rights reserved.\n// Licensed under MIT License\n//\n// See LICENSE.txt for license information.\n//\n\...
38
1
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 35.83, "nodes": 15, "errors": 0, "source_hash": "df0fa02284d329fb86f7e2875afa6f044734c849dc7f83bdea069bd33c232598", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <C...
4,298
c
// Abstract syntax tree - header file. // Copyright (C) 2017, 2018 <NAME> <<EMAIL>> // // All rights reserved. // // See the LICENSE file for more details. #ifndef ABSTRACT_SYNTAX_TREE_H #define ABSTRACT_SYNTAX_TREE_H #include <cstring> #include <queue> #include <stack> #include "ASTNode.h" // Declaration flags #d...
40.34
125
(translation_unit) "// Abstract syntax tree - header file.\n// Copyright (C) 2017, 2018 <NAME> <<EMAIL>>\n//\n// All rights reserved.\n//\n// See the LICENSE file for more details.\n\n#ifndef ABSTRACT_SYNTAX_TREE_H\n#define ABSTRACT_SYNTAX_TREE_H\n\n#include <cstring>\n#include <queue>\n#include <stack>\n\n#include "A...
939
15
{"language": "c", "success": true, "metadata": {"lines": 125, "avg_line_length": 40.34, "nodes": 603, "errors": 0, "source_hash": "abfe4394ebceb5fe69b39089e50b24f1f225c02a5e55225178187b8655eeea82", "categorized_nodes": 360}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,299