language
stringclasses
1 value
code
stringlengths
6
12.3k
avg_line_length
float64
2.79
91
line_count
float64
1
367
lang_specific_parse
stringlengths
60
1.08M
ast_node_count
int64
2
6.81k
num_errors
int64
0
499
universal_schema
stringlengths
799
825k
__index_level_0__
int64
0
81.2k
c
#include <stdlib.h> #include <stdio.h> extern int scilab_rt_and_i2_(int si00, int si01, int in0[si00][si01]) { int lv0, lv1; int val = 0; for (lv0=0; lv0<si00; lv0++) { for (lv1=0; lv1<si01; lv1++) { val += in0[lv0][lv1]; } } return val; }
18.07
14
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n\nextern int scilab_rt_and_i2_(int si00, int si01, int in0[si00][si01])\n{\n int lv0, lv1;\n \n int val = 0; \n for (lv0=0; lv0<si00; lv0++) {\n for (lv1=0; lv1<si01; lv1++) {\n val += in0[lv0][lv1];\n }\n }\n return val;\n}\n\n" (preproc_in...
109
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 18.07, "nodes": 70, "errors": 0, "source_hash": "50da61c1a564de4c746bec35f0e40c966c654ef6fb2b7ea0f941589db5790213", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
4,900
c
#include <stdlib.h> #include <stdbool.h> #include <ft.h> /// int main(int argc, char const *argv[]) { bool ok; struct ft_context context; // compile message to print int msglen = 1; for(int i=1; i<argc; i+=1) { msglen += 1; msglen += strlen(argv[i]); } if (msglen == 1) return EXIT_SUCCESS; char msg[m...
19.05
41
(translation_unit) "#include <stdlib.h>\n#include <stdbool.h>\n\n#include <ft.h>\n\n///\n\nint main(int argc, char const *argv[])\n{\n bool ok;\n struct ft_context context;\n\n // compile message to print\n int msglen = 1;\n for(int i=1; i<argc; i+=1)\n {\n msglen += 1;\n msglen += strlen(argv[i]);\n }\n\n if (msglen...
314
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 19.05, "nodes": 194, "errors": 0, "source_hash": "0505e3fab958cb116b48d68b766192dcb61f15ab5527093c865fe9b5668c07c1", "categorized_nodes": 137}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,901
c
#ifndef MACROS_H #define MACROS_H #define max(a,b) ((a)>(b)?(a):(b)) #define min(a,b) ((a)<(b)?(a):(b)) #define sort_by(a,b) (\ (a) < (b) ? -1 : \ (a) > (b) ? 1 : 0) #endif
23.29
7
(translation_unit) "#ifndef MACROS_H\n#define MACROS_H\n\n#define max(a,b) ((a)>(b)?(a):(b))\n#define min(a,b) ((a)<(b)?(a):(b))\n\n#define sort_by(a,b) (\\n (a) < (b) ? -1 : \\n (a) > (b) ? 1 : 0)\n\n#endif\n" (preproc_ifdef) "#ifndef MACROS_H\n#define MACROS_H\n\n#define max(a,b) ((a)>(b)?(a):(b))\n#define min(a,b...
38
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 23.29, "nodes": 28, "errors": 0, "source_hash": "299dda3b47b71c998019425c094a27a236974ce9d6f30552a5ac39e0ad2d1979", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef M...
4,902
c
// Copyright 2014 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 IOS_CHROME_BROWSER_UI_NTP_RECENT_TABS_VIEWS_PANEL_BAR_VIEW_H_ #define IOS_CHROME_BROWSER_UI_NTP_RECENT_TABS_VIEWS_PANEL_BAR_VIEW_H_ #import <UIKi...
45.79
14
(translation_unit) "// Copyright 2014 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 IOS_CHROME_BROWSER_UI_NTP_RECENT_TABS_VIEWS_PANEL_BAR_VIEW_H_\n#define IOS_CHROME_BROWSER_UI_NTP_RECENT_TABS_VIEWS_PANEL_B...
61
6
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 45.79, "nodes": 37, "errors": 0, "source_hash": "52af36880440757e615f776f8437783ec11a58f028e6c9cd5b5bf0815411e567", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,903
c
// // EXPrint.h // Exponent // // Created by <NAME> on 07.02.2018. // Copyright © 2018 650 Industries. All rights reserved. // #import <React/RCTBridgeModule.h> @interface EXPrint : NSObject <RCTBridgeModule> @end
20.8
10
(translation_unit) "//\n// EXPrint.h\n// Exponent\n//\n// Created by <NAME> on 07.02.2018.\n// Copyright © 2018 650 Industries. All rights reserved.\n//\n\n#import <React/RCTBridgeModule.h>\n\n@interface EXPrint : NSObject <RCTBridgeModule>\n\n@end\n" (comment) "//" (comment) "// EXPrint.h" (comment) "// Ex...
25
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.8, "nodes": 14, "errors": 0, "source_hash": "60255da64624b534f3cc31815b49114677f4c66ccd6ba86eb93b5aa8adb14055", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <Rea...
4,904
c
// -*- C++ -*- //============================================================================= /** * @file SSL_Asynch_Stream.h * * SSL_Asynch_Stream.h,v 1.3 2001/07/24 18:49:38 bala Exp * * @author <NAME> <<EMAIL>> * */ //==========================================================================...
26.88
242
(translation_unit) "// -*- C++ -*- \n \n//============================================================================= \n/** \n * @file SSL_Asynch_Stream.h \n * \n * SSL_Asynch_Stream.h,v 1.3 2001/07/24 18:49:38 bala Exp \n * \n * @author <NAME> <<EMAIL>> \n * \n */ \n//===========================================...
866
27
{"language": "c", "success": true, "metadata": {"lines": 242, "avg_line_length": 26.88, "nodes": 556, "errors": 0, "source_hash": "c3229a997c8f656d10ac89ff9a0518d3f0031c0cb365589bda7a695b5bbe894b", "categorized_nodes": 362}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,905
c
#pragma once #ifdef HZ_PLATFORM_WINDOWS #ifdef HZ_BUILD_DLL #define HAZEL_API __declspec(dllexport) #else #define HAZEL_API __declspec(dllimport) #endif // HZ_BUILD_DLL #else #error Hazel only supports Windows! #endif // HZ_PLATFORM_WINDOWS
23.1
10
(translation_unit) "#pragma once\n\n#ifdef HZ_PLATFORM_WINDOWS\n#ifdef HZ_BUILD_DLL\n#define HAZEL_API __declspec(dllexport)\n#else\n#define HAZEL_API __declspec(dllimport)\n#endif // HZ_BUILD_DLL\n#else\n#error Hazel only supports Windows!\n#endif // HZ_PLATFORM_WINDOWS\n\n" (preproc_call) "#pragma once\n" (prep...
29
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 23.1, "nodes": 26, "errors": 0, "source_hash": "4b18893f416df7f16992b2c4884b400752f41e665c1cf39dd895d30042bfe8b6", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
4,906
c
//----------------------------------------------------------------------------- // Copyright (c) 2020, <NAME>, <EMAIL>. // The sources are under MIT license. //----------------------------------------------------------------------------- #pragma once #include <string> class Error { public: Error() = default; ...
29.88
16
(translation_unit) "//-----------------------------------------------------------------------------\n// Copyright (c) 2020, <NAME>, <EMAIL>.\n// The sources are under MIT license.\n//-----------------------------------------------------------------------------\n\n#pragma once\n\n#include <string>\n\nclass Error {\npubl...
96
8
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 29.88, "nodes": 48, "errors": 0, "source_hash": "41aa1df609173839656e1ef6c37fa59637be23b5e0f812ea0773d86027075565", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
4,907
c
/* Generated Modality mutator header file for 'BATTERY_WARNING_MUTATOR' */ #ifndef BATTERY_WARNING_MUTATOR_H #define BATTERY_WARNING_MUTATOR_H #include <stdint.h> #ifdef __cplusplus extern "C" { #endif extern const uint64_t HASH_BATTERY_WARNING_MUTATOR_warning_level; extern void * const g_generated_state_BATTERY_W...
32.16
19
(translation_unit) "/* Generated Modality mutator header file for 'BATTERY_WARNING_MUTATOR' */\n\n#ifndef BATTERY_WARNING_MUTATOR_H\n#define BATTERY_WARNING_MUTATOR_H\n\n#include <stdint.h>\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\nextern const uint64_t HASH_BATTERY_WARNING_MUTATOR_warning_level;\n\nextern void * ...
94
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 32.16, "nodes": 61, "errors": 0, "source_hash": "a447d1133b53b147ed84c8bfe97487723fe980b91e9592f25c6484cc5649bdd2", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,908
c
/* -*- linux-c -*- * * (C) Copyright IBM Corp. 2004 * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This * file and program are licensed under a BSD style license. Se...
37.51
55
(translation_unit) "/* -*- linux-c -*-\n *\n * (C) Copyright IBM Corp. 2004\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This\n * file and program are licensed und...
237
0
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 37.51, "nodes": 176, "errors": 0, "source_hash": "d20776ee0c3c12c4298584788364ca355cc927113e121cc65f1b633370bd6c2b", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,909
c
/* * dhcp4_packet.c: dhcp packet format functions * * Copyright (c) 2013 Cisco and/or its affiliates. * 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/lice...
31.2
114
(translation_unit) "/*\n * dhcp4_packet.c: dhcp packet format functions\n *\n * Copyright (c) 2013 Cisco and/or its affiliates.\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 * ...
941
1
{"language": "c", "success": true, "metadata": {"lines": 114, "avg_line_length": 31.2, "nodes": 545, "errors": 0, "source_hash": "b220ece93d0a4b089ac4c9b86118ed7055c1cbc3a09acd988d916c2605d42099", "categorized_nodes": 409}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,910
c
#define N 15 void foo(int n, float* x) { int i; // known iteration count for (i = 1; i <= N; i++) { x[i] = 2.0f *(float)i; } return; } int main() { float x[N]; foo(N, x); return 0; }
11.61
18
(translation_unit) "#define N 15\n\nvoid foo(int n, float* x) {\n \n int i;\n \n // known iteration count\n for (i = 1; i <= N; i++) {\n x[i] = 2.0f *(float)i; \n }\n return;\n}\n\n\n\nint main() {\n float x[N];\n \n foo(N, x);\n return 0;\n}\n\n" (preproc_def) "#define N 15\n" (#define...
102
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 11.61, "nodes": 62, "errors": 0, "source_hash": "d713fd2515224c379a0bb1dc0c18c2868f6da93fa39eeb6400e1183aeef2c0d6", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define N ...
4,911
c
#ifndef TEST_INTEROP_CXX_NAMESPACE_INPUTS_TEMPLATES_H #define TEST_INTEROP_CXX_NAMESPACE_INPUTS_TEMPLATES_H namespace TemplatesNS1 { template <class T> const char *basicFunctionTemplate(T) { return "TemplatesNS1::basicFunctionTemplate"; } template <class> struct BasicClassTemplate { const char *basicMember() { re...
39.35
72
(translation_unit) "#ifndef TEST_INTEROP_CXX_NAMESPACE_INPUTS_TEMPLATES_H\n#define TEST_INTEROP_CXX_NAMESPACE_INPUTS_TEMPLATES_H\n\nnamespace TemplatesNS1 {\ntemplate <class T> const char *basicFunctionTemplate(T) {\n return "TemplatesNS1::basicFunctionTemplate";\n}\n\ntemplate <class> struct BasicClassTemplate {\n c...
578
37
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 39.35, "nodes": 346, "errors": 0, "source_hash": "e697f0e2677cd05f18402bbb4c7513aa61cecac362a8386af4474be6fa3cae69", "categorized_nodes": 217}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,912
c
// ramfs.h #ifndef RAM_FS_H #define RAM_FS_H #include <SupportDefs.h> const size_t kMaxIndexKeyLength = 256; #endif // RAM_FS_H
20.33
6
(translation_unit) "// ramfs.h\n\n#ifndef RAM_FS_H\n#define RAM_FS_H\n\n#include <SupportDefs.h>\n\nconst size_t kMaxIndexKeyLength = 256;\n\n#endif // RAM_FS_H\n" (comment) "// ramfs.h" (preproc_ifdef) "#ifndef RAM_FS_H\n#define RAM_FS_H\n\n#include <SupportDefs.h>\n\nconst size_t kMaxIndexKeyLength = 256;\n\n#end...
22
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 20.33, "nodes": 16, "errors": 0, "source_hash": "7059ff5a9f4ee6e0a814ef8fe4de6e03d355be4c83386857497449d800db94c2", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef R...
4,913
c
#ifndef __WINE_TOOLS_H__ #define __WINE_TOOLS_H__ void wine_prereserve(const char* reserve); extern int wine_preloaded; void* get_wine_prereserve(); #ifdef DYNAREC void dynarec_wine_prereserve(); #endif #endif //__WINE_TOOLS_H__
24.44
9
(translation_unit) "#ifndef __WINE_TOOLS_H__\n#define __WINE_TOOLS_H__\n\nvoid wine_prereserve(const char* reserve);\n\nextern int wine_preloaded;\nvoid* get_wine_prereserve();\n\n#ifdef DYNAREC\nvoid dynarec_wine_prereserve();\n#endif\n\n#endif //__WINE_TOOLS_H__\n" (preproc_ifdef) "#ifndef __WINE_TOOLS_H__\n#define...
52
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 24.44, "nodes": 38, "errors": 0, "source_hash": "fe5aed7e2bc4e70973eacd66292c738c367ddd2f033912c2f0ac201a962ce139", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
4,914
c
/* ** summit.c for in /home/charliebegood/delivery/ELEMENTARY_Prog/Lemin/Charles ** ** Made by <NAME> ** Login <<EMAIL>> ** ** Started on Thu Apr 6 12:01:24 2017 <NAME> ** Last update Sat Apr 29 12:21:35 2017 <NAME> */ #include "../include/lemin.h" int valid_summit(t_link *sums, char *name, int x, in...
21.35
92
(translation_unit) "/*\n** summit.c for in /home/charliebegood/delivery/ELEMENTARY_Prog/Lemin/Charles\n**\n** Made by <NAME>\n** Login <<EMAIL>>\n**\n** Started on Thu Apr 6 12:01:24 2017 <NAME>\n** Last update Sat Apr 29 12:21:35 2017 <NAME>\n*/\n\n#include "../include/lemin.h"\n\nint valid_summit(t_l...
829
0
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 21.35, "nodes": 529, "errors": 0, "source_hash": "4c9bc76d818e1330e3edf72f7a86c37adddf33b329821ae17ce263bb37a8961f", "categorized_nodes": 363}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,915
c
// // Created by swift on 2019/5/6. // #ifndef SANDHOOK_NH_DECODER_ARM64_H #define SANDHOOK_NH_DECODER_ARM64_H #include "decoder.h" namespace SandHook { namespace Decoder { class Arm64Decoder : public InstDecoder { public: void decode(void *codeStart, Addr codeLen, InstVisitor &visit...
26.29
17
(translation_unit) "//\n// Created by swift on 2019/5/6.\n//\n\n#ifndef SANDHOOK_NH_DECODER_ARM64_H\n#define SANDHOOK_NH_DECODER_ARM64_H\n\n#include "decoder.h"\n\nnamespace SandHook {\n namespace Decoder {\n\n class Arm64Decoder : public InstDecoder {\n public:\n void decode(void *codeStart...
85
3
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 26.29, "nodes": 47, "errors": 0, "source_hash": "4f82617411f0817c1a18da94d64af42489bf9eae8732abf5f7e7a6d60c96e371", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,916
c
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. //+----------------------------------------------------------------------------- // // // $TAG ENGR // $Mod...
33.66
65
(translation_unit) "// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n// See the LICENSE file in the project root for more information.\n\n\n//+-----------------------------------------------------------------------------\n//\n\n//...
421
21
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 33.66, "nodes": 247, "errors": 0, "source_hash": "c7018d4605b3c97f2e8381c436dfa91b86902c8f83aeba0312438b070a607351", "categorized_nodes": 174}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "call_expression", "text": "MtEx...
4,917
c
#ifdef __OBJC__ #import <UIKit/UIKit.h> #endif FOUNDATION_EXPORT double Pods_config_reader_ios_TestsVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_config_reader_ios_TestsVersionString[];
32.17
6
(translation_unit) "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#endif\n\n\nFOUNDATION_EXPORT double Pods_config_reader_ios_TestsVersionNumber;\nFOUNDATION_EXPORT const unsigned char Pods_config_reader_ios_TestsVersionString[];\n\n" (preproc_ifdef) "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#endif" (#ifdef) "#ifdef...
27
1
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 32.17, "nodes": 19, "errors": 0, "source_hash": "21545984697b15396c20684b33de48a484327765bb862fb4b3d16223b3bd62b8", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef __...
4,918
c
/* * OpenVPN -- An application to securely tunnel IP networks * over a single UDP port, with support for SSL/TLS-based * session authentication and key exchange, * packet encryption, packet authentication, and * packet compression. * * Copyright (C) 2011 - <NAME>...
31.29
56
(translation_unit) "/*\n * OpenVPN -- An application to securely tunnel IP networks\n * over a single UDP port, with support for SSL/TLS-based\n * session authentication and key exchange,\n * packet encryption, packet authentication, and\n * packet compression.\n *\n * ...
188
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 31.29, "nodes": 152, "errors": 0, "source_hash": "3d76b04ec0bf26ab52a5b66b170e5d580b607abc91278d07a5d817b475739cfb", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,919
c
#pragma once #include "MathClass.h" #include "player.h" //using namespace std; #ifndef CAMERA_H #define CAMERA_H class camera1 { public: camera1(); ~camera1(); void setStartingVector (Vec3f levelStartingVector); void setCurrentVector (Vec3f currentVec); void setPosition (/*Vec3f positionition*/); void setSave...
20.85
33
(translation_unit) "#pragma once\n#include "MathClass.h" \n#include "player.h"\n//using namespace std;\n\n#ifndef CAMERA_H\n#define CAMERA_H\n\nclass camera1\n{\npublic:\n camera1();\n ~camera1();\n\n void setStartingVector (Vec3f levelStartingVector);\n void setCurrentVector (Vec3f currentVec);\n void setPosition (/*V...
179
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 20.85, "nodes": 117, "errors": 0, "source_hash": "21e0d643c0b8a10d7de80e2aa341d78e464a4b283999698efe2b13c197e7ed7c", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
4,920
c
--20178057 Assignment -- Q1.a -- Retrieve the list of names and the cities of all the clients. select client_name, city from client; -- Q1.b -- List the various products available. select * from product; -- Q1.c -- Find the names of all clients having a as the second letter in their names. select client_name from cl...
31.41
338
(translation_unit) "--20178057 Assignment\n\n-- Q1.a\n-- Retrieve the list of names and the cities of all the clients.\nselect client_name, city from client;\n\n-- Q1.b\n-- List the various products available.\nselect * from product;\n\n-- Q1.c\n-- Find the names of all clients having a as the second letter in their na...
3,850
226
{"language": "c", "success": true, "metadata": {"lines": 338, "avg_line_length": 31.41, "nodes": 2987, "errors": 0, "source_hash": "e77d3e60ec21832e823fe6e726067b98c61b64b9e0ad1f210e3832f55a6d34d2", "categorized_nodes": 1895}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "--20178057 ...
4,921
c
#pragma once #include "SIMDConfig.h" #include "Config.h" #include "utility/Debug.h" #include <type_traits> #include <cstring> namespace sfz { class Upsampler; class Downsampler; } // namespace sfz #include <hiir/Upsampler2xFpu.h> #include <hiir/Downsampler2xFpu.h> // Note: according to HIIR documentation, FPU versio...
35.21
39
(translation_unit) "#pragma once\n#include "SIMDConfig.h"\n#include "Config.h"\n#include "utility/Debug.h"\n#include <type_traits>\n#include <cstring>\n\nnamespace sfz {\nclass Upsampler;\nclass Downsampler;\n} // namespace sfz\n\n#include <hiir/Upsampler2xFpu.h>\n#include <hiir/Downsampler2xFpu.h>\n\n// Note: accordin...
372
27
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 35.21, "nodes": 269, "errors": 0, "source_hash": "8f9607de8358e6df6bd536dddff7b6c1d93c9c407a5127cacf7407d37bfc8b3b", "categorized_nodes": 195}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
4,922
c
#ifndef TrajectoryStateOnSurface_H #define TrajectoryStateOnSurface_H #include "TrackingTools/TrajectoryState/interface/BasicTrajectoryState.h" #include "TrackingTools/TrajectoryState/interface/SurfaceSideDefinition.h" #include "TrackingTools/TrajectoryState/interface/BasicSingleTrajectoryState.h" #include <iosfwd> ...
37.92
155
(translation_unit) "#ifndef TrajectoryStateOnSurface_H\n#define TrajectoryStateOnSurface_H\n\n#include "TrackingTools/TrajectoryState/interface/BasicTrajectoryState.h"\n#include "TrackingTools/TrajectoryState/interface/SurfaceSideDefinition.h"\n#include "TrackingTools/TrajectoryState/interface/BasicSingleTrajectoryStat...
1,453
82
{"language": "c", "success": true, "metadata": {"lines": 155, "avg_line_length": 37.92, "nodes": 749, "errors": 0, "source_hash": "03b049f73bec5fadf71559579b4da8dfba30e63388fd7b698f9eb573c274d4e7", "categorized_nodes": 512}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,923
c
#pragma once //----------------------------------------------------------------------------- #include "Resource.h" //----------------------------------------------------------------------------- // Czar struct Spell { enum Type { Point, Ray, Target, Ball }; enum Flags { Explode = 1 << 0, Poison = 1 ...
28.35
49
(ERROR) "#pragma once\n\n//-----------------------------------------------------------------------------\n#include "Resource.h"\n\n//-----------------------------------------------------------------------------\n// Czar\nstruct Spell\n{\n enum Type\n {\n Point,\n Ray,\n Target,\n Ball\n };\n\n enum Flags\n {\n Exp...
419
18
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 28.35, "nodes": 279, "errors": 0, "source_hash": "dcf9e524f37fcbfdc0dd806ab2e9c2e15a7a3010c1738fc906f4448d6e1431fd", "categorized_nodes": 198}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#pragma once\n\n//-------...
4,924
c
// // $Id: Pressure.h,v 1.7.4.1 2005-12-16 06:22:31 knicewar Exp $ // // Copyright <NAME>. All rights reserved. // // Represent the abstract concept of a measure of pressure. // The internal representation of the units is hidden from the user. // #ifndef Units_Pressure_h #define Units_Pressure_h #include "SpecificUn...
35.56
41
(translation_unit) "//\n// $Id: Pressure.h,v 1.7.4.1 2005-12-16 06:22:31 knicewar Exp $\n//\n// Copyright <NAME>. All rights reserved.\n//\n// Represent the abstract concept of a measure of pressure.\n// The internal representation of the units is hidden from the user.\n//\n\n#ifndef Units_Pressure_h\n#define Units_Pr...
231
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 35.56, "nodes": 95, "errors": 0, "source_hash": "54f334f987cf41eea9eb021574bc691f515759d509cda8b9d86d53e70e0c47ce", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,925
c
/* { dg-do compile } */ double *bar (void); void foo (double *ptr, int i) { double *a = __builtin_assume_aligned (ptr, 16, 8, 7); /* { dg-error "too many arguments to function" } */ double *b = __builtin_assume_aligned (bar (), 16); double *c = __builtin_assume_aligned (bar (), 16, 8); double *d = __builtin_a...
36
16
(translation_unit) "/* { dg-do compile } */\n\ndouble *bar (void);\n\nvoid\nfoo (double *ptr, int i)\n{\n double *a = __builtin_assume_aligned (ptr, 16, 8, 7); /* { dg-error "too many arguments to function" } */\n double *b = __builtin_assume_aligned (bar (), 16);\n double *c = __builtin_assume_aligned (bar (), 16, ...
176
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 36.0, "nodes": 123, "errors": 0, "source_hash": "169f08d2d9e3c828843e50c0fac5f3496c1b871449743c3c3b7a8530667a185c", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "double *ba...
4,926
c
// // NJNavigationController.h // SmartCity // // Created by TouchWorld on 2018/3/30. // Copyright © 2018年 Redirect. All rights reserved. // #import <UIKit/UIKit.h> @interface NJNavigationController : UINavigationController @end
22.3
10
(translation_unit) "//\n// NJNavigationController.h\n// SmartCity\n//\n// Created by TouchWorld on 2018/3/30.\n// Copyright © 2018年 Redirect. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface NJNavigationController : UINavigationController\n\n@end\n" (comment) "//" (comment) "// NJNavigationCon...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 22.3, "nodes": 10, "errors": 0, "source_hash": "dc0a3c1c6de74d93c88ec2f342fe91b261827832102cbe2f8711f3a4bb99a022", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKit...
4,927
c
#ifndef BARICOIN_CHAINPARAMSSEEDS_H #define BARICOIN_CHAINPARAMSSEEDS_H /** * List of fixed seed nodes for the baricoin network * AUTOGENERATED by contrib/seeds/generate-seeds.py * * Each line contains a BIP155 serialized (networkID, addr, port) tuple. */ static const uint8_t chainparams_seed_main[] = { }; s...
28.14
14
(translation_unit) "#ifndef BARICOIN_CHAINPARAMSSEEDS_H\n#define BARICOIN_CHAINPARAMSSEEDS_H\n/**\n * List of fixed seed nodes for the baricoin network\n * AUTOGENERATED by contrib/seeds/generate-seeds.py\n *\n * Each line contains a BIP155 serialized (networkID, addr, port) tuple.\n */\nstatic const uint8_t chainparam...
42
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 28.14, "nodes": 21, "errors": 0, "source_hash": "0614fc3bac604d43a665c3adcf6f5a388844bf4d443f3b744a5e3a6c7c5870de", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef B...
4,928
c
#import <Argo/Argo.h> #import <Foundation/Foundation.h> FOUNDATION_EXPORT double ArgoJSONAPIVersionNumber; FOUNDATION_EXPORT const unsigned char ArgoJSONAPIVersionString[];
42.25
4
(translation_unit) "#import <Argo/Argo.h>\n#import <Foundation/Foundation.h>\n\nFOUNDATION_EXPORT double ArgoJSONAPIVersionNumber;\nFOUNDATION_EXPORT const unsigned char ArgoJSONAPIVersionString[];\n" (preproc_call) "#import <Argo/Argo.h>\n" (preproc_directive) "#import" (preproc_arg) "<Argo/Argo.h>" (prepr...
26
1
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 42.25, "nodes": 18, "errors": 0, "source_hash": "2f0a723e16f66cc4c644cec99abd1533eda57a94e0f60671b054b5f7b0f42517", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <A...
4,929
c
/** * \file * * \brief SAM Always ON Sleep Timer Driver for SAMB11 * * Copyright (C) 2015-2018 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page License * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following con...
31.43
258
(translation_unit) "/**\n * \file\n *\n * \brief SAM Always ON Sleep Timer Driver for SAMB11\n *\n * Copyright (C) 2015-2018 Atmel Corporation. All rights reserved.\n *\n * \asf_license_start\n *\n * \page License\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted...
222
0
{"language": "c", "success": true, "metadata": {"lines": 258, "avg_line_length": 31.43, "nodes": 142, "errors": 0, "source_hash": "89d57c1fa410d8ac4b5a342253576c1350581dc15a154ff103296ae421f96b68", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,930
c
/* * Copyright (C) 2013-2015 * * @author <EMAIL> * @date 2013-11-19 * * @file upnp_timeout_util.h * * @remark * set tabstop=4 * set shiftwidth=4 * set expandtab */ #include "tiny_base.h" #ifndef __UPNP_TIMEOUT_UTIL_H__ #define __UPNP_TIMEOUT_UTIL_H__ TINY_BEGIN_DECLS TinyRet upnp_timeout_get_second(const ch...
19.78
23
(translation_unit) "/*\n* Copyright (C) 2013-2015\n*\n* @author <EMAIL>\n* @date 2013-11-19\n*\n* @file upnp_timeout_util.h\n*\n* @remark\n* set tabstop=4\n* set shiftwidth=4\n* set expandtab\n*/\n\n#include "tiny_base.h"\n\n#ifndef __UPNP_TIMEOUT_UTIL_H__\n#define __UPNP_TIMEOUT_UTIL_H__\n\nTINY_BEGIN_DECLS\n\n...
62
1
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 19.78, "nodes": 44, "errors": 0, "source_hash": "1475c7af2819d231e3cc3c6b199869808c540638ffd1a86d126ca9c11214fb95", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
4,931
c
// // StatsViewModel.h // StatHat // // Created by <NAME> on 10/26/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @class APIClient; @interface StatsViewModel : NSObject @property (nonatomic, readonly) NSArray *viewModels; - (instancetype)initWithAPIClient:(APIClient...
24.46
13
(translation_unit) "//\n// StatsViewModel.h\n// StatHat\n//\n// Created by <NAME> on 10/26/14.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@class APIClient;\n\n@interface StatsViewModel : NSObject\n\n@property (nonatomic, readonly) NSArray *viewModels;\n\n- (insta...
62
9
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 24.46, "nodes": 36, "errors": 0, "source_hash": "76a3f747b6f1b8e2c1a278016913cd199eed6f1f3d48a522bba20d3c96b531b4", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
4,932
c
#pragma once #include <iostream> #include "mdefs.h" #include "vec4.h" #include "mat3.h" namespace bacchus { /* |a00 a01 a02| |b00 b01 B02| |... ... ...| |A10 A11 A12|*|b10 b11 B12|=|... ... C12| |a20 a21 a22| |b20 b21 B22| |... ... ...| |a00 a01 a02| |x| |.| |A10 A11 A12|*|y|=|C| |a20 a21 a22| |z| |.| |a0...
37.53
294
(translation_unit) "#pragma once\n\n#include <iostream>\n\n#include "mdefs.h"\n#include "vec4.h"\n#include "mat3.h"\n\nnamespace bacchus {\n\n/*\n|a00 a01 a02| |b00 b01 B02| |... ... ...|\n|A10 A11 A12|*|b10 b11 B12|=|... ... C12|\n|a20 a21 a22| |b20 b21 B22| |... ... ...|\n\n|a00 a01 a02| |x| |.|\n|A10 A11 A12|*|y|=|C...
6,813
99
{"language": "c", "success": true, "metadata": {"lines": 294, "avg_line_length": 37.53, "nodes": 4277, "errors": 0, "source_hash": "e2b5ffae7906d7fa9c8553dfc586c429a6e2c702ba284e9e55f58a5ff2ad8645", "categorized_nodes": 3386}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pra...
4,933
c
/* Copyright 2016 <NAME> Inc. 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 la...
20.74
98
(translation_unit) "/*\n Copyright 2016 <NAME> Inc.\n \n Licensed under the Apache License, Version 2.0 (the "License"); you may not \n use this file except in compliance with the License. You may obtain a copy \n of the License at\n \n http://www.apache.org/licenses/LICENSE-2.0\n \n Unl...
907
0
{"language": "c", "success": true, "metadata": {"lines": 98, "avg_line_length": 20.74, "nodes": 597, "errors": 0, "source_hash": "bf9faee29dc7e630913487beb043d77fd6b055157afaba1d1938dba4a3d7be60", "categorized_nodes": 330}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,934
c
// // ComposeViewController.h // RTMChat // // Created by iOSdev on 10/8/13. // Copyright (c) 2013 Realtime. All rights reserved. // // The delegate protocol for the Compose screen @protocol ComposeDelegate <NSObject> - (void) didSaveMessage:(NSString *)message ToChannel:(NSString *) channel; @end // The Compose...
36
23
(translation_unit) "//\n// ComposeViewController.h\n// RTMChat\n//\n// Created by iOSdev on 10/8/13.\n// Copyright (c) 2013 Realtime. All rights reserved.\n//\n\n\n// The delegate protocol for the Compose screen\n@protocol ComposeDelegate <NSObject>\n- (void) didSaveMessage:(NSString *)message ToChannel:(NSString *...
185
23
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 36.0, "nodes": 127, "errors": 0, "source_hash": "a733a6517617c0013d4359f7ef6c734786c7171c7c8dea50dc620bfde60c0468", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@protocol Compos...
4,935
c
// // SingleComponentPickerViewController.h // 07-Pickers // // Created by 林涛 on 16/2/25. // Copyright © 2016年 limaofuyuanzhang. All rights reserved. // #import <UIKit/UIKit.h> @interface SingleComponentPickerViewController : UIViewController @end
24.2
10
(translation_unit) "//\n// SingleComponentPickerViewController.h\n// 07-Pickers\n//\n// Created by 林涛 on 16/2/25.\n// Copyright © 2016年 limaofuyuanzhang. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface SingleComponentPickerViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 24.2, "nodes": 10, "errors": 0, "source_hash": "68470f84c298891aae7068d6ac681c334e093a8ba6436c8f050bf5657920379a", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <UIKit/UIK...
4,936
c
#include <ofw/unittest.h> #include <ofw/dynarray.h> int test_DynArray_deleteFromLen1() { ofw_Result_t subResult; ofw_Error_t subError = 0; ofw_DynArray_t a; int32_t i; ofw_UnitTest_init(); ofw_DynArray_init(&a, sizeof(int32_t)); subResult = ofw_DynArray_insertFromLen(&a, 0, 3, &subError);...
34.42
60
(translation_unit) "#include <ofw/unittest.h>\n#include <ofw/dynarray.h>\n\nint test_DynArray_deleteFromLen1() {\n ofw_Result_t subResult;\n ofw_Error_t subError = 0;\n ofw_DynArray_t a;\n int32_t i;\n\n ofw_UnitTest_init();\n ofw_DynArray_init(&a, sizeof(int32_t));\n\n subResult = ofw_DynArray_ins...
629
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 34.42, "nodes": 362, "errors": 0, "source_hash": "802de77285966a9c5e5d654b02ac50dc3fc54d0528cebd6b13dbee6ce18a09ba", "categorized_nodes": 258}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,937
c
#ifndef DALI_TOOLKIT_CONFIRMATION_POPUP_H #define DALI_TOOLKIT_CONFIRMATION_POPUP_H /* * Copyright (c) 2020 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at...
34.32
127
(translation_unit) "#ifndef DALI_TOOLKIT_CONFIRMATION_POPUP_H\n#define DALI_TOOLKIT_CONFIRMATION_POPUP_H\n\n/*\n * Copyright (c) 2020 Samsung Electronics Co., Ltd.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obt...
259
7
{"language": "c", "success": true, "metadata": {"lines": 127, "avg_line_length": 34.32, "nodes": 143, "errors": 0, "source_hash": "f66713da140cce7b731a1c52933b232981a4c7c71655c282f254192e1042a0fa", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,938
c
/* Bad test for comparing functional equivalence which have self-define type. */ #ifdef _CIVL #include <civlc.cvh> #endif #include<stdio.h> typedef int PetscInt; struct Books { int book_id; }; union Data { int i; }; #ifdef _CIVL $output PetscInt ARRAY[5]; $output struct Books booko; #endif int main() { ...
15.38
29
(translation_unit) "/* Bad test for comparing functional equivalence which have self-define type.\n */\n\n#ifdef _CIVL\n#include <civlc.cvh>\n#endif\n\n#include<stdio.h>\n\ntypedef int PetscInt;\n\nstruct Books {\n int book_id;\n};\n\nunion Data {\n int i;\n};\n\n#ifdef _CIVL\n$output PetscInt ARRAY[5];\n$output ...
154
1
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 15.38, "nodes": 103, "errors": 0, "source_hash": "76cb75b8f1b861868fcf23090ef2448cd40d52520bc49304b5048d1053e725c3", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef ...
4,939
c
#include <stdio.h> #include <stdlib.h> #define tSize 100 // Tree Size typedef struct _node { char data; struct _node *left; struct _node *right; } node; int tree = 0; // Init with 0 - Stack Initializing node *nBuf[2]; // nBuf[0] for Head_Node, nBuf[1] for End_Node node *nTree[3]; // nTree[0] for parent, nTree[1] ...
29.19
104
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\n#define tSize 100 // Tree Size\n\ntypedef struct _node {\n char data;\n struct _node *left;\n struct _node *right;\n} node;\n\nint tree = 0; // Init with 0 - Stack Initializing\nnode *nBuf[2]; // nBuf[0] for Head_Node, nBuf[1] for End_Node\nnode *nTree[3]; ...
1,098
0
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 29.19, "nodes": 646, "errors": 0, "source_hash": "fe64a7925cd802dd115f14cc8ed712343e5ff00ff7e0bd19aa4faf6ba32d2ef8", "categorized_nodes": 470}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,940
c
#include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <string.h> #include <strings.h> #include "btx.h" /*This function reads the input of the page viewer * Initiator and terminator get translated to * and # * Text is filtered to simple digits and characters ...
21.73
118
(translation_unit) "#include <stdio.h>\n#include <sys/types.h>\n#include <sys/stat.h>\n#include <fcntl.h>\n#include <unistd.h>\n#include <string.h>\n#include <strings.h>\n#include "btx.h"\n\n\n/*This function reads the input of the page viewer\n * Initiator and terminator get translated to * and #\n * Text is filtered ...
1,085
0
{"language": "c", "success": true, "metadata": {"lines": 118, "avg_line_length": 21.73, "nodes": 658, "errors": 0, "source_hash": "ce024cdcd5e2c4a934bc698ebabf1ec7c8cee2245f6ddb641e4fb7b3690e5168", "categorized_nodes": 467}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,941
c
/* Part of Scallop Transcript Assembler (c) 2017 by <NAME>, <NAME>, and Carnegie Mellon University. See LICENSE for licensing. */ #ifndef __HIT_H__ #define __HIT_H__ #include <string> #include <vector> #include "htslib/sam.h" using namespace std; /*! @typedef @abstract Structure for core alignment information. ...
32.4
85
(translation_unit) "/*\nPart of Scallop Transcript Assembler\n(c) 2017 by <NAME>, <NAME>, and Carnegie Mellon University.\nSee LICENSE for licensing.\n*/\n\n#ifndef __HIT_H__\n#define __HIT_H__\n\n#include <string>\n#include <vector>\n\n#include "htslib/sam.h"\n\nusing namespace std;\n\n/*! @typedef\n @abstract Struct...
248
11
{"language": "c", "success": true, "metadata": {"lines": 85, "avg_line_length": 32.4, "nodes": 147, "errors": 0, "source_hash": "c0d133bdd47400d8327550a8ed9ba0fc61bf8b4a74bbcc635dbe68f681b7a2c6", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,942
c
/* * Copyright (c) 2022 Huawei Technologies Co.,Ltd. * * openGauss is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ...
33.82
193
(translation_unit) "/*\n * Copyright (c) 2022 Huawei Technologies Co.,Ltd.\n *\n * openGauss is licensed under Mulan PSL v2.\n * You can use this software according to the terms and conditions of the Mulan PSL v2.\n * You may obtain a copy of Mulan PSL v2 at:\n *\n * http://license.coscl.org.cn/MulanPSL2\n *\n...
1,111
0
{"language": "c", "success": true, "metadata": {"lines": 193, "avg_line_length": 33.82, "nodes": 814, "errors": 0, "source_hash": "03a35d33a887e1a3ec24174638a3a3f31ae00e709c8ca2583a3094fa0dcce2cb", "categorized_nodes": 599}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,943
c
#include <stdio.h> #include <ntc/prime.h> #define ulim 20161 int main(void) { int abcnt = 0; int abundant[ulim] = { 0 }; int absum[ulim] = { 0 }; /* Calc abundant numbers first */ int i, j; for (i = 1; i <= ulim; ++i) { if (divisor(1, i) - i > (size_t)i) abundant[abcnt+...
23.27
30
(translation_unit) "#include <stdio.h>\n#include <ntc/prime.h>\n\n#define ulim 20161\n\nint main(void)\n{\n int abcnt = 0;\n int abundant[ulim] = { 0 };\n int absum[ulim] = { 0 };\n\n /* Calc abundant numbers first */\n int i, j;\n for (i = 1; i <= ulim; ++i) {\n if (divisor(1, i) - i > (siz...
271
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 23.27, "nodes": 175, "errors": 0, "source_hash": "85dea1936703a8eb99e8450874a1b49348eaf07fc74c1856893411fe7b12ed15", "categorized_nodes": 119}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,944
c
/* * PALMFILE.H - access routines for PalmOS files from Geos * * by <NAME>, <EMAIL> * */ /* "Endian" conversions between Geos and PalmOS */ #define PalmWORD(w) ( (((word)(w))>>8) | (((word)(w))<<8) ) #define PalmDWORD(d) ( PalmWORD((d)>>16) | (((dword)PalmWORD(d))<<16) ) /* Opaque handle use...
31.71
28
(translation_unit) "/* \n * PALMFILE.H - access routines for PalmOS files from Geos \n * \n * by <NAME>, <EMAIL> \n * \n */ \n \n/* "Endian" conversions between Geos and PalmOS */ \n#define PalmWORD(w) ( (((word)(w))>>8) | (((word)(w))<<8) ) \n#define PalmDWORD(d) ( PalmWORD((d)>>16) | (((dword)PalmWORD(d))<<...
101
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 31.71, "nodes": 73, "errors": 0, "source_hash": "770e906319236dbc1260b60360cdf4f16952749846de38956b0db943017f286a", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_function_def", "text": "#...
4,945
c
/* * Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #pragma once #include <SceneAPI/SceneBuilder/ImportContexts/AssImpImportContexts.h> #include <Scene...
35.45
29
(translation_unit) "/*\n * Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.\n * \n * SPDX-License-Identifier: Apache-2.0 OR MIT\n *\n */\n\n#pragma once\n\n#include <SceneAPI/SceneBuilder/ImportContexts/AssImpImpo...
123
5
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 35.45, "nodes": 65, "errors": 0, "source_hash": "921e0febd47ba7c3a3717f79b04d286bd5669e97138d813fe38649acb0c5e904", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
4,946
c
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_TEST_BASE_TEST_BROWSER_WINDOW_AURA_H_ #define CHROME_TEST_BASE_TEST_BROWSER_WINDOW_AURA_H_ #include "base/macros.h" #include "chrome/test/...
42.73
33
(translation_unit) "// Copyright 2015 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef CHROME_TEST_BASE_TEST_BROWSER_WINDOW_AURA_H_\n#define CHROME_TEST_BASE_TEST_BROWSER_WINDOW_AURA_H_\n\n#include "base/macro...
221
10
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 42.73, "nodes": 131, "errors": 0, "source_hash": "a9a8538a0c96321e6596d48c79cad965fcb76ccfa1d4c5a7f320851e560b9b46", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,947
c
#ifndef DATAMANAGER_H #define DATAMANAGER_H #include <mpi.h> #include "Utils.h" class Metadata; class DataManager { public: DataManager(const Metadata& meta, const vec3i& gridDim, const vec3i& blockIdx); ~DataManager(); float* GetDataPtr(int t) { return dataSequence[t].data(); } float* GetTFMap() ...
34.48
27
(translation_unit) "#ifndef DATAMANAGER_H\n#define DATAMANAGER_H\n\n#include <mpi.h>\n#include "Utils.h"\nclass Metadata;\n\nclass DataManager {\n\npublic:\n DataManager(const Metadata& meta, const vec3i& gridDim, const vec3i& blockIdx);\n ~DataManager();\n\n float* GetDataPtr(int t) { return dataSequence[t].da...
311
10
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 34.48, "nodes": 183, "errors": 0, "source_hash": "da289febaa97be40e23d1e6ca0d68c5a00db7e04fbf1d04c5e9a818308ec2fe7", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,948
c
#ifndef __FOCALTECH_CORE_H__ #define __FOCALTECH_CORE_H__ #include <linux/i2c.h> #include <linux/spi/spi.h> #include <linux/input.h> #include <linux/input/mt.h> #include <linux/slab.h> #include <linux/interrupt.h> #include <linux/delay.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/gpio.h> #i...
35
253
(translation_unit) "#ifndef __FOCALTECH_CORE_H__\n#define __FOCALTECH_CORE_H__\n\n#include <linux/i2c.h>\n#include <linux/spi/spi.h>\n#include <linux/input.h>\n#include <linux/input/mt.h>\n#include <linux/slab.h>\n#include <linux/interrupt.h>\n#include <linux/delay.h>\n#include <linux/kernel.h>\n#include <linux/module....
1,388
0
{"language": "c", "success": true, "metadata": {"lines": 253, "avg_line_length": 35.0, "nodes": 1130, "errors": 0, "source_hash": "1272a801b0f7f00610b951201ecefe11118a82dad14c1052140312f10beb6a15", "categorized_nodes": 697}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,949
c
#define WIN32_LEAN_AND_MEAN #include <windows.h> #include <stdio.h> #include "box.h" #include "text.h" #include "constants.h" #include "i18n.h" #include "imagemgr.h" #include "titlebar.h" #include "view.h" struct adpopdata_s { int seconds; struct Box_s *text; }; void Adpop_OnClose(struct Bo...
23.43
139
(translation_unit) "#define WIN32_LEAN_AND_MEAN \n \n#include <windows.h> \n \n#include <stdio.h> \n \n#include "box.h" \n#include "text.h" \n \n#include "constants.h" \n#include "i18n.h" \n#include "imagemgr.h" \n#include "titlebar.h" \n#include "view.h" \n \nstruct adpopdata_s \n{ \n int seconds; \n struct Box_s *tex...
1,099
0
{"language": "c", "success": true, "metadata": {"lines": 139, "avg_line_length": 23.43, "nodes": 673, "errors": 0, "source_hash": "9802edd5d48c017317cc24c45193fb94e59aadf9e305116b765a135ac94f0565", "categorized_nodes": 522}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
4,950
c
/* { dg-do link } */ /* { dg-options "-O2 -fno-tree-switch-conversion" } */ extern void link_error (void); /* Test <<. */ void f3 (int s, int b) { if (s >> 3 == -2) /* s in range [-16, -9]. */ { s += 17; /* s in range [1, 8]. */ b = (b & 1) + 1; /* b in range [1, 2]. */ b ...
18.89
27
(translation_unit) "/* { dg-do link } */\n/* { dg-options "-O2 -fno-tree-switch-conversion" } */\n\nextern void link_error (void);\n\n/* Test <<. */\n\nvoid\nf3 (int s, int b)\n{\n if (s >> 3 == -2)\n /* s in range [-16, -9]. */\n {\n s += 17;\n /* s in range [1, 8]. */\n b = (b & 1) + 1;\n ...
118
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 18.89, "nodes": 72, "errors": 0, "source_hash": "8beb2ccbc3d7a1f7c9043365143236cf08e49402dbb503d34cf77109cefeaece", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern voi...
4,951
c
/* * Exercise 2-6 in K&R's ANSI C * meant to create a function called setbits(x,p,n,y) * returns x with the n bits that begin at position p set to the rightmost n bits of y, * leaving other bits unchanged. * * Basically a clusterfuck of bitwise operators. This is going to be interesting. */ #include <stdio.h> #...
30.75
67
(translation_unit) "/*\n * Exercise 2-6 in K&R's ANSI C\n * meant to create a function called setbits(x,p,n,y)\n * returns x with the n bits that begin at position p set to the rightmost n bits of y,\n * leaving other bits unchanged.\n *\n * Basically a clusterfuck of bitwise operators. This is going to be interesting....
336
0
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 30.75, "nodes": 219, "errors": 0, "source_hash": "54ee66ad9f8c34dc8aed7e6ecb32011180a2938bd2a8cafcc294e1137bff5121", "categorized_nodes": 148}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,952
c
// Copyright 2014 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #ifndef XFA_FXBARCODE_DATAMATRIX_BC_DATAMATRIXDATABLOCK_H_ #define XFA_FXBARCO...
40.09
23
(translation_unit) "// Copyright 2014 PDFium 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// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com\n\n#ifndef XFA_FXBARCODE_DATAMATRIX_BC_DATAMATRIXDATABL...
125
5
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 40.09, "nodes": 77, "errors": 0, "source_hash": "397adcd0b893145010eff0b15908ed445829c579c8080b54492367815985adbe", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,953
c
#pragma once int game2048(int argc, char *argv[]);
24.5
2
(translation_unit) "#pragma once\n\nint game2048(int argc, char *argv[]);\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (declaration) "int game2048(int argc, char *argv[]);" (primitive_type) "int" (function_declarator) "game2048(int argc, char *argv[])" ...
24
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 24.5, "nodes": 17, "errors": 0, "source_hash": "6321eaefc2be6992973824ed46a5c9d132661c0948a899bd2248aab1246545ea", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once...
4,954
c
#pragma once #ifdef __cplusplus extern "C" { #endif BOOL OpenHidInjectorDevice(); void CloseHidInjectorDevice(); extern HANDLE g_hFile; #ifdef __cplusplus } // extern "C" #endif
13.14
14
(translation_unit) "#pragma once \n \n#ifdef __cplusplus \nextern "C" { \n#endif \n \n BOOL OpenHidInjectorDevice(); \n void CloseHidInjectorDevice(); \n \n extern HANDLE g_hFile; \n \n#ifdef __cplusplus \n} // extern "C" \n#endif \n \n \n \n" (preproc_call) "#pragma once \n" (preproc_directive) "#pragma" (pr...
46
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 13.14, "nodes": 31, "errors": 0, "source_hash": "6a5eaa537bc2a803393432600d523b69f56cdac2c81120c2b26b672aa17f5dad", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
4,955
c
#ifndef __InputGeometryNode_h__ #define __InputGeometryNode_h__ #include <maya/MPxNode.h> class Input; class InputGeometryNode : public MPxNode { public: static void* creator(); static MStatus initialize(); public: static MString typeName; static MTypeId typeId; static MObject inputTransform; ...
22.17
29
(translation_unit) "#ifndef __InputGeometryNode_h__\n#define __InputGeometryNode_h__\n\n#include <maya/MPxNode.h>\n\nclass Input;\n\nclass InputGeometryNode : public MPxNode\n{\npublic:\n static void* creator();\n static MStatus initialize();\n\npublic:\n static MString typeName;\n static MTypeId typeId;\n\...
161
6
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 22.17, "nodes": 89, "errors": 0, "source_hash": "53a48a3c2ecf57db8d46970e38fbe6537f69b9367e88bf1ed954e7fd8e15536c", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,956
c
// // DPCConnectionDetails.h // DapiConnect // // Created by <NAME> on 22/06/2020. // Copyright © 2020 Dapi. All rights reserved. // #import <Foundation/Foundation.h> #import "DPCAccount.h" NS_ASSUME_NONNULL_BEGIN NS_SWIFT_NAME(DapiConnectionDetails) @interface DPCConnectionDetails : NSObject @property (nonnull...
41.54
24
(translation_unit) "//\n// DPCConnectionDetails.h\n// DapiConnect\n//\n// Created by <NAME> on 22/06/2020.\n// Copyright © 2020 Dapi. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "DPCAccount.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\nNS_SWIFT_NAME(DapiConnectionDetails)\n@interface DPCConnectionDeta...
257
43
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 41.54, "nodes": 188, "errors": 0, "source_hash": "bfe2013345776b49bd76b068e933d8efca45bd19cff39346ab7c54e36a46f160", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <...
4,957
c
class QSimulator { int width; int height; int *map; int cX; int cY; public: // Initialize with map and values x and y.( Map is 1D so that it's easier to interface with the RBM ). QSimulator(int *, int, int); // Simulate the world and learn Q values. void simulate(); // Get best action for a gi...
24.21
14
(translation_unit) "class QSimulator {\n int width;\n int height;\n\n int *map;\n\n int cX;\n int cY;\n\n public:\n // Initialize with map and values x and y.( Map is 1D so that it's easier to interface with the RBM ).\n QSimulator(int *, int, int);\n\n // Simulate the world and learn Q values.\n void simulate...
75
2
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 24.21, "nodes": 44, "errors": 0, "source_hash": "12f4b74bf3c34a85560041b4a58dcbe7b3ec9094ab67baefc18cbd09c0328475", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "cl...
4,958
c
#ifndef DISCORD_CRYPTO_H #define DISCORD_CRYPTO_H #include <sodium.h> #include <cstdint> namespace discord { namespace crypto { int xsalsa20_poly1305_encrypt(const uint8_t *src, uint8_t *dest, uint64_t src_len, uint8_t *secret_key, uint8_t *nonce); } } // namespace discord #endif
23
13
(translation_unit) "#ifndef DISCORD_CRYPTO_H\n#define DISCORD_CRYPTO_H\n\n#include <sodium.h>\n#include <cstdint>\n\nnamespace discord\n{\nnamespace crypto\n{\nint xsalsa20_poly1305_encrypt(const uint8_t *src, uint8_t *dest, uint64_t src_len,\n uint8_t *secret_key, uint8_t *nonce);\n}\n} /...
64
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 23.0, "nodes": 47, "errors": 0, "source_hash": "8e5041f4b241fb4bdae9fadd3bb9d5054c80012c61fa23352fc63bd7385d2aff", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef D...
4,959
c
//----------------------------------------------------------------------------- #ifndef SRC_MAIN_SOCKET_SOCKET_H_ #define SRC_MAIN_SOCKET_SOCKET_H_ //----------------------------------------------------------------------------- #include <string> #include <memory> #include <vector> #include "../model/entity.h" #ifdef ...
29.68
68
(translation_unit) "//-----------------------------------------------------------------------------\n#ifndef SRC_MAIN_SOCKET_SOCKET_H_\n#define SRC_MAIN_SOCKET_SOCKET_H_\n//-----------------------------------------------------------------------------\n#include <string>\n#include <memory>\n#include <vector>\n\n#include ...
667
34
{"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 29.68, "nodes": 435, "errors": 0, "source_hash": "1cfc36bd45b547cd17bbf5a4bdf219385e26282c2932b3dd6133e5d0b2881029", "categorized_nodes": 299}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,960
c
// // CYNBaseView.h // Leclean // // Created by Cyandnow on 2018/4/12. // Copyright © 2018年 <NAME>ong Bus Co.,Ltd. All rights reserved. // #import <UIKit/UIKit.h> @interface CYNBaseView : UIView @end
19.4
10
(translation_unit) "//\n// CYNBaseView.h\n// Leclean\n//\n// Created by Cyandnow on 2018/4/12.\n// Copyright © 2018年 <NAME>ong Bus Co.,Ltd. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface CYNBaseView : UIView\n\n@end\n" (comment) "//" (comment) "// CYNBaseView.h" (comment) "// Leclean" (...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.4, "nodes": 10, "errors": 0, "source_hash": "0325c805c068077f4fdf1c21d079946e09af9583d80bc9dfae46aefe375cb8b4", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKit...
4,961
c
#pragma once #include <service_node.h> #include "common/network/tcp_service.h" class MonitorNode : public ServiceNode { public: int pasreRouteSlotStr(const char * str, int len, Node * node); void handler(int _sockfd, SPDUBase & _base); MonitorNode(); int init(); int regist(Node * node); int registRsp(int _sockf...
26.74
27
(translation_unit) "#pragma once\n#include <service_node.h>\n#include "common/network/tcp_service.h"\nclass MonitorNode : public ServiceNode {\npublic:\n int pasreRouteSlotStr(const char * str, int len, Node * node);\n void handler(int _sockfd, SPDUBase & _base);\n MonitorNode();\n int init();\n int regist(Node * node)...
177
5
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 26.74, "nodes": 111, "errors": 0, "source_hash": "4501422809c27395ed1389487a45864ed57608824da50c44618d72c08e696cdd", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
4,962
c
//--------------------------------------------------------------------------- // Copyright (c) 2016 <NAME> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, inc...
31.96
139
(translation_unit) "//--------------------------------------------------------------------------- \n// Copyright (c) 2016 <NAME> \n// \n// Permission is hereby granted, free of charge, to any person obtaining a copy \n// of this software and associated documentation files (the "Software"), to deal \n// in the Software...
433
30
{"language": "c", "success": true, "metadata": {"lines": 139, "avg_line_length": 31.96, "nodes": 249, "errors": 0, "source_hash": "89c77edbf2ba53038ad0e1a1957407363fa320e01d39499c9f592857f8699234", "categorized_nodes": 175}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,963
c
#include <stdio.h> int maxProfit(int* prices, int pricesSize) { int max = 0; int left = 0; int right = 1; while (right < pricesSize) { int now = prices[right] - prices[left]; if (prices[left] < prices[right]) max = max > now ? max : now; else left = right...
19.91
22
(translation_unit) "#include <stdio.h>\nint maxProfit(int* prices, int pricesSize)\n{\n int max = 0;\n int left = 0;\n int right = 1;\n\n while (right < pricesSize) {\n int now = prices[right] - prices[left];\n if (prices[left] < prices[right])\n max = max > now ? max : now;\n ...
179
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 19.91, "nodes": 113, "errors": 0, "source_hash": "dc8f9c1aeb3e37c1b4d2559f13e5c6e619a17eb4835a3795960f2783a65fabc8", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
4,964
c
/* * (C) Copyright 1996- ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an interg...
37.88
24
(translation_unit) "/*\n * (C) Copyright 1996- ECMWF.\n *\n * This software is licensed under the terms of the Apache Licence Version 2.0\n * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.\n * In applying this licence, ECMWF does not waive the privileges and immunities\n * granted to it by virtue ...
62
3
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 37.88, "nodes": 36, "errors": 0, "source_hash": "40e76fcb40205f4498e645590e99284b605649f25a0e01dfc33b20f1831ce6e3", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
4,965
c
#include <stdio.h> #include <omp.h> static long num_steps = 100000; double step; int main() { double pi, sum; double x; int i, ts_num; step = 1.0/(double)num_steps; double start = omp_get_wtime(); #pragma omp parallel for reduction(+:sum) for(i=0;i < num_steps;i++) { x = (i+0.5)*step; sum += 4...
19.32
22
(translation_unit) "#include <stdio.h>\n#include <omp.h>\n\nstatic long num_steps = 100000;\ndouble step;\n\nint main()\n{\n double pi, sum;\n double x;\n int i, ts_num;\n step = 1.0/(double)num_steps;\n double start = omp_get_wtime();\n #pragma omp parallel for reduction(+:sum)\n for(i=0;i < num_steps;i++)\n {...
172
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 19.32, "nodes": 113, "errors": 0, "source_hash": "5a9571b006e09128428a38fcfb0153c419c42f9412188e70d3e43b7d4900da93", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
4,966
c
/* * Copyright (c) 2018 <NAME> * https://github.com/iotaledger/entangled * * Refer to the LICENSE file for licensing information */ #include <unity/unity.h> #include "common/crypto/curl-p/ptrit.h" #include "common/crypto/curl-p/tests/test_curlp_ptrit.h" void run_curl_p_test(PCurl *curl, ptrit_t *exp, CurlType c...
27.94
36
(translation_unit) "/*\n * Copyright (c) 2018 <NAME>\n * https://github.com/iotaledger/entangled\n *\n * Refer to the LICENSE file for licensing information\n */\n\n#include <unity/unity.h>\n\n#include "common/crypto/curl-p/ptrit.h"\n#include "common/crypto/curl-p/tests/test_curlp_ptrit.h"\n\nvoid run_curl_p_test(PCurl...
269
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 27.94, "nodes": 153, "errors": 0, "source_hash": "a6c34f7f34503e5a50fe4de9dcd49f5ce690e413dab0d8ef592629a65b8c134a", "categorized_nodes": 112}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,967
c
/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "NR-RRC-Definitions" * found in "NR-RRC-Definitions.asn" * `asn1c -fcompound-names -no-gen-example -pdu=all` */ #include "PDCCH-BlindDetection3-r16.h" int PDCCH_BlindDetection3_r16_constraint(const asn_TYPE_descriptor_t *td, const vo...
32.25
60
(translation_unit) "/*\n * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)\n * From ASN.1 module "NR-RRC-Definitions"\n * found in "NR-RRC-Definitions.asn"\n * `asn1c -fcompound-names -no-gen-example -pdu=all`\n */\n\n#include "PDCCH-BlindDetection3-r16.h"\n\nint\nPDCCH_BlindDetection3_r16_constraint(const asn_T...
352
2
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 32.25, "nodes": 183, "errors": 0, "source_hash": "34f6975df69db5a9cbcf638b96df5658dcc96487c340b9ead1039f6fe9e9e1a8", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,968
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @class MPNotificationViewController; @protocol MPNotificationViewControllerDelegate <NSObject> - (void)notificationController:(MPNotificationViewController *)arg1 w...
34.6
10
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n@class MPNotificationViewController;\n\n@protocol MPNotificationViewControllerDelegate <NSObject>\n- (void)notificationController:(MPNoti...
52
8
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 34.6, "nodes": 31, "errors": 0, "source_hash": "e099b42db8a80630f30976cc1ac1b62d46db7153584594c53f1836a1129c5c28", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
4,969
c
#ifndef MANUALSCRIBBLE_H #define MANUALSCRIBBLE_H #include <math.h> #include <QColor> #include <QImage> #include <QPoint> #include <QWidget> /** * @brief * This class is a widget that handles the drawing area for the radar map */ class ManualScribble : public QWidget { Q_OBJECT public: /** * @brief ...
18.38
145
(translation_unit) "#ifndef MANUALSCRIBBLE_H\n#define MANUALSCRIBBLE_H\n\n#include <math.h>\n\n#include <QColor>\n#include <QImage>\n#include <QPoint>\n#include <QWidget>\n\n/**\n * @brief\n * This class is a widget that handles the drawing area for the radar map\n */\nclass ManualScribble : public QWidget\n{\n Q_OB...
410
21
{"language": "c", "success": true, "metadata": {"lines": 145, "avg_line_length": 18.38, "nodes": 246, "errors": 0, "source_hash": "dce6bfe57668da561530e076669fa142f4b7ca94553512ce0e536455497a6b3a", "categorized_nodes": 153}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,970
c
#ifndef HUAWEICLOUD_SDK_VOD_V1_MODEL_ListAssetListRequest_H_ #define HUAWEICLOUD_SDK_VOD_V1_MODEL_ListAssetListRequest_H_ #include <huaweicloud/vod/v1/VodExport.h> #include <huaweicloud/core/utils/ModelBase.h> #include <huaweicloud/core/http/HttpResponse.h> #include <string> #include <vector> namespace HuaweiCloud...
30.49
164
(translation_unit) "#ifndef HUAWEICLOUD_SDK_VOD_V1_MODEL_ListAssetListRequest_H_\n#define HUAWEICLOUD_SDK_VOD_V1_MODEL_ListAssetListRequest_H_\n\n#include <huaweicloud/vod/v1/VodExport.h>\n\n#include <huaweicloud/core/utils/ModelBase.h>\n#include <huaweicloud/core/http/HttpResponse.h>\n\n#include <string>\n#include <ve...
1,052
54
{"language": "c", "success": true, "metadata": {"lines": 164, "avg_line_length": 30.49, "nodes": 630, "errors": 0, "source_hash": "79ec34ed43aa2014a0a837f35c772b61c34c2487977db22b77d7493aca8ed7f3", "categorized_nodes": 412}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,971
c
/* * NMH's Simple C Compiler, 2011,2012,2014 * malloc() */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #define THRESHOLD 128 #define OVERALLOC 10 int *_arena = 0; int _asize; static int *freep; static void defrag(void) { int *p, *q, *end; end = _arena + _asize; for (p = _a...
17.51
84
(translation_unit) "/*\n * NMH's Simple C Compiler, 2011,2012,2014\n * malloc()\n */\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <unistd.h>\n#include <errno.h>\n\n#define THRESHOLD 128\n#define OVERALLOC 10\n\nint *_arena = 0;\nint _asize;\nstatic int *freep;\n\nstatic void defrag(void) {\n int *p, *q, *end;...
691
0
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 17.51, "nodes": 450, "errors": 0, "source_hash": "c3dcac4c1cc25057edbfd06114f089073f5aaf2f9cd08d33a8a6db2d60b5761d", "categorized_nodes": 290}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,972
c
#ifndef VECTOR_H_ #define VECTOR_H_ /* * CometOS --- a component-based, extensible, tiny operating system * for wireless networks * * Copyright (c) 2015, Institute of Telematics, Hamburg University of Technology * All rights reserved. * Redistribution and use in source and binary forms, with or with...
28.02
186
(translation_unit) "#ifndef VECTOR_H_\n#define VECTOR_H_\n\n/*\n * CometOS --- a component-based, extensible, tiny operating system\n * for wireless networks\n *\n * Copyright (c) 2015, Institute of Telematics, Hamburg University of Technology\n * All rights reserved.\n\n * Redistribution and use in source ...
907
22
{"language": "c", "success": true, "metadata": {"lines": 186, "avg_line_length": 28.02, "nodes": 515, "errors": 0, "source_hash": "bdfb332dbba5c04a86c8502f2fb6922026ce53ddb124fcc7eed73fca7845d558", "categorized_nodes": 363}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,973
c
#pragma once #include "../nvapi_private.h" #include "../util/com_pointer.h" #include "vulkan.h" #include "nvml.h" namespace dxvk { class ResourceFactory { public: ResourceFactory(); virtual ~ResourceFactory(); virtual Com<IDXGIFactory> CreateDXGIFactory(); virtual std::unique...
26.07
15
(translation_unit) "#pragma once\n\n#include "../nvapi_private.h"\n#include "../util/com_pointer.h"\n#include "vulkan.h"\n#include "nvml.h"\n\nnamespace dxvk {\n class ResourceFactory {\n\n public:\n ResourceFactory();\n virtual ~ResourceFactory();\n\n virtual Com<IDXGIFactory> CreateDXGIFact...
107
4
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 26.07, "nodes": 63, "errors": 0, "source_hash": "ee1554b97778365594aa628c27c0a1c92a6d740d625bbff2d9057487bc73c317", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
4,974
c
/*++ Copyright (c) 2004, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. ...
29.61
108
(translation_unit) "/*++\n\nCopyright (c) 2004, Intel Corporation \nAll rights reserved. This program and the accompanying materials \nare licensed and made available under the terms and conditions of the BSD License \nwhich accomp...
341
18
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 29.61, "nodes": 286, "errors": 0, "source_hash": "ed14a45379a4b167cc8e64c774b846da048858b8a67d5ede0167f9d9c5cb02b0", "categorized_nodes": 147}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,975
c
// // ActiveDispatcher.h // // $Id: //poco/1.4/Foundation/include/Poco/ActiveDispatcher.h#1 $ // // Library: Foundation // Package: Threading // Module: ActiveObjects // // Definition of the ActiveDispatcher class. // // Copyright (c) 2006-2007, Applied Informatics Software Engineering GmbH. // and Contrib...
31.25
138
(translation_unit) "// \n// ActiveDispatcher.h \n// \n// $Id: //poco/1.4/Foundation/include/Poco/ActiveDispatcher.h#1 $ \n// \n// Library: Foundation \n// Package: Threading \n// Module: ActiveObjects \n// \n// Definition of the ActiveDispatcher class. \n// \n// Copyright (c) 2006-2007, Applied Informatics Software En...
293
9
{"language": "c", "success": true, "metadata": {"lines": 138, "avg_line_length": 31.25, "nodes": 119, "errors": 0, "source_hash": "8c0628101e8560905f871a0ee4c16bae62ab8b2a979a4fa54644b4e8d5e503ee", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,976
c
int main() { int ret = 0; for (int i = 0; i < 3; i++) { ret++; } return ret; }
13.71
7
(translation_unit) "int main() {\n int ret = 0;\n for (int i = 0; i < 3; i++) {\n ret++;\n }\n return ret;\n}\n" (function_definition) "int main() {\n int ret = 0;\n for (int i = 0; i < 3; i++) {\n ret++;\n }\n return ret;\n}" (primitive_type) "int" (function_declarator) ...
49
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 13.71, "nodes": 30, "errors": 0, "source_hash": "873983b7336596de790289609f7aeb9d43314bdaafebaaebc4ee4f4fab23b52a", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "int...
4,977
c
/* * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Copyright 2007-2020 Broadcom Inc. All rights reserved. */ /*! \file diag_dnx_pp.h * * Main header file for PP Diagnostics command files. */ #ifndef DIAG_DNX_PP_INCLUDED #...
36.31
238
(translation_unit) "/*\n * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.\n * \n * Copyright 2007-2020 Broadcom Inc. All rights reserved.\n */\n/*! \file diag_dnx_pp.h\n *\n * Main header file for PP Diagnostics command files.\n */\n\n...
480
0
{"language": "c", "success": true, "metadata": {"lines": 238, "avg_line_length": 36.31, "nodes": 361, "errors": 0, "source_hash": "22b83d74f99e9478e34f84f52a2d74b0e9cf7b17f1b097a79180ab5043bc88e7", "categorized_nodes": 235}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,978
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 copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
26.76
121
(translation_unit) "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0...
752
0
{"language": "c", "success": true, "metadata": {"lines": 121, "avg_line_length": 26.76, "nodes": 411, "errors": 0, "source_hash": "96f31f8f5ac917988b92b3ba058dc07440c7e2374b13ddb0f946aef3bd313569", "categorized_nodes": 297}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,979
c
#ifndef CPL_CRITICALSECTION_H #define CPL_CRITICALSECTION_H #ifdef CPL_USE_SPROC #include <abi_mutex.h> typedef abilock_t cpl_CritSecType; #endif #ifdef CPL_USE_PTHREADS #include <pthread.h> typedef pthread_mutex_t cpl_CritSecType; #endif #ifdef _WIN32 #include <winbase.h> typedef CRITICAL_SECTION cpl_CritSecType; #...
29.18
68
(translation_unit) "#ifndef CPL_CRITICALSECTION_H\n#define CPL_CRITICALSECTION_H\n\n#ifdef CPL_USE_SPROC\n#include <abi_mutex.h>\ntypedef abilock_t cpl_CritSecType;\n#endif\n\n#ifdef CPL_USE_PTHREADS\n#include <pthread.h>\ntypedef pthread_mutex_t cpl_CritSecType;\n#endif\n\n#ifdef _WIN32\n#include <winbase.h>\ntypedef ...
301
4
{"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 29.18, "nodes": 177, "errors": 0, "source_hash": "bffd670d32c54fb87f2182a361aa2c7c04747cf1fc295676ae2b9b1211f31094", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,980
c
#pragma once #include <stdint.h> #include <stddef.h> typedef uint16_t wchar_t; #define EFIAPI #define OUT #define IN #define OPTIONAL #define CONST const typedef void VOID; typedef intptr_t INTN; typedef uintptr_t UINTN; typedef int64_t INT64; typedef uint64_t UINT64; typedef int32_t INT32; typedef uint...
21.44
39
(translation_unit) "#pragma once\n\n#include <stdint.h>\n#include <stddef.h>\n\ntypedef uint16_t wchar_t;\n\n#define EFIAPI\n#define OUT\n#define IN\n#define OPTIONAL\n#define CONST const\n\ntypedef void VOID;\ntypedef intptr_t INTN;\ntypedef uintptr_t UINTN;\ntypedef int64_t INT64;\ntypedef uint64_t UINT64;\...
198
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 21.44, "nodes": 157, "errors": 0, "source_hash": "f97c70b809ccb6fb7510c30c5efe2008627a5ad838fad2bc0a6adf1156ee9101", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
4,981
c
#pragma once #include "CoreMinimal.h" #include "ResourceCreator.h" #include "ECarveFilterType.h" #include "RandRange.h" #include "VeinResourceCreator.generated.h" class UVeinResourceData; class UDebrisPositioning; class UFloodFillSettings; class UDebrisBase; UCLASS(Blueprintable, EditInlineNew) class UVeinResourceCre...
32.76
51
(translation_unit) "#pragma once\n#include "CoreMinimal.h"\n#include "ResourceCreator.h"\n#include "ECarveFilterType.h"\n#include "RandRange.h"\n#include "VeinResourceCreator.generated.h"\n\nclass UVeinResourceData;\nclass UDebrisPositioning;\nclass UFloodFillSettings;\nclass UDebrisBase;\n\nUCLASS(Blueprintable, EditI...
382
6
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 32.76, "nodes": 236, "errors": 0, "source_hash": "38b485ef16cbc8a53370f48c1ff1d1a49bef637093b59fa481f7eb4669aaffc4", "categorized_nodes": 166}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
4,982
c
// Copyright (c) 2011-2017 The Cryptonote developers // Copyright (c) 2014-2017 XDN developers // Copyright (c) 2016-2017 BXC developers // Copyright (c) 2017 Royalties developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.ph...
46.92
26
(translation_unit) "// Copyright (c) 2011-2017 The Cryptonote developers\n// Copyright (c) 2014-2017 XDN developers\n// Copyright (c) 2016-2017 BXC developers\n// Copyright (c) 2017 Royalties developers\n// Distributed under the MIT/X11 software license, see the accompanying\n// file COPYING or http://www.opensource.or...
91
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 46.92, "nodes": 66, "errors": 0, "source_hash": "c572b8736754c1333c0bfe390ad5b92d6ca824f8b6abfb6318361b58d40d41fb", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
4,983
c
/* The basename */ system_character_t *basename; /* The basename size */ size_t basename_size;
16
6
(translation_unit) "/* The basename\n */\n system_character_t *basename;\n\n /* The basename size\n */\n size_t basename_size;\n\n" (comment) "/* The basename\n */" (declaration) "system_character_t *basename;" (type_identifier) "system_character_t" (pointer_declarator) "*basename" (*) "*" (i...
13
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 16.0, "nodes": 8, "errors": 0, "source_hash": "ffd63716d76ed20df2c0b21eab42dbdc0b09f51bac7f26259708cb41f99ced8a", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "system_charact...
4,984
c
#pragma once #include "x509/X509Certificate.h" #include <string> #include <vector> std::string read_file(const std::string& path); std::vector<uint8_t> read_binary_file(const std::string& path); X509Certificate read_cert(const std::string& path);
34.29
7
(translation_unit) "#pragma once\n\n#include "x509/X509Certificate.h"\n\n#include <string>\n#include <vector>\n\nstd::string read_file(const std::string& path);\nstd::vector<uint8_t> read_binary_file(const std::string& path);\nX509Certificate read_cert(const std::string& path);\n\n" (preproc_call) "#pragma once\n" ...
82
5
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 34.29, "nodes": 47, "errors": 0, "source_hash": "77e49134f85a0cab768a926f5e57ed52c1b79e0e2893d2d07e19f2b64f7507fb", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
4,985
c
#ifndef TRAITITEM_H_ #define TRAITITEM_H_ #include <QList> #include <QVariant> // Shamelessly stollen from Qt simple tree model class TraitItem { public: TraitItem(const QList<QVariant> &, TraitItem * = 0); virtual ~TraitItem(); void appendChild(TraitItem *child); TraitItem *child(int); int childCount()...
20.88
24
(translation_unit) "#ifndef TRAITITEM_H_\n#define TRAITITEM_H_\n\n#include <QList>\n#include <QVariant>\n\n \n// Shamelessly stollen from Qt simple tree model\nclass TraitItem\n{\npublic:\n TraitItem(const QList<QVariant> &, TraitItem * = 0);\n virtual ~TraitItem();\n\n void appendChild(TraitItem *child);\n\n Trait...
160
10
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 20.88, "nodes": 105, "errors": 0, "source_hash": "18fb1d16bfa17aa18057705b668b9dfae2fa37784663563980adf580987277ea", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,986
c
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * stmmac_pcs.h: Physical Coding Sublayer Header File * * Copyright (C) 2016 STMicroelectronics (R&D) Limited * Author: <NAME> <<EMAIL>> */ #ifndef __STMMAC_PCS_H__ #define __STMMAC_PCS_H__ #include <linux/slab.h> #include <linux/io.h> #include "common.h" /* PCS...
34.9
132
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0-or-later */\n/*\n * stmmac_pcs.h: Physical Coding Sublayer Header File\n *\n * Copyright (C) 2016 STMicroelectronics (R&D) Limited\n * Author: <NAME> <<EMAIL>>\n */\n\n#ifndef __STMMAC_PCS_H__\n#define __STMMAC_PCS_H__\n\n#include <linux/slab.h>\n#include <linux/i...
693
4
{"language": "c", "success": true, "metadata": {"lines": 132, "avg_line_length": 34.9, "nodes": 458, "errors": 0, "source_hash": "fe3923e926248afb77771d14b14e9ce95072d3f621ba132d384a0d22228b086b", "categorized_nodes": 298}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,987
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @interface PGAssetLocationResolver : NSObject { } + (id)closestAddressNodeFromMomentNodes:(id)arg1 toLocation:(id)arg2 withMaximumDistance:(double)arg3 allowRemoteL...
33.58
12
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n@interface PGAssetLocationResolver : NSObject\n{\n}\n\n+ (id)closestAddressNodeFromMomentNodes:(id)arg1 toLocation:(id)arg2 withMaximumDi...
89
10
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 33.58, "nodes": 49, "errors": 0, "source_hash": "1b78c91bcb3d954c8bf3e40d23fde9baaeecd762b470c3725255a2d4d5cc0651", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
4,988
c
/* * Copyright (c) 2012 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, dis...
34.38
173
(translation_unit) "/*\n * Copyright (c) 2012 <NAME>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy of\n * this software and associated documentation files (the "Software"), to deal in\n * the Software without restriction, including without limitation the rights to\n * use, copy, m...
1,429
0
{"language": "c", "success": true, "metadata": {"lines": 173, "avg_line_length": 34.38, "nodes": 910, "errors": 0, "source_hash": "ae584f68319b437c00546a83a19a7a0b032c5dc52848225dd20bb1e7a88741e9", "categorized_nodes": 594}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,989
c
#include<stdio.h> #include<stdlib.h> #include"btl.h" void mirror(bt *root){ bt *head = NULL; if(root == NULL) return; mirror(root->left); mirror(root->right); if(root->left || root->right){ head = root->left; root->left = root->right; root->right = head; } } int c...
23.23
31
(translation_unit) "#include<stdio.h>\n#include<stdlib.h>\n#include"btl.h"\nvoid mirror(bt *root){\n bt *head = NULL;\n if(root == NULL)\n return;\n mirror(root->left);\n mirror(root->right);\n if(root->left || root->right){\n head = root->left;\n root->left = root->right;\n r...
292
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 23.23, "nodes": 192, "errors": 0, "source_hash": "c3e94d344aefd4fee16cdeb9b37c93964d2930e983a0692cc4a86e1dae976767", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,990
c
// // Copyright : @2021, ***, All Rights Reserved // // Author : 王科威 // E-mail : <EMAIL> // Date : 2021-11-19 // Description : AV流播放过滤器 // // History: // 1. 2021-11-19 由王科威创建 // #ifndef MODULE_AV_STREAM_FRAME_PLAYER_FILTER_H #define MODULE_AV_STREAM_FRAME_PLAYER_FILTER_H #include "libavplayer.h" #include "f...
23
42
(translation_unit) "//\n// Copyright : @2021, ***, All Rights Reserved\n//\n// Author : 王科威\n// E-mail : <EMAIL>\n// Date : 2021-11-19\n// Description : AV流播放过滤器\n//\n// History:\n// 1. 2021-11-19 由王科威创建\n//\n\n#ifndef MODULE_AV_STREAM_FRAME_PLAYER_FILTER_H\n#define MODULE_AV_STREAM_FRAME_PLAYER_FILTER_H\n\n#...
184
10
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 23.0, "nodes": 114, "errors": 0, "source_hash": "7e138c7fa58766b9c03a2d184ddedb8a2fdae1901e3ff05afe1e35b39894aaa8", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "_PLAYER_...
4,991
c
/* Autor: <NAME> Fecha: 22/02/22 Compilador: gcc 9.3.0 Compilar: gcc -o TipoVariable TipoVariable.c Librerias: stdio Resumen: es un ejemplo simple de el primer programa en C. */ //incluir librerias #include <stdio.h> //Variables globales //definir variables int x; char texto; //definir e inicializar co...
36.23
53
(translation_unit) "/*\nAutor: <NAME>\nFecha: 22/02/22\nCompilador: gcc 9.3.0\nCompilar: gcc -o TipoVariable TipoVariable.c\nLibrerias: stdio\nResumen: es un ejemplo simple de el primer programa en C.\n*/\n\n//incluir librerias\n#include <stdio.h>\n//Variables globales\n//definir variables\nint x;\nchar...
299
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 36.23, "nodes": 165, "errors": 0, "source_hash": "fd90fda1fe22b282b839b13e34ed3e603f714c285890cc005816364dfef264a4", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,992
c
// T-409-TSAM-2019-3 | Project 3 - The Botnet Rises // Aegir_Tomasson[aegir15] && Dagur_Kristjansson[dagur17] #ifndef COMMAND_H #define COMMAND_H #include <vector> #include <string> #include <regex> #include <iterator> // This is our datatype to hold and identify commands as they come off the buffer. class Command...
27.73
26
(translation_unit) "// T-409-TSAM-2019-3 | Project 3 - The Botnet Rises\n// Aegir_Tomasson[aegir15] && Dagur_Kristjansson[dagur17]\n\n\n#ifndef COMMAND_H\n#define COMMAND_H\n\n#include <vector>\n#include <string>\n#include <regex>\n#include <iterator>\n\n// This is our datatype to hold and identify commands as they com...
147
8
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 27.73, "nodes": 90, "errors": 0, "source_hash": "9f3c713129e56a525795cc3233baf19ee0677acdaddba1d7d06102536f58fe72", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,993
c
#ifndef FIRMWARE_H #define FIRMWARE_H #include "common/utils/include/sha1.h" #include <stdint.h> class Firmware { public: Firmware(uint8_t *startAddress); uint32_t getHeaderSequence(); uint32_t getApplicationSize(); uint32_t getHardwareVersion(); uint32_t getSoftwareVersion(); uint32_t getCrcSequence(); uint8...
20.58
26
(translation_unit) "#ifndef FIRMWARE_H\n#define FIRMWARE_H\n\n#include "common/utils/include/sha1.h"\n\n#include <stdint.h>\n\nclass Firmware {\npublic:\n Firmware(uint8_t *startAddress);\n uint32_t getHeaderSequence();\n uint32_t getApplicationSize();\n uint32_t getHardwareVersion();\n uint32_t getSoftwareVersion();\n...
170
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 20.58, "nodes": 108, "errors": 0, "source_hash": "9e1f44e2cf83e4d28aac3b3c0a7fe7d1a3afdd30d4478f029b49b155fe46e103", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,994
c
// // FBAMapViewController.h // ZFragment // // Created by three stone 王 on 2019/8/29. // Copyright © 2019 three stone 王. All rights reserved. // #import <MAMapKit/MAMapKit.h> @import AMapFoundationKit; NS_ASSUME_NONNULL_BEGIN #pragma mark ---- FBAMap NS_SWIFT_NAME(FBAMap) @interface FBAMap : NSObject + (void)re...
36.79
72
(translation_unit) "//\n// FBAMapViewController.h\n// ZFragment\n//\n// Created by three stone 王 on 2019/8/29.\n// Copyright © 2019 three stone 王. All rights reserved.\n//\n#import <MAMapKit/MAMapKit.h>\n@import AMapFoundationKit;\nNS_ASSUME_NONNULL_BEGIN\n\n\n#pragma mark ---- FBAMap\nNS_SWIFT_NAME(FBAMap)\n@inter...
712
82
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 36.79, "nodes": 474, "errors": 0, "source_hash": "ac8f2751176f9cda30158dfd9b8d264aa9d90136944a0ea189c171bcd06b00af", "categorized_nodes": 268}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "rt <MAM...
4,995
c
#pragma once #include "ChartDisplay.h" #include "RigDisplay.h" #include "MoneyDisplay.h" #include "Scene.h" #include <SFML/Graphics/Text.hpp> class SceneDisplays : public Scene { public: SceneDisplays(SceneManager* sceneManager); ~SceneDisplays() = default; void processEvents(sf::Event& event) override; ...
28.68
25
(translation_unit) "#pragma once\n\n#include "ChartDisplay.h"\n#include "RigDisplay.h"\n#include "MoneyDisplay.h"\n#include "Scene.h"\n#include <SFML/Graphics/Text.hpp>\n\nclass SceneDisplays : public Scene {\npublic:\n SceneDisplays(SceneManager* sceneManager);\n ~SceneDisplays() = default;\n\n void processEv...
205
12
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 28.68, "nodes": 129, "errors": 0, "source_hash": "a064b3a5ff20a79fb3cc73ecdf0cc41848e6b6d94f7d7baf9f0e3c0031d00bb2", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
4,996
c
/** * @file * @copyright defined in easy-table/LICENSE */ #pragma once #include "TableCore/TabType.h" #include "TableCore/TabData.h" #include "TableCore/StringUtils.h" #include "TableCore/TableRecord.h" namespace tab { namespace utils { inline void AddDefaultCellText(TabData& data) { data.Fields.push_bac...
21.23
130
(translation_unit) "/**\n * @file\n * @copyright defined in easy-table/LICENSE\n */\n#pragma once\n\n#include "TableCore/TabType.h"\n#include "TableCore/TabData.h"\n#include "TableCore/StringUtils.h"\n#include "TableCore/TableRecord.h"\nnamespace tab\n{\n namespace utils\n {\n inline void AddDefaultCellText(TabData&...
941
47
{"language": "c", "success": true, "metadata": {"lines": 130, "avg_line_length": 21.23, "nodes": 546, "errors": 0, "source_hash": "a7527ffc50385f76b63c8f26b73667a755ea1fa269902a4b5d44625f7e0d5bad", "categorized_nodes": 399}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
4,997
c
#pragma once #include "BaseShader.h" #include <glm/detail/type_mat4x4.hpp> class FontShader : public BaseShader { public: explicit FontShader(); void loadLayer(GLint layer); void loadColour(glm::vec3 colour); void loadProjectionMatrix(const glm::mat4 &projection); void loadGlyphTexture(GLuint tex...
27.95
21
(translation_unit) "#pragma once\n\n#include "BaseShader.h"\n\n#include <glm/detail/type_mat4x4.hpp>\n\nclass FontShader : public BaseShader\n{\npublic:\n explicit FontShader();\n void loadLayer(GLint layer);\n void loadColour(glm::vec3 colour);\n void loadProjectionMatrix(const glm::mat4 &projection);\n ...
145
5
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 27.95, "nodes": 91, "errors": 0, "source_hash": "b6a825db97ab0429819da88c051c4810b59d8a0fcc430a3f11a6625cff60ad34", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
4,998
c
#import <UIKit/UIKit.h> #import <QuartzCore/CAPackage.h> #import "CCUICAPackageDescription.h" API_AVAILABLE(ios(11.0)) @interface CCUICAPackageView : UIView @property (nonatomic, retain) CAPackage *package; @property (nonatomic, retain) CCUICAPackageDescription *packageDescription; - (void)setStateName:(NSString *)...
35.89
9
(translation_unit) "#import <UIKit/UIKit.h>\n#import <QuartzCore/CAPackage.h>\n#import "CCUICAPackageDescription.h"\n\nAPI_AVAILABLE(ios(11.0))\n@interface CCUICAPackageView : UIView\n\n@property (nonatomic, retain) CAPackage *package;\n\n@property (nonatomic, retain) CCUICAPackageDescription *packageDescription;\n\n- ...
85
10
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 35.89, "nodes": 60, "errors": 0, "source_hash": "02fbd95cb5a675f7312dc25b32b2d66c7d5353a0d3da2d7681b80f86e4d2afa4", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <U...
4,999