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
/*numPass=1, numTotal=6 Verdict:WRONG_ANSWER, Visibility:1, Input:"4", ExpOutput:"1 1 1 1 2 1 1 2 2 3 1 4 ", Output:"1111 211 22 31 4 " Verdict:WRONG_ANSWER, Visibility:1, Input:"5", ExpOutput:"1 1 1 1 1 2 1 1 1 2 2 1 3 1 1 3 2 4 1 5 ", Output:"11111 2111 221 311 32 41 5 " Verdict:WRONG_ANSWER, Visibility:1...
10.35
159
(translation_unit) "/*numPass=1, numTotal=6\nVerdict:WRONG_ANSWER, Visibility:1, Input:"4", ExpOutput:"1 1 1 1 \n2 1 1 \n2 2 \n3 1 \n4 \n", Output:"1111\n211\n22\n31\n4\n"\nVerdict:WRONG_ANSWER, Visibility:1, Input:"5", ExpOutput:"1 1 1 1 1 \n2 1 1 1 \n2 2 1 \n3 1 1 \n3 2 \n4 1 \n5 \n", Output:"11111\n2111\n221\n311\n3...
277
0
{"language": "c", "success": true, "metadata": {"lines": 159, "avg_line_length": 10.35, "nodes": 166, "errors": 0, "source_hash": "455d1deb4502424fdc90ab1196f4264d7ce89eb67e3fe7ca1a82e18ac022d282", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,300
c
#include <pthread.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include "buffer_duplo_sensores.h" #define TAMBUF 30 static double buffer_0[TAMBUF]; static double buffer_1[TAMBUF]; static int emuso = 0; static int prox_insercao = 0; static int gravar = -1; static pthread_mutex_t exc...
26.4
45
(translation_unit) "#include <pthread.h>\n#include <math.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <unistd.h>\n#include "buffer_duplo_sensores.h"\n\n#define TAMBUF 30\nstatic double buffer_0[TAMBUF];\nstatic double buffer_1[TAMBUF];\n\nstatic int emuso = 0;\nstatic int prox_insercao = 0;\nstatic int gravar ...
305
0
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 26.4, "nodes": 190, "errors": 0, "source_hash": "2a9ce005a9d15f1967199cf7c242ba2f824fcc1cbe864c3af65f3490da00a26f", "categorized_nodes": 136}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
14,301
c
// Copyright (c) 2011 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 UI_GFX_SCOPED_CG_CONTEXT_SAVE_GSTATE_MAC_H_ #define UI_GFX_SCOPED_CG_CONTEXT_SAVE_GSTATE_MAC_H_ #import <QuartzCore/QuartzCore.h> #include "...
34.83
24
(translation_unit) "// Copyright (c) 2011 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 UI_GFX_SCOPED_CG_CONTEXT_SAVE_GSTATE_MAC_H_\n#define UI_GFX_SCOPED_CG_CONTEXT_SAVE_GSTATE_MAC_H_\n\n#import <QuartzCor...
131
7
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 34.83, "nodes": 67, "errors": 0, "source_hash": "029c0c325dfd4b291a33360dcea927cfc207d23ac54dbf500ea91b67389e7730", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,302
c
#ifndef __UDP_CONN_H__ #define __UDP_CONN_H__ #include "common.h" #include "generic_ring_buffer.h" //error codes #define EUDPBINDFAILED 40 #define PKT_BUFFER_SIZE 1000 //num of packets typedef struct udp_port { uint16_t client_id; ip_addr_t ip; generic_ring_buffer_t* rx_buffer; } udp_port_t; void udp_c...
31.69
35
(translation_unit) "#ifndef __UDP_CONN_H__\n#define __UDP_CONN_H__\n\n#include "common.h"\n#include "generic_ring_buffer.h"\n\n//error codes\n#define EUDPBINDFAILED 40\n\n#define PKT_BUFFER_SIZE 1000 //num of packets\n\ntypedef struct udp_port {\n uint16_t client_id;\n ip_addr_t ip;\n generic_ring_buffer_t* rx...
225
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 31.69, "nodes": 166, "errors": 0, "source_hash": "c89c8bd7f9acbeef9bb0b06a15175c5556f51251a108b9c918ee6d48dbd7a258", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,303
c
/**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the Qt Designer of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:GPL-EXCEPT$ ** Commercial License Usage ** Licensees holding valid com...
34.35
183
(translation_unit) "/****************************************************************************\n**\n** Copyright (C) 2016 The Qt Company Ltd.\n** Contact: https://www.qt.io/licensing/\n**\n** This file is part of the Qt Designer of the Qt Toolkit.\n**\n** $QT_BEGIN_LICENSE:GPL-EXCEPT$\n** Commercial License Usage\n*...
1,144
30
{"language": "c", "success": true, "metadata": {"lines": 183, "avg_line_length": 34.35, "nodes": 757, "errors": 0, "source_hash": "614b729ad2a6e2ecdf3488268ba0d3b580b0a5e8153e59401e4c016a414c9570", "categorized_nodes": 491}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
14,304
c
/* * * Authors: * <NAME> <<EMAIL>> * */ #pragma once #include "ComWrapper.h" #include "DWCommon.h" using namespace System; using namespace System::Runtime::InteropServices; namespace Managed { namespace Graphics { namespace DirectWrite { class ClientDrawingEffectNative; public ref class...
19.68
60
(translation_unit) "/* \n* \n* Authors: \n* <NAME> <<EMAIL>> \n* \n*/ \n#pragma once \n \n#include "ComWrapper.h" \n#include "DWCommon.h" \n \n \nusing namespace System; \nusing namespace System::Runtime::InteropServices; \n \nnamespace Managed { namespace Graphics { namespace DirectWrite \n{ \n class ClientDraw...
303
11
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 19.68, "nodes": 166, "errors": 0, "source_hash": "faaddb3dfdd341ad6faaf3290fc4df23b9e076276c7634ef112684576facacd2", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
14,305
c
/* Generated by RuntimeBrowser Image: /System/Library/Frameworks/VideoSubscriberAccount.framework/VideoSubscriberAccount */ @interface VSViewServiceRequestCenter : NSObject { NSOperationQueue * _completionQueue; NSOperationQueue * _requestQueue; } @property (nonatomic, retain) NSOperationQueue *completion...
39.53
19
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/Frameworks/VideoSubscriberAccount.framework/VideoSubscriberAccount\n */\n\n@interface VSViewServiceRequestCenter : NSObject {\n NSOperationQueue * _completionQueue;\n NSOperationQueue * _requestQueue;\n}\n\n@property (nonatomic, retain)...
199
15
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 39.53, "nodes": 120, "errors": 0, "source_hash": "2d87e24df75fc5766b7ae883db4123d0871069b1111b9f3d077d67dee895cee4", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface VSVi...
14,306
c
/** * @file ClassFilter.h * @author <NAME>, <NAME> (<EMAIL>, <EMAIL>) * @brief Utility functions for creating new instances of aliens and space objects. * @version 0.1 * @date 2021-06-12 * * @copyright Copyright (c) 2021 * */ #ifndef _ClassFilter_h #define _ClassFilter_h #include <string> #include "SpaceOb...
32.35
37
(translation_unit) "/**\n * @file ClassFilter.h\n * @author <NAME>, <NAME> (<EMAIL>, <EMAIL>)\n * @brief Utility functions for creating new instances of aliens and space objects.\n * @version 0.1\n * @date 2021-06-12\n * \n * @copyright Copyright (c) 2021\n * \n */\n\n#ifndef _ClassFilter_h\n#define _ClassFilter_h\n\n#...
74
1
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 32.35, "nodes": 54, "errors": 0, "source_hash": "f3c6cc95120fb9acb14dde4f769f952c62d868455cd39dbbc6e9a6d1114cb0e8", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,307
c
#ifndef _STONES_CONSOLE_H_ #define _STONES_CONSOLE_H_ #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN #include <windows.h> #endif #include <stdio.h> #include <stdarg.h> #include <stdlib.h> // Enumeration of all supported text colors. typedef enum ConsoleColor { ColorWhite, ColorRed, ColorYellow, } ConsoleColor; vo...
23.38
24
(translation_unit) "#ifndef _STONES_CONSOLE_H_\n#define _STONES_CONSOLE_H_\n\n#ifdef _WIN32\n#define WIN32_LEAN_AND_MEAN\n#include <windows.h>\n#endif\n\n#include <stdio.h>\n#include <stdarg.h>\n#include <stdlib.h>\n\n// Enumeration of all supported text colors.\ntypedef enum ConsoleColor\n{\n ColorWhite,\n ColorRed,...
156
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 23.38, "nodes": 99, "errors": 0, "source_hash": "6ec28fda3a2c44271dee80f11a73456034318e284f533d6b82c60f04fab578b9", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,308
c
#ifndef _COMPILER_H #define _COMPILER_H #if defined __GNUC__ #define likely(x) __builtin_expect(!!(x), 1) #define unlikely(x) __builtin_expect(!!(x), 0) #else #define likely(x) (x) #define unlikely(x) (x) #endif #endif
20.9
10
(translation_unit) "#ifndef _COMPILER_H\n#define _COMPILER_H\n\n#if defined __GNUC__\n\n#define likely(x) __builtin_expect(!!(x), 1)\n#define unlikely(x) __builtin_expect(!!(x), 0)\n\n#else\n\n#define likely(x) (x)\n#define unlikely(x) (x)\n\n#endif\n\n#endif\n\n" (preproc_ifdef) "#ifndef _COMPILER_H\n#define _COMPIL...
49
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.9, "nodes": 40, "errors": 0, "source_hash": "a3ccdcdb7e33bf407dfa12965812b1264a36ae95887e5d3e893472524f2df3c0", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef\t...
14,309
c
// // arc_2.c // ViperNEC // // Created by <NAME> on 7/21/14. // Copyright 2014 Viper Science // // 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/licen...
30.55
124
(translation_unit) "//\n// arc_2.c\n// ViperNEC\n//\n// Created by <NAME> on 7/21/14.\n// Copyright 2014 Viper Science\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// ...
603
0
{"language": "c", "success": true, "metadata": {"lines": 124, "avg_line_length": 30.55, "nodes": 391, "errors": 0, "source_hash": "cb3a3d1704116983bfc301024affddfadb29fe521fad2432a14c73d55e748178", "categorized_nodes": 256}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,310
c
// generated from rosidl_generator_c/resource/msg.h.em // generated code does not contain a copyright notice #ifndef SENSOR_MSGS__MSG__LASER_SCAN_H_ #define SENSOR_MSGS__MSG__LASER_SCAN_H_ #include "sensor_msgs/msg/laser_scan__struct.h" #include "sensor_msgs/msg/laser_scan__functions.h" #include "sensor_msgs/msg/lase...
47.12
8
(translation_unit) "// generated from rosidl_generator_c/resource/msg.h.em\n// generated code does not contain a copyright notice\n\n#ifndef SENSOR_MSGS__MSG__LASER_SCAN_H_\n#define SENSOR_MSGS__MSG__LASER_SCAN_H_\n\n#include "sensor_msgs/msg/laser_scan__struct.h"\n#include "sensor_msgs/msg/laser_scan__functions.h"\n#i...
29
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 47.12, "nodes": 16, "errors": 0, "source_hash": "b3fa4678066897fc7ba43fae321819e90eba1314176caad6282fc5a60061eecb", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef S...
14,311
c
#include "solve.h" unsigned char *get_output(Function function, unsigned int nargs, unsigned int nlines){ unsigned char *output; unsigned char *line; unsigned int i; output = (unsigned char *) malloc( nlines*sizeof(unsigned char) ); line = (unsigned char *) malloc( nargs*sizeof(unsigned char) ); for(i=0; i<nli...
24.12
167
(translation_unit) "#include "solve.h"\n\nunsigned char *get_output(Function function, unsigned int nargs, unsigned int nlines){\n unsigned char *output;\n unsigned char *line;\n unsigned int i;\n\n output = (unsigned char *) malloc( nlines*sizeof(unsigned char) );\n line = (unsigned char *) malloc( nargs*sizeof(unsign...
1,700
0
{"language": "c", "success": true, "metadata": {"lines": 167, "avg_line_length": 24.12, "nodes": 1164, "errors": 0, "source_hash": "da31cb5081824023fe646180586fbd721996f2f50a3cdd2382993f9d67de62be", "categorized_nodes": 741}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
14,312
c
#include <stdio.h> #include <stdint.h> #include "./unicorn-1.0.2-win32/include/unicorn/unicorn.h" #define ADDRESS 0x8000 void add(uc_engine *uc) { int32_t a, b, ret; uint32_t lr; // 获取参数值 uc_reg_read(uc, UC_ARM_REG_R0, &a); uc_reg_read(uc, UC_ARM_REG_R1, &b); ret = a + b + 1; // 设置返回值 ...
34.51
39
(translation_unit) "#include <stdio.h>\n#include <stdint.h>\n#include "./unicorn-1.0.2-win32/include/unicorn/unicorn.h"\n\n#define ADDRESS 0x8000\n\nvoid add(uc_engine *uc) {\n int32_t a, b, ret;\n uint32_t lr;\n\n // 获取参数值\n uc_reg_read(uc, UC_ARM_REG_R0, &a);\n uc_reg_read(uc, UC_ARM_REG_R1, &b);\n\n ...
390
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 34.51, "nodes": 230, "errors": 0, "source_hash": "757f7a7e099ad6c0652ce542bf483e895f84b1b230cabfdd175c66fddb16ebf4", "categorized_nodes": 166}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,313
c
// jhcWebVSrc.h : repeatedly reads a still image from a website // // Written by <NAME>, <EMAIL> // /////////////////////////////////////////////////////////////////////////// // // Copyright 2010-2016 IBM Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file exc...
28.76
55
(translation_unit) "// jhcWebVSrc.h : repeatedly reads a still image from a website\n//\n// Written by <NAME>, <EMAIL>\n//\n///////////////////////////////////////////////////////////////////////////\n//\n// Copyright 2010-2016 IBM Corporation\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// ...
184
4
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 28.76, "nodes": 93, "errors": 0, "source_hash": "b42c0d8c165903561cacb08f8d15ca0c86a471d7e7734351982ba16b9be442ce", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,314
c
#pragma once #include "Instruction.hpp" #include <string_view> namespace MOFA { class InstructionSet { public: InstructionSet(); Instruction findInstruction(const std::string_view _name) const noexcept; private: Instruction instructions[31]; }; }
22.92
12
(translation_unit) "#pragma once\n#include "Instruction.hpp"\n#include <string_view>\n\nnamespace MOFA {\n class InstructionSet {\n public:\n InstructionSet();\n Instruction findInstruction(const std::string_view _name) const noexcept;\n\n private:\n Instruction instructions[31];\n };\n...
68
2
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 22.92, "nodes": 35, "errors": 0, "source_hash": "26efc0c0d9f98fd324fa1ea1f3d7f295406561172d4b4ce927af14b9185a0bed", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
14,315
c
#pragma once #include <vector> #include <cassert> #include <fstream> #include "net.h" struct instance { int num_dims, num_nets; std::vector< int > dim_sizes; std::vector< net > nets; instance(); }; instance from_stream(std::ifstream&);
19.33
12
(translation_unit) "#pragma once\n#include <vector>\n#include <cassert>\n#include <fstream>\n#include "net.h"\n\nstruct instance {\n int num_dims, num_nets;\n std::vector< int > dim_sizes;\n std::vector< net > nets;\n instance();\n};\n\ninstance from_stream(std::ifstream&);\n" (preproc_call) "#pragma once\n" ...
78
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 19.33, "nodes": 51, "errors": 0, "source_hash": "983debc14f5e79a7a4032eca826f1a001b7a867ec2868f9433691908901d3535", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
14,316
c
#include<stdio.h> #include<string.h> #define max(a,b) a>b?a:b int main(){ int n,k,x[100001],a,i,j,m=0; scanf("%d",&n); memset(x,0,sizeof(x)); for(i=1;i<=n;i++){ scanf("%d",&a); x[a]++; m=max(m,a); } scanf("%d",&k); while(k>=0){ if(x[m]>0) k--; if(k==0) break; m--; } printf("%d %d",m,x[m]); r...
13.39
23
(translation_unit) "#include<stdio.h>\n#include<string.h>\n#define max(a,b) a>b?a:b\nint main(){\n int n,k,x[100001],a,i,j,m=0;\n scanf("%d",&n);\n memset(x,0,sizeof(x));\n for(i=1;i<=n;i++){\n scanf("%d",&a);\n x[a]++;\n m=max(m,a);\n }\n scanf("%d",&k);\n while(k>=0){\n if(x[m]>0)\n k--;\n if(k==0)\n break;\...
224
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 13.39, "nodes": 121, "errors": 0, "source_hash": "76b2502513cf32f2ad598ae853e1d6fbd7fc58a872134fb3b10f1886a2804dac", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
14,317
c
#include <stdint.h> #include <vx_intrinsics.h> #include <vx_spawn.h> #include "common.h" void kernel_body(int task_id, void* arg) { struct kernel_arg_t* _arg = (struct kernel_arg_t*)(arg); uint32_t* src_ptr = (uint32_t*)_arg->src_ptr; uint32_t* dst_ptr = (uint32_t*)_arg->dst_ptr; int32_t* addr_ptr = (int32_t*)(sr...
33.07
15
(translation_unit) "#include <stdint.h>\n#include <vx_intrinsics.h>\n#include <vx_spawn.h>\n#include "common.h"\n\nvoid kernel_body(int task_id, void* arg) {\n struct kernel_arg_t* _arg = (struct kernel_arg_t*)(arg);\n uint32_t* src_ptr = (uint32_t*)_arg->src_ptr;\n uint32_t* dst_ptr = (uint32_t*)_arg->dst_ptr;\n\n int...
176
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 33.07, "nodes": 127, "errors": 0, "source_hash": "b1aaa5c0fbeb51927abf41424c2280e692f6d0a57796dd875d9a661d946430e2", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
14,318
c
int min(int* a, size_t l) { int m=a[0]; for (size_t i=1;i<l;i++) m=a[i]<m?a[i]:m; return m; }
19
5
(translation_unit) "int min(int* a, size_t l) {\n int m=a[0];\n for (size_t i=1;i<l;i++) m=a[i]<m?a[i]:m;\n return m;\n}\n" (function_definition) "int min(int* a, size_t l) {\n int m=a[0];\n for (size_t i=1;i<l;i++) m=a[i]<m?a[i]:m;\n return m;\n}" (primitive_type) "int" (function_declarator) "min(int* ...
76
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 19.0, "nodes": 52, "errors": 0, "source_hash": "ddfa392cbb9edd840a18fca6b924e24407ee2b66b2df05f8602c4f776385bed8", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "int ...
14,319
c
// // VHAPWifiInfo.h // HomeMate // // Created by Orvibo on 15/8/11. // Copyright © 2017年 Orvibo. All rights reserved. // #import <Foundation/Foundation.h> @interface HMAPWifiInfo : NSObject /** * 只有 auth 为 OPEN , enc 为 NONE 时, AP为没有任何加密机制. */ @property (nonatomic, copy) NSString * auth; @property (nonatomic...
18.05
39
(translation_unit) "//\n// VHAPWifiInfo.h\n// HomeMate\n//\n// Created by Orvibo on 15/8/11.\n// Copyright © 2017年 Orvibo. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface HMAPWifiInfo : NSObject\n\n\n/**\n * 只有 auth 为 OPEN , enc 为 NONE 时, AP为没有任何加密机制.\n */\n@property (nonatomic, copy) N...
158
32
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 18.05, "nodes": 110, "errors": 0, "source_hash": "1d2ec5f1c2f0d6402d1f30e6ef53ae35679bddc900b885ce2a1e03dfff255b6a", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fo...
14,320
c
#ifndef AMBS_COMPONENTS_AMBS_CALCULATORS_DIFFERENTIATORS_DIFF_FLOAT_TEMPORAL_H #define AMBS_COMPONENTS_AMBS_CALCULATORS_DIFFERENTIATORS_DIFF_FLOAT_TEMPORAL_H #include <string> #include <vector> #include "ambs_core/ambs_base_calculator/ambs_base_calculator.hpp" #include "ambs_core/ambs_base_interface/ambs_base_interfa...
38.82
73
(translation_unit) "#ifndef AMBS_COMPONENTS_AMBS_CALCULATORS_DIFFERENTIATORS_DIFF_FLOAT_TEMPORAL_H\n#define AMBS_COMPONENTS_AMBS_CALCULATORS_DIFFERENTIATORS_DIFF_FLOAT_TEMPORAL_H\n\n#include <string>\n#include <vector>\n\n#include "ambs_core/ambs_base_calculator/ambs_base_calculator.hpp"\n#include "ambs_core/ambs_base_...
496
16
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 38.82, "nodes": 270, "errors": 0, "source_hash": "7df8edf79ba1d16b80384d6efcd3ed1d6f905da198fe45667a5836cf915f61e6", "categorized_nodes": 190}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef AMBS_C...
14,321
c
#ifndef _RAFT_BLOCKS_H_ #define _RAFT_BLOCKS_H_ #include "type.h" #include <list> #include <vector> #include <string.h> enum raft_cmd_type {APPENDENTRIES, APPENDENTRIES_R}; struct raft_head_struct { raft_cmd_type type; }; typedef struct raft_head_struct raft_head_s; inline void raft_head_init(raft_head_s *head) {...
34.54
67
(translation_unit) "#ifndef _RAFT_BLOCKS_H_\n#define _RAFT_BLOCKS_H_\n\n#include "type.h"\n\n#include <list>\n#include <vector>\n#include <string.h>\n\nenum raft_cmd_type {APPENDENTRIES, APPENDENTRIES_R};\nstruct raft_head_struct\n{\n raft_cmd_type type;\n};\ntypedef struct raft_head_struct raft_head_s;\n\ninline void...
475
9
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 34.54, "nodes": 314, "errors": 0, "source_hash": "11f2eea1ba3282f1b2ff4f272922c307b4f3bf1a53770fd36f86100dc7a06643", "categorized_nodes": 242}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,322
c
#pragma once #include "absl/types/internal/span.h"
24.5
2
(translation_unit) "#pragma once\n#include "absl/types/internal/span.h" \n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "absl/types/internal/span.h"" (#include) "#include" (string_literal) ""absl/types/internal/span.h"" (") """...
10
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 24.5, "nodes": 6, "errors": 0, "source_hash": "c51ed17ba24051cea5f3874baf16bdc25cb244b7ee59e7d48da473d24c825ae1", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\...
14,323
c
#include <stdio.h> int main() { int n[1000], i, j, x = 0, t; scanf("%d", &t); for (i = 0; i < 1000; i++) { n[i] = x; x++; if (x >= t) { x = 0; } printf("N[%d] = %d\n", i, n[i]); } return 0; }
14
14
(translation_unit) "#include <stdio.h>\n\nint main() {\n\n int n[1000], i, j, x = 0, t;\n\n scanf("%d", &t);\n\n for (i = 0; i < 1000; i++) {\n\n n[i] = x;\n x++;\n\n if (x >= t) {\n x = 0;\n }\n\n printf("N[%d] = %d\n", i, n[i]);\n }\n\n return 0;\n}" (preproc_include) "#include <stdio.h>\n" (#include) "#...
125
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 14.0, "nodes": 68, "errors": 0, "source_hash": "3a231074de568159fc13032814c0cec9b4b2ff688a63ba1b95d1ce41ef8bccaf", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
14,324
c
#include <string> #include <Windows.h> int Invoke(const std::string &cmd) { STARTUPINFO si; PROCESS_INFORMATION pi; ZeroMemory(&si, sizeof(si)); si.cb = sizeof(si); ZeroMemory(&pi, sizeof(pi)); CreateProcess(NULL, // No module name (use command line) (LPSTR)cmd.c_str(), // Command line NULL, ...
34.42
26
(translation_unit) "#include <string>\n#include <Windows.h>\n\nint Invoke(const std::string &cmd) {\n STARTUPINFO si;\n PROCESS_INFORMATION pi;\n\n ZeroMemory(&si, sizeof(si));\n si.cb = sizeof(si);\n ZeroMemory(&pi, sizeof(pi));\n CreateProcess(NULL, // No module name (use command line)\n (LPSTR)cmd.c_str(), ...
216
2
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 34.42, "nodes": 114, "errors": 0, "source_hash": "38a10ec46ff84d1bd9b050cc3197d9a2dad1a26d88579ab2c938f8379f287c93", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
14,325
c
// // DHSegmentConfig.h // Example // // Created by DH on 2019/1/25. // Copyright © 2019年 DH. All rights reserved. // #import <UIKit/UIKit.h> @interface DHSegmentConfig : NSObject @property (nonatomic, strong) UIColor *color; @property (nonatomic, strong) UIColor *selectedColor; @property (nonatomic, strong) UIF...
30.12
17
(translation_unit) "//\n// DHSegmentConfig.h\n// Example\n//\n// Created by DH on 2019/1/25.\n// Copyright © 2019年 DH. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface DHSegmentConfig : NSObject\n\n@property (nonatomic, strong) UIColor *color;\n@property (nonatomic, strong) UIColor *selectedColor;\...
118
24
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 30.12, "nodes": 85, "errors": 0, "source_hash": "4275801c924c36f8ad0c82ef3639dd71b5a883adb4c0348c2769ba38d76699f0", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
14,326
c
// // RDTBodyDeserializer.h // // Copyright © 2016-2017 Netguru Sp. z o.o. All rights reserved. // Licensed under the MIT License. // // This has been implemented as native Objective-C protocol instead of a Swift // protocol bridged to Objective-C because Swift protocol definition cannot be // imported in Objective-C h...
36.87
23
(translation_unit) "//\n// RDTBodyDeserializer.h\n//\n// Copyright © 2016-2017 Netguru Sp. z o.o. All rights reserved.\n// Licensed under the MIT License.\n//\n// This has been implemented as native Objective-C protocol instead of a Swift\n// protocol bridged to Objective-C because Swift protocol definition cannot be\n...
76
11
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 36.87, "nodes": 38, "errors": 0, "source_hash": "4373bb58743a60540e195f97c890298f412f87c13330ce9f2394769bbba0220d", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "i", "parent": nu...
14,327
c
void main() { gl_FragColor = vec4(0.5, 0.6, 0.7, 1.0); }
18.67
3
(translation_unit) "void main() {\n gl_FragColor = vec4(0.5, 0.6, 0.7, 1.0);\n}" (function_definition) "void main() {\n gl_FragColor = vec4(0.5, 0.6, 0.7, 1.0);\n}" (primitive_type) "void" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" ...
28
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 18.67, "nodes": 15, "errors": 0, "source_hash": "9bc9c6e9ee714719ff9f537de9b0059f5603cd841e62be2b368b9335147e608e", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "voi...
14,328
c
// // Created by yuriy on 10/8/18. // #ifndef TEST_WORK_XMLWRITER_H #define TEST_WORK_XMLWRITER_H #include <iostream> #include <string> #include <fstream> #include <vector> #include "XML.h" class XMLWriter : public XML { /* private section for saving variables */ private: std::ofstream fout; std::string buf...
24.52
33
(translation_unit) "//\n// Created by yuriy on 10/8/18.\n//\n\n#ifndef TEST_WORK_XMLWRITER_H\n#define TEST_WORK_XMLWRITER_H\n\n#include <iostream>\n#include <string>\n#include <fstream>\n#include <vector>\n#include "XML.h"\n\nclass XMLWriter : public XML {\n/* private section for saving variables */\n\nprivate:\n st...
198
10
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 24.52, "nodes": 107, "errors": 0, "source_hash": "1b15ea5030491f33dd88e7225a91682a2a2ad08a53e001b002072c421e5867b2", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,329
c
#pragma once #include <string> using namespace std; class Reserva { private: int id; string nombre; int asiento; public: Reserva(); Reserva(int, string, int); ~Reserva(); void setId(int); int getId(); void setNombre(string); string getNombre(); string toString(); };
13.63
19
(translation_unit) "#pragma once\n#include <string>\nusing namespace std;\nclass Reserva\n{\nprivate:\n int id;\n string nombre;\n int asiento;\npublic:\n Reserva();\n Reserva(int, string, int);\n ~Reserva();\n void setId(int);\n int getId();\n void setNombre(string);\n string getNombre();\n string toString();\n};\n\n"...
111
1
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 13.63, "nodes": 67, "errors": 0, "source_hash": "c9c60f5a499e45820fb6ccaa66feffc32d18ac3bc9e696a9c6ce83aa4142d1c4", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
14,330
c
#ifndef _SPIDER_H_ #define _SPIDER_H_ #include <Transformations.h> #include <Geometrics.h> typedef struct { Point joint[3]; /* Leg has 3 joints */ }Leg; /* Spider class its atributes and methods */ class Spider{ private: Circle cephalo, abdomen; Leg leftLeg[4], rightLeg[4]; void initLegs(); public: S...
18.21
28
(translation_unit) "#ifndef _SPIDER_H_\n#define _SPIDER_H_\n\n#include <Transformations.h>\n#include <Geometrics.h>\n\ntypedef struct {\n Point joint[3]; /* Leg has 3 joints */ \n}Leg;\n\n/* Spider class its atributes and methods */\nclass Spider{\n private: \n Circle cephalo, abdomen;\n Leg leftLeg[4], rightLeg[4];\...
170
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 18.21, "nodes": 102, "errors": 0, "source_hash": "e8693644ec2559ea0921982fc871923b223ae5c2d635d1f037dcabc5c2f46bc5", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,331
c
/* * h281handler.h * * H.281 protocol handler implementation for the OpenH323 Project. * * Copyright (c) 2006 Network for Educational Technology, ETH Zurich. * Written by <NAME>. * * The contents of this file are subject to the Mozilla Public License * Version 1.0 (the "License"); you may not use this file exc...
37.25
215
(translation_unit) "/*\n * h281handler.h\n *\n * H.281 protocol handler implementation for the OpenH323 Project.\n *\n * Copyright (c) 2006 Network for Educational Technology, ETH Zurich.\n * Written by <NAME>.\n *\n * The contents of this file are subject to the Mozilla Public License\n * Version 1.0 (the "License"); ...
1,065
50
{"language": "c", "success": true, "metadata": {"lines": 215, "avg_line_length": 37.25, "nodes": 622, "errors": 0, "source_hash": "78b4110c9f39eb0f707e0553c6e63be86efae2c5ec9022915c1ac1d0c908f1e2", "categorized_nodes": 469}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
14,332
c
// Copyright 2008-present Contributors to the OpenImageIO project. // SPDX-License-Identifier: BSD-3-Clause // https://github.com/OpenImageIO/oiio // clang-format off ///////////////////////////////////////////////////////////////////////// // \file // type_traits.h is where we collect little type traits and related ...
38.53
49
(translation_unit) "// Copyright 2008-present Contributors to the OpenImageIO project.\n// SPDX-License-Identifier: BSD-3-Clause\n// https://github.com/OpenImageIO/oiio\n\n// clang-format off\n\n/////////////////////////////////////////////////////////////////////////\n// \file\n// type_traits.h is where we collect lit...
342
29
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 38.53, "nodes": 207, "errors": 0, "source_hash": "aab434603fd3ea207f4bbfd3b856f12d21ac0bc377cd244aae9a328d1dda5776", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
14,333
c
// // PhotoBrowserViewController.h // Demo // // Created by TinLin on 2018/8/10. // Copyright © 2018年 TinLin. All rights reserved. // #import "BaseViewController.h" @interface PhotoBrowserViewController : BaseViewController @end
22.3
10
(translation_unit) "//\n// PhotoBrowserViewController.h\n// Demo\n//\n// Created by TinLin on 2018/8/10.\n// Copyright © 2018年 TinLin. All rights reserved.\n//\n\n#import "BaseViewController.h"\n\n@interface PhotoBrowserViewController : BaseViewController\n\n@end\n" (comment) "//" (comment) "// PhotoBrowserVie...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 22.3, "nodes": 10, "errors": 0, "source_hash": "b4e904a939d610fb6a55e060098b88deec1802511ce84988f4be29844a6af91b", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"Base...
14,334
c
/**************************************************************************** * YABEL BIOS Emulator * * This program and the accompanying materials * are made available under the terms of the BSD License * which accompanies this distribution, and is available at * http://www.opensource.org/licenses/bsd-license.ph...
37.26
39
(translation_unit) "/****************************************************************************\n * YABEL BIOS Emulator\n *\n * This program and the accompanying materials\n * are made available under the terms of the BSD License\n * which accompanies this distribution, and is available at\n * http://www.opensource.o...
109
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 37.26, "nodes": 71, "errors": 0, "source_hash": "c33b1ba62e5046c31b0127d5d3a8645ed5109607540f18b92e2e1429fb3aaf0e", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,335
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" #import "SMSystem_FileManagerProtocol.h" @class NSString, NSURL; @interface SMSystem_FileManager_DiskBased : NSObject <SMSystem_FileManagerProtocol> { NSURL *_...
34.22
27
(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#import "SMSystem_FileManagerProtocol.h"\n\n@class NSString, NSURL;\n\n@interface SMSystem_FileManager_DiskBased : NSObject <SMSystem_Fil...
284
32
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 34.22, "nodes": 184, "errors": 0, "source_hash": "27e6ee39d322792f98b9eb0d27fd4258559549513da67f8f3d285682cbea0960", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
14,336
c
/* Copyright 2012 <NAME>. All rights reserved. Redistribution of this work, with or without modification, is permitted if <NAME> is attributed as the original author or licensor of this work, but not in any way that suggests that <NAME> endorses you or your use of the work. This work is provi...
40.52
25
(translation_unit) "/*\n\n Copyright 2012 <NAME>. All rights reserved.\n\n Redistribution of this work, with or without modification, is permitted if\n <NAME> is attributed as the original author or licensor of\n this work, but not in any way that suggests that <NAME> endorses\n you or your use of the wo...
20
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 40.52, "nodes": 13, "errors": 0, "source_hash": "73532be6d39c96c59f008d5b6bbd4f10bff49b27465d58710b69c25c60332212", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef C...
14,337
c
/* Define vm options with -Doption -DLOADER Use a loader -DINTERPRETER Use a Intepreter -DFORCE_SWITCH Force using a switch, even if a jump table is available -DVM_LHAREA=x Least heap area size */ #if (!defined __STDC_VERSION__) || (__STDC_VERSION__ < 199901L) /* Test for c99 */ #error tr...
25.32
294
(translation_unit) "/* \nDefine vm options with -Doption \n-DLOADER Use a loader \n-DINTERPRETER Use a Intepreter \n \n-DFORCE_SWITCH Force using a switch, even if a jump table is available \n \n-DVM_LHAREA=x Least heap area size \n*/ \n \n \n#if (!defined __STDC_VERSION__) || (__STDC_VERSION__ < 199901L) ...
1,333
4
{"language": "c", "success": true, "metadata": {"lines": 294, "avg_line_length": 25.32, "nodes": 876, "errors": 0, "source_hash": "df46149e45d614e3685890fc76171a5a2f9c23614d774e87d64c07bbe8ef74a4", "categorized_nodes": 509}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if (!de...
14,338
c
#ifndef __NETWORK_THREAD_H__ #define __NETWORK_THREAD_H__ #include <map> #include <event2/event.h> #include <event2/listener.h> #include <event2/bufferevent.h> #include <event2/bufferevent_struct.h> #include "base/objectPool.h" #include "base/threadMgr.h" #include "logic/player.h" #include "networkMsg....
20.31
80
(translation_unit) "fndef __NETWORK_THREAD_H__\n#define __NETWORK_THREAD_H__\n\n\n\n#include <map>\n#include <event2/event.h> \n#include <event2/listener.h> \n#include <event2/bufferevent.h> \n#include <event2/bufferevent_struct.h>\n\n#include "base/objectPool.h"\n#include "base/threadMgr.h"\n#include "logic/p...
521
15
{"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 20.31, "nodes": 328, "errors": 0, "source_hash": "9f8e95d839b8f457283dcf523b305ed7d4ed1c7eaa6f99acd0053a5a40bf7ac1", "categorized_nodes": 224}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef ...
14,339
c
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include <QTimer> #include <QGraphicsScene> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> using namespace cv; namespace Ui { class MainWindow; } class MainWindow : public QMainWindow { Q_OBJECT public: explicit MainW...
19.04
26
(translation_unit) "#ifndef MAINWINDOW_H\n#define MAINWINDOW_H\n\n#include <QMainWindow>\n#include <QTimer>\n#include <QGraphicsScene>\n#include <opencv2/core/core.hpp>\n#include <opencv2/highgui/highgui.hpp>\n\nusing namespace cv;\n\nnamespace Ui {\nclass MainWindow;\n}\n\nclass MainWindow : public QMainWindow\n{\n ...
121
6
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 19.04, "nodes": 80, "errors": 0, "source_hash": "40a58bc5fcd0e2e570c70c691e35385ea10ce1fad091321d4c96478a67e7526e", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,340
c
// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2014 * <NAME>, DENX Software Engineering, <EMAIL>. * * Basic support for the pwm module on imx6. */ #include <common.h> #include <div64.h> #include <pwm.h> #include <asm/arch/imx-regs.h> #include <asm/io.h> #include "pwm-imx-util.h" int pwm_init(int pwm_id,...
23.36
55
(translation_unit) "// SPDX-License-Identifier: GPL-2.0+\n/*\n * (C) Copyright 2014\n * <NAME>, DENX Software Engineering, <EMAIL>.\n *\n * Basic support for the pwm module on imx6.\n */\n\n#include <common.h>\n#include <div64.h>\n#include <pwm.h>\n#include <asm/arch/imx-regs.h>\n#include <asm/io.h>\n#include "pwm-imx-...
402
0
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 23.36, "nodes": 259, "errors": 0, "source_hash": "0b43ff72e36f6b6be50f3eddf5cdacde317ab4ef75c4518204b9aad3f1ac3126", "categorized_nodes": 196}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,341
c
#pragma once #include <microhttpd.h> #include <sstream> namespace d2ai { class Controller; /* * This class provides an embedded HTTP Server based on libmicrohttpd */ class HttpServer { private: Controller *controller; int threads; struct MHD_Daemon *daemon; static int callback(void *cls, MHD_Co...
29.85
27
(translation_unit) "#pragma once\n\n#include <microhttpd.h>\n#include <sstream>\n\nnamespace d2ai {\n\nclass Controller;\n\n/*\n * This class provides an embedded HTTP Server based on libmicrohttpd\n */\nclass HttpServer {\nprivate:\n\n Controller *controller;\n\n int threads;\n struct MHD_Daemon *daemon;\n\n ...
205
3
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 29.85, "nodes": 134, "errors": 0, "source_hash": "0d4891c3f22bd7d014a2dc8ce2026a05f266ab0a1634ad08c76e96b5f7341ccc", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
14,342
c
#include <stdio.h> #include <math.h> int main(void){ int n,x,out; out = 1; printf("Enter a value for n: "); scanf("%d", &n); for(x=1;x<=n;x++){ out=out*x; } printf("n! = "); printf("%d", out); return 0; }
14.73
15
(translation_unit) "#include <stdio.h> \n#include <math.h> \n \nint main(void){ \nint n,x,out; \nout = 1; \nprintf("Enter a value for n: "); \n scanf("%d", &n); \n for(x=1;x<=n;x++){ \n out=out*x; \n } \nprintf("n! = "); \nprintf("%d", out); \nreturn 0; \n} \n" (preproc_include) "#include <stdio.h> \n" ...
116
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 14.73, "nodes": 62, "errors": 0, "source_hash": "24ce5fb5c7ce5e8263248f83557014eb2775697e74d148d43ed53563112730a6", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
14,343
c
/* * Copyright (c) 2015 Kaprica Security, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, mer...
27.37
269
(translation_unit) "/*\n * Copyright (c) 2015 Kaprica Security, Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n *...
1,639
5
{"language": "c", "success": true, "metadata": {"lines": 269, "avg_line_length": 27.37, "nodes": 1047, "errors": 0, "source_hash": "16e2c4a20cc70bca1915c11608307880e99adc63466d7023776a2be32d301541", "categorized_nodes": 664}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
14,344
c
#define QT_FEATURE_quicktemplates2_hover 1 #define QT_FEATURE_quicktemplates2_multitouch 1
44.5
2
(translation_unit) "#define QT_FEATURE_quicktemplates2_hover 1\n#define QT_FEATURE_quicktemplates2_multitouch 1\n" (preproc_def) "#define QT_FEATURE_quicktemplates2_hover 1\n" (#define) "#define" (identifier) "QT_FEATURE_quicktemplates2_hover" (preproc_arg) "1" (preproc_def) "#define QT_FEATURE_quicktem...
9
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 44.5, "nodes": 8, "errors": 0, "source_hash": "a5a93b0a17554abc607691859420f91d4001d0f32d65d218ed579875d4f7ebc9", "categorized_nodes": 2}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define QT_FEA...
14,345
c
/* Copyright 2018 <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the...
27.28
104
(translation_unit) "/* Copyright 2018 <NAME>\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 2 of the License, or\n * (at your option) any later version.\n *\n * This pr...
332
0
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 27.28, "nodes": 323, "errors": 0, "source_hash": "b595796aab0a0a0805dbb94b151fb49c00eef7b5db3f8f3204076afc0d91a1ac", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
14,346
c
#pragma once #include "ScriptBaseObject.h" namespace lethe { // script class instance ptr helpers (strong/weak) class SPtr { ScriptBaseObject *pointer; public: inline SPtr() : pointer(nullptr) { } inline SPtr(ScriptBaseObject *o) : pointer(nullptr) { o->AddRef(); pointer = o; } inline SPtr(const ...
15.09
190
(translation_unit) "#pragma once\n\n#include "ScriptBaseObject.h"\n\nnamespace lethe\n{\n\n// script class instance ptr helpers (strong/weak)\n\nclass SPtr\n{\n ScriptBaseObject *pointer;\n\npublic:\n inline SPtr()\n : pointer(nullptr)\n {\n }\n\n inline SPtr(ScriptBaseObject *o)\n : pointer(nullptr)\n {\n o->AddRef...
1,235
32
{"language": "c", "success": true, "metadata": {"lines": 190, "avg_line_length": 15.09, "nodes": 699, "errors": 0, "source_hash": "2afafd30b05ea0817df11b077a5a8c50ca0eb982aeaab2a9b7ab11dda40d93e9", "categorized_nodes": 499}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
14,347
c
// // GGQGameTableViewCell.h // GGameParty // // Created by Victor on 2018/8/7. // Copyright © 2018年 Victor. All rights reserved. // #import <UIKit/UIKit.h> @interface GGQGameTableViewCell : UITableViewCell @property (nonatomic,strong)UIImageView *headImage; @property (nonatomic,strong)UILabel *nameLabel; @prop...
28.87
15
(translation_unit) "//\n// GGQGameTableViewCell.h\n// GGameParty\n//\n// Created by Victor on 2018/8/7.\n// Copyright © 2018年 Victor. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface GGQGameTableViewCell : UITableViewCell\n@property (nonatomic,strong)UIImageView *headImage;\n\n@property (nonatomic,...
105
20
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 28.87, "nodes": 74, "errors": 0, "source_hash": "fb5b8c4b585123851b959c3e5f6f3f1aa2564ee6dd8a4f610d33afb4588e82d6", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
14,348
c
#import "MWMFrameworkObservers.h" #import "MWMMapDownloaderProtocol.h" #import "MWMMapDownloaderTableViewCellProtocol.h" #import "MWMMapDownloaderTypes.h" #import "MWMTableViewCell.h" #include "storage/storage.hpp" @interface MWMMapDownloaderTableViewCell : MWMTableViewCell <MWMMapDownloaderTableViewCellProtocol, MWM...
47.69
13
(translation_unit) "#import "MWMFrameworkObservers.h"\n#import "MWMMapDownloaderProtocol.h"\n#import "MWMMapDownloaderTableViewCellProtocol.h"\n#import "MWMMapDownloaderTypes.h"\n#import "MWMTableViewCell.h"\n\n#include "storage/storage.hpp"\n\n@interface MWMMapDownloaderTableViewCell : MWMTableViewCell <MWMMapDownload...
134
22
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 47.69, "nodes": 94, "errors": 0, "source_hash": "854c4e05935d6801d49cefad0ee0d1d56eacf827252c53fc5c540da7b8aae7c0", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
14,349
c
#include "test.h" #include "query.h" #include "query-parser.h" TEST(empty_queries) { wp_query* q; RELAY_ERROR(wp_query_parse("", "body", &q)); ASSERT(q); return NO_ERROR; } /* most of the query parsing code is exercised by the search tests, so this is just for fun. */ TEST(query_parsing) { wp_query* q; ...
33
63
(translation_unit) "#include "test.h"\n#include "query.h"\n#include "query-parser.h"\n\nTEST(empty_queries) {\n wp_query* q;\n RELAY_ERROR(wp_query_parse("", "body", &q));\n ASSERT(q);\n\n return NO_ERROR;\n}\n\n/* most of the query parsing code is exercised by the\n search tests, so this is just for fun. */\nTES...
803
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 33.0, "nodes": 421, "errors": 0, "source_hash": "b9316a436995ad5575c26f3646dc9167729930007aa0a4d4714d64573fead7c7", "categorized_nodes": 277}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
14,350
c
// // ViewController.h // coreImageDemo // // Created by Nick on 2018/7/31. // Copyright © 2018年 nick. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
17.73
11
(translation_unit) "//\n// ViewController.h\n// coreImageDemo\n//\n// Created by Nick on 2018/7/31.\n// Copyright © 2018年 nick. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ViewController : UIViewController\n\n\n@end\n\n" (comment) "//" (comment) "// ViewController.h" (comment) "// core...
22
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 17.73, "nodes": 12, "errors": 0, "source_hash": "f7a56f700470f63a6b0868bd36ec1bdf77dd3f5b7d724e0c53e6e39112488b5b", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKi...
14,351
c
// // DYNotificationViewController.h // ZucheDemo // // Created by Yangdongwu on 2017/7/13. // Copyright © 2017年 mac. All rights reserved. // #import <UIKit/UIKit.h> @interface DYNotificationViewController : UIViewController @end
22.4
10
(translation_unit) "//\n// DYNotificationViewController.h\n// ZucheDemo\n//\n// Created by Yangdongwu on 2017/7/13.\n// Copyright © 2017年 mac. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface DYNotificationViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// DYNotification...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 22.4, "nodes": 10, "errors": 0, "source_hash": "029773bb7ff3a5f09b2fc540a09b7c39c073d4f267536c92724698f79cd32e17", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKit...
14,352
c
/****************************************************************************** Copyright (C) 2013 <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 lim...
31.45
92
(translation_unit) "/******************************************************************************\nCopyright (C) 2013 <NAME>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the "Software"), to deal in\nthe Software without restricti...
585
16
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 31.45, "nodes": 345, "errors": 0, "source_hash": "9ea0f3902383aa4cf4a33ac8ef5ad3045ef3919bee4b2f5f0c07f779ae0d66a4", "categorized_nodes": 238}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,353
c
//----------------------------------------------------------------------------- // Verve // Copyright (C) - <NAME> //----------------------------------------------------------------------------- #ifndef _VT_VTORQUE3D_POSTEFFECT_H_ #define _VT_VTORQUE3D_POSTEFFECT_H_ #ifndef _VT_TORQUE_POSTEFFECT_H_ #include "Verve/To...
35.33
27
(translation_unit) "//-----------------------------------------------------------------------------\n// Verve\n// Copyright (C) - <NAME>\n//-----------------------------------------------------------------------------\n\n#ifndef _VT_VTORQUE3D_POSTEFFECT_H_\n#define _VT_VTORQUE3D_POSTEFFECT_H_\n\n#ifndef _VT_TORQUE_POST...
150
1
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 35.33, "nodes": 100, "errors": 0, "source_hash": "ad3f130665f90e894dd7fdc26f010447fa24ab86b82c1da8b59ebd106a45ca6e", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,354
c
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. #pragma once #include <memory> #include <string> #include <sstream> #include <GLTFSDK/IStreamReader.h> #include <GLTFSDK/IStreamWriter.h> namespace Mic...
28.85
34
(translation_unit) "// Copyright (c) Microsoft Corporation. All rights reserved. \n// Licensed under the MIT License. See LICENSE in the project root for license information. \n \n#pragma once \n \n#include <memory> \n#include <string> \n#include <sstream> \n \n#include <GLTFSDK/IStreamReader.h> \n#include <GLTFSDK/ISt...
216
16
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 28.85, "nodes": 112, "errors": 0, "source_hash": "4da7e08eba6fbb1361e384014bb37aab036f3a2cdb203a3219dcd5516ac688f9", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
14,355
c
// Generated by gencpp from file voxblox_msgs/Layer.msg // DO NOT EDIT! #ifndef VOXBLOX_MSGS_MESSAGE_LAYER_H #define VOXBLOX_MSGS_MESSAGE_LAYER_H #include <string> #include <vector> #include <map> #include <ros/types.h> #include <ros/serialization.h> #include <ros/builtin_message_traits.h> #include <ros/message_op...
36.73
200
(translation_unit) "// Generated by gencpp from file voxblox_msgs/Layer.msg\n// DO NOT EDIT!\n\n\n#ifndef VOXBLOX_MSGS_MESSAGE_LAYER_H\n#define VOXBLOX_MSGS_MESSAGE_LAYER_H\n\n\n#include <string>\n#include <vector>\n#include <map>\n\n#include <ros/types.h>\n#include <ros/serialization.h>\n#include <ros/builtin_message_...
1,747
119
{"language": "c", "success": true, "metadata": {"lines": 200, "avg_line_length": 36.73, "nodes": 1034, "errors": 0, "source_hash": "37a627f3c5564275d78c594c589d3d655a221202840516ace665742c2af564d6", "categorized_nodes": 648}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
14,356
c
#ifndef QUERY_BUILDER_H #define QUERY_BUILDER_H #include <stdbool.h> #include <stdio.h> #include "content.h" #ifdef __cplusplus extern "C" { #endif typedef struct string_t* string; string string_new(); string string_new_with_size(size_t size); void string_delete(string str); void string_append(str...
25.61
33
(translation_unit) "#ifndef QUERY_BUILDER_H \n#define QUERY_BUILDER_H \n \n#include <stdbool.h> \n#include <stdio.h> \n \n#include "content.h" \n \n#ifdef __cplusplus \nextern "C" { \n#endif \n \ntypedef struct string_t* string; \n \nstring string_new(); \nstring string_new_with_size(size_t size); \nvoid string_delete(...
240
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 25.61, "nodes": 163, "errors": 0, "source_hash": "8200043b7264324800c892316d89a0f75e791097da72bb62ab6f74fdeea8ff8e", "categorized_nodes": 107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,357
c
/** Factorial program in c using for loop */ #include<stdio.h> int main(){ int i,f=1, num; printf("Enter a natural number: "); scanf("%d", &num); for(i=1;i<=num;i++) f = f * i; printf("%d! = %d\n", num, f); return 0; } /* OUTPUT: Enter a natural number: 5 5! = 120 */
12.32
22
(translation_unit) "/**\nFactorial program in c using for loop \n*/\n \n#include<stdio.h>\nint main(){\n int i,f=1, num;\n \n printf("Enter a natural number: ");\n scanf("%d", &num);\n \n for(i=1;i<=num;i++)\n f = f * i;\n \n printf("%d! = %d\n", num, f);\n return 0;\n}\n/*\nOUTPUT:\nEnter a natural number: 5\...
99
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 12.32, "nodes": 54, "errors": 0, "source_hash": "4e345d8f958ab5589924f2aaaef9898b79d4d574cc1d72db176fe8cb96d2a5d9", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
14,358
c
/* Terminals * colors * http://xn--rpa.cc/irl/term.html */ #include <unistd.h> #define szstr(str) str,sizeof(str) #define fg "3" #define br_fg "9" #define bg "4" #define br_bg "10" #define with ";" #define plain "" #define black "0" #define red "1" #define green "2" #define yellow "3" #define blue "4" #define mag...
21.65
34
(translation_unit) "/* Terminals\n * colors \n * http://xn--rpa.cc/irl/term.html\n */\n#include <unistd.h>\n\n#define szstr(str) str,sizeof(str)\n\n#define fg "3"\n#define br_fg "9"\n#define bg "4"\n#define br_bg "10"\n#define with ";"\n#define plain ""\n#define black "0"\n#define red "1"\n#define green "2"\n#define ye...
203
6
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 21.65, "nodes": 146, "errors": 0, "source_hash": "06ceb634b49daec0e3532f62799f2ab4c9ea3845328bfaf62fcb5e2eeff0a150", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
14,359
c
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include "country.h" #include <QMainWindow> namespace Ui { class MainWindow; } class LoginWidget; class GridWidget; class ProgressWidget; class SummaryWidget; class UpdateWidget; class SettingsDialog; class MainWindow : public QMainWindow { Q_OBJECT enum Page { Login,...
20.98
49
(translation_unit) "#ifndef MAINWINDOW_H\n#define MAINWINDOW_H\n\n#include "country.h"\n\n#include <QMainWindow>\n\nnamespace Ui {\nclass MainWindow;\n}\n\nclass LoginWidget;\nclass GridWidget;\nclass ProgressWidget;\nclass SummaryWidget;\nclass UpdateWidget;\nclass SettingsDialog;\n\nclass MainWindow : public QMainWin...
292
9
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 20.98, "nodes": 186, "errors": 0, "source_hash": "be617cf9de1d57f6f29a56467155d26b82ebf079cfd9dca3f5c3af92e2a9e095", "categorized_nodes": 122}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef MAINWI...
14,360
c
/* ** tools3.c for in /home/WASSEX/Semestre1/PSU/PSU_2016_minishell1/src ** ** Made by <NAME> ** Login <<EMAIL>> ** ** Started on Tue Jun 20 19:04:47 2017 <NAME> ** Last update Fri Sep 1 13:51:24 2017 <NAME> */ #include "mysh.h" int check_non_alpha(char *str) { int i; i = 0; while (str[i] != '\0') {...
19.78
23
(translation_unit) "/*\n** tools3.c for in /home/WASSEX/Semestre1/PSU/PSU_2016_minishell1/src\n** \n** Made by <NAME>\n** Login <<EMAIL>>\n** \n** Started on Tue Jun 20 19:04:47 2017 <NAME>\n** Last update Fri Sep 1 13:51:24 2017 <NAME>\n*/\n\n#include "mysh.h"\n\nint check_non_alpha(char *str)\n{\n int i;\n\n i...
159
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 19.78, "nodes": 109, "errors": 0, "source_hash": "c8b6c8964e19a60453dd9a688d684cb18ad881ce3590fbc79de31d7ff26d3753", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
14,361
c
/* $Id: status.c,v 1.7 2012/04/12 14:57:28 tom Exp $ */ #include <vttest.h> #include <esc.h> #include <ttymodes.h> static void restore_status(void) { decsasd(0); /* main display */ decssdt(1); /* indicator (default) */ restore_ttymodes(); } static int simple_statusline(MENU_ARGS) { static char text[] = "...
25.88
89
(translation_unit) "/* $Id: status.c,v 1.7 2012/04/12 14:57:28 tom Exp $ */\n\n#include <vttest.h>\n#include <esc.h>\n#include <ttymodes.h>\n\nstatic void\nrestore_status(void)\n{\n decsasd(0); /* main display */\n decssdt(1); /* indicator (default) */\n restore_ttymodes();\n}\n\nstatic int\nsimple_statusline(ME...
538
0
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 25.88, "nodes": 242, "errors": 0, "source_hash": "ea858b52f79ae8a6e91f785190f8e0d72366a5d354f7e989986e90ccf1ad2176", "categorized_nodes": 174}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,362
c
/* * Copyright (c) 2021 <NAME>, LLC * Distributed under the MIT license. */ #include <stdint.h> #include <stdlib.h> #include <math.h> #include <stdio.h> #include "colorlerp.h" #include "gammatables.h" #define FAST_GAMMA static float ungammait(float u) { #ifdef FAST_GAMMA float y; int ipos; float fpo...
24.83
128
(translation_unit) "/*\n * Copyright (c) 2021 <NAME>, LLC\n * Distributed under the MIT license.\n */\n\n#include <stdint.h>\n#include <stdlib.h>\n#include <math.h>\n#include <stdio.h>\n\n#include "colorlerp.h"\n\n#include "gammatables.h"\n\n#define FAST_GAMMA\n\nstatic float ungammait(float u)\n{\n#ifdef FAST_GAMMA\n ...
1,313
0
{"language": "c", "success": true, "metadata": {"lines": 128, "avg_line_length": 24.83, "nodes": 863, "errors": 0, "source_hash": "46ba33db0a7e159667b9c0c61e7eda2bc81681ba14063f7fddde01e961b41650", "categorized_nodes": 620}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,363
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/NewsUI.framework/NewsUI */ @interface NUPageViewControllerScrollView : UIScrollView { <NUPageViewControllerScrollViewAccessibilityDelegate> * _accessibilityDelegate; } @property (nonatomic) <NUPageViewControllerScrollViewAccessibilityDele...
40.08
12
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/NewsUI.framework/NewsUI\n */\n\n@interface NUPageViewControllerScrollView : UIScrollView {\n <NUPageViewControllerScrollViewAccessibilityDelegate> * _accessibilityDelegate;\n}\n\n@property (nonatomic) <NUPageViewControlle...
103
12
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 40.08, "nodes": 64, "errors": 0, "source_hash": "0eeb7ccb741faad62b5908749bfe79da82df3d4c71efe7e34b813856f85ae302", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nu...
14,364
c
/* * Copyright 2012-2014,2018-2020 NXP * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
32.39
64
(translation_unit) "/*\n * Copyright 2012-2014,2018-2020 NXP\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless req...
337
0
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 32.39, "nodes": 249, "errors": 0, "source_hash": "e53fe2c8c6c6efbef6dbfe7d221dfa91b0776bbd291fb4c4ca0277941b640c44", "categorized_nodes": 154}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,365
c
// // MediaLibUtils.h // FBSnapshotTestCase // // Created by maxiao on 2021/4/13. // #import "MXSysAuthUtils.h" NS_ASSUME_NONNULL_BEGIN @interface MediaLibUtils : MXSysAuthUtils /// 检查相册是否授权 /// @param completedBlock 回调 + (void)checkPhotoAuthWithCompletedBlock:(void (^)(int status))completedBlock; /// 检查相册是否授权 ...
27.9
20
(translation_unit) "//\n// MediaLibUtils.h\n// FBSnapshotTestCase\n//\n// Created by maxiao on 2021/4/13.\n//\n\n#import "MXSysAuthUtils.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface MediaLibUtils : MXSysAuthUtils\n\n/// 检查相册是否授权\n/// @param completedBlock 回调\n+ (void)checkPhotoAuthWithCompletedBlock:(void (^)(int sta...
122
16
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 27.9, "nodes": 72, "errors": 0, "source_hash": "633e7547948bbbdf6f84bef8e6da4d189db491184742dda597dd986455b6d5a5", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
14,366
c
//Titania 10/21/2019 //Shadow Sewers, Room 23 #include <std.h> #include "../defs.h" inherit INH"sewer"; void create(){ ::create(); set_exits(([ "north" : ROOMS"sewer27", "south" : ROOMS"sewer22", "east" : ROOMS"sewer24", ])); }
18.15
13
(translation_unit) "//Titania 10/21/2019\n//Shadow Sewers, Room 23\n\n#include <std.h>\n#include "../defs.h"\ninherit INH"sewer";\n\nvoid create(){\n ::create();\n set_exits(([\n "north" : ROOMS"sewer27",\n "south" : ROOMS"sewer22",\n "east" : ROOMS"sewer24",\n ]));\n}\n" (comment) "//Titania 10/21/201...
93
3
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 18.15, "nodes": 37, "errors": 0, "source_hash": "b5f91cd0d55fd64abe88b35362e3d7c50cfee2ced22d1d5ede6a1b18d949a3d6", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
14,367
c
// // Generated by the J2ObjC translator. DO NOT EDIT! // source: /Users/ex3ndr/Develop/actor-platform/actor-apps/core/src/main/java/im/actor/model/api/Config.java // #ifndef _APConfig_H_ #define _APConfig_H_ #include "J2ObjC_header.h" #include "im/actor/model/droidkit/bser/BserObject.h" @class BSBserValues; @cla...
38.3
27
(translation_unit) "//\n// Generated by the J2ObjC translator. DO NOT EDIT!\n// source: /Users/ex3ndr/Develop/actor-platform/actor-apps/core/src/main/java/im/actor/model/api/Config.java\n//\n\n#ifndef _APConfig_H_\n#define _APConfig_H_\n\n#include "J2ObjC_header.h"\n#include "im/actor/model/droidkit/bser/BserObject....
219
18
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 38.3, "nodes": 145, "errors": 0, "source_hash": "c0770719a9866dbaacd824138152f1d2aed8faf2a81f1cf7ab59533888085766", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,368
c
/* * Copyright (C) 1999-2003 <NAME> (<EMAIL>) * 1999 <NAME> (<EMAIL>) * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free S...
39.27
41
(translation_unit) "/*\n * Copyright (C) 1999-2003 <NAME> (<EMAIL>)\n * 1999 <NAME> (<EMAIL>)\n * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved.\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Library General Public\n * License...
195
8
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 39.27, "nodes": 129, "errors": 0, "source_hash": "303b591c0f7d5246565fa2f23595077e7913c4e62e836fd35ed4f43aade09df8", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,369
c
#ifndef __KEYS_H_ #define __KEYS_H_ #include "common.h" #include "kvec.h" // Permissions handled by key typedef enum key_access { KA_NONE = 0, KA_ADD = 1 << 0, KA_DELETE = 1 << 1, KA_UPDATE = 1 << 2, KA_ADD_INDEX = 1 << 3, KA_DEL_INDEX = 1 << 4, KA_BROWSE = 1 << 5, ...
21.57
28
(translation_unit) "#ifndef __KEYS_H_\n#define __KEYS_H_\n\n#include "common.h"\n#include "kvec.h"\n\n// Permissions handled by key\ntypedef enum key_access {\n KA_NONE = 0,\n KA_ADD = 1 << 0,\n KA_DELETE = 1 << 1,\n KA_UPDATE = 1 << 2,\n KA_ADD_INDEX = 1 << 3,\n KA_DEL_INDEX = 1 << 4...
170
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 21.57, "nodes": 132, "errors": 0, "source_hash": "c974df3798871392219dbb36265ab777892061676f7c6b8e74b8f78b8551d461", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,370
c
// Copyright 2009-2015 <NAME> // https://github.com/djthorpe/postgresql-kit // // 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 requir...
38.74
113
(translation_unit) "// Copyright 2009-2015 <NAME>\n// https://github.com/djthorpe/postgresql-kit\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 http://www.apache.org/licenses/LICENSE...
315
47
{"language": "c", "success": true, "metadata": {"lines": 113, "avg_line_length": 38.74, "nodes": 199, "errors": 0, "source_hash": "91298c1aa901cda840031b76a784597dc6e8357a2d92bc35911f9fcce32ec633", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface PG...
14,371
c
// // WRObject.h // WRKitDemo // // Created by xianghui on 2017/11/3. // Copyright © 2017年 xianghui. All rights reserved. // #import <Foundation/Foundation.h> #import "WRKit.h" @interface WRObject : NSObject @end
18.82
11
(translation_unit) "//\n// WRObject.h\n// WRKitDemo\n//\n// Created by xianghui on 2017/11/3.\n// Copyright © 2017年 xianghui. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "WRKit.h"\n\n@interface WRObject : NSObject \n\n@end\n" (comment) "//" (comment) "// WRObject.h" (comment) "// ...
22
3
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 18.82, "nodes": 13, "errors": 0, "source_hash": "0cfbaf9b64cef55771478aebf6344b1413ed1507033f4cf32afce5734e970af1", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Foun...
14,372
c
//============================================================================= // Copyright 2020 <NAME> & <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, in...
32.37
70
(translation_unit) "//=============================================================================\n// Copyright 2020 <NAME> & <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 Softwar...
167
3
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 32.37, "nodes": 107, "errors": 0, "source_hash": "577d60d6076d33845728c069baae8388ae477f001fd328f87a30b7290bf22e41", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,373
c
// // MDClassModel.h // Maldives // // Created by <NAME> on 16/8/9. // Copyright © 2016年 Shanghai DuRui Information Technology Company. All rights reserved. // #import <Foundation/Foundation.h> @interface MDClassModel : NSObject @property (nonatomic,copy)NSString * problem; @property (nonatomic,copy)NSString * c...
27.77
13
(translation_unit) "//\n// MDClassModel.h\n// Maldives\n//\n// Created by <NAME> on 16/8/9.\n// Copyright © 2016年 Shanghai DuRui Information Technology Company. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface MDClassModel : NSObject\n\n@property (nonatomic,copy)NSString * problem;\n@prop...
72
14
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 27.77, "nodes": 51, "errors": 0, "source_hash": "c3178d221998d101188ced9887f79f48416094a9b958096cb5686e7ee02145db", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
14,374
c
// // File: NumericAlphabet.h // Created by: <NAME> // Created on: March 2010 // /* Copyright or Copr. Bio++ Development Team, (November 17, 2004) This software is a computer program whose purpose is to provide classes for sequences analysis. This software is governed by the CeCILL license under French law a...
34.37
105
(translation_unit) "//\n// File: NumericAlphabet.h\n// Created by: <NAME>\n// Created on: March 2010\n//\n\n/*\n Copyright or Copr. Bio++ Development Team, (November 17, 2004)\n\n This software is a computer program whose purpose is to provide classes\n for sequences analysis.\n\n This software is governed by the C...
454
29
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 34.37, "nodes": 245, "errors": 0, "source_hash": "0252cc4a7f1ae7bd67701af4638433fef18898d3b3b2d98ef172f2a0177c8ebc", "categorized_nodes": 156}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
14,375
c
/** SerDes.h Header file for SoC specific SerDes routines Copyright 2017-2020 NXP SPDX-License-Identifier: BSD-2-Clause-Patent **/ #ifndef SERDES_H #define SERDES_H VOID GetSerDesProtocolMap ( OUT UINT64 *SerDesProtocolMap ); typedef VOID (*SERDES_PROBE_LANES_CALLBACK) ( ...
17.11
28
(translation_unit) "/** SerDes.h \n Header file for SoC specific SerDes routines \n \n Copyright 2017-2020 NXP \n \n SPDX-License-Identifier: BSD-2-Clause-Patent \n**/ \n \n#ifndef SERDES_H \n#define SERDES_H \n \nVOID \nGetSerDesProtocolMap ( \n OUT UINT64 *SerDesProtocolMap \n ); \n \ntypedef VOID ...
72
5
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 17.11, "nodes": 57, "errors": 0, "source_hash": "6cee0dd29dd9814f7725d3aa6b51d60a5abe24610e76cdd4c86ef5267f2ecbe9", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,376
c
/* * Copyright (C) 2018 <NAME> * * Author: <NAME> <<EMAIL>> */ #ifndef LEXBOR_HTML_SPAN_ELEMENT_H #define LEXBOR_HTML_SPAN_ELEMENT_H #ifdef __cplusplus extern "C" { #endif #include "lexbor/html/interface.h" #include "lexbor/html/interfaces/element.h" struct lxb_html_span_element { lxb_html_element_t elemen...
23.15
26
(translation_unit) "/*\n * Copyright (C) 2018 <NAME>\n *\n * Author: <NAME> <<EMAIL>>\n */\n\n#ifndef LEXBOR_HTML_SPAN_ELEMENT_H\n#define LEXBOR_HTML_SPAN_ELEMENT_H\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n#include "lexbor/html/interface.h"\n#include "lexbor/html/interfaces/element.h"\n\n\nstruct lxb_html_span_el...
87
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 23.15, "nodes": 56, "errors": 0, "source_hash": "b8cfafaec46893cc7d46d95c72b0537ec55c37ae583becb15e5df75cb46f961d", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,377
c
#ifndef R_RENDER #define R_RENDER struct RenderContext { unsigned int flags; unsigned int maxuniforms; unsigned int maxuniformblock; unsigned int uniformblockalignment; float glslversion; int max_texturesize; char * vendorstring; char * modelstring; }; extern RenderContext gl; #endif
18.53
15
(translation_unit) "#ifndef R_RENDER\n#define R_RENDER\n\nstruct RenderContext\n{\n unsigned int flags;\n unsigned int maxuniforms;\n unsigned int maxuniformblock;\n unsigned int uniformblockalignment;\n float glslversion;\n int max_texturesize;\n char * vendorstring;\n char * modelstring;\n};\n\nextern RenderContext g...
65
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 18.53, "nodes": 51, "errors": 0, "source_hash": "30b160d9e3c2c0c8da266497534a89fc510c725e69d36367b4bae701309fdcbd", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,378
c
#include "evidence.h" // create a new evidence structure from this read evidence* new_evidence(readaln* const rln, const void* const variantsegment, const varianttype vclass, const evidencetype type) { evidence* evdnc = ckallocz(sizeof(evidence...
30.84
80
(translation_unit) "#include "evidence.h"\n\n// create a new evidence structure from this read\nevidence* new_evidence(readaln* const rln, \n const void* const variantsegment,\n const varianttype vclass,\n const evidencetype type) \n{\n evidence* evdn...
776
0
{"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 30.84, "nodes": 462, "errors": 0, "source_hash": "5fc69a506088a9d3c7deef9a3658de8d46efd46b28a04ae71e56fe9fba2ff905", "categorized_nodes": 328}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,379
c
/* * free.c * * Very simple linked-list based malloc()/free(). */ #include <stdlib.h> #include <dprintf.h> #include "malloc.h" #include <stdio.h> static struct free_arena_header * __free_block(struct free_arena_header *ah) { struct free_arena_header *pah, *nah; struct free_arena_header *head = &__core_m...
32.32
136
(translation_unit) "/*\n * free.c\n *\n * Very simple linked-list based malloc()/free().\n */\n\n#include <stdlib.h>\n#include <dprintf.h>\n#include "malloc.h"\n\n#include <stdio.h>\n\nstatic struct free_arena_header *\n__free_block(struct free_arena_header *ah)\n{\n struct free_arena_header *pah, *nah;\n struct ...
1,296
1
{"language": "c", "success": true, "metadata": {"lines": 136, "avg_line_length": 32.32, "nodes": 815, "errors": 0, "source_hash": "9fdfc50e8bfae23fc467a7968a87a7679e80c30e888a92a6c674d519b160d94d", "categorized_nodes": 632}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,380
c
/* * Copyright 2008-2018 Aerospike, Inc. * * Portions may be licensed to Aerospike, Inc. under one or more contributor * license agreements. * * 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 Licen...
28.34
77
(translation_unit) "/*\n * Copyright 2008-2018 Aerospike, Inc.\n *\n * Portions may be licensed to Aerospike, Inc. under one or more contributor\n * license agreements.\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 ob...
479
0
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 28.34, "nodes": 306, "errors": 0, "source_hash": "4c405e9f95ce14e59327bf5c3e11343fc0c2bcc8df1d52ccaa9b1f5ea7fe904d", "categorized_nodes": 208}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,381
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/GameCenterUI.framework/GameCenterUI */ @interface GKBackgroundTileImageView : UIImageView @end
33.2
5
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/GameCenterUI.framework/GameCenterUI\n */\n\n@interface GKBackgroundTileImageView : UIImageView\n\n@end\n" (comment) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/GameCenterUI.framework/GameCe...
10
3
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 33.2, "nodes": 6, "errors": 0, "source_hash": "47d3db6221bac9404f47daa96ec88069ef6b016e4a3334989a6dc3cad93f9934", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface GKBackgro...
14,382
c
/* * Copyright (c) 2018-2020, <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list ...
37.12
60
(translation_unit) "/*\n * Copyright (c) 2018-2020, <NAME> <<EMAIL>>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyrig...
137
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 37.12, "nodes": 135, "errors": 0, "source_hash": "6ec1d739ad536964c2b896961a12f85a25c32082fc205da6159d7d5053606c93", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
14,383
c
/* Sandpiles identity compute and render * Many piles are processed in parallel using AVX2 and OpenMP. * * $ cc -O3 -march=native -fopenmp sandpiles.c * $ ./a.out >identity.ppm * * $ cc -O3 -march=native -DANIMATE -DN=64 -DSCALE=16 sandpiles.c * $ ./a.out | mpv --no-correct-pts --fps=20 - * * Ref: http...
31.68
134
(translation_unit) "/* Sandpiles identity compute and render\n * Many piles are processed in parallel using AVX2 and OpenMP.\n *\n * $ cc -O3 -march=native -fopenmp sandpiles.c\n * $ ./a.out >identity.ppm\n *\n * $ cc -O3 -march=native -DANIMATE -DN=64 -DSCALE=16 sandpiles.c\n * $ ./a.out | mpv --no-correct-pts...
1,523
0
{"language": "c", "success": true, "metadata": {"lines": 134, "avg_line_length": 31.68, "nodes": 1050, "errors": 0, "source_hash": "5be12d1efacbedb6f635c8fd39fcb86d0d5c887099de18b14a6d39cc62943a16", "categorized_nodes": 722}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
14,384
c
// SecureChildBase.h : header file // #ifndef SECURECHILDBASE #define SECURECHILDBASE ///////////////////////////////////////////////////////////////////////////// // CSecureChildBase dialog class CSecureChildBase : public CDialog { // Construction public: BOOL m_IsDirty; virtual BOOL Create(CWnd* pPa...
24.29
42
(translation_unit) "// SecureChildBase.h : header file \n// \n#ifndef SECURECHILDBASE \n #define SECURECHILDBASE \n \n///////////////////////////////////////////////////////////////////////////// \n// CSecureChildBase dialog \n \nclass CSecureChildBase : public CDialog \n{ \n// Construction \npublic: \n BOOL m_IsDirty;...
159
8
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 24.29, "nodes": 93, "errors": 0, "source_hash": "29667341d21749e477af3105764eb94658c23b768c9c226f4063213f61cfff6f", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,385
c
#ifndef _USART_H_ #define _USART_H_ #include <stm32f4xx.h> #define USART_MODULE USART3 #define USART_PORT GPIOD #define USART_TX_pin 8 #define USART_RX_pin 9 #define BAUDRATE 9600 void send_usart(unsigned char d); void init_USART(void); #endif
19.67
12
(translation_unit) "#ifndef _USART_H_\n#define _USART_H_\n#include <stm32f4xx.h>\n\n#define USART_MODULE USART3\n#define USART_PORT GPIOD\n#define USART_TX_pin 8\n#define USART_RX_pin 9\n#define BAUDRATE 9600\n\n\nvoid send_usart(unsigned char d);\nvoid init_USART(void);\n\n#endif\n" (preproc_ifdef) "#ifndef _USAR...
54
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 19.67, "nodes": 47, "errors": 0, "source_hash": "0f2ae846119202c832d311fd24154ca602ef37fa13470fe6bafad8d0305aa3dd", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,386
c
#pragma once #include <stdint.h> namespace ubsan { struct source_location_t { const char* file; uint32_t line; uint32_t column; }; struct type_descriptor_t { uint16_t kind; uint16_t info; char name[]; inline bool is_int() { return kind == 0; } inline bool is_float() { return kind == 1; ...
33.83
113
(translation_unit) "#pragma once\n\n#include <stdint.h>\n\nnamespace ubsan {\n struct source_location_t {\n const char* file;\n uint32_t line;\n uint32_t column;\n };\n\n struct type_descriptor_t {\n uint16_t kind;\n uint16_t info;\n char name[];\n\n inline bool is_int() {\n return kind == 0;\n }\n\n inline ...
949
27
{"language": "c", "success": true, "metadata": {"lines": 113, "avg_line_length": 33.83, "nodes": 567, "errors": 0, "source_hash": "1e773d3cffb1df09ef2591619f478dcbc5de3e286e4b06c877d3e8703eaf709e", "categorized_nodes": 376}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
14,387
c
#ifndef PINS_ARDUINO_H_TOP #define PINS_ARDUINO_H_TOP #if defined(__AVR_ATmega2560__) // Arduino Mega 2560 #include "variants/mega/pins_arduino.h" #else // Arduino Uno #include "variants/standard/pins_arduino.h" #endif #endif
27.25
8
(translation_unit) "#ifndef PINS_ARDUINO_H_TOP\n#define PINS_ARDUINO_H_TOP\n\n#if defined(__AVR_ATmega2560__) // Arduino Mega 2560\n#include "variants/mega/pins_arduino.h"\n#else // Arduino Uno\n#include "variants/standard/pins_arduino.h"\n#endif\n\n#endif\n" (preproc_ifdef) "#ifndef PINS_ARDUINO_H_TOP\n#define PINS_...
33
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 27.25, "nodes": 22, "errors": 0, "source_hash": "bef2e5dd579aea9a4935effa5983d5188a2c320acd5e14c6c7e6b97680d7fb3a", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef P...
14,388
c
#pragma once #include "DNM_Def.h" #include <HIE/HIE_Def.h> #include <MTH.h> ////////////////////////// // // DNM - Dynamics Module // ////////////////////////// //////////////////// // Dynamics Blocks //////////////////// struct DNM_tdstDynamicsBaseBlock { int lObjectType; void *pCurrentIdCard; DWORD ulFlags;...
22.18
154
(translation_unit) "#pragma once\n\n#include "DNM_Def.h"\n#include <HIE/HIE_Def.h>\n#include <MTH.h>\n\n\n//////////////////////////\n//\n// DNM - Dynamics Module\n// \n//////////////////////////\n\n\n////////////////////\n// Dynamics Blocks\n////////////////////\n\nstruct DNM_tdstDynamicsBaseBlock\n{\n int lObjectType...
517
0
{"language": "c", "success": true, "metadata": {"lines": 154, "avg_line_length": 22.18, "nodes": 354, "errors": 0, "source_hash": "d8532b32ca5f4ab4059ded45a4295db681c70672f07af3f9865302be78c87dc9", "categorized_nodes": 329}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
14,389
c
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ASH_SYSTEM_TRAY_TIME_TO_CLICK_RECORDER_H_ #define ASH_SYSTEM_TRAY_TIME_TO_CLICK_RECORDER_H_ #include "ui/events/event_handler.h" namespace views...
34.9
31
(translation_unit) "// Copyright 2018 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef ASH_SYSTEM_TRAY_TIME_TO_CLICK_RECORDER_H_\n#define ASH_SYSTEM_TRAY_TIME_TO_CLICK_RECORDER_H_\n\n#include "ui/events/event_...
167
9
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 34.9, "nodes": 90, "errors": 0, "source_hash": "5282cb74d672bf06e1474cc1dd958166d956119f11e55ba3533c83eb9d6d742f", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef A...
14,390
c
#include <tfhe/tfhe.h> #include <tfhe/tfhe_io.h> #include <stdio.h> int main() { FILE* secret_key = fopen("secret.key","rb"); TFheGateBootstrappingSecretKeySet* key = new_tfheGateBootstrappingSecretKeySet_fromFile(secret_key); fclose(secret_key); const TFheGateBootstrappingParameterSet* params = key->...
41.7
23
(translation_unit) "#include <tfhe/tfhe.h>\n#include <tfhe/tfhe_io.h>\n#include <stdio.h>\n\nint main() {\n FILE* secret_key = fopen("secret.key","rb");\n TFheGateBootstrappingSecretKeySet* key = new_tfheGateBootstrappingSecretKeySet_fromFile(secret_key);\n fclose(secret_key);\n\n const TFheGateBootstrappin...
272
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 41.7, "nodes": 169, "errors": 0, "source_hash": "be728fb576f88438cf5e8d80f13734dcf4ef63477a93334473c97f3efd0a3117", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
14,391
c
#include "fmtdef.h" Fmt fmtbuf(char *buf, int len) { Fmt f; f.runes = 0; f.start = buf; f.to = buf; f.stop = buf + len - 1; f.flush = 0; f.farg = nil; f.nfmt = 0; return f; }
13.15
13
(translation_unit) "#include "fmtdef.h"\n\nFmt\nfmtbuf(char *buf, int len) {\n Fmt f;\n\n f.runes = 0;\n f.start = buf;\n f.to = buf;\n f.stop = buf + len - 1;\n f.flush = 0;\n f.farg = nil;\n f.nfmt = 0;\n return f;\n}\n" (preproc_include) "#include "fmtdef.h"\n" (#include) "#include" (string_literal) ""fmtd...
103
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 13.15, "nodes": 69, "errors": 0, "source_hash": "0f834e7492e662349bf83c42b2a1e24bc976d8987ff845c06b9ac6a322821d25", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
14,392
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 may not...
37.8
200
(translation_unit) "/* Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the...
1,311
1
{"language": "c", "success": true, "metadata": {"lines": 200, "avg_line_length": 37.8, "nodes": 757, "errors": 0, "source_hash": "afb4355a81c994a56ec04c641ca62e6c0a04f0e1aebd077ab01f095c62c4bc7e", "categorized_nodes": 529}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,393
c
#include <timer.h> #include <keyboard.h> #include <printf.h> #include <uart.h> #include <gpio.h> #include <interrupts.h> #include <console.h> #define ESC_SCANCODE 0x76 void test_keyboard_interrupts(void) { #if 1 interrupts_init(); keyboard_init(KEYBOARD_CLOCK, KEYBOARD_DATA); keyboard_use_interrupts(); interr...
18.54
82
(translation_unit) "#include <timer.h>\n#include <keyboard.h>\n#include <printf.h>\n#include <uart.h>\n#include <gpio.h>\n#include <interrupts.h>\n#include <console.h>\n\n#define ESC_SCANCODE 0x76\n\nvoid\ntest_keyboard_interrupts(void)\n{\n#if 1\n interrupts_init();\n keyboard_init(KEYBOARD_CLOCK, KEYBOARD_DATA);\n ...
496
0
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 18.54, "nodes": 253, "errors": 0, "source_hash": "9f173f2c3549db5216e994d251497191421d8682566a47b71aa370c87a2d0234", "categorized_nodes": 174}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,394
c
#include <stdio.h> int main(){ int num[100],i,size; printf("Enter the array size:"); scanf("%d",&size); for(i=0; i<size; i++){ printf("Array element %d: ",i+1); scanf("%d",&num[i]); } for (i=size-1; i>=0; i--){ printf("%d",num[i]); } return 0; }
14.05
19
(translation_unit) "#include <stdio.h> \n \nint main(){ \n int num[100],i,size; \n \n printf("Enter the array size:"); \n scanf("%d",&size); \n \n \n for(i=0; i<size; i++){ \n printf("Array element %d: ",i+1); \n scanf("%d",&num[i]); \n } \n for (i=size-1; i>=0; i--){ \n printf("%d",num[i]); \n } \n \n return 0; ...
151
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 14.05, "nodes": 77, "errors": 0, "source_hash": "7efa3642ef3e2e35a4da680cddb5b5988402c1a96be244e3b72eb06efb221b0c", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
14,395
c
/* -------------------------------------------------------------------------- * Name: node-destroy.c * Purpose: Associative array implemented as a digital search tree * ----------------------------------------------------------------------- */ #include <stdlib.h> #include "base/memento/memento.h" #include "dat...
32.5
14
(translation_unit) "/* --------------------------------------------------------------------------\n * Name: node-destroy.c\n * Purpose: Associative array implemented as a digital search tree\n * ----------------------------------------------------------------------- */\n\n#include <stdlib.h>\n\n#include "base/mement...
70
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 32.5, "nodes": 41, "errors": 0, "source_hash": "d71651f492c2ced465bacac124b33c8f52a801fcf774faa3e8727c7f6438fb9c", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
14,396
c
// // LVAppDelegate.h // Leviathan // // Created by <NAME> on 10/17/13. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <Cocoa/Cocoa.h> #import "LVProjectWindowController.h" #import "LVAutoUpdater.h" #import "LVUpdateWindowController.h" @interface LVAppDelegate : NSObject <NSApplicationDelegate, L...
31.57
14
(translation_unit) "//\n// LVAppDelegate.h\n// Leviathan\n//\n// Created by <NAME> on 10/17/13.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n\n#import "LVProjectWindowController.h"\n\n#import "LVAutoUpdater.h"\n#import "LVUpdateWindowController.h"\n\n@interface LVAppDelegate :...
50
7
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 31.57, "nodes": 34, "errors": 0, "source_hash": "95b304d8333efed39f30667fbcc7b294b9ffb633b44559e4e413d3229b09e4bd", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
14,397
c
/* ** EPITECH PROJECT, 2020 ** ll_integrity.c ** File description: ** ll_integrity */ #include "linked_list.h" bool ll_is_correct(llist_t *list) { node_t *first = NULL; node_t *cursor = NULL; if (!list) return false; first = list->first; cursor = first; if (!first) return true...
20.43
28
(translation_unit) "/*\n** EPITECH PROJECT, 2020\n** ll_integrity.c\n** File description:\n** ll_integrity\n*/\n\n#include "linked_list.h"\n\nbool ll_is_correct(llist_t *list)\n{\n node_t *first = NULL;\n node_t *cursor = NULL;\n\n if (!list)\n return false;\n first = list->first;\n cursor = first...
173
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 20.43, "nodes": 113, "errors": 0, "source_hash": "e67a4cadc0de9ac48f1b0dd89976718c9d06e45208b1eb783f9efe2629c78c1a", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
14,398
c
/* Copyright (c) 2008-2010 TrueCrypt Developers Association. All rights reserved. Governed by the TrueCrypt License 3.0 the full text of which is contained in the file License.txt included in TrueCrypt binary and source code distribution packages. */ #ifndef TC_HEADER_Core_FatFormatter #define TC_HEADER_Core_FatF...
29.7
23
(translation_unit) "/*\n Copyright (c) 2008-2010 TrueCrypt Developers Association. All rights reserved.\n\n Governed by the TrueCrypt License 3.0 the full text of which is contained in\n the file License.txt included in TrueCrypt binary and source code distribution\n packages.\n*/\n\n#ifndef TC_HEADER_Core_FatFormatter...
102
4
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 29.7, "nodes": 58, "errors": 0, "source_hash": "350becffbb8c71e44fa08cb9f1eecb8e113c929a1414a438bcab31781f7e5a3c", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef T...
14,399