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
/* */ #ifndef __SMART_ANT_H__ #define __SMART_ANT_H__ #include "rtmp_type.h" struct _RTMP_ADAPTER; typedef enum _SA_TRAIN_COND { SA_TRAIN_UPPER_MCS = 0x1, /* 0x1: trainUpperMCS instead of train CurrentMCS */ SA_TRAIN_GRADUAL_APPROACH = 0x2, /* 0x2: train one antenna one time */ } SA_TRAIN_COND; typedef struc...
37.78
64
(translation_unit) "/*\n\n\n*/\n#ifndef __SMART_ANT_H__\n#define __SMART_ANT_H__\n\n#include "rtmp_type.h"\n\nstruct _RTMP_ADAPTER;\n\ntypedef enum _SA_TRAIN_COND {\n SA_TRAIN_UPPER_MCS = 0x1, /* 0x1: trainUpperMCS instead of train CurrentMCS */\n SA_TRAIN_GRADUAL_APPROACH = 0x2, /* 0x2: train one antenna one time */...
660
16
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 37.78, "nodes": 520, "errors": 0, "source_hash": "a5d8d65303c7b19c623051d3a1bcc9b82bc9f3f3542855ccd8670a91e58726fc", "categorized_nodes": 344}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,200
c
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (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 * or http://www.opensolar...
33.48
145
(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 (the "License").\n * You may not use this file except in compliance with the License.\n *\n * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE...
492
0
{"language": "c", "success": true, "metadata": {"lines": 145, "avg_line_length": 33.48, "nodes": 373, "errors": 0, "source_hash": "0366329d96ec11686b8bd8bf4f23c31747054f525313e17b5ee393cbab61291a", "categorized_nodes": 227}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,201
c
#ifndef SERVER_UDP_H #define SERVER_UDP_H #include "main.h" #define PORT 8080 struct network_data{ int sock; struct sockaddr_in sockinfo; }; struct network_data prepare_server(struct network_data server); void *send_data(void* server); void *receive_data(void* server); //void* server_receive_loop(void *arg...
21.75
16
(translation_unit) "#ifndef SERVER_UDP_H\n#define SERVER_UDP_H\n\n#include "main.h"\n\n#define PORT 8080\n\nstruct network_data{\n int sock;\n struct sockaddr_in sockinfo;\n};\n\n\nstruct network_data prepare_server(struct network_data server);\nvoid *send_data(void* server);\nvoid *receive_data(void* server);\n/...
82
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 21.75, "nodes": 61, "errors": 0, "source_hash": "da2660721904b789f9f230421289f418dadda068fec799643853e60e398fd3b5", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,202
c
#ifndef PLAYER_H #define PLAYER_H #include <iostream> #include <functional> #include <thread> #include "video/videodecoder.h" #include "../utils/logger.h" using namespace std; class PlayerCallBack { public: virtual void rowVideoData(unsigned char *data,int width,int height) = 0; virtual void rowAudioData(un...
23.19
31
(translation_unit) "fndef PLAYER_H\n#define PLAYER_H\n\n#include <iostream>\n#include <functional>\n#include <thread>\n#include "video/videodecoder.h"\n#include "../utils/logger.h"\n\nusing namespace std;\n\nclass PlayerCallBack\n{\npublic:\n virtual void rowVideoData(unsigned char *data,int width,int height) = 0;\n...
212
4
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 23.19, "nodes": 149, "errors": 0, "source_hash": "aaa5e6c924ed7da5ea988a41cd9073663bd801a71447a1f1c20930c3b86f0893", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef ...
10,203
c
// Part of DTSource. Copyright 2004-2015. <NAME>. <NAME>. // see http://www.visualdatatools.com/DTSource/license.html for more information. #ifndef DTSeriesVectorCollection2D_Header #define DTSeriesVectorCollection2D_Header // See DTSeries.h for further information. #include "DTSeries.h" class DTVectorCollection2D; ...
40.62
26
(translation_unit) "// Part of DTSource. Copyright 2004-2015. <NAME>. <NAME>.\n// see http://www.visualdatatools.com/DTSource/license.html for more information.\n\n#ifndef DTSeriesVectorCollection2D_Header\n#define DTSeriesVectorCollection2D_Header\n\n// See DTSeries.h for further information.\n#include "DTSeries.h"\n\...
209
12
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 40.62, "nodes": 112, "errors": 0, "source_hash": "caaa7cc24de78b81c20eb8ef271e947612d27e587513dc500eb577acc32878dd", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,204
c
// // Copyright (C) 2015 Google, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at: // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
34.59
39
(translation_unit) "//\n// Copyright (C) 2015 Google, Inc.\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at:\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless req...
255
13
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 34.59, "nodes": 124, "errors": 0, "source_hash": "256dd33cc0be8b3ba23ce29c8dbc1ae097782942be56207a2b73c8ec7208de11", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
10,205
c
// ============================= // SDL Programming // Name: <NAME> // Student id: 0902024 // Task 18 // ============================ #ifndef __IUPDATEABLE_H__ #define __IUPDATEABLE_H__ //////////////////////////////////////////////////////////////////////////////// namespace DemoEngine { class IUpdateable { ...
27.57
21
(translation_unit) "// =============================\n// SDL Programming\n// Name: <NAME>\n// Student id: 0902024\n// Task 18\n// ============================\n\n#ifndef __IUPDATEABLE_H__\n#define __IUPDATEABLE_H__\n\n////////////////////////////////////////////////////////////////////////////////\nnamespace DemoEngine...
60
1
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 27.57, "nodes": 31, "errors": 0, "source_hash": "f860c12b09ab5a1ff6e441d7db3aa854fedbe210b46e0c79c0920b0005ec56ed", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,206
c
#include "clos.h" #include "clos_class.h" #include "condition.h" #include "cons.h" #include "pathname.h" #include "process.h" #include "process_arch.h" #include "stream.h" #include "strtype.h" #include "symbol.h" #include "typedef.h" /* * defclass lisp-system::process */ static void process_defclass_slot(addr slots...
30.84
294
(translation_unit) "#include "clos.h"\n#include "clos_class.h"\n#include "condition.h"\n#include "cons.h"\n#include "pathname.h"\n#include "process.h"\n#include "process_arch.h"\n#include "stream.h"\n#include "strtype.h"\n#include "symbol.h"\n#include "typedef.h"\n\n/*\n * defclass lisp-system::process\n */\nstatic vo...
2,794
0
{"language": "c", "success": true, "metadata": {"lines": 294, "avg_line_length": 30.84, "nodes": 1552, "errors": 0, "source_hash": "f6956354c946930b47e09b506ec8c6ecfb24c574f7ab9ceda29539c850061c3e", "categorized_nodes": 1252}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
10,207
c
#import <UIKit/UIKit.h> typedef void(^finishBlock)(); @interface LRButton : UIView @property (nonatomic,copy) finishBlock translateBlock; @end
27.6
5
(translation_unit) "#import <UIKit/UIKit.h>\n\ntypedef void(^finishBlock)();\n\n@interface LRButton : UIView\n\n@property (nonatomic,copy) finishBlock translateBlock;\n\n@end\n" (preproc_call) "#import <UIKit/UIKit.h>\n" (preproc_directive) "#import" (preproc_arg) "<UIKit/UIKit.h>" (type_definition) "typede...
41
7
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 27.6, "nodes": 29, "errors": 0, "source_hash": "752034a521357478aa6d4e4f7d6f2e1c09918d2ff7a36ed37cafeef875aedaf0", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UI...
10,208
c
// // MMSCFontAndColorUtil.h // MahjongScoreCalculator // // Created by fredfx on 16/1/30. // Copyright © 2016年 fredfx. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> typedef NS_ENUM(NSInteger, MMSCPlayerViewTag) { MMSCPlayerViewTagPlayer1 = 0x666, MMSCPlayerViewTagPlaye...
23.72
29
(translation_unit) "//\n// MMSCFontAndColorUtil.h\n// MahjongScoreCalculator\n//\n// Created by fredfx on 16/1/30.\n// Copyright © 2016年 fredfx. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n\ntypedef NS_ENUM(NSInteger, MMSCPlayerViewTag) {\n MMSCPlayerViewTagPlayer1 = 0...
143
8
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 23.72, "nodes": 85, "errors": 0, "source_hash": "e2787dd3b84dbaffb5e5e6bdee9d7883f6e105272f2710d52a04e1ed0fd40861", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
10,209
c
#import <UIKit/UIKit.h> @interface CustomIndoorViewController : UIViewController @end
27.67
3
(translation_unit) "#import <UIKit/UIKit.h>\n\n@interface CustomIndoorViewController : UIViewController\n@end\n" (preproc_call) "#import <UIKit/UIKit.h>\n" (preproc_directive) "#import" (preproc_arg) "<UIKit/UIKit.h>" (ERROR) "@interface CustomIndoorViewController : UIViewController\n@end" (ERROR) "@" ...
12
3
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 27.67, "nodes": 9, "errors": 0, "source_hash": "bbe305b8b339bd02bf5ae916c13e3dfde408d3ec8ee2072a8469d61158266449", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UIK...
10,210
c
/* * Copyright (C) 2009-2021 <NAME> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAI...
33.46
82
(translation_unit) "/*\n * Copyright (C) 2009-2021 <NAME>\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED "AS...
304
1
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 33.46, "nodes": 238, "errors": 0, "source_hash": "3f1ee41f23997b6b666991b8c76e2b565241c000cf910cda7c428783222738e2", "categorized_nodes": 121}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
10,211
c
/* This file is part of the HWA project. * Copyright (c) 2012,2015 <NAME>. * All rights reserved. Read LICENSE.TXT for details. */ /** * @file * @brief Atmel AVR ATmega32U4 */ #define HW_DEVICE atmega32u4 #define HW_DEVICE_ATMEGA32U4 #define HW_DEVICE_SIGNATURE 0x1E,0x95,0x87 #define HW_DEVICE_FLASH_SI...
30.5
26
(translation_unit) "/* This file is part of the HWA project.\n * Copyright (c) 2012,2015 <NAME>.\n * All rights reserved. Read LICENSE.TXT for details.\n */\n\n/**\n * @file\n * @brief Atmel AVR ATmega32U4\n */\n\n#define HW_DEVICE atmega32u4\n#define HW_DEVICE_ATMEGA32U4\n#define HW_DEVICE_SIGNATURE 0x1E,0x95,0...
64
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 30.5, "nodes": 55, "errors": 0, "source_hash": "7614a4090b5dc6ee8ef46b0681c9b25e568adba1ed73154feea9cddb75c6c415", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define HW_...
10,212
c
/* This file was generated automatically: DO NOT MODIFY IT ! */ /* Declaration of the functions that have to be provided by the user */ #ifndef __USER_CODE_H_noargdispatcher__ #define __USER_CODE_H_noargdispatcher__ #ifdef __cplusplus extern "C" { #endif void noargdispatcher_startup(); void noargdispatcher_PI_samp...
26.5
16
(translation_unit) "/* This file was generated automatically: DO NOT MODIFY IT ! */\n\n/* Declaration of the functions that have to be provided by the user */\n\n#ifndef __USER_CODE_H_noargdispatcher__\n#define __USER_CODE_H_noargdispatcher__\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\nvoid noargdispatcher_startup()...
65
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 26.5, "nodes": 44, "errors": 0, "source_hash": "19e9f353251e9d88c526dce3e689237ebbc8f0d09fc54bb8c9735a41deca846b", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
10,213
c
/* Copyright (C) <2010-2011> <NAME> <<EMAIL>> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dis...
29.71
112
(translation_unit) "/*\nCopyright (C) <2010-2011> <NAME> <<EMAIL>>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, m...
587
0
{"language": "c", "success": true, "metadata": {"lines": 112, "avg_line_length": 29.71, "nodes": 366, "errors": 0, "source_hash": "54948678dd3dde7a1202324d55e36b05301b1f5e331f53606f2252799ffa1bfe", "categorized_nodes": 271}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,214
c
#ifndef DOS_APP_H #define DOS_APP_H #include "app.h" #include <string> class PhononDosApp : public App { public: void run(Context &context) override; void checkRequirements(Context &context) override; }; class ElectronWannierDosApp : public App { public: void run(Context &context) override; void checkRequire...
24.35
20
(translation_unit) "#ifndef DOS_APP_H\n#define DOS_APP_H\n\n#include "app.h"\n#include <string>\n\nclass PhononDosApp : public App {\npublic:\n void run(Context &context) override;\n void checkRequirements(Context &context) override;\n};\n\nclass ElectronWannierDosApp : public App {\npublic:\n void run(Context &cont...
152
15
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 24.35, "nodes": 82, "errors": 0, "source_hash": "ca6b4381072237c2252e2e6ae55488791f251dab1f8fda31bbc585a8e813fcb7", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,215
c
// // SDKNotifications.h // ChannelSDK // #import <Foundation/Foundation.h> extern NSString * const hsGameSwitchAccountNotify; extern NSString * const hsGameEnterGameNotify; extern NSString * const hsGameRegisterNotify; extern NSString * const hsGameExitNotify; /**< 退出 */ extern NSString * const h...
43.44
18
(translation_unit) "//\n// SDKNotifications.h\n// ChannelSDK\n//\n\n#import <Foundation/Foundation.h>\n\nextern NSString * const hsGameSwitchAccountNotify;\nextern NSString * const hsGameEnterGameNotify;\nextern NSString * const hsGameRegisterNotify;\nextern NSString * const hsGameExitNotify; /**< 退...
123
3
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 43.44, "nodes": 84, "errors": 0, "source_hash": "c8c4c433c86ce2606456876c2da7e1ccd5cdfa61367b2f9e6f3c1a3153fc5139", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
10,216
c
/* Generated by RuntimeBrowser Image: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices */ @interface _LSQueryContext : NSObject { id _resolver; } @property (atomic, readonly) <_LSQueryResolving> *_resolver; + (id)defaultContext; - (v...
35.57
21
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices\n */\n\n@interface _LSQueryContext : NSObject {\n id _resolver;\n}\n\n@property (atomic, readonly) <_LSQueryResolving> *_resolver;\...
210
15
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 35.57, "nodes": 126, "errors": 0, "source_hash": "4633d8781af355c724b908c868f1c771f6a94eed6a77e717e24ef7e6eaf1fd3f", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": n...
10,217
c
/** * @file colorpal.h * * @author <NAME> * * @version 0.50 * * @copyright * Copyright (C) Parallax, Inc. 2012. All Rights MIT Licensed. * * @brief Simplifies reading Parallax ColorPAL sensor. */ #ifndef COLORPAL_H #define COLORPAL_H #if defined(__cplusplus) extern "C" { #endif /** * Defines instance o...
26.46
97
(translation_unit) "/**\n * @file colorpal.h\n *\n * @author <NAME>\n *\n * @version 0.50\n *\n * @copyright\n * Copyright (C) Parallax, Inc. 2012. All Rights MIT Licensed.\n *\n * @brief Simplifies reading Parallax ColorPAL sensor.\n */\n\n\n#ifndef COLORPAL_H\n#define COLORPAL_H\n\n#if defined(__cplusplus)\nextern "C...
138
0
{"language": "c", "success": true, "metadata": {"lines": 97, "avg_line_length": 26.46, "nodes": 96, "errors": 0, "source_hash": "ce4c449d29a731d820a2701f2cf8d7922a87ac55e9fa852a2bfae60f122be3b9", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,218
c
// // GlossyButton.h // Pods // // Created by <NAME> on 12/13/15. // // #import <UIKit/UIKit.h> @interface GlossyButton : UIButton @end
12.9
10
(translation_unit) "//\n// GlossyButton.h\n// Pods\n//\n// Created by <NAME> on 12/13/15.\n//\n//\n\n#import <UIKit/UIKit.h>\n\n@interface GlossyButton : UIButton\n\n@end\n" (comment) "//" (comment) "// GlossyButton.h" (comment) "// Pods" (comment) "//" (comment) "// Created by <NAME> on 12/13/15." (c...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 12.9, "nodes": 9, "errors": 0, "source_hash": "de4c3859a6833c010c8ad7f56797a0d7f34d9819bc178d4f59ee8be742c90754", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UIK...
10,219
c
// This may look like C, but it's really -*- C++ -*- //============================================================================= /** * @file Wait_On_Read.h * * $Id: Wait_On_Read.h 95013 2011-11-11 10:47:09Z mcorino $ * * @author <NAME> <<EMAIL>> */ //===================================================...
33.81
47
(translation_unit) "// This may look like C, but it's really -*- C++ -*-\n\n//=============================================================================\n/**\n * @file Wait_On_Read.h\n *\n * $Id: Wait_On_Read.h 95013 2011-11-11 10:47:09Z mcorino $\n *\n * @author <NAME> <<EMAIL>>\n */\n//=====================...
190
7
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 33.81, "nodes": 116, "errors": 0, "source_hash": "94f6e9807d114f642fc4eb10a9f6c258372fb2767f9d761f345d7440e27c4862", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,220
c
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 12:33:16 PM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/Health/Plugins/HealthRecordsPlugin.bundle/HealthRecordsPlugin * classdump-dyld is licensed under GPLv3, Copyright © 20...
42.57
14
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Sunday, September 27, 2020 at 12:33:16 PM Mountain Standard Time\n* Operating System: Version 14.0 (Build 18A373)\n* Image Source: /System/Library/Health/Plugins/HealthRecordsPlugin.bundle/HealthRecordsPlugin\n* classdump-dyld is licensed un...
53
10
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 42.57, "nodes": 36, "errors": 0, "source_hash": "b2c1011bf00f24fa8fec98c28acd67e238f5c465354c3e0386bda245fcb274c5", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "c", "parent": nu...
10,221
c
#ifndef TL_SIM_TIMEP_H_INCLUDED #define TL_SIM_TIMEP_H_INCLUDED #include <string> #include "TL_SIM_time_node.h" #include "UE.h" #include <vector> using namespace std; class TL_SIM_timep { public: TL_SIM_timep(){} ~TL_SIM_timep(){} static vector<TL_SIM_time_node> node_time_list; static void add_node_time_w...
26.23
30
(translation_unit) "#ifndef TL_SIM_TIMEP_H_INCLUDED\n#define TL_SIM_TIMEP_H_INCLUDED \n\n\n\n#include <string>\n#include "TL_SIM_time_node.h"\n#include "UE.h"\n#include <vector>\n\nusing namespace std;\n\n\nclass TL_SIM_timep\n{\npublic:\n TL_SIM_timep(){}\n ~TL_SIM_timep(){}\n\n static vector<TL_SIM_time_node> node_ti...
207
7
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 26.23, "nodes": 117, "errors": 0, "source_hash": "7db0baea45030442176821f120cb65a3747f1ca4a033a3617a32ddcab565455e", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,222
c
/* * (c) copyright 1988 by the Vrije Universiteit, Amsterdam, The Netherlands. * See the copyright notice in the ACK home directory, in the file "Copyright". * * Author: <NAME> */ /* $Id$ */ #include <math.h> #include <errno.h> extern int errno; double log10(x) double x; { extern double log(); if (x <= 0) ...
16.86
21
(translation_unit) "/*\n * (c) copyright 1988 by the Vrije Universiteit, Amsterdam, The Netherlands.\n * See the copyright notice in the ACK home directory, in the file "Copyright".\n *\n * Author: <NAME>\n */\n\n/* $Id$ */\n\n#include <math.h>\n#include <errno.h>\n\nextern int errno;\n\ndouble\nlog10(x)\n double x;\n{...
74
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 16.86, "nodes": 47, "errors": 0, "source_hash": "5c6bfe511f87cd425db9d81f08710d97b4535ce2270d114fd4e7bb6b5dcdd55e", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
10,223
c
#ifndef TrackingTools_TrackRefitter_TrajectoryReader_H #define TrackingTools_TrackRefitter_TrajectoryReader_H /** \class TrajectoryReader * No description available. * * \author <NAME> - INFN Torino <<EMAIL>> */ // Base Class Headers #include "FWCore/Framework/interface/EDAnalyzer.h" #include "FWCore/Framework/i...
25.04
54
(translation_unit) "#ifndef TrackingTools_TrackRefitter_TrajectoryReader_H\n#define TrackingTools_TrackRefitter_TrajectoryReader_H\n\n/** \class TrajectoryReader\n * No description available.\n *\n * \author <NAME> - INFN Torino <<EMAIL>>\n */\n// Base Class Headers\n#include "FWCore/Framework/interface/EDAnalyzer.h"...
310
18
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 25.04, "nodes": 174, "errors": 0, "source_hash": "93d309f56eeb69bfb74cccd81ea15fc5941408882ef064c2bd96e729d1c98e40", "categorized_nodes": 122}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,224
c
// Copyright © 2019-present 650 Industries. All rights reserved. #if __has_include(<EXFont/EXFontLoader.h>) #import <EXFont/EXFontLoader.h> #import <UMCore/UMModuleRegistryConsumer.h> NS_ASSUME_NONNULL_BEGIN @interface EXScopedFontLoader : EXFontLoader <UMModuleRegistryConsumer> @end NS_ASSUME_NONNULL_END #endif
33.89
9
(translation_unit) "// Copyright © 2019-present 650 Industries. All rights reserved.\n\n#if __has_include(<EXFont/EXFontLoader.h>)\n#import <EXFont/EXFontLoader.h>\n#import <UMCore/UMModuleRegistryConsumer.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface EXScopedFontLoader : EXFontLoader <UMModuleRegistryConsumer>\n\n@end\n...
44
8
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 33.89, "nodes": 32, "errors": 0, "source_hash": "2b48ffcf655ac396d73ede5a46cd465e91a2f34a88e75171ea1810bb3a76920a", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "if __has_include(...
10,225
c
/* * Copyright (c) 2019, <NAME> <<EMAIL>io dot s81 at gmail dot com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * - Redistributions of source code must retain the above copyright not...
26.14
192
(translation_unit) "/*\n * Copyright (c) 2019, <NAME> <<EMAIL>io dot s81 at gmail dot com>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * - Redistributions of source code must ret...
1,269
63
{"language": "c", "success": true, "metadata": {"lines": 192, "avg_line_length": 26.14, "nodes": 743, "errors": 0, "source_hash": "66bef34eace35de4cfc580b5edc02ef498eda3ebe4425aa357ef21f04c4533eb", "categorized_nodes": 541}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,226
c
// This file is part of KWIVER, and is distributed under the // OSI-approved BSD 3-Clause License. See top-level LICENSE file or // https://github.com/Kitware/kwiver/blob/master/LICENSE for details. #ifndef KWIVER_ARROWS_VXL_COLOR_COMMONALITY_FILTER_ #define KWIVER_ARROWS_VXL_COLOR_COMMONALITY_FILTER_ #include <arrow...
39.3
40
(translation_unit) "// This file is part of KWIVER, and is distributed under the\n// OSI-approved BSD 3-Clause License. See top-level LICENSE file or\n// https://github.com/Kitware/kwiver/blob/master/LICENSE for details.\n\n#ifndef KWIVER_ARROWS_VXL_COLOR_COMMONALITY_FILTER_\n#define KWIVER_ARROWS_VXL_COLOR_COMMONALITY...
200
14
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 39.3, "nodes": 104, "errors": 0, "source_hash": "caeea92a7893faeedc57cc2acd7158dbd716ea976d9577777c7c1d67b59f7cb2", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,227
c
#ifndef SPEAKER_DRIVER_H #define SPEAKER_DRIVER_H void beep(uint32_t nFrequence, unsigned char duration); void nosound(); #endif
24.8
5
(translation_unit) "#ifndef SPEAKER_DRIVER_H\n#define SPEAKER_DRIVER_H\n\nvoid beep(uint32_t nFrequence, unsigned char duration);\nvoid nosound();\n\n#endif" (preproc_ifdef) "#ifndef SPEAKER_DRIVER_H\n#define SPEAKER_DRIVER_H\n\nvoid beep(uint32_t nFrequence, unsigned char duration);\nvoid nosound();\n\n#endif" (...
33
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 24.8, "nodes": 25, "errors": 0, "source_hash": "22d6bbaf94a86d6f8702a4c5db1ecc62220653851ccb4e2b9e6a0d510fa207c3", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef SP...
10,228
c
/* * SPDX-License-Identifier: BSD-2-Clause * SPDX-FileCopyrightText: Copyright 2019-2021 Siemens. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must re...
33.58
79
(translation_unit) "/*\n * SPDX-License-Identifier: BSD-2-Clause\n * SPDX-FileCopyrightText: Copyright 2019-2021 Siemens. All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistribut...
398
0
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 33.58, "nodes": 229, "errors": 0, "source_hash": "b4d065131bad07518fef6902aae35cd3e8e7b738ff01677c9188627ce93c0f2a", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,229
c
/**************************************************************************** * Copyright (C) 2009-2015 EPAM Systems * * This file is part of Indigo toolkit. * * This file may be distributed and/or modified under the terms of the * GNU General Public License version 3 as published by the Free Software * Founda...
26.75
87
(translation_unit) "/****************************************************************************\n * Copyright (C) 2009-2015 EPAM Systems\n * \n * This file is part of Indigo toolkit.\n * \n * This file may be distributed and/or modified under the terms of the\n * GNU General Public License version 3 as published by t...
339
0
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 26.75, "nodes": 289, "errors": 0, "source_hash": "956d5b5daed4e741771f612bc697acca3154cd733ac7950a692edcd9f6032715", "categorized_nodes": 155}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,230
c
#ifndef __NEOCLOCK_H__ #define __NEOCLOCK_H__ #include "IProcessor.h" /// <summary> /// Processor showing a clock on the wheel /// </summary> /// <seealso cref="Processor" /> class NeoClock : public Processor { private: int hr, min, sec; uint32_t _secColor = 0; uint32_t _minColor = 0; uint32_t _h...
22.08
26
(translation_unit) "#ifndef __NEOCLOCK_H__\n#define __NEOCLOCK_H__\n\n#include "IProcessor.h"\n\n/// <summary>\n/// Processor showing a clock on the wheel\n/// </summary>\n/// <seealso cref="Processor" />\nclass NeoClock : public Processor\n{\nprivate:\n int hr, min, sec;\n \n uint32_t _secColor = 0;\n uint...
123
4
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 22.08, "nodes": 75, "errors": 0, "source_hash": "3d7300fc08344c478685a11f0a80432245c4997078a344dde37e1dc519996c03", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,231
c
/* Abstract Syntax Notation ver. 1 Distinguished Encoding Rules Encoder * * Provides the necessary types, functions, and datastructures to encode DER * compliant byte arrays, intended for use formatting Basic Safety Message * packets as defined in J2735. * * <NAME> <<EMAIL>> 2015 for FHWA TOPR 5 */ #include "d...
34.03
227
(translation_unit) "/* Abstract Syntax Notation ver. 1 Distinguished Encoding Rules Encoder\n * \n * Provides the necessary types, functions, and datastructures to encode DER\n * compliant byte arrays, intended for use formatting Basic Safety Message\n * packets as defined in J2735.\n *\n * <NAME> <<EMAIL>> 2015 for FH...
1,182
0
{"language": "c", "success": true, "metadata": {"lines": 227, "avg_line_length": 34.03, "nodes": 753, "errors": 0, "source_hash": "e12f17c44ba2e4d10c3d7e0a2c211339882b74de31a2c103253acfa34b027b6a", "categorized_nodes": 546}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,232
c
/* * Copyright 2018 Red Hat Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, d...
32.12
90
(translation_unit) "/*\n * Copyright 2018 Red Hat Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a\n * copy of this software and associated documentation files (the "Software"),\n * to deal in the Software without restriction, including without limitation\n * the rights to use, copy,...
607
2
{"language": "c", "success": true, "metadata": {"lines": 90, "avg_line_length": 32.12, "nodes": 402, "errors": 0, "source_hash": "ed0c4077661a9bcf884b6b10b4772bfc5ca88de98a1f81c626874ec91a21fec7", "categorized_nodes": 294}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,233
c
#define _CRT_SECURE_NO_WARNINGS//windows #define _WINSOCK_DEPRECATED_NO_WARNINGS//windows #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <string.h> #include <sys/types.h> #include <ws2tcpip.h>//windows #include <winsock.h>//windows #include <windows.h>//windows #include "client.h" #pragma comment(l...
31.97
126
(translation_unit) "#define _CRT_SECURE_NO_WARNINGS//windows\n#define _WINSOCK_DEPRECATED_NO_WARNINGS//windows\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <errno.h>\n#include <string.h>\n#include <sys/types.h>\n#include <ws2tcpip.h>//windows\n#include <winsock.h>//windows\n#include <windows.h>//windows\n#inclu...
1,110
0
{"language": "c", "success": true, "metadata": {"lines": 126, "avg_line_length": 31.97, "nodes": 570, "errors": 0, "source_hash": "e10b007a7922b73a0c5101f8448bf691f8d9020dc269040617426812af412cd6", "categorized_nodes": 420}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
10,234
c
// // Class AliPIDResponseInputHandler // // AliPIDResponseInputHandler // TODO example // authors: // <NAME> (<EMAIL>) // <NAME> (<EMAIL>) // #ifndef ALIPIDRESPONSEINPUTHANDLER_H #define ALIPIDRESPONSEINPUTHANDLER_H #include "AliInputEventHandler.h" class AliPIDResponse; class AliMultiInputEventHandler...
28.02
52
(translation_unit) "//\n// Class AliPIDResponseInputHandler\n//\n// AliPIDResponseInputHandler\n// TODO example\n// authors:\n// <NAME> (<EMAIL>)\n// <NAME> (<EMAIL>)\n//\n\n#ifndef ALIPIDRESPONSEINPUTHANDLER_H\n#define ALIPIDRESPONSEINPUTHANDLER_H\n\n#include "AliInputEventHandler.h"\nclass AliPIDRespons...
283
13
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 28.02, "nodes": 174, "errors": 0, "source_hash": "9a0f4c83a4b7b4112ff93cb73e37675f0d9694f62c61cd556caa3286c865b013", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,235
c
#ifndef __LJRSERVER_HTTP_SERVER_H__ #define __LJRSERVER_HTTP_SERVER_H__ #include "../tcp_server.h" #include "http_session.h" #include "servlet.h" namespace ljrserver { namespace http { class HttpServer : public TcpServer { public: typedef std::shared_ptr<HttpServer> ptr;...
35.19
27
(translation_unit) "#ifndef __LJRSERVER_HTTP_SERVER_H__\n#define __LJRSERVER_HTTP_SERVER_H__\n\n#include "../tcp_server.h"\n#include "http_session.h"\n#include "servlet.h"\n\nnamespace ljrserver\n{\n\n namespace http\n {\n\n class HttpServer : public TcpServer\n {\n public:\n typed...
208
12
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 35.19, "nodes": 118, "errors": 0, "source_hash": "0cd5691fb6abfc2971c4c2844c4cf7806b03d899f523cb32a86f188fdefe4104", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,236
c
#pragma once #include <QWidget> #include "Controller.h" #include <qpushbutton.h> #include <qlayout.h> #include <qlistwidget.h> #include <qformlayout.h> #include <qlabel.h> #include <qlineedit.h> #include <qstring.h> #include <stdexcept> #include <qerrormessage.h> #include <vector> #include <Windows.h> #include "bonus....
25.49
140
(translation_unit) "#pragma once\n\n#include <QWidget>\n#include "Controller.h"\n#include <qpushbutton.h>\n#include <qlayout.h>\n#include <qlistwidget.h>\n#include <qformlayout.h>\n#include <qlabel.h>\n#include <qlineedit.h>\n#include <qstring.h>\n#include <stdexcept>\n#include <qerrormessage.h>\n#include <vector>\n#in...
445
6
{"language": "c", "success": true, "metadata": {"lines": 140, "avg_line_length": 25.49, "nodes": 297, "errors": 0, "source_hash": "1bd42c1ccc767f27576a414e5ac6b48316ef000a38912d51f697010c20c6d279", "categorized_nodes": 181}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
10,237
c
/* config.h. Generated automatically by configure. */ /* config.h.in. Generated automatically from configure.in by autoheader. */ /* Define if using alloca.c. */ /* #undef C_ALLOCA */ /* Define to empty if the keyword does not work. */ /* #undef const */ /* Define to one of _getb67, GETB67, getb67 for Cray-2 a...
40.49
83
(translation_unit) "/* config.h. Generated automatically by configure. */\n/* config.h.in. Generated automatically from configure.in by autoheader. */\n\n/* Define if using alloca.c. */\n/* #undef C_ALLOCA */\n\n/* Define to empty if the keyword does not work. */\n/* #undef const */\n\n/* Define to one of _getb67...
158
0
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 40.49, "nodes": 108, "errors": 0, "source_hash": "cdd2825de82d666cd31dfd967cd87450e354297b2360c81b7c2bb5c79897318e", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define H...
10,238
c
// Copyright (c) 2008-2009 <NAME> // Copyright (c) 2015, <NAME> // Copyright (c) 2016, Winterland #include <string.h> #include <stdio.h> #include <stdint.h> #define UTF8_ACCEPT 0 #define UTF8_REJECT 12 static const uint8_t utf8d[] = { // The first part of the table maps bytes to character classes that // to red...
34.26
132
(translation_unit) "// Copyright (c) 2008-2009 <NAME>\n// Copyright (c) 2015, <NAME>\n// Copyright (c) 2016, Winterland\n\n#include <string.h>\n#include <stdio.h>\n#include <stdint.h>\n\n\n#define UTF8_ACCEPT 0\n#define UTF8_REJECT 12\n\nstatic const uint8_t utf8d[] = {\n // The first part of the table maps bytes to c...
1,851
2
{"language": "c", "success": true, "metadata": {"lines": 132, "avg_line_length": 34.26, "nodes": 1125, "errors": 0, "source_hash": "f40c1883f1df7f4c54a4fb14a99bc5e205c692e2a1c389e5c56b8dae13a5a741", "categorized_nodes": 822}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
10,239
c
#import <Flutter/Flutter.h> @interface VideoVlcPlugin : NSObject<FlutterPlugin> //@property (nonatomic, retain) UINavigationController *navigationController; @property(nonatomic, retain) UIViewController *viewController; //@property (nonatomic, retain) UIView *movieView; @end
45.17
6
(translation_unit) "#import <Flutter/Flutter.h>\n\n@interface VideoVlcPlugin : NSObject<FlutterPlugin>\n//@property (nonatomic, retain) UINavigationController *navigationController;\n@property(nonatomic, retain) UIViewController *viewController;\n//@property (nonatomic, retain) UIView *movieView;\n\n@end\n" (preproc_...
34
6
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 45.17, "nodes": 25, "errors": 0, "source_hash": "735404451db70235906151ec2a08b7677bad37abdc24a99f0d929a70dd5cffaf", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
10,240
c
// // SBDChannelCollection.h // SendBirdSDK // // Created by <NAME> on 4/22/21. // Copyright © 2021 SEN<EMAIL>. All rights reserved. // #import <Foundation/Foundation.h> #import "SBDBaseCollection.h" #import "SBDChannelCollectionDelegate.h" #import "SBDError.h" #import "SBDGroupChannel.h" #import "SBDGroupChannel...
37.76
33
(translation_unit) "//\n// SBDChannelCollection.h\n// SendBirdSDK\n//\n// Created by <NAME> on 4/22/21.\n// Copyright © 2021 SEN<EMAIL>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n#import "SBDBaseCollection.h"\n#import "SBDChannelCollectionDelegate.h"\n#import "SBDError.h"\n#import "SBDGroupCh...
193
20
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 37.76, "nodes": 125, "errors": 0, "source_hash": "d7f08638ce5e16013f0cc29bdbcf49979b03adb1c394627b3720f970a85d7dc1", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <...
10,241
c
#ifndef _X_SHARED_PTR_TEST_H_ #define _X_SHARED_PTR_TEST_H_ #include "framework.h" class XRefTest : public test_fixture { public: TEST_SUITE(XRefTest); TEST(XRefTest::TestDefaultConstructor); TEST(XRefTest::TestPointerAssignment); TEST(XRefTest::TestObjectAssignment); TEST(XRefTest::TestRelatedTypeAs...
29.18
33
(translation_unit) "#ifndef _X_SHARED_PTR_TEST_H_\n#define _X_SHARED_PTR_TEST_H_\n\n#include "framework.h"\n\nclass XRefTest : public test_fixture\n{\npublic:\n\nTEST_SUITE(XRefTest);\n TEST(XRefTest::TestDefaultConstructor);\n TEST(XRefTest::TestPointerAssignment);\n TEST(XRefTest::TestObjectAssignment);\n ...
263
11
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 29.18, "nodes": 153, "errors": 0, "source_hash": "ec2a19fef98b5b95fe43870c22ad06c76f1ce3f55a39c455494db57a080e9dda", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,242
c
#ifndef SDLT_SCENE_H #define SDLT_SCENE_H #include "SDLTGfx.h" #include "SDLTMath.h" #include <vector> #include <Box2D.h> class SDLTScene { public: SDLTScene(); //Standard Functions bool Load(SDL_Renderer *renderTarget); void Unload(); void Update(float dt); void Render(SDL_Renderer *renderTa...
23.47
72
(translation_unit) "#ifndef SDLT_SCENE_H \n#define SDLT_SCENE_H \n \n#include "SDLTGfx.h" \n#include "SDLTMath.h" \n#include <vector> \n#include <Box2D.h> \n \nclass SDLTScene \n{ \npublic: \n SDLTScene(); \n \n //Standard Functions \n bool Load(SDL_Renderer *renderTarget); \n void Unload(); \n void Update(float dt); ...
479
9
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 23.47, "nodes": 331, "errors": 0, "source_hash": "f9ef55a10249f3eace4a9a835aad0913d920bd59e4b9b4a7c1cb5a23d4ce2a94", "categorized_nodes": 199}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,243
c
// IWebBrw2.h : main header file for the IWEBBRW2 application // #if !defined(AFX_IWEBBRW2_H__BD746C5B_EE13_40FC_BD04_5CF25F9D0D02__INCLUDED_) #define AFX_IWEBBRW2_H__BD746C5B_EE13_40FC_BD04_5CF25F9D0D02__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #ifndef __AFXWIN_H__ #error include 'stdaf...
33.73
37
(translation_unit) "// IWebBrw2.h : main header file for the IWEBBRW2 application\n//\n\n#if !defined(AFX_IWEBBRW2_H__BD746C5B_EE13_40FC_BD04_5CF25F9D0D02__INCLUDED_)\n#define AFX_IWEBBRW2_H__BD746C5B_EE13_40FC_BD04_5CF25F9D0D02__INCLUDED_\n\n#if _MSC_VER > 1000\n#pragma once\n#endif // _MSC_VER > 1000\n\n#ifndef __AFX...
102
2
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 33.73, "nodes": 52, "errors": 0, "source_hash": "dbb6e5ba04f3989793b12a34d072f799f9865fe3d51386b0b71a10550b2e09ee", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !define...
10,244
c
#include "cruby.h" VALUE llrb_insn_opt_aset(VALUE recv, VALUE obj, VALUE set) { if (!SPECIAL_CONST_P(recv)) { if (RBASIC_CLASS(recv) == rb_cArray && BASIC_OP_UNREDEFINED_P(BOP_ASET, ARRAY_REDEFINED_OP_FLAG) && FIXNUM_P(obj)) { rb_ary_store(recv, FIX2LONG(obj), set); return set; } else if (RBA...
27.26
27
(translation_unit) "#include "cruby.h"\n\nVALUE\nllrb_insn_opt_aset(VALUE recv, VALUE obj, VALUE set)\n{\n if (!SPECIAL_CONST_P(recv)) {\n if (RBASIC_CLASS(recv) == rb_cArray && BASIC_OP_UNREDEFINED_P(BOP_ASET, ARRAY_REDEFINED_OP_FLAG) && FIXNUM_P(obj)) {\n rb_ary_store(recv, FIX2LONG(obj), set);\n return...
201
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 27.26, "nodes": 109, "errors": 0, "source_hash": "6c815d9c7c3247700bcdf8f434ea39227dc65da627a99dfa5224a3470657ed0c", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
10,245
c
#include <stdio.h> #include <math.h> int main(int argc, char **argv) { //------------------------------------------- // GET DATA char* msg = argv[1]; //------------------------------------------- // PRINT MESSAGE printf("%s\n", msg); //------------------------------------------- ...
23.86
14
(translation_unit) "#include <stdio.h>\n#include <math.h>\n\nint main(int argc, char **argv) { \n //------------------------------------------- \n // GET DATA\n char* msg = argv[1];\n \n //-------------------------------------------\n // PRINT MESSAGE\n printf("%s\n", msg);\n\n //------------...
65
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 23.86, "nodes": 39, "errors": 0, "source_hash": "e8c9a6bcd8ca7ff648188b0827e1ae4439bc57a0c712fa56c8d7c3f34c35e098", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
10,246
c
/*++ /* NAME /* stream2rec 1 /* SUMMARY /* convert stream-lf data to record format /* SYNOPSIS /* stream2rec /* DESCRIPTION /* stream2rec reads lines from standard input and writes /* them to standard output in record form. /* DIAGNOSTICS /* Problems are reported to the standard error stream. /* LICENSE /* .ad /* .fi /...
21.97
39
(translation_unit) "/*++\n/* NAME\n/* stream2rec 1\n/* SUMMARY\n/* convert stream-lf data to record format\n/* SYNOPSIS\n/* stream2rec\n/* DESCRIPTION\n/* stream2rec reads lines from standard input and writes\n/* them to standard output in record form.\n/* DIAGNOSTICS\n/* Problems are reported to the standard error str...
101
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 21.97, "nodes": 64, "errors": 0, "source_hash": "8aa45d80fe5da9d4c8d9da95a3f00c6b3ef483194d674eb5664e3afe3adb17e3", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
10,247
c
// Copyright (c) Microsoft Corporation. All rights reserved. // SPDX-License-Identifier: MIT #ifndef _az_LOG_INTERNAL_H #define _az_LOG_INTERNAL_H #include <az_log.h> #include <az_span.h> #include <stdbool.h> #include <_az_cfg_prefix.h> void az_log_write(az_log_classification classification, az_span message); // ...
36.54
13
(translation_unit) "// Copyright (c) Microsoft Corporation. All rights reserved.\n// SPDX-License-Identifier: MIT\n\n#ifndef _az_LOG_INTERNAL_H\n#define _az_LOG_INTERNAL_H\n\n#include <az_log.h>\n#include <az_span.h>\n\n#include <stdbool.h>\n\n#include <_az_cfg_prefix.h>\n\nvoid az_log_write(az_log_classification class...
52
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 36.54, "nodes": 41, "errors": 0, "source_hash": "f70dcb85dcb595a7375a4c8914c05084d7ee12a136eccd947a25e4cbb0a50039", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,248
c
#ifndef SLA_BYTEARRAY_H_INCLUDED #define SLA_BYTEARRAY_H_INCLUDED #include "SLAStdint.h" /* 1バイト読み出し */ #define SLAByteArray_ReadUint8(p_array) \ (uint8_t)((p_array)[0]) /* 2バイト読み出し */ #define SLAByteArray_ReadUint16(p_array) \ (uint16_t)( \ (((uint16_t)((p_array)[0])) << 8) | ...
65.02
43
(translation_unit) "#ifndef SLA_BYTEARRAY_H_INCLUDED\n#define SLA_BYTEARRAY_H_INCLUDED\n\n#include "SLAStdint.h"\n\n/* 1バイト読み出し */\n#define SLAByteArray_ReadUint8(p_array) \\n (uint8_t)((p_array)[0])\n\n/* 2バイト読み出し */\n#define SLAByteArray_ReadUint16(p_array) \\n (uint16_t)( \\n (((ui...
141
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 65.02, "nodes": 91, "errors": 0, "source_hash": "5d906636425398b88487c7baa4ca9dbda6eb5e3096e996bca43b3a72e030d031", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,249
c
//////////////////////////////////////////////////////////////////////////// // // Crytek Engine Source File. // Copyright (C), Crytek Studios, 2001-2004. // ------------------------------------------------------------------------- // File name: IComponent.h // Version: v1.00 // Created: 28/04/2012 : <NA...
32.04
85
(translation_unit) "////////////////////////////////////////////////////////////////////////////\n//\n// Crytek Engine Source File.\n// Copyright (C), Crytek Studios, 2001-2004.\n// -------------------------------------------------------------------------\n// File name: IComponent.h\n// Version: v1.00\n// Cr...
496
16
{"language": "c", "success": true, "metadata": {"lines": 85, "avg_line_length": 32.04, "nodes": 290, "errors": 0, "source_hash": "8e293ec176aa98d3572345d4231d43ae41a6d9b2ddcaa29966988ff803411bad", "categorized_nodes": 202}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
10,250
c
#include <param.h> #include <x86.h> #include <proto.h> #include <proc.h> // #include <page.h> #include <vm.h> // #include <conf.h> /* * The value of pid can be: (via `man waitpid`) * < -1 wait for any child process whose process group ID is equal to the absolute value of pid. * -1 wait for any child proc...
26.1
68
(translation_unit) "#include <param.h>\n#include <x86.h>\n#include <proto.h>\n#include <proc.h>\n//\n#include <page.h>\n#include <vm.h>\n//\n#include <conf.h>\n\n\n/*\n * The value of pid can be: (via `man waitpid`)\n * < -1 wait for any child process whose process group ID is equal to the absolute value of pid.\n ...
408
0
{"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 26.1, "nodes": 256, "errors": 0, "source_hash": "512cb7faed9cc95e3a598aa40627aa4778b5f10e67b4202bc385b7adf366e653", "categorized_nodes": 196}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
10,251
c
#pragma once #include "../Core/Core.h" #include "../Core/Listener.h" namespace Doom { class GameObject; class DOOM_API Component : public Listener { public: std::string m_Type; GameObject* m_OwnerOfCom = nullptr; size_t m_Id = 0; template <typename T> T* GetComponent() { return m_OwnerOfCom->m_C...
21.12
33
(translation_unit) "#pragma once\n\n#include "../Core/Core.h"\n#include "../Core/Listener.h"\n\nnamespace Doom {\n\n class GameObject;\n\n class DOOM_API Component : public Listener {\n public:\n\n std::string m_Type;\n GameObject* m_OwnerOfCom = nullptr;\n size_t m_Id = 0;\n\n template <typename T>\n T* GetCompon...
236
10
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 21.12, "nodes": 147, "errors": 0, "source_hash": "2b00e5a8611b3231a5e0bf5260a3b79733ab85cbe2bcf5ebde41da64ee6cafbc", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
10,252
c
// Copyright (c) 2018 <NAME> <<EMAIL>> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publi...
35.74
197
(translation_unit) "// Copyright (c) 2018 <NAME> <<EMAIL>>\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the "Software"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, c...
2,585
151
{"language": "c", "success": true, "metadata": {"lines": 197, "avg_line_length": 35.74, "nodes": 1580, "errors": 0, "source_hash": "b4b693af07ade2a2443f5bee41a5ca1cb227e2ef6f6971378e00d7277dcfb43f", "categorized_nodes": 1012}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pra...
10,253
c
// // EBASDK.h // EBASDK // // Created by <NAME> on 17/2/20. // Copyright © 2020 2C2P. All rights reserved. // #import <Foundation/Foundation.h> //! Project version number for EBASDK. FOUNDATION_EXPORT double EBASDKVersionNumber; //! Project version string for EBASDK. FOUNDATION_EXPORT const unsigned char EBASDK...
34.85
13
(translation_unit) "//\n// EBASDK.h\n// EBASDK\n//\n// Created by <NAME> on 17/2/20.\n// Copyright © 2020 2C2P. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n//! Project version number for EBASDK.\nFOUNDATION_EXPORT double EBASDKVersionNumber;\n\n//! Project version string for EBASDK.\nFOUNDATION...
33
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 34.85, "nodes": 15, "errors": 0, "source_hash": "d78b1f650b07a07fb8a51740d6df69433dce1703ea49a3cb7e4a80db3ba8c944", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
10,254
c
// // C:\Projects\bc7e\bc7e_ispc_avx2.h // (Header automatically generated by the ispc compiler.) // DO NOT EDIT THIS FILE. // #ifndef ISPC_C__PROJECTS_BC7E_BC7E_ISPC_AVX2_H #define ISPC_C__PROJECTS_BC7E_BC7E_ISPC_AVX2_H #include <stdint.h> #ifdef __cplusplus namespace ispc { /* namespace */ #endif // __cplusplus ...
28.65
292
(ERROR) "//\n// C:\Projects\bc7e\bc7e_ispc_avx2.h\n// (Header automatically generated by the ispc compiler.)\n// DO NOT EDIT THIS FILE.\n//\n\n#ifndef ISPC_C__PROJECTS_BC7E_BC7E_ISPC_AVX2_H\n#define ISPC_C__PROJECTS_BC7E_BC7E_ISPC_AVX2_H\n\n#include <stdint.h>\n\n\n\n#ifdef __cplusplus\nnamespace ispc { /* namespace */...
1,319
3
{"language": "c", "success": true, "metadata": {"lines": 292, "avg_line_length": 28.65, "nodes": 958, "errors": 0, "source_hash": "3e207ebc8969ee029fc3cdc78543b6fe2a3a1dfcfb49acfb3fd4fa1eaf8dea38", "categorized_nodes": 644}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// C:\\Projects\\bc7...
10,255
c
#ifndef LLVM_NODE_INTEGER_TYPE_H #define LLVM_NODE_INTEGER_TYPE_H\ #include <nan.h> #include <llvm/IR/DerivedTypes.h> #include "type.h" class IntegerTypeWrapper : public TypeWrapper, public FromValueMixin<IntegerTypeWrapper> { public: static NAN_MODULE_INIT(Init); static v8::Local<v8::Object> of(llvm::Integ...
36.75
20
(translation_unit) "#ifndef LLVM_NODE_INTEGER_TYPE_H\n#define LLVM_NODE_INTEGER_TYPE_H\\n\n\n#include <nan.h>\n#include <llvm/IR/DerivedTypes.h>\n#include "type.h"\n\nclass IntegerTypeWrapper : public TypeWrapper, public FromValueMixin<IntegerTypeWrapper> {\npublic:\n static NAN_MODULE_INIT(Init);\n static v8::Lo...
194
12
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 36.75, "nodes": 111, "errors": 0, "source_hash": "06648d40936a3c8592cbb781b002e857b594b2b84a7fb36b174723e8e60a6e18", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,256
c
/* mfc0.c - Move word From CP0 */ #include <vr4300i.h> /* MFC0 rt, rd copy a word from an FPR a GPR. rt = COP rd */ #define OPCODE 0x10 void ns4_vr4300i_mfc0(struct _vr4300i *vr) { uint32_t rt = (vr -> op >> 0x10) & 0x1f; uint32_t fs = (vr -> op >> 0xb) & 0x1f; vr -> regs[rt] = COP vr -> regs[rd]; ns4_d...
24.43
14
(translation_unit) "/* mfc0.c - Move word From CP0 */\n\n#include <vr4300i.h>\n\n/*\n MFC0 rt, rd\n copy a word from an FPR a GPR.\n rt = COP rd\n*/\n\n#define OPCODE 0x10\n\nvoid ns4_vr4300i_mfc0(struct _vr4300i *vr) {\n uint32_t rt = (vr -> op >> 0x10) & 0x1f;\n uint32_t fs = (vr -> op >> 0xb) & 0x1f;\n\n vr -> re...
106
1
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 24.43, "nodes": 69, "errors": 0, "source_hash": "71fe4fce89d7905d7fe1190e77b477b0f951a6a14777f0c841b5c31112b68567", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
10,257
c
/* * CRenderViewDreamcast.h * * Created on: Jan 31, 2015 * Author: yev */ #if defined(OS_KOS) #ifndef CRENDERVIEWDREAMCAST_H #define CRENDERVIEWDREAMCAST_H #include "Global.h" #include "IRenderView.h" namespace jam { class CRenderViewDreamcast : public IRenderView { public: CRenderViewDreamcast(); ...
26.6
30
(translation_unit) "/*\n * CRenderViewDreamcast.h\n *\n * Created on: Jan 31, 2015\n * Author: yev\n */\n\n#if defined(OS_KOS)\n\n#ifndef CRENDERVIEWDREAMCAST_H\n#define CRENDERVIEWDREAMCAST_H\n\n#include "Global.h"\n#include "IRenderView.h"\n\nnamespace jam {\n\nclass CRenderViewDreamcast : public IRenderView {\...
153
5
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 26.6, "nodes": 90, "errors": 0, "source_hash": "26453a3e16eac6627cd9f5b15ce571940ae0c9d88189b479a837e6bedad3d44e", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if defined(...
10,258
c
/* * Copyright 2008 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can * be found in the LICENSE file. */ /* * NaCl Server Runtime mutex and condition variable abstraction layer. * The NaClX* interfaces just invoke the no-X versions of the * syn...
40.46
37
(translation_unit) "/*\n * Copyright 2008 The Native Client Authors. All rights reserved.\n * Use of this source code is governed by a BSD-style license that can\n * be found in the LICENSE file.\n */\n\n/*\n * NaCl Server Runtime mutex and condition variable abstraction layer.\n * The NaClX* interfaces just invoke the...
192
1
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 40.46, "nodes": 147, "errors": 0, "source_hash": "69f041172857267e1e0ac816b5a2a738b74d64296a9253dc7fba0abbbf54492f", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,259
c
// -*- c++ -*- #ifndef _GTKMM_CHILDPROPERTYPROXY_BASE_H #define _GTKMM_CHILDPROPERTYPROXY_BASE_H /* childpropertyproxy_base.h * * Copyright 2014 The gtkmm Development Team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as p...
35.67
57
(translation_unit) "// -*- c++ -*-\n#ifndef _GTKMM_CHILDPROPERTYPROXY_BASE_H\n#define _GTKMM_CHILDPROPERTYPROXY_BASE_H\n\n/* childpropertyproxy_base.h\n *\n * Copyright 2014 The gtkmm Development Team\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser G...
282
12
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 35.67, "nodes": 155, "errors": 0, "source_hash": "eacb8b4cf3d63c0bea5a82cb524526cb25a292b589b24a9a5e3241a9683105fa", "categorized_nodes": 109}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,260
c
/* * Simple XML tree exporter * Written by <NAME> * 2018, MIT License */ #include <map> #include <sstream> #include <vector> namespace XML { class Entity : public std::map<std::string, std::string> { std::vector<Entity> children; // Entity name std::string name; public: Entity() : name("ent...
23.3
74
(translation_unit) "/*\n * Simple XML tree exporter\n * Written by <NAME>\n * 2018, MIT License\n */\n#include <map>\n#include <sstream>\n#include <vector>\nnamespace XML {\nclass Entity : public std::map<std::string, std::string> {\n std::vector<Entity> children;\n // Entity name\n std::string name;\n\npublic...
597
20
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 23.3, "nodes": 324, "errors": 0, "source_hash": "321ffffb358f5d6fc55429d997bb1f108c07dbb6df3d831a5403abcf03beb03a", "categorized_nodes": 231}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
10,261
c
//===-- Cpu0MachineFunctionInfo.h - Private data used for Cpu0 ----*- C++ -*-=// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
42.28
112
(translation_unit) "//===-- Cpu0MachineFunctionInfo.h - Private data used for Cpu0 ----*- C++ -*-=//\n//\n// The LLVM Compiler Infrastructure\n//\n// This file is distributed under the University of Illinois Open Source\n// License. See LICENSE.TXT for details.\n//\n//===----------------------------...
833
18
{"language": "c", "success": true, "metadata": {"lines": 112, "avg_line_length": 42.28, "nodes": 475, "errors": 0, "source_hash": "5a4e30f7f916992794eddcc819742db675052db408f03454f6920d951cd62f2b", "categorized_nodes": 332}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,262
c
//eFFT.c //T.Lloyd //2015-2016 #include <stdlib.h> #include <stdio.h> #include <complex.h> #include <math.h> #define M_PI 3.141592653589793 int * rrotate(int * input,unsigned int bits, int n){ int lsb=0; for(int i=0;i<n;i++){ lsb=(input[i])&1; lsb<<=(bits-1); input[i]=lsb|((input[i])>>1); } return input...
25.4
129
(translation_unit) "//eFFT.c\n//T.Lloyd \n//2015-2016\n\n#include <stdlib.h>\n#include <stdio.h>\n#include <complex.h>\n#include <math.h>\n\n#define M_PI 3.141592653589793\n\n\nint * rrotate(int * input,unsigned int bits, int n){\n int lsb=0;\n for(int i=0;i<n;i++){ \n lsb=(input[i])&1;\n lsb<<=(bits-1);\n input[i]=...
1,516
26
{"language": "c", "success": true, "metadata": {"lines": 129, "avg_line_length": 25.4, "nodes": 1041, "errors": 0, "source_hash": "e68478e6b4bf8d78ef96c246d961e470d543ad62c60131fbc2b984b57a06532d", "categorized_nodes": 705}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,263
c
#include "lzw.h" #define INITIAL_TABLE_SIZE 999983 void encode(FILE *input, FILE *output, int startBits, int maxBits) { /*Initialize dictionary D and then insert characters 0 through 255*/ HashTable *table = createTable(INITIAL_TABLE_SIZE); initializeDict(table); int nextCode = 256; Bits *outBit...
25.84
153
(translation_unit) "#include "lzw.h"\n\n#define INITIAL_TABLE_SIZE 999983\n\nvoid encode(FILE *input, FILE *output, int startBits, int maxBits)\n{\n\n /*Initialize dictionary D and then insert characters 0 through 255*/\n HashTable *table = createTable(INITIAL_TABLE_SIZE);\n initializeDict(table);\n\n int n...
1,270
0
{"language": "c", "success": true, "metadata": {"lines": 153, "avg_line_length": 25.84, "nodes": 756, "errors": 0, "source_hash": "ac02167800ee55e1bb17b9bef334747e07a447b0dc01c858395aa2fc53f5bdb5", "categorized_nodes": 510}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,264
c
#pragma once #include <base/logging.h> #include "base/check.h" #include <chrono> /// \todo replace with `base/time/time.h` namespace basic { // Can be used in hot loop (think about update loop of game server). // Assumed to be updated with each loop iteration // based on elapsed time interval (time delta). // // Do...
29.66
77
(translation_unit) "#pragma once\n\n#include <base/logging.h>\n#include "base/check.h"\n\n#include <chrono> /// \todo replace with `base/time/time.h`\n\nnamespace basic {\n\n// Can be used in hot loop (think about update loop of game server).\n// Assumed to be updated with each loop iteration\n// based on elapsed time ...
411
24
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 29.66, "nodes": 206, "errors": 0, "source_hash": "97d8da0013347a056c5fffc2b28cabe1b0fca97bd0c0312ae11e538eebc8c188", "categorized_nodes": 151}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
10,265
c
#ifndef __VIDEO_H #define __VIDEO_H #include "avi.h" //////////////////// VIDEO BUFF /////////////////////// #include "framebuffer.h" #include "omv_boardconfig.h" extern uint8_t g_ai_buf_in[OMV_INIT_W * OMV_INIT_H * 3]; // usually for sensor( camera ) #define VIDEO_BUFF() g_ai_buf_in // we use omv module's frame...
35.62
60
(translation_unit) "#ifndef __VIDEO_H\n#define __VIDEO_H\n\n#include "avi.h"\n\n\n//////////////////// VIDEO BUFF ///////////////////////\n#include "framebuffer.h"\n#include "omv_boardconfig.h"\nextern uint8_t g_ai_buf_in[OMV_INIT_W * OMV_INIT_H * 3]; // usually for sensor( camera )\n#define VIDEO_BUFF() g_ai_buf_in...
477
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 35.62, "nodes": 353, "errors": 0, "source_hash": "401254cfcd6745da3b92c0585e794b65d897e7c2d03f19434b8f57b4443982dd", "categorized_nodes": 216}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,266
c
// // DrawView.h // DrawWave // // Created by LeiLuRong on 15/12/5. // Copyright © 2015年 LeiLuRong. All rights reserved. // #import <UIKit/UIKit.h> @interface DrawView : UIView @end
17.6
10
(translation_unit) "//\n// DrawView.h\n// DrawWave\n//\n// Created by LeiLuRong on 15/12/5.\n// Copyright © 2015年 LeiLuRong. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface DrawView : UIView\n\n@end\n" (comment) "//" (comment) "// DrawView.h" (comment) "// DrawWave" (comment) "//" (com...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 17.6, "nodes": 10, "errors": 0, "source_hash": "8a5d9c97901bf9b083564f485cef6a4b591931bcce0a96a0fc8f516450ea6b87", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKit...
10,267
c
/* * Copyright (c) 2016-2020 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR ...
24.58
101
(translation_unit) "/*\n * Copyright (c) 2016-2020 <NAME> <<EMAIL>>\n *\n * Permission to use, copy, modify, and distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVI...
830
25
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 24.58, "nodes": 486, "errors": 0, "source_hash": "b0ad7825ba6132757e68ba36f038a0bfa321ff03aa52dd10b82381d315854904", "categorized_nodes": 349}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
10,268
c
#include<stdio.h> #include<stdlib.h> #include<string.h> void get_bin_mask(char*, char*); int main(){ char id1[16], id2[16], mask[16]; while(scanf("%s %s %s", id1, id2, mask) != EOF){ int i, nz = 0, same = 1; char b1[32], b2[32], bmask[32]; get_bin_mask(b1, id1); get_bin_mask(b2, id2); get_bin_mask(bmask, m...
16.73
63
(translation_unit) "#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\nvoid get_bin_mask(char*, char*);\nint main(){\n char id1[16], id2[16], mask[16];\n while(scanf("%s %s %s", id1, id2, mask) != EOF){\n int i, nz = 0, same = 1;\n char b1[32], b2[32], bmask[32]; \n get_bin_mask(b1, id1);\n get_bin_mask(b2,...
600
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 16.73, "nodes": 369, "errors": 0, "source_hash": "0f15f14ea0659ba51307532b11ca9c0b47c29bfc41da2a3cef2d3ef2354844a5", "categorized_nodes": 238}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,269
c
#ifndef AUTHORSWINDOW_H #define AUTHORSWINDOW_H #include <QMainWindow> #include "fresnel.h" namespace Ui { class AuthorsWindow; } class AuthorsWindow : public QMainWindow { Q_OBJECT private: Fresnel fresnel; public: explicit AuthorsWindow (QWidget *parent = 0); ~AuthorsWindow(); public slots: ...
16.61
23
(translation_unit) "#ifndef AUTHORSWINDOW_H\n#define AUTHORSWINDOW_H\n\n#include <QMainWindow>\n#include "fresnel.h"\n\n\nnamespace Ui {\nclass AuthorsWindow;\n}\n\n\nclass AuthorsWindow : public QMainWindow\n{\n Q_OBJECT\n\nprivate:\n Fresnel fresnel;\n\npublic:\n explicit AuthorsWindow (QWidget *parent = 0);...
104
5
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 16.61, "nodes": 61, "errors": 0, "source_hash": "cbe7e3a8f7e5e2d6e5dfb8d304887f491f71180db82846c88e1814c0a8916f8c", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,270
c
/* Project #12 (CSeries) 11_UNIVERSITYCATALOG_V1.C ------------------ Description: This is a HashTable which implements a hash function. A hash function turns a key into a random-looking number, and it must always return the same number given the same key. Look at the output to know more ;) Requerements: Exercis...
24.99
317
(translation_unit) "/*\nProject #12 (CSeries)\n11_UNIVERSITYCATALOG_V1.C\n------------------\n\nDescription:\n\nThis is a HashTable which implements a hash function.\n\nA hash function turns a key into a random-looking number, \nand it must always return the same number given the same key.\n\nLook at the output to know...
1,827
0
{"language": "c", "success": true, "metadata": {"lines": 317, "avg_line_length": 24.99, "nodes": 1046, "errors": 0, "source_hash": "4a03f3436d5e6a46714365c10706ace6f8afd1f48157bed9b407b8c5d6bb4ae3", "categorized_nodes": 705}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "in...
10,271
c
#ifndef MULTISCALESINKHORNTRANSPORT_H #define MULTISCALESINKHORNTRANSPORT_H #include "SparseSinkhornTransport.h" #include "MultiscaleTransport.h" #include <vector> #include <queue> #include <ctime> template <typename TPrecision> class SinkhornParameters{ public: SinkhornParameters(){ lambda=50; ...
34.49
241
(translation_unit) "#ifndef MULTISCALESINKHORNTRANSPORT_H\n#define MULTISCALESINKHORNTRANSPORT_H\n\n#include "SparseSinkhornTransport.h"\n#include "MultiscaleTransport.h"\n\n\n#include <vector>\n#include <queue>\n#include <ctime>\n\n\n\ntemplate <typename TPrecision>\nclass SinkhornParameters{\n\n\n public:\n\n\n S...
2,555
46
{"language": "c", "success": true, "metadata": {"lines": 241, "avg_line_length": 34.49, "nodes": 1563, "errors": 0, "source_hash": "f747db4e18d05657e739052f8c77c57f70f143e265e293011188a6ec042dde64", "categorized_nodes": 1137}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#if...
10,272
c
#include "ffftp.h" #include <QtWidgets/QtWidgets> #include <QtCore/QDebug> #include <QtGui/QStandardItemModel> #include <vector> #define DECLARE_CONSTANT_CHAR(x) extern const char* const x; #define DECLARE_CONSTANT_QSTRING(x) extern const QString x; DECLARE_CONSTANT_CHAR(kEmptyString) DECLARE_CONSTANT_CHAR(kResImage...
39.05
19
(translation_unit) "nclude "ffftp.h"\n#include <QtWidgets/QtWidgets>\n#include <QtCore/QDebug>\n#include <QtGui/QStandardItemModel>\n#include <vector>\n\n#define DECLARE_CONSTANT_CHAR(x) extern const char* const x;\n#define DECLARE_CONSTANT_QSTRING(x) extern const QString x;\n\nDECLARE_CONSTANT_CHAR(kEmptyString)\nDECL...
109
1
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 39.05, "nodes": 77, "errors": 0, "source_hash": "d264ed9033df9a4cee035233860448bed23ccf7a8459d88fbc3ec8ff231f9340", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "nclude...
10,273
c
/** * @file eplssrc.h * @defgroup eplssrc openSAFETY Stack * The main sources for the openSAFETY Stack * @{ * @defgroup SCM_part Safety Configuration Manager * The sources for the Safety Configuration Manager * * @defgroup SN Safety Node * The sources for the Safety Node * @} * */
21.62
13
(translation_unit) "/**\n * @file eplssrc.h\n * @defgroup eplssrc openSAFETY Stack\n * The main sources for the openSAFETY Stack\n * @{\n * @defgroup SCM_part Safety Configuration Manager\n * The sources for the Safety Configuration Manager\n *\n * @defgroup SN Safety Node\n * The sources for the Safety Node\n * @}\n *...
2
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 21.62, "nodes": 0, "errors": 0, "source_hash": "35db4afc9502e6c15866c2c8536087ef41df0649d173ca40d7bffb22b4bac642", "categorized_nodes": 0}, "ast": {"root": "translation_unit", "nodes": []}, "node_categories": {"declarations": {"functions": ...
10,274
c
// // GJFileAudioPlayer.h // OpenALDemo // // Created by <NAME> on 7/4/15. // Copyright (c) 2015 gensee. All rights reserved. // #import <Foundation/Foundation.h> @interface GJFileAudioPlayer : NSObject - (instancetype)init; - (void)playAudioFile:(NSString*)filePath loopMode:(BOOL)isLoop; - (void)play; - (voi...
24.53
15
(ERROR) "//\n// GJFileAudioPlayer.h\n// OpenALDemo\n//\n// Created by <NAME> on 7/4/15.\n// Copyright (c) 2015 gensee. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface GJFileAudioPlayer : NSObject\n\n- (instancetype)init;\n\n- (void)playAudioFile:(NSString*)filePath loopMode:(BOOL)isLoop;...
77
7
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 24.53, "nodes": 43, "errors": 0, "source_hash": "6e19d2ac5a00f41f192ceca30192c98022c850a03ba3bdb1fd3593e6437061fe", "categorized_nodes": 25}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// GJFileAudioPlayer.h...
10,275
c
#include <ngx_config.h> #include <ngx_core.h> #include <openssl/aes.h> #include <openssl/rand.h> #include <openssl/evp.h> #include <ngx_rtmp.h> #include "ngx_rtmp_cenc.h" void debug_counter(ngx_rtmp_session_t *s, uint8_t *c, uint8_t *k, size_t l) { u_char hexc[AES_BLOCK_SIZE*2+1]; u_char hexk[AES_BLOCK_SIZ...
30.88
154
(translation_unit) "#include <ngx_config.h>\n#include <ngx_core.h>\n#include <openssl/aes.h>\n#include <openssl/rand.h>\n#include <openssl/evp.h>\n#include <ngx_rtmp.h>\n#include "ngx_rtmp_cenc.h"\n\n\nvoid \ndebug_counter(ngx_rtmp_session_t *s, uint8_t *c, uint8_t *k, size_t l)\n{\n u_char hexc[AES_BLOCK_SIZE*2+1];...
1,298
0
{"language": "c", "success": true, "metadata": {"lines": 154, "avg_line_length": 30.88, "nodes": 822, "errors": 0, "source_hash": "6a176b41d990d8f442bf41a1c0e43611ae110552a823d5f9e9082de54472e454", "categorized_nodes": 600}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,276
c
/* CSE 5462 project 1 <NAME> 200229714 TCPD process Usage: ./tcpd */ #include <stdio.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <stdlib.h> #include <string.h> #include <sys/wait.h> #include <signal.h> #include <time.h> #include <linux/tcp.h> //packet with sender enum and ...
27.02
198
(translation_unit) "/*\nCSE 5462 project 1\n<NAME> 200229714\nTCPD process\nUsage: ./tcpd\n*/\n\n#include <stdio.h>\n#include <sys/types.h> \n#include <sys/socket.h> \n#include <netinet/in.h> \n#include <stdlib.h>\n#include <string.h>\n#include <sys/wait.h>\n#include <signal.h>\n#include <time.h>\n#include <linux/tc...
1,745
0
{"language": "c", "success": true, "metadata": {"lines": 198, "avg_line_length": 27.02, "nodes": 1062, "errors": 0, "source_hash": "7d9e1163710ddc5fd2699c7dcdf246bd7612fee5b55f491fcd03d60e09520523", "categorized_nodes": 788}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
10,277
c
#include <stdio.h> #include <stdlib.h> #include <omp.h> #define IF if (v[i] > max) #define NUM_EXEC 5 static void populate_vector(size_t N, int v[]) { size_t i; srand(1337); for (i = 0; i < N; ++i) v[i] = rand(); } static double contention_test(size_t N, int T, const int v[]) { size_t i; ...
22.13
78
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <omp.h>\n\n#define IF if (v[i] > max)\n\n#define NUM_EXEC 5\n\nstatic void populate_vector(size_t N, int v[])\n{\n size_t i;\n srand(1337);\n\n for (i = 0; i < N; ++i)\n v[i] = rand();\n}\n\nstatic double contention_test(size_t N, int...
652
0
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 22.13, "nodes": 388, "errors": 0, "source_hash": "1c9548ce0ac5bb8dd12b3d7c56ab2334820adf1830f4a4d70f552ec912a8ef9d", "categorized_nodes": 272}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,278
c
/* t-support.h - Helper for the regression tests * Copyright (C) 2007 Free Software Foundation, Inc. * * This file is part of GnuPG. * * GnuPG is free software; you can redistribute and/or modify this * part of GnuPG under the terms of either * * - the GNU Lesser General Public License as published by the Fr...
39.17
63
(translation_unit) "/* t-support.h - Helper for the regression tests\n * Copyright (C) 2007 Free Software Foundation, Inc.\n *\n * This file is part of GnuPG.\n *\n * GnuPG is free software; you can redistribute and/or modify this\n * part of GnuPG under the terms of either\n *\n * - the GNU Lesser General Public Li...
194
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 39.17, "nodes": 143, "errors": 0, "source_hash": "53f8cc979b38f6bc61f17cce9388689ff9bb91c6dcea9d3d060345053a35cc8a", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,279
c
#include <utility> #include <vector> namespace Collatz { /* create the size of Collatz sequence with root num */ unsigned int collatzSeqSize(const unsigned int &root); /* Create a pair of the size of the largest collatz sequence and its root number. */ std::pair<unsigned int, unsigned int> largestPair...
37.89
9
(translation_unit) "#include <utility>\n#include <vector>\n\nnamespace Collatz\n{\n /* create the size of Collatz sequence with root num */\n unsigned int collatzSeqSize(const unsigned int &root);\n\n /* Create a pair of the size of the largest collatz sequence and its root number. */\n std::pair<unsigned i...
66
5
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 37.89, "nodes": 43, "errors": 0, "source_hash": "3c66b88a54294bc7b2d00ec6b3b63f0bc54edf93a82c4a941994f267f5163a30", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
10,280
c
/* ---------------------------------------------------------------------------- * ATMEL Microcontroller Software Support * ---------------------------------------------------------------------------- * Copyright (c) 2009, Atmel Corporation * * All rights reserved. * * Redistribution and use in source and...
27.9
296
(translation_unit) "/* ----------------------------------------------------------------------------\n * ATMEL Microcontroller Software Support\n * ----------------------------------------------------------------------------\n * Copyright (c) 2009, Atmel Corporation\n *\n * All rights reserved.\n *\n * Redistrib...
1,249
0
{"language": "c", "success": true, "metadata": {"lines": 296, "avg_line_length": 27.9, "nodes": 773, "errors": 0, "source_hash": "d5310ab0fa1345390d017aeaa7272837a168d165736144d13ac18c21a1c6edb0", "categorized_nodes": 548}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,281
c
#pragma once #include <vector> #include "Board.h" class Map { private: Board* mapBoard; std::vector<Board> mapTiles; unsigned mapIdx( unsigned x, unsigned y ) { if ( x < mapSide && y < mapSide ) { return mapSide * x + y; } else throw; } public: static float ui_mapDisplayScale; unsi...
25.76
95
(translation_unit) "#pragma once\n#include <vector>\n#include "Board.h"\n\n\nclass Map\n{\nprivate:\n Board* mapBoard;\n std::vector<Board> mapTiles;\n unsigned mapIdx( unsigned x, unsigned y )\n {\n if ( x < mapSide && y < mapSide )\n {\n return mapSide * x + y;\n }\n else throw;\n }\npublic:\n ...
871
14
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 25.76, "nodes": 546, "errors": 0, "source_hash": "32745f92c666462d9bb773cb2527bb366a17fa9807ec63d32a20b532acbf6cdd", "categorized_nodes": 386}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
10,282
c
#include "m_config.h" #include <stdlib.h> #include <ctype.h> #include <check.h> #include <mstdlib/mstdlib.h> /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ extern Suite *chr_suite(void); /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ #de...
30.15
289
(translation_unit) "#include "m_config.h"\n#include <stdlib.h>\n#include <ctype.h>\n#include <check.h>\n\n#include <mstdlib/mstdlib.h>\n\n/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */\n\nextern Suite *chr_suite(void);\n\n/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
2,279
1
{"language": "c", "success": true, "metadata": {"lines": 289, "avg_line_length": 30.15, "nodes": 1351, "errors": 0, "source_hash": "43776b2dea4cdb40bfdd5fbfd9621a75e0ba1cd617f1c5684b9bacf8e6613d6c", "categorized_nodes": 916}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
10,283
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* get_access_namstat.c :+: :+: :+: ...
32.13
67
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* get_access_namstat.c ...
653
0
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 32.13, "nodes": 407, "errors": 0, "source_hash": "4d895a05d9ed54c93e044e0702c2313111c8b89f4d3b4e0d203f11ff6fb54ad0", "categorized_nodes": 262}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,284
c
#ifndef ASN1_H #define ASN1_H #include <stdint.h> #define ASN_BUFFER_SIZE 256 typedef uint16_t asn_tag_t; typedef uint32_t asn_length_t; typedef uint8_t asn_octet_t; typedef uint8_t asn_flag_t; typedef struct asn_ber asn_ber_t; typedef struct asn_tag_octet asn_tag_octet_t; typedef struct tlv_triplet tlv_triplet_t;...
30.46
61
(translation_unit) "#ifndef ASN1_H\n#define ASN1_H\n\n#include <stdint.h>\n\n#define ASN_BUFFER_SIZE 256\n\ntypedef uint16_t asn_tag_t;\ntypedef uint32_t asn_length_t;\ntypedef uint8_t asn_octet_t;\ntypedef uint8_t asn_flag_t;\n\ntypedef struct asn_ber asn_ber_t;\ntypedef struct asn_tag_octet asn_tag_octet_t;\ntypedef...
300
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 30.46, "nodes": 217, "errors": 0, "source_hash": "bed21553b11d96f9b01d4b5b9fa3e6aafb837cd6c6ed591fb455996fea7780ce", "categorized_nodes": 166}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,285
c
// // SQAnalyzingLegitimacyManager.h // SQAnalyzingLegitimacy // // Created by SNQU on 2017/3/22. // Copyright © 2017年 SNQU. All rights reserved. // /****************************************************************************************/ /* 本类用来判断用户数据是否合法 */ /***************************************************...
27.52
29
(translation_unit) "//\n// SQAnalyzingLegitimacyManager.h\n// SQAnalyzingLegitimacy\n//\n// Created by SNQU on 2017/3/22.\n// Copyright © 2017年 SNQU. All rights reserved.\n//\n\n/****************************************************************************************/\n/*\n 本类用来判断用户数据是否合法\n */\n/*******************...
95
10
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 27.52, "nodes": 55, "errors": 0, "source_hash": "a0f2428a37c6f9e6c0233532b5ceb1e2cc5094bc3454db05f5fedac450ad23cc", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "h>\n\n@in...
10,286
c
/* * Copyright 2018, Data61 * Commonwealth Scientific and Industrial Research Organisation (CSIRO) * ABN 41 687 119 230. * * This software may be distributed and modified according to the terms of * the BSD 2-Clause license. Note that NO WARRANTY is provided. * See "LICENSE_BSD2.txt" for details. * * @TAG(DATA...
32.55
31
(translation_unit) "/*\n * Copyright 2018, Data61\n * Commonwealth Scientific and Industrial Research Organisation (CSIRO)\n * ABN 41 687 119 230.\n *\n * This software may be distributed and modified according to the terms of\n * the BSD 2-Clause license. Note that NO WARRANTY is provided.\n * See "LICENSE_BSD2.txt" f...
230
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 32.55, "nodes": 140, "errors": 0, "source_hash": "f8724e0dc7b8265417fcfe24dac4e617eae3b1e18ffa16007bab3fc1f7967aeb", "categorized_nodes": 107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,287
c
#include <node_api.h> #include "common.h" static napi_value Init(napi_env env, napi_value exports) { napi_value external; NAPI_CALL(env, napi_create_external(env, env, NULL, NULL, &external)); return external; } NAPI_MODULE(NODE_GYP_MODULE_NAME, Init)
31.25
8
(translation_unit) "#include <node_api.h>\n#include "common.h"\n\nstatic napi_value Init(napi_env env, napi_value exports) {\n napi_value external;\n NAPI_CALL(env, napi_create_external(env, env, NULL, NULL, &external));\n return external;\n}\n\nNAPI_MODULE(NODE_GYP_MODULE_NAME, Init)\n" (preproc_include) "#includ...
74
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 31.25, "nodes": 42, "errors": 0, "source_hash": "559488820245a973d155be43638cd2f9633d81dc4af6fac5edf86e30269c1e4e", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
10,288
c
// // NSOprationController.h // TryGrandCenterDispatch // // Created by Liu on 16/7/7. // Copyright © 2016年 Liu. All rights reserved. // #import <UIKit/UIKit.h> @interface NSOprationController : UIViewController @end
21.1
10
(translation_unit) "//\n// NSOprationController.h\n// TryGrandCenterDispatch\n//\n// Created by Liu on 16/7/7.\n// Copyright © 2016年 Liu. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface NSOprationController : UIViewController\n\n@end\n" (comment) "//" (comment) "// NSOprationController.h" (...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.1, "nodes": 10, "errors": 0, "source_hash": "5356b523def12888bbaf6397aae279e635756caf8a8d51fca837bbb73bf2915b", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKit...
10,289
c
// // QuestionSet.h // sema2 // // Created by <NAME> on 15/04/2015. // Copyright (c) 2015 <NAME>. All rights reserved. // #import <Realm/Realm.h> #import "Question.h" @interface QuestionSet : RLMObject @property RLMArray<Question> *questions; @property NSInteger dbQuestionSetId; @property BOOL randomiseDisplayO...
22.67
15
(translation_unit) "//\n// QuestionSet.h\n// sema2\n//\n// Created by <NAME> on 15/04/2015.\n// Copyright (c) 2015 <NAME>. All rights reserved.\n//\n\n#import <Realm/Realm.h>\n#import "Question.h"\n\n@interface QuestionSet : RLMObject\n\n@property RLMArray<Question> *questions;\n\n@property NSInteger dbQuestionSetI...
57
12
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 22.67, "nodes": 42, "errors": 0, "source_hash": "12f91fa7e89c5a199103687f3f5ad9dda2aa67640aa0c3653b0446249c31a934", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
10,290
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/StoreServices.framework/StoreServices */ @interface SSItem : NSObject <SSURLConnectionRequestDelegate> { NSDate * _expirationDate; NSArray * _offers; NSDictionary * _properties; NSString * _tellAFriendBody; NSString * _tell...
32.68
105
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/StoreServices.framework/StoreServices\n */\n\n@interface SSItem : NSObject <SSURLConnectionRequestDelegate> {\n NSDate * _expirationDate;\n NSArray * _offers;\n NSDictionary * _properties;\n NSString * _tellAFrie...
1,200
57
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 32.68, "nodes": 755, "errors": 0, "source_hash": "a0d59c601a1155bc90422b473ab458fdc145b75de086144052c538b2f178c99f", "categorized_nodes": 472}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent":...
10,291
c
// // Copyright (C) 2014 <NAME> <nacitar at ubercpp dot com> // // 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...
37.81
108
(translation_unit) "//\n// Copyright (C) 2014 <NAME> <nacitar at ubercpp dot com>\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...
375
15
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 37.81, "nodes": 191, "errors": 0, "source_hash": "c6a4dd479318ab89fc16611759e8c0455757986dd561d1500c202b3fb410fda1", "categorized_nodes": 127}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef INCLU...
10,292
c
#include <algorithm> struct TreeNode { int val; TreeNode *left; TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) {} }; class Solution { public: int minDepth(TreeNode *root) { if (!root) return 0; else if (!root->left and !root->right) return 1; else if (ro...
30.5
16
(translation_unit) "#include <algorithm>\n\nstruct TreeNode {\n int val;\n TreeNode *left;\n TreeNode *right;\n TreeNode(int x) : val(x), left(NULL), right(NULL) {}\n};\n\nclass Solution {\npublic:\n int minDepth(TreeNode *root) {\n if (!root) return 0;\n else if (!root->left and !root->rig...
212
16
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 30.5, "nodes": 131, "errors": 0, "source_hash": "afa27f703759b033e8d4cb6bd044518bb6960c0ba18dd769f930c34f36f66363", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
10,293
c
#ifndef __CRIS_SMPLOCK_H #define __CRIS_SMPLOCK_H #include <linux/config.h> #ifdef CONFIG_SMP #error "SMP is not supported for CRIS" /* * Locking the kernel */ extern __inline void lock_kernel(void) { unsigned long flags; int proc = smp_processor_id(); save_flags(flags); cli(); /* set_bit works atomic in...
20.71
66
(translation_unit) "#ifndef __CRIS_SMPLOCK_H\n#define __CRIS_SMPLOCK_H\n\n#include <linux/config.h>\n\n#ifdef CONFIG_SMP\n\n#error "SMP is not supported for CRIS"\n\n/*\n * Locking the kernel \n */\n \nextern __inline void lock_kernel(void)\n{\n unsigned long flags;\n int proc = smp_processor_id();\n\n save_flags(flags...
328
0
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 20.71, "nodes": 193, "errors": 0, "source_hash": "4ab16127d9fa6cd50e015d93012d94cce3968a82a11f062b22e2cbf52d3a53b2", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,294
c
#ifndef _GPU_SCROLL_H #define _GPU_SCROLL_H 1 #include "banking.h" void install_gpu_scroll(); DECLARE_BANKED_VOID(install_gpu_scroll, BANK(5), bk_install_gpu_scroll, (), ()) #endif
25
7
(translation_unit) "#ifndef _GPU_SCROLL_H\n#define _GPU_SCROLL_H 1\n\n#include "banking.h"\n\nvoid install_gpu_scroll();\n\nDECLARE_BANKED_VOID(install_gpu_scroll, BANK(5), bk_install_gpu_scroll, (), ())\n\n\n#endif" (preproc_ifdef) "#ifndef _GPU_SCROLL_H\n#define _GPU_SCROLL_H 1\n\n#include "banking.h"\n\nvoid insta...
50
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 25.0, "nodes": 29, "errors": 0, "source_hash": "0eef6eb850853122fe55a16840a00699e50339e8ef0e917a8b29ec7fee47e269", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _G...
10,295
c
/* * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file...
34.34
112
(translation_unit) "/*\n* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n*\n* Licensed under the Apache License, Version 2.0 (the "License").\n* You may not use this file except in compliance with the License.\n* A copy of the License is located at\n*\n* http://aws.amazon.com/apache2.0\n...
703
41
{"language": "c", "success": true, "metadata": {"lines": 112, "avg_line_length": 34.34, "nodes": 383, "errors": 0, "source_hash": "b3ecb192bcc1ff7da95af296653bd6a011fdc31d52be632cd8e6454cf50cde7b", "categorized_nodes": 255}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
10,296
c
#include <sys/types.h> #include <sys/stat.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <unistd.h> #include "nix.h" #include "nix-fd.h" int nix_fchdir(int fd, nix_env_t *env) { int rfd; if ((rfd = nix_fd_get(fd)) < 0) { nix_env_set_errno(env, EBADF); return (-1); } ...
16.31
90
(translation_unit) "#include <sys/types.h>\n#include <sys/stat.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <errno.h>\n#include <unistd.h>\n\n#include "nix.h"\n#include "nix-fd.h"\n\nint\nnix_fchdir(int fd, nix_env_t *env)\n{\n int rfd;\n\n if ((rfd = nix_fd_get(fd)) < 0) {\n nix_env_set_...
635
0
{"language": "c", "success": true, "metadata": {"lines": 90, "avg_line_length": 16.31, "nodes": 352, "errors": 0, "source_hash": "49c76fd4a0ecccfb9206035daaac2a13816080be1a32b74218d30a5f2385c039", "categorized_nodes": 265}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,297
c
#ifndef _CHASHTABLE_H_ #define _CHASHTABLE_H_ #include <vector> #include "CBoard.h" #include "CHashEntry.h" /*************************************************************** * declaration of CHashTable * * This is a wrapper for the std::vector class. * It contains an array of hash values. ***********************...
28.18
22
(translation_unit) "#ifndef _CHASHTABLE_H_\n#define _CHASHTABLE_H_\n\n#include <vector>\n\n#include "CBoard.h"\n#include "CHashEntry.h"\n\n/***************************************************************\n * declaration of CHashTable\n *\n * This is a wrapper for the std::vector class.\n * It contains an array of hash ...
95
4
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 28.18, "nodes": 51, "errors": 0, "source_hash": "8f6cab60bfecfb1b7870f480e5985ce1e4331c17675cf1c1219b89393a5e5025", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,298
c
#pragma once #include "Event.h" class EventLog { public: EventLog(); ~EventLog(); EventLog(const EventLog& old); EventLog& operator= (const EventLog& rhs); void addEvent(const Event& _event); void print(); private: Event* events; unsigned int size; unsigned int capacity; };
15.82
17
(translation_unit) "#pragma once\n#include "Event.h"\n\nclass EventLog\n{\npublic:\n EventLog();\n ~EventLog();\n EventLog(const EventLog& old);\n EventLog& operator= (const EventLog& rhs);\n \n void addEvent(const Event& _event);\n void print();\nprivate:\n Event* events;\n unsigned int size;\n unsigned int capacity;\...
112
3
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 15.82, "nodes": 63, "errors": 0, "source_hash": "48c8e1fd6f8bee1a1c88d73a86e26f7c3ac27a324a72b13e7a09829448c21883", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
10,299