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
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @class CLLocation, NSDictionary, NSString; @protocol IPOILocationDisplayExt <NSObject> - (void)onGetPOIDisplayName:(NSString *)arg1 ForLocation:(CLLocation *)arg2 S...
40.7
10
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n@class CLLocation, NSDictionary, NSString;\n\n@protocol IPOILocationDisplayExt <NSObject>\n- (void)onGetPOIDisplayName:(NSString *)arg1 F...
102
9
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 40.7, "nodes": 61, "errors": 0, "source_hash": "d0c0a98e3875885357bc392a3b75dbaf36e7a02eb5a149edadb158927bee343d", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
77,600
c
// // SystemHealthManager.h // SystemHealthManager // // Copyright © 2021 Apple Inc. All rights reserved. // #import <Foundation/Foundation.h> typedef NS_ENUM(uint64_t, SHComponentType) { SHComponentTypeBattery = 0, SHComponentTypeDisplay = 1, SHComponentTypeCamera = 2, SHComponentTypeWifi = 3, ...
33.08
37
(translation_unit) "//\n// SystemHealthManager.h\n// SystemHealthManager\n//\n// Copyright © 2021 Apple Inc. All rights reserved.\n//\n#import <Foundation/Foundation.h>\n\ntypedef NS_ENUM(uint64_t, SHComponentType) {\n SHComponentTypeBattery = 0,\n SHComponentTypeDisplay = 1,\n SHComponentTypeCamera = 2,\n ...
202
11
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 33.08, "nodes": 123, "errors": 0, "source_hash": "387440f01709b408f44dc7a4eae2234405576f1cfd3b093a8aa15327db925dc4", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <...
77,601
c
/*************************************************************************** * Copyright (C) by <NAME> * * * * You can redistribute and/or modify this program under the * * terms of the...
39.71
129
(translation_unit) "/***************************************************************************\n * Copyright (C) by <NAME> *\n * *\n * You can redistribute and/or modify this program under the ...
257
10
{"language": "c", "success": true, "metadata": {"lines": 129, "avg_line_length": 39.71, "nodes": 138, "errors": 0, "source_hash": "441065a0dc727326b0449de6bc3c58df546180f84a9686f250a294783b967df9", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
77,602
c
//-*- mode: c++ -*- #ifndef _BLOCK_DIAG_MATRIX_TO_STRING_H_ #define _BLOCK_DIAG_MATRIX_TO_STRING_H_ #include <string> #include <sstream> template <class el_type> std::string block_diag_matrix<el_type> :: to_string() const { std::ostringstream os; #ifdef SYM_ILDL_DEBUG os << "Block Diagonal Matrix (" << n_rows() <...
26.32
25
(translation_unit) "//-*- mode: c++ -*-\n#ifndef _BLOCK_DIAG_MATRIX_TO_STRING_H_\n#define _BLOCK_DIAG_MATRIX_TO_STRING_H_\n\n#include <string>\n#include <sstream>\n\ntemplate <class el_type>\nstd::string block_diag_matrix<el_type> :: to_string() const\n{\n std::ostringstream os;\n#ifdef SYM_ILDL_DEBUG\n os << "Block ...
254
6
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 26.32, "nodes": 153, "errors": 0, "source_hash": "6026f6b5bbc947e551819f76bc8c9b7b00ec9e85fbd1fd5af240f4c132d99fac", "categorized_nodes": 109}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
77,603
c
#pragma once #include "Libero/Math/LiberoMath.h" namespace Libero { namespace Colors { static ColorRGB Red = { 1.f, 0.f, 0.f }; static ColorRGB Blue = { 0.f, 1.f, 0.f }; static ColorRGB Green = { 0.f, 0.f, 1.f }; static ColorRGB Purple = { 48.f / 255.f, 25.f / 255.f, 52.f / 255.f }; } }
23.92
12
(translation_unit) "#pragma once\n#include "Libero/Math/LiberoMath.h"\n\nnamespace Libero\n{\n namespace Colors\n {\n static ColorRGB Red = { 1.f, 0.f, 0.f };\n static ColorRGB Blue = { 0.f, 1.f, 0.f };\n static ColorRGB Green = { 0.f, 0.f, 1.f };\n static ColorRGB Purple = { 48.f / 255.f, 25.f / 255.f, 52.f / 255....
95
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 23.92, "nodes": 57, "errors": 0, "source_hash": "5ce021c604eab8882d9701de616f1f77cceea336bd72ed5eee608a86b884f8a7", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
77,604
c
#include <stdlib.h> #include <stdio.h> void func (int num){ int x, m=0; char r = '!'; while (m<=num){ for (x=0;x<m;x++){ printf("%c", r); } printf ("\n"); m++; } } int main (){ int num; printf("Digite um numero inteiro positivo: "); scanf ("%d", &num); func (num); return 0; }
13.19
21
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n\n\nvoid func (int num){\n int x, m=0;\n char r = '!';\n while (m<=num){\n for (x=0;x<m;x++){\n printf("%c", r);\n }\n printf ("\n");\n m++;\n }\n}\nint main (){\n int num;\n printf("Digite um numero inteiro positivo: ");\n scanf ("%d", &num);\n func (n...
152
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 13.19, "nodes": 85, "errors": 0, "source_hash": "888a8aa1f592b2582cdcf9276aca8a19f6c4ba4db06ed5d772f1e54e9e7346ca", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
77,605
c
// // EventsListViewController.h // SeoulMate // // Created by <NAME> on 7/14/15. // // #import "EventHeaderView.h" @interface EventsListViewController : PFQueryTableViewController<EventHeaderViewDelegate> - (EventHeaderView *)dequeueReusableSectionHeaderView; @end
21.5
12
(translation_unit) "//\n// EventsListViewController.h\n// SeoulMate\n//\n// Created by <NAME> on 7/14/15.\n//\n//\n\n#import "EventHeaderView.h"\n\n\n@interface EventsListViewController : PFQueryTableViewController<EventHeaderViewDelegate>\n\n- (EventHeaderView *)dequeueReusableSectionHeaderView;\n\n@end" (comment...
38
5
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 21.5, "nodes": 22, "errors": 0, "source_hash": "1a16198e08188a18d5417a3d32cf01e668bec9b86f92c42f24ef52ceb89208e4", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"E...
77,606
c
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. X( TextureNode, "TextureNode" ) X( AddNode, "AddNode" ) X( SubtractNode, "SubtractNode" ) X( MultiplyNode, "MultiplyNode" ) X( DivideNode, "DivideNode" ) X( VertexColorNode, "VertexColorNode" ) X( SwizzlingNode, "SwizzlingNode" ) X( Interpolate...
30.76
29
(translation_unit) "// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nX( TextureNode, "TextureNode" )\nX( AddNode, "AddNode" )\nX( SubtractNode, "SubtractNode" )\nX( MultiplyNode, "MultiplyNode" )\nX( DivideNode, "DivideNode" )\nX( VertexColorNode, "VertexColorNode" )\nX( SwizzlingNode, "Sw...
354
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 30.76, "nodes": 135, "errors": 0, "source_hash": "647ddbddc67ec473ecf2eabe2569007557a22b97a85d5cb9054c4238c7b6552f", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "call_expression", "text": "X( T...
77,607
c
#ifndef MPLAYER_ELFDLL_H #define MPLAYER_ELFDLL_H #include "module.h" #include "windef.h" WINE_MODREF *ELFDLL_LoadLibraryExA(LPCSTR libname, DWORD flags); HINSTANCE16 ELFDLL_LoadModule16(LPCSTR libname); void ELFDLL_UnloadLibrary(WINE_MODREF *wm); void *ELFDLL_dlopen(const char *libname, int flags); #endif /* MPLAY...
35.78
9
(translation_unit) "#ifndef MPLAYER_ELFDLL_H\n#define MPLAYER_ELFDLL_H\n\n#include "module.h"\n#include "windef.h"\n\nWINE_MODREF *ELFDLL_LoadLibraryExA(LPCSTR libname, DWORD flags);\nHINSTANCE16 ELFDLL_LoadModule16(LPCSTR libname);\nvoid ELFDLL_UnloadLibrary(WINE_MODREF *wm);\n\nvoid *ELFDLL_dlopen(const char *libname...
83
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 35.78, "nodes": 59, "errors": 0, "source_hash": "5e56cb63556a0d555dd250cbf279971e227606afb7ce42e658adeca0d518dae5", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef M...
77,608
c
/******************************************************************************* * Copyright 2021 Intel Corporation * * Licensed under the BSD-2-Clause Plus Patent License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource...
36.94
95
(translation_unit) "/*******************************************************************************\n* Copyright 2021 Intel Corporation\n*\n* Licensed under the BSD-2-Clause Plus Patent License (the "License");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License ...
634
20
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 36.94, "nodes": 370, "errors": 0, "source_hash": "16beced95c4bb96b1b5305c2ee51966b9000f3de9f47f1098fd44cb89c61d47c", "categorized_nodes": 258}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
77,609
c
#include <glib.h> #include <stdio.h> int main(int argc, char *argv[]) { GIOChannel *in_channel = NULL, *out_channel = NULL; gchar buf[100] = {}; gsize bytes_read, bytes_written; GError *error = NULL; if (argc != 3) { g_print("usage:<cp SOURCE> <DESTINATION>\n"); g_print("Press any key to exit\n"); getchar(...
25.39
62
(translation_unit) "#include <glib.h>\n#include <stdio.h>\n\nint main(int argc, char *argv[]) {\n GIOChannel *in_channel = NULL, *out_channel = NULL;\n gchar buf[100] = {};\n gsize bytes_read, bytes_written;\n GError *error = NULL;\n\n if (argc != 3) {\n g_print("usage:<cp SOURCE> <DESTINATION>\n");\n g_print("Press ...
568
0
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 25.39, "nodes": 276, "errors": 0, "source_hash": "98cc6ddd99f8448b271b7803a5fce9ecaa2cd1723c7032b03c4df6e460752e8f", "categorized_nodes": 194}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
77,610
c
// // File.h // Dissert // // Created by <NAME> on 15/05/12. // Copyright (c) 2012 ss42. All rights reserved. // #ifndef MY_FILE_H_ #define MY_FILE_H_ #include <platform.h> class File extends Object { public: File(); File(String filename); ~File(); const String GetFullname() const; void ...
16.65
31
(translation_unit) "//\n// File.h\n// Dissert\n//\n// Created by <NAME> on 15/05/12.\n// Copyright (c) 2012 ss42. All rights reserved.\n//\n\n#ifndef MY_FILE_H_\n#define MY_FILE_H_\n\n#include <platform.h>\n\nclass File\nextends Object\n{\npublic:\n File();\n File(String filename);\n ~File();\n \n co...
131
4
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 16.65, "nodes": 71, "errors": 0, "source_hash": "46f897dd9f2a41811d7f035133e799adbb01c16e9355ce31ead75f20c07ffa80", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
77,611
c
// // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 <NAME>. // #import "VariantDescriptor.h" @interface _UniversalVariantDescriptor : VariantDescriptor { } - (id)description; // IMP=0x00000001000c04dc - (id)product...
31.53
15
(translation_unit) "//\n// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20).\n//\n// Copyright (C) 1997-2019 <NAME>.\n//\n\n#import "VariantDescriptor.h"\n\n@interface _UniversalVariantDescriptor : VariantDescriptor\n{\n}\n\n- (id)description; // IMP=...
80
5
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 31.53, "nodes": 42, "errors": 0, "source_hash": "26e023a30ffb6404691115cf119e0764dfe8a2b06f7f26ba98bb17fd54a5bdf7", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
77,612
c
// // main.c // Project2 // // Created by <NAME> on 6/23/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #include <sys/shm.h> #include <sys/msg.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> /* For the message struct */ #include "msg.h" /* The size of the shared memor...
29.15
120
(translation_unit) "//\n// main.c\n// Project2\n//\n// Created by <NAME> on 6/23/14.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n\n#include <sys/shm.h>\n#include <sys/msg.h>\n#include <string.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <unistd.h>\n\n/* For the message struct */\n#include "msg...
757
0
{"language": "c", "success": true, "metadata": {"lines": 120, "avg_line_length": 29.15, "nodes": 404, "errors": 0, "source_hash": "11b628aebdae9875b2347f9df8e7a49fbc8d9ced65d3deb73da4746f16cc503d", "categorized_nodes": 290}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
77,613
c
/*! * \file * \brief Rs4854 Click example * * # Description * This example reads and processes data from RS485 4 clicks. * * The demo application is composed of two sections : * * ## Application Init * Initializes driver. * * ## Application Task * Reads the received data. * * ## Additional Functi...
26.99
97
(translation_unit) "/*!\n * \file \n * \brief Rs4854 Click example\n * \n * # Description\n * This example reads and processes data from RS485 4 clicks.\n *\n * The demo application is composed of two sections :\n * \n * ## Application Init \n * Initializes driver.\n * \n * ## Application Task \n * Reads the received ...
444
0
{"language": "c", "success": true, "metadata": {"lines": 97, "avg_line_length": 26.99, "nodes": 240, "errors": 0, "source_hash": "937b7fa2111184f2cc5151388ce351ac77381a8e66edd5e0676efe97a7b115f2", "categorized_nodes": 180}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
77,614
c
// // CustomTableViewCell.h // MVVMDemo // // Created by DevMan7 on 17/6/28. // Copyright (c) 2017年 apple. All rights reserved. // #import <UIKit/UIKit.h> @interface CustomTableViewCell : UITableViewCell @property(nonatomic,strong) UILabel *titleLabel; @end
22.82
11
(translation_unit) "//\n// CustomTableViewCell.h\n// MVVMDemo\n//\n// Created by DevMan7 on 17/6/28.\n// Copyright (c) 2017年 apple. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface CustomTableViewCell : UITableViewCell\n@property(nonatomic,strong) UILabel *titleLabel;\n@end\n" (comment) "//" (c...
36
6
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 22.82, "nodes": 23, "errors": 0, "source_hash": "a769b10b07bbbbb7d227420e97283850bf684b2a1fa6358ce21a5bcd6322f1d4", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <UI...
77,615
c
/* * gpio.h * * Created on: 2 maj 2016 * Author: Szymon */ #ifndef GPIO_H_ #define GPIO_H_ #include "stm32f0xx.h" /* LED port/pin */ #define LED_GREEN_PORT GPIOA #define LED_GREEN_PIN GPIO_Pin_5 #define LED_GREEN_PIN_SOURCE GPIO_PinSource5 /* button port/pin */ #define BUTTON_PORT GPIOC #define ...
28.35
55
(translation_unit) "/*\n * gpio.h\n *\n * Created on: 2 maj 2016\n * Author: Szymon\n */\n\n#ifndef GPIO_H_\n#define GPIO_H_\n\n#include "stm32f0xx.h"\n\n/* LED port/pin */\n#define LED_GREEN_PORT GPIOA\n#define LED_GREEN_PIN GPIO_Pin_5\n#define LED_GREEN_PIN_SOURCE GPIO_PinSource5\n\n/* button port/pin */\...
190
0
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 28.35, "nodes": 177, "errors": 0, "source_hash": "e6c78038d2a21e83b98be167ad4ca8509f36bec94bf6fe7ae8a7ce1a5ec1aab5", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
77,616
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import <objc/NSObject.h> @class NSURL; @interface FBAdImage : NSObject { NSURL *_url; long long _width; long long _height; ...
35.73
26
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.\n//\n\n#import <objc/NSObject.h>\n\n@class NSURL;\n\n@interface FBAdImage : NSObject\n{\n NSURL *_url;\n long long _...
253
24
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 35.73, "nodes": 159, "errors": 0, "source_hash": "7f6621221f41b02b536c88c61667cf6f2eaa3b9120be446d4c5bbb022b5f79e7", "categorized_nodes": 96}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
77,617
c
#ifndef _XT_TCPMSS_H #define _XT_TCPMSS_H struct xt_tcpmss_info { u_int16_t mss; }; #define XT_TCPMSS_CLAMP_PMTU 0xffff #endif /* _XT_TCPMSS_H */
20
7
(translation_unit) "#ifndef _XT_TCPMSS_H\n#define _XT_TCPMSS_H\n\nstruct xt_tcpmss_info {\n u_int16_t mss;\n};\n\n#define XT_TCPMSS_CLAMP_PMTU 0xffff\n\n#endif /* _XT_TCPMSS_H */\n" (preproc_ifdef) "#ifndef _XT_TCPMSS_H\n#define _XT_TCPMSS_H\n\nstruct xt_tcpmss_info {\n u_int16_t mss;\n};\n\n#define XT_TCPMSS_CLAMP_P...
24
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 20.0, "nodes": 17, "errors": 0, "source_hash": "7add5e466fb8fbc4be6ddf65829a072f92f3c5d4377bdd1ec58ff3fc65f2ea10", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _X...
77,618
c
/* FILE: chanwrap.h -*-Mode: c++-*- * * C++ wrappers for Tcl channels. These wrappers are exception safe, * and also provide low-overhead, buffered byte-at-a-time access to * the channels. Support is only for strictly read-only or write-only * channels. Also, once a channel is attached to one of...
30.81
139
(translation_unit) "/* FILE: chanwrap.h -*-Mode: c++-*-\n *\n * C++ wrappers for Tcl channels. These wrappers are exception safe,\n * and also provide low-overhead, buffered byte-at-a-time access to\n * the channels. Support is only for strictly read-only or write-only\n * channels. Also, once a chan...
981
14
{"language": "c", "success": true, "metadata": {"lines": 139, "avg_line_length": 30.81, "nodes": 568, "errors": 0, "source_hash": "951906276b3f82e80691da8bca4bc0886e94a4b57689a54f0b2627d6a04bae48", "categorized_nodes": 379}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
77,619
c
// // YHLeftDrawerController.h // 左侧菜单栏抽屉效果 // // Created by junde on 2017/1/11. // Copyright © 2017年 junde. All rights reserved. // #import <UIKit/UIKit.h> #import "UIView_extra.h" @interface YHLeftDrawerController : UIViewController //滑动速度系数-建议在0.5-1之间。默认为0.5 @property (nonatomic, assign) CGFloat speedf; //...
21.92
49
(translation_unit) "//\n// YHLeftDrawerController.h\n// 左侧菜单栏抽屉效果\n//\n// Created by junde on 2017/1/11.\n// Copyright © 2017年 junde. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "UIView_extra.h"\n\n\n@interface YHLeftDrawerController : UIViewController\n\n\n//滑动速度系数-建议在0.5-1之间。默认为0.5\n@property (no...
191
34
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 21.92, "nodes": 127, "errors": 0, "source_hash": "f6b0d994b2ce977e8c8e0f2977742c4bb2ea66ee08a91b31b30ec5d4996ac47e", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "h>\n#imp...
77,620
c
// Copyright (c) 2018, Smart Projects Holdings Ltd // All rights reserved. // See LICENSE file for license details. /** * @file panorama_action.h */ #ifndef _UGCS_VSM_PANORAMA_ACTION_H_ #define _UGCS_VSM_PANORAMA_ACTION_H_ #include <ugcs/vsm/action.h> #include <ugcs/vsm/mavlink.h> #include <chrono> namespace ugcs ...
34.19
70
(translation_unit) "// Copyright (c) 2018, Smart Projects Holdings Ltd\n// All rights reserved.\n// See LICENSE file for license details.\n\n/**\n * @file panorama_action.h\n */\n#ifndef _UGCS_VSM_PANORAMA_ACTION_H_\n#define _UGCS_VSM_PANORAMA_ACTION_H_\n\n#include <ugcs/vsm/action.h>\n#include <ugcs/vsm/mavlink.h>\n#i...
420
22
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 34.19, "nodes": 231, "errors": 0, "source_hash": "222d59111316a64a818658efd6aa262c818f9ba8a336d938d6208224599a4404", "categorized_nodes": 172}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
77,621
c
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. // // File: export.h // // // Popular types/macros defined in MetaData directory (no subdirectories). // It's sup...
38.93
15
(translation_unit) "// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n// See the LICENSE file in the project root for more information.\n// \n// File: export.h\n// \n\n// \n// Popular types/macros defined in MetaData directory (no ...
33
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 38.93, "nodes": 12, "errors": 0, "source_hash": "54299652aa1995986d92a4bb2fcba7792a72a34c3bbad4dda7e7cb0af9d1a98b", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
77,622
c
/*========================================================================= Library: TubeTKLib Copyright Kitware Inc. 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 ...
45.44
77
(translation_unit) "/*=========================================================================\n\nLibrary: TubeTKLib\n\nCopyright Kitware Inc.\n\nAll rights reserved.\n\nLicensed under the Apache License, Version 2.0 ( the "License" );\nyou may not use this file except in compliance with the License.\nYou may obtain...
473
29
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 45.44, "nodes": 305, "errors": 0, "source_hash": "2f42a9aa8fccbf37749c0af419cfe933bf005c06f3235dc16d04b8d4fb29afb2", "categorized_nodes": 212}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
77,623
c
#ifndef MAIN_H #define MAIN_H using namespace std; void init(); void deinit(); void increment_speed_counter(); int getFPS(); void setGamestate(GAMESTATE newState); GAMESTATE getGamestate(); int scrShowMenu(); int game(); #endif
18
12
(translation_unit) "#ifndef MAIN_H\n#define MAIN_H\n\nusing namespace std;\n\nvoid init();\nvoid deinit();\nvoid increment_speed_counter();\nint getFPS();\nvoid setGamestate(GAMESTATE newState);\nGAMESTATE getGamestate();\n\nint scrShowMenu();\nint game();\n\n#endif\n" (preproc_ifdef) "#ifndef MAIN_H\n#define MAIN_H\...
81
1
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 18.0, "nodes": 55, "errors": 0, "source_hash": "716adfee7b7b13ad2b2c0bc072d01fec7a7795c2776f36edf60e4ca623429122", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef M...
77,624
c
#pragma once #include <stdint.h> #include "DisplayMode.h" #define RIDCP_BUFFER_LEN 80 #define RIDCP_MAX_IDS 12 enum RIDisplayCommand { None, Power, VoltageAndCurrent, MaxGraphPower, Timer, Countdown, Winner, Clear, String, Text, TextControl, SetID, DumpCon...
22.53
57
(translation_unit) "#pragma once\n\n#include <stdint.h>\n#include "DisplayMode.h"\n\n#define RIDCP_BUFFER_LEN 80\n#define RIDCP_MAX_IDS 12\n\nenum RIDisplayCommand {\n None,\n Power,\n VoltageAndCurrent,\n MaxGraphPower,\n Timer,\n Countdown,\n Winner,\n Clear,\n String,\n Text,\n...
351
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 22.53, "nodes": 228, "errors": 0, "source_hash": "b3c44f5eda668f070521992b17ead9634b3d8ffaef1037248d89dc079e5b5fed", "categorized_nodes": 151}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
77,625
c
#ifndef TERRAIN_CONTROL_H #define TERRAIN_CONTROL_H #include "../controls/entity_control.h" #include "../math/vector2.h" #include "../math/vector3.h" #include "terrain_chunk.h" #include <queue> #include <memory> #define TERRAIN_CHUNK_VERTEX_SIZE 16 #define TERRAIN_MAX_QUEUE_TICK 0.2 #define TERRAIN_MAX_UPDATE_TICK 0...
29.55
47
(translation_unit) "#ifndef TERRAIN_CONTROL_H\n#define TERRAIN_CONTROL_H\n\n#include "../controls/entity_control.h"\n#include "../math/vector2.h"\n#include "../math/vector3.h"\n#include "terrain_chunk.h"\n\n#include <queue>\n#include <memory>\n\n#define TERRAIN_CHUNK_VERTEX_SIZE 16\n#define TERRAIN_MAX_QUEUE_TICK 0.2\n...
366
20
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 29.55, "nodes": 254, "errors": 0, "source_hash": "5d206b7aefae115def6c4f208063d618b34a8ab59766a8aa6c78a2d83e138621", "categorized_nodes": 165}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
77,626
c
#import <Foundation/Foundation.h> #import "GHHasLocationProtocol.h" @interface GHComment : NSObject <GHHasLocationProtocol> @property (nonatomic, readonly) GHLocation * location; @property (nonatomic, readonly) NSString * text; - (id)initWithLocation:(GHLocation *)theLocation text:(NSString *)theText; @end
43.71
7
(translation_unit) "mport <Foundation/Foundation.h>\n#import "GHHasLocationProtocol.h"\n\n@interface GHComment : NSObject <GHHasLocationProtocol>\n\n@property (nonatomic, readonly) GHLocation * location;\n@property (nonatomic, readonly) NSString * text;\n\n- (id)initWithLocation:(GHLocation *)theLocation text:(NSSt...
83
13
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 43.71, "nodes": 60, "errors": 0, "source_hash": "c7572bbeac503616229803cab2549c3d04bcc72e716a82ee0ab77cc5fff1c709", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <Fou...
77,627
c
#ifndef _LPMS_EXTRAS_H_ #define _LPMS_EXTRAS_H_ int lpms_rtmp2hls(char *listen, char *outf, char *ts_tmpl, char *seg_time, char *seg_start); int lpms_is_bypass_needed(char *fname); #endif // _LPMS_EXTRAS_H_
40.4
5
(translation_unit) "#ifndef _LPMS_EXTRAS_H_\n#define _LPMS_EXTRAS_H_\n\nint lpms_rtmp2hls(char *listen, char *outf, char *ts_tmpl, char *seg_time, char *seg_start);\nint lpms_is_bypass_needed(char *fname);\n\n#endif // _LPMS_EXTRAS_H_\n" (preproc_ifdef) "#ifndef _LPMS_EXTRAS_H_\n#define _LPMS_EXTRAS_H_\n\nint lpms_rt...
59
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 40.4, "nodes": 47, "errors": 0, "source_hash": "672c42c005ce2cdf323a7cd2d38978b539a5d3065b999e501c0b2e81b6f2fc3e", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _L...
77,628
c
// -*- C++ -*- // Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library 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 ve...
32.46
110
(translation_unit) "// -*- C++ -*-\n\n// Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.\n//\n// This file is part of the GNU ISO C++ Library. This library is free\n// software; you can redistribute it and/or modify it under the terms\n// of the GNU General Public License as published by the Free Softwar...
245
2
{"language": "c", "success": true, "metadata": {"lines": 110, "avg_line_length": 32.46, "nodes": 135, "errors": 0, "source_hash": "0b3ec8821302e6c0374accf37316f9389892ff393ca8e7a2cf9a4bd7fabbcfb0", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
77,629
c
extern int v3p_netlib_ztrevc_( char *side, char *howmny, v3p_netlib_logical *select, v3p_netlib_integer *n, v3p_netlib_doublecomplex *t, v3p_netlib_integer *ldt, v3p_netlib_doublecomplex *vl, v3p_netlib_integer *ldvl, v3p_netlib_doublecomplex *vr, v3p_netlib_integer *ldvr, v3p_netlib_integer *mm, ...
25.58
19
(translation_unit) "extern int v3p_netlib_ztrevc_(\n char *side,\n char *howmny,\n v3p_netlib_logical *select,\n v3p_netlib_integer *n,\n v3p_netlib_doublecomplex *t,\n v3p_netlib_integer *ldt,\n v3p_netlib_doublecomplex *vl,\n v3p_netlib_integer *ldvl,\n v3p_netlib_doublecomplex *vr,\n v3p_netlib_integer *ld...
108
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 25.58, "nodes": 88, "errors": 0, "source_hash": "97baab8155741c74a025cf5f18c090e0c3aa64e199b17a10c5ec48c4418eda14", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern int...
77,630
c
#ifndef VECTOR_H #define VECTOR_H #include<initializer_list> #include<cstddef> template <class T> class Vector { public: Vector(); ~Vector(); Vector(int counter, const T& elem); Vector(std::initializer_list<T> a); Vector<T>(const Vector<T>& other); Vector<T>& operator=(const ...
23.46
70
(translation_unit) "#ifndef VECTOR_H\n#define VECTOR_H\n\n#include<initializer_list>\n#include<cstddef>\n\ntemplate <class T>\nclass Vector {\npublic:\n Vector(); \n ~Vector(); \n Vector(int counter, const T& elem); \n Vector(std::initializer_list<T> a); \n Vector<T>(const Vector<T>& other); ...
680
43
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 23.46, "nodes": 406, "errors": 0, "source_hash": "14002ed085005744b69077db60a0ca0a844b23ee0e6d2fdc67d81bdc78a39f77", "categorized_nodes": 251}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
77,631
c
#pragma once class NamedPipeTransfer { public: NamedPipeTransfer(); ~NamedPipeTransfer(); void open(); void close(); void transactMessage(char *output, int outputSize, const char *input); private: void openPipe(); void closePipe(); HANDLE pipe = nullptr; HANDLE waitForDataEvent = nullptr; };
20.57
14
(translation_unit) "#pragma once\n\nclass NamedPipeTransfer {\npublic:\n NamedPipeTransfer();\n ~NamedPipeTransfer();\n void open();\n void close();\n void transactMessage(char *output, int outputSize, const char *input);\nprivate:\n void openPipe();\n void closePipe();\n HANDLE pipe = nullptr;\n HANDLE waitForDataEven...
107
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 20.57, "nodes": 67, "errors": 0, "source_hash": "3fdec607fb3a848d925c775fea42806e5c601135e22ce84b29c809a5f2faa2e2", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
77,632
c
#ifndef H_RPMDBE_JS #define H_RPMDBE_JS /** * \file js/rpmdbe-js.h */ #include "rpm-js.h" extern JSClass rpmdbeClass; #define OBJ_IS_RPMDBE(_cx, _o) (JS_GET_CLASS(_cx, _o) == &rpmdbeClass) #ifdef __cplusplus extern "C" { #endif extern JSObject * rpmjs_InitDbeClass(JSContext *cx, JSObject* obj); extern JSObject ...
20.58
19
(translation_unit) "#ifndef H_RPMDBE_JS\n#define H_RPMDBE_JS\n\n/**\n * \file js/rpmdbe-js.h\n */\n\n#include "rpm-js.h"\n\nextern JSClass rpmdbeClass;\n#define OBJ_IS_RPMDBE(_cx, _o) (JS_GET_CLASS(_cx, _o) == &rpmdbeClass)\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\nextern JSObject *\nrpmjs_InitDbeClass(JSContext *...
91
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 20.58, "nodes": 68, "errors": 0, "source_hash": "9f9f0936c4e58be6346ad98f2ef603d5d6f32f6795e350cbe43979ec0b16c3d4", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
77,633
c
#pragma once #include "compute/operation.h" #include "tensor/tensor.h" #include "utilities_internal.h" #include "compute/crossentropy/crossentropy_internal.h" namespace magmadnn { namespace op { template <typename T> class CrossEntropyOp : public Operation<T> { public: CrossEntropyOp(Operation<T> *x, Operation<T> ...
35.6
25
(translation_unit) "#pragma once\n\n#include "compute/operation.h"\n#include "tensor/tensor.h"\n#include "utilities_internal.h"\n#include "compute/crossentropy/crossentropy_internal.h"\n\nnamespace magmadnn {\nnamespace op {\n\ntemplate <typename T>\nclass CrossEntropyOp : public Operation<T> {\npublic:\n CrossEntropyO...
338
9
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 35.6, "nodes": 241, "errors": 0, "source_hash": "c3d37053e0ffdc4b6cc75a6816dd8cbf9abf32566780cfe8233ca26bdd11df21", "categorized_nodes": 157}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
77,634
c
/* * File.h * * Created on: Apr 23, 2010 * Author: <NAME> <<EMAIL>> */ /* * Copyright 2010 Howard Hughes Medical Institute. * All rights reserved. * Use is subject to Janelia Farm Research Campus Software Copyright 1.1 * license terms (http://license.janelia.org/license/jfrc_copyright_1_1.html). */ #pra...
32.12
116
(translation_unit) "/*\n * File.h\n *\n * Created on: Apr 23, 2010\n * Author: <NAME> <<EMAIL>>\n */\n/*\n * Copyright 2010 Howard Hughes Medical Institute.\n * All rights reserved.\n * Use is subject to Janelia Farm Research Campus Software Copyright 1.1\n * license terms (http://license.janelia.org/license/jfrc...
810
27
{"language": "c", "success": true, "metadata": {"lines": 116, "avg_line_length": 32.12, "nodes": 544, "errors": 0, "source_hash": "26ec3fee00d73d6bac20b68f060c18c49eae08c27f054f8b40bdf707374bbcbb", "categorized_nodes": 325}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
77,635
c
#include "port_io.h" void render_1bit_image(unsigned char *screen, unsigned char *image, int width, int height, int x, int y, unsigned char color); unsigned char font[] = { 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1, ...
23.32
214
(translation_unit) "#include "port_io.h"\n\nvoid render_1bit_image(unsigned char *screen, unsigned char *image, int width, int height, int x, int y, unsigned char color);\n\nunsigned char font[] = {\n\n 0, 1, 1, 0,\n 1, 0, 0, 1,\n 1, 0, 0, 1,\n 1, 0, 0, 1,\n 0, 1, 1, 0,\n\n\n 0, 1, 1, 0,\n 0, 0, 1, 0,\n 0, 0, 1...
1,821
0
{"language": "c", "success": true, "metadata": {"lines": 214, "avg_line_length": 23.32, "nodes": 1137, "errors": 0, "source_hash": "8712dd752c55c7899423c76bf39542c23eb67c5f6399ccc9c02343915eadaed8", "categorized_nodes": 851}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
77,636
c
/* smplayer, GUI front-end for mplayer. Copyright (C) 2006-2010 <NAME> <<EMAIL>> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at ...
39.79
43
(translation_unit) "/* smplayer, GUI front-end for mplayer.\n Copyright (C) 2006-2010 <NAME> <<EMAIL>>\n\n This library is free software; you can redistribute it and/or\n modify it under the terms of the GNU Lesser General Public\n License as published by the Free Software Foundation; either\n version 2...
202
11
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 39.79, "nodes": 133, "errors": 0, "source_hash": "7135796a96d1193eec084256978eb5887d20f0751d2a63e4485eb20f433f0067", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
77,637
c
#include <std.h> #include <daemons.h> inherit FEAT; void create() { ::create(); feat_type("permanent"); feat_category("Psionics"); feat_name("combat manifester"); feat_prereq("Psion or Psywarrior"); feat_desc("The Combat Manifester feat will allow a psionic character who could not otherwise ma...
25.07
45
(translation_unit) "#include <std.h>\n#include <daemons.h>\n\ninherit FEAT;\n\nvoid create() {\n ::create();\n feat_type("permanent");\n feat_category("Psionics");\n feat_name("combat manifester");\n feat_prereq("Psion or Psywarrior");\n feat_desc("The Combat Manifester feat will allow a psionic chara...
336
6
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 25.07, "nodes": 156, "errors": 0, "source_hash": "2e96cdc900cca93a97e35c2b52b3105f92141c5fbb559db9562b9ce84298dd10", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
77,638
c
/* * delInterIntSet.h * * Created on: 01.02.2019 * Author: dh */ #ifndef INTDATASTRUCTURES_DELITERINTSET_H_ #define INTDATASTRUCTURES_DELITERINTSET_H_ namespace progression { struct llInt { bool isFirst = false; bool isLast = false; int value; llInt* prev; llInt* next; }; /* * Enables the following...
21.36
50
(translation_unit) "/*\n * delInterIntSet.h\n *\n * Created on: 01.02.2019\n * Author: dh\n */\n\n#ifndef INTDATASTRUCTURES_DELITERINTSET_H_\n#define INTDATASTRUCTURES_DELITERINTSET_H_\n\nnamespace progression {\n\nstruct llInt {\n bool isFirst = false;\n bool isLast = false;\n int value;\n llInt* prev;\n llInt* ...
228
3
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 21.36, "nodes": 160, "errors": 0, "source_hash": "af5359d1f0cebe2d66198771d5fe33490a268ca6741b34fe03ec0cbc271538c8", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
77,639
c
// // FMBrightnessView.h // 05_DIYUI // // Created by Windy on 2017/7/21. // Copyright © 2017年 Windy. All rights reserved. // #import <UIKit/UIKit.h> @interface FMBrightnessView : UIView /** 调用单例记录播放状态是否锁定屏幕方向*/ @property (nonatomic, assign) BOOL isLockScreen; /** 是否允许横屏,来控制只有竖屏的状态*/ @property (nonatomic, as...
27.78
18
(translation_unit) "//\n// FMBrightnessView.h\n// 05_DIYUI\n//\n// Created by Windy on 2017/7/21.\n// Copyright © 2017年 Windy. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface FMBrightnessView : UIView\n\n/** 调用单例记录播放状态是否锁定屏幕方向*/\n@property (nonatomic, assign) BOOL isLockScreen;\n/** 是否允许横屏,来控制...
94
20
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 27.78, "nodes": 63, "errors": 0, "source_hash": "d56c88a0afdaef0bb74492fa392ba3490585d2df72b085a3b2c482ef87e2c988", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
77,640
c
// // JMStateMachine.h // // Copyright © 2021 Jumio Corporation. All rights reserved. // #import <Foundation/Foundation.h> @class JMState; @class JMBaseState; @class JMStateTransition; @class JMStateTransitionEvent; __attribute__((visibility("default"))) @interface JMStateMachine : NSObject @property (nonatomic, ...
35.97
29
(translation_unit) "//\n// JMStateMachine.h\n//\n// Copyright © 2021 Jumio Corporation. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@class JMState;\n@class JMBaseState;\n@class JMStateTransition;\n@class JMStateTransitionEvent;\n\n__attribute__((visibility("default"))) @interface JMStateMachine :...
304
53
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 35.97, "nodes": 190, "errors": 0, "source_hash": "a5aee0a945fa82dae358c5f7fa2a67ec651f8830241b11d87149f55f786c404f", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import ...
77,641
c
/** * Licensed to Green Energy Corp (www.greenenergycorp.com) under one or * more contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright ownership. * Green Energy Corp licenses this file to you under the Apache License, * Version 2.0 (the "Li...
35.8
76
(translation_unit) "/**\n * Licensed to Green Energy Corp (www.greenenergycorp.com) under one or\n * more contributor license agreements. See the NOTICE file distributed\n * with this work for additional information regarding copyright ownership.\n * Green Energy Corp licenses this file to you under the Apache License,...
395
19
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 35.8, "nodes": 230, "errors": 0, "source_hash": "94518f8858ffab16b625aeb6ff754369f38eec02fd7ba9a7e80e997854f7c098", "categorized_nodes": 162}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
77,642
c
// license:BSD-3-Clause // copyright-holders:<NAME> /* * * Sharp X1 TAP image format * */ #ifndef X1_TAP_H_ #define X1_TAP_H_ #include "cassimg.h" CASSETTE_FORMATLIST_EXTERN( x1_cassette_formats ); #endif /*X1_TAP_H_*/
17.75
12
(translation_unit) "// license:BSD-3-Clause\n// copyright-holders:<NAME>\n/*\n *\n * Sharp X1 TAP image format\n *\n */\n\n#ifndef X1_TAP_H_\n#define X1_TAP_H_\n\n#include "cassimg.h"\n\nCASSETTE_FORMATLIST_EXTERN( x1_cassette_formats );\n\n#endif /*X1_TAP_H_*/\n" (comment) "// license:BSD-3-Clause" (comment) "//...
26
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 17.75, "nodes": 14, "errors": 0, "source_hash": "43d7252ec9ec8ebc9c68bf68ed43020ddd5d622b224194343685891fcccaf9c7", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
77,643
c
version https://git-lfs.github.com/spec/v1 oid sha256:8c058acea2b68d2e81bc2682162e4901312d834ba6940c9d2bc2c13d06dc34e4 size 338
41.67
3
(translation_unit) "version https://git-lfs.github.com/spec/v1\noid sha256:8c058acea2b68d2e81bc2682162e4901312d834ba6940c9d2bc2c13d06dc34e4\nsize 338\n" (declaration) "version https://git-lfs.github.com/spec/v1\noid" (type_identifier) "version" (ERROR) "https:" (identifier) "https" (:) ":" (co...
19
2
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 41.67, "nodes": 12, "errors": 0, "source_hash": "61022e48a4a3bec42df274c178c3d2c0d2bb88ef0190c9edf7a5e97d26125d2d", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "version http...
77,644
c
// // TimelineViewController.h // MHealthApp // /* * Copyright 2018 BBM Health, LLC - All rights reserved * Confidential & Proprietary Information of BBM Health, LLC - Not for disclosure without written permission * FHIR is registered trademark of HL7 Intl * */ #import "ViewController.h" //#import "APIhandler.h...
34.12
17
(translation_unit) "//\n// TimelineViewController.h\n// MHealthApp\n//\n/*\n * Copyright 2018 BBM Health, LLC - All rights reserved\n * Confidential & Proprietary Information of BBM Health, LLC - Not for disclosure without written permission\n * FHIR is registered trademark of HL7 Intl\n *\n */\n\n#import "ViewContro...
54
8
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 34.12, "nodes": 36, "errors": 0, "source_hash": "91c774e0c8f08ad2382f4e7403b1dc80d1b9b3ce3b9597cfbfda0fe5f24013f0", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
77,645
c
/* * Copyright 2018 The Cartographer Authors * * 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...
38.16
43
(translation_unit) "/*\n * Copyright 2018 The Cartographer Authors\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 * Unle...
177
10
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 38.16, "nodes": 98, "errors": 0, "source_hash": "4487dd21be14e7373755740760f0e694dd635f9385a050e64d241c1142766ecb", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
77,646
c
#pragma once // ref: https://docs.microsoft.com/en-us/cpp/cpp/using-dllimport-and-dllexport-in-cpp-classes?view=msvc-170 // ref: https://stackoverflow.com/questions/2479784/exporting-static-data-in-a-dll #ifdef EYE_PLATFORM_WINDOWS #if EYE_DYNAMIC_LINK #ifdef EYE_BUILD_DLL #define EYE_API __declspec(dllexport) ...
30.07
40
(translation_unit) "ragma once\n\n// ref: https://docs.microsoft.com/en-us/cpp/cpp/using-dllimport-and-dllexport-in-cpp-classes?view=msvc-170\n// ref: https://stackoverflow.com/questions/2479784/exporting-static-data-in-a-dll\n#ifdef EYE_PLATFORM_WINDOWS\n #if EYE_DYNAMIC_LINK\n #ifdef EYE_BUILD_DLL\n #define EYE_AP...
174
6
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 30.07, "nodes": 134, "errors": 0, "source_hash": "b9e6bbf718e219d08c9d60ff215210a88b571f59208b95c34c14c8db66f4741e", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma on...
77,647
c
// // XHCanCopyLabel.h // ThirdLib // // Created by 王博 on 2018/7/31. // Copyright © 2018年 胡晓辉. All rights reserved. // #import <UIKit/UIKit.h> @interface XHCanCopyLabel : UILabel @end
17.8
10
(translation_unit) "//\n// XHCanCopyLabel.h\n// ThirdLib\n//\n// Created by 王博 on 2018/7/31.\n// Copyright © 2018年 胡晓辉. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface XHCanCopyLabel : UILabel\n\n@end\n" (comment) "//" (comment) "// XHCanCopyLabel.h" (comment) "// ThirdLib" (comment) "//...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 17.8, "nodes": 10, "errors": 0, "source_hash": "0e3bd15c594d0211be065fdbcbfa62f3edc51fe29baaed7ac4073aa28aa1e108", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "t/UIKit.h>\...
77,648
c
#include "OAMManager.h" #include "BankManager.h" UINT8 last_sprite_loaded = 0; UINT8 sprites_pal[256]; UINT8 LoadSprite(struct TilesInfoInternal* data) { UINT8 i; UINT8* sprites_pal_ptr = &sprites_pal[last_sprite_loaded]; UINT8 frame_size = data->width >> 3; UINT8 n_tiles = data->num_frames << frame_size; UINT8*...
24.41
94
(translation_unit) "#include "OAMManager.h"\n#include "BankManager.h"\n\nUINT8 last_sprite_loaded = 0;\nUINT8 sprites_pal[256];\n\nUINT8 LoadSprite(struct TilesInfoInternal* data) {\n UINT8 i;\n UINT8* sprites_pal_ptr = &sprites_pal[last_sprite_loaded];\n UINT8 frame_size = data->width >> 3;\n UINT8 n_tiles = data->num...
834
28
{"language": "c", "success": true, "metadata": {"lines": 94, "avg_line_length": 24.41, "nodes": 578, "errors": 0, "source_hash": "542ffb9d92dfc70d35c4586b0269f94cbf5880701937ecc451386d478307b273", "categorized_nodes": 394}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
77,649
c
#ifndef PROCESSOR_H #define PROCESSOR_H class Processor { public: double Utilization(); // DONE: See src/processor.cpp // DONE: Declare any necessary private members private: float prev_total_{0}; float prev_idle_{0}; }; #endif
20.55
11
(translation_unit) "#ifndef PROCESSOR_H\n#define PROCESSOR_H\n\nclass Processor {\n public:\n double Utilization(); // DONE: See src/processor.cpp\n\n // DONE: Declare any necessary private members\n private:\n float prev_total_{0};\n float prev_idle_{0};\n};\n\n#endif" (preproc_ifdef) "#ifndef PROCESSOR_H\n#defin...
50
2
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 20.55, "nodes": 25, "errors": 0, "source_hash": "8737cea956aeb6418e7bf17326b3910fb3f58554f480793c94d4b2b9dff5783d", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
77,650
c
#pragma once #include <Poco/Net/TCPServer.h> #include <vector> #ifndef _DNFILTER_ #define _DNFILTER_ using namespace Poco::Net; class RejectFilter : public TCPServerConnectionFilter { public: RejectFilter(); bool accept(const StreamSocket&); std::vector<std::string> blacklist; }; #endif // _DNFILTER_
20.79
14
(translation_unit) "#pragma once\n#include <Poco/Net/TCPServer.h>\n#include <vector>\n#ifndef _DNFILTER_\n#define _DNFILTER_\n\nusing namespace Poco::Net;\n\nclass RejectFilter : public TCPServerConnectionFilter\n{\npublic:\n RejectFilter();\n bool accept(const StreamSocket&);\n std::vector<std::string> blacklist;\n};\...
83
4
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 20.79, "nodes": 48, "errors": 0, "source_hash": "1e4fcda79b2beb9eaba9067347cdcd6483b1010e1693f78fb6ffd6ebbdd13138", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
77,651
c
#pragma once #include <string> std::string metaType(unsigned int type); std::string nameType(unsigned int type); std::string metaFlags(unsigned int flags); std::string nameFlags(unsigned int flags); std::string attrFlags(unsigned int flags); namespace RecordTypes { enum RecordTypes { FILE = 0, INODE =...
23.36
14
(translation_unit) "#pragma once\n\n#include <string>\n\nstd::string metaType(unsigned int type);\n\nstd::string nameType(unsigned int type);\n\nstd::string metaFlags(unsigned int flags);\n\nstd::string nameFlags(unsigned int flags);\n\nstd::string attrFlags(unsigned int flags);\n\nnamespace RecordTypes {\n enum Recor...
124
5
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 23.36, "nodes": 85, "errors": 0, "source_hash": "d1e8fcfe17e555d1e623cf678d63a555d3f107a97fe28d165f4be2c9161ac7fe", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
77,652
c
#ifndef OBSERVER_H #define OBSERVER_H #include "message.h" class Observer { public: virtual ~Observer() {} virtual void notify(const Message& message) = 0; }; #endif // OBSERVER_H
17.8
10
(translation_unit) "#ifndef OBSERVER_H\n#define OBSERVER_H\n\n#include "message.h"\n\nclass Observer\n{\npublic:\n virtual ~Observer() {}\n virtual void notify(const Message& message) = 0;\n};\n\n#endif // OBSERVER_H\n" (preproc_ifdef) "#ifndef OBSERVER_H\n#define OBSERVER_H\n\n#include "message.h"\n\nclass Obs...
55
2
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 17.8, "nodes": 31, "errors": 0, "source_hash": "2a2913db4b022e9a44a23cfe444ece2acb1229a661f747eeb58da7d9fbc37e67", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef O...
77,653
c
/* [2018] <NAME> All Rights Reserved. NOTICE: All information contained here in this file is the property of <NAME>. If you want to use this, please put the contact rights information. PURPOSE:Practical activity of Parallel Programming Clermont-Auvergne University - Compute...
28.05
59
(translation_unit) "/* \n \n[2018] <NAME> \nAll Rights Reserved. \n \nNOTICE: All information contained here in this file is the \n property of <NAME>. \n If you want to use this, please put the contact \n rights information. \n \nPURPOSE:Practical activity of Parallel Programming \n Clermon...
230
0
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 28.05, "nodes": 123, "errors": 0, "source_hash": "322a04d0aa62c445d3368518d0e3b040ef0c1a414a01311ca86e06f5be3725cd", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "nclud...
77,654
c
#ifndef CHESS_ENGINE_MOVEGEN_H_ #define CHESS_ENGINE_MOVEGEN_H_ #include "bitboard.h" #include "bithacks.h" #include "move_bitboards.h" #include "position.h" #include "types.h" #include <cassert> namespace engine { extern Move MOVE_LIST[4 * MAX_DEPTH][MAX_MOVES]; Move* generate_moves(const Position& position, Color...
34.68
19
(translation_unit) "#ifndef CHESS_ENGINE_MOVEGEN_H_\n#define CHESS_ENGINE_MOVEGEN_H_\n\n#include "bitboard.h"\n#include "bithacks.h"\n#include "move_bitboards.h"\n#include "position.h"\n#include "types.h"\n\n#include <cassert>\n\nnamespace engine\n{\nextern Move MOVE_LIST[4 * MAX_DEPTH][MAX_MOVES];\n\nMove* generate_mo...
175
5
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 34.68, "nodes": 109, "errors": 0, "source_hash": "634f835bfeeff7bafc9204b65291d1202d0898ff23a3856e6e5687acea199ebf", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
77,655
c
// // GLRoundedView.h // Monal // // Created by <NAME> on 11/7/17. // Copyright © 2017 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> IB_DESIGNABLE @interface GLRoundedView : UIView @end
17.18
11
(translation_unit) "//\n// GLRoundedView.h\n// Monal\n//\n// Created by <NAME> on 11/7/17.\n// Copyright © 2017 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\nIB_DESIGNABLE\n@interface GLRoundedView : UIView\n\n@end\n" (comment) "//" (comment) "// GLRoundedView.h" (comment) "// Monal" (comme...
26
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 17.18, "nodes": 14, "errors": 0, "source_hash": "4f216f43926aa5f32984cd2ac117147795c97bce7a1685804c0aa73534f8e575", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UI...
77,656
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import <IntentsFoundation/INFSentenceToken.h> @class NSNumber, NSString; __attribute__((visibility("hidden"))) @interface INFNumber : INFSentenceToken { NSString *_identifier; ...
27.55
22
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import <IntentsFoundation/INFSentenceToken.h>\n\n@class NSNumber, NSString;\n\n__attribute__((visibility("hidden")))\n@interface INFNumber : INFSentenceToken\n{...
170
13
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 27.55, "nodes": 97, "errors": 0, "source_hash": "55f1494e15787fd781de0e8f745e8f30e15345f910e5810557ac0537217801a6", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
77,657
c
#pragma once #include <ufsm/detail/polymorphic_cast.h> #include <ufsm/result.h> namespace ufsm { template <class Event> class Reaction { public: ////////////////////////////////////////////////////////////////////////// // The following declarations should be private. // They are only public because many compi...
34.38
21
(translation_unit) "#pragma once\n#include <ufsm/detail/polymorphic_cast.h>\n#include <ufsm/result.h>\n\nnamespace ufsm {\n\ntemplate <class Event>\nclass Reaction {\n public:\n //////////////////////////////////////////////////////////////////////////\n // The following declarations should be private.\n // They are...
151
10
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 34.38, "nodes": 85, "errors": 0, "source_hash": "1decb5fb49b5b226bb80b4e897aba297725250646469d60b629aa3b8bc7e075b", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
77,658
c
// // NetworkActivityIndicator.h // Datac // // Created by <NAME> on 6/7/11. // Copyright 2011 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface NetworkActivityIndicator : NSObject { } + (NetworkActivityIndicator*)create; @end
18.46
13
(translation_unit) "//\n// NetworkActivityIndicator.h\n// Datac\n//\n// Created by <NAME> on 6/7/11.\n// Copyright 2011 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface NetworkActivityIndicator : NSObject {\n \n}\n\n+ (NetworkActivityIndicator*)create;\n\n@end\n" (comment) "//" (comm...
39
5
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 18.46, "nodes": 20, "errors": 0, "source_hash": "e69fbc7f1cc428e635610b83238f86adf80b47cbeb1239b9bd9eab0b701c343b", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <U...
77,659
c
/* Data structures for user-level context switching. Generic version. Copyright (C) 1997-2020 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as p...
37.67
42
(translation_unit) "/* Data structures for user-level context switching. Generic version.\n Copyright (C) 1997-2020 Free Software Foundation, Inc.\n This file is part of the GNU C Library.\n\n The GNU C Library is free software; you can redistribute it and/or\n modify it under the terms of the GNU Lesser Gener...
100
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 37.67, "nodes": 79, "errors": 0, "source_hash": "4cf88b7d9de1130fadd62c73411f14a2c32ea9b408b8a7d6521fdb000530525a", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
77,660
c
#ifndef MENUITEM_H #define MENUITEM_H #include "abstractmenuitem.h" /*! * \brief The MenuItem class implemens single menu entry. */ class MenuItem : public AbstractMenuItem { public: MenuItem(const std::string &title , double price , const std::string &description = {} , bool neue = fals...
24.93
29
(translation_unit) "#ifndef MENUITEM_H\n#define MENUITEM_H\n\n#include "abstractmenuitem.h"\n\n/*!\n * \brief The MenuItem class implemens single menu entry.\n */\nclass MenuItem : public AbstractMenuItem\n{\npublic:\n MenuItem(const std::string &title\n , double price\n , const std::string &descriptio...
196
14
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 24.93, "nodes": 111, "errors": 0, "source_hash": "0a9fd24619abf9ddd4c58a3538aadb61d433c3fd117c83f2a59f15b7969b3d10", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
77,661
c
#ifndef MODEL_H #define MODEL_H #include "Eigen-3.3/Eigen/Core" #include <cmath> #include <cppad/cppad.hpp> #include <vector> using CppAD::AD; using Eigen::MatrixXd; using Eigen::VectorXd; using std::max; using std::vector; using ADVec = CPPAD_TESTVECTOR(AD<double>); /*!\brief Base Model Class. Takes care of all o...
41.72
177
(translation_unit) "#ifndef MODEL_H\n#define MODEL_H\n\n#include "Eigen-3.3/Eigen/Core"\n#include <cmath>\n#include <cppad/cppad.hpp>\n#include <vector>\n\nusing CppAD::AD;\nusing Eigen::MatrixXd;\nusing Eigen::VectorXd;\nusing std::max;\nusing std::vector;\n\nusing ADVec = CPPAD_TESTVECTOR(AD<double>);\n\n/*!\brief Ba...
2,240
81
{"language": "c", "success": true, "metadata": {"lines": 177, "avg_line_length": 41.72, "nodes": 1431, "errors": 0, "source_hash": "b2af633bcde14305b67f34ec172f30b18b6580c20391fa2d2431287dc6ff7cfe", "categorized_nodes": 1033}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#if...
77,662
c
#include <frogger/player.h> #include <engine/gfx/sprite.h> #include <engine/gfx/draw_manager.h> #include <engine/physics/rigid_body.h> #include <engine/utilities/collision_info.h> #include <SDL.h> void player_update(game_object_t *game_object,const double delta_time) { game_object_update(game_object, delta_time); ...
36.02
130
(translation_unit) "#include <frogger/player.h>\n#include <engine/gfx/sprite.h>\n#include <engine/gfx/draw_manager.h>\n#include <engine/physics/rigid_body.h>\n#include <engine/utilities/collision_info.h>\n#include <SDL.h>\n\nvoid player_update(game_object_t *game_object,const double delta_time)\n{\n game_object_upda...
1,303
0
{"language": "c", "success": true, "metadata": {"lines": 130, "avg_line_length": 36.02, "nodes": 804, "errors": 0, "source_hash": "2778466003113e1372fc6b48dc2e88365951e794b61e3ed28b63895eff3fd120", "categorized_nodes": 623}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
77,663
c
#ifndef _PARSER_H #define _PARSER_H #include <stdint.h> // NOTE! // If telecommand AX.25 info header is not used, TC_START_INDEX = 17, MINIMUM_KISS_FRAME_SIZE = 19 #define TC_START_INDEX 18 #define MINIMUM_KISS_FRAME_SIZE 20 // KISS Frame Markers #define KISS_FEND 0xC0 #define KISS_FESC 0xDB #define KISS_TFEND 0xD...
24.94
17
(translation_unit) "#ifndef _PARSER_H\n#define _PARSER_H\n\n\n#include <stdint.h>\n\n// NOTE! \n// If telecommand AX.25 info header is not used, TC_START_INDEX = 17, MINIMUM_KISS_FRAME_SIZE = 19\n#define TC_START_INDEX 18\n#define MINIMUM_KISS_FRAME_SIZE 20\n\n// KISS Frame Markers\n#define KISS_FEND 0xC0\n#define KISS...
67
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 24.94, "nodes": 57, "errors": 0, "source_hash": "eb1a60bae71a4309469a056af503341326ca2d2ab50f5d6be94df556e5bb5726", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
77,664
c
#ifndef DISKFONT_DISKFONT_H #define DISKFONT_DISKFONT_H /* ** $VER: diskfont.h 38.0 (18.6.1992) ** Includes Release 45.1 ** ** diskfont library definitions ** ** (C) Copyright 1990 <NAME> ** All Rights Reserved ** (C) Copyright 1985-2001 Amiga, Inc. ** All Rights Reserved */ #ifndef EXEC_NODES_H #include <...
34.12
96
(translation_unit) "#ifndef DISKFONT_DISKFONT_H\n#define DISKFONT_DISKFONT_H\n/*\n** $VER: diskfont.h 38.0 (18.6.1992)\n** Includes Release 45.1\n**\n** diskfont library definitions\n**\n** (C) Copyright 1990 <NAME>\n** All Rights Reserved\n** (C) Copyright 1985-2001 Amiga, Inc.\n** All Rights Reserved\n*/\n\n#...
292
0
{"language": "c", "success": true, "metadata": {"lines": 96, "avg_line_length": 34.12, "nodes": 200, "errors": 0, "source_hash": "4b1ae425753787321a554e54a3e1e0cd1cd7d4fe7b78ab66f04ca016e77029c8", "categorized_nodes": 140}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
77,665
c
#ifndef Settings_h #define Settings_h #include <EEPROM.h> #include <ESP8266WiFi.h> #include <ESP8266WebServer.h> #include "Mac.h" #include "MacList.h" #include "NameList.h" extern "C" { #include "user_interface.h" } extern void sendBuffer(); extern void sendToBuffer(String str); extern void sendHeader(int code, St...
24.71
122
(translation_unit) "#ifndef Settings_h\n#define Settings_h\n\n#include <EEPROM.h>\n#include <ESP8266WiFi.h>\n#include <ESP8266WebServer.h>\n#include "Mac.h"\n#include "MacList.h"\n#include "NameList.h"\n\nextern "C" {\n #include "user_interface.h"\n}\n\nextern void sendBuffer();\nextern void sendToBuffer(String str);\...
649
0
{"language": "c", "success": true, "metadata": {"lines": 122, "avg_line_length": 24.71, "nodes": 500, "errors": 0, "source_hash": "3d57469afd360612f3c5275041024fdc45b63df5f667399099c469c5e82f28cc", "categorized_nodes": 266}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
77,666
c
typedef const char* http_code_t; #define HTTP_200 "200 OK" #define HTTP_302 "302 Found" #define HTTP_400 "400 Bad Request" #define HTTP_404 "404 Not Found" #define HTTP_408 "408 Request Timeout" #define HTTP_500 "500 Internal Server Error"
33.29
7
(translation_unit) "typedef const char* http_code_t;\n\n#define HTTP_200 "200 OK"\n#define HTTP_302 "302 Found"\n#define HTTP_400 "400 Bad Request"\n#define HTTP_404 "404 Not Found"\n#define HTTP_408 "408 Request Timeout"\n#define HTTP_500 "500 Internal Server Error"\n" (type_definition) "typedef const char* http_cod...
34
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 33.29, "nodes": 30, "errors": 0, "source_hash": "799b108a9ec52f4260ca1d895b0a477125e93a3fbd29748b9d02ffc76486e7db", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "typedef ...
77,667
c
/* $Id: TabsP.h,v 1.8 1999/12/16 18:01:25 falk Exp $ * * TabsP.h - Private definitions for Index Tabs widget * */ #ifndef _TabsP_h #define _TabsP_h /*********************************************************************** * * Tabs Widget Private Data * *********************************************************...
27.29
108
(translation_unit) "/* $Id: TabsP.h,v 1.8 1999/12/16 18:01:25 falk Exp $\n *\n * TabsP.h - Private definitions for Index Tabs widget\n * \n */\n\n#ifndef _TabsP_h\n#define _TabsP_h\n\n/***********************************************************************\n *\n * Tabs Widget Private Data\n *\n ************************...
347
0
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 27.29, "nodes": 237, "errors": 0, "source_hash": "fd334196eae5602df55a6ff366f0421ab9aa20b8d36cb04c7456505d8c1a49d6", "categorized_nodes": 218}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
77,668
c
// // Created by <NAME> on 4/22/20. // #ifndef FINALPROJECT_GHOST_H #define FINALPROJECT_GHOST_H #include "direction.h" #include "location.h" namespace myapp { class Ghost { public: // Constructor explicit Ghost(const Location& given_location); // Getter and setter for the current direction of Ghost Direc...
28.24
29
(translation_unit) "//\n// Created by <NAME> on 4/22/20.\n//\n\n#ifndef FINALPROJECT_GHOST_H\n#define FINALPROJECT_GHOST_H\n\n#include "direction.h"\n#include "location.h"\n\nnamespace myapp {\n\nclass Ghost {\n public:\n // Constructor\n explicit Ghost(const Location& given_location);\n\n // Getter and setter for t...
150
9
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 28.24, "nodes": 76, "errors": 0, "source_hash": "6b8774892026ef75eb9a9cc227208c340443c2c3ebd9f83fc9e2933dfd781a44", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
77,669
c
#include <string.h> #include <stdio.h> // Expected arguments are given by Makefile throught macro ARGC, ARG1, ARG2 and // ARG3 const char* expected_argv[EXPECTED_ARGC] = { "argv", EXPECTED_ARG1, EXPECTED_ARG2, EXPECTED_ARG3, }; int main(int argc, const char* argv[]) { if (argc != EXPECTED_ARGC) { ...
31.58
26
(translation_unit) "#include <string.h>\n#include <stdio.h>\n\n// Expected arguments are given by Makefile throught macro ARGC, ARG1, ARG2 and\n// ARG3\nconst char* expected_argv[EXPECTED_ARGC] = {\n "argv",\n EXPECTED_ARG1,\n EXPECTED_ARG2,\n EXPECTED_ARG3,\n};\n\nint main(int argc, const char* argv[]) {\n...
198
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 31.58, "nodes": 108, "errors": 0, "source_hash": "3530e8b212f4662c40f350395d27a80d33eee5d9519a8a913ff9095f606cd2da", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
77,670
c
#include "bucket-sort.h" #include "bucket.h" #include <stdio.h> #include <stdlib.h> int main() { int length; scanf("%d", &length); int i; double *A = malloc(sizeof(double) * length); for (i = 0; i < length; i++) scanf("%lf", &A[i]); BucketSort(A, length); for (i = 0; i < length; i++) printf("%lf...
20.38
16
(translation_unit) "#include "bucket-sort.h"\n#include "bucket.h"\n#include <stdio.h>\n#include <stdlib.h>\n\nint main() {\n int length;\n scanf("%d", &length);\n int i;\n double *A = malloc(sizeof(double) * length);\n for (i = 0; i < length; i++)\n scanf("%lf", &A[i]);\n\n BucketSort(A, length);\n for (i = 0...
162
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 20.38, "nodes": 93, "errors": 0, "source_hash": "2cea58a2503c056c568c773f358847d78ccd859f49b2fbf440af9f7428efb30e", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
77,671
c
#include <assert.h> #include <string.h> #include <stdio.h> #include <imp/c.h> void iObject_registerCActivator(iObject *object, CFunction f){ void *fp = malloc(sizeof(CFunction)); if(!fp){ abort(); } memcpy(fp, &f, sizeof(CFunction)); iObject_putDataShallow(object, "__activate", fp); } static inline void iRun...
33.51
53
(translation_unit) "#include <assert.h>\n#include <string.h>\n#include <stdio.h>\n#include <imp/c.h>\n\n\nvoid iObject_registerCActivator(iObject *object, CFunction f){\n void *fp = malloc(sizeof(CFunction));\n if(!fp){\n abort();\n }\n memcpy(fp, &f, sizeof(CFunction));\n iObject_putDataShallow(object, "__activate", ...
353
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 33.51, "nodes": 209, "errors": 0, "source_hash": "a95c4da097c8a7a8af40b00bed2134ab2a7b7159d09cd0bc922c50bb41ebe53d", "categorized_nodes": 147}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
77,672
c
// Generated by Haxe 4.0.0-preview.5 #ifndef INCLUDED_zpp_nape_callbacks_ZPP_CbSetPair #define INCLUDED_zpp_nape_callbacks_ZPP_CbSetPair #ifndef HXCPP_H #include <hxcpp.h> #endif HX_DECLARE_CLASS2(zpp_nape,callbacks,ZPP_CbSet) HX_DECLARE_CLASS2(zpp_nape,callbacks,ZPP_CbSetPair) HX_DECLARE_CLASS2(zpp_nape,callbacks,ZP...
41.45
77
(translation_unit) "// Generated by Haxe 4.0.0-preview.5\n#ifndef INCLUDED_zpp_nape_callbacks_ZPP_CbSetPair\n#define INCLUDED_zpp_nape_callbacks_ZPP_CbSetPair\n\n#ifndef HXCPP_H\n#include <hxcpp.h>\n#endif\n\nHX_DECLARE_CLASS2(zpp_nape,callbacks,ZPP_CbSet)\nHX_DECLARE_CLASS2(zpp_nape,callbacks,ZPP_CbSetPair)\nHX_DECLAR...
998
70
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 41.45, "nodes": 519, "errors": 0, "source_hash": "bac416e1fe66b8b11c79d20c4c818b48090e944f45569f35e4155c06c8f86ce0", "categorized_nodes": 369}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
77,673
c
// // UIImage+CLFilter.h // CLFilterLib // // Created by ClaudeLi on 2018/9/30. // #import <UIKit/UIKit.h> #import "CLFilterVideoProcessingDelegate.h" FOUNDATION_EXTERN NSBundle *CLFilterBundle(void); @interface UIImage (CLFilter) - (UIImage *)imageFilterWithStyle:(CLFilterStyle)style enabledBeauty:(BOOL)enabled...
29.08
13
(translation_unit) "//\n// UIImage+CLFilter.h\n// CLFilterLib\n//\n// Created by ClaudeLi on 2018/9/30.\n//\n\n#import <UIKit/UIKit.h>\n#import "CLFilterVideoProcessingDelegate.h"\n\nFOUNDATION_EXTERN NSBundle *CLFilterBundle(void);\n\n@interface UIImage (CLFilter)\n\n- (UIImage *)imageFilterWithStyle:(CLFilterStyle...
88
8
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 29.08, "nodes": 56, "errors": 0, "source_hash": "a2581eec7c24b71577667f5725838d87f636acb42c032518d44d2e61421e0a58", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
77,674
c
#ifndef CRC32_H #define CRC32_H extern unsigned int crc32(unsigned char *buf, int len); #endif
18.4
5
(translation_unit) "#ifndef CRC32_H\n#define CRC32_H\n \n\nextern unsigned int crc32(unsigned char *buf, int len);\n\n#endif\n" (preproc_ifdef) "#ifndef CRC32_H\n#define CRC32_H\n \n\nextern unsigned int crc32(unsigned char *buf, int len);\n\n#endif" (#ifndef) "#ifndef" (identifier) "CRC32_H" (preproc_def...
31
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 18.4, "nodes": 26, "errors": 0, "source_hash": "8957d7647c1e550d66fb301d52133e036247d2cb58d40603e93c87909bd089f7", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef CR...
77,675
c
/* LzmaDecode.h LZMA Decoder interface LZMA SDK 4.21 Copyright (c) 1999-2005 <NAME> (2005-06-08) http://www.7-zip.org/ LZMA SDK is licensed under two licenses: 1) GNU Lesser General Public License (GNU LGPL) 2) Common Public License (CPL) It means that you can select one of these two licenses and ...
28.53
74
(translation_unit) "/* \n LzmaDecode.h\n LZMA Decoder interface\n\n LZMA SDK 4.21 Copyright (c) 1999-2005 <NAME> (2005-06-08)\n http://www.7-zip.org/\n\n LZMA SDK is licensed under two licenses:\n 1) GNU Lesser General Public License (GNU LGPL)\n 2) Common Public License (CPL)\n It means that you can select one...
233
0
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 28.53, "nodes": 186, "errors": 0, "source_hash": "bbe1ad709c58d0893615d60e468d067cf05c25b8ee0079718de0e92c20f9be86", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
77,676
c
// Additional to the main functionality of this kernel module, // the watchdog timer is disabled, if DISABLE_WDT is defined. // Disabling the wdt early is important, because it stays enabled after // a wdt system-reset, which is used by the HARDWARE_RESET() implementation. #include <platform/kernel_init.h> #include "...
42.13
15
(translation_unit) "// Additional to the main functionality of this kernel module,\n// the watchdog timer is disabled, if DISABLE_WDT is defined.\n// Disabling the wdt early is important, because it stays enabled after\n// a wdt system-reset, which is used by the HARDWARE_RESET() implementation.\n\n#include <platform/k...
55
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 42.13, "nodes": 24, "errors": 0, "source_hash": "4081d37011374abc32a00f0f966013462f14c62387d893e9279655bc4ac22937", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
77,677
c
#ifndef INCLUDE_MALLOC_H #define INCLUDE_MALLOC_H #include "stddef.h" #include "stdint.h" void mmu_init(); void* mmu_mmap(size_t size); void mmu_munmap(void* mem); void* mmu_mremap(void* old, size_t newsize); #endif
23
9
(translation_unit) "#ifndef INCLUDE_MALLOC_H\n#define INCLUDE_MALLOC_H\n#include "stddef.h"\n#include "stdint.h"\nvoid mmu_init();\nvoid* mmu_mmap(size_t size);\nvoid mmu_munmap(void* mem);\nvoid* mmu_mremap(void* old, size_t newsize);\n#endif\n" (preproc_ifdef) "#ifndef INCLUDE_MALLOC_H\n#define INCLUDE_MALLOC_H\n#i...
73
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 23.0, "nodes": 53, "errors": 0, "source_hash": "aaa8616e66f2ebbf6dd2a76b2cb118f73b5cb4a165919d5c7c816e04eedd37cc", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef IN...
77,678
c
#include "mergesort.h" #include "bench.h" void mergesort(void *acolls, int ncolls, const pc_handler_t * pch, int ncpus, int lcpu, pair_cmp_t pcmp) { const int psz = pch->pch_get_pair_size(); const int parrsz = pch->pch_get_parr_size(); int mycolls = ncolls / ncpus; mycolls += (lcpu < (ncolls % ncpus...
32.36
44
(translation_unit) "#include "mergesort.h"\n#include "bench.h"\n\nvoid\nmergesort(void *acolls, int ncolls, const pc_handler_t * pch, int ncpus,\n int lcpu, pair_cmp_t pcmp)\n{\n const int psz = pch->pch_get_pair_size();\n const int parrsz = pch->pch_get_parr_size();\n int mycolls = ncolls / ncpus;\n myco...
543
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 32.36, "nodes": 357, "errors": 0, "source_hash": "dc35183e1848bd5c0ab41369f09e9809acfd75204898ec4c7f46308b5aabbf5a", "categorized_nodes": 234}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
77,679
c
/* * File: ZTaotromino.h * Author: jazzinghen * * Created on 15 April 2015, 16:13 */ #ifndef ZTAOTROMINO_H #define ZTAOTROMINO_H #include "Taotromino.h" class ZTaotromino : public Taotromino{ public: ZTaotromino(int y); ZTaotromino(const ZTaotromino& orig); virtual ~ZTaotromino(); private:...
17.26
19
(translation_unit) "/* \n * File: ZTaotromino.h\n * Author: jazzinghen\n *\n * Created on 15 April 2015, 16:13\n */\n\n#ifndef ZTAOTROMINO_H\n#define ZTAOTROMINO_H\n\n#include "Taotromino.h"\n\n\nclass ZTaotromino : public Taotromino{\npublic:\n ZTaotromino(int y);\n \n ZTaotromino(const ZTaotromino& orig);\...
70
5
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 17.26, "nodes": 36, "errors": 0, "source_hash": "4497390fe74bfaf12cdfcd59f686c230da2c017537a3b822d564ae15f52e116b", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
77,680
c
// a struct complex { double real, imaginary; }; // b struct complex ex3c1, ex3c2, ex3c3; // c struct complex make_complex(double real, double imaginary) { return (struct complex) { real, imaginary }; } // d struct complex add_complex(struct complex a, struct complex b) { return (struct complex) { a.rea...
25.21
14
(translation_unit) "// a\nstruct complex { double real, imaginary; };\n// b\nstruct complex ex3c1, ex3c2, ex3c3;\n// c\nstruct complex make_complex(double real, double imaginary) {\n return (struct complex) { real, imaginary };\n}\n// d\nstruct complex add_complex(struct complex a, struct complex b) {\n return (s...
120
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 25.21, "nodes": 76, "errors": 0, "source_hash": "e22157a0f095995791119ad488c519b7864a32772225d9c92400e87bb14ee59a", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "struct_specifier", "text": "struc...
77,681
c
#pragma once #include <GLM\glm.hpp> class Transform { public: Transform(const glm::vec2& position, float rotation, const glm::vec2& scale) noexcept; Transform() noexcept; Transform(const Transform& copy) noexcept; const glm::mat4& getMatrix()const; virtual void start(); virtual void update(); void setPosition(co...
31.69
32
(translation_unit) "#pragma once\n#include <GLM\glm.hpp>\nclass Transform\n{\npublic:\n Transform(const glm::vec2& position, float rotation, const glm::vec2& scale) noexcept;\n Transform() noexcept;\n Transform(const Transform& copy) noexcept;\n const glm::mat4& getMatrix()const;\n virtual void start();\n virtual void ...
382
21
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 31.69, "nodes": 227, "errors": 0, "source_hash": "95ac4b7244017ac5e653c75381aefd0f46ec44ddbb436f38f3d075c3bb0dacbb", "categorized_nodes": 147}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
77,682
c
/* Copyright 2018. <NAME>. * All rights reserved. Use of this source code is governed by * a BSD-style license which can be found in the LICENSE file. * * Authors: * 2018 <NAME> <<EMAIL>> */ #include <stdbool.h> #include <complex.h> #include <stdlib.h> #include <assert.h> #include <math.h> #include "num/init.h...
27.7
86
(translation_unit) "/* Copyright 2018. <NAME>.\n * All rights reserved. Use of this source code is governed by\n * a BSD-style license which can be found in the LICENSE file.\n *\n * Authors: \n * 2018 <NAME> <<EMAIL>>\n */\n\n#include <stdbool.h>\n#include <complex.h>\n#include <stdlib.h>\n#include <assert.h>\n#includ...
946
6
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 27.7, "nodes": 594, "errors": 0, "source_hash": "8593a449601014bcf11cf053c433dd6b9646a889fd1cf0f3dd57cb3d4e6f9f5c", "categorized_nodes": 413}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
77,683
c
/// //////////////////////////////////////// /// Stacked Tracker Simulations /// /// //////////////////////////////////////// #include "DataFormats/Common/interface/Wrapper.h" /*********************/ /** L1 CALO TRIGGER **/ /*********************/ #include "DataFormats/Phase2L1CaloTrig/interface/L1EGCrysta...
43.33
30
(translation_unit) "/// ////////////////////////////////////////\n/// Stacked Tracker Simulations ///\n/// ////////////////////////////////////////\n\n#include "DataFormats/Common/interface/Wrapper.h"\n\n\n/*********************/\n/** L1 CALO TRIGGER **/\n/*********************/\n\n#include "DataFormats/Phase2...
181
12
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 43.33, "nodes": 103, "errors": 0, "source_hash": "0445e697abd00e88e51a508a01ad0b019ecef11988f1f18db0575c06d884508d", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
77,684
c
#include <stdio.h> #include <string.h> #include <stdint.h> #include <stdbool.h> #include <stdlib.h> #include <pcap.h> #include <sys/socket.h> #include <arpa/inet.h> #include <unistd.h> #define MAX_FILENAME_SIZE (256) pcap_t *handler = NULL; static unsigned char *buffer = NULL; static long buffer_len = 0; void usag...
22.57
117
(translation_unit) "#include <stdio.h>\n#include <string.h>\n#include <stdint.h>\n#include <stdbool.h>\n#include <stdlib.h>\n#include <pcap.h>\n#include <sys/socket.h>\n#include <arpa/inet.h> \n#include <unistd.h>\n\n#define MAX_FILENAME_SIZE (256)\n\npcap_t *handler = NULL;\nstatic unsigned char *buffer = NULL;\nstati...
959
0
{"language": "c", "success": true, "metadata": {"lines": 117, "avg_line_length": 22.57, "nodes": 600, "errors": 0, "source_hash": "b69b429518a8188a71331aafefb1609b5922bb2789037be62061c73398870b77", "categorized_nodes": 394}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
77,685
c
/* * Copyright (C) 2011-2015 <NAME> * HSR Hochschule fuer Technik Rapperswil * * 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 l...
34.45
33
(translation_unit) "/*\n * Copyright (C) 2011-2015 <NAME>\n * HSR Hochschule fuer Technik Rapperswil\n *\n * This program is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public License as published by the\n * Free Software Foundation; either version 2 of the License, or...
62
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 34.45, "nodes": 52, "errors": 0, "source_hash": "e525bb1a4a6ce8dba363db273bb130155b8f946b203937d88884d952c54877f0", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
77,686
c
// // MANNewsContainerController.h // MakeANews2.1 // // Created by 于洪志 on 16/7/27. // Copyright © 2016年 于洪志. All rights reserved. // #import <UIKit/UIKit.h> @interface MANNewsContainerController : UIViewController @end
21.4
10
(translation_unit) "//\n// MANNewsContainerController.h\n// MakeANews2.1\n//\n// Created by 于洪志 on 16/7/27.\n// Copyright © 2016年 于洪志. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface MANNewsContainerController : UIViewController\n\n@end\n" (comment) "//" (comment) "// MANNewsContainerControll...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.4, "nodes": 10, "errors": 0, "source_hash": "04b06472c9c83bddfe51e4cdd0caf7b85e13c245b471bf3d87a6c4e73690ea0d", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit.h>\n\...
77,687
c
// // OCFNavigator.h // Pods // // Created by 杨建祥 on 2020/2/22. // #import <UIKit/UIKit.h> #import "OCFNavigable.h" @class OCFViewController; @interface OCFNavigator : NSObject <OCFNavigable> @property (nonatomic, strong, readonly) UIView *topView; @property (nonatomic, strong, readonly) UIViewController *topView...
36.06
17
(translation_unit) "//\n// OCFNavigator.h\n// Pods\n//\n// Created by 杨建祥 on 2020/2/22.\n//\n\n#import <UIKit/UIKit.h>\n#import "OCFNavigable.h"\n\n@class OCFViewController;\n\n@interface OCFNavigator : NSObject <OCFNavigable>\n@property (nonatomic, strong, readonly) UIView *topView;\n@property (nonatomic, strong, r...
137
22
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 36.06, "nodes": 95, "errors": 0, "source_hash": "800229ec8ac07b67433500680c405aca0db5008250e4d543e61b37709c6733b7", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "t <UIKit/...
77,688
c
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (the "License"). You may not use this file except in compliance * with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * o...
27.47
129
(translation_unit) "/*\n * CDDL HEADER START\n *\n * The contents of this file are subject to the terms of the\n * Common Development and Distribution License, Version 1.0 only\n * (the "License"). You may not use this file except in compliance\n * with the License.\n *\n * You can obtain a copy of the license at usr/...
765
0
{"language": "c", "success": true, "metadata": {"lines": 129, "avg_line_length": 27.47, "nodes": 451, "errors": 0, "source_hash": "0baa35d2543fe4171127c53500d576bdb8b6dead787b7340297e3b7638dbe7f0", "categorized_nodes": 294}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
77,689
c
#ifndef __PROMPT_H__ #define __PROMPT_H__ void debug_prompt(void); #endif
17.5
4
(translation_unit) "#ifndef __PROMPT_H__\n#define __PROMPT_H__\n\nvoid debug_prompt(void);\n\n#endif\n" (preproc_ifdef) "#ifndef __PROMPT_H__\n#define __PROMPT_H__\n\nvoid debug_prompt(void);\n\n#endif" (#ifndef) "#ifndef" (identifier) "__PROMPT_H__" (preproc_def) "#define __PROMPT_H__\n" (#define) ...
18
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 17.5, "nodes": 14, "errors": 0, "source_hash": "2114ba6f424bd7b0881849c8171c24083ab2dac1f3859f3ab0cf9505413b6fa7", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __P...
77,690
c
#ifndef TRANSACTION_H #define TRANSACTION_H #include "types.h" struct ALIGN Transaction { VBase* undoBufferHead; PRED* predicateHead; static TransactionManager& tm; timestamp startTS; volatile timestamp commitTS; Transaction * prevCommitted; uint8_t threadId; uint8_t ptype; Transac...
24.57
30
(translation_unit) "#ifndef TRANSACTION_H\n#define TRANSACTION_H\n#include "types.h"\n\nstruct ALIGN Transaction {\n VBase* undoBufferHead;\n PRED* predicateHead;\n static TransactionManager& tm;\n timestamp startTS;\n volatile timestamp commitTS;\n Transaction * prevCommitted;\n uint8_t threadId;\...
168
1
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 24.57, "nodes": 111, "errors": 0, "source_hash": "e6a6eded8392f3cc7f29449ff90824860c0391aab5b2c23e18e22da7520fb272", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
77,691
c
#pragma once #include "jdbc/mysql_connection.h" #include <cppconn/driver.h> #include <cppconn/exception.h> #include <cppconn/resultset.h> #include <cppconn/statement.h> #include <string> #include "config_manager.h" class api { public: api(std::string ip, std::string port, std::string username, std::string pa...
21.74
27
(translation_unit) "#pragma once\n#include "jdbc/mysql_connection.h"\n\n#include <cppconn/driver.h>\n#include <cppconn/exception.h>\n#include <cppconn/resultset.h>\n#include <cppconn/statement.h>\n\n#include <string>\n\n#include "config_manager.h"\n\nclass api\n{\npublic:\n api(std::string ip,\n std::string port,\n s...
177
10
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 21.74, "nodes": 104, "errors": 0, "source_hash": "2dd6092ba09ac70e5611e27a72518803a29b9b08249568e2332637e5f1e8d58f", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
77,692
c
#include <ansi.h> #include "riyue.h" inherit NPC; inherit F_MASTER; mixed ask_me(); mixed ask_skill1(); mixed ask_skill2(); mixed ask_skill3(); void create() { set_name("桑三娘", ({ "<NAME>", "sang", "sanniang"})); set("title", "日月神教天香堂长老"); set("nickname", HIR "掌刑使者" NOR); set("long", @LONG 这是...
36.28
239
(translation_unit) "#include <ansi.h>\n#include "riyue.h"\n\ninherit NPC;\ninherit F_MASTER;\n\nmixed ask_me();\nmixed ask_skill1();\nmixed ask_skill2();\nmixed ask_skill3();\n\nvoid create()\n{\n set_name("桑三娘", ({ "<NAME>", "sang", "sanniang"}));\n set("title", "日月神教天香堂长老");\n set("nickname", HIR "掌刑使者"...
2,873
33
{"language": "c", "success": true, "metadata": {"lines": 239, "avg_line_length": 36.28, "nodes": 1286, "errors": 0, "source_hash": "dcf13a214e8709b46dc71a35075d837bbf0483839a72c1b9afe1b6e9b9fd8a5d", "categorized_nodes": 989}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
77,693
c
// // RPViewController.h // RPSlidingMenuDemo // // Created by <NAME> on 2/24/2014. // Copyright (c) 2014 Robots and Pencils Inc. All rights reserved. // #import <UIKit/UIKit.h> #import "RPSlidingMenu.h" @class RPSItem; @interface RPViewController : RPSlidingMenuViewController - (void)createItem:(RPSItem *)item...
26.64
14
(translation_unit) "//\n// RPViewController.h\n// RPSlidingMenuDemo\n//\n// Created by <NAME> on 2/24/2014.\n// Copyright (c) 2014 Robots and Pencils Inc. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "RPSlidingMenu.h"\n@class RPSItem;\n\n@interface RPViewController : RPSlidingMenuViewController \n\n...
65
12
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 26.64, "nodes": 43, "errors": 0, "source_hash": "55f3a26f3ed18a9a5936bd469742f6096e8a3f937024bde4484e6fcb96d10aa6", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
77,694
c
// // Created by lenovo on 2019/3/5. // #ifndef TREE_POINT_H #define TREE_POINT_H #include <glm/vec3.hpp> #include <glad/glad.h> class Point { public: glm::vec3 position; glm::vec3 ori_pos; GLfloat radius{}; glm::vec3 rotAxis; GLfloat rotAngle{}; GLfloat ori_angle{}; GLfloat E{}; // ...
24.72
25
(translation_unit) "//\n// Created by lenovo on 2019/3/5.\n//\n\n#ifndef TREE_POINT_H\n#define TREE_POINT_H\n\n#include <glm/vec3.hpp>\n#include <glad/glad.h>\n\nclass Point {\npublic:\n glm::vec3 position;\n glm::vec3 ori_pos;\n GLfloat radius{};\n glm::vec3 rotAxis;\n GLfloat rotAngle{};\n GLfloat o...
202
13
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 24.72, "nodes": 104, "errors": 0, "source_hash": "6df2e23af68723da799ab72e77b4346d2b26fac06005717698863e694fede42c", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
77,695
c
/* ================================================================================ Created by : nguthrie Created on : 2020 Apr 03, 08:29 EDT Project : newton File : newton_addr_bdef.h Description : C header file contains macros for bit-field reference access functions....
44.27
26
(translation_unit) "/* ================================================================================\n Created by : nguthrie\n Created on : 2020 Apr 03, 08:29 EDT\n\n Project : newton\n File : newton_addr_bdef.h\n Description : C header file contains macros for bit-field re...
49
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 44.27, "nodes": 33, "errors": 0, "source_hash": "bafb5a6f8819c84c47bac3c419671aa5a2852508c2b53a14423abd942e3e5a5e", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
77,696
c
#ifndef _INLINE_XPR_H #define _INLINE_XPR_H #ifndef CLIB_XPR_PROTOS_H #define CLIB_XPR_PROTOS_H #endif #include <exec/types.h> #ifndef XPR_BASE_NAME #define XPR_BASE_NAME XProtocolBase #endif #define XProtocolCleanup(XIO) ({ \ struct XPR_IO * _XProtocolCleanup_XIO = (XIO); \ ({ \ register char * _XProtocolCle...
71.12
26
(translation_unit) "#ifndef _INLINE_XPR_H\n#define _INLINE_XPR_H\n\n#ifndef CLIB_XPR_PROTOS_H\n#define CLIB_XPR_PROTOS_H\n#endif\n\n#include <exec/types.h>\n\n#ifndef XPR_BASE_NAME\n#define XPR_BASE_NAME XProtocolBase\n#endif\n\n#define XProtocolCleanup(XIO) ({ \\n struct XPR_IO * _XProtocolCleanup_XIO = (XIO); \\n (...
59
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 71.12, "nodes": 49, "errors": 0, "source_hash": "cc029384208a16ab151250548bbca279077a31fdbd5e21c8465d9d7cb14f004e", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
77,697
c
//========================================================================= // Copyright (C) 2012 The Elastos Open Source Project // // 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 // // ...
32.59
59
(translation_unit) "//=========================================================================\n// Copyright (C) 2012 The Elastos Open Source Project\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...
231
7
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 32.59, "nodes": 113, "errors": 0, "source_hash": "b9f6217865b2b15a2dd2f1d591d80693c613c533d8439f55f86343d8e30b5726", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
77,698
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/ProVideo.framework/ProVideo */ @interface PROPlugIn : NSObject + (id)allocWithZone:(struct _NSZone { }*)arg1; - (id)apiUsedByPlugInForProtocol:(id)arg1; - (id)blockedLookupKey; - (id)bundle; - (id)className; - (id)delegate; - (id)displayName...
27.21
29
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/ProVideo.framework/ProVideo\n */\n\n@interface PROPlugIn : NSObject\n\n+ (id)allocWithZone:(struct _NSZone { }*)arg1;\n\n- (id)apiUsedByPlugInForProtocol:(id)arg1;\n- (id)blockedLookupKey;\n- (id)bundle;\n- (id)className;\n-...
335
13
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 27.21, "nodes": 196, "errors": 0, "source_hash": "7723a1d65983240bc6faa9a2296c910589a5e7a2a2eedcbc6af922a7f19ed197", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface PRO...
77,699