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
/* * led.c * * Created on: 2016. 7. 7. * Author: Baram, PBHP */ #include "wdg.h" static IWDG_HandleTypeDef IwdgHandle; void wdg_init() { } BOOL wdg_setup(uint32_t reload_time) { IwdgHandle.Instance = IWDG; IwdgHandle.Init.Prescaler = IWDG_PRESCALER_32; // 32Khz/32 = ...
14.04
55
(translation_unit) "/* \n * led.c \n * \n * Created on: 2016. 7. 7. \n * Author: Baram, PBHP \n */ \n \n#include "wdg.h" \n \n \n \nstatic IWDG_HandleTypeDef IwdgHandle; \n \n \n \nvoid wdg_init() \n{ \n} \n \nBOOL wdg_setup(uint32_t reload_time) \n{ \n \n IwdgHandle.Instance = IWDG; \n IwdgHandle.Init.Pr...
174
0
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 14.04, "nodes": 94, "errors": 0, "source_hash": "f0d9e0e2a20f394ef5a9263e695ca0028e0efa5e18e0ab4b44504ed9f0afb183", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
8,300
c
#pragma once #include "Dot/Debug/Log.h" #include <glm/glm.hpp> #define D_STATIC_DRAW 0x88E4 #define D_DYNAMIC_DRAW 0x88E8 #define D_STREAM_DRAW 0x88E0 namespace Dot { enum class ShaderDataType { None = 0, Float, Float2, Float3, Float4, Mat3, Mat4, Int, Int2, Int3, Int4, Bool }; static unsigned int ShaderDataT...
30.74
158
(translation_unit) "#pragma once\n#include "Dot/Debug/Log.h"\n#include <glm/glm.hpp>\n\n#define D_STATIC_DRAW 0x88E4\n#define D_DYNAMIC_DRAW 0x88E8\n#define D_STREAM_DRAW 0x88E0\n\nnamespace Dot {\n\n enum class ShaderDataType\n {\n None = 0, Float, Float2, Float3, Float4, Mat3, Mat4, Int, Int2, Int3, Int4, Bool\n };\...
1,602
89
{"language": "c", "success": true, "metadata": {"lines": 158, "avg_line_length": 30.74, "nodes": 1009, "errors": 0, "source_hash": "d1bd52cfc633a5143f1316676918384e0a3690bfd6ee6c4abbefae12339b2f54", "categorized_nodes": 734}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#prag...
8,301
c
#pragma once #include "Lutefisk3D.h" #include "Lutefisk3D/Container/RefCounted.h" #include <vector> namespace Urho3D { class Object; class LUTEFISK3D_EXPORT EventReceiverGroup : public RefCounted { public: void BeginSendEvent(); void EndSendEvent(); void Add(Object *object); void Remove(Object *object)...
20.45
20
(translation_unit) "#pragma once\n#include "Lutefisk3D.h"\n#include "Lutefisk3D/Container/RefCounted.h"\n#include <vector>\nnamespace Urho3D\n{\nclass Object;\n\nclass LUTEFISK3D_EXPORT EventReceiverGroup : public RefCounted\n{\npublic:\n void BeginSendEvent();\n void EndSendEvent();\n void Add(Object *object)...
123
3
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 20.45, "nodes": 79, "errors": 0, "source_hash": "36acefd1a2c520712cb1e1ab8237d133a2af0203eb5c82566bc3e929e90d44b1", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
8,302
c
#ifndef LIB_H_ #define LIB_H_ #include "print.h" #include "i8259.h" #include "keyboard.h" #include "print.h" #include "exception_handler.h" #include "disk.h" extern void memcpy(void* des, void* source,unsigned int size); extern void start_int(); extern void close_int(); extern unsigned short get_port_value(unsigne...
31.95
19
(translation_unit) "#ifndef LIB_H_\n#define LIB_H_\n\n#include "print.h"\n#include "i8259.h"\n#include "keyboard.h"\n#include "print.h"\n#include "exception_handler.h"\n#include "disk.h"\nextern void memcpy(void* des, void* source,unsigned int size);\n\n\n\nextern void start_int();\nextern void close_int();\n\nextern u...
207
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 31.95, "nodes": 154, "errors": 0, "source_hash": "dd1bceb006af414ad1dfafea0c0bb49a405adac2cec41120d5ea23f6197359cc", "categorized_nodes": 96}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
8,303
c
#pragma once #include <string> #include <list> #include <map> #include <vector> #include "defines.h" #include "globals.h" namespace terrain { WorldFormat getWorldFormat(const std::string& worldPath); bool scanWorldDirectory(const std::string& fromPath); bool loadTerrain(const std::string& fromPath, int &loadedChun...
28.77
47
(translation_unit) "#pragma once\n\n#include <string>\n#include <list>\n#include <map>\n#include <vector>\n#include "defines.h"\n#include "globals.h"\n\nnamespace terrain\n{\n WorldFormat getWorldFormat(const std::string& worldPath);\n bool scanWorldDirectory(const std::string& fromPath);\n bool loadTerrain(const std::...
356
18
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 28.77, "nodes": 209, "errors": 0, "source_hash": "3378f18e7d540f8a55419a6653eb458459cdf8ad756a0d5e664ec32e1b76b02a", "categorized_nodes": 154}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
8,304
c
/* * Phoenix-RTOS * * Operating system loader * * Common Flash Interface for flash driver * * Copyright 2021 Phoenix Systems * Author: <NAME> * * This file is part of Phoenix-RTOS. * * %LICENSE% */ #ifndef _FLASHCFG_H_ #define _FLASHCFG_H_ #include <hal/hal.h> /* Return timeouts in ms */ #define CFI_TIM...
24.4
109
(translation_unit) "/*\n * Phoenix-RTOS\n *\n * Operating system loader\n *\n * Common Flash Interface for flash driver\n *\n * Copyright 2021 Phoenix Systems\n * Author: <NAME>\n *\n * This file is part of Phoenix-RTOS.\n *\n * %LICENSE%\n */\n\n#ifndef _FLASHCFG_H_\n#define _FLASHCFG_H_\n\n#include <hal/hal.h>\n\n/* ...
431
0
{"language": "c", "success": true, "metadata": {"lines": 109, "avg_line_length": 24.4, "nodes": 296, "errors": 0, "source_hash": "7aa118961e7b743104c4c4e8aa75b29590e209761524e30fe9a7103c63e66408", "categorized_nodes": 206}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,305
c
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /* * File: urcu.h * Author: <NAME> * * Created on June 10, 2017, 12:07 PM */ #ifndef URCU_H #define URCU_H typedef struct rc...
22.34
35
(translation_unit) "/*\n * To change this license header, choose License Headers in Project Properties.\n * To change this template file, choose Tools | Templates\n * and open the template in the editor.\n */\n\n/* \n * File: urcu.h\n * Author: <NAME>\n *\n * Created on June 10, 2017, 12:07 PM\n */\n\n#ifndef URCU_H\...
140
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 22.34, "nodes": 88, "errors": 0, "source_hash": "482621bcc60f0b715328e85b8ad9a1eb9ba1a1b73285dc1e8e7d9929110a022c", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,306
c
#ifndef MY_FIRST_VULKAN_ENGINE_VK_BASE_H #define MY_FIRST_VULKAN_ENGINE_VK_BASE_H #include <mfve_pch.h> #include <stdexcept> // Vulkan #include <vulkan/vulkan.h> // GLM #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> namespace MFVE::Vulkan { /** * \brief Check a VkResult is successful */ st...
22.22
23
(translation_unit) "#ifndef MY_FIRST_VULKAN_ENGINE_VK_BASE_H\n#define MY_FIRST_VULKAN_ENGINE_VK_BASE_H\n\n#include <mfve_pch.h>\n#include <stdexcept>\n\n// Vulkan\n#include <vulkan/vulkan.h>\n\n// GLM\n#include <glm/glm.hpp>\n#include <glm/gtc/matrix_transform.hpp>\n\nnamespace MFVE::Vulkan\n{\n /**\n * \brief Check...
91
2
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 22.22, "nodes": 57, "errors": 0, "source_hash": "6f082ce8d48c4e09176da52c9f913d5be5d097e755f9c9e44850b20efe43a8a3", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,307
c
/* * @f ccnl-pkt-util.c * * Copyright (C) 2011-15, University of Basel * * Permission to use, copy, modify, and/or 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 copies. * * THE SOFTWARE IS PR...
25.17
220
(translation_unit) "/*\n * @f ccnl-pkt-util.c\n *\n * Copyright (C) 2011-15, University of Basel\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copie...
1,201
0
{"language": "c", "success": true, "metadata": {"lines": 220, "avg_line_length": 25.17, "nodes": 736, "errors": 0, "source_hash": "6a49c79da4bae6766e9629826d48a59ce207c12b4474bebc1ab7a5817f415865", "categorized_nodes": 569}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
8,308
c
// Copyright (c) 2011 // Utrecht University (The Netherlands), // ETH Zurich (Switzerland), // INRIA Sophia-Antipolis (France), // Max-Planck-Institute Saarbruecken (Germany), // and Tel-Aviv University (Israel). All rights reserved. // // This file is part of CGAL (www.cgal.org); you can redistribute it and/or // mo...
37.27
41
(translation_unit) "// Copyright (c) 2011\n// Utrecht University (The Netherlands),\n// ETH Zurich (Switzerland),\n// INRIA Sophia-Antipolis (France),\n// Max-Planck-Institute Saarbruecken (Germany),\n// and Tel-Aviv University (Israel). All rights reserved. \n//\n// This file is part of CGAL (www.cgal.org); you can r...
80
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 37.27, "nodes": 46, "errors": 0, "source_hash": "fec0bb92bd3acd03ae3d5502eb3a3dd6dbbe51b8b63f7ec54209ab5fcf25f900", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,309
c
/* types.h: general types Copyright (C) 2000, 2001 <NAME> The author can be contacted at <<EMAIL>> 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 ...
28.84
50
(translation_unit) "/* types.h: general types\n Copyright (C) 2000, 2001 <NAME>\n\n The author can be contacted at <<EMAIL>>\n\n This program is free software; you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation; either ve...
129
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 28.84, "nodes": 93, "errors": 0, "source_hash": "050a5372932ecd0b091a43ef4e340fb4c199e5acc555fe3d15c77759e5758889", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,310
c
// // XXTEMoreRemoteSwitchCell.h // XXTExplorer // // Created by Zheng on 28/06/2017. // Copyright © 2017 Zheng. All rights reserved. // #import <UIKit/UIKit.h> static NSString * const XXTEMoreRemoteSwitchCellReuseIdentifier = @"XXTEMoreRemoteSwitchCellReuseIdentifier"; @interface XXTEMoreRemoteSwitchCell : UITa...
38.8
15
(translation_unit) "//\n// XXTEMoreRemoteSwitchCell.h\n// XXTExplorer\n//\n// Created by Zheng on 28/06/2017.\n// Copyright © 2017 Zheng. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nstatic NSString * const XXTEMoreRemoteSwitchCellReuseIdentifier = @"XXTEMoreRemoteSwitchCellReuseIdentifier";\n\n@interface...
119
18
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 38.8, "nodes": 84, "errors": 0, "source_hash": "aa21785bf2e19f2ea4c7c6a8635ad95cd88860ecce0c875c8cbea0da23fd2c7d", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UI...
8,311
c
void screen_overview(ESContext *esContext); void screen_system(ESContext *esContext);
42
2
(translation_unit) "void screen_overview(ESContext *esContext);\nvoid screen_system(ESContext *esContext);\n\n" (declaration) "void screen_overview(ESContext *esContext);" (primitive_type) "void" (function_declarator) "screen_overview(ESContext *esContext)" (identifier) "screen_overview" (paramete...
27
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 42.0, "nodes": 20, "errors": 0, "source_hash": "da420795e69f858c8ae1a938ce4a00a0651ecc748dd2207df31009458fa61076", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "void screen_...
8,312
c
#ifndef PUBLIC_CRB_DEV_H_INCLUDED #define PUBLIC_CRB_DEV_H_INCLUDED #include "CRB.h" typedef enum { CRB_FALSE = 0, CRB_TRUE = 1 } CRB_Boolean; typedef struct CRB_Object_tag CRB_Object; typedef struct CRB_Array_tag CRB_Array; typedef struct CRB_String_tag CRB_String; typedef struct CRB_LocalEnvironment_tag CRB...
29.43
56
(translation_unit) "#ifndef PUBLIC_CRB_DEV_H_INCLUDED\n#define PUBLIC_CRB_DEV_H_INCLUDED\n#include "CRB.h"\n\ntypedef enum\n{\n CRB_FALSE = 0,\n CRB_TRUE = 1\n} CRB_Boolean;\n\ntypedef struct CRB_Object_tag CRB_Object;\ntypedef struct CRB_Array_tag CRB_Array;\ntypedef struct CRB_String_tag CRB_String;\ntypedef st...
318
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 29.43, "nodes": 242, "errors": 0, "source_hash": "91cec3c774d530685d417ed1641d14b5ed8a743e9da30a245026d388ee9fb2ce", "categorized_nodes": 165}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,313
c
#include <xc.h> // include processor files #include "interupt.h" #include "bme280.h" #include "tsl2561.h" typedef struct { char data[RX_BUFFER_SIZE]; uint8_t len ; } buffer; typedef struct { char data[1]; uint8_t len ; } Airbuffer; union unpackFloat { float f; uint8_t b[3]; }; union unpackU16...
23.48
29
(translation_unit) "#include <xc.h> // include processor files \n#include "interupt.h"\n#include "bme280.h"\n#include "tsl2561.h"\n\n\ntypedef struct { \n char data[RX_BUFFER_SIZE];\n uint8_t len ;\n} buffer;\n\ntypedef struct { \n char data[1];\n uint8_t len ;\n} Airbuffer;\n\nunion unpackFloat {\n float f...
222
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 23.48, "nodes": 146, "errors": 0, "source_hash": "d118e8886675720c1633b939f5be316011b4cbf086f892d505bc5bb38bb84224", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
8,314
c
#pragma once #include "HotPatcherLog.h" #include "CreatePatch/HotPatcherSettingBase.h" #include "FlibPatchParserHelper.h" #include "HotPatcherLog.h" #include "ETargetPlatform.h" // engine header #include "Misc/FileHelper.h" #include "CoreMinimal.h" #include "UObject/ObjectMacros.h" #include "UObject/Ob...
26.4
63
(translation_unit) "#pragma once \n \n#include "HotPatcherLog.h" \n#include "CreatePatch/HotPatcherSettingBase.h" \n#include "FlibPatchParserHelper.h" \n#include "HotPatcherLog.h" \n#include "ETargetPlatform.h" \n \n// engine header \n#include "Misc/FileHelper.h" \n#include "CoreMinimal.h" \n \n#include "UObject/Objec...
317
6
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 26.4, "nodes": 171, "errors": 0, "source_hash": "43f7f4e4de635299df759c17506ef6dd4851c7e7b336cbcd154a853f5e6aa67e", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
8,315
c
//afnp2014.c int main() { int x = 1; int y = 0; while (y < 1000) { x = x + y; y = y + 1; } assert(x >= y); return 0; }
13.45
11
(translation_unit) "//afnp2014.c\nint main() {\n int x = 1;\n int y = 0;\n while (y < 1000) {\n x = x + y;\n y = y + 1;\n }\n assert(x >= y);\n return 0;\n}\n" (comment) "//afnp2014.c" (function_definition) "int main() {\n int x = 1;\n int y = 0;\n while (y < 1000) {\n ...
71
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 13.45, "nodes": 46, "errors": 0, "source_hash": "f8e275c31586ec7ea9cd287772c7c09c143ae8e4778d12966de61916e807c052", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "in...
8,316
c
// // LYPayAdapter.h // LeYingPay // // Created by heqinqin on 2017/8/8. // Copyright © 2017年 hhly. All rights reserved. // #import <Foundation/Foundation.h> #import "LYPayUseAdapterProtocol.h" @interface LYPayAdapter : NSObject #pragma mark --- 微信相关 //微信注册 + (BOOL)LYPayForRegisterWeChat:(NSString *)appid; //是否...
31.95
40
(translation_unit) "//\n// LYPayAdapter.h\n// LeYingPay\n//\n// Created by heqinqin on 2017/8/8.\n// Copyright © 2017年 hhly. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "LYPayUseAdapterProtocol.h"\n\n@interface LYPayAdapter : NSObject\n\n#pragma mark --- 微信相关\n//微信注册\n+ (BOOL)LYPayForRegi...
318
34
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 31.95, "nodes": 210, "errors": 0, "source_hash": "07d2efbdd9e04a0f5bf7d672c971c4a48dc898601a74e80de4dc0c726b9e5429", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <F...
8,317
c
/** ****************************************************************************** * File Name : ECGP_netwotk.h * Description : network layer ****************************************************************************** * Copyright(c) 2019 <NAME> (<EMAIL>) * All rights reserved. */ #ifnde...
27.27
26
(translation_unit) "/**\n ******************************************************************************\n * File Name : ECGP_netwotk.h\n * Description : network layer\n ******************************************************************************\n\n * Copyright(c) 2019 <NAME> (<EMAIL>)\n * All ...
45
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 27.27, "nodes": 32, "errors": 0, "source_hash": "4c8966c712b64917ef10dec9be8f663901facd57ee20f40c1a32369afad6a2e7", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,318
c
/* Generated by RuntimeBrowser. */ @protocol PARClientXPC @required - (void)bagDidLoad:(PARBag *)arg1 error:(NSError *)arg2; @end
20.83
6
(translation_unit) "/* Generated by RuntimeBrowser.\n */\n\n@protocol PARClientXPC\n\n@required\n\n- (void)bagDidLoad:(PARBag *)arg1 error:(NSError *)arg2;\n\n@end\n" (comment) "/* Generated by RuntimeBrowser.\n */" (ERROR) "@protocol PARClientXPC\n\n@required\n\n- (void)bagDidLoad:(PARBag *)arg1 error:(NSError *)a...
36
6
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 20.83, "nodes": 23, "errors": 0, "source_hash": "a494207e83ee705f500ff6cec30e42996f945b15a15a297e635f55cdb7bdc7c7", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@protocol PARClie...
8,319
c
/** * Original made by Pisan * Edited by <NAME> * Pre-conditions on Graph: * A graph is made up of vertices and edges. * Vertex labels are unique. * A vertex can be connected to other vertices via weighted, directed edge. * A vertex cannot connect to itself or have multiple edges to the same vertex */ #ifndef ASS3_GRA...
31.51
140
(translation_unit) "/**\n* Original made by Pisan\n* Edited by <NAME>\n* Pre-conditions on Graph:\n* A graph is made up of vertices and edges.\n* Vertex labels are unique.\n* A vertex can be connected to other vertices via weighted, directed edge.\n* A vertex cannot connect to itself or have multiple edges to the same ...
536
36
{"language": "c", "success": true, "metadata": {"lines": 140, "avg_line_length": 31.51, "nodes": 286, "errors": 0, "source_hash": "9b276d6228d05348d39ee8d5df3ec134ba27eb5431123ed24808898e5a21994e", "categorized_nodes": 192}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
8,320
c
/* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The OpenAirInterface Software Alliance licenses this file to You under the OAI Publi...
25.61
180
(translation_unit) "/*\n Licensed to the OpenAirInterface (OAI) Software Alliance under one or more\n contributor license agreements. See the NOTICE file distributed with\n this work for additional information regarding copyright ownership.\n The OpenAirInterface Software Alliance licenses this file to You...
1,014
0
{"language": "c", "success": true, "metadata": {"lines": 180, "avg_line_length": 25.61, "nodes": 640, "errors": 0, "source_hash": "3eb11e1f0296f125663f31413a9827c2db3b6ee4c0e5ff0f0545e482e5e029bc", "categorized_nodes": 446}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,321
c
/* * Copyright (c) 2013 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
36.58
38
(translation_unit) "/*\n * Copyright (c) 2013 <NAME>\n * \n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by ...
261
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 36.58, "nodes": 161, "errors": 0, "source_hash": "3f334656d13ab69e88a89fa6a4173d6d44854c51de554195de8d6ab915772716", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
8,322
c
/* SPDX-License-Identifier: GPL-2.0+ */ /* * Device Tree binding constants for Actions Semi S500 Reset Management Unit * * Copyright (c) 2014 Actions Semi Inc. * Copyright (c) 2020 <NAME> <<EMAIL>> */ #ifndef __DT_BINDINGS_ACTIONS_S500_RESET_H #define __DT_BINDINGS_ACTIONS_S500_RESET_H #define RESET_DMAC 0 #d...
26.14
64
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0+ */\n/*\n * Device Tree binding constants for Actions Semi S500 Reset Management Unit\n *\n * Copyright (c) 2014 Actions Semi Inc.\n * Copyright (c) 2020 <NAME> <<EMAIL>>\n */\n\n#ifndef __DT_BINDINGS_ACTIONS_S500_RESET_H\n#define __DT_BINDINGS_ACTIONS_S500_RESET_...
227
0
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 26.14, "nodes": 223, "errors": 0, "source_hash": "ca5ed9322d042b0305726ee9bace21659aed8fba808bcff3536955451dd3f2d9", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
8,323
c
#include "py/obj.h" #include "fsl_qtmr.h" #define MICROPY_HW_PWM0_NAME 'pwm0' #define MICROPY_HW_PWM_0 pin_EMC_19 #define MICROPY_HW_PWM1_NAME 'pwm1' #define MICROPY_HW_PWM_1 pin_EMC_20 #define MICROPY_HW_PWM_2 NULL #define MICROPY_HW_PWM3_NAME 'pwm3' #define MICROPY_HW_PWM_3 pin_B1_09 typedef enum { PYB_PWM_0 = 0, /...
25.19
26
(translation_unit) "#include "py/obj.h"\n#include "fsl_qtmr.h"\n#define MICROPY_HW_PWM0_NAME 'pwm0'\n#define MICROPY_HW_PWM_0 pin_EMC_19\n#define MICROPY_HW_PWM1_NAME 'pwm1'\n#define MICROPY_HW_PWM_1 pin_EMC_20\n\n#define MICROPY_HW_PWM_2 NULL\n#define MICROPY_HW_PWM3_NAME 'pwm3'\n#define MICROPY_HW_PWM_3 pin_B1_09\nty...
131
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 25.19, "nodes": 97, "errors": 0, "source_hash": "91240a852f95e149f14fdb7325e6fb60312cafe0c9d62985a94ed499ed49928b", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
8,324
c
// ============================================================================ // compiler/context.h: Place to store global singletons. // ============================================================================ #ifndef SPARK_COMPILER_CONTEXT_H #define SPARK_COMPILER_CONTEXT_H 1 #ifndef SPARK_CONFIG_H #include...
34.94
62
(translation_unit) "// ============================================================================\n// compiler/context.h: Place to store global singletons.\n// ============================================================================\n\n#ifndef SPARK_COMPILER_CONTEXT_H\n#define SPARK_COMPILER_CONTEXT_H 1\n\n#ifnde...
348
13
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 34.94, "nodes": 208, "errors": 0, "source_hash": "4bfe61e04239c2470cefcb62f863c3179a528cc7a97f3e41834bbb3a2d27bb70", "categorized_nodes": 152}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,325
c
//////////////////////////////////////////////////////////////////////////// //// LCD420_S3.C //// //// Driver for common 4x20 LCD modules //// //// //// //// lcd_init() Must be called before any other function. //// //// //// //// lcd_putc(c) Will display c on the next position of the LCD. //// //// The following have...
32.51
208
(translation_unit) "////////////////////////////////////////////////////////////////////////////\n//// LCD420_S3.C ////\n//// Driver for common 4x20 LCD modules ////\n//// ////\n//// lcd_init() Must be called before any other function. ////\n//// ////\n//// lcd_putc(c) Will display c on the next position of the LCD. //...
1,102
0
{"language": "c", "success": true, "metadata": {"lines": 208, "avg_line_length": 32.51, "nodes": 657, "errors": 0, "source_hash": "46e8b2fc45764047bb1b9eda7e1dde628e2fdf66651dc076ad104a8f16302a4b", "categorized_nodes": 425}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if defi...
8,326
c
#ifndef __STODIN_TYPES_H_INCLUDED #define __STODIN_TYPES_H_INCLUDED #include <cstdint> typedef uint8_t __stodin_bool; #endif // __STODIN_TYPES_H_INCLUDED
29.8
5
(translation_unit) "#ifndef __STODIN_TYPES_H_INCLUDED\n#define __STODIN_TYPES_H_INCLUDED\n\n#include <cstdint>\n\ntypedef uint8_t __stodin_bool;\n\n#endif // __STODIN_TYPES_H_INCLUDED\n" (preproc_ifdef) "#ifndef __STODIN_TYPES_H_INCLUDED\n#define __STODIN_TYPES_H_INCLUDED\n\n#include <cstdint>\n\ntypedef uint8_t __st...
17
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 29.8, "nodes": 14, "errors": 0, "source_hash": "70bdc877b1772fd22dd4b2f54ccb7832d728b79badf5788419b2618c82e16154", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __...
8,327
c
#ifndef __ARM_COMPAT__H #define __ARM_COMPAT__H #ifndef __STATIC_FORCEINLINE #define __STATIC_FORCEINLINE __attribute__((always_inline)) static inline #endif // Reverse the bit order in a 32-bit word. __STATIC_FORCEINLINE uint32_t __RBIT( uint32_t i ) { i = ( ( i & 0x55555555 ) << 1 ) | ( ( i...
33.09
93
(translation_unit) "#ifndef __ARM_COMPAT__H\n#define __ARM_COMPAT__H\n\n#ifndef __STATIC_FORCEINLINE\n #define __STATIC_FORCEINLINE __attribute__((always_inline)) static inline\n#endif\n// Reverse the bit order in a 32-bit word.\n__STATIC_FORCEINLINE uint32_t __RBIT(\n uint32_t i )\n{\n i = ( ( i...
870
8
{"language": "c", "success": true, "metadata": {"lines": 93, "avg_line_length": 33.09, "nodes": 581, "errors": 0, "source_hash": "eb586da11ec427f9975f53e5efd4f6233ab2e219ac5d62c352f0a4a248780fbf", "categorized_nodes": 400}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,328
c
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- * vim: set ts=4 sw=4 et tw=99: * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #i...
27.58
48
(translation_unit) "/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-\n * vim: set ts=4 sw=4 et tw=99:\n *\n * This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://moz...
232
12
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 27.58, "nodes": 142, "errors": 0, "source_hash": "1e6cca482b3153774b700d9c6ed7248a9e93187279b813c6808e249814e357de", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef jsion_...
8,329
c
/* hw7_33 */ #include <stdio.h> #include <stdlib.h> int main(void) { int n,i,j,sum=0; do { printf("輸入一個整數:"); scanf("%d",&n); } while(n<=0); i=n-1; while(i!=0) { for(j=1,sum=0;j<=i;j++) if(i%j==0) sum+=j; if(sum==i+1) { printf("小於%d的最大質數是%d。\n",n,i); break; } else i--; } ...
9.5
40
(translation_unit) "/* hw7_33 */\n#include <stdio.h>\n#include <stdlib.h>\n\nint main(void)\n{\n int n,i,j,sum=0;\n \n do\n {\n printf("輸入一個整數:");\n scanf("%d",&n);\n }\n while(n<=0);\n \n i=n-1;\n \n while(i!=0)\n {\n for(j=1,sum=0;j<=i;j++)\n if(i%j==0)\n sum+=j;\n \n if(sum==i+1)\n {\n printf("小於%d的最大質數是%...
192
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 9.5, "nodes": 103, "errors": 0, "source_hash": "06e53a27e23516554d134560f1baccec359ced28098dc4de05082f5a7592b50f", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
8,330
c
/* © 2004-2006 <NAME> <<EMAIL>> * See LICENSE file for license details. */ #ifdef VARARGCK # pragma varargck argpos write_event 1 # # pragma varargck type "C" Client* # pragma varargck type "W" Window* # pragma varargck type "P" Point # pragma varargck type "R" Rectangle # pragma varargck type "r" void #endif /* ...
33.41
228
(translation_unit) "/* © 2004-2006 <NAME> <<EMAIL>>\n * See LICENSE file for license details.\n */\n\n#ifdef VARARGCK\n# pragma varargck argpos write_event 1\n#\n# pragma varargck type "C" Client* \n# pragma varargck type "W" Window* \n# pragma varargck type "P" Point\n# pragma varargck type "R" Rectangle\n# pragma var...
3,348
2
{"language": "c", "success": true, "metadata": {"lines": 228, "avg_line_length": 33.41, "nodes": 2166, "errors": 0, "source_hash": "53582454b1e4a72bb29b091e7d4be2ec1f868200a13d319aeeeb72e1c7d11398", "categorized_nodes": 1470}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifd...
8,331
c
#ifndef __HELPER_NETWORK_HNETWORK_H__ #define __HELPER_NETWORK_HNETWORK_H__ #include "Cocos2dxhMacros.h" NS_CC_H_BEGIN enum { kCCNetworkStatusNotReachable, kCCNetworkStatusReachableViaWiFi, kCCNetworkStatusReachableViaWWAN }; class HNetwork { public: #pragma mark - #pragma mark reachability /*...
27.65
31
(translation_unit) "#ifndef __HELPER_NETWORK_HNETWORK_H__\n#define __HELPER_NETWORK_HNETWORK_H__\n\n#include "Cocos2dxhMacros.h"\n\nNS_CC_H_BEGIN\n\nenum {\n kCCNetworkStatusNotReachable,\n kCCNetworkStatusReachableViaWiFi,\n kCCNetworkStatusReachableViaWWAN\n};\n\nclass HNetwork {\npublic:\n#pragma mark -\n#p...
120
3
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 27.65, "nodes": 65, "errors": 0, "source_hash": "a0e983b12faf843334ccff2c0e092e6042dc4358bb10dff182a05bf97796b917", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,332
c
// // shapes.h // RTS-Engine // // Created by <NAME> on 8/29/21. // #ifndef shapes_h #define shapes_h #include "vector.h" #include <math.h> /* Draw a 2D rectangle */ void DrawRectangle(Vector2 originPoint, Vector2 scale, GLfloat color[]) { float xPos = originPoint.x; float yPos = originPoint.y; float ...
26.87
143
(translation_unit) "//\n// shapes.h\n// RTS-Engine\n//\n// Created by <NAME> on 8/29/21.\n//\n\n#ifndef shapes_h\n#define shapes_h\n\n#include "vector.h"\n#include <math.h>\n\n/* Draw a 2D rectangle */\nvoid DrawRectangle(Vector2 originPoint, Vector2 scale, GLfloat color[])\n{\n float xPos = originPoint.x;\n f...
1,073
11
{"language": "c", "success": true, "metadata": {"lines": 143, "avg_line_length": 26.87, "nodes": 670, "errors": 0, "source_hash": "94ccb1004bc29a066489c6f013a341af82bc3e779ed77413e0706f3b98d832ab", "categorized_nodes": 488}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
8,333
c
// /cmds/adm/_unvis.c // Pator@ShadowGate, Feb 24th 1997 // This command will make all wizards visable in the present environment #include <std.h> int cmd_mkvis(int i) { object *whom; int size, count; // Only admins may use this command if (!archp(TP)) return 0; if (!i) i= -1; whom = all_inventory(enviro...
26.67
24
(translation_unit) "// /cmds/adm/_unvis.c\n// Pator@ShadowGate, Feb 24th 1997\n// This command will make all wizards visable in the present environment\n\n#include <std.h>\n\nint cmd_mkvis(int i) {\n object *whom;\n int size, count;\n\n // Only admins may use this command\n if (!archp(TP)) return 0;\n\n if (!i) i= ...
204
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 26.67, "nodes": 113, "errors": 0, "source_hash": "40aeb4e0ccc413c4d37adce24d68ce3afb78cb5a553eda4248c068cc7dd4c379", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
8,334
c
#strict 2 func Initialize() { }
7
4
(translation_unit) "#strict 2\n\nfunc Initialize()\n{\n}\n" (preproc_call) "#strict 2\n" (preproc_directive) "#strict" (preproc_arg) "2" (function_definition) "func Initialize()\n{\n}" (type_identifier) "func" (function_declarator) "Initialize()" (identifier) "Initialize" (parameter_list...
14
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 7.0, "nodes": 8, "errors": 0, "source_hash": "e2ec34d15a36d0aeb69bcb60ace72d96e581176109ae7b85fe6f1bab205efd3f", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#strict 2\n", ...
8,335
c
#import <Foundation/Foundation.h> #import "CMObject.h" /** * convertapi * Convert API lets you effortlessly convert file formats and types. * * OpenAPI spec version: v1 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit th...
23.75
28
(translation_unit) "#import <Foundation/Foundation.h>\n#import "CMObject.h"\n\n/**\n* convertapi\n* Convert API lets you effortlessly convert file formats and types.\n*\n* OpenAPI spec version: v1\n* \n*\n* NOTE: This class is auto generated by the swagger code generator program.\n* https://github.com/swagger-api/swagg...
71
15
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 23.75, "nodes": 55, "errors": 0, "source_hash": "41802a59d149ff970a43c9b0c2a5d4ea6d55b4b01d53606f44f25f74851b93a8", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
8,336
c
/*------------------------------------------------------------------------------ * * Copyright (c) 2011, EURid. All rights reserved. * The YADIFA TM software product is provided under the BSD 3-clause license: * * Redistribution and use in source and binary forms, with or without * modification, are permitted provide...
31.21
169
(translation_unit) "/*------------------------------------------------------------------------------\n*\n* Copyright (c) 2011, EURid. All rights reserved.\n* The YADIFA TM software product is provided under the BSD 3-clause license:\n* \n* Redistribution and use in source and binary forms, with or without \n* modificat...
889
1
{"language": "c", "success": true, "metadata": {"lines": 169, "avg_line_length": 31.21, "nodes": 490, "errors": 0, "source_hash": "a5b75b57dc4da475a419772d8eb7d760ec60e752e0ba476913f50243804ef4c3", "categorized_nodes": 350}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,337
c
// $Id: TT_Info.h 82903 2008-10-01 19:22:10Z johnnyw $ #ifndef TAO_TRADER_TEST_UTILS_H #define TAO_TRADER_TEST_UTILS_H #include "TTestS.h" #include "ace/Arg_Shifter.h" #include "ace/Read_Buffer.h" #include "orbsvcs/CosTradingC.h" #include "orbsvcs/CosTradingReposC.h" #include "orbsvcs/CosTradingDynamicC.h" #include "...
25.53
158
(translation_unit) "// $Id: TT_Info.h 82903 2008-10-01 19:22:10Z johnnyw $\n\n#ifndef TAO_TRADER_TEST_UTILS_H\n#define TAO_TRADER_TEST_UTILS_H\n\n#include "TTestS.h"\n#include "ace/Arg_Shifter.h"\n#include "ace/Read_Buffer.h"\n#include "orbsvcs/CosTradingC.h"\n#include "orbsvcs/CosTradingReposC.h"\n#include "orbsvcs/Co...
754
25
{"language": "c", "success": true, "metadata": {"lines": 158, "avg_line_length": 25.53, "nodes": 387, "errors": 0, "source_hash": "633876ceff1f9d11aa0cb325e304772856ca750252041a1ecc9d8c856492161e", "categorized_nodes": 247}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
8,338
c
#ifndef __DSSD_H__ #define __DSSD_H__ #include <map> #include <TTree.h> class DSSD { public: DSSD(TTree *iipt, TTree *oopt, Int_t fs, Int_t bs); ~DSSD(); int Analysis(); private: TTree *ipt, *opt; Int_t fStrip, bStrip; struct dssdInfo { Double_t Energy; Int_t Strip; Int_t Hit;...
17.67
55
(translation_unit) "#ifndef __DSSD_H__ \n#define __DSSD_H__ \n \n#include <map> \n \n#include <TTree.h> \n \n \nclass DSSD { \npublic: \n DSSD(TTree *iipt, TTree *oopt, Int_t fs, Int_t bs); \n ~DSSD(); \n \n int Analysis(); \n \nprivate: \n TTree *ipt, *opt; \n Int_t fStrip, bStrip; \n \n \n struct dssdInfo { \n Doubl...
332
7
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 17.67, "nodes": 217, "errors": 0, "source_hash": "22fb658ca5c941e6800ccb6e27bb1ce9cc7545de6207ec69654e17c40c4014b7", "categorized_nodes": 160}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,339
c
#include <stdio.h> #include <stdlib.h> typedef struct _Node { struct _Node* Pre; // 전 노드를 가리키는 포인터 int data; struct _Node* Next; // 다음 노드를 가리키는 포인터 }Node; int main(void) { Node* Head = NULL; Node* Tail = NULL; Node* newNode; int readData; while (1) { printf("데이터 입력 : "); ...
17.22
58
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n \ntypedef struct _Node {\n struct _Node* Pre; // 전 노드를 가리키는 포인터\n int data;\n struct _Node* Next; // 다음 노드를 가리키는 포인터\n}Node;\n \nint main(void) {\n Node* Head = NULL;\n Node* Tail = NULL;\n Node* newNode;\n int readData;\n \n while (1...
354
0
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 17.22, "nodes": 212, "errors": 0, "source_hash": "d047c72b5324c2d7c86cca2c6ea6aee0c88241ec5f95d7129b484a644eeb1b7e", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
8,340
c
#ifndef TYPES_DEF_H_ #define TYPES_DEF_H_ #define IN #define OUT #define INOUT #ifndef PACKED #define PACKED __packed//__attribute__ ((packed)) #endif //PACKED #ifndef NULL #define NULL 0 #endif #ifndef INLINE #ifdef __GNUC__ /** inline directive */ #define INLINE inline #else /** inline dir...
24
58
(translation_unit) "#ifndef TYPES_DEF_H_\n#define TYPES_DEF_H_\n\n\n#define IN\n#define OUT\n#define INOUT\n\n#ifndef PACKED \n#define PACKED __packed//__attribute__ ((packed))\n#endif //PACKED\n\n#ifndef NULL\n#define NULL 0\n#endif\n\n#ifndef INLINE\n#ifdef __GNUC__\n/** inline directive */\n#define ...
247
0
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 24.0, "nodes": 206, "errors": 0, "source_hash": "567f5e17b4751c6403612d659dbc18d70627224a8d856884d3049962da4631ac", "categorized_nodes": 112}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
8,341
c
#include "common/types.h" #include "lib/string.h" #include "lib/printf.h" #include "common/list.h" #include "init/initcall.h" #include "bug/debug.h" #include "device/device.h" #include "mm/mm.h" #include "log/log.h" static node_t root = { .name = "/", .parent = NULL, .children = LIST_HEAD(root.children) };...
30.4
98
(translation_unit) "#include "common/types.h"\n#include "lib/string.h"\n#include "lib/printf.h"\n#include "common/list.h"\n#include "init/initcall.h"\n#include "bug/debug.h"\n#include "device/device.h"\n#include "mm/mm.h"\n#include "log/log.h"\n\nstatic node_t root = {\n .name = "/",\n .parent = NULL,\n .child...
1,141
0
{"language": "c", "success": true, "metadata": {"lines": 98, "avg_line_length": 30.4, "nodes": 673, "errors": 0, "source_hash": "1d1f524d41ffebdc7d5eb5ad378455d9548884d6a81de1b8f2e923a61e736615", "categorized_nodes": 509}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
8,342
c
/* * assert_test.c test assertions * * Copyright (C) 2000-2002, 2004, 2005, <NAME> <<EMAIL>>. All Rights Reserved. * See file COPYING for details. * * $Id: assert_test.c,v 1.2 2003/06/09 13:42:12 jshiffer Exp $ * */ /* * Description: */ #undef NDEBUG #define ZT_WITH_UNIT #include <zt.h> #define DUMM...
22.18
62
(translation_unit) "/*\n * assert_test.c test assertions\n *\n * Copyright (C) 2000-2002, 2004, 2005, <NAME> <<EMAIL>>. All Rights Reserved.\n * See file COPYING for details.\n *\n * $Id: assert_test.c,v 1.2 2003/06/09 13:42:12 jshiffer Exp $\n *\n */\n\n/*\n * Description:\n */\n#undef NDEBUG\n#define ZT_WITH_...
382
2
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 22.18, "nodes": 246, "errors": 0, "source_hash": "c69b6642c318f062170c8623fd66c1f6b1be17e0ef451309de2b8f0205ba3487", "categorized_nodes": 162}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#undef ...
8,343
c
// 11.9.4 -- rewrite Time class with friend functions #ifndef MYTIME4_H_ #define MYTIME4_H_ #include <iostream> class Time { private: int hours; int minutes; public: Time(); Time(int h, int m = 0); void AddMin(int m); void AddHr(int h); void Reset(int h =...
27.08
25
(translation_unit) "// 11.9.4 -- rewrite Time class with friend functions\n#ifndef MYTIME4_H_\n#define MYTIME4_H_\n#include <iostream>\n\nclass Time\n{\n private:\n int hours;\n int minutes;\n public:\n Time();\n Time(int h, int m = 0);\n void AddMin(int m);\n void AddHr(...
252
15
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 27.08, "nodes": 158, "errors": 0, "source_hash": "697452313b83e2be7e86439fc0c4d3d5e308960f357cd0bb4eaae99812f8aca2", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,344
c
#include <stdio.h> int pointSum(int pica1, int pica2, int point1, int point2) { return point1 + point2 + ((pica1+pica2)*12); } void printer(int pica1, int pica2, int point1, int point2) { int pointS = pointSum(pica1, pica2, point1, point2); int picaS = pointS/12; printf("Adding %ip%i and %ip%i together is %ip...
27.42
19
(translation_unit) "#include <stdio.h>\n\nint pointSum(int pica1, int pica2, int point1, int point2)\n{\n return point1 + point2 + ((pica1+pica2)*12);\n}\n\nvoid printer(int pica1, int pica2, int point1, int point2)\n{\n int pointS = pointSum(pica1, pica2, point1, point2);\n int picaS = pointS/12;\n printf("Adding ...
230
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 27.42, "nodes": 140, "errors": 0, "source_hash": "6de4b59cc1d0186a7ac49a59ca3fcc737dca984c519846707244282775427ae1", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
8,345
c
int Main(void) { // Insert code here. return 0; }
13.75
4
(translation_unit) "int Main(void) {\n\n // Insert code here.\n return 0;\n\n}\n" (function_definition) "int Main(void) {\n\n // Insert code here.\n return 0;\n\n}" (primitive_type) "int" (function_declarator) "Main(void)" (identifier) "Main" (parameter_list) "(void)" (() "("...
18
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 13.75, "nodes": 9, "errors": 0, "source_hash": "fc8abcc89849b1dd8d7d634c55e5480f4a8f89e8d4c7f363f889eb498e63fffd", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "int M...
8,346
c
#ifdef HAVE_CONFIG_H #include "../../../ext_config.h" #endif #include <php.h> #include "../../../php_ext.h" #include "../../../ext.h" #include <Zend/zend_operators.h> #include <Zend/zend_exceptions.h> #include <Zend/zend_interfaces.h> #include "kernel/main.h" #include "kernel/fcall.h" #include "kernel/memory.h" #in...
25.91
102
(translation_unit) "#ifdef HAVE_CONFIG_H\n#include "../../../ext_config.h"\n#endif\n\n#include <php.h>\n#include "../../../php_ext.h"\n#include "../../../ext.h"\n\n#include <Zend/zend_operators.h>\n#include <Zend/zend_exceptions.h>\n#include <Zend/zend_interfaces.h>\n\n#include "kernel/main.h"\n#include "kernel/fcall.h...
750
13
{"language": "c", "success": true, "metadata": {"lines": 102, "avg_line_length": 25.91, "nodes": 420, "errors": 0, "source_hash": "1674d9ca21fafe70cf69b87f744408beded026ddd7ae141e1994b9c5e3784c8e", "categorized_nodes": 300}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifde...
8,347
c
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/socket.h> #include <sys/types.h> #include <netdb.h> #include <string.h> static int open_connection(const char *host, char *service); int main(int argc, char const* argv[]) { const char *host; int sock; FILE *f; char buf[1024]; host = argc ...
21.72
57
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <unistd.h>\n#include <sys/socket.h>\n#include <sys/types.h>\n#include <netdb.h>\n#include <string.h>\n\nstatic int open_connection(const char *host, char *service);\n\nint main(int argc, char const* argv[])\n{\n const char *host;\n int sock;\n FILE *...
519
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 21.72, "nodes": 299, "errors": 0, "source_hash": "a7986fedd329e5b8d30230709eda68a74ed23c9189a8751d2a3de89ac1d50444", "categorized_nodes": 220}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
8,348
c
// // BearAlertView.h // GOSHOPPING // // Created by Bear on 16/6/26. // Copyright © 2016年 cjl. All rights reserved. // #import <UIKit/UIKit.h> #import "BearAlertBtnsView.h" #import "BearAlertContentView.h" // 动效方式 typedef enum { kAlertViewAnimation_VerticalSpring, //直线弹簧动效 kAlertViewAnimation_Center...
26.97
144
(translation_unit) "//\n// BearAlertView.h\n// GOSHOPPING\n//\n// Created by Bear on 16/6/26.\n// Copyright © 2016年 cjl. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "BearAlertBtnsView.h"\n#import "BearAlertContentView.h"\n\n// 动效方式\ntypedef enum {\n kAlertViewAnimation_VerticalSpring, //直线弹...
306
39
{"language": "c", "success": true, "metadata": {"lines": 144, "avg_line_length": 26.97, "nodes": 192, "errors": 0, "source_hash": "72ae85dcceed724fafbc356c3f5cc5a5c038a922a69fca251c4734b7cfefcf29", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <U...
8,349
c
//========================================================================= // Copyright (C) 2012 The Elastos 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 // // ...
32.26
58
(translation_unit) "//=========================================================================\n// Copyright (C) 2012 The Elastos 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...
176
3
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 32.26, "nodes": 91, "errors": 0, "source_hash": "800acb16be14d8d767b2b13f2f97cf7f2c9078bc771e77839d45288438e13467", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,350
c
/* tags.ale header file */ #ifndef TAGS_H #define TAGS_H /* 'a'enter tag+bu[]+tag> returns a pointer in TTAG */ void enterTag(int *a); /* 'a'find raw usage+>rawtag+usage> returns whether defined, used, not seen. */ void findRawUsage(int *a); /* 'a'get tag adm+>rawtag+tag> */ void getTagEntry(int *a); /* 'p'was ...
32.11
83
(translation_unit) "/* tags.ale header file */\n\n#ifndef TAGS_H\n#define TAGS_H\n\n /* 'a'enter tag+bu[]+tag> returns a pointer in TTAG */\nvoid enterTag(int *a); \n /* 'a'find raw usage+>rawtag+usage> returns whether defined, used, not seen. */\nvoid findRawUsage(int *a);\n\n /* 'a'get tag adm+>rawtag+tag> */\nvoid g...
728
0
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 32.11, "nodes": 557, "errors": 0, "source_hash": "dcb53ca5ccb2647dfa3db152707d8bea8145238fc3316ba3d55cf2ab30ab07af", "categorized_nodes": 255}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,351
c
/* SPDX-License-Identifier: BSD-3-Clause */ /* * Copyright (c) Microsoft Corporation. All rights reserved. * * Routines for building and manipulating Cyres certificate chains. */ #ifndef __CYRES_CERT_CHAIN_H__ #define __CYRES_CERT_CHAIN_H__ #include <RiotTarget.h> #include <RiotStatus.h> #include <RiotEcc.h> #de...
35.95
86
(translation_unit) "/* SPDX-License-Identifier: BSD-3-Clause */\n/*\n * Copyright (c) Microsoft Corporation. All rights reserved.\n *\n * Routines for building and manipulating Cyres certificate chains.\n */\n\n#ifndef __CYRES_CERT_CHAIN_H__\n#define __CYRES_CERT_CHAIN_H__\n\n#include <RiotTarget.h>\n#include <RiotStat...
628
0
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 35.95, "nodes": 476, "errors": 0, "source_hash": "460682331986c6c43a140a174b6d720ab150dd04a200ec3bf3e4bb62c97d08f2", "categorized_nodes": 284}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,352
c
#define _get_output_format __dummy__get_output_format #define _set_output_format __dummy__set_output_format #include <windows.h> #include <msvcrt.h> #undef _get_output_format #undef _set_output_format static unsigned int last_value = 0; typedef unsigned int (*f_get_output_format)(void); typedef unsigned int (*f_set_o...
34.85
48
(translation_unit) "#define _get_output_format __dummy__get_output_format\n#define _set_output_format __dummy__set_output_format\n#include <windows.h>\n#include <msvcrt.h>\n\n#undef _get_output_format\n#undef _set_output_format\n\nstatic unsigned int last_value = 0;\ntypedef unsigned int (*f_get_output_format)(void);\n...
430
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 34.85, "nodes": 282, "errors": 0, "source_hash": "b5c418a71a33f8da4e680815bbd1ec6b82a732010bc3edce93268ca116352b0c", "categorized_nodes": 174}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ...
8,353
c
// Copyright (c) 2016 <NAME>. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SKYWALKER_NETWORK_MESSAGER_H_ #define SKYWALKER_NETWORK_MESSAGER_H_ #include <stdint.h> #include "network/network.h" #include "proto/paxos.pb.h" namespac...
30.76
25
(translation_unit) "// Copyright (c) 2016 <NAME>. 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 SKYWALKER_NETWORK_MESSAGER_H_\n#define SKYWALKER_NETWORK_MESSAGER_H_\n\n#include <stdint.h>\n\n#include "network/network.h"\n#includ...
157
5
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 30.76, "nodes": 86, "errors": 0, "source_hash": "b2fd25bb1e6241cd2a58ddd38de29d5579653bb9dc3193b75d532ce7061b8c2e", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,354
c
// Copyright 2020 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https:www.apache.org/licenses/LICENSE-2.0...
37.02
227
(translation_unit) "// Copyright 2020 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V.\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// https:www.apach...
748
39
{"language": "c", "success": true, "metadata": {"lines": 227, "avg_line_length": 37.02, "nodes": 525, "errors": 0, "source_hash": "445ac275363104d3f2f3907a9827d4f3ce7a30f2c0a528c66819bae048fca58c", "categorized_nodes": 404}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifnde...
8,355
c
/* * * Copyright (c) 1991, <NAME> * * You may distribute under the terms of either the GNU General Public * License or the Artistic License, as specified in the README file. * * Revision 1.1.1.1 1998/06/15 21:09:09 pinckney * Initial checkin of the exokernel sources from the MIT repository. This * ...
26.79
48
(translation_unit) "/*\n *\n * Copyright (c) 1991, <NAME>\n *\n * You may distribute under the terms of either the GNU General Public\n * License or the Artistic License, as specified in the README file.\n *\n * Revision 1.1.1.1 1998/06/15 21:09:09 pinckney\n * Initial checkin of the exokernel sources from t...
131
1
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 26.79, "nodes": 106, "errors": 0, "source_hash": "7a95a174261a71c6bc7b3c0897f342940fc12bf9604575914f07645b6b9dc344", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define F...
8,356
c
/* Bitmap to MiBand icon converter. Works only with 24 BPP bitmap. Any non black pixel (#000000) will be considered on. Image will be cropped to get a height multiple of 8. */ #include <stdio.h> #include <stdlib.h> #include <stdint.h> int main(int argc, char *argv[]) { // Check argument number if (argc < 2) ...
22.28
113
(translation_unit) "/*\n\nBitmap to MiBand icon converter.\n\nWorks only with 24 BPP bitmap.\nAny non black pixel (#000000) will be considered on.\nImage will be cropped to get a height multiple of 8.\n\n*/\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <stdint.h>\n \nint main(int argc, char *argv[]) {\n\n // Ch...
914
0
{"language": "c", "success": true, "metadata": {"lines": 113, "avg_line_length": 22.28, "nodes": 593, "errors": 0, "source_hash": "d14b58e53377ae4d7d78dc61b1e1e1a4ac5d112225949abede9e47cfbc6a5684", "categorized_nodes": 411}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,357
c
/* * Copyright (c) 2004-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #pra...
31.53
77
(translation_unit) "/*\n * Copyright (c) 2004-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the s...
525
20
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 31.53, "nodes": 315, "errors": 0, "source_hash": "eaec467ea893f10abb70df8534d8e59eb59d1f4b0d287d4e4334924528c5aafe", "categorized_nodes": 226}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
8,358
c
#ifndef DALI_PLUGIN_TIZEN_WEB_ENGINE_POLICY_DECISION_H #define DALI_PLUGIN_TIZEN_WEB_ENGINE_POLICY_DECISION_H /* * Copyright (c) 2021 Samsung Electronics Co., 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 obtai...
28.81
93
(translation_unit) "#ifndef DALI_PLUGIN_TIZEN_WEB_ENGINE_POLICY_DECISION_H\n#define DALI_PLUGIN_TIZEN_WEB_ENGINE_POLICY_DECISION_H\n\n/*\n * Copyright (c) 2021 Samsung Electronics Co., Ltd.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with th...
237
11
{"language": "c", "success": true, "metadata": {"lines": 93, "avg_line_length": 28.81, "nodes": 133, "errors": 0, "source_hash": "2d103db87191d3611adf2d454897d406fd6f1311761f5cdae9ad621b1e8f2b2b", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
8,359
c
#ifndef OT_H__ #define OT_H__ #include <emp-tool/emp-tool.h> #include "emp-tool/io/io_channel.h" namespace emp { class OT { public: OT(){} virtual ~OT(){} virtual void send(const block* data0, const block* data1, int length) = 0; virtual void recv(block* data, const bool* b, int length) = 0; }; } #endif// OT_H__
21.71
14
(translation_unit) "#ifndef OT_H__\n#define OT_H__\n#include <emp-tool/emp-tool.h>\n#include "emp-tool/io/io_channel.h"\nnamespace emp {\n\nclass OT {\npublic:\n OT(){}\n virtual ~OT(){}\n virtual void send(const block* data0, const block* data1, int length) = 0;\n virtual void recv(block* data, const bool* b, int leng...
118
4
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 21.71, "nodes": 76, "errors": 0, "source_hash": "dae13663a677821ea3ee318cca996406e76eb59a555afbd97e2c410d716704ac", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,360
c
/* * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
25.49
61
(translation_unit) "/*\n * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved\n *\n * Licensed under the Apache License, Version 2.0 (the License);\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LIC...
181
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 25.49, "nodes": 137, "errors": 0, "source_hash": "dc1a25cddaafa1e08bef64f727758b6d22106d2bb51cb2c0805efc4b6bff0675", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
8,361
c
// // AndyMainViewModel.h // GrandDB_Test // // Created by 李扬 on 2017/2/20. // Copyright © 2017年 andyshare. All rights reserved. // #import <Foundation/Foundation.h> @interface AndyMainViewModel : NSObject SingletonH(MainViewModel) @property(nonatomic, strong, readonly) RACCommand *getFavorListCommand; @proper...
30.93
14
(translation_unit) "//\n// AndyMainViewModel.h\n// GrandDB_Test\n//\n// Created by 李扬 on 2017/2/20.\n// Copyright © 2017年 andyshare. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface AndyMainViewModel : NSObject\n\nSingletonH(MainViewModel)\n\n@property(nonatomic, strong, readonly) RACComm...
68
13
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 30.93, "nodes": 46, "errors": 0, "source_hash": "44106e8eb060ccb21d2d7c09ecdbdf38113470c50f32c9cc070f939410c3aa17", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <Foundat...
8,362
c
#ifndef _TESTS_H #define _TESTS_H #include <munit/munit.h> MunitResult test_counters_ctd(const MunitParameter Parameters[], void *Fixture); MunitResult test_counters_ctdtype(const MunitParameter Parameters[], void *Fixture); MunitResult test_counters_ctu(const MunitParameter Parameters[], void *Fixture); MunitRe...
43.85
13
(translation_unit) "#ifndef _TESTS_H\n#define _TESTS_H\n\n\n#include <munit/munit.h>\n\n\nMunitResult test_counters_ctd(const MunitParameter Parameters[], void *Fixture);\n\nMunitResult test_counters_ctdtype(const MunitParameter Parameters[], void *Fixture);\n\nMunitResult test_counters_ctu(const MunitParameter Paramet...
144
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 43.85, "nodes": 94, "errors": 0, "source_hash": "b16c837aa459f0b3d671f9d8cf8a68a24824184106b095fd3fe27cb558831030", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,363
c
#include <stdio.h> #include <stdlib.h> #include "globals.h" #include "scan.h" #include "parse.h" #include "symtab.h" #include "analyze.h" #include "cgen.h" FILE *outputFile; FILE *sourceFile; FILE *listing; int main(int argc, char *argv[]) { TreeNode *prog; if (argc < 3) { printf("Tinybasic compiler - by <NAME...
17.34
53
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\n#include "globals.h"\n#include "scan.h"\n#include "parse.h"\n#include "symtab.h"\n#include "analyze.h"\n#include "cgen.h"\n\nFILE *outputFile;\nFILE *sourceFile;\nFILE *listing;\n\nint main(int argc, char *argv[])\n{\n TreeNode *prog;\n\n if (argc < 3)\n {\...
372
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 17.34, "nodes": 200, "errors": 0, "source_hash": "2c7b02342304ceb512dca446324f8cd0bdc06732725764f917de473ce8f863a0", "categorized_nodes": 150}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
8,364
c
// // PreferencesController.h // NightCam // // Created by marcel on 1/18/11. // Copyright 2011 ApfelCode.de (<NAME>). All rights reserved. // #import <Cocoa/Cocoa.h> @class Config; @interface PreferencesController : NSWindowController { IBOutlet Config *config; IBOutlet NSMatrix *screenModes; IBOutlet ...
26.81
21
(translation_unit) "//\n// PreferencesController.h\n// NightCam\n//\n// Created by marcel on 1/18/11.\n// Copyright 2011 ApfelCode.de (<NAME>). All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n\n@class Config;\n\n@interface PreferencesController : NSWindowController {\n IBOutlet Config *config;\n \n IBOutlet...
117
11
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 26.81, "nodes": 72, "errors": 0, "source_hash": "02e57ad701e08346b1a0ef259ee8a6b672a5350084b58e4e09fc56868def5cd0", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
8,365
c
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #pragma once namespace Common...
32.13
15
(translation_unit) "// ------------------------------------------------------------\n// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.\n// ------------------------------------------------------------\n\n#prag...
59
2
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 32.13, "nodes": 27, "errors": 0, "source_hash": "e3814eb654673901715e5f4e0539488774cf5bcb665a769932332637900e2cf5", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
8,366
c
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:44:16 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/VideosUI.framework/VideosUI * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME...
40.43
14
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Sunday, September 27, 2020 at 11:44:16 AM Mountain Standard Time\n* Operating System: Version 14.0 (Build 18A373)\n* Image Source: /System/Library/PrivateFrameworks/VideosUI.framework/VideosUI\n* classdump-dyld is licensed under GPLv3, Copyr...
84
9
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 40.43, "nodes": 51, "errors": 0, "source_hash": "60793e8875e3d63b390f581ffc99408ba6f1d95930535913d1f3a319fedc5ef5", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "protocol VUILibr...
8,367
c
/* * Copyright (c) 2020-2022 <NAME> <EMAIL> * zlib License, see LICENSE file. */ #include "bn_regular_bg_position_hbe_ptr.h" #include "bn_span.h" #include "bn_fixed.h" #include "bn_display.h" #include "bn_optional.h" #include "bn_hblank_effects_manager.h" namespace bn { regular_bg_position_hbe_ptr regular_bg_pos...
39.45
74
(translation_unit) "/*\n * Copyright (c) 2020-2022 <NAME> <EMAIL>\n * zlib License, see LICENSE file.\n */\n\n#include "bn_regular_bg_position_hbe_ptr.h"\n\n#include "bn_span.h"\n#include "bn_fixed.h"\n#include "bn_display.h"\n#include "bn_optional.h"\n#include "bn_hblank_effects_manager.h"\n\nnamespace bn\n{\n\nregula...
771
33
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 39.45, "nodes": 441, "errors": 0, "source_hash": "37d16ce2e28a53d2caeeafcdf7166f21bb6913d38cacc39b925fb9321dba5870", "categorized_nodes": 309}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
8,368
c
/* * Copyright 2015 <NAME> (<EMAIL>) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
34.33
119
(ERROR) "/*\n * Copyright 2015 <NAME> (<EMAIL>)\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by appli...
1,237
55
{"language": "c", "success": true, "metadata": {"lines": 119, "avg_line_length": 34.33, "nodes": 751, "errors": 0, "source_hash": "edc7cb53c26a2627d97fbe0f343f142add3bd5e1c48f7a590424a7f09bd887da", "categorized_nodes": 517}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "/*\n * Copyright 2015 <N...
8,369
c
#include "minishell.h" /** * readline_error - User input reading error * * Return: nothing */ void readline_error(void) { char *err = strcat(strcat(name, ": "), READLINE_ERROR); write(2, err, strlen(err)); exit(EXIT_FAILURE); }
18.58
12
(translation_unit) "#include "minishell.h"\n\n/**\n * readline_error - User input reading error\n *\n * Return: nothing\n */\nvoid readline_error(void)\n{\n char *err = strcat(strcat(name, ": "), READLINE_ERROR);\n\n write(2, err, strlen(err));\n exit(EXIT_FAILURE);\n}\n" (preproc_include) "#include "minishell.h"\n" ...
71
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 18.58, "nodes": 39, "errors": 0, "source_hash": "1ff46cbf9245588cb668d567026ec5790560e7538eb1b3a6cf5e8a4bd03358e6", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
8,370
c
#ifndef _DEFINES_H_ #define _DEFINES_H_ #define F_CPU 8000000UL #define UART_BAUD 250000UL #define RECV_BUFFER_SIZE 2048 #define SEND_BUFFER_SIZE 2048 #define PROTOCOL_VERSION 3 #define COOLBOY_GPIO_PORT B #define COOLBOY_RD_PIN 4 #define COOLBOY_WR_PIN 3 #endif
18.93
14
(translation_unit) "#ifndef _DEFINES_H_ \n#define _DEFINES_H_ \n \n#define F_CPU 8000000UL \n#define UART_BAUD 250000UL \n#define RECV_BUFFER_SIZE 2048 \n#define SEND_BUFFER_SIZE 2048 \n#define PROTOCOL_VERSION 3 \n \n#define COOLBOY_GPIO_PORT B \n#define COOLBOY_RD_PIN 4 \n#define COOLBOY_WR_PIN 3 \n \n#endif" (prep...
40
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 18.93, "nodes": 39, "errors": 0, "source_hash": "88a70260bc8ec51b6cb55271005fc75c94eefc0f6d96014da009b36b14db1f08", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,371
c
#import <UIKit/UIKit.h> #include <mbgl/sprite/sprite_image.hpp> @interface UIImage (MGLAdditions) - (std::unique_ptr<mbgl::SpriteImage>)mgl_spriteImage; @end
30.6
5
(translation_unit) "#import <UIKit/UIKit.h>\n\n#include <mbgl/sprite/sprite_image.hpp>\n\n@interface UIImage (MGLAdditions)\n\n- (std::unique_ptr<mbgl::SpriteImage>)mgl_spriteImage;\n\n@end\n" (preproc_call) "#import <UIKit/UIKit.h>\n" (preproc_directive) "#import" (preproc_arg) "<UIKit/UIKit.h>" (preproc_i...
37
5
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 30.6, "nodes": 25, "errors": 0, "source_hash": "a6d5579c64a85d64d59f2c0157e83ea44532e4cca16764ae688e82c58a51d7d2", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UI...
8,372
c
/*! * \file TbbMemoryPolicy.h * \brief <description> * \date 2011-11-3 16:05 * * Created by <NAME> on 2011/11/03. * Copyright (C) 2011 <NAME>, Inc. All Rights Reserved. * */ #ifndef LUDI_MEMORY_TBB_POLICY_H_ #define LUDI_MEMORY_TBB_POLICY_H_ #include "Memory.h" namespace ludi { nam...
20.42
57
(translation_unit) "/*! \n * \file TbbMemoryPolicy.h \n * \brief <description> \n * \date 2011-11-3 16:05 \n * \n * Created by <NAME> on 2011/11/03. \n * Copyright (C) 2011 <NAME>, Inc. All Rights Reserved. \n * \n */ \n \n#ifndef LUDI_MEMORY_TBB_POLICY_H_ \n#define LUDI_MEMORY_TBB_POLICY_H_ \n \n#include "Me...
200
4
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 20.42, "nodes": 107, "errors": 0, "source_hash": "b0b3a9367951f6f2c336814d1338861c17f86fe49f7b87628866d74e54e66ce1", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
8,373
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* dir_info_1.c :+: :+: :+: ...
25.43
104
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* dir_info_1.c ...
845
0
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 25.43, "nodes": 478, "errors": 0, "source_hash": "5b619ec78851aba2fc1b1896d93f6489d0bda494d8ba69a5122f14b30c2f9ada", "categorized_nodes": 347}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,374
c
#pragma once #include <cmath> #include <numeric> #include <type_traits> #ifdef LIBVEC_USE_ASSERTS #include <assert.h> #define LIBVEC_ASSERT(x) assert(x) #else #define LIBVEC_ASSERT(x) #endif namespace vec { namespace detail { template<typename T> using elem_t = decltype(std::declval<T>()[0]); template<typen...
20.09
87
(translation_unit) "#pragma once\n\n#include <cmath>\n#include <numeric>\n#include <type_traits>\n\n#ifdef LIBVEC_USE_ASSERTS\n#include <assert.h>\n#define LIBVEC_ASSERT(x) assert(x)\n#else\n#define LIBVEC_ASSERT(x)\n#endif\n\nnamespace vec\n{\n namespace detail\n {\n template<typename T>\n using elem_t = decltype(st...
906
56
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 20.09, "nodes": 566, "errors": 0, "source_hash": "a4fa8d7ef06b4a6a4594d000bb27cdc1e4170f2323990e24cffe3c2b8a8f2320", "categorized_nodes": 404}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
8,375
c
/*********************************************************/ /* SEGA 8bit PCM */ /*********************************************************/ #ifndef __SEGAPCM_H__ #define __SEGAPCM_H__ #define BANK_256 (11) #define BANK_512 (12) #define BANK_12M (13) #de...
20.46
35
(translation_unit) "/*********************************************************/ \n/* SEGA 8bit PCM */ \n/*********************************************************/ \n \n#ifndef __SEGAPCM_H__ \n#define __SEGAPCM_H__ \n \n#define BANK_256 (11) \n#define BANK_512 (12) \n#d...
113
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 20.46, "nodes": 81, "errors": 0, "source_hash": "7087327d6a9dffc68882dc1ece837d66186f30f4744a0cc372946b15aa67f22c", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,376
c
// // Created by Qut on 29/10/2017. // #ifndef YAML_SOME_FUNCT_H #define YAML_SOME_FUNCT_H void menu(); extern int FILE_LINE_COUNTER; char *upWord(char *); char *cleanQuery(char *); int isAlphaNum(char *); int countArgs(char *, const char *); char *splitWord(char *, const char *); int correctWord(char *); c...
27.71
31
(translation_unit) "//\n// Created by Qut on 29/10/2017.\n//\n\n\n\n#ifndef YAML_SOME_FUNCT_H\n#define YAML_SOME_FUNCT_H\n\nvoid menu();\n\nextern int FILE_LINE_COUNTER;\n\nchar *upWord(char *);\n\nchar *cleanQuery(char *);\n\nint isAlphaNum(char *);\n\nint countArgs(char *, const char *);\n\nchar *splitWord(char *, co...
363
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 27.71, "nodes": 269, "errors": 0, "source_hash": "0bd28b96c834f617315e98fc397435586a0cea9357e28faa6fa532b73fa88bd0", "categorized_nodes": 122}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,377
c
#pragma once #include "Vector3.h" #include <string> #include <any> #include "../../../stringhelper.h" /* The MIT License (MIT) Copyright 2021 <NAME>, Call to Action Software LLC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Sof...
45.73
59
(translation_unit) "ragma once\n\n#include "Vector3.h"\n#include <string>\n#include <any>\n#include "../../../stringhelper.h"\n\n/*\nThe MIT License (MIT)\nCopyright 2021 <NAME>, Call to Action Software LLC\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated d...
387
13
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 45.73, "nodes": 236, "errors": 0, "source_hash": "ef636bffac347311d264030d09beb4d52e400dc7a6c9a1f6ff69d4fb27dd8599", "categorized_nodes": 186}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma o...
8,378
c
/* * Copyright (c) 1989 <NAME> * Copyright (c) 1989 Imperial College of Science, Technology & Medicine * Copyright (c) 1989, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * <NAME> at Imperial College, London. * * Redi...
25.8
288
(translation_unit) "/*\n * Copyright (c) 1989 <NAME>\n * Copyright (c) 1989 Imperial College of Science, Technology & Medicine\n * Copyright (c) 1989, 1993\n * The Regents of the University of California. All rights reserved.\n *\n * This code is derived from software contributed to Berkeley by\n * <NAME> at Imperial ...
1,277
0
{"language": "c", "success": true, "metadata": {"lines": 288, "avg_line_length": 25.8, "nodes": 732, "errors": 0, "source_hash": "785d03cab3c842cbc1a6b1764db917730ad37004783cf1ad57e5ef89d68dbbd3", "categorized_nodes": 516}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
8,379
c
#pragma once #include "utils/decls.h" #include "AbstractStaticInitPropertiesList.h" /* * Initialisation from static data structures. * * ***********************************************************/ class AbstractFileStaticInitPropertiesList : public AbstractStaticInitPropertiesList { public: virtual fs::path getP...
29.79
14
(translation_unit) "#pragma once\n\n#include "utils/decls.h"\n#include "AbstractStaticInitPropertiesList.h"\n\n/*\n * Initialisation from static data structures.\n *\n * ***********************************************************/\nclass AbstractFileStaticInitPropertiesList : public AbstractStaticInitPropertiesList\n{\...
67
3
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 29.79, "nodes": 35, "errors": 0, "source_hash": "f3aaa499467792351e4e7a733077a9f9b3a7548c5a717e3cee8c5db6204b2ae9", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
8,380
c
#include "../lib/em2.h" #include "../lib/lock.h" // This barrier implementation is *DYNAMIC* - ish - it requires a #define with num cores // Layout in memory: // M[A] = barrier lock // M[A+1] = counter // M[A+2] = numParticipatingThreads // M[C0+AO] = thread0 lock // M[C1+AO] = thread1 lock // ... // M[CN+AO] = thre...
26.26
84
(translation_unit) "#include "../lib/em2.h"\n#include "../lib/lock.h"\n\n// This barrier implementation is *DYNAMIC* - ish - it requires a #define with num cores\n\n// Layout in memory:\n// M[A] = barrier lock\n// M[A+1] = counter\n// M[A+2] = numParticipatingThreads\n// M[C0+AO] = thread0 lock\n// M[C1+AO] = thread1 l...
590
0
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 26.26, "nodes": 378, "errors": 0, "source_hash": "8c8e72acdb36c06494cff47aa10cf2b7bc6860890e5aa89f1c156cf266bfb4ce", "categorized_nodes": 231}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
8,381
c
/* * CAN.c * * Created on: Nov 8, 2013 * Author: <NAME> */ #include <string.h> #include "CAN.h" #include "Events.h" /* ** =================================================================== ** Method : CAN_QueueInit (driver for CAN_LDD) */ /*! ** @brief ** Sets the queu...
29.87
133
(translation_unit) "/* \n * CAN.c \n * \n * Created on: Nov 8, 2013 \n * Author: <NAME> \n */ \n \n#include <string.h> \n#include "CAN.h" \n#include "Events.h" \n/* \n** =================================================================== \n** Method : CAN_QueueInit (driver for CAN_LDD) \n*/ \n/*! \n** ...
480
0
{"language": "c", "success": true, "metadata": {"lines": 133, "avg_line_length": 29.87, "nodes": 265, "errors": 0, "source_hash": "28b39fcdc65ca9cd468adbee4ffc036f715f7aff3553e02fd4d9f0aeb4973c4d", "categorized_nodes": 215}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,382
c
#ifndef PONTO_H #define PONTO_H #include <stdio.h> #include <stdlib.h> #define boolean int #define true 0 #define false 1 typedef struct ponto_ PONTO; PONTO *ponto_criar(float x, float y); void ponto_apagar(PONTO *ponto); boolean ponto_set(PONTO *p, float x, float y); float getX(PONTO *p); float getY...
18.94
17
(translation_unit) "#ifndef PONTO_H\n #define PONTO_H\n\n #include <stdio.h>\n #include <stdlib.h>\n \n #define boolean int\n #define true 0\n #define false 1\n \n typedef struct ponto_ PONTO;\n \n PONTO *ponto_criar(float x, float y);\n void ponto_apagar(PONTO *ponto);\n boolean ponto_set(PONTO *p, float x, float y);\...
110
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 18.94, "nodes": 90, "errors": 0, "source_hash": "e113ad31ee52d35228425b48a532315462298ab2468740965a65388e1b644e83", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,383
c
#ifndef _winx68k_pia #define _winx68k_pia #include "common.h" extern BYTE PIA_PortA; extern BYTE PIA_PortB; extern BYTE PIA_PortC; void PIA_Init(void); BYTE FASTCALL PIA_Read(DWORD adr); void FASTCALL PIA_Write(DWORD adr, BYTE data); #endif
23.1
10
(translation_unit) "#ifndef _winx68k_pia\n#define _winx68k_pia\n\n#include "common.h"\n\nextern BYTE PIA_PortA;\nextern BYTE PIA_PortB;\nextern BYTE PIA_PortC;\n\nvoid PIA_Init(void);\nBYTE FASTCALL PIA_Read(DWORD adr);\nvoid FASTCALL PIA_Write(DWORD adr, BYTE data);\n\n#endif\n" (preproc_ifdef) "#ifndef _winx68k_pia...
72
2
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 23.1, "nodes": 55, "errors": 0, "source_hash": "bf71404103fb00fd5f50f40f25d788c01ae0bff3257e5caa06fa3a7ae736092b", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
8,384
c
// SAFE // From the "Path-Invariants" paper // allzeros void main() { int t[5]; int i,j; // Set all values to zero for(i=0;i<5;i++){ t[i]=0; } // Test if not zero for(j=0;j<5;j++){ _TRACER_abort(t[j] > 0); } }
12.33
18
(translation_unit) "// SAFE\n\n// From the "Path-Invariants" paper\n\n\n// allzeros\nvoid main()\n{\n int t[5];\n int i,j;\n\n // Set all values to zero\n for(i=0;i<5;i++){ \n t[i]=0;\n }\n\n // Test if not zero\n for(j=0;j<5;j++){\n _TRACER_abort(t[j] > 0);\n }\n \n}\n" (comment) "// SAFE" (comment...
95
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 12.33, "nodes": 53, "errors": 0, "source_hash": "97d0a778555cae81f1a1fd279ecc104a21194582f0322acc127b8094ffddff27", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "vo...
8,385
c
#include <stdio.h> #include <stdlib.h> #include <errno.h> #include <sys/types.h> #include <sys/msg.h> #include <sys/ipc.h> #include <unistd.h> #include <time.h> #include <signal.h> typedef struct Message { long mtype; int pid; } Message; typedef enum Passenger { MISSIONARY = 1, CANNIBAL } Passenger; ...
33.42
104
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <errno.h>\n#include <sys/types.h>\n#include <sys/msg.h>\n#include <sys/ipc.h>\n#include <unistd.h>\n#include <time.h>\n#include <signal.h>\n\ntypedef struct Message {\n long mtype;\n int pid;\n} Message;\n\ntypedef enum Passenger {\n MISSION...
835
0
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 33.42, "nodes": 470, "errors": 0, "source_hash": "237129c56cdf9a8e1bbdced4e067eafaa72eb46bf9aa3a8b9324a5c89dd23785", "categorized_nodes": 367}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,386
c
/* snefru.h */ #ifndef SNEFRU_H #define SNEFRU_H #include "ustd.h" #ifdef __cplusplus extern "C" { #endif /* Snefru-128 processses message by blocks of 48 bytes, */ /* and Snefru-256 uses blocks of 32 bytes */ /* here we declare the maximal block size */ #define snefru_block_size 48 #define snefru128_hash_length 16...
34.03
31
(translation_unit) "/* snefru.h */\n#ifndef SNEFRU_H\n#define SNEFRU_H\n#include "ustd.h"\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n/* Snefru-128 processses message by blocks of 48 bytes, */\n/* and Snefru-256 uses blocks of 32 bytes */\n\n/* here we declare the maximal block size */\n#define snefru_block_size 48\...
176
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 34.03, "nodes": 122, "errors": 0, "source_hash": "968d23e140a9833bb342ec4d6aed33fd4a1bbf8b9bb1f3e9e0109ecfcf205459", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
8,387
c
// // Created by alexj on 11/4/2018. // #include "utils.h" inline void debug(const char *string) { #if DEBUG write(STDOUT, COLOR_DEBUG, strlen(COLOR_DEBUG)); write(STDOUT, string, strlen(string)); write(STDOUT, COLOR_RESET, strlen(COLOR_RESET)); #else (void) (string); #endif } void debugv(const char *string, lo...
21.69
108
(translation_unit) "//\n// Created by alexj on 11/4/2018.\n//\n\n#include "utils.h"\n\n\ninline void debug(const char *string) {\n#if DEBUG\n write(STDOUT, COLOR_DEBUG, strlen(COLOR_DEBUG));\n write(STDOUT, string, strlen(string));\n write(STDOUT, COLOR_RESET, strlen(COLOR_RESET));\n#else\n (void) (string);\n#endif\n}\...
1,089
0
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 21.69, "nodes": 646, "errors": 0, "source_hash": "5948edba5420d213dd963f5e698d4d409e19a585371974d2fa307a1f0a42f546", "categorized_nodes": 438}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
8,388
c
#include <stdlib.h> #include "mpatch.h" #include "checkpoint_mpatch.h" size_t checkpoint_mpatch(void) { mpatch_stage(); mpatch_core_checkpoint(false); return 0; } size_t restore_mpatch(void) { mpatch_core_restore(); mpatch_recover(); mpatch_apply_all(false); return 0; } size_t setup_mpat...
17.24
21
(translation_unit) "#include <stdlib.h>\n#include "mpatch.h"\n\n#include "checkpoint_mpatch.h"\n\nsize_t checkpoint_mpatch(void)\n{\n mpatch_stage();\n mpatch_core_checkpoint(false);\n return 0;\n}\n\nsize_t restore_mpatch(void)\n{\n mpatch_core_restore();\n mpatch_recover();\n mpatch_apply_all(false)...
112
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 17.24, "nodes": 61, "errors": 0, "source_hash": "533f25fc8d625e7e7f1d170e36e966517ee0a665321fa39b148574e4089a8972", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
8,389
c
// // DeviceUtil.h // SXIoTSDK // // Created by ShimLin on 2019/5/30. // Copyright © 2019 ShimLin. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface DeviceUtil : NSObject + (void)sendWifiDeviceMsg:(NSDictionary*) dataDict forCount:(int) count onComplete:...
26.29
14
(translation_unit) "//\n// DeviceUtil.h\n// SXIoTSDK\n//\n// Created by ShimLin on 2019/5/30.\n// Copyright © 2019 ShimLin. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface DeviceUtil : NSObject\n\n+ (void)sendWifiDeviceMsg:(NSDictionary*) dataDict forCount:(int...
84
6
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 26.29, "nodes": 47, "errors": 0, "source_hash": "4be6498d5bb93ca2a9e28bc55cd045787634f3f1dae576e8da38cc38e69b2954", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
8,390
c
/************************************************************************* * Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved. * * See LICENSE.txt for license information ************************************************************************/ #ifndef NCCL_TOPO_H_ #define NCCL_TOPO_H_ #include "n...
31.88
73
(translation_unit) "/*************************************************************************\n * Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved.\n *\n * See LICENSE.txt for license information\n ************************************************************************/\n\n#ifndef NCCL_TOPO_H_\n#defin...
764
0
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 31.88, "nodes": 458, "errors": 0, "source_hash": "2ae3cd75e571df3d7b194c48ef90dec98751f06beff7127a06b7f81f8cd1bc64", "categorized_nodes": 304}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,391
c
#ifndef SHADER_H #define SHADER_H #include <GL/glew.h> #include "stdlib.h" #include <iostream> #include <fstream> #include <sstream> #include <string> #include <cstring> namespace phen { class Shader { public: Shader(); Shader(std::string tmp_name); virtual ~Shader(); int create...
30.67
30
(translation_unit) "#ifndef SHADER_H\n#define SHADER_H\n\n#include <GL/glew.h>\n\n#include "stdlib.h"\n#include <iostream>\n#include <fstream>\n#include <sstream>\n#include <string>\n#include <cstring>\n\nnamespace phen {\n\nclass Shader\n{\n public:\n Shader();\n Shader(std::string tmp_name);\n ...
224
12
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 30.67, "nodes": 139, "errors": 0, "source_hash": "241a9cc935579f4ccfef37df673cb924b0d8b2f5d4014d7e860cf85ead48871a", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,392
c
/* * Copyright (C) 2018 <NAME> * * Author: <NAME> <<EMAIL>> */ #include "lexbor/html/interfaces/br_element.h" #include "lexbor/html/interfaces/document.h" lxb_html_br_element_t * lxb_html_br_element_interface_create(lxb_html_document_t *document) { lxb_html_br_element_t *element; element = lexbor_mraw_c...
29.45
29
(translation_unit) "/*\n * Copyright (C) 2018 <NAME>\n *\n * Author: <NAME> <<EMAIL>>\n */\n\n#include "lexbor/html/interfaces/br_element.h"\n#include "lexbor/html/interfaces/document.h"\n\n\nlxb_html_br_element_t *\nlxb_html_br_element_interface_create(lxb_html_document_t *document)\n{\n lxb_html_br_element_t *elem...
159
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 29.45, "nodes": 100, "errors": 0, "source_hash": "fd5b5c7cf117957f163e5cabf2d3db2f68067fc8f078f9eed1925da8dcc85778", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
8,393
c
#ifndef STATUS_H #define STATUS_H #include "tuple.h" #include <QVector> template<class WORDS_TYPE, WORDS_TYPE SIZE = WORDS_TYPE::STATUS_WORDS_SIZE> class status { public: using type = status<WORDS_TYPE, SIZE>; using list = tuple[(size_t)SIZE]; void countall() { for(auto &i : statuses) ...
21.76
38
(translation_unit) "#ifndef STATUS_H\n#define STATUS_H\n\n#include "tuple.h"\n#include <QVector>\n\ntemplate<class WORDS_TYPE, WORDS_TYPE SIZE = WORDS_TYPE::STATUS_WORDS_SIZE>\nclass status\n{\npublic:\n using type = status<WORDS_TYPE, SIZE>;\n using list = tuple[(size_t)SIZE];\n\n void countall()\n {\n ...
266
14
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 21.76, "nodes": 168, "errors": 0, "source_hash": "21e2c4e60d31031fd552ba46bb3f66079fc0394bcbe7ab224da767484ccb8448", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
8,394
c
// // Utils.h // Refactorator // // Created by <NAME> on 19/11/2016. // Copyright © 2016 <NAME>. All rights reserved. // #import <Cocoa/Cocoa.h> @interface Utils : NSObject + (NSString *)hashStringForPath:(NSString *)path; @end
20.09
11
(translation_unit) "//\n// Utils.h\n// Refactorator\n//\n// Created by <NAME> on 19/11/2016.\n// Copyright © 2016 <NAME>. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n\n@interface Utils : NSObject\n+ (NSString *)hashStringForPath:(NSString *)path;\n@end\n" (comment) "//" (comment) "// Utils.h" (comme...
42
7
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 20.09, "nodes": 22, "errors": 0, "source_hash": "b64f3bebcdb3a7613258bc79ec48de40013a22654f958ea1a75b69d889292622", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <C...
8,395
c
#pragma once #include <stdint.h> typedef struct annotation Annotation; Annotation *new_annotation(uint32_t start, uint32_t end, const char *type, const char *value); void annotation_ref_inc(Annotation *a); void annotation_ref_dec(Annotation *a); uint32_t annotation_start(Annotation *a); uint32_t annotation_end(Annota...
40.7
10
(translation_unit) "#pragma once\n\n#include <stdint.h>\n\ntypedef struct annotation Annotation;\nAnnotation *new_annotation(uint32_t start, uint32_t end, const char *type, const char *value);\nvoid annotation_ref_inc(Annotation *a);\nvoid annotation_ref_dec(Annotation *a);\nuint32_t annotation_start(Annotation *a);\nu...
133
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 40.7, "nodes": 98, "errors": 0, "source_hash": "3b7a50c8b421fb129b221e295f90c84447d328d572836411a290bf0f6597be10", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
8,396
c
//Gfx converted using Mollusk's PAGfxConverter //This file contains all the .h, for easier inclusion in a project #ifndef __ALL_GFX__ #define __ALL_GFX__ // Background files : extern int neoflash_Width, neoflash_Height; extern const unsigned short neoflash_Map[768]; // Pal : neoflash_Pal extern const unsigned char...
36.59
17
(translation_unit) "//Gfx converted using Mollusk's PAGfxConverter\n\n//This file contains all the .h, for easier inclusion in a project\n#ifndef __ALL_GFX__\n#define __ALL_GFX__\n\n\n// Background files : \nextern int neoflash_Width, neoflash_Height;\nextern const unsigned short neoflash_Map[768]; // Pal : neoflash_P...
116
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 36.59, "nodes": 73, "errors": 0, "source_hash": "e2fdaaf03892eea47196843d816cedb5952e963f735c090703cea06e505f754b", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
8,397
c
// // CKIClient+CKIConversationRecipient.h // CanvasKit // // Created by <NAME> on 12/2/14. // Copyright (c) 2014 Instructure. All rights reserved. // #import "CKIClient.h" @interface CKIClient (CKIConversationRecipient) - (RACSignal *)fetchConversationRecipientsWithSearchString:(NSString *)search inContext:(NSS...
30
11
(translation_unit) "//\n// CKIClient+CKIConversationRecipient.h\n// CanvasKit\n//\n// Created by <NAME> on 12/2/14.\n// Copyright (c) 2014 Instructure. All rights reserved.\n//\n\n#import "CKIClient.h"\n\n@interface CKIClient (CKIConversationRecipient)\n\n- (RACSignal *)fetchConversationRecipientsWithSearchString:(...
54
6
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 30.0, "nodes": 30, "errors": 0, "source_hash": "1ca61955ececb04e00c1573fbc7c6affc933a88dd5b4d812067edb1878c4f2e7", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
8,398
c
/* ** sbarinfo.h ** ** Header for custom status bar definitions. ** **--------------------------------------------------------------------------- ** Copyright 2008 <NAME> ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without ** modification, are permitted provided th...
25.05
131
(translation_unit) "/* \n** sbarinfo.h \n** \n** Header for custom status bar definitions. \n** \n**--------------------------------------------------------------------------- \n** Copyright 2008 <NAME> \n** All rights reserved. \n** \n** Redistribution and use in source and binary forms, with or without \n** modificat...
447
8
{"language": "c", "success": true, "metadata": {"lines": 131, "avg_line_length": 25.05, "nodes": 299, "errors": 0, "source_hash": "8c6a3a6e42bbc4dd23844618561b492a423a719c9244c7db0fa54e9716d77982", "categorized_nodes": 200}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
8,399