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
#include "common.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <arpa/inet.h> #include <pthread.h> #include <unistd.h> #define BUFSZ 1024 void usage(int argc, char **argv) { printf("usage: %s <server IP> <server port>\n", ar...
21.91
111
(translation_unit) "#include "common.h" \n \n#include <stdio.h> \n#include <stdlib.h> \n#include <string.h> \n \n#include <sys/types.h> \n#include <sys/socket.h> \n#include <arpa/inet.h> \n#include <pthread.h> \n \n#include <unistd.h> \n \n#define BUFSZ 1024 \n \nvoid usage(int argc, char **argv) { \n printf("usage:...
794
0
{"language": "c", "success": true, "metadata": {"lines": 111, "avg_line_length": 21.91, "nodes": 479, "errors": 0, "source_hash": "f9a84897c8c1ce6c3ae9ba9a2b5d014148de25905fe777985de37dd84042886e", "categorized_nodes": 336}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,700
c
#pragma once #include <string> #include <unordered_map> #include "glm/glm.hpp" struct ShaderProgramSource { std::string VertexSource; std::string FragmentSource; }; class Shader { public: Shader(const std::string& _filepath); void Bind() const; void UnBind() const; void SetUniform4f(const std::string& name, fl...
34.03
30
(translation_unit) "#pragma once\n#include <string>\n#include <unordered_map>\n#include "glm/glm.hpp"\nstruct ShaderProgramSource\n{\n std::string VertexSource;\n std::string FragmentSource;\n};\n\nclass Shader\n{\npublic:\n Shader(const std::string& _filepath);\n\n void Bind() const;\n void UnBind() const;\n\n void Se...
370
24
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 34.03, "nodes": 213, "errors": 0, "source_hash": "a619a535b088e1ded794c295fddafa43752b13eaad88f356126de6253eb17cd0", "categorized_nodes": 144}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
5,701
c
/* Pins connection Sensor(white box) upside, white box from you First left pin - VDD(5+) Second left pin - VSS(gnd) Third left pin - empty Fourth left pin - DATA */ #include <MTH02.h> #define MTH_PIN 6 MTH mth(MTH_PIN); float T_mth02 = 0; float H_mth02 = 0; void F_mth02Setup(){ mth.begin(); delay(100); }; void F_...
17.9
21
(translation_unit) "/*\nPins connection\nSensor(white box) upside, white box from you\nFirst left pin - VDD(5+)\nSecond left pin - VSS(gnd)\nThird left pin - empty\nFourth left pin - DATA\n*/\n#include <MTH02.h>\n#define MTH_PIN 6\nMTH mth(MTH_PIN);\nfloat T_mth02 = 0;\nfloat H_mth02 = 0;\n\nvoid F_mth02Setup(){\n mth...
101
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 17.9, "nodes": 60, "errors": 0, "source_hash": "6771170d539e5c5b5e01babbd648ff65e5338295250a7b40d64bb84b790fe299", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
5,702
c
// // MVVMViewModel.h // ArchitectureDesign // // Created by 李礼光 on 2020/4/12. // Copyright © 2020 LG. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface MVVMViewModel : NSObject - (instancetype)initWithDes:(NSString *)des; @property(nonatomic, s...
24.62
16
(translation_unit) "//\n// MVVMViewModel.h\n// ArchitectureDesign\n//\n// Created by 李礼光 on 2020/4/12.\n// Copyright © 2020 LG. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\nNS_ASSUME_NONNULL_BEGIN\n\n@interface MVVMViewModel : NSObject\n\n- (instancetype)initWithDes:(NSStr...
82
9
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 24.62, "nodes": 53, "errors": 0, "source_hash": "4de90ba3ee4943e5307e86e47ff93689c76c2b774af2271a0d869bfd0bb1347f", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <Foundat...
5,703
c
// // JWViewController.h // JWBaseLib // // Created by WWL on 01/05/2021. // Copyright (c) 2021 WWL. All rights reserved. // @import UIKit; @interface JWViewController : UIViewController @end
18.6
10
(translation_unit) "//\n// JWViewController.h\n// JWBaseLib\n//\n// Created by WWL on 01/05/2021.\n// Copyright (c) 2021 WWL. All rights reserved.\n//\n\n@import UIKit;\n\n@interface JWViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// JWViewController.h" (comment) "// JWBaseLib" (c...
22
5
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 18.6, "nodes": 10, "errors": 0, "source_hash": "11f6326797cf1629aa222744d52e69eec4deb480f3309684a5d948737c5bf07a", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": null...
5,704
c
/* * (C) 2001 Clemson University and The University of Chicago * * See COPYING in top-level directory. */ #ifndef __UPCALL_H #define __UPCALL_H #include "pvfs2-sysint.h" /* Sanitized this header file to fix * 32-64 bit interaction issues between * client-core and device */ typedef struct { int32_t async_v...
24.92
275
(translation_unit) "/*\n * (C) 2001 Clemson University and The University of Chicago\n *\n * See COPYING in top-level directory.\n */\n\n#ifndef __UPCALL_H\n#define __UPCALL_H\n\n#include "pvfs2-sysint.h"\n\n/* Sanitized this header file to fix\n * 32-64 bit interaction issues between\n * client-core and device\n */\nt...
1,023
1
{"language": "c", "success": true, "metadata": {"lines": 275, "avg_line_length": 24.92, "nodes": 705, "errors": 0, "source_hash": "58073bfeb15ae01e0684cdce12807ba0871c128b00d3bf771160b3598a0e1439", "categorized_nodes": 572}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
5,705
c
int coins; /* Players money on them */ int bank; /* Players money in the bank */ mapping stocks; /* Players total stock holdings */ mapping minerals; /* Players mineral holdings */ mixed *query_all_coins(void) { string *currencies; int value, i, num, worth; mixed *c; c = ({ }); value = coins; curr...
20.45
159
(translation_unit) "int coins; /* Players money on them */\nint bank; /* Players money in the bank */\nmapping stocks; /* Players total stock holdings */\nmapping minerals; /* Players mineral holdings */\n\nmixed *query_all_coins(void) {\n string *currencies;\n int value, i, num, worth;\n mixed *c;\n\n c = ({ }...
1,160
0
{"language": "c", "success": true, "metadata": {"lines": 159, "avg_line_length": 20.45, "nodes": 648, "errors": 0, "source_hash": "475d239df1172f66e69020f54a6a35e9323036ea45a3b42470e5b1dea9766e5f", "categorized_nodes": 484}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "int coi...
5,706
c
// Implementation of interface described in find_arcgis_geotiff_aux_name.h. #include "find_arcgis_geotiff_aux_name.h" GString * find_arcgis_geotiff_aux_name (const char *inBaseName) { // Possible TIFF file names as described in interface. GString *p1 = g_string_append (g_string_new (inBaseName), ".tif.aux"); GS...
30.18
65
(translation_unit) "// Implementation of interface described in find_arcgis_geotiff_aux_name.h.\n\n#include "find_arcgis_geotiff_aux_name.h"\n\nGString *\nfind_arcgis_geotiff_aux_name (const char *inBaseName)\n{\n // Possible TIFF file names as described in interface.\n GString *p1 = g_string_append (g_string_new (in...
636
0
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 30.18, "nodes": 343, "errors": 0, "source_hash": "cb2e8bb77cafa7840693dab189b6cae6d63143040323faf0288d5b88a75822bd", "categorized_nodes": 218}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,707
c
#ifndef _PRIMER_VECTOR_H #define _PRIMER_VECTOR_H #include <stdint.h> #include <vector> #include <optional> #include <functional> namespace pr { template <typename T> class Vector { public: Vector<T>() { } ~Vector<T>() { } uint64_t length() const { return this->_vec.size();...
21.28
76
(ERROR) "#ifndef _PRIMER_VECTOR_H\n#define _PRIMER_VECTOR_H\n\n#include <stdint.h>\n\n#include <vector>\n#include <optional>\n#include <functional>\n\nnamespace pr {\n\ntemplate <typename T>\nclass Vector\n{\npublic:\n Vector<T>()\n {\n }\n\n ~Vector<T>()\n {\n }\n\n uint64_t length() const\n {\...
505
24
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 21.28, "nodes": 287, "errors": 0, "source_hash": "a3cf8b5d73d8aaf4f1d142b6ddf51c7b935faa9e2fce50c499f23882ca4229b0", "categorized_nodes": 205}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef _PRIMER_VECTOR_H\...
5,708
c
#ifndef CO_FUNC_H #define CO_FUNC_H #include <functional> #include <memory> namespace ashan { class coClient; using coFunc = std::function<coTask(std::shared_ptr<coClient>)>; } #endif
17.7
10
(translation_unit) "#ifndef CO_FUNC_H\n#define CO_FUNC_H\n#include <functional>\n#include <memory>\n\nnamespace ashan\n{ \n class coClient;\n using coFunc = std::function<coTask(std::shared_ptr<coClient>)>;\n}\n#endif" (preproc_ifdef) "#ifndef CO_FUNC_H\n#define CO_FUNC_H\n#include <functional>\n#include <memory>\n\n...
53
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 17.7, "nodes": 39, "errors": 0, "source_hash": "62dc088ebbd4390f342ab74eba84aeb2197f69a6ebf9e28ef2b3eb7f4f75cf36", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef C...
5,709
c
#pragma once #include <brutal/io/scan.h> #include <brutal/io/write.h> #include <brutal/text/str.h> enum fmt_type { FMT_CHAR, FMT_STRING, FMT_BINARY, FMT_OCTAL, FMT_DECIMAL, FMT_HEXADECIMAL, FMT_POINTER, }; struct fmt { enum fmt_type type; size_t min_width; bool fill_with_zero;...
24.16
25
(translation_unit) "#pragma once\n\n#include <brutal/io/scan.h>\n#include <brutal/io/write.h>\n#include <brutal/text/str.h>\n\nenum fmt_type\n{\n FMT_CHAR,\n FMT_STRING,\n FMT_BINARY,\n FMT_OCTAL,\n FMT_DECIMAL,\n FMT_HEXADECIMAL,\n FMT_POINTER,\n};\n\nstruct fmt\n{\n enum fmt_type type;\n si...
161
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 24.16, "nodes": 124, "errors": 0, "source_hash": "509bfa7aa6ec52dcb31268342ec880ccbfa5b7be22d51c4dcf9251171cd139fe", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
5,710
c
// // wydatkiTests.h // wydatkiTests // // Created by jarek on 5/27/13. // Copyright (c) 2013 majatech. All rights reserved. // #import <XCTest/XCTest.h> @interface wydatkiTests : XCTestCase @end
19
10
(translation_unit) "//\n// wydatkiTests.h\n// wydatkiTests\n//\n// Created by jarek on 5/27/13.\n// Copyright (c) 2013 majatech. All rights reserved.\n//\n\n#import <XCTest/XCTest.h>\n\n@interface wydatkiTests : XCTestCase\n\n@end\n" (comment) "//" (comment) "// wydatkiTests.h" (comment) "// wydatkiTests" ...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.0, "nodes": 9, "errors": 0, "source_hash": "93bf489cdd6aa47c3d82ca6d1d29cbcd758101c3b3410d201199de14d98b4638", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <XCT...
5,711
c
#pragma once #include <Windows.h> class AmbientLight { public: AmbientLight(); AmbientLight(const COLORREF& colour); AmbientLight(const AmbientLight& other); COLORREF GetColour() const; void SetColour(COLORREF colour); AmbientLight& operator= (const AmbientLight& rhs); private: COLORREF _colour; };
20.93
14
(translation_unit) "#pragma once\n#include <Windows.h>\n\nclass AmbientLight\n{\npublic:\n AmbientLight();\n AmbientLight(const COLORREF& colour);\n AmbientLight(const AmbientLight& other);\n\n COLORREF GetColour() const;\n void SetColour(COLORREF colour);\n\n AmbientLight& operator= (const AmbientLight& rhs);\nprivate...
97
7
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 20.93, "nodes": 52, "errors": 0, "source_hash": "3fcff8162f62555a08d4aef8bb49fc191da4fe7831bfedce7a94010432e708aa", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
5,712
c
// // Copyright 2016 Pixar // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is deleted and replaced with: // // 6. Trad...
36.55
66
(translation_unit) "//\n// Copyright 2016 Pixar\n//\n// Licensed under the Apache License, Version 2.0 (the "Apache License")\n// with the following modification; you may not use this file except in\n// compliance with the Apache License and the following modification to it:\n// Section 6. Trademarks. is deleted and re...
141
4
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 36.55, "nodes": 63, "errors": 0, "source_hash": "d3c306ba98d7a7a8880c7835e905907e2eaff04a1ae752b6e13e4a9b0b94b06b", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,713
c
/* snesrc - SNES Recompiler * * Copyright notice for this file: * Copyright (C) 2005 Parasyte * * Based on uCON64's N64 checksum algorithm by <NAME> * * 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 Softwa...
27.46
152
(translation_unit) "/* snesrc - SNES Recompiler\n *\n * Copyright notice for this file:\n * Copyright (C) 2005 Parasyte\n *\n * Based on uCON64's N64 checksum algorithm by <NAME>\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 pub...
1,082
0
{"language": "c", "success": true, "metadata": {"lines": 152, "avg_line_length": 27.46, "nodes": 711, "errors": 0, "source_hash": "0888cdee9d1475b7ae265428b308cb680fb2cfc5f80b8deb73a5d6447a493383", "categorized_nodes": 510}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,714
c
// header.h: archivo de inclusión para archivos de inclusión estándar del sistema, // o archivos de inclusión específicos de un proyecto // #pragma once #include "targetver.h" #define WIN32_LEAN_AND_MEAN // Excluir material rara vez utilizado de encabezados de Windows // Archivos de encabezado de Windows ...
35.31
13
(translation_unit) "// header.h: archivo de inclusión para archivos de inclusión estándar del sistema,\n// o archivos de inclusión específicos de un proyecto\n//\n\n#pragma once\n\n#include "targetver.h"\n#define WIN32_LEAN_AND_MEAN // Excluir material rara vez utilizado de encabezados de Windows\n// Archiv...
34
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 35.31, "nodes": 24, "errors": 0, "source_hash": "9b22b780e12282afdfd07554af8b66d6e61c9a605fdeeee294e9082549e5c9e7", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ma once\n...
5,715
c
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #define KNRM "\x1B[0m" #define K_ERROR "\x1B[31m" #define K_SUCCESS "\x1B[32m" #define K_WARNING "\x1B[33m" #define K_INFO "\x1B[34m" #define KMAG "\x1B[35m" #define KCYN "\x1B[36m" #define K_RESET "\x1B[37m" int main(void) { printf("%sStarting c...
31.97
38
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <unistd.h>\n\n#define KNRM "\x1B[0m"\n#define K_ERROR "\x1B[31m"\n#define K_SUCCESS "\x1B[32m"\n#define K_WARNING "\x1B[33m"\n#define K_INFO "\x1B[34m"\n#define KMAG "\x1B[35m"\n#define KCYN "\x1B[36m"\n#define K_RESET "\x1B[37m"\n\n\nint mai...
289
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 31.97, "nodes": 155, "errors": 0, "source_hash": "42a3777f297a0839bb46d6662fa698edc25198e9f4f6a666529c93c5f82c7692", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
5,716
c
// // XQCommonTools+encrypt.h // XQCommonTools // // Created by Damon on 2018/2/23. // Copyright © 2018年 damon. All rights reserved. // #import "XQBaseCommonTools.h" @interface XQCommonTools (Encrypt) #pragma mark - #pragma mark - 加密解密相关操作类 /** 字符串MD5加密 String MD5 encryption @param string 要加密的字符串 String to be ...
27.17
35
(translation_unit) "//\n// XQCommonTools+encrypt.h\n// XQCommonTools\n//\n// Created by Damon on 2018/2/23.\n// Copyright © 2018年 damon. All rights reserved.\n//\n\n#import "XQBaseCommonTools.h"\n\n@interface XQCommonTools (Encrypt)\n#pragma mark -\n#pragma mark - 加密解密相关操作类\n\n/**\n 字符串MD5加密 String MD5 encryption\n...
123
15
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 27.17, "nodes": 80, "errors": 0, "source_hash": "54ea4e740a12ebc837dd72770fff8e0fb655e084167c225aa724ead2215edfb4", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"XQ...
5,717
c
#include <stdio.h> #include <ctype.h> #include <string.h> int htoi(char s[]); int main() { printf("%d\n", htoi("0xffFF")); return 0; } int htoi(char s[]) { // assume it is a valid hex string int i = 0; if (strlen(s) > 2 && s[0] == '0' && (s[1] == 'x' || s[1] == 'X')) { i = 2; } ...
19.39
36
(translation_unit) "#include <stdio.h>\n#include <ctype.h>\n#include <string.h>\n\nint htoi(char s[]);\n\nint main()\n{\n printf("%d\n", htoi("0xffFF"));\n\n return 0;\n}\n\nint htoi(char s[])\n{\n // assume it is a valid hex string\n int i = 0;\n\n if (strlen(s) > 2 && s[0] == '0' && (s[1] == 'x' || s[1...
339
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 19.39, "nodes": 236, "errors": 0, "source_hash": "279331174fd6ae20ad43945d8ac3c6304cc94550118ad761a2ce035ca3eaf75f", "categorized_nodes": 142}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,718
c
/* ************************************************************************** */ /* */ /* :::::::: */ /* array_diff.c :+: :+: ...
29.43
51
(translation_unit) "/* ************************************************************************** */\n/* */\n/* :::::::: */\n/* array_diff.c ...
335
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 29.43, "nodes": 206, "errors": 0, "source_hash": "70ac1555f1f1446411097fa2c42fe2ab939f67a5ee38e17cbdf16276d2afce02", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,719
c
/* * Copyright 2020 New Relic Corporation. All rights reserved. * SPDX-License-Identifier: Apache-2.0 */ #pragma once #include <string> #include <iostream> #include <list> #include "Exceptions.h" namespace sicily { enum TokenType { TOK_ERROR = -2, TOK_END = -1, TOK_LSQBRACKET = 0, ...
27.48
88
(translation_unit) "/*\n* Copyright 2020 New Relic Corporation. All rights reserved.\n* SPDX-License-Identifier: Apache-2.0\n*/\n#pragma once\n#include <string>\n#include <iostream>\n#include <list>\n#include "Exceptions.h"\n\nnamespace sicily {\n enum TokenType {\n TOK_ERROR = -2,\n TOK_END = -1,\n ...
516
21
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 27.48, "nodes": 319, "errors": 0, "source_hash": "f52015e35425ad6466d1bf25f45b818d651dea8552e6741aea3d7e2977bed2d4", "categorized_nodes": 264}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
5,720
c
/* * File : platform.h * * Copyright (c) 2006-2018, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2018-12-20 ViKing first implementation */ #ifndef _RISCV_PLATFORM_H #define _RISCV_PLATFORM_H // Some things missing from...
29.3
50
(translation_unit) "/*\n * File : platform.h\n *\n * Copyright (c) 2006-2018, RT-Thread Development Team\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Change Logs:\n * Date Author Notes\n * 2018-12-20 ViKing first implementation\n */\n\n#ifndef _RISCV_PLATFORM_H\n#define _RISCV_PLATFO...
150
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 29.3, "nodes": 111, "errors": 0, "source_hash": "1612516b99d09bf03a9d8a322bc5268e6ee5320f056a86c1275305e45a12e478", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,721
c
#include <iostream> #include <fstream> #include "../ALL/gzstream.h" #include "../ALL/comm.h" using namespace std; int print_Ausage_A32() { cout <<"" "\n" "\tUsage: Soap2Fq -i <in.soap> -o <Out.fq>\n" "\n" "\t\t-i <str> input Soap\n" "\t\t-o <str> output FASTQ\n" "\n" "\t\t-u on...
23.37
143
(translation_unit) "#include <iostream>\n#include <fstream>\n#include "../ALL/gzstream.h"\n#include "../ALL/comm.h"\n\nusing namespace std;\n\n\nint print_Ausage_A32()\n{\n cout <<""\n "\n"\n "\tUsage: Soap2Fq -i <in.soap> -o <Out.fq>\n"\n "\n"\n "\t\t-i <str> input Soap\n"\n "\t\t-o <str> output FAST...
1,315
8
{"language": "c", "success": true, "metadata": {"lines": 143, "avg_line_length": 23.37, "nodes": 778, "errors": 0, "source_hash": "efd3d91b9104dc1009565f99ebe6e1733ddbb85c632d6c4c63629c1566ab8e5b", "categorized_nodes": 522}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,722
c
/* * Coda multi-standard codec IP - JPEG support functions * * Copyright (C) 2014 <NAME>, Pengutronix * * 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...
34.68
208
(translation_unit) "/*\n * Coda multi-standard codec IP - JPEG support functions\n *\n * Copyright (C) 2014 <NAME>, Pengutronix\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 Foundation; either v...
2,246
0
{"language": "c", "success": true, "metadata": {"lines": 208, "avg_line_length": 34.68, "nodes": 1249, "errors": 0, "source_hash": "6478e59f232702c16863ab0120e4a0b528504cb136ad1c79d6ff511b6b5a81aa", "categorized_nodes": 1032}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
5,723
c
// // WWCommandLightRGB.h // APIObjectiveC // // Created by <NAME> on 3/31/14. // Copyright (c) 2014 Wonder Workshop inc. (https://www.makewonder.com/) All rights reserved. // #import "WWCommand.h" /** * The `WWCommandLightRGB` object instructs a `WWRobot` how to set the RGB values of its light. * This comman...
39.82
38
(translation_unit) "//\n// WWCommandLightRGB.h\n// APIObjectiveC\n//\n// Created by <NAME> on 3/31/14.\n// Copyright (c) 2014 Wonder Workshop inc. (https://www.makewonder.com/) All rights reserved.\n//\n\n#import "WWCommand.h"\n\n/**\n * The `WWCommandLightRGB` object instructs a `WWRobot` how to set the RGB value...
92
17
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 39.82, "nodes": 53, "errors": 0, "source_hash": "d22519474cc81ad943f1f263023f0dd3ad1dfeb39b4def5ed206c39aa9f96200", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
5,724
c
// // GWAuthInfoCell.h // SoamO2OEngineer // // Created by Yilia on 2020/10/23. // Copyright © 2020 Goldwind. All rights reserved. // #import "YIFormCell.h" #import <YIForm.h> NS_ASSUME_NONNULL_BEGIN @interface GWAuthInfoRow : YIFormRow /// message @property (nonatomic, copy) NSString *message; /// tip @property (...
24.41
27
(translation_unit) "//\n// GWAuthInfoCell.h\n// SoamO2OEngineer\n//\n// Created by Yilia on 2020/10/23.\n// Copyright © 2020 Goldwind. All rights reserved.\n//\n\n#import "YIFormCell.h"\n#import <YIForm.h>\nNS_ASSUME_NONNULL_BEGIN\n@interface GWAuthInfoRow : YIFormRow\n/// message\n@property (nonatomic, copy) NSStr...
158
21
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 24.41, "nodes": 105, "errors": 0, "source_hash": "46a273101dab5e5a0fb7103c4567bc8c8b38e7e7e07eb5a7a2bc3c5e267d87aa", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \...
5,725
c
// rpc.h - support for remote procedure calls (RPCs) #pragma once extern "C" { #include <base/stddef.h> #include <breakwater/rpc.h> } #include <functional> namespace rpc { class RpcClient { public: // The maximum size of an RPC request payload. static constexpr size_t kMaxPayloadSize = SRPC_BUF_SIZE; // Di...
29.16
49
(translation_unit) "// rpc.h - support for remote procedure calls (RPCs)\n\n#pragma once\n\nextern "C" {\n#include <base/stddef.h>\n#include <breakwater/rpc.h>\n}\n\n#include <functional>\n\nnamespace rpc {\n\nclass RpcClient {\n public:\n // The maximum size of an RPC request payload.\n static constexpr size_t kMaxP...
368
10
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 29.16, "nodes": 227, "errors": 0, "source_hash": "fd4ed2a5d18bfb82ed8f315b525e986981a5d42e40bc2a5ee26247734241fd88", "categorized_nodes": 138}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
5,726
c
/* * Copyright (C) 2011-2012 Free Software Foundation, Inc. * * Author: <NAME> * * This file is part of GnuTLS. * * GnuTLS 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 Licen...
30.9
217
(translation_unit) "/*\n * Copyright (C) 2011-2012 Free Software Foundation, Inc.\n *\n * Author: <NAME>\n *\n * This file is part of GnuTLS.\n *\n * GnuTLS is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public License as published by\n * the Free Software Foundation; ...
1,575
0
{"language": "c", "success": true, "metadata": {"lines": 217, "avg_line_length": 30.9, "nodes": 907, "errors": 0, "source_hash": "5d663ff9d98da148cf0bbebcf6797863511173870ce56f6dd42f4860dc1d534a", "categorized_nodes": 702}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef...
5,727
c
// // D_SettingViewController.h // GeneralHospital // // Created by 夏科杰 on 15/2/2. // Copyright (c) 2015年 夏科杰. All rights reserved. // #import <UIKit/UIKit.h> @interface D_SettingViewController : UcmedViewStyle @end
21
10
(translation_unit) "//\n// D_SettingViewController.h\n// GeneralHospital\n//\n// Created by 夏科杰 on 15/2/2.\n// Copyright (c) 2015年 夏科杰. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface D_SettingViewController : UcmedViewStyle\n\n@end\n" (comment) "//" (comment) "// D_SettingViewController.h" ...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.0, "nodes": 10, "errors": 0, "source_hash": "49696381a540575f234e8373d3116263362db1c5d3a646feedd752ac3c563aa9", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "/UIKit.h>\n...
5,728
c
// Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #pragma once #include <cstdint> #include "flutter/fml/macros.h" namespace impeller { class ArchiveStatement; //----------------------------------------...
34.92
37
(translation_unit) "// Copyright 2013 The Flutter Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n#pragma once\n\n#include <cstdint>\n\n#include "flutter/fml/macros.h"\n\nnamespace impeller {\n\nclass ArchiveStatement;\n\n//-------...
157
2
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 34.92, "nodes": 84, "errors": 0, "source_hash": "cc5a4db4325d605f99f436bbbb3f3dd637c5f15745588e08958fbdb926ad54dc", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
5,729
c
// Copyright 2020 <NAME> // SPDX-License-Identifier: Apache-2.0 #pragma once #include "NavMeshNode.h" #include "Intellect/Algorithms/Dijkstra.h" #include <type_traits> namespace DMK { namespace Intellect { /** * Navigation Mesh object. * This object is used for navigation. * * @tparam Node: The type...
35.5
40
(translation_unit) "// Copyright 2020 <NAME>\n// SPDX-License-Identifier: Apache-2.0\n\n#pragma once\n\n#include "NavMeshNode.h"\n#include "Intellect/Algorithms/Dijkstra.h"\n\n#include <type_traits>\n\nnamespace DMK\n{\n namespace Intellect\n {\n /**\n * Navigation Mesh object.\n * This object is used for navigati...
285
17
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 35.5, "nodes": 151, "errors": 0, "source_hash": "97dbbdbab4079c2a08a5c1fbb2f43e7bd513d4756294710313cfd4364221d545", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
5,730
c
// Copyright 2014 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_COMPILER_BASIC_BLOCK_INSTRUMENTOR_H_ #define V8_COMPILER_BASIC_BLOCK_INSTRUMENTOR_H_ #include "src/diagnostics/basic-block-profiler.h" #incl...
36.83
23
(translation_unit) "// Copyright 2014 the V8 project authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef V8_COMPILER_BASIC_BLOCK_INSTRUMENTOR_H_\n#define V8_COMPILER_BASIC_BLOCK_INSTRUMENTOR_H_\n\n#include "src/diagnostics/ba...
111
2
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 36.83, "nodes": 62, "errors": 0, "source_hash": "34d74a664b8f63a2818b5c7e61892b55ecf2d6bf617985c302be17293d5d09fe", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,731
c
#include <unistd.h> #include <sys/io.h> /* Programming the long time watchdog timer of the Super I/O chip (SMSC FDC37B72x) */ /* Run the program as root, otherwise you get "segmentation fault" */ void smcw(int regidx, int data) { outb(0x55, 0x370); outb(regidx, 0x370); outb(data, 0x371); outb(0x...
30.34
29
(translation_unit) "#include <unistd.h>\n#include <sys/io.h>\n\n/* Programming the long time watchdog timer of the Super I/O chip\n (SMSC FDC37B72x) */\n\n/* Run the program as root, otherwise you get "segmentation fault" */\n\nvoid smcw(int regidx, int data)\n {\n outb(0x55, 0x370);\n outb(regidx, 0x370);\n ...
189
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 30.34, "nodes": 93, "errors": 0, "source_hash": "137d37a228680abe751e667f8e0edcb15637bbe786a74b74fc97bad871709644", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,732
c
/* // Dao Virtual Machine // http://daoscript.org // // Copyright (c) 2006-2017, <NAME> // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, // are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the a...
26.48
242
(translation_unit) "/*\n// Dao Virtual Machine\n// http://daoscript.org\n//\n// Copyright (c) 2006-2017, <NAME>\n// All rights reserved.\n//\n// Redistribution and use in source and binary forms, with or without modification,\n// are permitted provided that the following conditions are met:\n//\n// * Redistributions of...
1,044
17
{"language": "c", "success": true, "metadata": {"lines": 242, "avg_line_length": 26.48, "nodes": 689, "errors": 0, "source_hash": "2ba6033394fd95b7514af8100cf11da9c17bde72e319e5ee6697486f0392ad13", "categorized_nodes": 547}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
5,733
c
#define _GNU_SOURCE #include <stdio.h> #include <string.h> #include <mosquitto.h> #include <mosquitto_plugin.h> #include <krb5/krb5.h> typedef struct udata_t { krb5_context context; krb5_keytab keytab; char *principal_format; } udata; static void report_error(udata *udata, const char *msg, krb5_error_code code) ...
27.58
210
(translation_unit) "#define _GNU_SOURCE\n#include <stdio.h>\n#include <string.h>\n\n#include <mosquitto.h>\n#include <mosquitto_plugin.h>\n\n#include <krb5/krb5.h>\n\ntypedef struct udata_t\n{\n krb5_context context;\n krb5_keytab keytab;\n char *principal_format;\n} udata;\n\nstatic void report_error(udata *udata, con...
1,924
0
{"language": "c", "success": true, "metadata": {"lines": 210, "avg_line_length": 27.58, "nodes": 1165, "errors": 0, "source_hash": "b3c65daea11edde8a3f31a96a08781dbf46ac05c59cf7c8c370916ad842b75b6", "categorized_nodes": 814}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#defin...
5,734
c
/** * umdns_state.h * uMDNS Project * * Copyright (c) 2016 <NAME>. All rights reserved. * Licensed under the MIT License. See LICENSE.md file at * https://github.com/grover/uMDNS for full license information. * * @file umdns_state.h * * Any project using uMDNS should #include <umdns/umdns.h> instead. * *...
28.34
87
(translation_unit) "/**\n * umdns_state.h\n * uMDNS Project\n *\n * Copyright (c) 2016 <NAME>. All rights reserved. \n * Licensed under the MIT License. See LICENSE.md file at \n * https://github.com/grover/uMDNS for full license information.\n *\n * @file umdns_state.h\n *\n * Any project using uMDNS should #include ...
65
0
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 28.34, "nodes": 41, "errors": 0, "source_hash": "3530a40734797abd381a86f63d6201ae91aebeb2294bf68ee0a98647c76f408f", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,735
c
#include<stdio.h> #include<stdlib.h> #include<limits.h> #include<math.h> long long int fib(int n){ if(n==0)return 0; if(n==1)return 1; else return fib(n-1)+fib(n-2); } int main(){ int n,i; scanf("%d",&n); for(i=0;i<=n;i++) printf("%lld ",fib(i)); return 0; }
15.19
16
(translation_unit) "#include<stdio.h>\n#include<stdlib.h>\n#include<limits.h>\n#include<math.h>\nlong long int fib(int n){\nif(n==0)return 0;\nif(n==1)return 1;\nelse return fib(n-1)+fib(n-2);\n}\n\nint main(){\nint n,i;\nscanf("%d",&n);\nfor(i=0;i<=n;i++)\nprintf("%lld ",fib(i));\nreturn 0;\n}\n" (preproc_include) "...
150
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 15.19, "nodes": 94, "errors": 0, "source_hash": "68128fad319c85c71d45c5495a803b072a3667aaadbd3d091efab5103e1825b9", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,736
c
/** * \file * \brief [Problem 12](https://projecteuler.net/problem=12) solution * \author [<NAME>](https://github.com/kvedala) */ #include <math.h> #include <stdio.h> #include <stdlib.h> /** * Get number of divisors of a given number * * If \f$x = a \times b\f$, then both \f$a\f$ and \f$b\f$ are divisors of * ...
27.45
47
(translation_unit) "/**\n * \file\n * \brief [Problem 12](https://projecteuler.net/problem=12) solution\n * \author [<NAME>](https://github.com/kvedala)\n */\n#include <math.h>\n#include <stdio.h>\n#include <stdlib.h>\n\n/**\n * Get number of divisors of a given number\n *\n * If \f$x = a \times b\f$, then both \f$a\f$...
242
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 27.45, "nodes": 164, "errors": 0, "source_hash": "da1a8192ca8b5c2fd8ea8bd4ec0e27c40419c05b925d5aaf49c4cfa921c82442", "categorized_nodes": 112}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,737
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "spi.h" #define IC_PIN RPI_BPLUS_GPIO_J8_15 static void spi_initialize() { bcm2835_spi_setBitOrder(BCM2835_SPI_BIT_ORDER_MSBFIRST); bcm2835_spi_setDataMode(BCM2835_SPI_MODE0); bcm2835_spi_setClockDivider(BCM2835_SPI_CLOCK_DIVIDER_32); bcm2835...
29.19
62
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include "spi.h"\n\n#define IC_PIN RPI_BPLUS_GPIO_J8_15\n\nstatic void spi_initialize() {\n bcm2835_spi_setBitOrder(BCM2835_SPI_BIT_ORDER_MSBFIRST);\n bcm2835_spi_setDataMode(BCM2835_SPI_MODE0);\n bcm2835_spi_setClockDivider(BCM2835_SP...
542
0
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 29.19, "nodes": 299, "errors": 0, "source_hash": "e4f3b0ac317be7b7f4098922c7c5a48f518576cb58ac7c31c1ace089d1b6f3e2", "categorized_nodes": 218}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,738
c
#include <stdio.h> int main() { int t; scanf("%d", &t); for(int i = 0; i < t; i++){ int n, m; scanf("%d", &n); scanf("%d", &m); if(m < n - 1 || m > n * (n + 1) / 2) printf("%d\n", -1); else { } } }
18.13
15
(translation_unit) "#include <stdio.h>\n\nint main() {\n int t;\n scanf("%d", &t);\n\n for(int i = 0; i < t; i++){\n int n, m;\n scanf("%d", &n);\n scanf("%d", &m);\n\n if(m < n - 1 || m > n * (n + 1) / 2)\n printf("%d\n", -1);\n else {\n \n }\n ...
140
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 18.13, "nodes": 79, "errors": 0, "source_hash": "d48b7f4000575ddc9afa93b1be15637424691bc7d6a20b83de7af1d49843a356", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,739
c
#ifndef MCRESTOOL_SMELTINGWIDGET_H #define MCRESTOOL_SMELTINGWIDGET_H #include <QWidget> #include "recipeeditextensionwidget.h" namespace Ui { class SmeltingWidget; } class SmeltingWidget : public RecipeEditExtensionWidget { Q_OBJECT public: explicit SmeltingWidget(QWidget* parent = nullptr); ~Smelting...
25.56
16
(translation_unit) "#ifndef MCRESTOOL_SMELTINGWIDGET_H\n#define MCRESTOOL_SMELTINGWIDGET_H\n\n#include <QWidget>\n#include "recipeeditextensionwidget.h"\n\nnamespace Ui {\n class SmeltingWidget;\n}\n\nclass SmeltingWidget : public RecipeEditExtensionWidget {\nQ_OBJECT\n\npublic:\n explicit SmeltingWidget(QWidget*...
90
5
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 25.56, "nodes": 55, "errors": 0, "source_hash": "5d995d24e4e238d65819c448d35587284690daf7d55403adf63b9452b5b9187b", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,740
c
#pragma once #include <deque> #include <set> namespace coopnet { struct Node; using NodeList = std::deque<Node>; struct Literal; struct Clause; using ClauseList = std::set<Clause>; }
13.85
13
(translation_unit) "#pragma once\n\n#include <deque>\n#include <set>\n\n\n\nnamespace coopnet {\n \n struct Node;\n using NodeList = std::deque<Node>;\n struct Literal;\n \n struct Clause;\n using ClauseList = std::set<Clause>;\n\n}" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) ...
60
4
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 13.85, "nodes": 47, "errors": 0, "source_hash": "4d076e2dae39188c9baec51fc421215a21adfb4c8929e222ebb48b47996d5f5e", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
5,741
c
// // NSURL+APAddition.h // ApplicasterSDK // // Created by <NAME> on 9/11/15. // Copyright (c) 2015 Applicaster. All rights reserved. // #import <Foundation/Foundation.h> @interface NSURL (APAddition) /** * Return Array of parameters values from url matching the prefix of the parameter @param parameterName...
30.33
45
(translation_unit) "//\n// NSURL+APAddition.h\n// ApplicasterSDK\n//\n// Created by <NAME> on 9/11/15.\n// Copyright (c) 2015 Applicaster. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NSURL (APAddition)\n\n\n/**\n * Return Array of parameters values from url matching the prefix of th...
129
12
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 30.33, "nodes": 78, "errors": 0, "source_hash": "0840961aa1c628a73744f110816ac698e4de06e6624461d8f5a9a80761ee8db6", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
5,742
c
#ifndef __IVIEW_LISTENER_H__ #define __IVIEW_LISTENER_H__ #include <iostream> namespace StorageHeaterControl { /** \brief Interface class for callbacks to the Presentation Layer class * from an instance of IView */ class IViewListener { public: IViewListener(){} v...
25.85
20
(translation_unit) "#ifndef __IVIEW_LISTENER_H__\n#define __IVIEW_LISTENER_H__\n\n#include <iostream>\n\nnamespace StorageHeaterControl\n{\n /** \brief Interface class for callbacks to the Presentation Layer class\n * from an instance of IView\n */\n class IViewListener\n {\n public:\n ...
66
2
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 25.85, "nodes": 36, "errors": 0, "source_hash": "536fa591a8c920fadb348c5828cb2c6ededc400658ac902d50c7c890f13233ed", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,743
c
#ifndef RAYH #define RAYH #include "Vec3.h" class Ray { public: Ray() {} Ray(const Vec3& a, const Vec3& b) { A = a; B = b; } Vec3 origin() const { return A; } Vec3 direction() const { return B; } Vec3 pointAtParameter(float t) const { return A + t * B; } Vec3 A; Vec3 B; }; #endif // !RAYH
20.21
14
(translation_unit) "#ifndef RAYH\n#define RAYH\n\n#include "Vec3.h"\n\nclass Ray {\npublic:\n Ray() {}\n Ray(const Vec3& a, const Vec3& b) { A = a; B = b; }\n Vec3 origin() const { return A; }\n Vec3 direction() const { return B; }\n Vec3 pointAtParameter(float t) const { return A + t * B; }\n\n Vec3 A;\n Vec3 B;\n};\n...
134
6
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 20.21, "nodes": 73, "errors": 0, "source_hash": "fb18bd30c90a5775275739d4c32c01a443a6c17d149ef4b6959a047ad6b7a049", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,744
c
#ifndef PARTICLESYSTEM_H #define PARTICLESYSTEM_H #include <vector> #include <glm/glm.hpp> #include "Englamer/Components/Component.h" #include "Englamer/Components/Particle.h" class ParticleSystem : public Component { public: ParticleSystem(glm::vec3 o, glm::vec3 c, glm::vec3 ec, glm::vec3 v, float l); ~Pa...
25.5
28
(translation_unit) "#ifndef PARTICLESYSTEM_H\n#define PARTICLESYSTEM_H\n\n#include <vector>\n#include <glm/glm.hpp>\n\n#include "Englamer/Components/Component.h"\n#include "Englamer/Components/Particle.h"\n\nclass ParticleSystem : public Component {\n public:\n ParticleSystem(glm::vec3 o, glm::vec3 c, glm::vec3 ec,...
217
10
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 25.5, "nodes": 132, "errors": 0, "source_hash": "5836fa11cb8ff7bd0971293d77851cbb21134e39727fc8c5f7f2b19793669d67", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,745
c
#ifndef _ZOMBIE_H_ #define _ZOMBIE_H_ #include "../entity.h" #include "../player.h" #include "../room.h" #include "../rdt.h" #include "../../../physics.h" #include "../../../nf3d/nf3d.h" extern void ai_zombie_custom_hit(entity *e, player *p, RDT *r, nf3d *m); extern void ai_zombie_custom_idle(entity *e, player *p, ...
34.38
16
(translation_unit) "#ifndef _ZOMBIE_H_\n#define _ZOMBIE_H_\n\n#include "../entity.h"\n#include "../player.h"\n#include "../room.h"\n#include "../rdt.h"\n\n#include "../../../physics.h"\n#include "../../../nf3d/nf3d.h"\n\n\nextern void ai_zombie_custom_hit(entity *e, player *p, RDT *r, nf3d *m);\nextern void ai_zombie_c...
217
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 34.38, "nodes": 164, "errors": 0, "source_hash": "0c411b4a45472b3458ef79dceccb432b93e6b52fb767bcdf88c4bf5775d33848", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,746
c
modded class SiagaRecoil{ override void Init(){ m_handsMinHorizontalRecoil = -1.35; m_handsMaxHorizontalRecoil = 1.45; m_handsMinVerticalRecoil = 3.275; m_handsMaxVerticalRecoil = 3.955; m_handsRecoilsteps = 2; m_HandsOffsetRelativeTime = 2.125; m_relativeReloadTime = 2.5; m_MouseOffsetRa...
27.72
25
(translation_unit) "modded class SiagaRecoil{\n \n override void Init(){\n m_handsMinHorizontalRecoil = -1.35;\n m_handsMaxHorizontalRecoil = 1.45;\n \n m_handsMinVerticalRecoil = 3.275;\n m_handsMaxVerticalRecoil = 3.955;\n m_handsRecoilsteps = 2;\n \n m_HandsOffsetRelativeTime = 2.125;\n \n m_relativeReload...
110
2
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 27.72, "nodes": 65, "errors": 0, "source_hash": "4a646178e415148b7e84a027bbad1c2c5cb513d6d92f8f18f24a6aee68987322", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "mo...
5,747
c
// No build information available #define BUILD_DATE "2015-06-20 02:32:20 -0600"
39.5
2
(translation_unit) "// No build information available\n#define BUILD_DATE "2015-06-20 02:32:20 -0600"\n" (comment) "// No build information available" (preproc_def) "#define BUILD_DATE "2015-06-20 02:32:20 -0600"\n" (#define) "#define" (identifier) "BUILD_DATE" (preproc_arg) ""2015-06-20 02:32:20 -0600"...
6
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 39.5, "nodes": 4, "errors": 0, "source_hash": "d6a4515597942efedbbc29dff1b128e4c0e11b72dc1f99f762af76389636f02a", "categorized_nodes": 1}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define BUILD_...
5,748
c
#ifndef QTAUTOUPDATERCORE_GLOBAL_H #define QTAUTOUPDATERCORE_GLOBAL_H #include <QtCore/qglobal.h> #if 0 #if defined(QT_BUILD_AUTOUPDATERCORE_LIB) # define Q_AUTOUPDATERCORE_EXPORT Q_DECL_EXPORT #else # define Q_AUTOUPDATERCORE_EXPORT Q_DECL_IMPORT #endif #else #define Q_AUTOUPDATERCORE_EXPORT #endif // 0 #endif // ...
25.46
13
(translation_unit) "#ifndef QTAUTOUPDATERCORE_GLOBAL_H\n#define QTAUTOUPDATERCORE_GLOBAL_H\n\n#include <QtCore/qglobal.h>\n\n#if 0\n#if defined(QT_BUILD_AUTOUPDATERCORE_LIB)\n# define Q_AUTOUPDATERCORE_EXPORT Q_DECL_EXPORT\n#else\n# define Q_AUTOUPDATERCORE_EXPORT Q_DECL_IMPORT\n#endif\n#else\n #define Q_AUTOUPDATERCOR...
42
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 25.46, "nodes": 37, "errors": 0, "source_hash": "c43b0406d33acdb9c2b7e88c3f94c731dc762997bb9c94caa8c3a6223b10989f", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,749
c
// RUN: %layout_check %s int ent1[] = { [0 ... 10] = 3, [5] = 2 };
12.8
5
(translation_unit) "// RUN: %layout_check %s\nint ent1[] = {\n [0 ... 10] = 3,\n [5] = 2\n};\n" (comment) "// RUN: %layout_check %s" (declaration) "int ent1[] = {\n [0 ... 10] = 3,\n [5] = 2\n};" (primitive_type) "int" (init_declarator) "ent1[] = {\n [0 ... 10] = 3,\n [5] = 2\n}" (array_declarator) "e...
31
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 12.8, "nodes": 18, "errors": 0, "source_hash": "6fa1bb5a40feea30412b6e5e84ab71ddd520971abe0f5645907ce620e471bd09", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "int ent1[] = ...
5,750
c
#pragma once #include "../Engine/Component.h" #include "../Engine/Renderer/Camera.h" #include "../Engine/Utility/Time.h" #include "../Engine/Input/Input.h" #include "../Engine/Renderer/SpriteRenderer.h" class MouseComponent : public Component { public: MouseComponent(Camera* camera) { ID = "MouseComponent"; ca...
26.62
29
(translation_unit) "#pragma once\n\n#include "../Engine/Component.h"\n#include "../Engine/Renderer/Camera.h"\n#include "../Engine/Utility/Time.h"\n#include "../Engine/Input/Input.h"\n#include "../Engine/Renderer/SpriteRenderer.h"\n\n\nclass MouseComponent : public Component\n{\npublic:\n MouseComponent(Camera* camera)\...
243
5
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 26.62, "nodes": 135, "errors": 0, "source_hash": "00157665fbb87241feaeaf2e01d0fd2709c61e28b587fee7a7ce0d5fd6481d2c", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
5,751
c
/* $NetBSD: pkgdb.c,v 1.1.1.8 2010/04/23 20:54:11 joerg Exp $ */ #if HAVE_CONFIG_H #include "config.h" #endif #include <nbcompat.h> #if HAVE_SYS_CDEFS_H #include <sys/cdefs.h> #endif __RCSID("$NetBSD: pkgdb.c,v 1.1.1.8 2010/04/23 20:54:11 joerg Exp $"); /*- * Copyright (c) 1999-2010 The NetBSD Foundation, Inc. * Al...
23.78
298
(translation_unit) "/* $NetBSD: pkgdb.c,v 1.1.1.8 2010/04/23 20:54:11 joerg Exp $ */\n\n#if HAVE_CONFIG_H\n#include "config.h"\n#endif\n#include <nbcompat.h>\n#if HAVE_SYS_CDEFS_H\n#include <sys/cdefs.h>\n#endif\n__RCSID("$NetBSD: pkgdb.c,v 1.1.1.8 2010/04/23 20:54:11 joerg Exp $");\n\n/*-\n * Copyright (c) 1999-2010 T...
1,727
0
{"language": "c", "success": true, "metadata": {"lines": 298, "avg_line_length": 23.78, "nodes": 1072, "errors": 0, "source_hash": "03db0e19db6a817680f9d0e2c3bf1204b10ec1e604ef6ac9d33007c326def6d8", "categorized_nodes": 747}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if HAV...
5,752
c
/* pcic98reg.h PC9801NS/A PCMCIA contorer routine conpatible to PCIC <NAME> 96.1.20 */ /*--- I/O port definition */ #define PCIC98_REG0 0x0a8e /* byte */ #define PCIC98_REG1 0x1a8e /* byte */ #define PCIC98_REG2 0x2a8e /* byte */ #define PCIC98_REG3 0x3a8e /* byte : Interrupt */ #define PCIC98_REG4 0x4a8...
41.14
36
(translation_unit) "/*\n pcic98reg.h\n\n PC9801NS/A PCMCIA contorer routine conpatible to PCIC\n <NAME> 96.1.20\n\n*/\n\n/*--- I/O port definition */\n#define PCIC98_REG0 0x0a8e /* byte */\n#define PCIC98_REG1 0x1a8e /* byte */\n#define PCIC98_REG2 0x2a8e /* byte */\n#define PCIC98_REG3 0x3a8e /* byte : Interru...
132
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 41.14, "nodes": 100, "errors": 0, "source_hash": "c19d6cbe86b0e38c9fbf2d033c54506108e82cf5661b8bd88726d8e6a9c36ead", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define\t...
5,753
c
#pragma once #include "graph.h" bool check_graph(); void construct_graph_from_edge_list(long heavy_threshold); void sort_edge_blocks(); void sort_edge_blocks_by_nodelet(); void print_graph_distribution(); // Print graph to stdout for debugging void dump_graph();
17.79
14
(translation_unit) "#pragma once\n\n#include "graph.h"\n\nbool\ncheck_graph();\n\nvoid\nconstruct_graph_from_edge_list(long heavy_threshold);\n\nvoid\nsort_edge_blocks();\nvoid\nsort_edge_blocks_by_nodelet();\n\nvoid\nprint_graph_distribution();\n\n// Print graph to stdout for debugging\nvoid dump_graph();\n" (prepro...
63
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 17.79, "nodes": 40, "errors": 0, "source_hash": "7e713296b5ee93d901abd309665bf0073c94e33421643c1791b66e4ff8791d0d", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
5,754
c
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying file Copyright.txt or https://cmake.org/licensing for details. */ #ifndef cmCTestResourceGroupsLexerHelper_h #define cmCTestResourceGroupsLexerHelper_h #include <string> #include <vector> #include "cmCTestTestHandler.h" class cmCTestRe...
31.76
34
(translation_unit) "/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying\n file Copyright.txt or https://cmake.org/licensing for details. */\n#ifndef cmCTestResourceGroupsLexerHelper_h\n#define cmCTestResourceGroupsLexerHelper_h\n\n#include <string>\n#include <vector>\n\n#include "cmCTestTes...
227
8
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 31.76, "nodes": 142, "errors": 0, "source_hash": "e839c600120a6ef6c4daa16ae61ef9d12365d401e42503d805855007fca533a9", "categorized_nodes": 96}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,755
c
#import "ABI41_0_0REANode.h" @interface ABI41_0_0REAPropsNode : ABI41_0_0REANode <ABI41_0_0REAFinalNode> - (void)connectToView:(NSNumber *_Nonnull)viewTag viewName:(NSString *_Nonnull)viewName; - (void)disconnectFromView:(NSNumber *_Nonnull)viewTag; @end
43.67
6
(translation_unit) "#import "ABI41_0_0REANode.h"\n\n@interface ABI41_0_0REAPropsNode : ABI41_0_0REANode <ABI41_0_0REAFinalNode>\n\n- (void)connectToView:(NSNumber *_Nonnull)viewTag\n viewName:(NSString *_Nonnull)viewName;\n\n- (void)disconnectFromView:(NSNumber *_Nonnull)viewTag;\n\n@end\n\n" (preproc_cal...
68
8
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 43.67, "nodes": 46, "errors": 0, "source_hash": "61027a175fb446797fd02d6b053d2f341c392a86e5502631172d56166b34f889", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
5,756
c
/** @file hal/micro/cortexm3/efm32/sleep-efm32.h * * @brief EFM32/EFR32 specific sleep functions. * * <!-- Copyright 2016 Silicon Laboratories, Inc. *80* --> */ #ifndef __SLEEP_EFM32_H__ #define __SLEEP_EFM32_H__ typedef struct { uint32_t gpioFlags; } Em4WakeupCause_t; /** * @brief This...
27.5
26
(translation_unit) "/** @file hal/micro/cortexm3/efm32/sleep-efm32.h\n *\n * @brief EFM32/EFR32 specific sleep functions.\n *\n * <!-- Copyright 2016 Silicon Laboratories, Inc. *80* -->\n */\n\n#ifndef __SLEEP_EFM32_H__\n#define __SLEEP_EFM32_H__\n\ntypedef struct\n{\n uint32_t gpioFlags;\n} Em4W...
48
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 27.5, "nodes": 31, "errors": 0, "source_hash": "d3f399325f8079b730cd2fa8a4320d8308450f743da92e5a2d4dae10a6651828", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
5,757
c
/* * Copyright (c) 2020 <NAME> * * SPDX-License-Identifier: BSD-3-Clause */ #include "display.h" #include <device.h> #include <drivers/display.h> #include <lvgl.h> #include <stdio.h> #include <string.h> #include <zephyr.h> #include "status.h" const struct device* display_dev; struct k_mutex display_mut; status_...
37.9
154
(translation_unit) "/*\n * Copyright (c) 2020 <NAME>\n *\n * SPDX-License-Identifier: BSD-3-Clause\n */\n#include "display.h"\n\n#include <device.h>\n#include <drivers/display.h>\n#include <lvgl.h>\n#include <stdio.h>\n#include <string.h>\n#include <zephyr.h>\n\n#include "status.h"\n\nconst struct device* display_dev;\...
1,403
0
{"language": "c", "success": true, "metadata": {"lines": 154, "avg_line_length": 37.9, "nodes": 804, "errors": 0, "source_hash": "fb1710428dfcff47e2d69e31b36fe688ca761422bef68e4271a1430f9765f7ec", "categorized_nodes": 543}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,758
c
// // Created by matth on 2/16/2020. // #include <stdio.h> #include <stdlib.h> #include "tables.h" #include "../../iota-simplewallet.h" #include "db.h" int init_db() { sqlite3 *connection = NULL; char* path = get_config("database"); if(!path) { log_wallet_error( "Unable to read database path from config", "")...
24.23
47
(translation_unit) "//\n// Created by matth on 2/16/2020.\n//\n#include <stdio.h>\n#include <stdlib.h>\n#include "tables.h"\n#include "../../iota-simplewallet.h"\n#include "db.h"\nint init_db() {\n sqlite3 *connection = NULL;\n char* path = get_config("database");\n if(!path) {\n log_wallet_error( "Unable to read...
380
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 24.23, "nodes": 201, "errors": 0, "source_hash": "2d7d81b4439569239d68773ab262c053401eef67c41da2a0aafbf3683177f01e", "categorized_nodes": 136}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,759
c
/* * Copyright (C) 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
35.96
69
(translation_unit) "/*\n * Copyright (C) 2018 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n...
382
14
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 35.96, "nodes": 241, "errors": 0, "source_hash": "4c5729a817ad84349c13f0f848ecf4735341bc1daac3806e774657cbf27815ce", "categorized_nodes": 160}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,760
c
// generated from rosidl_generator_c/resource/idl__functions.c.em // with input from sensor_msgs:msg/Joy.idl // generated code does not contain a copyright notice #include "sensor_msgs/msg/detail/joy__functions.h" #include <assert.h> #include <stdbool.h> #include <stdlib.h> #include <string.h> // Include directives ...
23.83
154
(translation_unit) "// generated from rosidl_generator_c/resource/idl__functions.c.em\n// with input from sensor_msgs:msg/Joy.idl\n// generated code does not contain a copyright notice\n#include "sensor_msgs/msg/detail/joy__functions.h"\n\n#include <assert.h>\n#include <stdbool.h>\n#include <stdlib.h>\n#include <string...
950
0
{"language": "c", "success": true, "metadata": {"lines": 154, "avg_line_length": 23.83, "nodes": 533, "errors": 0, "source_hash": "b13f82a60866fe861f2b5c8dbcb1e9891513d9ea5a546cfdd51af08bdedbdb75", "categorized_nodes": 382}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,761
c
// // ThirdPageViewController.h // MyBody // // Created by <NAME> on 03/11/2017. // Copyright © 2017 <NAME>. All rights reserved. // #import "BasePageViewController.h" #import "MTTextField.h" @interface ThirdPageViewController : BasePageViewController @property (nonatomic, strong) MTFansyTextField *telefonField;...
30.19
16
(translation_unit) "//\n// ThirdPageViewController.h\n// MyBody\n//\n// Created by <NAME> on 03/11/2017.\n// Copyright © 2017 <NAME>. All rights reserved.\n//\n\n#import "BasePageViewController.h"\n#import "MTTextField.h"\n\n@interface ThirdPageViewController : BasePageViewController\n\n@property (nonatomic, strong...
93
18
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 30.19, "nodes": 66, "errors": 0, "source_hash": "12098ac68ffbd7e4699e69298bd8a60e1beff2c2bf394afc69dbc7963fbe1757", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"...
5,762
c
#ifndef EMPTY_H #define EMPTY_H namespace ns3 { /** * \brief make Callback use a separate empty type */ class empty {}; } #endif /* EMPTY_H */
15.11
9
(translation_unit) "#ifndef EMPTY_H\n#define EMPTY_H\n\nnamespace ns3 {\n/**\n * \brief make Callback use a separate empty type\n */\nclass empty {};\n}\n\n#endif /* EMPTY_H */\n" (preproc_ifdef) "#ifndef EMPTY_H\n#define EMPTY_H\n\nnamespace ns3 {\n/**\n * \brief make Callback use a separate empty type\n */\nclass e...
24
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 15.11, "nodes": 12, "errors": 0, "source_hash": "f914766da21d50647c4d91cfc3c5b308f8aea3a71ac893dc74547fd97ff0d48d", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef E...
5,763
c
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_WATCHER_H_ #define COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_WATCHER_H_ #include "base/observer_list.h" #include "bas...
38.3
37
(translation_unit) "// Copyright 2021 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_WATCHER_H_\n#define COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_WATCHER_H_\n\n#include "base/obs...
240
12
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 38.3, "nodes": 134, "errors": 0, "source_hash": "3a3c88a7808a6cb52a809319be83f9cd55f15bc6f550aa85855f2dc62c204e6a", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,764
c
// // XTLaunchViewController.h // XTLaunch // // Created by hal on 2018/12/6. // Copyright © 2018 hal. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN extern const NSUInteger kXTLaunchImageViewTag; typedef void(^XTLaunchConfigureBlock)(UIView *context); typedef void(^XTLaunchAnimateBlock...
39.67
24
(translation_unit) "//\n// XTLaunchViewController.h\n// XTLaunch\n//\n// Created by hal on 2018/12/6.\n// Copyright © 2018 hal. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\nextern const NSUInteger kXTLaunchImageViewTag;\n\ntypedef void(^XTLaunchConfigureBlock)(UIView *context);\...
183
23
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 39.67, "nodes": 123, "errors": 0, "source_hash": "70c84f26ef4673d08ba7622781ad64f4830983a4f290ffca63352055d540ca1d", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <...
5,765
c
#ifndef CONFIG_H #define CONFIG_H #include <stdbool.h> #include "Constants.h" const char* CONFIG_NAME ; //allow usage of either wiringPi pins or GPIO pins enum PinMode { WiringPi, GPIO }; enum Motor {MotorX, MotorY, MotorZ}; enum PinMode ConfiguredPinMode; //The mapping of each control to its pin. int motorArr[NUM_MO...
29.62
24
(translation_unit) "#ifndef CONFIG_H\n#define CONFIG_H\n#include <stdbool.h>\n#include "Constants.h"\n\nconst char* CONFIG_NAME ;\n//allow usage of either wiringPi pins or GPIO pins\nenum PinMode { WiringPi, GPIO };\nenum Motor {MotorX, MotorY, MotorZ};\n\nenum PinMode ConfiguredPinMode;\n//The mapping of each control ...
214
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 29.62, "nodes": 148, "errors": 0, "source_hash": "9f111042609a4b9e8d1d036e3af646a6e30948c78dc7c3d3a2c7fd1e96055ca5", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,766
c
#ifndef MAGNET_RENDER_BACKEND_SERVER_H_ #define MAGNET_RENDER_BACKEND_SERVER_H_ #include <fstream> #include "utility/utility.h" #include "protocol.h" #include "socket.h" #include "utility/config.h" #include "utility/logger.h" namespace magent { namespace render { template<class S, class P> class TextServer : protec...
36.86
97
(translation_unit) "#ifndef MAGNET_RENDER_BACKEND_SERVER_H_\n#define MAGNET_RENDER_BACKEND_SERVER_H_\n\n#include <fstream>\n\n#include "utility/utility.h"\n#include "protocol.h"\n#include "socket.h"\n#include "utility/config.h"\n#include "utility/logger.h"\n\nnamespace magent {\nnamespace render {\n\ntemplate<class S, ...
1,105
65
{"language": "c", "success": true, "metadata": {"lines": 97, "avg_line_length": 36.86, "nodes": 599, "errors": 0, "source_hash": "cc123ecf6ac92c7e02dcb93d16ecd3fe556a2b8629dcac67d77f85199c783d86", "categorized_nodes": 420}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,767
c
/*++ Copyright (c) 2000 Microsoft Corporation Module Name: vfinit.c Abstract: This module handles initialization of the driver verifier. Author: <NAME> (adriao) 1-Mar-2000 Environment: Kernel mode Revision History: --*/ #include "vfdef.h" #ifdef ALLOC_PRAGMA #pra...
13.48
75
(translation_unit) "/*++ \n \nCopyright (c) 2000 Microsoft Corporation \n \nModule Name: \n \n vfinit.c \n \nAbstract: \n \n This module handles initialization of the driver verifier. \n \nAuthor: \n \n <NAME> (adriao) 1-Mar-2000 \n \nEnvironment: \n \n Kernel mode \n \nRevision History: \n \n--*/ \n \n#in...
153
2
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 13.48, "nodes": 71, "errors": 0, "source_hash": "138eb3ea8284f91ed14379c567127df8fc43c4e5f4ac1e670a1bb9258783c52a", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,768
c
///////////////////////////////////////////////////////////////////////////////////////////// #include <stdbool.h> #include <stdint.h> #include "iib_devices/pt100.h" #include "iib_devices/priorities_task_iib.h" #include "FreeRTOS.h" #include "task.h" #include "queue.h" #include "semphr.h" #include "os_tasks/pt100_ta...
33.36
47
(translation_unit) "/////////////////////////////////////////////////////////////////////////////////////////////\n\n#include <stdbool.h>\n#include <stdint.h>\n#include "iib_devices/pt100.h"\n#include "iib_devices/priorities_task_iib.h"\n\n#include "FreeRTOS.h"\n#include "task.h"\n#include "queue.h"\n#include "semphr.h...
267
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 33.36, "nodes": 141, "errors": 0, "source_hash": "d5a9e57969b67244eca59583fc2ff510a6c15981b38513981bb023f687a2507f", "categorized_nodes": 107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,769
c
// // Created by zbyshekh on 1/30/16. // #ifndef BASE_GAME_EQUIPMENT_H #define BASE_GAME_EQUIPMENT_H #include "Item.h" class Equipment { public: Equipment(); Item * pistol; Item * artifact; Item * trap; bool firePistol(); bool setTrap(); bool useArtifact(); }; #endif //BASE_GAME_EQUIPMENT_H
15.26
19
(translation_unit) "//\n// Created by zbyshekh on 1/30/16.\n//\n\n#ifndef BASE_GAME_EQUIPMENT_H\n#define BASE_GAME_EQUIPMENT_H\n\n#include "Item.h"\n\n\nclass Equipment {\n public:\n Equipment();\n Item * pistol;\n Item * artifact;\n Item * trap;\n bool firePistol();\n bool setTrap();\n bool useArtifact();\n\n};...
78
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 15.26, "nodes": 46, "errors": 0, "source_hash": "7d228e1c1507a7be95391383f651e0084e4e48b9f704059f44d1ffe7f97ce64e", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,770
c
// // IGBatchTask.h // IGHTTPClient // // Created by GavinHe on 16/4/20. // Copyright © 2016年 GavinHe. All rights reserved. // #import <Foundation/Foundation.h> @class IGBatchTask; @class NSURLSessionTask; typedef void(^IGBatchTaskProgressBlock)(NSInteger finish, NSInteger total); typedef void(^IGBatchTaskComple...
41.1
29
(translation_unit) "//\n// IGBatchTask.h\n// IGHTTPClient\n//\n// Created by GavinHe on 16/4/20.\n// Copyright © 2016年 GavinHe. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@class IGBatchTask;\n@class NSURLSessionTask;\n\ntypedef void(^IGBatchTaskProgressBlock)(NSInteger finish, NSInteger total)...
333
39
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 41.1, "nodes": 227, "errors": 0, "source_hash": "c4a5d05a857d0b6be0490e2d171b1848ed7d08c9c7545eb74db10565979de0f9", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fo...
5,771
c
/*Coverter string pra maiuscula ou minuscula */ #include<stdio.h> void main() { char nome[10] = "francisco"; printf("%s\n", nome); for(int i = 0; i <= 10; i++) { if(nome[i] >= 'A' && nome[i] <= 'Z') { printf("%c", nome[i] + 32); } else if (nome[i] >= 'a' && nome[i] <= 'z') { printf(...
23.86
14
(translation_unit) "/*Coverter string pra maiuscula ou minuscula */ \n\n#include<stdio.h>\n\nvoid main() {\n\n char nome[10] = "francisco"; \n\n printf("%s\n", nome);\n\n for(int i = 0; i <= 10; i++) {\n if(nome[i] >= 'A' && nome[i] <= 'Z') {\n printf("%c", nome[i] + 32);\n }\n else if (nome[i] >= 'a' ...
171
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 23.86, "nodes": 101, "errors": 0, "source_hash": "b2af192ab5e6a16f5ae9c8fad77117bb82be3c4b78da9f22b7d52e0d4536f810", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
5,772
c
#include "msh.h" int cmd_clear(t_sh *sh, t_cmd *cmd) { (void)cmd; clean_screen(sh); return (0); }
13.43
7
(translation_unit) "#include "msh.h"\n\nint cmd_clear(t_sh *sh, t_cmd *cmd)\n{\n (void)cmd;\n clean_screen(sh);\n return (0);\n}\n" (preproc_include) "#include "msh.h"\n" (#include) "#include" (string_literal) ""msh.h"" (") """ (string_content) "msh.h" (") """ (function_definition) "int cm...
51
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 13.43, "nodes": 29, "errors": 0, "source_hash": "d254c21380c6f46ae6e1d7703717889f8d7f03585e48fa61285bcaba21b84af1", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
5,773
c
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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 at * * http://www.apache.org/licenses/LICENSE-2.0 ...
35.26
168
(translation_unit) "/*\n * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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 obtain a copy of the License at\n *\n * http://www.apach...
332
13
{"language": "c", "success": true, "metadata": {"lines": 168, "avg_line_length": 35.26, "nodes": 202, "errors": 0, "source_hash": "75462593deecffa92edcedaa8e458f51920402301b87d84bb63ac1ebb0ad2951", "categorized_nodes": 149}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
5,774
c
// // SecondViewController.h // NotificationAnimationView // // Created by <NAME> on 2019/8/8. // Copyright © 2019 ccb. All rights reserved. // #import <UIKit/UIKit.h> @interface SecondViewController : UIViewController @end
19.82
11
(translation_unit) "//\n// SecondViewController.h\n// NotificationAnimationView\n//\n// Created by <NAME> on 2019/8/8.\n// Copyright © 2019 ccb. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface SecondViewController : UIViewController\n\n\n@end\n\n" (comment) "//" (comment) "// SecondViewContro...
19
3
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 19.82, "nodes": 9, "errors": 0, "source_hash": "1d1d844109579049a49b424bf0446800ddf290b1857d21574018155f0603b1f7", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UIK...
5,775
c
/* Name - <NAME> Regd no - 1641012040 Desc - Bread machine controller */ #include "stdio.h" void instruct(); double compute_time(char); void main() { char bread_code; double time; instruct(); scanf("%c", &bread_code); time = compute_time(bread_code); printf("\n Total Time - %.3f m...
21.89
101
(translation_unit) "/*\nName - <NAME>\nRegd no - 1641012040\nDesc - Bread machine controller\n*/\n#include "stdio.h"\nvoid instruct();\ndouble compute_time(char);\nvoid main()\n{\n char bread_code;\n double time;\n \n instruct();\n \n scanf("%c", &bread_code);\n \n time = compute_time(bread_code...
740
0
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 21.89, "nodes": 439, "errors": 0, "source_hash": "37f0c193721b9d920c9d4178cd9608f115bef5a8b72eea883312c87440a8702b", "categorized_nodes": 278}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,776
c
// // MinInOrder.c // testcc // // Created by FlyOceanFish on 2018/3/19. // Copyright © 2018年 FlyOceanFish. All rights reserved. // /* 把一个数组最开始的若干元素搬到数组的末尾,我们称之为数组的旋转。输入一个递增排序的数组的一个旋转,输出该旋转数组的最小元素。例如数组{3,4,5,1,2}为{1,2,3,4,5}的一个旋转,该数组的最小数为1. */ #include "MinInOrder.h" static int min(int number[],int fontIndex,int ...
30.22
46
(translation_unit) "//\n// MinInOrder.c\n// testcc\n//\n// Created by FlyOceanFish on 2018/3/19.\n// Copyright © 2018年 FlyOceanFish. All rights reserved.\n//\n/*\n 把一个数组最开始的若干元素搬到数组的末尾,我们称之为数组的旋转。输入一个递增排序的数组的一个旋转,输出该旋转数组的最小元素。例如数组{3,4,5,1,2}为{1,2,3,4,5}的一个旋转,该数组的最小数为1.\n */\n#include "MinInOrder.h"\nstatic int min(...
331
0
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 30.22, "nodes": 174, "errors": 0, "source_hash": "b79ee713267a9fec5292290d4ae0fed0033fbec2872c2370a935439f7b1f62b5", "categorized_nodes": 129}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": " len...
5,777
c
#pragma once #include "CsvFileParser.h" #include "ConsoleOutput.h" #include "ColumnFilter.h" #include "Validator.h" #include "GlobalVars.h" class Sender { private: IFileParser* fileParser; IOutput* output; int argCount; std::vector<std::string> args; public: //Sender(IFileParser* ifp, IOutput* iout, int argc, std...
28
17
(translation_unit) "#pragma once\n#include "CsvFileParser.h"\n#include "ConsoleOutput.h"\n#include "ColumnFilter.h"\n#include "Validator.h"\n#include "GlobalVars.h"\n\nclass Sender {\nprivate:\n IFileParser* fileParser;\n IOutput* output;\n int argCount;\n std::vector<std::string> args;\npublic:\n //Sender(IFileParser*...
119
2
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 28.0, "nodes": 71, "errors": 0, "source_hash": "e18bfbd235943e745d3ba5be0f81289bfd705b96304fd7a3ee002222461362b5", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
5,778
c
/* * Copyright (c) 2018, United States government as represented by the * administrator of the National Aeronautics Space Administration. * All rights reserved. This software was created at NASA Glenn * Research Center pursuant to government contracts. * * This is governed by the NASA Ope...
37.63
60
(translation_unit) "/*\n * Copyright (c) 2018, United States government as represented by the\n * administrator of the National Aeronautics Space Administration.\n * All rights reserved. This software was created at NASA Glenn\n * Research Center pursuant to government contracts.\n *\n * This i...
85
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 37.63, "nodes": 47, "errors": 0, "source_hash": "94b2d76ea0e892e70da23c353a9613c156eddef7f77a8019f790f9b9123f379d", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,779
c
/* * This file is part of the coreboot project. * * Copyright (C) 2014 Sage Electronic Engineering, LLC. * * 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; version 2 of the License. * * ...
32.44
36
(translation_unit) "/*\n * This file is part of the coreboot project.\n *\n * Copyright (C) 2014 Sage Electronic Engineering, LLC.\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 Foundation; versi...
145
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 32.44, "nodes": 103, "errors": 0, "source_hash": "ab85815125eaf9ff9e95b967673c1fc191740059851be2558678439ffd892ed3", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,780
c
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CompositorAnimation_h #define CompositorAnimation_h #include <memory> #include "cc/animation/animation.h" #include "platform/PlatformExport.h" #i...
35.27
64
(translation_unit) "// Copyright 2016 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef CompositorAnimation_h\n#define CompositorAnimation_h\n\n#include <memory>\n#include "cc/animation/animation.h"\n#include "...
450
25
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 35.27, "nodes": 254, "errors": 0, "source_hash": "8a6afba14d0d35125ee1fee26d952c6b32a8494dd99ca4d22ef08759025351ab", "categorized_nodes": 169}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,781
c
#include <stdio.h> #include <math.h> #include <stdlib.h> int main (){ float numero1, numero2, numero3, numero4; printf("Digite a primeira numero: "); scanf("%f", &numero1); printf("Digite o segundo numero: "); scanf("%f", &numero2); while (numero1>=numero2){ printf("Obs: A ordem dos numeros tem que ser cre...
30.02
44
(translation_unit) "#include <stdio.h>\n#include <math.h>\n#include <stdlib.h>\n\nint main (){\n float numero1, numero2, numero3, numero4;\n printf("Digite a primeira numero: ");\n scanf("%f", &numero1);\n \n printf("Digite o segundo numero: ");\n scanf("%f", &numero2);\n \n while (numero1>=numero2){\n printf("Obs: A ...
401
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 30.02, "nodes": 189, "errors": 0, "source_hash": "19dfcaef340c62ed773c6a82ee39bd556d730f6c08cdca3b62039f91db0e3460", "categorized_nodes": 150}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,782
c
// Copyright 2020 Phyronnaz #pragma once #include "CoreMinimal.h" #include "VoxelDefinitions.h" #if VOXEL_DOUBLE_PRECISION using v_flt = double; #define MIN_vflt MIN_dbl #define MAX_vflt MAX_dbl #else using v_flt = float; #define MIN_vflt MIN_flt #define MAX_vflt MAX_flt #endif #define VOXELS_P...
30.57
107
(translation_unit) "// Copyright 2020 Phyronnaz \n \n#pragma once \n \n#include "CoreMinimal.h" \n#include "VoxelDefinitions.h" \n \n#if VOXEL_DOUBLE_PRECISION \nusing v_flt = double; \n \n#define MIN_vflt MIN_dbl \n#define MAX_vflt MAX_dbl \n#else \nusing v_flt = float; \n \n#define MIN_vflt MIN_flt \n#define MAX_vflt...
372
1
{"language": "c", "success": true, "metadata": {"lines": 107, "avg_line_length": 30.57, "nodes": 282, "errors": 0, "source_hash": "39b63e5c58ba70a62b12494f0e1d5e8f63be0bb7912b79bb50b268ed8f6469f5", "categorized_nodes": 156}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
5,783
c
#pragma once #include "../Platform/Types.h" #include <wtypes.h> namespace AmstelTech { namespace Win32 { /////////////////////////////////////////////////////////////////////////////// // IWaitable /////////////////////////////////////////////////////////////////////////////// // An interface to code that can ...
33.92
38
(translation_unit) "#pragma once\n\n#include "../Platform/Types.h"\n\n#include <wtypes.h>\n\nnamespace AmstelTech \n{\n \nnamespace Win32 \n{\n\n///////////////////////////////////////////////////////////////////////////////\n// IWaitable\n///////////////////////////////////////////////////////////////////////////////\...
143
6
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 33.92, "nodes": 76, "errors": 0, "source_hash": "82bf08bf14352c7068e2af2d4709e853319176722bd2bdbd06f34e118cfc4472", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
5,784
c
/* Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your opti...
29.55
69
(translation_unit) "/* \n Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) \n \n This library is free software; you can redistribute it and/or \n modify it under the terms of the GNU Library General Public \n License as published by the Free Software Foundation; either \n version 2 of the...
272
16
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 29.55, "nodes": 152, "errors": 0, "source_hash": "a94beacb96f4948488a50718754629475fd839167f334b0ddd2eef07c6b6d54f", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,785
c
/* * Copyright (C) 2013, British Broadcasting Corporation * All Rights Reserved. * * Author: <NAME> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above...
39.94
88
(translation_unit) "/*\n * Copyright (C) 2013, British Broadcasting Corporation\n * All Rights Reserved.\n *\n * Author: <NAME>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of sour...
480
24
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 39.94, "nodes": 311, "errors": 0, "source_hash": "43874eb509a69559c5ad742d8ba480b6987d3dbf9151b88fda1caff1b49eb84a", "categorized_nodes": 207}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,786
c
/* * Tencent is pleased to support the open source community by making * WCDB available. * * Copyright (C) 2017 THL A29 Limited, a Tencent company. * All rights reserved. * * Licensed under the BSD 3-Clause License (the "License"); you may not use * this file except in compliance with the License. You may obtai...
36.18
51
(translation_unit) "/*\n * Tencent is pleased to support the open source community by making\n * WCDB available.\n *\n * Copyright (C) 2017 THL A29 Limited, a Tencent company.\n * All rights reserved.\n *\n * Licensed under the BSD 3-Clause License (the "License"); you may not use\n * this file except in compliance wit...
266
2
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 36.18, "nodes": 193, "errors": 0, "source_hash": "993b476dc223cdef5b57ea4ab04480701429c9267a476aa35f690cde8ba96027", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,787
c
#ifndef TEXT_HEADER #define TEXT_HEADER #include <cstdio> #include <allegro5/allegro.h> #include <allegro5/allegro_font.h> #include <allegro5/allegro_ttf.h> #include <cstdarg> typedef struct GAME_TEXT { ALLEGRO_FONT *font; int font_width; int font_size; }GAME_TEXT; void text_init(GAME_TEXT *text, const ...
29.12
16
(translation_unit) "#ifndef TEXT_HEADER\n#define TEXT_HEADER\n\n#include <cstdio>\n#include <allegro5/allegro.h>\n#include <allegro5/allegro_font.h>\n#include <allegro5/allegro_ttf.h>\n#include <cstdarg>\n\ntypedef struct GAME_TEXT {\n ALLEGRO_FONT *font;\n int font_width;\n int font_size;\n\n}GAME_TEXT;\n\nvo...
121
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 29.12, "nodes": 91, "errors": 0, "source_hash": "df2b7d067d6bddd3cdf33075005eb8130eba8fe52908c784c509c291a72c8c3d", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,788
c
#ifndef __KTH_SMALLEST_ELEMENT_IN_BST_H #define __KTH_SMALLEST_ELEMENT_IN_BST_H #include <iostream> #include <vector> #include <map> #include <queue> #include <math.h> #include <stack> #include <set> #include <algorithm> #include <unordered_set> #include <unordered_map> using namespace std; static int x = []() { ...
17.74
42
(translation_unit) "#ifndef __KTH_SMALLEST_ELEMENT_IN_BST_H\n#define __KTH_SMALLEST_ELEMENT_IN_BST_H\n\n#include <iostream>\n#include <vector>\n#include <map>\n#include <queue>\n#include <math.h>\n#include <stack>\n#include <set>\n#include <algorithm>\n#include <unordered_set>\n#include <unordered_map>\n\nusing namespa...
241
4
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 17.74, "nodes": 152, "errors": 0, "source_hash": "40102602b8740158a46cb132e7e00e81b5d3568ce2dbb93637f23f0ad23e02a0", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,789
c
#ifndef UTILS_H #define UTILS_H #include <opencv2/core.hpp> #include <QImage> #include <QPixmap> namespace fp { /*! * \brief cvMatToQImage convierte una imagen de tipo cv::Mat a una de tipo QImage * \param inMat imagen de tipo cv::Mat a convertir * \return imagen en formato QImage */ QImage cv_mat_to_qimage(con...
35.07
56
(translation_unit) "#ifndef UTILS_H\n#define UTILS_H\n\n#include <opencv2/core.hpp>\n#include <QImage>\n#include <QPixmap>\n\n\nnamespace fp\n{\n\n/*!\n * \brief cvMatToQImage convierte una imagen de tipo cv::Mat a una de tipo QImage\n * \param inMat imagen de tipo cv::Mat a convertir\n * \return imagen en formato QIma...
244
16
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 35.07, "nodes": 122, "errors": 0, "source_hash": "8f10c394ace53a61497ed7aead96fe96ee91486ccb328f6204e4d1d610ad03db", "categorized_nodes": 96}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,790
c
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #include <memory> #include <type_traits> #include <vector> namespace onnxruntime { class Node; /** Class that provides iteration services for nodes in the Graph. It's primary function is to hide holes in t...
35.83
82
(translation_unit) "// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT License.\n\n#pragma once\n\n#include <memory>\n#include <type_traits>\n#include <vector>\n\nnamespace onnxruntime {\n\nclass Node;\n\n/**\nClass that provides iteration services for nodes in the Graph. \nIt's pri...
654
39
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 35.83, "nodes": 360, "errors": 0, "source_hash": "2037bbde1dea7ee01d3341128226b0c7c43eaa184b4995427b56aac03f8096c2", "categorized_nodes": 242}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
5,791
c
/****************************************************************************\ * OAMAS™ * * * * Copyright © 2021 Aquefir * * ...
43.56
27
(translation_unit) "/****************************************************************************\\n * OAMAS™ *\n * *\n * Copyright © 2021 Aquefir ...
146
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 43.56, "nodes": 103, "errors": 0, "source_hash": "f6f9536b64df9f77bf3ce6b93dfd76583f877ce78be37f82e51087d7eb1c5a38", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ndef IN...
5,792
c
#pragma once #include <Storages/MergeTree/MergeTreeData.h> #include <Storages/MergeTree/MarkRange.h> namespace DB { struct RangesInDataPart { MergeTreeData::DataPartPtr data_part; size_t part_index_in_query; MarkRanges ranges; RangesInDataPart() = default; RangesInDataPart(const MergeTreeData...
27.34
32
(translation_unit) "#pragma once\n\n#include <Storages/MergeTree/MergeTreeData.h>\n#include <Storages/MergeTree/MarkRange.h>\n\n\nnamespace DB\n{\n\n\nstruct RangesInDataPart\n{\n MergeTreeData::DataPartPtr data_part;\n size_t part_index_in_query;\n MarkRanges ranges;\n\n RangesInDataPart() = default;\n\n ...
189
19
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 27.34, "nodes": 109, "errors": 0, "source_hash": "27ad879817f71071dc304c80a65a72e106b6283999f301c9f627090753cdf038", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
5,793
c
/* * Generated by class-dump 3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2012 by <NAME>. */ #import "NSAppleScript.h" @interface NSAppleScript (MessageRuleAdditions) + (id)appleScriptLock; + (id)appleEventDescriptionWithEventClass:(unsigned int)arg1 eventID:(unsigned int)arg2 ...
38
12
(translation_unit) "/*\n * Generated by class-dump 3.4 (64 bit).\n *\n * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2012 by <NAME>.\n */\n\n#import "NSAppleScript.h"\n\n@interface NSAppleScript (MessageRuleAdditions)\n+ (id)appleScriptLock;\n+ (id)appleEventDescriptionWithEventClass:(unsigned int)ar...
119
10
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 38.0, "nodes": 73, "errors": 0, "source_hash": "7400c3b39558d0c7fda81fa305dd634cb3f725b07f289d0497860b1a327bdf48", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
5,794
c
// Copyright 2013 <NAME>. // // Author: <NAME> (<EMAIL>) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, mo...
32.26
87
(translation_unit) "// Copyright 2013 <NAME>.\n//\n// Author: <NAME> (<EMAIL>)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the "Software"), to deal\n// in the Software without restriction, including without limitation the ...
510
1
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 32.26, "nodes": 312, "errors": 0, "source_hash": "884e49841714191f8933130fe190d91fb330ebfcf092c5da4c17ce3d6ab1d3b1", "categorized_nodes": 205}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,795
c
#pragma once #include "k8deployer/Component.h" namespace k8deployer { class ClusterRoleComponent : public Component { public: ClusterRoleComponent(const Component::ptr_t& parent, Cluster& cluster, const ComponentData& data); void prepareDeploy() override; std::string getNamespace() const override { ...
29.75
20
(translation_unit) "#pragma once\n\n#include "k8deployer/Component.h"\n\nnamespace k8deployer {\n\nclass ClusterRoleComponent : public Component\n{\npublic:\n ClusterRoleComponent(const Component::ptr_t& parent, Cluster& cluster, const ComponentData& data);\n\n void prepareDeploy() override;\n std::string getN...
184
14
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 29.75, "nodes": 98, "errors": 0, "source_hash": "41a63e2d151f8a4c0fff00d277fae25f111b98793b234bbb32791b9b3e15077d", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
5,796
c
// output: BEGIN: aaaaaa END int putchar(int c); int main() { for (int i = 0; i < 3; ++i) putchar('a'); for (int i = 0; i < 3; ++i) putchar('a'); }
30.33
6
(translation_unit) "// output: BEGIN: aaaaaa END\nint putchar(int c);\n int main() {\n for (int i = 0; i < 3; ++i) putchar('a');\n for (int i = 0; i < 3; ++i) putchar('a');\n }\n" (comment) "// output: BEGIN: aaaaaa END" (declaration) "int putchar(int c);" (primitive_type) "i...
83
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 30.33, "nodes": 55, "errors": 0, "source_hash": "1b7eb643aefd7903b4136bd422c542842445ff2aac69a2451b396bc9708924f0", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "int putchar...
5,797
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @interface CardButtonModel : NSObject { long long _cardButtonType; long long _cardColorType; } @property(nonatomic) long long cardButtonType; // @synthesize...
32.6
15
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n@interface CardButtonModel : NSObject\n{\n long long _cardButtonType;\n long long _cardColorType;\n}\n\n@property(nonatomic) long l...
99
12
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 32.6, "nodes": 63, "errors": 0, "source_hash": "c70b332b51a51ac99a8a392180b0ff30109668a80ce7e6db363b92fcc46c742a", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
5,798
c
/* $NetBSD: lvm-file.h,v 1.1.1.2 2009/02/18 11:17:17 haad Exp $ */ /* * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved. * Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved. * * This file is part of LVM2. * * This copyrighted material is made available to anyone wishing to use, * mo...
36.98
53
(translation_unit) "/* $NetBSD: lvm-file.h,v 1.1.1.2 2009/02/18 11:17:17 haad Exp $ */\n\n/*\n * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved. \n * Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved.\n *\n * This file is part of LVM2.\n *\n * This copyrighted material is made available to ...
204
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 36.98, "nodes": 137, "errors": 0, "source_hash": "a6ca72ab3150d47c402443bc958f5933ff9e7293b65abe21d6ef3e0f8a02a864", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,799