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
// // PVVFLImp.h // Parus // // Created by <NAME> on 8/15/13. // // @class PVVFLContext; @interface PVVFLLayout : NSObject @property (strong) PVVFLContext* context; @end
14.73
11
(translation_unit) "//\n// PVVFLImp.h\n// Parus\n//\n// Created by <NAME> on 8/15/13.\n//\n//\n\n@class PVVFLContext;\n@interface PVVFLLayout : NSObject\n\n@property (strong) PVVFLContext* context;\n\n@end\n" (comment) "//" (comment) "// PVVFLImp.h" (comment) "// Parus" (comment) "//" (comment) "// Crea...
37
8
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 14.73, "nodes": 22, "errors": 0, "source_hash": "35459360206fc603f95060f25eda8cb405d6b2e2b5eed412f9a42659e7c2577f", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nu...
78,800
c
#ifndef __j1ENTITY_H__ #define __j1ENTITY_H__ #include "j1Module.h" #include "p2Point.h" #include "p2DynArray.h" #include "SDL/include/SDL_rect.h" #include "j1Timer.h" class Animation; struct Collider; struct SDL_Texture; struct SDL_Rect; enum class ENTITY_TYPE { UNKNOWN_TYPE, PLAYER, PLAYER2, MECHA, ALIEN,...
33.7
60
(translation_unit) "fndef __j1ENTITY_H__\n#define __j1ENTITY_H__\n\n#include "j1Module.h"\n#include "p2Point.h"\n#include "p2DynArray.h"\n#include "SDL/include/SDL_rect.h"\n#include "j1Timer.h"\n\n\nclass Animation;\n\nstruct Collider;\nstruct SDL_Texture; \nstruct SDL_Rect;\n\nenum class ENTITY_TYPE\n{\n UNKNOWN_TYPE,...
386
25
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 33.7, "nodes": 242, "errors": 0, "source_hash": "f90e32f1b0271d67620ce5a979e548cb4d33c8ffedb2a147655e52b581ce51ae", "categorized_nodes": 190}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "fndef __j1ENTIT...
78,801
c
/* * UDP server */ #include <stdio.h> #include <stdint.h> #include <string.h> #include "../src/udp.h" #define BUF_SIZE 256 int main(int argc, char *argv[]) { char buf[BUF_SIZE]; int r; udp_channel *client = udp_open(UDP_SERVER, NULL, 9998); if (!client) { fprintf(stderr, "udp_open()\n"); return ...
22.15
27
(translation_unit) "/*\n * UDP server\n */\n\n#include <stdio.h>\n#include <stdint.h>\n#include <string.h>\n\n#include "../src/udp.h"\n\n#define BUF_SIZE 256\n\nint main(int argc, char *argv[])\n{\n char buf[BUF_SIZE];\n int r;\n udp_channel *client = udp_open(UDP_SERVER, NULL, 9998);\n if (!client) {\n fpr...
236
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 22.15, "nodes": 136, "errors": 0, "source_hash": "d2b43ff64f67f19994da1c435275e0d0904fdee151f401c74605b979400b9afb", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
78,802
c
/* Copyright Airship and Contributors */ #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import "UAApplicationState.h" NS_ASSUME_NONNULL_BEGIN /** * Delegate protocol for app state tracker callbacks. */ @protocol UAAppStateTrackerDelegate <NSObject> /** * The application finished launching. * * @par...
25.63
59
(translation_unit) "/* Copyright Airship and Contributors */\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n#import "UAApplicationState.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n/**\n * Delegate protocol for app state tracker callbacks.\n */\n@protocol UAAppStateTrackerDelegate <NSObject>\n\n/**\n * The applicat...
170
17
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 25.63, "nodes": 112, "errors": 0, "source_hash": "f6529b3343e908e5fec932879d1a42b8f89611b0bb6764ed5030f52bdf0f205b", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
78,803
c
#define WE 14 #define OE 21 #define CE 51 #define A0 22 #define A1 23 #define A2 24 #define AB3 25 #define AB4 26 #define A5 27 #define A6 67 #define A7 66 #define A8 18 #define A9 19 #define A10 32 #define A11 20 #define A12 65 #define A13 17 #define A14 16 #define A15 64 #define A16 63 #define A17 15 #define A18 6...
13.37
30
(translation_unit) "#define WE 14\n#define OE 21\n#define CE 51\n\n#define A0 22\n#define A1 23\n#define A2 24\n#define AB3 25\n#define AB4 26\n#define A5 27\n#define A6 67\n#define A7 66\n#define A8 18\n#define A9 19\n#define A10 32\n#define A11 20\n#define A12 65\n#define A13 17\n#define A14 16\n#define A15 64\n#defi...
121
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 13.37, "nodes": 120, "errors": 0, "source_hash": "563679c16992f8c14989afb8e90dc67c217e6051e29208ef0e80ca1ed637691b", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define W...
78,804
c
#include "tolua.h" class Point { double m_x, m_y; public: Point (double x, double y) : m_x(x), m_y(y) { } double X () const { return m_x; } double Y () const { return m_y; } int gets (lua_State* L) const { tolua_pushnumber(L,m_x); tolua_pushnumber(L,m_y); return 2; } }; ...
12.29
24
(translation_unit) "#include "tolua.h"\n\nclass Point\n{\n double m_x, m_y;\npublic:\n Point (double x, double y)\n : m_x(x), m_y(y)\n {\n }\n double X () const\n {\n return m_x;\n }\n double Y () const\n {\n return m_y;\n }\n int gets (lua_State* L) const\n {\n tolua_pushnumber(L,m_x);\n tolua...
126
5
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 12.29, "nodes": 65, "errors": 0, "source_hash": "e5f6d8eb25f056214f1b1b4379eff6fe8110e7d75863193ec9803a97fe2ecb79", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
78,805
c
#ifndef __MODEL_H__ #define __MODEL_H__ #include <vector> struct ModelGroup { const char *name; int num_triangles; }; struct ModelLayout { const char *name; unsigned int offset; unsigned int stride; int elem_type; int elem_count; }; struct Model { char *name; unsigned int vao, vb...
22.24
25
(translation_unit) "#ifndef __MODEL_H__\n#define __MODEL_H__\n\n#include <vector>\n\nstruct ModelGroup {\n const char *name;\n int num_triangles;\n};\n\nstruct ModelLayout {\n const char *name;\n unsigned int offset;\n unsigned int stride;\n int elem_type;\n int elem_count;\n};\n\nstruct Model {\n ...
179
2
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 22.24, "nodes": 127, "errors": 0, "source_hash": "db8fd345b2e2acd036adf9b177973a9fee7f265b5f06b740232849a3107e2b70", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,806
c
#include<stdio.h> int main() { int n,array[100],i,c,c1,j=1; while(1) { c=0; c1=0; scanf("%d",&n); if(n==0) { break; } for(i=0;i<n;i++) { scanf("%d",&array[i]); } for(i=0;i<n;i++) { if(...
15.15
33
(translation_unit) "#include<stdio.h>\nint main()\n{\n int n,array[100],i,c,c1,j=1;\n while(1)\n {\n c=0;\n c1=0;\n scanf("%d",&n);\n if(n==0)\n {\n break;\n }\n for(i=0;i<n;i++)\n {\n scanf("%d",&array[i]);\n }\n for(i...
204
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 15.15, "nodes": 108, "errors": 0, "source_hash": "4fb0b737e9c7887ca73679fe8ce5cfda11e963046ced2726e2d182e2ed5f6987", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
78,807
c
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_CONFIG_VALUES_H_ #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTI...
44.82
34
(translation_unit) "// Copyright 2015 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_CONFIG_VALUES_H_\n#define COMPONENTS_DATA_REDUCTION_PROXY...
173
10
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 44.82, "nodes": 98, "errors": 0, "source_hash": "3a0a02101ad69c4a254eb9400de4878154bbd9eb6870bdea3aa35422fb8ec9b6", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,808
c
//Created: 27-09-2013 //Modified: Wed 15 Oct 2014 15:09:55 CEST //Author: <NAME> (<EMAIL>) #ifndef STDFUNCS_H #define STDFUNCS_H #include<cstdio> #include<list> #include<vector> #include<string> #include<array> #include<algorithm> #include"error.h" #include"typedefs.hpp" /*! * Useful standard functions and compli...
26.95
260
(translation_unit) "//Created: 27-09-2013\n//Modified: Wed 15 Oct 2014 15:09:55 CEST\n//Author: <NAME> (<EMAIL>)\n\n#ifndef STDFUNCS_H\n#define STDFUNCS_H\n\n#include<cstdio>\n#include<list>\n#include<vector>\n#include<string>\n#include<array>\n#include<algorithm>\n\n#include"error.h"\n#include"typedefs.hpp"\n\n\n/*!\n...
1,252
53
{"language": "c", "success": true, "metadata": {"lines": 260, "avg_line_length": 26.95, "nodes": 765, "errors": 0, "source_hash": "18ae1836362bc6be53e52bdbf7c72dc8a88af22ad8e1269bc1c48c01b47169c8", "categorized_nodes": 546}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,809
c
// // LRAllParametersMatcher.h // Mocky // // Created by <NAME> on 05/01/2013. // // #import <OCHamcrest/HCBaseMatcher.h> #import "HCSelfDescribing.h" @interface LRAllParametersMatcher : HCBaseMatcher - (id)initWithParameters:(NSArray *)parameters; @end
20.42
12
(translation_unit) "//\n// LRAllParametersMatcher.h\n// Mocky\n//\n// Created by <NAME> on 05/01/2013.\n//\n//\n\n#import <OCHamcrest/HCBaseMatcher.h>\n#import "HCSelfDescribing.h"\n\n@interface LRAllParametersMatcher : HCBaseMatcher\n\n- (id)initWithParameters:(NSArray *)parameters;\n\n@end\n" (comment) "//" (c...
43
5
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 20.42, "nodes": 23, "errors": 0, "source_hash": "dab9eb5e0824a0038c79d2afd5f8dc9b437919703db3ea606e5abe55485915fe", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
78,810
c
// { dg-do run } extern void abort(void); #define N 1000 int foo() { int i = 0, j; #pragma omp parallel for num_threads(2) shared (i) for (j = 0; j < N; ++j) { #pragma omp parallel num_threads(1) shared (i) { #pragma omp atomic i++; } } return i; } int main() { if (foo() != N)...
13.96
23
(translation_unit) "// { dg-do run }\n\nextern void abort(void);\n#define N 1000\n\nint foo()\n{\n int i = 0, j;\n\n #pragma omp parallel for num_threads(2) shared (i)\n for (j = 0; j < N; ++j)\n {\n #pragma omp parallel num_threads(1) shared (i)\n {\n #pragma omp atomic\n i++;\n }\n }\n\n retu...
112
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 13.96, "nodes": 69, "errors": 0, "source_hash": "100cd4314a9a5c0bcc235efab44a4664eb97d7e79ac1bdbee62d9fb999017a22", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern voi...
78,811
c
#include <stdio.h> #include <stdlib.h> int sum(int *v, int n) { int result = 0; for (int i = 0; i < n; i++) result += v[i]; return result; } int testalloca(int n) { int *v = (int *)alloca(n * sizeof(int)); int v2[n * 2]; for (int i = 0; i < n; i++) { v[i] = i; v2[i] = i; v2[n + i] = i * 2;...
19.15
27
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\nint sum(int *v, int n) {\n int result = 0;\n for (int i = 0; i < n; i++)\n result += v[i];\n return result;\n}\n\nint testalloca(int n) {\n int *v = (int *)alloca(n * sizeof(int));\n int v2[n * 2];\n for (int i = 0; i < n; i++) {\n v[i] = i;\n ...
295
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 19.15, "nodes": 195, "errors": 0, "source_hash": "7ffcda528ae9124b68dcf82ca439c3a9ccb12009e8e17e8638615697633711cf", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,812
c
#include<stdio.h> #include<string.h> static long c=0; void swap(char *a, char *b) { char t=*a; *a=*b; *b=t; } void perm(char *a, int i, int n) { int j; if(i==n) { printf("%s\n",a); c++; } else { for (j = i; j <= n; j++) { swap((a+i), (a+j)); perm(a, i+1, n); s...
12.65
43
(translation_unit) "#include<stdio.h>\n#include<string.h>\nstatic long c=0;\nvoid swap(char *a, char *b)\n{\n char t=*a;\n *a=*b;\n *b=t;\n}\nvoid perm(char *a, int i, int n)\n{\n int j;\n if(i==n)\n {\n printf("%s\n",a);\n c++;\n }\n else\n {\n for (j = i; j <= n; j++)\n {\n swap((a+i), (a+j));\n...
338
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 12.65, "nodes": 194, "errors": 0, "source_hash": "1087d6f933fb636bfb2f5d2dd8dac6a40e8faaee66df61f0bfe2f623e4d298cf", "categorized_nodes": 133}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,813
c
//===- OStream.h ----------------------------------------------------------===// // // The Bold Project // // This file is distributed under the New BSD License. // See LICENSE for details. // //===----------------------------------------------------------------------===// #ifndef BOLD_SUPP...
34.6
73
(translation_unit) "//===- OStream.h ----------------------------------------------------------===//\n//\n// The Bold Project\n//\n// This file is distributed under the New BSD License.\n// See LICENSE for details.\n//\n//===------------------------------------------------------------------...
404
28
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 34.6, "nodes": 249, "errors": 0, "source_hash": "679fe8cd83c88eacd9be95aab4a06f6f4026aeb4c493d07800d1b6ca8b401957", "categorized_nodes": 169}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,814
c
#ifndef HCALConfigDBTools_XMLTools_LMap_h #define HCALConfigDBTools_XMLTools_LMap_h // -*- C++ -*- // // Package: CalibCalorimetry/HcalTPGAlgos // Class : HcalEmap // // Implementation: // structure and functionality for HCAL electronic map // NOTE! // Keep xdaq and Oracle dependencies out of here!...
24.87
63
(translation_unit) "#ifndef HCALConfigDBTools_XMLTools_LMap_h\n#define HCALConfigDBTools_XMLTools_LMap_h\n// -*- C++ -*-\n//\n// Package: CalibCalorimetry/HcalTPGAlgos\n// Class : HcalEmap\n//\n// Implementation:\n// structure and functionality for HCAL electronic map\n// NOTE!\n// Keep xdaq and Or...
362
10
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 24.87, "nodes": 185, "errors": 0, "source_hash": "5a8bc8e72d3379c9dfe062b059c5de625d38628d4b8ef9c325bcdb651ffa96fd", "categorized_nodes": 133}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,815
c
// // UIScreen+SAMAdditions.h // SAMCategories // // Created by <NAME> on 2/4/11. // Copyright (c) 2011-2014. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> /** Provides extensions to `UIScreen` for various common tasks. */ @interface UIScreen (SAMAdditions) ///--------------...
27.47
43
(translation_unit) "//\n// UIScreen+SAMAdditions.h\n// SAMCategories\n//\n// Created by <NAME> on 2/4/11.\n// Copyright (c) 2011-2014. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n\n/**\n Provides extensions to `UIScreen` for various common tasks.\n */\n@interface UIScreen...
74
5
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 27.47, "nodes": 36, "errors": 0, "source_hash": "9f466696441f904d3273eed37ae01f358eb269f28c742bcf8efa31dc658b80ca", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
78,816
c
#include "../ccommon.c" #include <limits.h> #include <stdbool.h> #include <stdlib.h> struct STRUCT { TYPENAME *v; int idx; int capacity; }; // #define ALIGN16(_X_) (((_X_)+(16)) & ~0x0f) __always_inline TYPENAME * _(data)(const STRUCT *vct) { return vct->v; } __always_inline bool _(isEmpty)(const STRUCT *vct) { ...
31.68
91
(translation_unit) "#include "../ccommon.c"\n\n#include <limits.h>\n#include <stdbool.h>\n#include <stdlib.h>\n\nstruct STRUCT {\n TYPENAME *v;\n int idx;\n int capacity;\n};\n\n// #define ALIGN16(_X_) (((_X_)+(16)) & ~0x0f)\n\n__always_inline TYPENAME * _(data)(const STRUCT *vct) { return vct->v; }\n__always_inline bo...
1,276
16
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 31.68, "nodes": 827, "errors": 0, "source_hash": "0b4feb7e06a381a44dc599da683490a7e71eafb3bd98314bf1caa0953c5612c5", "categorized_nodes": 604}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,817
c
/* Configuration for GCC for Intel i860 running System V Release 4. */ #include "i860/xm-i860.h" #include "xm-svr4.h"
38.67
3
(translation_unit) "/* Configuration for GCC for Intel i860 running System V Release 4. */\n\n#include "i860/xm-i860.h"\n#include "xm-svr4.h"\n" (comment) "/* Configuration for GCC for Intel i860 running System V Release 4. */" (preproc_include) "#include "i860/xm-i860.h"\n" (#include) "#include" (string_...
14
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 38.67, "nodes": 6, "errors": 0, "source_hash": "9f80863b122568d745043ee5661e01eb9dac0dd8e3bbd6db6ce18841174fdb3f", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include ...
78,818
c
# 1 "empty-line-spacing.c" a b c d e f g h # 46 "empty-line-spacing.c" i # 56 "empty-line-spacing.c" j # 67 "empty-line-spacing.c" k # 79 "empty-line-spacing.c" l # 92 "empty-line-spacing.c" m 6 directives # 108 "empty-line-spacing.c" 7 directives # 118 "empty-line-spacing.c" 8 direct...
7.91
45
(translation_unit) "# 1 "empty-line-spacing.c"\n\na\n\nb\n\n\nc\n\n\n\nd\n\n\n\n\ne\n\n\n\n\n\nf\n\n\n\n\n\n\ng\n\n\n\n\n\n\n\nh\n# 46 "empty-line-spacing.c"\ni\n# 56 "empty-line-spacing.c"\nj\n# 67 "empty-line-spacing.c"\nk\n# 79 "empty-line-spacing.c"\nl\n# 92 "empty-line-spacing.c"\nm\n\n\n\n\n\n\n6 directives\n# 10...
90
10
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 7.91, "nodes": 69, "errors": 0, "source_hash": "fca4277cd00df887f75a961db4dfe9d7fad544c196da08af11596bd91e8eca80", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "# 1 \"empt...
78,819
c
#include "Window.h" #pragma once class Frame : public Window { LRESULT OnDestroy(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/); public: Frame(Theme &theme); ~Frame(); BEGIN_MSG_MAP(Frame) CHAIN_MSG_MAP(Window) MESSAGE_HANDLER(WM_DESTROY, OnDestroy) END_MSG_MAP() };
19
16
(translation_unit) "#include "Window.h" \n \n#pragma once \n \nclass Frame : public Window \n{ \n LRESULT OnDestroy(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/); \npublic: \n Frame(Theme &theme); \n ~Frame(); \n \n BEGIN_MSG_MAP(Frame) \n CHAIN_MSG_MAP(Window) \n MESSAGE_HANDLER(WM_DESTROY...
94
4
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 19.0, "nodes": 49, "errors": 0, "source_hash": "e46fdd26126bd48f7c38e15163b9d7012459f8724b998f5376f6062b2ee050b3", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
78,820
c
/* Copyright (c) 2020 <NAME> * * Licensed under the BSD 3-Clause License * <LICENSE or https://opensource.org/licenses/BSD-3-Clause>. * This file may not be copied, modified, or distributed except * according to those terms. */ #ifndef BASIC_BLOCK_H #define BASIC_BLOCK_H #include "common.h" #include "inst.h" n...
29.63
119
(translation_unit) "/* Copyright (c) 2020 <NAME>\n *\n * Licensed under the BSD 3-Clause License\n * <LICENSE or https://opensource.org/licenses/BSD-3-Clause>.\n * This file may not be copied, modified, or distributed except\n * according to those terms.\n */\n\n#ifndef BASIC_BLOCK_H\n#define BASIC_BLOCK_H\n\n#include ...
1,179
54
{"language": "c", "success": true, "metadata": {"lines": 119, "avg_line_length": 29.63, "nodes": 722, "errors": 0, "source_hash": "0eafe428deef380d59c7a09ecf7362b0655cc52e54845ff2dbf21c030bc02f24", "categorized_nodes": 495}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,821
c
/* * incumbent.h * * Created on: 10-nov-2014 * Author: <NAME> */ #ifndef INCUMBENT_H #define INCUMBENT_H #include <ilcplex/ilocplex.h> #include <ilcplex/ilocplexi.h> #include <ilconcert/ilothread.h> #include <limits> #include "utils.h" namespace nina { namespace mwcs { class Incumbent : public IloCplex::...
17.55
69
(translation_unit) "/*\n * incumbent.h\n *\n * Created on: 10-nov-2014\n * Author: <NAME>\n */\n\n#ifndef INCUMBENT_H\n#define INCUMBENT_H\n\n#include <ilcplex/ilocplex.h>\n#include <ilcplex/ilocplexi.h>\n#include <ilconcert/ilothread.h>\n#include <limits>\n#include "utils.h"\n\nnamespace nina {\nnamespace mwcs {...
364
15
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 17.55, "nodes": 204, "errors": 0, "source_hash": "f9ecb2bacbfcec324ffc220a3c370aba5d5d32d046494c22d26a31f4fa3f71ac", "categorized_nodes": 146}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,822
c
/** * \file timer_test.c * * \brief Example application main file for 1 millisecond (1msec) timer test. * * Targeted Functionality: Demonstrating the 1msec clock tick * generation by timer module on Sitara platforms. * * Operation: Test configures the timer module to generate 1msec tick. * Interrupts ...
37.41
297
(translation_unit) "/**\n * \file timer_test.c\n *\n * \brief Example application main file for 1 millisecond (1msec) timer test.\n *\n * Targeted Functionality: Demonstrating the 1msec clock tick\n * generation by timer module on Sitara platforms.\n *\n * Operation: Test configures the timer module to generate...
1,460
0
{"language": "c", "success": true, "metadata": {"lines": 297, "avg_line_length": 37.41, "nodes": 858, "errors": 0, "source_hash": "8602dc9babd80f01fb3a0425a0ba0ae8649bba7cef160b62ffadbe3c00cdcd45", "categorized_nodes": 570}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,823
c
#ifndef ARRAY_H #define ARRAY_H #include <assert.h> #include <string.h> #include "types.h" #include "allocator.h" #define FOR(a, i) for(u32 i = 0; i < a->count; i++) #include <stdio.h> template<typename T> struct Array { Allocator allocator; u32 size; u32 count; T *data; Array(Allocator _allocator = cstdlib_...
18.7
138
(translation_unit) "#ifndef ARRAY_H\n#define ARRAY_H\n\n#include <assert.h>\n#include <string.h>\n\n#include "types.h"\n#include "allocator.h"\n\n#define FOR(a, i) for(u32 i = 0; i < a->count; i++)\n\n#include <stdio.h>\n\ntemplate<typename T>\nstruct Array {\n Allocator allocator;\n u32 size;\n u32 count;\n T *data;\n...
1,245
10
{"language": "c", "success": true, "metadata": {"lines": 138, "avg_line_length": 18.7, "nodes": 781, "errors": 0, "source_hash": "c09f10cbd108213a59f46b4814e701995139fa8173b5ea84b6a7c0af5f209a94", "categorized_nodes": 578}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,824
c
// // DayDateView.h // XQDoctors // // Created by 陈成 on 16/7/1. // Copyright © 2016年 li. All rights reserved. // #import <UIKit/UIKit.h> @interface DayDateView : UIView @property (weak, nonatomic) IBOutlet UILabel *weakLabel; @property (weak, nonatomic) IBOutlet UILabel *riQiLabel; @end
23.33
12
(translation_unit) "//\n// DayDateView.h\n// XQDoctors\n//\n// Created by 陈成 on 16/7/1.\n// Copyright © 2016年 li. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface DayDateView : UIView\n@property (weak, nonatomic) IBOutlet UILabel *weakLabel;\n\n@property (weak, nonatomic) IBOutlet UILabel *riQiLabe...
59
10
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 23.33, "nodes": 41, "errors": 0, "source_hash": "2432d4abc8c607063b05d9fd5db6c6d3e4a3fbc0c5019c266aa25f3b3a172f9a", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <UIKit/U...
78,825
c
/* ** EPITECH PROJECT, 2020 ** libmy ** File description: ** my_path_join implementation */ #include "my/my.h" #include "my/path.h" char *my_path_join(sstr_t path, sstr_t other) { return (my_format("%zs/%zs", path, other)); }
18.17
12
(translation_unit) "/*\n** EPITECH PROJECT, 2020\n** libmy\n** File description:\n** my_path_join implementation\n*/\n\n#include "my/my.h"\n#include "my/path.h"\n\nchar *my_path_join(sstr_t path, sstr_t other)\n{\n return (my_format("%zs/%zs", path, other));\n}\n" (comment) "/*\n** EPITECH PROJECT, 2020\n** libmy\...
52
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 18.17, "nodes": 27, "errors": 0, "source_hash": "588a21237ed9413f5507c2f212f9df628052416b5b16f8de08101bb844d521f7", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
78,826
c
/* ** Use-case of the logger library. ** ** - Compilation : ** ** $ clang -Wall -Wextra -Werror main.c liblogger.a -I incs ** ** or use the Makefile rule : ** ** $ make test ** ** This file is under Apache 2.0 license, see LICENSE.md. */ #include "logger.h" int main(void) { // Initialize the logger (level and outp...
22.19
32
(translation_unit) "/*\n** Use-case of the logger library.\n**\n** - Compilation :\n**\n** $ clang -Wall -Wextra -Werror main.c liblogger.a -I incs\n** \n** or use the Makefile rule :\n**\n** $ make test\n**\n** This file is under Apache 2.0 license, see LICENSE.md.\n*/ \n\n#include "logger.h"\n\nint main(void)\n{\n //...
180
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 22.19, "nodes": 66, "errors": 0, "source_hash": "1dcfec51889b5e8300d82c9b54b6ca0bc6c92a5dde74c66dc808b8d0b88609af", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
78,827
c
#include <u.h> #include <lib9.h> #include <draw.h> float c1 = 1.402; float c2 = 0.34414; float c3 = 0.71414; float c4 = 1.772; int closest(int Y, int Cb, int Cr) { double r, g, b; double diff, min; int rgb, R, G, B, v, i; int y1, cb1, cr1; Cb -= 128; Cr -= 128; r = Y+c1*Cr; g = Y-c2*Cb-c3*Cr; b = Y+c4*Cb; ...
16.75
108
(translation_unit) "#include <u.h>\n#include <lib9.h>\n#include <draw.h>\n\nfloat c1 = 1.402;\nfloat c2 = 0.34414;\nfloat c3 = 0.71414;\nfloat c4 = 1.772;\n\n\nint\nclosest(int Y, int Cb, int Cr)\n{\n double r, g, b;\n double diff, min;\n int rgb, R, G, B, v, i;\n int y1, cb1, cr1;\n\n Cb -= 128;\n Cr -= 128;\n r = Y+c...
852
0
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 16.75, "nodes": 563, "errors": 0, "source_hash": "279490d8a1d287d9631be20acc706807b4a090cfc35fe8c6e0a1ea1e1829bfa4", "categorized_nodes": 413}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,828
c
#include "pnbc_osc_request.h" #include "pnbc_osc_debug.h" int PNBC_OSC_Start(ompi_coll_libpnbc_osc_request_t *handle); void PNBC_OSC_Free (ompi_coll_libpnbc_osc_request_t* handle); static void request_construct(ompi_coll_libpnbc_osc_request_t *request); static void request_destruct(ompi_coll_libpnbc_osc_request_t *re...
36.36
108
(translation_unit) "#include "pnbc_osc_request.h"\n#include "pnbc_osc_debug.h"\n\nint PNBC_OSC_Start(ompi_coll_libpnbc_osc_request_t *handle);\nvoid PNBC_OSC_Free (ompi_coll_libpnbc_osc_request_t* handle);\n\nstatic void request_construct(ompi_coll_libpnbc_osc_request_t *request);\nstatic void request_destruct(ompi_col...
1,094
0
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 36.36, "nodes": 639, "errors": 0, "source_hash": "842dc61846e2d6d481237f0576a4f17b434141970f2a7aa86d241a7d685bf260", "categorized_nodes": 467}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,829
c
/*- * Copyright (C) 2009 <NAME> * Copyright (C) 2015 The FreeBSD Foundation * All rights reserved. * * Portions of this software were developed by <NAME> * under sponsorship from the FreeBSD Foundation. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provide...
31.44
281
(translation_unit) "/*-\n * Copyright (C) 2009 <NAME>\n * Copyright (C) 2015 The FreeBSD Foundation\n * All rights reserved.\n *\n * Portions of this software were developed by <NAME>\n * under sponsorship from the FreeBSD Foundation.\n *\n * Redistribution and use in source and binary forms, with or without\n * modifi...
2,069
2
{"language": "c", "success": true, "metadata": {"lines": 281, "avg_line_length": 31.44, "nodes": 1189, "errors": 0, "source_hash": "5593c6321ab7ca87bf75505d45f3e11504d4241dec280efdb76d62b89896ad3c", "categorized_nodes": 909}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
78,830
c
#ifndef GLOBAL_H #define GLOBAL_H #include <ncurses.h> #include <stdio.h> #include <sys/stat.h> typedef struct{ char nom[3]; int sec; }jugador; jugador j[6]; FILE *f; char *sino[]={ "No", "Si", }; int fexists(const char *filename){ struc...
19.88
86
(translation_unit) "#ifndef GLOBAL_H\n#define GLOBAL_H\n\n#include <ncurses.h>\n#include <stdio.h>\n#include <sys/stat.h>\ntypedef struct{\n\n char nom[3];\n int sec;\n\n }jugador;\n\n\njugador j[6];\nFILE *f;\n\n\nchar *sino[]={\n "No",\n "Si",\n };\n\n\nint fe...
652
2
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 19.88, "nodes": 386, "errors": 0, "source_hash": "1626e39e98a5be0daa9d4b25e9509e9b1ee851680cbc78d722e2a4ec9fac0d0e", "categorized_nodes": 279}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,831
c
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_COCOA_LOCATION_BAR_PLUS_DECORATION_H_ #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_PLUS_DECORATION_H_ #import <Cocoa/Cocoa....
44.52
44
(translation_unit) "// Copyright (c) 2012 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef CHROME_BROWSER_UI_COCOA_LOCATION_BAR_PLUS_DECORATION_H_\n#define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_PLUS_DECORATION_...
266
11
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 44.52, "nodes": 167, "errors": 0, "source_hash": "693e96c49b42c02aa73fc1d16c1597677b248b75184ac1e5ab530410db5ed2f3", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,832
c
// SPDX-License-Identifier: GPL-2.0 #include <linux/bpf.h> #include <bpf/bpf_helpers.h> struct { __uint(type, BPF_MAP_TYPE_PROG_ARRAY); __uint(max_entries, 5); __uint(key_size, sizeof(__u32)); __uint(value_size, sizeof(__u32)); } jmp_table SEC(".maps"); SEC("classifier/0") int bpf_func_0(struct __sk_buff *skb) {...
20.54
50
(translation_unit) "// SPDX-License-Identifier: GPL-2.0\n#include <linux/bpf.h>\n\n#include <bpf/bpf_helpers.h>\n\nstruct {\n __uint(type, BPF_MAP_TYPE_PROG_ARRAY);\n __uint(max_entries, 5);\n __uint(key_size, sizeof(__u32));\n __uint(value_size, sizeof(__u32));\n} jmp_table SEC(".maps");\n\nSEC("classifier/0")\nint bp...
414
6
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 20.54, "nodes": 221, "errors": 0, "source_hash": "de0dc1b43b64e173766a81b0a63b473ccdeef9dcccc20b779fabe7449ca43ac7", "categorized_nodes": 167}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,833
c
/** @file maiin.cpp @author <NAME> @version 1.1 **/ #ifndef BODY_PART_H #define BODY_PART_H class BodyPart { public: BodyPart(); BodyPart( int x, int y ); int X; int oldX; int Y; int oldY; void Update( int x, int y ); }; #endif
9.96
25
(translation_unit) "/** \n @file maiin.cpp \n @author <NAME> \n @version 1.1 \n \n **/ \n \n#ifndef BODY_PART_H \n#define BODY_PART_H \n \nclass BodyPart { \npublic: \n BodyPart(); \n BodyPart( int x, int y ); \n \n int X; \n int oldX; \n \n int Y; \n int oldY; \n \n void Update( int x, int y ); \n}; \n \n#endif \n...
72
1
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 9.96, "nodes": 45, "errors": 0, "source_hash": "8e3233b9af0da02b5e34bd8c552e47e900006386d6b1ef258872111f98ad0ec8", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef B...
78,834
c
// // AboutUsViewController.h // TokenWalletProject // // Created by fchain on 2021/7/28. // Copyright © 2021 Zinkham. All rights reserved. // #import "BaseViewController.h" NS_ASSUME_NONNULL_BEGIN @interface AboutUsViewController : BaseViewController @end NS_ASSUME_NONNULL_END
22.58
12
(translation_unit) "//\n// AboutUsViewController.h\n// TokenWalletProject\n//\n// Created by fchain on 2021/7/28.\n// Copyright © 2021 Zinkham. All rights reserved.\n//\n\n#import "BaseViewController.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface AboutUsViewController : BaseViewController\n\n@end\n\nNS_ASSUME_NONNULL_...
27
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 22.58, "nodes": 14, "errors": 0, "source_hash": "01478c617fb7aeea81b8296e5c16b4737fb650ab0afc48d245e4f7393fb96362", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"B...
78,835
c
// // myDrawTableViewCell.h // hzch // // Created by xtturing on 15/10/9. // Copyright (c) 2015年 xtturing. All rights reserved. // #import <UIKit/UIKit.h> #import "Draw.h" #import "DBCache.h" @interface myDrawTableViewCell : UITableViewCell @property (nonatomic,strong) IBOutlet UIButton *showBtn; @property (nonat...
32.69
26
(translation_unit) "//\n// myDrawTableViewCell.h\n// hzch\n//\n// Created by xtturing on 15/10/9.\n// Copyright (c) 2015年 xtturing. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "Draw.h"\n#import "DBCache.h"\n@interface myDrawTableViewCell : UITableViewCell\n\n@property (nonatomic,strong) IBOutlet UI...
264
45
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 32.69, "nodes": 186, "errors": 0, "source_hash": "a1f653f48480b32ac61615b4f69cf3fcb0f05bfab3aa806f9df3ea8b49968ce1", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <...
78,836
c
#ifndef MARLIB_GSSTEP_H #define MARLIB_GSSTEP_H namespace marlib { /* ! SOR step for solving the following linear equation ! ! alpha * trans(A - sigma I) * x = b ! ! The step computes ! ! notrans ! x := (D/omega + L)^(-1) (b/alpha - (U - D (1-omega)/omega - sigma I) * x) ! !...
33.5
161
(translation_unit) "#ifndef MARLIB_GSSTEP_H\n#define MARLIB_GSSTEP_H\n\nnamespace marlib {\n\n/*\n ! SOR step for solving the following linear equation\n !\n ! alpha * trans(A - sigma I) * x = b\n !\n ! The step computes\n !\n ! notrans\n ! x := (D/omega + L)^(-1) (b/alpha - (U - D (1-o...
2,100
99
{"language": "c", "success": true, "metadata": {"lines": 161, "avg_line_length": 33.5, "nodes": 1468, "errors": 0, "source_hash": "80977b9812a021b3e118c47f621ead4f3cded0b9e1c951087cf29fd25625774c", "categorized_nodes": 903}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,837
c
/*** * Author: <NAME> ***/ #ifndef CRETE_CLUSTER_COMMON_H #define CRETE_CLUSTER_COMMON_H #include <stdint.h> #include <boost/filesystem/path.hpp> #include <boost/serialization/split_member.hpp> #include <boost/uuid/uuid.hpp> #include <boost/uuid/uuid_serialize.hpp> #include <boost/uuid/uuid_io.hpp> #include <cret...
29.05
153
(ERROR) "/***\n * Author: <NAME>\n ***/\n\n#ifndef CRETE_CLUSTER_COMMON_H\n#define CRETE_CLUSTER_COMMON_H\n\n#include <stdint.h>\n\n#include <boost/filesystem/path.hpp>\n#include <boost/serialization/split_member.hpp>\n#include <boost/uuid/uuid.hpp>\n#include <boost/uuid/uuid_serialize.hpp>\n#include <boost/uuid/uuid_i...
1,035
87
{"language": "c", "success": true, "metadata": {"lines": 153, "avg_line_length": 29.05, "nodes": 551, "errors": 0, "source_hash": "c89ae863ecb3d6500f2d33b0454f66c1750ed03a0f3c82dee04f7b3ccbbe4024", "categorized_nodes": 388}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "/***\n * Author: <NAME>\...
78,838
c
// constant pointer to constant #include<stdio.h> void main() { int size=10; int const * const p=&size;//initialization is mandatory // ++*p; size++; // p++; printf("\n%d %d",size,*p); }
16.36
11
(translation_unit) "// constant pointer to constant\n\n#include<stdio.h>\nvoid main()\n{\n int size=10;\n int const * const p=&size;//initialization is mandatory\n// ++*p;\n size++;\n// p++;\n printf("\n%d %d",size,*p);\n}\n" (comment) "// constant pointer to constant" (preproc_include) "#include<stdio.h>\n" (#...
63
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 16.36, "nodes": 35, "errors": 0, "source_hash": "1fb3a9379e0618ee99497c2beffd353b1330630738096cf65c9e7ca0d326acf0", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
78,839
c
/** * @file include/retdec/fileformat/types/visual_basic/visual_basic_object.h * @brief Class for visual basic object. * @copyright (c) 2017 Avast Software, licensed under the MIT license */ #ifndef RETDEC_FILEFORMAT_TYPES_VISUAL_BASIC_VISUAL_BASIC_OBJECT_H #define RETDEC_FILEFORMAT_TYPES_VISUAL_BASIC_VISUAL_BASIC...
23.9
40
(translation_unit) "/**\n * @file include/retdec/fileformat/types/visual_basic/visual_basic_object.h\n * @brief Class for visual basic object.\n * @copyright (c) 2017 Avast Software, licensed under the MIT license\n */\n\n#ifndef RETDEC_FILEFORMAT_TYPES_VISUAL_BASIC_VISUAL_BASIC_OBJECT_H\n#define RETDEC_FILEFORMAT_TYPE...
181
8
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 23.9, "nodes": 89, "errors": 0, "source_hash": "f3b4adcbe22dc869bed0dc162540b472be8c1a8a100ee05628fe60653f7051b1", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef R...
78,840
c
/* * File: MotorDC.h * Author: dany_ * * Created on November 26, 2019, 10:17 AM */ #ifndef MOTORDC_H #define MOTORDC_H #ifdef __cplusplus extern "C" { #endif void MoverPlataformaArriba (void); void MoverPlataformaAbajo (void); void DetenerPlataforma (void); #ifdef __cplusplus } #endif #endif /* MOTORDC_H ...
15.74
19
(translation_unit) "/* \n * File: MotorDC.h\n * Author: dany_\n *\n * Created on November 26, 2019, 10:17 AM\n */\n\n#ifndef MOTORDC_H\n#define MOTORDC_H\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\nvoid MoverPlataformaArriba (void);\nvoid MoverPlataformaAbajo (void);\nvoid DetenerPlataforma (void);\n\n\n#ifdef __c...
59
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 15.74, "nodes": 41, "errors": 0, "source_hash": "bb07e7279688cb05cb6d27c95fa2f97fbe4bda714cd9b2c052f2b8de8f594e69", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,841
c
// // UIImageView+AXAdd.h // AXKit // // Created by xaoxuu on 27/04/2017. // Copyright © 2017 Titan Studio. All rights reserved. // #import <UIKit/UIKit.h> @interface UIImageView (AXAdd) + (instancetype)imageViewWithImageNamed:(NSString *)imageNamed; @end
22.64
11
(translation_unit) "//\n// UIImageView+AXAdd.h\n// AXKit\n//\n// Created by xaoxuu on 27/04/2017.\n// Copyright © 2017 Titan Studio. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIImageView (AXAdd)\n\n+ (instancetype)imageViewWithImageNamed:(NSString *)imageNamed;\n\n@end\n" (comment) "//" ...
43
5
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 22.64, "nodes": 22, "errors": 0, "source_hash": "b3a4bf7f6c59f4a0ba389d15f4990ed3438ece2b59871629d080962b255eef96", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
78,842
c
/* * cve-2016-6738 * https://issuetracker.google.com/issues/37109330 * https://source.android.com/security/bulletin/2016-11-01.html * Test in nexus6p with fingerpinrt: google/angler/angler:6.0.1/MTC19V/2862947:user/release-keys * Author: <NAME>, (<EMAIL>) */ #include <sys/wait.h> #include <stdio.h> #include <stdlib.h...
24.35
72
(translation_unit) "/*\n* cve-2016-6738\n* https://issuetracker.google.com/issues/37109330\n* https://source.android.com/security/bulletin/2016-11-01.html\n* Test in nexus6p with fingerpinrt: google/angler/angler:6.0.1/MTC19V/2862947:user/release-keys\n* Author: <NAME>, (<EMAIL>)\n*/\n\n#include <sys/wait.h>\n#include...
537
0
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 24.35, "nodes": 321, "errors": 0, "source_hash": "e775fa4482059123a53333c9d9f07ccc30a1fc44d4f4f318bfe12854017d8b03", "categorized_nodes": 249}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,843
c
// // MockStackOverflowCommunicator.h // MyBrowseOverflow // // Created by <NAME> on 18/5/15. // Copyright (c) 2015 <NAME> © alexsalom.es. All rights reserved. // #import <Foundation/Foundation.h> #import "StackOverflowCommunicator.h" @interface MockStackOverflowCommunicator : StackOverflowCommunicator @property...
29.42
12
(translation_unit) "//\n// MockStackOverflowCommunicator.h\n// MyBrowseOverflow\n//\n// Created by <NAME> on 18/5/15.\n// Copyright (c) 2015 <NAME> © alexsalom.es. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "StackOverflowCommunicator.h"\n\n@interface MockStackOverflowCommunicator : Stack...
35
6
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 29.42, "nodes": 21, "errors": 0, "source_hash": "1d3080a5e589161a6010a12606b09c5333408a9b546adb1e552d62f65435ebaf", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
78,844
c
/* * This is a RANDOMLY GENERATED PROGRAM. * * Generator: csmith 2.0.0 * svn version: exported * Options: --check-global -s 1925 * Seed: 1925 */ #include "random_runtime.h" long __undefined; /* --- Struct/Union Declarations --- */ /* --- GLOBAL VARIABLES --- */ volatile int32_t g_2 = 0L;/* VOLATILE G...
28.8
116
(translation_unit) "/*\n * This is a RANDOMLY GENERATED PROGRAM.\n *\n * Generator: csmith 2.0.0\n * svn version: exported\n * Options: --check-global -s 1925\n * Seed: 1925\n */\n\n#include "random_runtime.h"\n\n\nlong __undefined;\n\n/* --- Struct/Union Declarations --- */\n/* --- GLOBAL VARIABLES --- */\n vol...
509
0
{"language": "c", "success": true, "metadata": {"lines": 116, "avg_line_length": 28.8, "nodes": 315, "errors": 0, "source_hash": "d76b2d7fa36b433bf6b747bf7d1f53be80b097d52749f7c6996038d14b1af8e3", "categorized_nodes": 198}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,845
c
// // ZZBrightnessView.h // ZZPlayer_Example // // Created by 周晓瑞 on 2018/11/22. // Copyright © 2018 zhouXiaoR. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface ZZBrightnessView : UIView @property(nonatomic,assign)CGFloat brightnessValue; @end NS_ASSUME_NONNULL_END
22.38
13
(translation_unit) "//\n// ZZBrightnessView.h\n// ZZPlayer_Example\n//\n// Created by 周晓瑞 on 2018/11/22.\n// Copyright © 2018 zhouXiaoR. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface ZZBrightnessView : UIView\n\n@property(nonatomic,assign)CGFloat brightnessValue;\n\n@e...
41
5
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 22.38, "nodes": 26, "errors": 0, "source_hash": "33f25afd774df30be114d14a984896154d43e812a2c118a82e21aa4be58b9a7f", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <UIKit/U...
78,846
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 #import "HR_Networking.h" #import "HR_Network+StringUtil.h" #import "HR_Network.h" #import "HR_Network_Constant.h" #import "H...
29.3
30
(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#import "HR_Networking.h"\n#import "HR_Network+StringUtil.h"\n#import "HR_Network.h"\n#import...
103
1
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 29.3, "nodes": 93, "errors": 0, "source_hash": "fe69af09e0254c3621a3254ee4177c43b9df0409f8fc368a750c80870a09602b", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef __...
78,847
c
/* #include "buff.h" */ /* */ /* enum RmpgErr rmpg_buff_init(unsigned char **buff, unsigned int *size) { */ /* } */ /* */ /* enum RmpgErr rmpg_add_buffer(unsigned char *buff, unsigned int *size) { */ /* } */ /* */ /* void rmpg_buff_destroy(unsigned char *buff) { */ /* } */
26.7
10
(translation_unit) "/* #include "buff.h" */\n/* */\n/* enum RmpgErr rmpg_buff_init(unsigned char **buff, unsigned int *size) { */\n/* } */\n/* */\n/* enum RmpgErr rmpg_add_buffer(unsigned char *buff, unsigned int *size) { */\n/* } */\n/* */\n/* void rmpg_buff_destroy(unsigned char *buff) { */\n/* } */\n" (comment)...
11
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 26.7, "nodes": 0, "errors": 0, "source_hash": "af2aaae09e55ba9c2eb34433e1182fef6c5ca090e17e70c717e42713881e2b9b", "categorized_nodes": 0}, "ast": {"root": "translation_unit", "nodes": []}, "node_categories": {"declarations": {"functions": [...
78,848
c
#include "../src/icon.c" #include "greatest.h" #define ICONPREFIX "/data/icons/path" /* As there are no hints to test if the loaded GdkPixbuf is * read from a PNG or an SVG file, the sample icons in the * test structure have different sizes */ #define IS_ICON_PNG(pb) 4 == gdk_pixbuf_get_width(pb) #define IS_ICON_...
35.76
227
(translation_unit) "#include "../src/icon.c"\n#include "greatest.h"\n\n#define ICONPREFIX "/data/icons/path"\n\n/* As there are no hints to test if the loaded GdkPixbuf is\n * read from a PNG or an SVG file, the sample icons in the\n * test structure have different sizes\n */\n#define IS_ICON_PNG(pb) 4 == gdk_pixbuf_g...
2,170
0
{"language": "c", "success": true, "metadata": {"lines": 227, "avg_line_length": 35.76, "nodes": 1220, "errors": 0, "source_hash": "0d095936a66e69341b53a082f9ce0b6ce255760e4abb0cd8bcfa2b5bb4938b90", "categorized_nodes": 803}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
78,849
c
/** * @file * * @brief * * @copyright BSD License (see doc/COPYING or http://www.libelektra.org) */ // clang-format off ksNew( 94 , keyNew ("user" , KEY_DIR , KEY_END), keyNew ("user/test" , KEY_DIR , KEY_END), keyNew ("user/test/keyset" , KEY_DIR , KEY_END), keyNew ("user/test/keyset/dir1/key1" ...
24.23
342
(translation_unit) "/**\n * @file\n *\n * @brief\n *\n * @copyright BSD License (see doc/COPYING or http://www.libelektra.org)\n */\n\n// clang-format off\n\nksNew( 94 ,\n keyNew ("user"\n , KEY_DIR\n , KEY_END),\n keyNew ("user/test"\n , KEY_DIR\n , KEY_END),\n keyNew ("user/test/keyset"\n , KEY_DIR\n , KEY_END),\n...
2,161
0
{"language": "c", "success": true, "metadata": {"lines": 342, "avg_line_length": 24.23, "nodes": 752, "errors": 0, "source_hash": "345819d4892ac6911f44b001f4bd9aaeefe8e4d4549e88414c02724d8487e475", "categorized_nodes": 667}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "call_expression", "text": "ksN...
78,850
c
/** * @file * @brief * * @author <NAME> * @date 5.07.2013 */ #include <embox/cmd.h> #include <assert.h> #include <unistd.h> EMBOX_CMD(exec); extern int main_e2fsck(int argc, char **argv); static int exec(int argc, char **argv) { getopt_init(); return main_e2fsck(argc, argv); }
17.12
16
(translation_unit) "/**\n * @file\n * @brief\n *\n * @author <NAME>\n * @date 5.07.2013\n */\n\n#include <embox/cmd.h>\n#include <assert.h>\n#include <unistd.h>\n\nEMBOX_CMD(exec);\n\nextern int main_e2fsck(int argc, char **argv);\n\nstatic int exec(int argc, char **argv) {\n getopt_init();\n return main_e2fsck(arg...
81
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 17.12, "nodes": 54, "errors": 0, "source_hash": "9980661caae99d1fd68df0c25a4d8f295180d52acb3727c148da2c63e8227140", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
78,851
c
// Copyright 2008 by BBN Technologies Corp. // All Rights Reserved. #ifndef ch_NAMELINKFUNCTIONS_H #define ch_NAMELINKFUNCTIONS_H #include "Generic/edt/xx_NameLinkFunctions.h" #include "Generic/common/SymbolHash.h" class ChineseNameLinkFunctions: public GenericNameLinkFunctions { public: static bool popu...
28.46
26
(translation_unit) "// Copyright 2008 by BBN Technologies Corp. \n// All Rights Reserved. \n \n#ifndef ch_NAMELINKFUNCTIONS_H \n#define ch_NAMELINKFUNCTIONS_H \n \n#include "Generic/edt/xx_NameLinkFunctions.h" \n#include "Generic/common/SymbolHash.h" \n \nclass ChineseNameLinkFunctions: public GenericNameLinkFunctions ...
158
4
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 28.46, "nodes": 86, "errors": 0, "source_hash": "b656d0a665bdb2cacf71c4670ddfb344a24b7fc572c52454e6993578d96fc0df", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,852
c
#import <Foundation/Foundation.h> #import <DSESObject.h> /** * DocuSign REST API * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. * * OpenAPI spec version: v2.1 * Contact: <EMAIL> * * NOTE: This class is auto generated by the swagger code gene...
25.79
38
(translation_unit) "#import <Foundation/Foundation.h>\n#import <DSESObject.h>\n\n/**\n* DocuSign REST API\n* The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.\n*\n* OpenAPI spec version: v2.1\n* Contact: <EMAIL>\n*\n* NOTE: This class is auto gene...
131
27
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 25.79, "nodes": 100, "errors": 0, "source_hash": "9ab15e29b25b35bf85f588fd6c856d92fe660eb3465dbb96fd06204f871bf551", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
78,853
c
// // UIImageView+JFExtension.h // CJF // // Created by cjf on 2017/5/11. // Copyright © 2017年 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface UIImageView (JFExtension) /** CJF - 增加模糊滤镜效果 @param style 滤镜风格 */ - (void)addBlurEffectWithStyle:(UIBlurEffectStyle)style; @end
18.8
15
(translation_unit) "//\n// UIImageView+JFExtension.h\n// CJF\n//\n// Created by cjf on 2017/5/11.\n// Copyright © 2017年 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIImageView (JFExtension)\n\n/**\n CJF - 增加模糊滤镜效果\n\n @param style 滤镜风格\n */\n- (void)addBlurEffectWithStyle:(UIBlurEffect...
42
5
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 18.8, "nodes": 21, "errors": 0, "source_hash": "a8a74acd63f5e61bda97053de83ae3db14b4678371fcf7e13c6c6bc50590f187", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKi...
78,854
c
// // NSString+LZEmoji.h // Pods // // Created by Dear.Q on 2017/6/6. // // #import <Foundation/Foundation.h> @interface NSString (LZEmoji) /** * 将十六进制的编码转为emoji字符 */ + (NSString *)emojiWithIntCode:(int)intCode; /** * 将十六进制的编码转为emoji字符 */ - (NSString *)emoji; /** * 判断是否包含 Emoji */ - (BOOL)isContainsEmoj...
13.68
22
(translation_unit) "//\n// NSString+LZEmoji.h\n// Pods\n//\n// Created by Dear.Q on 2017/6/6.\n//\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NSString (LZEmoji)\n\n/**\n * 将十六进制的编码转为emoji字符\n */\n+ (NSString *)emojiWithIntCode:(int)intCode;\n\n/**\n * 将十六进制的编码转为emoji字符\n */\n- (NSString *)emoji;\n\n/**\...
68
5
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 13.68, "nodes": 37, "errors": 0, "source_hash": "527db97dec8651bd01fdcec0b3c3bb2fa74f6a7562a8d65ff57a19b9ff2c25f0", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
78,855
c
#include <avr/io.h> #include <util/delay.h> void delay_ms(uint8_t ms) { while (ms--) { _delay_ms(1); } }
12.62
8
(translation_unit) "#include <avr/io.h>\n#include <util/delay.h>\n\nvoid delay_ms(uint8_t ms)\n{\n while (ms--) {\n _delay_ms(1);\n }\n}" (preproc_include) "#include <avr/io.h>\n" (#include) "#include" (system_lib_string) "<avr/io.h>" (preproc_include) "#include <util/delay.h>\n" (#include) "#include" ...
39
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 12.62, "nodes": 23, "errors": 0, "source_hash": "ba9acfb655ee391225894bc33a658dbedbbd61ea45dd8c9e91e1708b6ce374f9", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
78,856
c
#include <stdlib.h> #include <string.h> #include <stdio.h> #include "admissionregistration_v1beta1_service_reference.h" admissionregistration_v1beta1_service_reference_t *admissionregistration_v1beta1_service_reference_create( char *name, char *namespace, char *path, int port ) { admissionreg...
38.51
121
(translation_unit) "#include <stdlib.h>\n#include <string.h>\n#include <stdio.h>\n#include "admissionregistration_v1beta1_service_reference.h"\n\n\n\nadmissionregistration_v1beta1_service_reference_t *admissionregistration_v1beta1_service_reference_create(\n char *name,\n char *namespace,\n char *path,\n in...
763
0
{"language": "c", "success": true, "metadata": {"lines": 121, "avg_line_length": 38.51, "nodes": 434, "errors": 0, "source_hash": "47700e8bd1c4259e6f3c9d1203345e8d5945a237719dc54f2c5d00902d0d2cfe", "categorized_nodes": 287}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,857
c
#pragma once #ifndef GomokuApp_H #define GomokuApp_H #if defined(_DEBUG) && defined(_DLL) #pragma comment (lib, "applib-mt-gd.lib") #elif defined(_DEBUG) && !defined(_DLL) #pragma comment (lib, "applib-mt-sgd.lib") #elif !defined(_DEBUG) && defined(_DLL) #pragma comment (lib, "applib-mt.lib") #elif !defined(_DEBUG) && ...
21.92
26
(translation_unit) "#pragma once\n#ifndef GomokuApp_H\n#define GomokuApp_H\n#if defined(_DEBUG) && defined(_DLL)\n#pragma comment (lib, "applib-mt-gd.lib")\n#elif defined(_DEBUG) && !defined(_DLL)\n#pragma comment (lib, "applib-mt-sgd.lib")\n#elif !defined(_DEBUG) && defined(_DLL)\n#pragma comment (lib, "applib-mt.lib"...
170
3
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 21.92, "nodes": 121, "errors": 0, "source_hash": "6cd6d196924fe1e20ce28a6a21dcf1ff840fa6838439b3d4748721fcd0a09c69", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
78,858
c
#pragma once #include "GameFramework/Character.h" #include "RewindTraceCharacter.generated.h" UCLASS(BlueprintType,Blueprintable) class ARewindTraceCharacter : public ACharacter { GENERATED_BODY() public: UFUNCTION( BlueprintCallable ) void Shoot( const FVector& TraceStart, const FVector& TraceEnd ); p...
27.56
16
(translation_unit) "#pragma once \n#include "GameFramework/Character.h" \n#include "RewindTraceCharacter.generated.h" \n \nUCLASS(BlueprintType,Blueprintable) \nclass ARewindTraceCharacter : public ACharacter \n{ \n GENERATED_BODY() \npublic: \n UFUNCTION( BlueprintCallable ) \n void Shoot( const FVector& TraceStart, c...
107
9
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 27.56, "nodes": 57, "errors": 0, "source_hash": "493b9a02716db20dfde6d89b5602697c4c339c80bdd2afb150d0427e2800e716", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
78,859
c
#include <stdlib.h> #include <sys/resource.h> #include <sys/time.h> #include "timeprof.h" double get_dtime(void){ struct timeval tv; gettimeofday(&tv, NULL); return ((double)(tv.tv_sec) + (double)(tv.tv_usec) * 0.001 * 0.001); }
25.11
9
(translation_unit) "#include <stdlib.h>\n#include <sys/resource.h>\n#include <sys/time.h>\n#include "timeprof.h"\n\ndouble get_dtime(void){\n struct timeval tv;\n\n gettimeofday(&tv, NULL);\n return ((double)(tv.tv_sec) + (double)(tv.tv_usec) * 0.001 * 0.001);\n}\n" (preproc_include) "#include <stdlib.h>\n" (#...
85
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 25.11, "nodes": 55, "errors": 0, "source_hash": "284a3d6ea6450d730c4cde4e13676f9f1cf02334a3262ef8f7388a81b97e6a4d", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
78,860
c
/* * Copyright (c) 2000 <NAME> * * This software may be distributed either under the terms of the
24.25
4
(translation_unit) "/*\n * Copyright (c) 2000 <NAME>\n *\n * This software may be distributed either under the terms of the" (ERROR) "/*\n * Copyright (c) 2000 <NAME>\n *\n * This software may be distributed either under the terms of the" (/) "/" (binary_expression) "*\n * Copyright (c) 2000 <NAME>\n *\n * Th...
35
2
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 24.25, "nodes": 32, "errors": 0, "source_hash": "418ba0c6e3a06dfd890e448f0cd60429b39de4b9908148e1898bd1e9bbb9342a", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "/*\n * Copyright ...
78,861
c
// // AppDelegate.h // Fake Tencent // // Created by 李欣 on 2017/9/19. // Copyright © 2017年 李欣. All rights reserved. // #import <Cocoa/Cocoa.h> #import <db.h> #import <stdio.h> #import <netinet/in.h> #import <sys/socket.h> #import <arpa/inet.h> #import <string.h> @interface AppDelegate : NSObject <NSApplicationDel...
18.47
17
(translation_unit) "//\n// AppDelegate.h\n// Fake Tencent\n//\n// Created by 李欣 on 2017/9/19.\n// Copyright © 2017年 李欣. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n#import <db.h>\n#import <stdio.h>\n#import <netinet/in.h>\n#import <sys/socket.h>\n#import <arpa/inet.h>\n#import <string.h>\n\n@interface AppD...
43
4
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 18.47, "nodes": 33, "errors": 0, "source_hash": "32362ccdc020aa4e5e9589d762721455d63e0f327e6b975ebbaf6de490e5af4d", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "coa/Cocoa...
78,862
c
/****************************** * Filename: LinkedListLab.c * Author: <NAME> * Date Last Edited: 1-22-2019 * Brief Description: A demonstration of a few things you can do with malloc and pointers gcc -Wall -Wextra -O -ansi -pedantic -o LinkedListLab LinkedListLab.c ******************************/ #includ...
25
88
(translation_unit) "/****************************** \n * Filename: LinkedListLab.c \n * Author: <NAME> \n * Date Last Edited: 1-22-2019 \n * Brief Description: A demonstration of a few things you can do with malloc and pointers \n gcc -Wall -Wextra -O -ansi -pedantic -o LinkedListLab LinkedListLab.c \n **************...
418
0
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 25.0, "nodes": 257, "errors": 0, "source_hash": "01d3692582842dc08f2cf864ba644489828d55d3ff28b04e7496bc3a6eaadc74", "categorized_nodes": 181}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
78,863
c
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef MOJO_SHELL_APP_CHILD_PROCESS_HOST_H_ #define MOJO_SHELL_APP_CHILD_PROCESS_HOST_H_ #include "base/macros.h" #include "mojo/public/cpp/bindings/rem...
38.62
42
(translation_unit) "// Copyright 2014 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef MOJO_SHELL_APP_CHILD_PROCESS_HOST_H_\n#define MOJO_SHELL_APP_CHILD_PROCESS_HOST_H_\n\n#include "base/macros.h"\n#include "...
238
14
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 38.62, "nodes": 134, "errors": 0, "source_hash": "d79844ba0baca6075f675305d56a7432a71041f58b89174f1265661efb700e94", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,864
c
// // TMR_SAMPLE.H // #ifndef TMR_SAMPLE_H #define TMR_SAMPLE_H void tmr_sample_init(void); #endif //TMR_SAMPLE_H
15.29
7
(translation_unit) "//\n// TMR_SAMPLE.H\n//\n\n#ifndef TMR_SAMPLE_H\n#define TMR_SAMPLE_H\n\nvoid tmr_sample_init(void);\n\n#endif //TMR_SAMPLE_H\n" (comment) "//" (comment) "// TMR_SAMPLE.H" (comment) "//" (preproc_ifdef) "#ifndef TMR_SAMPLE_H\n#define TMR_SAMPLE_H\n\nvoid tmr_sample_init(void);\n\n#endif" ...
22
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 15.29, "nodes": 14, "errors": 0, "source_hash": "4ed66c6471eed3a36bcbf2219744ade8fefc9976148a91eb3cdec6dd0286c7c2", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef TM...
78,865
c
/** * Copyright (c) 2016-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #pragma on...
34.92
132
(translation_unit) "/**\n * Copyright (c) 2016-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same ...
906
72
{"language": "c", "success": true, "metadata": {"lines": 132, "avg_line_length": 34.92, "nodes": 549, "errors": 0, "source_hash": "558a9e5ceebe9fd66dd6dc24e14b4877f013eec5e5222ab00b0106a00fd3852f", "categorized_nodes": 365}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
78,866
c
#ifndef VRAM_H_ #define VRAM_H_ #include <cstddef> #include "common.h" namespace VRAM { enum class Color : uint8_t { Black = 0x0, Blue, Green, Cyan, Red, Magenta, Brown, LightGray, DarkGray, LightBlue, LightGreen, LightCyan, LightRed, LightMagenta, LightBrown, White }; class Base {...
20.38
56
(translation_unit) "#ifndef VRAM_H_\n#define VRAM_H_\n\n#include <cstddef>\n#include "common.h"\n\nnamespace VRAM {\n enum class Color : uint8_t {\n Black = 0x0,\n Blue,\n Green,\n Cyan,\n Red,\n Magenta,\n Brown,\n LightGray,\n DarkGray,\n LightBlue,\n LightGreen,\n LightCyan,\n LightRed,\n LightMagenta,...
442
12
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 20.38, "nodes": 262, "errors": 0, "source_hash": "ee9bcb68299358ee736bd9f7c5ca4fcf4b35b9aeb0b2177a781714dcc3b014fc", "categorized_nodes": 195}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef VRAM_H...
78,867
c
// Copyright 2022 PingCAP, Ltd. // // 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 to i...
34.94
105
(translation_unit) "// Copyright 2022 PingCAP, Ltd.\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 a...
712
39
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 34.94, "nodes": 430, "errors": 0, "source_hash": "7e6a9fdde7b60827f914e9ec9fc9465a177d9856e72ceba9243429854e4787de", "categorized_nodes": 313}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
78,868
c
#ifndef __FAST_H__ #define __FAST_H__ #include <stdint.h> #define IMG_DATATYPE uint8_t #define BORDER_FAST9 (3U) void make_offsets(int32_t *, uint32_t); // void circular_detection(uint32_t *, uint32_t, uint32_t, uint32_t, uint32_t, IMG_DATATYPE *, uint32_t *, uint32_t *, uint32_t); void FAST_kernel(uint32_t *, uint3...
44.33
9
(translation_unit) "#ifndef __FAST_H__\n#define __FAST_H__\n\n#include <stdint.h>\n\n#define IMG_DATATYPE uint8_t\n#define BORDER_FAST9 (3U)\n\nvoid make_offsets(int32_t *, uint32_t);\n// void circular_detection(uint32_t *, uint32_t, uint32_t, uint32_t, uint32_t, IMG_DATATYPE *, uint32_t *, uint32_t *, uint32_t);\nvoid...
72
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 44.33, "nodes": 56, "errors": 0, "source_hash": "8a9cfa916cc8eceaa554e230e58bf399bbc1692d9da3549458ec323822c6940f", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
78,869
c
#include <stdlib.h> #include <stdio.h> #include "tokenizer.h" #include "talloc.h" #include "linkedlist.h" #include <string.h> #include "tokenizer.h" #include <assert.h> #include "parser.h" #include "lookUpSymbol.h" #include "errorCall.h" // Takes a frame and a symbol and goes through the bindings of the frame comparin...
30.22
59
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n#include "tokenizer.h"\n#include "talloc.h"\n#include "linkedlist.h"\n#include <string.h>\n#include "tokenizer.h"\n#include <assert.h>\n#include "parser.h"\n#include "lookUpSymbol.h"\n#include "errorCall.h"\n\n// Takes a frame and a symbol and goes through th...
534
0
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 30.22, "nodes": 328, "errors": 0, "source_hash": "5c873c99d78bf4d3f91b2dd1c7abc5b65fdaf6c19012c44872f70be7cc455779", "categorized_nodes": 233}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,870
c
#pragma once #include "NomInstruction.h" #include "NomBuilder.h" #include "CompileEnv.h" #include "Defs.h" namespace Nom { namespace Runtime { class EnsureCheckedMethodInstruction : public NomInstruction { public: const ConstantID MethodName; const RegIndex Receiver; EnsureCheckedMethodInstruction(Con...
28.74
23
(translation_unit) "#pragma once\n#include "NomInstruction.h"\n#include "NomBuilder.h"\n#include "CompileEnv.h"\n#include "Defs.h"\n\nnamespace Nom\n{\n namespace Runtime\n {\n class EnsureCheckedMethodInstruction : public NomInstruction\n {\n public:\n const ConstantID MethodName;\n const RegIndex Receiver;\n ...
154
8
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 28.74, "nodes": 92, "errors": 0, "source_hash": "7ec3c4ab5676d4369193644adeaa47332b120c17b33f55e06f3b957944a3d86b", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
78,871
c
#ifndef CENTERHISTOGRAMGENERATOR_H #define CENTERHISTOGRAMGENERATOR_H #include "barcodecluster.hpp" #include "centerrecalibrator.h" #include "centerclustermapper.h" #include "centerstracker.h" #include <list> #include <memory> #include <vector> namespace barcodeSpace { /** * This class is used to generate the his...
34.56
36
(translation_unit) "#ifndef CENTERHISTOGRAMGENERATOR_H\n#define CENTERHISTOGRAMGENERATOR_H\n\n#include "barcodecluster.hpp"\n#include "centerrecalibrator.h"\n#include "centerclustermapper.h"\n#include "centerstracker.h"\n\n#include <list>\n#include <memory>\n#include <vector>\n\n\nnamespace barcodeSpace {\n/**\n * Thi...
235
11
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 34.56, "nodes": 142, "errors": 0, "source_hash": "a90e364f25c445e1b5c5086446b02e38188ddc79d7c078d7954735fb439c0518", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,872
c
/** \file elbeem/intern/ntl_bsptree.h * \ingroup elbeem */ /****************************************************************************** * * El'Beem - Free Surface Fluid Simulation with the Lattice Boltzmann Method * Copyright 2003-2006 <NAME> * * Tree container for fast triangle intersects * **************...
31.55
95
(translation_unit) "/** \file elbeem/intern/ntl_bsptree.h\n * \ingroup elbeem\n */\n/******************************************************************************\n *\n * El'Beem - Free Surface Fluid Simulation with the Lattice Boltzmann Method\n * Copyright 2003-2006 <NAME>\n *\n * Tree container for fast triangle i...
476
20
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 31.55, "nodes": 294, "errors": 0, "source_hash": "f39939c5b4c6490e9948a0ae76cd2b9ca2ab98612fe55cd21cc199b9749f9b94", "categorized_nodes": 194}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,873
c
#include <stdio.h> #include <stdlib.h> struct tuple { long long x,y; }; char compare(struct tuple a, struct tuple b) { if ((a.x < b.x) && (a.y < b.y)) return -1; if ((a.x > b.x) && (a.y > b.y)) return 1; return 0; } unsigned long CeilIndex(struct tuple A[], unsigned long l, unsigned long r, struct tuple key...
25.2
51
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n \nstruct tuple {\n long long x,y;\n};\n\nchar compare(struct tuple a, struct tuple b)\n{\n if ((a.x < b.x) && (a.y < b.y)) return -1;\n if ((a.x > b.x) && (a.y > b.y)) return 1;\n return 0;\n}\n \nunsigned long CeilIndex(struct tuple A[], unsigned long l,...
627
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 25.2, "nodes": 404, "errors": 0, "source_hash": "1a85174e529939e5f73f91cc10154e57561278317220691b0ac013746f2d7166", "categorized_nodes": 308}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
78,874
c
/* * OpenVPN -- An application to securely tunnel IP networks * over a single TCP/UDP port, with support for SSL/TLS-based * session authentication and key exchange, * packet encryption, packet authentication, and * packet compression. * * Copyright (C) 2002-2010...
33.66
284
(translation_unit) "/*\n * OpenVPN -- An application to securely tunnel IP networks\n * over a single TCP/UDP port, with support for SSL/TLS-based\n * session authentication and key exchange,\n * packet encryption, packet authentication, and\n * packet compression.\n *\n...
1,862
0
{"language": "c", "success": true, "metadata": {"lines": 284, "avg_line_length": 33.66, "nodes": 1341, "errors": 0, "source_hash": "132bbecdb6e62b1fea5b93936b3376a6d3ed9c4b8e0c098cbc6aff7ee64675ad", "categorized_nodes": 879}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
78,875
c
#ifndef LLVM_NODE_COROSAVEINST_H #define LLVM_NODE_COROSAVEINST_H #include <nan.h> #include "Transforms/Coroutines/CoroInstr.h" #include "../../ir/intrinsic-inst.h" class CoroSaveInstWrapper: public IntrinsicInstWrapper, public FromValueMixin<CoroSaveInstWrapper> { public: static NAN_MODULE_INIT(Init); static...
40.22
18
(translation_unit) "#ifndef LLVM_NODE_COROSAVEINST_H\n#define LLVM_NODE_COROSAVEINST_H\n\n#include <nan.h>\n#include "Transforms/Coroutines/CoroInstr.h"\n#include "../../ir/intrinsic-inst.h"\n\nclass CoroSaveInstWrapper: public IntrinsicInstWrapper, public FromValueMixin<CoroSaveInstWrapper> {\npublic:\n static NAN_...
167
11
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 40.22, "nodes": 95, "errors": 0, "source_hash": "5f353be96c60dbf39df7c0bebcb475eb5d324051aa45fb3c1418db0cffee39e0", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,876
c
/* # $Id$ # Copyright (C) 2004-2005 <NAME> <<EMAIL>> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. ...
38.47
289
(translation_unit) "/* \n # $Id$\n # Copyright (C) 2004-2005 <NAME> <<EMAIL>>\n #\n # This library is free software; you can redistribute it and/or\n # modify it under the terms of the GNU Lesser General Public\n # License as published by the Free Software Foundation; either\n # version 2.1 of the License, or (at your ...
2,965
179
{"language": "c", "success": true, "metadata": {"lines": 289, "avg_line_length": 38.47, "nodes": 1649, "errors": 0, "source_hash": "1a7b31140b4f940b5f732ba7e0f783354d3a3f69ec466825dc07705fb44a0cd7", "categorized_nodes": 1156}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#defi...
78,877
c
/* * smf_initHeader.h * * Created on: 2016/10/24 * Author: hiro */ #ifndef SMF_HEADER_H_ #define SMF_HEADER_H_ #include "smf.h" off_t smfInterpreterHeaderInit(smfInfo *smfi, const uint8_t buf[], off_t beginOff); #endif /* SMF_HEADER_H_ */
15
17
(translation_unit) "/* \n * smf_initHeader.h \n * \n * Created on: 2016/10/24 \n * Author: hiro \n */ \n \n#ifndef SMF_HEADER_H_ \n#define SMF_HEADER_H_ \n \n#include "smf.h" \n \n \noff_t smfInterpreterHeaderInit(smfInfo *smfi, const uint8_t buf[], off_t beginOff); \n \n \n#endif /* SMF_HEADER_H_ */ \n" (comme...
42
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 15.0, "nodes": 27, "errors": 0, "source_hash": "8adde8fa23638f822c5b02c0d7379747ec35e9cabbfe60702d93ebef5170d815", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef S...
78,878
c
/** * Punch BOOT * * Copyright (C) 2020 <NAME> <<EMAIL>> * * SPDX-License-Identifier: BSD-3-Clause * */ #ifndef PLAT_QEMU_FUSE_H_ #define PLAT_QEMU_FUSE_H_ #include <pb/pb.h> int qemu_fuse_init(void); int qemu_fuse_write(uint32_t id, uint32_t val); int qemu_fuse_read(uint32_t id, uint32_t *val); #endif //...
21.53
15
(translation_unit) "/**\n * Punch BOOT\n *\n * Copyright (C) 2020 <NAME> <<EMAIL>>\n *\n * SPDX-License-Identifier: BSD-3-Clause\n *\n */\n\n#ifndef PLAT_QEMU_FUSE_H_\n#define PLAT_QEMU_FUSE_H_\n\n#include <pb/pb.h>\n\nint qemu_fuse_init(void);\n\nint qemu_fuse_write(uint32_t id, uint32_t val);\n\nint qemu_fuse_read(ui...
55
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 21.53, "nodes": 41, "errors": 0, "source_hash": "fe912f6b2f5be2fcb24a53826d1571e48ad7f854163d33bf8d6195e2eca3df8b", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,879
c
#pragma once #include <Windows.h> #include <minmax.h> #include <GdiPlus.h> #include "../../PH_Generic.h" class CVirtualPadItem { public: virtual ~CVirtualPadItem(); virtual void Draw(Gdiplus::Graphics&) = 0; virtual void OnMouseDown(int, int); virtual void OnMouseMove(int, int); virtual void ...
29.4
25
(translation_unit) "#pragma once\n\n#include <Windows.h>\n#include <minmax.h>\n#include <GdiPlus.h>\n#include "../../PH_Generic.h"\n\nclass CVirtualPadItem\n{\npublic:\n virtual ~CVirtualPadItem();\n\n virtual void Draw(Gdiplus::Graphics&) = 0;\n virtual void OnMouseDown(int, int);\n virtual void OnMou...
241
16
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 29.4, "nodes": 156, "errors": 0, "source_hash": "fe8d0515009f918434ffe238e28eb27f176fe9944d12e2a71e11fbcfc01009d6", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
78,880
c
#ifndef _rampancy_compiler_registry_h #define _rampancy_compiler_registry_h #include "llvm/ADT/StringRef.h" #include "rampancy/Compiler.h" #include "llvm/ADT/StringMap.h" namespace rampancy { class CompilerRegistry { typedef llvm::StringMap<rampancy::Compiler*> StringMapType; StringMapType compilerStr...
37.09
22
(translation_unit) "#ifndef _rampancy_compiler_registry_h\n#define _rampancy_compiler_registry_h\n\n#include "llvm/ADT/StringRef.h"\n#include "rampancy/Compiler.h"\n#include "llvm/ADT/StringMap.h"\n\nnamespace rampancy {\n\n class CompilerRegistry {\n typedef llvm::StringMap<rampancy::Compiler*> StringMapType;\n...
196
5
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 37.09, "nodes": 123, "errors": 0, "source_hash": "36ba61445dc15430a0097e72a3d67c12ba0ad5474ec6e5f6932131df62b17445", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,881
c
#pragma once #include "Common.h" #include "TlsConfig.h" // Internal class class TlsContext : noncopyable { public: enum Endpoint { kClient, kServer }; TlsContext(Endpoint type, TlsConfig* config) : context_(type == kServer ? tls_server() : tls_client()) { check(tls_configure(context_, config->get()));...
22.9
72
(translation_unit) "#pragma once\n\n#include "Common.h"\n#include "TlsConfig.h"\n\n// Internal class\nclass TlsContext : noncopyable\n{\n public:\n enum Endpoint { kClient, kServer };\n\n TlsContext(Endpoint type, TlsConfig* config)\n : context_(type == kServer ? tls_server() : tls_client())\n {\n check(tls_co...
556
17
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 22.9, "nodes": 327, "errors": 0, "source_hash": "14eae54dc933a14160d46522204cdbbd9a225ac13a7bba8ca33224ad1c383480", "categorized_nodes": 212}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
78,882
c
#include "../global.h" void stack_restore_add(int saved_size, um_Noun a) { stack_size = saved_size; if (stack_size < stack_capacity / 4) { stack_capacity = stack_size * 2; stack = (um_Noun*)realloc(stack, stack_capacity * sizeof(um_Noun)); } stack_add(a); garbage_collector_consider(); } void stack_re...
26.75
20
(translation_unit) "#include "../global.h"\n\nvoid stack_restore_add(int saved_size, um_Noun a) {\n stack_size = saved_size;\n if (stack_size < stack_capacity / 4) {\n stack_capacity = stack_size * 2;\n stack = (um_Noun*)realloc(stack,\n stack_capacity * sizeof(um_Noun));\n }\n\n stack_add(a);\n garbage_collect...
175
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 26.75, "nodes": 108, "errors": 0, "source_hash": "2d7cbebdb84b3184861e72c10a818e378dba2d0b970d4ea3f56a3094d0f90ee7", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
78,883
c
// // Copyright (c) Huawei Technologies Co., Ltd. 2020-2028. All rights reserved. // #import <Foundation/Foundation.h> //! Project version number for ProductVisualSearch. FOUNDATION_EXPORT double ProductVisualSearchVersionNumber; //! Project version string for ProductVisualSearch. FOUNDATION_EXPORT const unsigned c...
56.4
10
(translation_unit) "//\n// Copyright (c) Huawei Technologies Co., Ltd. 2020-2028. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n//! Project version number for ProductVisualSearch.\nFOUNDATION_EXPORT double ProductVisualSearchVersionNumber;\n\n//! Project version string for ProductVisualSearch.\nFOUN...
32
1
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 56.4, "nodes": 18, "errors": 0, "source_hash": "6371553bfdf08a1f06d4fa698b30f56eff1145b35afaf58fd17ce1325edfdea7", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
78,884
c
// DO NOT EDIT THIS FILE - it is machine-generated, use data/convert-raw-files.py to regenerate #ifndef BITCOIN_BENCH_DATA_H #define BITCOIN_BENCH_DATA_H #include <cstdint> #include <vector> namespace benchmark { namespace data { extern const std::vector<uint8_t> block413567; extern const std::vector<uint8_t> block...
32.33
12
(translation_unit) "// DO NOT EDIT THIS FILE - it is machine-generated, use data/convert-raw-files.py to regenerate\n\n#ifndef BITCOIN_BENCH_DATA_H\n#define BITCOIN_BENCH_DATA_H\n\n#include <cstdint>\n#include <vector>\n\nnamespace benchmark {\nnamespace data {\n\nextern const std::vector<uint8_t> block413567;\nextern ...
60
2
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 32.33, "nodes": 39, "errors": 0, "source_hash": "612718ad2b58151cb2d5061494c11db28e8176258b37d6cb56d39fb453114dc2", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,885
c
/* * HTTPServerTestHandlers.h * * Created on: 5 juin 2013 * Author: azzouni */ #ifndef HTTPSERVERTESTHANDLERS_H_ #define HTTPSERVERTESTHANDLERS_H_ #include "Neptune.h" // just for logging #include "CMopServer.h" using namespace cmop; #define Test_UNUSED(x) (void)(x) /* +-------------------------------...
28.26
183
(translation_unit) "/*\n * HTTPServerTestHandlers.h\n *\n * Created on: 5 juin 2013\n * Author: azzouni\n */\n\n#ifndef HTTPSERVERTESTHANDLERS_H_\n#define HTTPSERVERTESTHANDLERS_H_\n\n#include "Neptune.h" // just for logging\n#include "CMopServer.h"\n\nusing namespace cmop;\n\n#define Test_UNUSED(x) (void)(x)\n\...
789
42
{"language": "c", "success": true, "metadata": {"lines": 183, "avg_line_length": 28.26, "nodes": 397, "errors": 0, "source_hash": "0efbbc515791270fbe0bcb898623ab1b8b4eb96099a58c56180427f1c2322291", "categorized_nodes": 298}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,886
c
// // Created by adamzeng on 2019-06-13. // #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <arpa/inet.h> #include <sys/socket.h> #define BUF_SIZE 30 void error_handling(char *message); int main(int argc, char *argv[]) { int sd; FILE *fp; char buf[BUF_SIZE]; ...
24.02
44
(translation_unit) "//\n// Created by adamzeng on 2019-06-13.\n//\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <unistd.h>\n#include <arpa/inet.h>\n#include <sys/socket.h>\n\n#define BUF_SIZE 30\n\nvoid error_handling(char *message);\n\n\nint main(int argc, char *argv[]) {\n int sd;\n ...
401
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 24.02, "nodes": 234, "errors": 0, "source_hash": "230561a20742bdd21bcec51ba393002dc38428cd5395100a611aa73069b9edeb", "categorized_nodes": 171}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,887
c
// // UIView+Snapshot.h // GCKit // // Created by mac on 2019/5/30. // Copyright © 2019 GaoChao. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface UIView (Snapshot) + (UIImage *)getKeyWindowSnapshot; + (UIImage *)getSnapshotFromKeyWindowAtFrame:(CGRect)frame; - (UIImage *)getS...
23.73
15
(translation_unit) "//\n// UIView+Snapshot.h\n// GCKit\n//\n// Created by mac on 2019/5/30.\n// Copyright © 2019 GaoChao. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface UIView (Snapshot)\n\n+ (UIImage *)getKeyWindowSnapshot;\n\n+ (UIImage *)getSnapshotFromKeyWindowAtFra...
73
7
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 23.73, "nodes": 38, "errors": 0, "source_hash": "aae284d8fd50116b4c2688c3e607fc3fd6cf3693492afe60a8d17b5e60f07534", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
78,888
c
#pragma once #include <GL/glew.h> #include <vector> #include <map> #include <glm/glm.hpp> #include <iostream> //typedef std::vector<std::string> SourceCode; typedef std::vector<const char*> SourceCode; class ShaderProg { public: ShaderProg(std::ostream &out = std::cout); ~ShaderProg(void); ShaderProg(const Shader...
38.28
58
(translation_unit) "#pragma once\n#include <GL/glew.h>\n#include <vector>\n#include <map>\n#include <glm/glm.hpp>\n#include <iostream>\n//typedef std::vector<std::string> SourceCode;\n\ntypedef std::vector<const char*> SourceCode;\n\nclass ShaderProg\n{\npublic:\n ShaderProg(std::ostream &out = std::cout);\n ~ShaderPro...
725
25
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 38.28, "nodes": 442, "errors": 0, "source_hash": "a7a168103d23f20c08e4ba1e307ff53b8d5bfb46fdd21e7b89618d3e6f8ea156", "categorized_nodes": 271}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
78,889
c
/*! * \ingroup PkgArrangementOnSurface2ConceptsTraits * \cgalConcept * * A model of the concept `ArrangementContractedBottomTraits_2` must be used * when the parameter space of the surface, the arrangement is embedded on, is * contracted on the bottom side and curves inserted into the arrangement are * expected ...
30.91
35
(translation_unit) "/*!\n * \ingroup PkgArrangementOnSurface2ConceptsTraits\n * \cgalConcept\n *\n * A model of the concept `ArrangementContractedBottomTraits_2` must be used\n * when the parameter space of the surface, the arrangement is embedded on, is\n * contracted on the bottom side and curves inserted into the ar...
30
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 30.91, "nodes": 7, "errors": 0, "source_hash": "0309036b690af12aa017810d199240b67f4945816be7ef325d51fb332a16ce4d", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "clas...
78,890
c
// // TestViewController.h // LRLibHelper // // Created by 李睿 on 2021/12/16. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface TestViewController : UIViewController @end NS_ASSUME_NONNULL_END
17.82
11
(translation_unit) "//\n// TestViewController.h\n// LRLibHelper\n//\n// Created by 李睿 on 2021/12/16.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface TestViewController : UIViewController\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" (comment) "// TestViewController.h" (comment) "/...
26
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 17.82, "nodes": 16, "errors": 0, "source_hash": "20439c7baa0722387992cf1c6f3ffdbcf032218f7298f2a9a3cb01cb8958f3c2", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ort <UIKit...
78,891
c
version https://git-lfs.github.com/spec/v1 oid sha256:5e2256f4fc32574267c9779541bcf9d02c6f6b37519ab7a0ceeda16ffd498ac6 size 1607
42
3
(translation_unit) "version https://git-lfs.github.com/spec/v1\noid sha256:5e2256f4fc32574267c9779541bcf9d02c6f6b37519ab7a0ceeda16ffd498ac6\nsize 1607\n" (declaration) "version https://git-lfs.github.com/spec/v1\noid" (type_identifier) "version" (ERROR) "https:" (identifier) "https" (:) ":" (c...
15
2
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 42.0, "nodes": 10, "errors": 0, "source_hash": "9a4356600db44a1ffb2772e561a0554adf6b61d9be485b9031d0941f933c6918", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "version https...
78,892
c
// // Created by bogdan.mytnyk on 12/11/17. // Copyright © 2017 bogdan.mytnyk. All rights reserved. // #ifndef BFS_ADAPTOR_H #define BFS_ADAPTOR_H #include "tree.h" template <typename T> struct const_bfs_adaptor { const_bfs_adaptor(const tree<T>& tree): m_tree(tree) { } const_bfs_adapt...
19.64
84
(translation_unit) "//\n// Created by bogdan.mytnyk on 12/11/17.\n// Copyright © 2017 bogdan.mytnyk. All rights reserved.\n//\n\n#ifndef BFS_ADAPTOR_H\n#define BFS_ADAPTOR_H\n\n#include "tree.h"\n\ntemplate <typename T>\nstruct const_bfs_adaptor\n{\n const_bfs_adaptor(const tree<T>& tree):\n m_tree(tree)\n ...
536
27
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 19.64, "nodes": 326, "errors": 0, "source_hash": "c94e2035d973ba231359d679a6be81e4d3545a9f45f5ada6b5fa9c318f46a7ee", "categorized_nodes": 230}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef...
78,893
c
// // BuildManager.h // unit-1-final-project // // Created by <NAME> on 8/28/15. // Copyright © 2015 apps. All rights reserved. // #import <Foundation/Foundation.h> @interface BuildManager : NSObject @property (nonatomic) NSMutableArray * workoutList; - (void) initializeModel; + (BuildManager *) sharedInstance...
27.08
13
(translation_unit) "//\n// BuildManager.h\n// unit-1-final-project\n//\n// Created by <NAME> on 8/28/15.\n// Copyright © 2015 apps. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface BuildManager : NSObject\n\n@property (nonatomic) NSMutableArray * workoutList;\n\n- (void) initializeModel;\...
59
6
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 27.08, "nodes": 33, "errors": 0, "source_hash": "5e0989546010995cd6d430c7e8e75f7f6be3f715aeab13f37e63d088e4f0aece", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
78,894
c
#pragma once void jsoncpp_exam(); void jsontype();
16
3
(translation_unit) "#pragma once\n\nvoid jsoncpp_exam();\nvoid jsontype();" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (declaration) "void jsoncpp_exam();" (primitive_type) "void" (function_declarator) "jsoncpp_exam()" (identifier) "jsoncpp_exam" (...
20
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 16.0, "nodes": 13, "errors": 0, "source_hash": "531564f45a99522599ac276b09523a113dd7eddbe9e80ee1205b6a297e84e2b1", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once...
78,895
c
/* * Copyright (C) =USTC= <NAME> * * Author : <NAME> * Create : 2005-3-11 * Home : www.crazy-bit.com * Mail : <EMAIL> * History : */ #pragma once /** * Memory DC class (to avoid screen's flash) */ class FCMemDC : public CDC { public: /// Constructor ...
27.83
108
(translation_unit) "/* \n * Copyright (C) =USTC= <NAME> \n * \n * Author : <NAME> \n * Create : 2005-3-11 \n * Home : www.crazy-bit.com \n * Mail : <EMAIL> \n * History : \n */ \n#pragma once \n \n/** \n * Memory DC class (to avoid screen's flash) \n */ \nclass FCMemDC : public CDC \n{...
671
13
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 27.83, "nodes": 362, "errors": 0, "source_hash": "d0d537f98a202ef6fc2c9e88c830f7f392ed7dfcc808777c2e6b6d2307a36348", "categorized_nodes": 266}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
78,896
c
#ifndef INCLUDE_FUNCTIONS_CONCATINATE_FUNCTIONS_H_ #define INCLUDE_FUNCTIONS_CONCATINATE_FUNCTIONS_H_ #include <deal.II/base/exceptions.h> #include <deal.II/base/function.h> #include <deal.II/base/point.h> #include <deal.II/base/quadrature_lib.h> #include <deal.II/base/tensor.h> #include <deal.II/dofs/dof_accessor.h> ...
28.81
86
(translation_unit) "#ifndef INCLUDE_FUNCTIONS_CONCATINATE_FUNCTIONS_H_\n#define INCLUDE_FUNCTIONS_CONCATINATE_FUNCTIONS_H_\n\n#include <deal.II/base/exceptions.h>\n#include <deal.II/base/function.h>\n#include <deal.II/base/point.h>\n#include <deal.II/base/quadrature_lib.h>\n#include <deal.II/base/tensor.h>\n#include <d...
288
19
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 28.81, "nodes": 205, "errors": 0, "source_hash": "a5898cae65cbfcbfd8a06fee1a2ac679be46c5b0a9605c003c4af199f600691a", "categorized_nodes": 151}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,897
c
/* * Copyright (c) 2021 DrunkFly Team * Licensed under 3-clause BSD license */ #include "engine_p.h" #ifdef __SDCC #pragma codeseg MYX_SPRITES #pragma constseg MYX_SPRITES #endif static byte LastDrawnSpriteCount; static byte SpriteCount; void MYXP_BeginSprites() { MYXP_DrawnSpriteCount = 0; NEXT_SpriteCo...
29.7
77
(translation_unit) "/*\n * Copyright (c) 2021 DrunkFly Team\n * Licensed under 3-clause BSD license\n */\n#include "engine_p.h"\n\n#ifdef __SDCC\n#pragma codeseg MYX_SPRITES\n#pragma constseg MYX_SPRITES\n#endif\n\nstatic byte LastDrawnSpriteCount;\n\nstatic byte SpriteCount;\n\nvoid MYXP_BeginSprites()\n{\n MYXP_Dr...
641
0
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 29.7, "nodes": 419, "errors": 0, "source_hash": "9fd31842c2cb27e76efd03fd3d0abf55489c1ab7192b50eeeec24b093bbe722d", "categorized_nodes": 300}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
78,898
c
#pragma once #include <stdint.h> #include <functional> #include <iostream> #include <memory> #include <string> #include <vector> #include <boost/asio/ip/tcp.hpp> #include <boost/asio/ssl/stream.hpp> #include <boost/asio/strand.hpp> #include <boost/asio/bind_executor.hpp> #include <boost/beast/core.hpp> #include <boost...
35.38
120
(translation_unit) "#pragma once\n\n#include <stdint.h>\n#include <functional>\n#include <iostream>\n#include <memory>\n#include <string>\n#include <vector>\n#include <boost/asio/ip/tcp.hpp>\n#include <boost/asio/ssl/stream.hpp>\n#include <boost/asio/strand.hpp>\n#include <boost/asio/bind_executor.hpp>\n#include <boost...
1,037
60
{"language": "c", "success": true, "metadata": {"lines": 120, "avg_line_length": 35.38, "nodes": 647, "errors": 0, "source_hash": "1dcc22a7b02aff0ebb7166319ca65a846535c7877ecb4ce41d5767663c553e15", "categorized_nodes": 449}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
78,899