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
// // ElectrodePluginConfig.h // ElectrodeContainer // // Created by <NAME> on 5/1/18. // Copyright © 2018 Walmart. All rights reserved. // @protocol RCTBridgeDelegate; #pragma mark - ElectrodePluginConfigurator /** Used as configuration for the start up of the ElectrodeReactNative system. Build a class that adh...
34.07
28
(translation_unit) "//\n// ElectrodePluginConfig.h\n// ElectrodeContainer\n//\n// Created by <NAME> on 5/1/18.\n// Copyright © 2018 Walmart. All rights reserved.\n//\n@protocol RCTBridgeDelegate;\n\n#pragma mark - ElectrodePluginConfigurator\n/**\n Used as configuration for the start up of the ElectrodeReactNative ...
145
22
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 34.07, "nodes": 94, "errors": 0, "source_hash": "ed6ec58498357d738a1b1de9e39a3e177996562a04e3eb9179b648c8db730d46", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "p", "parent": nu...
78,300
c
/* * Copyright 2017 NXP * All rights reserved. * * * SPDX-License-Identifier: BSD-3-Clause */ #include "fsl_debug_console.h" #include "fsl_device_registers.h" #include "fsl_spi.h" #include "fsl_spi_dma.h" #include "fsl_dma.h" #include "pin_mux.h" #include "board.h" #include <stdbool.h> /************************...
35.84
167
(translation_unit) "/*\n * Copyright 2017 NXP\n * All rights reserved.\n *\n *\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n#include "fsl_debug_console.h"\n#include "fsl_device_registers.h"\n#include "fsl_spi.h"\n#include "fsl_spi_dma.h"\n#include "fsl_dma.h"\n#include "pin_mux.h"\n#include "board.h"\n#include <s...
999
0
{"language": "c", "success": true, "metadata": {"lines": 167, "avg_line_length": 35.84, "nodes": 561, "errors": 0, "source_hash": "6fa0d287de844c658fbab7689414954417fc24fda7527e36ed142128a7657155", "categorized_nodes": 370}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,301
c
// // LKChainRequest.h // LKNetwork // // Created by mac on 2020/12/7. // #import "LKRequest.h" NS_ASSUME_NONNULL_BEGIN @interface LKChainRequest : LKRequest @end NS_ASSUME_NONNULL_END
16.09
11
(translation_unit) "//\n// LKChainRequest.h\n// LKNetwork\n//\n// Created by mac on 2020/12/7.\n//\n\n#import "LKRequest.h"\nNS_ASSUME_NONNULL_BEGIN\n\n@interface LKChainRequest : LKRequest\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" (comment) "// LKChainRequest.h" (comment) "// LKNetwork" (comment)...
26
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 16.09, "nodes": 15, "errors": 0, "source_hash": "aa01db28a96c6e300d08e9ca7f76490af6c2a78ee14fb0ef746c90e3ea3d922e", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
78,302
c
// // LOTFillRenderer.h // Lottie // // Created by brandon_withrow on 6/27/17. // Copyright © 2017 Airbnb. All rights reserved. // #pragma once #include "LOTRenderNode.h" #include "LOTShapeFill.h" class LOTColorInterpolator; class LOTNumberInterpolator; class LOTFillRenderer : public LOTRenderNode { public: ...
32.79
29
(translation_unit) "//\n// LOTFillRenderer.h\n// Lottie\n//\n// Created by brandon_withrow on 6/27/17.\n// Copyright © 2017 Airbnb. All rights reserved.\n//\n\n#pragma once\n\n#include "LOTRenderNode.h"\n#include "LOTShapeFill.h"\n\nclass LOTColorInterpolator;\nclass LOTNumberInterpolator;\n\nclass LOTFillRenderer ...
163
5
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 32.79, "nodes": 105, "errors": 0, "source_hash": "38832ca1f33ee5ffacc6029530b13de10e45d37d40132d826c85674926ec8ff6", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "pragma o...
78,303
c
#include "declaration.h" #include "file_handler.h" int record_size(table *temp){ int size=0; temp->prefix[0]=0; for(int i=0;i<temp->count;i++){ switch(temp->col[i].type){ case INT: temp->prefix[i+1]=sizeof(int)+temp->prefix[i]; size+=sizeof(int); break; case VARCHAR: temp->prefix[i+1]=sizeof(char)...
27.82
146
(translation_unit) "#include "declaration.h"\n#include "file_handler.h"\n\nint record_size(table *temp){\n int size=0;\n temp->prefix[0]=0;\n for(int i=0;i<temp->count;i++){\n switch(temp->col[i].type){\n case INT:\n temp->prefix[i+1]=sizeof(int)+temp->prefix[i];\n size+=sizeof(int);\n break;\n case VARCHAR:\n...
1,435
3
{"language": "c", "success": true, "metadata": {"lines": 146, "avg_line_length": 27.82, "nodes": 809, "errors": 0, "source_hash": "f74a99b0ca205343e01f9f19f2c97959b483c48754a035dd0fdb2c5e0f631e8a", "categorized_nodes": 556}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,304
c
#include <pthread.h> #include <string.h> #include "test.h" #define TEST(r, f, m) ( \ ((r) = (f)) == 0 || (t_error("%s failed: %s (" m ")\n", #f, strerror(r)), 0) ) static void *start_signal(void *arg) { void **args = arg; pthread_mutex_lock(args[1]); pthread_cond_signal(args[0]); pthread_mutex_unlock(args[1]); ...
34.21
89
(translation_unit) "#include <pthread.h>\n#include <string.h>\n#include "test.h"\n\n#define TEST(r, f, m) ( \\n ((r) = (f)) == 0 || (t_error("%s failed: %s (" m ")\n", #f, strerror(r)), 0) )\n\n\nstatic void *start_signal(void *arg)\n{\n void **args = arg;\n pthread_mutex_lock(args[1]);\n pthread_cond_signal(args[0]);\...
1,501
0
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 34.21, "nodes": 777, "errors": 0, "source_hash": "ff927892b30330e90560d5625b46b475bde13c49709a9a4a153bb4e53f49c0b9", "categorized_nodes": 571}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,305
c
#pragma once #include "ConvexHull.h" struct Piece; class SquareTypes { public: static ConvexHull GetSquare(Piece& TargetPiece, const sf::Vector2f& Pos, const sf::Vector2f& Size); };
21.88
8
(translation_unit) "#pragma once\n#include "ConvexHull.h"\nstruct Piece;\nclass SquareTypes\n{\npublic:\n static ConvexHull GetSquare(Piece& TargetPiece, const sf::Vector2f& Pos, const sf::Vector2f& Size);\n};" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_inclu...
62
3
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 21.88, "nodes": 30, "errors": 0, "source_hash": "c5f228724e8637139a11ddfef296a6484d31a2046caa932330e72eca5c39f877", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
78,306
c
// // IMSTagFrame.h // IMSForm // // Created by cjf on 8/1/2021. // #import <IMSForm/IMSFormObject.h> NS_ASSUME_NONNULL_BEGIN @interface IMSTagFrame : IMSFormObject /** 标签frame数组 */ @property (nonatomic, strong,readonly) NSMutableArray *tagsFrames; /** 全部标签的高度 */ @property (nonatomic, assign,readonly) CGFloat ta...
32.34
35
(translation_unit) "//\n// IMSTagFrame.h\n// IMSForm\n//\n// Created by cjf on 8/1/2021.\n//\n\n#import <IMSForm/IMSFormObject.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface IMSTagFrame : IMSFormObject\n\n/** 标签frame数组 */\n@property (nonatomic, strong,readonly) NSMutableArray *tagsFrames;\n/** 全部标签的高度 */\n@property (no...
223
28
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 32.34, "nodes": 137, "errors": 0, "source_hash": "676ac461e5f927dcaab3e591031d7028d8eb094ad951a5fdcabcbab7ac110299", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
78,307
c
// // DDGHTTPRequestManager.h // DuckDuckGo // // Created by <NAME> on 29/05/2014. // // #import <Foundation/Foundation.h> #import "AFNetworking.h" @interface DDGHTTPRequestManager : NSObject + (void)performRequest:(NSURLRequest *)request operationQueue:(NSOperationQueue *)operationQueue callback...
39
19
(translation_unit) "//\n// DDGHTTPRequestManager.h\n// DuckDuckGo\n//\n// Created by <NAME> on 29/05/2014.\n//\n//\n\n#import <Foundation/Foundation.h>\n#import "AFNetworking.h"\n\n@interface DDGHTTPRequestManager : NSObject\n\n+ (void)performRequest:(NSURLRequest *)request\n operationQueue:(NSOperationQueue ...
146
10
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 39.0, "nodes": 90, "errors": 0, "source_hash": "230f65b0e1ef0a829d7032006b5c34b0cb4c031f877a71ea1f0718ca32333c52", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
78,308
c
// // Created by valdemar on 04.12.16. // #pragma once #include "Vec2D.h" #include "model/LivingUnit.h" class MyLivingUnit { public: enum Type { TOWER, TREE, MINION, WIZARD, TYPES_COUNT, }; MyLivingUnit(MyLivingUnit::Type type, const model::LivingUnit &unit); ...
22.22
36
(translation_unit) "//\n// Created by valdemar on 04.12.16.\n//\n\n#pragma once\n\n#include "Vec2D.h"\n#include "model/LivingUnit.h"\n\nclass MyLivingUnit {\npublic:\n\n enum Type {\n TOWER,\n TREE,\n MINION,\n WIZARD,\n TYPES_COUNT,\n };\n\n MyLivingUnit(MyLivingUnit::Type t...
233
12
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 22.22, "nodes": 132, "errors": 0, "source_hash": "5efd8669ad07b3182ee7ec693bf0adf274e719e4be24e3624299335f3da627b4", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
78,309
c
#define MAX_MINE 8 //12x12rle char cell[] = {0x6,0x99,0x82,0x96,0x4,0x66,0x83,0x69,0x96,0x4,0x66,0x83,0x69,0x96,0x4,0x66,0x83,0x69,0x96,0x4,0x66,0x83,0x69,0x96,0x4,0x66,0x83,0x69,0x96,0x4,0x66,0x83,0x69,0x96,0x4,0x66,0x83,0x69,0x96,0x4,0x66,0x83,0x69,0x96,0x4,0x66,0x83,0x69,0x9b,0x4,0xbb,0x82,0xb9,0x6,0x99}; char freec...
28.4
167
(translation_unit) "#define MAX_MINE 8\n//12x12rle\nchar cell[] = {0x6,0x99,0x82,0x96,0x4,0x66,0x83,0x69,0x96,0x4,0x66,0x83,0x69,0x96,0x4,0x66,0x83,0x69,0x96,0x4,0x66,0x83,0x69,0x96,0x4,0x66,0x83,0x69,0x96,0x4,0x66,0x83,0x69,0x96,0x4,0x66,0x83,0x69,0x96,0x4,0x66,0x83,0x69,0x96,0x4,0x66,0x83,0x69,0x9b,0x4,0xbb,0x82,0xb9...
2,428
0
{"language": "c", "success": true, "metadata": {"lines": 167, "avg_line_length": 28.4, "nodes": 1436, "errors": 0, "source_hash": "20485dd3cdf4f0cfaff4143842d68d180d23cad5016522ecd81dc458b562a233", "categorized_nodes": 1139}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#defin...
78,310
c
#ifndef __RRC_HELPER_FUNCS__ #define __RRC_HELPER_FUNCS__ //// Includes //// #include <Arduino.h> #include <adxl357.h> #include <gps.h> #include <ms5611.h> #include <SD.h> #include "rrc_encoder/src/rrc_encoder.h" //// Defines //// #define RFD_BAUD 57600 #define RFD_SERIAL Serial2 #define GPS_SER...
23.11
145
(translation_unit) "#ifndef __RRC_HELPER_FUNCS__\n#define __RRC_HELPER_FUNCS__\n\n\n//// Includes ////\n#include <Arduino.h>\n#include <adxl357.h>\n#include <gps.h>\n#include <ms5611.h>\n#include <SD.h>\n#include "rrc_encoder/src/rrc_encoder.h"\n\n\n//// Defines ////\n#define RFD_BAUD 57600\n#define RF...
912
6
{"language": "c", "success": true, "metadata": {"lines": 145, "avg_line_length": 23.11, "nodes": 518, "errors": 0, "source_hash": "ca4ba491e965c49da9390a158dc3d7749ffb4808d74b714b0d8861f51ee88fcc", "categorized_nodes": 360}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,311
c
#ifndef TSP_SUBOPTIMAL_CONSTANTS_H #define TSP_SUBOPTIMAL_CONSTANTS_H #include <fstream> #include <limits> const double INF = std::numeric_limits<double>::max(); #endif // TSP_SUBOPTIMAL_CONSTANTS_H
32.17
6
(translation_unit) "#ifndef TSP_SUBOPTIMAL_CONSTANTS_H\n#define TSP_SUBOPTIMAL_CONSTANTS_H\n\n#include <fstream>\n#include <limits>\n\nconst double INF = std::numeric_limits<double>::max();\n#endif // TSP_SUBOPTIMAL_CONSTANTS_H\n" (preproc_ifdef) "#ifndef TSP_SUBOPTIMAL_CONSTANTS_H\n#define TSP_SUBOPTIMAL_CONSTANTS_H...
41
2
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 32.17, "nodes": 29, "errors": 0, "source_hash": "b12820b3681aada16a2e925f282300a4d6c929e9a0d2c3278e06645ef347f697", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef T...
78,312
c
/* * * "skeyed" definitions header for * * Version 0.0 * */ #ifndef NULL #define NULL 0 #endif
9.2
10
(translation_unit) "/*\n *\n * "skeyed" definitions header for\n * \n * Version 0.0\n *\n */\n\n#ifndef NULL\n#define NULL 0\n#endif\n" (comment) "/*\n *\n * "skeyed" definitions header for\n * \n * Version 0.0\n *\n */" (preproc_ifdef) "#ifndef NULL\n#define NULL 0\n#endif" (#ifndef) "#ifndef" (identifier)...
10
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 9.2, "nodes": 8, "errors": 0, "source_hash": "b570e0a8b5bdb7ea4a5ea766fc6c3d1f171d9a9c06e5e1c6ea553a4f8a959059", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef NULL...
78,313
c
#include<stdio.h> int main() { int h,l; scanf("%d%d",&h,&l); printf("%d %d\n",l-1,h-1); return 0; }
12.89
9
(translation_unit) "#include<stdio.h> \nint main() \n{ \n int h,l; \n scanf("%d%d",&h,&l); \n printf("%d %d\n",l-1,h-1); \n \n return 0; \n} \n \n" (preproc_include) "#include<stdio.h> \n" (#include) "#include" (system_lib_string) "<stdio.h>" (function_definition) "int main() \n{ \n int h,l; ...
65
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 12.89, "nodes": 35, "errors": 0, "source_hash": "a29e9851cb986aae2c4051d58f179667e481b82ed9dd2ecea8a45343b9bf25b0", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
78,314
c
// // AppDelegate.h // SPUploadDemo // // Created by SPSuper on 2017/12/25. // Copyright © 2017年 SPSuper. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
21.75
12
(translation_unit) "//\n// AppDelegate.h\n// SPUploadDemo\n//\n// Created by SPSuper on 2017/12/25.\n// Copyright © 2017年 SPSuper. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface AppDelegate : UIResponder <UIApplicationDelegate>\n\n@property (strong, nonatomic) UIWindow *window;\n\n\n@end\n\n" (...
39
6
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 21.75, "nodes": 26, "errors": 0, "source_hash": "e9da6ffec741c92877fc5ea693d4e106640d628294210d249b680ee837b9c10d", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
78,315
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "harness.h" #include "queue.h" /* * Create empty queue. * Return NULL if could not allocate space. */ queue_t *q_new() { queue_t *q = malloc(sizeof(queue_t)); if (!q) { return NULL; } /* if malloc returned NULL */ q->head =...
24.73
263
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#include "harness.h"\n#include "queue.h"\n\n/*\n * Create empty queue.\n * Return NULL if could not allocate space.\n */\nqueue_t *q_new()\n{\n queue_t *q = malloc(sizeof(queue_t));\n if (!q) {\n return NULL;\n } /* if m...
1,443
0
{"language": "c", "success": true, "metadata": {"lines": 263, "avg_line_length": 24.73, "nodes": 886, "errors": 0, "source_hash": "8fd3a52055a9eacde5ff76307d2f3a9049ef122086546609c19f0dd4e13e7cd4", "categorized_nodes": 641}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,316
c
#include "../Trigger.h" #include <pthread.h> //#define exePath "/home/paul/mysql-5.1.44/sql/mysqld" DEFINE_TRIGGER( AfterUnlockTrigger ) { public: struct UnlockInfo { char file[256]; int line; }; public: AfterUnlockTrigger(); void Init(xmlNodePtr initData); bool Eval(const string* functionName,...
20.84
19
(translation_unit) "#include "../Trigger.h"\n#include <pthread.h>\n\n//#define exePath "/home/paul/mysql-5.1.44/sql/mysqld"\n\nDEFINE_TRIGGER( AfterUnlockTrigger )\n{\npublic:\n struct UnlockInfo {\n char file[256];\n int line;\n };\n\npublic:\n AfterUnlockTrigger();\n void Init(xmlNodePtr initData);\n bo...
108
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 20.84, "nodes": 62, "errors": 0, "source_hash": "c0b11deece2008ed33f8b99a43e889e6decd7b9ff1050eb1f41753b1f73a45f7", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
78,317
c
/* * Copyright (c) 1983, 1993 * The Regents of the University of California. All rights reserved. * * %sccs.include.redist.c% */ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)getproto.c 8.1 (Berkeley) 06/04/93"; #endif /* LIBC_SCCS and not lint */ #include <netdb.h> extern int _proto_sta...
22.71
24
(translation_unit) "/*\n * Copyright (c) 1983, 1993\n * The Regents of the University of California. All rights reserved.\n *\n * %sccs.include.redist.c%\n */\n\n#if defined(LIBC_SCCS) && !defined(lint)\nstatic char sccsid[] = "@(#)getproto.c 8.1 (Berkeley) 06/04/93";\n#endif /* LIBC_SCCS and not lint */\n\n#include <...
133
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 22.71, "nodes": 85, "errors": 0, "source_hash": "b590bb460ba947f438542f104845ae8d69a84ad89ba7c24b4bb3966e24bdae85", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if defined...
78,318
c
/** * \file main.c * \brief 14. Argumentos del main - Ejemplo 5 - Uso de getopt() (2) * \author <NAME> * \date May 16, 2019 * \details Usar makefile para compilar, linkear y ejecutar */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> void print_usage(v...
32.53
66
(translation_unit) "/**\n * \file main.c\n * \brief 14. Argumentos del main - Ejemplo 5 - Uso de getopt() (2)\n * \author <NAME>\n * \date May 16, 2019\n * \details Usar makefile para compilar, linkear y ejecutar\n */\n\n#include <stdio.h>\n#include <stdlib.h>\n#include ...
469
0
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 32.53, "nodes": 255, "errors": 0, "source_hash": "5f915f5d5927b126db289d635e91f54149e928cf55ee78cb139b314fa8edef35", "categorized_nodes": 169}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,319
c
#pragma once enum type { RED, BLACK }; struct Node { int data; struct Node* left; struct Node* right; struct Node* parent; enum type color; }; void levelorder(struct Node* root); void preorder(struct Node* root); struct Node* RB_delete(struct Node *T, struct Node* z); struct Node* RB_insert(struct Node* T, int dat...
24
15
(translation_unit) "#pragma once\nenum type { RED, BLACK };\nstruct Node\n{\n int data;\n struct Node* left;\n struct Node* right;\n struct Node* parent;\n enum type color;\n};\nvoid levelorder(struct Node* root);\nvoid preorder(struct Node* root);\nstruct Node* RB_delete(struct Node *T, struct Node* z);\nstruct Node* ...
160
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 24.0, "nodes": 128, "errors": 0, "source_hash": "8b9976c62bf3b57da5a7b97ccf7c510265e5a0ed9509b0090aea084c2f01ace3", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
78,320
c
#ifndef COMMANDBLOCK #define COMMANDBLOCK #include <string> #include <queue> #include <sstream> #include <vector> #include "Command.h" using namespace std; class CommandBlock { private: vector<CommandBlock*> c; bool prev_succ; protected: string r; string con; bool iscom; pu...
15.84
32
(translation_unit) "#ifndef COMMANDBLOCK\n#define COMMANDBLOCK\n\n#include <string>\n#include <queue>\n#include <sstream>\n#include <vector>\n\n#include "Command.h"\n\nusing namespace std;\n\nclass CommandBlock\n{\n private:\n vector<CommandBlock*> c;\n bool prev_succ;\n \n protected:\n string r;\n ...
160
2
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 15.84, "nodes": 105, "errors": 0, "source_hash": "3a5fbaf97df4dbb4497f4096c07c1ad56b06be7a356f5231824dc945563b46e5", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,321
c
#pragma once #include <cstdint> #include <string> #include "Type.h" #include <vector> #include "Expression.h" class CVariable : public CExpression { private: int32_t m_address; std::string m_name; ArgType m_concreteType; // always present ScriptType m_scriptType; // must be inferred for local variables bool m_is...
25.28
25
(translation_unit) "#pragma once\n\n#include <cstdint>\n#include <string>\n#include "Type.h"\n#include <vector>\n#include "Expression.h"\n\nclass CVariable : public CExpression\n{\nprivate:\n int32_t m_address;\n std::string m_name;\n ArgType m_concreteType; // always present\n ScriptType m_scriptType; // must be infer...
191
13
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 25.28, "nodes": 108, "errors": 0, "source_hash": "2f9fa927a6cc70b7bd9697b423699ee0e9142de255af9a28a38031869ae4aa52", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
78,322
c
#pragma once #include <Windows.h> #include <iostream> #include <stdint.h> #include <psapi.h> #include <stdio.h> #include <intrin.h> #include <sys/types.h> #include <sys/stat.h> #include <vector> #include <codecvt> namespace NPath { const static std::wstring kwstHookPath = L"C:\\Windows\\obs-studio-hook\\"; const st...
27.7
174
(translation_unit) "#pragma once\n\n#include <Windows.h>\n#include <iostream>\n#include <stdint.h>\n#include <psapi.h>\n#include <stdio.h>\n#include <intrin.h>\n#include <sys/types.h>\n#include <sys/stat.h>\n#include <vector>\n#include <codecvt>\n\nnamespace NPath\n{\n const static std::wstring kwstHookPath = L"C:\\Win...
1,529
15
{"language": "c", "success": true, "metadata": {"lines": 174, "avg_line_length": 27.7, "nodes": 938, "errors": 0, "source_hash": "4eafe66f6e17323979aa31b5200bcc5a01f0728a7fc69c7338cb5c62d14aa67d", "categorized_nodes": 619}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
78,323
c
/************************************************ enumerator.c - provides Enumerator class $Author: shyouhei $ Copyright (C) 2001-2003 <NAME> $Idaemons: /home/cvs/rb/enumerator/enumerator.c,v 1.1.1.1 2001/07/15 10:12:48 knu Exp $ $RoughId: enumerator.c,v 1.6 2003/07/27 11:03:24 nobu Exp $ $Id: enumerato...
25.22
254
(translation_unit) "/************************************************\n\n enumerator.c - provides Enumerator class\n\n $Author: shyouhei $\n\n Copyright (C) 2001-2003 <NAME>\n\n $Idaemons: /home/cvs/rb/enumerator/enumerator.c,v 1.1.1.1 2001/07/15 10:12:48 knu Exp $\n $RoughId: enumerator.c,v 1.6 2003/07/27 11:03:2...
1,328
1
{"language": "c", "success": true, "metadata": {"lines": 254, "avg_line_length": 25.22, "nodes": 721, "errors": 0, "source_hash": "1643f8045789f259d72cd45637cc92c70a885797c2d7bed17ba33520038512df", "categorized_nodes": 582}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,324
c
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ABI_CSKY_STRING_H #define __ABI_CSKY_STRING_H #define __HAVE_ARCH_MEMCMP extern int memcmp(const void *, const void *, __kernel_size_t); #define __HAVE_ARCH_MEMCPY extern void *memcpy(void *, const void *, __kernel_size_t); #define __HAVE_ARCH_MEMMOVE extern void *me...
37.33
18
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0 */\n\n#ifndef __ABI_CSKY_STRING_H\n#define __ABI_CSKY_STRING_H\n\n#define __HAVE_ARCH_MEMCMP\nextern int memcmp(const void *, const void *, __kernel_size_t);\n\n#define __HAVE_ARCH_MEMCPY\nextern void *memcpy(void *, const void *, __kernel_size_t);\n\n#define __HA...
193
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 37.33, "nodes": 143, "errors": 0, "source_hash": "a481260a07bd4fdb562167ff5ff2a963873bdbe19e0a16ac95ae1b929249da3f", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,325
c
#pragma once #include "Queue.h" #include "DoublyLinkedList.h" class LinkedQueue : public Queue { public: LinkedQueue() { } LinkedQueue(const LinkedQueue& other) { this->_data = other._data; } ~LinkedQueue() { } void operator=(const LinkedQueue& other) { this->_data = other._data; } virtual b...
13.17
52
(translation_unit) "#pragma once\n#include "Queue.h"\n#include "DoublyLinkedList.h"\n\nclass LinkedQueue : public Queue\n{\npublic:\n LinkedQueue()\n {\n \n }\n\n LinkedQueue(const LinkedQueue& other)\n {\n this->_data = other._data;\n }\n\n ~LinkedQueue()\n {\n \n }\n\n void operator=(const LinkedQueue& other)\n {\...
298
9
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 13.17, "nodes": 165, "errors": 0, "source_hash": "67be2038eedfd18daaff9e7c473de8e4b558930c8a1d9c8e3ec08eb79b71fb88", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
78,326
c
/* Unix SMB/CIFS implementation. Username handling Copyright (C) <NAME> 1992-1998 Copyright (C) <NAME> 1997-2001. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either versi...
34.29
188
(translation_unit) "/* \n Unix SMB/CIFS implementation.\n Username handling\n Copyright (C) <NAME> 1992-1998\n Copyright (C) <NAME> 1997-2001.\n \n This program is free software; you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Softw...
1,188
0
{"language": "c", "success": true, "metadata": {"lines": 188, "avg_line_length": 34.29, "nodes": 731, "errors": 0, "source_hash": "a79ff3697cdf9cfbbdfb8337b9b03ba0b0eae11e46f556b2214b4894a5419ea8", "categorized_nodes": 481}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,327
c
#import "SCUserService.h" #import "SCTracksService.h" #import "SCProfileService.h" #import "SCHTTPService.h" #import <Foundation/Foundation.h> @protocol SCServicesProvider <NSObject> @property (nonatomic, readonly) id <SCHTTPService> httpService; @property (nonatomic, readonly) id <SCUserService> userService; @proper...
40.27
11
(translation_unit) "#import "SCUserService.h"\n#import "SCTracksService.h"\n#import "SCProfileService.h"\n#import "SCHTTPService.h"\n#import <Foundation/Foundation.h>\n\n@protocol SCServicesProvider <NSObject>\n\n@property (nonatomic, readonly) id <SCHTTPService> httpService;\n@property (nonatomic, readonly) id <SCUser...
101
19
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 40.27, "nodes": 83, "errors": 0, "source_hash": "09798a3d2303232daaff5761f4af1c86615626bf670a7dd80c04ae160543a4af", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
78,328
c
#pragma once #include <cstdint> enum class WeaponType : uint8_t { MELEE, RIFLE, LAUNCHER, BOMB, }; struct Weapon { uint32_t itemId = 0; uint16_t damage = 0; uint16_t clipSize = 0; uint8_t clipCount = 0; uint8_t weight = 99; uint8_t effectId = 0; uint8_t effectChance = 0; uint8_t effectDuration = 0; // in...
16.76
21
(translation_unit) "#pragma once\n\n#include <cstdint>\n\nenum class WeaponType : uint8_t\n{\n MELEE,\n RIFLE,\n LAUNCHER,\n BOMB,\n};\n\nstruct Weapon\n{\n uint32_t itemId = 0;\n uint16_t damage = 0;\n uint16_t clipSize = 0;\n uint8_t clipCount = 0;\n uint8_t weight = 99;\n uint8_t effectId = 0;\n uint8_t effectChance...
108
11
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 16.76, "nodes": 79, "errors": 0, "source_hash": "84908a2fbdb979c612100908988e617c032987f054e7d619bbb205a7643c4e56", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
78,329
c
// // Created by escoz on 1/7/12. // #import <Foundation/Foundation.h> @interface JsonDataSampleController : QuickDialogController { } @end
16.75
8
(translation_unit) "//\n// Created by escoz on 1/7/12.\n//\n\n#import <Foundation/Foundation.h>\n\n\n@interface JsonDataSampleController : QuickDialogController {\n\n}\n\n@end" (comment) "//" (comment) "// Created by escoz on 1/7/12." (comment) "//" (preproc_call) "#import <Foundation/Foundation.h>\n" (pr...
23
5
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 16.75, "nodes": 12, "errors": 0, "source_hash": "64ac223532df3535dcdb943a9b8552d3b8a3ffc15eed717d2a3478251fa3c346", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Fo...
78,330
c
#include "valid_parentheses.h" #include <stdlib.h> #include <string.h> bool isValid_20_1(char *s) { char *stack = (char *) malloc(strlen(s)); int top = -1; for (; *s; ++s) { switch (*s) { case '(': case '{': case '[': stack[++top] = *s; ...
25.08
38
(translation_unit) "#include "valid_parentheses.h"\n\n#include <stdlib.h>\n#include <string.h>\n\nbool isValid_20_1(char *s) {\n char *stack = (char *) malloc(strlen(s));\n int top = -1;\n for (; *s; ++s) {\n switch (*s) {\n case '(':\n case '{':\n case '[':\n ...
293
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 25.08, "nodes": 190, "errors": 0, "source_hash": "796dba1a5dfae0d4f96468d1c89a7280b13d4f3d515a2c6d0da974ae3488599c", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,331
c
/* * Linking module for programs that do not support selection of backend * (such as pterm). */ #include <stdio.h> #include "putty.h" const int be_default_protocol = -1; const struct BackendVtable *const backends[] = { NULL }; const size_t n_ui_backends = 0;
17.93
15
(translation_unit) "/* \n * Linking module for programs that do not support selection of backend \n * (such as pterm). \n */ \n \n#include <stdio.h> \n#include "putty.h" \n \nconst int be_default_protocol = -1; \n \nconst struct BackendVtable *const backends[] = { \n NULL \n}; \n \nconst size_t n_ui_backends = 0; \n...
51
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 17.93, "nodes": 31, "errors": 0, "source_hash": "c95ece1f283e812618fd3b8181f58acb6b0c08ad6e2ef7fe0fcc9c45cbf6ce24", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
78,332
c
/** * @file arch.h * @author <NAME> <<EMAIL>> * */ #ifndef _ARCH_H_ #define _ARCH_H_ #include "arch_defines.h" #include "hwfunctions.h" #include "atomic.h" #endif
13
12
(translation_unit) "/**\n * @file arch.h\n * @author <NAME> <<EMAIL>>\n *\n */\n\n#ifndef _ARCH_H_\n#define _ARCH_H_\n\n#include "arch_defines.h"\n#include "hwfunctions.h"\n#include "atomic.h"\n\n\n#endif\n" (comment) "/**\n * @file arch.h\n * @author <NAME> <<EMAIL>>\n *\n */" (preproc_ifdef) "#ifndef _ARCH_H_\n#d...
27
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 13.0, "nodes": 16, "errors": 0, "source_hash": "c043f5d57dffa3cd0563768f3c6ca0563680def5d7c54d2f055208d407fdf57d", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
78,333
c
/* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class jsrl_sys_Keyboard */ #ifndef _Included_jsrl_sys_Keyboard #define _Included_jsrl_sys_Keyboard #ifdef __cplusplus extern "C" { #endif /* * Class: jsrl_sys_Keyboard * Method: start * Signature: ()V */ JNIEXPORT void JNIC...
22.82
40
(translation_unit) "/* DO NOT EDIT THIS FILE - it is machine generated */\n#include <jni.h>\n/* Header for class jsrl_sys_Keyboard */\n\n#ifndef _Included_jsrl_sys_Keyboard\n#define _Included_jsrl_sys_Keyboard\n#ifdef __cplusplus\nextern "C" {\n#endif\n/*\n * Class: jsrl_sys_Keyboard\n * Method: start\n * Signat...
125
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 22.82, "nodes": 88, "errors": 0, "source_hash": "e6a93b54eb134db6805a27687ee7e89964d35b7ec96c9c3ec11d9e3176d62056", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
78,334
c
/* AirWatch iOS Software Development Kit Copyright © 2012 AirWatch. All rights reserved. Unless required by applicable law, this Software Development Kit and sample code is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. AirWatch expressly disclaims any an...
38.7
20
(translation_unit) "/*\n AirWatch iOS Software Development Kit\n Copyright © 2012 AirWatch. All rights reserved.\n \n Unless required by applicable law, this Software Development Kit and sample code is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n KIND, either express or implied. AirWatch e...
42
7
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 38.7, "nodes": 25, "errors": 0, "source_hash": "838b022737f4ea70af68f66b5625a26b7dfb5673cc79146d74076c06a40e6dc8", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <AWSD...
78,335
c
// Copyright (c) 2019 Google LLC // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, di...
35.21
62
(translation_unit) "// Copyright (c) 2019 Google LLC\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the "Software"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, m...
266
11
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 35.21, "nodes": 141, "errors": 0, "source_hash": "62a17c53f721e9186f2b469c53b92946ade36daecb5e471f5f00cfca720a604b", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,336
c
#include <u.h> #include <libc.h> #include <draw.h> #include <memdraw.h> #include "xmem.h" /* perfect approximation to NTSC = .299r+.587g+.114b when 0 ≤ r,g,b < 256 */ #define RGB2K(r,g,b) ((156763*(r)+307758*(g)+59769*(b))>>19) Memimage* xallocmemimage(Rectangle r, ulong chan, int pmid) { Memimage *m; Xmem *xm; XI...
20.3
184
(translation_unit) "#include <u.h>\n#include <libc.h>\n#include <draw.h>\n#include <memdraw.h>\n#include "xmem.h"\n\n/* perfect approximation to NTSC = .299r+.587g+.114b when 0 ≤ r,g,b < 256 */\n#define RGB2K(r,g,b) ((156763*(r)+307758*(g)+59769*(b))>>19)\n\nMemimage*\nxallocmemimage(Rectangle r, ulong chan, int pmid)\...
1,808
0
{"language": "c", "success": true, "metadata": {"lines": 184, "avg_line_length": 20.3, "nodes": 1108, "errors": 0, "source_hash": "44612938992b79cc386dd2fbe1652332e9b865c15c87f02e7082c2a46cd8f609", "categorized_nodes": 851}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,337
c
// // NSString_+RadioExtensions.h // Radio // // Created by <NAME> on 04/11/2012. // Copyright (c) 2012 Het is Simpel. All rights reserved. // @interface NSString (RadioExtensions) - (BOOL)containsString:(NSString *)string options:(NSStringCompareOptions)options; @end
23.91
11
(translation_unit) "//\n// NSString_+RadioExtensions.h\n// Radio\n//\n// Created by <NAME> on 04/11/2012.\n// Copyright (c) 2012 Het is Simpel. All rights reserved.\n//\n\n\n@interface NSString (RadioExtensions)\n\n- (BOOL)containsString:(NSString *)string options:(NSStringCompareOptions)options;\n\n@end" (commen...
45
6
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 23.91, "nodes": 24, "errors": 0, "source_hash": "e27eff0904991e0187312a5e1891e2becc5e4b68c52dc53246da5d24c8bbcdf2", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface NSStr...
78,338
c
// Copyright 2017 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #pragma once #include <hwreg/bitfields.h> #include "registers-pipe.h" namespace registers { static constexpr uint32_t kTransCount = 4; enum Trans { TRA...
38.01
138
(translation_unit) "// Copyright 2017 The Fuchsia Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#pragma once\n\n#include <hwreg/bitfields.h>\n#include "registers-pipe.h"\n\nnamespace registers {\n\nstatic constexpr uint32_t kTr...
1,456
42
{"language": "c", "success": true, "metadata": {"lines": 138, "avg_line_length": 38.01, "nodes": 848, "errors": 0, "source_hash": "961ee677c489209cba18876e6de17a787c4774d98020119c47f8c851f635cf2d", "categorized_nodes": 556}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
78,339
c
#include <stdio.h> #include <stdlib.h> int fib(int n); int main(int argc, char* argv[]) { // validate if (argc != 2) { printf("usage: ./fibonacci n\n"); return 1; // return a non-zero number to indicate an error } // get the command-line arg char* argument = argv[1]; int n = atoi(argument); ...
16.93
30
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\nint fib(int n);\n\nint main(int argc, char* argv[])\n{\n // validate\n if (argc != 2) \n {\n printf("usage: ./fibonacci n\n");\n return 1; // return a non-zero number to indicate an error\n }\n \n // get the command-line arg\n char* argument = ...
148
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 16.93, "nodes": 88, "errors": 0, "source_hash": "f0e07b5414853f9c75e081bf8e397f7fe805ad58a37ea8f68b6e45c32853cb13", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
78,340
c
/* **============================================================================== ** ** Copyright (c) Microsoft Corporation. All rights reserved. See file LICENSE ** for license information. ** **============================================================================== */ /* @migen@ */ #ifndef _OMI_Tester_Class...
29.54
71
(translation_unit) "/*\n**==============================================================================\n**\n** Copyright (c) Microsoft Corporation. All rights reserved. See file LICENSE\n** for license information.\n**\n**==============================================================================\n*/\n\n/* @migen@...
334
24
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 29.54, "nodes": 171, "errors": 0, "source_hash": "73825e25653c0bf93fa7341750acd6db45ad0678f4d4672876e5b2f6fc5aa4fa", "categorized_nodes": 138}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,341
c
#ifndef ProduceDropBoxMetadata_H #define ProduceDropBoxMetadata_H /** \class ProduceDropBoxMetadata * No description available. * * $Date: 2011/02/22 11:05:16 $ * $Revision: 1.1 $ * \author <NAME> - CERN */ #include "FWCore/Framework/interface/EDAnalyzer.h" #include "FWCore/ParameterSet/interface/ParameterSe...
27.22
32
(translation_unit) "#ifndef ProduceDropBoxMetadata_H\n#define ProduceDropBoxMetadata_H\n\n/** \class ProduceDropBoxMetadata\n * No description available.\n *\n * $Date: 2011/02/22 11:05:16 $\n * $Revision: 1.1 $\n * \author <NAME> - CERN\n */\n#include "FWCore/Framework/interface/EDAnalyzer.h"\n#include "FWCore/Par...
199
15
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 27.22, "nodes": 106, "errors": 0, "source_hash": "5816206c98d818dd25e0d9d4105730e6975185d22186d5379695ff305e2af603", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,342
c
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_SUGGESTIONS_IMAGE_ENCODER_H_ #define COMPONENTS_SUGGESTIONS_IMAGE_ENCODER_H_ #include <stddef.h> #include <vector> class SkBitmap; n...
42.67
21
(translation_unit) "// Copyright 2014 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef COMPONENTS_SUGGESTIONS_IMAGE_ENCODER_H_\n#define COMPONENTS_SUGGESTIONS_IMAGE_ENCODER_H_\n\n#include <stddef.h>\n#include ...
138
5
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 42.67, "nodes": 86, "errors": 0, "source_hash": "16827f9ec9e8f99decb6b0bb7ac715fdd2e665c55be224bcb7b0bd3104527730", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,343
c
#pragma once #include "otutils.h" namespace utils { class HTTPServer { public: explicit HTTPServer( std::shared_ptr<spdlog::logger> logger ) : mLogger( logger ) {} spdlog::logger & logger() const { return *mLogger.get(); } void setGroup( const std::string & group ) { mGroup = group; } virtual void get...
32.75
63
(translation_unit) "#pragma once\n\n#include "otutils.h"\n\nnamespace utils {\n\nclass HTTPServer\n{\npublic:\n explicit HTTPServer( std::shared_ptr<spdlog::logger> logger ) : mLogger( logger ) {}\n\n spdlog::logger & logger() const\n {\n return *mLogger.get();\n }\n\n void setGroup( const std::string & group )\n {\n ...
763
50
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 32.75, "nodes": 398, "errors": 0, "source_hash": "799086dc4e729823f15c065131a07c30d2a58121ce2beb195512c03a88c9579a", "categorized_nodes": 274}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
78,344
c
// // DepartmentRespository.h // hrm // // Created by on 4/14/16. // Copyright © 2016 Tuan_Quang. All rights reserved. // #import <Foundation/Foundation.h> #import "DepartmentDTO.h" @interface DepartmentRespository : NSObject - (NSMutableArray *)getAllDepartment; - (void)addDepartment: (DepartmentDTO *) departm...
24.15
13
(translation_unit) "//\n// DepartmentRespository.h\n// hrm\n//\n// Created by on 4/14/16.\n// Copyright © 2016 Tuan_Quang. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "DepartmentDTO.h"\n\n@interface DepartmentRespository : NSObject\n\n- (NSMutableArray *)getAllDepartment;\n- (void)addDep...
53
6
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 24.15, "nodes": 29, "errors": 0, "source_hash": "b0b0a41340afe7ea39e5a8e55bc935c570e66a8ca960877895285dcd65556340", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
78,345
c
// // DistDownloadViewController.h // DistDownload #import <UIKit/UIKit.h> @interface DistDownloadViewController : UIViewController @end
22.17
6
(translation_unit) "//\n// DistDownloadViewController.h\n// DistDownload\n\n#import <UIKit/UIKit.h>\n\n@interface DistDownloadViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// DistDownloadViewController.h" (comment) "// DistDownload" (preproc_call) "#import <UIKit/UIKit.h>\n" (pr...
15
3
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 22.17, "nodes": 9, "errors": 0, "source_hash": "b3e4362f73c73bd20de30500f35eac96a86a18aaf6c458e1b26a88bb484266b8", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UIK...
78,346
c
/* @type PanTilt @description Generate servo commands for a pan/tilt head to track a target (e.g. for camera or antenna trackers) @guide >>> <<< @config >>> PanTilt.new 21 name "PanTilt" PID (f) 0.005 0.0 0.0001 interval 50 $target [@>20.8] $heading [@>6.11] .publish "target" .publish "heading" .publ...
31.11
61
(translation_unit) "/*\n@type PanTilt\n@description Generate servo commands for a pan/tilt head to track a target (e.g. for camera or antenna trackers)\n\n@guide >>>\n\n<<<\n\n@config >>>\nPanTilt.new 21\n name "PanTilt"\n PID (f) 0.005 0.0 0.0001\n interval 50\n $target [@>20.8]\n $heading [@>6.11]\n .publish "t...
237
6
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 31.11, "nodes": 166, "errors": 0, "source_hash": "25a2ea8af919c102832eb45ede02f9687937fb145f85c0d93d91c6058cc80557", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,347
c
// // NNBackgroundImageTransition.h // NNNavigationBar // // Created by GuHaijun on 2018/4/20. // Copyright © 2018年 GuHaijun. All rights reserved. // #import <UIKit/UIKit.h> #import "UINavigationBar+NNCoreProperties.h" @interface NNBackgroundImageTransition : NSObject <NNNTransition> - (instancetype)initWithNavi...
37.69
16
(translation_unit) "//\n// NNBackgroundImageTransition.h\n// NNNavigationBar\n//\n// Created by GuHaijun on 2018/4/20.\n// Copyright © 2018年 GuHaijun. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "UINavigationBar+NNCoreProperties.h"\n\n@interface NNBackgroundImageTransition : NSObject <NNNTransition...
119
16
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 37.69, "nodes": 79, "errors": 0, "source_hash": "c708d3adfa50f0fb62a4020a9e50d03635146687913c6d137f08a60dbcad9dfe", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
78,348
c
// // MQCircleLayout.h // MQPhotoLayoutDemo // // Created by qiuming on 16/1/10. // Copyright © 2016年 qiuming. All rights reserved. // 环形排列 #import <UIKit/UIKit.h> @interface MQCircleLayout : UICollectionViewLayout @end
21.5
10
(translation_unit) "//\n// MQCircleLayout.h\n// MQPhotoLayoutDemo\n//\n// Created by qiuming on 16/1/10.\n// Copyright © 2016年 qiuming. All rights reserved.\n// 环形排列\n\n#import <UIKit/UIKit.h>\n\n@interface MQCircleLayout : UICollectionViewLayout\n\n@end\n" (comment) "//" (comment) "// MQCircleLayout.h" (co...
22
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.5, "nodes": 12, "errors": 0, "source_hash": "35550538c54595efecfe1c7d2132e2c49aae614712b4844de696e9877696b3a8", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Kit/UIKit.h...
78,349
c
// // Created by HongjieFu on 2018/7/14. // #ifndef PODS_XESSYSTEMEVENTDISPATCHER_H #define PODS_XESSYSTEMEVENTDISPATCHER_H #import "XESDefine.h" XESCENE_NAMESPACE_BEGIN class SystemEventHandler { public: virtual void onStart() = 0; virtual void onResume() = 0; virtual void onPau...
26.5
28
(translation_unit) "//\n// Created by HongjieFu on 2018/7/14.\n//\n\n#ifndef PODS_XESSYSTEMEVENTDISPATCHER_H\n#define PODS_XESSYSTEMEVENTDISPATCHER_H\n\n#import "XESDefine.h"\n\nXESCENE_NAMESPACE_BEGIN\n\n class SystemEventHandler {\n\n public:\n\n virtual void onStart() = 0;\n\n virtual void onResu...
167
5
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 26.5, "nodes": 106, "errors": 0, "source_hash": "16ab914daa54d51e3ff518dc53a016e2ce31d104dd85cd960ba9066093d1fde7", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,350
c
// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (c) 2013 Google, Inc */ #include "linux/crc8.h" #define POLY (0x1070U << 3) static unsigned char _crc8(unsigned short data) { int i; for (i = 0; i < 8; i++) { if (data & 0x8000) data = data ^ POLY; data = data << 1; } return (unsigned char)(data >> 8...
19.91
23
(translation_unit) "// SPDX-License-Identifier: GPL-2.0+\n/*\n * Copyright (c) 2013 Google, Inc\n */\n\n#include "linux/crc8.h"\n\n#define POLY (0x1070U << 3)\n\nstatic unsigned char _crc8(unsigned short data)\n{\n int i;\n\n for (i = 0; i < 8; i++) {\n if (data & 0x8000)\n data = data ^ POLY;\n data = data << 1;\n...
180
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 19.91, "nodes": 119, "errors": 0, "source_hash": "8a0081f1f463a33a13e389dd3137f8dcc96972179be885d8ca77621749a4a41e", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
78,351
c
/* #include <stdio.h> #include <signal.h> #include <stdlib.h> #include <unistd.h> int main(int argc, char* argv[]){ if(argc != 2){ printf("ERROR en los parametros del programa.\n"); return -1; } printf("Pid del proceso: %d.\n", getpid()); int sleep_i = atoi(argv[1]); printf("Se va a dormir el proceso dur...
24.66
68
(translation_unit) "/*\n#include <stdio.h>\n#include <signal.h>\n#include <stdlib.h>\n#include <unistd.h>\n\n\nint main(int argc, char* argv[]){\n\n if(argc != 2){\n printf("ERROR en los parametros del programa.\n");\n return -1;\n }\n printf("Pid del proceso: %d.\n", getpid());\n\n\n int sleep_i = atoi(argv[1]);\n ...
262
0
{"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 24.66, "nodes": 141, "errors": 0, "source_hash": "9c2347b853f79e377b0b189b5c510eacd901ed0febd97441fcdd6176de023bb7", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "ude ...
78,352
c
/* * Generic program for testing shellcode byte arrays. * Created by zillion and EVL * * Visit: http://safemode.org/ */ #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <errno.h> /* * Print message */ static void croak(const char *msg) { fprintf(stde...
23.28
98
(translation_unit) "/*\n* Generic program for testing shellcode byte arrays.\n* Created by zillion and EVL\n*\n* Visit: http://safemode.org/\n*/\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <sys/types.h>\n#include <sys/stat.h>\n#include <unistd.h>\n#include <errno.h>\n\n/*\n* Print message\n*/\nstatic void\ncro...
700
0
{"language": "c", "success": true, "metadata": {"lines": 98, "avg_line_length": 23.28, "nodes": 391, "errors": 0, "source_hash": "64f3eb61d31531a4eabb2d95237c0fb9ef17bd15db798815fcfa90cf6850e8f4", "categorized_nodes": 262}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,353
c
// **************************************************************************** // // Copyright (c) 2014, <NAME>, <NAME>, Johns Hopkins University // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following condi...
35.97
143
(translation_unit) "// ****************************************************************************\n//\n// Copyright (c) 2014, <NAME>, <NAME>, Johns Hopkins University\n// All rights reserved.\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provide...
663
23
{"language": "c", "success": true, "metadata": {"lines": 143, "avg_line_length": 35.97, "nodes": 380, "errors": 0, "source_hash": "f647d489a0681c09fb4cb064117ca5bebdf90faf32a4ab928e2610181e36d4b9", "categorized_nodes": 259}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,354
c
#pragma once /** * File kindly provided by the university. */ #include <stdbool.h> #include <sys/types.h> // A structure representing a mapping from keys to values. // Keys are C-strings (null-terminated char*), all distinct. // Values are non-null pointers (void*, which you can cast to any other pointer type). ty...
39.53
49
(translation_unit) "#pragma once\n\n/**\n * File kindly provided by the university.\n */\n\n#include <stdbool.h>\n#include <sys/types.h>\n\n// A structure representing a mapping from keys to values.\n// Keys are C-strings (null-terminated char*), all distinct.\n// Values are non-null pointers (void*, which you can cast...
228
0
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 39.53, "nodes": 150, "errors": 0, "source_hash": "6da7c40ed48a52f4ddaa83a50dfc2b0e816cbf66465b31e5ff1b6b2f0f0c2b2c", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
78,355
c
#ifndef _CRYPTLIB_COMPAT_H #define _CRYPTLIB_COMPAT_H #include <cryptlib.h> /** * Prototype copied from cryptInit() in cryptlib.h. * * This wrapper handles multiple calls and will return CRYPT_OK even if * cryptlib has already been initialized. It also registers an * atexit() handler that calls cryptEnd() as r...
27.67
15
(translation_unit) "#ifndef _CRYPTLIB_COMPAT_H\n#define _CRYPTLIB_COMPAT_H\n\n#include <cryptlib.h>\n\n\n/**\n * Prototype copied from cryptInit() in cryptlib.h.\n *\n * This wrapper handles multiple calls and will return CRYPT_OK even if\n * cryptlib has already been initialized. It also registers an\n * atexit() han...
22
1
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 27.67, "nodes": 17, "errors": 0, "source_hash": "8a745f48347541627e8087aead34de00ec1bd0bed15cb9a9113bae6551e23e97", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,356
c
/* * tkMacOSXInt.h -- * * Declarations of Macintosh specific shared variables and procedures. * * Copyright (c) 1995-1997 Sun Microsystems, Inc. * Copyright 2001-2009, Apple Inc. * Copyright (c) 2005-2009 <NAME> <<EMAIL>> * * See the file "license.terms" for information on usage and redistribution * of this ...
28.95
175
(translation_unit) "/*\n * tkMacOSXInt.h --\n *\n * Declarations of Macintosh specific shared variables and procedures.\n *\n * Copyright (c) 1995-1997 Sun Microsystems, Inc.\n * Copyright 2001-2009, Apple Inc.\n * Copyright (c) 2005-2009 <NAME> <<EMAIL>>\n *\n * See the file "license.terms" for information on usage a...
542
8
{"language": "c", "success": true, "metadata": {"lines": 175, "avg_line_length": 28.95, "nodes": 434, "errors": 0, "source_hash": "e0d875215a4745cf16d54985babbf1bcd07e0856e0b4f4623fdb9960cb42f172", "categorized_nodes": 286}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,357
c
// // DPPhone.h // bridge // // Created by Dennis on 2020/8/28. // Copyright © 2020 raincity. All rights reserved. // #import <Foundation/Foundation.h> #import "DPApp.h" NS_ASSUME_NONNULL_BEGIN @protocol DPPhone <NSObject> @property (readwrite, nonatomic, strong) id<DPApp> app; - (void)run; @end @interface D...
19.86
21
(translation_unit) "//\n// DPPhone.h\n// bridge\n//\n// Created by Dennis on 2020/8/28.\n// Copyright © 2020 raincity. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "DPApp.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@protocol DPPhone <NSObject>\n\n@property (readwrite, nonatomic, strong) id<DPApp> app...
104
16
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 19.86, "nodes": 74, "errors": 0, "source_hash": "10c7cda6a80577fd1191fb2f437744dd308c282ecb26b7cf0186966879374bd6", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
78,358
c
// // ResourceTableViewController.h // iPokeMon // // Created by Kjuly on 1/25/13. // Copyright (c) 2013 Kjuly. All rights reserved. // #import <UIKit/UIKit.h> #import "MBProgressHUD.h" @interface ResourceTableViewController : UITableViewController < MBProgressHUDDelegate > @property (strong, nonatomic) NSMan...
24.93
14
(translation_unit) "//\n// ResourceTableViewController.h\n// iPokeMon\n//\n// Created by Kjuly on 1/25/13.\n// Copyright (c) 2013 Kjuly. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n#import "MBProgressHUD.h"\n\n@interface ResourceTableViewController : UITableViewController <\n MBProgressHUDDelegate\n>\n\...
42
6
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 24.93, "nodes": 28, "errors": 0, "source_hash": "71f0afedbe3ca2108c9dc28f35df41c85bfec01009a0982bc1b30ab846fe25de", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
78,359
c
#include "utils.h" #include <stdio.h> #include <ctype.h> static double _Atof(char s[]); int main(int argc, char *argv[]) { if (argc != 2) { printf("Usage: atof_expand <string>\n"); return -1; } printf("The result: %f\n", _Atof(argv[1])); return 0; } /* _Atof: convert strings to double, suppo...
17.8
76
(translation_unit) "#include "utils.h"\n#include <stdio.h>\n#include <ctype.h>\n\nstatic double _Atof(char s[]);\n\nint main(int argc, char *argv[])\n{\n if (argc != 2)\n {\n printf("Usage: atof_expand <string>\n");\n \n return -1;\n }\n\n printf("The result: %f\n", _Atof(argv[1]));\n\n return 0;\n}\n\n/*...
654
0
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 17.8, "nodes": 395, "errors": 0, "source_hash": "5f569b7bd6213a4e1857d4a857dfc99ef299cd5467c29e20caca66563fcbe4e3", "categorized_nodes": 270}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
78,360
c
/* * Copyright (c) 2002-2012 Balabit * Copyright (c) 1998-2012 <NAME> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any...
33.6
111
(translation_unit) "/*\n * Copyright (c) 2002-2012 Balabit\n * Copyright (c) 1998-2012 <NAME>\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the Licen...
696
0
{"language": "c", "success": true, "metadata": {"lines": 111, "avg_line_length": 33.6, "nodes": 431, "errors": 0, "source_hash": "4ca07984a3923463597c0b5165586c8e55a3d096c429b3255b18dee03cc81fa3", "categorized_nodes": 309}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,361
c
/** * @file deprecated.c */ #include <stdio.h> #include <rc/start_stop.h> #include <rc/deprecated.h> #include <rc/button.h> #include <rc/motor.h> #include <rc/encoder_eqep.h> int rc_initialize(void) { // initialize pause and mode buttons if(rc_button_init(RC_BTN_PIN_PAUSE, RC_BTN_POLARITY_NORM_HIGH, RC_BTN...
24.23
139
(translation_unit) "/**\n * @file deprecated.c\n */\n\n#include <stdio.h>\n#include <rc/start_stop.h>\n#include <rc/deprecated.h>\n#include <rc/button.h>\n#include <rc/motor.h>\n#include <rc/encoder_eqep.h>\n\n\nint rc_initialize(void)\n{\n // initialize pause and mode buttons\n if(rc_button_init(RC_BTN_PIN_PAUSE, RC_B...
945
0
{"language": "c", "success": true, "metadata": {"lines": 139, "avg_line_length": 24.23, "nodes": 538, "errors": 0, "source_hash": "3615153eb65adbd9062b07ffa33ce84f6cbea98e1d6a3d92548ea56e35c35bf9", "categorized_nodes": 355}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,362
c
#ifndef UTILS_H #define UTILS_H #include <vector> #include <cstdint> #include <string> std::vector<std::vector<bool>> convert_to_bool(const std::vector<std::vector<int32_t>>& state) noexcept; std::vector<std::vector<int32_t>> convert_to_num(const std::vector<std::vector<bool>>& state) noexcept; std::string print_for...
42.67
9
(translation_unit) "#ifndef UTILS_H\n#define UTILS_H\n\n#include <vector>\n#include <cstdint>\n#include <string>\n\nstd::vector<std::vector<bool>> convert_to_bool(const std::vector<std::vector<int32_t>>& state) noexcept;\nstd::vector<std::vector<int32_t>> convert_to_num(const std::vector<std::vector<bool>>& state) noex...
142
8
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 42.67, "nodes": 100, "errors": 0, "source_hash": "6d5691093f54ce03fee50cb678701a635c95305f81797f3646552ac28972915a", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,363
c
/* * Copyright (C) 2015-2019 Alibaba Group Holding Limited */ #ifdef AOS_CANOPEN #include "co_adapter.h" static timer_dev_t timer_canopen; void timer_dispatch(void); TIMEVAL last_counter_val = 0; TIMEVAL elapsed_time = 0; int32_t timer_init(uint8_t port) { int32_t ret = -1; timer_canopen.port ...
27.49
53
(translation_unit) "/*\n * Copyright (C) 2015-2019 Alibaba Group Holding Limited\n */\n\n#ifdef AOS_CANOPEN\n\n#include "co_adapter.h"\n\nstatic timer_dev_t timer_canopen;\n\nvoid timer_dispatch(void);\n\nTIMEVAL last_counter_val = 0;\nTIMEVAL elapsed_time = 0;\n\nint32_t timer_init(uint8_t port)\n{\n int32_t ret ...
358
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 27.49, "nodes": 219, "errors": 0, "source_hash": "a59327eb4a8cb494cd232684fe4af76bc0599438df47b84b259db451b0388b37", "categorized_nodes": 162}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef...
78,364
c
/* * Generated by class-dump 3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2012 by <NAME>. */ #import "NSObject.h" @class NSArray, NSString; @interface IDEBatchFindPathBarMenuItem : NSObject { int _level; NSString *_title; } - (void).cxx_destruct; @property(readonly) N...
28.6
20
(translation_unit) "/*\n * Generated by class-dump 3.4 (64 bit).\n *\n * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2012 by <NAME>.\n */\n\n#import "NSObject.h"\n\n@class NSArray, NSString;\n\n@interface IDEBatchFindPathBarMenuItem : NSObject\n{\n int _level;\n NSString *_title;\n}\n\n- (void)...
140
22
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 28.6, "nodes": 92, "errors": 0, "source_hash": "b6856d19a0a9e866ed05f8781228b7e4a501c5343cf05cac199564584fa713a1", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
78,365
c
#define BUILD_SUFFIX ff42f19-dirty #define BUILD_DATE "2018-10-01 06:11:48 -0400"
40
2
(translation_unit) "#define BUILD_SUFFIX ff42f19-dirty\n#define BUILD_DATE "2018-10-01 06:11:48 -0400"\n" (preproc_def) "#define BUILD_SUFFIX ff42f19-dirty\n" (#define) "#define" (identifier) "BUILD_SUFFIX" (preproc_arg) "ff42f19-dirty" (preproc_def) "#define BUILD_DATE "2018-10-01 06:11:48 -0400"\n" ...
9
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 40.0, "nodes": 8, "errors": 0, "source_hash": "220c29b4d74c435bcc412adad8abf7bc524dff2d0a9478e75202892e5e7c512b", "categorized_nodes": 2}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define BUILD_...
78,366
c
/* MEMORY ALLOCATION EXAMPLE assist. prof. <NAME>, (c)2014 Technical Univesity - Sofia Faculty of Computer Systems and Control v1.04 */ #ifndef USER_MEMORY #define USER_MEMORY typedef struct MemoryItem { unsigned int size; struct MemoryItem* nextItem; unsigned char allocated; //void* userData; } M...
20.44
25
(translation_unit) "/* \nMEMORY ALLOCATION EXAMPLE \nassist. prof. <NAME>, (c)2014 \nTechnical Univesity - Sofia \nFaculty of Computer Systems and Control \n \nv1.04 \n*/ \n#ifndef USER_MEMORY \n#define USER_MEMORY \ntypedef struct MemoryItem \n{ \n unsigned int size; \n struct MemoryItem* nextItem; \n unsigned char al...
102
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 20.44, "nodes": 74, "errors": 0, "source_hash": "17048d509fe0cc1d6ed5d18ac6918f242090cc5679fb50f120c63e569d032437", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,367
c
/* * Copyright (C) 2005-2015 <NAME> (<EMAIL>). * * 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 la...
36.59
158
(translation_unit) "/*\n * Copyright (C) 2005-2015 <NAME> (<EMAIL>).\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 * Unl...
840
18
{"language": "c", "success": true, "metadata": {"lines": 158, "avg_line_length": 36.59, "nodes": 524, "errors": 0, "source_hash": "dfead44f6d519bd5652f76897c8ff7a016ebe15f226069b806852c5381c61b02", "categorized_nodes": 343}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,368
c
#ifndef MOVEMENTCOMPONENT_H #define MOVEMENTCOMPONENT_H enum movement_states {IDLE = 0, MOVING, MOVING_LEFT, MOVING_RIGHT, BLOCKING, JUMPING_UP, JUMPING_LEFT, JUMPING_RIGHT, CROUCHING, CROUCHING_LEFT, CROUCHING_RIGHT, CROUCH_BLOCKING}; class MovementComponent { private: sf::Sprite &sprite; //Variab...
25.86
36
(translation_unit) "#ifndef MOVEMENTCOMPONENT_H \n#define MOVEMENTCOMPONENT_H \n \nenum movement_states {IDLE = 0, MOVING, MOVING_LEFT, MOVING_RIGHT, BLOCKING, JUMPING_UP, JUMPING_LEFT, JUMPING_RIGHT, CROUCHING, CROUCHING_LEFT, CROUCHING_RIGHT, CROUCH_BLOCKING}; \n \nclass MovementComponent \n{ \nprivate: \n sf::Spr...
231
13
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 25.86, "nodes": 129, "errors": 0, "source_hash": "f7692d4f4dbb6eba199d824a0ba82a0d73d3c6b86ad6bdb1aed5a445d5f77326", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,369
c
#ifndef TYPING_H #define TYPING_H class Typing { public: Typing() = default; ~Typing() = default; int run(); private: void _printIntroduction(); void _printTask(const char * EXPECTED); bool _userYesOrNo(const char * QUESTION); void _getUserInput(char * userInput); }; #endif // TYPING_H
21.5
14
(translation_unit) "#ifndef TYPING_H\n#define TYPING_H\n\nclass Typing {\npublic:\n Typing() = default;\n ~Typing() = default;\n int run();\nprivate:\n void _printIntroduction();\n void _printTask(const char * EXPECTED);\n bool _userYesOrNo(const char * QUESTION);\n void _getUserInput(char * userIn...
104
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 21.5, "nodes": 65, "errors": 0, "source_hash": "f121cf8d2e73604f5a7d310ba39259a891be12b69ac656302bc60605d346a350", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef T...
78,370
c
#ifndef ribbon_memory_h #define ribbon_memory_h #include "common.h" typedef struct { const char* name; size_t size; } Allocation; #define GROW_CAPACITY(capacity) (capacity) < 8 ? 8 : (capacity) * 2 size_t get_allocated_memory(); size_t get_allocations_count(); void memory_init(void); void* allocate(size_t...
35.79
19
(translation_unit) "#ifndef ribbon_memory_h\n#define ribbon_memory_h\n\n#include "common.h"\n\ntypedef struct {\n const char* name;\n size_t size;\n} Allocation;\n\n#define GROW_CAPACITY(capacity) (capacity) < 8 ? 8 : (capacity) * 2\n\nsize_t get_allocated_memory();\nsize_t get_allocations_count();\n\nvoid memory...
200
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 35.79, "nodes": 142, "errors": 0, "source_hash": "f3b6c177e013f6bd8ef0608a47999a3e79b37ac056694d8531928f6785c02a87", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,371
c
#pragma once #include <string> #include <fnd/types.h> #include <fnd/IFile.h> #include <nx/PfsHeader.h> #include "nstool.h" class PfsProcess { public: PfsProcess(); void process(); // generic void setInputFile(fnd::IFile& reader); void setInputFileOffset(size_t offset); void setKeyset(const sKeyset* keyset); ...
24.12
42
(translation_unit) "#pragma once\n#include <string>\n#include <fnd/types.h>\n#include <fnd/IFile.h>\n#include <nx/PfsHeader.h>\n\n#include "nstool.h"\n\nclass PfsProcess\n{\npublic:\n PfsProcess();\n\n void process();\n\n // generic\n void setInputFile(fnd::IFile& reader);\n void setInputFileOffset(size_t offset);\n vo...
326
11
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 24.12, "nodes": 197, "errors": 0, "source_hash": "94410a582c8432d65632440c58f58b473749c0e5896e074c0a793ec0662ae337", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
78,372
c
#include "hal_data.h" void microros_app(void); /* Thread micro-ROS entry function */ void microros_app(void) { }
17.83
6
(translation_unit) "#include "hal_data.h"\n\nvoid microros_app(void);\n\n/* Thread micro-ROS entry function */\nvoid microros_app(void)\n{\n\n}\n" (preproc_include) "#include "hal_data.h"\n" (#include) "#include" (string_literal) ""hal_data.h"" (") """ (string_content) "hal_data.h" (") """ ...
30
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 17.83, "nodes": 17, "errors": 0, "source_hash": "51cb9acf8fc1d3e0ca1bd6de4c0146a4a7d6cb2b82e6e7cbf89f9e33c0fd9841", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
78,373
c
// // VideoViewController.h // CocoaTest // // Created by yuesheng on 16/6/17. // Copyright © 2016年 yuesheng. All rights reserved. // #import <UIKit/UIKit.h> #import "RootViewController.h" @interface VideoViewController : RootViewController @end
21.73
11
(translation_unit) "//\n// VideoViewController.h\n// CocoaTest\n//\n// Created by yuesheng on 16/6/17.\n// Copyright © 2016年 yuesheng. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "RootViewController.h"\n\n@interface VideoViewController : RootViewController\n\n@end\n" (comment) "//" (comment) "/...
22
3
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 21.73, "nodes": 13, "errors": 0, "source_hash": "a99ccea8f69d6f1f58140b7972742e65349b0a2f1993aff9eba88126b65c1a14", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKi...
78,374
c
#pragma once #include <vector> #include "env/cell.h" using std::vector; namespace NEnv { class HexagonalMap { public: HexagonalMap(int height, int width) : height(height), width(width), map(height, vector<Cell>(width)) {} private: const int height; const int width; ...
24.4
15
(translation_unit) "#pragma once\n\n#include <vector>\n\n#include "env/cell.h"\n\nusing std::vector;\n\nnamespace NEnv {\n class HexagonalMap {\n public:\n HexagonalMap(int height, int width) : height(height), width(width),\n map(height, vector<Cell>(width)) {}\n\n private:\n const int...
115
7
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 24.4, "nodes": 68, "errors": 0, "source_hash": "fc21c719ca96abf1afd29c9668fef4f5f18bc931b26dce5855cbfcc0747012ae", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
78,375
c
#ifndef __TEST_LIST_H__ #define __TEST_LIST_H__ // Basic tests void test_assert(); void test_reverse_endian(); void test_shell_comments(); void test_shell_justexit(); void test_shell_multidirectsymbol(); #endif
20.2
10
(translation_unit) "#ifndef __TEST_LIST_H__\n#define __TEST_LIST_H__\n\n\n\n// Basic tests\nvoid test_assert();\nvoid test_reverse_endian();\nvoid test_shell_comments();\nvoid test_shell_justexit();\nvoid test_shell_multidirectsymbol();\n#endif\n" (preproc_ifdef) "#ifndef __TEST_LIST_H__\n#define __TEST_LIST_H__\n\n\...
49
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.2, "nodes": 32, "errors": 0, "source_hash": "4669d403893f9e98345847ac0cc5537f0fce083b23b41fd75686f014361e4e9b", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
78,376
c
/* strlcpy.c - contains BSD strlcpy Copyright 2022 The NexNix Project Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. There should be a copy of the License distributed in a file named LICENSE, if not, you may obtai...
31.12
51
(translation_unit) "/*\n strlcpy.c - contains BSD strlcpy\n Copyright 2022 The NexNix Project\n\n Licensed under the Apache License, Version 2.0 (the "License");\n you may not use this file except in compliance with the License.\n There should be a copy of the License distributed in a file named\n LIC...
156
1
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 31.12, "nodes": 100, "errors": 0, "source_hash": "2d7c0c4b03562efbe8080f7988e91be9a3112547e578ded1f84cc03a041064a6", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
78,377
c
/* * Copyright (c) 2020 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, pu...
30.14
79
(translation_unit) "/*\n * Copyright (c) 2020 <NAME> <<EMAIL>>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to us...
373
0
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 30.14, "nodes": 246, "errors": 0, "source_hash": "f997ef0231a1720a80bcab11f66913ced3176328e5b365e72eee6db523487b76", "categorized_nodes": 166}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,378
c
#include <ctf-api.h> #include <stdio.h> #include <stdlib.h> int main (int argc, char *argv[]) { ctf_dict_t *fp; ctf_archive_t *ctf; ctf_next_t *i = NULL; ctf_id_t type; const char *arcname; char *type_name; int err; if (argc != 2) { fprintf (stderr, "Syntax: %s PROGRAM\n", argv[0]); ex...
27.98
50
(translation_unit) "#include <ctf-api.h>\n#include <stdio.h>\n#include <stdlib.h>\n\nint\nmain (int argc, char *argv[])\n{\n ctf_dict_t *fp;\n ctf_archive_t *ctf;\n ctf_next_t *i = NULL;\n ctf_id_t type;\n const char *arcname;\n char *type_name;\n int err;\n\n if (argc != 2)\n {\n fprintf (stderr, "Synt...
432
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 27.98, "nodes": 254, "errors": 0, "source_hash": "7fd1054a30d6329dafa58e5851f89e0cbc9b9a7b8909269dab2496dbde8b5a2f", "categorized_nodes": 175}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,379
c
#include "combat.h" #include "item.h" #include "gpl.h" #include "entity.h" #include "gff.h" #include "rules.h" #include "port.h" #include "gfftypes.h" #include "gff-map.h" #include "region-manager.h" #include <string.h> extern char *strdup(const char *s); // Not in standard. static void apply_combat(dude_t *dude, ds1...
37.3
311
(translation_unit) "#include "combat.h"\n#include "item.h"\n#include "gpl.h"\n#include "entity.h"\n#include "gff.h"\n#include "rules.h"\n#include "port.h"\n#include "gfftypes.h"\n#include "gff-map.h"\n#include "region-manager.h"\n#include <string.h>\n\nextern char *strdup(const char *s); // Not in standard.\n\nstatic v...
3,813
0
{"language": "c", "success": true, "metadata": {"lines": 311, "avg_line_length": 37.3, "nodes": 2370, "errors": 0, "source_hash": "54df825c93ba1f6d36f2942d9583aff9d98ebe8edad15f63293e2f6541e7a6f1", "categorized_nodes": 1859}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
78,380
c
#include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include "../src/minunit.h" #include "../src/queue.h" queue_list_t q; void test_setup(void) { q = q_init(); } void test_teardown(void) { q_free_alt(q, true); q = NULL; } int* make_into_pointer(int i) { int* t = (int*)malloc(sizeof(int)); ...
33.81
102
(translation_unit) "#include <stdbool.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include "../src/minunit.h"\n#include "../src/queue.h"\n\n\nqueue_list_t q;\n\nvoid test_setup(void) {\n q = q_init();\n}\n\nvoid test_teardown(void) {\n q_free_alt(q, true);\n q = NULL;\n}\n\nint* make_into_pointer(int i) {\n ...
820
0
{"language": "c", "success": true, "metadata": {"lines": 102, "avg_line_length": 33.81, "nodes": 451, "errors": 0, "source_hash": "b37da8f38a80fa901b9539bcdea5aa645a7a7ec1ce2a338c038ea4708649071f", "categorized_nodes": 306}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,381
c
// Semaphore.h - Semaphore // // Distributed under the Boost Software License, Version 1.0. // See LICENSE_1_0.txt for details. // #pragma once #include <mutex> #include <condition_variable> namespace parallel { struct semaphore { explicit semaphore(int cnt = 0) : _count(cnt) {} int count() { std::unique_...
20.97
33
(translation_unit) "// Semaphore.h - Semaphore\n//\n// Distributed under the Boost Software License, Version 1.0.\n// See LICENSE_1_0.txt for details.\n//\n\n#pragma once\n\n#include <mutex>\n#include <condition_variable>\n\nnamespace parallel {\n\nstruct semaphore {\n\n explicit semaphore(int cnt = 0) : _count(cnt) {...
223
8
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 20.97, "nodes": 130, "errors": 0, "source_hash": "756f05df9a2dc2b3801d26cb93ee1896440d822df2cf2953e181e7458932ac47", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
78,382
c
#include "raDI.h" int *UseColumns( MSA, mini_aa , aa, q, numseqs, L, ll, verbose ) char **MSA; char *mini_aa, *aa; int numseqs, L, *ll,q,verbose; { int *pos,*pos_new,i,j,k,aux,A,lold,id,l,print_return,use_max,kk,i_meff,lj; double Max_id_use, Max_lid, Max_gaps_use, Min_Meff_gaps_use, Meff, lambda_psc_use, lambd...
31.96
166
(translation_unit) "#include "raDI.h"\n\nint *UseColumns( MSA, mini_aa , aa, q, numseqs, L, ll, verbose )\nchar **MSA;\nchar *mini_aa, *aa;\nint numseqs, L, *ll,q,verbose;\n{\n int *pos,*pos_new,i,j,k,aux,A,lold,id,l,print_return,use_max,kk,i_meff,lj;\n double Max_id_use, Max_lid, Max_gaps_use, Min_Meff_gaps_use,...
2,171
0
{"language": "c", "success": true, "metadata": {"lines": 166, "avg_line_length": 31.96, "nodes": 1250, "errors": 0, "source_hash": "ee5f0b3cc5be1db454ec541cc792f9bc400871e0e3c5ce3d6c2bd2c689336dd4", "categorized_nodes": 915}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
78,383
c
/*** * Copyright (C) Microsoft. All rights reserved. * Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. * * File:critical_section_impl.h ****/ #pragma once #include "interfaces/critical_section.h" #include <foundation/ctl/com_library.h> #include <pal/pa...
30.8
91
(translation_unit) "/*** \n* Copyright (C) Microsoft. All rights reserved. \n* Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. \n* \n* File:critical_section_impl.h \n****/ \n \n#pragma once \n \n#include "interfaces/critical_section.h" \n#include <foundation/ctl/co...
480
15
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 30.8, "nodes": 267, "errors": 0, "source_hash": "9326bf3c9c7452d3f25abb785ea53b325110790ffc05b5d0024bfedc3309a09a", "categorized_nodes": 190}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
78,384
c
/* EA Layer 3 Extractor/Decoder Copyright (C) 2010-2011, <NAME>. See License.txt */ #pragma once #include "Internal.h" // Some structures struct elChannelInfo { unsigned int Scfsi; unsigned int Size; uint32_t SideInfo[2]; }; enum elUncSampleMode { USM_REPLACE_ALL, USM_REPLACE_PART ...
24.01
104
(translation_unit) "/*\n EA Layer 3 Extractor/Decoder\n Copyright (C) 2010-2011, <NAME>.\n See License.txt\n*/\n\n#pragma once\n\n#include "Internal.h"\n\n// Some structures\n\nstruct elChannelInfo\n{\n unsigned int Scfsi;\n unsigned int Size;\n\n uint32_t SideInfo[2];\n};\n\nenum elUncSampleMode\n{\n...
545
33
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 24.01, "nodes": 331, "errors": 0, "source_hash": "ca5c523c12cc95ec8879054ab9d744dec701e89e244fc4ca5920b14afed1523e", "categorized_nodes": 227}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
78,385
c
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // This file is Chromium-specific, and brings in the appropriate // event-config.h depending on your platform. #if defined(__APPLE__) #include "mac/e...
33.72
18
(translation_unit) "// Copyright (c) 2011 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n// This file is Chromium-specific, and brings in the appropriate\n// event-config.h depending on your platform.\n\n#if defined...
82
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 33.72, "nodes": 51, "errors": 0, "source_hash": "cf81949cfd46a6024df716f89cdd49b09219a1428087642fa527468847736fac", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if defined...
78,386
c
/* Angie Engine Source Code MIT License Copyright (C) 2017-2021 <NAME>. This file is part of the Angie Engine Source Code. 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, ...
34.85
143
(translation_unit) "/*\n\nAngie Engine Source Code\n\nMIT License\n\nCopyright (C) 2017-2021 <NAME>.\n\nThis file is part of the Angie Engine Source Code.\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 th...
794
27
{"language": "c", "success": true, "metadata": {"lines": 143, "avg_line_length": 34.85, "nodes": 492, "errors": 0, "source_hash": "140129917eebceac926eccf975fd4c78a68db6c0ca315e665218b3ef63dd1adc", "categorized_nodes": 333}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
78,387
c
/*s: libc/port/strncat.c */ #include <u.h> #include <libc.h> /*s: function [[strncat]] */ char* strncat(char *s1, char *s2, long n) { char *os1; os1 = s1; while(*s1++) ; s1--; while(*s1++ = *s2++) if(--n < 0) { s1[-1] = 0; break; } return os1; } ...
16.86
21
(translation_unit) "/*s: libc/port/strncat.c */\n#include <u.h>\n#include <libc.h>\n\n/*s: function [[strncat]] */\nchar*\nstrncat(char *s1, char *s2, long n)\n{\n char *os1;\n\n os1 = s1;\n while(*s1++)\n ;\n s1--;\n while(*s1++ = *s2++)\n if(--n < 0) {\n s1[-1] = 0;\n ...
116
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 16.86, "nodes": 78, "errors": 0, "source_hash": "9ec206fdaf59f2d8a511bd95d157b0a581daf0aadab5b72bc7d54c44712e7fe9", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
78,388
c
/* LibTomCrypt, modular cryptographic library -- <NAME> * * LibTomCrypt is a library that provides various cryptographic * algorithms in a highly modular and flexible manner. * * The library is free for all purposes without any express * guarantee it works. */ #include "tomcrypt_private.h" /** @file rsa_key.c...
26.46
100
(translation_unit) "/* LibTomCrypt, modular cryptographic library -- <NAME>\n *\n * LibTomCrypt is a library that provides various cryptographic\n * algorithms in a highly modular and flexible manner.\n *\n * The library is free for all purposes without any express\n * guarantee it works.\n */\n#include "tomcrypt_priva...
723
0
{"language": "c", "success": true, "metadata": {"lines": 100, "avg_line_length": 26.46, "nodes": 430, "errors": 0, "source_hash": "d64fd6865ea8844dcc95cbfc7fcc7d09935792942f06c19d1e340820d3fc56ba", "categorized_nodes": 315}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,389
c
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef NGInlineItemResult_h #define NGInlineItemResult_h #include "core/layout/ng/geometry/ng_box_strut.h" #include "core/layout/ng/ng_layout_result.h" ...
39.21
103
(translation_unit) "// Copyright 2017 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef NGInlineItemResult_h\n#define NGInlineItemResult_h\n\n#include "core/layout/ng/geometry/ng_box_strut.h"\n#include "core/la...
556
21
{"language": "c", "success": true, "metadata": {"lines": 103, "avg_line_length": 39.21, "nodes": 293, "errors": 0, "source_hash": "fa08e1cb86df4f629a7cd159fbf30832dc3eee0948652556e1d861c3d0c80e74", "categorized_nodes": 210}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,390
c
#include "roomsMC.h" #include "utils.h" #include <stdio.h> #include <stdlib.h> #include <time.h> void rooms_mc(size_t n, int** D, int room[n / 2][2], size_t* cost, size_t* steps, int MAXI) { rng_populate_rooms(n, room); (*cost) = 0; for (size_t i = 0; i < n / 2; i++) { (*cost) += D[...
24.75
40
(translation_unit) "#include "roomsMC.h" \n \n#include "utils.h" \n \n#include <stdio.h> \n#include <stdlib.h> \n#include <time.h> \n \nvoid rooms_mc(size_t n, int** D, int room[n / 2][2], size_t* cost, size_t* steps, int MAXI) { \n rng_populate_rooms(n, room); \n \n (*cost) = 0; \n for (size_t i = 0; i < n / ...
442
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 24.75, "nodes": 277, "errors": 0, "source_hash": "38c06ceb8d557286d98042d2bfb70a6a61fca8cd4fc99382a15054c8c0e47ccb", "categorized_nodes": 209}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,391
c
/*- * Copyright (c) 2014-present MongoDB, Inc. * Copyright (c) 2008-2014 WiredTiger, Inc. * All rights reserved. * * See the file LICENSE for redistribution information. */ #include "util.h" /* * usage -- * Display a usage message for the alter command. */ static int usage(void) { util_usage("alter u...
23.46
46
(translation_unit) "/*-\n * Copyright (c) 2014-present MongoDB, Inc.\n * Copyright (c) 2008-2014 WiredTiger, Inc.\n * All rights reserved.\n *\n * See the file LICENSE for redistribution information.\n */\n\n#include "util.h"\n\n/*\n * usage --\n * Display a usage message for the alter command.\n */\nstatic int\nus...
290
0
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 23.46, "nodes": 164, "errors": 0, "source_hash": "c4b901ad2a85d8f6e7880d6313d3696232c35604be7898d1a474b7e06fa37161", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,392
c
#ifndef _H_CDYNABLOCK_ #define _H_CDYNABLOCK_ //typedef int (*free)(int n); #include "core/cmemory.h" #include "core/cobject.h" #define CDYNABLOCK_NAME "dyn" typedef struct { int x; int y; int h; int w; } CDynaBlockSpace; // UTF8 typedef struct { CObject parent; int width; int height; int ...
25.61
33
(translation_unit) "#ifndef _H_CDYNABLOCK_\n#define _H_CDYNABLOCK_\n//typedef int (*free)(int n);\n\n#include "core/cmemory.h"\n#include "core/cobject.h"\n\n#define CDYNABLOCK_NAME "dyn"\n\ntypedef struct {\n int x;\n int y;\n int h;\n int w;\n} CDynaBlockSpace;\n\n\n// UTF8\ntypedef struct {\n CObject par...
242
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 25.61, "nodes": 180, "errors": 0, "source_hash": "24c11faba49a6fb74bd490b9059fa624c82c2942773ac479ddd51674ae90d56a", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,393
c
/* * Copyright 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
35.25
107
(translation_unit) "/*\n * Copyright 2014 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Un...
851
0
{"language": "c", "success": true, "metadata": {"lines": 107, "avg_line_length": 35.25, "nodes": 523, "errors": 0, "source_hash": "62593034df00870220ab96dea71adf77197cfc0e112f74247ab7cf4fd119ce4b", "categorized_nodes": 391}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,394
c
/* * * Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your opti...
38.37
123
(translation_unit) "/*\n *\n * Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved. \n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of th...
505
21
{"language": "c", "success": true, "metadata": {"lines": 123, "avg_line_length": 38.37, "nodes": 331, "errors": 0, "source_hash": "53972d7cb35dcb3642361632aa69f6f61993032e9d26bea5d7fc61354c55c80c", "categorized_nodes": 212}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,395
c
#pragma once #include <string> namespace sge { struct IAssetRelocationPolicy; //--------------------------------------------------------------------- // Import/Export settings. //--------------------------------------------------------------------- enum class MeshPacking { // The whole scene is placed in one meshD...
36.97
37
(translation_unit) "#pragma once\n\n#include <string>\n\nnamespace sge {\n\nstruct IAssetRelocationPolicy;\n\n//---------------------------------------------------------------------\n// Import/Export settings.\n//---------------------------------------------------------------------\nenum class MeshPacking {\n // The wh...
169
7
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 36.97, "nodes": 98, "errors": 0, "source_hash": "078e4c025951e2ddc474614e05b73c789b59c70d67ba6976bb4f92bcb6f276a1", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
78,396
c
// -*- C++ -*- //===--------------------- support/ibm/xlocale.h -------------------===// // // 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 // //===-------------------...
22.54
248
(translation_unit) "// -*- C++ -*-\n//===--------------------- support/ibm/xlocale.h -------------------===//\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/...
1,714
0
{"language": "c", "success": true, "metadata": {"lines": 248, "avg_line_length": 22.54, "nodes": 1048, "errors": 0, "source_hash": "3902f17d06a53c04b2f4f665a0bb07057b390e9cd827ed00efc0fc1ae0552f04", "categorized_nodes": 741}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
78,397
c
/* * Copyright (c) 2016 - 2020, Broadcom * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef IHOST_PM #define IHOST_PM #include <stdint.h> #define CLUSTER_POWER_ON 0x1 #define CLUSTER_POWER_OFF 0x0 void ihost_power_on_cluster(u_register_t mpidr); void ihost_power_on_secondary_core(u_register_t mpidr, uint64_t ...
26.93
14
(translation_unit) "/*\n * Copyright (c) 2016 - 2020, Broadcom\n *\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n#ifndef IHOST_PM\n#define IHOST_PM\n\n#include <stdint.h>\n\n#define CLUSTER_POWER_ON 0x1\n#define CLUSTER_POWER_OFF 0x0\n\nvoid ihost_power_on_cluster(u_register_t mpidr);\nvoid ihost_power_on_secondary...
59
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 26.93, "nodes": 47, "errors": 0, "source_hash": "cba9affac105044a0ce017bed776d60d2a17aa46ffa466fbdacffa959ef6eeac", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,398
c
#pragma GCC diagnostic ignored "-Wunused-result" #ifndef _COMMON_H_ #define _COMMON_H_ #define flag { printf("\nLINE: %d\n", __LINE__); fflush(stdout); } #include <vector> #include <cmath> #include <pmmintrin.h> struct DNode { DNode(uint32_t f, uint32_t j, float v) : f(f), j(j), v(v) {} uint32_t f, j; f...
36.08
178
(translation_unit) "#pragma GCC diagnostic ignored "-Wunused-result"\n\n#ifndef _COMMON_H_\n#define _COMMON_H_\n\n#define flag { printf("\nLINE: %d\n", __LINE__); fflush(stdout); }\n\n#include <vector>\n#include <cmath>\n#include <pmmintrin.h>\n\nstruct DNode\n{\n DNode(uint32_t f, uint32_t j, float v) : f(f), j(j),...
2,028
41
{"language": "c", "success": true, "metadata": {"lines": 178, "avg_line_length": 36.08, "nodes": 1338, "errors": 0, "source_hash": "919a7dd4a87e2554d79b3cd79167be9e72a5585351e34153905b598ce0260cf7", "categorized_nodes": 863}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#prag...
78,399