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
/* pkg_extract.c - the opkg package management system <NAME> Copyright (C) 2001 University of Southern California This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or...
44.7
23
(translation_unit) "/* pkg_extract.c - the opkg package management system\n\n <NAME>\n\n Copyright (C) 2001 University of Southern California\n\n This program is free software; you can redistribute it and/or\n modify it under the terms of the GNU General Public License as\n published by the Free Software Foun...
124
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 44.7, "nodes": 90, "errors": 0, "source_hash": "c15c8298124e0a8863f9865e7264d4a93c2db867167f7b17f7f3addc04de0276", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef P...
3,300
c
////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2000 Microsoft Corporation // // Module Name: // CClusSvcCreate.h // // Description: // Header file for CClusSvcCreate class. // The CClusSvcCreate class is an action that creates the cluster se...
26.74
103
(translation_unit) "////////////////////////////////////////////////////////////////////////////// \n// \n// Copyright (c) 2000 Microsoft Corporation \n// \n// Module Name: \n// CClusSvcCreate.h \n// \n// Description: \n// Header file for CClusSvcCreate class. \n// The CClusSvcCreate class is an actio...
154
3
{"language": "c", "success": true, "metadata": {"lines": 103, "avg_line_length": 26.74, "nodes": 48, "errors": 0, "source_hash": "a5f103bd0e3c0ae39f86902fe2910523685dcce6eaf7d02bad74cd4bf70e9f0a", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
3,301
c
#ifndef __HERMES_LOG_H__ #define __HERMES_LOG_H__ #include "hermes/Severity.h" #include <memory> #include <sstream> #include <string> #include <vector> namespace hermes { /** * @brief Event message */ class Message { public: Message(std::stringstream &ss); public: // Return the number of lines uint32_t lin...
23.73
45
(translation_unit) "#ifndef __HERMES_LOG_H__\n#define __HERMES_LOG_H__\n\n#include "hermes/Severity.h"\n\n#include <memory>\n#include <sstream>\n#include <string>\n#include <vector>\n\nnamespace hermes\n{\n\n/**\n * @brief Event message\n */\nclass Message\n{\npublic:\n Message(std::stringstream &ss);\n\npublic:\n //...
330
14
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 23.73, "nodes": 187, "errors": 0, "source_hash": "7e1cfd4bbb2b180045e31fe2e0ca4c0645277d80422a37b95ca9a7ed6588270f", "categorized_nodes": 124}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,302
c
/* * Copyright (C) Hisilicon Technologies Co., Ltd. 2016-2019. All rights reserved. * Description: mpi region header file. * Author: Hisilicon multimedia software group * Create: 2016-11-15 */ #ifndef __MPI_REGION_H__ #define __MPI_REGION_H__ #include "hi_comm_region.h" #ifdef __cplusplus #if __cplusplus extern...
42.06
34
(translation_unit) "/*\n * Copyright (C) Hisilicon Technologies Co., Ltd. 2016-2019. All rights reserved.\n * Description: mpi region header file.\n * Author: Hisilicon multimedia software group\n * Create: 2016-11-15\n */\n\n#ifndef __MPI_REGION_H__\n#define __MPI_REGION_H__\n\n#include "hi_comm_region.h"\n\n#ifdef __...
300
2
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 42.06, "nodes": 211, "errors": 0, "source_hash": "68b3d6706664cec9764275b738f54a2a8e8de0314151a5bfa24e89725ca8a3e4", "categorized_nodes": 161}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef __MPI_...
3,303
c
/* -*- C++ -*- ------------------------------------------------------------ Copyright (c) 2007 <NAME> and <NAME> http://cmldev.net/ The Configurable Math Library (CML) is distributed under the terms of the Boost Software License, v1.0 (see cml/LICENSE for details). *-------------------------------------------------...
31.4
265
(translation_unit) "/* -*- C++ -*- ------------------------------------------------------------\n\nCopyright (c) 2007 <NAME> and <NAME> http://cmldev.net/\n\nThe Configurable Math Library (CML) is distributed under the terms of the\nBoost Software License, v1.0 (see cml/LICENSE for details).\n\n *----------------------...
1,508
100
{"language": "c", "success": true, "metadata": {"lines": 265, "avg_line_length": 31.4, "nodes": 927, "errors": 0, "source_hash": "2406fe70300da33c1a90fa96f9341a81de1d89dbf13f41912d7d8a2b82d2b398", "categorized_nodes": 636}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,304
c
#import <UIKit/UIKit.h> FOUNDATION_EXPORT double Pods_SubspecTest_TestsVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_SubspecTest_TestsVersionString[];
40
4
(translation_unit) "#import <UIKit/UIKit.h>\n\n\nFOUNDATION_EXPORT double Pods_SubspecTest_TestsVersionNumber;\nFOUNDATION_EXPORT const unsigned char Pods_SubspecTest_TestsVersionString[];\n\n" (preproc_call) "#import <UIKit/UIKit.h>\n" (preproc_directive) "#import" (preproc_arg) "<UIKit/UIKit.h>" (declarat...
23
1
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 40.0, "nodes": 15, "errors": 0, "source_hash": "d902f88c279dac24ee166a73f5ea4baa2224b8859160addd7e30fb324e387905", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UI...
3,305
c
#include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include "my_socket.h" //char *target_addr="8.8.8.8"; #define INET_ADDR(a,b,c,d) (((((a)*256 + (b))*256 + (c))*256)+(d)) int target_addr=INET_ADDR(172,217,31,164); void bzero(void *buf, int count){ int i; for(i=0;i<count;i++){ ...
23.33
45
(translation_unit) "#include <unistd.h>\n#include <sys/types.h>\n#include <sys/stat.h>\n#include <fcntl.h>\n#include "my_socket.h"\n\n//char *target_addr="8.8.8.8";\n\n#define INET_ADDR(a,b,c,d) (((((a)*256 + (b))*256 + (c))*256)+(d))\nint target_addr=INET_ADDR(172,217,31,164);\nvoid bzero(void *buf, int count){\n int...
416
0
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 23.33, "nodes": 267, "errors": 0, "source_hash": "e0d4111370d762da1f305ae408eb0e839fccc4939f98ff8cc601a965af431769", "categorized_nodes": 184}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,306
c
/** @file Implements functions for calculating the hash of a file. */ #include "file-hash.h" #include <stdlib.h> #include "BLAKE2/blake2.h" #include "CRegion/alloc-growable.h" #include "safe-wrappers.h" #include "error-handling.h" /** Calculates the hash of a file. @param path The full or relative path to the...
32.88
41
(translation_unit) "/** @file\n Implements functions for calculating the hash of a file.\n*/\n\n#include "file-hash.h"\n\n#include <stdlib.h>\n\n#include "BLAKE2/blake2.h"\n#include "CRegion/alloc-growable.h"\n\n#include "safe-wrappers.h"\n#include "error-handling.h"\n\n/** Calculates the hash of a file.\n\n @param p...
259
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 32.88, "nodes": 159, "errors": 0, "source_hash": "904ec1b5033f1e6e458708581d3dc0d8047a22a145989788f9d16d7d8920ff97", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,307
c
#include "scheduler.h" #include "../board.h" #include "../../motor.h" #include "../../util/id_vector.h" #include "../../util/vector.h" #include <pthread.h> struct { pthread_mutex_t lock; utl_vector_t tape; } sch_scheduler = { .lock = PTHREAD_MUTEX_INITIALIZER, .tape = UTL_VECTOR_INITIALIZER(utl_vec...
16.89
133
(translation_unit) "#include "scheduler.h" \n#include "../board.h" \n#include "../../motor.h" \n#include "../../util/id_vector.h" \n#include "../../util/vector.h" \n#include <pthread.h> \n \nstruct { \n \n pthread_mutex_t lock; \n utl_vector_t tape; \n \n} sch_scheduler = { \n .lock = PTHREAD_MUTEX_INITIALIZER, \n .tap...
734
0
{"language": "c", "success": true, "metadata": {"lines": 133, "avg_line_length": 16.89, "nodes": 430, "errors": 0, "source_hash": "954519f86ca15f8fff044b9d7364927307911bd3e7fa2281bb6f9f06bb4229e4", "categorized_nodes": 323}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,308
c
// // OBYModel.h // Observatory // // Created by <NAME> on Oct 5, 2013. // Modified by <NAME> on Feb 26, 2015 // Copyright (c) 2013 <NAME> & <NAME>. All rights reserved. // #import <Foundation/Foundation.h> /** * Your models should extend this class if you want to observe them with Observatory */ @interface O...
28.52
40
(translation_unit) "//\n// OBYModel.h\n// Observatory\n//\n// Created by <NAME> on Oct 5, 2013.\n// Modified by <NAME> on Feb 26, 2015\n// Copyright (c) 2013 <NAME> & <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n/**\n * Your models should extend this class if you want to observe them w...
120
12
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 28.52, "nodes": 71, "errors": 0, "source_hash": "fb856e55f15dc000d73fccbe982b263446d04e78823da44342956c758e0a83c0", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
3,309
c
/* * ************************************************************************** * * Copyright (c) 2022 aproton.tech, Inc. All Rights Reserved * * ************************************************************************** * * @file uvobject.h * @author kuper - <<EMAIL>> * @data 2022-01-16 10:14:27...
39.26
102
(translation_unit) "/*\n * **************************************************************************\n *\n * Copyright (c) 2022 aproton.tech, Inc. All Rights Reserved\n *\n * **************************************************************************\n *\n * @file uvobject.h\n * @author kuper - <<EMAIL>>\n * ...
559
1
{"language": "c", "success": true, "metadata": {"lines": 102, "avg_line_length": 39.26, "nodes": 403, "errors": 0, "source_hash": "4d834bb6c3536d742c7078c305befb3f5cb01a118fa7f476ea3731b152b5d67e", "categorized_nodes": 277}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
3,310
c
#pragma once // stl #include <string> #include <unordered_map> // herramientas #include <utiles/include/IContieneJson.h> namespace scraping { namespace analisis { namespace tecnicas { class IResultadoTecnica : public herramientas::utiles::IContieneJson { public: IResultadoTecnica(); virt...
25.47
51
(translation_unit) "#pragma once \n \n// stl \n#include <string> \n#include <unordered_map> \n \n// herramientas \n#include <utiles/include/IContieneJson.h> \n \nnamespace scraping \n{ \nnamespace analisis \n{ \nnamespace tecnicas \n{ \n \nclass IResultadoTecnica : public herramientas::utiles::IContieneJson \n{ \npubli...
154
7
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 25.47, "nodes": 75, "errors": 0, "source_hash": "d6fd326b9e6a138d15db7eb117154fd9218ac47b0e19fb180add360214a01edb", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
3,311
c
#ifndef ThreadSelfManager_h #define ThreadSelfManager_h #import <React/RCTBridge.h> #import <React/RCTBridge+Private.h> #import <React/RCTEventDispatcher.h> @interface ThreadSelfManager : NSObject <RCTBridgeModule> @property int threadId; @property RCTBridge *parentBridge; @end #endif
27.6
10
(translation_unit) "#ifndef ThreadSelfManager_h\n#define ThreadSelfManager_h\n\n#import <React/RCTBridge.h>\n#import <React/RCTBridge+Private.h>\n#import <React/RCTEventDispatcher.h>\n\n@interface ThreadSelfManager : NSObject <RCTBridgeModule>\n@property int threadId;\n@property RCTBridge *parentBridge;\n@end\n\n#endif...
46
8
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 27.6, "nodes": 40, "errors": 0, "source_hash": "2a08d91dc3648b781be6c1993abd1b6dd143d3349dbf90826777ad5745a66ef4", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef T...
3,312
c
/* * * Copyright 2013 <NAME>, <NAME>, and <NAME>. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
36.5
38
(translation_unit) "/*\n *\n * Copyright 2013 <NAME>, <NAME>, and <NAME>.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *...
192
12
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 36.5, "nodes": 122, "errors": 0, "source_hash": "938d64544de7e733dc40d7505f38dc83453fabc91f7836086bebfc683d64e0c8", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,313
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* print_mutex.c :+: :+: :+: ...
35.82
55
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* print_mutex.c ...
472
12
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 35.82, "nodes": 260, "errors": 0, "source_hash": "c7843edd5a56b3888ddc817f59a293f4c4712bdd16a96d2f08c464cbe5ac79ef", "categorized_nodes": 202}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,314
c
/* ** Copyright (C) University of Virginia, Massachusetts Institue of Technology 1994-2003. ** See ../LICENSE for license information. ** */ typedef struct { ltoken varid; /*@null@*/ lclTypeSpecNode sortspec; termNode term; sort sort; } *letDeclNode; extern void letDeclNode_free (/*@only@*/ /*@null@*/ letDecl...
26.42
12
(translation_unit) "/*\n** Copyright (C) University of Virginia, Massachusetts Institue of Technology 1994-2003.\n** See ../LICENSE for license information.\n**\n*/\n\ntypedef struct {\n ltoken varid;\n /*@null@*/ lclTypeSpecNode sortspec;\n termNode term;\n sort sort;\n} *letDeclNode;\n\nextern void letDeclNode_fr...
45
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 26.42, "nodes": 29, "errors": 0, "source_hash": "e7a458727f54fc798b2b4fd1ab0b580a8abe4233365d078cb3d10ab5fc1f8091", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "typede...
3,315
c
/** * UGENE - Integrated Bioinformatics Tools. * Copyright (C) 2008-2020 UniPro <<EMAIL>> * http://ugene.net * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the L...
36.61
54
(translation_unit) "/**\n * UGENE - Integrated Bioinformatics Tools.\n * Copyright (C) 2008-2020 UniPro <<EMAIL>>\n * http://ugene.net\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * as published by the Free Software Foundation; e...
160
6
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 36.61, "nodes": 106, "errors": 0, "source_hash": "b21724c06618ba95edba3d185c463e4a1794fe00f7eed7751a648dfd4cb1cad1", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
3,316
c
/* Flipper Platform Support Header for the Atmel ATSAM4S */ /* Guard whether or not a target platform has already been defined. */ #ifndef __atsam4s__ #define __atsam4s__ /* include the configuration header for this platform */ #include "lf_config.h" #include "sam4s.h" /* GPIO signals */ #define IO_1 PIO_PA22 #defi...
29.76
66
(translation_unit) "/* Flipper Platform Support Header for the Atmel ATSAM4S */\n\n/* Guard whether or not a target platform has already been defined. */\n#ifndef __atsam4s__\n#define __atsam4s__\n\n/* include the configuration header for this platform */\n#include "lf_config.h"\n\n#include "sam4s.h"\n\n/* GPIO signals...
222
0
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 29.76, "nodes": 201, "errors": 0, "source_hash": "59708b8623f3c669a1b15f2ffb310800af3b4bb21df38c64b8feeff2ebec5fa7", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
3,317
c
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Copyright (c) Microsoft Corporation. All rights reserved. /////////////////////////////////////////////////////////...
30.54
84
(translation_unit) "////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Copyright (c) Microsoft Corporation. All rights reserved.\n///////////////////////////////////...
375
3
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 30.54, "nodes": 275, "errors": 0, "source_hash": "c3b7df9b5e0732f57ff39524f65142ae7f24fd150bbd11476e7d9bdcb36c1812", "categorized_nodes": 183}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef _BMP_H...
3,318
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/FuseUI.framework/FuseUI */ @interface MusicSearchBar : UISearchBar @property (nonatomic) <MusicSearchBarDelegate> *delegate; - (bool)_isInBar; - (void)layoutSubviews; @end
30
8
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/FuseUI.framework/FuseUI\n */\n\n@interface MusicSearchBar : UISearchBar\n\n@property (nonatomic) <MusicSearchBarDelegate> *delegate;\n\n- (bool)_isInBar;\n- (void)layoutSubviews;\n\n@end\n" (comment) "/* Generated by Runti...
49
8
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 30.0, "nodes": 34, "errors": 0, "source_hash": "d103e22ae2c5c082b78f5708620c636e4f2b90f4d65c30ea193e69606f9eddbb", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface MusicSe...
3,319
c
// // REAppStoreController+Request.h // Retriever // // Created by cyan on 1/29/17. // Copyright © 2017 cyan. All rights reserved. // #import "REAppStoreController.h" @interface REAppStoreController (Request) - (void)sendRequest; @end
20.73
11
(translation_unit) "//\n// REAppStoreController+Request.h\n// Retriever\n//\n// Created by cyan on 1/29/17.\n// Copyright © 2017 cyan. All rights reserved.\n//\n\n#import "REAppStoreController.h"\n\n@interface REAppStoreController (Request)\n\n- (void)sendRequest;\n\n@end\n" (comment) "//" (comment) "// REAppS...
35
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 20.73, "nodes": 18, "errors": 0, "source_hash": "a3ab35ec5da8f20f21de32403957547bdbb46d41e1351d8a7fc4c374b1acd3d2", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"R...
3,320
c
// Copyright (c) 2002 <NAME> // See the COPYING file for more information. protected: void init(unsigned char *initialcontents, size_t initialsize, size_t increment); void clearExtentList(); void clear(bool resetpositions); bytebuffer *copy(unsigned char *data, size_t size, bool copyin, si...
30.26
19
(translation_unit) "// Copyright (c) 2002 <NAME>\n// See the COPYING file for more information.\n\n protected:\n void init(unsigned char *initialcontents,\n size_t initialsize, size_t increment);\n void clearExtentList();\n void clear(bool resetpositions);\n bytebuffer *copy(unsigned char *data,\n size_...
167
1
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 30.26, "nodes": 117, "errors": 0, "source_hash": "198e392c0812b740670d30b2ab265e2bbd213bdf2fed207cc82edb07039c3623", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "labeled_statement", "text": "pro...
3,321
c
// // HBQRCoder.h // QRCodeDemo // // Created by Mac on 2016/12/7. // Copyright © 2016年 TUTK. All rights reserved. // #import <Foundation/Foundation.h> #import "HBQRCoder.h" #import "HBQRCodeView.h"
19.3
10
(translation_unit) "//\n// HBQRCoder.h\n// QRCodeDemo\n//\n// Created by Mac on 2016/12/7.\n// Copyright © 2016年 TUTK. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n#import "HBQRCoder.h"\n#import "HBQRCodeView.h"\n\n" (comment) "//" (comment) "// HBQRCoder.h" (comment) "// QRCodeDemo" (...
17
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.3, "nodes": 9, "errors": 0, "source_hash": "95440f99dc3033e4143f5c2208efbb34faa15e91bbf547151c9865dcebd3e123", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Founda...
3,322
c
#pragma once typedef struct Vector3 { float x; float y; float z; } Vector3; DEFINE_IL2CPP_ARG_TYPE(Vector3, "UnityEngine", "Vector3");
17.38
8
(translation_unit) "#pragma once\n\ntypedef struct Vector3\n{\n float x;\n float y;\n float z;\n} Vector3;\n\nDEFINE_IL2CPP_ARG_TYPE(Vector3, "UnityEngine", "Vector3");\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (type_definition) "typedef struct Vector3\n{...
44
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 17.38, "nodes": 24, "errors": 0, "source_hash": "b9a4f02a765ab1bca1cc8397845ba29c33a1e08d02935d847d05dbcf9a02f919", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
3,323
c
#include "apue.h" #include <errno.h> #include <fcntl.h> #include <sys/wait.h> int main(int argc, char *argv[]) { int fd; pid_t pid; char buf[5]; struct stat statbuf; if (argc != 2) { fprintf(stderr, "usage: %s filename\n", argv[0]); } if ((fd = ...
33.14
49
(translation_unit) "#include "apue.h"\n#include <errno.h>\n#include <fcntl.h>\n#include <sys/wait.h>\n\nint\nmain(int argc, char *argv[])\n{\n int fd;\n pid_t pid;\n char buf[5];\n struct stat statbuf;\n\n if (argc != 2) {\n fprintf(stderr, "usage: %s filename\...
512
0
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 33.14, "nodes": 269, "errors": 0, "source_hash": "276b174b9befbfdb3fda4139b5bf1549652b0058337bcd0f4ce8c27a87a809aa", "categorized_nodes": 208}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,324
c
#include <stdbool.h> #include "systemCallNumber.h" #include "kernel/systemModules/systemCalls/dispatcher.h" #include "kernel/hal/led/led.h" #include "kernel/systemModules/filesystem/vfs.h" #include "kernel/hal/dmx/dmx.h" #include "drivers/dmx/tmh7/dmxTmh7.h" #include "drivers/dmx/mhx25/dmxMhx25.h" #include "ker...
32.23
30
(translation_unit) "#include <stdbool.h> \n#include "systemCallNumber.h" \n#include "kernel/systemModules/systemCalls/dispatcher.h" \n#include "kernel/hal/led/led.h" \n#include "kernel/systemModules/filesystem/vfs.h" \n#include "kernel/hal/dmx/dmx.h" \n#include "drivers/dmx/tmh7/dmxTmh7.h" \n#include "drivers/dmx/mhx25...
251
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 32.23, "nodes": 146, "errors": 0, "source_hash": "09dcf527cd35b74a6987702953cf9d77bb3b82417e93b9f2e6887049b53dfb7e", "categorized_nodes": 112}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,325
c
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
29.77
192
(translation_unit) "/*\n * CDDL HEADER START\n *\n * The contents of this file are subject to the terms of the\n * Common Development and Distribution License (the "License").\n * You may not use this file except in compliance with the License.\n *\n * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE...
1,274
0
{"language": "c", "success": true, "metadata": {"lines": 192, "avg_line_length": 29.77, "nodes": 665, "errors": 0, "source_hash": "9ad5f7d40a7f208339e056d2f8a8868e83971fd4ccb1f3d984b7a6287e3a6fb4", "categorized_nodes": 516}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,326
c
/* * Copyright 2008-2009 NVIDIA Corporation * * 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...
29.67
46
(translation_unit) "/*\n * Copyright 2008-2009 NVIDIA Corporation\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * ...
65
4
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 29.67, "nodes": 38, "errors": 0, "source_hash": "0831063dbe8ad112a2473aebfdd88fa9f68e30a5993338cead4baa0bd26a8b90", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
3,327
c
// Scintilla source code edit control /** @file ScintillaBase.h ** Defines an enhanced subclass of Editor with calltips, autocomplete and context menu. **/ // Copyright 1998-2002 by <NAME> <<EMAIL>> // The License.txt file describes the conditions under which this software may be distributed. #ifndef SCINTILL...
26.7
101
(translation_unit) "// Scintilla source code edit control \n/** @file ScintillaBase.h \n ** Defines an enhanced subclass of Editor with calltips, autocomplete and context menu. \n **/ \n// Copyright 1998-2002 by <NAME> <<EMAIL>> \n// The License.txt file describes the conditions under which this software may be distrib...
652
20
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 26.7, "nodes": 448, "errors": 0, "source_hash": "177362728076329ad5e23c5830eef76ff14aa3217738f44a050003e626be84ed", "categorized_nodes": 301}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,328
c
#include "../helpers.h" #include "bpf.h" protoop_arg_t update_frames_dropped(picoquic_cnx_t* cnx) { int bytes_dropped = (int) get_cnx(cnx, AK_CNX_INPUT, 0); int frames_dropped = (int) get_cnx(cnx, AK_CNX_INPUT, 1); datagram_memory_t *m = get_datagram_memory(cnx); m->send_buffer -= bytes_dropped -...
33.67
12
(translation_unit) "#include "../helpers.h"\n#include "bpf.h"\n\n\nprotoop_arg_t update_frames_dropped(picoquic_cnx_t* cnx)\n{\n int bytes_dropped = (int) get_cnx(cnx, AK_CNX_INPUT, 0);\n int frames_dropped = (int) get_cnx(cnx, AK_CNX_INPUT, 1);\n \n datagram_memory_t *m = get_datagram_memory(cnx);\n m->...
118
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 33.67, "nodes": 75, "errors": 0, "source_hash": "1c40f10e21e06670a3039beac2fa1191d230107480716df2fac22d9f55ec8975", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
3,329
c
#include "../../../test_common.h" #include <string.h> #include <wchar.h> void runSuccess() { wchar_t buf[3]; buf[0] = L'A'; buf[1] = L'\0'; buf[2] = L'\0'; wchar_t s1[2]; s1[0] = L'B'; s1[1] = L'\0'; //@ assert \valid(buf+(0..2)); //@ assert \exists integer x; buf[x] == L'\0'; //@ assert \valid(s1+...
29.61
49
(translation_unit) "#include "../../../test_common.h"\n#include <string.h>\n#include <wchar.h>\n\nvoid runSuccess() {\n wchar_t buf[3]; buf[0] = L'A'; buf[1] = L'\0'; buf[2] = L'\0';\n wchar_t s1[2]; s1[0] = L'B'; s1[1] = L'\0';\n //@ assert \valid(buf+(0..2));\n //@ assert \exists integer x; buf[x] == L'\0...
454
0
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 29.61, "nodes": 282, "errors": 0, "source_hash": "714b09acf7dc4e7f6a719ea52e792c0abfadb4605267a1c0ae4e29dafbb61d67", "categorized_nodes": 175}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,330
c
#pragma once #include "..\dx11.h" #include "..\..\..\Core\Src\String.h" enum ShaderType { SHADER_TYPE, TEXTURE_SHADER_TYPE }; class Shader { private: struct MatrixBufferType { DirectX::XMMATRIX worldMatrix; DirectX::XMMATRIX viewMatrix; DirectX::XMMATRIX projectionMatrix; }; public: Shader(ID3D11Device* d...
33.79
43
(translation_unit) "#pragma once\n#include "..\dx11.h"\n#include "..\..\..\Core\Src\String.h"\n\nenum ShaderType\n{\n SHADER_TYPE,\n TEXTURE_SHADER_TYPE\n};\n\nclass Shader\n{\nprivate:\n struct MatrixBufferType\n {\n DirectX::XMMATRIX worldMatrix;\n DirectX::XMMATRIX viewMatrix;\n DirectX::XMMATRIX projectionMatrix...
407
13
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 33.79, "nodes": 252, "errors": 0, "source_hash": "7b0fdb0dad38052a40707a19cf5d6405750a36fae32451abfb28be074c70f00f", "categorized_nodes": 170}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
3,331
c
/* * Copyright 2014 Freescale Semiconductor, Inc. * * SPDX-License-Identifier: GPL-2.0+ * */ #include <common.h> #include <malloc.h> #include <fsl_sec.h> #include <asm-generic/errno.h> #include "jobdesc.h" #include "desc.h" #include "jr.h" int blob_decap(u8 *key_mod, u8 *src, u8 *dst, u32 len) { int ret, i = 0;...
25.84
92
(translation_unit) "/*\n * Copyright 2014 Freescale Semiconductor, Inc.\n *\n * SPDX-License-Identifier: GPL-2.0+\n *\n */\n\n#include <common.h>\n#include <malloc.h>\n#include <fsl_sec.h>\n#include <asm-generic/errno.h>\n#include "jobdesc.h"\n#include "desc.h"\n#include "jr.h"\n\nint blob_decap(u8 *key_mod, u8 *src, u...
866
0
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 25.84, "nodes": 512, "errors": 0, "source_hash": "3a32e5984273062c72129ab637ae1c92236af812b7e22b5ea379f966564483b2", "categorized_nodes": 348}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,332
c
#ifndef DELAYEDSIGNAL_H #define DELAYEDSIGNAL_H #include <QObject> #include <QTimer> //this object receives signal and issues it delayed //skipping repeats of original source class DelayedSignal : public QObject { Q_OBJECT public: explicit DelayedSignal(QObject *parent = nullptr); public slots: void sour...
21.74
19
(translation_unit) "#ifndef DELAYEDSIGNAL_H\n#define DELAYEDSIGNAL_H\n\n#include <QObject>\n#include <QTimer>\n\n//this object receives signal and issues it delayed\n//skipping repeats of original source\n\nclass DelayedSignal : public QObject\n{\n Q_OBJECT\npublic:\n explicit DelayedSignal(QObject *parent = null...
85
4
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 21.74, "nodes": 54, "errors": 0, "source_hash": "998ddddb808367dd266f050c7b1de25bdb98b6e2c31edd6cecdca3a94d36d316", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,333
c
#ifndef _EXIT_H #define _EXIT_H struct Exit{ char x; char y; char dest; bool active; }; void add_exit(char x, char y, char dest); void draw_exit(Exit &obj); void activate_exit(Exit& obj); #endif
15.58
12
(translation_unit) "#ifndef _EXIT_H\n#define _EXIT_H\n\nstruct Exit{\n char x;\n char y;\n char dest;\n bool active;\n};\n\nvoid add_exit(char x, char y, char dest);\nvoid draw_exit(Exit &obj);\nvoid activate_exit(Exit& obj);\n\n#endif\n" (preproc_ifdef) "#ifndef _EXIT_H\n#define _EXIT_H\n\nstruct Exit{\n char x;\n c...
76
2
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 15.58, "nodes": 52, "errors": 0, "source_hash": "974e0cad0c5aeb2017e7ed532731822b56f63d0a476c61aaa9feacfc8b6459e5", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,334
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSURLComponents.h" @interface NSURLComponents (Additions) - (id)queryValueForKey:(id)arg1; @end
25.33
9
(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 "NSURLComponents.h"\n\n@interface NSURLComponents (Additions)\n- (id)queryValueForKey:(id)arg1;\n@end\n\n" (comment) "//" (comment) "// Generated...
39
5
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 25.33, "nodes": 21, "errors": 0, "source_hash": "cbf51ef08ce9b574d9987982f8e71ded77b74d0d650b956fcf83a750c3c7f11e", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
3,335
c
/* Test atomic_is_lock_free. */ /* { dg-do run } */ /* { dg-options "-std=c11 -pedantic-errors" } */ #include <stdatomic.h> #include <stdint.h> extern void abort (); _Atomic _Bool aba; atomic_bool abt; _Atomic char aca; atomic_char act; _Atomic __CHAR16_TYPE__ ac16a; atomic_char16_t ac16t; _Atomic __CHAR32_TYPE__ a...
27.71
52
(translation_unit) "/* Test atomic_is_lock_free. */\n/* { dg-do run } */\n/* { dg-options "-std=c11 -pedantic-errors" } */\n\n#include <stdatomic.h>\n#include <stdint.h>\n\nextern void abort ();\n\n_Atomic _Bool aba;\natomic_bool abt;\n_Atomic char aca;\natomic_char act;\n_Atomic __CHAR16_TYPE__ ac16a;\natomic_char16_...
268
0
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 27.71, "nodes": 171, "errors": 0, "source_hash": "81afd7466f3bae48ea3bbc99e432e1eb93fc0c71d2c360d4f8608d2e37d22927", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,336
c
#include <stdio.h> #include <unistd.h> #include <string.h> #include <stdlib.h> #include <limits.h> #include "6.h" void printstats() { int cnt[NRCOORD+1]; for (int i=0;i<NRCOORD+1;i++) cnt[i]=0; for (int y=0;y<MAXY;y++) for (int x=0;x<MAXX;x++) if (data[y][x] != '.') cnt[data[y][x]-48]++; f...
16.95
55
(translation_unit) "#include <stdio.h>\n#include <unistd.h>\n#include <string.h>\n#include <stdlib.h>\n#include <limits.h>\n#include "6.h"\n\nvoid printstats() {\n\n int cnt[NRCOORD+1];\n\n for (int i=0;i<NRCOORD+1;i++)\n cnt[i]=0;\n \n for (int y=0;y<MAXY;y++)\n for (int x=0;x<MAXX;x++)\n if (data[y][x]...
478
0
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 16.95, "nodes": 310, "errors": 0, "source_hash": "cdfafec80657a8873f14d5dec8930e2f27e7e8d4e17356e30a8483c4b169603a", "categorized_nodes": 216}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,337
c
/* * Copyright (c) 2021 DIY356 * All rights reserved * * Licensed under the Apache License, Version 2.0 (the ""License""); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
37.84
44
(translation_unit) "/*\n * Copyright (c) 2021 DIY356\n * All rights reserved\n *\n * Licensed under the Apache License, Version 2.0 (the ""License"");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n...
185
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 37.84, "nodes": 130, "errors": 0, "source_hash": "d7b7aa3479eca7c40006a585c855d9a38ff0ab959717399467fc0f83d81fb68b", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
3,338
c
// // CADisplayLinkExample.h // WJWeakTimer // // Created by 曾维俊 on 2019/4/8. // Copyright © 2019 nius. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface CADisplayLinkExample : UIViewController @end NS_ASSUME_NONNULL_END
20.5
12
(translation_unit) "//\n// CADisplayLinkExample.h\n// WJWeakTimer\n//\n// Created by 曾维俊 on 2019/4/8.\n// Copyright © 2019 nius. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface CADisplayLinkExample : UIViewController\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" ...
27
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 20.5, "nodes": 16, "errors": 0, "source_hash": "79adcd90e4b202391a08d9eaae271dd082e81abe0e65ecab8b90bfb25198e5b3", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <UIKit/UIK...
3,339
c
/* rtCore Copyright 2005-2017 <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in...
29.94
33
(translation_unit) "/*\n\n rtCore Copyright 2005-2017 <NAME>\n\n Licensed under the Apache License, Version 2.0 (the "License");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by ...
80
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 29.94, "nodes": 58, "errors": 0, "source_hash": "96d6eb0d03ec405fc4bf9625248388fb1124b2e0f2de1c7f771b65bc13e6c3cd", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,340
c
#pragma once #include "Triton2/Scene/Scene.h" namespace Triton { class Scene; namespace Core { class AssetManager; } namespace Graphics { class Renderer; } namespace Extension { /** * Renders the specified scene with the specified renderer * * @param scene Reference scene to be rendered ...
33.06
54
(translation_unit) "#pragma once\n\n#include "Triton2/Scene/Scene.h"\n\nnamespace Triton\n{\n class Scene;\n\n namespace Core\n {\n class AssetManager;\n }\n\n namespace Graphics\n {\n class Renderer;\n }\n\n namespace Extension\n {\n /**\n * Renders the specified scene with the specified renderer\n *\n * @par...
217
12
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 33.06, "nodes": 136, "errors": 0, "source_hash": "c22e136acea7b85143fbafe66e829225b53e6c23a13776e705486c4b1b8f4324", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
3,341
c
#ifndef __PROFILE_DIALOG_H__ #define __PROFILE_DIALOG_H__ #ifdef __QC_MODE__ SwitcherMode profile_switcher_dialog ( char **input ); #endif //__QC_MODE__ #endif
22
7
(translation_unit) "#ifndef __PROFILE_DIALOG_H__\n#define __PROFILE_DIALOG_H__\n#ifdef __QC_MODE__\n\n\n\nSwitcherMode profile_switcher_dialog ( char **input );\n\n#endif //__QC_MODE__\n#endif\n" (preproc_ifdef) "#ifndef __PROFILE_DIALOG_H__\n#define __PROFILE_DIALOG_H__\n#ifdef __QC_MODE__\n\n\n\nSwitcherMode profil...
28
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 22.0, "nodes": 23, "errors": 0, "source_hash": "8a36a9d4805e7d33c611fbb6c170a4c4fd780424bec307ec8f532e8dbf6a9b7c", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __...
3,342
c
// Generated by Haxe 3.3.0 #ifndef INCLUDED_openfl__legacy_net_URLRequest #define INCLUDED_openfl__legacy_net_URLRequest #ifndef HXCPP_H #include <hxcpp.h> #endif HX_DECLARE_CLASS2(haxe,io,Bytes) HX_DECLARE_CLASS3(openfl,_legacy,net,URLRequest) HX_DECLARE_CLASS3(openfl,_legacy,utils,ByteArray) HX_DECLARE_CLASS3(openf...
34.44
71
(translation_unit) "// Generated by Haxe 3.3.0\n#ifndef INCLUDED_openfl__legacy_net_URLRequest\n#define INCLUDED_openfl__legacy_net_URLRequest\n\n#ifndef HXCPP_H\n#include <hxcpp.h>\n#endif\n\nHX_DECLARE_CLASS2(haxe,io,Bytes)\nHX_DECLARE_CLASS3(openfl,_legacy,net,URLRequest)\nHX_DECLARE_CLASS3(openfl,_legacy,utils,Byte...
750
42
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 34.44, "nodes": 392, "errors": 0, "source_hash": "0b63243c190e5572680ab9e5932b66728a30ea27dd2644abbdc51b7423947f13", "categorized_nodes": 292}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,343
c
#include <stdio.h> #include <stdlib.h> #include <locale.h> #include <string.h> int main(void) { setlocale(LC_ALL, "Portuguese"); char cont; int x, escolha; float valor, celciu, fahrenheit, reais, dolares; do { printf("Qual converção você quer usar agora?\nDigite '1' se for de Celsius par...
31.29
41
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <locale.h>\n#include <string.h>\n\nint main(void)\n\n{\n setlocale(LC_ALL, "Portuguese");\n char cont;\n int x, escolha;\n float valor, celciu, fahrenheit, reais, dolares;\n\n do\n {\n printf("Qual converção você quer usar agora...
341
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 31.29, "nodes": 167, "errors": 0, "source_hash": "5c98b958b88c264e5d4bd5d0d6a0017f806e301a8ad25f9a12577f85c4659227", "categorized_nodes": 121}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,344
c
#define FFI_LIB "libc.so.6" void printf(char *const str, ...);
30.5
2
(translation_unit) "#define FFI_LIB "libc.so.6"\n\nvoid printf(char *const str, ...);\n" (preproc_def) "#define FFI_LIB "libc.so.6"\n" (#define) "#define" (identifier) "FFI_LIB" (preproc_arg) ""libc.so.6"" (declaration) "void printf(char *const str, ...);" (primitive_type) "void" (function_decla...
23
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 30.5, "nodes": 14, "errors": 0, "source_hash": "1a838ae48d2a45e8a94a649545db7bc10ce5126024a963111a54a02e4404e3be", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define FFI_L...
3,345
c
#ifndef HELLIGKEITSSENSOR_H #define HELLIGKEITSSENSOR_H /** * @brief Diese Klasse ermöglicht die Verwendung des Helligkeitssensors. * Wichtig hierbei ist, dass ein Pin A "+" mit Versorgungsspannung (+5V) und der andere Pin B mit einem Analogeingang (A0-A5) verbunden sind. * Zusätzlich muss Pin B mit einem 10K Ohm W...
27.35
49
(translation_unit) "#ifndef HELLIGKEITSSENSOR_H\n#define HELLIGKEITSSENSOR_H\n\n/**\n * @brief Diese Klasse ermöglicht die Verwendung des Helligkeitssensors.\n * Wichtig hierbei ist, dass ein Pin A "+" mit Versorgungsspannung (+5V) und der andere Pin B mit einem Analogeingang (A0-A5) verbunden sind.\n * Zusätzlich muss...
101
2
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 27.35, "nodes": 56, "errors": 0, "source_hash": "f3c247cef92b253dcca545482203e4b7ec6bc8fb5abd45ae8b80b21d5e6ae189", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,346
c
// // UIImage+Color.h // iOS-Categories (https://github.com/shaojiankui/iOS-Categories) // // Created by Jakey on 14/12/15. // Copyright (c) 2014年 www.skyfox.org. All rights reserved. // #import <UIKit/UIKit.h> @interface UIImage (ZJColor) + (UIImage *)ZJ_imageFromColor:(UIColor *)color size:(CGSize)size; @end
27.73
11
(translation_unit) "//\n// UIImage+Color.h\n// iOS-Categories (https://github.com/shaojiankui/iOS-Categories)\n//\n// Created by Jakey on 14/12/15.\n// Copyright (c) 2014年 www.skyfox.org. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIImage (ZJColor)\n\n+ (UIImage *)ZJ_imageFromColor:(UIColor *...
47
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 27.73, "nodes": 27, "errors": 0, "source_hash": "f9299e1811340dda3f8624a41a3d114bc4c036ed261395e696eca57f2cb229e7", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <UI...
3,347
c
#pragma once enum class SettingType { String = REG_SZ, Int32 = REG_DWORD, Int64 = REG_QWORD, Binary = REG_BINARY, Bool = REG_DWORD, MultiString = REG_MULTI_SZ, }; struct Setting { std::wstring Name; SettingType Type{ SettingType::String }; std::unique_ptr<uint8_t[]> Buffer; int Size; Setting(std::wstring ...
35.72
147
(translation_unit) "#pragma once\n\nenum class SettingType {\n String = REG_SZ,\n Int32 = REG_DWORD,\n Int64 = REG_QWORD,\n Binary = REG_BINARY,\n Bool = REG_DWORD,\n MultiString = REG_MULTI_SZ,\n};\n\nstruct Setting {\n std::wstring Name;\n SettingType Type{ SettingType::String };\n std::unique_ptr<uint8_t[]> Buffer;\...
2,117
91
{"language": "c", "success": true, "metadata": {"lines": 147, "avg_line_length": 35.72, "nodes": 1298, "errors": 0, "source_hash": "1d1a640bc604d62dbe8aad60191569ccdcab87e3eff53c2bf1800d76d8aeec2a", "categorized_nodes": 902}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#prag...
3,348
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, NSString; @interface WPSingleAddress : NSObject { NSMutableDictionary *_addressValues; NSString *_label; } + (id)singleAddressW...
30.14
37
(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, NSString;\n\n@interface WPSingleAddress : NSObject\n{\n NSMutableDictionary *_addressValues;\n NSString...
481
21
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 30.14, "nodes": 276, "errors": 0, "source_hash": "16a34092a551cfa295a0a7fbe5ac9beb305d1f8f0a58ad0280d559b526fded3e", "categorized_nodes": 183}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
3,349
c
#include <libgen.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "alu.h" #include "assembler.h" #include "gate.h" #include "mux.h" #include "rcadder.h" #include "signal.h" #include "memory.h" #include "control.h" #include "loader.h" #include "regfileaccess.h" static char * _parse_filename(char *...
33.27
147
(translation_unit) "#include <libgen.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include "alu.h"\n#include "assembler.h"\n#include "gate.h"\n#include "mux.h"\n#include "rcadder.h"\n#include "signal.h"\n#include "memory.h"\n#include "control.h"\n#include "loader.h"\n#include "regfileaccess.h"\n\ns...
1,371
0
{"language": "c", "success": true, "metadata": {"lines": 147, "avg_line_length": 33.27, "nodes": 753, "errors": 0, "source_hash": "3a12cc2a9c2b9bd5b549d282848a131bd9f680dd1b9993be262a3eba93939443", "categorized_nodes": 564}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,350
c
/******************************************************************************* Copyright(c) 2015-2019 LORD Corporation. All rights reserved. MIT Licensed. See the included LICENSE.txt for a copy of the full MIT License. *******************************************************************************/ #pragma once #...
35.71
42
(translation_unit) "/*******************************************************************************\nCopyright(c) 2015-2019 LORD Corporation. All rights reserved.\n\nMIT Licensed. See the included LICENSE.txt for a copy of the full MIT License.\n*************************************************************************...
97
1
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 35.71, "nodes": 40, "errors": 0, "source_hash": "bc7fdc01f5ab8b675dabdd3fe1969b3a51997dfad4b55889182b744ac0d67304", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
3,351
c
// // WKTPoint.h // // WKTParser Point // // The MIT License (MIT) // // Copyright (c) 2014 <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 ...
29.86
174
(translation_unit) "//\n// WKTPoint.h\n//\n// WKTParser Point\n//\n// The MIT License (MIT)\n//\n// Copyright (c) 2014 <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 ...
250
39
{"language": "c", "success": true, "metadata": {"lines": 174, "avg_line_length": 29.86, "nodes": 128, "errors": 0, "source_hash": "cdb954fc3090263f83d829b08f6335b775bc287672fa99a47c66d4d06415da06", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,352
c
#if CONFIG_FOR_HTTPD_TEST <Location /echo_post_chunk> SetHandler echo_post_chunk </Location> #endif #define APACHE_HTTPD_TEST_HANDLER echo_post_chunk_handler #include "apache_httpd_test.h" static int echo_post_chunk_handler(request_rec *r) { int rc; long nrd, total = 0; char buff[BUFSIZ]; const ...
35.17
77
(translation_unit) "#if CONFIG_FOR_HTTPD_TEST\n\n<Location /echo_post_chunk>\n SetHandler echo_post_chunk\n</Location>\n\n#endif\n\n#define APACHE_HTTPD_TEST_HANDLER echo_post_chunk_handler\n\n#include "apache_httpd_test.h"\n\nstatic int echo_post_chunk_handler(request_rec *r)\n{\n int rc;\n long nrd, total = 0...
644
3
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 35.17, "nodes": 358, "errors": 0, "source_hash": "e0c841e86b459984b5a6c3048e383f1564286d7866cb4c205881454e5d22ce67", "categorized_nodes": 280}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if CONFI...
3,353
c
#include "cpu/exec/helper.h" #define DATA_BYTE 1 #include "or-template.h" #undef DATA_BYTE #define DATA_BYTE 2 #include "or-template.h" #undef DATA_BYTE #define DATA_BYTE 4 #include "or-template.h" #undef DATA_BYTE /* for instruction encoding overloading */ make_helper_v(or_i2a) make_helper_v(or_i2rm) make_helper_...
22.31
16
(translation_unit) "#include "cpu/exec/helper.h"\n\n#define DATA_BYTE 1\n#include "or-template.h"\n#undef DATA_BYTE\n\n#define DATA_BYTE 2\n#include "or-template.h"\n#undef DATA_BYTE\n\n#define DATA_BYTE 4\n#include "or-template.h"\n#undef DATA_BYTE\n\n/* for instruction encoding overloading */\n\nmake_helper_v(or_i2a)...
78
1
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 22.31, "nodes": 54, "errors": 0, "source_hash": "94b8f2420d3295c7ec16da6aba2b641f78830342783c79b25cc38920ec41a999", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
3,354
c
// total count #define BIRMEN 1 // name, GBK const char* birName[] = {"\xC9\xB5\xB1\xC6"}; // sex, 1->girl, 0->boy const char birSex[] = {1}; // month const char birMonth[] = {2}; // day const char birDay[] = {31}; char getTodayBir (char mon, char day) { for (char i = 0; i < BIRMEN; i++) { if (mon =...
21.76
17
(translation_unit) "// total count \n#define BIRMEN 1 \n// name, GBK \nconst char* birName[] = {"\xC9\xB5\xB1\xC6"}; \n// sex, 1->girl, 0->boy \nconst char birSex[] = {1}; \n// month \nconst char birMonth[] = {2}; \n// day \nconst char birDay[] = {31}; \n \nchar getTodayBir (char mon, char day) { \n for (char i = 0; i...
148
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 21.76, "nodes": 87, "errors": 0, "source_hash": "42c72d0b3d4952374c03c0016dcb7b4cc581d030c15f25aa6e2e3e2cf5d46f75", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define BI...
3,355
c
#ifndef _MYDAADDRESSSPACEROOT_H_ #define _MYDAADDRESSSPACEROOT_H_ #include "Da/ServerDaAddressSpaceElement.h" using namespace SoftingOPCToolboxServer; //----------------------------------------------------------------------------- // MyDaAddressSpaceRoot //------------------------------------------------------------...
36.76
17
(translation_unit) "#ifndef _MYDAADDRESSSPACEROOT_H_\n#define _MYDAADDRESSSPACEROOT_H_\n\n#include "Da/ServerDaAddressSpaceElement.h"\n\nusing namespace SoftingOPCToolboxServer;\n\n//-----------------------------------------------------------------------------\n// MyDaAddressSpaceRoot\n//-------------------------------...
82
5
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 36.76, "nodes": 51, "errors": 0, "source_hash": "a6795c6d8d45802c6a1740b9b171d04581de5b21c781d354a8f462b2a82c43e4", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,356
c
#define _GNU_SOURCE #include <sched.h> #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <string.h> #include <sys/types.h> #include <unistd.h> #include <signal.h> #include <sys/wait.h> #define DEFAULT_LENGTH 100 #define STACK_SIZE (1024*1024) #define ERROR -1 #define SUCCESS 0 char stack_child[STACK_S...
27.1
143
(translation_unit) "#define _GNU_SOURCE\n#include <sched.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <errno.h>\n#include <string.h>\n#include <sys/types.h>\n#include <unistd.h>\n#include <signal.h>\n#include <sys/wait.h>\n\n#define DEFAULT_LENGTH 100\n#define STACK_SIZE (1024*1024)\n#define ERROR -1\n#define ...
1,276
0
{"language": "c", "success": true, "metadata": {"lines": 143, "avg_line_length": 27.1, "nodes": 710, "errors": 0, "source_hash": "a809e46df3b7e9a1d7a4b5a4907ac22ae203f2c9fdd42cca6bf2bbdb3e7eae39", "categorized_nodes": 492}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ...
3,357
c
/** * Sky Dolly - The Black Sheep for your Flight Recordings * * Copyright (c) <NAME> * All rights reserved. * * MIT License * * 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 * withou...
35.9
60
(translation_unit) "/**\n * Sky Dolly - The Black Sheep for your Flight Recordings\n *\n * Copyright (c) <NAME>\n * All rights reserved.\n *\n * MIT License\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy of this\n * software and associated documentation files (the "Software"), to d...
266
11
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 35.9, "nodes": 139, "errors": 0, "source_hash": "a2813d49b9028b57e249278aa4081e7e095e7a0cd8a25aaefc473bca03196fef", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef FLIGHTSI...
3,358
c
// // DVTTextCompletionInlinePreviewController+FuzzyAutocomplete.h // FuzzyAutocomplete // // Created by <NAME> on 03/02/2014. // Copyright (c) 2014 United Lines of Code. All rights reserved. // #import "DVTTextCompletionInlinePreviewController.h" @interface DVTTextCompletionInlinePreviewController (FuzzyAutocomp...
35.36
14
(translation_unit) "//\n// DVTTextCompletionInlinePreviewController+FuzzyAutocomplete.h\n// FuzzyAutocomplete\n//\n// Created by <NAME> on 03/02/2014.\n// Copyright (c) 2014 United Lines of Code. All rights reserved.\n//\n\n#import "DVTTextCompletionInlinePreviewController.h"\n\n@interface DVTTextCompletionInlinePr...
55
6
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 35.36, "nodes": 30, "errors": 0, "source_hash": "bf03d85287ebac4a261bbac48b1ace54433088c13698d5cc4d668a8830b4a309", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
3,359
c
#if 0 /*─────────────────────────────────────────────────────────────────╗ │ To the extent possible under law, <NAME> has waived │ │ all copyright and related or neighboring rights to this file, │ │ as it is written in the following disclaimers: │ │ • http://unlicense.org/ ...
28.34
92
(translation_unit) "#if 0\n/*─────────────────────────────────────────────────────────────────╗\n│ To the extent possible under law, <NAME> has waived │\n│ all copyright and related or neighboring rights to this file, │\n│ as it is written in the following disclaimers: │\n│ • http://unlicens...
848
0
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 28.34, "nodes": 515, "errors": 0, "source_hash": "ac2fa7b3fdb47a9e3c1f5fe185cf117f237dab9fb0fbef51f508804e996cedc9", "categorized_nodes": 347}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if 0\n/*...
3,360
c
#pragma once #include <string> #include <functional> #include <iostream> #include <regex> #include <ApprovalTests/utilities/StringUtils.h> namespace ApprovalTests { using Scrubber = std::function<std::string(const std::string&)>; namespace Scrubbers { inline std::string doNothing(const std::string...
31.39
33
(translation_unit) "#pragma once\n\n#include <string>\n#include <functional>\n#include <iostream>\n#include <regex>\n#include <ApprovalTests/utilities/StringUtils.h>\n\nnamespace ApprovalTests\n{\n using Scrubber = std::function<std::string(const std::string&)>;\n namespace Scrubbers\n {\n inline std::s...
257
13
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 31.39, "nodes": 152, "errors": 0, "source_hash": "21812c56f7e572698bafffe80eb56bb93b080ecccde1309df49e8364f0be3632", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
3,361
c
#include "page_migration_test.h" struct numa_node_bw * numa_node_list = NULL; struct numa_node_bw * numa_list_head = NULL; int mem_types; int max_node; int numt; int total_numa_nodes = 0; int * numa_node_ids; struct bitmask * numa_nodes; char ** mem_tech; long double * means; int * cluster_sizes; char classes[3][8] = ...
28.79
201
(translation_unit) "#include "page_migration_test.h"\n\nstruct numa_node_bw * numa_node_list = NULL;\nstruct numa_node_bw * numa_list_head = NULL;\nint mem_types;\nint max_node;\nint numt;\nint total_numa_nodes = 0;\nint * numa_node_ids;\nstruct bitmask * numa_nodes;\nchar ** mem_tech;\nlong double * means;\nint * clus...
1,999
0
{"language": "c", "success": true, "metadata": {"lines": 201, "avg_line_length": 28.79, "nodes": 1274, "errors": 0, "source_hash": "501e091b831b55ce4be9771ca01d617948d3fd395842130a748eecbeb82e7026", "categorized_nodes": 845}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
3,362
c
#pragma once #ifndef FORMAT_H #define FORMAT_H #include <string> #include "IFormattable.h" #include "Deck.h" class Format: public IFormattable{ public: Format(); std::string format() override; void prettyPrint(const Card& object) override; }; #endif
16.93
14
(translation_unit) "#pragma once\n\n#ifndef FORMAT_H\n#define FORMAT_H\n#include <string>\n#include "IFormattable.h"\n#include "Deck.h"\nclass Format: public IFormattable{\npublic:\nFormat();\nstd::string format() override;\nvoid prettyPrint(const Card& object) override;\n\n};\n\n\n#endif" (preproc_call) "#pragma onc...
79
4
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 16.93, "nodes": 44, "errors": 0, "source_hash": "7d8ab0dca4f9b6ac84e2d011efa5eb61c8b72ebeb7034136ddc77ad1259eb30a", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
3,363
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 FallbackListCompositeKey_h #define FallbackListCompositeKey_h #include "platform/fonts/FontCacheKey.h" #include "platform/fonts/FontDescription.h...
37.12
90
(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 FallbackListCompositeKey_h\n#define FallbackListCompositeKey_h\n\n#include "platform/fonts/FontCacheKey.h"\n#include "plat...
625
39
{"language": "c", "success": true, "metadata": {"lines": 90, "avg_line_length": 37.12, "nodes": 360, "errors": 0, "source_hash": "3d6a8d259aed045da210454fe3c1bd0c678592adf16d2d01311fc2f000fdd00a", "categorized_nodes": 247}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,364
c
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef mozilla_layers_APZThreadUt...
34.49
92
(translation_unit) "/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */\n/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://mozilla.org/MPL/2.0/. */\n\n#ifndef m...
343
12
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 34.49, "nodes": 177, "errors": 0, "source_hash": "8457c2c2834f0aceaad37c26c2ece6c6f83a0c36fa390332b4dbcaa4fd75d0fa", "categorized_nodes": 123}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,365
c
// #pragma once bool GameoverSysInit(void); void GameoverInit(void); int GameoverScene(void); void GameoverDraw(void);
22.8
5
(translation_unit) "// #pragma once\n\nbool GameoverSysInit(void);\nvoid GameoverInit(void);\nint GameoverScene(void);\nvoid GameoverDraw(void);\n\n" (comment) "// #pragma once" (declaration) "bool GameoverSysInit(void);" (primitive_type) "bool" (function_declarator) "GameoverSysInit(void)" (identifie...
42
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 22.8, "nodes": 28, "errors": 0, "source_hash": "64156c952254ea6389e2425008d74609d176328fdb895c01c6fa1236fb6aad2e", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "bool Gameove...
3,366
c
// // Created by daisy on 15.11.17. // #ifndef __CUDACC__ #define __CUDACC__ #endif #include "cuda.h" #include "cuda_runtime.h" #include "stdio.h" #endif //FFR125PROJECT_MATRIXMULHOST_H __global__ void MatMul(float* A, float* B, float* C, const int ARows, const int ACols, const int BRows, cons...
43.14
14
(translation_unit) "//\n// Created by daisy on 15.11.17.\n//\n\n#ifndef __CUDACC__\n#define __CUDACC__\n#endif\n\n#include "cuda.h"\n#include "cuda_runtime.h"\n#include "stdio.h"\n\n#endif //FFR125PROJECT_MATRIXMULHOST_H\n__global__ void MatMul(float* A, float* B, float* C, const int ARows, const int ACols, const int B...
197
2
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 43.14, "nodes": 133, "errors": 0, "source_hash": "6ea905346b942237e20ef99182ac5b6243ebb40152ec24ac3e5650821716fc53", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
3,367
c
#ifndef D3DCONTROLLERS_UTILS_H #define D3DCONTROLLERS_UTILS_H #include "d3d9_port.h" #include "GPUTypes.h" // Misc utility stuff that doesn't fit in other places ///@todo Find properly places for the code, don't get this file grow too much /// Return the size of a volume UINT getVolumeSize(UINT Width, UINT Height, U...
41.15
59
(translation_unit) "#ifndef D3DCONTROLLERS_UTILS_H\n#define D3DCONTROLLERS_UTILS_H\n\n#include "d3d9_port.h"\n#include "GPUTypes.h"\n\n// Misc utility stuff that doesn't fit in other places\n///@todo Find properly places for the code, don't get this file grow too much\n\n/// Return the size of a volume\nUINT getVolumeS...
409
2
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 41.15, "nodes": 286, "errors": 0, "source_hash": "7c420a3ce6b48cd712712b55375da7f7568b9d30b33b053889d84aa5bfcf5e26", "categorized_nodes": 234}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,368
c
#include <stdio.h> #include <stdlib.h> #include <math.h> //System libraries #include <unistd.h> #include <sys/wait.h> #include <signal.h> //Defining the function int check_visit(int n,int visited[]); int check_prime(int num); void sigint_handler(int s); int main(){ //Starting the file descriptor int pfd[2]; ...
27.21
116
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n//System libraries\n#include <unistd.h>\n#include <sys/wait.h>\n#include <signal.h>\n\n//Defining the function\nint check_visit(int n,int visited[]);\nint check_prime(int num);\nvoid sigint_handler(int s);\n\n\nint main(){\n //Starting t...
857
0
{"language": "c", "success": true, "metadata": {"lines": 116, "avg_line_length": 27.21, "nodes": 481, "errors": 0, "source_hash": "14ac44adc115c5e466534d2504d992f07688eb700813a81b0b115b8a9491bf3e", "categorized_nodes": 330}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,369
c
// license:GPL-2.0+ // copyright-holders:Couriersud /* * nld_74123.h * * 74123: Dual Retriggerable One-Shot with Clear and Complementary Outputs * * +--------------+ * A1 |1 ++ 16| VCC * B1 |2 15| RC1 * CLR1 |3 14| C1 * Q1Q |4 74123 13| Q1 * ...
31.15
65
(translation_unit) "// license:GPL-2.0+\n// copyright-holders:Couriersud\n/*\n * nld_74123.h\n *\n * 74123: Dual Retriggerable One-Shot with Clear and Complementary Outputs\n *\n * +--------------+\n * A1 |1 ++ 16| VCC\n * B1 |2 15| RC1\n * CLR1 |3 14| C1\n * ...
52
0
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 31.15, "nodes": 34, "errors": 0, "source_hash": "1a1722eafc408e743bafbcd584c7e94065adf41d6326322dc6bcc7b018b155d3", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,370
c
/** * @author <NAME> (github.com/tralf-strues) * @file sml_containers.h * @date 2021-10-01 * * @copyright Copyright (c) 2021 */ #pragma once #include "containers/array.h" #include "containers/dynamic_array.h" #include "containers/list.h"
21.27
11
(translation_unit) "/**\n * @author <NAME> (github.com/tralf-strues)\n * @file sml_containers.h\n * @date 2021-10-01\n * \n * @copyright Copyright (c) 2021\n */\n\n#pragma once\n\n#include "containers/array.h"\n#include "containers/dynamic_array.h"\n#include "containers/list.h"\n" (comment) "/**\n * @author <NAME> (g...
23
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 21.27, "nodes": 12, "errors": 0, "source_hash": "c8f025c3b13182950122e3f118414a62203295032e628354b6646b7a27b96563", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
3,371
c
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying file Copyright.txt or https://cmake.org/licensing for details. */ #ifndef cmQtAutoGenInitializer_h #define cmQtAutoGenInitializer_h #include "cmConfigure.h" // IWYU pragma: keep #include "cmGeneratedFileStream.h" #include "cmQtAutoGen.h"...
31.19
208
(translation_unit) "/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying\n file Copyright.txt or https://cmake.org/licensing for details. */\n#ifndef cmQtAutoGenInitializer_h\n#define cmQtAutoGenInitializer_h\n\n#include "cmConfigure.h" // IWYU pragma: keep\n#include "cmGeneratedFileStream.h...
1,750
124
{"language": "c", "success": true, "metadata": {"lines": 208, "avg_line_length": 31.19, "nodes": 1061, "errors": 0, "source_hash": "80fcf3656c54b11638aeee0fc02f685304c65f30559f3176e238a477838b9b00", "categorized_nodes": 701}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
3,372
c
/* * RELIC is an Efficient LIbrary for Cryptography * Copyright (C) 2007-2015 RELIC Authors * * This file is part of RELIC. RELIC is legal property of its developers, * whose names are not listed here. Please refer to the COPYRIGHT file * for contact information. * * RELIC is free software; you can redistribute...
23.66
143
(translation_unit) "/*\n * RELIC is an Efficient LIbrary for Cryptography\n * Copyright (C) 2007-2015 RELIC Authors\n *\n * This file is part of RELIC. RELIC is legal property of its developers,\n * whose names are not listed here. Please refer to the COPYRIGHT file\n * for contact information.\n *\n * RELIC is free so...
980
6
{"language": "c", "success": true, "metadata": {"lines": 143, "avg_line_length": 23.66, "nodes": 566, "errors": 0, "source_hash": "25991f445226a1183b215cebfc2e6957528ef9bb1c0215f625bf2a381ace66aa", "categorized_nodes": 419}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,373
c
#undef _POSIX_C_SOURCE #define _POSIX_C_SOURCE 200809L #include "../../include/filelib.h" #include "../../include/stringptr.h" #include <limits.h> /* removes multiple slashes, /./ style stuff and resolves ../ kind of stuff on _absolute_ paths. * will always strip trailing slashes. * will fail with relative p...
23.94
68
(translation_unit) "#undef _POSIX_C_SOURCE \n#define _POSIX_C_SOURCE 200809L \n#include "../../include/filelib.h" \n#include "../../include/stringptr.h" \n#include <limits.h> \n \n/* removes multiple slashes, /./ style stuff and resolves ../ kind of stuff on _absolute_ paths. \n * will always strip trailing slashes. \n...
641
0
{"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 23.94, "nodes": 430, "errors": 0, "source_hash": "586ba6c5258a428cb28ff17f856d478a1fe7202523534deb63399b7a934f5d41", "categorized_nodes": 297}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#undef ...
3,374
c
#pragma once #if defined(DEBUG) // Okay these aren't real unit tests, and if you want those, you should look elsewhere, or make a PR 😂 #ifdef __cplusplus #define C_LINKAGE extern "C" #else #define C_LINKAGE #endif #include "lvgl.h" void TEST_ReadDirectories(); C_LINKAGE void TEST_lv_demo_widgets(lv_group_t* group)...
26.75
12
(translation_unit) "#pragma once\n\n#if defined(DEBUG)\n// Okay these aren't real unit tests, and if you want those, you should look elsewhere, or make a PR 😂\n\n#ifdef __cplusplus\n#define C_LINKAGE extern "C"\n#else\n#define C_LINKAGE\n#endif\n\n#include "lvgl.h"\n\nvoid TEST_ReadDirectories();\nC_LINKAGE void TEST_...
57
1
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 26.75, "nodes": 43, "errors": 0, "source_hash": "aac9fead13aa4d3d8058af3c5011401cf83bba4714334c6b1070ec42ddbc4290", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
3,375
c
#include "../include/csl.h" void CSL_Debug_AtAddress ( ) { byte * address ; address = ( byte* ) DataStack_Pop ( ) ; _CSL_Debug_AtAddress ( address ) ; } void _CSL_Debugger_Locals_Show ( ) { Debugger_Locals_Show ( _Debugger_ ) ; //Pause ( ) ; } void CSL_Debugger_Locals_Show ( ) { if ( GetState...
29.27
104
(translation_unit) "#include "../include/csl.h"\n\nvoid\nCSL_Debug_AtAddress ( )\n{\n byte * address ;\n address = ( byte* ) DataStack_Pop ( ) ;\n _CSL_Debug_AtAddress ( address ) ;\n}\n\nvoid\n_CSL_Debugger_Locals_Show ( )\n{\n Debugger_Locals_Show ( _Debugger_ ) ;\n //Pause ( ) ;\n}\n\nvoid\nCSL_Debugg...
713
0
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 29.27, "nodes": 390, "errors": 0, "source_hash": "1878b2235a0069ec4a8df4d92a6fe790e11a72e19a6660432d1b3b4cb62480a6", "categorized_nodes": 286}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,376
c
/******************************************************************************* Copyright 2010 Enseed inc. 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 wit...
31.37
282
(translation_unit) "/*******************************************************************************\n Copyright 2010 Enseed inc.\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 re...
1,589
89
{"language": "c", "success": true, "metadata": {"lines": 282, "avg_line_length": 31.37, "nodes": 979, "errors": 0, "source_hash": "74100868b71a64e38f173c3c670c888ab838762b015c2fb2565e51724c77dfe0", "categorized_nodes": 637}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
3,377
c
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ #ifndef _FA_UNAMBIGUOUS_H_ #define _FA_UNAMBIGUOUS_H_ #include "FAConfig.h" #include "FAChain2Num_hash.h" #include "FAArray_cont_t.h" #include "FARSNfa_ar_judy.h" #include "FAMealyNfa.h" #include "FA...
25.45
102
(translation_unit) "/** \n * Copyright (c) Microsoft Corporation. All rights reserved. \n * Licensed under the MIT License. \n */ \n \n \n#ifndef _FA_UNAMBIGUOUS_H_ \n#define _FA_UNAMBIGUOUS_H_ \n \n#include "FAConfig.h" \n#include "FAChain2Num_hash.h" \n#include "FAArray_cont_t.h" \n#include "FARSNfa_ar_judy.h" \n#inc...
455
3
{"language": "c", "success": true, "metadata": {"lines": 102, "avg_line_length": 25.45, "nodes": 250, "errors": 0, "source_hash": "318f89384ad2e084861fd4d155b85ad33639fc3eed27208879bcdd30826014cc", "categorized_nodes": 160}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
3,378
c
/* * Triplet.h * * Created on: Jul 14, 2015 * Author: sjmunn */ /* * Triplet Class * Purpose: Store triplets of coordinates or indices * * Usage: 3-dimensional points: * Triplet<float> point; * * Triangle point index: * Triplet<unsigned> triangle; */ #ifndef DATA_OBJ_TRIPLET_H_ #define ...
26.25
55
(translation_unit) "/*\n * Triplet.h\n *\n * Created on: Jul 14, 2015\n * Author: sjmunn\n */\n\n/*\n * Triplet Class\n * Purpose: Store triplets of coordinates or indices\n *\n * Usage: 3-dimensional points:\n * Triplet<float> point;\n *\n * Triangle point index:\n * Triplet<unsigned> triangle;\n */\n...
386
18
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 26.25, "nodes": 201, "errors": 0, "source_hash": "24e013a50dd8def2ab0278744be4979692790a37d3e1de4d11dac669053675b0", "categorized_nodes": 127}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,379
c
// SubItemControls.h
20
1
(translation_unit) "// SubItemControls.h\n" (comment) "// SubItemControls.h"
2
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 20.0, "nodes": 0, "errors": 0, "source_hash": "39c66af6a48f9cd2da20080110d7f45c3fd63627ab7c0046644bf27ab3005350", "categorized_nodes": 0}, "ast": {"root": "translation_unit", "nodes": []}, "node_categories": {"declarations": {"functions": []...
3,380
c
#define REVISION 10663
22
1
(translation_unit) "#define REVISION 10663 \n" (preproc_def) "#define REVISION 10663 \n" (#define) "#define" (identifier) "REVISION" (preproc_arg) "10663 "
5
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 22.0, "nodes": 4, "errors": 0, "source_hash": "1faec4e065d7ffb5fdb0f6f851e481b2fda7d369ad73a776d5151d0bce0449a1", "categorized_nodes": 1}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define REVISI...
3,381
c
//********************************************************* // // Copyright (c) Microsoft. All rights reserved. // This code is licensed under the MIT License (MIT). // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY // IMPLIED WARRANTIES OF FITNESS FOR A PA...
33.02
49
(translation_unit) "//********************************************************* \n// \n// Copyright (c) Microsoft. All rights reserved. \n// This code is licensed under the MIT License (MIT). \n// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF \n// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY \n// IMPLIED WARR...
222
13
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 33.02, "nodes": 108, "errors": 0, "source_hash": "516d4d2151d48c410f1153256d9e1b06f9f08a4db17f3ca892e2da8d27bd8cec", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
3,382
c
$header_banner /** * \file $project_name */ #include <stdio.h> #include "$project_name.h" /** * print_output() for project $project_name * * parameter: str - a string that will be published to stdout * * returns: 0 on success */ int print_output(char* str){ printf("%s\n", str); return(0);...
16.47
36
(translation_unit) "$header_banner\n\n/** \n * \file $project_name\n */\n\n#include <stdio.h>\n#include "$project_name.h"\n\n/**\n * print_output() for project $project_name \n * \n * parameter: str - a string that will be published to stdout \n * \n * returns: 0 on success\n */\nint print_output(char* str){...
132
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 16.47, "nodes": 70, "errors": 0, "source_hash": "87bbfed2bfb948b36389cf409780a3eb671317d9c8b17d13b0e8667a151f1a11", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "identifier", "text": "$header_ban...
3,383
c
/* 7zExtract.c */ #include "7zExtract.h" #include "7zDecode.h" #include "7zCrc.h" SZ_RESULT SzExtract( ISzInStream *inStream, CArchiveDatabaseEx *db, UInt32 fileIndex, UInt32 *blockIndex, Byte **outBuffer, size_t *outBufferSize, size_t *offset, size_t *outSizeProcessed, ...
26.59
116
(translation_unit) "/* 7zExtract.c */ \n \n#include "7zExtract.h" \n#include "7zDecode.h" \n#include "7zCrc.h" \n \nSZ_RESULT SzExtract( \n ISzInStream *inStream, \n CArchiveDatabaseEx *db, \n UInt32 fileIndex, \n UInt32 *blockIndex, \n Byte **outBuffer, \n size_t *outBufferSize, \n size_t *offset,...
868
3
{"language": "c", "success": true, "metadata": {"lines": 116, "avg_line_length": 26.59, "nodes": 578, "errors": 0, "source_hash": "e49bca2f09e759a22ed5f9cbb4e3fb0aa12fb4c9e73edc6cf61b6a4cd5dde46a", "categorized_nodes": 414}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,384
c
/** * Universidad de La Laguna * Escuela Superior de Ingeniería y Tecnología * Grado en Ingeniería Informática * Informática Básica * * @author <NAME> * @date 10 Dec 2020 * @brief Declaration of the Cent class */ #ifndef CENTS_H #define CENTS_H #include <iostream> class Cents { public: Cents(int cents) :...
25.32
25
(translation_unit) "/**\n * Universidad de La Laguna\n * Escuela Superior de Ingeniería y Tecnología\n * Grado en Ingeniería Informática\n * Informática Básica\n *\n * @author <NAME>\n * @date 10 Dec 2020\n * @brief Declaration of the Cent class\n */\n\n#ifndef CENTS_H\n#define CENTS_H\n\n#include <iostream>\n\nclass C...
119
8
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 25.32, "nodes": 67, "errors": 0, "source_hash": "ad2918530cc03bf5e1b0e7508a3547e3e04739f894cf85b9fba8b54e3e2b5405", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "f CENTS_...
3,385
c
/* * * Class used to read in .hdr files that are of the RGBE format and are run-length * encoded. In the current itteration, it is expected that the hdr file will have * phi along the x-axis and theta along the y-axis. * * * This class is part of the implimentation and is not intended for public * use. * * ...
25.96
135
(translation_unit) "/* \n* \n* Class used to read in .hdr files that are of the RGBE format and are run-length \n* encoded. In the current itteration, it is expected that the hdr file will have \n* phi along the x-axis and theta along the y-axis. \n* \n* \n* This class is part of the implimentation and is not intended...
250
12
{"language": "c", "success": true, "metadata": {"lines": 135, "avg_line_length": 25.96, "nodes": 149, "errors": 0, "source_hash": "8fd99fda1519fd87eccebeb4a99fd1dd16d1c12f335ad427d7670bf682d8f53b", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
3,386
c
#ifndef DYN_ARR_H #define DYN_ARR_H #include <stdlib.h> #include <string.h> /* Dynamic array of elements of size el_size */ struct dyn_arr { size_t el_size; size_t count; /* use a flexible array member instead of pointer? */ void *data; }; /* Dynamic array of pointers */ struct p_dyn_arr { size_t...
29.25
28
(translation_unit) "#ifndef DYN_ARR_H\n#define DYN_ARR_H\n\n#include <stdlib.h>\n#include <string.h>\n\n/* Dynamic array of elements of size el_size */\nstruct dyn_arr\n{\n size_t el_size;\n size_t count;\n /* use a flexible array member instead of pointer? */\n void *data;\n};\n\n/* Dynamic array of pointe...
243
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 29.25, "nodes": 191, "errors": 0, "source_hash": "ee0e296d5c8dfb3a7edaa7ef993a761874385d383ef0c66e6e1dc6cc405cd5c8", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,387
c
/* m_setvis.c - set the unseen-sequence */ #include "../h/mh.h" #include <stdio.h> void m_setvis (mp, seen) register struct msgs *mp; int seen; { register int msgnum; register char *cp, *dp, **ap; dp = NULL; if ((cp = m_find (usequence)) == NULL || (ap =...
23.29
34
(translation_unit) "/* m_setvis.c - set the unseen-sequence */\n\n#include "../h/mh.h"\n#include <stdio.h>\n\n\nvoid m_setvis (mp, seen)\nregister struct msgs *mp;\nint seen;\n{\n register int msgnum;\n register char *cp,\n *dp,\n **ap;\n\n dp = NULL;\n if ((cp = m_fin...
325
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 23.29, "nodes": 204, "errors": 0, "source_hash": "7a9fd2102d1176ea9c9a44f52cac0ca346532418747d3fcbc1e1e2868e5a6ce7", "categorized_nodes": 143}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,388
c
/* THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS IN USING, DISPLAYIN...
29.31
84
(translation_unit) "/* \nTHE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX \nSOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO \nEND-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A \nROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-US...
353
0
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 29.31, "nodes": 258, "errors": 0, "source_hash": "ad5840b3b94cab8341b1190ff53151940e5d3769c275d74e4023efed7e22e02b", "categorized_nodes": 155}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,389
c
/**************************************************************************** *file ctc_spool.h *author Copyright (C) 2011 Centec Networks Inc. All rights reserved. *date 2012-04-23 *version v2.0 The file define Share pool lib ****************************************************************************/ #...
28.1
82
(translation_unit) "/****************************************************************************\n *file ctc_spool.h\n\n *author Copyright (C) 2011 Centec Networks Inc. All rights reserved.\n\n *date 2012-04-23\n\n *version v2.0\n\n The file define Share pool lib\n **************************************************...
540
0
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 28.1, "nodes": 413, "errors": 0, "source_hash": "432adfc7da024188e67b33bcef54b589f326010b5125f848f4c394644547c7cc", "categorized_nodes": 241}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
3,390
c
// Copyright (c) 2012-2018 <NAME> // MIT license (see License.txt) #pragma once #include "common.h" #if defined(__cplusplus) extern "C" { #endif typedef struct tag_p4FileLocator p4FileLocator; void p4_diff_against_local(const char *depotPath, const char *rev, const char *localPath, b32 depotFirst); void p4_diff_aga...
36.67
15
(translation_unit) "// Copyright (c) 2012-2018 <NAME>\n// MIT license (see License.txt)\n\n#pragma once\n\n#include "common.h"\n\n#if defined(__cplusplus)\nextern "C" {\n#endif\n\ntypedef struct tag_p4FileLocator p4FileLocator;\nvoid p4_diff_against_local(const char *depotPath, const char *rev, const char *localPath, b...
155
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 36.67, "nodes": 101, "errors": 0, "source_hash": "9d5a5bd06a742d54e70b75178cd33d4efb85199488e894afbcfc6ff0e24d82c0", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
3,391
c
#ifndef ENCAVE_STL_LINKED_LIST #define ENCAVE_STL_LINKED_LIST #include "base/config.h" #include "algorithms.h" #include "iterator.h" namespace estl { template < class T > struct list_node { T data; list_node* next; }; template <class T, class Pointer = T*, class Reference = T& > struct linked_list_iterator...
24.92
155
(translation_unit) "#ifndef ENCAVE_STL_LINKED_LIST\n#define ENCAVE_STL_LINKED_LIST\n\n#include "base/config.h"\n#include "algorithms.h"\n#include "iterator.h"\n\nnamespace estl\n{\n template < class T >\n struct list_node\n {\n T data;\n list_node* next;\n };\n\n template <class T, class Pointer = T*, class Reference...
1,322
93
{"language": "c", "success": true, "metadata": {"lines": 155, "avg_line_length": 24.92, "nodes": 883, "errors": 0, "source_hash": "b4214537942b508a9bd2e618940e2d9bc77db29d5925eb6e5839d5f7b11a496e", "categorized_nodes": 583}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
3,392
c
/* * Copyright (c) 2009-2013 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR ...
32.85
316
(translation_unit) "/*\n * Copyright (c) 2009-2013 <NAME> <<EMAIL>>\n *\n * Permission to use, copy, modify, and distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVI...
2,731
1
{"language": "c", "success": true, "metadata": {"lines": 316, "avg_line_length": 32.85, "nodes": 1634, "errors": 0, "source_hash": "297c6d9878be0c8c2560b6e1e98324c5d0b0f0a7ab0328182fa16a36e5f8f65f", "categorized_nodes": 1216}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
3,393
c
/* * task_light_sensor.c * * Created on: Nov 25, 2020 * Authors: <NAME> and <NAME> * */ #include <main.h> #include "task_light_sensor.h" TaskHandle_t Task_Light_Sensor_Bottom_Half_Handle; uint16_t Packman_Color = LCD_COLOR_WHITE; // initializes packman's color to white /*********************************...
37.98
133
(translation_unit) "/*\n * task_light_sensor.c\n *\n * Created on: Nov 25, 2020\n * Authors: <NAME> and <NAME>\n *\n */\n\n#include <main.h>\n#include "task_light_sensor.h"\n\n\n TaskHandle_t Task_Light_Sensor_Bottom_Half_Handle;\n uint16_t Packman_Color = LCD_COLOR_WHITE; // initializes packman's color to white\n\n\...
884
0
{"language": "c", "success": true, "metadata": {"lines": 133, "avg_line_length": 37.98, "nodes": 515, "errors": 0, "source_hash": "58abfd4dbfe923064e4c0a1ede7df2a5a697771013cbffb511070c718b7d4ff7", "categorized_nodes": 367}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,394
c
// SPDX-License-Identifier: GPL-2.0+ /* * Dummy inodes to buffer blocks for garbage collection * * Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation. * * Written by <NAME>, <NAME>, and <NAME>. * Revised by <NAME>. * */ /* * This file adds the cache of on-disk blocks to be moved in garbage * c...
29.53
172
(translation_unit) "// SPDX-License-Identifier: GPL-2.0+\n/*\n * Dummy inodes to buffer blocks for garbage collection\n *\n * Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation.\n *\n * Written by <NAME>, <NAME>, and <NAME>.\n * Revised by <NAME>.\n *\n */\n/*\n * This file adds the cache of on-disk blo...
943
1
{"language": "c", "success": true, "metadata": {"lines": 172, "avg_line_length": 29.53, "nodes": 584, "errors": 0, "source_hash": "ae153d3d1dbd55062aef2d1668e4606322facb46d4b19b295bc7b436fb596fde", "categorized_nodes": 452}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,395
c
/** * * @file zlaswpc.c * * PLASMA computational routines * PLASMA is a software package provided by Univ. of Tennessee, * Univ. of California Berkeley and Univ. of Colorado Denver * * @version 2.6.0 * @author <NAME> * @date 2010-11-15 * @precisions normal z -> s d c * **/ #include "common.h" /********...
33.88
268
(translation_unit) "/**\n *\n * @file zlaswpc.c\n *\n * PLASMA computational routines\n * PLASMA is a software package provided by Univ. of Tennessee,\n * Univ. of California Berkeley and Univ. of Colorado Denver\n *\n * @version 2.6.0\n * @author <NAME>\n * @date 2010-11-15\n * @precisions normal z -> s d c\n *\n *...
1,096
7
{"language": "c", "success": true, "metadata": {"lines": 268, "avg_line_length": 33.88, "nodes": 583, "errors": 0, "source_hash": "43ab8ab5462c1f97278aa7b3eefd386d8b6cb8b7a6f39a20e33d6a8e54bc11e4", "categorized_nodes": 431}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,396
c
#ifndef COMPONENT_H_INCLUDED #define COMPONENT_H_INCLUDED #include <string> #include <vector> typedef int ComponentID; class Component { private: static ComponentID ID; public: Component(); virtual ~Component(); virtual Component* construct(); virtual...
27.1
30
(translation_unit) "#ifndef COMPONENT_H_INCLUDED \n#define COMPONENT_H_INCLUDED \n \n#include <string> \n#include <vector> \n \ntypedef int ComponentID; \n \nclass Component \n{ \n private: \n static ComponentID ID; \n \n public: \n Component(); \n virtual ~Component(); \n virtual Comp...
222
9
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 27.1, "nodes": 134, "errors": 0, "source_hash": "85b42db2ad7ff1f6c9588c9cdfe116db385d7d58b3ca172d971ea68d1479af3f", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,397
c
#pragma once #include <sstream> #include <cmath> #include "core/autodiff/UnaryOp.h" #include "core/formulas/maths/Mult.h" #include "core/pre_headers.h" namespace keops { ////////////////////////////////////////////////////////////// //// EXPONENTIAL : Exp< F > //// ///////////////////...
30.41
44
(translation_unit) "#pragma once\n\n#include <sstream>\n#include <cmath>\n\n#include "core/autodiff/UnaryOp.h"\n#include "core/formulas/maths/Mult.h"\n\n#include "core/pre_headers.h"\n\nnamespace keops {\n\n//////////////////////////////////////////////////////////////\n//// EXPONENTIAL : Exp< F > ...
340
11
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 30.41, "nodes": 214, "errors": 0, "source_hash": "86fa5fb7dbfe8369d5ef15ddc4ccd9f18fef9f54f2fa02fed43b563007f48411", "categorized_nodes": 146}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
3,398
c
#pragma once #ifndef ES_APP_VIEWS_GAME_LIST_GRID_GAME_LIST_VIEW_H #define ES_APP_VIEWS_GAME_LIST_GRID_GAME_LIST_VIEW_H #include "components/DateTimeComponent.h" #include "components/RatingComponent.h" #include "components/ScrollableContainer.h" #include "components/ImageGridComponent.h" #include "views/gamelist/ISimpl...
36.7
69
(translation_unit) "#pragma once\n#ifndef ES_APP_VIEWS_GAME_LIST_GRID_GAME_LIST_VIEW_H\n#define ES_APP_VIEWS_GAME_LIST_GRID_GAME_LIST_VIEW_H\n\n#include "components/DateTimeComponent.h"\n#include "components/RatingComponent.h"\n#include "components/ScrollableContainer.h"\n#include "components/ImageGridComponent.h"\n#in...
628
24
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 36.7, "nodes": 415, "errors": 0, "source_hash": "8b4f4255ad7fbd4de67e3054e51031d1e9480c12bbdae512b510e63367a924f8", "categorized_nodes": 297}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
3,399