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
#ifndef VTKRENDERINGQT_EXPORT_H #define VTKRENDERINGQT_EXPORT_H #ifdef VTKRENDERINGQT_STATIC_DEFINE # define VTKRENDERINGQT_EXPORT # define VTKRENDERINGQT_NO_EXPORT #else # ifndef VTKRENDERINGQT_EXPORT # ifdef vtkRenderingQt_EXPORTS /* We are building this library */ # define VTKRENDERIN...
27.76
38
(translation_unit) "#ifndef VTKRENDERINGQT_EXPORT_H \n#define VTKRENDERINGQT_EXPORT_H \n \n#ifdef VTKRENDERINGQT_STATIC_DEFINE \n# define VTKRENDERINGQT_EXPORT \n# define VTKRENDERINGQT_NO_EXPORT \n#else \n# ifndef VTKRENDERINGQT_EXPORT \n# ifdef vtkRenderingQt_EXPORTS \n /* We are building this library */...
89
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 27.76, "nodes": 79, "errors": 0, "source_hash": "04d956df14bf519808b700457c06c7b8dcd500b92deb69a058f7b11cc1a6945d", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,400
c
// // ogles_gpgpu project - GPGPU for mobile devices and embedded systems using OpenGL ES 2.0 // // See LICENSE file in project repository root for the license. // // Copyright (c) 2016-2017, <NAME> (this file) /** * GPGPU grayscale processor. */ #ifndef OGLES_GPGPU_COMMON_PROC_TWOINPUT #define OGLES_GPGPU_COMMON_P...
27.13
91
(translation_unit) "//\n// ogles_gpgpu project - GPGPU for mobile devices and embedded systems using OpenGL ES 2.0\n//\n// See LICENSE file in project repository root for the license.\n//\n\n// Copyright (c) 2016-2017, <NAME> (this file)\n\n/**\n * GPGPU grayscale processor.\n */\n#ifndef OGLES_GPGPU_COMMON_PROC_TWOINP...
392
21
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 27.13, "nodes": 232, "errors": 0, "source_hash": "0bcbcd1a7e9db1920d4ced534f6eebd4b240bd61d18cd013622e79e92829b898", "categorized_nodes": 150}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,401
c
#include <stdio.h> #define SPHERE_LIBRARY_CODE #include <sp/sphere.h> /* * memory allocation/deallocation routines for the sphere_t * structure. * * Returns: a SP_FILE pointer upon success * SPNULL upon failure */ SP_FILE *sp_alloc_and_init_sphere_t(void) { SP_FILE *tsp; SPIFR *alloc_SPIF...
34.33
212
(translation_unit) "#include <stdio.h>\n#define SPHERE_LIBRARY_CODE\n#include <sp/sphere.h>\n\n/*\n * memory allocation/deallocation routines for the sphere_t \n * structure.\n *\n * Returns: a SP_FILE pointer upon success\n * SPNULL upon failure\n */\nSP_FILE *sp_alloc_and_init_sphere_t(void)\n{\n SP...
2,438
0
{"language": "c", "success": true, "metadata": {"lines": 212, "avg_line_length": 34.33, "nodes": 1542, "errors": 0, "source_hash": "2d6b4ed90a4edb1a2ae9c73ced7d3d2355a1a9fe6ae6e35c6f2f7ab846bc6675", "categorized_nodes": 1139}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
11,402
c
#include <Arduino.h> enum Color { RED, GREEN, BLUE, YELLOW, MAGENTA, CYAN, WHITE, OFF }; class Led { private: uint8_t _pinRed, _pinGreen, _pinBlue; uint8_t _red, _green, _blue; void setColor(uint8_t red, uint8_t green, uint8_t blue); public: Led(uint8_t pinRed, uint8_t...
16.35
23
(translation_unit) "#include <Arduino.h>\n\nenum Color\n{\n RED,\n GREEN,\n BLUE,\n YELLOW,\n MAGENTA,\n CYAN,\n WHITE,\n OFF\n};\n\nclass Led\n{\nprivate:\n uint8_t _pinRed, _pinGreen, _pinBlue;\n uint8_t _red, _green, _blue;\n void setColor(uint8_t red, uint8_t green, uint8_t blue);\n...
120
2
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 16.35, "nodes": 76, "errors": 0, "source_hash": "c0ec10e5ea3e4163e50c55f7cf417676b52588b55bf05b82bebab0b375b1f395", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
11,403
c
#pragma once #include "../Common/board.h" #include "../Common/magic.h" namespace GoPiGo { typedef char degrees_t; class Servo : public ConnectedDevice { public: Servo(IBoard *AConnection); // Enables the servo motor bool Enable(); // Disables the servo motor bool Disable()...
23.33
18
(translation_unit) "#pragma once\n\n#include "../Common/board.h"\n#include "../Common/magic.h"\n\nnamespace GoPiGo\n{\n typedef char degrees_t;\n\n class Servo : public ConnectedDevice\n {\n public:\n Servo(IBoard *AConnection);\n\n // Enables the servo motor\n bool Enable();\n\n // Disables...
85
1
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 23.33, "nodes": 46, "errors": 0, "source_hash": "69ce50c8c38750de0df76d2b602e64ec1b35174e4424715ac12fd3497315e2a4", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
11,404
c
#ifndef dirobj_h #define dirobj_h /* * NIST Utils Class Library * clutils/dirobj.h * April 1997 * <NAME> * <NAME> * Development of this software was funded by the United States Government, * and is not subject to copyright. */ /* * DirObj - This object contains a list of files in a directory. * Can be used f...
30.46
90
(translation_unit) "#ifndef dirobj_h\n#define dirobj_h\n\n/*\n* NIST Utils Class Library\n* clutils/dirobj.h\n* April 1997\n* <NAME>\n* <NAME>\n\n* Development of this software was funded by the United States Government,\n* and is not subject to copyright.\n*/\n\n/*\n * DirObj - This object contains a list of files in ...
503
12
{"language": "c", "success": true, "metadata": {"lines": 90, "avg_line_length": 30.46, "nodes": 308, "errors": 0, "source_hash": "60338dd10a7337d8e50ef6f2df1bc7710b85d4932755c71862b27292e23ccb60", "categorized_nodes": 185}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,405
c
#include "cpu/exec/helper.h" #define DATA_BYTE 1 #include "mul-template.h" #undef DATA_BYTE #define DATA_BYTE 2 #include "mul-template.h" #undef DATA_BYTE #define DATA_BYTE 4 #include "mul-template.h" #undef DATA_BYTE /* for instruction encoding overloading */ make_helper_v(mul_rm)
22.58
12
(translation_unit) "#include "cpu/exec/helper.h"\n\n#define DATA_BYTE 1\n#include "mul-template.h"\n#undef DATA_BYTE\n\n#define DATA_BYTE 2\n#include "mul-template.h"\n#undef DATA_BYTE\n\n#define DATA_BYTE 4\n#include "mul-template.h"\n#undef DATA_BYTE\n\n/* for instruction encoding overloading */\n\nmake_helper_v(mul_...
54
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 22.58, "nodes": 37, "errors": 0, "source_hash": "420685023774b66597ef2811ce5a3f157cc812552db24df8c08c37ce23680679", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
11,406
c
#pragma once #include "Vec3.h" #include "Texture.h" class SolidColor : public Texture { public: Vec3 color; SolidColor(Vec3 c); ~SolidColor(); virtual Vec3 value(float u, float v, const Vec3& p) const; };
18
11
(translation_unit) "#pragma once\n#include "Vec3.h"\n#include "Texture.h"\n\nclass SolidColor : public Texture\n{\npublic:\n Vec3 color;\n\n SolidColor(Vec3 c);\n ~SolidColor();\n\n virtual Vec3 value(float u, float v, const Vec3& p) const;\n};\n\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" ...
80
5
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 18.0, "nodes": 44, "errors": 0, "source_hash": "5717069427f9d382baf862ca8cc51890df53aa261576ba9be4415a3a1800960b", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
11,407
c
/* * Copyright (C) <NAME> * Copyright (C) NGINX, Inc. */ #include <nxt_main.h> /* The arguments passed to main(). */ char **nxt_process_argv; /* * MacOSX environ(7): * * Shared libraries and bundles don't have direct access to environ, * which is only available to the loader ld(1) when a complete progr...
29.78
201
(translation_unit) "/*\n * Copyright (C) <NAME>\n * Copyright (C) NGINX, Inc.\n */\n\n#include <nxt_main.h>\n\n\n/* The arguments passed to main(). */\nchar **nxt_process_argv;\n\n/*\n * MacOSX environ(7):\n *\n * Shared libraries and bundles don't have direct access to environ,\n * which is only available to the ...
1,263
0
{"language": "c", "success": true, "metadata": {"lines": 201, "avg_line_length": 29.78, "nodes": 757, "errors": 0, "source_hash": "5fdcab694f3b8d4387ecfa350d60852983175957703baf5e9a628fb5532625d6", "categorized_nodes": 480}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
11,408
c
#ifndef __GENETICCODE_H__ #define __GENETICCODE_H__ extern const char * codons[64]; extern const char * codons2aminoAcids[64]; extern const char * codons2letters[64]; extern const char * aminoAcids[21]; extern const char * aminoAcidLetters[21]; #endif
30.5
8
(translation_unit) "#ifndef __GENETICCODE_H__\n#define __GENETICCODE_H__\n\nextern const char * codons[64];\nextern const char * codons2aminoAcids[64];\nextern const char * codons2letters[64];\n\nextern const char * aminoAcids[21];\nextern const char * aminoAcidLetters[21];\n\n#endif\n" (preproc_ifdef) "#ifndef __GEN...
78
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 30.5, "nodes": 52, "errors": 0, "source_hash": "8102e85c19b859e115ddd1cc0c0798d13d13cd9c9a0684a5effe7c4e1e7be7ab", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __...
11,409
c
/* +----------------------------------------------------------------------+ | Lua | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundl...
34.14
72
(translation_unit) "/*\n +----------------------------------------------------------------------+\n | Lua |\n +----------------------------------------------------------------------+\n | This source file is subject to version 3.01 of the PHP license, ...
275
2
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 34.14, "nodes": 200, "errors": 0, "source_hash": "5a272654eeef93d3c31d753608f48752b89b34a6732b898be65f7e30359c29a4", "categorized_nodes": 130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,410
c
// // AppDelegate+PushService.h // MiAiApp // // Created by icaibei on 2017/5/25. // Copyright © 2017年 icaibei. All rights reserved. // #import "AppDelegate.h" /** 推送相关在这里处理 */ @interface AppDelegate (PushService) @end
16.31
13
(translation_unit) "//\n// AppDelegate+PushService.h\n// MiAiApp\n//\n// Created by icaibei on 2017/5/25.\n// Copyright © 2017年 icaibei. All rights reserved.\n//\n\n#import "AppDelegate.h"\n\n/**\n 推送相关在这里处理\n */\n@interface AppDelegate (PushService)\n\n@end\n" (comment) "//" (comment) "// AppDelegate+PushServ...
24
4
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 16.31, "nodes": 13, "errors": 0, "source_hash": "95304a364e947bb4da005d93151256f382bdecee1da219ad08aa60148ad60e0d", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"App...
11,411
c
/* $Id: minixmlvalid.c,v 1.2 2006/11/30 11:31:55 nanard Exp $ */ /* MiniUPnP Project * http://miniupnp.tuxfamily.org/ or http://miniupnp.free.fr/ * minixmlvalid.c : * validation program for the minixml parser * * (c) 2006 <NAME> */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include "minixml.h" /...
22.86
137
(translation_unit) "/* $Id: minixmlvalid.c,v 1.2 2006/11/30 11:31:55 nanard Exp $ */\n/* MiniUPnP Project\n * http://miniupnp.tuxfamily.org/ or http://miniupnp.free.fr/\n * minixmlvalid.c :\n * validation program for the minixml parser\n *\n * (c) 2006 <NAME> */\n\n#include <stdlib.h>\n#include <stdio.h>\n#include <str...
1,146
0
{"language": "c", "success": true, "metadata": {"lines": 137, "avg_line_length": 22.86, "nodes": 681, "errors": 0, "source_hash": "1af609147d67a17c90ba5ee5f6bccf5e6e62f8d3b01b71a3d13383f54025a1cd", "categorized_nodes": 509}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
11,412
c
/* Editable Table Option * * From: https://github.com/PokemonAutomation/Arduino-Source * */ #ifndef PokemonAutomation_EditableTableBaseWidget_H #define PokemonAutomation_EditableTableBaseWidget_H #include <QTableWidget> #include "Common/Qt/AutoHeightTable.h" #include "EditableTableBaseOption.h" na...
22.56
39
(translation_unit) "/* Editable Table Option \n * \n * From: https://github.com/PokemonAutomation/Arduino-Source \n * \n */ \n \n#ifndef PokemonAutomation_EditableTableBaseWidget_H \n#define PokemonAutomation_EditableTableBaseWidget_H \n \n#include <QTableWidget> \n#include "Common/Qt/AutoHeightTable.h" \n#include "E...
164
2
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 22.56, "nodes": 100, "errors": 0, "source_hash": "3e7d3883dbef31bf5caba3c6377740fb31e15bb3f8039e61ba5ec6a9fed1e9ac", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
11,413
c
// // BaseController.h // Yo // // Created by <NAME> on 3/2/14. // // #import "YOCell.h" #import <AVFoundation/AVFoundation.h> #import "YOShareCell.h" #import "YOEditCell.h" #import "YoContactBookConstants.h" #import "YoBaseViewController.h" typedef NS_ENUM(NSUInteger, YoInviteType) { YoInviteType_Default, ...
36.97
35
(translation_unit) "//\n// BaseController.h\n// Yo\n//\n// Created by <NAME> on 3/2/14.\n//\n//\n\n#import "YOCell.h"\n#import <AVFoundation/AVFoundation.h>\n#import "YOShareCell.h"\n#import "YOEditCell.h"\n#import "YoContactBookConstants.h"\n#import "YoBaseViewController.h"\n\ntypedef NS_ENUM(NSUInteger, YoInviteTy...
338
42
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 36.97, "nodes": 220, "errors": 0, "source_hash": "0ae323f6e7a2b1b4e770d3edf1d49a27f643267f586a3816003a7e1cd9480ba7", "categorized_nodes": 122}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
11,414
c
//##################################################################### // Copyright 2004, <NAME>. // This file is part of PhysBAM whose distribution is governed by the license contained in the accompanying file PHYSBAM_COPYRIGHT.txt. //##################################################################### // Class SOLI...
31
49
(translation_unit) "//#####################################################################\n// Copyright 2004, <NAME>.\n// This file is part of PhysBAM whose distribution is governed by the license contained in the accompanying file PHYSBAM_COPYRIGHT.txt.\n//############################################################...
252
10
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 31.0, "nodes": 130, "errors": 0, "source_hash": "5c194d3dc3b33c5b6480f408104d4e1fbced0a23bfbc7c297f1f090df13d8519", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,415
c
#pragma once #include "graphics.h" #include "input.h" typedef struct ControlData { GraphicsData graphics_data; InputData input_data; } ControlData;
17.75
8
(translation_unit) "#pragma once\n\n#include "graphics.h"\n#include "input.h"\n\ntypedef struct ControlData\n{\n GraphicsData graphics_data;\n InputData input_data;\n} ControlData;" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "graphics.h"\n"...
34
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 17.75, "nodes": 21, "errors": 0, "source_hash": "0d9d7b0798d2653442dcae9fdd616f37d8b03f215cb8cf8b5ea30ff91a083a63", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
11,416
c
#include "../../src/corelib/tools/qcommandlineparser.h"
55
1
(translation_unit) "#include "../../src/corelib/tools/qcommandlineparser.h"\n" (preproc_include) "#include "../../src/corelib/tools/qcommandlineparser.h"\n" (#include) "#include" (string_literal) ""../../src/corelib/tools/qcommandlineparser.h"" (") """ (string_content) "../../src/corelib/tools/qco...
7
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 55.0, "nodes": 3, "errors": 0, "source_hash": "9ee71391ec6403c4e1535a83f5859ad2370df4e83cc01b7937433db89cd81b6f", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \...
11,417
c
// // CCTextActionLabel.h // CCKit // // Created by 胡超 on 2018/6/28. // Copyright © 2018年 胡超., ltd. All rights reserved. // #import <UIKit/UIKit.h> @interface CCTextActionLabel : UIView @property(nonatomic,strong) UIFont * font; @property(nonatomic,assign) NSTextAlignment textAlignment; /** 添加普通文字*/ @pro...
32.75
16
(translation_unit) "//\n// CCTextActionLabel.h\n// CCKit\n//\n// Created by 胡超 on 2018/6/28.\n// Copyright © 2018年 胡超., ltd. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface CCTextActionLabel : UIView\n\n@property(nonatomic,strong) UIFont * font;\n@property(nonatomic,assign) NSTextAlignment ...
145
19
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 32.75, "nodes": 102, "errors": 0, "source_hash": "02ab1712ea82ba967ab7c8cd03f2b13298be5099ef3d37fd389e9a1d04b862f2", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Kit/UIKi...
11,418
c
/** * @brief Abstract. Base class to constrain a variable given a certain constraint * A Param has been used to allow a Generic constraint to * be extended from other Generic constraints */ class SConstraintBase : Managed { protected bool enabled = false; protected string message = "#STR_SUDE_LAYOUT_O...
22.65
71
(translation_unit) "/**\n* @brief Abstract. Base class to constrain a variable given a certain constraint\n* A Param has been used to allow a Generic constraint to\n* be extended from other Generic constraints\n*/\nclass SConstraintBase : Managed {\n \n protected bool enabled = false;\n protected string m...
241
3
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 22.65, "nodes": 134, "errors": 0, "source_hash": "cc1b0e1678838b2bda82cb80cd504910bd5a9083e6bbd3a173c2aeeb2b9b0c99", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "c...
11,419
c
#include "dslib.h" int compare_int(void *a, void *b) { return ((int)a) < ((int)b) ? -1 : (((int)a) > ((int)b) ? 1 : 0); } void null_func(void *a) { }
17.88
8
(translation_unit) "#include "dslib.h"\n\nint compare_int(void *a, void *b)\n{\n return ((int)a) < ((int)b) ? -1 : (((int)a) > ((int)b) ? 1 : 0);\n}\n\nvoid null_func(void *a)\n{\n\n}" (preproc_include) "#include "dslib.h"\n" (#include) "#include" (string_literal) ""dslib.h"" (") """ (string_conte...
98
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 17.88, "nodes": 61, "errors": 0, "source_hash": "63c90bbcd05fb08ec4d02fc37ce82aa013cf886286f27717ded9fb99de1f64b0", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
11,420
c
#pragma once #include "../core/types.h" INLINE vec4 sampleTextureMip(TextureMip *mip, vec2 UV, bool filter) { f32 u = UV.u; f32 v = UV.v; if (u > 1) u -= (f32)((u32)u); if (v > 1) v -= (f32)((u32)v); const f32 offset = filter ? 0.5f : -0.5f; const f32 U = u * (f32)mip->width + offset; c...
35.08
40
(translation_unit) "#pragma once\n\n#include "../core/types.h"\n\nINLINE vec4 sampleTextureMip(TextureMip *mip, vec2 UV, bool filter) {\n f32 u = UV.u;\n f32 v = UV.v;\n if (u > 1) u -= (f32)((u32)u);\n if (v > 1) v -= (f32)((u32)v);\n\n const f32 offset = filter ? 0.5f : -0.5f;\n\n const f32 U = u * ...
578
2
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 35.08, "nodes": 395, "errors": 0, "source_hash": "2b1ac63a3fcd13a7284003ca271edd4b319f18e5d99de0f7b15ffad4ad4e0f35", "categorized_nodes": 292}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
11,421
c
/* * drv_joystick.c * * Created on: Mar 18, 2021 * Author: kimi */ /********** Include **********/ #include "math.h" #include "common_type.h" #include "drv_joystick_cfg.h" #include "drv_joystick.h" /********** Define **********/ #define ADC_TIMEOUT (100) /********** Type **********/ /********** Constan...
28.96
102
(translation_unit) "/*\n * drv_joystick.c\n *\n * Created on: Mar 18, 2021\n * Author: kimi\n */\n\n/********** Include **********/\n\n#include "math.h"\n#include "common_type.h"\n#include "drv_joystick_cfg.h"\n#include "drv_joystick.h"\n\n/********** Define **********/\n\n#define ADC_TIMEOUT (100)\n\n/**********...
719
0
{"language": "c", "success": true, "metadata": {"lines": 102, "avg_line_length": 28.96, "nodes": 424, "errors": 0, "source_hash": "215ed8fe8378f569d5e22562a1c6864fd086940979950a8c70134d8165b84bb3", "categorized_nodes": 318}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
11,422
c
#include <linux/module.h> #include <linux/kernel.h> #include <linux/slab.h> #include <linux/vmalloc.h> #include <linux/uaccess.h> #include <linux/cpu.h> #include <asm/tlbflush.h> #include "../../exp_trigger.h" #include "translation_table_helper.h" #undef pr_fmt #define pr_fmt(fmt) "exp_trigger: " fmt static int do_us...
30.33
166
(translation_unit) "#include <linux/module.h>\n#include <linux/kernel.h>\n#include <linux/slab.h>\n#include <linux/vmalloc.h>\n#include <linux/uaccess.h>\n#include <linux/cpu.h>\n#include <asm/tlbflush.h>\n#include "../../exp_trigger.h"\n#include "translation_table_helper.h"\n\n#undef pr_fmt\n#define pr_fmt(fmt) "exp_t...
1,534
0
{"language": "c", "success": true, "metadata": {"lines": 166, "avg_line_length": 30.33, "nodes": 912, "errors": 0, "source_hash": "9ceefc08114139cb8b8f0881a49a2e04a8473e9f0a1ec486d85f3714bf7a53c9", "categorized_nodes": 629}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
11,423
c
#define CACHE_HIT_DELAY 1 #define CACHE_LINE_SIZE_LOG 4 #define cacheTag(addr) (addr >> CACHE_LINE_SIZE_LOG)
35.33
3
(translation_unit) "#define CACHE_HIT_DELAY 1\n#define CACHE_LINE_SIZE_LOG 4\n#define cacheTag(addr) (addr >> CACHE_LINE_SIZE_LOG)\n\n" (preproc_def) "#define CACHE_HIT_DELAY 1\n" (#define) "#define" (identifier) "CACHE_HIT_DELAY" (preproc_arg) "1" (preproc_def) "#define CACHE_LINE_SIZE_LOG 4\n" (#d...
17
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 35.33, "nodes": 14, "errors": 0, "source_hash": "29e5969917ac86b51047bad3270a42b64edb25e33413ffa44d5cf46c96ca6c0f", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define CACH...
11,424
c
// // ALAudioCell.h // Applozic // // Created by devashish on 20/01/2016. // Copyright © 2016 applozic Inc. All rights reserved. // /********************************************************************* TABLE CELL CUSTOM CLASS : THIS CLASS IS FOR AUDIO MESSAGES AUDIO INCLUDE RECORDED OR MUSIC FILE **************...
37.83
40
(translation_unit) "//\n// ALAudioCell.h\n// Applozic\n//\n// Created by devashish on 20/01/2016.\n// Copyright © 2016 applozic Inc. All rights reserved.\n//\n/*********************************************************************\n TABLE CELL CUSTOM CLASS : THIS CLASS IS FOR AUDIO MESSAGES\n AUDIO INCLUDE RECORDED ...
244
38
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 37.83, "nodes": 159, "errors": 0, "source_hash": "70dfde827f6776f3fc710265ebc1638eb07fa5ec17cce568635e7638c066ed5c", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <...
11,425
c
/* Generated by GNU Make 4.2.1. Do not edit. */ #ifndef __CONFIG__embox__util__SList__H_ #define __CONFIG__embox__util__SList__H_ // This is a base type of embox.util.SListDebug #include <config/embox/util/SListDebug.h> #endif /* __CONFIG__embox__util__SList__H_ */
43.33
6
(translation_unit) "/* Generated by GNU Make 4.2.1. Do not edit. */\n\n#ifndef __CONFIG__embox__util__SList__H_\n#define __CONFIG__embox__util__SList__H_\n// This is a base type of embox.util.SListDebug\n#include <config/embox/util/SListDebug.h>\n\n#endif /* __CONFIG__embox__util__SList__H_ */\n" (comment) "/* Genera...
14
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 43.33, "nodes": 10, "errors": 0, "source_hash": "5b6acce549cd57956c0cd8191e9c1f88ac2f8d5069f1ea909d5ce3ca9f11a080", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __...
11,426
c
/* * Copyright 2014, NICTA * * This software may be distributed and modified according to the terms of * the BSD 2-Clause license. Note that NO WARRANTY is provided. * See "LICENSE_BSD2.txt" for details. * * @TAG(NICTA_BSD) */ struct __s { int fld; int __fld; }; typedef struct __s __t; int _f(int i) { ...
17.45
22
(translation_unit) "/*\n * Copyright 2014, NICTA\n *\n * This software may be distributed and modified according to the terms of\n * the BSD 2-Clause license. Note that NO WARRANTY is provided.\n * See "LICENSE_BSD2.txt" for details.\n *\n * @TAG(NICTA_BSD)\n */\n\nstruct __s {\n int fld;\n int __fld;\n};\n\ntypedef ...
80
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 17.45, "nodes": 54, "errors": 0, "source_hash": "6f1628775cf204e1653173bb1aaef85575e1775abc82b62dea70042bfd86343d", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "struct_specifier", "text": "struc...
11,427
c
#pragma once #include <gravision/precision.h> namespace gravision { class Vec3 { public: real x; real y; real z; private: real padding; //padding to ensure four word alignment in array usage public: //default constructor Vec3() : x(0), y(0), z(0) {} //explicit constructor Vec3(const real x, const r...
25.37
128
(translation_unit) "#pragma once\n#include <gravision/precision.h>\nnamespace gravision {\n class Vec3 {\n public:\n real x;\n real y;\n real z;\n private:\n real padding; //padding to ensure four word alignment in array usage\n public:\n //default constructor\n Vec3() : x(0), y(0), z(0) {}\n\n //explicit constr...
1,130
24
{"language": "c", "success": true, "metadata": {"lines": 128, "avg_line_length": 25.37, "nodes": 709, "errors": 0, "source_hash": "bd4d8297a22e2db78157f519ec7be97d23eaa378be0499b75b64e8c7b413de5e", "categorized_nodes": 528}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
11,428
c
//==-- SemanticHighlighting.h - Generating highlights from the AST-- C++ -*-==// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
37.08
50
(translation_unit) "//==-- SemanticHighlighting.h - Generating highlights from the AST-- C++ -*-==//\n//\n// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.\n// See https://llvm.org/LICENSE.txt for license information.\n// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception\n//\n//===-...
199
9
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 37.08, "nodes": 108, "errors": 0, "source_hash": "4536db440e87b567a7eb6beb6d226e624ac7d402e1deac6cf5cf6404a7b80438", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef LLVM_CL...
11,429
c
#ifndef _ENGINE_H_ #define _ENGINE_H_ #include <vector> #include <SFML/Window.hpp> #include <GL/gl.h> #include <GL/glu.h> #include "../3ds.h" using namespace std; namespace cfg { const GLfloat rotationSpeed = 0.5f; const GLfloat positionSpeed = 0.005f; const GLfloat zoomSpeed = 0.05f; const GLdouble selectTole...
22.07
70
(translation_unit) "#ifndef _ENGINE_H_\n#define _ENGINE_H_\n\n#include <vector>\n#include <SFML/Window.hpp>\n#include <GL/gl.h>\n#include <GL/glu.h>\n#include "../3ds.h"\n\nusing namespace std;\n\nnamespace cfg\n{\n const GLfloat rotationSpeed = 0.5f;\n const GLfloat positionSpeed = 0.005f;\n const GLfloat zoomSpeed = ...
441
10
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 22.07, "nodes": 280, "errors": 0, "source_hash": "302e87e76ec8c9c17dd7dafa6b556dc8ba92299aabd5068d3c92188aa4ed84c7", "categorized_nodes": 196}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,430
c
//sample code to see how many people are obese //it checks function , declarations, and few conditions // <NAME> | <NAME> int count_obese(int weights, int threshold, int num); int main() { int weights[5]; weights[0] = 10; weights[1] = 15; weights[2] = 45; weights[3] = 100; weights[4] = 120; ...
22.23
26
(translation_unit) "//sample code to see how many people are obese\n//it checks function , declarations, and few conditions\n// <NAME> | <NAME>\n\nint count_obese(int weights, int threshold, int num);\n\nint main()\n{\n int weights[5];\n\n weights[0] = 10;\n weights[1] = 15;\n weights[2] = 45;\n weights[...
196
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 22.23, "nodes": 119, "errors": 0, "source_hash": "a305370e9f65e2ab52664000d11c1c37ca4ab4442321d949bda21aa06c9387f6", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "int count...
11,431
c
#ifndef __IMGUI_TIMELINE_INTERNAL_H #define __IMGUI_TIMELINE_INTERNAL_H #include "imgui.h" #include "imgui_internal.h" #define N_MOUSE_BUTTONS 5 #define N_LEFT_MOUSE_BUTTON 0 #define N_RIGHT_MOUSE_BUTTON 1 #define N_SCROLL_MOUSE_BUTTON 2 #define N_NEXT_MOUSE_BUTTON 3 #define N_PREVIOUS_MOUSE_BUTTON 4 #define N_N...
38.71
162
(translation_unit) "#ifndef __IMGUI_TIMELINE_INTERNAL_H\n#define __IMGUI_TIMELINE_INTERNAL_H\n\n#include "imgui.h"\n#include "imgui_internal.h"\n\n#define N_MOUSE_BUTTONS 5\n\n#define N_LEFT_MOUSE_BUTTON 0\n#define N_RIGHT_MOUSE_BUTTON 1\n#define N_SCROLL_MOUSE_BUTTON 2\n#define N_NEXT_MOUSE_BUTTON 3\n#define N_PRE...
1,306
67
{"language": "c", "success": true, "metadata": {"lines": 162, "avg_line_length": 38.71, "nodes": 922, "errors": 0, "source_hash": "e7987f1771662e7f437e218621e3ed9607652ba64726151803e11d0604e4cce4", "categorized_nodes": 522}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
11,432
c
/******************************************************************************* SPW Peripheral Library Source File Company: Microchip Technology Inc. File Name: plib_spw_pktrx.c Summary: SPW PLIB Implementation file for packet RX module. Description: This file defines the interface to t...
36.5
231
(translation_unit) "/*******************************************************************************\n SPW Peripheral Library\n Source File\n\n Company:\n Microchip Technology Inc.\n\n File Name:\n plib_spw_pktrx.c\n\n Summary:\n SPW PLIB Implementation file for packet RX module.\n\n Description:\n Th...
414
0
{"language": "c", "success": true, "metadata": {"lines": 231, "avg_line_length": 36.5, "nodes": 234, "errors": 0, "source_hash": "d809f9dbefbc6320d267aa5245b3a532ae2a85babc4fbe8db1038cb1c63e5fc0", "categorized_nodes": 171}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,433
c
#include <stdio.h> int areaCalc(height, width, area) { area = height * width; printf("A area calculada da parede é: %i \n", area); return 0; } int main(void) { int height, width, area; printf("Digite aqui a altura: \n"); scanf("%i", &height); printf("Digite aqui a largura: \n"); scanf("%i", &width);...
24.14
14
(translation_unit) "#include <stdio.h>\n\nint areaCalc(height, width, area) {\n area = height * width;\n printf("A area calculada da parede é: %i \n", area);\n return 0;\n}\n\nint main(void) {\n int height, width, area;\n\n printf("Digite aqui a altura: \n");\n scanf("%i", &height);\n\n printf("Digite aqui a lar...
135
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 24.14, "nodes": 70, "errors": 0, "source_hash": "39944e32d86d83018754a9e1d0d593e3ebc24d575eb5a18bba880d4767b80504", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
11,434
c
// // LPRequestBatchFactory.h // Leanplum-iOS-SDK // // Copyright © 2020 Leanplum. All rights reserved. // #import <Foundation/Foundation.h> #import "LPRequestBatch.h" NS_ASSUME_NONNULL_BEGIN @interface LPRequestBatchFactory : NSObject + (LPRequestBatch *)createNextBatch; + (void)deleteFinishedBatch:(LPRequestBa...
24.43
14
(translation_unit) "//\n// LPRequestBatchFactory.h\n// Leanplum-iOS-SDK\n//\n// Copyright © 2020 Leanplum. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "LPRequestBatch.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface LPRequestBatchFactory : NSObject\n\n+ (LPRequestBatch *)createNextBatch;\n+ (vo...
59
6
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 24.43, "nodes": 34, "errors": 0, "source_hash": "e30619bb53145d054bdc218e11c94171f46cfc7d3e997cd72256055668812486", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
11,435
c
/* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> #include "include/secp256k1.h" /* Header for class org_bitcoin_NativeSecp256k1 */ #ifndef _Included_org_bitcoin_NativeSecp256k1 #define _Included_org_bitcoin_NativeSecp256k1 #ifdef __cplusplus extern "C" { #endif /* * Class: org_bitcoin_Native...
37.14
105
(translation_unit) "/* DO NOT EDIT THIS FILE - it is machine generated */\n#include <jni.h>\n#include "include/secp256k1.h"\n/* Header for class org_bitcoin_NativeSecp256k1 */\n\n#ifndef _Included_org_bitcoin_NativeSecp256k1\n#define _Included_org_bitcoin_NativeSecp256k1\n#ifdef __cplusplus\nextern "C" {\n#endif\n/*\n ...
393
0
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 37.14, "nodes": 273, "errors": 0, "source_hash": "65941af9a5c7a8d0e457fa4d1ee86bcc74973c6e96a18ce820bb5c17de96a71b", "categorized_nodes": 230}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
11,436
c
// // PCComicHistory.h // Pica // // Created by Fancy on 2021/6/7. // Copyright © 2021 fancy. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN #define kPCComicHistory [PCComicHistory sharedInstance] @class PCComic; @interface PCComicHistory : NSObject + (instancetype)sharedIns...
25.86
21
(translation_unit) "//\n// PCComicHistory.h\n// Pica\n//\n// Created by Fancy on 2021/6/7.\n// Copyright © 2021 fancy. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n#define kPCComicHistory [PCComicHistory sharedInstance]\n\n@class PCComic;\n@interface PCComicHistory : ...
149
22
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 25.86, "nodes": 95, "errors": 0, "source_hash": "fb5a2cf4dd01191834f1a16be2c9719a769535b4fc43f5d4a46b7b372c1f9468", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
11,437
c
// // Created by zhangfuwen on 2022/1/22. // #ifndef AUDIO_IME_ENGINE_H #define AUDIO_IME_ENGINE_H #include "DictPinyin.h" #include "DictSpeech.h" #include "common_log.h" #include "nlsClient.h" #include "nlsEvent.h" #include "nlsToken.h" #include "speechRecognizerRequest.h" #include "DictWubi.h" #include "RuntimeOpti...
30
110
(translation_unit) "//\n// Created by zhangfuwen on 2022/1/22.\n//\n\n#ifndef AUDIO_IME_ENGINE_H\n#define AUDIO_IME_ENGINE_H\n\n#include "DictPinyin.h"\n#include "DictSpeech.h"\n#include "common_log.h"\n#include "nlsClient.h"\n#include "nlsEvent.h"\n#include "nlsToken.h"\n#include "speechRecognizerRequest.h"\n#include ...
927
20
{"language": "c", "success": true, "metadata": {"lines": 110, "avg_line_length": 30.0, "nodes": 618, "errors": 0, "source_hash": "5bcdad6a1c1686aaa4daaffc77f35be1b8403d3ae5143b6ed278d0b0c6f80a13", "categorized_nodes": 417}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,438
c
/* * Example ECDHE with Curve25519 program * * Copyright The Mbed TLS Contributors * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * h...
34.05
184
(translation_unit) "/*\n * Example ECDHE with Curve25519 program\n *\n * Copyright The Mbed TLS Contributors\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the "License"); you may\n * not use this file except in compliance with the License.\n * You may obtain a cop...
1,138
0
{"language": "c", "success": true, "metadata": {"lines": 184, "avg_line_length": 34.05, "nodes": 615, "errors": 0, "source_hash": "3318f4e913e01410694b9e91036609e6e33cec0a32bc83aa8dea38f72ae9d527", "categorized_nodes": 414}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
11,439
c
// // MitBarrageContentView.h // mc // // Created by Meng,Chen on 2017/4/12. // Copyright © 2017年 mc. All rights reserved. // #import <UIKit/UIKit.h> @class MitBarrageItem; typedef NS_ENUM(NSUInteger, MitAlignType) { MitAlignTypeDefault = 0, MitAlignTypeLeft = 1, MitAlignTypeRight = 2, }; /** item 点击...
19.93
46
(translation_unit) "//\n// MitBarrageContentView.h\n// mc\n//\n// Created by Meng,Chen on 2017/4/12.\n// Copyright © 2017年 mc. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n@class MitBarrageItem;\n\ntypedef NS_ENUM(NSUInteger, MitAlignType) {\n MitAlignTypeDefault = 0,\n MitAlignTypeLeft = 1,\n MitA...
180
27
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 19.93, "nodes": 119, "errors": 0, "source_hash": "4ca8178d975afd6ba2a19f88573e42bbc3c4b97aff4affcfb95ed34b0c64a03a", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UI...
11,440
c
#pragma once //libraries #include <QSet> #include <QObject> #include <QString> //local class AbstractFileSystemWatcher : public QObject { Q_OBJECT public: AbstractFileSystemWatcher(QObject* parent = nullptr) : QObject(parent) {} virtual QSet<QString> directories() = 0; public slots: virtual bool enab...
22.26
19
(translation_unit) "#pragma once\n//libraries\n#include <QSet>\n#include <QObject>\n#include <QString>\n\n//local\n\n\nclass AbstractFileSystemWatcher : public QObject {\nQ_OBJECT\n\npublic:\n AbstractFileSystemWatcher(QObject* parent = nullptr) : QObject(parent) {}\n\n virtual QSet<QString> directories() = 0;\n\...
129
6
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 22.26, "nodes": 88, "errors": 0, "source_hash": "e0a102fa02c27a63184807f27e15b072683a90efee4be46eefb45a2a3e979055", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
11,441
c
#pragma once #include "iComponent.h" #include "CollisionShape.h" #include "RigidBody.h" #include "Entity.h" #include "glm/glm.hpp" #include <map> #include <string> #include <vector> #define ENTITYTYPES(E) \ E(NONE), \ E(WALL), \ E(PLAYER), \ E(COLLECTABLE), \ E(PBULLET), \ E(EBULLET) #define E(e) e static enum ...
28.17
131
(translation_unit) "#pragma once\n#include "iComponent.h"\n#include "CollisionShape.h"\n#include "RigidBody.h"\n#include "Entity.h"\n#include "glm/glm.hpp"\n#include <map>\n#include <string>\n#include <vector>\n\n#define ENTITYTYPES(E) \\n E(NONE), \\n E(WALL), \\n E(PLAYER), \\n E(COLLECTABLE), \\n E(PBULLET), \\n E(E...
961
39
{"language": "c", "success": true, "metadata": {"lines": 131, "avg_line_length": 28.17, "nodes": 557, "errors": 0, "source_hash": "d0027d2561a02d4aa2e85e97192a1f6f7dbec5814e63044c4863503a9750fd0f", "categorized_nodes": 358}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
11,442
c
// // NSMutableArrayBlocksKitTest.h // %PROJECT // // Created by <NAME> on 7/8/11. // #import <GHUnitIOS/GHUnit.h> #import "BlocksKit/BlocksKit.h" @interface NSMutableArrayBlocksKitTest : GHTestCase { NSMutableArray *_subject; NSInteger _total; } @property (nonatomic,retain) NSMutableArray *subject; - (vo...
21.37
19
(translation_unit) "//\n// NSMutableArrayBlocksKitTest.h\n// %PROJECT\n//\n// Created by <NAME> on 7/8/11.\n//\n\n#import <GHUnitIOS/GHUnit.h>\n#import "BlocksKit/BlocksKit.h"\n\n@interface NSMutableArrayBlocksKitTest : GHTestCase {\n NSMutableArray *_subject;\n NSInteger _total;\n}\n@property (nonatomic,retai...
107
7
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 21.37, "nodes": 65, "errors": 0, "source_hash": "e3668b02f0ab0be55ebffb512c26670cc6db5f99f3da28bd7d9d61711ee2360c", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
11,443
c
/* * Copyright (C) 2019-2020 Intel Corporation * * SPDX-License-Identifier: MIT * */ #pragma once #include "shared/source/utilities/const_stringref.h" #include "shared/source/utilities/stackvec.h" namespace NEO { namespace CompilerOptions { static constexpr ConstStringRef greaterThan4gbBuffersRequired = "-cl-in...
38.36
132
(translation_unit) "/*\n * Copyright (C) 2019-2020 Intel Corporation\n *\n * SPDX-License-Identifier: MIT\n *\n */\n\n#pragma once\n\n#include "shared/source/utilities/const_stringref.h"\n#include "shared/source/utilities/stackvec.h"\n\nnamespace NEO {\nnamespace CompilerOptions {\nstatic constexpr ConstStringRef great...
1,535
69
{"language": "c", "success": true, "metadata": {"lines": 132, "avg_line_length": 38.36, "nodes": 949, "errors": 0, "source_hash": "aa7a917e4dbba2d733ad55cbdbc04c2b5b36aa15a5317db2982011ee0e8ec410", "categorized_nodes": 628}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
11,444
c
/* * Copyright (c) 2021, The PurpleI2P Project * * This file is part of Purple i2pd project and licensed under BSD3 * * See full license text in LICENSE file at top of project tree */ #ifndef __I18N_H__ #define __I18N_H__ #include "RouterContext.h" namespace i2p { namespace i18n { inline void SetLanguage(const std:...
25.61
38
(translation_unit) "/*\n* Copyright (c) 2021, The PurpleI2P Project\n*\n* This file is part of Purple i2pd project and licensed under BSD3\n*\n* See full license text in LICENSE file at top of project tree\n*/\n\n#ifndef __I18N_H__\n#define __I18N_H__\n\n#include "RouterContext.h"\n\nnamespace i2p\n{\nnamespace i18n\n{...
341
22
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 25.61, "nodes": 184, "errors": 0, "source_hash": "c56fdbc192418e0c20b16e6dd5755d5b89f72b839bac82ec0e856261918ef145", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,445
c
// Copyright (c) 2010-2018 LG Electronics, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
29.06
54
(translation_unit) "// Copyright (c) 2010-2018 LG Electronics, Inc.\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless r...
73
1
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 29.06, "nodes": 41, "errors": 0, "source_hash": "4f24911835d23777b9a57afdc2d3deb19e3388724111c16f2baff2197f1e693b", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,446
c
/* System headers */ #include <stdio.h> /* The implementation */ #include "khash.h" /* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */ #include "rht-hashers.h" /* Generates typedefs for hash table and inline functions */ KHASH_INIT(rht, char *, void *, 1, rht_python_hash, kh_str_hash_equal) /* librht - an abstra...
19.9
94
(translation_unit) "/* System headers */\n#include <stdio.h>\n\n/* The implementation */\n#include "khash.h"\n\n/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */\n\n#include "rht-hashers.h"\n\n/* Generates typedefs for hash table and inline functions */\nKHASH_INIT(rht, char *, void *, 1, rht_python_hash, kh_str_has...
750
2
{"language": "c", "success": true, "metadata": {"lines": 94, "avg_line_length": 19.9, "nodes": 491, "errors": 0, "source_hash": "1aad26b836e82e65147bdb42c484d9faaec2648aa6c5d0547cd298d5a44f1fdc", "categorized_nodes": 308}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
11,447
c
char *ft_strcapitalize(char *str) { int i; int word; i = 0; word = 0; while (str[i] != '\0') { while ((str[i] >= 'A' && str[i] <= 'Z') || (str[i] >= 'a' && str[i] <= 'z') || (str[i] >= '0' && str[i] <= '9')) { i++; word++; if (str[i] >= 'A' && str[i] <= 'Z') { str[i] = str[i] + 32; } ...
16.11
27
(translation_unit) "char *ft_strcapitalize(char *str)\n{\n int i;\n int word;\n\n i = 0;\n word = 0;\n while (str[i] != '\0')\n {\n while ((str[i] >= 'A' && str[i] <= 'Z') || (str[i] >= 'a'\n && str[i] <= 'z') || (str[i] >= '0' && str[i] <= '9'))\n {\n i++;\n word++;\n if (str[i] >= 'A' && str[i] <= 'Z')\n ...
288
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 16.11, "nodes": 200, "errors": 0, "source_hash": "2e1e3fb0eb003cf27be7cc68b369e4fa3f7d394a141e5fc978b40d2d4a4d7b86", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "...
11,448
c
#include <stdio.h> #include <stdlib.h> #include <string.h> struct paises { char nome[100]; int ouro, prata, bronze; }; int compara(const void *p1, const void *p2) { struct paises *i = (struct paises *)p1; struct paises *j = (struct paises *)p2; if (i->ouro < j->ouro) return 1; else if (i...
22.37
51
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\nstruct paises\n{\n char nome[100];\n int ouro, prata, bronze;\n};\nint compara(const void *p1, const void *p2)\n{\n struct paises *i = (struct paises *)p1;\n struct paises *j = (struct paises *)p2;\n if (i->ouro < j->ouro)\...
523
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 22.37, "nodes": 307, "errors": 0, "source_hash": "2cd6d47c7b276d43dd66519afe7cd0f95e8a67aba036e62e21a9424a1142cbb5", "categorized_nodes": 244}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,449
c
#include <stdio.h> #include <string.h> #define TAM_ID 10 #define TAM_NOME 30 #define TAM_USERS 5 typedef struct { char userID[TAM_ID]; char nome[30]; int cont; } tipo_usuario; /* Variável Global - Tabela de Usuários do Sistema */ tipo_usuario usuarios[TAM_USERS] = { {"joaos", "<NAME>", 0}, {"marias", "<N...
25.43
42
(translation_unit) "#include <stdio.h>\n#include <string.h>\n\n#define TAM_ID 10\n#define TAM_NOME 30\n#define TAM_USERS 5\n\ntypedef struct {\n char userID[TAM_ID];\n char nome[30];\n int cont;\n} tipo_usuario;\n\n/* Variável Global - Tabela de Usuários do Sistema */\ntipo_usuario usuarios[TAM_USERS] = {\n {"joa...
344
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 25.43, "nodes": 169, "errors": 0, "source_hash": "7418cb45700adc700a756fe709e6e928841b7665ce26b8b36de7c9ee71ca0f58", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,450
c
// ------------------------------------------------------------- // Copyright 2015 NXP B.V. // Copyright 2010 Cadence. // Copyright 2011 Mentor Graphics Corporation // All Rights Reserved Worldwide // // Licensed under the Apache License, Version 2.0 (the // "License"); you may not use this file exce...
34.14
181
(translation_unit) "// -------------------------------------------------------------\n// Copyright 2015 NXP B.V.\n// Copyright 2010 Cadence.\n// Copyright 2011 Mentor Graphics Corporation\n// All Rights Reserved Worldwide\n// \n// Licensed under the Apache License, Version 2.0 (the\n// "License"); you...
1,265
26
{"language": "c", "success": true, "metadata": {"lines": 181, "avg_line_length": 34.14, "nodes": 710, "errors": 0, "source_hash": "fa9c319bf57a694ebb108cff4dd859bee8deed030532cbb57c2e6ab5270fbd66", "categorized_nodes": 512}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
11,451
c
// C bit manipulation int** subsets(int* nums, int numsSize, int* returnSize, int** returnColumnSizes) { *returnSize = 1 << numsSize; int ** ret = malloc(sizeof(int*) * *returnSize); *returnColumnSizes = malloc(sizeof(int) * *returnSize); for (int i = 0; i < *returnSize; i++) { int temp = i...
27.93
42
(translation_unit) "// C bit manipulation\n\nint** subsets(int* nums, int numsSize, int* returnSize, int** returnColumnSizes)\n{\n *returnSize = 1 << numsSize;\n int ** ret = malloc(sizeof(int*) * *returnSize);\n *returnColumnSizes = malloc(sizeof(int) * *returnSize);\n for (int i = 0; i < *returnSize; i++)...
274
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 27.93, "nodes": 171, "errors": 0, "source_hash": "b65ede6dac48e96739a9ddd3a24e2a1c2d07398cbcf9fdae9234ab3c048fb884", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "...
11,452
c
#ifndef __GAMESOUNDMANAGER_H__ #define __GAMESOUNDMANAGER_H__ #include <gd.h> #include <filesystem> class GameSoundManager : public cocos2d::CCNode { public: cocos2d::CCDictionary* m_pDictionary1; cocos2d::CCDictionary* m_pDictionary2; PAD(12); bool m_bPreloaded; PAD(4); std::string m_sFilePath; }; #endif
19.93
15
(translation_unit) "#ifndef __GAMESOUNDMANAGER_H__\n#define __GAMESOUNDMANAGER_H__\n\n#include <gd.h>\n#include <filesystem>\n\nclass GameSoundManager : public cocos2d::CCNode {\npublic:\n cocos2d::CCDictionary* m_pDictionary1;\n cocos2d::CCDictionary* m_pDictionary2;\n PAD(12);\n bool m_bPreloaded;\n PAD(4);\n std::st...
83
4
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 19.93, "nodes": 49, "errors": 0, "source_hash": "9575a3b828661f53e4cf0598f1aafbbaca56a8d8c544b40d05c4c0ff03cb76a5", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,453
c
/* * This file and its contents are licensed under the Apache License 2.0. * Please see the included NOTICE for copyright information and * LICENSE-APACHE for a copy of the license. */ #include <postgres.h> #include "scan_iterator.h" void ts_scan_iterator_close(ScanIterator *iterator) { ts_scanner_end_scan(&iter...
33.73
26
(translation_unit) "/*\n * This file and its contents are licensed under the Apache License 2.0.\n * Please see the included NOTICE for copyright information and\n * LICENSE-APACHE for a copy of the license.\n */\n#include <postgres.h>\n\n#include "scan_iterator.h"\n\nvoid\nts_scan_iterator_close(ScanIterator *iterator...
190
1
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 33.73, "nodes": 120, "errors": 0, "source_hash": "8245f6340d3219ca6df28d8af93d8202deee1138c490a29cef0fe95da2d1191c", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,454
c
// // IUViewController.h // LdzfPickerView // // Created by yuhui.Mr on 03/03/2022. // Copyright (c) 2022 yuhui.Mr. All rights reserved. // @import UIKit; @interface IUViewController : UIViewController @end
20.1
10
(translation_unit) "//\n// IUViewController.h\n// LdzfPickerView\n//\n// Created by yuhui.Mr on 03/03/2022.\n// Copyright (c) 2022 yuhui.Mr. All rights reserved.\n//\n\n@import UIKit;\n\n@interface IUViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// IUViewController.h" (comment) "// ...
22
5
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.1, "nodes": 10, "errors": 0, "source_hash": "cfaaffb782d3e59a4def97c1a5f17e35dc4fb82fc406a07073eb0734bedd6037", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": null...
11,455
c
// // YHNetProtocol.h // YHNetSDK // // Created by zxl on 2018/2/1. // Copyright © 2018年 YH. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> /// 网络请求代理协议 @protocol YHNetProtocol <NSObject> @optional -(void)netByDP:(id)dataProvider doWhenSuccess:(id) obj; -(void)netByDP:(id)da...
20.68
31
(translation_unit) "//\n// YHNetProtocol.h\n// YHNetSDK\n//\n// Created by zxl on 2018/2/1.\n// Copyright © 2018年 YH. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n\n/// 网络请求代理协议\n\n@protocol YHNetProtocol <NSObject>\n\n@optional\n\n-(void)netByDP:(id)dataProvider doWhenSuc...
149
17
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 20.68, "nodes": 95, "errors": 0, "source_hash": "b9ac61d7b14b147dd068efd0cd59392b48e942d195685c76d47087fca6df082b", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
11,456
c
/* Sky box * by <NAME> * July 3 2011 */ #ifndef skybox_h #ifndef vektor_in_h #define skybox_h #include <core/sdl.h> #include <core/texture.h> #endif // vektor_in_h typedef struct { float x; float y; float z; float h; texture tex; } *skybox; // methods extern skybox add_skybox(float x, float y, float z, flo...
17.9
21
(translation_unit) "/* Sky box\n * by <NAME>\n * July 3 2011 */\n\n#ifndef skybox_h\n\n#ifndef vektor_in_h\n#define skybox_h\n\n#include <core/sdl.h>\n#include <core/texture.h>\n\n#endif // vektor_in_h\n\ntypedef struct\n{\n float x;\n float y;\n float z;\n float h;\n texture tex;\n} *skybox;\n\n// methods\nextern skyb...
101
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 17.9, "nodes": 75, "errors": 0, "source_hash": "64ed85abf4008379beabc9be4c00067cfb694270e36063220d41e9d3ea0e1f1a", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef s...
11,457
c
#ifndef SCENE_LAUNCHER_H_ #define SCENE_LAUNCHER_H_ /* * Copyright (c) 2020 Samsung Electronics Co., 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/lice...
38.66
56
(translation_unit) "#ifndef SCENE_LAUNCHER_H_\n#define SCENE_LAUNCHER_H_\n/*\n * Copyright (c) 2020 Samsung Electronics Co., 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...
384
26
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 38.66, "nodes": 207, "errors": 0, "source_hash": "3020f018611d4ddbcb92b8657048d1316d665a93f3c8453f0e8fe3a99b310af9", "categorized_nodes": 156}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,458
c
/* * Copyright (C) by Argonne National Laboratory * See COPYRIGHT in top-level directory */ #include <mpidimpl.h> #include "mpidu_init_shm.h" #include "mpl_shm.h" #include "mpidimpl.h" #include "mpir_pmi.h" #include "mpidu_shm_seg.h" #ifdef ENABLE_NO_LOCAL /* shared memory disabled, just stubs */ int MPIDU_In...
36.65
234
(translation_unit) "/*\n * Copyright (C) by Argonne National Laboratory\n * See COPYRIGHT in top-level directory\n */\n\n#include <mpidimpl.h>\n#include "mpidu_init_shm.h"\n#include "mpl_shm.h"\n#include "mpidimpl.h"\n#include "mpir_pmi.h"\n#include "mpidu_shm_seg.h"\n\n#ifdef ENABLE_NO_LOCAL\n/* shared memory disa...
1,910
2
{"language": "c", "success": true, "metadata": {"lines": 234, "avg_line_length": 36.65, "nodes": 1112, "errors": 0, "source_hash": "ce57b48735dc5c0fc7532a412a2ec0528feadbcebb72c9e6befdbfae49b370fb", "categorized_nodes": 777}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
11,459
c
/*============================================================================== Program: 3D Slicer Portions (c) Copyright Brigham and Women's Hospital (BWH) All Rights Reserved. See COPYRIGHT.txt or http://www.slicer.org/copyright/copyright.txt for details. Unless required by applicable law or agreed to ...
43.52
50
(translation_unit) "/*==============================================================================\n\n Program: 3D Slicer\n\n Portions (c) Copyright Brigham and Women's Hospital (BWH) All Rights Reserved.\n\n See COPYRIGHT.txt\n or http://www.slicer.org/copyright/copyright.txt for details.\n\n Unless required by...
240
11
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 43.52, "nodes": 136, "errors": 0, "source_hash": "b5f678db5c72d56ba158ec670d8a3cf56f761f1ab6507ee9514b41d2c380b1a0", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
11,460
c
// // HSQueryCriteria.h // HSDataLayer // // Created by hexiaojian on 16/3/31. // Copyright © 2016年 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface HSQueryCriteria : NSObject //where条件 @property (nonatomic, strong) NSString * where; //排序字段 @property (nonatomic, strong) NSString * or...
23.68
22
(translation_unit) "//\n// HSQueryCriteria.h\n// HSDataLayer\n//\n// Created by hexiaojian on 16/3/31.\n// Copyright © 2016年 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface HSQueryCriteria : NSObject\n\n//where条件\n@property (nonatomic, strong) NSString * where;\n\n//排序字段\n@proper...
124
26
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 23.68, "nodes": 84, "errors": 0, "source_hash": "e568d7f98d4def551058db3b3e3be832b83de6818c2d091ad00f097193ea41c4", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
11,461
c
#include "lookup_constant.h" /** * ID for the `:const_defined?` symbol. * * @since 2012-06-14 */ ID gtk3_id_const_defined; /** * ID for the `:const_get` symbol. * * @since 2012-06-14 */ ID gtk3_id_const_get; /** * Looks up a constant in a given class or module. If the given constant exists * then its value...
26.36
55
(translation_unit) "#include "lookup_constant.h"\n\n/**\n * ID for the `:const_defined?` symbol.\n *\n * @since 2012-06-14\n */\nID gtk3_id_const_defined;\n\n/**\n * ID for the `:const_get` symbol.\n *\n * @since 2012-06-14\n */\nID gtk3_id_const_get;\n\n/**\n * Looks up a constant in a given class or module. If the gi...
217
0
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 26.36, "nodes": 124, "errors": 0, "source_hash": "18dbb4f291503e56a2c0132782116ad6da6121f3427b6c9598dfb1d93971826d", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
11,462
c
#pragma once #include <unordered_map> #include <delegate.hpp> #include <random> #include <algorithm> #include "EventToken.h" namespace FoxTail::Events { namespace detail { class Event { public: virtual ~Event() {} }; template<class TDelegate> class EventBase : public Event { public: EventBase<TDel...
26.44
72
(translation_unit) "#pragma once\n\n#include <unordered_map>\n#include <delegate.hpp>\n#include <random>\n#include <algorithm>\n#include "EventToken.h"\n\nnamespace FoxTail::Events {\n namespace detail {\n class Event {\n public:\n virtual ~Event() {}\n };\n\n template<class TDelegate>\n class EventBase : public...
783
45
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 26.44, "nodes": 437, "errors": 0, "source_hash": "04bd23d68d528dc82b565c998a34413dab5b3a79f00a5c917f1b7254d2a3ba25", "categorized_nodes": 282}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
11,463
c
// // SRHitDetector.h // HeadHit // // Created by Rotek on 3/7/13. // Copyright (c) 2013 Rotek. All rights reserved. // #import <Foundation/Foundation.h> #import <CoreMotion/CoreMotion.h> @interface SRMotionDetector : NSObject + (id)sharedInstance; @property (nonatomic,assign) double yaw; @property (nonatomic,st...
22.05
21
(translation_unit) "//\n// SRHitDetector.h\n// HeadHit\n//\n// Created by Rotek on 3/7/13.\n// Copyright (c) 2013 Rotek. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <CoreMotion/CoreMotion.h>\n@interface SRMotionDetector : NSObject\n\n+ (id)sharedInstance;\n\n@property (nonatomic,assign) d...
127
8
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 22.05, "nodes": 76, "errors": 0, "source_hash": "22af9450de0262b265b1d4f1a7562e08b8f75ea3eef00a5c86c1cb8b105674b8", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
11,464
c
// // CNISDKPaylevenHeader.h // conichiSDK // // Created by <NAME> on 11/17/15. // Copyright © 2015 Conichi. All rights reserved. // #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wauto-import" #pragma GCC diagnostic ignored "-Wdocumentation" #pragma GCC diagnostic ignored "-Wnon-modular-include-in-f...
31.71
14
(translation_unit) "//\n// CNISDKPaylevenHeader.h\n// conichiSDK\n//\n// Created by <NAME> on 11/17/15.\n// Copyright © 2015 Conichi. All rights reserved.\n//\n\n#pragma GCC diagnostic push\n#pragma GCC diagnostic ignored "-Wauto-import"\n#pragma GCC diagnostic ignored "-Wdocumentation"\n#pragma GCC diagnostic igno...
29
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 31.71, "nodes": 20, "errors": 0, "source_hash": "8233e723369de50a838c0099f81c0c21a0596db0146b6e537bc0b5d09434a67d", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "pragma GCC...
11,465
c
/** * @brief Declarations about the Ases debugger. * @file debug.h * @author <NAME> <<EMAIL>> * @date 10/2019 * @copyright MIT License */ #ifndef _DEBUG_H #define _DEBUG_H #include "ai/machine.h" void ai_state(ai_machine_t *machine); void ai_context(ai_machine_t *machine, int size); void ai_dump(ai_machine_t *ma...
26.71
14
(translation_unit) "/**\n * @brief Declarations about the Ases debugger.\n * @file debug.h\n * @author <NAME> <<EMAIL>>\n * @date 10/2019\n * @copyright MIT License\n*/\n#ifndef _DEBUG_H\n#define _DEBUG_H\n\n#include "ai/machine.h"\n\nvoid ai_state(ai_machine_t *machine);\nvoid ai_context(ai_machine_t *machine, int siz...
71
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 26.71, "nodes": 53, "errors": 0, "source_hash": "5f6152470a18b0825d0842f5f92661ec02c1c20b81a7f00023d676c33649e850", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,466
c
#pragma once #include <SFML/System/Vector2.hpp> #include <vector> #include "Tilemap.h" typedef unsigned short ushort; using sf::Vector2u; using std::vector; enum class TTheme { blue, green, black, white, yellow, brown, purple, gray }; enum class TState { revealed, hidden, flagge...
17.49
84
(translation_unit) "#pragma once \n \n#include <SFML/System/Vector2.hpp> \n#include <vector> \n#include "Tilemap.h" \n \ntypedef unsigned short ushort; \n \nusing sf::Vector2u; \nusing std::vector; \n \nenum class TTheme { \n blue, \n green, \n black, \n white, \n yellow, \n brown, \n purple, \n gray \n}; \n \nenum cla...
491
18
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 17.49, "nodes": 308, "errors": 0, "source_hash": "d32f470638634bfffc63f5ee85ad1d67461e7f0976f772ce566289639ce52593", "categorized_nodes": 213}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
11,467
c
#ifndef SP_PLAYER_CHARACTER_H #define SP_PLAYER_CHARACTER_H #include "sp_character.h" class CPlayerCharacter : public CSPCharacter { REGISTER_ENTITY_CLASS(CPlayerCharacter, CSPCharacter); public: CPlayerCharacter(); public: virtual void Think(); virtual void MoveThink(); void ToggleFlying();...
27.83
24
(translation_unit) "#ifndef SP_PLAYER_CHARACTER_H\n#define SP_PLAYER_CHARACTER_H\n\n#include "sp_character.h"\n\nclass CPlayerCharacter : public CSPCharacter\n{\n REGISTER_ENTITY_CLASS(CPlayerCharacter, CSPCharacter);\n\npublic:\n CPlayerCharacter();\n\npublic:\n virtual void Think();\n virtual void MoveTh...
176
8
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 27.83, "nodes": 100, "errors": 0, "source_hash": "113b115e49db072a0434836f4dae1b8e20cc7a29eb584ece4ad3e056fe26c44e", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
11,468
c
#ifndef TINYRPC_NET_ABSTRACT_DISPATCHER_H #define TINYRPC_NET_ABSTRACT_DISPATCHER_H #include <memory> #include <google/protobuf/service.h> #include "tinyrpc/net/abstract_data.h" #include "tinyrpc/net/tcp/tcp_connection.h" namespace tinyrpc { class TcpConnection; class AbstractDispatcher { public: typedef std::sh...
26.44
18
(translation_unit) "#ifndef TINYRPC_NET_ABSTRACT_DISPATCHER_H\n#define TINYRPC_NET_ABSTRACT_DISPATCHER_H\n\n#include <memory>\n#include <google/protobuf/service.h>\n#include "tinyrpc/net/abstract_data.h"\n#include "tinyrpc/net/tcp/tcp_connection.h"\n\nnamespace tinyrpc {\n\nclass TcpConnection;\n\nclass AbstractDispatc...
107
3
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 26.44, "nodes": 67, "errors": 0, "source_hash": "80a97c70c9f5f004e4189201dec183e639d291dbbc7490483f3ce2677c39646e", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,469
c
#pragma once namespace qif191 { namespace t { class CManufacturingMethodEnumType : public TypeBase { public: QIF191_EXPORT CManufacturingMethodEnumType(xercesc::DOMNode* const& init); QIF191_EXPORT CManufacturingMethodEnumType(CManufacturingMethodEnumType const& init); void operator=(CManufacturingMethodEnumTy...
29.9
40
(translation_unit) "#pragma once\n\n\n\nnamespace qif191\n{\n\nnamespace t\n{ \n\nclass CManufacturingMethodEnumType : public TypeBase\n{\npublic:\n QIF191_EXPORT CManufacturingMethodEnumType(xercesc::DOMNode* const& init);\n QIF191_EXPORT CManufacturingMethodEnumType(CManufacturingMethodEnumType const& init);\n void o...
310
13
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 29.9, "nodes": 177, "errors": 0, "source_hash": "75373b17460b3500962f4987349d29c91503a791d5f8c1e59c62e20cd5e82884", "categorized_nodes": 123}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
11,470
c
#define MAX_TAGS 10 #define MAX_ATTRIB 30 typedef struct sgml_label_struct{ TEXT *name; int attrib_num; TEXT *attrib_name[MAX_ATTRIB]; TEXT *attrib_value[MAX_ATTRIB]; } SGML_LABEL; typedef struct sgml_tags{ int num_tags; SGML_LABEL tags[MAX_TAGS]; } SGML; void init_SGML(SGML *sg); void dump_...
27.82
17
(translation_unit) "#define MAX_TAGS 10\n#define MAX_ATTRIB 30\n\ntypedef struct sgml_label_struct{\n TEXT *name;\n int attrib_num;\n TEXT *attrib_name[MAX_ATTRIB];\n TEXT *attrib_value[MAX_ATTRIB];\n} SGML_LABEL;\n\ntypedef struct sgml_tags{\n int num_tags;\n SGML_LABEL tags[MAX_TAGS];\n} SGML;\n\nvo...
172
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 27.82, "nodes": 130, "errors": 0, "source_hash": "3542a61ab1987ffbc63eda5c9b73ea3b33705345ccc830ecb0c075dc48cb6558", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define M...
11,471
c
/** ****************************************************************************** * @file stm32u575i_eval_sram.h * @author MCD Application Team * @brief This file contains the common defines and functions prototypes for * the stm32u575i_eval_sram.c driver. ***********************************...
31.01
105
(translation_unit) "/**\n ******************************************************************************\n * @file stm32u575i_eval_sram.h\n * @author MCD Application Team\n * @brief This file contains the common defines and functions prototypes for\n * the stm32u575i_eval_sram.c driver.\n *********...
232
0
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 31.01, "nodes": 157, "errors": 0, "source_hash": "5be0aa571b43ed6d442c5da5c5a4866908846dd9a04e5d84d6a077e4f96e0085", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,472
c
// // AWConfigManager.h // Awesome // // Created by qm on 2017/11/14. // Copyright © 2017年 zgy. All rights reserved. // #import <Foundation/Foundation.h> #import "Singleton.h" @interface AWConfigManager : NSObject singleton_interface(AWConfigManager); @property (nonatomic, copy) NSString *baseURL; @property (...
22.8
15
(translation_unit) "//\n// AWConfigManager.h\n// Awesome\n//\n// Created by qm on 2017/11/14.\n// Copyright © 2017年 zgy. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "Singleton.h"\n\n@interface AWConfigManager : NSObject\nsingleton_interface(AWConfigManager);\n\n\n@property (nonatomic, c...
71
9
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 22.8, "nodes": 45, "errors": 0, "source_hash": "75480db05499e50711f4db19650bb1c53299ae096ba9ad1a6bf6bb777cb79e77", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Foun...
11,473
c
// ---------------------------------------------------------------------------- // Copyright 2016-2017 ARM 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.ap...
33.58
53
(translation_unit) "// ----------------------------------------------------------------------------\n// Copyright 2016-2017 ARM 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\...
98
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 33.58, "nodes": 54, "errors": 0, "source_hash": "2a88caf5328d7b7f87bc8ba45d04cd296c7b2c79cf05ceec0c8566251ce01827", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,474
c
/* * multi_threaded_framegrab_handler.h * * Created on: Dec 6, 2018 * Author: ttw2xk */ #ifndef INCLUDE_IMAGE_LOGGING_COMMON_MULTI_THREADED_FRAMEGRAB_HANDLER_H_ #define INCLUDE_IMAGE_LOGGING_COMMON_MULTI_THREADED_FRAMEGRAB_HANDLER_H_ #include "f1_datalogger/image_logging/framegrab_handler.h" #include <tbb/c...
32.87
61
(translation_unit) "/*\n * multi_threaded_framegrab_handler.h\n *\n * Created on: Dec 6, 2018\n * Author: ttw2xk\n */\n\n#ifndef INCLUDE_IMAGE_LOGGING_COMMON_MULTI_THREADED_FRAMEGRAB_HANDLER_H_\n#define INCLUDE_IMAGE_LOGGING_COMMON_MULTI_THREADED_FRAMEGRAB_HANDLER_H_\n#include "f1_datalogger/image_logging/framegr...
420
22
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 32.87, "nodes": 251, "errors": 0, "source_hash": "d0704f0f72b9a9769b37a08dce4be09e3ed2b0b2189602bcd9f0d3df2a5e34fe", "categorized_nodes": 174}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,475
c
#include "precomp.h" // Paging #pragma alloc_text (PAGE, XXX_CardPowerDown) #pragma alloc_text (PAGE, XXX_CardPowerUp) #pragma alloc_text (PAGE, XXX_PortQueryPowerDown) #pragma alloc_text (PAGE, XXX_PortPowerDown) #pragma alloc_text (PAGE, XXX_PortPowerUp) // End paging ////////////////////////////////////...
26.23
98
(translation_unit) "#include "precomp.h" \n \n// Paging \n#pragma alloc_text (PAGE, XXX_CardPowerDown) \n#pragma alloc_text (PAGE, XXX_CardPowerUp) \n#pragma alloc_text (PAGE, XXX_PortQueryPowerDown) \n#pragma alloc_text (PAGE, XXX_PortPowerDown) \n#pragma alloc_text (PAGE, XXX_PortPowerUp) \n// End paging \n \n//////...
299
5
{"language": "c", "success": true, "metadata": {"lines": 98, "avg_line_length": 26.23, "nodes": 168, "errors": 0, "source_hash": "a58d1f487c5ec8bd9e987c85c5acf5e06dc8a4093914eed6618dbab17aa6e1cc", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,476
c
/* The MIT License Copyright (c) 2015-2016 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish...
40.72
87
(translation_unit) "/*\nThe MIT License\n\nCopyright (c) 2015-2016 <NAME>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use, ...
686
38
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 40.72, "nodes": 403, "errors": 0, "source_hash": "d4723627c947b47e0bf9709f864a7b472b8eabd2fa67dccaf870610824851a44", "categorized_nodes": 258}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,477
c
/* { dg-require-effective-target int32plus } */ typedef long unsigned int size_t; extern void *memset (void *__s, int __c, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); static void encode (words, low, hi) long *words; unsigned long low; long hi; { words[0] = ((low) & ((...
23.35
103
(translation_unit) "/* { dg-require-effective-target int32plus } */\n\ntypedef long unsigned int size_t;\nextern void *memset (void *__s, int __c, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));\n\nstatic void\nencode (words, low, hi)\n long *words;\n unsigned long low;\n long h...
1,157
0
{"language": "c", "success": true, "metadata": {"lines": 103, "avg_line_length": 23.35, "nodes": 745, "errors": 0, "source_hash": "569b2eab7cfa785fd5ab6e0f69edc0282e890ad4559f4badf54a91c3c1fa41de", "categorized_nodes": 508}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "typ...
11,478
c
/** * @file peripheral.h * @author <NAME> (<EMAIL>) * @brief A 'include all header' of functions related to BLE peripherals * @version 0.1 * @date 2022-02-15 * * @copyright Apache License (c) 2022 * */ #pragma once #include "advertisement.h" #include "application.h" #include "characteristic.h" #include "decla...
20.94
16
(translation_unit) "/**\n * @file peripheral.h\n * @author <NAME> (<EMAIL>)\n * @brief A 'include all header' of functions related to BLE peripherals\n * @version 0.1\n * @date 2022-02-15\n *\n * @copyright Apache License (c) 2022\n *\n */\n#pragma once\n\n#include "advertisement.h"\n#include "application.h"\n#include ...
35
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 20.94, "nodes": 18, "errors": 0, "source_hash": "425cae60fe1541472266c7fa02fc82546c5e6279f2d42a2e075ab0dae9786fdd", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
11,479
c
/* * TestBinOperators.h * * Created on: Mar 30, 2019 * Author: ballance */ #pragma once #include "ccrt/ccrt.h" #include "gtest/gtest.h" using namespace ccrt; class TestBinOperators : public ::testing::Test { public: TestBinOperators(); virtual ~TestBinOperators(); };
17.73
15
(translation_unit) "/*\n * TestBinOperators.h\n *\n * Created on: Mar 30, 2019\n * Author: ballance\n */\n#pragma once\n#include "ccrt/ccrt.h"\n#include "gtest/gtest.h"\n\nusing namespace ccrt;\n\nclass TestBinOperators : public ::testing::Test {\npublic:\n TestBinOperators();\n virtual ~TestBinOperators();\n};\n...
60
3
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 17.73, "nodes": 30, "errors": 0, "source_hash": "6c3cc6206c1bd79d2d8eb23c94d9b3829cbe54f18566f0677763913832dd6e9d", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
11,480
c
/************************************************************************/ /* */ /* Access Dallas 1-Wire Device with ATMEL AVRs */ /* */ /* Auth...
42.33
18
(translation_unit) "/************************************************************************/\n/* */\n/* Access Dallas 1-Wire Device with ATMEL AVRs */\n/* ...
38
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 42.33, "nodes": 23, "errors": 0, "source_hash": "f9e20fd4f38713c3222481551873c0bc3ee93a7c80981909c73432afe8f7a209", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,481
c
/* * * mem.c * * Created at: Sat 16 Nov 15:15:08 2013 15:15:08 * * Author: <NAME> <<EMAIL>> * * License: please visit the LICENSE file for details. * */ #include <stdio.h> #include <stdlib.h> #include "config.h" #include "debug.h" #include "mem.h" /* see how many mallocs/callocs/reallocs/frees there wer...
23.71
99
(translation_unit) "/*\n *\n * mem.c\n *\n * Created at: Sat 16 Nov 15:15:08 2013 15:15:08\n *\n * Author: <NAME> <<EMAIL>>\n *\n * License: please visit the LICENSE file for details.\n *\n */\n\n#include <stdio.h>\n#include <stdlib.h>\n\n#include "config.h"\n#include "debug.h"\n#include "mem.h"\n\n/* see how many m...
695
0
{"language": "c", "success": true, "metadata": {"lines": 99, "avg_line_length": 23.71, "nodes": 390, "errors": 0, "source_hash": "22af6b0e39266b860f0730dfff10fe415c3a07a13c6ddc94365f43688f5eff07", "categorized_nodes": 253}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,482
c
/*****************************************************************************\ ** ** ** FILE: bbsd.h ** ** AUTHORS: Alexios ** **...
31.78
153
(translation_unit) "/*****************************************************************************\\n ** **\n ** FILE: bbsd.h **\n ** AUTHORS: Alexios ...
412
0
{"language": "c", "success": true, "metadata": {"lines": 153, "avg_line_length": 31.78, "nodes": 303, "errors": 0, "source_hash": "37f6ac867446f52e12aaebd9606092049e08e204b8cacde11ac68462a727a256", "categorized_nodes": 162}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
11,483
c
#ifndef _SBF_TPORT_PRIVATE_H_ #define _SBF_TPORT_PRIVATE_H_ #include "sbfBatchPrivate.h" #include "sbfHandler.h" #include "sbfKeyValue.h" #include "sbfMwPrivate.h" #include "sbfProperties.h" #include "sbfPubPrivate.h" #include "sbfSubPrivate.h" #include "sbfTopicPrivate.h" SBF_BEGIN_DECLS struct sbfTportStreamImpl; ...
36.04
195
(translation_unit) "#ifndef _SBF_TPORT_PRIVATE_H_\n#define _SBF_TPORT_PRIVATE_H_\n\n#include "sbfBatchPrivate.h"\n#include "sbfHandler.h"\n#include "sbfKeyValue.h"\n#include "sbfMwPrivate.h"\n#include "sbfProperties.h"\n#include "sbfPubPrivate.h"\n#include "sbfSubPrivate.h"\n#include "sbfTopicPrivate.h"\n\nSBF_BEGIN_DE...
1,352
13
{"language": "c", "success": true, "metadata": {"lines": 195, "avg_line_length": 36.04, "nodes": 827, "errors": 0, "source_hash": "e2bafd40d83dfd5fb39b355d109bff0134688ac16c5ca2e5cd1bacc1ab9b5633", "categorized_nodes": 677}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
11,484
c
#pragma once typedef struct { unsigned short size; unsigned long long offset; } __attribute__((packed)) GDTR; typedef struct { unsigned short limit0; unsigned short base0; unsigned char base1; unsigned char access; unsigned char flags; unsigned char base2; } __attribute__((packed)) Seg...
25.46
48
(translation_unit) "#pragma once\n\ntypedef struct {\n unsigned short size;\n unsigned long long offset;\n} __attribute__((packed)) GDTR;\n\ntypedef struct {\n unsigned short limit0;\n unsigned short base0;\n unsigned char base1;\n unsigned char access;\n unsigned char flags;\n unsigned char bas...
351
2
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 25.46, "nodes": 250, "errors": 0, "source_hash": "b69395bd6bea63e4aec4d31d1c71b373914274f62c6eee64486a312c1346a245", "categorized_nodes": 156}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
11,485
c
/* * Copyright LWJGL. All rights reserved. * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ #include "common_tools.h" #include "opengles.h" typedef void (APIENTRY *glMinSampleShadingOESPROC) (jfloat); EXTERN_C_ENTER JNIEXPORT void JNICALL Java_org_lwjgl_opengles_OESSampleSh...
36.73
15
(translation_unit) "/*\n * Copyright LWJGL. All rights reserved.\n * License terms: https://www.lwjgl.org/license\n * MACHINE GENERATED FILE, DO NOT EDIT\n */\n#include "common_tools.h"\n#include "opengles.h"\n\ntypedef void (APIENTRY *glMinSampleShadingOESPROC) (jfloat);\n\nEXTERN_C_ENTER\n\nJNIEXPORT void JNICALL Jav...
96
2
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 36.73, "nodes": 63, "errors": 0, "source_hash": "875a96a9d3633928141e3eedb3f99f354da8b60901ece3b92a038edf8e7c890d", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
11,486
c
#include<stdio.h> void main() { int i, j, x=0; for(i = 0;i < 5; i++) for(j = i;j > 0;j--) x = i+j+1; printf("x=%d\n",x); }
10.33
12
(translation_unit) "#include<stdio.h>\n\nvoid main()\n{\n int i, j, x=0;\n for(i = 0;i < 5; i++)\n \n for(j = i;j > 0;j--)\n \n x = i+j+1;\n\n\n printf("x=%d\n",x);\n}\n" (preproc_include) "#include<stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (function_definition) "void main()\n{\n ...
85
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 10.33, "nodes": 56, "errors": 0, "source_hash": "e152bdba1444f818b33f1455e55a0374313670126a7e18d96fa9c2bec12f4884", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
11,487
c
// SPDX-License-Identifier: GPL-2.0+ /* * Cisco Meraki MX100 (Tinkerbell) board platform driver * * Based off of arch/x86/platform/meraki/tink.c from the * Meraki GPL release meraki-firmware-sources-r23-20150601 * * Format inspired by platform/x86/pcengines-apuv2.c * * Copyright (C) 2021 <NAME> <<EMAIL>> */ ...
25.77
205
(translation_unit) "// SPDX-License-Identifier: GPL-2.0+\n\n/*\n * Cisco Meraki MX100 (Tinkerbell) board platform driver\n *\n * Based off of arch/x86/platform/meraki/tink.c from the\n * Meraki GPL release meraki-firmware-sources-r23-20150601\n *\n * Format inspired by platform/x86/pcengines-apuv2.c\n *\n * Copyright (...
1,296
4
{"language": "c", "success": true, "metadata": {"lines": 205, "avg_line_length": 25.77, "nodes": 700, "errors": 0, "source_hash": "66b0e8204a7c9ec763836431d0bd7866de308bb3577a2e110e795c3e6b66fb90", "categorized_nodes": 457}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_function_def", "text":...
11,488
c
/* (c) copyright 1988 by the Vrije Universiteit, Amsterdam, The Netherlands. See the copyright notice in the ACK home directory, in the file "Copyright". */ /* Module: cap; implementation of CAP Author: <NAME> Version: $Id$ */ #include "libm2.h" void cap(unsigned int u) { register unsigned* p = &u; if (*...
21.56
16
(translation_unit) "/*\n (c) copyright 1988 by the Vrije Universiteit, Amsterdam, The Netherlands.\n See the copyright notice in the ACK home directory, in the file "Copyright".\n*/\n\n/*\n Module: cap; implementation of CAP\n Author: <NAME>\n Version: $Id$\n*/\n#include "libm2.h"\n\nvoid cap(unsigned int u)\n{\n ...
80
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 21.56, "nodes": 62, "errors": 0, "source_hash": "cc3d4d5fd5b8e22fe1f83d9ed6ffa67cb9826ff3ad3936bfbff85da454d57b19", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
11,489
c
/* THIS FILE IS AUTOGENERATED - DO NOT EDIT */ #pragma once #define P3MOLTRES_REVISION "git commit 93086d5 on 2021-01-22" #define P3MOLTRES_VERSION "93086d5"
38.5
4
(translation_unit) "/* THIS FILE IS AUTOGENERATED - DO NOT EDIT */\n\n#pragma once\n\n#define P3MOLTRES_REVISION "git commit 93086d5 on 2021-01-22"\n#define P3MOLTRES_VERSION "93086d5"\n" (comment) "/* THIS FILE IS AUTOGENERATED - DO NOT EDIT */" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" ...
13
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 38.5, "nodes": 11, "errors": 0, "source_hash": "2bc34f38b292c3224c4b8db8a5e4734dc127e3d4948823f7df76394ad27d33df", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once...
11,490
c
#pragma once #include <ionCore.h> #include <ionScene.h> #include <ionScience.h> class COxygenColorMapper : public IColorMapper { public: std::string Field; COxygenColorMapper(std::string const & field = "o1") : Field(field) {} virtual SColorAf const GetColor(IDataRecord<f64> const & d) ...
21.23
62
(translation_unit) "#pragma once \n \n#include <ionCore.h> \n#include <ionScene.h> \n#include <ionScience.h> \n \n \nclass COxygenColorMapper : public IColorMapper \n{ \n \npublic: \n \n std::string Field; \n \n COxygenColorMapper(std::string const & field = "o1") \n : Field(field) \n {} \n \n virtual SColorAf const G...
584
7
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 21.23, "nodes": 362, "errors": 0, "source_hash": "1becc8f4e07080e0af3dd84203ae8ceb5215321737edba1e30dbbc0b1442ce5f", "categorized_nodes": 260}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
11,491
c
// // SaiMyAzeroModeControl.h // AzeroDemo // // Created by silk on 2020/7/28. // Copyright © 2020 soundai. All rights reserved. // #import "AzeroModeControl.h" NS_ASSUME_NONNULL_BEGIN @interface SaiMyAzeroModeControl : AzeroModeControl @end NS_ASSUME_NONNULL_END
21.33
12
(translation_unit) "//\n// SaiMyAzeroModeControl.h\n// AzeroDemo\n//\n// Created by silk on 2020/7/28.\n// Copyright © 2020 soundai. All rights reserved.\n//\n\n#import "AzeroModeControl.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface SaiMyAzeroModeControl : AzeroModeControl\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comme...
27
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 21.33, "nodes": 14, "errors": 0, "source_hash": "3ec59175aa43df55f097884c52bb4bceef3c79e95ce98fbd1f8b26f3f66f2801", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"A...
11,492
c
#import <UIKit/UIKit.h> #import "BTUI.h" @interface BTUIThemedView : UIView @property (nonatomic, strong) BTUI *theme; @end
23.8
5
(translation_unit) "#import <UIKit/UIKit.h>\n#import "BTUI.h"\n\n@interface BTUIThemedView : UIView\n@property (nonatomic, strong) BTUI *theme;\n@end\n" (preproc_call) "#import <UIKit/UIKit.h>\n" (preproc_directive) "#import" (preproc_arg) "<UIKit/UIKit.h>" (preproc_call) "#import "BTUI.h"\n" (preproc_d...
32
6
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 23.8, "nodes": 25, "errors": 0, "source_hash": "9794dcaf9655e7687d6666ddbfc3cc6a2a82a9532298f70496516e9392866085", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UI...
11,493
c
#include <windows.h> void gotoxy( int x, int y ){ COORD p = { x, y }; SetConsoleCursorPosition( GetStdHandle( STD_OUTPUT_HANDLE ), p ); }
25.33
6
(translation_unit) "#include <windows.h> \n \n void gotoxy( int x, int y ){ \n COORD p = { x, y }; \n SetConsoleCursorPosition( GetStdHandle( STD_OUTPUT_HANDLE ), p ); \n } \n" (preproc_include) "#include <windows.h> \n" (#include) "#include" (system_lib_string) "<windows.h>" (function_definition)...
48
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 25.33, "nodes": 30, "errors": 0, "source_hash": "080ecb9030410a4ede666a615611d6a994f7c3f72ff35ef84671b06d51bf2e3c", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
11,494
c
#ifndef NEXTGEN_WEB_H #define NEXTGEN_WEB_H #include "nextgen/common.h" #include "nextgen/network.h" namespace nextgen { namespace web { class url { }; class agent_provider { }; class proxy_provider { }; class crawler ...
13.29
24
(translation_unit) "#ifndef NEXTGEN_WEB_H\n#define NEXTGEN_WEB_H\n\n#include "nextgen/common.h"\n#include "nextgen/network.h"\n\nnamespace nextgen\n{\n namespace web\n {\n class url\n {\n\n };\n\n class agent_provider\n {\n\n };\n\n class proxy_provider\n {\...
64
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 13.29, "nodes": 27, "errors": 0, "source_hash": "9040c1b8a1e8cc6cc72f8de01f8ecff9ca4980d5db73a7142e8668b9a23b55ed", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,495
c
/**************************************************************************** * arch/sim/src/up_head.c * * Copyright (C) 2007-2009, 2011-2013, 2016 <NAME>. All rights reserved. * Author: <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are permitted prov...
36.44
140
(translation_unit) "/****************************************************************************\n * arch/sim/src/up_head.c\n *\n * Copyright (C) 2007-2009, 2011-2013, 2016 <NAME>. All rights reserved.\n * Author: <NAME> <<EMAIL>>\n *\n * Redistribution and use in source and binary forms, with or without\n * modif...
312
0
{"language": "c", "success": true, "metadata": {"lines": 140, "avg_line_length": 36.44, "nodes": 187, "errors": 0, "source_hash": "65dd02cd308fb9bc96564e78d5d368b03557963f3ec4c57c0cfa589dea186c77", "categorized_nodes": 139}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
11,496
c
#include "compat_zend_string.h" #include "Zend/zend.h" #include "Zend/zend_API.h" #include "Zend/zend_types.h" #include "php_version.h" #if PHP_VERSION_ID < 70000 void ddtrace_downcase_zval(zval *src) { if (!src || Z_TYPE_P(src) != IS_STRING) { return; } zend_str_tolower(Z_STRVAL_P(src), Z_STRLEN_...
24.64
22
(translation_unit) "#include "compat_zend_string.h"\n#include "Zend/zend.h"\n#include "Zend/zend_API.h"\n#include "Zend/zend_types.h"\n#include "php_version.h"\n\n#if PHP_VERSION_ID < 70000\nvoid ddtrace_downcase_zval(zval *src) {\n if (!src || Z_TYPE_P(src) != IS_STRING) {\n return;\n }\n\n zend_str_to...
178
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 24.64, "nodes": 109, "errors": 0, "source_hash": "7955c9cf009e36a75bda40f709c8002d9873621354d7f4a82dfcb25fdc0f870d", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
11,497
c
/* BSD 3-Clause License * * Copyright © 2008-2020, Jice and the libtcod contributors. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the ...
29.68
167
(translation_unit) "/* BSD 3-Clause License\n *\n * Copyright © 2008-2020, Jice and the libtcod contributors.\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of ...
416
9
{"language": "c", "success": true, "metadata": {"lines": 167, "avg_line_length": 29.68, "nodes": 258, "errors": 0, "source_hash": "986415f9146de50b5cb5ae8d42f8cb6505a3a707c0b6469108938ba3d3ea600a", "categorized_nodes": 184}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "ifndef LIBTCO...
11,498
c
#ifndef CONSTANTS_INCLUDED #define CONSTANTS_INCLUDED 1 #define HOST_REG "evnHostReg" #define HOST_DE_REG "evnHostDereg" #define HOST_UPDATE_REG "evnHostUpdateReg" #define HEARTBEAT "evnHeartbeat" #define INITIALIZE "evnInitialize" #define FOUNDATION_REFUND_50 "evnFoundationRefund" #define HOST_POST_DEREG "evnHostPost...
37.46
72
(translation_unit) "#ifndef CONSTANTS_INCLUDED\n#define CONSTANTS_INCLUDED 1\n\n#define HOST_REG "evnHostReg"\n#define HOST_DE_REG "evnHostDereg"\n#define HOST_UPDATE_REG "evnHostUpdateReg"\n#define HEARTBEAT "evnHeartbeat"\n#define INITIALIZE "evnInitialize"\n#define FOUNDATION_REFUND_50 "evnFoundationRefund"\n#define...
499
0
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 37.46, "nodes": 356, "errors": 0, "source_hash": "241db66fc0c321c84a917d84d2f3d8dddcec26b43c683ed9d374abc14c3e3cae", "categorized_nodes": 156}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,499