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
/****************************************************************************** __doc__ = """ animation.py - TLC5971 & FancyLED & 2D Array / Mapping. it combines the TLC5971 library with FancyLED and 2D Array / Mapping. Enjoy the colors :-) """ libraries used: ~ slight_DebugMenu ...
35.91
184
(translation_unit) "/******************************************************************************\n\n __doc__ = """\n animation.py - TLC5971 & FancyLED & 2D Array / Mapping.\n\n it combines the TLC5971 library with FancyLED and 2D Array / Mapping.\n\n Enjoy the colors :-)\n """\n\n libraries used:\n...
767
16
{"language": "c", "success": true, "metadata": {"lines": 184, "avg_line_length": 35.91, "nodes": 466, "errors": 0, "source_hash": "9e7eccf3c5784d2556c363621afa43fa495a623b1f8cc75e0ea1f2b9892bfed6", "categorized_nodes": 293}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,200
c
// // AppDelegate.h // ProtocolInjection // // Created by 李浩 on 2019/12/8. // Copyright © 2019 GodL. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @end
19
11
(translation_unit) "//\n// AppDelegate.h\n// ProtocolInjection\n//\n// Created by 李浩 on 2019/12/8.\n// Copyright © 2019 GodL. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface AppDelegate : UIResponder <UIApplicationDelegate>\n\n\n@end\n\n" (comment) "//" (comment) "// AppDelegate.h" (comment...
25
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 19.0, "nodes": 15, "errors": 0, "source_hash": "737f8597fc1880253eb7f8f92dc3683497a422bc7675215255b99aefff625402", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "rt <UIKit/U...
2,201
c
/****************************************************************************//* * Copyright (C) 2020 <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the Licens...
41.61
109
(translation_unit) "/****************************************************************************//*\n * Copyright (C) 2020 <NAME>\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, eithe...
847
49
{"language": "c", "success": true, "metadata": {"lines": 109, "avg_line_length": 41.61, "nodes": 564, "errors": 0, "source_hash": "3119d7dc13794a0ea657356fcc614954b2fced2dbb3098492030bbc4e0ad87d4", "categorized_nodes": 392}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,202
c
/** 33. Search in Rotated Sorted Array [Medium] Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]). You are given a target value to search. If found in the array return its index, otherwise return -1. You may a...
22.51
108
(translation_unit) "/**\n 33. Search in Rotated Sorted Array [Medium]\n \n Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.\n \n (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]).\n \n You are given a target value to search. If found in the array return its index, otherw...
505
0
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 22.51, "nodes": 302, "errors": 0, "source_hash": "d6bca53ea5a9107069959386012385e4a20620ef31592e752a5bd3bd081839e6", "categorized_nodes": 227}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": ...
2,203
c
/*---------------------------------------- * ripmime-api * * Written by <NAME> * <EMAIL> * * (C)2001 P.L.Daniels * http://www.pldaniels.com/ripmime * */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <sys/types.h> #include <fcntl.h> #include <unistd.h> #include <time....
26.48
120
(translation_unit) "/*----------------------------------------\n * ripmime-api\n *\n * Written by <NAME>\n * <EMAIL>\n *\n * (C)2001 P.L.Daniels\n * http://www.pldaniels.com/ripmime\n *\n */\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <sys/stat.h>\n#include <sys/types.h>\n#include <fcntl.h>\...
524
0
{"language": "c", "success": true, "metadata": {"lines": 120, "avg_line_length": 26.48, "nodes": 302, "errors": 0, "source_hash": "35d8d798d62e8e50e0bb062f4259572589b0cb122eb68a8f58bcf94f8c9e4121", "categorized_nodes": 227}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,204
c
// // HYStringTool.h // HaoYuClient // // Created by 刘文强 on 2018/5/18. // Copyright © 2018年 LWQ. All rights reserved. // #import <Foundation/Foundation.h> @interface HYStringTool : NSObject + (instancetype)share; /** 金额 逗号 分割(内部 分->元) 2位小数 */ -(NSString*)strmethodCommaWith:(NSString *)price; /** 金额 逗号 分割(内部...
20.69
71
(translation_unit) "//\n// HYStringTool.h\n// HaoYuClient\n//\n// Created by 刘文强 on 2018/5/18.\n// Copyright © 2018年 LWQ. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface HYStringTool : NSObject\n\n+ (instancetype)share;\n\n/**\n 金额 逗号 分割(内部 分->元) 2位小数\n */\n-(NSString*)strmethodCommaWith...
400
34
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 20.69, "nodes": 249, "errors": 0, "source_hash": "ac5f8e53ab7cff16c777402d647947a7e7ebae5ff2c2daeb2fced92f7b3c1eef", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Foundat...
2,205
c
////////////////////////////////////////////////////////////////////////// // Micro Game Engine - CPlayerArea class // // Tbis class implements ////////////////////////////////////////////////////////////////////////// #if !defined(_CPlayerArea_) #define _CPlayerArea_ //include some objects deteclarations #include "C...
27.53
118
(translation_unit) "//////////////////////////////////////////////////////////////////////////\n// Micro Game Engine - CPlayerArea class\n//\n// Tbis class implements \n//////////////////////////////////////////////////////////////////////////\n#if !defined(_CPlayerArea_)\n#define _CPlayerArea_\n\n//include some object...
884
13
{"language": "c", "success": true, "metadata": {"lines": 118, "avg_line_length": 27.53, "nodes": 584, "errors": 0, "source_hash": "d36bdcf8b73e769ed1ba09f4b4f81533bff0c0aabdaf7f79b90ea5e00b75097b", "categorized_nodes": 399}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !def...
2,206
c
#pragma once #include <Cool/AppManager/IApp.h> #include <Cool/Camera/CameraManager.h> #include <Cool/Exporter/Exporter.h> #include <Cool/Exporter/internal/Polaroid.h> #include <Cool/Gpu/FullscreenPipeline.h> #include <Cool/Image/ImageSizeConstraint.h> #include <Cool/Serialization/AutoSerializer.h> #include <C...
32.99
71
(translation_unit) "#pragma once \n \n#include <Cool/AppManager/IApp.h> \n#include <Cool/Camera/CameraManager.h> \n#include <Cool/Exporter/Exporter.h> \n#include <Cool/Exporter/internal/Polaroid.h> \n#include <Cool/Gpu/FullscreenPipeline.h> \n#include <Cool/Image/ImageSizeConstraint.h> \n#include <Cool/Serialization/Au...
516
33
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 32.99, "nodes": 298, "errors": 0, "source_hash": "f19b2703c3d30d447efcbbc5256ed2dc8fb6a87b0c65f4191e3c0f7a7529b269", "categorized_nodes": 207}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
2,207
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 "MMObject.h" @class CMDeviceMotion, NSObject; @interface WCAdvertiseSphereLastMotionManager : MMObject { CMDeviceMotion *_lastM...
34.21
19
(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 "MMObject.h"\n\n@class CMDeviceMotion, NSObject;\n\n@interface WCAdvertiseSphereLastMotionManager : MMObjec...
131
13
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 34.21, "nodes": 78, "errors": 0, "source_hash": "86bc84397cf5a1a193cb598121a287b7e09fdb26a9171f166e8d21d028dae8c2", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
2,208
c
class PickResult { public: float Distance; Vector3f Position, Normal; Vector2f TextureCoordinates; int TextureIndex; };
15.38
8
(translation_unit) "class PickResult \n{ \npublic: \n float Distance; \n Vector3f Position, Normal; \n Vector2f TextureCoordinates; \n int TextureIndex; \n};" (function_definition) "class PickResult \n{ \npublic: \n float Distance; \n Vector3f Position, Normal; \n Vector2f TextureCoordinates; \n int TextureIndex; \n}...
30
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 15.38, "nodes": 16, "errors": 0, "source_hash": "7b771ae1eb6648c00f284a920d3d4e08563458bbc754a5dfdb89b5bc74ec99af", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "cla...
2,209
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX 1024 int output(char *file_name) { FILE *fp; char buf[MAX]; int n; static int count = 0; /* 静态局部变量,保存输出的行数 */ fp = fopen(file_name, "r"); /* 打开文件 */ if(fp == NULL){ perror("fail to open"); /* 输出则提示 */ return -1; } ...
15.22
51
(translation_unit) "#include <stdio.h> \n#include <stdlib.h> \n#include <string.h> \n \n#define MAX 1024 \n \nint output(char *file_name) \n{ \n FILE *fp; \n char buf[MAX]; \n int n; \n static int count = 0; /* 静态局部变量,保存输出的行数 */ \n \n fp = fopen(file_name, "r"); /* 打开文件 */ \n if(fp == NULL){ \n perror("fail to open"...
307
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 15.22, "nodes": 171, "errors": 0, "source_hash": "43626ee873fdf59d3a5d4ac8409bf3a178ff36f52b6f424263cd41ef7605dbbf", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,210
c
#pragma once #include <utility> // make_pair namespace kalki { static const unsigned KB = 1024; static const unsigned MB = KB * KB; static const unsigned GB = KB * MB; static const unsigned KILO = 1000; static const unsigned MEGA = KILO * KILO; static const unsigned GIGA = MEGA * MEGA; inline std::pair<std::stri...
32.32
19
(translation_unit) "#pragma once\n\n#include <utility> // make_pair\n\nnamespace kalki {\n\nstatic const unsigned KB = 1024; \nstatic const unsigned MB = KB * KB;\nstatic const unsigned GB = KB * MB;\n\nstatic const unsigned KILO = 1000; \nstatic const unsigned MEGA = KILO * KILO;\nstatic const unsigned GIGA = MEGA * M...
237
6
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 32.32, "nodes": 149, "errors": 0, "source_hash": "4c0d9d1d8dc8009104a9ea05ffe57c75ad1eb4490c6a20022883e33897d415b8", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
2,211
c
/*! * \brief Data object for output of card command EstablishPaceChannel * * \copyright Copyright (c) 2015-2019 Governikus GmbH & Co. KG, Germany */ #pragma once #include "asn1/ASN1TemplateUtil.h" #include "asn1/CertificateDescription.h" #include "asn1/SecurityInfos.h" #include "CommandApdu.h" #include "SmartCard...
26.38
58
(translation_unit) "/*!\n * \brief Data object for output of card command EstablishPaceChannel\n *\n * \copyright Copyright (c) 2015-2019 Governikus GmbH & Co. KG, Germany\n */\n\n#pragma once\n\n#include "asn1/ASN1TemplateUtil.h"\n#include "asn1/CertificateDescription.h"\n#include "asn1/SecurityInfos.h"\n#include "Com...
182
3
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 26.38, "nodes": 106, "errors": 0, "source_hash": "22d687997c99edaf0500968635455277672e361bcab10813d8661349ff83968b", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
2,212
c
// SPDX-License-Identifier: GPL-2.0 #include <linux/mm.h> #include <linux/smp.h> #include <linux/sched.h> #include <asm/sbi.h> void flush_tlb_all(void) { sbi_remote_sfence_vma(NULL, 0, -1); } /* * This function must not be called with cmask being null. * Kernel may panic if cmask is NULL. */ static void __sbi_tl...
25.67
46
(translation_unit) "// SPDX-License-Identifier: GPL-2.0\n\n#include <linux/mm.h>\n#include <linux/smp.h>\n#include <linux/sched.h>\n#include <asm/sbi.h>\n\nvoid flush_tlb_all(void)\n{\n sbi_remote_sfence_vma(NULL, 0, -1);\n}\n\n/*\n * This function must not be called with cmask being null.\n * Kernel may panic if cmask...
325
0
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 25.67, "nodes": 198, "errors": 0, "source_hash": "93975617757a34ca2b4284a47e42bb277bd856310bad44c75146fe2d7091b16a", "categorized_nodes": 143}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,213
c
#pragma once #include <cmath> struct Vector2d { double x, y; Vector2d() {} Vector2d(const double x, const double y) : x(x), y(y) {} }; Vector2d negate(const Vector2d& v); Vector2d operator - (const Vector2d& v); Vector2d add(const Vector2d& a, const Vector2d& b); Vector2d operator + (const Vector2d& a,...
37.41
22
(translation_unit) "#pragma once\n\n#include <cmath>\n\nstruct Vector2d\n{\n double x, y;\n\n Vector2d() {}\n Vector2d(const double x, const double y) : x(x), y(y) {}\n};\n\nVector2d negate(const Vector2d& v);\nVector2d operator - (const Vector2d& v);\n\nVector2d add(const Vector2d& a, const Vector2d& b);\nVec...
353
26
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 37.41, "nodes": 189, "errors": 0, "source_hash": "99837f6ba2823023909622cd2d64dc674f7c3365985ce8ed10119592c756801a", "categorized_nodes": 145}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
2,214
c
/* * Dawn Engine * Written by <NAME> (c) 2012-2019 (<EMAIL>) */ #pragma once #include "resource/Resource.h" #include <dawn-gfx/Renderer.h> namespace dw { class DW_API Shader : public Resource { public: DW_OBJECT(Shader); Shader(Context* context, gfx::ShaderStage type); ~Shader() override = default; ...
26.98
42
(translation_unit) "/*\n * Dawn Engine\n * Written by <NAME> (c) 2012-2019 (<EMAIL>)\n */\n#pragma once\n\n#include "resource/Resource.h"\n#include <dawn-gfx/Renderer.h>\n\nnamespace dw {\nclass DW_API Shader : public Resource {\npublic:\n DW_OBJECT(Shader);\n\n Shader(Context* context, gfx::ShaderStage type);\n ...
343
21
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 26.98, "nodes": 185, "errors": 0, "source_hash": "63074f300b6c3e71585c65322199e0d0e7d21c11aade8a8ee6a0d345a9281637", "categorized_nodes": 124}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
2,215
c
/* { dg-do compile } */ /* { dg-options "-O2 -fipa-sra -fdump-tree-eipa_sra-details" } */ extern void consume (int); extern int glob, glob1, glob2; extern int get (void); static void __attribute__ ((noinline)) foo (int a) { a = glob; consume (a); a = get (); consume (a); __asm__ volatile("" : : ""(a)); ...
18.07
29
(translation_unit) "/* { dg-do compile } */\n/* { dg-options "-O2 -fipa-sra -fdump-tree-eipa_sra-details" } */\n\nextern void consume (int);\nextern int glob, glob1, glob2;\nextern int get (void);\n\n\nstatic void __attribute__ ((noinline))\nfoo (int a)\n{\n a = glob;\n consume (a);\n a = get ();\n consume (a);\n ...
182
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 18.07, "nodes": 102, "errors": 0, "source_hash": "be0027ad1a3548214fcd4d8915ba9575bd67e94fc77cfc061ae1dc302ff1ca2b", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern vo...
2,216
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 <objc/NSObject.h> #import "NSCoding-Protocol.h" @class NSDictionary, NSString; @interface TFHomeRecord : NSObject <NSCoding> { ...
37.44
32
(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 <objc/NSObject.h>\n\n#import "NSCoding-Protocol.h"\n\n@class NSDictionary, NSString;\n\n@interface TFHomeRe...
285
29
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 37.44, "nodes": 184, "errors": 0, "source_hash": "d3ada0177422675a7acfec17260cf038ec76688df7c198d9c7f4bdf3fc893a98", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
2,217
c
/* * NUMA support for s390 * * Define declarations used for communication between NUMA mode * implementations and NUMA core functionality. * * Copyright IBM Corp. 2015 */ #ifndef __S390_NUMA_MODE_H #define __S390_NUMA_MODE_H struct numa_mode { char *name; /* Name of mode */ void (*setup)(void); /* Initiz...
33.05
21
(translation_unit) "/*\n * NUMA support for s390\n *\n * Define declarations used for communication between NUMA mode\n * implementations and NUMA core functionality.\n *\n * Copyright IBM Corp. 2015\n */\n#ifndef __S390_NUMA_MODE_H\n#define __S390_NUMA_MODE_H\n\nstruct numa_mode {\n char *name; /* Name of mode */\n...
134
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 33.05, "nodes": 88, "errors": 0, "source_hash": "eefdf26c1e4104a20cfba44e9f57519d9099f0db0bdde74ca3e0dd08950de3a1", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,218
c
///////////////////////////////////////////////////////////////////// // 24/JUN/2006 // // Project: MMcGReiser // File: GUIHandler.h // Author: <NAME> // // Copyright (C) 2006 <NAME> // ///////////////////////////////////////////////////////////////////// #pragma once ///////////////////////////////////...
24.52
77
(translation_unit) "///////////////////////////////////////////////////////////////////// \n// 24/JUN/2006 \n// \n// Project: MMcGReiser \n// File: GUIHandler.h \n// Author: <NAME> \n// \n// Copyright (C) 2006 <NAME> \n// \n///////////////////////////////////////////////////////////////////// \n \n#pragma once \n \n//...
374
13
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 24.52, "nodes": 239, "errors": 0, "source_hash": "2ed02ef0ae2384d03aa0fa83f4ae677950aea8e90d0c20208704fc820f1f6ed7", "categorized_nodes": 166}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
2,219
c
// // ASCDeallocMonitor.h // ASLDeallocMonitor // // Created by infiq on 2017/7/8. // #import <Foundation/Foundation.h> typedef BOOL (^ASCDeallocMonitorFilter)(NSString *clsName); @interface ASCDeallocMonitor : NSObject @property (nonatomic, copy) ASCDeallocMonitorFilter filter; @property (nonatomic, assign) Cla...
31.82
22
(translation_unit) "//\n// ASCDeallocMonitor.h\n// ASLDeallocMonitor\n//\n// Created by infiq on 2017/7/8.\n//\n\n#import <Foundation/Foundation.h>\n\ntypedef BOOL (^ASCDeallocMonitorFilter)(NSString *clsName);\n\n@interface ASCDeallocMonitor : NSObject\n\n@property (nonatomic, copy) ASCDeallocMonitorFilter filter;\...
169
32
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 31.82, "nodes": 109, "errors": 0, "source_hash": "7a4505dc16c3007065ab7cba4c43220c5b719b476d5029ec8c4d6cefeb0408bf", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
2,220
c
/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "S1AP-IEs" * found in "../support/r14.4.0/36413-e40.asn" * `asn1c -pdu=all -fcompound-names -findirect-choice -fno-include-deps` */ #ifndef _S1AP_CellAccessMode_H_ #define _S1AP_CellAccessMode_H_ #include <asn_application.h> /* Inc...
32.3
46
(translation_unit) "/*\n * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)\n * From ASN.1 module "S1AP-IEs"\n * found in "../support/r14.4.0/36413-e40.asn"\n * `asn1c -pdu=all -fcompound-names -findirect-choice -fno-include-deps`\n */\n\n#ifndef _S1AP_CellAccessMode_H_\n#define _S1AP_CellAccessMode_H_\n\n\n#incl...
135
0
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 32.3, "nodes": 99, "errors": 0, "source_hash": "32a95cd59bbb35a69cc18448619c7e85d2bad9d8c47ffe4ca8016e5ac6f9544e", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef\t...
2,221
c
#include <stdio.h> #include <stdlib.h> #include <sys/sem.h> #include <sys/shm.h> #include <unistd.h> #include "buffer.h" int main() { printf("[%d] Avvio lettore\n", getpid()); key_t chiave_shm = ftok("./buffer.c", 'a'); int shm_id = shmget(chiave_shm, sizeof(buffer), 0); if (shm_id < 0) { perror("Error...
22.97
33
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <sys/sem.h>\n#include <sys/shm.h>\n#include <unistd.h>\n\n#include "buffer.h"\n\nint main() {\n printf("[%d] Avvio lettore\n", getpid());\n\n key_t chiave_shm = ftok("./buffer.c", 'a');\n\n int shm_id = shmget(chiave_shm, sizeof(buffer), 0);\n\n ...
316
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 22.97, "nodes": 185, "errors": 0, "source_hash": "e3e094eb499e89d0a8c548adcf995d619b5affb9689a94ee3a8c4427de69f67c", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,222
c
# include <stdio.h> # include <math.h> # include <string.h> # include "msarith.h" /* Checks if proper extension exists in output file name. If not, sets extension to ".fits". Revision history: --------------- 06 Feb 97 - Implementation (IB) */ int n_checkOutName (arithControl *ac) { ...
27.76
33
(translation_unit) "# include <stdio.h>\n# include <math.h>\n# include <string.h>\n# include "msarith.h"\n\n/* Checks if proper extension exists in output file name. \n If not, sets extension to ".fits".\n\n\n\n Revision history:\n ---------------\n 06 Feb 97 - Implementation (IB)\n\n*/\n\nint ...
196
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 27.76, "nodes": 110, "errors": 0, "source_hash": "dea4bac49e88e28c98d4ea26cb39b7d95e02c9b55ea4f866049fd4c80a123afb", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "# inc...
2,223
c
// SPDX-License-Identifier: GPL-2.0 /* * Phy provider for USB 3.0 controller on HiSilicon 3660 platform * * Copyright (C) 2017-2018 Hilisicon Electronics Co., Ltd. * http://www.huawei.com * * Authors: <NAME> <<EMAIL>> */ #include <linux/kernel.h> #include <linux/mfd/syscon.h> #include <linux/module.h> #include...
29.13
190
(translation_unit) "// SPDX-License-Identifier: GPL-2.0\n/*\n * Phy provider for USB 3.0 controller on HiSilicon 3660 platform\n *\n * Copyright (C) 2017-2018 Hilisicon Electronics Co., Ltd.\n * http://www.huawei.com\n *\n * Authors: <NAME> <<EMAIL>>\n */\n\n#include <linux/kernel.h>\n#include <linux/mfd/syscon.h>\n#i...
1,351
0
{"language": "c", "success": true, "metadata": {"lines": 190, "avg_line_length": 29.13, "nodes": 848, "errors": 0, "source_hash": "34f38ed6b539f525a3c803303c1895f726898fddb4487995b6e9b1e3d9c9d5b1", "categorized_nodes": 588}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,224
c
/* * Copyright (c) 2014, Siemens AG. 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 an...
38.39
106
(translation_unit) "/*\n * Copyright (c) 2014, Siemens AG. All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice,\n *...
917
30
{"language": "c", "success": true, "metadata": {"lines": 106, "avg_line_length": 38.39, "nodes": 571, "errors": 0, "source_hash": "6af97adff99a735652889516979aa11b5d5a53788c171959ded186a9426e1842", "categorized_nodes": 391}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,225
c
/* * Copyright (c) 2021 Huawei Technologies Co.,Ltd. * * openGauss is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ...
33.45
303
(translation_unit) "/*\n * Copyright (c) 2021 Huawei Technologies Co.,Ltd.\n *\n * openGauss is licensed under Mulan PSL v2.\n * You can use this software according to the terms and conditions of the Mulan PSL v2.\n * You may obtain a copy of Mulan PSL v2 at:\n *\n * http://license.coscl.org.cn/MulanPSL2\n *\n...
2,524
0
{"language": "c", "success": true, "metadata": {"lines": 303, "avg_line_length": 33.45, "nodes": 1475, "errors": 0, "source_hash": "ebeaf7407bffa35810616a6c87aa1d0e5dd9a314e68a6e711eea61ddda735278", "categorized_nodes": 1116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
2,226
c
// // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 <NAME>. // #import "NSObject-Protocol.h" @protocol UIViewControllerContextTransitioning; @protocol UIViewControllerInteractiveTransitioning <NSObject> - (void)sta...
40.29
14
(translation_unit) "//\n// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20).\n//\n// Copyright (C) 1997-2019 <NAME>.\n//\n\n#import "NSObject-Protocol.h"\n\n@protocol UIViewControllerContextTransitioning;\n\n@protocol UIViewControllerInteractiveTransi...
98
18
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 40.29, "nodes": 69, "errors": 0, "source_hash": "60d26d65a594076faa6ebb4251a7bfae26130e7126c9d08fb9b98e4b76827921", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
2,227
c
#ifndef _WINDHORN_WINDOW #define _WINDHORN_WINDOW /****************************************************************************************************************** CWHApp Class Declaration *******************************************************************************************************************/ class...
32.22
45
(translation_unit) "#ifndef _WINDHORN_WINDOW\n#define _WINDHORN_WINDOW\n\n\n\n/******************************************************************************************************************\n\n CWHApp Class Declaration\n\n**********************************************************************************************...
270
9
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 32.22, "nodes": 166, "errors": 0, "source_hash": "47530c79a14916f5a27c0829d2fcf60677f5d230d6072371e4e6ccce8924586d", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,228
c
#pragma once #include "commonheader.h" #include "material.h" class Metal : public Material { public: Metal(const glm::vec3& a, float fuzziness = 0.f); Metal() = delete; virtual bool Scatter(const Ray& inRay, const HitRecord& rec, glm::vec3& attenuation, Ray& scattered) const override; private: glm:...
26.46
13
(translation_unit) "#pragma once\n\n#include "commonheader.h"\n\n#include "material.h"\n\nclass Metal : public Material\n{\npublic:\n Metal(const glm::vec3& a, float fuzziness = 0.f);\n Metal() = delete;\n\n virtual bool Scatter(const Ray& inRay, const HitRecord& rec, glm::vec3& attenuation, Ray& scattered) co...
126
11
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 26.46, "nodes": 65, "errors": 0, "source_hash": "71ec04e4f68c3d5f0b2a2eac492d44168ba17888403538310bab4f5794a626fb", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
2,229
c
/* * Crypto API * * Copyright (c) 2018 <NAME> <<EMAIL>> * * SPDX-License-Identifier: BSD-2-Clause */ #ifndef CRYPTO_API_H #define CRYPTO_API_H 1 #include <stdarg.h> #include <stddef.h> struct crypto *crypto_alloc (const char *algo); void crypto_free (struct crypto *o); int crypto_getv (const struct crypto *o...
41.61
33
(translation_unit) "/*\n * Crypto API\n *\n * Copyright (c) 2018 <NAME> <<EMAIL>>\n *\n * SPDX-License-Identifier: BSD-2-Clause\n */\n\n#ifndef CRYPTO_API_H\n#define CRYPTO_API_H 1\n\n#include <stdarg.h>\n#include <stddef.h>\n\nstruct crypto *crypto_alloc (const char *algo);\nvoid crypto_free (struct crypto *o);\n\nin...
408
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 41.61, "nodes": 310, "errors": 0, "source_hash": "f27c467f56eb83778d13508720a56a6fdddd97ed065759f936c1f5f5ccfbdd00", "categorized_nodes": 196}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,230
c
#pragma once #include "modules.h" #include "wrap_ucrtbase.h" #include "wrap_kernel32.h" #include "wrap_advapi32.h" #include "wrap_user32.h" VOID moduleLoad(IMG img, VOID *v);
21
8
(translation_unit) "#pragma once\n\n\n#include "modules.h"\n#include "wrap_ucrtbase.h"\n#include "wrap_kernel32.h"\n#include "wrap_advapi32.h"\n#include "wrap_user32.h"\n\nVOID moduleLoad(IMG img, VOID *v);" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include)...
51
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 21.0, "nodes": 31, "errors": 0, "source_hash": "19a48b77995ebe4fb05caa619313f031044c3009c6cefa569d20568a6f55b274", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
2,231
c
/* * Copyright (c) 2015 <NAME> <<EMAIL>> * * Use of this source code is governed by a MIT-style * license that can be found in the LICENSE file or at * https://opensource.org/licenses/MIT */ #pragma once #include <stdint.h> #include <sys/types.h> /* ethernet driver public api */ typedef enum { PHY_LAN8742A,...
29.11
19
(translation_unit) "/*\n * Copyright (c) 2015 <NAME> <<EMAIL>>\n *\n * Use of this source code is governed by a MIT-style\n * license that can be found in the LICENSE file or at\n * https://opensource.org/licenses/MIT\n */\n#pragma once\n\n#include <stdint.h>\n#include <sys/types.h>\n\n/* ethernet driver public api */\...
77
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 29.11, "nodes": 54, "errors": 0, "source_hash": "c39c228ea4a068728a440b9153c2726dbdbe43cfba3f9cc3df64c66adf4b6cfd", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
2,232
c
#pragma once #include "DomainCondition.h" #include "DomainPlan.h" #include <engine/BasicUtilityFunction.h> #include <engine/DefaultUtilityFunction.h> #include <engine/UtilityFunction.h> /*PROTECTED REGION ID(incl1413200842973) ENABLED START*/ // Add inlcudes here /*PROTECTED REGION END*/ namespace alica { /*PROTECTED...
31.54
48
(translation_unit) "#pragma once\n\n#include "DomainCondition.h"\n#include "DomainPlan.h"\n#include <engine/BasicUtilityFunction.h>\n#include <engine/DefaultUtilityFunction.h>\n#include <engine/UtilityFunction.h>\n/*PROTECTED REGION ID(incl1413200842973) ENABLED START*/\n// Add inlcudes here\n/*PROTECTED REGION END*/\n...
185
9
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 31.54, "nodes": 91, "errors": 0, "source_hash": "30118e32ca55c7feb80cec83282bb7fba6bd60c96e049dcefd9e14998ad9bf57", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
2,233
c
#ifdef __FLAT__ #include <win32\xcmcmsxt.h> #else #error xcmcmsxt.h can only be used in a Win32 Application #endif // __FLAT__
26
5
(translation_unit) "#ifdef __FLAT__ \n #include <win32\xcmcmsxt.h> \n#else \n #error xcmcmsxt.h can only be used in a Win32 Application \n#endif // __FLAT__ \n" (preproc_ifdef) "#ifdef __FLAT__ \n #include <win32\xcmcmsxt.h> \n#else \n #error xcmcmsxt.h can only be used in a Win32 Application \n#endif" (#ifde...
14
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 26.0, "nodes": 12, "errors": 0, "source_hash": "06abb23487b38ce074708e350e0e1c855b78c06310e6354d4f78c4b533654868", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef __FL...
2,234
c
// Copyright 2017 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicab...
27.45
51
(translation_unit) "// Copyright 2017 Espressif Systems (Shanghai) PTE LTD\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//...
94
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 27.45, "nodes": 51, "errors": 0, "source_hash": "fed5b59877142ef197e02caeaa0121eed1f81299168021b7ba9817b72b2d372e", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,235
c
#ifndef _IOCPBUFFER_WRITER_H_ #define _IOCPBUFFER_WRITER_H_ class CIOCPBufferWriter { private: CIOCPBuffer* m_lpBuffer; public: CIOCPBufferWriter(){ m_lpBuffer = OP_NEW<CIOCPBuffer>(_FILE_AND_LINE_); } virtual ~CIOCPBufferWriter(){ delete this->m_lpBuffer; } CIOCPBuffer* GetBuffer(){ return m_lpBuffer; ...
26.89
45
(translation_unit) "#ifndef _IOCPBUFFER_WRITER_H_\n#define _IOCPBUFFER_WRITER_H_\n\nclass CIOCPBufferWriter\n{\nprivate:\n CIOCPBuffer* m_lpBuffer;\npublic:\n CIOCPBufferWriter(){\n m_lpBuffer = OP_NEW<CIOCPBuffer>(_FILE_AND_LINE_);\n }\n\n virtual ~CIOCPBufferWriter(){\n delete this->m_lpBuffer;\n }\n\n CIOCPBuffer*...
412
13
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 26.89, "nodes": 252, "errors": 0, "source_hash": "e2547b6ca5ed1c69dfca1c22d4de076a6bc1b1c8eba3fe6c62df70e37e7849e1", "categorized_nodes": 167}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,236
c
/* * message-op-interface.h * Copyright (C) 2010-2018 Belledonne Communications SARL * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your optio...
37.61
66
(translation_unit) "/*\n * message-op-interface.h\n * Copyright (C) 2010-2018 Belledonne Communications SARL\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * as published by the Free Software Foundation; either version 2\n * of the...
438
12
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 37.61, "nodes": 255, "errors": 0, "source_hash": "cb1ebc5e6db11b26a454ab45ab40cbbbf9f5196d98cdaca2f82ce670fd541266", "categorized_nodes": 177}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,237
c
#pragma once #include "LyoungVector.h" #include <string> #include "DetourNavMesh.h" #include "DetourNavMeshQuery.h" class LyoungFakeServer; class LyoungClient { public: enum State { IDLE, MOVE, COUNT, }; std::string StateStr[State::COUNT] = { "IDLE", "MOVE", }; float waitTime[State::COUNT] = { 2,4 ...
20.92
128
(translation_unit) "#pragma once\n#include "LyoungVector.h"\n#include <string>\n\n#include "DetourNavMesh.h"\n#include "DetourNavMeshQuery.h"\n\nclass LyoungFakeServer;\nclass LyoungClient\n{\npublic:\n enum State\n {\n IDLE,\n MOVE,\n COUNT,\n };\n\n std::string StateStr[State::COUNT] =\n {\n "IDLE",\n "MOVE",\n ...
819
14
{"language": "c", "success": true, "metadata": {"lines": 128, "avg_line_length": 20.92, "nodes": 497, "errors": 0, "source_hash": "c6a99d8a5a0e9a24f9be3e3f9ad56b313cc1ea44487d878a88221fe6af2b8c3b", "categorized_nodes": 342}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
2,238
c
// server_i.h,v 1.1 1999/07/02 05:21:01 irfan Exp #include "testS.h" class server_i : public POA_server { public: server_i (int quiet, CORBA::ORB_ptr orb); void ping (CORBA::UShort time_to_live, CORBA::Environment &ACE_TRY_ENV) ACE_THROW_SPEC ((CORBA::SystemException)); ...
21.97
32
(translation_unit) "// server_i.h,v 1.1 1999/07/02 05:21:01 irfan Exp \n \n#include "testS.h" \n \nclass server_i : public POA_server \n{ \npublic: \n server_i (int quiet, \n CORBA::ORB_ptr orb); \n \n void ping (CORBA::UShort time_to_live, \n CORBA::Environment &ACE_TRY_ENV) \n ACE_THROW_SP...
172
15
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 21.97, "nodes": 95, "errors": 0, "source_hash": "e445ececc29a6a853372bc165b51f57ad0833f552e72286e806d250c4da90cd3", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
2,239
c
// For components declared in external libraries, make another header of this form // and include it where needed to register these names. // #define ADDWBCOMPONENT( type ) before including this file, then include it inline // to handle every component type as needed. #ifndef ADDWBCOMPONENT #include "Compone...
28.34
29
(translation_unit) "// For components declared in external libraries, make another header of this form \n// and include it where needed to register these names. \n \n// #define ADDWBCOMPONENT( type ) before including this file, then include it inline \n// to handle every component type as needed. \n \n#ifndef ADDWBCOMP...
109
1
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 28.34, "nodes": 64, "errors": 0, "source_hash": "fc340c3be8d5a67742e3df7093af1b5b4371a8504628d82769b7a2573ef4dce1", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,240
c
#ifndef ARGPARSE_H_C1D7O3XM #define ARGPARSE_H_C1D7O3XM #include "argparse/command.h" #include "argparse/option.h" #include "argparse/argument.h" #include "argparse/helper-functions.h" #endif /* end of include guard: ARGPARSE_H_C1D7O3XM */
33.29
7
(translation_unit) "#ifndef ARGPARSE_H_C1D7O3XM\n#define ARGPARSE_H_C1D7O3XM\n\n#include "argparse/command.h"\n#include "argparse/option.h"\n#include "argparse/argument.h"\n#include "argparse/helper-functions.h"\n\n#endif /* end of include guard: ARGPARSE_H_C1D7O3XM */\n" (preproc_ifdef) "#ifndef ARGPARSE_H_C1D7O3XM\...
33
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 33.29, "nodes": 19, "errors": 0, "source_hash": "3b72065298c0edb0b3649f56fc0ed3446c01b67ec4b4bb50a5c1162578d5927d", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef A...
2,241
c
// // UIScrollView+CLScrollView.h // CLUIKitExample // // Created by <NAME> on 2018/3/27. // Copyright © 2018年 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface UIScrollView (CLScrollView) /** 移动到UIScrollView的最顶端 @param animated BOOL */ - (void)cl_scrollViewToTopWithAnimated:(BOOL)animated; ...
18.73
33
(translation_unit) "//\n// UIScrollView+CLScrollView.h\n// CLUIKitExample\n//\n// Created by <NAME> on 2018/3/27.\n// Copyright © 2018年 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIScrollView (CLScrollView)\n\n/**\n 移动到UIScrollView的最顶端\n\n @param animated BOOL\n */\n- (void)cl_scrollV...
93
8
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 18.73, "nodes": 48, "errors": 0, "source_hash": "116865dd0db51804a06ffea0abe05b60ef8d4fad70f0e271b591e58da4f685c2", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
2,242
c
// // UIButton+EMAdd.h // Emucoo // // Created by kuroky on 2018/8/30. // Copyright © 2018年 Emucoo. All rights reserved. // #import <UIKit/UIKit.h> typedef void(^ActionBlock)(UIButton *sender); @interface UIButton (EMAdd) - (void)handleControlEvent:(ActionBlock)block; @end
22.17
12
(translation_unit) "//\n// UIButton+EMAdd.h\n// Emucoo\n//\n// Created by kuroky on 2018/8/30.\n// Copyright © 2018年 Emucoo. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\ntypedef void(^ActionBlock)(UIButton *sender);\n\n@interface UIButton (EMAdd)\n\n- (void)handleControlEvent:(ActionBlock)block;\n\n@end\n...
60
6
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 22.17, "nodes": 37, "errors": 0, "source_hash": "eee57c1232ac7a5436e32add369bee019c7c9c5f9344a74ef33a028edfa9d623", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
2,243
c
/* * eeprom_util.h * * Created: 8/08/2015 0.01 ndp * Author: Chip * * Based on example code from ATtiny84 data sheet. * */ #ifndef EEPROM_UTIL_H_ #define EEPROM_UTIL_H_ /* *** EEPROM USAGE MAP *** */ #define PARAM_TABLE 0x0020 // reserve first 32 bytes for special use??? #define PARAM_TABLE_SIZE 0x0080 ...
28.71
24
(translation_unit) "/*\n * eeprom_util.h\n *\n * Created: 8/08/2015 0.01 ndp\n * Author: Chip\n *\n * Based on example code from ATtiny84 data sheet.\n *\n */ \n\n\n#ifndef EEPROM_UTIL_H_\n#define EEPROM_UTIL_H_\n\n/* *** EEPROM USAGE MAP *** */\n#define PARAM_TABLE 0x0020 // reserve first 32 bytes for special use?...
103
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 28.71, "nodes": 79, "errors": 0, "source_hash": "723e993cecaf2e8ca5481ab6b1e8364915067a5f6e5d45d08f1a18f08bd93a6c", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,244
c
/** * Copyright (C) <NAME> 2021 * * gmr.h -- VMware Guest Memory * * /PROJECT - Aurora {Xeneva} * /AUTHOR - <NAME> * * ============================================== */ #ifndef __GMR_H__ #define __GMR_H__ #include <arch\x86_64\mmngr\kheap.h> #include <drivers\svga\svga_reg.h> #include <drivers\svga\vm...
29.14
35
(translation_unit) "/**\n * Copyright (C) <NAME> 2021\n *\n * gmr.h -- VMware Guest Memory\n * \n * /PROJECT - Aurora {Xeneva}\n * /AUTHOR - <NAME>\n *\n * ==============================================\n */\n\n#ifndef __GMR_H__\n#define __GMR_H__\n\n#include <arch\x86_64\mmngr\kheap.h>\n#include <drivers\svga\sv...
178
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 29.14, "nodes": 138, "errors": 0, "source_hash": "5142dfc24651547a0da538a93bf2190cdd97094b01d2e45524bdb68a9a2eaed0", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
2,245
c
// Copyright 2016 The Fuchsia 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 LIB_TONIC_TYPED_DATA_DART_BYTE_DATA_H_ #define LIB_TONIC_TYPED_DATA_DART_BYTE_DATA_H_ #include <vector> #include "third_party/dart/runtime/includ...
37.1
39
(translation_unit) "// Copyright 2016 The Fuchsia 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 LIB_TONIC_TYPED_DATA_DART_BYTE_DATA_H_\n#define LIB_TONIC_TYPED_DATA_DART_BYTE_DATA_H_\n\n#include <vector>\n\n#include "th...
332
17
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 37.1, "nodes": 189, "errors": 0, "source_hash": "33fd7e812ee0ae98617d5d634cd77f6a3967fc5220da4d5cbe6949432cd09cf8", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
2,246
c
/* ===-- umodsi3.c - Implement __umodsi3 -----------------------------------=== * * The LLVM Compiler Infrastructure * * This file is dual licensed under the MIT and the University of Illinois Open * Source Licenses. See LICENSE.TXT for details. * * ===----------------------------------------...
32.14
21
(translation_unit) "/* ===-- umodsi3.c - Implement __umodsi3 -----------------------------------===\n *\n * The LLVM Compiler Infrastructure\n *\n * This file is dual licensed under the MIT and the University of Illinois Open\n * Source Licenses. See LICENSE.TXT for details.\n *\n * ===-------------...
62
2
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 32.14, "nodes": 41, "errors": 0, "source_hash": "a573c5884098fbd92a82d79c00ac8875dbb94aab4d5a3e6d62b4b5d1ca3df6d6", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
2,247
c
#ifndef NORMALIZE2DPTSH #define NORMALIZE2DPTSH #include <Eigen/Dense> double normalize2dpts(Eigen::MatrixXd &pts); #endif /* NORMALIZE2DPTSH */
28
5
(translation_unit) "#ifndef NORMALIZE2DPTSH\n#define NORMALIZE2DPTSH\n\n#include <Eigen/Dense>\n\ndouble normalize2dpts(Eigen::MatrixXd &pts);\n\n#endif /* NORMALIZE2DPTSH */\n" (preproc_ifdef) "#ifndef NORMALIZE2DPTSH\n#define NORMALIZE2DPTSH\n\n#include <Eigen/Dense>\n\ndouble normalize2dpts(Eigen::MatrixXd &pts);\...
28
1
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 28.0, "nodes": 20, "errors": 0, "source_hash": "97d0390604973d37d1342e059afbc7da1f47211cf155d33c26138ac1c3bbc2a6", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef NO...
2,248
c
/* $OpenBSD: udpsock.c,v 1.7 2016/04/27 10:16:10 mestre Exp $ */ /* * Copyright (c) 2014 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all c...
32.35
154
(translation_unit) "/* $OpenBSD: udpsock.c,v 1.7 2016/04/27 10:16:10 mestre Exp $ */\n\n/*\n * Copyright (c) 2014 <NAME> <<EMAIL>>\n *\n * Permission to use, copy, modify, and distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permis...
1,530
0
{"language": "c", "success": true, "metadata": {"lines": 154, "avg_line_length": 32.35, "nodes": 944, "errors": 0, "source_hash": "f5367ca87cab57184b5a6ccb5757f839b5ceede9a743956d194cc6e5b70ed86b", "categorized_nodes": 749}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,249
c
// Copyright 2017 <NAME>. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <string> #include <vespa/filedistribution/model/filedbmodel.h> namespace filedistribution { class FileDB { Path _dbPath; public: FileDB(Path dbPath); DirectoryGuard::UP get...
39.1
20
(translation_unit) "// Copyright 2017 <NAME>. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\n#pragma once\n\n#include <string>\n#include <vespa/filedistribution/model/filedbmodel.h>\n\nnamespace filedistribution {\n\nclass FileDB {\n Path _dbPath;\npublic:\n FileDB(Path dbPa...
106
5
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 39.1, "nodes": 60, "errors": 0, "source_hash": "7bae314b0a48d9b7b80892cf16b0ec70e1d90ae292a4c824152ac4f7b5f33553", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
2,250
c
#pragma once namespace Infra { class Unique { public: Unique() = default; Unique(const Unique &) = delete; Unique(Unique &&) = delete; virtual ~Unique() noexcept = default; Unique &operator=(const Unique &) = delete; Unique &operator=(Unique &&) = delete; }; }
18.79
14
(translation_unit) "#pragma once\n\nnamespace Infra\n{\n class Unique\n {\n public:\n Unique() = default;\n Unique(const Unique &) = delete;\n Unique(Unique &&) = delete;\n\n virtual ~Unique() noexcept = default;\n\n Unique &operator=(const Unique &) = delete;\n Unique &operator=(Unique &&) = delete;\n };\n}\n" ...
112
5
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 18.79, "nodes": 64, "errors": 0, "source_hash": "aecdd9f48277fdeb86ae501e3fec0bf735c3b6b95289596a4c8eb30fea5df8d0", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
2,251
c
// // DemoCallManager.h // ChatDemo-UI3.0 // // Created by XieYajie on 22/11/2016. // Copyright © 2016 XieYajie. All rights reserved. // #import <Foundation/Foundation.h> @interface DemoCallManager : NSObject + (instancetype)sharedManager; - (void)answerCall:(NSString *)aCallId; - (void)endCallWithId:(NSString...
25.93
15
(translation_unit) "//\n// DemoCallManager.h\n// ChatDemo-UI3.0\n//\n// Created by XieYajie on 22/11/2016.\n// Copyright © 2016 XieYajie. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface DemoCallManager : NSObject\n\n+ (instancetype)sharedManager;\n\n- (void)answerCall:(NSString *)aCallId...
83
10
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 25.93, "nodes": 49, "errors": 0, "source_hash": "edecd13f6b5bd38854eb348afc22a502e4e243142e126eb4976b944fce5950a4", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
2,252
c
#pragma once // INCOMPLETE #include"GameObject.h" class Script : public GameObject { public: Script(); std::string ScriptString; std::vector<int> Commands; };
11.79
14
(translation_unit) "#pragma once \n// INCOMPLETE \n#include"GameObject.h" \n \n \n \nclass Script : public GameObject \n{ \npublic: \n Script(); \n \n std::string ScriptString; \n std::vector<int> Commands; \n};" (preproc_call) "#pragma once \n" (preproc_directive) "#pragma" (preproc_arg) "once " (comment) ...
56
3
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 11.79, "nodes": 28, "errors": 0, "source_hash": "6f7d8667384e51fecbb4f8e13f9537a7f1f9b742289fe5c8299c04689791d470", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
2,253
c
/* IVMC: Ethereum Client-VM Connector API. * Copyright 2018-2019 The IVMC Authors. * Licensed under the Apache License, Version 2.0. */ /** * IVMC Helpers * * A collection of C helper functions for invoking a VM instance methods. * These are convenient for languages where invoking function pointers * is "ugly"...
31.09
270
(translation_unit) "/* IVMC: Ethereum Client-VM Connector API.\n * Copyright 2018-2019 The IVMC Authors.\n * Licensed under the Apache License, Version 2.0.\n */\n\n/**\n * IVMC Helpers\n *\n * A collection of C helper functions for invoking a VM instance methods.\n * These are convenient for languages where invoking f...
1,195
0
{"language": "c", "success": true, "metadata": {"lines": 270, "avg_line_length": 31.09, "nodes": 666, "errors": 0, "source_hash": "45c8da4cdd9cbac9e80a73d3427888e2927feefd398ba6558879ad0da3800828", "categorized_nodes": 529}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
2,254
c
/******************************************************************************* * File Name: UART_PM.c * Version 2.50 * * Description: * This file provides Sleep/WakeUp APIs functionality. * * Note: * ******************************************************************************** * Copyright 2008-2015, Cypress Semic...
27.65
178
(translation_unit) "/*******************************************************************************\n* File Name: UART_PM.c\n* Version 2.50\n*\n* Description:\n* This file provides Sleep/WakeUp APIs functionality.\n*\n* Note:\n*\n********************************************************************************\n* Copy...
301
0
{"language": "c", "success": true, "metadata": {"lines": 178, "avg_line_length": 27.65, "nodes": 169, "errors": 0, "source_hash": "e48f92377f329f388f7088af00753cd2e38f87a06b1d7d2e550f37a3ca89dce9", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,255
c
/** @file JSLog.h @brief @author James @version 1.0 @date 2013_11_12 */ #ifndef __Log_H__ #define __Log_H__ #include <stdio.h> #include <stdint.h> #pragma warning(disable:4996) #ifdef WIN32 #pragma execution_character_set("utf-8") #endif #ifdef __APPLE__ void CToObjectCLogI( const char* szFormat,....
35.93
45
(translation_unit) "/**\n @file JSLog.h\n @brief\n @author James\n @version 1.0\n @date 2013_11_12\n */\n\n#ifndef __Log_H__\n#define __Log_H__\n#include <stdio.h>\n#include <stdint.h>\n#pragma warning(disable:4996)\n#ifdef WIN32\n #pragma execution_character_set("utf-8")\n#endif\n\n#ifdef __APPLE__\n void ...
222
0
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 35.93, "nodes": 148, "errors": 0, "source_hash": "b22d3c6e584b93f94287a793253d109f62518f852db1b3678a37d3971521c28b", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
2,256
c
// // MSGSSubscription.h // ENSSample // // Created by <NAME> on 22-01-14. // // #import "MSGSChannel.h" @interface MSGSSubscription : NSObject @property (nonatomic, strong) MSGSChannel *channel; @property (nonatomic, strong) NSDate *createdAt; @property (nonatomic, strong) NSDate *updatedAt; - (instancetype)ini...
25.12
16
(translation_unit) "//\n// MSGSSubscription.h\n// ENSSample\n//\n// Created by <NAME> on 22-01-14.\n//\n//\n\n#import "MSGSChannel.h"\n\n@interface MSGSSubscription : NSObject\n\n@property (nonatomic, strong) MSGSChannel *channel;\n@property (nonatomic, strong) NSDate *createdAt;\n@property (nonatomic, strong) NSDat...
117
16
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 25.12, "nodes": 77, "errors": 0, "source_hash": "86c074d0abbc591555f774298026490f0c80557cae4728a0b210873de3995e8c", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
2,257
c
// // DDCredentialBase.h // DataDeployer // // Created by mko on 26.12.13. // Copyright (c) 2013 <NAME>. All rights reserved. // static NSString * serviceName = @"DataDeployerService"; #import <Foundation/Foundation.h> @interface DDCredentialBase : NSObject -(NSString *) createEncryptionKey; +(NSString *) creat...
24.77
13
(translation_unit) "//\n// DDCredentialBase.h\n// DataDeployer\n//\n// Created by mko on 26.12.13.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\nstatic NSString * serviceName = @"DataDeployerService";\n\n#import <Foundation/Foundation.h>\n\n@interface DDCredentialBase : NSObject\n\n-(NSString *) create...
62
6
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 24.77, "nodes": 36, "errors": 0, "source_hash": "c3483bfd95a44d979a68b9614516ffd487f5f9bc24ca1d3499441036475458d7", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "static NSS...
2,258
c
label(interp_psl_sr); DEBUG_CMD("sr"); INTBINOP(>>, "sr"); STEP;
18.25
4
(translation_unit) "label(interp_psl_sr);\n DEBUG_CMD("sr");\n INTBINOP(>>, "sr");\n STEP;\n\n" (expression_statement) "label(interp_psl_sr);" (call_expression) "label(interp_psl_sr)" (identifier) "label" (argument_list) "(interp_psl_sr)" (() "(" (identifier) "interp_psl_sr" ...
36
2
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 18.25, "nodes": 14, "errors": 0, "source_hash": "7275321c182189d868b672d8651fb7950aa0ccca61335a1a0d021388bcf19719", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "call_expression", "text": "label(i...
2,259
c
/************************************************************************* Crytek Source File. Copyright (C), Crytek Studios, 2001-2008. ------------------------------------------------------------------------- $Id$ $DateTime$ Description: BlendedEffect interface for ScreenEffects and some implementations Includes al...
27.87
101
(translation_unit) "/*************************************************************************\nCrytek Source File.\nCopyright (C), Crytek Studios, 2001-2008.\n-------------------------------------------------------------------------\n$Id$\n$DateTime$\nDescription: BlendedEffect interface for ScreenEffects and some im...
631
31
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 27.87, "nodes": 346, "errors": 0, "source_hash": "3172da11bac4fcdfe5c93f53ceaeefd8160d1aeac5124a855a0f9d2311ca8126", "categorized_nodes": 224}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
2,260
c
#include <complex.h> double (creal)(double complex z) { return creal(z); }
14.2
5
(translation_unit) "#include <complex.h>\n\ndouble (creal)(double complex z)\n{\n return creal(z);\n}\n" (preproc_include) "#include <complex.h>\n" (#include) "#include" (system_lib_string) "<complex.h>" (function_definition) "double (creal)(double complex z)\n{\n return creal(z);\n}" (primitive_type) "...
31
1
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 14.2, "nodes": 19, "errors": 0, "source_hash": "65e27c3cd33fdbecffff88565d99d104601dcbb37300144f8c2dca755e9c026f", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
2,261
c
/// MentOS, The Mentoring Operating system project /// @file port_io.h /// @brief Byte I/O on ports prototypes. /// @copyright (c) 2019 This file is distributed under the MIT License. /// See LICENSE.md for details. #pragma once #include "stdint.h" /// @brief Used for reading from the I/O ports. ...
41.91
33
(translation_unit) "/// MentOS, The Mentoring Operating system project\n/// @file port_io.h\n/// @brief Byte I/O on ports prototypes.\n/// @copyright (c) 2019 This file is distributed under the MIT License.\n/// See LICENSE.md for details.\n\n#pragma once\n\n#include "stdint.h"\n\n/// @brief Used fo...
155
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 41.91, "nodes": 97, "errors": 0, "source_hash": "7dc7fafae20563325d44a7eee13487083c80f38b6d0e44c0d19bd5748b9e96b0", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
2,262
c
/* * vma01 - test not merging a VMA which cloned from parent process * * This program is used for testing the following upstream commit: * 965f55dea0e331152fa53941a51e4e16f9f06fae * * The cloned VMA shares the anon_vma lock with the parent process's * VMA. If we do the merge, more vmas (even the new range is onl...
26.47
190
(translation_unit) "/*\n * vma01 - test not merging a VMA which cloned from parent process\n *\n * This program is used for testing the following upstream commit:\n * 965f55dea0e331152fa53941a51e4e16f9f06fae\n *\n * The cloned VMA shares the anon_vma lock with the parent process's\n * VMA. If we do the merge, more vmas...
1,290
0
{"language": "c", "success": true, "metadata": {"lines": 190, "avg_line_length": 26.47, "nodes": 737, "errors": 0, "source_hash": "218fd4950ed71b96a91c3ceeeb2bf3b5566fd3ee0828ee138ca5c06813bc3cea", "categorized_nodes": 515}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,263
c
/* * usb.h * * USB stack entry points and callbacks. * * Written & released by <NAME> <<EMAIL>> * * This is free and unencumbered software released into the public domain. * See the file COPYING for more details, or visit <http://unlicense.org>. */ /* Full Speed Max Packet Size */ #define USB_FS_MPS 64 /*...
28.5
44
(translation_unit) "/*\n * usb.h\n * \n * USB stack entry points and callbacks.\n * \n * Written & released by <NAME> <<EMAIL>>\n * \n * This is free and unencumbered software released into the public domain.\n * See the file COPYING for more details, or visit <http://unlicense.org>.\n */\n\n/* Full Speed Max Packet Si...
166
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 28.5, "nodes": 111, "errors": 0, "source_hash": "fe5425a013fbfdee4efd2856c1614f3ab7188509d47b07c90700622412bebbbd", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define US...
2,264
c
// // EffectLevitate.h // WizardWar // // Created by <NAME> on 6/13/13. // Copyright (c) 2013 The LAB. All rights reserved. // #import "PlayerEffect.h" #import "PEApply.h" @interface PELevitate : PEApply @end
18.36
11
(translation_unit) "//\n// EffectLevitate.h\n// WizardWar\n//\n// Created by <NAME> on 6/13/13.\n// Copyright (c) 2013 The LAB. All rights reserved.\n//\n\n#import "PlayerEffect.h"\n#import "PEApply.h"\n\n@interface PELevitate : PEApply\n\n@end\n" (comment) "//" (comment) "// EffectLevitate.h" (comment) "// ...
22
3
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 18.36, "nodes": 12, "errors": 0, "source_hash": "d623048ead94b5a37339b2af70c1e562f4e1c98397e2e1d621331aa510eb5ca3", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
2,265
c
#ifndef MEMORY_HEADER__ #define MEMORY_HEADER__ #include <stdio.h> #include <stdlib.h> #include <assert.h> #define PAGE_HEADER_SIZE (sizeof(MemoryPage)) #define DEFAULT_PAGE_SIZE (1024) #define ALLOC_PAGE_SIZE(storage) (storage->page_size-PAGE_HEADER_SIZE) #define MEM_CURRENT_CONTROLLER ...
41.02
63
(translation_unit) "#ifndef MEMORY_HEADER__\n#define MEMORY_HEADER__\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <assert.h>\n\n\n#define PAGE_HEADER_SIZE (sizeof(MemoryPage))\n#define DEFAULT_PAGE_SIZE (1024)\n#define ALLOC_PAGE_SIZE(storage) (storage->page_size-PAGE_HEADER_SIZE)\n#defi...
425
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 41.02, "nodes": 329, "errors": 0, "source_hash": "0f9b6a780589818dabac3e8228c0024a2369ce2a45e8c036738ee6436273b06f", "categorized_nodes": 193}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,266
c
#include <stdio.h> #include <stdlib.h> #include <string.h> void static_1D_array() { int sarr[5] = { 1, 2, 3, 4 ,5 }; uint arr_size = sizeof(sarr) / sizeof(sarr[0]); for (int index = 0; index < arr_size; index++) printf("%d\t", sarr[index]); printf("\n"); } void dynam...
28.51
53
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\nvoid static_1D_array()\n{\n int sarr[5] = { 1, 2, 3, 4 ,5 };\n\n uint arr_size = sizeof(sarr) / sizeof(sarr[0]);\n\n for (int index = 0; index < arr_size; index++)\n printf("%d\t", sarr[index]);\n\n ...
542
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 28.51, "nodes": 336, "errors": 0, "source_hash": "fa1167a58ecaa0a38e715b87f9ea2f8f2bde564f1c763ad070acf4d48abf9add", "categorized_nodes": 208}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,267
c
/* $NetBSD: rup.c,v 1.15 1997/10/19 14:25:03 lukem Exp $ */ /*- * Copyright (c) 1993, <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 reta...
24.96
307
(translation_unit) "/* $NetBSD: rup.c,v 1.15 1997/10/19 14:25:03 lukem Exp $ */\n\n/*-\n * Copyright (c) 1993, <NAME>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistribut...
2,217
5
{"language": "c", "success": true, "metadata": {"lines": 307, "avg_line_length": 24.96, "nodes": 1374, "errors": 0, "source_hash": "561acfe616837b56fcd933acfb29578171187a0d7b66c4dd6a4b92f6efdd1c22", "categorized_nodes": 978}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
2,268
c
/* { dg-do compile } */ /* { dg-options "-O -fdump-tree-fre1" } */ /* FRE should be able to combine i and j and perform simplification on the condition. */ extern void link_error (void); int i; int foo(int b, int c) { i = b + 1; int j = i - 1; if (b != j) link_error (); } /* { dg-final { scan-tree-dump...
23.93
14
(translation_unit) "/* { dg-do compile } */\n/* { dg-options "-O -fdump-tree-fre1" } */\n\n/* FRE should be able to combine i and j and perform simplification\n on the condition. */\n\nextern void link_error (void);\nint i;\nint foo(int b, int c)\n{\n i = b + 1;\n int j = i - 1;\n if (b != j)\n link_error ();\...
73
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 23.93, "nodes": 48, "errors": 0, "source_hash": "1c3f012d50a1a4f6456740f5bb4cabee619b36fd4328bd7a5c24890deb99195a", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern voi...
2,269
c
#ifndef __ARCH_SYS_ARCH_H__ #define __ARCH_SYS_ARCH_H__ #include "bitthunder.h" typedef BT_HANDLE sys_sem_t; typedef BT_HANDLE sys_mutex_t; typedef BT_HANDLE sys_mbox_t; typedef BT_HANDLE sys_thread_t; #define SYS_MBOX_NULL ( ( sys_mbox_t ) NULL ) #define SYS_SEM_NULL ( ( sys_sem_t ) NULL ) #define SYS_DEFA...
33.37
19
(translation_unit) "#ifndef __ARCH_SYS_ARCH_H__\n#define __ARCH_SYS_ARCH_H__\n\n#include "bitthunder.h"\n\n\ntypedef BT_HANDLE sys_sem_t;\ntypedef BT_HANDLE sys_mutex_t;\ntypedef BT_HANDLE sys_mbox_t;\ntypedef BT_HANDLE sys_thread_t;\n\n#define SYS_MBOX_NULL ( ( sys_mbox_t ) NULL )\n#define SYS_SEM_NULL ( ( sys...
84
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 33.37, "nodes": 66, "errors": 0, "source_hash": "626f59a2d02d15f321d74fd8ae2f725164d50cce1924077e293614865c9dd5a8", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,270
c
#include "../src/insn.h" #include "../src/vm.h" #include <assert.h> #include <string.h> static unsigned char test0[] = {VM_INSN_MOVB_IMM8_TO_R3, 0xfa, 0x14, VM_INSN_ADDB_IMM8_R3_TO_R1, 0xfa, ...
35.38
84
(translation_unit) "#include "../src/insn.h"\n#include "../src/vm.h"\n#include <assert.h>\n#include <string.h>\n\nstatic unsigned char test0[] = {VM_INSN_MOVB_IMM8_TO_R3,\n 0xfa,\n 0x14,\n VM_INSN_ADDB_IMM8_R3_TO_R1,\n ...
731
0
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 35.38, "nodes": 425, "errors": 0, "source_hash": "465c23df48f3eed5996b3d71cc27594878dcade475e687eb676f24d4df506616", "categorized_nodes": 278}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,271
c
/* * Copyright (c) 2014, Linear Technology. All rights reserved. */ #pragma once /** * \file common.h * Common utility functions used across Voyager components */ #ifdef WIN32 #include <winsock2.h> #else #include <arpa/inet.h> #endif #include <stdlib.h> #include <stdint.h> #include <boost/chrono.hpp> #i...
38.2
184
(translation_unit) "/*\n * Copyright (c) 2014, Linear Technology. All rights reserved.\n */\n\n#pragma once\n\n/**\n * \file common.h\n * Common utility functions used across Voyager components\n */\n\n#ifdef WIN32\n #include <winsock2.h>\n#else\n #include <arpa/inet.h>\n#endif\n\n#include <stdlib.h>\n#include <std...
1,174
53
{"language": "c", "success": true, "metadata": {"lines": 184, "avg_line_length": 38.2, "nodes": 717, "errors": 0, "source_hash": "02fcdc7289d7d6d11ee534504c8ce60eac3095bf92cf85464f92099e855c0da8", "categorized_nodes": 474}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
2,272
c
// // CBGConst.h // BXTsuishenting // // Created by cbg on 16/11/29. // Copyright © 2016年 cbg. All rights reserved. // #import <UIKit/UIKit.h> /** 6S 屏幕宽度 */ UIKIT_EXTERN CGFloat const CBG6sWidth; /** 6S 屏幕高度 */ UIKIT_EXTERN CGFloat const CBG6sHeight; /** 圆形进度条大小 */ UIKIT_EXTERN CGFloat const CBGProgressWidth...
20.13
15
(translation_unit) "//\n// CBGConst.h\n// BXTsuishenting\n//\n// Created by cbg on 16/11/29.\n// Copyright © 2016年 cbg. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n\n\n/** 6S 屏幕宽度 */\nUIKIT_EXTERN CGFloat const CBG6sWidth;\n\n/** 6S 屏幕高度 */\nUIKIT_EXTERN CGFloat const CBG6sHeight;\n\n/** 圆形进度条大小 */\nUIKI...
35
3
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 20.13, "nodes": 21, "errors": 0, "source_hash": "f01fd504a60d2f85b46f22b63d2bfa9506a498c8667832e13e94550b1c6b00f9", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
2,273
c
/* vim: tabstop=4 shiftwidth=4 noexpandtab * This file is part of ToyOS and is released under the terms * of the NCSA / University of Illinois License - see LICENSE.md * Copyright (C) 2015 <NAME> */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "lib/testing.h" static char...
27.97
67
(translation_unit) "/* vim: tabstop=4 shiftwidth=4 noexpandtab\n * This file is part of ToyOS and is released under the terms\n * of the NCSA / University of Illinois License - see LICENSE.md\n * Copyright (C) 2015 <NAME>\n */\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <unistd.h>\n\n#includ...
589
0
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 27.97, "nodes": 279, "errors": 0, "source_hash": "b6e94447e6b76e3640e0e03af2f6b0d8e2afca28dca94914fb7193c1d942d25f", "categorized_nodes": 208}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,274
c
// // PDFCollectionViewCell.h // FYPDF // // Created by wang on 2018/8/22. // Copyright © 2018年 wang. All rights reserved. // #import <UIKit/UIKit.h> @interface PDFCollectionViewCell : UICollectionViewCell @property(nonatomic,strong) UIImageView *imageView; @property(nonatomic,assign) NSInteger page; @end
25
12
(translation_unit) "//\n// PDFCollectionViewCell.h\n// FYPDF\n//\n// Created by wang on 2018/8/22.\n// Copyright © 2018年 wang. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface PDFCollectionViewCell : UICollectionViewCell\n@property(nonatomic,strong) UIImageView *imageView;\n@property(nonatomic,ass...
52
10
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 25.0, "nodes": 35, "errors": 0, "source_hash": "4bde8cf0ed317f5b00c39b40d0d670a393f0fb02f47924fe8d1a5c927e65407f", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKi...
2,275
c
/* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by <NAME>. */ #import <DevToolsCore/PBXBuildPhase.h> @class NSString; @interface PBXAppleScriptBuildPhase : PBXBuildPhase { BOOL _isSharedContext; NSString *_contextName; } + (id)archivab...
25.04
28
(translation_unit) "/*\n * Generated by class-dump 3.3.4 (64 bit).\n *\n * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by <NAME>.\n */\n\n#import <DevToolsCore/PBXBuildPhase.h>\n\n@class NSString;\n\n@interface PBXAppleScriptBuildPhase : PBXBuildPhase\n{\n BOOL _isSharedContext;\n NSString...
217
12
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 25.04, "nodes": 129, "errors": 0, "source_hash": "6d3042c42f402106d841c1f68211b40e722a28a53e88b6e4d597794f0ca33c64", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
2,276
c
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Platform data for WM8955 * * Copyright 2009 Wolfson Microelectronics PLC. * * Author: <NAME> <<EMAIL>> */ #ifndef __WM8955_PDATA_H__ #define __WM8955_PDATA_H__ struct wm8955_pdata { /* Configure LOUT2/ROUT2 to drive a speaker */ unsigned int out2_speaker:1;...
22.88
17
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0-or-later */\n/*\n * Platform data for WM8955\n *\n * Copyright 2009 Wolfson Microelectronics PLC.\n *\n * Author: <NAME> <<EMAIL>>\n */\n\n#ifndef __WM8955_PDATA_H__\n#define __WM8955_PDATA_H__\n\nstruct wm8955_pdata {\n /* Configure LOUT2/ROUT2 to drive a speaker...
37
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 22.88, "nodes": 24, "errors": 0, "source_hash": "121657806799193697711bc1f5afd849daf081941a05b912719b4b994f696fa5", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,277
c
#ifndef joedb_Readable_declared #define joedb_Readable_declared #include "Type.h" #include "Exception.h" #include <map> #include <string> namespace joedb { class Compact_Freedom_Keeper; //////////////////////////////////////////////////////////////////////////// class Readable //////////////////////////////////...
25.27
93
(translation_unit) "#ifndef joedb_Readable_declared\n#define joedb_Readable_declared\n\n#include "Type.h"\n#include "Exception.h"\n\n#include <map>\n#include <string>\n\nnamespace joedb\n{\n class Compact_Freedom_Keeper;\n\n ////////////////////////////////////////////////////////////////////////////\n class Readable\n...
621
35
{"language": "c", "success": true, "metadata": {"lines": 93, "avg_line_length": 25.27, "nodes": 345, "errors": 0, "source_hash": "3daee9c339c67f216c832959c2377a922077f2750a8c325d667954e12c95a842", "categorized_nodes": 248}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
2,278
c
#include "mupdf/pdf.h" typedef struct globals_s { pdf_document *doc; fz_context *ctx; } globals; static int string_in_names_list(fz_context *ctx, pdf_obj *p, pdf_obj *names_list) { int n = pdf_array_len(ctx, names_list); int i; char *str = pdf_to_str_buf(ctx, p); for (i = 0; i < n ; i += 2) { if (!strcmp(pd...
31.94
177
(translation_unit) "#include "mupdf/pdf.h"\n\ntypedef struct globals_s\n{\n pdf_document *doc;\n fz_context *ctx;\n} globals;\n\nstatic int\nstring_in_names_list(fz_context *ctx, pdf_obj *p, pdf_obj *names_list)\n{\n int n = pdf_array_len(ctx, names_list);\n int i;\n char *str = pdf_to_str_buf(ctx, p);\n\n for (i = 0; ...
1,847
0
{"language": "c", "success": true, "metadata": {"lines": 177, "avg_line_length": 31.94, "nodes": 1135, "errors": 0, "source_hash": "cded5f5417442d5d6d70e42480dc34a8240fd7d5de6f2fa2c829575285bfc9eb", "categorized_nodes": 802}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
2,279
c
// // MLNCollectionViewGridLayoutFix.h // MLN // // Created by MoMo on 2019/11/1. // #import "MLNCollectionViewGridLayout.h" #import "MLNEntityExportProtocol.h" NS_ASSUME_NONNULL_BEGIN @interface MLNCollectionViewGridLayoutFix : MLNCollectionViewGridLayout<MLNEntityExportProtocol> @end NS_ASSUME_NONNULL_END
25
12
(translation_unit) "//\n// MLNCollectionViewGridLayoutFix.h\n// MLN\n//\n// Created by MoMo on 2019/11/1.\n//\n\n#import "MLNCollectionViewGridLayout.h"\n#import "MLNEntityExportProtocol.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface MLNCollectionViewGridLayoutFix : MLNCollectionViewGridLayout<MLNEntityExportProtocol>\...
34
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 25.0, "nodes": 22, "errors": 0, "source_hash": "abdd8c33f19181d9fe14de58a8810f502fa349caad93251f3dfa2f394a48bd40", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
2,280
c
/* SPDX-License-Identifier: LGPL-2.1+ */ #include <stdlib.h> #include <sys/socket.h> #include "fd-util.h" #include "log.h" #include "socket-util.h" int main(int argc, char* argv[]) { static const union sockaddr_union sa = { .un.sun_family = AF_UNIX, .un.sun_path = "/run/systemd/cgroups-agent", ...
24.88
41
(translation_unit) "/* SPDX-License-Identifier: LGPL-2.1+ */\n\n#include <stdlib.h>\n#include <sys/socket.h>\n\n#include "fd-util.h"\n#include "log.h"\n#include "socket-util.h"\n\nint main(int argc, char* argv[])\n{\n\n static const union sockaddr_union sa = {\n .un.sun_family = AF_UNIX,\n .un.sun_path...
302
1
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 24.88, "nodes": 165, "errors": 0, "source_hash": "d2e54cd4960852799318241d82ea91806f161463da422e786db36a172ed0c11e", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,281
c
#if !defined(OTTER_TRACE_RGN_WORKSHARE_H) #define OTTER_TRACE_RGN_WORKSHARE_H #include <stdint.h> #include <stdbool.h> #include <otf2/otf2.h> #include "otter/otter-ompt-header.h" #include "otter/otter-common.h" #include "otter/queue.h" #include "otter/stack.h" #include "otter/trace.h" /* Create region */ trace_regio...
30.18
22
(translation_unit) "#if !defined(OTTER_TRACE_RGN_WORKSHARE_H)\n#define OTTER_TRACE_RGN_WORKSHARE_H\n\n#include <stdint.h>\n#include <stdbool.h>\n#include <otf2/otf2.h>\n\n#include "otter/otter-ompt-header.h"\n#include "otter/otter-common.h"\n#include "otter/queue.h"\n#include "otter/stack.h"\n#include "otter/trace.h"\n...
110
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 30.18, "nodes": 77, "errors": 0, "source_hash": "5a2979d6ca5ccd393e4935d4164754bb095d39234b0552bc8068c0a3e5d5f743", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !define...
2,282
c
// // SearchAssembly.h // Drinder-ios // // Created by <NAME> on 8/1/20. // Copyright © 2020 <NAME>. All rights reserved. // #import "Assembly.h" #import "SearchCoordinator.h" #import "UserInfoSession.h" #import "SearchViewController.h" #import "UserDetailsViewController.h" #import "EditViewController.h" NS_ASSUM...
34.9
21
(translation_unit) "//\n// SearchAssembly.h\n// Drinder-ios\n//\n// Created by <NAME> on 8/1/20.\n// Copyright © 2020 <NAME>. All rights reserved.\n//\n\n#import "Assembly.h"\n#import "SearchCoordinator.h"\n#import "UserInfoSession.h"\n#import "SearchViewController.h"\n#import "UserDetailsViewController.h"\n#import...
144
14
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 34.9, "nodes": 80, "errors": 0, "source_hash": "f1fb2c904725d82c1366a9cbeaa40dbc5d5ab46e890ff783e5166316627748a2", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"A...
2,283
c
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
29.06
68
(translation_unit) "// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD\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/...
175
0
{"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 29.06, "nodes": 109, "errors": 0, "source_hash": "60dc2b049e2f8f4525e52d1988dee0b003b133810267f75b75558e505995e933", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
2,284
c
/* **============================================================================== ** ** LSVMTools ** ** MIT License ** ** Copyright (c) Microsoft Corporation. All rights reserved. ** ** Permission is hereby granted, free of charge, to any person obtaining a copy ** of this software and associated documentation fi...
24.66
139
(translation_unit) "/*\n**==============================================================================\n**\n** LSVMTools \n** \n** MIT License\n** \n** Copyright (c) Microsoft Corporation. All rights reserved.\n** \n** Permission is hereby granted, free of charge, to any person obtaining a copy\n** of this software a...
729
0
{"language": "c", "success": true, "metadata": {"lines": 139, "avg_line_length": 24.66, "nodes": 451, "errors": 0, "source_hash": "5c8b3b3121f1bccfcdb48fea8a5b6b604eb43ce857ff3647efdcc62c222fafae", "categorized_nodes": 303}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
2,285
c
/* * motion_detection_manager.h * * Created on: 21 avr. 2014 * Author: essoussi */ #ifndef MOTION_DETECTION_MANAGER_H_ #define MOTION_DETECTION_MANAGER_H_ #include "stm32l1xx.h" #include "stm32l1xx_conf.h" /* Public function prototypes -----------------------------------------------*/ extern void MDM_Se_...
28.41
22
(translation_unit) "/*\n * motion_detection_manager.h\n *\n * Created on: 21 avr. 2014\n * Author: essoussi\n */\n\n#ifndef MOTION_DETECTION_MANAGER_H_\n#define MOTION_DETECTION_MANAGER_H_\n\n\n#include "stm32l1xx.h"\n#include "stm32l1xx_conf.h"\n\n/* Public function prototypes -----------------------------------...
94
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 28.41, "nodes": 65, "errors": 0, "source_hash": "290a181566b62ba1129153ce9996cf3c10b4267dba09f76de278279508fd8bba", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,286
c
/* SPDX-License-Identifier: GPL-2.0 */ /* * rational fractions * * Copyright (C) 2009 emlix GmbH, <NAME> <<EMAIL>> * * helper functions when coping with rational numbers, * e.g. when calculating optimum numerator/denominator pairs for * pll configuration taking into account restricted register size */ #ifndef ...
35.47
17
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0 */\n/*\n * rational fractions\n *\n * Copyright (C) 2009 emlix GmbH, <NAME> <<EMAIL>>\n *\n * helper functions when coping with rational numbers,\n * e.g. when calculating optimum numerator/denominator pairs for\n * pll configuration taking into account restricted...
58
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 35.47, "nodes": 46, "errors": 0, "source_hash": "dbb133b2d58a57e852365364bdd9ab2aea40298a0a98e8bddc92ac18cb4ebede", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
2,287
c
// // SceneDelegate.h // MachODemo // // Created by vchan on 2021/5/31. // #import <UIKit/UIKit.h> @interface SceneDelegate : UIResponder <UIWindowSceneDelegate> @property (strong, nonatomic) UIWindow * window; @end
20.9
10
(translation_unit) "//\n// SceneDelegate.h\n// MachODemo\n//\n// Created by vchan on 2021/5/31.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface SceneDelegate : UIResponder <UIWindowSceneDelegate>\n\n@property (strong, nonatomic) UIWindow * window;\n\n@end\n\n" (comment) "//" (comment) "// SceneDelegate.h" (comme...
38
6
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.9, "nodes": 25, "errors": 0, "source_hash": "9a5a7131711b23d9565433407ad63685283087ff6d10d6eef7ace80aab8fd420", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <U...
2,288
c
#pragma once #include "DatabaseResource.h" #include "ResourceWithPreview.h" #include <string> namespace DV { class PreparedStatement; class FolderListItem; class Folder : public DatabaseResource, public ResourceWithPreview, public std::enable_shared_from_this<Folder> { friend Data...
32.94
66
(translation_unit) "#pragma once\n\n#include "DatabaseResource.h"\n#include "ResourceWithPreview.h"\n\n#include <string>\n\nnamespace DV {\n\nclass PreparedStatement;\nclass FolderListItem;\n\nclass Folder : public DatabaseResource,\n public ResourceWithPreview,\n public std::enable_shared_f...
408
25
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 32.94, "nodes": 218, "errors": 0, "source_hash": "3219c96813eb076762c0c716fb4f837daf8b67393e0d0c117286b05e8f7dbf03", "categorized_nodes": 148}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
2,289
c
#define MA_NO_DECODING #define MA_NO_ENCODING #define MA_IMPLEMENTATION #include "../../../miniaudio/miniaudio.h" #define DR_WAV_IMPLEMENTATION #include "../../dr_wav.h" #include "../common/dr_common.c" drwav g_wav; void data_callback(ma_device* pDevice, void* pOutput, const void* pInput, ma_uint32 frameCount) { ...
31.07
57
(translation_unit) "#define MA_NO_DECODING\n#define MA_NO_ENCODING\n#define MA_IMPLEMENTATION\n#include "../../../miniaudio/miniaudio.h"\n\n#define DR_WAV_IMPLEMENTATION\n#include "../../dr_wav.h"\n#include "../common/dr_common.c"\n\ndrwav g_wav;\n\nvoid data_callback(ma_device* pDevice, void* pOutput, const void* pInp...
475
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 31.07, "nodes": 263, "errors": 0, "source_hash": "55dbb0911c389243251b38a120c628d1637ed1da8191354ccee2836be3455aea", "categorized_nodes": 199}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ...
2,290
c
#pragma once #include <memory> #include "glm/fwd.hpp" #define DivUp(x, y) ((x) + (y) - 1) / (y) namespace CUDAExport { enum class MemoryType : unsigned char { HostPaged, HostPinned, Device, }; template<typename Type> Type* hostPinnedNew(unsigned int count) { T...
31.32
129
(translation_unit) "#pragma once\n\n#include <memory>\n#include "glm/fwd.hpp"\n\n#define DivUp(x, y) ((x) + (y) - 1) / (y)\n\nnamespace CUDAExport\n{\n enum class MemoryType : unsigned char\n {\n HostPaged,\n HostPinned,\n Device,\n };\n\n template<typename Type>\n Type* hostPinnedNe...
1,148
58
{"language": "c", "success": true, "metadata": {"lines": 129, "avg_line_length": 31.32, "nodes": 742, "errors": 0, "source_hash": "ca5bd7d16737e2c8789e608ad292c9c274f6bd51e1f19c8ed1619d8d2b9a9265", "categorized_nodes": 483}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
2,291
c
/* * Copyright (c) 2006-2009 <NAME> (<EMAIL>) * 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 o...
28.47
87
(translation_unit) "/*\n * Copyright (c) 2006-2009 <NAME> (<EMAIL>)\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyrigh...
416
0
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 28.47, "nodes": 204, "errors": 0, "source_hash": "139af85402309faaeca2fc4b828910cfe582f3635bd15dd4c9aeb6a32cb11813", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,292
c
#include <signal.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int main(int argc,char** argv){ if(argc!=3){ printf("Errore: numero errato di parametri inserito!!\n"); exit(1); } if(!strcmp(argv[2],"somma")) kill(atoi(argv[1]),SIGUSR1); else if(!strcmp(argv[2],"differenza")) ...
29.12
16
(translation_unit) "#include <signal.h>\n#include <unistd.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\nint main(int argc,char** argv){\n if(argc!=3){\n printf("Errore: numero errato di parametri inserito!!\n");\n exit(1);\n }\n if(!strcmp(argv[2],"somma")) kill(atoi(argv[1]),SIGUSR1);\n else if...
220
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 29.12, "nodes": 121, "errors": 0, "source_hash": "b706cdc1275fad4171a45d24abc7740ebb841289f93e5c02a394de180718045d", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
2,293
c
//! //! Copyright (c) 2018, The casual project //! //! This software is licensed under the MIT license, https://opensource.org/licenses/MIT //! #pragma once #include "common/range.h" #include "common/transcode.h" namespace casual { namespace common { namespace view { template< typename I...
37.9
70
(translation_unit) "//!\n//! Copyright (c) 2018, The casual project\n//!\n//! This software is licensed under the MIT license, https://opensource.org/licenses/MIT\n//!\n\n#pragma once\n\n\n#include "common/range.h"\n#include "common/transcode.h"\n\n\nnamespace casual\n{\n namespace common\n {\n namespace view\...
785
61
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 37.9, "nodes": 481, "errors": 0, "source_hash": "a64eb45bdff4c50a1efc4a0cfa153643fc0fd38de182655065f5633ebca26f3e", "categorized_nodes": 324}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
2,294
c
#include "newton_interval.h" #include "unittest.h" #include <stdio.h> int test1(){ const int nt = 4; double t[] = {0.0,1.0,2.0,3.0}; double treq = 0.5; int i=-2; i=(int)get_interval(t, nt, treq); return (i == 0); } int test2(){ const int nt = 2; double t[] = {0.0,1.0}; double treq = 0.5; int i=-2...
22.49
57
(translation_unit) "#include "newton_interval.h"\n#include "unittest.h"\n\n#include <stdio.h>\n\nint test1(){\n const int nt = 4;\n double t[] = {0.0,1.0,2.0,3.0};\n double treq = 0.5;\n int i=-2;\n i=(int)get_interval(t, nt, treq);\n return (i == 0);\n}\n\nint test2(){\n const int nt = 2;\n double t[] = {0.0,1...
641
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 22.49, "nodes": 392, "errors": 0, "source_hash": "bb1b32add4b3e956343b6a1a901bb387520edd370e01ef57e4373ed936fd3266", "categorized_nodes": 243}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
2,295
c
#pragma once #include "WinPreConfig.h" #ifdef CRU_PLATFORM_WINDOWS #ifdef CRU_WIN_EXPORT_API #define CRU_WIN_API __declspec(dllexport) #else #define CRU_WIN_API __declspec(dllimport) #endif #else #define CRU_WIN_API #endif
19.27
11
(translation_unit) "#pragma once\n\n#include "WinPreConfig.h"\n\n#ifdef CRU_PLATFORM_WINDOWS\n#ifdef CRU_WIN_EXPORT_API\n#define CRU_WIN_API __declspec(dllexport)\n#else\n#define CRU_WIN_API __declspec(dllimport)\n#endif\n#else\n#define CRU_WIN_API\n#endif\n" (preproc_call) "#pragma once\n" (preproc_directive) "#...
33
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 19.27, "nodes": 29, "errors": 0, "source_hash": "c6dbb7781a13ef18534213669baa25bc6319991ceb0ec221ae6d0fe381eff24d", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
2,296
c
#ifndef VILLAGE_H #define VILLAGE_H #include "core/string.h" #include "core/resource.h" class Village : public Resource { RCPP_OBJECT(Village, Resource); public: Village(); ~Village(); }; #endif
17
11
(translation_unit) "#ifndef VILLAGE_H\n#define VILLAGE_H\n\n#include "core/string.h"\n\n#include "core/resource.h"\n\nclass Village : public Resource {\n RCPP_OBJECT(Village, Resource);\n\npublic:\n Village();\n ~Village();\n};\n\n#endif" (preproc_ifdef) "#ifndef VILLAGE_H\n#define VILLAGE_H\n\n#include "core/string....
61
1
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 17.0, "nodes": 31, "errors": 0, "source_hash": "2d7307a762c840652774a2777e3da2906c48952003e5aacd5ca02ce52fbdc6ed", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef V...
2,297
c
// // Created by zhukovasky on 2020/8/13. // #ifndef JAVAP_BYTECODEREADER_H #define JAVAP_BYTECODEREADER_H #include "../../common/Internal.h" namespace Instruction{ class ByteCodeReader { public: ByteCodeReader(); ByteCodeReader(int pc, u1 *code); ByteCodeReader(u1 *code); ...
20.77
30
(translation_unit) "//\n// Created by zhukovasky on 2020/8/13.\n//\n\n#ifndef JAVAP_BYTECODEREADER_H\n#define JAVAP_BYTECODEREADER_H\n\n\n#include "../../common/Internal.h"\n\nnamespace Instruction{\n class ByteCodeReader {\n public:\n ByteCodeReader();\n\n ByteCodeReader(int pc, u1 *code);\n\n ...
181
6
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 20.77, "nodes": 111, "errors": 0, "source_hash": "fa91c6c83ff513c6bdaa7b9d30b2b1f053aa4fb2c0df68cf2db8c991455f853d", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
2,298
c
/* * Copyright (C) 2018 The Android Open Source Project * * 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 app...
33.76
41
(translation_unit) "/*\n * Copyright (C) 2018 The Android Open Source Project\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...
203
12
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 33.76, "nodes": 100, "errors": 0, "source_hash": "290b563f84e400ac313cbc0d155f2e3f8c8e8e4e75877a199a6565769ee0464f", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
2,299