language
stringclasses
1 value
code
stringlengths
6
12.3k
avg_line_length
float64
2.79
91
line_count
float64
1
367
lang_specific_parse
stringlengths
60
1.08M
ast_node_count
int64
2
6.81k
num_errors
int64
0
499
universal_schema
stringlengths
799
825k
__index_level_0__
int64
0
81.2k
c
#include "buffer.h" buffer_t * buffer_create() { size_t sz = SIZE; buffer_t * buf = malloc(sizeof(buffer_t)); if (buf) { buf->buf = calloc(sz, sizeof(sz)); if (!buf->buf) { free(buf); return NULL; } buf->n = 0; buf->sz = sz; } ...
20.26
65
(translation_unit) "#include "buffer.h"\n\nbuffer_t * buffer_create()\n{\n size_t sz = SIZE;\n buffer_t * buf = malloc(sizeof(buffer_t));\n if (buf)\n {\n buf->buf = calloc(sz, sizeof(sz));\n if (!buf->buf)\n {\n free(buf);\n return NULL;\n }\n buf->n...
495
0
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 20.26, "nodes": 311, "errors": 0, "source_hash": "9426eb1cc5c78b492ad93943fc7c143d171bf30c33982f0276cc88bb087968b6", "categorized_nodes": 228}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,900
c
#ifndef _SEARCHFILE_INCLUDE #define _SEARCHFILE_INCLUDE /** Searches for files in the current directory matching a pattern. @param searchDirectory Directory to search within @param fileExtension File extension to search for @return List of files found */ vector<FileName> SearchFile(const FileName &searchDirectory, ...
33.64
11
(translation_unit) "#ifndef _SEARCHFILE_INCLUDE\n#define _SEARCHFILE_INCLUDE\n\n/**\nSearches for files in the current directory matching a pattern.\n@param searchDirectory Directory to search within\n@param fileExtension File extension to search for\n@return List of files found\n*/\nvector<FileName> SearchFile(const F...
35
2
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 33.64, "nodes": 22, "errors": 0, "source_hash": "5f7e3527a73db83eba95980fff9caea91831ecf753204f47fcfd088ac4ec26c2", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,901
c
#ifndef LSP_FRONTEND_H #define LSP_FRONTEND_H #include <functional> #include <map> #include <memory> #include <mutex> #include <optional> #include <string> #include <variant> #include "common/cancellation.h" #include "common/json.h" namespace lsp { // forward declaration needed by incoming_request class frontend; ...
37.35
181
(translation_unit) "#ifndef LSP_FRONTEND_H\n#define LSP_FRONTEND_H\n\n#include <functional>\n#include <map>\n#include <memory>\n#include <mutex>\n#include <optional>\n#include <string>\n#include <variant>\n\n#include "common/cancellation.h"\n#include "common/json.h"\n\nnamespace lsp\n{\n\n// forward declaration needed ...
1,855
137
{"language": "c", "success": true, "metadata": {"lines": 181, "avg_line_length": 37.35, "nodes": 1173, "errors": 0, "source_hash": "0e8471b288caf9c74dd5f2bfe3768adc1d7ab154cf6117925d7802dc2975e893", "categorized_nodes": 775}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
79,902
c
/* $NetBSD: cpu.h,v 1.1 2002/03/24 15:46:55 bjh21 Exp $ */ #include <arm/cpu.h>
39
2
(translation_unit) "/* $NetBSD: cpu.h,v 1.1 2002/03/24 15:46:55 bjh21 Exp $ */\n\n#include <arm/cpu.h>\n" (comment) "/* $NetBSD: cpu.h,v 1.1 2002/03/24 15:46:55 bjh21 Exp $ */" (preproc_include) "#include <arm/cpu.h>\n" (#include) "#include" (system_lib_string) "<arm/cpu.h>"
5
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 39.0, "nodes": 3, "errors": 0, "source_hash": "a2bd080298d2d677cbc1dcd3c1a964684faba81784b8711a9ef47126b15d012e", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <...
79,903
c
/* * Constant definitions for the Pageant resource file. */ #ifndef MOD_INTEGRATED_AGENT #define IDI_MAINICON 200 #define IDI_TRAYICON 201 #else #define IDI_MAINICON_AGENT 900 #define IDI_TRAYICON 901 #endif #define IDD_KEYLIST 211 #define IDD_LOAD_PASSPHRASE 210 #define IDD_ONDEMAND_PASSPHRASE 212 #...
24.13
38
(translation_unit) "/* \n * Constant definitions for the Pageant resource file. \n */ \n \n#ifndef MOD_INTEGRATED_AGENT \n#define IDI_MAINICON 200 \n#define IDI_TRAYICON 201 \n#else \n#define IDI_MAINICON_AGENT 900 \n#define IDI_TRAYICON 901 \n#endif \n \n#define IDD_KEYLIST 211 \n#define IDD_LOAD_PASSPHRASE 210 \n#def...
112
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 24.13, "nodes": 110, "errors": 0, "source_hash": "12903993f0106e5690b15834bf25c4dab170fa36c77e9660265af736b86dfbd5", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,904
c
// Copyright 2021 The GPGMM Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed ...
35.89
35
(translation_unit) "// Copyright 2021 The GPGMM Authors\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required ...
143
4
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 35.89, "nodes": 81, "errors": 0, "source_hash": "289dee2b2c6ca8c791672956736748c97ff6cd6ea23828f77a5d620bb6c6e104", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,905
c
// Copyright 2017 The Xena Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
33.02
44
(translation_unit) "// Copyright 2017 The Xena Authors.\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required...
191
10
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 33.02, "nodes": 96, "errors": 0, "source_hash": "863be691a7dffbca67ddd1ab90e7253eb857294bd199a5c866339c00ab620523", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,906
c
// // REViewController.h // TestBPod // // Created by <EMAIL> on 10/09/2017. // Copyright (c) 2017 <EMAIL>. All rights reserved. // @import UIKit; @interface REViewController : UIViewController @end
19.3
10
(translation_unit) "//\n// REViewController.h\n// TestBPod\n//\n// Created by <EMAIL> on 10/09/2017.\n// Copyright (c) 2017 <EMAIL>. All rights reserved.\n//\n\n@import UIKit;\n\n@interface REViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// REViewController.h" (comment) "// TestBPod...
22
5
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.3, "nodes": 10, "errors": 0, "source_hash": "9f1b0684b13f936772c8131a0bada991c0f56719ffe8fd041d7a3f1f65b370b5", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": null...
79,907
c
#include <stdio.h> #define alpha 10 void alphablending(int n, short src0[n][n], short src1[n][n], short result[n][n]) { unsigned int i,j; for(i=0;i<n;i++) for(j=0;j<n;j++) { if(j%2) result[i][j]=( alpha*src0[i][j] + ...
23.97
31
(translation_unit) "#include <stdio.h>\n#define alpha 10\nvoid alphablending(int n, short src0[n][n], short src1[n][n], short result[n][n])\n{\n unsigned int i,j;\n for(i=0;i<n;i++)\n for(j=0;j<n;j++) {\n if(j%2)\n result[i][j]=(\n alpha*src0[i][j]\n ...
403
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 23.97, "nodes": 251, "errors": 0, "source_hash": "564247ef9bf65f6f54b3dd073d10105452efabd68b2cc1820ba7505a0b91170e", "categorized_nodes": 182}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,908
c
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- #ifndef __java_io_UnsupportedEncodingException__ #define __java_io_UnsupportedEncodingException__ #pragma interface #include <java/io/IOException.h> class ::java::io::UnsupportedEncodingException : public ::java::io::IOException { public: UnsupportedE...
34.56
16
(translation_unit) "// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-\n\n#ifndef __java_io_UnsupportedEncodingException__\n#define __java_io_UnsupportedEncodingException__\n\n#pragma interface\n\n#include <java/io/IOException.h>\n\nclass ::java::io::UnsupportedEncodingException : public ::java::io::IOExcep...
123
13
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 34.56, "nodes": 57, "errors": 0, "source_hash": "f32b54d7cc5364e0485f108fc0b0a711fe6e7f3e399d2f40ae66245f7b714d94", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,909
c
// // IJSGcameraFilterController.h // IJSGPUImageSDK // // Created by 山神 on 2017/11/8. // Copyright © 2017年 山神. All rights reserved. // #import <UIKit/UIKit.h> #import "IJSGimageBaseController.h" static NSString *const cameraTitle = @"相机处理中心"; @interface IJSGcameraFilterController : IJSGimageBaseController @end
25.42
12
(translation_unit) "//\n// IJSGcameraFilterController.h\n// IJSGPUImageSDK\n//\n// Created by 山神 on 2017/11/8.\n// Copyright © 2017年 山神. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "IJSGimageBaseController.h"\n\nstatic NSString *const cameraTitle = @"相机处理中心";\n@interface IJSGcameraFilterController ...
40
5
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 25.42, "nodes": 24, "errors": 0, "source_hash": "fc13e3e30f02425e34a987fcdac619611675e687760c0c152572657110f6265d", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Kit/UIKit...
79,910
c
/* ChibiOS - Copyright (C) 2006..2018 <NAME> 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 appl...
26.46
140
(translation_unit) "/* \n ChibiOS - Copyright (C) 2006..2018 <NAME> \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 ...
988
4
{"language": "c", "success": true, "metadata": {"lines": 140, "avg_line_length": 26.46, "nodes": 542, "errors": 0, "source_hash": "580fff6f182011fefb061becd00ea6b61ca12bc99038710a138170f09d6e0d95", "categorized_nodes": 367}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,911
c
#pragma once #include <boost/config.hpp> #ifndef MFAST_CODER_EXPORT #ifdef mfast_coder_EXPORTS /* We are building the shared variant of this library */ #define MFAST_CODER_EXPORT BOOST_SYMBOL_EXPORT #define MFAST_CODER_BUILD_SHARED_LIBS #elif defined(MFAST_DYN_LINK) /* We are using the shared variant of this library ...
30.53
17
(translation_unit) "#pragma once\n#include <boost/config.hpp>\n\n#ifndef MFAST_CODER_EXPORT\n#ifdef mfast_coder_EXPORTS\n/* We are building the shared variant of this library */\n#define MFAST_CODER_EXPORT BOOST_SYMBOL_EXPORT\n#define MFAST_CODER_BUILD_SHARED_LIBS\n#elif defined(MFAST_DYN_LINK)\n/* We are using the sha...
48
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 30.53, "nodes": 42, "errors": 0, "source_hash": "9ea5fd30d61538d556d450a71eb90db39b9752150d7e7acde6c2e65f4741024d", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
79,912
c
#include "skat/exec_async.h" #define ATOMIC_QUEUE_NO_INCLUDE_HEADER #define TYPE async_callback #include "atomic_queue.def" #undef TYPE #undef ATOMIC_QUEUE_NO_INCLUDE_HEADER void exec_async(async_callback_queue *q, async_callback *cb) { enqueue_async_callback(q, cb); } /* // client.h: typedef struct client { //....
18.55
56
(translation_unit) "#include "skat/exec_async.h"\n\n#define ATOMIC_QUEUE_NO_INCLUDE_HEADER\n#define TYPE async_callback\n#include "atomic_queue.def"\n#undef TYPE\n#undef ATOMIC_QUEUE_NO_INCLUDE_HEADER\n\nvoid\nexec_async(async_callback_queue *q, async_callback *cb) {\n enqueue_async_callback(q, cb);\n}\n\n/*\n// clien...
60
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 18.55, "nodes": 39, "errors": 0, "source_hash": "7613adf546059ec63d061132c1da8db861f9ffa2abedc1757513e97b08a7fb5e", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
79,913
c
#include <stdio.h> #include <stddef.h> #include <string.h> #include <math.h> static char *month[] = {"", "JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC"}; static FILE *output; static void print_header(void) { fprintf(output, "\f\n" "%-10s...
35.38
242
(translation_unit) "#include <stdio.h>\n#include <stddef.h>\n#include <string.h>\n#include <math.h>\n\nstatic char *month[] = {"", "JAN", "FEB", "MAR", "APR", "MAY", "JUN",\n "JUL", "AUG", "SEP", "OCT", "NOV", "DEC"};\n\nstatic FILE *output;\n\nstatic void print_header(void)\n{\n fprintf(o...
2,077
0
{"language": "c", "success": true, "metadata": {"lines": 242, "avg_line_length": 35.38, "nodes": 1083, "errors": 0, "source_hash": "04d223df782d2264c3e6d6a7bf88f86497511aa0f8d554b7b6e938faf3b6e657", "categorized_nodes": 770}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
79,914
c
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef NET_DISK_CACHE_MEM_ENTRY_IMPL_H__ #define NET_DISK_CACHE_MEM_ENTRY_IMPL_H__ #include "net/disk_cache/disk_cache.h" namespace disk_cache...
34.89
64
(translation_unit) "// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef NET_DISK_CACHE_MEM_ENTRY_IMPL_H__\n#define NET_DISK_CACHE_MEM_ENTRY_IMPL_H__\n\n#include "net/disk_cache/disk_cac...
453
13
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 34.89, "nodes": 280, "errors": 0, "source_hash": "0b7675a4f65faf7ec38418d2616b5a145d7c5b969d728ff89dd7c9184a9fcc9a", "categorized_nodes": 189}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,915
c
/* * Copyright (C) 2018-2019 BiiLabs Co., Ltd. and Contributors * All Rights Reserved. * This is free software; you can redistribute it and/or modify it under the * terms of the MIT license. A copy of the license can be found in the file * "LICENSE" at the root of this distribution. */ #include "ta_send_transfer...
29.88
25
(translation_unit) "/*\n * Copyright (C) 2018-2019 BiiLabs Co., Ltd. and Contributors\n * All Rights Reserved.\n * This is free software; you can redistribute it and/or modify it under the\n * terms of the MIT license. A copy of the license can be found in the file\n * "LICENSE" at the root of this distribution.\n */\n...
171
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 29.88, "nodes": 104, "errors": 0, "source_hash": "1584146415b76b757aa73578ff59da092c03fc568b80bbf165ef4509aca2e612", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
79,916
c
// LICENSE NOTICE ================================================================================== /** * netzhaut - Web Browser Engine * Copyright (C) 2020 The netzhaut Authors * Published under MIT */ // INCLUDE ======================================================================================== #include ...
34.67
182
(translation_unit) "// LICENSE NOTICE ==================================================================================\n\n/**\n * netzhaut - Web Browser Engine\n * Copyright (C) 2020 The netzhaut Authors\n * Published under MIT\n */\n\n// INCLUDE =======================================================================...
1,746
15
{"language": "c", "success": true, "metadata": {"lines": 182, "avg_line_length": 34.67, "nodes": 1138, "errors": 0, "source_hash": "b00d27500f0cbc256764235cdd77b014bcdf3cec3df20eb824456332aac9032c", "categorized_nodes": 863}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
79,917
c
#include "unity.h" #include "ruuvi_endpoint_5.h" static const re_5_data_t m_re_5_data_ok = { .humidity_rh = 53.49, .pressure_pa = 100044, .temperature_c = 24.3, .accelerationx_g = 0.004, .accelerationy_g = -0.004, .accelerationz_g = 1.036, .battery_v = 2.977, .measurement_count = 205,...
31.6
240
(translation_unit) "nclude "unity.h"\n\n#include "ruuvi_endpoint_5.h"\n\nstatic const re_5_data_t m_re_5_data_ok =\n{\n .humidity_rh = 53.49,\n .pressure_pa = 100044,\n .temperature_c = 24.3,\n .accelerationx_g = 0.004,\n .accelerationy_g = -0.004,\n .accelerationz_g = 1.036,\n .battery_v = 2.977,\...
1,919
0
{"language": "c", "success": true, "metadata": {"lines": 240, "avg_line_length": 31.6, "nodes": 1218, "errors": 0, "source_hash": "688e12da2440196f544617e4e3a9432b54681e19a8fe697b64f96db19a000cc9", "categorized_nodes": 788}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "ncl...
79,918
c
#include <stdio.h> #include "ft_printf.h" int main(void) { // printf("a"); // ft_printf("%s", "a"); ft_printf("a"); return (0); }
13.67
9
(translation_unit) "#include <stdio.h>\n#include "ft_printf.h"\n\nint main(void)\n{\n// printf("a");\n// ft_printf("%s", "a");\n ft_printf("a");\n return (0);\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include "ft_printf.h"\n" ...
42
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 13.67, "nodes": 20, "errors": 0, "source_hash": "4156ebaab4884b7d183a9626dec4db0e7392bbb13ccb1c01b25bc8015043afd8", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
79,919
c
#ifndef MENGDE_GUI_FOUNDATION_FONT_MANAGER_H_ #define MENGDE_GUI_FOUNDATION_FONT_MANAGER_H_ #include <SDL_ttf.h> #include <unordered_map> #include "util/common.h" namespace mengde { namespace gui { namespace foundation { class FontManager { public: FontManager(const string& base_path); ~FontManager(); static ...
30.42
24
(translation_unit) "#ifndef MENGDE_GUI_FOUNDATION_FONT_MANAGER_H_\n#define MENGDE_GUI_FOUNDATION_FONT_MANAGER_H_\n\n#include <SDL_ttf.h>\n#include <unordered_map>\n#include "util/common.h"\n\nnamespace mengde {\nnamespace gui {\nnamespace foundation {\n\nclass FontManager {\n public:\n FontManager(const string& base_p...
152
4
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 30.42, "nodes": 90, "errors": 0, "source_hash": "4455abf7e633d777b6d7c078718fcfd407bbe02b2e9e328b41c0eeec9e9fae5a", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,920
c
/* JANUS Client for automatic memory prefetcher */ /* Header file to implement a JANUS client */ #include "janus_api.h" /* Janus prefetch handlers */ #include "pfhandler.h" static dr_emit_flags_t event_basic_block(void *drcontext, void *tag, instrlist_t *bb, bool for_trace, bool translating); DR_EXPORT void dr_ini...
38.62
63
(translation_unit) "/* JANUS Client for automatic memory prefetcher */\n\n/* Header file to implement a JANUS client */\n#include "janus_api.h"\n\n/* Janus prefetch handlers */\n#include "pfhandler.h"\n\nstatic dr_emit_flags_t\nevent_basic_block(void *drcontext, void *tag, instrlist_t *bb, bool for_trace, bool translat...
425
1
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 38.62, "nodes": 243, "errors": 0, "source_hash": "862e2e4625d1dbdb883d06e6a2229efbcb603847de1f602049a2915f0526937d", "categorized_nodes": 171}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,921
c
// // WebVC.h // OAuthDemo // // Created by Admin on 24/06/2017. // Copyright © 2017 Admin. All rights reserved. // #import <UIKit/UIKit.h> @class Coordinator; @interface WebVC : UIViewController @property (nonatomic, weak) Coordinator *coordinator; - (void)openURL:(NSURL *)url; @end
19.71
14
(translation_unit) "//\n// WebVC.h\n// OAuthDemo\n//\n// Created by Admin on 24/06/2017.\n// Copyright © 2017 Admin. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n\n@class Coordinator;\n\n@interface WebVC : UIViewController\n\n@property (nonatomic, weak) Coordinator *coordinator;\n\n- (void)openURL:(NSURL ...
62
9
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 19.71, "nodes": 37, "errors": 0, "source_hash": "d52a66443211707c19de5a0ed200204a6d74e9942c6639942182ff2b88c0977f", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
79,922
c
/**************************************************************************** REGISTRY.H ****************************************************************************/ #ifndef _registry_h #define _registry_h // Forward declarations class CRegKey ; class CRegValueIter ; class CRegKeyIter ; // Maximum ...
30.58
140
(translation_unit) "/**************************************************************************** \nREGISTRY.H \n****************************************************************************/ \n#ifndef _registry_h \n \n#define _registry_h \n \n \n// Forward declarations \nclass CRegKey ; \nclass CRegValueIter ; \nclas...
757
25
{"language": "c", "success": true, "metadata": {"lines": 140, "avg_line_length": 30.58, "nodes": 473, "errors": 0, "source_hash": "3c33c4af3147bc8760e313bee42157708c66e15c7849439097f8ef05e85bcb87", "categorized_nodes": 317}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
79,923
c
#ifndef PACKER_PREPARE_INT_H #define PACKER_PREPARE_INT_H #include <type_traits> #include <typeinfo> #include "_endianness.h" extern Endianness endianess; template<typename T, size_t b> struct _EndiannessSwap; template<typename T> struct _EndiannessSwap<T, 2> { T operator()(T &num) { std::cout << "NORM ...
30.95
119
(translation_unit) "#ifndef PACKER_PREPARE_INT_H\n#define PACKER_PREPARE_INT_H\n\n#include <type_traits>\n#include <typeinfo>\n#include "_endianness.h"\n\nextern Endianness endianess;\n\ntemplate<typename T, size_t b>\nstruct _EndiannessSwap;\n\ntemplate<typename T>\nstruct _EndiannessSwap<T, 2> {\n T operator()(T &...
1,576
58
{"language": "c", "success": true, "metadata": {"lines": 119, "avg_line_length": 30.95, "nodes": 1033, "errors": 0, "source_hash": "3a54acfb54fb9a99b839a3c4f24d5cb46be4bebd63c309590c7443e07a77030a", "categorized_nodes": 755}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
79,924
c
/*! @file @author <NAME> @date 11/2014 */ #ifndef __MYGUI_KGE_PLATFORM_H__ #define __MYGUI_KGE_PLATFORM_H__ #include "MyGUI_Prerequest.h" #include "MyGUI_KgeRenderManager.h" #include "MyGUI_KgeDataManager.h" #include "MyGUI_KgeTexture.h" #include "MyGUI_KgeVertexBuffer.h" #include "MyGUI_KgeDiagnostic.h" #include "...
20.86
72
(translation_unit) "/*!\n@file\n@author <NAME>\n@date 11/2014\n*/\n\n#ifndef __MYGUI_KGE_PLATFORM_H__\n#define __MYGUI_KGE_PLATFORM_H__\n\n#include "MyGUI_Prerequest.h"\n#include "MyGUI_KgeRenderManager.h"\n#include "MyGUI_KgeDataManager.h"\n#include "MyGUI_KgeTexture.h"\n#include "MyGUI_KgeVertexBuffer.h"\n#include ...
390
7
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 20.86, "nodes": 212, "errors": 0, "source_hash": "da7645bbde1a775ba03876d74376f49e9ad175a5b9dc7527d90efe7e5a2efa76", "categorized_nodes": 155}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,925
c
//********************************************************************** // File name: pre.h // // Used for precompiled headers // // Copyright (c) 1993-1996 Microsoft Corporation. All rights reserved. //********************************************************************** #if !defined( _PRE_H_) #define...
19.94
49
(translation_unit) "//********************************************************************** \n// File name: pre.h \n// \n// Used for precompiled headers \n// \n// Copyright (c) 1993-1996 Microsoft Corporation. All rights reserved. \n//********************************************************************** \n \n#if...
153
0
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 19.94, "nodes": 101, "errors": 0, "source_hash": "fdba5fb9385243b73c82585794aa0f663c4f60f6a71943d3e0bc5e277d542629", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defin...
79,926
c
// Copyright (c) 2021 <NAME> <<EMAIL>> // This file is subject to the terms of license that can be // found in the LICENSE file. #ifndef UUIDXX_UUID_H_ #define UUIDXX_UUID_H_ #include <array> #include <cstdint> #include <exception> #include <string> #include <string_view> #include "uuidxx/clock_sequence.h" #include ...
31.56
164
(translation_unit) "// Copyright (c) 2021 <NAME> <<EMAIL>>\n// This file is subject to the terms of license that can be\n// found in the LICENSE file.\n\n#ifndef UUIDXX_UUID_H_\n#define UUIDXX_UUID_H_\n\n#include <array>\n#include <cstdint>\n#include <exception>\n#include <string>\n#include <string_view>\n\n#include "u...
1,615
81
{"language": "c", "success": true, "metadata": {"lines": 164, "avg_line_length": 31.56, "nodes": 990, "errors": 0, "source_hash": "725b157f3da70942d50e99cc6044e46181c708080f96831e2cd8cfd5fc90b82c", "categorized_nodes": 656}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
79,927
c
#include "box.include.h" #include "inner.fullbox.h" #include "inner.data.h" typedef struct mpeg4_stuff__extended_language_t { inner_fullbox_t fullbox; char *name; size_t length; } mpeg4_stuff__extended_language_t; typedef struct mpeg4_stuff__extended_language_s { mpeg4_stuff_t stuff; mpeg4_stuff__extended_langua...
31.13
104
(translation_unit) "#include "box.include.h"\n#include "inner.fullbox.h"\n#include "inner.data.h"\n\ntypedef struct mpeg4_stuff__extended_language_t {\n inner_fullbox_t fullbox;\n char *name;\n size_t length;\n} mpeg4_stuff__extended_language_t;\n\ntypedef struct mpeg4_stuff__extended_language_s {\n mpeg4_stuff_t stuff...
1,061
5
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 31.13, "nodes": 622, "errors": 0, "source_hash": "03302552276640f35b30275350825233c087206c4f8e978d1d94ed82ade49421", "categorized_nodes": 463}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,928
c
/** ![Clouds can serve as tracers to reveal the occurrence of a shear instability in the atmosphere. Image courtesy of [EarthSky](http://earthsky.org/earth/kelvin-helmholzt-clouds).](http://en.es-static.us/upl/2016/05/kelvin-hemhotltz-wave-cloud-mashka.jpg) # The Kelvin-Helmholtz instability in two dimensions On th...
37.46
169
(translation_unit) "/**\n![Clouds can serve as tracers to reveal the occurrence of a shear\n instability in the atmosphere. Image courtesy of\n [EarthSky](http://earthsky.org/earth/kelvin-helmholzt-clouds).](http://en.es-static.us/upl/2016/05/kelvin-hemhotltz-wave-cloud-mashka.jpg)\n\n# The Kelvin-Helmholtz instability...
824
26
{"language": "c", "success": true, "metadata": {"lines": 169, "avg_line_length": 37.46, "nodes": 489, "errors": 0, "source_hash": "5bf0168bcdee59f5e728f2de70396a247acc2047781457bdfe2943acd3253102", "categorized_nodes": 340}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,929
c
/* * IMPLEMENTATION OF TRAPEZOIDAL RULE * FOR CALCULATING AREA UNDER CURVE * * f : USER GIVEN FUNCTION * a : LOWER LIMIT OF INTIGRATION * b : UPPER LIMIT OF INTIGRATION * h : FIXED DIFFERENCE IN INTERVAL (LIMIT -> 0) * n : FIXED NUMBER OF INTERVAL (LIMIT --> infinity) */ #include <stdio.h> #include <math.h> ...
21.2
41
(translation_unit) "/*\n * IMPLEMENTATION OF TRAPEZOIDAL RULE\n * FOR CALCULATING AREA UNDER CURVE\n *\n * f : USER GIVEN FUNCTION\n * a : LOWER LIMIT OF INTIGRATION\n * b : UPPER LIMIT OF INTIGRATION\n * h : FIXED DIFFERENCE IN INTERVAL (LIMIT -> 0)\n * n : FIXED NUMBER OF INTERVAL (LIMIT --> infinity)\n */\n\n#includ...
275
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 21.2, "nodes": 181, "errors": 0, "source_hash": "ab47afee2c7c0900e639bf2f4762c82789ccf94638dcfcfd7f7899f69c2071fd", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
79,930
c
// se afiseaza 1 2 tot timpul #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <math.h> pthread_barrier_t barrier; void* threadFunction0(void *var) { printf("1\n"); pthread_barrier_wait(&barrier); } void* threadFunction1(void *var) { pthread_barrier_wait(&barrier); printf("2\n"); } int main...
22.82
34
(translation_unit) "// se afiseaza 1 2 tot timpul\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <pthread.h>\n#include <math.h>\n\npthread_barrier_t barrier;\n\nvoid* threadFunction0(void *var)\n{\n printf("1\n");\n pthread_barrier_wait(&barrier);\n}\n\nvoid* threadFunction1(void *var)\n{\n pthread_barrier_wait(&...
298
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 22.82, "nodes": 171, "errors": 0, "source_hash": "8ed51b7be27ad6c229626817c2df5ea2ce3f4e1614ccee56d3e8b593c18fa52c", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,931
c
/* SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include <tilck/common/basic_defs.h> #include <3rd_party/acpi/acpi.h> ACPI_STATUS osl_init_malloc(void); ACPI_STATUS osl_init_tasks(void); ACPI_STATUS osl_init_irqs(void);
21.9
10
(translation_unit) "/* SPDX-License-Identifier: BSD-2-Clause */\n\n#pragma once\n#include <tilck/common/basic_defs.h>\n#include <3rd_party/acpi/acpi.h>\n\nACPI_STATUS\nosl_init_malloc(void);\n\nACPI_STATUS\nosl_init_tasks(void);\n\nACPI_STATUS\nosl_init_irqs(void);\n" (comment) "/* SPDX-License-Identifier: BSD-2-Clau...
41
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.9, "nodes": 30, "errors": 0, "source_hash": "ceb0bb170ccfbe69ef95b7a5bffee5aa6029df5d0658292b5fc875b541d24136", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
79,932
c
#ifndef PROVINCE_SEARCH_SUB_PANEL_H #define PROVINCE_SEARCH_SUB_PANEL_H #include <string> #include <vector> #include "ListBox.h" #include "Panel.h" #include "TextBox.h" #include "../Math/Vector2.h" #include "../Rendering/Texture.h" // The province search sub-panel lets the player enter a location name and travel to ...
41.06
53
(translation_unit) "#ifndef PROVINCE_SEARCH_SUB_PANEL_H\n#define PROVINCE_SEARCH_SUB_PANEL_H\n\n#include <string>\n#include <vector>\n\n#include "ListBox.h"\n#include "Panel.h"\n#include "TextBox.h"\n#include "../Math/Vector2.h"\n#include "../Rendering/Texture.h"\n\n// The province search sub-panel lets the player ente...
451
26
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 41.06, "nodes": 261, "errors": 0, "source_hash": "3eb4b1c6b7e498e5ea105fa23256b94be048844b3890ef9f49317b5db0f36e2b", "categorized_nodes": 197}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,933
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/DataDetectorsUI.framework/DataDetectorsUI */ @interface DDCopyAction : DDAction + (bool)actionAvailableForContact:(id)arg1; - (bool)canBePerformedWhenDeviceIsLocked; - (id)localizedName; - (void)performFromView:(id)arg1; @end
32.56
9
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/DataDetectorsUI.framework/DataDetectorsUI\n */\n\n@interface DDCopyAction : DDAction\n\n+ (bool)actionAvailableForContact:(id)arg1;\n\n- (bool)canBePerformedWhenDeviceIsLocked;\n- (id)localizedName;\n- (void)performFromView:...
65
6
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 32.56, "nodes": 37, "errors": 0, "source_hash": "851a76d2202566a45b8cf35ca9cae32cdaf25f5c32c9109fdf8dea6d2b459c99", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface DDCopy...
79,934
c
#ifndef SHOOTER_VERBOSE_H #define SHOOTER_VERBOSE_H #include <ncurses.h> #include <string.h> #include <algorithm> #include <vector> #include <ctype.h> #include "shooter_utils.h" #include "shooter_structs.h" using namespace std; namespace verbose{ const char *dimensionInfoLine1 = "Please choose the dimensions for ...
34.43
176
(translation_unit) "#ifndef SHOOTER_VERBOSE_H\n#define SHOOTER_VERBOSE_H\n\n#include <ncurses.h>\n#include <string.h>\n#include <algorithm>\n#include <vector>\n#include <ctype.h>\n#include "shooter_utils.h"\n#include "shooter_structs.h"\n\nusing namespace std;\n\nnamespace verbose{\n\n const char *dimensionInfoLine1 =...
1,758
38
{"language": "c", "success": true, "metadata": {"lines": 176, "avg_line_length": 34.43, "nodes": 989, "errors": 0, "source_hash": "2412684e75e72f4770191a78809bae69b8a8076c8eddbf58889dffa5532f1df0", "categorized_nodes": 666}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
79,935
c
// Copyright 2013 <NAME>. // // Author: <NAME> (<EMAIL>) // // 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, mo...
34.12
80
(translation_unit) "// Copyright 2013 <NAME>.\n//\n// Author: <NAME> (<EMAIL>)\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the "Software"), to deal\n// in the Software without restriction, including without limitation the ...
307
0
{"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 34.12, "nodes": 167, "errors": 0, "source_hash": "8af76709a0acc9b00aebcd171a0d820066e87b796a8a894e962f559b4c32cd52", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,936
c
/* * Copyright (C) 2015-2017 Alibaba Group Holding Limited */ #include "iperf_wrapper.h" #ifdef __cplusplus extern "C" { #endif extern void *rt_malloc(int size); extern void rt_free(void *rmem); void iperf_wrapper_free(void * ptr) { rt_free(ptr); } void *iperf_wrapper_malloc(unsigned int size) { return r...
18
20
(translation_unit) "/*\n * Copyright (C) 2015-2017 Alibaba Group Holding Limited\n */\n\n#include "iperf_wrapper.h"\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\nextern void *rt_malloc(int size);\nextern void rt_free(void *rmem);\n\nvoid iperf_wrapper_free(void * ptr)\n{\n rt_free(ptr);\n}\n\nvoid *iperf_wrapper_ma...
109
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 18.0, "nodes": 71, "errors": 0, "source_hash": "43e5f1ac2108ecf56c7fce18961cece3370f189bbd7e9b67ba54ae5ebaec8a2f", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
79,937
c
#ifndef __X86_ASM_NOPS_H__ #define __X86_ASM_NOPS_H__ #include <xen/config.h> /* * Define nops for use with alternative(). */ /* * Opteron 64bit nops * 1: nop * 2: osp nop * 3: osp osp nop * 4: osp osp osp nop */ #define K8_NOP1 0x90 #define K8_NOP2 0x66,K8_NOP1 #define K8_NOP3 0x66,K8_NOP2 #define K8_NOP4 0...
26.34
58
(translation_unit) "#ifndef __X86_ASM_NOPS_H__\n#define __X86_ASM_NOPS_H__\n\n#include <xen/config.h>\n\n/*\n * Define nops for use with alternative().\n */\n\n/*\n * Opteron 64bit nops\n * 1: nop\n * 2: osp nop\n * 3: osp osp nop\n * 4: osp osp osp nop\n */\n#define K8_NOP1 0x90\n#define K8_NOP2 0x66,K8_NOP1\n#define ...
137
0
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 26.34, "nodes": 128, "errors": 0, "source_hash": "984c35c9b6e05484e4ef9294aacba243bbed691adcaf79dd55d1a4ed189766fb", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,938
c
#ifndef _PF_TYPE_H_ #define _PF_TYPE_H_ #include "network.h" #include "thread.h" enum Status {STATUS_NOT_YET, STATUS_READY, STATUS_ERROR}; struct terminal_t { const char *ip; int port; enum Status status; SOCKET fd; }; struct session_t { struct terminal_t term[2]; }; #define THE_OTHER(t) (!(t)) #endif
16.11
18
(translation_unit) "#ifndef _PF_TYPE_H_\n#define _PF_TYPE_H_\n\n#include "network.h"\n#include "thread.h"\n\nenum Status {STATUS_NOT_YET, STATUS_READY, STATUS_ERROR};\n\nstruct terminal_t\n{\n const char *ip;\n int port;\n enum Status status;\n SOCKET fd;\n};\n\nstruct session_t\n{\n struct terminal_t term[2];\n};\n\n#...
89
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 16.11, "nodes": 58, "errors": 0, "source_hash": "14f97ba3e83cfb416d7abbd5ad6f86d072b1f6650621cfeb2bb8781d493b6ae5", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,939
c
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
31.06
54
(translation_unit) "/*\n * CDDL HEADER START\n *\n * The contents of this file are subject to the terms of the\n * Common Development and Distribution License (the "License").\n * You may not use this file except in compliance with the License.\n *\n * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE...
179
0
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 31.06, "nodes": 131, "errors": 0, "source_hash": "559300808f098f6742e121b1513a52644fe16e6c9f8f29dce195031f47aecf64", "categorized_nodes": 119}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,940
c
/* * Copyright (c) 2015, Freescale Semiconductor, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * o Redistributions of source code must retain the above copyright notice, this list...
38.31
85
(translation_unit) "/*\n * Copyright (c) 2015, Freescale Semiconductor, Inc.\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without modification,\n * are permitted provided that the following conditions are met:\n *\n * o Redistributions of source code must retain the above ...
413
0
{"language": "c", "success": true, "metadata": {"lines": 85, "avg_line_length": 38.31, "nodes": 230, "errors": 0, "source_hash": "ade0fdbb0682b29c8f092c3a755ea3bf51575ba67268494c3da834daaad46a2b", "categorized_nodes": 157}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,941
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSURL.h" @interface NSURL (SPMAdditions) - (id)__spm_localizedName; - (BOOL)__spm_isLocalVolume; - (BOOL)__spm_isHFSStandard; - (id)__spm_volumeURL; - (id)__spm_ownerUUIDString;...
24.75
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 "NSURL.h"\n\n@interface NSURL (SPMAdditions)\n- (id)__spm_localizedName;\n- (BOOL)__spm_isLocalVolume;\n- (BOOL)__spm_isHFSStandard;\n- (id)__spm_volumeU...
103
4
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 24.75, "nodes": 60, "errors": 0, "source_hash": "126c9c07ab253d96ac246fde46bee8ecc784a0f98f45140949ef77b55f1ebf9c", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
79,942
c
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "BehaviorTree/Tasks/BTTask_BlackboardBase.h" #include "BehaviorTree/BehaviorTreeTypes.h" #include "RootEnemyCharacter.h" #include "ChasePlayer_BTTask.generated.h" /** * */ UCLASS(Blueprint...
30
19
(translation_unit) "// Fill out your copyright notice in the Description page of Project Settings.\n\n#pragma once\n\n#include "CoreMinimal.h"\n#include "BehaviorTree/Tasks/BTTask_BlackboardBase.h"\n#include "BehaviorTree/BehaviorTreeTypes.h"\n#include "RootEnemyCharacter.h"\n#include "ChasePlayer_BTTask.generated.h"\n...
106
4
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 30.0, "nodes": 56, "errors": 0, "source_hash": "c325cf374af8e0781fcc9f67061f7fa161340322f9fe9fba51ed21a13ca93917", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
79,943
c
#include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> void main() { int fd; char buf[512]; int c; unsigned int checksum; fd = open("firmware.bin", O_RDONLY); checksum = 0; while(1) { c = read(fd, buf, 512); if(c <= 0) break; checksum = crc32(checksum, buf, c); ...
17.3
20
(translation_unit) "#include <unistd.h>\n#include <sys/types.h>\n#include <sys/stat.h>\n#include <fcntl.h>\n\nvoid main()\n{\n int fd;\n char buf[512];\n int c;\n unsigned int checksum;\n fd = open("firmware.bin", O_RDONLY);\n checksum = 0;\n\n while(1) {\n c = read(fd, buf, 512);\n if(c <= 0) break;\n\n ...
140
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 17.3, "nodes": 84, "errors": 0, "source_hash": "5a6010545b3a2b08cff62c877c63834f8fff6d7f0bb9d7051ead17ad8c5348a8", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
79,944
c
/////////////////////////////////////////////////////////////////////////////// // unvell Common Graphics Module (libugm.a) // Common classes for cross-platform C++ 2D/3D graphics application. // // MIT License // Copyright 2016-2019 Jingwood, unvell.com, all rights reserved. ///////////////////////////////////////...
32.04
256
(translation_unit) "///////////////////////////////////////////////////////////////////////////////\n// unvell Common Graphics Module (libugm.a)\n// Common classes for cross-platform C++ 2D/3D graphics application.\n//\n// MIT License\n// Copyright 2016-2019 Jingwood, unvell.com, all rights reserved.\n/////////////...
4,150
155
{"language": "c", "success": true, "metadata": {"lines": 256, "avg_line_length": 32.04, "nodes": 2804, "errors": 0, "source_hash": "cb103d7dad5ecba257bc92f5d6f8493a4998568534351399ec8c31236d43a66b", "categorized_nodes": 2052}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#if...
79,945
c
#ifndef HEADER_PACKET_H #define HEADER_PACKET_H ssize_t packet_send(Socket *s, void *data, size_t size); ssize_t packet_receive(Socket *s, char *data); #endif
30.8
5
(translation_unit) "#ifndef HEADER_PACKET_H\n#define HEADER_PACKET_H\n\nssize_t packet_send(Socket *s, void *data, size_t size);\n\nssize_t packet_receive(Socket *s, char *data);\n\n#endif" (preproc_ifdef) "#ifndef HEADER_PACKET_H\n#define HEADER_PACKET_H\n\nssize_t packet_send(Socket *s, void *data, size_t size);\n\...
50
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 30.8, "nodes": 40, "errors": 0, "source_hash": "fa9dc16a0ebf61d4919816c81d2434c800a551dec0aef1ec6ec600c4ce32bd27", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef HE...
79,946
c
#ifndef TINYMUD_CONNECTION_H #define TINYMUD_CONNECTION_H #include <stdbool.h> #include <sys/socket.h> #include <netinet/in.h> #include "db.h" #include "text.h" #include "error.h" #include "socket.h" struct connection; typedef struct connection connection; struct connection { sock_t descriptor; bool ...
29.05
43
(translation_unit) "#ifndef TINYMUD_CONNECTION_H\n#define TINYMUD_CONNECTION_H\n\n#include <stdbool.h>\n#include <sys/socket.h>\n#include <netinet/in.h>\n\n#include "db.h"\n#include "text.h"\n#include "error.h"\n#include "socket.h"\n\nstruct connection;\ntypedef struct connection connection;\n\nstruct connection {\n so...
329
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 29.05, "nodes": 247, "errors": 0, "source_hash": "f578514726d22d5e41c31bd92c8c07906ef016fbd623cfa9d5ad40d42ed2c4be", "categorized_nodes": 160}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,947
c
#include "clar_libgit2.h" #include "git2/sys/repository.h" #include "apply.h" #include "repository.h" #include "../patch/patch_common.h" static git_repository *repo = NULL; void test_apply_partial__initialize(void) { repo = cl_git_sandbox_init("renames"); } void test_apply_partial__cleanup(void) { cl_git_sandbox...
27.94
189
(translation_unit) "#include "clar_libgit2.h"\n#include "git2/sys/repository.h"\n\n#include "apply.h"\n#include "repository.h"\n\n#include "../patch/patch_common.h"\n\nstatic git_repository *repo = NULL;\n\nvoid test_apply_partial__initialize(void)\n{\n repo = cl_git_sandbox_init("renames");\n}\n\nvoid test_apply_parti...
1,411
0
{"language": "c", "success": true, "metadata": {"lines": 189, "avg_line_length": 27.94, "nodes": 799, "errors": 0, "source_hash": "3289570b5e7ea92dce1d035a1829328914e829292ac7b1754d28b0b6da88d000", "categorized_nodes": 550}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,948
c
/////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 1999, Microsoft Corp. All rights reserved. // // FILE // // sdodictionary.h // // SYNOPSIS // // Declares the class SdoDictionary. // // MODIFICATION HISTORY // // 03/01/1999 Original version. ...
28.8
127
(translation_unit) "/////////////////////////////////////////////////////////////////////////////// \n// \n// Copyright (c) 1999, Microsoft Corp. All rights reserved. \n// \n// FILE \n// \n// sdodictionary.h \n// \n// SYNOPSIS \n// \n// Declares the class SdoDictionary. \n// \n// MODIFICATION HISTORY \n// \n// ...
619
13
{"language": "c", "success": true, "metadata": {"lines": 127, "avg_line_length": 28.8, "nodes": 357, "errors": 0, "source_hash": "dd731bd36142d72e1fd9ef09579873c5807c64a47a0353d694dd455d819871eb", "categorized_nodes": 234}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,949
c
#pragma once #include <system/enum_helpers.h> namespace System { namespace Net { enum class AuthenticationSchemes { None = 0x00000000, Digest = 0x00000001, Negotiate = 0x00000002, Ntlm = 0x00000004, Basic = 0x00000008, Anonymous = 0x00008000, IntegratedWindowsAuthentication = static_cast...
26.53
19
(translation_unit) "ragma once\n\n#include <system/enum_helpers.h>\n\nnamespace System {\nnamespace Net {\n\nenum class AuthenticationSchemes\n{\n None = 0x00000000,\n Digest = 0x00000001,\n Negotiate = 0x00000002,\n Ntlm = 0x00000004,\n Basic = 0x00000008,\n Anonymous = 0x00008000,\n IntegratedWin...
116
5
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 26.53, "nodes": 79, "errors": 0, "source_hash": "8dce5d8a8c88a2555faffd6a2a0cb10da80a836444978dce06ce9494d09c1330", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma onc...
79,950
c
/* This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. In jurisdictions that recognize copy...
32.63
76
(translation_unit) "/*\nThis is free and unencumbered software released into the public domain.\n\nAnyone is free to copy, modify, publish, use, compile, sell, or\ndistribute this software, either in source code form or as a compiled\nbinary, for any purpose, commercial or non-commercial, and by any\nmeans.\n\nIn juris...
417
0
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 32.63, "nodes": 244, "errors": 0, "source_hash": "3c97b7909f2889cd809e0e82772f0d4af1c7740b66d8729ac5f04bbcc976b501", "categorized_nodes": 184}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,951
c
#pragma once namespace bbai::jsonex { class json_value; //-------------------------------------------------------------------------------------------------- // sum2 //-------------------------------------------------------------------------------------------------- int sum2(const json_value* json) noexcept; } // name...
41.12
8
(translation_unit) "#pragma once\n\nnamespace bbai::jsonex {\nclass json_value;\n\n//--------------------------------------------------------------------------------------------------\n// sum2\n//--------------------------------------------------------------------------------------------------\nint sum2(const json_valu...
39
2
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 41.12, "nodes": 21, "errors": 0, "source_hash": "569a4623311a6223b14ccf382976ec631f3d3c4cce5bc791007b871ac33aafa8", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
79,952
c
#pragma once #include "quiz.h" #include "utils.h" #include "log.h" namespace cpp_quiz { namespace file_parser { std::unique_ptr<Quiz> loadQuizFromFile(const std::string&); std::unique_ptr<Question> parseQuestionFromLine(const std::string&, int); } // namespace file_parser } // namespace cpp_quiz
29.3
10
(translation_unit) "#pragma once\n\n#include "quiz.h"\n#include "utils.h"\n#include "log.h"\n\nnamespace cpp_quiz {\n\n namespace file_parser {\n\n std::unique_ptr<Quiz> loadQuizFromFile(const std::string&);\n\n std::unique_ptr<Question> parseQuestionFromLine(const std::string&, int);\n\n } // namespace file_parser\n...
90
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 29.3, "nodes": 49, "errors": 0, "source_hash": "b1eb8a362a7c388a70d9c7d4f305f8d56a35f9acb20e2c8b223613979ffe97e8", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
79,953
c
/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright 2017 NXP * Copyright 2015 Freescale Semiconductor */ #ifndef _ASM_ARMV8_FSL_LAYERSCAPE_SOC_H_ #define _ASM_ARMV8_FSL_LAYERSCAPE_SOC_H_ #ifndef __ASSEMBLY__ #include <linux/types.h> #ifdef CONFIG_FSL_LSCH2 #include <asm/arch/immap_lsch2.h> #endif #ifdef CONFIG_...
29.63
133
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0+ */\n/*\n * Copyright 2017 NXP\n * Copyright 2015 Freescale Semiconductor\n */\n\n#ifndef _ASM_ARMV8_FSL_LAYERSCAPE_SOC_H_\n#define _ASM_ARMV8_FSL_LAYERSCAPE_SOC_H_\n\n#ifndef __ASSEMBLY__\n#include <linux/types.h>\n#ifdef CONFIG_FSL_LSCH2\n#include <asm/arch/imma...
676
0
{"language": "c", "success": true, "metadata": {"lines": 133, "avg_line_length": 29.63, "nodes": 529, "errors": 0, "source_hash": "dc2e72eb3e7d9b4424a69e1c30d4f141505a35f631395e9d5548b1d5a94735b0", "categorized_nodes": 309}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
79,954
c
/* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class com_mxu_app_kkplayer_interop_IMediaControl */ #ifndef _Included_com_mxu_app_kkplayer_interop_IMediaControl #define _Included_com_mxu_app_kkplayer_interop_IMediaControl #ifdef __cplusplus extern "C" { #endif /* * Class: com_...
27.76
33
(translation_unit) "/* DO NOT EDIT THIS FILE - it is machine generated */\n#include <jni.h>\n/* Header for class com_mxu_app_kkplayer_interop_IMediaControl */\n\n#ifndef _Included_com_mxu_app_kkplayer_interop_IMediaControl\n#define _Included_com_mxu_app_kkplayer_interop_IMediaControl\n#ifdef __cplusplus\nextern "C" {\n...
92
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 27.76, "nodes": 65, "errors": 0, "source_hash": "e30db119dca93194ca7e6592d1356839eb3934c53fd0624de00771313a894657", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
79,955
c
/** @file ioc_compress.h @brief Frame data compression and uncompression. @author <NAME> @version 1.0 @date 26.4.2021 Copyright 2020 <NAME>. This file is part of the iocom project and shall only be used, modified, and distributed under the terms of the project licensing. By continuing to use, m...
30.32
41
(translation_unit) "/**\n\n @file ioc_compress.h\n @brief Frame data compression and uncompression.\n @author <NAME>\n @version 1.0\n @date 26.4.2021\n\n Copyright 2020 <NAME>. This file is part of the iocom project and shall only be used,\n modified, and distributed under the terms of the project licen...
87
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 30.32, "nodes": 63, "errors": 0, "source_hash": "f88b2796e7782ce5e4494edf44ba334aca3cd53aa10936a471450c7a3579cac9", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
79,956
c
#ifndef __LOAD_FILE_H_ #define __LOAD_FILE_H_ #pragma once #include "../wim_packet.h" namespace core { namespace tools { class http_request_simple; } } namespace core { namespace wim { class web_file_info; class load_file : public wim_packet { std::un...
31.47
32
(translation_unit) "#ifndef __LOAD_FILE_H_\n#define __LOAD_FILE_H_\n\n#pragma once\n\n#include "../wim_packet.h"\n\nnamespace core\n{\n namespace tools\n {\n class http_request_simple;\n }\n}\n\nnamespace core\n{\n namespace wim\n {\n class web_file_info;\n\n class load_file : public...
245
21
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 31.47, "nodes": 137, "errors": 0, "source_hash": "bfc5aaccb12238e99406ef79d034060bd5556564c0916fe8bb0d38380cbd53ea", "categorized_nodes": 96}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,957
c
// Copyright information can be found in the file named COPYING // located in the root directory of this distribution. #ifndef _GFXVERTEXCOLOR_H_ #define _GFXVERTEXCOLOR_H_ #ifndef _SWIZZLE_H_ #include "core/util/swizzle.h" #endif class ColorI; class GFXVertexColor { private: U32 packedColorData; static S...
33.08
38
(translation_unit) "// Copyright information can be found in the file named COPYING\n// located in the root directory of this distribution.\n\n#ifndef _GFXVERTEXCOLOR_H_\n#define _GFXVERTEXCOLOR_H_\n\n#ifndef _SWIZZLE_H_\n#include "core/util/swizzle.h"\n#endif\n\n\nclass ColorI;\n\n\nclass GFXVertexColor \n{\n\nprivate...
372
16
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 33.08, "nodes": 210, "errors": 0, "source_hash": "b74153d85ff71067b1df0a64cffbca312206d22d88a70561ca2c023773126ac0", "categorized_nodes": 150}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,958
c
#ifndef VECTOR_H #define VECTOR_H #define ice_vector_LIMIT 1 #define ICE_MAX_LEN_STR_CMP 512 typedef struct vector { void **elements; int limit; int max; } ice_vector; void ice_vector_init(ice_vector *v); int ice_vector_max(ice_vector *v); void ice_vector_resize(ice_vector *v, int limit); void ice_vect...
33.19
27
(translation_unit) "#ifndef VECTOR_H\n#define VECTOR_H\n\n#define ice_vector_LIMIT 1\n#define ICE_MAX_LEN_STR_CMP 512\n\ntypedef struct vector {\n void **elements;\n int limit;\n int max;\n} ice_vector;\n\n\nvoid ice_vector_init(ice_vector *v);\nint ice_vector_max(ice_vector *v);\nvoid ice_vector_resize(ice_v...
303
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 33.19, "nodes": 224, "errors": 0, "source_hash": "46e07b89f465e69024d0c75f963f79968ab051a362c46783828a68b262ffd533", "categorized_nodes": 122}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,959
c
#include <assert.h> #include <stddef.h> int main(int argc, char *argv[]) { // Test reading from an array using a pointer int a[3]={1, 2, 3}; int *p=a; assert(p==&a[0]); assert(*p==1); // Test pointer arithmetic int *q=&a[1]; assert(q==p+1); assert(*q==2); // Test pointer diffs ptrdiff_t x=1; ...
20.86
49
(translation_unit) "#include <assert.h>\n#include <stddef.h>\n\nint main(int argc, char *argv[])\n{\n // Test reading from an array using a pointer\n int a[3]={1, 2, 3};\n int *p=a;\n assert(p==&a[0]);\n assert(*p==1);\n\n // Test pointer arithmetic\n int *q=&a[1];\n assert(q==p+1);\n assert(*q==2);\n\n // Te...
433
0
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 20.86, "nodes": 287, "errors": 0, "source_hash": "e00a60ac5e2a9ddaa5c633f2ab2b165430b1f68af397124cccdc22cd36051391", "categorized_nodes": 189}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,960
c
// // WARPhotoGroupMangerViewController.h // WARProfile // // Created by 秦恺 on 2018/3/23. // #import "WARPhotoBaseViewController.h" @class WARGroupModel; typedef void (^downCountBlock)(WARGroupModel *model); @interface WARPhotoGroupMangerViewController : WARPhotoBaseViewController /**选中数组*/ @property (nonatomic,str...
28.07
14
(translation_unit) "//\n// WARPhotoGroupMangerViewController.h\n// WARProfile\n//\n// Created by 秦恺 on 2018/3/23.\n//\n\n#import "WARPhotoBaseViewController.h"\n@class WARGroupModel;\ntypedef void (^downCountBlock)(WARGroupModel *model);\n@interface WARPhotoGroupMangerViewController : WARPhotoBaseViewController\n/**...
77
13
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 28.07, "nodes": 53, "errors": 0, "source_hash": "abed50118210352a4ef51918f196c83eb04bb8b5136040f1e12d483062bc1bd1", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ort \"WAR...
79,961
c
/* * This header is generated by classdump-dyld 1.0 * on Saturday, June 1, 2019 at 6:51:27 PM Mountain Standard Time * Operating System: Version 12.1.1 (Build 16C5050a) * Image Source: /System/Library/PrivateFrameworks/NanoTimeKitCompanion.framework/NanoTimeKitCompanion * classdump-dyld is licensed under GPLv3, Copyrig...
45.68
19
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Saturday, June 1, 2019 at 6:51:27 PM Mountain Standard Time\n* Operating System: Version 12.1.1 (Build 16C5050a)\n* Image Source: /System/Library/PrivateFrameworks/NanoTimeKitCompanion.framework/NanoTimeKitCompanion\n* classdump-dyld is lice...
112
12
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 45.68, "nodes": 67, "errors": 0, "source_hash": "5d1769a6884b773b1db1f87d4480de53dd9fd0199c253ed5bf809f7ed60daca9", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <N...
79,962
c
// Copyright 2021 Phyronnaz #pragma once #include "CoreMinimal.h" #include "Factories/VoxelFactories.h" #include "Factories/VoxelAssetClassParentFilter.h" #include "KismetCompilerModule.h" #include "Modules/ModuleManager.h" #include "Kismet2/SClassPickerDialog.h" #include "VoxelFoliage.h" #include "VoxelFo...
27.26
133
(translation_unit) "// Copyright 2021 Phyronnaz \n \n#pragma once \n \n#include "CoreMinimal.h" \n#include "Factories/VoxelFactories.h" \n#include "Factories/VoxelAssetClassParentFilter.h" \n#include "KismetCompilerModule.h" \n#include "Modules/ModuleManager.h" \n#include "Kismet2/SClassPickerDialog.h" \n#include "Voxe...
789
26
{"language": "c", "success": true, "metadata": {"lines": 133, "avg_line_length": 27.26, "nodes": 474, "errors": 0, "source_hash": "1433364397095ad52e5616a355259061936430f455741e843cce78982f8a0be3", "categorized_nodes": 325}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
79,963
c
// // MaskInterpreter.h // MaskInterpreter // // Created by <NAME> on 29/08/2019. // Copyright © 2019 SurfStudio. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for MaskInterpreter. FOUNDATION_EXPORT double MaskInterpreterVersionNumber; //! Project version string for MaskInterpreter. ...
39.62
13
(translation_unit) "//\n// MaskInterpreter.h\n// MaskInterpreter\n//\n// Created by <NAME> on 29/08/2019.\n// Copyright © 2019 SurfStudio. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n//! Project version number for MaskInterpreter.\nFOUNDATION_EXPORT double MaskInterpreterVersionNumber;\n\n//! Project ver...
33
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 39.62, "nodes": 15, "errors": 0, "source_hash": "88a8da75ba7236334003d747b4bd6efd1ac99cf345f4fe040997b330f5816714", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
79,964
c
// license [ // This file is part of the Phantom project. Copyright 2011-2020 <NAME>. // Distributed under the MIT license. Text available here at // https://github.com/vlmillet/phantom // ] #pragma once /* ****************** Includes ******************* */ #include "Statement.h" /* **************** Declarations ****...
38.15
47
(translation_unit) "// license [\n// This file is part of the Phantom project. Copyright 2011-2020 <NAME>.\n// Distributed under the MIT license. Text available here at\n// https://github.com/vlmillet/phantom\n// ]\n\n#pragma once\n\n/* ****************** Includes ******************* */\n#include "Statement.h"\n/* ****...
194
5
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 38.15, "nodes": 90, "errors": 0, "source_hash": "e54f7b9182c7dcd9f4f1d215a135750c968757c6ed6fa0d80ec7821b9c79bf81", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
79,965
c
/*-------------------------------------------------------------------------- DS89C4xx.H Registers definition for Dallas Semiconductors DS89C420/430/440/450 Copyright (c) 2004 Keil Elektronik GmbH and Keil Software, Inc. All rights reserved. -------------------------------------------------------------------------- */ ...
23.44
139
(translation_unit) "/*--------------------------------------------------------------------------\nDS89C4xx.H\nRegisters definition for Dallas Semiconductors DS89C420/430/440/450\n\nCopyright (c) 2004 Keil Elektronik GmbH and Keil Software, Inc.\nAll rights reserved.\n----------------------------------------------------...
1,071
0
{"language": "c", "success": true, "metadata": {"lines": 139, "avg_line_length": 23.44, "nodes": 936, "errors": 0, "source_hash": "22fabfe1d511135ba4a69e2ff7854729ff67acb913438c582544118d25c34913", "categorized_nodes": 624}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "sfr P...
79,966
c
#ifndef UNITTEST_TESTREPORTER_H #define UNITTEST_TESTREPORTER_H namespace UnitTest { class TestDetails; class TestReporter { public: virtual ~TestReporter(); virtual void ReportTestStart(TestDetails const& test) = 0; virtual void ReportFailure(TestDetails const& test, char const* failure) = 0; virtu...
33.8
15
(translation_unit) "#ifndef UNITTEST_TESTREPORTER_H\n#define UNITTEST_TESTREPORTER_H\n\nnamespace UnitTest {\n\nclass TestDetails;\n\nclass TestReporter\n{\npublic:\n virtual ~TestReporter();\n\n virtual void ReportTestStart(TestDetails const& test) = 0;\n virtual void ReportFailure(TestDetails const& test, ch...
139
8
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 33.8, "nodes": 91, "errors": 0, "source_hash": "0ec59e02f2396605485bd654894f8b9eb6a136c6fe8c8c5a21b4f2d889430c31", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef U...
79,967
c
/* Copyright (c) 2015, <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: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclai...
36.4
83
(translation_unit) "/*\nCopyright (c) 2015, <NAME> All rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n list of condition...
335
14
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 36.4, "nodes": 248, "errors": 0, "source_hash": "c69fc053a69a3eafe5f8379640b2b44654b5ad62f3f9167de4a95e37ca6ba327", "categorized_nodes": 145}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
79,968
c
/* Generated by RuntimeBrowser Image: /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit */ @interface NSCustomImageRep : NSImageRep { SEL _drawMethod; id _drawObject; unsigned int _reserved; } @property (atomic, readonly) id delegate; @property (atomic, readonly) SEL drawSelector; @prop...
36.12
33
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit\n */\n\n@interface NSCustomImageRep : NSImageRep {\n SEL _drawMethod;\n id _drawObject;\n unsigned int _reserved;\n}\n\n@property (atomic, readonly) id delegate;\n@property (atomic, re...
462
27
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 36.12, "nodes": 273, "errors": 0, "source_hash": "3dcccc708475491110baa6a785dbfc802c4c402cb3c0f5aaa5fe707901eae77b", "categorized_nodes": 183}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": ...
79,969
c
#ifndef __NPC_CHARM_H__ #define __NPC_CHARM_H__ void NPC_CharmTalked( int meindex , int talkerindex , char *msg , int color ); BOOL NPC_CharmInit( int meindex ); void NPC_CharmWindowTalked( int meindex, int talkerindex, int seqno, int select, char *data); void NPC_CharmLooked( int meindex , int lo...
41.25
8
(translation_unit) "#ifndef __NPC_CHARM_H__\n#define __NPC_CHARM_H__\n\nvoid NPC_CharmTalked( int meindex , int talkerindex , char *msg ,\n int color );\nBOOL NPC_CharmInit( int meindex );\nvoid NPC_CharmWindowTalked( int meindex, int talkerindex, int seqno, int select, char *data);\nvoid NPC_CharmL...
88
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 41.25, "nodes": 67, "errors": 0, "source_hash": "f900548a31ff1e20c8e6f5881a3fae11b1253fd1eafab39bf07674570f382aef", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
79,970
c
/* * Copyright 2012 <NAME>, CRACS & INESC-TEC, DCC/FCUP * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
35.39
106
(translation_unit) "/*\n * Copyright 2012 <NAME>, CRACS & INESC-TEC, DCC/FCUP\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/LICEN...
655
17
{"language": "c", "success": true, "metadata": {"lines": 106, "avg_line_length": 35.39, "nodes": 373, "errors": 0, "source_hash": "049c0922a12229942c14542ee62b4c724b72bb1014b9b31f7d5a9dbf209df2e6", "categorized_nodes": 282}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
79,971
c
#ifndef GETADDRESSTORECEIVE_H #define GETADDRESSTORECEIVE_H #include "walletmodel.h" #include <QWidget> namespace Ui { class getAddressToReceive; } class getAddressToReceive : public QWidget { Q_OBJECT public: explicit getAddressToReceive(QWidget *parent = 0); ~getAddressToReceive(); void setModel(W...
22.84
32
(translation_unit) "#ifndef GETADDRESSTORECEIVE_H\n#define GETADDRESSTORECEIVE_H\n\n#include "walletmodel.h"\n#include <QWidget>\n\nnamespace Ui {\nclass getAddressToReceive;\n}\n\nclass getAddressToReceive : public QWidget\n{\n Q_OBJECT\n\npublic:\n explicit getAddressToReceive(QWidget *parent = 0);\n ~getAdd...
191
6
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 22.84, "nodes": 119, "errors": 0, "source_hash": "65c2d8fc847ff8f78e367076b13227aadbdbe879c0f5ac5ac071aa38ab7e3859", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,972
c
/* @(#)main.c 8.2 (Berkeley) 4/2/94 */ /* $NetBSD: main.c,v 1.15 2009/04/14 08:50:06 lukem Exp $ */ /* * Copyright (c) 1983, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * <NAME> at The University of California, Berkele...
26.29
173
(translation_unit) "/* @(#)main.c 8.2 (Berkeley) 4/2/94 */\n/* $NetBSD: main.c,v 1.15 2009/04/14 08:50:06 lukem Exp $ */\n\n/*\n * Copyright (c) 1983, 1993\n * The Regents of the University of California. All rights reserved.\n *\n * This code is derived from software contributed to Berkeley by\n * <NAME> at The Unive...
1,196
1
{"language": "c", "success": true, "metadata": {"lines": 173, "avg_line_length": 26.29, "nodes": 713, "errors": 0, "source_hash": "89b1d5d6bab0339f99857390b170b41d5eac2321135cf8f69ed7adc000fd5837", "categorized_nodes": 506}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,973
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* utils.c :+: :+: :+: ...
34.87
45
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* utils.c ...
293
0
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 34.87, "nodes": 162, "errors": 0, "source_hash": "13bf3fdb0199ce09e1bda12aea78317137a246f6d222e3038ac41f64b9e3ad5a", "categorized_nodes": 121}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,974
c
#ifndef FINDDIALOG_H #define FINDDIALOG_H #include <QtWidgets/QDialog> #include "ui_finddialog.h" class findDialog : public QDialog { Q_OBJECT public: findDialog(QWidget *parent = 0); ~findDialog() = default; signals: void findNext(const QString&, Qt::CaseSensitivity); void findPrev(const QString&, Qt::CaseSen...
21.09
22
(translation_unit) "#ifndef FINDDIALOG_H\n#define FINDDIALOG_H\n\n#include <QtWidgets/QDialog>\n#include "ui_finddialog.h"\n\nclass findDialog : public QDialog\n{\n Q_OBJECT\n\npublic:\n findDialog(QWidget *parent = 0);\n ~findDialog() = default;\n\nsignals:\n void findNext(const QString&, Qt::CaseSensitivity);\n void ...
157
10
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 21.09, "nodes": 87, "errors": 0, "source_hash": "52cc75828bf014593d8e48ca6d2e9604d2fafca94e460806ede79d26c38b4944", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,975
c
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ /* Copyright Authors of Cilium */ /* * This is just a dummy header with dummy values to allow for test * compilation without the full code generation engine backend. */ #define DROP_NOTIFY #ifndef SKIP_DEBUG #define DEBUG #endif #define SECLABEL 2 #defin...
28.46
13
(translation_unit) "/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */\n/* Copyright Authors of Cilium */\n\n/*\n * This is just a dummy header with dummy values to allow for test\n * compilation without the full code generation engine backend.\n */\n#define DROP_NOTIFY\n#ifndef SKIP_DEBUG\n#define DEBUG\n#e...
26
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 28.46, "nodes": 22, "errors": 0, "source_hash": "73fe8bbe37e0afcf75b6a9357edaed42c83dc496fd2c4f5fb00ec4927bd8db76", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define DRO...
79,976
c
// // Created by kellerberrin on 21/9/21. // #ifndef KGL_ANALYSIS_LITERATURE_PUBLICATION_H #define KGL_ANALYSIS_LITERATURE_PUBLICATION_H #include "kgl_pubmed_resource.h" namespace kellerberrin::genome { // organization::project level namespace //////////////////////////////////////////////////////////////////...
37.93
30
(translation_unit) "//\n// Created by kellerberrin on 21/9/21.\n//\n\n#ifndef KGL_ANALYSIS_LITERATURE_PUBLICATION_H\n#define KGL_ANALYSIS_LITERATURE_PUBLICATION_H\n\n\n#include "kgl_pubmed_resource.h"\n\n\nnamespace kellerberrin::genome { // organization::project level namespace\n\n\n////////////////////////////////...
216
12
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 37.93, "nodes": 113, "errors": 0, "source_hash": "6eed2847a9705b5e4944586d5172c0f392471f37e3c0f6dae703e233cd035e10", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,977
c
// // MVPArrayInput.h // mvc-base // // Created by 张超 on 2018/12/19. // Copyright © 2018 orzer. All rights reserved. // #import "MVPBaseMiddleware.h" #import "MVPOutputProtocol.h" NS_ASSUME_NONNULL_BEGIN @protocol MVPModelProtocol; @interface MVPArrayInput : MVPBaseMiddleware <MVPInputProtocol> @end NS_ASSUME_N...
22.36
14
(translation_unit) "//\n// MVPArrayInput.h\n// mvc-base\n//\n// Created by 张超 on 2018/12/19.\n// Copyright © 2018 orzer. All rights reserved.\n//\n\n#import "MVPBaseMiddleware.h"\n#import "MVPOutputProtocol.h"\nNS_ASSUME_NONNULL_BEGIN\n\n@protocol MVPModelProtocol;\n@interface MVPArrayInput : MVPBaseMiddleware <MVP...
34
6
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 22.36, "nodes": 24, "errors": 0, "source_hash": "4da1b735d54d17a147c9e21aea9c1c882523962a4f0326fa8003ea527dfffc8d", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "rt \"MVPB...
79,978
c
// // KeychainItemWrapper.h // fishjs // // Created by glp on 2017/8/15. // // #import <Foundation/Foundation.h> @interface KeychainItemWrapper : NSObject { NSMutableDictionary *keychainItemData; // The actual keychain item data backing store. NSMutableDictionary *genericPasswordQuery; // A place...
39.22
23
(ERROR) "//\n// KeychainItemWrapper.h\n// fishjs\n//\n// Created by glp on 2017/8/15.\n//\n//\n\n#import <Foundation/Foundation.h>\n\n@interface KeychainItemWrapper : NSObject\n{\n NSMutableDictionary *keychainItemData; // The actual keychain item data backing store.\n NSMutableDictionary *genericPasswo...
161
11
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 39.22, "nodes": 91, "errors": 0, "source_hash": "92035b8336f9e77702d6b3120f067407cc6b5a19765a9b778b9dce4ab5cc5cb8", "categorized_nodes": 56}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// KeychainItemWrapper...
79,979
c
// // RootViewController.h // PicasaViewer // //-- // Copyright (c) 2012 nyaago // // 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 th...
32.96
70
(translation_unit) "//\n// RootViewController.h\n// PicasaViewer\n//\n//--\n// Copyright (c) 2012 nyaago\n//\n// Permission is hereby granted, free of charge, to any person obtaining\n// a copy of this software and associated documentation files (the\n// "Software"), to deal in the Software without restriction, inclu...
166
10
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 32.96, "nodes": 93, "errors": 0, "source_hash": "5ff8d9d7e934ce44dbd5f4870ece5a664402324307fa2631609003cac48f4e4f", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
79,980
c
#include <pthread.h> /* * A queue implemented in a circular array. * Thread-safe functions: * enqueue(...) * dequeue(...) * * dequeue blocks when the queue is empty. * As a shutdown feature, all threads are released from blocking, if all threads are waiting on dequeue() * * This queue is particularly well...
23.09
118
(translation_unit) "#include <pthread.h>\n/*\n * A queue implemented in a circular array.\n * Thread-safe functions:\n * enqueue(...)\n * dequeue(...)\n * \n * dequeue blocks when the queue is empty.\n * As a shutdown feature, all threads are released from blocking, if all threads are waiting on dequeue()\n *\n * T...
861
0
{"language": "c", "success": true, "metadata": {"lines": 118, "avg_line_length": 23.09, "nodes": 535, "errors": 0, "source_hash": "25cd6e791bf5cc04146e2d3e35b67ada28cde5bf7b95c6adf4b8832df74ff83b", "categorized_nodes": 410}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,981
c
// // ProjectViewController.h // jiaModuleDemo // // Created by wujunyang on 16/9/13. // Copyright © 2016年 wujunyang. All rights reserved. // #import <UIKit/UIKit.h> #import "projectModulePrefixHeader.h" @interface ProjectViewController : JiaBaseViewController @end
23.55
11
(translation_unit) "//\n// ProjectViewController.h\n// jiaModuleDemo\n//\n// Created by wujunyang on 16/9/13.\n// Copyright © 2016年 wujunyang. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "projectModulePrefixHeader.h"\n\n@interface ProjectViewController : JiaBaseViewController\n\n@end\n" (comment)...
22
3
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 23.55, "nodes": 13, "errors": 0, "source_hash": "7d4f9991df7b984a1d0dacbf00461263eb855ac62f36d02b9038b1de6fcc31ae", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKi...
79,982
c
#pragma once #include "node.h" #include "link.h" #include <memory> #include <optional> namespace minicrypto { // Collection of nodes and links that can interact with each other. // Provides functions to help with handling the interactions. // Has ownership of all the nodes given to it. class ContextNodes {...
35.13
30
(translation_unit) "#pragma once\n\n#include "node.h"\n#include "link.h"\n\n#include <memory>\n#include <optional>\n\nnamespace minicrypto\n{\n // Collection of nodes and links that can interact with each other.\n // Provides functions to help with handling the interactions.\n // Has ownership of all the nodes given...
193
5
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 35.13, "nodes": 114, "errors": 0, "source_hash": "5b89133a356978c09bc7e7d229f1dcd7914fce042b4aac7cfaa114f360da488a", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
79,983
c
/* * compat/explicit_bzero.c * * à-la OpenBSD explicit_bzero(3). */ #include "compat.h" void explicit_bzero(void *ptr, size_t size) { (void)explicit_memset(ptr, 0, size); }
13.92
12
(translation_unit) "/*\n * compat/explicit_bzero.c\n *\n * à-la OpenBSD explicit_bzero(3).\n */\n#include "compat.h"\n\n\nvoid\nexplicit_bzero(void *ptr, size_t size)\n{\n (void)explicit_memset(ptr, 0, size);\n}\n" (comment) "/*\n * compat/explicit_bzero.c\n *\n * à-la OpenBSD explicit_bzero(3).\n */\n" (preproc_in...
44
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 13.92, "nodes": 24, "errors": 0, "source_hash": "b416276c8679d89e175f116807d7717ace2046a1d769d046d63f75308c501020", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "includ...
79,984
c
/* http_rest_proxy.h -*- C++ -*- <NAME>, 10 April 2013 Copyright (c) 2013 Datacratic Inc. All rights reserved. */ #pragma once #undef PACKAGE #undef PACKAGE_NAME #undef PACKAGE_STRING #undef PACKAGE_TARNAME #undef PACKAGE_VERSION #undef VERSION #include "soa/serv...
33.42
189
(translation_unit) "/* http_rest_proxy.h -*- C++ -*-\n <NAME>, 10 April 2013\n Copyright (c) 2013 Datacratic Inc. All rights reserved.\n\n*/\n\n#pragma once\n\n#undef PACKAGE\n#undef PACKAGE_NAME\n#undef PACKAGE_STRING\n#undef PACKAGE_TARNAME\n#undef PACKAGE_VERSION\n#...
1,464
87
{"language": "c", "success": true, "metadata": {"lines": 189, "avg_line_length": 33.42, "nodes": 824, "errors": 0, "source_hash": "aa39556eac9e07cbd7d6e6f5e4b8c0852ff3c0b0876c454bb527294e02bf2df6", "categorized_nodes": 547}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
79,985
c
#pragma once #include "kcf_src/kcftracker.hpp" #include "TraceQueue.hpp" #ifndef KCF_TRACKER_H #define KCF_TRACKER_H class KCF { public: KCF(); ~KCF(); bool initialize(cv::Mat &im_gray, long topLeftx, long topLefty, long width, long height); bool isInitialized(); bool processFrame(cv::Mat &im...
22.08
24
(translation_unit) "#pragma once\n\n#include "kcf_src/kcftracker.hpp"\n#include "TraceQueue.hpp"\n\n#ifndef KCF_TRACKER_H\n#define KCF_TRACKER_H\n\nclass KCF\n{\n public:\n KCF(); \n ~KCF();\n bool initialize(cv::Mat &im_gray, long topLeftx, long topLefty, long width, long height); \n bool isInitialized(...
144
4
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 22.08, "nodes": 85, "errors": 0, "source_hash": "41b033004e3fc568caae89c64bd143b4dd1ac21369eaa7f79ca419a16f61f3ce", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
79,986
c
#ifndef WINDOW_H #define WINDOW_H #include <ncurses.h> class Window { protected: WINDOW *win; public: WINDOW* getwin() { return win; } Window() : win(NULL) {} ~Window() { if( win ) destroy(); } void destroy() { delwin( win ); win = ...
17.42
69
(translation_unit) "#ifndef WINDOW_H\n#define WINDOW_H\n#include <ncurses.h>\n\nclass Window\n{\n protected:\n\n WINDOW *win;\n\n public:\n\n WINDOW* getwin() { return win; }\n\n Window() : win(NULL)\n {}\n ~Window() \n {\n if( win )\n destroy();\n }\n\n void destroy() \n...
430
4
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 17.42, "nodes": 241, "errors": 0, "source_hash": "b0e76d654542ac4095c7769020b4368014f1254650af6df0c136acea6cd96408", "categorized_nodes": 164}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,987
c
/* Dwarf Therapist Copyright (c) 2009 <NAME> (chmod) 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, publi...
40.75
83
(translation_unit) "/*\nDwarf Therapist\nCopyright (c) 2009 <NAME> (chmod)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use,...
535
16
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 40.75, "nodes": 320, "errors": 0, "source_hash": "c493d5925b8f972d468a27219be4f391ceee3a356d3440ed887d96b8aa761a74", "categorized_nodes": 216}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,988
c
#pragma once #include <vector> #include "Common/Shapes/ARect.h" #include "OpenGL/Core/VertexBufferObjectIndexed.h" /// Used for screen space quads /// originally it is full screen but with scaling it can be used for gui elements class GLRect : public ARect { unsigned int m_vao; CVertexBufferObjectIndexed m_vbo; p...
21.58
19
(translation_unit) "#pragma once\n\n\n#include <vector>\n#include "Common/Shapes/ARect.h"\n#include "OpenGL/Core/VertexBufferObjectIndexed.h"\n/// Used for screen space quads\n/// originally it is full screen but with scaling it can be used for gui elements\nclass GLRect : public ARect\n{\n\n unsigned int m_vao;\n CVe...
92
4
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 21.58, "nodes": 54, "errors": 0, "source_hash": "e728bb9ea60b5335e9acf20094fea67e65ff08087344c374603f0ae24c6b6e3a", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
79,989
c
#include <stdio.h> #define num 10 // con la palabra reservada define se declrara una constante, es una macro y siempre va a tener ese valor int main() { const int constante=32;// tambien se declara una constante con la palabra const int variable=12; printf("Valor de constante:%d\n", constante); printf("Valor de ...
29.48
21
(translation_unit) "#include <stdio.h>\n#define num 10 // con la palabra reservada define se declrara una constante, es una macro y siempre va a tener ese valor\n\nint main()\n{\n const int constante=32;// tambien se declara una constante con la palabra const\n int variable=12;\n \n printf("Valor de constante:%d\n", co...
133
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 29.48, "nodes": 68, "errors": 0, "source_hash": "da181fdc3bd81e300cf8037c4c340b5dab0a977ade584abc8f1e9f93a8ff609e", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
79,990
c
#define size 100 int stack[size], top = -1; void push(int num) { if(top >= size - 1) { printf("Stack is full!\n"); } else { stack[++top] = num; } } void peek() { if(top < 0) { printf("Stack is empty!\n"); } else { print...
10.87
55
(translation_unit) "#define size 100 \nint stack[size], top = -1; \n \nvoid push(int num) \n{ \n if(top >= size - 1) \n { \n printf("Stack is full!\n"); \n } \n else \n { \n stack[++top] = num; \n } \n} \n \nvoid peek() \n{ \n if(top < 0) \n { \n printf("Stack is empty!\n");...
269
0
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 10.87, "nodes": 133, "errors": 0, "source_hash": "6ed7a6128ea4289fc1298c6f3ea6d704af10f95f24de3ed2c1d7560d23599b51", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define s...
79,991
c
//===----- FileOffset.h - Offset in a file ----------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
30.73
49
(translation_unit) "//===----- FileOffset.h - Offset in a file ----------------------*- C++ -*-===//\n//\n// The LLVM Compiler Infrastructure\n//\n// This file is distributed under the University of Illinois Open Source\n// License. See LICENSE.TXT for details.\n//\n//===----------------------------...
438
19
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 30.73, "nodes": 258, "errors": 0, "source_hash": "766d4c0f54b5f54e2887439f068a3992bf8767145d6a3d7488a7fcc3ab1f5839", "categorized_nodes": 200}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,992
c
#pragma once #include "types.h" #define HOOK_LENGTH 14 void PatchInJump(uint64_t address, void* destination); void* DetourFunction(uint64_t address, void* destination, int length);
35.2
5
(translation_unit) "#pragma once\n\n#include "types.h"\n\n#define HOOK_LENGTH 14\n\nvoid PatchInJump(uint64_t address, void* destination);\nvoid* DetourFunction(uint64_t address, void* destination, int length);" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_incl...
54
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 35.2, "nodes": 41, "errors": 0, "source_hash": "c34522d540bbdebfd98f44a10a29dfe21b1981b8e12a7160bdef2bd12f8446c0", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
79,993
c
/* This file is part of PyMesh. Copyright (c) 2016 by <NAME> */ #pragma once #include <memory> #include <Core/EigenTypedef.h> #include <Mesh.h> namespace PyMesh { class MinkowskiSum { public: typedef std::shared_ptr<MinkowskiSum> Ptr; static Ptr create(const Mesh::Ptr& mesh); static Ptr c...
32.88
24
(translation_unit) "/* This file is part of PyMesh. Copyright (c) 2016 by <NAME> */\n#pragma once\n#include <memory>\n\n#include <Core/EigenTypedef.h>\n#include <Mesh.h>\n\nnamespace PyMesh {\n\nclass MinkowskiSum {\n public:\n typedef std::shared_ptr<MinkowskiSum> Ptr;\n static Ptr create(const Mesh::...
197
10
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 32.88, "nodes": 105, "errors": 0, "source_hash": "f545f30aa6acf7d195b53f569cb09c6c5104619b0d9c08fb7e9d9c34636cb415", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
79,994
c
#ifndef SDF_H #define SDF_H #include "array3.h" #include "vec.h" /** * @brief The SDF struct * The Signed Distance Function (or Field) struct. * The SDF class encapsulates a scalar field that stores the shortest distance * to an implicit surface, that is therefore found at the zero-isosurface. * The field has a ...
32.33
69
(translation_unit) "#ifndef SDF_H\n#define SDF_H\n\n#include "array3.h"\n#include "vec.h"\n\n/**\n * @brief The SDF struct\n * The Signed Distance Function (or Field) struct.\n * The SDF class encapsulates a scalar field that stores the shortest distance\n * to an implicit surface, that is therefore found at the zero-i...
166
12
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 32.33, "nodes": 80, "errors": 0, "source_hash": "adabcf898e98600907ea32adf1188902cf586b0f2c357a6f19df5b89ec56d4bb", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,995
c
/* * output-graphics.c - Output a graphics file. * * Written by * <NAME> <<EMAIL>> * * This file is part of VICE, the Versatile Commodore Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public Lice...
32.45
242
(translation_unit) "/*\n * output-graphics.c - Output a graphics file.\n *\n * Written by\n * <NAME> <<EMAIL>>\n *\n * This file is part of VICE, the Versatile Commodore Emulator.\n * See README for copyright notice.\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms ...
1,876
0
{"language": "c", "success": true, "metadata": {"lines": 242, "avg_line_length": 32.45, "nodes": 1129, "errors": 0, "source_hash": "5b3ea449e760a17b933c921c7bef6a358da1ec37d0ade68a6ffc957b9674e255", "categorized_nodes": 896}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
79,996
c
// // ChannelTableViewCell.h // NewPipe // // Created by Somiya on 2019/3/20. // Copyright © 2019 Somiya. All rights reserved. // #import "BaseTableViewCell.h" @interface ChannelTableViewCell : BaseTableViewCell @end
21.1
10
(translation_unit) "//\n// ChannelTableViewCell.h\n// NewPipe\n//\n// Created by Somiya on 2019/3/20.\n// Copyright © 2019 Somiya. All rights reserved.\n//\n\n#import "BaseTableViewCell.h"\n\n@interface ChannelTableViewCell : BaseTableViewCell\n\n@end\n" (comment) "//" (comment) "// ChannelTableViewCell.h" (...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.1, "nodes": 9, "errors": 0, "source_hash": "065312993d9b8d16ed752051495ebac3c0998fc72411100bb04731e23d4db83a", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"Bas...
79,997
c
#ifndef CONFIG_H_ #define CONFIG_H_ #include <Arduino.h> #include <cstddef> namespace LoRaGateway { constexpr uint8_t EEPROM_SIGNATURE[4]{0x5c, 0xa1, 0xab, 0x1e}; struct Config { Config() : signature{EEPROM_SIGNATURE[0], EEPROM_SIGNATURE[1], EEPROM_SIGNATURE[2], EEPROM_SIGNATURE[3]}, ...
33.22
45
(translation_unit) "#ifndef CONFIG_H_\n#define CONFIG_H_\n\n#include <Arduino.h>\n\n#include <cstddef>\n\nnamespace LoRaGateway\n{\nconstexpr uint8_t EEPROM_SIGNATURE[4]{0x5c, 0xa1, 0xab, 0x1e};\n\nstruct Config\n{\n Config()\n : signature{EEPROM_SIGNATURE[0], EEPROM_SIGNATURE[1], EEPROM_SIGNATURE[2],\n ...
431
14
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 33.22, "nodes": 238, "errors": 0, "source_hash": "5fe940ac6d4e4261d7798ba67c8884fe89f82de927afbaf055ba41825dabda7b", "categorized_nodes": 175}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,998
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSMutableURLRequest.h" @interface NSMutableURLRequest (TBXML_HTTP) + (id)tbxmlGetRequestWithURL:(id)arg1; + (id)tbxmlPostRequestWithURL:(id)arg1 parameters:(id)arg2; @end
30.2
10
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSMutableURLRequest.h"\n\n@interface NSMutableURLRequest (TBXML_HTTP)\n+ (id)tbxmlGetRequestWithURL:(id)arg1;\n+ (id)tbxmlPostRequestWithURL:(id)arg1 pa...
62
7
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 30.2, "nodes": 35, "errors": 0, "source_hash": "053d2f0e132c45d8865bcf0b9de37e36f0bb678fd7108123683dfe8a003fcc6b", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
79,999