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
#pragma once #import <UIKit/UIKit.h> #include "ICallback.h" @interface NavRoutingRerouteDialog : UIView @property(nonatomic, copy) IBOutlet NSString* message; - (void) InsertRerouteDialogClosedCallback:(Eegeo::Helpers::ICallback1<const bool>*) rerouteDialogClosedCallback; - (void) RemoveRerouteDialogClosedCallback...
48
8
(translation_unit) "#pragma once\n\n#import <UIKit/UIKit.h>\n\n#include "ICallback.h"\n\n@interface NavRoutingRerouteDialog : UIView\n\n@property(nonatomic, copy) IBOutlet NSString* message;\n\n- (void) InsertRerouteDialogClosedCallback:(Eegeo::Helpers::ICallback1<const bool>*) rerouteDialogClosedCallback;\n- (void) Re...
113
16
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 48.0, "nodes": 71, "errors": 0, "source_hash": "a3949072126f2a5ff7db94cf6b03427a64ce7353bedf55c4f05a862552fb5a4c", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
6,400
c
// // Created by <NAME> on 15/02/2019. // #ifndef VGRAM_INTERFACES_STRING_STREAM_VGRAM_H #define VGRAM_INTERFACES_STRING_STREAM_VGRAM_H #include "../tokenizers/char_tokenizer.h" #include "../tokenizers/word_tokenizer.h" #include "../word_splitter/word_splitter.h" #include "int_stream_vgram.h" using json = nlohmann::...
39.2
35
(translation_unit) "//\n// Created by <NAME> on 15/02/2019.\n//\n\n#ifndef VGRAM_INTERFACES_STRING_STREAM_VGRAM_H\n#define VGRAM_INTERFACES_STRING_STREAM_VGRAM_H\n\n#include "../tokenizers/char_tokenizer.h"\n#include "../tokenizers/word_tokenizer.h"\n#include "../word_splitter/word_splitter.h"\n#include "int_stream_vgr...
314
21
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 39.2, "nodes": 193, "errors": 0, "source_hash": "383a4e58b5a8610eac7b7c504560f56e730b1d692c3ab72ef31dba21cd03ff9b", "categorized_nodes": 123}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,401
c
#include <string.h> #include <stdbool.h> #include <stdlib.h> #include <ctype.h> #ifdef __cplusplus extern "C" { #endif char * base64_encode(char const*, size_t len); char * base64_decode(const char *, size_t len); #ifdef __cplusplus } #endif
19.17
12
(translation_unit) "#include <string.h>\n#include <stdbool.h>\n#include <stdlib.h>\n#include <ctype.h>\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\nchar * base64_encode(char const*, size_t len);\nchar * base64_decode(const char *, size_t len);\n\n#ifdef __cplusplus\n}\n#endif\n" (preproc_include) "#include <string....
72
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 19.17, "nodes": 53, "errors": 0, "source_hash": "eb1feeceaf38f147bc0f86eabdddcead73a5b098754e6cdedb544aab50cca584", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
6,402
c
#ifndef WELD_UTILS_H #define WELD_UTILS_H #include "weld.h" #include "dsm.grpc.pb.h" extern "C" { #include "smalloc/smalloc.h" } #include <string> #include <utility> #include <vector> typedef struct perf_times { double compile; double request_driver; double request_peer; double compute; } perf_times; ty...
29.28
109
(translation_unit) "#ifndef WELD_UTILS_H\n#define WELD_UTILS_H\n\n#include "weld.h"\n\n#include "dsm.grpc.pb.h"\n\nextern "C" {\n #include "smalloc/smalloc.h"\n}\n\n#include <string>\n#include <utility>\n#include <vector>\n\ntypedef struct perf_times {\n double compile;\n double request_driver;\n double request_pee...
696
9
{"language": "c", "success": true, "metadata": {"lines": 109, "avg_line_length": 29.28, "nodes": 468, "errors": 0, "source_hash": "ff3cfa7aa4e469bd9e743054fe3d48958e70ff279de735e571cc75ec47b0d3e6", "categorized_nodes": 299}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
6,403
c
#include <stdio.h> #include <freertos/FreeRTOS.h> #include <freertos/task.h> #include <esp_system.h> #include <tsl2591.h> #include <string.h> #if defined(CONFIG_IDF_TARGET_ESP8266) #define SDA_GPIO 4 #define SCL_GPIO 5 #else #define SDA_GPIO 18 #define SCL_GPIO 19 #endif #if defined(CONFIG_IDF_TARGET_ESP32S2) #define...
25.55
38
(translation_unit) "#include <stdio.h>\n#include <freertos/FreeRTOS.h>\n#include <freertos/task.h>\n#include <esp_system.h>\n#include <tsl2591.h>\n#include <string.h>\n\n#if defined(CONFIG_IDF_TARGET_ESP8266)\n#define SDA_GPIO 4\n#define SCL_GPIO 5\n#else\n#define SDA_GPIO 18\n#define SCL_GPIO 19\n#endif\n\n#if defined...
267
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 25.55, "nodes": 166, "errors": 0, "source_hash": "0db7fb0b9da6e70a2d4ce81aa4b526cdb33807fd73dcd9ec222498d8f23534ff", "categorized_nodes": 112}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,404
c
/* fort/04/03/02/02/p10.f -- translated by f2c (version of 22 July 1992 22:54:52). You must link the resulting object file with the libraries: -lF77 -lI77 -lm -lc (in that order) */ #include "f2c.h" /* Common Block Declarations */ struct { integer ctlhnd, errsig, errfil, ierrct, unerr, testct, iflerr, pas...
33.5
339
(translation_unit) "/* fort/04/03/02/02/p10.f -- translated by f2c (version of 22 July 1992 22:54:52).\n You must link the resulting object file with the libraries:\n -lF77 -lI77 -lm -lc (in that order)\n*/\n\n#include "f2c.h"\n\n/* Common Block Declarations */\n\nstruct {\n integer ctlhnd, errsig, errfil, ierr...
3,258
3
{"language": "c", "success": true, "metadata": {"lines": 339, "avg_line_length": 33.5, "nodes": 1996, "errors": 0, "source_hash": "0e7fbb96e208009ef09d6b429435ddcbe837f2b760b746c43342706443fb47f3", "categorized_nodes": 1397}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
6,405
c
#include <X11/Xft/Xft.h> #include <hb.h> #include <hb-ft.h> void hbunloadfonts(); void hbtransform(XftGlyphFontSpec *, const Glyph *, int, int, int);
29
5
(translation_unit) "#include <X11/Xft/Xft.h>\n#include <hb.h>\n#include <hb-ft.h>\n\nvoid hbunloadfonts();\nvoid hbtransform(XftGlyphFontSpec *, const Glyph *, int, int, int);\n" (preproc_include) "#include <X11/Xft/Xft.h>\n" (#include) "#include" (system_lib_string) "<X11/Xft/Xft.h>" (preproc_include) "#in...
46
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 29.0, "nodes": 33, "errors": 0, "source_hash": "f6b0468671bbfaf7ca0199d6e71dbe30f7ad1968e2fa977dd879f8ea280470b1", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
6,406
c
#include <smack.h> // @expect verified int foo(int x) { int y = __VERIFIER_nondet_int(); __SMACK_top_decl("function FOO(x: int): int;"); __SMACK_code("@ := FOO(@);", y, x); return y; } int main(void) { int x = foo(42); int y = foo(42); assert(x == y); return 0; }
19
14
(translation_unit) "#include <smack.h>\n\n// @expect verified\n\nint foo(int x) {\n int y = __VERIFIER_nondet_int();\n __SMACK_top_decl("function FOO(x: int): int;");\n __SMACK_code("@ := FOO(@);", y, x);\n return y;\n}\n\nint main(void) {\n int x = foo(42);\n int y = foo(42);\n assert(x == y);\n\n return 0;\n}...
110
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 19.0, "nodes": 65, "errors": 0, "source_hash": "d86c7190f7d235f4ce38fb93fdf4b3d336401b050b58e06b06ec4397fb705a8a", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
6,407
c
#include <stdlib.h> char * initstate(unsigned seed, char * state, size_t size) { return state; } /* XOPEN(400) */
13.38
8
(translation_unit) "#include <stdlib.h>\n\nchar * initstate(unsigned seed, char * state, size_t size)\n{\n return state;\n}\n\n/*\nXOPEN(400)\n*/\n" (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (function_definition) "char * initstate(unsigned seed, char * ...
35
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 13.38, "nodes": 24, "errors": 0, "source_hash": "4d6338cea90ad2a3671bf37fa8f6009327a26701cbcaf38d408751f0d7e0eeb5", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
6,408
c
// // JumperHealthController.h // BulletTime // // Created by <NAME> on 1/3/11. // Copyright 2011 fullscreen.nl. All rights reserved. // #import <Foundation/Foundation.h> #import "EndbossHealthController.h" @interface JumperHealthController : EndbossHealthController { } @end
20.69
13
(translation_unit) "//\n// JumperHealthController.h\n// BulletTime\n//\n// Created by <NAME> on 1/3/11.\n// Copyright 2011 fullscreen.nl. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "EndbossHealthController.h"\n\n@interface JumperHealthController : EndbossHealthController {\n \n}\n\n@end\...
30
5
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 20.69, "nodes": 15, "errors": 0, "source_hash": "9831d45d7e94fdc3bb198b9672085b0f3ade5c8c762e1f8de123a804e9156de7", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
6,409
c
#pragma once #include "SrtpClient.h" namespace transport { class SslDtls; class SrtpClientFactory { public: explicit SrtpClientFactory(SslDtls& sslDtls); std::unique_ptr<SrtpClient> create(SrtpClient::IEvents* eventListener = nullptr); private: SslDtls& _sslDtls; }; } // namespace transport
20.71
14
(translation_unit) "#pragma once\n\n#include "SrtpClient.h"\n\nnamespace transport\n{\nclass SslDtls;\n\nclass SrtpClientFactory\n{\npublic:\n explicit SrtpClientFactory(SslDtls& sslDtls);\n\n std::unique_ptr<SrtpClient> create(SrtpClient::IEvents* eventListener = nullptr);\n\nprivate:\n SslDtls& _sslDtls;\n};...
84
3
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 20.71, "nodes": 47, "errors": 0, "source_hash": "c2867984017cce217a9642666297e1b668acc50c364f06eff45f2b4bd4c14152", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
6,410
c
#include <stdio.h> #include <stdlib.h> struct lnode{ /* * Each node of a linked list will contain the value and the address of the next node */ int val; struct lnode *next; }; typedef struct lnode lnode; lnode *newNode(int val){ //A helper function to allocate memory whenever needed //Returns the pointer to...
21.89
113
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\nstruct lnode{\n /*\n * Each node of a linked list will contain the value and the address of the next node\n */\n int val;\n struct lnode *next;\n};\n\ntypedef struct lnode lnode;\n\nlnode *newNode(int val){\n //A helper function to allocate memory wheneve...
781
0
{"language": "c", "success": true, "metadata": {"lines": 113, "avg_line_length": 21.89, "nodes": 470, "errors": 0, "source_hash": "c27cf91a42a417aeef59370025e01900a5d34cbabb3867101a9d36a93cbece49", "categorized_nodes": 314}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,411
c
// Author(s): <NAME> // Copyright: see the accompanying file COPYING or copy at // https://github.com/mCRL2org/mCRL2/blob/master/COPYING // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // /// \file mcrl2/pbes/...
27.05
104
(translation_unit) "// Author(s): <NAME>\n// Copyright: see the accompanying file COPYING or copy at\n// https://github.com/mCRL2org/mCRL2/blob/master/COPYING\n//\n// Distributed under the Boost Software License, Version 1.0.\n// (See accompanying file LICENSE_1_0.txt or copy at\n// http://www.boost.org/LICENSE_1_0.txt...
871
45
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 27.05, "nodes": 478, "errors": 0, "source_hash": "b0ae3268976460af5de3786984ffd4195b0a2ac2625615a66c999dbb991e3260", "categorized_nodes": 346}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
6,412
c
// Copyright (C) 2004-2011 <NAME> & <NAME> // This file is part of the "Luxinia Engine". // For conditions of distribution and use, see luxinia.h // autogenerated version info // #define VERXSTR(s) VERSTR(s) #define VERSTR(s) #s #define LUX_VERSION_MAJOR 1 #define LUX_VERSION_MINOR 500 #define LUX_VERSION_REV 0 #...
32.82
22
(translation_unit) "// Copyright (C) 2004-2011 <NAME> & <NAME>\n// This file is part of the "Luxinia Engine".\n// For conditions of distribution and use, see luxinia.h\n\n\n// autogenerated version info\n//\n#define VERXSTR(s) VERSTR(s)\n#define VERSTR(s) #s\n\n\n#define LUX_VERSION_MAJOR 1\n#define LUX_VERSION_MINOR 5...
77
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 32.82, "nodes": 63, "errors": 0, "source_hash": "edd2075b90dfac57ebe1dad5b08d9a9b0825baae14f6030687f99ac6f8831c0c", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_function_def", "text": "#...
6,413
c
#ifndef GAME_H_ #define GAME_H_ #include "game.c" #include <stdint.h> #include "../config.h" void movePlayer(int direction); bool surrounds(int pos[], int checkPos[]); bool checkBoundary(int pos[]); int getTile(int pos[]); void setTile(int pos[], int n); void openTile(int pos[]); void flagTile(int pos[]); int surroun...
28.23
22
(translation_unit) "#ifndef GAME_H_\n#define GAME_H_\n\n#include "game.c"\n#include <stdint.h>\n#include "../config.h"\n\nvoid movePlayer(int direction);\nbool surrounds(int pos[], int checkPos[]);\nbool checkBoundary(int pos[]);\nint getTile(int pos[]);\nvoid setTile(int pos[], int n);\nvoid openTile(int pos[]);\nvoid...
236
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 28.23, "nodes": 157, "errors": 0, "source_hash": "171bd7d2ef00f8aee355269ab74ec90ea6b904626666750bea96550a053a8ba5", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,414
c
#include <stdio.h> #include <unistd.h> #include <stdlib.h> int main( int argc, char *argv[] ) { printf( "main\n" ); exit(EXIT_SUCCESS); }
14.78
9
(translation_unit) "#include <stdio.h>\n#include <unistd.h>\n#include <stdlib.h>\n\nint\nmain( int argc, char *argv[] )\n{\n printf( "main\n" );\n exit(EXIT_SUCCESS);\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <unistd.h>...
52
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 14.78, "nodes": 32, "errors": 0, "source_hash": "e95de382287dda16f96b946d05f86305cc337b79d5a30a8459031fdce1985292", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
6,415
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...
28.06
119
(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 *...
806
0
{"language": "c", "success": true, "metadata": {"lines": 119, "avg_line_length": 28.06, "nodes": 422, "errors": 0, "source_hash": "3646a2adb90a001bf961c39169dbf12a78f62497366e90e39f67035359a5ef28", "categorized_nodes": 303}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,416
c
/* * Copyright (C) BicDroid Inc. 2018-2019. All Rights Reserved. * Description: Declaration of hashmap data structure and * insert/retrieve/delete/purge functions * Author: <NAME>, <<EMAIL>> * <NAME>, <<EMAIL>> * Create: 2018-03 */ #ifndef _HWAA_AMAP_H #define _HWAA_AMAP_H #include <linux/t...
31.02
55
(translation_unit) "/*\n * Copyright (C) BicDroid Inc. 2018-2019. All Rights Reserved.\n * Description: Declaration of hashmap data structure and\n * insert/retrieve/delete/purge functions\n * Author: <NAME>, <<EMAIL>>\n * <NAME>, <<EMAIL>>\n * Create: 2018-03\n */\n#ifndef _HWAA_AMAP_H\n#define _H...
179
0
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 31.02, "nodes": 139, "errors": 0, "source_hash": "ee2df4addc4c3864ad8efed48f971b5fe8b13617e5c8ff7f8a0f0ea1df368a95", "categorized_nodes": 96}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,417
c
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <optional> #include <string> #include <re2/re2.h> namespace marianatrench { /** * If the regular express...
27.04
25
(translation_unit) "/*\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n#pragma once\n\n#include <optional>\n#include <string>\n\n#include <re2/re2.h>\n\nnamespace marianatrenc...
52
2
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 27.04, "nodes": 33, "errors": 0, "source_hash": "a006e71554d1061c9cfcb0b22fb780d7249e8c51e826a37fae9264377a25a197", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
6,418
c
/* * Copyright 2003, 2004, 2005, 2006 PathScale, Inc. All Rights Reserved. */ /* Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the ...
34.87
141
(translation_unit) "/*\n * Copyright 2003, 2004, 2005, 2006 PathScale, Inc. All Rights Reserved.\n */\n\n/*\n\n Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved.\n\n This program is free software; you can redistribute it and/or modify it\n under the terms of version 2 of the GNU General Public L...
672
17
{"language": "c", "success": true, "metadata": {"lines": 141, "avg_line_length": 34.87, "nodes": 385, "errors": 0, "source_hash": "d559031425e0136b1dde3820b80d00e4df88dbacea1b4e9c0f2c2502821ad819", "categorized_nodes": 328}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
6,419
c
#include <stdint.h> typedef struct s { uint32_t a; uint32_t b; } s_t; typedef struct t { uint32_t x; s_t n; uint32_t z; } t_t; uint32_t f(t_t *p) { return (p->n).b; }
13.69
13
(translation_unit) "#include <stdint.h>\n\ntypedef struct s {\n uint32_t a;\n uint32_t b;\n} s_t;\n\ntypedef struct t {\n uint32_t x;\n s_t n;\n uint32_t z;\n} t_t;\n\nuint32_t f(t_t *p) {\n return (p->n).b;\n}\n" (preproc_include) "#include <stdint.h>\n" (#include) "#include" (system_lib_st...
72
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 13.69, "nodes": 47, "errors": 0, "source_hash": "068886c550df0fd51bae005c34de79e7933595a5a446848424ef8a937e5c926c", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
6,420
c
// // EditTrainVC.h // cepin // // Created by dujincai on 15/6/23. // Copyright (c) 2015年 talebase. All rights reserved. // #import "BaseTableViewController.h" #import "ResumeNameModel.h" @interface EditTrainVC : BaseTableViewController - (instancetype)initWithModel:(TrainingDataModel*)model; @end
24.25
12
(translation_unit) "//\n// EditTrainVC.h\n// cepin\n//\n// Created by dujincai on 15/6/23.\n// Copyright (c) 2015年 talebase. All rights reserved.\n//\n\n#import "BaseTableViewController.h"\n#import "ResumeNameModel.h"\n@interface EditTrainVC : BaseTableViewController\n- (instancetype)initWithModel:(TrainingDataMode...
41
7
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 24.25, "nodes": 24, "errors": 0, "source_hash": "649827c5980610895b8ec17e48cd02213a658e9e7ee9022492b367f005c9b682", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport \"B...
6,421
c
#include "nodes/nodes.h" int main(int argc, char** argv) { unsigned int height; char *dataFileName, *searchPattern, skewFlag, heightS[MAX_STRING_INT_SIZE], skewFlagS[2]; handleFlags(argc, argv, &height, &dataFileName, &searchPattern, &skewFlag); sprintf(heightS, "%u", height); sprintf(skewFlagS, ...
39.33
12
(translation_unit) "#include "nodes/nodes.h"\n\nint main(int argc, char** argv) {\n unsigned int height;\n char *dataFileName, *searchPattern, skewFlag, heightS[MAX_STRING_INT_SIZE], skewFlagS[2];\n\n handleFlags(argc, argv, &height, &dataFileName, &searchPattern, &skewFlag);\n\n sprintf(heightS, "%u", heig...
161
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 39.33, "nodes": 88, "errors": 0, "source_hash": "27574313d0cfa6ec6706445303a919913271cdad7aad4bed75f33f8f9ff6025c", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
6,422
c
#ifndef _MyServo_H #define _MyServo_H #include <Arduino.h> #include <Adafruit_PWMServoDriver.h> class MyServo { public: MyServo(); MyServo(int Index); MyServo(int Index, int Position, Adafruit_PWMServoDriver *Driver); //int myIndex; int myPosition; int myOldPosit...
25.71
21
(translation_unit) "#ifndef _MyServo_H\n#define _MyServo_H\n\n#include <Arduino.h>\n\n#include <Adafruit_PWMServoDriver.h>\n\nclass MyServo {\n public:\n MyServo();\n MyServo(int Index);\n MyServo(int Index, int Position, Adafruit_PWMServoDriver *Driver);\n\n //int myIndex;\n int ...
112
4
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 25.71, "nodes": 74, "errors": 0, "source_hash": "4021e1e5e3098c22940ac632404c90fe7b8b671372ecbcb8188c7fe3cc6a8c47", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,423
c
// Copyright 2018 yoshitake. All rights reserved. // Use of this source code is governed by a MIT // license that can be found in the LICENSE file. #pragma once #include <iostream> #include "IOStream.h" class FakeSerial : public IOStream { public: FakeSerial() : IOStream(std::cin, std::cout) {} virtual ~Fake...
28.25
12
(translation_unit) "// Copyright 2018 yoshitake. All rights reserved.\n// Use of this source code is governed by a MIT\n// license that can be found in the LICENSE file.\n\n#pragma once\n\n#include <iostream>\n#include "IOStream.h"\n\nclass FakeSerial : public IOStream {\npublic:\n FakeSerial() : IOStream(std::cin, ...
74
5
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 28.25, "nodes": 38, "errors": 0, "source_hash": "9a0e94da19ebbe30322fda6b9b47533f164f09214cfd5fecd78c2a2ac2440704", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
6,424
c
/** ****************************************************************************** * @file trace_interface.c * @author MCD Application Team * @brief This file contains trace define utilities ****************************************************************************** * @attention * * <h2...
27.07
175
(translation_unit) "/** \n ****************************************************************************** \n * @file trace_interface.c \n * @author MCD Application Team \n * @brief This file contains trace define utilities \n ****************************************************************************** \n ...
1,135
1
{"language": "c", "success": true, "metadata": {"lines": 175, "avg_line_length": 27.07, "nodes": 664, "errors": 0, "source_hash": "730b5795ac3dc35eeb12ce4f1b054e973c4cbe7c35bbabfb7c9255b05eeee5e3", "categorized_nodes": 472}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,425
c
// StreamUtils - github.com/bblanchon/ArduinoStreamUtils // Copyright <NAME> 2019-2022 // MIT License #pragma once #include <ostream> #include <string> class String : private std::string { public: String() {} String(const String& s) : std::string(s) {} String(String&& s) : std::string(std::move(s)) {} Strin...
31.91
32
(translation_unit) "// StreamUtils - github.com/bblanchon/ArduinoStreamUtils\n// Copyright <NAME> 2019-2022\n// MIT License\n\n#pragma once\n\n#include <ostream>\n#include <string>\n\nclass String : private std::string {\n public:\n String() {}\n String(const String& s) : std::string(s) {}\n String(String&& s) : std...
466
33
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 31.91, "nodes": 258, "errors": 0, "source_hash": "9b31e887f05e9fa8f3a5af780931b51a58d037269e5403c7a6968c9d158a2d87", "categorized_nodes": 176}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
6,426
c
/* =============================================================================== base_grabcontroller.h Mostly borrowed from `hl2/weapon_physcannon.cpp` =============================================================================== */ #ifndef __GRID_PICKUPCONTROLLER_H__ #define __GRID_PICKUPCONTROLLER_H__ #inc...
35.72
36
(translation_unit) "/*\n===============================================================================\n\n base_grabcontroller.h\n Mostly borrowed from `hl2/weapon_physcannon.cpp`\n\n===============================================================================\n*/\n\n#ifndef __GRID_PICKUPCONTROLLER_H__\n#define __G...
229
2
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 35.72, "nodes": 140, "errors": 0, "source_hash": "6e8555da1eb720d3128352bd386e0483ef3a8bbeb981b4d11ec903261908d003", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,427
c
#ifndef IRSEQUENCEREADER_H #define IRSEQUENCEREADER_H #include "IrSignal.h" #include "IrReader.h" /** * This class packs an IrSequence into a dummy, immutable IrReader. * It is basically intended for debugging and such. */ class IrSequenceReader : public IrReader { private: IrSequence irSequence; public: ...
27.08
36
(translation_unit) "#ifndef IRSEQUENCEREADER_H\n#define IRSEQUENCEREADER_H\n\n#include "IrSignal.h"\n#include "IrReader.h"\n\n/**\n * This class packs an IrSequence into a dummy, immutable IrReader.\n * It is basically intended for debugging and such.\n */\nclass IrSequenceReader : public IrReader {\nprivate:\n IrSe...
242
11
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 27.08, "nodes": 113, "errors": 0, "source_hash": "2a564c8c4185937bcdfc1709063d07e8de9abca4523062ff3fad75249b92390a", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,428
c
/* Generated by RuntimeBrowser Image: /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData */ @interface NSFetchedPropertyDescription : NSPropertyDescription { NSFetchRequest * _fetchRequest; NSString * _lazyFetchRequestEntityName; void * _reserved5; void * _reserved6; } @property (at...
36.77
26
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData\n */\n\n@interface NSFetchedPropertyDescription : NSPropertyDescription {\n NSFetchRequest * _fetchRequest;\n NSString * _lazyFetchRequestEntityName;\n void * _reserved5;\n void * ...
307
15
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 36.77, "nodes": 184, "errors": 0, "source_hash": "354765af1180c435dfdea4dfc83859f3f86c720d30a559cca4be111c2728a029", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": ...
6,429
c
// // Created by alfonso on 12/04/19. // #include "distloc.h" extern void calculoP(int); double distLocRec(PLocalidad , PRecurso ); extern PLocalidad ploc; extern PRecurso prec; extern int cantiloc; extern int cantirec; extern const int NumHilos; extern const double RT; /** * Función que busca la localidad co...
21.98
44
(translation_unit) "//\n// Created by alfonso on 12/04/19.\n//\n#include "distloc.h"\n\nextern void calculoP(int);\ndouble distLocRec(PLocalidad , PRecurso );\n\n\n\n\nextern PLocalidad ploc;\nextern PRecurso prec;\n\nextern int cantiloc;\nextern int cantirec;\n\nextern const int NumHilos;\nextern const double RT;\n\n\...
413
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 21.98, "nodes": 259, "errors": 0, "source_hash": "81d61c937006c76e9753968563a0c6f4e96a9d12e51a0e2d6ff2d4a0df36d992", "categorized_nodes": 184}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,430
c
// // timelyMannerTests.h // timelyMannerTests // // Created by <NAME> on 6/29/13. // Copyright (c) 2013 Rhombus Inc. All rights reserved. // #import <SenTestingKit/SenTestingKit.h> @interface timelyMannerTests : SenTestCase @end
22.4
10
(translation_unit) "//\n// timelyMannerTests.h\n// timelyMannerTests\n//\n// Created by <NAME> on 6/29/13.\n// Copyright (c) 2013 Rhombus Inc. All rights reserved.\n//\n\n#import <SenTestingKit/SenTestingKit.h>\n\n@interface timelyMannerTests : SenTestCase\n\n@end\n" (comment) "//" (comment) "// timelyMannerTe...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 22.4, "nodes": 9, "errors": 0, "source_hash": "63bc4c748eb9757eeb9ecc951b52668a9ee5fea4c2eb87b9b91e500877aa5e88", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Sen...
6,431
c
// // HJDownloadList_VC.h // HJDownloadManager // // Created by WHJ on 2018/2/27. // Copyright © 2018年 WHJ. All rights reserved. // #import <UIKit/UIKit.h> @interface HJDownloadList_VC : UIViewController @end
20.3
10
(translation_unit) "//\n// HJDownloadList_VC.h\n// HJDownloadManager\n//\n// Created by WHJ on 2018/2/27.\n// Copyright © 2018年 WHJ. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface HJDownloadList_VC : UIViewController\n\n@end\n" (comment) "//" (comment) "// HJDownloadList_VC.h" (comment) "/...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.3, "nodes": 10, "errors": 0, "source_hash": "3fb7e1ebc0464465d3a20cfb5efb74e9e01802ae9b57c6bc6496e316d2441ac8", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKit...
6,432
c
#ifndef SITE_WINDOW_H #define SITE_WINDOW_H #include <QDialog> #include <QMap> namespace Ui { class SiteWindow; } class Profile; class Source; class SiteWindow : public QDialog { Q_OBJECT public: explicit SiteWindow(Profile *profile, QWidget *parent = Q_NULLPTR); ~SiteWindow() override; public slots: ...
17.04
28
(translation_unit) "#ifndef SITE_WINDOW_H\n#define SITE_WINDOW_H\n\n#include <QDialog>\n#include <QMap>\n\n\nnamespace Ui\n{\n class SiteWindow;\n}\n\n\nclass Profile;\nclass Source;\n\nclass SiteWindow : public QDialog\n{\n Q_OBJECT\n\n public:\n explicit SiteWindow(Profile *profile, QWidget *parent = Q_NULLPTR);\n ...
149
8
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 17.04, "nodes": 99, "errors": 0, "source_hash": "c3e41060d6592851d639c000d51ba7c37500b1c1c2fb1a880f94b92986c6503e", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,433
c
/* * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Copyright 2007-2020 Broadcom Inc. All rights reserved. */ #ifndef APPL_REF_FIELD_ITMH_PPH_INIT_H_INCLUDED #define APPL_REF_FIELD_ITMH_PPH_INIT_H_INCLUDED #include <bc...
33.94
152
(translation_unit) "/*\n * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.\n * \n * Copyright 2007-2020 Broadcom Inc. All rights reserved.\n */\n\n#ifndef APPL_REF_FIELD_ITMH_PPH_INIT_H_INCLUDED\n\n#define APPL_REF_FIELD_ITMH_PPH_INIT_H...
519
0
{"language": "c", "success": true, "metadata": {"lines": 152, "avg_line_length": 33.94, "nodes": 473, "errors": 0, "source_hash": "3e77410601fcc3c0b24ed9dd9c2563ff2c7b9ae67f3c3c6ada954cffe2a5ffb9", "categorized_nodes": 185}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
6,434
c
#ifndef ADMIN_H_ #define ADMIN_H_ int run_admin_mode(int *user); #endif
17
4
(translation_unit) "#ifndef ADMIN_H_\n#define ADMIN_H_\n\nint run_admin_mode(int *user);\n\n#endif\n" (preproc_ifdef) "#ifndef ADMIN_H_\n#define ADMIN_H_\n\nint run_admin_mode(int *user);\n\n#endif" (#ifndef) "#ifndef" (identifier) "ADMIN_H_" (preproc_def) "#define ADMIN_H_\n" (#define) "#define" ...
21
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 17.0, "nodes": 17, "errors": 0, "source_hash": "f69b32faf188942a5e7e5e16ecd3cfbc0591259f6fdbaeeb74ac3367172c8c34", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef AD...
6,435
c
/* Command line library */ #ifndef CMDLINELIB_H #define CMDLINELIB_H #define CMDL_BUFFER_SIZE 256 //#define CMDL_OUTPUT_SIZE 256 #define CMDL_PROMPT_SIZE 8 #define CMDL_MAX_TAB_COMPLETE_RESULT 256 typedef int (*cmdl_putchar_t)(int); typedef int (*cmdl_printf_t)( const char *format, ... ); typedef int (*cmdl_getchar_t...
25.6
81
(translation_unit) "/* Command line library */\n#ifndef CMDLINELIB_H\n#define CMDLINELIB_H\n\n#define CMDL_BUFFER_SIZE 256\n//#define CMDL_OUTPUT_SIZE 256\n#define CMDL_PROMPT_SIZE 8\n#define CMDL_MAX_TAB_COMPLETE_RESULT 256\n\ntypedef int (*cmdl_putchar_t)(int);\ntypedef int (*cmdl_printf_t)( const char *format, ... )...
637
0
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 25.6, "nodes": 472, "errors": 0, "source_hash": "259ba371eefe8b0117dc414971a2071c8f85cd723c4682a8c693dd9e79fbc2d8", "categorized_nodes": 282}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,436
c
#include <stdio.h> #include <stdlib.h> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main(int argc, char *argv[]) { float notas[15], media = 0, menor, maior; int pos; printf("Cadastro de notas de 15 alunos:\n\n"); for(pos = 0; pos < 15; pos++) { ...
17.7
43
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\n/* run this program using the console pauser or add your own getch, system("pause") or input loop */\n\nint main(int argc, char *argv[]) \n{\n \n float notas[15], media = 0, menor, maior;\n int pos;\n \n printf("Cadastro de notas de 15 alunos:\n\n");\n \n f...
274
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 17.7, "nodes": 150, "errors": 0, "source_hash": "f83f32c17c82f35653cb91d83b5c4132f443f416c75489e93adb4358a1861d3c", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
6,437
c
// // ALUserBlocked.h // Applozic // // Created by devashish on 10/03/2016. // Copyright © 2016 applozic Inc. All rights reserved. // #import <Foundation/Foundation.h> @interface ALUserBlocked : NSObject @property (nonatomic, strong) NSString *id; @property (nonatomic, strong) NSString *blockedTo; @property (non...
32.72
18
(translation_unit) "//\n// ALUserBlocked.h\n// Applozic\n//\n// Created by devashish on 10/03/2016.\n// Copyright © 2016 applozic Inc. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface ALUserBlocked : NSObject\n\n@property (nonatomic, strong) NSString *id;\n@property (nonatomic, strong) NS...
152
32
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 32.72, "nodes": 112, "errors": 0, "source_hash": "99d1303fa1ada1fb93eed854b051845797a3818421878483e255c72c1b3b9cf6", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <...
6,438
c
#ifndef _Uvs2_textdiff_h_ #define _Uvs2_textdiff_h_ class TextSection { public: TextSection(int start1, int count1, int start2, int count2, bool same) : start1(start1), count1(count1), start2(start2), count2(count2), same(same) {} public: int start1; int count1; int start2; int ...
26
23
(translation_unit) "#ifndef _Uvs2_textdiff_h_ \n#define _Uvs2_textdiff_h_ \n \nclass TextSection \n{ \npublic: \n TextSection(int start1, int count1, int start2, int count2, bool same) \n : start1(start1), count1(count1), start2(start2), count2(count2), same(same) {} \n \npublic: \n int start1; \n int count1...
206
11
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 26.0, "nodes": 134, "errors": 0, "source_hash": "77631c9b57a2843f359920babfa76b12975a3f271f7ee96de02f8d2e0788d643", "categorized_nodes": 96}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,439
c
//* blink and toggle in c - main.c for test 2 * #include <stdint.h> #include "bios_leds.h" #include "bios_keys.h" #include "library.h" // this test allows you to do the final tweak of the delay function int main() { leds_init(); keys_init(); uint8_t led_current = 0; while(1) { ...
26.29
24
(translation_unit) "//* blink and toggle in c - main.c for test 2 * \n#include <stdint.h> \n#include "bios_leds.h" \n#include "bios_keys.h" \n#include "library.h" \n \n// this test allows you to do the final tweak of the delay function \nint main() \n{ \n leds_init(); \n keys_init(); \n \n uint8_t led_current ...
103
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 26.29, "nodes": 51, "errors": 0, "source_hash": "ce559e3259a283bec5201fac7c38678971fd9423d1d983f3569edf6062436d2a", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
6,440
c
// // UIScrollView+XLRefresh.h // Tools // // Created by 路 on 2018/6/13. // Copyright © 2018年 路. All rights reserved. // #import <UIKit/UIKit.h> @interface UIScrollView (XLRefresh) - (void)addHeaderRefreshWithCallback:(nullable void(^)(void))callback; - (void)addFooterRefreshWithCallback:(nullable void(^)(void))...
27.76
17
(translation_unit) "//\n// UIScrollView+XLRefresh.h\n// Tools\n//\n// Created by 路 on 2018/6/13.\n// Copyright © 2018年 路. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIScrollView (XLRefresh)\n- (void)addHeaderRefreshWithCallback:(nullable void(^)(void))callback;\n\n- (void)addFooterRefreshWith...
134
9
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 27.76, "nodes": 69, "errors": 0, "source_hash": "c0e62bfdee2e845017410e35b19a7537e5b78399ed751360d46f0565fc731f16", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <UIKit/U...
6,441
c
/* * =========================================================================== * Loom SDK * Copyright 2011, 2012, 2013 * The Game Engine Company, LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy o...
33.72
57
(translation_unit) "/*\n * ===========================================================================\n * Loom SDK\n * Copyright 2011, 2012, 2013\n * The Game Engine Company, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License....
284
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 33.72, "nodes": 181, "errors": 0, "source_hash": "973e712926da44d9d4521f0be03e79b2ff8c4f794670a683008585134b1c6d86", "categorized_nodes": 119}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,442
c
#import "Dog.h"
15
1
(translation_unit) "#import "Dog.h"\n" (preproc_call) "#import "Dog.h"\n" (preproc_directive) "#import" (preproc_arg) ""Dog.h""
4
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 15.0, "nodes": 3, "errors": 0, "source_hash": "924bd951f5175ea5815af42768e45c5d748b55a5930483e4049eded18a8c5075", "categorized_nodes": 1}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"Dog...
6,443
c
#pragma once #include <xserverproxy.h> #include "gesture.h" #include "events/grabber.h" #include "actiondb.h" #include "events/windowobserver.h" class Handler; class EventLoop { private: std::shared_ptr<XServerProxy> xServer; std::unique_ptr<Handler> handler; static int xErrorHandler(Display *dpy2, XE...
33.29
41
(translation_unit) "#pragma once\n\n#include <xserverproxy.h>\n#include "gesture.h"\n\n#include "events/grabber.h"\n#include "actiondb.h"\n#include "events/windowobserver.h"\n\nclass Handler;\n\nclass EventLoop {\nprivate:\n std::shared_ptr<XServerProxy> xServer;\n\n std::unique_ptr<Handler> handler;\n\n stati...
474
15
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 33.29, "nodes": 313, "errors": 0, "source_hash": "8438c1ac10a6ab7acc34d9560868d97e1eee65608688a695cc85d61aaa5b4752", "categorized_nodes": 199}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
6,444
c
#pragma once #include "editor/core/base_window.h" #include "core/utility/time/clock.h" #include "core/utility/time/scoped_timer.h" #include <map> namespace eversim { namespace editor { namespace windows { class performance_display : public core::base_window { public: explicit performance_display( std::string...
34.52
27
(translation_unit) "#pragma once\n#include "editor/core/base_window.h"\n\n#include "core/utility/time/clock.h"\n#include "core/utility/time/scoped_timer.h"\n\n#include <map>\n\nnamespace eversim { namespace editor { namespace windows {\n\n class performance_display : public core::base_window {\n public:\n explicit per...
304
22
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 34.52, "nodes": 162, "errors": 0, "source_hash": "9c49b95b26324de58788c6f20b1b01949313608bb83ef0c9518901230714694a", "categorized_nodes": 107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
6,445
c
#ifndef _SOCKB_H_INCLUDED #define _SOCKB_H_INCLUDED #define SOCK_KEY_LEN 48 typedef struct v2_packb { char *base; size_t len; struct v2_packb *next; } v2_packb_t; typedef struct v2_sockb { char *base; size_t len; v2_packb_t *pb_head; v2_packb_t *pb_tail; int pb_lock; } v2_sockb_t; ty...
24.23
30
(translation_unit) "#ifndef _SOCKB_H_INCLUDED\n#define _SOCKB_H_INCLUDED\n\n#define SOCK_KEY_LEN 48\n\ntypedef struct v2_packb {\n char *base;\n size_t len;\n struct v2_packb *next;\n} v2_packb_t;\n\ntypedef struct v2_sockb {\n char *base;\n size_t len;\n v2_packb_t *pb_head;\n v2_packb_t *pb_tail;...
231
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 24.23, "nodes": 179, "errors": 0, "source_hash": "cc7b4fac79715b79ef0c9c4c0abc8876609960b7e1883519105d4ab2964414ac", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,446
c
#ifndef SRC_MAIN_UTILS_CONCURRENCY_THREAD_POOL_EXECUTOR_H_ #define SRC_MAIN_UTILS_CONCURRENCY_THREAD_POOL_EXECUTOR_H_ #include <condition_variable> #include <memory> #include <mutex> #include <utility> #include "utils/concurrency/job_executor.h" #include "utils/concurrency/worker.h" #include "utils/concurrency/worker_...
27.92
132
(translation_unit) "#ifndef SRC_MAIN_UTILS_CONCURRENCY_THREAD_POOL_EXECUTOR_H_\n#define SRC_MAIN_UTILS_CONCURRENCY_THREAD_POOL_EXECUTOR_H_\n\n#include <condition_variable>\n#include <memory>\n#include <mutex>\n#include <utility>\n#include "utils/concurrency/job_executor.h"\n#include "utils/concurrency/worker.h"\n#inclu...
1,040
41
{"language": "c", "success": true, "metadata": {"lines": 132, "avg_line_length": 27.92, "nodes": 597, "errors": 0, "source_hash": "e12d15ffb1c4bd0f968d1295b6ac75a08019bcaa6edf2bc21981ce7cc12db76a", "categorized_nodes": 414}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
6,447
c
#ifndef __LOG_H__ #define __LOG_H__ void log_error(const char*); void log_notice(const char*); #endif
19.4
5
(translation_unit) "#ifndef __LOG_H__\n#define __LOG_H__\n\nvoid log_error(const char*);\nvoid log_notice(const char*);\n\n#endif" (preproc_ifdef) "#ifndef __LOG_H__\n#define __LOG_H__\n\nvoid log_error(const char*);\nvoid log_notice(const char*);\n\n#endif" (#ifndef) "#ifndef" (identifier) "__LOG_H__" (p...
36
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 19.4, "nodes": 25, "errors": 0, "source_hash": "ad3b81aac51bb78198d223014a2011cb565b5995c9971126be2aa89139489605", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __...
6,448
c
//===- GraphBLASDialect.h - GraphBLAS dialect -----------------*- C++ -*-===// // // TODO add documentation // //===--------------------------------------------------------------------===// #ifndef GRAPHBLAS_GRAPHBLASDIALECT_H #define GRAPHBLAS_GRAPHBLASDIALECT_H #include "mlir/IR/Dialect.h" #include "GraphBLAS/Grap...
36.9
10
(translation_unit) "//===- GraphBLASDialect.h - GraphBLAS dialect -----------------*- C++ -*-===//\n//\n// TODO add documentation\n//\n//===--------------------------------------------------------------------===//\n\n#ifndef GRAPHBLAS_GRAPHBLASDIALECT_H\n#define GRAPHBLAS_GRAPHBLASDIALECT_H\n\n#include "mlir/IR/Dialect...
26
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 36.9, "nodes": 13, "errors": 0, "source_hash": "bcdcfa65d6c5aee17948a74c56abfcbacf3cd5af7fce7d00e0b1fe11f316a624", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef G...
6,449
c
/*- * Copyright (c) 2003 <NAME> <<EMAIL>> * Copyright (c) 2013 <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above ...
28.61
215
(translation_unit) "/*-\n * Copyright (c) 2003 <NAME> <<EMAIL>>\n * Copyright (c) 2013 <NAME> <<EMAIL>>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source...
1,075
2
{"language": "c", "success": true, "metadata": {"lines": 215, "avg_line_length": 28.61, "nodes": 633, "errors": 0, "source_hash": "2ed15a11ffd0413ddbad51ee0c605719d635a12bccab2d3b282fab239cdb4c9a", "categorized_nodes": 471}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,450
c
// // Tools.h // EvoLisa // // Created by <NAME> on 1/17/10. // Copyright 2010 <NAME>. All rights reserved. // #import <Cocoa/Cocoa.h> @interface Tools : NSObject { } + (Tools*)instance; + (void)killInstance; - (int)getRandomNumberWithMin:(int)minimum andMaximum:(int)maximum; - (BOOL)willMutate:(int)mutationR...
17.9
20
(translation_unit) "//\n// Tools.h\n// EvoLisa\n//\n// Created by <NAME> on 1/17/10.\n// Copyright 2010 <NAME>. All rights reserved.\n//\n\n\n#import <Cocoa/Cocoa.h>\n\n\n@interface Tools : NSObject\n{\n}\n\n+ (Tools*)instance;\n+ (void)killInstance;\n\n- (int)getRandomNumberWithMin:(int)minimum andMaximum:(int)max...
108
8
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 17.9, "nodes": 60, "errors": 0, "source_hash": "e58773bdb0b8fe6185d94071391b4da6290ab75aa7d79b745f84fb20d7b2fd24", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <C...
6,451
c
#ifndef COUNTRY_MAPPER_BUILDER_H #define COUNTRY_MAPPER_BUILDER_H #include "CountryMapping.h" #include <memory> class CountryMapper::Builder { public: Builder() { countryMapper = std::make_unique<CountryMapper>(); } std::unique_ptr<CountryMapper> Build() { return std::move(countryMapper); } Builder& addMappi...
26.45
22
(translation_unit) "#ifndef COUNTRY_MAPPER_BUILDER_H\n#define COUNTRY_MAPPER_BUILDER_H\n\n\n\n#include "CountryMapping.h"\n#include <memory>\n\n\n\nclass CountryMapper::Builder\n{\n public:\n Builder() { countryMapper = std::make_unique<CountryMapper>(); }\n std::unique_ptr<CountryMapper> Build() { return std::move(co...
174
8
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 26.45, "nodes": 99, "errors": 0, "source_hash": "75de9ec3ca522d8514e8d50832944694814a2b9b0478b20070bc2c4e2b68694f", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,452
c
/* Writes a pattern to the frame buffer * Use on a TTY with './a.out <num>' * Linux only */ #include <sys/types.h> #include <sys/stat.h> #include <sys/mman.h> #include <sys/ioctl.h> #include <fcntl.h> #include <linux/fb.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[])...
27.64
44
(translation_unit) "/* Writes a pattern to the frame buffer\n * Use on a TTY with './a.out <num>'\n * Linux only \n */\n\n#include <sys/types.h>\n#include <sys/stat.h>\n#include <sys/mman.h>\n#include <sys/ioctl.h>\n#include <fcntl.h>\n#include <linux/fb.h>\n#include <unistd.h>\n#include <stdio.h>\n#include <stdlib.h>\...
368
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 27.64, "nodes": 241, "errors": 0, "source_hash": "de73bd313c168aa3d8a56ffb2318c52d1f1f68d31dd01681118cbf461621b969", "categorized_nodes": 172}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,453
c
/** @file Copyright <NAME> 2006 */ #include "biopsy/defs.h" #include <gsl/gsl_rng.h> namespace biopsy { gsl_rng * get_gsl_rng(); } //namespace biopsy
12.73
11
(translation_unit) "/**\n@file\n\nCopyright <NAME> 2006\n\n*/\n\n#include "biopsy/defs.h"\n\n#include <gsl/gsl_rng.h>\n\n\nnamespace biopsy {\n\ngsl_rng *\nget_gsl_rng();\n\n} //namespace biopsy\n\n\n" (comment) "/**\n@file\n\nCopyright <NAME> 2006\n\n*/" (preproc_include) "#include "biopsy/defs.h"\n" (#include...
28
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 12.73, "nodes": 16, "errors": 0, "source_hash": "3e86d0fb170368bddf39be3b8e66e31c6c71e9b3713ba71c4b7e00052a2665e0", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
6,454
c
// // SceneDelegate.h // ScrollYearViewDemo // // Created by <NAME> on 2020/5/13. // Copyright © 2020 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface SceneDelegate : UIResponder <UIWindowSceneDelegate> @property (strong, nonatomic) UIWindow * window; @end
24.36
11
(translation_unit) "//\n// SceneDelegate.h\n// ScrollYearViewDemo\n//\n// Created by <NAME> on 2020/5/13.\n// Copyright © 2020 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface SceneDelegate : UIResponder <UIWindowSceneDelegate>\n\n@property (strong, nonatomic) UIWindow * window;\n\n@end\n\n...
39
6
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 24.36, "nodes": 25, "errors": 0, "source_hash": "c679efcc9d8f43cbaab7f6d7fa2d6e279eeea0b261ea38ab416949087e4cae10", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
6,455
c
/* * BlueZ-Lib - C API library for BlueZ * * Copyright (c) 2013-2016 Intel Corporation. * * 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/license...
41.74
58
(translation_unit) "/*\n * BlueZ-Lib - C API library for BlueZ\n *\n * Copyright (c) 2013-2016 Intel Corporation.\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 * ...
466
0
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 41.74, "nodes": 367, "errors": 0, "source_hash": "62b529b3cea7f9586c3dce7ce7e92ba49a793fa3fae787ec61cd87322a40ebf1", "categorized_nodes": 245}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,456
c
#include "messages.h" /* Construct of help message in program memory, save on ram */ const char help_string_1[] PROGMEM = "Accepted commands is "; const char help_string_2[] PROGMEM = "set v xxxxx "; const char help_string_3[] PROGMEM = " where xxxx is in mV"; const char help_string_4[] PROGMEM = "set a x...
30.52
46
(translation_unit) "#include "messages.h"\n\n/* Construct of help message in program memory, save on ram */\nconst char help_string_1[] PROGMEM = "Accepted commands is ";\nconst char help_string_2[] PROGMEM = "set v xxxxx ";\nconst char help_string_3[] PROGMEM = " where xxxx is in mV";\nconst char help_str...
408
10
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 30.52, "nodes": 225, "errors": 0, "source_hash": "550c9aaf539615433e01850cabcdce9da5cd185fc49450d01155eb8c22bd46bb", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,457
c
// // Quiz17.h // LeetCodePractice // // Created by White on 2018/9/11. // Copyright © 2018年 White. All rights reserved. // #ifndef Quiz17_h #define Quiz17_h #include <stdio.h> int countPrimes(int n); #endif /* Quiz17_h */
17.92
12
(translation_unit) "//\n// Quiz17.h\n// LeetCodePractice\n//\n// Created by White on 2018/9/11.\n// Copyright © 2018年 White. All rights reserved.\n//\n\n#ifndef Quiz17_h\n#define Quiz17_h\n\n#include <stdio.h>\n\nint countPrimes(int n);\n\n#endif /* Quiz17_h */\n" (comment) "//" (comment) "// Quiz17.h" (comm...
30
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 17.92, "nodes": 18, "errors": 0, "source_hash": "0af87fa2d02ff9f16e4aa93722ddb30c4025190c05f6f7fb5e1dc7756516d01b", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ndef Qui...
6,458
c
/* Copyright JS Foundation and other contributors, http://js.foundation * * 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 r...
35.03
214
(translation_unit) "/* Copyright JS Foundation and other contributors, http://js.foundation\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/...
1,199
3
{"language": "c", "success": true, "metadata": {"lines": 214, "avg_line_length": 35.03, "nodes": 760, "errors": 0, "source_hash": "395f51f5f5ea99b36e6898c6714104043696c3c62b22973f80d74937184a7f70", "categorized_nodes": 527}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,459
c
/* ISC license. */ #include <skalibs/siovec.h> #include <skalibs/skaclient.h> #include <skalibs/unixmessage.h> int skaclient_putv (skaclient_t *a, siovec_t const *v, unsigned int vlen, unixmessage_handler_func_t *cb, void *result) { unixmessage_v_t m = { .v = (siovec_t *)v, .vlen = vlen, .fds = 0, .nfds = 0 } ; r...
39.56
9
(translation_unit) "/* ISC license. */\n\n#include <skalibs/siovec.h>\n#include <skalibs/skaclient.h>\n#include <skalibs/unixmessage.h>\n\nint skaclient_putv (skaclient_t *a, siovec_t const *v, unsigned int vlen, unixmessage_handler_func_t *cb, void *result)\n{\n unixmessage_v_t m = { .v = (siovec_t *)v, .vlen = vlen,...
112
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 39.56, "nodes": 79, "errors": 0, "source_hash": "0417aafada2859b67b2641ce9294971b6f71672a611a800ee322f5c83ad4e821", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
6,460
c
/* Teem: Tools to process and visualize scientific data and images Copyright (C) 2005 <NAME> Copyright (C) 2004, 2003, 2002, 2001, 2000, 1999, 1998 University of Utah This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (LGPL) as...
30.38
298
(translation_unit) "/*\n Teem: Tools to process and visualize scientific data and images\n Copyright (C) 2005 <NAME>\n Copyright (C) 2004, 2003, 2002, 2001, 2000, 1999, 1998 University of Utah\n\n This library is free software; you can redistribute it and/or\n modify it under the terms of the GNU Lesser General ...
2,968
0
{"language": "c", "success": true, "metadata": {"lines": 298, "avg_line_length": 30.38, "nodes": 1631, "errors": 0, "source_hash": "340cced93e84b33edfd13f21a7665d94e4ca9dd9c49d6f4b0f79482d28442f54", "categorized_nodes": 1238}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
6,461
c
// Copyright 2011-2020, Molecular Matters GmbH <<EMAIL>> // See LICENSE.txt for licensing details (2-clause BSD License: https://opensource.org/licenses/BSD-2-Clause) #pragma once PSD_NAMESPACE_BEGIN /// \ingroup Types /// \class Thumbnail /// \brief A struct representing a thumbnail as stored in the imag...
23.05
21
(translation_unit) "// Copyright 2011-2020, Molecular Matters GmbH <<EMAIL>> \n// See LICENSE.txt for licensing details (2-clause BSD License: https://opensource.org/licenses/BSD-2-Clause) \n \n#pragma once \n \n \nPSD_NAMESPACE_BEGIN \n \n/// \ingroup Types \n/// \class Thumbnail \n/// \brief A struct representing a t...
41
1
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 23.05, "nodes": 23, "errors": 0, "source_hash": "01ff59b8a69144942b95141d9d9896b8f6930a72ee4a505d6bd801f967679a1f", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
6,462
c
/******************************************************************** Crytek Source File. Copyright (C), Crytek Studios, 2006-2007. --------------------------------------------------------------------- File name: Range.h $Id$ $DateTime$ Description: Single Range donut -------------------------------------------------...
29.91
55
(translation_unit) "/********************************************************************\nCrytek Source File.\nCopyright (C), Crytek Studios, 2006-2007.\n---------------------------------------------------------------------\nFile name: Range.h\n$Id$\n$DateTime$\nDescription: Single Range donut\n---------------------...
266
9
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 29.91, "nodes": 149, "errors": 0, "source_hash": "ef493b6e6952d8aba81a77ebac0ea73ee2cb27cb57e8e0e97be0b3d31fa3679f", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,463
c
/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #pragma once #include "EMotionFXConfig.h" #include "AnimGraphObject.h" namespace EMotionFX { ...
36.49
51
(translation_unit) "/*\n * Copyright (c) Contributors to the Open 3D Engine Project.\n * For complete copyright and license terms please see the LICENSE at the root of this distribution.\n *\n * SPDX-License-Identifier: Apache-2.0 OR MIT\n *\n */\n\n#pragma once\n\n#include "EMotionFXConfig.h"\n#include "AnimGraphObjec...
276
12
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 36.49, "nodes": 155, "errors": 0, "source_hash": "34cc1cfdade004fd872d2ad381290a20c5997def3a64e5704ca72efdd4db93b5", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
6,464
c
#include <stdio.h> #include <stdlib.h> struct element{ int val; struct element* suivant; }; typedef struct element element; typedef element* liste; /*liste creerListeVide(){ return NULL; }*/ /*int estListeVide(liste l){ if(l==NULL){ return 1; } else return 0; }*/ void afficheListe(liste l){ if(l!=NULL){ ...
15.36
61
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\nstruct element{\n int val;\n struct element* suivant;\n};\ntypedef struct element element;\ntypedef element* liste;\n\n/*liste creerListeVide(){\n return NULL;\n}*/\n\n/*int estListeVide(liste l){\n if(l==NULL){\n return 1;\n }\n else return 0;\n}*/\n\nvoi...
403
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 15.36, "nodes": 225, "errors": 0, "source_hash": "a2ecba4601710059a917d1c46f0d0798eff738629f4894cdb99d975ea8a686f5", "categorized_nodes": 170}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,465
c
/* * uart.c * @brief UART0 intterupt transmit * @author forester3 * @date 25/July/2018 * @details R5F10Y47ASP-RL78/G10 UART0 intterupt transmit * * Copyright (c) 2018 forester3 * https://github.com/forester3 * * Licensed under the Apache License, Version 2.0 (the ...
30.1
115
(translation_unit) "/* \n * uart.c \n * @brief UART0 intterupt transmit \n * @author forester3 \n * @date 25/July/2018 \n * @details R5F10Y47ASP-RL78/G10 UART0 intterupt transmit \n * \n * Copyright (c) 2018 forester3 \n * https://github.com/forester3 \n * \n * Licensed under the Apa...
522
0
{"language": "c", "success": true, "metadata": {"lines": 115, "avg_line_length": 30.1, "nodes": 351, "errors": 0, "source_hash": "c9345a5cb5a935f7017114b1ea5868025b071757f7b643cc3231fc3e1c3f478f", "categorized_nodes": 222}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,466
c
#pragma once #include <cppunit/extensions/HelperMacros.h> #include <string> #include "ReAligner.h" class TestGetAlignment : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(TestGetAlignment); /*CPPUNIT_TEST(removeDashes1); CPPUNIT_TEST(removeDashes2); CPPUNIT_TEST(GetAlignment1); CPPUNIT_TEST(GetAlignment2); CPP...
27.67
33
(translation_unit) "#pragma once\n#include <cppunit/extensions/HelperMacros.h>\n#include <string>\n#include "ReAligner.h"\n\nclass TestGetAlignment : public CppUnit::TestFixture\n{\n CPPUNIT_TEST_SUITE(TestGetAlignment);\n /*CPPUNIT_TEST(removeDashes1);\n CPPUNIT_TEST(removeDashes2);\n CPPUNIT_TEST(GetAlignment1);\n CP...
189
4
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 27.67, "nodes": 113, "errors": 0, "source_hash": "61a3a3db45184411481fae2817e4f58ddc81d4f9fd5c22ac625746f221dd526d", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
6,467
c
/* * Register definitions for Static Memory Controller */ #ifndef __CPU_AT32AP_HSMC3_H__ #define __CPU_AT32AP_HSMC3_H__ /* HSMC3 register offsets */ #define HSMC3_SETUP0 0x0000 #define HSMC3_PULSE0 0x0004 #define HSMC3_CYCLE0 0x0008 #define HSMC3_MODE0 0x000c #define HSMC3_SETUP1 0x0010 #define HSMC3_...
33.7
105
(translation_unit) "/*\n * Register definitions for Static Memory Controller\n */\n#ifndef __CPU_AT32AP_HSMC3_H__\n#define __CPU_AT32AP_HSMC3_H__\n\n/* HSMC3 register offsets */\n#define HSMC3_SETUP0 0x0000\n#define HSMC3_PULSE0 0x0004\n#define HSMC3_CYCLE0 0x0008\n#define HSMC3_MODE0 0x000c\n#define HSMC3_...
389
0
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 33.7, "nodes": 356, "errors": 0, "source_hash": "30caf346ad340f138a6bd07b74c6e30ed36680e93387ab290c87e93687e29d3d", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,468
c
/******************************************************************************* // // SYCL 2020 Conformance Test Suite // // Provides common code for sycl::link tests // *******************************************************************************/ #ifndef __SYCLCTS_TESTS_SYCL_LINK_H #define __SYCLCTS_TESTS_SYCL_...
36.44
27
(translation_unit) "/*******************************************************************************\n//\n// SYCL 2020 Conformance Test Suite\n//\n// Provides common code for sycl::link tests\n//\n*******************************************************************************/\n\n#ifndef __SYCLCTS_TESTS_SYCL_LINK_H\n...
167
10
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 36.44, "nodes": 94, "errors": 0, "source_hash": "62f9229f951c45ea6f6417773d7ca0a55e3210239e3e2020305bd191252e96fe", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,469
c
// // JCTableViewCell.h // JCTagListView // // Created by 李京城 on 16/7/18. // Copyright © 2016年 lijingcheng. All rights reserved. // #import <UIKit/UIKit.h> #import "JCTagListView.h" @interface JCTableViewCell : UITableViewCell @property (nonatomic, copy) NSArray *tags; @end
22.25
12
(translation_unit) "//\n// JCTableViewCell.h\n// JCTagListView\n//\n// Created by 李京城 on 16/7/18.\n// Copyright © 2016年 lijingcheng. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "JCTagListView.h"\n\n@interface JCTableViewCell : UITableViewCell\n\n@property (nonatomic, copy) NSArray *tags;\n\n@end\n"...
39
6
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 22.25, "nodes": 25, "errors": 0, "source_hash": "e6b89bab28b85449aeeb29efd00f8d41691fd49fa162f95d693f03956a5a3e47", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit/UIK...
6,470
c
#pragma once #include <string> #include <iostream> class Vehicle { public: std::string model; int year; Vehicle(int _year, std::string _model): year(_year), model(_model) {}; void getModel(); void getYear(); virtual void getInfo(); };
21.83
12
(ERROR) "#pragma once\n#include <string>\n#include <iostream>\n\nclass Vehicle {\n public:\n std::string model;\n int year;\n Vehicle(int _year, std::string _model): year(_year), model(_model) {};\n void getModel();\n void getYear();\n virtual void getInfo();\n};\n" (preproc_call) "#pr...
75
3
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 21.83, "nodes": 40, "errors": 0, "source_hash": "ebd86637ae69d58ceb032ed1f3027f7450c85020e74d9a12eedf2e01912b547d", "categorized_nodes": 28}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#pragma once\n#include <str...
6,471
c
#ifndef FLAGS_H_ #define FLAGS_H_ #include "utils/hahaUtils.h" typedef uint8_t flags; /* Flags */ #define FLAG_ACK 0x01 #define FLAG_ACCEPT 0x02 #define FLAG_CANCEL 0x04 #define FLAG_IMMEDIATE 0x08 #define SET_ACK(val) val |= FLAG_ACK #define SET_ACCEPT(val) val |= FLAG_ACCEPT #define SET_CANCEL(val) val |= FLAG_CA...
32.52
23
(translation_unit) "#ifndef FLAGS_H_\n#define FLAGS_H_\n\n#include "utils/hahaUtils.h"\n\ntypedef uint8_t flags;\n\n/* Flags */\n#define FLAG_ACK 0x01\n#define FLAG_ACCEPT 0x02\n#define FLAG_CANCEL 0x04\n#define FLAG_IMMEDIATE 0x08\n\n#define SET_ACK(val) val |= FLAG_ACK\n#define SET_ACCEPT(val) val |= FLAG_ACCEPT\n#de...
141
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 32.52, "nodes": 108, "errors": 0, "source_hash": "9b629b30908f6864685bf0e0b19d6216af012b73a04ebfb1c5f0df6054a07a10", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,472
c
/* * MIT License * * Copyright (c) 2020 Newracom, Inc. * * 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, m...
36.2
64
(translation_unit) "/*\n * MIT License\n *\n * Copyright (c) 2020 Newracom, Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation th...
74
0
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 36.2, "nodes": 48, "errors": 0, "source_hash": "e6bebfad9ceca3d13b3157f63be6762b225ca5f75a8ffe4af434ca18ec7c179b", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
6,473
c
#include "tommath_private.h" #ifdef BN_MP_SET_LONG_C /* LibTomMath, multiple-precision integer library -- <NAME> */ /* SPDX-License-Identifier: Unlicense */ MP_SET_XLONG(mp_set_long, unsigned long) #endif
33.17
6
(translation_unit) "#include "tommath_private.h"\n#ifdef BN_MP_SET_LONG_C\n/* LibTomMath, multiple-precision integer library -- <NAME> */\n/* SPDX-License-Identifier: Unlicense */\n\nMP_SET_XLONG(mp_set_long, unsigned long)\n#endif\n" (preproc_include) "#include "tommath_private.h"\n" (#include) "#include" (s...
25
1
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 33.17, "nodes": 14, "errors": 0, "source_hash": "ecc0fec89091d54bd74134fcd78ac0762679f5bbf608a866551bea228aec23c8", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
6,474
c
#ifndef INCLUDED_IMap #define INCLUDED_IMap #ifndef HXCPP_H #include <hxcpp.h> #endif HX_DECLARE_CLASS0(IMap) class HXCPP_CLASS_ATTRIBUTES IMap_obj : public hx::Interface{ public: typedef hx::Interface super; typedef IMap_obj OBJ_; HX_DO_INTERFACE_RTTI; static void __boot(); }; #define DELEGATE_IMap \ ...
21.31
29
(translation_unit) "#ifndef INCLUDED_IMap\n#define INCLUDED_IMap\n\n#ifndef HXCPP_H\n#include <hxcpp.h>\n#endif\n\nHX_DECLARE_CLASS0(IMap)\n\n\nclass HXCPP_CLASS_ATTRIBUTES IMap_obj : public hx::Interface{\n public:\n typedef hx::Interface super;\n typedef IMap_obj OBJ_;\n HX_DO_INTERFACE_RTTI;\n static void __boo...
160
5
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 21.31, "nodes": 92, "errors": 0, "source_hash": "ae28ad1c47ffe790a9445c7e15941e1766bdc13daa1ed5d6b7c6d35b86d34613", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,475
c
/** @file * Declaration of Localizer, the string localization class. * * Copyright 2021, Verizon Media * SPDX-License-Identifier: Apache-2.0 */ #pragma once #include "case_insensitive_utils.h" #include <unordered_set> #include "swoc/MemArena.h" #include "swoc/TextView.h" #include "swoc/bwf_base.h" /** A class...
36.72
53
(translation_unit) "/** @file\n * Declaration of Localizer, the string localization class.\n *\n * Copyright 2021, Verizon Media\n * SPDX-License-Identifier: Apache-2.0\n */\n\n#pragma once\n\n#include "case_insensitive_utils.h"\n\n#include <unordered_set>\n\n#include "swoc/MemArena.h"\n#include "swoc/TextView.h"\n#inc...
271
14
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 36.72, "nodes": 148, "errors": 0, "source_hash": "e5a4a5b16708ce3c3e2ece48fdbd54b4635d291006265255eb59df6932fc4d64", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
6,476
c
/** * @file framework_xwr68xx.c * * @brief * Framework Ported Layer for the XWR68xx Platform * * \par * NOTE: * (C) Copyright 2017 Texas Instruments, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the follo...
30.48
281
(translation_unit) "/** \n * @file framework_xwr68xx.c \n * \n * @brief \n * Framework Ported Layer for the XWR68xx Platform \n * \n * \par \n * NOTE: \n * (C) Copyright 2017 Texas Instruments, Inc. \n * \n * Redistribution and use in source and binary forms, with or without \n * modification, are pe...
587
2
{"language": "c", "success": true, "metadata": {"lines": 281, "avg_line_length": 30.48, "nodes": 362, "errors": 0, "source_hash": "d20a5f44a810c4973d33487320826f98e1a4ac8cfc757a804b66d29f9f6d59cc", "categorized_nodes": 252}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,477
c
//================ Copyright (c) 1996-2009 Valve Corporation. All Rights Reserved. ================= // // // //================================================================================================== #ifndef WINUTILS_H #define WINUTILS_H #include "togl/rendermechanism.h" #if !defined(_WIN32) void Sleep( ...
33.35
17
(translation_unit) "//================ Copyright (c) 1996-2009 Valve Corporation. All Rights Reserved. =================\n//\n//\n//\n//==================================================================================================\n#ifndef WINUTILS_H\n#define WINUTILS_H\n\n#include "togl/rendermechanism.h"\n\n#if !...
110
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 33.35, "nodes": 78, "errors": 0, "source_hash": "83607a4850c9882427709a5f785c6a5e595783954a6541dda1ea7fb02c81666c", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,478
c
#pragma once #include <vector> class Banner { private: int surface; int total_maximum_height; int surface_of_one_banner; int point_of_division; int surface_of_the_first_banner; int surface_of_the_second_banner; public: Banner(); int find_point_of_division(std::vector<int> buildings); int fi...
17.4
20
(translation_unit) "#pragma once \n#include <vector> \n \nclass Banner \n{ \nprivate: \n int surface; \n int total_maximum_height; \n int surface_of_one_banner; \n \n int point_of_division; \n int surface_of_the_first_banner; \n int surface_of_the_second_banner; \n \npublic: \n Banner(); \n int find_point_of_division(s...
89
2
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 17.4, "nodes": 57, "errors": 0, "source_hash": "54a494035c49cac0c18ea3ff87050a833487013ec4e9b8813a8fb26033013641", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
6,479
c
/***** Vision Kernel Stream Interface *****/ #ifndef VkStream_Interface #define VkStream_Interface /********************* ***** Library ***** *********************/ #include "Vca.h" /************************ ***** Components ***** ************************/ #include "VReferenceable.h" /*******************...
24.38
111
(translation_unit) "/***** Vision Kernel Stream Interface *****/\n#ifndef VkStream_Interface\n#define VkStream_Interface\n\n/*********************\n ***** Library *****\n *********************/\n\n#include "Vca.h"\n\n/************************\n ***** Components *****\n ************************/\n\n#include "VRefe...
547
15
{"language": "c", "success": true, "metadata": {"lines": 111, "avg_line_length": 24.38, "nodes": 341, "errors": 0, "source_hash": "0ed0236fc1ac7f40e8cc4ed82acddc9a4a4bc9413f9f65c4d641cfce27786496", "categorized_nodes": 223}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
6,480
c
// ------------------------------------------------------- // LoginItemController.h // // Copyright (c) 2010 <NAME> <<EMAIL>> // Licensed under MIT license // ------------------------------------------------------- #import <Cocoa/Cocoa.h> @interface LoginItemController : NSObject {} + (LoginItemController *)sharedCo...
32.18
11
(translation_unit) "// -------------------------------------------------------\n// LoginItemController.h\n//\n// Copyright (c) 2010 <NAME> <<EMAIL>>\n// Licensed under MIT license\n// -------------------------------------------------------\n\n#import <Cocoa/Cocoa.h>\n\n@interface LoginItemController : NSObject {}\n\n+ ...
46
8
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 32.18, "nodes": 27, "errors": 0, "source_hash": "affb3d27cb3d5529a9c13d46ba9fd76b3ffcc0eb6f1bed3e028340ee4087c568", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
6,481
c
#ifndef _DEBUGUTILS_H_ #define _DEBUGUTILS_H_ #include <string> #include <cstring> #include <iostream> #include "MIPS.h" #include "BiosDebugInfoProvider.h" namespace DebugUtils { std::string PrintAddressLocation(uint32, CMIPS*, const BiosDebugModuleInfoArray&); const BIOS_DEBUG_MODULE_INFO* FindModuleAtAddress(cons...
27.08
13
(translation_unit) "#ifndef _DEBUGUTILS_H_\n#define _DEBUGUTILS_H_\n\n#include <string>\n#include <cstring>\n#include <iostream>\n#include "MIPS.h"\n#include "BiosDebugInfoProvider.h"\n\nnamespace DebugUtils\n{\n std::string PrintAddressLocation(uint32, CMIPS*, const BiosDebugModuleInfoArray&);\n const BIOS_DEBUG_MODUL...
83
3
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 27.08, "nodes": 51, "errors": 0, "source_hash": "81f16770ba12a19001a2b0d7608f2542be406d1af5e7ae51cb720a331979be6c", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,482
c
/* * file: include/asm-blackfin/mach-bf537/mem_map.h * based on: * author: * * created: * description: * Memory MAP Common header file for blackfin BF537/6/4 of processors. * rev: * * modified: * * bugs: enter bugs at http://blackfin.uclinux.org/ * * this program is free software; you can ...
33.17
142
(translation_unit) "/*\n * file: include/asm-blackfin/mach-bf537/mem_map.h\n * based on:\n * author:\n *\n * created:\n * description:\n * Memory MAP Common header file for blackfin BF537/6/4 of processors.\n * rev:\n *\n * modified:\n *\n * bugs: enter bugs at http://blackfin.uclinux.org/\n *\n * this ...
396
0
{"language": "c", "success": true, "metadata": {"lines": 142, "avg_line_length": 33.17, "nodes": 366, "errors": 0, "source_hash": "3832bc2d1d1eb6c9c6576eaf0a61bb36aae24c14a8891d003fdee58d247feb4c", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
6,483
c
// // MapViewBaseDemoViewController.h // BaiduMapSdkSrc // // Created by BaiduMapAPI on 13-7-24. // Copyright (c) 2013年 baidu. All rights reserved. // #import <UIKit/UIKit.h> #import <BaiduMapAPI_Map/BMKMapComponent.h> #define startUserLocation @"startUserLocation" #define stopUserLocation @"stopUserLocation" @i...
32.58
24
(translation_unit) "//\n// MapViewBaseDemoViewController.h\n// BaiduMapSdkSrc\n//\n// Created by BaiduMapAPI on 13-7-24.\n// Copyright (c) 2013年 baidu. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import <BaiduMapAPI_Map/BMKMapComponent.h>\n\n#define startUserLocation @"startUserLocation"\n#define stopUser...
147
16
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 32.58, "nodes": 91, "errors": 0, "source_hash": "f47f6ee0cc1c47f44b31a3e8f594f7fc044a4309b05504090ec31e4bddbbafcc", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <UI...
6,484
c
void __security_init_cookie(void);
34
1
(translation_unit) "void __security_init_cookie(void);\n" (declaration) "void __security_init_cookie(void);" (primitive_type) "void" (function_declarator) "__security_init_cookie(void)" (identifier) "__security_init_cookie" (parameter_list) "(void)" (() "(" (parameter_declaration) ...
11
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 34.0, "nodes": 7, "errors": 0, "source_hash": "059f91e277c9d6139fb219c72723552e127aa4c1498e81b47a79646133e18cac", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "void __securit...
6,485
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_Error FLA_Tevd_v_opt...
36.19
213
(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...
1,456
0
{"language": "c", "success": true, "metadata": {"lines": 213, "avg_line_length": 36.19, "nodes": 956, "errors": 0, "source_hash": "99af93576591abe003f422240dbf32d2bb81303f981d9cd822e32bbedc590415", "categorized_nodes": 653}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,486
c
// // PQSwipeMenu.h // PQSwipeMenu // // Created by 盘国权 on 2018/10/15. // Copyright © 2018年 pgq. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for PQSwipeMenu. FOUNDATION_EXPORT double PQSwipeMenuVersionNumber; //! Project version string for PQSwipeMenu. FOUNDATION_EXPORT const unsig...
36.77
13
(translation_unit) "//\n// PQSwipeMenu.h\n// PQSwipeMenu\n//\n// Created by 盘国权 on 2018/10/15.\n// Copyright © 2018年 pgq. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n//! Project version number for PQSwipeMenu.\nFOUNDATION_EXPORT double PQSwipeMenuVersionNumber;\n\n//! Project version string for PQSwipeMe...
33
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 36.77, "nodes": 16, "errors": 0, "source_hash": "dac29dbd3f76ec80fb107a5462a3e2c45ccfb0012bb27b8bb555c3cbebe6fa36", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit/UIK...
6,487
c
/* * Copyright (C) 2008 <NAME>. * * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy,...
34.51
87
(translation_unit) "/*\n * Copyright (C) 2008 <NAME>.\n *\n * All Rights Reserved.\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 limitat...
236
0
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 34.51, "nodes": 169, "errors": 0, "source_hash": "399d4fb4cddc35f6bbc2980ee780249b3ced682fae5ff4307e894287a8cc5961", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,488
c
// Classificação de triangulo quanto aos lados #include "math.h" #include "stdlib.h" #include "locale.h" #include "stdio.h" main() { //---------------------------------------- float l1,l2,l3; setlocale(LC_ALL,""); // system ("color f0"); //---------------------------------------- printf("\n\tInforme o lad...
22.68
40
(translation_unit) "// Classificação de triangulo quanto aos lados\n\n#include "math.h"\n#include "stdlib.h"\n#include "locale.h"\n#include "stdio.h"\n\nmain()\n{\n \n //----------------------------------------\n float l1,l2,l3; \n setlocale(LC_ALL,"");\n \n //\n system ("color f0");\n //-------------------------------...
306
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 22.68, "nodes": 149, "errors": 0, "source_hash": "e9ea4c61791ac812bce4aa22a6464bbf46bd1957709ccb358a1bf57844a4e3f9", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "nclu...
6,489
c
/*========================================================================= * * Copyright NumFOCUS * * 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 * * https://www.apache.o...
38.54
109
(translation_unit) "/*=========================================================================\n *\n * Copyright NumFOCUS\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 * ...
478
20
{"language": "c", "success": true, "metadata": {"lines": 109, "avg_line_length": 38.54, "nodes": 312, "errors": 0, "source_hash": "378aa9ed5bdadb2051d7e1143f47ae615d853ba1f2f6e280092680487fc4afe8", "categorized_nodes": 189}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
6,490
c
#define LIBUSB_NANO 11014
25
1
(translation_unit) "#define LIBUSB_NANO 11014\n" (preproc_def) "#define LIBUSB_NANO 11014\n" (#define) "#define" (identifier) "LIBUSB_NANO" (preproc_arg) "11014"
5
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 25.0, "nodes": 4, "errors": 0, "source_hash": "9aa84d4c3be9d8ac308db13f77132648d11310541415c9b7d0e66ee92c0047d9", "categorized_nodes": 1}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define LIBUSB...
6,491
c
#define IDI_ICON 101 #define IDC_CURSOR 201
35.5
2
(translation_unit) "#define IDI_ICON 101\n#define IDC_CURSOR 201\n" (preproc_def) "#define IDI_ICON 101\n" (#define) "#define" (identifier) "IDI_ICON" (preproc_arg) "101" (preproc_def) "#define IDC_CURSOR 201\n" (#define) "#define" (ident...
9
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 35.5, "nodes": 8, "errors": 0, "source_hash": "79cf6c4592f75accd7bed44f524e78cc137ffc26e7c39e80e424b4753f2ad6a0", "categorized_nodes": 2}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define IDI_IC...
6,492
c
/* * pseultra/n64/os/include/os/boot/boot.h * Boot process header * * (C) pseudophpt 2018 */ /** * @file include/os/boot/boot.h * @brief Boot process headers * @date 1 Aug 2018 * @author pseudophpt * * This file provides definitions for structs and constants related to the boot process */ ...
11.36
70
(translation_unit) "/* \n * pseultra/n64/os/include/os/boot/boot.h \n * Boot process header \n * \n * (C) pseudophpt 2018 \n */ \n \n/** \n * @file include/os/boot/boot.h \n * @brief Boot process headers \n * @date 1 Aug 2018 \n * @author pseudophpt \n * \n * This file provides definitions for structs and constants ...
82
3
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 11.36, "nodes": 61, "errors": 0, "source_hash": "498562b307e77449810534eb45bd58ecbe0c902ac07f160246ce7acfeb435c78", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,493
c
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef __LINUX_TC_IPT_H #define __LINUX_TC_IPT_H #include <linux/pkt_cls.h> #define TCA_ACT_IPT 6 #define TCA_ACT_XT 10 enum { TCA_IPT_UNSPEC, TCA_IPT_TABLE, TCA_IPT_HOOK, TCA_IPT_INDEX, TCA_IPT_CNT, TCA_IPT_TM, TCA_IPT_TARG, TCA_IPT_PAD, __TCA...
21.85
20
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */\n#ifndef __LINUX_TC_IPT_H\n#define __LINUX_TC_IPT_H\n\n#include <linux/pkt_cls.h>\n\n#define TCA_ACT_IPT 6\n#define TCA_ACT_XT 10\n\nenum {\n TCA_IPT_UNSPEC,\n TCA_IPT_TABLE,\n TCA_IPT_HOOK,\n TCA_IPT_INDEX,\n TCA_IPT_CNT,\n TCA_IPT_TM,\...
56
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 21.85, "nodes": 43, "errors": 0, "source_hash": "ee8d0763dc0f5852a46369794cc16f80c7c1329cb7560b7f514a0bee86eff7c0", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,494
c
#ifndef _MANTRA_BASE_CHARACTER #define _MANTRA_BASE_CHARACTER #include "mantra_common.h" #include "mantra_class.h" #include "mantra_stat.h" #include "mantra_effect.h" #include "mantra_skill.h" class CMCharacter { public: CMCharacter(); ~CMCharacter(); void char_init(void); char name[MANTRA_TEXT_LEN]; ...
20.08
24
(translation_unit) "#ifndef _MANTRA_BASE_CHARACTER\n#define _MANTRA_BASE_CHARACTER\n\n#include "mantra_common.h"\n#include "mantra_class.h"\n#include "mantra_stat.h"\n#include "mantra_effect.h"\n#include "mantra_skill.h"\n\nclass CMCharacter {\npublic:\n CMCharacter();\n ~CMCharacter();\n void char_init(void);...
135
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 20.08, "nodes": 88, "errors": 0, "source_hash": "f683eb484fa86a34a80fc53d9894fb20434e29e47c4a55ebd283dd35820c6639", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,495
c
// RTCFrame.h : Declaration of the CRTCFrame #ifndef __RTCFRAME_H_ #define __RTCFRAME_H_ ///////////////////////////////////////////////////////////////////////////// // CRTCFrame // class ATL_NO_VTABLE CRTCFrame : public CComObjectRootEx<CComSingleThreadModel>, public CComCoClass<CRTCFrame, &CLS...
22.13
38
(translation_unit) "// RTCFrame.h : Declaration of the CRTCFrame \n \n#ifndef __RTCFRAME_H_ \n#define __RTCFRAME_H_ \n \n///////////////////////////////////////////////////////////////////////////// \n// CRTCFrame \n// \n \nclass ATL_NO_VTABLE CRTCFrame : \n public CComObjectRootEx<CComSingleThreadModel>, \n pub...
163
7
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 22.13, "nodes": 96, "errors": 0, "source_hash": "a11bc9e7e499970ac59205bbe9a349dbff225231b5b14e20a42eaeff8fcd1035", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,496
c
#pragma once #include "Control/TextInput.h" #include "GraphicalElements/Text.h" #include "Menus/Menu.h" #include "States/State.h" #include "States/StateMachine.h" #include "States/Level.h" namespace Menus { class GameOverMenu : public Menu, public States::State { private: GraphicalElements::Text titl...
29.41
27
(translation_unit) "#pragma once\n\n#include "Control/TextInput.h"\n#include "GraphicalElements/Text.h"\n#include "Menus/Menu.h"\n#include "States/State.h"\n#include "States/StateMachine.h"\n#include "States/Level.h"\n\nnamespace Menus {\n\n class GameOverMenu : public Menu, public States::State {\n private:\n ...
213
10
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 29.41, "nodes": 123, "errors": 0, "source_hash": "68bb10de25941df328f9443d51a136d3ecc82959827c12dccf65d4fe1a2c72c4", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
6,497
c
#ifndef H_ROOM #define H_ROOM #include "Entity.h" #include "EntityFactory.h" class Exit; class Item; class Interactable; struct EntityInfo; enum class Direction; class Room : public Entity { friend Entity* EntityFactory::createEntity(EntityInfo); private: Room(int id, const std::string& name, const std::string& ...
26.89
35
(translation_unit) "#ifndef H_ROOM\n#define H_ROOM\n\n#include "Entity.h"\n#include "EntityFactory.h"\nclass Exit;\nclass Item;\nclass Interactable;\nstruct EntityInfo;\nenum class Direction;\n\n\nclass Room :\n public Entity\n{ \n friend Entity* EntityFactory::createEntity(EntityInfo);\nprivate:\n Room(int id, const s...
302
18
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 26.89, "nodes": 183, "errors": 0, "source_hash": "3a01e2c720c8c33e4573642c2862615312afa99d63dbddd7825c89f44ed4a6f7", "categorized_nodes": 123}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,498
c
/*! * File HPMSAnimationAdapter.h */ #pragma once #include <common/HPMSObject.h> namespace hpms { class AnimationAdapter : public Object { public: inline const std::string Name() const override { return "AnimationAdapter"; } inline virtual ~AnimationAdapte...
22.38
24
(translation_unit) "/*!\n * File HPMSAnimationAdapter.h\n */\n\n#pragma once\n\n#include <common/HPMSObject.h>\n\nnamespace hpms\n{\n class AnimationAdapter : public Object\n {\n\n public:\n\n inline const std::string Name() const override\n {\n return "AnimationAdapter";\n }\n\...
143
10
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 22.38, "nodes": 94, "errors": 0, "source_hash": "96baee508a9b103e9816d8c41305834d4ff65e7548537f54a6d12f02b2de2cb0", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
6,499