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
#ifdef __OBJC__ #import <UIKit/UIKit.h> #endif #import "NSAttributedString+JKNAdditions.h" #import "NSString+JKNCheckType.h" #import "NSString+JKNDrawing.h" FOUNDATION_EXPORT double PodSpecStringVersionNumber; FOUNDATION_EXPORT const unsigned char PodSpecStringVersionString[];
33.75
8
(translation_unit) "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#endif\n\n#import "NSAttributedString+JKNAdditions.h"\n#import "NSString+JKNCheckType.h"\n#import "NSString+JKNDrawing.h"\n\nFOUNDATION_EXPORT double PodSpecStringVersionNumber;\nFOUNDATION_EXPORT const unsigned char PodSpecStringVersionString[];\n\n" (pre...
36
1
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 33.75, "nodes": 28, "errors": 0, "source_hash": "bfb4fcbee067a0ede0029fa1c08a8dd9ef21086137c9aa9a87a7765fa49a79a9", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef __...
9,000
c
#pragma once #include <glm/glm.hpp> namespace Dot { class Camera { public: Camera(const glm::mat4& projectionMatrix); void Update(); void MousePan(const glm::vec2& delta); void MouseRotate(const glm::vec2& delta); void MouseZoom(float delta); inline void SetDistance(float distance) { m_Distance = dist...
35.1
39
(translation_unit) "#pragma once\n#include <glm/glm.hpp>\n\nnamespace Dot {\n\n class Camera\n {\n public:\n Camera(const glm::mat4& projectionMatrix);\n void Update();\n void MousePan(const glm::vec2& delta);\n void MouseRotate(const glm::vec2& delta);\n void MouseZoom(float delta);\n\n inline void SetDistance(f...
454
26
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 35.1, "nodes": 239, "errors": 0, "source_hash": "35360bf2a6a04a2131b86541a4baa5e8cd6ef290e1f462b1f3de0fec647d27cb", "categorized_nodes": 162}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
9,001
c
// // Copyright (c) 2019-2022 yanggaofeng // #ifndef SRC_YANGSTREAM_SRC_YANGSTREAMRTC_H_ #define SRC_YANGSTREAM_SRC_YANGSTREAMRTC_H_ #include <yangstream/YangStreamHandle.h> void yang_create_stream_rtc(YangStreamHandle* handle); void yang_destroy_stream_rtc(YangStreamHandle* handle); #endif /* SRC_YANGSTREAM_SRC_YANG...
36.11
9
(translation_unit) "//\n// Copyright (c) 2019-2022 yanggaofeng\n//\n#ifndef SRC_YANGSTREAM_SRC_YANGSTREAMRTC_H_\n#define SRC_YANGSTREAM_SRC_YANGSTREAMRTC_H_\n\n#include <yangstream/YangStreamHandle.h>\nvoid yang_create_stream_rtc(YangStreamHandle* handle);\nvoid yang_destroy_stream_rtc(YangStreamHandle* handle);\n\n#en...
41
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 36.11, "nodes": 30, "errors": 0, "source_hash": "bb3e1d39a6fcec54d84ebe69fb9898281770145dc93e3fcc6690b3e8e58295e2", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef S...
9,002
c
#ifndef GPREGISTER_H #define GPREGISTER_H #include "../../type.h" #include <string.h> class GPRegisterClass { public: GPRegisterClass() { ::memset(_reg,0,sizeof(_reg)); } virtual u8 get8Bits() { return _reg[0]; } virtual void set8Bits(u8 value) { _reg[0]=value; ...
17.98
82
(translation_unit) "#ifndef GPREGISTER_H\n#define GPREGISTER_H\n#include "../../type.h"\n#include <string.h>\nclass GPRegisterClass\n{\npublic:\n GPRegisterClass()\n {\n ::memset(_reg,0,sizeof(_reg));\n }\n virtual u8 get8Bits()\n {\n return _reg[0];\n }\n virtual void set8Bits(u8 val...
548
14
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 17.98, "nodes": 333, "errors": 0, "source_hash": "4b66b6aaae5022fc142343f6c10b4b8f6597a386d2d1d54880c20e247a631cdb", "categorized_nodes": 253}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,003
c
// Copyright (c) 2017 <NAME> - MIT License #ifndef INCLUDE_XS4GCR_LIS_H_ #define INCLUDE_XS4GCR_LIS_H_ #include <vector> #include "XS4GCR/cgs.h" namespace Ghelfi2016 { class LIS { public: virtual ~LIS() {} double get(const double& T_n) const { double log_J_LIS = 0; if (T_n < T_threshold) ...
35.11
53
(translation_unit) "// Copyright (c) 2017 <NAME> - MIT License\n#ifndef INCLUDE_XS4GCR_LIS_H_\n#define INCLUDE_XS4GCR_LIS_H_\n\n#include <vector>\n\n#include "XS4GCR/cgs.h"\n\nnamespace Ghelfi2016 {\n\nclass LIS {\n public:\n virtual ~LIS() {}\n double get(const double& T_n) const {\n double log_J_LIS = ...
564
25
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 35.11, "nodes": 338, "errors": 0, "source_hash": "d574e2eb5e6155ee5bbce4af4fdacd58bed6f3613a97103c140c665bf9c61805", "categorized_nodes": 243}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,004
c
/* Copyright (c) 2019, <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the followi...
27.38
285
(translation_unit) "/* \nCopyright (c) 2019, <NAME> \nAll rights reserved. \n \nRedistribution and use in source and binary forms, with or without \nmodification, are permitted provided that the following conditions are met: \n \n1. Redistributions of source code must retain the above copyright notice, this \n list o...
999
0
{"language": "c", "success": true, "metadata": {"lines": 285, "avg_line_length": 27.38, "nodes": 593, "errors": 0, "source_hash": "3a14c52eb1d615f9f40a43d3c92697c09b343989a73100a3e1d63d5f03d2274f", "categorized_nodes": 387}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,005
c
#ifndef SimG4Core_DDGeometryReturnType_h #define SimG4Core_DDGeometryReturnType_h #include "SimG4Core/Geometry/interface/G4LogicalVolumeToDDLogicalPartMap.h" #include "SimG4Core/Geometry/interface/SensitiveDetectorCatalog.h" #include "G4LogicalVolume.hh" class DDGeometryReturnType { public: DDGeometryReturnType(G4...
39.9
20
(translation_unit) "#ifndef SimG4Core_DDGeometryReturnType_h\n#define SimG4Core_DDGeometryReturnType_h\n\n#include "SimG4Core/Geometry/interface/G4LogicalVolumeToDDLogicalPartMap.h"\n#include "SimG4Core/Geometry/interface/SensitiveDetectorCatalog.h"\n\n#include "G4LogicalVolume.hh"\n\nclass DDGeometryReturnType {\npubl...
137
4
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 39.9, "nodes": 72, "errors": 0, "source_hash": "b5347d3988e158e9c0213c21095beceea06a92fa3a3f6b7f54de540bc17ec73d", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef S...
9,006
c
/* * This header is generated by classdump-dyld 1.0 * on Wednesday, March 22, 2017 at 9:05:26 AM Mountain Standard Time * Operating System: Version 10.1 (Build 14U593) * Image Source: /System/Library/Frameworks/MediaPlayer.framework/MediaPlayer * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>. ...
35.66
29
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Wednesday, March 22, 2017 at 9:05:26 AM Mountain Standard Time\n* Operating System: Version 10.1 (Build 14U593)\n* Image Source: /System/Library/Frameworks/MediaPlayer.framework/MediaPlayer\n* classdump-dyld is licensed under GPLv3, Copyrigh...
284
52
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 35.66, "nodes": 181, "errors": 0, "source_hash": "b82fba3de82db49d1db630a9ba3351fbfc47013b14b46882791027eade153af8", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "c", "parent": n...
9,007
c
#ifdef __EMSCRIPTEN__ #include <errno.h> #endif #include <unistd.h> #include <errno.h> #include <sys/ioctl.h> #include "syscall.h" int isatty(int fd) { #ifdef __EMSCRIPTEN__ __wasi_fdstat_t statbuf; int err = __wasi_fd_fdstat_get(fd, &statbuf); if (err != 0) { errno = err; return 0; } // All character device...
22.68
31
(translation_unit) "#ifdef __EMSCRIPTEN__\n#include <errno.h>\n#endif\n#include <unistd.h>\n#include <errno.h>\n#include <sys/ioctl.h>\n#include "syscall.h"\n\nint isatty(int fd)\n{\n#ifdef __EMSCRIPTEN__\n __wasi_fdstat_t statbuf;\n int err = __wasi_fd_fdstat_get(fd, &statbuf);\n if (err != 0) {\n errno = err;\n ret...
175
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 22.68, "nodes": 115, "errors": 0, "source_hash": "6e888c0de2e0789f54c692b2bc98d4724adc56cbd69b3ebed794598d2bc45ee9", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef ...
9,008
c
/* * Copyright (c) 2001-2003 Swedish Institute of Computer Science. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright not...
33.11
236
(translation_unit) "/*\n * Copyright (c) 2001-2003 Swedish Institute of Computer Science.\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without modification,\n * are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must ret...
497
0
{"language": "c", "success": true, "metadata": {"lines": 236, "avg_line_length": 33.11, "nodes": 392, "errors": 0, "source_hash": "5ac7a89a3a83fdf9482ae0729df990d9a68ecb927d5654d0348f64aeccf238bc", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
9,009
c
#ifndef IV_LV5_RAILGUN_CODE_H_ #define IV_LV5_RAILGUN_CODE_H_ #include <algorithm> #include <iv/detail/tuple.h> #include <iv/ustring.h> #include <iv/lv5/jsval.h> #include <iv/lv5/jsobject_fwd.h> #include <iv/lv5/gc_template.h> #include <iv/lv5/specialized_ast.h> #include <iv/lv5/map.h> #include <iv/lv5/radio/cell.h> #i...
31.71
221
(translation_unit) "#ifndef IV_LV5_RAILGUN_CODE_H_\n#define IV_LV5_RAILGUN_CODE_H_\n#include <algorithm>\n#include <iv/detail/tuple.h>\n#include <iv/ustring.h>\n#include <iv/lv5/jsval.h>\n#include <iv/lv5/jsobject_fwd.h>\n#include <iv/lv5/gc_template.h>\n#include <iv/lv5/specialized_ast.h>\n#include <iv/lv5/map.h>\n#in...
2,259
69
{"language": "c", "success": true, "metadata": {"lines": 221, "avg_line_length": 31.71, "nodes": 1271, "errors": 0, "source_hash": "25a45e8ed995c4a23e2d7394b7c51507c3e7727ea40ab99685c0844fe497b241", "categorized_nodes": 877}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
9,010
c
#ifndef FVUPDATER_H #define FVUPDATER_H #include <QObject> #include <QMutex> #include <QNetworkAccessManager> #include <QUrl> #include <QXmlStreamReader> class FvUpdateWindow; class FvUpdateConfirmDialog; class FvAvailableUpdate; typedef int (*check_before_update_callback)(void *, void *); enum FERVOR_MODE { QU...
41.17
150
(translation_unit) "#ifndef FVUPDATER_H\n#define FVUPDATER_H\n\n#include <QObject>\n#include <QMutex>\n#include <QNetworkAccessManager>\n#include <QUrl>\n#include <QXmlStreamReader>\nclass FvUpdateWindow;\nclass FvUpdateConfirmDialog;\nclass FvAvailableUpdate;\n\n\ntypedef int (*check_before_update_callback)(void *, vo...
792
12
{"language": "c", "success": true, "metadata": {"lines": 150, "avg_line_length": 41.17, "nodes": 486, "errors": 0, "source_hash": "c48d2efed6969e757da91a81dcfa1ca1816c0a02fe494094e80be66ed70d9889", "categorized_nodes": 341}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
9,011
c
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* Copyright (c) 2021 * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. */ #ifndef _STAT_H_ #define _STAT_H_ str...
33.54
59
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */\n/* Copyright (c) 2021\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of version 2 of the GNU General Public\n * License as published by the Free Software Foundation.\n */\n#ifndef _ST...
563
0
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 33.54, "nodes": 377, "errors": 0, "source_hash": "19b837d960cd77df50845047f446604a2e0541edb97c74d034e2badfb2030fc6", "categorized_nodes": 263}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,012
c
#ifdef TEST #include "unity.h" #include "fsm.h" static uint32_t transition_1_calls_counter = 0; static uint32_t transition_2_calls_counter = 0; static uint32_t transition_3_calls_counter = 0; static uint32_t state_1_on_enter_calls_counter = 0; static uint32_t state_1_on_exit_calls_counter = 0; static uint3...
32.19
107
(translation_unit) "#ifdef TEST\n\n #include "unity.h"\n\n #include "fsm.h"\n\nstatic uint32_t transition_1_calls_counter = 0;\nstatic uint32_t transition_2_calls_counter = 0;\nstatic uint32_t transition_3_calls_counter = 0;\n\nstatic uint32_t state_1_on_enter_calls_counter = 0;\nstatic uint32_t state_1_on_exit_c...
921
0
{"language": "c", "success": true, "metadata": {"lines": 107, "avg_line_length": 32.19, "nodes": 507, "errors": 0, "source_hash": "ff7e8349836483758034450fa2c265eb3307ae1a001ee4f96cf6768f880b781e", "categorized_nodes": 338}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifde...
9,013
c
// Pattern Address Generator #pragma once namespace PPUSim { class PatBitInv { BaseLogic::DLatch in_latch; BaseLogic::DLatch out_latch; public: void sim(BaseLogic::TriState n_PCLK, BaseLogic::TriState O, BaseLogic::TriState INV, BaseLogic::TriState val_in, BaseLogic::TriState & val_out); }; class PatB...
25.67
52
(translation_unit) "// Pattern Address Generator\n\n#pragma once\n\nnamespace PPUSim\n{\n class PatBitInv\n {\n BaseLogic::DLatch in_latch;\n BaseLogic::DLatch out_latch;\n\n public:\n void sim(BaseLogic::TriState n_PCLK, BaseLogic::TriState O, BaseLogic::TriState INV, BaseLogic::TriState val_in,\n BaseLogic::TriS...
459
33
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 25.67, "nodes": 255, "errors": 0, "source_hash": "d7a71f0fd670c9b08b3313eb7b44b12fb9e26399559813d5dc9001baaa46d2a9", "categorized_nodes": 181}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,014
c
//********************************************************* // // Copyright (c) Microsoft. All rights reserved. // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. ...
26.41
110
(translation_unit) "*********************************************************\n//\n// Copyright (c) Microsoft. All rights reserved.\n// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF\n// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY\n// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR\n// PURPOSE, MERCHANTABILITY...
855
72
{"language": "c", "success": true, "metadata": {"lines": 110, "avg_line_length": 26.41, "nodes": 477, "errors": 0, "source_hash": "4ac90a92d0664fb1f72a9f24df4675e5d1e3bc7ea8858ea5f64661d61ebd2fdc", "categorized_nodes": 284}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma ...
9,015
c
#pragma once #include <atomic> namespace enetpp { class client_statistics { public: std::atomic<int32_t> _round_trip_time_in_ms; std::atomic<int32_t> _round_trip_time_variance_in_ms; public: client_statistics() : _round_trip_time_in_ms(0) , _round_trip_time_variance_in_ms(0) { } }; }
20.64
14
(translation_unit) "#pragma once\n\n#include <atomic>\n\nnamespace enetpp {\n\n class client_statistics {\n public:\n std::atomic<int32_t> _round_trip_time_in_ms;\n std::atomic<int32_t> _round_trip_time_variance_in_ms;\n\n public:\n client_statistics()\n : _round_trip_time_in_ms(0)\n , _round_trip_time_variance_...
81
3
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 20.64, "nodes": 44, "errors": 0, "source_hash": "f582cacc04272a0a38e87c8338427a4f991f3ba84d5b6ac7aa7f83527973999e", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
9,016
c
// // MAPlayCore.h // PlayerTest // // Created by 玉洋 on 2019/3/11. // Copyright © 2019 baiyang. All rights reserved. // #import <Foundation/Foundation.h> #import "MAFrameBuffer.h" #import "MAOpenglView.h" #import "MAOpenalPlayer.h" NS_ASSUME_NONNULL_BEGIN @interface MAPlayCore : NSObject @property (nonatomic, s...
26.47
19
(translation_unit) "//\n// MAPlayCore.h\n// PlayerTest\n//\n// Created by 玉洋 on 2019/3/11.\n// Copyright © 2019 baiyang. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "MAFrameBuffer.h"\n#import "MAOpenglView.h"\n#import "MAOpenalPlayer.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface MAPlayCore ...
100
12
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 26.47, "nodes": 69, "errors": 0, "source_hash": "f6abd58da9b9c0a657d4b4ab8d001e45d7f62d1d8639d83c5dcd2e88013e8813", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "rt <Found...
9,017
c
// // NSString+Name.h // MQEcoboostSDK-test // // Created by qipeng_yuhao on 2020/5/29. // Copyright © 2020 ijinmao. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface NSString (Name) - (NSString *)resetName; @end NS_ASSUME_NONNULL_END
20.69
13
(translation_unit) "//\n// NSString+Name.h\n// MQEcoboostSDK-test\n//\n// Created by qipeng_yuhao on 2020/5/29.\n// Copyright © 2020 ijinmao. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface NSString (Name)\n\n- (NSString *)resetName;\n\n@end\n\nNS_ASSUME_NONNUL...
37
5
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 20.69, "nodes": 20, "errors": 0, "source_hash": "89640f6c523ce12b7c1be48597871b396a214e849f8f41c09d75fb797b62e690", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
9,018
c
// // RHSocketChannelDefault.h // Example // // Created by zhuruhong on 16/6/24. // Copyright © 2016年 zhuruhong. All rights reserved. // #import "RHSocketChannel.h" #import "RHSocketChannel+Heartbeat.h" @interface RHSocketChannelDefault : RHSocketChannel - (void)stopConnectTimer; - (void)startConnectTimer:(NSTim...
25.57
14
(translation_unit) "//\n// RHSocketChannelDefault.h\n// Example\n//\n// Created by zhuruhong on 16/6/24.\n// Copyright © 2016年 zhuruhong. All rights reserved.\n//\n\n#import "RHSocketChannel.h"\n#import "RHSocketChannel+Heartbeat.h"\n\n@interface RHSocketChannelDefault : RHSocketChannel\n\n- (void)stopConnectTimer;...
61
5
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 25.57, "nodes": 35, "errors": 0, "source_hash": "9a2b204aa510f741ac8fbc4594e7a267a8e95258dd4e81e7c1d82eea5ce7e7de", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"RH...
9,019
c
/** * @brief * @details * @date 2019-02-16 **/ /* Includes ------------------------------------------------------------------*/ #include "system.h" #include "types_comm.h" #include "vm_comm.h" /* Private typedef -----------------------------------------------------------*/ /* Private define -----------------...
22.67
224
(translation_unit) "/**\n * @brief \n * @details \n * @date 2019-02-16\n **/\n\n/* Includes ------------------------------------------------------------------*/\n#include "system.h"\n#include "types_comm.h"\n#include "vm_comm.h"\n\n/* Private typedef -----------------------------------------------------------*/\n/* ...
1,712
0
{"language": "c", "success": true, "metadata": {"lines": 224, "avg_line_length": 22.67, "nodes": 968, "errors": 0, "source_hash": "0a113f182fe8cb511886854f96adb2b1a4219578714b27b73c3a63ca8396d7e2", "categorized_nodes": 660}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,020
c
/* * Author: <NAME> * * Light-To-Digital Converter interface (TSL25723FN) * */ #ifndef ldc_edison_h #define ldc_edison_h #include "mraa.hpp" #include <string> #include <sstream> #include <vector> #define LDC_ENABLE 0x00 #define LDC_ATIME 0x01 #define LDC_WTIME 0x03 #define LDC_AILTL 0x04 #de...
27.44
57
(translation_unit) "/*\n* Author: <NAME>\n* \n* Light-To-Digital Converter interface (TSL25723FN)\n*\n*/\n\n#ifndef ldc_edison_h\n#define ldc_edison_h\n\n#include "mraa.hpp"\n\n#include <string>\n#include <sstream>\n#include <vector>\n\n#define LDC_ENABLE 0x00\n#define LDC_ATIME 0x01\n#define LDC_WTIME ...
283
5
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 27.44, "nodes": 210, "errors": 0, "source_hash": "a42b180703fc2a913df9672a7b5f9168bb9cc00127267e5dd624e419c71586d3", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,021
c
/* * Copyright (C) 2012-2013 <NAME>, ASL, ETH Zurich, Switzerland * You can contact the author at <slynen at ethz dot ch> * Copyright (C) 2011-2012 <NAME>, ASL, ETH Zurich, Switzerland * You can contact the author at <stephan dot weiss at ieee dot org> * * Licensed under the Apache License, Version 2.0 (the "Lic...
37.53
58
(translation_unit) "/*\n * Copyright (C) 2012-2013 <NAME>, ASL, ETH Zurich, Switzerland\n * You can contact the author at <slynen at ethz dot ch>\n * Copyright (C) 2011-2012 <NAME>, ASL, ETH Zurich, Switzerland\n * You can contact the author at <stephan dot weiss at ieee dot org>\n *\n * Licensed under the Apache Licen...
252
11
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 37.53, "nodes": 147, "errors": 0, "source_hash": "1a515ca739f35fea5505e4b1d8b7faa244c0838cfd55606823d7eadc80f9de7d", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,022
c
/* Copyright (c) 2001,2003,2004 <NAME> <<EMAIL>> * Copyright (c) 2003,2013,2014 <NAME> <<EMAIL>> * * All rights reserved. * * This code may not be resdistributed without the permission of the * copyright holders. Any student solutions using any of this code base * constitute derviced work and may not be redis...
33.55
40
(translation_unit) "/* Copyright (c) 2001,2003,2004 <NAME> <<EMAIL>>\n * Copyright (c) 2003,2013,2014 <NAME> <<EMAIL>>\n * \n * All rights reserved.\n * \n * This code may not be resdistributed without the permission of the\n * copyright holders. Any student solutions using any of this code base\n * constitute dervice...
173
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 33.55, "nodes": 86, "errors": 0, "source_hash": "e2e24f7695438360a0e85c14ec907df97fe831b7db3110e8209cc9aa5597fd5b", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
9,023
c
#ifndef _DRVCLASS_H #define _DRVCLASS_H /* * title: drvclass.h * * purpose: header for wdm kernel device support class * */ #define FALSE 0 #define BOOL BOOLEAN #define BYTE unsigned char #define PBYTE unsigned char * // // CPacket // // A ringbuffer "node" class // class CPacket...
21.66
197
(translation_unit) "#ifndef _DRVCLASS_H \n#define _DRVCLASS_H \n \n/* \n * title: drvclass.h \n * \n * purpose: header for wdm kernel device support class \n * \n */ \n \n \n#define FALSE 0 \n#define BOOL BOOLEAN \n#define BYTE unsigned char \n#define PBYTE unsigned char * \n \n// \n// CPacket \n// \n// A ringb...
985
11
{"language": "c", "success": true, "metadata": {"lines": 197, "avg_line_length": 21.66, "nodes": 606, "errors": 0, "source_hash": "330e2f302f8ab6197ac5e43ee84953f85bfa4167a22f19b9895e1a4daaa91edd", "categorized_nodes": 422}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
9,024
c
#ifndef __NEURALNET_H__ #define __NEURALNET_H__ // The following ifdef block is the standard way of creating macros which make exporting // from a DLL simpler. All files within this DLL are compiled with the NEURALNET_EXPORTS // symbol defined on the command line. this symbol should not be defined on any project //...
34.71
51
(translation_unit) "#ifndef __NEURALNET_H__\n#define __NEURALNET_H__\n\n\n// The following ifdef block is the standard way of creating macros which make exporting \n// from a DLL simpler. All files within this DLL are compiled with the NEURALNET_EXPORTS\n// symbol defined on the command line. this symbol should not be ...
162
5
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 34.71, "nodes": 108, "errors": 0, "source_hash": "cabf15db702a04c3c91a9e938a0eb6cf19b0042ee8ecab3057bc12a67444cefc", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,025
c
// // MGCCalendarHeaderCell.h // Calendar // // Copyright © 2016 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface MGCCalendarHeaderCell : UICollectionViewCell @property (nonatomic, strong) IBOutlet UILabel *dayNumberLabel; @property (nonatomic, strong) IBOutlet UILabel *dayNameLabel; @property (...
39.44
25
(translation_unit) "//\n// MGCCalendarHeaderCell.h\n// Calendar\n//\n// Copyright © 2016 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface MGCCalendarHeaderCell : UICollectionViewCell\n\n@property (nonatomic, strong) IBOutlet UILabel *dayNumberLabel;\n@property (nonatomic, strong) IBOutlet UI...
278
57
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 39.44, "nodes": 209, "errors": 0, "source_hash": "8573f56bd7683d998aefd56ea71752a4d4474f26658cd15a7df5004c2054f839", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import ...
9,026
c
// // LEOAppDelegate.h // LEOLab // // Created by zhangliaoyuan on 03/23/2022. // Copyright (c) 2022 zhangliaoyuan. All rights reserved. // @import UIKit; @interface LEOAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
24.09
11
(translation_unit) "//\n// LEOAppDelegate.h\n// LEOLab\n//\n// Created by zhangliaoyuan on 03/23/2022.\n// Copyright (c) 2022 zhangliaoyuan. All rights reserved.\n//\n\n@import UIKit;\n\n@interface LEOAppDelegate : UIResponder <UIApplicationDelegate>\n\n@property (strong, nonatomic) UIWindow *window;\n\n@end\n" (...
42
8
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 24.09, "nodes": 26, "errors": 0, "source_hash": "505818c84d8e25490258e1bbd9833041a53b52babcea9c219851fec0f7bdd0ab", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nu...
9,027
c
// Copyright 2016-present 650 Industries. All rights reserved. #import <ABI40_0_0UMCore/ABI40_0_0UMModuleRegistry.h> @interface ABI40_0_0EXModuleTemplateView : UIView - (instancetype)initWithModuleRegistry:(ABI40_0_0UMModuleRegistry *)moduleRegistry; @end
50.2
5
(translation_unit) "// Copyright 2016-present 650 Industries. All rights reserved.\n\n#import <ABI40_0_0UMCore/ABI40_0_0UMModuleRegistry.h>\n\n@interface ABI40_0_0EXModuleTemplateView : UIView\n\n- (instancetype)initWithModuleRegistry:(ABI40_0_0UMModuleRegistry *)moduleRegistry;\n\n@end\n" (comment) "// Copyright 201...
34
5
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 50.2, "nodes": 20, "errors": 0, "source_hash": "036152f0bb58c9f065cba7eb90676eeef0e46d36b8017ee8bb22bbc203980890", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <AB...
9,028
c
#ifndef ELEM_H #define ELEM_H #include <SFML/Graphics.hpp> #include "data.h" #include "tilemap.h" class Elem: public sf::Drawable, public sf::Transformable { public: Elem(); void setBoardPosition(int boardPosition); int getBoardPosition(); int boardPosition; }; #endif // ELEM_H
20.07
14
(translation_unit) "#ifndef ELEM_H\n#define ELEM_H\n#include <SFML/Graphics.hpp>\n#include "data.h"\n#include "tilemap.h"\n\nclass Elem: public sf::Drawable, public sf::Transformable\n{\npublic:\n Elem();\n void setBoardPosition(int boardPosition);\n int getBoardPosition();\n int boardPosition;\n};\n\n#endi...
86
3
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 20.07, "nodes": 47, "errors": 0, "source_hash": "7d495faffb59f9db9c294f5f6160d8586f4024855e675fab6ba1d6df221b715f", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,029
c
#pragma once //#if __has_include("semaphore") #include <semaphore> /*#else static_assert(false, "test"); #include <condition_variable> #include <climits> #define SEM_VERIFY(cond, msg) \ { \ if (cond) {} \ else \ LOG_FATAL(msg); \ ...
34.31
59
(translation_unit) "#pragma once\n\n\n//#if __has_include("semaphore")\n#include <semaphore>\n/*#else\nstatic_assert(false, "test");\n#include <condition_variable>\n#include <climits>\n\n\n#define SEM_VERIFY(cond, msg) \\n { \\n if (cond) {} \\n else \\...
9
0
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 34.31, "nodes": 6, "errors": 0, "source_hash": "fa9829559675079b3489359168a1c2af65b7756d748bfb9a23d3b0e525ed01bc", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
9,030
c
// // VideoEventTableViewCell.h // AiHome // // Created by wkj on 2018/1/6. // Copyright © 2018年 华通晟云. All rights reserved. // #import <UIKit/UIKit.h> @interface VideoEventTableViewCell : UITableViewCell // Cell竖线 @property (nonatomic, strong) UIView *verticalLine; //Cell时分Label @property (nonatomic, strong) UI...
26.59
22
(translation_unit) "//\n// VideoEventTableViewCell.h\n// AiHome\n//\n// Created by wkj on 2018/1/6.\n// Copyright © 2018年 华通晟云. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface VideoEventTableViewCell : UITableViewCell\n\n// Cell竖线\n@property (nonatomic, strong) UIView *verticalLine;\n\n//Cell时分Lab...
132
26
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 26.59, "nodes": 93, "errors": 0, "source_hash": "64dc7cbe02888f49f0bf2c9ec98ebe267228d858c6d827374e4d72bdcc66933f", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Kit/UIKit...
9,031
c
// // JYComLogManager.h // xiuxiuNote // // Created by XiaobinJia on 14-10-27. // Copyright (c) 2014年 金源互动. All rights reserved. // #ifndef xiuxiuNote_JYComLogManager_h #define xiuxiuNote_JYComLogManager_h /***************** * * 调试期间Log的统一管理,尽量少用NSLog * *****************/ #define kAppDebug 1 #if kAppDebug #...
22
21
(translation_unit) "//\n// JYComLogManager.h\n// xiuxiuNote\n//\n// Created by XiaobinJia on 14-10-27.\n// Copyright (c) 2014年 金源互动. All rights reserved.\n//\n\n#ifndef xiuxiuNote_JYComLogManager_h\n#define xiuxiuNote_JYComLogManager_h\n\n/*****************\n *\n * 调试期间Log的统一管理,尽量少用NSLog\n *\n *****************/\n\...
44
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 22.0, "nodes": 27, "errors": 0, "source_hash": "8e9dc4e8779be3ae50da7867ad5caba8625d4a8fc8107c0a807b254fa3675f75", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "uxiuNote_...
9,032
c
#ifndef VideoRaySim_APP_H #define VideoRaySim_APP_H #include <iostream> #include <string> #include <vector> #include <MOOS/libMOOS/App/MOOSApp.h> class VideoRaySimApp : public CMOOSApp { public: VideoRaySimApp(); virtual ~VideoRaySimApp(); protected: double appTick; double commsTick; //where we h...
21.46
26
(translation_unit) "#ifndef VideoRaySim_APP_H \n#define VideoRaySim_APP_H \n\n#include <iostream>\n#include <string>\n#include <vector>\n\n#include <MOOS/libMOOS/App/MOOSApp.h>\n\nclass VideoRaySimApp : public CMOOSApp { \n public:\n VideoRaySimApp(); \n virtual ~VideoRaySimApp();\n\n protected: \n\n double appTick;...
110
3
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 21.46, "nodes": 67, "errors": 0, "source_hash": "d9d8b5edbbeb3c0be3ab90b2745d2ca63c9bfb708b525e03df49f4b8b77ca8d1", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,033
c
#include <stdio.h> void bin(unsigned int n) { unsigned int i; for (i = 1 << 31; i > 0; i = i / 2) (n & i)? printf("1"): printf("0"); } void main() { /* bin(7); printf("\n"); signed int num = 0b110101101; printf("num %d\n", num); printf("\n Q1 \n"); unsigned int resultO...
19.26
38
(translation_unit) "#include <stdio.h> \n \nvoid bin(unsigned int n) \n{ \n unsigned int i; \n for (i = 1 << 31; i > 0; i = i / 2) \n (n & i)? printf("1"): printf("0"); \n} \n \nvoid main() \n{ \n/* \n bin(7); \n printf("\n"); \n signed int num = 0b110101101; \n printf("num %d\n", num); \n printf("\...
132
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 19.26, "nodes": 81, "errors": 0, "source_hash": "b272952393efa0b9ad2310109a224b8791c3e8fc62bf72e8005595b95adf871b", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
9,034
c
/* * Copyright 2020 New Relic Corporation. All rights reserved. * SPDX-License-Identifier: Apache-2.0 * * This file handles the termination that happens once per module. */ #include "php_agent.h" #include <signal.h> #include <sys/wait.h> #include "php_globals.h" #include "php_internal_instrument.h" #include "php...
33.19
47
(translation_unit) "/*\n * Copyright 2020 New Relic Corporation. All rights reserved.\n * SPDX-License-Identifier: Apache-2.0\n *\n * This file handles the termination that happens once per module.\n */\n#include "php_agent.h"\n\n#include <signal.h>\n#include <sys/wait.h>\n\n#include "php_globals.h"\n#include "php_inte...
211
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 33.19, "nodes": 109, "errors": 0, "source_hash": "b57cdcbc3d40d0a9e65cd464f90e1c02fe58aa9c3991e83b5d02bacc0ee9df78", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
9,035
c
// A Dynamic Programming based C++ Program for the Egg Dropping Puzzle # include <stdio.h> # include <limits.h> // A utility function to get maximum of two integers int max(int a, int b) { return (a > b)? a: b; } /* Function to get minimum number of trials needed in worst case with n eggs and k floors */ int eggDrop(...
26.29
49
(translation_unit) "// A Dynamic Programming based C++ Program for the Egg Dropping Puzzle\n# include <stdio.h>\n# include <limits.h>\n\n// A utility function to get maximum of two integers\nint max(int a, int b) { return (a > b)? a: b; }\n\n/* Function to get minimum number of trials needed in worst\ncase with n eggs ...
389
0
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 26.29, "nodes": 234, "errors": 0, "source_hash": "985630e8684c7afd22322a6f2337357ce8aeebc5a93dc2ff6f3edf809c8ca20d", "categorized_nodes": 180}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "# in...
9,036
c
#pragma once /** Returns the current date+time as array of integers. * * Returns year, month, day, hour, minutes, seconds. * * @param value [out] Integer array of size 6. YYYY, MM, DD, hh, mm, ss */ void time_numbers(int *value); /** Prints the current date+time to stderr. */ void timestamp(); /** Returns the curr...
32.5
26
(translation_unit) "#pragma once\n\n/** Returns the current date+time as array of integers.\n* \n* Returns year, month, day, hour, minutes, seconds.\n* \n* @param value [out] Integer array of size 6. YYYY, MM, DD, hh, mm, ss\n*/\nvoid time_numbers(int *value);\n\n/** Prints the current date+time to stderr.\n*/\nvoid ti...
58
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 32.5, "nodes": 38, "errors": 0, "source_hash": "33964a6b1a01cdcb13eb0e0cc358b7b4a4cd851ae5ec06b34ad7fb7d7ee02fe2", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
9,037
c
/* * Macros.h * * Created on: Aug 25, 2013 * Author: pnewman */ #ifndef MOOSMACROS_H_ #define MOOSMACROS_H_ #ifdef __GNUC__ #define DEPRECATED(func) func __attribute__ ((deprecated)) #elif defined(_MSC_VER) #define DEPRECATED(func) __declspec(deprecated) func #else #pragma message("WARNING: You need to imp...
22.39
18
(translation_unit) "/*\n * Macros.h\n *\n * Created on: Aug 25, 2013\n * Author: pnewman\n */\n\n#ifndef MOOSMACROS_H_\n#define MOOSMACROS_H_\n\n#ifdef __GNUC__\n#define DEPRECATED(func) func __attribute__ ((deprecated))\n#elif defined(_MSC_VER)\n#define DEPRECATED(func) __declspec(deprecated) func\n#else\n#pragm...
51
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 22.39, "nodes": 40, "errors": 0, "source_hash": "670c9b161258582076a4b216391035b2deacff69384aa6cba09b6b90c9d6568b", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,038
c
#pragma once #include <stdio.h> //#include <liballocgc/liballocgc.h> #include "../../sources/liballocgc.h" #include "List.h" class Node { public: Node (); Node (int i, gc_ptr<Node> l, gc_ptr<Node> r); void insert (int i); void toList (gc_ptr<List> res); private: int value; gc_ptr<Node> left, right; }; class Tr...
17.54
24
(translation_unit) "#pragma once\n#include <stdio.h>\n//#include <liballocgc/liballocgc.h>\n#include "../../sources/liballocgc.h"\n#include "List.h"\n\nclass Node {\npublic:\n Node ();\n Node (int i, gc_ptr<Node> l, gc_ptr<Node> r);\n void insert (int i);\n void toList (gc_ptr<List> res);\n\nprivate:\n int value;\n gc_...
172
3
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 17.54, "nodes": 108, "errors": 0, "source_hash": "8537151cacf0a5569d655e925ae3fa666c9e74689c43f704a18c33da1feb8896", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
9,039
c
// // XMNotificationManager.h // XMMuseum // // Created by 何振东 on 14-7-3. // Copyright (c) 2014年 XM. All rights reserved. // #import <Foundation/Foundation.h> /** * 应用级推送通知管理类,包括本地通知和远程通知。 */ @interface XMNotificationManager : NSObject + (instancetype)sharedInstance; /** * 靠近基站区域时提示 */ - (void)showEnter...
16.66
35
(translation_unit) "//\n// XMNotificationManager.h\n// XMMuseum\n//\n// Created by 何振东 on 14-7-3.\n// Copyright (c) 2014年 XM. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n/**\n * 应用级推送通知管理类,包括本地通知和远程通知。\n */\n\n\n@interface XMNotificationManager : NSObject\n\n+ (instancetype)sharedInstance;\n\n...
108
6
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 16.66, "nodes": 60, "errors": 0, "source_hash": "1071b75a51c6a5573ad228f2e2d862abc02c24f683779c16989467dd30fd8116", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "<Foundati...
9,040
c
/* * Project name: T-rex-duino * Description: T-rex game from Chrome brower rewritten for Arduino * Project page: https://github.com/AlexIII/t-rex-duino * Author: github.com/AlexIII * E-mail: <EMAIL> * License: MIT */ #ifndef _HEART_LIVE_H_ #define _HEART_LIVE_H_ #include "assets.h" #include "engine.h" #defin...
27.37
35
(translation_unit) "/*\n * Project name: T-rex-duino\n * Description: T-rex game from Chrome brower rewritten for Arduino\n * Project page: https://github.com/AlexIII/t-rex-duino\n * Author: github.com/AlexIII\n * E-mail: <EMAIL>\n * License: MIT\n*/ \n\n#ifndef _HEART_LIVE_H_\n#define _HEART_LIVE_H_\n\n#include "asset...
224
4
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 27.37, "nodes": 132, "errors": 0, "source_hash": "132831f2aec0e425589bb39cdc4ec3ed02092745b5a837bf1907e84c74dc958b", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,041
c
#pragma once #include "../../animation.h" #include "../../spritesheet.h" namespace Impacto { namespace RNE { class TileBackground : public Animation { public: void Init(); void Render() override; uint32_t Seed; int Columns; int Rows; float VanishingPointX; float CenterY; float Depth; float MaxA...
18.3
23
(translation_unit) "#pragma once\n\n#include "../../animation.h"\n#include "../../spritesheet.h"\n\nnamespace Impacto {\nnamespace RNE {\nclass TileBackground : public Animation {\n public:\n void Init();\n void Render() override;\n\n uint32_t Seed;\n\n int Columns;\n int Rows;\n\n float VanishingPointX;\n float...
107
3
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 18.3, "nodes": 64, "errors": 0, "source_hash": "71fcb9b09b59ba9be6022e032f426996e602ea4d7bd5e3d05f20bb0fc5456930", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
9,042
c
// // Created by Isaac on 2018/1/16. // #ifndef QN_QNMESSAGE_H #define QN_QNMESSAGE_H typedef struct QNMessage *QNMessageRef; extern QN_STRONG QNMessageRef QNMessageCreateFromPEMFile(const char *path); #endif //QN_QNMESSAGE_H
27.25
8
(translation_unit) "//\n// Created by Isaac on 2018/1/16.\n//\n\n#ifndef QN_QNMESSAGE_H\n#define QN_QNMESSAGE_H\n\ntypedef struct QNMessage *QNMessageRef;\n\nextern QN_STRONG QNMessageRef QNMessageCreateFromPEMFile(const char *path);\n\n#endif //QN_QNMESSAGE_H\n" (comment) "//" (comment) "// Created by Isaac on 201...
40
1
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 27.25, "nodes": 29, "errors": 0, "source_hash": "4310cbf40ec526afa5af5d774aa87415461cbf816601d6e7205731a9c811cecd", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef Q...
9,043
c
#pragma once #include "SQLiteDatabaseStructs.generated.h" USTRUCT(BlueprintType) struct SQLITE3UE4PLUGIN_API FSQLiteIndex { GENERATED_USTRUCT_BODY() /** String with piece if SQL script*/ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "SQLite Index") FString ResultStr = ""; /** Index name*...
25.33
88
(translation_unit) "#pragma once \n#include "SQLiteDatabaseStructs.generated.h" \n \nUSTRUCT(BlueprintType) \nstruct SQLITE3UE4PLUGIN_API FSQLiteIndex \n{ \n GENERATED_USTRUCT_BODY() \n \n /** String with piece if SQL script*/ \n UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "SQLite Index") \n FString Resul...
485
2
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 25.33, "nodes": 262, "errors": 0, "source_hash": "d168983c6085bd0c7bab547c63849131a894184624d7cb561e0c3df9b5ad6aaa", "categorized_nodes": 196}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,044
c
/** * PowerMeter API * API * * The version of the OpenAPI document: 2021.4.1 * * NOTE: This class is auto generated by OpenAPI-Generator 4.3.1. * https://openapi-generator.tech * Do not edit the class manually. */ /* * WLMVersion.h * * */ #ifndef POWERMETER_MODEL_WLMVersion_H_ #define POWERMETER_MODEL_W...
23.41
93
(translation_unit) "/**\n * PowerMeter API\n * API\n *\n * The version of the OpenAPI document: 2021.4.1\n *\n * NOTE: This class is auto generated by OpenAPI-Generator 4.3.1.\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n/*\n * WLMVersion.h\n *\n * \n */\n\n#ifndef POWERMETER_MODEL_WLM...
456
25
{"language": "c", "success": true, "metadata": {"lines": 93, "avg_line_length": 23.41, "nodes": 252, "errors": 0, "source_hash": "12e438c7b636478bac91ee80b252e107f048f1cf9a5347483b566351ee0aa41d", "categorized_nodes": 159}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,045
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/NanoRegistry.framework/NanoRegistry */ @interface NRSwitchRecord : NRPBSwitchRecord <NSSecureCoding> @property (nonatomic, retain) NSUUID *activeDeviceID; @property (nonatomic, retain) NSDate *date; + (bool)supportsSecureCoding; + (id)switch...
36.79
14
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/NanoRegistry.framework/NanoRegistry\n */\n\n@interface NRSwitchRecord : NRPBSwitchRecord <NSSecureCoding>\n\n@property (nonatomic, retain) NSUUID *activeDeviceID;\n@property (nonatomic, retain) NSDate *date;\n\n+ (bool)suppo...
160
16
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 36.79, "nodes": 100, "errors": 0, "source_hash": "fb733e74af15f85018aec0a9b2d974bf6075a16d541bda50618b371b22ff7804", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface NRSw...
9,046
c
#include <stdio.h> int numberC; extern void zad4(); extern int numberASM; int main (void) { numberC = 33; printf("Przed wykonaniem kodu asm zmienna numberC ma wartość: %d.\nZmienna numberASM jest nie zainicjowana.\n\n", numberC); zad4(); printf("Po wykonaniu numberC ma wartość: %d.\nZmienna numberASM ma wartość...
30.07
14
(translation_unit) "#include <stdio.h>\n\nint numberC;\n\nextern void zad4();\nextern int numberASM;\n\nint main (void)\n{\n numberC = 33;\n\n printf("Przed wykonaniem kodu asm zmienna numberC ma wartość: %d.\nZmienna numberASM jest nie zainicjowana.\n\n", numberC);\n zad4();\n printf("Po wykonaniu numberC ma wartość: ...
109
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 30.07, "nodes": 60, "errors": 0, "source_hash": "e7b10ebd90e5eb36190b48acc769c6dec3f8a9a1aaf0f28332f13c836871c07b", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
9,047
c
/* Copyright 2007-2016 QReal Research Group * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
38.35
167
(translation_unit) "/* Copyright 2007-2016 QReal Research Group\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless r...
1,301
51
{"language": "c", "success": true, "metadata": {"lines": 167, "avg_line_length": 38.35, "nodes": 821, "errors": 0, "source_hash": "0cea42b248b28ef8df0c6b81559161d828c1700c10ff12f65caae2d4925f4580", "categorized_nodes": 558}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
9,048
c
// CSetSystemLocal.h: Definition of the SetSystemLocal class // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_CSETSYSTEMLOCAL_H__4E8493EC_93BD_48EA_8CD5_A469C1937D7F__INCLUDED_) #define AFX_CSETSYSTEMLOCAL_H__4E8493EC_93BD_48EA_8CD5_A469C1937D7F__INCLUDED_ #pragma once...
30.94
34
(translation_unit) "// CSetSystemLocal.h: Definition of the SetSystemLocal class \n// \n////////////////////////////////////////////////////////////////////// \n \n#if !defined(AFX_CSETSYSTEMLOCAL_H__4E8493EC_93BD_48EA_8CD5_A469C1937D7F__INCLUDED_) \n#define AFX_CSETSYSTEMLOCAL_H__4E8493EC_93BD_48EA_8CD5_A469C1937D7F__...
156
7
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 30.94, "nodes": 92, "errors": 0, "source_hash": "273c329ca9493ac9970e91a46daa144ccd16f1ba3717af0abc928181fda93835", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !define...
9,049
c
// SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) /* * NETLINK Netlink attributes * * Copyright (c) 2003-2013 <NAME> <<EMAIL>> */ #include <errno.h> #include "nlattr.h" #include <linux/rtnetlink.h> #include <string.h> #include <stdio.h> static uint16_t nla_attr_minlen[LIBBPF_NLA_TYPE_MAX+1] = { [LIBBP...
30.09
159
(translation_unit) "// SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)\n\n/*\n * NETLINK Netlink attributes\n *\n * Copyright (c) 2003-2013 <NAME> <<EMAIL>>\n */\n\n#include <errno.h>\n#include "nlattr.h"\n#include <linux/rtnetlink.h>\n#include <string.h>\n#include <stdio.h>\n\nstatic uint16_t nla_attr_minlen[...
1,197
0
{"language": "c", "success": true, "metadata": {"lines": 159, "avg_line_length": 30.09, "nodes": 770, "errors": 0, "source_hash": "3d7e5661eb97d5acf91a64481c727dd257934806908f1895655627830fb23f68", "categorized_nodes": 528}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,050
c
// // ZPMessageDigest.h // ZPCryptoWrapper // // Created by EddieHua on 2022/2/5. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN /** * Some cryptographic hash functions used to generate message digests. * 一些密碼雜湊函式,用來產生訊息摘要。 */ @interface ZPMessageDigest : NSObject //MARK: - Secure Hash Algorit...
17.22
91
(translation_unit) "//\n// ZPMessageDigest.h\n// ZPCryptoWrapper\n//\n// Created by EddieHua on 2022/2/5.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n/**\n * Some cryptographic hash functions used to generate message digests.\n * 一些密碼雜湊函式,用來產生訊息摘要。\n */\n@interface ZPMessageDigest : NSOb...
241
22
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 17.22, "nodes": 156, "errors": 0, "source_hash": "0734e03c6e120815403eba5fa94e5978f9ebf26b81b218c7fdc9000edadf9136", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
9,051
c
// // Cocos2dxGDPRforGoogle.h // BidmadSDK // // Created by ADOP_Mac on 2021/04/08. // Copyright © 2021 ADOP Co., Ltd. All rights reserved. // #import <Foundation/Foundation.h> #import "BIDMADGDPRforGoogle.h" @interface Cocos2dxGDPRforGoogle : NSObject @property (strong,nonatomic) id<BIDMADGDPRforGoogleProtocol>...
29.83
23
(ERROR) "//\n// Cocos2dxGDPRforGoogle.h\n// BidmadSDK\n//\n// Created by ADOP_Mac on 2021/04/08.\n// Copyright © 2021 ADOP Co., Ltd. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "BIDMADGDPRforGoogle.h"\n\n@interface Cocos2dxGDPRforGoogle : NSObject\n\n@property (strong,nonatomic) id<BIDMAD...
146
9
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 29.83, "nodes": 83, "errors": 0, "source_hash": "74b0ed6832161e1719f29cdb1b3367b63f72fede1d20231fca9799fc47c95f5e", "categorized_nodes": 42}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// Cocos2dxGDPRforGoog...
9,052
c
extern void exit (int); int a3[3]; void f(int *a) { int i; for (i=3; --i;) a[i] = 42 / i; } int main () { f(a3); if (a3[1] != 42 || a3[2] != 21) abort (); exit (0); }
10.56
16
(translation_unit) "extern void exit (int);\nint a3[3];\n\nvoid f(int *a)\n{\n int i;\n\n for (i=3; --i;)\n a[i] = 42 / i;\n}\n\nint\nmain ()\n{\n f(a3);\n\n if (a3[1] != 42 || a3[2] != 21)\n abort ();\n\n exit (0);\n}\n" (declaration) "extern void exit (int);" (storage_class_specifier) "extern" ...
122
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 10.56, "nodes": 76, "errors": 0, "source_hash": "509dc908973fe8752c8d3365c0ce0f8ba4a6eeeda21b3d0280973d0b5a87feb6", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern voi...
9,053
c
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #pragma once // STD #include <string> #include <vector> // APSI #include "apsi/util/stopwatch.h" /** Prepare console for color output. */ void prepare_console(); /** Generate timing report for timespans. */ std::vector<...
27
30
(translation_unit) "// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\n\n#pragma once\n\n// STD\n#include <string>\n#include <vector>\n\n// APSI\n#include "apsi/util/stopwatch.h"\n\n/**\nPrepare console for color output.\n*/\nvoid prepare_console();\n\n/**\nGenerate timing...
168
8
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 27.0, "nodes": 96, "errors": 0, "source_hash": "06b44b850a8ceeb22db159470d982bd5e95c43f578126de4be31d44e844b4822", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
9,054
c
// Copyright 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef PlatformColor_h #define PlatformColor_h #include "third_party/khronos/GLES2/gl2.h" #include "third_party/khronos/GLES2/gl2ext.h" #include "third_...
30.96
51
(translation_unit) "// Copyright 2011 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef PlatformColor_h\n#define PlatformColor_h\n\n#include "third_party/khronos/GLES2/gl2.h"\n#include "third_party/khronos/GLES...
240
1
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 30.96, "nodes": 136, "errors": 0, "source_hash": "05df9725fd7c93d193eb6cfc791536aa6712830fe38bf5c40959ed5fc1505bf1", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,055
c
//---------------------------------------------------------- -*- Mode: C++ -*- // $Id$ // // Created 2012/09/11 // Author: <NAME> // // Copyright 2012,2016 Quantcast Corporation. All rights reserved. // // This file is part of Kosmos File System (KFS). // // Licensed under the Apache License, Version 2.0 // (the "Licen...
30.63
257
(translation_unit) "//---------------------------------------------------------- -*- Mode: C++ -*-\n// $Id$\n//\n// Created 2012/09/11\n// Author: <NAME>\n//\n// Copyright 2012,2016 Quantcast Corporation. All rights reserved.\n//\n// This file is part of Kosmos File System (KFS).\n//\n// Licensed under the Apache Licen...
1,668
111
{"language": "c", "success": true, "metadata": {"lines": 257, "avg_line_length": 30.63, "nodes": 1055, "errors": 0, "source_hash": "629c93bf1c3e8bda6a4e838b7618d0f803f7394ec4169821d61f344f08f344b6", "categorized_nodes": 730}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
9,056
c
#include <stdio.h> #include <string.h> #include <sys/sysinfo.h> typedef unsigned char mask; void set_mask(int begin, int end, mask *m) { if (begin > end) { end += begin; begin = end - begin; end -= begin; } for (int offset=0, i = begin; i <= end; ++i) { int offset = i / sizeof(mask); m[offset] |= 1 <...
16.18
67
(translation_unit) "#include <stdio.h>\n#include <string.h>\n#include <sys/sysinfo.h>\n\ntypedef unsigned char mask;\n\nvoid set_mask(int begin, int end, mask *m)\n{\n if (begin > end)\n {\n end += begin;\n begin = end - begin;\n end -= begin;\n }\n\n for (int offset=0, i = begin; i <= end; ++i)\n {\n int offset = ...
530
0
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 16.18, "nodes": 317, "errors": 0, "source_hash": "131f4a6e2bebb107940a326b92bfafcbb20e49eacf567fe87358c921542d47f1", "categorized_nodes": 215}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,057
c
#ifndef _ERRORS_H #define _ERRORS_H #define SUCCESS 0 #define FAILURE 1 #define ERR_FOPEN 2 #define ERR_MEM_ALLOC 3 #define ERR_PRECHECK_FAILED 4 #define ERR_PARSE_FAILED 5 #endif
16.45
11
(translation_unit) "#ifndef _ERRORS_H \n#define _ERRORS_H \n \n#define SUCCESS 0 \n#define FAILURE 1 \n#define ERR_FOPEN 2 \n#define ERR_MEM_ALLOC 3 \n#define ERR_PRECHECK_FAILED 4 \n#define ERR_PARSE_FAILED 5 \n \n#endif" (preproc_ifdef) "#ifndef _ERRORS_H \n#define _ERRORS_H \n \n#define SUCCESS 0 \n#define FAILURE...
32
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 16.45, "nodes": 31, "errors": 0, "source_hash": "ce3c5de3af3c9efc5c150acd357e1e90bccded00d39f82466f6e98246c4d31a9", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,058
c
#pragma once #include "utils/utils.h" class AudioSys { private: umap<string, Sound> sounds; SDL_AudioSpec aspec; uint8* apos; uint32 alen = 0; SDL_AudioDeviceID device; const uint8& volume; public: AudioSys(const uint8& avolume); ~AudioSys(); void play(const string& name); private: static void SDLCALL ca...
20.35
17
(translation_unit) "#pragma once\n\n#include "utils/utils.h"\n\nclass AudioSys {\nprivate:\n umap<string, Sound> sounds;\n SDL_AudioSpec aspec;\n uint8* apos;\n uint32 alen = 0;\n SDL_AudioDeviceID device;\n const uint8& volume;\n\npublic:\n AudioSys(const uint8& avolume);\n ~AudioSys();\n\n void play(const string& nam...
133
4
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 20.35, "nodes": 81, "errors": 0, "source_hash": "e180b29a59dc387764f0460538ad3ac79af4febc1a6ca90d4221150acad5e4f0", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
9,059
c
#include <std.h> #include "../marsh.h" inherit MINH; void create() { ::create(); set_exits(([ "north": RPATH "m_p008_p002", "northeast": RPATH "m_p009_p002", "southwest": RPATH "m_p007_p000", ])); }
16.58
12
(translation_unit) "#include <std.h>\n#include "../marsh.h"\n\ninherit MINH;\n\nvoid create()\n{\n ::create();\n set_exits(([\n"north": RPATH "m_p008_p002",\n"northeast": RPATH "m_p009_p002",\n"southwest": RPATH "m_p007_p000",\n\n ]));\n}\n\n" (preproc_include) "#include <std.h>\n" (#include) "#include" ...
85
3
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 16.58, "nodes": 36, "errors": 0, "source_hash": "765970f20f99e519e3d75e0ed5fa9b4e2fa563ae06a7e68c114bf9c5e6b73c04", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
9,060
c
// // TNMultiGestureTestViewController.h // BasicCairo // // Created by <NAME> on 8/8/14. // Copyright (c) 2014 Shanghai Tinynetwork. All rights reserved. // #import "TNTestViewController.h" @interface TNMultiGestureTestViewController : TNTestViewController @end
25.7
10
(translation_unit) "//\n// TNMultiGestureTestViewController.h\n// BasicCairo\n//\n// Created by <NAME> on 8/8/14.\n// Copyright (c) 2014 Shanghai Tinynetwork. All rights reserved.\n//\n\n#import "TNTestViewController.h"\n\n@interface TNMultiGestureTestViewController : TNTestViewController\n\n@end\n" (comment) "//...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 25.7, "nodes": 9, "errors": 0, "source_hash": "c33332042cd512c7a36e3ff5d5d07eff1df91c28447c89ac72d385e5a411809e", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"TN...
9,061
c
#ifndef THORIUM_DECISION_MAKER_H #define THORIUM_DECISION_MAKER_H #define THORIUM_TIMEOUT_NO_VALUE (-1) #define THORIUM_TIMEOUT_STRIDE_VALUE (50 * 1000) #define THORIUM_TIMEOUT_MINIMUM_VALUE (0 * 1000) #define THORIUM_TIMEOUT_MAXIMUM_VALUE (2 * 1000 * 1000) #define THORIUM_TIMEOUT_INITIAL_V...
43.66
29
(translation_unit) "#ifndef THORIUM_DECISION_MAKER_H\n#define THORIUM_DECISION_MAKER_H\n\n#define THORIUM_TIMEOUT_NO_VALUE (-1)\n\n#define THORIUM_TIMEOUT_STRIDE_VALUE (50 * 1000)\n#define THORIUM_TIMEOUT_MINIMUM_VALUE (0 * 1000)\n#define THORIUM_TIMEOUT_MAXIMUM_VALUE (2 * 1000 * 1000)\n#defin...
149
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 43.66, "nodes": 117, "errors": 0, "source_hash": "45a939abb9b1e85fd2c637703ec5af860fe57613677c94472eb95027af416ef1", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,062
c
#include <sys/types.h> #include <dirent.h> #include <stdlib.h> #include <stdio.h> #include <errno.h> int main(int argc, char *argv[]) { struct dirent *dirents; DIR *dir; int status; int i; for (i = 1; i < argc; i++) { dir = opendir(argv[i]); if (dir == NULL) { perror("opendir(3)"); exit(EXIT_FAILURE);...
22.02
42
(translation_unit) "#include <sys/types.h>\n#include <dirent.h>\n#include <stdlib.h>\n#include <stdio.h>\n#include <errno.h>\n\nint main(int argc, char *argv[])\n{\n struct dirent *dirents;\n DIR *dir;\n\n int status;\n int i;\n\n for (i = 1; i < argc; i++) {\n dir = opendir(argv[i]);\n if (dir == NULL) {\n perror(...
364
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 22.02, "nodes": 216, "errors": 0, "source_hash": "df99375e958fe005cde9f1138cead0de58cabe4b417ede64b7dd3bec3040ffb2", "categorized_nodes": 161}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,063
c
///* Define to prevent recursive inclusion -------------------------------------*/ //#ifndef __COMM_H //#define __COMM_H //#ifdef __cplusplus // extern "C" { //#endif // //#include "main.h" // ////extern const uint8_t TxBuffSize; ////const uint8_t RxBuffSize = 255; //// ////extern uint8_t USART1_TxBuffe...
29.44
57
(translation_unit) "///* Define to prevent recursive inclusion -------------------------------------*/\n//#ifndef __COMM_H\n//#define __COMM_H\n//#ifdef __cplusplus\n// extern "C" {\n//#endif\n// \n//#include "main.h"\n// \n\n////extern const uint8_t TxBuffSize;\n////const uint8_t RxBuffSize = 255;\n//// \n...
56
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 29.44, "nodes": 0, "errors": 0, "source_hash": "5296fadd8ec92cefbdcdaa8879eaaf585058a4936eb301202d90d5849533a284", "categorized_nodes": 0}, "ast": {"root": "translation_unit", "nodes": []}, "node_categories": {"declarations": {"functions": ...
9,064
c
#ifndef __TEST_H__ #define __TEST_H__ #include "aes.h" #define CHECK_OUTPUT (0x1 << 0) #define CHECK_RET (0x1 << 1) #define CHECK_STATE (0x1 << 2) #define CHECK_KEY_CTR (0x1 << 3) #define CHECK_AES_CTR (0x1 << 4) #define CHECK_AES_CTX (0x1 << 5) /* This file contains our test vector format */ typedef stru...
25.87
52
(translation_unit) "#ifndef __TEST_H__\n#define __TEST_H__\n\n#include "aes.h"\n\n#define CHECK_OUTPUT (0x1 << 0)\n#define CHECK_RET (0x1 << 1)\n#define CHECK_STATE (0x1 << 2)\n#define CHECK_KEY_CTR (0x1 << 3)\n#define CHECK_AES_CTR (0x1 << 4)\n#define CHECK_AES_CTX (0x1 << 5)\n\n\n/* This file contains our t...
266
0
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 25.87, "nodes": 192, "errors": 0, "source_hash": "6113cbfaabb0e64c86e50afc7df4590d4495050a1dcb21c91c0e0bd73eb79b14", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,065
c
// // DNViewController.h // DonePod // // Created by atakan.yildiz on 05/03/2016. // Copyright (c) 2016 atakan.yildiz. All rights reserved. // @import UIKit; @interface DNViewController : UIViewController @end
20.4
10
(translation_unit) "//\n// DNViewController.h\n// DonePod\n//\n// Created by atakan.yildiz on 05/03/2016.\n// Copyright (c) 2016 atakan.yildiz. All rights reserved.\n//\n\n@import UIKit;\n\n@interface DNViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// DNViewController.h" (comment) "/...
22
5
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.4, "nodes": 10, "errors": 0, "source_hash": "5d3551b116609a1bde38b2e293a2cfcdd7b374e908f3dfe7231f094dd417fed8", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": null...
9,066
c
// // GPUImageFramebuffer.h // GPUImage // // Created by yfm on 2021/9/14. // // 帧缓存对象,管理其附着的纹理和渲染缓存 #import <Foundation/Foundation.h> #import <OpenGLES/EAGL.h> #import <OpenGLES/ES2/gl.h> #import <OpenGLES/ES2/glext.h> #import <QuartzCore/QuartzCore.h> #import <CoreMedia/CoreMedia.h> NS_ASSUME_NONNULL_BEGIN t...
22.33
42
(translation_unit) "//\n// GPUImageFramebuffer.h\n// GPUImage\n//\n// Created by yfm on 2021/9/14.\n//\n// 帧缓存对象,管理其附着的纹理和渲染缓存\n\n#import <Foundation/Foundation.h>\n\n#import <OpenGLES/EAGL.h>\n#import <OpenGLES/ES2/gl.h>\n#import <OpenGLES/ES2/glext.h>\n\n#import <QuartzCore/QuartzCore.h>\n#import <CoreMedia/CoreM...
187
24
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 22.33, "nodes": 123, "errors": 0, "source_hash": "34e022a8375f66a07129a442bd9cd48e43bae23febe84f927166c4443cfa7839", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Op...
9,067
c
// // ZZChatBoxRecordStatusView.h // zuwome // // Created by angBiu on 2017/7/6. // Copyright © 2017年 zz. All rights reserved. // #import <UIKit/UIKit.h> /** 录音进度状态view */ @interface ZZChatBoxRecordStatusView : UIView @property (nonatomic, assign) NSInteger duration; - (void)outsideStatus; - (void)insideStatu...
19.25
16
(translation_unit) "//\n// ZZChatBoxRecordStatusView.h\n// zuwome\n//\n// Created by angBiu on 2017/7/6.\n// Copyright © 2017年 zz. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n/**\n 录音进度状态view\n */\n@interface ZZChatBoxRecordStatusView : UIView\n\n@property (nonatomic, assign) NSInteger duration;\n\n- (vo...
57
6
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 19.25, "nodes": 33, "errors": 0, "source_hash": "e110f6df7063a39467f38e5a44b81446d530415adcbca8adca0884603190a921", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
9,068
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import <UIKit/UIImage.h> @interface UIImage (APMResize) + (id)APMimageWithImage:(id)arg1 scaledToSize:(struct CGSize)arg2; @end
33.11
9
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.\n//\n\n#import <UIKit/UIImage.h>\n\n@interface UIImage (APMResize)\n+ (id)APMimageWithImage:(id)arg1 scaledToSize:(struct ...
52
5
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 33.11, "nodes": 29, "errors": 0, "source_hash": "dad52467a7142e91c0601768661f636acfaca4d2f857a6c831fea27a11c19946", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <U...
9,069
c
// // UIColor+STX_Addons.h // MobileToolkit // // Created by <NAME> on 18/03/2014. // Copyright (c) 2014 <NAME>. All rights reserved. // // This is a part of STXMobileToolkit project. // Project home page: http://mobiletoolkit.org // Project sources: https://github.com/suntrix/STXMobileToolkit-iOS // #import <U...
33.43
51
(translation_unit) "//\n// UIColor+STX_Addons.h\n// MobileToolkit\n//\n// Created by <NAME> on 18/03/2014.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n// This is a part of STXMobileToolkit project.\n// Project home page: http://mobiletoolkit.org\n// Project sources: https://github.com/suntrix/STXMob...
126
15
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 33.43, "nodes": 74, "errors": 0, "source_hash": "404cc5fdcece985c21943ea783fdd8e0ae72fa4b84974b85fcb1c47043240294", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
9,070
c
#ifndef _NESDISASMVIEW_H #define _NESDISASMVIEW_H #include "disasmview.h" class NesMachine; class CNesDisasmView : public CDisasmView { NesMachine *m_pNes; protected: void OnMenuCommand(Uint32 uCmd); public: CNesDisasmView(); void SetView(NesMachine *pNes); virtual Int32 Disasm(Uin...
15
24
(translation_unit) "#ifndef _NESDISASMVIEW_H \n#define _NESDISASMVIEW_H \n \n#include "disasmview.h" \n \nclass NesMachine; \n \nclass CNesDisasmView : public CDisasmView \n{ \n NesMachine *m_pNes; \n \nprotected: \n void OnMenuCommand(Uint32 uCmd); \n \npublic: \n CNesDisasmView(); \n \n void SetView(NesMachine *pNes...
102
3
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 15.0, "nodes": 66, "errors": 0, "source_hash": "1253e092080f89684db8b18709b4ebf7b6e337f3c09f5ee4acabee91c0998259", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
9,071
c
#define AUTIL_IMPLEMENTATION #include "../autil.h" #include "test.h" int main(void) { struct autil_vec* const v = autil_vec_new(sizeof(int)); autil_vec_resize(v, 10); EXPECT(autil_vec_count(v) == 10); EXPECT(autil_vec_capacity(v) >= 10); autil_vec_resize(v, 100); EXPECT(autil_vec_count(v) == ...
27.11
19
(translation_unit) "#define AUTIL_IMPLEMENTATION\n#include "../autil.h"\n#include "test.h"\n\nint\nmain(void)\n{\n struct autil_vec* const v = autil_vec_new(sizeof(int));\n\n autil_vec_resize(v, 10);\n EXPECT(autil_vec_count(v) == 10);\n EXPECT(autil_vec_capacity(v) >= 10);\n\n autil_vec_resize(v, 100);\...
189
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 27.11, "nodes": 112, "errors": 0, "source_hash": "82fd6abbcd4fe5810f5efe2a566b6de3be7e9c6cefafb33ed57d2e5fef50c323", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define A...
9,072
c
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Driver for Zarlink DVB-T MT352 demodulator * * Written by <NAME> <<EMAIL>> * and <NAME> <<EMAIL>> * * AVerMedia AVerTV DVB-T 771 support by * <NAME> <<EMAIL>> * * Support for Samsung TDTC9251DH01C(M) tuner * Copyright (C) 2004 <NAME> <<EMAIL>> ...
27.23
107
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0-or-later */\n/*\n * Driver for Zarlink DVB-T MT352 demodulator\n *\n * Written by <NAME> <<EMAIL>>\n * and <NAME> <<EMAIL>>\n *\n * AVerMedia AVerTV DVB-T 771 support by\n * <NAME> <<EMAIL>>\n *\n * Support for Samsung TDTC9251DH01C(M) tuner\n * Copyri...
443
0
{"language": "c", "success": true, "metadata": {"lines": 107, "avg_line_length": 27.23, "nodes": 351, "errors": 0, "source_hash": "f4ab64e767dc1a3ef9742a318d349072fe1c1a1349f9daecae830f22996f095f", "categorized_nodes": 257}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
9,073
c
/* * Copyright (c) 2020-2021 Gscienty <<EMAIL>> * * Distributed under the MIT software license, see the accompanying * file LICENSE or https://www.opensource.org/licenses/mit-license.php . * */ #ifndef __OPENQUIC_ADDR_H__ #define __OPENQUIC_ADDR_H__ #include "liteco.h" #include "platform/platform.h" #include <n...
29.36
47
(translation_unit) "/*\n * Copyright (c) 2020-2021 Gscienty <<EMAIL>>\n *\n * Distributed under the MIT software license, see the accompanying\n * file LICENSE or https://www.opensource.org/licenses/mit-license.php .\n *\n */\n\n#ifndef __OPENQUIC_ADDR_H__\n#define __OPENQUIC_ADDR_H__\n\n#include "liteco.h"\n#include "...
308
3
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 29.36, "nodes": 188, "errors": 0, "source_hash": "fd686f9b2bb241b76d1658e0620e06b8a523ab09c4fc76b22a8631f2ed242373", "categorized_nodes": 149}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,074
c
#include <stdlib.h> #include "fileReader.h" void filereader_create(filereader_t *self, FILE *fp) { self->fp = fp; } void filereader_destroy(filereader_t *self) { fclose(self->fp); } int filereader_next(filereader_t *self, char** line) { size_t len = 0; return getline(line, &len, self->fp); }
24.75
12
(translation_unit) "#include <stdlib.h>\n#include "fileReader.h"\n\nvoid filereader_create(filereader_t *self, FILE *fp) {\n self->fp = fp;\n}\n\nvoid filereader_destroy(filereader_t *self) {\n fclose(self->fp);\n}\n\nint filereader_next(filereader_t *self, char** line) {\n size_t len = 0;\n return getline(...
114
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 24.75, "nodes": 76, "errors": 0, "source_hash": "e61eea1c0ca6142febd853af35db57653bc3385ed62105274c042a2003ff4b97", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
9,075
c
#include <stdlib.h> struct node; struct node { struct node *next; }; int main(int argc, char **argv) { struct node head; struct node *last = head.next; for(int i = 0; i < argc; i++) { last = last->next; } return (int)last; }
17.54
13
(translation_unit) "#include <stdlib.h>\n\nstruct node;\n\nstruct node {\n struct node *next;\n};\n\nint main(int argc, char **argv) {\n struct node head;\n struct node *last = head.next;\n for(int i = 0; i < argc; i++) {\n last = last->next;\n }\n return (int)last;\n}\n" (preproc_include) "#include <stdlib....
104
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 17.54, "nodes": 73, "errors": 0, "source_hash": "5786e578b86110c0c8aea6671736722596a755d6f449d1c4e140172c8078483a", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
9,076
c
#ifndef MATH_MOD_H #define MATH_MOD_H namespace Math { int mod(int n, int m); } #endif // MATH_MOD_H
16.17
6
(translation_unit) "#ifndef MATH_MOD_H\n#define MATH_MOD_H\n\nnamespace Math {\n int mod(int n, int m);\n}\n\n#endif // MATH_MOD_H\n" (preproc_ifdef) "#ifndef MATH_MOD_H\n#define MATH_MOD_H\n\nnamespace Math {\n int mod(int n, int m);\n}\n\n#endif" (#ifndef) "#ifndef" (identifier) "MATH_MOD_H" (preproc_...
30
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 16.17, "nodes": 21, "errors": 0, "source_hash": "d6072e20779e25601ceae3652b586df023645f0a60290d0454e3cccdda614140", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef M...
9,077
c
#ifndef QPANO3MAINWINDOW_H #define QPANO3MAINWINDOW_H #include <QMainWindow> #include "GwLabelPanel.h" namespace Ui { class QPano3MainWindow; } class QPano3MainWindow : public QMainWindow { Q_OBJECT public: explicit QPano3MainWindow(QWidget *parent = nullptr); ~QPano3MainWindow(); private: Ui::QPa...
21.91
23
(translation_unit) "#ifndef QPANO3MAINWINDOW_H\n#define QPANO3MAINWINDOW_H\n\n#include <QMainWindow>\n#include "GwLabelPanel.h"\n\nnamespace Ui {\n class QPano3MainWindow;\n}\n\nclass QPano3MainWindow : public QMainWindow\n{\n Q_OBJECT\n\npublic:\n explicit QPano3MainWindow(QWidget *parent = nullptr);\n ~QPano...
130
5
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 21.91, "nodes": 79, "errors": 0, "source_hash": "b8f8ee7467eee708ce26292fcc2327a9c18a3682479519ed22dc10d33adba6ac", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,078
c
// // UIButton+ClickOnce.h // 设置按钮的背景色(不可选中颜色) // // Created by zhouyun on 2016/11/14. // Copyright © 2016年 zhouyun. All rights reserved. // 参考作者:http://www.cocoachina.com/ios/20150911/13260.html #import <UIKit/UIKit.h> #import <Foundation/Foundation.h> @interface UIButton (ClickOnce) /** * 设置重复点击加间隔 */ @prop...
24.73
15
(translation_unit) "//\n// UIButton+ClickOnce.h\n// 设置按钮的背景色(不可选中颜色)\n//\n// Created by zhouyun on 2016/11/14.\n// Copyright © 2016年 zhouyun. All rights reserved.\n// 参考作者:http://www.cocoachina.com/ios/20150911/13260.html\n\n#import <UIKit/UIKit.h>\n#import <Foundation/Foundation.h>\n\n@interface UIButton (ClickOn...
43
8
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 24.73, "nodes": 28, "errors": 0, "source_hash": "a45181baaaf404842d89cc6d6e1ad20c80fdb97d80fb0e9c79102b364fbb30ea", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "oundation...
9,079
c
// // QNIMError.h // QNIMSDK // // Created by 郭茜 on 2021/6/1. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN typedef NS_ENUM(NSUInteger, QNIMErrorCode) { QNIMNoError = 0, QNIMGeneralError = 1, QNIMInvalidParam = 2, QNIMNotFound = 3, QNIMUserNotLogin = 4, QNIMUserAlready...
28.99
104
(translation_unit) "//\n// QNIMError.h\n// QNIMSDK\n//\n// Created by 郭茜 on 2021/6/1.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\ntypedef NS_ENUM(NSUInteger, QNIMErrorCode) {\n QNIMNoError = 0,\n \n QNIMGeneralError = 1,\n QNIMInvalidParam = 2,\n QNIMNotFound = 3,\n\n QNI...
563
11
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 28.99, "nodes": 382, "errors": 0, "source_hash": "90c250f9c3bc870d3d2df1987a4d944f41cddfb01dcdb970879fa74ac9b3a3e0", "categorized_nodes": 353}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ort <F...
9,080
c
/* * NASA Docket No. GSC-18,370-1, and identified as "Operating System Abstraction Layer" * * Copyright (c) 2019 United States Government as represented by * the Administrator of the National Aeronautics and Space Administration. * All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the...
32.05
62
(translation_unit) "/*\n * NASA Docket No. GSC-18,370-1, and identified as "Operating System Abstraction Layer"\n *\n * Copyright (c) 2019 United States Government as represented by\n * the Administrator of the National Aeronautics and Space Administration.\n * All Rights Reserved.\n *\n * Licensed under the Apach...
302
0
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 32.05, "nodes": 196, "errors": 0, "source_hash": "a216c89b398aa5ff7983e91a2f0a9d1999189b098c2bf7c6b19f5240644fec56", "categorized_nodes": 142}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
9,081
c
#pragma once namespace vi { /// <summary> /// Minimal string class that also functions as an array. /// </summary> class String final : public ArrayPtr<char> { public: String(); explicit String(FreeListAllocator& allocator); String(const char* buffer, FreeListAllocator& allocator); String(size_t size, F...
26.1
20
(translation_unit) "ragma once\n\nnamespace vi\n{\n /// <summary>\n /// Minimal string class that also functions as an array.\n /// </summary>\n class String final : public ArrayPtr<char>\n {\n public:\n String();\n explicit String(FreeListAllocator& allocator);\n String(const char* buffer, FreeListAllocator& alloca...
126
7
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 26.1, "nodes": 77, "errors": 0, "source_hash": "5695b7546053d839f2bc2a4de5b6c389e7c8865e6bf2634f40743da8d4fdaec9", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma once...
9,082
c
/****************************************************************************** * Copyright 2018 The Apollo 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 ...
30.6
93
(translation_unit) "/******************************************************************************\n * Copyright 2018 The Apollo 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 ...
319
9
{"language": "c", "success": true, "metadata": {"lines": 93, "avg_line_length": 30.6, "nodes": 180, "errors": 0, "source_hash": "552093ce2a2f389961b12a161059e54aae28303c849d981fc04b4ef95bf7f259", "categorized_nodes": 122}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
9,083
c
#include <stdlib.h> #include <string.h> #include "error.h" #include "lexer.h" #include <ctype.h> lexer_t *lexer_init(const char *src) { lexer_t *lex; assertion(src); lex = calloc(1, sizeof(lexer_t)); if (!lex) { return NULL; } lex->src = calloc(1, sizeof(char) * ((lex->len = strlen(src)) + 1)); ...
20.2
94
(translation_unit) "#include <stdlib.h>\n#include <string.h>\n\n#include "error.h"\n#include "lexer.h"\n\n#include <ctype.h>\n\nlexer_t *lexer_init(const char *src) {\n lexer_t *lex;\n\n assertion(src);\n\n lex = calloc(1, sizeof(lexer_t));\n\n if (!lex) {\n return NULL;\n }\n\n lex->src = calloc(1, sizeof(cha...
810
0
{"language": "c", "success": true, "metadata": {"lines": 94, "avg_line_length": 20.2, "nodes": 495, "errors": 0, "source_hash": "4bba8c0078a7edc1ded48d44919c8eba93691cd9733b3cb429563d34f752b9d1", "categorized_nodes": 346}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
9,084
c
// // GGRecomHeaderModel.h // ThePeopleTV // // Created by aoyolo on 16/3/30. // Copyright © 2016年 高广. All rights reserved. // #import <Foundation/Foundation.h> @interface GGRecomHeaderModel : NSObject @property (nonatomic , copy)NSString *name; @property (nonatomic , copy)NSString *slug; @end
23.92
12
(translation_unit) "//\n// GGRecomHeaderModel.h\n// ThePeopleTV\n//\n// Created by aoyolo on 16/3/30.\n// Copyright © 2016年 高广. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface GGRecomHeaderModel : NSObject\n@property (nonatomic , copy)NSString *name;\n@property (nonatomic , copy)NSString...
54
10
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 23.92, "nodes": 36, "errors": 0, "source_hash": "8e0bc278d12375a8b5025ebe4704b5854b5091dd74a813e247eed858570fc73f", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <Foundat...
9,085
c
/*********************** Conway's Game of Life Serial version ************************/ #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include "timer.h" #define NI 960 /* array sizes */ #define NJ 960 #define NSTEPS 150 /* number of time steps */ #def...
23.57
100
(translation_unit) "/***********************\nConway's Game of Life\nSerial version\n************************/\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <sys/types.h>\n#include <sys/stat.h>\n#include <unistd.h>\n#include "timer.h"\n\n#define NI 960 /* array sizes */\n#define NJ 960\n#define NSTEPS 150 ...
1,005
0
{"language": "c", "success": true, "metadata": {"lines": 100, "avg_line_length": 23.57, "nodes": 623, "errors": 0, "source_hash": "f3be121934538dd553037f558c9480b50e237ac52c96905cd3ab1bf3af65b2e7", "categorized_nodes": 445}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,086
c
#import <Foundation/Foundation.h> #import "OAIObject.h" /** * Location API * Geolocation, Geocoding and Maps * * OpenAPI spec version: 2.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ #import "...
33.34
61
(translation_unit) "#import <Foundation/Foundation.h>\n#import "OAIObject.h"\n\n/**\n* Location API\n* Geolocation, Geocoding and Maps\n*\n* OpenAPI spec version: 2.0.0\n* \n*\n* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n* https://openapi-generator.tech\n* Do not edit th...
288
62
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 33.34, "nodes": 225, "errors": 0, "source_hash": "7ce738de4a6e7cb7166477f77e4e41c340f28a626c8b449a9282499f8f06ac1d", "categorized_nodes": 112}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
9,087
c
// 07/08/2015 // TinyEnet - Minimalistic Networking engine // Wrapper for ENet Networking Engine // Copyright (c) 2015 <NAME> // // #ifndef TNET_H #define TNET_H #include <enet/enet.h> #include <stdio.h> #include "TServer.h" #include "TClient.h" #include "TPacket.h" #ifdef _WIN32 // Note the underscore: witho...
23.1
30
(translation_unit) "// 07/08/2015\n// TinyEnet - Minimalistic Networking engine\n// Wrapper for ENet Networking Engine\n// Copyright (c) 2015 <NAME>\n//\n//\n\n#ifndef TNET_H\n#define TNET_H\n\n#include <enet/enet.h>\n#include <stdio.h>\n\n#include "TServer.h"\n#include "TClient.h"\n#include "TPacket.h"\n\n #ifdef...
87
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 23.1, "nodes": 58, "errors": 0, "source_hash": "67acd00d3da0c3dd6c952ac069be6f310abce67e7b2ac08b53047293562a8f30", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef T...
9,088
c
#pragma once #include <memory> #include <vector> #include <mtt/render/DrawPlan/AbstractAction.h> #include <mtt/render/DrawPlan/ActionMemoryPool.h> namespace mtt { class DrawBin { public: DrawBin(ActionMemoryPool& memoryPool); DrawBin(const DrawBin&) = delete; DrawBin& operator = (const DrawBin&) = delete; ...
27.89
72
(translation_unit) "#pragma once\n\n#include <memory>\n#include <vector>\n\n#include <mtt/render/DrawPlan/AbstractAction.h>\n#include <mtt/render/DrawPlan/ActionMemoryPool.h>\n\nnamespace mtt\n{\n class DrawBin\n {\n public:\n DrawBin(ActionMemoryPool& memoryPool);\n DrawBin(const DrawBin&) = delete;\n DrawBin& oper...
643
52
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 27.89, "nodes": 399, "errors": 0, "source_hash": "8472160747e1847d5b3036e43dd23ea072709794d6212c4b1bfaeae01a300d8e", "categorized_nodes": 268}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
9,089
c
#ifndef _R__IO_H #define _R__IO_H #include<stdio.h> char getch(); void clrscr(); char getch() { getchar(); return getchar(); } void clrscr() { system("clear"); } #endif
10.47
15
(translation_unit) "#ifndef _R__IO_H\n#define _R__IO_H\n\n#include<stdio.h>\n\nchar getch();\nvoid clrscr();\n\nchar getch()\n{\n getchar();\n return getchar();\n}\n\nvoid clrscr()\n{\n system("clear");\n}\n\n#endif\n" (preproc_ifdef) "#ifndef _R__IO_H\n#define _R__IO_H\n\n#include<stdio.h>\n\nchar getch();\nvoid clr...
73
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 10.47, "nodes": 41, "errors": 0, "source_hash": "5be7a8044f006343088517c53a5fcb1bd3dcffea8db1ab2c4bad25c13f0e3525", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
9,090
c
#pragma once #include <array> #include <optional> #include <vector> class Stack { private: std::vector<int> elements{}; std::optional<int> default_value{}; public: [[nodiscard]] bool is_empty() const noexcept; void push(int element); int pop(); [[nodiscard]] std::size_t size() const noexcept; ...
28.3
44
(translation_unit) "#pragma once\n#include <array>\n#include <optional>\n#include <vector>\n\nclass Stack\n{\nprivate:\n std::vector<int> elements{};\n std::optional<int> default_value{};\n\npublic:\n [[nodiscard]] bool is_empty() const noexcept;\n void push(int element);\n int pop();\n [[nodiscard]] ...
421
21
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 28.3, "nodes": 263, "errors": 0, "source_hash": "c70f6f836088a06e8744feaca1ab89c2f58938f90a02106e9660eb1236870908", "categorized_nodes": 144}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
9,091
c
#pragma once /* simple constant string cache table using STL unordered_map as storage */ #ifdef __cplusplus extern "C" { #endif extern const char *cstrcache_get(const char *str); #ifdef __cplusplus } #endif
22
9
(translation_unit) "#pragma once\n\n/* simple constant string cache table using STL unordered_map as storage */\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\nextern const char *cstrcache_get(const char *str);\n\n#ifdef __cplusplus\n}\n#endif\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (p...
45
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 22.0, "nodes": 30, "errors": 0, "source_hash": "07ab55a0247e67c1a1a83b1c49663903c9dd9abd2bb5d2c898ffc9f5c20209e2", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
9,092
c
/************************************************************************* <NAME> *************************************************************************/ class hanaawas_state : public driver_device { public: hanaawas_state(const machine_config &mconfig, device_type type, const char *tag) : driver...
22.97
33
(translation_unit) "/************************************************************************* \n \n <NAME> \n \n*************************************************************************/ \n \nclass hanaawas_state : public driver_device \n{ \npublic: \n hanaawas_state(const machine_config &mconfig, device_type type,...
132
5
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 22.97, "nodes": 70, "errors": 0, "source_hash": "57eac56b12edc5c4a42400bcbd9dffc6299dca118c144aef2300d3283133ef59", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "cl...
9,093
c
/* * This header is generated by classdump-dyld 1.5 * on Wednesday, April 14, 2021 at 2:27:09 PM Mountain Standard Time * Operating System: Version 14.4 (Build 18K802) * Image Source: /System/Library/Frameworks/StoreKit.framewor...
39.81
26
(translation_unit) "/*\n * This header is generated by classdump-dyld 1.5\n * on Wednesday, April 14, 2021 at 2:27:09 PM Mountain Standard Time\n * Operating System: Version 14.4 (Build 18K802)\n * Image Source: /System/Library/Fram...
114
7
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 39.81, "nodes": 86, "errors": 0, "source_hash": "d2d2ef2d86226c3724cb4a14e7d4feb23dbc5c3d68fc0e5066c3274d0c606e92", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "c", "parent": nu...
9,094
c
// // UILabel+Ext.h // // // Created by <NAME> on 6/24/13. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface UILabel(Ext) - (void)extAddPlaceHolderText:(NSString *)placeHolderText; - (void)extRemovePlaceHolderText:(NSString *)placeHolderText; @end
24.17
12
(translation_unit) "//\n// UILabel+Ext.h\n// \n//\n// Created by <NAME> on 6/24/13.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface UILabel(Ext)\n- (void)extAddPlaceHolderText:(NSString *)placeHolderText;\n- (void)extRemovePlaceHolderText:(NSString *)placeH...
59
7
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 24.17, "nodes": 33, "errors": 0, "source_hash": "f092332d87aa574c8b3ab1bc28b58da2a72e469190fe5d0a4981f4e35c5f7284", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
9,095
c
#ifndef __CONST_GAME_H__ #define __CONST_GAME_H__ #if defined(_MSC_VER) #if _MSC_VER < 1900 #define _constexpr const #define _noexcept throw() #endif #endif enum class SceneTags : int { SCENE_NONE, SCENE_GAME, }; #endif // __CONST_GAME_H__
14.41
17
(translation_unit) "#ifndef __CONST_GAME_H__ \n#define __CONST_GAME_H__ \n \n#if defined(_MSC_VER) \n#if _MSC_VER < 1900 \n#define _constexpr const \n#define _noexcept throw() \n#endif \n#endif \n \nenum class SceneTags : int { \n SCENE_NONE, \n SCENE_GAME, \n}; \n \n \n#endif // __CONST_GAME_H__ \n" (ERROR) "#ifndef...
52
3
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 14.41, "nodes": 39, "errors": 0, "source_hash": "8710566472e08fd1053a428fef0e281bbfcc794093a739e3318136f6bf44b23f", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef __CONST_...
9,096
c
#ifndef BR_RLP_Coder_H #define BR_RLP_Coder_H #include <stddef.h> #include <stdint.h> #include "BRInt.h" #ifdef __cplusplus extern "C" { #endif // // RLP Coder // typedef struct BRRlpCoderRecord *BRRlpCoder; extern BRRlpCoder rlpCoderCreate (void); extern void rlpCoderRelease (BRRlpCoder coder); // // RLP Data //...
23.51
95
(translation_unit) "#ifndef BR_RLP_Coder_H\n#define BR_RLP_Coder_H\n\n#include <stddef.h>\n#include <stdint.h>\n#include "BRInt.h"\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n//\n// RLP Coder\n//\ntypedef struct BRRlpCoderRecord *BRRlpCoder;\n\nextern BRRlpCoder\nrlpCoderCreate (void);\n\nextern void\nrlpCoderReleas...
549
0
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 23.51, "nodes": 394, "errors": 0, "source_hash": "7565a997700347a0779f724f8085146b40a56492c180e8084a61aea45d29a621", "categorized_nodes": 284}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,097
c
/* * mm/fadvise.c * * Copyright (C) 2002, <NAME> * * 11Jan2003 <EMAIL> * Initial version. */ #include <linux/kernel.h> #include <linux/file.h> #include <linux/fs.h> #include <linux/mm.h> #include <linux/pagemap.h> #include <linux/backing-dev.h> #include <linux/pagevec.h> #include <linux/fadvise.h> #include <li...
23.91
103
(translation_unit) "/*\n * mm/fadvise.c\n *\n * Copyright (C) 2002, <NAME>\n *\n * 11Jan2003 <EMAIL>\n * Initial version.\n */\n\n#include <linux/kernel.h>\n#include <linux/file.h>\n#include <linux/fs.h>\n#include <linux/mm.h>\n#include <linux/pagemap.h>\n#include <linux/backing-dev.h>\n#include <linux/pagevec.h>\n#in...
626
0
{"language": "c", "success": true, "metadata": {"lines": 103, "avg_line_length": 23.91, "nodes": 431, "errors": 0, "source_hash": "93baa380c7ea8410ddd0bbf10886482ad9c4343e7a3a6ea7783f10874f3375f1", "categorized_nodes": 331}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
9,098
c
//===- llvm/unittest/Transforms/Vectorize/VPlanTestBase.h -----------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
39.27
59
(translation_unit) "//===- llvm/unittest/Transforms/Vectorize/VPlanTestBase.h -----------------===//\n//\n// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.\n// See https://llvm.org/LICENSE.txt for license information.\n// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception\n//\n//===-...
482
22
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 39.27, "nodes": 274, "errors": 0, "source_hash": "28864ef5fa211dbb68a5e23106a672b09613099428c806c1b11f8c2373e61d5c", "categorized_nodes": 199}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
9,099