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
// // ZWAssistanceInviteProgressView.h // Ymd // // Created by 云免 on 2019/1/5. // Copyright © 2019年 云免. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface SQProgressView : UIView - (void)progressCurrentCount:(NSInteger)currentCount endCount:(NSInteger)endCount showAnimation:(BOOL...
26.62
13
(translation_unit) "//\n// ZWAssistanceInviteProgressView.h\n// Ymd\n//\n// Created by 云免 on 2019/1/5.\n// Copyright © 2019年 云免. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface SQProgressView : UIView\n\n- (void)progressCurrentCount:(NSInteger)currentCount endCount:(NSIn...
67
5
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 26.62, "nodes": 39, "errors": 0, "source_hash": "464f37a7a37805c51354c8e0476148386f94f91b0b5cc56c722cd3f60b1d298f", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Kit/UIKit...
14,900
c
/* * Copyright 2017 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
37.18
34
(translation_unit) "/*\n * Copyright 2017 Google LLC.\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 * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ap...
163
7
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 37.18, "nodes": 91, "errors": 0, "source_hash": "8456c61f1f94f3fcfc51b2bce5ad32c1663da00609ca917ab18f6dc22752d6e5", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,901
c
// // NSNumber+AJKit.h // Base64 // // Created by 徐结兵 on 2020/4/13. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface NSNumber (AJKit) @end NS_ASSUME_NONNULL_END
16
11
(translation_unit) "//\n// NSNumber+AJKit.h\n// Base64\n//\n// Created by 徐结兵 on 2020/4/13.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface NSNumber (AJKit)\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" (comment) "// NSNumber+AJKit.h" (comment) "// Base64" (comment) "...
25
5
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 16.0, "nodes": 16, "errors": 0, "source_hash": "32e6febb752dcb47a13631d559b06b31fa728fe2b1a01cf968aa1af399c60acf", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "t <Foundati...
14,902
c
#ifndef UTILS_H #define UTILS_H #include <WinSock2.h> #include <windows.h> namespace nsADDTO { HRESULT RegisterInprocServer(PCWSTR pszModule, const CLSID& clsid, PCWSTR pszFriendlyName, PCWSTR pszThreadModel); HRESULT UnregisterInprocServer(const CLSID& clsid); HRESULT RegisterShellExtOverlayIc...
37.26
19
(translation_unit) "#ifndef UTILS_H\n#define UTILS_H\n\n#include <WinSock2.h>\n#include <windows.h>\n\nnamespace nsADDTO\n{\n HRESULT RegisterInprocServer(PCWSTR pszModule, const CLSID& clsid, \n PCWSTR pszFriendlyName, PCWSTR pszThreadModel);\n\n HRESULT UnregisterInprocServer(const CLSID& clsid);\n\n ...
149
6
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 37.26, "nodes": 92, "errors": 0, "source_hash": "a217a371f97a53f9885f9f4d9a045a5a448c12f3a841db252a6d5f3af6dd7091", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,903
c
#pragma once #include "Graphics.h" #include <string> #include <memory> #include <filesystem> class Node; class Mesh; class ModelWindow; struct aiMesh; struct aiMaterial; struct aiNode; namespace n_SherbRendergraphpass { class RenderGraph; } class Model { public: Model( Graphics& gfx,const std::string& pathString,f...
29.94
34
(translation_unit) "#pragma once\n#include "Graphics.h"\n#include <string>\n#include <memory>\n#include <filesystem>\n\nclass Node;\nclass Mesh;\nclass ModelWindow;\nstruct aiMesh;\nstruct aiMaterial;\nstruct aiNode;\n\nnamespace n_SherbRendergraphpass\n{\n class RenderGraph;\n}\n\nclass Model\n{\npublic:\n Model( Grap...
329
23
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 29.94, "nodes": 200, "errors": 0, "source_hash": "e998ee413285c2ef97684e1ae5af8d79b831ef3f5dff9ccb4e24b82a8574dab9", "categorized_nodes": 144}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
14,904
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" #import "MQQRCodeReaderDelegate.h" @class NSString, UIViewController; @interface QQYPC2BQRCodeScanner : NSObject <MQQRCodeReaderDelegate> { UIViewController *_...
38.88
34
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n#import "MQQRCodeReaderDelegate.h"\n\n@class NSString, UIViewController;\n\n@interface QQYPC2BQRCodeScanner : NSObject <MQQRCodeReaderDel...
400
29
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 38.88, "nodes": 248, "errors": 0, "source_hash": "505d80c72c5a78301002c181ef6ebf6d1b4eaf9675fa3f52b2893ab7affef234", "categorized_nodes": 150}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
14,905
c
#pragma once #include "RE/S/Setting.h" #include "RE/S/SettingCollectionMap.h" namespace RE { class GameSettingCollection : public SettingCollectionMap<Setting> { public: inline static constexpr auto RTTI = RTTI_GameSettingCollection; virtual ~GameSettingCollection(); // 00 // override (SettingCollectionMa...
38.23
22
(translation_unit) "#pragma once\n\n#include "RE/S/Setting.h"\n#include "RE/S/SettingCollectionMap.h"\n\nnamespace RE\n{\n class GameSettingCollection : public SettingCollectionMap<Setting>\n {\n public:\n inline static constexpr auto RTTI = RTTI_GameSettingCollection;\n\n virtual ~GameSettingCollection(); // 00\n\n...
189
10
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 38.23, "nodes": 121, "errors": 0, "source_hash": "b0e9cf115686c8b1e9286d952c455e229240db18910a8898360f7fae2e1ce63d", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
14,906
c
/* Copyright (C) 2010-2019, The Regents of The University of Michigan. All rights reserved. This software was developed as part of the The Vulcan project in the Intelligent Robotics Lab under the direction of <NAME>, <EMAIL>. Use of this code is governed by an MIT-style License that can be found at "https://github...
34.48
40
(translation_unit) "/* Copyright (C) 2010-2019, The Regents of The University of Michigan.\n All rights reserved.\n\n This software was developed as part of the The Vulcan project in the Intelligent Robotics Lab\n under the direction of <NAME>, <EMAIL>. Use of this code is governed by an\n MIT-style License that can be...
97
4
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 34.48, "nodes": 57, "errors": 0, "source_hash": "367a208dcd1f489971afde2f087afcc9470a575a0c87b6f136517d5bb752609d", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,907
c
#pragma once #include "stdafx.h" template <class T> class CList { public: struct Node { Node* prev; std::unique_ptr<T> data; Node* next; }; template <bool IsConst> class CIterator { friend class CIterator<true>; friend class CList; public: using Iterator = CIterator<IsConst>; using value_type = ...
18.4
234
(translation_unit) "#pragma once\n#include "stdafx.h"\n\ntemplate <class T>\nclass CList\n{\npublic:\n struct Node\n {\n Node* prev;\n std::unique_ptr<T> data;\n Node* next;\n };\n\n template <bool IsConst>\n class CIterator\n {\n friend class CIterator<true>;\n friend class CList;\n\n public:\n using Iterator = ...
1,663
67
{"language": "c", "success": true, "metadata": {"lines": 234, "avg_line_length": 18.4, "nodes": 973, "errors": 0, "source_hash": "9bb931572ecb3dd3ad0ecd90fea5904f4615ba2f52bdf67f33185a816eaa62de", "categorized_nodes": 666}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
14,908
c
// // ISSSelectorChain.h // Part of InterfaCSS - http://www.github.com/tolo/InterfaCSS // // Copyright (c) <NAME>, Leafnode AB. // License: MIT (http://www.github.com/tolo/InterfaCSS/LICENSE) // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @class ISSSelector; @class ISSUIElementDetails; @class ISSS...
40.11
27
(ERROR) "//\n// ISSSelectorChain.h\n// Part of InterfaCSS - http://www.github.com/tolo/InterfaCSS\n//\n// Copyright (c) <NAME>, Leafnode AB.\n// License: MIT (http://www.github.com/tolo/InterfaCSS/LICENSE)\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n\n@class ISSSelector;\n@class ISSUIElem...
195
34
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 40.11, "nodes": 131, "errors": 0, "source_hash": "2c900b95cae35198b132a9c390f46a0d705b4e22556556f208305c57c93740c7", "categorized_nodes": 70}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// ISSSelectorChain.h...
14,909
c
/* Copyright (c) 2016 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* Atomic operations for x86 */ #ifndef __CROS_EC_ATOMIC_H #define __CROS_EC_ATOMIC_H #include "common.h" #include "util.h" #define ATOMIC_O...
42.46
24
(translation_unit) "/* Copyright (c) 2016 The Chromium OS 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\n/* Atomic operations for x86 */\n\n#ifndef __CROS_EC_ATOMIC_H\n#define __CROS_EC_ATOMIC_H\n\n#include "common.h"\n#inc...
218
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 42.46, "nodes": 165, "errors": 0, "source_hash": "d9e4e9d82bc587bd0b40f5ffac12e33cea6ae516cceda35367fda1ea487f8bd1", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,910
c
// MaiBo - BlockOut3000 // Copyright(c) 2015 <NAME> // // Distributed under the MIT Software License // See accompanying file LICENSE.txt or copy at // http://opensource.org/licenses/MIT // #pragma once // defines geometric primitives template <size_t N> using Primitive = std::array<yama::point3, N>; typedef Primiti...
33.47
38
(translation_unit) "// MaiBo - BlockOut3000\n// Copyright(c) 2015 <NAME>\n//\n// Distributed under the MIT Software License\n// See accompanying file LICENSE.txt or copy at\n// http://opensource.org/licenses/MIT\n//\n#pragma once\n\n// defines geometric primitives\n\ntemplate <size_t N>\nusing Primitive = std::array<ya...
324
30
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 33.47, "nodes": 191, "errors": 0, "source_hash": "9e5f7273b43927a9f58b5a71f5d75540d6d4825b9e624c7f7aadbaed51d27d94", "categorized_nodes": 124}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
14,911
c
#ifndef _FILE_SYSTEM_H_ #define _FILE_SYSTEM_H_ #include "types.h" #ifndef ASM #define FILE_NAME_MAX_LENGTH 32 // Constants that actually make no sense but just to // eliminate magic numbers. #define VAL_32 32 #define VAL_24 24 #define VAL_52 52 #define VAL_63 63 #define VAL_1023 1023 #define VAL_4...
28.53
81
(translation_unit) "#ifndef _FILE_SYSTEM_H_ \n#define _FILE_SYSTEM_H_ \n \n#include "types.h" \n \n#ifndef ASM \n \n#define FILE_NAME_MAX_LENGTH 32 \n \n// Constants that actually make no sense but just to \n// eliminate magic numbers. \n#define VAL_32 32 \n#define VAL_24 24 \n#define VAL_52 52 \n#define VAL_63 63 \n#...
451
0
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 28.53, "nodes": 329, "errors": 0, "source_hash": "90d8ece0502f69d306872e945d653eadfe1567e24d29cfb82d3bd1338fe6815c", "categorized_nodes": 185}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,912
c
#include "loader.h" #include <stdio.h> #include <stdlib.h> #include <string.h> static uint32_t avail_pid = 1; #define OPT_CALC "calc" #define OPT_ALLOC "alloc" #define OPT_FREE "free" #define OPT_READ "read" #define OPT_WRITE "write" static enum ins_opcode_t get_opcode(char *opt) { if (!strcmp(opt, OPT_CALC)) {...
21.63
95
(translation_unit) "#include "loader.h"\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\nstatic uint32_t avail_pid = 1;\n\n#define OPT_CALC "calc"\n#define OPT_ALLOC "alloc"\n#define OPT_FREE "free"\n#define OPT_READ "read"\n#define OPT_WRITE "write"\n\nstatic enum ins_opcode_t get_opcode(char *opt)\n{\...
792
0
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 21.63, "nodes": 468, "errors": 0, "source_hash": "7198b0833b568b537b6d3e243d31e787d2f8a52f4bd1e01c83db12b7095d9154", "categorized_nodes": 350}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,913
c
#ifndef CERT_TRANS_SERVER_JSON_OUTPUT_H_ #define CERT_TRANS_SERVER_JSON_OUTPUT_H_ #include <string> struct evhttp_request; class JsonObject; namespace cert_trans { namespace libevent { class Base; } // namespace libevent void SendJsonReply(libevent::Base* base, evhttp_request* req, int http_status, ...
27.89
19
(translation_unit) "#ifndef CERT_TRANS_SERVER_JSON_OUTPUT_H_\n#define CERT_TRANS_SERVER_JSON_OUTPUT_H_\n\n#include <string>\n\nstruct evhttp_request;\nclass JsonObject;\n\nnamespace cert_trans {\nnamespace libevent {\nclass Base;\n} // namespace libevent\n\n\nvoid SendJsonReply(libevent::Base* base, evhttp_request* re...
111
4
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 27.89, "nodes": 71, "errors": 0, "source_hash": "62fa341be301ad1b888fc3bca08e3d7c53fd3c2a5e82d562ec15dce04f90cd5a", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,914
c
// // FriendsTableViewController.h // ParseTwilioCloudModule // // Created by <NAME> on 11/2/12. // #import <AddressBookUI/AddressBookUI.h> #import <MessageUI/MessageUI.h> #import <Parse/Parse.h> @interface FriendsTableViewController : PFQueryTableViewController <ABPeoplePickerNavigationControllerDelegate> - (voi...
31.86
14
(translation_unit) "//\n// FriendsTableViewController.h\n// ParseTwilioCloudModule\n//\n// Created by <NAME> on 11/2/12.\n//\n\n#import <AddressBookUI/AddressBookUI.h>\n#import <MessageUI/MessageUI.h>\n#import <Parse/Parse.h>\n\n@interface FriendsTableViewController : PFQueryTableViewController <ABPeoplePickerNaviga...
79
9
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 31.86, "nodes": 49, "errors": 0, "source_hash": "d202350cdb4748b08b4f000fc27f4c6848238564b9049728d000d7548198da06", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
14,915
c
// Copyright 2016 The Streamer Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ...
35.97
37
(translation_unit) "// Copyright 2016 The Streamer Authors. All Rights Reserved.\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0...
176
10
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 35.97, "nodes": 101, "errors": 0, "source_hash": "5b28f7433e0c7904d9e925e29e836e0a6702851614b40d464df9984d44fb8e1f", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,916
c
#pragma once #include "Vector.h" #include "SharedPtr.h" #include "VeritasMath.h" #include "EngineCommons.h" #include "IndexedTriangleList.h" #define c_class Drawable class { GENERATED_DESC methods( VMMATRIX(*GetTransformXM)(void* self); void(*AddBind)(selfptr, shared_ptr(Bindable)* bindable); v...
20.15
20
(translation_unit) "#pragma once \n#include "Vector.h" \n#include "SharedPtr.h" \n#include "VeritasMath.h" \n#include "EngineCommons.h" \n#include "IndexedTriangleList.h" \n \n#define c_class Drawable \n \nclass \n{ \n GENERATED_DESC \n methods( \n VMMATRIX(*GetTransformXM)(void* self); \n void(*AddBind)(selfptr, sha...
134
1
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 20.15, "nodes": 83, "errors": 0, "source_hash": "9914f16b0cde9faf09b373e2ff5d02a4679890c9dc518daa16ca53c22a477cc1", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
14,917
c
int add_nine(int x);
20
1
(translation_unit) "int add_nine(int x);\n" (declaration) "int add_nine(int x);" (primitive_type) "int" (function_declarator) "add_nine(int x)" (identifier) "add_nine" (parameter_list) "(int x)" (() "(" (parameter_declaration) "int x" (primitive_type) "int" (ide...
12
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 20.0, "nodes": 8, "errors": 0, "source_hash": "f801537fee40648499dfd2023e1f80606ac06688be81f0b83096f73a0e298b6f", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "int add_nine(i...
14,918
c
#import <UIKit/UIKit.h> #import "AgendaInfo.h" @interface CalendarViewController : UITableViewController <UIActionSheetDelegate> @property (strong, nonatomic) AgendaInfo *agendaInfo; @property (strong, nonatomic) NSString *twitterText; @property (strong, nonatomic) IBOutlet UITableView *table; - (IBAction)openActi...
35.78
9
(translation_unit) "#import <UIKit/UIKit.h>\n#import "AgendaInfo.h"\n\n@interface CalendarViewController : UITableViewController <UIActionSheetDelegate> \n\n@property (strong, nonatomic) AgendaInfo *agendaInfo;\n@property (strong, nonatomic) NSString *twitterText;\n@property (strong, nonatomic) IBOutlet UITableView *ta...
84
15
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 35.78, "nodes": 64, "errors": 0, "source_hash": "8e279e58ec010938ec812bd75a856b50f64161e4d40e01ba2cb39397ae763652", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <U...
14,919
c
/** * \file * * uart write routines * * \author * * Anthony "Asterisk" Ambuehl * * interrupt routines which must be in HOME bank. handles received data from UART. * */ #include <stdlib.h> #include <string.h> #include "cc2430_sfr.h" #include "dev/leds.h" #include "dev/uart.h" static int (*uart0_inp...
24.52
60
(translation_unit) "/**\n * \file\n *\n * uart write routines\n *\n * \author\n * \n * Anthony "Asterisk" Ambuehl\n *\n * interrupt routines which must be in HOME bank. handles received data from UART.\n *\n */\n#include <stdlib.h>\n#include <string.h>\n\n#include "cc2430_sfr.h"\n\n#include "dev/leds.h"\n#includ...
265
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 24.52, "nodes": 159, "errors": 0, "source_hash": "a89fc95a5e7336c69fe32b2de3074d8ac7321c7621fc794723e72f69cf80e304", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
14,920
c
#pragma once #include "Mesh.h" #include "Transform.h" #include "Shader.h" #include <iostream> namespace orb { class Renderer { public: void draw(orb::Mesh& mesh, const orb::Transform& transform); void print(); void display(); protected: void initDefaultShader() { }; private: struct RenderElemen...
19.32
22
(translation_unit) "#pragma once\n\n#include "Mesh.h"\n#include "Transform.h"\n#include "Shader.h"\n\n#include <iostream>\n\nnamespace orb\n{\n class Renderer \n {\n public:\n void draw(orb::Mesh& mesh, const orb::Transform& transform);\n \n void print();\n\n void display();\n\n protected:\n void initDefaultShader...
147
6
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 19.32, "nodes": 77, "errors": 0, "source_hash": "e0ee216ca24106da48bdc6bf3aad7610d5ad59d03e39cea33e2de977cc9712bb", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
14,921
c
// // Created by chnlkw on 4/15/18. // #ifndef XUANWU_EVENT_H #define XUANWU_EVENT_H #include "cuda_utils.h" namespace Xuanwu { class EventBase { public: EventBase() = default; EventBase(const EventBase &) = delete; virtual ~EventBase() = default; virtual bool QueryFinishe...
24.18
28
(translation_unit) "//\n// Created by chnlkw on 4/15/18.\n//\n\n#ifndef XUANWU_EVENT_H\n#define XUANWU_EVENT_H\n\n#include "cuda_utils.h"\n\nnamespace Xuanwu {\n\n class EventBase {\n public:\n EventBase() = default;\n\n EventBase(const EventBase &) = delete;\n\n virtual ~EventBase() = defaul...
183
12
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 24.18, "nodes": 106, "errors": 0, "source_hash": "4669f5f9aa1a100d52859842cdac7ed68cdfae47bcee536ee26ce7716b30dbbc", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,922
c
/** @file * @brief Nonlinear Conjugate Gradient * * @details An implementation of the nonlinear CG algorithm, described in chapter 5 of NOCEDAL. * * The nonlinear version of the CG algorithms does not make any assumption about the objective function * (it only needs to be smooth). Also, it has a quite conc...
30.44
148
(translation_unit) "/** @file\n * @brief Nonlinear Conjugate Gradient\n * \n * @details An implementation of the nonlinear CG algorithm, described in chapter 5 of NOCEDAL.\n * \n * The nonlinear version of the CG algorithms does not make any assumption about the objective function \n * (it only needs to be smooth)....
1,529
102
{"language": "c", "success": true, "metadata": {"lines": 148, "avg_line_length": 30.44, "nodes": 941, "errors": 0, "source_hash": "1416a5531f4aac244fb250962faa71c8fbdf370611c2ca97b1a2484a1165eaf4", "categorized_nodes": 640}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "pragma...
14,923
c
/* ** EPITECH PROJECT, 2019 ** my_put_nbr ** File description: ** Display the passed number to stdout */ #include "my.h" int my_strncmp(const char *s1, const char *s2, int n) { for (int i = 0; i < n; i++){ if (s1[i] != s2[i]) return (s1[i] - s2[i]); } return (0); } int is_recognized(c...
21.72
74
(translation_unit) "/*\n** EPITECH PROJECT, 2019\n** my_put_nbr\n** File description:\n** Display the passed number to stdout\n*/\n\n#include "my.h"\n\nint my_strncmp(const char *s1, const char *s2, int n)\n{\n for (int i = 0; i < n; i++){\n if (s1[i] != s2[i])\n return (s1[i] - s2[i]);\n }\n ...
669
0
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 21.72, "nodes": 441, "errors": 0, "source_hash": "bc46bcccd5a93e0c9ccc4562cb06e4bbf8a7a1c3ea1c022f6328a64ac0e9bd23", "categorized_nodes": 286}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,924
c
#ifndef KMEANS_H_ #define KMEANS_H_ void K_Means ( char **subunits, // list of phonetic subunits struct config trainConfig, // training configuration settings struct modelo_HMM *HMM // modelos HMM das subunidades foneticas ); #endif /*KMEANS_H_*/
27.78
9
(translation_unit) "#ifndef KMEANS_H_\n#define KMEANS_H_\n\nvoid K_Means\n(\n char **subunits, // list of phonetic subunits\n struct config trainConfig, // training configuration settings \n struct modelo_HMM *HMM // modelos HMM das subunidades foneticas\n);\n\n#endif /*KMEANS_H_*/\n" (preproc_ifdef) "#ifndef...
41
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 27.78, "nodes": 31, "errors": 0, "source_hash": "818985efbe49d8e5c15049ab427c3117a8d75d90228bfcf8d478b2e8bb655fb8", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef K...
14,925
c
#ifndef ECCO_CPPOPTIONS_H #define ECCO_CPPOPTIONS_H C C CPP flags controlling which code is included in the files that C will be compiled. C ******************************************************************** C *** Adjoint Support Package *** C ***********************************...
44.03
34
(translation_unit) "#ifndef ECCO_CPPOPTIONS_H\n#define ECCO_CPPOPTIONS_H\n\nC\nC CPP flags controlling which code is included in the files that\nC will be compiled.\n\nC ********************************************************************\nC *** Adjoint Support Package ***\nC ******...
1,074
12
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 44.03, "nodes": 1030, "errors": 0, "source_hash": "3fb3ec2d7a74174030ab652559027d92b61908cc3edba6a0f18bfb67666827ae", "categorized_nodes": 559}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
14,926
c
/**************************************************************************** ** $Id: acmanifest.h,v 1.1 2008/11/05 21:16:28 leader Exp $ ** ** manifest.xml function header file of ** Ananas application library ** ** Created : 20031201 ** ** Copyright (C) 2003-2004 Leader InfoTech. All rights reserved. ** Copyright (C...
28.2
86
(translation_unit) "/****************************************************************************\n** $Id: acmanifest.h,v 1.1 2008/11/05 21:16:28 leader Exp $\n**\n** manifest.xml function header file of\n** Ananas application library\n**\n** Created : 20031201\n**\n** Copyright (C) 2003-2004 Leader InfoTech. All righ...
306
21
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 28.2, "nodes": 212, "errors": 0, "source_hash": "6e225d4cbbb6e6d0c192b2115af8cd720aa20dda5df3d1f30945eb5352cab0bd", "categorized_nodes": 144}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,927
c
#pragma once typedef int IdxType; enum MATRIX_UNRARY_OPERATIONS { UNARY_BASE = 0, UNARY_TRANSPOSE = 1, UNARY_MINUS = 2, UNARY_SQUARED = 3, UNARY_MASKED = 4, }; enum MATRIX_BINARY_OPERATIONS { BINARY_BASE = 0, BINARY_ADD = 1, BINARY_SUB = 2, BINARY_MATMUL = 3, BINARY_MATDIV = 4, BINARY_EMUL = 5, BINARY_ED...
19.98
65
(translation_unit) "#pragma once\n\ntypedef int IdxType;\n\nenum MATRIX_UNRARY_OPERATIONS\n{\n UNARY_BASE = 0,\n UNARY_TRANSPOSE = 1,\n UNARY_MINUS = 2,\n UNARY_SQUARED = 3,\n UNARY_MASKED = 4,\n};\n\nenum MATRIX_BINARY_OPERATIONS\n{\n BINARY_BASE = 0,\n BINARY_ADD = 1,\n BINARY_SUB = 2,\n BINARY_MATMUL = 3,\n BINARY_M...
269
0
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 19.98, "nodes": 207, "errors": 0, "source_hash": "a58d21b5e408e4cce84590ca16dd9a43013bc5bdc2406a39bf63717ca40c7f28", "categorized_nodes": 159}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
14,928
c
/* ebt_nflog * * Authors: * <NAME> <<EMAIL>> * * February, 2008 * * Based on: * ebt_ulog.c, (C) 2004, <NAME> <<EMAIL>> * libxt_NFLOG.c */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <getopt.h> #include "../include/ebtables_u.h" #include <linux/netfilter_bridge/ebt_nflog.h> enum { ...
28.21
152
(translation_unit) "/* ebt_nflog\n *\n * Authors:\n * <NAME> <<EMAIL>>\n *\n * February, 2008\n *\n * Based on:\n * ebt_ulog.c, (C) 2004, <NAME> <<EMAIL>>\n * libxt_NFLOG.c\n */\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <getopt.h>\n#include "../include/ebtables_u.h"\n#include <linux/n...
1,244
0
{"language": "c", "success": true, "metadata": {"lines": 152, "avg_line_length": 28.21, "nodes": 763, "errors": 0, "source_hash": "f7305ad6efb24e81fdc8ed99bd9c63099502d0908178d07f4787f16a5055d8f9", "categorized_nodes": 522}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,929
c
#ifndef ElectricManager_h #define ElectricManager_h #if defined(ARDUINO) && ARDUINO >= 100 #include "Arduino.h" #else #include "WProgram.h" #endif #include "BaseManager.h" #include "readManager.h" class ElectricManager : public BaseManager,public ReadManager { public: unsigned int m_maxCurrentValue = 0; ...
30.7
37
(translation_unit) "#ifndef ElectricManager_h\n#define ElectricManager_h\n\n#if defined(ARDUINO) && ARDUINO >= 100\n\n#include "Arduino.h"\n\n#else\n\n#include "WProgram.h"\n\n#endif\n#include "BaseManager.h"\n#include "readManager.h"\n\nclass ElectricManager : public BaseManager,public ReadManager\n{\n\n public:\n ...
291
5
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 30.7, "nodes": 212, "errors": 0, "source_hash": "d5d67af8fff263923a6d219a1fe0a3c0ca3e89fef96b94eba94a1325d2889c38", "categorized_nodes": 123}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,930
c
// Copyright (c) 2015-2018, The Bytecoin developers, The Zurocoin developers. // Licensed under the GNU Lesser General Public License. See LICENSE for details. #ifndef ASKPASSWORDDIALOG_H #define ASKPASSWORDDIALOG_H #include <QDialog> namespace Ui { class AskPasswordDialog; } namespace WalletGUI { class AskPasswor...
25.86
28
(translation_unit) "// Copyright (c) 2015-2018, The Bytecoin developers, The Zurocoin developers.\n// Licensed under the GNU Lesser General Public License. See LICENSE for details.\n\n#ifndef ASKPASSWORDDIALOG_H\n#define ASKPASSWORDDIALOG_H\n\n#include <QDialog>\n\nnamespace Ui {\nclass AskPasswordDialog;\n}\n\nnamespa...
150
9
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 25.86, "nodes": 85, "errors": 0, "source_hash": "87b855983af3ec885e75c973d79dda103f1be549908ddcbfc7161fbbf6c0ba63", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,931
c
#pragma once class SendTradeRequestSuccess : public LobbyServerPacket { public: explicit SendTradeRequestSuccess() : LobbyServerPacket(876) { //writeInt() } };
17.33
9
(translation_unit) "#pragma once\n\nclass SendTradeRequestSuccess : public LobbyServerPacket\n{\npublic:\n explicit SendTradeRequestSuccess() : LobbyServerPacket(876)\n {\n //writeInt()\n }\n};" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (function_definition) "class ...
38
3
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 17.33, "nodes": 17, "errors": 0, "source_hash": "60de64256f88abeabcd680d562eaf2b459463959af4a45e83ece92eeca5ba9ba", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
14,932
c
#ifndef __EVERDRIVE_H #define __EVERDRIVE_H #define ROM_LEN 0x4000000 // 64 meg #define DMA_BUFF_ADDR (ROM_LEN - 0x100000) #define EVERDRIVE_TO_CART 3 #define EVERDRIVE_FROM_CART 4 #define EVERDRIVE_STATUS_DMA_BUSY 0 #define EVERDRIVE_STATUS_DMA_TOUT 1 #define EVERDRIVE_STATUS_RECEIVE 3 #ifdef __cplusplus extern "...
29.94
36
(translation_unit) "#ifndef __EVERDRIVE_H\n#define __EVERDRIVE_H\n\n#define ROM_LEN 0x4000000 // 64 meg\n#define DMA_BUFF_ADDR (ROM_LEN - 0x100000)\n\n#define EVERDRIVE_TO_CART 3\n#define EVERDRIVE_FROM_CART 4\n\n#define EVERDRIVE_STATUS_DMA_BUSY 0\n#define EVERDRIVE_STATUS_DMA_TOUT 1\n#define EVERDRIVE_STATUS_RECEIVE...
232
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 29.94, "nodes": 181, "errors": 0, "source_hash": "b24a8d7b0a241e4a8e802c5f0d49bc5c848f7a368771ddf2049bdad3f0c125ce", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,933
c
// // Created by <NAME> on 24/06/2020. // #ifndef SDLTEST_SETTINGS_H #define SDLTEST_SETTINGS_H class Settings { }; #endif //SDLTEST_SETTINGS_H
13.6
10
(translation_unit) "//\n// Created by <NAME> on 24/06/2020.\n//\n\n#ifndef SDLTEST_SETTINGS_H\n#define SDLTEST_SETTINGS_H\n\n\nclass Settings {\n\n};\n\n\n#endif //SDLTEST_SETTINGS_H\n" (comment) "//" (comment) "// Created by <NAME> on 24/06/2020." (comment) "//" (preproc_ifdef) "#ifndef SDLTEST_SETTINGS_H\n#de...
20
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 13.6, "nodes": 9, "errors": 0, "source_hash": "86780f50a306c5437a8e9a28e1c7e5a4f43464ab09e2769b8e0cccfb63b36d49", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef SDL...
14,934
c
#ifndef CHARIORT_PROFTIMER_SYSCALLS_H #define CHARIORT_PROFTIMER_SYSCALLS_H #include <sys/syscall.h> #define __NR_prof_timers_control 388 #define __NR_prof_read 389 #define __NR_prof_write 390 #if __APPLE__ #define prof_timers_control(enable) 0 #define prof_read(fd, buf, count) 0 #define prof_wri...
37.56
16
(translation_unit) "#ifndef CHARIORT_PROFTIMER_SYSCALLS_H\n#define CHARIORT_PROFTIMER_SYSCALLS_H\n\n#include <sys/syscall.h>\n\n#define __NR_prof_timers_control 388\n#define __NR_prof_read 389\n#define __NR_prof_write 390\n\n#if __APPLE__\n\n#define prof_timers_control(enable) 0\n#define prof_read(fd...
95
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 37.56, "nodes": 73, "errors": 0, "source_hash": "218258e3da4cf6976efd7629b3f5e803c60066a7a1d0feeeef525050cefba78f", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,935
c
#ifndef FLEXIBLE_ASTAR_H #define FLEXIBLE_ASTAR_H // flexible_astar.h // // A* implementation that allows arbitrary combinations of // (weighted) heuristic functions and node expansion policies. // This implementation uses a binary heap for the open_ list // and a bit array for the closed_ list. // // TODO: is it bet...
24.24
328
(translation_unit) "#ifndef FLEXIBLE_ASTAR_H\n#define FLEXIBLE_ASTAR_H\n\n// flexible_astar.h\n//\n// A* implementation that allows arbitrary combinations of \n// (weighted) heuristic functions and node expansion policies.\n// This implementation uses a binary heap for the open_ list\n// and a bit array for the closed_...
2,707
55
{"language": "c", "success": true, "metadata": {"lines": 328, "avg_line_length": 24.24, "nodes": 1579, "errors": 0, "source_hash": "2498e914d1eda0195e572945752f6c6a7e2c1c6c85cb6b917f886098ab5d6b68", "categorized_nodes": 1134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#if...
14,936
c
// // FMSideBarController.h // FMBaseClass // // Created by FuXinMing on 2019/5/8. // Copyright © 2019 FuXinMing. All rights reserved. // #import <UIKit/UIKit.h> #import "FMSideBarAnimation.h" //打开侧边通知 UIKIT_EXTERN NSString *_Nonnull const PCDSideBarDidShowNotification; //关闭侧边通知 UIKIT_EXTERN NSString *_Nonnull c...
23.17
82
(translation_unit) "//\n// FMSideBarController.h\n// FMBaseClass\n//\n// Created by FuXinMing on 2019/5/8.\n// Copyright © 2019 FuXinMing. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "FMSideBarAnimation.h"\n\n//打开侧边通知\nUIKIT_EXTERN NSString *_Nonnull const PCDSideBarDidShowNotification;\n\n//关闭侧边通知...
311
51
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 23.17, "nodes": 209, "errors": 0, "source_hash": "df603200266b43e8159bf5c6c0aafb71e839f54371356b8e898522cf25161a3b", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import ...
14,937
c
#ifndef SKEW_HEAP_H #define SKEW_HEAP_H #include <stdbool.h> typedef int Element; struct TreeNode; typedef struct TreeNode* PtrToNode; typedef PtrToNode SkewHeap; typedef PtrToNode Position; struct TreeNode { Element element; PtrToNode leftChild; PtrToNode rightChild; }; SkewHeap skewHeapInsert(Element...
26.38
24
(translation_unit) "#ifndef SKEW_HEAP_H\n#define SKEW_HEAP_H\n\n#include <stdbool.h>\n\ntypedef int Element;\n\nstruct TreeNode;\ntypedef struct TreeNode* PtrToNode;\ntypedef PtrToNode SkewHeap;\ntypedef PtrToNode Position;\n\nstruct TreeNode {\n Element element;\n PtrToNode leftChild;\n PtrToNode rightChild;\...
155
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 26.38, "nodes": 109, "errors": 0, "source_hash": "0453105d30d8cab05dcd8e303bfd0f818a8ca4aa5354ae03857d3c88526f8268", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,938
c
/// Copyright (C) 2016 Cyberhaven /// Copyright (C) 2020, TrussLab@University of California, Irvine. /// Authors: <NAME> <<EMAIL>> /// Copyrights of all contributions belong to their respective owners. /// /// This library is free software; you can redistribute it and/or /// modify it under the terms of the GNU Libr...
33.87
269
(translation_unit) "/// Copyright (C) 2016 Cyberhaven\n/// Copyright (C) 2020, TrussLab@University of California, Irvine.\n/// Authors: <NAME> <<EMAIL>> \n/// Copyrights of all contributions belong to their respective owners.\n///\n/// This library is free software; you can redistribute it and/or\n/// modify it under...
2,234
0
{"language": "c", "success": true, "metadata": {"lines": 269, "avg_line_length": 33.87, "nodes": 1315, "errors": 0, "source_hash": "ec27bc627826c97e970e9b06d16c9d47af674e736291f60ed5762149459c87c7", "categorized_nodes": 988}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
14,939
c
// // Created by <NAME> on 2021/4/25. // #ifndef EXPLOSION_VULKANRENDERPASS_H #define EXPLOSION_VULKANRENDERPASS_H #include <vulkan/vulkan.h> #include <Explosion/RHI/Common/RenderPass.h> namespace Explosion::RHI { class VulkanDriver; class VulkanDevice; class VulkanImageView; class VulkanRenderPass...
28.84
25
(translation_unit) "//\n// Created by <NAME> on 2021/4/25.\n//\n\n#ifndef EXPLOSION_VULKANRENDERPASS_H\n#define EXPLOSION_VULKANRENDERPASS_H\n\n#include <vulkan/vulkan.h>\n\n#include <Explosion/RHI/Common/RenderPass.h>\n\nnamespace Explosion::RHI {\n class VulkanDriver;\n class VulkanDevice;\n class VulkanImag...
133
5
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 28.84, "nodes": 75, "errors": 0, "source_hash": "c0c141d950931e61d0d7bf61ca7fd7eb3e868519334176a388155eb6ed173814", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,940
c
#pragma option push -b -a8 -pc -A- /*P_O_Push*/ /* * I N I T O I D . H * * Define macros to be used for initializing MAPI OID's * * Copyright 1986-1999 Microsoft Corporation. All Rights Reserved. */ #define MAPI_PREFIX 0x2A,0x86,0x48,0x86,0xf7,0x14,0x03 #ifdef _MAC #undef DEFINE_OID_1 #define DEFINE...
49.03
33
(translation_unit) "#pragma option push -b -a8 -pc -A- /*P_O_Push*/\n/*\n * I N I T O I D . H\n *\n * Define macros to be used for initializing MAPI OID's\n *\n * Copyright 1986-1999 Microsoft Corporation. All Rights Reserved.\n */\n\n#define MAPI_PREFIX 0x2A,0x86,0x48,0x86,0xf7,0x14,0x03\n\n#ifdef _MAC\n#un...
164
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 49.03, "nodes": 116, "errors": 0, "source_hash": "e3e8e23272ef56a41d103517b336adcecb613fd5a68dfe86fef160668077f66c", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
14,941
c
#include <stdint.h> #include <CUnit/Basic.h> #include "probe.h" #include "test_probe.h" #define PROBE_MGR_SIZE 1024 void TestProbeMgrCreate() { ProbeMgr *mgr = ProbeMgrCreate(PROBE_MGR_SIZE); CU_ASSERT(mgr != NULL); CU_ASSERT(mgr->probes != NULL); CU_ASSERT(mgr->probesNum == 0); CU_ASSERT(mgr->s...
27.71
59
(translation_unit) "#include <stdint.h>\n#include <CUnit/Basic.h>\n\n#include "probe.h"\n#include "test_probe.h"\n\n#define PROBE_MGR_SIZE 1024\n\nvoid TestProbeMgrCreate()\n{\n ProbeMgr *mgr = ProbeMgrCreate(PROBE_MGR_SIZE);\n\n CU_ASSERT(mgr != NULL);\n CU_ASSERT(mgr->probes != NULL);\n CU_ASSERT(mgr->pro...
579
0
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 27.71, "nodes": 365, "errors": 0, "source_hash": "bd7621c65162b1f87295c5b351ec834f27e12eb96c6fb108013cbe2fc18d6e08", "categorized_nodes": 237}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,942
c
#pragma once #include <vector> #include <string> #include <imgui.h> #include "mvStandardWindow.h" #include "mvPythonParser.h" namespace Marvel { class mvDocWindow : public mvStandardWindow { public: static mvStandardWindow* GetWindow(); void render(bool& show) override; private: mvDocWindow(); ~mvD...
27.89
64
(translation_unit) "#pragma once\n\n#include <vector>\n#include <string>\n#include <imgui.h>\n\n#include "mvStandardWindow.h"\n#include "mvPythonParser.h"\n\nnamespace Marvel {\n\n class mvDocWindow : public mvStandardWindow\n {\n\n public:\n\n static mvStandardWindow* GetWindow();\n\n void render(bool& show) overrid...
697
54
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 27.89, "nodes": 417, "errors": 0, "source_hash": "094e8a72f8d352ed4f6ded496c0836d02fd4288d835d93b4f754722a3abf5967", "categorized_nodes": 245}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
14,943
c
// // MTRGNativePromoBanner.h // myTargetSDK 5.14.4 // // Created by Timur on 2/12/18. // Copyright (c) 2018 Mail.Ru Group. All rights reserved. // #import <MyTargetSDK/MTRGNativeBanner.h> @class MTRGNativePromoCard; NS_ASSUME_NONNULL_BEGIN /** @discussion Data model for a promo banner. */ @interface MTRGNative...
25.64
36
(translation_unit) "//\n// MTRGNativePromoBanner.h\n// myTargetSDK 5.14.4\n//\n// Created by Timur on 2/12/18.\n// Copyright (c) 2018 Mail.Ru Group. All rights reserved.\n//\n\n#import <MyTargetSDK/MTRGNativeBanner.h>\n\n@class MTRGNativePromoCard;\n\nNS_ASSUME_NONNULL_BEGIN\n\n/**\n @discussion Data model for a prom...
143
18
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 25.64, "nodes": 92, "errors": 0, "source_hash": "262309e5d60f005243ae94354f111b59edcf1760e96abfde4853aec86fd95342", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
14,944
c
#include <stdio.h> #include <stdlib.h> #include "waiter.h" #include "priority_queue.h" #include "command.h" pthread_cond_t waiter_wakeup; void* waiter_thread(void* id) { int ret; pthread_condattr_t wakeup_attrs; ret = pthread_condattr_init(&wakeup_attrs); ret |= pthread_condattr_setclock(&wakeup_attrs, CLOCK_MONO...
29.5
38
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include "waiter.h"\n#include "priority_queue.h"\n#include "command.h"\n\npthread_cond_t waiter_wakeup;\n\nvoid* waiter_thread(void* id) {\n int ret;\n pthread_condattr_t wakeup_attrs;\n ret = pthread_condattr_init(&wakeup_attrs);\n ret |= pthread_condattr_se...
323
1
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 29.5, "nodes": 170, "errors": 0, "source_hash": "eed9911bf781b6b3e8c7023f81d965680320362477cb4803de100323118219d7", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
14,945
c
/* * This file is part of GreatFET */ #include "i2c_bus.h" void i2c_bus_start(i2c_bus_t* const bus, const void* const config) { bus->start(bus, config); } void i2c_bus_stop(i2c_bus_t* const bus) { bus->stop(bus); } void i2c_bus_transfer( i2c_bus_t* const bus, const uint_fast8_t slave_address, const uint8_t* ...
24.61
18
(translation_unit) "/*\n * This file is part of GreatFET\n */\n\n#include "i2c_bus.h"\n\nvoid i2c_bus_start(i2c_bus_t* const bus, const void* const config) {\n bus->start(bus, config);\n}\n\nvoid i2c_bus_stop(i2c_bus_t* const bus) {\n bus->stop(bus);\n}\n\nvoid i2c_bus_transfer(\n i2c_bus_t* const bus,\n const uint_fas...
150
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 24.61, "nodes": 81, "errors": 0, "source_hash": "8efc2141926382825b3ea29eb415dfae4ba8db16cff3b2becca6c591c0a647cc", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
14,946
c
#include <common.h> static void message(const char *msg) { uint8_t pj = ((state.entities[0].pos.j+0x80)>>8) - map.pos.j; IN_MODULE( popup, PAGE_B, if (pj>16) { largePopupInitCanvas(pj-12); } else { largePopupInitCanvas(pj+1); } largePopupTextProperties.y = 2; largePopupTextProperties.x = 10; lar...
23.51
176
(translation_unit) "#include <common.h>\n\n\nstatic void message(const char *msg) {\n uint8_t pj = ((state.entities[0].pos.j+0x80)>>8) - map.pos.j;\n IN_MODULE( popup, PAGE_B,\n if (pj>16) {\n largePopupInitCanvas(pj-12);\n } else {\n largePopupInitCanvas(pj+1);\n }\n \n largePopupTextProperties.y = 2;\n large...
1,441
12
{"language": "c", "success": true, "metadata": {"lines": 176, "avg_line_length": 23.51, "nodes": 826, "errors": 0, "source_hash": "cb09ed4c1a26c01d545c45b45552b5b472ac899fb9e9514bf54361b116c972c4", "categorized_nodes": 623}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,947
c
#include <std.h> #include "road.h" inherit ROAD; void create() { ::create(); set_exits(([ "northeast" : PATH+"road14", "southwest" : PATH+"road16", ])); }
14.45
11
(translation_unit) "#include <std.h>\n#include "road.h"\ninherit ROAD;\n\nvoid create()\n{\n ::create();\n set_exits(([\n "northeast" : PATH+"road14",\n "southwest" : PATH+"road16",\n ]));\n}\n" (preproc_include) "#include <std.h>\n" (#include) "#include" (system_lib_string) "<std.h>" (preproc_inc...
76
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 14.45, "nodes": 35, "errors": 0, "source_hash": "3bc3370f092a7f7f0fd6ccee9277e8bc9909bd1c381ff7b998cbd828fdf1b0ee", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
14,948
c
#import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface Json : NSObject +(id)getJSONObjectWithData:(NSData *)data; @end NS_ASSUME_NONNULL_END
24.83
6
(translation_unit) "#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface Json : NSObject\n\n+(id)getJSONObjectWithData:(NSData *)data;\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (preproc_call) "#import <Foundation/Foundation.h>\n" (preproc_directive) "#import" (preproc_arg) "<Foundation/Foundat...
40
5
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 24.83, "nodes": 28, "errors": 0, "source_hash": "28b0e877aa09cb2ff0aa67487ab0f5a320d62c3abba5eed872a3b7b7c463d95e", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
14,949
c
#ifdef WITH_MODULES #ifndef MATCHER_MODULE_STORE_H #define MATCHER_MODULE_STORE_H #include <uthash.h> #include "mongoc-matcher-op-modules-private.h" #include "matcher-module-between.h" #include "matcher-module-math.h" #include "matcher-module-ether.h" #include "matcher-module-ip.h" #include "matcher-module-disco.h" #i...
26.24
21
(translation_unit) "#ifdef WITH_MODULES\n#ifndef MATCHER_MODULE_STORE_H\n#define MATCHER_MODULE_STORE_H\n#include <uthash.h>\n\n#include "mongoc-matcher-op-modules-private.h"\n#include "matcher-module-between.h"\n#include "matcher-module-math.h"\n#include "matcher-module-ether.h"\n#include "matcher-module-ip.h"\n#inclu...
89
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 26.24, "nodes": 53, "errors": 0, "source_hash": "eead17735c5f8acc05c4080fd14b565054d23a3f6e1f63ea1b54fa2e10c55009", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef W...
14,950
c
/* * Copyright (c) 2013, infinit.io * * This software is provided "as is" without warranty of any kind, * either expressed or implied, including but not limited to the * implied warranties of fitness for a particular purpose. * * See the LICENSE file for more information on the terms and * conditions. */ #ifn...
41.2
25
(translation_unit) "/*\n * Copyright (c) 2013, infinit.io\n *\n * This software is provided "as is" without warranty of any kind,\n * either expressed or implied, including but not limited to the\n * implied warranties of fitness for a particular purpose.\n *\n * See the LICENSE file for more information on the terms a...
176
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 41.2, "nodes": 130, "errors": 0, "source_hash": "252bc4d26eb8caf1549595bd7af508a719ec163e4584d084a13971c81ce49dec", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,951
c
/* * SPDX-License-Identifier: GPL-2.0+ * * based on: cmd_jffs2.c * * Add support for a CRAMFS located in RAM */ /* * CRAMFS support */ #include <common.h> #include <command.h> #include <malloc.h> #include <linux/list.h> #include <linux/ctype.h> #include <jffs2/jffs2.h> #include <jffs2/load_kernel.h> #include...
26.33
174
(translation_unit) "/*\n * SPDX-License-Identifier: GPL-2.0+\n *\n * based on: cmd_jffs2.c\n *\n * Add support for a CRAMFS located in RAM\n */\n\n\n/*\n * CRAMFS support\n */\n#include <common.h>\n#include <command.h>\n#include <malloc.h>\n#include <linux/list.h>\n#include <linux/ctype.h>\n#include <jffs2/jffs2.h>\n#...
1,253
2
{"language": "c", "success": true, "metadata": {"lines": 174, "avg_line_length": 26.33, "nodes": 809, "errors": 0, "source_hash": "4c63af492ea51547a311c50d711eeb18ceed39eaad73ad9c7c5301b8649e3938", "categorized_nodes": 555}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,952
c
// // FMPAttachButtonItem.h // FMPFeedbackForm // // Created by <NAME> on 10.02.2020. // Copyright © 2020 MacPaw. All rights reserved. // @import Cocoa; NS_ASSUME_NONNULL_BEGIN @class FMPAttachButtonItem; @protocol FMPAttachButtonItemDelegate <NSObject> - (void)attachButtonItemDidReceiveClick:(FMPAttachButtonIt...
30.17
18
(translation_unit) "//\n// FMPAttachButtonItem.h\n// FMPFeedbackForm\n//\n// Created by <NAME> on 10.02.2020.\n// Copyright © 2020 MacPaw. All rights reserved.\n//\n\n@import Cocoa;\n\nNS_ASSUME_NONNULL_BEGIN\n\n@class FMPAttachButtonItem;\n\n@protocol FMPAttachButtonItemDelegate <NSObject>\n- (void)attachButtonIte...
103
18
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 30.17, "nodes": 70, "errors": 0, "source_hash": "4a45d871c0cf9edad67b7566fe000265c38b48cea760033084e71aebeeae368a", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "i", "parent": nu...
14,953
c
#include "wait.h" void wait(void) { return; }
11
4
(translation_unit) "#include "wait.h"\n\nvoid wait(void) {\n return;\n}\n" (preproc_include) "#include "wait.h"\n" (#include) "#include" (string_literal) ""wait.h"" (") """ (string_content) "wait.h" (") """ (function_definition) "void wait(void) {\n return;\n}" (primitive_type) "void...
22
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 11.0, "nodes": 11, "errors": 0, "source_hash": "da2cc7478334c23c99ccc698141fa55e568fb22685f9b6877af2050a193fa832", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include ...
14,954
c
/* ========================================================================= queue - The MIT License (MIT) Copyright (c) 2016 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in t...
28.71
150
(translation_unit) "/* =========================================================================\n queue -\n\n The MIT License (MIT)\n\n Copyright (c) 2016 <NAME>\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the "...
978
0
{"language": "c", "success": true, "metadata": {"lines": 150, "avg_line_length": 28.71, "nodes": 611, "errors": 0, "source_hash": "9a05a290b852c58d69ae7d9be3b7189e79d43bbdcb9b318315cb54f03690823d", "categorized_nodes": 404}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,955
c
// // SetServicePermission.h // applesimutils // // Created by <NAME> (Wix) on 02/04/2017. // Copyright © 2017 Wix. All rights reserved. // #import <Foundation/Foundation.h> @interface SetServicePermission : NSObject + (BOOL)isSimulatorReadyForPersmissions:(NSString*)simulatorId; + (BOOL)setPermisionStatus:(NSSt...
38.75
12
(translation_unit) "//\n// SetServicePermission.h\n// applesimutils\n//\n// Created by <NAME> (Wix) on 02/04/2017.\n// Copyright © 2017 Wix. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface SetServicePermission : NSObject\n\n+ (BOOL)isSimulatorReadyForPersmissions:(NSString*)simulatorId;\...
98
15
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 38.75, "nodes": 57, "errors": 0, "source_hash": "d6dca25b9413ac23a77a58a7596fbb8819a5682c5702af1795e109d12822521c", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
14,956
c
#include <ansi.h> #include "duan.h" inherit NPC; inherit F_MASTER; mixed ask_skill1(); void create() { set_name("古篤誠", ({ "<NAME>", "gu", "ducheng" })); set("title", "大理國護衞" ); set("nickname", HIY "忠心耿耿" NOR); set("long", "他是大理國四大護衞之一。\n"); set("gender", "男性"); set("ag...
34.31
129
(translation_unit) "#include <ansi.h>\n#include "duan.h"\n\ninherit NPC;\ninherit F_MASTER;\n\nmixed ask_skill1();\n\nvoid create()\n{\n set_name("古篤誠", ({ "<NAME>", "gu", "ducheng" }));\n set("title", "大理國護衞" );\n set("nickname", HIY "忠心耿耿" NOR);\n set("long", "他是大理國四大護衞之一。\n");\n se...
1,510
17
{"language": "c", "success": true, "metadata": {"lines": 129, "avg_line_length": 34.31, "nodes": 624, "errors": 0, "source_hash": "cfad9c1dfcf1c17c5ce06854f6d7c89e3a85f09bfc6806e16fb85635d6133915", "categorized_nodes": 485}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,957
c
#ifndef MCVerticesAnalyzer_h #define MCVerticesAnalyzer_h /** \class MCVerticesAnalyzer * ---------------------------------------------------------------------- * MCVerticesAnalyzer * --------- * Summary: pileup vertex analyzer * * ---------------------------------------------------------------------- * Author:...
33.08
73
(translation_unit) "#ifndef MCVerticesAnalyzer_h\n#define MCVerticesAnalyzer_h\n\n/** \class MCVerticesAnalyzer\n * ----------------------------------------------------------------------\n * MCVerticesAnalyzer\n * ---------\n * Summary: pileup vertex analyzer\n *\n * ----------------------------------------------------...
493
29
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 33.08, "nodes": 289, "errors": 0, "source_hash": "6dc0e74a68564f847d82b340db12cbc9a1cec0e1ae08d5d6657dfa52d1476070", "categorized_nodes": 201}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,958
c
#pragma once #include "headers.h" #include "Scope.h" /** * The symbol table data structure keeps track of the method local scopes, class * scope and the object scope. Singleton. */ class SymbolTable { private: public: SymbolTable(); std::string getVariableType(const std::string& name); };
20.5
14
(translation_unit) "#pragma once\n\n#include "headers.h"\n#include "Scope.h"\n\n/**\n * The symbol table data structure keeps track of the method local scopes, class\n * scope and the object scope. Singleton.\n */\nclass SymbolTable\n{\nprivate:\npublic:\n SymbolTable();\n\n std::string getVariableType(const std:...
59
2
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 20.5, "nodes": 25, "errors": 0, "source_hash": "4cfa517b2ed266d975fbc828dd3ca9ba2d2381c08093e933104236ab9b792436", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
14,959
c
#ifndef TEXTUREMANAGER_HPP #define TEXTUREMANAGER_HPP #include "common.h" #include <SFML/Graphics.hpp> #include <iostream> #include <map> #include <string> enum class TextureType { Background, SolidTile, SoftTile, EmptyTile, TestTile, MenuBackground, BombPointer, TrianglePointer, Sk...
20.9
42
(translation_unit) "#ifndef TEXTUREMANAGER_HPP\n#define TEXTUREMANAGER_HPP\n\n#include "common.h"\n\n#include <SFML/Graphics.hpp>\n\n#include <iostream>\n#include <map>\n#include <string>\n\nenum class TextureType\n{\n Background,\n SolidTile,\n SoftTile,\n EmptyTile,\n TestTile,\n MenuBackground,\n B...
242
17
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 20.9, "nodes": 131, "errors": 0, "source_hash": "100f944a8977f0bd0679e2cb8f7badba2fab33839c164ec0c38c9828c23508ec", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef TEXTURE...
14,960
c
#ifndef CONNECTION_H #define CONNECTION_H struct Connection { double connection_weight; double connection_delta_weight; }; #endif
15.75
8
(translation_unit) "#ifndef CONNECTION_H\n#define CONNECTION_H\n\nstruct Connection\n{\n double connection_weight;\n double connection_delta_weight;\n};\n\n#endif\n" (preproc_ifdef) "#ifndef CONNECTION_H\n#define CONNECTION_H\n\nstruct Connection\n{\n double connection_weight;\n double connection_delta_weight;\n}...
23
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 15.75, "nodes": 16, "errors": 0, "source_hash": "6a232bd8af893b30bebc962bbf3c7fc01fd4be4d1dba91a5e95e303e6a77fe75", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef C...
14,961
c
#ifndef PPM_READ_H_ #define PPM_READ_H_ struct ppm_pixel { unsigned char red; unsigned char green; unsigned char blue; }; extern struct ppm_pixel** read_ppm(const char* filename, int* w, int* h); #endif
22.22
9
(translation_unit) "#ifndef PPM_READ_H_\n#define PPM_READ_H_\n\nstruct ppm_pixel {\n unsigned char red;\n unsigned char green;\n unsigned char blue;\n};\n\nextern struct ppm_pixel** read_ppm(const char* filename, int* w, int* h);\n\n#endif\n" (preproc_ifdef) "#ifndef PPM_READ_H_\n#define PPM_READ_H_\n\nstruct ppm_...
68
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 22.22, "nodes": 53, "errors": 0, "source_hash": "9c2fff6538dc02bc1b20a149cdff5141065910c200cd443225fc8ade5f00c621", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef P...
14,962
c
// // WSViewController.h // IntercomDemo // // Created by zsh on 2020/3/26. // Copyright © 2020 zsh. All rights reserved. // #import <UIKit/UIKit.h> #import <MBProgressHUD/MBProgressHUD.h> #import <SocketRocket/SocketRocket.h> #import <SVProgressHUD/SVProgressHUD.h> #import <AVFoundation/AVFoundation.h> #import <M...
30.81
47
(translation_unit) "//\n// WSViewController.h\n// IntercomDemo\n//\n// Created by zsh on 2020/3/26.\n// Copyright © 2020 zsh. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import <MBProgressHUD/MBProgressHUD.h>\n#import <SocketRocket/SocketRocket.h>\n#import <SVProgressHUD/SVProgressHUD.h>\n#import <AVFound...
148
8
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 30.81, "nodes": 99, "errors": 0, "source_hash": "64298dbffefd34da6c510b4a5228ca0f767761a0cdfa2ff5b6d77ad421890499", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
14,963
c
#import <SenTestingKit/SenTestingKit.h> @class RoutingHTTPServer; @interface RoutingHTTPServerTests : SenTestCase { RoutingHTTPServer *http; } @end
23.83
6
(translation_unit) "#import <SenTestingKit/SenTestingKit.h>\n@class RoutingHTTPServer;\n\n@interface RoutingHTTPServerTests : SenTestCase {\n RoutingHTTPServer *http;\n}\n\n@end\n" (preproc_call) "#import <SenTestingKit/SenTestingKit.h>\n" (preproc_directive) "#import" (preproc_arg) "<SenTestingKit/SenTesting...
32
7
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 23.83, "nodes": 21, "errors": 0, "source_hash": "f560c40454125fedd5f68930f995833e334471910575b3e30803bd8302877920", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <S...
14,964
c
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "secrng.h" #ifdef XP_WIN #include <windows.h> #include <time.h> static BOOL CurrentClockTickTime(LPDWOR...
34.84
127
(translation_unit) "/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://mozilla.org/MPL/2.0/. */\n\n#include "secrng.h"\n\n#ifdef XP_WIN\n#include <windows.h>\n#include <time.h>\n\nstatic BO...
1,094
0
{"language": "c", "success": true, "metadata": {"lines": 127, "avg_line_length": 34.84, "nodes": 630, "errors": 0, "source_hash": "93d773edfab9ab577fffe1b0fec687aa8cdcee373b27eca39408264ce7184936", "categorized_nodes": 489}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,965
c
#include "unp.h" int main(int argc, char **argv){ int sockfd; struct sockaddr_in servaddr, cliaddr; sockfd = Socket(AF_INET, SOCK_DGRAM, 0); bzero(&servaddr, sizeof(servaddr)); servaddr.sin_family = AF_INET; servaddr.sin_addr.s_addr = htonl(INADDR_ANY); servaddr.sin_port = htons(SERV_PORT); Bind(so...
26.6
15
(translation_unit) "#include "unp.h"\n\nint main(int argc, char **argv){\n\n int sockfd;\n \n struct sockaddr_in servaddr, cliaddr;\n \n sockfd = Socket(AF_INET, SOCK_DGRAM, 0);\n \n bzero(&servaddr, sizeof(servaddr));\n\n servaddr.sin_family = AF_INET;\n servaddr.sin_addr.s_addr = htonl(INADDR_ANY);\n servaddr.sin...
164
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 26.6, "nodes": 98, "errors": 0, "source_hash": "a3fc9f39a1927cf9d2d2821224550e488c6f1b8fb7d33128c6a70e0b97b4a701", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
14,966
c
#ifndef CHANGESPEEDSTATE_H #define CHANGESPEEDSTATE_H #include "State.h" /* * State which keeps the lane but change the car speed based on input acceleration */ class ChangeSpeedState : public State { public: ChangeSpeedState(const RoadOptions &options, double acceleration); std::vector<VehiclePosition> gene...
32.47
17
(translation_unit) "#ifndef CHANGESPEEDSTATE_H\n#define CHANGESPEEDSTATE_H\n\n#include "State.h"\n\n/*\n * State which keeps the lane but change the car speed based on input acceleration\n */\n\nclass ChangeSpeedState : public State {\npublic:\n ChangeSpeedState(const RoadOptions &options, double acceleration);\n std...
116
9
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 32.47, "nodes": 62, "errors": 0, "source_hash": "302d878878d683345cbf7f9fc664b3893be27c3145e12c103524d9c523b4ca5b", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,967
c
/* * csv.h * * Created on: Jul 30, 2018 * Author: sujiwo */ #ifndef _CSV_H_ #define _CSV_H_ #include <iostream> #include <fstream> #include <boost/tokenizer.hpp> #include <string> #include <vector> #include <set> #include <exception> #include <sstream> typedef std::vector<std::vector<std::string>> Strin...
21.97
115
(translation_unit) "/*\n * csv.h\n *\n * Created on: Jul 30, 2018\n * Author: sujiwo\n */\n\n#ifndef _CSV_H_\n#define _CSV_H_\n\n#include <iostream>\n#include <fstream>\n#include <boost/tokenizer.hpp>\n#include <string>\n#include <vector>\n#include <set>\n#include <exception>\n#include <sstream>\n\n\ntypedef std:...
968
38
{"language": "c", "success": true, "metadata": {"lines": 115, "avg_line_length": 21.97, "nodes": 555, "errors": 0, "source_hash": "e2e542c0c1256001469e7ca552bf6e7cd81e83ebf5bc1980658bf2ef10c091af", "categorized_nodes": 387}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
14,968
c
#pragma once #ifndef MANGOHUD_LOGGING_H #define MANGOHUD_LOGGING_H #include <iostream> #include <vector> #include <fstream> #include <chrono> #include <thread> #include <condition_variable> #include "timing.hpp" #include "overlay_params.h" using namespace std; struct logData{ double fps; uint64_t frametime; f...
26.32
63
(translation_unit) "#pragma once\n#ifndef MANGOHUD_LOGGING_H\n#define MANGOHUD_LOGGING_H\n\n#include <iostream>\n#include <vector>\n#include <fstream>\n#include <chrono>\n#include <thread>\n#include <condition_variable>\n\n#include "timing.hpp"\n\n#include "overlay_params.h"\n\nusing namespace std;\nstruct logData{\n ...
470
14
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 26.32, "nodes": 299, "errors": 0, "source_hash": "1cd54f85b3d33e4c30cc46f73142ab4d518322b8dc46c68917d1d3c40408b578", "categorized_nodes": 211}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
14,969
c
#pragma once #include "imgui/imgui.h" #include <vector> #include <string> class Editor; class Assets { public: Assets(Editor *editor); virtual ~Assets(); Editor *editor; void TickUI(bool* p_open = NULL); void LoadAsset(std::string file); private: std::vector<std::string> m_selectedMeshes; std::vector<std::st...
22
19
(translation_unit) "#pragma once\n#include "imgui/imgui.h"\n\n#include <vector>\n#include <string>\n\nclass Editor;\n\nclass Assets\n{\npublic:\n Assets(Editor *editor);\n virtual ~Assets();\n\n Editor *editor;\n void TickUI(bool* p_open = NULL);\n void LoadAsset(std::string file);\nprivate:\n std::vector<std::string> ...
163
7
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 22.0, "nodes": 105, "errors": 0, "source_hash": "0b98cd128c9bade4459cc0384faf1d6c2b2fd0dd62df906c6bbe202d2f3ad92b", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
14,970
c
#ifndef JACE_PEER_H #define JACE_PEER_H #include "jace/OsDep.h" #include "jace/Namespace.h" #include "jace/Jace.h" #include "jace/JClass.h" BEGIN_NAMESPACE(jace) /** * The base class for all Jace Peers. * * Peers should never be instantiated or called directly by any code. * Rather, Peers are created, destroyed,...
26.95
79
(translation_unit) "#ifndef JACE_PEER_H\n#define JACE_PEER_H\n\n#include "jace/OsDep.h"\n#include "jace/Namespace.h"\n#include "jace/Jace.h"\n#include "jace/JClass.h"\n\nBEGIN_NAMESPACE(jace)\n\n/**\n * The base class for all Jace Peers.\n *\n * Peers should never be instantiated or called directly by any code.\n * Rat...
211
10
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 26.95, "nodes": 116, "errors": 0, "source_hash": "cd5f1c6a2c5569b08a120bc5c524c478ba2cbd299ff030c730e1ecfb2333b620", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,971
c
#ifndef S_SNG_H__ #define S_SNG_H__ #include "kmsnddev.h" #ifdef __cplusplus extern "C" { #endif enum { SNG_TYPE_SN76496, /* TI SN76496 (TI TMS9919 VDP) */ SNG_TYPE_GAMEGEAR /* SEGA custom VDP */ }; KMIF_SOUND_DEVICE *SNGSoundAlloc(Uint32 sng_type); #ifdef __cplusplus } #endif #endif /* S_SNG_H__ */
19.2
15
(translation_unit) "#ifndef S_SNG_H__\n#define S_SNG_H__\n\n#include "kmsnddev.h"\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\nenum {\n SNG_TYPE_SN76496, /* TI SN76496 (TI TMS9919 VDP) */\n SNG_TYPE_GAMEGEAR /* SEGA custom VDP */\n};\n\nKMIF_SOUND_DEVICE *SNGSoundAlloc(Uint32 sng_type);\n\n#ifdef __cplusplus\n}\n#end...
60
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 19.2, "nodes": 40, "errors": 0, "source_hash": "75f54362a991f260760d5f3647ba05f235a56e489dbef3d186b39e9f22ad0e3d", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef S...
14,972
c
#ifndef Calculate_H_ #define Calculate_H_ class Calculate { public : // Constructors Calculate(double* resPtr, char operation, double firstNumber, double secondNumber); Calculate(double* resPtr, char operation, double firstNumber); Calculate(double* resPtr...
30
25
(translation_unit) "#ifndef Calculate_H_\n#define Calculate_H_\n\n class Calculate {\n\n public :\n\n // Constructors\n Calculate(double* resPtr, char operation, double firstNumber, double secondNumber);\n Calculate(double* resPtr, char operation, double firstNumber);\n ...
181
5
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 30.0, "nodes": 120, "errors": 0, "source_hash": "73bbf2df126c714623cd0053ab386539eba59f04306381ba40507a5c49046452", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,973
c
#include "threads/thread.h" #include "lib/kernel/list.h" /*vv Creating struct to hold info about frames*/ struct frame { uint32_t *frame_ptr; struct thread* owner; struct sup_page_entry* aux; void *physical_frame; struct list_elem elem; }; /* Frame table - holds info about frames */ struct list frame_table_list; ...
25.45
22
(translation_unit) "#include "threads/thread.h"\n#include "lib/kernel/list.h"\n\n\n\n/*vv Creating struct to hold info about frames*/\nstruct frame\n{\nuint32_t *frame_ptr;\nstruct thread* owner;\nstruct sup_page_entry* aux;\nvoid *physical_frame;\nstruct list_elem elem;\n};\n\n/* Frame table - holds info about frames ...
100
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 25.45, "nodes": 69, "errors": 0, "source_hash": "4a0cc8aac83f244879de575e3832e185d3e3166f7bd0718641377bf6f15dc992", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
14,974
c
/*- * Copyright 2012 <NAME> * All rights reserved * * Redistribution and use in source and binary forms, with or without * modification, are permitted providing that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and t...
27.64
158
(translation_unit) "/*-\n * Copyright 2012 <NAME>\n * All rights reserved\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted providing that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n * notice, t...
1,178
0
{"language": "c", "success": true, "metadata": {"lines": 158, "avg_line_length": 27.64, "nodes": 688, "errors": 0, "source_hash": "3885218a13d54b8b3b41188135e0b1596f45d8553715d7c7631e2c3c55629e55", "categorized_nodes": 486}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,975
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "PBCodable.h" #import "NSCopying.h" __attribute__((visibility("hidden"))) @interface GEOTrafficBoundingBox : PBCodable <NSCopying> { double _east; double _north; dou...
25.9
41
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "PBCodable.h"\n\n#import "NSCopying.h"\n\n__attribute__((visibility("hidden")))\n@interface GEOTrafficBoundingBox : PBCodable <NSCopying>\n{\n double ...
377
38
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 25.9, "nodes": 247, "errors": 0, "source_hash": "c2e967e73b2b77d42f8425fa69e6b1e83110f46565e07a7929780dab8bf38890", "categorized_nodes": 150}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
14,976
c
#pragma once #ifndef _DEBUG_UTILS_ #define _DEBUG_UTILS_ #include <cstdlib> #include "window/Window.h" #include "input/UserInput.h" #include "utility/Timer.h" #include "vulkan/Renderer.h" #include "input/ArcBallCamera.h" #include <glm/gtc/matrix_transform.hpp> #include "imgui/imgui.h" #include "imgui/imgui_impl_glfw....
23.64
25
(translation_unit) "#pragma once\n\n#ifndef _DEBUG_UTILS_\n#define _DEBUG_UTILS_\n\n#include <cstdlib>\n#include "window/Window.h"\n#include "input/UserInput.h"\n#include "utility/Timer.h"\n#include "vulkan/Renderer.h"\n#include "input/ArcBallCamera.h"\n#include <glm/gtc/matrix_transform.hpp>\n#include "imgui/imgui.h"\...
123
2
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 23.64, "nodes": 78, "errors": 0, "source_hash": "b9b92c66afb07efb34ec1ea0936c0a557988e604dd021d4f7cc4ff5b4a9cfd10", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
14,977
c
/* conditions.h * Header for condition handler. * * Wireshark - Network traffic analyzer * By <NAME> <<EMAIL>> * Copyright 1998 <NAME> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; ...
34.8
127
(translation_unit) "/* conditions.h\n * Header for condition handler.\n *\n * Wireshark - Network traffic analyzer\n * By <NAME> <<EMAIL>>\n * Copyright 1998 <NAME>\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * as published by t...
246
0
{"language": "c", "success": true, "metadata": {"lines": 127, "avg_line_length": 34.8, "nodes": 165, "errors": 0, "source_hash": "adcbd37b755da2b2530ca0798eecd68a4d8c7fbbcfce7a2ecfdb73e5cc69ef5f", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,978
c
/* Copyright (c) 2015 "Naftoreiclag" https://github.com/Naftoreiclag * * Distributed under the Apache License Version 2.0 (http://www.apache.org/licenses/) * See accompanying file LICENSE */ #ifndef COMPONENTSERIALIZER_H #define COMPONENTSERIALIZER_H #include "json/json.h" #include "NREntitySystem.h" #include "RI...
34.57
23
(translation_unit) "/* Copyright (c) 2015 "Naftoreiclag" https://github.com/Naftoreiclag\n *\n * Distributed under the Apache License Version 2.0 (http://www.apache.org/licenses/)\n * See accompanying file LICENSE\n */\n\n#ifndef COMPONENTSERIALIZER_H\n#define COMPONENTSERIALIZER_H\n\n#include "json/json.h"\n#include "...
187
9
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 34.57, "nodes": 110, "errors": 0, "source_hash": "f8c0eef38e1103337a92016a5ede0233fa852ecf23dba187a84cfeaf5932e61c", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,979
c
/* Si7021 Temperature Library for Particle Devices By: <NAME> Particle Date: May 10, 2018 */ #ifndef Si7021_MultiWire_h #define Si7021_MultiWire_h #include "Particle.h" /****************Si7021 Definitions***************************/ #define ADDRESS 0x40 #define TEMP_MEASURE_HOLD 0xE3 #define HUMD_MEASURE...
23.5
52
(translation_unit) "/*\n Si7021 Temperature Library for Particle Devices\n By: <NAME>\n Particle\n Date: May 10, 2018\n*/\n\n#ifndef Si7021_MultiWire_h\n#define Si7021_MultiWire_h\n\n#include "Particle.h"\n\n/****************Si7021 Definitions***************************/\n\n#define ADDRESS 0x40\n\n#define TEMP_MEA...
237
0
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 23.5, "nodes": 162, "errors": 0, "source_hash": "8f6af6b1e89a4f79b946733e395816869bcc423515d8608472f04fbfe3fba089", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,980
c
//------------------------------------------------------------------------------ /* This file is part of rippled: https://github.com/ripple/rippled Copyright (c) 2012, 2013 Ripple Labs Inc. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby ...
42.02
66
(translation_unit) "//------------------------------------------------------------------------------\n/*\n This file is part of rippled: https://github.com/ripple/rippled\n Copyright (c) 2012, 2013 Ripple Labs Inc.\n\n Permission to use, copy, modify, and/or distribute this software for any\n purpose with ...
188
8
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 42.02, "nodes": 105, "errors": 0, "source_hash": "1f175d2e59e96a419ff3b8e924fe497682c675d2d1dc7a46e5b69558181f52c8", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,981
c
// // SMSService.h // SMSCountryApi // // Created by <NAME> on 03/10/16. // Copyright © 2016 SMS Country. All rights reserved. // #import <Foundation/Foundation.h> #import "SendSMSRequest.h" #import "SendSMSResponse.h" #import "SMSCountryApi.h" #import "CompletionBlocks.h" typedef void (^SendSMSSuccessBlock)(Send...
30.55
20
(translation_unit) "//\n// SMSService.h\n// SMSCountryApi\n//\n// Created by <NAME> on 03/10/16.\n// Copyright © 2016 SMS Country. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "SendSMSRequest.h"\n#import "SendSMSResponse.h"\n#import "SMSCountryApi.h"\n#import "CompletionBlocks.h"\n\ntypede...
114
9
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 30.55, "nodes": 68, "errors": 0, "source_hash": "e9d6f8a34c6ef9314972bff318ddeabc8476de4a7046d14b0c7839a0825da221", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
14,982
c
#include <stdio.h> #include <string.h> void scale_features(double *data, int *N, int *D, double *offset, double *divisor) { int i, d; for(i = 0; i < *N; i++) { for(d = 0; d < *D; d++) data[i + *N * d] = (data[i + *N * d] + offset[d]) / divisor[d]; } }
25.18
11
(translation_unit) "#include <stdio.h>\n#include <string.h>\n\nvoid scale_features(double *data, int *N, int *D, double *offset, double *divisor)\n{\n int i, d;\n\n for(i = 0; i < *N; i++)\n {\n for(d = 0; d < *D; d++)\n data[i + *N * d] = (data[i + *N * d] + offset[d]) / divisor[d];\n }\n...
140
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 25.18, "nodes": 103, "errors": 0, "source_hash": "b5142c085dd32055626af954c2cc537ca72b853eb90d91e2a7d6b5e6c55128fb", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
14,983
c
#ifndef _XCROSCPP_PUBLISHER_LINK_H_ #define _XCROSCPP_PUBLISHER_LINK_H_ #include "ros/xcroscpp_common.h" #include "ros/transport_hints.h" #include "ros/header.h" #include "ros/serialized_message.h" #include <boost/thread/mutex.hpp> #include <boost/shared_array.hpp> #include <boost/weak_ptr.hpp> #include <boost/enable...
32.45
64
(translation_unit) "#ifndef _XCROSCPP_PUBLISHER_LINK_H_\n#define _XCROSCPP_PUBLISHER_LINK_H_\n\n#include "ros/xcroscpp_common.h"\n#include "ros/transport_hints.h"\n#include "ros/header.h"\n#include "ros/serialized_message.h"\n\n#include <boost/thread/mutex.hpp>\n#include <boost/shared_array.hpp>\n#include <boost/weak_p...
477
26
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 32.45, "nodes": 273, "errors": 0, "source_hash": "05dfb7b217882457491af2485a0af12e1b762b684b976c25532df966b99df625", "categorized_nodes": 200}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,984
c
#include <stdio.h> #include <limits.h> #include "whereami.h" #include "test.h" __attribute__((noinline)) void whereami__test() { char path[PATH_MAX]; ssize_t error; if ((error = whereami(path, PATH_MAX)) < 0) { printf("[test] error: %ld\n", error); } else { printf("[test] %s\n", path); } }
19
15
(translation_unit) "#include <stdio.h>\n#include <limits.h>\n#include "whereami.h"\n#include "test.h"\n\n__attribute__((noinline))\nvoid whereami__test()\n{\n char path[PATH_MAX];\n ssize_t error;\n\n if ((error = whereami(path, PATH_MAX)) < 0) {\n printf("[test] error: %ld\n", error);\n } else {\n printf("[test] %s\...
107
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 19.0, "nodes": 56, "errors": 0, "source_hash": "fdfe32ddcf74be8d61c29979cb350231680f00af7b6389fde1ab5e34ddd355f5", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
14,985
c
class IndirectAddressingSupport { double* generateDataArray(int size); int* generateIndirectionArray(int size); void randomizeInitialization ( int* indirectionArray, int size ); int* copyIndirectionArray ( int* indirectionArray, int size ); void sortIndirectionArray( int* indirectionArra...
41.12
8
(translation_unit) "class IndirectAddressingSupport\n {\n double* generateDataArray(int size);\n int* generateIndirectionArray(int size);\n\n void randomizeInitialization ( int* indirectionArray, int size );\n int* copyIndirectionArray ( int* indirectionArray, int size );\n\n void sortIndirectionA...
88
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 41.12, "nodes": 63, "errors": 0, "source_hash": "5704fb8d0614ecdfc492fa6a0c07318b54079ec34582fbad1901cadd6b00c3d6", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "cla...
14,986
c
/** * @brief External header that includes all logic gates * * All headers have been included despite the fact that * nandgate.h also includes logicgate.h, notgate.h & andgate.h * norgate.h also includes orgate.h * This is safe due to the usage of include guards, and has been done * to ensure that this header...
34.59
17
(translation_unit) "/**\n * @brief External header that includes all logic gates\n * \n * All headers have been included despite the fact that\n * nandgate.h also includes logicgate.h, notgate.h & andgate.h\n * norgate.h also includes orgate.h\n * This is safe due to the usage of include guards, and has been done\n *...
50
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 34.59, "nodes": 24, "errors": 0, "source_hash": "d2830fafd1e9ecad69148004dcf7e48bf5ade0c3da20d525377e44f61c15ca04", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
14,987
c
// // TaskTableViewCell.h // HiClass // // Created by <NAME> on 2020/1/17. // Copyright © 2020 jingxianglong. All rights reserved. // #import <UIKit/UIKit.h> #import "HICTestModel.h" NS_ASSUME_NONNULL_BEGIN @interface TaskTableViewCell : UITableViewCell @property (nonatomic, strong) UIView *taskContentView; - ...
29.07
15
(translation_unit) "//\n// TaskTableViewCell.h\n// HiClass\n//\n// Created by <NAME> on 2020/1/17.\n// Copyright © 2020 jingxianglong. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "HICTestModel.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface TaskTableViewCell : UITableViewCell\n\n@property (nonatomic, s...
84
11
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 29.07, "nodes": 52, "errors": 0, "source_hash": "bc402e06a3a71d7270540778925ea64b7b7f67384019ae91d8db7e8a32867efb", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
14,988
c
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty o...
41.95
39
(translation_unit) "/*===================================================================\n\nThe Medical Imaging Interaction Toolkit (MITK)\n\nCopyright (c) German Cancer Research Center,\nDivision of Medical and Biological Informatics.\nAll rights reserved.\n\nThis software is distributed WITHOUT ANY WARRANTY; without...
174
10
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 41.95, "nodes": 98, "errors": 0, "source_hash": "f5544ac84c8061e5fc92c73addd6354f5a493c51c78fa3cb791ef27c39210332", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,989
c
#include <stdio.h> #include <stdbool.h> #include "test_da.lib.h" #include <da.h> #include <acc.h> //AccChannel acc_live_channels; int main(){ //acc_open(&acc_live_channels, acc_SELF); // enumeration of tests typedef bool (*test_fun)(); test_fun tests[] = { test_da_push_0, test_da_expand_0, ...
23.85
99
(translation_unit) "#include <stdio.h>\n#include <stdbool.h>\n#include "test_da.lib.h"\n#include <da.h>\n#include <acc.h>\n\n//AccChannel acc_live_channels;\n\nint main(){\n //acc_open(&acc_live_channels, acc_SELF);\n // enumeration of tests\n typedef bool (*test_fun)();\n test_fun tests[] =\n {\n test_da...
494
0
{"language": "c", "success": true, "metadata": {"lines": 99, "avg_line_length": 23.85, "nodes": 248, "errors": 0, "source_hash": "624f81df35e264b1772d5033795e44b3b1caed5947337e8b6b88867dac2c5b75", "categorized_nodes": 166}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,990
c
// -*- C++ -*- //============================================================================= /** * @file OS_NS_netdb.h * * $Id: OS_NS_netdb.h 93597 2011-03-21 12:54:52Z johnnyw $ * * @author <NAME> <<EMAIL>> * @author <NAME><<EMAIL>> * @author and a cast of thousands... * * Originally in OS.h. */ /...
36.8
101
(translation_unit) "// -*- C++ -*-\n\n//=============================================================================\n/**\n * @file OS_NS_netdb.h\n *\n * $Id: OS_NS_netdb.h 93597 2011-03-21 12:54:52Z johnnyw $\n *\n * @author <NAME> <<EMAIL>>\n * @author <NAME><<EMAIL>>\n * @author and a cast of thousands...\n ...
581
5
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 36.8, "nodes": 418, "errors": 0, "source_hash": "c5220e89b4af82a1ea35da5b0fca76cb284ee3d9d72b49d185dee4e372077522", "categorized_nodes": 266}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,991
c
#ifndef _UNABTO_UNIX_TIME_TYPES_H_ #define _UNABTO_UNIX_TIME_TYPES_H_ #include <time.h> #include <stdint.h> struct unabto_unix_time { uint64_t milliseconds; uint64_t count; // The count is used to distinguish two timestamps with equal milliseconds but with different place in time of calling nabtoGetStamp() }...
31.77
13
(translation_unit) "#ifndef _UNABTO_UNIX_TIME_TYPES_H_\n#define _UNABTO_UNIX_TIME_TYPES_H_\n\n#include <time.h>\n#include <stdint.h>\n\n\nstruct unabto_unix_time {\n uint64_t milliseconds;\n uint64_t count; // The count is used to distinguish two timestamps with equal milliseconds but with different place in time...
43
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 31.77, "nodes": 32, "errors": 0, "source_hash": "316a8bce6ebaa172959846bf7b7641392f3a09b1f52dda3be9115c69b3e7c14d", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,992
c
/*---------------------------------------------------------------------------* Project: Dolphin/Revolution GX library File: gx.h Copyright 1998-2006 Nintendo. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo of America ...
28.96
89
(translation_unit) "/*---------------------------------------------------------------------------* \n Project: Dolphin/Revolution GX library \n File: gx.h \n \n Copyright 1998-2006 Nintendo. All rights reserved. \n \n These coded instructions, statements, and computer programs contain \n proprietary informat...
132
0
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 28.96, "nodes": 115, "errors": 0, "source_hash": "4aa4582795abe09d4f76fc0e36e9a1efc9760446022d5864adf07f2ddf0a5083", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,993
c
#import <UIKit/UIKit.h> #import "QLBaseViewController.h" /** * Main view controller for the native view * * Creates the navigation across all of the different native view controllers * */ @interface NativeViewController : QLBaseViewController <UICollectionViewDataSource, UICollectionViewDelegateFlowLayout> @en...
31
10
(translation_unit) "#import <UIKit/UIKit.h>\n#import "QLBaseViewController.h"\n\n/**\n * Main view controller for the native view\n *\n * Creates the navigation across all of the different native view controllers\n *\n */\n@interface NativeViewController : QLBaseViewController <UICollectionViewDataSource, UICollectio...
22
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 31.0, "nodes": 17, "errors": 0, "source_hash": "998aa82ae863f919df6beb69633ad9183b9b94146ad507d76c7b2df3f6f30329", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UI...
14,994
c
/* This file is part of the Astrometry.net suite. Copyright 2006-2008 <NAME>, <NAME> and <NAME>. The Astrometry.net suite is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2. The Astrometry.net...
40.52
48
(translation_unit) "/*\n This file is part of the Astrometry.net suite.\n Copyright 2006-2008 <NAME>, <NAME> and <NAME>.\n\n The Astrometry.net suite is free software; you can redistribute\n it and/or modify it under the terms of the GNU General Public License\n as published by the Free Software Foundation, versio...
137
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 40.52, "nodes": 100, "errors": 0, "source_hash": "be3b3e437be47b19944e35d3ddd3e91dfbf362428d3a6ca7b3b013c7b790e959", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,995
c
/* Placeholder */
19
1
(translation_unit) "/* Placeholder */\n" (comment) "/* Placeholder */"
2
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 19.0, "nodes": 0, "errors": 0, "source_hash": "ed8f9d2ecbb0fd02f7129afa51c8265aed6f5d2df94ce71c2b5ad867c0280295", "categorized_nodes": 0}, "ast": {"root": "translation_unit", "nodes": []}, "node_categories": {"declarations": {"functions": []...
14,996
c
/* * Copyright (C) 2005 to 2014 by <NAME> * email: <EMAIL> * Copyright (C) 2013-2016 <NAME> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at yo...
29.31
122
(translation_unit) "/*\n * Copyright (C) 2005 to 2014 by <NAME>\n * email: <EMAIL>\n * Copyright (C) 2013-2016 <NAME>\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 o...
1,112
0
{"language": "c", "success": true, "metadata": {"lines": 122, "avg_line_length": 29.31, "nodes": 682, "errors": 0, "source_hash": "f400ceae0a8ef1ee25832c5e2bd08f1311ec33c0021f216a04deff64c9d3c100", "categorized_nodes": 492}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,997
c
/* *======================================================================= * Filename:reader.h * * Version: 1.0 * Created on: March 18, 2018 * * Author: corvo *======================================================================= */ #ifndef READER_H_AKS58L6J #define READER_H_AKS58L6J #include...
31.61
189
(translation_unit) "/*\n *=======================================================================\n * Filename:reader.h\n *\n * Version: 1.0\n * Created on: March 18, 2018\n *\n * Author: corvo\n *=======================================================================\n */\n\n#ifndef READER_H_AKS58L6J\n#de...
1,084
25
{"language": "c", "success": true, "metadata": {"lines": 189, "avg_line_length": 31.61, "nodes": 655, "errors": 0, "source_hash": "cc720c4e2f30a7fe695b81c1d201add87612556382aaf738056d7cbab4a99b0b", "categorized_nodes": 420}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
14,998
c
#ifndef VEC3_H #define VEC3_H #include <iostream> class Vec3 { public: Vec3(): e{0.0f, 0.0f, 0.0f} {}; Vec3(float e0, float e1, float e2) : e{ e0, e1, e2} {}; float x() const { return e[0]; } float y() const { return e[1]; } float z() const { return e[2]; } Vec3 operator-() const { return Ve...
28.53
158
(translation_unit) "#ifndef VEC3_H\n#define VEC3_H\n\n#include <iostream>\n\nclass Vec3\n{\npublic:\n Vec3(): e{0.0f, 0.0f, 0.0f} {};\n Vec3(float e0, float e1, float e2) : e{ e0, e1, e2} {};\n\n float x() const { return e[0]; }\n float y() const { return e[1]; }\n float z() const { return e[2]; }\n\n ...
2,009
54
{"language": "c", "success": true, "metadata": {"lines": 158, "avg_line_length": 28.53, "nodes": 1227, "errors": 0, "source_hash": "27dda00a8ee939163fdae0d45e68cce54e05f7123cb927e04af1aa2297bdaea4", "categorized_nodes": 927}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
14,999