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
/* * This file is part of MXE. See LICENSE.md for licensing information. */ #include <gumbo.h> int main() { GumboOutput *output = gumbo_parse("<blink>Hello world!</blink>"); gumbo_destroy_output(&kGumboDefaultOptions, output); return 0; }
24.3
10
(translation_unit) "/*\n * This file is part of MXE. See LICENSE.md for licensing information.\n */\n\n#include <gumbo.h>\n\nint main()\n{\n GumboOutput *output = gumbo_parse("<blink>Hello world!</blink>");\n gumbo_destroy_output(&kGumboDefaultOptions, output);\n\n return 0;\n}\n" (comment) "/*\n * This file...
48
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 24.3, "nodes": 27, "errors": 0, "source_hash": "9441b077b9b1e04e60d8caab8046a19e77ac975473b07277c79c1f2995086159", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
5,600
c
#include <stdio.h> #include <stdint.h> #include <inttypes.h> typedef __uint128_t uint128; typedef __uint32_t uint32; const int N =32; const int NF =62; uint128 R=1; uint128 M = 1; uint128 M2 =1; uint32 x0 =283929; #define ppm_l 1 #define ppm_m 31 uint32_t ppm_low_mask = (1 << ppm_m )-1; uint32_t ppm_register =0; u...
17.77
109
(translation_unit) "#include <stdio.h>\n#include <stdint.h>\n#include <inttypes.h>\n\ntypedef __uint128_t uint128;\ntypedef __uint32_t uint32;\n\nconst int N =32;\nconst int NF =62;\nuint128 R=1;\nuint128 M = 1;\nuint128 M2 =1;\nuint32 x0 =283929;\n\n#define ppm_l 1\n#define ppm_m 31\nuint32_t ppm_low_mask = (1 << pp...
587
0
{"language": "c", "success": true, "metadata": {"lines": 109, "avg_line_length": 17.77, "nodes": 383, "errors": 0, "source_hash": "69e0e84047feb5846ef67fc6a3ea8a32a004fd513f18c3bdae5098c7894ca4ef", "categorized_nodes": 262}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,601
c
#ifndef LIBCRYPTO_AES_H #define LIBCRYPTO_AES_H #include <stdint.h> #include <stdio.h> #define AES_BLOCK_SIZE 16 typedef struct { size_t size; uint8_t round_keys[176]; } AES_KEY; void aes_expand_key(uint8_t *expanded_key, const uint8_t *key); void aes_set_key(const uint8_t *key_in, AES_KEY *key_out, size_t...
42.06
16
(translation_unit) "#ifndef LIBCRYPTO_AES_H\n#define LIBCRYPTO_AES_H\n\n#include <stdint.h>\n#include <stdio.h>\n\n#define AES_BLOCK_SIZE 16\n\ntypedef struct {\n size_t size;\n uint8_t round_keys[176];\n} AES_KEY;\n\nvoid aes_expand_key(uint8_t *expanded_key, const uint8_t *key);\n\nvoid aes_set_key(const uint8_...
227
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 42.06, "nodes": 159, "errors": 0, "source_hash": "b41074c828daa958cab1e0758abf5a897e1bf559e8c4a8692b95cecc70659a78", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,602
c
#ifndef MITSUBISHICNC_HOST_H #define MITSUBISHICNC_HOST_H #include <QObject> #include <QThread> #include <QMap> #include <QDebug> #include <QStringList> #include <QString> #include <QByteArray> #include "libezsocket/ezsocket.h" #include <stdint.h> /* regname 格式 若为轴和轴数量 为X:X 若为轴名称则为 X 若为地址则为 X*/ enum { MITSUBIS...
23.92
87
(translation_unit) "#ifndef MITSUBISHICNC_HOST_H\n#define MITSUBISHICNC_HOST_H\n\n#include <QObject>\n#include <QThread>\n#include <QMap>\n#include <QDebug>\n#include <QStringList>\n#include <QString>\n#include <QByteArray>\n#include "libezsocket/ezsocket.h"\n#include <stdint.h>\n\n\n/* regname 格式\n若为轴和轴数量 为X:X\n若为轴名称则...
460
12
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 23.92, "nodes": 306, "errors": 0, "source_hash": "bae72f964a3aa121e9e1cf0a72ea55f4218201e94dd5f762ab86e92d01c7055c", "categorized_nodes": 211}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,603
c
/* { dg-do compile } */ /* { dg-options "-march=vr4130 -mgp64 -mfix-vr4130" } */ NOMIPS16 long long foo (void) { long long r; asm ("# foo" : "=l" (r)); return r; } /* { dg-final { scan-assembler "\tdmacc\t" } } */
21
10
(translation_unit) "/* { dg-do compile } */\n/* { dg-options "-march=vr4130 -mgp64 -mfix-vr4130" } */\nNOMIPS16 long long\nfoo (void)\n{\n long long r;\n asm ("# foo" : "=l" (r));\n return r;\n}\n/* { dg-final { scan-assembler "\tdmacc\t" } } */\n" (comment) "/* { dg-do compile } */" (comment) "/* { dg-options "...
49
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.0, "nodes": 24, "errors": 0, "source_hash": "931823b40a9907c30707b8da293a0561cdda71b738ec28b78858c1308f79eea7", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "NOM...
5,604
c
#pragma once #include "perfetto/tracing/event_context.h"
27.5
2
(translation_unit) "#pragma once\n#include "perfetto/tracing/event_context.h" \n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "perfetto/tracing/event_context.h"" (#include) "#include" (string_literal) ""perfetto/tracing/event_context...
10
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 27.5, "nodes": 6, "errors": 0, "source_hash": "facd2fc57f30ea5d1c8da94297fb5a86e79cca6baa855f2735f5ae81119b6089", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\...
5,605
c
// Copyright (c) 2011-2021 The Khronos Group, Inc. // SPDX-License-Identifier: MIT namespace sycl { class kernel { /* ... */ }; template<bundle_state State> class kernel_bundle { public: using device_image_iterator = __unspecified__; kernel_bundle() = delete; bool empty() const noexcept; backend get_back...
40.1
40
(translation_unit) "// Copyright (c) 2011-2021 The Khronos Group, Inc.\n// SPDX-License-Identifier: MIT\n\nnamespace sycl {\n\nclass kernel { /* ... */ };\n\ntemplate<bundle_state State>\nclass kernel_bundle {\n public:\n using device_image_iterator = __unspecified__;\n\n kernel_bundle() = delete;\n\n bool empty() c...
347
18
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 40.1, "nodes": 199, "errors": 0, "source_hash": "bc7b1ba74fa2180604cef6091a27ce8336db6161a13236e8f109faa3f4083a79", "categorized_nodes": 127}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "n...
5,606
c
/* Copyright (C) 2014, The University of Texas at Austin This file is part of libflame and is available under the 3-Clause BSD license, which can be found in the LICENSE file at the top-level directory, or at http://opensource.org/licenses/BSD-3-Clause */ #include "FLAME.h" fla_scalr_t* fla_scalr_c...
36.43
21
(translation_unit) "/*\n\n Copyright (C) 2014, The University of Texas at Austin\n\n This file is part of libflame and is available under the 3-Clause\n BSD license, which can be found in the LICENSE file at the top-level\n directory, or at http://opensource.org/licenses/BSD-3-Clause\n\n*/\n\n#include "FLAM...
65
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 36.43, "nodes": 36, "errors": 0, "source_hash": "f34302a720860ac9e026935e989bc944e9792ce6ed1922f437ec89e736eb0791", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,607
c
#include "hashtable.h" #include <regex.h> #ifndef WORKLOAD_TPCH #define WORKLOAD_TPCH #define NB_LINEITEMS 10 size_t get_db_size_sql_parser(void); typedef struct node { char* val; struct node * next; } list_node_t; typedef enum type { SELECT } type_t; typedef enum operator { EQ, NE, GT, LT, ...
17.15
94
(translation_unit) "#include "hashtable.h"\n#include <regex.h>\n\n#ifndef WORKLOAD_TPCH\n#define WORKLOAD_TPCH\n\n#define NB_LINEITEMS 10\n\nsize_t get_db_size_sql_parser(void);\n\ntypedef struct node {\n char* val;\n struct node * next;\n} list_node_t;\n\ntypedef enum type {\n SELECT\n} type_t;\n\ntypedef enum o...
439
0
{"language": "c", "success": true, "metadata": {"lines": 94, "avg_line_length": 17.15, "nodes": 319, "errors": 0, "source_hash": "420121a37cb75f883ba4cbabc63851154b40c5257171963326f3079a3d2543c3", "categorized_nodes": 222}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,608
c
// // IWViewController.h // IWUserMainMoudle // // Created by Hanssea on 12/14/2018. // Copyright (c) 2018 Hanssea. All rights reserved. // @import UIKit; @interface IWViewController : UIViewController @end
20.1
10
(translation_unit) "//\n// IWViewController.h\n// IWUserMainMoudle\n//\n// Created by Hanssea on 12/14/2018.\n// Copyright (c) 2018 Hanssea. All rights reserved.\n//\n\n@import UIKit;\n\n@interface IWViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// IWViewController.h" (comment) "// ...
22
5
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.1, "nodes": 10, "errors": 0, "source_hash": "82fa484f4118b891d740a9122b9d87baf6311bd29fa83ca62630ae000d540c35", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": null...
5,609
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // @protocol PXGadgetRankStorage - (void)resetStoredRanks; - (void)setRank:(long long)arg1 forGadgetType:(unsigned long long)arg2; - (long long)rankForGadgetType:(unsigned long long)arg1; @e...
31.2
10
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n@protocol PXGadgetRankStorage\n- (void)resetStoredRanks;\n- (void)setRank:(long long)arg1 forGadgetType:(unsigned long long)arg2;\n- (long long)rankForGadgetType...
76
9
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 31.2, "nodes": 45, "errors": 0, "source_hash": "8eab661af258ddca146108106e7556f1dab29a139b89551f64b9f95c9ed53d73", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@protocol PXGadge...
5,610
c
#ifndef rocks_h #define rocks_h #define BIG_ROCK_SIZE 16 #define MEDIUM_ROCK_SIZE 8 #define SMALL_ROCK_SIZE 4 #define BIG_ROCK_SPIN 2 #define MEDIUM_ROCK_SPIN 5 #define SMALL_ROCK_SPIN 10 #include "flyingObject.h" #include <vector> using namespace std; class Rock : public FlyingObject { protected: int rotation...
28.61
72
(translation_unit) "#ifndef rocks_h\n#define rocks_h\n\n#define BIG_ROCK_SIZE 16\n#define MEDIUM_ROCK_SIZE 8\n#define SMALL_ROCK_SIZE 4\n\n#define BIG_ROCK_SPIN 2\n#define MEDIUM_ROCK_SPIN 5\n#define SMALL_ROCK_SPIN 10\n\n#include "flyingObject.h"\n#include <vector>\n\nusing namespace std;\n\nclass Rock : public Flying...
657
25
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 28.61, "nodes": 377, "errors": 0, "source_hash": "46951b9bf72cf8ecf9c0272130c8e94d54ca788b2016555931eeedeecc2db278", "categorized_nodes": 251}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,611
c
#include <stdlib.h> #include <string.h> #include <stdio.h> #include "v1_volume_device.h" v1_volume_device_t *v1_volume_device_create( char *device_path, char *name ) { v1_volume_device_t *v1_volume_device_local_var = malloc(sizeof(v1_volume_device_t)); if (!v1_volume_device_local_var) { r...
25.39
84
(translation_unit) "#include <stdlib.h>\n#include <string.h>\n#include <stdio.h>\n#include "v1_volume_device.h"\n\n\n\nv1_volume_device_t *v1_volume_device_create(\n char *device_path,\n char *name\n ) {\n v1_volume_device_t *v1_volume_device_local_var = malloc(sizeof(v1_volume_device_t));\n if (!v1_volu...
506
0
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 25.39, "nodes": 296, "errors": 0, "source_hash": "c020389a1fceba5599f3c80e3550d20c0f72990568c8cfcb08fb09a199fb8af3", "categorized_nodes": 191}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,612
c
// // UIViewController+permers.h // ChuanZ // // Created by apple on 2018/6/6. // Copyright © 2018年 apple. All rights reserved. // #import <UIKit/UIKit.h> @interface UIViewController (permers) /** 在目标控制器初始化的时候传入参数(可以为空) @param parameters 参数 @return 返回初始化的自己 */ -(instancetype)initWithParameters:(id)parameters;...
27.03
33
(translation_unit) "//\n// UIViewController+permers.h\n// ChuanZ\n//\n// Created by apple on 2018/6/6.\n// Copyright © 2018年 apple. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIViewController (permers)\n/**\n 在目标控制器初始化的时候传入参数(可以为空)\n @param parameters 参数\n @return 返回初始化的自己\n */\n-(instancetyp...
150
17
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 27.03, "nodes": 87, "errors": 0, "source_hash": "32b59ad1116d3f913d5807cad1e29aff8e29a8f9d0dcf86271edf57e43334c0a", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
5,613
c
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ASH_WM_DESKS_DESK_DRAG_PROXY_H_ #define ASH_WM_DESKS_DESK_DRAG_PROXY_H_ #include "ui/compositor/layer_animation_observer.h" #include "ui/views/wi...
37.44
52
(translation_unit) "// Copyright 2021 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef ASH_WM_DESKS_DESK_DRAG_PROXY_H_\n#define ASH_WM_DESKS_DESK_DRAG_PROXY_H_\n\n#include "ui/compositor/layer_animation_observ...
287
14
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 37.44, "nodes": 150, "errors": 0, "source_hash": "63406de09c082cfea0e129ee382d7d2d594f5df5db0055f8de83395c3cc60283", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,614
c
//---------------------------------------------------------- // This class contains functions that navigate you to // register screen, login screen and admin panel. // You may find brief explanations of these functions in // "Menu.cpp" file. // Recommendation: PLease visit the "User_Menu.h" file after finishing th...
26
26
(translation_unit) "//---------------------------------------------------------- \n// This class contains functions that navigate you to \n// register screen, login screen and admin panel. \n// You may find brief explanations of these functions in \n// "Menu.cpp" file. \n// Recommendation: PLease visit the "User_Menu.h...
83
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 26.0, "nodes": 45, "errors": 0, "source_hash": "156a63af8995b46e343595e7a682e09db8b6f52fc4ce75dc8ddcb606b6cc7e34", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef B...
5,615
c
#include "configfile.h" #include "opts.h" #include <glib.h> #include <sys/stat.h> #include <libgen.h> #include <stdio.h> #include <string.h> #define GRP_PERMISSIONS "Permissions" #define GRP_DEFAULTS "Defaults" #define KEY_ALLOW_NEW_PRIVS_PRERMITTED "PermitAllowNewPrivs" #define KEY_MAX_TMPFS_SIZE "MaxTmpfsSize" #defi...
31.71
140
(translation_unit) "#include "configfile.h"\n#include "opts.h"\n#include <glib.h>\n#include <sys/stat.h>\n#include <libgen.h>\n#include <stdio.h>\n#include <string.h>\n\n#define GRP_PERMISSIONS "Permissions"\n#define GRP_DEFAULTS "Defaults"\n#define KEY_ALLOW_NEW_PRIVS_PRERMITTED "PermitAllowNewPrivs"\n#define KEY_MAX_...
1,311
0
{"language": "c", "success": true, "metadata": {"lines": 140, "avg_line_length": 31.71, "nodes": 784, "errors": 0, "source_hash": "e6e9d9a00344fc5edd9a8a6bc2d75d75e4ab0fe664810dec1ce6f571718ecde7", "categorized_nodes": 522}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,616
c
#pragma once #include <algorithm> #include <iterator> #include <memory> #include <vector> namespace toolbox { /** Fills a std::vector<Iterator>, which can then be 're-wound' with operator-- even in forward-only iterators like graph search */ template <typename Iterator> class iterator_recorder { public: /** Type Defi...
31.55
147
(translation_unit) "#pragma once\n#include <algorithm>\n#include <iterator>\n#include <memory>\n#include <vector>\n\nnamespace toolbox {\n/** Fills a std::vector<Iterator>, which can then be\n're-wound' with operator-- even in forward-only iterators like graph search */\ntemplate <typename Iterator>\nclass iterator_rec...
1,514
93
{"language": "c", "success": true, "metadata": {"lines": 147, "avg_line_length": 31.55, "nodes": 972, "errors": 0, "source_hash": "b933d08ced9052b2f60a79a6acda3b9067298093897f9880991bf77e805bceda", "categorized_nodes": 640}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
5,617
c
#if defined(__cplusplus) extern "C" { #endif #define MAGIC_EGBUF 0xfc6f7b49 typedef struct { uint32_t magic; void *ptr; int size, nalloc, sizeMember; } EGBuf; static inline EGBuf *EGBuf_init(int sizeMember) { EGBuf *b = (EGBuf *)calloc(1, sizeof(EGBuf)); b->magic = MAGIC_EGBUF; b->sizeMember = sizeMembe...
25.63
43
(translation_unit) "#if defined(__cplusplus)\nextern "C" {\n#endif\n\n#define MAGIC_EGBUF 0xfc6f7b49\n\ntypedef struct {\n uint32_t magic;\n void *ptr;\n int size, nalloc, sizeMember;\n} EGBuf;\n\nstatic inline EGBuf *EGBuf_init(int sizeMember) {\n EGBuf *b = (EGBuf *)calloc(1, sizeof(EGBuf));\n\n b->magic = MAGIC...
506
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 25.63, "nodes": 340, "errors": 0, "source_hash": "eb07b73301ad95c767bc1248783943cce00f645ed6ef8474d6bb1e10c875391f", "categorized_nodes": 238}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if defin...
5,618
c
// // ISNetworkingRegisterInfoAPIHandler.h // InventorySystemForiPhone // // Created by yangboshan on 16/5/5. // Copyright © 2016年 yangboshan. All rights reserved. // #import "ISNetworkingBaseAPIHandler.h" @interface ISNetworkingRegisterInfoAPIHandler : ISNetworkingBaseAPIHandler @end
28
10
(translation_unit) "//\n// ISNetworkingRegisterInfoAPIHandler.h\n// InventorySystemForiPhone\n//\n// Created by yangboshan on 16/5/5.\n// Copyright © 2016年 yangboshan. All rights reserved.\n//\n\n#import "ISNetworkingBaseAPIHandler.h"\n\n@interface ISNetworkingRegisterInfoAPIHandler : ISNetworkingBaseAPIHandler\n\n...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 28.0, "nodes": 10, "errors": 0, "source_hash": "026524266ee0053e19de3bc20e7205137e4d3801a7169eddff07ac681cd962d9", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"ISNe...
5,619
c
#include <std.h> /* changing to inherit from /d/common *Styx* 12/24/03, last change 3/8/00 inherit "/std/armour"; */ inherit "/d/common/obj/armour/chain.c"; void create() { ::create(); set_name("light chainmail"); set_short("Light Chainmail"); set_id(({"chainmail","light chainmail","Light Chainmail"})); set_lon...
30.92
24
(translation_unit) "#include <std.h>\n\n/* changing to inherit from /d/common *Styx* 12/24/03, last change 3/8/00\ninherit "/std/armour";\n*/\n\ninherit "/d/common/obj/armour/chain.c";\n\nvoid create() {\n ::create();\n set_name("light chainmail");\n set_short("Light Chainmail");\n set_id(({"chainmail","light chainmail...
157
1
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 30.92, "nodes": 62, "errors": 0, "source_hash": "7d1d4bc3a4e3e95fce5805497a647c0f7836c0e405eea3d5157be5e93ad8c2fc", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,620
c
/* * Copyright (c) 2014 Juniper Networks, Inc. All rights reserved. */ #ifndef SRC_VNSW_AGENT_OVS_TOR_AGENT_OVSDB_CLIENT_UNICAST_MAC_REMOTE_OVSDB_H_ #define SRC_VNSW_AGENT_OVS_TOR_AGENT_OVSDB_CLIENT_UNICAST_MAC_REMOTE_OVSDB_H_ #include <base/lifetime.h> #include <ovsdb_entry.h> #include <ovsdb_object.h> #include <o...
39.33
84
(translation_unit) "/*\n * Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.\n */\n\n#ifndef SRC_VNSW_AGENT_OVS_TOR_AGENT_OVSDB_CLIENT_UNICAST_MAC_REMOTE_OVSDB_H_\n#define SRC_VNSW_AGENT_OVS_TOR_AGENT_OVSDB_CLIENT_UNICAST_MAC_REMOTE_OVSDB_H_\n\n#include <base/lifetime.h>\n#include <ovsdb_entry.h>\n#include...
703
32
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 39.33, "nodes": 436, "errors": 0, "source_hash": "6d716bff145f0ea5fb5e86dd4c43361aac573802b415b05c749b5f41a42ed97e", "categorized_nodes": 303}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,621
c
// // YXHUDProgressView.h // Framework // // Created by 曹云霄 on 2017/1/22. // Copyright © 2017年 曹云霄. All rights reserved. // #import <Foundation/Foundation.h> #import "HUD_Configuration.h" #import <UIKit/UIKit.h> #import "MBProgressHUD.h" #import "YHToolsHeader.h" @interface YXHUDProgressView : NSObject /** 文...
19.05
92
(translation_unit) "//\n// YXHUDProgressView.h\n// Framework\n//\n// Created by 曹云霄 on 2017/1/22.\n// Copyright © 2017年 曹云霄. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "HUD_Configuration.h"\n#import <UIKit/UIKit.h>\n#import "MBProgressHUD.h"\n#import "YHToolsHeader.h"\n\n\n\n@interface Y...
311
8
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 19.05, "nodes": 230, "errors": 0, "source_hash": "b33df9a54637dff4a6e9ea361403dcdc718fd58640d8b2871e43027d485a0a51", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "tion/Fo...
5,622
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 <TFNUI/TFNDataViewItemArgs.h> @class TFNLayoutMetrics; @interface TFNDataViewItemLayoutMetricsArgs : TFNDataViewItemArgs { TFNL...
33.57
14
(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 <TFNUI/TFNDataViewItemArgs.h>\n\n@class TFNLayoutMetrics;\n\n@interface TFNDataViewItemLayoutMetricsArgs : ...
68
10
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 33.57, "nodes": 39, "errors": 0, "source_hash": "96a022f34afb4230e70b12cd057a372ea9c5a94c965344b3a8fb51e34cac8d48", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
5,623
c
#ifndef _MY_MALLOC_H_ #define _MY_MALLOC_H_ #include <stdio.h> #include <sys/types.h> #include <fcntl.h> #include <sys/mman.h> #include "simple.h" int init_mem(size_t size,THREADED); void * my_malloc(size_t size,THREADED); void clear_mem(THREADED); #endif
22.27
11
(translation_unit) "#ifndef _MY_MALLOC_H_\n#define _MY_MALLOC_H_\n\n#include <stdio.h>\n#include <sys/types.h>\n#include <fcntl.h>\n#include <sys/mman.h>\n#include "simple.h"\n\nint init_mem(size_t size,THREADED);\nvoid * my_malloc(size_t size,THREADED);\nvoid clear_mem(THREADED);\n#endif\n\n" (preproc_ifdef) "#ifnde...
66
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 22.27, "nodes": 51, "errors": 0, "source_hash": "5a1b078c51ff1a8ec4f2ae66ff00ab9b1c95845a361550544e59cdb932b23af3", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,624
c
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef DebuggerScript_h #define DebuggerScript_h #include <v8.h> namespace blink { v8::Local<v8::Object> compileDebuggerScript(v8::Isolate*); } // na...
32.36
11
(translation_unit) "// Copyright 2015 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef DebuggerScript_h\n#define DebuggerScript_h\n\n#include <v8.h>\n\nnamespace blink {\n\nv8::Local<v8::Object> compileDebugge...
49
2
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 32.36, "nodes": 30, "errors": 0, "source_hash": "9d2b4f495865f7b8c656517fd601828bab44461d41fd2aa11e46c19a77c9dbae", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,625
c
/* Distributed under the Apache License, Version 2.0. See accompanying NOTICE file for details.*/ #pragma once #include "patient/conditions/SEPatientCondition.h" CDM_BIND_DECL(ChronicRenalStenosisData) class CDM_DECL SEChronicRenalStenosis : public SEPatientCondition { public: SEChronicRenalStenosis(); virtua...
42.86
28
(translation_unit) "/* Distributed under the Apache License, Version 2.0.\n See accompanying NOTICE file for details.*/\n\n#pragma once\n#include "patient/conditions/SEPatientCondition.h"\nCDM_BIND_DECL(ChronicRenalStenosisData)\n\nclass CDM_DECL SEChronicRenalStenosis : public SEPatientCondition\n{\npublic:\n\n SEC...
282
24
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 42.86, "nodes": 150, "errors": 0, "source_hash": "c64e978dfe9584e09b42b621e6b0465dd8386994b4e2fb9c8b7006272d4147b6", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
5,626
c
// --------------------------------------------------------------------------- // // The ab-initio based multiscale library // // S / P H I / n X // // Copyright: Max-Planck-Institute for Iron Research // 40237 Duesseldorf, Germany // // Contact: https://sxlib.mpie.d...
28.23
43
(translation_unit) "// ---------------------------------------------------------------------------\n//\n// The ab-initio based multiscale library\n//\n// S / P H I / n X\n//\n// Copyright: Max-Planck-Institute for Iron Research\n// 40237 Duesseldorf, Germany\n//\n// Con...
180
11
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 28.23, "nodes": 106, "errors": 0, "source_hash": "9ac6d5b59f622875925d7bd390436309fc606684cd81393073d3dfeb3878949c", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,627
c
// // TUINSView+Private.h // TwUI // // Created by <NAME> on 17.07.12. // // Portions of this code were taken from Velvet, // which is copyright (c) 2012 Bitswift, Inc. // See LICENSE.txt for more information. // #import "TUINSView.h" // Private functionality of TUINSView that needs to be exposed to other parts...
39.44
27
(translation_unit) "//\n// TUINSView+Private.h\n// TwUI\n//\n// Created by <NAME> on 17.07.12.\n//\n// Portions of this code were taken from Velvet,\n// which is copyright (c) 2012 Bitswift, Inc.\n// See LICENSE.txt for more information.\n//\n\n#import "TUINSView.h"\n\n// Private functionality of TUINSView that n...
121
21
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 39.44, "nodes": 70, "errors": 0, "source_hash": "30919eb6bc446820a785ba0ab8598d7eefbfc2d843f6f54ef95d5a8b1cae2cbc", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
5,628
c
/* Generated by ./xlat/gen.sh from ./xlat/pollflags.in; do not edit. */ static const struct xlat pollflags[] = { #if defined(POLLIN) || (defined(HAVE_DECL_POLLIN) && HAVE_DECL_POLLIN) XLAT(POLLIN), #endif #if defined(POLLPRI) || (defined(HAVE_DECL_POLLPRI) && HAVE_DECL_POLLPRI) XLAT(POLLPRI), #endif #if defined(POLL...
32.65
34
(translation_unit) "/* Generated by ./xlat/gen.sh from ./xlat/pollflags.in; do not edit. */\n\nstatic const struct xlat pollflags[] = {\n#if defined(POLLIN) || (defined(HAVE_DECL_POLLIN) && HAVE_DECL_POLLIN)\n XLAT(POLLIN),\n#endif\n#if defined(POLLPRI) || (defined(HAVE_DECL_POLLPRI) && HAVE_DECL_POLLPRI)\n XLAT(POLLPR...
322
31
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 32.65, "nodes": 211, "errors": 0, "source_hash": "2ede90b4143f8c94672bdcb7fa54f2d7510eb66f9fd6e344d96cf18641339dc2", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "static c...
5,629
c
#include <stdio.h> int gcd1(int a, int b) { int c; if (a) { while (b) { if (a > b) { c = a; a = b; b = c; } b-=a; } return (a); } else { if (b) return b;...
13.97
31
(translation_unit) "#include <stdio.h>\n\n\nint gcd1(int a, int b) \n{\n int c;\n \n if (a) {\n while (b)\n {\n if (a > b) {\n c = a;\n a = b;\n b = c;\n }\n b-=a; \n }\n return (a);\n } \n...
165
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 13.97, "nodes": 94, "errors": 0, "source_hash": "52020a1b0e8abb2c2b0a09470b0fabd8f00ab26c841f54d3a20212a66d48b057", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,630
c
/* else is tied to if(two) */ int main() { if (one) { if (two) sleep (1); else sleep (2); } if (three) sleep(1); else if (four) sleep(2); } /* else is tied to if(one) */ int main() { if (one) { if (two) sleep (1); } else if (three) sleep (2); } /* else.1 is tied to if(two), else.2 is tied...
13.59
39
(translation_unit) "/* else is tied to if(two) */\nint main() {\n if (one) {\n if (two)\n sleep (1);\n else\n sleep (2);\n }\n\n if (three)\n sleep(1);\n else if (four)\n sleep(2);\n}\n\n/* else is tied to if(one) */\nint main() {\n if (one) {\n if (two)\n sleep (1);\n }\n else if (three)\n sleep (2);\n}\n\...
242
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 13.59, "nodes": 121, "errors": 0, "source_hash": "6af9af35ae0527175dd1856b890f12cad29c2787848026507f35c8dfe10c4c00", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "i...
5,631
c
#include <config.h> #if defined(__HAIKU__) #include <mono/utils/mono-threads.h> #include <pthread.h> #include <os/kernel/OS.h> void mono_threads_platform_get_stack_bounds (guint8 **staddr, size_t *stsize) { thread_info ti; get_thread_info(get_pthread_thread_id(pthread_self()), &ti); *staddr = ti.stack_base; *st...
24.32
22
(translation_unit) "#include <config.h>\n\n#if defined(__HAIKU__)\n\n#include <mono/utils/mono-threads.h>\n#include <pthread.h>\n#include <os/kernel/OS.h>\n\nvoid\nmono_threads_platform_get_stack_bounds (guint8 **staddr, size_t *stsize)\n{\n thread_info ti;\n get_thread_info(get_pthread_thread_id(pthread_self()), &ti);...
141
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 24.32, "nodes": 97, "errors": 0, "source_hash": "b6f8620fd284964e2e3683c1881b193a758c35f64439a2d6d1edecbfcd3e6e6a", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,632
c
// // EmptyView.h // MonkeyKingVideo // // Created by Jobs on 2020/7/31. // Copyright © 2020 Jobs. All rights reserved. // #import <LYEmptyView/LYEmptyView.h> NS_ASSUME_NONNULL_BEGIN @interface EmptyView : LYEmptyView + (instancetype)diyEmptyView; + (instancetype)diyEmptyActionViewWithTarget:(id)target ...
25.2
15
(translation_unit) "//\n// EmptyView.h\n// MonkeyKingVideo\n//\n// Created by Jobs on 2020/7/31.\n// Copyright © 2020 Jobs. All rights reserved.\n//\n\n#import <LYEmptyView/LYEmptyView.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface EmptyView : LYEmptyView\n\n+ (instancetype)diyEmptyView;\n\n+ (instancetype)diyEmptyAct...
60
6
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 25.2, "nodes": 35, "errors": 0, "source_hash": "97eec476644d14a9844c2da143063c083004f947ab8b9d45d425d9f228542677", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <LY...
5,633
c
/* Copyright 2010 <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 writin...
36.53
38
(translation_unit) "/* Copyright 2010 <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 applicabl...
151
9
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 36.53, "nodes": 91, "errors": 0, "source_hash": "0476519afe75d0422146ed1513506ce49f8ba774da063ddab44b5d63e3f3d49e", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,634
c
#ifndef UDPNode_h #define UDPNode_h #include "SDL2/SDL_net.h" /* TODO : for Server There will be multiple clients for one server; therefore server should has following structure: int nclinents; IPaddress receivers[]; UDPsocket sockets []; - when client is connected virtual funct...
30.83
106
(translation_unit) "#ifndef UDPNode_h\n#define UDPNode_h\n\n#include "SDL2/SDL_net.h"\n\n\n/*\n\nTODO :\n\n for Server\n\n There will be multiple clients for one server; therefore server should has following structure:\n\n int nclinents;\n IPaddress receivers[];\n UDPsocket sockets [];\n\n - ...
832
6
{"language": "c", "success": true, "metadata": {"lines": 106, "avg_line_length": 30.83, "nodes": 443, "errors": 0, "source_hash": "36c776babd9f8de656cc820005f01f1c38f53fdd50c6e264cb7711f9a03a48bd", "categorized_nodes": 312}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
5,635
c
void __test_matlab_MOD_test(double *y, double *x);
50
1
(translation_unit) "void __test_matlab_MOD_test(double *y, double *x);\n" (declaration) "void __test_matlab_MOD_test(double *y, double *x);" (primitive_type) "void" (function_declarator) "__test_matlab_MOD_test(double *y, double *x)" (identifier) "__test_matlab_MOD_test" (parameter_list) "(double ...
20
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 50.0, "nodes": 15, "errors": 0, "source_hash": "58546ca761dd11ab1129b89bcd818cb5d716d326920b4cdb7ec5cf1337fc8fce", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "void __test_m...
5,636
c
#ifndef _MFXTIME_H_ #define _MFXTIME_H_ #pragma once // MfxTime.h : Declarations of time formats for use by MFX, DXi, etc. // Copyright (c) 2001- Twelve Tone Systems, Inc. All rights reserved. typedef enum MFX_TIME_FORMAT { TF_NULL, // no time value (used to clear a time value) TF_SECONDS, // time i...
24.3
70
(translation_unit) "#ifndef _MFXTIME_H_ \n#define _MFXTIME_H_ \n#pragma once \n \n// MfxTime.h : Declarations of time formats for use by MFX, DXi, etc. \n// Copyright (c) 2001- Twelve Tone Systems, Inc. All rights reserved. \n \ntypedef enum MFX_TIME_FORMAT \n{ \n TF_NULL, // no time value (used to clear a time val...
208
0
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 24.3, "nodes": 130, "errors": 0, "source_hash": "3ea756e8a1487dd0d8302f78ec2961894762fc02c774d6dcef887ea59866df74", "categorized_nodes": 112}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,637
c
/* $Id: colormap.c,v 1.8 2007/06/24 13:37:16 aldot Exp $ ****************************************************************************** LibGGI core - target independent colormap implementation Copyright (C) 2003 <NAME> [<EMAIL>] Permission is hereby granted, free of charge, to any person obtaining a copy...
33.09
204
(translation_unit) "/* $Id: colormap.c,v 1.8 2007/06/24 13:37:16 aldot Exp $\n******************************************************************************\n\n LibGGI core - target independent colormap implementation\n\n Copyright (C) 2003 <NAME> [<EMAIL>]\n\n Permission is hereby granted, free of charge, to any...
1,672
0
{"language": "c", "success": true, "metadata": {"lines": 204, "avg_line_length": 33.09, "nodes": 999, "errors": 0, "source_hash": "9c6ed24e6bdb7c6601e799dc71c9da491a6283d21369d26d40f73de05ecdd355", "categorized_nodes": 752}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,638
c
// // BaseNavigationController.h // IELTS // // Created by 李牛顿 on 14-11-13. // Copyright (c) 2014年 Neworiental. All rights reserved. // #import <UIKit/UIKit.h> @interface BaseNavigationController : UINavigationController @end
20
11
(translation_unit) "//\n// BaseNavigationController.h\n// IELTS\n//\n// Created by 李牛顿 on 14-11-13.\n// Copyright (c) 2014年 Neworiental. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface BaseNavigationController : UINavigationController\n\n\n@end\n" (comment) "//" (comment) "// BaseNavigationCo...
19
3
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 20.0, "nodes": 10, "errors": 0, "source_hash": "0966f4ae3ddbd78d0f3bbe9d2a0ab188dd23fa08f5cb1e1ce1aa668142e8370a", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "<UIKit/UIKi...
5,639
c
// // IYWContactService.h // WXOpenIMSDK // // Created by huanglei on 15/7/20. // Copyright (c) 2015年 taobao. All rights reserved. // #import <Foundation/Foundation.h> #import "YWContactServiceDef.h" #import "YWServiceDef.h" @class YWPerson; /** * 联系人是指建立关系的人 * 联系人服务提供了联系人列表、联系人管理等功能 */ @protocol IYWContac...
34.87
77
(ERROR) "//\n// IYWContactService.h\n// WXOpenIMSDK\n//\n// Created by huanglei on 15/7/20.\n// Copyright (c) 2015年 taobao. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n#import "YWContactServiceDef.h"\n#import "YWServiceDef.h"\n\n@class YWPerson;\n\n\n/**\n * 联系人是指建立关系的人\n * 联系人服务提供了联系人列表、联系人管...
379
18
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 34.87, "nodes": 208, "errors": 0, "source_hash": "f49ce1de9a22eeb8779431fafc35166c12d74fe1e968dd6ff8df545954e2f987", "categorized_nodes": 129}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// IYWContactService...
5,640
c
#ifndef _BANK_H_ #define _BANK_H_ #define REDCODE_BANK 1 #define HELP_BANK 2 // // CELLS_PER_BANK used to be 1500. // // If it were 1024, then we could shift instead of divide when // determining bank number... and yes, we'd go from 11 to 16 banks. // So what? // #d...
26.06
17
(translation_unit) "#ifndef _BANK_H_\n#define _BANK_H_\n\n#define REDCODE_BANK 1\n#define HELP_BANK 2\n\n//\n// CELLS_PER_BANK used to be 1500.\n//\n// If it were 1024, then we could shift instead of divide when \n// determining bank number... and yes, we'd go from 11 to 1...
59
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 26.06, "nodes": 42, "errors": 0, "source_hash": "3da0b194067e0111b8d18a86eeb44aead9f9598b4469a1507150763053d2d4ef", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,641
c
/* GStreamer * * unit test for vorbisdec * * Copyright (C) <2005> <NAME> <thomas at apestaart dot org> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of th...
37.5
261
(translation_unit) "/* GStreamer\n *\n * unit test for vorbisdec\n *\n * Copyright (C) <2005> <NAME> <thomas at apestaart dot org>\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Library General Public\n * License as published by the Free Software Foundatio...
2,182
0
{"language": "c", "success": true, "metadata": {"lines": 261, "avg_line_length": 37.5, "nodes": 1211, "errors": 0, "source_hash": "28603c05382817c2421a6f96e6ba98719d4396e509c42dd625d7e30b61408355", "categorized_nodes": 854}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,642
c
#include "bml_diagonalize.h" #include "bml_introspection.h" #include "bml_utilities.h" #include "bml_logger.h" #include "bml_types.h" #include "dense/bml_diagonalize_dense.h" #include "ellpack/bml_diagonalize_ellpack.h" #include "ellblock/bml_diagonalize_ellblock.h" #include "csr/bml_diagonalize_csr.h" #ifdef DO_MPI #i...
27.76
45
(translation_unit) "#include "bml_diagonalize.h"\n#include "bml_introspection.h"\n#include "bml_utilities.h"\n#include "bml_logger.h"\n#include "bml_types.h"\n#include "dense/bml_diagonalize_dense.h"\n#include "ellpack/bml_diagonalize_ellpack.h"\n#include "ellblock/bml_diagonalize_ellblock.h"\n#include "csr/bml_diagona...
242
0
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 27.76, "nodes": 139, "errors": 0, "source_hash": "1d48d4f6c2d02dd50646a9b8d8493892fa0be834253839c05145c4fff43c0a85", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,643
c
/* * notification-message.h * Copyright (C) 2010-2018 Belledonne Communications SARL * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your optio...
41.26
39
(translation_unit) "/*\n * notification-message.h\n * Copyright (C) 2010-2018 Belledonne Communications SARL\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * as published by the Free Software Foundation; either version 2\n * of the...
148
8
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 41.26, "nodes": 83, "errors": 0, "source_hash": "e833e78976407951be3fbab4ece5d816a3d1cbe21f1fbddfffa00ab8d4e3dc7d", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,644
c
#pragma once #include <U8g2lib.h> #include "u8g2_ext_event.h" #include "Constants.h" #include "Locales.h" #include "Config.h" #include "Locale.h" /* u8g2_ext.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2018, All rights reserved. Redistribution and use in source and binary f...
40.89
82
(translation_unit) "#pragma once\n#include <U8g2lib.h>\n#include "u8g2_ext_event.h"\n\n#include "Constants.h"\n#include "Locales.h"\n#include "Config.h"\n#include "Locale.h"\n\n/*\n\nu8g2_ext.c\n\nUniversal 8bit Graphics Library (https://github.com/olikraus/u8g2/)\n\nCopyright (c) 2018,\nAll rights reserved.\n\nRedistr...
555
13
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 40.89, "nodes": 391, "errors": 0, "source_hash": "28ed333b2a03ca640b3f3b3bc7f83b401200a691b60961665e1ce25842870248", "categorized_nodes": 228}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
5,645
c
#pragma once #include "type.h" #include "io_service_pool.h" #include "common.h" #include "udp_proxy.h" #include "tcp_proxy.h" #include <list> namespace proxy_ns { class SharedData { public: SharedData(); void init(); void start(); void stop(); std::list<boost::shared_ptr<TcpProxy> > proxies; UdpPro...
17.52
23
(translation_unit) "#pragma once\n#include "type.h"\n#include "io_service_pool.h"\n#include "common.h"\n#include "udp_proxy.h"\n#include "tcp_proxy.h"\n#include <list>\n\nnamespace proxy_ns\n{\n class SharedData\n {\n public:\n SharedData();\n\n void init();\n\n void start();\n\n void stop();\n\n std::list<boost::...
126
2
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 17.52, "nodes": 74, "errors": 0, "source_hash": "3906859fabc6a28fb764a1df74375ddc8d4459bd6ca83fdee457d44b74aa86c5", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
5,646
c
/* Based on OMP 3.0 A.10 Example A.10.1 */ void foo() { int j,k; int jlast, klast; #pragma omp parallel for private(j,k), collapse(2), lastprivate (jlast, klast) for (k=1;k<=100;k++) for (j=1;j<=100;j++) { jlast = j; klast = k; } }
17.86
14
(translation_unit) "/* Based on OMP 3.0 A.10 Example A.10.1\n */\nvoid foo()\n{\n int j,k;\n int jlast, klast;\n#pragma omp parallel for private(j,k), collapse(2), lastprivate (jlast, klast)\n for (k=1;k<=100;k++)\n for (j=1;j<=100;j++)\n {\n jlast = j;\n klast = k;\n } \n}\n" (comment) "/* Base...
76
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 17.86, "nodes": 48, "errors": 0, "source_hash": "986dbb7cfe31680e28f114a921442446b47df959aca659602b623a1bc9ce77f0", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "vo...
5,647
c
#ifndef SIMU_TYPES_H #define SIMU_TYPES_H #include <cmath> #include <ostream> #include "kgd/external/json.hpp" namespace simu { struct Point { float x, y; static Point fromPolar (float a, float r) { return { float(r * cos(a)), float(r * sin(a)) }; } friend Point operator* (const Point &p, float f) ...
32.87
175
(translation_unit) "#ifndef SIMU_TYPES_H\n#define SIMU_TYPES_H\n\n#include <cmath>\n\n#include <ostream>\n\n#include "kgd/external/json.hpp"\n\nnamespace simu {\n\nstruct Point {\n float x, y;\n\n static Point fromPolar (float a, float r) {\n return { float(r * cos(a)), float(r * sin(a)) };\n }\n\n friend Poin...
2,782
130
{"language": "c", "success": true, "metadata": {"lines": 175, "avg_line_length": 32.87, "nodes": 1639, "errors": 0, "source_hash": "04c1a89372781131bc0f9d7e51e7760b4e7258f7b791e5da4f8238e085b7efa5", "categorized_nodes": 1281}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#if...
5,648
c
// // RotationNavigationController.h // MenuExample // // Created by <NAME> on 08-01-14. // Copyright (c) 2014 Gangverk. All rights reserved. // #import <UIKit/UIKit.h> @interface RotationNavigationController : UINavigationController <UINavigationControllerDelegate> @end
24.18
11
(translation_unit) "//\n// RotationNavigationController.h\n// MenuExample\n//\n// Created by <NAME> on 08-01-14.\n// Copyright (c) 2014 Gangverk. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n\n@interface RotationNavigationController : UINavigationController <UINavigationControllerDelegate>\n\n@end\n" (c...
25
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 24.18, "nodes": 14, "errors": 0, "source_hash": "2576e2b06f9e97f1c47eaf4dead34736437369ce230fbfc59dd6f812fb59f90c", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <U...
5,649
c
// // Created by fantouch on 06/12/2017. // Copyright (c) 2017 Tencent. All rights reserved. // #import <Foundation/Foundation.h> /** 这是一个本地实现,代码中包含 secretKey,为免被破解,实际产品中请把这部分实现放在服务器中,以保护 secretKey */ @interface QCLocalAuthorizationGenerator : NSObject + (NSString *)signWithAppId:(NSString *)appId ...
36.41
17
(translation_unit) "//\n// Created by fantouch on 06/12/2017.\n// Copyright (c) 2017 Tencent. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n\n/** 这是一个本地实现,代码中包含 secretKey,为免被破解,实际产品中请把这部分实现放在服务器中,以保护 secretKey */\n@interface QCLocalAuthorizationGenerator : NSObject\n\n+ (NSString *)signWithAppId:(NSS...
112
15
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 36.41, "nodes": 72, "errors": 0, "source_hash": "a036de5c49ac25f7eb5c3f908f4e3d1e213024b896d1f696a1c818c514bf9728", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
5,650
c
#pragma once #include "CoreMinimal.h" class FPackageItem; class FTranslationHelper { public: static TMap<FString, TMap<FString, FString>> Strings; static void LoadFromXML(const FString XmlString); static void TranslateComponent(const TSharedPtr<FPackageItem>& Item); };
27.2
10
(translation_unit) "#pragma once\n\n#include "CoreMinimal.h"\n\nclass FPackageItem;\n\nclass FTranslationHelper\n{\npublic:\n static TMap<FString, TMap<FString, FString>> Strings;\n\n static void LoadFromXML(const FString XmlString);\n static void TranslateComponent(const TSharedPtr<FPackageItem>& Item);\n};" ...
80
2
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 27.2, "nodes": 45, "errors": 0, "source_hash": "89c5b46f2a085e0c3257653f25a180f1a9a8178ea1edfe76b6b16dd66fa9b885", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
5,651
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <conio.h> #include "clax.h" void main () { c_SCENE *scene; clax_init (clax_transform | clax_hierarchy | clax_domorph); clax_allocscene (&scene); printf ("error: %d\n", clax_loadscene ("1.3ds",scene)); clax_setactive (scene); ...
22
19
(translation_unit) "#include <stdio.h> \n#include <stdlib.h> \n#include <string.h> \n#include <conio.h> \n#include "clax.h" \n \nvoid main () \n{ \n c_SCENE *scene; \n \n clax_init (clax_transform | clax_hierarchy | clax_domorph); \n clax_allocscene (&scene); \n printf ("error: %d\n", clax_loadscene ("1.3ds",scene...
126
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 22.0, "nodes": 67, "errors": 0, "source_hash": "8a2b9a3adc38cb19728044b645ff223cb390810b1fe2e12b026574a304635c9b", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
5,652
c
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_FIELD_TRIAL_RECORDER_H_ #define CHROME_BROWSER_FIELD_TRIAL_RECORDER_H_ #include "base/threading/thread_checker.h" #include "chrome...
42.32
19
(translation_unit) "// Copyright 2016 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef CHROME_BROWSER_FIELD_TRIAL_RECORDER_H_\n#define CHROME_BROWSER_FIELD_TRIAL_RECORDER_H_\n\n#include "base/threading/thread_...
124
6
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 42.32, "nodes": 62, "errors": 0, "source_hash": "4eaed9c1e11f70e628975911e136e88f9bc6d4eb02c5bf00e844c968ac218bef", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,653
c
/* # This file is part of the Astrometry.net suite. # Licensed under a 3-clause BSD style license - see LICENSE */ #include "os-features.h" #include "starutil.h" #include "mathutil.h" #include "fit-wcs.h" #include "xylist.h" #include "rdlist.h" #include "boilerplate.h" #include "sip.h" #include "sip_qfits.h" #includ...
26.67
175
(translation_unit) "/*\n # This file is part of the Astrometry.net suite.\n # Licensed under a 3-clause BSD style license - see LICENSE\n */\n#include "os-features.h"\n#include "starutil.h"\n#include "mathutil.h"\n#include "fit-wcs.h"\n#include "xylist.h"\n#include "rdlist.h"\n#include "boilerplate.h"\n#include "sip.h"...
1,492
0
{"language": "c", "success": true, "metadata": {"lines": 175, "avg_line_length": 26.67, "nodes": 894, "errors": 0, "source_hash": "4707dde2311c3b4baa6e057219490d93e63787b44b1fb69987affbfc65200f52", "categorized_nodes": 575}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,654
c
/********************************************************************[libaroma]* * Copyright (C) 2011-2015 <NAME> (http://amarullz.com/) * * 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 ...
27.99
117
(translation_unit) "/********************************************************************[libaroma]*\n * Copyright (C) 2011-2015 <NAME> (http://amarullz.com/)\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...
659
1
{"language": "c", "success": true, "metadata": {"lines": 117, "avg_line_length": 27.99, "nodes": 413, "errors": 0, "source_hash": "14714c6d845c14d28243e4d82c4dbfb2753c671c6f8c5399acd5259ea0500583", "categorized_nodes": 325}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
5,655
c
#ifndef __OGL64INTERNAL__ #define __OGL64INTERNAL__ #define OP_Normal 1 #define OP_Vertex 2 #define OP_BUFFER_MAX_SIZE 512 #define MAX_DISPLAY_LISTS 1024 typedef union { int op; float f; int i; unsigned int ui; void *p; } GLParam; typedef struct GLParamBuffer { GLParam ops[OP_BUFFER_MAX_SIZE]; struct ...
24.02
46
(translation_unit) "#ifndef __OGL64INTERNAL__\n#define __OGL64INTERNAL__\n\n#define OP_Normal 1\n#define OP_Vertex 2\n\n#define OP_BUFFER_MAX_SIZE 512\n#define MAX_DISPLAY_LISTS 1024\n\ntypedef union {\n int op;\n float f;\n int i;\n unsigned int ui;\n void *p;\n} GLParam;\n\ntypedef struct GLParamBuffer {\n GLPa...
246
0
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 24.02, "nodes": 183, "errors": 0, "source_hash": "9bfb7e4e4e03f98d442742c6ded5e9edf520993f877bbf60ddbab17cc11b7f3c", "categorized_nodes": 118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,656
c
// Copyright (c) 2012 The Sponge Authors. All rights reserved. // Use of this source code is governed by a MIT-style license that can // be found in the LICENSE file. See the AUTHORS file for names of contributors. #ifndef SPONGE_INDEXD_WATCH_MANAGER_H_ #define SPONGE_INDEXD_WATCH_MANAGER_H_ #include <map> #include <...
38.81
32
(translation_unit) "// Copyright (c) 2012 The Sponge Authors. All rights reserved.\n// Use of this source code is governed by a MIT-style license that can\n// be found in the LICENSE file. See the AUTHORS file for names of contributors.\n\n#ifndef SPONGE_INDEXD_WATCH_MANAGER_H_\n#define SPONGE_INDEXD_WATCH_MANAGER_H_\n...
250
12
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 38.81, "nodes": 146, "errors": 0, "source_hash": "6183cf9f4f7c2156ca584d2675cc21ce14651648cbc5e5ea7068017703f41376", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,657
c
/* ********************************************************** * Copyright (c) 2014-2017 Google, Inc. All rights reserved. * Copyright (c) 2003 VMware, Inc. All rights reserved. * **********************************************************/ /* * Redistribution and use in source and binary forms, with or without *...
32.38
135
(translation_unit) "/* **********************************************************\n * Copyright (c) 2014-2017 Google, Inc. All rights reserved.\n * Copyright (c) 2003 VMware, Inc. All rights reserved.\n * **********************************************************/\n\n/*\n * Redistribution and use in source and binary...
738
0
{"language": "c", "success": true, "metadata": {"lines": 135, "avg_line_length": 32.38, "nodes": 405, "errors": 0, "source_hash": "27dff89311904526759da0764b37d43ff77efacfdd1f490011eb1cd9c65edb15", "categorized_nodes": 273}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,658
c
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- #ifndef __javax_swing_text_FieldView__ #define __javax_swing_text_FieldView__ #pragma interface #include <javax/swing/text/PlainView.h> #include <gcj/array.h> extern "Java" { namespace java { namespace awt { class FontMetrics; ...
31.71
65
(translation_unit) "// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-\n\n#ifndef __javax_swing_text_FieldView__\n#define __javax_swing_text_FieldView__\n\n#pragma interface\n\n#include <javax/swing/text/PlainView.h>\n#include <gcj/array.h>\n\nextern "Java"\n{\n namespace java\n {\n namespace awt\n ...
694
60
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 31.71, "nodes": 348, "errors": 0, "source_hash": "5eb1950e5b4cc070ba736947841bade82aed5dec020466e4981fbcf2d9487956", "categorized_nodes": 230}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,659
c
// This file was generated based on C:/Users/JuanJose/AppData/Local/Fusetools/Packages/Uno.Net.Http/1.9.0/HttpMessageHandler.uno. // WARNING: Changes might be lost if you edit this file directly. #pragma once #include <Uno.h> namespace g{namespace Uno{namespace Net{namespace Http{struct HttpMessageHandler__StaticData;...
41.04
23
(translation_unit) "// This file was generated based on C:/Users/JuanJose/AppData/Local/Fusetools/Packages/Uno.Net.Http/1.9.0/HttpMessageHandler.uno.\n// WARNING: Changes might be lost if you edit this file directly.\n\n#pragma once\n#include <Uno.h>\nnamespace g{namespace Uno{namespace Net{namespace Http{struct HttpMe...
170
3
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 41.04, "nodes": 93, "errors": 0, "source_hash": "3340dfb0a743b92959b944057e6a44581d9dd835fa84d6a8d2bcbcaae424fc2e", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
5,660
c
#ifndef VIEWEVENTFILTER_H #define VIEWEVENTFILTER_H #include <QObject> class ViewEventFilter : public QObject { Q_OBJECT public: explicit ViewEventFilter(QObject *parent = nullptr); protected: bool eventFilter(QObject *obj, QEvent *event) override; }; #endif /* VIEWEVENTFILTER_H */
23.58
12
(translation_unit) "#ifndef VIEWEVENTFILTER_H\n#define VIEWEVENTFILTER_H\n\n#include <QObject>\n\nclass ViewEventFilter : public QObject\n{\n Q_OBJECT\npublic:\n explicit ViewEventFilter(QObject *parent = nullptr);\n\nprotected:\n bool eventFilter(QObject *obj, QEvent *event) override;\n};\n\n#endif /* VIEWEVE...
71
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 23.58, "nodes": 47, "errors": 0, "source_hash": "a3499e084e9dc13ad725874441279458044d55d15f961a8d89c1ef583f2955ff", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,661
c
// This file was generated based on C:/Users/JuanJose/AppData/Local/Fusetools/Packages/Fuse.FileSystem/1.9.0/PathTools.uno. // WARNING: Changes might be lost if you edit this file directly. #pragma once #include <Uno.h> namespace g{namespace Fuse{namespace FileSystem{struct PathTools;}}} namespace g{ namespace Fuse{ ...
32.33
18
(translation_unit) "// This file was generated based on C:/Users/JuanJose/AppData/Local/Fusetools/Packages/Fuse.FileSystem/1.9.0/PathTools.uno.\n// WARNING: Changes might be lost if you edit this file directly.\n\n#pragma once\n#include <Uno.h>\nnamespace g{namespace Fuse{namespace FileSystem{struct PathTools;}}}\n\nna...
113
1
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 32.33, "nodes": 68, "errors": 0, "source_hash": "2fb1d1f28a706c07136ab509c061e3ca402a27e0811a9aa563d7174c04a029e1", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
5,662
c
/** * @file any_impl.h * @author <NAME> * * @brief TAOX11 CORBA Any implementation base class * * @copyright Copyright (c) Remedy IT Expertise BV */ #ifndef TAOX11_ANY_IMPL_H #define TAOX11_ANY_IMPL_H #pragma once #include /**/ "ace/config-all.h" #include "tao/x11/stddef.h" #include "tao/x11/object_fwd...
29.12
60
(translation_unit) "/**\n * @file any_impl.h\n * @author <NAME>\n *\n * @brief TAOX11 CORBA Any implementation base class\n *\n * @copyright Copyright (c) Remedy IT Expertise BV\n */\n\n#ifndef TAOX11_ANY_IMPL_H\n#define TAOX11_ANY_IMPL_H\n\n#pragma once\n\n#include /**/ "ace/config-all.h"\n\n#include "tao/x11/st...
356
24
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 29.12, "nodes": 209, "errors": 0, "source_hash": "a3c4d5afce1e6869389357e756d0e7efb2885be11b250ed0b7ce452682b191b6", "categorized_nodes": 149}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,663
c
// license [ // This file is part of the Phantom project. Copyright 2011-2020 <NAME>. // Distributed under the MIT license. Text available here at // https://github.com/vlmillet/phantom // ] #pragma once #include <type_traits> /// @cond ADVANCED namespace phantom { template<typename T, bool t_is_arithmetic> struct D...
41.79
78
(translation_unit) "// license [\n// This file is part of the Phantom project. Copyright 2011-2020 <NAME>.\n// Distributed under the MIT license. Text available here at\n// https://github.com/vlmillet/phantom\n// ]\n\n#pragma once\n\n#include <type_traits>\n\n/// @cond ADVANCED\nnamespace phantom\n{\ntemplate<typename ...
358
28
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 41.79, "nodes": 223, "errors": 0, "source_hash": "4e13ff6becb9dfc286a0ddcc9437f62044c2ce633f004b94c7465af0028f7ec0", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
5,664
c
/**************************** Filename: TicTacToeAI.c Name: <NAME> Date Last Edited: 9-13-2019 Brief Description: TicTacToe with AI for the second AP Project practice. gcc -Wall -Wextra -O -g -pedantic -o TicTacToeAI TicTacToeAI.c ****************************/ /*printf, scanf*/ #include <stdio.h> /*rand, srand*/ #inclu...
35.06
288
(translation_unit) "/****************************\nFilename: TicTacToeAI.c\nName: <NAME>\nDate Last Edited: 9-13-2019\nBrief Description: TicTacToe with AI for the second AP Project practice.\ngcc -Wall -Wextra -O -g -pedantic -o TicTacToeAI TicTacToeAI.c\n****************************/\n/*printf, scanf*/\n#include <std...
4,049
0
{"language": "c", "success": true, "metadata": {"lines": 288, "avg_line_length": 35.06, "nodes": 2583, "errors": 0, "source_hash": "0b3f1cc4a9f1b48262847e0a766f0ee30140243871048a9f036b89cdcf3b911a", "categorized_nodes": 1952}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
5,665
c
/*---------------------------------------------- Programmer: <NAME> (<EMAIL>) Date: 2015/06 ----------------------------------------------*/ #ifndef __FOLDERSINGLETON_H_ #define __FOLDERSINGLETON_H_ #include <string> #include <Windows.h> #include "RE\system\REDefinitions.h" //ReEng basic Definitions namespace ReEng ...
14.47
271
(translation_unit) "/*----------------------------------------------\nProgrammer: <NAME> (<EMAIL>)\nDate: 2015/06\n----------------------------------------------*/\n#ifndef __FOLDERSINGLETON_H_\n#define __FOLDERSINGLETON_H_\n\n#include <string>\n#include <Windows.h>\n\n#include "RE\system\REDefinitions.h" //ReEng basic...
574
4
{"language": "c", "success": true, "metadata": {"lines": 271, "avg_line_length": 14.47, "nodes": 352, "errors": 0, "source_hash": "70be1f0db298a9352a5d536b4c0f63cd09b1035c101e0bf04f8a809a533e8133", "categorized_nodes": 247}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
5,666
c
// vim:ts=4:sw=4:expandtab #include <sys/stat.h> #include <stdlib.h> #include <ifaddrs.h> #include "i3status.h" const char *first_eth_interface(const net_type_t type) { static char *interface = NULL; struct ifaddrs *ifaddr, *addrp; struct stat stbuf; static char path[1024]; getifaddrs(&ifaddr); ...
31.41
32
(translation_unit) "// vim:ts=4:sw=4:expandtab\n#include <sys/stat.h>\n#include <stdlib.h>\n#include <ifaddrs.h>\n\n#include "i3status.h"\n\nconst char *first_eth_interface(const net_type_t type) {\n static char *interface = NULL;\n struct ifaddrs *ifaddr, *addrp;\n struct stat stbuf;\n static char path[102...
287
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 31.41, "nodes": 176, "errors": 0, "source_hash": "b39a04dc238e308296ad50eff6cf0b48f4a62e043ab6cfe5a0fe457cd4eb8886", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,667
c
/* DigitalInputFirmata.h - Firmata library Copyright (C) 2006-2008 <NAME>. All rights reserved. Copyright (C) 2010-2011 <NAME>. All rights reserved. Copyright (C) 2009 <NAME>. All rights reserved. Copyright (C) 2013 <NAME>. All rights reserved. Copyright (C) 2009-2015 <NAME>. All rights reserved. Thi...
40.05
37
(translation_unit) "/*\n DigitalInputFirmata.h - Firmata library\n Copyright (C) 2006-2008 <NAME>. All rights reserved.\n Copyright (C) 2010-2011 <NAME>. All rights reserved.\n Copyright (C) 2009 <NAME>. All rights reserved.\n Copyright (C) 2013 <NAME>. All rights reserved.\n Copyright (C) 2009-2015 <NAME>. A...
186
1
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 40.05, "nodes": 120, "errors": 0, "source_hash": "65755140a46e550e92c0c944b67dbc3d8a4e4aabfab9c6453533b5a0e99fc998", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,668
c
const int route_grid_size_maximum = 151; const int route_grid_size[route_grid_size_maximum]= { /* 0,3,4,9,11,13,15,25,28,31,45, 49,53,71,76,81,86,109,115,121,148, 155,162,169,201,209,217,253,262,271,280, 321,331,341,386,397,408,457,469,481,493, 547,560,573,631,645,659,673,736,751,766, 833,849,865,936,953,970,987,...
32.26
27
(translation_unit) "const int route_grid_size_maximum = 151;\nconst int route_grid_size[route_grid_size_maximum]= \n{\n/* 0,3,4,9,11,13,15,25,28,31,45,\n 49,53,71,76,81,86,109,115,121,148,\n 155,162,169,201,209,217,253,262,271,280,\n 321,331,341,386,397,408,457,469,481,493,\n 547,560,573,631,645,659,673,736,751,766,\n ...
328
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 32.26, "nodes": 165, "errors": 0, "source_hash": "f08028f8cf147cb167633b4f66e83f4d2578b6f5e0478836640bc88385c0e3cc", "categorized_nodes": 157}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "const in...
5,669
c
#include <avr/io.h> #include "pcd8544/pcd8544.h" int main(void) { pcd8544_init(); pcd8544_set_pos(4, 0); pcd8544_puts("simplest"); pcd8544_set_pos(4, 1); pcd8544_puts("possible"); while (1); return (0); }
15.31
13
(translation_unit) "#include <avr/io.h>\n\n#include "pcd8544/pcd8544.h"\n\nint\nmain(void)\n{\n pcd8544_init();\n\n pcd8544_set_pos(4, 0);\n pcd8544_puts("simplest");\n\n pcd8544_set_pos(4, 1);\n pcd8544_puts("possible");\n\n while (1);\n\n return (0);\n}\n" (preproc_include) "#include <avr/io.h>\n" (#include) "#...
86
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 15.31, "nodes": 40, "errors": 0, "source_hash": "f6e96807b7d25b2933b082dfe0bb45a221f2eb4316d44ddff0d327081255e429", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,670
c
// Copyright (c) 2016 <NAME>. See License.txt regarding use. #pragma once #include <oGPU/gpu.h> #include "gpu_test_constants.h" namespace ouro { namespace tests { enum class pipeline_state { unknown, buffer_test, pos_untransformed, pos, lines_untransformed, pos_texcoords_as_color, pos_tex1d, pos_tex2d, ...
20.09
23
(translation_unit) "// Copyright (c) 2016 <NAME>. See License.txt regarding use.\n\n#pragma once\n#include <oGPU/gpu.h>\n#include "gpu_test_constants.h"\n\nnamespace ouro { namespace tests {\n\nenum class pipeline_state\n{\n unknown,\n \n buffer_test,\n\n pos_untransformed,\n pos,\n\n lines_untransformed,\n\n pos_texco...
103
4
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 20.09, "nodes": 58, "errors": 0, "source_hash": "919543beaaef45161db4a0d63c14dc97c305bdb7d8935d2ec04ffb1c30428a28", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
5,671
c
/* yuvtoppm.c - convert Abekas YUV bytes into a portable pixmap ** ** by <NAME> ** Internet: <EMAIL> ** ** Based on Example Conversion Program, A60/A64 Digital Video Interface ** Manual, page 69 ** ** Uses integer arithmetic rather than floating point for better performance ** ** Copyright (C) 1991 by DHD PostImage In...
29.28
81
(translation_unit) "/* yuvtoppm.c - convert Abekas YUV bytes into a portable pixmap\n**\n** by <NAME>\n** Internet: <EMAIL>\n** \n** Based on Example Conversion Program, A60/A64 Digital Video Interface\n** Manual, page 69\n**\n** Uses integer arithmetic rather than floating point for better performance\n**\n** Copyrigh...
709
0
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 29.28, "nodes": 457, "errors": 0, "source_hash": "c150c99306d9287b97c4be0790ceae4f0fa1617532f9c865f2f540f4ccb26a8f", "categorized_nodes": 331}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,672
c
#include "libs/nanojpeg.h" #include "libs/tinf.h" #include "gfx.h" #define FBSIZE 1280 * 720 * 4 static Framebuffer fb; static u32 stride, *framebuf, fbSize = FBSIZE; static u8 tmpbuf[FBSIZE], splash[FBSIZE], scream[FBSIZE]; void initGfx() { framebufferCreate(&fb, nwindowGetDefau...
28.08
93
(translation_unit) "#include "libs/nanojpeg.h"\n#include "libs/tinf.h"\n\n#include "gfx.h"\n\n#define FBSIZE 1280 * 720 * 4\n\nstatic Framebuffer fb;\n\nstatic u32 stride,\n *framebuf,\n fbSize = FBSIZE;\n\nstatic u8 tmpbuf[FBSIZE],\n splash[FBSIZE],\n scream[FBSIZE];\n\nvoid initGfx() {\n ...
863
0
{"language": "c", "success": true, "metadata": {"lines": 93, "avg_line_length": 28.08, "nodes": 509, "errors": 0, "source_hash": "db1f286206d247d09c9f2e18125702143751584b4470022410279fbf7a7ed937", "categorized_nodes": 369}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,673
c
// Copyright (c) 2013 The Sippet Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SIPPET_MESSAGE_STATUS_CODE_H_ #define SIPPET_MESSAGE_STATUS_CODE_H_ #include "net/base/net_export.h" namespace sippet { enum Statu...
33.31
32
(translation_unit) "// Copyright (c) 2013 The Sippet Authors. All rights reserved. \n// Use of this source code is governed by a BSD-style license that can be \n// found in the LICENSE file. \n \n#ifndef SIPPET_MESSAGE_STATUS_CODE_H_ \n#define SIPPET_MESSAGE_STATUS_CODE_H_ \n \n#include "net/base/net_export.h" \n \nnam...
70
3
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 33.31, "nodes": 37, "errors": 0, "source_hash": "2f400a162a3d6c4b828933922ff67c33666a1d5937cbb4307838e3dd46857852", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,674
c
/* * SimpleSelfMsgHandler.h * * Created on: Mar 20, 2017 * Author: xtikka */ #ifndef SELFMESSAGEHANDLERS_SIMPLESELFMSGHANDLER_SIMPLESELFMSGHANDLER_H_ #define SELFMESSAGEHANDLERS_SIMPLESELFMSGHANDLER_SIMPLESELFMSGHANDLER_H_ #include "../basicselfmsghandler/BasicSelfMsgHandler.h" #include "../../nodes/simple...
32.75
24
(translation_unit) "/*\n * SimpleSelfMsgHandler.h\n *\n * Created on: Mar 20, 2017\n * Author: xtikka\n */\n\n#ifndef SELFMESSAGEHANDLERS_SIMPLESELFMSGHANDLER_SIMPLESELFMSGHANDLER_H_\n#define SELFMESSAGEHANDLERS_SIMPLESELFMSGHANDLER_SIMPLESELFMSGHANDLER_H_\n\n#include "../basicselfmsghandler/BasicSelfMsgHandler.h...
117
3
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 32.75, "nodes": 73, "errors": 0, "source_hash": "1c95fd9c8923a70cf792d0b67cc5efa0afdbdb3693c31963fd17ab23edfee701", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,675
c
// // FLDocument.h // PackMule // // Created by <NAME> on 12/14/13. // Copyright (c) 2013 FishLamp. All rights reserved. // #import <Cocoa/Cocoa.h> @interface FLDocument : NSDocument @end
18.2
10
(translation_unit) "//\n// FLDocument.h\n// PackMule\n//\n// Created by <NAME> on 12/14/13.\n// Copyright (c) 2013 FishLamp. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n\n@interface FLDocument : NSDocument\n\n@end\n" (comment) "//" (comment) "// FLDocument.h" (comment) "// PackMule" (comment) "//...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 18.2, "nodes": 9, "errors": 0, "source_hash": "5dc83800d571a33c0205a8d393fec6947e05e5d297c59941becf986022a299dc", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Coc...
5,676
c
/* Needed for older glibcs (2.3 and older, at least) who don't otherwise "know" about pthread_rwlock_anything or about PTHREAD_MUTEX_RECURSIVE (amongst things). */ #define _GNU_SOURCE 1 #include <stdio.h> #include <pthread.h> #include <assert.h> #if defined(VGO_darwin) #define OS_IS_DARWIN 1 #else #define OS_I...
34.76
29
(translation_unit) "/* Needed for older glibcs (2.3 and older, at least) who don't\n otherwise "know" about pthread_rwlock_anything or about\n PTHREAD_MUTEX_RECURSIVE (amongst things). */\n#define _GNU_SOURCE 1\n\n#include <stdio.h>\n#include <pthread.h>\n#include <assert.h>\n\n#if defined(VGO_darwin)\n#define OS_I...
282
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 34.76, "nodes": 185, "errors": 0, "source_hash": "ea9548925eb2ae98680bcad41e2c0b3f14133884202514b1fd669e9fd73f96a0", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ...
5,677
c
/* rxBot - a modular IRC bot for Win32 Copyright (C) 2004 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later versi...
33.35
31
(translation_unit) "/*\n\n rxBot - a modular IRC bot for Win32\n Copyright (C) 2004\n\n This program is free software; you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation; either version 2 of the License, or\n (at ...
83
1
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 33.35, "nodes": 58, "errors": 0, "source_hash": "e5657e45beb7d9e440ad91fd0b1529b4dec0e0db19c3dab7ad35610c4f17b70b", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,678
c
/* Copyright (c) 2019 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * dis...
37.05
41
(translation_unit) "/* Copyright (c) 2019 <NAME>\n *\n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this software and associated documentation files (the\n * "Software"), to deal in the Software without restriction, including\n * without limitation the rights to use, copy, modif...
202
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 37.05, "nodes": 111, "errors": 0, "source_hash": "3b03f03fe6b0bef1ed70ac99494b7396ee0f8c9631a753d5e31cf14020d3a616", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
5,679
c
/* * Description: * Faster version of the standard <string.h> library * for ARM Cortex Microcontrollers. * * This library contain plenty of functions for everyday usage, * even if some functions is missing. * * Author: * <NAME> (@Bismuth208) * * Format: * 1 Tab == 2 spaces * UTF-8 * EOL - Unix * * L...
27.57
272
(translation_unit) "/*\n * Description:\n * Faster version of the standard <string.h> library\n * for ARM Cortex Microcontrollers.\n *\n * This library contain plenty of functions for everyday usage,\n * even if some functions is missing.\n *\n * Author: \n * <NAME> (@Bismuth208)\n *\n * Format:\n * 1 Tab == 2 spaces\...
1,542
8
{"language": "c", "success": true, "metadata": {"lines": 272, "avg_line_length": 27.57, "nodes": 971, "errors": 0, "source_hash": "41da475f2410d9ba0aca05fb7a242c4162d73f04dd2a7dc8015f4b0b3ccd54b8", "categorized_nodes": 553}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,680
c
#include <gtkmm.h> #include <iostream> #include <mutex> class GalleryGrid final : public Gtk::Box { public: GalleryGrid (int cellWidth, int cellHeight, int cellsPerRow, std::function<Gtk::Widget*(int)> loadFunction, std::function<void(int)> releaseFunction); virtual ~GalleryGrid () {}; const Glib::RefPtr<...
32.8
35
(translation_unit) "#include <gtkmm.h>\n#include <iostream>\n#include <mutex>\n\nclass GalleryGrid final : public Gtk::Box\n{\npublic:\n GalleryGrid (int cellWidth, int cellHeight, int cellsPerRow, std::function<Gtk::Widget*(int)> loadFunction, std::function<void(int)> releaseFunction);\n virtual ~GalleryGrid () ...
381
24
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 32.8, "nodes": 248, "errors": 0, "source_hash": "6239e09d949aebf1adf38266e06ec5eacefeab4ea530c17780aa33bc92d9a8ee", "categorized_nodes": 143}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
5,681
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "UIView.h" @class UIImage, UIImageView; @interface ssoAccountHeadView : UIView { UIImageView *_headView; UIImageView *_backgroundView; _Bool _withCircleLine; UII...
30.55
20
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "UIView.h"\n\n@class UIImage, UIImageView;\n\n@interface ssoAccountHeadView : UIView\n{\n UIImageView *_headView;\n UIImageView *_backgroundView;\n...
151
15
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 30.55, "nodes": 93, "errors": 0, "source_hash": "ab4b7059c96952fd4d3295e04596650b37f66ca1988a841942788da3576d83d4", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
5,682
c
// // Created by dragos on 20.04.2019. // #ifndef P4C_HANDLESTACKS_H #define P4C_HANDLESTACKS_H #include <common/resolveReferences/referenceMap.h> #include <p4/typeMap.h> namespace analysis { class StackRegistrar { public: P4::ReferenceMap *refMap; P4::TypeMap *typeMap; std::map<std::pair<const IR::Type *, un...
28.34
29
(translation_unit) "//\n// Created by dragos on 20.04.2019.\n//\n\n#ifndef P4C_HANDLESTACKS_H\n#define P4C_HANDLESTACKS_H\n\n#include <common/resolveReferences/referenceMap.h>\n#include <p4/typeMap.h>\n\n\nnamespace analysis {\nclass StackRegistrar {\npublic:\n P4::ReferenceMap *refMap;\n P4::TypeMap *typeMap;\n std...
275
19
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 28.34, "nodes": 161, "errors": 0, "source_hash": "bd40cc4c45b4e0e029301fb5d14e27734e84a6cf97c5a490b920f0f99854bcf5", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,683
c
/* * Renesas SCP/MCP Software * Copyright (c) 2020-2022, Renesas Electronics Corporation. All rights * reserved. * * SPDX-License-Identifier: BSD-3-Clause */ /* The use of "subordinate" may not be in sync with platform documentation */ #ifndef MOD_RCAR_MOCK_PMIC_BD9571_DRIVER_API_PRIVATE_H #define MOD_RCAR_MOCK...
35.97
30
(translation_unit) "/*\n * Renesas SCP/MCP Software\n * Copyright (c) 2020-2022, Renesas Electronics Corporation. All rights\n * reserved.\n *\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/* The use of "subordinate" may not be in sync with platform documentation */\n\n#ifndef MOD_RCAR_MOCK_PMIC_BD9571_DRIVER_API_P...
96
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 35.97, "nodes": 79, "errors": 0, "source_hash": "7a6cee0aca627126e705a2e1fc768f2a4014128565f5a1edcd6ed6992487d770", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,684
c
#ifndef VOLTMETER_H #define VOLTMETER_H #include <Arduino.h> #define VOLTAGE_OFFSET 100 class Voltmeter { private: int _pin; float R1 = 30000.0; float R2 = 7500.0; float _meanVoltage; int _numberIteration; public: Voltmeter(int pin); float getVoltage(); String getStringVoltage(); ...
17.7
20
(translation_unit) "#ifndef VOLTMETER_H\n#define VOLTMETER_H\n\n#include <Arduino.h>\n\n#define VOLTAGE_OFFSET 100\n\nclass Voltmeter\n{\nprivate:\n int _pin;\n float R1 = 30000.0;\n float R2 = 7500.0;\n\n float _meanVoltage;\n int _numberIteration;\n\npublic:\n Voltmeter(int pin);\n float getVolta...
98
1
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 17.7, "nodes": 67, "errors": 0, "source_hash": "83c1ed160254f18f7f157a26290a3b29880b5cbc10bdea4e938c861cb101a28f", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef V...
5,685
c
#include QMK_KEYBOARD_H #include "smart_case.h" // Custom oneshot mods timer static oneshot_mods_timer_t oneshot_mods_timer = {.timer = 0}; void clear_expired_oneshot_mods(void) { uint8_t oneshot_locked_mods = get_oneshot_locked_mods(); uint8_t oneshot_mods = get_oneshot_mods(); if (!(oneshot_loc...
32.79
267
(translation_unit) "#include QMK_KEYBOARD_H\n\n#include "smart_case.h"\n\n// Custom oneshot mods timer\n\nstatic oneshot_mods_timer_t oneshot_mods_timer = {.timer = 0};\n\nvoid clear_expired_oneshot_mods(void) {\n uint8_t oneshot_locked_mods = get_oneshot_locked_mods();\n uint8_t oneshot_mods = get_oneshot...
1,963
5
{"language": "c", "success": true, "metadata": {"lines": 267, "avg_line_length": 32.79, "nodes": 1073, "errors": 0, "source_hash": "d50d731c94b5437421bca872d4a95195514203be8318daefbcd7fe82653bcda6", "categorized_nodes": 818}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
5,686
c
#pragma once #include "FNX_GUIBaseElement.h" #include "FNX_GUIListBox.h" #include "FNX_Sprite.h" class FNX_GUIComboBox : public FNX_GUIBaseElement { protected: FNX_SpriteManager* SpriteManager; FNX_Sprite* UpBelt,*Button; FNX_GUIListBox* ListBox; FNX_Logger* Logger; FNX_Font* Font; int ChoosenLine; boo...
32.53
34
(translation_unit) "#pragma once\n#include "FNX_GUIBaseElement.h"\n#include "FNX_GUIListBox.h"\n#include "FNX_Sprite.h"\n\n\nclass FNX_GUIComboBox : public FNX_GUIBaseElement\n{\nprotected:\n FNX_SpriteManager* SpriteManager;\n FNX_Sprite* UpBelt,*Button;\n FNX_GUIListBox* ListBox;\n FNX_Logger* Logger;\n FNX_Font...
416
8
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 32.53, "nodes": 231, "errors": 0, "source_hash": "f7e9b1b85dd748d5617730c0dccbf41cfdeec9aecfefdbed41f0ed597d382bb0", "categorized_nodes": 153}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
5,687
c
#pragma once #include "Holodeck.h" FVector GetActorSocketLocation(AActor* actor, FString socket_name); bool IsInSight(AActor* seeing_actor, AActor* target_actor, FVector& start, FVector& end, float FOVRad, FVector& DistanceVec, float Distance);
60.25
4
(translation_unit) "#pragma once\n\n#include "Holodeck.h"\n\nFVector GetActorSocketLocation(AActor* actor, FString socket_name);\n\nbool IsInSight(AActor* seeing_actor, AActor* target_actor, FVector& start, FVector& end, float FOVRad, FVector& DistanceVec, float Distance);\n" (preproc_call) "#pragma once\n" (prep...
72
3
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 60.25, "nodes": 48, "errors": 0, "source_hash": "815f4739e0d245f2a0d3255b4e3661c3fc64c8168c7bd9ed7cad23f5e8319135", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
5,688
c
/**************************************************************************** * net/arp/arp_out.c * * Copyright (C) 2007-2011, 2014-2015, 2017-2018 <NAME>. All rights * reserved. * Author: <NAME> <<EMAIL>> * * Based on uIP which also has a BSD style license: * * Author: <NAME> <<EMAIL>> * Copyrigh...
38.64
240
(translation_unit) "/****************************************************************************\n * net/arp/arp_out.c\n *\n * Copyright (C) 2007-2011, 2014-2015, 2017-2018 <NAME>. All rights\n * reserved.\n * Author: <NAME> <<EMAIL>>\n *\n * Based on uIP which also has a BSD style license:\n *\n * Author: <...
743
3
{"language": "c", "success": true, "metadata": {"lines": 240, "avg_line_length": 38.64, "nodes": 438, "errors": 0, "source_hash": "af1950d0a27983f018bacc4fa989d09aedc905bfa6975e7e8f58bb88670c41f1", "categorized_nodes": 335}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,689
c
#include <stdio.h> #include <pthread.h> #include <stdlib.h> /*Funcion que determina si un numero es par*/ void *es_par(void *n){ long num = *((long*)n); if(num%2==0){ return (void*)1; } return (void*)0; } /* Programa principal */ int main(int argc, char *argv[]){ int *s; if(argc>...
21.17
24
(translation_unit) "#include <stdio.h>\n#include <pthread.h>\n#include <stdlib.h>\n\n\n/*Funcion que determina si un numero es par*/\n\nvoid *es_par(void *n){\n long num = *((long*)n);\n if(num%2==0){\n return (void*)1;\n }\n return (void*)0;\n}\n\n/* Programa principal */\n\nint main(int argc, ch...
214
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 21.17, "nodes": 136, "errors": 0, "source_hash": "2a576add51f5437a85cd20e03c2452cd1597021db158e0773068f3551865c01a", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
5,690
c
#ifndef MULTIMAP_H #define MULTIMAP_H //! \struct hashmap //! \brief ADT structure to encapsulate a hashmap instance. //! struct multimap; //! \struct multimap_value_iterator //! \brief Iterator over different values belonging to the same key. //! struct multimap_value_iterator; //! \brief Create a new, empty hashma...
36.61
114
(translation_unit) "#ifndef MULTIMAP_H\n#define MULTIMAP_H\n\n//! \struct hashmap\n//! \brief ADT structure to encapsulate a hashmap instance.\n//!\nstruct multimap;\n\n//! \struct multimap_value_iterator\n//! \brief Iterator over different values belonging to the same key.\n//!\nstruct multimap_value_iterator;\n\n//! ...
409
0
{"language": "c", "success": true, "metadata": {"lines": 114, "avg_line_length": 36.61, "nodes": 241, "errors": 0, "source_hash": "5e77e7b2065fd7962e452e5bd1a6b8323652f1658114b16e6c4b60a38dd02aa9", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
5,691
c
#ifndef __ARM_SETUP_H_ #define __ARM_SETUP_H_ #include <public/version.h> void copy_from_paddr(void *dst, paddr_t paddr, unsigned long len, int attrindx); void arch_get_xen_caps(xen_capabilities_info_t *info); int construct_dom0(struct domain *d); void init_IRQ(void); #endif /* * Local variables: * mode: C * c...
23.38
16
(translation_unit) "#ifndef __ARM_SETUP_H_\n#define __ARM_SETUP_H_\n\n#include <public/version.h>\n\nvoid copy_from_paddr(void *dst, paddr_t paddr, unsigned long len, int attrindx);\n\nvoid arch_get_xen_caps(xen_capabilities_info_t *info);\n\nint construct_dom0(struct domain *d);\n\nvoid init_IRQ(void);\n\n#endif\n/*\n...
77
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 23.38, "nodes": 60, "errors": 0, "source_hash": "fdc41545720b7f0ffd9b6eaa9b344e7ef74cb6b511074bc115159501a7cd5a8d", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,692
c
#include <stdio.h> int main() { char seller_name[256]; double final_salary, fixed_salary, sale_total; scanf("%s %lf %lf", &seller_name, &fixed_salary, &sale_total); final_salary = fixed_salary + (sale_total * 0.15); printf("TOTAL = R$ %.2lf\n", final_salary); return 0; }
31.89
9
(translation_unit) "#include <stdio.h>\n\nint main() {\n char seller_name[256];\n double final_salary, fixed_salary, sale_total;\n\n scanf("%s %lf %lf", &seller_name, &fixed_salary, &sale_total);\n final_salary = fixed_salary + (sale_total * 0.15);\n printf("TOTAL = R$ %.2lf\n", final_salary);\n\n ret...
86
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 31.89, "nodes": 47, "errors": 0, "source_hash": "2549e0c9c413c51fdf88e18d1f046d4b7141bb013997bffc6004336859253f0a", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
5,693
c
/* * Copyright (C) 2015-2018 Alibaba Group Holding Limited */ #include <errno.h> #include "aos/kv.h" #include "ls_hal.h" static int _kv_to_hal_res(int err) { int ret; switch (err) { case 0: ret = SST_HAL_SUCCESS; break; case -ENOENT: ret = SST_HAL_ERROR_I...
21.98
59
(translation_unit) "/*\n * Copyright (C) 2015-2018 Alibaba Group Holding Limited\n */\n\n#include <errno.h>\n#include "aos/kv.h"\n#include "ls_hal.h"\n\nstatic int _kv_to_hal_res(int err)\n{\n int ret;\n\n switch (err) {\n case 0:\n ret = SST_HAL_SUCCESS;\n break;\n case -ENOEN...
358
0
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 21.98, "nodes": 226, "errors": 0, "source_hash": "da490fb8f268fd3311e934a92f4e458bf3eb208e2b75476736cd4ecead35e120", "categorized_nodes": 144}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,694
c
/* * ShadersManager.h * * Created on: 08.11.2012 * Author: <NAME> */ #ifndef SHADERSMANAGER_H_ #define SHADERSMANAGER_H_ #include <stdlib.h> #include <GLES2/gl2.h> #include <GLES2/gl2ext.h> #include "log.h" class ShadersManager { public: static GLuint compileShader(GLenum shaderType, const char* pSourc...
23.39
18
(translation_unit) "/*\n * ShadersManager.h\n *\n * Created on: 08.11.2012\n * Author: <NAME>\n */\n\n#ifndef SHADERSMANAGER_H_\n#define SHADERSMANAGER_H_\n\n#include <stdlib.h>\n\n#include <GLES2/gl2.h>\n#include <GLES2/gl2ext.h>\n\n#include "log.h"\n\nclass ShadersManager {\npublic:\n static GLuint compileShade...
82
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 23.39, "nodes": 50, "errors": 0, "source_hash": "ff5cec196420ba55dc5861950e12f524aef7052c9382c2cbe96194e656e342f8", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,695
c
///////////////////////////////////////////////////////////////////// // = NMatrix // // A linear algebra library for scientific computation in Ruby. // NMatrix is part of SciRuby. // // NMatrix was originally inspired by and derived from NArray, by // <NAME>: http://narray.rubyforge.org // // == Copyright Information ...
33.59
138
(ERROR) "/////////////////////////////////////////////////////////////////////\n// = NMatrix\n//\n// A linear algebra library for scientific computation in Ruby.\n// NMatrix is part of SciRuby.\n//\n// NMatrix was originally inspired by and derived from NArray, by\n// <NAME>: http://narray.rubyforge.org\n//\n// == Copy...
1,205
53
{"language": "c", "success": true, "metadata": {"lines": 138, "avg_line_length": 33.59, "nodes": 705, "errors": 0, "source_hash": "1361cbf8e78d5c2d137ed0bad9d022bfdfffdea01fb8994dbf7c838dc70b0467", "categorized_nodes": 504}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "////////////////////////...
5,696
c
#ifndef _ZQ_FACE_GROUP_H_ #define _ZQ_FACE_GROUP_H_ #pragma once #include "ZQ_FaceFeature.h" #include "ZQ_CNN_BBox.h" #include <vector> #include <stdio.h> namespace ZQ { class ZQ_FaceGroup { public: virtual bool HasBox()const = 0; int GetFeatDim() const { return feat_dim; } const std::vector<ZQ_FaceFeature>& G...
19.94
155
(translation_unit) "#ifndef _ZQ_FACE_GROUP_H_\n#define _ZQ_FACE_GROUP_H_\n#pragma once\n#include "ZQ_FaceFeature.h"\n#include "ZQ_CNN_BBox.h"\n#include <vector>\n#include <stdio.h>\nnamespace ZQ\n{\n class ZQ_FaceGroup\n {\n public:\n virtual bool HasBox()const = 0;\n int GetFeatDim() const { return feat_dim; }\n co...
1,214
14
{"language": "c", "success": true, "metadata": {"lines": 155, "avg_line_length": 19.94, "nodes": 684, "errors": 0, "source_hash": "df42988f8f0de055ab25d7ab35008ecccf388e6375035d2d9abc512dd29baca1", "categorized_nodes": 473}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
5,697
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "MMObject.h" @class NSArray; @interface EmoticonServerNotifyTask : MMObject { unsigned long long _opcode; unsigned long long _type; NSArray *_md5ObjectArray; id ...
40.08
24
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "MMObject.h"\n\n@class NSArray;\n\n@interface EmoticonServerNotifyTask : MMObject\n{\n unsigned long long _opcode;\n unsigned long long _type;\n ...
217
21
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 40.08, "nodes": 141, "errors": 0, "source_hash": "8990f24406ac4779df7e78011dee576f4df48e6a6a38dc5d7fe4a103726cd274", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
5,698
c
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
36.9
216
(translation_unit) "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * ...
616
44
{"language": "c", "success": true, "metadata": {"lines": 216, "avg_line_length": 36.9, "nodes": 360, "errors": 0, "source_hash": "1300b478c9e528cc0b17cd28fc32ab117840f5e2234aacf8b972f4b594968d52", "categorized_nodes": 251}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,699