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
/* * GPIOOutput.h * * Created on: Jul. 23, 2021 * Author: bruno */ #ifndef COMMON_STM32_GPIO_GPIOOUTPUT_H_ #define COMMON_STM32_GPIO_GPIOOUTPUT_H_ #include <common/stm32/mcu/MCU.h> typedef struct { MCU* mcu; GPIO_TypeDef* port; uint16_t pin; } GPIOOutput; void gpio_output_init(GPIOOutput* gpi...
29.14
21
(translation_unit) "/*\n * GPIOOutput.h\n *\n * Created on: Jul. 23, 2021\n * Author: bruno\n */\n\n#ifndef COMMON_STM32_GPIO_GPIOOUTPUT_H_\n#define COMMON_STM32_GPIO_GPIOOUTPUT_H_\n\n#include <common/stm32/mcu/MCU.h>\n\ntypedef struct {\n MCU* mcu;\n GPIO_TypeDef* port;\n uint16_t pin;\n} GPIOOutput;\n\...
135
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 29.14, "nodes": 103, "errors": 0, "source_hash": "5eb6dde7f311c90d604d828bbad635baac39bcb269a539564f71d11dfdbe7ee0", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
0
c
/*! * @brief ASN(x) STEMMA SOIL sensor library -- source file * * Library to support the STEMMA SOIL sensor. * * @file /_asnx_lib_/sensors/stemma_soil.c * @author <NAME> * @version 1.2.0 * @date 2021/06/07 * * @see https://learn.adafruit.com/adafruit-stemma-soil-sensor-i2c-capacitive-moisture-sen...
33.64
152
(translation_unit) "/*!\n * @brief ASN(x) STEMMA SOIL sensor library -- source file\n *\n * Library to support the STEMMA SOIL sensor.\n *\n * @file /_asnx_lib_/sensors/stemma_soil.c\n * @author <NAME>\n * @version 1.2.0\n * @date 2021/06/07\n *\n * @see https://learn.adafruit.com/adafruit-stemma-soil-sens...
783
0
{"language": "c", "success": true, "metadata": {"lines": 152, "avg_line_length": 33.64, "nodes": 451, "errors": 0, "source_hash": "959b58ead3a28cf22980ac6b84e3a37a2bfa90bb08012c121434292585378e3b", "categorized_nodes": 324}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
1
c
// Copyright (c) 2006-2013 INRIA Nancy-Grand Est (France). All rights reserved. // // This file is part of CGAL (www.cgal.org); you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public License as // published by the Free Software Foundation; either version 3 of the License, // or (at...
35.77
62
(translation_unit) "// Copyright (c) 2006-2013 INRIA Nancy-Grand Est (France). All rights reserved.\n//\n// This file is part of CGAL (www.cgal.org); you can redistribute it and/or\n// modify it under the terms of the GNU Lesser General Public License as\n// published by the Free Software Foundation; either version 3 o...
289
19
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 35.77, "nodes": 176, "errors": 0, "source_hash": "284ee7adb15677bb191667d68b0f0311731cd7abe965e4396e1ac8aaf436ed8c", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "Base.h" @interface UTRANNeighbhorMeasurements : Base { } - (void)updateWithData:(id)arg1 logCode:(int)arg2; // IMP=0x00000001000166ec - (id)getLogCodeArray; // IMP=0x0000000100...
31.14
14
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "Base.h"\n\n@interface UTRANNeighbhorMeasurements : Base\n{\n}\n\n- (void)updateWithData:(id)arg1 logCode:(int)arg2; // IMP=0x00000001000166ec\n- (id)get...
95
9
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 31.14, "nodes": 51, "errors": 0, "source_hash": "5b4cf8632c26df141bb4492629d11d8dca4b77e0cd2afafe5b353f446b2a99e5", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
3
c
#include <string.h> #include <stdlib.h> #include "vm_loader.h" #include "vm.h" #include "vm_util.h" #include "vm_extern.h" #include "vm_hashmap.h" #include "vm_string.h" #include "vm_symbols.h" typedef struct { char name[16]; uint32_t size; uint8_t data[]; } vm_loader_section_t; typedef struct { vm_type_t type; ...
30.98
181
(translation_unit) "#include <string.h>\n#include <stdlib.h>\n#include "vm_loader.h"\n#include "vm.h"\n#include "vm_util.h"\n#include "vm_extern.h"\n#include "vm_hashmap.h"\n#include "vm_string.h"\n#include "vm_symbols.h"\n\ntypedef struct {\n char name[16];\n uint32_t size;\n uint8_t data[];\n} vm_loader_section_t;\n\...
1,737
0
{"language": "c", "success": true, "metadata": {"lines": 181, "avg_line_length": 30.98, "nodes": 1035, "errors": 0, "source_hash": "498a8fada1b03cc3e227929f4d324c72087dc45d1843e5e7ea3fe3601af53233", "categorized_nodes": 713}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
4
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include "stringList.h" /////////////////////////// // this list is a sorted list of strings // every node contains a string stringList createStringNode(char *str){ // create a node of the list for the given string stringList newnode=(st...
35.02
103
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <time.h>\n#include "stringList.h"\n\n\n///////////////////////////\n// this list is a sorted list of strings\n// every node contains a string\n\n\nstringList createStringNode(char *str){ // create a node of the list for the given...
589
0
{"language": "c", "success": true, "metadata": {"lines": 103, "avg_line_length": 35.02, "nodes": 331, "errors": 0, "source_hash": "7c06b792181b07febdc13931d2eaa67a9ce5de641ce689219309f80b3f54b2df", "categorized_nodes": 239}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5
c
#include "geminc.h" #include "naltxt.h" Widget CreateLabelWidget ( Widget parent, char name[], char message[], Arg *args, int n ) /************************************************************************ * CreateLabelWidget * * * * Widget CreateLabelWidget(parent, name, message, args, n) * ...
24.98
40
(translation_unit) "#include "geminc.h"\n#include "naltxt.h"\n\n\nWidget CreateLabelWidget ( Widget parent, char name[], char message[], \n Arg *args, int n )\n/************************************************************************\n * CreateLabelWidget *\n * *\n * Widget CreateLabelWidget(parent,...
128
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 24.98, "nodes": 71, "errors": 0, "source_hash": "ba255e2196bbe3722df33448b3415370fc01536533f71cdd21c993b7768ed350", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
6
c
// Generated by Haxe 4.0.0-rc.2+77068e10c #ifndef INCLUDED_openfl_utils__Endian_Endian_Impl_ #define INCLUDED_openfl_utils__Endian_Endian_Impl_ #ifndef HXCPP_H #include <hxcpp.h> #endif HX_DECLARE_CLASS2(lime,_hx_system,Endian) HX_DECLARE_CLASS3(openfl,utils,_Endian,Endian_Impl_) namespace openfl{ namespace utils{ n...
38.47
60
(translation_unit) "// Generated by Haxe 4.0.0-rc.2+77068e10c\n#ifndef INCLUDED_openfl_utils__Endian_Endian_Impl_\n#define INCLUDED_openfl_utils__Endian_Endian_Impl_\n\n#ifndef HXCPP_H\n#include <hxcpp.h>\n#endif\n\nHX_DECLARE_CLASS2(lime,_hx_system,Endian)\nHX_DECLARE_CLASS3(openfl,utils,_Endian,Endian_Impl_)\n\nnames...
691
38
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 38.47, "nodes": 367, "errors": 0, "source_hash": "7e1ae4db4f7668b2094b3d9a49fd5a749426901c42470eaa5b6133e0d02d7c4e", "categorized_nodes": 250}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7
c
// can put any payload here. #include <stdio.h> // the C code for thompson's replicating program, more-or-less. int main() { int i; // Q: why can't we just print prog twice? printf("char prog[] = {\n"); for(i = 0; prog[i]; i++) printf("\t%d,%c", prog[i], (i+1)%8==0 ? '\n' : ' '); printf("0 };\n"); printf("%...
25.31
13
(translation_unit) "// can put any payload here.\n#include <stdio.h>\n\n// the C code for thompson's replicating program, more-or-less.\nint main() { \n int i;\n\n // Q: why can't we just print prog twice?\n printf("char prog[] = {\n");\n for(i = 0; prog[i]; i++)\n printf("\t%d,%c", prog[i], (i+1)%8==0 ? '\n' : ' ');...
123
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 25.31, "nodes": 68, "errors": 0, "source_hash": "18191c20dfdbd8dcd9cb15531fb617da4b8bd83f5bc379d4fadd7e810bb508ff", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
8
c
// // RHReceivePacketCache.h // Pipeline // // Created by zhuruhong on 2019/9/28. // Copyright © 2019年 zhuruhong. All rights reserved. // #import <Foundation/Foundation.h> #import <RHSocketKit/RHSocketKit.h> //NS_ASSUME_NONNULL_BEGIN @interface RHReceivePacketCache : RHDownstreamBuffer @end //NS_ASSUME_NONNULL...
23.62
13
(translation_unit) "//\n// RHReceivePacketCache.h\n// Pipeline\n//\n// Created by zhuruhong on 2019/9/28.\n// Copyright © 2019年 zhuruhong. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <RHSocketKit/RHSocketKit.h>\n\n//NS_ASSUME_NONNULL_BEGIN\n\n@interface RHReceivePacketCache : RHDownstream...
24
3
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 23.62, "nodes": 13, "errors": 0, "source_hash": "3cd5062c59df58f46f593c01c8b1820d104815f91c4beba28f1e84bb0f5f400c", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Foun...
9
c
// stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, // but are changed infrequently #if !defined(AFX_STDAFX_H__D285D157_ED84_11D1_8466_0020AF05ED45__INCLUDED_) #define AFX_STDAFX_H__D285D157_ED84_11D1_8466_0020AF05ED45__INCLUDED_ #if _...
31.38
65
(translation_unit) "// stdafx.h : include file for standard system include files,\n// or project specific include files that are used frequently,\n// but are changed infrequently\n\n#if !defined(AFX_STDAFX_H__D285D157_ED84_11D1_8466_0020AF05ED45__INCLUDED_)\n#define AFX_STDAFX_H__D285D157_ED84_11D1_8466_0020A...
374
9
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 31.38, "nodes": 258, "errors": 0, "source_hash": "253cb987ed9f4f87e69c0888fda3f816539bf6e5a560521d4b00a93016959a3e", "categorized_nodes": 186}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defi...
10
c
/* * Copyright (c) 2012-2015, <NAME> and other contributors * * 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 copies. * * THE SOFTWARE IS PROVIDED "AS IS...
37.95
57
(translation_unit) "/*\n * Copyright (c) 2012-2015, <NAME> and other contributors\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 permission notice appear in all copies.\n *\n * THE ...
198
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 37.95, "nodes": 120, "errors": 0, "source_hash": "490341334c5d9e72afd4a4dec7e780de2fa00c51ed95a425f4e167d4ff735996", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
11
c
#ifndef DTK_POINTS_H #define DTK_POINTS_H #include <memory> #include <boost/utility.hpp> #include "dtkConfig.h" #include "dtkTx.h" #include "dtkIDTypes.h" #include "dtkGraphicsKernel.h" namespace dtk { //! A points container /*! It is used in many graphical element in DTK, * such as Mesh, Graph *...
27.91
32
(translation_unit) "#ifndef DTK_POINTS_H\n#define DTK_POINTS_H\n\n#include <memory>\n#include <boost/utility.hpp>\n\n#include "dtkConfig.h"\n#include "dtkTx.h"\n#include "dtkIDTypes.h"\n\n#include "dtkGraphicsKernel.h"\n\nnamespace dtk\n{\n //! A points container\n /*! It is used in many graphical element in DTK,...
256
17
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 27.91, "nodes": 163, "errors": 0, "source_hash": "0bbbb2a8d9ab985fc9fab1e6b709763797958d451e8b1aca6bbe5d6209b180d1", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12
c
#include "gyro_factory.h" static int gyro_factory_open(struct inode *inode, struct file *file) { file->private_data = gyro_context_obj; if (file->private_data == NULL) { GYRO_ERR("null pointer!!\n"); return -EINVAL; } return nonseekable_open(inode, file); } static int gyro_factory...
26.63
254
(translation_unit) "#include "gyro_factory.h"\n\nstatic int gyro_factory_open(struct inode *inode, struct file *file)\n{\n file->private_data = gyro_context_obj;\n\n if (file->private_data == NULL)\n {\n GYRO_ERR("null pointer!!\n");\n return -EINVAL;\n }\n return nonseekable_open(inode, fi...
1,962
8
{"language": "c", "success": true, "metadata": {"lines": 254, "avg_line_length": 26.63, "nodes": 1130, "errors": 0, "source_hash": "0d4c73b168380f328ce546371aace21d449d852d347dd98d3815e5a140813b93", "categorized_nodes": 804}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
13
c
#pragma once #include"DenseMapDrawer.h" #include <thread> // std::thread #include <mutex> // std::mutex, std::unique_lock class Plane { public: Plane(const std::vector<cv::Vec3f> &vMPs, const cv::Mat &Tcw); Plane(const float &nx, const float &ny, const float &nz, const float &ox, ...
28.77
53
(translation_unit) "#pragma once\n\n#include"DenseMapDrawer.h"\n#include <thread> // std::thread\n#include <mutex> // std::mutex, std::unique_lock\nclass Plane\n{\npublic:\n Plane(const std::vector<cv::Vec3f> &vMPs, const cv::Mat &Tcw);\n Plane(const float &nx, const float &ny, const...
455
24
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 28.77, "nodes": 264, "errors": 0, "source_hash": "79ad0312d02ed6de38008a1ccef767c2336b076a83953dd093cfc8bc1b64b8dc", "categorized_nodes": 182}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
14
c
/* * Original work: * htpasswd.c: simple program for manipulating password file for NCSA httpd. * <NAME> * Adapted for Apache CouchDB by <NAME> <<EMAIL>>. */ #include <sys/types.h> #include <stdio.h> #include <string.h> #include <sys/signal.h> #include <stdlib.h> #include <time.h> #include <unistd.h> #define LF...
25.19
156
(translation_unit) "/*\n * Original work:\n * htpasswd.c: simple program for manipulating password file for NCSA httpd.\n * <NAME>\n * Adapted for Apache CouchDB by <NAME> <<EMAIL>>. \n */\n\n#include <sys/types.h>\n#include <stdio.h>\n#include <string.h>\n#include <sys/signal.h>\n#include <stdlib.h>\n#include <time.h>...
1,583
0
{"language": "c", "success": true, "metadata": {"lines": 156, "avg_line_length": 25.19, "nodes": 896, "errors": 0, "source_hash": "91cd330b28ff7fd06d140ac8a61315fe6420515d47b6c24b24d50deaf3a70b39", "categorized_nodes": 613}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
15
c
/* Contains structures required for reading and writing data for this program */ /* Simple data definitions */ typedef unsigned char BYTE; typedef unsigned short WORD; /* N.B.: To get 32-bit on both 32-bit and 64-bit compiles, use `int' instead of `long'. */ typedef unsigned int DWORD; typedef long LONG; /* ? *...
28.1
77
(translation_unit) "/* Contains structures required for reading and writing data for this\n program */\n\n/* Simple data definitions */\ntypedef unsigned char BYTE;\ntypedef unsigned short WORD;\n/* N.B.: To get 32-bit on both 32-bit and 64-bit compiles, use `int'\n instead of `long'. */\ntypedef unsigned int DWOR...
265
0
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 28.1, "nodes": 182, "errors": 0, "source_hash": "f36831bd4de292f2ce9c94b3e6ba2742fa93b65d8188e7b8a030b876370f9570", "categorized_nodes": 140}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "typed...
16
c
/** * error.h * * Copyright (C) 2017 <NAME> <<EMAIL>> */ #ifndef GIT_STASHD_ERROR_H #define GIT_STASHD_ERROR_H #include "common.h" int is_error(int); #endif /* GIT_STASHD_ERROR_H */
17.6
10
(translation_unit) "/**\n * error.h\n *\n * Copyright (C) 2017 <NAME> <<EMAIL>>\n */\n\n#ifndef GIT_STASHD_ERROR_H\n#define GIT_STASHD_ERROR_H\n\n#include "common.h"\n\nint is_error(int);\n\n#endif /* GIT_STASHD_ERROR_H */\n" (comment) "/**\n * error.h\n *\n * Copyright (C) 2017 <NAME> <<EMAIL>>\n */" (preproc_ifde...
26
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 17.6, "nodes": 17, "errors": 0, "source_hash": "56ca4bd05496dd88cd6bdeee4a104fe141a38cc83c95f5327fdadcee1842dd43", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef G...
17
c
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif FOUNDATION_EXPORT double BindableVersionNumber; FOUNDATION_EXPORT const unsigned char BindableVersionString[];
20.86
14
(translation_unit) "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#else\n#ifndef FOUNDATION_EXPORT\n#if defined(__cplusplus)\n#define FOUNDATION_EXPORT extern "C"\n#else\n#define FOUNDATION_EXPORT extern\n#endif\n#endif\n#endif\n\n\nFOUNDATION_EXPORT double BindableVersionNumber;\nFOUNDATION_EXPORT const unsigned char Bind...
52
1
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 20.86, "nodes": 42, "errors": 0, "source_hash": "761ba40ae2b5c1a9a1c4cc3467e5600660c570e5d4bc01abab69fcc0f1e1eaa9", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef _...
18
c
#include <stdlib.h> #include <csolve.h> void f (int *y) { int x = *y; csolve_assert(0); } void main () { int *z; z = (int *)malloc(sizeof(int)); f(z); }
14.73
11
(translation_unit) "#include <stdlib.h>\n#include <csolve.h>\n\nvoid f (int *y) {\n int x = *y;\n\n csolve_assert(0);\n}\n\nvoid main () {\n int *z;\n\n z = (int *)malloc(sizeof(int));\n f(z);\n}\n" (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>"...
86
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 14.73, "nodes": 56, "errors": 0, "source_hash": "5399bd6f082d488cf0d74b555161cc65a9ba1c7b6528ef3797b62dc2f573a402", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
19
c
#pragma once #include "sys/types.h" struct thread; void timer_add_sleep(struct thread *thr); void timer_remove_sleep(struct thread *thr); void amd64_timer_init(void);
26.83
6
(translation_unit) "#pragma once\n#include "sys/types.h"\n\nstruct thread;\n\nvoid timer_add_sleep(struct thread *thr);\nvoid timer_remove_sleep(struct thread *thr);\nvoid amd64_timer_init(void);\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#includ...
54
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 26.83, "nodes": 40, "errors": 0, "source_hash": "8139071470a6b7aab54b20a2d9c7140f3a91f0567d4176cc5d17d7f7c8c65142", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
20
c
// // LocationViewController.h // Pro_Motion_App // // Created by <NAME> on 16/12/15. // Copyright © 2015 Mindscrub Technologies. All rights reserved. // #import <UIKit/UIKit.h> //#import "APLGraphView.h" //#import "Pro_Motion_App-Swift.h" #import "DataSimulator.h" #import "CorePlot-CocoaTouch.h" @import Charts; ...
40.13
31
(translation_unit) "//\n// LocationViewController.h\n// Pro_Motion_App\n//\n// Created by <NAME> on 16/12/15.\n// Copyright © 2015 Mindscrub Technologies. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n//#import "APLGraphView.h"\n//#import "Pro_Motion_App-Swift.h"\n#import "DataSimulator.h"\n#import "CorePlot...
280
34
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 40.13, "nodes": 202, "errors": 0, "source_hash": "3ffd1ed0f52c836657a9301f851666584790c96e55f79f7eb7822ff46a929e96", "categorized_nodes": 123}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import ...
21
c
/* * MIT License * * Copyright (c) 2021 ETJump team <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use...
25.65
107
(translation_unit) "/*\n * MIT License\n * \n * Copyright (c) 2021 ETJump team <<EMAIL>>\n * \n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limi...
496
17
{"language": "c", "success": true, "metadata": {"lines": 107, "avg_line_length": 25.65, "nodes": 315, "errors": 0, "source_hash": "fd4e4a234e27940ae5923ad385052435a8d4bea939ac6c05bf533ee89bbe5d35", "categorized_nodes": 236}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
22
c
/* * KikiTools.h * kiki */ #ifndef __KikiTools #define __KikiTools #include <KVector.h> // -------------------------------------------------------------------------------------------------------- KVector kRayPlaneIntersection ( const KVector & rayPos, const KVector & rayDirection, ...
50.62
16
(translation_unit) "/*\n * KikiTools.h\n * kiki\n */\n\n#ifndef __KikiTools\n#define __KikiTools\n\n#include <KVector.h>\n\n// --------------------------------------------------------------------------------------------------------\n\nKVector kRayPlaneIntersection ( const KVector & rayPos, const KVector & rayDirectio...
123
11
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 50.62, "nodes": 58, "errors": 0, "source_hash": "582c4c36bf5f21ecfac8cb69a7e05ef797954f601e5f7975284cc88a4d7a8b1b", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
23
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* vectors.c :+: :+: :+: ...
32.54
57
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* vectors.c ...
632
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 32.54, "nodes": 407, "errors": 0, "source_hash": "281e1d8a2a17aecdf54947d51e6c135b9213cdac3b0cfacd808f735c85612e90", "categorized_nodes": 349}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
24
c
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #pragma once namespace Reliab...
33.64
22
(translation_unit) "// ------------------------------------------------------------\n// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.\n// ------------------------------------------------------------\n\n#prag...
81
2
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 33.64, "nodes": 45, "errors": 0, "source_hash": "513aa33d9301a1657c8fa760ef476177f07a37432c31c15917a69fafc2aa0ae3", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
25
c
#include <stdio.h> #include <stdlib.h> int main(int argc, char ** argv) { double mul = 1; for (int i = 0; i < argc - 1; ++i) { mul *= atof(argv[i + 1]); } printf("%.15g\n", mul); return 0; }
18.8
10
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\nint main(int argc, char ** argv) {\n double mul = 1;\n for (int i = 0; i < argc - 1; ++i) {\n mul *= atof(argv[i + 1]);\n }\n\n printf("%.15g\n", mul);\n\n return 0;\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib...
96
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 18.8, "nodes": 64, "errors": 0, "source_hash": "7d59115429c9f80c5214f31ec562088c6165b7c36cd66e910434cc135b442888", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
26
c
#ifndef OBJECT_H_4CRNBTM9 #define OBJECT_H_4CRNBTM9 #include <stdarg.h> #include <stdio.h> #include <stdlib.h> typedef struct Class_t { size_t size; void* (*Constructor)(void* self, va_list* valist); void* (*Destructor)(void* self); void* (*Clone)(const void* self); int (*Differ)(const void* self...
29.54
13
(translation_unit) "#ifndef OBJECT_H_4CRNBTM9\n#define OBJECT_H_4CRNBTM9\n\n#include <stdarg.h>\n#include <stdio.h>\n#include <stdlib.h>\n\ntypedef struct Class_t {\n size_t size;\n\n void* (*Constructor)(void* self, va_list* valist);\n void* (*Destructor)(void* self);\n void* (*Clone)(const void* self);\n ...
128
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 29.54, "nodes": 93, "errors": 0, "source_hash": "e42cb117a7d0d95042faa4fd647e5756cb492f6deb24303832e1318955c8a307", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
27
c
// // DS.h // Differential // // Created by <NAME> on 22/04/2017. // Copyright © 2017 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface DS : NSObject +(NSDictionary *)diffShadowAndClient:(NSArray *)client shadow:(NSArray *)shadow; +(NSDictionary *)diffWins:(NSArray *)wins andLoses:(NSA...
30.23
13
(ERROR) "//\n// DS.h\n// Differential\n//\n// Created by <NAME> on 22/04/2017.\n// Copyright © 2017 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface DS : NSObject\n\n+(NSDictionary *)diffShadowAndClient:(NSArray *)client shadow:(NSArray *)shadow;\n+(NSDictionary *)diffWins:(NSArra...
89
7
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 30.23, "nodes": 39, "errors": 0, "source_hash": "aaeffba9a0f6211f440240251fda652b0f45bdbaaa906c8db407b67dcf145197", "categorized_nodes": 30}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// DS.h\n// Different...
28
c
/* utilities are used internally by ofxCv, and make it easier to write code that can work with OpenCv and openFrameworks data. useful functions from this file: - imitate and copy - toCv and toOf */ #pragma once #include "opencv2/opencv.hpp" #include "ofRectangle.h" #include "ofTexture.h" #include "ofPixels.h"...
34.32
325
(translation_unit) "/*\n utilities are used internally by ofxCv, and make it easier to write code that\n can work with OpenCv and openFrameworks data.\n \n useful functions from this file:\n - imitate and copy\n - toCv and toOf\n */\n\n#pragma once\n\n#include "opencv2/opencv.hpp"\n#include "ofRectangle.h"\n#include "o...
3,367
125
{"language": "c", "success": true, "metadata": {"lines": 325, "avg_line_length": 34.32, "nodes": 2050, "errors": 0, "source_hash": "0c4a36524d9bc261c3d7fed98ea727f470c036bbeda83d8b6ed1133b51afe8b1", "categorized_nodes": 1507}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pra...
29
c
/* Copyright (c) 2009 Yahoo! Inc. All rights reserved. The copyrights embodied in the content of this file are licensed under the BSD (revised) open source license */ #ifndef PE_H #define PE_H #include <stdint.h> #include "io.h" #include "parse_regressor.h" #include "parse_primitives.h" #include "parser.h" #include...
25.18
17
(translation_unit) "/*\nCopyright (c) 2009 Yahoo! Inc. All rights reserved. The copyrights\nembodied in the content of this file are licensed under the BSD\n(revised) open source license\n */\n\n#ifndef PE_H\n#define PE_H\n#include <stdint.h>\n#include "io.h"\n#include "parse_regressor.h"\n#include "parse_primitives....
80
1
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 25.18, "nodes": 50, "errors": 0, "source_hash": "f2b71d3f97a77f54336e52930f5a95786635c3b699964694c833d5c90ffdeabd", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
30
c
// // Meal.h // FoodTrackerObjC // // Created by <NAME> on 19/3/18. // Copyright © 2018 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface Meal : NSObject @property (weak, nonatomic) NSString *name; @property (weak, nonatomic) UIImage *photo; @property (nonatomic) NSInteger rating; -(void)setPa...
25.4
15
(translation_unit) "//\n// Meal.h\n// FoodTrackerObjC\n//\n// Created by <NAME> on 19/3/18.\n// Copyright © 2018 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n\n@interface Meal : NSObject\n\n@property (weak, nonatomic) NSString *name;\n@property (weak, nonatomic) UIImage *photo;\n@property (nonatom...
104
16
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 25.4, "nodes": 66, "errors": 0, "source_hash": "407598d27546229643f88766cac37ecf00a14458ff65bb1b715f6d2ddc8fd211", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UI...
31
c
/******************************************************************** * This file is part of the tool Normalizer of the project Discover. * * Copyright (c) 2020-2022 Singapore Blockchain Innovation Programme. * All rights reserved. *******************************************************************/ #include <ios...
33.46
28
(translation_unit) "/********************************************************************\n * This file is part of the tool Normalizer of the project Discover.\n *\n * Copyright (c) 2020-2022 Singapore Blockchain Innovation Programme.\n * All rights reserved.\n **********************************************************...
148
5
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 33.46, "nodes": 80, "errors": 0, "source_hash": "3d89c279ea1bd3ad8d350ea484487cfcde0d530500fb803c80e6576403824f96", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
32
c
#pragma once #include <KAI/Network/Config.h> KAI_NET_BEGIN struct Address; struct NetHandle; struct Node; struct Representative; struct Domain; KAI_NET_END
16.33
9
(translation_unit) "#pragma once\n\n#include <KAI/Network/Config.h>\n\nKAI_NET_BEGIN\n\nstruct Address;\nstruct NetHandle;\nstruct Node;\nstruct Representative;\nstruct Domain;\n\nKAI_NET_END\n\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include ...
32
1
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 16.33, "nodes": 24, "errors": 0, "source_hash": "ccf4885c082a61b7efa666f5a8740a34056a81f27643b1edd4c993987b534b80", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
33
c
/// \file FileOperations.h /// /// This file is part of RakNet Copyright 2003 Jenkins Software LLC /// /// Usage of RakNet is subject to the appropriate license agreement. #include "NativeFeatureIncludes.h" #if _RAKNET_SUPPORT_FileOperations==1 #ifndef __FILE_OPERATIONS_H #define __FILE_OPERATIONS_H #inc...
30.46
24
(translation_unit) "/// \file FileOperations.h \n/// \n/// This file is part of RakNet Copyright 2003 Jenkins Software LLC \n/// \n/// Usage of RakNet is subject to the appropriate license agreement. \n \n#include "NativeFeatureIncludes.h" \n#if _RAKNET_SUPPORT_FileOperations==1 \n \n#ifndef __FILE_OPERATIONS_H \n#defi...
143
4
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 30.46, "nodes": 100, "errors": 0, "source_hash": "dd626ec22234c41f2ea8b37c8c961e8b32862580a2815026a656029e454db30d", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
34
c
//===- BuildFile.h ----------------------------------------------*- C++ -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LI...
35.59
136
(translation_unit) "//===- BuildFile.h ----------------------------------------------*- C++ -*-===//\n//\n// This source file is part of the Swift.org open source project\n//\n// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\...
596
26
{"language": "c", "success": true, "metadata": {"lines": 136, "avg_line_length": 35.59, "nodes": 335, "errors": 0, "source_hash": "8f099f6c7ab4a1ef3526f5fb426316e4221b25e3e1630e194b36470c7256ec72", "categorized_nodes": 251}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
35
c
/*! AudioCompress.c * Simple commandline audio compressor * * (c)2002-2007 busybee (http://beesbuzz.biz/) * Licensed under the terms of the LGPL. See the file COPYING for details. */ #include <stdio.h> #include <sys/types.h> #include <errno.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #incl...
21.56
176
(translation_unit) "/*! AudioCompress.c\n * Simple commandline audio compressor\n *\n * (c)2002-2007 busybee (http://beesbuzz.biz/)\n * Licensed under the terms of the LGPL. See the file COPYING for details.\n */\n\n#include <stdio.h>\n#include <sys/types.h>\n#include <errno.h>\n\n#include <unistd.h>\n#include <stdl...
1,163
1
{"language": "c", "success": true, "metadata": {"lines": 176, "avg_line_length": 21.56, "nodes": 703, "errors": 0, "source_hash": "3b10bb4f72b0211b37987706cbba3728d2ed544b08bfdbf29d81e5017c651ec6", "categorized_nodes": 486}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
36
c
// // AddTodoItemViewController.h // TodoList // // Created by Sovelluskontti on 03/03/2017. // Copyright © 2017 Sovelluskontti. All rights reserved. // #import <UIKit/UIKit.h> #import "TodoItem.h" @interface AddTodoItemViewController : UIViewController @property TodoItem *todoItem; @end
23.42
12
(translation_unit) "//\n// AddTodoItemViewController.h\n// TodoList\n//\n// Created by Sovelluskontti on 03/03/2017.\n// Copyright © 2017 Sovelluskontti. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "TodoItem.h"\n\n@interface AddTodoItemViewController : UIViewController\n\n@property TodoItem *todoIt...
34
6
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 23.42, "nodes": 20, "errors": 0, "source_hash": "1d60930e63628b70433e2d59ec48a7dabf0b326a1d7b4e6edf248916090a5d5b", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
37
c
#ifndef __DEBUG_USB_OUTPUT_H #define __DEBUG_USB_OUTPUT_H #include "debug_control.h" #ifdef ENABLE_USB_DEBUG #include "usbd_def.h" extern void usb_debug_usb_setup_trace(const char *source, USBD_SetupReqTypedef *req); #define usb_debug_write_counter debug_write_counter #define usb_debug_write_string debug...
34.67
18
(translation_unit) "#ifndef __DEBUG_USB_OUTPUT_H\n#define __DEBUG_USB_OUTPUT_H\n\n#include "debug_control.h"\n\n#ifdef ENABLE_USB_DEBUG\n\n#include "usbd_def.h"\n extern void usb_debug_usb_setup_trace(const char *source, USBD_SetupReqTypedef *req);\n\n #define usb_debug_write_counter debug_write_counter\n #define u...
100
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 34.67, "nodes": 76, "errors": 0, "source_hash": "5ddbc25215f21208c484fc95b4b8e64f4657c9da8680d2d44a0437410d1bdbb0", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
38
c
#include "timer_interface.h" #include "cmsis_os.h" #include <stdio.h> //Create Global Timers #define MAX_NUM_TIMERS 10 typedef struct st_TimerHandle{ TimerHandle_t xTimer; uint32_t TimeToExpire; uint32_t Allocated; }st_TimerHandle_t, *pst_TimerHandle_t; /* An array to hold handles to the crea...
25.6
178
(translation_unit) "#include "timer_interface.h"\n#include "cmsis_os.h"\n#include <stdio.h>\n\n\n//Create Global Timers\n\n#define MAX_NUM_TIMERS 10\n\ntypedef struct st_TimerHandle{\n \n TimerHandle_t xTimer;\n uint32_t TimeToExpire;\n uint32_t Allocated;\n \n}st_TimerHandle_t, *pst_TimerHandle_t;\n\n/*...
753
0
{"language": "c", "success": true, "metadata": {"lines": 178, "avg_line_length": 25.6, "nodes": 446, "errors": 0, "source_hash": "bd9bf11fdfe29d56c2231f4a8940f958c9fb98f9730259f16cc5b0496a6c6589", "categorized_nodes": 319}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
39
c
#pragma once #include "Animal.h" class Cat : public Animal { public: Cat(std::string name) : Animal(name) {} Animal* Clone() override { return new Cat(*this); } void Draw() override { std::cout << "I'm a cat!" << " My Name is " << _name << "\n"; } };
17.69
16
(translation_unit) "#pragma once\n#include "Animal.h"\nclass Cat :\n public Animal\n{\npublic:\n Cat(std::string name) : Animal(name) {}\n\n Animal* Clone() override\n {\n return new Cat(*this);\n }\n\n void Draw() override\n {\n std::cout << "I'm a cat!" << " My Name is " << _name <<...
113
5
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 17.69, "nodes": 60, "errors": 0, "source_hash": "81ee448d37794bce533d22c396bd06303fcce2bdac809f12c4af634002a04cb6", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
40
c
#pragma once #include <string> #include <functional> #include <map> #include <iostream> template<typename ...Targs> class ComponentFactory { public: typedef std::function <IComponent*(Targs...)> FactoryFunction; static ComponentFactory<Targs...>* GetInstance() { if (_pInstance == nullptr) { _pInstance = new...
25.92
51
(translation_unit) "#pragma once\n#include <string>\n#include <functional>\n#include <map>\n#include <iostream>\n\ntemplate<typename ...Targs>\nclass ComponentFactory\n{\npublic:\n typedef std::function <IComponent*(Targs...)> FactoryFunction;\n\n static ComponentFactory<Targs...>* GetInstance()\n {\n if (_pInstance =...
512
24
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 25.92, "nodes": 311, "errors": 0, "source_hash": "676bcdb60748c5a8e0262e0b722b96e9d9c41af91a8f4c33bbeadf4473e63027", "categorized_nodes": 210}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
41
c
/* This file is part of Into. * Copyright (C) Intopii 2013. * All rights reserved. * * Licensees holding a commercial Into license may use this file in * accordance with the commercial license agreement. Please see * LICENSE.commercial for commercial licensing terms. * * Alternatively, this file may be used und...
27.97
61
(translation_unit) "/* This file is part of Into.\n * Copyright (C) Intopii 2013.\n * All rights reserved.\n *\n * Licensees holding a commercial Into license may use this file in\n * accordance with the commercial license agreement. Please see\n * LICENSE.commercial for commercial licensing terms.\n *\n * Alternativel...
176
11
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 27.97, "nodes": 101, "errors": 0, "source_hash": "d2df0965dbc971a9a95b633d857f8aefa308abef5537a19ecd1fc6d7fed94d7f", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
42
c
#include <assert.h> #include "ps4.h" #define DEBUG_SOCKET #include "defines.h" #include "pup.h" const uint8_t pup_signature[] = { 0x4F, 0x15, 0x3D, 0x1D }; CHECK_SIZE(pup_file_header, 16); CHECK_SIZE(pup_header, 32); CHECK_SIZE(pup_segment, 32); CHECK_SIZE(pup_block_info, 8);
26.7
10
(translation_unit) "#include <assert.h>\n\n#include "ps4.h"\n\n#define DEBUG_SOCKET\n#include "defines.h"\n\n#include "pup.h"\n\nconst uint8_t pup_signature[] = { 0x4F, 0x15, 0x3D, 0x1D };\n\nCHECK_SIZE(pup_file_header, 16);\nCHECK_SIZE(pup_header, 32);\nCHECK_SIZE(pup_segment, 32);\nCHECK_SIZE(pup_block_info, 8);\n" ...
86
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 26.7, "nodes": 46, "errors": 0, "source_hash": "c5eb6e4d590f77b04958176a3b2a0c7019ea70867440b8ad7e03b3dc8dac2f4c", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
43
c
// // ZSInputSource.h // ZSDemo // // Created by zhixiong.sheng on 16/2/22. // Copyright © 2016年 盛志雄. All rights reserved. // #import <Foundation/Foundation.h> @interface ZSInputSource : NSObject - (void)fireInputSourceOnRunLoop:(CFRunLoopRef)runLoopRef; - (void)addToRunLopp:(CFRunLoopRef)runLoopRef; @end
24.92
12
(translation_unit) "//\n// ZSInputSource.h\n// ZSDemo\n//\n// Created by zhixiong.sheng on 16/2/22.\n// Copyright © 2016年 盛志雄. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface ZSInputSource : NSObject\n\n- (void)fireInputSourceOnRunLoop:(CFRunLoopRef)runLoopRef;\n- (void)addToRunLopp:(CFR...
54
6
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 24.92, "nodes": 30, "errors": 0, "source_hash": "250ff5280c90c327322b07bff9329240f897821cda149206ea65853beba0dbbd", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Foundatio...
44
c
/* * Generated by class-dump 3.3.3 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2010 by <NAME>. */ #import "NSTableViewDataSource-Protocol.h" #import "NSTableViewDelegate-Protocol.h" @class NSButton, NSImage, NSMutableArray, NSSearchField, NSString, NSTableView, NSWindow; @inter...
35.13
46
(translation_unit) "/*\n * Generated by class-dump 3.3.3 (64 bit).\n *\n * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2010 by <NAME>.\n */\n\n\n\n#import "NSTableViewDataSource-Protocol.h"\n#import "NSTableViewDelegate-Protocol.h"\n\n@class NSButton, NSImage, NSMutableArray, NSSearchField, NSString,...
533
26
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 35.13, "nodes": 327, "errors": 0, "source_hash": "c09e2932771409892e30a99a8dcfbd2e60233988f30b40316b91af2c927e612e", "categorized_nodes": 198}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
45
c
/* Copyright 2013 KLab 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 applicable law or agreed ...
25.62
97
(translation_unit) " \n Copyright 2013 KLab 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 \n Unless required by...
385
5
{"language": "c", "success": true, "metadata": {"lines": 97, "avg_line_length": 25.62, "nodes": 256, "errors": 0, "source_hash": "8dec078b1ce26e83a25fc5493dd68affa05e7e049f7030d3207319893c4859f7", "categorized_nodes": 172}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef ...
46
c
#pragma once #include "CoreUObject.h" #include "Engine.h" DECLARE_LOG_CATEGORY_EXTERN(CoreUtilityLog, Log, All);
27.25
4
(translation_unit) "#pragma once\n\n#include "CoreUObject.h"\n#include "Engine.h"\n\nDECLARE_LOG_CATEGORY_EXTERN(CoreUtilityLog, Log, All);" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "CoreUObject.h"\n" (#include) "#include" (string...
28
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 27.25, "nodes": 15, "errors": 0, "source_hash": "534719f88db0b3434ad9a5f711fee0638f30d6ff284a96a9bf380a24202aadb6", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
47
c
#pragma once #include <cstdint> #include <string> typedef unsigned int uint; typedef uint8_t u8; typedef int8_t s8; typedef std::string string;
19.71
7
(translation_unit) "#pragma once\n\n#include <cstdint>\n#include <string>\n\ntypedef unsigned int uint;\n\ntypedef uint8_t u8;\ntypedef int8_t s8;\n\ntypedef std::string string;\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <cstdint>\n" ...
36
1
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 19.71, "nodes": 29, "errors": 0, "source_hash": "dbb3ca5cb8b96bf46f8ed424fb529b6c877db44795e17f1fcbb9d45355861014", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
48
c
/***************************************************************************** Copyright 2010 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V. Copyright 2015-2020 COSEDA Technologies GmbH Licensed under the Apache License, Version 2.0 (the "License"); you may not use this fil...
44.56
59
(translation_unit) "/*****************************************************************************\n\n Copyright 2010\n Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V.\n\n Copyright 2015-2020 COSEDA Technologies GmbH\n\n Licensed under the Apache License, Version 2.0 (the "License");\...
183
12
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 44.56, "nodes": 103, "errors": 0, "source_hash": "bbfd6742c527ef060efb16ff02daca2f3bc44ea37171115e6ad35c468960e6df", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
49
c
#ifndef MENU_SETTINGS_H #define MENU_SETTINGS_H #include <SFML/Graphics.hpp> #include "Constants.h" const int MAX_SELECTABLE_COLORS = 12; // --- Functions void settingsMenu(sf::RenderWindow*, GameParams*); void initSettingsMenu(sf::RenderWindow*, GameParams); void drawSettingsMenu(sf::RenderWindow*, GameParams); int...
33.25
12
(translation_unit) "#ifndef MENU_SETTINGS_H\n#define MENU_SETTINGS_H\n\n#include <SFML/Graphics.hpp>\n#include "Constants.h"\n\nconst int MAX_SELECTABLE_COLORS = 12;\n\n// --- Functions\nvoid settingsMenu(sf::RenderWindow*, GameParams*);\nvoid initSettingsMenu(sf::RenderWindow*, GameParams);\nvoid drawSettingsMenu(sf::...
121
5
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 33.25, "nodes": 83, "errors": 0, "source_hash": "af8058215e11377c341b835944db9a43ba95be988681d94540090357e99c9fe8", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
50
c
// // FinderItem.h // OneWay // // Copyright 2010 <NAME> <http://goto11.net> // #import <Cocoa/Cocoa.h> @class Location; @interface FinderItem : NSObject + (NSString *)labelForNewLocation; + (NSString *)labelForLocation:(Location *)location; @end
19.83
12
(translation_unit) "//\n// FinderItem.h\n// OneWay\n//\n\n// Copyright 2010 <NAME> <http://goto11.net>\n//\n\n#import <Cocoa/Cocoa.h>\n\n@class Location;\n\n@interface FinderItem : NSObject\n\n+ (NSString *)labelForNewLocation;\n\n+ (NSString *)labelForLocation:(Location *)location;\n\n@end\n" (comment) "//" (co...
57
8
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 19.83, "nodes": 35, "errors": 0, "source_hash": "148ed973b8d9daa17c44ab18670522f29d13f90c83d13a6c2a7592a77f9e6273", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
51
c
// Copyright(C) 1999-2017 National Technology & Engineering Solutions // of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with // NTESS, the U.S. Government retains certain rights in this software. // // Redistribution and use in source and binary forms, with or without // modification, are permitted p...
31.82
145
(translation_unit) "// Copyright(C) 1999-2017 National Technology & Engineering Solutions\n// of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with\n// NTESS, the U.S. Government retains certain rights in this software.\n//\n// Redistribution and use in source and binary forms, with or without\n// modi...
1,047
28
{"language": "c", "success": true, "metadata": {"lines": 145, "avg_line_length": 31.82, "nodes": 614, "errors": 0, "source_hash": "dc210529ede8a9adf976976dc65553de65cda377b30d8522d1b8fb1f9c32a6c6", "categorized_nodes": 455}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
52
c
#include <stdio.h> #include "machdefs.h" #include "util.h" #include "tsp.h" static int receive_dominos (CC_SFILE *s), parseargs (int ac, char **av); static void usage (char *f); static int graphid = 1; static int sendgraph = 0; static int stopboss = 0; static int getdominos = 0; static char *hostname = (...
31.36
115
(translation_unit) "#include <stdio.h>\n#include "machdefs.h"\n#include "util.h"\n#include "tsp.h"\n\nstatic int\n receive_dominos (CC_SFILE *s),\n parseargs (int ac, char **av);\n\nstatic void\n usage (char *f);\n\nstatic int graphid = 1;\nstatic int sendgraph = 0;\nstatic int stopboss = 0;\nstatic int getdom...
1,135
0
{"language": "c", "success": true, "metadata": {"lines": 115, "avg_line_length": 31.36, "nodes": 635, "errors": 0, "source_hash": "5eca273853f46c3eaa307e83efda80ae0843f561aa2da788f69c0b2e992b215c", "categorized_nodes": 416}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
53
c
#include <linux/kernel.h> #include <linux/module.h> #include <linux/init.h> #include <linux/device.h> #include <linux/slab.h> #include <linux/fs.h> #include <linux/mm.h> #include <linux/interrupt.h> #include <linux/vmalloc.h> #include <linux/platform_device.h> #include <linux/miscdevice.h> #include <linux/wait.h> #incl...
30.72
54
(translation_unit) "#include <linux/kernel.h>\n#include <linux/module.h>\n#include <linux/init.h>\n#include <linux/device.h>\n#include <linux/slab.h>\n#include <linux/fs.h>\n#include <linux/mm.h>\n#include <linux/interrupt.h>\n#include <linux/vmalloc.h>\n#include <linux/platform_device.h>\n#include <linux/miscdevice.h>...
216
0
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 30.72, "nodes": 183, "errors": 0, "source_hash": "663810de0fd0352ff3c07e101368fb0a24a06a944cb5145c6cd79276ec6c720f", "categorized_nodes": 152}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
54
c
#ifndef SIMPLESTREAMER_H #define SIMPLESTREAMER_H #include "../../src/sio_client.h" #include <functional> #include <iostream> #include <thread> #include <mutex> #include <condition_variable> #include <string> class SimpleStreamer { private: std::mutex _lock; std::condition_variable_any _cond; bool _connect_f...
18.47
83
(translation_unit) "#ifndef SIMPLESTREAMER_H\n#define SIMPLESTREAMER_H\n\n#include "../../src/sio_client.h"\n\n#include <functional>\n#include <iostream>\n#include <thread>\n#include <mutex>\n#include <condition_variable>\n#include <string>\n\nclass SimpleStreamer\n{\n\nprivate:\n\n std::mutex _lock;\n std::condition...
604
17
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 18.47, "nodes": 325, "errors": 0, "source_hash": "5f4bb3f459384c684d49c698a5e18ace60083ed411490d832f21dced61252215", "categorized_nodes": 240}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
55
c
// Copyright 2016 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ARC_NETWORKD_IP_HELPER_H_ #define ARC_NETWORKD_IP_HELPER_H_ #include <netinet/in.h> #include <sys/socket.h> #include <memory> #include <strin...
37.25
51
(translation_unit) "// Copyright 2016 The Chromium OS Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef ARC_NETWORKD_IP_HELPER_H_\n#define ARC_NETWORKD_IP_HELPER_H_\n\n#include <netinet/in.h>\n#include <sys/socket.h>\n\n#in...
316
17
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 37.25, "nodes": 180, "errors": 0, "source_hash": "c7b47c1ba63b5fa1fe778c0a00d8ac1b7efb67315364aba45018dc46a0d07f43", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
56
c
#include <stdio.h> int Array3D[2][3][3] = {{{1,2,3},{2,3,4},{4,5,6}}, {{1,2,3},{2,3,4},{4,5,6}}}; int main(void){ int i , j, b; for(i=0; i<2;i++){ for(j=0; j<3; j++){ for(b=0; b<3; b++) printf("%d", Array3D[i][j][b]); } printf("\n");...
22.07
15
(translation_unit) "#include <stdio.h>\nint Array3D[2][3][3] = {{{1,2,3},{2,3,4},{4,5,6}},\n {{1,2,3},{2,3,4},{4,5,6}}};\n\n\nint main(void){\n int i , j, b;\n for(i=0; i<2;i++){\n for(j=0; j<3; j++){\n for(b=0; b<3; b++)\n printf("%d", Array3D[i][j][b]);\n...
208
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 22.07, "nodes": 110, "errors": 0, "source_hash": "fa5b30033c4501ca532b48cdf58f110ff1b681d12ef5536bf353823282b5bd50", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
57
c
// // DQMineViewController.h // DQStudy // // Created by youdingquan on 16/5/1. // Copyright © 2016年 youdingquan. All rights reserved. // #import <UIKit/UIKit.h> @interface DQMineViewController : UIViewController @end
21.2
10
(translation_unit) "//\n// DQMineViewController.h\n// DQStudy\n//\n// Created by youdingquan on 16/5/1.\n// Copyright © 2016年 youdingquan. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface DQMineViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// DQMineViewController.h" ...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.2, "nodes": 10, "errors": 0, "source_hash": "154743a87afee464d2f597c65cdc857ee49ab3ee7fd153210efcede1bed6498f", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKit...
58
c
#ifndef SAPITRELLO_CSOPORT_11_TERMINAL_H #define SAPITRELLO_CSOPORT_11_TERMINAL_H #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include "instance.h" void terminalLoop(); #endif //SAPITRELLO_CSOPORT_11_TERMINAL_H
26.22
9
(translation_unit) "#ifndef SAPITRELLO_CSOPORT_11_TERMINAL_H\n#define SAPITRELLO_CSOPORT_11_TERMINAL_H\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <ctype.h>\n\n#include "instance.h"\n\nvoid terminalLoop();\n\n#endif //SAPITRELLO_CSOPORT_11_TERMINAL_H\n" (preproc_ifdef) "#ifndef SAPITRELL...
35
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 26.22, "nodes": 27, "errors": 0, "source_hash": "ea6760a8d2fdb5a7ad214dfaef2375ca972b445892eeb8c6f449ce1a1f65e978", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef S...
59
c
// // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 <NAME>. // #import "NSObject-Protocol.h" @class CARNetworkPathMonitor; @protocol CARNetworkPathMonitorObserver <NSObject> - (void)networkPathMonitorDidChangeNetwo...
40.45
11
(translation_unit) "//\n// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20).\n//\n// Copyright (C) 1997-2019 <NAME>.\n//\n\n#import "NSObject-Protocol.h"\n\n@class CARNetworkPathMonitor;\n\n@protocol CARNetworkPathMonitorObserver <NSObject>\n- (void)n...
71
10
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 40.45, "nodes": 42, "errors": 0, "source_hash": "6b0f2e02b6679a2c9952a911d47c42896991d2270b002fb766705b2ef23d50d1", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
60
c
/* * Copyright (c) 2020 Teknic, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publis...
40.73
112
(translation_unit) "/*\n * Copyright (c) 2020 Teknic, Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, c...
212
5
{"language": "c", "success": true, "metadata": {"lines": 112, "avg_line_length": 40.73, "nodes": 117, "errors": 0, "source_hash": "e5d885a6ad60bd56dd1f6fc5050c286afa480ee32a634eef83e8dca76375771c", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
61
c
/* -*- mode: C -*- */ /* IGraph library. Copyright (C) 2012 <NAME> <<EMAIL>> 334 Harvard st, Cambridge MA, 02139 USA This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either ver...
34.92
77
(translation_unit) "/* -*- mode: C -*- */\n/* \n IGraph library.\n Copyright (C) 2012 <NAME> <<EMAIL>>\n 334 Harvard st, Cambridge MA, 02139 USA\n \n This program is free software; you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Sof...
657
0
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 34.92, "nodes": 364, "errors": 0, "source_hash": "594339a4eecf7fe84f86740254ae107fb28e45138327f3e9a4d2ed5150dda859", "categorized_nodes": 279}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
62
c
/* See license.txt for license information. */ #ifndef ACCEL_SENSOR_H #define ACCEL_SENSOR_H // these bit definitions are specific to WISP 4.1 DL #define SENSOR_DATA_TYPE_ID 0x0D #define ACCEL_ENABLE_BIT BIT5 // 1.5 #define SET_ACCEL_ENABLE_DIR P1DIR |= ACCEL_ENABLE_BIT #define CLEAR_ACCEL_ENA...
38.78
23
(translation_unit) "/* See license.txt for license information. */\n\n#ifndef ACCEL_SENSOR_H\n#define ACCEL_SENSOR_H\n\n// these bit definitions are specific to WISP 4.1 DL\n\n#define SENSOR_DATA_TYPE_ID 0x0D\n\n#define ACCEL_ENABLE_BIT BIT5 // 1.5\n#define SET_ACCEL_ENABLE_DIR P1DIR |= ACCEL_ENAB...
97
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 38.78, "nodes": 86, "errors": 0, "source_hash": "2122d6518d5a6524c024f1f2addd3e9e9f5ed3dd67891c4ceef93375c97461b7", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
63
c
#include <stdbool.h> #define ERROR NULL typedef Tree DataType; typedef int Position; typedef struct QNode *PtrToQNode; struct QNode { DataType *Data; int Capacity; Position Front, Rear; }; typedef PtrToQNode Queue; Queue CreateQueue(int QSize) { Queue Q = (Queue) malloc(sizeof(*Q)); Q->Data = (DataType *) malloc(Q...
21.45
51
(translation_unit) "#include <stdbool.h>\n#define ERROR NULL\ntypedef Tree DataType;\ntypedef int Position;\ntypedef struct QNode *PtrToQNode;\nstruct QNode {\n DataType *Data;\n int Capacity;\n Position Front, Rear;\n};\ntypedef PtrToQNode Queue;\nQueue CreateQueue(int QSize) {\n Queue Q = (Queue) malloc(sizeof(*Q));\...
542
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 21.45, "nodes": 345, "errors": 0, "source_hash": "eb362b7cdffad5dd0233eec6a89d6f1633918d3fce6f91239e4de12b46eeee56", "categorized_nodes": 268}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
64
c
/* Copyright 2015 <NAME>, all rights reserved. */ #ifndef GRANARY_CODE_INSTRUCTION_H_ #define GRANARY_CODE_INSTRUCTION_H_ #include "granary/arch/instruction.h" namespace granary { // Represents a decoded application instruction that can be instrumented. class Instruction final { public: Instruction(void) = defau...
35.07
73
(translation_unit) "/* Copyright 2015 <NAME>, all rights reserved. */\n\n#ifndef GRANARY_CODE_INSTRUCTION_H_\n#define GRANARY_CODE_INSTRUCTION_H_\n\n#include "granary/arch/instruction.h"\n\nnamespace granary {\n\n// Represents a decoded application instruction that can be instrumented.\nclass Instruction final {\n publ...
590
30
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 35.07, "nodes": 342, "errors": 0, "source_hash": "bbbfeddb207aa73eb4f3e2c207a9f7c589f897818d68f4d9deb6e62585a34279", "categorized_nodes": 198}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
65
c
#include <uv.h> #include <signal.h> #include <stdio.h> #include "macros.h" #include "dbg.h" #include "MemoryStore.h" #include "server.h" static void interruptCb( uv_signal_t *interrupt, int signal ) { puts( "" ); log_info( "SIGINT caught. \e[1;31mQuitting\e[m." ); MemoryStore_disconnect( interrupt->data ); uv_sto...
30.58
36
(translation_unit) "#include <uv.h>\n#include <signal.h>\n#include <stdio.h>\n\n#include "macros.h"\n#include "dbg.h"\n#include "MemoryStore.h"\n#include "server.h"\n\nstatic void interruptCb( uv_signal_t *interrupt, int signal ) {\n puts( "" );\n log_info( "SIGINT caught. \e[1;31mQuitting\e[m." );\n MemoryStore_discon...
359
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 30.58, "nodes": 200, "errors": 0, "source_hash": "07d4bff77673af9c1ea0f477a18311dd2a1491c415df0d9ed94adf8e077a8124", "categorized_nodes": 144}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
66
c
#include <stdio.h> #include <stdlib.h> int largestSumContinousSubArray(int arr[], int size) { int max_till = 0; int max_int = 0; for (int i = 0; i < size; i++) { max_int = max_int + arr[i]; if(max_till < max_int) { max_till = max_int; } if (max_int < 0) { max_int = 0; } } return max_till; } int m...
19
23
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\nint largestSumContinousSubArray(int arr[], int size) {\n int max_till = 0;\n int max_int = 0;\n for (int i = 0; i < size; i++) {\n max_int = max_int + arr[i];\n if(max_till < max_int) {\n max_till = max_int;\n }\n if (max_int < 0) {\n max_int = 0;\n...
193
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 19.0, "nodes": 119, "errors": 0, "source_hash": "0cab23f97dd16cec0e612df183110048d517619a14da72097ee274e0f78eeef5", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
67
c
#ifndef FVUPDATER_H #define FVUPDATER_H #include <QObject> #include <QMutex> #include <QNetworkAccessManager> #include <QUrl> #include <QXmlStreamReader> class QNetworkReply; class FvUpdateWindow; class FvUpdateConfirmDialog; class FvAvailableUpdate; class FvUpdater : public QObject { Q_OBJECT public: // Singlet...
32.97
149
(translation_unit) "#ifndef FVUPDATER_H\n#define FVUPDATER_H\n\n#include <QObject>\n#include <QMutex>\n#include <QNetworkAccessManager>\n#include <QUrl>\n#include <QXmlStreamReader>\nclass QNetworkReply;\nclass FvUpdateWindow;\nclass FvUpdateConfirmDialog;\nclass FvAvailableUpdate;\n\n\nclass FvUpdater : public QObject...
787
17
{"language": "c", "success": true, "metadata": {"lines": 149, "avg_line_length": 32.97, "nodes": 469, "errors": 0, "source_hash": "d6d00cc4afca54847d710ad77c0b686adf4c3f8d7706d3646860844d4a826ed4", "categorized_nodes": 329}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
68
c
// // precomp.h Precompiled header file for SymCrypt unit test // // Copyright (c) Microsoft Corporation. Licensed under the MIT license. // #define KERNEL_MODE
23.71
7
(translation_unit) "// \n// precomp.h Precompiled header file for SymCrypt unit test \n// \n// Copyright (c) Microsoft Corporation. Licensed under the MIT license. \n// \n \n#define KERNEL_MODE \n \n" (comment) "// " (comment) "// precomp.h Precompiled header file for SymCrypt unit test " (comment) "// "...
9
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 23.71, "nodes": 3, "errors": 0, "source_hash": "a390028ddf0bb0f6028ddce86415cd8d05a7600a6034bd3813f8fc26fa303450", "categorized_nodes": 1}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define KERNE...
69
c
#ifndef NUMERICMATH #define NUMERICMATH #include "RandMath.h" /// Numerical procedures namespace RandMath { /** * @fn integral * @param funPtr integrand * @param a lower boundary * @param b upper boundary * @param epsilon tolerance * @param maxRecursionDepth how deep should the algorithm go * @return */ dou...
35.72
87
(translation_unit) "#ifndef NUMERICMATH\n#define NUMERICMATH\n\n#include "RandMath.h"\n\n/// Numerical procedures\n\nnamespace RandMath\n{\n\n/**\n * @fn integral\n * @param funPtr integrand\n * @param a lower boundary\n * @param b upper boundary\n * @param epsilon tolerance\n * @param maxRecursionDepth how deep should...
422
40
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 35.72, "nodes": 255, "errors": 0, "source_hash": "4382f0ed5822177ba2f27c6d96cfe508e0d9d23a9afea4577099a106ed008798", "categorized_nodes": 143}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
70
c
// // MKMPLoadStatusController.h // MKLoRaWAN-MP_Example // // Created by aa on 2021/10/24. // Copyright © 2021 <EMAIL>. All rights reserved. // #import <MKBaseModuleLibrary/MKBaseViewController.h> NS_ASSUME_NONNULL_BEGIN @interface MKMPLoadStatusController : MKBaseViewController @end NS_ASSUME_NONNULL_END
25
12
(translation_unit) "//\n// MKMPLoadStatusController.h\n// MKLoRaWAN-MP_Example\n//\n// Created by aa on 2021/10/24.\n// Copyright © 2021 <EMAIL>. All rights reserved.\n//\n\n#import <MKBaseModuleLibrary/MKBaseViewController.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface MKMPLoadStatusController : MKBaseViewController\...
27
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 25.0, "nodes": 14, "errors": 0, "source_hash": "a72d1b3cff7144b30c2db8b88c05a35b0662c63c189087adfac75eacb4eb1e33", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <MKB...
71
c
#pragma once #include <fstream> #include <map> #include <string> class Localization { public: std::map<std::string, std::string> local; explicit Localization(std::string local_file_name); void SetLocal(std::string local_file_name); };
23.2
10
(translation_unit) "#pragma once\n\n#include <fstream>\n#include <map>\n#include <string>\n\nclass Localization {\n public:\n std::map<std::string, std::string> local;\n\n explicit Localization(std::string local_file_name);\n\n void SetLocal(std::string local_file_name);\n};" (preproc_call) "#pragma once\n" (p...
77
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 23.2, "nodes": 49, "errors": 0, "source_hash": "e8eace6d589cf7deb10272a2dfbba891f0b82d45fb9f8d98e3b7bd0e8102fda7", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
72
c
struct { struct a *b } * c; struct a { int d; int e }; f, g, h; i() { unsigned j; if (f) { j = 0; for (; j < g; ++j) if (c->b[j].e) break; if (j == g) goto k; c->b[j].d = 0; } if (h != f) l(); k:; }
10
23
(translation_unit) "struct {\n struct a *b\n} * c;\nstruct a {\n int d;\n int e\n};\nf, g, h;\ni() {\n unsigned j;\n if (f) {\n j = 0;\n for (; j < g; ++j)\n if (c->b[j].e)\n break;\n if (j == g)\n goto k;\n c->b[j].d = 0;\n }\n if (h != f)\n l();\nk:;\n}\n" (declaration) "struc...
154
16
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 10.0, "nodes": 94, "errors": 0, "source_hash": "938646fba009da39e2b63ba62cb37c220fdfc33bfb56e5a2c802407ab4e933ff", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "struct {\n ...
73
c
/**************************************************************************** ** ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (<EMAIL>) ** ** This file is part of the qmake spec of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Com...
29.4
140
(translation_unit) "/**************************************************************************** \n** \n** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). \n** All rights reserved. \n** Contact: Nokia Corporation (<EMAIL>) \n** \n** This file is part of the qmake spec of the Qt Toolkit. \n** \n** $QT...
296
0
{"language": "c", "success": true, "metadata": {"lines": 140, "avg_line_length": 29.4, "nodes": 279, "errors": 0, "source_hash": "c58a94565e495d4bac13c336232905859c4996f3e58530b47c64476f7bf75e0f", "categorized_nodes": 121}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
74
c
/// \file /// Initialize the atom configuration. #ifndef __INIT_ATOMS_H #define __INIT_ATOMS_H #include "mytype.h" struct SimFlatSt; struct LinkCellSt; struct NeighborListSt; /// Atom data typedef struct AtomsSt { // atom-specific data int nLocal; //!< total number of atoms on this processor int* lid; ...
37.65
34
(translation_unit) "/// \file\n/// Initialize the atom configuration.\n\n#ifndef __INIT_ATOMS_H\n#define __INIT_ATOMS_H\n\n#include "mytype.h"\n\nstruct SimFlatSt;\nstruct LinkCellSt;\nstruct NeighborListSt;\n\n/// Atom data\ntypedef struct AtomsSt\n{\n // atom-specific data\n int nLocal; //!< total number of at...
254
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 37.65, "nodes": 184, "errors": 0, "source_hash": "2cc6e2c4740e0dfcfd3c1c3d768b8cec406748792107b36b488ca7c9be6c446f", "categorized_nodes": 131}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
75
c
// // JWTTokenTextTypeDescription.h // JWTDesktop // // Created by <NAME> on 25.09.16. // Copyright © 2016 JWT. All rights reserved. // #import <Foundation/Foundation.h> #import <Cocoa/Cocoa.h> #import <AppKit/AppKit.h> #import "NSArrayExtension.h" typedef NS_ENUM(NSInteger, JWTTokenTextType) { JWTTokenTextTy...
33.83
35
(translation_unit) "//\n// JWTTokenTextTypeDescription.h\n// JWTDesktop\n//\n// Created by <NAME> on 25.09.16.\n// Copyright © 2016 JWT. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <Cocoa/Cocoa.h>\n#import <AppKit/AppKit.h>\n#import "NSArrayExtension.h"\n\ntypedef NS_ENUM(NSInteger, JWTTo...
258
45
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 33.83, "nodes": 167, "errors": 0, "source_hash": "5cf6b22fcaf64e309ccab02bc1883ec83431c2e9abdd99d897d07601d516fec3", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <...
76
c
#include "ordenacao.h" #include<stdio.h> #include<string.h> #include <stdlib.h> #define MAX_STR 1200 int main(){ TLista lista; int qtd; listaInicia(&lista); lerQuantidade(&qtd); lerLista(&lista, qtd); TLista_Imprime(&lista); return 0; }
17.93
14
(translation_unit) "#include "ordenacao.h"\n#include<stdio.h>\n#include<string.h>\n#include <stdlib.h>\n#define MAX_STR 1200\n\nint main(){\n TLista lista;\n int qtd;\n\n listaInicia(&lista);\n lerQuantidade(&qtd);\n\n lerLista(&lista, qtd);\n\n TLista_Imprime(&lista);\n\n return 0;\n}" (preproc_...
84
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 17.93, "nodes": 50, "errors": 0, "source_hash": "ce6e3e8311eada8937646a222764386e78f814a15d8d3e847dcc8cb7ebc3eec6", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
77
c
#pragma once #include <DKMsgOnlyWnd.h> #include <list> class VTSCurrentBase : public DKMsgOnlyWnd { public: VTSCurrentBase(); virtual ~VTSCurrentBase(); BOOL InitReceive(CHAR* pPacket, UINT nDataLength); BOOL Receive(CHAR* pPacket, UINT nDataLength); CHAR* GetBuffer(UINT nDataLength); BOOL IsUpdated() { ...
25.17
29
(translation_unit) "#pragma once\n\n#include <DKMsgOnlyWnd.h>\n#include <list>\n\nclass VTSCurrentBase : public DKMsgOnlyWnd\n{\npublic:\n VTSCurrentBase();\n virtual ~VTSCurrentBase();\n\n BOOL InitReceive(CHAR* pPacket, UINT nDataLength);\n BOOL Receive(CHAR* pPacket, UINT nDataLength);\n\n CHAR* GetBuffer(UINT nData...
236
6
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 25.17, "nodes": 168, "errors": 0, "source_hash": "602fac550fb3484545a3ecfb3ff7052fba26281933ca772d3cfd1826512dab24", "categorized_nodes": 123}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
78
c
#pragma once #include "fetch_event.h" #include "../status.h" namespace core { namespace wim { class fetch_event_status : public fetch_event { private: status status_; std::string aimid_; public: virtual ~fetch_event_status() = default; ...
31.86
21
(translation_unit) "#pragma once\n\n#include "fetch_event.h"\n#include "../status.h"\n\nnamespace core\n{\n namespace wim\n {\n class fetch_event_status : public fetch_event\n {\n private:\n status status_;\n std::string aimid_;\n\n public:\n virtual ~f...
177
14
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 31.86, "nodes": 97, "errors": 0, "source_hash": "5f02389394537fc301cb958b122b04322cf80b8c046ae0b41c5c728f79e2ec84", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
79
c
/* SPDX-License-Identifier: GPL-2.0 */ /* * Written by <NAME>, 1996 (<EMAIL>). * * (C) SGI 2006, <NAME> * Cleaned up and restructured to ease the addition of alternative * implementations of SLAB allocators. * (C) Linux Foundation 2008-2013 * Unified interface for all slab allocators */ #ifndef __RTOCHI...
33.48
111
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0 */\n/*\n * Written by <NAME>, 1996 (<EMAIL>).\n *\n * (C) SGI 2006, <NAME>\n * Cleaned up and restructured to ease the addition of alternative\n * implementations of SLAB allocators.\n * (C) Linux Foundation 2008-2013\n * Unified interface for all slab allo...
667
1
{"language": "c", "success": true, "metadata": {"lines": 111, "avg_line_length": 33.48, "nodes": 452, "errors": 0, "source_hash": "293b047221e3088655631a78ecaee787dac2b8608d90aaae06f4c19127b960b6", "categorized_nodes": 284}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
80
c
// // Created by buran on 12/03/18. // #ifndef TWITCHXX_API_H #define TWITCHXX_API_H #include <memory> #include <RequestOnce.h> #include <RequestWait.h> namespace TwitchXX { class UserAccessToken; class MakeRequest_Impl; class UserAccessToken; /// Main API class incapsulating access tokens and requ...
26.64
50
(translation_unit) "//\n// Created by buran on 12/03/18.\n//\n\n#ifndef TWITCHXX_API_H\n#define TWITCHXX_API_H\n\n#include <memory>\n\n#include <RequestOnce.h>\n#include <RequestWait.h>\n\nnamespace TwitchXX\n{\n class UserAccessToken;\n class MakeRequest_Impl;\n class UserAccessToken;\n\n /// Main API clas...
206
11
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 26.64, "nodes": 103, "errors": 0, "source_hash": "de3a157972935d8d23bc635c6eaebe6950efa97ba84c1d0502a24331359a8fd3", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
81
c
/************************************************************** * * 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 y...
29.52
189
(translation_unit) "/**************************************************************\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 l...
905
7
{"language": "c", "success": true, "metadata": {"lines": 189, "avg_line_length": 29.52, "nodes": 532, "errors": 0, "source_hash": "253134518ad0d4fdd822dd21828366ff21fffdddf981259bcaff23303bee9444", "categorized_nodes": 379}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
82
c
/** * Copyright (2013) JDS Uniphase. All rights reserved. * * Author: <NAME> (<EMAIL>) */ #ifndef XTREME_CS_JOB_CRITERIA_H_ #define XTREME_CS_JOB_CRITERIA_H_ #include "xtreme/common/criteria.h" #include "xtreme/cs/job_type_def.h" namespace xtreme { namespace jobm { class JobCriteria : public ICriteria { public: ...
24.88
34
(translation_unit) "/**\n * Copyright (2013) JDS Uniphase. All rights reserved.\n *\n * Author: <NAME> (<EMAIL>)\n */\n#ifndef XTREME_CS_JOB_CRITERIA_H_\n#define XTREME_CS_JOB_CRITERIA_H_\n#include "xtreme/common/criteria.h"\n#include "xtreme/cs/job_type_def.h"\n\nnamespace xtreme {\nnamespace jobm {\nclass JobCriteri...
203
5
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 24.88, "nodes": 119, "errors": 0, "source_hash": "5b74ce481278401c52ab9853d593647ba037fffaa9a67886f78d869a28aa6a69", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
83
c
#ifndef _GB_GBCONFIG_H #define _GB_GBCONFIG_H //Timer options #define cfg_use_time_show //#define cfg_use_time_per_line //64 bits (slow) vs 32 bits (fast) //#define cfg_use_tstates_64bits //Fast direct registers #define cfg_use_direct_RegA #define cfg_use_direct_RegB #define cfg_use_direct_RegC #define ...
24.83
60
(translation_unit) "#ifndef _GB_GBCONFIG_H \n #define _GB_GBCONFIG_H \n \n//Timer options \n#define cfg_use_time_show \n//#define cfg_use_time_per_line \n//64 bits (slow) vs 32 bits (fast) \n//#define cfg_use_tstates_64bits \n \n//Fast direct registers \n#define cfg_use_direct_RegA \n#define cfg_use_direct_RegB \n#defi...
141
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 24.83, "nodes": 133, "errors": 0, "source_hash": "58652e62deb1d3cf65421cc7c09e8a10b5b1ffaf8a9a9d1d0329c935e10d6bdf", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
84
c
#ifndef __GLOBALS_H #define __GLOBALS_H #include "types.h" #define DEBUG #define STACK_SIZE 1024*4 #define PROGRAM_SIZE 1024*4 extern unsigned char stack[]; extern unsigned char *instructions; void push_int(uint16_t val); uint16_t pop_int(); uint16_t fetch_int(); OPCODE_TYPE fetch_op(); #endif /...
16.58
19
(translation_unit) "#ifndef __GLOBALS_H \n#define __GLOBALS_H \n \n#include "types.h" \n \n#define DEBUG \n \n#define STACK_SIZE 1024*4 \n#define PROGRAM_SIZE 1024*4 \n \nextern unsigned char stack[]; \nextern unsigned char *instructions; \n \nvoid push_int(uint16_t val); \nuint16_t pop_int(); \nuint16_t fetch_int(); \...
82
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 16.58, "nodes": 61, "errors": 0, "source_hash": "06b01488398a8ad3625bf640b5eb65175d26aa913f2611cdc0ba5e672a312513", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
85
c
// // Copyright (c) 2019 The Aquarium Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // ContextGL.h: Defines the accessing to graphics API of OpenGL. #ifndef CONTEXTGL_H #define CONTEXTGL_H #include <vector> #define GLF...
38.32
119
(translation_unit) "//\n// Copyright (c) 2019 The Aquarium Project 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// ContextGL.h: Defines the accessing to graphics API of OpenGL.\n\n#ifndef CONTEXTGL_H\n#define CONTEXTGL_H\n\n...
1,140
48
{"language": "c", "success": true, "metadata": {"lines": 119, "avg_line_length": 38.32, "nodes": 752, "errors": 0, "source_hash": "22be018a0f5fe3be57d8eb46908ce3dd90fd912f5d30b2c45b5b8a2c207f024f", "categorized_nodes": 480}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
86
c
/** * Created by Crow on 11/13/18. * Copyright (c) 2018 Crow All rights reserved. * @author Crow * @brief this is for class Config -> to set the configuration for PlatinumServer * It's parse YAML file by the library yaml-cpp, You can find it on github * And Config mainly to provide an instance of Singleton...
39.61
62
(translation_unit) "/**\n* Created by Crow on 11/13/18.\n* Copyright (c) 2018 Crow All rights reserved.\n* @author Crow\n* @brief this is for class Config -> to set the configuration for PlatinumServer\n* It's parse YAML file by the library yaml-cpp, You can find it on github\n* And Config mainly to provid...
678
45
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 39.61, "nodes": 364, "errors": 0, "source_hash": "81b7786ce643f120a835e8eeedacc220f0fb31691da5286256c41f749156627c", "categorized_nodes": 265}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
87
c
// // DemoCallManager.h // ChatDemo-UI3.0 // // Created by XieYajie on 22/11/2016. // Copyright © 2016 XieYajie. All rights reserved. // #import <Foundation/Foundation.h> #import "EMCallOptions+NSCoding.h" @interface DemoCallManager : NSObject #if DEMO_CALL == 1 @property (strong, nonatomic) UIViewController *...
28.65
20
(translation_unit) "//\n// DemoCallManager.h\n// ChatDemo-UI3.0\n//\n// Created by XieYajie on 22/11/2016.\n// Copyright © 2016 XieYajie. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n#import "EMCallOptions+NSCoding.h"\n\n@interface DemoCallManager : NSObject\n\n#if DEMO_CALL == 1\n\n@property (s...
134
11
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 28.65, "nodes": 80, "errors": 0, "source_hash": "7bd3a3e16bfadaccc703fd3e6c9dac4b60bb0a5a0d7a7331f600bd6348aab1fc", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
88
c
// Copyright (c) 2017-2018 The LitecoinZ developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_QT_ADDRESSBOOKPAGE_H #define BITCOIN_QT_ADDRESSBOOKPAGE_H #include <QDialog> class AddressTableModel; class Op...
38.44
75
(translation_unit) "// Copyright (c) 2017-2018 The LitecoinZ developers\n// Distributed under the MIT software license, see the accompanying\n// file COPYING or http://www.opensource.org/licenses/mit-license.php.\n\n#ifndef BITCOIN_QT_ADDRESSBOOKPAGE_H\n#define BITCOIN_QT_ADDRESSBOOKPAGE_H\n\n#include <QDialog>\n\nclas...
435
11
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 38.44, "nodes": 263, "errors": 0, "source_hash": "06a8f8feafd0203e1e91a33b34f7003ac018270295ecdcc78572eed1d9d9b1e3", "categorized_nodes": 176}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
89
c
#include <stdio.h> #include <stdlib.h> /** * Return an array of size *returnSize. * Note: The returned array must be malloced, assume caller calls free(). */ int* productExceptSelf(int* nums, int numsSize, int* returnSize) { int* ans = malloc(sizeof(int) * numsSize); int k; for (k = 0; k < numsSize; k+...
26.02
58
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\n/**\n * Return an array of size *returnSize.\n * Note: The returned array must be malloced, assume caller calls free().\n */\nint* productExceptSelf(int* nums, int numsSize, int* returnSize) {\n int* ans = malloc(sizeof(int) * numsSize);\n int k;\n\n ...
323
0
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 26.02, "nodes": 205, "errors": 0, "source_hash": "f84e12c3de83538d2de9c7fbb52a5f73bf8a8c44a62f400a46c30b967fe604be", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
90
c
#pragma once #ifndef _ASSERT # include <assert.h> # include <signal.h> # include <pthread.h> # # define _ASSERT(exp) (void)((!!(exp)) || (fprintf( stderr, "ASSERT - %s line %d\n", __FILE__, __LINE__ ), pthread_kill(pthread_self(), SIGSTOP))) #endif
31.62
8
(translation_unit) "#pragma once\n\n#ifndef _ASSERT\n# include <assert.h>\n# include <signal.h>\n# include <pthread.h>\n#\n# define _ASSERT(exp) (void)((!!(exp)) || (fprintf( stderr, "ASSERT - %s line %d\n", __FILE__, __LINE__ ), pthread_kill(pthread_self(), SIGSTOP)))\n#endif\n" (preproc_call) "#pragma o...
27
2
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 31.62, "nodes": 24, "errors": 0, "source_hash": "491174e55a25530230a3564073a34f56be3ced193c1751aceca50e40e2d6e7f7", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
91
c
#pragma once #include <string> #include "trigger_tools.h" #include "cpptoml.h" //TODO:: Add using macro in import * export component_world's code. // Add name in Component List // When Component Destroy or Save timing, U Can Use this Macro! // if registed this component in WorldsUpdateList, this _component are Savin...
28.12
49
(translation_unit) "#pragma once\n#include <string>\n#include "trigger_tools.h"\n#include "cpptoml.h"\n\n//TODO:: Add using macro in import * export component_world's code. \n\n// Add name in Component List\n// When Component Destroy or Save timing, U Can Use this Macro!\n// if registed this component in WorldsUpdateLi...
236
5
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 28.12, "nodes": 130, "errors": 0, "source_hash": "7429b7389b991ad41723ad46322583db0508c3e09a7852b76a21d58ce4bbc51a", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
92
c
#pragma once #include "glm/glm.hpp" struct Particle { glm::vec3 pos; glm::vec3 speed; float life = 0.0f; // Remaining life of the particle. if <= 0: unused / dead. float squared_cam_distance = 1.0f; // -1.0 if dead bool operator<(const Particle& that) const { return this->life < that....
24.54
13
(translation_unit) "#pragma once\n\n#include "glm/glm.hpp"\n\nstruct Particle\n{\n glm::vec3 pos;\n glm::vec3 speed;\n float life = 0.0f; // Remaining life of the particle. if <= 0: unused / dead.\n float squared_cam_distance = 1.0f; // -1.0 if dead\n\n bool operator<(const Particle& that) const\n {\n...
78
9
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 24.54, "nodes": 45, "errors": 0, "source_hash": "aa5e953a7075855e3327cfa0d41093152ef541a523fc734a04dfa82396f350a8", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
93
c
#ifndef CGL_UTILS_H #define CGL_UTILS_H typedef struct cgl_point { float x; float y; } CGL_Point_t; int CGL_UTILS_ORIENTATION(CGL_Point_t a, CGL_Point_t b, CGL_Point_t p); #endif /* CGL_UTILS_H */
24.12
8
(translation_unit) "#ifndef CGL_UTILS_H\n#define CGL_UTILS_H\n\ntypedef struct cgl_point {\n float x;\n float y;\n} CGL_Point_t;\n\nint CGL_UTILS_ORIENTATION(CGL_Point_t a, CGL_Point_t b, CGL_Point_t p);\n\n#endif /* CGL_UTILS_H */\n" (preproc_ifdef) "#ifndef CGL_UTILS_H\n#define CGL_UTILS_H\n\ntypedef struct cgl_p...
46
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 24.12, "nodes": 33, "errors": 0, "source_hash": "93f843e929a07b647e619a09298b84d52d69488cbee296aca90ed3e66aa27720", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef C...
94
c
/* * ===================================================================================== * * Filename: ArrayQueue.h * * Description: * * Version: 1.0 * Created: 01/07/2015 11:29:19 AM * Revision: none * Compiler: gcc * * Author: <NAME> (bep), <EMAIL> * ...
20.3
70
(translation_unit) "/*\n * =====================================================================================\n *\n * Filename: ArrayQueue.h\n *\n * Description: \n *\n * Version: 1.0\n * Created: 01/07/2015 11:29:19 AM\n * Revision: none\n * Compiler: gcc\n *\n * Aut...
398
11
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 20.3, "nodes": 229, "errors": 0, "source_hash": "1d65fe75e2fb30bb56faec4997251ab443d92287d51a267c6635f2e9ba8589e7", "categorized_nodes": 161}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
95
c
// Copyright 2020 the V8 project 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 V8_HEAP_LOCAL_FACTORY_H_ #define V8_HEAP_LOCAL_FACTORY_H_ #include "src/base/logging.h" #include "src/common/globals.h" #include "src/handles/h...
36.8
80
(translation_unit) "// Copyright 2020 the V8 project 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 V8_HEAP_LOCAL_FACTORY_H_\n#define V8_HEAP_LOCAL_FACTORY_H_\n\n#include "src/base/logging.h"\n#include "src/common/global...
424
9
{"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 36.8, "nodes": 250, "errors": 0, "source_hash": "22a29d96497c314facf590e74df2ba9dfbf8308afec84569aa71618b7b744f76", "categorized_nodes": 179}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
96
c
// // Created by windyear_office on 18-4-5. // #ifndef HEADFIRSTDESIGNPATTERNS_FLY_WITH_WINGS_H #define HEADFIRSTDESIGNPATTERNS_FLY_WITH_WINGS_H #include <iostream> #include "fly_behavior.h" class FlyWithWings: public FlyBehavior{ public: void Fly(){ std::cout << "I can fly with wings! I am very happy!" ...
26.86
14
(translation_unit) "//\n// Created by windyear_office on 18-4-5.\n//\n\n#ifndef HEADFIRSTDESIGNPATTERNS_FLY_WITH_WINGS_H\n#define HEADFIRSTDESIGNPATTERNS_FLY_WITH_WINGS_H\n\n#include <iostream>\n#include "fly_behavior.h"\n\nclass FlyWithWings: public FlyBehavior{\npublic:\n void Fly(){\n std::cout << "I can f...
66
3
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 26.86, "nodes": 34, "errors": 0, "source_hash": "5c434e86f175bd0fa8c0da0a691baffd5ab62baaa75411a4f54bea182a45349d", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
97
c
/* SKaMPI MPI-Benchmark Copyright 2003-2008 <NAME> Lehrstuhl Informatik fuer Naturwissenschaftler und Ingenieure Fakultaet fuer Informatik University of Karlsruhe This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by t...
23.49
199
(translation_unit) "/* SKaMPI MPI-Benchmark\n\nCopyright 2003-2008 <NAME>\nLehrstuhl Informatik fuer Naturwissenschaftler und Ingenieure \nFakultaet fuer Informatik\nUniversity of Karlsruhe\n\nThis program is free software; you can redistribute it and/or modify\nit under the terms of version 2 of the GNU General Publ...
1,179
0
{"language": "c", "success": true, "metadata": {"lines": 199, "avg_line_length": 23.49, "nodes": 906, "errors": 0, "source_hash": "cdf2ba241f7c4317b6cd255cbb6c1a28674293794c5f5f6678096a4fcd78e11e", "categorized_nodes": 646}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
98
c
#if PLATFORM_WINDOWS #pragma warning(pop) #ifndef UE4_MINIMAL_WINDOWS_INCLUDE #define UE4_MINIMAL_WINDOWS_INCLUDE #endif #include "Windows/AllowWindowsPlatformTypes.h" #endif
24
7
(translation_unit) "#if PLATFORM_WINDOWS\n#pragma warning(pop)\n#ifndef UE4_MINIMAL_WINDOWS_INCLUDE\n#define UE4_MINIMAL_WINDOWS_INCLUDE\n#endif\n#include "Windows/AllowWindowsPlatformTypes.h"\n#endif" (preproc_if) "#if PLATFORM_WINDOWS\n#pragma warning(pop)\n#ifndef UE4_MINIMAL_WINDOWS_INCLUDE\n#define UE4_MINIMAL_W...
22
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 24.0, "nodes": 18, "errors": 0, "source_hash": "83922af3459ddad56d2bc47c346a131d1ed357c65a3d5f417599adadbb1a6b88", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if PLATFORM_...
99