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
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 ...
34.19
79
(translation_unit) "/*\n * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apach...
195
9
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 34.19, "nodes": 123, "errors": 0, "source_hash": "b1b950ea60557df0e84f981fe7f4b5f64872e21ef5d12656208a18d11725b8da", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,500
c
#pragma once #include <ObserverExample/ChainObserver.h> class CResponsibility1 : private ChainObserver { NOCOPY_CONSTRUCTOR(CResponsibility1); public: CResponsibility1() { } private: virtual void OnChain(int& sum) { sum += 1; } }; class CResponsibility2 ...
14.03
35
(translation_unit) "#pragma once \n \n#include <ObserverExample/ChainObserver.h> \n \nclass CResponsibility1 \n : private ChainObserver \n{ \n NOCOPY_CONSTRUCTOR(CResponsibility1); \npublic: \n CResponsibility1() \n { \n } \n \nprivate: \n virtual void OnChain(int& sum) \n { \n sum += 1; \n ...
127
2
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 14.03, "nodes": 58, "errors": 0, "source_hash": "eaca87e5b6c593b95e091e443b972db8185cd99c5676c646ed302edc79d2beb2", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
5,501
c
#include "allergies.h" #include <stddef.h> bool is_allergic_to(allergen_t allergen, uint8_t allergy_score) { return (allergy_score & 1 << (int)allergen); } allergen_list_t get_allergens(uint16_t allergy_score) { allergen_list_t list = {0}; for (size_t i = 0; i < ALLERGEN_COUNT; i++) { if ((a...
22.89
19
(translation_unit) "#include "allergies.h"\n\n#include <stddef.h>\n\nbool is_allergic_to(allergen_t allergen, uint8_t allergy_score)\n{\n return (allergy_score & 1 << (int)allergen);\n}\n\nallergen_list_t get_allergens(uint16_t allergy_score)\n{\n allergen_list_t list = {0};\n\n for (size_t i = 0; i < ALLERGEN...
136
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 22.89, "nodes": 84, "errors": 0, "source_hash": "b3bc48c9bb18e6112cb3846590873e4ba6b2a18af71800d905e8df1dfc5ee464", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,502
c
// // SLProxy.h // DarkMode // // Created by wsl on 2020/7/14. // Copyright © 2020 https://github.com/wsl2ls ----- . All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN ///消息转发中介 主要解决NSTimer、CADisplayLink等循环引用问题 @interface SLProxy : NSProxy ///初始化方法 + (instancetype)proxyWithTarget...
22.8
15
(translation_unit) "//\n// SLProxy.h\n// DarkMode\n//\n// Created by wsl on 2020/7/14.\n// Copyright © 2020 https://github.com/wsl2ls ----- . All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n///消息转发中介 主要解决NSTimer、CADisplayLink等循环引用问题\n@interface SLProxy : NSProxy\n///初始化...
47
5
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 22.8, "nodes": 26, "errors": 0, "source_hash": "34d465ce22ea9c186da6c7f0889e1f2ed431ba8e02742a6b320de51d3ad76036", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <Fo...
5,503
c
#include "defines.h" //For narodmon #define DEVICE_ID "18fe349d6f9d" //#define DEVICE_ID "ambient" #define AUTH_FINGERPRINT 1 #define LEDWINK 0 #ifndef DATASENDER #define DATASENDER NARODMON #endif #ifndef NARODMON_DEVICENAME #define NARODMON_DEVICENAME "AmbientMonitor" #endif //This is mandatory for narodmon...
41.76
37
(translation_unit) "#include "defines.h"\n\n//For narodmon\n#define DEVICE_ID "18fe349d6f9d"\n//#define DEVICE_ID "ambient"\n\n#define AUTH_FINGERPRINT 1\n\n\n#define LEDWINK 0\n\n\n#ifndef DATASENDER\n#define DATASENDER NARODMON\n#endif\n\n\n#ifndef NARODMON_DEVICENAME\n#define NARODMON_DEVICENAME "AmbientMonitor"\n#e...
149
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 41.76, "nodes": 107, "errors": 0, "source_hash": "c5e486edaed6cf37768836cd209009ec8cf12c1c6bd24d77978550fd9c105082", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
5,504
c
#include "client_config.h" int custom_config (json_object *json, void * p_datastruct) { p_cronconfig config = p_datastruct; t_cronjob cronjob; json_object *jobs = 0; json_object *job; int length = 0; int i; // parse tick and delay get_intval(json, TAG_DELAY, &config->delay); get_intval(json, TAG_TICK, &con...
26.18
34
(translation_unit) "#include "client_config.h"\nint custom_config (json_object *json, void * p_datastruct) {\n p_cronconfig config = p_datastruct;\n t_cronjob cronjob;\n \n json_object *jobs = 0;\n json_object *job;\n int length = 0;\n int i;\n \n // parse tick and delay\n get_intval(json, TAG_DELAY, &config->delay);\n...
289
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 26.18, "nodes": 166, "errors": 0, "source_hash": "f824bf0d04bb628153934f24bcd68833891a116c56e298ba9b1cde05ce134394", "categorized_nodes": 122}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,505
c
/* * ===================================================================== * Version: 1.0 * Created: 18.09.2012 10:20:51 * Author: <NAME> * Company: LinuxOS.sk * ===================================================================== */ #pragma once #include <array> #include <cst...
28.54
35
(translation_unit) "/*\n * =====================================================================\n * Version: 1.0\n * Created: 18.09.2012 10:20:51\n * Author: <NAME>\n * Company: LinuxOS.sk\n * =====================================================================\n */\n\n#pragma once\n\...
246
14
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 28.54, "nodes": 146, "errors": 0, "source_hash": "7ca17a98d8d263eea084b9744eca76ebd0e4f1f6d3a821f3a03b57484fad803c", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
5,506
c
/*5. Construir um programa em "C" que implementa uma agenda eletrônica. O programa deve ter um menu com as seguintes opções: * Entrar um novo nome na agenda. * Imprimir na tela os dados de uma das pessoas cadastradas (conforme solicitação). * Imprimir a lista de nomes cadastrados que comecem pela letra indicad...
22.65
154
(translation_unit) "/*5. Construir um programa em "C" que implementa uma agenda eletrônica. O\n programa deve ter um menu com as seguintes opções:\n\n * Entrar um novo nome na agenda.\n\n * Imprimir na tela os dados de uma das pessoas cadastradas (conforme\n solicitação).\n\n * Imprimir a lista de nomes cadastrados qu...
1,331
0
{"language": "c", "success": true, "metadata": {"lines": 154, "avg_line_length": 22.65, "nodes": 659, "errors": 0, "source_hash": "756cf0841c7d6fec97f7e83a006e14f5e242f32cbd02690c2598291c87c51822", "categorized_nodes": 462}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "ude...
5,507
c
// // YPFiles+Sort.h // Yunpan // // Created by teason23 on 2018/10/11. // Copyright © 2018年 teason23. All rights reserved. // #import "YPFiles.h" NS_ASSUME_NONNULL_BEGIN @interface YPFiles (Sort) // desc - NO . asc - YES + (NSArray <YPFiles *> *)arraySortedByUpdatedAt:(NSArray <YPFiles *> *)array order:(BOOL)a...
39.61
18
(translation_unit) "//\n// YPFiles+Sort.h\n// Yunpan\n//\n// Created by teason23 on 2018/10/11.\n// Copyright © 2018年 teason23. All rights reserved.\n//\n\n#import "YPFiles.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface YPFiles (Sort)\n\n// desc - NO . asc - YES\n+ (NSArray <YPFiles *> *)arraySortedByUpdatedAt:(NSArra...
229
36
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 39.61, "nodes": 161, "errors": 0, "source_hash": "4f05958fa23672f9c681505aa42c3aa26a55781c243a8ef6710a8a32ed709617", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"Y...
5,508
c
/* Copyright (c) 2014-2018, <NAME> 2-clause BSD license. */ #ifdef _WINDOWS asm( "section .kernel32_hints\n" "dd _hint_GetSystemTime" ); asm( "section .kernel32_iat\n" "__imp__GetSystemTime: dd _hint_GetSystemTime" ); static char hint_GetSystemTime[] = "\0\0GetSystemTime"; extern char _kernel32_dll__[];...
22.76
25
(translation_unit) "/*\n Copyright (c) 2014-2018, <NAME>\n 2-clause BSD license.\n*/\n#ifdef _WINDOWS\n\nasm(\n "section .kernel32_hints\n"\n "dd _hint_GetSystemTime"\n);\n\nasm(\n "section .kernel32_iat\n"\n "__imp__GetSystemTime: dd _hint_GetSystemTime"\n);\n\nstatic char hint_GetSystemTime[] = "\0\0GetSystemTi...
114
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 22.76, "nodes": 60, "errors": 0, "source_hash": "4201980098b65ce0c2981e95bf3790f00ebdaa30b916d3f7011c06d9c98f85ed", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef _...
5,509
c
#pragma once #include "CoreMinimal.h" #include "Blueprint/IUserObjectListEntry.h" #include "Blueprint/UserWidget.h" #include "Life/Resources/LifeSpawner.h" #include "WidgetSpawnerIconButton.generated.h" class UButton; class UImage; class UBorder; class USystemsWorld; UCLASS() class LIFE_API UWidgetSpawnerIconButt...
28.1
30
(translation_unit) "#pragma once\n\n#include "CoreMinimal.h"\n\n#include "Blueprint/IUserObjectListEntry.h"\n#include "Blueprint/UserWidget.h"\n\n#include "Life/Resources/LifeSpawner.h"\n\n#include "WidgetSpawnerIconButton.generated.h"\n\nclass UButton;\nclass UImage;\nclass UBorder;\nclass USystemsWorld;\n\nUCLASS()\n...
242
15
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 28.1, "nodes": 161, "errors": 0, "source_hash": "157ec1b32b25d2a713dd0348016d8ce5ff22f0b239ed724e90b4256dae65cbc1", "categorized_nodes": 96}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
5,510
c
#include "stdio.h" int main(void) { int i = 1; int j = 2; i += j; printf("%d %d\n", i, j); i--; printf("%d %d\n", i, j); // has no effect on i or j i * j / i; // has no effect on i or j i % ++j; return 0; }
16.07
15
(translation_unit) "#include "stdio.h"\n\nint main(void) {\n \n int i = 1;\n int j = 2;\n\n i += j;\n printf("%d %d\n", i, j);\n\n i--;\n printf("%d %d\n", i, j);\n\n // has no effect on i or j\n i * j / i;\n // has no effect on i or j\n i % ++j;\n\n return 0;\n}\n\n" (preproc_incl...
99
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 16.07, "nodes": 58, "errors": 0, "source_hash": "4334299a877a8b0c21e2710481df16383b53bcd16d1bf4557a96ccd19bf6444c", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,511
c
#include <vcl.h> #include <windows.h>
18
2
(translation_unit) "#include <vcl.h>\n#include <windows.h>\n\n\n" (preproc_include) "#include <vcl.h>\n" (#include) "#include" (system_lib_string) "<vcl.h>" (preproc_include) "#include <windows.h>\n" (#include) "#include" (system_lib_string) "<windows.h>"
7
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 18.0, "nodes": 6, "errors": 0, "source_hash": "e3c18076cb685d611198d0627dc2907d5721a06aebf6a67452acf728cb4b50ab", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <...
5,512
c
#pragma once #include "Event.h" using namespace std; class EventHandler { public: //vector<Event> m_events; vector<Event> m_events; EventHandler(); ~EventHandler(); Event * getEvent(EventType _eventType); void update(); };
16.36
14
(translation_unit) "#pragma once \n#include "Event.h" \nusing namespace std; \nclass EventHandler \n{ \npublic: \n //vector<Event> m_events; \n vector<Event> m_events; \n \n EventHandler(); \n ~EventHandler(); \n Event * getEvent(EventType _eventType); \n void update(); \n}; \n \n" (preproc_call) "#pragma once \n" ...
74
1
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 16.36, "nodes": 44, "errors": 0, "source_hash": "5be5601696d63e0522d57cef59ace31975c6f4255fe7b52ab95697cabd72b617", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
5,513
c
#include <stdlib.h> #include <stdio.h> #include <string.h> int esPrimo(int n) { int count = 1; for (int i=2; i<=n; i++) { printf ("\n%d, %d -> %d", n, i, (n%i)); if ((n%i) == 0) { count++; } } if (count > 2) { return 0; } return 1; } int main() { int n; printf ("\nNumeros primos\...
17.41
29
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n#include <string.h>\n\nint esPrimo(int n) {\n int count = 1;\n for (int i=2; i<=n; i++) {\n printf ("\n%d, %d -> %d", n, i, (n%i));\n if ((n%i) == 0) {\n count++;\n }\n }\n if (count > 2) {\n return 0;\n }\n return 1;\n}\n\nint main() {...
244
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 17.41, "nodes": 134, "errors": 0, "source_hash": "bb516210cbf4016836056446df85f05eafe15e3340661dd231fd9e7de8d57407", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
5,514
c
// Copyright 2017 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 IOS_WEB_VIEW_INTERNAL_APP_APPLICATION_CONTEXT_H_ #define IOS_WEB_VIEW_INTERNAL_APP_APPLICATION_CONTEXT_H_ #include <memory> #include <string> #i...
37.33
67
(translation_unit) "// Copyright 2017 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 IOS_WEB_VIEW_INTERNAL_APP_APPLICATION_CONTEXT_H_\n#define IOS_WEB_VIEW_INTERNAL_APP_APPLICATION_CONTEXT_H_\n\n#include <me...
375
13
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 37.33, "nodes": 208, "errors": 0, "source_hash": "fac9cf6bff84ba22f63183a197a1552ded005873d01b9ef67070b036c70247cc", "categorized_nodes": 147}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,515
c
// // GlobalConfig.h // OrderPhone // // Created by 蒋玉顺 on 15-11-8. // Copyright (c) 2015年 蒋玉顺. All rights reserved. // #ifndef OrderPhone_Global_h #define OrderPhone_Global_h #define SCREEN_SIZE [[UIScreen mainScreen] bounds].size //屏幕宽度 #define SCREEN_WIDTH [[UIScreen mainScreen] bounds].size...
30.91
110
(translation_unit) "//\n// GlobalConfig.h\n// OrderPhone\n//\n// Created by 蒋玉顺 on 15-11-8.\n// Copyright (c) 2015年 蒋玉顺. All rights reserved.\n//\n\n\n#ifndef OrderPhone_Global_h\n#define OrderPhone_Global_h\n\n\n\n#define SCREEN_SIZE [[UIScreen mainScreen] bounds].size //屏幕宽度\n#define SCREEN_WIDTH [...
270
0
{"language": "c", "success": true, "metadata": {"lines": 110, "avg_line_length": 30.91, "nodes": 235, "errors": 0, "source_hash": "8faf8c3102ccb0dae04ed0e82323c8b3d28709146d3cb8680037657169e8c380", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "hone_G...
5,516
c
// // ViewController.h // MCSlidingTabs // // Created by mchaillou on 16/11/2015. // Copyright © 2015 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> #import "MCSlidingTabs.h" @interface ViewController : MCSlidingTabs @end
18.67
12
(translation_unit) "//\n// ViewController.h\n// MCSlidingTabs\n//\n// Created by mchaillou on 16/11/2015.\n// Copyright © 2015 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "MCSlidingTabs.h"\n\n@interface ViewController : MCSlidingTabs\n\n\n@end\n\n" (comment) "//" (comment) "// ViewCont...
22
3
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 18.67, "nodes": 11, "errors": 0, "source_hash": "ab6e22a62231765c3333c64e72399d6b66ef88e1e8f555a5fd9fff000c28e277", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UI...
5,517
c
#pragma once #include <glm/glm.hpp> #include "shader.h" class TextureShaderTest : public Shader{ public: TextureShaderTest(); bool loadProgram(); void enableAttributes(); void disableAttributes(); void setPosition(GLsizei, const GLvoid*); void setProjection(glm::mat4 matrix){ mProjectionMatrix = matrix...
21.31
26
(translation_unit) "#pragma once\n\n#include <glm/glm.hpp>\n#include "shader.h"\n\nclass TextureShaderTest : public Shader{\n \n public:\n TextureShaderTest();\n\n bool loadProgram();\n\n void enableAttributes();\n void disableAttributes();\n \n void setPosition(GLsizei, const GLvoid*);\n \n void setProjection(glm::mat...
171
5
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 21.31, "nodes": 101, "errors": 0, "source_hash": "6f9baca936be12cd2fb1a9b3f8cf839d60bd3168eee8c5956201c9bb5e706878", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
5,518
c
/** * A helper class for calculating random numbers * @author <NAME> (<EMAIL>) */ #ifndef _OWN_RANDOM_H_ #define _OWN_RANDOM_H_ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> #include <string.h> #include <vector> ////////////////////////////////////////////////////////////////////////...
25.31
135
(translation_unit) "/**\n * A helper class for calculating random numbers\n * @author <NAME> (<EMAIL>)\n */ \n\n#ifndef _OWN_RANDOM_H_\n#define _OWN_RANDOM_H_\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n#include <time.h>\n#include <string.h>\n#include <vector>\n\n/////////////////////////////////////...
1,013
2
{"language": "c", "success": true, "metadata": {"lines": 135, "avg_line_length": 25.31, "nodes": 646, "errors": 0, "source_hash": "3b1567180fb2675eee858e2440cf59ed639432df3188e35a0335ee173f0740a3", "categorized_nodes": 447}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
5,519
c
// // SetupViewController.h // APNS iPhone Test App // // Created by <NAME> on 9/29/14. // // #import <UIKit/UIKit.h> @interface SetupViewController : UIViewController @property (nonatomic, retain) IBOutlet UITextField *myEmailAddress; @property (nonatomic, retain) IBOutlet UITextField *myAltCustomerId; @property...
38.14
21
(translation_unit) "//\n// SetupViewController.h\n// APNS iPhone Test App\n//\n// Created by <NAME> on 9/29/14.\n//\n//\n\n#import <UIKit/UIKit.h>\n\n@interface SetupViewController : UIViewController\n\n@property (nonatomic, retain) IBOutlet UITextField *myEmailAddress;\n@property (nonatomic, retain) IBOutlet UIText...
215
34
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 38.14, "nodes": 150, "errors": 0, "source_hash": "3684a7369c764748e8e47fb9e9f415888e7a1d9a98320ac047e1e3fb6db015c8", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
5,520
c
#pragma once #include <QObject> #include <QDoubleSpinBox> #include <QWidget> #include <QKeyEvent> #include <QPalette> class EventFilterDoubleSpinBox : public QDoubleSpinBox { Q_OBJECT public: explicit EventFilterDoubleSpinBox(QWidget* parent = 0); QValidator::State validate(QString& input, int& pos) con...
30.32
19
(translation_unit) "#pragma once\n\n#include <QObject>\n#include <QDoubleSpinBox>\n#include <QWidget>\n#include <QKeyEvent>\n#include <QPalette>\n\nclass EventFilterDoubleSpinBox : public QDoubleSpinBox\n{\n Q_OBJECT\n\npublic:\n explicit EventFilterDoubleSpinBox(QWidget* parent = 0);\n\n QValidator::State val...
152
11
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 30.32, "nodes": 92, "errors": 0, "source_hash": "6ec9a429b0aa948260b8bd56f2ca74c191871e00a10d96bc1b6ba083f64fe0a2", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
5,521
c
/**************************************************************************//** * @file TouchPanel.c * @version V1.00 * @brief Perform A/D Conversion with ADC single mode. * * SPDX-License-Identifier: Apache-2.0 * @copyright (C) 2020 Nuvoton Technology Corp. All rights reserved. *************************...
35.48
212
(translation_unit) "/**************************************************************************//**\n * @file TouchPanel.c\n * @version V1.00\n * @brief Perform A/D Conversion with ADC single mode.\n *\n * SPDX-License-Identifier: Apache-2.0\n * @copyright (C) 2020 Nuvoton Technology Corp. All rights reserved.\...
1,269
0
{"language": "c", "success": true, "metadata": {"lines": 212, "avg_line_length": 35.48, "nodes": 711, "errors": 0, "source_hash": "9d1a185161d83898c388414039941576196bdd3811083fd438460e5dbef9f072", "categorized_nodes": 543}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,522
c
#pragma once #include "ofMain.h" #include "ofxOsc.h" #include "OscServer.h" #include "Controller.h" #define ACC_MSG_NAME_X "/acc/x" #define ACC_MSG_NAME_Y "/acc/y" #define ACC_MSG_NAME_Z "/acc/z" #define ORI_MSG_NAME_X "/ori/x" #define ORI_MSG_NAME_Y "/ori/y" #define ORI_MSG_NAME_Z "/ori/z" #define PROX_MSG_NAME "/...
27.12
33
(translation_unit) "#pragma once\n\n#include "ofMain.h"\n#include "ofxOsc.h"\n#include "OscServer.h"\n#include "Controller.h"\n\n#define ACC_MSG_NAME_X "/acc/x"\n#define ACC_MSG_NAME_Y "/acc/y"\n#define ACC_MSG_NAME_Z "/acc/z"\n\n#define ORI_MSG_NAME_X "/ori/x"\n#define ORI_MSG_NAME_Y "/ori/y"\n#define ORI_MSG_NAME_Z "...
223
13
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 27.12, "nodes": 131, "errors": 0, "source_hash": "e810d74dd68381bdddce1059c4e1c9a618bb3d1c9254db0ebf6e31ef47490d79", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
5,523
c
// Copyright 2014, <EMAIL> // Distributed under the Boost Software License, Version 1.0. // You may obtain a copy of the License at // // http://www.boost.org/LICENSE_1_0.txt #ifndef INTERPROCESS_CONNECTOR_H_ #define INTERPROCESS_CONNECTOR_H_ #include <ppltasks.h> #include <string> #include <thread> #include "int...
32.28
39
(translation_unit) "// Copyright 2014, <EMAIL>\n// Distributed under the Boost Software License, Version 1.0.\n// You may obtain a copy of the License at\n//\n// http://www.boost.org/LICENSE_1_0.txt\n\n#ifndef INTERPROCESS_CONNECTOR_H_\n#define INTERPROCESS_CONNECTOR_H_\n\n#include <ppltasks.h>\n#include <string>\n...
304
17
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 32.28, "nodes": 170, "errors": 0, "source_hash": "11c5106436ebd0f1bfd29a7cdec64d5c21d2f025a6dd1403f99acfbe9da70c36", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,524
c
//Copyright (c) 2016 <NAME>(meson800) //The MIT License - See ../LICENSE for more info #pragma once #include <vector> #include <string> struct SymmetricKey { std::vector<unsigned char> key; std::vector<unsigned char> iv; std::string toString() const; };
22.36
11
(translation_unit) "//Copyright (c) 2016 <NAME>(meson800)\n//The MIT License - See ../LICENSE for more info\n#pragma once\n\n#include <vector>\n#include <string>\n\nstruct SymmetricKey\n{\n std::vector<unsigned char> key;\n std::vector<unsigned char> iv;\n\n std::string toString() const;\n};\n" (comment) "//Copyright...
62
7
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 22.36, "nodes": 41, "errors": 0, "source_hash": "f2e7a055543739710991160339c661d87194b8764722e9e721549165363babbe", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
5,525
c
/* * IncludeHandler.h * * This file is part of the XShaderCompiler project (Copyright (c) 2014-2018 by <NAME>) * See "LICENSE.txt" for license information. */ #ifndef XSC_INCLUDE_HANDLER_H #define XSC_INCLUDE_HANDLER_H #include "Export.h" #include <string> #include <istream> #include <memory> #include <vector>...
28.46
50
(translation_unit) "/*\n * IncludeHandler.h\n * \n * This file is part of the XShaderCompiler project (Copyright (c) 2014-2018 by <NAME>)\n * See "LICENSE.txt" for license information.\n */\n\n#ifndef XSC_INCLUDE_HANDLER_H\n#define XSC_INCLUDE_HANDLER_H\n\n\n#include "Export.h"\n#include <string>\n#include <istream>\n#...
170
7
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 28.46, "nodes": 100, "errors": 0, "source_hash": "e168002fae5ad218049ec1fe8a2f72636cfcef50c004a7219fae6ed686de6a3c", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,526
c
#include <stdlib.h> #include <stdio.h> #include <stdbool.h> #include <stdint.h> #include <getopt.h> #include <string.h> #include "lexer.h" #include "parser.h" #include "resolve.h" #include "ast.h" #include "lexer.c" #include "parser.c" #include "resolve.c" #include "bytecode/bytecode_generator.c" void print_usage(c...
31.18
95
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n#include <stdbool.h>\n#include <stdint.h>\n#include <getopt.h>\n#include <string.h>\n\n#include "lexer.h"\n#include "parser.h"\n#include "resolve.h"\n#include "ast.h"\n\n#include "lexer.c"\n#include "parser.c"\n#include "resolve.c"\n\n#include "bytecode/bytec...
1,013
0
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 31.18, "nodes": 580, "errors": 0, "source_hash": "2b3b7459f2b2094f59d922fcd8555932d601525a5d5829dfcd293397b2fcc8a6", "categorized_nodes": 392}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,527
c
// // CFBase.c // GraphicsServices // // Created by <NAME> on 7/31/15. // Copyright © 2015 CodaFi. All rights reserved. // #include "GSPrivate.h" const CFStringRef kGSEventReceiveRunLoopMode = CFSTR("GSEventReceiveRunLoopMode"); void GSInitialize() { static bool initOnce; if (initOnce == false) { _GSEventCla...
21.31
16
(translation_unit) "//\n// CFBase.c\n// GraphicsServices\n//\n// Created by <NAME> on 7/31/15.\n// Copyright © 2015 CodaFi. All rights reserved.\n//\n\n#include "GSPrivate.h"\n\nconst CFStringRef kGSEventReceiveRunLoopMode = CFSTR("GSEventReceiveRunLoopMode");\n\nvoid GSInitialize() {\n static bool initOnce;\n if (...
72
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 21.31, "nodes": 34, "errors": 0, "source_hash": "f11658f811d70cc0c7f2f6cf50a969c2d83cce1edf219557da560578eba93295", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "includ...
5,528
c
// To check if a library is compiled with CocoaPods you // can use the `COCOAPODS` macro definition which is // defined in the xcconfigs so it is available in // headers also when they are imported in the client // project. // AFImage #define COCOAPODS_POD_AVAILABLE_AFImage #define COCOAPODS_VERSION_MAJOR_AFImage 0 ...
35.55
11
(translation_unit) "// To check if a library is compiled with CocoaPods you\n// can use the `COCOAPODS` macro definition which is\n// defined in the xcconfigs so it is available in\n// headers also when they are imported in the client\n// project.\n\n\n// AFImage\n#define COCOAPODS_POD_AVAILABLE_AFImage\n#define COCOAP...
22
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 35.55, "nodes": 15, "errors": 0, "source_hash": "0853cbdb381930b9232c93eb3c294b0485bf12a4f4df22dcf3cf3b28d34d809c", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define COC...
5,529
c
// Copyright(c) 2020 <NAME> // This software is released under the MIT License, see LICENSE. #include "queue.h" #include <stdbool.h> #include <string.h> #include "heap.h" typedef struct QueueStruct { uint8_t* buffer; int capacity; int used; int head; int tail; } QueueStruct; static Queue...
27.39
105
(translation_unit) " Copyright(c) 2020 <NAME> \n// This software is released under the MIT License, see LICENSE. \n#include "queue.h" \n \n#include <stdbool.h> \n#include <string.h> \n \n#include "heap.h" \n \ntypedef struct QueueStruct { \n uint8_t* buffer; \n int capacity; \n int used; \n int head; \n int tail; ...
1,021
0
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 27.39, "nodes": 698, "errors": 0, "source_hash": "ead2ec039b4a5cdbe12f91c5c53aafb49a63000ebc9fca1884688753ffe75608", "categorized_nodes": 482}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "ncl...
5,530
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* parser2.c :+: :+: :+: ...
28.3
87
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* parser2.c ...
968
0
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 28.3, "nodes": 559, "errors": 0, "source_hash": "97f7f8dc0617a734d2e4b2d1348819e87c4586a749e19a148d86ff1af4560a4f", "categorized_nodes": 407}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
5,531
c
// Copyright 2014-2015 Project Vogue. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ELANG_COMPILER_ANALYSIS_ANALYZER_H_ #define ELANG_COMPILER_ANALYSIS_ANALYZER_H_ #include <unordered_map> #include "elang/compiler/ast/visitor.h" #...
34.71
49
(translation_unit) "// Copyright 2014-2015 Project Vogue. 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 ELANG_COMPILER_ANALYSIS_ANALYZER_H_\n#define ELANG_COMPILER_ANALYSIS_ANALYZER_H_\n\n#include <unordered_map>\n\n#include "el...
434
23
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 34.71, "nodes": 246, "errors": 0, "source_hash": "4402067f4ccc756ceda588d68a44187c963e15aed3944fc74f43c7725b1c9e4f", "categorized_nodes": 165}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,532
c
#pragma once #include "ItemHandler.h" class cItemFoodHandler : public cItemHandler { typedef cItemHandler super; public: cItemFoodHandler(int a_ItemType) : super(a_ItemType) { } virtual bool IsFood(void) override { return true; } virtual FoodInfo GetFoodInfo(const cItem * a_Item) override { ...
28.62
150
(translation_unit) "#pragma once\n\n#include "ItemHandler.h"\n\n\n\n\n\nclass cItemFoodHandler :\n public cItemHandler\n{\n typedef cItemHandler super;\n\npublic:\n cItemFoodHandler(int a_ItemType)\n : super(a_ItemType)\n {\n }\n\n\n virtual bool IsFood(void) override\n {\n return true;\n }\n\n\n virtual FoodInfo Get...
1,159
15
{"language": "c", "success": true, "metadata": {"lines": 150, "avg_line_length": 28.62, "nodes": 637, "errors": 0, "source_hash": "d5146a214702e105e06a1894d5708b758c16137bb4aa917e72fb8bd5142cd4c1", "categorized_nodes": 512}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
5,533
c
// internal definitions for vfs #ifndef __VFS_INT_H__ #define __VFS_INT_H__ #include <string.h> #include <stdint.h> #if 0 #include "spiffs.h" #include "fatfs_prefix_lib.h" #include "ff.h" #endif #define VFS_EOF -1 enum vfs_filesystems { VFS_FS_NONE = 0, VFS_FS_SPIFFS, VFS_FS_FATFS }; enum vfs_seek { VFS...
27.46
108
(translation_unit) "// internal definitions for vfs\n\n#ifndef __VFS_INT_H__\n#define __VFS_INT_H__\n\n#include <string.h>\n#include <stdint.h>\n\n#if 0\n#include "spiffs.h"\n\n#include "fatfs_prefix_lib.h"\n#include "ff.h"\n#endif\n\n\n#define VFS_EOF -1\n\nenum vfs_filesystems {\n VFS_FS_NONE = 0,\n VFS_FS_SPIFFS,\...
1,013
0
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 27.46, "nodes": 686, "errors": 0, "source_hash": "1e0afec459dc20f223aed09ff74480a1c2b5b6f5b478bfef03200416bba72dbb", "categorized_nodes": 399}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
5,534
c
#ifndef __CTYPE #define __CTYPE #pragma lib "/$M/lib/ape/libap.a" #ifdef __cplusplus extern "C" { #endif extern int isalnum(int); extern int isalpha(int); extern int iscntrl(int); extern int isdigit(int); extern int isgraph(int); extern int islower(int); extern int isprint(int); extern int ispunct(int); extern int is...
32.63
49
(translation_unit) "#ifndef __CTYPE\n#define __CTYPE\n#pragma lib "/$M/lib/ape/libap.a"\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\nextern int isalnum(int);\nextern int isalpha(int);\nextern int iscntrl(int);\nextern int isdigit(int);\nextern int isgraph(int);\nextern int islower(int);\nextern int isprint(int);\next...
352
0
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 32.63, "nodes": 259, "errors": 0, "source_hash": "9aab5f71b7748146d57d1aad05d01d033c2ab4bf44d1bfb5f8ca994a819af5fa", "categorized_nodes": 153}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,535
c
// // CHCHealthSurveyNewCell.h // ChoiceHealthCare // // Created by Mindbowser on 10/4/15. // Copyright (c) 2015 Mindbowser. All rights reserved. // #import <UIKit/UIKit.h> @interface CHCHealthSurveyNewCell : UITableViewCell @property (weak, nonatomic) IBOutlet UIImageView *backgroundImageView; @property (weak, n...
29.88
16
(translation_unit) "//\n// CHCHealthSurveyNewCell.h\n// ChoiceHealthCare\n//\n// Created by Mindbowser on 10/4/15.\n// Copyright (c) 2015 Mindbowser. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface CHCHealthSurveyNewCell : UITableViewCell\n@property (weak, nonatomic) IBOutlet UIImageView *backgrou...
101
16
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 29.88, "nodes": 72, "errors": 0, "source_hash": "110f679aaa3a3f90e522504e09692e0495178c08473547cce2e6c7aae12f8784", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
5,536
c
#ifndef __MODEL_H__ #define __MODEL_H__ #include <vector> #include <string> #include "math.h" #include "image.h" class Model { private: std::vector<Vec3f> verts_; std::vector<std::vector<Vec3i> > faces_; // attention, this Vec3i means vertex/uv/normal std::vector<Vec3f> norms_; std::vector<Vec2f> uv_; TGAImage di...
24.77
31
(translation_unit) "#ifndef __MODEL_H__\n#define __MODEL_H__\n#include <vector>\n#include <string>\n#include "math.h"\n#include "image.h"\n\nclass Model {\nprivate:\n std::vector<Vec3f> verts_;\n std::vector<std::vector<Vec3i> > faces_; // attention, this Vec3i means vertex/uv/normal\n std::vector<Vec3f> norms_;\n std:...
295
9
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 24.77, "nodes": 195, "errors": 0, "source_hash": "ad1dd17311854dfa4e959abf5a196c98f9a1971e1b6dc64658340770b0f7b27c", "categorized_nodes": 140}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,537
c
#ifndef _HR_STRUTILS_H_ #define _HR_STRUTILS_H_ HR_EXTERN_C_START #include <ntdef.h> #ifndef DECLARE_CONST_ANSI_STRING #define DECLARE_CONST_ANSI_STRING(_var, _string) \ const CHAR _var ## _buffer[] = _string; \ __pragma(warning(push)) \ __pragma(warning(disable:4221)) __pragma(warning(disable:4204)) \ const AN...
38.02
52
(translation_unit) "#ifndef _HR_STRUTILS_H_\n#define _HR_STRUTILS_H_\n\nHR_EXTERN_C_START\n\n#include <ntdef.h>\n\n#ifndef DECLARE_CONST_ANSI_STRING\n#define DECLARE_CONST_ANSI_STRING(_var, _string) \\n const CHAR _var ## _buffer[] = _string; \\n __pragma(warning(push)) \\n __pragma(warning(disable:4221)) __pragma(warn...
279
24
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 38.02, "nodes": 222, "errors": 0, "source_hash": "3f5495bdf1441e95a646755f3b6137526320b253579fae00cee69515901e22af", "categorized_nodes": 177}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,538
c
/*========================================================================= Program: CMake - Cross-Platform Makefile Generator Module: $RCSfile: cmComputeTargetDepends.h,v $ Language: C++ Date: $Date: 2012/03/29 17:21:08 $ Version: $Revision: 1.1.1.1 $ Copyright (c) 2002 Kitware, Inc., Insigh...
40.37
60
(translation_unit) "/*=========================================================================\n\n Program: CMake - Cross-Platform Makefile Generator\n Module: $RCSfile: cmComputeTargetDepends.h,v $\n Language: C++\n Date: $Date: 2012/03/29 17:21:08 $\n Version: $Revision: 1.1.1.1 $\n\n Copyright (c...
338
12
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 40.37, "nodes": 206, "errors": 0, "source_hash": "4850aba2ae60baec811e1896b026961d379d20dec4860b71d029a16eaa116ed0", "categorized_nodes": 139}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,539
c
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif #import "DfDrawView.h" #import "DfImageView.h" #import "DrawPath.h" #import "ImgDrawController.h" #import "ImgDrawView.h" #im...
23.18
22
(translation_unit) "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#else\n#ifndef FOUNDATION_EXPORT\n#if defined(__cplusplus)\n#define FOUNDATION_EXPORT extern "C"\n#else\n#define FOUNDATION_EXPORT extern\n#endif\n#endif\n#endif\n\n#import "DfDrawView.h"\n#import "DfImageView.h"\n#import "DrawPath.h"\n#import "ImgDrawContro...
79
1
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 23.18, "nodes": 69, "errors": 0, "source_hash": "2e41a1d5751a21a17ac266268c36b318a9c6ae5f469ad70f9b6f94de89839246", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef _...
5,540
c
#ifndef _IRR_ODE_EVENT_NODE_CLONED #define _IRR_ODE_EVENT_NODE_CLONED #include <irrlicht.h> #include <event/IIrrOdeEvent.h> namespace irr { namespace ode { /** * @class CIrrOdeEventNodeCloned * This event gets posted if a node is cloned */ class CIrrOdeEventNodeCloned : public IIrrOdeEvent { ...
22.86
43
(translation_unit) "#ifndef _IRR_ODE_EVENT_NODE_CLONED \n #define _IRR_ODE_EVENT_NODE_CLONED \n \n #include <irrlicht.h> \n #include <event/IIrrOdeEvent.h> \n \nnamespace irr { \nnamespace ode { \n \n/** \n * @class CIrrOdeEventNodeCloned \n * This event gets posted if a node is cloned \n */ \nclass CIrrOdeEventNode...
233
7
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 22.86, "nodes": 137, "errors": 0, "source_hash": "2cb5eaafcf3a7d8d0680ee50ce7a9b99e0964449d35dca6abc42ec2ac4053b96", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,541
c
#import "iPhoneOnly/CPPlatformSpecificDefines.h" #import "Source/CPAxis.h" #import "Source/CPAxisLabel.h" #import "Source/CPAxisTitle.h" #import "Source/CPAxisSet.h" #import "Source/CPBarPlot.h" #import "Source/CPBorderedLayer.h" #import "Source/CPColor.h" #import "Source/CPColorSpace.h" #import "Source/CPDarkGradientT...
31.93
41
(translation_unit) "#import "iPhoneOnly/CPPlatformSpecificDefines.h"\n#import "Source/CPAxis.h"\n#import "Source/CPAxisLabel.h"\n#import "Source/CPAxisTitle.h"\n#import "Source/CPAxisSet.h"\n#import "Source/CPBarPlot.h"\n#import "Source/CPBorderedLayer.h"\n#import "Source/CPColor.h"\n#import "Source/CPColorSpace.h"\n#i...
124
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 31.93, "nodes": 123, "errors": 0, "source_hash": "fcaad5864276abb130106e37f0a864bea5f843e668dae6799f77c4f664f519cf", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
5,542
c
// // FWButton.h // FWMeituApp // // Created by ForrestWoo on 15-9-21. // Copyright (c) 2015年 ForrestWoo co,.ltd. All rights reserved. // #import <UIKit/UIKit.h> @interface FWButton : UIButton @property (nonatomic, assign) CGFloat cornerRadius; @property (nonatomic, strong) UIColor *backgroundColor; @property (n...
32.18
17
(translation_unit) "//\n// FWButton.h\n// FWMeituApp\n//\n// Created by ForrestWoo on 15-9-21.\n// Copyright (c) 2015年 ForrestWoo co,.ltd. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface FWButton : UIButton\n\n@property (nonatomic, assign) CGFloat cornerRadius;\n@property (nonatomic, strong) UICol...
133
28
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 32.18, "nodes": 96, "errors": 0, "source_hash": "7d0075e1bc9f18ca2fbf8a41a1b3a300a1faf1eda21fc5009317f3c96ec6a5b1", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <UI...
5,543
c
// // ready_queue.h // seta // // Created by <NAME> on 19/10/13. // Updated by <NAME> on 26/6/2014 // Copyright (c) 2013 Erlang Solution Ltd. All rights reserved. // #include <stdio.h> #include "graph_dot.h" typedef dequeue_t ready_queue_t; ready_queue_t * ready_queue_create(); void ready_queue_destroy(dequeue_...
33.76
17
(translation_unit) "//\n// ready_queue.h\n// seta\n//\n// Created by <NAME> on 19/10/13.\n// Updated by <NAME> on 26/6/2014\n// Copyright (c) 2013 Erlang Solution Ltd. All rights reserved.\n//\n\n#include <stdio.h>\n#include "graph_dot.h"\n\ntypedef dequeue_t ready_queue_t;\n\nready_queue_t * ready_queue_create();...
106
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 33.76, "nodes": 73, "errors": 0, "source_hash": "717ce9fd7fa986a3963646bea4752a9d497df2f50649dddd3a04d679ea95ffda", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,544
c
#pragma once #include <cpprest/http_listener.h> #include <cpprest/json.h> #pragma comment(lib, "cpprest_2_10") using namespace web; using namespace web::http; using namespace web::http::experimental::listener; #include <iostream> #include <map> #include <set> #include <string> using namespace std; #define TRACE(msg...
30.96
28
(translation_unit) "#pragma once\n\n#include <cpprest/http_listener.h>\n#include <cpprest/json.h>\n#pragma comment(lib, "cpprest_2_10")\n\nusing namespace web;\nusing namespace web::http;\nusing namespace web::http::experimental::listener;\n\n#include <iostream>\n#include <map>\n#include <set>\n#include <string>\nusing...
259
16
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 30.96, "nodes": 163, "errors": 0, "source_hash": "58260c1f23a23f26e5e7dd211e87cbfea2beba816b0007e3b08bbe425f4d9202", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
5,545
c
/* * The Shadow Simulator * See LICENSE for licensing information */ #ifndef SRC_MAIN_HOST_SYSCALL_UIO_H_ #define SRC_MAIN_HOST_SYSCALL_UIO_H_ #include "main/host/syscall/protected.h" SYSCALL_HANDLER(preadv); SYSCALL_HANDLER(preadv2); SYSCALL_HANDLER(pwritev); SYSCALL_HANDLER(pwritev2); SYSCALL_HANDLER(readv); SY...
26.29
14
(translation_unit) "/*\n * The Shadow Simulator\n * See LICENSE for licensing information\n */\n\n#ifndef SRC_MAIN_HOST_SYSCALL_UIO_H_\n#define SRC_MAIN_HOST_SYSCALL_UIO_H_\n\n#include "main/host/syscall/protected.h"\n\nSYSCALL_HANDLER(preadv);\nSYSCALL_HANDLER(preadv2);\nSYSCALL_HANDLER(pwritev);\nSYSCALL_HANDLER(pwri...
64
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 26.29, "nodes": 34, "errors": 0, "source_hash": "d3732a15482e623d8db9884535485e514125a4e5961e8553225ef96144d42209", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,546
c
#ifndef CONFIG_H #define CONFIG_H //pins #define MENU_BTN_PIN 26 #define BACK_BTN_PIN 25 #define DOWN_BTN_PIN 4 #define DISPLAY_CS 5 #define DISPLAY_RES 9 #define DISPLAY_DC 10 #define DISPLAY_BUSY 19 #define ACC_INT_1_PIN 14 #define ACC_INT_2_PIN 12 #define VIB_MOTOR_PIN 13 #define RTC_INT_PIN 27 #if !defined(ARDUI...
26.93
71
(translation_unit) "#ifndef CONFIG_H\n#define CONFIG_H\n\n//pins\n#define MENU_BTN_PIN 26\n#define BACK_BTN_PIN 25\n#define DOWN_BTN_PIN 4\n#define DISPLAY_CS 5\n#define DISPLAY_RES 9\n#define DISPLAY_DC 10\n#define DISPLAY_BUSY 19\n#define ACC_INT_1_PIN 14\n#define ACC_INT_2_PIN 12\n#define VIB_MOTOR_PIN 13\n#define R...
283
0
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 26.93, "nodes": 263, "errors": 0, "source_hash": "70f9fd102b202d8ac845f5bcccde50b6a32c6a9727821010a36c3ed1ea080d02", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,547
c
/* ============================================================================ Name : Assignment03 - Final Project - Group D Author(s) : <NAME>, <NAME> Email : <EMAIL>, <EMAIL> Date : 4/02/2021 Copyright : Copyright 2021 MIT License Description : ================================================...
25
82
(translation_unit) "/*\n ============================================================================\n Name : Assignment03 - Final Project - Group D\n Author(s) : <NAME>, <NAME>\n Email : <EMAIL>, <EMAIL>\n Date : 4/02/2021\n Copyright : Copyright 2021 MIT License\n\n Description :\n ===================...
506
0
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 25.0, "nodes": 382, "errors": 0, "source_hash": "4c9f3f25735a14e1d02c88c96a3710c15297ef95a4c91564b031bf5ba95b74f1", "categorized_nodes": 231}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,548
c
/* Use the defaults for everything else */ #include_next <lv_drv_conf.h>
35.5
2
(translation_unit) "/* Use the defaults for everything else */\n#include_next <lv_drv_conf.h>\n" (comment) "/* Use the defaults for everything else */" (preproc_call) "#include_next <lv_drv_conf.h>\n" (preproc_directive) "#include_next" (preproc_arg) "<lv_drv_conf.h>"
5
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 35.5, "nodes": 3, "errors": 0, "source_hash": "01bf9d64c488727ca4505ad6e853b7abcdd43b5eba341ccc59f32c633a64062b", "categorized_nodes": 1}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#include_next...
5,549
c
// // SumClass.h // TestingSampleFramework // // Created by wazma on 21/12/2021. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface SumClass : NSObject @property (nonatomic,assign) NSNumber *summ; -(NSNumber *)sumreturn; @end NS_ASSUME_NONNULL_END
19.92
13
(translation_unit) "//\n// SumClass.h\n// TestingSampleFramework\n//\n// Created by wazma on 21/12/2021.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface SumClass : NSObject\n\n@property (nonatomic,assign) NSNumber *summ;\n-(NSNumber *)sumreturn;\n@end\n\nNS_ASSUME_NONNULL_END\n" (...
56
6
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 19.92, "nodes": 37, "errors": 0, "source_hash": "20c6781ca91e6f08315c48e1c260bc018f7d61eb4f8618906a27a47cca86061c", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
5,550
c
#import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import <Photos/Photos.h> #import "Actions.h" @interface ImagePicker : NSObject <UIImagePickerControllerDelegate, UINavigationControllerDelegate> @property (atomic, copy) DictionaryAction onPicture; @property (atomic, copy) Action onCancel; -(UIViewController*)...
36.31
13
(translation_unit) "#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n#import <Photos/Photos.h>\n#import "Actions.h"\n\n@interface ImagePicker : NSObject <UIImagePickerControllerDelegate, UINavigationControllerDelegate>\n@property (atomic, copy) DictionaryAction onPicture;\n@property (atomic, copy) Action onC...
122
12
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 36.31, "nodes": 82, "errors": 0, "source_hash": "808f3f15e7d43be0a89665c6828d3f8b14634cc399bb0a62a01851042db8fc1f", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
5,551
c
#pragma once #include "../Util/Util.h" #include "AssetRegistry.h" class TextRegistry : public AssetRegistry<std::string> { Ref<const std::string> loadAsset(const std::string &name) override { return Util::readBinaryFile(name); } };
38
6
(translation_unit) "#pragma once\n\n#include "../Util/Util.h"\n#include "AssetRegistry.h"\n\nclass TextRegistry : public AssetRegistry<std::string> {\n Ref<const std::string> loadAsset(const std::string &name) override { return Util::readBinaryFile(name); }\n};\n" (preproc_call) "#pragma once\n" (preproc_directi...
80
5
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 38.0, "nodes": 43, "errors": 0, "source_hash": "65a0578fc0bac77114984eb4f027c975d6405c8e4ca1b4b1dd20631da3c35106", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
5,552
c
#ifndef __FASTA_DB_H__ #define __FASTA_DB_H__ #include "Config.h" #include "includes.h" struct PeptideLocation { int aa_loc; // in the whole sequence database int protein_idx; int loc_in_protein; }; struct TagListPointer { TagListPointer() : num_locations(0), list_start_idx(-1) {}; int num...
25.19
154
(translation_unit) "#ifndef __FASTA_DB_H__ \n#define __FASTA_DB_H__ \n \n#include "Config.h" \n#include "includes.h" \n \n \nstruct PeptideLocation { \n int aa_loc; // in the whole sequence database \n int protein_idx; \n int loc_in_protein; \n}; \n \n \n \nstruct TagListPointer { \n TagListPointer() : num_locations(0)...
1,020
36
{"language": "c", "success": true, "metadata": {"lines": 154, "avg_line_length": 25.19, "nodes": 628, "errors": 0, "source_hash": "0d474a8eca61f2cb0b8c1ad8519d0509ef134ec8dc6a2fd429a035e40296a42f", "categorized_nodes": 390}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
5,553
c
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <sys/types.h> #include <unistd.h> #include </usr/include/openmpi/mpi.h> #include <omp.h> #define SIZE_GAU 8 #define SIZE_JVL 15 void main(int argc, char * argv[]) { int my_rank; int size; char Name[8]; strcpy(Nam...
23.02
83
(translation_unit) "#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include <sys/types.h>\n#include <unistd.h>\n#include </usr/include/openmpi/mpi.h>\n#include <omp.h>\n\n#define SIZE_GAU 8\n#define SIZE_JVL 15\n\nvoid main(int argc, char * argv[])\n{\n int my_rank; \n int size; \n...
533
0
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 23.02, "nodes": 281, "errors": 0, "source_hash": "15e940ef788a0856d6702c363e33ca9d865c3d0784a43a0b99c3a6f29ee7aa84", "categorized_nodes": 211}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,554
c
/* * Copyright 2005-2015, Haiku. * Distributed under the terms of the MIT License. * * Authors: * <NAME>, <EMAIL> * <NAME>, <<EMAIL>> * <NAME> <<EMAIL>> */ #ifndef DESKTOP_SETTINGS_PRIVATE_H #define DESKTOP_SETTINGS_PRIVATE_H #include "DesktopSettings.h" #include <Locker.h> #include "ServerFont.h" stru...
34.18
99
(translation_unit) "/*\n * Copyright 2005-2015, Haiku.\n * Distributed under the terms of the MIT License.\n *\n * Authors:\n * <NAME>, <EMAIL>\n * <NAME>, <<EMAIL>>\n * <NAME> <<EMAIL>>\n */\n#ifndef DESKTOP_SETTINGS_PRIVATE_H\n#define DESKTOP_SETTINGS_PRIVATE_H\n\n\n#include "DesktopSettings.h"\n\n#include <Locker...
724
35
{"language": "c", "success": true, "metadata": {"lines": 99, "avg_line_length": 34.18, "nodes": 427, "errors": 0, "source_hash": "27cccc86ac84bdf51928c350a6c8215aa26dc542ac38bdd5272770293db77a37", "categorized_nodes": 297}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,555
c
#include <stdlib.h> #include <k_config.h> #include "linked_list.h" void linked_list_init(linked_list_t **list){ (*list) = NULL; } err_t linked_list_is_empty(linked_list_t **list){ if((*list)->next==NULL) return RESP_OK; else return RESP_FAIL; } err_t linked_list_append(linked_list_t...
26.64
58
(translation_unit) "#include <stdlib.h>\n#include <k_config.h>\n#include "linked_list.h"\n\nvoid linked_list_init(linked_list_t **list){\n (*list) = NULL;\n}\n\nerr_t linked_list_is_empty(linked_list_t **list){\n if((*list)->next==NULL) return RESP_OK;\n else return RESP_FAIL;\n}\n\nerr_t...
547
0
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 26.64, "nodes": 356, "errors": 0, "source_hash": "7daf1a5cea1a46224f22f2526e30b1bb49ffa8bf75a096ff9298e4edc65157a7", "categorized_nodes": 215}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,556
c
#pragma once #include <torch/csrc/autograd/variable.h> #include <torch/csrc/jit/pybind.h> #include <torch/csrc/utils/hash.h> #include <ATen/ATen.h> #include <functional> #include <tuple> #include <vector> namespace torch { namespace jit { namespace python { struct IODescriptor { struct VariableMetadata { Vari...
32.53
104
(translation_unit) "#pragma once\n\n#include <torch/csrc/autograd/variable.h>\n#include <torch/csrc/jit/pybind.h>\n#include <torch/csrc/utils/hash.h>\n\n#include <ATen/ATen.h>\n#include <functional>\n#include <tuple>\n#include <vector>\n\nnamespace torch {\nnamespace jit {\nnamespace python {\n\nstruct IODescriptor {\n...
1,058
50
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 32.53, "nodes": 582, "errors": 0, "source_hash": "e508f689814157dc7b4a74c4ed1143c8724b582c280e0d7854fa7752fee07245", "categorized_nodes": 445}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
5,557
c
#ifndef ANDROID_SPEECH_DRIVER_LAD_H #define ANDROID_SPEECH_DRIVER_LAD_H #include "SpeechDriverInterface.h" #include "CFG_AUDIO_File.h" namespace android { class SpeechMessengerCCCI; class SpeechDriverLAD : public SpeechDriverInterface { public: virtual ~SpeechDriverLAD(); /** * get i...
33.11
147
(translation_unit) "#ifndef ANDROID_SPEECH_DRIVER_LAD_H\n#define ANDROID_SPEECH_DRIVER_LAD_H\n\n#include "SpeechDriverInterface.h"\n\n#include "CFG_AUDIO_File.h"\n\nnamespace android\n{\n\nclass SpeechMessengerCCCI;\n\nclass SpeechDriverLAD : public SpeechDriverInterface\n{\n public:\n virtual ~SpeechDriverLA...
817
61
{"language": "c", "success": true, "metadata": {"lines": 147, "avg_line_length": 33.11, "nodes": 543, "errors": 0, "source_hash": "95f24c49201ae92e7892e41a4e178ac6b4c36a598e6b79e98f89c140abfefa79", "categorized_nodes": 380}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
5,558
c
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2017-2019 The WaykiChain Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef TX_PRICE_MEDIAN_H #define TX_PRICE_MEDIAN_H #include "tx.h" #include "entities/c...
40.27
40
(translation_unit) "// Copyright (c) 2009-2010 <NAME>\n// Copyright (c) 2017-2019 The WaykiChain Developers\n// Distributed under the MIT/X11 software license, see the accompanying\n// file COPYING or http://www.opensource.org/licenses/mit-license.php.\n\n#ifndef TX_PRICE_MEDIAN_H\n#define TX_PRICE_MEDIAN_H\n\n#include...
369
20
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 40.27, "nodes": 209, "errors": 0, "source_hash": "8da51abcb934c013140ecb0ff6db2abcbd317d60ba4608054df2350cf3078563", "categorized_nodes": 150}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,559
c
#pragma once #include <Interpreters/CatBoostModel.h> #include <Interpreters/ExternalLoader.h> #include <common/logger_useful.h> #include <memory> namespace DB { class Context; /// Manages user-defined models. class ExternalModels : public ExternalLoader { public: using ModelPtr = std::shared_ptr<const IModel>;...
30.93
30
(translation_unit) "#pragma once\n\n#include <Interpreters/CatBoostModel.h>\n#include <Interpreters/ExternalLoader.h>\n#include <common/logger_useful.h>\n#include <memory>\n\n\nnamespace DB\n{\n\nclass Context;\n\n/// Manages user-defined models.\nclass ExternalModels : public ExternalLoader\n{\npublic:\n using Mode...
193
13
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 30.93, "nodes": 108, "errors": 0, "source_hash": "7d2017793754049b92c2903c045454ff8e1f0ec8e298a540caee5810ad80861f", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
5,560
c
// ----------------------------------------------------------------------------- // // Copyright (C) 2021 CERN & University of Surrey for the benefit of the // BioDynaMo collaboration. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compl...
38.23
35
(translation_unit) "// -----------------------------------------------------------------------------\n//\n// Copyright (C) 2021 CERN & University of Surrey for the benefit of the\n// BioDynaMo collaboration. All Rights Reserved.\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use...
176
9
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 38.23, "nodes": 102, "errors": 0, "source_hash": "227f243ac49deba109a41c1f77992a97f29aeb0403d91acd6cf5fb6b574fdbb0", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,561
c
// // BWT_Keychain.h // BWTKit // // Created by 彭利民 on 2017/7/26. // Copyright © 2017年 bwton. All rights reserved. // #import <Foundation/Foundation.h> // 暂时先放这里 // 单例 #undef AS_SINGLETON #define AS_SINGLETON( __class ) \ + (__class *)sharedInstance; #undef DEF_SINGLETON #define DEF_SINGLETON( __class ) \ + (__c...
25.68
28
(translation_unit) "//\n// BWT_Keychain.h\n// BWTKit\n//\n// Created by 彭利民 on 2017/7/26.\n// Copyright © 2017年 bwton. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n// 暂时先放这里\n// 单例\n#undef AS_SINGLETON\n#define AS_SINGLETON( __class ) \\n+ (__class *)sharedInstance;\n\n#undef DEF_SINGLETON\n#def...
112
11
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 25.68, "nodes": 72, "errors": 0, "source_hash": "3c32f9ed1a94af95d16d7a777c08c7bc2281af4158d8e02dc6f1a8717e0a93af", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Foundatio...
5,562
c
#pragma once #include "BaseModel.h" class Timer : public BaseModel { public: std::vector<uint64_t> Timers; uint64_t ticks; public: Timer(void); void reset(void); void reset(SimTimerIdx idx); void set(SimTimerIdx idx, uint_fast64_t val); void set_ticks(uint_fast64_t val); uint_fast64_t get_ticks(SimTimerId...
26.33
24
(translation_unit) "#pragma once\n#include "BaseModel.h"\n\nclass Timer :\n public BaseModel\n{\npublic:\n std::vector<uint64_t> Timers;\n uint64_t ticks;\n\npublic:\n Timer(void);\n void reset(void);\n void reset(SimTimerIdx idx);\n void set(SimTimerIdx idx, uint_fast64_t val);\n void set_ticks(uint_fast64_t val);\...
184
2
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 26.33, "nodes": 119, "errors": 0, "source_hash": "3a7242330979fb33d46dbc4de100e7a3af2f24b02d0e0b390774bae487c5accc", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
5,563
c
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #ifndef UTILS_C #define UTILS_C bool read_fp_into_fp(FILE *src, FILE *dst, ssize_t max_bytes) { // Maybe im using too many variables here, but ut's 5:59 AM so whatever. size_t read_bytes, written_bytes, to_be_read, total_read; size_t buffer_si...
26.45
84
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <stdbool.h>\n\n\n#ifndef UTILS_C\n#define UTILS_C\n\n\nbool read_fp_into_fp(FILE *src, FILE *dst, ssize_t max_bytes) {\n\n // Maybe im using too many variables here, but ut's 5:59 AM so whatever.\n size_t read_bytes, written_bytes, to_be_read, ...
636
0
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 26.45, "nodes": 401, "errors": 0, "source_hash": "faf6d440dc4c61dcc72092deee4c5582d724d9b3738b627d6e8e41d422c65233", "categorized_nodes": 259}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,564
c
#pragma once #include <stdio.h> #include <stdlib.h> #include <termios.h> void initTermios(int echo); void resetTermios(void); char getch();
19
7
(translation_unit) "#pragma once\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <termios.h>\n\nvoid initTermios(int echo);\n\nvoid resetTermios(void);\n\nchar getch();\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <stdio.h>\n" (#i...
42
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 19.0, "nodes": 32, "errors": 0, "source_hash": "041f85c8e00f7e2ce3a9b25eb8ad456366adb4bf3382ef503a2187fbc82d0844", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
5,565
c
/** * _strlen - length of a string. * @s :the pointer to a char variable * Return: length of string */ int _strlen(char *s) { char c; int i; i = 0; while ((c = *(s++)) != '\0') i++; return (i); }
13.79
14
(translation_unit) "/**\n * _strlen - length of a string.\n * @s :the pointer to a char variable\n * Return: length of string\n */\n\nint _strlen(char *s)\n{\n char c;\n int i;\n\n i = 0;\n while ((c = *(s++)) != '\0')\n i++;\n return (i);\n}\n" (comment) "/**\n * _strlen - length of a string.\n * @s :the pointer to...
68
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 13.79, "nodes": 44, "errors": 0, "source_hash": "8ab672afb3943dd9d4b170bf859211bf220ffca81b18cab9d395d0980c5e0043", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "in...
5,566
c
/** * Copyright (C) Mellanox Technologies Ltd. 2001-2014. ALL RIGHTS RESERVED. * * See file LICENSE for terms. */ #ifndef UCS_LOG_H_ #define UCS_LOG_H_ #ifdef HAVE_CONFIG_H # include "config.h" /* Defines UCS_MAX_LOG_LEVEL */ #endif #include <ucs/debug/log_def.h> /* Contains actual logger implementation */ #endif
25.33
12
(translation_unit) "/**\n* Copyright (C) Mellanox Technologies Ltd. 2001-2014. ALL RIGHTS RESERVED.\n*\n* See file LICENSE for terms.\n*/\n\n#ifndef UCS_LOG_H_\n#define UCS_LOG_H_\n\n#ifdef HAVE_CONFIG_H\n# include "config.h" /* Defines UCS_MAX_LOG_LEVEL */\n#endif\n\n#include <ucs/debug/log_def.h> /* Contains actual ...
24
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 25.33, "nodes": 17, "errors": 0, "source_hash": "7a77b78e3f0d4a82c6e5794a817c06e4c784196276e002cff41f5e65b3b575ea", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,567
c
/* * Copyright 2014, NICTA * * This software may be distributed and modified according to the terms of * the BSD 2-Clause license. Note that NO WARRANTY is provided. * See "LICENSE_BSD2.txt" for details. * * @TAG(NICTA_BSD) */ #ifndef __LIBSEL4_ARCH_EXCEPTION_IPC #define __LIBSEL4_ARCH_EXCEPTION_IPC /** * NO...
26.15
88
(translation_unit) "/*\n * Copyright 2014, NICTA\n *\n * This software may be distributed and modified according to the terms of\n * the BSD 2-Clause license. Note that NO WARRANTY is provided.\n * See "LICENSE_BSD2.txt" for details.\n *\n * @TAG(NICTA_BSD)\n */\n\n#ifndef __LIBSEL4_ARCH_EXCEPTION_IPC\n#define __LIBSEL...
353
0
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 26.15, "nodes": 230, "errors": 0, "source_hash": "f199551e80856b2d8efc451591d0f2aee4c58d0674fdde2b0a951a40b39771b3", "categorized_nodes": 194}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,568
c
/* See LICENSE file for copyright and license details. */ #include <xcb/xcb.h> #include <xcb/xcb_aux.h> #include <stdio.h> #include <stdlib.h> #include <err.h> #include "util.h" enum { ABSOLUTE = 0, RELATIVE = 1 }; static xcb_connection_t *conn; static xcb_screen_t *scr; static void usage(char *); static void re...
23.56
70
(translation_unit) "/* See LICENSE file for copyright and license details. */\n\n#include <xcb/xcb.h>\n#include <xcb/xcb_aux.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <err.h>\n\n#include "util.h"\n\nenum {\n ABSOLUTE = 0,\n RELATIVE = 1\n};\n\nstatic xcb_connection_t *conn;\nstatic xcb_screen_t *scr;\n\nsta...
700
0
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 23.56, "nodes": 457, "errors": 0, "source_hash": "91969fd2d10d1ac1f4331434bc0e2ffd7a8f1ea808a5d4ea89faf4c542956899", "categorized_nodes": 337}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,569
c
// Copyright (c) 2010 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_CHROMEOS_LOGIN_AUTH_ATTEMPT_STATE_RESOLVER_H_ #define CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_ATTEMPT_STATE_RESOLVER_H_ namespace c...
40.94
16
(translation_unit) "// Copyright (c) 2010 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_CHROMEOS_LOGIN_AUTH_ATTEMPT_STATE_RESOLVER_H_\n#define CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_ATTEMPT_STATE...
62
2
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 40.94, "nodes": 33, "errors": 0, "source_hash": "54579ce55ebd1e832261865f1fc45c6ded7c204bf473f142f5c94595b9923e81", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,570
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import <NeutrinoCore/NUGLObject.h> @class NSError, NSString; @interface NUGLShader : NUGLObject { long long _compilationStatus; NSError *_compilationError; long long _type;...
28.5
26
(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 <NeutrinoCore/NUGLObject.h>\n\n@class NSError, NSString;\n\n@interface NUGLShader : NUGLObject\n{\n long long _compilationStatus;\n NSError *_compi...
235
24
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 28.5, "nodes": 150, "errors": 0, "source_hash": "9ce633d450d4d87f526df0cdf49428be59aa9bfaa68c4e6da4128572e93bb8c9", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
5,571
c
/* * Copyright © 2019 <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 library is dist...
41.89
28
(translation_unit) "/*\n * Copyright © 2019 <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 later version.\...
50
1
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 41.89, "nodes": 40, "errors": 0, "source_hash": "6d2df048a5b769e9c5f05352016bbc9c82e5b8c8d87e9d0c5aacd36f2c1caa3d", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef _...
5,572
c
#pragma once #include <iostream> #include <iomanip> #include <vector> #define COMP_DEBUG #define STRM_DEFAULT \ std::right << std::setfill(' ') << std::nouppercase << std::dec #define STRM_HEX \ std::right << std::setfill('0') << std::uppercase << std::hex namespace compile { // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
17.79
106
(translation_unit) "#pragma once\n\n#include <iostream>\n#include <iomanip>\n#include <vector>\n\n#define COMP_DEBUG\n\n#define STRM_DEFAULT \\n std::right << std::setfill(' ') << std::nouppercase << std::dec\n\n#define STRM_HEX \\n std::right << std::setfill('0') << std::uppercase << std::hex\n\nnamespace compile {\n ...
426
13
{"language": "c", "success": true, "metadata": {"lines": 106, "avg_line_length": 17.79, "nodes": 240, "errors": 0, "source_hash": "f10f0c0794bb4f19dd4b7b73f7c377a815dbfb63d76d460d6ab159bfafe14dc5", "categorized_nodes": 192}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
5,573
c
/** * @author D'introno, <NAME> */ #ifndef SENDACK_H #define SENDACK_H //payload of the msg typedef nx_struct my_msg { nx_uint8_t msg_type; nx_uint16_t value; nx_uint16_t msg_counter; } my_msg_t; #define REQ 1 #define RESP 2 enum{ AM_MY_MSG = 6, }; #endif
14.65
17
(translation_unit) "/**\n * @author D'introno, <NAME>\n */\n\n#ifndef SENDACK_H\n#define SENDACK_H\n\n//payload of the msg\ntypedef nx_struct my_msg {\n nx_uint8_t msg_type;\n nx_uint16_t value;\n nx_uint16_t msg_counter;\n} my_msg_t;\n\n#define REQ 1\n#define RESP 2 \n\nenum{\nAM_MY_MSG = 6,\n};\n\n#endif\n" (co...
52
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 14.65, "nodes": 36, "errors": 0, "source_hash": "2dbc40a4222dba45558eb0850601fb04c882dd6dbc1957cd69a1a7558d10d5b1", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,574
c
/* vim: set tabstop=4 : */ #ifndef __febird_io_var_int_for_boost_serialization_h__ #define __febird_io_var_int_for_boost_serialization_h__ #if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif #include <assert.h> #include <boost/serialization/serialization.hpp> #include <boost/serialization/split...
23.71
112
(translation_unit) "/* vim: set tabstop=4 : */ \n#ifndef __febird_io_var_int_for_boost_serialization_h__ \n#define __febird_io_var_int_for_boost_serialization_h__ \n \n#if defined(_MSC_VER) && (_MSC_VER >= 1020) \n# pragma once \n#endif \n \n#include <assert.h> \n#include <boost/serialization/serialization.hpp> \n#incl...
853
50
{"language": "c", "success": true, "metadata": {"lines": 112, "avg_line_length": 23.71, "nodes": 545, "errors": 0, "source_hash": "3e2f639121d9c802897715dac2358335ab1fccd7d94a11f0b2280cf530b83302", "categorized_nodes": 393}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
5,575
c
/* Copyright (c) 2016-2018 <NAME> <<EMAIL>"> MIT License Copyright (c) 2018 simple */ /* * File: mathic.h * Author: thecarisma * * Created on Febuary 7, 2018, 3:23 AM */ #include "../../../simple/includes/simple.h" #include "core_dynamic_module.h" #ifdef _WIN32 #define SIMPLE_API __declspec(dl...
30.13
231
(translation_unit) "/* \n Copyright (c) 2016-2018 <NAME> <<EMAIL>"> \n MIT License Copyright (c) 2018 simple \n\n*/\n\n/* \n * File: mathic.h \n * Author: thecarisma\n *\n * Created on Febuary 7, 2018, 3:23 AM\n */\n\n#include "../../../simple/includes/simple.h"\n#include "core_dynamic_module.h"\n\n#ifdef _WIN3...
2,240
6
{"language": "c", "success": true, "metadata": {"lines": 231, "avg_line_length": 30.13, "nodes": 1284, "errors": 0, "source_hash": "16fa4f9d90b6a43d36285a806fcee4fb4936865fa312114d10b9fd278a1d86bc", "categorized_nodes": 892}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
5,576
c
#pragma once #include <frc/TimedRobot.h> #include <frc/smartdashboard/SmartDashboard.h> #include <frc/SPI.h> #include "AHRS.h" struct GyroData { double rawYaw = 0; double rawPitch = 0; double rawRoll = 0; double angularMomentum; double rotationalRate; }; class Gyro { public: void RobotInit()...
20.61
23
(translation_unit) "#pragma once\n\n#include <frc/TimedRobot.h>\n#include <frc/smartdashboard/SmartDashboard.h>\n#include <frc/SPI.h>\n#include "AHRS.h"\n\nstruct GyroData\n{\n double rawYaw = 0;\n double rawPitch = 0;\n double rawRoll = 0;\n double angularMomentum;\n double rotationalRate;\n};\n\nclass ...
142
10
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 20.61, "nodes": 85, "errors": 0, "source_hash": "2e7fdaf0bcb1c810dd92dd592cb02210629da4f09ac2b2dd15072232b8401ddb", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
5,577
c
// // ZHFMagicFireAttack.h // Objective-C_Design_Patterns // // Created by 周飞 on 2018/12/23. // Copyright © 2018年 周飞. All rights reserved. // #import "ZHFAttack.h" NS_ASSUME_NONNULL_BEGIN @interface ZHFMagicFireAttack : ZHFAttack @end NS_ASSUME_NONNULL_END
20.75
12
(translation_unit) "//\n// ZHFMagicFireAttack.h\n// Objective-C_Design_Patterns\n//\n// Created by 周飞 on 2018/12/23.\n// Copyright © 2018年 周飞. All rights reserved.\n//\n\n#import "ZHFAttack.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface ZHFMagicFireAttack : ZHFAttack\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//...
27
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 20.75, "nodes": 16, "errors": 0, "source_hash": "e53c215202f0e113f67b3f4d611032a37402487cc552133b17214c8647bff2fc", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "FAttack.h\...
5,578
c
#include <config.h> #include <common.h> #include <asm/hardware.h> #include <asm/io.h> #include <dataflash.h> int AT91F_GetMuxStatus(void) { /* Set in PIO mode */ writel(CONFIG_SYS_DATAFLASH_MMC_PIO, AT91C_BASE_PIOB->PIO_PER); /* Configure in output */ writel(CONFIG_SYS_DATAFLASH_MMC_PIO, AT91C_BASE_PIOB->PIO_OER);...
29.48
33
(translation_unit) "#include <config.h>\n#include <common.h>\n#include <asm/hardware.h>\n#include <asm/io.h>\n#include <dataflash.h>\n\nint AT91F_GetMuxStatus(void)\n{\n /* Set in PIO mode */\n writel(CONFIG_SYS_DATAFLASH_MMC_PIO, AT91C_BASE_PIOB->PIO_PER);\n /* Configure in output */\n writel(CONFIG_SYS_DATAFLASH_MMC_...
189
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 29.48, "nodes": 106, "errors": 0, "source_hash": "fdfa8115c6dd6aaf8213cc6e517bd1e0199fe282ccb6ba5d631542e8bd7bf1c8", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
5,579
c
/* * Copyright (C) 2014 Advanced Card Systems Ltd. All Rights Reserved. * * This software is the confidential and proprietary information of Advanced * Card Systems Ltd. ("Confidential Information"). You shall not disclose such * Confidential Information and shall use it only in accordance with the terms * of th...
36.04
27
(translation_unit) "/*\n * Copyright (C) 2014 Advanced Card Systems Ltd. All Rights Reserved.\n *\n * This software is the confidential and proprietary information of Advanced\n * Card Systems Ltd. ("Confidential Information"). You shall not disclose such\n * Confidential Information and shall use it only in accordanc...
67
8
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 36.04, "nodes": 40, "errors": 0, "source_hash": "d3fc4b1c41e49743dc82d509db47cb9ecfe2becc8a6a6be93d88520b20a324ea", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
5,580
c
/**------------------------------------------------------------------------- @file system_sam4e.h @brief CMSIS System initializations @author <NAME> @date June. 24, 2020 @license MIT License Copyright (c) 2020 I-SYST inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining ...
38.79
48
(translation_unit) "/**-------------------------------------------------------------------------\n@file system_sam4e.h\n\n@brief CMSIS System initializations\n\n\n@author <NAME>\n@date June. 24, 2020\n\n@license\n\nMIT License\n\nCopyright (c) 2020 I-SYST inc. All rights reserved.\n\nPermission is hereby granted, free ...
67
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 38.79, "nodes": 45, "errors": 0, "source_hash": "c148adcf159975cd3be2ff0afee82acc4f328733b2f559cf503ea5bb7f65bd2e", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,581
c
#include <raylib.h> #include "inputs.h" typedef bool (*checker_t)(); bool check_jump() { return IsKeyPressed(KEY_Z) || IsKeyPressed(KEY_UP); } static checker_t checkers[(int)ACTION_NUM] = { &check_jump, }; bool check_action(enum ActionType act) { return checkers[act](); }
22.25
12
(translation_unit) "#include <raylib.h>\n\n#include "inputs.h"\n\ntypedef bool (*checker_t)();\n\nbool check_jump() {\n return IsKeyPressed(KEY_Z) || IsKeyPressed(KEY_UP);\n}\n\nstatic checker_t checkers[(int)ACTION_NUM] = {\n &check_jump,\n};\n\nbool check_action(enum ActionType act) {\n return checkers[act]();\n}\...
102
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 22.25, "nodes": 60, "errors": 0, "source_hash": "8119d163c4aedfc8917337ffb16e13bd5cd9b30606b8963ef89a18f9fa601bb2", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,582
c
// // DTKExternalModuleProtocol.h // DTKExternalModule // // Created by 家琪 on 2020/12/10. // Copyright © 2020 DingTalk. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import <DTKExternalModule/DTKExternalDefines.h> /** @brief 模块注册,将模块注册进钉钉底座中。 @param name DTKExternalM...
27.23
71
(translation_unit) "//\n// DTKExternalModuleProtocol.h\n// DTKExternalModule\n//\n// Created by 家琪 on 2020/12/10.\n// Copyright © 2020 DingTalk. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n\n#import <DTKExternalModule/DTKExternalDefines.h>\n\n\n/**\n @brief 模块注册,将模块注册进...
225
20
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 27.23, "nodes": 148, "errors": 0, "source_hash": "b4d20ea9337d4cc7c1e08f61aa0edecce7935bff474dbf012042e91056d468e5", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "rt <Foun...
5,583
c
// // MGSFragariaTextViewDelegate.h // Fragaria // // Created by <NAME> on 2/22/15. // // /** * This protocol defines an interface for delegates that wish * to receive notifications from Fragaria's text view. **/ #pragma mark - MGSFragariaTextViewDelegate Protocol @protocol MGSFragariaTextViewDelegate <NSTextV...
30.5
22
(translation_unit) "//\n// MGSFragariaTextViewDelegate.h\n// Fragaria\n//\n// Created by <NAME> on 2/22/15.\n//\n//\n\n/**\n * This protocol defines an interface for delegates that wish\n * to receive notifications from Fragaria's text view.\n **/\n#pragma mark - MGSFragariaTextViewDelegate Protocol\n@protocol MGS...
43
7
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 30.5, "nodes": 25, "errors": 0, "source_hash": "f1af8a3638c91112b9c8b3e407ff35f09e9cdaac0f5d9b299b2a6348c24f137f", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ma...
5,584
c
/************** para compilar gcc -pedantic-errors -Wall -std=c99 labirinto.c -o labirinto para executar ./labirinto < pequeno.txt **************/ #include <stdio.h> #include <stdlib.h> //funcoes auxiliares void print_position (int x, int y); void print_maze (char **maze, int largura, int altura); //seu trabalho de...
23.21
131
(translation_unit) "/**************\npara compilar \ngcc -pedantic-errors -Wall -std=c99 labirinto.c -o labirinto\npara executar\n./labirinto < pequeno.txt\n**************/\n\n#include <stdio.h>\n#include <stdlib.h>\n\n//funcoes auxiliares\nvoid print_position (int x, int y);\nvoid print_maze (char **maze, int largura,...
1,120
0
{"language": "c", "success": true, "metadata": {"lines": 131, "avg_line_length": 23.21, "nodes": 690, "errors": 0, "source_hash": "781915201d2092e8a4c3a46b3970240241f8fc0ecfb998c8f3d210c04b1a28ac", "categorized_nodes": 480}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,585
c
/* Author: <NAME> (c) 1997 4.24 Algorithm Miller-Rabin probabilistic primality test. See "Handbook of Applied Cryptography" by <NAME> et al page 139. */ #include <ctype.h> #include <stdio.h> #include "lip.h" int Miller_Rabin(long t, verylong zn) { int value = 1; long i, j, s = 0; veryl...
22.57
77
(translation_unit) "/* \n Author: <NAME> (c) 1997 \n \n 4.24 Algorithm Miller-Rabin probabilistic primality \n test. See "Handbook of Applied Cryptography" by \n <NAME> et al page 139. \n*/ \n \n#include <ctype.h> \n#include <stdio.h> \n#include "lip.h" \n \nint Miller_Rabin(long t, verylong zn) \n{ \n int value ...
681
0
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 22.57, "nodes": 386, "errors": 0, "source_hash": "2ba80191432c6e40393c4e1903a5057fa2c0b43b655c8a3a4a9face137673f1d", "categorized_nodes": 284}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,586
c
#pragma once #include "gdrv.h" #include "maths.h" #include "zdrv.h" enum class VisualTypes : char { None = 0, Sprite = 1, Ball = 2 }; struct render_sprite_type_struct { rectangle_type BmpRect; gdrv_bitmap8* Bmp; zmap_header_type* ZMap; char UnknownFlag; VisualTypes VisualType; int16_t Depth; rectangle_type ...
35.08
65
(translation_unit) "#pragma once\n#include "gdrv.h"\n#include "maths.h"\n#include "zdrv.h"\n\nenum class VisualTypes : char\n{\n None = 0,\n Sprite = 1,\n Ball = 2\n};\n\nstruct render_sprite_type_struct\n{\n rectangle_type BmpRect;\n gdrv_bitmap8* Bmp;\n zmap_header_type* ZMap;\n char UnknownFlag;\n VisualTypes Visual...
594
2
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 35.08, "nodes": 385, "errors": 0, "source_hash": "6f9b7546d83d0a5a947d0583f6e63f0b274454accb26ac9beb542245d6d8f36d", "categorized_nodes": 252}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
5,587
c
// // env_Win10Sgx.c // Platform-specific code for windows 10 SGX user mode. // // Copyright (c) Microsoft Corporation. Licensed under the MIT license. // #include "precomp.h" VOID SYMCRYPT_CALL SymCryptCpuidExCallback( int cpuInfo[4], int function_id, int subfunction_id ); SYMCRYPT_CPU_FEATURES SYMCRYPT_...
25.59
191
(translation_unit) "// \n// env_Win10Sgx.c \n// Platform-specific code for windows 10 SGX user mode. \n// \n// Copyright (c) Microsoft Corporation. Licensed under the MIT license. \n// \n \n#include "precomp.h" \n \nVOID SYMCRYPT_CALL SymCryptCpuidExCallback( int cpuInfo[4], int function_id, int subfunction_id ); \n \n...
524
13
{"language": "c", "success": true, "metadata": {"lines": 191, "avg_line_length": 25.59, "nodes": 285, "errors": 0, "source_hash": "c978b6902d0fd132f232f0ef31cdb7446ae6c0fe7c7c159ab6fa10a3205bd89f", "categorized_nodes": 207}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,588
c
/* * ============================================================================ * Copyright (c) 2011 Marvell International, Ltd. All Rights Reserved * * Marvell Confidential * ============================================================================ */ /** * \...
31.64
198
(translation_unit) "/* \n * ============================================================================\n * Copyright (c) 2011 Marvell International, Ltd. All Rights Reserved\n * \n * Marvell Confidential\n * =================================================================...
613
0
{"language": "c", "success": true, "metadata": {"lines": 198, "avg_line_length": 31.64, "nodes": 437, "errors": 0, "source_hash": "f20777aa4b3f46245eb7a804c512c4df3f5b44353b35a840a7fdf3b6ecdc7bb5", "categorized_nodes": 292}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
5,589
c
// // SMRCircleProgressBar.h // SMRBaseCoreDemo // // Created by 丁治文 on 2019/7/8. // Copyright © 2019 sumrise. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN #define SMRCircleProgressToRadian(d) ((d)*M_PI)/180.0 @interface SMRCircleProgressBar : UIView /** 进度[0,1] */ @property (assign,...
35.47
38
(ERROR) "//\n// SMRCircleProgressBar.h\n// SMRBaseCoreDemo\n//\n// Created by 丁治文 on 2019/7/8.\n// Copyright © 2019 sumrise. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n#define SMRCircleProgressToRadian(d) ((d)*M_PI)/180.0\n\n@interface SMRCircleProgressBar : UIView\n\n/** 进度[0...
300
46
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 35.47, "nodes": 197, "errors": 0, "source_hash": "01a02cdc69343e60041624a0d49f1b0b389df34feb911ce2b9dc0e879561c855", "categorized_nodes": 111}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// SMRCircleProgress...
5,590
c
/* * OnDemandStore.h * * This source file is part of the FoundationDB open source project * * Copyright 2013-2018 Apple Inc. and the FoundationDB project authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obta...
31.56
43
(translation_unit) "/*\n * OnDemandStore.h\n *\n * This source file is part of the FoundationDB open source project\n *\n * Copyright 2013-2018 Apple Inc. and the FoundationDB project authors\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with ...
220
13
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 31.56, "nodes": 128, "errors": 0, "source_hash": "dfbaecb8b6829a90e265689b02a81d2361c06b8f3594c7b19137564a649c1dfa", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
5,591
c
#include <stdio.h> void disp(char *a, int b, int c) { printf("%s %d %d", a, b, c); } int main() { struct details { char name[20]; int age; int weight; }; struct details b1 = {"Subhadeep", 21, 70}; disp(b1.name, b1.age, b1.weight); return 0; }
16.35
17
(translation_unit) "#include <stdio.h>\nvoid disp(char *a, int b, int c)\n{\n printf("%s %d %d", a, b, c);\n}\nint main()\n{\n struct details\n {\n char name[20];\n int age;\n int weight;\n };\n struct details b1 = {"Subhadeep", 21, 70};\n disp(b1.name, b1.age, b1.weight);\n re...
121
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 16.35, "nodes": 70, "errors": 0, "source_hash": "6f4912f85e5c05c126d053917f3f514c0ea298c3e6f3046793aa95b8599b09e4", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,592
c
/*-----------------------------------------------------------------*-C-*--- * File: handc/hasht/generic.c * * Copyright (C)1997 <NAME> <<EMAIL>> * as part of the RScheme project, licensed for free use. * See <http://www.rscheme.org/> for the latest information. * * File version: ...
28.68
37
(translation_unit) "/*-----------------------------------------------------------------*-C-*---\n * File: handc/hasht/generic.c\n *\n * Copyright (C)1997 <NAME> <<EMAIL>>\n * as part of the RScheme project, licensed for free use.\n * See <http://www.rscheme.org/> for the latest information...
106
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 28.68, "nodes": 71, "errors": 0, "source_hash": "47cfd870569672e3506ce6bfe24959f77be143cd2c42e5f52625ffed47a86067", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,593
c
/* Show how to replace a continue statement by an equivalent goto statement. */ #include <stdio.h> int main() { int i; for (i = 0; i < 5; i++) { if (i % 2) continue; printf("%d ", i); } // 0 2 4 printf("\n"); for (i = 0; i < 5; i++) { if (i % 2) ...
20.5
20
(translation_unit) "/* Show how to replace a continue statement by an equivalent goto statement. */\n\n#include <stdio.h>\n\nint main() {\n int i;\n\n for (i = 0; i < 5; i++) {\n if (i % 2)\n continue;\n printf("%d ", i);\n }\n // 0 2 4\n\n printf("\n");\n\n for (i = 0; i < 5;...
133
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 20.5, "nodes": 71, "errors": 0, "source_hash": "697b28172bdf92d57601404c99a0ce2dfe7a74c43712db4de75307835fc33514", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
5,594
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import "APBehaviorSeqBaseData.h" @interface APBehaviorSeqClickData : APBehaviorSeqBaseData { } - (id)initWithSessionId:(id)arg1 bizId:(id)...
34.73
11
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.\n//\n\n#import "APBehaviorSeqBaseData.h"\n\n@interface APBehaviorSeqClickData : APBehaviorSeqBaseData\n{\n}\n\n- (id)initW...
87
7
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 34.73, "nodes": 47, "errors": 0, "source_hash": "018b542015fd6f499ca3f39425f291837962511d32066115d5facedd5ab8ef85", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
5,595
c
/****************************************************************************** ** COPYRIGHT NOTICE ** (c) 2012 The Johns Hopkins University Applied Physics Laboratory ** All rights reserved. ** ** This material may only be used, modified, or reproduced by...
30.07
112
(translation_unit) "/******************************************************************************\n ** COPYRIGHT NOTICE\n ** (c) 2012 The Johns Hopkins University Applied Physics Laboratory\n ** All rights reserved.\n **\n ** This material may only be used, m...
452
0
{"language": "c", "success": true, "metadata": {"lines": 112, "avg_line_length": 30.07, "nodes": 329, "errors": 0, "source_hash": "5e38c0eaff31d0946e949cbe78924f88e719086b41606332e9e7f1996c867ef0", "categorized_nodes": 201}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
5,596
c
/* * Copyright (C) 2010 <NAME> * Hochschule fuer Technik Rapperswil * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at your * option) any later vers...
28.38
42
(translation_unit) "/*\n * Copyright (C) 2010 <NAME>\n * Hochschule fuer Technik Rapperswil\n *\n * This program is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public License as published by the\n * Free Software Foundation; either version 2 of the License, or (at your...
64
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 28.38, "nodes": 42, "errors": 0, "source_hash": "843e26a29c9cdc3fa6be85ff8b9c971764074fecbd253a5f80fb999412739ddf", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,597
c
//----------------------------------------------------------------------------- //- asdkCustomCircleMgd.h #pragma once #include "../CustomRasterImageDef/AcDbMyRasterImageDef.h" //----------------------------------------------------------------------------- using namespace System ; using namespace Autodesk::AutoCAD::G...
35.37
35
(translation_unit) "//-----------------------------------------------------------------------------\n//- asdkCustomCircleMgd.h\n#pragma once\n\n#include "../CustomRasterImageDef/AcDbMyRasterImageDef.h"\n\n//-----------------------------------------------------------------------------\nusing namespace System ;\nusing na...
218
17
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 35.37, "nodes": 111, "errors": 0, "source_hash": "67184010c82006920abe6972899c5def6d8c0b9e2db6508cc164eeb839caab2e", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
5,598
c
#ifndef SYSROOT_SIGNAL_H_ #define SYSROOT_SIGNAL_H_ #ifdef __cplusplus extern "C" { #endif #include <features.h> #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE) || \ defined(_GNU_SOURCE) || defined(_BSD_SOURCE) #ifdef _GNU_SOURCE #define __ucontext ucontext #endif #define __NEE...
29.25
223
(translation_unit) "#ifndef SYSROOT_SIGNAL_H_\n#define SYSROOT_SIGNAL_H_\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n#include <features.h>\n\n#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE) || \\n defined(_GNU_SOURCE) || defined(_BSD_SOURCE)\n\n#ifdef _GNU_SOURCE\n#define __uconte...
1,526
0
{"language": "c", "success": true, "metadata": {"lines": 223, "avg_line_length": 29.25, "nodes": 1171, "errors": 0, "source_hash": "9f6b1cac6403d84173372e14edd313bfdc6655653b72d40b109b7207552be420", "categorized_nodes": 584}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
5,599