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
/* $OpenBSD: gbr.c,v 1.9 2021/03/29 06:50:44 tb Exp $ */ /* * Copyright (c) 2020 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. *...
27.45
80
(translation_unit) "/* $OpenBSD: gbr.c,v 1.9 2021/03/29 06:50:44 tb Exp $ */\n/*\n * Copyright (c) 2020 <NAME> <<EMAIL>>\n *\n * Permission to use, copy, modify, and distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notic...
434
0
{"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 27.45, "nodes": 268, "errors": 0, "source_hash": "57c6b8c3f6a2812da473c3926e73b7208f4a1b6cc6be1d1915d294043bf78aed", "categorized_nodes": 197}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,100
c
#include "boolean.h" #include "types.h" #include "errors.h" #include <stdlib.h> #include "error_macros.h" /* malloc */ SH_Boolean* SH_Boolean__init(sh_bool_t value, int* err) { SH_Boolean* obj = (SH_Boolean*)malloc(sizeof(SH_Boolean)); __cascade(err, (SH_Boolean*)0); if ((SH_Boolean*)0 == obj) { __raise(err,...
23.47
58
(translation_unit) "#include "boolean.h"\n\n#include "types.h"\n#include "errors.h"\n\n#include <stdlib.h>\n\n#include "error_macros.h"\n\n/* malloc */\nSH_Boolean*\nSH_Boolean__init(sh_bool_t value, int* err) {\n SH_Boolean* obj = (SH_Boolean*)malloc(sizeof(SH_Boolean));\n\n __cascade(err, (SH_Boolean*)0);\n\n if ((SH...
566
1
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 23.47, "nodes": 352, "errors": 0, "source_hash": "4f5598ff94ad5e27161353f5fa957440c0bd1d199833f154910b61a6716b3a6a", "categorized_nodes": 236}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,101
c
#ifndef SPACESHOOTER_TEXTURE_H #define SPACESHOOTER_TEXTURE_H #include "TextureMapType.h" #include <glad/glad.h> #include <string> #include <vector> class Texture { GLuint ID; // texture object ID TextureMapType mapType; // map type std::string path; // path to texture, used to check if the t...
31.83
24
(translation_unit) "#ifndef SPACESHOOTER_TEXTURE_H\n#define SPACESHOOTER_TEXTURE_H\n\n#include "TextureMapType.h"\n#include <glad/glad.h>\n#include <string>\n#include <vector>\n\nclass Texture {\n GLuint ID; // texture object ID\n TextureMapType mapType; // map type\n std::string path; // path to ...
181
9
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 31.83, "nodes": 100, "errors": 0, "source_hash": "3f799e539d872bf17e192ca3f17eac4a1486eedf630bd87f2d841b2fa275a217", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,102
c
//Definition for singly-linked list. struct ListNode { int val; struct ListNode *next; }; struct ListNode *mergeTwoLists(struct ListNode *list0, struct ListNode *list1) { if (!list0) return list1; if (!list1) return list0; if (list0->val <= list1->val) { list0->next = mergeTwoLists(list0->next, list1); ...
23.11
35
(translation_unit) "//Definition for singly-linked list.\nstruct ListNode\n{\n int val;\n struct ListNode *next;\n};\n\nstruct ListNode *mergeTwoLists(struct ListNode *list0, struct ListNode *list1)\n{\n if (!list0)\n return list1;\n if (!list1)\n return list0;\n if (list0->val <= list1->val)\n {\n list0->next = mer...
312
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 23.11, "nodes": 213, "errors": 0, "source_hash": "a399b1e7651247aa14d9ab246a99981ccf7bfd81030d243dac55fe0f005e6bc5", "categorized_nodes": 158}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "struct_specifier", "text": "str...
5,103
c
/*- * Copyright (c) 2016-2017 <NAME> * All rights reserved. * * Author: <NAME> <<EMAIL>> * * 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 * ...
30.27
106
(translation_unit) "/*-\n * Copyright (c) 2016-2017 <NAME>\n * All rights reserved.\n *\n * Author: <NAME> <<EMAIL>>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must r...
791
0
{"language": "c", "success": true, "metadata": {"lines": 106, "avg_line_length": 30.27, "nodes": 504, "errors": 0, "source_hash": "7479a98215189874d5e4a0d7f8d35256a26f5fd105fe9eab3fc5d298c1b6a543", "categorized_nodes": 411}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,104
c
/* * Christmas Tree - Brought to you by SDL2 and OpenGL * Inspired by: https://github.com/anvaka/atree# * * <NAME>, 2019 - 2020 */ #ifndef __SPIRAL_H__ #define __SPIRAL_H__ #include <stdint.h> #include <cglm/cglm.h> /** Opaque handle to a spiral */ typedef void *spiral; typedef struct spiral_init_ctx_ { /*...
31.08
37
(translation_unit) "/*\n * Christmas Tree - Brought to you by SDL2 and OpenGL\n * Inspired by: https://github.com/anvaka/atree#\n *\n * <NAME>, 2019 - 2020\n */\n\n#ifndef __SPIRAL_H__\n#define __SPIRAL_H__\n\n#include <stdint.h>\n#include <cglm/cglm.h>\n\n/** Opaque handle to a spiral */\ntypedef void *spiral;\n\ntype...
119
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 31.08, "nodes": 79, "errors": 0, "source_hash": "3cfe1bf950313b36e371cd847ba886c671e40396400dd130093ee4f1ef99720d", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,105
c
#include <stdio.h> #include <stdlib.h> #include <string.h> int str_cpy(char *p1,char *p2); int main(){ int count,i; char *pointer1,*pointer2; printf("Enter first string\n"); pointer1=(char *)malloc(1*(sizeof(char))); pointer2=(char *)malloc(1*(sizeof(char))); scanf("%s",pointer1); pointer1=(...
27.15
27
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\nint str_cpy(char *p1,char *p2);\nint main(){\n int count,i;\n char *pointer1,*pointer2;\n printf("Enter first string\n");\n pointer1=(char *)malloc(1*(sizeof(char)));\n pointer2=(char *)malloc(1*(sizeof(char)));\n scanf(...
351
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 27.15, "nodes": 216, "errors": 0, "source_hash": "d823fd285edfeaf52b9232f35eeab4727a8d6b7a92724a713c6fcaf7d271d6a0", "categorized_nodes": 130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,106
c
/** ****************************************************************************** * @file adc.c * @author RT * @version V1.0 * @date 15/02/01 * @brief analog digital converter module ****************************************************************************** */ /* Includes ------...
31.66
150
(translation_unit) "/** \n ****************************************************************************** \n * @file adc.c \n * @author RT \n * @version V1.0 \n * @date 15/02/01 \n * @brief analog digital converter module \n ****************************************************************************** ...
765
0
{"language": "c", "success": true, "metadata": {"lines": 150, "avg_line_length": 31.66, "nodes": 478, "errors": 0, "source_hash": "25ea01f72477f1799aadd91d113a710115562376a99e55feba54c09813e41f62", "categorized_nodes": 347}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,107
c
#ifndef DataFormatsL1TCorrelator_TkElectron_h #define DataFormatsL1TCorrelator_TkElectron_h // -*- C++ -*- // // Package: L1Trigger // Class : TkEm // #include "DataFormats/Common/interface/Ref.h" #include "DataFormats/Common/interface/Ptr.h" #include "DataFormats/L1Trigger/interface/EGamma.h" #include "Da...
37.39
38
(translation_unit) "#ifndef DataFormatsL1TCorrelator_TkElectron_h\n#define DataFormatsL1TCorrelator_TkElectron_h\n\n// -*- C++ -*-\n//\n// Package: L1Trigger\n// Class : TkEm\n//\n\n#include "DataFormats/Common/interface/Ref.h"\n#include "DataFormats/Common/interface/Ptr.h"\n\n#include "DataFormats/L1Trigger/i...
286
13
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 37.39, "nodes": 157, "errors": 0, "source_hash": "e2801c5abf35083b042c2b21d387138328fa73d0bdb5436669be417f7d2bc911", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,108
c
#include <px4_tasks.h> #include <px4_posix.h> #include <px4_defines.h> #include <stdio.h> #include <stdlib.h> #include <string.h> //strcasecmp #include <unistd.h> //read #include <nuttx/config.h> #include <nuttx/sched.h> #include <systemlib/systemlib.h> #include <systemlib/err.h> #include <termios.h> #include <stdbool...
27.88
200
(translation_unit) "#include <px4_tasks.h>\n#include <px4_posix.h>\n#include <px4_defines.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h> //strcasecmp\n#include <unistd.h> //read\n#include <nuttx/config.h>\n#include <nuttx/sched.h>\n#include <systemlib/systemlib.h>\n#include <systemlib/err.h>\n#includ...
1,745
1
{"language": "c", "success": true, "metadata": {"lines": 200, "avg_line_length": 27.88, "nodes": 1014, "errors": 0, "source_hash": "c12f4f6e3af0d133ff4a38b0ac72e3a23f60ec7c040044046b98868cb4402180", "categorized_nodes": 740}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
5,109
c
/* RAMTEK_Lut - description * * Purpose: * * Written by: * Date: * * Calling Sequence: * * STATUS = RAMTEK_Lut( parameters ) * * Parameter List: * * Unit: Display device unit number * * Possible Error Codes: * */ #include "xdexterns.h" #include "xdroutines.h" #include "xderrors.h" #include "xdfuncs.h...
21.49
55
(translation_unit) "/* RAMTEK_Lut - description\n *\n * Purpose:\n *\n * Written by:\n * Date:\n *\n * Calling Sequence:\n *\n * STATUS = RAMTEK_Lut( parameters )\n *\n * Parameter List:\n *\n * Unit: Display device unit number\n *\n * Possible Error Codes:\n *\n */\n#include "xdexterns.h"\n#include "xdroutines.h"\n#...
349
0
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 21.49, "nodes": 194, "errors": 0, "source_hash": "f4a2f556f59fd12e051bf3dfe79f6863050cbd58577c31fe565b6854589bba72", "categorized_nodes": 156}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,110
c
#include "Banks/SetBank6.h" #include "main.h" #include "ZGBMain.h" #include "Sprite.h" #include "SpriteManager.h" #include "custom_datas.h" const UINT8 amulet_closed[] = {1, 0}; //The first number indicates the number of frames const UINT8 amulet_water[] = {2, 0, 1}; //The first number indicates the number of frames...
25.1
48
(translation_unit) "#include "Banks/SetBank6.h"\n#include "main.h"\n\n#include "ZGBMain.h"\n#include "Sprite.h"\n#include "SpriteManager.h"\n#include "custom_datas.h"\n\n\nconst UINT8 amulet_closed[] = {1, 0}; //The first number indicates the number of frames\nconst UINT8 amulet_water[] = {2, 0, 1}; //The first number ...
392
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 25.1, "nodes": 223, "errors": 0, "source_hash": "2b22054ab79c63523e8cd6bc2ce8bc0fea636d0e160ec2eea120d8209ff889d4", "categorized_nodes": 168}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
5,111
c
#include "defs.h" #include <sys/socket.h> #include <arpa/inet.h> #include <netdb.h> int main(void) { struct addrinfo *infop = NULL, hint; memset(&hint, 0, sizeof(hint)); hint.ai_family = AF_INET; hint.ai_socktype = SOCK_STREAM; ec_ai(getaddrinfo("www.yahoo.com", "80", &hint, &infop)); for (; i...
32.05
19
(translation_unit) "#include "defs.h"\n#include <sys/socket.h>\n#include <arpa/inet.h>\n#include <netdb.h>\n\nint main(void) {\n struct addrinfo *infop = NULL, hint;\n\n memset(&hint, 0, sizeof(hint));\n hint.ai_family = AF_INET;\n hint.ai_socktype = SOCK_STREAM;\n ec_ai(getaddrinfo("www.yahoo.com", "80"...
209
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 32.05, "nodes": 127, "errors": 0, "source_hash": "07e3d945327b48fbb8f864cef78b2d0416d865768c548cfbf9f332fe0f13f8b2", "categorized_nodes": 96}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
5,112
c
// The Center of The Imperial Gardens of Tsarven // Thorn@Shadowgate // 11/24/95 // The Emperor's Palace, Tsarven // ebridge.c #include <std.h> inherit ROOM; void create() { object ob; ::create(); set_light(2); set_indoors(0); set_short("On a bridge in the Emperor's Garden"); set_long( @THORN You...
27.26
31
(translation_unit) "// The Center of The Imperial Gardens of Tsarven\n// Thorn@Shadowgate\n// 11/24/95\n// The Emperor's Palace, Tsarven\n// ebridge.c\n\n#include <std.h>\n\ninherit ROOM;\n\nvoid create() {\n object ob;\n ::create();\n set_light(2);\n set_indoors(0);\n set_short("On a bridge in the Emperor...
240
9
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 27.26, "nodes": 156, "errors": 0, "source_hash": "cebd1792d198f6253a27645de0544b2e1e4270654e2631cdcc4a5d49544f213e", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,113
c
/* { dg-do run } */ /* { dg-options "-O2" } */ typedef void (*listener_fun)( int a, int b, int c); struct data_t { int a; listener_fun listener; int b; int c; int d; }; extern void abort(void); void function_calling_listener (struct data_t data); void function_calling_listener (st...
16.39
36
(translation_unit) "/* { dg-do run } */\n/* { dg-options "-O2" } */\ntypedef void (*listener_fun)(\n int a,\n int b,\n int c);\n\nstruct data_t\n{\n int a;\n\n listener_fun listener;\n\n int b;\n int c;\n int d;\n};\n\nextern void abort(void);\nvoid function_calling_listener (struct data_t dat...
241
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 16.39, "nodes": 160, "errors": 0, "source_hash": "bd7d1a0a6d387df925854ea11a4fd85461585353e1348a1d455c393e268336a3", "categorized_nodes": 119}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "type...
5,114
c
/* * Copyright 2009, <NAME>, <EMAIL>. * Distributed under the terms of the MIT License. */ #ifndef _DEBUG_EVENT_STREAM_H #define _DEBUG_EVENT_STREAM_H #include <Haiku.h> class BDataIO; struct debug_event_stream_header { char signature[32]; uint32 version; uint32 flags; uint32 event_mask; uint32 reserved; }...
23.72
72
(translation_unit) "/*\n * Copyright 2009, <NAME>, <EMAIL>.\n * Distributed under the terms of the MIT License.\n */\n#ifndef _DEBUG_EVENT_STREAM_H\n#define _DEBUG_EVENT_STREAM_H\n\n#include <Haiku.h>\n\n\nclass BDataIO;\n\n\nstruct debug_event_stream_header {\n char signature[32];\n uint32 version;\n uint32 flags;\n u...
379
1
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 23.72, "nodes": 254, "errors": 0, "source_hash": "19173169b2e6047e45ffe864de102f848b1f0ed1e7097252b23c55bf10ffe293", "categorized_nodes": 171}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,115
c
/* * Raging MIDI (https://github.com/waddlesplash/ragingmidi). * * Copyright (c) 2012-2013 WaddleSplash & contributors (see AUTHORS.txt). * * 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 Softw...
32.24
83
(translation_unit) "/*\n * Raging MIDI (https://github.com/waddlesplash/ragingmidi).\n *\n * Copyright (c) 2012-2013 WaddleSplash & contributors (see AUTHORS.txt).\n *\n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this software and associated documentation files (the "Software"...
338
8
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 32.24, "nodes": 219, "errors": 0, "source_hash": "397c6db9d0f2cce28eb0b6cdce1caea184e83580a1d6105af51f7cf0b31e26ab", "categorized_nodes": 141}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,116
c
#include <stdlib.h> #include <system.h> #include <string.h> #include <asm.h> #include <processor.h> #include "system.h" #include "lwp_wkspace.h" #define ROUND32UP(v) (((u32)(v)+31)&~31) heap_cntrl __wkspace_heap; static heap_iblock __wkspace_iblock; static u32 __wkspace_heap_size = 0; u32 __lwp_wkspace_heapsize() ...
26.38
37
(translation_unit) "#include <stdlib.h>\n#include <system.h>\n#include <string.h>\n#include <asm.h>\n#include <processor.h>\n#include "system.h"\n#include "lwp_wkspace.h"\n\n#define ROUND32UP(v) (((u32)(v)+31)&~31)\n\nheap_cntrl __wkspace_heap;\nstatic heap_iblock __wkspace_iblock;\nstatic u32 __wkspace_heap_size = 0...
277
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 26.38, "nodes": 165, "errors": 0, "source_hash": "7e316568f8b2d1c365bb15e67a04e406f974b9d70e45ead24c117701f65f6429", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,117
c
#ifndef __LINUX_TI_AM335X_ADC_H #define __LINUX_TI_AM335X_ADC_H /** * struct adc_data ADC Input information * @adc_channels: Number of analog inputs * available for ADC. */ struct adc_data { unsigned int adc_channels; }; #endif
20.36
11
(translation_unit) "#ifndef __LINUX_TI_AM335X_ADC_H\n#define __LINUX_TI_AM335X_ADC_H\n\n/**\n * struct adc_data ADC Input information\n * @adc_channels: Number of analog inputs\n * available for ADC.\n */\n\nstruct adc_data {\n unsigned int adc_channels;\n};\n\n#endif\n" (preproc_ifdef) "#ifndef __LINUX_TI_AM335X_A...
22
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 20.36, "nodes": 15, "errors": 0, "source_hash": "3a415ce858a260d9392892077f3c2d2736a03427be0aca66414d37fab00fb95e", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,118
c
/* * * Automatically generated file; DO NOT EDIT. * AliOS Things Configuration * */ #define AOS_COMP_DEBUG 1 #define OSAL_RHINO 1 #define BSP_SUPPORT_SPI 1 #define AOS_BUILD_BOARD "stm32l476rg-nucleo" #define BSP_SUPPORT_WIFI 1 #define VFS_CONFIG_PATH_MAX 256 #define AOS_ARCH_ARMV7M 1 #define AOS_APP_HELLOWORLD 1 ...
26.71
38
(translation_unit) "/*\n *\n * Automatically generated file; DO NOT EDIT.\n * AliOS Things Configuration\n *\n */\n#define AOS_COMP_DEBUG 1\n#define OSAL_RHINO 1\n#define BSP_SUPPORT_SPI 1\n#define AOS_BUILD_BOARD "stm32l476rg-nucleo"\n#define BSP_SUPPORT_WIFI 1\n#define VFS_CONFIG_PATH_MAX 256\n#define AOS_ARCH_ARMV7M...
130
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 26.71, "nodes": 128, "errors": 0, "source_hash": "7cfc588875d9e44911da07e17f238a6a873f610c453eca28a182a2b5e65b1915", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define A...
5,119
c
/* refCount - stuff to manipulate object reference counts. * We have to use a little inline assembler to get these to * happen in a thread-safe manner. */ #ifndef REFCOUNT_H #define REFCOUNT_H void codeVarIncRef(FILE *f, char *varName); /* Generate code to bump ref count of a variable. */ void codeStackIncRef(...
40.47
15
(translation_unit) "/* refCount - stuff to manipulate object reference counts.\n * We have to use a little inline assembler to get these to\n * happen in a thread-safe manner. */\n \n#ifndef REFCOUNT_H\n#define REFCOUNT_H\n\nvoid codeVarIncRef(FILE *f, char *varName);\n/* Generate code to bump ref count of a variabl...
86
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 40.47, "nodes": 63, "errors": 0, "source_hash": "2f09bc4dd5bcf7b9a6b8070ad010fca749cd9cb407edbb61df516d278c16060e", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,120
c
#ifndef DRAW_H #define DRAW_H #include "platform.h" #include "shaders.h" void Draw(Backbuffer *buffer, Program *program, mat4 viewport); #endif
23
6
(translation_unit) "#ifndef DRAW_H\n#define DRAW_H\n\n#include "platform.h"\n#include "shaders.h"\n\nvoid Draw(Backbuffer *buffer, Program *program, mat4 viewport);\n\n#endif" (preproc_ifdef) "#ifndef DRAW_H\n#define DRAW_H\n\n#include "platform.h"\n#include "shaders.h"\n\nvoid Draw(Backbuffer *buffer, Program *progr...
43
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 23.0, "nodes": 31, "errors": 0, "source_hash": "318bc5036dcb257711c68086c2c1106aa733c7961cc6e73d1bd35f7231451b14", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef DR...
5,121
c
// DOM-IGNORE-BEGIN /******************************************************************************* * Copyright (C) 2020 Microchip Technology Inc. and its subsidiaries. * * Subject to your compliance with these terms, you may use Microchip software * and any derivatives exclusively with Microchip products. It is your ...
36.82
99
(translation_unit) "// DOM-IGNORE-BEGIN\n/*******************************************************************************\n* Copyright (C) 2020 Microchip Technology Inc. and its subsidiaries.\n*\n* Subject to your compliance with these terms, you may use Microchip software\n* and any derivatives exclusively with Microc...
461
0
{"language": "c", "success": true, "metadata": {"lines": 99, "avg_line_length": 36.82, "nodes": 244, "errors": 0, "source_hash": "8f9e2d4de6e2507487abf6ad13787be3c553d7ea923b725199feb47255c7de8c", "categorized_nodes": 176}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,122
c
// Copyright 2020 <NAME>. All rights reserved. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file #pragma once #include <string> // File type constexpr const char* PE_X86 = "PE-X86"; constexpr const char* PE_AMD64 = "PE-AMD64"; constexpr const char* PE_ARM64 = ...
39.64
14
(translation_unit) "// Copyright 2020 <NAME>. All rights reserved.\n// Use of this source code is governed by the MIT license that can be\n// found in the LICENSE file\n\n#pragma once\n\n#include <string>\n\n// File type\nconstexpr const char* PE_X86 = "PE-X86";\nconstexpr const char* PE_AMD64 = "PE-AMD64";\ncons...
143
1
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 39.64, "nodes": 89, "errors": 0, "source_hash": "62a59e741dcab05f26fae9225becd2acc852bf902cc82d2215a534b1a8306dc7", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
5,123
c
#ifndef _DISPLAYDEVICECAPSJAVASCRIPT_H_ #define _DISPLAYDEVICECAPSJAVASCRIPT_H_ #include "DisplayDeviceCaps.h" // **************************************** // * DisplayDeviceCapsJavascript class // * -------------------------------------- /** * \file DisplayDeviceCapsJavascript.h * \class DisplayDeviceCapsJavascript ...
28.61
31
(translation_unit) "#ifndef _DISPLAYDEVICECAPSJAVASCRIPT_H_\n#define _DISPLAYDEVICECAPSJAVASCRIPT_H_\n\n#include "DisplayDeviceCaps.h"\n\n\n// ****************************************\n// * DisplayDeviceCapsJavascript class\n// * --------------------------------------\n/**\n* \file DisplayDeviceCapsJavascript.h\n* \cla...
101
4
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 28.61, "nodes": 47, "errors": 0, "source_hash": "ef4168eded97f576ca5905afa051b79587e3b7c38f7c6c25ecb9b3146178815f", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,124
c
/* * lib/gfx/scrollbar.h */ #ifndef SCROLLBAR_H_ #define SCROLLBAR_H_ #include <stdbool.h> #include "controls_definition.h" #include "button.h" #include "string.h" #include "gfxdef.h" //####################################################################################### namespace GI { namespace Screen { namesp...
17.68
137
(translation_unit) "/*\n * lib/gfx/scrollbar.h\n */\n\n#ifndef SCROLLBAR_H_\n#define SCROLLBAR_H_\n\n#include <stdbool.h>\n#include "controls_definition.h"\n#include "button.h"\n#include "string.h"\n#include "gfxdef.h"\n\n//#######################################################################################\nnamesp...
664
12
{"language": "c", "success": true, "metadata": {"lines": 137, "avg_line_length": 17.68, "nodes": 432, "errors": 0, "source_hash": "5013329f7db09beadd044883d539fd9db8ea715c9365e40865353bee1f8fc5aa", "categorized_nodes": 318}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
5,125
c
// // NSBundle+QQResource.h // QQBase // // Created by 子不语 on 2022/3/30. // /// 组件里的资源加载 #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface NSBundle (QQResource) /** 获取文件所在name,默认情况下podName和bundlename相同,传一个即可 @param bundleName bundle名字,就是在resource_bundles里面的名字 @param podName pod的名字 @ret...
21
21
(translation_unit) "//\n// NSBundle+QQResource.h\n// QQBase\n//\n// Created by 子不语 on 2022/3/30.\n//\n\n/// 组件里的资源加载\n\n#import <Foundation/Foundation.h>\n\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface NSBundle (QQResource)\n\n/**\n 获取文件所在name,默认情况下podName和bundlename相同,传一个即可\n \n @param bundleName bundle名字,就是在resource_bu...
62
9
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 21.0, "nodes": 40, "errors": 0, "source_hash": "a605917bf9c89ab6684535b1ccca7cb2d9e9e721a960ed38b0211554a170c0c7", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "undation.h...
5,126
c
/*-------------------------------------------------------------------------- * * ABSTRACT * mdl68 - Download multiple files to a 68000 system. * * USAGE * mdl68 <files> * * EXPLICIT INPUTS * The filenames on the command line. No .dl extension necessary. * * IMPLICIT INPUTS * DLPATH variable in the environm...
26.91
172
(translation_unit) "/*--------------------------------------------------------------------------\n *\n * ABSTRACT\n * mdl68 - Download multiple files to a 68000 system.\n *\n * USAGE\n * mdl68 <files>\n *\n * EXPLICIT INPUTS\n * The filenames on the command line. No .dl extension necessary.\n *\n * IMPLICIT INPUTS\n *...
805
1
{"language": "c", "success": true, "metadata": {"lines": 172, "avg_line_length": 26.91, "nodes": 437, "errors": 0, "source_hash": "3ebc71f08fd79dc44f922adbc20cf175d72586635e8e27ad17adabe65c96d37e", "categorized_nodes": 295}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,127
c
#import <UIKit/UIKit.h> FOUNDATION_EXPORT double Pods_MockTwitterVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_MockTwitterVersionString[];
37
4
(translation_unit) "#import <UIKit/UIKit.h>\n\n\nFOUNDATION_EXPORT double Pods_MockTwitterVersionNumber;\nFOUNDATION_EXPORT const unsigned char Pods_MockTwitterVersionString[];\n\n" (preproc_call) "#import <UIKit/UIKit.h>\n" (preproc_directive) "#import" (preproc_arg) "<UIKit/UIKit.h>" (declaration) "FOUNDA...
23
1
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 37.0, "nodes": 15, "errors": 0, "source_hash": "947c016adb088290feda5e460ff39127db1f9ecd6714189ccee13140bc9e8c0e", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UI...
5,128
c
#ifndef RECT_H #define RECT_H struct Rect { public: // Constructors Rect( float x, float y, float width, float height); Rect(); // Clear method void clear(); // Structure data, public float x; float y; float width; float height; }; #endif
11.5
22
(translation_unit) "#ifndef RECT_H \n#define RECT_H \n \nstruct Rect \n{ \npublic: \n // Constructors \n Rect( float x, float y, float width, float height); \n Rect(); \n \n // Clear method \n void clear(); \n \n // Structure data, public \n float x; \n float y; \n float width; \n float height; \n}; \n \n \n#endif" (...
75
1
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 11.5, "nodes": 48, "errors": 0, "source_hash": "fd2574e882bbad53872c512b5f9cdc1fe782e9308ff9823316af2d0780e36b2c", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef R...
5,129
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/OfficeImport.framework/OfficeImport */ @interface OADDrawableProperties : OADProperties { unsigned int mAspectRatioLocked; OADHyperlink * mClickHyperlink; NSString * mDescription; unsigned int mHasAspectRatioLocked; unsig...
28.93
43
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/OfficeImport.framework/OfficeImport\n */\n\n@interface OADDrawableProperties : OADProperties {\n unsigned int mAspectRatioLocked;\n OADHyperlink * mClickHyperlink;\n NSString * mDescription;\n unsigned int mHas...
409
14
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 28.93, "nodes": 252, "errors": 0, "source_hash": "fac5dea5334384ef4daa425c6d36e145783182c8cc74779c3c1d0e49857966ae", "categorized_nodes": 139}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": ...
5,130
c
/* The MIT License (MIT) * * Copyright (c) 2015 LabCrypto Org. * * 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...
31.06
67
(translation_unit) "/* The MIT License (MIT)\n *\n * Copyright (c) 2015 LabCrypto Org.\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 li...
312
10
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 31.06, "nodes": 180, "errors": 0, "source_hash": "5969aba21d0510d7f925decd1fc855889f03459fe10c4f4ab9675ad0a13b0099", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,131
c
#ifndef _ROS_intera_core_msgs_IOComponentStatus_h #define _ROS_intera_core_msgs_IOComponentStatus_h #include <stdint.h> #include <string.h> #include <stdlib.h> #include "ros/msg.h" #include "intera_core_msgs/IOStatus.h" namespace intera_core_msgs { class IOComponentStatus : public ros::Msg { public: ty...
28.87
52
(translation_unit) "#ifndef _ROS_intera_core_msgs_IOComponentStatus_h\n#define _ROS_intera_core_msgs_IOComponentStatus_h\n\n#include <stdint.h>\n#include <string.h>\n#include <stdlib.h>\n#include "ros/msg.h"\n#include "intera_core_msgs/IOStatus.h"\n\nnamespace intera_core_msgs\n{\n\n class IOComponentStatus : public r...
429
6
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 28.87, "nodes": 270, "errors": 0, "source_hash": "9c6e7f2cece4031cdb4d26e0e72c257e2bdceb400fcf6c0e07929ba084e52152", "categorized_nodes": 191}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,132
c
// // Test.h // Test项目 // // Created by 张大森 on 2017/2/26. // Copyright © 2017年 张大森. All rights reserved. // #import <Foundation/Foundation.h> @interface Test : NSObject + (void)flog; @end
16.45
11
(translation_unit) "//\n// Test.h\n// Test项目\n//\n// Created by 张大森 on 2017/2/26.\n// Copyright © 2017年 张大森. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n@interface Test : NSObject\n+ (void)flog;\n@end\n" (comment) "//" (comment) "// Test.h" (comment) "// Test项目\n//\n" (comment) "/ " (...
35
5
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 16.45, "nodes": 19, "errors": 0, "source_hash": "c83147aeba41bc428daeb16c881186d7552ead91730aa83c91aa957e3cea3fd1", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "/Foundatio...
5,133
c
#ifndef _spellintropage_h_ #define _spellintropage_h_ #include "abssyspage.h" #include "uilib/uilib.h" using namespace uilib; class SpellIntroPage : public BasSysPage { public: SpellIntroPage(); virtual ~SpellIntroPage(); virtual void moveInItem(); virtual void moveOutItem(); void layoutCompleted(...
24.09
23
(translation_unit) "#ifndef _spellintropage_h_\n#define _spellintropage_h_\n#include "abssyspage.h"\n\n#include "uilib/uilib.h"\nusing namespace uilib;\n\nclass SpellIntroPage : public BasSysPage\n{\npublic:\n SpellIntroPage();\n virtual ~SpellIntroPage();\n virtual void moveInItem();\n virtual void moveOut...
171
8
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 24.09, "nodes": 112, "errors": 0, "source_hash": "39ab33063ccca302536f42357562d6236de5cc66212c141104970abf32c314a4", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,134
c
/* * (C) Copyright 1996-2016 ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an in...
25.87
38
(translation_unit) "/*\n * (C) Copyright 1996-2016 ECMWF.\n *\n * This software is licensed under the terms of the Apache Licence Version 2.0\n * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.\n * In applying this licence, ECMWF does not waive the privileges and immunities\n * granted to it by vir...
152
12
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 25.87, "nodes": 69, "errors": 0, "source_hash": "4242139d851166799828ecf57b14ba7f2e9f6abdfab2703bfc7f27d538d4a6bf", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,135
c
/* * cocos2d for iPhone: http://www.cocos2d-iphone.org * * Copyright (c) 2010 <NAME> * Copyright (c) 2011 Zynga Inc. * 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 ...
42.61
80
(translation_unit) "/*\n * cocos2d for iPhone: http://www.cocos2d-iphone.org\n *\n * Copyright (c) 2010 <NAME>\n * Copyright (c) 2011 Zynga Inc.\n * Copyright (c) 2013 <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...
379
40
{"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 42.61, "nodes": 248, "errors": 0, "source_hash": "48db0e28cdd32f7642081af875e063a3fa59d59ac153754e824a644cedcd04be", "categorized_nodes": 130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
5,136
c
//Translation Transformation //Header files for initialization - (given) #include<stdio.h> #include<stdlib.h> #include<GL/glut.h> //function to perform matrix multiplication void mat_multiply(float a[][3], float b[][3], float c[][3]) { for (int i = 0; i < 3; i++) //i = rows of matrix A { for (int j = 0; j < 3; j...
38.6
73
(translation_unit) "//Translation Transformation\n\n//Header files for initialization - (given)\n#include<stdio.h>\n#include<stdlib.h>\n#include<GL/glut.h>\n\n//function to perform matrix multiplication\nvoid mat_multiply(float a[][3], float b[][3], float c[][3])\n{\n for (int i = 0; i < 3; i++) //i = rows of matrix A...
667
0
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 38.6, "nodes": 338, "errors": 0, "source_hash": "c1ef47acf8c71328eee0264fca332b8aac702fd3b6629a6dd3de041ae01cb0d5", "categorized_nodes": 250}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
5,137
c
/* Copyright (C) 2005-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the ...
31.32
60
(translation_unit) "/* Copyright (C) 2005-2015 Free Software Foundation, Inc.\n This file is part of the GNU C Library.\n\n The GNU C Library is free software; you can redistribute it and/or\n modify it under the terms of the GNU Lesser General Public\n License as published by the Free Software Foundation; eith...
232
1
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 31.32, "nodes": 174, "errors": 0, "source_hash": "8f30c843e845e714cb0149ca3b1be3a87d432a847dae49127cc4a73cb64fd9ee", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,138
c
/*************************************************************************************** * * LoRaLinkCrypto.c * * copyright Revised BSD License, see section \ref LICENSE * * copyright (c) 2020, <NAME> <EMAIL> * **************************************************************************************/ #include "L...
34.63
279
(translation_unit) "/***************************************************************************************\n *\n * LoRaLinkCrypto.c\n *\n * copyright Revised BSD License, see section \ref LICENSE\n *\n * copyright (c) 2020, <NAME> <EMAIL>\n *\n ***********************************************************************...
2,231
0
{"language": "c", "success": true, "metadata": {"lines": 279, "avg_line_length": 34.63, "nodes": 1377, "errors": 0, "source_hash": "62a52b84751f893ea375d46c30798142c71ced04b8d4c410ea655878daaff9ca", "categorized_nodes": 1007}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
5,139
c
// // NormalProductDetailScoreItem.h // KidsTC // // Created by 詹平 on 2017/2/4. // Copyright © 2017年 zhanping. All rights reserved. // #import <Foundation/Foundation.h> @interface NormalProductDetailScoreItem : NSObject @property (nonatomic, strong) NSString *key; @property (nonatomic, strong) NSString *ScoreName...
27.69
13
(translation_unit) "//\n// NormalProductDetailScoreItem.h\n// KidsTC\n//\n// Created by 詹平 on 2017/2/4.\n// Copyright © 2017年 zhanping. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NormalProductDetailScoreItem : NSObject\n@property (nonatomic, strong) NSString *key;\n@property (nonato...
70
14
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 27.69, "nodes": 49, "errors": 0, "source_hash": "53fcd961e313ee9b240e3bdd617e7e80cf886e29f25982142e60a52d223b5558", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <Foundat...
5,140
c
#include <stdio.h> #include <errno.h> #include <linux/unistd.h> /* for _syscallX macros/related stuff */ #include <linux/kernel.h> /* for struct sysinfo */ #include <sys/sysinfo.h> long get_uptime() { struct sysinfo s_info; int error = sysinfo(&s_info); if(error != 0) { printf("code...
22.88
24
(translation_unit) "#include <stdio.h>\n#include <errno.h>\n#include <linux/unistd.h> /* for _syscallX macros/related stuff */\n#include <linux/kernel.h> /* for struct sysinfo */\n#include <sys/sysinfo.h>\n\nlong get_uptime()\n{\n struct sysinfo s_info;\n int error = sysinfo(&s_info);\n if(error !=...
164
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 22.88, "nodes": 111, "errors": 0, "source_hash": "39c5bbd1cd4f06e268239e52d720c97d91b248a016ed4fc4b4d640d938c88e4b", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
5,141
c
#ifndef _SPRITE2_STAT_TOP_NODES_H_ #define _SPRITE2_STAT_TOP_NODES_H_ #include <cu/cu_macro.h> #include <cu/cu_stl.h> #include <stdint.h> namespace s2 { class StatTopNodes { public: struct DrawNode { uint32_t id; uint32_t parent_id; int level; uint32_t cost; DrawNode(uint32_t id, uint32_t parent_...
20.1
42
(translation_unit) "#ifndef _SPRITE2_STAT_TOP_NODES_H_\n#define _SPRITE2_STAT_TOP_NODES_H_\n\n#include <cu/cu_macro.h>\n#include <cu/cu_stl.h>\n\n#include <stdint.h>\n\nnamespace s2\n{\n\nclass StatTopNodes\n{ \npublic:\n struct DrawNode\n {\n uint32_t id;\n uint32_t parent_id;\n int level;\n uint32_t cost;\n\...
246
15
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 20.1, "nodes": 150, "errors": 0, "source_hash": "14f29d932a1af47c97f9ee03f1402163b35f4519c1f43353a26780ba5e75a514", "categorized_nodes": 107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,142
c
/** * \file imperative/src/include/megbrain/imperative/ops/io_remote.h * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * * Copyright (c) 2014-2020 Megvii Inc. All rights reserved. * * Unless required by applicable law or agreed to in writing, * software distributed under the License...
32.3
64
(translation_unit) "/**\n * \file imperative/src/include/megbrain/imperative/ops/io_remote.h\n * MegEngine is Licensed under the Apache License, Version 2.0 (the "License")\n *\n * Copyright (c) 2014-2020 Megvii Inc. All rights reserved.\n *\n * Unless required by applicable law or agreed to in writing,\n * software di...
476
26
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 32.3, "nodes": 270, "errors": 0, "source_hash": "52761341f491ddf2c09ac431104916c11854803c6a6ecae38169f669a2669c0b", "categorized_nodes": 200}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
5,143
c
#pragma once #include "Hazel/Hazel.h" namespace Sandbox { class SandboxLayer : public Hazel::Layer { private: std::shared_ptr<Hazel::Renderer2D> renderer; Hazel::SubTexture spriteSheet; std::shared_ptr<Hazel::Scene> scene; Hazel::Entity square; Hazel::Entity camera1; Hazel::Entity camera2; public: ...
23.09
22
(translation_unit) "#pragma once\n\n#include "Hazel/Hazel.h"\n\nnamespace Sandbox\n{\n class SandboxLayer : public Hazel::Layer\n {\n private:\n std::shared_ptr<Hazel::Renderer2D> renderer;\n Hazel::SubTexture spriteSheet;\n std::shared_ptr<Hazel::Scene> scene;\n Hazel::Entity square;\n Hazel::Entity camera1;\n H...
173
11
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 23.09, "nodes": 101, "errors": 0, "source_hash": "c0e7d8de354d07b5a5a976deaf159333d2eed25673466a62472ec698c721ece9", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
5,144
c
// // TABBaseComponent+TABClassicAnimation.h // AnimatedDemo // // Created by tigerAndBull on 2020/5/24. // Copyright © 2020 tigerAndBull. All rights reserved. // #import <UIKit/UIKit.h> #import "TABBaseComponent.h" #import "TABAnimatedChainDefines.h" NS_ASSUME_NONNULL_BEGIN @interface TABBaseComponent (TABClass...
19.54
26
(translation_unit) "//\n// TABBaseComponent+TABClassicAnimation.h\n// AnimatedDemo\n//\n// Created by tigerAndBull on 2020/5/24.\n// Copyright © 2020 tigerAndBull. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "TABBaseComponent.h"\n#import "TABAnimatedChainDefines.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@in...
56
5
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 19.54, "nodes": 32, "errors": 0, "source_hash": "ba62bbd9f643b4f59d066361e9a831886dc02ee69afc3eb4df291f370c011fdc", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
5,145
c
#include "pathfinder.h" /* * Checks, whether user`s input is valid. * 1. wrong number of arguments, while input. * 2. specified file does not exits. * 3. file is empty. * 4. invalid first line. * 5. invalid syntax in one`s line. * 6. invalid number of specified islands. * In case of invalid input, prints msg o...
29.07
57
(translation_unit) "#include "pathfinder.h"\n\n/*\n * Checks, whether user`s input is valid.\n * 1. wrong number of arguments, while input.\n * 2. specified file does not exits.\n * 3. file is empty.\n * 4. invalid first line.\n * 5. invalid syntax in one`s line.\n * 6. invalid number of specified islands.\n * In case ...
552
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 29.07, "nodes": 296, "errors": 0, "source_hash": "22922e045454dd79de9d66837aca16d6d1dec2f13b156cfa982264713c6298e6", "categorized_nodes": 209}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,146
c
//using namespace std; class LOGK { private: public: static double KsNaCl(double T, double P);//NaCl -> Na + Cl static double logKw(double T, double P);//H2O -> H + OH static double logK1(double T, double P);//H2O + CO2 -> HCO3 + H static double logK2(double T, double P);//HCO3 -> CO3 + H static double logK_CO2(d...
31.79
19
(translation_unit) "//using namespace std; \nclass LOGK\n{\nprivate:\npublic:\n static double KsNaCl(double T, double P);//NaCl -> Na + Cl\n static double logKw(double T, double P);//H2O -> H + OH\n static double logK1(double T, double P);//H2O + CO2 -> HCO3 + H\n static double logK2(double T, double P);//HCO3 -> CO3 +...
213
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 31.79, "nodes": 127, "errors": 0, "source_hash": "b787c71f2acff237e70525b3a642c36a14b0105c850f7f3d5659c6638bf18cef", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "c...
5,147
c
#include <cstdio> #include "GPUTypes.h" #ifndef _PIXParser_ #define _PIXParser_ // PIXRun specific structures and id's , see // "PixRunFileFormat.pdf" in doc struct AttributeDescriptor { u32bit ADID; u32bit type; u32bit zero; u8bit *name; u8bit *format; }; struct EventAttributeDeclaration { ...
21.78
98
(translation_unit) "#include <cstdio>\n#include "GPUTypes.h"\n\n#ifndef _PIXParser_\n#define _PIXParser_\n\n\n// PIXRun specific structures and id's , see\n// "PixRunFileFormat.pdf" in doc\nstruct AttributeDescriptor\n{\n u32bit ADID;\n u32bit type;\n u32bit zero;\n u8bit *name;\n u8bit *format;\n};\n\ns...
530
1
{"language": "c", "success": true, "metadata": {"lines": 98, "avg_line_length": 21.78, "nodes": 388, "errors": 0, "source_hash": "4cb0236840bc9ed6a95a45d9c434874272b06d8f20ce77484a6f78dd2902c414", "categorized_nodes": 287}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,148
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "WXPBGeneratedMessage.h" @class CardMiniAppInfo, NSString; @interface CardElementCouponLabel : WXPBGeneratedMessage { } + (void)initialize; // Remaining properties @property(r...
45.21
19
(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 "WXPBGeneratedMessage.h"\n\n@class CardMiniAppInfo, NSString;\n\n@interface CardElementCouponLabel : WXPBGeneratedMessage\n{\n}\n\n+ (void)initialize;\n\...
152
19
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 45.21, "nodes": 93, "errors": 0, "source_hash": "24584e8c2bbe28199b9f272cc3ad36dbc8e9c86c683d4317d51929d47777c4ed", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
5,149
c
#ifndef GAMEOBJECT_H #define GAMEOBJECT_H #include "graphics.h" class GameObject : public sf::Sprite { friend class Graphics; public: enum Type { PC, //player character EPC, //enemy (non) player character NPC,//non player character Other, //other types, such as projectiles ...
28.71
48
(translation_unit) "#ifndef GAMEOBJECT_H\n#define GAMEOBJECT_H\n\n#include "graphics.h"\n\nclass GameObject : public sf::Sprite\n{\n friend class Graphics;\npublic:\n enum Type\n {\n PC, //player character\n EPC, //enemy (non) player character\n NPC,//non player character\n Other, /...
348
21
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 28.71, "nodes": 209, "errors": 0, "source_hash": "12f44371d698b286952676c76072c43acf28d2acb67a565932dcf41513abfbbb", "categorized_nodes": 146}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,150
c
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2011-2017 Red Hat, Inc. */ /* Description: * * This is a reproducer of CVE-2011-0999, which fixed by mainline commit * a7d6e4ecdb7648478ddec76d30d87d03d6e22b31: * * "Transparent hugepages can only be created if rmap is fully * functional. So we m...
25.71
122
(translation_unit) "// SPDX-License-Identifier: GPL-2.0-or-later\n/*\n * Copyright (C) 2011-2017 Red Hat, Inc.\n */\n\n/* Description:\n *\n * This is a reproducer of CVE-2011-0999, which fixed by mainline commit\n * a7d6e4ecdb7648478ddec76d30d87d03d6e22b31:\n *\n * "Transparent hugepages can only be created if rmap i...
751
0
{"language": "c", "success": true, "metadata": {"lines": 122, "avg_line_length": 25.71, "nodes": 451, "errors": 0, "source_hash": "651d7ea9256e0bd0b375424e688afe44318d103002437b26bcdb35471d37df37", "categorized_nodes": 333}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,151
c
#include <stdio.h> #include <netcdf.h> #define CHECK_ERR { \ if (err != NC_NOERR) { \ nerrs++; \ printf("Error at line %d in %s: (%s)\n", \ __LINE__,__FILE__,nc_strerror(err)); \ } \ } #define EXP_ERR(exp) { \ if (err != exp) { \ nerrs++; \ printf("Error at line %d ...
43.49
35
(translation_unit) "#include <stdio.h>\n#include <netcdf.h>\n\n#define CHECK_ERR { \\n if (err != NC_NOERR) { \\n nerrs++; \\n printf("Error at line %d in %s: (%s)\n", \\n __LINE__,__FILE__,nc_strerror(err)); \\n } \\n}\n\n#define EXP_ERR(exp) { \\n if (err != exp) { \\n nerrs++; \\...
365
4
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 43.49, "nodes": 217, "errors": 0, "source_hash": "eaf2fe115135aed78ceaf0698f1cbfbd42ba3056a0aaade57eb9ebd474420888", "categorized_nodes": 154}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,152
c
// // NSURL+Speed.h // FJCategory // // Created by jiangfan on 2017/9/26. // Copyright © 2017年 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface NSURL (Speed) + (NSURL *)URLWithFormat:(NSString *)format, ... NS_FORMAT_FUNCTION(1,2); @end
23.45
11
(translation_unit) "//\n// NSURL+Speed.h\n// FJCategory\n//\n// Created by jiangfan on 2017/9/26.\n// Copyright © 2017年 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NSURL (Speed)\n\n+ (NSURL *)URLWithFormat:(NSString *)format, ... NS_FORMAT_FUNCTION(1,2);\n\n@end\n" (comment...
55
5
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 23.45, "nodes": 31, "errors": 0, "source_hash": "ec94ac660c101b88d50b16e0d8d9684ee33c26e3f92c406d2f24b79ba901b3c0", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
5,153
c
/* * Nome: process.c * Scopo: Mostrare id del processo avviato * Data: 10 Luglio 2020 * Autore: <NAME> * Build: cc -o process process.c -Wall */ // Directive #include "apue.h" // To include getpid() function and other... int main(void){ // Instructions printf("Hello world from process ID %d\n", getpid());...
23.47
15
(translation_unit) "/*\n* Nome: process.c\n* Scopo: Mostrare id del processo avviato\n* Data: 10 Luglio 2020\n* Autore: <NAME>\n* Build: cc -o process process.c -Wall\n*/\n\n// Directive\n #include "apue.h" // To include getpid() function and other...\n\n int main(void){\n // Instructions\n printf("Hello world ...
46
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 23.47, "nodes": 20, "errors": 0, "source_hash": "dee71092ac992d0d73d491042c0e7eb72505f423df3a8e9e00c7a3c8f91922a7", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,154
c
int f = 1; int main(void) { 1 && (f++, 1); 0 || (f++, 1); return f; }
11.17
6
(translation_unit) "int f = 1;\n\nint main(void) {\n 1 && (f++, 1);\n 0 || (f++, 1);\n return f;\n}\n" (declaration) "int f = 1;" (primitive_type) "int" (init_declarator) "f = 1" (identifier) "f" (=) "=" (number_literal) "1" (;) ";" (function_definition) "int main(void) {\n 1 && (f++, ...
52
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 11.17, "nodes": 33, "errors": 0, "source_hash": "25d23c09e14bfbfb579788bc7f95ada25dd2dce0a7a680d9b7c84581abed9a55", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "int f = 1;"...
5,155
c
// // generalProfiler.h // generalProfiler // // Created by Juncheng on 5/24/16. // Copyright © 2016 Juncheng. All rights reserved. // #ifndef generalProfiler_h #define generalProfiler_h #include <stdio.h> #include <stdlib.h> #include <math.h> #include <glib.h> #include <string.h> #include "reader.h" #include "ca...
20.81
64
(translation_unit) "//\n// generalProfiler.h\n// generalProfiler\n//\n// Created by Juncheng on 5/24/16.\n// Copyright © 2016 Juncheng. All rights reserved.\n//\n\n#ifndef generalProfiler_h\n#define generalProfiler_h\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n#include <glib.h>\n#include <string....
242
0
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 20.81, "nodes": 171, "errors": 0, "source_hash": "9aef9613de01f834893f32515d41958c964aa3bde9cc48900da60d1b0f54f6d4", "categorized_nodes": 130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef...
5,156
c
// Copyright(c) 2020 <NAME> // This software is released under the MIT License, see LICENSE. #ifndef V1_XORSHIFT64_H_ #define V1_XORSHIFT64_H_ #include "xorshift.h" typedef struct { Xorshift (*New)(void); // Use xorshift::Delete when delete. } Xorshift64MethodStruct; typedef const Xorshift64MethodStruct* Xorshift6...
35.09
11
(translation_unit) "// Copyright(c) 2020 <NAME>\n// This software is released under the MIT License, see LICENSE.\n#ifndef V1_XORSHIFT64_H_\n#define V1_XORSHIFT64_H_\n\n#include "xorshift.h"\n\ntypedef struct {\n Xorshift (*New)(void); // Use xorshift::Delete when delete.\n} Xorshift64MethodStruct;\ntypedef const Xor...
59
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 35.09, "nodes": 36, "errors": 0, "source_hash": "1ca6b12bfb5fe865283516e79128fa2460c5887c1362728b5a4868d94361d683", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,157
c
/*========================================================================= Program: Visualization Toolkit Module: $RCSfile$ Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distributed WITHOUT ANY WA...
37.4
131
(translation_unit) "/*=========================================================================\n\n Program: Visualization Toolkit\n Module: $RCSfile$\n\n Copyright (c) <NAME>, <NAME>, <NAME>\n All rights reserved.\n See Copyright.txt or http://www.kitware.com/Copyright.htm for details.\n\n This software ...
719
9
{"language": "c", "success": true, "metadata": {"lines": 131, "avg_line_length": 37.4, "nodes": 422, "errors": 0, "source_hash": "6b56c8691d2ed0c76be0b4db1193fb3b558014d34df7989ef077b0d97da9e0b3", "categorized_nodes": 302}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,158
c
/* Created October 16, 1997 by <NAME> and <NAME>. Taken from coord_to_geom.c to create a reusable library. The original code was written by <NAME> and <NAME>. Basic library source for fgetdcar. */ #include <string.h> #include <stdio.h> #include <math.h> #include <ctype.h> #include "geo...
29.11
83
(translation_unit) "/*\n Created October 16, 1997 by <NAME> and <NAME>.\n Taken from coord_to_geom.c to create a reusable library.\n The original code was written by <NAME> and <NAME>.\n\n Basic library source for fgetdcar.\n*/\n\n#include <string.h>\n#include <stdio.h>\n#include <math.h>\n#...
512
0
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 29.11, "nodes": 297, "errors": 0, "source_hash": "421d41fd2a43093924dd63e60533cef8f38891707b17c7e80aacf4b31ad6bd2f", "categorized_nodes": 226}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,159
c
#pragma once #include "stdafx.h" #include "BoardHelperStats.h" #include "LetterCoordinates.h" #include "LetterBoard.h" class BoardHelper { public: BoardHelper(); virtual int getLenght(const char* letterPattern); virtual bool isWithinBounds(LetterBoard board, int x, int y); virtual std::vector<Let...
29.22
27
(translation_unit) "#pragma once \n#include "stdafx.h" \n#include "BoardHelperStats.h" \n#include "LetterCoordinates.h" \n#include "LetterBoard.h" \n \nclass BoardHelper \n{ \npublic: \n BoardHelper(); \n \n virtual int getLenght(const char* letterPattern); \n \n virtual bool isWithinBounds(LetterBoard board, int x, in...
201
9
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 29.22, "nodes": 130, "errors": 0, "source_hash": "7847799cb31a8ce7f8c38b6690560b2138cb8c48bbb3f6e291d1fb8ff4eccf02", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
5,160
c
#pragma once #include <stdint.h> typedef struct { char* buffer; uint32_t offset; uint32_t length; } String; void string_initialize (String*); void string_terminate (String*); void string_clear (String*); int string_push (String*, const char); int string_compar...
32.63
19
(translation_unit) "#pragma once\n#include <stdint.h>\n\n\ntypedef struct\n{\n char* buffer;\n uint32_t offset;\n uint32_t length;\n} String;\n\nvoid string_initialize (String*);\nvoid string_terminate (String*);\nvoid string_clear (String*);\nint string_push (String*, ...
195
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 32.63, "nodes": 134, "errors": 0, "source_hash": "9dd1832c00f99244cc30d9b41fdf0e321c103c0db0edd7a1e4567267fb7b9994", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
5,161
c
// // OHHambugerButtonDemo.h // oneHookLibrary // // Created by <NAME> on 2015-04-25. // Copyright (c) 2015 oneHook inc. All rights reserved. // #import <UIKit/UIKit.h> @interface OHHambugerButtonDemo : UIViewController @end
21.9
10
(translation_unit) "//\n// OHHambugerButtonDemo.h\n// oneHookLibrary\n//\n// Created by <NAME> on 2015-04-25.\n// Copyright (c) 2015 oneHook inc. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface OHHambugerButtonDemo : UIViewController\n\n@end\n" (comment) "//" (comment) "// OHHambugerButtonDem...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.9, "nodes": 9, "errors": 0, "source_hash": "29c5875d7f1a301fc1787a4c1374281b0454607582514604bec6b87a5728d3cf", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UIK...
5,162
c
/* * Copyright (c) 2017-2018 OFFIS Institute for Information Technology * Oldenburg, Germany * * 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://ww...
33.02
54
(translation_unit) "/*\n * Copyright (c) 2017-2018 OFFIS Institute for Information Technology\n * Oldenburg, Germany\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 Lice...
60
1
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 33.02, "nodes": 45, "errors": 0, "source_hash": "a5f0a0659e71af3cf37e0d574da62217e930c62913f5438b860eaed8eba500e1", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,163
c
/***************************************************************** * Copyright (c) 2005 <NAME>, <NAME> * * * * All rights reserved. * * Distributed under the terms of the MIT License. * *****************************************************************/ #ifndef COL...
28.53
30
(translation_unit) "/*****************************************************************\n * Copyright (c) 2005 <NAME>, <NAME> *\n * *\n * All rights reserved. *\n * Distributed under the terms of the MIT License. *\n *****************************************************...
104
4
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 28.53, "nodes": 71, "errors": 0, "source_hash": "216832272340a688c5bae283d2a36a7353a45e062b9ea45f66c0f125eb8a6d7d", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,164
c
#include "ipfs/core/net.h" /** * Do a socket accept * @param listener the listener * @returns true(1) on success, false(0) otherwise */ int ipfs_core_net_accept(struct IpfsListener listener) { //TODO: Implement this return 0; } /** * Listen using a particular protocol * @param node the node * @param protoco...
30.19
37
(translation_unit) "#include "ipfs/core/net.h"\n\n/**\n * Do a socket accept\n * @param listener the listener\n * @returns true(1) on success, false(0) otherwise\n */\nint ipfs_core_net_accept(struct IpfsListener listener) {\n //TODO: Implement this\n return 0;\n}\n\n/**\n * Listen using a particular protocol\n * @para...
145
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 30.19, "nodes": 92, "errors": 0, "source_hash": "a115e9e4602a494ec5f7d8896172b65533ad63e0dcce76ab7afb588e23c4da48", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,165
c
/* * Broadcom BCM590xx PMU * * Copyright 2014 Linaro Limited * Author: <NAME> <<EMAIL>> * * 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 ...
26.93
29
(translation_unit) "/*\n * Broadcom BCM590xx PMU\n *\n * Copyright 2014 Linaro Limited\n * Author: <NAME> <<EMAIL>>\n *\n * This program is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public License as published by the\n * Free Software Foundation; either version 2 ...
81
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 26.93, "nodes": 67, "errors": 0, "source_hash": "1bb1c14ee243df1e15128cea64e849c220a6632bdace57cbadd1302c9087ce93", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,166
c
// // Created by dc on 07/01/18. // #ifndef SUIL_CORS_HPP #define SUIL_CORS_HPP #include <suil/http/routing.h> namespace suil { namespace http { struct Cors { struct Context{ }; void before(Request& req, Response&, Context&); void after(Request&, http::R...
31.76
34
(translation_unit) "//\n// Created by dc on 07/01/18.\n//\n\n#ifndef SUIL_CORS_HPP\n#define SUIL_CORS_HPP\n\n#include <suil/http/routing.h>\n\nnamespace suil {\n namespace http {\n\n struct Cors {\n struct Context{\n };\n\n void before(Request& req, Response&, Context&);\n\n ...
312
22
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 31.76, "nodes": 174, "errors": 0, "source_hash": "7979b41b23d69ef74066d28f9aa114b01a6dbe0346875cc1044329dd7140096c", "categorized_nodes": 131}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,167
c
#ifndef SILVER_RENDERBUS_H #define SILVER_RENDERBUS_H //Header guarding. //Including basic Silver headers. #include "silver_inc.h" //Wrapping all in SLVR namespace. namespace slvr { //Creating GUI render pipeline on the heap. This is globally accessible. extern std::vector<Primitive>* renderObjects; extern std:...
29.6
15
(translation_unit) "#ifndef SILVER_RENDERBUS_H\n#define SILVER_RENDERBUS_H\n//Header guarding.\n\n//Including basic Silver headers.\n#include "silver_inc.h"\n\n//Wrapping all in SLVR namespace.\nnamespace slvr {\n //Creating GUI render pipeline on the heap. This is globally accessible.\n extern std::vector<Primitive>...
71
2
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 29.6, "nodes": 47, "errors": 0, "source_hash": "b9172d71dc490816a601b357a6e5f47bdfde6c684035eaca98d773166355b97d", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef S...
5,168
c
typedef struct uv_tls_s uv_tls_t; typedef struct uv_tls_write_s uv_tls_write_t; typedef void (*uv_tls_write_cb)(uv_tls_write_t* req, int status); typedef uv_buf_t (*uv_tls_alloc_cb)(uv_tls_t* tls, size_t suggested_size); typedef void (*uv_tls_read_cb)(uv_tls_t* tls, ssize_t nread, uv_buf_t buf); struct uv_tls_write_s...
29.54
39
(translation_unit) "typedef struct uv_tls_s uv_tls_t;\ntypedef struct uv_tls_write_s uv_tls_write_t;\n\ntypedef void (*uv_tls_write_cb)(uv_tls_write_t* req, int status);\ntypedef uv_buf_t (*uv_tls_alloc_cb)(uv_tls_t* tls, size_t suggested_size);\ntypedef void (*uv_tls_read_cb)(uv_tls_t* tls, ssize_t nread, uv_buf_t buf...
325
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 29.54, "nodes": 248, "errors": 0, "source_hash": "f6392da0276e0e9da4fb89835da48e02e03b15c594251f32a2f806a5ee34b9d6", "categorized_nodes": 160}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "type...
5,169
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/WebCore.framework/WebCore */ @interface WebSimpleLayer : CALayer - (id)actionForKey:(id)arg1; - (void)display; - (void)drawInContext:(struct CGContext { }*)arg1; - (void)setNeedsDisplay; - (void)setNeedsDisplayInRect:(struct CGRect { struct C...
42.2
10
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/WebCore.framework/WebCore\n */\n\n@interface WebSimpleLayer : CALayer\n\n- (id)actionForKey:(id)arg1;\n- (void)display;\n- (void)drawInContext:(struct CGContext { }*)arg1;\n- (void)setNeedsDisplay;\n- (void)setNeedsDisplayIn...
129
9
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 42.2, "nodes": 76, "errors": 0, "source_hash": "72db3aa5fb2e82744850ee8fa88332bcd100ad41c53b4361ea515ebdf89c3b19", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface WebSim...
5,170
c
#import "MOBProjection.h" @interface MOBProjectionEPSG6407 : MOBProjection @end
25.67
3
(translation_unit) "#import "MOBProjection.h"\n\n@interface MOBProjectionEPSG6407 : MOBProjection\n\n@end\n" (preproc_call) "#import "MOBProjection.h"\n" (preproc_directive) "#import" (preproc_arg) ""MOBProjection.h"" (ERROR) "@interface MOBProjectionEPSG6407 : MOBProjection\n\n@end" (ERROR) "@" (ty...
12
3
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 25.67, "nodes": 9, "errors": 0, "source_hash": "22e02aaa00628446b2355b6a0fbbcf19382d6a03824730045811112062d7857a", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"MO...
5,171
c
#ifndef DD_OPENTRACING_LIMITER_H #define DD_OPENTRACING_LIMITER_H #include <mutex> #include <vector> #include "clock.h" namespace datadog { namespace opentracing { struct LimitResult { bool allowed; double effective_rate; }; class Limiter { public: Limiter(TimeProvider clock, long max_tokens, double refresh_...
26.82
34
(translation_unit) "#ifndef DD_OPENTRACING_LIMITER_H\n#define DD_OPENTRACING_LIMITER_H\n\n#include <mutex>\n#include <vector>\n#include "clock.h"\n\nnamespace datadog {\nnamespace opentracing {\n\nstruct LimitResult {\n bool allowed;\n double effective_rate;\n};\n\nclass Limiter {\n public:\n Limiter(TimeProvider cl...
226
14
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 26.82, "nodes": 138, "errors": 0, "source_hash": "2c3f97b029385eca8188f6b89d57cf4f9014edba8510fbca8830959548653a36", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,172
c
#include <stdio.h> #include "libC/c.generated.h" void funcc(void) { #ifdef C printf("C defined\n"); #endif printf("GLOBAL_EXTRA: %d\n", GLOBAL_EXTRA); printf("GLOBAL_EXTRA_OTHER: %d\n", GLOBAL_EXTRA_OTHER); printf("c\n"); printf("gen: %d\n", gen); }
20.67
12
(translation_unit) "#include <stdio.h>\n#include "libC/c.generated.h"\n\nvoid funcc(void)\n{\n#ifdef C\n printf("C defined\n");\n#endif\n printf("GLOBAL_EXTRA: %d\n", GLOBAL_EXTRA);\n printf("GLOBAL_EXTRA_OTHER: %d\n", GLOBAL_EXTRA_OTHER);\n printf("c\n");\n printf("gen: %d\n", gen);\n}\n" (preproc_include) "#in...
92
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 20.67, "nodes": 45, "errors": 0, "source_hash": "b3781220058efaac74da6105476ab6739ccf70966b3225bc4084404baffd4868", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,173
c
inherit "/std/weapon"; create() { ::create(); set_id(({ "sword", "broadsword", "chinese broadsword" })); set_name("broadsword"); set_short("%^YELLOW%^Chinese broadsword"); set_long( "This broadsword is curved and a bit heavier then regular broadswords." ); set_weight(10); set_size(2); ...
24.06
16
(translation_unit) "inherit "/std/weapon";\n\ncreate() {\n ::create();\n set_id(({ "sword", "broadsword", "chinese broadsword" }));\n set_name("broadsword");\n set_short("%^YELLOW%^Chinese broadsword");\n set_long(\n "This broadsword is curved and a bit heavier then regular broadswords."\n );\n se...
151
2
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 24.06, "nodes": 58, "errors": 0, "source_hash": "f4d0c26017dfa9f0477b4120fa9f396c6c85a990252977d58e8cbc35cf237f29", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "concatenated_string", "text": "in...
5,174
c
#include <stdio.h> static int guess = 0; void guess_num(void); int main(void) { printf("Enter a number and guess.\n"); scanf("%d", &guess); while (guess != 45) { guess_num(); } puts("Done"); return 0; } void guess_num(void) { printf("Wrong number, again."); scanf("%d", &guess); }
17.81
16
(translation_unit) "#include <stdio.h>\n\nstatic int guess = 0;\n\nvoid guess_num(void);\n\nint main(void) {\n printf("Enter a number and guess.\n");\n scanf("%d", &guess);\n\n while (guess != 45) {\n guess_num();\n }\n\n puts("Done");\n\n return 0;\n}\n\nvoid guess_num(void) {\n printf("Wrong number, again."...
134
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 17.81, "nodes": 66, "errors": 0, "source_hash": "15a1e4d26eaea40a092d0bbbafd18513903290c693c46ff63dd0937252833971", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,175
c
// Compilar con gcc -o executable.out code.c -lm // 1. Preparar el programa. // 1.1. Importar librerías. #include <stdio.h> #include <stdlib.h> #include <math.h> // 1.2. Definir funciones. // 1.2.1. f(x). float f(float x); // 1.2.2. f'(x). float df(float x); // 1.2.3. NewtonRaphson(). void NewtonRaphson(...
32.7
76
(translation_unit) "// Compilar con gcc -o executable.out code.c -lm\n\n // 1. Preparar el programa.\n // 1.1. Importar librerías.\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n // 1.2. Definir funciones.\n // 1.2.1. f(x).\nfloat f(float x);\n // 1.2.2. f'(x).\nfloat df(float x);\n // 1.2.3. Newt...
553
0
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 32.7, "nodes": 313, "errors": 0, "source_hash": "b6ed5d69caf6c64586c59cffb022cf9f114434a1ee7613b3079334529701608f", "categorized_nodes": 214}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "inclu...
5,176
c
#import "MOBProjection.h" @interface MOBProjectionEPSG7400 : MOBProjection @end
25.67
3
(translation_unit) "#import "MOBProjection.h"\n\n@interface MOBProjectionEPSG7400 : MOBProjection\n\n@end\n" (preproc_call) "#import "MOBProjection.h"\n" (preproc_directive) "#import" (preproc_arg) ""MOBProjection.h"" (ERROR) "@interface MOBProjectionEPSG7400 : MOBProjection\n\n@end" (ERROR) "@" (ty...
12
3
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 25.67, "nodes": 9, "errors": 0, "source_hash": "75e8ce990f7fc5e1430e4de5ce62ec0d32856764906ec4a616472fc4d6042e44", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"MO...
5,177
c
// Author: <NAME> // E-mail: <EMAIL> // compiling & running // clang -Xpreprocessor -fopenmp helloworld.c -lomp // ./a.out #include <stdlib.h> // rand, malloc, calloc and free. #include <stdio.h> // printf #include <math.h> #include <time.h> #include <omp.h> int main() { #pragma omp parallel { int ID = om...
18.69
26
(translation_unit) "// Author: <NAME>\n// E-mail: <EMAIL>\n\n// compiling & running\n// clang -Xpreprocessor -fopenmp helloworld.c -lomp\n// ./a.out\n\n\n#include <stdlib.h> // rand, malloc, calloc and free.\n#include <stdio.h> // printf\n#include <math.h>\n#include <time.h>\n#include <omp.h>\n\n\nint main()\n{\n#prag...
82
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 18.69, "nodes": 42, "errors": 0, "source_hash": "f892853ca8d747f5d97aa9b24fc8f79339c55ebe29dbf54bbc38175379e6fecd", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,178
c
// Chained comparisons do not work as expected in C (but do work as expected in // Python). // // $ gcc -o 30-comp 30-comp.c // $ ./30-comp #include <stdio.h> int main() { int x = 10; if (1 < x < 5) { printf("Really?\n"); } }
18.25
12
(translation_unit) "// Chained comparisons do not work as expected in C (but do work as expected in\n// Python).\n//\n// $ gcc -o 30-comp 30-comp.c\n// $ ./30-comp\n\n#include <stdio.h>\n\nint main() {\n int x = 10;\n if (1 < x < 5) {\n printf("Really?\n");\n }\n}\n" (comment) "// Chained comparisons do not work as ...
53
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 18.25, "nodes": 28, "errors": 0, "source_hash": "7cbf52116f30cdae3b2f2a34b5231a9a7ded5a720de01772a9932cf3c1fa571c", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,179
c
#include "cerberus.h" /* PR tree-optimization/78720 */ long int foo (signed char x) { return x < 0 ? 0x80000L : 0L; } long int bar (signed char x) { return x < 0 ? 0x80L : 0L; } long int baz (signed char x) { return x < 0 ? 0x20L : 0L; } int main (void) { if (foo (-1) != 0x80000L || bar (-1) != 0x80L ||...
17.88
26
(translation_unit) "#include "cerberus.h"\n/* PR tree-optimization/78720 */\n\n long int\nfoo (signed char x)\n{\n return x < 0 ? 0x80000L : 0L;\n}\n\n long int\nbar (signed char x)\n{\n return x < 0 ? 0x80L : 0L;\n}\n\n long int\nbaz (signed char x)\n{\n return x < 0 ? 0x20L : 0L;\n}\n\nint \nmain (void)\n{\n if (...
220
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 17.88, "nodes": 159, "errors": 0, "source_hash": "30dea7192d044c604249ff79165561435a53dfc6b6feaa1f29f308107e84cea1", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,180
c
/* * NetworkTableClient.h * * Created on: Nov 3, 2012 * Author: <NAME> */ #ifndef NETWORKTABLECLIENT_H_ #define NETWORKTABLECLIENT_H_ class NetworkTableClient; #include "networktables2/NetworkTableNode.h" #include "networktables2/client/ClientConnectionAdapter.h" #include "networktables2/WriteManager.h" #...
24.4
45
(translation_unit) "/*\n * NetworkTableClient.h\n *\n * Created on: Nov 3, 2012\n * Author: <NAME>\n */\n\n#ifndef NETWORKTABLECLIENT_H_\n#define NETWORKTABLECLIENT_H_\n\nclass NetworkTableClient;\n\n#include "networktables2/NetworkTableNode.h"\n#include "networktables2/client/ClientConnectionAdapter.h"\n#include...
147
1
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 24.4, "nodes": 80, "errors": 0, "source_hash": "baefed2e1b39bfd08bedcaba20dc48d152f4b93598c754d9848f8d2e25430e82", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef N...
5,181
c
// // ContentNewParser.h // AFNetworking iOS Example // // Created by dshy1234 on 15/4/20. // Copyright (c) 2015年 Gowalla. All rights reserved. // #import <Foundation/Foundation.h> @interface ContentNewParser : NSObject{ int rc; NSString *rd; NSDictionary *body; } - (int)getHeaderValue; - (NSString *...
20.53
19
(translation_unit) "//\n// ContentNewParser.h\n// AFNetworking iOS Example\n//\n// Created by dshy1234 on 15/4/20.\n// Copyright (c) 2015年 Gowalla. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface ContentNewParser : NSObject{\n int rc;\n NSString *rd;\n NSDictionary *body;\n}\n- ...
103
6
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 20.53, "nodes": 56, "errors": 0, "source_hash": "f0f0206b560894a14ffdf7364a3b33fa38c798bf00ea927e8cd0a8114fd5161e", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <Fo...
5,182
c
// // PhotoScalableView.h // EzmCloud // // Created by Phil on 2018/1/26. // Copyright © 2018年 EnGenius. All rights reserved. // #import <UIKit/UIKit.h> @interface PhotoScalableView : UIScrollView @property UIImageView* imageView; - (void)resetZoom; @end
20.58
12
(translation_unit) "//\n// PhotoScalableView.h\n// EzmCloud\n//\n// Created by Phil on 2018/1/26.\n// Copyright © 2018年 EnGenius. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface PhotoScalableView : UIScrollView\n\n@property UIImageView* imageView;\n\n- (void)resetZoom;\n\n@end\n" (comment) "//" ...
41
6
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 20.58, "nodes": 25, "errors": 0, "source_hash": "3e4fd4815e9b9552c99454ec467db2db2250cc44ff9811196b2699a1192d5812", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
5,183
c
#include <stdlib.h> #include <string.h> #include <tree_sitter/parser.h> // Order must match grammar.js external enum TokenType { NPC_NAME, }; struct npc_name_str { char name[24 * 2]; // 24 name + 24 unique }; void *tree_sitter_hercscript_external_scanner_create() { /* Initialize and return a structure us...
27.07
61
(translation_unit) "#include <stdlib.h>\n#include <string.h>\n#include <tree_sitter/parser.h>\n\n// Order must match grammar.js external\nenum TokenType\n{\n NPC_NAME,\n};\n\nstruct npc_name_str {\n char name[24 * 2]; // 24 name + 24 unique\n};\n\nvoid *tree_sitter_hercscript_external_scanner_create()\n{\n /* ...
430
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 27.07, "nodes": 280, "errors": 0, "source_hash": "16d282a4b546023e470324aa20c634bf8ce3a728436ef80bcbe3e0c5962b621a", "categorized_nodes": 188}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,184
c
/* * PPC32 code to handle Linux booting another kernel. * * Copyright (C) 2002-2003 <NAME> <<EMAIL>> * GameCube/ppc32 port Copyright (C) 2004 <NAME> * Copyright (C) 2005 IBM Corporation. * * This source code is licensed under the GNU General Public License, * Version 2. See the file COPYING for more details. ...
34.26
58
(translation_unit) "/*\n * PPC32 code to handle Linux booting another kernel.\n *\n * Copyright (C) 2002-2003 <NAME> <<EMAIL>>\n * GameCube/ppc32 port Copyright (C) 2004 <NAME>\n * Copyright (C) 2005 IBM Corporation.\n *\n * This source code is licensed under the GNU General Public License,\n * Version 2. See the fil...
278
0
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 34.26, "nodes": 180, "errors": 0, "source_hash": "dce795021b6cb104e181154ec1dc09629118c890655f07ae4f29d5a4b50241bb", "categorized_nodes": 122}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,185
c
// // Use this file to import your target's public headers that you would like to expose to Swift. // #import "C++_Wrapper.h"
30.75
4
(translation_unit) "//\n// Use this file to import your target's public headers that you would like to expose to Swift.\n//\n\n#import "C++_Wrapper.h"\n" (comment) "//" (comment) "// Use this file to import your target's public headers that you would like to expose to Swift." (comment) "//" (preproc_call) "#i...
7
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 30.75, "nodes": 3, "errors": 0, "source_hash": "3e03b40df1f7cd80b89cf761d9a0e54d97a3eae2d9eddf548d57971ee3282ddd", "categorized_nodes": 1}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"C+...
5,186
c
// Ejemplo para blitear todos los planos de un gráfico de una sola operación // El gráfico de los tiles tiene un tamaño de 208x112x4 planos, más su máscara // Para usar con la herramienta: http://aminet.net/package/gfx/conv/iff2bitplanes #include <stdlib.h> #include <stdio.h> #include <string.h> #include <proto/exec....
28.21
248
(translation_unit) "// Ejemplo para blitear todos los planos de un gráfico de una sola operación\n// El gráfico de los tiles tiene un tamaño de 208x112x4 planos, más su máscara\n// Para usar con la herramienta: http://aminet.net/package/gfx/conv/iff2bitplanes\n\n#include <stdlib.h>\n#include <stdio.h>\n#include <string...
1,611
1
{"language": "c", "success": true, "metadata": {"lines": 248, "avg_line_length": 28.21, "nodes": 1041, "errors": 0, "source_hash": "6f025653a188daa5eca8d056694e29997811a11b9e826e9b317ea5d82e73424c", "categorized_nodes": 750}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "de...
5,187
c
/* -------------------------------------------------------------------------- * * File XMKnight.h * Description XMKnight * Author <NAME> * Contact <EMAIL> * * -------------------------------------------------------------------------- * * Copyright...
37.13
45
(translation_unit) "/* --------------------------------------------------------------------------\n *\n * File XMKnight.h\n * Description XMKnight\n * Author <NAME>\n * Contact <EMAIL>\n * \n * --------------------------------------------------------------------------...
98
4
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 37.13, "nodes": 62, "errors": 0, "source_hash": "316c104773441fdf66dd086ccbe9dffb63c282d2a62eea4b48aa305c1bad57ef", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,188
c
/* * Copyright (c) 2021 EPAM Systems * * SPDX-License-Identifier: Apache-2.0 */ #ifndef __XEN_EVENTS_H__ #define __XEN_EVENTS_H__ #include <xen/public/event_channel.h> void notify_evtchn(evtchn_port_t port); #endif /* __XEN_EVENTS_H__ */
23.2
10
(translation_unit) "/*\n * Copyright (c) 2021 EPAM Systems\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n#ifndef __XEN_EVENTS_H__\n#define __XEN_EVENTS_H__\n\n#include <xen/public/event_channel.h>\n\nvoid notify_evtchn(evtchn_port_t port);\n\n#endif /* __XEN_EVENTS_H__ */\n" (comment) "/*\n * Copyright (c) 2021 E...
24
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 23.2, "nodes": 18, "errors": 0, "source_hash": "f24d953ad526f3f8d9069803b796dfe889e89b06aaf0989bd20aed64936efdbd", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
5,189
c
#include "sm3.h" static unsigned char message_buffer[64] = {0}; static unsigned int hash[8] = {0}; static unsigned int T[64] = {0}; void out_hex() { unsigned int i = 0; for (i = 0; i < 8; i++) { printf("%08x ", hash[i]); } printf("\n"); } void intToString(unsigned char *out_hash) { int i=0; for (i = 0; i < ...
20.15
175
(translation_unit) "#include "sm3.h"\n\nstatic unsigned char message_buffer[64] = {0};\nstatic unsigned int hash[8] = {0};\nstatic unsigned int T[64] = {0};\n\nvoid out_hex()\n{\n unsigned int i = 0;\n for (i = 0; i < 8; i++)\n {\n printf("%08x ", hash[i]);\n }\n printf("\n");\n}\n\nvoid intToString(unsigned char *out...
2,026
0
{"language": "c", "success": true, "metadata": {"lines": 175, "avg_line_length": 20.15, "nodes": 1294, "errors": 0, "source_hash": "705cea212a9b12d2431869508198e4b64178c4d9845f52bedc135d9d158c61bc", "categorized_nodes": 954}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
5,190
c
// <NAME> // Nov 8, 2018 - Dec. 15, 2018 #pragma once #ifndef ENEMY_H #define ENEMY_H #include <iostream> using namespace std; /* Enemy * *********************************** * -string enemyType * * -string currentWeapon * * -string characteristic...
28.29
79
(translation_unit) "// <NAME> \n// Nov 8, 2018 - Dec. 15, 2018 \n \n#pragma once \n#ifndef ENEMY_H \n#define ENEMY_H \n#include <iostream> \nusing namespace std; \n \n \n/* Enemy * \n *********************************** \n * -string enemyType * \n * -string currentWeapon ...
241
3
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 28.29, "nodes": 156, "errors": 0, "source_hash": "4d0cfbf80d52b628308a11029246432793a85dec96b6cd4cc88723ee865311a3", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
5,191
c
#include <stdio.h> int main () { char nome[120]; gets(nome); printf("Seja muito bem-vindo %s\n", nome); return 0; }
14
8
(translation_unit) "#include <stdio.h>\n\nint main ()\n{\n char nome[120];\n gets(nome);\n printf("Seja muito bem-vindo %s\n", nome);\n return 0;\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (function_definition) "int main ()\n{\n char nome[120];\n get...
48
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 14.0, "nodes": 25, "errors": 0, "source_hash": "32bb5556650f544065906a084ab0f37e4e9086bde3916f78a488efd706582c39", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
5,192
c
#pragma once #include "IComponent.h" namespace PM3D { class GameObjectComponent : public IComponent<GameObjectComponent> { public: virtual ~GameObjectComponent() = default; void OnAttached(ComponentObject<GameObjectComponent>& game_object) override { go_ = &game_object; }; void OnDetached(ComponentObj...
31.71
21
(translation_unit) "#pragma once\n#include "IComponent.h"\nnamespace PM3D\n{\n class GameObjectComponent : public IComponent<GameObjectComponent>\n {\n public:\n virtual ~GameObjectComponent() = default;\n void OnAttached(ComponentObject<GameObjectComponent>& game_object) override { go_ = &game_object; };\n ...
220
6
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 31.71, "nodes": 136, "errors": 0, "source_hash": "a92c9816017b5140eb859efacd146551a83e02209763ec502498b29e57cf7cc8", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
5,193
c
/* Copyright (c) 2017-2020 Origin Quantum Computing. All Right Reserved. Licensed under the Apache License 2.0 Quanatum Fourier transform */ #ifndef BASE_CIRCUIT_H #define BASE_CIRCUIT_H #include "Core/Core.h" QPANDA_BEGIN /** * @brief Quantum Fourier Transform * @ingroup Base_QCircuit * @param[in] Quantum bit ...
26.76
114
(translation_unit) "/*\nCopyright (c) 2017-2020 Origin Quantum Computing. All Right Reserved.\nLicensed under the Apache License 2.0\n\nQuanatum Fourier transform\n\n*/\n\n#ifndef BASE_CIRCUIT_H\n#define BASE_CIRCUIT_H\n\n#include "Core/Core.h"\n\nQPANDA_BEGIN\n\n/**\n* @brief Quantum Fourier Transform\n* @ingroup Ba...
745
11
{"language": "c", "success": true, "metadata": {"lines": 114, "avg_line_length": 26.76, "nodes": 469, "errors": 0, "source_hash": "58f119a0bd6da799e68780e579e0e8071068854ab9cb4b4047ee7aa0c2544df2", "categorized_nodes": 339}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
5,194
c
/* * This header is generated by classdump-dyld 1.0 * on Saturday, June 1, 2019 at 6:50:33 PM Mountain Standard Time * Operating System: Version 12.1.1 (Build 16C5050a) * Image Source: /System/Library/PrivateFrameworks/ActivitySharing.framework/ActivitySharing * classdump-dyld is licensed under GPLv3, Copyright © 2013-...
36.38
58
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Saturday, June 1, 2019 at 6:50:33 PM Mountain Standard Time\n* Operating System: Version 12.1.1 (Build 16C5050a)\n* Image Source: /System/Library/PrivateFrameworks/ActivitySharing.framework/ActivitySharing\n* classdump-dyld is licensed under...
638
47
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 36.38, "nodes": 382, "errors": 0, "source_hash": "0381e41b19ee6e4f46800a3db27cd2ea9849bcac1ec4662629260e2a63c31421", "categorized_nodes": 239}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import ...
5,195
c
// // AddTimerViewController.h // ThermostatDevicePro // // Created by lyric on 2017/6/12. // Copyright © 2017年 lyric. All rights reserved. // #import "BaseViewController.h" @interface AddTimerViewController : BaseViewController @property(nonatomic,assign)NSInteger viewType;//0.表示开关定时,1表示阶段定时 @property(nonatomic...
29.75
12
(translation_unit) "//\n// AddTimerViewController.h\n// ThermostatDevicePro\n//\n// Created by lyric on 2017/6/12.\n// Copyright © 2017年 lyric. All rights reserved.\n//\n\n#import "BaseViewController.h"\n\n@interface AddTimerViewController : BaseViewController\n\n@property(nonatomic,assign)NSInteger viewType;//0.表示...
52
10
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 29.75, "nodes": 33, "errors": 0, "source_hash": "53412d1d6849dfd994d2d413128856ed15512d4104bf007ff5014170890b93cb", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"Ba...
5,196
c
#include"foo1.h" #include"foo2.h" int main(void) { return foo1() + foo2(); }
15.2
5
(translation_unit) "#include"foo1.h"\n#include"foo2.h"\n\nint main(void) {\n return foo1() + foo2();\n}\n" (preproc_include) "#include"foo1.h"\n" (#include) "#include" (string_literal) ""foo1.h"" (") """ (string_content) "foo1.h" (") """ (preproc_include) "#include"foo2.h"\n" (#incl...
40
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 15.2, "nodes": 22, "errors": 0, "source_hash": "bc8dd48cbe73b807154e377b074588410a8a13dedb02501e2a4d30339b8d9407", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
5,197
c
/* getroot.c: get the root dentry for an NFS mount * * Copyright (C) 2006 Red Hat, Inc. All Rights Reserved. * Written by <NAME> (<EMAIL>) * * 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...
28.58
119
(translation_unit) "/* getroot.c: get the root dentry for an NFS mount\n *\n * Copyright (C) 2006 Red Hat, Inc. All Rights Reserved.\n * Written by <NAME> (<EMAIL>)\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * as published by t...
743
0
{"language": "c", "success": true, "metadata": {"lines": 119, "avg_line_length": 28.58, "nodes": 475, "errors": 0, "source_hash": "c9cc1aff919e5c287f4d219261232bde1f02fcb99381f556b3bbb52d890ddeda", "categorized_nodes": 364}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,198
c
#include <algorithm-block.h> namespace cryptian { namespace algorithm { class Rc2 : public AlgorithmBlock { private: union block { unsigned char uc[8]; unsigned short us[4]; unsigned int ui[2]; }; union key_block { unsigned char uc[128]; unsigned short us[64]; ...
23.75
28
(translation_unit) "#include <algorithm-block.h>\n\nnamespace cryptian {\n\nnamespace algorithm {\n\nclass Rc2 : public AlgorithmBlock {\nprivate:\n union block {\n unsigned char uc[8];\n unsigned short us[4];\n unsigned int ui[2];\n };\n\n union key_block {\n unsigned char uc[128];...
255
9
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 23.75, "nodes": 149, "errors": 0, "source_hash": "ede83485440da3d44a035f9ae20527de88b15e98ed0e8caff578696f2e9610ad", "categorized_nodes": 96}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
5,199