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
#ifndef PR_GLCUDA_H #define PR_GLCUDA_H #include <glad/glad.h> #include <cuda_gl_interop.h> #include <cuda_runtime.h> #include <cuda_runtime_api.h> #include <cstdio> #include <stdexcept> #define cuChk(ans) { gpuAssert((ans), __FILE__, __LINE__); } inline void gpuAssert(cudaError_t code, const char *file, int line, b...
28.21
29
(translation_unit) "#ifndef PR_GLCUDA_H\n#define PR_GLCUDA_H\n\n#include <glad/glad.h>\n#include <cuda_gl_interop.h>\n#include <cuda_runtime.h>\n#include <cuda_runtime_api.h>\n\n#include <cstdio>\n#include <stdexcept>\n\n#define cuChk(ans) { gpuAssert((ans), __FILE__, __LINE__); }\ninline void gpuAssert(cudaError_t cod...
229
11
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 28.21, "nodes": 141, "errors": 0, "source_hash": "91240803c01e6a08566afcc705840c952e673e22da2a074727bffd4d628734c8", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,000
c
// // VideoRecorder.h // E1TutkDemo // // Created by LeonDeng on 2020/3/16. // Copyright © 2020 HongHuLab. All rights reserved. // #import <Foundation/Foundation.h> #import <CoreMedia/CMSampleBuffer.h> NS_ASSUME_NONNULL_BEGIN typedef void(^StreamFilmedCallback)(NSError * _Nullable error); extern NSString * cons...
27.95
40
(translation_unit) "//\n// VideoRecorder.h\n// E1TutkDemo\n//\n// Created by LeonDeng on 2020/3/16.\n// Copyright © 2020 HongHuLab. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <CoreMedia/CMSampleBuffer.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\ntypedef void(^StreamFilmedCallback)(NSError * _Nullabl...
220
15
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 27.95, "nodes": 136, "errors": 0, "source_hash": "3783692258d409adc1b46c380aa8381aab503783878aed50db60964eb3383125", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <...
79,001
c
/* Maximum difference in an array Problem Statement Given an array of integers, a, return the maximum difference of any pair of numbers such that the larger integer in the pair occurs at a higher index (in the array) than the smaller integer. Return -1 if you cannot find a pair that satisfies this condition. Constraint...
25.7
70
(translation_unit) "/* Maximum difference in an array\nProblem Statement Given an array of integers, a, return the maximum difference of any\npair of numbers such that the larger integer in the pair occurs at a higher index (in the\narray) than the smaller integer. Return -1 if you cannot find a pair that satisfies thi...
285
0
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 25.7, "nodes": 137, "errors": 0, "source_hash": "15a1c5c614fb06afdfcbb3447574d11fe971e0bfcb3160d5447d0bdb451537d3", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "io.h>...
79,002
c
// // Author: <NAME> // $Date: 2015-05-14 23:59:59 +0000 (Thu, 14 Jan 2015) $ // $Revision: 3999 $ // Project: IFC Engine DLL and Geometry Kernel // // In case of use of the DLL: // be aware of license fee for use of this DLL when used commercially // more info for commercial use: <EMAIL> // #ifndef __RDF_LTD...
26.75
161
(translation_unit) "//\n// Author: <NAME>\n// $Date: 2015-05-14 23:59:59 +0000 (Thu, 14 Jan 2015) $\n// $Revision: 3999 $\n// Project: IFC Engine DLL and Geometry Kernel\n//\n// In case of use of the DLL:\n// be aware of license fee for use of this DLL when used commercially\n// more info for commercial use: <...
719
0
{"language": "c", "success": true, "metadata": {"lines": 161, "avg_line_length": 26.75, "nodes": 538, "errors": 0, "source_hash": "95a8f3affe3dbcfeaf8f5ee7baf406507af23b3cb7c8a9460e6e8e21db04647b", "categorized_nodes": 278}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
79,003
c
#include <stdio.h> #include <string.h> #include <os_memory.h> #include "py/runtime.h" #include "py/mphal.h" #include "py/mperrno.h" #include "usr_misc.h" #include <device.h> #include <sensors/sensor.h> #include "user_humiture.h" os_device_t *G_HUMI = NULL; os_device_t *G_TEMP = NULL; static int temperature_read(...
25.14
138
(translation_unit) "#include <stdio.h>\n#include <string.h>\n#include <os_memory.h>\n#include "py/runtime.h"\n#include "py/mphal.h"\n#include "py/mperrno.h"\n#include "usr_misc.h"\n\n#include <device.h>\n#include <sensors/sensor.h>\n#include "user_humiture.h"\n\n\nos_device_t *G_HUMI = NULL;\nos_device_t *G_TEMP = NULL...
983
0
{"language": "c", "success": true, "metadata": {"lines": 138, "avg_line_length": 25.14, "nodes": 573, "errors": 0, "source_hash": "d48cca1965bb1e303951c777287ddcb92420446f95834872c7af2e991124db82", "categorized_nodes": 418}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,004
c
/* * ameta.h * * meta programming methods. * * Created on: 2019年7月22日 * Author: ueyudiud */ #ifndef AMETA_H_ #define AMETA_H_ #include "aobj.h" #ifdef TM #undef TM #endif /** ** all tagged methods. */ #define TM_LIST \ TM(TM_LKUP, lkup), \ TM(TM_DLGT, dlgt), \ TM(TM_IDX, id...
24.93
135
(translation_unit) "/* \n * ameta.h \n * \n * meta programming methods. \n * \n * Created on: 2019年7月22日 \n * Author: ueyudiud \n */ \n \n#ifndef AMETA_H_ \n#define AMETA_H_ \n \n#include "aobj.h" \n \n#ifdef TM \n#undef TM \n#endif \n \n/** \n ** all tagged methods. \n */ \n#define TM_LIST \ \n TM(TM_LKUP, lkup)...
502
0
{"language": "c", "success": true, "metadata": {"lines": 135, "avg_line_length": 24.93, "nodes": 350, "errors": 0, "source_hash": "376f71626e075865366a622fcd7e2c533d667212730dcc48b01564cd2204b27e", "categorized_nodes": 226}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "f AME...
79,005
c
// // FHViewController.h // FHWebView // // Created by zenghongfei on 03/10/2017. // Copyright (c) 2017 zenghongfei. All rights reserved. // @import UIKit; @interface FHViewController : UIViewController @end
20.2
10
(translation_unit) "//\n// FHViewController.h\n// FHWebView\n//\n// Created by zenghongfei on 03/10/2017.\n// Copyright (c) 2017 zenghongfei. All rights reserved.\n//\n\n@import UIKit;\n\n@interface FHViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// FHViewController.h" (comment) "// ...
22
5
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.2, "nodes": 10, "errors": 0, "source_hash": "f94423eb826b1cbdd00ced61710d2a24d9ffe3e1ce526c8324b787996c7392e0", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": null...
79,006
c
#include <stdio.h> #include <stdlib.h> /* malloc */ #include <math.h> #include "endian.h" #include "datalist.h" #include "bandbuffer.h" #include "band.h" #include "rasterbuffer.h" #define _WRITER_EXTERN #include "writer.h" #define SNAP(V,SD) (round((V)*(double)(SD))/(double)(SD)) void assignRasterOutputHeader(co...
33.73
178
(translation_unit) "#include <stdio.h>\n#include <stdlib.h> /* malloc */\n#include <math.h>\n\n#include "endian.h"\n\n#include "datalist.h"\n#include "bandbuffer.h"\n#include "band.h"\n#include "rasterbuffer.h"\n\n#define _WRITER_EXTERN\n#include "writer.h"\n\n#define SNAP(V,SD) (round((V)*(double)(SD))/(double)(SD))\n...
1,534
0
{"language": "c", "success": true, "metadata": {"lines": 178, "avg_line_length": 33.73, "nodes": 943, "errors": 0, "source_hash": "9ac37db469c651032921e69fd21b2077d5e6805c0269ec4c8737f1ec2378136d", "categorized_nodes": 728}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,007
c
//***************************************************************************** // //! @page BMP085_testcase BMP085 function test //! //! File: @ref BMP085Test.c //! //! <h2>Description</h2> //! This module implements the test sequence for the BMP085 sub component.<br><br> //! - \p Board: STM32F107 <br><br> //! - \p La...
30.32
111
(translation_unit) "//*****************************************************************************\n//\n//! @page BMP085_testcase BMP085 function test\n//!\n//! File: @ref BMP085Test.c\n//!\n//! <h2>Description</h2>\n//! This module implements the test sequence for the BMP085 sub component.<br><br>\n//! - \p Board: ST...
368
0
{"language": "c", "success": true, "metadata": {"lines": 111, "avg_line_length": 30.32, "nodes": 162, "errors": 0, "source_hash": "7fb7b10d88949d84d4e4e74d2926a2eb93b24fa77ce14f685c3a507abbb243f9", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,008
c
#include "matrix.h" MATRIX mat_mds(MATRIX d, int dims, int type, MATRIX result) { switch(type) { case MAT_MDS_METRIC: result = __mat_mds_metric(d, dims, result); break; case MAT_MDS_NONMETRIC: result = __mat_mds_nonmetric(d, dims, result); break; default: ge...
30.8
56
(translation_unit) "#include "matrix.h"\n\n\nMATRIX mat_mds(MATRIX d, int dims, int type, MATRIX result)\n{\n switch(type)\n {\n case MAT_MDS_METRIC:\n result = __mat_mds_metric(d, dims, result);\n break;\n case MAT_MDS_NONMETRIC:\n result = __mat_mds_nonmetric(d, dims, result);\n ...
670
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 30.8, "nodes": 414, "errors": 0, "source_hash": "4cd957880fdd9b9ff29de4719d6958072724f37cf66ee0d216b4e1e0596e9269", "categorized_nodes": 295}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
79,009
c
// // UIWebView+JSContext.h // weixindress // // Created by 杨帆 on 15/11/16. // Copyright © 2015年 www.jd.com. All rights reserved. // #import <UIKit/UIKit.h> #import <JavaScriptCore/JavaScriptCore.h> @interface UIWebView (JSContext) -(JSContext*)switchAlert; -(JSContext*)switchLog; -(JSValue *)switchLoggg; - (BOO...
19.12
24
(translation_unit) "//\n// UIWebView+JSContext.h\n// weixindress\n//\n// Created by 杨帆 on 15/11/16.\n// Copyright © 2015年 www.jd.com. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import <JavaScriptCore/JavaScriptCore.h>\n\n\n@interface UIWebView (JSContext)\n-(JSContext*)switchAlert;\n-(JSContext*)switchLo...
105
5
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 19.12, "nodes": 59, "errors": 0, "source_hash": "95ff84d1f7089f8002af497bb4699b96f8218e35faf84a372fdf22dc9bfc28de", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <UIKit/U...
79,010
c
/* * Copyright 2019 <copyright holder> <email> * * 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...
29.59
259
(translation_unit) "/*\n * Copyright 2019 <copyright holder> <email>\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 * ...
2,148
142
{"language": "c", "success": true, "metadata": {"lines": 259, "avg_line_length": 29.59, "nodes": 1325, "errors": 0, "source_hash": "2b87acb78404d06f457c71387efde9c9d7d341be3885294c8b66f492fd776c75", "categorized_nodes": 932}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
79,011
c
#ifndef SERVIDOR_H #define SERVIDOR_H #include "canaltexto.h" #include <string> #include <vector> class Servidor { private: int usuarioDonoId; string nome; string descricao; string codigoConvite; vector<CanalTexto> canaisTexto; vector<int> participantesIDs; public: //Constructor Servidor(int usuarioDonoId, ...
20.1
61
(translation_unit) "#ifndef SERVIDOR_H\n#define SERVIDOR_H\n\n#include "canaltexto.h"\n\n#include <string>\n#include <vector>\n\nclass Servidor\n{\nprivate:\n int usuarioDonoId;\n string nome;\n string descricao;\n string codigoConvite;\n vector<CanalTexto> canaisTexto;\n vector<int> participantesIDs;\n\npublic:\n //Co...
249
1
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 20.1, "nodes": 166, "errors": 0, "source_hash": "3f37cc49e18242eda76903ef3e8c2bf3a1d7c80d34c7e241b776d2cec8c09655", "categorized_nodes": 121}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,012
c
#include <stdbool.h> #include <stdio.h> bool is_num(char c) { return c >= '0' && c <= '9'; } char read_num(int *a) { int cur = 0; while (1) { char c; scanf("%c", &c); if (is_num(c)) { cur = cur * 10 + c - '0'; } else { *a = cur; return c; ...
18.73
33
(translation_unit) "#include <stdbool.h>\n#include <stdio.h>\n\nbool is_num(char c) { return c >= '0' && c <= '9'; }\n\nchar read_num(int *a) {\n int cur = 0;\n while (1) {\n char c;\n scanf("%c", &c);\n if (is_num(c)) {\n cur = cur * 10 + c - '0';\n } else {\n *a...
265
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 18.73, "nodes": 162, "errors": 0, "source_hash": "3568fb366c03a175f341003e10a8a79a1e312938e6a58ba33c8014183690ab45", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,013
c
/* #ifndef TEST_APP_UTILS_H #define TEST_APP_UTILS_H #include "stdafx.h" #define THROW_ON_ERROR(x) \ { \ smReturnCode result = (x); \ if (result < 0) \ { \ std::stringstream s; \ s << "API error code: " << result; \ throw std::runtime_error(s.str()); \ } \ } extern float radTo...
32.03
30
(translation_unit) "/*\n#ifndef TEST_APP_UTILS_H\n#define TEST_APP_UTILS_H\n\n#include "stdafx.h"\n\n#define THROW_ON_ERROR(x) \\n{ \\n smReturnCode result = (x); \\n if (result < 0) \\n { \\n std::stringstream s; \\n s << "API error code: " << result; \\n throw std::runtime_error(s.str())...
90
1
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 32.03, "nodes": 65, "errors": 0, "source_hash": "c81d8f7a295164b47e735b9189ace3782e6548a822bdb82bfc71a4f0b178f218", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,014
c
// // RemoteMonitorOperation.h // Drone-Foundation // // Created by <NAME> on 2013-06-29. // Copyright (c) 2013 <NAME>. All rights reserved. // // Standard #import <Foundation/Foundation.h> // Custom #import "ReliableSocket.h" #import "GPSReading.h" #import "SpatialReading.h" #import "MotorControlling.h" #import ...
31.42
65
(translation_unit) "//\n// RemoteMonitorOperation.h\n// Drone-Foundation\n//\n// Created by <NAME> on 2013-06-29.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n// Standard\n#import <Foundation/Foundation.h>\n\n// Custom\n#import "ReliableSocket.h"\n#import "GPSReading.h"\n#import "SpatialReading.h"\n#i...
335
25
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 31.42, "nodes": 226, "errors": 0, "source_hash": "7b8e34808ec9e3f428e7c9e60ab12e6fbefa07acbce654408aca62d5ec5297ae", "categorized_nodes": 136}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
79,015
c
#include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> #include "ipf_ipc.h" #ifdef WIN32 #pragma aux plot_load_cw "^" #endif void plot_load_cw( char *, char *, char * ); #define FNAM_SZ1 61 void ipfplot_sub( int argc, char *argv[] ) { static int status; static char coord_file[FNAM_S...
32.42
31
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <ctype.h>\n#include <string.h>\n\n#include "ipf_ipc.h"\n\n#ifdef WIN32\n#pragma aux plot_load_cw "^"\n#endif\n\nvoid plot_load_cw( char *, char *, char * );\n\n#define FNAM_SZ1 61\n\nvoid ipfplot_sub( int argc, char *argv[] )\n{\n static int stat...
317
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 32.42, "nodes": 192, "errors": 0, "source_hash": "6228fda637ece371f04ea17b9ffa4d0e8ab3dd4ee435a5eca3672e6b2ce27451", "categorized_nodes": 129}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,016
c
// // INObjectSection.h // Intents // // Copyright (c) 2016-2020 Apple Inc. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN API_AVAILABLE(ios(14.0), macos(11.0), watchos(7.0)) API_UNAVAILABLE(tvos) @interface INObjectSection<ObjectType> : NSObject <NSCopying, NSSecureCoding> @pr...
35.88
17
(translation_unit) "//\n// INObjectSection.h\n// Intents\n//\n// Copyright (c) 2016-2020 Apple Inc. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\nAPI_AVAILABLE(ios(14.0), macos(11.0), watchos(7.0))\nAPI_UNAVAILABLE(tvos)\n@interface INObjectSection<ObjectType> : NSObject...
161
21
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 35.88, "nodes": 112, "errors": 0, "source_hash": "237c46f3b29ea20641b1e664e9dcfab7bd96a269dab165aaa6f057f216a7cc2d", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
79,017
c
// Begin CVS Header // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/sbml/unittests/test000075.h,v $ // $Revision: 1.2 $ // $Name: $ // $Author: gauges $ // $Date: 2009/02/18 20:41:02 $ // End CVS Header // Copyright (C) 2008 by <NAME>, Virginia Tech Intellectual // Properties, Inc., EML Researc...
34.17
35
(translation_unit) "// Begin CVS Header\n// $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/sbml/unittests/test000075.h,v $\n// $Revision: 1.2 $\n// $Name: $\n// $Author: gauges $\n// $Date: 2009/02/18 20:41:02 $\n// End CVS Header\n\n// Copyright (C) 2008 by <NAME>, Virginia Tech Intellectual\n// ...
125
1
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 34.17, "nodes": 64, "errors": 0, "source_hash": "56321d7881d4f44f2656a663384da84cf66181e097bf7cc9607a15e016a4de0a", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,018
c
#ifndef _runtime_h #define _runtime_h #include "engine.h" typedef struct s_engine_runtime { engine_definition *def; uint16_t current_map; uint16_t screen_width, screen_height; vec2d player_pos; } engine_runtime; typedef struct s_engine_runtime_functions { void (*place_sprite)(void); } engine_runt...
28
21
(translation_unit) "#ifndef _runtime_h\n#define _runtime_h\n\n#include "engine.h"\n\ntypedef struct s_engine_runtime\n{\n engine_definition *def;\n uint16_t current_map;\n uint16_t screen_width, screen_height;\n vec2d player_pos;\n} engine_runtime;\n\ntypedef struct s_engine_runtime_functions\n{\n void (...
151
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 28.0, "nodes": 107, "errors": 0, "source_hash": "4d8f754204dcf68d8482f87ca00870470945444501b7483065d8e7ba76bc1a15", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,019
c
/*- * Copyright (c) 2012 <NAME>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the ...
24.25
141
(translation_unit) "/*-\n* Copyright (c) 2012 <NAME>.\n* All rights reserved.\n*\n* Redistribution and use in source and binary forms, with or without\n* modification, are permitted provided that the following conditions\n* are met:\n* 1. Redistributions of source code must retain the above copyright\n* notice, this...
787
0
{"language": "c", "success": true, "metadata": {"lines": 141, "avg_line_length": 24.25, "nodes": 533, "errors": 0, "source_hash": "7953c5b235e2c832961a5678fa049eaa390c7f8e1e98220218b0b09287a89e81", "categorized_nodes": 349}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,020
c
#ifndef QTITEM_H #define QTITEM_H #include <TextView.h> #include "Notifier.h" #include "Budget.h" class QuickTrackerItem : public BTextView, public Observer { public: QuickTrackerItem(const char *name,uint32 flags = B_WILL_DRAW); virtual ~QuickTrackerItem(void); virtual void HandleNotify(const uint64 &value, con...
24.38
45
(translation_unit) "#ifndef QTITEM_H\n#define QTITEM_H\n\n#include <TextView.h>\n#include "Notifier.h"\n#include "Budget.h"\n\nclass QuickTrackerItem : public BTextView, public Observer\n{\npublic:\n QuickTrackerItem(const char *name,uint32 flags = B_WILL_DRAW);\n virtual ~QuickTrackerItem(void);\n \n virtual void Hand...
359
20
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 24.38, "nodes": 214, "errors": 0, "source_hash": "8b2b2eab9840847bf1c010feccb8dc95e1aa537f56e6b19f007ebb3d907450d5", "categorized_nodes": 133}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,021
c
/************************************************************************************ Copyright (C) 2021 by <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includi...
31.65
71
(translation_unit) "/************************************************************************************ \nCopyright (C) 2021 by <NAME> \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 wit...
403
18
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 31.65, "nodes": 239, "errors": 0, "source_hash": "f0fcc8ca91d8c3ef3a5a15c605193a30f56be3845dacf30ba3f17364f50bef24", "categorized_nodes": 161}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
79,022
c
#ifndef KDTREE_INCLUDED #define KDTREE_INCLUDED #include <stddef.h> struct kdtree_neighbor { float *point; size_t index; float distance; }; // kd-tree node struct kdtree { // node data (only exists if node is a leaf) float *points; size_t *indices; size_t n_points; // bounding box of ...
20.07
45
(translation_unit) "#ifndef KDTREE_INCLUDED\n#define KDTREE_INCLUDED\n\n#include <stddef.h>\n\nstruct kdtree_neighbor {\n float *point;\n size_t index;\n float distance;\n};\n\n// kd-tree node\nstruct kdtree {\n // node data (only exists if node is a leaf)\n float *points;\n size_t *indices;\n size...
190
0
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 20.07, "nodes": 142, "errors": 0, "source_hash": "9de27465873ad7b436314b057ef80cabcc5418dd17098f3b46c06ca09172917b", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,023
c
// This file is a part of Julia. License is MIT: https://julialang.org/license #include <stdlib.h> #include <string.h> #include "julia.h" #include "julia_internal.h" #ifndef _OS_WINDOWS_ #include <unistd.h> #endif #include "julia_assert.h" // compute empirical max-probe for a given size #define max_probe(size) ((size...
30.27
179
(translation_unit) "// This file is a part of Julia. License is MIT: https://julialang.org/license\n\n#include <stdlib.h>\n#include <string.h>\n#include "julia.h"\n#include "julia_internal.h"\n#ifndef _OS_WINDOWS_\n#include <unistd.h>\n#endif\n#include "julia_assert.h"\n\n// compute empirical max-probe for a given size...
1,757
2
{"language": "c", "success": true, "metadata": {"lines": 179, "avg_line_length": 30.27, "nodes": 1124, "errors": 0, "source_hash": "8c9c7c4b302da812eb6a274e89504040ce2a62000b74100505f6ee9cddaa0b98", "categorized_nodes": 751}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
79,024
c
#include "init/initcall.h" #include "lib/string.h" #include "common/compiler.h" #include "common/math.h" #include "bug/panic.h" #include "arch/bios.h" #include "arch/acpi.h" #include "arch/apic.h" #include "arch/mp.h" #include "arch/pic.h" #include "arch/pit.h" #include "arch/tsc.h" #include "arch/hpet.h" #include "bug...
36.45
165
(translation_unit) "#include "init/initcall.h"\n#include "lib/string.h"\n#include "common/compiler.h"\n#include "common/math.h"\n#include "bug/panic.h"\n#include "arch/bios.h"\n#include "arch/acpi.h"\n#include "arch/apic.h"\n#include "arch/mp.h"\n#include "arch/pic.h"\n#include "arch/pit.h"\n#include "arch/tsc.h"\n#inc...
1,712
3
{"language": "c", "success": true, "metadata": {"lines": 165, "avg_line_length": 36.45, "nodes": 1011, "errors": 0, "source_hash": "958ee8f87f75763e997ba172de44d5c97ce61b9b6dfc16c66b2ec3b90ef9069a", "categorized_nodes": 694}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
79,025
c
// criticalsection.c #include "global.h" CRITICAL_SECTION DebugCriticalSection; CRITICAL_SECTION IncDataCriticalSection; int InitializeCriticalSection(CRITICAL_SECTION *pLock) { BEG("InitializeCriticalSection()"); LOG("pLock: %p", pLock); pLock->count=0; int rc=pthread_mutex_init(&pLock->Lock, NUL...
20.19
86
(translation_unit) "// criticalsection.c \n \n#include "global.h" \n \nCRITICAL_SECTION DebugCriticalSection; \nCRITICAL_SECTION IncDataCriticalSection; \n \nint InitializeCriticalSection(CRITICAL_SECTION *pLock) { \n BEG("InitializeCriticalSection()"); \n LOG("pLock: %p", pLock); \n \n pLock->count=0; \n int rc=pthrea...
584
0
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 20.19, "nodes": 303, "errors": 0, "source_hash": "383a1664d0df2364c6be5b639af67b48c8d8424c83e72019114b28e76ebbe046", "categorized_nodes": 226}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,026
c
/* * Copyright 2018 NXP * * SPDX-License-Identifier: BSD-3-Clause * * Author <NAME> <<EMAIL>> */ #include <platform_def.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <debug.h> #include <errno.h> #include <string.h> #include <io.h> #include <ddr.h> #include <utils.h> ...
23.47
143
(translation_unit) "/*\n * Copyright 2018 NXP\n *\n * SPDX-License-Identifier: BSD-3-Clause\n *\n * Author <NAME> <<EMAIL>>\n */\n\n#include <platform_def.h>\n#include <stdint.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <stdbool.h>\n#include <debug.h>\n#include <errno.h>\n#include <string.h>\n#include <io.h>\...
1,170
0
{"language": "c", "success": true, "metadata": {"lines": 143, "avg_line_length": 23.47, "nodes": 745, "errors": 0, "source_hash": "d8398bd43e299f4b85bee178d7a53caaeccdc69bbb8cc262e9c1aa0eb1fa5446", "categorized_nodes": 508}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,027
c
// // EGViewController.h // RGBA // // Created by <NAME> on 08/11/2017. // Copyright (c) 2017 <NAME>. All rights reserved. // @import UIKit; @interface EGViewController : UIViewController @end
18.7
10
(translation_unit) "//\n// EGViewController.h\n// RGBA\n//\n// Created by <NAME> on 08/11/2017.\n// Copyright (c) 2017 <NAME>. All rights reserved.\n//\n\n@import UIKit;\n\n@interface EGViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// EGViewController.h" (comment) "// RGBA" (comme...
22
5
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 18.7, "nodes": 10, "errors": 0, "source_hash": "90f7a084490d3ee8e8fedab149eb76a23e97b55719458b40f74dca5655bdc966", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": null...
79,028
c
// // Created by Limaaron on 08.09.2020. // #ifndef SMA_MEMORY_HEADERS_H #define SMA_MEMORY_HEADERS_H #include "datatypes.h" PACKED_BEGIN typedef enum { PS_Free = 0x00, PS_Allocated = 0x3F, PS_Root = 0x7F } PACKED PageStatus; typedef struct { dsize size; dsize pageSize; d...
19.07
28
(translation_unit) "//\n// Created by Limaaron on 08.09.2020.\n//\n\n#ifndef SMA_MEMORY_HEADERS_H\n#define SMA_MEMORY_HEADERS_H\n\n#include "datatypes.h"\n\nPACKED_BEGIN\n\ntypedef enum\n{\n PS_Free = 0x00,\n PS_Allocated = 0x3F,\n PS_Root = 0x7F\n} PACKED PageStatus;\n\ntypedef struct\n{\n ...
98
3
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 19.07, "nodes": 68, "errors": 0, "source_hash": "6ccbac9328dd978b6fcbddaf6979583612cc69ee44ea897f4c08c786b6304ec3", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,029
c
#ifndef LOG_H #define LOG_H #include <stdint.h> #include <stdio.h> #include <atomic> #include <string> class DebugLog_Actual { public: DebugLog_Actual(const char *); ~DebugLog_Actual(); void Log(const char *format, ...); void Indent(int diff); void AutoFlush(bool new_state)...
24.18
68
(translation_unit) "#ifndef LOG_H\n#define LOG_H\n\n#include <stdint.h>\n#include <stdio.h>\n#include <atomic>\n#include <string>\n\nclass DebugLog_Actual\n{\n public:\n DebugLog_Actual(const char *);\n ~DebugLog_Actual();\n void Log(const char *format, ...);\n void Indent(int diff);\n ...
477
6
{"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 24.18, "nodes": 299, "errors": 0, "source_hash": "f1bb0c70fbc7f9fdeacf9f6f15052ac09622f6bdbf48b809a9d573aac8b24b92", "categorized_nodes": 198}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,030
c
#ifndef NOTIFICATION_MESSAGE_H #define NOTIFICATION_MESSAGE_H /// PROJECT #include <csapex/io/broadcast_impl.hpp> #include <csapex/model/notification.h> #include <csapex/serialization/serialization_fwd.h> namespace csapex { namespace io { class NotificationMessageSerializer; } class NotificationMessage : public Broa...
31.12
25
(translation_unit) "#ifndef NOTIFICATION_MESSAGE_H\n#define NOTIFICATION_MESSAGE_H\n\n/// PROJECT\n#include <csapex/io/broadcast_impl.hpp>\n#include <csapex/model/notification.h>\n#include <csapex/serialization/serialization_fwd.h>\n\nnamespace csapex\n{\nnamespace io\n{\nclass NotificationMessageSerializer;\n}\n\nclas...
147
11
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 31.12, "nodes": 80, "errors": 0, "source_hash": "4b0035471bb6cb990a2a2b6d08b77374cff10c01426be936b95742b7dd817013", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,031
c
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif FOUNDATION_EXPORT double Pods_Toolkit_TestsVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_Toolkit_TestsVersionStr...
22.29
14
(translation_unit) "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#else\n#ifndef FOUNDATION_EXPORT\n#if defined(__cplusplus)\n#define FOUNDATION_EXPORT extern "C"\n#else\n#define FOUNDATION_EXPORT extern\n#endif\n#endif\n#endif\n\n\nFOUNDATION_EXPORT double Pods_Toolkit_TestsVersionNumber;\nFOUNDATION_EXPORT const unsigned...
52
1
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 22.29, "nodes": 42, "errors": 0, "source_hash": "6515fd71b8958e71b6a0d48702651a26071dac9bf19f44d98648e5d17b69b6c8", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef _...
79,032
c
// Copyright (c) 2014-2020 The Gridcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once #include "gridcoin/contract/payload.h" #include <string> namespace GRC { //! //! \brief An arbitrary, user-su...
29.36
91
(translation_unit) "// Copyright (c) 2014-2020 The Gridcoin developers\n// Distributed under the MIT/X11 software license, see the accompanying\n// file COPYING or http://www.opensource.org/licenses/mit-license.php.\n\n#pragma once\n\n#include "gridcoin/contract/payload.h"\n\n#include <string>\n\nnamespace GRC {\n//!\n...
340
17
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 29.36, "nodes": 161, "errors": 0, "source_hash": "615a50082a308608308099e908434818aa2718dd68065bfbcdee4060e1f4965f", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
79,033
c
#pragma once #include "core/vec2.h" inline ivec2 getSiteCoord(int i) { switch (i) { case 0: return ivec2(0, 0); case 1: return ivec2(-1, 0); case 2: return ivec2(0, -1); case 3: return ivec2(0, +1); case 4: return ivec2(+1, 0); case 5: return ivec2(-1, -1); case 6: return ivec2(-1, +1); case 7: return...
28.44
48
(translation_unit) "#pragma once\n#include "core/vec2.h"\n\ninline ivec2 getSiteCoord(int i) {\n switch (i) {\n case 0: return ivec2(0, 0);\n case 1: return ivec2(-1, 0);\n case 2: return ivec2(0, -1);\n case 3: return ivec2(0, +1);\n case 4: return ivec2(+1, 0);\n case 5: return ivec2(-1, -1);\n case 6: return ...
665
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 28.44, "nodes": 397, "errors": 0, "source_hash": "dd04d75050c4ca3efb5beb074c6bfbd4debc06c8e5365e5c5350188f1a492626", "categorized_nodes": 349}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
79,034
c
// Copyright 2009-2019 Intel Corporation // SPDX-License-Identifier: Apache-2.0 #pragma once #include "common/Managed.h" namespace ospray { //! Base class for Light objects struct OSPRAY_SDK_INTERFACE Light : public ManagedObject { Light(); virtual ~Light() override = default; static Light *createInstance(co...
34.78
18
(translation_unit) "// Copyright 2009-2019 Intel Corporation\n// SPDX-License-Identifier: Apache-2.0\n\n#pragma once\n\n#include "common/Managed.h"\n\nnamespace ospray {\n\n//! Base class for Light objects\nstruct OSPRAY_SDK_INTERFACE Light : public ManagedObject\n{\n Light();\n virtual ~Light() override = default;\n...
150
9
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 34.78, "nodes": 91, "errors": 0, "source_hash": "4016a45807f9e3df844fa9c84f39ba558f56b6fbab3fa9a536a3119cca1b4781", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
79,035
c
/* This source is published under the following 3-clause BSD license. Copyright (c) 2012, <NAME> and <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 ret...
41.22
165
(translation_unit) "/*\nThis source is published under the following 3-clause BSD license.\n\nCopyright (c) 2012, <NAME> and <NAME>\nAll 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 * Redistribu...
224
0
{"language": "c", "success": true, "metadata": {"lines": 165, "avg_line_length": 41.22, "nodes": 144, "errors": 0, "source_hash": "b666f6741f30c3c0e7db3006aebfb4947d477572d2ff5d2aa38c009549b5400d", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "type...
79,036
c
#pragma once #include "execution/vm/bytecode_label.h" namespace noisepage::execution::vm { class BytecodeGenerator; /** * Base class for all control-flow builders. */ class ControlFlowBuilder { public: /** * Construct a builder that will modify the given generator instance. * @param generator The generat...
27.21
137
(translation_unit) "#pragma once\n\n#include "execution/vm/bytecode_label.h"\n\nnamespace noisepage::execution::vm {\n\nclass BytecodeGenerator;\n\n/**\n * Base class for all control-flow builders.\n */\nclass ControlFlowBuilder {\n public:\n /**\n * Construct a builder that will modify the given generator instance....
505
19
{"language": "c", "success": true, "metadata": {"lines": 137, "avg_line_length": 27.21, "nodes": 269, "errors": 0, "source_hash": "847af490b6e19bb328ac954299920dc403c787f2e1bed28db2a57828af96e231", "categorized_nodes": 171}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
79,037
c
#ifndef MTR_AUDIO_PORTAUDIO_DUKTAPE_H #define MTR_AUDIO_PORTAUDIO_DUKTAPE_H #include "duktape.h" #include "marathoner/plugin.h" #include "../common.h" #define MTR_SOURCE_MODULE "Audio_PortAudio" #ifdef MTR_MOD_STATIC #define MTR_BINDING #define MTR_ScriptsRegisterAll MTR_Audio_PortAudio_DuktapeRegisterAll #e...
29.5
14
(translation_unit) "#ifndef MTR_AUDIO_PORTAUDIO_DUKTAPE_H\n#define MTR_AUDIO_PORTAUDIO_DUKTAPE_H\n\n#include "duktape.h"\n\n#include "marathoner/plugin.h"\n#include "../common.h"\n\n#define MTR_SOURCE_MODULE "Audio_PortAudio"\n#ifdef MTR_MOD_STATIC\n #define MTR_BINDING\n #define MTR_ScriptsRegisterAll MTR_Audio_...
60
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 29.5, "nodes": 40, "errors": 0, "source_hash": "539fbd981b99e494e8f9e10a0acdd48b591f68de3604c6ce3ed7db5475213012", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef M...
79,038
c
--- src/opengl/ImageFont.h.orig 2008-09-20 17:40:14.000000000 +0300 +++ src/opengl/ImageFont.h @@ -14,6 +14,7 @@ // STD #include <string> +#include <cstdio> // for printf namespace love_opengl {
19.3
10
(translation_unit) "--- src/opengl/ImageFont.h.orig 2008-09-20 17:40:14.000000000 +0300\n+++ src/opengl/ImageFont.h\n@@ -14,6 +14,7 @@\n \n // STD\n #include <string>\n+#include <cstdio> // for printf\n \n namespace love_opengl\n {\n" (ERROR) "--- src/opengl/ImageFont.h.orig 2008-09-20 17:40:14.000000000 +0300\n+++ s...
77
7
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.3, "nodes": 64, "errors": 0, "source_hash": "585769082a366dca7012754a41381a2da4b9df08bcc2143f7cdf3f7f3876ba2c", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "--- src/opengl/Im...
79,039
c
/* * Copyright (c) 2002,2011,2014 Apple Inc. All Rights Reserved. * * The contents of this file constitute Original Code as defined in and are * subject to the Apple Public Source License Version 1.2 (the 'License'). * You may not use this file except in compliance with the License. * Please obtain a copy of th...
30.33
54
(translation_unit) "/*\n * Copyright (c) 2002,2011,2014 Apple Inc. All Rights Reserved.\n * \n * The contents of this file constitute Original Code as defined in and are\n * subject to the Apple Public Source License Version 1.2 (the 'License').\n * You may not use this file except in compliance with the License. \n * ...
149
3
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 30.33, "nodes": 99, "errors": 0, "source_hash": "507d90fca42f4f8cbcd3f143b6bc028232898187759a9d94acdbddc188bc0dec", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef\...
79,040
c
/* RTcmix - Copyright (C) 2004 The RTcmix Development Team See ``AUTHORS'' for a list of contributors. See ``LICENSE'' for the license to this software and for a DISCLAIMER OF ALL WARRANTIES. */ #ifndef _MINC_H_ #define _MINC_H_ 1 #ifdef __cplusplus extern "C" { #endif /* Anything here is available for export...
31.32
28
(translation_unit) "/* RTcmix - Copyright (C) 2004 The RTcmix Development Team\n See ``AUTHORS'' for a list of contributors. See ``LICENSE'' for\n the license to this software and for a DISCLAIMER OF ALL WARRANTIES.\n*/\n#ifndef _MINC_H_\n#define _MINC_H_ 1\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n/* Anythi...
133
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 31.32, "nodes": 91, "errors": 0, "source_hash": "7f39f2584fb27aa0bbf664456cc77666ed3210f3b996460aa7a8e9884a21acfc", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,041
c
/* * am335x_gpmc.c * * Created on: Apr. 29, 2021 * Author: renee.cousins */ #include <stdint.h> #include "am335x_gpmc.h" static volatile const am335x_gpmc_regs_t* gpmc = (am335x_gpmc_regs_t*)0x50000000; static void writel(uint32_t value, uint32_t* address) { *(volatile uint32_t*)address = (value); asm ...
28.87
70
(translation_unit) "/*\n * am335x_gpmc.c\n *\n * Created on: Apr. 29, 2021\n * Author: renee.cousins\n */\n\n#include <stdint.h>\n\n#include "am335x_gpmc.h"\n\nstatic volatile const am335x_gpmc_regs_t* gpmc = (am335x_gpmc_regs_t*)0x50000000;\n\nstatic void writel(uint32_t value, uint32_t* address) {\n *(volatile ...
642
0
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 28.87, "nodes": 371, "errors": 0, "source_hash": "ef94ca7dd98f06e173435028d1818b2d01598b36a498d2bda2c63caa7b4489bd", "categorized_nodes": 262}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,042
c
#include <stdio.h> int main() { char exp[100]; char op; int op1 = 0; int op2 = 0; int i = 0; printf("Enter Expression:"); scanf("%s", &exp); while (*(exp + i) != '\0') { if (i == 0) op1 = *(exp + i++) - '0'; op = *(exp + i++) - '0'; op2 = *(ex...
18.97
35
(translation_unit) "#include <stdio.h>\n\nint main()\n{\n\n char exp[100];\n char op;\n int op1 = 0;\n int op2 = 0;\n int i = 0;\n\n printf("Enter Expression:");\n scanf("%s", &exp);\n\n while (*(exp + i) != '\0')\n {\n\n if (i == 0)\n op1 = *(exp + i++) - '0';\n op =...
277
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 18.97, "nodes": 192, "errors": 0, "source_hash": "bb4e9b22ab25cfdd3df57a5608159ff9993ef4fcaf8dc603528d936a11f0d1d8", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,043
c
// // MCSogouPicResult.h // mycity // // Created by openapp on 15/5/28. // Copyright (c) 2015年 openapp. All rights reserved. // #import <Foundation/Foundation.h> @protocol MCSogouPicResultDelegate <NSObject> - (void)doneWithSimilars:(NSDictionary *)info; @end @interface MCSogouPicResult : NSObject @property (n...
25.19
16
(translation_unit) "//\n// MCSogouPicResult.h\n// mycity\n//\n// Created by openapp on 15/5/28.\n// Copyright (c) 2015年 openapp. All rights reserved.\n//\n\n\n#import <Foundation/Foundation.h>\n\n@protocol MCSogouPicResultDelegate <NSObject>\n- (void)doneWithSimilars:(NSDictionary *)info;\n@end\n\n@interface MCSogo...
90
15
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 25.19, "nodes": 61, "errors": 0, "source_hash": "dec9a16e619b9593ce084478042dabfc8e4238f3c7667dc8c485c10238453902", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <Fo...
79,044
c
// -*-Mode: C++;-*- #ifndef __AXIBUFCHECKER_H__ #define __AXIBUFCHECKER_H__ /* ---------------------------------------------------------------------- *//*! * * @file AxiBufChecker.h * @brief Checks the AXI buffers from the AXI stream DMA driver for * readability. This was written when it was...
30.67
111
(translation_unit) "// -*-Mode: C++;-*-\n\n#ifndef __AXIBUFCHECKER_H__\n#define __AXIBUFCHECKER_H__\n\n/* ---------------------------------------------------------------------- *//*!\n *\n * @file AxiBufChecker.h\n * @brief Checks the AXI buffers from the AXI stream DMA driver for \n * readability. ...
253
1
{"language": "c", "success": true, "metadata": {"lines": 111, "avg_line_length": 30.67, "nodes": 162, "errors": 0, "source_hash": "cc75988ae18b4c99a65575b1b00aedce9a930fbfff94fb71442ad3eac95c81e0", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
79,045
c
/* Copyright (C) 1996-1997 Id Software, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in th...
34.73
66
(translation_unit) "/*\nCopyright (C) 1996-1997 Id Software, Inc.\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU General Public License\nas published by the Free Software Foundation; either version 2\nof the License, or (at your option) any later version.\n\nThis ...
347
0
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 34.73, "nodes": 260, "errors": 0, "source_hash": "a424e854ec8b69783f60ce4b40fc6d12733252fe35b208748ce2bd37ccf3955f", "categorized_nodes": 187}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,046
c
typedef unsigned long ulong_t; #ifdef TESTING # include <stdio.h> # include <assert.h> #else # define ARRAYBASE 0xa0000000 #endif /* TESTING */ #define ARRAYSIZE 128 void entry(void); void insertion_sort(ulong_t *array, ulong_t size); void insert(ulong_t *array, ulong_t size, ulong_t x); #ifdef TESTING void parray(ul...
20.66
87
(translation_unit) "typedef unsigned long ulong_t;\n\n#ifdef TESTING\n# include <stdio.h>\n# include <assert.h>\n#else\n# define ARRAYBASE 0xa0000000\n#endif /* TESTING */\n#define ARRAYSIZE 128\n\nvoid entry(void);\nvoid insertion_sort(ulong_t *array, ulong_t size);\nvoid insert(ulong_t *array, ulong_t size, ulong_t x...
677
0
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 20.66, "nodes": 439, "errors": 0, "source_hash": "df2f60c56750ffe908202efe68e2159f07313c63e5a9a0a867d3146974aa82c6", "categorized_nodes": 307}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "type...
79,047
c
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the Apache 2.0 License. #pragma once #include "../ds/json.h" #include "../ds/serialized.h" #include "genericserialisewrapper.h" #include "kvtypes.h" #include <iterator> #include <nlohmann/json.hpp> #include <sstream> #include <type_traits>...
21.41
85
(translation_unit) "// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the Apache 2.0 License.\n#pragma once\n\n#include "../ds/json.h"\n#include "../ds/serialized.h"\n#include "genericserialisewrapper.h"\n#include "kvtypes.h"\n\n#include <iterator>\n#include <nlohmann/json.hpp>\n#include <...
524
25
{"language": "c", "success": true, "metadata": {"lines": 85, "avg_line_length": 21.41, "nodes": 320, "errors": 0, "source_hash": "23369ed68c8545b6798284c26b275ba6281ec96902578885b0e521dc935cd3a9", "categorized_nodes": 216}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
79,048
c
#pragma once #include <string> #include <vector> using namespace std; namespace Utility { inline string& trim(string& str, const string& chars) { //str.erase(str.find_first_not_of(chars)); str.erase(str.find_last_not_of(chars) + 1); return str; } inline vector<string> splite(string str, string expres...
20.95
41
(translation_unit) "#pragma once\n\n\n#include <string>\n#include <vector>\n\nusing namespace std;\n\n\nnamespace Utility \n{\n inline string& trim(string& str, const string& chars)\n {\n\n //str.erase(str.find_first_not_of(chars));\n str.erase(str.find_last_not_of(chars) + 1);\n\n return str;\n }\n\n inline vector<...
336
7
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 20.95, "nodes": 209, "errors": 0, "source_hash": "ba940109f898d744b0288cc7488ba78c720d4fe45f38902367743cbe78aa902e", "categorized_nodes": 158}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
79,049
c
/* date = April 25th 2021 9:24 am */ #ifndef MY_TEXT_EDITOR_STRING_H #define MY_TEXT_EDITOR_STRING_H // NOTE(ajeej): Utility string functions for string manipulation // NOTE(ajeej): With null character inline u32 string_length(char *str) { return strlen(str)+1; } inline void clear_string(char *str, u32 pos) { ...
18.69
170
(translation_unit) "/* date = April 25th 2021 9:24 am */\n\n#ifndef MY_TEXT_EDITOR_STRING_H\n#define MY_TEXT_EDITOR_STRING_H\n\n// NOTE(ajeej): Utility string functions for string manipulation\n\n// NOTE(ajeej): With null character\ninline u32\nstring_length(char *str)\n{\n return strlen(str)+1;\n}\n\ninline void\nc...
1,140
3
{"language": "c", "success": true, "metadata": {"lines": 170, "avg_line_length": 18.69, "nodes": 772, "errors": 0, "source_hash": "5e00ae53bf6642c0770976a62e8b2ee8bf95dd5e9b06fb22ba8329db9f1f9cd5", "categorized_nodes": 510}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
79,050
c
// Copyright (c) 2017 The Bitcoin Core developers // Copyright (c) 2011-2021 The Freicoin Developers // // This program is free software: you can redistribute it and/or modify it under // the terms of version 3 of the GNU Affero General Public License as published // by the Free Software Foundation. // // This program ...
36.28
32
(translation_unit) "// Copyright (c) 2017 The Bitcoin Core developers\n// Copyright (c) 2011-2021 The Freicoin Developers\n//\n// This program is free software: you can redistribute it and/or modify it under\n// the terms of version 3 of the GNU Affero General Public License as published\n// by the Free Software Founda...
141
1
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 36.28, "nodes": 84, "errors": 0, "source_hash": "91e8a7656afbf3a19e35c799ff2fb4dd5cbd8cf515b50ae07e90f7869daa9d7a", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,051
c
#pragma once #include <tuple> #include <type_traits> /** Utilities for metaprogramming. */ namespace py::meta { /** Debugging helper to get the compiler to dump a type as an error message. @tparam T The type to print. ### Usage When debugging template meta-functions it is sometimes helpful to see the ...
40.62
245
(translation_unit) "#pragma once\n\n#include <tuple>\n#include <type_traits>\n\n/** Utilities for metaprogramming.\n */\nnamespace py::meta {\n/** Debugging helper to get the compiler to dump a type as an error message.\n\n @tparam T The type to print.\n\n ### Usage\n\n When debugging template meta-functions i...
1,516
172
{"language": "c", "success": true, "metadata": {"lines": 245, "avg_line_length": 40.62, "nodes": 1029, "errors": 0, "source_hash": "88ba9c2266d1b9d2ffb9642f0dc07ee0f5a40f8119d9e088697139d7568361c4", "categorized_nodes": 598}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#prag...
79,052
c
/* Copyright (c) 2012 <NAME>, <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 d...
39.5
156
(translation_unit) "/*\nCopyright (c) 2012 <NAME>, <NAME>\nAll 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\nlist of co...
1,140
0
{"language": "c", "success": true, "metadata": {"lines": 156, "avg_line_length": 39.5, "nodes": 632, "errors": 0, "source_hash": "f6040dc0eb08dbc1f8004dfe2b6fb9293da03e51997714eb81f5b03b7080779d", "categorized_nodes": 424}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,053
c
#ifndef LLIB_SELECT_H #define LLIB_SELECT_H typedef bool (*SelectTimerProc)(void *data); typedef int (*SelectReadProc)(const char *line,...); typedef struct Select_ Select; typedef struct SelectTimer_ SelectTimer; typedef struct SelectFile_ SelectFile; typedef struct Pipe_ Pipe; enum { SelectRead = 1, Select...
36.39
33
(translation_unit) "#ifndef LLIB_SELECT_H\n#define LLIB_SELECT_H\n\ntypedef bool (*SelectTimerProc)(void *data);\ntypedef int (*SelectReadProc)(const char *line,...);\n\ntypedef struct Select_ Select;\ntypedef struct SelectTimer_ SelectTimer;\ntypedef struct SelectFile_ SelectFile;\ntypedef struct Pipe_ Pipe;\n\nenum {...
428
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 36.39, "nodes": 327, "errors": 0, "source_hash": "bfc427a1ce2285ac9170d172766c69bcefd45632c88cb021aa885696a3776e52", "categorized_nodes": 198}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,054
c
#pragma once #include "hh_scanner.h" size_t deploy_scan(t_hh_params &hh_args);
25.33
3
(translation_unit) "#pragma once\n\n#include "hh_scanner.h"\n\nsize_t deploy_scan(t_hh_params &hh_args);\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "hh_scanner.h"\n" (#include) "#include" (string_literal) ""hh_scanner.h"" (...
23
1
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 25.33, "nodes": 14, "errors": 0, "source_hash": "291528b20b1379f009f52bae2b23708ee03ec3b08c0eaf7b5eada5d865ebdf84", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
79,055
c
#pragma once #include <nan.h> namespace duktape { NAN_METHOD(run); } // namespace duktape
17
5
(translation_unit) "#pragma once\n\n#include <nan.h>\n\nnamespace duktape {\n\nNAN_METHOD(run);\n\n} // namespace duktape\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <nan.h>\n" (#include) "#include" (system_lib_string) "<nan.h>" ...
22
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 17.0, "nodes": 13, "errors": 0, "source_hash": "edf4b4e172003d3688ed8979bf89e696b12d93e78f76df6d843cf60132607581", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
79,056
c
// Torsion TorqueScript IDE - Copyright (C) Sickhead Games, LLC // This file is subject to the terms and conditions defined in // file 'LICENSE.txt', which is part of this source code package. // Generated by DialogBlocks (unregistered), 09/20/05 23:54:14 #ifndef _RELOADFILE_H_ #define _RELOADFILE_H_ #if defined(__G...
30.23
75
(translation_unit) "// Torsion TorqueScript IDE - Copyright (C) Sickhead Games, LLC\n// This file is subject to the terms and conditions defined in\n// file 'LICENSE.txt', which is part of this source code package.\n\n// Generated by DialogBlocks (unregistered), 09/20/05 23:54:14\n\n#ifndef _RELOADFILE_H_\n#define _REL...
275
9
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 30.23, "nodes": 164, "errors": 0, "source_hash": "fe8f76b2ceff5a984fed18642fe0a9cbbcc282ab408fcf276696354416735c23", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,057
c
#include "compat.h" #ifndef FWM_FOLD_RIGHT #define FWM_FOLD_RIGHT #define fold_right_simple(__array, __length) ({ \ typeof(*(__array)) __accum = (__array)[0]; \ int __curr = 1; \ \ for (;__curr < (__length); ++__curr) { \ __accum = __accum + (__array)[__curr]; \ } \ ...
41.94
18
(translation_unit) "#include "compat.h"\n\n#ifndef FWM_FOLD_RIGHT\n#define FWM_FOLD_RIGHT\n\n#define fold_right_simple(__array, __length) ({ \\n typeof(*(__array)) __accum = (__array)[0]; \\n int __curr = 1; \\n \\n for (;__curr < (__length); ++__curr) { \\n __accum = __accum + (__array)[__c...
60
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 41.94, "nodes": 39, "errors": 0, "source_hash": "33b60f54e2a539df8168e7b3fde900230fe4abf8399a9c49ed33e69176c53ba4", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
79,058
c
#include "Map.h" #include <string.h> #define gene 'g' #define transcript 't' #define exon 'e' #define FivePrimeEnd true #define ThreePrimeEnd false struct mini_GTF { int seqname; char feature; int start; int end; char strand; }; class Mini_GTF { int count; mini_GTF *A; Str2IntMap theMap; int index[32768]; ...
32.56
39
(translation_unit) "#include "Map.h"\n#include <string.h>\n\n#define gene 'g'\n#define transcript 't'\n#define exon 'e'\n#define FivePrimeEnd true\n#define ThreePrimeEnd false\n\nstruct mini_GTF\n{\n int seqname;\n char feature;\n int start;\n int end;\n char strand;\n};\n\nclass Mini_GTF\n{\n int count;\n mini_GTF *A;...
424
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 32.56, "nodes": 287, "errors": 0, "source_hash": "a0028e080bae62e6089c315299a98f439dc97e026ea42ef30a2d583a7049bfc1", "categorized_nodes": 167}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,059
c
#include <stdio.h> #include <stdlib.h> #include <X11/Xlib.h> #ifdef SRGP_BOSS #define DECLARE #else #define DECLARE extern #endif /** the special screen canvas ID**/ #define SCREEN_CANVAS 0 /** WRITE MODE **/ typedef enum {WRITE_REPLACE=0, WRITE_XOR, WRITE_OR, WRITE_AND} writeMode; /** FILL STYLE or PEN STYLE ...
35.09
292
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <X11/Xlib.h>\n\n\n#ifdef SRGP_BOSS\n#define DECLARE\n#else\n#define DECLARE extern\n#endif\n\n\n/** the special screen canvas ID**/\n#define SCREEN_CANVAS 0\n\n\n/** WRITE MODE **/\ntypedef enum {WRITE_REPLACE=0, WRITE_XOR, WRITE_OR, WRITE_AND} writ...
2,134
16
{"language": "c", "success": true, "metadata": {"lines": 292, "avg_line_length": 35.09, "nodes": 1584, "errors": 0, "source_hash": "c42b9b225b4a34ee55f2f1cab2a0abf2b0ae9ccaadcc1b4a363197736d17f5c0", "categorized_nodes": 1021}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
79,060
c
// // MLControlEvent.h // madronalib // // Created by <NAME> on 7/9/14. // // #ifndef __MLControlEvent__ #define __MLControlEvent__ #include <iostream> #include <vector> #include <stack> // MLControlEvents are instructions that tell a DSP Engine what to do. // They can come from different sources such as a score,...
24.59
74
(translation_unit) "//\n// MLControlEvent.h\n// madronalib\n//\n// Created by <NAME> on 7/9/14.\n//\n//\n\n#ifndef __MLControlEvent__\n#define __MLControlEvent__\n\n#include <iostream>\n#include <vector>\n#include <stack>\n\n// MLControlEvents are instructions that tell a DSP Engine what to do.\n// They can come fro...
360
18
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 24.59, "nodes": 202, "errors": 0, "source_hash": "8146aeb8e0d9e21963f5eb57b77cb75da8ddca9c8cbd34b85f4a1e052d9ea167", "categorized_nodes": 144}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,061
c
#ifndef TOKEN_H #define TOKEN_H #include <internals/cstrings/strings.h> typedef enum { TokenLineBreak, TokenUnderscore, TokenAsterisk, TokenBacktick, TokenEquals, TokenMinus, TokenPlus, TokenOPAngleBracket, TokenLattice, TokenExclamationMark, TokenOPSquareBracket, Token...
16.56
34
(translation_unit) "#ifndef TOKEN_H\n#define TOKEN_H\n\n#include <internals/cstrings/strings.h>\n\ntypedef enum\n{\n TokenLineBreak,\n TokenUnderscore,\n TokenAsterisk,\n TokenBacktick,\n TokenEquals,\n TokenMinus,\n TokenPlus,\n TokenOPAngleBracket,\n TokenLattice,\n TokenExclamationMark,...
105
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 16.56, "nodes": 74, "errors": 0, "source_hash": "a548f1af5c09419951eb74c3dafbeedac400032ac804c40f67b762b448ba60b7", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,062
c
/* * Copyright 2018 The Emscripten Authors. All rights reserved. * Emscripten is available under two separate licenses, the MIT license and the * University of Illinois/NCSA Open Source License. Both these licenses can be * found in the LICENSE file. */ // With upstream we use musl's normal getenv code, but wit...
38.39
23
(translation_unit) "/*\n * Copyright 2018 The Emscripten Authors. All rights reserved.\n * Emscripten is available under two separate licenses, the MIT license and the\n * University of Illinois/NCSA Open Source License. Both these licenses can be\n * found in the LICENSE file.\n */\n\n// With upstream we use musl's ...
93
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 38.39, "nodes": 57, "errors": 0, "source_hash": "cc48a050dc96116f28c00ed724455998884efda02fdb736486b3da8c59562864", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef _...
79,063
c
#import <ReactABI17_0_0/ABI17_0_0RCTViewManager.h> @interface ABI17_0_0EXBannerViewManager : ABI17_0_0RCTViewManager @end
39.67
3
(translation_unit) "#import <ReactABI17_0_0/ABI17_0_0RCTViewManager.h>\n\n@interface ABI17_0_0EXBannerViewManager : ABI17_0_0RCTViewManager\n\n@end\n" (preproc_call) "#import <ReactABI17_0_0/ABI17_0_0RCTViewManager.h>\n" (preproc_directive) "#import" (preproc_arg) "<ReactABI17_0_0/ABI17_0_0RCTViewManager.h>" ...
12
3
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 39.67, "nodes": 9, "errors": 0, "source_hash": "28884f7f965774df98da94a526738a5b90b84531035dfa1f4c205210a4ceff96", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Rea...
79,064
c
#ifndef _easyhtmleditor_h #define _easyhtmleditor_h #include <iostream> #include <fstream> #include <deque> #include <string> #include <Windows.h> #include <vector> #include <stack> using namespace std; namespace edt{ class easyhtmleditor{ private: int page = 0; int page_now = 1; private: deque < deq...
28.39
51
(translation_unit) "#ifndef _easyhtmleditor_h\n#define _easyhtmleditor_h\n\n#include <iostream>\n#include <fstream>\n#include <deque>\n#include <string>\n#include <Windows.h>\n#include <vector>\n#include <stack>\n\nusing namespace std;\n\nnamespace edt{\n\nclass easyhtmleditor{ \n\nprivate:\n int page = 0;\n int...
866
5
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 28.39, "nodes": 589, "errors": 0, "source_hash": "3723df538b0a759182425d8ec90536c6fc4eb26375feef3b7da0ab172d9dc799", "categorized_nodes": 325}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,065
c
#include <stdlib.h> #include <json/json.h> #include "str_list_set.h" void prepare_token_list(struct ListInfo *list_info, char **db_data, size_t db_data_len, char sep) { // null terminate *db_data = realloc(*db_data, db_data_len + 1); *(*db_data + db_data_len) = '\0'; list_info->sep = sep; list...
29.33
84
(translation_unit) "#include <stdlib.h>\n#include <json/json.h>\n#include "str_list_set.h"\n\nvoid prepare_token_list(struct ListInfo *list_info, char **db_data, size_t db_data_len, char sep)\n{\n // null terminate\n *db_data = realloc(*db_data, db_data_len + 1);\n *(*db_data + db_data_len) = '\0';\n \n ...
711
0
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 29.33, "nodes": 456, "errors": 0, "source_hash": "8237a3921d61ad53e86e7ab297b74a6e2013a803a36c16a411d3fd8f1023c1b0", "categorized_nodes": 322}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,066
c
#ifndef _OCTREE_H_ #define _OCTREE_H_ #include "MathGeoLib/include/Geometry/AABB.h" #include "GameObject.h" #include "ModuleCamera3D.h" class Octree { public: Octree(AABB limits, uint max_objects_in_level, uint max_level, uint current_level, Octree* p = nullptr); ~Octree(); bool Clear(); void Insert(GameObject*)...
25.48
48
(translation_unit) "#ifndef _OCTREE_H_\n#define _OCTREE_H_\n\n#include "MathGeoLib/include/Geometry/AABB.h"\n#include "GameObject.h"\n#include "ModuleCamera3D.h"\n\nclass Octree\n{\npublic:\n Octree(AABB limits, uint max_objects_in_level, uint max_level, uint current_level, Octree* p = nullptr);\n ~Octree();\n\n bool C...
487
21
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 25.48, "nodes": 306, "errors": 0, "source_hash": "e7e1e48fbbfb96e3a4e2f174fcd40c97b41e579cde84a6c4202a8b678b1e8cbb", "categorized_nodes": 204}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,067
c
/* * Copyright 1999-2016 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/lice...
36.56
162
(translation_unit) "/*\n * Copyright 1999-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the "License"). You may not use\n * this file except in compliance with the License. You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://w...
1,393
0
{"language": "c", "success": true, "metadata": {"lines": 162, "avg_line_length": 36.56, "nodes": 836, "errors": 0, "source_hash": "c9a4bb3b9ebef5b890279fe5abc88c25de09886ee61b13f3e2b60c63a3be92e9", "categorized_nodes": 605}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,068
c
// // osx_fileio.h // RTSProject // // Created by <NAME>. // Copyright © 2015 <NAME>. All rights reserved. // #ifndef osx_fileio_h #define osx_fileio_h const char* getApplicationSupport(); const char* getFilePathFromDlg( GLFWwindow* win ); void createDirAt( const char* dir ); void removeFileAt( const char* filen...
22.4
15
(translation_unit) "//\n// osx_fileio.h\n// RTSProject\n//\n// Created by <NAME>.\n// Copyright © 2015 <NAME>. All rights reserved.\n//\n\n#ifndef osx_fileio_h\n#define osx_fileio_h\n\nconst char* getApplicationSupport();\nconst char* getFilePathFromDlg( GLFWwindow* win );\n\nvoid createDirAt( const char* dir );\nv...
75
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 22.4, "nodes": 50, "errors": 0, "source_hash": "79d8fff91e6d75fe998a768687bf0fad2382bb9ca95f92be2ef033746c08e6cc", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef os...
79,069
c
/* Copyright (c) 2014 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* tiny substitute of the runtime layer */ #include "common.h" #include "cpu.h" #include "debug.h" #include "master_slave.h" #include "register...
21.8
111
(translation_unit) "/* Copyright (c) 2014 The Chromium OS 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/* tiny substitute of the runtime layer */\n\n#include "common.h"\n#include "cpu.h"\n#include "debug.h"\n#include "maste...
738
0
{"language": "c", "success": true, "metadata": {"lines": 111, "avg_line_length": 21.8, "nodes": 438, "errors": 0, "source_hash": "e5300cf1ced17ec5a883e2e890ccf795bd1ef8b811c713507b5235ff1069f5f6", "categorized_nodes": 323}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,070
c
// // IPTableViewController.h // InstructionPatch_Example // // Created by shouye on 3/10/18. // Copyright © 2018 intMax. All rights reserved. // #import <UIKit/UIKit.h> @interface IPTableViewController : UITableViewController @end
22.6
10
(translation_unit) "//\n// IPTableViewController.h\n// InstructionPatch_Example\n//\n// Created by shouye on 3/10/18.\n// Copyright © 2018 intMax. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface IPTableViewController : UITableViewController\n\n@end\n" (comment) "//" (comment) "// IPTableViewC...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 22.6, "nodes": 9, "errors": 0, "source_hash": "bd305918ea604f439a061c7ef17bbee23f072c9588fd65ac4c0bbaab5540b805", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UIKi...
79,071
c
#ifndef TEXTEDITOR_H #define TEXTEDITOR_H #include <QFont> #include <QLineEdit> #include <QObject> #include <QTextEdit> #include <QWidget> class QPaintEvent; class QResizeEvent; class QSize; class QWidget; class LineNumberArea; class TextEditor : public QTextEdit { Q_OBJECT public: explicit TextEditor(QWidget *p...
24.58
64
(translation_unit) "#ifndef TEXTEDITOR_H\n#define TEXTEDITOR_H\n\n#include <QFont>\n#include <QLineEdit>\n#include <QObject>\n#include <QTextEdit>\n#include <QWidget>\n\nclass QPaintEvent;\nclass QResizeEvent;\nclass QSize;\nclass QWidget;\n\nclass LineNumberArea;\n\nclass TextEditor : public QTextEdit {\n Q_OBJECT\n\n...
448
16
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 24.58, "nodes": 267, "errors": 0, "source_hash": "c6de41c479eb5c6b5c04c2fadb8c7fb30d8e82054b947ac2b6c2eb9a2d9ec30a", "categorized_nodes": 184}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,072
c
/* Copyright (c) 2019-2020 <NAME> MIT License 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...
32.8
144
(translation_unit) "/*\n Copyright (c) 2019-2020 <NAME>\n\n MIT License\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the "Software"), to deal\n in the Software without restriction, including without limitation the rights\n to use...
1,500
97
{"language": "c", "success": true, "metadata": {"lines": 144, "avg_line_length": 32.8, "nodes": 977, "errors": 0, "source_hash": "63eb5850452e2c3de5fef58f70ad6d1bd7f9d203d8bb54b65b9f6390f9df95d2", "categorized_nodes": 582}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,073
c
/* * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl\nsIContainerBoxObject.idl */ #ifndef __gen_nsIContainerBoxObject_h__ #define __gen_nsIContainerBoxObject_h__ #ifndef __gen_nsISupports_h__ #include "nsISupports.h" #endif /* For IDL files that don't want to include root IDL files. */ #i...
24.89
82
(translation_unit) "/* \n * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl\nsIContainerBoxObject.idl \n */ \n \n#ifndef __gen_nsIContainerBoxObject_h__ \n#define __gen_nsIContainerBoxObject_h__ \n \n \n#ifndef __gen_nsISupports_h__ \n#include "nsISupports.h" \n#endif \n \n/* For IDL files that don't want t...
185
7
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 24.89, "nodes": 103, "errors": 0, "source_hash": "effc82c9893987165a3e997865e20fd7736655d34dd42d145ece92202b8fd9c0", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef __gen_n...
79,074
c
/* * Copyright 2020~2021 Usbong Social Systems, Inc. * 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...
28.13
53
(translation_unit) "/* \n * Copyright 2020~2021 Usbong Social Systems, Inc. \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...
47
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 28.13, "nodes": 19, "errors": 0, "source_hash": "2810ea45b62f18326e3b6d88ce97703d808735233bbaaa8c30c317befeae9a5d", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "cl...
79,075
c
#pragma once //#include "_cocos.h" #include "_cpp.h" #include "_rand.h" #include "_string.h" #include "cAstar.h" #include "cDirection.h" #include "cDye.h" #include "cLink2.h" #include "cPath.h" #include "cSave.h" #include "cSp.h" #include "s565.h" #include "s888.h" #include "sDesc.h"
18
15
(translation_unit) "#pragma once\n//#include "_cocos.h"\n#include "_cpp.h"\n#include "_rand.h"\n#include "_string.h"\n#include "cAstar.h"\n#include "cDirection.h"\n#include "cDye.h"\n#include "cLink2.h"\n#include "cPath.h"\n#include "cSave.h"\n#include "cSp.h"\n#include "s565.h"\n#include "s888.h"\n#include "sDesc.h"" ...
83
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 18.0, "nodes": 42, "errors": 0, "source_hash": "dc5a8459f139a841c880ca461ce33d08f7897c6327f68d4fb3f2e16c5d3a5611", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
79,076
c
/* * Copyright (c) Huawei Technologies Co., Ltd. 2012-2021. All rights reserved. */ #ifndef UNITTESTBOT_COPMILATIONUTILS_H #define UNITTESTBOT_COPMILATIONUTILS_H #include "building/CompilationDatabase.h" #include "json.hpp" #include "utils/path/FileSystemPath.h" #include <memory> namespace CompilationUtils { ...
45.97
38
(translation_unit) "/*\n * Copyright (c) Huawei Technologies Co., Ltd. 2012-2021. All rights reserved.\n */\n\n#ifndef UNITTESTBOT_COPMILATIONUTILS_H\n#define UNITTESTBOT_COPMILATIONUTILS_H\n\n#include "building/CompilationDatabase.h"\n\n#include "json.hpp"\n\n#include "utils/path/FileSystemPath.h"\n#include <memory>\n...
421
26
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 45.97, "nodes": 226, "errors": 0, "source_hash": "723c291b948ab22828f6454908685ab061c4360e57ae27c918579038aad74bf5", "categorized_nodes": 166}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef UNITTE...
79,077
c
// // QJNewBrowerImageCell.h // EHenTaiViewer // // Created by QinJ on 2018/4/6. // Copyright © 2018年 kayanouriko. All rights reserved. // #import <UIKit/UIKit.h> @class QJMangaImageModel; @protocol QJNewBrowerImageCellDelegate <NSObject> @optional - (void)collectionViewShouldRefreshWithModel:(QJMangaImageModel...
29.55
20
(translation_unit) "//\n// QJNewBrowerImageCell.h\n// EHenTaiViewer\n//\n// Created by QinJ on 2018/4/6.\n// Copyright © 2018年 kayanouriko. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@class QJMangaImageModel;\n\n@protocol QJNewBrowerImageCellDelegate <NSObject>\n\n@optional\n- (void)collectionViewShould...
111
17
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 29.55, "nodes": 75, "errors": 0, "source_hash": "ab21359b55c83d3d5a5f6bda2de872cdac604c319f39313301e3377d7d4513e4", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
79,078
c
#ifndef LIBZAZEN_KEYBOARD_H #define LIBZAZEN_KEYBOARD_H #include <libzazen.h> #include <time.h> #include <wayland-server.h> #include "keymap_info.h" struct zazen_keyboard_grab; struct zazen_keyboard_grab_interface { void (*key)(struct zazen_keyboard_grab *grab, const struct timespec *time, uint32_t k...
42.29
42
(translation_unit) "#ifndef LIBZAZEN_KEYBOARD_H\n#define LIBZAZEN_KEYBOARD_H\n\n#include <libzazen.h>\n#include <time.h>\n#include <wayland-server.h>\n\n#include "keymap_info.h"\n\nstruct zazen_keyboard_grab;\nstruct zazen_keyboard_grab_interface {\n void (*key)(struct zazen_keyboard_grab *grab, const struct timespec ...
364
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 42.29, "nodes": 282, "errors": 0, "source_hash": "75e3640971c8588adee9fde2421f2474ec56f357c2e46838102c49d41603c44a", "categorized_nodes": 203}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,079
c
#include <stdint.h> #include <stdlib.h> struct bitmask { unsigned long size; /* number of bits in the map */ unsigned long *maskp; }; int numa_available(void) { return 0; } long get_mempolicy(int *mode, unsigned long *nodemask, unsigned long maxnode, void *addr, unsigned long flags) { return 0; } vo...
22.81
27
(translation_unit) "#include <stdint.h>\n#include <stdlib.h>\n\nstruct bitmask {\n unsigned long size; /* number of bits in the map */\n unsigned long *maskp;\n};\n\nint numa_available(void) {\n return 0;\n}\n\nlong get_mempolicy(int *mode, unsigned long *nodemask, unsigned long maxnode, void *addr, unsigned l...
194
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 22.81, "nodes": 128, "errors": 0, "source_hash": "525fd78901eb2c54f720127d43d9b1850fd575105d4ded9e5d03ae2bacf2984e", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
79,080
c
// // compute_pipeline_state.hpp // vox.render // // Created by 杨丰 on 2021/11/28. // #ifndef compute_pipeline_state_hpp #define compute_pipeline_state_hpp #import <Metal/Metal.h> #include "../vox_type.h" namespace vox { class ComputePipelineState { public: ComputePipelineState(MetalRenderer *_render, MTLCompu...
22
23
(translation_unit) "//\n// compute_pipeline_state.hpp\n// vox.render\n//\n// Created by 杨丰 on 2021/11/28.\n//\n\n#ifndef compute_pipeline_state_hpp\n#define compute_pipeline_state_hpp\n\n#import <Metal/Metal.h>\n#include "../vox_type.h"\n\nnamespace vox {\nclass ComputePipelineState {\npublic:\n ComputePipelineSt...
88
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 22.0, "nodes": 55, "errors": 0, "source_hash": "0f82181aa9b903fb16dc41fe3e2358cec6048b3fe4bd55052dcfb7f09495c739", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "def compu...
79,081
c
/* Copyright 2021 r-neal-kelly */ #pragma once #include "nkr/string_static_t.h" namespace maken { /* tag_t is a unique string_static_t that can be associated with any other type. any type that can carry tag_ts shall be able to quickly find them. not associated with any central author...
25.39
18
(translation_unit) "/*\n Copyright 2021 r-neal-kelly\n*/\n\n#pragma once\n\n#include "nkr/string_static_t.h"\n\nnamespace maken {\n\n /*\n tag_t is a unique string_static_t that can be associated with any other type.\n any type that can carry tag_ts shall be able to quickly find them.\n not a...
40
1
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 25.39, "nodes": 19, "errors": 0, "source_hash": "44eb0101a329ae57a2014ef902dc2dfeaf1e3497bd68ae05e1923d63d4f468b3", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
79,082
c
// // UIButton+SWEdgeInsets.h // SWUtils // // CreSWed by 677676 on 2018/1/27. // Copyright © 2018年 艾腾软件.SW. All rights reserved. // #import <UIKit/UIKit.h> typedef NS_ENUM(NSInteger,SWImagePositionType) { SWImagePositionTypeLeft, //图片在左,标题在右,默认风格 SWImagePositionTypeRight, //图片在右,标题在左 SWImagePos...
26.88
96
(translation_unit) "//\n// UIButton+SWEdgeInsets.h\n// SWUtils\n//\n// CreSWed by 677676 on 2018/1/27.\n// Copyright © 2018年 艾腾软件.SW. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n\ntypedef NS_ENUM(NSInteger,SWImagePositionType) {\n SWImagePositionTypeLeft, //图片在左,标题在右,默认风格\n SWImagePositionTypeR...
338
30
{"language": "c", "success": true, "metadata": {"lines": 96, "avg_line_length": 26.88, "nodes": 193, "errors": 0, "source_hash": "1f0c03a390c71ac165005e9ca1d5e25e82e1ef95006a470f8f882a6b7f18f381", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Kit/UIK...
79,083
c
#include <stdlib.h> #include <string.h> #include <errno.h> #include "bytecode.h" #include "instns/instn.h" #include "vm.h" int32_t decode_instn(uint8_t* iptr, vm_t* vm, instn_t* instn) { int32_t offset = 0; uint8_t* bound = vm->code + vm->codesz; if (bound < iptr + sizeof(uint16_t)) { vm->exc...
26.15
235
(translation_unit) "#include <stdlib.h>\n#include <string.h>\n#include <errno.h>\n\n#include "bytecode.h"\n#include "instns/instn.h"\n#include "vm.h"\n\n\nint32_t decode_instn(uint8_t* iptr, vm_t* vm, instn_t* instn)\n{\n int32_t offset = 0;\n uint8_t* bound = vm->code + vm->codesz;\n if (bound < iptr + sizeof...
2,019
0
{"language": "c", "success": true, "metadata": {"lines": 235, "avg_line_length": 26.15, "nodes": 1170, "errors": 0, "source_hash": "115a31522ac00b14d6bb301f64b6b2d36cecc0b09d9a6e4390635afe73434000", "categorized_nodes": 825}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
79,084
c
#include <stdlib.h> #include <stdio.h> #include <stdbool.h> #include <string.h> typedef int Key_T; typedef void *Val_T; #define INVALIDKEY (-1) #define INVALIDVAL NULL int keycmp(Key_T a, Key_T b) { return a - b; } // support 2-3-4 tree // 4 sub-node to transform to 2-3 tree #define CHILDNUM 4 #define VALNUM (C...
23.99
138
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n#include <stdbool.h>\n#include <string.h>\n\ntypedef int Key_T;\ntypedef void *Val_T;\n#define INVALIDKEY (-1)\n#define INVALIDVAL NULL\n\nint keycmp(Key_T a, Key_T b) {\n return a - b;\n}\n\n// support 2-3-4 tree\n// 4 sub-node to transform to 2-3 tree\n#...
1,387
0
{"language": "c", "success": true, "metadata": {"lines": 138, "avg_line_length": 23.99, "nodes": 850, "errors": 0, "source_hash": "a96bc8904a8ede62cd213949d35fe323fb483f171c99efdfe01a2636f650277b", "categorized_nodes": 666}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,085
c
// // ZLSharedDataManager.h // ZLGitHubClient // // Created by 朱猛 on 2020/2/7. // Copyright © 2020 ZM. All rights reserved. // /** * 维护保存在keychain,userdefaults 或者沙盒中的数据 * */ #import <Foundation/Foundation.h> #import "ZLSearchServiceHeader.h" @class ZLGithubUserModel; @class ZLGithubConfigModel; @class ZLGi...
32.22
55
(translation_unit) "//\n// ZLSharedDataManager.h\n// ZLGitHubClient\n//\n// Created by 朱猛 on 2020/2/7.\n// Copyright © 2020 ZM. All rights reserved.\n//\n\n/**\n * 维护保存在keychain,userdefaults 或者沙盒中的数据\n *\n */\n\n#import <Foundation/Foundation.h>\n#import "ZLSearchServiceHeader.h"\n\n\n@class ZLGithubUserModel;\n@...
406
49
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 32.22, "nodes": 273, "errors": 0, "source_hash": "28f452762102ffccb3cc0fb202c08bc28e61c84bb70e16d31b56ed6808c17213", "categorized_nodes": 154}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "\n#impo...
79,086
c
// **************************************************************************** // NOTICE // // This is the copyright work of The MITRE Corporation, and was produced // for the U. S. Government under Contract Number DTFAWA-10-C-00080, and // is subject to Federal Aviation Administration Acquisition Management // System...
35.33
52
(translation_unit) "// ****************************************************************************\n// NOTICE\n//\n// This is the copyright work of The MITRE Corporation, and was produced\n// for the U. S. Government under Contract Number DTFAWA-10-C-00080, and\n// is subject to Federal Aviation Administration Acquisi...
286
14
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 35.33, "nodes": 143, "errors": 0, "source_hash": "78a814cb86516dbb23df5b824fe3df92f41c69252f74bd00bbc9c2852ca4438a", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
79,087
c
// // OSKKey.h // KeymanEngine4Mac // // Created by <NAME> on 1/07/2015. // Copyright (c) 2017 SIL International. All rights reserved. // #import <Foundation/Foundation.h> @interface OSKKey : NSObject @property (nonatomic, strong) NSString *caption; @property (nonatomic, assign) NSUInteger keyCode; @property (no...
30.86
14
(translation_unit) "//\n// OSKKey.h\n// KeymanEngine4Mac\n//\n// Created by <NAME> on 1/07/2015.\n// Copyright (c) 2017 SIL International. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface OSKKey : NSObject\n\n@property (nonatomic, strong) NSString *caption;\n@property (nonatomic, assign) ...
110
15
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 30.86, "nodes": 69, "errors": 0, "source_hash": "2622c7c3638461bf61711bcd99eaf8cef5995274a391a63dd053ba714a701855", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
79,088
c
/**************************************************************************** * tools/rmcr.c * * Copyright (C) 2019 <NAME>. All rights reserved. * Author: <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditio...
37.74
99
(translation_unit) "/****************************************************************************\n * tools/rmcr.c\n *\n * Copyright (C) 2019 <NAME>. All rights reserved.\n * Author: <NAME> <<EMAIL>>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided ...
364
0
{"language": "c", "success": true, "metadata": {"lines": 99, "avg_line_length": 37.74, "nodes": 211, "errors": 0, "source_hash": "00dcdcbdd68e9efbcabbe672aa7227ed053c7ac3c7c84d4caa9070f026c884fe", "categorized_nodes": 145}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,089
c
/* ***************************************************************************** * * Copyright (c) 2014 <NAME>. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are * permitted provided that the following conditions are met: * * 1. Redistributions of sourc...
37.61
129
(translation_unit) "/* *****************************************************************************\n *\n * Copyright (c) 2014 <NAME>. All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without modification, are\n * permitted provided that the following conditions are met:\n *\n * ...
569
0
{"language": "c", "success": true, "metadata": {"lines": 129, "avg_line_length": 37.61, "nodes": 424, "errors": 0, "source_hash": "3239ccd4a306dd090c1fcd520427490713b7ae24a02d302f97273351488ed99e", "categorized_nodes": 245}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
79,090
c
#include "System.h" #include <assert.h> /*stdout 구현부입니다.*/ void __print(const char* s) { printf(s); } void __println(const char* s) { printf(s); putchar('\n'); } void __gc() { puts("ni"); } /*stdin 구현부입니다.*/ void __error(const char* s) { fprintf(stderr,s); } void __error...
13.32
65
(translation_unit) "#include "System.h" \n#include <assert.h> \n \n/*stdout 구현부입니다.*/ \nvoid __print(const char* s) \n{ \n printf(s); \n} \nvoid __println(const char* s) \n{ \n printf(s); \n putchar('\n'); \n} \n \nvoid __gc() \n{ \n puts("ni"); \n} \n \n \n/*stdin 구현부입니다.*/ \nvoid __error(const char* s) \n...
361
0
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 13.32, "nodes": 202, "errors": 0, "source_hash": "380a4a62a3e5b8caded8b4b28133a8bf9a3dc3aa085af39dd59c186253a4c498", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,091
c
/** * \file physio/meta_bus.h */ #ifndef _PHYSIO_META_BUS_H_ #define _PHYSIO_META_BUS_H_ #include <udi.h> #include <udi_physio.h> typedef const struct udi_bus_device_ops_s udi_bus_device_ops_t; typedef const struct udi_bus_bridge_ops_s udi_bus_bridge_ops_t; typedef struct udi_bus_bind_cb_s udi_bus_bind_cb_t; typede...
30.71
63
(translation_unit) "/**\n * \file physio/meta_bus.h\n */\n#ifndef _PHYSIO_META_BUS_H_\n#define _PHYSIO_META_BUS_H_\n\n#include <udi.h>\n#include <udi_physio.h>\n\ntypedef const struct udi_bus_device_ops_s udi_bus_device_ops_t;\ntypedef const struct udi_bus_bridge_ops_s udi_bus_bridge_ops_t;\ntypedef struct udi_bus_bind...
293
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 30.71, "nodes": 227, "errors": 0, "source_hash": "40b681b408f41a1f69e74e5d97103d46fadd0f19f5b3f63d08a0f13b5370142d", "categorized_nodes": 144}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,092
c
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include "aliasing-test.h" /*------------------------------ Experiment ----------------------------------*/ #define EXPERIMENT "pht3b-aliasing" /* ---------------------------------------------------------------------------*/ /* BPU. */ #define PRIME_T 0 #def...
32.3
142
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <stdint.h>\n\n#include "aliasing-test.h"\n\n/*------------------------------ Experiment ----------------------------------*/\n#define EXPERIMENT "pht3b-aliasing"\n/* ---------------------------------------------------------------------------*/\n\n/* ...
1,229
0
{"language": "c", "success": true, "metadata": {"lines": 142, "avg_line_length": 32.3, "nodes": 635, "errors": 0, "source_hash": "6e814df8a814d5c6077b143779c51d0d6f4843317f8b546c8adaebed248036b8", "categorized_nodes": 447}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,093
c
#ifndef TEXTURE_H #define TEXTURE_H #include <vector> #include <memory> #include <SDL.h> #include "graphics_dependencies.h" #include "renderable.h" #include "SDL_freeable_surface.h" #include "graphics/colors/color.h" #include "shapes/shapes.h" namespace projectfarm::graphics { class Texture final : public std::e...
28.36
95
(translation_unit) "#ifndef TEXTURE_H\n#define TEXTURE_H\n\n#include <vector>\n#include <memory>\n#include <SDL.h>\n\n#include "graphics_dependencies.h"\n#include "renderable.h"\n#include "SDL_freeable_surface.h"\n#include "graphics/colors/color.h"\n#include "shapes/shapes.h"\n\nnamespace projectfarm::graphics\n{\n ...
660
36
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 28.36, "nodes": 378, "errors": 0, "source_hash": "2f9d5008b82c76eea8bf3ebdafb18ba0ab62e4e63bc54e542f13d69eae178417", "categorized_nodes": 255}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef TEXTUR...
79,094
c
#include "sms_fm_apu.h" #include "blargg_source.h" void Fm_apu_create( struct Sms_Fm_Apu* this ) { Synth_init( &this->synth ); Ym2413_init( &this->apu ); } blargg_err_t Fm_apu_init( struct Sms_Fm_Apu* this, int clock_rate, int sample_rate ) { this->period_ = (blip_time_t) (clock_rate / sample_rate); CHECK_ALLOC...
22.89
75
(translation_unit) "#include "sms_fm_apu.h"\n\n#include "blargg_source.h"\n\nvoid Fm_apu_create( struct Sms_Fm_Apu* this )\n{ \n Synth_init( &this->synth );\n Ym2413_init( &this->apu );\n}\n\nblargg_err_t Fm_apu_init( struct Sms_Fm_Apu* this, int clock_rate, int sample_rate )\n{\n this->period_ = (blip_time_t) (clock_r...
618
0
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 22.89, "nodes": 390, "errors": 0, "source_hash": "da479c04a42ec3bcb56acb1eec53b27f0335cd1440a4c69113a4664e8c6d4111", "categorized_nodes": 302}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,095
c
#include <hls_stream.h> #include <ap_int.h> #include <assert.h> #include "common.h" void load_duplicate( const PACKED_VAL_T *packed_dense_vector, // in const unsigned num_cols, // in hls::stream<VEC_AXIS_T> duplicate[3], // out const unsigned l...
36.84
107
(translation_unit) "#include <hls_stream.h>\n#include <ap_int.h>\n#include <assert.h>\n\n#include "common.h"\n\nvoid load_duplicate(\n const PACKED_VAL_T *packed_dense_vector, // in\n const unsigned num_cols, // in\n hls::stream<VEC_AXIS_T> duplicate[3], ...
870
7
{"language": "c", "success": true, "metadata": {"lines": 107, "avg_line_length": 36.84, "nodes": 563, "errors": 0, "source_hash": "1e526d1d8d054ce56917f7c9e66a5cb5015fc284bcb412b485b952d350485852", "categorized_nodes": 390}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,096
c
#ifdef __cplusplus #include<complex> #define COMPLEX_T std::complex<double> extern "C"{ #else #include <stdint.h> #include <complex.h> #define COMPLEX_T double complex #endif void applyPauliX(COMPLEX_T*, int64_t, int64_t, bool); void applyCX(COMPLEX_T*, int64_t, int64_t, int64_t, bool); void applyHadamard(COMPLEX_T*...
27.82
17
(translation_unit) "#ifdef __cplusplus\n#include<complex>\n#define COMPLEX_T std::complex<double> \nextern "C"{\n#else\n#include <stdint.h>\n#include <complex.h>\n#define COMPLEX_T double complex\n#endif \n\nvoid applyPauliX(COMPLEX_T*, int64_t, int64_t, bool);\nvoid applyCX(COMPLEX_T*, int64_t, int64_t, int64_t, bool)...
133
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 27.82, "nodes": 99, "errors": 0, "source_hash": "3109f4b245f6bb7494eaf94d92fb827db0c7bfb2556ff0e847951e28bb328459", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef _...
79,097
c
#include<glib.h> #include<libxml/parser.h> #include<libxml/xpath.h> #ifndef _WAY_H #define _WAY_H typedef struct Way Way; //La structure way struct Way { const char *id; const char *visible; int version; const char *changeset; //ou long/int?! const char *timestamp; const char *user; int uid; GArray *...
19.89
19
(translation_unit) "#include<glib.h>\n#include<libxml/parser.h>\n#include<libxml/xpath.h>\n\n#ifndef _WAY_H\n#define _WAY_H\n\ntypedef struct Way Way;\n\n//La structure way\nstruct Way {\n const char *id;\n const char *visible;\n int version;\n const char *changeset; //ou long/int?!\n const char *timestamp;\n con...
90
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 19.89, "nodes": 63, "errors": 0, "source_hash": "7f269a137005dd47361fbd31bb4bd3cf6a7fa42dbf0755d6da94cfb4e110d5bb", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
79,098
c
// // AddressAddView.h // ETShop-for-iOS // // Created by EleTeam(<NAME>) on 15/10/23. // Copyright © 2015年 EleTeam. All rights reserved. // // @email <EMAIL> // // @license The MIT License (MIT) // #import <UIKit/UIKit.h> @protocol AddressAddViewDelegate <NSObject> - (void)doClickSaveBtnWithAreaId:(NSString *...
28.36
22
(translation_unit) "//\n// AddressAddView.h\n// ETShop-for-iOS\n//\n// Created by EleTeam(<NAME>) on 15/10/23.\n// Copyright © 2015年 EleTeam. All rights reserved.\n//\n// @email <EMAIL>\n//\n// @license The MIT License (MIT)\n//\n\n#import <UIKit/UIKit.h>\n\n@protocol AddressAddViewDelegate <NSObject>\n\n- (void)...
122
19
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 28.36, "nodes": 82, "errors": 0, "source_hash": "93d787c6bef19409003bd0514f43080556b677c2d4dc4c6581ac414336a987e3", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
79,099