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
// // LocalyticsDatabase.h // LocalyticsDemo // // Created by jkaufman on 5/26/11. // Copyright 2011 Localytics. All rights reserved. // #import <Foundation/Foundation.h> #import <sqlite3.h> @interface LocalyticsDatabase : NSObject { sqlite3 *_databaseConnection; NSRecursiveLock *_dbLock; NSRecursiveL...
35.32
37
(translation_unit) "//\n// LocalyticsDatabase.h\n// LocalyticsDemo\n//\n// Created by jkaufman on 5/26/11.\n// Copyright 2011 Localytics. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <sqlite3.h>\n\n@interface LocalyticsDatabase : NSObject {\n sqlite3 *_databaseConnection;\n NSRecursi...
387
33
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 35.32, "nodes": 232, "errors": 0, "source_hash": "60b74f403ab547c7aa0c1e845bfffc0594414ae0f7c70fea2ecb8f6e2818118a", "categorized_nodes": 139}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
79,300
c
/* Routines for reading GIMPLE from a file stream. Copyright (C) 2011-2018 Free Software Foundation, Inc. Contributed by <NAME> <<EMAIL>> This file is part of GCC. GCC 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 ...
34.09
261
(translation_unit) "/* Routines for reading GIMPLE from a file stream.\n\n Copyright (C) 2011-2018 Free Software Foundation, Inc.\n Contributed by <NAME> <<EMAIL>>\n\nThis file is part of GCC.\n\nGCC is free software; you can redistribute it and/or modify it under\nthe terms of the GNU General Public License as pub...
2,042
11
{"language": "c", "success": true, "metadata": {"lines": 261, "avg_line_length": 34.09, "nodes": 1300, "errors": 0, "source_hash": "b835efc61312372162d870d1d5705ed9a79c119a49d3c423cda2d23808148030", "categorized_nodes": 953}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
79,301
c
#include "s3c2440_soc.h" #include "init.h" #include "nand_flash.h" void sdram_init(void) { BWSCON = 0x22000000; BANKCON6 = 0x18001; BANKCON7 = 0x18001; REFRESH = 0x8404f5; BANKSIZE = 0xb1; MRSRB6 = 0x20; MRSRB7 = 0x20; } /** * 测试程序 读写内存 * */ int sdram_test(void) { volatile ...
23.66
125
(translation_unit) "#include "s3c2440_soc.h"\n#include "init.h"\n#include "nand_flash.h"\n\nvoid sdram_init(void)\n{\n BWSCON = 0x22000000;\n\n BANKCON6 = 0x18001;\n BANKCON7 = 0x18001;\n\n REFRESH = 0x8404f5;\n\n BANKSIZE = 0xb1;\n\n MRSRB6 = 0x20;\n MRSRB7 = 0x20; \n}\n\n/**\n * 测试程序 读写内存\n...
873
0
{"language": "c", "success": true, "metadata": {"lines": 125, "avg_line_length": 23.66, "nodes": 536, "errors": 0, "source_hash": "86df55e554fcdfe516b493409bacf88d46852f497afbb7bba1605e8081798f91", "categorized_nodes": 326}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,302
c
#define QUBOBUS_PROTOCOL_VERSION 3 #define QUBOBUS_ANNOUNCE_INTERVAL_S 5 #define QUBOBUS_KEEPALIVE_INTERVAL_S 1 #define QUBOBUS_MAX_PAYLOAD_LENGTH 512
36.75
4
(translation_unit) "#define QUBOBUS_PROTOCOL_VERSION 3\n\n#define QUBOBUS_ANNOUNCE_INTERVAL_S 5\n#define QUBOBUS_KEEPALIVE_INTERVAL_S 1\n\n#define QUBOBUS_MAX_PAYLOAD_LENGTH 512\n" (preproc_def) "#define QUBOBUS_PROTOCOL_VERSION 3\n" (#define) "#define" (identifier) "QUBOBUS_PROTOCOL_VERSION" (preproc_arg...
17
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 36.75, "nodes": 16, "errors": 0, "source_hash": "efab1b53b965acaa834c184c85cdeaffebe4d777dffa13d9c2b0a0a99e2db206", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define QUBO...
79,303
c
/* * #%L * %% * Copyright (C) 2020 BMW Car IT GmbH * %% * 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...
29.15
150
(translation_unit) "/*\n * #%L\n * %%\n * Copyright (C) 2020 BMW Car IT GmbH\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...
463
26
{"language": "c", "success": true, "metadata": {"lines": 150, "avg_line_length": 29.15, "nodes": 264, "errors": 0, "source_hash": "e8a58370bbaec2dedb6c9a5ea20cac1a4184e3f8e42c5f723e58b2c5f09206f4", "categorized_nodes": 177}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
79,304
c
#import <LegacyComponents/LegacyComponents.h> @class TGPresentation; @class TGTermsOfService; @interface TGGDPRNoticeController : TGViewController @property (nonatomic, strong) TGPresentation *presentation; - (instancetype)initWithTermsOfService:(TGTermsOfService *)termsOfService; @end
40
7
(translation_unit) "#import <LegacyComponents/LegacyComponents.h>\n\n@class TGPresentation;\n@class TGTermsOfService;\n\n@interface TGGDPRNoticeController : TGViewController\n\n@property (nonatomic, strong) TGPresentation *presentation;\n\n- (instancetype)initWithTermsOfService:(TGTermsOfService *)termsOfService;\n\n@e...
61
11
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 40.0, "nodes": 40, "errors": 0, "source_hash": "b90a930ee704a4853547e0f8a9b1df092d724817b20c2c893b048aafae618466", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Le...
79,305
c
// // SinaUserModel.h // FrameModel方式 // // Created by san_xu on 2017/3/17. // Copyright © 2017年 朱献国. All rights reserved. // #import <Foundation/Foundation.h> @interface SinaUserModel : NSObject /** * 头像地址 */ @property (nonatomic, copy) NSString *profile_image_url; /** * 昵称 */ @property (nonatomic, copy)...
18.17
18
(translation_unit) "//\n// SinaUserModel.h\n// FrameModel方式\n//\n// Created by san_xu on 2017/3/17.\n// Copyright © 2017年 朱献国. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface SinaUserModel : NSObject\n\n/**\n * 头像地址\n */\n@property (nonatomic, copy) NSString *profile_image_url;\n\n/**\n...
56
10
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 18.17, "nodes": 35, "errors": 0, "source_hash": "72bdde8eaad7f9e6c2afb29022ff039d7c53a5bb3f3c249d9559732693cd6b48", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "dation/Fo...
79,306
c
#include "solve.h" #include <euler/math.h> uint32_t solve(uint32_t max) { uint32_t l = 1; for (uint32_t i = 2; i <= max; i++) { l = lcm(l, i); } return l; }
17.78
9
(translation_unit) "#include "solve.h"\n#include <euler/math.h>\n\nuint32_t solve(uint32_t max) {\n uint32_t l = 1;\n\n for (uint32_t i = 2; i <= max; i++) {\n l = lcm(l, i);\n }\n\n return l;\n}\n" (preproc_include) "#include "solve.h"\n" (#include) "#include" (string_literal) ""solve.h"" (") ""...
69
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 17.78, "nodes": 44, "errors": 0, "source_hash": "c7d6db83b86d50b646a73838d78582653cec2cf0dc88fdfe60fcb68fc935d6ec", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
79,307
c
// Copyright <NAME> 2019. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file ../LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #if !defined(CNL_IMPL_WIDE_INTEGER_DEFINITION_H) #define CNL_IMPL_WIDE_INTEGER_DEFINITION_H #include "../num_tr...
39.78
18
(translation_unit) "// Copyright <NAME> 2019.\n// Distributed under the Boost Software License, Version 1.0.\n// (See accompanying file ../LICENSE_1_0.txt or copy at\n// http://www.boost.org/LICENSE_1_0.txt)\n\n#if !defined(CNL_IMPL_WIDE_INTEGER_DEFINITION_H)\n#define CNL_IMPL_WIDE_INTEGER_DEFINITI...
114
8
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 39.78, "nodes": 78, "errors": 0, "source_hash": "965bb23f48af7ca62b7ae5a024744fcad231829247c850b8158cabd395899c65", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !define...
79,308
c
/** * Copyright (c) 2021 by exFM Contributors */ #pragma once #include "feature/feat_manager.h" #include "solver/parammeter_container.h" #include "utils/base.h" #include "train/train_opt.h" class Sample { public: Sample() {} ~Sample() {} real_t forward(); void backward(); size_t fm_layer_nodes_size; ...
27.67
54
(translation_unit) "/**\n * Copyright (c) 2021 by exFM Contributors\n */\n#pragma once\n#include "feature/feat_manager.h"\n#include "solver/parammeter_container.h"\n#include "utils/base.h"\n#include "train/train_opt.h"\n\nclass Sample {\n public:\n Sample() {}\n ~Sample() {}\n\n real_t forward();\n\n void backward...
439
22
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 27.67, "nodes": 260, "errors": 0, "source_hash": "01ffc6d2cec555ac5a02a78ec6f817e8c43c8f78f1d246bf93afe1b192e75f6c", "categorized_nodes": 190}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
79,309
c
/* * Copyright (C) 2004, 2007-2009 Internet Systems Consortium, Inc. ("ISC") * Copyright (C) 1998-2001 Internet Software Consortium. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this p...
41.21
42
(translation_unit) "/*\n * Copyright (C) 2004, 2007-2009 Internet Systems Consortium, Inc. ("ISC")\n * Copyright (C) 1998-2001 Internet Software Consortium.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * c...
103
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 41.21, "nodes": 77, "errors": 0, "source_hash": "e663aaaca813b1ffebc92189b0f209a413806d0faf5a700bab9c9326e6e5b556", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,310
c
/*** ipfrag.c - module that handles fragmented IP packets. This module is necessary to maintain accurate counts in case fragmented IP packets are received. TCP and UDP headers are not copied in fragments. This module is based on RFC 815, but does not really reassemble packets. The routines here merely accumulate pa...
28.65
226
(translation_unit) "/***\n\nipfrag.c - module that handles fragmented IP packets.\n\nThis module is necessary to maintain accurate counts in case\nfragmented IP packets are received. TCP and UDP headers are not copied\nin fragments.\n\nThis module is based on RFC 815, but does not really reassemble packets.\nThe routi...
1,772
0
{"language": "c", "success": true, "metadata": {"lines": 226, "avg_line_length": 28.65, "nodes": 1176, "errors": 0, "source_hash": "cbe153e2f26f4fb386746c5ee22221d6d768fed532e5ff9361e96886da3325c7", "categorized_nodes": 855}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
79,311
c
#pragma once #ifndef WIN32 extern const unsigned char icoadd_png[772]; extern const unsigned char icodoctoradd_png[644]; extern const unsigned char icodown_png[828]; extern const unsigned char icoedit_png[716]; extern const unsigned char icoexit_png[506]; extern const unsigned char icogroupadd_png[782]; extern const ...
38.73
15
(translation_unit) "#pragma once\n\n#ifndef WIN32\n\nextern const unsigned char icoadd_png[772];\nextern const unsigned char icodoctoradd_png[644];\nextern const unsigned char icodown_png[828];\nextern const unsigned char icoedit_png[716];\nextern const unsigned char icoexit_png[506];\nextern const unsigned char icogro...
176
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 38.73, "nodes": 115, "errors": 0, "source_hash": "7cec379ae0e83da1c6afdb4f9e4fad454fed5ff334854850f81384338e4535ce", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
79,312
c
#pragma once #include <brutal/base.h> /* --- */ #include <brutal/base/std.h> #include <brutal/mem/units.h> #include <brutal/mem/volatile.h> #define MEM_PAGE_SIZE (0x1000) #define mem_is_addr_page_aligned(ADDR) ((ADDR) % MEM_PAGE_SIZE == 0) #define mem_is_size_page_aligned(SIZE) ((SIZE) % MEM_PAGE_SIZE == 0) #defin...
42.07
14
(translation_unit) "#pragma once\n\n#include <brutal/base.h>\n/* --- */\n#include <brutal/base/std.h>\n#include <brutal/mem/units.h>\n#include <brutal/mem/volatile.h>\n\n#define MEM_PAGE_SIZE (0x1000)\n\n#define mem_is_addr_page_aligned(ADDR) ((ADDR) % MEM_PAGE_SIZE == 0)\n\n#define mem_is_size_page_aligned(SIZE) ((SIZ...
122
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 42.07, "nodes": 95, "errors": 0, "source_hash": "dc5968d30c053505997c2d0ee2ab8a9155d288b6f4c60725d82a7237ffe8875c", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
79,313
c
/******************************************************************************* * * Copyright (C) 2017 Xilinx, Inc. All rights reserved. * * 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 Softw...
31.81
154
(translation_unit) "/*******************************************************************************\n *\n * Copyright (C) 2017 Xilinx, Inc. All rights reserved.\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")...
656
0
{"language": "c", "success": true, "metadata": {"lines": 154, "avg_line_length": 31.81, "nodes": 292, "errors": 0, "source_hash": "124989f092219c49608919e86779da850ab3fc71228f6bd8cdea6a60e0eb0a12", "categorized_nodes": 268}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
79,314
c
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <error.h> #include <errno.h> #include <fcntl.h> // para el mkfifo #include <sys/stat.h> // para el mkfifo #include <sys/types.h>// para el mkfifo #include <signal.h> #include "sock.c" #include "constantes.h" #include "Rp.h" //-----...
32.82
84
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <unistd.h>\n#include <string.h>\n#include <error.h>\n#include <errno.h>\n#include <fcntl.h> // para el mkfifo\n#include <sys/stat.h> // para el mkfifo\n#include <sys/types.h>// para el mkfifo\n#include <signal.h>\n#include "sock.c"\n#include "constan...
587
0
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 32.82, "nodes": 337, "errors": 0, "source_hash": "c4a72bdcb84ee1a1debf4db51c9c45954c213f70dedf1de4c1179c54ea6dac64", "categorized_nodes": 253}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,315
c
#include <stdio.h> #include <errno.h> #include <time.h> #include <locale.h> int main() { time_t tiempo; if (time(&tiempo) == -1) { printf("Error time() %d: %s\n", errno, strerror(errno)); } printf("Segundos desde el Epoch: %li\n", tiempo); struct tm tiempoLocal; tiempoLocal = *localtime(&tiempo); p...
18.28
29
(translation_unit) "#include <stdio.h>\n#include <errno.h>\n#include <time.h>\n#include <locale.h>\n\nint main() {\n\n time_t tiempo;\n \n if (time(&tiempo) == -1) {\n \n printf("Error time() %d: %s\n", errno, strerror(errno));\n }\n \n printf("Segundos desde el Epoch: %li\n", tiempo);\n \n struct tm tiempoLocal;\n ti...
181
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 18.28, "nodes": 98, "errors": 0, "source_hash": "e022c9c0f8dc53b53270b4883294c91ac73e237bb64138f383eae585d4e4c3ac", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
79,316
c
#ifndef SBS_COMMON_MESH_H #define SBS_COMMON_MESH_H #include "node.h" #include <Eigen/Core> #include <array> namespace sbs { namespace common { struct geometry_t; class shared_vertex_surface_mesh_i : public renderable_node_t { public: struct vertex_type { Eigen::Vector3d position{0.f, 0.f, 0.f}; ...
35.88
65
(translation_unit) "#ifndef SBS_COMMON_MESH_H\n#define SBS_COMMON_MESH_H\n\n#include "node.h"\n\n#include <Eigen/Core>\n#include <array>\n\nnamespace sbs {\nnamespace common {\n\nstruct geometry_t;\n\nclass shared_vertex_surface_mesh_i : public renderable_node_t\n{\n public:\n struct vertex_type\n {\n Eig...
558
39
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 35.88, "nodes": 335, "errors": 0, "source_hash": "20f3ba5f81e123e97072179e4c72b09641263dcddbefd8bce1beacf85bbc90d4", "categorized_nodes": 232}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef SBS_CO...
79,317
c
/* * * Embedded System Architecture * Copyright (c) 2018 Packt * * Author: <NAME> <<EMAIL>> * * MIT License * 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, incl...
32.81
96
(translation_unit) "/*\n *\n * Embedded System Architecture\n * Copyright (c) 2018 Packt\n *\n * Author: <NAME> <<EMAIL>>\n *\n * MIT License\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 Soft...
738
0
{"language": "c", "success": true, "metadata": {"lines": 96, "avg_line_length": 32.81, "nodes": 513, "errors": 0, "source_hash": "c4590353323d5db1c74c2c46eb0cfbe1e527cea874b84e4f6afa1aba7ca1bb0c", "categorized_nodes": 315}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern u...
79,318
c
// RUN: %clang_cc1 -emit-llvm < %s | FileCheck %s // RUN: %clang_cc1 -emit-llvm < %s | grep 'load.*addrspace(2).. @A' // RUN: %clang_cc1 -emit-llvm < %s | grep 'load.*addrspace(2).. @B' // CHECK: @foo = common addrspace(1) global int foo __attribute__((address_space(1))); // CHECK: @ban = common addrspace(1) global ...
31.44
36
(translation_unit) "// RUN: %clang_cc1 -emit-llvm < %s | FileCheck %s\n// RUN: %clang_cc1 -emit-llvm < %s | grep 'load.*addrspace(2).. @A'\n// RUN: %clang_cc1 -emit-llvm < %s | grep 'load.*addrspace(2).. @B'\n\n\n// CHECK: @foo = common addrspace(1) global\nint foo __attribute__((address_space(1)));\n\n// CHECK: @ban =...
208
2
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 31.44, "nodes": 111, "errors": 0, "source_hash": "bc507c2240e22b31d3334f08fa1e9bd0ac037a17ef93c51c705d1ef56068b638", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "int foo",...
79,319
c
/* * Copyright (c) 2010-2019 Triad National Security, LLC * All rights reserved. * * This file is part of the mpimemu project. See the LICENSE file at the * top-level directory of this distribution. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "mmu_constants.h" #include "m...
27.86
304
(translation_unit) "/*\n * Copyright (c) 2010-2019 Triad National Security, LLC\n * All rights reserved.\n *\n * This file is part of the mpimemu project. See the LICENSE file at the\n * top-level directory of this distribution.\n */\n\n#ifdef HAVE_CONFIG_H\n#include "config.h"\n#endif\n\n#inclu...
2,028
0
{"language": "c", "success": true, "metadata": {"lines": 304, "avg_line_length": 27.86, "nodes": 1228, "errors": 0, "source_hash": "78611231a9b8b685241f31bd61c8d184ed20c7a8706a44b7c8cdb073c19fae1b", "categorized_nodes": 743}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifd...
79,320
c
#include <criterion/criterion.h> #include "test.h" Test(adding_options, creation, .init=create_parser, .fini=destroy_parser) { add_option_a(); add_option_b(); add_option_c(); cr_assert(parser->count == 3, "Expected parser->count to be 3."); } Test(adding_options, short_name, .init=create_parser, .fini=destro...
25.08
64
(translation_unit) "#include <criterion/criterion.h>\n#include "test.h"\n\n\nTest(adding_options, creation, .init=create_parser, .fini=destroy_parser)\n{\n add_option_a();\n add_option_b();\n add_option_c();\n cr_assert(parser->count == 3, "Expected parser->count to be 3.");\n}\n\nTest(adding_options, short_name, ....
503
16
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 25.08, "nodes": 242, "errors": 0, "source_hash": "2c127165cec55f3ceeb3bacdaf373c407c9912d933682e37ab5a07d225694234", "categorized_nodes": 191}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,321
c
#include <stdio.h> #include "mean.h" int main(int argc, char* argv[]) { double n,m,p; n = 9.6; m = 11.8; p = mean(n,m); printf("The Mean of %3.2f and %3.2f is %3.2f \n", m, n, p); return 0; }
15.57
14
(translation_unit) "#include <stdio.h> \n#include "mean.h" \n \nint main(int argc, char* argv[]) \n{ \n double n,m,p; \n n = 9.6; \n m = 11.8; \n \n p = mean(n,m); \n \n printf("The Mean of %3.2f and %3.2f is %3.2f \n", m, n, p); \n return 0; \n}" (preproc_include) "#include <stdio.h> \n" (#incl...
87
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 15.57, "nodes": 51, "errors": 0, "source_hash": "01feb913016c5dc9cf56d066c928ca95b1c0424958d813defdbaa706c16055ac", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
79,322
c
// // exception.h // OCExtension // // Created by <EMAIL> on 15/11/29. // Copyright © 2015年 Wood Studio. All rights reserved. // #ifndef OCExtension_exception_h #define OCExtension_exception_h #include <OCExtension/PublicHeader.h> #include <mach/mach.h> /** * 异常捕获状态,调试器通过该设置与被调试程序进行交互。 */ typedef struct prot...
19.3
56
(translation_unit) "//\n// exception.h\n// OCExtension\n//\n// Created by <EMAIL> on 15/11/29.\n// Copyright © 2015年 Wood Studio. All rights reserved.\n//\n\n#ifndef OCExtension_exception_h\n#define OCExtension_exception_h\n\n#include <OCExtension/PublicHeader.h>\n#include <mach/mach.h>\n\n\n/**\n * 异常捕获状态,调试器通过该设...
113
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 19.3, "nodes": 69, "errors": 0, "source_hash": "5b8c1c58f3e020c03853aebd32ff03e4c6e04e0f78ad8e17f28516eea05d3b23", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ndef OCEx...
79,323
c
// // CMLConstants.h // Chameleon // // Created by Chameleon-Team on 2018/12/24. // Copyright © 2018年 Chameleon-Team. All rights reserved. // #import "UIDevice+CMLExtends.h" #ifndef CMLConstants_h #define CMLConstants_h #define CMLSDKVersion @"0.1" #define CMLBridgeScheme @"cml" #define CMLCallBackBridgeScheme ...
32.9
41
(translation_unit) "//\n// CMLConstants.h\n// Chameleon\n//\n// Created by Chameleon-Team on 2018/12/24.\n// Copyright © 2018年 Chameleon-Team. All rights reserved.\n//\n\n#import "UIDevice+CMLExtends.h"\n\n#ifndef CMLConstants_h\n#define CMLConstants_h\n\n\n#define CMLSDKVersion @"0.1"\n#define CMLBridgeScheme @"cm...
100
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 32.9, "nodes": 73, "errors": 0, "source_hash": "72be8acfee115de90cdb0816ae2211373c0b30a0649fbf9b5c1df75e8de2347c", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"UID...
79,324
c
// // ContentViewController.h // PictureAlbum // // Created by shengxin on 16/5/24. // Copyright © 2016年 shengxin. All rights reserved. // #import <UIKit/UIKit.h> @interface ContentViewController : UIViewController - (void)setData:(NSMutableArray*)aArray; @end
23.09
11
(translation_unit) "//\n// ContentViewController.h\n// PictureAlbum\n//\n// Created by shengxin on 16/5/24.\n// Copyright © 2016年 shengxin. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ContentViewController : UIViewController\n\n- (void)setData:(NSMutableArray*)aArray;\n\n@end\n" (comment) "/...
40
5
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 23.09, "nodes": 22, "errors": 0, "source_hash": "986fe2aee484e8fbc4630b3ecb67301ec483ea0d665441ad655f4a9221a84b93", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
79,325
c
void EIE3810_TFTLCD_DrawCircle(u16 x0,u16 y0, u8 r, u8 full,u16 color) /* x0, y0 : center of the circle; r: radius; full: whether the circle is hollow or solid; color: color of the circle.*/ { int a,b; int di,yi; a=0;b=r; di=3-(r<<1); if(!full) //Hollow circle { while(a<=b) ...
30.46
89
(translation_unit) "void EIE3810_TFTLCD_DrawCircle(u16 x0,u16 y0, u8 r, u8 full,u16 color) \n /* x0, y0 : center of the circle; r: radius; full: whether the circle is hollow or solid; color: color of the circle.*/\n{\n int a,b;\n int di,yi;\n a=0;b=r; \n di=3-(r<<1); \n if(!full) //Hollow circle ...
915
0
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 30.46, "nodes": 583, "errors": 0, "source_hash": "f22cc8184de1a6d2fcf372e4d7d4fe76334f88c520d155d62b0ade534a366a8a", "categorized_nodes": 441}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "...
79,326
c
/* * Copyright 2016-2019, <NAME>. All Rights Reserved. * Distributed under the terms of the MIT License. * * Authors: * <NAME>, <EMAIL> */ #include <ctype.h> #include <libgen.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "core/constants.h" #include "core/common.h" #...
28.47
213
(translation_unit) "/*\n * Copyright 2016-2019, <NAME>. All Rights Reserved.\n * Distributed under the terms of the MIT License.\n *\n * Authors:\n * <NAME>, <EMAIL>\n */\n\n#include <ctype.h>\n#include <libgen.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <unistd.h>\n\n#include "core/cons...
1,645
0
{"language": "c", "success": true, "metadata": {"lines": 213, "avg_line_length": 28.47, "nodes": 935, "errors": 0, "source_hash": "750723d43b5049cca44d5fe86e6b7f947fe150c8a39b077a2e7748bca78a3674", "categorized_nodes": 642}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,327
c
/*++ Copyright(c) 1995 Microsoft Corporation MODULE NAME table.c ABSTRACT Generic hash table manipulation routines. AUTHOR <NAME> (adiscolo) 28-Jul-1995 REVISION HISTORY --*/ #include <ndis.h> #include <cxport.h> #include <tdi.h> #include <tdikrnl.h> #include <tdistat.h> #includ...
20.03
287
(translation_unit) "/*++ \n \nCopyright(c) 1995 Microsoft Corporation \n \nMODULE NAME \n table.c \n \nABSTRACT \n Generic hash table manipulation routines. \n \nAUTHOR \n <NAME> (adiscolo) 28-Jul-1995 \n \nREVISION HISTORY \n \n--*/ \n \n#include <ndis.h> \n#include <cxport.h> \n#include <tdi.h> \n#include <t...
1,420
16
{"language": "c", "success": true, "metadata": {"lines": 287, "avg_line_length": 20.03, "nodes": 845, "errors": 0, "source_hash": "6231f6fd4d51788cffb1d32513829a63c6b2aaae386521d7908d85067157f5af", "categorized_nodes": 680}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,328
c
#ifndef PhysicsTools_HepMCCandAlgos_interface_HFFilter_h #define PhysicsTools_HepMCCandAlgos_interface_HFFilter_h // -*- C++ -*- // // Package: HFFilter // Class: HFFilter // /**\class HFFilter HFFilter.cc PhysicsTools/HFFilter/src/HFFilter.cc Description: Filter to see if there are heavy flavor GenJets in t...
33.83
47
(translation_unit) "#ifndef PhysicsTools_HepMCCandAlgos_interface_HFFilter_h\n#define PhysicsTools_HepMCCandAlgos_interface_HFFilter_h\n\n// -*- C++ -*-\n//\n// Package: HFFilter\n// Class: HFFilter\n//\n/**\class HFFilter HFFilter.cc PhysicsTools/HFFilter/src/HFFilter.cc\n\n Description: Filter to see if there...
190
11
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 33.83, "nodes": 92, "errors": 0, "source_hash": "0aa7e4a08ba85a2534e45deba958a67f054b204a08591f42b417c49328f3e1b2", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,329
c
#ifndef PURCHASEDIALOG_H #define PURCHASEDIALOG_H #include <QDialog> #include <QProcess> #include <QMessageBox> #include <QDebug> #include <QRegExp> #include "walletmodel.h" #include "addressbookpage.h" namespace Ui { class PurchaseDialog; } class ClientModel; /** "Purchase" dialog box */ class PurchaseDialog :...
22.49
37
(translation_unit) "#ifndef PURCHASEDIALOG_H\n#define PURCHASEDIALOG_H\n\n#include <QDialog>\n#include <QProcess>\n#include <QMessageBox>\n#include <QDebug>\n#include <QRegExp>\n#include "walletmodel.h"\n#include "addressbookpage.h"\n\n\nnamespace Ui {\n class PurchaseDialog;\n}\nclass ClientModel;\n\n/** "Purchase"...
191
5
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 22.49, "nodes": 125, "errors": 0, "source_hash": "9a38ad2fc31080eb0ccd73d537e872266428e6e08bb47ccf46290b20c2e1ed45", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,330
c
/** *Copyright (c) 2000-2001, <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 above copyright * notice, this list of conditions and the f...
30.1
157
(translation_unit) "/** \n*Copyright (c) 2000-2001, <NAME> \n*All rights reserved. \n*Redistribution and use in source and binary forms, with or without \n*modification, are permitted provided that the following conditions \n*are met: \n* Redistributions of source code must retain the above copyright \n* notice, this l...
736
35
{"language": "c", "success": true, "metadata": {"lines": 157, "avg_line_length": 30.1, "nodes": 463, "errors": 0, "source_hash": "4d42b48e664dbd44f851ee6a5e8d37823871d1f8c9763e8e2e3dfaf03f2a27e1", "categorized_nodes": 334}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef _ABSTR...
79,331
c
/* * This text was generated automatically * It provides the ISC implementation of * MPI_Type_free */ #include <_mpi.h> #ifdef __GNUC__ void MPI_TYPE_FREE() __attribute__ ((weak, alias("iscf_type_free"))); void mpi_type_free() __attribute__ ((weak, alias("iscf_type_free"))); void mpi_type_free_() __attribute__ (...
30.88
16
(translation_unit) "/*\n * This text was generated automatically\n * It provides the ISC implementation of\n * MPI_Type_free\n */\n\n#include <_mpi.h>\n\n#ifdef __GNUC__\nvoid MPI_TYPE_FREE() __attribute__ ((weak, alias("iscf_type_free")));\nvoid mpi_type_free() __attribute__ ((weak, alias("iscf_type_free")));\nvoid mp...
147
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 30.88, "nodes": 83, "errors": 0, "source_hash": "bfd64f2ea5dddca31d1815845bf01888bd20ffc704580e09bef98db011067fd1", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
79,332
c
#include "caps.c"
17
1
(translation_unit) "#include "caps.c"\n" (preproc_include) "#include "caps.c"\n" (#include) "#include" (string_literal) ""caps.c"" (") """ (string_content) "caps.c" (") """
7
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 17.0, "nodes": 3, "errors": 0, "source_hash": "9e0ac13103578aed9bb73d72aef5761ccbafbe3cebcbfce487b163bd2c2eec92", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \...
79,333
c
#include <stdio.h> #include <util/case.h> #include <util/strlen-s.h> #define SOURCE "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" int main() { int source_len; int result; // Print og string printf("%s\n", SOURCE); // Take og string's length source_len = strle...
16.98
52
(translation_unit) "#include <stdio.h> \n \n#include <util/case.h> \n#include <util/strlen-s.h> \n \n#define SOURCE "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" \n \nint main() { \n \n int source_len; \n int result; \n \n // Print og string \n \n printf("%s\n", SOURCE); \n \n // Take og strin...
172
0
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 16.98, "nodes": 98, "errors": 0, "source_hash": "15d3d7929cdac47cdb0946cb3564aa25d04212976b3b4e22c9dff3979584d9bd", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
79,334
c
#ifndef YAJL_YAJL_H #define YAJL_YAJL_H #include "image.h" #endif
15.5
4
(translation_unit) "#ifndef YAJL_YAJL_H\n#define YAJL_YAJL_H\n\n#include "image.h"\n\n#endif\n" (preproc_ifdef) "#ifndef YAJL_YAJL_H\n#define YAJL_YAJL_H\n\n#include "image.h"\n\n#endif" (#ifndef) "#ifndef" (identifier) "YAJL_YAJL_H" (preproc_def) "#define YAJL_YAJL_H\n" (#define) "#define" (i...
14
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 15.5, "nodes": 10, "errors": 0, "source_hash": "14b8104fe8faa58f55d949a2cd6a6d785910c2e2c953ffa8b12d43d75012d66c", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef YAJ...
79,335
c
/* ** EPITECH PROJECT, 2020 ** find_binary ** File description: ** double_array_size */ #include <stdlib.h> /* */ #include "double_array_size.h" int double_array_size(void **array, size_t *allocated) { if (*array != NULL) { free(*array); } *allocated *= 2; *array = malloc(sizeof(char) * (*all...
18.89
18
(translation_unit) "/*\n** EPITECH PROJECT, 2020\n** find_binary\n** File description:\n** double_array_size\n*/\n\n#include <stdlib.h>\n\n/* */\n#include "double_array_size.h"\n\nint double_array_size(void **array, size_t *allocated)\n{\n if (*array != NULL) {\n free(*array);\n }\n *allocated *= 2;\n ...
107
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 18.89, "nodes": 70, "errors": 0, "source_hash": "c7f131a2a3476349b32cbfd878f30d3bd8a8cfbdccaea27544dcc20101f4644f", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
79,336
c
// // UIViewController+Utils.h // RWProgressHUD // // Created by 常小哲 on 16/8/21. // Copyright © 2016年 常小哲. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface UIViewController (Utils) - (__kindof UIViewController *)rw_push:(Class)controllerClass; - (__kindof UIViewController *)rw...
24.07
15
(translation_unit) "//\n// UIViewController+Utils.h\n// RWProgressHUD\n//\n// Created by 常小哲 on 16/8/21.\n// Copyright © 2016年 常小哲. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface UIViewController (Utils)\n\n- (__kindof UIViewController *)rw_push:(Class)controllerClass;\...
68
7
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 24.07, "nodes": 42, "errors": 0, "source_hash": "aef1e743553458e7010d6a10e0618ad23cc2d45b8cad2247117426d804722f45", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit.h>\...
79,337
c
// Copyright (C) 2015-2021 <NAME>, Inc. // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // (1) Redistributions of source code must retain the above copyright // notice,...
35.34
79
(translation_unit) "// Copyright (C) 2015-2021 <NAME>, Inc.\n//\n// All rights reserved.\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are\n// met:\n//\n// (1) Redistributions of source code must retain the abo...
191
11
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 35.34, "nodes": 75, "errors": 0, "source_hash": "32508732eccc9df760760a4202619554703fd780f3b839be611b546963267771", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,338
c
#ifndef SEMIJEFE_H #define SEMIJEFE_H #include <iostream> #include <string> #include "Monstruo.h" using namespace std; class SemiJefe:public Monstruo{ public: int vidaSJ; int defensaSJ; int attSJ; SemiJefe(); SemiJefe(int, int, int, string, Item*); int getVidaSJ(); void setVidaSJ(int); int getDefensaS...
17.47
19
(translation_unit) "#ifndef SEMIJEFE_H\n#define SEMIJEFE_H\n#include <iostream>\n#include <string>\n#include "Monstruo.h"\nusing namespace std;\nclass SemiJefe:public Monstruo{\npublic:\n int vidaSJ;\n int defensaSJ;\n int attSJ;\n\n SemiJefe();\n SemiJefe(int, int, int, string, Item*);\n\n int getVidaSJ();\n vo...
112
3
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 17.47, "nodes": 70, "errors": 0, "source_hash": "75039da4ae49e20e1ac5b77f6980f762ccbd3b62632e76ba02e3958d9e99ca05", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,339
c
#include <errno.h> #include <malloc.h> #include <string.h> #include <stdlib.h> #include "mx.h" #include "log.h" struct MXRecord * pick_mx(struct MXRecord *records, size_t nrecords) { struct MXRecord *rec; uint16_t cur_min_pri = (1<<16) - 1; size_t cur_min_count = 0, cur_min_pos = 0, min_pos; register si...
24.36
143
(translation_unit) "#include <errno.h>\n#include <malloc.h>\n#include <string.h>\n#include <stdlib.h>\n\n#include "mx.h"\n#include "log.h"\n\nstruct MXRecord *\npick_mx(struct MXRecord *records, size_t nrecords)\n{\n struct MXRecord *rec;\n uint16_t cur_min_pri = (1<<16) - 1;\n size_t cur_min_count = 0,\n cur_min_p...
1,005
0
{"language": "c", "success": true, "metadata": {"lines": 143, "avg_line_length": 24.36, "nodes": 615, "errors": 0, "source_hash": "738ea39df830d8a6b0668f586a3835fa2faabcd8e515a0ee9edbb07e3df82bff", "categorized_nodes": 446}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,340
c
void duplicateMatch( struct qryData *query, struct resultColumnValue** match ) { int i = 0; struct resultColumnValue* newMatch = NULL; reallocMsg( (void**)&newMatch, (query->columnCount)*sizeof(struct resultColumnValue) ); memmove(newMatch, *match, (query->columnCount)*sizeof(struct resultCo...
27.62
16
(translation_unit) "void duplicateMatch(\n struct qryData *query,\n struct resultColumnValue** match\n) {\n int i = 0;\n struct resultColumnValue* newMatch = NULL;\n\n reallocMsg(\n (void**)&newMatch,\n (query->columnCount)*sizeof(struct resultColumnValue)\n );\n\n memmove(newMatch, *match, (query->col...
178
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 27.62, "nodes": 120, "errors": 0, "source_hash": "d0df8ee397635b0fa5db7c69fbfeaab42199c038dd5e489492368857c3fc5b30", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "v...
79,341
c
/* * timeout.c * * Created on: 2. 12. 2014 * Author: ondra */ #include <stdbool.h> #include <stddef.h> #include <stdint.h> #include <libopencm3/stm32/rcc.h> #include <libopencm3/stm32/timer.h> #include <libopencm3/cm3/nvic.h> #include <timeout.h> #include <common.h> #define TIMER_A_ISR tim16_isr #define...
22.46
112
(translation_unit) "/*\n * timeout.c\n *\n * Created on: 2. 12. 2014\n * Author: ondra\n */\n\n#include <stdbool.h>\n#include <stddef.h>\n#include <stdint.h>\n\n#include <libopencm3/stm32/rcc.h>\n#include <libopencm3/stm32/timer.h>\n#include <libopencm3/cm3/nvic.h>\n\n#include <timeout.h>\n#include <common.h>\n\n...
851
0
{"language": "c", "success": true, "metadata": {"lines": 112, "avg_line_length": 22.46, "nodes": 521, "errors": 0, "source_hash": "c4241d02f7b502efb426a312906f67646c1eb512844a349c756f36912d69f2c4", "categorized_nodes": 387}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,342
c
#ifndef LIST_H #define LIST_H template <class T> struct Node{ T data; Node *next; }; template <class T> class List { Node<T> *head; Node<T> *tail; public: List(){ //Constructor head = nullptr; tail = nullptr; } void addItem(T obj){ //Add Item ...
18.45
42
(translation_unit) "#ifndef LIST_H\n#define LIST_H\n\ntemplate <class T>\nstruct Node{\n T data;\n Node *next;\n};\n\ntemplate <class T>\nclass List\n{\n Node<T> *head;\n Node<T> *tail;\n\npublic:\n\n List(){ //Constructor\n head = nullptr;\n tail = nullptr;\n }\n\n\n...
265
7
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 18.45, "nodes": 176, "errors": 0, "source_hash": "7e69301e6208b761a25dfb5e1d32f20d4caf55f7c6ee4dc166d35d25db1e936d", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,343
c
/* Open Tracker License Terms and Conditions Copyright (c) 1991-2000, Be Incorporated. All rights reserved. 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...
32.49
169
(translation_unit) "/*\nOpen Tracker License\n\nTerms and Conditions\n\nCopyright (c) 1991-2000, Be Incorporated. All rights reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the "Software"), to deal in\nthe Software without r...
778
25
{"language": "c", "success": true, "metadata": {"lines": 169, "avg_line_length": 32.49, "nodes": 516, "errors": 0, "source_hash": "89699443e828a64ec70a1d50378d19848f298a13021e61964f700ebb631c9163", "categorized_nodes": 357}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef _STAT...
79,344
c
/** * File : CoreConfigGroup.h * Author : <NAME> <<EMAIL>> * Date : 27.05.2022 * Last Modified Date: 27.05.2022 * Last Modified By : <NAME> <<EMAIL>> */ #ifndef __LPCORE_CONFIGGROUP_H__ #define __LPCORE_CONFIGGROUP_H__ #pragma once #include "LupineCore/Config/Config.h" n...
37.02
53
(translation_unit) "/**\n * File : CoreConfigGroup.h\n * Author : <NAME> <<EMAIL>>\n * Date : 27.05.2022\n * Last Modified Date: 27.05.2022\n * Last Modified By : <NAME> <<EMAIL>>\n */\n\n#ifndef __LPCORE_CONFIGGROUP_H__\n#define __LPCORE_CONFIGGROUP_H__\n#pragma once\n\n#include "...
394
9
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 37.02, "nodes": 174, "errors": 0, "source_hash": "496d88180daa2e64d9a2849dfc127967890a1b4ed26b3fe57c57dc5d87a174a8", "categorized_nodes": 137}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,345
c
/* A series of socket supplementary functions, useful for backporting modern sock applications to obsolete systems. NOTE: I found out that most of my code was already written into the library `libevent'. Perhaps I should make some sort of effort to standardize on it. Public Domain 2012, 2020 <NAME> See ...
29.32
154
(translation_unit) "/* A series of socket supplementary functions, useful for backporting\n modern sock applications to obsolete systems.\n\n NOTE: I found out that most of my code was already written into the\n library `libevent'. Perhaps I should make some sort of effort to\n standardize on it.\n\nPublic Dom...
1,170
0
{"language": "c", "success": true, "metadata": {"lines": 154, "avg_line_length": 29.32, "nodes": 779, "errors": 0, "source_hash": "6615e5e287a186c266316391610af52eb9e4ec060b742afc2c9c9f3aee080ec8", "categorized_nodes": 536}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
79,346
c
/** * phoenix_line_internal.h **/ #pragma once #include <Arduino.h> typedef struct { // Sezione comune double x; // componente x del vettore associato al sensore double y; // componente y del vettore associato al sensore uint16_t soglia;// soglia riconoscimento linea uint16_t misura;// misura attuale del...
33.84
86
(translation_unit) "/**\n * phoenix_line_internal.h\n **/\n\n#pragma once\n#include <Arduino.h>\n\ntypedef struct {\n\n // Sezione comune\n double x; // componente x del vettore associato al sensore\n double y; // componente y del vettore associato al sensore\n uint16_t soglia;// soglia riconoscimento linea\n uint...
162
0
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 33.84, "nodes": 98, "errors": 0, "source_hash": "74285b2b2601b4f0dc5e785987d14d189cac78d4f5e3394314d13656fdd3e6f1", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
79,347
c
#pragma once #include <azule/entity/Component.h> #include <azule/export.hxx> #include <SFML/Graphics/Drawable.hpp> namespace azule { /// /// \class DrawableComponent /// /// \brief This class manages a single SFML drawable and any related configurations for it. /// /// \author <NAME> /// /// \date May 3, 2020...
25.53
34
(translation_unit) "#pragma once\n\n#include <azule/entity/Component.h>\n#include <azule/export.hxx>\n#include <SFML/Graphics/Drawable.hpp>\n\nnamespace azule\n{\n ///\n /// \class DrawableComponent\n ///\n /// \brief This class manages a single SFML drawable and any related configurations for it.\n ///\n /// \author <...
110
7
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 25.53, "nodes": 49, "errors": 0, "source_hash": "312639856ee7208c971561227c98cbe1bbcafe00c88cb4c425d2907dc7b502d6", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
79,348
c
/* copyright(C) 2002 H.Kawai (under KL-01). */ /* #include <stddef.h> */ #if (!defined(STDDEF_H)) & 1 #define STDDEF_H 1 #if (defined(__cplusplus)) extern "C" { #endif #include "go_lib.h" /* size_t --> go_lib.h */ #if (defined(__cplusplus)) } #endif #endif
18.92
13
(translation_unit) "/* copyright(C) 2002 H.Kawai (under KL-01). */\n\n/* #include <stddef.h> */\n\n#if (!defined(STDDEF_H)) & 1\n\n#define STDDEF_H 1\n\n#if (defined(__cplusplus))\n extern "C" {\n#endif\n\n#include "go_lib.h"\n\n/* size_t --> go_lib.h */\n\n#if (defined(__cplusplus))\n }\n#endif\n\n#endif\n" (comment...
66
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 18.92, "nodes": 40, "errors": 0, "source_hash": "af8c4d3ad84aafdc87a39d411672b49679df894698f65d7f78a25f21f908729d", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if (!defin...
79,349
c
// // UILabel+NPExtension.h // ShareBey // // Created by HzB on 16/7/22. // Copyright © 2016年 HzB. All rights reserved. // #import <UIKit/UIKit.h> @interface UILabel (NPExtension) @end #pragma mark - #pragma mark - NPSize @interface UILabel (NPSize) - (CGFloat)np_heightForWidth:(CGFloat)width; - (CGFloat)np_...
20.94
16
(translation_unit) "//\n// UILabel+NPExtension.h\n// ShareBey\n//\n// Created by HzB on 16/7/22.\n// Copyright © 2016年 HzB. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UILabel (NPExtension)\n\n@end\n\n#pragma mark - \n#pragma mark - NPSize\n@interface UILabel (NPSize)\n\n- (CGFloat)np_heightFo...
75
10
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 20.94, "nodes": 48, "errors": 0, "source_hash": "b6c07ea07858c270a72dfeed8f619d973656a6dfe2698e39e259cfc42e73f151", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
79,350
c
#ifndef _UEFI_DEVICE_PATH_LIB_H_ #define _UEFI_DEVICE_PATH_LIB_H_ #include <Uefi.h> // // Private Data structure // typedef struct { UINT8 Type; CHAR16 *Text; } TYPE_TO_TEXT_TABLE; #endif
16.73
11
(translation_unit) "#ifndef _UEFI_DEVICE_PATH_LIB_H_\n#define _UEFI_DEVICE_PATH_LIB_H_\n\n#include <Uefi.h>\n\n//\n// Private Data structure\n//\ntypedef struct {\n UINT8 Type;\n CHAR16 *Text;\n} TYPE_TO_TEXT_TABLE;\n\n#endif\n" (preproc_ifdef) "#ifndef _UEFI_DEVICE_PATH_LIB_H_\n#define _UEFI_DEVICE_PATH_LIB_H_\...
33
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 16.73, "nodes": 23, "errors": 0, "source_hash": "053d0a7aa5ae8934a68305605a00b8f5e8bc59725cd4c37ddb8124670c3298f7", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,351
c
/* * Copyright (c) 1999 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except in...
28.99
125
(translation_unit) "/*\n * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.\n *\n * @APPLE_LICENSE_HEADER_START@\n * \n * This file contains Original Code and/or Modifications of Original Code\n * as defined in and that are subject to the Apple Public Source License\n * Version 2.0 (the 'License'). You may ...
292
0
{"language": "c", "success": true, "metadata": {"lines": 125, "avg_line_length": 28.99, "nodes": 274, "errors": 0, "source_hash": "b5c33df465698e75995bd5f8689bcaa305cb8a52f298bc661a3d117e3a27d21d", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if defin...
79,352
c
#define F_CPU 8000000UL /* Define CPU Frequency e.g. here its 8MHz */ #include <avr/io.h> /* Include AVR std. library file */ #include <util/delay.h> /* Include inbuilt defined Delay header file */ #define LCD_Dir DDRA /* Define LCD d...
24.38
339
(translation_unit) "#define F_CPU 8000000UL /* Define CPU Frequency e.g. here its 8MHz */ \n#include <avr/io.h> /* Include AVR std. library file */ \n#include <util/delay.h> /* Include inbuilt defined Delay header file */ \n \n#define LCD_Dir DDRA ...
1,992
0
{"language": "c", "success": true, "metadata": {"lines": 339, "avg_line_length": 24.38, "nodes": 1155, "errors": 0, "source_hash": "6afd7e7ae833465d56f59c7605e20c6b1be6a085345936e939f2416a1cd13d78", "categorized_nodes": 842}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#defin...
79,353
c
#import <Foundation/Foundation.h> @protocol RTDeviceRegistrationDataManagerDelegate <NSObject> - (void)deviceRegistrationDataOperationFailedWithErrors:(NSArray *)errors; @end
42.75
4
(translation_unit) "#import <Foundation/Foundation.h>\n\n@protocol RTDeviceRegistrationDataManagerDelegate <NSObject>\n\n- (void)deviceRegistrationDataOperationFailedWithErrors:(NSArray *)errors;\n\n@end\n" (preproc_call) "#import <Foundation/Foundation.h>\n" (preproc_directive) "#import" (preproc_arg) "<Foun...
34
5
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 42.75, "nodes": 22, "errors": 0, "source_hash": "ae56af74838b660a31287f2976648ee419765f41a6dd6418a87daa87131d9134", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
79,354
c
//============================================================================ // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // PURP...
33.2
60
(translation_unit) "//============================================================================\n// Copyright (c) Kitware, Inc.\n// All rights reserved.\n// See LICENSE.txt for details.\n//\n// This software is distributed WITHOUT ANY WARRANTY; without even\n// the implied warranty of MERCHANTABILITY or FITNESS...
384
16
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 33.2, "nodes": 235, "errors": 0, "source_hash": "baf52fc4ed7e65e12861286cb398788ab1323028430f222a5dd2e668b826ddef", "categorized_nodes": 168}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,355
c
/** * ti.socketio * * Created by <NAME> * Copyright (c) 2018-Present Axway Appcelerator. All rights reserved. */ #import "TiModule.h" @class SocketIOClientProxy; @class SocketManagerProxy; @interface TiSocketioModule : TiModule - (SocketIOClientProxy *)connect:(id)args; - (SocketManagerProxy *)Manager:(id)args...
23.85
13
(translation_unit) "/**\n * ti.socketio\n *\n * Created by <NAME>\n * Copyright (c) 2018-Present Axway Appcelerator. All rights reserved.\n */\n\n#import "TiModule.h"\n\n@class SocketIOClientProxy;\n@class SocketManagerProxy;\n\n@interface TiSocketioModule : TiModule\n\n- (SocketIOClientProxy *)connect:(id)args;\n- (So...
64
10
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 23.85, "nodes": 40, "errors": 0, "source_hash": "36ed1154516443fb6d97ea39e989de36dcfbf8d165570d0dbef65a124436c93e", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
79,356
c
/** * @file */ #pragma once #include <stdint.h> #include <stdbool.h> #include <stddef.h> #include <stdalign.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <assert.h> #include "config.h" #include "mcu.h" /** * @brief OS time type. The time is expressed in system ticks. * @ingroup ...
33.37
57
(translation_unit) "/**\n * @file\n */\n#pragma once\n\n#include <stdint.h>\n#include <stdbool.h>\n#include <stddef.h>\n#include <stdalign.h>\n\n#include <stdlib.h>\n#include <stdio.h>\n#include <string.h>\n#include <assert.h>\n\n#include "config.h"\n#include "mcu.h"\n\n/**\n * @brief OS time type. The time is exp...
104
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 33.37, "nodes": 67, "errors": 0, "source_hash": "5ec23074563c515bc8ca347280cee1dfa9b6818cb58d9bcb626c2fa3d9875677", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
79,357
c
// // CKartPrice+Animate.h // KingXII // // Created by <NAME> on 1/25/20. // Copyright © 2020 <NAME>. All rights reserved. // #import "CKartPrice.h" NS_ASSUME_NONNULL_BEGIN @interface CKartPrice (Animate) - (void)expand:(UIButton*) btn; - (void)flipIt:(UIButton*) btn; - (void)flipIt2:(UIButton*) btn; - (void)r...
20.65
17
(translation_unit) "//\n// CKartPrice+Animate.h\n// KingXII\n//\n// Created by <NAME> on 1/25/20.\n// Copyright © 2020 <NAME>. All rights reserved.\n//\n\n\n#import "CKartPrice.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface CKartPrice (Animate)\n\n- (void)expand:(UIButton*) btn;\n- (void)flipIt:(UIButton*) btn;\n- (vo...
103
12
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 20.65, "nodes": 60, "errors": 0, "source_hash": "9111b3572d7ee7cf340888308ce0989e75c1ba301b72e2b41bd0af858fea9d08", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"...
79,358
c
// SPDX-License-Identifier: GPL-2.0+ /* * drivers/net/phy/lxt.c * * Driver for Intel LXT PHYs * * Author: <NAME> * * Copyright (c) 2004 Freescale Semiconductor, Inc. */ #include <linux/kernel.h> #include <linux/string.h> #include <linux/errno.h> #include <linux/unistd.h> #include <linux/interrupt.h> #include <l...
26.47
235
(translation_unit) "// SPDX-License-Identifier: GPL-2.0+\n/*\n * drivers/net/phy/lxt.c\n *\n * Driver for Intel LXT PHYs\n *\n * Author: <NAME>\n *\n * Copyright (c) 2004 Freescale Semiconductor, Inc.\n */\n#include <linux/kernel.h>\n#include <linux/string.h>\n#include <linux/errno.h>\n#include <linux/unistd.h>\n#inclu...
1,511
1
{"language": "c", "success": true, "metadata": {"lines": 235, "avg_line_length": 26.47, "nodes": 943, "errors": 0, "source_hash": "60fd6be210ba27c22f7e5f03aa163680da593e2471ba7362121f989b9ff3e365", "categorized_nodes": 689}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,359
c
#ifndef MARIO_NET_ACCEPTOR_H #define MARIO_NET_ACCEPTOR_H #include <functional> #include "mario/net/Channel.h" #include "mario/net/Socket.h" namespace mario { class EventLoop; class InetAddress; class Acceptor { public: typedef std::function<void (int sockfd, const InetAddress&)> NewConnectionCallback; A...
25.1
29
(translation_unit) "#ifndef MARIO_NET_ACCEPTOR_H\n#define MARIO_NET_ACCEPTOR_H\n\n#include <functional>\n\n#include "mario/net/Channel.h"\n#include "mario/net/Socket.h"\n\nnamespace mario {\n\nclass EventLoop;\nclass InetAddress;\n\nclass Acceptor {\n\npublic:\n typedef std::function<void (int sockfd, const InetAddr...
173
7
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 25.1, "nodes": 98, "errors": 0, "source_hash": "b078a71ff2dda00f0b7cf887eb8d112046e36d911f1d4a9138c762be9baaf0c6", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef M...
79,360
c
#pragma once #include "../localisation/stringmgr.h" namespace openloco { #pragma pack(push, 1) struct currency_object { string_id name; string_id prefix_symbol; string_id suffix_symbol; uint32_t object_icon; uint8_t separator; uint8_t factor; // !!! TODO...
21.06
17
(translation_unit) "#pragma once\n\n#include "../localisation/stringmgr.h"\n\nnamespace openloco\n{\n#pragma pack(push, 1)\n struct currency_object\n {\n string_id name;\n string_id prefix_symbol;\n string_id suffix_symbol;\n uint32_t object_icon;\n uint8_t separator;\n u...
54
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 21.06, "nodes": 36, "errors": 0, "source_hash": "b20a7b446ac4095729462e52da14b37fdedd39922bfa1b017ba6634bdeed0d1b", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
79,361
c
#import <UIKit/UIKit.h> FOUNDATION_EXPORT double Pods_ClubberVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_ClubberVersionString[];
35
4
(translation_unit) "#import <UIKit/UIKit.h>\n\n\nFOUNDATION_EXPORT double Pods_ClubberVersionNumber;\nFOUNDATION_EXPORT const unsigned char Pods_ClubberVersionString[];\n\n" (preproc_call) "#import <UIKit/UIKit.h>\n" (preproc_directive) "#import" (preproc_arg) "<UIKit/UIKit.h>" (declaration) "FOUNDATION_EXP...
23
1
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 35.0, "nodes": 15, "errors": 0, "source_hash": "f7a4c56c9922290e2647c3ce7ed3f9cdba0bbecb38f72f364a66cc32dbdd1e08", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UI...
79,362
c
// // File: DKZipUnarchiver.h // Author: <NAME> (<EMAIL>) // // Copyright (c) 2004-2014 <NAME>. All rights reserved. // #pragma once #include "../DKinclude.h" #include "DKString.h" #include "DKBuffer.h" #include "DKDateTime.h" #include "DKArray.h" #include "DKStream.h" ////////////////////////////////////////////...
24.8
55
(translation_unit) "\n// File: DKZipUnarchiver.h\n// Author: <NAME> (<EMAIL>)\n//\n// Copyright (c) 2004-2014 <NAME>. All rights reserved.\n//\n\n#pragma once\n#include "../DKinclude.h"\n#include "DKString.h"\n#include "DKBuffer.h"\n#include "DKDateTime.h"\n#include "DKArray.h"\n#include "DKStream.h"\n\n////////////...
294
9
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 24.8, "nodes": 191, "errors": 0, "source_hash": "69a5a90ffd515b22835036af99b2759fe240f1f3e1b8d36de0f53b4f3c7cd4d5", "categorized_nodes": 139}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma on...
79,363
c
/* * MinnowBoard-Max Calamari Lure board file * Copyright (c) 2014, Intel Corporation. * All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. ...
29.06
65
(translation_unit) "/*\n * MinnowBoard-Max Calamari Lure board file\n * Copyright (c) 2014, Intel Corporation.\n * All rights reserved.\n *\n * This program is free software; you can redistribute it and/or modify it\n * under the terms and conditions of the GNU General Public License,\n * version 2, as published by the...
325
3
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 29.06, "nodes": 191, "errors": 0, "source_hash": "4d28718f26b6aef3eb32447d150bcc5bef8d767e47e97c4b5a1865ae6e52f2ab", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_function_def", "text": ...
79,364
c
#pragma once #include <array> #include <cstddef> namespace ibex { // --------------------------------------------------------------------------- // Storage // --------------------------------------------------------------------------- /// /// @brief Uninitialised storage for one particular type. /// ...
33.24
123
(translation_unit) "#pragma once\n\n#include <array>\n#include <cstddef>\n\nnamespace ibex {\n\n// ---------------------------------------------------------------------------\n// Storage\n// ---------------------------------------------------------------------------\n\n///\n/// @brief Uninitialised storage for one...
692
46
{"language": "c", "success": true, "metadata": {"lines": 123, "avg_line_length": 33.24, "nodes": 348, "errors": 0, "source_hash": "85910256d4e4811e95dc04a55ea6659f6847d35101bcfdac78989c7927db1792", "categorized_nodes": 220}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
79,365
c
// // author <NAME> // #ifndef DEBUG_IDS_H_ #define DEBUG_IDS_H_ namespace ohm { enum class Category { kDefault, kMap, // Parent category for below. kPopulate, kRays, kFreeCells, kOccupiedCells, kInfo }; enum Resource { kMap = 1, kMapMesh = 1, // OK to be the same as kMap. One is object, the othe...
14.2
25
(translation_unit) "//\n// author <NAME>\n//\n#ifndef DEBUG_IDS_H_\n#define DEBUG_IDS_H_\n\nnamespace ohm\n{\nenum class Category\n{\n kDefault,\n kMap,\n // Parent category for below.\n kPopulate,\n kRays,\n kFreeCells,\n kOccupiedCells,\n kInfo\n};\n\nenum Resource\n{\n kMap = 1,\n kMapMesh = 1, // OK to b...
69
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 14.2, "nodes": 39, "errors": 0, "source_hash": "d46c8a6d07a5ea2e99b51488bc39ca50ac4f20ea2482e2d7794c309b97c99a01", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef D...
79,366
c
/** * @file segmentation_type.h * @details The segmentationType enum. * @date January 27, 2016 * @author <NAME>, MIT, Course 22 (<EMAIL>) */ #ifndef SEGMENTATION_TYPE_H_ #define SEGMENTATION_TYPE_H_ /** * @enum segmentationType * @brief The types of Track segmentation supported by OpenMOC. */ enum segmentatio...
26.26
23
(translation_unit) "/**\n * @file segmentation_type.h\n * @details The segmentationType enum.\n * @date January 27, 2016\n * @author <NAME>, MIT, Course 22 (<EMAIL>)\n */\n\n#ifndef SEGMENTATION_TYPE_H_\n#define SEGMENTATION_TYPE_H_\n\n/**\n * @enum segmentationType\n * @brief The types of Track segmentation supported ...
33
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 26.26, "nodes": 19, "errors": 0, "source_hash": "5b35a21174e2a5db17bf6c7c114bfaa005f41b835b6f39a830f806b57d4b1f0a", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,367
c
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: Defines the server side of a steam jet particle system entity. // // $NoKeywords: $ //=============================================================================// #ifndef SMOKESTACK_H #define SMOKESTACK_H #pragma once #inc...
29.09
67
(translation_unit) "========= Copyright Valve Corporation, All rights reserved. ============//\n//\n// Purpose: Defines the server side of a steam jet particle system entity.\n//\n// $NoKeywords: $\n//=============================================================================//\n\n#ifndef SMOKESTACK_H\n#define SMOKES...
398
8
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 29.09, "nodes": 217, "errors": 0, "source_hash": "a39a2845d2a7c6a1916650672885cdf032b3a0d4bdbcf7570b4d70c591c9e299", "categorized_nodes": 161}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef ...
79,368
c
/* * Acess2 Kernel - Keyboard Character Mappings * - By <NAME> (thePowersGang) * * keymap.h * - Core keymap "library" header */ #ifndef _KEYMAP__KEYMAP_INT_H_ #define _KEYMAP__KEYMAP_INT_H_ typedef struct sKeymap tKeymap; typedef struct sKeymapLayer tKeymapLayer; struct sKeymapLayer { int nSyms; Uint32 Sym[]...
15.94
33
(translation_unit) "/*\n * Acess2 Kernel - Keyboard Character Mappings\n * - By <NAME> (thePowersGang)\n *\n * keymap.h\n * - Core keymap "library" header\n */\n#ifndef _KEYMAP__KEYMAP_INT_H_\n#define _KEYMAP__KEYMAP_INT_H_\n\ntypedef struct sKeymap tKeymap;\ntypedef struct sKeymapLayer tKeymapLayer;\n\nstruct sKeymapL...
117
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 15.94, "nodes": 83, "errors": 0, "source_hash": "913c5ea9617f678d7d39799e68e8bdb4eb59bf2c013b8d1016b6716bf85eb150", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,369
c
// // HKPostCicleView.h // HongKZH_IOS // // Created by hongkzh on 2018/10/25. // Copyright © 2018年 hkzh. All rights reserved. // #import <UIKit/UIKit.h> #import "HKPostDetailResponse.h" @protocol PreGoCiCleDelegete <NSObject> -(void)pushCilce; @end @interface HKPostCicleView : UIView @property (nonatomic, wea...
25
16
(translation_unit) "//\n// HKPostCicleView.h\n// HongKZH_IOS\n//\n// Created by hongkzh on 2018/10/25.\n// Copyright © 2018年 hkzh. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "HKPostDetailResponse.h"\n@protocol PreGoCiCleDelegete <NSObject>\n\n-(void)pushCilce;\n\n@end\n\n@interface HKPostCicleView...
86
13
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 25.0, "nodes": 60, "errors": 0, "source_hash": "1c34dad962b4978e662ca74f7a016c949d007c326ead908d9693af5a30159c54", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKi...
79,370
c
//============================================================================ /// @file snprintf.c /// @brief Write formatted output to a sized buffer. // // Copyright 2016 <NAME>. // Use of this source code is governed by a BSD-style license that can // be found in the MonkOS LICENSE file. //==============...
32.5
18
(translation_unit) "//============================================================================\n/// @file snprintf.c\n/// @brief Write formatted output to a sized buffer.\n//\n// Copyright 2016 <NAME>.\n// Use of this source code is governed by a BSD-style license that can\n// be found in the MonkOS LICE...
86
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 32.5, "nodes": 47, "errors": 0, "source_hash": "45ad9b884495869365ca4fedcf6af33baec6c83f2ae95f231e6c144b00ab0a03", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
79,371
c
/* The MIT License (MIT) * * Copyright (c) 2014 - 2021, <NAME> * http://www.blue-andi.de * <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, inclu...
25.84
289
(translation_unit) "/* The MIT License (MIT) \n * \n * Copyright (c) 2014 - 2021, <NAME> \n * http://www.blue-andi.de \n * <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 Softwar...
952
0
{"language": "c", "success": true, "metadata": {"lines": 289, "avg_line_length": 25.84, "nodes": 588, "errors": 0, "source_hash": "0497d0f46738f89f93e204cb7cba598c40be706ed9ffdeb38dc0a3f5b1c19e0d", "categorized_nodes": 440}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,372
c
/* * Copyright 2011, 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 applica...
25.37
198
(translation_unit) "/*\n * Copyright 2011, The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n...
1,310
44
{"language": "c", "success": true, "metadata": {"lines": 198, "avg_line_length": 25.37, "nodes": 701, "errors": 0, "source_hash": "6f6fa2eed980270e4274980c0b62d0f55a26a373323aedc9ab1cfda1bbaa1375", "categorized_nodes": 500}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
79,373
c
// // CardExamples.h // CardExamples // // Created by <NAME> on 6/29/18. // Copyright © 2018 Bitwit. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for CardExamples. FOUNDATION_EXPORT double CardExamplesVersionNumber; //! Project version string for CardExamples. FOUNDATION_EXPORT cons...
37.46
13
(translation_unit) "//\n// CardExamples.h\n// CardExamples\n//\n// Created by <NAME> on 6/29/18.\n// Copyright © 2018 Bitwit. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n//! Project version number for CardExamples.\nFOUNDATION_EXPORT double CardExamplesVersionNumber;\n\n//! Project version string for Car...
33
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 37.46, "nodes": 15, "errors": 0, "source_hash": "70d0144532592e1af3cefaf6c098d9f1d352922e6475ff9cc4f0f2f0c5125af4", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
79,374
c
/******************************************************************* * File automatically generated by rebuild_wrappers.py (v2.1.0.16) * *******************************************************************/ #ifndef __wrappedutilDEFS_H_ #define __wrappedutilDEFS_H_ #endif // __wrappedutilDEFS_H_
41.57
7
(translation_unit) "/*******************************************************************\n * File automatically generated by rebuild_wrappers.py (v2.1.0.16) *\n *******************************************************************/\n#ifndef __wrappedutilDEFS_H_\n#define __wrappedutilDEFS_H_\n\n\n#endif // __wrappedutilDE...
10
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 41.57, "nodes": 7, "errors": 0, "source_hash": "d9e2f26160e3351ae0aacc1b336e6edbe261a7884037b1533d7c46a60a04e9cb", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __w...
79,375
c
// // MUMultiDelegate.h // ZPWApp_Example // // Created by Jekity on 2018/5/28. // Copyright © 2018年 Jekity. All rights reserved. // #import <Foundation/Foundation.h> @interface MUMultiDelegate : NSObject /** The array of registered delegates. */ @property (readonly, nonatomic) NSPointerArray* delegates; /** ...
38.07
29
(translation_unit) "//\n// MUMultiDelegate.h\n// ZPWApp_Example\n//\n// Created by Jekity on 2018/5/28.\n// Copyright © 2018年 Jekity. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface MUMultiDelegate : NSObject\n/**\n The array of registered delegates.\n */\n@property (readonly, nonatomic)...
146
22
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 38.07, "nodes": 88, "errors": 0, "source_hash": "03b51c0a4043b8a3444e53a4816ecee83612183a0b23eee6f61194a651c587c6", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
79,376
c
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied w...
25.48
40
(translation_unit) "/*=================================================================== \n \nThe Medical Imaging Interaction Toolkit (MITK) \n \nCopyright (c) German Cancer Research Center, \nDivision of Medical and Biological Informatics. \nAll rights reserved. \n \nThis software is distributed WITHOUT ANY WARRANTY;...
115
5
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 25.48, "nodes": 67, "errors": 0, "source_hash": "cc90154baa8ee3aa72482895ce5417fb8aa192d2a54286cfa6cb26e496e91a77", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,377
c
/* Copyright 2014-2019 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writ...
26.61
49
(translation_unit) "/* Copyright 2014-2019 <NAME>\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applica...
273
0
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 26.61, "nodes": 209, "errors": 0, "source_hash": "52b798ff3c612f003a6f3f0412ea05c9e7aabf82fdaa6dda4bbe09c20e8d9d47", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
79,378
c
// This file is distributed under the MIT license. // See the LICENSE file for details. #pragma once #ifndef VSNRAY_COMMON_INPUT_EXCEPTION_H #define VSNRAY_COMMON_INPUT_EXCEPTION_H 1 #include <visionaray/exception.h> namespace visionaray { class invalid_key_modifier : public visionaray::exception { public: in...
25.78
18
(translation_unit) "// This file is distributed under the MIT license.\n// See the LICENSE file for details.\n\n#pragma once\n\n#ifndef VSNRAY_COMMON_INPUT_EXCEPTION_H\n#define VSNRAY_COMMON_INPUT_EXCEPTION_H 1\n\n#include <visionaray/exception.h>\n\nnamespace visionaray\n{\n\nclass invalid_key_modifier : public vision...
75
4
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 25.78, "nodes": 38, "errors": 0, "source_hash": "af3a53fead1c981e569f6e75ee8314f13137f18a3f5181287db5c6db8511dbab", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
79,379
c
// // ObjectBrowserController.h // Yazmin // // Created by <NAME> on 22/10/07. // Copyright 2007 <NAME>. All rights reserved. // #import <Cocoa/Cocoa.h> @interface ObjectBrowserController : NSWindowController { IBOutlet NSOutlineView *outlineView; IBOutlet NSTableView *propView; int selectedObject; } - (vo...
21.2
15
(translation_unit) "//\n// ObjectBrowserController.h\n// Yazmin\n//\n// Created by <NAME> on 22/10/07.\n// Copyright 2007 <NAME>. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n\n@interface ObjectBrowserController : NSWindowController {\n IBOutlet NSOutlineView *outlineView;\n IBOutlet NSTableView *propView...
59
5
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 21.2, "nodes": 33, "errors": 0, "source_hash": "1b2b3d4d845344081592358360256d2e475ddc32f01de55aafeec05b7f1f283f", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <C...
79,380
c
/* Copyright (c) 2020 <NAME> <EMAIL> see LICENSE */ // utilities for handling a patch file #include "blk_utils.h" #include "blk_imageutils.h" #include "blk_patchfileutils.h" // buffer of offsets in a container offset_t offset_block[NUM_PATCHES_PER_CONTAINER]; // buffer of patch blocks char patchblock[BLOCKSIZE * NU...
33.04
135
(translation_unit) "/* Copyright (c) 2020 <NAME> <EMAIL> see LICENSE */\n\n// utilities for handling a patch file\n\n#include "blk_utils.h"\n#include "blk_imageutils.h"\n\n#include "blk_patchfileutils.h"\n\n// buffer of offsets in a container\noffset_t offset_block[NUM_PATCHES_PER_CONTAINER];\n// buffer of patch blocks...
862
0
{"language": "c", "success": true, "metadata": {"lines": 135, "avg_line_length": 33.04, "nodes": 442, "errors": 0, "source_hash": "61bbe2b67bb53c6ea22a2afc858fc945cd75db466af8b773717b4abac9e81bb5", "categorized_nodes": 315}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,381
c
/* Sorting algorithms * Author: <NAME> */ #include <inttypes.h> #include <limits.h> #include <stddef.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <tgmath.h> int main() { int64_t t = INT64_MAX; uint64_t m = UINT64_MAX; size_t sm = SIZE_MAX; int intmax = INT_MAX; printf("INT_MAX: %...
24.96
52
(translation_unit) "/* Sorting algorithms\n * Author: <NAME>\n */\n#include <inttypes.h>\n#include <limits.h>\n#include <stddef.h>\n#include <stdint.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <tgmath.h>\n\nint\nmain()\n{\n int64_t t = INT64_MAX;\n uint64_t m = UINT64_MAX;\n size_t sm = SIZE_MAX;\n int in...
132
0
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 24.96, "nodes": 82, "errors": 0, "source_hash": "633b1c651d5ef913b54404de8894fa645eda42560e2f6885775d091414165525", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
79,382
c
/****************************************************************\ * * * Library for manipulation of exonerate index files * * * * <NAME>.. mailto:<EMAIL> * *...
35.4
128
(translation_unit) "/****************************************************************\\n* *\n* Library for manipulation of exonerate index files *\n* *\n* <NAME>.. mailto:<EMAIL>...
568
0
{"language": "c", "success": true, "metadata": {"lines": 128, "avg_line_length": 35.4, "nodes": 405, "errors": 0, "source_hash": "cae22fde36d406a71e96d394f6da87d593a00df7cf43a134a5a69bdca19e70bb", "categorized_nodes": 313}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,383
c
#ifndef MESSAGEINFODIALOG_H #define MESSAGEINFODIALOG_H #include <QDialog> namespace Ui { class MessageInfoDialog; } class MessageTableModel; class WalletModel; QT_BEGIN_NAMESPACE class QDataWidgetMapper; QT_END_NAMESPACE /** Dialog for editing an address and associated information. */ class MessageInfoDialog :...
21.31
36
(translation_unit) "#ifndef MESSAGEINFODIALOG_H\n#define MESSAGEINFODIALOG_H\n\n#include <QDialog>\n\nnamespace Ui {\n class MessageInfoDialog;\n}\nclass MessageTableModel;\nclass WalletModel;\nQT_BEGIN_NAMESPACE\nclass QDataWidgetMapper;\nQT_END_NAMESPACE\n\n/** Dialog for editing an address and associated informat...
172
6
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 21.31, "nodes": 111, "errors": 0, "source_hash": "6acd547adddb3f6fd00c5024b13cef57c782c1ce0eb6e5a6b28181fedc4caca4", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,384
c
// // GKTest01ViewCell.h // GKPhotoBrowser // // Created by QuintGao on 2017/10/25. // Copyright © 2017年 QuintGao. All rights reserved. // #import <UIKit/UIKit.h> @interface GKTest01ViewCell : UITableViewCell @property (nonatomic, strong) UIImageView *imgView; @end
23.55
11
(translation_unit) "//\n// GKTest01ViewCell.h\n// GKPhotoBrowser\n//\n// Created by QuintGao on 2017/10/25.\n// Copyright © 2017年 QuintGao. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface GKTest01ViewCell : UITableViewCell\n\n@property (nonatomic, strong) UIImageView *imgView;\n\n@end\n" (commen...
36
6
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 23.55, "nodes": 23, "errors": 0, "source_hash": "a348c14e8489e7f85001a1b57c8a1855b2a643d199f2e6bfa409e01b15eeab5a", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
79,385
c
/****************************************************************************** * * Header file for doing timing * *****************************************************************************/ #ifndef KRIPKE_TIMING_H__ #define KRIPKE_TIMING_H__ #include<Kripke.h> #include <string> #include <vector> #include <map...
22.14
70
(translation_unit) "/******************************************************************************\n *\n * Header file for doing timing\n *\n *****************************************************************************/\n\n#ifndef KRIPKE_TIMING_H__\n#define KRIPKE_TIMING_H__\n\n#include<Kripke.h>\n#include <string>\n...
418
28
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 22.14, "nodes": 257, "errors": 0, "source_hash": "eb3513976e341271e9f6a06606cb449fe7d1182be57e6d30b9371a94bb1eb475", "categorized_nodes": 177}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,386
c
/*! \file bcmcth_ctr_eflex.h * * BCMCTH CTR_EFLEX top-level APIs */ /* * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Copyright 2007-2020 Broadcom Inc. All rights reserved. */ #ifndef BCMCTH_CTR_EFLEX_H #define BCMCTH_CT...
24.47
62
(translation_unit) "/*! \file bcmcth_ctr_eflex.h\n *\n * BCMCTH CTR_EFLEX top-level APIs\n */\n/*\n * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.\n * \n * Copyright 2007-2020 Broadcom Inc. All rights reserved.\n */\n\n#ifndef BCMCTH...
75
0
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 24.47, "nodes": 53, "errors": 0, "source_hash": "11ace0d8089853b584952dc1f2947620da6b1fd304c5d022a08e48957aa77e9d", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,387
c
#pragma once #include "OneSignalFunctions.h" #include "OneSignalComponent.generated.h" UCLASS(ClassGroup=Advertising, HideCategories=(Activation, "Components|Activation", Collision), meta=(BlueprintSpawnableComponent)) class UOneSignalComponent : public UActorComponent { GENERATED_BODY() public: DECLARE_MULTICA...
46.31
39
(translation_unit) "#pragma once\n\n#include "OneSignalFunctions.h"\n#include "OneSignalComponent.generated.h"\n\nUCLASS(ClassGroup=Advertising, HideCategories=(Activation, "Components|Activation", Collision), meta=(BlueprintSpawnableComponent))\nclass UOneSignalComponent : public UActorComponent\n{\n GENERATED_BODY()\...
225
7
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 46.31, "nodes": 123, "errors": 0, "source_hash": "099082cc864838319e3cc981b953e1c6fe44d8cfea9d7416a008f71ee6004d11", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
79,388
c
/** * @file DS3231.h * @brief Driver for DS3231 (HW084) * @author <NAME> * @date December 25, 2020 * @version 1.0 * */ /** * @brief Open connection to device * @param dsclk clock pin * @param dssda data pin */ void DS3231_Open(int dsclk, int dssda) __fromfile("libds3231/DS3231.c"); /** * @brief Read secon...
23.02
118
(translation_unit) "/**\n * @file DS3231.h\n * @brief Driver for DS3231 (HW084)\n * @author <NAME>\n * @date December 25, 2020\n * @version 1.0\n * \n*/\n\n/**\n * @brief Open connection to device\n * @param dsclk clock pin\n * @param dssda data pin\n */\nvoid DS3231_Open(int dsclk, int dssda) __fromfile("libds3231/DS3...
432
42
{"language": "c", "success": true, "metadata": {"lines": 118, "avg_line_length": 23.02, "nodes": 194, "errors": 0, "source_hash": "d4d821a82ef055f7a7bb5ea488c3149fbb02dc10c26edbcd68c810ecf7d55513", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "void DS3231_O...
79,389
c
// // TestDemo.h // TmingEngine // // Created by blue on 2018/9/2. // #ifndef DemoTest_h #define DemoTest_h class DemoTest { public: DemoTest() { } ~DemoTest() { } virtual void Initlization() { } virtual void Render_SceneObject(); private: }; #endif /* TestDemo_h */
10.67
24
(translation_unit) "//\n// TestDemo.h\n// TmingEngine\n//\n// Created by blue on 2018/9/2.\n//\n\n#ifndef DemoTest_h\n#define DemoTest_h\n\nclass DemoTest\n{\npublic:\n DemoTest()\n {\n }\n\n ~DemoTest()\n {\n }\n\n virtual void Initlization()\n {\n }\n\n virtual void Render_SceneObject();\nprivate:\n};\n\n#endif /*...
74
3
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 10.67, "nodes": 34, "errors": 0, "source_hash": "fedfe39e0e38cf667eb5adfdb7aed28965f98660d3d1b9bf5e97b3f68540edf4", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,390
c
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> bool checkStraightLine(int** coordinates, int coordinatesSize, int* coordinatesColSize) { if (coordinatesSize == 2) return true; int x = 2; int y = 2; int cordX = coordinates[1][0] - coordinates[0][0]; int cordY = coordinates[1][1] - ...
31.69
45
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <stdbool.h>\nbool checkStraightLine(int** coordinates, int coordinatesSize, int* coordinatesColSize)\n{\n if (coordinatesSize == 2) return true;\n \n int x = 2;\n int y = 2; \n int cordX = coordinates[1][0] - coordinates[0][0];\n in...
640
0
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 31.69, "nodes": 405, "errors": 0, "source_hash": "ff82b6da01536ee68c31303534ee7bbc27c00cf6c350beb4a0eda69dff88b3dd", "categorized_nodes": 290}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,391
c
/* * ImuGnssIntegrator.h * * Created on: Feb 9, 2022 * Author: sujiwo */ #ifndef NAVIMU_IMUGNSSINTEGRATOR_H_ #define NAVIMU_IMUGNSSINTEGRATOR_H_ #include <ros/ros.h> #include <sensor_msgs/NavSatFix.h> #include <sensor_msgs/Imu.h> #include <mutex> #include <thread> #include <Eigen/Dense> #include "Collector...
21.84
56
(translation_unit) "/*\n * ImuGnssIntegrator.h\n *\n * Created on: Feb 9, 2022\n * Author: sujiwo\n */\n\n#ifndef NAVIMU_IMUGNSSINTEGRATOR_H_\n#define NAVIMU_IMUGNSSINTEGRATOR_H_\n\n#include <ros/ros.h>\n#include <sensor_msgs/NavSatFix.h>\n#include <sensor_msgs/Imu.h>\n#include <mutex>\n#include <thread>\n#includ...
307
16
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 21.84, "nodes": 169, "errors": 0, "source_hash": "eddbadb3fd724bc48230130aa36c8208d456434a972e369d99600a03b461d2f7", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,392
c
// // PECoreFit.h // PECommon // // Created by sky on 2020/11/10. // /** * 用于屏幕适配 * 使用375宽度的设计图来设置size,按比例缩放到真实的设备尺寸中 */ #import <Foundation/Foundation.h> #define PEFitSize(size) [PECoreFit sizeWidthScale:(size)] #define PEFitFont(font) [UIFont systemFontOfSize:PEFitSize(font)] #define P...
25.6
25
(translation_unit) "//\n// PECoreFit.h\n// PECommon\n//\n// Created by sky on 2020/11/10.\n//\n/**\n * 用于屏幕适配\n * 使用375宽度的设计图来设置size,按比例缩放到真实的设备尺寸中\n */\n\n#import <Foundation/Foundation.h>\n\n#define PEFitSize(size) [PECoreFit sizeWidthScale:(size)]\n#define PEFitFont(font) [UIFont systemFon...
88
5
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 25.6, "nodes": 57, "errors": 0, "source_hash": "166b9593cefad0628a8e020243572d2e2011727f3b7cd63ca658d3960005df28", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " [...
79,393
c
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: t -*- // // u-blox UBX GPS driver for ArduPilot and ArduPilotMega. // Code by <NAME>, <NAME> and <NAME>, DIYDrones.com // // This library is free software; you can redistribute it and / or // modify it under the terms of the GNU Lesser General Public...
23.03
115
(translation_unit) "// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: t -*-\n//\n// u-blox UBX GPS driver for ArduPilot and ArduPilotMega.\n// Code by <NAME>, <NAME> and <NAME>, DIYDrones.com\n//\n// This library is free software; you can redistribute it and / or\n// modify it under the terms of the...
438
3
{"language": "c", "success": true, "metadata": {"lines": 115, "avg_line_length": 23.03, "nodes": 292, "errors": 0, "source_hash": "da32c8483090479011feda8dd88cd51cf134df17a44284f9a896f627403d4d14", "categorized_nodes": 212}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
79,394
c
#pragma once #include "CoreMinimal.h" #include "CSGCylinderProperties.generated.h" USTRUCT(BlueprintType) struct FCSGCylinderProperties { GENERATED_BODY() public: UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true)) float Height; UPROPERTY(BlueprintReadWrite, EditAnywhere, m...
28
18
(translation_unit) "#pragma once\n#include "CoreMinimal.h"\n#include "CSGCylinderProperties.generated.h"\n\nUSTRUCT(BlueprintType)\nstruct FCSGCylinderProperties {\n GENERATED_BODY()\npublic:\n UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))\n float Height;\n \n UPROPERTY(Blue...
124
1
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 28.0, "nodes": 74, "errors": 0, "source_hash": "95946f74bbe379131f3d019117f0c9668f1cb866cf5cba191a0201abb5ea3908", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
79,395
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import "MMKView-Protocol.h" @class NSArray; @protocol MMKTableView <MMKView> - (void)setCells:(NSArray *)arg1; @end
28.5
10
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.\n//\n\n#import "MMKView-Protocol.h"\n\n@class NSArray;\n\n@protocol MMKTableView <MMKView>\n- (void)setCells:(NSArray *)ar...
45
7
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 28.5, "nodes": 26, "errors": 0, "source_hash": "5dee41064c231dc29d7332313f576289ff1032fd5ecdede3c048472323cbfc00", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
79,396
c
#include <stdio.h> #include <stdlib.h> #include <pthread.h> int galtonBoard() {//gets galtonBoard's cell int sum = 0; for (int i = 0; i < 19; i++) { sum += rand() % 2; } return sum; } void *cell(); int array[20] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};//galtonBoard cell...
29.97
58
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <pthread.h>\n\nint galtonBoard() {//gets galtonBoard's cell\n int sum = 0;\n for (int i = 0; i < 19; i++) {\n sum += rand() % 2;\n }\n return sum;\n}\n\nvoid *cell();\n\nint array[20] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
616
0
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 29.97, "nodes": 352, "errors": 0, "source_hash": "571fda1ab9b4a1588d6c8e5f7ce71a886f018f8abf369fb5410c61d31eac48e9", "categorized_nodes": 242}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,397
c
/* * qstat * by <NAME> * * Mumble protocol * Copyright 2012 <NAME> * * Licensed under the Artistic License, see LICENSE.txt for license terms * */ #include <string.h> #include <stdlib.h> #include <stdio.h> #ifndef _WIN32 #include <arpa/inet.h> #endif #include "debug.h" #include "qstat.h" #include "packet_ma...
25.98
60
(translation_unit) "/*\n * qstat\n * by <NAME>\n *\n * Mumble protocol\n * Copyright 2012 <NAME>\n *\n * Licensed under the Artistic License, see LICENSE.txt for license terms\n *\n */\n\n#include <string.h>\n#include <stdlib.h>\n#include <stdio.h>\n#ifndef _WIN32\n #include <arpa/inet.h>\n#endif\n\n#include "debug.h"\...
502
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 25.98, "nodes": 309, "errors": 0, "source_hash": "91dcb7c46f32aae28f5718f9d123845a3c1c0993b5f8d2644ccc520f355fcb0c", "categorized_nodes": 221}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,398
c
#ifndef _SPTAG_INDEXBUILDER_OPTIONS_H_ #define _SPTAG_INDEXBUILDER_OPTIONS_H_ #include "inc/Core/Common.h" #include "inc/Helper/ArgumentsParser.h" #include <string> #include <vector> #include <memory> namespace SPTAG { namespace IndexBuilder { class BuilderOptions : public Helper::ArgumentsParser { public: Buil...
24.17
29
(translation_unit) "#ifndef _SPTAG_INDEXBUILDER_OPTIONS_H_\n#define _SPTAG_INDEXBUILDER_OPTIONS_H_\n\n#include "inc/Core/Common.h"\n#include "inc/Helper/ArgumentsParser.h"\n\n#include <string>\n#include <vector>\n#include <memory>\n\nnamespace SPTAG\n{\nnamespace IndexBuilder\n{\n\nclass BuilderOptions : public Helper:...
150
9
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 24.17, "nodes": 82, "errors": 0, "source_hash": "140730c76be557fa59e07df2353bbe7285d3d61255e768f8fc8dd3fe79f4f580", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,399