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
/* Normally we should loose foo and keep _start and _init. With -u foo, we should keep that as well. */ void _start() __asm__("_start"); void _start() { } void __attribute__((section(".init"))) _init() { } int foo() __asm__("foo"); int foo() { static int x = 1; return x++; }
16.81
16
(translation_unit) "/* Normally we should loose foo and keep _start and _init. \n With -u foo, we should keep that as well. */\n\nvoid _start() __asm__("_start");\nvoid _start()\n{\n}\n\nvoid __attribute__((section(".init")))\n_init()\n{\n}\n\nint foo() __asm__("foo");\nint foo()\n{\n static int x = 1;\n return x+...
95
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 16.81, "nodes": 48, "errors": 0, "source_hash": "b0eb95b01eee5e116d50e751512cf42cf9ed8a735c92873fd5dec78eee4359ad", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "void _star...
6,500
c
/** * @file ScriptFile.h * @brief Declares functions the manipulate compiled scripts (*.bin). * @copyright Covered by 2-clause BSD, please refer to license.txt. * @author CloudiDust * @date 2010.02 */ #ifndef COMPILED_SCRIPT_FILE_H_INCLUDED #define COMPILED_SCRIPT_FILE_H_INCLUDED #include "CommonDe...
30.94
16
(translation_unit) "/** \n * @file ScriptFile.h \n * @brief Declares functions the manipulate compiled scripts (*.bin). \n * @copyright Covered by 2-clause BSD, please refer to license.txt. \n * @author CloudiDust \n * @date 2010.02 \n */ \n#ifndef COMPILED_SCRIPT_FILE_H_INCLUDED \n#define COMPILED_SCRIPT_FILE_H_IN...
62
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 30.94, "nodes": 40, "errors": 0, "source_hash": "dc9290a90763ab24063863789ed34f00c1ff53c630570516468b88fb4264aa91", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,501
c
/* Copyright (c) 2002-2017 Dovecot authors, see the included COPYING file */ #include "auth-common.h" #include "passdb.h" #ifdef PASSDB_SHADOW #include "safe-memset.h" #include <shadow.h> #define SHADOW_CACHE_KEY "%u" #define SHADOW_PASS_SCHEME "CRYPT" static enum passdb_result shadow_lookup(struct auth_request *...
29.08
100
(translation_unit) "/* Copyright (c) 2002-2017 Dovecot authors, see the included COPYING file */\n\n#include "auth-common.h"\n#include "passdb.h"\n\n#ifdef PASSDB_SHADOW\n\n#include "safe-memset.h"\n\n#include <shadow.h>\n\n#define SHADOW_CACHE_KEY "%u"\n#define SHADOW_PASS_SCHEME "CRYPT"\n\nstatic enum passdb_result\n...
738
2
{"language": "c", "success": true, "metadata": {"lines": 100, "avg_line_length": 29.08, "nodes": 436, "errors": 0, "source_hash": "82160fcf370dea6136eac9e091340c8460a11af9c92e0d7fd6cadd6e7be39c3a", "categorized_nodes": 318}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,502
c
/* ** EPITECH PROJECT, 2020 ** FASTAtools ** File description: ** string_ops */ #include "../inc/fasta.h" char *get_string_from_pos(char *str, int pos) { char *result = malloc(sizeof(char) *(strlen(str) - pos + 1)); int idx = 0; for (int i = pos; str[i]; i++, idx++) result[idx] = str[i]; resu...
21.25
16
(translation_unit) "/*\n** EPITECH PROJECT, 2020\n** FASTAtools\n** File description:\n** string_ops\n*/\n\n#include "../inc/fasta.h"\n\nchar *get_string_from_pos(char *str, int pos)\n{\n char *result = malloc(sizeof(char) *(strlen(str) - pos + 1));\n int idx = 0;\n\n for (int i = pos; str[i]; i++, idx++)\n ...
131
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 21.25, "nodes": 87, "errors": 0, "source_hash": "98a0c1ce23a7860e1bb6ff77dfa72cff1a038a7fa311eb294a42d4b7fdad936b", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
6,503
c
// // UIView+Screenshot.h // Gradient // // Created by <NAME> on 21/11/2013. // Copyright (c) 2013 <NAME>. All rights reserved. // @interface UIView (Screenshot) - (UIImage *)grd_screenshot; @end
19
10
(translation_unit) "//\n// UIView+Screenshot.h\n// Gradient\n//\n// Created by <NAME> on 21/11/2013.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n@interface UIView (Screenshot)\n\n- (UIImage *)grd_screenshot;\n\n@end\n" (comment) "//" (comment) "// UIView+Screenshot.h" (comment) "// Gradient" ...
32
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.0, "nodes": 17, "errors": 0, "source_hash": "d8b1f96b3ce9d5ec25991a54a0ed00ec296f8d63af44dc20ac652da8e3f6f850", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface UIView ...
6,504
c
/* * Copyright (c) 1999, 2003, 2004, 2007, 2008 Apple Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this ...
32.01
196
(translation_unit) "/*\n * Copyright (c) 1999, 2003, 2004, 2007, 2008 Apple Inc. All rights reserved.\n *\n * @APPLE_LICENSE_HEADER_START@\n * \n * This file contains Original Code and/or Modifications of Original Code\n * as defined in and that are subject to the Apple Public Source License\n * Version 2.0 (the 'Licen...
362
0
{"language": "c", "success": true, "metadata": {"lines": 196, "avg_line_length": 32.01, "nodes": 247, "errors": 0, "source_hash": "131dae3a831d7efb1d07a25fd4c149a087af36b39615833dc89cab64ffec6a20", "categorized_nodes": 142}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if defi...
6,505
c
#ifndef __HARDWARE_DMA2D_H__ #define __HARDWARE_DMA2D_H__ #include "ltdc.h" typedef enum { DMA2D_FILL_COLOR, DMA2D_COPY_COLOR, } DMA2D_MODE; typedef struct { LTDC_COLOR_MODEL cm; uint16_t x1; uint16_t y1; uint16_t x2; uint16_t y2; uint32_t color; } DMA2D_Rect; void dma2d_init(voi...
25.27
30
(translation_unit) "#ifndef __HARDWARE_DMA2D_H__\n#define __HARDWARE_DMA2D_H__\n\n#include "ltdc.h"\n\ntypedef enum {\n DMA2D_FILL_COLOR,\n DMA2D_COPY_COLOR,\n} DMA2D_MODE;\n\ntypedef struct\n{\n LTDC_COLOR_MODEL cm; \n uint16_t x1;\n uint16_t y1;\n uint16_t x2;\n uint16_t y2;\n uint32_t colo...
228
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 25.27, "nodes": 159, "errors": 0, "source_hash": "bb91215a73497ae969372b63a7da43d6b867a9e05aa283dcae37605da2745773", "categorized_nodes": 96}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,506
c
//***************************************************************************** // lp3p0_board.c // // board specific APIs // // Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/ // // // Redistribution and use in source and binary forms, with or without // modification, are permitte...
31.34
179
(translation_unit) "//***************************************************************************** \n// lp3p0_board.c \n// \n// board specific APIs \n// \n// Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/ \n// \n// \n// Redistribution and use in source and binary forms, with or without \n/...
537
0
{"language": "c", "success": true, "metadata": {"lines": 179, "avg_line_length": 31.34, "nodes": 276, "errors": 0, "source_hash": "f2caf547ed053df53ecb6c2ee73778a707a85ff001fb11fdbd436c5d673501b1", "categorized_nodes": 191}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,507
c
/* * Copyright 2018- The Pixie Authors. * * 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 ag...
35.1
277
(translation_unit) "/*\n * Copyright 2018- The Pixie Authors.\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 req...
1,769
79
{"language": "c", "success": true, "metadata": {"lines": 277, "avg_line_length": 35.1, "nodes": 991, "errors": 0, "source_hash": "8cd00d16f5ee14993a9aa256f591ab35d42da98bcfb05f4036ea970ccca70215", "categorized_nodes": 699}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
6,508
c
/* Copyright 2017 Urban Airship and Contributors */ #import <XCTest/XCTest.h> #import <OCMock/OCMock.h> #import "UADisposable.h" @interface UABaseTest : XCTestCase /** * Creates a nice mock for a given class. * @param aClass The class to mock. * @return The mocked class instance. */ - (id)mockForClass:(Class)aCl...
34.67
40
(translation_unit) "/* Copyright 2017 Urban Airship and Contributors */\n\n#import <XCTest/XCTest.h>\n#import <OCMock/OCMock.h>\n#import "UADisposable.h"\n\n@interface UABaseTest : XCTestCase\n\n/**\n * Creates a nice mock for a given class.\n * @param aClass The class to mock.\n * @return The mocked class instance.\n ...
150
15
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 34.67, "nodes": 92, "errors": 0, "source_hash": "a6772e956ddb771c651fa31df47edf66728236338324f549860b83d13543b637", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
6,509
c
#pragma once //------------------------------------------------------------------------------ /** @class Core::ExitHandler ExitHandlers are static objects which register themselves automatically once at startup and are called back from the Core::SysFunc::Exit() static method which is called right b...
33.81
36
(translation_unit) "#pragma once\n//------------------------------------------------------------------------------\n/**\n @class Core::ExitHandler\n \n ExitHandlers are static objects which register themselves automatically\n once at startup and are called back from the Core::SysFunc::Exit()\n static met...
86
6
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 33.81, "nodes": 39, "errors": 0, "source_hash": "9456d74ebac5f8cf41626521f8e5a9ac9860626e2aa9c754d04a30db74e81571", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
6,510
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import "AUTableView.h" @class AUScalingModel; @interface BEEScalableTableView : AUTableView { long long _currentLevel; CDUnknownBl...
38.57
23
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.\n//\n\n#import "AUTableView.h"\n\n@class AUScalingModel;\n\n@interface BEEScalableTableView : AUTableView\n{\n long lon...
204
21
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 38.57, "nodes": 125, "errors": 0, "source_hash": "34fb29c2aee358575c44a92c478b798f05b1a9fec482dbfaf54eee3b850d820c", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
6,511
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import <objc/NSObject.h> @class NSString; @interface GPBFileDescriptor : NSObject { NSString *package_; NSString *objcPrefix_; ...
37.7
20
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.\n//\n\n#import <objc/NSObject.h>\n\n@class NSString;\n\n@interface GPBFileDescriptor : NSObject\n{\n NSString *package_...
173
17
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 37.7, "nodes": 106, "errors": 0, "source_hash": "00e84f397618a3a7d665102f5dc5ffb684ac4ec075155eceabc557e13b86805e", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
6,512
c
/** * Copyright (C) Mellanox Technologies Ltd. 2020. ALL RIGHTS RESERVED. * See file LICENSE for terms. */ #include "ucc_global_opts.h" #include "utils/ucc_compiler_def.h" #include "utils/ucc_datastruct.h" UCC_LIST_HEAD(ucc_config_global_list); ucc_global_config_t ucc_global_config = { .log_component = {UCC...
37
28
(translation_unit) "/**\n * Copyright (C) Mellanox Technologies Ltd. 2020. ALL RIGHTS RESERVED.\n * See file LICENSE for terms.\n */\n\n#include "ucc_global_opts.h"\n#include "utils/ucc_compiler_def.h"\n#include "utils/ucc_datastruct.h"\n\nUCC_LIST_HEAD(ucc_config_global_list);\n\nucc_global_config_t ucc_global_config...
178
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 37.0, "nodes": 81, "errors": 0, "source_hash": "b164894c72d93433f0c06683d2a168739ffb9125c2cfcbca9f373fdc702f97ec", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
6,513
c
#pragma once // std includes #include <memory> // local includes #include <IChangeable.h> class CChangeNotification { public: CChangeNotification(std::weak_ptr<IChangeable> sourcePtr); ~CChangeNotification(); CChangeNotification(const CChangeNotification&) = delete; protected: std::weak_ptr<IChangeable> m_so...
18.29
17
(translation_unit) "#pragma once\n\n\n// std includes\n#include <memory>\n\n// local includes\n#include <IChangeable.h>\n\n\nclass CChangeNotification\n{\npublic:\n CChangeNotification(std::weak_ptr<IChangeable> sourcePtr);\n ~CChangeNotification();\n CChangeNotification(const CChangeNotification&) = delete;\n\n\nprote...
83
5
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 18.29, "nodes": 46, "errors": 0, "source_hash": "019096b2e099de43663dcae4893cbccfd7beefe7e038b0e831de4b03cb84ab0b", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
6,514
c
#pragma once namespace RB { enum class CollidingSideType { LEFT = 0, RIGHT = 1, UP = 2, DOWN = 3, }; }
9.36
11
(translation_unit) "#pragma once\n\nnamespace RB\n{\n enum class CollidingSideType\n {\n LEFT = 0,\n RIGHT = 1,\n UP = 2,\n DOWN = 3,\n };\n}" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (function_definition) "namespace RB\n{\n enum class CollidingSideType\n {\n L...
45
1
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 9.36, "nodes": 30, "errors": 0, "source_hash": "3de9550fc6d5d6a6dbb3725938148fceadc9950d193bdfbbe1632b25ee40d670", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
6,515
c
#pragma once int isalnum(int chr); int isalpha(int chr); int iscntrl(int chr); int isdigit(int chr); int islower(int chr); int isupper(int chr); int isgraph(int chr); int isprint(int chr); int ispunct(int chr); int isspace(int chr); int isxdigit(int chr); int tolower(int chr); int toupper(int chr);
20.43
14
(translation_unit) "#pragma once\n\nint isalnum(int chr);\nint isalpha(int chr);\nint iscntrl(int chr);\nint isdigit(int chr);\nint islower(int chr);\nint isupper(int chr);\nint isgraph(int chr);\nint isprint(int chr);\nint ispunct(int chr);\nint isspace(int chr);\nint isxdigit(int chr);\nint tolower(int chr);\nint tou...
147
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 20.43, "nodes": 107, "errors": 0, "source_hash": "a1166d138e3c6e565e40b159eae45b360622e762e26438dc5776b2554ac6ec52", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
6,516
c
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2004 <NAME> * * This library is open source and may be redistributed and/or modified under * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or * (at your option) any later version. The full license is in LICENSE file * included with this dis...
31.71
205
(translation_unit) "/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2004 <NAME> \n *\n * This library is open source and may be redistributed and/or modified under \n * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or \n * (at your option) any later version. The full license is in LICENSE file\n...
1,359
57
{"language": "c", "success": true, "metadata": {"lines": 205, "avg_line_length": 31.71, "nodes": 813, "errors": 0, "source_hash": "7749f8e21c3a71e68da1412f1bd56bafe8fb892f9b83d3a56461de6f74ac8f6b", "categorized_nodes": 602}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef OBJ_H...
6,517
c
#ifndef POSITION_H #define POSITION_H #include "bitboard.h" #include <cstdint> #include <string> using Move = std::int8_t; using Score = std::int8_t; constexpr Move invalid_move = -1; // First 4 squares cover 16. Each new square adds at most 5. // So needs at least 10 more moves to get the whole board. // 16 + 9*5 ...
30.73
70
(translation_unit) "#ifndef POSITION_H\n#define POSITION_H\n\n#include "bitboard.h"\n#include <cstdint>\n#include <string>\n\nusing Move = std::int8_t;\nusing Score = std::int8_t;\n\nconstexpr Move invalid_move = -1;\n\n// First 4 squares cover 16. Each new square adds at most 5.\n// So needs at least 10 more moves to ...
625
31
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 30.73, "nodes": 357, "errors": 0, "source_hash": "7d42494e9c5805add5b652e3168476396b7094de5705b04afe95e6775caae7ef", "categorized_nodes": 249}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef POSITI...
6,518
c
//10. Faça um Programa que peça a temperatura em graus Celsius, transforme e mostre em graus Fahrenheit. #include <stdlib.h> #include <stdio.h> #include <math.h> #include <locale.h> main(){ double TemperatureInFahrenheit, TemperatureInCelsius; setlocale(LC_ALL, "Portuguese"); printf("Digite a temperatu...
39.62
13
(translation_unit) "//10. Faça um Programa que peça a temperatura em graus Celsius, transforme e mostre em graus Fahrenheit.\n\n#include <stdlib.h>\n#include <stdio.h>\n#include <math.h>\n#include <locale.h>\n\nmain(){\n\n double TemperatureInFahrenheit, TemperatureInCelsius;\n\n setlocale(LC_ALL, "Portuguese");\...
97
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 39.62, "nodes": 48, "errors": 0, "source_hash": "ca20c13ae775793b28f10ce8c579d6d4993a0dfe1b1862640c58ae5e93900ce6", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "nclude...
6,519
c
//===- NativeEnumSymbol.h - info about enum type ----------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
40.41
49
(translation_unit) "//===- NativeEnumSymbol.h - info about enum type ----------------*- C++ -*-===//\n//\n// The LLVM Compiler Infrastructure\n//\n// This file is distributed under the University of Illinois Open Source\n// License. See LICENSE.TXT for details.\n//\n//===----------------------------...
355
21
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 40.41, "nodes": 195, "errors": 0, "source_hash": "a67f17303dc3debdaeef206469331c97f789bf2bb64cfbc94045e74b8c5d2702", "categorized_nodes": 138}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,520
c
#include <std.h> #include "../inherits/area_stuff.h" inherit RA_MR_MH; void create() { ::create(); set_exits((["west" : MRS"41", "east" : MRS"43"])); wwall = "northern"; //sexit = "north"; hidden_room = MRS"134"; }
18
12
(translation_unit) "#include <std.h>\n#include "../inherits/area_stuff.h"\ninherit RA_MR_MH;\n\nvoid create() \n{\n ::create();\n set_exits((["west" : MRS"41", \n "east" : MRS"43"]));\n wwall = "northern";\n //sexit = "north";\n hidden_room = MRS"134"; \n}\n" (preproc_include) "#include <std.h>\n" (#include) ...
92
2
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 18.0, "nodes": 42, "errors": 0, "source_hash": "b1077b2565b20c3be15660e6a86d974508071b7ef835c8af55b05e1f1c056bc5", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
6,521
c
#ifndef _SAFEKIDDO_SOCKETUTILS_H_ #define _SAFEKIDDO_SOCKETUTILS_H_ #include <sys/socket.h> void safeSetsockopt(int sockfd, int level, int optname, const void *optval, socklen_t optlen); #endif /* _SAFEKIDDO_SOCKETUTILS_H_ */
44.2
5
(translation_unit) "#ifndef _SAFEKIDDO_SOCKETUTILS_H_\n#define _SAFEKIDDO_SOCKETUTILS_H_\n\n#include <sys/socket.h>\n\nvoid safeSetsockopt(int sockfd, int level, int optname, const void *optval, socklen_t optlen);\n\n#endif /* _SAFEKIDDO_SOCKETUTILS_H_ */\n" (preproc_ifdef) "#ifndef _SAFEKIDDO_SOCKETUTILS_H_\n#define...
43
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 44.2, "nodes": 32, "errors": 0, "source_hash": "c13d67767433de83b41649024036dd9c74d7244cefc1c8ca6f5d28b5b1a53d45", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _S...
6,522
c
// gcc -o test init_window.c -I. -lwayland-client -lwayland-server -lwayland-client-protocol -lwayland-egl -lEGL -lGLESv2 #include <wayland-client.h> #include <wayland-server.h> #include <wayland-client-protocol.h> #include <wayland-egl.h> // Wayland EGL MUST be included before EGL headers #include "init_window.h" #in...
31.06
207
(translation_unit) "// gcc -o test init_window.c -I. -lwayland-client -lwayland-server -lwayland-client-protocol -lwayland-egl -lEGL -lGLESv2\n#include <wayland-client.h>\n#include <wayland-server.h>\n#include <wayland-client-protocol.h>\n#include <wayland-egl.h> // Wayland EGL MUST be included before EGL headers\n\n#i...
1,656
0
{"language": "c", "success": true, "metadata": {"lines": 207, "avg_line_length": 31.06, "nodes": 972, "errors": 0, "source_hash": "de2edab04e6d2f276d1da2d8fa52c88a3d92ec1025d706d03827629ef255df3e", "categorized_nodes": 680}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,523
c
// // cruncher.h // RustPack // // Created by Delisa on 11/15/16. // Copyright © 2016 <NAME>. All rights reserved. // #ifndef cruncher_h #define cruncher_h #include <stdint.h> int32_t square(int32_t num); int32_t cube(int32_t num); #endif /* cruncher_h */
19
13
(translation_unit) "//\n// cruncher.h\n// RustPack\n//\n// Created by Delisa on 11/15/16.\n// Copyright © 2016 <NAME>. All rights reserved.\n//\n\n#ifndef cruncher_h\n#define cruncher_h\n\n#include <stdint.h>\n\nint32_t square(int32_t num);\nint32_t cube(int32_t num);\n\n#endif /* cruncher_h */\n" (comment) "//" ...
41
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 19.0, "nodes": 26, "errors": 0, "source_hash": "caf31fdfaf36d0542f646bf3bc018035b8ef303c4bf294850ba6d5616c2287a9", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef cr...
6,524
c
// DO NOT EDIT. This file is machine-generated and constantly overwritten. // Make changes to Project.h instead. @import CoreData; extern const struct ProjectAttributes { __unsafe_unretained NSString *crm_actualenddate; __unsafe_unretained NSString *crm_assigned_user_id; __unsafe_unretained NSString *crm_assigned_...
49.37
145
(translation_unit) "// DO NOT EDIT. This file is machine-generated and constantly overwritten.\n// Make changes to Project.h instead.\n\n@import CoreData;\n\nextern const struct ProjectAttributes {\n __unsafe_unretained NSString *crm_actualenddate;\n __unsafe_unretained NSString *crm_assigned_user_id;\n __unsafe_unreta...
1,696
158
{"language": "c", "success": true, "metadata": {"lines": 145, "avg_line_length": 49.37, "nodes": 1117, "errors": 0, "source_hash": "c51c79348ee733930f5e3be2baab64725b0266a91f907c8fa0260c40824505c5", "categorized_nodes": 616}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent"...
6,525
c
/** ****************************************************************************** * @file chrg_ctrl.h * @author <NAME> * @version 1.0 * @date 2018-03-10 * @brief DebugDongle charger controls header * * Copyright (c) 2018 <NAME> * * Licensed under the Apache License, Version 2.0 (...
23.17
72
(translation_unit) "/** \n ****************************************************************************** \n * @file chrg_ctrl.h \n * @author <NAME> \n * @version 1.0 \n * @date 2018-03-10 \n * @brief DebugDongle charger controls header \n * \n * Copyright (c) 2018 <NAME> \n * \n * Licensed under the...
209
0
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 23.17, "nodes": 150, "errors": 0, "source_hash": "2375f1d3e040ae1dcce9147b5dbacdf1ba2754160eef4869d3a1f0abd47fed46", "categorized_nodes": 109}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,526
c
/*++ Copyright (c) 1997-2000 Microsoft Corporation All Rights Reserved Module Name: hw.h Abstract: Declaration of MSVAD HW class. MSVAD HW has an array for storing mixer and volume settings for the topology. --*/ #ifndef _MSVAD_HW_H_ #define _MSVAD_HW_H_ //=====================================...
30.58
83
(translation_unit) "/*++\n\nCopyright (c) 1997-2000 Microsoft Corporation All Rights Reserved\n\nModule Name:\n\n hw.h\n\nAbstract:\n\n Declaration of MSVAD HW class. \n MSVAD HW has an array for storing mixer and volume settings\n for the topology.\n\n--*/\n\n#ifndef _MSVAD_HW_H_\n#define _MSVAD_HW_H_\n\n...
267
12
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 30.58, "nodes": 175, "errors": 0, "source_hash": "bbaf3e9d49dfbb123b240683724689af0ef415b243084f85561af0a31b4fbd6c", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,527
c
/************************************************************************************\ * OSUtilities - An Andrew Shurney Production * \************************************************************************************/ /*! \file SingleThreadBlock.h * \author <NAME> * \bri...
39.14
22
(translation_unit) "/************************************************************************************\\n * OSUtilities - An Andrew Shurney Production *\n\************************************************************************************/\n\n/*! \file SingleThreadBlock.h\n * ...
114
2
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 39.14, "nodes": 77, "errors": 0, "source_hash": "5f7074bc04c341f5b54b4348a1cd19761d06d89505c822de150084047bb9282c", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,528
c
#ifndef IMPORTS_H #define IMPORTS_H #include <stdlib.h> #include <stdarg.h> #include "types.h" #define MCP_SVC_BASE ((void*)0x050567EC) void usleep(u32 time); #endif
19.75
8
(translation_unit) "#ifndef IMPORTS_H\n#define IMPORTS_H\n\n#include <stdlib.h>\n#include <stdarg.h>\n#include "types.h"\n\n#define MCP_SVC_BASE ((void*)0x050567EC)\n\nvoid usleep(u32 time);\n\n#endif\n" (preproc_ifdef) "#ifndef IMPORTS_H\n#define IMPORTS_H\n\n#include <stdlib.h>\n#include <stdarg.h>\n#include "types...
35
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 19.75, "nodes": 28, "errors": 0, "source_hash": "a9fda41c991ff6a8766eedd35ebd8c0effb434a617056795de12cb85d6bffc4d", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef I...
6,529
c
/* RageTexture - Abstract class for a texture and metadata. */ #ifndef RAGE_TEXTURE_H #define RAGE_TEXTURE_H #include "RageTextureID.h" #include "RageUtil/Misc/RageTimer.h" #include "RageUtil/Misc/RageTypes.h" struct lua_State; class RageTexture { public: RageTexture(const RageTextureID& file); virtual ~RageTe...
35.14
108
(translation_unit) " RageTexture - Abstract class for a texture and metadata. */\n\n#ifndef RAGE_TEXTURE_H\n#define RAGE_TEXTURE_H\n\n#include "RageTextureID.h"\n#include "RageUtil/Misc/RageTimer.h"\n#include "RageUtil/Misc/RageTypes.h"\n\nstruct lua_State;\nclass RageTexture\n{\n public:\n RageTexture(const RageText...
896
44
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 35.14, "nodes": 501, "errors": 0, "source_hash": "33d8871b48a9428ee19151096c8cb6d3377c3d52f162153dc794cd3d4424436b", "categorized_nodes": 331}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef...
6,530
c
/* * This header is generated by classdump-dyld 1.0 * on Wednesday, March 22, 2017 at 9:01:44 AM Mountain Standard Time * Operating System: Version 10.1 (Build 14U593) * Image Source: /System/Library/Frameworks/CoreImage.framework/CoreImage * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>. */ ...
32.53
19
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Wednesday, March 22, 2017 at 9:01:44 AM Mountain Standard Time\n* Operating System: Version 10.1 (Build 14U593)\n* Image Source: /System/Library/Frameworks/CoreImage.framework/CoreImage\n* classdump-dyld is licensed under GPLv3, Copyright © ...
107
11
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 32.53, "nodes": 63, "errors": 0, "source_hash": "ac47ce18dffe1fc9cd58b9a630b82e5f8eddf00e30d1c826852c76e3db0773f5", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <C...
6,531
c
/* * Copyright (c) 2006-2020, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2019-10-12 Jesven first version */ #ifndef __LWP_SHM_H__ #define __LWP_SHM_H__ #include <lwp_avl.h> #ifdef __cplusplus extern "C" { #endif int lw...
21.58
24
(translation_unit) "/*\n * Copyright (c) 2006-2020, RT-Thread Development Team\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Change Logs:\n * Date Author Notes\n * 2019-10-12 Jesven first version\n */\n#ifndef __LWP_SHM_H__\n#define __LWP_SHM_H__\n\n#include <lwp_avl.h>\n\n#ifdef __cpl...
107
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 21.58, "nodes": 80, "errors": 0, "source_hash": "b16c53a2dfa9b02874690a2627c00aede26c69ac8efeb8654b7925434daa5476", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,532
c
#include "ed25519.h" #include "sha512.h" void ed25519_key_convert_ref10_to_orlp(const unsigned char *private_key_ref10, unsigned char *private_key_orlp) { sha512(private_key_ref10, 32, private_key_orlp); private_key_orlp[0] &= 248; private_key_orlp[31] &= 63; private_key_orlp[31] |= 64; }
36.25
8
(translation_unit) "#include "ed25519.h"\n#include "sha512.h"\n\nvoid ed25519_key_convert_ref10_to_orlp(const unsigned char *private_key_ref10, unsigned char *private_key_orlp) {\n sha512(private_key_ref10, 32, private_key_orlp);\n private_key_orlp[0] &= 248;\n private_key_orlp[31] &= 63;\n private_key_orlp[31] |= ...
82
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 36.25, "nodes": 49, "errors": 0, "source_hash": "60cc29fcbd3e94854f047b889445f3652b9142ba756710df06965754554bd3c4", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
6,533
c
/* * Copyright (C) 2019-2020 Alibaba Group Holding Limited */ #ifndef _TAG_BLE_OTA_ #define _TAG_BLE_OTA_ #include <stdint.h> typedef enum { OTA_ST_IDLE = 0, OTA_ST_START, OTA_ST_REQUEST, OTA_ST_DL, OTA_ST_FLASH, OTA_ST_STOP, OTA_ST_COMPLETE, } ota_state_en; typedef void (*ota_event_ca...
25.3
20
(translation_unit) "/*\n * Copyright (C) 2019-2020 Alibaba Group Holding Limited\n */\n\n#ifndef _TAG_BLE_OTA_\n#define _TAG_BLE_OTA_\n\n#include <stdint.h>\n\ntypedef enum {\n OTA_ST_IDLE = 0,\n OTA_ST_START,\n OTA_ST_REQUEST,\n OTA_ST_DL,\n OTA_ST_FLASH,\n OTA_ST_STOP,\n OTA_ST_COMPLETE,\n} ota_s...
82
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 25.3, "nodes": 57, "errors": 0, "source_hash": "fa778434bd8e5e1953d987d4f4f2d713d72eef0f9765e4268e16fceea7d4201a", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
6,534
c
#include "apue.h" char*path_alloc(size_t* size) { char *p = NULL; if(!size) return NULL; p = malloc(256); if(p) *size = 256; else *size = 0; return p; }
11.75
12
(translation_unit) "#include "apue.h"\nchar*path_alloc(size_t* size)\n{\nchar *p = NULL;\nif(!size) return NULL;\np = malloc(256);\nif(p)\n*size = 256;\nelse\n*size = 0;\nreturn p;\n}\n" (preproc_include) "#include "apue.h"\n" (#include) "#include" (string_literal) ""apue.h"" (") """ (string_conte...
86
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 11.75, "nodes": 57, "errors": 0, "source_hash": "545502a79580792d6c9bb581bab32569172015db731d88f6f50271264084fa40", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
6,535
c
// // Created by usuario on 20/8/19. // #ifndef COLINA_ENGINE_ENDGAME_H #define COLINA_ENGINE_ENDGAME_H #include "Action.h" class EndGame : public Action { public: EndGame(); virtual void run() override; }; #endif //COLINA_ENGINE_ENDGAME_H
19.08
13
(translation_unit) "//\n// Created by usuario on 20/8/19.\n//\n\n#ifndef COLINA_ENGINE_ENDGAME_H\n#define COLINA_ENGINE_ENDGAME_H\n\n#include "Action.h"\n\nclass EndGame : public Action {\n public:\n EndGame();\n virtual void run() override;\n};\n\n\n#endif //COLINA_ENGINE_ENDGAME_H\n" (comment) "//"...
52
3
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 19.08, "nodes": 26, "errors": 0, "source_hash": "e01f15eecbdc3f4add756df7de1476c80f57c8dd3d12dad73e4b86384099f8f2", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,536
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* random.c :+: :+: :+: ...
34.91
45
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* random.c ...
283
0
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 34.91, "nodes": 184, "errors": 0, "source_hash": "e936a0695760f4089dc51a746cc66d5404cb54c7f60207fd54385901e442eae4", "categorized_nodes": 139}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,537
c
/////////////////////////////////////////////////////////////////////////////// // BOSSA // // Copyright (c) 2011-2018, ShumaTech // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redis...
35.95
84
(translation_unit) "///////////////////////////////////////////////////////////////////////////////\n// BOSSA\n//\n// Copyright (c) 2011-2018, ShumaTech\n// All rights reserved.\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditi...
369
8
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 35.95, "nodes": 190, "errors": 0, "source_hash": "35dd4838edefe66eb57a3106a4f5684ea60470c325c966a9758116efcf6d3204", "categorized_nodes": 149}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,538
c
/** * @file src/controller.h * * Controller abstraction so it doesn't matter if it's the player 1, 2 or if * they are playing on a controller or keyboard */ #ifndef __CONTROLLER_H_ #define __CONTROLLER_H_ typedef enum { CTR_KEYS_A, CTR_KEYS_B, CTR_KEYS_C, CTR_KEYS_D, CTR_PAD1_A, CTR_PAD1_...
22.74
100
(translation_unit) "/**\n * @file src/controller.h\n * \n * Controller abstraction so it doesn't matter if it's the player 1, 2 or if\n * they are playing on a controller or keyboard\n */\n#ifndef __CONTROLLER_H_\n#define __CONTROLLER_H_\n\ntypedef enum {\n CTR_KEYS_A,\n CTR_KEYS_B,\n CTR_KEYS_C,\n CTR_KEYS...
198
0
{"language": "c", "success": true, "metadata": {"lines": 100, "avg_line_length": 22.74, "nodes": 134, "errors": 0, "source_hash": "a52bc846f76b6f07590a0b67e5c16a13fa6e3e25e78a08973f723cbb69724949", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,539
c
// // Generated file, do not edit! Created by opp_msgc 4.1 from overlay/basic/TimeoutMessage.msg. // #ifndef _TIMEOUTMESSAGE_M_H_ #define _TIMEOUTMESSAGE_M_H_ #include <omnetpp.h> // opp_msgc version check #define MSGC_VERSION 0x0401 #if (MSGC_VERSION!=OMNETPP_VERSION) # error Version mismatch! Probably this file...
33.44
43
(translation_unit) "//\n// Generated file, do not edit! Created by opp_msgc 4.1 from overlay/basic/TimeoutMessage.msg.\n//\n\n#ifndef _TIMEOUTMESSAGE_M_H_\n#define _TIMEOUTMESSAGE_M_H_\n\n#include <omnetpp.h>\n\n// opp_msgc version check\n#define MSGC_VERSION 0x0401\n#if (MSGC_VERSION!=OMNETPP_VERSION)\n# error Vers...
296
19
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 33.44, "nodes": 188, "errors": 0, "source_hash": "cbf4c6a4b9044b01c040b4e5e4de1a5c9c6cc25b14fef3ecf391ffb05674da8f", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef _TIMEO...
6,540
c
// // WYAppDelegate.h // NetWorkHudExtend // // Created by <EMAIL> on 11/28/2018. // Copyright (c) 2018 <EMAIL>. All rights reserved. // @import UIKit; @interface WYAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
23.73
11
(translation_unit) "//\n// WYAppDelegate.h\n// NetWorkHudExtend\n//\n// Created by <EMAIL> on 11/28/2018.\n// Copyright (c) 2018 <EMAIL>. All rights reserved.\n//\n\n@import UIKit;\n\n@interface WYAppDelegate : UIResponder <UIApplicationDelegate>\n\n@property (strong, nonatomic) UIWindow *window;\n\n@end\n" (comm...
42
8
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 23.73, "nodes": 26, "errors": 0, "source_hash": "43417bc88b325087b177615a1ae82e2c924d086a2b9fcc9ede5a06308de5d6c5", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nu...
6,541
c
#pragma once #include <windows.h> #include <GL/gl.h> #include <string> #include "Vector.h" class Layer { public: Layer(std::string name, GLfloat widthLayer, GLfloat heightLayer, Vector2f vel, GLfloat constantX, bool hasRepetition, bool isContinuous); ~Layer(void); void drawLaye...
26
53
(translation_unit) "#pragma once \n \n#include <windows.h> \n#include <GL/gl.h> \n \n#include <string> \n \n#include "Vector.h" \n \nclass Layer \n{ \n public: \n Layer(std::string name, GLfloat widthLayer, GLfloat heightLayer, Vector2f vel, \n GLfloat constantX, bool hasRepetition, bool isContinuous); \n ...
378
8
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 26.0, "nodes": 229, "errors": 0, "source_hash": "67aef70b273bfe3e31332ebf5913ac59f1a908acbf817cdd19b95eb2dd2edf7a", "categorized_nodes": 177}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
6,542
c
/* Copyright (c) 2009-2016, <NAME> All rights reserved. This file is part of Elemental and is under the BSD 2-Clause License, which can be found in the LICENSE file in the root directory, or at http://opensource.org/licenses/BSD-2-Clause */ #ifndef EL_TYPES_C_H #define EL_TYPES_C_H #ifdef __cplusplus...
19.32
227
(translation_unit) "/*\n Copyright (c) 2009-2016, <NAME>\n All rights reserved.\n\n This file is part of Elemental and is under the BSD 2-Clause License, \n which can be found in the LICENSE file in the root directory, or at \n http://opensource.org/licenses/BSD-2-Clause\n*/\n#ifndef EL_TYPES_C_H\n#define EL_...
786
3
{"language": "c", "success": true, "metadata": {"lines": 227, "avg_line_length": 19.32, "nodes": 517, "errors": 0, "source_hash": "c3f91844e2bdc3f42d55203ab0053a10966c070bb0a47a26dd3dfd06e1f7740e", "categorized_nodes": 435}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef EL_TY...
6,543
c
#include "io.inc" int f[2801]; int main() { int a = 10000; int b = 0; int c = 2800; int d = 0; int e = 0; int g = 0; for (; b - c != 0;) f[b++] = a / 5; for (;; e = d % a) { d = 0; g = c * 2; if (g == 0) break; for (b = c;; d = d * b) { d = d + f[b] * a; f[b] = d ...
15.76
29
(translation_unit) "#include "io.inc"\nint f[2801];\nint main() {\n int a = 10000;\n int b = 0;\n int c = 2800;\n int d = 0;\n int e = 0;\n int g = 0;\n\n for (; b - c != 0;)\n f[b++] = a / 5;\n for (;; e = d % a) {\n d = 0;\n g = c * 2;\n if (g == 0)\n break;\n\n for (b = c;; d = d * b) {\n...
256
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 15.76, "nodes": 176, "errors": 0, "source_hash": "ff90565a3d2046c9c7cfdd5376fbe41edd6336705b89ba98c43cc7b6172c0b41", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,544
c
#include "milone.h" struct StringStringTuple2_; void const* dup_(void const* arg_); void const* bug_(void const* b_); int milone_main(void); struct StringStringTuple2_ { struct String t0; struct String t1; }; void const* dup_(void const* arg_) { struct String x_ = (*(((struct String const*)arg_))); ...
37.03
30
(translation_unit) "#include "milone.h"\n\nstruct StringStringTuple2_;\n\nvoid const* dup_(void const* arg_);\n\nvoid const* bug_(void const* b_);\n\nint milone_main(void);\n\nstruct StringStringTuple2_ {\n struct String t0;\n struct String t1;\n};\n\nvoid const* dup_(void const* arg_) {\n struct String x_ = (...
477
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 37.03, "nodes": 297, "errors": 0, "source_hash": "28d7f3c541a9b44b6b9fd265e61f10c497443b6081cc7f42d9f0ee588f70c921", "categorized_nodes": 185}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,545
c
#pragma once CString g_strUTF16BOM = L"我是UTF16编码带BOM,ありがど。版本三";
21.67
3
(translation_unit) "ragma once \n \nCString g_strUTF16BOM = L"我是UTF16编码带BOM,ありがど。版本三"; \n" (preproc_call) "ragma once \n \n" (preproc_directive) "ragma o" (preproc_arg) "ce \n " (declaration) "tring g_strUTF16BOM = L"我是UTF16编码带BOM,ありがど。版本三"; \n" (type_identifier) "tring g" (init_declarator) "strUTF1...
14
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 21.67, "nodes": 10, "errors": 0, "source_hash": "fcd235043d8bc2987e9c462e7fc786ee1c4504c5ee863a0a72060179fbb30a11", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma once\...
6,546
c
#pragma once #include "LambdaEngine.h" #include "Containers/String.h" #include "Math/Math.h" namespace LambdaEngine { class NetworkSegment; class LAMBDA_API BinaryEncoder { public: BinaryEncoder(NetworkSegment* pPacket); ~BinaryEncoder(); bool WriteInt8(int8 value); bool WriteUInt8(uint8 value); bool...
27.18
33
(translation_unit) "#pragma once\n\n#include "LambdaEngine.h"\n#include "Containers/String.h"\n\n#include "Math/Math.h"\n\nnamespace LambdaEngine\n{\n class NetworkSegment;\n\n class LAMBDA_API BinaryEncoder\n {\n public:\n BinaryEncoder(NetworkSegment* pPacket);\n ~BinaryEncoder();\n\n bool WriteInt8(int8 value);\n...
304
6
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 27.18, "nodes": 191, "errors": 0, "source_hash": "c4086a2a4b65101b3048f609d1218c3a93e63d73862f2b48af5c4efa230cacd7", "categorized_nodes": 138}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
6,547
c
// // BBRfreshView.h // Bilibili_Demo // // Created by 张征鸿 on 2017/8/23. // Copyright © 2017年 张征鸿. All rights reserved. // #import <UIKit/UIKit.h> #import "BBRfreshAnimationLayer.h" @interface BBRfreshView : UIView @property (nullable, strong, nonatomic) UIView *showView; NS_ASSUME_NONNULL_BEGIN - (void)showFro...
23
16
(translation_unit) "//\n// BBRfreshView.h\n// Bilibili_Demo\n//\n// Created by 张征鸿 on 2017/8/23.\n// Copyright © 2017年 张征鸿. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "BBRfreshAnimationLayer.h"\n@interface BBRfreshView : UIView\n\n\n@property (nullable, strong, nonatomic) UIView *showView;\n\nNS_A...
60
8
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 23.0, "nodes": 40, "errors": 0, "source_hash": "2cd2d7d434d8f94e3bec91bfcbc165cf4cda889aae6dae9ac643c2e6a49f7ffc", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit.h>\n...
6,548
c
#include "pineapple/common/utils.h" void concat_str(char** destination, const char* source) { size_t new_size = strlen(*destination) + strlen(source) + 1; char* new_buffer = malloc(sizeof(char) * new_size); strcpy(new_buffer, *destination); strcat(new_buffer, source); *destination = new_buffer; } void concat_dec...
25.97
29
(translation_unit) "#include "pineapple/common/utils.h"\n\nvoid concat_str(char** destination, const char* source) {\n size_t new_size = strlen(*destination) + strlen(source) + 1;\n char* new_buffer = malloc(sizeof(char) * new_size);\n strcpy(new_buffer, *destination);\n strcat(new_buffer, source);\n *destination = new...
293
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 25.97, "nodes": 192, "errors": 0, "source_hash": "6c29ba9e4b4dca0a205123a3c55b453aa9417ac46d2b5b70db4a907c1ee80a95", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,549
c
#include <qdatetime.h> class CpuStat { public: CpuStat(); void statistic(double &user, double &system); QTime upTime() const; enum Value { User, Nice, System, Idle, NValues }; private: void lookUp(double[NValues]) const; double procValues[NVal...
16.11
19
(translation_unit) "#include <qdatetime.h>\n\nclass CpuStat \n{\npublic:\n CpuStat();\n void statistic(double &user, double &system);\n QTime upTime() const;\n\n enum Value\n {\n User,\n Nice,\n System,\n Idle,\n\n NValues\n };\n\nprivate:\n void lookUp(double[NVa...
98
5
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 16.11, "nodes": 53, "errors": 0, "source_hash": "4a2384b19624d2383967dfe97366541cffdde388ffb6b5f0e59c856c0506cf67", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
6,550
c
// -*- C++ -*- //============================================================================= /** * @file Filecache.h * * @author <NAME> */ //============================================================================= #ifndef ACE_FILECACHE_H #define ACE_FILECACHE_H #include /**/ "ace/pre.h" #include "a...
32.98
284
(translation_unit) "// -*- C++ -*-\n\n//=============================================================================\n/**\n * @file Filecache.h\n *\n * @author <NAME>\n */\n//=============================================================================\n\n\n#ifndef ACE_FILECACHE_H\n#define ACE_FILECACHE_H\n\n#inc...
1,085
42
{"language": "c", "success": true, "metadata": {"lines": 284, "avg_line_length": 32.98, "nodes": 642, "errors": 0, "source_hash": "abdd6ebcc29cbdc763015de05caee188664abec1530568b970edd486430f959b", "categorized_nodes": 414}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef ACE_F...
6,551
c
// Some basic includes #ifndef __KERNEL_H #define __KERNEL_H #include <stdbool.h> #include <stddef.h> #include <stdint.h> #endif
17.43
7
(translation_unit) "// Some basic includes\n#ifndef __KERNEL_H\n#define __KERNEL_H\n\n#include <stdbool.h>\n#include <stddef.h>\n#include <stdint.h>\n\n#endif" (comment) "// Some basic includes" (preproc_ifdef) "#ifndef __KERNEL_H\n#define __KERNEL_H\n\n#include <stdbool.h>\n#include <stddef.h>\n#include <stdint.h>...
18
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 17.43, "nodes": 16, "errors": 0, "source_hash": "0a75d117129e641b94c3d0cae55e99b508cde809b3640bc1164b1bd180f060f1", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
6,552
c
#include <stdio.h> #ifdef FOO XXX #ifdef BAR XXX #endif XXX #endif #define FOO 1 #ifdef FOO #ifdef FOO int x = 0; #endif int test() { return x; } #endif int main () { int x; x = test(); printf("%d\n", x); return 0; }
7.85
26
(translation_unit) "#include <stdio.h>\n#ifdef FOO\n XXX\n#ifdef BAR\n XXX\n#endif\n XXX\n#endif\n\n#define FOO 1\n\n#ifdef FOO\n\n#ifdef FOO\nint x = 0;\n#endif\n\nint\ntest()\n{\n return x;\n}\n#endif\n\n\n\nint main () {\n int x;\n x = test();\n printf("%d\n", x);\n return 0;\n}" (preproc_include) "#include <s...
92
2
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 7.85, "nodes": 63, "errors": 0, "source_hash": "15a2119542f182cabe4c346f7f6f8ae1084efe72642ac7dee17011374c662966", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
6,553
c
//这个类只负责url中含有特殊符号的编码和解码 //进行url编码 (但是不对汉字和空格进行编码) - (NSString *)encodeToPercentEscapeString:(NSString *)input { NSString *outputStr = (NSString *)CFBridgingRelease(CFURLCreateStringByAddingPercentEscapes( kCFAllocatorDefault, (CFStringRef)input, NULL, (CFStringRef) @"!*'();:@&=+ $,/?%#[]...
37
14
(translation_unit) "//这个类只负责url中含有特殊符号的编码和解码\n\n//进行url编码 (但是不对汉字和空格进行编码)\n- (NSString *)encodeToPercentEscapeString:(NSString *)input {\n NSString *outputStr =\n (NSString *)CFBridgingRelease(CFURLCreateStringByAddingPercentEscapes(\n kCFAllocatorDefault, (CFStringRef)input, NULL,\n (CFStringRe...
117
10
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 37.0, "nodes": 70, "errors": 0, "source_hash": "07e4a139983ed641d4fc211bb6f7392a511d3cb2230514f9cb3cd1db7a3c5f49", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "tputStr =\n ...
6,554
c
// A program that simulates the game of craps. #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <time.h> // needed for the random function. #include <stdbool.h> #include <ctype.h> int roll_dice(void); bool play_game(void); // main will call play_game repeatedly and keep track of wins and losses. /...
28.08
88
(translation_unit) "// A program that simulates the game of craps.\n\n#include <stdio.h>\n#include <stdint.h>\n#include <stdlib.h>\n#include <time.h> // needed for the random function.\n#include <stdbool.h>\n#include <ctype.h>\n\nint roll_dice(void);\nbool play_game(void);\n\n// main will call play_game repeatedly and ...
590
0
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 28.08, "nodes": 329, "errors": 0, "source_hash": "470d8e9956506c54bd935dc700aa667e9ba106e6f3b42ed3d6d2e672688fbe76", "categorized_nodes": 212}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,555
c
/* Copyright 2014 United States Government as represented by the * Administrator of the National Aeronautics and Space * Administration. No copyright is claimed in the United States under * Title 17, U.S. Code. All Other Rights Reserved. * * The refine platform is licensed under the Apache License, Version * 2....
31.16
55
(translation_unit) "/* Copyright 2014 United States Government as represented by the\n * Administrator of the National Aeronautics and Space\n * Administration. No copyright is claimed in the United States under\n * Title 17, U.S. Code. All Other Rights Reserved.\n *\n * The refine platform is licensed under the Apach...
379
0
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 31.16, "nodes": 209, "errors": 0, "source_hash": "71c604138eeee1dfc0940fb87fd3b3e63f3507b076bb71dfecd2d8d8aca16768", "categorized_nodes": 168}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,556
c
#pragma once #include "../Common/GFXUtil.h" #include "../Common/VObject.h" #include "../Common/vector.h" class GPUResourceBase; class ThreadCommand; enum class BindType : uint { None, SRV, UAV, RTV, DSV }; class DescriptorHeapRoot : public VObject { friend class ThreadCommand; public: DescriptorHeapRoot( GFXDe...
32.49
77
(translation_unit) "#pragma once\n#include "../Common/GFXUtil.h"\n#include "../Common/VObject.h"\n#include "../Common/vector.h"\nclass GPUResourceBase;\nclass ThreadCommand;\nenum class BindType : uint\n{\n None,\n SRV,\n UAV,\n RTV,\n DSV\n};\nclass DescriptorHeapRoot : public VObject\n{\n friend class ThreadCommand;\...
697
18
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 32.49, "nodes": 440, "errors": 0, "source_hash": "4ae42c8cc0153635634796da4dd77e7efc2807e6e6d42f68194c00e214566b1f", "categorized_nodes": 318}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
6,557
c
#ifndef WenuPlots_H #define WenuPlots_H #include <memory> #include "FWCore/Framework/interface/Frameworkfwd.h" #include "FWCore/Framework/interface/EDAnalyzer.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/MakerMacros.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #...
29.8
240
(translation_unit) "#ifndef WenuPlots_H\n#define WenuPlots_H\n\n#include <memory>\n\n#include "FWCore/Framework/interface/Frameworkfwd.h"\n#include "FWCore/Framework/interface/EDAnalyzer.h"\n\n#include "FWCore/Framework/interface/Event.h"\n#include "FWCore/Framework/interface/MakerMacros.h"\n#include "FWCore/ParameterS...
1,407
36
{"language": "c", "success": true, "metadata": {"lines": 240, "avg_line_length": 29.8, "nodes": 932, "errors": 0, "source_hash": "198815d6a1d23692f000e0fa570c77823651f7723dc6fec862f2a145ab7703d2", "categorized_nodes": 764}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,558
c
#ifndef GOT_H_INCLUDED #define GOT_H_INCLUDED // na de doacao: /* chama a funcao de inserir roupa na fila so depois remove a pessoa */ //FILA DE PESSOAS //typedef struct fila Fila; // //Fila* fila_cria(void); //void fila_inserir(Fila* f,char* nome,char* roupa); //char* fila_remover(Fila* f); //void imprime(Fila* f); /...
25.09
34
(translation_unit) "#ifndef GOT_H_INCLUDED\n#define GOT_H_INCLUDED\n// na de doacao:\n/*\nchama a funcao de inserir roupa na fila\nso depois remove a pessoa */\n\n//FILA DE PESSOAS\n//typedef struct fila Fila;\n//\n//Fila* fila_cria(void);\n//void fila_inserir(Fila* f,char* nome,char* roupa);\n//char* fila_remover(Fila...
37
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 25.09, "nodes": 7, "errors": 0, "source_hash": "94a5e69ebb3ca5e169fe99f8f69f19689f9b40dc8f75503367ad8790748b69c8", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef GO...
6,559
c
/*! @file MiniVersion.h @brief MiniVersion.h Version 1.1. @date 2005/06/25 Time: 15:25:02 @author <NAME> */ /** // // Author: <NAME> // <EMAIL> // // This software is released into the public domain. // You are free to use it in any way you like, except // that you may not sell this so...
22.18
76
(translation_unit) "/*! \n @file MiniVersion.h \n @brief MiniVersion.h Version 1.1. \n @date 2005/06/25 \n Time: 15:25:02 \n @author <NAME> \n */ \n \n/** \n// \n// Author: <NAME> \n// <EMAIL> \n// \n// This software is released into the public domain. \n// You are free to use it in any way you like, except...
304
6
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 22.18, "nodes": 198, "errors": 0, "source_hash": "d1f26f3b389a062aef9fd0a12301eadf1f7865d0b97c7e1128af729a740997b9", "categorized_nodes": 148}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
6,560
c
/*============================================================================*/ /* ______________________________ */ /* libccc/monad/keyval.h | __ __ ___ _____ | */ /* | / /\ / /\/ . |\ / __|\ |...
34.18
72
(translation_unit) "/*============================================================================*/\n/* ______________________________ */\n/* libccc/monad/keyval.h | __ __ ___ _____ | */\n/* | / /\ ...
117
0
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 34.18, "nodes": 72, "errors": 0, "source_hash": "6018150ab0a56cda22191cd5391a39e50032f85d505dce88fa00e2561d8c2840", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,561
c
// // WRWalletManager.h // WRWallet // // Created by 如沐春风 on 2020/8/19. // Copyright © 2020 mars. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface WRWalletManager : NSObject /** * */ +(instancetype)defaultManager; /** *项目基地址,全局配置一次即可,在调用实例方法前配置。 *正式:http://www.uho...
32.78
32
(translation_unit) "//\n// WRWalletManager.h\n// WRWallet\n//\n// Created by 如沐春风 on 2020/8/19.\n// Copyright © 2020 mars. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface WRWalletManager : NSObject\n\n/**\n *\n */\n+(instancetype)defaultManager;\n/**\n *项目基地址,全...
136
16
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 32.78, "nodes": 85, "errors": 0, "source_hash": "63f789711b8014249d7916749fca4d9952eef0953ff9f4e376007700abe78137", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Foundatio...
6,562
c
#include <stdio.h> #include <string.h> #define length 500 struct bigint{ int pct[2*length]; }; struct bigint times(struct bigint a, struct bigint b){ struct bigint temp, product; //int temp[length+2],product[2*length+1]; memset(product.pct,0,sizeof(product.pct)); for (int i = 0; i < length; i++) {...
24.64
61
(translation_unit) "#include <stdio.h>\n#include <string.h>\n#define length 500\n\nstruct bigint{\n int pct[2*length];\n};\n\nstruct bigint times(struct bigint a, struct bigint b){\n struct bigint temp, product;\n //int temp[length+2],product[2*length+1];\n memset(product.pct,0,sizeof(product.pct));\n fo...
675
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 24.64, "nodes": 400, "errors": 0, "source_hash": "c6775b44ab7a6682fde5e9baab8d5fcb65a4e9af2432cc6d4f05f8b33365872e", "categorized_nodes": 312}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,563
c
/* @(#)auth.h 2.3 88/08/07 4.0 RPCSRC; from 1.17 88/02/08 SMI */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for * unrestricted use provided that this legend is included on all tape * media and as a part of the software program in whole or part. Users * may copy or modify Sun RPC witho...
29.88
188
(translation_unit) "/* @(#)auth.h 2.3 88/08/07 4.0 RPCSRC; from 1.17 88/02/08 SMI */ \n/* \n * Sun RPC is a product of Sun Microsystems, Inc. and is provided for \n * unrestricted use provided that this legend is included on all tape \n * media and as a part of the software program in whole or part. Users \n * may cop...
622
11
{"language": "c", "success": true, "metadata": {"lines": 188, "avg_line_length": 29.88, "nodes": 445, "errors": 0, "source_hash": "f3ce93033ce073f0e911ef55f1a8f4ebcd545244a1ca0c34a232ad902eb3101b", "categorized_nodes": 280}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
6,564
c
#ifndef SERIAL_LOGGER_H #define SERIAL_LOGGER_H #include "Logger.h" namespace Pamux { class SerialLogger : public Logger { public: override void setupImpl() { Logger::setupImpl(); Serial.begin(250000); Serial.println("Serial port opened1"); } override void printLnImpl() { Serial.println("")...
16.33
33
(translation_unit) "#ifndef SERIAL_LOGGER_H\n#define SERIAL_LOGGER_H\n\n#include "Logger.h"\n\nnamespace Pamux\n{\n class SerialLogger : public Logger\n {\n public:\n override void setupImpl()\n {\n Logger::setupImpl();\n\n Serial.begin(250000);\n Serial.println("Serial port opened1");\n }\n\n override void p...
193
8
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 16.33, "nodes": 105, "errors": 0, "source_hash": "54e836b804634cd6e41dbec54531af4d2639fba116b847dbb64c5966054f75b1", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,565
c
// This file is part of SWGANH which is released under the MIT license. // See file LICENSE or go to http://swganh.com/LICENSE #pragma once #include <memory> #ifdef SendMessage #undef SendMessage #endif namespace swganh { class ByteBuffer; } // namespace swganh namespace swganh { namespace event_dispatcher { class...
31.41
41
(translation_unit) "// This file is part of SWGANH which is released under the MIT license.\n// See file LICENSE or go to http://swganh.com/LICENSE\n#pragma once\n\n#include <memory>\n\n#ifdef SendMessage\n#undef SendMessage\n#endif\n\nnamespace swganh {\nclass ByteBuffer;\n} // namespace swganh\n\nnamespace swganh {\...
336
17
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 31.41, "nodes": 202, "errors": 0, "source_hash": "468b788876b94270537744c6424a8fb4449129735d5c5503ab48634526d0c871", "categorized_nodes": 142}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
6,566
c
#ifndef UTIL_H #define UTIL_H #include <stdbool.h> #include <inttypes.h> #include "compat.h" void fatal(char * msg, ...); char * basename(const char * path, bool extension); char * string_cat(const char * l, const char * r); char * get_extension(char * path); int planetside_strcmp(const char * l, const char * r); #...
25.16
25
(translation_unit) "#ifndef UTIL_H\n#define UTIL_H\n\n#include <stdbool.h>\n#include <inttypes.h>\n\n#include "compat.h"\n\nvoid fatal(char * msg, ...);\nchar * basename(const char * path, bool extension);\nchar * string_cat(const char * l, const char * r);\nchar * get_extension(char * path);\nint planetside_strcmp(con...
175
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 25.16, "nodes": 132, "errors": 0, "source_hash": "dbebf667f3bbbebacddecbe4be2aa615ec470eaa1fecd13f7ab32a656fc86824", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,567
c
/* * createfprint.c - can be used to create a fingerprint of a document. * * Copyright (c) 2003, WiseGuys Internet B.V. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * - Redistri...
30.91
81
(translation_unit) "/*\n * createfprint.c - can be used to create a fingerprint of a document.\n *\n * Copyright (c) 2003, WiseGuys Internet B.V.\n * All rights reserved.\n * \n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n ...
354
0
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 30.91, "nodes": 228, "errors": 0, "source_hash": "1683400e98d0d1def8f9c329794f7d7418f8984f1f88e831216a2bd6ae26e431", "categorized_nodes": 151}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,568
c
// // CDARequestSerializer.h // ContentfulSDK // // Created by <NAME> on 21/07/14. // // #import "AFURLRequestSerialization.h" @interface CDARequestSerializer : AFJSONRequestSerializer @property (nonatomic) NSString* userAgent; -(id)initWithAccessToken:(NSString*)accessToken; @end
22.75
12
(translation_unit) "//\n// CDARequestSerializer.h\n// ContentfulSDK\n//\n// Created by <NAME> on 21/07/14.\n//\n//\n\n#import "AFURLRequestSerialization.h"\n\n@interface CDARequestSerializer : AFJSONRequestSerializer\n\n@property (nonatomic) NSString* userAgent;\n\n-(id)initWithAccessToken:(NSString*)accessToken;\n\...
54
7
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 22.75, "nodes": 31, "errors": 0, "source_hash": "33552b1b1c2a9a8e275bf2059323663a43d0898b17a7b57037710269a031052b", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
6,569
c
#pragma once #include <string> #include "SDL.h" /** * @author <NAME> * @author LazyFooProductions * * In charge of loading, updating, and deleting SDL_Textures */ class DrawCall; class Texture { public: //Initializes variables Texture(); //Deallocates memory ~Texture(); bool load_editable_texture_from_...
25.28
50
(translation_unit) "#pragma once\n#include <string>\n#include "SDL.h"\n\n/**\n * @author <NAME> \n * @author LazyFooProductions\n * \n * In charge of loading, updating, and deleting SDL_Textures\n */\n\nclass DrawCall;\n\nclass Texture\n{\npublic:\n //Initializes variables\n Texture();\n\n //Deallocates memory\n ~Textu...
325
6
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 25.28, "nodes": 218, "errors": 0, "source_hash": "7c50802e6a0e791b94f8516214c8f90bddb553b44f7040472bf9fcc8d00ef0cd", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
6,570
c
#include "pin_config.h" khash_t(pin_config) *handle_pin_config = NULL; static int init = 0; static int model_beaglebone = 0; int config_pins(int pru_pin_number, int mode, char* pru_id) { if (init == 0) { handle_pin_config = kh_init(pin_config); init = 1; } cJSON *json_head = NULL; ...
33.51
166
(translation_unit) "#include "pin_config.h"\n\nkhash_t(pin_config) *handle_pin_config = NULL;\nstatic int init = 0;\nstatic int model_beaglebone = 0;\n\nint config_pins(int pru_pin_number, int mode, char* pru_id)\n{\n if (init == 0)\n {\n handle_pin_config = kh_init(pin_config);\n init = 1;\n }\n...
1,229
0
{"language": "c", "success": true, "metadata": {"lines": 166, "avg_line_length": 33.51, "nodes": 684, "errors": 0, "source_hash": "8e3ff9193b02800491390f3c8ce0af0781c60d46474012967cb4176defa48194", "categorized_nodes": 472}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,571
c
#include <stdio.h> #include <assert.h> #include "search.h" /// \author <NAME> /// \brief module finds MIN value of a[0]*a[1], a[1]*a[2],..., a[N-2]*a[N-1] /// where a - const array. Use library "search.h" /// \param[in] a - array, pe - pointer to right border /// \param[out] minimum value int execute(const int *a, c...
23.54
24
(translation_unit) "#include <stdio.h>\n#include <assert.h>\n#include "search.h"\n\n/// \author <NAME>\n/// \brief module finds MIN value of a[0]*a[1], a[1]*a[2],..., a[N-2]*a[N-1]\n/// where a - const array. Use library "search.h"\n/// \param[in] a - array, pe - pointer to right border\n/// \param[out] minimum value\...
171
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 23.54, "nodes": 111, "errors": 0, "source_hash": "3b5fc62ee656c285dd14cdc71d8454aec73b01c87579b8039f636a56082c56ae", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
6,572
c
/* * Author: <NAME> * Copyright (c) 2017, Private Octopus, Inc. * All rights reserved. * * 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. * * THIS SOFTWARE ...
34.27
45
(translation_unit) "/*\n* Author: <NAME>\n* Copyright (c) 2017, Private Octopus, Inc.\n* All rights reserved.\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...
153
6
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 34.27, "nodes": 87, "errors": 0, "source_hash": "fa68ad2127a69956148051ee019a329a340c4ee0d29abf5097b0af618bd2ebec", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef PLUGIN_T...
6,573
c
/*========================================================================= * * Copyright RTK Consortium * * 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.apa...
29.58
83
(translation_unit) "/*=========================================================================\n *\n * Copyright RTK Consortium\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 ...
264
15
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 29.58, "nodes": 151, "errors": 0, "source_hash": "93e978d12f774097fab2aa3176cee78107e4f48fa48243453cac4befcf4af146", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,574
c
/*! \file CUtilityListener.h \date 18.01.2021 \authors <NAME> */ #pragma once #include <TDEngine2.h> namespace TDEngine2 { class CAnimationEditorWindow; } class CUtilityListener : public TDEngine2::IEngineListener { public: /*! \brief The event occurs after the engine was initialized \return RC_OK ...
29.36
50
(translation_unit) "/*!\n \file CUtilityListener.h\n \date 18.01.2021\n \authors <NAME>\n*/\n\n#pragma once\n\n\n#include <TDEngine2.h>\n\n\nnamespace TDEngine2\n{\n class CAnimationEditorWindow;\n}\n\n\nclass CUtilityListener : public TDEngine2::IEngineListener\n{\n public:\n /*!\n \brief The event occurs after the...
206
15
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 29.36, "nodes": 116, "errors": 0, "source_hash": "6f39c832399f103a1ba65a831191a387fc7e4e27196ac208022c95b4bf5fa894", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
6,575
c
// license:BSD-3-Clause // copyright-holders:<NAME> /********************************************************************** National Semiconductor DS75161A IEEE-488 GPIB Transceiver emulation ********************************************************************** _____ _____ ...
35.96
93
(translation_unit) "// license:BSD-3-Clause\n// copyright-holders:<NAME>\n/**********************************************************************\n\n National Semiconductor DS75161A IEEE-488 GPIB Transceiver emulation\n\n**********************************************************************\n ...
668
22
{"language": "c", "success": true, "metadata": {"lines": 93, "avg_line_length": 35.96, "nodes": 366, "errors": 0, "source_hash": "2667e40227d8e2845ccd69fd5d7104278d7e73390e65b91dbc87d5e81c023527", "categorized_nodes": 270}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,576
c
/* * This software is licensed under the terms of the MIT License. * See COPYING for further information. * --- * Copyright (c) 2011-2019, <NAME> <<EMAIL>>. * Copyright (c) 2012-2019, <NAME> <<EMAIL>>. */ #include "taisei.h" #include "spells.h" MODERNIZE_THIS_FILE_AND_REMOVE_ME void iku_atmospheric(Boss *b, in...
24.78
59
(translation_unit) "/*\n * This software is licensed under the terms of the MIT License.\n * See COPYING for further information.\n * ---\n * Copyright (c) 2011-2019, <NAME> <<EMAIL>>.\n * Copyright (c) 2012-2019, <NAME> <<EMAIL>>.\n*/\n\n#include "taisei.h"\n\n#include "spells.h"\n\nMODERNIZE_THIS_FILE_AND_REMOVE_ME\n...
709
22
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 24.78, "nodes": 479, "errors": 0, "source_hash": "260d88f3dadfc95588ada9037e12a65c35ec87404f18fdebf19e8da82ac8d256", "categorized_nodes": 347}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,577
c
#ifndef MAP_FACTORY_H #define MAP_FACTORY_H #include "../models/Map.h" class MapFactory { public: Map* createLevel1(); }; #endif
11.91
11
(translation_unit) "#ifndef MAP_FACTORY_H \n#define MAP_FACTORY_H \n#include "../models/Map.h" \n \nclass MapFactory \n{ \npublic: \n Map* createLevel1(); \n}; \n \n#endif" (preproc_ifdef) "#ifndef MAP_FACTORY_H \n#define MAP_FACTORY_H \n#include "../models/Map.h" \n \nclass MapFactory \n{ \npublic: \n Map* createLev...
35
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 11.91, "nodes": 20, "errors": 0, "source_hash": "327ae82b43a86a66257e73206b9e45693c83ce06a7e195ccd3d45cd86cba40d4", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,578
c
#ifndef __ASYNC_DISPATCH_h #define __ASYNC_DISPATCH_h class AsyncEventReceiver; #include "ScopedContextRPC.h" namespace AsyncDispatch { typedef void (AsyncEventReceiver::*asyncfunc)(void*); void enqueueEvent(AsyncEventReceiver* sv, asyncfunc func, void* p); void init(); void haltAndWait(); extern uint32...
28
12
(translation_unit) "#ifndef __ASYNC_DISPATCH_h\n#define __ASYNC_DISPATCH_h\n\nclass AsyncEventReceiver;\n#include "ScopedContextRPC.h"\n\nnamespace AsyncDispatch {\n\n typedef void (AsyncEventReceiver::*asyncfunc)(void*);\n\n void enqueueEvent(AsyncEventReceiver* sv, asyncfunc func, void* p);\n\n void init();\n voi...
91
1
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 28.0, "nodes": 63, "errors": 0, "source_hash": "ba9b3d5e0e3f5fceab77190dde41477f380c8cc5acd2999b947ece206da09290", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
6,579
c
// Copyright 2021 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 ASH_QUICK_PAIR_FEATURE_STATUS_TRACKER_MOCK_BLUETOOTH_ENABLED_PROVIDER_H_ #define ASH_QUICK_PAIR_FEATURE_STATUS_TRACKER_MOCK_BLUETOOTH_ENABLED_PROV...
43.58
26
(translation_unit) "// Copyright 2021 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 ASH_QUICK_PAIR_FEATURE_STATUS_TRACKER_MOCK_BLUETOOTH_ENABLED_PROVIDER_H_\n#define ASH_QUICK_PAIR_FEATURE_STATUS_TRACKER_MO...
167
7
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 43.58, "nodes": 83, "errors": 0, "source_hash": "2a2df450ec6774af8654879741146fb22b4c9ff7cd9514f7c18f520149acf8d9", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,580
c
/* * Copyright (c) 2021, <NAME> and the respective contributors * All rights reserved. * * Use of this source code is governed by a Apache 2.0 license that can be found * in the LICENSE file. */ #ifndef H3FF2C778_4348_42CA_B4E6_CE406A4876E4 #define H3FF2C778_4348_42CA_B4E6_CE406A4876E4 #include "mnn/co...
27.1
30
(translation_unit) "/*\n * Copyright (c) 2021, <NAME> and the respective contributors\n * All rights reserved.\n * \n * Use of this source code is governed by a Apache 2.0 license that can be found\n * in the LICENSE file.\n */\n\n#ifndef H3FF2C778_4348_42CA_B4E6_CE406A4876E4\n#define H3FF2C778_4348_42CA_B4E6_C...
203
10
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 27.1, "nodes": 111, "errors": 0, "source_hash": "3a6f72d18b1dbbba3c7132645ee13ad3915a563faf1d56a17e8a5ae91c496793", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,581
c
// // string.h: Declares data, defines and struct types for string code // // #ifndef __STRING_H__ #define __STRING_H__ #define Bltbyte(rgbSrc,rgbDest,cb) _fmemmove(rgbDest, rgbSrc, cb) // Model independent, language-independent (DBCS aware) macros // taken from rcsys.h in Pen project and modified. /...
29.75
24
(translation_unit) "// \n// string.h: Declares data, defines and struct types for string code \n// \n// \n \n#ifndef __STRING_H__ \n#define __STRING_H__ \n \n \n#define Bltbyte(rgbSrc,rgbDest,cb) _fmemmove(rgbDest, rgbSrc, cb) \n \n// Model independent, language-independent (DBCS aware) macros \n// taken from rcsys.h...
106
2
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 29.75, "nodes": 73, "errors": 0, "source_hash": "d238afc3a068dd873d0e2bff8a40a7bcdcb65eb15596a363b0133110a2ebcf4c", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,582
c
/* ** Copyright 2020 Bloomberg Finance L.P. ** ** 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...
30.78
46
(translation_unit) "/*\n** Copyright 2020 Bloomberg Finance L.P.\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 ...
202
9
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 30.78, "nodes": 106, "errors": 0, "source_hash": "1e819d3b7d6d1fac7205a83f380e59f102b9ae516bdff3babd58851a4d8d7a6c", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,583
c
#ifndef hydraulics1D_h #define hydraulics1D_h void bisectNoise1D(int npow, double* hs, double frndMin, double frndMax ){ int n = 1<<npow; int mask = n-1; for(int ipow=0;ipow<npow;ipow++){ int p = 1<<(ipow ); int q2 = 1<<(npow-ipow ); int q = 1<<(npow-ipow-1); for...
28.67
97
(translation_unit) "#ifndef hydraulics1D_h\n#define hydraulics1D_h\n\nvoid bisectNoise1D(int npow, double* hs, double frndMin, double frndMax ){\n int n = 1<<npow;\n int mask = n-1;\n for(int ipow=0;ipow<npow;ipow++){\n int p = 1<<(ipow );\n int q2 = 1<<(npow-ipow );\n int q = ...
920
0
{"language": "c", "success": true, "metadata": {"lines": 97, "avg_line_length": 28.67, "nodes": 624, "errors": 0, "source_hash": "70f521bcb0bb67d19fc7b3633938331dc166950b15542974f69ba73cdda7b794", "categorized_nodes": 415}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,584
c
//Clase //Base de datos de los complejos #include <fstream> #include <string> class Complejo { public: Complejo(int real, int imaginario); int GetReal(); int GetImaginario(); Complejo Subtract(Complejo segundo); Complejo Add(Complejo segundo); void print(); friend Complejo operator* (C...
20.21
19
(translation_unit) "//Clase\n//Base de datos de los complejos\n\n#include <fstream>\n#include <string>\n\nclass Complejo {\n\n public:\n Complejo(int real, int imaginario);\n int GetReal();\n int GetImaginario();\n\n Complejo Subtract(Complejo segundo);\n Complejo Add(Complejo segundo);\n void prin...
112
2
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 20.21, "nodes": 70, "errors": 0, "source_hash": "ff78ccd278d5c09941271ed2d64d983c6abb6c780f6812a3ff71a358d920116c", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
6,585
c
// ----------------------------------------------------------------------------- // Fern © Geoneric // // This file is part of Geoneric Fern which is available under the terms of // the GNU General Public License (GPL), version 2. If you do not want to // be bound by the terms of the GPL, you may purchase a proprietary...
30.61
33
(translation_unit) "// -----------------------------------------------------------------------------\n// Fern © Geoneric\n//\n// This file is part of Geoneric Fern which is available under the terms of\n// the GNU General Public License (GPL), version 2. If you do not want to\n// be bound by the terms of the GPL, you m...
119
6
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 30.61, "nodes": 72, "errors": 0, "source_hash": "f6ee291189b57ac191982542132c711994498eeb922dc5818f22e03a8f9292d9", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "pragma on...
6,586
c
/* * utils.c * * Created on: Mar 31, 2020 * Author: Yanye */ #include "utils.h" uint32_t iabs(int32_t value) { return (value < 0) ? (-value) : value; }
14
11
(translation_unit) "/*\n * utils.c\n *\n * Created on: Mar 31, 2020\n * Author: Yanye\n */\n\n#include "utils.h"\n\n\nuint32_t iabs(int32_t value) {\n return (value < 0) ? (-value) : value;\n}\n" (comment) "/*\n * utils.c\n *\n * Created on: Mar 31, 2020\n * Author: Yanye\n */" (preproc_include) "#inclu...
41
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 14.0, "nodes": 24, "errors": 0, "source_hash": "2264d9bf81a12f22068b3e494c3ca57176eb4be528b2fd1ec79c47822e833dec", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
6,587
c
#if !defined(__SEARCH_HEAD_FILE__) #define __SEARCH_HEAD_FILE__ int FindMaximum(const int *data, const int len, int &pos); int FindPeakOneD(const int *data, const int begin, const int end, int &pos); int FindPeakTwoD(int **data, const int cols, const int s_row, const int e_row); #endif // __SEARCH_HEAD_FILE__
50.83
6
(translation_unit) "#if !defined(__SEARCH_HEAD_FILE__)\n#define __SEARCH_HEAD_FILE__\n\nint FindMaximum(const int *data, const int len, int &pos);\nint FindPeakOneD(const int *data, const int begin, const int end, int &pos);\nint FindPeakTwoD(int **data, const int cols, const int s_row, const int e_row);\n\n#endif // _...
109
2
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 50.83, "nodes": 66, "errors": 0, "source_hash": "0647db3e9358a169c2fe65c2a610d8ec26b077148590268366a3675579781d1b", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defined...
6,588
c
#ifndef __NOUVEAU_DRM_WINSYS_H__ #define __NOUVEAU_DRM_WINSYS_H__ #include "util/u_simple_screen.h" #include "nouveau_dri.h" struct nouveau_winsys { struct pipe_winsys base; struct pipe_screen *pscreen; struct pipe_surface *front; }; static INLINE struct nouveau_winsys * nouveau_winsys(struct pipe_winsys *ws) ...
23.8
20
(translation_unit) "#ifndef __NOUVEAU_DRM_WINSYS_H__\n#define __NOUVEAU_DRM_WINSYS_H__\n\n#include "util/u_simple_screen.h"\n\n#include "nouveau_dri.h"\n\nstruct nouveau_winsys {\n struct pipe_winsys base;\n\n struct pipe_screen *pscreen;\n\n struct pipe_surface *front;\n};\n\nstatic INLINE struct nouveau_winsys *\nnou...
124
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 23.8, "nodes": 85, "errors": 0, "source_hash": "0aed292b46f05ae0102d69490ed946442027ef728e67ca94e97dd112629d1d4e", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
6,589
c
#pragma once /** * Copyright (c) blueback * Released under the MIT License * https://github.com/bluebackblue/brownie/blob/master/LICENSE.txt * http://bbbproject.sakura.ne.jp/wordpress/mitlicense * @brief オートロック。 */ /** include */ #include "./types.h" #include "./platform.h" /** include */ ...
12.49
148
(translation_unit) "ragma once \n \n/** \n * Copyright (c) blueback \n * Released under the MIT License \n * https://github.com/bluebackblue/brownie/blob/master/LICENSE.txt \n * http://bbbproject.sakura.ne.jp/wordpress/mitlicense \n * @brief オートロック。 \n*/ \n \n \n/** include \n*/ \n#include "./types.h" \n#include "./pla...
433
11
{"language": "c", "success": true, "metadata": {"lines": 148, "avg_line_length": 12.49, "nodes": 252, "errors": 0, "source_hash": "2222cbd0326abb432712e14f25bc16480f8da4c481a0fea90d3537e07f8f480b", "categorized_nodes": 168}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma ...
6,590
c
/* #include <stdlib.h> */ int main() { int x; int *y = 0; x = *y; return 0; }
10.44
9
(translation_unit) "/* #include <stdlib.h> */ \n \nint main() \n{ \n int x; \n int *y = 0; \n x = *y; \n return 0; \n} \n" (comment) "/* #include <stdlib.h> */" (function_definition) "int main() \n{ \n int x; \n int *y = 0; \n x = *y; \n return 0; \n}" (primitive_type) "int" (functio...
37
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 10.44, "nodes": 24, "errors": 0, "source_hash": "d4c49bb6814868d85b9e02d8616f0adb668883dfdb68dfba11001ddcc6c00eec", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "int...
6,591
c
//--------------------------------------------------------------------------- // Greenplum Database // Copyright (C) 2014 VMware, Inc. or its affiliates. // // @filename: // CLogicalMaxOneRow.h // // @doc: // MaxOneRow operator, // an operator that can pass at most one row from its input //--------------------------...
29.09
149
(translation_unit) "//---------------------------------------------------------------------------\n// Greenplum Database\n// Copyright (C) 2014 VMware, Inc. or its affiliates.\n//\n// @filename:\n// CLogicalMaxOneRow.h\n//\n// @doc:\n// MaxOneRow operator,\n// an operator that can pass at most one row from its input...
637
15
{"language": "c", "success": true, "metadata": {"lines": 149, "avg_line_length": 29.09, "nodes": 341, "errors": 0, "source_hash": "16dee7883d74e7948ef3df05289714cb5223e657d9d46dc9e34053fe3958a635", "categorized_nodes": 244}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
6,592
c
/**************************************************************************** * apps/examples/relays/relays_main.c * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyrigh...
34.21
114
(translation_unit) "/****************************************************************************\n * apps/examples/relays/relays_main.c\n *\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional infor...
465
1
{"language": "c", "success": true, "metadata": {"lines": 114, "avg_line_length": 34.21, "nodes": 287, "errors": 0, "source_hash": "4957f4aea0c1932a842a40165fb2e9dee3ea0f2e2c920dfc58f02554c39c2c39", "categorized_nodes": 195}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,593
c
// Ceres Solver - A fast non-linear least squares minimizer // Copyright 2015 Google Inc. All rights reserved. // http://ceres-solver.org/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of so...
38.68
76
(translation_unit) "// Ceres Solver - A fast non-linear least squares minimizer\n// Copyright 2015 Google Inc. All rights reserved.\n// http://ceres-solver.org/\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are met:\n//\...
386
17
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 38.68, "nodes": 196, "errors": 0, "source_hash": "9b866c04c5f7be36827e49337499ef055ac331360f20284b20538267e7806488", "categorized_nodes": 138}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,594
c
#ifndef PROCESS_H #define PROCESS_H #include "linux_parser.h" #include <string> #include <thread> // std::this_thread::sleep_for #include <chrono> #include <unistd.h> #include <cctype> #include <sstream> #include <string> #include <vector> /* Basic class for Process representation It contains relevant attribut...
32.58
43
(translation_unit) "#ifndef PROCESS_H\n#define PROCESS_H\n#include "linux_parser.h"\n#include <string>\n#include <thread> // std::this_thread::sleep_for\n#include <chrono> \n#include <unistd.h>\n#include <cctype>\n#include <sstream>\n#include <string>\n#include <vector>\n/*\nBasic class for Process representati...
352
13
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 32.58, "nodes": 221, "errors": 0, "source_hash": "8c4adc12eaf53d9282167a69b818b871d4c2557ea0f7271790be60401fe7a99d", "categorized_nodes": 148}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,595
c
// // Created by <NAME> on 4/8/2018. // #ifndef EMBELLECEDORDEPROGRAMAS_ANALIZADORDEPROGRAMAS_H #define EMBELLECEDORDEPROGRAMAS_ANALIZADORDEPROGRAMAS_H class AnalizadorDeProgramas{ private: char** datosAnalizados; int* contadorDeKeyWords; int comillasFlag = 0; int comentariosDeLineasFag ...
21.93
29
(translation_unit) "// \n// Created by <NAME> on 4/8/2018. \n// \n \n#ifndef EMBELLECEDORDEPROGRAMAS_ANALIZADORDEPROGRAMAS_H \n#define EMBELLECEDORDEPROGRAMAS_ANALIZADORDEPROGRAMAS_H \n \nclass AnalizadorDeProgramas{ \nprivate: \n char** datosAnalizados; \n int* contadorDeKeyWords; \n \n int comillasFlag = 0; ...
135
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 21.93, "nodes": 92, "errors": 0, "source_hash": "9c4df569401da12f11ca0cdbc33fd4aae6dc44f6eaa3021a76d4bf3ac8c844c6", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,596
c
#ifndef __LUA_EXTRA_H_ #define __LUA_EXTRA_H_ #if defined(_USRDLL) #define LUA_EXTENSIONS_DLL __declspec(dllexport) #else /* use a DLL library */ #define LUA_EXTENSIONS_DLL #endif #if __cplusplus extern "C" { #endif #include "lauxlib.h" /// @cond void LUA_EXTENSIONS_DLL luaopen...
16.83
24
(translation_unit) "#ifndef __LUA_EXTRA_H_ \n#define __LUA_EXTRA_H_ \n \n#if defined(_USRDLL) \n #define LUA_EXTENSIONS_DLL __declspec(dllexport) \n#else /* use a DLL library */ \n #define LUA_EXTENSIONS_DLL \n#endif \n \n#if __cplusplus \nextern "C" { \n#endif \n \n#include "lauxlib.h" \n \n/// @cond...
72
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 16.83, "nodes": 51, "errors": 0, "source_hash": "ff9f72ba5e2b1174c04bc223d35e980ac6640e4dda6eac84d936e792f99896b8", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,597
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import <UIKit/UIView.h> @class MFAttributeLabel, UILabel; @interface HC2No6Header : UIView { UILabel *_titleLabel; MFAttributeLabe...
32.33
24
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.\n//\n\n#import <UIKit/UIView.h>\n\n@class MFAttributeLabel, UILabel;\n\n@interface HC2No6Header : UIView\n{\n UILabel *...
180
14
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 32.33, "nodes": 110, "errors": 0, "source_hash": "753b4a737e2c38ddce8b73d53269454f3fdb12f6ed354732d1083e6d8825c55d", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
6,598
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/OfficeImport.framework/OfficeImport */ @interface EDWorksheet : EDSheet { EDColumnInfoCollection * mColumnInfos; EDCollection * mConditionalFormattings; double mDefaultColumnWidth; unsigned short mDefaultRowHeight; bool ...
33.65
62
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/OfficeImport.framework/OfficeImport\n */\n\n@interface EDWorksheet : EDSheet {\n EDColumnInfoCollection * mColumnInfos;\n EDCollection * mConditionalFormattings;\n double mDefaultColumnWidth;\n unsigned short m...
677
31
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 33.65, "nodes": 435, "errors": 0, "source_hash": "d1e99b38db85dd282373342ea44f214b7cd10b74225be4633228512f57f0a318", "categorized_nodes": 238}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": ...
6,599