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
///input data is text file containing UTF-8 encoding, data is converted //into multiple differing encodings UTF-16BE LE, UTF32BE LE, Windows 1252, //ISO Western Languages, and Mac OS Roman #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <stdbool.h> #define BUFFER_LENGTH 1024 //in code, endianness i...
22.96
128
(translation_unit) "///input data is text file containing UTF-8 encoding, data is converted\n//into multiple differing encodings UTF-16BE LE, UTF32BE LE, Windows 1252,\n//ISO Western Languages, and Mac OS Roman\n#include <stdio.h>\n#include <stdlib.h>\n#include <stdint.h>\n#include <stdbool.h>\n\n#define BUFFER_LENGTH ...
748
0
{"language": "c", "success": true, "metadata": {"lines": 128, "avg_line_length": 22.96, "nodes": 441, "errors": 0, "source_hash": "92dcb0c8391af2ce4f1e136d2c6a51bbbd3278265594d4dd6edb692052a17df8", "categorized_nodes": 322}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,300
c
/**************************************************************************** * Copyright 2018,2020 <NAME> * * Copyright 1998-2016,2017 Free Software Foundation, Inc. * * * * Permission is h...
33.09
165
(translation_unit) "/****************************************************************************\n * Copyright 2018,2020 <NAME> *\n * Copyright 1998-2016,2017 Free Software Foundation, Inc. *\n * ...
1,045
6
{"language": "c", "success": true, "metadata": {"lines": 165, "avg_line_length": 33.09, "nodes": 619, "errors": 0, "source_hash": "5f6d4c3d5c13b990a6b5364186cec0e0fcde007f5a11ca5b85554893bc812015", "categorized_nodes": 417}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,301
c
#ifndef __GAME_OBJECT_H__ #define __GAME_OBJECT_H__ #include "Globals.h" #include "rapidjson/document.h"// rapidjson's DOM-style API #include "rapidjson/prettywriter.h" // for stringify JSON #include "rapidjson/filewritestream.h" #include "rapidjson\allocators.h" #include "MathGeoLib/MathGeoLib.h" #include <vector> ...
24.49
77
(translation_unit) "#ifndef __GAME_OBJECT_H__\n#define __GAME_OBJECT_H__\n\n#include "Globals.h"\n\n#include "rapidjson/document.h"// rapidjson's DOM-style API\n#include "rapidjson/prettywriter.h" // for stringify JSON\n#include "rapidjson/filewritestream.h"\n#include "rapidjson\allocators.h"\n#include "MathGeoLib/Math...
534
12
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 24.49, "nodes": 353, "errors": 0, "source_hash": "0c2ec441a9a551d7ce3f81fcbf5dbc2fb7667f49e7a44cf94fc59d257c426c05", "categorized_nodes": 236}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,302
c
/** * @class Centipede * @brief The Centepede class encapsulates an enire Centipede which comprises of a train of cetipideBlock objects. * @author <NAME> 1099797 and <NAME> 1046955 * @file Centipede.h * */ #ifndef CENTIPEDE_H #define CENTIPEDE_H #include <vector> #include <memory> #include <tuple> ...
26.76
140
(translation_unit) "/** \n * @class Centipede \n * @brief The Centepede class encapsulates an enire Centipede which comprises of a train of cetipideBlock objects. \n * @author <NAME> 1099797 and <NAME> 1046955 \n * @file Centipede.h \n * \n */ \n#ifndef CENTIPEDE_H \n#define CENTIPEDE_H \n \n#include <vector> \n#inclu...
394
23
{"language": "c", "success": true, "metadata": {"lines": 140, "avg_line_length": 26.76, "nodes": 252, "errors": 0, "source_hash": "c91492b4cb7cc299bf17a3822c06a50afe6937d510489da9828483aa7ebe3e4e", "categorized_nodes": 165}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,303
c
#ifndef UTILS #define UTILS #include <bits/stdc++.h> #include <vector> #include <cstdlib> using namespace std; namespace utils{ class graph { public: int n; int m; int * edges_from; int * edges_to; int * edges; int * scores; void print_edges() { for(int i = 0; i < n; i++) { std::cout << "Starting " <...
22.21
181
(translation_unit) "#ifndef UTILS\n#define UTILS\n#include <bits/stdc++.h>\n#include <vector>\n#include <cstdlib>\n\nusing namespace std;\n\nnamespace utils{\nclass graph\n{\n public:\n int n;\n int m;\n int * edges_from;\n int * edges_to;\n int * edges;\n int * scores;\n\n void print_edges()\n {\n for(int i = 0; i < ...
1,284
18
{"language": "c", "success": true, "metadata": {"lines": 181, "avg_line_length": 22.21, "nodes": 791, "errors": 0, "source_hash": "91e7f103df3de12b722df25dc52b0356bc3219f36ce9f82bc67ad6ff64b1c98c", "categorized_nodes": 577}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,304
c
#pragma once class XRCORE_API CStreamReader : public IReaderBase<CStreamReader> { HANDLE m_file_mapping_handle; size_t m_start_offset; size_t m_file_size; size_t m_archive_size; size_t m_window_size; size_t m_current_offset_from_start; size_t m_current_window_size; u8* m_current_map_vi...
32.43
60
(translation_unit) "#pragma once\n\nclass XRCORE_API CStreamReader : public IReaderBase<CStreamReader> {\n HANDLE m_file_mapping_handle;\n size_t m_start_offset;\n size_t m_file_size;\n size_t m_archive_size;\n size_t m_window_size;\n\n size_t m_current_offset_from_start;\n size_t m_current_window_...
491
16
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 32.43, "nodes": 289, "errors": 0, "source_hash": "b04e36bbc07a095304d8c5eaeb23f48f59de1ca0385013f8dc5e205d3517e7db", "categorized_nodes": 185}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
4,305
c
/* * init.h * * Created on: Oct 24, 2018 * Author: jtst */ #ifndef INIT_H_ #define INIT_H_ //GPIO initialization #define SPI1_MOSI_PIN (GPIO_Pin_5) #define SPI1_SCK_PIN (GPIO_Pin_3) #define SPI1_LCK_PIN (GPIO_Pin_4) //Initializes GPIOA pins and associated peripherals // --> A07 and ADC ch. 7, A04 and DAC...
27.43
30
(translation_unit) "/*\n * init.h\n *\n * Created on: Oct 24, 2018\n * Author: jtst\n */\n\n#ifndef INIT_H_\n#define INIT_H_\n\n//GPIO initialization\n\n#define SPI1_MOSI_PIN (GPIO_Pin_5)\n#define SPI1_SCK_PIN (GPIO_Pin_3)\n#define SPI1_LCK_PIN (GPIO_Pin_4)\n\n//Initializes GPIOA pins and associated peripherals\n...
82
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 27.43, "nodes": 49, "errors": 0, "source_hash": "eab6f462b4a2daa267ad530b9e0c7ac39ff22ddb46cf037ca852ddde4f97b97c", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,306
c
/* -------------------------------------------------------------------------- * * File win32_crypto.c * Description Crypto random function. * Author <NAME> * * -------------------------------------------------------------------------- * * Copyright (C) 2010-201...
34.83
119
(translation_unit) "/* --------------------------------------------------------------------------\n *\n * File win32_crypto.c\n * Description Crypto random function.\n * Author <NAME>\n * \n * --------------------------------------------------------------------------\n * \n *...
349
0
{"language": "c", "success": true, "metadata": {"lines": 119, "avg_line_length": 34.83, "nodes": 159, "errors": 0, "source_hash": "4ebb01e5bc2a83141bef6f46d1864d4ae385f492a575201f34e18e20566f19d4", "categorized_nodes": 118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,307
c
// EXPECT: 8 int main() { struct { char a; int b; } x; struct { char a; int b; }* p = &x; x.a = 3; x.b = 5; return p->a + p->b; }
12.57
14
(translation_unit) "// EXPECT: 8\n\nint main() {\n struct {\n char a;\n int b;\n } x;\n\n struct {\n char a;\n int b;\n }* p = &x;\n\n x.a = 3;\n x.b = 5;\n\n return p->a + p->b;\n}" (comment) "// EXPECT: 8" (function_definition) "int main() {\n struct {\n ...
82
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 12.57, "nodes": 52, "errors": 0, "source_hash": "c4a286a5383d7f72bef12ebf4bcd5d11f7d8576820c9228f98fbf05f7d51eb16", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "in...
4,308
c
#ifndef __DALI_INTERNAL_INDICATOR_BUFFER_H__ #define __DALI_INTERNAL_INDICATOR_BUFFER_H__ /* * Copyright (c) 2014 Samsung Electronics Co., Ltd. * * 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 Lice...
31.68
73
(translation_unit) "#ifndef __DALI_INTERNAL_INDICATOR_BUFFER_H__\n#define __DALI_INTERNAL_INDICATOR_BUFFER_H__\n\n/*\n * Copyright (c) 2014 Samsung Electronics Co., Ltd.\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 m...
189
7
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 31.68, "nodes": 114, "errors": 0, "source_hash": "121ee5e4249a1152144dfccafbc6adeafe389de52c4f23caed0e5c68a5238915", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,309
c
/* This file is part of the MKR GSM library. Copyright (C) 2017 Arduino AG (http://www.arduino.cc/) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the Licen...
40.5
68
(translation_unit) "/*\n This file is part of the MKR GSM library.\n Copyright (C) 2017 Arduino AG (http://www.arduino.cc/)\n\n This library is free software; you can redistribute it and/or\n modify it under the terms of the GNU Lesser General Public\n License as published by the Free Software Foundation; either\...
222
4
{"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 40.5, "nodes": 143, "errors": 0, "source_hash": "f263599faef7a59920914d811744c9a1120e0a40d8b8f8dfab7e913486fe8d8b", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,310
c
#ifndef __REFLECT_MATCH_HANDLERS_HEADER__ #define __REFLECT_MATCH_HANDLERS_HEADER__ #include "document.h" #include "file.h" #include "tagger_types.h" #include <climits> #include <vector> #include <unordered_map> using namespace std; typedef vector<SERIAL> SERIALS; typedef unordered_set<SERIAL> ENTITY_SET; typedef u...
28.76
244
(translation_unit) "#ifndef __REFLECT_MATCH_HANDLERS_HEADER__\n#define __REFLECT_MATCH_HANDLERS_HEADER__\n\n#include "document.h"\n#include "file.h"\n#include "tagger_types.h"\n\n#include <climits>\n#include <vector>\n#include <unordered_map>\n\nusing namespace std;\n\ntypedef vector<SERIAL> SERIALS;\ntypedef unordered...
2,634
47
{"language": "c", "success": true, "metadata": {"lines": 244, "avg_line_length": 28.76, "nodes": 1581, "errors": 0, "source_hash": "c0bf183a989441ce9d4308caa41b7c494aab24eaa6a792447c09a0ff558afa58", "categorized_nodes": 1130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#if...
4,311
c
#pragma once #include "CoreMinimal.h" #include "MDFastBindingValueBase.h" #include "MDFastBindingValue_ContainerLength.generated.h" /** * Returns the number of elements in an Array, Set, or Map */ UCLASS(meta = (DisplayName = "Length")) class MDFASTBINDING_API UMDFastBindingValue_ContainerLength : public UMDFastBi...
29.21
28
(translation_unit) "ragma once\n\n#include "CoreMinimal.h"\n#include "MDFastBindingValueBase.h"\n#include "MDFastBindingValue_ContainerLength.generated.h"\n\n/**\n * Returns the number of elements in an Array, Set, or Map\n */\nUCLASS(meta = (DisplayName = "Length"))\nclass MDFASTBINDING_API UMDFastBindingValue_Contain...
195
11
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 29.21, "nodes": 136, "errors": 0, "source_hash": "8475ded30324ed886ca5e3f1ff19d26734e3761709bcf9da04f04a1b6a9e3a11", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma on...
4,312
c
/* Project: TotpCommonCrypto File: include/ByteSwap.h bytesswap.h compatible code for ios/macOS for operating endian. Copyright 2020 <NAME> <<EMAIL>> Released under the MIT license */ #ifndef BYTESWAP_H_ #define BYTESWAP_H_ #if HAVE_BYTESWAP_H #include <byteswap.h> #else #define bswap_16(value) \ ((((value) & 0xff)...
35.45
20
(translation_unit) "/*\nProject: TotpCommonCrypto\nFile: include/ByteSwap.h\n\nbytesswap.h compatible code for ios/macOS for operating endian. \n\nCopyright 2020 <NAME> <<EMAIL>>\nReleased under the MIT license\n*/\n#ifndef BYTESWAP_H_\n#define BYTESWAP_H_\n\n#if HAVE_BYTESWAP_H\n#include <byteswap.h>\n#else\n#define b...
44
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 35.45, "nodes": 35, "errors": 0, "source_hash": "ae32ac8e8e7525e28f4b9baf6e5ea766443482dafdaa8135b42ba690ed4081d0", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,313
c
/* * Copyright (C) 2005-2012 Team XBMC * http://xbmc.org * Copyright (C) 2012 <NAME>(Barcode Madness) * http://www.barcodemadness.com * * This Program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Fre...
34.5
72
(translation_unit) "/*\n * Copyright (C) 2005-2012 Team XBMC\n * http://xbmc.org\n \n * Copyright (C) 2012 <NAME>(Barcode Madness)\n * http://www.barcodemadness.com\n *\n * This Program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License...
451
23
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 34.5, "nodes": 269, "errors": 0, "source_hash": "7352578e34e7cad144edb9ddf060e8f9a94dccd8610a635da2bff9b971d496af", "categorized_nodes": 185}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
4,314
c
#ifndef GAME_H #define GAME_H #include <QPoint> #include <QMessageBox> #include "Map/MapManager.h" #include "Map/MapWidget.h" #include "SpriteManager.h" class QWidget; namespace Sokoban { ; class Map; class MapWidget; class MapManager; class Game { public: Game(const QString& gameDir =QString()); Game(QWi...
27.47
91
(translation_unit) "#ifndef GAME_H\n#define GAME_H\n\n#include <QPoint>\n#include <QMessageBox>\n\n#include "Map/MapManager.h"\n#include "Map/MapWidget.h"\n#include "SpriteManager.h"\n\nclass QWidget;\n\nnamespace Sokoban {\n;\n\nclass Map;\nclass MapWidget;\nclass MapManager;\n\nclass Game\n{\npublic:\n Game(const ...
653
31
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 27.47, "nodes": 376, "errors": 0, "source_hash": "21106cb6670ced21ebd0daa82da25796d2987b59c754dbef59e3f9c5a43902a3", "categorized_nodes": 254}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,315
c
inherit "room/room"; object monster; reset(arg) { if(!monster) { monster = clone_object("/wizards/grathlek/area1/monsies/fox.c"); move_object(monster, this_object()); } add_exit("south","/wizards/grathlek/area1/room15.c"); add_exit("north","/wizards/grathlek/area1/room13.c"); short_desc = "Path go...
29.61
18
(translation_unit) "inherit "room/room";\nobject monster; \n \nreset(arg) {\n if(!monster) {\n monster = clone_object("/wizards/grathlek/area1/monsies/fox.c");\n move_object(monster, this_object());\n }\n add_exit("south","/wizards/grathlek/area1/room15.c");\n add_exit("north","/wizards/grathlek/area1/room13.c");...
126
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 29.61, "nodes": 56, "errors": 0, "source_hash": "83b764f95d5bcc95d488a3a7cac8f2eb2dc8ea123fd8077d268acea784b07054", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "concatenated_string", "text": "in...
4,316
c
// Meridian 59, Copyright 1994-2012 <NAME> and <NAME>. // All rights reserved. // // This software is distributed under a license that is described in // the LICENSE file that accompanies it. // // Meridian is a registered trademark. /* * draw.c: Draw bitmaps. * * You must call DrawInit before drawing any bitmaps, ...
29.29
217
(translation_unit) "// Meridian 59, Copyright 1994-2012 <NAME> and <NAME>.\n// All rights reserved.\n//\n// This software is distributed under a license that is described in\n// the LICENSE file that accompanies it.\n//\n// Meridian is a registered trademark.\n/*\n * draw.c: Draw bitmaps.\n *\n * You must call DrawIni...
1,464
0
{"language": "c", "success": true, "metadata": {"lines": 217, "avg_line_length": 29.29, "nodes": 922, "errors": 0, "source_hash": "8ffe73f496c0a5a63af60fc3b123f978016db63bd5b7ca55bbff2083420ce91b", "categorized_nodes": 660}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,317
c
#include "timekeeper.h" void timekeeper_init(timekeeper_t* timekeeper) { timekeeper->time = 0; } int timekeeper_increase_by(timekeeper_t* timekeeper, int duration, int current_time) { int start; #pragma omp critical { start = max(current_time, timekeeper->time); timekeeper->time = start + ...
22.6
15
(translation_unit) "#include "timekeeper.h"\n\nvoid timekeeper_init(timekeeper_t* timekeeper)\n{\n timekeeper->time = 0;\n}\n\nint timekeeper_increase_by(timekeeper_t* timekeeper, int duration, int current_time)\n{\n int start;\n#pragma omp critical\n {\n start = max(current_time, timekeeper->time);\n ...
96
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 22.6, "nodes": 62, "errors": 0, "source_hash": "5957bb35e64094b4c3a0d98d3a24bf4edf91a3a575d0233dc115320959aa4675", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
4,318
c
/* * Copyright (c) 2005-2014 <NAME>, et al. * Copyright (c) 2015-2016 HarveyOS et al. * * Use of this source code is governed by a MIT-style * license that can be found in the LICENSE.mit file. */ #ifndef INTSCAN_H #define INTSCAN_H #ifndef __C99 #define __C99 #endif #include <stdio.h> unsigned long long __in...
23.87
15
(translation_unit) "/*\n * Copyright (c) 2005-2014 <NAME>, et al.\n * Copyright (c) 2015-2016 HarveyOS et al.\n *\n * Use of this source code is governed by a MIT-style\n * license that can be found in the LICENSE.mit file.\n */\n\n#ifndef INTSCAN_H\n#define INTSCAN_H\n\n#ifndef __C99\n#define __C99\n#endif\n\n#include...
47
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 23.87, "nodes": 39, "errors": 0, "source_hash": "c681aaae89fa028ffd9c80cbd44774cc7a6138d7f30b3f1bfe2cb2f73aeeef9d", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,319
c
#pragma once #include <QAbstractListModel> #include <QLoggingCategory> class ServiceDiscoveryModel : public QAbstractListModel { Q_OBJECT public: explicit ServiceDiscoveryModel(const QString &type, QObject *parent = nullptr); ~ServiceDiscoveryModel(); enum ExtraRoles { NameRole = Qt::UserRole, AddressRole, ...
30.42
31
(translation_unit) "#pragma once\n\n#include <QAbstractListModel>\n#include <QLoggingCategory>\n\nclass ServiceDiscoveryModel : public QAbstractListModel\n{\n Q_OBJECT\npublic:\n explicit ServiceDiscoveryModel(const QString &type, QObject *parent = nullptr);\n ~ServiceDiscoveryModel();\n\n enum ExtraRoles\n {\n NameRo...
270
16
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 30.42, "nodes": 157, "errors": 0, "source_hash": "786157c000bbc6e55ab58a1160aba3da18a9a8d8b9635822469f46b2d8d1fa37", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
4,320
c
/* ** EPITECH PROJECT, 2020 ** CPE_dante_2019 ** File description: ** main */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "generator.h" int print_help(int ret) { printf("\n./generator x y [perfect]\n\n"); printf("x: width of the maze (must be > 0)\n"); printf("y: heigh of the maze ...
22.09
33
(translation_unit) "/*\n** EPITECH PROJECT, 2020\n** CPE_dante_2019\n** File description:\n** main\n*/\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include "generator.h"\n\nint print_help(int ret)\n{\n printf("\n./generator x y [perfect]\n\n");\n printf("x: width of the maze (must be > 0)\n")...
252
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 22.09, "nodes": 150, "errors": 0, "source_hash": "37e6a35135859dd1f6095b5ba0dde617dc6f63d7bef7e026861a1d89b35eaae8", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,321
c
/* * Copyright 2019, Data61 * Commonwealth Scientific and Industrial Research Organisation (CSIRO) * ABN 41 687 119 230. * * This software may be distributed and modified according to the terms of * the BSD 2-Clause license. Note that NO WARRANTY is provided. * See "LICENSE_BSD2.txt" for details. * * @TAG(DATA...
35.85
26
(translation_unit) "/*\n * Copyright 2019, Data61\n * Commonwealth Scientific and Industrial Research Organisation (CSIRO)\n * ABN 41 687 119 230.\n *\n * This software may be distributed and modified according to the terms of\n * the BSD 2-Clause license. Note that NO WARRANTY is provided.\n * See "LICENSE_BSD2.txt" f...
155
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 35.85, "nodes": 91, "errors": 0, "source_hash": "7b682615e6cf570ba25c91342d4c08e2e230152b4224448ad9143b68a25e5eed", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
4,322
c
// // PrivatePod.h // PrivatePod // // Created by xuyan on 16/4/21. // Copyright © 2016年 HNA. All rights reserved. // #import <Foundation/Foundation.h> @interface PrivatePod : NSObject @end
18.4
10
(translation_unit) "//\n// PrivatePod.h\n// PrivatePod\n//\n// Created by xuyan on 16/4/21.\n// Copyright © 2016年 HNA. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface PrivatePod : NSObject\n\n@end\n" (comment) "//" (comment) "// PrivatePod.h" (comment) "// PrivatePod" (comment)...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 18.4, "nodes": 10, "errors": 0, "source_hash": "5cdfc69ac9d06e05e08ec0273093dce97c6a544b79906142d6f17f11176d066a", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Found...
4,323
c
#pragma once #include "FirstWorkingReporter.h" #include "WindowsReporters.h" #include "MacReporters.h" #include "LinuxReporters.h" namespace ApprovalTests { class DiffReporter : public FirstWorkingReporter { public: DiffReporter() : FirstWorkingReporter({new Mac::MacDiffReporter(), ...
25.94
18
(translation_unit) "#pragma once\n\n#include "FirstWorkingReporter.h"\n#include "WindowsReporters.h"\n#include "MacReporters.h"\n#include "LinuxReporters.h"\n\nnamespace ApprovalTests\n{\n class DiffReporter : public FirstWorkingReporter\n {\n public:\n DiffReporter()\n : FirstWorkingReporter...
103
4
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 25.94, "nodes": 45, "errors": 0, "source_hash": "f746558a77c1258d2bcb3871a08cfe113a023434cc026d02f56d1d85ec2917f3", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
4,324
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Dec 5 2019 09:59:31). // // Copyright (C) 1997-2019 <NAME>. // @class UIActivityIndicatorView; @interface PSBarButtonSpinnerView : UIBarButtonItem { UIActivityIndicatorView *_spinner; } // - (void).cxx_destruct; - (void)stopAnimating; - (v...
21.12
16
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Dec 5 2019 09:59:31).\n//\n// Copyright (C) 1997-2019 <NAME>.\n//\n\n\n@class UIActivityIndicatorView;\n\n@interface PSBarButtonSpinnerView : UIBarButtonItem\n{\n UIActivityIndicatorView *_spinner;\n}\n\n// - (void).cxx_des...
65
7
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 21.12, "nodes": 36, "errors": 0, "source_hash": "b2732efe88fe8935ac0a69abeae4faf5a6c8c39535e7be1f5320ad528a479900", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nu...
4,325
c
#ifndef DHT_H #define DHT_H #if ARDUINO >= 100 #include "Arduino.h" #else #include "WProgram.h" #endif /* DHT library MIT license written by Adafruit Industries */ // how many timing transitions we need to keep track of. 2 * number bits + extra #define MAXTIMINGS 85 #define DHT11 11 #define DHT...
16.77
39
(translation_unit) "#ifndef DHT_H \n#define DHT_H \n#if ARDUINO >= 100 \n #include "Arduino.h" \n#else \n #include "WProgram.h" \n#endif \n \n/* DHT library \n \nMIT license \nwritten by Adafruit Industries \n*/ \n \n// how many timing transitions we need to keep track of. 2 * number bits + extra \n#define MAXTIMINGS ...
160
2
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 16.77, "nodes": 111, "errors": 0, "source_hash": "6280f0463a4d293a1b924a70693b14a7eb9d14270c2d855d209ac7d7dfe9a13b", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,326
c
#include <stdio.h> int main(void) { printf("박주원 \n"); printf("대한민국 서울 \n"); printf("%d-%d-%d\n", 10, 3490, 2516); printf("Good \nmorning \neverybody\n"); printf("%dx%d=%d\n", 4, 5, 20); printf("%d/%d=%d\n", 4 ,2, 2); return 0; }
22.73
11
(translation_unit) "#include <stdio.h> \n\nint main(void) \n{\n printf("박주원 \n");\n printf("대한민국 서울 \n");\n printf("%d-%d-%d\n", 10, 3490, 2516);\n printf("Good \nmorning \neverybody\n");\n printf("%dx%d=%d\n", 4, 5, 20);\n printf("%d/%d=%d\n", 4 ,2, 2);\n return 0;\n}" (preproc_include) "#incl...
114
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 22.73, "nodes": 51, "errors": 0, "source_hash": "c3b9190a79ff35ea0cf7c9e13e230252bc2a7efa952a6bcd4ecbc9ea7e224588", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
4,327
c
//+------------------------------------------------------------------------- // // Microsoft Windows // // Copyright (C) Microsoft Corporation, 1997 - 1999 // // File: misc.h // //-------------------------------------------------------------------------- #ifndef _MISC_H_ #define _MISC_H_ #define...
28.15
210
(translation_unit) "//+------------------------------------------------------------------------- \n// \n// Microsoft Windows \n// \n// Copyright (C) Microsoft Corporation, 1997 - 1999 \n// \n// File: misc.h \n// \n//-------------------------------------------------------------------------- \n \n#ifndef _MISC_H...
1,126
22
{"language": "c", "success": true, "metadata": {"lines": 210, "avg_line_length": 28.15, "nodes": 790, "errors": 0, "source_hash": "9d70334c7e489ecd1d463efb26086fdb50181778bb2cf6a34ef39b9284e6f7b3", "categorized_nodes": 610}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,328
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" #import "NSCopying.h" @interface PVPersonDeduperProfile : NSObject <NSCopying> { BOOL _shouldRelaxThreshold; double _strictMaximumDistance; double _norm...
40.52
21
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n#import "NSCopying.h"\n\n@interface PVPersonDeduperProfile : NSObject <NSCopying>\n{\n BOOL _shouldRelaxThreshold;\n double _strict...
134
19
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 40.52, "nodes": 90, "errors": 0, "source_hash": "24acfd6115ada7a1a0ff539429a0880eaa003afa6d659455cb98ca0c564ae8bd", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
4,329
c
// Copyright 2018, Intel Corporation. #pragma once #include <Metal/MTLBuffer.h> #include <Metal/MTLCommandBuffer.h> #include <Metal/MTLCommandQueue.h> #include <Metal/MTLComputePipeline.h> #include <Metal/MTLDevice.h> #include <Metal/MTLLibrary.h> #include <string> #include <vector> #include "tile/base/hal.h" name...
40.41
222
(translation_unit) "// Copyright 2018, Intel Corporation.\n\n#pragma once\n\n#include <Metal/MTLBuffer.h>\n#include <Metal/MTLCommandBuffer.h>\n#include <Metal/MTLCommandQueue.h>\n#include <Metal/MTLComputePipeline.h>\n#include <Metal/MTLDevice.h>\n#include <Metal/MTLLibrary.h>\n\n#include <string>\n#include <vector>\n...
2,939
190
{"language": "c", "success": true, "metadata": {"lines": 222, "avg_line_length": 40.41, "nodes": 1694, "errors": 0, "source_hash": "e55c67c6ed76aa05bb52a54ce6c1ff75db8aef26d666ed4564408fb26169ed53", "categorized_nodes": 1126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pra...
4,330
c
/** * @file * @author <EMAIL> * @date 2013/12/26 */ #import <CoreData/CoreData.h> /** * @class PersistentManager * @brief 数据库存储类 * @author <EMAIL> * @date 2013/12/06 */ @interface PersistentManager : NSObject + (PersistentManager *)sharedInstance; /// @brief 存储上下文 @property (readonly, strong, nonatomic) NSM...
20.26
19
(translation_unit) "/**\n * @file\n * @author <EMAIL>\n * @date 2013/12/26\n */\n#import <CoreData/CoreData.h>\n\n/**\n * @class PersistentManager\n * @brief 数据库存储类\n * @author <EMAIL>\n * @date 2013/12/06\n */\n@interface PersistentManager : NSObject\n\n+ (PersistentManager *)sharedInstance;\n\n/// @brief 存储上下文\n@prop...
61
6
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 20.26, "nodes": 38, "errors": 0, "source_hash": "3971e6fc3355dfd5d036268eeb9aa05517e7dbd022decf6bea10984d917ca463", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
4,331
c
#ifdef APP_BETA_LABS #include "usr/beta_labs/cmd/cmd_dtc.h" #include "sys/commands.h" #include "sys/defines.h" #include "usr/beta_labs/task_dtc.h" #include <stdint.h> #include <stdlib.h> #include <string.h> static command_entry_t cmd_entry; #define NUM_HELP_ENTRIES (3) static command_help_t cmd_help[NUM_HELP_ENTRIES...
30.22
78
(translation_unit) "#ifdef APP_BETA_LABS\n\n#include "usr/beta_labs/cmd/cmd_dtc.h"\n#include "sys/commands.h"\n#include "sys/defines.h"\n#include "usr/beta_labs/task_dtc.h"\n#include <stdint.h>\n#include <stdlib.h>\n#include <string.h>\n\nstatic command_entry_t cmd_entry;\n\n#define NUM_HELP_ENTRIES (3)\nstatic command...
498
0
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 30.22, "nodes": 262, "errors": 0, "source_hash": "a441b1fe5f2f58b4fb5fd0790a9a09e004c764dc6b471ae9cd86c4018bc69ae5", "categorized_nodes": 199}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef...
4,332
c
#pragma once #include "ReflectionBase.h" #include "../Basic/vtable.h" namespace Ubpa { template<typename Obj> struct Reflection; struct ReflectionMngr { static inline ReflectionMngr& Instance(); // Args must match exactly template<typename... Args> void* Create(std::string_view name, Args... args) const;...
29.35
26
(translation_unit) "#pragma once\n\n#include "ReflectionBase.h"\n#include "../Basic/vtable.h"\n\nnamespace Ubpa {\n template<typename Obj>\n struct Reflection;\n\n struct ReflectionMngr {\n static inline ReflectionMngr& Instance();\n\n // Args must match exactly\n template<typename... Args>\n void* Create(std::stri...
242
20
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 29.35, "nodes": 165, "errors": 0, "source_hash": "7647c976e946985dd41a3e05863412b3479384f2558a3fcb521be02df0a0dc33", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
4,333
c
// Demonstrates problem with assigning a pointer to pointer inside inline function // https://gitlab.com/camelot/kickc/-/issues/564 typedef char uint8_t; uint8_t sieveFlags[128]; void main() { clearSieveData(); } inline void clearSieveData() { uint8_t *p = sieveFlags; uint8_t **pp = &p + 1; for (register uin...
23.12
17
(translation_unit) "// Demonstrates problem with assigning a pointer to pointer inside inline function\n// https://gitlab.com/camelot/kickc/-/issues/564\n\ntypedef char uint8_t;\n\nuint8_t sieveFlags[128];\n\nvoid main() {\n clearSieveData();\n}\n\ninline void clearSieveData() {\n uint8_t *p = sieveFlags;\n uint8_t ...
127
6
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 23.12, "nodes": 84, "errors": 0, "source_hash": "26121eff92d6aa191341bfd92846bca0fb57017234269264173cdc4836aef381", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "typede...
4,334
c
#ifndef __OPERATOR_H__ #define __OPERATOR_H__ #include "Builtins.h" #include "Operand.h" class Operator : public Word { protected: virtual void read(Machine &m) = 0; private: virtual std::ostream &print(std::ostream &strm) const; friend std::ostream& operator<<(std::ostream&, const Word&); }; class Addition...
26.89
19
(translation_unit) "#ifndef __OPERATOR_H__\n#define __OPERATOR_H__\n\n#include "Builtins.h"\n#include "Operand.h"\n\nclass Operator : public Word {\n protected:\n virtual void read(Machine &m) = 0;\n\n private:\n virtual std::ostream &print(std::ostream &strm) const;\n friend std::ostream& operator<<(std::ostream&, ...
203
14
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 26.89, "nodes": 104, "errors": 0, "source_hash": "7b089a58aa05de475fd186bec0703fc229e67071ee7da033ddd152340ae90166", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,335
c
// // shape.hpp // vulkan-gui-test // // Created by <NAME> on 8/8/19. // Copyright © 2019 <NAME>. All rights reserved. // #pragma once #include <string> #include <vector> #include "mesh.h" #include "../core/object.h" #include "transform.h" #include <limits> namespace vk { template< uint32_t NUM_ATTAC...
26.24
87
(translation_unit) "//\n// shape.hpp\n// vulkan-gui-test\n//\n// Created by <NAME> on 8/8/19.\n// Copyright © 2019 <NAME>. All rights reserved.\n//\n\n#pragma once\n\n\n#include <string>\n#include <vector>\n\n#include "mesh.h"\n#include "../core/object.h"\n#include "transform.h"\n#include <limits>\n\n\nnamespace vk...
587
28
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 26.24, "nodes": 373, "errors": 0, "source_hash": "47efcf33f3004afb40edc44ca022a84f3a336f6d61d7c9e643f7892258ab0a08", "categorized_nodes": 248}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "pragma ...
4,336
c
/* * Program: NT environment routines * * Author: <NAME> * Networks and Distributed Computing * Computing & Communications * University of Washington * Administration Building, AG-44 * Seattle, WA 98195 * Internet: <EMAIL> * * Date: 1 August 1988 * Last Edited: 29 October 2003 * * The IMAP toolkit...
30.85
53
(translation_unit) "/*\n * Program: NT environment routines\n *\n * Author: <NAME>\n * Networks and Distributed Computing\n * Computing & Communications\n * University of Washington\n * Administration Building, AG-44\n * Seattle, WA 98195\n * Internet: <EMAIL>\n *\n * Date: 1 August 1988\n * Last Edited: 29 Octo...
309
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 30.85, "nodes": 241, "errors": 0, "source_hash": "437671b0b30aa605b101e355af661e43ef2477bb85b8c298374d5b3a94a9a703", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_function_def", "text": ...
4,337
c
/* * This file is part of hFramework * * Copyright (C) 2014 Husarion Sp. z o.o. <husarion.com> - All Rights Reserved * * Unauthorized copying of this file and the hFramework library, via any medium * is strictly prohibited. * Proprietary and confidential. */ #ifndef __H_SCRIPTING_LANGAUGE__ #define __H_SCRIPTI...
26.77
26
(translation_unit) "/*\n * This file is part of hFramework\n *\n * Copyright (C) 2014 Husarion Sp. z o.o. <husarion.com> - All Rights Reserved\n *\n * Unauthorized copying of this file and the hFramework library, via any medium\n * is strictly prohibited.\n * Proprietary and confidential.\n*/\n\n#ifndef __H_SCRIPTING_...
128
6
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 26.77, "nodes": 92, "errors": 0, "source_hash": "6793eff6074093eb53fd445230de54dd06c93b9bb1a4c406d8c9f371c59fd3bf", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,338
c
//<NAME> //<NAME> #include "fat.h" void init(void) { FILE* ptr_file; int i; ptr_file = fopen(fat_name,"wb"); for (i = 0; i < 2; ++i) boot_block[i] = 0xbb; fat[0] = 0xfffd; // boot block for (i = 1; i < 9; ++i) fat[i] = 0xfffe; // FAT fat[9] = 0xffff; // fim do arquivo for (i = 10; i < NUM_CLUSTER; ++i) ...
26.39
89
(translation_unit) "//<NAME>\n//<NAME>\n#include "fat.h"\n\nvoid init(void)\n{\n FILE* ptr_file;\n int i;\n ptr_file = fopen(fat_name,"wb");\n for (i = 0; i < 2; ++i)\n boot_block[i] = 0xbb;\n fat[0] = 0xfffd; // boot block\n for (i = 1; i < 9; ++i)\n fat[i] = 0xfffe; // FAT\n fat[9] = 0xffff; // fim do arquivo \n fo...
1,021
0
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 26.39, "nodes": 548, "errors": 0, "source_hash": "e5be43ccd6c19861f1f8a403c09c42275f2e39cec6daa130a99e9f0d2f50e1ad", "categorized_nodes": 433}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,339
c
#pragma once #include <memory> #include "ButtonConfig.h" #include "ComponentOwner.h" #include "InputManager.h" #include "KeyAction.h" #include "RendererPool.h" #include "Timer.h" #include "UIComponent.h" namespace components::ui { class Button : public UIComponent { public: Button(const std::shared_ptr<core::Sha...
31.14
35
(translation_unit) "#pragma once\n\n#include <memory>\n\n#include "ButtonConfig.h"\n#include "ComponentOwner.h"\n#include "InputManager.h"\n#include "KeyAction.h"\n#include "RendererPool.h"\n#include "Timer.h"\n#include "UIComponent.h"\n\nnamespace components::ui\n{\nclass Button : public UIComponent\n{\npublic:\n B...
338
24
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 31.14, "nodes": 187, "errors": 0, "source_hash": "24b4ee8c74ee4b55674715b952eb85d594804feeee662828c66e02f36edbfc3c", "categorized_nodes": 129}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
4,340
c
#include<stdio.h> int main(void) { char c; printf("Letra: "); scanf("%c", &c); switch(c) { case 'a': case 'e': case 'i': case 'o': case 'u': printf("Vogal\n"); break; default: printf("Não é vogal\n"); } }
13.41
17
(translation_unit) "#include<stdio.h>\n\nint main(void) {\n char c;\n\n printf("Letra: ");\n scanf("%c", &c); \n switch(c) {\n case 'a':\n case 'e':\n case 'i':\n case 'o':\n case 'u': \n printf("Vogal\n");\n break;\n default:\n printf("Não é vogal\n");\n }\n}\n" (preproc_include) "#include<st...
120
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 13.41, "nodes": 71, "errors": 0, "source_hash": "674c3375a2e9a85504247f2d2464b672c86226f1919d2afb916667071e104bec", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
4,341
c
/******************************************************************************* * xdir by <NAME> * Purpose: * This program uses low level I/O functions to create an xdir command in C. * Command Parameters: * xdir directory switches * Input: * Directory * -l (switch) * -a (switch) * Results: * xd...
31.19
180
(translation_unit) "/*******************************************************************************\n * xdir by <NAME>\n * Purpose:\n * This program uses low level I/O functions to create an xdir command in C.\n * Command Parameters:\n * xdir directory switches\n * Input:\n * Directory\n * -l (switch)\n * -a...
1,177
0
{"language": "c", "success": true, "metadata": {"lines": 180, "avg_line_length": 31.19, "nodes": 644, "errors": 0, "source_hash": "054faab22646b0877e9986932f19439b7ade61b59d218e4ee6d00cb4801dd4b5", "categorized_nodes": 452}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,342
c
#include <stdio.h> #include <stdint.h> #include <stddef.h> #include <string.h> #include "esp_wifi.h" #include "esp_system.h" #include "nvs_flash.h" #include "esp_event_loop.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/semphr.h" #include "freertos/queue.h" #include "freertos/event_gr...
35.17
63
(translation_unit) "#include <stdio.h>\n#include <stdint.h>\n#include <stddef.h>\n#include <string.h>\n#include "esp_wifi.h"\n#include "esp_system.h"\n#include "nvs_flash.h"\n#include "esp_event_loop.h"\n\n#include "freertos/FreeRTOS.h"\n#include "freertos/task.h"\n#include "freertos/semphr.h"\n#include "freertos/queue...
483
2
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 35.17, "nodes": 263, "errors": 0, "source_hash": "296c58643598c8d7aab0d6134b799e2111972def93218fcbe337f6f3eb3781e4", "categorized_nodes": 184}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,343
c
#include "stddefx.h" /********/ /* USES */ /********/ /* libs ext. <>, our "" */ #include "misc.h" #include "csf.h" #include "app.h" /* GetOpt, InstallArgs, ArgArguments */ /* apps. called */ #include "map2col.h" #include <string.h> /* strchr */ /*************/ /* EXTERNALS */ /*************/ /*****************...
23.09
237
(translation_unit) "#include "stddefx.h" \n\n\n/********/\n/* USES */\n/********/\n\n/* libs ext. <>, our "" */\n#include "misc.h"\n#include "csf.h"\n#include "app.h" /* GetOpt, InstallArgs, ArgArguments */\n\n/* apps. called */\n#include "map2col.h"\n#include <string.h> /* strchr */\n\n/*************/\n/* EXTERNALS *...
1,822
0
{"language": "c", "success": true, "metadata": {"lines": 237, "avg_line_length": 23.09, "nodes": 1088, "errors": 0, "source_hash": "a0406260f6041b54372f561836649a91071330749b5947d3b5fa0d8a4abbbf4a", "categorized_nodes": 703}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
4,344
c
// // Created by <NAME> on 3/23/14. // Copyright (c) 2014 Pointwelve Studio. All rights reserved. // @import UIKit; @interface UIDevice (Hardware) - (BOOL)isSimulator; - (BOOL)isLegacy; @end @interface UIDevice (SystemVersion) + (CGFloat)iosVersion; @end
18.69
13
(translation_unit) "//\n// Created by <NAME> on 3/23/14.\n// Copyright (c) 2014 Pointwelve Studio. All rights reserved.\n//\n\n@import UIKit;\n\n@interface UIDevice (Hardware)\n- (BOOL)isSimulator;\n\n- (BOOL)isLegacy;\n@end\n\n\n@interface UIDevice (SystemVersion)\n\n+ (CGFloat)iosVersion;\n\n@end\n" (comment) "//" ...
67
10
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 18.69, "nodes": 40, "errors": 0, "source_hash": "0428e64b21aa28ee9e262f58c6de44f6272048a7ee370282b8cf4bd52dc9f928", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nu...
4,345
c
#include <windows.h> #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <string.h> #include "kernel.h" #include "keyboard_handler.h" #include "terminal_handler.h" #include "define.h" //----------------------------------------------------------------------------------------------------------...
31.02
356
(translation_unit) "#include <windows.h> \n#include <stdio.h> \n#include <stdlib.h> \n#include <pthread.h> \n#include <string.h> \n#include "kernel.h" \n#include "keyboard_handler.h" \n#include "terminal_handler.h" \n#include "define.h" \n \n//----------------------------------------------------------------------------...
2,435
0
{"language": "c", "success": true, "metadata": {"lines": 356, "avg_line_length": 31.02, "nodes": 1422, "errors": 0, "source_hash": "ed4c963ad8b20891b45c938d8a8f8f54596d99e41c0933288889a477d3010fc8", "categorized_nodes": 1046}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
4,346
c
/* * atmel_drv.c * * Created on: Feb 1, 2016 * Author: water.zhou */ #include "bsp/include/nm_bsp.h" #include "nmi_uart.h" #include "atmel_drv.h" #include "crt_iface.h" #include "spi_flash_map.h" #include "app_main.h" #include "string.h" static tstrOsTimer gstrAtmelTimer; static int g_iCoreTimerInterruptTim...
24.49
106
(translation_unit) "/*\n * atmel_drv.c\n *\n * Created on: Feb 1, 2016\n * Author: water.zhou\n */\n#include "bsp/include/nm_bsp.h"\n#include "nmi_uart.h"\n#include "atmel_drv.h"\n#include "crt_iface.h"\n#include "spi_flash_map.h"\n#include "app_main.h"\n#include "string.h"\n\nstatic tstrOsTimer gstrAtmelTimer;\n...
647
3
{"language": "c", "success": true, "metadata": {"lines": 106, "avg_line_length": 24.49, "nodes": 383, "errors": 0, "source_hash": "0fcdc653336f8f9fc210d424e061823917110caf0c8ab1f935a07b4f6072e145", "categorized_nodes": 275}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,347
c
#pragma once #include<iostream> #include<unordered_map> #include<string> #include"Node.h" #include"Schema.h" #include"../utils/Serializable.h" using namespace std; class SerializableEdge : public Serializable { public: long id; long schemaId; long originNode; long targetNode; SerializableEdge(); //~SerializableE...
23.46
37
(translation_unit) "#pragma once\n#include<iostream>\n#include<unordered_map>\n#include<string>\n#include"Node.h"\n#include"Schema.h"\n#include"../utils/Serializable.h"\nusing namespace std;\n\nclass SerializableEdge : public Serializable {\npublic:\n long id;\n long schemaId;\n long originNode;\n long targetNode;\n Se...
294
8
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 23.46, "nodes": 198, "errors": 0, "source_hash": "dde42e677f95cfc598e79e56092dda91c71e859348cc6026eceb71413df26ee1", "categorized_nodes": 139}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
4,348
c
// // Created by Xiyun on 2016/12/9. // #ifndef CPPPRIMER5ELEARNING_STRVEC_H #define CPPPRIMER5ELEARNING_STRVEC_H #include <memory> /* for allocator */ #include <string> #include <cstddef> /* for size_t */ class StrVec { public: StrVec() : elements(nullptr), first_free(nullptr), cap(nullptr) { } ...
28.4
35
(translation_unit) "//\n// Created by Xiyun on 2016/12/9.\n//\n\n#ifndef CPPPRIMER5ELEARNING_STRVEC_H\n#define CPPPRIMER5ELEARNING_STRVEC_H\n\n#include <memory> /* for allocator */\n#include <string>\n#include <cstddef> /* for size_t */\n\nclass StrVec {\npublic:\n\n StrVec() :\n elements(nullptr), first_...
341
17
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 28.4, "nodes": 187, "errors": 0, "source_hash": "b424c538afada4785ae66092f867fc9181df8c52a9a066bbf6cbaef6bdeb11d5", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,349
c
// // Copyright (c) 2019-2020 IOTech // // SPDX-License-Identifier: Apache-2.0 // #ifndef _IOT_TYPECODE_H_ #define _IOT_TYPECODE_H_ /** * @file * @brief IOTech TypeCode API */ #include "iot/data.h" #ifdef __cplusplus extern "C" { #endif /** * @brief Allocate a basic typecode * * The function allocates a type...
34.75
118
(translation_unit) "//\n// Copyright (c) 2019-2020 IOTech\n//\n// SPDX-License-Identifier: Apache-2.0\n//\n\n#ifndef _IOT_TYPECODE_H_\n#define _IOT_TYPECODE_H_\n\n/**\n * @file\n * @brief IOTech TypeCode API\n */\n\n#include "iot/data.h"\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n/**\n * @brief Allocate a basic typ...
231
0
{"language": "c", "success": true, "metadata": {"lines": 118, "avg_line_length": 34.75, "nodes": 157, "errors": 0, "source_hash": "971f1e6b6adbf67878f9ec3d412c9636fbaeb26899ada198dbeeb74b794b9978", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,350
c
//===- PartialInlining.h - Inline parts of functions ------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
40.54
24
(translation_unit) "//===- PartialInlining.h - Inline parts of functions ------------*- C++ -*-===//\n//\n// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.\n// See https://llvm.org/LICENSE.txt for license information.\n// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception\n//\n//===-...
75
3
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 40.54, "nodes": 33, "errors": 0, "source_hash": "4b517e52be579870420d0bfe5d57dfa232ddcd28fecd65d46d8ff110b8b7783a", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,351
c
#include "pay.h" #include "unity.h" #include "unity_fixture.h" #include <time.h> #include <stdlib.h> TEST_GROUP(Payment); // Antes do teste unitario TEST_SETUP(Payment) { } // Depois do teste unitario TEST_TEAR_DOWN(Payment) { } // Testa classes de equivalencia validas TEST(Payment, TestPay1) { TEST_ASSER...
29.57
44
(translation_unit) "#include "pay.h"\n#include "unity.h"\n#include "unity_fixture.h"\n#include <time.h>\n#include <stdlib.h>\n\nTEST_GROUP(Payment);\n\n// Antes do teste unitario\nTEST_SETUP(Payment)\n{\n\n}\n\n// Depois do teste unitario\nTEST_TEAR_DOWN(Payment)\n{\n \n}\n\n// Testa classes de equivalencia validas\...
435
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 29.57, "nodes": 195, "errors": 0, "source_hash": "4a7959d61e5c234f6600e1018a7ffd5c5acc92053f135af2fe7a55ebf4d9da9c", "categorized_nodes": 155}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,352
c
#pragma once #include <string> #include "of_message.h" // barrier class // author: <NAME> (<EMAIL>) using namespace std; class of_message_barrier_reply : public of_message { public: // constructors of_message_barrier_reply(); virtual ~of_message_barrier_reply() {}; // universal message functions virtual void ...
26.72
18
(translation_unit) "#pragma once\n\n#include <string>\n#include "of_message.h"\n\n// barrier class\n// author: <NAME> (<EMAIL>)\n\nusing namespace std;\nclass of_message_barrier_reply : public of_message {\npublic:\n\n // constructors\n of_message_barrier_reply();\n virtual ~of_message_barrier_reply() {};\n\n // univer...
114
10
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 26.72, "nodes": 61, "errors": 0, "source_hash": "8396b5217eaf11ba013edaaaf1a89376a8f3a9c5c2e07c1148b6d5158bfc684b", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
4,353
c
#ifndef __BULLET_DEF_H__ #define __BULLET_DEF_H__ class BulletDef { public: unsigned int max_life_steps = 200; float speed = 10; }; #endif
17.38
8
(translation_unit) "#ifndef __BULLET_DEF_H__\n#define __BULLET_DEF_H__\n\nclass BulletDef {\npublic:\n unsigned int max_life_steps = 200;\n float speed = 10;\n};\n\n#endif\n" (preproc_ifdef) "#ifndef __BULLET_DEF_H__\n#define __BULLET_DEF_H__\n\nclass BulletDef {\npublic:\n unsigned int max_life_steps = 200;...
35
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 17.38, "nodes": 24, "errors": 0, "source_hash": "ad89d34695ef001ab34095bd891535974e1942e0f1623d87fe5cc4ad042370ee", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
4,354
c
#pragma once #include <vector> #include <fuzzing/datasource/datasource.hpp> #include "typeinfo.h" namespace cereal { namespace fuzzer { template <class TypeEnum> TypeEnum getType(fuzzing::datasource::Datasource& ds); std::vector<TypeInfo> getTypeInfos(fuzzing::datasource::Datasource& ds); template <class OutputArc...
45
16
(translation_unit) "#pragma once\n\n#include <vector>\n#include <fuzzing/datasource/datasource.hpp>\n#include "typeinfo.h"\n\nnamespace cereal {\nnamespace fuzzer {\n\ntemplate <class TypeEnum>\nTypeEnum getType(fuzzing::datasource::Datasource& ds);\n\nstd::vector<TypeInfo> getTypeInfos(fuzzing::datasource::Datasource&...
204
14
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 45.0, "nodes": 131, "errors": 0, "source_hash": "ffc3ffb462c45e05f59d320aab031c5e90250c3d9452727d3e2cd0cbd589333e", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
4,355
c
//////////////////////////////////////////////////////////////////////////////// // // FileName : KGSFXParticelKindPage.cpp // Version : 1.0 // Author : ZhaoXinyu (Chiyer) // CopyRight : Kingsoft Corporation All rights Reserved // History : 2006-8-25 15:35:52 // Comment : // //////...
30.33
66
(translation_unit) "//////////////////////////////////////////////////////////////////////////////// \n// \n// FileName : KGSFXParticelKindPage.cpp \n// Version : 1.0 \n// Author : ZhaoXinyu (Chiyer) \n// CopyRight : Kingsoft Corporation All rights Reserved \n// History : 2006-8-25 15:35:52 \n// ...
268
12
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 30.33, "nodes": 176, "errors": 0, "source_hash": "4d9e3c247dfab254e11324bf3977d4a4cb9f0b2cea622987aef12a64a4270b22", "categorized_nodes": 131}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,356
c
/* * Copyright 2017 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, publish, distrib...
33.14
146
(translation_unit) "/*\n * Copyright 2017 <NAME>\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\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modif...
1,026
0
{"language": "c", "success": true, "metadata": {"lines": 146, "avg_line_length": 33.14, "nodes": 603, "errors": 0, "source_hash": "ee1d963bf6b3261f79663e271319fbc30874b510e548bad40158c0a48cbb00b9", "categorized_nodes": 446}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,357
c
// // ForumContent.h // 91porn // // Created by Hahn on 2018/3/27. // Copyright © 2018年 Hahn. All rights reserved. // #import <Foundation/Foundation.h> @interface ForumContent : NSObject @property (nonatomic, strong) NSString *content; @property (nonatomic, strong) NSArray<NSString *> *imageList; @end
24.58
12
(translation_unit) "//\n// ForumContent.h\n// 91porn\n//\n// Created by Hahn on 2018/3/27.\n// Copyright © 2018年 Hahn. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface ForumContent : NSObject\n\n@property (nonatomic, strong) NSString *content;\n@property (nonatomic, strong) NSArray<NSStri...
58
10
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 24.58, "nodes": 41, "errors": 0, "source_hash": "aa6f32d288151e42ee58c57a54f5e08404327e4a1f1bff8d956224ade437fd93", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
4,358
c
// vi:nu:et:sts=4 ts=4 sw=4 /* * File: j1939tp_internal.h * Generated 04/18/2017 12:48:07 * * Notes: * -- N/A * */ /* This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code ...
32.92
257
(translation_unit) "// vi:nu:et:sts=4 ts=4 sw=4\n/* \n * File: j1939tp_internal.h\n * Generated 04/18/2017 12:48:07\n *\n * Notes:\n * -- N/A\n *\n */\n\n\n/*\n This is free and unencumbered software released into the public domain.\n \n Anyone is free to copy, modify, publish, use, compile, sell, or\n distribute th...
666
0
{"language": "c", "success": true, "metadata": {"lines": 257, "avg_line_length": 32.92, "nodes": 448, "errors": 0, "source_hash": "f73fb627a1f679c04a6643c1c4a8953a1a7463b4e7a28fe8c0acadc295b61eae", "categorized_nodes": 326}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,359
c
/*--------------------------------------------------------------*/ /* */ /* execute_firespread_event_dummy */ /* */ /* execute_firespread_event.c - creates a patch object */ /* */ /* NAME */ /* execute_firespread_event.c - creates a patch object ...
30.29
38
(translation_unit) "/*--------------------------------------------------------------*/\n/* */\n/* execute_firespread_event_dummy */\n/* */\n/* execute_firespread_event.c - creates a patch object */\n/* */\n/* NAME */\n/* execute_firespread_event....
75
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 30.29, "nodes": 34, "errors": 0, "source_hash": "cc7052bbbc64dfdaf89f8781e058c3b9ccfc035cfd1ba25ed8583fe8f0332697", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
4,360
c
#ifndef io_k8s_api_core_v1_config_map_TEST #define io_k8s_api_core_v1_config_map_TEST // the following is to include only the main from the first c file #ifndef TEST_MAIN #define TEST_MAIN #define io_k8s_api_core_v1_config_map_MAIN #endif // TEST_MAIN #include <stdlib.h> #include <string.h> #include <stdio.h> #includ...
39.48
58
(translation_unit) "#ifndef io_k8s_api_core_v1_config_map_TEST\n#define io_k8s_api_core_v1_config_map_TEST\n\n// the following is to include only the main from the first c file\n#ifndef TEST_MAIN\n#define TEST_MAIN\n#define io_k8s_api_core_v1_config_map_MAIN\n#endif // TEST_MAIN\n\n#include <stdlib.h>\n#include <string...
342
0
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 39.48, "nodes": 205, "errors": 0, "source_hash": "1536f1d3d266890c2b6ebd4d5d77e2efccc03a9e39467225f580820b39fad476", "categorized_nodes": 136}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,361
c
// // HDFPSLabel.h // HDBaseProject // // Created by denglibing on 17/1/18. // Copyright © 2017年 denglibing. All rights reserved. // #import <UIKit/UIKit.h> @interface HDFPSLabel : UILabel @end
18.8
10
(translation_unit) "//\n// HDFPSLabel.h\n// HDBaseProject\n//\n// Created by denglibing on 17/1/18.\n// Copyright © 2017年 denglibing. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface HDFPSLabel : UILabel\n\n@end\n" (comment) "//" (comment) "// HDFPSLabel.h" (comment) "// HDBaseProject" (c...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 18.8, "nodes": 10, "errors": 0, "source_hash": "cbf8e22fd2d7efc2fefc59bd632bf974e8a54ae25ad20545cde02552769bf59e", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKit...
4,362
c
/* * MeasurementBoard_v1.c * * Created on: 2018/12/02 * Author: Yuki */ #include "MeasurementBoard_v1.h" void LED_On(LED_TypeDef LED){ if(LED == LED0) HAL_GPIO_WritePin(LED0_GPIO_Port, LED0_Pin, GPIO_PIN_SET); if(LED == LED1) HAL_GPIO_WritePin(LED1_GPIO_Port, LED1_Pin, GPIO_PIN_SET); if(LED =...
39.73
22
(translation_unit) "/*\n * MeasurementBoard_v1.c\n *\n * Created on: 2018/12/02\n * Author: Yuki\n */\n\n#include "MeasurementBoard_v1.h"\n\nvoid LED_On(LED_TypeDef LED){\n\n if(LED == LED0) HAL_GPIO_WritePin(LED0_GPIO_Port, LED0_Pin, GPIO_PIN_SET);\n if(LED == LED1) HAL_GPIO_WritePin(LED1_GPIO_Port, LED1_...
230
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 39.73, "nodes": 132, "errors": 0, "source_hash": "85a2870ab7ae18603a449b404050fc32ffa79930a98e4090ae84bf65b079ee02", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,363
c
/* * Time stamp of last source code repository commit. */ #define ___STAMP_YMD 20180930 #define ___STAMP_HMS 122740
22.6
5
(translation_unit) "/*\n * Time stamp of last source code repository commit.\n */\n\n#define ___STAMP_YMD 20180930\n#define ___STAMP_HMS 122740\n" (comment) "/*\n * Time stamp of last source code repository commit.\n */" (preproc_def) "#define ___STAMP_YMD 20180930\n" (#define) "#define" (identifier) "___ST...
10
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 22.6, "nodes": 8, "errors": 0, "source_hash": "5000a5f312b6785c5306667c89cf966f60df7ed0bcecabe327735252c9230911", "categorized_nodes": 2}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ___STA...
4,364
c
#pragma once #include "resin/app/Config.h" namespace RESIN { class App { public: // Abstract interface virtual void setup(); virtual void update(); virtual void draw(); virtual Config config(); public: // Public interface // Elapsed time in seconds double elapsed() const; ...
20.71
28
(translation_unit) "#pragma once\n\n#include "resin/app/Config.h"\n\nnamespace RESIN {\n\nclass App\n{\n public:\n // Abstract interface\n virtual void setup();\n virtual void update();\n virtual void draw();\n\n virtual Config config();\n\n public:\n // Public interface\n\n // Elapsed time in...
167
10
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 20.71, "nodes": 94, "errors": 0, "source_hash": "eb808b4c3ae5cfb7f6375255e0bf1226157d8fe1fafb30b51933db2676cec89b", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
4,365
c
// maindlg.h : interface of the CMainDlg class // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_MAINDLG_H__6920296A_4C3F_11D1_AA9A_000000000000__INCLUDED_) #define AFX_MAINDLG_H__6920296A_4C3F_11D1_AA9A_000000000000__INCLUDED_ #if _MSC_VER >= 1000 #pragma once #endif /...
29.69
225
(translation_unit) "// maindlg.h : interface of the CMainDlg class\n//\n/////////////////////////////////////////////////////////////////////////////\n\n#if !defined(AFX_MAINDLG_H__6920296A_4C3F_11D1_AA9A_000000000000__INCLUDED_)\n#define AFX_MAINDLG_H__6920296A_4C3F_11D1_AA9A_000000000000__INCLUDED_\n\n#if _MSC_VER >=...
2,007
27
{"language": "c", "success": true, "metadata": {"lines": 225, "avg_line_length": 29.69, "nodes": 1108, "errors": 0, "source_hash": "86fbb19fa51bbd90a246dd460ff1156044951891f5f4a4dfba61e9deb4d239a3", "categorized_nodes": 853}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !de...
4,366
c
#ifndef REGISTER_INCLUDED #define REGISTER_INCLUDED BOOL RegisterSlave(VOID); #endif
16
5
(translation_unit) "#ifndef REGISTER_INCLUDED\n#define REGISTER_INCLUDED\n\nBOOL\nRegisterSlave(VOID);\n\n#endif\n" (preproc_ifdef) "#ifndef REGISTER_INCLUDED\n#define REGISTER_INCLUDED\n\nBOOL\nRegisterSlave(VOID);\n\n#endif" (#ifndef) "#ifndef" (identifier) "REGISTER_INCLUDED" (preproc_def) "#define REG...
18
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 16.0, "nodes": 14, "errors": 0, "source_hash": "9bcd62a759c9142b5186ea73e629c9e0affcca88d05b670a5846fe5a6bf7a6b6", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef RE...
4,367
c
#include "types.h" #include "stat.h" #include "user.h" char buf[512]; void read_doc(int fd){ int n; while((n = read(fd, buf, sizeof(buf))) > 0) write(1, buf, n); if(n < 0){ printf(1, "cat: read error\n"); exit(); } } int main(int argc, char *argv[]) { int fd; int i=0; if(argc == 1){ ...
16.81
32
(translation_unit) "#include "types.h"\n#include "stat.h"\n#include "user.h"\n\nchar buf[512];\n\nvoid read_doc(int fd){\n int n;\n \n while((n = read(fd, buf, sizeof(buf))) > 0)\n write(1, buf, n);\n if(n < 0){\n printf(1, "cat: read error\n");\n exit();\n }\n}\n\nint main(int argc, char *argv[])\n{\n i...
278
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 16.81, "nodes": 147, "errors": 0, "source_hash": "9695ec4ac8606551b9639d030dc5adcb7e30d0c70768e64ea19d83efd8d7ccb5", "categorized_nodes": 107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,368
c
#ifndef PowerModule_h #define PowerModule_h #include "Arduino.h" class PowerModule { public: PowerModule(); void runPowerModule(); boolean powerOn; private: boolean poweringUpFinished; }; #endif
14.5
14
(translation_unit) "#ifndef PowerModule_h\n#define PowerModule_h\n\n#include "Arduino.h"\n\nclass PowerModule\n{\n public:\n PowerModule();\n void runPowerModule();\n boolean powerOn;\n private:\n boolean poweringUpFinished;\n };\n\n \n#endif \n" (preproc_ifdef) "#ifndef PowerModule_h\n#define PowerModu...
51
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 14.5, "nodes": 28, "errors": 0, "source_hash": "1a3928f1eefb6f058ca9231ccdf5a4d2fadbcd6824e6207678ea370a440f0406", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef P...
4,369
c
/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef CRAS_METRICS_H_ #define CRAS_METRICS_H_ /* Logs the specified event. */ void cras_metrics_log_event(const char *event); /* Sends hist...
39.36
14
(translation_unit) "/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n#ifndef CRAS_METRICS_H_\n#define CRAS_METRICS_H_\n\n/* Logs the specified event. */\nvoid cras_metrics_log_event(const...
78
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 39.36, "nodes": 52, "errors": 0, "source_hash": "c6ec0468285a8c19fcf6b24e0d740a5130fddc3b3f69dc37b7559e1e39f29e97", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,370
c
/** * @file aptx.c aptX Audio Codec * * Copyright (C) 2019 <NAME> */ #include <re.h> #include <baresip.h> #include "aptx.h" /** * @defgroup aptx aptx * * aptX audio codec (Standard and HD variant) * * Supported version: * libopenaptx 0.1.0 or later * * References: * RFC 7310 RTP Payload Format for...
19.47
60
(translation_unit) "/**\n * @file aptx.c aptX Audio Codec\n *\n * Copyright (C) 2019 <NAME>\n */\n\n#include <re.h>\n#include <baresip.h>\n#include "aptx.h"\n\n/**\n * @defgroup aptx aptx\n *\n * aptX audio codec (Standard and HD variant)\n *\n * Supported version:\n * libopenaptx 0.1.0 or later\n *\n * References:\...
212
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 19.47, "nodes": 125, "errors": 0, "source_hash": "e105761707ec79932a8afd21f70e6d6c8e0d7af08f40f9bcb29951ce962ad512", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
4,371
c
// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2021 Microsoft Corporation * * Author: <NAME> (<EMAIL>) * * Measure critical data structures maintainted by SELinux * using IMA subsystem. */ #include <linux/vmalloc.h> #include <linux/ima.h> #include "security.h" #include "ima.h" /* * selinux_ima_collect...
27.83
101
(translation_unit) "// SPDX-License-Identifier: GPL-2.0+\n/*\n * Copyright (C) 2021 Microsoft Corporation\n *\n * Author: <NAME> (<EMAIL>)\n *\n * Measure critical data structures maintainted by SELinux\n * using IMA subsystem.\n */\n#include <linux/vmalloc.h>\n#include <linux/ima.h>\n#include "security.h"\n#include "i...
764
0
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 27.83, "nodes": 447, "errors": 0, "source_hash": "d7401100df674e7fdc54e0c18ef0b42b0fda04b3545ac692294881d5c0bda034", "categorized_nodes": 317}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,372
c
int XXX(int x){ return (int)pow(x,0.5); }
14.33
3
(translation_unit) "int XXX(int x){\n return (int)pow(x,0.5);\n}\n\n" (function_definition) "int XXX(int x){\n return (int)pow(x,0.5);\n}" (primitive_type) "int" (function_declarator) "XXX(int x)" (identifier) "XXX" (parameter_list) "(int x)" (() "(" (parameter_declaration) "...
30
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 14.33, "nodes": 17, "errors": 0, "source_hash": "444fb3ffc020a079338bb22174048231d87327e57a5b57e6e45dcf6db3728481", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "int...
4,373
c
// Copyright (c) 2018, Xiaomi, Inc. All rights reserved. // This source code is licensed under the Apache License Version 2.0, which // can be found in the LICENSE file in the root directory of this source tree. #pragma once #include <string> #include <rocksdb/env.h> #include <dsn/utility/singleton.h> namespace peg...
31.72
36
(translation_unit) "// Copyright (c) 2018, Xiaomi, Inc. All rights reserved.\n// This source code is licensed under the Apache License Version 2.0, which\n// can be found in the LICENSE file in the root directory of this source tree.\n\n#pragma once\n\n#include <string>\n#include <rocksdb/env.h>\n#include <dsn/utility...
138
6
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 31.72, "nodes": 76, "errors": 0, "source_hash": "d33232e2e83d9d7747bf477db24789f7fcd6fe84716b9edba5f8434342662235", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
4,374
c
#pragma once #ifdef _WIN32 #define KALEIDOSCOPE_API __declspec(dllexport) #else #define KALEIDOSCOPE_API #endif
17.67
6
(translation_unit) "#pragma once\n\n#ifdef _WIN32\n#define KALEIDOSCOPE_API __declspec(dllexport)\n#else\n#define KALEIDOSCOPE_API\n#endif\n\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_ifdef) "#ifdef _WIN32\n#define KALEIDOSCOPE_API __declspec(dllexport)\n#...
17
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 17.67, "nodes": 16, "errors": 0, "source_hash": "1c7bebc79acbdba4ff127e148fadf6dac6490a9f08c13579a26d470a5447682d", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
4,375
c
// // AppDelegate.h // SDWebImage-4.4.2 // // Created by sunke on 14/11/2018. // Copyright © 2018 sunke. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
21.67
12
(translation_unit) "//\n// AppDelegate.h\n// SDWebImage-4.4.2\n//\n// Created by sunke on 14/11/2018.\n// Copyright © 2018 sunke. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface AppDelegate : UIResponder <UIApplicationDelegate>\n\n@property (strong, nonatomic) UIWindow *window;\n\n\n@end\n\n" (c...
39
6
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 21.67, "nodes": 25, "errors": 0, "source_hash": "b459d10cba045e32561c7bf3e04632323969f0d9bdb0c2bb8af6802778abd30c", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
4,376
c
/* * MainBlockHeightIndexKeyFactory.h * * Created on: 2022/03/18 * Author: iizuka */ #ifndef MAIN_STORE_MAINBLOCKHEIGHTINDEXKEYFACTORY_H_ #define MAIN_STORE_MAINBLOCKHEIGHTINDEXKEYFACTORY_H_ #include "btreekey/BtreeKeyFactory.h" using namespace alinous; namespace codablecash { class MainBlockHeightIndex...
33.1
21
(translation_unit) "/*\n * MainBlockHeightIndexKeyFactory.h\n *\n * Created on: 2022/03/18\n * Author: iizuka\n */\n\n#ifndef MAIN_STORE_MAINBLOCKHEIGHTINDEXKEYFACTORY_H_\n#define MAIN_STORE_MAINBLOCKHEIGHTINDEXKEYFACTORY_H_\n\n#include "btreekey/BtreeKeyFactory.h"\n\nusing namespace alinous;\n\nnamespace codable...
110
6
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 33.1, "nodes": 67, "errors": 0, "source_hash": "440c4c3745fc99ee497d1af96a0bc32524910a140f93ed3ccf6fc05e2bfb336a", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef M...
4,377
c
// // MGSwipeButtonModel.h // JobsIM // // Created by Jobs on 2020/11/13. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface MGSwipeButtonModel : NSObject @property(nonatomic,strong)UIImage *IconIMG; @property(nonatomic,strong)UIColor *bgCor; @property(nonatomic,copy)NSString *titleStr; @en...
23.21
14
(translation_unit) "//\n// MGSwipeButtonModel.h\n// JobsIM\n//\n// Created by Jobs on 2020/11/13.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface MGSwipeButtonModel : NSObject\n\n@property(nonatomic,strong)UIImage *IconIMG;\n@property(nonatomic,strong)UIColor *bgCor;\n@property(nona...
80
10
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 23.21, "nodes": 53, "errors": 0, "source_hash": "a3721e326d2846aeaeea075f7fbb3fc7792793f4cd1a481f1b063222c233d74e", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
4,378
c
#pragma once #include "adb/BitMask.h" #include "adb/Data.h" #include "adb/Example.h" #include "adb/Hash.h" #include "adb/Reference.h"
21.33
6
(translation_unit) "#pragma once\n\n#include "adb/BitMask.h"\n#include "adb/Data.h"\n#include "adb/Example.h"\n#include "adb/Hash.h"\n#include "adb/Reference.h"\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "adb/BitMask.h"\n" (#include)...
34
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 21.33, "nodes": 18, "errors": 0, "source_hash": "213fc558bd988db29fc75dad548395e4295bcede39431a1963ec6180c146e0ce", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
4,379
c
// // NSString+Checker.h // Equatify // // Created by <NAME> on 27.05.2021. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface NSString (Checker) - (BOOL)isCorrectString; @end NS_ASSUME_NONNULL_END
17.5
12
(translation_unit) "//\n// NSString+Checker.h\n// Equatify\n//\n// Created by <NAME> on 27.05.2021.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface NSString (Checker)\n\n- (BOOL)isCorrectString;\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" (comment) "// NSString+Checker.h...
34
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 17.5, "nodes": 20, "errors": 0, "source_hash": "fd8b26e56b0b8aeedd3902f581bf29d01a64769784cba2b09fcbcf42d4a00373", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
4,380
c
/* * Copyright 2020 Nokia * Licensed under the BSD 3-Clause License. * SPDX-License-Identifier: BSD-3-Clause */ #include <time.h> #include <sys/time.h> #include <stdint.h> #include <stdlib.h> #include <stdbool.h> extern char const *clock_name_r; extern char const *clock_name_t; extern char const *clock_name_p; ex...
32.59
95
(translation_unit) "/*\n * Copyright 2020 Nokia\n * Licensed under the BSD 3-Clause License.\n * SPDX-License-Identifier: BSD-3-Clause\n*/\n\n#include <time.h>\n#include <sys/time.h>\n#include <stdint.h>\n#include <stdlib.h>\n#include <stdbool.h>\n\nextern char const *clock_name_r;\nextern char const *clock_name_t;\nex...
906
0
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 32.59, "nodes": 514, "errors": 0, "source_hash": "99fb1a79f2591b1c784fb51f054103ae3ffef8a05d17a67372749cbe81e130a8", "categorized_nodes": 314}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,381
c
/* * Copyright (c) 2012-2013 Spotify AB * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
34
222
(translation_unit) "/*\n* Copyright (c) 2012-2013 Spotify AB\n*\n* Licensed under the Apache License, Version 2.0 (the "License"); you may not\n* use this file except in compliance with the License. You may obtain a copy of\n* the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by appl...
1,962
0
{"language": "c", "success": true, "metadata": {"lines": 222, "avg_line_length": 34.0, "nodes": 1235, "errors": 0, "source_hash": "c05e580d28a4db528b2d6bac0db32d04ebcb499e4f9457762428fb9564b1b39e", "categorized_nodes": 930}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,382
c
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_BROWSER_WEBAUTH_AUTHENTICATOR_IMPL_H_ #define CONTENT_BROWSER_WEBAUTH_AUTHENTICATOR_IMPL_H_ #include <stdint.h> #include <memory> #incl...
39.77
62
(translation_unit) "// Copyright 2017 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef CONTENT_BROWSER_WEBAUTH_AUTHENTICATOR_IMPL_H_\n#define CONTENT_BROWSER_WEBAUTH_AUTHENTICATOR_IMPL_H_\n\n#include <stdint.h...
403
21
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 39.77, "nodes": 234, "errors": 0, "source_hash": "76190f811a5c98569c5d4cf5b0a16900bd92908bf65a5337a5e1aff9016197e1", "categorized_nodes": 173}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef CONTEN...
4,383
c
#pragma once #ifdef _WIN32 #include "C:/RedGpuSDK/redgpu.h" #endif #ifdef __linux__ #include "/opt/RedGpuSDK/redgpu.h" #endif #ifdef __cplusplus extern "C" { #endif typedef enum RedHelperMemoryType { RED_HELPER_MEMORY_TYPE_VRAM = 0, RED_HELPER_MEMORY_TYPE_UPLOAD = 1, RED_HELPER_MEMORY_TYPE_READBACK = 2, ...
40.6
20
(translation_unit) "#pragma once\n\n#ifdef _WIN32\n#include "C:/RedGpuSDK/redgpu.h"\n#endif\n#ifdef __linux__\n#include "/opt/RedGpuSDK/redgpu.h"\n#endif\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\ntypedef enum RedHelperMemoryType {\n RED_HELPER_MEMORY_TYPE_VRAM = 0,\n RED_HELPER_MEMORY_TYPE_UPLOAD = 1,\n R...
151
1
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 40.6, "nodes": 111, "errors": 0, "source_hash": "c34d5fc75de68832e23617218d6508b18a1f0559764fff6797498e11ba5ff5c1", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
4,384
c
#include <stdint.h> #include <terminal.h> #include <video.h> #include <lib.h> #include <moduleLoader.h> #include <naiveConsole.h> #include <scheduler.h> #include <systemCalls.h> #include "malloc.h" #include "process.h" #include "interrupts.h" #include "mutex.h" #include "threads.h" #include "semaphores.h" #define DUMM...
28.15
309
(translation_unit) "#include <stdint.h>\n#include <terminal.h>\n#include <video.h>\n#include <lib.h>\n#include <moduleLoader.h>\n#include <naiveConsole.h>\n#include <scheduler.h>\n#include <systemCalls.h>\n#include "malloc.h"\n#include "process.h"\n#include "interrupts.h"\n#include "mutex.h"\n#include "threads.h"\n#inc...
3,013
0
{"language": "c", "success": true, "metadata": {"lines": 309, "avg_line_length": 28.15, "nodes": 1900, "errors": 0, "source_hash": "e364e87d9ae4aa9574750dcb2bcd837e5254e36a2c3ed1aaf40d0276bd1e2d82", "categorized_nodes": 1443}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
4,385
c
#import <UIKit/UIKit.h> FOUNDATION_EXPORT double ProposerVersionNumber; FOUNDATION_EXPORT const unsigned char ProposerVersionString[];
33
4
(translation_unit) "#import <UIKit/UIKit.h>\n\n\nFOUNDATION_EXPORT double ProposerVersionNumber;\nFOUNDATION_EXPORT const unsigned char ProposerVersionString[];\n\n" (preproc_call) "#import <UIKit/UIKit.h>\n" (preproc_directive) "#import" (preproc_arg) "<UIKit/UIKit.h>" (declaration) "FOUNDATION_EXPORT doub...
23
1
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 33.0, "nodes": 15, "errors": 0, "source_hash": "1225351dc8c737f3626158174b907d9c840563267d7e275fc1bf80ac491320cd", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UI...
4,386
c
/* privileges.h * Declarations of routines for handling privileges. * * Wireshark - Network traffic analyzer * By <NAME> <<EMAIL>> * Copyright 2006 <NAME> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free S...
33.69
75
(translation_unit) "/* privileges.h\n * Declarations of routines for handling privileges.\n *\n * Wireshark - Network traffic analyzer\n * By <NAME> <<EMAIL>>\n * Copyright 2006 <NAME>\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n...
133
7
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 33.69, "nodes": 92, "errors": 0, "source_hash": "32edc1028c4c43e7a3a2a69cd958a5bff2c0543c9d5e50c8a30f899d25f4fde2", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,387
c
/* Automatically generated by kernel/time/timeconst.bc */ /* Time conversion constants for HZ == 100 */ #ifndef KERNEL_TIMECONST_H #define KERNEL_TIMECONST_H #include <linux/param.h> #include <linux/types.h> #if HZ != 100 #error "include/generated/timeconst.h has the wrong HZ value!" #endif #define HZ_TO_MSEC_MUL32...
31.97
30
(translation_unit) "/* Automatically generated by kernel/time/timeconst.bc */\n/* Time conversion constants for HZ == 100 */\n\n#ifndef KERNEL_TIMECONST_H\n#define KERNEL_TIMECONST_H\n\n#include <linux/param.h>\n#include <linux/types.h>\n\n#if HZ != 100\n#error "include/generated/timeconst.h has the wrong HZ value!"\n#...
108
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 31.97, "nodes": 104, "errors": 0, "source_hash": "0f591a1981414013b8f7e02035cb64e5871300b132d200a6c078319fd1a511c2", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,388
c
/* Design and created by Blascarr LiquidMVC Author : ZGZMakerSpace Description: LiquidMVC.h version : 1.0 ZGZMakerSpace invests time and resources providing this open source code like some other libraries, please respect the job and support open-source software. Written by <NAME> */ ...
30.63
247
(translation_unit) "/*\n Design and created by Blascarr\n LiquidMVC\n Author : ZGZMakerSpace\n Description: LiquidMVC.h\n version : 1.0\n \n ZGZMakerSpace invests time and resources providing this open source code like some other libraries, please\n respect the job and support open-source software.\n \...
2,217
58
{"language": "c", "success": true, "metadata": {"lines": 247, "avg_line_length": 30.63, "nodes": 1339, "errors": 0, "source_hash": "2f0dcd22709e0e58770048e3326e9618ac6a651ac29e9bd9b485d6bc3e24355f", "categorized_nodes": 874}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
4,389
c
/*! \file SurfaceViewer.h * \author <NAME> * \brief Defines the interface to a viewer class for Surfaces. */ #ifndef SURFACE_VIEWER_H #define SURFACE_VIEWER_H #include <GL/glew.h> #include <QGLViewer/qglviewer.h> #include <QtGui/QKeyEvent> #include <mesh/TriangleMeshViewer.h> #include "Mesh.h" typedef Triangl...
29.71
14
(translation_unit) "/*! \file SurfaceViewer.h\n * \author <NAME>\n * \brief Defines the interface to a viewer class for Surfaces.\n */\n\n#ifndef SURFACE_VIEWER_H\n#define SURFACE_VIEWER_H\n\n\n#include <GL/glew.h>\n#include <QGLViewer/qglviewer.h>\n#include <QtGui/QKeyEvent>\n#include <mesh/TriangleMeshViewer.h>\n\n...
46
2
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 29.71, "nodes": 35, "errors": 0, "source_hash": "15a3d80af957eee8ed9a0e8c9a8d106459cd5e734b9fa8cc09aa84d2df8c4efe", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,390
c
#ifndef Forward_TotemRPOrganization_h #define Forward_TotemRPOrganization_h 1 // -*- C++ -*- // // Package: Forward // Class : TotemRPOrganization // /**\class TotemRPOrganization TotemRPOrganization.h SimG4CMS/Forward/interface/TotemRPOrganization.h Description: This class manages the UnitID that labels To...
28
33
(translation_unit) "#ifndef Forward_TotemRPOrganization_h\n#define Forward_TotemRPOrganization_h 1\n// -*- C++ -*-\n//\n// Package: Forward\n// Class : TotemRPOrganization\n//\n/**\class TotemRPOrganization TotemRPOrganization.h SimG4CMS/Forward/interface/TotemRPOrganization.h\n \n Description: This class mana...
80
3
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 28.0, "nodes": 37, "errors": 0, "source_hash": "2a832ebebcbdb112f93d23b9b001ef97cea311a5155a71de43353a944cf8f6d5", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef F...
4,391
c
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2019 <NAME> for Adafruit Industries * Copyright (c) 2019 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation...
36.45
62
(translation_unit) "/*\n * This file is part of the MicroPython project, http://micropython.org/\n *\n * The MIT License (MIT)\n *\n * Copyright (c) 2019 <NAME> for Adafruit Industries\n * Copyright (c) 2019 <NAME>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software...
185
0
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 36.45, "nodes": 124, "errors": 0, "source_hash": "71eb6021200d54ee7034a9380fc74c5a749bc10ac7fa4d286058cf5e70bea6ef", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,392
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "SCNMaterial.h" @class NSImage, NSString; @interface SCNMaterial (SceneKit_SKEAdditions) + (id)keyPathsForValuesAffectingIde_displayName; + (id)ske_displayNameForUndoKVOKeypath:...
32.14
21
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "SCNMaterial.h"\n\n@class NSImage, NSString;\n\n@interface SCNMaterial (SceneKit_SKEAdditions)\n+ (id)keyPathsForValuesAffectingIde_displayName;\n+ (id)s...
162
21
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 32.14, "nodes": 108, "errors": 0, "source_hash": "6a4e5f8af9eee43cb7d3d3af59790e308d40d0077f0c610ff83cc6fa8d786735", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
4,393
c
// // TapNetworkManagerV2.h // TapNetworkManagerV2 // // Created by <NAME> on 9/22/20. // #import <Foundation/Foundation.h> //! Project version number for TapNetworkManagerV2. FOUNDATION_EXPORT double TapNetworkManagerV2VersionNumber; //! Project version string for TapNetworkManagerV2. FOUNDATION_EXPORT const uns...
41.42
12
(translation_unit) "//\n// TapNetworkManagerV2.h\n// TapNetworkManagerV2\n//\n// Created by <NAME> on 9/22/20.\n//\n\n#import <Foundation/Foundation.h>\n\n//! Project version number for TapNetworkManagerV2.\nFOUNDATION_EXPORT double TapNetworkManagerV2VersionNumber;\n\n//! Project version string for TapNetworkManage...
32
1
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 41.42, "nodes": 15, "errors": 0, "source_hash": "ea232bdcaaa246fe8b23fb9aa2369a38333c9a70adebd42934d6db84e9130374", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
4,394
c
#pragma once #include "..\frame-work\engine.h" #include "renderer.h" #include "pistol_movement.h" class Pistol : public Seed::Entity { public: void Initialize(void) override; private: Renderer * renderer_; PistolMovement * movement_; public: Renderer * const renderer(void); public: Transform * const transfor...
19.05
19
(translation_unit) "#pragma once\n\n#include "..\frame-work\engine.h"\n\n#include "renderer.h"\n#include "pistol_movement.h"\n\nclass Pistol : public Seed::Entity\n{\npublic:\n void Initialize(void) override;\n\nprivate:\n Renderer * renderer_;\n PistolMovement * movement_;\n\npublic:\n Renderer * const renderer(void);...
129
2
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 19.05, "nodes": 74, "errors": 0, "source_hash": "6b5d06684d432a811586110f05b600770f54e7a706d5a8c51544635bcb75ac5b", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
4,395
c
// // Licensed to Green Energy Corp (www.greenenergycorp.com) under one or // more contributor license agreements. See the NOTICE file distributed // with this work for additional information regarding copyright ownership. // Green Energy Corp licenses this file to you under the Apache License, // Version 2.0 (the "Li...
30.03
76
(translation_unit) "//\n// Licensed to Green Energy Corp (www.greenenergycorp.com) under one or\n// more contributor license agreements. See the NOTICE file distributed\n// with this work for additional information regarding copyright ownership.\n// Green Energy Corp licenses this file to you under the Apache License,\...
228
0
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 30.03, "nodes": 154, "errors": 0, "source_hash": "9abf25b0fa067f9fd6276dbec8503272edef50f06ef854eb73bc65a1203fe74a", "categorized_nodes": 123}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,396
c
// // circulate_ScrollView.h // circulate_ScrollView1 // // Created by bioongroup on 15/10/27. // Copyright © 2015年 ylk. All rights reserved. // #import <UIKit/UIKit.h> #import "protrol.h" //advertisement //advertisement @protocol ADVERTISEMENT_DELETAGE @optional //-(void)jupm_htmlPage:(showWebViewController*)we...
29.62
29
(translation_unit) "//\n// circulate_ScrollView.h\n// circulate_ScrollView1\n//\n// Created by bioongroup on 15/10/27.\n// Copyright © 2015年 ylk. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "protrol.h"\n//advertisement\n//advertisement\n@protocol ADVERTISEMENT_DELETAGE\n\n@optional\n//-(void)jupm_...
165
29
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 29.62, "nodes": 109, "errors": 0, "source_hash": "b15eef7b07be8f67778b652c65f2f6e25d5d99813eae15f87a6a145b58641503", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UI...
4,397
c
/* * (C) Copyright 1996-2013 ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an in...
29.39
56
(translation_unit) "/*\n * (C) Copyright 1996-2013 ECMWF.\n *\n * This software is licensed under the terms of the Apache Licence Version 2.0\n * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.\n * In applying this licence, ECMWF does not waive the privileges and immunities\n * granted to it by vir...
338
16
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 29.39, "nodes": 187, "errors": 0, "source_hash": "01ea0ab165c6e71d7527d8ae76499dda7de673b0db771fde0aa22ab573371822", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,398
c
static char *test_vector3_cross_product(void) { struct vector3 a; struct vector3 b; struct vector3 r; vector3_setf3(&a, 3.0f, -3.0f, 1.0f); vector3_setf3(&b, 4.0f, 9.0f, 2.0f); vector3_cross_product(&r, &a, &b); test_assert(scalar_equalsf(r.x, -15.0f)); test_assert(scalar_equalsf(r.y, -2.0f)); test_assert(...
27.57
23
(translation_unit) "static char *test_vector3_cross_product(void)\n{\n struct vector3 a;\n struct vector3 b;\n struct vector3 r;\n\n vector3_setf3(&a, 3.0f, -3.0f, 1.0f);\n vector3_setf3(&b, 4.0f, 9.0f, 2.0f);\n\n vector3_cross_product(&r, &a, &b);\n\n test_assert(scalar_equalsf(r.x, -15.0f));\n test_assert(scalar_equa...
250
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 27.57, "nodes": 141, "errors": 0, "source_hash": "2f2b48f77f43881f1eb59a40a0f360c106a42a3206b6569de65f80b0d11cc278", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "...
4,399