language
stringclasses
1 value
code
stringlengths
6
12.3k
avg_line_length
float64
2.79
91
line_count
float64
1
367
lang_specific_parse
stringlengths
60
1.08M
ast_node_count
int64
2
6.81k
num_errors
int64
0
499
universal_schema
stringlengths
799
825k
__index_level_0__
int64
0
81.2k
c
#include "necla.h" #include <stdio.h> struct { FILE* fp; int status; } fs_t; int __llbmc_main(int a, int b) { int status = 0, as, bs, flag=0; if(a > 0) { status = 0; } else { status = 1; } if(status == 1) { ASSUME(b > 0); } else {...
13.05
39
(translation_unit) "#include "necla.h" \n#include <stdio.h> \n \nstruct { \n FILE* fp; \n int status; \n} fs_t; \n \n \nint __llbmc_main(int a, int b) { \n int status = 0, as, bs, flag=0; \n if(a > 0) { \n status = 0; \n } \n else { \n status = 1; \n } \n \n if(status == 1) { \n ...
205
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 13.05, "nodes": 122, "errors": 0, "source_hash": "553bb6b938e0944d7ad5889bc16b9f640a861f4c74f1603605354d8665c2d451", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
3,500
c
#pragma once #include <map> #include <vector> #include "pixelboost/graphics/renderer/common/irenderer.h" #include "pixelboost/graphics/renderer/common/renderable.h" namespace pb { class IndexBuffer; class Texture; class VertexBuffer; class BufferRenderable : public Renderable { public: ...
26.85
59
(translation_unit) "#pragma once\n\n#include <map>\n#include <vector>\n\n#include "pixelboost/graphics/renderer/common/irenderer.h"\n#include "pixelboost/graphics/renderer/common/renderable.h"\n\nnamespace pb\n{\n \n class IndexBuffer;\n class Texture;\n class VertexBuffer;\n\n class BufferRenderable : p...
357
14
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 26.85, "nodes": 218, "errors": 0, "source_hash": "26255df6f70d0eacb836bac3c9200e876da7454b9ecd3cd0bdaba8cda099e51d", "categorized_nodes": 150}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
3,501
c
/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "NR-RRC-Definitions" * found in "NR-RRC-Definitions.asn" * `asn1c -fcompound-names -no-gen-example -pdu=all` */ #ifndef _FreqSeparationClassUL_v1620_H_ #define _FreqSeparationClassUL_v1620_H_ #include "asn_application.h" /* Includi...
38.41
41
(translation_unit) "/*\n * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)\n * From ASN.1 module "NR-RRC-Definitions"\n * found in "NR-RRC-Definitions.asn"\n * `asn1c -fcompound-names -no-gen-example -pdu=all`\n */\n\n#ifndef _FreqSeparationClassUL_v1620_H_\n#define _FreqSeparationClassUL_v1620_H_\n\n\n#include ...
135
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 38.41, "nodes": 93, "errors": 0, "source_hash": "b9deb239c508dfa5900afb8387e802bd0f5a364e137a0141d80d757506bcc361", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef\...
3,502
c
/*! * @copyright 2004-2013 Apache License, Version 2.0 FULLSAIL * @filename zce_os_adapt_condi.h * @author Sailzeng <<EMAIL>> * @version * @date 2011年10月2日 * @brief 条件变量快平台的封装,在WINDOWS下是模拟的,而且只能在线程中使用, * 推荐在在WIN SVR 2008和VISTA以后使用这个封装,这时,系统会用操作系统Windows新增的同 * 步原语Cond,否则是用信号灯,临...
35.56
171
(translation_unit) "/*!\n* @copyright 2004-2013 Apache License, Version 2.0 FULLSAIL\n* @filename zce_os_adapt_condi.h\n* @author Sailzeng <<EMAIL>>\n* @version\n* @date 2011年10月2日\n* @brief 条件变量快平台的封装,在WINDOWS下是模拟的,而且只能在线程中使用,\n* 推荐在在WIN SVR 2008和VISTA以后使用这个封装,这时,系统会用操作系统Windows新增的同\n* ...
220
2
{"language": "c", "success": true, "metadata": {"lines": 171, "avg_line_length": 35.56, "nodes": 154, "errors": 0, "source_hash": "2ae41355a1dc5fb03dd85270a9861d41e93cadf368808e47742a13584e14cd68", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "", "pa...
3,503
c
// // UIImage+UIImageExtras.h // repWallet // // Created by <NAME> on 12/30/12. // Copyright (c) 2012 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface UIImage (UIImageExtras) - (UIImage *)imageByScalingProportionallyToSize:(CGSize)targetSize; @end
23.55
11
(translation_unit) "//\n// UIImage+UIImageExtras.h\n// repWallet\n//\n// Created by <NAME> on 12/30/12.\n// Copyright (c) 2012 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIImage (UIImageExtras)\n\n- (UIImage *)imageByScalingProportionallyToSize:(CGSize)targetSize;\n\n@end\n" (commen...
43
5
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 23.55, "nodes": 23, "errors": 0, "source_hash": "4eec9389370f4d498246ca5159b37d3081a6ae02e4f4cb3af4ee86e998c789c4", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
3,504
c
// Copyright (c) Edgeless Systems GmbH. // Licensed under the MIT License. #pragma once #include <sched.h> #include <sys/types.h> #include <csignal> #include <ctime> struct k_sigaction; namespace ert::sc { int clock_gettime(clockid_t clk_id, struct timespec* tp); void exit_group(int status); ssize_t readlink(const ...
32.65
17
(translation_unit) "// Copyright (c) Edgeless Systems GmbH.\n// Licensed under the MIT License.\n\n#pragma once\n\n#include <sched.h>\n#include <sys/types.h>\n#include <csignal>\n#include <ctime>\n\nstruct k_sigaction;\n\nnamespace ert::sc\n{\nint clock_gettime(clockid_t clk_id, struct timespec* tp);\nvoid exit_group(i...
155
1
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 32.65, "nodes": 113, "errors": 0, "source_hash": "f55211749bd7c216bee2f26a02b811b9b30499805529333b2371ac8715fa3de6", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
3,505
c
/* * ====================================================================== * Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. * Licensed under the MIT License. * See LICENSE.md in the project root for license information. * =====================================================================...
33.45
33
(translation_unit) "/*\n * ======================================================================\n * Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.\n * Licensed under the MIT License.\n * See LICENSE.md in the project root for license information.\n * ============================================...
146
6
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 33.45, "nodes": 93, "errors": 0, "source_hash": "421a157b88a6140068172a62f136442afb54f9334fc688f368c923ecc7f880ee", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,506
c
// Dummy file to satisfy the go runtime written in C. struct stack_t { void *ss_sp; int ss_flags; size_t ss_size; }; typedef struct stack_t stack_t; struct ucontext_t { struct ucontext_t *uc_link; stack_t uc_stack; }; typedef struct ucontext_t ucontext_t; int setcontext(const ucontext_t *); int getcont...
26.19
16
(translation_unit) "// Dummy file to satisfy the go runtime written in C.\n\nstruct stack_t {\n void *ss_sp;\n int ss_flags;\n size_t ss_size;\n};\n\ntypedef struct stack_t stack_t;\n\nstruct ucontext_t {\n struct ucontext_t *uc_link;\n stack_t uc_stack;\n};\n\ntypedef struct ucontext_t ucontext_t;\n\nint setconte...
124
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 26.19, "nodes": 85, "errors": 0, "source_hash": "86c4f828ac50bdf92f92f211442d80db612bef59073ca5b1c1e0f7262e78df7e", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "struct_specifier", "text": "struc...
3,507
c
/* * Software License Agreement (BSD License) * * Copyright (c) 2019, Wonik Robotics. * 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 r...
24.48
218
(translation_unit) "/*\n * Software License Agreement (BSD License)\n *\n * Copyright (c) 2019, Wonik Robotics.\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 *\n * * Redistr...
483
1
{"language": "c", "success": true, "metadata": {"lines": 218, "avg_line_length": 24.48, "nodes": 356, "errors": 0, "source_hash": "633ad5e82927396d5a8fab3171ccfb1425e1d834a14993cf50c7f78b6dd5676c", "categorized_nodes": 184}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
3,508
c
// // Player.h // TechMasterMainProgram // // Created by TaiND on 7/17/15. // Copyright (c) 2015 GiangNX. All rights reserved. // #import <Foundation/Foundation.h> @interface Player : NSObject @property(strong, nonatomic) NSString *pName; @property(nonatomic) int pNumber; @property(nonatomic) int pCaptain; @prope...
31
15
(translation_unit) "//\n// Player.h\n// TechMasterMainProgram\n//\n// Created by TaiND on 7/17/15.\n// Copyright (c) 2015 GiangNX. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface Player : NSObject\n@property(strong, nonatomic) NSString *pName;\n@property(nonatomic) int pNumber;\n@propert...
122
21
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 31.0, "nodes": 81, "errors": 0, "source_hash": "ae6792c29672499ab7a97cc047e0c3705d1d9e42922fe6e4774b350d38a50869", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
3,509
c
void btInit(int baudRate); int btIsPaired(); void btSendByte(unsigned char data); void btSendBytes(unsigned char* data, int length); unsigned char btReceiveByte(); void btDisconnect();
29.83
6
(translation_unit) "void btInit(int baudRate);\n\nint btIsPaired();\n\nvoid btSendByte(unsigned char data);\n\nvoid btSendBytes(unsigned char* data, int length);\n\nunsigned char btReceiveByte();\n\nvoid btDisconnect();" (declaration) "void btInit(int baudRate);" (primitive_type) "void" (function_declarator) ...
70
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 29.83, "nodes": 50, "errors": 0, "source_hash": "387d375527d5f64dae4f5c7df1cdf4307f9eca79774680777414e8eaf168db2e", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "void btInit...
3,510
c
/* * This file is a part of Pocket Heroes Game project * http://www.pocketheroes.net * https://code.google.com/p/pocketheroes/ * * Copyright 2004-2010 by <NAME> and <NAME> (iO UPG) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with ...
28.87
327
(translation_unit) "/* \n * This file is a part of Pocket Heroes Game project \n * http://www.pocketheroes.net \n * https://code.google.com/p/pocketheroes/ \n * \n * Copyright 2004-2010 by <NAME> and <NAME> (iO UPG) \n * \n * Licensed under the Apache License, Version 2.0 (the "License"); \n * you may not use this fil...
2,434
139
{"language": "c", "success": true, "metadata": {"lines": 327, "avg_line_length": 28.87, "nodes": 1383, "errors": 0, "source_hash": "f87a482faa03e0d83373f6e3ffeaad2c3b9b6e235dc3751639ec6488972ffb6a", "categorized_nodes": 979}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef _HMM...
3,511
c
/* * This file is part of acados. * * acados is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * acado...
36.76
85
(translation_unit) "/*\n * This file is part of acados.\n *\n * acados is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 3 of the License, or (at your option) any lat...
548
0
{"language": "c", "success": true, "metadata": {"lines": 85, "avg_line_length": 36.76, "nodes": 391, "errors": 0, "source_hash": "e4c7a8b3e8acb305e56070abb23472355f0c4e01a5873eed06b93c8d5c60ad30", "categorized_nodes": 199}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,512
c
int gbuf[259]; int pbuf[259]; int ttyb[3]; char name[10]; char passwd[10]; char space[1000]; int peek; int pwdflg; main(argc, argv) char *argv[]; { register id; register char *p, *q; if(argc < 2) { printf("usage: newgrp groupname\n"); done(); } if(fopen("/etc/group", gbuf) < 0) { printf("cannot open group ...
13.85
142
(translation_unit) "int gbuf[259];\nint pbuf[259];\nint ttyb[3];\nchar name[10];\nchar passwd[10];\nchar space[1000];\nint peek;\nint pwdflg;\n\nmain(argc, argv)\nchar *argv[];\n{\n register id;\n register char *p, *q;\n\n if(argc < 2) {\n printf("usage: newgrp groupname\n");\n done();\n }\n if(fopen("/etc/group", gb...
1,212
1
{"language": "c", "success": true, "metadata": {"lines": 142, "avg_line_length": 13.85, "nodes": 716, "errors": 0, "source_hash": "cfbebc9406abf36212287cba99f1f80ed5644df88d9b198f0668b10b355768e4", "categorized_nodes": 488}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "int\tgb...
3,513
c
// // UIWebView+LGOPack.h // LEGO-SDK-OC // // Created by 崔明辉 on 16/8/15. // Copyright © 2016年 UED Center. All rights reserved. // #import <UIKit/UIKit.h> @interface UIWebView (LGOPack) @end
18.5
10
(translation_unit) "//\n// UIWebView+LGOPack.h\n// LEGO-SDK-OC\n//\n// Created by 崔明辉 on 16/8/15.\n// Copyright © 2016年 UED Center. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIWebView (LGOPack)\n\n@end\n" (comment) "//" (comment) "// UIWebView+LGOPack.h" (comment) "// LEGO-SDK-OC" ...
23
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 18.5, "nodes": 13, "errors": 0, "source_hash": "d710c984ed3677a97a6b8154308a11088302a748f4bc04e482d5c6dc111a9408", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit/UIKit...
3,514
c
/* * (C) Copyright 1996- ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an interg...
35.39
41
(translation_unit) "/*\n * (C) Copyright 1996- ECMWF.\n *\n * This software is licensed under the terms of the Apache Licence Version 2.0\n * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.\n * In applying this licence, ECMWF does not waive the privileges and immunities\n * granted to it by virtue ...
243
18
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 35.39, "nodes": 148, "errors": 0, "source_hash": "db9660b6c5705f2790b7533845b4e85f8550289710dd74b815dcbbee74db2afb", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,515
c
// // CDBAppDelegate.h // CDBiCloudReadyDocumentsContainer // // Created by estbyright on 12/24/2015. // Copyright (c) 2015 estbyright. All rights reserved. // #if __has_feature(objc_modules) @import UIKit; #else #import <UIKit/UIKit.h> #endif @interface CDBAppDelegate : UIResponder <UIApplicationDelegate> @prop...
23.33
15
(translation_unit) "//\n// CDBAppDelegate.h\n// CDBiCloudReadyDocumentsContainer\n//\n// Created by estbyright on 12/24/2015.\n// Copyright (c) 2015 estbyright. All rights reserved.\n//\n\n#if __has_feature(objc_modules)\n@import UIKit;\n#else\n#import <UIKit/UIKit.h>\n#endif\n\n@interface CDBAppDelegate : UIRespon...
57
8
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 23.33, "nodes": 39, "errors": 0, "source_hash": "781365ce3d0e45984a9bfae8ef10e931c0e88d92d92a9a1f295c949cfee137fc", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if __has_f...
3,516
c
#ifndef PLANET_H #define PLANET_H // windows.h must be included before GL headers #ifdef _MSC_VER #include <windows.h> #endif #include <GL/gl.h> #include <SDL_ttf.h> #include <vector> class Planet { protected: GLfloat radius, semimajor_axis, semiminor_axis; GLfloat siderial_year, siderial_day; GLfloat o...
33.82
44
(translation_unit) "#ifndef PLANET_H\n#define PLANET_H\n\n// windows.h must be included before GL headers\n#ifdef _MSC_VER\n#include <windows.h>\n#endif\n#include <GL/gl.h>\n#include <SDL_ttf.h>\n\n#include <vector>\n\nclass Planet {\nprotected:\n GLfloat radius, semimajor_axis, semiminor_axis;\n GLfloat siderial...
333
25
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 33.82, "nodes": 217, "errors": 0, "source_hash": "c170efcac20124fde02084080ac9c676ca63424e862ca9d0bf7cc72b22ff495c", "categorized_nodes": 157}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,517
c
// Microsoft being picky on standard C #define _CRT_SECURE_NO_WARNINGS // For UTF-8 strings across WINAPI functions (does it apply to standard libraries too?) #define UNICODE #include <windows.h> #ifdef DEBUG #include "debug.h" #endif #include <ScrnSave.h> #include <CommCtrl.h> #include "graphics.h" #include "dyna...
33.53
175
(translation_unit) "// Microsoft being picky on standard C\n#define _CRT_SECURE_NO_WARNINGS\n\n// For UTF-8 strings across WINAPI functions (does it apply to standard libraries too?)\n#define UNICODE\n\n#include <windows.h>\n\n#ifdef DEBUG\n#include "debug.h"\n#endif\n\n#include <ScrnSave.h>\n#include <CommCtrl.h>\n\n#...
966
3
{"language": "c", "success": true, "metadata": {"lines": 175, "avg_line_length": 33.53, "nodes": 562, "errors": 0, "source_hash": "6999b0e48276f0d00006d3fcc8ed42943888cd0fd048a0cbe025c4447ad25530", "categorized_nodes": 425}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
3,518
c
#ifndef UNION_FIND_H #define UNION_FIND_H #include <iostream> class DisjointSet{ private: int *_parent, *_rank, *_arr; public: DisjointSet(int size){ _parent = new int[size]; _arr = new int[size]; _rank = new int[size]; _currIndex = 0; } void push(int value){ ...
21.48
50
(translation_unit) "#ifndef UNION_FIND_H\n#define UNION_FIND_H\n\n#include <iostream>\n\nclass DisjointSet{\n\nprivate:\n int *_parent, *_rank, *_arr;\npublic:\n\n DisjointSet(int size){\n _parent = new int[size];\n _arr = new int[size];\n _rank = new int[size];\n _currIndex = 0;\n ...
312
7
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 21.48, "nodes": 177, "errors": 0, "source_hash": "f4eb2b3e0ce23aef9487fc32dcfa401b195fa3d1d8e2f6097e47bc2bfd0a7576", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,519
c
/* * $Id: expander.c,v 1.2 2005/02/22 23:16:10 baum Exp $ * * This file implements the expander widget * * Copyright (c) 2001 - 2005 <NAME> http://www.dr-baum.net * * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * */ /* H...
24.65
225
(translation_unit) "/*\n * $Id: expander.c,v 1.2 2005/02/22 23:16:10 baum Exp $\n *\n * This file implements the expander widget\n *\n * Copyright (c) 2001 - 2005 <NAME> http://www.dr-baum.net\n *\n * See the file "license.terms" for information on usage and redistribution\n * of this file, and for a DISCLAIMER OF ALL...
1,476
0
{"language": "c", "success": true, "metadata": {"lines": 225, "avg_line_length": 24.65, "nodes": 790, "errors": 0, "source_hash": "d2b29da767783cba8027ca2f6765d4ddaa4c7029b8fa6ce3a8181c555f2d2aac", "categorized_nodes": 538}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,520
c
#include <math.h> #include <float.h> #include <stdio.h> #include "../../run_params/struct_run_params.h" #include "regularized-coulomb_ss_correction.h" void K_RegularizedCoulomb_SS_Correction(double *potential, double *target_q, int numTargets, struct RunParams *run_params) { ...
35.07
14
(translation_unit) "#include <math.h>\n#include <float.h>\n#include <stdio.h>\n\n#include "../../run_params/struct_run_params.h"\n#include "regularized-coulomb_ss_correction.h"\n\n\nvoid K_RegularizedCoulomb_SS_Correction(double *potential, double *target_q,\n int numTargets, stru...
124
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 35.07, "nodes": 91, "errors": 0, "source_hash": "025a99dabd8f6e60a80adcedb2466e59c7c978bc8ecfe5516926e6a3f12ee03d", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
3,521
c
#define DUMP #ifdef DUMP #include<m5op.h> #endif #include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> #define DIMY 1024 #define NUM_TH 16 float input_mat[NUM_TH][DIMY/NUM_TH]; float output_mat[NUM_TH][DIMY/NUM_TH]; int levels = 3; //This function is used to get the SV from the corresponding file...
23.62
139
(translation_unit) "#define DUMP\n#ifdef DUMP\n#include<m5op.h>\n#endif\n\n#include<stdio.h>\n#include<stdlib.h>\n#include<math.h>\n#include<string.h>\n\n#define DIMY 1024\n#define NUM_TH 16\n\nfloat input_mat[NUM_TH][DIMY/NUM_TH];\nfloat output_mat[NUM_TH][DIMY/NUM_TH];\nint levels = 3;\n\n//This function is used to g...
1,017
0
{"language": "c", "success": true, "metadata": {"lines": 139, "avg_line_length": 23.62, "nodes": 640, "errors": 0, "source_hash": "03beb7c61639e8db3218c36792d0be463a63634b96ace6d548ad5259f4b02429", "categorized_nodes": 447}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
3,522
c
#ifndef _LM35_H_ #define _LM35_H_ #pragma once #include <Arduino.h> #define _XSTR(x) #x #define _STR(x) _XSTR(x) // with analogReference(INTERNAL) (on Uno/Nano) // V [mV] = R * (1100 / 1024) [mV/steps] // T [degC] = V / 10 [mV/degC] // T = R * ((1100 / 1024) / 10) = R * LM35_CONVERSION_CONSTANT // #defi...
20.84
51
(translation_unit) "#ifndef _LM35_H_ \n#define _LM35_H_ \n#pragma once \n \n#include <Arduino.h> \n \n#define _XSTR(x) #x \n#define _STR(x) _XSTR(x) \n \n// with analogReference(INTERNAL) (on Uno/Nano) \n// V [mV] = R * (1100 / 1024) [mV/steps] \n// T [degC] = V / 10 [mV/degC] \n// T = R * ((1100 / 1024) / 10) = R * LM...
143
1
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 20.84, "nodes": 101, "errors": 0, "source_hash": "9110ce6dfeae569a452f9f2121cdd6f2814674d64d3ef95daefdac5d59973e1e", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
3,523
c
// // Created by Ciaran on 5/17/2020. // #ifndef LIBOMEXMETA_WORLD_H #define LIBOMEXMETA_WORLD_H #include "librdf.h" #include <iostream> #include <memory> #include <regex> //#include "LibrdfStorage.h" //#include "RaptorWorld.h" //#include "LibrdfModel.h" //#include "LibrdfNode.h" //#include "LibrdfUri.h" //#include...
24.94
51
(translation_unit) "//\n// Created by Ciaran on 5/17/2020.\n//\n\n#ifndef LIBOMEXMETA_WORLD_H\n#define LIBOMEXMETA_WORLD_H\n\n#include "librdf.h"\n\n#include <iostream>\n#include <memory>\n#include <regex>\n\n//#include "LibrdfStorage.h"\n//#include "RaptorWorld.h"\n//#include "LibrdfModel.h"\n//#include "LibrdfNode.h"...
135
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 24.94, "nodes": 72, "errors": 0, "source_hash": "8cdabd9bd265fefd905fdff2ff7c40ef4d6e89fba95076612bf2da68457ddd23", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,524
c
/* * Copyright (C) 2018 ETH Zurich and University of Bologna * * 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...
34.62
32
(translation_unit) "/*\n * Copyright (C) 2018 ETH Zurich and University of Bologna\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...
96
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 34.62, "nodes": 51, "errors": 0, "source_hash": "81633cd77ac961196a366dd455aae19fb727a2e490bd1cea745917f600870d0f", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
3,525
c
// // # -*- coding: utf-8, tab-width: 3 -*- // mc_lgamma.h // // Copyright (C) 2019-2021 Moe123. All rights reserved. // #include <macadam/details/math/mc_gammaln.h> #ifndef MC_LGAMMA_H #define MC_LGAMMA_H #pragma mark - mc_lgamma - MC_TARGET_FUNC float mc_lgammaf(const float x) { //!# Computes log(|gamma(x)|). # ...
23
78
(translation_unit) "//\n// # -*- coding: utf-8, tab-width: 3 -*-\n\n// mc_lgamma.h\n//\n// Copyright (C) 2019-2021 Moe123. All rights reserved.\n//\n\n#include <macadam/details/math/mc_gammaln.h>\n\n#ifndef MC_LGAMMA_H\n#define MC_LGAMMA_H\n\n#pragma mark - mc_lgamma -\n\nMC_TARGET_FUNC float mc_lgammaf(const float x)\...
408
6
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 23.0, "nodes": 270, "errors": 0, "source_hash": "6c7fa4f9e11830a1c4f5c84cc5cd476ad544dfc4c90146a0129d8640686c5022", "categorized_nodes": 184}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
3,526
c
// // KVNRotationViewController.h // KVNProgress // // Created by <NAME> on 18/08/16. // Copyright © 2016 Pinch. All rights reserved. // #import <UIKit/UIKit.h> /** This class is only used to handle rotation automatically with a custom UIWindow http://stackoverflow.com/a/27091111/2571566 */ @interface KVNRotat...
24.71
14
(translation_unit) "//\n// KVNRotationViewController.h\n// KVNProgress\n//\n// Created by <NAME> on 18/08/16.\n// Copyright © 2016 Pinch. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n/**\n This class is only used to handle rotation automatically with a custom UIWindow\n http://stackoverflow.com/a/27091111...
20
3
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 24.71, "nodes": 9, "errors": 0, "source_hash": "2ce067f951616c466c33c30170cdce5966bd4783755533e998f32f6a61516bcf", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UIK...
3,527
c
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef _OE_SHA_H #define _OE_SHA_H #include <openenclave/bits/defs.h> #include <openenclave/bits/result.h> #include <openenclave/bits/types.h> OE_EXTERNC_BEGIN #define OE_SHA256_SIZE 32 /* Opaque representation of a SH...
27.45
60
(translation_unit) "// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT License.\n\n#ifndef _OE_SHA_H\n#define _OE_SHA_H\n\n#include <openenclave/bits/defs.h>\n#include <openenclave/bits/result.h>\n#include <openenclave/bits/types.h>\n\nOE_EXTERNC_BEGIN\n\n#define OE_SHA256_SIZE 32\n...
128
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 27.45, "nodes": 89, "errors": 0, "source_hash": "0f235ab27d972d2607459aa5556c103dea578ef821a5e61a6c915ed0b4a25655", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,528
c
// // GHViewRootDirectoryViewController.h // iGithub // // Created by <NAME> on 18.04.11. // Copyright 2011 Home. All rights reserved. // #import <UIKit/UIKit.h> #import "GHViewDirectoryViewController.h" @interface GHViewRootDirectoryViewController : GHViewDirectoryViewController { @private } - (id)initWith...
26
15
(translation_unit) "//\n// GHViewRootDirectoryViewController.h\n// iGithub\n//\n// Created by <NAME> on 18.04.11.\n// Copyright 2011 Home. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "GHViewDirectoryViewController.h"\n\n@interface GHViewRootDirectoryViewController : GHViewDirectoryViewController {\...
69
13
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 26.0, "nodes": 40, "errors": 0, "source_hash": "38cc92fe76fb9b3686ee43e83ab59aed261fc72146de3e1dfdb7aff576dd563e", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <U...
3,529
c
// // Copyright (c) 2010 <EMAIL> // // Desigion making // 1. According to exodus design, file variable stores file name, but cannot store pointer to // opened file. // 2. Every osbread/osbwrite operation reopens a file -> low speed // 3. We could save opened file pointer into table and keep index of table in file var...
31.46
50
(translation_unit) "//\n// Copyright (c) 2010 <EMAIL>\n//\n// Desigion making\n// 1. According to exodus design, file variable stores file name, but cannot store pointer to\n// opened file.\n// 2. Every osbread/osbwrite operation reopens a file -> low speed\n// 3. We could save opened file pointer into table and keep...
221
8
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 31.46, "nodes": 131, "errors": 0, "source_hash": "c2de44e5ef2f7000b01f3c6df9401b0946feed5bb3254be1a8775c13eda5f6f1", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
3,530
c
#if !defined(AFX_UIEDIT_H__20060218_14AE_7A41_09A2_0080AD509054__INCLUDED_) #define AFX_UIEDIT_H__20060218_14AE_7A41_09A2_0080AD509054__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 ///////////////////////////////////////////////////////////////////////////////////// // class CSing...
21.52
82
(translation_unit) "#if !defined(AFX_UIEDIT_H__20060218_14AE_7A41_09A2_0080AD509054__INCLUDED_) \n#define AFX_UIEDIT_H__20060218_14AE_7A41_09A2_0080AD509054__INCLUDED_ \n \n#if _MSC_VER > 1000 \n#pragma once \n#endif // _MSC_VER > 1000 \n \n \n////////////////////////////////////////////////////////////////////////////...
413
19
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 21.52, "nodes": 259, "errors": 0, "source_hash": "a6203669ca6638cd44a79743ed2806fd3816c53bffa0af49ceb7f0e8dd42b6ab", "categorized_nodes": 174}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#if !defined(A...
3,531
c
// // SSXChannelModel.h // NetEasyNews // // Created by Dragon on 2017/3/10. // Copyright © 2017年 BasicTest. All rights reserved. // #import <Foundation/Foundation.h> @interface SSXChannelModel : NSObject //频道id @property(nonatomic,copy) NSString *tid; //频道名称 @property(nonatomic,copy) NSString *tname; //获取频道数组...
22.06
16
(translation_unit) "//\n// SSXChannelModel.h\n// NetEasyNews\n//\n// Created by Dragon on 2017/3/10.\n// Copyright © 2017年 BasicTest. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface SSXChannelModel : NSObject\n\n//频道id\n@property(nonatomic,copy) NSString *tid;\n\n//频道名称\n@property(nonato...
71
10
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 22.06, "nodes": 45, "errors": 0, "source_hash": "908f4e035e0715da390294192da82aab3669a514f6a89db8f43a3d720402c09e", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
3,532
c
// // UIView+LPCTools.h // LPCTools // // Created by 李沛池 on 2018/12/7. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface UIView (LPCTools) /** * Shortcut for frame.origin.x. * * Sets frame.origin.x = left */ @property(nonatomic) CGFloat left; /** * Shortcut for frame.origin.x + frame.size.width...
17.34
91
(translation_unit) "//\n// UIView+LPCTools.h\n// LPCTools\n//\n// Created by 李沛池 on 2018/12/7.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface UIView (LPCTools)\n\n/**\n * Shortcut for frame.origin.x.\n *\n * Sets frame.origin.x = left\n */\n@property(nonatomic) CGFloat left;\n\n/**\n * Short...
219
45
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 17.34, "nodes": 150, "errors": 0, "source_hash": "f718a5417079a3a954d5665b23096691f60d6a8a556cb89c84c0ca96a52fa652", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "t <UIKit...
3,533
c
// // HKSelfMeidaVodeoTableViewCell.h // HongKZH_IOS // // Created by wanghui on 2018/9/19. // Copyright © 2018年 hkzh. All rights reserved. // #import "BaseTableViewCell.h" #import "SelfMediaRespone.h" #import "GetMediaAdvAdvByIdRespone.h" @protocol HKSelfMeidaVodeoTableViewCellDelegate <NSObject> @optional -(voi...
36.52
23
(translation_unit) "//\n// HKSelfMeidaVodeoTableViewCell.h\n// HongKZH_IOS\n//\n// Created by wanghui on 2018/9/19.\n// Copyright © 2018年 hkzh. All rights reserved.\n//\n\n#import "BaseTableViewCell.h"\n#import "SelfMediaRespone.h"\n#import "GetMediaAdvAdvByIdRespone.h"\n@protocol HKSelfMeidaVodeoTableViewCellDeleg...
195
24
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 36.52, "nodes": 135, "errors": 0, "source_hash": "8d082cbb4a22c26359760dded32ab8b7cf17df5aeb123ad499487ecbba41efc3", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"B...
3,534
c
/* DD-based simulator by JKU Linz, Austria Developer: <NAME>, <NAME> With code from the QMDD implementation provided by Michael Miller (University of Victoria, Canada) and <NAME> (University of Bremen, Germany). For more information, please visit http://iic.jku.at/eda/research/quantum_simulation If you have any que...
26.02
160
(translation_unit) "/*\nDD-based simulator by JKU Linz, Austria\n\nDeveloper: <NAME>, <NAME>\n\nWith code from the QMDD implementation provided by Michael Miller (University of Victoria, Canada)\nand <NAME> (University of Bremen, Germany).\n\nFor more information, please visit http://iic.jku.at/eda/research/quantum_sim...
1,426
67
{"language": "c", "success": true, "metadata": {"lines": 160, "avg_line_length": 26.02, "nodes": 866, "errors": 0, "source_hash": "6b735bd775fa4425e83b794e12e76c96a10e4b8889c495b66fd819d0b118c5bc", "categorized_nodes": 572}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
3,535
c
// // QBIntroductoryPagesView.h // QBBaseTabBarExample // // Created by wangqibin on 2019/9/7. // Copyright © 2019年 wangqibin. All rights reserved. // #import <UIKit/UIKit.h> #define kScreenWidth [UIScreen mainScreen].bounds.size.width #define kScreenHeight [UIScreen mainScreen].bounds.size.height NS_ASSUME_NO...
31.47
15
(translation_unit) "//\n// QBIntroductoryPagesView.h\n// QBBaseTabBarExample\n//\n// Created by wangqibin on 2019/9/7.\n// Copyright © 2019年 wangqibin. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n#define kScreenWidth [UIScreen mainScreen].bounds.size.width\n#define kScreenHeight [UIScreen mainScreen].b...
69
8
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 31.47, "nodes": 47, "errors": 0, "source_hash": "b60769696375debaf4ad7b54c2e8ac61ca02f404b6ad51d3e2e3d47f194ab363", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
3,536
c
/* * Copyright 2007, Haiku, Inc. All rights reserved. * Distributed under the terms of the MIT License. * * Authors: * <NAME> <<EMAIL>> */ #ifndef PROFILE_MESSAGE_SUPPORT_H #define PROFILE_MESSAGE_SUPPORT_H #include <String.h> const char* string_for_message_code(uint32 code); #endif // PROFILE_MESSAGE_SUPP...
20.53
15
(translation_unit) "/*\n * Copyright 2007, Haiku, Inc. All rights reserved.\n * Distributed under the terms of the MIT License.\n *\n * Authors:\n * <NAME> <<EMAIL>>\n */\n#ifndef PROFILE_MESSAGE_SUPPORT_H\n#define PROFILE_MESSAGE_SUPPORT_H\n\n\n#include <String.h>\n\n\nconst char* string_for_message_code(uint32 code)...
28
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 20.53, "nodes": 20, "errors": 0, "source_hash": "940fc59478cbcbdc2fd98fc9d60902f0e9dc67e24b4f6106a2eb1b1ea6014476", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,537
c
#ifndef PROOF_H #define PROOF_H #include <gmp.h> class Proof { public: Proof(); private: mpz_t l; mpz_t pi; }; #endif
9.73
11
(translation_unit) "#ifndef PROOF_H\n#define PROOF_H\n\n#include <gmp.h>\n\nclass Proof {\npublic:\nProof();\nprivate:\nmpz_t l;\nmpz_t pi;\n};\n#endif\n" (preproc_ifdef) "#ifndef PROOF_H\n#define PROOF_H\n\n#include <gmp.h>\n\nclass Proof {\npublic:\nProof();\nprivate:\nmpz_t l;\nmpz_t pi;\n};\n#endif" (#ifndef)...
40
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 9.73, "nodes": 23, "errors": 0, "source_hash": "e980e2ad2dbb9b5dbedd7fe421d6be02eea61c76e061b192e0c5cecda08a9317", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef P...
3,538
c
#import <UIKit/UIKit.h> #import "NTLNCell.h" @interface NTLNLinkTweetCell : NTLNCell { NSString *text; NSString *footer; CGFloat textHeight; } - (void)createCellWithText:(NSString*)text footer:(NSString*)footer textHeight:(CGFloat)textHeight; @end @interface NTLNLinkNameCell : NTLNCell { NSString *name; NSStri...
26.73
15
(translation_unit) "#import <UIKit/UIKit.h>\n#import "NTLNCell.h"\n\n@interface NTLNLinkTweetCell : NTLNCell {\n NSString *text;\n NSString *footer;\n CGFloat textHeight;\n}\n\n- (void)createCellWithText:(NSString*)text footer:(NSString*)footer textHeight:(CGFloat)textHeight;\n\n@end\n\n@interface NTLNLinkNameCell : NT...
129
19
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 26.73, "nodes": 89, "errors": 0, "source_hash": "564f6ed5e43d9ca2faf3170df7d6f5f92c00caa820e60261f71af0119310319a", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
3,539
c
#ifndef ALIITSV11GEOMCABLE_H #define ALIITSV11GEOMCABLE_H /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ class TGeoVolume; class TGeoNode; #include <TObjArray.h> //*********************************************...
43.33
67
(translation_unit) "#ifndef ALIITSV11GEOMCABLE_H\n#define ALIITSV11GEOMCABLE_H\n\n/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *\n * See cxx source for full Copyright notice */\n\n\nclass TGeoVolume;\nclass TGeoNode;\n\n#include <TObjArray.h>\n\n//*************...
743
26
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 43.33, "nodes": 487, "errors": 0, "source_hash": "06eae2a65c0856cdefa92b6c582701069e7a46f103ae11b195e65fe8ecd02d0f", "categorized_nodes": 326}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef ALIITS...
3,540
c
// // CORM.h // CORM // // Created by <NAME> on 11/24/13. // Copyright (c) 2013 Firelizzard Inventions. All rights reserved. // #import "CORMDefaults.h" #import "CORMKey.h" #import "CORMEntity.h" #import "CORMFactory.h" #import "CORMStore.h"
19.5
12
(translation_unit) "//\n// CORM.h\n// CORM\n//\n// Created by <NAME> on 11/24/13.\n// Copyright (c) 2013 Firelizzard Inventions. All rights reserved.\n//\n\n#import "CORMDefaults.h"\n#import "CORMKey.h"\n#import "CORMEntity.h"\n#import "CORMFactory.h"\n#import "CORMStore.h"\n" (comment) "//" (comment) "// CORM...
23
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 19.5, "nodes": 15, "errors": 0, "source_hash": "ad55632bc91f4aefe1f2a680ae66b9d6121747b7bfbcef53dce0631da746aeac", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"C...
3,541
c
#ifndef cvodewrap_h #define cvodewrap_h #include <cvodes/cvodes.h> /*#include <cvodes/cvodes_lapack.h>*/ #include <cvodes/cvodes_band.h> #include <cvodes/cvodes_bbdpre.h> #include <cvodes/cvodes_dense.h> #include <cvodes/cvodes_diag.h> #include <cvodes/cvodes_spbcgs.h> #include <cvodes/cvodes_spgmr.h> #include <cvodes...
34.42
226
(translation_unit) "#ifndef cvodewrap_h\n#define cvodewrap_h\n\n#include <cvodes/cvodes.h>\n/*#include <cvodes/cvodes_lapack.h>*/\n#include <cvodes/cvodes_band.h>\n#include <cvodes/cvodes_bbdpre.h>\n#include <cvodes/cvodes_dense.h>\n#include <cvodes/cvodes_diag.h>\n#include <cvodes/cvodes_spbcgs.h>\n#include <cvodes/cv...
2,616
1
{"language": "c", "success": true, "metadata": {"lines": 226, "avg_line_length": 34.42, "nodes": 1538, "errors": 0, "source_hash": "c91b11db0915dfb7b6b06d8a4c7662e5cfa8746ef47af27db6ab48bf0312ce61", "categorized_nodes": 1023}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#if...
3,542
c
/*=================================================================== BlueBerry Platform Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS...
36.33
24
(translation_unit) "/*===================================================================\n\nBlueBerry Platform\n\nCopyright (c) German Cancer Research Center,\nDivision of Medical and Biological Informatics.\nAll rights reserved.\n\nThis software is distributed WITHOUT ANY WARRANTY; without\neven the implied warranty ...
96
1
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 36.33, "nodes": 63, "errors": 0, "source_hash": "dff3e79a33b11e8d4dbdae544ec61decce13517e9aa9d402c6f8e62422721e16", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,543
c
#pragma once #include "Globals.h" #include <string> class Panel { public: Panel(const char* name); virtual ~Panel(); void Activate(); bool IsActive(); virtual void Draw(); public: bool active = true; int width, height, pos_x, pos_y; std::string name; };
14.47
17
(translation_unit) "#pragma once\n#include "Globals.h"\n#include <string>\nclass Panel\n{\npublic:\n Panel(const char* name);\n virtual ~Panel();\n\n void Activate();\n bool IsActive();\n virtual void Draw();\npublic:\n bool active = true;\n int width, height, pos_x, pos_y;\n std::string name;\n\n\n};" (preproc_call)...
102
4
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 14.47, "nodes": 62, "errors": 0, "source_hash": "8352e4c64a5c8d67e18449103b523e18ef54737c7e5cd394abe3abaf6b60e336", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
3,544
c
int main() { int a = 2, b = 3; a /= b; assert(a == 0, "a must be 0"); return 0; }
11.43
7
(translation_unit) "int main() \n{\n int a = 2, b = 3;\n a /= b;\n\n assert(a == 0, "a must be 0");\n\n return 0;\n}" (function_definition) "int main() \n{\n int a = 2, b = 3;\n a /= b;\n\n assert(a == 0, "a must be 0");\n\n return 0;\n}" (primitive_type) "int" (function_declarator) "main()" (identifier...
49
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 11.43, "nodes": 29, "errors": 0, "source_hash": "b189d7bb8befd2b56fd56c8980c1fb75b30abbaf32384bf9282cd2d78e93e239", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "int...
3,545
c
#pragma once #include "platform.h" #include "JniWorker.h" #include "util/asyncWorker.h" #include <jni.h> #include <android/asset_manager.h> #include <atomic> #include <mutex> #include <string> #include <unordered_map> #include <vector> namespace Tangram { struct LabelPickResult; struct FeaturePickResult; struct Mar...
38.71
41
(translation_unit) "#pragma once\n\n#include "platform.h"\n#include "JniWorker.h"\n#include "util/asyncWorker.h"\n\n#include <jni.h>\n#include <android/asset_manager.h>\n#include <atomic>\n#include <mutex>\n#include <string>\n#include <unordered_map>\n#include <vector>\n\nnamespace Tangram {\n\nstruct LabelPickResult;\...
412
19
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 38.71, "nodes": 256, "errors": 0, "source_hash": "3fa9c5afd3a5010f2070a18264bd04057a4778c9d5de0b6246dfc9a44cce03b2", "categorized_nodes": 189}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
3,546
c
// // KitchenDelegate.h // PizzaRestaurant // // Created by shunnamiki on 2021/07/13. // Copyright © 2021 Lighthouse Labs. All rights reserved. // #ifndef KitchenDelegate_h #define KitchenDelegate_h #endif /* KitchenDelegate_h */
22.4
10
(translation_unit) "//\n// KitchenDelegate.h\n// PizzaRestaurant\n//\n// Created by shunnamiki on 2021/07/13.\n// Copyright © 2021 Lighthouse Labs. All rights reserved.\n//\n\n#ifndef KitchenDelegate_h\n\n#define KitchenDelegate_h\n\n#endif /* KitchenDelegate_h */\n" (comment) "//" (comment) "// KitchenDelegat...
16
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 22.4, "nodes": 7, "errors": 0, "source_hash": "83f84e5b6bc9fbf8057806a63955e25a6cc1d0783d3404a709e6d8f8fd171d22", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef Kitc...
3,547
c
/** * \file pretty_print.c * \brief Pretty printing. * \author <NAME> * \date 2015 * \copyright MIT License * \since version `1.0.0` * * This file defines the contents of the \ref pretty_printing_group module * and its child modules \ref pretty_printing_colours and * \ref pretty_printing_indent. * * Interna...
35.04
189
(translation_unit) "/**\n * \file pretty_print.c\n * \brief Pretty printing.\n * \author <NAME>\n * \date 2015\n * \copyright MIT License\n * \since version `1.0.0`\n *\n * This file defines the contents of the \ref pretty_printing_group module\n * and its child modules \ref pretty_printing_colours and\n * \ref pretty_...
617
0
{"language": "c", "success": true, "metadata": {"lines": 189, "avg_line_length": 35.04, "nodes": 367, "errors": 0, "source_hash": "0acf556ab6bc42c1fe9a4803908bed66a8a192760bd43518ec079e1281e0372b", "categorized_nodes": 227}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,548
c
// Copyright (C) 2016 <NAME> // This file is part of the Ouzel engine. #pragma once #include <string> #include <vector> #include <cstdint> #include <limits> #include <functional> #include <random> #include "core/CompileConfig.h" #if OUZEL_PLATFORM_ANDROID #include <sstream> #include <cpu-features.h> #endif #define ...
37.11
273
(translation_unit) "// Copyright (C) 2016 <NAME>\n// This file is part of the Ouzel engine.\n\n#pragma once\n\n#include <string>\n#include <vector>\n#include <cstdint>\n#include <limits>\n#include <functional>\n#include <random>\n\n#include "core/CompileConfig.h"\n#if OUZEL_PLATFORM_ANDROID\n#include <sstream>\n#includ...
3,546
9
{"language": "c", "success": true, "metadata": {"lines": 273, "avg_line_length": 37.11, "nodes": 2426, "errors": 0, "source_hash": "fd9a96782ea9df13837023e763edc3325dc5b33f5e26e73a201c3c264de9fe4f", "categorized_nodes": 1769}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pra...
3,549
c
/** * @file PointModel.h * ポイントモデル */ #ifndef _POINTMODEL_H_ #define _POINTMODEL_H_ #include <string> #include "RenderObject.h" class BufferPointData; /** * ポイントモデル */ class PointModel : public RenderObject { private: class Impl; Impl* m_imp; public: PointModel(); ~PointModel(); bool SetSha...
19.64
28
(translation_unit) "/**\n * @file PointModel.h\n * ポイントモデル\n */\n#ifndef _POINTMODEL_H_\n#define _POINTMODEL_H_\n\n#include <string>\n#include "RenderObject.h"\n\n\nclass BufferPointData;\n\n/**\n * ポイントモデル\n */\nclass PointModel : public RenderObject\n{\nprivate:\n class Impl;\n Impl* m_imp;\npublic:\n PointM...
162
8
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 19.64, "nodes": 102, "errors": 0, "source_hash": "3aa86ae6c4f0a8dbaeccff7cbebb48cc6500d0b4384057f521ded7a84c3600fe", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "MODEL_H...
3,550
c
/*------------------------------------------------------------------ * ull_sub_state.h * Header of ull_sub_state.cc * Definition of the class UllSubState * * Author: <NAME> * $Id: ull_sub_state.h,v 1.1 2003/03/19 20:58:52 wc2so1 Exp $ *-----------------------------------------------------------------*/ ...
30.55
78
(translation_unit) "/*------------------------------------------------------------------ \n * ull_sub_state.h \n * Header of ull_sub_state.cc \n * Definition of the class UllSubState \n * \n * Author: <NAME> \n * $Id: ull_sub_state.h,v 1.1 2003/03/19 20:58:52 wc2so1 Exp $ \n *-------------------------------------------...
386
4
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 30.55, "nodes": 242, "errors": 0, "source_hash": "823b02658a6be8221c5339c36dc88a19d9d6336cddfb71b3eb8886c9acc7c737", "categorized_nodes": 162}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,551
c
/* * 0BSD * * BSD Zero Clause License * * Copyright (c) 2020 <NAME> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WAR...
30.97
32
(translation_unit) "/*\n * 0BSD \n * \n * BSD Zero Clause License\n * \n * Copyright (c) 2020 <NAME>\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted.\n\n * THE SOFTWARE IS PROVIDED "AS IS" AN...
67
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 30.97, "nodes": 48, "errors": 0, "source_hash": "e2bbd6255d4587905ea6d2f9faf74d3d1e24c32d354582b1789627f7f1a377d2", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
3,552
c
#include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <sys/stat.h> #include <sys/wait.h> int main(void) { int i = 0; int rc; int *fd = malloc(sizeof(int) * 4); // 4 = 2*n - 2 (n = 3 in this case) int *free_fd = fd; char *args[3]; do { switch(i) { // test cases case 0: ...
20.04
81
(translation_unit) "#include <stdlib.h> \n#include <stdio.h> \n#include <unistd.h> \n#include <sys/stat.h> \n#include <sys/wait.h> \n \nint main(void) { \n \n int i = 0; \n int rc; \n int *fd = malloc(sizeof(int) * 4); // 4 = 2*n - 2 (n = 3 in this case) \n int *free_fd = fd; \n \n char *args[3]; \n \n do { \n switch(...
638
0
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 20.04, "nodes": 341, "errors": 0, "source_hash": "d2dac088f382bfc2b0e98076bc9e1e10f0d60da32aacf756f12219fb4be78cf0", "categorized_nodes": 244}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,553
c
#ifndef LIBCRAFT_COLLECTIONS_LINKEDLIST_H #define LIBCRAFT_COLLECTIONS_LINKEDLIST_H struct linkedlist; typedef struct linkedlist linkedlist_t; linkedlist_t *linkedlist_create(void (*element_free)(void *data)); void linkedlist_destroy(linkedlist_t *list); int linkedlist_count(linkedlist_t *list); int linkedlist_app...
44.6
15
(translation_unit) "#ifndef LIBCRAFT_COLLECTIONS_LINKEDLIST_H\n#define LIBCRAFT_COLLECTIONS_LINKEDLIST_H\n\nstruct linkedlist;\ntypedef struct linkedlist linkedlist_t;\n\nlinkedlist_t *linkedlist_create(void (*element_free)(void *data));\n\nvoid linkedlist_destroy(linkedlist_t *list);\n\nint linkedlist_count(linkedlist...
196
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 44.6, "nodes": 152, "errors": 0, "source_hash": "d7aa552cd102a5d146f1d565b7a5055a5d5d8883afac0839a23f674ed0b41b14", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,554
c
#include "types.h" #include "defs.h" #include "net.h" #include "i82540em.h" static struct net *p_inet; struct net *get_inet(void) { return p_inet; } void register_inet(struct net *inet) { cprintf("inet: registered: %x:%x:%x:%x:%x:%x\n", inet->addr[0], inet->addr[1], inet->addr[2], ...
16.49
39
(translation_unit) "#include "types.h"\n#include "defs.h"\n#include "net.h"\n#include "i82540em.h"\n\n\nstatic struct net *p_inet;\n\n\nstruct net *get_inet(void)\n{\n return p_inet;\n}\n\n\nvoid register_inet(struct net *inet)\n{\n cprintf("inet: registered: %x:%x:%x:%x:%x:%x\n",\n inet->addr[0],\n ...
209
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 16.49, "nodes": 121, "errors": 0, "source_hash": "f75dfee139cbb31f2d99260c8dc25c0b77053819f8ba0c6eaa38e37fd0624f8f", "categorized_nodes": 96}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
3,555
c
/******************************************************************************\ * Technische Universitaet Darmstadt, Institut fuer Nachrichtentechnik * Copyright (c) 2001 * * Author(s): * <NAME> * * Description: * * ****************************************************************************** * * This pro...
38.85
60
(translation_unit) "/******************************************************************************\\n * Technische Universitaet Darmstadt, Institut fuer Nachrichtentechnik\n * Copyright (c) 2001\n *\n * Author(s):\n * <NAME>\n *\n * Description:\n *\n *\n ***************************************************************...
218
5
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 38.85, "nodes": 139, "errors": 0, "source_hash": "115368fe7022acdae90ba28e130cb2c14c9358b13f3ec75355659f50644e529f", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defin...
3,556
c
#ifndef ACTIONS_H #define ACTIONS_H //! //! @brief The different actions a player can take. //! enum class Action { STAY, MOVE_UP, MOVE_DOWN, MOVE_LEFT, MOVE_RIGHT, DROP_BOMB, ACTION_END_MARKER, }; #endif
12.69
16
(translation_unit) "#ifndef ACTIONS_H\n#define ACTIONS_H\n\n//!\n//! @brief The different actions a player can take.\n//!\nenum class Action\n{\n STAY,\n MOVE_UP,\n MOVE_DOWN,\n MOVE_LEFT,\n MOVE_RIGHT,\n DROP_BOMB,\n ACTION_END_MARKER,\n};\n\n#endif" (ERROR) "#ifndef ACTIONS_H\n#define ACTIONS_H\n\n//!\n//! @...
40
2
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 12.69, "nodes": 24, "errors": 0, "source_hash": "bfc1dabbf7329e70727e9c27b59dfa6a804c002ba610eafd964ae84292eb9b9f", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef ACTIONS_...
3,557
c
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "Nodes/DlgNode.h" #include "DlgTextArgument.h" #include "LiftUp.generated.h" /** * */ UCLASS() class DLGSYSTEM_API ULiftUp: public UDlgNode { GENERATED_BODY() public: ULiftUp() { Owner...
23.36
45
(translation_unit) "// Fill out your copyright notice in the Description page of Project Settings.\n\n#pragma once\n\n#include "CoreMinimal.h"\n#include "Nodes/DlgNode.h"\n#include "DlgTextArgument.h"\n#include "LiftUp.generated.h"\n\n/**\n * \n */\n\nUCLASS()\nclass DLGSYSTEM_API ULiftUp: public UDlgNode\n{\n GENERATE...
270
4
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 23.36, "nodes": 150, "errors": 0, "source_hash": "8cd8ff8033288b7be9da41ebce3e8648e08bf4a0253a247d633f4c8423498f69", "categorized_nodes": 107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
3,558
c
/* ** EPITECH PROJECT, 2019 ** data_sender.hpp ** File description: ** data_sender class */ #include <fcntl.h> #include "ftp.h" void exec_ls(char *full_buff, connexion_t *con, size_t idx) { int fd = 0; char *argv[4]; char *path; char *real_path = NULL; cut_command(&full_buff, 5); full_buff[0]...
27.62
104
(translation_unit) "/*\n** EPITECH PROJECT, 2019\n** data_sender.hpp\n** File description:\n** data_sender class\n*/\n\n#include <fcntl.h>\n#include "ftp.h"\n\nvoid exec_ls(char *full_buff, connexion_t *con, size_t idx)\n{\n int fd = 0;\n char *argv[4];\n char *path;\n char *real_path = NULL;\n\n cut_com...
1,196
0
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 27.62, "nodes": 753, "errors": 0, "source_hash": "cb639e3ac214888ca755fbaf9b79d71e7294cf07d7d450cae11babb479177907", "categorized_nodes": 489}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,559
c
/** * @file utils.c * @author imxtx * @brief Some helpers * @version 0.1 * @date 2021-11-10 * * @copyright Copyright (c) 2021 * */ #include "utils.h" #include <stdio.h> #include <stdlib.h> /** * @brief 输出数组 * * @param arr 数组 * @param len 长度 */ void print_arr(int arr[], int len) { int i; for (i =...
16.82
100
(translation_unit) "/**\n * @file utils.c\n * @author imxtx\n * @brief Some helpers\n * @version 0.1\n * @date 2021-11-10\n *\n * @copyright Copyright (c) 2021\n *\n */\n#include "utils.h"\n\n#include <stdio.h>\n#include <stdlib.h>\n\n/**\n * @brief 输出数组\n *\n * @param arr 数组\n * @param len 长度\n */\nvoid print_arr(int ...
538
0
{"language": "c", "success": true, "metadata": {"lines": 100, "avg_line_length": 16.82, "nodes": 304, "errors": 0, "source_hash": "a27461a80fc81dd5b93b9e3de6f27e778a88515871207dfd257c5313c8e0a5d9", "categorized_nodes": 193}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,560
c
// // ShortcutGuide.h // ShortcutGuide // // Created by Rachel on 2021/3/27. // Copyright © 2021 JST. All rights reserved. // #import <Foundation/Foundation.h> //! Project version number for ShortcutGuide. FOUNDATION_EXPORT double ShortcutGuideVersionNumber; //! Project version string for ShortcutGuide. FOUNDATI...
38.69
13
(translation_unit) "//\n// ShortcutGuide.h\n// ShortcutGuide\n//\n// Created by Rachel on 2021/3/27.\n// Copyright © 2021 JST. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n//! Project version number for ShortcutGuide.\nFOUNDATION_EXPORT double ShortcutGuideVersionNumber;\n\n//! Project version s...
33
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 38.69, "nodes": 15, "errors": 0, "source_hash": "f5bed20054f6c1db5b25f4fb91cf2125adb72c7d5619edf686fec63f55838bd1", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
3,561
c
// // Copyright (c) 2017-2020 the rbfx project. // // 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, mer...
34.59
103
(translation_unit) "//\n// Copyright (c) 2017-2020 the rbfx project.\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//...
486
18
{"language": "c", "success": true, "metadata": {"lines": 103, "avg_line_length": 34.59, "nodes": 272, "errors": 0, "source_hash": "0e9a85d7d8136707bd62b5ea9838d5c701877f183d2a884a1a5f9d0cc2f795c8", "categorized_nodes": 187}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
3,562
c
#ifndef _POINTS_H_IS_INCLUDED_ #define _POINTS_H_IS_INCLUDED_ #include <stdio.h> #include "../list/list.h" // A two-dimensional point typedef struct Point { long double x; long double y; } Point; // Creates a new point and returns a pointer to it struct Point *createPoint(long double x, long double y); // ...
30.88
16
(translation_unit) "#ifndef _POINTS_H_IS_INCLUDED_\n#define _POINTS_H_IS_INCLUDED_\n\n#include <stdio.h>\n\n#include "../list/list.h"\n\n// A two-dimensional point\ntypedef struct Point {\n long double x;\n long double y;\n} Point;\n\n// Creates a new point and returns a pointer to it\nstruct Point *createPoint(l...
98
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 30.88, "nodes": 73, "errors": 0, "source_hash": "06815f7189bd0e26ad3bec0b39aa4c3b974e381c64cc7856e72db0cfc0d2246d", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,563
c
////////////////////////////////////////////////////////////////////// // // ModifierManager.h - Manages modifiers // // Author: <NAME> // Date of Birth: November 30, 2002 // Tabs: 4 // Comments: // // License Information: Please see the attached LICENSE.TXT file // /////////////////////////////////////////////...
23.4
30
(translation_unit) "//////////////////////////////////////////////////////////////////////\n//\n// ModifierManager.h - Manages modifiers\n//\n// Author: <NAME>\n// Date of Birth: November 30, 2002\n// Tabs: 4\n// Comments: \n//\n// License Information: Please see the attached LICENSE.TXT file\n//\n//////////////...
84
4
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 23.4, "nodes": 38, "errors": 0, "source_hash": "fe389513c0e45bf22d119ef69b6f8753d1faf306a2bb4a541f475e14c58a612d", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef MODIFIER_...
3,564
c
/* * ***** BEGIN GPL LICENSE BLOCK ***** * * 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 d...
35.4
189
(translation_unit) "/*\n * ***** BEGIN GPL LICENSE BLOCK *****\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * as published by the Free Software Foundation; either version 2\n * of the License, or (at your option) any later versio...
1,505
0
{"language": "c", "success": true, "metadata": {"lines": 189, "avg_line_length": 35.4, "nodes": 924, "errors": 0, "source_hash": "ddffaebd44fa3f971d693b45777331fa69551b613edf3bfeb7279b7568a0713c", "categorized_nodes": 656}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,565
c
/* Generated by RuntimeBrowser Image: /System/Library/Frameworks/AudioToolbox.framework/AudioToolbox */ @interface InterAppAudioGroup : NSObject + (id)sharedInstance; - (id)getApps:(float)arg1; @end
28
7
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/Frameworks/AudioToolbox.framework/AudioToolbox\n */\n\n@interface InterAppAudioGroup : NSObject\n\n+ (id)sharedInstance;\n\n- (id)getApps:(float)arg1;\n\n@end\n" (comment) "/* Generated by RuntimeBrowser\n Image: /System/Library/Framework...
37
5
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 28.0, "nodes": 22, "errors": 0, "source_hash": "e2b1b6b7e169be65e9c62c92f0200d778f351b3fceddeca5d4cba06dd4127d22", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface InterAp...
3,566
c
// Portions Copyright (c) YugaByte, 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 by applicable law or agreed t...
37.4
40
(translation_unit) "// Portions Copyright (c) YugaByte, Inc.\n//\n// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except\n// in compliance with the License. You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by...
150
6
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 37.4, "nodes": 71, "errors": 0, "source_hash": "cf04b05625caa59c6de21d243fd3593c544ea84617ecd423687599b9b8d489ae", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef YB_UTIL_U...
3,567
c
/******************************************************************************* Main Source File Company: Microchip Technology Inc. File Name: main.c Summary: This file contains the "main" function for a project. Description: This file contains the "main" function for a project. The ...
35
254
(translation_unit) "/*******************************************************************************\n Main Source File\n\n Company:\n Microchip Technology Inc.\n\n File Name:\n main.c\n\n Summary:\n This file contains the "main" function for a project.\n\n Description:\n This file contains the "main" ...
1,324
2
{"language": "c", "success": true, "metadata": {"lines": 254, "avg_line_length": 35.0, "nodes": 780, "errors": 0, "source_hash": "728f621bf2b475c0e9759af6bf0e2a30a4ab16ff573b23a6135e70ebb0879f60", "categorized_nodes": 488}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,568
c
#pragma once #include "Common.h" #include "SafeQueue.h" #include "Packet.h" #include "Connection.h" namespace Tiny { /* Examples of Packet IDTypes - Should be Defined and use with the follow templated classes: - ClientTemplate - ServerTemplate enum class MessageTypes : uint32_t { ServerAccept, ...
32.49
196
(translation_unit) "#pragma once\n\n#include "Common.h"\n#include "SafeQueue.h"\n#include "Packet.h"\n#include "Connection.h"\n\nnamespace Tiny {\n /* Examples of Packet IDTypes\n - Should be Defined and use with the follow templated classes:\n - ClientTemplate\n - ServerTemplate\n\n enum class MessageTypes : ui...
1,291
63
{"language": "c", "success": true, "metadata": {"lines": 196, "avg_line_length": 32.49, "nodes": 690, "errors": 0, "source_hash": "ee427c1695d5c10ec02629484ee375c3ce9a446e4ed793ee514f79ff3b77157d", "categorized_nodes": 456}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
3,569
c
#pragma once #include <stddef.h> #if defined(__cplusplus) extern "C" { #endif size_t llvm_demangle_intbuf_len(const char* sym); //if !intbuf or intbuflen < llvm_demangle_intbuf_len(sym), intbuf will be allocated on heap //if !buf or *n < demangled length, function will return 0, and *n will contain prope...
39.79
14
(translation_unit) "#pragma once\n\n#include <stddef.h>\n\n#if defined(__cplusplus)\nextern "C" {\n#endif\n size_t llvm_demangle_intbuf_len(const char* sym);\n\n //if !intbuf or intbuflen < llvm_demangle_intbuf_len(sym), intbuf will be allocated on heap\n //if !buf or *n < demangled length, function will retur...
116
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 39.79, "nodes": 82, "errors": 0, "source_hash": "681ab20a2c675112d24ad11b66e95c446e694fbba829e24d43c9b6be8939aeea", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
3,570
c
#pragma once // for use by hazel applications #include "../Application.h" #include "../Log.h" // entrypoint #include "../entrypoint.h"
21.5
6
(translation_unit) "#pragma once\n\n// for use by hazel applications\n\n#include "../Application.h"\n#include "../Log.h"\n\n// entrypoint\n\n#include "../entrypoint.h"\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (comment) "// for use by hazel applications" (prepro...
24
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 21.5, "nodes": 12, "errors": 0, "source_hash": "6708920ce76c5b45d1bfb935c9b60c47f2acfd9571e680a7ab18da4145292076", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
3,571
c
/* * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
41.88
65
(translation_unit) "/*\n * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.\n *\n * Use of this source code is governed by a BSD-style license\n * that can be found in the LICENSE file in the root of the source\n * tree. An additional intellectual property rights grant can be found\n * in the fi...
325
15
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 41.88, "nodes": 185, "errors": 0, "source_hash": "679f007f2fb3c8bf16104f69f4283859e7dde103d7af3dbfc5e4c579982d21c8", "categorized_nodes": 118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,572
c
/******************************************************************************* * Copyright (c) 2012, 2020 IBM Corp. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v2.0 * and Eclipse Distribution License v1.0 which accompany ...
31.4
164
(translation_unit) "/*******************************************************************************\n * Copyright (c) 2012, 2020 IBM Corp.\n *\n * All rights reserved. This program and the accompanying materials\n * are made available under the terms of the Eclipse Public License v2.0\n * and Eclipse Distribution Lice...
1,183
0
{"language": "c", "success": true, "metadata": {"lines": 164, "avg_line_length": 31.4, "nodes": 730, "errors": 0, "source_hash": "08695cb92996e0d6b50886b0b78c504caec271f128095aa1f04ba49e68377bf9", "categorized_nodes": 497}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,573
c
#ifndef __TiXMLPrerequisites_H__ #define __TiXMLPrerequisites_H__ #include "ogUtilityDefine.h" #ifdef _MSC_VER #pragma warning( push ) #pragma warning( disable : 4103 ) #pragma warning( disable : 4251 ) #pragma warning( disable : 4530 ) #pragma warning( disable : 4616 ) #pragma warning( disable : 4786 ) #endif clas...
23.6
25
(translation_unit) "#ifndef __TiXMLPrerequisites_H__\n#define __TiXMLPrerequisites_H__\n\n#include "ogUtilityDefine.h"\n\n#ifdef _MSC_VER\n#pragma warning( push )\n#pragma warning( disable : 4103 )\n#pragma warning( disable : 4251 )\n#pragma warning( disable : 4530 )\n#pragma warning( disable : 4616 )\n#pragma warning(...
98
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 23.6, "nodes": 69, "errors": 0, "source_hash": "a20a047ec3f363255b086187317bcf57385783ef30d15d3f794a5e6eef57e130", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
3,574
c
/* $Id: s.h,v 1.6 2005/01/05 09:46:25 dvd Exp $ */ #ifndef S_H #define S_H 1 /* compares two strings, s1 is null terminated, s2 is n characters long */ extern int s_cmpn(char *s1,char *s2,int n2); /* compares two tokens, s1 is null terminated, s2 is n characters long */ extern int s_tokcmpn(char *s1,char *s2,int n2)...
39.96
23
(translation_unit) "/* $Id: s.h,v 1.6 2005/01/05 09:46:25 dvd Exp $ */\n\n#ifndef S_H\n#define S_H 1\n\n/* compares two strings, s1 is null terminated, s2 is n characters long */\nextern int s_cmpn(char *s1,char *s2,int n2);\n\n/* compares two tokens, s1 is null terminated, s2 is n characters long */\nextern int s_tokc...
193
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 39.96, "nodes": 147, "errors": 0, "source_hash": "f04daaad38f174e45be0702f87b20d613279506464732021e1f2df1f551c39dc", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
3,575
c
// // AEHttpInfo.h // ACAAEdu // // Created by 张竟巍 on 2018/2/6. // Copyright © 2018年 ACAA. All rights reserved. // #import <Foundation/Foundation.h> // MARK: -----切换环境key----- #define ChangeServerEnv @"ChangeServerEnv" typedef NS_ENUM(NSUInteger, HttpRequestType) { HttpRequestTypeGET = 0, HttpRequestType...
35.67
30
(translation_unit) "//\n// AEHttpInfo.h\n// ACAAEdu\n//\n// Created by 张竟巍 on 2018/2/6.\n// Copyright © 2018年 ACAA. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n// MARK: -----切换环境key-----\n#define ChangeServerEnv @"ChangeServerEnv"\n\ntypedef NS_ENUM(NSUInteger, HttpRequestType) {\n HttpReque...
248
34
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 35.67, "nodes": 160, "errors": 0, "source_hash": "7b476ad15a4481810bf06ee309461de41bfdbefd8ee4161c726e9ba3fb3c0b1e", "categorized_nodes": 96}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Foundati...
3,576
c
#ifndef CONSOLELOGER_H #define CONSOLELOGER_H /* * Файл consoleloger.h */ #include "loger.h" /* * Класс ConsoleLoger расширяет класс Loger для вывода * сообщений на консоль */ class ConsoleLoger : public Loger { public: // конструктор класса ConsoleLoger ConsoleLoger(Loger::level lvl); // виртуальный д...
24.33
27
(translation_unit) "#ifndef CONSOLELOGER_H\n#define CONSOLELOGER_H\n/*\n * Файл consoleloger.h\n */\n#include "loger.h"\n/*\n * Класс ConsoleLoger расширяет класс Loger для вывода\n * сообщений на консоль\n */\nclass ConsoleLoger : public Loger\n{\npublic:\n // конструктор класса ConsoleLoger\n ConsoleLoger(Loger...
89
6
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 24.33, "nodes": 52, "errors": 0, "source_hash": "4101c84d1632ca1d9b06b41ad6d2a7350a3fe8c7be8eed09a22fc64f157b4b3b", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,577
c
#pragma once #include <Render/DepthStencilBuffer.h> // D3D9 implementation of a depth-stencil buffer. // Reading as a texture is currently unsupported though it can be added through INTZ. struct IDirect3DSurface9; namespace Render { class CD3D9DepthStencilBuffer: public CDepthStencilBuffer { FACTORY_CLASS_DECL; p...
44
32
(translation_unit) "#pragma once\n#include <Render/DepthStencilBuffer.h>\n\n// D3D9 implementation of a depth-stencil buffer.\n// Reading as a texture is currently unsupported though it can be added through INTZ.\n\nstruct IDirect3DSurface9;\n\nnamespace Render\n{\n\nclass CD3D9DepthStencilBuffer: public CDepthStencilB...
211
9
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 44.0, "nodes": 127, "errors": 0, "source_hash": "a904d04bec96a145b2e79ffa2903fb3fe27f74ebd2b0d38a2ed92263c5ca3126", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
3,578
c
/*========================================================================= Library: CTK Copyright (c) Kitware 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.ap...
36.72
105
(translation_unit) "/*=========================================================================\n\n Library: CTK\n\n Copyright (c) Kitware Inc.\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 Lic...
789
22
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 36.72, "nodes": 518, "errors": 0, "source_hash": "abde1ddf9321d1ac3568b3cef15c217ef67e3109d01bb43ad9e6e028aaa93307", "categorized_nodes": 325}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
3,579
c
/******************************************************************************* * test_cpu_freq.c * * <NAME> 2016 * This cycles the CPU through each available frequency and leaves the frequency * set to the default "ondemand" governor. *******************************************************************************/ #...
25.11
53
(translation_unit) "/*******************************************************************************\n* test_cpu_freq.c\n*\n* <NAME> 2016\n* This cycles the CPU through each available frequency and leaves the frequency\n* set to the default "ondemand" governor.\n*********************************************************...
288
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 25.11, "nodes": 132, "errors": 0, "source_hash": "2498f1113aaccb425aecddc7c7153f7c85f0866b22682e815c70138025261abd", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
3,580
c
#pragma once #include <stdio.h> #include <stdlib.h> #include <typedefs.h> unsigned char * load_bin(string fp); void write_bin(string fn, unsigned char * buffer, uint32 buffer_size);
29.33
6
(translation_unit) "#pragma once\n#include <stdio.h>\n#include <stdlib.h>\n#include <typedefs.h>\n\nunsigned char * load_bin(string fp);\n\nvoid write_bin(string fn, unsigned char * buffer, uint32 buffer_size);" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_incl...
51
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 29.33, "nodes": 42, "errors": 0, "source_hash": "e1f01767c0043e9919aca9844bd67ec4736d2fd045574fd4e657d997fa9f7610", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
3,581
c
#ifndef widget_h #define widget_h #include <string> using namespace std; class widget { public: virtual double getPrice() const = 0; virtual string getName() const = 0; protected: double _price; string _name; }; #endif
13.06
16
(translation_unit) "#ifndef widget_h\n#define widget_h\n\n#include <string>\n\nusing namespace std;\n\nclass widget\n{\npublic:\n\n virtual double getPrice() const = 0;\n virtual string getName() const = 0;\n\n\nprotected:\n double _price;\n string _name;\n};\n\n\n#endif" (preproc_ifdef) "#ifndef widget_h\n#define wi...
68
4
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 13.06, "nodes": 44, "errors": 0, "source_hash": "24f9a1d3430faa396b438edbda2fe114958e7cf858600b4a54a80323a8bf974a", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,582
c
// Copyright (c) 2019 EPI-ONE Core Developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef EPIC_VERSION_MESSAGE_H #define EPIC_VERSION_MESSAGE_H #include "net_address.h" #include "net_message.h" #include "serialize.h...
37.49
49
(translation_unit) "// Copyright (c) 2019 EPI-ONE Core Developers\n// Distributed under the MIT software license, see the accompanying\n// file COPYING or http://www.opensource.org/licenses/mit-license.php.\n\n#ifndef EPIC_VERSION_MESSAGE_H\n#define EPIC_VERSION_MESSAGE_H\n\n#include "net_address.h"\n#include "net_mess...
383
16
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 37.49, "nodes": 233, "errors": 0, "source_hash": "6af1659888fa018403b295e9ea39e8778b050967ce6ac6660fc1c543a9010c17", "categorized_nodes": 169}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,583
c
/// @file system/threading/timeout.h #ifndef _aspose_system_threading_timeout_h_ #define _aspose_system_threading_timeout_h_ #include <system/timespan.h> namespace System { namespace Threading { /// Threading timeout special values. /// This is a static type with no instance services. /// You should never create ins...
39.31
16
(translation_unit) "/// @file system/threading/timeout.h\n#ifndef _aspose_system_threading_timeout_h_\n#define _aspose_system_threading_timeout_h_\n\n#include <system/timespan.h>\n\nnamespace System { namespace Threading {\n\n/// Threading timeout special values.\n/// This is a static type with no instance services.\n/...
60
2
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 39.31, "nodes": 31, "errors": 0, "source_hash": "91669bd9868536435abdaa3307ec5f62c68c52b3bae8fb60f79dc85bd908cbf0", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,584
c
#ifndef MYDLL_H #define MYDLL_H #if defined(WIN32) #ifdef mydll_EXPORTS #define MYDLL_API __declspec(dllexport) #else #define MYDLL_API __declspec(dllimport) #endif #else #define MYDLL_API #endif #ifdef _MSC_VER //#pragma warning( disable : 4910) // '__declspec(dllexport)' and 'extern' are // incompatible on an exp...
23.55
20
(translation_unit) "#ifndef MYDLL_H\n#define MYDLL_H\n\n#if defined(WIN32)\n#ifdef mydll_EXPORTS\n#define MYDLL_API __declspec(dllexport)\n#else\n#define MYDLL_API __declspec(dllimport)\n#endif\n#else\n#define MYDLL_API\n#endif\n\n#ifdef _MSC_VER\n//#pragma warning( disable : 4910) // '__declspec(dllexport)' and 'exter...
52
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 23.55, "nodes": 46, "errors": 0, "source_hash": "848a04074330927bb025e605dc91642204b8628b32b97434b2a9dba547070483", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,585
c
#include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <dirent.h> #include <time.h> #include <string.h> #include "utility.h" void do_list(char*); void dostat(char*); void show_file_info(char*, struct stat*); void mod_to_letters(int , char*); char* uid_to_name(uid_t); char* gid_to_name(gid_t); int main...
20.93
90
(translation_unit) "#include <stdio.h>\n#include <sys/types.h>\n#include <sys/stat.h>\n#include <dirent.h>\n#include <time.h>\n#include <string.h>\n#include "utility.h"\nvoid do_list(char*);\nvoid dostat(char*);\nvoid show_file_info(char*, struct stat*);\nvoid mod_to_letters(int , char*);\nchar* uid_to_name(uid_t);\nch...
858
0
{"language": "c", "success": true, "metadata": {"lines": 90, "avg_line_length": 20.93, "nodes": 522, "errors": 0, "source_hash": "39d31552ee77e65134908f30c06a61309a9a1589c218ba7fbc138c9806c19343", "categorized_nodes": 355}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,586
c
/* * Copyright (C) 2018 <NAME> <<EMAIL>> */ #ifndef CORETB_H #define CORETB_H #include "Valgolsoc.h" #include "testbench.h" class CORETB: public Testbench<Valgolsoc> { public: CORETB(); int SimulateCore(const std::string &progfile, const unsigned long max_time, const std::string &signature, bool us...
30.78
27
(translation_unit) "/*\n * Copyright (C) 2018 <NAME> <<EMAIL>>\n */\n\n#ifndef CORETB_H\n#define CORETB_H\n\n#include "Valgolsoc.h"\n#include "testbench.h"\n\nclass CORETB: public Testbench<Valgolsoc> {\npublic:\n CORETB();\n int SimulateCore(const std::string &progfile, const unsigned long max_time, cons...
202
7
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 30.78, "nodes": 119, "errors": 0, "source_hash": "a783711fcd4a7527bab70072b1e45be5b87cce3fa42fcc57c2bb845ed21dc80a", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
3,587
c
/* * Copyright (C) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
37.44
50
(translation_unit) "/*\n * Copyright (C) 2021 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless ...
276
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 37.44, "nodes": 200, "errors": 0, "source_hash": "6fd3c3d248c0be8a72eae0dc3f4448887e6b29c9e9231f78612ce2395b9d6626", "categorized_nodes": 140}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,588
c
// // RCTMGLLightManager.h // RCTMGL // // Created by <NAME> on 9/26/17. // Copyright © 2017 Mapbox Inc. All rights reserved. // #import "ViewManager.h" @interface RCTMGLLightManager : ViewManager @end
19.6
10
(translation_unit) "//\n// RCTMGLLightManager.h\n// RCTMGL\n//\n// Created by <NAME> on 9/26/17.\n// Copyright © 2017 Mapbox Inc. All rights reserved.\n//\n\n#import "ViewManager.h"\n\n@interface RCTMGLLightManager : ViewManager\n\n@end\n" (comment) "//" (comment) "// RCTMGLLightManager.h" (comment) "// RCT...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.6, "nodes": 9, "errors": 0, "source_hash": "a400082330b441d13d4f8b602ea64fc069faa7c3cb75c17f4e8fa551e3174897", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"Vie...
3,589
c
/* MIT License Copyright (c) 2021 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distrib...
34.15
71
(translation_unit) "/*\nMIT License\n\nCopyright (c) 2021 <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 without restriction, including without limitation the rights\nto use, copy, mod...
344
0
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 34.15, "nodes": 193, "errors": 0, "source_hash": "415199d3526ae0bb51fbe9a59468d82fbb9eea4003381e045b6b4a3571d21626", "categorized_nodes": 140}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
3,590
c
/* 二叉查找树变成双向链表 */ typedef struct BSTreeNode{ int m_nValue; struct BSTreeNode *m_pLeft, *m_pRight; }BSTree; void convertDoubleLinks(BSTree *root){ } int main(int argc, char const *argv[]) { return 0; }
12
16
(translation_unit) "/*\n二叉查找树变成双向链表\n*/\n\ntypedef struct BSTreeNode{\n int m_nValue;\n struct BSTreeNode *m_pLeft, *m_pRight;\n}BSTree;\n\nvoid convertDoubleLinks(BSTree *root){\n\n\n}\n\n\nint main(int argc, char const *argv[])\n{\n \n return 0;\n}\n\n\n\n\n" (comment) "/*\n二叉查找树变成双向链表\n*/\n\ntypedef struct BSTre" ...
71
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 12.0, "nodes": 42, "errors": 0, "source_hash": "834d5481a315095857a708b478788d787d5b7cb33b2067c1d9e7d95dc81df0ca", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "ode{\n\...
3,591
c
//---------------------------------------------------------------------------- // // Project : Call To Power 2 // File type : C++ header // Description : Matrix of diplomatic agreements // Id : $Id$ // //---------------------------------------------------------------------------- // // Disclaimer // ...
31.81
129
(translation_unit) "//----------------------------------------------------------------------------\n//\n// Project : Call To Power 2\n// File type : C++ header\n// Description : Matrix of diplomatic agreements\n// Id : $Id$\n//\n//----------------------------------------------------------------------...
584
28
{"language": "c", "success": true, "metadata": {"lines": 129, "avg_line_length": 31.81, "nodes": 291, "errors": 0, "source_hash": "2fdea699cc965d0d691c10aa1e8282c9432c5cd681014ba8ff5d8f94120741ff", "categorized_nodes": 225}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifde...
3,592
c
bool have_TSX();
16
1
(translation_unit) "bool have_TSX();\n\n\n" (declaration) "bool have_TSX();" (primitive_type) "bool" (function_declarator) "have_TSX()" (identifier) "have_TSX" (parameter_list) "()" (() "(" ()) ")" (;) ";"
9
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 16.0, "nodes": 5, "errors": 0, "source_hash": "9002958f2f4a1c659f4b03f2cd3535b19358ab3dea891c832eafaaf25ca59055", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "bool have_TSX(...
3,593
c
/* * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. * See https://llvm.org/LICENSE.txt for license information. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception * */ /* clang-format off */ /* idate3f.c - Implements LIB3F idate subroutine. */ #include "ent3f.h" #include ...
24.16
25
(translation_unit) "/*\n * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.\n * See https://llvm.org/LICENSE.txt for license information.\n * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception\n *\n */\n\n/* clang-format off */\n\n/* idate3f.c - Implements LIB3F idate subroutine. */\n...
143
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 24.16, "nodes": 94, "errors": 0, "source_hash": "cb80707e1d21922adf24ee6965c2b24028312d3f4f82d032d4a6b664b8ba1b56", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
3,594
c
// Geometric Tools LLC, Redmond WA 98052 // Copyright (c) 1998-2015 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // File Version: 1.0.0 (2014/08/11) #pragma once #include <gte/GteTexture.h>...
29.6
30
(translation_unit) "// Geometric Tools LLC, Redmond WA 98052 \n// Copyright (c) 1998-2015 \n// Distributed under the Boost Software License, Version 1.0. \n// http://www.boost.org/LICENSE_1_0.txt \n// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt \n// File Version: 1.0.0 (2014/08/11) \n \n#pragma once \n ...
101
8
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 29.6, "nodes": 59, "errors": 0, "source_hash": "3d2dab05f3a1712646e3c5924164add5edee13aff9a94a594e217dc56973bd09", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
3,595
c
/*************** * PROGRAM: Modeler * NAME: light.h * DESCRIPTION: light class definition * AUTHORS: <NAME> * HISTORY: * DATE NAME COMMENT * 27.04.96 ah initial release * 20.11.96 ah added flag LIGHT_TRANSTRACK * 18.12.96 ah added GetSize() * 20.02.97 ah ...
30.27
89
(translation_unit) "/***************\n * PROGRAM: Modeler\n * NAME: light.h\n * DESCRIPTION: light class definition\n * AUTHORS: <NAME>\n * HISTORY:\n * DATE NAME COMMENT\n * 27.04.96 ah initial release\n * 20.11.96 ah added flag LIGHT_TRANSTRACK\n * 18.12.96 ah added Ge...
767
30
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 30.27, "nodes": 539, "errors": 0, "source_hash": "5a23a14d76a2eb70946133a28dc6b997b692dbc6b1c66f3c5f3b5a6b898bd8cc", "categorized_nodes": 329}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
3,596
c
/*------------------------------------------------------------------------------ MiniLight tools C : Supplementary tools for MiniLight <NAME> / HXA7241 : 2013 http://www.hxa.name/minilight ------------------------------------------------------------------------------*/ #include <ctype.h> #include <string....
25.89
195
(translation_unit) "/*------------------------------------------------------------------------------\n\n MiniLight tools C : Supplementary tools for MiniLight\n <NAME> / HXA7241 : 2013\n\n http://www.hxa.name/minilight\n\n------------------------------------------------------------------------------*/\n\n\n#inclu...
1,295
0
{"language": "c", "success": true, "metadata": {"lines": 195, "avg_line_length": 25.89, "nodes": 769, "errors": 0, "source_hash": "14a42f152c7f8933d1a5aa6da6acf9ca2def3d21bafea1b0be2d13ff4cc71cf4", "categorized_nodes": 561}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
3,597
c
#ifndef HALIDE_REMOVE_TRIVIAL_FOR_LOOPS_H #define HALIDE_REMOVE_TRIVIAL_FOR_LOOPS_H /** \file * Defines the lowering pass removes for loops of size 1 */ #include "IR.h" namespace Halide { namespace Internal { /** Convert for loops of size 1 into LetStmt nodes, which allows for * further simplification. Done duri...
30.57
14
(translation_unit) "#ifndef HALIDE_REMOVE_TRIVIAL_FOR_LOOPS_H\n#define HALIDE_REMOVE_TRIVIAL_FOR_LOOPS_H\n\n/** \file\n * Defines the lowering pass removes for loops of size 1\n */\n\n#include "IR.h"\n\nnamespace Halide {\nnamespace Internal {\n\n/** Convert for loops of size 1 into LetStmt nodes, which allows for\n * ...
41
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 30.57, "nodes": 24, "errors": 0, "source_hash": "0f391b8e6295c209ae2d0c920fa4eb284d9d428cf779cd751d58e476e42b6bf2", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,598
c
// shell.h #ifndef __SHELL_H #define __SHELL_H #define BINARIES_D(x) ("/shell" + x[0..<2] + "b") #define MAX_VAR_COUNT 10 #define SHELL_CHAR '`' #define SHELL_STR "`" #define VAR_CHAR '@' int delete_var(string prop); mixed set_var(string prop, mixed data); mapping query_all_vars(); int query_v...
27.53
17
(translation_unit) "// shell.h\n#ifndef __SHELL_H\n#define __SHELL_H\n#define BINARIES_D(x) ("/shell" + x[0..<2] + "b")\n\n#define MAX_VAR_COUNT 10\n\n#define SHELL_CHAR '`'\n#define SHELL_STR "`"\n\n#define VAR_CHAR '@'\n\nint delete_var(string prop);\nmixed set_var(string prop, mixed data);\nmap...
123
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 27.53, "nodes": 93, "errors": 0, "source_hash": "333dca3b1842301ed5c6581baa1056f049439b91b5dbcee0d93684c2e45e5de5", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
3,599