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
#include <stdio.h> int main(int argc, char *argv[]){ int to_be_sort[] = {3,2,5,1,6}; int i = 0; int len = sizeof(to_be_sort) / sizeof(to_be_sort[0]); for(;i<len;i++){ int j=0; for(;j<i;j++){ if(to_be_sort[i] < to_be_sort[j]){ int temp = to_be_sort[j]; to_be_sort[j] = to_be_sort[i]; to_be_so...
18.05
22
(translation_unit) "#include <stdio.h>\n\nint main(int argc, char *argv[]){\n\n int to_be_sort[] = {3,2,5,1,6};\n\n int i = 0;\n int len = sizeof(to_be_sort) / sizeof(to_be_sort[0]);\n \n for(;i<len;i++){\n int j=0;\n for(;j<i;j++){\n if(to_be_sort[i] < to_be_sort[j]){\n int temp = to_be_sort[j];\n to_be_sort...
217
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 18.05, "nodes": 128, "errors": 0, "source_hash": "726b721242d71f37bfb7a847055a4b0b153ed034dcc449eb1c3dbce60d5a68ed", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
80,700
c
#pragma once #include <QAbstractListModel> #include "FIleWatchList.h" class WatchListModel: public QAbstractListModel { private: FileWatchList & watchlist; public: WatchListModel(FileWatchList& w) :watchlist{ w }{} ~WatchListModel(); int rowCount(const QModelIndex &parent = QModelIndex()) const; QVariant data(co...
28.23
13
(translation_unit) "#pragma once\n#include <QAbstractListModel>\n#include "FIleWatchList.h"\n\nclass WatchListModel: public QAbstractListModel\n\n{\nprivate:\n FileWatchList & watchlist;\npublic:\n WatchListModel(FileWatchList& w) :watchlist{ w }{}\n ~WatchListModel();\n int rowCount(const QModelIndex &parent = QModelI...
117
7
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 28.23, "nodes": 61, "errors": 0, "source_hash": "ec4f2c348092743f52e236a7dec23202fc0753b70b20972c0717fc861a6b45b0", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
80,701
c
// // SegmentedController.h // SegmentedController // // Created by <NAME> on 8/26/15. // Copyright (c) 2015 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for SegmentedController. FOUNDATION_EXPORT double SegmentedControllerVersionNumber; //! Project version string for Segmen...
41.38
13
(translation_unit) "//\n// SegmentedController.h\n// SegmentedController\n//\n// Created by <NAME> on 8/26/15.\n// Copyright (c) 2015 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n//! Project version number for SegmentedController.\nFOUNDATION_EXPORT double SegmentedControllerVersionNumber;\n\n//! ...
33
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 41.38, "nodes": 15, "errors": 0, "source_hash": "dcae399b1b9ddb592ee8cd3212cbe1f0d44dd49a37367db8e91e167f33a66a49", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
80,702
c
#include "stdafx.h" typedef struct Visu_moduleData { int type; int idmod; int datasize; int GraphXPosi_X; int GraphXPosi_Y; int GraphXSize_X; int GraphXSize_Y; Connexion Connection[8]; int Mode; int scopenumber; }Visu_moduleData; class visu_module : public module { private: int IconeId; int OutputNum...
23.58
57
(translation_unit) "#include "stdafx.h"\n\ntypedef struct Visu_moduleData\n{\n int type;\n int idmod;\n int datasize;\n\n int GraphXPosi_X;\n int GraphXPosi_Y;\n int GraphXSize_X;\n int GraphXSize_Y;\n\n Connexion Connection[8];\n\n\n int Mode;\n int scopenumber;\n\n}Visu_moduleData;\n\nclass visu_module : public modul...
502
2
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 23.58, "nodes": 353, "errors": 0, "source_hash": "83d2e9d68d35f6fa9980aa44ec64339cf8c5c73940699aef48e4c9aa48b1f2bd", "categorized_nodes": 201}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
80,703
c
// RUN: %testrun %lartcc term -lz3 %s -o %t | %filecheck %s #include <lamp.h> #include <assert.h> #include "utils.h" int main() { short a = __lamp_any_i16(); int b = __lamp_any_i32(); int r = a + b; __lamp_dump(&r); // CHECK: (bvadd ((_ sign_extend 16) var_1) var_2) }
25.27
11
(translation_unit) "// RUN: %testrun %lartcc term -lz3 %s -o %t | %filecheck %s\n\n#include <lamp.h>\n#include <assert.h>\n\n#include "utils.h"\n\nint main() {\n short a = __lamp_any_i16();\n int b = __lamp_any_i32();\n int r = a + b;\n __lamp_dump(&r);\n // CHECK: (bvadd ((_ sign_extend 16) var_1) var_2...
68
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 25.27, "nodes": 45, "errors": 0, "source_hash": "ff5ffbbc7b21bba0d603c4b3085b36664b0e433e4bffd2dac7f7ce1d564d5b94", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
80,704
c
/********************************************************************* * FileName: typedefs.h ********************************************************************/ #ifndef TYPEDEFS_H #define TYPEDEFS_H typedef unsigned char byte; // 8-bit typedef unsigned int word; // 16-bit ...
18.05
41
(translation_unit) "/********************************************************************* \n * FileName: typedefs.h \n ********************************************************************/ \n \n#ifndef TYPEDEFS_H \n#define TYPEDEFS_H \n \ntypedef unsigned char byte; // 8-bit \ntypedef unsigned int ...
155
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 18.05, "nodes": 105, "errors": 0, "source_hash": "f474d965cbe92baf92502b286b4d7a0af85637e6c7cd24029196fd6a6d8f3b48", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
80,705
c
#ifndef PARTICLECONTACT_H_ #define PARTICLECONTACT_H_ #include "Particle.h" #include <vector> #include <memory> namespace FME { namespace Simulation { class ParticleContact { public: ParticleContact(); virtual void Update(float deltaTime); float CalculateSeparatingVelocity() ...
20.41
49
(translation_unit) "#ifndef PARTICLECONTACT_H_ \n#define PARTICLECONTACT_H_ \n \n#include "Particle.h" \n#include <vector> \n#include <memory> \n \n \nnamespace FME \n{ \n namespace Simulation \n { \n class ParticleContact \n { \n public: \n \n ParticleContact(); \n \n virtual void Update(float deltaTime); \n \...
268
12
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 20.41, "nodes": 163, "errors": 0, "source_hash": "0bc7a42e77eb560748cece1d6eb9b35d151c9b4714a67841d23784c6bdb1b2e9", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
80,706
c
#ifndef __J1MAINMENU_H__ #define __J1MAINMENU_H__ #include "j1Module.h" #include "p2DynArray.h" class Button; class Label; class Image; class CheckBox; class Slider; class j1MainMenu : public j1Module { public: j1MainMenu(); // Destructor virtual ~j1MainMenu(); // Called before render is available bool Awake...
24.52
86
(translation_unit) "#ifndef __J1MAINMENU_H__\n#define __J1MAINMENU_H__\n\n#include "j1Module.h"\n#include "p2DynArray.h"\n\nclass Button;\nclass Label;\nclass Image;\nclass CheckBox;\nclass Slider;\n\nclass j1MainMenu : public j1Module\n{\npublic:\n\n j1MainMenu();\n\n // Destructor\n virtual ~j1MainMenu();\n\n // Call...
634
12
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 24.52, "nodes": 494, "errors": 0, "source_hash": "8f03acfb7405597ba40969e07590b1bbcbb4937aa48cabfde3dee33b0c16c716", "categorized_nodes": 220}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
80,707
c
/**************************************************************************** * boards/arm/stm32l4/stm32l476-mdk/src/stm32l476-mdk.h * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information ...
44.82
119
(translation_unit) "/****************************************************************************\n * boards/arm/stm32l4/stm32l476-mdk/src/stm32l476-mdk.h\n *\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work fo...
225
0
{"language": "c", "success": true, "metadata": {"lines": 119, "avg_line_length": 44.82, "nodes": 183, "errors": 0, "source_hash": "a31dce21be4ab4f488fc9e110c9a78509a3196c7cc055508ead86ac325b1d998", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
80,708
c
#pragma once #include "il2cpp-config.h" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <stdint.h> // System.Char[] struct CharU5BU5D_t3324145743; #include "mscorlib_System_ValueType1744280289.h" #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wi...
27.68
40
(translation_unit) "ragma once\n\n#include "il2cpp-config.h"\n\n#ifndef _MSC_VER\n# include <alloca.h>\n#else\n# include <malloc.h>\n#endif\n\n#include <stdint.h>\n\n// System.Char[]\nstruct CharU5BU5D_t3324145743;\n\n#include "mscorlib_System_ValueType1744280289.h"\n\n#ifdef __clang__\n#pragma clang diagnostic push\n#...
205
6
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 27.68, "nodes": 137, "errors": 0, "source_hash": "0108b36a6e5eea23d5e90dbb152fe27d73a5ed91890ec77b241ef20d973dd2a0", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma on...
80,709
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @class NSMutableDictionary, NSMutableString; @interface APMidasCommonCGIParamsContructor : NSObject { NSMutableDictionary *bodyDict; NSMutableDictionary *en...
26.48
23
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n@class NSMutableDictionary, NSMutableString;\n\n@interface APMidasCommonCGIParamsContructor : NSObject\n{\n NSMutableDictionary *bodyD...
179
13
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 26.48, "nodes": 108, "errors": 0, "source_hash": "024d4376f94008ba26a675507b3ecd26bb95c21796b0afc1e49a370f77de1d5c", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
80,710
c
// // TCSController.h // TomcatSlapper // // Created by <NAME> on 9/20/04. // Copyright 2004 Fivesquare Software, LLC. All rights reserved. // #import <Cocoa/Cocoa.h> @class TCSToolbarDelegate; @class TCSCatSlapper; @class TCSPrefController; @class TCSConsoleView; @class TCSKitty; @interface TCSController : NSOb...
35.04
109
(translation_unit) "//\n// TCSController.h\n// TomcatSlapper\n//\n// Created by <NAME> on 9/20/04.\n// Copyright 2004 Fivesquare Software, LLC. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n\n@class TCSToolbarDelegate;\n@class TCSCatSlapper;\n@class TCSPrefController;\n@class TCSConsoleView;\n@class TCSKitty...
1,055
80
{"language": "c", "success": true, "metadata": {"lines": 109, "avg_line_length": 35.04, "nodes": 676, "errors": 0, "source_hash": "b74033aa4bcef5a8302189a7aa91f0314a64e8d9277b9bb7db3cba1fa3d1eec9", "categorized_nodes": 433}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#impor...
80,711
c
/* * Chai PCR - Software platform for Open qPCR and Chai's Real-Time PCR instruments. * For more information visit http://www.chaibio.com * * Copyright 2016 Chai Biotechnologies Inc. <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with...
36.21
101
(translation_unit) "/* * Chai PCR - Software platform for Open qPCR and Chai's Real-Time PCR instruments.\n * For more information visit http://www.chaibio.com\n *\n * Copyright 2016 Chai Biotechnologies Inc. <<EMAIL>>\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file...
753
43
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 36.21, "nodes": 430, "errors": 0, "source_hash": "916a81ecdfba272e1551cd8e412ae1894f6c03d33f492a56f06c89a4c6957153", "categorized_nodes": 293}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
80,712
c
#ifndef _FRACTION_H_ #define _FRACTION_H_ #include "types.h" typedef struct { ull_t p; ull_t q; } fraction; fraction* fract_reduce(fraction *f); #endif
16.78
9
(translation_unit) "#ifndef _FRACTION_H_\n#define _FRACTION_H_\n\n#include "types.h"\n\ntypedef struct {\n ull_t p;\n ull_t q;\n} fraction;\n\nfraction* fract_reduce(fraction *f);\n\n#endif\n" (preproc_ifdef) "#ifndef _FRACTION_H_\n#define _FRACTION_H_\n\n#include "types.h"\n\ntypedef struct {\n ull_t p;\n ...
46
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 16.78, "nodes": 33, "errors": 0, "source_hash": "9c8f498f9020f517a2f9618db595af2e0400d42b3e8663bb1390ebf39cbfdd69", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
80,713
c
/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2015 <NAME> <<EMAIL>> * * */ bool a2dp_codec_cap(uint8_t codec, uint8_t losc, struct l2cap_frame *frame); bool a2dp_codec_cfg(uint8_t codec, uint8_t losc, struct l2cap_frame *frame);
27.18
11
(translation_unit) "/* SPDX-License-Identifier: LGPL-2.1-or-later */\n/*\n *\n * BlueZ - Bluetooth protocol stack for Linux\n *\n * Copyright (C) 2015 <NAME> <<EMAIL>>\n *\n *\n */\n\nbool a2dp_codec_cap(uint8_t codec, uint8_t losc, struct l2cap_frame *frame);\n\nbool a2dp_codec_cfg(uint8_t codec, uint8_t losc, stru...
49
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 27.18, "nodes": 36, "errors": 0, "source_hash": "72be64ceb502bf7a4708e37155067016bcff11f0fdf6396ec9908386d68339c1", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "bool a2dp_...
80,714
c
/** * <NAME>'s Average Shell (Akash) * * A totally average shell program that * is an acronym and only coincidentally * also the name of a man * * Author: <NAME> * Created: 3 - 24 - 2019 */ #include "tokenizer.h" #include "debug.h" #include <stdio.h> #include <stdlib.h> #include <string.h> // Debug function ...
26.27
146
(translation_unit) "/**\n * <NAME>'s Average Shell (Akash)\n *\n * A totally average shell program that\n * is an acronym and only coincidentally\n * also the name of a man\n *\n * Author: <NAME>\n * Created: 3 - 24 - 2019\n */\n#include "tokenizer.h"\n#include "debug.h"\n#include <stdio.h>\n#include <stdlib.h>\n#incl...
997
1
{"language": "c", "success": true, "metadata": {"lines": 146, "avg_line_length": 26.27, "nodes": 576, "errors": 0, "source_hash": "55802108955ef78cf12893d078ef9b582098888db2b110d813793925a352b82b", "categorized_nodes": 364}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
80,715
c
#ifndef __STM32F1xx_IT_H #define __STM32F1xx_IT_H #ifdef __cplusplus extern "C" { #endif void NMI_Handler(void); void HardFault_Handler(void); void MemManage_Handler(void); void BusFault_Handler(void); void UsageFault_Handler(void); void SVC_Handler(void); void DebugMon_Handler(void); void PendSV_Handler(void); voi...
22.7
23
(translation_unit) "#ifndef __STM32F1xx_IT_H\n#define __STM32F1xx_IT_H\n\n#ifdef __cplusplus\n extern "C" {\n#endif \n\nvoid NMI_Handler(void);\nvoid HardFault_Handler(void);\nvoid MemManage_Handler(void);\nvoid BusFault_Handler(void);\nvoid UsageFault_Handler(void);\nvoid SVC_Handler(void);\nvoid DebugMon_Handler(void...
158
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 22.7, "nodes": 112, "errors": 0, "source_hash": "40a7aef637510fd09bf342ed8b6e5d533a80ab6677bca67d0b70dbb6962cc5c4", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
80,716
c
// // Created by Jihun on 6/24/2020. // #ifndef CPEWPEW_JIHUN_41_H #define CPEWPEW_JIHUN_41_H class Jihun_41 { public: Jihun_41(); // ~ is the deconstructor ~Jihun_41(); }; #endif //CPEWPEW_JIHUN_41_H
12.76
17
(translation_unit) "// \n// Created by Jihun on 6/24/2020. \n// \n \n#ifndef CPEWPEW_JIHUN_41_H \n#define CPEWPEW_JIHUN_41_H \n \n \nclass Jihun_41 { \npublic: \n Jihun_41(); \n // ~ is the deconstructor \n ~Jihun_41(); \n}; \n \n \n#endif //CPEWPEW_JIHUN_41_H \n" (comment) "// " (comment) "// Created by J...
40
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 12.76, "nodes": 18, "errors": 0, "source_hash": "66f7725f1347f3eb3ee22a71dfb6e4cb562a6b4f2248c9d80216d84b54470bf9", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
80,717
c
#pragma once #if MYDLL_EXPORTS #define DLL_API __declspec(dllexport) #else #define DLL_API __declspec(dllimport) #endif #if MYDLL_EXPORTS #define CLASS_API __declspec(dllexport) #else #define CLASS_API __declspec(dllimport) #endif DLL_API int addFunc(int, int); DLL_API int minusFunc(int, int); DLL_API int divFunc(i...
18.04
26
(translation_unit) "#pragma once\n#if MYDLL_EXPORTS\n#define DLL_API __declspec(dllexport)\n#else\n#define DLL_API __declspec(dllimport)\n#endif\n\n\n#if MYDLL_EXPORTS\n#define CLASS_API __declspec(dllexport)\n#else\n#define CLASS_API __declspec(dllimport)\n#endif\n\n\nDLL_API int addFunc(int, int);\nDLL_API int minusF...
142
6
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 18.04, "nodes": 105, "errors": 0, "source_hash": "56a953b595086d62d078930eacffa96f94b975c3a8d6346bc9ab5cbc58a6eb76", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
80,718
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Mar 11 2021 20:53:35). // // Copyright (C) 1997-2019 <NAME>. // #import <MIO/MIOObject.h> @class MIORADPluginManager, NSMutableArray, NSUndoManager; @interface MIORADManager : MIOObject { NSMutableArray *_volumes; NSMutableArray *_radVol...
33.99
75
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Mar 11 2021 20:53:35).\n//\n// Copyright (C) 1997-2019 <NAME>.\n//\n\n#import <MIO/MIOObject.h>\n\n@class MIORADPluginManager, NSMutableArray, NSUndoManager;\n\n@interface MIORADManager : MIOObject\n{\n NSMutableArray *_volu...
916
49
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 33.99, "nodes": 543, "errors": 0, "source_hash": "0c392b61d1fea7fa47ec05ae2139b2f0c3b6dbe8938a124f263f45a0ffdcabe6", "categorized_nodes": 328}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
80,719
c
//////////////////////////////////////////////////// // Copyright (c) 2012 ICRL // See the file LICENSE.txt for copying permission. // // Original Author: <NAME> // Date: 7/21/2012 // Contact: <EMAIL> //////////////////////////////////////////////////// #include "ActionList.h" #include "EntityManager.h" ...
21.53
277
(translation_unit) "//////////////////////////////////////////////////// \n// Copyright (c) 2012 ICRL \n// See the file LICENSE.txt for copying permission. \n// \n// Original Author: <NAME> \n// Date: 7/21/2012 \n// Contact: <EMAIL> \n//////////////////////////////////////////////////// \n \n#include "ActionList.h" ...
1,392
0
{"language": "c", "success": true, "metadata": {"lines": 277, "avg_line_length": 21.53, "nodes": 817, "errors": 0, "source_hash": "08e08a164f1f8e57564587e6af204ee3381b4b824868b93eb3e121b1dc790bfb", "categorized_nodes": 578}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
80,720
c
/* (c) copyright 1988 by the Vrije Universiteit, Amsterdam, The Netherlands. See the copyright notice in the ACK home directory, in the file "Copyright". */ /* $Header: /cvsup/minix/src/lib/float/fef4.c,v 1.1.1.1 2005/04/21 14:56:10 beng Exp $ */ /* SEPERATE INTO EXPONENT AND FRACTION (FEF 4) */ #include "FP_ty...
23.36
28
(translation_unit) "/*\n (c) copyright 1988 by the Vrije Universiteit, Amsterdam, The Netherlands.\n See the copyright notice in the ACK home directory, in the file "Copyright".\n*/\n\n/* $Header: /cvsup/minix/src/lib/float/fef4.c,v 1.1.1.1 2005/04/21 14:56:10 beng Exp $ */\n\n/*\n SEPERATE INTO EXPONENT AND FRACTION...
169
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 23.36, "nodes": 105, "errors": 0, "source_hash": "ac970e58fafcb21346a594eb5e702d5111f2485353f382b049871dd383b83873", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
80,721
c
#pragma once #include "bwContext.h" #include "bwEventDispatcher.h" namespace bWidgets { namespace bwScreenGraph { class Node; class LayoutNode; class ScreenGraph { public: template<typename _NodeType> ScreenGraph(std::unique_ptr<_NodeType> _root_node) : event_dispatcher(*this), root_node(std::move(_root_...
23.15
26
(translation_unit) "#pragma once\n\n#include "bwContext.h"\n#include "bwEventDispatcher.h"\n\nnamespace bWidgets {\nnamespace bwScreenGraph {\n\nclass Node;\nclass LayoutNode;\n\nclass ScreenGraph {\n public:\n template<typename _NodeType>\n ScreenGraph(std::unique_ptr<_NodeType> _root_node)\n : event_dispatcher...
154
8
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 23.15, "nodes": 85, "errors": 0, "source_hash": "4fefe737968522bf620a553e953151c3a018242d4bb87578b10cd6895f456120", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
80,722
c
/* * src/nf-ct-list.c List Conntrack Entries * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation version 2.1 * of the License. * * Copyright (c) 2003-2009 <NAME> <<EMAIL>> * Cop...
33.74
170
(translation_unit) "/*\n * src/nf-ct-list.c List Conntrack Entries\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation version 2.1\n * of the License.\n *\n * Copyright (c) 2003-...
1,112
0
{"language": "c", "success": true, "metadata": {"lines": 170, "avg_line_length": 33.74, "nodes": 600, "errors": 0, "source_hash": "5e087f89e234937bb7f5a83c59e3fbc31ed53d0447a5a42b9d5f946531ff039b", "categorized_nodes": 399}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
80,723
c
#include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <netdb.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #define BUFSIZE 1024 void error(char *msg) { perror(msg); exit(1); } int main(int argc, char **argv) { int sockfd; i...
30.8
50
(translation_unit) "#include <stdio.h>\n#include <unistd.h>\n#include <stdlib.h>\n#include <string.h>\n#include <netdb.h>\n#include <sys/types.h> \n#include <sys/socket.h>\n#include <netinet/in.h>\n#include <arpa/inet.h>\n\n#define BUFSIZE 1024\n\nvoid error(char *msg) {\n perror(msg);\n exit(1);\n}\n\nint main(int a...
558
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 30.8, "nodes": 336, "errors": 0, "source_hash": "f69e2bf8b0c4c74dee56963c23a7bf4aa9b57f0f0efdf0fa36fe3e6fa56b331a", "categorized_nodes": 244}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
80,724
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* trinity.c :+: :+: :+: ...
27.71
55
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* trinity.c ...
383
0
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 27.71, "nodes": 216, "errors": 0, "source_hash": "876b17af2ff7b7a0bb86cc569a722e9cca6979670cfd65b719dec36afb6e1aaf", "categorized_nodes": 153}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
80,725
c
#ifndef KLEE_SERIALIZABLETYPES_H #define KLEE_SERIALIZABLETYPES_H #include <string> #include <vector> namespace klee { struct ExecutionStats { std::string llvm_inst_str; std::string file_loc; uint64_t instructions_cnt; int64_t queryCost_us; int64_t queryCost_increment_us; }; // One string...
31.36
55
(translation_unit) "#ifndef KLEE_SERIALIZABLETYPES_H\n#define KLEE_SERIALIZABLETYPES_H\n#include <string>\n#include <vector>\nnamespace klee {\n struct ExecutionStats {\n std::string llvm_inst_str;\n std::string file_loc;\n uint64_t instructions_cnt;\n \n int64_t queryCost_us;\n int64_t queryCost_inc...
217
10
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 31.36, "nodes": 137, "errors": 0, "source_hash": "62dd28e9ac146bd6fabf5403fe8bfb52eeb5cc05a4794529d11bf40acf40a214", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
80,726
c
/*- * builtin.c * This file is part of libmetha * * Copyright (c) 2008, <NAME> <<EMAIL>> * * 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. * ...
27.69
235
(translation_unit) "/*-\n * builtin.c\n * This file is part of libmetha\n *\n * Copyright (c) 2008, <NAME> <<EMAIL>>\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...
2,027
0
{"language": "c", "success": true, "metadata": {"lines": 235, "avg_line_length": 27.69, "nodes": 1312, "errors": 0, "source_hash": "dc6e5edce93aa8ed77f5d24b714538f3ff7e146a77af1edbbdb63111ab389249", "categorized_nodes": 904}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
80,727
c
#include <pthread.h> #include <stdio.h> #include <stdlib.h> int A = 100; pthread_mutex_t count_mutex; void *My_Func(void *idp) { long my_id = (long)idp; pthread_mutex_lock(&count_mutex); printf("Starting watch_count(): thread %ld\n", my_id); A++; printf("Hi! Welcome\n Value of A is %d\n",A); pthread_mutex...
28.27
33
(translation_unit) "#include <pthread.h>\n#include <stdio.h>\n#include <stdlib.h>\n\nint A = 100;\npthread_mutex_t count_mutex;\n\n\nvoid *My_Func(void *idp) \n{\n long my_id = (long)idp;\n pthread_mutex_lock(&count_mutex);\n printf("Starting watch_count(): thread %ld\n", my_id);\n A++;\n\n printf("Hi! Welcome\n Valu...
391
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 28.27, "nodes": 229, "errors": 0, "source_hash": "a26b4be2918bfbbfc581b8698ac045b043057f78c3c034118b90b3264d62f45e", "categorized_nodes": 138}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
80,728
c
/*------------------------------------------------------------------------- * * parse_metaq.c * POSTGRES C - parser support for meta querying language constructs. These are: * XsltFuncExpr: call to an XSLT function. This is translated into a call to the * generic xslt_process function of postgres. The...
28.58
223
(translation_unit) "/*-------------------------------------------------------------------------\n *\n * parse_metaq.c\n * POSTGRES C - parser support for meta querying language constructs. These are:\n * XsltFuncExpr: call to an XSLT function. This is translated into a call to the\n * generic xslt_process ...
1,599
0
{"language": "c", "success": true, "metadata": {"lines": 223, "avg_line_length": 28.58, "nodes": 990, "errors": 0, "source_hash": "efc0ff35d1e517d144231580a7f61a6204ef276a94603d123626a0240c9fc9a3", "categorized_nodes": 692}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
80,729
c
#include "private.h" static timer linsysTimer; static scs_float totalSolveTime; char * getLinSysMethod(Data * d, Priv * p) { char * tmp = scs_malloc(sizeof(char) * 128); sprintf(tmp, "sparse-direct, nnz in A = %li", (long) d->A->p[d->n]); return tmp; } char * getLinSysSummary(Priv * p, Info * info) { char * str ...
26.03
239
(translation_unit) "#include "private.h"\n\nstatic timer linsysTimer;\nstatic scs_float totalSolveTime;\n\nchar * getLinSysMethod(Data * d, Priv * p) {\n char * tmp = scs_malloc(sizeof(char) * 128);\n sprintf(tmp, "sparse-direct, nnz in A = %li", (long) d->A->p[d->n]);\n return tmp;\n}\n\nchar * getLinSysSummary(Priv *...
2,902
0
{"language": "c", "success": true, "metadata": {"lines": 239, "avg_line_length": 26.03, "nodes": 1839, "errors": 0, "source_hash": "2c41d8657ec2eab676e434d6ec3b8117aaf334344dceaa5d3a2ee036aab3a47d", "categorized_nodes": 1374}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
80,730
c
/* compare258.c -- aligned and unaligned versions of compare258 * Copyright (C) 2020 <NAME> * For conditions of distribution and use, see copyright notice in zlib.h */ #include "zbuild.h" #include "zutil.h" #include "fallback_builtins.h" /* ALIGNED, byte comparison */ static inline uint32_t compare256_c_static(co...
35.44
205
(ERROR) "/* compare258.c -- aligned and unaligned versions of compare258\n * Copyright (C) 2020 <NAME>\n * For conditions of distribution and use, see copyright notice in zlib.h\n */\n\n#include "zbuild.h"\n#include "zutil.h"\n\n#include "fallback_builtins.h"\n\n/* ALIGNED, byte comparison */\nstatic inline uint32_t co...
2,119
18
{"language": "c", "success": true, "metadata": {"lines": 205, "avg_line_length": 35.44, "nodes": 1506, "errors": 0, "source_hash": "021e6a82a70e5f6e841ac0987d0d1d50f4c7b34ed6f669c9b18d83a591774c7f", "categorized_nodes": 902}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "/* compare258.c -- alig...
80,731
c
#ifndef C4D_SYMBOLS_H__ #define C4D_SYMBOLS_H__ enum { // string table definitions GV_MENU_NODE_OPERATOR_STRING = 1000, GV_MENU_NODE_DELETE_STRING, GV_MENU_NODE_RENAME_STRING, GV_MENU_NODE_ENABLE_STRING, GV_MENU_NODE_DISABLE_STRING, GV_MENU_NODE_OPTIMIZE_STRING, GV_MENU_NODE_PACK_NODES_STRING, GV_MENU_NODE_U...
26.89
218
(translation_unit) "#ifndef C4D_SYMBOLS_H__\n#define C4D_SYMBOLS_H__\n\nenum\n{\n // string table definitions\n\n GV_MENU_NODE_OPERATOR_STRING = 1000,\n GV_MENU_NODE_DELETE_STRING,\n GV_MENU_NODE_RENAME_STRING,\n GV_MENU_NODE_ENABLE_STRING,\n GV_MENU_NODE_DISABLE_STRING,\n GV_MENU_NODE_OPTIMIZE_STRING,\n GV_MENU_NODE_P...
650
0
{"language": "c", "success": true, "metadata": {"lines": 218, "avg_line_length": 26.89, "nodes": 434, "errors": 0, "source_hash": "3200ad622fe0a3b3a68e55bcb89e5a8d2292fe25f64479d71b83befb2d705032", "categorized_nodes": 431}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
80,732
c
/******************************************************************************* * (c) 2016 Ledger * (c) 2018 ZondaX GmbH * * 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:...
34.45
56
(translation_unit) "/*******************************************************************************\n* (c) 2016 Ledger\n* (c) 2018 ZondaX GmbH\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...
221
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 34.45, "nodes": 147, "errors": 0, "source_hash": "c5994ae797bbc6a7de0a2128b57e9fe6a878e6b06d22ff8afb3329003ccbd597", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
80,733
c
#include "create_test_suite.h" START_TEST_SUITE("Test that test is test") TEST("Test that 1+1 = 2",(Assert *assert){ Assert_assertTrue(assert,1 + 1 == 2); }); TEST("Test that 2 - 1 = 0",(Assert *assert){ Assert_assertTrue(assert,2 - 1 == 1); }); END_TEST_SUITE
28.89
9
(translation_unit) "#include "create_test_suite.h"\n\nSTART_TEST_SUITE("Test that test is test")\n\nTEST("Test that 1+1 = 2",(Assert *assert){\n Assert_assertTrue(assert,1 + 1 == 2);\n});\n\nTEST("Test that 2 - 1 = 0",(Assert *assert){\n Assert_assertTrue(assert,2 - 1 == 1);\n});\n\nEND_TEST_SUITE\n" (preproc_i...
99
2
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 28.89, "nodes": 50, "errors": 0, "source_hash": "d086d8aab9a510fda0f9cf8a16accef258462454133a0628000308d90ed975d4", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
80,734
c
// // airADViewDelegate.h // airADKit // // Created by <NAME> on 12/26/11. // Copyright (c) 2011 MitianTech. All rights reserved. // #import <Foundation/Foundation.h> @class airADView; @protocol airADViewDelegate <NSObject> @optional #pragma mark Ad Delegate // 当接收到一个广告的时候,会发送该请求。广告在后台会自动刷新.以此作为一次成功请求。 - (void)...
30.24
29
(translation_unit) "//\n// airADViewDelegate.h\n// airADKit\n//\n// Created by <NAME> on 12/26/11.\n// Copyright (c) 2011 MitianTech. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n@class airADView;\n\n@protocol airADViewDelegate <NSObject>\n\n@optional\n#pragma mark Ad Delegate\n\n// 当接收到一个广告的时候,会发...
193
25
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 30.24, "nodes": 125, "errors": 0, "source_hash": "6a9b611d7540c6fe2e74fe78377bdda56f6979a48acdcda66b6309398f62d0f3", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
80,735
c
// // STViewController.h // StorageProject // // Created by JaneXzz on 03/09/2020. // Copyright (c) 2020 JaneXzz. All rights reserved. // @import UIKit; @interface STViewController : UIViewController @end
19.9
10
(translation_unit) "//\n// STViewController.h\n// StorageProject\n//\n// Created by JaneXzz on 03/09/2020.\n// Copyright (c) 2020 JaneXzz. All rights reserved.\n//\n\n@import UIKit;\n\n@interface STViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// STViewController.h" (comment) "// St...
22
5
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.9, "nodes": 10, "errors": 0, "source_hash": "2e14dc91d4d122a03510369e4b48ffd4cbeb861f44219255db818d888cf662c8", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": null...
80,736
c
//--------------------------------------------------------------------------- // Greenplum Database // Copyright (C) 2009 Greenplum, Inc. // // @filename: // CTaskLocalStorage.h // // @doc: // Task-local storage facility; implements TLS to store an instance // of a subclass of CTaskLocalStorageObject by an enum inde...
24
93
(translation_unit) "//---------------------------------------------------------------------------\n// Greenplum Database\n// Copyright (C) 2009 Greenplum, Inc.\n//\n// @filename:\n// CTaskLocalStorage.h\n//\n// @doc:\n// Task-local storage facility; implements TLS to store an instance\n// of a subclass of CTaskLocal...
279
6
{"language": "c", "success": true, "metadata": {"lines": 93, "avg_line_length": 24.0, "nodes": 137, "errors": 0, "source_hash": "3b1d6c7b008573b0874852d7e546cfcf8fe651820cf249a2df58f51286915043", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
80,737
c
/*******************************************************************\ Module: Author: <NAME>, <EMAIL> \*******************************************************************/ #ifndef CPROVER_C_TYPES_H #define CPROVER_C_TYPES_H #include <util/expr.h> #include <irep2/irep2.h> typet index_type(); type2tc index_type2();...
26.56
57
(translation_unit) "/*******************************************************************\\n\nModule:\n\nAuthor: <NAME>, <EMAIL>\n\n\*******************************************************************/\n\n#ifndef CPROVER_C_TYPES_H\n#define CPROVER_C_TYPES_H\n\n#include <util/expr.h>\n#include <irep2/irep2.h>\n\ntypet in...
417
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 26.56, "nodes": 268, "errors": 0, "source_hash": "644bb58256dacb21456cf8609da813f4bafcd64a5c2e9efd8549c6a81465f123", "categorized_nodes": 213}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
80,738
c
/* * QEMU 8253/8254 interval timer emulation * * Copyright (c) 2003-2004 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the ...
37.7
56
(translation_unit) "/*\n * QEMU 8253/8254 interval timer emulation\n *\n * Copyright (c) 2003-2004 <NAME>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, includ...
304
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 37.7, "nodes": 191, "errors": 0, "source_hash": "b76253b32a2c2f684f687c47abbe0a71e545611b23434b48a2894cb5869200e8", "categorized_nodes": 137}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
80,739
c
#pragma once #include "../shaders/ShaderProgram.h" #include "../entities/Camera.h" #include "../utils/Maths.h" #include <gtc/matrix_transform.hpp> class SkyboxShader : public ShaderProgram { public: SkyboxShader(); void loadProjectionMatrix(glm::mat4 matrix); void loadViewMatrix(Camera *ca...
28.09
22
(translation_unit) "#pragma once\n#include "../shaders/ShaderProgram.h"\n#include "../entities/Camera.h"\n#include "../utils/Maths.h"\n\n#include <gtc/matrix_transform.hpp>\n\nclass SkyboxShader : public ShaderProgram\n{\n public:\n SkyboxShader();\n void loadProjectionMatrix(glm::mat4 matrix);\n ...
140
3
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 28.09, "nodes": 86, "errors": 0, "source_hash": "1cb9f7d1a41a555797feae69cff93f2f623396df27e1c04e312faffc934fc8aa", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
80,740
c
/* font.c */ #include <string.h> #include "../tk/tk.h" #include "glaux.h" static GLuint bitmapBase; void auxCreateFont(void) { bitmapBase = glGenLists(256); if (tkCreateBitmapFont(bitmapBase) == GL_FALSE) { auxQuit(); } } void auxDrawStr(char *str) { glPushAttrib(GL_LIST_BIT); glList...
18.27
22
(translation_unit) "/* font.c */\n\n\n#include <string.h>\n#include "../tk/tk.h"\n#include "glaux.h"\n\n\nstatic GLuint bitmapBase;\n\n\nvoid auxCreateFont(void)\n{\n bitmapBase = glGenLists(256);\n if (tkCreateBitmapFont(bitmapBase) == GL_FALSE) {\n auxQuit();\n }\n}\n\nvoid auxDrawStr(char *str)\n{\n\...
134
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 18.27, "nodes": 75, "errors": 0, "source_hash": "1cceb6b48a8058cd5c6d8ae6fcec323a58fcab8d5cd3f02e23d6585c20c132f6", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
80,741
c
// example 02 // // introduces: // - plane scrolling // - formatted output // - environment info // - terminal capabilities #include <notcurses/notcurses.h> int main(void){ struct notcurses_options nopts = { .flags = NCOPTION_NO_ALTERNATE_SCREEN | NCOPTION_SUPPRESS_BANNERS | NCOPTION_PRESERVE_CURSOR | ...
28.8
59
(translation_unit) "// example 02\n//\n// introduces:\n// - plane scrolling\n// - formatted output\n// - environment info\n// - terminal capabilities\n\n#include <notcurses/notcurses.h>\n\nint main(void){\n struct notcurses_options nopts = {\n .flags =\n NCOPTION_NO_ALTERNATE_SCREEN |\n NCOPTION_SUPPRESS_BANNERS |...
439
0
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 28.8, "nodes": 237, "errors": 0, "source_hash": "4d349fa4582def704862b4b859d38d094ff9336a386ff4309b6cc7b8d8dc58a4", "categorized_nodes": 163}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
80,742
c
#pragma once #include "CoreMinimal.h" #include "DamageBonusBase.h" #include "TagDamageBonus.generated.h" class UDamageTag; UCLASS(EditInlineNew) class UTagDamageBonus : public UDamageBonusBase { GENERATED_BODY() public: protected: UPROPERTY(BlueprintReadWrite, EditAnywhere) TArray<UDamageTag*> Tags; ...
21
16
(translation_unit) "#pragma once\n#include "CoreMinimal.h"\n#include "DamageBonusBase.h"\n#include "TagDamageBonus.generated.h"\n\nclass UDamageTag;\n\nUCLASS(EditInlineNew)\nclass UTagDamageBonus : public UDamageBonusBase {\n GENERATED_BODY()\npublic:\nprotected:\n UPROPERTY(BlueprintReadWrite, EditAnywhere)\n ...
87
5
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 21.0, "nodes": 47, "errors": 0, "source_hash": "8e01d332b672b9f0f9a8e046bb11ef8abee8455e1bfa0d087406ca0871a1f9f8", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
80,743
c
#include "consola.h" void* manejar_consola(){ while (1) { char* entrada = string_new(); entrada = leerlinea(); if(string_equals_ignore_case(entrada,"EXIT")){ printf("Finalizando el programa...\n"); free(entrada); finalizar(socket_cliente_app); return -1; } ejecutarComando(entrada); free(entr...
27.07
128
(translation_unit) "#include "consola.h"\n\nvoid* manejar_consola(){\n\n while (1) {\n char* entrada = string_new();\n entrada = leerlinea();\n if(string_equals_ignore_case(entrada,"EXIT")){\n printf("Finalizando el programa...\n");\n free(entrada);\n finalizar(socket_cliente_app);\n return -1;\n }\n ejec...
1,073
0
{"language": "c", "success": true, "metadata": {"lines": 128, "avg_line_length": 27.07, "nodes": 559, "errors": 0, "source_hash": "0fddfd3cdbf7fb309bbf8d52e444a9de2c8fc34a2a01a2cc67fd0e3a91183953", "categorized_nodes": 396}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
80,744
c
#pragma once #include <vapor/VolumeAlgorithm.h> #include <vapor/Texture.h> #include <vapor/MapperFunction.h> namespace VAPoR { //! \class VolumeGLSL //! \ingroup Public_Render //! //! \brief Volume rendering algorithms using GLSL //! //! \author <NAME> //! \date July, 2020 class VolumeGLSL : public VolumeAlgorithm ...
37.87
38
(translation_unit) "#pragma once\n\n#include <vapor/VolumeAlgorithm.h>\n#include <vapor/Texture.h>\n#include <vapor/MapperFunction.h>\n\nnamespace VAPoR {\n\n//! \class VolumeGLSL\n//! \ingroup Public_Render\n//!\n//! \brief Volume rendering algorithms using GLSL\n//!\n//! \author <NAME>\n//! \date July, 2020\n\nclass ...
375
16
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 37.87, "nodes": 252, "errors": 0, "source_hash": "ea5b92f8aab658beef80238c1b0a1c5579bf962d6f7f382e223dfc8d5821f9e1", "categorized_nodes": 153}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
80,745
c
/** ****************************************************************************** * @file Display/LTDC_PicturesFromSDCard/Src/fatfs_storage.c * @author MCD Application Team * @brief This file includes the Storage (FatFs) driver for the STM32756G-EVAL * application. **************************...
20.73
248
(translation_unit) "/**\n ******************************************************************************\n * @file Display/LTDC_PicturesFromSDCard/Src/fatfs_storage.c\n * @author MCD Application Team\n * @brief This file includes the Storage (FatFs) driver for the STM32756G-EVAL\n * application.\n ...
1,019
2
{"language": "c", "success": true, "metadata": {"lines": 248, "avg_line_length": 20.73, "nodes": 573, "errors": 0, "source_hash": "525e0f629b68cb12268c89fe498c5f37c6e64d3d17c71f61dc9b2c8110065f1d", "categorized_nodes": 381}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
80,746
c
// // FLEXColor.h // FLEX // // Created by <NAME> on 6/18/19. // Copyright © 2019 Flipboard. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface FLEXColor : NSObject // Background colors, from intense to less intense + (UIColor *)primaryBackground...
29.59
29
(translation_unit) "//\n// FLEXColor.h\n// FLEX\n//\n// Created by <NAME> on 6/18/19.\n// Copyright © 2019 Flipboard. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface FLEXColor : NSObject\n\n// Background colors, from intense to less int...
207
7
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 29.59, "nodes": 104, "errors": 0, "source_hash": "bc753d8c7f3c5e933946e5b48e115692d7e83e90a4fc3006e9f69d829e1dccbe", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <...
80,747
c
/* Copyright 2018 JDCLOUD.COM 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 in writing, software distribu...
41
41
(translation_unit) "/* Copyright 2018 JDCLOUD.COM\n\nLicensed under the Apache License, Version 2.0 (the "License");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp:#www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to i...
174
25
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 41.0, "nodes": 121, "errors": 0, "source_hash": "ea3b699c344edffc6ad85d7ba931f883a412eb61d918b8e9e96316d55ce51a05", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
80,748
c
// This source file is part of the polarphp.org open source project // // Copyright (c) 2017 - 2018 polarphp software foundation // Copyright (c) 2017 - 2018 zzu_softboy <<EMAIL>> // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://polarphp.org/LICENSE.txt for license information // S...
35.04
101
(translation_unit) "// This source file is part of the polarphp.org open source project\n//\n// Copyright (c) 2017 - 2018 polarphp software foundation\n// Copyright (c) 2017 - 2018 zzu_softboy <<EMAIL>>\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\n// See https://polarphp.org/LICENSE.txt fo...
604
30
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 35.04, "nodes": 331, "errors": 0, "source_hash": "77a07a6d852194ad48673e985579bfdade096833cd0979f18f5839870301e1b5", "categorized_nodes": 251}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
80,749
c
#pragma once #include <stddef.h> #ifdef __cplusplus extern "C" { #endif typedef void* tb_context_t; /*! the context-from type * * @ctx the from-context * @priv the passed user private data */ struct tb_context_from_t { tb_context_t ctx; const void* priv; } ; /*! the context entry function type * ...
24.73
40
(translation_unit) "#pragma once\n\n#include <stddef.h>\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\ntypedef void* tb_context_t;\n\n/*! the context-from type\n *\n * @ctx the from-context\n * @priv the passed user private data\n */\nstruct tb_context_from_t {\n tb_context_t ctx;\n const void* priv;\n} ;\n\...
113
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 24.73, "nodes": 76, "errors": 0, "source_hash": "356878164bc073311e6afdce4d2a5322193c22063efde396eceef7dc5a2cec4c", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
80,750
c
/* * RoboPeak Project * Copyright 2009 - 2013 * * RPOS - Byte Operations * */ #pragma once // byte swapping operations for compiling time #define __static_byteswap_16(x) ((_u16)( \ (((_u16)(x) & (_u16)0x00FFU) << 8) | \ (((_u16)(x) & (_u16)0xFF00U) >> 8))) #define __static_byteswap_32(x) ((_u32)(...
26.76
76
(translation_unit) "/*\n * RoboPeak Project\n * Copyright 2009 - 2013\n * \n * RPOS - Byte Operations\n *\n */\n\n#pragma once\n\n// byte swapping operations for compiling time\n\n#define __static_byteswap_16(x) ((_u16)( \\n (((_u16)(x) & (_u16)0x00FFU) << 8) | \\n (((_u16)(x) & (_u16)0xFF00U) >> 8)))\n\n#def...
387
0
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 26.76, "nodes": 242, "errors": 0, "source_hash": "98ba6ae1a271767450764d1fbe77963c685345a5a933056e8b2fa6fb73af3a68", "categorized_nodes": 176}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
80,751
c
#pragma once #ifndef QMK_KEYS_PER_SCAN #define QMK_KEYS_PER_SCAN 4 #endif // QMK KEYS PER SCAN // this makes it possible to do rolling combos (zx) with keys that // convert to other keys on hold (z becomes ctrl when you hold it, // and when this option isn't enabled, z rapidly followed by x // actually sends Ctrl-x...
30.77
26
(translation_unit) "#pragma once\n\n#ifndef QMK_KEYS_PER_SCAN\n #define QMK_KEYS_PER_SCAN 4\n#endif // QMK KEYS PER SCAN\n\n// this makes it possible to do rolling combos (zx) with keys that\n// convert to other keys on hold (z becomes ctrl when you hold it,\n// and when this option isn't enabled, z rapidly followed b...
82
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 30.77, "nodes": 67, "errors": 0, "source_hash": "3acc863bebe011934fda55d181a0b031bcfe0fd7d72c08948aa064e1281c4f40", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
80,752
c
Stub content: Drivers/CMSIS/DSP_Lib/Source/ControllerFunctions/arm_pid_init_q15.c
40
2
(translation_unit) "Stub content:\nDrivers/CMSIS/DSP_Lib/Source/ControllerFunctions/arm_pid_init_q15.c\n" (declaration) "Stub content:\nDrivers/CMSIS/DSP_Lib/Source/ControllerFunctions/arm_pid_init_q15.c" (type_identifier) "Stub" (ERROR) "content:\nDrivers/CMSIS/DSP_Lib/Source/ControllerFunctions/arm_pid_init...
20
1
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 40.0, "nodes": 16, "errors": 0, "source_hash": "c6be0044e5fd58c8c32e9ea1aedfcbfbc86cf7ab23b75a0d20dadd9dbf0b7da7", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "Stub content...
80,753
c
// // MotionViewController.h // Never Stop // // Created by dllo on 16/10/20. // Copyright © 2016年 JDT. All rights reserved. // #import <UIKit/UIKit.h> @interface MotionViewController : UIViewController @end
20.2
10
(translation_unit) "//\n// MotionViewController.h\n// Never Stop\n//\n// Created by dllo on 16/10/20.\n// Copyright © 2016年 JDT. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface MotionViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// MotionViewController.h" (comment) ...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.2, "nodes": 10, "errors": 0, "source_hash": "ede68866f7e17f74f590081ecc646cb41408acd6772a08f3d28dca2bc0eb183e", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKit...
80,754
c
// // RCRTCAudioOutputStream.h // RongRTCLib // // Created by RongCloud on 2020/6/2. // Copyright © 2020 RongCloud. All rights reserved. // #import "RCRTCOutputStream.h" NS_ASSUME_NONNULL_BEGIN @interface RCRTCAudioOutputStream : RCRTCOutputStream /*! 初始化 @discussion 初始化 @warning 请勿调用, 仅供 SDK 内部调用 @...
14.47
38
(translation_unit) "//\n// RCRTCAudioOutputStream.h\n// RongRTCLib\n//\n// Created by RongCloud on 2020/6/2.\n// Copyright © 2020 RongCloud. All rights reserved.\n//\n\n#import "RCRTCOutputStream.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface RCRTCAudioOutputStream : RCRTCOutputStream\n\n/*!\n 初始化\n \n @discussion\n 初...
53
6
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 14.47, "nodes": 31, "errors": 0, "source_hash": "7bb825b514878783c41d9535cdfc736cbb7c43507ed2467a9089d5d7c99dad3c", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"...
80,755
c
/*************************************************************************\ * Copyright (C) <NAME>, 2014. * * * * This program is free software. You may use, modify, and redistribute it * * under the terms of the ...
44.06
31
(translation_unit) "/*************************************************************************\\n* Copyright (C) <NAME>, 2014. *\n* *\n* This program is free software. You may use, modify, and redistribute it *\n*...
244
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 44.06, "nodes": 140, "errors": 0, "source_hash": "6e57adf394d215a783ac24183d11757ef24a8bd9c51f8ede9caaa729f39159c3", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ...
80,756
c
/* -*- c-file-style: "linux" -*- Weiss 1/1999 Batch utilities for rsync. */ #include "rsync.h" #include <time.h> extern int am_sender; extern int eol_nulls; extern int recurse; extern int xfer_dirs; extern int preserve_links; extern int preserve_hard_links; extern int preserve_devices; extern int preserve_uid...
25.18
211
(translation_unit) "/* -*- c-file-style: "linux" -*-\n\n Weiss 1/1999\n Batch utilities for rsync.\n\n*/\n\n#include "rsync.h"\n#include <time.h>\n\nextern int am_sender;\nextern int eol_nulls;\nextern int recurse;\nextern int xfer_dirs;\nextern int preserve_links;\nextern int preserve_hard_links;\nextern int prese...
2,039
0
{"language": "c", "success": true, "metadata": {"lines": 211, "avg_line_length": 25.18, "nodes": 1151, "errors": 0, "source_hash": "0a965edca82fb2887bee030bbceef1365b5c152bcad9091d10957bc223eb8424", "categorized_nodes": 821}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
80,757
c
// // GreendeckiOSSDK.h // GreendeckiOSSDK // // Created by <NAME> on 18/06/17. // Copyright © 2017 Greendeck. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for GreendeckiOSSDK. FOUNDATION_EXPORT double GreendeckiOSSDKVersionNumber; //! Project version string for GreendeckiOSSDK. FOU...
39.38
13
(translation_unit) "//\n// GreendeckiOSSDK.h\n// GreendeckiOSSDK\n//\n// Created by <NAME> on 18/06/17.\n// Copyright © 2017 Greendeck. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n//! Project version number for GreendeckiOSSDK.\nFOUNDATION_EXPORT double GreendeckiOSSDKVersionNumber;\n\n//! Project versio...
33
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 39.38, "nodes": 15, "errors": 0, "source_hash": "e4b91a1bc436b6b50bf4de07e1147682316a6929ee63ebd6c92578172f29fc5b", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
80,758
c
/***************************************************************************** * (C) Copyright 2017 AND!XOR LLC (http://andnxor.com/). * * PROPRIETARY AND CONFIDENTIAL UNTIL AUGUST 1ST, 2017 then, * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance ...
35.2
94
(translation_unit) "/*****************************************************************************\n * (C) Copyright 2017 AND!XOR LLC (http://andnxor.com/).\n *\n * PROPRIETARY AND CONFIDENTIAL UNTIL AUGUST 1ST, 2017 then,\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this ...
426
0
{"language": "c", "success": true, "metadata": {"lines": 94, "avg_line_length": 35.2, "nodes": 343, "errors": 0, "source_hash": "6270a81effaca136c738781069f5f0505cc47476d4ad6789347dbf6f163ec0a7", "categorized_nodes": 170}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
80,759
c
#ifndef __HANDLER__ #define __HANDLER__ void sig_handler(); #define _GNU_SOURCE ; #endif
16.8
5
(translation_unit) "#ifndef __HANDLER__\n#define __HANDLER__\n\nvoid sig_handler();\n\n#define _GNU_SOURCE ;\n\n#endif\n" (preproc_ifdef) "#ifndef __HANDLER__\n#define __HANDLER__\n\nvoid sig_handler();\n\n#define _GNU_SOURCE ;\n\n#endif" (#ifndef) "#ifndef" (identifier) "__HANDLER__" (preproc_def) "#defi...
20
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 16.8, "nodes": 15, "errors": 0, "source_hash": "1335d212969823465dc557eae112f72ff80c854fbf17d369eef6ff93c3352426", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __H...
80,760
c
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. #pragma once #include "CoreMinimal.h" #include "UObject/ObjectMacros.h" #include "BoneContainer.h" #include "BonePose.h" #include "BoneControllers/AnimNode_SkeletalControlBase.h" #include "AnimNode_CopyBone.generated.h" class USkeletalMeshComponent; /** ...
43.04
47
(translation_unit) "// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.\n\n#pragma once\n\n#include "CoreMinimal.h"\n#include "UObject/ObjectMacros.h"\n#include "BoneContainer.h"\n#include "BonePose.h"\n#include "BoneControllers/AnimNode_SkeletalControlBase.h"\n#include "AnimNode_CopyBone.generated.h"\n\nclass...
322
8
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 43.04, "nodes": 185, "errors": 0, "source_hash": "e2d76106f921ee32886cfe6835704ced89439b00bc336b564b9cacff861f6c89", "categorized_nodes": 145}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
80,761
c
#ifndef PERMUTATIONCRSOPX_H #define PERMUTATIONCRSOPX_H namespace Permutation { /** * \ingroup genotypes permutation * \brief Permutation genotype: OPX crossover operator (see e.g. itc.ktu.lt/itc342/Misev342.pdf) */ class PermutationCrsOPX : public CrossoverOp { public: bool mate(GenotypeP gen1, GenotypeP gen2, ...
24.95
19
(translation_unit) "#ifndef PERMUTATIONCRSOPX_H\n#define PERMUTATIONCRSOPX_H\n\n\nnamespace Permutation\n{\n\n/**\n * \ingroup genotypes permutation\n * \brief Permutation genotype: OPX crossover operator (see e.g. itc.ktu.lt/itc342/Misev342.pdf)\n */\nclass PermutationCrsOPX : public CrossoverOp\n{\npublic:\n bool mat...
82
2
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 24.95, "nodes": 52, "errors": 0, "source_hash": "3f742cc29681d1875310a92cc3f2ac1f7d2886c7d545d1b75d75309887b37270", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
80,762
c
// // HW.H // General hardware definitions // #ifndef HW_H #define HW_H #define APB1_FREQ 84000000 #define SAMPLE_FREQ 44000 //Define the 12 bit DAC converter's range #define DAC_MIN 0 #define DAC_MID (1<<11) //Middle #define DAC_MAX ((1<<12) - 1) #endif //HW_H
20.36
14
(translation_unit) "//\n// HW.H\n// General hardware definitions\n//\n\n#ifndef HW_H\n#define HW_H\n\n#define APB1_FREQ 84000000\n#define SAMPLE_FREQ 44000\n\n//Define the 12 bit DAC converter's range\n#define DAC_MIN 0\n#define DAC_MID (1<<11) //Middle\n#define DAC_MAX ((1<<12) - 1)...
34
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 20.36, "nodes": 27, "errors": 0, "source_hash": "173f450777d42e211aae98f0f3803ccd9656db393363c654202570ee4c64858a", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
80,763
c
30 mtime=1440116301.354479277 30 atime=1440176542.689246032 30 ctime=1440177385.521329412
29
3
(translation_unit) "30 mtime=1440116301.354479277\n30 atime=1440176542.689246032\n30 ctime=1440177385.521329412\n" (ERROR) "30 mtime=1440116301.354479277\n30 atime=1440176542.689246032\n30 ctime=1440177385.521329412" (number_literal) "30" (assignment_expression) "mtime=1440116301.354479277\n30 atime=144017654...
17
2
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 29.0, "nodes": 16, "errors": 0, "source_hash": "7b8ae4053eec0a5e749ff805020c3e823b6bfe45a80fbe7d89a4545163bf94d6", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "30 mtime=144011630...
80,764
c
// Copyright (c) 2014 Adafruit Industries // Author: <NAME> // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, m...
35.64
264
(translation_unit) "// Copyright (c) 2014 Adafruit Industries\n// Author: <NAME>\n\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the "Software"), to deal\n// in the Software without restriction, including without limitation the ...
1,964
0
{"language": "c", "success": true, "metadata": {"lines": 264, "avg_line_length": 35.64, "nodes": 1115, "errors": 0, "source_hash": "c8318661642a9d813aaa8878456a5c4a3db498707a04c730c846baa3972bf58e", "categorized_nodes": 796}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
80,765
c
#pragma once namespace StringExt { using VM = RE::BSScript::IVirtualMachine; using StackID = RE::VMStackID; using Severity = RE::BSScript::ErrorLogger::Severity; uint32_t CalcCRC32Hash(RE::StaticFunctionTag*, RE::BSFixedString a_str, uint32_t a_start); RE::BSFixedString IntToHexString(RE::StaticFunctionTag*,...
39.17
12
(translation_unit) "#pragma once\n\nnamespace StringExt\n{\n using VM = RE::BSScript::IVirtualMachine;\n using StackID = RE::VMStackID;\n using Severity = RE::BSScript::ErrorLogger::Severity;\n\n\n uint32_t CalcCRC32Hash(RE::StaticFunctionTag*, RE::BSFixedString a_str, uint32_t a_start);\n RE::BSFixedString IntToHex...
149
11
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 39.17, "nodes": 96, "errors": 0, "source_hash": "45fcaa0a3a83bfe36ab0ea30f3d8dbd50ead320d22d98de399b79a55ef19c55d", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
80,766
c
//========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============// // // Purpose: // // $Workfile: $ // $Date: $ // //----------------------------------------------------------------------------- // $Log: $ // // $NoKeywords: $ //==========================================...
24.41
70
(translation_unit) "========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============// \n// \n// Purpose: \n// \n// $Workfile: $ \n// $Date: $ \n// \n//----------------------------------------------------------------------------- \n// $Log: $ \n// \n// $NoKeywords: $ \n//==============...
349
2
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 24.41, "nodes": 218, "errors": 0, "source_hash": "ae659d4ce3d20d78fd8ca6b1daaf62b988ccbbbc11032fe0418258bb778abb86", "categorized_nodes": 143}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "gma onc...
80,767
c
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_ITERATOR_UTIL_H_ #define MOJO_PUBLIC_CPP_BINDINGS_LIB_ITERATOR_UTIL_H_ #include <algorithm> #include "mojo/public/c...
31.48
113
(translation_unit) "// Copyright 2015 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_ITERATOR_UTIL_H_\n#define MOJO_PUBLIC_CPP_BINDINGS_LIB_ITERATOR_UTIL_H_\n\n#include <algorith...
966
46
{"language": "c", "success": true, "metadata": {"lines": 113, "avg_line_length": 31.48, "nodes": 519, "errors": 0, "source_hash": "4bfa70903e3c170ae87b90bb5bf0e957ebc30d6049ad1d8f0a74379a757f5dc6", "categorized_nodes": 353}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
80,768
c
#ifndef _RREF_LIB #define _RREF_LIB #include <stdio.h> struct Matrix { int dim_x, dim_y; double m_stor[1000*1000]; double *mtx[1000]; }; void InitMatrix(struct Matrix *m, int x_dim, int y_dim); void MtxToReducedREForm(struct Matrix * m); #endif
15.71
17
(translation_unit) "#ifndef _RREF_LIB \n#define _RREF_LIB \n \n#include <stdio.h> \n \nstruct Matrix { \n int dim_x, dim_y; \n double m_stor[1000*1000]; \n double *mtx[1000]; \n}; \n \n \nvoid InitMatrix(struct Matrix *m, int x_dim, int y_dim); \n \nvoid MtxToReducedREForm(struct Matrix * m); \n \n#endif"...
83
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 15.71, "nodes": 62, "errors": 0, "source_hash": "11a1e58f175845171a6d8a4c4606b1fa2dff73b75419655330c908b06be91dbd", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
80,769
c
#include <stdlib.h> #include <stdio.h> #include <assert.h> #ifndef _Stack_h struct Node; //typedef struct Node *ptr_to_node; //typedef ptr_to_node Stack; typedef struct Node { int value; struct Node *next; } Node, *Stack; int is_empty(Stack s); Stack create_stack(); void dispose_stack(Stack s); void make_em...
21.55
74
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n#include <assert.h>\n\n#ifndef _Stack_h\n\nstruct Node;\n//typedef struct Node *ptr_to_node;\n//typedef ptr_to_node Stack;\n\ntypedef struct Node {\n int value;\n struct Node *next;\n} Node, *Stack;\n\nint is_empty(Stack s);\nStack create_stack();\nvoid...
659
0
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 21.55, "nodes": 408, "errors": 0, "source_hash": "ed8bc03afb7155168788a878caad0a8c06a21c3da1e1e8dc7bb9de8d55c17b0c", "categorized_nodes": 298}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
80,770
c
/* * Copyright (c) 2020 Demant * * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr.h> #define BT_DBG_ENABLED IS_ENABLED(CONFIG_BT_DEBUG_HCI_DRIVER) #define LOG_MODULE_NAME bt_ctlr_ull_peripheral_iso #include "common/log.h" #include "hal/debug.h" uint8_t ll_cis_accept(uint16_t handle) { ARG_UNUSED(handle...
19.41
29
(translation_unit) "/*\n * Copyright (c) 2020 Demant\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\n#include <zephyr.h>\n\n#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BT_DEBUG_HCI_DRIVER)\n#define LOG_MODULE_NAME bt_ctlr_ull_peripheral_iso\n#include "common/log.h"\n#include "hal/debug.h"\n\nuint8_t ll_cis_accept(uint...
119
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 19.41, "nodes": 70, "errors": 0, "source_hash": "e1b6891bb6d90cfd95bb4755167a868fc346b65d76f350544c4a506748f80194", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
80,771
c
#include "b.h" int main(void) { (void) do_b(50); return 0; }
10.5
6
(translation_unit) "#include "b.h"\n\nint main(void)\n{\n (void) do_b(50);\n return 0;\n}\n" (preproc_include) "#include "b.h"\n" (#include) "#include" (string_literal) ""b.h"" (") """ (string_content) "b.h" (") """ (function_definition) "int main(void)\n{\n (void) do_b(50);\n ...
36
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 10.5, "nodes": 19, "errors": 0, "source_hash": "d8088a9d7cbce7052090883d858feca7d53fc8872c435f254e76f1b64570c303", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
80,772
c
#ifndef DEFS_H #define DEFS_H #include <wx/wx.h> extern wxColourDatabase* wxTheColourDatabase; enum MainFrameMenuEvents { ID_NewCanvas = wxID_HIGHEST, ID_SaveCanvas, ID_ExportCanvas, ID_LoadCanvas, ID_ResetWorkspace, ID_LoadConfiguration, ID_ResetConfiguration, }; enum CanvasMenuEvents { ID_ToggleWire...
35.69
35
(translation_unit) "#ifndef DEFS_H\n#define DEFS_H\n#include <wx/wx.h>\nextern wxColourDatabase* wxTheColourDatabase;\nenum MainFrameMenuEvents\n{\n ID_NewCanvas = wxID_HIGHEST,\n ID_SaveCanvas,\n ID_ExportCanvas,\n ID_LoadCanvas,\n\n ID_ResetWorkspace,\n ID_LoadConfiguration,\n ID_ResetConfiguration,\n};\n\nenu...
120
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 35.69, "nodes": 99, "errors": 0, "source_hash": "88580b33d7b4e7996990a6bb3b92a9dcc459f836c7056a38128f0bc4e34435ea", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
80,773
c
#ifndef _TIME_H #define _TIME_H #ifdef __cplusplus extern "C" { #endif #define CLOCK_MONOTONIC 1 typedef long int time_t; typedef int clockid_t; struct timespec { time_t tv_sec; long tv_nsec; }; int clock_gettime(clockid_t clock_id, struct timespec *tp); int printf(const char *format, ...); #ifdef __cpl...
16.63
19
(translation_unit) "#ifndef _TIME_H\n#define _TIME_H\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n#define CLOCK_MONOTONIC 1\n\ntypedef long int time_t;\n\ntypedef int clockid_t;\n\nstruct timespec {\n time_t tv_sec;\n long tv_nsec;\n};\n\nint\nclock_gettime(clockid_t clock_id, struct timespec *tp);\n\nint print...
96
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 16.63, "nodes": 69, "errors": 0, "source_hash": "b4c369595122355e4ae6ca52e6fe654030708a48b91d278babbf89f73d3e3a51", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
80,774
c
#pragma once #include "system/Settings.h" NAMESPACE_SPH_BEGIN enum class AttractorSettingsId { /// String identifier of the attractor LABEL = 0, /// If true, the attractor absorbs any particle that falls below the attractor's radius. BLACK_HOLE = 1, /// Texture VISUALIZATION_TEXTURE = 100, ...
30.9
30
(translation_unit) "#pragma once\n\n#include "system/Settings.h"\n\nNAMESPACE_SPH_BEGIN\n\nenum class AttractorSettingsId {\n /// String identifier of the attractor\n LABEL = 0,\n\n /// If true, the attractor absorbs any particle that falls below the attractor's radius.\n BLACK_HOLE = 1,\n\n /// Texture\...
188
11
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 30.9, "nodes": 121, "errors": 0, "source_hash": "c41c3f4607ac24a1a6f1612ad37874f98d9941ee8e76e4d6edb20092c58fadf7", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
80,775
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* env_utils.c :+: :+: :+: ...
24
74
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* env_utils.c ...
518
0
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 24.0, "nodes": 312, "errors": 0, "source_hash": "6419078e769d6a66aa7e5b58428209ddb5ff2151546417256e65727d4e587e67", "categorized_nodes": 202}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
80,776
c
#include "PX_LiveFramework.h" px_bool PX_LiveFrameworkInitialize(px_memorypool *mp,PX_LiveFramework *plive) { plive->mp=mp; if(!PX_VectorInitialize(mp,&plive->animation,sizeof(PX_LiveAnimation),0))return PX_FALSE; if(!PX_VectorInitialize(mp,&plive->layers,sizeof(PX_LiveLayer),1))return PX_FALSE; return PX_TRUE; } ...
29.65
23
(translation_unit) "#include "PX_LiveFramework.h"\npx_bool PX_LiveFrameworkInitialize(px_memorypool *mp,PX_LiveFramework *plive)\n{\n plive->mp=mp;\n if(!PX_VectorInitialize(mp,&plive->animation,sizeof(PX_LiveAnimation),0))return PX_FALSE;\n if(!PX_VectorInitialize(mp,&plive->layers,sizeof(PX_LiveLayer),1))return PX_FA...
207
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 29.65, "nodes": 125, "errors": 0, "source_hash": "49b6f04fdef6683d605fc0d374d83abcb68cba68083009ce1c9cdddf596fb4d5", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
80,777
c
@import UIKit; NS_ASSUME_NONNULL_BEGIN @interface NSString (WMFExtras) /// @return A substring of the receiver going up to @c index, or @c length, whichever is shorter. - (NSString *)wmf_safeSubstringToIndex:(NSUInteger)index; /// @return A substring of the receiver starting at @c index or an empty string if the rec...
50.56
32
(translation_unit) "@import UIKit;\n\nNS_ASSUME_NONNULL_BEGIN\n@interface NSString (WMFExtras)\n\n/// @return A substring of the receiver going up to @c index, or @c length, whichever is shorter.\n- (NSString *)wmf_safeSubstringToIndex:(NSUInteger)index;\n\n/// @return A substring of the receiver starting at @c index o...
324
28
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 50.56, "nodes": 206, "errors": 0, "source_hash": "95370035a82596a95c42b6f72c397e00ca50dda48146f958e253f936e7b2d5e7", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": ...
80,778
c
#include <brutal/mem.h> #if defined(__x86_64__) || defined(__x86_32__) void __stosb_set(void *d, uint8_t s, size_t c) { asm volatile( "rep stosb" : "=D"(d), "=c"(c) : "0"(d), "a"(s), "1"(c) : "memory"); } #endif void *mem_set(void *s, uint8_t c, size_t n) { #if defined(__x86_64_...
19.75
24
(translation_unit) "#include <brutal/mem.h>\n\n#if defined(__x86_64__) || defined(__x86_32__)\n\nvoid __stosb_set(void *d, uint8_t s, size_t c)\n{\n asm volatile(\n "rep stosb"\n : "=D"(d), "=c"(c)\n : "0"(d), "a"(s), "1"(c)\n : "memory");\n}\n\n#endif\n\nvoid *mem_set(void *s, uint8_t c,...
215
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 19.75, "nodes": 128, "errors": 0, "source_hash": "5ca8d1847f186f8f35439c59f41d9a6fa72a67bafd71acd64e0725d378515603", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
80,779
c
/* B W C R O P . C * BRL-CAD * * Copyright (c) 1986-2019 United States Government as represented by * the U.S. Army Research Laboratory. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as ...
27.2
248
(translation_unit) "/* B W C R O P . C\n * BRL-CAD\n *\n * Copyright (c) 1986-2019 United States Government as represented by\n * the U.S. Army Research Laboratory.\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public...
1,984
0
{"language": "c", "success": true, "metadata": {"lines": 248, "avg_line_length": 27.2, "nodes": 1162, "errors": 0, "source_hash": "d37fbd3ab9a5cf9ca08ffe3ff2bc355df212b27e32aab82f12f6279ba9594f9e", "categorized_nodes": 863}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
80,780
c
#pragma once #ifdef _MSC_VER #ifdef _CStringManagerAPI #define CStringManagerAPI _declspec(dllimport) #else #define CStringManagerAPI _declspec(dllexport) #endif #else #if defined(__GNUC__) && __GNUC__ >= 4 #define CStringManagerAPI __attribute__ ((visibility("default"))) #e...
25.79
14
(translation_unit) "#pragma once\n\n#ifdef _MSC_VER\n #ifdef _CStringManagerAPI\n #define CStringManagerAPI _declspec(dllimport)\n #else\n #define CStringManagerAPI _declspec(dllexport)\n #endif\n#else\n #if defined(__GNUC__) && __GNUC__ >= 4\n #define CStringManagerAPI __attribute__ ((...
48
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 25.79, "nodes": 45, "errors": 0, "source_hash": "b7ed8fc9cd143b33524601d26af5d21409ba86eee6d9244ae59ecdbb6c23bc28", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
80,781
c
/* * DataLayoutHelper.h * * Created on: 2017年6月22日 * Author: kame */ #ifndef HEADERS_DATALAYOUTHELPER_H_ #define HEADERS_DATALAYOUTHELPER_H_ #include <llvm/IR/DataLayout.h> #include "AnalysisStructHeaders.h" class DataLayoutHelper{ const DataLayout* DL; GlobalContext * globalContext; std::mutex ssrLock...
29.27
33
(translation_unit) "/*\n * DataLayoutHelper.h\n *\n * Created on: 2017年6月22日\n * Author: kame\n */\n\n#ifndef HEADERS_DATALAYOUTHELPER_H_\n#define HEADERS_DATALAYOUTHELPER_H_\n\n#include <llvm/IR/DataLayout.h>\n#include "AnalysisStructHeaders.h"\n\nclass DataLayoutHelper{\n const DataLayout* DL;\n GlobalContext *...
242
13
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 29.27, "nodes": 165, "errors": 0, "source_hash": "f14a9973aa3d6edc57f0b8da4df95f905011da6cea93db4de1a1012ab65c755e", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "f HEAD...
80,782
c
// C program to Reverse a Linked List #include<stdio.h> #include<stdlib.h> #include<malloc.h> typedef struct node{ int data; struct node* next; }Node; void push(Node** head_ref,int newdata) { Node* newnode = (Node*)malloc(sizeof(Node)); newnode->data = newdata; newnode->next = (*head_ref); (*head_ref) = newnode...
15.84
56
(translation_unit) "// C program to Reverse a Linked List\n#include<stdio.h>\n#include<stdlib.h>\n#include<malloc.h>\n\ntypedef struct node{\n int data;\n struct node* next;\n}Node;\n\nvoid push(Node** head_ref,int newdata)\n{\n Node* newnode = (Node*)malloc(sizeof(Node));\n newnode->data = newdata;\n newnode->next = (...
413
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 15.84, "nodes": 248, "errors": 0, "source_hash": "4358d6f71a2668bfb34e41dae66645a29e836f0e5445cf384140e9b0aafcdbd3", "categorized_nodes": 172}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
80,783
c
#include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include "tests/sys_mman.h" static void *f(void) { return mmap(NULL, 80 * 1000 * 1024, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); } int main() { void *m = f(); munmap(m, 80 * 1000 *...
19.06
17
(translation_unit) "#include <sys/types.h>\n#include <sys/stat.h>\n#include <fcntl.h>\n#include <unistd.h>\n#include "tests/sys_mman.h"\n\nstatic void *f(void)\n{\n return mmap(NULL, 80 * 1000 * 1024,\n PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,\n -1, 0);\n}\n\nint main()\n{\n void...
110
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 19.06, "nodes": 73, "errors": 0, "source_hash": "bdf3f5419f17cb812792f3267a2f8c0c094bc63028a12433644fefdc091014c3", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
80,784
c
#include <Windows.h> int main(int argc, char** argv) { for (int i = 0; i < 0xFFFF; ++i) { Beep(100, 1000); Sleep(10000); } return 0; }
12
12
(translation_unit) "#include <Windows.h> \n \nint main(int argc, char** argv) \n{ \n for (int i = 0; i < 0xFFFF; ++i) \n { \n Beep(100, 1000); \n Sleep(10000); \n } \n \n return 0; \n}" (preproc_include) "#include <Windows.h> \n" (#include) "#include" (system_lib_string) "<Windows.h>" (function_definition...
69
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 12.0, "nodes": 43, "errors": 0, "source_hash": "74e459b28ec887b67d2645a1884d179b2f67be3f44fd3f49a275cf9913d61822", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
80,785
c
#ifndef _SCSI_SCSI_TCQ_H #define _SCSI_SCSI_TCQ_H #include <linux/blkdev.h> #include <scsi/scsi_cmnd.h> #include <scsi/scsi_device.h> #include <scsi/scsi_host.h> #define MSG_SIMPLE_TAG 0x20 #define MSG_HEAD_TAG 0x21 #define MSG_ORDERED_TAG 0x22 #define MSG_ACA_TAG 0x24 /* unsupported */ #define SCSI_NO_TAG (-1) /...
26.6
153
(translation_unit) "#ifndef _SCSI_SCSI_TCQ_H\n#define _SCSI_SCSI_TCQ_H\n\n#include <linux/blkdev.h>\n#include <scsi/scsi_cmnd.h>\n#include <scsi/scsi_device.h>\n#include <scsi/scsi_host.h>\n\n#define MSG_SIMPLE_TAG 0x20\n#define MSG_HEAD_TAG 0x21\n#define MSG_ORDERED_TAG 0x22\n#define MSG_ACA_TAG 0x24 /* unsupported */...
717
0
{"language": "c", "success": true, "metadata": {"lines": 153, "avg_line_length": 26.6, "nodes": 467, "errors": 0, "source_hash": "9e6e209fa19c28ba4e4af3d0e7080bda6108e627c5eb73758600452490fd4911", "categorized_nodes": 340}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
80,786
c
#pragma once #ifndef _BUILDPACH_H_ #define _BUILDPACH_H_ #include <vector> #include "Angel.h" #include "Recast\Recast.h" using namespace std; struct AStarNode { int iIndex; int iF_score; }; // 估算多边形的面积 void CalculateArea(rcPolyMesh *PolyMesh, int *PolyArea); //计算重心 void CalculateCentre(rcPol...
23.69
48
(translation_unit) "ragma once \n#ifndef _BUILDPACH_H_ \n#define _BUILDPACH_H_ \n \n#include <vector> \n#include "Angel.h" \n#include "Recast\Recast.h" \n \nusing namespace std; \n \nstruct AStarNode \n{ \n int iIndex; \n int iF_score; \n}; \n \n// 估算多边形的面积 \nvoid CalculateArea(rcPolyMesh *PolyMesh, int *PolyArea); \n ...
363
4
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 23.69, "nodes": 274, "errors": 0, "source_hash": "01e061936ca0017aae14c77c722dd2d1232902c3e5118273813331b4c371e5c8", "categorized_nodes": 155}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma o...
80,787
c
#import <Foundation/Foundation.h> #import "BSNullabilityCompat.h" NS_ASSUME_NONNULL_BEGIN /** * A representation of an Objective-C property */ @interface BSProperty : NSObject @property (nonatomic, strong, null_resettable) id injectionKey; @property (nonatomic, strong, readonly) Class returnType; @property (nonat...
36.93
14
(translation_unit) "#import <Foundation/Foundation.h>\n\n#import "BSNullabilityCompat.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n/**\n * A representation of an Objective-C property\n */\n@interface BSProperty : NSObject\n\n@property (nonatomic, strong, null_resettable) id injectionKey;\n@property (nonatomic, strong, readonly) Cl...
117
11
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 36.93, "nodes": 83, "errors": 0, "source_hash": "32b3d68dc1a650e44a1d167593b65176299bc631255eff69d431ef31a058636c", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
80,788
c
/// @version fmh [7c6f0fef29] 2010-10-06 15:54:29 /// @note generated by fmh -infile "C:\rev\src\rpw.sqlite\manifest" -prefix "RPW_SQLITE_" #pragma once #ifndef RPW_SQLITE_MANIFEST_DATE #define RPW_SQLITE_MANIFEST_DATE "2011-06-21 20:45:30.020" #endif
41
6
(translation_unit) "/// @version fmh [7c6f0fef29] 2010-10-06 15:54:29\n/// @note generated by fmh -infile "C:\rev\src\rpw.sqlite\manifest" -prefix "RPW_SQLITE_"\n\n#pragma once\n\n#ifndef RPW_SQLITE_MANIFEST_DATE\n#define RPW_SQLITE_MANIFEST_DATE "2011-06-21 20:45:30.020"\n#endif\n" (comment) "/// @version fmh [7c6f0...
14
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 41.0, "nodes": 11, "errors": 0, "source_hash": "a475f6e7dc1f545accb57c8e0fb71e0423761761c81a2224ea3b43b6f92041de", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once...
80,789
c
#pragma once #include <sys/timerfd.h> #include <chrono> #include "FD.h" namespace fileio { struct TimerFD : FD { TimerFD (int flags = TFD_NONBLOCK, int clockid = CLOCK_MONOTONIC); ~TimerFD() = default; TimerFD(TimerFD& other) = delete; TimerFD& operator=(TimerFD &other) = delete; TimerFD(TimerFD ...
37.35
23
(translation_unit) "#pragma once\n\n#include <sys/timerfd.h>\n#include <chrono>\n#include "FD.h"\n\nnamespace fileio {\n\nstruct TimerFD : FD {\n TimerFD (int flags = TFD_NONBLOCK, int clockid = CLOCK_MONOTONIC);\n ~TimerFD() = default;\n TimerFD(TimerFD& other) = delete;\n TimerFD& operator=(TimerFD &other...
245
13
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 37.35, "nodes": 154, "errors": 0, "source_hash": "0acc5fdba4a111ad1eb8da0dda724e1f4bef502ca4b49a3c48cd234b9360a8c2", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
80,790
c
#include<stdio.h> #include <stdio.h> int sum(int a, int b); int main() { int a = 50, b = 60; int c = sum(a,b); return 0; } int sum(int a, int b) { return a+b; }
12.62
13
(translation_unit) "#include<stdio.h>\n#include <stdio.h>\n\nint sum(int a, int b);\n\nint main()\n{\n int a = 50, b = 60;\n int c = sum(a,b);\n return 0;\n}\n\nint sum(int a, int b)\n{\n return a+b;\n}\n" (preproc_include) "#include<stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>...
86
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 12.62, "nodes": 60, "errors": 0, "source_hash": "88b92c30fbb8ca68b9726e85090af011431829848b638f780134a461bcbe2ce1", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
80,791
c
// OOP244 Workshop 9: Inheritance and Virtual Functions // File: Vehicle.h // Version: 1.0 // Date: Nov 16, 2016 ///////////////////////////////////////////// #ifndef SICT_VEHICLE_ #define SICT_VEHICLE_ #include <iostream> namespace sict { // complete the declaration of ...
23.71
21
(translation_unit) "// OOP244 Workshop 9: Inheritance and Virtual Functions\n// File: Vehicle.h\n// Version: 1.0\n// Date: Nov 16, 2016 \n/////////////////////////////////////////////\n\n#ifndef SICT_VEHICLE_\n#define SICT_VEHICLE_\n\n#include <iostream>\n\nnamespace sict\n{\...
87
4
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 23.71, "nodes": 52, "errors": 0, "source_hash": "006a5dceb4b5572ac3e6309a011288854953642f2176e3795b8f933f102a409d", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
80,792
c
#ifndef KALI_SETTINGS_INCLUDED #define KALI_SETTINGS_INCLUDED #include <windows.h> #include "kali/dbgutils.h" // ............................................................................ struct Settings { void set(const char* name, int value) const { ::RegSetValueEx(handle, name, 0, REG_DWORD...
25.95
100
(translation_unit) "#ifndef KALI_SETTINGS_INCLUDED \n#define KALI_SETTINGS_INCLUDED \n \n#include <windows.h> \n#include "kali/dbgutils.h" \n \n// ............................................................................ \n \nstruct Settings \n{ \n void set(const char* name, int value) const \n { \n ::RegSetValu...
747
25
{"language": "c", "success": true, "metadata": {"lines": 100, "avg_line_length": 25.95, "nodes": 411, "errors": 0, "source_hash": "1835b8eaefe46ed49dc1889c2196fe9bb9f8d541c64f0ea3e6808b6c4ff70ba7", "categorized_nodes": 291}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
80,793
c
/* * Copyright 2017, Data61 * Commonwealth Scientific and Industrial Research Organisation (CSIRO) * ABN 41 687 119 230. * * This software may be distributed and modified according to the terms of * the BSD 2-Clause license. Note that NO WARRANTY is provided. * See "LICENSE_BSD2.txt" for details. * * @TAG(DATA...
35.73
177
(translation_unit) "/*\n * Copyright 2017, Data61\n * Commonwealth Scientific and Industrial Research Organisation (CSIRO)\n * ABN 41 687 119 230.\n *\n * This software may be distributed and modified according to the terms of\n * the BSD 2-Clause license. Note that NO WARRANTY is provided.\n * See "LICENSE_BSD2.txt" f...
1,655
0
{"language": "c", "success": true, "metadata": {"lines": 177, "avg_line_length": 35.73, "nodes": 958, "errors": 0, "source_hash": "d5782c91d9681991a648541f08540e955571d5bc1ef0e2a4adc88572b911ac8e", "categorized_nodes": 671}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
80,794
c
#include <string.h> #include <gc.h> #define New_N(type,n) ((type*)GC_MALLOC((n)*sizeof(type))) #include "wc.h" #ifdef USE_UNICODE #include "ucs.h" #endif wc_option WcOption = { WC_OPT_DETECT_ON, /* auto_detect */ WC_TRUE, /* use_combining */ WC_TRUE, /* use_language_tag */ WC_TRUE, /* ucs_conv */ ...
24.46
155
(translation_unit) "#include <string.h>\n#include <gc.h>\n#define New_N(type,n) ((type*)GC_MALLOC((n)*sizeof(type)))\n\n#include "wc.h"\n#ifdef USE_UNICODE\n#include "ucs.h"\n#endif\n\nwc_option WcOption = {\n WC_OPT_DETECT_ON, /* auto_detect */\n WC_TRUE, /* use_combining */\n WC_TRUE, /* use_language_tag *...
1,306
2
{"language": "c", "success": true, "metadata": {"lines": 155, "avg_line_length": 24.46, "nodes": 822, "errors": 0, "source_hash": "450efc2070b88b11609a62023b69912a96f828c3b111c33e54ac912ddae9c635", "categorized_nodes": 653}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
80,795
c
/***************************************************************************** Licensed to Accellera Systems Initiative Inc. (Accellera) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Accellera licenses...
37.58
78
(translation_unit) "/*****************************************************************************\n\n Licensed to Accellera Systems Initiative Inc. (Accellera) under one or\n more contributor license agreements. See the NOTICE file distributed\n with this work for additional information regarding copyright ownersh...
364
3
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 37.58, "nodes": 221, "errors": 0, "source_hash": "ae7e93fb9e08fc4baba59a9d1980484fbca8cae00ba9cd43889ae730f4fcd888", "categorized_nodes": 156}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ...
80,796
c
#ifndef ADD_TO_ARRAY_FORM_OF_INTEGER_H_ #define ADD_TO_ARRAY_FORM_OF_INTEGER_H_ #include <vector> namespace solution { std::vector<int> addToArrayForm(std::vector<int>& num, int k) { // direct // Runtime: 24 ms, faster than 79.31% of C++ online submissions for Add to Array-Form of Integer. // Memory Usage: 27....
29.72
25
(translation_unit) "#ifndef ADD_TO_ARRAY_FORM_OF_INTEGER_H_\n#define ADD_TO_ARRAY_FORM_OF_INTEGER_H_\n\n#include <vector>\n\nnamespace solution {\n\nstd::vector<int> addToArrayForm(std::vector<int>& num, int k) {\n // direct\n // Runtime: 24 ms, faster than 79.31% of C++ online submissions for Add to Array-Form of In...
219
5
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 29.72, "nodes": 142, "errors": 0, "source_hash": "b11bc90e5a47c1a2701a2f4bb00cfa3b3b98e61e4ab82efed99a79ba04316360", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef ADD_TO...
80,797
c
//////////////////////////////////////////////////////////////////////////// // Module : alife_simulator_header.h // Created : 05.01.2003 // Modified : 12.05.2004 // Author : <NAME> // Description : ALife Simulator header //////////////////////////////////////////////////////////////////////////// #pragma once ...
34.32
22
(translation_unit) "////////////////////////////////////////////////////////////////////////////\n// Module : alife_simulator_header.h\n// Created : 05.01.2003\n// Modified : 12.05.2004\n// Author : <NAME>\n// Description : ALife Simulator header\n//////////////////////////////////////////////////////////////////...
125
5
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 34.32, "nodes": 66, "errors": 0, "source_hash": "082dd3ca16e15c1bd689f5180a0740898b1e59ec360832483bf7f730b815eba5", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
80,798
c
#include "libm.h" float coshf(float x) { union {float f; uint32_t i;} u = {.f = x}; uint32_t w; float t; /* |x| */ u.i &= 0x7fffffff; x = u.f; w = u.i; /* |x| < log(2) */ if (w < 0x3f317217) { if (w < 0x3f800000 - (12<<23)) { FORCE_EVAL(x + 0x1p120f); return 1; } t = expm1f(x)...
14.88
33
(translation_unit) "#include "libm.h" \n \nfloat coshf(float x) \n{ \n union {float f; uint32_t i;} u = {.f = x}; \n uint32_t w; \n float t; \n \n /* |x| */ \n u.i &= 0x7fffffff; \n x = u.f; \n w = u.i; \n \n /* |x| < log(2) */ \n if (w < 0x3f317217) { \n if (w < 0x3f800000 - (12<<23)) { \n FORCE_EVAL(x + 0x1p120f);...
224
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 14.88, "nodes": 141, "errors": 0, "source_hash": "8485eff0fcc133a2baf27116d0c3a5506384d610354119ccbaa78071417ab6fa", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
80,799