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
#if !defined MOTOR_H_INCLUDED__ #define MOTOR_H_INCLUDED__ class Motor { private: int pin0_, pin1_, pin_pwm_; public: static const int NN = 0; static const int FW = 1; static const int BW = 2; static const int BR = 3; Motor(); Motor(int p0, int p1, int pwm=-1); void setPin(int p0, int p1); void s...
22.05
19
(translation_unit) "#if !defined MOTOR_H_INCLUDED__\n#define MOTOR_H_INCLUDED__\n\nclass Motor {\n private:\n int pin0_, pin1_, pin_pwm_;\n\n public:\n static const int NN = 0;\n static const int FW = 1;\n static const int BW = 2;\n static const int BR = 3;\n\n Motor();\n Motor(int p0, int p1, int pwm=-1);\n vo...
171
4
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 22.05, "nodes": 106, "errors": 0, "source_hash": "715df350083353caa56711be4950cd1d723572f3d89e7fa278853ca7bce17e91", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defin...
78,700
c
// // HandCell.h // Baccarat // // Created by <NAME> on 8/23/15. // Copyright (c) 2015 Codetrix Studio. All rights reserved. // #import <UIKit/UIKit.h> #import "Hand.h" @interface HandCell : UITableViewCell @property (weak, nonatomic) IBOutlet UIButton *btnWinnerSymbol; @property (weak, nonatomic) IBOutlet UIView...
27.33
15
(translation_unit) "//\n// HandCell.h\n// Baccarat\n//\n// Created by <NAME> on 8/23/15.\n// Copyright (c) 2015 Codetrix Studio. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "Hand.h"\n\n@interface HandCell : UITableViewCell\n@property (weak, nonatomic) IBOutlet UIButton *btnWinnerSymbol;\n@property ...
98
15
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 27.33, "nodes": 68, "errors": 0, "source_hash": "15ff20a91fa992b262b2faa994d1a442844df64af073b334a6461be0376ed7c6", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
78,701
c
/* * Escreva um programa que calcule a resistência equivalente(Re) de um circuito elétrico * composto de três resistores R1, R2, R3, ligados em paralelo. Os valores dos resistores * deverão ser lidos pelo programa. */ #include <stdio.h> #include <math.h> #include <stdlib.h> int main(){ double re, r1, r2, r3; ...
23.76
21
(translation_unit) "/*\n* Escreva um programa que calcule a resistência equivalente(Re) de um circuito elétrico\n* composto de três resistores R1, R2, R3, ligados em paralelo. Os valores dos resistores\n* deverão ser lidos pelo programa.\n*/\n#include <stdio.h>\n#include <math.h>\n#include <stdlib.h>\n\n\nint m...
128
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 23.76, "nodes": 69, "errors": 0, "source_hash": "6ccbb32ec0fea29f9587fe54eb9660e8a7835d56e8d53523726faa2c69bfcb67", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "lude <...
78,702
c
#pragma once #include <vector> #include "Matrix4D.h" #include "Vector4D.h" #include "core/app.h" #include "render/window.h" #include "config.h" class MeshResource { public: MeshResource() { } ~MeshResource() { } float bufferdata[24]{ 0.5f, 0.5f, 0.0f, // top right 1.0f, 0.0f, 0.0f, // color ...
22.81
37
(translation_unit) "#pragma once\n#include <vector>\n#include "Matrix4D.h"\n#include "Vector4D.h"\n#include "core/app.h"\n#include "render/window.h"\n#include "config.h"\nclass MeshResource {\npublic:\n MeshResource() {\n }\n\n ~MeshResource() {\n }\n\n float bufferdata[24]{\n 0.5f, 0.5f, 0.0f, // top right\n 1....
241
3
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 22.81, "nodes": 136, "errors": 0, "source_hash": "2e483454279c953a04acbe9491b9876cb1bc5ffb7d0a3d6d7fc35bf6dd3ef001", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
78,703
c
#pragma once #include <string> #include <map> #include <unordered_set> #include <set> class Apprenti_Hero { public: Apprenti_Hero(); Apprenti_Hero(std::string nom_hero_, std::string nom_civil_, std::string pouvoir_); ~Apprenti_Hero(); std::set<std::map<std::string, std::pair<int, int>>> passer_epreuves(); void voi...
26.14
28
(translation_unit) "#pragma once\n#include <string>\n#include <map>\n#include <unordered_set>\n#include <set>\nclass Apprenti_Hero\n{\npublic:\n Apprenti_Hero();\n Apprenti_Hero(std::string nom_hero_, std::string nom_civil_, std::string pouvoir_);\n ~Apprenti_Hero();\n std::set<std::map<std::string, std::pair<int, int>...
269
11
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 26.14, "nodes": 170, "errors": 0, "source_hash": "f83eee6a69f2d7b750845c2e8e65568e144c281daa75de72c4c952dbc06b3464", "categorized_nodes": 119}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
78,704
c
//convert double to string //return number of bytes written to buf. //doesn't convert numbers > 2^31 (!!!) //doesn't round(!) //max. prec after the dot: 8 digits. (!!) //+ansi stdio.h //+depends itodec uitodec //+def int dtodec(double d, char* buf, int precision){ int i = (int) d; unsigned int i2; if ( d >= 0 ) ...
21.24
29
(translation_unit) "//convert double to string\n//return number of bytes written to buf.\n//doesn't convert numbers > 2^31 (!!!)\n//doesn't round(!)\n//max. prec after the dot: 8 digits. (!!)\n\n//+ansi stdio.h\n//+depends itodec uitodec\n//+def\nint dtodec(double d, char* buf, int precision){\n int i = (int) d;\n un...
269
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 21.24, "nodes": 178, "errors": 0, "source_hash": "9656fd3508fd42d50e766b66eba62169a7ab31191c8533fa5f772251ecc10e6f", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "...
78,705
c
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <folly/Benchmark.h> #include <future> #include <random> #include "fbpcf/engine/tuple_generator/oblivious_transfer/ferre...
38.49
171
(translation_unit) "/*\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n#include <folly/Benchmark.h>\n#include <future>\n#include <random>\n\n#include "fbpcf/engine/tuple_gen...
1,890
104
{"language": "c", "success": true, "metadata": {"lines": 171, "avg_line_length": 38.49, "nodes": 1120, "errors": 0, "source_hash": "2efd0ca6c944058f6978bc7b387842e5fed8336701dbe3ad3c23f8b26ce23e66", "categorized_nodes": 775}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
78,706
c
/* * Copyright © 2012-2015 VMware, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the “License”); you may not * use this file except in compliance with the License. You may obtain a copy * of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
29.51
77
(translation_unit) "/*\n * Copyright © 2012-2015 VMware, Inc. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the “License”); you may not\n * use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n *...
304
0
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 29.51, "nodes": 160, "errors": 0, "source_hash": "01c543ebacbadf6616e450df85b30437b4f621f6787be2b91ffe152feeaf9b3f", "categorized_nodes": 122}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "\"in...
78,707
c
#ifndef ZOO_VALID_EXPRESSION #define ZOO_VALID_EXPRESSION #include <utility> #define VALID_EXPRESSION(name, type, ...)\ template<typename type, typename = void>\ struct name: std::false_type {};\ template<typename type>\ struct name<type, std::void_t<decltype(__VA_ARGS__)>>: std::true_type {} #endif
42.86
7
(translation_unit) "#ifndef ZOO_VALID_EXPRESSION\n#define ZOO_VALID_EXPRESSION\n\n#include <utility>\n\n#define VALID_EXPRESSION(name, type, ...)\\n template<typename type, typename = void>\\n struct name: std::false_type {};\\n template<typename type>\\n struct name<type, std::void_t<decltype(__VA_ARGS__)>...
23
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 42.86, "nodes": 17, "errors": 0, "source_hash": "87ba739ee6c6ca55158b20417139cc0f71c9786664651ec5bf9dfe9a7d5dfad5", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef Z...
78,708
c
/*====================================================================* * * size_t strrcpy(char buffer[], size_t length, char const *string); * * strlib.h * *. Motley Tools by <NAME> *: Published 1982-2005 by <NAME> for personal use *; Licensed under the Internet Software Consortium License * *-------...
23.37
30
(translation_unit) "/*====================================================================*\n * \n * size_t strrcpy(char buffer[], size_t length, char const *string);\n *\n * strlib.h\n *\n *. Motley Tools by <NAME>\n *: Published 1982-2005 by <NAME> for personal use\n *; Licensed under the Internet Software Con...
145
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 23.37, "nodes": 87, "errors": 0, "source_hash": "6c30b88ac31327ae76526f71c07cb21d2b074adb3e5caba865d979fee291e6d7", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,709
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @class NSOpenPanel, NSURL, NSWindow, SandboxExtensionPresentationController; @protocol SandboxExtensionPresentationDelegate <NSObject> @optional - (NSWindow *)sand...
47.83
12
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n@class NSOpenPanel, NSURL, NSWindow, SandboxExtensionPresentationController;\n\n@protocol SandboxExtensionPresentationDelegate <NSObject>...
100
15
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 47.83, "nodes": 64, "errors": 0, "source_hash": "019f26159b589bcd4b80a39dec010cf16f1e7be249f4818ffa1d862ede82bb88", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
78,710
c
#pragma once enum { MAESTRO_ADD = 0x00, MAESTRO_DP3, MAESTRO_DP4, MAESTRO_DPH, MAESTRO_DST, MAESTRO_EX2, MAESTRO_LG2, MAESTRO_LITP, MAESTRO_MUL, MAESTRO_SGE, MAESTRO_SLT, MAESTRO_FLR, MAESTRO_MAX, MAESTRO_MIN, MAESTRO_RCP, MAESTRO_RSQ, MAESTRO_unk10, MAESTRO_unk11, MAESTRO_MOVA, MAESTRO_MOV, MAEST...
16.37
54
(translation_unit) "#pragma once\nenum\n{\n MAESTRO_ADD = 0x00,\n MAESTRO_DP3,\n MAESTRO_DP4,\n MAESTRO_DPH,\n MAESTRO_DST,\n MAESTRO_EX2,\n MAESTRO_LG2,\n MAESTRO_LITP,\n MAESTRO_MUL,\n MAESTRO_SGE,\n MAESTRO_SLT,\n MAESTRO_FLR,\n MAESTRO_MAX,\n MAESTRO_MIN,\n MAESTRO_RCP,\n MAESTRO_RSQ,\n\n MAESTRO_unk10,\n MAESTRO_u...
167
0
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 16.37, "nodes": 110, "errors": 0, "source_hash": "fb2331a2527fd1ca081e4c4096c2cf6fa530f435a974c9ff68e7c03e2f6e60de", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
78,711
c
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif #import "AAToast.h" FOUNDATION_EXPORT double AAToastVersionNumber; FOUNDATION_EXPORT const unsigned char AAToastVersionStrin...
22.07
14
(translation_unit) "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#else\n#ifndef FOUNDATION_EXPORT\n#if defined(__cplusplus)\n#define FOUNDATION_EXPORT extern "C"\n#else\n#define FOUNDATION_EXPORT extern\n#endif\n#endif\n#endif\n\n#import "AAToast.h"\n\nFOUNDATION_EXPORT double AAToastVersionNumber;\nFOUNDATION_EXPORT cons...
55
1
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 22.07, "nodes": 45, "errors": 0, "source_hash": "a86d17de036e1d78c66536236013c5be15e7e2f71db00fe399264b37e9562ded", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef _...
78,712
c
#ifndef FILTER_H #define FILTER_H #include "../packet/packet.h" #define VOI_PACKET_ALLOWED 0 #define VOI_PACKET_DENIED 1 #define VOI_PACKET_PENDING 2 typedef struct voi_filter_counters { unsigned long long allowed; unsigned long long denied; } voi_filter_counters_t; extern voi_filter_counters_t *voi_filte...
25.84
19
(translation_unit) "#ifndef FILTER_H\n#define FILTER_H\n\n#include "../packet/packet.h"\n\n\n#define VOI_PACKET_ALLOWED 0\n#define VOI_PACKET_DENIED 1\n#define VOI_PACKET_PENDING 2\n\n\ntypedef struct voi_filter_counters {\n unsigned long long allowed;\n unsigned long long denied;\n} voi_filter_counters_t;\n\next...
102
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 25.84, "nodes": 78, "errors": 0, "source_hash": "abe9bcc3dc4015e878bb08a85a4ccabd0725249e8fde9a278435037733e56696", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,713
c
// Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #pragma once #include "Carla/Actor/ActorDefinition.h" #include "Carla/Actor/ActorDescription.h...
42.75
129
(translation_unit) "// Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma\n// de Barcelona (UAB).\n//\n// This work is licensed under the terms of the MIT license.\n// For a copy, see <https://opensource.org/licenses/MIT>.\n\n#pragma once\n\n#include "Carla/Actor/ActorDefinition.h"\n#include "C...
1,060
50
{"language": "c", "success": true, "metadata": {"lines": 129, "avg_line_length": 42.75, "nodes": 544, "errors": 0, "source_hash": "af1ab3f667318de1113dc322a9a6f030da2f1b261002153e4ccc59dde68013ae", "categorized_nodes": 411}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
78,714
c
#ifndef CONSOLE_H #define CONSOLE_H 1 #include <avr/pgmspace.h> typedef void (*putcfunc_t)(uint8_t c); typedef BOOL (*getcfunc_t)(uint8_t *c); void console_init(void); void console_tick(void); typedef enum { CONSOLE_MODE_LINE, CONSOLE_MODE_KEY } console_mode_t; void console_set_mode(console_mode_t mode); ...
28.77
31
(translation_unit) "#ifndef CONSOLE_H\n#define CONSOLE_H 1\n\n#include <avr/pgmspace.h>\n\ntypedef void (*putcfunc_t)(uint8_t c);\ntypedef BOOL (*getcfunc_t)(uint8_t *c);\n\nvoid console_init(void);\nvoid console_tick(void);\n\ntypedef enum\n{\n CONSOLE_MODE_LINE,\n CONSOLE_MODE_KEY\n} console_mode_t;\n\nvoid con...
296
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 28.77, "nodes": 216, "errors": 0, "source_hash": "076c8e9c34c105e6d73384e8e1cf19dc5cf216b28bf1dbc68e20bf6b1c898d56", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,715
c
/* The <times.h> header is for time times() system call. */ #ifndef _TIMES_H #define _TIMES_H #ifndef _CLOCK_T #define _CLOCK_T typedef long clock_t; /* time in ticks since process started */ #endif struct tms { clock_t tms_utime; clock_t tms_stime; clock_t tms_cutime; clock_t tms_cstime; }; /* Function P...
21.35
20
(translation_unit) "/* The <times.h> header is for time times() system call. */\n\n#ifndef _TIMES_H\n#define _TIMES_H\n\n#ifndef _CLOCK_T\n#define _CLOCK_T\ntypedef long clock_t; /* time in ticks since process started */\n#endif\n\nstruct tms {\n clock_t tms_utime;\n clock_t tms_stime;\n clock_t tms_cutime;\n cloc...
76
2
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 21.35, "nodes": 54, "errors": 0, "source_hash": "3f2e2ad20905aa876bd69fa6ef7f99cecf2f83effbca1dc3c5f646ae5b2aac75", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,716
c
// // MyButton.h // bolock // // Created by zhaokai on 15/5/28. // Copyright (c) 2015年 zhaokai. All rights reserved. // #import <UIKit/UIKit.h> @class MyButton; //注意:这里最好传一个参数,而且这个参数最好是当前按钮自身,这样可以将按钮的所有属性都传出去 typedef void (^myBlock)(MyButton *button); @interface MyButton : UIButton @property (nonatomic,copy)...
40.35
20
(translation_unit) "//\n// MyButton.h\n// bolock\n//\n// Created by zhaokai on 15/5/28.\n// Copyright (c) 2015年 zhaokai. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@class MyButton;\n\n\n//注意:这里最好传一个参数,而且这个参数最好是当前按钮自身,这样可以将按钮的所有属性都传出去\ntypedef void (^myBlock)(MyButton *button);\n\n@interface MyButton : U...
276
14
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 40.35, "nodes": 168, "errors": 0, "source_hash": "fdd664aa36a849e2b0b019f715c8609bd1039f20895b430d0daa0ac1742b14f8", "categorized_nodes": 96}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <U...
78,717
c
/*!@file * @copyright This code is licensed under the 3-clause BSD license. * Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group. * See LICENSE.txt for details. * @brief Trust region minimizer */ #ifndef INCLUDE_TEMPLE_OPTIMIZATION_TRUST_REGION_NEWTON_H #define INCLUDE_TEMPLE_OPTIMIZATION_TR...
38.32
283
(translation_unit) "/*!@file\n * @copyright This code is licensed under the 3-clause BSD license.\n * Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.\n * See LICENSE.txt for details.\n * @brief Trust region minimizer\n */\n\n#ifndef INCLUDE_TEMPLE_OPTIMIZATION_TRUST_REGION_NEWTON_H\n#define IN...
2,275
107
{"language": "c", "success": true, "metadata": {"lines": 283, "avg_line_length": 38.32, "nodes": 1420, "errors": 0, "source_hash": "57e8c3a4d54590aa9ee8d6445c056af5935cf20d6aaa9d407ec2c9ea4825077e", "categorized_nodes": 1011}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef INC...
78,718
c
// // JKLAppDelegate.h // JKLOrderedDictionaryDataSource // // Created by <NAME> on 02/20/2016. // Copyright (c) 2016 <NAME>. All rights reserved. // @import UIKit; @interface JKLAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
25
11
(translation_unit) "//\n// JKLAppDelegate.h\n// JKLOrderedDictionaryDataSource\n//\n// Created by <NAME> on 02/20/2016.\n// Copyright (c) 2016 <NAME>. All rights reserved.\n//\n\n@import UIKit;\n\n@interface JKLAppDelegate : UIResponder <UIApplicationDelegate>\n\n@property (strong, nonatomic) UIWindow *window;\n\n@...
42
8
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 25.0, "nodes": 26, "errors": 0, "source_hash": "7a75049034b1d7652fddcb7d6fdd569a1f5e491c3490ac53bd821fbbed8e6b47", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nul...
78,719
c
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif FOUNDATION_EXPORT double Pods_Self_Driving_Car_User_ClientVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_Self_Dri...
24.43
14
(translation_unit) "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#else\n#ifndef FOUNDATION_EXPORT\n#if defined(__cplusplus)\n#define FOUNDATION_EXPORT extern "C"\n#else\n#define FOUNDATION_EXPORT extern\n#endif\n#endif\n#endif\n\n\nFOUNDATION_EXPORT double Pods_Self_Driving_Car_User_ClientVersionNumber;\nFOUNDATION_EXPORT...
52
1
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 24.43, "nodes": 42, "errors": 0, "source_hash": "948cfc016d05e953c5a8406f5f8af18587e101f23db44e3344902cd9089bdb44", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef _...
78,720
c
/* * Copyright (c) 2020-2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
28.22
94
(translation_unit) "/*\n * Copyright (c) 2020-2021 Huawei Device Co., Ltd.\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 * U...
503
12
{"language": "c", "success": true, "metadata": {"lines": 94, "avg_line_length": 28.22, "nodes": 307, "errors": 0, "source_hash": "47e2ccd0eadd5a2612ce069b1509b3551008334de465b2e05037c915893c4cca", "categorized_nodes": 213}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,721
c
/* Structure of messages from whack to Pluto proper. * Copyright (C) 1998-2001 <NAME>. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at your * opt...
36.46
205
(translation_unit) "/* Structure of messages from whack to Pluto proper.\n * Copyright (C) 1998-2001 <NAME>.\n *\n * This program is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public License as published by the\n * Free Software Foundation; either version 2 of the Li...
615
0
{"language": "c", "success": true, "metadata": {"lines": 205, "avg_line_length": 36.46, "nodes": 438, "errors": 0, "source_hash": "0f67beb103a20d68e331381e1a8635be69ec3390c52c07359c1dcc0d1869b130", "categorized_nodes": 271}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,722
c
/** * \file newfiledlg.h * \author <NAME> <<EMAIL>> * \date 2004/05/09 * * This file includes interfaces of new Open File Dialog Box. * \verbatim Copyright (C) 2002-2007 Feynman Software Copyright (C) 1998-2002 <NAME> All rights reserved by Feynman Software. This file is part of MiniGUI, a c...
27.69
133
(translation_unit) "/**\n * \file newfiledlg.h\n * \author <NAME> <<EMAIL>>\n * \date 2004/05/09\n * \n * This file includes interfaces of new Open File Dialog Box.\n *\n \verbatim\n\n Copyright (C) 2002-2007 Feynman Software\n Copyright (C) 1998-2002 <NAME>\n\n All rights reserved by Feynman Software.\n\n ...
223
1
{"language": "c", "success": true, "metadata": {"lines": 133, "avg_line_length": 27.69, "nodes": 165, "errors": 0, "source_hash": "79aac21c31986c58e9c37f1e1c6fe7338b9c7162caef1469f691edc8379c637b", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,723
c
// // SYUUID.h // YLB // // Created by chenjiangchuan on 16/10/13. // Copyright © 2016年 Sayee Intelligent Technology. All rights reserved. // // 获取UUID // #import <Foundation/Foundation.h> @interface SYUUID : NSObject /** * 把UUID写入keychain中 */ + (void)saveUUIDToKeyChain; /** * 从keychain中读取UUID * * @ret...
15.67
24
(translation_unit) "//\n// SYUUID.h\n// YLB\n//\n// Created by chenjiangchuan on 16/10/13.\n// Copyright © 2016年 Sayee Intelligent Technology. All rights reserved.\n//\n// 获取UUID\n//\n\n#import <Foundation/Foundation.h>\n\n@interface SYUUID : NSObject\n\n/**\n * 把UUID写入keychain中\n */\n+ (void)saveUUIDToKeyChain;\...
63
5
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 15.67, "nodes": 35, "errors": 0, "source_hash": "bc53d68b25acf00007d4a34c0b502cb3786aea80957fe23f7e76a150dde0117f", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <Foundat...
78,724
c
#ifndef _OUTP_H #define _OUTP_H #include "hocl.h" void outp(IN int *i); #endif
14.8
5
(translation_unit) "#ifndef _OUTP_H\n#define _OUTP_H\n\n#include "hocl.h"\n\nvoid outp(IN int *i);\n\n#endif\n" (preproc_ifdef) "#ifndef _OUTP_H\n#define _OUTP_H\n\n#include "hocl.h"\n\nvoid outp(IN int *i);\n\n#endif" (#ifndef) "#ifndef" (identifier) "_OUTP_H" (preproc_def) "#define _OUTP_H\n" (#de...
29
1
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 14.8, "nodes": 22, "errors": 0, "source_hash": "637d318fa8166aaf705e72b0d53ea97a97d7b9150126307a6614b22b4514bd7b", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _O...
78,725
c
#include<stdio.h> int main(){ int n,s=0,i,p; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&p); s=s+p; } printf("Sum: %d\n",s); printf("Avg: %.2f\n",(float)s/n); return 0; }
15.08
12
(translation_unit) "#include<stdio.h>\nint main(){\n int n,s=0,i,p;\n scanf("%d",&n);\n for(i=0;i<n;i++){\n scanf("%d",&p);\n s=s+p;\n }\n printf("Sum: %d\n",s);\n printf("Avg: %.2f\n",(float)s/n);\n return 0;\n}\n" (preproc_include) "#include<stdio.h>\n" (#include) "#include" (system_lib_string) "...
126
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 15.08, "nodes": 68, "errors": 0, "source_hash": "afa095b4d0a6df561f8bc2d78488e4544481f5b1ad4220739e18fa872bbbe8e6", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
78,726
c
#ifndef INCLUDED_flixel_addons_ui_LineAxis #define INCLUDED_flixel_addons_ui_LineAxis #ifndef HXCPP_H #include <hxcpp.h> #endif HX_DECLARE_CLASS3(flixel,addons,ui,LineAxis) namespace flixel{ namespace addons{ namespace ui{ class LineAxis_obj : public ::hx::EnumBase_obj { typedef ::hx::EnumBase_obj super; typedef...
34.74
31
(translation_unit) "#ifndef INCLUDED_flixel_addons_ui_LineAxis\n#define INCLUDED_flixel_addons_ui_LineAxis\n\n#ifndef HXCPP_H\n#include <hxcpp.h>\n#endif\n\nHX_DECLARE_CLASS3(flixel,addons,ui,LineAxis)\nnamespace flixel{\nnamespace addons{\nnamespace ui{\n\n\nclass LineAxis_obj : public ::hx::EnumBase_obj\n{\n typedef ...
331
18
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 34.74, "nodes": 147, "errors": 0, "source_hash": "f562334c0fa19c2767320ad9b4b55035f7277d625229457b0e789af41fc1e18b", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,727
c
#pragma once #include "hosEngine/Transform.h" #include "hosEngine/Networkcomponent.h" #include "hosEngine/Group.h" #include "../packets/PacketDefine.h" using namespace hos::com; using namespace hos::Packet; class GroupScene { public: };
20.55
11
(translation_unit) "#pragma once\n#include "hosEngine/Transform.h"\n#include "hosEngine/Networkcomponent.h"\n#include "hosEngine/Group.h"\n#include "../packets/PacketDefine.h"\n\nusing namespace hos::com;\nusing namespace hos::Packet;\n\nclass GroupScene\n{\npublic:\n\n};\n\n" (preproc_call) "#pragma once\n" (pre...
65
2
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 20.55, "nodes": 30, "errors": 0, "source_hash": "d90cf8b4a6c644fb42d381c4bacac2fac41d5f5021af07595a9731c14bfcc13d", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
78,728
c
/* * Exceptions * (C) 1999-2009,2018 <NAME> * * Botan is released under the Simplified BSD License (see license.txt) */ #ifndef BOTAN_EXCEPTION_H_ #define BOTAN_EXCEPTION_H_ #include <botan/types.h> #include <exception> #include <string> namespace Botan { /** * Different types of errors that might occur */ enum cla...
32.6
303
(translation_unit) "/*\n* Exceptions\n* (C) 1999-2009,2018 <NAME>\n*\n* Botan is released under the Simplified BSD License (see license.txt)\n*/\n\n#ifndef BOTAN_EXCEPTION_H_\n#define BOTAN_EXCEPTION_H_\n\n#include <botan/types.h>\n#include <exception>\n#include <string>\n\nnamespace Botan {\n\n/**\n* Different types o...
1,680
136
{"language": "c", "success": true, "metadata": {"lines": 303, "avg_line_length": 32.6, "nodes": 852, "errors": 0, "source_hash": "9671964b1abc1d077e9824c3e05a54946c4c52fb80e8bade68f97f59835b62d9", "categorized_nodes": 630}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,729
c
/****************************************************************************** * Copyright (C) 2017 Broadcom. The term "Broadcom" refers to Broadcom Limited * and/or its subsidiaries. * * This program is the proprietary software of Broadcom and/or its licensors, * and may only be used, duplicated, modified or...
35.26
276
(translation_unit) "/******************************************************************************\n * Copyright (C) 2017 Broadcom. The term "Broadcom" refers to Broadcom Limited\n * and/or its subsidiaries.\n *\n * This program is the proprietary software of Broadcom and/or its licensors,\n * and may only be used...
1,096
0
{"language": "c", "success": true, "metadata": {"lines": 276, "avg_line_length": 35.26, "nodes": 904, "errors": 0, "source_hash": "a1d79f7a026e02c07d9bd420ad66d2675ab4ae093339f09d441f4c71e88e328f", "categorized_nodes": 443}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,730
c
#pragma once #ifndef YapImplement_h_20160831 #define YapImplement_h_20160831 #include "ContainerImpl.h" #define BEGIN_DECL_PROCESSORS PtrContainerImpl<IProcessor> * g_processor_manager;\ extern "C" {\ __declspec(dllexport) void ReleaseProcessManager(){\ if (g_processor_manager) {\ ISharedObject* obj = g_proce...
39.41
22
(translation_unit) "#pragma once\n\n#ifndef YapImplement_h_20160831\n#define YapImplement_h_20160831\n\n#include "ContainerImpl.h"\n\n#define BEGIN_DECL_PROCESSORS PtrContainerImpl<IProcessor> * g_processor_manager;\\n extern "C" {\\n __declspec(dllexport) void ReleaseProcessManager(){\\n if (g_processor_manager) {\\n...
43
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 39.41, "nodes": 34, "errors": 0, "source_hash": "500fa496a95af099829acb1eb32e04739400758cd712fd3a5e071d036f8e25e5", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
78,731
c
//--------------------------------------------------------------------------------------- // Copyright (c) 2001-2018 by PDFTron Systems Inc. All Rights Reserved. // Consult legal.txt regarding legal and license information. //--------------------------------------------------------------------------------------- #ifnde...
35.11
198
(translation_unit) "//---------------------------------------------------------------------------------------\n// Copyright (c) 2001-2018 by PDFTron Systems Inc. All Rights Reserved.\n// Consult legal.txt regarding legal and license information.\n//-----------------------------------------------------------------------...
404
23
{"language": "c", "success": true, "metadata": {"lines": 198, "avg_line_length": 35.11, "nodes": 200, "errors": 0, "source_hash": "dac11161012f8ee8d7ce2d0f80bc55b1fd07b160bf41cb792fd463ff8539eb75", "categorized_nodes": 145}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,732
c
#include <common.h> void on_hit_default(Entity *entity, Entity *aggressor) { uint8_t oldSegmentPageD = mapper_load_module(collisions_d, PAGE_D); on_hit_default_d(entity, aggressor); mapper_load_segment(oldSegmentPageD, PAGE_D); } void on_hit_null(Entity *entity, Entity *weapon) { UNUSED(entity); UNUSED(...
28.82
11
(translation_unit) "#include <common.h>\n\nvoid on_hit_default(Entity *entity, Entity *aggressor) {\n\n uint8_t oldSegmentPageD = mapper_load_module(collisions_d, PAGE_D);\n on_hit_default_d(entity, aggressor);\n mapper_load_segment(oldSegmentPageD, PAGE_D);\n}\n\nvoid on_hit_null(Entity *entity, Entity *weapon) ...
96
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 28.82, "nodes": 61, "errors": 0, "source_hash": "a0407aa8beefeff4ac01100f1ca264ecb8c568d9797a4bfe0d48e0c2ceaf038e", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
78,733
c
class ATL_NO_VTABLE CMyDescribedClass : public CComObjectRoot, public CComCoClass<CMyDescribedClass, &CLSID_MyDescribedClass> { public: CMyDescribedClass() { } // Override CComCoClass::GetObjectDescription DECLARE_OBJECT_DESCRIPTION("My Described Object 1.0") };
24.82
11
(translation_unit) "class ATL_NO_VTABLE CMyDescribedClass :\n public CComObjectRoot,\n public CComCoClass<CMyDescribedClass, &CLSID_MyDescribedClass>\n{\npublic:\n CMyDescribedClass()\n {\n }\n\n // Override CComCoClass::GetObjectDescription\n DECLARE_OBJECT_DESCRIPTION("My Described Object 1.0")\n};" (...
48
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 24.82, "nodes": 24, "errors": 0, "source_hash": "368826208a0f98e3bd75893ee22f93c16e37ec5793a9f1a1157a0c7bb4bf0b04", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "class ATL_...
78,734
c
#include "qhold.h" unsigned nlp_per_pe = 16; unsigned long int nLPs; unsigned population = 16; unsigned long int remoteThreshold; unsigned long int randomSeedVariation; unsigned long int globalHash = 0; unsigned long int globalEvents = 0; unsigned long int globalEventsScheduled = 0; unsigned long int globalTies = 0; ...
27.91
213
(translation_unit) "#include "qhold.h"\n\nunsigned nlp_per_pe = 16;\nunsigned long int nLPs;\nunsigned population = 16;\nunsigned long int remoteThreshold;\nunsigned long int randomSeedVariation;\n\nunsigned long int globalHash = 0;\nunsigned long int globalEvents = 0;\nunsigned long int globalEventsScheduled = 0;\nuns...
1,240
0
{"language": "c", "success": true, "metadata": {"lines": 213, "avg_line_length": 27.91, "nodes": 818, "errors": 0, "source_hash": "c9c54093bab1542b4551a915a272c623aec385def000cba9d1b9f7ae753ac54e", "categorized_nodes": 540}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,735
c
#ifndef UTILS_H #define UTILS_H const int dx[] = { 1,-1,0,0}; const int dy[] = { 0,0,-1,1}; enum Moves { Right, // 0 Left, // 1 UP, // 2 Down, // 3 Stop, // 4 MOVES_NUM }; enum Objects { NOTHING, // 0 COIN, // 1 PLAYER, // 2 MONSTER, // 3 WALL, // 4 OBJECTS_NUM }; enum MENU { START, END...
10.79
29
(translation_unit) "#ifndef UTILS_H \n#define UTILS_H\n\nconst int dx[] = { 1,-1,0,0};\nconst int dy[] = { 0,0,-1,1};\n\nenum Moves\n{\n Right, // 0 \n Left, // 1\n UP, // 2\n Down, // 3\n Stop, // 4\n MOVES_NUM\n};\n\nenum Objects\n{\n NOTHING, // 0\n COIN, // 1\n PLAYER, // 2\n MONSTER, // 3\n WALL, // 4...
123
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 10.79, "nodes": 71, "errors": 0, "source_hash": "79c55ecfa8d4101ec142d8fc3a103e52b5e4b4f6f09591d4f6386dae76741427", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,736
c
#ifndef _SCRIPT_FILE_READER_ #define _SCRIPT_FILE_READER_ #include <fstream> namespace Client { /** * Reader for STREAM scripts. Reads a script file, does some very * preliminary interpretation - for example, separating out different * kinds of commands - and returns the STREAM system commands one after *...
24.29
90
(translation_unit) "#ifndef _SCRIPT_FILE_READER_\n#define _SCRIPT_FILE_READER_\n\n#include <fstream>\n\nnamespace Client {\n \n /**\n * Reader for STREAM scripts. Reads a script file, does some very\n * preliminary interpretation - for example, separating out different\n * kinds of commands - and returns the STREAM...
236
6
{"language": "c", "success": true, "metadata": {"lines": 90, "avg_line_length": 24.29, "nodes": 133, "errors": 0, "source_hash": "beb42838b0ce3963b8d82d5b87ac43ac7e0e3c815e7e43f1e92cd4c837c2e703", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,737
c
#pragma once #include "renderer.h" #include "scene_render_targets.h" #include "deferred/deferredpass.h" #include "postprocessing/anti_aliasing.h" #include "pathos/shader/uniform_buffer.h" #include "pathos/camera/camera.h" #include "pathos/scene/scene.h" #include "pathos/light/shadow_directional.h" #include "pathos/lig...
42.68
77
(translation_unit) "#pragma once\n\n#include "renderer.h"\n#include "scene_render_targets.h"\n#include "deferred/deferredpass.h"\n#include "postprocessing/anti_aliasing.h"\n#include "pathos/shader/uniform_buffer.h"\n#include "pathos/camera/camera.h"\n#include "pathos/scene/scene.h"\n#include "pathos/light/shadow_direct...
756
38
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 42.68, "nodes": 449, "errors": 0, "source_hash": "1d2ac16469c8dedf66baba495fda7be5aad710b35d9e9bbb0242d0ce9907f4a6", "categorized_nodes": 316}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
78,738
c
#ifndef _INIT_ #define _INIT_ #if (ARDUINO >= 100) #include "Arduino.h" #else #include "WProgram.h" #endif #include <Wire.h> #include <Servo.h> #include <BME280I2C.h> // import wire library for i2c, servo library for motors #include "MPU9250.h" // BME library for barometer, MPU libra...
26.93
27
(translation_unit) "#ifndef _INIT_ \n#define _INIT_ \n \n#if (ARDUINO >= 100) \n #include "Arduino.h" \n#else \n #include "WProgram.h" \n#endif \n \n#include <Wire.h> \n#include <Servo.h> \n#include <BME280I2C.h> // import wire library for i2c, servo library for motors \n#include "MPU9250.h" // BME ...
112
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 26.93, "nodes": 73, "errors": 0, "source_hash": "500028bd7ec593454ae6157a3de7ff399e2920e64aa03f57a4a66521dd89e208", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,739
c
/* * Copyright (C) 2010-2021 TunaCode Pvt. Ltd. All rights reserved. * * NOTICE TO USER: * * * TUNACODE MAKES NO REPRESENTATION ABOUT THE SUITABILITY OF THIS SOURCE * CODE FOR ANY PURPOSE. IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED * WARRANTY OF ANY KIND. TUNACODE DISCLAIMS ALL WARRANTIES WITH REG...
38.14
36
(translation_unit) "/*\n * Copyright (C) 2010-2021 TunaCode Pvt. Ltd. All rights reserved.\n *\n * NOTICE TO USER: \n *\n *\n * TUNACODE MAKES NO REPRESENTATION ABOUT THE SUITABILITY OF THIS SOURCE\n * CODE FOR ANY PURPOSE. IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED\n * WARRANTY OF ANY KIND. TUNACODE DISCLA...
102
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 38.14, "nodes": 52, "errors": 0, "source_hash": "27388f5d742885b1a800f2915d2a9cf00d356535de02ac04c33c8b4d198594a3", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,740
c
// // BaseNavigationViewController.h // WebBrowser // // Created by 钟武 on 2017/7/13. // Copyright © 2017年 钟武. All rights reserved. // #import <UIKit/UIKit.h> @interface BaseNavigationViewController : UINavigationController @end
22.2
10
(translation_unit) "//\n// BaseNavigationViewController.h\n// WebBrowser\n//\n// Created by 钟武 on 2017/7/13.\n// Copyright © 2017年 钟武. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface BaseNavigationViewController : UINavigationController\n\n@end\n" (comment) "//" (comment) "// BaseNavigationVi...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 22.2, "nodes": 10, "errors": 0, "source_hash": "726c67584e64edd840d08e0ffc26f08127b1208eac2b3b5efaff526331261552", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Kit/UIKit.h...
78,741
c
#ifndef INPUT_EVENT_PLUS_H #define INPUT_EVENT_PLUS_H #include "GameInput.h" #include "Etterna/Singletons/InputFilter.h" #include "PlayerNumber.h" /** @brief Holds a device input plus Game/Menu translations. */ class InputEventPlus { public: InputEventPlus() : pn(PLAYER_INVALID) { } DeviceInput DeviceI; Game...
20.41
27
(translation_unit) "#ifndef INPUT_EVENT_PLUS_H\n#define INPUT_EVENT_PLUS_H\n\n#include "GameInput.h"\n#include "Etterna/Singletons/InputFilter.h"\n#include "PlayerNumber.h"\n/** @brief Holds a device input plus Game/Menu translations. */\nclass InputEventPlus\n{\n public:\n InputEventPlus()\n : pn(PLAYER_INVALID)\n ...
109
6
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 20.41, "nodes": 59, "errors": 0, "source_hash": "9828aef2a3da53bf0372d008d20e6f38b24a032a92c51322701a9c4684828900", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef INPUT_EV...
78,742
c
#include <stdio.h> #include <math.h> #define P 61 #define Q 53 #define N (P*Q) #define Z ((P - 1) * (Q - 1)) // φ(N) #define E 17 #define D 413 int POW(int m, int ed, int n) { int value = 1; for (int i = 0; i < ed; i++) { value = (value * m) % n; } return value; } int main(void) { ...
20.83
29
(translation_unit) "#include <stdio.h>\n#include <math.h>\n\n#define P 61\n#define Q 53\n\n#define N (P*Q)\n#define Z ((P - 1) * (Q - 1)) // φ(N)\n\n#define E 17\n#define D 413\n\nint POW(int m, int ed, int n)\n{\n int value = 1;\n\n for (int i = 0; i < ed; i++)\n {\n value = (value * m) % n;\n }\n\n...
199
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 20.83, "nodes": 121, "errors": 0, "source_hash": "f679528d3505150e675fe26854c08bb295ada4c067ff230ebfc9aa10603ec7a5", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
78,743
c
/** * @file src/qt_ros_pkg/ClassInfo/classinfo.hpp * * @brief Bridge between Ros with Task * * @date 2015/10/16 * * @author shengru **/ /***************************************************************************** ** Ifdefs *****************************************************************************/ #ifnde...
20.61
171
(translation_unit) "/**\n * @file src/qt_ros_pkg/ClassInfo/classinfo.hpp\n *\n * @brief Bridge between Ros with Task\n *\n * @date 2015/10/16\n *\n * @author shengru\n **/\n/*****************************************************************************\n** Ifdefs\n*******************************************************...
687
1
{"language": "c", "success": true, "metadata": {"lines": 171, "avg_line_length": 20.61, "nodes": 453, "errors": 0, "source_hash": "7a2adcfcee113fc6384a5810c41549e47e510c44fbc7976dd74f186cd0ed0b06", "categorized_nodes": 315}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,744
c
#ifndef EXAMPLE_AMAZON_FREERTOS_H #define EXAMPLE_AMAZON_FREERTOS_H void example_amazon_freertos(void); #endif /* EXAMPLE_AMAZON_FREERTOS_H */
34.75
4
(translation_unit) "#ifndef EXAMPLE_AMAZON_FREERTOS_H\n#define EXAMPLE_AMAZON_FREERTOS_H\n\nvoid example_amazon_freertos(void);\n\n#endif /* EXAMPLE_AMAZON_FREERTOS_H */\n" (preproc_ifdef) "#ifndef EXAMPLE_AMAZON_FREERTOS_H\n#define EXAMPLE_AMAZON_FREERTOS_H\n\nvoid example_amazon_freertos(void);\n\n#endif" (#ifn...
19
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 34.75, "nodes": 14, "errors": 0, "source_hash": "d0c70d7924ab08846f2fa9d22ced492eb7c1facc1f90d0e40594ec1fec6beae3", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef EX...
78,745
c
#pragma once namespace pagoda { template<class C, class F> void RegisterMemberFunction(C* instance, const std::string& name, const F& memberFunction) { instance->RegisterMember(name, std::make_shared<Function>(std::make_shared<MemberFunctionCallableBody<C, F>>( *static_cast<C*>(ins...
36.1
10
(translation_unit) "#pragma once\n\nnamespace pagoda\n{\ntemplate<class C, class F>\nvoid RegisterMemberFunction(C* instance, const std::string& name, const F& memberFunction)\n{\n instance->RegisterMember(name, std::make_shared<Function>(std::make_shared<MemberFunctionCallableBody<C, F>>(\n ...
116
9
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 36.1, "nodes": 77, "errors": 0, "source_hash": "c8eeb2b4b2e6e969fcbea685a0d1e53caaff1f4779523ed84d108b4868b7f064", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
78,746
c
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_ACCESSIBILITY_AX_PARAM_TRAITS_H_ #define UI_ACCESSIBILITY_AX_PARAM_TRAITS_H_ #include "ui/accessibility/ax_param_traits_macros.h" namespace I...
39.17
18
(translation_unit) "// Copyright 2020 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef UI_ACCESSIBILITY_AX_PARAM_TRAITS_H_\n#define UI_ACCESSIBILITY_AX_PARAM_TRAITS_H_\n\n#include "ui/accessibility/ax_param_tr...
146
9
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 39.17, "nodes": 87, "errors": 0, "source_hash": "4c6a7a93e2243b052ffe1b00deccd2e92b079aadcb69516a528b570fab3b0cf6", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,747
c
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:41:26 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/EmailFoundation.framework/EmailFoundation * classdump-dyld is licensed under GPLv3, Copyright © 2013...
38.96
26
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Sunday, September 27, 2020 at 11:41:26 AM Mountain Standard Time\n* Operating System: Version 14.0 (Build 18A373)\n* Image Source: /System/Library/PrivateFrameworks/EmailFoundation.framework/EmailFoundation\n* classdump-dyld is licensed unde...
203
22
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 38.96, "nodes": 136, "errors": 0, "source_hash": "d07e9d37c74218bc736116239abd2501b295aaf50bdec51030af8b57283ce33c", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <...
78,748
c
#ifndef CML_SPECFUNC_HYPERG_U_H #define CML_SPECFUNC_HYPERG_U_H __CML_BEGIN_DECLS double cml_sf_hyperg_U(double a, double b, double x); __CML_END_DECLS #endif
25.5
6
(translation_unit) "#ifndef CML_SPECFUNC_HYPERG_U_H\n#define CML_SPECFUNC_HYPERG_U_H\n\n__CML_BEGIN_DECLS\n\ndouble cml_sf_hyperg_U(double a, double b, double x);\n\n__CML_END_DECLS\n\n#endif\n" (preproc_ifdef) "#ifndef CML_SPECFUNC_HYPERG_U_H\n#define CML_SPECFUNC_HYPERG_U_H\n\n__CML_BEGIN_DECLS\n\ndouble cml_sf_hyp...
31
1
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 25.5, "nodes": 24, "errors": 0, "source_hash": "0b9dbdb690996144e0433a86546262ea5d8148c033a016d0e05f04d5ce9d8896", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef CM...
78,749
c
#pragma once #include <U8g2lib.h> // Global variables extern U8G2_SSD1309_128X64_NONAME0_1_4W_HW_SPI display; namespace Graphics { namespace GraphBuffer { constexpr uint8_t max = 128; extern int32_t buffer[max]; extern void* owner; } void drawDottedHLine(uint8_t x, uint8_t y,...
26.19
16
(translation_unit) "#pragma once\n\n#include <U8g2lib.h>\n\n// Global variables\nextern U8G2_SSD1309_128X64_NONAME0_1_4W_HW_SPI display;\n\nnamespace Graphics\n{\n namespace GraphBuffer\n {\n constexpr uint8_t max = 128;\n extern int32_t buffer[max];\n extern void* owner;\n }\n\n void d...
106
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 26.19, "nodes": 77, "errors": 0, "source_hash": "bb2c23a58316d50186d95730c28d33f2f134772207933a9a5fda0ccf82530c35", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
78,750
c
#pragma once #include <stdint.h> typedef enum { DIRECTIONAL } ELightType; struct SceneModelData { char* filepath; int id; float position[3]; // mat4 float scale[3]; float rotation[3]; }; struct SceneCameraData { float position[3]; // vec3 float up_vector[3]; // vec3 floa...
22.93
43
(translation_unit) "#pragma once\n\n#include <stdint.h>\n\ntypedef enum {\n DIRECTIONAL\n} ELightType;\n\nstruct SceneModelData {\n char* filepath;\n int id;\n float position[3]; // mat4\n float scale[3];\n float rotation[3];\n};\n\nstruct SceneCameraData {\n float position[3]; // vec3\n flo...
263
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 22.93, "nodes": 171, "errors": 0, "source_hash": "987ae5ad80374d48ed5a80a89a51bc4c4f15e95bacd5a737e3b10bec8e918afb", "categorized_nodes": 112}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
78,751
c
// // WDZSeleteTempViewController.h // WDZForAppStore // 选择模板 // Created by 夏征宇 on 2018/10/31. // Copyright © 2018 Wandianzhang. All rights reserved. // #import "WDZBaseViewController.h" @class WDZSeleteTempFrameView; @class WDZSeleteTempConfig; @class WDZTempModel; //#import "WDZSeleteTempFrameView.h" //#import ...
30.87
31
(translation_unit) "//\n// WDZSeleteTempViewController.h\n// WDZForAppStore\n// 选择模板\n// Created by 夏征宇 on 2018/10/31.\n// Copyright © 2018 Wandianzhang. All rights reserved.\n//\n\n#import "WDZBaseViewController.h"\n@class WDZSeleteTempFrameView;\n@class WDZSeleteTempConfig;\n@class WDZTempModel;\n//#import "WDZS...
155
29
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 30.87, "nodes": 107, "errors": 0, "source_hash": "8d5af1291994220fa4057e838560161598c06b0909a4eb20146e9f3929603ac7", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "eViewCon...
78,752
c
// // Domain.h // pic_1d // // Created by <NAME> on 1/18/19. // Copyright © 2019 <NAME> & <NAME>. All rights reserved. // #ifndef Domain_h #define Domain_h #include "./BField.h" #include "./EField.h" #include "./Current.h" #include "./Species.h" #include "./PartSpecies.h" #include "./ColdSpecies.h" #include "../P...
29.35
51
(translation_unit) "//\n// Domain.h\n// pic_1d\n//\n// Created by <NAME> on 1/18/19.\n// Copyright © 2019 <NAME> & <NAME>. All rights reserved.\n//\n\n#ifndef Domain_h\n#define Domain_h\n\n#include "./BField.h"\n#include "./EField.h"\n#include "./Current.h"\n#include "./Species.h"\n#include "./PartSpecies.h"\n#incl...
428
23
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 29.35, "nodes": 288, "errors": 0, "source_hash": "b7cbca6c55a2bee61f54f4a0224cac80bb5df9d5501df6bb7028c93f3155e257", "categorized_nodes": 202}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef...
78,753
c
#pragma once #include <string> template <typename T> struct Stringify { static std::string convert(const T&); }; template <typename T> std::string stringify(const T& v) { return Stringify<T>::convert(v); } // specializes template Stringify by delegating to a function named `to_string` #define STRINGIFY_TO_ST...
31.71
38
(ERROR) "#pragma once\n#include <string>\n\ntemplate <typename T>\nstruct Stringify\n{\n static std::string convert(const T&);\n};\n\ntemplate <typename T>\nstd::string stringify(const T& v)\n{\n return Stringify<T>::convert(v);\n}\n\n// specializes template Stringify by delegating to a function named `to_string`...
263
12
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 31.71, "nodes": 156, "errors": 0, "source_hash": "c2bf8941eca959a697dada2e6c1562f0d0237845cb8f7a782bfdbaf270f4f7a6", "categorized_nodes": 97}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#pragma once\n#include <st...
78,754
c
//------------------------------------------------------------------------------ /* This file is part of rippled: https://github.com/ripple/rippled Copyright (c) 2012, 2013 Ripple Labs Inc. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby ...
28.99
86
(translation_unit) "//------------------------------------------------------------------------------\n/*\n This file is part of rippled: https://github.com/ripple/rippled\n Copyright (c) 2012, 2013 Ripple Labs Inc.\n\n Permission to use, copy, modify, and/or distribute this software for any\n purpose with ...
624
40
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 28.99, "nodes": 384, "errors": 0, "source_hash": "3dc275667a39909e5fada8a9f26bc233ea8259a44f97af8e6830f8c170688bb5", "categorized_nodes": 264}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,755
c
/************************************************************************************ Filename : ViewManager.h Content : Created : 6/17/2014 Authors : <NAME> Copyright : Copyright 2014 Oculus VR, LLC. All Rights reserved. This source code is licensed under the BSD-style license found in the L...
37.84
45
(translation_unit) "***********************************************************************************\n\nFilename : ViewManager.h\nContent :\nCreated : 6/17/2014\nAuthors : <NAME>\n\nCopyright : Copyright 2014 Oculus VR, LLC. All Rights reserved.\n\nThis source code is licensed under the BSD-st...
330
12
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 37.84, "nodes": 215, "errors": 0, "source_hash": "6fa76377a1a0ded92d5f0d97c3b2d82d1c111cd991de9b13bc19299ef8f80d26", "categorized_nodes": 150}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "nclu...
78,756
c
#include<stdio.h> #include "configuration.h" #define USAGE "command [xmlfile]" int main(int argc, char * argv[]) { if(argc != 2) { printf(USAGE); return -1; } IG_Config * conf = IG_Config_create(argv[1], IG_CONFIG_STANDARD); if(conf == NULL) { printf("couldnot parse string\...
23.94
17
(translation_unit) "#include<stdio.h>\n#include "configuration.h"\n\n#define USAGE "command [xmlfile]"\n\nint main(int argc, char * argv[]) {\n\n if(argc != 2) {\n printf(USAGE);\n return -1;\n }\n\n IG_Config * conf = IG_Config_create(argv[1], IG_CONFIG_STANDARD);\n\n if(conf == NULL) {\n ...
133
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 23.94, "nodes": 75, "errors": 0, "source_hash": "d2560fb838c24ce36217702c35010457b5ddfe02b329c79a5d3e86cf5f51da1e", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
78,757
c
// Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless requir...
31.97
129
(translation_unit) "// Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICEN...
1,193
66
{"language": "c", "success": true, "metadata": {"lines": 129, "avg_line_length": 31.97, "nodes": 684, "errors": 0, "source_hash": "8f103aaf7b51baa7572b34d32e638eb4574a1daed2fa71ecff6af99de814433b", "categorized_nodes": 468}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
78,758
c
/** * @author : xiaozhuai * @date : 17/1/3 */ #ifndef CXXURL_CXXURL_ALL_H #define CXXURL_CXXURL_ALL_H #include "RequestHeader.h" #include "RequestBody.h" #include "SimpleForm.h" #include "MultipartForm.h" #include "RawRequestBody.h" #include "ResponseHeader.h" #include "Request.h" #include "RequestBuilder.h" ...
22
18
(translation_unit) "/**\n * @author : xiaozhuai\n * @date : 17/1/3\n */\n\n#ifndef CXXURL_CXXURL_ALL_H\n#define CXXURL_CXXURL_ALL_H\n\n#include "RequestHeader.h"\n\n#include "RequestBody.h"\n#include "SimpleForm.h"\n#include "MultipartForm.h"\n#include "RawRequestBody.h"\n\n#include "ResponseHeader.h"\n\n#include "Re...
76
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 22.0, "nodes": 40, "errors": 0, "source_hash": "ebb5d57e5577729365ce3dc90b0afacbdcee1ab2fefaa7c7fc82cc50212425f4", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef C...
78,759
c
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #import <ABI45_0_0React/ABI45_0_0RCTConvert.h> /** * Object containing information about a TextInput's selection. */ @interfac...
36.33
18
(translation_unit) "/*\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n#import <ABI45_0_0React/ABI45_0_0RCTConvert.h>\n\n/**\n * Object containing information about a TextIn...
108
16
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 36.33, "nodes": 65, "errors": 0, "source_hash": "2a4e8db3f433d45de6d0e4318644afc4067f0aceac7f8907145e6b3cc1acfc01", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
78,760
c
/* * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2021-01-28 flybreak first version */ #ifndef __DRV_GPIO_H__ #define __DRV_GPIO_H__ #include <rtdevice.h> #include <rtthread.h> #include "board.h"...
22.31
16
(translation_unit) "/*\n * Copyright (c) 2006-2021, RT-Thread Development Team\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Change Logs:\n * Date Author Notes\n * 2021-01-28 flybreak first version\n */\n\n#ifndef __DRV_GPIO_H__\n#define __DRV_GPIO_H__\n\n#include <rtdevice.h>\n#includ...
32
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 22.31, "nodes": 23, "errors": 0, "source_hash": "c24385a0fcdf5ea8d48934fbaf995e38ea4ff7a4474db0a4e8806677cd1ef3c2", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,761
c
#include <SDL2/SDL.h> #ifdef __EMSCRIPTEN__ #include <emscripten.h> #endif int main(int argc, char **argv) { SDL_Init(SDL_INIT_VIDEO); //SDL_Surface *screen = SDL_SetVideoMode(40, 40, 32, SDL_SWSURFACE); SDL_Window *window; SDL_Renderer *renderer; SDL_CreateWindowAndRenderer(40, 40, 0, &window, &renderer)...
37.96
25
(translation_unit) "#include <SDL2/SDL.h>\n\n#ifdef __EMSCRIPTEN__\n#include <emscripten.h>\n#endif\n\nint main(int argc, char **argv) {\n SDL_Init(SDL_INIT_VIDEO);\n //SDL_Surface *screen = SDL_SetVideoMode(40, 40, 32, SDL_SWSURFACE);\n\n SDL_Window *window;\n SDL_Renderer *renderer;\n\n SDL_CreateWindowAndRender...
292
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 37.96, "nodes": 180, "errors": 0, "source_hash": "de388498716e62f3908923bf021239fd60196b787c4e49f63f03e8e0369115b5", "categorized_nodes": 123}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,762
c
/* * Test the creation of an 8 digit alpha-numeric id. * * "$Id: tst_nccf_generate_id.c 828 2011-09-14 20:05:08Z pletzer $" * */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <time.h> #include <netcdf.h> #include "cf_config.h" #include "nccf_constants.h" #include "nccf_ut...
30.82
61
(translation_unit) "/*\n * Test the creation of an 8 digit alpha-numeric id.\n *\n * "$Id: tst_nccf_generate_id.c 828 2011-09-14 20:05:08Z pletzer $"\n * */\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <assert.h>\n#include <time.h>\n#include <netcdf.h>\n\n#include "cf_config.h"\n#include "n...
588
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 30.82, "nodes": 354, "errors": 0, "source_hash": "73f80e5722fd133892cc127772a55eed43cf9a87aa292669a6de818f432d5d53", "categorized_nodes": 247}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,763
c
/* { dg-do compile { target i?86-*-* } } */ /* { dg-options "-O2 -march=pentiumpro" } */ extern __inline double fabs (double __x) { register double __value; __asm __volatile__ ("fabs" : "=t" (__value) : "0" (__x)); return __value; } int foo () { int i, j, k; double x = 0, y = ((i == j) ? 1 : 0); ...
17.1
21
(translation_unit) "/* { dg-do compile { target i?86-*-* } } */\n/* { dg-options "-O2 -march=pentiumpro" } */\n\nextern __inline double\nfabs (double __x)\n{\n register double __value;\n __asm __volatile__\n ("fabs"\n : "=t" (__value) : "0" (__x));\n return __value;\n}\nint\nfoo ()\n{\n int i, j, k;\n doub...
140
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 17.1, "nodes": 82, "errors": 0, "source_hash": "d3410d77aabe1e4ba8b6f8d7d701a562d34c69e0f16b0ea05507a6247f5952a8", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "ext...
78,764
c
#import <UIKit/UIKit.h> @interface TextEditController : UIViewController<UITextViewDelegate> { UITextView *textView; NSString *title; id dataSource; NSString *keyPath; BOOL navigationBarWasHidden; } @property (assign) id dataSource; @property (retain) NSString *keyPath; - (id)initWithTitle:(NSString*)title; @...
23.69
13
(translation_unit) "#import <UIKit/UIKit.h>\n\n@interface TextEditController : UIViewController<UITextViewDelegate> {\n UITextView *textView;\n NSString *title;\n id dataSource;\n NSString *keyPath;\n \n BOOL navigationBarWasHidden;\n}\n@property (assign) id dataSource;\n@property (retain) NSString *keyPath;\n\n- (id)i...
93
13
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 23.69, "nodes": 69, "errors": 0, "source_hash": "3212a124caba0c62263fa15175f2423e5f861ba0548bd5c76f0f7e8ee17be69d", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
78,765
c
#pragma once #include <foundation/PxVec3.h> namespace physx { class PxController; class PxScene; } class CharacterController{ public: void Initialize(physx::PxController* cct, physx::PxScene * scene); void Move(const physx::PxVec3 &disp, float dt, bool jump); physx::PxVec3 GetPosition() const; pri...
23.83
18
(translation_unit) "#pragma once\n\n#include <foundation/PxVec3.h>\n\nnamespace physx {\n class PxController;\n class PxScene;\n}\n\n\nclass CharacterController{\npublic:\n void Initialize(physx::PxController* cct, physx::PxScene * scene);\n void Move(const physx::PxVec3 &disp, float dt, bool jump);\n physx...
142
8
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 23.83, "nodes": 83, "errors": 0, "source_hash": "2c6620d81984e1996b6fc347aa7ce99ed0c58714d545ed2d1a9bfefa03ddfa0e", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
78,766
c
#include <sqstring.h> void * sqmemchr( const void * s, int c, size_t n ) { const unsigned char * p = (const unsigned char *) s; while ( n-- ) { if ( *p == (unsigned char) c ) { return (void *) p; } ++p; } return NULL; }
19.29
14
(translation_unit) "#include <sqstring.h>\n\nvoid * sqmemchr( const void * s, int c, size_t n )\n{\n const unsigned char * p = (const unsigned char *) s;\n while ( n-- )\n {\n if ( *p == (unsigned char) c )\n {\n return (void *) p;\n }\n ++p;\n }\n return NULL;\n}\n...
108
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 19.29, "nodes": 69, "errors": 0, "source_hash": "08a6769288bb7b06b2d246e1dda273b1f089073b1656e2c5c526ca39aa40d8a7", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
78,767
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" #import "GEOConfigChangeListenerDelegate.h" @class NSDictionary, NSMutableDictionary, NSObject<OS_dispatch_source>, NSString, geo_isolater; @interface GEODataReque...
38.2
41
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n#import "GEOConfigChangeListenerDelegate.h"\n\n@class NSDictionary, NSMutableDictionary, NSObject<OS_dispatch_source>, NSString, geo_isol...
436
31
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 38.2, "nodes": 278, "errors": 0, "source_hash": "707d19dc35fd16be5bd20babb4bc561d9770729201b81d059534faa3aac9fbf1", "categorized_nodes": 163}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
78,768
c
// This file is generated by omniidl (C++ backend)- omniORB_4_2. Do not edit. #ifndef __echo_hh__ #define __echo_hh__ #ifndef __CORBA_H_EXTERNAL_GUARD__ #include <omniORB4/CORBA.h> #endif #ifndef USE_stub_in_nt_dll # define USE_stub_in_nt_dll_NOT_DEFINED_echo #endif #ifndef USE_core_stub_in_nt_dll # define USE_core...
26.73
215
(translation_unit) "// This file is generated by omniidl (C++ backend)- omniORB_4_2. Do not edit.\n#ifndef __echo_hh__\n#define __echo_hh__\n\n#ifndef __CORBA_H_EXTERNAL_GUARD__\n#include <omniORB4/CORBA.h>\n#endif\n\n#ifndef USE_stub_in_nt_dll\n# define USE_stub_in_nt_dll_NOT_DEFINED_echo\n#endif\n#ifndef USE_core_s...
1,617
84
{"language": "c", "success": true, "metadata": {"lines": 215, "avg_line_length": 26.73, "nodes": 945, "errors": 0, "source_hash": "0f67be279ca331f64a67a51376764ea58b7ed7a72ce6b463b0008b568bd3d708", "categorized_nodes": 632}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,769
c
// !c++ // ------------------------------ // MIT-License 0x7e3 // <<EMAIL>> // ------------------------------ // #include <string.h> // #define _HEADER_ "@HEADER@" // const char *get_token(void *buf) { #//HACK: #include _HEADER_ # strcpy((char *)buf, (const char *)dstr); return ...
17.2
20
(translation_unit) "// !c++\n// ------------------------------\n// MIT-License 0x7e3\n// <<EMAIL>>\n// ------------------------------\n//\n#include <string.h>\n//\n#define _HEADER_ "@HEADER@"\n//\nconst char *get_token(void *buf)\n{\n#//HACK:\n#include _HEADER_\n#\n strcpy((char *)buf...
87
6
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 17.2, "nodes": 50, "errors": 0, "source_hash": "927ae2620a0cfb7c09a24ace1c6408177052442787536bcee91ef0afe9246fe9", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
78,770
c
/* * * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Copyright 2007-2019 Broadcom Inc. All rights reserved. */ #include <bcm/vswitch.h> #include <bcm/stg.h> #include <soc/mem.h> /* Initialize the bcm_vswitch_cross_connect...
35.13
31
(translation_unit) "/*\n * \n * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.\n * \n * Copyright 2007-2019 Broadcom Inc. All rights reserved.\n */\n\n#include <bcm/vswitch.h>\n#include <bcm/stg.h>\n#include <soc/mem.h>\n\n/* Initializ...
152
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 35.13, "nodes": 98, "errors": 0, "source_hash": "061e1a72bc976ff9c9eba7629930a8d95614d8961619bbfda0750f1792f31d59", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
78,771
c
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //***************************************************************************** // CorAppNode.h // // Manage instance nodes to track COM+ apps. //************************************************************************...
29.53
106
(translation_unit) "// ==++== \n// \n// Copyright (c) Microsoft Corporation. All rights reserved. \n// \n// ==--== \n//***************************************************************************** \n// CorAppNode.h \n// \n// Manage instance nodes to track COM+ apps. \n//*******************************************...
340
10
{"language": "c", "success": true, "metadata": {"lines": 106, "avg_line_length": 29.53, "nodes": 180, "errors": 0, "source_hash": "8a9d63d7da258c2b5cd3f091d9c86d1d456400771da8317f6880f117bcdd3e6c", "categorized_nodes": 118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,772
c
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! #ifndef MIDIMessageEventInit_h #define MIDIMessageEventInit_h #inc...
29.33
42
(translation_unit) "// Copyright 2014 The Chromium Authors. All rights reserved. \n// Use of this source code is governed by a BSD-style license that can be \n// found in the LICENSE file. \n \n// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! \n \n#ifndef MIDIMessageEventInit_h \n#define MID...
242
8
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 29.33, "nodes": 131, "errors": 0, "source_hash": "743aa6fa2f900b48275560d7ee4262b63332f7891bb7fe461f2a735ac3a2d05e", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,773
c
/* * MIT License * * Copyright (c) 2016 xiongziliang <<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...
31.69
272
(translation_unit) "\n * MIT License\n *\n * Copyright (c) 2016 xiongziliang <<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 limitat...
1,906
83
{"language": "c", "success": true, "metadata": {"lines": 272, "avg_line_length": 31.69, "nodes": 1112, "errors": 0, "source_hash": "2ef97ffb788fb1668c72c9f428771a9b9bc850b45fea9831d11b41ac3df50109", "categorized_nodes": 761}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fnde...
78,774
c
#ifndef LF_TOOLS_PERF_FWD_HEADER #define LF_TOOLS_PERF_FWD_HEADER #include "ring/fwd.h" enum class State; struct params; template <typename> class producer; template <typename> class consumer; #endif // LF_TOOLS_PERF_FWD_HEADER
21.8
10
(translation_unit) "#ifndef LF_TOOLS_PERF_FWD_HEADER\n#define LF_TOOLS_PERF_FWD_HEADER\n\n#include "ring/fwd.h"\n\nenum class State;\n\nstruct params;\n\ntemplate <typename>\nclass producer;\n\ntemplate <typename>\nclass consumer;\n\n#endif // LF_TOOLS_PERF_FWD_HEADER\n" (preproc_ifdef) "#ifndef LF_TOOLS_PERF_FWD_HEA...
47
2
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.8, "nodes": 31, "errors": 0, "source_hash": "ca56f59b0ddd5510d16d4c1052312d7e6ff39163c4b9e0fd1607a53aaeb543ea", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef L...
78,775
c
#pragma once class c_Calc { int a; int b; public: c_Calc(int, int); int plus(int, int); inline int minus(int a, int b) { int s = a - b; return s; } inline int multiplication(int a, int b) { int s = a * b; return s; } double division(int, int); void smaller(int, int)const; void bigger(int, int)const;...
15.77
22
(translation_unit) "#pragma once\nclass c_Calc\n{\n int a;\n int b;\npublic:\n c_Calc(int, int);\n int plus(int, int);\n inline int minus(int a, int b) {\n int s = a - b;\n return s;\n }\n inline int multiplication(int a, int b) {\n int s = a * b;\n return s;\n }\n double division(int, int); \n void smaller(int, in...
181
2
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 15.77, "nodes": 119, "errors": 0, "source_hash": "8e1e4ffdc9a0d8e635b82c3cdb1170cb5e6770ad1c1a2248488dab0cdb1a0fd7", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
78,776
c
//// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF //// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO //// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A //// PARTICULAR PURPOSE. //// //// Copyright (c) Microsoft Corporation. All rights reserved #pragma once #in...
37.45
233
(translation_unit) "//// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF\n//// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO\n//// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A\n//// PARTICULAR PURPOSE.\n////\n//// Copyright (c) Microsoft Corporation. All rights ...
1,453
53
{"language": "c", "success": true, "metadata": {"lines": 233, "avg_line_length": 37.45, "nodes": 889, "errors": 0, "source_hash": "a254f41adbd858946830b5338a30b347df70ace74aa49eedb96f51daea420a65", "categorized_nodes": 627}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
78,777
c
#include <stdio.h> long long mul(long long n); int main() { long long a,b,x,y,ans; scanf("%lld %lld",&a,&b); x=mul(a); y=mul(b)*mul(a-b); ans=x/y; printf("%lld",ans); return 0; } long long mul(long long n){ long long i,M; M=1; if(n==0) M=1; else{ for(i=n;i>=...
14.71
24
(translation_unit) "#include <stdio.h>\nlong long mul(long long n);\n\nint main()\n{\n long long a,b,x,y,ans;\n scanf("%lld %lld",&a,&b);\n x=mul(a);\n y=mul(b)*mul(a-b);\n ans=x/y;\n printf("%lld",ans);\n return 0;\n}\n\nlong long mul(long long n){\n long long i,M;\n M=1;\n if(n==0)\n ...
205
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 14.71, "nodes": 128, "errors": 0, "source_hash": "98382c44268b3b2520dd818b675789cc8e8b318df51f695a7d13f1c5231c0823", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
78,778
c
// ------------------------------------------------------------ // Copyright(c) 2019 <NAME> // Licensed under the MIT License <http://opensource.org/licenses/MIT>. // See the LICENSE file in the repo root for full license information. // ------------------------------------------------------------ #pragma once ...
32.53
32
(translation_unit) "// ------------------------------------------------------------ \n// Copyright(c) 2019 <NAME> \n// Licensed under the MIT License <http://opensource.org/licenses/MIT>. \n// See the LICENSE file in the repo root for full license information. \n// ------------------------------------------------------...
214
19
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 32.53, "nodes": 118, "errors": 0, "source_hash": "b76d10b98e5cb3a7182486e9a63d6264a110fbef42569810bfe95affc31931ec", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
78,779
c
#pragma once #include <string> #include <unordered_map> struct Input { Input(); // fixed data // bool noWindow; bool exitStatus; bool enableOpenGL1; std::wstring inputLibraryPath; std::wstring inputRenderName; // mouse and keyboad/oher gui input // float camMoveSpeed; float mouseSensitivity...
16.62
21
(translation_unit) "#pragma once\n\n#include <string>\n#include <unordered_map>\n\nstruct Input\n{\n Input();\n\n // fixed data\n //\n bool noWindow;\n bool exitStatus;\n bool enableOpenGL1;\n\n std::wstring inputLibraryPath;\n std::wstring inputRenderName;\n\n // mouse and keyboad/oher gui input\n //\n floa...
71
2
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 16.62, "nodes": 45, "errors": 0, "source_hash": "a0bcc4d6daedbc348738a55b4af028094cbb1434c85220082d2305f020864b8a", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
78,780
c
// // UIScrollView+BMF.h // Example // // Created by <NAME> on 26/03/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> #import "BMFTypes.h" @interface UIScrollView (BMF) /// Adds views of the same size than the scroll view distributed along the axis specified. This is useful for ...
35.88
16
(translation_unit) "//\n// UIScrollView+BMF.h\n// Example\n//\n// Created by <NAME> on 26/03/14.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n#import "BMFTypes.h"\n\n@interface UIScrollView (BMF)\n\n/// Adds views of the same size than the scroll view distributed along the a...
101
7
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 35.88, "nodes": 57, "errors": 0, "source_hash": "85b8766ea5ae163025145afff6d5629a9cf05f8c4a664766ca6cf6b2ae15ec5c", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
78,781
c
/* * Copyright (C) 2019-2021 Intel Corporation * * SPDX-License-Identifier: MIT * */ #pragma once #include "shared/test/common/fixtures/device_fixture.h" #include "shared/test/unit_test/fixtures/mock_aub_center_fixture.h" namespace NEO { struct AubCommandStreamReceiverFixture : public DeviceFixture, MockAubCent...
28.18
22
(translation_unit) "/*\n * Copyright (C) 2019-2021 Intel Corporation\n *\n * SPDX-License-Identifier: MIT\n *\n */\n\n#pragma once\n\n#include "shared/test/common/fixtures/device_fixture.h"\n#include "shared/test/unit_test/fixtures/mock_aub_center_fixture.h"\n\nnamespace NEO {\nstruct AubCommandStreamReceiverFixture : ...
131
6
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 28.18, "nodes": 63, "errors": 0, "source_hash": "161b835185eb54555e41158f045c304af3a9040abd2a178d51f282c2b2e46cbc", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
78,782
c
#include <signal.h> int sigismember(const sigset_t *set, int sig) { unsigned s = sig-1; if (s >= _NSIG-1) return 0; return !!(set->__bits[s/8/sizeof *set->__bits] & 1UL<<(s&8*sizeof *set->__bits-1)); }
28.29
7
(translation_unit) "#include <signal.h>\n\nint sigismember(const sigset_t *set, int sig)\n{\n unsigned s = sig-1;\n if (s >= _NSIG-1) return 0;\n return !!(set->__bits[s/8/sizeof *set->__bits] & 1UL<<(s&8*sizeof *set->__bits-1));\n}\n" (preproc_include) "#include <signal.h>\n" (#include) "#include" (system_li...
108
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 28.29, "nodes": 78, "errors": 0, "source_hash": "48f40fc6e8a1b64d54c4084a083ea177ee1c1d5779d9f2b5a26de40ab72bf21f", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
78,783
c
/* * Copyright 2014 Canonical Ltd. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARR...
27.01
77
(translation_unit) "/*\n * Copyright 2014 Canonical Ltd.\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; version 3.\n *\n * This program is distributed in the hope that it will be usef...
350
0
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 27.01, "nodes": 174, "errors": 0, "source_hash": "0e4b1501d733830f48c7c06584075d3e7a1009fd81909cd81272da3e5478f424", "categorized_nodes": 174}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,784
c
#include <stdio.h> #include <unistd.h> #include <stdint.h> #include <sys/stat.h> #include <stdlib.h> #include "modulePacker.h" int main(int argc, char *argv[]) { printf("x64BareBones Module Packer (C) v0.1\n"); if(argc < 2) { printf("usage: \n"); printf(" $> mp.bin <kernel binary> <user binary0> ... <user bina...
22.84
74
(translation_unit) "#include <stdio.h>\n#include <unistd.h>\n#include <stdint.h>\n#include <sys/stat.h>\n#include <stdlib.h>\n#include "modulePacker.h"\n\nint main(int argc, char *argv[]) {\n\n printf("x64BareBones Module Packer (C) v0.1\n");\n\n if(argc < 2) {\n printf("usage: \n");\n printf(" $> mp.bin <kernel bina...
638
0
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 22.84, "nodes": 366, "errors": 0, "source_hash": "66af52c0b8378ecb2f7a56605cb0aaebe802f3543f4ada8d1f878adc341c6dc5", "categorized_nodes": 266}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,785
c
/* * This file and its contents are licensed under the Apache License 2.0. * Please see the included NOTICE for copyright information and * LICENSE-APACHE for a copy of the license. */ #include <postgres.h> #include <fmgr.h> #include <utils/builtins.h> #include <utils/json.h> #include <utils/jsonb.h> #include <uti...
28.47
100
(translation_unit) "/*\n * This file and its contents are licensed under the Apache License 2.0.\n * Please see the included NOTICE for copyright information and\n * LICENSE-APACHE for a copy of the license.\n */\n#include <postgres.h>\n#include <fmgr.h>\n\n#include <utils/builtins.h>\n#include <utils/json.h>\n#include...
809
5
{"language": "c", "success": true, "metadata": {"lines": 100, "avg_line_length": 28.47, "nodes": 527, "errors": 0, "source_hash": "24fe08e7f2914b003d056b1968b3733237773bacebd43d104ad8e0baad1d49df", "categorized_nodes": 363}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,786
c
/* * (C) Copyright 2016 Rockchip Electronics Co., Ltd * * SPDX-License-Identifier: GPL-2.0+ */ #include <common.h> #include <dm.h> #include <syscon.h> #include <asm/arch/clock.h> static const struct udevice_id rk3399_syscon_ids[] = { { .compatible = "rockchip,rk3399-grf", .data = ROCKCHIP_SYSCON_GRF }, { .compa...
27.06
18
(translation_unit) "/*\n * (C) Copyright 2016 Rockchip Electronics Co., Ltd\n *\n * SPDX-License-Identifier: GPL-2.0+\n */\n\n#include <common.h>\n#include <dm.h>\n#include <syscon.h>\n#include <asm/arch/clock.h>\n\nstatic const struct udevice_id rk3399_syscon_ids[] = {\n { .compatible = "rockchip,rk3399-grf", .data = ...
108
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 27.06, "nodes": 65, "errors": 0, "source_hash": "52f355175bacfed793a4921d06ee48fd1c623c1fdfbf4a1ea4a9e89e707d5409", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
78,787
c
/** * Minimal configuration for using mbedtls as part of mbed-client * * NOTE! This is an optimized, minimal configuration for mbed Client. * We know it works with mbed Client but if you want to add more * services/communications to the application yourself - please ensure * you update this configuration acc...
35.56
102
(translation_unit) "/**\n * Minimal configuration for using mbedtls as part of mbed-client\n *\n * NOTE! This is an optimized, minimal configuration for mbed Client.\n * We know it works with mbed Client but if you want to add more\n * services/communications to the application yourself - please ensure\n * you upd...
194
0
{"language": "c", "success": true, "metadata": {"lines": 102, "avg_line_length": 35.56, "nodes": 168, "errors": 0, "source_hash": "9212fae8fab40fc960dec0308092e6486f6e882f58bcf530625bc3a40989947d", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,788
c
// Experiment No.8: Fractional knapsack # include<stdio.h> void main() { float weight[20], profit[20], capacity; int n, i, j; float ratio[20], fract=1.0, tp=0, temp; printf("\nEnter the capacity of knapsack:- "); scanf("%f",&capacity); printf("\nEnter the no. of items:- "); scanf("%d",&n); printf("\nEn...
18.09
58
(translation_unit) "// Experiment No.8: Fractional knapsack\n\n# include<stdio.h>\n\nvoid main()\n{\n float weight[20], profit[20], capacity;\n int n, i, j;\n float ratio[20], fract=1.0, tp=0, temp;\n \n printf("\nEnter the capacity of knapsack:- ");\n scanf("%f",&capacity); \n \n printf("\nEnter the no. of items:- ");...
507
0
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 18.09, "nodes": 289, "errors": 0, "source_hash": "f2970204f3e98823ac85d3f61d76d798397a7c08f18436fc9b73cf834f1f4c38", "categorized_nodes": 223}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "# in...
78,789
c
#pragma once #include <core/smartview/block/block.h> #include <core/smartview/SPropValueStruct.h> namespace smartview { class PropertiesStruct : public block { public: PropertiesStruct(DWORD cValues, bool bNickName, bool bRuleCondition) : m_MaxEntries(cValues), m_NickName(bNickName), m_RuleCondition(bRuleCondi...
26.29
21
(translation_unit) "#pragma once\n#include <core/smartview/block/block.h>\n#include <core/smartview/SPropValueStruct.h>\n\nnamespace smartview\n{\n class PropertiesStruct : public block\n {\n public:\n PropertiesStruct(DWORD cValues, bool bNickName, bool bRuleCondition)\n : m_MaxEntries(cValues), m_NickName(bNickNam...
131
6
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 26.29, "nodes": 76, "errors": 0, "source_hash": "66d4d9e318af395835cc09fd504052aff8c8a8ae3226af7d2d11cecfd5268186", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
78,790
c
#ifndef PROJECT_HEADER_component164_4_H #define PROJECT_HEADER_component164_4_H int component164_4(); #endif // PROJECT_HEADER_component164_4_H
28
5
(translation_unit) "#ifndef PROJECT_HEADER_component164_4_H\n#define PROJECT_HEADER_component164_4_H\n\n\n\nint component164_4();\n\n#endif // PROJECT_HEADER_component164_4_H" (preproc_ifdef) "#ifndef PROJECT_HEADER_component164_4_H\n#define PROJECT_HEADER_component164_4_H\n\n\n\nint component164_4();\n\n#endif" ...
17
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 28.0, "nodes": 12, "errors": 0, "source_hash": "566ab9dc5c17fb0f769084e063f3cc5440646fb0c872a3e8cb386106494a177d", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef PRO...
78,791
c
/* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> #ifndef __gnu_xml_libxmlj_dom_GnomeNodeList__ #define __gnu_xml_libxmlj_dom_GnomeNodeList__ #ifdef __cplusplus extern "C" { #endif JNIEXPORT jobject JNICALL Java_gnu_xml_libxmlj_dom_GnomeNodeList_item (JNIEnv *env, jobject, jint); JNIEXPORT jint...
33.07
14
(translation_unit) "/* DO NOT EDIT THIS FILE - it is machine generated */\n\n#include <jni.h>\n\n#ifndef __gnu_xml_libxmlj_dom_GnomeNodeList__\n#define __gnu_xml_libxmlj_dom_GnomeNodeList__\n\n#ifdef __cplusplus\nextern "C"\n{\n#endif\n\nJNIEXPORT jobject JNICALL Java_gnu_xml_libxmlj_dom_GnomeNodeList_item (JNIEnv *env...
75
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 33.07, "nodes": 55, "errors": 0, "source_hash": "73430dd22183ae484a6bf3dd681f7408f5facbe04a22124f28696ee942e38f78", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
78,792
c
#ifndef __Test__ViewAnimationTest__ #define __Test__ViewAnimationTest__ #include "RootWindow.h" class ViewAnimationTest: public CAViewController { public: ViewAnimationTest(); virtual ~ViewAnimationTest(); CREATE_FUNC(ViewAnimationTest); protected: void viewDidLoad(); voi...
17.7
23
(translation_unit) "#ifndef __Test__ViewAnimationTest__\n#define __Test__ViewAnimationTest__\n\n#include "RootWindow.h"\n\nclass ViewAnimationTest: public CAViewController\n{\n \npublic:\n\n ViewAnimationTest();\n \n virtual ~ViewAnimationTest();\n \n CREATE_FUNC(ViewAnimationTest);\n \nprotected:\n \...
85
2
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 17.7, "nodes": 48, "errors": 0, "source_hash": "130b3ad575e9b329415083ee6700226c34f315a4c5980a25cc931536bf588fc4", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
78,793
c
#include "common.h" #include "umonitor.h" static void update_screen(screen_class *); /*! \file \brief Contains the connection and screen information */ /*! screen constructor*/ void screen_class_constructor(screen_class * self) { int i, screenNum, conn_error; static const xcb_setup_t *setup; //Must not be fr...
31.16
70
(translation_unit) "#include "common.h"\n#include "umonitor.h"\n\nstatic void update_screen(screen_class *);\n\n\n/*! \file\n \brief Contains the connection and screen information\n\n*/\n\n/*! screen constructor*/\n\nvoid screen_class_constructor(screen_class * self)\n{\n\n int i, screenNum, conn_error;\n static const...
523
0
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 31.16, "nodes": 306, "errors": 0, "source_hash": "03766e15fc511efc761a55db2a65a73aadbb13986efcd9367c1da85489f91927", "categorized_nodes": 233}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,794
c
// // TableViewCellGouGou5.h // share // // Created by 王旭 on 2020/7/24. // Copyright © 2020 王旭. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface TableViewCellGouGou5 : UITableViewCell @property (nonatomic , strong) UILabel* writerLabel; @property (nonatomic , strong) UILabel* co...
34.77
22
(translation_unit) "//\n// TableViewCellGouGou5.h\n// share\n//\n// Created by 王旭 on 2020/7/24.\n// Copyright © 2020 王旭. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface TableViewCellGouGou5 : UITableViewCell\n@property (nonatomic , strong) UILabel* writerLabel;\n@propert...
207
24
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 34.77, "nodes": 137, "errors": 0, "source_hash": "957c6417f1290214fbae9f780aacd7d623ff9f2018bc9157bf6e42a649fac50f", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit/UI...
78,795
c
#ifndef IOPool_Streamer_ClassFiller_h #define IOPool_Streamer_ClassFiller_h // -*- C++ -*- #include "FWCore/Utilities/interface/DebugMacros.h" #include "Rtypes.h" #include <typeinfo> #include <string> #include <set> #include <vector> namespace edm { class RootDebug { public: RootDebug(int flevel, int rlev...
23.9
31
(translation_unit) "#ifndef IOPool_Streamer_ClassFiller_h\n#define IOPool_Streamer_ClassFiller_h\n\n// -*- C++ -*-\n\n#include "FWCore/Utilities/interface/DebugMacros.h"\n#include "Rtypes.h"\n\n#include <typeinfo>\n#include <string>\n#include <set>\n#include <vector>\n\nnamespace edm\n{\n class RootDebug\n {\n publi...
232
8
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 23.9, "nodes": 138, "errors": 0, "source_hash": "196c2e4344f6637d0ef742f6f7a4f97ed442a444e3131280b121b0060f5830b2", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,796
c
#ifndef _FOUNTAIN_H_ #define _FOUNTAIN_H_ #include <fountain/ft_data.h> #include <fountain/ft_time.h> #include <fountain/ft_3dmodel.h> #include <fountain/ft_render.h> #include <fountain/ft_physics.h> #include <fountain/ft_input.h> #include <fountain/ft_algorithm.h> #include <fountain/ft_scene.h> namespace fountain { ...
16.44
57
(translation_unit) "#ifndef _FOUNTAIN_H_\n#define _FOUNTAIN_H_\n\n#include <fountain/ft_data.h>\n#include <fountain/ft_time.h>\n#include <fountain/ft_3dmodel.h>\n#include <fountain/ft_render.h>\n#include <fountain/ft_physics.h>\n#include <fountain/ft_input.h>\n#include <fountain/ft_algorithm.h>\n#include <fountain/ft_s...
297
10
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 16.44, "nodes": 169, "errors": 0, "source_hash": "8fc8968b4017e059e3abbb1eb444913d2f733a9b0f9845f65bd352816c966f81", "categorized_nodes": 123}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,797
c
#include <stdint.h> extern void *_binary_pr25749_1_c_start; extern void *_binary_pr25749_1_c_end; intptr_t size (void) { return ((intptr_t) &_binary_pr25749_1_c_end - (intptr_t) &_binary_pr25749_1_c_start); } extern void *_begin __attribute__ ((visibility("hidden"))); intptr_t size_p (void) { return (intptr_...
21
15
(translation_unit) "#include <stdint.h>\n\nextern void *_binary_pr25749_1_c_start;\nextern void *_binary_pr25749_1_c_end;\n\nintptr_t\nsize (void)\n{\n return ((intptr_t) &_binary_pr25749_1_c_end\n - (intptr_t) &_binary_pr25749_1_c_start);\n}\n\nextern void *_begin __attribute__ ((visibility("hidden")));\n\nintptr_t...
105
1
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 21.0, "nodes": 65, "errors": 0, "source_hash": "7f4a3617caaa74af2ff6ec387b9bd813ab533c66114e77e5a760f5dbf729ec11", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
78,798
c
/*++ Copyright (c) 1995 Microsoft Corporation Module Name: rip.c Abstract: IPX Router Console Monitoring and Configuration tool. RIP Command dispatcher. Author: <NAME> 1/5/1998 --*/ #include "precomp.h" #pragma hdrstop FN_HANDLE_CMD HandleIpxRipAddFilter; FN_HANDLE...
21.24
349
(translation_unit) "/*++ \n \nCopyright (c) 1995 Microsoft Corporation \n \nModule Name: \n \n rip.c \n \nAbstract: \n \n IPX Router Console Monitoring and Configuration tool. \n RIP Command dispatcher. \n \nAuthor: \n \n <NAME> 1/5/1998 \n \n--*/ \n \n#include "precomp.h" \n#pragma hdrstop \n \n \nFN_H...
1,319
67
{"language": "c", "success": true, "metadata": {"lines": 349, "avg_line_length": 21.24, "nodes": 890, "errors": 0, "source_hash": "5a9f374f8f3d3f9fb5a848aa668e59abc1fa8dc203378da99ce51408db33c602", "categorized_nodes": 649}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,799