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
/* Copyright (C) 1999-2005 by <NAME> and <NAME> for the Wisconsin Multifacet Project. Contact: <EMAIL> http://www.cs.wisc.edu/gems/ -------------------------------------------------------------------- This file is part of the Opal Timing-First Microarchitectural Simulator, a component of the...
40.77
126
(translation_unit) "/*\n Copyright (C) 1999-2005 by <NAME> and <NAME> for the\n Wisconsin Multifacet Project. Contact: <EMAIL>\n http://www.cs.wisc.edu/gems/\n\n --------------------------------------------------------------------\n\n This file is part of the Opal Timing-First Microarchitectural\n Si...
208
4
{"language": "c", "success": true, "metadata": {"lines": 126, "avg_line_length": 40.77, "nodes": 116, "errors": 0, "source_hash": "4ee01e3f0dca069b3ad64123ff8d6254d12e18727d43c2fb2e135dee0aeb3329", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
900
c
/* * pep-dna/pepdna/kmodule/netlink.h: Header file for PEP-DNA Netlink code * * Copyright (C) 2020 <NAME> <<EMAIL>> * * 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 version ...
33.37
51
(translation_unit) "/*\n * pep-dna/pepdna/kmodule/netlink.h: Header file for PEP-DNA Netlink code\n *\n * Copyright (C) 2020 <NAME> <<EMAIL>>\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 Software ...
133
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 33.37, "nodes": 99, "errors": 0, "source_hash": "6d980e2edd5f11116322f06231fe9a9655cf54683970069a5fe7d71cb7747586", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
901
c
/* * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2016-Present Datadog, Inc. */ #include <jni.h> #include <string> #ifndef STRINGUTILS_H #define S...
25.5
16
(translation_unit) "/*\n * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.\n * This product includes software developed at Datadog (https://www.datadoghq.com/).\n * Copyright 2016-Present Datadog, Inc.\n */\n\n\n#include <jni.h>\n#include <string>\n\n\n...
43
1
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 25.5, "nodes": 30, "errors": 0, "source_hash": "8ea199c1676ab619911cae7f0d28e288e6e60f212b31ffbb552471decba83ff6", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
902
c
// // ViewController.h // Demo-OC // // Created by hefanghui on 2018/4/28. // Copyright © 2018年 hefanghui. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
19.9
10
(translation_unit) "//\n// ViewController.h\n// Demo-OC\n//\n// Created by hefanghui on 2018/4/28.\n// Copyright © 2018年 hefanghui. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// ViewController.h" (comment) "// Demo...
22
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.9, "nodes": 12, "errors": 0, "source_hash": "fbc3747ef1d35d7dd11b875f2b8770a3ecd037dd8b4b82d4f84ec467c55246c5", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKit...
903
c
#ifndef USERAVATER_H #define USERAVATER_H #include <QWidget> namespace Ui { class UserAvater; } class UserAvater : public QWidget { Q_OBJECT public: explicit UserAvater(QWidget *parent = 0); ~UserAvater(); QString getCurWeek() const; void setCurWeek(const QString &value); QString getName()...
21
34
(translation_unit) "#ifndef USERAVATER_H\n#define USERAVATER_H\n\n#include <QWidget>\n\nnamespace Ui {\nclass UserAvater;\n}\n\nclass UserAvater : public QWidget\n{\n Q_OBJECT\n\npublic:\n explicit UserAvater(QWidget *parent = 0);\n ~UserAvater();\n\n QString getCurWeek() const;\n void setCurWeek(const Q...
226
15
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 21.0, "nodes": 135, "errors": 0, "source_hash": "9afacc43e30f06a8e1ffeb033549735905a772dca28af70036b54901186488d4", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
904
c
#include <stdlib.h> #include <stdio.h> #include "cbmp.h" // Constants #define BITS_PER_BYTE 8 #define BLUE 0 #define GREEN 1 #define RED 2 #define ALPHA 3 #define PIXEL_ARRAY_START_BYTES 4 #define PIXEL_ARRAY_START_OFFSET 10 #define WIDTH_BYTES 4 #define WIDTH_OFFSET 18 #define HEIGHT_BYTES 4 #define HEIGHT_OFFSE...
30.37
271
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n#include "cbmp.h"\n\n// Constants\n\n#define BITS_PER_BYTE 8\n\n#define BLUE 0\n#define GREEN 1\n#define RED 2\n#define ALPHA 3\n\n#define PIXEL_ARRAY_START_BYTES 4\n#define PIXEL_ARRAY_START_OFFSET 10\n\n#define WIDTH_BYTES 4\n#define WIDTH_OFFSET 18\n\n#def...
2,731
0
{"language": "c", "success": true, "metadata": {"lines": 271, "avg_line_length": 30.37, "nodes": 1848, "errors": 0, "source_hash": "e2000aa31fad76ccc6a7dc60952286576046536ac287a09b4d3b49267abc0262", "categorized_nodes": 1222}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
905
c
/* Unix SMB/CIFS implementation. Password and authentication handling Copyright (C) <NAME> 2001-2002 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 version 3 of the...
37.95
115
(translation_unit) "/* \n Unix SMB/CIFS implementation.\n Password and authentication handling\n Copyright (C) <NAME> 2001-2002\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 Software Foundati...
676
0
{"language": "c", "success": true, "metadata": {"lines": 115, "avg_line_length": 37.95, "nodes": 406, "errors": 0, "source_hash": "cff6e009aa78616bfa18f35ce608e9006a4b4068e36779c78c3a87b7b2b607be", "categorized_nodes": 290}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
906
c
#import "_Protocol.h" #import "_PayParamProtocol.h" #import "_PayConfigProtocol.h" @protocol _PayProtocol <_Protocol> @property (nonatomic, assign) BOOL isBusy; // 正在进行购买流程, 当前由使用方去管理 @property (nonatomic, strong) id<_PayParamProtocol> param; @property (nonatomic, strong) id<_PayConfigProtocol> config; - (void)payW...
44.89
9
(translation_unit) "#import "_Protocol.h"\n#import "_PayParamProtocol.h"\n#import "_PayConfigProtocol.h"\n\n@protocol _PayProtocol <_Protocol>\n\n@property (nonatomic, assign) BOOL isBusy; // 正在进行购买流程, 当前由使用方去管理\n\n@property (nonatomic, strong) id<_PayParamProtocol> param;\n@property (nonatomic, strong) id<_PayConfigPr...
112
19
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 44.89, "nodes": 79, "errors": 0, "source_hash": "a3b7911c441fb95e302295e2382d8d5956ab70119138cebbd1b8d407735fef56", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
907
c
// Copyright (c) 2017 <NAME> <<EMAIL>>. All rights reserved. // Use of this source code is governed by the BSD license that can be found in // the LICENSE file. #ifndef KL_WAIT_GROUP_H_ #define KL_WAIT_GROUP_H_ #include <condition_variable> #include <mutex> #include <utility> namespace kl { class WaitGroup { public: ...
21.27
44
(translation_unit) "// Copyright (c) 2017 <NAME> <<EMAIL>>. All rights reserved.\n// Use of this source code is governed by the BSD license that can be found in\n// the LICENSE file.\n\n#ifndef KL_WAIT_GROUP_H_\n#define KL_WAIT_GROUP_H_\n#include <condition_variable>\n#include <mutex>\n#include <utility>\n\nnamespace k...
312
9
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 21.27, "nodes": 178, "errors": 0, "source_hash": "d95f44444de99af8be655c6bae2ee0c29e35ab05b1d86a20ea7388dc3f72926a", "categorized_nodes": 124}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
908
c
#include <stdio.h> #include <string.h> #include "pog_static_heap.h" #include "pog_real_heap.h" char* x; #define STATIC_MEM_CAP 2048 uintptr_t static_mem[STATIC_MEM_CAP]; int main() { pog_gc_init(&static_mem_ptrs, sizeof(static_mem)); pog_gc_mark_static(&x); //pog_real_heap_init(); pog_static_heap_...
22.82
50
(translation_unit) "#include <stdio.h>\n#include <string.h>\n#include "pog_static_heap.h"\n#include "pog_real_heap.h"\n\nchar* x;\n\n#define STATIC_MEM_CAP 2048\nuintptr_t static_mem[STATIC_MEM_CAP];\n\nint main() {\n pog_gc_init(&static_mem_ptrs, sizeof(static_mem));\n\n pog_gc_mark_static(&x);\n\n //pog_real...
497
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 22.82, "nodes": 260, "errors": 0, "source_hash": "746e5118e356b0d27d2b6af1b56a8027bd611cb3ce81d94c39147d8c1e40f76e", "categorized_nodes": 168}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
909
c
/* Generated by Nim Compiler v1.6.2 */ #define NIM_INTBITS 64 #define NIM_EmulateOverflowChecks #include "nimbase.h" #include <string.h> #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix #define nimf...
29.6
120
(translation_unit) "/* Generated by Nim Compiler v1.6.2 */\n#define NIM_INTBITS 64\n#define NIM_EmulateOverflowChecks\n\n#include "nimbase.h"\n#include <string.h>\n#undef LANGUAGE_C\n#undef MIPSEB\n#undef MIPSEL\n#undef PPC\n#undef R3000\n#undef R4000\n#undef i386\n#undef linux\n#undef mips\n#undef near\n#undef far\n#u...
1,467
21
{"language": "c", "success": true, "metadata": {"lines": 120, "avg_line_length": 29.6, "nodes": 893, "errors": 0, "source_hash": "8e4389f12ef1972678e3e02ad41a6c7912597246e82791ad0af030eb87cf9e3a", "categorized_nodes": 567}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ...
910
c
#include "seahorn/seahorn.h" extern int nd(); void may_swap(int **ppx, int **ppy) { if (nd()) { int *tmp = *ppx; *ppx = *ppy; *ppy = tmp; } } void swap_dec(int **ppa, int **ppb) { may_swap(ppa, ppb); if (nd()) return; **ppa -= 1; **ppb -= 2; swap_dec(ppa, ppb); } int main() { int x = nd(),...
16.96
24
(translation_unit) "#include "seahorn/seahorn.h"\n\nextern int nd();\n\nvoid may_swap(int **ppx, int **ppy) {\n if (nd()) {\n int *tmp = *ppx;\n *ppx = *ppy;\n *ppy = tmp;\n }\n}\nvoid swap_dec(int **ppa, int **ppb) {\n may_swap(ppa, ppb);\n if (nd()) return;\n **ppa -= 1;\n **ppb -= 2;\n swap_dec(ppa, ...
248
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 16.96, "nodes": 166, "errors": 0, "source_hash": "c2986e03df51a569523cd8c63a22a72e6f10b877b7ee35893f3348564fffa3e9", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
911
c
/* A Bison parser, made by GNU Bison 2.6.4. */ /* Bison interface for Yacc-like parsers in C Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as publishe...
26.49
165
(translation_unit) "/* A Bison parser, made by GNU Bison 2.6.4. */\n\n/* Bison interface for Yacc-like parsers in C\n \n Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation, Inc.\n \n This program is free software: you can redistribute it and/or modify\n it under the terms of the GNU General...
595
0
{"language": "c", "success": true, "metadata": {"lines": 165, "avg_line_length": 26.49, "nodes": 518, "errors": 0, "source_hash": "a3ddaac483a2ac0d54557ca4b37dd8b9b7b784e59498aa84edb58961df7e7f42", "categorized_nodes": 266}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
912
c
#include<stdio.h> int func(int a) { printf("in func\n"); return a * 8; }
14
5
(translation_unit) "#include<stdio.h>\n\nint func(int a) {\n printf("in func\n");\n return a * 8;\n}\n" (preproc_include) "#include<stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (function_definition) "int func(int a) {\n printf("in func\n");\n return a * 8;\n}" (primitive_type) "int"...
36
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 14.0, "nodes": 21, "errors": 0, "source_hash": "2ec12fbeaf6aa516e1a819e9066f30177531c88372938a17d3bc3a33dad1b10c", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
913
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_string2.c :+: :+: :+: ...
27.23
65
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* ft_string2.c ...
511
0
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 27.23, "nodes": 327, "errors": 0, "source_hash": "9fa9afde870481d1db4817ad2caa2f73d2ba0cbabaed08e8b8539d294bb59b3a", "categorized_nodes": 204}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
914
c
/* * This header is generated by classdump-dyld 1.0 * on Saturday, August 24, 2019 at 9:51:19 PM Mountain Standard Time * Operating System: Version 12.4 (Build 16M568) * Image Source: /System/Library/PrivateFrameworks/VideosUI.framework/VideosUI * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>....
35.71
14
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Saturday, August 24, 2019 at 9:51:19 PM Mountain Standard Time\n* Operating System: Version 12.4 (Build 16M568)\n* Image Source: /System/Library/PrivateFrameworks/VideosUI.framework/VideosUI\n* classdump-dyld is licensed under GPLv3, Copyrig...
43
7
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 35.71, "nodes": 27, "errors": 0, "source_hash": "cd4ba20a6379999e59b7affdc354cbf7f2c8b5badfd4c296f6bb8e96f09ae4a3", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <T...
915
c
/* * Copyright (C) 2005-2006 Atmel Corporation * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include <linux/init.h> #include <linux/sysdev.h> #include <linux/seq_file.h> ...
27.79
276
(translation_unit) "/*\n * Copyright (C) 2005-2006 Atmel Corporation\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 version 2 as\n * published by the Free Software Foundation.\n */\n#include <linux/init.h>\n#include <linux/sysdev.h>\...
2,584
15
{"language": "c", "success": true, "metadata": {"lines": 276, "avg_line_length": 27.79, "nodes": 1585, "errors": 0, "source_hash": "d1e641eac8339ff40745378d1b4529be7fc23d70ae9709fdc8ae9ba2ef3a0ac3", "categorized_nodes": 1147}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
916
c
#pragma once #include <chrono> #define MAX_DELAY_LENGTH 44100 float buffer[MAX_DELAY_LENGTH * 4]; int offsetIndex; int currentIndex; int bufferLength; int delay_length; double feedbackLevel; double delayLevel; extern "C" __declspec(dllexport) void DelayInit(double _feedbackLevel, double _delayLevel) { int i = 0; ...
35.74
34
(translation_unit) "#pragma once\n\n#include <chrono>\n\n#define MAX_DELAY_LENGTH 44100\n\nfloat buffer[MAX_DELAY_LENGTH * 4];\nint offsetIndex;\nint currentIndex;\nint bufferLength;\nint delay_length;\ndouble feedbackLevel;\ndouble delayLevel;\n\nextern "C" __declspec(dllexport) void DelayInit(double _feedbackLevel, d...
403
11
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 35.74, "nodes": 257, "errors": 0, "source_hash": "e091ab16ced2faead5bd4ba9632d1af98b1dd05a74b51363bd357d2169c902b4", "categorized_nodes": 169}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
917
c
#ifndef PROJECT_COMMON_H #define PROJECT_COMMON_H /* Stack size in 32-bit words */ #define UARTTASKSTACKSIZE 2048 / sizeof(portSTACK_TYPE) #define I2CTASKSTACKSIZE 1024 / sizeof(portSTACK_TYPE) #define WIFITASKSTACKSIZE 2048 / sizeof(portSTACK_TYPE) #define PROJECT_QUEUE_LENGTH (3) #def...
32.56
73
(translation_unit) "#ifndef PROJECT_COMMON_H \n#define PROJECT_COMMON_H \n \n/* Stack size in 32-bit words */ \n#define UARTTASKSTACKSIZE 2048 / sizeof(portSTACK_TYPE) \n#define I2CTASKSTACKSIZE 1024 / sizeof(portSTACK_TYPE) \n#define WIFITASKSTACKSIZE 2048 / sizeof(portSTACK_TYPE) \n \n#define PROJE...
332
0
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 32.56, "nodes": 231, "errors": 0, "source_hash": "e1390de801a903479cd7c90b9efa061f8fe7a6c81f952e5c83c0e6dbf16cdd56", "categorized_nodes": 161}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
918
c
#pragma once #include <stdbool.h> #include <stdint.h> #include <kinc/backend/graphics4/ShaderHash.h> #ifdef __cplusplus extern "C" { #endif typedef struct { uint32_t hash; uint32_t offset; uint32_t size; uint8_t columns; uint8_t rows; } kinc_internal_shader_constant_t; typedef struct { ki...
19.44
61
(translation_unit) "#pragma once \n \n#include <stdbool.h> \n#include <stdint.h> \n \n#include <kinc/backend/graphics4/ShaderHash.h> \n \n#ifdef __cplusplus \nextern "C" { \n#endif \n \ntypedef struct { \n uint32_t hash; \n uint32_t offset; \n uint32_t size; \n uint8_t columns; \n uint8_t rows; \n} kinc_internal_shader...
224
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 19.44, "nodes": 160, "errors": 0, "source_hash": "0da84a6d1cb84b031bff75bb45a76c3adff9074c25cf9c5ec2002a871485f48d", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
919
c
#ifndef _COG_H_ #define _COG_H_ #include "cogtypes.h" #include "cogstring.h" #include "cogmath.h" #include "cogjson.h" #include "cogplatform.h" #include "coggraphics.h" #include "cogresourcemanager.h" #include "cogscenemanager.h" #include "cogapp.h" #include "cogscenegraph.h" #include "cognode.h" #endif
20.79
14
(translation_unit) "#ifndef _COG_H_\n#define _COG_H_\n\n#include "cogtypes.h"\n#include "cogstring.h"\n#include "cogmath.h"\n#include "cogjson.h"\n#include "cogplatform.h"\n#include "coggraphics.h"\n#include "cogresourcemanager.h"\n#include "cogscenemanager.h"\n#include "cogapp.h"\n#include "cogscenegraph.h"\n#include ...
74
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 20.79, "nodes": 40, "errors": 0, "source_hash": "215f5023ebe2ff71d3a7f81d1c3b53c9a040bd399aacc7240107b3b6581faaf7", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
920
c
// // WaterfallFlowLayout.h // OCCommon // // Created by 游峰 on 16/3/5. // Copyright © 2016年 yf. All rights reserved. // #import <UIKit/UIKit.h> @class WaterfallFlowLayout; @protocol WaterfallFlowLayoutDelegate <NSObject> @required - (CGFloat)waterfallFlowLayout:(WaterfallFlowLayout *)waterfallFlowLayout heightForI...
39.29
21
(translation_unit) "//\n// WaterfallFlowLayout.h\n// OCCommon\n//\n// Created by 游峰 on 16/3/5.\n// Copyright © 2016年 yf. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n@class WaterfallFlowLayout;\n@protocol WaterfallFlowLayoutDelegate <NSObject>\n@required\n- (CGFloat)waterfallFlowLayout:(WaterfallFlowLayout ...
169
24
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 39.29, "nodes": 114, "errors": 0, "source_hash": "2491e310d62705871456c95bec862ba7be4444640f604137c69c8e05e9d384b3", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <UIKit/...
921
c
/** @file syntacore_riscv32_v2 target. syntacore_riscv32_v2 is an open-source (https://github.com/syntacore/scr1) RISC-V compatible MCU core, designed by Syntacore. @copyright Syntacore 2016, 2017 @author sps (https://github.com/aka-sps) */ #include "sc_rv32_common.h" #include "target/target_type.h" #include "...
33.27
84
(translation_unit) "* @file\n\n syntacore_riscv32_v2 target.\n\n syntacore_riscv32_v2 is an open-source (https://github.com/syntacore/scr1) RISC-V compatible MCU core, designed by Syntacore.\n\n @copyright Syntacore 2016, 2017\n @author sps (https://github.com/aka-sps)\n*/\n#include "sc_rv32_common.h"\n\n#include "targ...
571
0
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 33.27, "nodes": 394, "errors": 0, "source_hash": "56ccb3abd1be4af87854b20ef0e8a6184c8aee5f983b03e653336ed3ced57e4e", "categorized_nodes": 214}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "nclu...
922
c
#ifndef ABSTRACT_TASK_H #define ABSTRACT_TASK_H #include <QMetaType> class AbstractTask { public: AbstractTask() {} virtual ~AbstractTask() {} virtual QString getName() const = 0; }; #endif // ABSTRACT_TASK_H
21.1
10
(translation_unit) "#ifndef ABSTRACT_TASK_H\n#define ABSTRACT_TASK_H\n\n#include <QMetaType>\n\nclass AbstractTask {\npublic:\n AbstractTask() {}\n virtual ~AbstractTask() {}\n virtual QString getName() const = 0;\n};\n\n#endif // ABSTRACT_TASK_H\n" (preproc_ifdef) "#ifndef ABSTRACT_TASK_H\n#define ABSTRACT_...
60
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.1, "nodes": 32, "errors": 0, "source_hash": "2daa4ad0b2ae218c1bafa3dcd683e12b2aa796fc353eec01e9a80984d22dcbb9", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef A...
923
c
/* !> @file !! Routines to access easily to the filesystem and to other C goodies. !! @author !! Copyright (C) 2007-2013 BigDFT group !! This file is distributed under the terms of the !! GNU General Public License, see ~/COPYING file !! or http://www.gnu.org/copyleft/gpl.txt . !! For the list of contr...
23.55
172
(translation_unit) "/*\n!> @file\n!! Routines to access easily to the filesystem and to other C goodies.\n!! @author\n!! Copyright (C) 2007-2013 BigDFT group \n!! This file is distributed under the terms of the\n!! GNU General Public License, see ~/COPYING file\n!! or http://www.gnu.org/copyleft/gpl.txt .\...
1,598
1
{"language": "c", "success": true, "metadata": {"lines": 172, "avg_line_length": 23.55, "nodes": 1064, "errors": 0, "source_hash": "e2d5906e062b50bd580f87e37b2217ffa0a8ed38e0bc523118f9cc3c43349f02", "categorized_nodes": 664}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
924
c
 #pragma once //! 処理失敗を表すビットマスク static const u32 FAIL_MASK = (1 << 31); //! リターンコードの定義 enum ReturnCode { R_SUCCESS_BASE = 0x00000000, R_SUCCESS, //!< 正常終了 R_FAIL_BASE = FAIL_MASK, R_FAIL, //!< 異常終了 R_FAIL_MULTIPLE_INITIALIZE, //!< 多重初期化 R_FAIL_MULTIPLE_FINALIZE, //!< 多重解放 R_FAIL_NOT_IMPLEME...
16.56
39
(translation_unit) "ragma once \n \n//! 処理失敗を表すビットマスク \nstatic const u32 FAIL_MASK = (1 << 31); \n \n//! リターンコードの定義 \nenum ReturnCode { \n R_SUCCESS_BASE = 0x00000000, \n R_SUCCESS, //!< 正常終了 \n \n R_FAIL_BASE = FAIL_MASK, \n \n R_FAIL, //!< 異常終了 \n R_FAIL_MULTIPLE_INITIALIZE, //!< 多重初期化 \n R_FAIL_MULTIPLE_FINALIZE, /...
143
7
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 16.56, "nodes": 83, "errors": 0, "source_hash": "3b4a085e381e3d8722cdd86c569ff29a89bd163671bde2ee91a47fa0caf11c4b", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma onc...
925
c
#define crypto_stream_chacha20_e_amd64_3_KEYBYTES 32 #define crypto_stream_chacha20_e_amd64_3_NONCEBYTES 8
52.5
2
(translation_unit) "#define crypto_stream_chacha20_e_amd64_3_KEYBYTES 32\n#define crypto_stream_chacha20_e_amd64_3_NONCEBYTES 8\n" (preproc_def) "#define crypto_stream_chacha20_e_amd64_3_KEYBYTES 32\n" (#define) "#define" (identifier) "crypto_stream_chacha20_e_amd64_3_KEYBYTES" (preproc_arg) "32" (prepr...
9
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 52.5, "nodes": 8, "errors": 0, "source_hash": "913dcbf4a564730acd095248588427038bf832e68d98d208a62f4bb6441a9d31", "categorized_nodes": 2}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define crypto...
926
c
// reversing sparse matrix #include <stdio.h> int main() { int i, j, matrix[3][10], row, col, total, temp, array[10][10]; i = j = temp = total = row = col = 0; printf("**Works only with ascending order of rows and column input**\n\n"); printf("row: "); scanf("%d", &row); printf("Column: "); scanf("%d",...
14.31
90
(translation_unit) "// reversing sparse matrix\n\n#include <stdio.h>\n\nint main()\n{\n int i, j, matrix[3][10], row, col, total, temp, array[10][10];\n \n i = j = temp = total = row = col = 0;\n \n printf("**Works only with ascending order of rows and column input**\n\n");\n \n printf("row: ");\n scanf("%d", &row);\n ...
676
0
{"language": "c", "success": true, "metadata": {"lines": 90, "avg_line_length": 14.31, "nodes": 352, "errors": 0, "source_hash": "4c1f7324836e1414cb0cbffc33c88e72acdf012c444932f613db2ac26939bb17", "categorized_nodes": 265}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
927
c
#pragma once #include <xenon/ict/unit.h> class itu_unit { public: void register_tests(ict::unit_test<itu_unit> &ut) { ut.add(&itu_unit::host); ut.add(&itu_unit::bit_lengths); ut.add(&itu_unit::splits); ut.add(&itu_unit::sanity); } /* Tests */ void host(); void bit...
22.19
16
(translation_unit) "#pragma once\n#include <xenon/ict/unit.h>\n\nclass itu_unit {\n public:\n void register_tests(ict::unit_test<itu_unit> &ut) {\n ut.add(&itu_unit::host);\n ut.add(&itu_unit::bit_lengths);\n ut.add(&itu_unit::splits);\n ut.add(&itu_unit::sanity);\n }\n\n /* Tests ...
140
6
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 22.19, "nodes": 78, "errors": 0, "source_hash": "59512060e4ff344d77d7dccecca8c619adf14533ee0fd636f0a98bc05a987222", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
928
c
#include <iomanip> #include <iostream> using namespace std; void displayBits(unsigned value) { const int SHIFT = 8 * sizeof(unsigned) - 1; const unsigned MASK = 1 << SHIFT; // mask = 1000 000 000 000 rn cout << setw(10) << value << " = "; // display bits for (unsigned i = 1; i <= SHIFT + 1; ++ i) { cout <<...
23.84
19
(translation_unit) "#include <iomanip>\n#include <iostream>\nusing namespace std;\n\nvoid displayBits(unsigned value)\n{\n const int SHIFT = 8 * sizeof(unsigned) - 1;\n const unsigned MASK = 1 << SHIFT; // mask = 1000 000 000 000 rn\n \n cout << setw(10) << value << " = ";\n\n // display bits\n for (unsigned i = 1; i <...
168
1
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 23.84, "nodes": 117, "errors": 0, "source_hash": "50f1f9695123b176cd95b8a068e1242adf98648c914bf86e4646d089b3117b87", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
929
c
/* ************ TEST SUITE ************* ** Compile with: ** cc -DDEBUG -Wall -O0 -o dbgtest dbgtest.c */ /* ** (C) 2018 by <NAME> (<EMAIL>) */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include "dbg.h" int main(int argc, char *argv[]) { int volatile x; dbginf("Testing %s (argc: %d)","...
18.82
60
(translation_unit) "/* ************ TEST SUITE *************\n** Compile with:\n** cc -DDEBUG -Wall -O0 -o dbgtest dbgtest.c\n*/\n\n/* \n** (C) 2018 by <NAME> (<EMAIL>)\n*/\n\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n\n#include "dbg.h"\n\nint main(int argc, char *argv[])\n{\n int volatile x...
455
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 18.82, "nodes": 217, "errors": 0, "source_hash": "0046a6a16f30b1e7a7a3263c72a4be887d78171a6fabd05a086da82fc8633870", "categorized_nodes": 160}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
930
c
// // NotifactionView.h // Qlink // // Created by 旷自辉 on 2018/5/3. // Copyright © 2018年 pan. All rights reserved. // #import <UIKit/UIKit.h> @interface NotifactionView : UIView @property (weak, nonatomic) IBOutlet UIImageView *iconImgView; @property (weak, nonatomic) IBOutlet UILabel *lblName; @property (weak, no...
32.22
18
(translation_unit) "//\n// NotifactionView.h\n// Qlink\n//\n// Created by 旷自辉 on 2018/5/3.\n// Copyright © 2018年 pan. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface NotifactionView : UIView\n@property (weak, nonatomic) IBOutlet UIImageView *iconImgView;\n@property (weak, nonatomic) IBOutlet UILab...
161
26
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 32.22, "nodes": 115, "errors": 0, "source_hash": "bb0af45c43cd751eccd303289fde3169ded45069299d0d6d634cdae85b2e64f3", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit/UI...
931
c
#include <stdlib.h> static double c_strtod(const char *nptr, char **endptr) { return strtod(nptr,endptr); } static long c_strtol(const char *nptr, char **endptr, int base) { return strtol(nptr,endptr,base); } static long long c_strtoll(const char *nptr, char **endptr, int base) { return strtoll(nptr,endptr,...
26.05
21
(translation_unit) "#include <stdlib.h>\nstatic double c_strtod(const char *nptr, char **endptr)\n{\n return strtod(nptr,endptr);\n}\nstatic long c_strtol(const char *nptr, char **endptr, int base)\n{\n return strtol(nptr,endptr,base);\n}\nstatic long long c_strtoll(const char *nptr, char **endptr, int base)\n{\n...
226
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 26.05, "nodes": 142, "errors": 0, "source_hash": "1f20455910f4e04fe8aa2a2b68cb1eb0039e4c3bfb57c8b39d321ffbdff21f01", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
932
c
#ifndef PHGMacros_h #define PHGMacros_h #define __deprecated__(s) __attribute__((deprecated(s))) #define weakify(var) __weak typeof(var) __weak_##var = var; #define strongify(var) \ _Pragma("clang diagnostic push") \ _Pragma("clang diagnostic ignored \"-Wshadow\"") \ __strong typeof(var) var = __weak_##var; \ _Pragm...
44.75
8
(translation_unit) "#ifndef PHGMacros_h\n#define PHGMacros_h\n\n#define __deprecated__(s) __attribute__((deprecated(s)))\n\n#define weakify(var) __weak typeof(var) __weak_##var = var;\n\n#define strongify(var) \\n_Pragma("clang diagnostic push") \\n_Pragma("clang diagnostic ignored \"-Wshadow\"") \\n__strong typeof(var...
33
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 44.75, "nodes": 23, "errors": 0, "source_hash": "f1e9b718a18c1350c1a6db7fc1f25927701d786cd6df6835e42c41851530cd49", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef P...
933
c
// // ViewController.h // SRGModelEvent // // Created by nori0620 on 2014/12/29. // Copyright (c) 2014年 soragoto. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
18.73
11
(translation_unit) "//\n// ViewController.h\n// SRGModelEvent\n//\n// Created by nori0620 on 2014/12/29.\n// Copyright (c) 2014年 soragoto. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ViewController : UIViewController\n\n\n@end\n\n" (comment) "//" (comment) "// ViewController.h" (comment...
22
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 18.73, "nodes": 12, "errors": 0, "source_hash": "71221760475ec673ad82078974b4ca286816c158b9bc543473e757e7db295e4d", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <UIK...
934
c
#include <klingklang/base.h> #include <klingklang/device.h> #include <klingklang/format.h> #include <klingklang/util.h> #include <portaudio.h> typedef struct kk_device_portaudio kk_device_portaudio_t; struct kk_device_portaudio { kk_device_t base; PaStream *handle; }; static int device_init (kk_device_t *); sta...
28.56
157
(translation_unit) "#include <klingklang/base.h>\n#include <klingklang/device.h>\n#include <klingklang/format.h>\n#include <klingklang/util.h>\n\n#include <portaudio.h>\n\ntypedef struct kk_device_portaudio kk_device_portaudio_t;\n\nstruct kk_device_portaudio {\n kk_device_t base;\n PaStream *handle;\n};\n\nstatic in...
1,270
0
{"language": "c", "success": true, "metadata": {"lines": 157, "avg_line_length": 28.56, "nodes": 763, "errors": 0, "source_hash": "bdbfc617049d8323c4795e3dd9f87cab18930917a0094dac6fb3c0794c8a6781", "categorized_nodes": 547}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
935
c
#include <vector> #include <unordered_set> #include <unordered_map> #include <Rcpp.h> // https://homepages.inf.ed.ac.uk/rbf/HIPR2/thin.htm // # nocov start // -- this is not used at present struct filter { const std::vector <bool> f; const std::vector <int> x, y; }; struct filters_thin { filter fa1 {{f...
32.61
99
(translation_unit) "#include <vector>\n#include <unordered_set>\n#include <unordered_map>\n\n#include <Rcpp.h>\n\n// https://homepages.inf.ed.ac.uk/rbf/HIPR2/thin.htm\n\n// # nocov start\n// -- this is not used at present\n\nstruct filter {\n const std::vector <bool> f;\n const std::vector <int> x, y;\n};\n\nstru...
1,015
36
{"language": "c", "success": true, "metadata": {"lines": 99, "avg_line_length": 32.61, "nodes": 522, "errors": 0, "source_hash": "db93028be5869b6c9e71ed7ab499545c9539de9c6702f18b50d28585096aee7f", "categorized_nodes": 403}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
936
c
// // GetEndBackTime.h // Chat // // Created by 韩微 on 2017/9/20. // Copyright © 2017年 ronglian. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> /** 进入后台block typedef */ typedef void(^YTHandlerEnterBackgroundBlock)(NSNotification * _Nonnull note, NSTimeInterval stayBackgroundTime)...
28.32
19
(translation_unit) "//\n// GetEndBackTime.h\n// Chat\n//\n// Created by 韩微 on 2017/9/20.\n// Copyright © 2017年 ronglian. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n\n/** 进入后台block typedef */\ntypedef void(^YTHandlerEnterBackgroundBlock)(NSNotification * _Nonnull note, NS...
90
9
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 28.32, "nodes": 56, "errors": 0, "source_hash": "982fbe34d9cf08c7878e7e6be40a77957214194d435b4e300cba3bd518d6a92a", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <Foundat...
937
c
/** * This header is generated by class-dump-z 0.2a. * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3. * * Source: (null) */ #import "IContactMgrExt.h" #import "MemberDataDelegate.h" #import "MemberListViewController.h" @class NSString; @interface ChatRoomListViewController : MemberListVie...
32.53
32
(translation_unit) "/**\n * This header is generated by class-dump-z 0.2a.\n * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3.\n *\n * Source: (null)\n */\n\n#import "IContactMgrExt.h"\n#import "MemberDataDelegate.h"\n#import "MemberListViewController.h"\n\n@class NSString;\n\n@interface ChatRoomL...
315
26
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 32.53, "nodes": 192, "errors": 0, "source_hash": "23b4a30895b7dbc8f5402877e2e648b8179657f6a9f8695c14ade7bdc3d25f84", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
938
c
unsigned int nbOfPrimesFound(unsigned int);
43
1
(translation_unit) "unsigned int nbOfPrimesFound(unsigned int);\n" (declaration) "unsigned int nbOfPrimesFound(unsigned int);" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (function_declarator) "nbOfPrimesFound(unsigned int)" (identifier) "nbOfPrimesFoun...
15
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 43.0, "nodes": 11, "errors": 0, "source_hash": "adee72c603eec734180fae32da220bb22d9372063ae9f5120984f540edab86ee", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "unsigned int ...
939
c
#pragma once #include <TML/System/Math/Vector2.h> #include <TML/Export.h> namespace tml { class TML_API Camera { public: Camera(); explicit Camera(const tml::Vector2f& pos, float zoom = 1.0f, float rotation = 0.0f); void Move(const Vector2f& offset); void Zoom(float amount)...
37.52
27
(translation_unit) "#pragma once\n#include <TML/System/Math/Vector2.h>\n#include <TML/Export.h>\n\nnamespace tml\n{\n class TML_API Camera\n {\n public:\n Camera();\n explicit Camera(const tml::Vector2f& pos, float zoom = 1.0f, float rotation = 0.0f);\n\n void Move(const Vector2f& offset);...
256
13
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 37.52, "nodes": 152, "errors": 0, "source_hash": "cebe12459cf00e691ace818ed1db9064f0616f37cd2565e1c35645bebc494119", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
940
c
#pragma once // Standard libraries // Third-party libraries #include <etl/algorithm.h> #include <etl/array.h> #include <etl/delegate.h> #include <PacketSerial.h> // Phyllo #include "Phyllo/Types.h" #include "Phyllo/Util/Optional.h" #include "Phyllo/Protocol/Types.h" #include "StreamLink.h" // Chunked Stream layer h...
39.18
97
(translation_unit) "#pragma once\n\n// Standard libraries\n\n// Third-party libraries\n#include <etl/algorithm.h>\n#include <etl/array.h>\n#include <etl/delegate.h>\n#include <PacketSerial.h>\n\n// Phyllo\n#include "Phyllo/Types.h"\n#include "Phyllo/Util/Optional.h"\n#include "Phyllo/Protocol/Types.h"\n#include "Stream...
785
31
{"language": "c", "success": true, "metadata": {"lines": 97, "avg_line_length": 39.18, "nodes": 449, "errors": 0, "source_hash": "1c4b7698b9498655f1f007fb6262d6e26965b27f9440c974a4d0cb411b367b0d", "categorized_nodes": 296}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
941
c
#include <stdio.h> #include <stdlib.h> #include <time.h> int main(void) { // указатель файла matr.dat FILE *fPtr; //кол-во элементов матрицы, порядок матрицы(квадратной) int num, n; //указатель,представляющий собой начальный адрес хренения элементов массива float *p; // счётчик записей - д...
29.43
104
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <time.h>\n\n\nint main(void)\n{\n // указатель файла matr.dat\n FILE *fPtr;\n //кол-во элементов матрицы, порядок матрицы(квадратной)\n int num, n;\n //указатель,представляющий собой начальный адрес хренения элементов массива\n floa...
643
0
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 29.43, "nodes": 330, "errors": 0, "source_hash": "c36ac9d8ff0c78c3e26e638352fb42b0df996ea88dabd357dd6aec564fbb27be", "categorized_nodes": 224}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
942
c
#include "common_structs.h" #include "vmlinux.h" #include <bpf/bpf_core_read.h> #include <bpf/bpf_helpers.h> #include <bpf/bpf_tracing.h> #include <linux/errno.h> char LICENSE[] SEC("license") = "Dual BSD/GPL"; #define FILE_NAME_LEN 32 #define NAME_MAX 255 struct file_path { unsigned char path[NAME_MAX]; }; st...
34.4
101
(translation_unit) "#include "common_structs.h"\n#include "vmlinux.h"\n#include <bpf/bpf_core_read.h>\n#include <bpf/bpf_helpers.h>\n#include <bpf/bpf_tracing.h>\n#include <linux/errno.h>\n\nchar LICENSE[] SEC("license") = "Dual BSD/GPL";\n\n#define FILE_NAME_LEN 32\n#define NAME_MAX 255\n\nstruct file_path {\n unsi...
1,022
8
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 34.4, "nodes": 631, "errors": 0, "source_hash": "51fa8aa21ec3c5c07d1c0c7b41b53d09c6a07f94f47b3846819da4a73093e312", "categorized_nodes": 473}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
943
c
#pragma once #include "Platform.h" #include <string> // API Specific Includes #if OS_WINDOWS #include <WinSock2.h> #else #include <sys/socket.h> #include <arpa/inet.h> #include <unistd.h> #include <netinet/in.h> #include <netinet/in.h> #include <netinet/tcp.h> #include <sys/ioctl.h> typed...
15.19
43
(translation_unit) "#pragma once \n \n#include "Platform.h" \n \n#include <string> \n \n// API Specific Includes \n#if OS_WINDOWS \n #include <WinSock2.h> \n#else \n #include <sys/socket.h> \n #include <arpa/inet.h> \n #include <unistd.h> \n #include <netinet/in.h> \n #include <netinet/in.h> \n #include <netinet/tcp.h>...
160
6
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 15.19, "nodes": 110, "errors": 0, "source_hash": "554bac1d537ad2320514b598d3505dad4289c34531e9e954389d1452e12cb2f7", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
944
c
/* * Copyright (c) 2011 The Chromium OS Authors. * * See file CREDITS for list of people who contributed to this * project. * * 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...
26.91
157
(translation_unit) "/*\n * Copyright (c) 2011 The Chromium OS Authors.\n *\n * See file CREDITS for list of people who contributed to this\n * project.\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License as\n * published by the Free Softw...
1,101
0
{"language": "c", "success": true, "metadata": {"lines": 157, "avg_line_length": 26.91, "nodes": 604, "errors": 0, "source_hash": "4bd460680a03f6a86812c7a2e26fca39a6f81a720bcd0f38b8a1b404ebf3b327", "categorized_nodes": 438}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
945
c
/* ChibiOS/RT - Copyright (C) 2006-2013 <NAME> 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 ap...
31.47
190
(translation_unit) "/* \n ChibiOS/RT - Copyright (C) 2006-2013 <NAME> \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 \...
292
0
{"language": "c", "success": true, "metadata": {"lines": 190, "avg_line_length": 31.47, "nodes": 187, "errors": 0, "source_hash": "b66990d89067e52374df409d27c663f1a2a6e77008059adcfc2e71b5e9d48d81", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
946
c
# /* # * Created by <NAME> on 2021/05/25. # */ # # ifndef OPTIONAL14_OPTIONAL_INTERNAL_HASH_H_ # define OPTIONAL14_OPTIONAL_INTERNAL_HASH_H_ # # include <functional> # include <type_traits> namespace optional14 { namespace internal { namespace optional { struct not_constructible { not_constructible() = delete; };...
23.08
26
(translation_unit) "# /*\n# * Created by <NAME> on 2021/05/25.\n# */\n#\n# ifndef OPTIONAL14_OPTIONAL_INTERNAL_HASH_H_\n# define OPTIONAL14_OPTIONAL_INTERNAL_HASH_H_\n#\n# include <functional>\n# include <type_traits>\n\nnamespace optional14 {\nnamespace internal {\nnamespace optional {\n\nstruct not_constructible {\...
118
13
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 23.08, "nodes": 76, "errors": 0, "source_hash": "0c2dabf727367e113ba88008d8e9a5ff09ebbce0c1f74e93d33cac9cfcc2e214", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "# /*\n# * Creat...
947
c
#include<stdio.h> int fatorial(int); main() { int x; printf("Digite um numero: "); scanf("%d", &x); printf("O fatorial desse numero e: %d", fatorial(x)); } int fatorial(int x) { int aux = 1, i = x; while(i != 1) { aux *= i; i--; } return aux; }
11.29
24
(translation_unit) "#include<stdio.h> \n \nint fatorial(int); \n \nmain() { \n int x; \n \n printf("Digite um numero: "); \n scanf("%d", &x); \n \n printf("O fatorial desse numero e: %d", fatorial(x)); \n} \n \nint fatorial(int x) { \n int aux = 1, i = x; \n \n while(i != 1) { \n aux *= i; \n \n i--; \n } \n \...
124
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 11.29, "nodes": 67, "errors": 0, "source_hash": "182e6f98bbc523e152490a160a06dd579e9716a9b6b2cc6002a94bba9b29c188", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
948
c
#define GL_DEPRECATED __attribute__((deprecated)) #define GL_DEPRECATED_MSG(msg) __attribute((deprecated((msg)))) // Mac Options #define USE_CORE_PROFILE_32 0 // not using it as default because it's incompatible with GL-based CIContext // iOS Options #define USE_GLES3 0 #if TARGET_OS_IPHONE //#define USE_GLES3 #d...
25.9
48
(translation_unit) "#define GL_DEPRECATED __attribute__((deprecated))\n#define GL_DEPRECATED_MSG(msg) __attribute((deprecated((msg))))\n\n// Mac Options\n#define USE_CORE_PROFILE_32 0 // not using it as default because it's incompatible with GL-based CIContext\n\n// iOS Options\n#define USE_GLES3 0\n\n#if TARGET_OS_IPH...
152
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 25.9, "nodes": 141, "errors": 0, "source_hash": "e0051e708a902f8af70a3b3b2cff9ae072b4f9355706e7feb175a45acb25ce3e", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define GL...
949
c
#include <stdio.h> #include <mpi.h> #include <math.h> #include <stdlib.h> #include <time.h> #include <unistd.h> #include <omp.h> #include "../funcs.h" #define ROW_SIZE 320 #define COLUMN_SIZE 320 #define REPEAT_TIMES 20 #define MAX_TIMES 500 #define TERMCHECK_TIMES 10 int main() { MPI_Comm comm; int ndims,...
35.23
215
(translation_unit) "#include <stdio.h>\n#include <mpi.h>\n#include <math.h>\n#include <stdlib.h>\n#include <time.h>\n#include <unistd.h>\n#include <omp.h>\n\n#include "../funcs.h"\n\n#define ROW_SIZE 320\n#define COLUMN_SIZE 320\n\n#define REPEAT_TIMES 20\n#define MAX_TIMES 500\n#define TERMCHECK_TIMES 10\n\nint m...
1,875
0
{"language": "c", "success": true, "metadata": {"lines": 215, "avg_line_length": 35.23, "nodes": 1124, "errors": 0, "source_hash": "b2c9603c843255af0a8b49778d1e566b96378223c2a46a5a5f9e48e410f3fa41", "categorized_nodes": 839}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
950
c
/* SPDX-License-Identifier: ISC */ /* * Authors: <NAME> <<EMAIL>> * * Copyright (c) 2018 Arm Ltd. * * Permission to use, copy, modify, and/or distribute this software * for any purpose with or without fee is hereby granted, provided * that the above copyright notice and this permission notice appear * in all co...
32.41
66
(translation_unit) "/* SPDX-License-Identifier: ISC */\n/*\n * Authors: <NAME> <<EMAIL>>\n *\n * Copyright (c) 2018 Arm Ltd.\n *\n * Permission to use, copy, modify, and/or distribute this software\n * for any purpose with or without fee is hereby granted, provided\n * that the above copyright notice and this permissio...
450
0
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 32.41, "nodes": 250, "errors": 0, "source_hash": "35896df7c86fbf485266a60e30d158f1130cbc7a937b879fe52cc1a627e89b89", "categorized_nodes": 179}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
951
c
#ifndef ALIANALYSISTASKGLOBALQA_H #define ALIANALYSISTASKGLOBALQA_H /* See cxx source for full Copyright notice */ //----------------------------------------------------------------- // AliAnalysisTaskGlobalQA class // This task is for running the GlobalQA over already existing ESDs // Origi...
34.44
39
(translation_unit) "#ifndef ALIANALYSISTASKGLOBALQA_H\n#define ALIANALYSISTASKGLOBALQA_H\n\n/* See cxx source for full Copyright notice */\n\n//-----------------------------------------------------------------\n// AliAnalysisTaskGlobalQA class\n// This task is for running the GlobalQA over already exis...
302
11
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 34.44, "nodes": 185, "errors": 0, "source_hash": "cd98c93d4400ea5ec434a600eb0fe84e7ea77911bed8bcdf61a3c84023571e4e", "categorized_nodes": 146}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
952
c
/* * c 2001 PPC 64 Team, IBM Corp * * 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 version * 2 of the License, or (at your option) any later version. * * /de...
24.7
123
(translation_unit) "/*\n * c 2001 PPC 64 Team, IBM Corp\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * as published by the Free Software Foundation; either version\n * 2 of the License, or (at your option) an...
880
1
{"language": "c", "success": true, "metadata": {"lines": 123, "avg_line_length": 24.7, "nodes": 570, "errors": 0, "source_hash": "98ad8f64941796f2f719614bf57fb94e1a428b6bf39cbb1d729b462256c3ee7c", "categorized_nodes": 412}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
953
c
/************************************************************************* * Copyright (C) [2019] by Cambricon, Inc. All rights reserved * * 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 a...
29.4
100
(translation_unit) "/*************************************************************************\n * Copyright (C) [2019] by Cambricon, Inc. All rights reserved\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 obtai...
397
13
{"language": "c", "success": true, "metadata": {"lines": 100, "avg_line_length": 29.4, "nodes": 193, "errors": 0, "source_hash": "7e13d65a7277b2bf47911f79f2d158cde6577347346cfbd55371f817a351503a", "categorized_nodes": 139}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
954
c
// bl.h #ifndef BL_H #define BL_H #include <vector> using namespace std; #include "node.h" #include <cassert> #include <map> #include <iostream> using namespace std; class BucketList{ public: // constructor and destructor BucketList(int max_num_pins) { max_gain_ = -max_num_pins; max_num_pins_...
28.6
84
(translation_unit) "// bl.h\n#ifndef BL_H\n#define BL_H\n\n#include <vector>\nusing namespace std;\n\n#include "node.h"\n#include <cassert>\n#include <map>\n#include <iostream>\nusing namespace std;\n\nclass BucketList{\npublic:\n // constructor and destructor\n BucketList(int max_num_pins) {\n max_gain_ =...
753
9
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 28.6, "nodes": 473, "errors": 0, "source_hash": "1e32d1a137bcfaefa04e4709563bf7132f193afe776eb8831c0d1e54de1834f6", "categorized_nodes": 317}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
955
c
#ifndef CLASS_MYEVENTHANDLER #define CLASS_MYEVENTHANDLER #include <ncine/IAppEventHandler.h> #include <ncine/IInputEventHandler.h> #include <nctl/StaticArray.h> namespace nctl { class String; } namespace ncine { class AppConfiguration; class Texture; class SceneNode; class Sprite; class Font; class TextNode; } ...
29.96
49
(translation_unit) "#ifndef CLASS_MYEVENTHANDLER\n#define CLASS_MYEVENTHANDLER\n\n#include <ncine/IAppEventHandler.h>\n#include <ncine/IInputEventHandler.h>\n#include <nctl/StaticArray.h>\n\nnamespace nctl {\n\nclass String;\n\n}\n\nnamespace ncine {\n\nclass AppConfiguration;\nclass Texture;\nclass SceneNode;\nclass S...
420
32
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 29.96, "nodes": 251, "errors": 0, "source_hash": "088b10ca57448905717d64f5fe1376ef024e934b2790a8f6700458688972f9f9", "categorized_nodes": 159}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
956
c
#include <linux/kernel.h> #include <linux/module.h> #include <linux/export.h> #include <linux/init.h> #include <linux/device.h> #include <linux/platform_device.h> #include <linux/io.h> #include <linux/proc_fs.h> #include <asm/uaccess.h> #define sn_readl(drvdata, off) __raw_readl(drvdata->serial_base + off) #define fus...
27.9
143
(translation_unit) "#include <linux/kernel.h>\n#include <linux/module.h>\n#include <linux/export.h>\n#include <linux/init.h>\n#include <linux/device.h>\n#include <linux/platform_device.h>\n#include <linux/io.h>\n#include <linux/proc_fs.h>\n#include <asm/uaccess.h>\n\n#define sn_readl(drvdata, off) __raw_readl(drvdata->...
1,213
4
{"language": "c", "success": true, "metadata": {"lines": 143, "avg_line_length": 27.9, "nodes": 730, "errors": 0, "source_hash": "523259ad71decd78e6ca340ef260b66db8cdd4bba31b3e1cd997099b0f149b7f", "categorized_nodes": 505}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
957
c
// // TYJsonModel.h // TuiYa // // Created by jessy on 15/6/14. // Copyright (c) 2015年 tuweia. All rights reserved. // #import <JSONModel/JSONModel.h> @interface XZJsonModel : JSONModel /** * 通过字典创建Model * * @param aDict 字典 * * @return model */ + (instancetype)modelWithDict:(NSDictionary *)aDict; @end
16.56
18
(translation_unit) "//\n// TYJsonModel.h\n// TuiYa\n//\n// Created by jessy on 15/6/14.\n// Copyright (c) 2015年 tuweia. All rights reserved.\n//\n\n#import <JSONModel/JSONModel.h>\n\n@interface XZJsonModel : JSONModel\n\n/**\n * 通过字典创建Model\n *\n * @param aDict 字典\n *\n * @return model\n */\n+ (instancetype)mode...
39
6
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 16.56, "nodes": 23, "errors": 0, "source_hash": "9ee4da1471881eecff837caf9954521c298ad17645359235237f60e097258481", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <JS...
958
c
#include <stdio.h> #include "../include/display.h" #include <string.h> #include <unistd.h> #include <stdlib.h> int main(int argc, char * argv[]){ SettingsPtr my_settings = (SettingsPtr)(malloc(sizeof(Settings))); my_settings->mode = 0; enum { SINGLE_PLAYER, TWO_PLAYERS } mode = TWO_PLAYERS; int opt; opterr = 0; c...
22.79
29
(translation_unit) "#include <stdio.h>\n#include "../include/display.h"\n#include <string.h>\n#include <unistd.h>\n#include <stdlib.h>\nint main(int argc, char * argv[]){\n SettingsPtr my_settings = (SettingsPtr)(malloc(sizeof(Settings)));\n my_settings->mode = 0;\n enum { SINGLE_PLAYER, TWO_PLAYERS } mode = TWO_PLAYER...
239
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 22.79, "nodes": 146, "errors": 0, "source_hash": "caeed8c2387542ec1900089bd26498e1337d94b5b7f7a1c4b555eafba6b5316c", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
959
c
#ifndef PORTEXPANDER_H #define PORTEXPANDER_H #include "mxc_config.h" #include <stdint.h> #include <stdbool.h> /** * Structure type for configuring the portexpander. */ typedef struct { uint8_t mask; /**< Pin mask (multiple pins may be set) */ gpio_func_t func; /**< Function type */...
36.61
33
(translation_unit) "#ifndef PORTEXPANDER_H\n#define PORTEXPANDER_H\n\n#include "mxc_config.h"\n\n#include <stdint.h>\n#include <stdbool.h>\n\n/**\n * Structure type for configuring the portexpander.\n */\ntypedef struct {\n uint8_t mask; /**< Pin mask (multiple pins may be set) */\n gpio_func_t ...
271
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 36.61, "nodes": 193, "errors": 0, "source_hash": "a8b1c2a2232c72619feb36cc4c0b196be29cd9f57859ea202684b031d08dbb03", "categorized_nodes": 124}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
960
c
// // SettingsViewController.h // PlainText // // Created by <NAME> on 6/30/10. // #import "IFGenericTableViewController.h" @interface SettingsViewController : IFGenericTableViewController { } + (BOOL)showing; + (UINavigationController *)viewControllerForDisplayingSettings; @end
20.85
13
(translation_unit) "//\n// SettingsViewController.h\n// PlainText\n//\n// Created by <NAME> on 6/30/10.\n//\n\n#import "IFGenericTableViewController.h"\n\n\n@interface SettingsViewController : IFGenericTableViewController {\n}\n\n+ (BOOL)showing;\n+ (UINavigationController *)viewControllerForDisplayingSettings;\n\n@...
48
5
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 20.85, "nodes": 26, "errors": 0, "source_hash": "a58cc9a95b4ac4ef66e1a84c24c978f33b57c26dcee6c8a5f35d17f84e87316c", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
961
c
/* whoami -- who are you? responds your username Copyright (C) 2020 JIK, LLC. Written by: cth103 <<EMAIL>> */ #include <stdio.h> #include <pwd.h> #include <sys/types.h> #include <unistd.h> int main() { errno = 0; uid_t uid = geteuid(); if (uid == -1) { puts("cannot get euid"); return 1; } struct passw...
19.95
22
(translation_unit) "/* whoami -- who are you? responds your username\n Copyright (C) 2020 JIK, LLC.\n\n Written by: cth103 <<EMAIL>>\n*/\n\n#include <stdio.h>\n#include <pwd.h>\n#include <sys/types.h>\n#include <unistd.h>\n\nint main() {\n errno = 0;\n uid_t uid = geteuid();\n if (uid == -1) {\n puts("cannot get e...
129
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 19.95, "nodes": 76, "errors": 0, "source_hash": "e69752d0996ef6d274177d6484e67a98082fd18fe417b57d7dee644072199257", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
962
c
#include "ir.h" #include <stdbool.h> #define BETWEEN(val, anc, delta) \ ((val) > (anc) - (delta) && (val) < (anc) + (delta)) uint16_t capture1 = 0, capture2 = 0; bool is_first = true; static int32_t index = -1; static bool START_OCCURED = false; static uint32_t tmp, prevcom; static uint32_t *command; static void p...
25.74
77
(translation_unit) "#include "ir.h"\n#include <stdbool.h>\n\n#define BETWEEN(val, anc, delta) \\n ((val) > (anc) - (delta) && (val) < (anc) + (delta))\n\nuint16_t capture1 = 0, capture2 = 0;\nbool is_first = true;\n\nstatic int32_t index = -1;\nstatic bool START_OCCURED = false;\nstatic uint32_t tmp, prevcom;\nstatic u...
557
0
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 25.74, "nodes": 333, "errors": 0, "source_hash": "39944b855e94a07a36643c50a73729bd2e126ddbe50f849227ac3ad929bf4b00", "categorized_nodes": 236}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
963
c
#pragma once #ifdef _WIN32 #include <Windows.h> #include <errno.h> #include <malloc.h> #include <time.h> #define posix_memalign(p, a, s) (((*(p)) = _aligned_malloc((s), (a))), *(p) ?0 :errno) // from: https://github.com/openvswitch/ovs #ifndef RUSAGE_SELF #define RUSAGE_SELF 1 #endif #ifndef RUSAGE_CHILDREN #defin...
29.98
63
(ERROR) "#pragma once\n\n#ifdef _WIN32\n#include <Windows.h>\n#include <errno.h>\n#include <malloc.h>\n#include <time.h>\n\n#define posix_memalign(p, a, s) (((*(p)) = _aligned_malloc((s), (a))), *(p) ?0 :errno)\n\n// from: https://github.com/openvswitch/ovs\n\n#ifndef RUSAGE_SELF\n#define RUSAGE_SELF 1\n#endif\n\n#ifnd...
330
3
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 29.98, "nodes": 246, "errors": 0, "source_hash": "0561ffc52790d2a6cf4707c25424980fa3c271a1b3957361a4287f80314d250c", "categorized_nodes": 172}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#pragma once\n\n#ifdef _W...
964
c
#include <stdio.h> int main () { float n1,n2; printf ("Escreva dois valores: \n\n "); scanf ("%f", &n1); scanf ("%f", &n2); if (n1>n2){ printf ("O valor maior e: %.2f",n1); }else{ printf ("Valor maior e: %.2f",n2); } return 0; }
14.62
16
(translation_unit) "#include <stdio.h>\n\nint main ()\n\n{ float n1,n2;\n \n printf ("Escreva dois valores: \n\n ");\n scanf ("%f", &n1);\n scanf ("%f", &n2);\n \n if (n1>n2){\n printf ("O valor maior e: %.2f",n1);\n }else{\n printf ("Valor maior e: %.2f",n2);\n }\n \n return 0;\n}\n\n \n\n\n" (preproc_include...
111
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 14.62, "nodes": 49, "errors": 0, "source_hash": "c693a7353f928683efd8579bee043dd2fcf308c2cc1cc12bb237b36fdfb41938", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
965
c
#ifndef JUTIL_INTEGERS_H #define JUTIL_INTEGERS_H #include <stdint.h> /*#include <JUtil/Core/Macro.h> #define INTEGERS_ERR_INDEX 0x03 #ifndef JUTIL_DISABLE_INTEGERS //prevent errors when including c library headers //#define _SYS_TYPES_H 1 //#define _BITS_STDINT_INTN_H 1 //#define _BITS_STDINT_UINTN_H 1 //#...
28.52
201
(translation_unit) "#ifndef JUTIL_INTEGERS_H\n#define JUTIL_INTEGERS_H\n\n#include <stdint.h>\n\n/*#include <JUtil/Core/Macro.h>\n\n#define INTEGERS_ERR_INDEX 0x03\n\n#ifndef JUTIL_DISABLE_INTEGERS\n //prevent errors when including c library headers\n //#define _SYS_TYPES_H 1\n //#define _BITS_STDINT_INTN_H 1\n //#d...
13
0
{"language": "c", "success": true, "metadata": {"lines": 201, "avg_line_length": 28.52, "nodes": 10, "errors": 0, "source_hash": "d414cec893d8eaf62eead372db58df43c4a8b48ef0c84904a6dced4584b8a00e", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
966
c
// for stc89 #include "Arduino.h" #include <compiler.h> #include "bsp/compatible.h" #define INTERRUPT_NUMS 6 typedef void (*voidFuncPtr)(void); XDATA(voidFuncPtr, callback[INTERRUPT_NUMS]) = {NULL}; #define INTERRUPT_ISR(a,b) INTERRUPT(a,b){if (callback[b]) callback[b]();} INTERRUPT_ISR(int0_isr, 0) INTER...
28.52
27
(translation_unit) "// for stc89\n\n#include "Arduino.h"\n#include <compiler.h>\n#include "bsp/compatible.h"\n#define INTERRUPT_NUMS 6\n\ntypedef void (*voidFuncPtr)(void);\n\nXDATA(voidFuncPtr, callback[INTERRUPT_NUMS]) = {NULL};\n\n#define INTERRUPT_ISR(a,b) INTERRUPT(a,b){if (callback[b]) callback[b]();}\n\nI...
228
2
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 28.52, "nodes": 130, "errors": 0, "source_hash": "0f2e09a082626474e3c27b2e2d69f06498d84e8c3306cde2177a65b18ac1cc53", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
967
c
/* Plugin-SDK (Grand Theft Auto 3) header file Authors: GTA Community. See more here https://github.com/DK22Pac/plugin-sdk Do not delete this comment block. Respect others' work! */ #pragma once enum eEventType : unsigned int { EVENT_NONE = 0, EVENT_PED_FIGHT, EVENT_EVENT2, EVENT_COP_FI...
21.72
32
(translation_unit) "/*\n Plugin-SDK (Grand Theft Auto 3) header file\n Authors: GTA Community. See more here\n https://github.com/DK22Pac/plugin-sdk\n Do not delete this comment block. Respect others' work!\n*/\n#pragma once\n\nenum eEventType : unsigned int {\n EVENT_NONE = 0,\n EVENT_PED_FIGHT,\n ...
86
1
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 21.72, "nodes": 58, "errors": 0, "source_hash": "59a624e9dfdb4fb561ce349e8238a041c3ffed6cceafe0e3cf2447e5b2d580b8", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
968
c
/** * __ ____ * / /__ _ __ / __/ __ * / //_/(_)/ /_ / / ___ ____ ___ __ __ / /_ * / ,< / // __/_\ \ / _ \ / __// _ \/ // // __/ * /_/|_|/_/ \__//___// .__//_/ \___/\_,_/ \__/ * /_/ github.com/KitSprout * * @file kComman...
35.22
65
(translation_unit) "/**\n * __ ____\n * / /__ _ __ / __/ __ \n * / //_/(_)/ /_ / / ___ ____ ___ __ __ / /_ \n * / ,< / // __/_\ \ / _ \ / __// _ \/ // // __/ \n * /_/|_|/_/ \__//___// .__//_/ \___/\_,_/ \__/ \n * /_/ github.com/KitSprout ...
270
0
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 35.22, "nodes": 179, "errors": 0, "source_hash": "7c54c5090f9751acffa2ab3d7948eab885d33264a2f43792b01981557fbed8b8", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
969
c
#ifndef LIAR_H_ #define LIAR_H_ #include <sys/user.h> #define MSGBUF_SIZE (sizeof(struct msghdr) + CMSG_SPACE(sizeof(int))) // size of recvmsg buffer #define MAX_SOCKETS_COUNT 256 struct socket_info { int fdp; int fdc; }; struct child_info { int pid; int status; struct user_regs_struct regs; ...
22.64
28
(translation_unit) "#ifndef LIAR_H_\n#define LIAR_H_\n\n#include <sys/user.h>\n\n#define MSGBUF_SIZE (sizeof(struct msghdr) + CMSG_SPACE(sizeof(int))) // size of recvmsg buffer\n#define MAX_SOCKETS_COUNT 256\n\nstruct socket_info {\n int fdp;\n int fdc;\n};\n\nstruct child_info {\n int pid;\n int status;\n...
117
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 22.64, "nodes": 81, "errors": 0, "source_hash": "0725503478b7c3f42c5b0a2cc3be535db063d9a1a34484e3fc85ba996b237054", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
970
c
#import <UIKit/UIKit.h> @interface POIStreamAssetList : UIViewController <UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout, UIScrollViewDelegate> @property (nonatomic) IBOutlet UIView *vAboveSafe; @property (nonatomic) IBOutlet UIView *vNavigation; @property (nonatomic) IBOutle...
42.31
26
(translation_unit) "#import <UIKit/UIKit.h>\n\n@interface POIStreamAssetList : UIViewController <UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout, UIScrollViewDelegate>\n\n@property (nonatomic) IBOutlet UIView *vAboveSafe;\n@property (nonatomic) IBOutlet UIView *vNavigation;\n@pr...
325
47
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 42.31, "nodes": 233, "errors": 0, "source_hash": "a703e8dcd5c93c876ba38670a808984c57a455a84e05fc407eff321e8ec6ac34", "categorized_nodes": 137}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
971
c
// ======================================================================== // // Copyright 2009-2019 Intel Corporation // // // // Licensed under the Apache License, Version 2.0 (the "License"); // // y...
34.87
78
(translation_unit) "// ======================================================================== //\n// Copyright 2009-2019 Intel Corporation //\n// //\n// Licensed under the Apache License, Version 2.0 (the "Lice...
466
12
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 34.87, "nodes": 279, "errors": 0, "source_hash": "9b0647cc5ee416d0f41b620f8e9d4205e830c91869ecd55fc3c12b8763d7a0ac", "categorized_nodes": 192}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
972
c
#ifndef GPU_GPU_H #define GPU_GPU_H #include <stdbool.h> #include <stdint.h> extern void gpu_triangle(gpu_frame *frame, gpu_verts *verts, int index, bool fill); #endif
27
6
(translation_unit) "#ifndef GPU_GPU_H\n#define GPU_GPU_H\n\n#include <stdbool.h>\n#include <stdint.h>\n\nextern void gpu_triangle(gpu_frame *frame, gpu_verts *verts, int index, bool fill);\n\n#endif\n" (preproc_ifdef) "#ifndef GPU_GPU_H\n#define GPU_GPU_H\n\n#include <stdbool.h>\n#include <stdint.h>\n\nextern void gp...
43
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 27.0, "nodes": 36, "errors": 0, "source_hash": "45ae3a7a33168ee5cca31eb2323b2108f6400ed95053edc60d8a087393ef63d8", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef GP...
973
c
//******************************************************************************* // COPYRIGHT NOTES // --------------- // This is a part of the BCGControlBar Library // Copyright (C) 1998-2010 BCGSoft Ltd. // All rights reserved. // // This source code can be used, distributed or modified // only under terms and condi...
30.88
67
(translation_unit) "//*******************************************************************************\n// COPYRIGHT NOTES\n// ---------------\n// This is a part of the BCGControlBar Library\n// Copyright (C) 1998-2010 BCGSoft Ltd.\n// All rights reserved.\n//\n// This source code can be used, distributed or modified\n/...
275
12
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 30.88, "nodes": 163, "errors": 0, "source_hash": "b9a16e347aca4eebc4be7ed57ea343242cfa4de891532d7b1de24d58608370ca", "categorized_nodes": 121}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defi...
974
c
#ifndef _DEFINES_H_ #define _DEFINES_H_ #define WIDTH 20 #define HEIGHT 15 #define DEBUG 1 #if DEBUG #define PRE_SET_GENERATE_POS 0 #define PRE_SET_SNAKE_DIR 0 #if PRE_SET_GENERATE_POS #define SNAKE_X WIDTH - 1 #define SNAKE_Y 5 #define FOOD_X WIDTH - 1 #define FOOD_Y 0 #endif #if PRE_SET_SNAKE_DIR...
16.32
25
(translation_unit) "#ifndef _DEFINES_H_\n#define _DEFINES_H_\n\n#define WIDTH 20\n#define HEIGHT 15\n\n#define DEBUG 1\n\n#if DEBUG\n #define PRE_SET_GENERATE_POS 0\n #define PRE_SET_SNAKE_DIR 0\n \n #if PRE_SET_GENERATE_POS\n #define SNAKE_X WIDTH - 1\n #define SNAKE_Y 5\n \n #define FOOD_X WIDTH - 1\n #define FO...
77
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 16.32, "nodes": 75, "errors": 0, "source_hash": "1d98bd71c3c622287497fdb4486d254aaafef95af582b90368df9fe89a4c0cea", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
975
c
/* * Copyright (c) 2002, Intel Corporation. All rights reserved. * Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com * This file is licensed under the GPL license. For the full content * of this license, see the COPYING file at the top level of this * source tree. * Test nanosleep() on a variety of va...
29.11
108
(translation_unit) "/*\n * Copyright (c) 2002, Intel Corporation. All rights reserved.\n * Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com\n * This file is licensed under the GPL license. For the full content\n * of this license, see the COPYING file at the top level of this\n * source tree.\n\n * Test nan...
767
0
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 29.11, "nodes": 415, "errors": 0, "source_hash": "baf3423651f45cd3919e600e70f4dee50addbbbeddeb0f36902059d0c167dfde", "categorized_nodes": 301}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
976
c
#include "./shell.c" int main(int argc, char **argv){ char *line; char **args; int auxArgc; int status; do { printf("Insira seu comando: "); line = readLine(); args = splitLine(&auxArgc,line); status = execute(auxArgc, args); free(line); free(args); } while (status); return EXIT_S...
19.44
16
(translation_unit) "#include "./shell.c"\n\nint main(int argc, char **argv){\n char *line;\n char **args;\n int auxArgc;\n int status;\n\n do {\n printf("Insira seu comando: ");\n line = readLine();\n args = splitLine(&auxArgc,line);\n status = execute(auxArgc, args);\n\n free(line);\n free(args);\...
130
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 19.44, "nodes": 76, "errors": 0, "source_hash": "f943ce8561fb14660369362dfd302d2af4c3ff5810a5fc4b33befdd4bf8b2676", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
977
c
/* Description: This program executes the K-Means algorithm for random vectors of arbitrary number and dimensions Author: <NAME> (1046900) Year: 5 Parallel Programming in Machine Learning Problems Electrical and Computer Engineering Department, University of Patras System Specifications: ...
36.52
252
(translation_unit) "/*\nDescription:\n This program executes the K-Means algorithm for random vectors of arbitrary number\n and dimensions \n\nAuthor:\n <NAME> (1046900)\n Year: 5\n Parallel Programming in Machine Learning Problems\n Electrical and Computer Engineering Department, University of Patras...
1,510
0
{"language": "c", "success": true, "metadata": {"lines": 252, "avg_line_length": 36.52, "nodes": 853, "errors": 0, "source_hash": "6a97ad7afb30b507c88ba70118dc6b1e9e0a2f32d9fa910818c8cc036ce2284b", "categorized_nodes": 607}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
978
c
/* * Copyright (c) 1999 <NAME> <EMAIL> * * You may distribute under the terms of either the GNU General Public * License or the Artistic License, as specified in the README file. * */ #include <stdlib.h> #include <string.h> #include <stdio.h> #include <sys/unistd.h> void Perl_epoc_init(int *argcp, ...
21.12
211
(translation_unit) "/*\n * Copyright (c) 1999 <NAME> <EMAIL>\n * \n * You may distribute under the terms of either the GNU General Public\n * License or the Artistic License, as specified in the README file.\n *\n */\n\n#include <stdlib.h>\n#include <string.h>\n#include <stdio.h>\n#include <sys/unistd.h>\n\...
1,929
1
{"language": "c", "success": true, "metadata": {"lines": 211, "avg_line_length": 21.12, "nodes": 1218, "errors": 0, "source_hash": "2001e8376c8da9423b4f9472499c624577c3ae04121a2935e2cdd78b3bc5c5ee", "categorized_nodes": 763}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
979
c
/** * @file interface.h * The local interface */ #ifndef OUROBOROS_INTERFACE_H #define OUROBOROS_INTERFACE_H #include "ouroboros/global.h" #include "ouroboros/object.h" #include "ouroboros/container.h" #include "ouroboros/memoryfile.h" #include "ouroboros/journalfile.h" #include "ouroboros/indexedtable.h" #inclu...
39.2
116
(translation_unit) "/**\n * @file interface.h\n * The local interface\n */\n\n#ifndef OUROBOROS_INTERFACE_H\n#define OUROBOROS_INTERFACE_H\n\n#include "ouroboros/global.h"\n#include "ouroboros/object.h"\n#include "ouroboros/container.h"\n#include "ouroboros/memoryfile.h"\n#include "ouroboros/journalfile.h"\n#include ...
518
30
{"language": "c", "success": true, "metadata": {"lines": 116, "avg_line_length": 39.2, "nodes": 344, "errors": 0, "source_hash": "6d22e86c1c0b08e36a7219cc130f1b16181ca73bdadd66fded45e9b05e91dd09", "categorized_nodes": 251}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
980
c
#include <stdio.h> #include <dispatch/dispatch.h> #include <unistd.h> #include <stdlib.h> #include "dispatch_test.h" int done = 0; #define QUEUES 80 dispatch_queue_t queues[QUEUES]; #define BLOCKS 10000 union { size_t index; char padding[64]; } indices[BLOCKS]; size_t iterations = QUEUES * BLOCKS * 0.25; void ...
18.28
79
(translation_unit) "#include <stdio.h>\n#include <dispatch/dispatch.h>\n#include <unistd.h>\n#include <stdlib.h>\n\n#include "dispatch_test.h"\n\nint done = 0;\n\n#define QUEUES 80\ndispatch_queue_t queues[QUEUES];\n\n\n#define BLOCKS 10000\nunion {\n size_t index;\n char padding[64];\n} indices[BLOCKS];\n\nsize_t iter...
644
0
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 18.28, "nodes": 389, "errors": 0, "source_hash": "128e7c0c978cb2d0e2924d4abf6fcee9a2b36227650006b5706f8c2cce28f36b", "categorized_nodes": 266}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
981
c
/** * @file include/debug/socket_debug.h * * @author <NAME> */ #ifndef __MCUBE_DEBUG_SOCKET_DEBUG_H__ #define __MCUBE_DEBUG_SOCKET_DEBUG_H__ #ifndef __ASSEMBLY__ #if CONFIG_OPTION_DEBUG #if !CONFIG_ARCH_SIM /** * @fn static inline void print_msg(uint8_t *buf) * @brief print message. * * @param buf Buffer. ...
25.07
57
(translation_unit) "/**\n * @file include/debug/socket_debug.h\n *\n * @author <NAME>\n */\n#ifndef __MCUBE_DEBUG_SOCKET_DEBUG_H__\n#define __MCUBE_DEBUG_SOCKET_DEBUG_H__\n\n#ifndef __ASSEMBLY__\n\n#if CONFIG_OPTION_DEBUG\n\n#if !CONFIG_ARCH_SIM\n\n/**\n * @fn static inline void print_msg(uint8_t *buf)\n * @brief print...
257
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 25.07, "nodes": 149, "errors": 0, "source_hash": "888301bc1719b41593d214c35e449a20a4ae6a6dfe0a3df183fa68a68bbf56fb", "categorized_nodes": 109}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
982
c
/* * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
38.44
61
(translation_unit) "/*\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by...
446
38
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 38.44, "nodes": 262, "errors": 0, "source_hash": "142800c205193370dc307506230c137f92f8f516b04a3b5f10b28b9d1dc71625", "categorized_nodes": 177}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
983
c
/* $NetBSD$ */ /* * File "uio.c" is part of the UDFclient toolkit. * File $Id: uio.c,v 1.7 2011/02/01 20:43:41 reinoud Exp $ $Name: $ * * Copyright (c) 2004, 2005, 2006, 2011 * <NAME> <<EMAIL>> * All rights reserved. * * The UDFclient toolkit is distributed under the Clarified Artistic Licence. * A copy of ...
30.91
74
(translation_unit) "/* $NetBSD$ */\n\n/*\n * File "uio.c" is part of the UDFclient toolkit.\n * File $Id: uio.c,v 1.7 2011/02/01 20:43:41 reinoud Exp $ $Name: $\n *\n * Copyright (c) 2004, 2005, 2006, 2011\n * <NAME> <<EMAIL>>\n * All rights reserved.\n *\n * The UDFclient toolkit is distributed under the Clarified A...
337
0
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 30.91, "nodes": 208, "errors": 0, "source_hash": "1df912d9bb52f505c1c91ae55e45177329ce97f95157255a1ed78154d6532880", "categorized_nodes": 160}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
984
c
#ifndef TFileWalker_Rule_H #define TFileWalker_Rule_H #include "TFileWalker/Target.h" #include "TFileWalker/Path.h" #include "TFileWalker/OutputHandler.h" #include <TObject.h> #include <TKey.h> #include <TDirectory.h> #include <memory> namespace TFileWalker { /** * @brief A rule describes how to read object from...
36.85
46
(translation_unit) "#ifndef TFileWalker_Rule_H\n#define TFileWalker_Rule_H\n\n#include "TFileWalker/Target.h"\n#include "TFileWalker/Path.h"\n#include "TFileWalker/OutputHandler.h"\n#include <TObject.h>\n#include <TKey.h>\n#include <TDirectory.h>\n#include <memory>\n\nnamespace TFileWalker {\n /**\n * @brief A rule ...
330
19
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 36.85, "nodes": 176, "errors": 0, "source_hash": "f486d3197fa14b6d579af413b3dd9b554777d763394892127273fc6f2b25e740", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef TFileW...
985
c
/* * * This software was written by JimF jfoug AT cox dot net in * 2012-2013. No copyright is claimed, and the software is hereby * placed in the public domain. In case this attempt to disclaim * copyright and place the software in the public domain is deemed * null and void, then the software is Copyright (c) 20...
35.71
59
(translation_unit) "/*\n *\n * This software was written by JimF jfoug AT cox dot net in\n * 2012-2013. No copyright is claimed, and the software is hereby\n * placed in the public domain. In case this attempt to disclaim\n * copyright and place the software in the public domain is deemed\n * null and void, then the so...
177
0
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 35.71, "nodes": 139, "errors": 0, "source_hash": "722250ed27e225309b3371d7d4c9908e6ff1ad0530386912f29fd85aa7aef0d5", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
986
c
// Copyright (c) Improbable Worlds Ltd, All Rights Reserved #pragma once #include "Components/SceneComponent.h" #include "CoreMinimal.h" #include "TestUnrealComponents.generated.h" /** * Simple component that only contains normal replicated data */ UCLASS() class UDataOnlyComponent : public USceneComponent { GENE...
27.06
63
(translation_unit) "// Copyright (c) Improbable Worlds Ltd, All Rights Reserved\n\n#pragma once\n\n#include "Components/SceneComponent.h"\n#include "CoreMinimal.h"\n#include "TestUnrealComponents.generated.h"\n\n/**\n * Simple component that only contains normal replicated data\n */\nUCLASS()\nclass UDataOnlyComponent ...
288
17
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 27.06, "nodes": 164, "errors": 0, "source_hash": "5c3e31958110bc1477c8f4e0e5385e24f2cf77052dfe2f6f7dfb101419846721", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
987
c
////////////////////////////////////////////////////////////////////////// // Profile.h // // Copyright (C) 2015 Microsoft Corp. All Rights Reserved ////////////////////////////////////////////////////////////////////////// #pragma once XTOOLS_NAMESPACE_BEGIN class Profile { public: static void BeginRange(const st...
26.43
14
(translation_unit) "//////////////////////////////////////////////////////////////////////////\n// Profile.h\n//\n// Copyright (C) 2015 Microsoft Corp. All Rights Reserved\n//////////////////////////////////////////////////////////////////////////\n\n#pragma once\n\nXTOOLS_NAMESPACE_BEGIN\n\nclass Profile\n{\npublic:\...
55
2
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 26.43, "nodes": 23, "errors": 0, "source_hash": "ee3d770d38c83d6b8a4c2909b1cd50abc8e7156e50321f3f3258fcc06b86ed4b", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
988
c
/* * This file is released under the terms of the Artistic License. Please see * the file LICENSE, included in this package, for details. * * Copyright (C) 2007-2010 <NAME> * * Based on TPC-E Standard Specification Revision 1.10.0. */ #include <sys/types.h> #include <unistd.h> #include <postgres.h> #include <f...
32.78
251
(translation_unit) "/*\n * This file is released under the terms of the Artistic License. Please see\n * the file LICENSE, included in this package, for details.\n *\n * Copyright (C) 2007-2010 <NAME>\n *\n * Based on TPC-E Standard Specification Revision 1.10.0.\n */\n\n#include <sys/types.h>\n#include <unistd.h>\n#i...
2,039
0
{"language": "c", "success": true, "metadata": {"lines": 251, "avg_line_length": 32.78, "nodes": 1173, "errors": 0, "source_hash": "867e9f1548448b3e673aa06b896636b73d50e51d3e3934306a05f9a6c5658ffa", "categorized_nodes": 838}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
989
c
// // SV2DFaceMaskSTNode.h // SVEngine // Copyright 2017-2020 // <NAME>,<NAME>,<NAME>,<NAME>,<NAME>,<NAME> // #ifndef SV_2DFACEMASK_ST_NODE_H #define SV_2DFACEMASK_ST_NODE_H #include "SV2DFaceMaskNode.h" namespace sv { namespace node{ //sensetime class SVSTPointExt { public...
26.43
47
(translation_unit) "//\n// SV2DFaceMaskSTNode.h\n// SVEngine\n// Copyright 2017-2020\n// <NAME>,<NAME>,<NAME>,<NAME>,<NAME>,<NAME>\n//\n\n#ifndef SV_2DFACEMASK_ST_NODE_H\n#define SV_2DFACEMASK_ST_NODE_H\n\n#include "SV2DFaceMaskNode.h"\n\n\nnamespace sv {\n \n namespace node{\n \n //sensetime\n ...
220
7
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 26.43, "nodes": 122, "errors": 0, "source_hash": "d4bf54a71b341334d02c745537da10b3a354e84525208571272153cf3f0eef81", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
990
c
#pragma once #include "c4d.h" #if (API_VERSION < 20000) #include "hashcode.h" #endif #ifdef MAXON_TARGET_WINDOWS #pragma warning(disable : 4265) #endif #include "Ephere/Ornatrix/IHair.h" #include "Ephere/Geometry/Native/IPolygonMesh.h" #include "Ephere/NativeTools/IInterfaceProvider.h" #define ID_OX_HAIR_OBJECT 10...
29.9
86
(translation_unit) "#pragma once\n\n#include "c4d.h"\n\n#if (API_VERSION < 20000)\n#include "hashcode.h"\n#endif\n\n#ifdef MAXON_TARGET_WINDOWS\n#pragma warning(disable : 4265)\n#endif\n\n#include "Ephere/Ornatrix/IHair.h"\n#include "Ephere/Geometry/Native/IPolygonMesh.h"\n#include "Ephere/NativeTools/IInterfaceProvide...
739
25
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 29.9, "nodes": 457, "errors": 0, "source_hash": "cea102e780e5808034176e0b650b35e497084b8659ed746641a9af199ee29a21", "categorized_nodes": 305}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
991
c
// // IGHTMLQuery.h // IGHTMLQuery // // Created by <NAME> on 21/8/13. // Copyright (c) 2013 Ignition Soft. All rights reserved. // #ifndef IGHTMLQuery_h #define IGHTMLQuery_h #import "IGXMLNodeManipulation.h" #import "IGXMLNodeQuery.h" #import "IGXMLNode.h" #import "IGXMLDocument.h" #import "IGHTMLDocument.h" #i...
20.75
16
(translation_unit) "//\n// IGHTMLQuery.h\n// IGHTMLQuery\n//\n// Created by <NAME> on 21/8/13.\n// Copyright (c) 2013 Ignition Soft. All rights reserved.\n//\n\n#ifndef IGHTMLQuery_h\n#define IGHTMLQuery_h\n#import "IGXMLNodeManipulation.h"\n#import "IGXMLNodeQuery.h"\n\n#import "IGXMLNode.h"\n#import "IGXMLDocumen...
33
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 20.75, "nodes": 25, "errors": 0, "source_hash": "5f2329ac74930a505959e5fd97ac0d08e40a99c979822c9a5b1de613d16bdf96", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
992
c
/* SPDX-License-Identifier: GPL-2.0+ */ /* * Configuration for Xilinx ZynqMP zcu104 * * (C) Copyright 2018 Xilinx, Inc. * <NAME> <<EMAIL>> */ #ifndef __CONFIG_ZYNQMP_ZCU104_REVC_H #define __CONFIG_ZYNQMP_ZCU104_REVC_H #include <configs/xilinx_zynqmp_zcu104.h> #define CONFIG_ZYNQ_GEM_EEPROM_ADDR 0x54 #define CON...
28.38
13
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0+ */\n/*\n * Configuration for Xilinx ZynqMP zcu104\n *\n * (C) Copyright 2018 Xilinx, Inc.\n * <NAME> <<EMAIL>>\n */\n\n#ifndef __CONFIG_ZYNQMP_ZCU104_REVC_H\n#define __CONFIG_ZYNQMP_ZCU104_REVC_H\n\n#include <configs/xilinx_zynqmp_zcu104.h>\n\n#define CONFIG_ZYNQ...
22
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 28.38, "nodes": 18, "errors": 0, "source_hash": "d1bddc0d0f23c34df746be9f9cc1c040efd1bc453fe8654e9b112063316c8384", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
993
c
// // VoiceButtonView.h // KeyBoard // // Created by ShaoFeng on 16/8/18. // Copyright © 2016年 Cocav. All rights reserved. // #import <UIKit/UIKit.h> @interface VoiceButtonView : UIView @end
18.5
10
(translation_unit) "//\n// VoiceButtonView.h\n// KeyBoard\n//\n// Created by ShaoFeng on 16/8/18.\n// Copyright © 2016年 Cocav. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface VoiceButtonView : UIView\n\n@end\n" (comment) "//" (comment) "// VoiceButtonView.h" (comment) "// KeyBoard" (comm...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 18.5, "nodes": 10, "errors": 0, "source_hash": "7a7bc62c5158790d5e06dbc6a5feb001d25b974d8dfbe5c2c40937e4c01c8ef0", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKit...
994
c
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif #import "JXExtension.h" #import "NSDate+JXExtension.h" #import "NSMutableArray+JXSafeAccess.h" #import "NSMutableDictionary+J...
29.16
49
(translation_unit) "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#else\n#ifndef FOUNDATION_EXPORT\n#if defined(__cplusplus)\n#define FOUNDATION_EXPORT extern "C"\n#else\n#define FOUNDATION_EXPORT extern\n#endif\n#endif\n#endif\n\n#import "JXExtension.h"\n#import "NSDate+JXExtension.h"\n#import "NSMutableArray+JXSafeAccess...
160
1
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 29.16, "nodes": 150, "errors": 0, "source_hash": "e69e7f1201f33c27525270941a786f26f4ff25fb9fec6033fb8fd98f26acda04", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef ...
995
c
// // CKIEnrollment.h // CanvasKit // // Created by rroberts on 1/10/14. // Copyright (c) 2014 Instructure. All rights reserved. // #import "CKIModel.h" typedef NS_ENUM(NSUInteger, CKIEnrollmentType) { CKIEnrollmentTypeStudent, CKIEnrollmentTypeTeacher, CKIEnrollmentTypeTA, CKIEnrollmentTypeObser...
36.28
32
(translation_unit) "//\n// CKIEnrollment.h\n// CanvasKit\n//\n// Created by rroberts on 1/10/14.\n// Copyright (c) 2014 Instructure. All rights reserved.\n//\n\n#import "CKIModel.h"\n\ntypedef NS_ENUM(NSUInteger, CKIEnrollmentType) {\n CKIEnrollmentTypeStudent,\n CKIEnrollmentTypeTeacher,\n CKIEnrollmentTy...
271
56
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 36.28, "nodes": 197, "errors": 0, "source_hash": "eddcc53c3036707809a8e405eebb190005ac7df61597ce40e5c4f1bfee26e8e8", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
996
c
#pragma once #include "line.h" #include <string> #include <vector> #define byte unsigned char using namespace std; struct prototype { struct argDef { vector<bool> argType; string func; }; string name; vector<argDef> argDefs; }; enum argType { NUM, REG }; class BluePrint { priv...
32.41
39
(translation_unit) "#pragma once\n\n#include "line.h"\n\n#include <string>\n#include <vector>\n\n#define byte unsigned char\n\nusing namespace std;\n\n\n\nstruct prototype\n{\n\n struct argDef {\n vector<bool> argType;\n string func;\n };\n\n string name;\n vector<argDef> argDefs;\n};\n\nenum ...
726
83
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 32.41, "nodes": 321, "errors": 0, "source_hash": "b807949b5f3eff8c0554d62b8ac47ff37262fe6cfc1691f00f64f8c974a47a6b", "categorized_nodes": 256}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
997
c
#pragma once #include <vector> #include <boost/program_options.hpp> #include "UtilMacros.Namespace.h" #include "config.h" #include "util.std_aliases.h" #include "ModuleContext.Runtime.CommandLine.h" NAMESPACE_BEGIN( vlr ) NAMESPACE_BEGIN( ModuleContext ) NAMESPACE_BEGIN( Runtime ) class CConfigOptionsBase { pub...
36.63
49
(translation_unit) "#pragma once\n\n#include <vector>\n\n#include <boost/program_options.hpp>\n\n#include "UtilMacros.Namespace.h"\n#include "config.h"\n#include "util.std_aliases.h"\n\n#include "ModuleContext.Runtime.CommandLine.h"\n\nNAMESPACE_BEGIN( vlr )\n\nNAMESPACE_BEGIN( ModuleContext )\n\nNAMESPACE_BEGIN( Runti...
396
25
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 36.63, "nodes": 222, "errors": 0, "source_hash": "5a303d063f348f28c33a6400a66a60dd3eafa062c8b978c2a939264a86b71f20", "categorized_nodes": 159}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
998
c
/* ** EPITECH PROJECT, 2017 ** display_sprite ** File description: ** display_sprite */ #include <SFML/Graphics.h> #include "game.h" void display_inventory(sfRenderWindow *win, sfSprite *spr) { if (spr == NULL || win == NULL) return; sfRenderWindow_drawSprite(win, spr, NULL); } void display_pause(game_t *game) {...
23.82
28
(translation_unit) "/*\n** EPITECH PROJECT, 2017\n** display_sprite\n** File description:\n** display_sprite\n*/\n\n#include <SFML/Graphics.h>\n#include "game.h"\n\nvoid display_inventory(sfRenderWindow *win, sfSprite *spr)\n{\n if (spr == NULL || win == NULL)\n return;\n sfRenderWindow_drawSprite(win, spr, NULL);\n}\...
216
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 23.82, "nodes": 146, "errors": 0, "source_hash": "c7c6f2bbeb382f24906a3f25bd459e375c0a5e025e685f610cd7433b1f5a815f", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
999