language
stringclasses
1 value
code
stringlengths
6
12.3k
avg_line_length
float64
2.79
91
line_count
float64
1
367
lang_specific_parse
stringlengths
60
1.08M
ast_node_count
int64
2
6.81k
num_errors
int64
0
499
universal_schema
stringlengths
799
825k
__index_level_0__
int64
0
81.2k
c
#ifndef SYMBOL_H #define SYMBOL_H #include <stdlib.h> #include "../split.h" // Symbols #define SYM(BIN) BIN ^ (0b01 << 30) #define SYMBOL_MASK 0b10000000000000000000000000000000 #define IS_SYM(BIN) (BIN | SYMBOL_MASK) static const struct _Symbols { char *name; uint32_t flag; //...
32.73
75
(ERROR) "#ifndef SYMBOL_H\n#define SYMBOL_H\n#include <stdlib.h>\n#include "../split.h"\n\n// Symbols\n#define SYM(BIN) BIN ^ (0b01 << 30)\n#define SYMBOL_MASK 0b10000000000000000000000000000000\n#define IS_SYM(BIN) (BIN | SYMBOL_MASK)\nstatic const struct _Symbols {\n char *name;\n ...
497
23
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 32.73, "nodes": 328, "errors": 0, "source_hash": "4c62c1a8849cd653c970395dd67f4865d30b4ef937a54e4830782d6de8e50c55", "categorized_nodes": 188}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef SYMBOL_H\n#define...
7,600
c
#ifndef _MySupport_MyProgress_h_ #define _MySupport_MyProgress_h_ class MyProgress : public Progress { private: int ts, pp; public: void SetMax(int max); void SetLev(int lev); bool PartialProgress(int par, int tot); operator Gate2<int, int>() { return callback(this, &MyProgress::P...
18.7
20
(translation_unit) "#ifndef _MySupport_MyProgress_h_ \n#define _MySupport_MyProgress_h_ \n \nclass MyProgress : public Progress { \n private: \n int ts, pp; \n \n public: \n void SetMax(int max); \n void SetLev(int lev); \n \n bool PartialProgress(int par, int tot); \n \n operator Gate2<int, int>() { ret...
105
4
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 18.7, "nodes": 65, "errors": 0, "source_hash": "dab3ea69fa88878975d9e7c7b3a6d087d3f6538312da2bf654779db145b07f31", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
7,601
c
// // PostcardNetworkCell.h // Postcard // // Created by <NAME> on 2013-08-24. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface PostcardNetworkCell : RMSwipeTableViewCell //UITableViewCell @property(nonatomic, weak) IBOutlet UIImageView *hostImageView; @property(nonatomic,...
41.18
22
(translation_unit) "//\n// PostcardNetworkCell.h\n// Postcard\n//\n// Created by <NAME> on 2013-08-24.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface PostcardNetworkCell : RMSwipeTableViewCell //UITableViewCell\n\n@property(nonatomic, weak) IBOutlet UIImageView *hos...
220
39
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 41.18, "nodes": 157, "errors": 0, "source_hash": "3242c379add3c38412912020b19b680ba66e3ad9302cde95abc71d8e925a26de", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
7,602
c
#import <UIKit/UIKit.h> #import "UIView+WaterMark.h" extern NSString *const kWaterMarkWebViewObserverKeyPath; extern NSString *const kWaterMarkScrollViewObserverKeyPath; /** 水印列数类型 */ typedef NS_OPTIONS(NSInteger, WaterMarkViewType) { kMarkVIewType_Default = 1, //全屏水印 暂时两列 kMarkViewType_TwoColumn = 1 << 1,...
21.03
34
(translation_unit) "#import <UIKit/UIKit.h>\n#import "UIView+WaterMark.h"\n\nextern NSString *const kWaterMarkWebViewObserverKeyPath;\nextern NSString *const kWaterMarkScrollViewObserverKeyPath;\n\n/**\n 水印列数类型\n */\ntypedef NS_OPTIONS(NSInteger, WaterMarkViewType) {\n kMarkVIewType_Default = 1, //全屏水印 暂时两列\n kMa...
170
11
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 21.03, "nodes": 110, "errors": 0, "source_hash": "df98d1604450e174949f3527580d33d0c4937eb09a1d972cc055e95fb047cc7e", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
7,603
c
// // PublishEditModel.h // LoveBird // // Created by <NAME> on 2018/5/7. // Copyright © 2018年 shancheli. All rights reserved. // #import <JSONModel/JSONModel.h> #import "PublishUpModel.h" @interface PublishEditModel : JSONModel // 是否是新上传的图片 @property (nonatomic, assign) BOOL isNewAid; // 图片的id @property (nonat...
25.2
35
(translation_unit) "//\n// PublishEditModel.h\n// LoveBird\n//\n// Created by <NAME> on 2018/5/7.\n// Copyright © 2018年 shancheli. All rights reserved.\n//\n\n#import <JSONModel/JSONModel.h>\n#import "PublishUpModel.h"\n\n@interface PublishEditModel : JSONModel\n\n// 是否是新上传的图片\n@property (nonatomic, assign) BOOL is...
218
46
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 25.2, "nodes": 150, "errors": 0, "source_hash": "8032a6e0e338bee8929a0692d72f3d1a5a7ff1b6a5e5b5b8c09c8565869448f6", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <JSO...
7,604
c
// // ViewControllerVideoFlip.h // SJVideoPlayer // // Created by BlueDancer on 2018/10/19. // Copyright © 2018 畅三江. All rights reserved. // #import "BaseViewController.h" NS_ASSUME_NONNULL_BEGIN @interface ViewControllerVideoFlip : BaseViewController @end NS_ASSUME_NONNULL_END
22.58
12
(translation_unit) "//\n// ViewControllerVideoFlip.h\n// SJVideoPlayer\n//\n// Created by BlueDancer on 2018/10/19.\n// Copyright © 2018 畅三江. All rights reserved.\n//\n\n#import "BaseViewController.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface ViewControllerVideoFlip : BaseViewController\n\n@end\n\nNS_ASSUME_NONNULL_...
27
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 22.58, "nodes": 16, "errors": 0, "source_hash": "d5fc65464a2dfd53f45193999f9605b50b5aa6932826283bee93afcbe5fb1dc7", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " \"BaseVie...
7,605
c
#import <Foundation/Foundation.h> @interface PNERemoteLogging : NSObject +(void)incrementSession; +(void) send:(const char*) aSender line:(int) aLine originalFormat:(NSString *)aOriginalFormat , ... ; @end
25.67
9
(translation_unit) "#import <Foundation/Foundation.h>\n\n@interface PNERemoteLogging : NSObject\n\n+(void)incrementSession;\n\n+(void) send:(const char*) aSender\n line:(int) aLine\n originalFormat:(NSString *)aOriginalFormat\n , ...\n;\n\n@end\n\n\n\n" (preproc_call) "#import <Foundati...
75
7
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 25.67, "nodes": 43, "errors": 0, "source_hash": "6eb948023de6d034f02e82f9aa75426c7f58977ee37a08b07a0d24a7bc90e394", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
7,606
c
/* Arcitecture specific flash memory functions This work is licensed under the Creative Commons Attribution 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by/3.0/ or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105...
25.7
70
(translation_unit) "/*\nArcitecture specific flash memory functions\n\n\nThis work is licensed under the Creative Commons Attribution 3.0 Unported License.\nTo view a copy of this license, visit http://creativecommons.org/licenses/by/3.0/\nor send a letter to\n Creative Commons,\n 171 Second Street,\n Suite 300,\n San ...
395
0
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 25.7, "nodes": 246, "errors": 0, "source_hash": "bbdfa59fbc4d03894e94f19b736b573ddcea5d328a4718696406d1fe8eff3e87", "categorized_nodes": 165}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
7,607
c
/* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2011-2014 Intel Corporation * Copyright (C) 2002-2010 <NAME> <<EMAIL>> * * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free...
24.53
215
(translation_unit) "/*\n *\n * BlueZ - Bluetooth protocol stack for Linux\n *\n * Copyright (C) 2011-2014 Intel Corporation\n * Copyright (C) 2002-2010 <NAME> <<EMAIL>>\n *\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * Li...
1,564
0
{"language": "c", "success": true, "metadata": {"lines": 215, "avg_line_length": 24.53, "nodes": 868, "errors": 0, "source_hash": "c52cae5fe76aea8be1a3f78439c18c8930bfeae3a658a7694012604b6ab3735d", "categorized_nodes": 587}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifde...
7,608
c
// // StatusTableViewCell.h // TPOneClient // // Created by 刘旦 on 15/12/2. // Copyright © 2015年 刘旦. All rights reserved. // #import <UIKit/UIKit.h> #import "Status.h" #import "PicBroswer.h" @interface StatusTableViewCell : UITableViewCell @property (strong, nonatomic) IBOutlet UILabel *userNameLab; @property (str...
34.33
27
(translation_unit) "//\n// StatusTableViewCell.h\n// TPOneClient\n//\n// Created by 刘旦 on 15/12/2.\n// Copyright © 2015年 刘旦. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "Status.h"\n#import "PicBroswer.h"\n\n@interface StatusTableViewCell : UITableViewCell\n@property (strong, nonatomic) IBOutlet UIL...
269
44
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 34.33, "nodes": 197, "errors": 0, "source_hash": "16e4acab9cac6d169046c058e8f424cc093c3c4e03a54c84f08ad4b127afde0b", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Kit/UIK...
7,609
c
/* * RELIC is an Efficient LIbrary for Cryptography * Copyright (C) 2007-2017 RELIC Authors * * This file is part of RELIC. RELIC is legal property of its developers, * whose names are not listed here. Please refer to the COPYRIGHT file * for contact information. * * RELIC is free software; you can redistribute...
35.19
68
(translation_unit) "/*\n * RELIC is an Efficient LIbrary for Cryptography\n * Copyright (C) 2007-2017 RELIC Authors\n *\n * This file is part of RELIC. RELIC is legal property of its developers,\n * whose names are not listed here. Please refer to the COPYRIGHT file\n * for contact information.\n *\n * RELIC is free so...
94
0
{"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 35.19, "nodes": 62, "errors": 0, "source_hash": "aa07114064171661b069fc85c9a1c2792fc3182660ad4781f0b4d03ab6f504d2", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,610
c
/// /// \brief Temperature control object /// The object has a setpoint and confront it with the current temperature value. /// The tick function must be called with a timer and set the PWM out. /// #ifndef TEMP_CTRL_H #define TEMP_CTRL_H /// /// \brief Temperature control class /// class TempCtrl { public: TempCtr...
26.55
64
(translation_unit) "///\n/// \brief Temperature control object\n/// The object has a setpoint and confront it with the current temperature value.\n/// The tick function must be called with a timer and set the PWM out.\n///\n\n#ifndef TEMP_CTRL_H\n#define TEMP_CTRL_H\n\n///\n/// \brief Temperature control class\n///\ncl...
306
3
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 26.55, "nodes": 175, "errors": 0, "source_hash": "950d2ccd5456cb6d8a098bdb7fa0541ca6e79b19b033d3ee0984f82f19c120ee", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,611
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "UIButton.h" @interface FDSecondButton : UIButton { } - (void)setHighlighted:(_Bool)arg1; - (void)setEnabled:(_Bool)arg1; - (void)initUI; - (id)init; - (id)initWithCoder:(id)arg...
20.67
15
(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 "UIButton.h"\n\n@interface FDSecondButton : UIButton\n{\n}\n\n- (void)setHighlighted:(_Bool)arg1;\n- (void)setEnabled:(_Bool)arg1;\n- (void)initUI;\n- (i...
93
8
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 20.67, "nodes": 51, "errors": 0, "source_hash": "f3fb03e4a33458264a6539136a77925dbcb74bfde499674ddcbaa799c7a2686a", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
7,612
c
/* * Developed by <NAME> * Copy Right by Prism Research Group, HKUST and State Key Lab for Novel Software Tech., Nanjing University. */ #ifndef EDGELABEL_H #define EDGELABEL_H #include <stdio.h> #include <map> class EdgeLabel { public: enum LABEL_TY {DEREF_TYPE, OFFSET_TYPE, INDEX_TYPE}; private: std::s...
28.15
62
(translation_unit) "/*\n * Developed by <NAME>\n * Copy Right by Prism Research Group, HKUST and State Key Lab for Novel Software Tech., Nanjing University. \n */\n\n#ifndef EDGELABEL_H\n#define EDGELABEL_H\n\n#include <stdio.h>\n#include <map>\n\nclass EdgeLabel {\npublic:\n enum LABEL_TY {DEREF_TYPE, OFFSET_TYPE,...
533
20
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 28.15, "nodes": 285, "errors": 0, "source_hash": "50ba42f5e9f511d8a1414fde89a5ead51a82c626a245c0274a5288a1c6ccaf7d", "categorized_nodes": 210}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,613
c
// ************************************************************* // File: gl_debug_draw.h // Author: <NAME> @ 2018 // URL: https://github.com/ans-hub/gdm_framework // ************************************************************* #ifndef AH_DEBUG_DRAW_H #define AH_DEBUG_DRAW_H #include <vector> #include <func...
29.82
28
(translation_unit) "// *************************************************************\n// File: gl_debug_draw.h\n// Author: <NAME> @ 2018\n// URL: https://github.com/ans-hub/gdm_framework\n// *************************************************************\n\n#ifndef AH_DEBUG_DRAW_H\n#define AH_DEBUG_DRAW_H\n\n#inc...
180
5
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 29.82, "nodes": 111, "errors": 0, "source_hash": "cabf367e738e552e0e2419bcfa6a18f0c675c1d32ea6668891fe2415e563ab6c", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,614
c
#ifndef _JAVA_LEVEL_DB_INCLUDE_H_ #define _JAVA_LEVEL_DB_INCLUDE_H_ #include <jni.h> #ifdef __cplusplus extern "C" { #endif /** Leveldb破棄. **/ void java_leveldb_destroy( jlong name,jint type,jint write_buffer_size, jint max_open_files,jint block_size,jint block_restart_interval ) ; /** Leveldb調整. *...
27.6
116
(translation_unit) "#ifndef _JAVA_LEVEL_DB_INCLUDE_H_ \n#define _JAVA_LEVEL_DB_INCLUDE_H_ \n \n#include <jni.h> \n \n#ifdef __cplusplus \nextern "C" { \n#endif \n \n/** Leveldb破棄. **/ \nvoid java_leveldb_destroy( jlong name,jint type,jint write_buffer_size, \n jint max_open_files,jint block_size,jint block_restart_i...
637
0
{"language": "c", "success": true, "metadata": {"lines": 116, "avg_line_length": 27.6, "nodes": 443, "errors": 0, "source_hash": "906ff750653206741608972f239f89c24cd0249d0a8d37bbd9a47538396b7807", "categorized_nodes": 383}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,615
c
#include "master.h" /* gets the address of an object representing a C pointer */ void *alien_offset(CELL object) { F_ALIEN *alien; F_BYTE_ARRAY *byte_array; switch(type_of(object)) { case BYTE_ARRAY_TYPE: byte_array = untag_object(object); return byte_array + 1; case ALIEN_TYPE: alien = untag_object(objec...
25.13
204
(translation_unit) "#include "master.h"\n\n/* gets the address of an object representing a C pointer */\nvoid *alien_offset(CELL object)\n{\n F_ALIEN *alien;\n F_BYTE_ARRAY *byte_array;\n\n switch(type_of(object))\n {\n case BYTE_ARRAY_TYPE:\n byte_array = untag_object(object);\n return byte_array + 1;\n case ALIEN_T...
1,522
2
{"language": "c", "success": true, "metadata": {"lines": 204, "avg_line_length": 25.13, "nodes": 911, "errors": 0, "source_hash": "dbc3ba9790c8de6a88dbb5d9a845e1b7f37d9b2cbb8ea349bf50d4c6218e0c8d", "categorized_nodes": 652}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,616
c
#pragma once #include <string> #include <vector> #include "token.h" class Lexer { public: std::vector<Token> tokenize(const std::string &data); };
17.88
8
(translation_unit) "#pragma once\n\n#include <string>\n#include <vector>\n\n#include "token.h"\n\nclass Lexer {\npublic:\n std::vector<Token> tokenize(const std::string &data);\n};" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <string>\n" ...
54
2
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 17.88, "nodes": 31, "errors": 0, "source_hash": "b377873657ac5e9a07e459813b7f517ebcd66fc76c740fae0cdcc16e87ca25f1", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
7,617
c
#include <libk/assert.h> #include <libk/bits.h> #include <libk/math.h> #include "memory_manager.h" extern u32 KERNEL_END; static u8 *page_bitmap; static u32 page_bitmap_length; static u32 bitmap_base_address = (u32)&KERNEL_END + 0x100; static u32 memory_end; static u32 memory_page_count; static u32 allocator_base_a...
32.92
63
(translation_unit) "#include <libk/assert.h>\n#include <libk/bits.h>\n#include <libk/math.h>\n#include "memory_manager.h"\n\nextern u32 KERNEL_END;\n\nstatic u8 *page_bitmap;\nstatic u32 page_bitmap_length;\n\nstatic u32 bitmap_base_address = (u32)&KERNEL_END + 0x100;\nstatic u32 memory_end;\nstatic u32 memory_page_cou...
577
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 32.92, "nodes": 375, "errors": 0, "source_hash": "3d07e7a2aa15ddb24c5d568940d6f9b127d941659ee6240fea120e95d2c973a8", "categorized_nodes": 273}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,618
c
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <fcntl.h> #include <time.h> #include <string.h> #define MAX_RAND 10 #define OFFSET -5 // argv: pathname minN maxN int main(int argc, char **argv) { int fd; srand(time(NULL)); if (argc < 4) printf("Error\n"); char buffer[20]...
27.38
37
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <unistd.h>\n#include <fcntl.h>\n#include <time.h>\n#include <string.h>\n\n#define MAX_RAND 10\n#define OFFSET -5\n\n// argv: pathname minN maxN\n\nint main(int argc, char **argv) {\n int fd;\n\n srand(time(NULL));\n if (argc < 4)\n pr...
393
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 27.38, "nodes": 241, "errors": 0, "source_hash": "f26e9a8a3ac2f38d2f0f55168def26de68c519b9cb158494afc3fe62cf5c71d3", "categorized_nodes": 168}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,619
c
// // WLArticleDetailViewController.h // iOSInformation // // Created by ywl on 2017/1/3. // Copyright © 2017年 teed. All rights reserved. // #import <UIKit/UIKit.h> @class WLCocoaModel; @interface WLArticleDetailViewController : UIViewController @property (nonatomic, strong) WLCocoaModel *cocoa; @property (nonatom...
26.23
13
(translation_unit) "//\n// WLArticleDetailViewController.h\n// iOSInformation\n//\n// Created by ywl on 2017/1/3.\n// Copyright © 2017年 teed. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n@class WLCocoaModel;\n@interface WLArticleDetailViewController : UIViewController\n@property (nonatomic, strong) WLCocoaM...
58
12
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 26.23, "nodes": 40, "errors": 0, "source_hash": "e87a64c6f0f5a1381fc2f9683ee7bf0c51ab449861eac9b8b3925f3ca50af507", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
7,620
c
#include <assert.h> void test_int() { volatile int a = 5; volatile int result = __sync_fetch_and_sub(&a, 1); assert(a == 4); assert(result == 5); } void test_long() { volatile long a = 5; volatile long result = __sync_fetch_and_sub(&a, 1); assert(a == 4); assert(result == 5); } void test_longlong() {...
19.92
25
(translation_unit) "#include <assert.h>\n\nvoid test_int() {\n volatile int a = 5;\n volatile int result = __sync_fetch_and_sub(&a, 1);\n assert(a == 4);\n assert(result == 5);\n}\n\nvoid test_long() {\n volatile long a = 5;\n volatile long result = __sync_fetch_and_sub(&a, 1);\n assert(a == 4);\n assert(result...
222
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 19.92, "nodes": 145, "errors": 0, "source_hash": "59bbaaf760b8d892aa3abf7276bf8a6a8e55b5468d3312289533b867ae4542d6", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
7,621
c
#ifndef TREE_C #define TREE_C #include <stdio.h> #include <stdlib.h> #include "args.h" #include "num.h" #include "list.h" #include "app.h" static long instances_count = 0; extern struct Node *list_loadFromFile(char *fileName) { struct Node *result = newTree(); FILE *file = fopen(fileName, "r"); if (file =...
22.35
112
(translation_unit) "#ifndef TREE_C\n#define TREE_C\n#include <stdio.h>\n#include <stdlib.h>\n#include "args.h"\n#include "num.h"\n#include "list.h"\n#include "app.h"\n\nstatic long instances_count = 0;\n\nextern struct Node *list_loadFromFile(char *fileName)\n{\n struct Node *result = newTree();\n FILE *file = fo...
850
0
{"language": "c", "success": true, "metadata": {"lines": 112, "avg_line_length": 22.35, "nodes": 520, "errors": 0, "source_hash": "87b1cbac1425667e3741371f32e25db7c73729c433e28a81d86a252b9d2c5fc6", "categorized_nodes": 361}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,622
c
#ifndef PACKET32_H #define PACKET32_H typedef unsigned char UCHAR ; typedef unsigned short USHORT; typedef unsigned long ULONG ; typedef unsigned long HANDLE; typedef unsigned long long ULONGLONG ; typedef char CHAR ; typedef short SHORT; typedef long ...
23.4
42
(translation_unit) "#ifndef PACKET32_H \n#define PACKET32_H \n \ntypedef unsigned char UCHAR ; \ntypedef unsigned short USHORT; \ntypedef unsigned long ULONG ; \ntypedef unsigned long HANDLE; \ntypedef unsigned long long ULONGLONG ; \n \ntypedef char CHAR ; \ntypedef short ...
257
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 23.4, "nodes": 198, "errors": 0, "source_hash": "ec134618bea1172082f86f7a946cfca76e1a5948f410555d997ef693884773fd", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,623
c
#pragma once #include "Mob.h" class Mob_Archer : public Mob { public: virtual int GetMaxHealth() const { return 4; } virtual float GetSpeed() const { return 1.0f; } virtual float GetSize() const { return 0.5f; } virtual float GetMass() const { return 3.f; } virtual int GetDamage() const { return 1; } virtual fl...
31.15
13
(translation_unit) "#pragma once\n\n#include "Mob.h"\n\nclass Mob_Archer : public Mob\n{\npublic:\n virtual int GetMaxHealth() const { return 4; }\n virtual float GetSpeed() const { return 1.0f; }\n virtual float GetSize() const { return 0.5f; }\n virtual float GetMass() const { return 3.f; }\n virtual int GetDamage() ...
154
13
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 31.15, "nodes": 74, "errors": 0, "source_hash": "9fd53647c727e6cfa649d5844c0ddf96062ada87a3bb110e2d45d34cc1eb8521", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
7,624
c
#include <linux/device.h> #include <linux/platform_device.h> #include <linux/irq.h> #include <linux/tty.h> #include <linux/tty_flip.h> #include <asm/thread_info.h> #include <asm/fiq.h> #include <asm/fiq_glue.h> #include <asm/fiq_debugger.h> #include <mach/irqs.h> #include <mach/mt_reg_base.h> #include <mach/mt_clkmgr.h...
31.18
193
(translation_unit) "#include <linux/device.h>\n#include <linux/platform_device.h>\n#include <linux/irq.h>\n#include <linux/tty.h>\n#include <linux/tty_flip.h>\n#include <asm/thread_info.h>\n#include <asm/fiq.h>\n#include <asm/fiq_glue.h>\n#include <asm/fiq_debugger.h>\n#include <mach/irqs.h>\n#include <mach/mt_reg_base...
1,328
0
{"language": "c", "success": true, "metadata": {"lines": 193, "avg_line_length": 31.18, "nodes": 844, "errors": 0, "source_hash": "6f30e9a409e5ab3a2459243848efd6441d5ec6d792bfa09711cdb9da87061b1f", "categorized_nodes": 609}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,625
c
/*_LICENCE_BLOCK_ ------------------------------------------------------------------ This source file is part of Morrowind Remake Copyright (c) 2007 <NAME> Also see acknowledgements in the readme Morrowind Remake is free software: you can redistribute it and/or modify it under the terms of the GNU General Pub...
28.05
65
(translation_unit) "/*_LICENCE_BLOCK_ \n------------------------------------------------------------------ \nThis source file is part of Morrowind Remake \n \nCopyright (c) 2007 <NAME> \nAlso see acknowledgements in the readme \n \nMorrowind Remake is free software: you can redistribute it and/or modify \nit under the ...
118
6
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 28.05, "nodes": 65, "errors": 0, "source_hash": "ca8734456998b21943c6ecc87ef0e69f0c7467d116de8e24555d6dbef97d697f", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,626
c
#include <stdio.h> #include <stdlib.h> #include "string_my.h" char *get_str(); char *func(char *, const char *, const char *); char change_sym(char); int d_or_not(char, const char *); int main() { char *s = NULL; char *new_str; printf("Enter divide words symbols:\n"); char *dws = get_str(); pri...
25.79
121
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include "string_my.h"\n\nchar *get_str();\n\nchar *func(char *, const char *, const char *);\n\nchar change_sym(char);\n\nint d_or_not(char, const char *);\n\nint main() {\n char *s = NULL;\n char *new_str;\n printf("Enter divide words symbols:\n");...
1,273
0
{"language": "c", "success": true, "metadata": {"lines": 121, "avg_line_length": 25.79, "nodes": 769, "errors": 0, "source_hash": "1710f70b83f2be94a9c9b3ca686e7fa56ab23b4cc5d1c5df5a11be954b592f45", "categorized_nodes": 474}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,627
c
#ifndef PARSER_H #define PARSER_H #include <despot/util/util.h> #include <despot/core/globals.h> #include <despot/pomdpx/parser/variable.h> #include <despot/pomdpx/parser/function.h> namespace despot { namespace util { namespace tinyxml { class TiXmlBase; class TiXmlElement; class TiXmlHandle; } // namespace tinyx...
41.83
157
(translation_unit) "#ifndef PARSER_H\n#define PARSER_H\n\n#include <despot/util/util.h>\n#include <despot/core/globals.h>\n#include <despot/pomdpx/parser/variable.h>\n#include <despot/pomdpx/parser/function.h>\n\nnamespace despot {\n\nnamespace util {\nnamespace tinyxml {\n\nclass TiXmlBase;\nclass TiXmlElement;\nclass...
1,810
111
{"language": "c", "success": true, "metadata": {"lines": 157, "avg_line_length": 41.83, "nodes": 1130, "errors": 0, "source_hash": "6f7963dc8522190c5d736f435f2628418661099ed2d852f1a5e787b765739b1d", "categorized_nodes": 716}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
7,628
c
// RUN: %clang_cc1 -emit-llvm %s -o - typedef int (*_MD_Open64)(int oflag, ...); _MD_Open64 _open64; void PR_OpenFile(int mode) { _open64(0, mode); }
24
6
(translation_unit) "// RUN: %clang_cc1 -emit-llvm %s -o -\n\ntypedef int (*_MD_Open64)(int oflag, ...);\n_MD_Open64 _open64;\nvoid PR_OpenFile(int mode) {\n_open64(0, mode);\n}\n" (comment) "// RUN: %clang_cc1 -emit-llvm %s -o -" (type_definition) "typedef int (*_MD_Open64)(int oflag, ...);" (typedef) "typedef"...
49
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 24.0, "nodes": 28, "errors": 0, "source_hash": "babe94f05984648cad5d3d8ccd3eb75b12df3b63aac4d39eed8a16ebd466a654", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "typedef ...
7,629
c
///TAFFO_TEST_ARGS -disable-vra int main() { float out; #pragma clang attribute push( __attribute__((annotate("range -3000 3000"))) , apply_to = variable) float a=10; float b; #pragma clang attribute pop #pragma clang attribute push( __attribute__((annotate("range -255 255"))) , apply_to = ...
20.88
24
(translation_unit) "///TAFFO_TEST_ARGS -disable-vra\nint main()\n{\n float out;\n #pragma clang attribute push( __attribute__((annotate("range -3000 3000"))) , apply_to = variable)\n float a=10;\n float b;\n #pragma clang attribute pop\n \n #pragma clang attribute push( __attribute__((annotate("ran...
104
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 20.88, "nodes": 72, "errors": 0, "source_hash": "fb9222fd12aba6f75519a36dfb36c007d435fc918863621aaf4fc9ff4173945d", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "in...
7,630
c
/** * This header is generated by class-dump-z 0.2a. * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3. * * Source: (null) */ #import "NSObject.h" @protocol FavSearchControllerDelegate <NSObject> -(void)resetHeaderView:(id)view; -(BOOL)shouldShowSearchResult:(id)result; -(void)onSelectFavIt...
29.44
18
(translation_unit) "/**\n * This header is generated by class-dump-z 0.2a.\n * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3.\n *\n * Source: (null)\n */\n\n#import "NSObject.h"\n\n\n@protocol FavSearchControllerDelegate <NSObject>\n-(void)resetHeaderView:(id)view;\n-(BOOL)shouldShowSearchResult:...
140
12
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 29.44, "nodes": 85, "errors": 0, "source_hash": "6b55d6f996816032ce4ed10eb7101fab30b16ddecb08ead45192f668210dfb7b", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
7,631
c
#ifndef CAVITY_OP_H #define CAVITY_OP_H #include "mesh.h" typedef struct cavity_env cavity_env; int cavity_check(cavity_env* env, ment e); int cavity_check_verts(cavity_env* env, unsigned nv, ment const v[]); typedef void (*cavity_op)(ment e, cavity_env* env); void cavity_exec(mesh* m, cavity_op op, simplex t); v...
36.82
11
(translation_unit) "#ifndef CAVITY_OP_H\n#define CAVITY_OP_H\n\n#include "mesh.h"\n\ntypedef struct cavity_env cavity_env;\n\nint cavity_check(cavity_env* env, ment e);\nint cavity_check_verts(cavity_env* env, unsigned nv, ment const v[]);\n\ntypedef void (*cavity_op)(ment e, cavity_env* env);\n\nvoid cavity_exec(mesh*...
156
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 36.82, "nodes": 116, "errors": 0, "source_hash": "c58104844ba566aabc19492717b4e8922a20b068b1f45444198642aa282aad1b", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,632
c
// Define the timeouts (in seconds) for retreiving various parts of the XML stream #define TIMEOUT_XMPP_WRITE -1 #define TIMEOUT_XMPP_READ_START 10 #define TIMEOUT_XMPP_READ_STREAM -1 // Define the tags we'll use to differentiate what it is we're currently reading or writing #define TAG_XMPP_READ_START ...
30.98
127
(ERROR) "// Define the timeouts (in seconds) for retreiving various parts of the XML stream\n#define TIMEOUT_XMPP_WRITE -1\n#define TIMEOUT_XMPP_READ_START 10\n#define TIMEOUT_XMPP_READ_STREAM -1\n\n// Define the tags we'll use to differentiate what it is we're currently reading or writing\n#define TAG_XMP...
646
13
{"language": "c", "success": true, "metadata": {"lines": 127, "avg_line_length": 30.98, "nodes": 440, "errors": 0, "source_hash": "7172a98a1a24f828326f484e46de55b9a4cec0fb19858216f63784fc5a7337ed", "categorized_nodes": 272}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "// Define the timeouts (...
7,633
c
// BiquadNotch2.h // ofxPDSP // <NAME>, MIT License, 2016 #ifndef PDSP_DSP_BIQUADS_NOTCH2_H_INCLUDED #define PDSP_DSP_BIQUADS_NOTCH2_H_INCLUDED #include "BiquadBase.h" namespace pdsp{ /*! @brief 2pole Notch Filter */ class BiquadNotch2 : public BiquadBase { private: void cookCoefficients(const floa...
25.33
18
(translation_unit) "// BiquadNotch2.h\n// ofxPDSP\n// <NAME>, MIT License, 2016\n\n#ifndef PDSP_DSP_BIQUADS_NOTCH2_H_INCLUDED\n#define PDSP_DSP_BIQUADS_NOTCH2_H_INCLUDED\n\n#include "BiquadBase.h"\n\nnamespace pdsp{\n /*!\n @brief 2pole Notch Filter\n */\nclass BiquadNotch2 : public BiquadBase {\n\nprivate:\n ...
80
5
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 25.33, "nodes": 36, "errors": 0, "source_hash": "af9dd49d212f2ed7556176382e218db7faae5c20e429fdafdfd0eb0aeffe27ad", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,634
c
#include <stdio.h> #include <string.h> int main (){ char stringd[19] = {0x73, 0x74, 0x61, 0x72, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67}; unsigned int * str = (unsigned int *)stringd; printf(" %s %d ", stringd, strlen(stringd)); return(0); }
24.5
12
(translation_unit) "#include <stdio.h>\n#include <string.h>\n\n\n\nint main (){\n \n char stringd[19] = {0x73, 0x74, 0x61, 0x72, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67};\n\n unsigned int * str = (unsigned int *)stringd;\n\n \n printf(" %s %d ", stringd, strlen(stringd))...
112
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 24.5, "nodes": 66, "errors": 0, "source_hash": "80f48b0ac05dc5c7ed5094ce7a698370bd0b4be4d5ed3a24c103e204b36c647b", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
7,635
c
#ifndef MINILIBC_STRING_H #define MINILIBC_STRING_H #include <stddef.h> size_t strlen(const char *); int strcmp(const char *, const char *); char *strcpy(char *, const char *); char *strpbrk(const char *, const char *); void *memset(void *, int, size_t); int memcmp(const void *, const void *, size_t); void *memcpy(v...
32.25
12
(translation_unit) "#ifndef MINILIBC_STRING_H\n#define MINILIBC_STRING_H\n\n#include <stddef.h>\n\nsize_t strlen(const char *);\nint strcmp(const char *, const char *);\nchar *strcpy(char *, const char *);\nchar *strpbrk(const char *, const char *);\n\nvoid *memset(void *, int, size_t);\nint memcmp(const void *, const ...
182
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 32.25, "nodes": 126, "errors": 0, "source_hash": "c012735d8c754175364b8f8083b34e2bf123ea94e6b9a0e0dfe751b631cfb776", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,636
c
/* PATA PIO driver */ #define __YAX__ #include <errno.h> #include <fcntl.h> #include <string.h> #include <unistd.h> #include <yax/func.h> #include <yax/mount.h> #include <yax/port.h> #include <codas/bit.h> #include <yaxfs/dofunc.h> #include <yaxfs/file.h> #include <yaxfs/serve.h> #define BPSEC 512 enum { RDATA = 0, ...
22.66
148
(translation_unit) "/* PATA PIO driver */\n#define __YAX__\n#include <errno.h>\n#include <fcntl.h>\n#include <string.h>\n#include <unistd.h>\n#include <yax/func.h>\n#include <yax/mount.h>\n#include <yax/port.h>\n#include <codas/bit.h>\n#include <yaxfs/dofunc.h>\n#include <yaxfs/file.h>\n#include <yaxfs/serve.h>\n\n#def...
1,554
0
{"language": "c", "success": true, "metadata": {"lines": 148, "avg_line_length": 22.66, "nodes": 1005, "errors": 0, "source_hash": "42beed02c9de758e5128185f6770e3ce201011867a32f1c80300c3410ac2bb1c", "categorized_nodes": 732}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#defin...
7,637
c
/************************************************************************* * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors a...
29.58
91
(translation_unit) "/*************************************************************************\n * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *\n * *\n * Author: The ALICE Off-line Project. ...
405
10
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 29.58, "nodes": 272, "errors": 0, "source_hash": "d4c76a4c32cafd551d9ea55493bd93f23c5f9fb9c6e66254d06e3b5ce40b4648", "categorized_nodes": 206}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,638
c
#pragma once #include <Urho3D/Scene/LogicComponent.h> #include <Urho3D/Graphics/StaticModel.h> #include <Urho3D/Graphics/ParticleEmitter.h> #include "GameObject.h" #include "Player.h" using namespace Urho3D; class NetworkActor; class Fire : public GameObject { URHO3D_OBJECT(Fire, LogicComponent); private: /// Fu...
33.38
69
(translation_unit) "#pragma once\n\n#include <Urho3D/Scene/LogicComponent.h>\n#include <Urho3D/Graphics/StaticModel.h>\n#include <Urho3D/Graphics/ParticleEmitter.h>\n#include "GameObject.h"\n#include "Player.h"\n\nusing namespace Urho3D;\n\nclass NetworkActor;\n\nclass Fire : public GameObject\n{\n URHO3D_OBJECT(Fire, ...
450
6
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 33.38, "nodes": 279, "errors": 0, "source_hash": "735edaa66a5b0bd3ecbf7d30cf0f0301566ee87b4040616a9e9637e19ffda73e", "categorized_nodes": 199}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
7,639
c
#ifndef SIGNALSLOTCONTROLLER_H #define SIGNALSLOTCONTROLLER_H #include <QObject> #include <Transaction.h> #include <Block.h> #include <QAbstractGraphicsShapeItem> class QGraphicsTransactionItem; class QGraphicsBlockItem; class SignalSlotController : public QObject { Q_OBJECT public: void emit_signalDisplayT...
32.48
25
(translation_unit) "#ifndef SIGNALSLOTCONTROLLER_H\n#define SIGNALSLOTCONTROLLER_H\n\n#include <QObject>\n#include <Transaction.h>\n#include <Block.h>\n#include <QAbstractGraphicsShapeItem>\n\nclass QGraphicsTransactionItem;\nclass QGraphicsBlockItem;\n\nclass SignalSlotController : public QObject {\n Q_OBJECT\n\npu...
144
6
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 32.48, "nodes": 86, "errors": 0, "source_hash": "9cd1dee64f4c48a37db8036ea83651ab22686c617b6a60ced0d4dab7e13a3dc2", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,640
c
// // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 <NAME>. // #import <objc/NSObject.h> #import "CBDRemoteMessage-Protocol.h" @class NSString, NSUUID; @interface CBDRemoteXPCMessageStartDiagnostics : NSObject <CB...
40.04
27
(translation_unit) "//\n// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20).\n//\n// Copyright (C) 1997-2019 <NAME>.\n//\n\n#import <objc/NSObject.h>\n\n#import "CBDRemoteMessage-Protocol.h"\n\n@class NSString, NSUUID;\n\n@interface CBDRemoteXPCMessag...
259
27
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 40.04, "nodes": 159, "errors": 0, "source_hash": "64092666f8d5ba9eb111fc845c4a06481517d70e80647cfa1625695cdc4a72a5", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
7,641
c
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include "documentmetastore.h" #include <vespa/searchlib/common/tunefileinfo.h> namespace proton { /** * The result after initializing document meta store component in a * document ...
35.34
29
(translation_unit) "// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\n\n#pragma once\n\n#include "documentmetastore.h"\n#include <vespa/searchlib/common/tunefileinfo.h>\n\nnamespace proton {\n\n\n/**\n * The result after initializing document meta st...
146
10
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 35.34, "nodes": 75, "errors": 0, "source_hash": "66d998b5cba5da972a9ce965a68d95494da2548230273339f32975271756f48a", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
7,642
c
// // CMSStockGroupManageViewModel.h // CMSPaaS // // Created by symbio on 2021/1/29. // #import <Foundation/Foundation.h> #import "CMSSelfSelectGroupProtocol.h" #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface CMSStockGroupManageViewModel : NSObject /// 新创建的组 @property (nonatomic, strong) id<CMSSelfSel...
35.18
33
(translation_unit) "//\n// CMSStockGroupManageViewModel.h\n// CMSPaaS\n//\n// Created by symbio on 2021/1/29.\n//\n\n#import <Foundation/Foundation.h>\n#import "CMSSelfSelectGroupProtocol.h"\n#import <UIKit/UIKit.h>\nNS_ASSUME_NONNULL_BEGIN\n\n@interface CMSStockGroupManageViewModel : NSObject\n\n/// 新创建的组\n@propert...
274
30
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 35.18, "nodes": 187, "errors": 0, "source_hash": "06552baed28262af0226804b66f5b99b8e6980b70a68935d281c459823ac4035", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
7,643
c
#include <stdio.h> #include <stdlib.h> #include <signal.h> #include "test.h" #ifdef _WIN32 #include <Windows.h> #ifndef ENABLE_VIRTUAL_TERMINAL_PROCESSING #define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x0004 #endif static HANDLE stdoutHandle; static DWORD outModeInit; static void enable_colors_in_console(void) {...
24.9
101
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <signal.h>\n\n#include "test.h"\n\n#ifdef _WIN32\n#include <Windows.h>\n\n#ifndef ENABLE_VIRTUAL_TERMINAL_PROCESSING\n #define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x0004\n#endif\n\nstatic HANDLE stdoutHandle;\nstatic DWORD outModeInit;\n\nstatic v...
727
1
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 24.9, "nodes": 393, "errors": 0, "source_hash": "06442c8906605f49c7f3852f9a6e5314845512a294b1519283d90c6e98462b52", "categorized_nodes": 274}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,644
c
/* IVSCC_scaling_plugin.h * This is a test plugin, you can use it as a demo. * 2014-10-30 : by <NAME> */ #ifndef __IVSCC_SCALING_PLUGIN_H__ #define __IVSCC_SCALING_PLUGIN_H__ #include <QtGui> #include <v3d_interface.h> namespace Ui { class swcScalingUI; } void scaleSWC(QStringList params, NeuronTree* nt, QStr...
26.14
44
(translation_unit) "/* IVSCC_scaling_plugin.h\n * This is a test plugin, you can use it as a demo.\n * 2014-10-30 : by <NAME>\n */\n \n#ifndef __IVSCC_SCALING_PLUGIN_H__\n#define __IVSCC_SCALING_PLUGIN_H__\n\n#include <QtGui>\n#include <v3d_interface.h>\n\nnamespace Ui \n{\n class swcScalingUI;\n}\n\nvoid scaleSWC(QStr...
282
16
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 26.14, "nodes": 168, "errors": 0, "source_hash": "099b536294892c2c1e6b2ddaa46e0ac1dd77f2d1801cdbd12166b4b04d63ec25", "categorized_nodes": 121}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef __IVSC...
7,645
c
#include <stdio.h> #include <stdlib.h> int fibonachi(int n) { if (n == 1 || n == 2) { return 1; } return fibonachi(n - 1) + fibonachi(n - 2); } int main() { int n; printf("Enter number n: "); scanf("%d", &n); if (n <= 0) { printf("Error! Try Again!"); return ...
17.85
20
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\nint fibonachi(int n) {\n if (n == 1 || n == 2) {\n return 1;\n }\n return fibonachi(n - 1) + fibonachi(n - 2);\n }\nint main()\n{\n int n;\n printf("Enter number n: ");\n scanf("%d", &n);\n if (n <= 0) {\n printf("E...
154
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 17.85, "nodes": 85, "errors": 0, "source_hash": "6972f38dff2cd5552f31293943eed69ccef439917b778b6b898481e7c51eebef", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
7,646
c
// // YYNetworkChain.h // YYNetworkAdapter // // Created by <NAME> on 2021/9/3. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface YYNetworkChain : NSObject /// 上一个 @property (nonatomic, weak, nullable) __kindof YYNetworkChain *pre; /// 下一个 @property (nonatomic, strong, nullable) __kindof Y...
23.2
15
(translation_unit) "//\n// YYNetworkChain.h\n// YYNetworkAdapter\n//\n// Created by <NAME> on 2021/9/3.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface YYNetworkChain : NSObject\n\n/// 上一个\n@property (nonatomic, weak, nullable) __kindof YYNetworkChain *pre;\n\n/// 下一个\n@property (no...
69
8
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 23.2, "nodes": 47, "errors": 0, "source_hash": "7a1bb15be26a39d52f6af7d486f25d63cc10fbdb5fd339ade21c39e5911c394b", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
7,647
c
#include "test/jemalloc_test.h" TEST_BEGIN(test_a0) { void *p; p = a0malloc(1); assert_ptr_not_null(p, "Unexpected a0malloc() error"); a0dalloc(p); } TEST_END int main(void) { return test_no_malloc_init( test_a0); }
16.38
13
(translation_unit) "#include "test/jemalloc_test.h"\n\nTEST_BEGIN(test_a0) {\n void *p;\n\n p = a0malloc(1);\n assert_ptr_not_null(p, "Unexpected a0malloc() error");\n a0dalloc(p);\n}\nTEST_END\n\nint\nmain(void) {\n return test_no_malloc_init(\n test_a0);\n}\n" (preproc_include) "#include "test/jemalloc_test.h"\...
77
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 16.38, "nodes": 42, "errors": 0, "source_hash": "1a56bc38136de15aaf13a8b49a0545915f056426c7bef98eaa994960394bf459", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
7,648
c
/* { dg-require-effective-target vect_cond_mixed } */ #include "tree-vect.h" static float x[1024]; static float y[1024]; static float z[1024]; static float w[1024]; void __attribute__((noinline,noclone)) barX() { int i; for (i=0; i<1024; ++i) z[i] = ((x[i]>0) & (w[i]<0)) ? z[i] : y[i]; } int main() { int ...
21.26
31
(translation_unit) "/* { dg-require-effective-target vect_cond_mixed } */\n\n#include "tree-vect.h"\n\nstatic float x[1024];\nstatic float y[1024];\nstatic float z[1024];\nstatic float w[1024];\n\nvoid __attribute__((noinline,noclone)) barX()\n{\n int i;\n for (i=0; i<1024; ++i)\n z[i] = ((x[i]>0) & (w[i]<0)) ? z[...
323
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 21.26, "nodes": 184, "errors": 0, "source_hash": "46c04dd5cedc8a088d20ef45fb0122753ad12bb66776511ada6df1d2c6deb20c", "categorized_nodes": 138}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,649
c
// // YzcBarChart.h // YzcChart // // Created by 叶志成 on 2016/11/26. // Copyright © 2016年 yzc. All rights reserved. // #import <UIKit/UIKit.h> #import "YzcCommonMacros.h" typedef NS_ENUM (NSInteger, BarChartStyle) { BarChartStyleNormal = 0, BarChartStyleSleep, BarChartStyleRateRange }; @interface YzcB...
39.59
32
(translation_unit) "//\n// YzcBarChart.h\n// YzcChart\n//\n// Created by 叶志成 on 2016/11/26.\n// Copyright © 2016年 yzc. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "YzcCommonMacros.h"\n\ntypedef NS_ENUM (NSInteger, BarChartStyle) {\n BarChartStyleNormal = 0,\n BarChartStyleSleep,\n BarChart...
325
67
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 39.59, "nodes": 232, "errors": 0, "source_hash": "6c3a6822acd6c84d95eeccd990e00d739fd675bdd4db3cce19efbf29fa7325a3", "categorized_nodes": 124}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit/U...
7,650
c
/**************************************************************************** // Usagi Engine, Copyright © Vitei, Inc. 2013 // Description: A standard locked stack // We allow delete for the purposes of sanity checking only, freed blocks // can not be re-used. Alloc can not be called when frozen and Free can only // on...
25.78
65
(translation_unit) "/****************************************************************************\n// Usagi Engine, Copyright © Vitei, Inc. 2013\n// Description: A standard locked stack\n// We allow delete for the purposes of sanity checking only, freed blocks\n// can not be re-used. Alloc can not be called when frozen...
407
13
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 25.78, "nodes": 271, "errors": 0, "source_hash": "17b1b4adeab17172631226e77afe127523d1b283eefa90539882dc8a21823c11", "categorized_nodes": 186}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef...
7,651
c
#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include "lines.h" typedef struct { int *busnos; int timing; int len; int cap;} bus_info_t; void bus_info_append(char * str, bus_info_t * b) { if (!str) return; if (b->cap == 0) { b->busnos = realloc(b->busnos, sizeof(int...
27.89
135
(translation_unit) "#include <stdint.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <sys/types.h>\n#include "lines.h"\n\n\ntypedef struct { int *busnos;\n int timing;\n int len;\n int cap;}\nbus_info_t;\n\nvoid bus_info_append(char * str, bus_info_t * b) {\n if (!str) return;\n if (b->cap == 0) {\n b->bu...
1,539
0
{"language": "c", "success": true, "metadata": {"lines": 135, "avg_line_length": 27.89, "nodes": 949, "errors": 0, "source_hash": "594108549ac0271d0101a5b7931e5a5aa9d5e36b2a99a97c319936a3c1b7b771", "categorized_nodes": 651}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,652
c
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // // $NoKeywords: $ //=============================================================================// #ifndef CSSPECTATORGUI_H #define CSSPECTATORGUI_H #ifdef _WIN32 #pragma once #endif #include "spectatorgui.h" #include "ma...
33.02
248
(translation_unit) "//========= Copyright Valve Corporation, All rights reserved. ============//\n//\n// Purpose: \n//\n// $NoKeywords: $\n//=============================================================================//\n\n#ifndef CSSPECTATORGUI_H\n#define CSSPECTATORGUI_H\n#ifdef _WIN32\n#pragma once\n#endif\n\n#incl...
1,583
63
{"language": "c", "success": true, "metadata": {"lines": 248, "avg_line_length": 33.02, "nodes": 1041, "errors": 0, "source_hash": "56fdba6c4f983e7d4cda1fe9ab0a39c9c4b842c0cd742fc87354bab334ce078b", "categorized_nodes": 681}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
7,653
c
#include <arpa/inet.h> #include <netinet/in.h> #include <stdio.h> #include <stdlib.h> #include <strings.h> #include <sys/socket.h> #include <sys/types.h> #include <unistd.h> #include "udp.h" int main(int argc, char *argv[]) { int sockfd, n, peerAddrLen; struct sockaddr_in servAddr, peerAddr; MsgType msg; if ...
30.29
38
(translation_unit) "#include <arpa/inet.h>\n#include <netinet/in.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <strings.h>\n#include <sys/socket.h>\n#include <sys/types.h>\n#include <unistd.h>\n\n#include "udp.h"\n\nint main(int argc, char *argv[]) {\n int sockfd, n, peerAddrLen;\n struct sockaddr_in servAddr...
422
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 30.29, "nodes": 239, "errors": 0, "source_hash": "e37c2852495242ea0173df5f13075143958db9733f9a3c84f4334e4b186eb2a4", "categorized_nodes": 185}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,654
c
/* * Copyright 2019 The qToggle Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
33.26
35
(translation_unit) "/*\n * Copyright 2019 The qToggle Team\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless requir...
120
2
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 33.26, "nodes": 82, "errors": 0, "source_hash": "bce3f8fbba62f25eec9ad284468b1ed674295266a56ab78438f387b582215e1c", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,655
c
#ifndef __LWIP_IP_ROUTE_H__ #define __LWIP_IP_ROUTE_H__ #include "lwip/opt.h" #include "lwip/ip_addr.h" #ifdef __cplusplus extern "C" { #endif #define MAX_ROUTES 10 struct route_entry { ip_addr_t ip; ip_addr_t mask; ip_addr_t gw; }; extern struct route_entry ip_rt_table[MAX_ROUTES]; extern int ip_route...
29.69
29
(translation_unit) "#ifndef __LWIP_IP_ROUTE_H__\n#define __LWIP_IP_ROUTE_H__\n\n#include "lwip/opt.h"\n#include "lwip/ip_addr.h"\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n#define MAX_ROUTES 10\n\nstruct route_entry {\n ip_addr_t ip;\n ip_addr_t mask;\n ip_addr_t gw;\n};\n\nextern struct route_entry ip_rt_...
174
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 29.69, "nodes": 123, "errors": 0, "source_hash": "2763a2f6447913538aecd4cc4fc901a6b6ca7ed38f9414d0e8ec3d112a469e3d", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,656
c
static double x0_nm6[] = { -1.131548e-20, 2.974287e-01, -3.841673e-01, 0.000000e+00, 0.000000e+00, 0.000000e+00, -2.308589e-20, 6.068153e-01, -4.553391e-01, 5.549040e-31, 2.385829e-30, -8.179945e-31, -3.459811e-20, 9.094155e-01, -2.037135e-01, 1.196111e-31, 1.675177e-31, -5.067746e-34, -4.573140e-20, 1.202055e+00, 3.50...
13.38
32
(translation_unit) "static double x0_nm6[] = {\n-1.131548e-20,\n2.974287e-01,\n-3.841673e-01,\n0.000000e+00,\n0.000000e+00,\n0.000000e+00,\n-2.308589e-20,\n6.068153e-01,\n-4.553391e-01,\n5.549040e-31,\n2.385829e-30,\n-8.179945e-31,\n-3.459811e-20,\n9.094155e-01,\n-2.037135e-01,\n1.196111e-31,\n1.675177e-31,\n-5.067746e...
74
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 13.38, "nodes": 37, "errors": 0, "source_hash": "db819a15d605f9720d1ae5621602fe175f74c6d46cc81dae1f2ddecf3a4a2f6d", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "static dou...
7,657
c
#pragma once #include "Platform/Linux/LinuxInput.h" #include "Input/Input.h" namespace Aulys { class LinuxInput : public Input { public: protected: virtual bool isKeyPressedImpl(int keycode) override; virtual bool isMouseButtonPressedImpl(int keycode) override; virtual float getMouseXImpl() override; vi...
27.71
17
(translation_unit) "#pragma once\n\n#include "Platform/Linux/LinuxInput.h"\n#include "Input/Input.h"\n\nnamespace Aulys\n{\n class LinuxInput : public Input \n {\n public:\n\n protected:\n virtual bool isKeyPressedImpl(int keycode) override;\n virtual bool isMouseButtonPressedImpl(int keycode) override;\n virtual fl...
120
11
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 27.71, "nodes": 72, "errors": 0, "source_hash": "ee2329d64f4045ad4a59321c14652f04ddbaf4582ac3bfe80b8d195a5635b7af", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
7,658
c
/* * xDMS v1.3 - Portable DMS archive unpacker - Public Domain * Written by <NAME> <<EMAIL>> * * Main decompression functions used in MEDIUM mode * */ #include <string.h> #include "cdata.h" #include "u_medium.h" #include "getbits.h" #include "tables.h" #define MBITMASK 0x3fff USHORT ...
23.56
45
(translation_unit) "/*\n * xDMS v1.3 - Portable DMS archive unpacker - Public Domain\n * Written by <NAME> <<EMAIL>>\n *\n * Main decompression functions used in MEDIUM mode\n *\n */\n\n\n#include <string.h>\n\n#include "cdata.h"\n#include "u_medium.h"\n#include "getbits.h"\n#include "tables.h"\n\...
431
0
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 23.56, "nodes": 264, "errors": 0, "source_hash": "8c77226daa38cd1c76bf6cbeedd26c80020a2731208fe0eb5a7095c4b526c0d5", "categorized_nodes": 204}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,659
c
#ifndef KALMAN_FILTER_H_ #define KALMAN_FILTER_H_ #include "Eigen/Dense" class KalmanFilter { public: /** * Constructor */ KalmanFilter(); /** * Destructor */ virtual ~KalmanFilter(); /** * Prediction Predicts the state and the state covariance * using the process model * @param delt...
22.28
99
(translation_unit) "#ifndef KALMAN_FILTER_H_\n#define KALMAN_FILTER_H_\n\n#include "Eigen/Dense"\n\nclass KalmanFilter {\n public:\n /**\n * Constructor\n */\n KalmanFilter();\n\n /**\n * Destructor\n */\n virtual ~KalmanFilter();\n\n /**\n * Prediction Predicts the state and the state covariance\n * u...
378
20
{"language": "c", "success": true, "metadata": {"lines": 99, "avg_line_length": 22.28, "nodes": 188, "errors": 0, "source_hash": "e325226ecc04d1d29bb45504a4831e7be65178e7df65415ed7852c781e72935e", "categorized_nodes": 136}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,660
c
#ifndef _HUTILIS_H_ #define _HUTILIS_H_ #pragma once #include "..\Include\HWin.h" #include <time.h> namespace Dumper { namespace Utilis { inline const char* GetTime( ) { time_t rawtime; struct tm* timeinfo; time( &rawtime ); timeinfo = localti...
19.7
20
(translation_unit) "#ifndef _HUTILIS_H_\n#define _HUTILIS_H_\n\n#pragma once\n\n#include "..\Include\HWin.h"\n\n#include <time.h>\n\nnamespace Dumper\n{\n namespace Utilis\n {\n inline const char* GetTime( )\n {\n time_t rawtime;\n struct tm* timeinfo;\n\n time( &raw...
97
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 19.7, "nodes": 61, "errors": 0, "source_hash": "f0e35a8b210a44965a8eaf6fcc6c49f7b3f9ffa562923be802d44289bc22fc46", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
7,661
c
#include <stdio.h> void foo (void) { printf ("%s\n", __FUNCTION__); }
11
6
(translation_unit) "#include <stdio.h>\n\nvoid\nfoo (void)\n{\n printf ("%s\n", __FUNCTION__);\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (function_definition) "void\nfoo (void)\n{\n printf ("%s\n", __FUNCTION__);\n}" (primitive_type) "void" ...
30
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 11.0, "nodes": 16, "errors": 0, "source_hash": "a7a244f0cf4068c03d48fb7bf2f090ec99d97baaa8eaf1613d3dd9e9b87dfe22", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
7,662
c
/*- * Copyright (c) 2004 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
30.37
188
(translation_unit) "/*-\n * Copyright (c) 2004 <NAME>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n * notic...
1,510
1
{"language": "c", "success": true, "metadata": {"lines": 188, "avg_line_length": 30.37, "nodes": 856, "errors": 0, "source_hash": "f8fd615f0e2299253086e814b0ac08b0a3c4d334e40d7a35584915939c85ce60", "categorized_nodes": 656}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
7,663
c
// // G4VL-Bridging-Header.h // G4VL // // Created by <NAME> on 31/07/2017. // Copyright © 2017 <NAME>. All rights reserved. // #ifndef G4VL_Bridging_Header_h #define G4VL_Bridging_Header_h #ifdef __OBJC__ #import <TesseractOCR/TesseractOCR.h> #import "UIImage+BlurDetector.h" #endif #endif /* G4VL_Bridging...
18.24
17
(translation_unit) "//\n// G4VL-Bridging-Header.h\n// G4VL\n//\n// Created by <NAME> on 31/07/2017.\n// Copyright © 2017 <NAME>. All rights reserved.\n//\n\n#ifndef G4VL_Bridging_Header_h\n#define G4VL_Bridging_Header_h\n\n\n\n\n\n#ifdef __OBJC__\n\n#import <TesseractOCR/TesseractOCR.h>\n#import "UIImage+BlurDetect...
26
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 18.24, "nodes": 15, "errors": 0, "source_hash": "801c267da854c541ed3e77c6dbbd8771c079fa359270e72c5a4591a0b59b552f", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef G...
7,664
c
#ifndef _DOT_FILE_H #define _DOT_FILE_H #include <fstream> #include <sstream> #include "tl/optional.h" class RecordFormatter { friend RecordFormatter &operator<<(RecordFormatter &r, std::string const &tok) { r.pieces.push_back(tok); return r; } friend RecordFormatter &operator<<(RecordFormatter &r, Re...
27.92
119
(translation_unit) "#ifndef _DOT_FILE_H\n#define _DOT_FILE_H\n\n#include <fstream>\n#include <sstream>\n#include "tl/optional.h"\n\nclass RecordFormatter {\n friend RecordFormatter &operator<<(RecordFormatter &r, std::string const &tok) {\n r.pieces.push_back(tok);\n\n return r;\n }\n\n friend RecordFormatter ...
1,425
43
{"language": "c", "success": true, "metadata": {"lines": 119, "avg_line_length": 27.92, "nodes": 786, "errors": 0, "source_hash": "4d6aa7897dc34a3dca01408485ad615f2aedcb0c87b939bd05df583f17a98036", "categorized_nodes": 588}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,665
c
#define ISMACS (st0016_game&0x80) #define ISMACS1 (((st0016_game&0x180)==0x180)) #define ISMACS2 (((st0016_game&0x180)==0x080)) #define ST0016_MAX_SPR_BANK 0x10 #define ST0016_MAX_CHAR_BANK 0x10000 #define ST0016_MAX_PAL_BANK 4 #define ST0016_SPR_BANK_SIZE 0x1000 #define ST0016_CHAR_BANK_SIZE 0x20...
29.9
49
(translation_unit) "#define ISMACS (st0016_game&0x80) \n#define ISMACS1 (((st0016_game&0x180)==0x180)) \n#define ISMACS2 (((st0016_game&0x180)==0x080)) \n \n \n#define ST0016_MAX_SPR_BANK 0x10 \n#define ST0016_MAX_CHAR_BANK 0x10000 \n#define ST0016_MAX_PAL_BANK 4 \n \n#define ST0016_SPR_BANK_SIZE 0x1000 \n#defin...
244
0
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 29.9, "nodes": 162, "errors": 0, "source_hash": "f87995eff2c2a46972a36d68139670d3409d299599196c9ccd954333245e0707", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define IS...
7,666
c
/* gcc -std=c17 -lc -lm -pthread -o ../_build/c/chrono_wcsftime.exe ./c/chrono_wcsftime.c && (cd ../_build/c/;./chrono_wcsftime.exe) https://en.cppreference.com/w/c/chrono/wcsftime */ #include <stdio.h> #include <time.h> #include <wchar.h> #include <locale.h> int main(void) { wchar_t buff[40]; struct tm my_time...
30.83
30
(translation_unit) "/*\ngcc -std=c17 -lc -lm -pthread -o ../_build/c/chrono_wcsftime.exe ./c/chrono_wcsftime.c && (cd ../_build/c/;./chrono_wcsftime.exe)\nhttps://en.cppreference.com/w/c/chrono/wcsftime\n*/\n#include <stdio.h>\n#include <time.h>\n#include <wchar.h>\n#include <locale.h>\nint main(void)\n{\n wchar_t b...
219
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 30.83, "nodes": 113, "errors": 0, "source_hash": "d427fd74288b061abae5a67d7ce36777202dd9c1f58efd77625fb8453ff70e21", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
7,667
c
/*----------------------------------------------------------------------------- * * test_parser.c * * * AUTHOR: lord_pretzel * * * *----------------------------------------------------------------------------- */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "mem_manager/mem_...
28.84
50
(translation_unit) "/*-----------------------------------------------------------------------------\n *\n * test_parser.c\n * \n * \n * AUTHOR: lord_pretzel\n *\n * \n *\n *-----------------------------------------------------------------------------\n */\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <str...
271
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 28.84, "nodes": 132, "errors": 0, "source_hash": "0e6fe8486d624f140a60f43eac1112dfee3714fc16c941180b9abb57260a3a72", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
7,668
c
/******************************************************************* ** Author: <NAME> ** License: MIT ** Description: XBObuffer class header. -- N.B. Example instance of a template-arg type for use with Mesh and MeshXBO templates. -- Instances include Vertex, Element, & Transform class...
34.25
89
(translation_unit) "/*******************************************************************\n ** Author: <NAME>\n ** License: MIT\n ** Description: XBObuffer class header.\n -- N.B. Example instance of a template-arg type for use\n with Mesh and MeshXBO templates.\n -- Instances include Vertex, ...
776
24
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 34.25, "nodes": 491, "errors": 0, "source_hash": "96b65c87691357c33bddd3886e4967e055ceacc2cbfbbc3e164927f9f23ceb35", "categorized_nodes": 363}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,669
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 CHROME_BROWSER_UI_SIGNIN_REAUTH_POPUP_DELEGATE_H_ #define CHROME_BROWSER_UI_SIGNIN_REAUTH_POPUP_DELEGATE_H_ #include "base/callback.h" #include "...
39.75
40
(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 CHROME_BROWSER_UI_SIGNIN_REAUTH_POPUP_DELEGATE_H_\n#define CHROME_BROWSER_UI_SIGNIN_REAUTH_POPUP_DELEGATE_H_\n\n#include "...
265
12
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 39.75, "nodes": 155, "errors": 0, "source_hash": "5d5df412725a2ed9302ce895493fc62ad18d98c616a20815a449e268315809b5", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,670
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSWindowController.h" #import "NSTextFieldDelegate.h" @class CWInterface, NSButton, NSGridView, NSImageView, NSLayoutConstraint, NSPopUpButton, NSProgressIndicator, NSSecureTex...
35.75
76
(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 "NSWindowController.h"\n\n#import "NSTextFieldDelegate.h"\n\n@class CWInterface, NSButton, NSGridView, NSImageView, NSLayoutConstraint, NSPopUpButton, NS...
723
43
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 35.75, "nodes": 475, "errors": 0, "source_hash": "daa0fe7fe207d6f068598280b46e2f92c4e10744394f3a0ac9060d916e1af277", "categorized_nodes": 287}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
7,671
c
#pragma once #include "stdafx.h" #define LOWEST_SCORE -80 #define MIN_DATA 15 /* EDR analyzing system and can be helpful for sus commands, etc... */ class Analyzer { public: Analyzer(std::vector<std::string> endpoints); ~Analyzer(); //public methods std::vector<std::pair<std::string, bool>> getRes...
18.33
24
(translation_unit) "#pragma once \n#include "stdafx.h" \n \n#define LOWEST_SCORE -80 \n#define MIN_DATA 15 \n/* \nEDR analyzing system and can be helpful for sus commands, etc... \n*/ \nclass Analyzer { \n \npublic: \n Analyzer(std::vector<std::string> endpoints); \n ~Analyzer(); \n \n //public methods \n std::vector<s...
137
5
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 18.33, "nodes": 82, "errors": 0, "source_hash": "a6231a2dfe901ddc242d097ad248451886db622c5e9594062fccb7d3fe637a96", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
7,672
c
/*====================================================================* * * ds.c - digital dactyloscope; * *. Motley Tools by <NAME>; *: Copyright (c) 2001-2006 by <NAME> Associates Limited; *; Licensed under the Internet Software Consortium License; * *-----------------------------------------------------...
27.07
105
(translation_unit) "/*====================================================================*\n *\n * ds.c - digital dactyloscope;\n *\n *. Motley Tools by <NAME>;\n *: Copyright (c) 2001-2006 by <NAME> Associates Limited;\n *; Licensed under the Internet Software Consortium License;\n *\n *-------------------------...
506
0
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 27.07, "nodes": 275, "errors": 0, "source_hash": "75c63cd3089267cb9626c3285432bab63a13eef7bd2031d8d4401bb19ccc1ef9", "categorized_nodes": 208}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
7,673
c
#include <sys/time.h> static double __attribute__ ((unused)) real_sec_time (void) { struct timeval tv; gettimeofday (&tv, NULL); return tv.tv_usec / 1000000.0 + tv.tv_sec; } static double __attribute__ ((unused)) real_usec_time (void) { struct timeval tv; gettimeofday (&tv, NULL); return tv.tv_usec + tv...
29.82
11
(translation_unit) "#include <sys/time.h>\n\nstatic double __attribute__ ((unused)) real_sec_time (void) {\n struct timeval tv;\n\n gettimeofday (&tv, NULL);\n return tv.tv_usec / 1000000.0 + tv.tv_sec;\n}\n\nstatic double __attribute__ ((unused)) real_usec_time (void) {\n struct timeval tv;\n\n gettimeofday (&tv,...
118
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 29.82, "nodes": 73, "errors": 0, "source_hash": "4df2664080880803b2faf5a423edb7be8f6b871c54de90e9e4533c20ed34d4ac", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
7,674
c
/* * Copyright (C) 2013, Boundary Devices <<EMAIL>> * * See file CREDITS for list of people who contributed to this * project. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either ve...
25.3
156
(translation_unit) "/*\n * Copyright (C) 2013, Boundary Devices <<EMAIL>>\n *\n * See file CREDITS for list of people who contributed to this\n * project.\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License as\n * published by the Free So...
954
1
{"language": "c", "success": true, "metadata": {"lines": 156, "avg_line_length": 25.3, "nodes": 598, "errors": 0, "source_hash": "eb31057d6d5c72e5f88323d2e74648aa95b4253e04d30824e2cab927292bad2c", "categorized_nodes": 394}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,675
c
#include <string.h> #include <stdlib.h> #include <stdio.h> #include <sys/socket.h> #include <linux/if_packet.h> /* AF_PACKET */ #include <net/ethernet.h> /* ETH_* */ #include <arpa/inet.h> /* htons */ #include <ifaddrs.h> /* getifaddrs */ #include <unistd.h> #include <sys/un.h> /* struct sockaddr_un */ #include <sys...
34.5
107
(translation_unit) "#include <string.h>\n#include <stdlib.h>\n#include <stdio.h>\n#include <sys/socket.h>\n#include <linux/if_packet.h> /* AF_PACKET */\n#include <net/ethernet.h> /* ETH_* */\n#include <arpa/inet.h> /* htons */\n#include <ifaddrs.h> /* getifaddrs */\n#include <unistd.h>\n#include <sys/un.h> /* struct...
945
0
{"language": "c", "success": true, "metadata": {"lines": 107, "avg_line_length": 34.5, "nodes": 550, "errors": 0, "source_hash": "a96796318f59f86b8fe9729514dda3981eb211d42ec60d917e41689b455b2ebd", "categorized_nodes": 421}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,676
c
//! //! Copyright (c) 2015, The casual project //! //! This software is licensed under the MIT license, https://opensource.org/licenses/MIT //! #pragma once #include "gateway/message.h" #include "common/process.h" #include "common/domain.h" #include "common/communication/tcp.h" #include "common/communication/sel...
31.02
95
(translation_unit) "//! \n//! Copyright (c) 2015, The casual project\n//!\n//! This software is licensed under the MIT license, https://opensource.org/licenses/MIT\n//!\n\n\n#pragma once\n\n\n#include "gateway/message.h"\n\n#include "common/process.h"\n#include "common/domain.h"\n\n#include "common/communication/tcp.h"...
599
36
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 31.02, "nodes": 322, "errors": 0, "source_hash": "21ec21e419c717a05305d11d013c8590deed078693ab842cb75d58cc7d3e1d94", "categorized_nodes": 247}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
7,677
c
// Geometric Tools, LLC // Copyright (c) 1998-2012 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // // File Version: 5.0.2 (2012/07/01) #ifndef WM5GRAPHICS_H #define WM5GRAPHICS_H // Contr...
27.19
216
(translation_unit) "// Geometric Tools, LLC \n// Copyright (c) 1998-2012 \n// Distributed under the Boost Software License, Version 1.0. \n// http://www.boost.org/LICENSE_1_0.txt \n// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt \n// \n// File Version: 5.0.2 (2012/07/01) \n \n#ifndef WM5GRAPHICS_H \n#def...
1,057
0
{"language": "c", "success": true, "metadata": {"lines": 216, "avg_line_length": 27.19, "nodes": 525, "errors": 0, "source_hash": "f08641761710cac79a70d1f631fb2785c34381a5567576527118fa2c7157d7b7", "categorized_nodes": 523}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
7,678
c
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_NTP_TILES_SWITCHES_H_ #define COMPONENTS_NTP_TILES_SWITCHES_H_ namespace ntp_tiles { namespace switches { extern const char kEnableNT...
45.18
17
(translation_unit) "// Copyright 2016 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef COMPONENTS_NTP_TILES_SWITCHES_H_\n#define COMPONENTS_NTP_TILES_SWITCHES_H_\n\nnamespace ntp_tiles {\nnamespace switches {\...
83
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 45.18, "nodes": 43, "errors": 0, "source_hash": "133a6fa328def49767188229aa0c35af0a9762f0357eac6211bf869a670dd5d4", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,679
c
/** * Copyright (C) 2011-2012 <NAME> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This ...
44.23
22
(translation_unit) "/**\n * Copyright (C) 2011-2012 <NAME>\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any l...
139
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 44.23, "nodes": 106, "errors": 0, "source_hash": "4128f92d8299f6a0c10fa49494fb50e78a37a83f940cdd0eaa3b3f00095a28da", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,680
c
/* * heidi-lora.h * * Created on: 02.12.2021 * Author: frank */ #ifndef HEIDI_LORA_H_ #define HEIDI_LORA_H_ #include <SPI.h> #include <LoRa.h> #include <Wire.h> #define SCK 5 // GPIO5 -- SX1278's SCK #define MISO 19 // GPIO19 -- SX1278's MISnO #define MOSI 27 // GPIO27 -- SX1278's MOSI #...
24.05
21
(translation_unit) "/*\n * heidi-lora.h\n *\n * Created on: 02.12.2021\n * Author: frank\n */\n\n#ifndef HEIDI_LORA_H_\n#define HEIDI_LORA_H_\n\n#include <SPI.h>\n#include <LoRa.h>\n#include <Wire.h>\n\n#define SCK 5 // GPIO5 -- SX1278's SCK\n#define MISO 19 // GPIO19 -- SX1278's MISnO\n#define MOSI ...
47
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 24.05, "nodes": 44, "errors": 0, "source_hash": "d4e65895e55a464f773f47d22cdaabc2cd19b94624ea7f4f86c6dc6931641385", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,681
c
// Begin CVS Header // $Source: /fs/turing/cvs/copasi_dev/copasi/UI/CQMatrixDialog.ui.h,v $ // $Revision: 1.3 $ // $Name: Build-33 $ // $Author: pwilly $ // $Date: 2010/03/25 14:01:30 $ // End CVS Header // Copyright (C) 2010 by <NAME>, Virginia Tech Intellectual // Properties, Inc., University of Heidelberg...
35.33
79
(translation_unit) "// Begin CVS Header\n// $Source: /fs/turing/cvs/copasi_dev/copasi/UI/CQMatrixDialog.ui.h,v $\n// $Revision: 1.3 $\n// $Name: Build-33 $\n// $Author: pwilly $\n// $Date: 2010/03/25 14:01:30 $\n// End CVS Header\n\n// Copyright (C) 2010 by <NAME>, Virginia Tech Intellectual\n// Properties, I...
663
2
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 35.33, "nodes": 358, "errors": 0, "source_hash": "71921371b99d6da834540d8923258a12b7e4425d435eb2521dde06026c250982", "categorized_nodes": 271}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,682
c
/* dtkArrayTest.h --- * * Author: <NAME> * Created: Tue Jul 23 08:31:17 2013 (+0200) */ /* Change Log: * */ #pragma once #include <dtkTest> class dtkArrayTestCase : public QObject { Q_OBJECT public: dtkArrayTestCase(void); virtual ~dtkArrayTestCase(void); private slots: void initT...
27.26
57
(translation_unit) "/* dtkArrayTest.h ---\n * \n * Author: <NAME>\n * Created: Tue Jul 23 08:31:17 2013 (+0200)\n */\n\n/* Change Log:\n * \n */\n\n#pragma once\n\n#include <dtkTest>\n\nclass dtkArrayTestCase : public QObject\n{\n Q_OBJECT\n\npublic:\n dtkArrayTestCase(void);\n virtual ~dtkArrayTestCa...
140
6
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 27.26, "nodes": 68, "errors": 0, "source_hash": "b650dc0c4d1ad3f154a4d31bc1e9ab79dad2035eb3848318a491838a09a27a3f", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
7,683
c
#include <stdio.h> #include <uv.h> // gcc -Wall main.c -o uvstop -luv int64_t counter = 0; void idle_cb(uv_idle_t *handle) { printf("Idle callback\n"); counter++; if (counter >= 5) { uv_stop(uv_default_loop()); printf("uv_stop() called\n"); } } void prep_cb(uv_prepare_t *handle) {...
23.38
26
(translation_unit) "#include <stdio.h>\n#include <uv.h>\n\n\n\n// gcc -Wall main.c -o uvstop -luv\n\nint64_t counter = 0;\n\nvoid idle_cb(uv_idle_t *handle) {\n printf("Idle callback\n");\n counter++;\n\n if (counter >= 5) {\n uv_stop(uv_default_loop());\n printf("uv_stop() called\n");\n }\n}\...
202
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 23.38, "nodes": 110, "errors": 0, "source_hash": "a07de175b1312b20b849b97681e0aa4535f9dabdd6a24cad6fd6d72ca0ebabdd", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
7,684
c
/*******************************************************************\ Module: Test Input Generator for C Author: <NAME>, <NAME> \*******************************************************************/ /// \file /// Test Input Generator for C #ifndef CPROVER_CBMC_C_TEST_INPUT_GENERATOR_H #define CPROVER_CBMC_C_TEST_IN...
30.71
51
(translation_unit) "/*******************************************************************\\n\nModule: Test Input Generator for C\n\nAuthor: <NAME>, <NAME>\n\n\*******************************************************************/\n\n/// \file\n/// Test Input Generator for C\n\n#ifndef CPROVER_CBMC_C_TEST_INPUT_GENERATOR_H...
243
15
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 30.71, "nodes": 113, "errors": 0, "source_hash": "08cc7517086da6c33d2dc39e4c353f98ae658ab1ea4c34bd4835ad24eb402e42", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,685
c
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. #pragma once #include "CoreMinimal.h" #include "Styling/ISlateStyle.h" #include "Widgets/DeclarativeSyntaxSupport.h" #include "Widgets/SCompoundWidget.h" class UMediaPlaylist; /** * Implements the details panel of the MediaPlaylist asset editor. */ clas...
30.03
29
(translation_unit) "// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.\n\n#pragma once\n\n#include "CoreMinimal.h"\n#include "Styling/ISlateStyle.h"\n#include "Widgets/DeclarativeSyntaxSupport.h"\n#include "Widgets/SCompoundWidget.h"\n\nclass UMediaPlaylist;\n\n/**\n * Implements the details panel of the Medi...
112
5
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 30.03, "nodes": 55, "errors": 0, "source_hash": "be2e55a36413df10a68e7e6e8d5ea77a9aa5eb5cc7557e8319cd692d56bdfa58", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
7,686
c
//************************************ bs::framework - Copyright 2018 <NAME> **************************************// //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// #pragma once #include "BsCorePrerequisites.h" #include "Utility/BsModule.h" ...
40.32
34
(translation_unit) "//************************************ bs::framework - Copyright 2018 <NAME> **************************************//\n//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//\n#pragma once\n\n#include "BsCorePrerequisites.h"\n#incl...
137
4
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 40.32, "nodes": 81, "errors": 0, "source_hash": "8d6a7787e36d3715f87d549c885561ea9aa4406761359b9b1337b5393c8506fc", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
7,687
c
#pragma once #include "Componet.h" #pragma once #include "Componet.h" #include <raylib.h> #include <Vector2.h> class Input : public Componet { public: Input(const char* name = "InputComponet") : Componet::Componet() {} MathLibrary::Vector2 getMoveAxis(); private: //actions keys that are actives //attack key R...
31.86
29
(translation_unit) "#pragma once\n#include "Componet.h"\n#pragma once\n#include "Componet.h"\n#include <raylib.h>\n#include <Vector2.h>\n\n\nclass Input :\n public Componet\n{\npublic:\n Input(const char* name = "InputComponet") : Componet::Componet() {}\n\n MathLibrary::Vector2 getMoveAxis();\n\nprivate:\n //actions k...
194
13
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 31.86, "nodes": 102, "errors": 0, "source_hash": "56ebfc00d7234b579278eabcc94300c7e71b4b3911b5742631badb22e0acb5f9", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
7,688
c
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying file Copyright.txt or https://cmake.org/licensing for details. */ #pragma once #include "cmConfigure.h" // IWYU pragma: keep #include <string> #include <vector> class cmExecutionStatus; bool cmDefinePropertyCommand(std::vector<std::st...
42.56
9
(translation_unit) "/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying\n file Copyright.txt or https://cmake.org/licensing for details. */\n#pragma once\n\n#include "cmConfigure.h" // IWYU pragma: keep\n\n#include <string>\n#include <vector>\n\nclass cmExecutionStatus;\n\nbool cmDefineProp...
51
2
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 42.56, "nodes": 31, "errors": 0, "source_hash": "818ad74d8036fffe34c7cdbf3fc1ab3b375a031c4bf461a138c63f23a7f3a401", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
7,689
c
/* WARNING: THIS FILE IS AUTO-GENERATED. DO NOT MODIFY. This file was generated from PolygonStamped_.idl using "rtiddsgen". The rtiddsgen tool is part of the RTI Connext distribution. For more information, type 'rtiddsgen -help' at a command shell or consult the RTI Connext manual. */ #ifndef PolygonStamped__163326...
41.34
85
(translation_unit) "/*\nWARNING: THIS FILE IS AUTO-GENERATED. DO NOT MODIFY.\n\nThis file was generated from PolygonStamped_.idl using "rtiddsgen".\nThe rtiddsgen tool is part of the RTI Connext distribution.\nFor more information, type 'rtiddsgen -help' at a command shell\nor consult the RTI Connext manual.\n*/\n\n#if...
427
14
{"language": "c", "success": true, "metadata": {"lines": 85, "avg_line_length": 41.34, "nodes": 291, "errors": 0, "source_hash": "a47cffb1997386b25c64c1b3cbbcfdc96a4842c4159d2ae4fd14f49fab928a56", "categorized_nodes": 205}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,690
c
#include "sn74hc165.h" #define SECONDS_TO_MICROSECONDS_MULTIPLIER 1000000 #define DEFAULT_FREQUENCY_HZ 1000000 #define DEFAULT_FREQUENCY_PERIOD_MUS (1/DEFAULT_FREQUENCY_HZ) * SECONDS_TO_MICROSECONDS_MULTIPLIER #define SHIFT_REGISTER_BIT_SIZE 8 /****************************/ /* Private Variables ...
27.8
151
(translation_unit) "#include "sn74hc165.h"\n\n#define SECONDS_TO_MICROSECONDS_MULTIPLIER 1000000\n\n#define DEFAULT_FREQUENCY_HZ 1000000\n#define DEFAULT_FREQUENCY_PERIOD_MUS (1/DEFAULT_FREQUENCY_HZ) * SECONDS_TO_MICROSECONDS_MULTIPLIER\n\n#define SHIFT_REGISTER_BIT_SIZE 8\n/****************************/\...
746
0
{"language": "c", "success": true, "metadata": {"lines": 151, "avg_line_length": 27.8, "nodes": 420, "errors": 0, "source_hash": "e635af1cbcc1b8a0e41c1c988bb3f3fe8be8ebc80b2bbd9973015e74dd56ff5e", "categorized_nodes": 298}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,691
c
// // GITGraphTests.h // CocoaGit // // Created by chapbr on 4/23/09. // Copyright 2009 <NAME>. All rights reserved. // #import "GITTestHelper.h" @class GITRepo, GITGraph; @interface GITGraphTests : GHTestCase { GITRepo *repo; GITGraph *graph; } @property(readwrite,retain) GITRepo *repo; @property(readwri...
20.94
16
(translation_unit) "//\n// GITGraphTests.h\n// CocoaGit\n//\n// Created by chapbr on 4/23/09.\n// Copyright 2009 <NAME>. All rights reserved.\n//\n\n#import "GITTestHelper.h"\n\n@class GITRepo, GITGraph;\n@interface GITGraphTests : GHTestCase {\n GITRepo *repo;\n GITGraph *graph;\n}\n@property(readwrite,retai...
83
11
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 20.94, "nodes": 51, "errors": 0, "source_hash": "c28092c5061861647369d91df13009701f6c90ab8be16ff53e8a6dc4c3eb215a", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
7,692
c
// Copyright 2012 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
38.93
45
(translation_unit) "// Copyright 2012 Google Inc.\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by ap...
193
8
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 38.93, "nodes": 98, "errors": 0, "source_hash": "f5cd77e8cd3425c644fdd7a060b5adf88f93ff98ac6bd19e38fd6587c532ea4f", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
7,693
c
#include <stdio.h> #include <math.h> int N(int l,int r,int n,int a[]) { int i,s; for(i=l,s=0;i<=r;i++) { s=s+a[i]; } return s%n; } int M(int l,int r,int n,int a[]) { int i,s; for(i=l,s=1;i<=r;i++) { s=(s*(a[i]%n))%n; } return s; } int H(int l,int r,int n,int a[])...
14.84
49
(translation_unit) "#include <stdio.h>\n#include <math.h>\n\nint N(int l,int r,int n,int a[])\n{\n int i,s;\n for(i=l,s=0;i<=r;i++)\n {\n s=s+a[i];\n }\n return s%n;\n}\nint M(int l,int r,int n,int a[])\n{\n int i,s;\n for(i=l,s=1;i<=r;i++)\n {\n s=(s*(a[i]%n))%n;\n }\n retur...
583
0
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 14.84, "nodes": 348, "errors": 0, "source_hash": "b43044b785b059e9cbfabc2ebc5b95e1875efd5e9e5155c7a18ab1b50dc094a2", "categorized_nodes": 266}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,694
c
#ifndef FAT12_H #define FAT12_h #include <stdint.h> #include <stdbool.h> void initialize_FAT(uint32_t data_sect,uint32_t root_sect, uint32_t fat_sect); bool FAT_find_file(char* filename); #endif
26.86
7
(translation_unit) "#ifndef FAT12_H\n#define FAT12_h\n\n#include <stdint.h>\n#include <stdbool.h>\n\nvoid initialize_FAT(uint32_t data_sect,uint32_t root_sect, uint32_t fat_sect);\nbool FAT_find_file(char* filename);\n\n#endif\n" (preproc_ifdef) "#ifndef FAT12_H\n#define FAT12_h\n\n#include <stdint.h>\n#include <stdb...
46
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 26.86, "nodes": 37, "errors": 0, "source_hash": "77174c54a0ca5c5dbe5243bbc7f7727823ddabd3e5051624ce71b8f01e7db844", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef F...
7,695
c
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (the "License"). You may not use this file except in compliance * with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * o...
23.87
175
(translation_unit) "/*\n * CDDL HEADER START\n *\n * The contents of this file are subject to the terms of the\n * Common Development and Distribution License, Version 1.0 only\n * (the "License"). You may not use this file except in compliance\n * with the License.\n *\n * You can obtain a copy of the license at usr/...
1,226
0
{"language": "c", "success": true, "metadata": {"lines": 175, "avg_line_length": 23.87, "nodes": 694, "errors": 0, "source_hash": "6000e0ac4ffc47a61a8db7e7244cf8fa700d8494e41e87e33d8385960e555575", "categorized_nodes": 486}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#ident...
7,696
c
#ifndef MESH_H #define MESH_H #include "struct.h" #include <QOpenGLBuffer> #include <QOpenGLFunctions> #include <QOpenGLShaderProgram> #include <vector> #include <QDebug> using namespace std; class Mesh : protected QOpenGLFunctions { public: Mesh(); Mesh(vector<VertexData> v, vector<GLushort> i); ~Mesh(); void ...
19.84
32
(translation_unit) "#ifndef MESH_H\n#define MESH_H\n\n#include "struct.h"\n#include <QOpenGLBuffer>\n#include <QOpenGLFunctions>\n#include <QOpenGLShaderProgram>\n#include <vector>\n\n#include <QDebug>\n\nusing namespace std;\n\nclass Mesh : protected QOpenGLFunctions\n{\npublic:\n Mesh();\n Mesh(vector<VertexData> v, ...
193
9
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 19.84, "nodes": 129, "errors": 0, "source_hash": "562171e8b5eff67fe6f6502f1a8af0d90ab3ad3c7ff1d83bad51d629c472d053", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
7,697
c
#include <stdio.h> #include <malloc.h> typedef struct foo { int a; int b; struct foo *f; } foo; void printFoo( foo* a ) { printf( "Foo: %d, %d, with next foo at %d\n", a->a, a->b, (int) a->f ); } int main() { struct foo *a = (foo*) malloc( sizeof( foo ) ); struct foo *b = (foo*) malloc(...
18.15
27
(translation_unit) "#include <stdio.h>\n#include <malloc.h>\n\ntypedef struct foo {\n int a;\n int b;\n struct foo *f;\n} foo;\n\nvoid printFoo( foo* a )\n{\n printf( "Foo: %d, %d, with next foo at %d\n", \n a->a, a->b, (int) a->f );\n}\n\nint main()\n{\n struct foo *a = (foo*) malloc( sizeof( foo )...
248
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 18.15, "nodes": 158, "errors": 0, "source_hash": "7c3e0d6deef216edd5ef6e45756ece00d4c32d5535c9394a4b94c8d8f03f0c37", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
7,698
c
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
38.77
82
(translation_unit) "// Copyright 2019 Google LLC\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by appl...
715
41
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 38.77, "nodes": 343, "errors": 0, "source_hash": "d44395486545629d7d7428204adddb42c346ca2d7b1c18d8fed9f39128cb78ec", "categorized_nodes": 254}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
7,699