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
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
35.36
33
(translation_unit) "/**\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2....
68
2
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 35.36, "nodes": 46, "errors": 0, "source_hash": "02177f5edefb17cd91550097cd698f445d488485c0b7fc4af7c55fe06282830a", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,800
c
/* * * ChartLineSerie.h * * Written by <NAME> (<EMAIL>) * * * * This code may be used for any non-commercial and commercial purposes in a compiled form. * The code may be redistributed as long as it remains unmodified and providing that the * author name and this disclaimer remain intact. The sources can be ...
31.36
105
(translation_unit) "/*\n *\n * ChartLineSerie.h\n *\n * Written by <NAME> (<EMAIL>)\n *\n *\n *\n * This code may be used for any non-commercial and commercial purposes in a compiled form.\n * The code may be redistributed as long as it remains unmodified and providing that the \n * author name and this disclaimer rema...
314
13
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 31.36, "nodes": 183, "errors": 0, "source_hash": "490952c5421bb4d769feb44dd8576c32edbe6fe1846c0bf048b95968f7fa5957", "categorized_nodes": 118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !def...
79,801
c
/*- * Copyright (c) 1983, 1993 * The Regents of the University of California. All rights reserved. * * %sccs.include.proprietary.c% */ #ifndef lint static char sccsid[] = "@(#)subr.c 8.1 (Berkeley) 06/04/93"; #endif /* not lint */ #include <stdio.h> #include "con.h" abval(q) { return (q>=0 ? q : -q); } xconv ...
14.19
112
(translation_unit) "/*-\n * Copyright (c) 1983, 1993\n * The Regents of the University of California. All rights reserved.\n *\n * %sccs.include.proprietary.c%\n */\n\n#ifndef lint\nstatic char sccsid[] = "@(#)subr.c 8.1 (Berkeley) 06/04/93";\n#endif /* not lint */\n\n#include <stdio.h>\n#include "con.h"\nabval(q)\n{\...
782
0
{"language": "c", "success": true, "metadata": {"lines": 112, "avg_line_length": 14.19, "nodes": 459, "errors": 0, "source_hash": "af4ac3e81438995c07b29a165ace215c580940281a97f8e202c5300b5f53d652", "categorized_nodes": 340}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
79,802
c
#ifndef GUI_DISPLAY_H #define GUI_DISPLAY_H // TODO : Coding style : 4.1 max 5 fcts void on_center_image_size_change(GtkWidget *widget, GtkAllocation *allocation, void *data); void reset_modules(struct UI *ui); void display_images(struct UI *ui, char* filename); void reset_image_info(struct UI *ui); void relo...
40.31
13
(translation_unit) "#ifndef GUI_DISPLAY_H\n#define GUI_DISPLAY_H\n\n// TODO : Coding style : 4.1 max 5 fcts\n\nvoid on_center_image_size_change(GtkWidget *widget,\n GtkAllocation *allocation, void *data);\n\nvoid reset_modules(struct UI *ui);\n\nvoid display_images(struct UI *ui, char* filename);\n\nvoid reset_image...
147
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 40.31, "nodes": 116, "errors": 0, "source_hash": "a7bb8ffc178dd6a7850fa7589a72b17015f76ed88ab6f42b165ed4877d8ff3db", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,803
c
#pragma once #include "Publish/KConfig.h" #include <memory> #include <string> enum ScriptType { ST_PYTHON27 }; struct IKScriptCore { public: virtual ~IKScriptCore() {} virtual bool Init() = 0; virtual bool UnInit() = 0; virtual bool RunScriptFromPath(const char* pPath) = 0; virtual bool RunScriptFromString(con...
23.11
19
(translation_unit) "#pragma once\n#include "Publish/KConfig.h"\n#include <memory>\n#include <string>\n\nenum ScriptType\n{\n ST_PYTHON27\n};\n\nstruct IKScriptCore\n{\npublic:\n virtual ~IKScriptCore() {}\n\n virtual bool Init() = 0;\n virtual bool UnInit() = 0;\n virtual bool RunScriptFromPath(const char* pPath) = 0;\...
134
10
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 23.11, "nodes": 95, "errors": 0, "source_hash": "e58d63ba5505aa23ae48ceb329b61428294dc979668cf2a3e7548b7cee3221cf", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
79,804
c
// RUN: clang-cc %s int abc (const float x) { return 1; }
14
4
(translation_unit) "// RUN: clang-cc %s\nint abc (const float x) {\n return 1;\n}\n\n" (comment) "// RUN: clang-cc %s" (function_definition) "int abc (const float x) {\n return 1;\n}" (primitive_type) "int" (function_declarator) "abc (const float x)" (identifier) "abc" (parameter_list) "(const...
21
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 14.0, "nodes": 10, "errors": 0, "source_hash": "e7b51722884d415f19321d20033abf2ae41146f3884429e8cda243fc7a43e907", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "int a...
79,805
c
//----------------------------------------------------------------------------- // <NAME>, <NAME>, <NAME>, <NAME>, and // <NAME> // // Copyright (C) 2001, All Rights Reserved. //----------------------------------------------------------------------------- // 8051 Instruction Set Simulator // Version 1.4 ...
30.38
116
(translation_unit) "//----------------------------------------------------------------------------- \n \n// <NAME>, <NAME>, <NAME>, <NAME>, and \n// <NAME> \n// \n// Copyright (C) 2001, All Rights Reserved. \n \n//----------------------------------------------------------------------------- \n \n// 8051 Instruction Set...
894
7
{"language": "c", "success": true, "metadata": {"lines": 116, "avg_line_length": 30.38, "nodes": 572, "errors": 0, "source_hash": "56dd636680c46850d62c58ad52fe39025c0861f1c95ac5148cf617064552eff8", "categorized_nodes": 431}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
79,806
c
#pragma once namespace anx{ class projector{ wnt::c_r<IDirect3D9> origin; wnt::c_r<IDirect3DDevice9> device; wnt::c_r<ID3DXFont> font; wnt::s_r<x::allocator> allocator; std::vector<wnt::s_r<image>> scene; std::vector<wnt::s_r<board>> boards; projector(IDirect3D9 *origin, IDirect3DDevice9 *device, ...
29.32
31
(translation_unit) "#pragma once\nnamespace anx{\n class projector{\n wnt::c_r<IDirect3D9> origin;\n wnt::c_r<IDirect3DDevice9> device;\n wnt::c_r<ID3DXFont> font;\n wnt::s_r<x::allocator> allocator;\n std::vector<wnt::s_r<image>> scene;\n std::vector<wnt::s_r<board>> boards;\n\n projector(IDirect3D9 *origin,\n ...
373
19
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 29.32, "nodes": 225, "errors": 0, "source_hash": "5111ffa53ee7535bd84eef2ad2f499ac3249c72377e43b47949dccd76bd2eee8", "categorized_nodes": 149}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
79,807
c
#include <ruby.h> #if defined(HAVE_DLFCN_H) # include <dlfcn.h> #ifndef RTLD_LAZY #define RTLD_LAZY 0 #endif #ifndef RTLD_GLOBAL #define RTLD_GLOBAL 0 #endif #ifndef RTLD_NOW #define RTLD_NOW 0 #endif #else # if defined(_WIN32) # include <windows.h> # define dlopen(name,flag) ((void*)LoadLibrary(name)) # define ...
26.33
36
(translation_unit) "#include <ruby.h>\n\n#if defined(HAVE_DLFCN_H)\n# include <dlfcn.h>\n#ifndef RTLD_LAZY\n#define RTLD_LAZY 0\n#endif\n#ifndef RTLD_GLOBAL\n#define RTLD_GLOBAL 0\n#endif\n#ifndef RTLD_NOW\n#define RTLD_NOW 0\n#endif\n#else\n# if defined(_WIN32)\n# include <windows.h>\n# define dlopen(name,flag) ((...
246
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 26.33, "nodes": 157, "errors": 0, "source_hash": "505e9ae1485d83ae05d3919f15444ec1b5f2f362aa4c21cb650094bc6e797d59", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,808
c
#include <stdio.h> #define SIZE 21 int main() { char text[] = "C Programming is fun!"; char temp; int x; x = 0; puts("Original Array"); printf("%s\n\n", text); while(text[x] != '\0') { if(text[x] > text[x+1]) { temp = text[x+1]; text[x+1] = text[x]; text[x] = temp; } x++; } puts("Sorted ...
14.11
27
(translation_unit) "#include <stdio.h>\n\n#define SIZE 21\n\nint main()\n{\n char text[] = "C Programming is fun!";\n char temp;\n int x;\n\n x = 0;\n puts("Original Array");\n printf("%s\n\n", text);\n while(text[x] != '\0')\n {\n if(text[x] > text[x+1])\n {\n temp = text[x+1];\n text[x+1] = text[x];\n text[x]...
221
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 14.11, "nodes": 126, "errors": 0, "source_hash": "59ee0bc266208cb42fab3da2927b1294d37d9066f69c071d0e9c52c786d41eaa", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
79,809
c
// // Created by istvan on 4/13/17. // #ifndef RIAPS_CORE_COLLECTORBASE_H #define RIAPS_CORE_COLLECTORBASE_H #include "componentmodel/r_componentbase.h" #include "messages/testmessages.capnp.h" #define PORT_SUB_GETTEMPERATURE "getTemperature" namespace testing { namespace components{ class CollectorBas...
35.62
26
(translation_unit) "//\n// Created by istvan on 4/13/17.\n//\n\n#ifndef RIAPS_CORE_COLLECTORBASE_H\n#define RIAPS_CORE_COLLECTORBASE_H\n\n\n#include "componentmodel/r_componentbase.h"\n#include "messages/testmessages.capnp.h"\n\n#define PORT_SUB_GETTEMPERATURE "getTemperature"\n\nnamespace testing {\n namespace comp...
189
11
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 35.62, "nodes": 113, "errors": 0, "source_hash": "19e2a999c015854e8672c841b2feff11008e7503b7d6f96db8eee0b53912ce4f", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,810
c
#ifndef _CPU_ #define _CPU_ #include <stdio.h> #include "mmu.h" /* * Structure that represents the internal state of our CPU. */ struct CPU { union { struct{ unsigned char F; unsigned char A; }; unsigned short AF; }; union { struct{ uns...
22.24
51
(translation_unit) "#ifndef _CPU_\n#define _CPU_\n\n#include <stdio.h>\n#include "mmu.h"\n\n/*\n * Structure that represents the internal state of our CPU.\n */\nstruct CPU {\n union {\n struct{\n unsigned char F;\n unsigned char A;\n };\n unsigned short AF;\n };\n un...
292
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 22.24, "nodes": 207, "errors": 0, "source_hash": "39e8525f0bd9ae9d5093a5a75d43c21fa5bb18045a6af251c4e07cf309b5314c", "categorized_nodes": 142}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,811
c
// // GHRepos.h // GitHub // // Created by <NAME> on 05.09.17. // Copyright © 2017 Lutskiy. All rights reserved. // #import <Foundation/Foundation.h> #import "GHRequest.h" #import "RepoModel.h" #import "CommitModel.h" /** Handler возвращаемой модели данных @param model Массив с объектами @param error NSError ...
24.41
34
(translation_unit) "//\n// GHRepos.h\n// GitHub\n//\n// Created by <NAME> on 05.09.17.\n// Copyright © 2017 Lutskiy. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "GHRequest.h"\n#import "RepoModel.h"\n#import "CommitModel.h"\n\n/**\n Handler возвращаемой модели данных\n\n @param model Масси...
114
13
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 24.41, "nodes": 70, "errors": 0, "source_hash": "ff774a07ab4e7b9b84b4ba3da9f70ac5a1020f378a0cc1798249ad433f2eb07f", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
79,812
c
#pragma once class InsertionSort { public: InsertionSort(); ~InsertionSort(); public: void sort(int*, size_t); private: void insertionSort(int* pArr, size_t sizeArr); };
16.4
10
(translation_unit) "#pragma once\n\nclass InsertionSort {\npublic:\n InsertionSort();\n ~InsertionSort();\npublic:\n void sort(int*, size_t);\nprivate:\n void insertionSort(int* pArr, size_t sizeArr);\n};\n\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (function_defin...
69
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 16.4, "nodes": 40, "errors": 0, "source_hash": "aa18a8a31e8ea80fdd5727ca46cf3ef63871758a0d9901492599ad9fc90a698c", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
79,813
c
#include "usbd_conf.h" #include "stm32f0xx.h" #include "stm32f0xx_hal.h" #include "usbd_core.h" #include "usbd_def.h" #include <assert.h> PCD_HandleTypeDef hpcd_USB_FS; void Error_Handler(void); static USBD_StatusTypeDef USBD_Get_USB_Status(HAL_StatusTypeDef hal_status); static void SystemClockConfig_R...
35.46
255
(translation_unit) "#include "usbd_conf.h"\n#include "stm32f0xx.h"\n#include "stm32f0xx_hal.h"\n#include "usbd_core.h"\n#include "usbd_def.h"\n#include <assert.h>\n\nPCD_HandleTypeDef hpcd_USB_FS;\n\nvoid Error_Handler(void);\n\nstatic USBD_StatusTypeDef USBD_Get_USB_Status(HAL_StatusTypeDef hal_status);\nstatic void ...
2,135
0
{"language": "c", "success": true, "metadata": {"lines": 255, "avg_line_length": 35.46, "nodes": 1369, "errors": 0, "source_hash": "ac9e2e1c0273c7ceacebcf8cb2f2615dbb76bd9a5a858added3a51b7e58382b9", "categorized_nodes": 975}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
79,814
c
/* * TOPPERS/ASP Kernel * Toyohashi Open Platform for Embedded Real-Time Systems/ * Advanced Standard Profile Kernel * * Copyright (C) 2008-2011 by Embedded and Real-Time Systems Laboratory * Graduate School of Information Science, Nagoya Univ., JAPAN * Copyright (C) 2015-2016 b...
27.12
65
(translation_unit) "/* \n * TOPPERS/ASP Kernel \n * Toyohashi Open Platform for Embedded Real-Time Systems/ \n * Advanced Standard Profile Kernel \n * \n * Copyright (C) 2008-2011 by Embedded and Real-Time Systems Laboratory \n * Graduate School of Information Science, Nagoya Univ., JAPAN \n *...
153
0
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 27.12, "nodes": 102, "errors": 0, "source_hash": "923b3019cbd8fd786f4c8984f4c728bbd08a6f5aba8d88fef38642f79082979c", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "", "p...
79,815
c
#ifndef GLOBAL_STRUCTURES_H #define GLOBAL_STRUCTURES_H #include "nsock.h" #include "nbase.h" typedef struct service_lookup { char *name; u8 proto; u16 portno; } sevice_lookup; typedef struct m_data { nsock_pool nsp; nsock_iod nsi; int state; int protocol; unsigned short port; struct in_addr ip; int att...
16.11
27
(translation_unit) "#ifndef GLOBAL_STRUCTURES_H\n#define GLOBAL_STRUCTURES_H\n\n#include "nsock.h"\n#include "nbase.h"\n\n\ntypedef struct service_lookup {\n char *name;\n u8 proto;\n u16 portno;\n} sevice_lookup;\n\n\n\ntypedef struct m_data {\n nsock_pool nsp;\n nsock_iod nsi;\n int state;\n int protocol;\n unsigned ...
113
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 16.11, "nodes": 82, "errors": 0, "source_hash": "bcb0b545f2c1e780ab54aa48c6c8272da972095554bcde40533249a4244e397d", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,816
c
/* * Copyright (c) 1989 The Regents of the University of California. * All rights reserved. * * %sccs.include.redist.c% * * @(#)if_vba.c 1.4 (Berkeley) 12/16/90 */ #include "sys/param.h" #include "sys/systm.h" #include "sys/mbuf.h" #include "sys/buf.h" #include "sys/cmap.h" #include "sys/vmmac.h" #include "sys/...
20.38
177
(translation_unit) "/*\n * Copyright (c) 1989 The Regents of the University of California.\n * All rights reserved.\n *\n * %sccs.include.redist.c%\n *\n * @(#)if_vba.c 1.4 (Berkeley) 12/16/90\n */\n\n#include "sys/param.h"\n#include "sys/systm.h"\n#include "sys/mbuf.h"\n#include "sys/buf.h"\n#include "sys/cmap.h"\n#in...
1,454
0
{"language": "c", "success": true, "metadata": {"lines": 177, "avg_line_length": 20.38, "nodes": 898, "errors": 0, "source_hash": "9a774920286571bb3d1d0e1e49771caaa270c60fa62bca3833c04c357c6f06e8", "categorized_nodes": 673}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,817
c
/* * Name: MicroEMACS * Terminal independent keyboard handling. * Version: 29 * Last edit: 05-Feb-86 * By: rex::conroy * decvax!decwrl!dec-rhea!dec-rex!conroy */ #include "def.h" /* * Read in a key, doing the terminal * independent prefix handling. The terminal specific * "getkbd" routine gets the first s...
21.54
119
(translation_unit) "/*\n * Name: MicroEMACS\n * Terminal independent keyboard handling.\n * Version: 29\n * Last edit: 05-Feb-86\n * By: rex::conroy\n * decvax!decwrl!dec-rhea!dec-rex!conroy\n */\n#include "def.h"\n\n/*\n * Read in a key, doing the terminal\n * independent prefix handling. The terminal specific\n * ...
1,084
0
{"language": "c", "success": true, "metadata": {"lines": 119, "avg_line_length": 21.54, "nodes": 692, "errors": 0, "source_hash": "9c71fbf3e7cab95f5366c834eab33a01d8a262ecdc97843a896423995c1e13aa", "categorized_nodes": 441}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,818
c
#include <stdio.h> #include <stdlib.h> #include <locale.h> int main() { setlocale(LC_ALL,"portuguese"); int vet[18], mat[3][6]; printf("\t- <NAME> -\n\n"); printf(" Vetor\n"); for(int i=0;i<18;i++){ vet[i] = rand()%50; printf(" %i\t",vet[i]); } printf("\n\n"); printf(" Matr...
19.43
28
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <locale.h>\nint main()\n{\n setlocale(LC_ALL,"portuguese");\n\n int vet[18], mat[3][6];\n printf("\t- <NAME> -\n\n");\n\n printf(" Vetor\n");\n for(int i=0;i<18;i++){\n vet[i] = rand()%50;\n printf(" %i\t",vet[i]);\n }\n\n ...
292
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 19.43, "nodes": 159, "errors": 0, "source_hash": "db3d1d4c0fb3c2e13ac92838aff3044b5258f6ad6cb3c325dd7b13e00858674f", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,819
c
#pragma once #include "elf_analyzer.h" class ElfAnalyzerX86: public ElfAnalyzer { public: ElfAnalyzerX86(RDContext* ctx); void analyze() override; protected: void findMain(rd_address address) override; private: void findMain32(rd_address address); void findMain64(...
30.47
15
(translation_unit) "#pragma once\n\n#include "elf_analyzer.h"\n\nclass ElfAnalyzerX86: public ElfAnalyzer\n{\n public:\n ElfAnalyzerX86(RDContext* ctx);\n void analyze() override;\n\n protected:\n void findMain(rd_address address) override;\n\n private:\n void findMain32(rd_address ...
121
3
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 30.47, "nodes": 77, "errors": 0, "source_hash": "bb53ae9077c5d6e26197066f2cc48e0c459879e811b8eb0f68e83a7c4ac23bef", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
79,820
c
/** @file File to contain all the hardware specific stuff for the Smm Sx dispatch protocol. Copyright (c) 2013-2015 Intel Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent **/ // // Include common header file for this module. // #include "CommonHeader.h" #include "QNCSmmHelpers.h" CONST ...
22.25
147
(translation_unit) "/** @file \nFile to contain all the hardware specific stuff for the Smm Sx dispatch protocol. \n \nCopyright (c) 2013-2015 Intel Corporation. \n \nSPDX-License-Identifier: BSD-2-Clause-Patent \n \n \n**/ \n \n// \n// Include common header file for this module. \n// \n#include "CommonHeader.h" \n \n#...
544
5
{"language": "c", "success": true, "metadata": {"lines": 147, "avg_line_length": 22.25, "nodes": 311, "errors": 0, "source_hash": "b1d2065afa3b4c1f5b3ae05dd19fa7c70d66c057454402df006f0cecdfac93b2", "categorized_nodes": 229}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,821
c
/* * MIT License * * Copyright(c) 2011-2020 The Maintainers of Nanvix * * 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 * ...
31.76
319
(translation_unit) "/*\n * MIT License\n *\n * Copyright(c) 2011-2020 The Maintainers of Nanvix\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 withou...
1,393
8
{"language": "c", "success": true, "metadata": {"lines": 319, "avg_line_length": 31.76, "nodes": 843, "errors": 0, "source_hash": "2597d55208b54efa3fc09f8bf1f238b58bf28011a31fcb23d642ca2d0984493d", "categorized_nodes": 599}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if (def...
79,822
c
// // ZHMultiTablePagePlugin_TabViewBar.h // XueZhiYun // // Created by chun.chen on 2018/9/13. // Copyright © 2018年 Zhihan. All rights reserved. // tabviewBar 插件 #import "ZHMultiTablePagePlugin_Base.h" #import "ZHMultiTabViewBar.h" @protocol ZHTabViewBarPluginDelagate <NSObject> @optional - (void)tabViewContr...
29.83
24
(ERROR) "//\n// ZHMultiTablePagePlugin_TabViewBar.h\n// XueZhiYun\n//\n// Created by chun.chen on 2018/9/13.\n// Copyright © 2018年 Zhihan. All rights reserved.\n// tabviewBar 插件\n\n#import "ZHMultiTablePagePlugin_Base.h"\n#import "ZHMultiTabViewBar.h"\n\n@protocol ZHTabViewBarPluginDelagate <NSObject>\n\n@optional...
79
8
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 29.83, "nodes": 50, "errors": 0, "source_hash": "2bfb5fd6e69111bd79bf580e03d371163719cc1e9775516f01b3ef6e0f2116bf", "categorized_nodes": 28}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// ZHMultiTablePagePlu...
79,823
c
#ifndef MEDIAN_FILTER_PLUGIN_H #define MEDIAN_FILTER_PLUGIN_H #include "median_filter_plugin_global.h" #include "cvplugininterface.h" class MEDIAN_FILTER_PLUGINSHARED_EXPORT Median_filter_plugin : public QObject, public CvPluginInterface { Q_OBJECT Q_PLUGIN_METADATA(IID "com.amin.cvplugininterface") ...
31.53
17
(translation_unit) "#ifndef MEDIAN_FILTER_PLUGIN_H\n#define MEDIAN_FILTER_PLUGIN_H\n\n#include "median_filter_plugin_global.h"\n#include "cvplugininterface.h"\n\nclass MEDIAN_FILTER_PLUGINSHARED_EXPORT Median_filter_plugin :\n public QObject, public CvPluginInterface\n{\n Q_OBJECT\n Q_PLUGIN_METADATA(IID "...
109
5
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 31.53, "nodes": 59, "errors": 0, "source_hash": "be664ceb4f3c164bd3dbc9712635296a04e723c6bded86577de06e30353719d2", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,824
c
#include "usb_find.h" #include <stdbool.h> #include <dirent.h> #include <stdio.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include <fcntl.h> #include <string.h> #include <errno.h> #include <fcntl.h> #include <stdarg.h> #include <stdlib.h> #define USB_DEVICE_PATH "/sys/bus/usb/devices" #def...
24.75
172
(translation_unit) "#include "usb_find.h"\n#include <stdbool.h>\n#include <dirent.h>\n#include <stdio.h>\n#include <sys/stat.h> \n#include <sys/types.h>\n#include <unistd.h>\n#include <fcntl.h>\n#include <string.h>\n\n#include <errno.h>\n\n#include <fcntl.h>\n#include <stdarg.h>\n#include <stdlib.h>\n\n\n#define USB_DE...
1,191
0
{"language": "c", "success": true, "metadata": {"lines": 172, "avg_line_length": 24.75, "nodes": 669, "errors": 0, "source_hash": "856825401974d3b2c438c243dc9ea1f29a1f63ff661e63b8e516a095d45ab098", "categorized_nodes": 468}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,825
c
// // UIApplication+EnableAccessibility.h // DetoxRecorder // // Created by <NAME> (Wix) on 5/18/20. // Copyright © 2019-2021 Wix. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface UIApplication (EnableAccessibility) @end NS_ASSUME_NONNULL_END
22.42
12
(translation_unit) "//\n// UIApplication+EnableAccessibility.h\n// DetoxRecorder\n//\n// Created by <NAME> (Wix) on 5/18/20.\n// Copyright © 2019-2021 Wix. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface UIApplication (EnableAccessibility)\n\n@end\n\nNS_ASSUME_NONNULL_EN...
26
5
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 22.42, "nodes": 15, "errors": 0, "source_hash": "b63fe1e2a2cb7675aa320906f5178a977ff14cedd1b9d81c295f3080892b713f", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UI...
79,826
c
/******************************************************************************* * * @file Drv_Timer.c * * @author <NAME> * * @brief Timer Driver Implementation. * * [IMP] This timer is created for a PSoC Creator Project so it uses * Auto-Generated Timer source files of PSoC Creator project. ...
36.76
253
(translation_unit) "/*******************************************************************************\n *\n * @file Drv_Timer.c\n *\n * @author <NAME>\n *\n * @brief Timer Driver Implementation.\n *\n * [IMP] This timer is created for a PSoC Creator Project so it uses\n * Auto-Generated Timer source fi...
661
5
{"language": "c", "success": true, "metadata": {"lines": 253, "avg_line_length": 36.76, "nodes": 382, "errors": 0, "source_hash": "091a00c15da44323c94ada66278f5228dd08f95fd75f39dd5823f8f72623ffcf", "categorized_nodes": 265}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,827
c
/* * Copyright 2008 <NAME> * * This file is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License, Version 2, as * published by the Free Software Foundation. */ #include <linux/platform_device.h> #include <linux/atomic.h> #include <mach/cns3xxx.h> #include <m...
28.94
142
(translation_unit) "/*\n * Copyright 2008 <NAME>\n *\n * This file is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License, Version 2, as\n * published by the Free Software Foundation.\n */\n\n#include <linux/platform_device.h>\n#include <linux/atomic.h>\n#includ...
1,075
2
{"language": "c", "success": true, "metadata": {"lines": 142, "avg_line_length": 28.94, "nodes": 670, "errors": 0, "source_hash": "9d07af93f07b8733277c62e3513b01373ca42592b17770c4782709c42474d6c1", "categorized_nodes": 485}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,828
c
// Core library for code-sense - IDE-based // Include application, user and local libraries #include <Energia.h> #include <xdc/runtime/Error.h> #include <ti/sysbios/BIOS.h> #include <ti/sysbios/hal/Timer.h> #ifndef Timer_h #define Timer_h class Timer { private: Timer_Handle TimerHandle; public: Timer(); ...
20.23
22
(translation_unit) "// Core library for code-sense - IDE-based\n// Include application, user and local libraries\n#include <Energia.h>\n#include <xdc/runtime/Error.h>\n#include <ti/sysbios/BIOS.h>\n#include <ti/sysbios/hal/Timer.h>\n\n#ifndef Timer_h\n#define Timer_h\n\nclass Timer\n{\nprivate:\n Timer_Handle TimerH...
98
1
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 20.23, "nodes": 62, "errors": 0, "source_hash": "b8ac1e302c3ee38124e8105c9002f0283ef4a6a917c908fc51515d114921a245", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
79,829
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdarg.h> #if defined(_MSC_VER) && defined(_DEBUG) #include <crtdbg.h> #include <conio.h> #endif #include <lavril.h> #ifdef LVUNICODE #define scfprintf fwprintf #define scvprintf vfwprintf #else #define scfprintf fprintf #define scvprintf vfprintf #...
21.64
45
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <stdarg.h>\n\n#if defined(_MSC_VER) && defined(_DEBUG)\n#include <crtdbg.h>\n#include <conio.h>\n#endif\n#include <lavril.h>\n\n#ifdef LVUNICODE\n#define scfprintf fwprintf\n#define scvprintf vfwprintf\n#else\n#define scfprintf f...
354
0
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 21.64, "nodes": 217, "errors": 0, "source_hash": "d717111b9da54574fdcd7472a1541ebc2bc82f6eba1efd165df6579757a4d056", "categorized_nodes": 154}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,830
c
#include "../../../src/network/socket/qlocalserver_p.h"
55
1
(translation_unit) "#include "../../../src/network/socket/qlocalserver_p.h" \n" (preproc_include) "#include "../../../src/network/socket/qlocalserver_p.h" \n" (#include) "#include" (string_literal) ""../../../src/network/socket/qlocalserver_p.h"" (") """ (string_content) "../../../src/network/sock...
7
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 55.0, "nodes": 3, "errors": 0, "source_hash": "4291db31f6d79c41ecf020daf7b8ae85f7f36c1e1658d4a53fe0da363c71b0e4", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \...
79,831
c
#include<stdio.h> #include<string.h> int main(void) { const char* pin = "mypin"; char try[50]; int iscorrect = 0; while(!iscorrect) { printf("Input pin: "); scanf("%s", &try); // printf("%s %s", pin, try); if(strcmp(pin, try) == 0) { printf("PIN correct\n")...
21.89
19
(translation_unit) "#include<stdio.h>\n#include<string.h>\n\nint main(void) {\n const char* pin = "mypin";\n\n char try[50];\n\n int iscorrect = 0;\n while(!iscorrect) {\n printf("Input pin: ");\n scanf("%s", &try);\n // printf("%s %s", pin, try);\n if(strcmp(pin, try) == 0) {\n ...
144
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 21.89, "nodes": 71, "errors": 0, "source_hash": "0b8ebf96efe206b2a797e9e531bcf5925b693c3a08c48ce85574e20d040b038a", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
79,832
c
/* Copyright (C) 2000-2010 by <NAME> */ /* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaim...
31.9
303
(translation_unit) "/* Copyright (C) 2000-2010 by <NAME> */\n/*\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n\n * Redistributions of source code must retain the above copyright notice, this\n * list of conditions ...
3,929
0
{"language": "c", "success": true, "metadata": {"lines": 303, "avg_line_length": 31.9, "nodes": 2556, "errors": 0, "source_hash": "c6bd6828cfc2ed92df02ad894e61f47f7948a7a855d97c68ed6c8e8fe3d093f1", "categorized_nodes": 1968}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
79,833
c
#ifndef WIDGET_H #define WIDGET_H #include <mruby/data.h> #include "helpers.h" #include "macros.h" DEFINE_DATA_TYPE( widget, Widget ); void mrb_fltk_widget_class_init( mrb_state *mrb ); #endif // WIDGET_H
24.62
8
(translation_unit) "#ifndef WIDGET_H\n#define WIDGET_H\n\n#include <mruby/data.h>\n\n#include "helpers.h"\n#include "macros.h"\n\nDEFINE_DATA_TYPE( widget, Widget );\n\nvoid mrb_fltk_widget_class_init( mrb_state *mrb );\n\n#endif // WIDGET_H" (preproc_ifdef) "#ifndef WIDGET_H\n#define WIDGET_H\n\n#include <mruby/data...
47
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 24.62, "nodes": 31, "errors": 0, "source_hash": "3294e5c5468d22ff2b05b1abb433feb814c678e3a763ef0968e4dacfbaa332f6", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef W...
79,834
c
#pragma once #include "LiberoScene.h" class StartScene : public Libero::LiberoScene { public: LIBEROSCENE(StartScene); void Initialize() override; };
18
8
(translation_unit) "#pragma once\n#include "LiberoScene.h"\n\nclass StartScene : public Libero::LiberoScene\n{\npublic:\n LIBEROSCENE(StartScene);\n\n void Initialize() override;\n\n};\n\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "Libero...
46
2
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 18.0, "nodes": 22, "errors": 0, "source_hash": "9ca4ff1e661c075412c97da68a7c788f7360f68e976024e6bcb085aa7ef55d45", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
79,835
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* parser.h :+: :+: :+: ...
40.31
36
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* parser.h ...
202
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 40.31, "nodes": 145, "errors": 0, "source_hash": "f625717bcf09a025b3e3bfa24a86ab21129fb9008efd2999c72f49d7b10e7986", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,836
c
// // NewsViewController.h // VKApp // // Created by <NAME> on 01/06/16. // Copyright © 2016 Semyon-Vyatkin. All rights reserved. // #import <UIKit/UIKit.h> @interface NewsViewController : UIViewController @end
20.5
10
(translation_unit) "//\n// NewsViewController.h\n// VKApp\n//\n// Created by <NAME> on 01/06/16.\n// Copyright © 2016 Semyon-Vyatkin. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface NewsViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// NewsViewController.h" (comment)...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.5, "nodes": 9, "errors": 0, "source_hash": "12ec4bf4b8075edd8882bcd2ad59243a3a860e52d7a6f5553c1b46c30898e73a", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UIKi...
79,837
c
#pragma once #include <Zero.h> #include <Windows.h> class Intersect : public ZeroIScene { private: float r1_x, r1_y, r2_x, r2_y, l; bool state, circle; public: ZeroIScene *r1, *r2; ZeroSprite *r3; ZeroInputManager *cursor; public: Intersect(ZeroIScene *_r1 = NULL, ZeroIScene *_r2 = NULL, ZeroSprite *_r3 = NULL, ...
28.22
23
(translation_unit) "#pragma once\n#include <Zero.h>\n#include <Windows.h>\n\nclass Intersect : public ZeroIScene\n{\nprivate:\n float r1_x, r1_y, r2_x, r2_y, l;\n bool state, circle;\npublic:\n ZeroIScene *r1, *r2;\n ZeroSprite *r3;\n ZeroInputManager *cursor;\npublic:\n Intersect(ZeroIScene *_r1 = NULL, ZeroIScene *_r...
228
4
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 28.22, "nodes": 165, "errors": 0, "source_hash": "f377d96f229cc4c1c59d5f1d718da95b0f458025faaa14d16eca7e58e69c5391", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
79,838
c
/*****************************************************************************/ /** * @file CellAdjacencyGraph.h */ /*---------------------------------------------------------------------------- * * Copyright (c) Visualization Laboratory, Kyoto University. * All rights reserved. * See http://www.viz.media.k...
35.66
44
(translation_unit) "/*****************************************************************************/\n/**\n * @file CellAdjacencyGraph.h\n */\n/*----------------------------------------------------------------------------\n *\n * Copyright (c) Visualization Laboratory, Kyoto University.\n * All rights reserved.\n *...
208
10
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 35.66, "nodes": 114, "errors": 0, "source_hash": "dbd8303763061219424971a5eeeac2c00d9d02b14cf454bfab0c7deff73702cb", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,839
c
#ifndef RIORITA_STORAGE_H_ #define RIORITA_STORAGE_H_ #include <string> namespace riorita { struct StorageOptions { std::string directory; }; struct Storage { virtual bool has(const std::string& key) = 0; virtual bool get(const std::string& key, std::string& value) = 0; virtual void erase(const ...
22.43
28
(translation_unit) "#ifndef RIORITA_STORAGE_H_\n#define RIORITA_STORAGE_H_\n\n#include <string>\n\nnamespace riorita {\n\nstruct StorageOptions\n{\n std::string directory; \n};\n\nstruct Storage\n{\n virtual bool has(const std::string& key) = 0;\n virtual bool get(const std::string& key, std::string& value)...
210
16
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 22.43, "nodes": 130, "errors": 0, "source_hash": "712bdee9630cf65f1f64bc3a8f7ef42000210635e3942f9963a4964287dfab82", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,840
c
#ifndef __BOOT_IMG_UTILS__ #define __BOOT_IMG_UTILS__ #ifdef __cplusplus extern "C" { #endif int is_mtk_device(); int _mkdir(const char *dir); int is_gt9308_cmcc(void); int write_to_mtd(const char *dev, const char *fn); int decompress_main(const char *fn, const char *fn_out); int compress_main(const char *fn, const...
23.47
15
(translation_unit) "#ifndef __BOOT_IMG_UTILS__\n#define __BOOT_IMG_UTILS__\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\nint is_mtk_device();\nint _mkdir(const char *dir);\nint is_gt9308_cmcc(void);\n\nint write_to_mtd(const char *dev, const char *fn);\n\nint decompress_main(const char *fn, const char *fn_out);\nint c...
129
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 23.47, "nodes": 87, "errors": 0, "source_hash": "b6a4abcb6b1e16eb8b4bd9f842a105fe22ea0fd77f7e7a4366353bf42fee35f5", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,841
c
#pragma once #include <vector> #include <Eigen/Core> #include <Eigen/Sparse> #include "nullspace_projector.h" namespace LWS { template<typename V> V ApplyPinv(Eigen::SparseMatrix<double> &J, V &x) { Eigen::SparseMatrix<double> JTJ = J.transpose() * J; Eigen::SparseLU<Eigen::SparseMatrix<d...
33.62
34
(translation_unit) "#pragma once\n\n#include <vector>\n#include <Eigen/Core>\n#include <Eigen/Sparse>\n#include "nullspace_projector.h"\n\nnamespace LWS {\n \n template<typename V>\n V ApplyPinv(Eigen::SparseMatrix<double> &J, V &x) {\n Eigen::SparseMatrix<double> JTJ = J.transpose() * J;\n Eigen...
407
19
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 33.62, "nodes": 255, "errors": 0, "source_hash": "e03acd9d3be7cd81af77588f96fd6340e5e07127e6eeffc234d0d3edbc1c11fb", "categorized_nodes": 183}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
79,842
c
/* * Copyright (c) 2018, Linaro Limited. and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ /* * @file generic/sleep.h * @brief Generic sleep primitives for libmetal. */ #ifndef __METAL_SLEEP__H__ #error "Include metal/sleep.h instead of metal/generic/sleep.h" #end...
16.79
38
(translation_unit) "/* \n * Copyright (c) 2018, Linaro Limited. and Contributors. All rights reserved. \n * \n * SPDX-License-Identifier: BSD-3-Clause \n */ \n \n/* \n * @file generic/sleep.h \n * @brief Generic sleep primitives for libmetal. \n */ \n \n#ifndef __METAL_SLEEP__H__ \n#error "Include metal/sleep.h instead...
73
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 16.79, "nodes": 48, "errors": 0, "source_hash": "d58e74260014d44100454969ab7f573f2ce544f845f40bb51ba30a0a263bdf8f", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,843
c
/** * Factorial Algorithm in C * * Author: <NAME> **/ #include <stdio.h> #include <stdlib.h> unsigned long long factorial(int number); int main(void) { printf("%lld\n", factorial(55)); } unsigned long long factorial(int number) { int i; unsigned long long fat = 1; if(n...
16
33
(translation_unit) "/** \n * Factorial Algorithm in C \n * \n * Author: <NAME> \n **/ \n \n#include <stdio.h> \n#include <stdlib.h> \n \nunsigned long long factorial(int number); \n \nint main(void) \n{ \n printf("%lld\n", factorial(55)); \n} \n \nunsigned long long factorial(int number) \n{ \n int i; \n ...
159
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 16.0, "nodes": 99, "errors": 0, "source_hash": "b56e00731d70df256c280653348c395cc2b1c7f853ff551652c851e6ff3e1624", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
79,844
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/CalendarAgentLink.framework/Versions/A/CalendarAgentLink */ @interface CalStoreRemoteManagedObject : CalStoreRemoteObject { NSString * _objectId; } @property (nonatomic, readwrite, retain) NSString *objectId; + (id)fetchObjectWithObjectI...
32.68
19
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/CalendarAgentLink.framework/Versions/A/CalendarAgentLink\n */\n\n@interface CalStoreRemoteManagedObject : CalStoreRemoteObject {\n NSString * _objectId;\n}\n\n@property (nonatomic, readwrite, retain) NSString *objectId;\n...
204
19
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 32.68, "nodes": 120, "errors": 0, "source_hash": "216c5475f2ff52ecb23e96f9f1040074a06a36d6ae7648922764ce8592993b61", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface CalS...
79,845
c
/* * */ #ifndef HYPERDRIVE_SECURITYTOKENMANAGER_H #define HYPERDRIVE_SECURITYTOKENMANAGER_H #include <QtCore/QDateTime> #include <QtCore/QSet> #include <HemeraCore/AsyncInitObject> #include <HyperspaceCore/Global> #include <HyperspaceCore/Wave> namespace Hyperspace { class SecurityPass; } namespace Hyperdri...
28.33
33
(translation_unit) "/*\n *\n */\n\n#ifndef HYPERDRIVE_SECURITYTOKENMANAGER_H\n#define HYPERDRIVE_SECURITYTOKENMANAGER_H\n\n#include <QtCore/QDateTime>\n#include <QtCore/QSet>\n\n#include <HemeraCore/AsyncInitObject>\n\n#include <HyperspaceCore/Global>\n#include <HyperspaceCore/Wave>\n\nnamespace Hyperspace {\n class...
195
10
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 28.33, "nodes": 124, "errors": 0, "source_hash": "21a5fe4bf5538237aaacd8684189d691e55baa6cdd920329c3dcda76770d3607", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,846
c
#pragma once namespace erm { class Engine; namespace ecs { struct SkeletonComponent; } } // namespace erm namespace ImGui { extern bool ShowSkeletonComponentDebugWindow(erm::Engine& engine, erm::ecs::SkeletonComponent& skeletonComponent); }
23.1
10
(translation_unit) "#pragma once\n\nnamespace erm {\nclass Engine;\nnamespace ecs {\nstruct SkeletonComponent;\n}\n} // namespace erm\n\nnamespace ImGui {\n\nextern bool ShowSkeletonComponentDebugWindow(erm::Engine& engine, erm::ecs::SkeletonComponent& skeletonComponent);\n\n}\n" (preproc_call) "#pragma once\n" (...
61
2
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 23.1, "nodes": 35, "errors": 0, "source_hash": "dc8e3d73ad88dc31d6386c2f5ccd56e742b68d3393619e862db60269ca632061", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
79,847
c
// // FCCollectionViewCell.h // DJBase // // Created by dengjie on 2017/3/2. // Copyright © 2017年 u1city01. All rights reserved. // #import <UIKit/UIKit.h> #import "FCCollectionViewCellProtocol.h" @interface FCCollectionViewCell : UICollectionViewCell<FCCollectionViewCellProtocol> @end
23.42
12
(translation_unit) "//\n// FCCollectionViewCell.h\n// DJBase\n//\n// Created by dengjie on 2017/3/2.\n// Copyright © 2017年 u1city01. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n#import "FCCollectionViewCellProtocol.h"\n\n@interface FCCollectionViewCell : UICollectionViewCell<FCCollectionViewCellProtocol>...
28
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 23.42, "nodes": 18, "errors": 0, "source_hash": "13c6e06eff5ea2d16dcb85e178cb4c1aa16af83eb52748df43fdfcfd3b37114c", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKi...
79,848
c
#ifdef _WIN32 __declspec(dllexport) #endif int empty() { return 0; }
9.14
7
(translation_unit) "#ifdef _WIN32\n__declspec(dllexport)\n#endif\nint empty()\n{\n return 0;\n}\n" (preproc_ifdef) "#ifdef _WIN32\n__declspec(dllexport)\n#endif" (#ifdef) "#ifdef" (identifier) "_WIN32" (ERROR) "__declspec(dllexport)" (ms_declspec_modifier) "__declspec(dllexport)" (__declspe...
25
1
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 9.14, "nodes": 15, "errors": 0, "source_hash": "2dca83f91f650e8974421094267af382a229809a3fae7d4ef800f6f10dcc056a", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef _WI...
79,849
c
/** \file diag_dnx_scheduler.h * * DNX TM scheduler diagnostics */ /* * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Copyright 2007-2020 Broadcom Inc. All rights reserved. */ #ifndef DIAG_DNX_SCHEDULER_H_INCLUDED /* * { ...
26.76
132
(translation_unit) "/** \file diag_dnx_scheduler.h\n *\n * DNX TM scheduler diagnostics\n */\n/*\n * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.\n * \n * Copyright 2007-2020 Broadcom Inc. All rights reserved.\n */\n#ifndef DIAG_DNX_...
393
0
{"language": "c", "success": true, "metadata": {"lines": 132, "avg_line_length": 26.76, "nodes": 292, "errors": 0, "source_hash": "6fb45ccea8b1c29b54ad35031de4202b08912e9f3a8844e1686b20e4ce3a8b15", "categorized_nodes": 198}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
79,850
c
/* The contents of this file are subject to the The 3-Clause BSD * License (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at https://opensource.org/licenses/BSD-3-Clause * * Software distributed under the License is distributed on an * "A...
27.41
80
(translation_unit) "/* The contents of this file are subject to the The 3-Clause BSD\n * License (the "License"); you may not use this file\n * except in compliance with the License. You may obtain a copy of\n * the License at https://opensource.org/licenses/BSD-3-Clause\n *\n * Software distributed under the License i...
616
0
{"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 27.41, "nodes": 359, "errors": 0, "source_hash": "e13966236fd5b16b6feafc6b5ecfbecbd53d98851e1cd3e04ad2e67082826195", "categorized_nodes": 266}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,851
c
#ifndef TIMEZONE_H #define TIMEZONE_H #include <nan.h> #include <string> #include "time_zone.h" class TimeZone : public Nan::ObjectWrap { public: static NAN_MODULE_INIT(Init); static v8::MaybeLocal<v8::Object> NewInstance(); static v8::MaybeLocal<v8::Object> NewInstance(v8::Local<v8::Value> arg); static Nan::Pers...
26.14
21
(translation_unit) "#ifndef TIMEZONE_H\n#define TIMEZONE_H\n\n#include <nan.h>\n#include <string>\n#include "time_zone.h"\n\nclass TimeZone : public Nan::ObjectWrap {\npublic:\n static NAN_MODULE_INIT(Init);\n static v8::MaybeLocal<v8::Object> NewInstance();\n static v8::MaybeLocal<v8::Object> NewInstance(v8::Local<v8:...
188
7
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 26.14, "nodes": 103, "errors": 0, "source_hash": "a35db58f0fd228106548fa46ef51e7b12e56041523f3e054a94a2c3d276dcd5f", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,852
c
#pragma once #include "B4RDefines.h" //~dependson: <SoftwareSerial.h> //~version: 1.00 namespace B4R { //~ShortName: SoftwareSerial class B4RSoftwareSerial{ private: B4RStream stream; SoftwareSerial* serial; uint8_t backend[sizeof(SoftwareSerial)]; public: //Initializes the object. //BaudRate - Se...
32.32
28
(translation_unit) "#pragma once\n#include "B4RDefines.h"\n//~dependson: <SoftwareSerial.h>\n//~version: 1.00\nnamespace B4R {\n //~ShortName: SoftwareSerial\n class B4RSoftwareSerial{\n private: \n B4RStream stream;\n SoftwareSerial* serial;\n uint8_t backend[sizeof(SoftwareSerial)];\n public:\n //Initialize...
121
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 32.32, "nodes": 67, "errors": 0, "source_hash": "75cf6571d3b9814b2ccfac389ab4833f67bdec01e6bd638bcc867157a01869a9", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
79,853
c
#ifndef DATASTRUCTURE_H #define DATASTRUCTURE_H namespace ds { template <class T> struct array { int Length; int Capacity; T* Data; }; template <class T> void InitArray(array<T> *Arr, int Capacity) { Arr->Capacity = Capacity; Arr->Data = (T*)malloc(sizeof(T) * Capacity); } temp...
17.77
47
(translation_unit) "#ifndef DATASTRUCTURE_H \n#define DATASTRUCTURE_H \n \nnamespace ds \n{ \n template <class T> \n struct array \n { \n int Length; \n int Capacity; \n T* Data; \n }; \n \n template <class T> \n void InitArray(array<T> *Arr, int Capacity) \n { \n Arr->Capacity = Capacity; \n Arr->Data = (T*)mallo...
371
12
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 17.77, "nodes": 254, "errors": 0, "source_hash": "299af9a1643786a1d76cd4896e6a437d811e8394c684b5c294ed51a1f2e3e05d", "categorized_nodes": 171}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,854
c
#include <stdlib.h> #include "list3.h" void InitializeList(List * plist) { plist->items = 0; } bool ListIsEmpty(const List * plist) { return plist->items == 0; } bool ListIsFull(const List * plist) { return plist->items == MAXSIZE; } unsigned int ListItemCount(const List * plist) { return plist->ite...
20.59
32
(translation_unit) "#include <stdlib.h>\n#include "list3.h"\n\nvoid InitializeList(List * plist) {\n plist->items = 0;\n}\n\nbool ListIsEmpty(const List * plist) {\n return plist->items == 0;\n}\n\nbool ListIsFull(const List * plist) {\n return plist->items == MAXSIZE;\n}\n\nunsigned int ListItemCount(const Li...
269
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 20.59, "nodes": 169, "errors": 0, "source_hash": "c4d9b15f84da4619af701f88b494bc0eabc3c2f7405e0baf578fa5441862e4f9", "categorized_nodes": 121}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,855
c
//79. Write a C program to check whether a number is Prime number or not. #include<stdio.h> void main() { int num, count = 0, i; printf("Enter any number\n"); scanf("%d",&num); for(i = 1;i <= num/2;i++) { if(num%i == 0) { count++; } } if(count == 1) { printf("%d is a prime number\n",num);...
14.79
24
(translation_unit) "//79. Write a C program to check whether a number is Prime number or not.\n\n#include<stdio.h>\n\nvoid main()\n{\n int num, count = 0, i;\n \n printf("Enter any number\n");\n scanf("%d",&num);\n\n for(i = 1;i <= num/2;i++)\n {\n if(num%i == 0)\n {\n count++;\n }\n }\n if(count == 1)\n {\...
141
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 14.79, "nodes": 73, "errors": 0, "source_hash": "20e4d49e58f4b36b8b834b7bb9efbac873a0f7eae714a92252cfbbefc07efb85", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
79,856
c
// Automatically generated file, do not edit. #pragma once const uint8_t Char_i[] = { 4, 13, 0x00,0x07,0x07,0x00, 0x00,0x00,0x00,0x00, 0x07,0x07,0x07,0x00, 0x00,0x07,0x07,0x00, 0x00,0x07,0x07,0x00, 0x00,0x07,0x07,0x00, 0x00,0x07,0x07,0x00, 0x00,0x07,0x07,0x00, 0x00,0x07,0x07,0x00, 0x00,0x07,0x07,0x00, 0x00,0x00,0x00,...
19.44
18
(translation_unit) "// Automatically generated file, do not edit.\n\n#pragma once\n\nconst uint8_t Char_i[] = {\n4, 13,\n0x00,0x07,0x07,0x00,\n0x00,0x00,0x00,0x00,\n0x07,0x07,0x07,0x00,\n0x00,0x07,0x07,0x00,\n0x00,0x07,0x07,0x00,\n0x00,0x07,0x07,0x00,\n0x00,0x07,0x07,0x00,\n0x00,0x07,0x07,0x00,\n0x00,0x07,0x07,0x00,\n0...
126
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 19.44, "nodes": 64, "errors": 0, "source_hash": "f2e6c8469c9fcd59d5b4acd51e564c72101a7893ce104a63a20b2b69e4bb6bd4", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
79,857
c
//{{BLOCK(yoda) //====================================================================== // // yoda, 32x64@8, // + 32 tiles not compressed // Total size: 2048 = 2048 // // Time-stamp: 2020-01-15, 19:41:24 // Exported by Cearn's GBA Image Transmogrifier, v0.8.6 // ( http://www.coranac.com/projects/#grit ) // //======...
28.39
18
(translation_unit) "//{{BLOCK(yoda)\n\n//======================================================================\n//\n// yoda, 32x64@8, \n// + 32 tiles not compressed\n// Total size: 2048 = 2048\n//\n// Time-stamp: 2020-01-15, 19:41:24\n// Exported by Cearn's GBA Image Transmogrifier, v0.8.6\n// ( http://www.coranac.com...
40
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 28.39, "nodes": 20, "errors": 0, "source_hash": "6e27c94970d0d4bb4ec9d9082120105f5f53cfb7efc2e15c45fc7dc4c76ae7c5", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,858
c
#include "./app.h" #include "../vulkan/initializer/shader/graphics_pipeline_builder/graphics_pipeline_builder.h" #include "./app_builder/app_builder.h" static bool init_shaders(App* app) { GraphicsPipelineBuilder builder; GraphicsPipelineBuilderConfig config = graphics_pipeline_builder_get_default_config(); ...
34.86
98
(translation_unit) "#include "./app.h"\n\n#include "../vulkan/initializer/shader/graphics_pipeline_builder/graphics_pipeline_builder.h"\n#include "./app_builder/app_builder.h"\n\nstatic bool init_shaders(App* app) {\n GraphicsPipelineBuilder builder;\n GraphicsPipelineBuilderConfig config = graphics_pipeline_buil...
858
0
{"language": "c", "success": true, "metadata": {"lines": 98, "avg_line_length": 34.86, "nodes": 491, "errors": 0, "source_hash": "d66c092547c806da981998b9349c35f8b0c947110b1c1b862f92c4593fba8fcc", "categorized_nodes": 371}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,859
c
#ifndef __STAR_SDK_CALC_CALIB_RANGE_H #define __STAR_SDK_CALC_CALIB_RANGE_H #include <star/Star.h> #include <star/Lidar.h> #include <star/Configure.h> #include <star/Shot.h> namespace ss { namespace calc { class __star_export CCalibRange { public: CCalibRange(); ~CCalibRange(); bool setup(const ss::Conf...
27
37
(translation_unit) "#ifndef __STAR_SDK_CALC_CALIB_RANGE_H\n#define __STAR_SDK_CALC_CALIB_RANGE_H\n\n#include <star/Star.h>\n#include <star/Lidar.h>\n#include <star/Configure.h>\n#include <star/Shot.h>\n\nnamespace ss {\nnamespace calc {\n\nclass __star_export CCalibRange {\npublic:\n CCalibRange();\n ~CCalibRange...
239
9
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 27.0, "nodes": 153, "errors": 0, "source_hash": "1d71000ce39630808ffc9272d1b7bba3200a11e231ebab341f8f3c459389268a", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,860
c
/*! \file libc_strcasestr.c * * SDK implementation of strcasestr. */ /* * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Copyright 2007-2020 Broadcom Inc. All rights reserved. */ #include <sal/sal_libc.h> #ifndef sal_strc...
22.45
29
(translation_unit) "/*! \file libc_strcasestr.c\n *\n * SDK implementation of strcasestr.\n */\n/*\n * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.\n * \n * Copyright 2007-2020 Broadcom Inc. All rights reserved.\n */\n\n#include <sal...
147
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 22.45, "nodes": 88, "errors": 0, "source_hash": "3d215eb90debf9aa1a279b915ec72b048fc483e6987a3ebbe96219b1f8b71fd6", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
79,861
c
// // UIImage+KYAdd.h // Expecta // // Created by kyleboy on 2020/4/1. // NS_ASSUME_NONNULL_BEGIN @interface UIImage (KYAdd) + (UIImage *)imageNamed:(NSString *)name inBundleForClass:(Class)inBundleForClass; + (UIImage *)imageNamed:(NSString *)name bundleName:(NSString *)bundleName inBundleForClass:(Class)inBun...
34.73
15
(ERROR) "//\n// UIImage+KYAdd.h\n// Expecta\n//\n// Created by kyleboy on 2020/4/1.\n//\n\n\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface UIImage (KYAdd)\n\n+ (UIImage *)imageNamed:(NSString *)name inBundleForClass:(Class)inBundleForClass;\n+ (UIImage *)imageNamed:(NSString *)name bundleName:(NSString *)bundleName inBund...
146
15
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 34.73, "nodes": 91, "errors": 0, "source_hash": "fbc948670129e8210fdb853710c35c99d05f516e17d5d2da91c728df85732099", "categorized_nodes": 50}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// UIImage+KYAdd.h\n//...
79,862
c
#include "rewind.h"
19
1
(translation_unit) "#include "rewind.h"\n" (preproc_include) "#include "rewind.h"\n" (#include) "#include" (string_literal) ""rewind.h"" (") """ (string_content) "rewind.h" (") """
7
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 19.0, "nodes": 3, "errors": 0, "source_hash": "9e14246959794e3b27dca14c8582eda2f4b9844032b5ceb6513cb5e7586e2fa1", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \...
79,863
c
#include <stddef.h> extern int copy_nanafy_buffer (nanafy_buffer*, nanafy_buffer*);
41
2
(translation_unit) "#include <stddef.h>\n\nextern int copy_nanafy_buffer (nanafy_buffer*, nanafy_buffer*);\n" (preproc_include) "#include <stddef.h>\n" (#include) "#include" (system_lib_string) "<stddef.h>" (declaration) "extern int copy_nanafy_buffer (nanafy_buffer*, nanafy_buffer*);" (storage_class_sp...
23
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 41.0, "nodes": 18, "errors": 0, "source_hash": "61396c2dfc40344f196804c4ff30fc3552a63a6b6fa100c83eefdac8f2a00c0d", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
79,864
c
#include <asis_display_adapter.h> #include <asis+_hw_adapter.h> void test_button(int y,uint8_t button){ if(ha_is_button_pressed(button)){ da_print_str(15,y,"X"); }else{ da_print_str(15,y," "); } } int main(void){ da_setup(); ha_setup(); while(1){ da_print_str(0,0,"Hardware Test"); da_print_str(0,1,"0....
22.93
28
(translation_unit) "#include <asis_display_adapter.h>\n#include <asis+_hw_adapter.h>\n\nvoid test_button(int y,uint8_t button){\n if(ha_is_button_pressed(button)){\n da_print_str(15,y,"X");\n }else{\n da_print_str(15,y," ");\n }\n}\n\nint main(void){\n da_setup();\n ha_setup();\n \n while(1){\n da_print_str(0,0,"Har...
256
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 22.93, "nodes": 117, "errors": 0, "source_hash": "cdd3a0e8014eec097238c7d6e61684d8433f68352b805db1bce3cbd7c883e18f", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
79,865
c
/* * Copyright (C) <NAME>. */ #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <math.h> #include "mln_matrix.h" mln_matrix_t *mln_matrix_new(mln_size_t row, mln_size_t col, double *data, mln_u32_t isRef) { mln_matrix_t *matrix; if ((matrix = (mln_matrix_t *)malloc(sizeof(mln_matrix_t))) ==...
27.21
140
(translation_unit) "/*\n * Copyright (C) <NAME>.\n */\n#include <stdio.h>\n#include <stdlib.h>\n#include <errno.h>\n#include <math.h>\n#include "mln_matrix.h"\n\nmln_matrix_t *mln_matrix_new(mln_size_t row, mln_size_t col, double *data, mln_u32_t isRef)\n{\n mln_matrix_t *matrix;\n if ((matrix = (mln_matrix_t *)m...
1,504
0
{"language": "c", "success": true, "metadata": {"lines": 140, "avg_line_length": 27.21, "nodes": 974, "errors": 0, "source_hash": "9a5a47910df158ea5b79b5a9705f49b7f3fba79445eca4337f1c3dba2f9a3f75", "categorized_nodes": 699}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,866
c
/*----------------------------------------------------------------------------*/ /* Hobbit monitor library. */ /* */ /* This is a library module for Hobbit, responsible for loading the ...
35.14
88
(translation_unit) "/*----------------------------------------------------------------------------*/\n/* Hobbit monitor library. */\n/* */\n/* This is a library module for Hobbit, responsible fo...
772
0
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 35.14, "nodes": 454, "errors": 0, "source_hash": "60bdff72e1c7c925ccd6c0df08cfc13579ff894149431c65d2fa875372507080", "categorized_nodes": 290}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "static c...
79,867
c
/* shi_tomasi_detector.h * * Author: <NAME> * Created On: 18 Jun 2019 */ #ifndef CVE_SHI_TOMASI_DETECTOR_H_ #define CVE_SHI_TOMASI_DETECTOR_H_ #include <Eigen/Eigenvalues> #include "cve/feature/harris_detector_base.h" namespace cve { /** Shi-Tomasi corner detection functor. */ template<typename Scalar, ...
29.02
45
(translation_unit) "/* shi_tomasi_detector.h\n *\n * Author: <NAME>\n * Created On: 18 Jun 2019\n */\n\n#ifndef CVE_SHI_TOMASI_DETECTOR_H_\n#define CVE_SHI_TOMASI_DETECTOR_H_\n\n#include <Eigen/Eigenvalues>\n#include "cve/feature/harris_detector_base.h"\n\nnamespace cve\n{\n /** Shi-Tomasi corner detection functor. ...
275
16
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 29.02, "nodes": 167, "errors": 0, "source_hash": "568029d7e39f45ffd22b061f3dbaafb793f47909663a30672c804fac978d7129", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,868
c
#ifndef PHYSICS_H__ #define PHYSICS_H__ #define GLM_FORCE_RADIANS #include "glm/glm.hpp" #include "../components\Collider.h" #include "OctTree.h" namespace PhysicsEngine { class RaycastHit { }; class Physics { private: static std::vector<Collider *> colliders; // static Octtree tree; public: stat...
41.79
38
(translation_unit) "#ifndef PHYSICS_H__\n#define PHYSICS_H__\n\n#define GLM_FORCE_RADIANS\n\n#include "glm/glm.hpp"\n\n#include "../components\Collider.h"\n\n#include "OctTree.h"\n\nnamespace PhysicsEngine\n{\nclass RaycastHit\n{\n};\n\nclass Physics\n{\n private:\n static std::vector<Collider *> colliders;\n //...
509
33
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 41.79, "nodes": 306, "errors": 0, "source_hash": "8fd1a65fd96b89060b64e959c4c6bb123653014d351b1300cd942c5f3c343aa1", "categorized_nodes": 213}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,869
c
/* sshunixfdstream.h Author: <NAME> <<EMAIL>> Copyright (c) 1996 SSH Communications Security, Finland All rights reserved Created: Tue Aug 20 10:34:54 1996 ylo Streams interface interfacing to file descriptors on Unix. */ /* * $Id: sshunixfdstream.h,v 1.2 1998/06/02 15:54:54 ylo Exp $ * $Log...
44.39
41
(translation_unit) "/*\n\nsshunixfdstream.h\n\nAuthor: <NAME> <<EMAIL>>\n\nCopyright (c) 1996 SSH Communications Security, Finland\n All rights reserved\n\nCreated: Tue Aug 20 10:34:54 1996 ylo\n\nStreams interface interfacing to file descriptors on Unix.\n\n*/\n\n/*\n * $Id: sshunixfdstream.h,v 1.2 1...
100
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 44.39, "nodes": 66, "errors": 0, "source_hash": "767f410c715f1df6daf8ac2cc9adac2bd75ebd5028efca4d24e1fc82f53d601e", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,870
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_string.c :+: :+: :+: ...
22.05
230
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* ft_string.c ...
1,944
0
{"language": "c", "success": true, "metadata": {"lines": 230, "avg_line_length": 22.05, "nodes": 1177, "errors": 0, "source_hash": "429587fef9775b4e2da9c18096928074c1b218e054c0fe30550bb3f9a89b2ff2", "categorized_nodes": 885}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
79,871
c
/* -*- c-file-style:"stroustrup"; indent-tabs-mode: nil -*- */ #include "core/pubnub_version.h" #include "core/pubnub_version_internal.h" #define PUBNUB_SDK_NAME "Windows" char const *pubnub_sdk_name(void) { return PUBNUB_SDK_NAME; } char const *pubnub_version(void) { return PUBNUB_SDK_VERSION; } char...
19.6
25
(translation_unit) "/* -*- c-file-style:"stroustrup"; indent-tabs-mode: nil -*- */\n#include "core/pubnub_version.h"\n\n#include "core/pubnub_version_internal.h"\n\n\n#define PUBNUB_SDK_NAME "Windows"\n\n\nchar const *pubnub_sdk_name(void)\n{ \n return PUBNUB_SDK_NAME;\n}\n\n\nchar const *pubnub_version(void)\n{\n ...
110
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 19.6, "nodes": 60, "errors": 0, "source_hash": "0743e2d787bbc8e1e4abe635d674cea517a9234d01432a342f9acdc07e059d12", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
79,872
c
#pragma once #include <glm/glm.hpp> #include <memory> #include "gl/buffer.h" #include "gl/vertex_array.h" #include "world/coordinates.h" class Chunk; class ChunkRenderer; class ChunkMesh { public: struct FaceParams { FaceParams(glm::ivec3& bp, Direction& d) : blockPos(bp), direction(d) {} gl...
25.53
43
(translation_unit) "#pragma once\n\n#include <glm/glm.hpp>\n#include <memory>\n\n#include "gl/buffer.h"\n#include "gl/vertex_array.h"\n#include "world/coordinates.h"\n\nclass Chunk;\nclass ChunkRenderer;\n\nclass ChunkMesh\n{\npublic:\n struct FaceParams\n {\n FaceParams(glm::ivec3& bp, Direction& d) : blo...
315
14
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 25.53, "nodes": 189, "errors": 0, "source_hash": "30c30d62ca4ca21a6a2161f636e4947fe33d78bbf55d9526f0acaabe330e2544", "categorized_nodes": 140}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
79,873
c
/* Copyright 2020-2021 IGEL Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
28.6
105
(translation_unit) "/* Copyright 2020-2021 IGEL Co., Ltd.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless require...
751
0
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 28.6, "nodes": 484, "errors": 0, "source_hash": "5b7331f6813541ea942b9114560ca8c3a7948480a94caa74d3e25af76922fb76", "categorized_nodes": 358}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,874
c
#include "pointer.h" #include "../util/error.h" struct pointer { struct list *qualifier_list; struct pointer *subpointer; }; struct pointer * pointer_new(struct list *qualifier_list, struct pointer *subpointer) { struct pointer *p = calloc(sizeof*p, 1); p->qualifier_list = qualifier_list; p->subpo...
23.91
22
(translation_unit) "#include "pointer.h"\n#include "../util/error.h"\n\nstruct pointer {\n struct list *qualifier_list;\n struct pointer *subpointer;\n};\n\nstruct pointer *\npointer_new(struct list *qualifier_list, struct pointer *subpointer)\n{\n struct pointer *p = calloc(sizeof*p, 1);\n p->qualifier_lis...
169
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 23.91, "nodes": 117, "errors": 0, "source_hash": "d25b70781a10e522afc565ed5d1089fad2ed82370f718e47780b0fbe89f3632d", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
79,875
c
// // PDSIBDesignableView.h // PDSVisibleDynamicLayout_objcDemo // // Created by w91379137 on 2016/2/19. // Copyright © 2016年 w91379137. All rights reserved. // #import <UIKit/UIKit.h> #import "Masonry.h" @interface PDSIBDesignableView : UIView - (instancetype)initWithFrame:(CGRect)frame XibName:(NSString *)xibN...
27.79
14
(translation_unit) "//\n// PDSIBDesignableView.h\n// PDSVisibleDynamicLayout_objcDemo\n//\n// Created by w91379137 on 2016/2/19.\n// Copyright © 2016年 w91379137. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "Masonry.h"\n\n@interface PDSIBDesignableView : UIView\n\n- (instancetype)initWithFrame:(CGRe...
82
7
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 27.79, "nodes": 50, "errors": 0, "source_hash": "9c065eb4287dac636ebc16a41b8b32050577c939a26dcaba0c7aba8103f38799", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
79,876
c
#ifndef STUDENTPAGE_H #define STUDENTPAGE_H #include "student.h" #include "degreepage.h" #include "courses.h" #include <QMainWindow> #include "assessmentpage.h" namespace Ui { class StudentPage; } class StudentPage : public QMainWindow { Q_OBJECT public: explicit StudentPage(QWidget *parent = nullptr); ...
24.08
38
(translation_unit) "#ifndef STUDENTPAGE_H\n#define STUDENTPAGE_H\n#include "student.h"\n#include "degreepage.h"\n#include "courses.h"\n#include <QMainWindow>\n#include "assessmentpage.h"\n\n\nnamespace Ui {\n\nclass StudentPage;\n}\n\nclass StudentPage : public QMainWindow\n{\n Q_OBJECT\n\npublic:\n explicit Stud...
222
6
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 24.08, "nodes": 140, "errors": 0, "source_hash": "69050b539112f181e96323b665557b3663c6b2099613786727c2440a24c25ab8", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,877
c
#ifndef __RGNDS_POINT_H__ #define __RGNDS_POINT_H__ 1 namespace RGNDS { template <typename T> struct Point { T x = 0, y = 0; template<typename A> Point<T>* operator=(const Point<A>& p) const { this.x = p.x; this.y = p.y; return this; } ...
25.1
104
(translation_unit) "#ifndef __RGNDS_POINT_H__\n#define __RGNDS_POINT_H__ 1\n\nnamespace RGNDS {\n\n template <typename T>\n struct Point {\n T x = 0, y = 0;\n\n template<typename A>\n Point<T>* operator=(const Point<A>& p) const {\n this.x = p.x;\n this.y = p.y;\n ...
1,036
37
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 25.1, "nodes": 737, "errors": 0, "source_hash": "ecc87ecb7f6c415b74aeb5d03ac78aa494649cce3ac479ed118c663c12c51728", "categorized_nodes": 533}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,878
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import <PhotoPrintProduct/KHColor.h> @interface KHWhiteColor : KHColor { } - (id)description; - (id)stringRepresentation; - (struct CGColor *)CGColor; - (id)systemColor; - (id)initWith...
23.07
15
(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 <PhotoPrintProduct/KHColor.h>\n\n@interface KHWhiteColor : KHColor\n{\n}\n\n- (id)description;\n- (id)stringRepresentation;\n- (struct CGColor *)CGColor;...
92
7
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 23.07, "nodes": 53, "errors": 0, "source_hash": "d8071a19d0799c36f00c4f5cb6919d25da2d4521519fd97075db65a785f4cdff", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
79,879
c
#pragma config(Hubs, S1, HTServo, HTMotor, HTMotor, HTMotor) #pragma config(Hubs, S2, HTServo, none, none, none) #pragma config(Sensor, S3, HTSMUX, sensorI2CCustom) #pragma config(Sensor, S4, HTSMUX2, sensorI2CCustom) #pragma config(Motor, mtr_S1_C2_1, leftDrive, tmotorTetr...
35.34
164
(translation_unit) "#pragma config(Hubs, S1, HTServo, HTMotor, HTMotor, HTMotor)\n#pragma config(Hubs, S2, HTServo, none, none, none)\n#pragma config(Sensor, S3, HTSMUX, sensorI2CCustom)\n#pragma config(Sensor, S4, HTSMUX2, sensorI2CCustom)\n#pragma config(Motor, mtr_S1_C2_1, l...
1,109
0
{"language": "c", "success": true, "metadata": {"lines": 164, "avg_line_length": 35.34, "nodes": 605, "errors": 0, "source_hash": "91cf82170e43737af6ff62be2531a4eb8313409cf8a62b5fcf534be1826218be", "categorized_nodes": 402}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
79,880
c
// // UdeskSpectrumView.h // UdeskSDK // // Created by Udesk on 16/8/23. // Copyright © 2016年 Udesk. All rights reserved. // #import <UIKit/UIKit.h> #import "UdeskTimerLabel.h" @interface UdeskSpectrumView : UIView @property (nonatomic, copy) void (^itemLevelCallback)(void); @property (nonatomic) NSUInteger num...
29.17
18
(translation_unit) "//\n// UdeskSpectrumView.h\n// UdeskSDK\n//\n// Created by Udesk on 16/8/23.\n// Copyright © 2016年 Udesk. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "UdeskTimerLabel.h"\n\n@interface UdeskSpectrumView : UIView\n\n@property (nonatomic, copy) void (^itemLevelCallback)(void);\n\n@...
134
25
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 29.17, "nodes": 99, "errors": 0, "source_hash": "36579b81338e3a87b810d7d5f882ee7e1b2bbbdbd4beb211e817e9d92b413ebc", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
79,881
c
#include "piece.h" #ifndef KING_H #define KING_H //Header file for the King class, modeled after all the different piece classes, inherits from the overall piece class class king:public piece { public: king(int, int ,bool); //consturctor; args: x, y, team king(const king&); ~king(); //destructor void s...
34.41
17
(translation_unit) "#include "piece.h"\n#ifndef KING_H\n#define KING_H\n\n//Header file for the King class, modeled after all the different piece classes, inherits from the overall piece class\n\nclass king:public piece\n{\n public:\n king(int, int ,bool); //consturctor; args: x, y, team\n king(const king&);\n ~ki...
116
3
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 34.41, "nodes": 61, "errors": 0, "source_hash": "ec9a623d61a1e106e394f659d995b594a4c97ca0598501f24bf629faa8a5c21d", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
79,882
c
// // TwitterMobViewController.h // TwitterMob // // Created by <NAME> on 11/23/13. // Copyright (c) 2013 Yodel Code LLC. All rights reserved. // #import <UIKit/UIKit.h> #import "RadTableViewController.h" @interface TwitterMobViewController : RadTableViewController <UIScrollViewDelegate> @end
26.09
11
(translation_unit) "//\n// TwitterMobViewController.h\n// TwitterMob\n//\n// Created by <NAME> on 11/23/13.\n// Copyright (c) 2013 Yodel Code LLC. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "RadTableViewController.h"\n\n@interface TwitterMobViewController : RadTableViewController <UIScrollViewDele...
25
3
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 26.09, "nodes": 15, "errors": 0, "source_hash": "8b55289b971b0b2bb690df0d43308b2154e3b23b038b3b6bb362503af58636d7", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <U...
79,883
c
#include <linux/sched.h> #include <linux/module.h> #include <linux/syscalls.h> #include <linux/dirent.h> #include <linux/slab.h> #include <linux/version.h> #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 13, 0) #include <asm/uaccess.h> #endif #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 10, 0) #include <linux/proc_ns.h> ...
25
287
(translation_unit) "#include <linux/sched.h>\n#include <linux/module.h>\n#include <linux/syscalls.h>\n#include <linux/dirent.h>\n#include <linux/slab.h>\n#include <linux/version.h> \n#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 13, 0)\n #include <asm/uaccess.h>\n#endif\n\n#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 10, 0...
2,372
10
{"language": "c", "success": true, "metadata": {"lines": 287, "avg_line_length": 25.0, "nodes": 1563, "errors": 0, "source_hash": "9092fe4eff8b562a52e1f6541f0f3a77c28dca111298a40e9f981b364e5c33e1", "categorized_nodes": 1108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
79,884
c
#include<stdio.h> int main () { // Question 2 for (int i = 0; i < 256; i++){ char c = (char) i; printf("%d : %c \n", i, c); } // Question 4 long A = 15; char B = 'A'; short C = 10; printf("(1) : %i - %li \n", C+3, sizeof(C+3)); printf("(2) : %i - %li \n", B+1, sizeof(B+1)); printf("(3) : ...
19.82
84
(translation_unit) "#include<stdio.h>\n\nint main () {\n // Question 2\n for (int i = 0; i < 256; i++){\n char c = (char) i;\n printf("%d : %c \n", i, c);\n }\n\n // Question 4\n long A = 15;\n char B = 'A';\n short C = 10;\n\n printf("(1) : %i - %li \n", C+3, sizeof(C+3));\n printf("(2) : %i - %li \n", ...
790
0
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 19.82, "nodes": 447, "errors": 0, "source_hash": "75ae26d565903aad85d10a166fe4328324a921f321827a9b44cf53787e6a0342", "categorized_nodes": 308}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,885
c
#include <iostream> #ifndef SLL_H #define SLL_H #include "SLL.h" #endif using namespace std; template <class V> class HashTable { int tableSize; SLL<V>* table; public: //default constructor, which uses default table size 3 HashTable(){ tableSize = 3; table = new SLL<V>[tableSize]; } ...
21.65
145
(translation_unit) "#include <iostream> \n#ifndef SLL_H \n#define SLL_H \n #include "SLL.h" \n#endif \nusing namespace std; \n \ntemplate <class V> \nclass HashTable { \n \n int tableSize; \n SLL<V>* table; \n \n public: \n //default constructor, which uses default table size 3 \n HashTable(){ \n tableSize = 3; \n ...
1,080
10
{"language": "c", "success": true, "metadata": {"lines": 145, "avg_line_length": 21.65, "nodes": 616, "errors": 0, "source_hash": "77de21ac046f28babadf8eda61151da56ff48300551b71e14470a88d9ee556bf", "categorized_nodes": 465}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,886
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "shellcode.h" #define TARGET "/tmp/target3" int main(void) { char *args[3]; char *env[1]; struct widget_t { double x; double y; int count; }; const size_t num_widget = 240; const size_t max_int = 214748364...
31.17
36
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <unistd.h>\n#include "shellcode.h"\n\n#define TARGET "/tmp/target3"\n\nint main(void)\n{\n char *args[3];\n char *env[1];\n\n struct widget_t {\n double x;\n double y;\n int count;\n };\n const size_t num_widget = 2...
333
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 31.17, "nodes": 208, "errors": 0, "source_hash": "49da705cf386b9d1a086fe0a43deceeca8de0c6e60b7b8824b33aad1de18e4db", "categorized_nodes": 140}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,887
c
#include <stdio.h> #include <stdlib.h> int partition(int a[],int low,int high) { int pivot=a[low]; int i=low+1,c=0,j=high; do { while(pivot>=a[i]) i++; while(a[j]>pivot) j--; if(i<j) { c=a[i]; a[i]=a[j]; a[j]=c; } }while(i<j); c=a[low]; a[low]=a[j]; a[j]=c; return j; } void q...
14.49
55
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\nint partition(int a[],int low,int high)\n{\n int pivot=a[low];\n int i=low+1,c=0,j=high;\n do\n {\n while(pivot>=a[i])\n i++;\n while(a[j]>pivot)\n j--;\n if(i<j)\n {\n c=a[i];\n a[i]=a[j];\n a[j]=c;\n }\n }while(i<j);\n c=a[low];\n a[...
481
0
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 14.49, "nodes": 277, "errors": 0, "source_hash": "9487843c9ef986a42fbfccd8b33ae107b5071c26bd486bf5b2759cba3c4879fe", "categorized_nodes": 201}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,888
c
#ifndef MEMBER_FUNCTION_WRAPPER_H #define MEMBER_FUNCTION_WRAPPER_H #include "Events.h" // This is the interface for MemberFunctionWrapper that each specialization will use class HandlerFunctionBase { public: // Call the member function void ExecuteMemberFunction(Event* event) { call(event); ...
29.95
39
(translation_unit) "#ifndef MEMBER_FUNCTION_WRAPPER_H\n#define MEMBER_FUNCTION_WRAPPER_H\n\n#include "Events.h"\n\n// This is the interface for MemberFunctionWrapper that each specialization will use\nclass HandlerFunctionBase \n{\npublic:\n // Call the member function\n void ExecuteMemberFunction(Event* event) \...
274
14
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 29.95, "nodes": 162, "errors": 0, "source_hash": "7c499de26739fa7ed80f8d379eb7a2db27f1d38f7fd9802c207bceb9585de441", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef MEMBER_...
79,889
c
/* Simple Insertion sort program using function*/ #include <stdio.h> #include <time.h> #define ARR_SIZE 100 //global constant; array size /* Function delcaration */ void printArray(int input_arr[], int arr_start, int arr_len); void insertionSort(int data_Arr[], int arr_len); /*---------------------------------------...
32.35
74
(translation_unit) "/* Simple Insertion sort program using function*/\n\n#include <stdio.h>\n#include <time.h>\n#define ARR_SIZE 100 //global constant; array size\n\n/* Function delcaration */\nvoid printArray(int input_arr[], int arr_start, int arr_len);\nvoid insertionSort(int data_Arr[], int arr_len);\n\n/*---------...
540
0
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 32.35, "nodes": 295, "errors": 0, "source_hash": "fe423872e07f34baed987a12ad2aa51f9c74c982e24323d69ba014900a2d1a7a", "categorized_nodes": 206}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,890
c
#include "exec.h" #include "hal.h" void flashJumpApplication(uint32_t address) { typedef void (*pFunction)(void); pFunction Jump_To_Application; /* variable that will be loaded with the start address of the application */ vu32* JumpAddress; const vu32* ApplicationAddress = (vu32*) address; /* get jump ...
33.81
26
(translation_unit) "#include "exec.h"\n#include "hal.h"\n\nvoid flashJumpApplication(uint32_t address)\n{\n typedef void (*pFunction)(void);\n\n pFunction Jump_To_Application;\n\n /* variable that will be loaded with the start address of the application */\n vu32* JumpAddress;\n const vu32* ApplicationAddress = (v...
182
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 33.81, "nodes": 107, "errors": 0, "source_hash": "4f6129f41ceac68b7f3a38e173bf7e79c0cb06d626af9c6c524c769108ee4457", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
79,891
c
/* * Icom R-10 receiver plugin for gsat * * Copyright (C) 2001 by <NAME>, EB3CZS * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) ...
25.31
185
(translation_unit) "/*\n * Icom R-10 receiver plugin for gsat\n *\n * Copyright (C) 2001 by <NAME>, EB3CZS\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * as published by the Free Software Foundation; either version 2\n * of the L...
1,414
0
{"language": "c", "success": true, "metadata": {"lines": 185, "avg_line_length": 25.31, "nodes": 849, "errors": 0, "source_hash": "711b341d60f1246a6d1be29cca8f28a6d4e251263e57536eecc2707582d814b1", "categorized_nodes": 648}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,892
c
/* wheat.c -- exponential increasement */ #include <stdio.h> #define SQUARES 64 // squares in a chess board int main(void) { const double CROP = 2e16; // coarse grain production worldwide double current, total; int count = 1; printf("square grains total "); printf("fraction of \n"); printf(" ...
33.25
24
(translation_unit) "/* wheat.c -- exponential increasement */\n#include <stdio.h>\n#define SQUARES 64 // squares in a chess board\nint main(void)\n{\n const double CROP = 2e16; // coarse grain production worldwide\n double current, total;\n int count = 1;\n printf("square grains total ");\n printf("fr...
203
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 33.25, "nodes": 113, "errors": 0, "source_hash": "629a7b65c3185f135c6cad18ee958f7291930acae2a699c97e7a60072183cf93", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
79,893
c
/* * Copyright (C) 2006 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
36.02
51
(translation_unit) "/*\n * Copyright (C) 2006 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n...
235
10
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 36.02, "nodes": 131, "errors": 0, "source_hash": "c52921120cf35121e88733bb1ea472a4ba7c9d08ee89ae54d9df1a32e7a48131", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,894
c
/* ISC license. */ /* This file is part of the nsss package. See https://skarnet.org/software/nsss/ */ #ifndef SHADOW_H #define SHADOW_H #include <nsss/shadow.h> #endif
18.22
9
(translation_unit) "/* ISC license. */\n\n/*\n This file is part of the nsss package.\n See https://skarnet.org/software/nsss/\n*/\n\n#ifndef SHADOW_H\n#define SHADOW_H\n\n#include <nsss/shadow.h>\n\n#endif\n" (comment) "/* ISC license. */" (comment) "/*\n This file is part of the nsss package.\n See https://sk...
13
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 18.22, "nodes": 10, "errors": 0, "source_hash": "c21f87d3171589f2c83eab8df56787c8d5b973a3808fe8e5baedbd4cd4442cd3", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef SH...
79,895
c
/* * Copyright (c) 2016, <NAME> (<EMAIL>) * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR D...
24.95
94
(translation_unit) "/*\n * Copyright (c) 2016, <NAME> (<EMAIL>)\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVID...
519
0
{"language": "c", "success": true, "metadata": {"lines": 94, "avg_line_length": 24.95, "nodes": 328, "errors": 0, "source_hash": "8c5e6d6ecc7c47e6cf40ad8b44dbad96e6453d3e38dfb476b989a8d2e8a1fb3b", "categorized_nodes": 239}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,896
c
#pragma once #include "../MXMhsX.h" #include "../Strings/MXSecureWString.h" #include "MXHotkeyPollingMethod.h" #include "MXHotkeyRegisterHotKeyMethod.h" #include "MXHotkeyWhKeyboardMethod.h" #include <ComboBox/LSWComboBox.h> #include <ListBox/LSWListBox.h> #include <set> #define MX_H_KEY_LPARAM_METHOD_SHIFT 28 #d...
43.8
138
(translation_unit) "#pragma once\n\n#include "../MXMhsX.h"\n#include "../Strings/MXSecureWString.h"\n#include "MXHotkeyPollingMethod.h"\n#include "MXHotkeyRegisterHotKeyMethod.h"\n#include "MXHotkeyWhKeyboardMethod.h"\n#include <ComboBox/LSWComboBox.h>\n#include <ListBox/LSWListBox.h>\n#include <set>\n\n\n#define MX_H_...
1,025
31
{"language": "c", "success": true, "metadata": {"lines": 138, "avg_line_length": 43.8, "nodes": 581, "errors": 0, "source_hash": "d47f858fd26db1db11d882ce50ffd73163ee4ea626ffedb7a4c0785624f605c0", "categorized_nodes": 421}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
79,897
c
#pragma once #include "../../../../ext/tinygltf/tiny_gltf.h" #include "../../../../ext/glm/glm/glm.hpp" #include "../../../../ext/glm/glm/gtc/matrix_transform.hpp" #include "../../../../ext/glm/glm/gtc/type_ptr.hpp" namespace Mistiq { //Struct containing information about a buffer struct BufferData { BufferData()...
34.23
118
(translation_unit) "#pragma once\n#include "../../../../ext/tinygltf/tiny_gltf.h"\n#include "../../../../ext/glm/glm/glm.hpp"\n#include "../../../../ext/glm/glm/gtc/matrix_transform.hpp"\n#include "../../../../ext/glm/glm/gtc/type_ptr.hpp"\n\nnamespace Mistiq\n{\n //Struct containing information about a buffer\n struct...
873
57
{"language": "c", "success": true, "metadata": {"lines": 118, "avg_line_length": 34.23, "nodes": 523, "errors": 0, "source_hash": "09288af3978c0bd29ad4e8c0977f1b1667700d01a5eef56d01e4afad7514540b", "categorized_nodes": 352}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
79,898
c
namespace fabber_dsc { #include "cprob.h" }
15
3
(translation_unit) "namespace fabber_dsc {\n #include "cprob.h"\n}\n" (function_definition) "namespace fabber_dsc {\n #include "cprob.h"\n}" (type_identifier) "namespace" (identifier) "fabber_dsc" (compound_statement) "{\n #include "cprob.h"\n}" ({) "{" (preproc_include) "#include "cp...
13
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 15.0, "nodes": 6, "errors": 0, "source_hash": "8e01ba82b693192c2bbbbabae241597c48faf0ebe1536d28608f37971bafbe8f", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "namesp...
79,899