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
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /* * File: main.c * Author: <NAME> * * Created on 13 de Outubro de 2017, 16:58 */ #include <stdio.h> #include <stdlib.h> #def...
20.33
27
(translation_unit) "/*\n * To change this license header, choose License Headers in Project Properties.\n * To change this template file, choose Tools | Templates\n * and open the template in the editor.\n */\n\n/* \n * File: main.c\n * Author: <NAME>\n *\n * Created on 13 de Outubro de 2017, 16:58\n */\n\n#include <...
88
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 20.33, "nodes": 49, "errors": 0, "source_hash": "245dee9b4df516305c6739d61226440b24aa548ba93524c35b2ea2738242e2a8", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
8,800
c
glyph_set_t * load_glyph_set(font_t *Font, u32 Codepoint) { if(Font->SetCount < GLYPH_SET_MAX) { glyph_set_t *Set = malloc(sizeof(glyph_set_t)); u32 FirstCodepoint = Codepoint & (~0xff); Font->GlyphSets[Font->SetCount].Set = Set; Font->GlyphSets[Font->SetCount].FirstCodepoint = First...
33.57
194
(translation_unit) "glyph_set_t *\nload_glyph_set(font_t *Font, u32 Codepoint) {\n if(Font->SetCount < GLYPH_SET_MAX) {\n glyph_set_t *Set = malloc(sizeof(glyph_set_t));\n u32 FirstCodepoint = Codepoint & (~0xff);\n Font->GlyphSets[Font->SetCount].Set = Set;\n Font->GlyphSets[Font->SetCou...
2,593
0
{"language": "c", "success": true, "metadata": {"lines": 194, "avg_line_length": 33.57, "nodes": 1805, "errors": 0, "source_hash": "3e964c32b5d63209329ea618615d6d96d6d1071b33429e414b522cd53e47d5f1", "categorized_nodes": 1336}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text"...
8,801
c
/**************************************************************************** * drivers/clk/clk-multiplier.c * * Copyright (C) 2017 Pinecone Inc. All rights reserved. * Author: zhuyanlin<<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided tha...
36.28
197
(translation_unit) "/****************************************************************************\n * drivers/clk/clk-multiplier.c\n *\n * Copyright (C) 2017 Pinecone Inc. All rights reserved.\n * Author: zhuyanlin<<EMAIL>>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification,...
1,267
0
{"language": "c", "success": true, "metadata": {"lines": 197, "avg_line_length": 36.28, "nodes": 817, "errors": 0, "source_hash": "e39058b14121be1f2fe3be7872db38e5e97f3b5bd4dd833a01aed7aaca2ba882", "categorized_nodes": 602}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,802
c
#include "dominion.h" #include <stdio.h> #include "rngs.h" #include <stdlib.h> int main (int argc, char** argv) { struct gameState G; int k[10] = {adventurer, gardens, embargo, village, minion, mine, cutpurse, sea_hag, tribute, smithy}; printf ("Starting game.\n"); initializeGame(2, k, atoi(argv[1...
26.67
121
(translation_unit) "#include "dominion.h"\n#include <stdio.h>\n#include "rngs.h"\n#include <stdlib.h>\n\nint main (int argc, char** argv) {\n struct gameState G;\n int k[10] = {adventurer, gardens, embargo, village, minion, mine, cutpurse,\n sea_hag, tribute, smithy};\n\n printf ("Starting game.\n");\n\n ...
1,250
0
{"language": "c", "success": true, "metadata": {"lines": 121, "avg_line_length": 26.67, "nodes": 674, "errors": 0, "source_hash": "a855699b37e5f2a51f72dd88ee7dbbbcaa3193dc44a408d00a181cc08256e64e", "categorized_nodes": 503}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,803
c
#ifndef TrajectoryStateAccessor_H #define TrajectoryStateAccessor_H class FreeTrajectoryState; /** Helper class to obtain the uncertainty on specific * trajectory parameters. */ class TrajectoryStateAccessor { public: TrajectoryStateAccessor(const FreeTrajectoryState& fts) : theFts(fts) {} float inversePtErr...
26.43
14
(translation_unit) "#ifndef TrajectoryStateAccessor_H\n#define TrajectoryStateAccessor_H\n\nclass FreeTrajectoryState;\n\n/** Helper class to obtain the uncertainty on specific\n * trajectory parameters.\n */\n\nclass TrajectoryStateAccessor {\npublic:\n TrajectoryStateAccessor(const FreeTrajectoryState& fts) : theFt...
70
5
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 26.43, "nodes": 33, "errors": 0, "source_hash": "7216efd30c310a178061610a6aea4efde1a98fc737305e3350fa13546a7be904", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,804
c
#ifndef SCREEN_H_INCLUDED #define SCREEN_H_INCLUDED namespace cge { class Screen { struct Point {unsigned short y, x;}; Point cursorPosition; void resetCursor(); typedef const char* CString; public: Screen(Point startCursorPos = {0, 0}); ~Screen(); void write(CString towrite); vo...
23.1
20
(translation_unit) "#ifndef SCREEN_H_INCLUDED\n#define SCREEN_H_INCLUDED\n\n\nnamespace cge {\n\nclass Screen\n{\n struct Point {unsigned short y, x;};\n\n Point cursorPosition;\n\n void resetCursor();\n\n typedef const char* CString;\n\npublic:\n Screen(Point startCursorPos = {0, 0});\n ~Screen();\n\...
136
1
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 23.1, "nodes": 84, "errors": 0, "source_hash": "8b3b41060457533d9d02e90bc228f2b51908f951c52a5bf2f8bb8661ae392ccb", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef S...
8,805
c
// // WhiteBoardStateModel.h // AgoraWhiteBoard // // Created by SRS on 2020/9/3. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface WhiteBoardStateModel : NSObject @property (nonatomic, assign, readonly) BOOL follow; @property (nonatomic, strong, readonly) NSArray<NSString *> * _Nullable gra...
26.15
13
(translation_unit) "//\n// WhiteBoardStateModel.h\n// AgoraWhiteBoard\n//\n// Created by SRS on 2020/9/3.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface WhiteBoardStateModel : NSObject\n@property (nonatomic, assign, readonly) BOOL follow;\n@property (nonatomic, strong, readonly) NS...
69
9
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 26.15, "nodes": 49, "errors": 0, "source_hash": "5cc471e6c686b71cd823b0174c8c3cd99270494f436b1b47cd94bda027b53a0f", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
8,806
c
/* Copyright 2015 <NAME>. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing...
30.95
131
(translation_unit) "/*\n Copyright 2015 <NAME>.\n\n Licensed under the Apache License, Version 2.0 (the "License");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicabl...
427
0
{"language": "c", "success": true, "metadata": {"lines": 131, "avg_line_length": 30.95, "nodes": 320, "errors": 0, "source_hash": "193aef1ca96e734cb6809c2dcf431564583ece2e1f48b15fbb8f1da72c2903c2", "categorized_nodes": 191}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
8,807
c
#include "types.h" #include "stat.h" #include "user.h" #define PAGESIZE 4096 //char stack[4096] __attribute__ ((aligned (4096))); int thread_create (void (*fn) (void*), void *arg) { // allocate 1-page for new thread's stack. // TODO - how to make this page-aligned if the original heap was not page-aligned? ...
25.74
31
(translation_unit) "#include "types.h"\n#include "stat.h"\n#include "user.h"\n\n#define PAGESIZE 4096\n\n//char stack[4096] __attribute__ ((aligned (4096)));\n\nint thread_create (void (*fn) (void*), void *arg) {\n\n // allocate 1-page for new thread's stack.\n // TODO - how to make this page-aligned if the original...
214
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 25.74, "nodes": 118, "errors": 0, "source_hash": "53ab17d00a74eb66b34419e1fe357bda6757c759714267199907f9ce251bd130", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
8,808
c
#include <stdio.h> #include <stdlib.h> #include <memory.h> #define HASH_BUCKET 8 /** * * Return an array of size *returnSize. * * Note: The returned array must be malloced, assume caller calls free(). * */ int* intersection(int* nums1, int nums1Size, int* nums2, int nums2Size, int* returnSize) { if (nums...
23.04
112
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <memory.h>\n\n#define HASH_BUCKET 8\n\n/**\n * * Return an array of size *returnSize.\n * * Note: The returned array must be malloced, assume caller calls free().\n * */\nint* intersection(int* nums1, int nums1Size, int* nums2, int nums2Size, i...
898
0
{"language": "c", "success": true, "metadata": {"lines": 112, "avg_line_length": 23.04, "nodes": 569, "errors": 0, "source_hash": "709deb7f07be8bcd2bf9da0adb84e6dba0dfd3b5706fb70bbc1b1168abe9b694", "categorized_nodes": 359}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,809
c
#pragma once #include "Engine.h" #include "UnrealEd.h" #include "AssetToolsModule.h" #include "Widgets/Docking/SDockTab.h" #include "Widgets/Input/STextComboBox.h" #include "Widgets/Input/SNumericEntryBox.h" #include "Widgets/Colors/SColorPicker.h" #include "ISpriteStudio6Ed.h" #include "SpriteStudio6EdStyle.h" #de...
33.75
12
(translation_unit) "ragma once\n\n#include "Engine.h"\n#include "UnrealEd.h"\n#include "AssetToolsModule.h"\n#include "Widgets/Docking/SDockTab.h"\n#include "Widgets/Input/STextComboBox.h"\n#include "Widgets/Input/SNumericEntryBox.h"\n#include "Widgets/Colors/SColorPicker.h"\n\n#include "ISpriteStudio6Ed.h"\n#include "...
74
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 33.75, "nodes": 40, "errors": 0, "source_hash": "a0e599ac2269caf2e1a4df58becfc127364aa1a5711dbddd3b0148ec452a61c5", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma onc...
8,810
c
/****************************************************************************/ /** * @file RendererManager.h * @author <NAME> */ /*---------------------------------------------------------------------------- * * Copyright (c) Visualization Laboratory, Kyoto University. * All rights reserved. * See http://...
36.8
71
(translation_unit) "/****************************************************************************/\n/**\n * @file RendererManager.h\n * @author <NAME>\n */\n/*----------------------------------------------------------------------------\n *\n * Copyright (c) Visualization Laboratory, Kyoto University.\n * All righ...
548
31
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 36.8, "nodes": 331, "errors": 0, "source_hash": "fc7bf8470b605c00a087eca67a23f99ae47689cd4ad9d00aa1ebc17640cc0902", "categorized_nodes": 216}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
8,811
c
/** * smartqueue.h * * @file Smart queues * @author <NAME> * @since 05.22.2021 */ #pragma once #include <commons/collections/queue.h> /** * @brief Crea una queue si es NULL * * @param queue la queue a crear */ t_queue *queue_smart_create(t_queue *queue); /** * @brief Añade un elemento * * @param queue...
23.93
43
(translation_unit) "/**\n * smartqueue.h\n *\n * @file Smart queues\n * @author <NAME>\n * @since 05.22.2021\n */\n\n#pragma once\n\n#include <commons/collections/queue.h>\n\n/**\n * @brief Crea una queue si es NULL\n *\n * @param queue la queue a crear\n */\nt_queue *queue_smart_create(t_queue *queue);\n\n/**\n * @br...
111
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 23.93, "nodes": 81, "errors": 0, "source_hash": "d4a8a50f1cac61891780d3938d7efb5a7a4c79f2a0d864178c344fc3469bd97b", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
8,812
c
/** * Copyright 2020-2022 Huawei Technologies Co., Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
36
42
(translation_unit) "/**\n * Copyright 2020-2022 Huawei Technologies Co., Ltd\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n *...
185
4
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 36.0, "nodes": 87, "errors": 0, "source_hash": "827036537e35f2067ff9a3bae93255d5cdd7db081f335da30f44acd72959b8a7", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef M...
8,813
c
#include <ConfigurationMode.h> // [設定コマンドの実装例] // ConfigurationCommandを継承して任意のクラス名(CFG_setting01など)を設定する // コマンドを複数作成する場合にはその数だけクラスを作成する // 文字列を返す関数(opcode, help_message)、コマンド入力時の処理を行う関数(execute)を実装する class CFG_setting01 : public ConfigurationCommand { public: String opcode() { return "setting01"; }; ...
28.81
57
(translation_unit) "#include <ConfigurationMode.h>\n\n// [設定コマンドの実装例]\n// ConfigurationCommandを継承して任意のクラス名(CFG_setting01など)を設定する\n// コマンドを複数作成する場合にはその数だけクラスを作成する\n// 文字列を返す関数(opcode, help_message)、コマンド入力時の処理を行う関数(execute)を実装する\nclass CFG_setting01 : public ConfigurationCommand\n{\npublic:\n String opcode() { r...
412
11
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 28.81, "nodes": 201, "errors": 0, "source_hash": "d66e8e02d070b9e0d8721c121c449373db4012c209394078e1871e1fbbff1943", "categorized_nodes": 141}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
8,814
c
#ifndef DDEBUG_H #define DDEBUG_H #include <ngx_core.h> #if defined(DDEBUG) && (DDEBUG) # define dd_dump_chain_size() { \ int n; \ ngx_chain_t *cl; \ \ for (n = 0, cl = u->out_bufs; cl; cl = cl->next, n++) { \ } \ \ dd("...
27.82
111
(translation_unit) "#ifndef DDEBUG_H \n#define DDEBUG_H \n \n#include <ngx_core.h> \n \n#if defined(DDEBUG) && (DDEBUG) \n \n# define dd_dump_chain_size() { \ \n int n; \ \n ngx_chain_t *cl; \ \n \ \n for (n = 0, cl = u->out_bufs; cl; cl = cl->next, n++) { \ \n ...
196
0
{"language": "c", "success": true, "metadata": {"lines": 111, "avg_line_length": 27.82, "nodes": 136, "errors": 0, "source_hash": "2014f33da296afd0ed1eec50fbca63fdcda477e96c398eaf21c2d7ac2cc01e6a", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,815
c
/** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/DataAccess.framework/Frameworks/DASubCal.framework/DASubCal */ #import <DASubCal/XXUnknownSuperclass.h> // iOSOpenDev: wrapped with define check (since occurs in other dumped files) #ifndef __XXUnknownSuperclass__ #...
31.04
27
(translation_unit) "/**\n * This header is generated by class-dump-z 0.2b.\n *\n * Source: /System/Library/PrivateFrameworks/DataAccess.framework/Frameworks/DASubCal.framework/DASubCal\n */\n\n#import <DASubCal/XXUnknownSuperclass.h>\n\n// iOSOpenDev: wrapped with define check (since occurs in other dumped files)\n#ifn...
139
23
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 31.04, "nodes": 92, "errors": 0, "source_hash": "07faec45c2b8251549b7ef8dc21953761469ebbaeb57535226951b89b678025e", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
8,816
c
/* * Copyright (C) 2016 YunOS Project. 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 ap...
33.27
259
(translation_unit) "/*\n * Copyright (C) 2016 YunOS Project. All rights reserved.\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\...
673
0
{"language": "c", "success": true, "metadata": {"lines": 259, "avg_line_length": 33.27, "nodes": 497, "errors": 0, "source_hash": "92fbffab986c51d98aacfaf6649cc9a3f8dcd342ab020ac4fe160f5b4b642763", "categorized_nodes": 310}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
8,817
c
// // MSBannerView.h // BWT // // Created by Miridescent on 2019/10/16. // Copyright © 2019 Miridescent. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @protocol MSBannerViewDelegate <NSObject> @optional - (void)selectIndex:(NSInteger)index; @end @interface MSBannerView : UIView @pro...
28.06
18
(translation_unit) "//\n// MSBannerView.h\n// BWT\n//\n// Created by Miridescent on 2019/10/16.\n// Copyright © 2019 Miridescent. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@protocol MSBannerViewDelegate <NSObject>\n\n@optional\n- (void)selectIndex:(NSInteger)index;\n\n@end\n\...
110
13
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 28.06, "nodes": 70, "errors": 0, "source_hash": "52c492d98dfcaac9969a3e38359237d41b0921ca25d4baff3ffa0191c04090dc", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
8,818
c
/* * This file is part of the OpenMV project. * Copyright (c) 2013/2014 <NAME> <<EMAIL>> * This work is licensed under the MIT license, see the file LICENSE for details. * * SCCB (I2C like) driver. * */ #ifndef __SCCB_H__ #define __SCCB_H__ #include <stdint.h> int SCCB_Init(int pin_sda, int pin_scl); uint8_t SCC...
28.19
16
(translation_unit) "/*\n * This file is part of the OpenMV project.\n * Copyright (c) 2013/2014 <NAME> <<EMAIL>>\n * This work is licensed under the MIT license, see the file LICENSE for details.\n *\n * SCCB (I2C like) driver.\n *\n */\n#ifndef __SCCB_H__\n#define __SCCB_H__\n#include <stdint.h>\nint SCCB_Init(int pin...
70
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 28.19, "nodes": 51, "errors": 0, "source_hash": "02f38a3c71e303708d4ac497f225dd3c86f13ea84c3a6e3fb440de3359e4096b", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,819
c
#ifndef TUNER_WINDOW_H #define TUNER_WINDOW_H #include "windows.h" // Tuner Window class class tuner_window : public windows { public: virtual void draw() override; virtual void update() override; virtual all_windows get_window_id() override; virtual void on_btn_pressed(buttons id) override; virtu...
27.58
19
(translation_unit) "#ifndef TUNER_WINDOW_H\n#define TUNER_WINDOW_H\n\n#include "windows.h"\n\n// Tuner Window class\nclass tuner_window : public windows\n{\npublic:\n virtual void draw() override;\n virtual void update() override;\n virtual all_windows get_window_id() override;\n virtual void on_btn_pressed...
119
8
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 27.58, "nodes": 80, "errors": 0, "source_hash": "0e8f55e9c0b6e5283fbcc0399e26482c0fae22d95c73296514e3cba627732d46", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,820
c
#ifndef TIMER_H #define TIMER_H #include "duration.h" #include "simple_task.h" class timer : public simple_task { public: timer(duration, bool realtime = false); void operator()(); virtual void on_tick() = 0; }; #endif//TIMER_H
20.27
11
(translation_unit) "#ifndef TIMER_H\n#define TIMER_H\n\n#include "duration.h"\n#include "simple_task.h"\n\nclass timer : public simple_task {\npublic:\n timer(duration, bool realtime = false);\n void operator()();\n\n virtual void on_tick() = 0;\n};\n\n#endif//TIMER_H\n" (preproc_ifdef) "#ifndef TIMER_H\n#define T...
76
3
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 20.27, "nodes": 45, "errors": 0, "source_hash": "803aeeb4d5cc2eb54cefe96e36b065c72a0bb325a63e0156d77c0b674ae00d55", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,821
c
//////////////////////////////////////////////////////////////////////////// // Module : move_processor_inline.h // Created : 30.12.2004 // Modified : 30.12.2004 // Author : <NAME> // Description : Move processor inline functions //////////////////////////////////////////////////////////////////////////// ...
29.11
64
(translation_unit) "//////////////////////////////////////////////////////////////////////////// \n// Module : move_processor_inline.h \n// Created : 30.12.2004 \n// Modified : 30.12.2004 \n// Author : <NAME> \n// Description : Move processor inline functions \n////////////////////////////////////////////////////...
379
10
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 29.11, "nodes": 206, "errors": 0, "source_hash": "e4fc636099079cb307abe8787551f768e8c18693fdb9177ea3522f7e8e904c83", "categorized_nodes": 145}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
8,822
c
/* / _____) _ | | ( (____ _____ ____ _| |_ _____ ____| |__ \____ \| ___ | (_ _) ___ |/ ___) _ \ _____) ) ____| | | || |_| ____( (___| | | | (______/|_____)_|_|_| \__)_____)\____)_| |_| (C)2013 Semtech Description: SX1276 driver specific target board functions implementation Lic...
26.38
155
(translation_unit) "/*\n / _____) _ | |\n( (____ _____ ____ _| |_ _____ ____| |__\n \____ \| ___ | (_ _) ___ |/ ___) _ \\n _____) ) ____| | | || |_| ____( (___| | | |\n(______/|_____)_|_|_| \__)_____)\____)_| |_|\n (C)2013 Semtech\n\nDescription: SX1276 driver specific target board f...
702
0
{"language": "c", "success": true, "metadata": {"lines": 155, "avg_line_length": 26.38, "nodes": 377, "errors": 0, "source_hash": "58ad5b4f69d8b0467219679c5ec24604e02841069c1e3c9eae9a05dd5c089b35", "categorized_nodes": 269}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,823
c
#ifndef _DAEMONIZE_H_ #define _DAEMONIZE_H_ /** * daemonize(spid): * Daemonize and write the process ID in decimal to a file named ${spid}. * The parent process will exit only after the child has written its pid. * On success, the child will return 0; on failure, the parent will return * -1. */ int daemonize(con...
31.64
11
(translation_unit) "#ifndef _DAEMONIZE_H_\n#define _DAEMONIZE_H_\n\n/**\n * daemonize(spid):\n * Daemonize and write the process ID in decimal to a file named ${spid}.\n * The parent process will exit only after the child has written its pid.\n * On success, the child will return 0; on failure, the parent will return\n...
24
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 31.64, "nodes": 16, "errors": 0, "source_hash": "ed05c28c205600e7cc4b6f9b31f2c71da65b43b82e676831c49f7e1b55c3b2f1", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
8,824
c
#ifndef MAP_MERGE_TYPEDEFS_H_ #define MAP_MERGE_TYPEDEFS_H_ #include <pcl/PCLPointCloud2.h> #include <pcl/correspondence.h> #include <pcl/point_cloud.h> #include <pcl/point_types.h> #include <pcl/visualization/point_cloud_color_handlers.h> namespace map_merge_3d { // setup some typedefs for working with RGB pointclou...
38.97
31
(translation_unit) "#ifndef MAP_MERGE_TYPEDEFS_H_\n#define MAP_MERGE_TYPEDEFS_H_\n\n#include <pcl/PCLPointCloud2.h>\n#include <pcl/correspondence.h>\n#include <pcl/point_cloud.h>\n#include <pcl/point_types.h>\n#include <pcl/visualization/point_cloud_color_handlers.h>\n\nnamespace map_merge_3d\n{\n// setup some typedefs...
203
14
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 38.97, "nodes": 135, "errors": 0, "source_hash": "115bf2351a10efb878f10ebe3cf7f93db0e21412ca3383b50d9836669b0b0823", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
8,825
c
#include <stdio.h> #include "../minunit.h" #include "../../src/Lists/vector.h" #include <string.h> int tests_run = 0; static char * test_append(){ vector* v = vector_new(); vector_append(v, "zero"); vector_append(v, "one"); vector_append(v, "two"); mu_assert("vector_length(v) is not 3", vector_length(v) == 3);...
28.35
54
(translation_unit) "#include <stdio.h>\n#include "../minunit.h"\n#include "../../src/Lists/vector.h"\n#include <string.h>\n\nint tests_run = 0;\n\nstatic char * test_append(){\n vector* v = vector_new();\n\n vector_append(v, "zero");\n vector_append(v, "one");\n vector_append(v, "two");\n\n mu_assert("vector_length(v) ...
653
0
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 28.35, "nodes": 332, "errors": 0, "source_hash": "77ddb74070d3596b99c4217ba2f6d4c67e1c98a4259e44d9dbdd29df0dbf65c8", "categorized_nodes": 219}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
8,826
c
#pragma once namespace math { template <typename, typename> class Generator2; using Generator2F = Generator2<float, void>; using Generator2D = Generator2<double, void>; template <typename, typename> class Generator3; using Generator3F = Generator3<float, void>; using Generator3D = Generator3<double, void>; }
30.1
10
(translation_unit) "#pragma once\n\n\nnamespace math {\n\ntemplate <typename, typename> class Generator2;\nusing Generator2F = Generator2<float, void>;\nusing Generator2D = Generator2<double, void>;\n\ntemplate <typename, typename> class Generator3;\nusing Generator3F = Generator3<float, void>;\nusing Generator3D = Gen...
94
6
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 30.1, "nodes": 72, "errors": 0, "source_hash": "99e9ea08981784a506f9b4b862d5a6f96b36795a7e2acc9c076b2b6f97fc7767", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
8,827
c
// // WKFeeBasisXRP.c // WalletKitCore // // Created by <NAME> on 2020-09-04. // Copyright © 2019 Breadwinner AG. All rights reserved. // // See the LICENSE file at the project root for license information. // See the CONTRIBUTORS file at the project root for a list of contributors. // #include "WKXRP.h" #include...
33.2
81
(translation_unit) "//\n// WKFeeBasisXRP.c\n// WalletKitCore\n//\n// Created by <NAME> on 2020-09-04.\n// Copyright © 2019 Breadwinner AG. All rights reserved.\n//\n// See the LICENSE file at the project root for license information.\n// See the CONTRIBUTORS file at the project root for a list of contributors.\n/...
456
2
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 33.2, "nodes": 292, "errors": 0, "source_hash": "58fca008342bd33623814ab0223bb29aee771a2adb5b2e1e18b347eb20d81855", "categorized_nodes": 224}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "inclu...
8,828
c
/* Copyright 2019 MechMerlin <<EMAIL>> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version. This program is distributed in the hope ...
27.21
251
(translation_unit) "/*\nCopyright 2019 MechMerlin <<EMAIL>>\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 2 of the License, or\n(at your option) any later version.\n\nThis program ...
1,426
0
{"language": "c", "success": true, "metadata": {"lines": 251, "avg_line_length": 27.21, "nodes": 853, "errors": 0, "source_hash": "f351d98a1e2adc8d1602d92780ea9907e2cbaef9bb3d4dd2e504f6a200f955cc", "categorized_nodes": 601}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,829
c
#ifndef __Render_H__ #define __Render_H__ #include "Physics.h" #include "SDL/include/SDL.h" #include"SDL_image/include/SDL_image.h" #include "Animation.h" struct SDL_Renderer; struct SDL_Texture; #define SCREEN_WIDTH 800 #define SCREEN_HEIGHT 800 class Render { public: Render(); ~Render(); void Init(); void bl...
26.56
68
(translation_unit) "#ifndef __Render_H__\n#define __Render_H__\n\n#include "Physics.h"\n#include "SDL/include/SDL.h"\n#include"SDL_image/include/SDL_image.h"\n#include "Animation.h"\n\nstruct SDL_Renderer;\nstruct SDL_Texture;\n\n#define SCREEN_WIDTH 800\n#define SCREEN_HEIGHT 800\n\nclass Render\n{\npublic:\n Render()...
383
3
{"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 26.56, "nodes": 274, "errors": 0, "source_hash": "d84e33abeb5df19dc8ad21b0f93ad674d2476e61cdf5c7829cbbf4aaa48ffee7", "categorized_nodes": 190}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,830
c
#pragma once #ifndef SYDEVS_EXAMPLES_ADVANCED_BUILDING_SOUND_SOURCE_NODE_H_ #define SYDEVS_EXAMPLES_ADVANCED_BUILDING_SOUND_SOURCE_NODE_H_ #include <examples/research/building7m_advanced/building_occupant_ids.h> #include <sydevs/systems/atomic_node.h> namespace sydevs_examples { using namespace sydevs; using namespa...
35.07
88
(translation_unit) "#pragma once\n#ifndef SYDEVS_EXAMPLES_ADVANCED_BUILDING_SOUND_SOURCE_NODE_H_\n#define SYDEVS_EXAMPLES_ADVANCED_BUILDING_SOUND_SOURCE_NODE_H_\n\n#include <examples/research/building7m_advanced/building_occupant_ids.h>\n#include <sydevs/systems/atomic_node.h>\n\nnamespace sydevs_examples {\n\nusing na...
853
48
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 35.07, "nodes": 539, "errors": 0, "source_hash": "9b91e449989b1ad158f5714cbb36b8008d421692e2d6ce71535586fbdd938fd4", "categorized_nodes": 378}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
8,831
c
// // ComicClickedModel.h // CartoonWorld // // Created by dundun on 2017/9/4. // Copyright © 2017年 顿顿. All rights reserved. // #import <Foundation/Foundation.h> @interface ComicDetailModel : NSObject @property (nonatomic, strong) NSString *click_total; // 点击量 @property (nonatomic, assign) NSInteger comic_id;...
34
15
(translation_unit) "//\n// ComicClickedModel.h\n// CartoonWorld\n//\n// Created by dundun on 2017/9/4.\n// Copyright © 2017年 顿顿. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface ComicDetailModel : NSObject\n\n@property (nonatomic, strong) NSString *click_total; // 点击量\n@property (nonat...
105
22
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 34.0, "nodes": 71, "errors": 0, "source_hash": "2315a99c823de7e2fc0ecbe59e65633a7c6f882d952d1ea3cb70cc2a0e259b07", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <Foundati...
8,832
c
/* * Copyright 2011, <NAME>, <EMAIL>. * Copyright 2011, <NAME> <<EMAIL>> * Distributed under the terms of the MIT License. */ #ifndef _PACKAGE__HPKG__PRIVATE__PACKAGE_WRITER_IMPL_H_ #define _PACKAGE__HPKG__PRIVATE__PACKAGE_WRITER_IMPL_H_ #include <util/DoublyLinkedList.h> #include <util/OpenHashTable.h> #include...
33.29
116
(translation_unit) "/*\n * Copyright 2011, <NAME>, <EMAIL>.\n * Copyright 2011, <NAME> <<EMAIL>>\n * Distributed under the terms of the MIT License.\n */\n#ifndef _PACKAGE__HPKG__PRIVATE__PACKAGE_WRITER_IMPL_H_\n#define _PACKAGE__HPKG__PRIVATE__PACKAGE_WRITER_IMPL_H_\n\n\n#include <util/DoublyLinkedList.h>\n#include <u...
813
19
{"language": "c", "success": true, "metadata": {"lines": 116, "avg_line_length": 33.29, "nodes": 553, "errors": 0, "source_hash": "0234eb05c03ff9b4b24b591ff657c820f3aba39c0a507356c85d964534dc9ad9", "categorized_nodes": 387}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
8,833
c
/* $OpenBSD: if_bwi_pci.c,v 1.16 2015/11/24 17:11:39 mpi Exp $ */ /* * Copyright (c) 2007 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all ...
31.86
180
(translation_unit) "/* $OpenBSD: if_bwi_pci.c,v 1.16 2015/11/24 17:11:39 mpi Exp $ */\n\n/*\n * Copyright (c) 2007 <NAME> <<EMAIL>>\n *\n * Permission to use, copy, modify, and distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permi...
1,401
0
{"language": "c", "success": true, "metadata": {"lines": 180, "avg_line_length": 31.86, "nodes": 930, "errors": 0, "source_hash": "ccfb350dea3ed40881fd38318c0e5c93df69818e3f64af61dc25107e14324830", "categorized_nodes": 675}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,834
c
#pragma once #include "TeBulletPhysicsPrerequisites.h" namespace te { /** * Bullet implementation of collider. It's a interface to store common * methods and attributes among all colliders managed by bullet */ class BulletCollider { public: BulletCollider(BulletPhysics* physi...
27.38
21
(translation_unit) "#pragma once\n\n#include "TeBulletPhysicsPrerequisites.h"\n\nnamespace te\n{\n /** \n * Bullet implementation of collider. It's a interface to store common \n * methods and attributes among all colliders managed by bullet \n */\n class BulletCollider\n {\n public:\n Bu...
89
2
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 27.38, "nodes": 55, "errors": 0, "source_hash": "747ef5a1748da3efb122fc950611d24c71485ed8471292a22a49aea06d0e2f43", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
8,835
c
// // airADView.h // airADKit // // Created by NSXiu on 4/17/12. // Copyright (c) 2012 airAD.com. All rights reserved. // #import <UIKit/UIKit.h> #import "airADViewDelegate.h" #pragma mark - #pragma mark Ad Size #define AD_SIZE_320x54 CGSizeMake(320, 54) typedef enum refreshMode { REFRESH_MODE_AUTO, REF...
23.07
43
(translation_unit) "//\n// airADView.h\n// airADKit\n//\n// Created by NSXiu on 4/17/12.\n// Copyright (c) 2012 airAD.com. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "airADViewDelegate.h"\n\n#pragma mark -\n#pragma mark Ad Size\n\n#define AD_SIZE_320x54 CGSizeMake(320, 54)\n\ntypedef enum refr...
167
16
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 23.07, "nodes": 103, "errors": 0, "source_hash": "b861362a0160a724a236605ecae73a4410bb03f0ac8d67bd3d0790430eed8faf", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
8,836
c
// // SQLiteController.h // Count_It // // Created by <NAME> on 5/24/15. // Copyright (c) 2015 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface SQLiteController : NSObject @property NSMutableArray *results; -(void)runQuery:(const char*)filePath query:(const char*)query; -(NSArray *)g...
24.62
13
(translation_unit) "//\n// SQLiteController.h\n// Count_It\n//\n// Created by <NAME> on 5/24/15.\n// Copyright (c) 2015 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface SQLiteController : NSObject\n\n@property NSMutableArray *results;\n\n-(void)runQuery:(const char*)filePath query...
79
8
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 24.62, "nodes": 46, "errors": 0, "source_hash": "7f1891542b673e7b49d0304ac732d433d851bd79983396ca0d7f082a8211d840", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
8,837
c
// // JSSong.h // JSMusic // // Created by Precious on 15/5/29. // Copyright (c) 2015年 JS. All rights reserved. // #import <Foundation/Foundation.h> @interface JSSong : NSObject //歌手头像 @property (nonatomic, copy) NSString *imageUrl; @property (nonatomic, copy) NSString *songName; @property (nonatomic, copy) NSStr...
26.75
16
(translation_unit) "//\n// JSSong.h\n// JSMusic\n//\n// Created by Precious on 15/5/29.\n// Copyright (c) 2015年 JS. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface JSSong : NSObject\n//歌手头像\n@property (nonatomic, copy) NSString *imageUrl;\n@property (nonatomic, copy) NSString *songName;\...
109
22
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 26.75, "nodes": 70, "errors": 0, "source_hash": "6770cfd8e507d68ba030ef7543cff9e552a1196935db22e4ec3e1f8a66da0574", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <Fo...
8,838
c
/* * Copyright (C) 1992, 1998 <NAME>, <NAME> * * This file contains the lowest level x86-specific interrupt * entry, irq-stacks and irq statistics code. All the remaining * irq logic is done by the generic kernel/irq/ code and * by the x86-specific irq controller code. (e.g. i8259.c and * io_apic.c.) */ #inclu...
29.78
172
(translation_unit) "/*\n * Copyright (C) 1992, 1998 <NAME>, <NAME>\n *\n * This file contains the lowest level x86-specific interrupt\n * entry, irq-stacks and irq statistics code. All the remaining\n * irq logic is done by the generic kernel/irq/ code and\n * by the x86-specific irq controller code. (e.g. i8259.c and\...
1,424
7
{"language": "c", "success": true, "metadata": {"lines": 172, "avg_line_length": 29.78, "nodes": 844, "errors": 0, "source_hash": "c0d447c354769e9326a1dfe8793616bd32eb3248abbd614fd1e6b18b0f6806db", "categorized_nodes": 606}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,839
c
// Copyright 2021 The Fuchsia 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 SRC_LIB_ANALYTICS_CPP_GOOGLE_ANALYTICS_EXCEPTION_H_ #define SRC_LIB_ANALYTICS_CPP_GOOGLE_ANALYTICS_EXCEPTION_H_ #include <optional> #include <stri...
45.32
19
(translation_unit) "// Copyright 2021 The Fuchsia 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 SRC_LIB_ANALYTICS_CPP_GOOGLE_ANALYTICS_EXCEPTION_H_\n#define SRC_LIB_ANALYTICS_CPP_GOOGLE_ANALYTICS_EXCEPTION_H_\n\n#includ...
95
4
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 45.32, "nodes": 54, "errors": 0, "source_hash": "33c189abca99f266b7d3db0cbba3951b9ec0baa14350ff8d1ee7b0ebafecb584", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,840
c
#include <math-type-macros-double.h> #include <s_tanh_template.c>
32
2
(translation_unit) "#include <math-type-macros-double.h>\n#include <s_tanh_template.c>\n" (preproc_include) "#include <math-type-macros-double.h>\n" (#include) "#include" (system_lib_string) "<math-type-macros-double.h>" (preproc_include) "#include <s_tanh_template.c>\n" (#include) "#include" (syste...
7
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 32.0, "nodes": 6, "errors": 0, "source_hash": "b73b37c44e9e1c9ee1cf0a188352bc9a47f000edf15e002e9e43f93625de0532", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <...
8,841
c
#ifndef BET_H #define BET_H #include <QString> namespace betfair { class TBet { public: TBet(const QString& mid, const QString& bid, const QString& persistence, const QString& placed_date, const QString& placement_status, const QString& match_status, ...
37.52
86
(translation_unit) "#ifndef BET_H\n#define BET_H\n\n#include <QString>\n\nnamespace betfair {\n\nclass TBet\n{\npublic:\n TBet(const QString& mid,\n const QString& bid,\n const QString& persistence,\n const QString& placed_date,\n const QString& placement_status,\n c...
805
47
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 37.52, "nodes": 409, "errors": 0, "source_hash": "5e1492d500b8585f217fea60adbe9cbcdbd203dc5a0127594cdc93dd79f4922e", "categorized_nodes": 287}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,842
c
#ifndef DATABLOB_H #define DATABLOB_H #include <NeuralNetwork/Blobs/OriginalSample.h> #include <NeuralNetwork/Blobs/TranslationUnit.h> #include <NeuralNetwork/Object.h> namespace NN { class DataBlob : public Object { public: DataBlob() {} DataBlob(std::string blobName); DataBlob(std::string filename, st...
31.85
62
(translation_unit) "#ifndef DATABLOB_H\n#define DATABLOB_H\n\n#include <NeuralNetwork/Blobs/OriginalSample.h>\n#include <NeuralNetwork/Blobs/TranslationUnit.h>\n#include <NeuralNetwork/Object.h>\n\nnamespace NN {\n\n\nclass DataBlob : public Object {\npublic:\n DataBlob() {}\n DataBlob(std::string blobName);\n ...
627
23
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 31.85, "nodes": 402, "errors": 0, "source_hash": "efe61fd21a4e1eeee49e2ee9500510319e84ff0fd7820865f4abfb502f866219", "categorized_nodes": 253}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,843
c
#include <stdio.h> int main(int argc, char ** argv) { FILE * fp = fopen("/tmp/log.txt", "w+"); while (1) { sleep(1); fprintf(fp, "Hey there! https://dissectingmalwa.re\n"); fprintf(fp, "foobarbaz\n"); fflush(fp); } fclose(fp); return 0; }
21.08
12
(translation_unit) "#include <stdio.h>\n\nint main(int argc, char ** argv) {\n FILE * fp = fopen("/tmp/log.txt", "w+");\n while (1) {\n sleep(1);\n fprintf(fp, "Hey there! https://dissectingmalwa.re\n");\n fprintf(fp, "foobarbaz\n");\n fflush(fp);\n }\n fclose(fp);\n return 0;\n} \n" (preproc_include...
112
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 21.08, "nodes": 59, "errors": 0, "source_hash": "b0e606b0f0e38e5551dca67e46215187be00073bc34ba3091d1430a78efcf1ec", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
8,844
c
// Copyright (C) 2019 by <NAME>, Rector and Visitors of the // University of Virginia, University of Heidelberg, and University // of Connecticut School of Medicine. // All rights reserved. // Copyright (C) 2017 - 2018 by <NAME>, Virginia Tech Intellectual // Properties, Inc., University of Heidelberg, and University ...
29.28
39
(translation_unit) "// Copyright (C) 2019 by <NAME>, Rector and Visitors of the\n// University of Virginia, University of Heidelberg, and University\n// of Connecticut School of Medicine.\n// All rights reserved.\n\n// Copyright (C) 2017 - 2018 by <NAME>, Virginia Tech Intellectual\n// Properties, Inc., University of H...
132
8
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 29.28, "nodes": 79, "errors": 0, "source_hash": "e0957a75e19aff26f5d6af3f1799b021aab7bbda805210e4df10b80bd7f148ab", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,845
c
#include "app/launch/main.h" #include "app/sms/main.h" const char * APP_LAUNCH_TAG = "launch"; ui_screen_t * app_launch_main; ui_screen_t * app_launch_other; static void app_launch_main_activate(ui_list_item_t * list_item, ui_item_t * list, ui_screen_t * screen) { if (strcmp(list_item->label, "Phone") == 0) { } ...
42.22
51
(translation_unit) "#include "app/launch/main.h"\n\n#include "app/sms/main.h"\n\nconst char * APP_LAUNCH_TAG = "launch";\n\nui_screen_t * app_launch_main;\nui_screen_t * app_launch_other;\n\nstatic void app_launch_main_activate(ui_list_item_t * list_item, ui_item_t * list, ui_screen_t * screen) {\n if (strcmp(list_item...
657
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 42.22, "nodes": 377, "errors": 0, "source_hash": "87c1182cb8efad2bb03dfd82a4ad37098a6fe5bf0cc7667d5b93202de6ab2d7f", "categorized_nodes": 262}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
8,846
c
#ifndef NODE_H #define NODE_H #include "tree.h" class Node { public: int v; Node(int val); Node * find(Tree & t, int val); void insert(Tree & t, int val); Node * successor(Tree & t); Node * predecessor(Tree & t); Node * remove(Tree & t); int size(); int height(); #ifdef D...
24.43
37
(translation_unit) "#ifndef NODE_H\n#define NODE_H\n\n#include "tree.h"\n\nclass Node {\npublic:\n \n int v;\n \n Node(int val);\n Node * find(Tree & t, int val);\n void insert(Tree & t, int val);\n Node * successor(Tree & t);\n Node * predecessor(Tree & t);\n Node * remove(Tree & t);\n in...
358
7
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 24.43, "nodes": 242, "errors": 0, "source_hash": "62e2ea513e0925da61f2d22ac501ff95306cc94d8aef55db500962eda18ecf9a", "categorized_nodes": 153}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,847
c
// // LeftTableViewCell.h // ZDExcel // // Created by Dong on 2017/8/28. // Copyright © 2017年 Dong. All rights reserved. // #import <UIKit/UIKit.h> @interface LeftTableViewCell : UITableViewCell /** 赋值 @param title 要赋值的内容 */ - (void)reloadDataWithTitle:(NSString *)title; @end
16.81
16
(translation_unit) "//\n// LeftTableViewCell.h\n// ZDExcel\n//\n// Created by Dong on 2017/8/28.\n// Copyright © 2017年 Dong. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface LeftTableViewCell : UITableViewCell\n\n\n/**\n 赋值\n\n @param title 要赋值的内容\n */\n- (void)reloadDataWithTitle:(NSString *)title...
39
6
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 16.81, "nodes": 23, "errors": 0, "source_hash": "afcb3ffa6a0559a65fec097d2f7c03695eff91f587882e80950793967940f3a5", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
8,848
c
#ifndef _H_LISP_PROC_UTILS #define _H_LISP_PROC_UTILS #include <stdbool.h> #include "parsedef.h" bool obj_equals(obj_t* a, obj_t* b); obj_t makeNIL(); obj_t makeNumber(double number); obj_t* makeListWithValue(obj_t* value); obj_t* prependList(obj_t* list, obj_t* value); obj_t* appendList(obj_t* list, obj_t* value); obj...
27.18
17
(translation_unit) "#ifndef _H_LISP_PROC_UTILS\n#define _H_LISP_PROC_UTILS\n#include <stdbool.h>\n#include "parsedef.h"\nbool obj_equals(obj_t* a, obj_t* b);\nobj_t makeNIL();\nobj_t makeNumber(double number);\nobj_t* makeListWithValue(obj_t* value);\nobj_t* prependList(obj_t* list, obj_t* value);\nobj_t* appendList(ob...
176
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 27.18, "nodes": 132, "errors": 0, "source_hash": "5cc2335f0911f4e5d314112bd219b66a7a5d93b924c8bf057909c9ce1689dd81", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
8,849
c
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2015 Verifone Int. * * Author: <NAME> <<EMAIL>> * * This driver is based on the gpio-tps65912 implementation. */ #include <linux/kernel.h> #include <linux/module.h> #include <linux/errno.h> #include <linux/gpio/driver.h> #include <linux/platform_device....
28.06
207
(translation_unit) "// SPDX-License-Identifier: GPL-2.0-or-later\n/*\n * Copyright 2015 Verifone Int.\n *\n * Author: <NAME> <<EMAIL>>\n *\n * This driver is based on the gpio-tps65912 implementation.\n */\n\n#include <linux/kernel.h>\n#include <linux/module.h>\n#include <linux/errno.h>\n#include <linux/gpio/driver.h>\...
1,401
0
{"language": "c", "success": true, "metadata": {"lines": 207, "avg_line_length": 28.06, "nodes": 864, "errors": 0, "source_hash": "f3e9c433cb3a0c5abf9ec8fcd3e55e206a89c700673d2e71a6ad4084cfbf51b4", "categorized_nodes": 640}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,850
c
// Copyright 2014 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #ifndef _PWL_ICON_H_ #define _PWL_ICON_H_ class PWL_CLASS CPWL_Imag...
27.89
57
(translation_unit) "// Copyright 2014 PDFium 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// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com \n \n#ifndef _PWL_ICON_H_ \n#define _PWL_ICON_H_ \...
357
9
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 27.89, "nodes": 209, "errors": 0, "source_hash": "21a6e52822843be5bd82cf1d07109830165173d69f0506749fade091dea44994", "categorized_nodes": 155}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,851
c
/* * This header is generated by classdump-dyld 1.0 * on Saturday, August 24, 2019 at 9:45:49 PM Mountain Standard Time * Operating System: Version 12.4 (Build 16M568) * Image Source: /System/Library/PrivateFrameworks/iTunesCloud.framework/iTunesCloud * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <...
38.83
30
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Saturday, August 24, 2019 at 9:45:49 PM Mountain Standard Time\n* Operating System: Version 12.4 (Build 16M568)\n* Image Source: /System/Library/PrivateFrameworks/iTunesCloud.framework/iTunesCloud\n* classdump-dyld is licensed under GPLv3, C...
238
20
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 38.83, "nodes": 147, "errors": 0, "source_hash": "b5ff9cab08625e29a7fbad8d2323f9fedd3024d15b758b9a25147cefb6df6415", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "p", "parent": n...
8,852
c
#pragma once #include <memory> #include <string> #include "drake/common/default_scalars.h" #include "drake/systems/framework/context.h" namespace drake { namespace systems { /** %LeafContext contains all prerequisite data necessary to uniquely determine the results of computations performed by the associated LeafSy...
39.25
71
(translation_unit) "#pragma once\n\n#include <memory>\n#include <string>\n\n#include "drake/common/default_scalars.h"\n#include "drake/systems/framework/context.h"\n\nnamespace drake {\nnamespace systems {\n\n/** %LeafContext contains all prerequisite data necessary to uniquely determine\nthe results of computations pe...
443
32
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 39.25, "nodes": 257, "errors": 0, "source_hash": "f8146d278e456060e9f0408f55d4c8b8ef1828963f17f5cde04e8148edf39a68", "categorized_nodes": 171}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
8,853
c
// // ScratchableView.h // CGScratch // #import <UIKit/UIKit.h> @interface ScratchableView : UIView { float width; float height; CGPoint location; CGPoint previousLocation; BOOL firstTouch; CGImageRef scratchable; CGImageRef scratched; CGContextRef alphaPixels; CGDataProviderRef provider; @public ...
21.42
24
(translation_unit) "//\n// ScratchableView.h\n// CGScratch\n//\n\n\n#import <UIKit/UIKit.h>\n\n\n@interface ScratchableView : UIView {\n float width;\n float height;\n CGPoint location;\n CGPoint previousLocation;\n BOOL firstTouch;\n CGImageRef scratchable;\n CGImageRef scratched;\n CGContextRef alphaPixels;\n CGDat...
123
12
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 21.42, "nodes": 78, "errors": 0, "source_hash": "9873972e0b73bcf6c222976e81a8106049fff8779dfa164cf2a921b791083ff6", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
8,854
c
//***************************************************************************** // All Winner Tech, All Right Reserved. 2006-2014 Copyright (c) // // File name : di.c // // Description : // // History : // // //****************************************************************************** #include "di...
27.71
227
(translation_unit) "//*****************************************************************************\n// All Winner Tech, All Right Reserved. 2006-2014 Copyright (c)\n//\n// File name : di.c\n//\n// Description :\n//\n// History :\n//\n//\n//**************************************************************...
1,494
0
{"language": "c", "success": true, "metadata": {"lines": 227, "avg_line_length": 27.71, "nodes": 839, "errors": 0, "source_hash": "15ce248d914f701107b3aa88f844d68fe41d597d3f9d46c94f02b7af62b180f2", "categorized_nodes": 646}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,855
c
// // MapPoint.h // GoHikeAmsterdam // // Created by <NAME> on 6/5/13. // Copyright (c) 2013 Code for Europe. All rights reserved. // #import <MapKit/MapKit.h> @protocol GHAnnotation <MKAnnotation> @property (nonatomic, assign) BOOL visited; @property (nonatomic, assign) BOOL current; @end @interface MapPoint ...
26.69
16
(translation_unit) "//\n// MapPoint.h\n// GoHikeAmsterdam\n//\n// Created by <NAME> on 6/5/13.\n// Copyright (c) 2013 Code for Europe. All rights reserved.\n//\n\n#import <MapKit/MapKit.h>\n\n@protocol GHAnnotation <MKAnnotation>\n\n@property (nonatomic, assign) BOOL visited;\n@property (nonatomic, assign) BOOL cur...
90
15
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 26.69, "nodes": 63, "errors": 0, "source_hash": "743b8debf2a63af2bc9eb44e865df373c97d100a4ea5b9efab30a68ed951d1df", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
8,856
c
/* BY: <NAME>, Stark Informatics LLC DATE: 7/8/2013 VERSION: 2.2 View the README.TXT for function information. Version 1.0 Initial Release Version 1.1 Improved documentation Version 2.0 Adds functionality for ranged tasks(1..4) Version 2.1 Adds Pre-Processor statements allowing including of ei...
35.09
102
(translation_unit) "/*\nBY: <NAME>, Stark Informatics LLC\nDATE: 7/8/2013\nVERSION: 2.2\n\nView the README.TXT for function information.\n\nVersion 1.0\nInitial Release\n\nVersion 1.1\nImproved documentation\n\nVersion 2.0\nAdds functionality for ranged tasks(1..4)\n\nVersion 2.1\nAdds Pre-Processo...
685
0
{"language": "c", "success": true, "metadata": {"lines": 102, "avg_line_length": 35.09, "nodes": 445, "errors": 0, "source_hash": "56a5e953603b7af0edf6d1a06ed21873bcb53a96ead6e99a88c5a1177cb9e5db", "categorized_nodes": 330}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
8,857
c
//======================================================================= // Copyright <NAME> 2015. // Distributed under the MIT License. // (See accompanying file license.txt or copy at // http://opensource.org/licenses/MIT) //======================================================================= /* * profiler.c ...
27.56
16
(translation_unit) "//=======================================================================\n// Copyright <NAME> 2015.\n// Distributed under the MIT License.\n// (See accompanying file license.txt or copy at\n// http://opensource.org/licenses/MIT)\n//==================================================================...
22
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 27.56, "nodes": 10, "errors": 0, "source_hash": "e8bde99074fd5275ae4d0ea17aedbc3a800863f3bf2674b95d53470064a2b019", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
8,858
c
#ifndef TERSE_EXPRESSION_H #define TERSE_EXPRESSION_H #include "Statement.h" namespace Terse { class Expression { public: virtual ~Expression() {} }; } #endif
16.9
10
(translation_unit) "#ifndef TERSE_EXPRESSION_H\n#define TERSE_EXPRESSION_H\n\n#include "Statement.h"\n\nnamespace Terse {\n\n class Expression {\n public:\n virtual ~Expression() {}\n };\n\n}\n\n#endif\n" (preproc_ifdef) "#ifndef TERSE_EXPRESSION_H\n#define TERSE_EXPRESSION_H\n\n#include "Statement.h"...
43
2
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 16.9, "nodes": 23, "errors": 0, "source_hash": "6da9747b563790ade8bbaafd2c0919d802654c861029b5eee39401e457228aa6", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef T...
8,859
c
/* * Functions for logs anonymization * Authors: <NAME> */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include <inttypes.h> #include "debug_utils.h" #include "files_extensions.h" #include "loganon_parser_pcap.h" /* * File type enum */ typedef enum {UNKNOWN, PCAP, SYSLOG} FILETYPE; /* Type of fi...
22.97
78
(translation_unit) "/*\n * Functions for logs anonymization\n * Authors: <NAME>\n */\n\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <inttypes.h>\n\n#include "debug_utils.h"\n#include "files_extensions.h"\n#include "loganon_parser_pcap.h"\n\n/*\n * File type enum\n */\ntypedef enum {UNKNOWN, P...
315
0
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 22.97, "nodes": 172, "errors": 0, "source_hash": "68b46c5be6309dd5cd98a6a32b0665cb6e0f21d8230667e01b7f3981ab18bb45", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
8,860
c
// // PuckUtils // Puck // // Created by slex on 02/06/21. // #import <Foundation/Foundation.h> #import <XCBKit/XCBConnection.h> #import <XCBKit/services/EWMHService.h> @interface PuckUtils : NSObject { } @property (strong, nonatomic) XCBConnection *connection; @property (strong, nonatomic) EWMHService *ewmhService;...
26.16
19
(translation_unit) "//\n// PuckUtils\n// Puck\n//\n// Created by slex on 02/06/21.\n//\n\n#import <Foundation/Foundation.h>\n#import <XCBKit/XCBConnection.h>\n#import <XCBKit/services/EWMHService.h>\n\n@interface PuckUtils : NSObject\n{\n}\n\n@property (strong, nonatomic) XCBConnection *connection;\n@property (strong, ...
127
13
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 26.16, "nodes": 80, "errors": 0, "source_hash": "40e958566b34549352868b4aa4a0e34b6949191974a0f039103fa2c63755e1b8", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
8,861
c
enum AddressSpace { Generic = 0, Tracked = 10, Derived = 11, CalleeRooted = 12, FirstSpecial = Tracked, LastSpecial = CalleeRooted, }; #define JLCALL_CC (CallingConv::ID)36 #define JLCALL_F_CC (CallingConv::ID)37
27.62
8
(translation_unit) "enum AddressSpace {\n Generic = 0,\n Tracked = 10, Derived = 11, CalleeRooted = 12,\n FirstSpecial = Tracked,\n LastSpecial = CalleeRooted,\n};\n\n#define JLCALL_CC (CallingConv::ID)36\n#define JLCALL_F_CC (CallingConv::ID)37\n" (enum_specifier) "enum AddressSpace {\n Generic = 0,\n...
46
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 27.62, "nodes": 36, "errors": 0, "source_hash": "ba1a522b5e82fdeea0ba413780694b076704e872c94f49ff37b7439e183026f2", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "enum_specifier", "text": "enum Add...
8,862
c
/** * @file sqltypes.h * Copyright 2012, 2013 MinGW.org project * * 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,...
27.09
184
(translation_unit) "/**\n * @file sqltypes.h\n * Copyright 2012, 2013 MinGW.org project\n *\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 limita...
760
0
{"language": "c", "success": true, "metadata": {"lines": 184, "avg_line_length": 27.09, "nodes": 594, "errors": 0, "source_hash": "e5a07866a0ff7098f8fecc4e438bad3fa1ddf7aaa4ab118e3aa189a6bbe141aa", "categorized_nodes": 424}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
8,863
c
// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2000-2009 * <NAME>, ST Microelectronics, <EMAIL> */ #include <common.h> #if (CONFIG_DDR_PLL2 || CONFIG_DDR_2HCLK) const u32 mpmc_conf_vals[CONFIG_SPEAR_MPMCREGS] = { #if (CONFIG_DDR_PLL2) 0x00000001, 0x00000000, #elif (CONFIG_DDR_2HCLK) 0x02020201, 0x020...
13.03
115
(translation_unit) "// SPDX-License-Identifier: GPL-2.0+\n/*\n * (C) Copyright 2000-2009\n * <NAME>, ST Microelectronics, <EMAIL>\n */\n\n#include <common.h>\n\n#if (CONFIG_DDR_PLL2 || CONFIG_DDR_2HCLK)\n\nconst u32 mpmc_conf_vals[CONFIG_SPEAR_MPMCREGS] = {\n#if (CONFIG_DDR_PLL2)\n 0x00000001,\n 0x00000000,\n#elif (CON...
251
3
{"language": "c", "success": true, "metadata": {"lines": 115, "avg_line_length": 13.03, "nodes": 134, "errors": 0, "source_hash": "5074bfcd8359ab2a4eb82c9d54d7dbead5fbd3c0765ba626f5d83a1c4f492086", "categorized_nodes": 121}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,864
c
/* Auto-generated by genmsg_cpp for file /home/joaoquintas/ros_workspace/SRC/auction_methods_stack/auction_msgs/msg/Bid.msg */ #ifndef AUCTION_MSGS_MESSAGE_BID_H #define AUCTION_MSGS_MESSAGE_BID_H #include <string> #include <vector> #include <map> #include <ostream> #include "ros/serialization.h" #include "ros/builtin_...
42.75
187
(translation_unit) "/* Auto-generated by genmsg_cpp for file /home/joaoquintas/ros_workspace/SRC/auction_methods_stack/auction_msgs/msg/Bid.msg */\n#ifndef AUCTION_MSGS_MESSAGE_BID_H\n#define AUCTION_MSGS_MESSAGE_BID_H\n#include <string>\n#include <vector>\n#include <map>\n#include <ostream>\n#include "ros/serializatio...
2,055
143
{"language": "c", "success": true, "metadata": {"lines": 187, "avg_line_length": 42.75, "nodes": 1158, "errors": 0, "source_hash": "dea2c483dbee5c53bcf41423e871549c75cc808c9b7520dbca00ed8c2ba060d2", "categorized_nodes": 694}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
8,865
c
#pragma once #include <string> #include "endian.h" char32_t endian_cast(char32_t c, endian en); size_t utf8_to_utf32(const std::string& src, std::u32string& dst, endian en = local_endian().get()); size_t utf32_to_utf8(const std::u32string& str, std::string& dst, endian en = local_endian().get());
48.83
6
(translation_unit) "ragma once\n#include <string>\n#include "endian.h"\n\nchar32_t endian_cast(char32_t c, endian en);\n\nsize_t utf8_to_utf32(const std::string& src, std::u32string& dst, endian en = local_endian().get());\n\nsize_t utf32_to_utf8(const std::u32string& str, std::string& dst, endian en = local_endian().g...
122
6
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 48.83, "nodes": 82, "errors": 0, "source_hash": "392cfcd51111848d1aec84d77ab4357eedff45bbec1c6516c2c68429d95d74e1", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma once...
8,866
c
/* * CiderPress * Copyright (C) 2007 by faddenSoft, LLC. All Rights Reserved. * See the file LICENSE for distribution terms. */ /* * Definitions for the ArchiveInfo set of dialog classes. */ #ifndef APP_ARCHIVEINFODIALOG_H #define APP_ARCHIVEINFODIALOG_H #include "resource.h" #include "GenericArchiv...
24.45
151
(translation_unit) "/* \n * CiderPress \n * Copyright (C) 2007 by faddenSoft, LLC. All Rights Reserved. \n * See the file LICENSE for distribution terms. \n */ \n/* \n * Definitions for the ArchiveInfo set of dialog classes. \n */ \n#ifndef APP_ARCHIVEINFODIALOG_H \n#define APP_ARCHIVEINFODIALOG_H \n \n#include "resou...
706
25
{"language": "c", "success": true, "metadata": {"lines": 151, "avg_line_length": 24.45, "nodes": 414, "errors": 0, "source_hash": "bf0a65661bea70b8c30e6f03d081dbbaa8f8651e177fe19ea20e1b6fa891930f", "categorized_nodes": 265}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef APP_A...
8,867
c
// // MvpSettingCell.h // Show // // Created by Colorful on 16/5/26. // Copyright © 2016年 Mvp. All rights reserved. // #import <UIKit/UIKit.h> @interface MvpSettingCell : UITableViewCell @property (strong, nonatomic) NSDictionary* item; + (instancetype)settingCellWithTableView:(UITableView*)tableView andItem:(N...
27.33
12
(translation_unit) "//\n// MvpSettingCell.h\n// Show\n//\n// Created by Colorful on 16/5/26.\n// Copyright © 2016年 Mvp. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface MvpSettingCell : UITableViewCell\n\n@property (strong, nonatomic) NSDictionary* item;\n\n+ (instancetype)settingCellWithTableView:...
66
9
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 27.33, "nodes": 41, "errors": 0, "source_hash": "1323eeb42d794016327c46d62438c53459657caf6a39c49b9580740c33ef8a86", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
8,868
c
#include <stdio.h> #include "bs_tree.h" int main(int argc, char **argv) { node_t *root = NULL; node_t *search_result = NULL; unsigned int tableau[] = {5,7,2,39,46,32,14, 38, 36, 6}; unsigned int i=0; for(i=0;i<sizeof(tableau)/sizeof(unsigned int);i++) { bs_insert(&root,...
20.26
23
(translation_unit) "#include <stdio.h>\n#include "bs_tree.h"\n\nint main(int argc, char **argv)\n{\n node_t *root = NULL;\n node_t *search_result = NULL;\n \n unsigned int tableau[] = {5,7,2,39,46,32,14, 38, 36, 6};\n unsigned int i=0;\n \n for(i=0;i<sizeof(tableau)/sizeof(unsigned int);i++)\n {\...
194
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 20.26, "nodes": 122, "errors": 0, "source_hash": "72c1f3429c36b7d530bc31329847f39af9ddc29be8411fe014e772bd35f83337", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
8,869
c
// // MyViewController.h // JKDraggingView // // Created by albert on 2017/3/21. // Copyright © 2017年 albert. All rights reserved. // #import <UIKit/UIKit.h> @interface MyViewController : UIViewController @end
20.4
10
(translation_unit) "//\n// MyViewController.h\n// JKDraggingView\n//\n// Created by albert on 2017/3/21.\n// Copyright © 2017年 albert. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface MyViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// MyViewController.h" (comment) "/...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.4, "nodes": 10, "errors": 0, "source_hash": "f9d15a933842502135772f3bde7498007dfab48dcf6c63c525e4cbeade7df980", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKit...
8,870
c
#include <math.h> #include <stdio.h> int nhap() { int n; printf("Nhap mot so nguyen duong: "); scanf("%i", &n); while (n < 0) { printf("Du lieu khong hop le. Vui long nhap vao mot so nguyen duong: "); scanf("%i", &n); } return n; } int tongnt(int n) { int tong = 0; for (int i = 1; i <= n; i++)...
18
36
(translation_unit) "#include <math.h>\n#include <stdio.h>\n\nint nhap() {\n int n;\n printf("Nhap mot so nguyen duong: ");\n scanf("%i", &n);\n while (n < 0) {\n printf("Du lieu khong hop le. Vui long nhap vao mot so nguyen duong: ");\n scanf("%i", &n);\n }\n return n;\n}\n\nint tongnt(int n) {\n int tong ...
288
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 18.0, "nodes": 167, "errors": 0, "source_hash": "c0f66ee2ab962d67d5cdf14d69b2e8e26d52562d7dd772e37844854944fac50c", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
8,871
c
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_EXO_TOAST_SURFACE_MANAGER_H_ #define COMPONENTS_EXO_TOAST_SURFACE_MANAGER_H_ namespace exo { class ToastSurface; class ToastSurfaceM...
37.35
17
(translation_unit) "// Copyright 2020 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef COMPONENTS_EXO_TOAST_SURFACE_MANAGER_H_\n#define COMPONENTS_EXO_TOAST_SURFACE_MANAGER_H_\n\nnamespace exo {\n\nclass Toast...
85
3
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 37.35, "nodes": 55, "errors": 0, "source_hash": "cabc0ae2b918fda061b12bd7a7ea7430ae0be569f4f749d2e7c95d35ecced84e", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,872
c
#ifndef NODE_H #define NODE_H #include "mtwist.h" #include "algorithm.h" /** * @brief Ideally shorthand for unsigned long. * @TODO Incorporate \ref node_type further. */ typedef unsigned long node_type; /** * @brief Nodes in f(x) trees. Nodes are either * terminals (constant values or an x value) or *...
25.77
200
(translation_unit) "#ifndef NODE_H\n#define NODE_H\n\n\n\n\n#include "mtwist.h"\n#include "algorithm.h"\n\n\n\n\n/**\n * @brief Ideally shorthand for unsigned long. \n * @TODO Incorporate \ref node_type further.\n */\ntypedef unsigned long node_type;\n\n\n/**\n * @brief Nodes in f(x) trees. Nodes are either\n * termina...
410
0
{"language": "c", "success": true, "metadata": {"lines": 200, "avg_line_length": 25.77, "nodes": 257, "errors": 0, "source_hash": "f1e07f9c0aed90deafa963aebf6a25fce44b81737bf0b6c5ac0e1bc86be16b16", "categorized_nodes": 155}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
8,873
c
#include "SDHC_FAT32_Files.h" #ifndef UNIVIO_H_ #define UNIVIO_H_ /*pushb_fgetc returns 1 if sw1 is pressed, 2 if sw2 is pressed, 3 if both are pressed, otherwise 0*/ #define SW1PRESSED 1 #define SW2PRESSED 2 #define BOTHSWPRESSED 3 #define NOSWPRESSED 0 extern char g_sw; extern int g_relTim; int myfopen (file_des...
38.53
32
(translation_unit) "#include "SDHC_FAT32_Files.h"\n\n#ifndef UNIVIO_H_\n#define UNIVIO_H_\n\n/*pushb_fgetc returns 1 if sw1 is pressed, 2 if sw2 is pressed, 3 if both are pressed, otherwise 0*/\n#define SW1PRESSED 1\n#define SW2PRESSED 2\n#define BOTHSWPRESSED 3\n#define NOSWPRESSED 0\n\nextern char g_sw;\n\nextern int...
348
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 38.53, "nodes": 264, "errors": 0, "source_hash": "5c7f0d485b8fb22fd823f2dde651863f9a90c0315a49c7783579893dbf2196ed", "categorized_nodes": 164}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
8,874
c
// // UIView+CustomFoundation.h // TaoFang // // Created by mxw on 16/1/20. // Copyright © 2016年 House365. All rights reserved. // #import <UIKit/UIKit.h> @interface UIView (CustomFoundation) @property(nonatomic) CGFloat leftValue; @property(nonatomic) CGFloat topValue; @property(nonatomic) CGFloat rightValue; @...
35.46
28
(translation_unit) "//\n// UIView+CustomFoundation.h\n// TaoFang\n//\n// Created by mxw on 16/1/20.\n// Copyright © 2016年 House365. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIView (CustomFoundation)\n\n@property(nonatomic) CGFloat leftValue;\n@property(nonatomic) CGFloat topValue;\n@propert...
273
60
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 35.46, "nodes": 198, "errors": 0, "source_hash": "324f384760a7df57715f2c90917f837f996ec698cb3a517f73dc3fb2dc845c10", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <U...
8,875
c
/* * include/linux/keyreset.h - platform data structure for resetkeys driver * * Copyright (C) 2008 Google, Inc. * * 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 te...
32.67
24
(translation_unit) "/*\n * include/linux/keyreset.h - platform data structure for resetkeys driver\n *\n * Copyright (C) 2008 Google, Inc.\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, ...
50
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 32.67, "nodes": 33, "errors": 0, "source_hash": "e0edd0f2a338f2fe9765c9b7766d033295c09435304609a14ef504c7eff40b08", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,876
c
#ifndef __SCENE_GAME_H__ #define __SCENE_GAME_H__ #include "Module.h" #include "Animation.h" struct SDL_Texture; class SceneGame : public Module { public: //Constructor SceneGame(bool startEnabled); //Destructor ~SceneGame(); // Called when the module is activated // Loads the necessary textures for the map ...
27.52
200
(translation_unit) "#ifndef __SCENE_GAME_H__\n#define __SCENE_GAME_H__\n\n#include "Module.h"\n#include "Animation.h"\n\nstruct SDL_Texture;\n\nclass SceneGame : public Module\n{\npublic:\n //Constructor\n SceneGame(bool startEnabled);\n\n //Destructor\n ~SceneGame();\n\n // Called when the module is activated\n // Loa...
3,230
6
{"language": "c", "success": true, "metadata": {"lines": 200, "avg_line_length": 27.52, "nodes": 1708, "errors": 0, "source_hash": "859a01843fc7ded67325dafa53f3b87f1459f092f37d20e432b0538cdbca1875", "categorized_nodes": 1558}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#if...
8,877
c
#ifndef __ALGO_KEYS_H__ #define __ALGO_KEYS_H__ #include "cx.h" #include "stdbool.h" #define ALGORAND_PUBLIC_KEY_SIZE 32 int algorand_sign_message(uint32_t account_id, const uint8_t* msg_to_sign , const uint32_t msg_len, uint8_t* out_signature_buffer); void fetch_public_key(uint32_t accoun...
37.7
10
(translation_unit) "#ifndef __ALGO_KEYS_H__\n#define __ALGO_KEYS_H__\n#include "cx.h"\n#include "stdbool.h"\n\n\n#define ALGORAND_PUBLIC_KEY_SIZE 32\n\nint algorand_sign_message(uint32_t account_id, const uint8_t* msg_to_sign , \n const uint32_t msg_len, uint8_t* out_signature_buffer);\nvoid fe...
78
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 37.7, "nodes": 54, "errors": 0, "source_hash": "2cbcc6252476b913ffdbbbf960ea67c4e8bd12293ea0e96bcf84dec59cd54baf", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
8,878
c
/** \file * Declaration of the visualizer's shared functionalities. */ #pragma once #ifdef WITH_VISUALIZER #include "visualizer_types.h" #include "program.h" #include "utils/num.h" #include "utils/str.h" #include "utils/vec.h" #include "utils/pair.h" namespace ql { utils::Vec<GateProperties> parseGates(const qua...
44.83
23
(translation_unit) "/** \file\n * Declaration of the visualizer's shared functionalities.\n */\n\n#pragma once\n\n#ifdef WITH_VISUALIZER\n\n#include "visualizer_types.h"\n#include "program.h"\n#include "utils/num.h"\n#include "utils/str.h"\n#include "utils/vec.h"\n#include "utils/pair.h"\n\nnamespace ql {\n\nutils::Vec...
310
19
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 44.83, "nodes": 174, "errors": 0, "source_hash": "63665824951d78673563ed0238b7dadcbfdf16648f75f474a12962b68ba0cba8", "categorized_nodes": 129}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
8,879
c
/****************************************************************************** * * * Copyright (C) 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except ...
31.06
108
(translation_unit) "/******************************************************************************\n * *\n * Copyright (C) 2018 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may ...
728
10
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 31.06, "nodes": 441, "errors": 0, "source_hash": "6d6feb63460dfe30a3d48ebc0cb9e6efd270d7fe5b59d309e28c95dbb28d0e55", "categorized_nodes": 347}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
8,880
c
/* * Copyright (c) 2018 MariaDB Corporation Ab * * Use of this software is governed by the Business Source License included * in the LICENSE.TXT file and at www.mariadb.com/bsl11. * * Change Date: 2023-01-01 * * On the date above, in accordance with the Business Source License, use * of this software will be g...
32.34
47
(translation_unit) "/*\n * Copyright (c) 2018 MariaDB Corporation Ab\n *\n * Use of this software is governed by the Business Source License included\n * in the LICENSE.TXT file and at www.mariadb.com/bsl11.\n *\n * Change Date: 2023-01-01\n *\n * On the date above, in accordance with the Business Source License, use\n...
85
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 32.34, "nodes": 58, "errors": 0, "source_hash": "dd614bf5408306d3932a128aac0cf8385d9ecdba5928854d36b1c1f184b948fe", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
8,881
c
/* ** my_printf_ptr_ft3.c for my_printf_ptr_ft2 in /home/descou_c/PSU/PSU_2016_my_printf/lib/my ** ** Made by <NAME> ** Login <<EMAIL>> ** ** Started on Tue Nov 15 19:13:56 2016 <NAME> ** Last update Sun Dec 11 15:29:07 2016 <NAME> */ #include "../include/lib.h" int u_ft(va_list list) { int count; count = m...
21.54
28
(translation_unit) "/*\n** my_printf_ptr_ft3.c for my_printf_ptr_ft2 in /home/descou_c/PSU/PSU_2016_my_printf/lib/my\n** \n** Made by <NAME>\n** Login <<EMAIL>>\n** \n** Started on Tue Nov 15 19:13:56 2016 <NAME>\n** Last update Sun Dec 11 15:29:07 2016 <NAME>\n*/\n\n#include "../include/lib.h"\n\nint u_ft(va_list l...
151
1
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 21.54, "nodes": 83, "errors": 0, "source_hash": "8c9a284f1fdd3857e51627a0ef114a97fc952b64de8f3db1214163d69e812e7b", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
8,882
c
#ifndef _INIT_TESTS_HDR_ #define _INIT_TESTS_HDR_ void test_tree_alloc(void); void test_tree_alloc_rank_0(void); void test_tree_alloc_invalid_extent(void); #endif
26.17
6
(translation_unit) "#ifndef _INIT_TESTS_HDR_\n#define _INIT_TESTS_HDR_\n\nvoid test_tree_alloc(void);\nvoid test_tree_alloc_rank_0(void);\nvoid test_tree_alloc_invalid_extent(void);\n\n#endif\n" (preproc_ifdef) "#ifndef _INIT_TESTS_HDR_\n#define _INIT_TESTS_HDR_\n\nvoid test_tree_alloc(void);\nvoid test_tree_alloc_ra...
38
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 26.17, "nodes": 28, "errors": 0, "source_hash": "57611cc4ca35bf005a9605625bacdc41ae20d7ba5eacecf8a7095a41a71cae5a", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
8,883
c
#ifndef __READ__H_ #define __READ__H_ int cgc_read_balanced_expression(int fd, char *buf, cgc_size_t max); #endif /* __READ__H_ */
31.75
4
(translation_unit) "#ifndef __READ__H_\n#define __READ__H_\n\nint cgc_read_balanced_expression(int fd, char *buf, cgc_size_t max);\n\n#endif /* __READ__H_ */\n" (preproc_ifdef) "#ifndef __READ__H_\n#define __READ__H_\n\nint cgc_read_balanced_expression(int fd, char *buf, cgc_size_t max);\n\n#endif" (#ifndef) "#if...
30
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 31.75, "nodes": 23, "errors": 0, "source_hash": "4d68907374f082a225285f05a1c6297804573075ebd39bf756540830d5022916", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
8,884
c
#include "SDL/SDL.h" #include <string> #ifndef SHARED_H_ #define SHARED_H_ SDL_Surface* loadImage(std::string filename); void applySurface(int x, int y, SDL_Surface* source, SDL_Surface* dest, SDL_Rect* clip); #endif /*SHARED_H_*/
32
7
(translation_unit) "#include "SDL/SDL.h"\n#include <string>\n\n#ifndef SHARED_H_\n#define SHARED_H_\n\nSDL_Surface* loadImage(std::string filename);\nvoid applySurface(int x, int y, SDL_Surface* source, SDL_Surface* dest, SDL_Rect* clip);\n\n#endif /*SHARED_H_*/\n" (preproc_include) "#include "SDL/SDL.h"\n" (#inc...
67
1
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 32.0, "nodes": 49, "errors": 0, "source_hash": "c30232af74e877d6acdfa8c089c162b4c8fa9b756234c810291972021eb1b1f3", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
8,885
c
#include <arpa/inet.h> #include <ctype.h> #include <netdb.h> #include <netinet/in.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> #include <sys/types.h> #include <unistd.h> #include "tcp.h" int main(int argc, char *argv[]) { int sockfd, n; struct sockaddr_in servAddr; MsgTy...
27.61
54
(translation_unit) "#include <arpa/inet.h>\n#include <ctype.h>\n#include <netdb.h>\n#include <netinet/in.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <sys/socket.h>\n#include <sys/types.h>\n#include <unistd.h>\n\n#include "tcp.h"\n\nint main(int argc, char *argv[]) {\n int sockfd, n;\n s...
586
0
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 27.61, "nodes": 321, "errors": 0, "source_hash": "b708f813a0340fce107f8eb41224ca20a5a232db79aa6312fca813ffd5eba122", "categorized_nodes": 250}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
8,886
c
#include "fitz.h" int fz_read(fz_stream *stm, unsigned char *buf, int len) { int count, n; count = MIN(len, stm->wp - stm->rp); if (count) { memcpy(buf, stm->rp, count); stm->rp += count; } if (count == len || stm->error || stm->eof) return count; assert(stm->rp == stm->wp); if (len - count < stm->ep...
15.48
176
(translation_unit) "#include "fitz.h"\n\nint\nfz_read(fz_stream *stm, unsigned char *buf, int len)\n{\n int count, n;\n\n count = MIN(len, stm->wp - stm->rp);\n if (count)\n {\n memcpy(buf, stm->rp, count);\n stm->rp += count;\n }\n\n if (count == len || stm->error || stm->eof)\n return count;\n\n assert(stm->rp == ...
1,348
0
{"language": "c", "success": true, "metadata": {"lines": 176, "avg_line_length": 15.48, "nodes": 842, "errors": 0, "source_hash": "42912da1c46a69c9897c46706d09d226f71b4305812c9bafe5d39802df9447a3", "categorized_nodes": 633}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,887
c
/* * IA-32 Huge TLB Page Support for Kernel. * * Copyright (C) 2002, <NAME> <<EMAIL>> */ #include <linux/config.h> #include <linux/init.h> #include <linux/fs.h> #include <linux/mm.h> #include <linux/hugetlb.h> #include <linux/pagemap.h> #include <linux/smp_lock.h> #include <linux/slab.h> #include <linux/err.h> #in...
26.22
248
(translation_unit) "/*\n * IA-32 Huge TLB Page Support for Kernel.\n *\n * Copyright (C) 2002, <NAME> <<EMAIL>>\n */\n\n#include <linux/config.h>\n#include <linux/init.h>\n#include <linux/fs.h>\n#include <linux/mm.h>\n#include <linux/hugetlb.h>\n#include <linux/pagemap.h>\n#include <linux/smp_lock.h>\n#include <linux/s...
1,815
0
{"language": "c", "success": true, "metadata": {"lines": 248, "avg_line_length": 26.22, "nodes": 1243, "errors": 0, "source_hash": "2496874aef90b7b4c1828d8ced03189dc125ad9218b9709a1dd6a8e24fb012b7", "categorized_nodes": 900}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
8,888
c
#ifndef MOCK_OPENSSL_MD5_H_ #define MOCK_OPENSSL_MD5_H_ #ifdef __cplusplus extern "C" { #endif #include "stddef.h" #define MD5_DIGEST_LENGTH 16 unsigned char *MD5(const unsigned char *d, size_t n, unsigned char *md); struct _IO_FILE; struct _EVP_CIPHER_CTX; struct _EVP_CIPHER; struct _ENGINE; typedef struct _IO_F...
33.47
36
(translation_unit) "#ifndef MOCK_OPENSSL_MD5_H_\n#define MOCK_OPENSSL_MD5_H_\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n#include "stddef.h"\n\n#define MD5_DIGEST_LENGTH 16\n\nunsigned char *MD5(const unsigned char *d, size_t n, unsigned char *md);\n\nstruct _IO_FILE;\nstruct _EVP_CIPHER_CTX;\nstruct _EVP_CIPHER;\ns...
307
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 33.47, "nodes": 237, "errors": 0, "source_hash": "278d2a2b5709fb44495e762a40dc4b32c24dd57304cbd3d7c2edd41be8f098ec", "categorized_nodes": 144}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,889
c
/* This file is part of Nori, a simple educational ray tracer Copyright (c) 2015 by <NAME> Nori is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License Version 3 as published by the Free Software Foundation. Nori is distributed in the hope ...
43.94
47
(translation_unit) "/*\n This file is part of Nori, a simple educational ray tracer\n\n Copyright (c) 2015 by <NAME>\n\n Nori is free software; you can redistribute it and/or modify\n it under the terms of the GNU General Public License Version 3\n as published by the Free Software Foundation.\n\n Nor...
274
17
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 43.94, "nodes": 145, "errors": 0, "source_hash": "99250d7cc6e89793ec557379726f59a99da3b3f23b5f41660ae298d4ad7d47d1", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defin...
8,890
c
#include "PX_Object_Widget.h" px_void PX_Object_WidgetFree(PX_Object *pObject) { PX_Object_Widget *pWidget=PX_Object_GetWidget(pObject); if (pWidget) { PX_ObjectDelete(pWidget->root); PX_TextureFree(&pWidget->renderTarget); } } px_void PX_Object_WidgetLinkChild(PX_Object *parent,PX_Object *child) { PX_Obje...
27.86
308
(translation_unit) "#include "PX_Object_Widget.h"\n\n\npx_void PX_Object_WidgetFree(PX_Object *pObject)\n{\n PX_Object_Widget *pWidget=PX_Object_GetWidget(pObject);\n if (pWidget)\n {\n PX_ObjectDelete(pWidget->root);\n PX_TextureFree(&pWidget->renderTarget);\n }\n}\n\npx_void PX_Object_WidgetLinkChild(PX_Object *pa...
2,701
0
{"language": "c", "success": true, "metadata": {"lines": 308, "avg_line_length": 27.86, "nodes": 1675, "errors": 0, "source_hash": "0d69f46626243101d7175e97878d961967dd9068e956d5ee356d7a5148b30aea", "categorized_nodes": 1291}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
8,891
c
/* * BMKLocationViewDisplayParam.h * BMapKit * * Copyright 2013 Baidu Inc. All rights reserved. * */ #import <UIKit/UIKit.h> #import <Foundation/Foundation.h> ///此类表示定位图层自定义样式参数 @interface BMKLocationViewDisplayParam : NSObject ///定位图标X轴偏移量(屏幕坐标) @property (nonatomic, assign) CGFloat locationViewOffsetX; //...
28.93
27
(translation_unit) "/*\n * BMKLocationViewDisplayParam.h\n * BMapKit\n *\n * Copyright 2013 Baidu Inc. All rights reserved.\n *\n */\n#import <UIKit/UIKit.h>\n#import <Foundation/Foundation.h>\n\n\n///此类表示定位图层自定义样式参数\n@interface BMKLocationViewDisplayParam : NSObject\n\n///定位图标X轴偏移量(屏幕坐标)\n@property (nonatomic, assi...
141
30
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 28.93, "nodes": 102, "errors": 0, "source_hash": "89279e61108ca0085586b7314c099e503752178a6a4fe61b6d54fa4ea443e492", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
8,892
c
#include <stdint.h> #include <string.h> #include "atags.h" #define printk(...) static struct atag_info_t atag_info; void atags_dump(uint32_t *atags) { uint32_t size, count; int32_t length; uint32_t *tags = atags; char *cmdline; printk("Dumping ATAGs provied by bootloader:\n"); while (1) ...
27.08
213
(translation_unit) "#include <stdint.h>\n#include <string.h>\n\n#include "atags.h"\n\n#define printk(...) \n\nstatic struct atag_info_t atag_info;\n\nvoid atags_dump(uint32_t *atags)\n{\n uint32_t size, count;\n int32_t length;\n uint32_t *tags = atags;\n char *cmdline;\n\n printk("Dumping ATAGs provied ...
1,362
0
{"language": "c", "success": true, "metadata": {"lines": 213, "avg_line_length": 27.08, "nodes": 793, "errors": 0, "source_hash": "65019ce9d1e19610ad2497a08cef6e94b66bed18f5ca39ebaa60420138c3ac56", "categorized_nodes": 543}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,893
c
/** @file */ #ifndef __CCL_HALOPROFILE_H_INCLUDED__ #define __CCL_HALOPROFILE_H_INCLUDED__ CCL_BEGIN_DECLS /** * Computes the normalization of the Einasto profile. * @param cosmo: cosmology object containing parameters * @param n_m: number of elements of the input and output arrays. * @param r_s: scale radius ...
33.21
33
(translation_unit) "/** @file */\n\n#ifndef __CCL_HALOPROFILE_H_INCLUDED__\n#define __CCL_HALOPROFILE_H_INCLUDED__\n\nCCL_BEGIN_DECLS\n\n\n/**\n * Computes the normalization of the Einasto profile.\n * @param cosmo: cosmology object containing parameters\n * @param n_m: number of elements of the input and output arrays...
91
1
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 33.21, "nodes": 71, "errors": 0, "source_hash": "7e9e547adfc269be5247ecde99f0eafa8d3ba3a87a52fdc18b6a380a860901d3", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,894
c
// // Created by <EMAIL> on 2019/11/7. // #ifndef MY_APPLICATION_SHADER_H #define MY_APPLICATION_SHADER_H #include "pxygl.h" #include <vector> #include <memory> namespace lark { class CLOUDLARK_PXYGL_API Shader { public: Shader(const char* name, const char* vname, const char* vertex, const char* fname, ...
24.3
37
(translation_unit) "//\n// Created by <EMAIL> on 2019/11/7.\n//\n\n#ifndef MY_APPLICATION_SHADER_H\n#define MY_APPLICATION_SHADER_H\n\n#include "pxygl.h"\n\n#include <vector>\n#include <memory>\n\nnamespace lark {\nclass CLOUDLARK_PXYGL_API Shader {\npublic:\n Shader(const char* name, const char* vname, const char* ...
255
6
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 24.3, "nodes": 155, "errors": 0, "source_hash": "c3230f2c51683fd48f25f96b342cfc3e3e0b548ff66b99cd0747ef3c062206fa", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,895
c
//////////////////////////////////////////////////////////////////////////////// // // // This software is supplied under the terms of a license agreement or // // nondisclosure agreement with Mitov Software and may not be copied ...
26.25
149
(translation_unit) "////////////////////////////////////////////////////////////////////////////////\n// //\n// This software is supplied under the terms of a license agreement or //\n// nondisclosure agreement with Mitov Software and...
601
6
{"language": "c", "success": true, "metadata": {"lines": 149, "avg_line_length": 26.25, "nodes": 290, "errors": 0, "source_hash": "b9b216e60854caf911b81fc77a7c54de6f6b72b298f21df77144f136fa2a9fae", "categorized_nodes": 232}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
8,896
c
// // OKItem.h // SShare // // Created by Natan on 12/28/15. // Copyright © 2015 Natan. All rights reserved. // #import <UIKit/UIKit.h> #import "OKPlatform.h" typedef NS_ENUM(NSInteger, OKLinkType) { OKLinkTypeWebpage, OKLinkTypeImage, OKLinkTypeAudio, OKLinkTypeVideo, }; @interface OKItem : NSOb...
26.91
22
(translation_unit) "//\n// OKItem.h\n// SShare\n//\n// Created by Natan on 12/28/15.\n// Copyright © 2015 Natan. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "OKPlatform.h"\n\ntypedef NS_ENUM(NSInteger, OKLinkType) {\n OKLinkTypeWebpage,\n OKLinkTypeImage,\n OKLinkTypeAudio,\n OKLinkType...
142
16
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 26.91, "nodes": 86, "errors": 0, "source_hash": "f348d5533bc40360ccb1a81377480edba9b0449366bc7f3667fdf309d4f1b895", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
8,897
c
/****************************************************************************** Copyright (C), 2016, Hisilicon Tech. Co., Ltd. ****************************************************************************** File Name : sample_ae_mpi.c Version : Initial Draft Author : Hisilicon multimedia soft...
27.86
92
(translation_unit) "/******************************************************************************\n\n Copyright (C), 2016, Hisilicon Tech. Co., Ltd.\n\n ******************************************************************************\n File Name : sample_ae_mpi.c\n Version : Initial Draft\n Author ...
472
2
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 27.86, "nodes": 279, "errors": 0, "source_hash": "3a5405cfb335729acf0db57a0d68c60243d76578ae453e38a101c848c3fb17b4", "categorized_nodes": 230}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
8,898
c
// Copyright (c) 2017 <NAME>. #ifndef INCLUDE_TURRET_H_ #define INCLUDE_TURRET_H_ #include "Character.h" class Turret : public Character { public: Turret(int x, int y); private: ~Turret(); void TurretMovingVelocity(); void TurretChangingDirection(); void TurretSeeingCharacter(bool *visible); ...
30.19
26
(translation_unit) "// Copyright (c) 2017 <NAME>.\n\n#ifndef INCLUDE_TURRET_H_\n#define INCLUDE_TURRET_H_\n\n#include "Character.h"\n\nclass Turret : public Character {\n public:\n Turret(int x, int y);\n\n private:\n ~Turret();\n void TurretMovingVelocity();\n void TurretChangingDirection();\n void Turr...
212
3
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 30.19, "nodes": 141, "errors": 0, "source_hash": "65bfef5493a65ab280e937749d371f15b7ef1c2c6db4ab3b6ec159da568fd9a7", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
8,899