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
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @interface SGPaths : NSObject { } + (id)suggestionsSubdirectory:(id)arg1; + (id)suggestionsSubdirectory:(id)arg1 creatingDirectoriesIfNeeded:(BOOL)arg2; + (id)sugge...
32.06
16
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n@interface SGPaths : NSObject\n{\n}\n\n+ (id)suggestionsSubdirectory:(id)arg1;\n+ (id)suggestionsSubdirectory:(id)arg1 creatingDirectorie...
129
12
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 32.06, "nodes": 73, "errors": 0, "source_hash": "3df16b6e7c549d1ee5d1441a626354f2d749374dee41145b806cb30c700b5644", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
14,200
c
// SPDX-License-Identifier: GPL-2.0-only /* * TCP Low Priority (TCP-LP) * * TCP Low Priority is a distributed algorithm whose goal is to utilize only * the excess network bandwidth as compared to the ``fair share`` of * bandwidth as targeted by TCP. * * As of 2.6.13, Linux supports pluggable congestion contr...
28.65
311
(translation_unit) "// SPDX-License-Identifier: GPL-2.0-only\n/*\n * TCP Low Priority (TCP-LP)\n *\n * TCP Low Priority is a distributed algorithm whose goal is to utilize only\n * the excess network bandwidth as compared to the ``fair share`` of\n * bandwidth as targeted by TCP.\n *\n * As of 2.6.13, Linux support...
1,665
3
{"language": "c", "success": true, "metadata": {"lines": 311, "avg_line_length": 28.65, "nodes": 1101, "errors": 0, "source_hash": "94ce47c73a2cbc8b86a6cb01a0ea4e37a2a818a2f85cd72fc8a8782a76035047", "categorized_nodes": 848}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
14,201
c
#ifndef __ZEBRA_GROW_H #define __ZEBRA_GROW_H #include "zebra_data.h" error_t zebra_grow_column ( anemone_mempool_t *pool , zebra_column_t *column , int64_t old_count , int64_t new_capacity ); error_t zebra_grow_table ( anemone_mempool_t *pool , zebra_table_t *table , int64_t grow_by ); error_...
28.06
51
(translation_unit) "#ifndef __ZEBRA_GROW_H\n#define __ZEBRA_GROW_H\n\n#include "zebra_data.h"\n\nerror_t zebra_grow_column (\n anemone_mempool_t *pool\n , zebra_column_t *column\n , int64_t old_count\n , int64_t new_capacity\n );\n\nerror_t zebra_grow_table (\n anemone_mempool_t *pool\n , zebra_table_t *tabl...
260
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 28.06, "nodes": 176, "errors": 0, "source_hash": "e0dd819fc894903efdeda5391935fd656db2550c890275e2ac7d3d7cb08fe480", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,202
c
/* * Copyright (c) 2010-2011 <NAME> <<EMAIL>> * * Jansson is free software; you can redistribute it and/or modify * it under the terms of the MIT license. See LICENSE for details. * * * This file specifies a part of the site-specific configuration for * Jansson, namely those things that affect the public API in...
30.38
40
(translation_unit) "/*\n * Copyright (c) 2010-2011 <NAME> <<EMAIL>>\n *\n * Jansson is free software; you can redistribute it and/or modify\n * it under the terms of the MIT license. See LICENSE for details.\n *\n *\n * This file specifies a part of the site-specific configuration for\n * Jansson, namely those things t...
65
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 30.38, "nodes": 56, "errors": 0, "source_hash": "9af2b8e5936605dc4617cc675f3aa9dd2bea47b381eaca2cec8997f2eb15095c", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,203
c
// // UIColor+KJExtension2.h // KJEmitterView // // Created by 杨科军 on 2020/9/14. // Copyright © 2020 杨科军. All rights reserved. // https://github.com/yangKJ/KJExtensionHandler #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN /// RGBA typedef struct KJColorRGBA { float red; float green; float blue; ...
28.39
38
(translation_unit) "//\n// UIColor+KJExtension2.h\n// KJEmitterView\n//\n// Created by 杨科军 on 2020/9/14.\n// Copyright © 2020 杨科军. All rights reserved.\n// https://github.com/yangKJ/KJExtensionHandler\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n/// RGBA\ntypedef struct KJColorRGBA {\n float red;\n ...
253
39
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 28.39, "nodes": 169, "errors": 0, "source_hash": "0df14800c742d8943a7dc49f8aa9477664e94b792b88b1544a604cb8a2400e6f", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "t/UIKit...
14,204
c
#include <pgf/pgf.h> #include <pgf/data.h> #include <pgf/linearizer.h> #include <gu/enum.h> typedef struct { int start, end; PgfCId cat; int lin_idx; } PgfPhrase; typedef struct { PgfLinFuncs* funcs; bool bind; GuOut* out; GuExn* err; int pos; GuBuf* marks; GuBuf* phrases; int found, matches; GuPool* pool...
26.69
177
(translation_unit) "#include <pgf/pgf.h>\n#include <pgf/data.h>\n#include <pgf/linearizer.h>\n#include <gu/enum.h>\n\ntypedef struct {\n int start, end;\n PgfCId cat;\n int lin_idx;\n} PgfPhrase;\n\ntypedef struct {\n PgfLinFuncs* funcs;\n bool bind;\n GuOut* out;\n GuExn* err;\n int pos;\n GuBuf* marks;\n GuBuf* phras...
1,592
4
{"language": "c", "success": true, "metadata": {"lines": 177, "avg_line_length": 26.69, "nodes": 1040, "errors": 0, "source_hash": "c328709ea102cb420d22895ab1743040e867ff03d9e015fce1b086325acfa27b", "categorized_nodes": 709}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
14,205
c
#pragma once namespace macro{ namespace ast{ class Ast{ }; } }
5.83
12
(translation_unit) "#pragma once \n \nnamespace macro{ \nnamespace ast{ \n \n class Ast{ \n \n \n }; \n \n} \n} \n" (preproc_call) "#pragma once \n" (preproc_directive) "#pragma" (preproc_arg) "once " (function_definition) "namespace macro{ \nnamespace ast{ \n \n class Ast{ \n \n \n }; \n \n} \n}" (ty...
24
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 5.83, "nodes": 11, "errors": 0, "source_hash": "e2d817c0f113d172e9bc0a8f21aa74cc02aed4e0a7e8468ea531a6c9d4546ff7", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
14,206
c
#pragma once #include <js_objects/object_base.h> SMP_MJS_SUPPRESS_WARNINGS_PUSH #include <js/Proxy.h> SMP_MJS_SUPPRESS_WARNINGS_POP #include <nlohmann/json.hpp> #include <optional> class JSObject; struct JSContext; struct JSClass; namespace Gdiplus { class Font; } namespace js { class BaseProxyHandler; } namesp...
35.44
89
(translation_unit) "#pragma once\n\n#include <js_objects/object_base.h>\n\nSMP_MJS_SUPPRESS_WARNINGS_PUSH\n#include <js/Proxy.h>\nSMP_MJS_SUPPRESS_WARNINGS_POP\n\n#include <nlohmann/json.hpp>\n\n#include <optional>\n\nclass JSObject;\nstruct JSContext;\nstruct JSClass;\n\nnamespace Gdiplus\n{\nclass Font;\n}\n\nnamespa...
827
21
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 35.44, "nodes": 535, "errors": 0, "source_hash": "e2c8576fb69f73951aef17e91c16dd65d325cf3ff8aa8357b1b3c1bfa7874462", "categorized_nodes": 330}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
14,207
c
//@ #include "assoclist.gh" /*@ lemma_auto(length(keys(map))) void length_keys<t1, t2>(list<pair<t1, t2> > map) requires true; ensures length(keys(map)) == length(map); { switch(map) { case nil: case cons(h, t): length_keys(t); } } lemma_auto(length(values(map))) void length_values<t1, t2>(list<pair<t...
27.5
268
(translation_unit) "//@ #include "assoclist.gh"\n\n/*@\nlemma_auto(length(keys(map))) void length_keys<t1, t2>(list<pair<t1, t2> > map)\n requires true;\n ensures length(keys(map)) == length(map);\n{\n switch(map) {\n case nil:\n case cons(h, t): length_keys(t);\n }\n}\n\nlemma_auto(length(values(map))) void ...
3
0
{"language": "c", "success": true, "metadata": {"lines": 268, "avg_line_length": 27.5, "nodes": 0, "errors": 0, "source_hash": "dcb0240a46cb7f409f2c5160cdc1005c3d2f2956a9a9cd5246b60cc220088ded", "categorized_nodes": 0}, "ast": {"root": "translation_unit", "nodes": []}, "node_categories": {"declarations": {"functions": ...
14,208
c
#ifndef ZNPCTYPETIKI_H #define ZNPCTYPETIKI_H #endif
16.67
3
(translation_unit) "#ifndef ZNPCTYPETIKI_H\n#define ZNPCTYPETIKI_H\n\n#endif" (preproc_ifdef) "#ifndef ZNPCTYPETIKI_H\n#define ZNPCTYPETIKI_H\n\n#endif" (#ifndef) "#ifndef" (identifier) "ZNPCTYPETIKI_H" (preproc_def) "#define ZNPCTYPETIKI_H\n" (#define) "#define" (identifier) "ZNPCTYPETIKI_H" ...
8
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 16.67, "nodes": 7, "errors": 0, "source_hash": "8af7de6a0ed78106f9a02b08093fbfb9dd6939acd93285765df9efdc7c55884e", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ZNP...
14,209
c
#include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <sys/mman.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <errno.h> #define MMAP_FILENAME "mmapfile.dat" #define MMAP_SIZE 64 char contents[128]; int main(int argc, char *argv[]) { int fd, flag_mmap...
27.68
50
(translation_unit) "#include <stdio.h>\n#include <unistd.h>\n#include <stdlib.h>\n#include <string.h>\n#include <sys/mman.h>\n#include <sys/types.h>\n#include <sys/stat.h>\n#include <fcntl.h>\n#include <errno.h>\n\n#define MMAP_FILENAME "mmapfile.dat"\n#define MMAP_SIZE 64\n\nchar contents[128];\n\nint main(int argc, ...
463
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 27.68, "nodes": 259, "errors": 0, "source_hash": "9a6372dfee7b4aa8f6efc9871d4858d4a0448374b78c1f4d4a46d94ba661c669", "categorized_nodes": 190}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,210
c
/* An example test TA implementation. */ #ifndef __TRUSTZONE_TA_M4U__ #define __TRUSTZONE_TA_M4U__ #define TZ_TA_M4U_UUID "m4u-smi-mau-spc" /* Data Structure for Test TA */ /* You should define data structure used both in REE/TEE here N/A for Test TA */ /* Command for Test TA */ #define M4U_TZCMD_TEST ...
34.02
54
(translation_unit) "/* An example test TA implementation.\n */\n\n#ifndef __TRUSTZONE_TA_M4U__\n#define __TRUSTZONE_TA_M4U__\n\n#define TZ_TA_M4U_UUID "m4u-smi-mau-spc"\n\n/* Data Structure for Test TA */\n/* You should define data structure used both in REE/TEE here\n N/A for Test TA */\n\n/* Command for Test TA *...
241
0
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 34.02, "nodes": 198, "errors": 0, "source_hash": "885819021c660d3fa04b021ed9c0993a0203edef34c060323e986249a8835dc9", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,211
c
#pragma once #include "Conversation.h" #include "Level.h" #include "Player.h" class AfterlifeLevel : public Level { Camera* camera; Player* player; Sprite* background; Sprite* portal; Conversation* conversation; Interactable* levelLoader; public: AfterlifeLevel(); ~AfterlifeLevel() ...
24
20
(translation_unit) "#pragma once\n\n#include "Conversation.h"\n#include "Level.h"\n#include "Player.h"\n\nclass AfterlifeLevel : public Level\n{\n Camera* camera;\n Player* player;\n\n Sprite* background;\n Sprite* portal;\n\n Conversation* conversation;\n Interactable* levelLoader;\n\npublic:\n Af...
148
6
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 24.0, "nodes": 93, "errors": 0, "source_hash": "4eeb75f26b1b3937f3ce3ef6325b30447fd7c704c2e713d8b18617cbe7c0d2f0", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
14,212
c
// // WTNotificationConfig.h // SongDa // // Created by Fancy on 2018/3/28. // Copyright © 2018年 维途. All rights reserved. // #ifndef WTNotificationConfig_h #define WTNotificationConfig_h /** 登录界面弹出通知 */ #define kShowLoginViewNotification @"showLoginViewNotification" /** 案件移交通知 */ #define kMyCaseTransferNote ...
33.5
34
(translation_unit) "//\n// WTNotificationConfig.h\n// SongDa\n//\n// Created by Fancy on 2018/3/28.\n// Copyright © 2018年 维途. All rights reserved.\n//\n\n#ifndef WTNotificationConfig_h\n#define WTNotificationConfig_h\n\n/** 登录界面弹出通知 */\n#define kShowLoginViewNotification @"showLoginViewNotification"\n\n/** 案件移交通知 ...
76
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 33.5, "nodes": 55, "errors": 0, "source_hash": "0fd6b44331a0e3d3c5d82efbf35998d47a19bd23a2adb6b3be8a73b2e4aa4c4a", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": " WTNotifi...
14,213
c
#pragma once namespace Net::Sockets { enum class EProtocolType: int { IP = 0, Icmp = 1, Igmp = 2, Ggp = 3, Tcp = 6, Pup = 12, Udp = 17, Idp = 22, UnofficialNetDisk = 77, Raw = 255 }; }
11.24
17
(translation_unit) "#pragma once\n\nnamespace Net::Sockets\n{\n enum class EProtocolType: int\n {\n IP = 0,\n Icmp = 1,\n Igmp = 2,\n Ggp = 3,\n Tcp = 6,\n Pup = 12,\n Udp = 17,\n Idp = 22,\n UnofficialNetDisk = 77,\n Raw = 255\n };\n}" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (...
87
3
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 11.24, "nodes": 63, "errors": 0, "source_hash": "6cb0eadb867780c06b64a04f11822872ca07a569f6b4bd243e47da657bb8ab42", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
14,214
c
/* * Copyright (c) 2011, <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 ...
38.17
35
(translation_unit) "/*\n * Copyright (c) 2011, <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 PROVI...
101
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 38.17, "nodes": 71, "errors": 0, "source_hash": "3b117c91d50b6bdd4c84dfa2e79c8fa7240447ce73f7abcf0837f554487e2db6", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,215
c
#include <stdio.h> #include <SDL2/SDL.h> #include "constants.h" /** * Global variables * Will be responsible for starting the SDL * If there is any error it will return false, * otherwise true */ SDL_Window *window = NULL; SDL_Renderer *renderer = NULL; int game_is_running = false; int last_frame_time = 0; /**...
25.84
195
(translation_unit) "#include <stdio.h>\n#include <SDL2/SDL.h>\n#include "constants.h"\n\n/**\n * Global variables\n * Will be responsible for starting the SDL\n * If there is any error it will return false,\n * otherwise true\n */\nSDL_Window *window = NULL;\nSDL_Renderer *renderer = NULL;\nint game_is_running = fals...
1,264
0
{"language": "c", "success": true, "metadata": {"lines": 195, "avg_line_length": 25.84, "nodes": 787, "errors": 0, "source_hash": "37fe362b34e71eb9c2e8d05cc60d24819e63e0b5254b35f5ca3cb3870ca7a45c", "categorized_nodes": 594}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,216
c
#include <simics.h> #include <stdarg.h> #include <stdio.h> #include <syscall.h> /* for readline() */ int sim_in_simics(void) { return sim_call(SIM_IN_SIMICS); } int sim_memsize(void) { return sim_call(SIM_MEMSIZE); } void sim_puts(const char *arg) { sim_call(SIM_PUTS, arg); } void sim_breakpoint(void...
20.46
48
(translation_unit) "#include <simics.h>\n#include <stdarg.h>\n#include <stdio.h>\n#include <syscall.h> /* for readline() */\n\nint sim_in_simics(void) {\n return sim_call(SIM_IN_SIMICS);\n}\n\nint sim_memsize(void) {\n return sim_call(SIM_MEMSIZE);\n}\n\nvoid sim_puts(const char *arg) {\n sim_call(SIM_PUTS,...
366
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 20.46, "nodes": 211, "errors": 0, "source_hash": "d150b1c1da1637294af678a851ab28b8e8098a8c0420936f0d8090795ef45fc2", "categorized_nodes": 144}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,217
c
/* This file is part of GNUnet. Copyright (C) 2002, 2003, 2004, 2006 GNUnet e.V. GNUnet 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 3, or (at your option) any late...
32.34
154
(translation_unit) "/*\n This file is part of GNUnet.\n Copyright (C) 2002, 2003, 2004, 2006 GNUnet e.V.\n\n GNUnet is free software; you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published\n by the Free Software Foundation; either version 3, or (at ...
1,048
0
{"language": "c", "success": true, "metadata": {"lines": 154, "avg_line_length": 32.34, "nodes": 573, "errors": 0, "source_hash": "22305056aa08fa32be206410c132a2f071fe7148a1b24f8e4ac3addb1e4efea9", "categorized_nodes": 429}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,218
c
#ifndef UVX_FS_H #define UVX_FS_H #include "utilities.h" #include <uv.h> namespace co { namespace fs { using file_t = uv_file; using stat_t = uv_stat_t; file_t open(const char *path, int flags, int mode = 0); int close(file_t file); int read(file_t file, const buf_t bufs[], uint nbufs, int64_t offset); int wri...
30.22
18
(translation_unit) "#ifndef UVX_FS_H\n#define UVX_FS_H\n\n#include "utilities.h"\n#include <uv.h>\n\nnamespace co {\n\nnamespace fs {\n\nusing file_t = uv_file;\n\nusing stat_t = uv_stat_t;\n\nfile_t open(const char *path, int flags, int mode = 0);\n\nint close(file_t file);\n\nint read(file_t file, const buf_t bufs[],...
200
1
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 30.22, "nodes": 137, "errors": 0, "source_hash": "952068e46cb27f19824e1f2982286835b78040689415d1c77936d0748304a255", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,219
c
#pragma once #include "CherryNotificationDialog.h" #include "CherryButton.h" class CNotificationDialog : public CCherryNotificationDialog { DECLARE_DYNAMIC(CNotificationDialog) public: CNotificationDialog(); virtual ~CNotificationDialog(); virtual BOOL OnInitDialog(); DECLARE_MESSAGE_MAP() virtual void PostNc...
22.89
18
(translation_unit) "#pragma once\n\n#include "CherryNotificationDialog.h"\n#include "CherryButton.h"\n\nclass CNotificationDialog : public CCherryNotificationDialog\n{\n DECLARE_DYNAMIC(CNotificationDialog)\npublic:\n CNotificationDialog();\n virtual ~CNotificationDialog();\n\n virtual BOOL OnInitDialog();\n\n DECLARE_...
104
6
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 22.89, "nodes": 65, "errors": 0, "source_hash": "5d0da4ff1186e9a1c0e6785d5a80b2f90c7c5b2a725cf257fc2e66fbad2d12a3", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
14,220
c
#define ECRYPT_VARIANT 1 #define ECRYPT_API /* ecrypt-sync.h */ /* * Header file for synchronous stream ciphers without authentication * mechanism. * * *** Please only edit parts marked with "[edit]". *** */ #ifndef ECRYPT_SYNC #define ECRYPT_SYNC #include "ecrypt-portable.h" /* -----------------------------...
32.25
228
(translation_unit) "#define ECRYPT_VARIANT 1\n#define ECRYPT_API\n/* ecrypt-sync.h */\n\n/* \n * Header file for synchronous stream ciphers without authentication\n * mechanism.\n * \n * *** Please only edit parts marked with "[edit]". ***\n */\n\n#ifndef ECRYPT_SYNC\n#define ECRYPT_SYNC\n\n#include "ecrypt-portable.h"...
534
1
{"language": "c", "success": true, "metadata": {"lines": 228, "avg_line_length": 32.25, "nodes": 372, "errors": 0, "source_hash": "06655e5accbaeca6cd094ad2b2cd121e5d4be52db9db8ea5f9a65802fba24949", "categorized_nodes": 235}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
14,221
c
/* sprache3.c */ # include <stdio.h> # include <locale.h> # include <libintl.h> int main() { bindtextdomain("sprache3", "."); textdomain("sprache3"); setlocale(LC_MESSAGES, ""); printf("%s\n", gettext("Hello world!")); printf("%s\n", gettext("This is a test.")); return(0); }
18.6
15
(translation_unit) "/*\n sprache3.c\n*/\n\n# include <stdio.h>\n# include <locale.h>\n# include <libintl.h>\n\nint main()\n {\n bindtextdomain("sprache3", ".");\n textdomain("sprache3");\n setlocale(LC_MESSAGES, "");\n printf("%s\n", gettext("Hello world!"));\n printf("%s\n", gettext("This is a test."));\n\n r...
111
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 18.6, "nodes": 49, "errors": 0, "source_hash": "e15075bf3b5d5e85e79d5b7f4a22fe780dbbff36d10cb11ec6494f8d71b05cdd", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "# inclu...
14,222
c
#ifndef CONFIG_H #define CONFIG_H #include "cmdline.h" #define MINIMUM_KEY_LENGTH 2 #define MAXIMUM_CONNECTIONS 512 #define LOADER_CHUNK 1024 extern char random_char[]; extern gengetopt_args_info args; #endif
22.22
9
(translation_unit) "#ifndef CONFIG_H\n#define CONFIG_H\n\n#include "cmdline.h"\n\n#define MINIMUM_KEY_LENGTH 2\n#define MAXIMUM_CONNECTIONS 512\n#define LOADER_CHUNK 1024\n\nextern char random_char[];\nextern gengetopt_args_info args;\n\n#endif" (preproc_ifdef) "#ifndef CONFIG_H\n#define CONFIG_H\n\n#include "cmdline...
41
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 22.22, "nodes": 33, "errors": 0, "source_hash": "9db37a8acfec512823023fb4677e9c421af35cab3849d2768db830492991ac13", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef C...
14,223
c
/* * TransactionOperations.h * * Created on: Jul 20, 2018 * Author: rigazilla */ #ifndef SRC_HOTROD_IMPL_OPERATIONS_TRANSACTIONOPERATIONS_H_ #define SRC_HOTROD_IMPL_OPERATIONS_TRANSACTIONOPERATIONS_H_ #include "hotrod/impl/operations/RetryOnFailureOperation.h" #include "hotrod/impl/transport/TransportFacto...
38.28
53
(translation_unit) "/*\n * TransactionOperations.h\n *\n * Created on: Jul 20, 2018\n * Author: rigazilla\n */\n\n#ifndef SRC_HOTROD_IMPL_OPERATIONS_TRANSACTIONOPERATIONS_H_\n#define SRC_HOTROD_IMPL_OPERATIONS_TRANSACTIONOPERATIONS_H_\n\n#include "hotrod/impl/operations/RetryOnFailureOperation.h"\n#include "hotro...
437
27
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 38.28, "nodes": 264, "errors": 0, "source_hash": "0cfecb6643a1fce8384f6554cbffcadf7bc11a7bf714ab1b3c663ae52386fbf9", "categorized_nodes": 202}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,224
c
/**************************************************************************** * apps/system/tee/tee.c * $NetBSD: tee.c,v 1.6 1997/10/20 00:37:11 lukem Exp $ * * Copyright (c) 2016. <NAME>. All rights reserved. * Author: <NAME> <<EMAIL>> * * Leveraged from NetBSD: * * Copyright (c) 1988, 1993 * Th...
30.78
213
(translation_unit) "/****************************************************************************\n * apps/system/tee/tee.c\n * $NetBSD: tee.c,v 1.6 1997/10/20 00:37:11 lukem Exp $\n *\n * Copyright (c) 2016. <NAME>. All rights reserved.\n * Author: <NAME> <<EMAIL>>\n *\n * Leveraged from NetBSD:\n *\n * Copyr...
1,147
10
{"language": "c", "success": true, "metadata": {"lines": 213, "avg_line_length": 30.78, "nodes": 690, "errors": 0, "source_hash": "3dc2b391fa247cd972b1d471bab7b6d42f709c490db4dc8b9e3b87c8c2f7deb2", "categorized_nodes": 469}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,225
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "UIView.h" #import "UIGestureRecognizerDelegate.h" @class NSString, UIImageView, UILabel; @interface QQDynamicFontProgressView : UIView <UIGestureRecognizerDelegate> { int ...
34.56
39
(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 "UIView.h"\n\n#import "UIGestureRecognizerDelegate.h"\n\n@class NSString, UIImageView, UILabel;\n\n@interface QQDynamicFontProgressView : UIView <UIGestu...
387
35
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 34.56, "nodes": 254, "errors": 0, "source_hash": "8c605c19c0c23e00167b0cd09eb75d38c82fcca29405d77b187256a8e7e4ae1d", "categorized_nodes": 149}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
14,226
c
#include <stdbool.h> bool gbool = false; void set_bool(bool v) { gbool = v; } bool get_bool_ret(void) { return gbool; } void get_bool_arg(bool *v) { *v = gbool; }
10.64
14
(translation_unit) "#include <stdbool.h>\n\nbool gbool = false;\n\nvoid\nset_bool(bool v)\n{ gbool = v;\n}\n\nbool\nget_bool_ret(void)\n{ return gbool;\n}\n\nvoid\nget_bool_arg(bool *v)\n{ *v = gbool;\n}\n\n" (preproc_include) "#include <stdbool.h>\n" (#include) "#include" (system_lib_string) "<stdbool.h>" ...
69
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 10.64, "nodes": 46, "errors": 0, "source_hash": "1aa3c19b3e6e83d2401f4947858b0bc319b09b7919411362be53a654fe1e7829", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
14,227
c
/* * Copyright (C) 2009-2010 Pengutronix * <NAME> <<EMAIL>> * * This program 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 <asm/sizes.h> #include <mach/hardware.h> #include <mach...
31.93
69
(translation_unit) "/*\n * Copyright (C) 2009-2010 Pengutronix\n * <NAME> <<EMAIL>>\n *\n * This program is free software; you can redistribute it and/or modify it under\n * the terms of the GNU General Public License version 2 as published by the\n * Free Software Foundation.\n */\n#include <asm/sizes.h>\n#include <ma...
395
1
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 31.93, "nodes": 263, "errors": 0, "source_hash": "2c77818366057705eccafc40291e512533bc329dc702eb4ae517a7ef0a5dd44c", "categorized_nodes": 201}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,228
c
// // LLScreenResolution.h // MacTrek // // Created by Chris & <NAME> on 11/03/2007. // Copyright 2007 Luky Soft. All rights reserved. // #import <Cocoa/Cocoa.h> #import "LLObject.h" // use this to define mode e.g. // // const struct screenMode screenModeList[] = { // { 640, 480, 8 }, /* 640 x 480, 8 bits per p...
25.93
29
(translation_unit) "//\n// LLScreenResolution.h\n// MacTrek\n//\n// Created by Chris & <NAME> on 11/03/2007.\n// Copyright 2007 Luky Soft. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n#import "LLObject.h"\n\n// use this to define mode e.g.\n//\n// const struct screenMode screenModeList[] = {\n// { 640, 480,...
111
8
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 25.93, "nodes": 62, "errors": 0, "source_hash": "2897a60ce3660db509b9c6682de13d257f7b5fd084e0c4b0c571966f47ec537e", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
14,229
c
#ifndef _MEMDEV_H_ #define _MEMDEV_H_ #ifndef MEMDEV_MAJOR #define MEMDEV_MAJOR 0 /*预设的mem的主设备号*/ #endif #ifndef MEMDEV_NR_DEVS #define MEMDEV_NR_DEVS 2 /*设备数*/ #endif #ifndef MEMDEV_SIZE #define MEMDEV_SIZE 4096 #endif /*mem设备描述结构体*/ struct mem_dev { char *data; unsigned long size; }; #endif /* _MEMDEV_H_ */
17.41
17
(translation_unit) "#ifndef _MEMDEV_H_\n#define _MEMDEV_H_\n\n#ifndef MEMDEV_MAJOR\n#define MEMDEV_MAJOR 0 /*预设的mem的主设备号*/\n#endif\n\n#ifndef MEMDEV_NR_DEVS\n#define MEMDEV_NR_DEVS 2 /*设备数*/\n#endif\n\n#ifndef MEMDEV_SIZE\n#define MEMDEV_SIZE 4096\n#endif\n\n/*mem设备描述结构体*/\nstruct mem_dev {\n char *data;\n unsigned lon...
55
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 17.41, "nodes": 44, "errors": 0, "source_hash": "26f784dc9f6b978b129297be69856a1be17b2d44b76bb82093f551e2677f2e14", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,230
c
/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #pragma once #include <AzCore/EBus/EBus.h> namespace LmbrCentral { /** * Messages servic...
30.44
25
(translation_unit) "/*\n * Copyright (c) Contributors to the Open 3D Engine Project.\n * For complete copyright and license terms please see the LICENSE at the root of this distribution.\n *\n * SPDX-License-Identifier: Apache-2.0 OR MIT\n *\n */\n#pragma once\n\n#include <AzCore/EBus/EBus.h>\n\nnamespace LmbrCentral\n...
72
4
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 30.44, "nodes": 43, "errors": 0, "source_hash": "2f767f00fa477e76c5651b2b28f45bc7ea644797f488999babb736ac29560393", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
14,231
c
/* Copyright (c) 2006-2017 Dovecot authors, see the included COPYING file */ #include "lib.h" #include "mountpoint.h" #include <sys/stat.h> #ifdef HAVE_SYS_VMOUNT_H # include <stdio.h> # include <sys/vmount.h> /* AIX */ # define MOUNTPOINT_AIX_MNTCTL #elif defined(HAVE_STATVFS_MNTFROMNAME) # include <sys/statvfs...
25.78
303
(translation_unit) "/* Copyright (c) 2006-2017 Dovecot authors, see the included COPYING file */\n\n#include "lib.h"\n#include "mountpoint.h"\n\n#include <sys/stat.h>\n\n#ifdef HAVE_SYS_VMOUNT_H\n# include <stdio.h>\n# include <sys/vmount.h> /* AIX */\n# define MOUNTPOINT_AIX_MNTCTL\n#elif defined(HAVE_STATVFS_MNTFR...
2,525
1
{"language": "c", "success": true, "metadata": {"lines": 303, "avg_line_length": 25.78, "nodes": 1678, "errors": 0, "source_hash": "dba231acb977bd1f5876da43759f13390f42a44902d4887b12ad32b56cb12f52", "categorized_nodes": 1244}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
14,232
c
/*********************************************************************** * Filename : clockreset.h * Author: <NAME> * * Copyright (c) 1996-2003 * CoWare, Inc. * 2121 North First St. * San Jose, CA 95131 * USA * * Purpose: clock + reset generator ***************************************************************...
21.42
52
(translation_unit) "/***********************************************************************\n * Filename : clockreset.h\n * Author: <NAME>\n *\n * Copyright (c) 1996-2003\n * CoWare, Inc.\n * 2121 North First St.\n * San Jose, CA 95131\n * USA\n *\n * Purpose: clock + reset generator\n ********************************...
260
12
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 21.42, "nodes": 156, "errors": 0, "source_hash": "412a9a084d3b8f32860dc35be7483bcb160baa068d344965c5413212924f9746", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,233
c
/* * Copyright (C) 2007 OpenedHand * Copyright (C) 2007 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your opti...
40.03
59
(translation_unit) "/*\n * Copyright (C) 2007 OpenedHand\n * Copyright (C) 2007 <NAME> <<EMAIL>>\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2 of th...
240
1
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 40.03, "nodes": 169, "errors": 0, "source_hash": "49c5419a3e98ae521f6644fdee683b128cacc16fb20eead18fa528d753182880", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,234
c
// Copyright (c) 2017 // <NAME> <<EMAIL>> // <NAME> <<EMAIL>> // // License: MIT (see LICENSE for details) #ifndef nsec_nearby_badges_h #define nsec_nearby_badges_h #include <stdint.h> #define NSEC_MAX_NEARBY_BADGES_COUNT (8) void nsec_nearby_badges_init(void); void nsec_nearby_badges_callback(uint16_t badge_id...
32.54
13
(translation_unit) "// Copyright (c) 2017\n// <NAME> <<EMAIL>>\n// <NAME> <<EMAIL>>\n//\n// License: MIT (see LICENSE for details)\n\n#ifndef nsec_nearby_badges_h\n#define nsec_nearby_badges_h\n\n#include <stdint.h>\n\n#define NSEC_MAX_NEARBY_BADGES_COUNT (8)\n\nvoid nsec_nearby_badges_init(void);\nvoid nsec_nearby...
65
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 32.54, "nodes": 43, "errors": 0, "source_hash": "a5d7711df8257f7be3e5b1eee6842cd996da3a1936c7a2a78ca03b56807dcebc", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,235
c
#ifndef CTX_MAGIC #define CTX_MAGIC 0xCAFEBABE #endif #ifndef ARCHI_SIZE #define ARCHI_SIZE 4 #endif typedef void (func_t) (void*); enum ctx_state_e {CTX_INIT, CTX_EXEC, CTX_END}; struct ctx_s { unsigned int ctx_magic; void* ctx_esp; void* ctx_ebp; unsigned char* ctx_base; func_t* ctx_f; voi...
23.89
19
(translation_unit) "#ifndef CTX_MAGIC\n#define CTX_MAGIC 0xCAFEBABE\n#endif\n\n#ifndef ARCHI_SIZE\n#define ARCHI_SIZE 4\n#endif\n\ntypedef void (func_t) (void*);\n\nenum ctx_state_e {CTX_INIT, CTX_EXEC, CTX_END};\n\nstruct ctx_s {\n unsigned int ctx_magic;\n void* ctx_esp;\n void* ctx_ebp;\n unsigned char* ...
143
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 23.89, "nodes": 112, "errors": 0, "source_hash": "0399af43cf31b6cf2ca1dcdd815ad6d2d014e1511538f08d712ed4df432baeec", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,236
c
/* * (C) Copyright 2020- ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an interg...
36.1
31
(translation_unit) "/*\n * (C) Copyright 2020- ECMWF.\n *\n * This software is licensed under the terms of the Apache Licence Version 2.0\n * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.\n * In applying this licence, ECMWF does not waive the privileges and immunities\n * granted to it by virtue ...
213
15
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 36.1, "nodes": 113, "errors": 0, "source_hash": "fcd4cc184b74bf98baef7ee7b75505ca49d413efa6d7d40c05e2bcccaae64a8a", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,237
c
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE 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 app...
35.7
317
(translation_unit) "// Copyright 2015-2016 Espressif Systems (Shanghai) PTE 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/...
645
0
{"language": "c", "success": true, "metadata": {"lines": 317, "avg_line_length": 35.7, "nodes": 398, "errors": 0, "source_hash": "188a0e36c27a564520c39a5a01eabaf83799cccffcba5c7dbd81bbb347c59d48", "categorized_nodes": 254}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,238
c
#ifndef GLTFVIEWER_SCENE_H #define GLTFVIEWER_SCENE_H #include <vector> #include <string> class Node; class Scene { public: const std::string name; std::vector<Node *> nodes; Scene(const std::string &name); virtual ~Scene(); void render(); }; #endif //GLTFVIEWER_SCENE_H
17.31
16
(translation_unit) "#ifndef GLTFVIEWER_SCENE_H\n#define GLTFVIEWER_SCENE_H\n\n\n#include <vector>\n#include <string>\n\nclass Node;\n\nclass Scene {\npublic:\n const std::string name;\n std::vector<Node *> nodes;\n\n Scene(const std::string &name);\n\n virtual ~Scene();\n\n void render();\n};\n\n\n#endif...
92
6
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 17.31, "nodes": 54, "errors": 0, "source_hash": "9353d551d1cb98f4624829381751e6f7e308aab0cd79dd1c0e14d5b9d442ec64", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,239
c
/** * Copyright (C) 2005 <NAME> <<EMAIL>>, IBM * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. **/ #include <li...
26.94
108
(translation_unit) "/**\n * Copyright (C) 2005 <NAME> <<EMAIL>>, IBM\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\n * 2 of the License, or (at your option) any later ...
669
3
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 26.94, "nodes": 417, "errors": 0, "source_hash": "4e2936b754462943b34f419245df463d405ed5426c8e77c183a2ba3c81dc5b67", "categorized_nodes": 285}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,240
c
//***************************************************************************** // // icc.c - Driver for the icc Module. // //***************************************************************************** //***************************************************************************** // //! \addtogroup icc_api ...
20.44
160
(translation_unit) "//***************************************************************************** \n// \n// icc.c - Driver for the icc Module. \n// \n//***************************************************************************** \n \n//***************************************************************************** \n/...
1,098
0
{"language": "c", "success": true, "metadata": {"lines": 160, "avg_line_length": 20.44, "nodes": 680, "errors": 0, "source_hash": "cf8a6068b82121d7bacdfde6bcd8b5b9a2ff4f8858f3978142e814736af1300b", "categorized_nodes": 502}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,241
c
#include "types.h" #include "x86.h" #include "defs.h" #include "date.h" #include "param.h" #include "memlayout.h" #include "mmu.h" //#include "uproc.h" #include "proc.h" //#include "stat.h" //#include "fs.h" int sys_getprocs(void) //Returns number of processes { //This is the ptr to our userspace struct uproc ...
15.17
104
(translation_unit) "#include "types.h"\n#include "x86.h"\n#include "defs.h"\n#include "date.h"\n#include "param.h"\n#include "memlayout.h"\n#include "mmu.h"\n//#include "uproc.h"\n#include "proc.h"\n//#include "stat.h"\n//#include "fs.h"\n\n\nint\nsys_getprocs(void) //Returns number of processes\n{\n //This is the ...
546
0
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 15.17, "nodes": 307, "errors": 0, "source_hash": "2d67e12e444bc907f2fbece5c3eb8b65cb8eaa8fe5c6e42da348af79232af222", "categorized_nodes": 237}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,242
c
/** * Copyright 2017 <NAME> * All rights reserved. * See License.txt file * */ #ifndef PRIORITYDISCIPLINE_H #define PRIORITYDISCIPLINE_H #include "schedulingDiscipline.h" #include <memory> namespace Scheduler { class PriorityDiscipline : public SchedulingDiscipline { public: PriorityDiscipline(std::shared_p...
36.2
35
(translation_unit) "/**\n * Copyright 2017 <NAME>\n * All rights reserved.\n * See License.txt file\n *\n */\n\n\n\n#ifndef PRIORITYDISCIPLINE_H\n#define PRIORITYDISCIPLINE_H\n\n#include "schedulingDiscipline.h"\n#include <memory>\n\nnamespace Scheduler\n{\n\nclass PriorityDiscipline : public SchedulingDiscipline\n{\np...
227
15
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 36.2, "nodes": 145, "errors": 0, "source_hash": "ee35a54f483762374e4aa35f40fdc8b52ad95f515f4de470fd7c4cc012f8b250", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,243
c
#ifndef __BASE_RULE_CACHE_H__ #define __BASE_RULE_CACHE_H__ #include "riscv_isa.h" //#include <inttypes.h> struct compare_ops { bool operator()(const operands_t &a, const operands_t &b) const { return (a.op1 == b.op1 && a.op2 == b.op2 && a.op3 == b.op3 && a.mem == b.mem && ...
26.29
41
(translation_unit) "#ifndef __BASE_RULE_CACHE_H__\n#define __BASE_RULE_CACHE_H__\n\n#include "riscv_isa.h"\n//#include <inttypes.h>\n\nstruct compare_ops {\n bool operator()(const operands_t &a, const operands_t &b) const {\n return (a.op1 == b.op1 &&\n a.op2 == b.op2 &&\n a.op3 == b.op3 &&\n ...
334
12
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 26.29, "nodes": 218, "errors": 0, "source_hash": "96916fcdcd6764fd93e9be1b3bb732b64fbbbcff60f13e62b21bb43b0dece6e5", "categorized_nodes": 143}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,244
c
/* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class org_jnetpcap_packet_JScannerReference */ #ifndef _Included_org_jnetpcap_packet_JScannerReference #define _Included_org_jnetpcap_packet_JScannerReference #ifdef __cplusplus extern "C" { #endif /* Inaccessible static: lock */ /* I...
27.68
22
(translation_unit) "/* DO NOT EDIT THIS FILE - it is machine generated */\n#include <jni.h>\n/* Header for class org_jnetpcap_packet_JScannerReference */\n\n#ifndef _Included_org_jnetpcap_packet_JScannerReference\n#define _Included_org_jnetpcap_packet_JScannerReference\n#ifdef __cplusplus\nextern "C" {\n#endif\n/* Inac...
58
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 27.68, "nodes": 39, "errors": 0, "source_hash": "4d5ee5f9ae85455c1c4441a392e85711bde226aeef5fcd068ddf8e2576691db0", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
14,245
c
/********************************************************************** * * GEOS - Geometry Engine Open Source * http://geos.osgeo.org * * Copyright (C) 2005-2006 Refractions Research Inc. * Copyright (C) 2001-2002 Vivid Solutions Inc. * * This is free software; you can redistribute and/or modify it under * th...
30.15
109
(translation_unit) "/**********************************************************************\n *\n * GEOS - Geometry Engine Open Source\n * http://geos.osgeo.org\n *\n * Copyright (C) 2005-2006 Refractions Research Inc.\n * Copyright (C) 2001-2002 Vivid Solutions Inc.\n *\n * This is free software; you can redistribute ...
440
17
{"language": "c", "success": true, "metadata": {"lines": 109, "avg_line_length": 30.15, "nodes": 253, "errors": 0, "source_hash": "98e634041311d9a0eef807e49242d01a581007bec982947afa212921eda21098", "categorized_nodes": 173}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
14,246
c
/** * @file apn_debug.h * @brief include some usefull global definition and functions. * @author lide, <EMAIL> * @date 2012-04-24 */ #ifndef APN_DEBUG_H #define APN_DEBUG_H #include "apr.h" #include "ap_config.h" #include "httpd.h" #include "http_config.h" #ifdef __cplusplus extern "C" { #endif #define A...
32.56
39
(translation_unit) "/** \n * @file apn_debug.h\n * @brief include some usefull global definition and functions.\n * @author lide, <EMAIL>\n * @date 2012-04-24\n */\n\n\n#ifndef APN_DEBUG_H\n#define APN_DEBUG_H\n\n#include "apr.h"\n\n#include "ap_config.h"\n#include "httpd.h"\n#include "http_config.h"\n\n#ifdef __cplusp...
222
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 32.56, "nodes": 143, "errors": 0, "source_hash": "490d2b25af4dfc87e57648c463d48dec939cbb1c0405dbc797a931dc8ff74c64", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,247
c
/* $NetBSD: grackle.c,v 1.3 2002/05/16 01:01:38 thorpej Exp $ */ /*- * Copyright (c) 2000 <NAME>. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must r...
29.57
154
(translation_unit) "/* $NetBSD: grackle.c,v 1.3 2002/05/16 01:01:38 thorpej Exp $ */\n\n/*-\n * Copyright (c) 2000 <NAME>. All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistrib...
1,172
3
{"language": "c", "success": true, "metadata": {"lines": 154, "avg_line_length": 29.57, "nodes": 730, "errors": 0, "source_hash": "13471a5ed5e60c61789fe2073ca522173f633e4081fded5d2b0c0e772980b813", "categorized_nodes": 555}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,248
c
#ifndef __Bluetooth_HC05 #define __Bluetooth_HC05 #include "Arduino.h" #include "HardwareSerial.h" #include "WString.h" class Bluetooth_HC05 { typedef void(*CallbackFunc_t)(void); public: Bluetooth_HC05(HardwareSerial *serialx, int16_t State_Pin = -1, int16_t EN_Pin = -1, int16_t PowerCtrl_Pin = -1); void...
29.18
33
(translation_unit) "#ifndef __Bluetooth_HC05\n#define __Bluetooth_HC05\n\n#include "Arduino.h"\n#include "HardwareSerial.h"\n#include "WString.h"\n\nclass Bluetooth_HC05\n{\n typedef void(*CallbackFunc_t)(void);\npublic:\n Bluetooth_HC05(HardwareSerial *serialx, int16_t State_Pin = -1, int16_t EN_Pin = -1, int16_...
289
4
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 29.18, "nodes": 200, "errors": 0, "source_hash": "f0d0afc08785cb0999c6c36121f67c312d6a5c39a2b1ffa6d405c689ecaef852", "categorized_nodes": 131}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,249
c
/* Copyright (c) <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the follo...
36.37
87
(translation_unit) "/* Copyright (c) <NAME>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice,\n * this list ...
811
0
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 36.37, "nodes": 610, "errors": 0, "source_hash": "600387ce82cffa31efa4838073e094970b475da41e484328dbaef1a4dc861d19", "categorized_nodes": 399}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ...
14,250
c
#include "linkedlist.h" int main() { Node node; node.floatValue = 3.14159; printf("Node's long value is: %ld", node.longValue); return 0; }
18.62
8
(translation_unit) "#include "linkedlist.h"\n\n\nint main() {\n Node node;\n node.floatValue = 3.14159;\n printf("Node's long value is: %ld", node.longValue);\n\n return 0;\n}\n" (preproc_include) "#include "linkedlist.h"\n" (#include) "#include" (string_literal) ""linkedlist.h"" (") """ ...
50
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 18.62, "nodes": 26, "errors": 0, "source_hash": "30d9b562a88eb6c61d153f6c3bab1e5d4a66f95ea5de7710a87a445e7d099359", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
14,251
c
/***************************************************************** * Copyright (c) 2021 CodeAbove. * All rights reserved. * * This software component is licensed by CodeAbove under * BSD 3-Clause license, the 'License'. You may not use * this file except in compliance with the License. You * may obtain a copy of...
30.14
69
(ERROR) "/*****************************************************************\n * Copyright (c) 2021 CodeAbove.\n * All rights reserved.\n *\n * This software component is licensed by CodeAbove under\n * BSD 3-Clause license, the 'License'. You may not use\n * this file except in compliance with the License. You\n * may ...
467
9
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 30.14, "nodes": 311, "errors": 0, "source_hash": "9648186ba1420f30cc78312232ce29083253d04ba1ff6325ed73478552af2179", "categorized_nodes": 202}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "/************************...
14,252
c
/* * Automatically Generated from Mathematica. * Tue 8 Jan 2019 22:43:36 GMT-05:00 */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include "R_knee_to_shin_left_src.h" #ifdef _MSC_VER #define INLINE __forceinline /* use __forceinline (VC++ specific) */ #else #define INLINE static __inline__ ...
23.04
240
(translation_unit) "/*\n * Automatically Generated from Mathematica.\n * Tue 8 Jan 2019 22:43:36 GMT-05:00\n */\n#include <stdio.h>\n#include <stdlib.h>\n#include <math.h>\n\n#include "R_knee_to_shin_left_src.h"\n\n#ifdef _MSC_VER\n #define INLINE __forceinline /* use __forceinline (VC++ specific) */\n#else\n #define...
2,052
16
{"language": "c", "success": true, "metadata": {"lines": 240, "avg_line_length": 23.04, "nodes": 1497, "errors": 0, "source_hash": "08c94bcf6551fb4dc12513d905873f055f816d40147e90cd41ca51748532b956", "categorized_nodes": 1055}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
14,253
c
/* ***************************************************************************** ** ** (C) 2019 <NAME> <<EMAIL>> ** ** This code is licenced under the MIT. ** ***************************************************************************** */ #include <SEGGER_RTT.h> #include <printf.h> #include <ctype.h> #include <stri...
30.92
131
(translation_unit) "/*\n*****************************************************************************\n**\n** (C) 2019 <NAME> <<EMAIL>>\n**\n** This code is licenced under the MIT.\n**\n*****************************************************************************\n*/\n\n#include <SEGGER_RTT.h>\n#include <printf.h>\n#...
1,128
0
{"language": "c", "success": true, "metadata": {"lines": 131, "avg_line_length": 30.92, "nodes": 610, "errors": 0, "source_hash": "74bbf563b3f03e87fbe5899604497b18fe90008659d828e42380c1b0327684d7", "categorized_nodes": 389}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,254
c
// // ConcurrencyCompleteLibrary.h // ConcurrencyCompleteLibrary // // Created by satoutakeshi on 2022/04/16. // #import <Foundation/Foundation.h> //! Project version number for ConcurrencyCompleteLibrary. FOUNDATION_EXPORT double ConcurrencyCompleteLibraryVersionNumber; //! Project version string for Concurrency...
46.25
12
(translation_unit) "//\n// ConcurrencyCompleteLibrary.h\n// ConcurrencyCompleteLibrary\n//\n// Created by satoutakeshi on 2022/04/16.\n//\n\n#import <Foundation/Foundation.h>\n\n//! Project version number for ConcurrencyCompleteLibrary.\nFOUNDATION_EXPORT double ConcurrencyCompleteLibraryVersionNumber;\n\n//! Projec...
32
1
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 46.25, "nodes": 15, "errors": 0, "source_hash": "062513e551d97191d2083e13cd9685fcd2586e77d1ace47f29a883bd5e390907", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
14,255
c
// // ClockViewController.h // KVOController // // Created by 王晨晓 on 16/4/13. // Copyright © 2016年 winsan. All rights reserved. // #import <UIKit/UIKit.h> @interface ClockViewController : UIViewController @end
18.55
11
(translation_unit) "//\n// ClockViewController.h\n// KVOController\n//\n// Created by 王晨晓 on 16/4/13.\n// Copyright © 2016年 winsan. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ClockViewController : UIViewController\n\n\n@end\n\n" (comment) "//" (comment) "// ClockViewController.h" (comm...
19
3
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 18.55, "nodes": 10, "errors": 0, "source_hash": "b8abe71d7b76387263ddaf819237a2f8e104bd2d80196bba60ccd5cf2531dd86", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit/UIKi...
14,256
c
/*Write a program that uses a function to find the highest and lowest number of 3 values. These 3 values must be passed as parameters to the function, i.e. function_name(int, int, int). Your function should find these values and display messages stating: The Highest value is x The Lowest value is y Author: <NAME>...
18.92
64
(translation_unit) "/*Write a program that uses a function to find the highest and lowest number of 3 \nvalues. These 3 values must be passed as parameters to the function, i.e. \nfunction_name(int, int, int). Your function should find these values and display \nmessages stating: \nThe Highest value is x \nThe Lowest v...
294
0
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 18.92, "nodes": 156, "errors": 0, "source_hash": "3801ddea80d1c63f0ba1e7bf3165d05f59e43490aa7e212f6a3c29cc9c14bec5", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,257
c
#ifndef NOKOGIRI_XML_TEXT #define NOKOGIRI_XML_TEXT #include <nokogiri.h> void init_xml_text(); extern VALUE cNokogiriXmlText ; #endif
21.5
6
(translation_unit) "#ifndef NOKOGIRI_XML_TEXT\n#define NOKOGIRI_XML_TEXT\n\n#include <nokogiri.h>\n\nvoid init_xml_text();\n\nextern VALUE cNokogiriXmlText ;\n#endif\n" (preproc_ifdef) "#ifndef NOKOGIRI_XML_TEXT\n#define NOKOGIRI_XML_TEXT\n\n#include <nokogiri.h>\n\nvoid init_xml_text();\n\nextern VALUE cNokogiriXmlT...
25
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 21.5, "nodes": 20, "errors": 0, "source_hash": "4d1419c4881bc4488ef822c4d09d6279710164a5f4087598ce12c14dff862b75", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef NO...
14,258
c
/* * Copyright (C) 2013-2014 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, publish...
30.87
176
(translation_unit) "/*\n * Copyright (C) 2013-2014 <NAME>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, co...
1,615
2
{"language": "c", "success": true, "metadata": {"lines": 176, "avg_line_length": 30.87, "nodes": 1061, "errors": 0, "source_hash": "6f762f2b7ed04f46b7caab9567c798a2fc1ac1c07d512e30ecff1f2faaa730c3", "categorized_nodes": 801}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
14,259
c
#pragma once #include <vector> #include "glm.h" #include "camera.h" #include "object.h" #include "shader.h" #pragma pack(push, 1) struct Vertex { float x, y, z; float tex_u, tex_v; }; struct VIndices { unsigned first, second, third; }; #pragma pack(pop) struct VertArrayObj { unsigned vbo, ebo, vao;...
21.9
48
(translation_unit) "#pragma once\n\n#include <vector>\n\n#include "glm.h"\n#include "camera.h"\n#include "object.h"\n#include "shader.h"\n\n\n#pragma pack(push, 1)\nstruct Vertex {\n float x, y, z;\n float tex_u, tex_v;\n};\nstruct VIndices {\n unsigned first, second, third;\n};\n#pragma pack(pop)\n\nstruct Ve...
371
13
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 21.9, "nodes": 233, "errors": 0, "source_hash": "16b0fdd829af0d110ab995fc92dcc479623b0fc89ab867202dbd547023d948e8", "categorized_nodes": 169}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
14,260
c
#pragma once #include <ImFusion/GUI/DisplayWidgetMulti.h> #include <ImFusion/GUI/MainWindowBase.h> #include <memory> namespace ImFusion { // Minimalistic demo application to show a DICOM data set. // We inherit from ImFusion::ApplicationController to automatically take care of initializing // the ImFusion SDK as...
30.47
19
(translation_unit) "#pragma once\n\n#include <ImFusion/GUI/DisplayWidgetMulti.h>\n#include <ImFusion/GUI/MainWindowBase.h>\n\n#include <memory>\n\n\nnamespace ImFusion\n{\n // Minimalistic demo application to show a DICOM data set.\n // We inherit from ImFusion::ApplicationController to automatically take care of initi...
75
4
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 30.47, "nodes": 41, "errors": 0, "source_hash": "fa92d88afd8f7ff2c2b601a67042b8f877a943393b487639e932cf67bcfdb3d3", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
14,261
c
#pragma once #include "ck/core/platform.h" #include "ck/core/types.h" #include "ck/audio/soundname.h" #include "ck/audio/sampleinfo.h" namespace Cki { class BinaryStream; class MemoryFixup; // TODO make class? struct Sample { Sample(); SoundName name; // 32 bytes SampleInfo info; // 28 bytes uint3...
18
25
(translation_unit) "#pragma once\n\n#include "ck/core/platform.h"\n#include "ck/core/types.h"\n#include "ck/audio/soundname.h"\n#include "ck/audio/sampleinfo.h"\n\nnamespace Cki\n{\n\nclass BinaryStream;\nclass MemoryFixup;\n\n// TODO make class?\nstruct Sample\n{\n Sample();\n\n SoundName name; // 32 bytes\n ...
115
3
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 18.0, "nodes": 66, "errors": 0, "source_hash": "db2aa35e12570c964cc82367091b78ea5a0608b4bcacefd27ce1ea17669579e0", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
14,262
c
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <sys/syscall.h> #include <unistd.h> int main (int argc, char *argv[]) { int child; /* If a second argument is given * fork by means of clone */ if (argc == 2 && !strcmp("-c", argv[1])) { puts("Fork by clone(2)"); ...
23.14
29
(translation_unit) "#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n\n#include <sys/syscall.h>\n#include <unistd.h>\n\n\nint main (int argc, char *argv[]) {\n int child;\n\n /* If a second argument is given\n * fork by means of clone\n */\n if (argc == 2 && !strcmp("-c", argv[1])) {\n ...
210
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 23.14, "nodes": 109, "errors": 0, "source_hash": "52f75149e527c5bd3106ece89ded4eb2d520e7d6086c02211906591efb07a5d4", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
14,263
c
#include <stdio.h> #include "hercsock.h" void main () { SOCKET i; struct herc_in_addr bacc; struct sockaddr a; struct sockaddr_in * b; int l = sizeof (a); i = 1; while (i != 1024) { b = (void *)&a; if (getsockname (i, &a, &l) != SOCKET_ERROR) { bacc.S_un.S_ad...
26.57
23
(translation_unit) "#include <stdio.h>\n\n#include "hercsock.h"\n\nvoid main () {\n SOCKET i;\n struct herc_in_addr bacc;\n struct sockaddr a;\n struct sockaddr_in * b;\n int l = sizeof (a);\n\n i = 1;\n while (i != 1024) {\n\n b = (void *)&a;\n if (getsockname (i, &a, &l) != SOCKET_E...
211
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 26.57, "nodes": 127, "errors": 0, "source_hash": "9c895c0fed75d9b3a39c3ee799b3eb2626c6e9f2d85356b5bb4a359d46b56423", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,264
c
/********************************************************************** Audacity: A Digital Audio Editor MixerToolbar.h <NAME> **********************************************************************/ #ifndef __AUDACITY_MIXER_TOOLBAR__ #define __AUDACITY_MIXER_TOOLBAR__ #include "ToolBar.h" class wxImage; cl...
26.85
47
(translation_unit) "/**********************************************************************\n\n Audacity: A Digital Audio Editor\n\n MixerToolbar.h\n\n <NAME>\n\n**********************************************************************/\n\n#ifndef __AUDACITY_MIXER_TOOLBAR__\n#define __AUDACITY_MIXER_TOOLBAR__\n\n#inclu...
311
9
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 26.85, "nodes": 191, "errors": 0, "source_hash": "362f44d5c390148ed55648fbabcc4d3a3c2650ca50fbbb0759be9c14b39b366d", "categorized_nodes": 129}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
14,265
c
#include <stdio.h> #include <string.h> #include <stdlib.h> void otpauthentication() { char str[63] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; int n = strlen(str); int inp; char otp[8]; char OTP[8]; for (int i=0; i<=6; i++) OTP[i]=str[rand()%n]; ...
24.26
34
(translation_unit) "#include <stdio.h> \n#include <string.h> \n#include <stdlib.h> \n \nvoid otpauthentication() \n{ \n char str[63] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; \n int n = strlen(str); \n int inp; \n char otp[8]; \n char OTP[8]; \n for (int i=0; i<=6; i++) \n ...
291
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 24.26, "nodes": 161, "errors": 0, "source_hash": "8dce1964d4d8d1bf5f3d5ba7b4b67db567ff8dcbc352ee91452da63aacbea949", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,266
c
#ifndef AlignmentCorrectnessEstimation_h #define AlignmentCorrectnessEstimation_h class AlignmentCorrectnessEstimationState { public: AlignmentCorrectnessEstimationState(); bool CurrentlyCorrect() const; bool CorrectFromCorrect() const; bool FalseFromCorrect() const; double CorrectLogOdds() const; dou...
25.86
21
(translation_unit) "#ifndef AlignmentCorrectnessEstimation_h \n#define AlignmentCorrectnessEstimation_h \n \nclass AlignmentCorrectnessEstimationState \n{ \npublic: \n AlignmentCorrectnessEstimationState(); \n bool CurrentlyCorrect() const; \n bool CorrectFromCorrect() const; \n bool FalseFromCorrect() const; \n double...
103
3
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 25.86, "nodes": 57, "errors": 0, "source_hash": "1d9295d3c944442eb8fad226a54065c27924665054d41bedba7058a6aa9171ef", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,267
c
#ifndef GROUP_H_ #define GROUP_H_ #include <iostream> #include "boost/integer.hpp" #include "boost/date_time/posix_time/posix_time_types.hpp" #include "numero.h" /* * Type to hold a group size */ using group_size_t = boost::uint_value_t<MAX_ENTITIES>::least; /* * Group of entities */ class Group { private: /*...
23.05
58
(translation_unit) "#ifndef GROUP_H_\n#define GROUP_H_\n\n#include <iostream>\n#include "boost/integer.hpp"\n#include "boost/date_time/posix_time/posix_time_types.hpp"\n#include "numero.h"\n\n/*\n * Type to hold a group size\n */\nusing group_size_t = boost::uint_value_t<MAX_ENTITIES>::least;\n\n/*\n * Group of entitie...
241
17
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 23.05, "nodes": 124, "errors": 0, "source_hash": "c5ce07f22c8eb3a0c41c1eb7d11ffd4b0e88a58e109a44a4d746db96931b1846", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,268
c
/* +----------------------------------------------------------------------+ | image filtering tools for GD image resource | +----------------------------------------------------------------------+ | Author: <NAME> | +----------------------------------------...
23.1
97
(translation_unit) "/*\n +----------------------------------------------------------------------+\n | image filtering tools for GD image resource |\n +----------------------------------------------------------------------+\n | Author: <NAME> |\n +---------------...
829
0
{"language": "c", "success": true, "metadata": {"lines": 97, "avg_line_length": 23.1, "nodes": 554, "errors": 0, "source_hash": "afe72d5b197642ff2c9285aac6aef89185deb004b7c7ce5ff6db495e2edc7e96", "categorized_nodes": 411}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
14,269
c
// // ssl-49-sni.c // libsecurity_ssl // // #include <stdbool.h> #include <pthread.h> #include <fcntl.h> #include <sys/mman.h> #include <unistd.h> #include <CoreFoundation/CoreFoundation.h> #include <AssertMacros.h> #include <Security/SecureTransportPriv.h> /* SSLSetOption */ #include <Security/SecureTransport.h>...
28.92
219
(translation_unit) "//\n// ssl-49-sni.c\n// libsecurity_ssl\n//\n//\n\n\n#include <stdbool.h>\n#include <pthread.h>\n#include <fcntl.h>\n#include <sys/mman.h>\n#include <unistd.h>\n\n#include <CoreFoundation/CoreFoundation.h>\n\n#include <AssertMacros.h>\n#include <Security/SecureTransportPriv.h> /* SSLSetOption */\n...
1,624
0
{"language": "c", "success": true, "metadata": {"lines": 219, "avg_line_length": 28.92, "nodes": 997, "errors": 0, "source_hash": "ed2689ba3bffabe647427589d246622371dcc307a75091f320ae3acacf82adc1", "categorized_nodes": 735}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,270
c
// MusicXML Class Library // Copyright (c) by <NAME> // Distributed under the MIT License #pragma once #include "mxtest/control/CompileControl.h" #ifdef MX_COMPILE_CORE_TESTS #include "mxtest/core/HelperFunctions.h" #include "mx/core/Elements.h" namespace mxtest { mx::core::UnpitchedPtr tgenUnpitched( TestMode ...
28.29
14
(translation_unit) "// MusicXML Class Library\n// Copyright (c) by <NAME>\n// Distributed under the MIT License\n\n#pragma once\n\n#include "mxtest/control/CompileControl.h"\n#ifdef MX_COMPILE_CORE_TESTS\n\n#include "mxtest/core/HelperFunctions.h"\n#include "mx/core/Elements.h"\n\nnamespace mxtest\n{\n mx::core::Unp...
80
3
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 28.29, "nodes": 47, "errors": 0, "source_hash": "2ddc1559f2b1310b7470895ae3afd7a7f8855ef56952fefa4a80b39423d1241b", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
14,271
c
#pragma once class VzGlobal { public: static GLFWwindow* WindowCtx; };
13.4
5
(translation_unit) "#pragma once\n\nclass VzGlobal {\npublic:\n static GLFWwindow* WindowCtx;\n};" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (function_definition) "class VzGlobal {\npublic:\n static GLFWwindow* WindowCtx;\n}" (type_identifier) "class" (identi...
23
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 13.4, "nodes": 11, "errors": 0, "source_hash": "a49a5ed516df7074562360b959b96c1e0cd901952fc91cba5970555150774dda", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once...
14,272
c
#pragma once namespace common { int one(); } // namespace common
15.25
4
(translation_unit) "#pragma once\n\nnamespace common {\n\nint one();\n\n} // namespace common\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (function_definition) "namespace common {\n\nint one();\n\n}" (type_identifier) "namespace" (identifier) "common" (c...
19
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 15.25, "nodes": 11, "errors": 0, "source_hash": "75b9d8e1426b2477ae0e57852a4f44172c489e1cb928372ff0c81f3d01933cc1", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
14,273
c
#pragma once #include <string> #include <fnd/types.h> #include <crypto/aes.h> #include <crypto/sha.h> #include <fnd/ISerialiseableBinary.h> namespace nx { namespace npdm { const std::string kNpdmStructSig = "META"; static const size_t kNameMaxLen = 0x10; static const size_t kProductCodeMaxLen = 0x10; static ...
21.77
52
(translation_unit) "#pragma once\n#include <string>\n#include <fnd/types.h>\n#include <crypto/aes.h>\n#include <crypto/sha.h>\n#include <fnd/ISerialiseableBinary.h>\n\nnamespace nx\n{\n namespace npdm\n {\n const std::string kNpdmStructSig = "META";\n static const size_t kNameMaxLen = 0x10;\n static const size_t kPr...
256
3
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 21.77, "nodes": 161, "errors": 0, "source_hash": "705b8332b8b93f9b2e32246a4b50c48b615e6b3bec89783bd030ffb671544756", "categorized_nodes": 123}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
14,274
c
// // ZJNCellVideoView.h // 百思不得姐 // // Created by 曾嘉年 on 16/6/13. // Copyright © 2016年 zengjianian. All rights reserved. // #import <UIKit/UIKit.h> @class ZJNContent; @interface ZJNCellVideoView : UIView /** 内容数据 */ @property(nonatomic, strong) ZJNContent *content; @end
20.23
13
(translation_unit) "//\n// ZJNCellVideoView.h\n// 百思不得姐\n//\n// Created by 曾嘉年 on 16/6/13.\n// Copyright © 2016年 zengjianian. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n@class ZJNContent;\n@interface ZJNCellVideoView : UIView\n/** 内容数据 */\n@property(nonatomic, strong) ZJNContent *content;\n@end\n" (comm...
43
8
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 20.23, "nodes": 27, "errors": 0, "source_hash": "9e226c58498f75fa802734a584c4b34743e0fb8cf92fb2fbf77451484ec8afaf", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "t.h>\n@cl...
14,275
c
#include <sys/types.h> #include <string.h> #define KEYSIZE(tab) (sizeof (tab) / sizeof (struct keytab)) static struct keytab { /* table of keywords */ char *name; int value; } monthtab [] = { /* month names */ { "apr", 4 }, { "april", 4 }, { "aug", 8 }, { "august",...
22.27
186
(translation_unit) "#include <sys/types.h>\n#include <string.h>\n\n#define KEYSIZE(tab) (sizeof (tab) / sizeof (struct keytab))\n\nstatic struct keytab { /* table of keywords */\n char *name;\n int value;\n} monthtab [] = { /* month names */\n { "apr", 4 }, { "april", 4 },\n { "au...
2,017
0
{"language": "c", "success": true, "metadata": {"lines": 186, "avg_line_length": 22.27, "nodes": 1298, "errors": 0, "source_hash": "1eed7912668a7c644e92f5ea12028d910c3519eab7edcbd2ef8d491f97d7766b", "categorized_nodes": 846}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
14,276
c
// SPDX-License-Identifier: GPL-2.0 /* Copyright (c) 2019 Facebook */ #include <test_progs.h> #include "test_ksyms.skel.h" #include <sys/stat.h> static int duration; void test_ksyms(void) { const char *btf_path = "/sys/kernel/btf/vmlinux"; struct test_ksyms *skel; struct test_ksyms__data *data; __u64 link_fops_a...
35.78
50
(translation_unit) "// SPDX-License-Identifier: GPL-2.0\n/* Copyright (c) 2019 Facebook */\n\n#include <test_progs.h>\n#include "test_ksyms.skel.h"\n#include <sys/stat.h>\n\nstatic int duration;\n\nvoid test_ksyms(void)\n{\n const char *btf_path = "/sys/kernel/btf/vmlinux";\n struct test_ksyms *skel;\n struct test_ksym...
526
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 35.78, "nodes": 279, "errors": 0, "source_hash": "ea3b79b38e760bc8384e684633dfca5474b8272c64fca3ad92ee9cd44a54b758", "categorized_nodes": 213}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,277
c
#import <Foundation/Foundation.h> typedef NS_ENUM(NSInteger, UnityServicesAppSheetError) { kUnityServicesAppSheetErrorAlreadyPreparing, kUnityServicesAppSheetErrorAlreadyPresenting, kUnityServicesAppSheetErrorNotFound, kUnityServicesAppSheetErrorNoAppSheetFound, kUnityServicesAppSheetErrorTimeout ...
38.5
10
(translation_unit) "#import <Foundation/Foundation.h>\n\ntypedef NS_ENUM(NSInteger, UnityServicesAppSheetError) {\n kUnityServicesAppSheetErrorAlreadyPreparing,\n kUnityServicesAppSheetErrorAlreadyPresenting,\n kUnityServicesAppSheetErrorNotFound,\n kUnityServicesAppSheetErrorNoAppSheetFound,\n kUnitySer...
42
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 38.5, "nodes": 26, "errors": 0, "source_hash": "a7dd1347e4896618158e84987224886c59c7ee1df48919b61278b13083749da6", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
14,278
c
#import <UIKit/UIKit.h> #import "Model/Earthquake.h" NS_ASSUME_NONNULL_BEGIN /// Displays a map centered on where a given earthquake occurred. @interface EarthquakeTableViewCell : UITableViewCell @property (weak, nonatomic) IBOutlet UILabel *magnitudeLabel; @property (weak, nonatomic) IBOutlet UILabel *placeLabel; @...
43
13
(translation_unit) "#import <UIKit/UIKit.h>\n#import "Model/Earthquake.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n/// Displays a map centered on where a given earthquake occurred.\n@interface EarthquakeTableViewCell : UITableViewCell\n\n@property (weak, nonatomic) IBOutlet UILabel *magnitudeLabel;\n@property (weak, nonatomic) IB...
112
15
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 43.0, "nodes": 82, "errors": 0, "source_hash": "933a275f50367e239cd898fe75d23a45efbc401c0b20d9235a0dfba9f8ec07c7", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <U...
14,279
c
#ifndef __VDS_CORE_VDS_DEBUG_H_ #define __VDS_CORE_VDS_DEBUG_H_ /* Copyright (c) 2017, <NAME>, <EMAIL> All rights reserved */ namespace vds { #if __cpp_exceptions #define vds_assert(exp) if(!(exp)) { throw std::runtime_error("Accert " #exp); } #else #define vds_assert(exp) #endif class thread_protect { public: ...
19.3
27
(translation_unit) "#ifndef __VDS_CORE_VDS_DEBUG_H_\n#define __VDS_CORE_VDS_DEBUG_H_\n\n/*\nCopyright (c) 2017, <NAME>, <EMAIL>\nAll rights reserved\n*/\n\nnamespace vds {\n\n#if __cpp_exceptions\n#define vds_assert(exp) if(!(exp)) { throw std::runtime_error("Accert " #exp); }\n#else\n#define vds_assert(exp)\n#endif\n\...
109
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 19.3, "nodes": 59, "errors": 0, "source_hash": "e739525450284020edbd9050b77aeabc3b54b0eacc9f4101ee495d30a1550068", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
14,280
c
#include <unistd.h> #include <stdio.h> int main(int argc, char *argv[]) { int i; i = 0; if (argc == 2) { while (argv[1][i]) { if (argv[1][i] != ' ' || (argv[1][i - 1] != ' ' && argv[1][i + 1] != '\0' && argv[1][i - 1] != '\0')) write(1, &argv[1][i], 1); i++; } } write(1, "\n", 1); return (0...
16
19
(translation_unit) "#include <unistd.h>\n#include <stdio.h>\n\nint main(int argc, char *argv[])\n{\n int i;\n\n i = 0;\n if (argc == 2)\n {\n while (argv[1][i])\n {\n if (argv[1][i] != ' ' || (argv[1][i - 1] != ' '\n && argv[1][i + 1] != '\0' && argv[1][i - 1] != '\0'))\n write(1, &argv[1][i], 1);\n i++;\n ...
200
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 16.0, "nodes": 126, "errors": 0, "source_hash": "be28e9f1f4cac564fe15e1de79e38ae9cdbc72d31e2ae1b20e493c9428943f7a", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
14,281
c
#include "path.h" // inode for parent and child. inodesn_t pinum; inode_t parent; inodesn_t cinum; inode_t child; char name_buf[MAX_FILE_NAME_LENGTH]; // Iterator used to search dir. dz_iterator_t dzi; // The block owned by parent that contains child. dir_t dir_entry_buf[DIR_PER_BLOCK]; blockn_t dir_entry_zone_num;...
25.37
173
(translation_unit) "#include "path.h"\n\n// inode for parent and child.\ninodesn_t pinum;\ninode_t parent;\ninodesn_t cinum;\ninode_t child;\n\nchar name_buf[MAX_FILE_NAME_LENGTH];\n\n// Iterator used to search dir.\ndz_iterator_t dzi;\n\n// The block owned by parent that contains child.\ndir_t dir_entry_buf[DIR_PER_BL...
1,182
0
{"language": "c", "success": true, "metadata": {"lines": 173, "avg_line_length": 25.37, "nodes": 705, "errors": 0, "source_hash": "b0f980a9f7ec49d8bdc0c38d251d3f062e2ad3563132e0217b7c9ad09c160339", "categorized_nodes": 520}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,282
c
class InformationNotice : public UBXPacket { };
23
2
(translation_unit) "class InformationNotice : public UBXPacket {\n};\n" (function_definition) "class InformationNotice : public UBXPacket {\n}" (type_identifier) "class" (identifier) "InformationNotice" (ERROR) ": public UBXPacket" (:) ":" (identifier) "public" (identifier) "UBXPacket" ...
13
1
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 23.0, "nodes": 4, "errors": 0, "source_hash": "28f2a5c1b9d8a2dd13cdcca08ec57ea191abf0ac7a38a7bc853718426e43ef38", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "class ...
14,283
c
/*********************************************************************************************************************** * DISCLAIMER * This software is supplied by Renesas Electronics Corporation and is only * intended for use with Renesas products. No other uses are authorized. This * software is owned by Renesas Ele...
23.92
208
(translation_unit) "/***********************************************************************************************************************\n* DISCLAIMER\n* This software is supplied by Renesas Electronics Corporation and is only\n* intended for use with Renesas products. No other uses are authorized. This\n* software...
660
0
{"language": "c", "success": true, "metadata": {"lines": 208, "avg_line_length": 23.92, "nodes": 381, "errors": 0, "source_hash": "d0478a30f0e2d267486096e900dfd6538a9bff09dec30a29f50453a08a5ba6b6", "categorized_nodes": 209}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
14,284
c
#ifndef __DEUN_DEQUE_H__ #define __DEUN_DEQUE_H__ #include <iostream> #include <new> namespace Deun { enum class DequeError { MEMORY_ALLOCATION_FAILED = 1000, ELEMENT_NOT_FOUND, }; // 배열 기반 원형 덱 class Deque { private: int* elements; unsigned int size; // 덱의 크기 (배열...
32.74
35
(translation_unit) "#ifndef __DEUN_DEQUE_H__\n#define __DEUN_DEQUE_H__\n\n#include <iostream>\n#include <new>\n\nnamespace Deun {\n enum class DequeError {\n MEMORY_ALLOCATION_FAILED = 1000,\n ELEMENT_NOT_FOUND,\n };\n\n // 배열 기반 원형 덱\n class Deque {\n private:\n int* elements;\n ...
228
3
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 32.74, "nodes": 146, "errors": 0, "source_hash": "88026b2c7ccf2b184b1830c95277d49feb36324934cd4fa3c83531ca4f47bca9", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef __DEUN_...
14,285
c
// // BranchInfoViewController.h // BranchMonsterFactory // // Created by <NAME> on 5/18/15. // Copyright (c) 2015 Branch. All rights reserved. // @import AppKit; @interface BranchInfoViewController : NSViewController @end
21.7
10
(translation_unit) "//\n// BranchInfoViewController.h\n// BranchMonsterFactory\n//\n// Created by <NAME> on 5/18/15.\n// Copyright (c) 2015 Branch. All rights reserved.\n//\n\n@import AppKit;\n\n@interface BranchInfoViewController : NSViewController\n@end\n" (comment) "//" (comment) "// BranchInfoViewControlle...
22
5
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.7, "nodes": 10, "errors": 0, "source_hash": "f902f16a891b28a06da98dd07e2ef6965e7a70118f8a32f506e0d30c04365376", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": null...
14,286
c
// Copyright 2020, 2021 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed ...
39.04
28
(translation_unit) "// Copyright 2020, 2021 Google LLC\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// https://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required ...
84
2
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 39.04, "nodes": 53, "errors": 0, "source_hash": "4abad921c50553600c9de7dd646d2285840d049b4b39a6f3e74b11d147511caf", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,287
c
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
37.78
149
(translation_unit) "\n* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.\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* A copy of the License is located at\n*\n* http://aws.amazon.com/apache2.0\n*\...
991
55
{"language": "c", "success": true, "metadata": {"lines": 149, "avg_line_length": 37.78, "nodes": 621, "errors": 0, "source_hash": "b245b3be055e6d26829370cdcaf381f99c838facc9dbf1758e6fbda5d3172a37", "categorized_nodes": 393}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma ...
14,288
c
/** * @author ttoobne * @date 2020/7/4 */ #include "config.h" #include <stdio.h> int main() { config_t* config; config = parse_configuration("bohttpd.conf"); printf("threadpool: %d\n", config->threadpool); printf("taskqueue: %d\n", config->taskqueue); printf("root: %s\n", con...
20.95
22
(translation_unit) "/** \n * @author ttoobne \n * @date 2020/7/4 \n */ \n \n#include "config.h" \n \n#include <stdio.h> \n \nint main() { \n config_t* config; \n \n config = parse_configuration("bohttpd.conf"); \n \n printf("threadpool: %d\n", config->threadpool); \n printf("taskqueue: %d\n", config->taskqu...
147
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 20.95, "nodes": 73, "errors": 0, "source_hash": "d1aa1cc8a9d0ca3141c7241c14c24aba7914244147afa0af5deaf27f397342b1", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
14,289
c
/** * Copyright (c) 2015 - present LibDriver All rights reserved * * The MIT License (MIT) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without lim...
34.35
270
(translation_unit) "/**\n * Copyright (c) 2015 - present LibDriver All rights reserved\n * \n * The MIT License (MIT)\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 restric...
563
0
{"language": "c", "success": true, "metadata": {"lines": 270, "avg_line_length": 34.35, "nodes": 364, "errors": 0, "source_hash": "4b32c28a49fbe04f89400b81b73616e9b30b445324f3bc920800287924647e53", "categorized_nodes": 211}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
14,290
c
/* This file is for the Gao-Mateer FFT sse http://www.math.clemson.edu/~sgao/papers/GM10.pdf */ #include "fft.h" #include "vec.h" #include "vec128.h" /* input: in, polynomial in bitsliced form */ /* output: in, result of applying the radix conversions on in */ static void radix_conversions(uint64_t *in) { in...
32.17
121
(translation_unit) "/*\n This file is for the Gao-Mateer FFT\n sse http://www.math.clemson.edu/~sgao/papers/GM10.pdf\n*/\n\n#include "fft.h"\n\n#include "vec.h"\n#include "vec128.h"\n\n/* input: in, polynomial in bitsliced form */\n/* output: in, result of applying the radix conversions on in */\nstatic void radix_co...
1,422
3
{"language": "c", "success": true, "metadata": {"lines": 121, "avg_line_length": 32.17, "nodes": 838, "errors": 0, "source_hash": "1462ec81486b4f57beb47deb392320dcbbb82e4928e0d67ab77164a8276d102c", "categorized_nodes": 648}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,291
c
#ifndef _IPCSOCKET_H #define _IPCSOCKET_H #define MAX_SOCK_NAME_LEN 64 char sock_name[MAX_SOCK_NAME_LEN]; /* This structure is responsible for holding the IPC data * data: hold the buffer fd * len: just the length of 32-bit integer fd */ struct socketdata { int data; unsigned int len; }; /* This API is used ...
31.77
26
(translation_unit) "#ifndef _IPCSOCKET_H\n#define _IPCSOCKET_H\n\n\n#define MAX_SOCK_NAME_LEN 64\n\nchar sock_name[MAX_SOCK_NAME_LEN];\n\n/* This structure is responsible for holding the IPC data\n * data: hold the buffer fd\n * len: just the length of 32-bit integer fd\n */\nstruct socketdata {\n int data;\n unsigned ...
122
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 31.77, "nodes": 88, "errors": 0, "source_hash": "0899af7de4c2aa3531a691a7bd96ad135b8df054def54655f69c6ef4ea047c5f", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,292
c
#ifndef _WARN_H_ #define _WARN_H_ #ifdef HAVE_ERR_H #include <err.h> #else #define NEED_WARN_PROGNAME const char * warn_progname; void warn(const char *, ...); void warnx(const char *, ...); #endif #include <stdint.h> #include <inttypes.h> void dump_buf(const char *what, uint8_t *a, size_t l); #endif /* !_WARN_H_ *...
21.71
14
(translation_unit) "#ifndef _WARN_H_\n#define _WARN_H_\n\n#ifdef HAVE_ERR_H\n#include <err.h>\n#else\n#define NEED_WARN_PROGNAME\nconst char * warn_progname;\nvoid warn(const char *, ...);\nvoid warnx(const char *, ...);\n#endif\n\n#include <stdint.h>\n#include <inttypes.h>\n\nvoid dump_buf(const char *what, uint8_t *a...
94
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 21.71, "nodes": 66, "errors": 0, "source_hash": "ffdd39c51a69dffc85338bf55c9cd0016b0d21a142eabd9a3d38b4b9e89e3fbf", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
14,293
c
#include "keccakP200.h" void theta(unsigned char *A) { unsigned int x, y; unsigned char C[5], D[5]; for(x=0; x<5; x++) { C[x] = A[x] ^ A[5 + x] ^ A[10 + x] ^ A[15 + x] ^ A[20 + x]; } for(x=0; x<5; x++) D[x] = ROL8(C[(x+1)%5], 1) ^ C[(x+4)%5]; for(x=0; x<5; x++) ...
25.67
57
(translation_unit) "#include "keccakP200.h"\n\nvoid theta(unsigned char *A)\n {\n unsigned int x, y;\n unsigned char C[5], D[5];\n\n for(x=0; x<5; x++) {\n C[x] = A[x] ^ A[5 + x] ^ A[10 + x] ^ A[15 + x] ^ A[20 + x];\n }\n for(x=0; x<5; x++)\n D[x] = ROL8(C[(x+1)%5], 1) ^ C[(x+4)%5];\...
866
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 25.67, "nodes": 572, "errors": 0, "source_hash": "f7cb1b981cf6d3adb5b042b015aedf0664450711dec5918e2725ae5831331320", "categorized_nodes": 409}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
14,294
c
#ifndef DDM__ALLOCATOR_H__INCLUDED #define DDM__ALLOCATOR_H__INCLUDED #include "../ddm/allocator/LocalAllocator.h" #include "../ddm/allocator/CollectiveAllocator.h" #include "../ddm/allocator/DynamicAllocator.h" namespace ddm { /** * Replacement for missing std::align in gcc < 5.0. * * Implementation from origina...
29.81
27
(translation_unit) "#ifndef DDM__ALLOCATOR_H__INCLUDED\n#define DDM__ALLOCATOR_H__INCLUDED\n\n#include "../ddm/allocator/LocalAllocator.h"\n#include "../ddm/allocator/CollectiveAllocator.h"\n#include "../ddm/allocator/DynamicAllocator.h"\n\nnamespace ddm {\n\n/**\n * Replacement for missing std::align in gcc < 5.0.\n *...
183
7
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 29.81, "nodes": 126, "errors": 0, "source_hash": "6f995688aebd773bf5e7417a9283ac92aae85a14e1b2bd19a6a3b54c3d8eab11", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
14,295
c
#import <Foundation/NSArray.h> @interface NSArray (YOLOSelect) /** Returns a new array containing all elements for which the given block returns `YES`. id rv = @[@1, @2, @3, @4].select(^(NSNumber *n){ return n.intValue % 2 == 0; }); // rv => @[@2, @4] Alternatively pass a `Class` object: ...
29.44
32
(translation_unit) "#import <Foundation/NSArray.h>\n\n@interface NSArray (YOLOSelect)\n\n/**\n Returns a new array containing all elements for which the given block\n returns `YES`.\n\n id rv = @[@1, @2, @3, @4].select(^(NSNumber *n){\n return n.intValue % 2 == 0;\n });\n // rv => @[@2, @4]\n\n Alternat...
64
10
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 29.44, "nodes": 40, "errors": 0, "source_hash": "7a8ba976a920068738f5cf5ba20b68ecef5aa3457c02fee7b961076f61957a34", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
14,296
c
#include <stdlib.h> #include <stdio.h> #include <string.h> #include "block.h" #include "message.h" #include "operation.h" #include "state.h" #include "signature.h" #include "hash.h" #include "utils.h" // ----- Memory manipulation funuctions Block_t new_block(unsigned int level, char *pred, unsigned long time, char...
33.35
141
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n#include <string.h>\n\n#include "block.h"\n#include "message.h"\n#include "operation.h"\n#include "state.h"\n\n#include "signature.h"\n#include "hash.h"\n#include "utils.h"\n\n\n// ----- Memory manipulation funuctions\n\nBlock_t new_block(unsigned int level, ...
1,321
0
{"language": "c", "success": true, "metadata": {"lines": 141, "avg_line_length": 33.35, "nodes": 782, "errors": 0, "source_hash": "099c6509e38bbf277ba2d17b0c2187a4a2f7a48816540a057792ffdb5c43338d", "categorized_nodes": 529}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
14,297
c
/*========================================================================= Program: ALBA (Agile Library for Biomedical Applications) Module: albaOpImporterASCIITest Authors: <NAME> Copyright (c) BIC All rights reserved. See Copyright.txt or This software is distributed WITHOUT ANY WARRANTY; without even th...
31.6
35
(translation_unit) "/*=========================================================================\n\n Program: ALBA (Agile Library for Biomedical Applications)\n Module: albaOpImporterASCIITest\n Authors: <NAME>\n \n Copyright (c) BIC\n All rights reserved. See Copyright.txt or\n\n\n This software is distributed WITHOUT ...
132
1
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 31.6, "nodes": 71, "errors": 0, "source_hash": "a694f233ecf1a89885237fc24d20247ef8bbcbf39426556fa4a3a49f0e7f7b0c", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
14,298
c
// // WLCUnreadMessage.h // weibo // // Created by 王 on 16/2/24. // Copyright © 2016年 WLChopSticks. All rights reserved. // #import <Foundation/Foundation.h> @interface WLCUnreadMessage : NSObject @property (assign, nonatomic) int status; @end
21.55
11
(translation_unit) "//\n// WLCUnreadMessage.h\n// weibo\n//\n// Created by 王 on 16/2/24.\n// Copyright © 2016年 WLChopSticks. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface WLCUnreadMessage : NSObject\n\n@property (assign, nonatomic) int status;\n\n@end\n" (comment) "//" (comment) "/...
34
6
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 21.55, "nodes": 21, "errors": 0, "source_hash": "f92c7beef5f00189d7d74da6aa5ad8c34aecf49cd45d4823d3890270fcf75393", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "rt <Found...
14,299