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
// // LNAlertAccessoryView.h // Lin // // Created by <NAME> on 2013/09/22. // Copyright (c) 2013年 <NAME>. All rights reserved. // #import <Cocoa/Cocoa.h> @class LNLocalizationCollection; @interface LNAlertAccessoryView : NSView <NSTextFieldDelegate> @property (nonatomic, copy) NSArray *collections; @property (n...
34.19
16
(translation_unit) "//\n// LNAlertAccessoryView.h\n// Lin\n//\n// Created by <NAME> on 2013/09/22.\n// Copyright (c) 2013年 <NAME>. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n\n@class LNLocalizationCollection;\n\n@interface LNAlertAccessoryView : NSView <NSTextFieldDelegate>\n\n@property (nonatomic, copy) ...
123
24
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 34.19, "nodes": 90, "errors": 0, "source_hash": "0e90b3320ea9109415afbf001aca2194c8c7227948d560dc1de370530846fea8", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <Co...
77,100
c
/* This file is part of the YAZ toolkit. * Copyright (C) <NAME> * See the file LICENSE for details. */ #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <yaz/xmalloc.h> #include <yaz/nmem.h> #include <yaz/log.h> #include <yaz/zoom.h> int main(int argc, char **argv) { int block; int i, j;...
31.91
154
(translation_unit) "/* This file is part of the YAZ toolkit.\n * Copyright (C) <NAME>\n * See the file LICENSE for details.\n */\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <assert.h>\n\n#include <yaz/xmalloc.h>\n#include <yaz/nmem.h>\n#include <yaz/log.h>\n#include <yaz/zoom.h>\n\nint main(int argc, char **ar...
1,320
0
{"language": "c", "success": true, "metadata": {"lines": 154, "avg_line_length": 31.91, "nodes": 702, "errors": 0, "source_hash": "cc095f17db9ca8cd7e48d18faa35fb7b8f85088a73d8590fc72bddef052c5efb", "categorized_nodes": 531}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
77,101
c
// // Created by Startklar on 01.05.2021. // #ifndef CPPLISPINTERPRETER_ENV_H #define CPPLISPINTERPRETER_ENV_H #include <map> #include "types.h" #include "builtin_functions.h" class Env { public: Env(Env* outer); Env(bool global); Env* find(std::string&); Type* get(std::string); Type* set...
18.42
24
(translation_unit) "//\n// Created by Startklar on 01.05.2021.\n//\n\n#ifndef CPPLISPINTERPRETER_ENV_H\n#define CPPLISPINTERPRETER_ENV_H\n\n#include <map>\n#include "types.h"\n#include "builtin_functions.h"\n\n\n\n\n\nclass Env {\npublic:\n Env(Env* outer);\n\n Env(bool global);\n\n Env* find(std::string&);\n\...
150
8
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 18.42, "nodes": 91, "errors": 0, "source_hash": "3de14725a2aa54ba4303cf2ceda7b240b2b728033bbc799faa9fa6384012acdc", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
77,102
c
#pragma once #include "text_map.h" namespace ai { struct text_field { sz size_on_disk() const { return sequence_.size_on_disk() + text_map::size_on_disk(names_); } sz deserialise(p8 version, const char* data) { sz r = sequence_.deserialise(version, data); return r + text_map::deserialise(name...
22.4
57
(translation_unit) "#pragma once\n\n#include "text_map.h"\n\nnamespace ai\n{\n struct text_field\n {\n sz size_on_disk() const\n {\n return sequence_.size_on_disk()\n + text_map::size_on_disk(names_);\n }\n sz deserialise(p8 version, const char* data)\n {\n sz r = sequence_.deserialise(version, data);\n r...
592
19
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 22.4, "nodes": 357, "errors": 0, "source_hash": "25bb5cfaf185b45bc52ad323ed1a4762a5e4e865a49b41ccebab2dffab20f8e2", "categorized_nodes": 260}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
77,103
c
/* * This file is part of the swblocks-baselib library. * * 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 appl...
34.69
77
(translation_unit) "/*\n * This file is part of the swblocks-baselib library.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n ...
164
0
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 34.69, "nodes": 160, "errors": 0, "source_hash": "4253dc404137ae2ea6faa3c78c794dbcdfabca41e585a3dc5af2c8544ab8d980", "categorized_nodes": 158}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
77,104
c
#pragma once #include "LibLsp/JsonRpc/RequestInMessage.h" #include "LibLsp/JsonRpc/lsResponseMessage.h" #include "LibLsp/lsp/lsWorkspaceEdit.h" #include "LibLsp/lsp/lsTextDocumentPositionParams.h" /** * The rename request is sent from the client to the server to do a * workspace wide rename of a symbol. * * Regi...
31.06
32
(translation_unit) "#pragma once\n\n#include "LibLsp/JsonRpc/RequestInMessage.h"\n#include "LibLsp/JsonRpc/lsResponseMessage.h"\n\n#include "LibLsp/lsp/lsWorkspaceEdit.h"\n#include "LibLsp/lsp/lsTextDocumentPositionParams.h"\n\n/**\n * The rename request is sent from the client to the server to do a\n * workspace wide ...
144
7
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 31.06, "nodes": 83, "errors": 0, "source_hash": "2256239b7f51a3bdebb24e73fcece0beb8f016236ca4256951f6f294139534d7", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
77,105
c
/* Copyright 2016 The TensorFlow Authors All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable l...
32.71
75
(translation_unit) "/* Copyright 2016 The TensorFlow Authors All Rights Reserved. \n \nLicensed under the Apache License, Version 2.0 (the "License"); \nyou may not use this file except in compliance with the License. \nYou may obtain a copy of the License at \n \n http://www.apache.org/licenses/LICENSE-2.0 \n \nUnl...
480
18
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 32.71, "nodes": 259, "errors": 0, "source_hash": "65570c2d38c2b9bbb672627efdd516f804dded225d92ecc66d91b5f4de85848c", "categorized_nodes": 206}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
77,106
c
#pragma once #include <opencv2/core/mat.hpp> #include <sophus/se3.hpp> #include "sv/util/math.h" // MeanCovar namespace sv { struct ScanBase { // start and delta time double time{}; // time of the last column double dt{}; // delta time between two columns // Scan related data cv::Mat mat; ...
37.79
73
(translation_unit) "#pragma once\n\n#include <opencv2/core/mat.hpp>\n#include <sophus/se3.hpp>\n\n#include "sv/util/math.h" // MeanCovar\n\nnamespace sv {\n\nstruct ScanBase {\n // start and delta time\n double time{}; // time of the last column\n double dt{}; // delta time between two columns\n\n // Scan rela...
850
45
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 37.79, "nodes": 438, "errors": 0, "source_hash": "a75e61679d17f52ebc43ff6fb61b5076130b42813934c5e1b62b80da0d59871f", "categorized_nodes": 306}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
77,107
c
/*************************************** * Ark-Cpp-Crypto - for the Ark Ecosystem (ark.io) * https://github.com/ArkEcosystem/Cpp-Crypto * * sleepdeficit(<EMAIL>) * MIT | Copyright <NAME> 2017-2018 ***************************************/ #ifndef CONSTANTS_H #define CONSTANTS_H #include "models/models.h" #include "con...
28.08
13
(translation_unit) "/***************************************\n* Ark-Cpp-Crypto - for the Ark Ecosystem (ark.io)\n* https://github.com/ArkEcosystem/Cpp-Crypto\n*\n* sleepdeficit(<EMAIL>)\n* MIT | Copyright <NAME> 2017-2018\n***************************************/\n\n#ifndef CONSTANTS_H\n#define CONSTANTS_H\n\n#include ...
27
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 28.08, "nodes": 16, "errors": 0, "source_hash": "7a4aedd60635a85bf3acd780594471beb3cb1ac9fef2f1137a768b33a90dd098", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
77,108
c
#ifndef GADGETRON_CMR_EXPORT_H_ #define GADGETRON_CMR_EXPORT_H_ #if defined (WIN32) #if defined (__BUILD_GADGETRON_CMR__) #define EXPORTGADGETSCMR __declspec(dllexport) #else #define EXPORTGADGETSCMR __declspec(dllimport) #endif #else #define EXPORTGADGETSCMR #endif #endif /* GADGETRON...
27
12
(translation_unit) "#ifndef GADGETRON_CMR_EXPORT_H_\n#define GADGETRON_CMR_EXPORT_H_\n\n#if defined (WIN32)\n #if defined (__BUILD_GADGETRON_CMR__)\n #define EXPORTGADGETSCMR __declspec(dllexport)\n #else\n #define EXPORTGADGETSCMR __declspec(dllimport)\n #endif\n#else\n #define EXPORTGADGETSC...
42
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 27.0, "nodes": 36, "errors": 0, "source_hash": "4da08580b463b69d7a2d7f95d05426194e6425b732e11b7a65c595a82bf54d4c", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef G...
77,109
c
#ifndef clox_object_h #define clox_object_h #include "common.h" #include "chunk.h" #include "table.h" #include "value.h" #define OBJ_TYPE(value) (AS_OBJ(value)->type) #define IS_BOUND_METHOD(value) isObjType(value, OBJ_BOUND_METHOD) #define IS_CLASS(value) isObjType(value, OBJ_CLASS) #define IS_CLOSURE(value) isObjT...
25.83
96
(translation_unit) "#ifndef clox_object_h\n#define clox_object_h\n\n#include "common.h"\n#include "chunk.h"\n#include "table.h"\n#include "value.h"\n\n#define OBJ_TYPE(value) (AS_OBJ(value)->type)\n\n#define IS_BOUND_METHOD(value) isObjType(value, OBJ_BOUND_METHOD)\n#define IS_CLASS(value) isObjType(value, OBJ_CLASS)\n...
641
0
{"language": "c", "success": true, "metadata": {"lines": 96, "avg_line_length": 25.83, "nodes": 459, "errors": 0, "source_hash": "0733ae7f6a933a574d0831f71b95ab8f3de788444ad7f49ddc5dc670c619b8e4", "categorized_nodes": 310}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
77,110
c
// Copyright (c) 2020 The Orbit 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 CODE_VIEWER_FONT_SIZE_IN_EM_H_ #define CODE_VIEWER_FONT_SIZE_IN_EM_H_ #include <QFontMetrics> namespace orbit_code_viewer { /* Strong typede...
42.15
33
(translation_unit) "// Copyright (c) 2020 The Orbit 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 CODE_VIEWER_FONT_SIZE_IN_EM_H_\n#define CODE_VIEWER_FONT_SIZE_IN_EM_H_\n\n#include <QFontMetrics>\n\nnamespace orbit_code...
263
15
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 42.15, "nodes": 146, "errors": 0, "source_hash": "38e0e16e80819a96222a335bc181f64972e624a86245dcc86086987402446228", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef CODE_VI...
77,111
c
// // HTMainPoiViewController.h // map_yang // // Created by niesiyang on 2017/11/12. // Copyright © 2017年 niesiyang. All rights reserved. // #import <UIKit/UIKit.h> @interface HTMainPoiViewController : UIViewController ////关键字查询接口 //@property (nonatomic,copy) NSString * searchPOIKeyWords; //ID查询接口 //@property (...
24.71
17
(translation_unit) "//\n// HTMainPoiViewController.h\n// map_yang\n//\n// Created by niesiyang on 2017/11/12.\n// Copyright © 2017年 niesiyang. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface HTMainPoiViewController : UIViewController\n\n////关键字查询接口\n//@property (nonatomic,copy) NSString * searchPO...
27
4
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 24.71, "nodes": 11, "errors": 0, "source_hash": "9b40623be52b293c9da99ade2af6c8480524e88e0ae8b8856fcca5c2a7d9988d", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKi...
77,112
c
#include <string.h> #include "watimer\watimer.h" volatile uint32_t watimer_time; volatile uint8_t callbacks_num; struct watimer_callback_st* watimer_callbacks[MAXCALLBACKS]; watimer_HAL_st *watimer_hal = 0; void watimer_set_HAL(watimer_HAL_st *ptr) { watimer_hal = ptr; } uint32_t watimer_update_time() { st...
26.75
207
(translation_unit) "#include <string.h>\n#include "watimer\watimer.h"\n\nvolatile uint32_t watimer_time;\n\nvolatile uint8_t callbacks_num;\n\nstruct watimer_callback_st* watimer_callbacks[MAXCALLBACKS];\n\nwatimer_HAL_st *watimer_hal = 0;\n\nvoid watimer_set_HAL(watimer_HAL_st *ptr)\n{\n watimer_hal = ptr;\n}\n\nuin...
1,488
0
{"language": "c", "success": true, "metadata": {"lines": 207, "avg_line_length": 26.75, "nodes": 866, "errors": 0, "source_hash": "0c4d76460a5d75d5bdabcb164e9cf4762d392d7e16c9952aefc286d97dc92236", "categorized_nodes": 661}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
77,113
c
#ifndef DISPLAYRESULT_H #define DISPLAYRESULT_H #include <parameters.h> #include <QImage> #include <QSharedPointer> #include "hobbits-widgets_global.h" /** * @brief The DisplayResult class contains the result of a DisplayInterface::renderDisplay() or DisplayInterface::renderOverlay() run * * \see DisplayInterfa...
31.7
30
(translation_unit) "#ifndef DISPLAYRESULT_H\n#define DISPLAYRESULT_H\n\n#include <parameters.h>\n#include <QImage>\n#include <QSharedPointer>\n#include "hobbits-widgets_global.h"\n\n/**\n * @brief The DisplayResult class contains the result of a DisplayInterface::renderDisplay() or DisplayInterface::renderOverlay() ru...
186
10
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 31.7, "nodes": 110, "errors": 0, "source_hash": "0435c17036ab5829d9b8309ecc4fb82b543ca94dc8339e04a45b478d2c192b32", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
77,114
c
/* Copyright (c) 2013-2016 <NAME> * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef M_CORE_SYNC_H #define M_CORE_SYNC_H #include <mgba-util/common.h> CX...
33.61
33
(translation_unit) "/* Copyright (c) 2013-2016 <NAME>\n *\n * This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://mozilla.org/MPL/2.0/. */\n#ifndef M_CORE_SYNC_H\n#define M_CORE_SYNC_H\n\n#incl...
209
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 33.61, "nodes": 162, "errors": 0, "source_hash": "6b0f348d7a3a1ee37bc41844c849c5a76b4834df885a7e3d9765f5c8d8be796a", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
77,115
c
/* * * Copyright (c) 2020 gyabo <<EMAIL>> * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, pub...
28.22
98
(translation_unit) "/*\n *\n * Copyright (c) 2020 gyabo <<EMAIL>>\n * Permission is hereby granted, free of charge, to any person obtaining a\n * copy of this software and associated documentation files (the "Software"),\n * to deal in the Software without restriction, including without limitation\n * the rights to use...
577
1
{"language": "c", "success": true, "metadata": {"lines": 98, "avg_line_length": 28.22, "nodes": 360, "errors": 0, "source_hash": "175c3f0d442f91198ad019c3c3fe9928078ec845f6ae9a4c45fdb6e31f3136b3", "categorized_nodes": 269}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
77,116
c
void cloud_init(); void cloud_send(float temperature, float humidity, float pressure); void cloud_recieve(); int cloud_connect();
31.5
4
(translation_unit) "void cloud_init();\nvoid cloud_send(float temperature, float humidity, float pressure);\nvoid cloud_recieve();\nint cloud_connect();\n" (declaration) "void cloud_init();" (primitive_type) "void" (function_declarator) "cloud_init()" (identifier) "cloud_init" (parameter_list) "()...
44
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 31.5, "nodes": 29, "errors": 0, "source_hash": "23802570f09313582e42c7f5fe083645772c5e121573ed8bb51de242afcde037", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "void cloud_i...
77,117
c
// // MetalImagePicture.h // MetalImage // // Created by <NAME> on 2017/10/12. // Copyright © 2017年 fengshi. All rights reserved. // #import <UIKit/UIKit.h> #import "MetalImageOutput.h" NS_ASSUME_NONNULL_BEGIN @interface MetalImagePicture : MetalImageOutput { CGSize pixelSizeOfImage; BOOL hasProcess...
30.62
24
(translation_unit) "//\n// MetalImagePicture.h\n// MetalImage\n//\n// Created by <NAME> on 2017/10/12.\n// Copyright © 2017年 fengshi. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "MetalImageOutput.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface MetalImagePicture : MetalImageOutput {\n \n CGSize pi...
141
13
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 30.62, "nodes": 87, "errors": 0, "source_hash": "c3fad9036bfd7b07c15675c09ec195b654ccb11317754586df762bf510398bfe", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
77,118
c
// // BudgetSettings.h // Budget // // Created by <NAME> on 26.10.12. // // #import <UIKit/UIKit.h> @interface BudgetSettings : UITableViewController <UITextFieldDelegate, UIPickerViewDataSource, UIPickerViewDelegate> @property (weak, nonatomic) IBOutlet UITableViewCell *mainCurrencyCell; @end
26.09
11
(translation_unit) "//\n// BudgetSettings.h\n// Budget\n//\n// Created by <NAME> on 26.10.12.\n//\n//\n\n#import <UIKit/UIKit.h>\n\n@interface BudgetSettings : UITableViewController <UITextFieldDelegate, UIPickerViewDataSource, UIPickerViewDelegate>\n@property (weak, nonatomic) IBOutlet UITableViewCell *mainCurrency...
50
8
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 26.09, "nodes": 32, "errors": 0, "source_hash": "57e79e8d38ed1faf90a9df0c6f8e89a1bb040ff7284d8d4f0a8b837512ff6b9d", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
77,119
c
#ifndef ABOVEGROUNDWORKERITEM_H #define ABOVEGROUNDWORKERITEM_H #include <stdlib.h> #include <QMessageBox> class Game; class AboveGroundWorkerItem { private: double reduction; public: /** * @brief Konstruktor klasy AbovegroundWorkerItem */ AboveGroundWorkerItem(); virtual double useItem() ...
22.94
33
(translation_unit) "#ifndef ABOVEGROUNDWORKERITEM_H\n#define ABOVEGROUNDWORKERITEM_H\n\n#include <stdlib.h>\n#include <QMessageBox>\n\n\nclass Game;\n\nclass AboveGroundWorkerItem\n{\nprivate:\n double reduction;\npublic:\n /**\n * @brief Konstruktor klasy AbovegroundWorkerItem\n */\n AboveGroundWorker...
106
2
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 22.94, "nodes": 68, "errors": 0, "source_hash": "a8227e61b5f48d7d04d4c95afc77e6f015b016cd7e79d067a1b1a088f28163a4", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
77,120
c
/* * Copyright 2019 NXP * * SPDX-License-Identifier: BSD-3-Clause */ #include "mdha.h" #include "mdha_test.h" int mdha_fd; mdha_addr_t mdha_addr; void mdha_test_usage(void) { printf("mdha test usage:\n"); printf("sha1 test ==> mdha sha1 <input_file>\n"); printf("md5 test ==> mdha md5 <input_file>\n"); } int...
21.24
83
(translation_unit) "/*\n * Copyright 2019 NXP\n *\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n#include "mdha.h"\n#include "mdha_test.h"\n\nint mdha_fd;\nmdha_addr_t mdha_addr;\n\nvoid mdha_test_usage(void)\n{\n printf("mdha test usage:\n");\n printf("sha1 test ==> mdha sha1 <input_file>\n");\n printf("md5 test =...
706
0
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 21.24, "nodes": 391, "errors": 0, "source_hash": "35f9228a3eabbea674ec0f87736c892537a4228b6fe50b0eeb605cee1e0080ba", "categorized_nodes": 271}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
77,121
c
/** * @file BLEPreferences.h * @author Locha Mesh Developers (<EMAIL>) * @brief * @version 0.1 * @date 2019-11-25 * * @copyright Copyright (c) 2019 Locha Mesh project developers * @license Apache 2.0, see LICENSE file for details * */ #ifndef BLE_PREFERENCES_H #define BLE_PREFERENCES_H #include "esp_err....
21.14
29
(translation_unit) "/**\n * @file BLEPreferences.h\n * @author Locha Mesh Developers (<EMAIL>)\n * @brief \n * @version 0.1\n * @date 2019-11-25\n * \n * @copyright Copyright (c) 2019 Locha Mesh project developers\n * @license Apache 2.0, see LICENSE file for details\n * \n */\n\n#ifndef BLE_PREFERENCES_H\n#define BLE_...
54
1
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 21.14, "nodes": 31, "errors": 0, "source_hash": "e1f4c1b29087fb842db04d013fc7fc1d45e88c824c9eb6f6903e463d6e7baa4c", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
77,122
c
#include "bst.h" #include <stdio.h> #include <string.h> #define BUF_SIZE 4096 void rm_newline(char *str); int main() { BST bst; bst_init(&bst); bst_insert(&bst, "dog", "狗勾"); bst_insert(&bst, "cat", "貓貓"); bst_insert(&bst, "apple", "蘋果"); bst_insert(&bst, "fuck", "法克"); bst_insert(&bst, ...
24.25
36
(translation_unit) "#include "bst.h"\n#include <stdio.h>\n#include <string.h>\n\n#define BUF_SIZE 4096\n\nvoid rm_newline(char *str);\n\nint main() {\n BST bst;\n bst_init(&bst);\n\n bst_insert(&bst, "dog", "狗勾");\n bst_insert(&bst, "cat", "貓貓");\n bst_insert(&bst, "apple", "蘋果");\n bst_insert(&bst, "...
386
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 24.25, "nodes": 196, "errors": 0, "source_hash": "a3b425af5a338476adf098ed17848dbcf1f248144fd59364d0067dd7450b93ee", "categorized_nodes": 137}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
77,123
c
#pragma once #include "../pafcore/Utility.h" #if defined PAFSTD_EXPORTS #define PAFSTD_EXPORT __declspec(dllexport) #define PAFSTD_TEMPLATE __declspec(dllexport) #else #define PAFSTD_EXPORT __declspec(dllimport) #define PAFSTD_TEMPLATE #endif #define BEGIN_PAFSTD namespace pafstd { #define END_PAFSTD }
27.09
11
(translation_unit) "#pragma once\n\n#include "../pafcore/Utility.h"\n\n#if defined PAFSTD_EXPORTS\n #define PAFSTD_EXPORT __declspec(dllexport)\n #define PAFSTD_TEMPLATE __declspec(dllexport)\n#else\n #define PAFSTD_EXPORT __declspec(dllimport)\n #define PAFSTD_TEMPLATE\n#endif\n\n#define BEGIN_PAFSTD namespace pafstd ...
42
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 27.09, "nodes": 37, "errors": 0, "source_hash": "b0d8c47d2c460afec654e7171b74e0ba8fd05bbfe941f44ab0b28e49f3074eba", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
77,124
c
/* @(#) Command; reads the header of a Vasari picture file. * @(#) Usage: header vasari_file * @(#) * * Copyright: Birkbeck College, History of Art Dept, London, VASARI project. * * Author: <NAME> * Written on: 17/01/1990 * Modified on : 17/04/1990, 2/6/93 K.Martinez * 16/6/93 JC * - now calls im_mmapin inst...
28.67
193
(translation_unit) "/* @(#) Command; reads the header of a Vasari picture file.\n * @(#) Usage: header vasari_file\n * @(#) \n *\n * Copyright: Birkbeck College, History of Art Dept, London, VASARI project.\n *\n * Author: <NAME>\n * Written on: 17/01/1990\n * Modified on : 17/04/1990, 2/6/93 K.Martinez\n * 16/6/93 JC\...
1,194
0
{"language": "c", "success": true, "metadata": {"lines": 193, "avg_line_length": 28.67, "nodes": 653, "errors": 0, "source_hash": "5235924ee1b98a92248f9ba29feba1e1b970c682522f9ef9276b4a98fbe3ce9b", "categorized_nodes": 442}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifde...
77,125
c
/* * Huawei Touchscreen Driver * * Copyright (c) 2012-2019 Huawei Technologies Co., Ltd. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. * * This program ...
29.13
62
(translation_unit) "/*\n * Huawei Touchscreen Driver\n *\n * Copyright (c) 2012-2019 Huawei Technologies Co., Ltd.\n *\n * This software is licensed under the terms of the GNU General Public\n * License version 2, as published by the Free Software Foundation, and\n * may be copied, distributed, and modified under those...
284
2
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 29.13, "nodes": 169, "errors": 0, "source_hash": "153f9a5d390c852519281f110308d3844ab6db2fb2ad4d4866ab2de2c2ca97ed", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
77,126
c
#include "ds.h" void remove_dup(lnode *list) { if (!list) return; if (!list->next) return; ht *h = ht_create(); lnode *prev = list, *cur = list->next; ht_insert(h, prev->val, 1); while (cur) { if (ht_get(h, cur->val)) { prev->next = cur->next; ...
20.4
30
(translation_unit) "#include "ds.h"\n\nvoid remove_dup(lnode *list)\n{\n if (!list)\n return;\n\n if (!list->next)\n return;\n\n ht *h = ht_create();\n\n lnode *prev = list, *cur = list->next;\n ht_insert(h, prev->val, 1);\n\n while (cur) {\n if (ht_get(h, cur->val)) {\n ...
256
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 20.4, "nodes": 152, "errors": 0, "source_hash": "80fe16516eb868ee2233d4e799bcf0c95e13221368f52ad6abfb00dccda2dd51", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
77,127
c
#pragma once #include <deque> namespace rebel_road { namespace util { class deletion_queue { public: void push_function( std::function<void()>&& function ) { deletors.push_back( function ); } void flush() { ...
22.23
26
(translation_unit) "#pragma once\n\n#include <deque>\n\nnamespace rebel_road\n{\n namespace util\n {\n class deletion_queue\n {\n public:\n void push_function( std::function<void()>&& function )\n {\n deletors.push_back( function );\n }\n\n ...
166
5
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 22.23, "nodes": 92, "errors": 0, "source_hash": "8122f1c9f55a8c1a348ca4f0ed470741de081c34bc5a5aeeed42f28093ceadb3", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
77,128
c
#include <nds.h> #ifndef __INPUTHELPER_H__ #define __INPUTHELPER_H__ class InputHelper { public: static bool KeyDown(int key); static bool KeyHeld(int key); static bool KeyUp(int key); static touchPosition& TouchRead(); protected: static touchPosition mTouch; }; #endif
15.89
18
(translation_unit) "#include <nds.h> \n \n#ifndef __INPUTHELPER_H__ \n#define __INPUTHELPER_H__ \n \nclass InputHelper \n{ \n public: \n static bool KeyDown(int key); \n static bool KeyHeld(int key); \n static bool KeyUp(int key); \n static touchPosition& TouchRead(); \n \n protected: \n static touchPosition mTou...
82
1
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 15.89, "nodes": 46, "errors": 0, "source_hash": "15f97a9996dd967f1cd5002acb5dd34524d0356a62f16c8012efb6b7f815b2be", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
77,129
c
/* * rc.h * * Created on: Mar 5, 2009 * Author: rikki */ #ifndef _CURLFUNCTION_H_ #define _CURLFUNCTION_H_ extern int ocset_curl_flags(OCstate*); extern int ocset_user_password(OCstate*); extern int ocset_proxy(OCstate*); extern int ocset_ssl(OCstate*); #endif /*_CURLFUNCTION_H_*/
21.54
13
(translation_unit) "/*\n * rc.h\n *\n * Created on: Mar 5, 2009\n * Author: rikki\n */\n\n#ifndef _CURLFUNCTION_H_\n#define _CURLFUNCTION_H_\n\nextern int ocset_curl_flags(OCstate*);\nextern int ocset_user_password(OCstate*);\nextern int ocset_proxy(OCstate*);\nextern int ocset_ssl(OCstate*);\n\n#endif /*_CURLFUN...
66
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 21.54, "nodes": 51, "errors": 0, "source_hash": "8e275c121a03a817e2609507538ab98f1579d387cf7d5e00d53204e8a2d47ce7", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
77,130
c
//Copyright (c) 1998 - 1999 Microsoft Corporation /************************************************************************* * * QUERY.C * This module is the QUERY utility code. * * *************************************************************************/ #include <stdio.h> #include <windows.h> #inclu...
24.28
186
(translation_unit) "//Copyright (c) 1998 - 1999 Microsoft Corporation \n/************************************************************************* \n* \n* QUERY.C \n* This module is the QUERY utility code. \n* \n* \n*************************************************************************/ \n \n#include <stdio.h> ...
661
0
{"language": "c", "success": true, "metadata": {"lines": 186, "avg_line_length": 24.28, "nodes": 398, "errors": 0, "source_hash": "50986add73853bfb5a03a334df4b68cfc21cdd6dcf3fb4f2690632bb9775d03a", "categorized_nodes": 285}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
77,131
c
/** * Hello world * * From https://www.youtube.com/watch?v=GSqrT7t1vAc&index=8&list=PL6PplMTH29SHgRPDufZhfMRoFwRAIrzOp * with changes for the STM32LO53 */ #include "stm32l0xx.h" #include "stm32l0xx_nucleo.h" void waitForAMoment (int moment) { volatile int i, j; for (i = 0; i < moment; ++i) ...
19.36
53
(translation_unit) "/** \n * Hello world \n * \n * From https://www.youtube.com/watch?v=GSqrT7t1vAc&index=8&list=PL6PplMTH29SHgRPDufZhfMRoFwRAIrzOp \n * with changes for the STM32LO53 \n */ \n \n#include "stm32l0xx.h" \n#include "stm32l0xx_nucleo.h" \n \nvoid \nwaitForAMoment (int moment) \n{ \n volatile int i, j; \n ...
200
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 19.36, "nodes": 113, "errors": 0, "source_hash": "ce5b6db6994ae3131945c59c8976d7099f26d9ff1f9a2434315aacd9a385c218", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
77,132
c
/* * This file is part of the coreboot project. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of the License. * * This program is distributed in the hope that it will be use...
28.12
56
(translation_unit) "/*\n * This file is part of the coreboot project.\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; version 2 of the License.\n *\n * This program is distributed in t...
265
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 28.12, "nodes": 148, "errors": 0, "source_hash": "c6d961c94e624374f96616a17319da45972d26a93efb7bed48d4a34eff3ad205", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
77,133
c
// // KMUtilities.h // Tun2Web // // Created by kevinma on 2016/10/18. // Copyright © 2016年 kevinma. All rights reserved. // #ifndef KMUtilities_h #define KMUtilities_h #import "UIDevice+KMUtilities.h" #import "UIWindow+KMUtilities.h" #import "UIBarButtonItem+KMUtilities.h" #import "UIImage+KMUtilities.h" #import...
25
18
(translation_unit) "//\n// KMUtilities.h\n// Tun2Web\n//\n// Created by kevinma on 2016/10/18.\n// Copyright © 2016年 kevinma. All rights reserved.\n//\n\n#ifndef KMUtilities_h\n#define KMUtilities_h\n\n#import "UIDevice+KMUtilities.h"\n#import "UIWindow+KMUtilities.h"\n#import "UIBarButtonItem+KMUtilities.h"\n#impo...
40
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 25.0, "nodes": 31, "errors": 0, "source_hash": "35e31bcf649dd20eb15a2b78cb994d4fb4d382c127dc9c96eac04a4aeffa53cd", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ndef KMUt...
77,134
c
#include <stdio.h> int main() { int i=0; int input; scanf("%d", &input); for (int num = 1; num <= 1000; num++) { if (input <= i) { printf("%d", num-1); return; } else { i += num; } } return 0; }
12.62
16
(translation_unit) "#include <stdio.h>\n\nint main() {\n int i=0;\n int input;\n scanf("%d", &input);\n for (int num = 1; num <= 1000; num++) {\n if (input <= i) {\n printf("%d", num-1);\n return;\n }\n else {\n i += num;\n }\n }\n return 0;\n}" (preproc_include) "#include <stdio.h>\n" (#include) "#incl...
108
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 12.62, "nodes": 59, "errors": 0, "source_hash": "346dd25649cb4c952f5bdbe03cb51815397d7da5b5a48da61c44e0d5125d9957", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
77,135
c
#pragma once #include <Core.h> class Watchdog { public: Watchdog(std::filesystem::path const& filePath, std::string const& fileExtension); public: void Update(); inline std::set<std::filesystem::path> const& FilesToCreate() const { return mFilesToCreate; } inline std::set<std::filesystem::path> const& Fil...
37.74
23
(translation_unit) "#pragma once\n\n#include <Core.h>\n\nclass Watchdog\n{\npublic:\n\n Watchdog(std::filesystem::path const& filePath, std::string const& fileExtension);\n\npublic:\n\n void Update();\n\n inline std::set<std::filesystem::path> const& FilesToCreate() const { return mFilesToCreate; }\n inline std::se...
341
22
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 37.74, "nodes": 178, "errors": 0, "source_hash": "0a7cce719fb4733300419ae4427d31218cae6bd52107693256c4631bc35e07dd", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
77,136
c
/** @file Early SC platform initialization. Copyright (c) 2012 - 2016, Intel Corporation. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the l...
23.23
321
(translation_unit) "/** @file \n Early SC platform initialization. \n \n Copyright (c) 2012 - 2016, Intel Corporation. All rights reserved.<BR> \n \n This program and the accompanying materials \n are licensed and made available under the terms and conditions of the BSD License \n which accompanies this distributi...
1,034
12
{"language": "c", "success": true, "metadata": {"lines": 321, "avg_line_length": 23.23, "nodes": 623, "errors": 0, "source_hash": "5315bf331ff6f0d80f4131662512ef5ff69386cb749033dc952fc04159740119", "categorized_nodes": 482}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
77,137
c
// // InfoMationView.h // Billunion // // Created by Waki on 2017/2/28. // Copyright © 2017年 JM. All rights reserved. // #import <UIKit/UIKit.h> typedef NS_ENUM(NSInteger,InfoMationViewType) { InfoMationViewType_Delivery, //报价买入的弹窗 InfoMationViewType_IsAnonymous, //是否匿名的弹窗 InfoMationViewType_InPut_Di...
35.57
46
(translation_unit) "//\n// InfoMationView.h\n// Billunion\n//\n// Created by Waki on 2017/2/28.\n// Copyright © 2017年 JM. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\ntypedef NS_ENUM(NSInteger,InfoMationViewType) {\n InfoMationViewType_Delivery, //报价买入的弹窗\n InfoMationViewType_IsAnonymous, //是否匿名的弹窗...
360
50
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 35.57, "nodes": 244, "errors": 0, "source_hash": "71cdf9cc7872463ce4b37a270fcfd934e1a3264cd3dcf4ce4fc67d4dd9e7f008", "categorized_nodes": 144}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <U...
77,138
c
#ifndef _QV_FIELD_DATA_ #define _QV_FIELD_DATA_ #include <QvBasic.h> #include <QvPList.h> #include <QvString.h> class QvField; class QvInput; class QvNode; class QvFieldData { public: QvFieldData() {} ~QvFieldData(); void addField(QvNode *defObject, const char *fieldName, const QvField *field)...
30.55
33
(translation_unit) "#ifndef _QV_FIELD_DATA_\n#define _QV_FIELD_DATA_\n\n#include <QvBasic.h>\n#include <QvPList.h>\n#include <QvString.h>\n\nclass QvField;\nclass QvInput;\nclass QvNode;\n\nclass QvFieldData {\n public:\n QvFieldData() {}\n ~QvFieldData();\n\n void addField(QvNode *defObject, const char *f...
311
9
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 30.55, "nodes": 193, "errors": 0, "source_hash": "a7bcf69b08e1de8ceb3db34b190559986fb7267205b606d6e8bb129cb3d462c8", "categorized_nodes": 124}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
77,139
c
/* iqinx.c ======= Author: R.J.Barnes */ /* LICENSE AND DISCLAIMER Copyright (c) 2012 The Johns Hopkins University/Applied Physics Laboratory This file is part of the Radar Software Toolkit (RST). RST is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General ...
22.7
111
(translation_unit) "/* iqinx.c\n =======\n Author: R.J.Barnes\n*/\n\n/*\n LICENSE AND DISCLAIMER\n \n Copyright (c) 2012 The Johns Hopkins University/Applied Physics Laboratory\n \n This file is part of the Radar Software Toolkit (RST).\n \n RST is free software: you can redistribute it and/or modify\n it under the...
860
0
{"language": "c", "success": true, "metadata": {"lines": 111, "avg_line_length": 22.7, "nodes": 538, "errors": 0, "source_hash": "688f9f2464c3b82e3449998e9564db724808fddbc424bfc4e6257189b4485462", "categorized_nodes": 378}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
77,140
c
/* * This file implements testing of the AGB star file I/O functions at * vice/src/io/agb.h */ #include <stdlib.h> #include <string.h> #include <stdio.h> #include "../../io.h" #include "agb.h" /* ---------- static function comment headers not duplicated here ---------- */ static unsigned short spawn_test...
23.33
119
(translation_unit) "/* \n * This file implements testing of the AGB star file I/O functions at \n * vice/src/io/agb.h \n */ \n\n#include <stdlib.h> \n#include <string.h> \n#include <stdio.h> \n#include "../../io.h" \n#include "agb.h" \n\n/* ---------- static function comment headers not duplicated here ---------- */ \n...
816
0
{"language": "c", "success": true, "metadata": {"lines": 119, "avg_line_length": 23.33, "nodes": 470, "errors": 0, "source_hash": "2e9435ce86226763e2f7d80a7251ee908636e4bcc5940339534f9cdfca707323", "categorized_nodes": 325}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
77,141
c
/** * ScapeEngine::RenderView class * * Combines an Ogre RenderView, camera, getViewport(), a parent window's rectangle and a * camera controlling CameraController with eachother. Can be either deattached * or attached to a parent window. * * <NAME>, Copyright (c) 2007. * Licensed under the Simplified BSD licen...
40.9
82
(translation_unit) "/**\n * ScapeEngine::RenderView class\n *\n * Combines an Ogre RenderView, camera, getViewport(), a parent window's rectangle and a\n * camera controlling CameraController with eachother. Can be either deattached\n * or attached to a parent window.\n *\n * <NAME>, Copyright (c) 2007.\n * Licensed un...
525
24
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 40.9, "nodes": 293, "errors": 0, "source_hash": "535e46e6bcb8e6b53d4db748844b1c36afd74caf86509fb203e6df5342326569", "categorized_nodes": 203}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
77,142
c
#ifndef BH1750DEVICE_H #define BH1750DEVICE_H #include <BH1750.h> #include "SensorDevice.h" #include "../Weather.h" class BH1750Device: public SensorDevice { public: BH1750Device(byte addr = 0x23) { lightMeter = new BH1750(addr); } bool isConnected() override { return lightMeter->begin(BH...
26.71
24
(translation_unit) "#ifndef BH1750DEVICE_H\n#define BH1750DEVICE_H\n\n#include <BH1750.h>\n#include "SensorDevice.h"\n#include "../Weather.h"\n\nclass BH1750Device: public SensorDevice {\npublic:\n BH1750Device(byte addr = 0x23) {\n lightMeter = new BH1750(addr);\n }\n\n bool isConnected() override {\n ...
170
6
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 26.71, "nodes": 97, "errors": 0, "source_hash": "c5730fb3e872c810f50814cc33f3ede0be68ba1963693e57555dedb5f5ce3639", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
77,143
c
int cache_control(unsigned int command) { volatile unsigned int *p = (volatile unsigned int *) 0x80000000; int i; for (i = 0; i < (32 * 1024); i += 32) { (void)*p; p += (32 / sizeof(int)); } return 0; }
20.2
10
(translation_unit) "int cache_control(unsigned int command)\n{\n volatile unsigned int *p = (volatile unsigned int *) 0x80000000;\n int i;\n\n for (i = 0; i < (32 * 1024); i += 32) {\n (void)*p;\n p += (32 / sizeof(int));\n }\n\n return 0;\n}\n" (function_definition) "int cache_control(unsigned int command)\n{\n vo...
102
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.2, "nodes": 69, "errors": 0, "source_hash": "2d4bd59c48785bd0234567bf5d2bced0b47c4200f3c803931d8f0b139b9d3d28", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "int...
77,144
c
/* * ColaCircular.h * * Created on: 18/03/2012 * Author: Alejandro */ #ifndef COLACIRCULAR_H_ #define COLACIRCULAR_H_ #include "CAPI_Definitions.h" typedef struct ColaCircularStruct { cola_t *pOrigen; cola_t *pIn; cola_t *pOut; int cantidadEnCola; int capacidad; }ColaCircular; vo...
23.66
29
(translation_unit) "/* \n * ColaCircular.h \n * \n * Created on: 18/03/2012 \n * Author: Alejandro \n */ \n \n#ifndef COLACIRCULAR_H_ \n#define COLACIRCULAR_H_ \n \n#include "CAPI_Definitions.h" \n \ntypedef struct ColaCircularStruct { \n cola_t *pOrigen; \n cola_t *pIn; \n cola_t *pOut; \n int cantidadEnCola; \n...
158
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 23.66, "nodes": 118, "errors": 0, "source_hash": "c4b67128c45b6afbc47845c29221f1d82d0bb800b7456fc4847431284f7c8e46", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
77,145
c
// // AboutCell.h // SwiftTheme // // Created by Gesen on 16/5/26. // Copyright © 2016年 Gesen. All rights reserved. // #import "BaseCell.h" @interface AboutCell : BaseCell @property (nonatomic, weak) IBOutlet UILabel *content; @end
20.45
11
(translation_unit) "//\n// AboutCell.h\n// SwiftTheme\n//\n// Created by Gesen on 16/5/26.\n// Copyright © 2016年 Gesen. All rights reserved.\n//\n\n#import "BaseCell.h"\n\n@interface AboutCell : BaseCell\n\n@property (nonatomic, weak) IBOutlet UILabel *content;\n\n@end\n" (comment) "//" (comment) "// AboutCell...
38
7
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 20.45, "nodes": 25, "errors": 0, "source_hash": "579c6faf1193ac91be690a554b802c8f7cdbc9ee0e157f1ba6a2774fea6dc93b", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"Ba...
77,146
c
/* Copyright 2014 Smartsheet Inc. Copyright 2019 SmJNI Contributors 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 applic...
30.22
103
(translation_unit) "/*\n Copyright 2014 Smartsheet Inc.\n Copyright 2019 SmJNI Contributors\n \n Licensed under the Apache License, Version 2.0 (the "License");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0...
690
48
{"language": "c", "success": true, "metadata": {"lines": 103, "avg_line_length": 30.22, "nodes": 429, "errors": 0, "source_hash": "a073d57e2c32bbb6d4a91435e38877e56682f99f411b7f76f1e3b5f2247deea6", "categorized_nodes": 274}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
77,147
c
#pragma once namespace MyLibrary { int getFortyTwo(); }
14
4
(translation_unit) "#pragma once\n\nnamespace MyLibrary {\n int getFortyTwo();\n}" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (function_definition) "namespace MyLibrary {\n int getFortyTwo();\n}" (type_identifier) "namespace" (identifier) "MyLibrary" ...
18
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 14.0, "nodes": 11, "errors": 0, "source_hash": "a19fedd78b7cc74b0fea8d86035b01e254632cf9a927ab4996be9480536788bd", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once...
77,148
c
#include<stdio.h> int filling(int capacity, int nbObjects, int tab[][capacity+1], int objects[]) { int i, j, k; for (i = 0; i<nbObjects+1; i++) { for(j = 0; j<capacity+1; j++) { tab[i][j] = 0; } } tab[0][0] = 1; // filling for (i = 1; i< nbObjects+1;i++) { for (...
17.69
61
(translation_unit) "#include<stdio.h> \n \nint filling(int capacity, int nbObjects, int tab[][capacity+1], int objects[]) \n{ \n int i, j, k; \n for (i = 0; i<nbObjects+1; i++) \n { \n for(j = 0; j<capacity+1; j++) \n { \n tab[i][j] = 0; \n } \n } \n tab[0][0] = 1; \n \n // filling \n for (i = 1; ...
539
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 17.69, "nodes": 312, "errors": 0, "source_hash": "1d6d6f6dcd1874ee6d87c9820591ed1bf43cbd6dac76944fc0d2375873038375", "categorized_nodes": 233}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
77,149
c
/** * Touhou Community Reliant Automatic Patcher * Tasogare Frontier support plugin * * ---- * * Files list handling. */ #pragma once #include <thcrap.h> #include <filesystem> #include "tasofro_file.h" #ifdef __cplusplus struct Th135File : public TasofroFile { // XOR key DWORD key[4]; }; extern "C" ...
20.32
28
(translation_unit) "/**\n * Touhou Community Reliant Automatic Patcher\n * Tasogare Frontier support plugin\n *\n * ----\n *\n * Files list handling.\n */\n\n#pragma once\n\n#include <thcrap.h>\n#include <filesystem>\n#include "tasofro_file.h"\n\n#ifdef __cplusplus\nstruct Th135File : public TasofroFile\n{\n // ...
133
1
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 20.32, "nodes": 89, "errors": 0, "source_hash": "59ff0d17097409d38aeba7615a78cca0454de450322c4431391173a3f9e45555", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
77,150
c
/* This is a simple method to enable users to configure their own table of VID and PIDs. Just overwrite entries in the table or add/subract as many as you want. There may be a performance drop when using FT_Open, FT_OpenEx or FT_ListDevices when using this method. Therefore it is advised to avoid excessive used...
31.39
38
(translation_unit) "/*\n This is a simple method to enable users to configure their own table of \n VID and PIDs.\n Just overwrite entries in the table or add/subract as many as you want.\n There may be a performance drop when using FT_Open, FT_OpenEx or \n FT_ListDevices when using this method. Therefore it is advised...
155
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 31.39, "nodes": 82, "errors": 0, "source_hash": "35124a55218997b7cb2fd06bbf6161ba43c62cdced6ee87b7d216feb5ed27379", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_function_def", "text": "#...
77,151
c
#pragma once //bool is_cache_not_expired(bool is_from_flush = false/*, bool is_from_other_thread = false*/); int is_cache_not_expired2(); bool is_config_changed(); bool reload_config(); bool get_filetime(PCWSTR const filename, FILETIME& file_write_timestamp); bool flush_cache(/*bool is_exist = false*/); enum Cache...
31.89
130
(translation_unit) "ragma once\n\n//bool is_cache_not_expired(bool is_from_flush = false/*, bool is_from_other_thread = false*/);\nint is_cache_not_expired2();\n\nbool is_config_changed();\nbool reload_config();\nbool get_filetime(PCWSTR const filename, FILETIME& file_write_timestamp);\n\nbool flush_cache(/*bool is_exi...
732
35
{"language": "c", "success": true, "metadata": {"lines": 130, "avg_line_length": 31.89, "nodes": 465, "errors": 0, "source_hash": "1188880a96149e9cea0280fc1b0b8e88983ee77a97135379e48b394e63f7c052", "categorized_nodes": 323}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma ...
77,152
c
/* Generated by RuntimeBrowser. */ @protocol SGUIAddAllTableViewCellDelegate <NSObject> @required - (void)addAllTableViewCellDidTapAddAll:(SGUIAddAllTableViewCell *)arg1; @end
28.5
6
(translation_unit) "/* Generated by RuntimeBrowser.\n */\n\n@protocol SGUIAddAllTableViewCellDelegate <NSObject>\n\n@required\n\n- (void)addAllTableViewCellDidTapAddAll:(SGUIAddAllTableViewCell *)arg1;\n\n@end\n" (comment) "/* Generated by RuntimeBrowser.\n */" (ERROR) "@protocol SGUIAddAllTableViewCellDelegate <NS...
30
5
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 28.5, "nodes": 20, "errors": 0, "source_hash": "d2aea9ef19616559536acefbb691b911fb27ed3b3bb6fdc7729e198fb2995eb8", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@protocol SGUIAddA...
77,153
c
/** * @file index.h * The indexes for records */ #ifndef OUROBOROS_INDEX_H #define OUROBOROS_INDEX_H namespace ouroboros { /** * The class for undefined index */ template <typename T> class index_null{}; /** * The class for the index of field number 1 */ template <typename Record> class index1 { public: ...
19.81
100
(translation_unit) "/**\n * @file index.h\n * The indexes for records\n */\n\n#ifndef OUROBOROS_INDEX_H\n#define OUROBOROS_INDEX_H\n\nnamespace ouroboros\n{\n\n/**\n * The class for undefined index\n */\ntemplate <typename T>\nclass index_null{};\n\n/**\n * The class for the index of field number 1\n */\ntemplate <ty...
442
32
{"language": "c", "success": true, "metadata": {"lines": 100, "avg_line_length": 19.81, "nodes": 254, "errors": 0, "source_hash": "f3773fea35d72b9c6e8906afeb77a6310903c554b0888f07cc198fc7d9a35721", "categorized_nodes": 182}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
77,154
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "busca_palavra.h" #define ERRO 3141592 struct node { char info[200]; Node* prox; }; int main (void) { Node* words = lista_cria(); FILE* palavras = fopen ("palavras.dat", "r"); if (!palavras) { printf("Erro na abertura ...
21.58
95
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include "busca_palavra.h"\n#define ERRO 3141592\n\nstruct node\n{\n char info[200];\n Node* prox;\n};\n\nint main (void)\n{\n Node* words = lista_cria();\n FILE* palavras = fopen ("palavras.dat", "r");\n if (!palavras)\n ...
725
0
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 21.58, "nodes": 440, "errors": 0, "source_hash": "b31b1f4ed07ae43e8cc773be74ea86a3be7fde6536f0e35321d1e77ad854cc88", "categorized_nodes": 290}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
77,155
c
/* ** EPITECH PROJECT, 2020 ** parce-json ** File description: ** json_parse_get_value */ #include "my_json.h" #include <stdlib.h> static json_value_t json_parse_compute_value(char **buff) { json_value_t value = {NONE, NULL}; switch (**buff) { case '{': value.value = json_parse_object(buf...
25.23
39
(translation_unit) "/*\n** EPITECH PROJECT, 2020\n** parce-json\n** File description:\n** json_parse_get_value\n*/\n\n#include "my_json.h"\n#include <stdlib.h>\n\nstatic json_value_t json_parse_compute_value(char **buff)\n{\n json_value_t value = {NONE, NULL};\n\n switch (**buff) {\n case '{':\n ...
269
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 25.23, "nodes": 168, "errors": 0, "source_hash": "f61c85e1419eea9171f82f380e4a236714d82e7b505b544b2d852364a49fde56", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
77,156
c
// // WDCard.h // WDeCom // // Created by <NAME> on 11/19/15. // Copyright © 2018 Wirecard Technologies GmbH. All rights reserved. // #import <Foundation/Foundation.h> #import <WDeComCoreCard/WDECCardBrand.h> /** @addtogroup ios_sdk * @{ */ /** * @brief Non-sensitive card data */ @interface WDECCard : NSOb...
21.44
27
(translation_unit) "//\n// WDCard.h\n// WDeCom\n//\n// Created by <NAME> on 11/19/15.\n// Copyright © 2018 Wirecard Technologies GmbH. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n#import <WDeComCoreCard/WDECCardBrand.h>\n\n/** @addtogroup ios_sdk\n * @{\n */\n\n/**\n * @brief Non-sensitive car...
89
15
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 21.44, "nodes": 59, "errors": 0, "source_hash": "2b16ceb10e317ce1c316fe69bcfb23d392ee45af7c20fdc86419e408b05619c9", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
77,157
c
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <arpa/inet.h> #include <sys/socket.h> #include <netinet/in.h> #define serverPort 48763 #define serverIP "127.0.0.1" int main() { // message buffer char buf[10] = {0}; char recvbuf[10] = {0}; // socket int sock...
26.78
95
(translation_unit) "#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <unistd.h>\n#include <arpa/inet.h>\n#include <sys/socket.h>\n#include <netinet/in.h>\n\n#define serverPort 48763\n#define serverIP "127.0.0.1"\n\nint main()\n{\n // message buffer\n char buf[10] = {0};\n char recvbuf[10]...
932
0
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 26.78, "nodes": 514, "errors": 0, "source_hash": "e2257e98e4a305195082ee19bb0ef51e81a4d91540da4bca235f57256ebcb078", "categorized_nodes": 363}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
77,158
c
#pragma once // TODO: move to include or General #include <cmath> #include <type_traits> #define DISABLE_MATRIX_SWIZZLES #if !__INTELLISENSE__ #include "vector math.h" #endif #include "SIMD.h" namespace Renderer { namespace HLSL = Math::VectorMath::HLSL; template<unsigned dimension> struct AABB { static_asse...
35.73
56
(translation_unit) "#pragma once\n\n// TODO: move to include or General\n\n#include <cmath>\n#include <type_traits>\n#define DISABLE_MATRIX_SWIZZLES\n#if !__INTELLISENSE__ \n#include "vector math.h"\n#endif\n#include "SIMD.h"\n\nnamespace Renderer\n{\n namespace HLSL = Math::VectorMath::HLSL;\n\n template<unsigned dime...
732
36
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 35.73, "nodes": 441, "errors": 0, "source_hash": "6a91c591932530c07a40859b5fa9b466a6f349da892b269c0ef759a412c0b16e", "categorized_nodes": 280}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
77,159
c
#ifdef __OBJC__ #import <UIKit/UIKit.h> #endif FOUNDATION_EXPORT double Pods_SimpleCustomizableTextView_ExampleVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_SimpleCustomizableTextView_ExampleVersionString[];
35.83
6
(translation_unit) "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#endif\n\n\nFOUNDATION_EXPORT double Pods_SimpleCustomizableTextView_ExampleVersionNumber;\nFOUNDATION_EXPORT const unsigned char Pods_SimpleCustomizableTextView_ExampleVersionString[];\n\n" (preproc_ifdef) "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#endif...
27
1
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 35.83, "nodes": 19, "errors": 0, "source_hash": "049270641137dbd42c5d0c30dfbca330761eaaa9d3088c982f11d773fe868c4b", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef __...
77,160
c
$NetBSD: patch-libraries_libldap_thr__posix.c,v 1.1 2021/08/23 09:58:58 adam Exp $ Fix for systems lacking pthread_attr_setstacksize(). --- libraries/libldap/thr_posix.c.orig 2021-07-27 17:44:47.000000000 +0000 +++ libraries/libldap/thr_posix.c @@ -25,6 +25,7 @@ #endif #include <ac/errno.h> +#include <ac/unistd.h...
30.88
26
(translation_unit) "$NetBSD: patch-libraries_libldap_thr__posix.c,v 1.1 2021/08/23 09:58:58 adam Exp $\n\nFix for systems lacking pthread_attr_setstacksize().\n\n--- libraries/libldap/thr_posix.c.orig 2021-07-27 17:44:47.000000000 +0000\n+++ libraries/libldap/thr_posix.c\n@@ -25,6 +25,7 @@\n #endif\n \n #include <ac/er...
210
14
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 30.88, "nodes": 167, "errors": 0, "source_hash": "e7be4cf4d692cf72a6bd52a9096d08b2fb046435d339a56f37154fe2c6ef28d7", "categorized_nodes": 119}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "labeled_statement", "text": "$N...
77,161
c
/* * machinarium. * * cooperative multitasking engine. */ #include <machinarium.h> #include <machinarium_private.h> int mm_socket(int domain, int type, int protocol) { int rc; rc = socket(domain, type, protocol); return rc; } int mm_socket_set_nonblock(int fd, int enable) { int flags = fcntl(fd, F_GETFL, 0);...
19.38
165
(translation_unit) "/*\n * machinarium.\n *\n * cooperative multitasking engine.\n*/\n\n#include <machinarium.h>\n#include <machinarium_private.h>\n\nint mm_socket(int domain, int type, int protocol)\n{\n int rc;\n rc = socket(domain, type, protocol);\n return rc;\n}\n\nint mm_socket_set_nonblock(int fd, int enable)\n{...
1,167
0
{"language": "c", "success": true, "metadata": {"lines": 165, "avg_line_length": 19.38, "nodes": 729, "errors": 0, "source_hash": "0538d01d3847b71abc196aa009dcbc14062e6d9a38feefb97f93cbe69381f1a2", "categorized_nodes": 535}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
77,162
c
/* Copyright (C) 2011, 2012 The uOFW team See the file COPYING for copying permission. */ #include "common_header.h" int sceLfatfsWaitReady(void);
29
5
(translation_unit) "/* Copyright (C) 2011, 2012 The uOFW team\n See the file COPYING for copying permission.\n*/\n\n#include "common_header.h"\n\nint sceLfatfsWaitReady(void);\n\n" (comment) "/* Copyright (C) 2011, 2012 The uOFW team\n See the file COPYING for copying permission.\n*/" (preproc_include) "#includ...
18
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 29.0, "nodes": 10, "errors": 0, "source_hash": "b6b73cf2ebf3ad6cd7c9bd1ef5a4bf67d5572070a4c72f6fa1a9e0b916932db1", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include ...
77,163
c
/* * Copyright (c) 2018-2021 Morwenn * SPDX-License-Identifier: MIT */ #ifndef CPPSORT_DETAIL_SCOPE_EXIT_H_ #define CPPSORT_DETAIL_SCOPE_EXIT_H_ //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// #include <exception> #include <type_tr...
33.05
111
(translation_unit) "/*\n * Copyright (c) 2018-2021 Morwenn\n * SPDX-License-Identifier: MIT\n */\n#ifndef CPPSORT_DETAIL_SCOPE_EXIT_H_\n#define CPPSORT_DETAIL_SCOPE_EXIT_H_\n\n////////////////////////////////////////////////////////////\n// Headers\n////////////////////////////////////////////////////////////\n#include...
826
58
{"language": "c", "success": true, "metadata": {"lines": 111, "avg_line_length": 33.05, "nodes": 518, "errors": 0, "source_hash": "7d0e4bee41f19a85e1b6289d6cf67fddf84844b63c2771bbb6317972de216f74", "categorized_nodes": 325}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
77,164
c
#ifndef XEN_POSTPROCESSING_FX_H #define XEN_POSTPROCESSING_FX_H #include "../../include/SWEngine.h" //FullScreenFX typedef enum _FullSreenFXType{ FULLSCREEN_FX_NONE, FULLSCREEN_FX_GRAYSCALED, FULLSCREEN_FX_SHARPEN, FULLSCREEN_FX_DIOGNALBLUR, FULLSCREEN_FX_INVERTED, FULLSCREEN_FX_EMBOSSS, FULLSCREEN_FX_MULTI...
20.15
33
(translation_unit) "#ifndef XEN_POSTPROCESSING_FX_H\n#define XEN_POSTPROCESSING_FX_H\n\n#include "../../include/SWEngine.h"\n\n\n\n\n//FullScreenFX\ntypedef enum _FullSreenFXType{\n FULLSCREEN_FX_NONE,\n FULLSCREEN_FX_GRAYSCALED,\n FULLSCREEN_FX_SHARPEN,\n FULLSCREEN_FX_DIOGNALBLUR,\n FULLSCREEN_FX_INVERTED,\n FULLSCRE...
126
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 20.15, "nodes": 82, "errors": 0, "source_hash": "8e4e1074befab103a737f1d73b35a0d9407d3594fe4fe062fff869ec2c08dcc9", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
77,165
c
/* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class smtown_ai_karaokescore_KaraokeScore */ #ifndef _Included_smtown_ai_karaokescore_KaraokeScore #define _Included_smtown_ai_karaokescore_KaraokeScore #ifdef __cplusplus extern "C" { #endif #undef smtown_ai_karaokescore_KaraokeScore...
35.87
85
(translation_unit) "/* DO NOT EDIT THIS FILE - it is machine generated */\n#include <jni.h>\n/* Header for class smtown_ai_karaokescore_KaraokeScore */\n\n#ifndef _Included_smtown_ai_karaokescore_KaraokeScore\n#define _Included_smtown_ai_karaokescore_KaraokeScore\n#ifdef __cplusplus\nextern "C" {\n#endif\n#undef smtown...
319
0
{"language": "c", "success": true, "metadata": {"lines": 85, "avg_line_length": 35.87, "nodes": 232, "errors": 0, "source_hash": "aa6eab151d3cc9b6ab9290f33f8c9c8fa80dc59933c7dca031e725d743d21eeb", "categorized_nodes": 176}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
77,166
c
// Copyright (c) 2020 LG Electronics, Inc. // // 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 agre...
35.15
59
(translation_unit) "// Copyright (c) 2020 LG Electronics, Inc.\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless requir...
355
0
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 35.15, "nodes": 252, "errors": 0, "source_hash": "af8927d52eaacad6738ac9d573688f2425b006fbe8d6d182d7dd27e7e6611dbb", "categorized_nodes": 173}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
77,167
c
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
41.78
49
(translation_unit) "/* Copyright 2019 The TensorFlow Authors. All Rights Reserved.\n\nLicensed under the Apache License, Version 2.0 (the "License");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless req...
223
10
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 41.78, "nodes": 130, "errors": 0, "source_hash": "7a7f02011f0b794be95bbf6ec58543046b4c1f41c12e1b7ea5726b7f168afd53", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
77,168
c
#ifndef MODEL3_H #define MODEL3_H #include "dqmodel.h" /// Model3 - A model without DQ_MODEL / DQ_DECLAREMODEL class Model3 : public DQModel { public: DQField<QString> key; DQField<QString> value; }; #endif // MODEL3_H
19.64
11
(translation_unit) "#ifndef MODEL3_H\n#define MODEL3_H\n\n#include "dqmodel.h"\n\n/// Model3 - A model without DQ_MODEL / DQ_DECLAREMODEL\n\nclass Model3 : public DQModel\n{\npublic:\n DQField<QString> key;\n DQField<QString> value;\n\n};\n\n#endif // MODEL3_H\n" (preproc_ifdef) "#ifndef MODEL3_H\n#define MODEL...
49
1
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 19.64, "nodes": 29, "errors": 0, "source_hash": "e638f7d070f35641d4ae49e1ace5906d3adcc366fe651164624bf15e2b2bf4f8", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
77,169
c
#pragma once #include "model/smart_object.h" namespace agea { namespace model { class game_object; const inline uint32_t NO_parent = UINT32_MAX; const inline uint32_t NO_index = UINT32_MAX; class component : public smart_object { public: AGEA_gen_class_meta(component, smart_object); AGEA_gen_construct_param...
21.81
58
(translation_unit) "#pragma once\n\n#include "model/smart_object.h"\n\nnamespace agea\n{\nnamespace model\n{\nclass game_object;\n\nconst inline uint32_t NO_parent = UINT32_MAX;\nconst inline uint32_t NO_index = UINT32_MAX;\n\nclass component : public smart_object\n{\npublic:\n AGEA_gen_class_meta(component, smart_o...
335
7
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 21.81, "nodes": 189, "errors": 0, "source_hash": "36ff2edd9438381ac27c063c2c9f1764511d733e19668f301aab5063a9742dc8", "categorized_nodes": 121}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
77,170
c
#import "MOBProjection.h" @interface MOBProjectionEPSG4909 : MOBProjection @end
25.67
3
(translation_unit) "#import "MOBProjection.h"\n\n@interface MOBProjectionEPSG4909 : MOBProjection\n\n@end\n" (preproc_call) "#import "MOBProjection.h"\n" (preproc_directive) "#import" (preproc_arg) ""MOBProjection.h"" (ERROR) "@interface MOBProjectionEPSG4909 : MOBProjection\n\n@end" (ERROR) "@" (ty...
12
3
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 25.67, "nodes": 9, "errors": 0, "source_hash": "57bf659c597283ae8034b590e30f4f08a1dd085c42daa6a425ba9ed92513fe99", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"MO...
77,171
c
// // VRTAnimatedComponentManager.h // React // // Created by <NAME> on 2/19/16. // Copyright © 2016 Viro Media. All rights reserved. // #import <Foundation/Foundation.h> #import "ViroViewManager.h" @interface VRTAnimatedComponentManager : ViroViewManager @end
23.09
11
(translation_unit) "//\n// VRTAnimatedComponentManager.h\n// React\n//\n// Created by <NAME> on 2/19/16.\n// Copyright © 2016 Viro Media. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "ViroViewManager.h"\n\n@interface VRTAnimatedComponentManager : ViroViewManager\n\n@end\n" (comment) "//"...
22
3
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 23.09, "nodes": 11, "errors": 0, "source_hash": "ed67dc01885c6436df21d8b6be75f36480c5e7412d1b445836dbdc9096283ab2", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <Fo...
77,172
c
#include <fcntl.h> #include <gtk/gtk.h> #include <inttypes.h> #include <math.h> #include <poll.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/mman.h> #include <sys/stat.h> #include <sys/types.h> #include <time.h> #include "configuration.h" static struct pollfd pfd; static int fd; static ...
32.53
144
(translation_unit) "#include <fcntl.h>\n#include <gtk/gtk.h>\n#include <inttypes.h>\n#include <math.h>\n#include <poll.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <sys/mman.h>\n#include <sys/stat.h>\n#include <sys/types.h>\n#include <time.h>\n\n#include "configuration.h"\n\nstatic struct ...
1,356
0
{"language": "c", "success": true, "metadata": {"lines": 144, "avg_line_length": 32.53, "nodes": 824, "errors": 0, "source_hash": "42605193a9f6945e65f6ac9dd4b0702cd6cab2d2b66ae21d034fc055808cc688", "categorized_nodes": 578}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
77,173
c
//----------------------------------------------------------------------------- // File: trc.h // Desc: Tiled Ray Casting program // Copyright (C) 2005, <NAME>, <NAME>, UFRGS-Brasil //----------------------------------------------------------------------------- // This library is free software; you can redistribute it ...
36.16
185
(translation_unit) "//-----------------------------------------------------------------------------\n// File: trc.h\n// Desc: Tiled Ray Casting program\n// Copyright (C) 2005, <NAME>, <NAME>, UFRGS-Brasil\n//-----------------------------------------------------------------------------\n// This library is free software;...
811
2
{"language": "c", "success": true, "metadata": {"lines": 185, "avg_line_length": 36.16, "nodes": 504, "errors": 0, "source_hash": "61de38209fb3a5f0f99dadc75900831a79da0a119687581a5bb3167905ef22df", "categorized_nodes": 347}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
77,174
c
/* Copyright 2018 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. */ /* Bip board configuration */ #ifndef __CROS_EC_BOARD_H #define __CROS_EC_BOARD_H /* Select Baseboard features */ #define VARIANT_OCTOPUS_EC_ITE8...
27.47
32
(translation_unit) "/* Copyright 2018 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/* Bip board configuration */\n\n#ifndef __CROS_EC_BOARD_H\n#define __CROS_EC_BOARD_H\n\n/* Select Baseboard features */\n...
85
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 27.47, "nodes": 55, "errors": 0, "source_hash": "910227dfa24a20e701d0609d93224a0831d6fbe766c79e77938bd006d38f4911", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
77,175
c
/** @file */ #ifndef PP2_LANGUAGE_DEFINITION_CONST_H #define PP2_LANGUAGE_DEFINITION_CONST_H #define PP2_CONST(value) 8DEF_CONST,value #define PP2_INSN_8DEF_CONST(P,r0,r1,r2,value,K,...) PP2_INSN_##K(,P##value,P##r1,P##r2,P##__VA_ARGS__) #endif
27.44
9
(translation_unit) "/** @file */ \n#ifndef PP2_LANGUAGE_DEFINITION_CONST_H \n#define PP2_LANGUAGE_DEFINITION_CONST_H \n \n#define PP2_CONST(value) 8DEF_CONST,value \n \n#define PP2_INSN_8DEF_CONST(P,r0,r1,r2,value,K,...) PP2_INSN_##K(,P##value,P##r1,P##r2,P##__VA_ARGS__) \n \n#endif" (comment) "/** @file */" (prepr...
37
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 27.44, "nodes": 24, "errors": 0, "source_hash": "a538268718676cb16819049e3ee7a5a64a75216d7c35869bbb3f3fc1b3212d36", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef P...
77,176
c
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/directconnect/DirectConnect_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSVector.h> #include <aws/directconnect/model/VirtualGateway.h> #include <utility> namespace Aws...
34.91
65
(translation_unit) "*\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0.\n */\n\n#pragma once\n#include <aws/directconnect/DirectConnect_EXPORTS.h>\n#include <aws/core/utils/memory/stl/AWSVector.h>\n#include <aws/directconnect/model/VirtualGateway.h>\n#includ...
450
34
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 34.91, "nodes": 298, "errors": 0, "source_hash": "976805f6336bb9538d5564b1c73cc9879b5df058a67197096c828e1edec553be", "categorized_nodes": 190}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma o...
77,177
c
#define MYFLOAT_SIZE (sizeof(myFloats)/sizeof(myFloats[0]))
59
1
(translation_unit) "#define MYFLOAT_SIZE (sizeof(myFloats)/sizeof(myFloats[0]))\n" (preproc_def) "#define MYFLOAT_SIZE (sizeof(myFloats)/sizeof(myFloats[0]))\n" (#define) "#define" (identifier) "MYFLOAT_SIZE" (preproc_arg) "(sizeof(myFloats)/sizeof(myFloats[0]))"
5
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 59.0, "nodes": 4, "errors": 0, "source_hash": "923150b34ac05e04cd003dd53766348339bdc815feed9fc2d3c4da374f81c6f3", "categorized_nodes": 1}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define MYFLOA...
77,178
c
/** * @file * @copyright Copyright 2016 GNSS Sensor Ltd. All right reserved. * @author <NAME> - <EMAIL> * @brief SystemC CPU wrapper. To interact with the SoC simulator. */ #ifndef __DEBUGGER_RTL_WRAPPER_H__ #define __DEBUGGER_RTL_WRAPPER_H__ #include "async_tqueue.h" #include "coreservices/ibus.h" #inc...
36.69
101
(translation_unit) "/**\n * @file\n * @copyright Copyright 2016 GNSS Sensor Ltd. All right reserved.\n * @author <NAME> - <EMAIL>\n * @brief SystemC CPU wrapper. To interact with the SoC simulator. */\n\n#ifndef __DEBUGGER_RTL_WRAPPER_H__\n#define __DEBUGGER_RTL_WRAPPER_H__\n\n#include "async_tqueue.h"\n#incl...
736
21
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 36.69, "nodes": 529, "errors": 0, "source_hash": "1648b73af2c17ce49bf39498ab0e3c4d31eb9f2fffcab0c001f06b32e7f23410", "categorized_nodes": 351}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
77,179
c
#include<stdio.h> struct A { int a; char b; }; main() { struct A* B; B=(struct A*)malloc(sizeof(struct A)); B->a=65; B.b=B->a; putchar(B->b); }
10.33
15
(translation_unit) "#include<stdio.h> \nstruct A \n{ \n int a; \n char b; \n}; \nmain() \n{ \n struct A* B; \n B=(struct A*)malloc(sizeof(struct A)); \n B->a=65; \n B.b=B->a; \n putchar(B->b); \n \n}" (preproc_include) "#include<stdio.h> \n" (#include) "#include" (system_lib_string) "<stdio.h>" (struct_...
98
2
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 10.33, "nodes": 62, "errors": 0, "source_hash": "307580eba320de0d1b94e7a8a52b4d8b5362c1b4873af2fa9789e031c5d762fc", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
77,180
c
#pragma once #include "JavascriptUICommands.generated.h" UENUM() namespace EJavasrciptUserInterfaceActionType { enum Type { /** Momentary buttons or menu items. These support enable state, and execute a delegate when clicked. */ Button, /** Toggleable buttons or menu items that store on/off state. These su...
34.48
82
(translation_unit) "#pragma once\n\n#include "JavascriptUICommands.generated.h"\n\nUENUM()\nnamespace EJavasrciptUserInterfaceActionType\n{\n enum Type\n {\n /** Momentary buttons or menu items. These support enable state, and execute a delegate when clicked. */\n Button,\n\n /** Toggleable buttons or menu items th...
556
8
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 34.48, "nodes": 324, "errors": 0, "source_hash": "6ef50efa5050999b4cea4edf3da2569d3386c112fdbd8cc67a1bf3967f5677c2", "categorized_nodes": 245}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
77,181
c
#ifndef CUPWITHOUTHANDLESCANNER_H #define CUPWITHOUTHANDLESCANNER_H #include "PatternScanner.h" class CupWithoutHandleScanner : public PatternScanner { public: CupWithoutHandleScanner(); PatternMatchListPtr scanPatternMatches(const PeriodValSegmentPtr &chartVals) const; }; #endif // CUPWITHOUTHANDLESCANNER_H...
30.8
10
(translation_unit) "#ifndef CUPWITHOUTHANDLESCANNER_H\n#define CUPWITHOUTHANDLESCANNER_H\n\n#include "PatternScanner.h"\n\nclass CupWithoutHandleScanner : public PatternScanner\n{\npublic:\n CupWithoutHandleScanner();\n PatternMatchListPtr scanPatternMatches(const PeriodValSegmentPtr &chartVals) const;\n};\n\n#en...
54
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 30.8, "nodes": 26, "errors": 0, "source_hash": "cfed3732fdc5b3d51958a4202e2f33b72c8c77eaa6fcd48358af5aeb3e7dec59", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef C...
77,182
c
#include "f2c.h" double d_log(x) doublereal *x; { double log(); return( log(*x) ); }
11.14
7
(translation_unit) "#include "f2c.h"\n\ndouble d_log(x)\ndoublereal *x;\n{\ndouble log();\nreturn( log(*x) );\n}\n" (preproc_include) "#include "f2c.h"\n" (#include) "#include" (string_literal) ""f2c.h"" (") """ (string_content) "f2c.h" (") """ (function_definition) "double d_log(x)\ndoubl...
46
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 11.14, "nodes": 27, "errors": 0, "source_hash": "3beac0fa05e41624a5af61a9b47926bf3779844d3efafe5337f9a89fca7212bd", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
77,183
c
// // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 <NAME>. // #import <iTunesStore/ISOperation.h> @class NSArray; @interface MediaSocialStatusPollOperation : ISOperation { CDUnknownBlockType _responseBlock; //...
35.37
19
(translation_unit) "//\n// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20).\n//\n// Copyright (C) 1997-2019 <NAME>.\n//\n\n#import <iTunesStore/ISOperation.h>\n\n@class NSArray;\n\n@interface MediaSocialStatusPollOperation : ISOperation\n{\n CDUnk...
127
13
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 35.37, "nodes": 72, "errors": 0, "source_hash": "a7fbbf84847d385957d0c046c6067c315049db1bec4dbc05088354fce18a4d60", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
77,184
c
#ifndef LOGGER_H #define LOGGER_H #include <QObject> #include <QDebug> #include <QDateTime> #include <iostream> #define DEBUGMODE 1 #define INFOMODE 1 #define WARNMODE 1 namespace logs { inline void debug(QString d) { #ifdef DEBUGMODE std::cout << "D/" << QString(QDateTime::currentDateTime().toString("yyyy-MM-...
25.35
34
(translation_unit) "#ifndef LOGGER_H\n#define LOGGER_H\n\n#include <QObject>\n#include <QDebug>\n#include <QDateTime>\n#include <iostream>\n\n#define DEBUGMODE 1\n#define INFOMODE 1\n#define WARNMODE 1\n\n\nnamespace logs {\ninline void debug(QString d) {\n\n#ifdef DEBUGMODE\n std::cout << "D/" << QString(QDateTime:...
335
6
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 25.35, "nodes": 214, "errors": 0, "source_hash": "7dc1cfa4c22781e3dc46d171876265e8906998b0d334c84190812b09fb797048", "categorized_nodes": 146}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
77,185
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* read_map.c :+: :+: :+: ...
24.33
117
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* read_map.c ...
1,059
0
{"language": "c", "success": true, "metadata": {"lines": 117, "avg_line_length": 24.33, "nodes": 659, "errors": 0, "source_hash": "187a6aedb7a6e0b30c2c758749dbc798ecb1846b308273a577cc843c1e6fd8dc", "categorized_nodes": 439}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
77,186
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <fcntl.h> unsigned char submit[6]; void play(){ int i; printf("Submit your 6 lotto bytes : "); fflush(stdout); int r; r = read(0, submit, 6); printf("Lotto Start!\n"); //sleep(1); // generate lotto numbers int fd = open("/dev/urandom", ...
19.71
82
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <fcntl.h>\n\nunsigned char submit[6];\n\nvoid play(){\n \n int i;\n printf("Submit your 6 lotto bytes : ");\n fflush(stdout);\n\n int r;\n r = read(0, submit, 6);\n\n printf("Lotto Start!\n");\n //sleep(1);\n\n // generate lotto ...
635
0
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 19.71, "nodes": 328, "errors": 0, "source_hash": "cd3992858d0228c0bc65b5ae29701f255848028417ae7e02f5b3ae19dadd846e", "categorized_nodes": 226}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
77,187
c
/* * Printer interface for DOS. * Copyright (c) 1996-2001 <NAME>. * * Author: <NAME> <<EMAIL>> */ /* * This file is part of GNU Enscript. * * Enscript is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation,...
30.32
106
(translation_unit) "/*\n * Printer interface for DOS.\n * Copyright (c) 1996-2001 <NAME>.\n *\n * Author: <NAME> <<EMAIL>>\n */\n\n/*\n * This file is part of GNU Enscript.\n *\n * Enscript is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n...
643
0
{"language": "c", "success": true, "metadata": {"lines": 106, "avg_line_length": 30.32, "nodes": 360, "errors": 0, "source_hash": "560745a6ea0d3e9427f32c122b124611a1f1a461863d888ed102f3a6cdba619a", "categorized_nodes": 270}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
77,188
c
//-------------------------------------------------------------------- // Microsoft OLE DB Sample Provider // (C) Copyright 1991 - 1999 Microsoft Corporation. All Rights Reserved. // // @doc // // @module BINDER.H | BINDER base object and contained interface // definitions // // #ifndef _BINDER_H_ #defin...
24.91
267
(translation_unit) "//-------------------------------------------------------------------- \n// Microsoft OLE DB Sample Provider \n// (C) Copyright 1991 - 1999 Microsoft Corporation. All Rights Reserved. \n// \n// @doc \n// \n// @module BINDER.H | BINDER base object and contained interface \n// definitions \n// \n// ...
908
14
{"language": "c", "success": true, "metadata": {"lines": 267, "avg_line_length": 24.91, "nodes": 612, "errors": 0, "source_hash": "78a630202a7d760b832dcc62a921e2894c8fcefa1c8de562ed079248060531f4", "categorized_nodes": 420}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
77,189
c
#pragma once #include "expansion_card.h" #include "pcf8575.h" #include "input.h" #include <vector> namespace BiosHomeAutomator { class IORelayCard : public ExpansionCard { public: IORelayCard(unsigned int ioExpanderI2cAddress, I2C * i2c, PinName ioInterrupt, unsigned int id); IORelayCard(unsigned ...
34.41
34
(translation_unit) "#pragma once\n\n#include "expansion_card.h"\n#include "pcf8575.h"\n#include "input.h"\n#include <vector>\n\nnamespace BiosHomeAutomator {\n\n class IORelayCard : public ExpansionCard {\n\n public:\n IORelayCard(unsigned int ioExpanderI2cAddress, I2C * i2c, PinName ioInterrupt, unsigned int ...
329
13
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 34.41, "nodes": 215, "errors": 0, "source_hash": "f49b7360c51b41b1f7346dfddf286295808dedfbfbc6ec2f2c73a6a53e845bbc", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
77,190
c
/* This is the gtprcs subroutine for all Operating Systems. This subroutine returns a pointer to the current user's real name. If the user's real name cannot be found then a blank character string is returned. */ #include "xvmaininc.h" #include "ftnbridge.h" #include "vma...
26.69
26
(translation_unit) "/* This is the gtprcs subroutine for all Operating Systems.\n This subroutine returns a pointer to the current user's real \n name. If the user's real name cannot be found then a blank\n character string is returned. */\n\n#include "xvmaininc.h"\n#include "...
157
1
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 26.69, "nodes": 88, "errors": 0, "source_hash": "e81e6ad52d93e45667f94afd9da26e0fac3f441a0ebec16a5702014e136fd93b", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
77,191
c
// // LJNavigationBarDelegate.h // Pods // // Created by 赵文成 on 2019/4/2. // #ifndef LJNavigationBarDelegate_h #define LJNavigationBarDelegate_h @protocol LJNavigationBarDelegate <NSObject> @optional /** 点击搜索 */ - (void)navBarDidClickSearch; /** 1:点击城市 */ - (void)navBarDidClickImageText; /** 3、4、6:点击右边按钮 */ - ...
22.96
26
(translation_unit) "//\n// LJNavigationBarDelegate.h\n// Pods\n//\n// Created by 赵文成 on 2019/4/2.\n//\n\n#ifndef LJNavigationBarDelegate_h\n#define LJNavigationBarDelegate_h\n\n@protocol LJNavigationBarDelegate <NSObject>\n\n@optional\n\n/** 点击搜索 */\n- (void)navBarDidClickSearch;\n\n/** 1:点击城市 */\n- (void)navBarDidC...
105
5
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 22.96, "nodes": 61, "errors": 0, "source_hash": "1b6c6339312da3b3a42a6c44e4b7cb3f5a7e63b4a3ce73742fa63d0ac8c449ed", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "f LJNavi...
77,192
c
#ifndef TASK_WRAPPER_H #define TASK_WRAPPER_H #include <Arduino.h> #include <freertos/projdefs.h> class Task { public: enum Flags { NONE = 0, CONNECTED = 1 }; Task(String name, TaskFunction_t function, size_t stackSize = 8192, UBaseType_t priority = 5, uint...
28.42
31
(translation_unit) "#ifndef TASK_WRAPPER_H\n#define TASK_WRAPPER_H\n\n#include <Arduino.h>\n#include <freertos/projdefs.h>\n\nclass Task\n{\n public:\n enum Flags\n {\n NONE = 0,\n CONNECTED = 1\n };\n\n Task(String name, TaskFunction_t function, size_t stackSize = 8...
233
8
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 28.42, "nodes": 138, "errors": 0, "source_hash": "83201a67cf8f119d01b64c4d2cfd5fabea30791d7414c37b2d421d9e87f6191b", "categorized_nodes": 96}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
77,193
c
// QtStrava - A Qt wrapper for Strava API // Copyright (C) 2020 <NAME> <<EMAIL>> // // Licensed under the MIT license. See LICENSE for details. #pragma once #include <QtStrava/global.h> namespace QtStrava::Model { /*! * https://developers.strava.com/docs/reference/#api-models-UpdatableActivity */ class QTSTRAVA_...
39.78
37
(translation_unit) "// QtStrava - A Qt wrapper for Strava API\n// Copyright (C) 2020 <NAME> <<EMAIL>>\n//\n// Licensed under the MIT license. See LICENSE for details.\n\n#pragma once\n\n#include <QtStrava/global.h>\n\nnamespace QtStrava::Model {\n\n/*! \n * https://developers.strava.com/docs/reference/#api-models-Updat...
361
17
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 39.78, "nodes": 197, "errors": 0, "source_hash": "cc2fa6589edac4ad1259e86130deab49194414b76a21e0b71c06f4cb3d8e3c4d", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
77,194
c
#ifndef ALNITE_REVERSI_H_ #define ALNITE_REVERSI_H_ // Reversi Engine // Version 1.2 // Copyright(C) <NAME>. All Rights Reserved. // April 4th, 2006 class Reversi { public: typedef char value_type; typedef std::vector<value_type> board_type; typedef board_type::size_type index_type; typedef ...
24.25
60
(translation_unit) "#ifndef ALNITE_REVERSI_H_ \n#define ALNITE_REVERSI_H_ \n \n// Reversi Engine \n// Version 1.2 \n// Copyright(C) <NAME>. All Rights Reserved. \n// April 4th, 2006 \n \nclass Reversi \n{ \npublic: \n typedef char value_type; \n typedef std::vector<value_type> board_type; \n typedef board_type::s...
382
20
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 24.25, "nodes": 211, "errors": 0, "source_hash": "9cd88015f39988f6b90853834020f6b863e8137da4bd6c3ee45752b99ea91a32", "categorized_nodes": 151}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
77,195
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <math.h> #include "grb2.h" #include "wgrib2.h" #include "fnlist.h" /* * Status: provide some status of the internal state of wgrib2 * * v 0.1 experimental * * 4/2015: Public Domain: <NAME> */ extern int file_append, flush_mo...
19.84
32
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <ctype.h>\n#include <math.h>\n#include "grb2.h"\n#include "wgrib2.h"\n#include "fnlist.h"\n\n/*\n * Status: provide some status of the internal state of wgrib2\n *\n * v 0.1 experimental\n *\n * 4/2015: Public Domain: <NAME>\n *...
141
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 19.84, "nodes": 74, "errors": 0, "source_hash": "d3cd0db68ba070883fc97c7a42078098c4e7661c7af48807c31612f95a2fb181", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
77,196
c
#pragma once #include "element.h" struct scissor : element { inline static constexpr auto element_name{ "scissor" }; std::string get_element_name() override { return element_name; } std::type_info const& type_info() const override { return typeid(scissor); } // scissors child elements void draw_recursive(NVGco...
33
10
(translation_unit) "#pragma once\n\n#include "element.h"\n\nstruct scissor : element\n{\n inline static constexpr auto element_name{ "scissor" };\n std::string get_element_name() override { return element_name; }\n\n std::type_info const& type_info() const override { return typeid(scissor); }\n\n // scissors child elem...
109
5
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 33.0, "nodes": 56, "errors": 0, "source_hash": "a2d79ea41a810e5d32781115f72efabbc4b10602164c2abb56dfd382d7390119", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
77,197
c
#include "utils.h" /* * PWMLED.h * * Created on: 17 nov. 2017 * Author: Wen */ //int intensity; //Global variable #ifndef PWMLED_H_ #define PWMLED_H_ extern bool buttonFlag; /* * initPWM : initialize the PWM on P2.1 for LEDs */ void initPWM(); /* * LEDControl : change the LED brightness */ void L...
20.76
29
(translation_unit) "#include "utils.h"\n/*\n * PWMLED.h\n *\n * Created on: 17 nov. 2017\n * Author: Wen\n */\n//int intensity; //Global variable\n#ifndef PWMLED_H_\n#define PWMLED_H_\n\nextern bool buttonFlag;\n\n/*\n * initPWM : initialize the PWM on P2.1 for LEDs\n */\nvoid initPWM();\n\n/*\n * LEDControl...
69
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 20.76, "nodes": 44, "errors": 0, "source_hash": "89f4d6960f4993cf196fad2aaeb4f0bc097b0ac0a66a083ae8cf85970035cab4", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
77,198
c
/* language.c * Language "preference" handling routines * Copyright 2014, <NAME> for Tieto Corporation * * Wireshark - Network traffic analyzer * By <NAME> <<EMAIL>> * Copyright 1998 <NAME> * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include <stdlib.h> #include <errno.h> #include <...
31.46
109
(translation_unit) "/* language.c\n * Language "preference" handling routines\n * Copyright 2014, <NAME> for Tieto Corporation\n *\n * Wireshark - Network traffic analyzer\n * By <NAME> <<EMAIL>>\n * Copyright 1998 <NAME>\n *\n * SPDX-License-Identifier: GPL-2.0-or-later\n */\n\n#include "config.h"\n\n#include <stdlib....
555
2
{"language": "c", "success": true, "metadata": {"lines": 109, "avg_line_length": 31.46, "nodes": 326, "errors": 0, "source_hash": "cbe7f9f8cdcab50d3386de51f03a9dc1a316caadf8dc072504d03453696d6f7c", "categorized_nodes": 217}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
77,199