language
stringclasses
1 value
code
stringlengths
6
12.3k
avg_line_length
float64
2.79
91
line_count
float64
1
367
lang_specific_parse
stringlengths
60
1.08M
ast_node_count
int64
2
6.81k
num_errors
int64
0
499
universal_schema
stringlengths
799
825k
__index_level_0__
int64
0
81.2k
c
#ifndef MLP_H #define MLP_H #include <cmath> #include <string> #include <vector> #include <typeinfo> #include <ctime> #include <cstdlib> #include "ANN.h" class MLP { private: NN nn; int epochs; int uniformInt(int lower, int upper = nullptr); // Random Uniform Generator public: MLP(); ~MLP(); }; #...
13.55
22
(translation_unit) "#ifndef MLP_H\n#define MLP_H\n\n#include <cmath>\n#include <string>\n#include <vector>\n#include <typeinfo>\n#include <ctime>\n#include <cstdlib>\n#include "ANN.h"\n\n\nclass MLP {\n\n private:\n NN nn;\n int epochs;\n \n int uniformInt(int lower, int upper = nullptr); // Random Uniform Generato...
92
1
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 13.55, "nodes": 61, "errors": 0, "source_hash": "230e8e7270f121258061fca635f442f4ecc34f86ff3d49a6ac83de7fa8cf01f8", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,800
c
// // BaiduMobAdVideo.h // BaiduMobAdSdk // // Created by lishan04 on 15-6-8. // // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import "BaiduMobAdVideoDelegate.h" @interface BaiduMobAdVideoView : UIView /** * 委托对象 */ @property (nonatomic ,assign) id<BaiduMobAdVideoDelegate> delegate; /** * 设置...
15
36
(translation_unit) "//\n// BaiduMobAdVideo.h\n// BaiduMobAdSdk\n//\n// Created by lishan04 on 15-6-8.\n//\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n#import "BaiduMobAdVideoDelegate.h"\n\n@interface BaiduMobAdVideoView : UIView\n\n/**\n * 委托对象\n */\n@property (nonatomic ,assign) id<BaiduMobA...
103
19
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 15.0, "nodes": 66, "errors": 0, "source_hash": "48096973b77493ab5bd5fa920d92018d0a6c07553d77f7ace9a74a0b5e8da0da", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
4,801
c
#pragma once class IUISystemDataSource; /* so if a mod updates the file system overlays, how does the ui system know to reload (data?) files the file system count have some whay or registering overlay change for file path? the UISystem could be told that the file system/mod changed. this introduces coupling, why shou...
39.97
36
(translation_unit) "#pragma once\n\nclass IUISystemDataSource;\n\n/*\nso if a mod updates the file system overlays, how does the ui system know to reload (data?) files\nthe file system count have some whay or registering overlay change for file path?\nthe UISystem could be told that the file system/mod changed. this in...
222
17
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 39.97, "nodes": 130, "errors": 0, "source_hash": "a6467feb0bb0081fdf815b37c188952686bcd3220152c72a72babad50f48c89d", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
4,802
c
/******************************************************************* * * ttcalc.h * * Arithmetic Computations (specification). * * Copyright 1996-1999 by * <NAME>, <NAME>, and <NAME>. * * This file is part of the FreeType project, and may only be used * modified and distributed under the terms of the ...
34.67
69
(translation_unit) "/*******************************************************************\n *\n * ttcalc.h\n *\n * Arithmetic Computations (specification).\n *\n * Copyright 1996-1999 by\n * <NAME>, <NAME>, and <NAME>.\n *\n * This file is part of the FreeType project, and may only be used\n * modified and distr...
391
7
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 34.67, "nodes": 284, "errors": 0, "source_hash": "336b4ca08a61a5d703119997283319ad84ce3b1d23de358cd53427eb2c8c1b47", "categorized_nodes": 188}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,803
c
/* mbed Microcontroller Library * SPDX-License-Identifier: BSD-3-Clause ****************************************************************************** * * Copyright (c) 2015-2020 STMicroelectronics. * All rights reserved. * * This software component is licensed by ST under BSD 3-Clause license, * the "License";...
36.22
46
(translation_unit) "/* mbed Microcontroller Library\n * SPDX-License-Identifier: BSD-3-Clause\n ******************************************************************************\n *\n * Copyright (c) 2015-2020 STMicroelectronics.\n * All rights reserved.\n *\n * This software component is licensed by ST under BSD 3-Clause...
126
0
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 36.22, "nodes": 106, "errors": 0, "source_hash": "6dfdde7a2785029f9e4be383c1c86a210308fc8b795b6befd428278192876015", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,804
c
/** * Copyright (c) 2014,2015 NetEase, Inc. and other Pomelo contributors * MIT Licensed. */ #ifndef PR_MSG_H #define PR_MSG_H #include <stdint.h> #include "pr_pkg.h" #include <pc_JSON.h> typedef struct tr_uv_tcp_transport_s tr_uv_tcp_transport_t; typedef struct { unsigned int id; const char* route; ...
35.78
32
(translation_unit) "/**\n * Copyright (c) 2014,2015 NetEase, Inc. and other Pomelo contributors\n * MIT Licensed.\n */\n\n#ifndef PR_MSG_H\n#define PR_MSG_H\n\n#include <stdint.h>\n\n#include "pr_pkg.h"\n#include <pc_JSON.h>\n\ntypedef struct tr_uv_tcp_transport_s tr_uv_tcp_transport_t;\n\ntypedef struct {\n unsigne...
295
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 35.78, "nodes": 201, "errors": 0, "source_hash": "de10a1a01020eaf624989bc38a19ff92147d4c88a5bc5a2fcd02817767d227f0", "categorized_nodes": 130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,805
c
#pragma once #include <armadillo> class Vertex { private: double x, y, z; public: arma::dvec Vertice; ~Vertex(); Vertex(double vx, double vy, double vz); Vertex(); void SetVertice(arma::dvec V); arma::drowvec get_value(); double getX(); double getY(); double getZ(); void ToString(); };
16.56
18
(translation_unit) "#pragma once \n#include <armadillo> \nclass Vertex \n{ \nprivate: \n double x, y, z; \npublic: \n arma::dvec Vertice; \n ~Vertex(); \n Vertex(double vx, double vy, double vz); \n Vertex(); \n void SetVertice(arma::dvec V); \n arma::drowvec get_value(); \n double getX(); \n double getY(); \n double ...
132
5
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 16.56, "nodes": 77, "errors": 0, "source_hash": "6650212a1bedb3ccfa2ee9b0176a57434841391ac124d384456f8577b1eeeac9", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
4,806
c
/* * Copyright (C) [2021] Futurewei Technologies, Inc. All rights reserved. * * OpenArkCompiler is licensed under the Mulan Permissive Software License v2. * You can use this software according to the terms and conditions of the MulanPSL - 2.0. * You may obtain a copy of MulanPSL - 2.0 at: * * https://opensour...
26.89
61
(translation_unit) "/*\n * Copyright (C) [2021] Futurewei Technologies, Inc. All rights reserved.\n *\n * OpenArkCompiler is licensed under the Mulan Permissive Software License v2.\n * You can use this software according to the terms and conditions of the MulanPSL - 2.0.\n * You may obtain a copy of MulanPSL - 2.0 at:...
290
5
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 26.89, "nodes": 181, "errors": 0, "source_hash": "d42fd5fb8e1cf28b783588e0ac065792e35c0baed95e501cb28a981aca5f1bbb", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,807
c
/* * static_list_ops.h * * Created on: Aug 7, 2015 * Author: chushen */ #ifndef PUBLIC_UA_DETAIL_STATIC_LIST_ACCESSOR_IMPL_H_ #define PUBLIC_UA_DETAIL_STATIC_LIST_ACCESSOR_IMPL_H_ #include "ua/ua_ref.h" #include "static_list_accessor.h" #include "std_utils.h" namespace sail{ namespace detail{ template<type...
32.71
126
(translation_unit) "/*\n * static_list_ops.h\n *\n * Created on: Aug 7, 2015\n * Author: chushen\n */\n\n#ifndef PUBLIC_UA_DETAIL_STATIC_LIST_ACCESSOR_IMPL_H_\n#define PUBLIC_UA_DETAIL_STATIC_LIST_ACCESSOR_IMPL_H_\n#include "ua/ua_ref.h"\n#include "static_list_accessor.h"\n#include "std_utils.h"\n\nnamespace sail...
1,255
74
{"language": "c", "success": true, "metadata": {"lines": 126, "avg_line_length": 32.71, "nodes": 737, "errors": 0, "source_hash": "71b9abb8ce8d984a0c7d0dd60ac4504b9a9ca3a1c1916c5683ca95cf41d3a994", "categorized_nodes": 475}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,808
c
#include "geminc.h" #include "gemprm.h" void cst_alnm ( char ch, int *type, int *iret ) /************************************************************************ * cst_alnm * * * * This subroutine determines whether a character is a letter, number * * or non-alphanumeric character. * * ...
23.07
45
(translation_unit) "#include "geminc.h"\n#include "gemprm.h"\n\n\nvoid cst_alnm ( char ch, int *type, int *iret )\n/************************************************************************\n * cst_alnm *\n * *\n * This subroutine determines whether a character is a letter, number *\n * or non-alphanumeri...
107
0
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 23.07, "nodes": 61, "errors": 0, "source_hash": "cd23e45774fb61d9b588fa116a4aca559b02e6c2c8c340fd34e6fcceaee6de45", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
4,809
c
/**HEADER******************************************************************** * * Copyright (c) 2008 Freescale Semiconductor; * All Rights Reserved * * Copyright (c) 2004-2008 Embedded Access Inc.; * All Rights Reserved * * Copyright (c) 1989-2008 ARC International; * All Rights Reserved * ****************************...
33.57
60
(translation_unit) "/**HEADER********************************************************************\n* \n* Copyright (c) 2008 Freescale Semiconductor;\n* All Rights Reserved\n*\n* Copyright (c) 2004-2008 Embedded Access Inc.;\n* All Rights Reserved\n*\n* Copyright (c) 1989-2008 ARC International;\n* All Rights Reserved\n...
62
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 33.57, "nodes": 36, "errors": 0, "source_hash": "4ff912c7f0e5f0b59953cb50864f73eaf4b9ecd340b9c0ce4a5dc58e94632465", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
4,810
c
/* SPDX-License-Identifier: BSD-3-Clause * Copyright(c) 2020 Broadcom * All rights reserved. */ #include <stdbool.h> #include <rte_byteorder.h> #include <rte_crypto_sym.h> #include <rte_cryptodev.h> #include <rte_mbuf.h> #include <rte_mempool.h> #include "bcmfs_sym_defs.h" #include "bcmfs_sym_engine.h" #include "...
31.26
236
(translation_unit) "/* SPDX-License-Identifier: BSD-3-Clause\n * Copyright(c) 2020 Broadcom\n * All rights reserved.\n */\n\n#include <stdbool.h>\n\n#include <rte_byteorder.h>\n#include <rte_crypto_sym.h>\n#include <rte_cryptodev.h>\n#include <rte_mbuf.h>\n#include <rte_mempool.h>\n\n#include "bcmfs_sym_defs.h"\n#inclu...
2,614
12
{"language": "c", "success": true, "metadata": {"lines": 236, "avg_line_length": 31.26, "nodes": 1686, "errors": 0, "source_hash": "14638a54b3ef492dd49cf1c4a5dad24e6e2335671d569ea04f8d47a275f27438", "categorized_nodes": 1366}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
4,811
c
#define true (1) #define false (0) typedef int bool; #define inline static /* ID:lindong6 PROG:dualpal LANG:C++ */ #include <stdio.h> char buf[1000]; int top=0; void change(int base,int num){ top=0; while(num>0){ int a=num%base; a+='0'; buf[top++]=a; num/=base; } } bool isPal(){ int i=0,j=top-1; while...
12.73
44
(translation_unit) "#define true (1)\n#define false (0)\ntypedef int bool;\n#define inline static\n\n/*\nID:lindong6\nPROG:dualpal\nLANG:C++\n*/\n\n#include <stdio.h>\n\nchar buf[1000];\nint top=0;\n\nvoid change(int base,int num){\n top=0;\n while(num>0){\n int a=num%base;\n a+='0';\n buf[top++]=a;\n num/=base;\n ...
327
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 12.73, "nodes": 203, "errors": 0, "source_hash": "0516851c80a597885586cbe8f5d0fcda075a88fe2fe75be39f4cc2bc955cce5e", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ...
4,812
c
#ifndef CQPropertyViewType_H #define CQPropertyViewType_H #include <CQPropertyViewDelegate.h> #include <QString> class CQPropertyViewEditorFactory; class CQPropertyViewDelegate; class CQPropertyViewItem; class QStyleOptionViewItem; class QPainter; class QModelIndex; class QVariant; /*! * \brief type base class * ...
30.33
45
(translation_unit) "#ifndef CQPropertyViewType_H\n#define CQPropertyViewType_H\n\n#include <CQPropertyViewDelegate.h>\n#include <QString>\n\nclass CQPropertyViewEditorFactory;\nclass CQPropertyViewDelegate;\nclass CQPropertyViewItem;\n\nclass QStyleOptionViewItem;\nclass QPainter;\nclass QModelIndex;\nclass QVariant;\n...
330
20
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 30.33, "nodes": 176, "errors": 0, "source_hash": "28259c6f4ae91f1069aeb791525b21d41c9b5578f3ae49cdd6209ab98c245208", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,813
c
#include <stdlib.h> #include <float.h> #include <math.h> #include <omp.h> #include "image_io.h" #include "segmentation.h" void init_centers(byte_t *data, double *centers, int n_px, int n_ch, int n_clus); void assign_pixels(byte_t *data, double *centers, int *labels, double *dists, int *changes, int n_px, int n_ch, in...
32.89
144
(translation_unit) "#include <stdlib.h>\n#include <float.h>\n#include <math.h>\n#include <omp.h>\n\n#include "image_io.h"\n#include "segmentation.h"\n\nvoid init_centers(byte_t *data, double *centers, int n_px, int n_ch, int n_clus);\nvoid assign_pixels(byte_t *data, double *centers, int *labels, double *dists, int *ch...
1,568
0
{"language": "c", "success": true, "metadata": {"lines": 144, "avg_line_length": 32.89, "nodes": 1046, "errors": 0, "source_hash": "5ef2d003dac71c93b746123594182bd3c99e985f9fecc233d95605ef3ed2ea34", "categorized_nodes": 706}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
4,814
c
#pragma once #include <string> #include <vector> #include "paths.h" #include "dir.h" #include "Printm.h" #include "Print_vect.h" #include "FPGA_mgr.h" #include "IO_mgr.h" #include "Classifier.h" #include "decision_unit.h" class initializer { public: initializer(); ~initializer(); void Initialize(); bool Is_initia...
20.25
40
(translation_unit) "#pragma once\n#include <string>\n#include <vector>\n#include "paths.h"\n#include "dir.h"\n#include "Printm.h"\n#include "Print_vect.h"\n#include "FPGA_mgr.h"\n#include "IO_mgr.h"\n#include "Classifier.h"\n#include "decision_unit.h"\n\n\nclass initializer\n{\npublic:\n initializer();\n ~initializer()...
271
5
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 20.25, "nodes": 166, "errors": 0, "source_hash": "4e31cdde4e14e9db8677ab54850bc915e82a67691f04ec9b9e2a789d5087c4aa", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
4,815
c
// I only use strings.h for strcmp. Maybe I can flex and not use it. #include <string.h> #include "core.h" struct Command commandInfo(struct Lang *core, char *first) { for (int c = 0; c < core->commands; c++) { if (!strcmp(first, core->command[c].first)) { return core->command[c]; } } return core->command[...
27.3
159
(translation_unit) "// I only use strings.h for strcmp. Maybe I can flex and not use it.\n#include <string.h>\n\n#include "core.h"\n\nstruct Command commandInfo(struct Lang *core, char *first) {\n for (int c = 0; c < core->commands; c++) {\n if (!strcmp(first, core->command[c].first)) {\n return core->command[c];\n ...
1,250
0
{"language": "c", "success": true, "metadata": {"lines": 159, "avg_line_length": 27.3, "nodes": 743, "errors": 0, "source_hash": "4792f8ee23e465f813cba12aaf398ec2146eb49061c85f4b9c3bfaa15094c0bd", "categorized_nodes": 572}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,816
c
#include "Rincludes.h" extern "C" { SEXP r_argument_get_name(SEXP r_argument); SEXP r_argument_is_evaluated(SEXP r_argument); SEXP r_argument_get_expression(SEXP r_argument); SEXP r_argument_get_result(SEXP r_argument); }
30.71
7
(translation_unit) "#include "Rincludes.h"\n\nextern "C" {\nSEXP r_argument_get_name(SEXP r_argument);\nSEXP r_argument_is_evaluated(SEXP r_argument);\nSEXP r_argument_get_expression(SEXP r_argument);\nSEXP r_argument_get_result(SEXP r_argument);\n}\n" (preproc_include) "#include "Rincludes.h"\n" (#include) "#inc...
60
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 30.71, "nodes": 38, "errors": 0, "source_hash": "ab66a9a4beaf97962fb297864b60cc31f5518d16a062b75edfa4f320901f64c1", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
4,817
c
/* nl_types.h - dummy POSIX localization message catalog implementation */ /* * Copyright (C) 2019 Wind River Systems, Inc. //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICEN...
25.55
42
(translation_unit) "/* nl_types.h - dummy POSIX localization message catalog implementation */\n\n/*\n * Copyright (C) 2019 Wind River Systems, Inc.\n//===----------------------------------------------------------------------===//\n//\n// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.\n//...
138
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 25.55, "nodes": 83, "errors": 0, "source_hash": "5863638babb051519293dc499c6d808f1d8133f6aad2c3db2c2067d98b54402c", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,818
c
#include "BSTdef.h" #include "BSTOps.h" BST createEmptyBST() { node head=NULL; BST bt= (BST) malloc(sizeof(BinTree)); bt->totalBooks=0; bt->height=0; bt->root=head; return bt; }
15.73
11
(translation_unit) "#include "BSTdef.h"\n#include "BSTOps.h"\nBST createEmptyBST()\n{\n node head=NULL;\n BST bt= (BST) malloc(sizeof(BinTree));\n bt->totalBooks=0;\n bt->height=0;\n bt->root=head;\n\n return bt;\n}" (preproc_include) "#include "BSTdef.h"\n" (#include) "#include" (string_literal) ""BSTdef.h""...
84
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 15.73, "nodes": 52, "errors": 0, "source_hash": "d3a302915a83708542b20ed8c940e28ec5edbe0f632f8f5aff9a896a3f7beaac", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
4,819
c
#ifndef MESH_COMPONENT_H #define MESH_COMPOENENT_H #include "Components.h" #include "par_shapes.h" #include <vector> #include <list> #include "MathGeoLib/include/MathGeoLib.h" enum class OBJECT_TYPE; class GameObject; struct aiMesh; struct aiNode; struct TexData; struct meshInfo; struct debug_mesh { std::vector<...
22.7
97
(translation_unit) "#ifndef MESH_COMPONENT_H\n#define MESH_COMPOENENT_H\n\n\n#include "Components.h"\n#include "par_shapes.h"\n#include <vector>\n#include <list>\n#include "MathGeoLib/include/MathGeoLib.h"\n\nenum class OBJECT_TYPE;\nclass GameObject;\nstruct aiMesh;\nstruct aiNode;\nstruct TexData;\nstruct meshInfo;\n...
691
15
{"language": "c", "success": true, "metadata": {"lines": 97, "avg_line_length": 22.7, "nodes": 495, "errors": 0, "source_hash": "29e13831059527270018681b5b66ec594da10ae8e7b9f702dbb14ef8892418e2", "categorized_nodes": 281}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,820
c
#ifndef STRING2NUMBER_H #define STRING2NUMBER_H #include <QString> class String2Number { public: String2Number(); public: int string2number(const QString&); }; #endif
15.27
11
(translation_unit) "#ifndef STRING2NUMBER_H\n#define STRING2NUMBER_H\n\n#include <QString>\n\nclass String2Number\n{\npublic:\n String2Number(); \n\npublic:\n int string2number(const QString&);\n};\n\n#endif\n" (preproc_ifdef) "#ifndef STRING2NUMBER_H\n#define STRING2NUMBER_H\n\n#include <QString>\n\nclass S...
46
1
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 15.27, "nodes": 24, "errors": 0, "source_hash": "a3519fe185986140648708c2afd7c77e940b0fab47d812ab1205a56d41196bf2", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,821
c
// // Created by jack on 20-3-4. // #ifndef ESCAPE_LUA_AI_H #define ESCAPE_LUA_AI_H #include "config.h" #include "ai_system.h" #include "lua_script.h" #include "config.h" namespace Escape { class Agent_Lua : public AgentControl { sol::state lua; Converter converter = lua; ControlSystem *c...
25.88
24
(translation_unit) "//\n// Created by jack on 20-3-4.\n//\n\n#ifndef ESCAPE_LUA_AI_H\n#define ESCAPE_LUA_AI_H\n\n#include "config.h"\n#include "ai_system.h"\n#include "lua_script.h"\n#include "config.h"\n\nnamespace Escape {\n class Agent_Lua : public AgentControl {\n sol::state lua;\n Converter conver...
175
11
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 25.88, "nodes": 101, "errors": 0, "source_hash": "157276e64682166858204c090952bafa5b0c1a6b86429917fdcd5e31e3b28f47", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,822
c
/* qrcodetexture.h */ #ifndef QRCODETEXTURE_H #define QRCODETEXTURE_H #include "scene/resources/texture.h" #include "qrcodegen.hpp" using qrcodegen::QrCode; class QRCodeTexture : public ImageTexture { GDCLASS(QRCodeTexture, ImageTexture); protected: static void _bind_methods(); String content = ""; int border =...
28.97
29
(translation_unit) "/* qrcodetexture.h */\n\n#ifndef QRCODETEXTURE_H\n#define QRCODETEXTURE_H\n\n#include "scene/resources/texture.h"\n#include "qrcodegen.hpp"\nusing qrcodegen::QrCode;\n\nclass QRCodeTexture : public ImageTexture {\n GDCLASS(QRCodeTexture, ImageTexture);\n\nprotected:\n static void _bind_methods();\n ...
260
13
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 28.97, "nodes": 152, "errors": 0, "source_hash": "66313e80eed88a2317d1faebfa6ae96ee71bc9798d03746512ea34bf939e53c8", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,823
c
#include <assert.h> #include <sys/mman.h> #include <unistd.h> #include <fcntl.h> #include "file.h" #include "debug.h" int file_create(const char *path, uint32_t size) { assert(path); assert(size > 0); int fd; if(!*path) { /* The server passes "" */ char name[] = "/tmp/chatserver-XXXXXX"; fd = mkstemp(name); ...
23.35
48
(translation_unit) "#include <assert.h>\n#include <sys/mman.h>\n#include <unistd.h>\n#include <fcntl.h>\n#include "file.h"\n#include "debug.h"\n\nint file_create(const char *path, uint32_t size) {\n assert(path);\n assert(size > 0);\n\n int fd;\n\n if(!*path) { /* The server passes "" */\n char name[] = "/tmp/chatserv...
434
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 23.35, "nodes": 254, "errors": 0, "source_hash": "6e93208631b6dc81e0f01b0fadfa3e2b03a2ae9d5b2fabc9d97a9f9f0927571b", "categorized_nodes": 182}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,824
c
/******************************** *Filename:hash.h * *Login:by932 * *AssignmentNo:ass4 * *DateLastModified:19/10/2014 * ********************************/ #include <iostream> #include <cstring> #include "list.h" using namespace std; struct htnode { LIST data; }; typedef htnode* HDNPtr; class HT...
17.96
28
(translation_unit) "/********************************\n*Filename:hash.h *\n*Login:by932 * \n*AssignmentNo:ass4 *\n*DateLastModified:19/10/2014 * \n********************************/\n#include <iostream>\n#include <cstring>\n#include "list.h"\nusing namespace std;\n\nstruct htnode\n{\n LIST data;\n};\n...
131
2
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 17.96, "nodes": 77, "errors": 0, "source_hash": "88324cf21810591f1d4db4de02898e4777bfaee465794629592a923504a29c5e", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
4,825
c
#ifndef CALL #define CALL #include "base.h" #include <stdio.h> #include <sys/types.h> #include <stdlib.h> #include <sys/wait.h> #include <signal.h> #include <sstream> #include <string> #include <iostream> #include <vector> #include <string> #include <cstring> #include <unistd.h> using namespace std; /* Class Ca...
23.39
49
(translation_unit) "#ifndef CALL\n#define CALL\n\n#include "base.h"\n#include <stdio.h>\n#include <sys/types.h>\n#include <stdlib.h>\n#include <sys/wait.h>\n#include <signal.h>\n#include <sstream>\n#include <string>\n#include <iostream>\n#include <vector>\n#include <string>\n#include <cstring>\n#include <unistd.h>\n\n\...
208
6
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 23.39, "nodes": 143, "errors": 0, "source_hash": "566441f7ee285f17bf1e64c05a1c0d5232dd89fea67f8f7048e2625dd5a61e6b", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,826
c
// // NSDate+Category.h // RunTimePractice // // Created by fernando on 2017/2/21. // Copyright © 2017年 fernando. All rights reserved. // #import <Foundation/Foundation.h> @interface NSDate (Category) @property (nonatomic, assign) NSInteger year; @property (nonatomic, assign) NSInteger month; @property (nonatomi...
25.77
13
(translation_unit) "//\n// NSDate+Category.h\n// RunTimePractice\n//\n// Created by fernando on 2017/2/21.\n// Copyright © 2017年 fernando. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NSDate (Category)\n\n@property (nonatomic, assign) NSInteger year;\n@property (nonatomic, assign) NSI...
71
16
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 25.77, "nodes": 47, "errors": 0, "source_hash": "0f3b0a44d8d6b428a7bce5225699658ac5987b728f87375780ace33467e431a5", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
4,827
c
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include "System.h" #include <QTreeWidget> #include "propmodel.h" #include "diagramview.h" #include "runtimewindow.h" #include "plotter.h" #include "GA.h" #include "logwindow.h" #include "aboutdialog.h" #include "undodata.h" namespace Ui { class MainW...
33.27
130
(translation_unit) "#ifndef MAINWINDOW_H\n#define MAINWINDOW_H\n\n#include <QMainWindow>\n#include "System.h"\n#include <QTreeWidget>\n#include "propmodel.h"\n#include "diagramview.h"\n#include "runtimewindow.h"\n#include "plotter.h"\n#include "GA.h"\n#include "logwindow.h"\n#include "aboutdialog.h"\n#include "undodata...
1,281
27
{"language": "c", "success": true, "metadata": {"lines": 130, "avg_line_length": 33.27, "nodes": 810, "errors": 0, "source_hash": "50a706d25780f9046aa458b4737af5e9a9b82a8d8cbcf0e53e7d7f6ae0908bac", "categorized_nodes": 528}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,828
c
// // kfc_thread.h // kfc // // Created by 徐仲平 on 2019/3/22. // Copyright © 2019 徐仲平. All rights reserved. // #ifndef kfc_thread_h #define kfc_thread_h #include "kfc_thread_core.h" #include "kfc_driver.h" #endif /* kfc_thread_h */
18.58
12
(translation_unit) "//\n// kfc_thread.h\n// kfc\n//\n// Created by 徐仲平 on 2019/3/22.\n// Copyright © 2019 徐仲平. All rights reserved.\n//\n\n#ifndef kfc_thread_h\n#define kfc_thread_h\n\n#include "kfc_thread_core.h"\n#include "kfc_driver.h"\n\n#endif /* kfc_thread_h */\n" (comment) "//" (comment) "// kfc_thread....
28
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 18.58, "nodes": 13, "errors": 0, "source_hash": "e6c544284a604bf0c6a876d0838e5621a767c495de00eac90410d25c28564f28", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "hread_h\...
4,829
c
// // MainViewController.h // zhihuDaily // // Created by 邝路平 on 16/6/12. // Copyright © 2016年 邝路平. All rights reserved. // #import <UIKit/UIKit.h> #define API_Url @"http://news-at.zhihu.com/api/4/news/" #define API_Url_NewsLatest @"http://news-at.zhihu.com/api/4/news/latest" #define API_Url_NewsBefore @"http://n...
33.86
14
(translation_unit) "//\n// MainViewController.h\n// zhihuDaily\n//\n// Created by 邝路平 on 16/6/12.\n// Copyright © 2016年 邝路平. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n#define API_Url @"http://news-at.zhihu.com/api/4/news/"\n#define API_Url_NewsLatest @"http://news-at.zhihu.com/api/4/news/latest"\n#defi...
38
4
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 33.86, "nodes": 28, "errors": 0, "source_hash": "43b9ac7e959ce9b99d99e078683ece32f350a8537280083bdcbff8e2da69fc39", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit.h>\...
4,830
c
#ifndef __LE_OUTPUT_H__ #define __LE_OUTPUT_H__ #include "buffer.h" void editorScroll(); void editorDrawRows(struct abuf *ab); void editorDrawStatusBar(struct abuf *ab); void editorDrawMessageBar(struct abuf *ab); void editorRefreshScreen(); void editorSetStatusMessage(const char *fmt, ...); #endif
29
10
(translation_unit) "#ifndef __LE_OUTPUT_H__\n#define __LE_OUTPUT_H__\n\n#include "buffer.h"\n\nvoid editorScroll();\n\nvoid editorDrawRows(struct abuf *ab);\n\nvoid editorDrawStatusBar(struct abuf *ab);\n\nvoid editorDrawMessageBar(struct abuf *ab);\n\nvoid editorRefreshScreen();\n\nvoid editorSetStatusMessage(const ch...
93
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 29.0, "nodes": 66, "errors": 0, "source_hash": "fcc5ded5d6bc6321d7a3e03e66fc46d3205c13a9a7bc9425c579b71d2fa8d203", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
4,831
c
#ifndef _MSP430_I2C_H_ #define _MSP430_I2C_H_ #ifdef __cplusplus extern "C" { #endif //__cplusplus #include <stdint.h> ////////////////////////////////////////////////////////////////////////////// /// Global definitions ////////////////////////////////////////////////////////////////////////////// #define SLAVE_AD...
36.51
39
(translation_unit) "#ifndef _MSP430_I2C_H_\n#define _MSP430_I2C_H_\n\n#ifdef __cplusplus\nextern "C" {\n#endif //__cplusplus\n\n#include <stdint.h>\n\n//////////////////////////////////////////////////////////////////////////////\n/// Global definitions\n/////////////////////////////////////////////////////////////////...
174
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 36.51, "nodes": 123, "errors": 0, "source_hash": "410f4db72afbdbca69710173ea97c4704ae072a3b9099562b218a101b0829d9a", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,832
c
/* $XFree86: xc/lib/XvMC/XvMClibint.h,v 1.5 2002/10/16 00:37:33 dawes Exp $ */ #ifndef _XVMCLIBINT_H #define _XVMCLIBINT_H #define NEED_REPLIES #include <X11/Xlibint.h> #include <X11/extensions/Xvproto.h> #include <X11/extensions/XvMCproto.h> #include <X11/extensions/XvMClib.h> #define XvMCCheckExtension(dpy, i, val...
53.96
25
(translation_unit) "/* $XFree86: xc/lib/XvMC/XvMClibint.h,v 1.5 2002/10/16 00:37:33 dawes Exp $ */\n\n#ifndef _XVMCLIBINT_H\n#define _XVMCLIBINT_H\n#define NEED_REPLIES\n\n#include <X11/Xlibint.h>\n#include <X11/extensions/Xvproto.h>\n#include <X11/extensions/XvMCproto.h>\n#include <X11/extensions/XvMClib.h>\n\n#define...
197
5
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 53.96, "nodes": 135, "errors": 0, "source_hash": "3126f11fcc2a1b3a43ffd126e08d328b483a04f016e3590ef8dd933730fd9806", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,833
c
/*opyright (C) 2011 by <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublice...
37.74
66
(translation_unit) "/*opyright (C) 2011 by <NAME>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, pub...
434
17
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 37.74, "nodes": 284, "errors": 0, "source_hash": "fa5f691e6168a84b0a21d50bc115b7fa3f7627b5bf23ca15f49131523e34c881", "categorized_nodes": 192}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,834
c
#include "../../src/corelib/statemachine/qfinalstate.h"
55
1
(translation_unit) "#include "../../src/corelib/statemachine/qfinalstate.h"\n" (preproc_include) "#include "../../src/corelib/statemachine/qfinalstate.h"\n" (#include) "#include" (string_literal) ""../../src/corelib/statemachine/qfinalstate.h"" (") """ (string_content) "../../src/corelib/statemach...
7
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 55.0, "nodes": 3, "errors": 0, "source_hash": "ff27bf698c8317524b24e84683b71e7425c4b35b7dc29846f89e2e29031fa1a5", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \...
4,835
c
/* * Copyright (c) 2020 <NAME> <<EMAIL>> * * SPDX-License-Identifier: Apache-2.0 */ #include <ztest.h> #include <zephyr.h> extern void test_complexmath_q15(void); extern void test_complexmath_q31(void); extern void test_complexmath_f32(void); void test_main(void) { test_complexmath_q15(); test_complexmath_q31(...
20.69
16
(translation_unit) "/*\n * Copyright (c) 2020 <NAME> <<EMAIL>>\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\n#include <ztest.h>\n#include <zephyr.h>\n\nextern void test_complexmath_q15(void);\nextern void test_complexmath_q31(void);\nextern void test_complexmath_f32(void);\n\nvoid test_main(void)\n{\n test_comple...
77
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 20.69, "nodes": 49, "errors": 0, "source_hash": "b153c447c49f263f675fe26246fe81c04eb9cd3d54f630502e1d27a4ff01ba81", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
4,836
c
#ifndef QGCUNCONNECTEDINFOWIDGET_H #define QGCUNCONNECTEDINFOWIDGET_H #include <QWidget> namespace Ui { class QGCUnconnectedInfoWidget; } /** * @brief Widget providing initial instructions * * This widget provides initial instructions to new users how * to connect a simulation or a live link to a system to * QG...
25.52
31
(translation_unit) "#ifndef QGCUNCONNECTEDINFOWIDGET_H\n#define QGCUNCONNECTEDINFOWIDGET_H\n\n#include <QWidget>\n\nnamespace Ui\n{\nclass QGCUnconnectedInfoWidget;\n}\n\n/**\n * @brief Widget providing initial instructions\n *\n * This widget provides initial instructions to new users how\n * to connect a simulation o...
99
5
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 25.52, "nodes": 58, "errors": 0, "source_hash": "b924b7532ec8bca01f52c57eb49c01ff9a18cdd0438d7e12ee9df32a75765852", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,837
c
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
24.91
285
(translation_unit) "/*\n * CDDL HEADER START\n *\n * The contents of this file are subject to the terms of the\n * Common Development and Distribution License (the "License").\n * You may not use this file except in compliance with the License.\n *\n * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE...
2,067
0
{"language": "c", "success": true, "metadata": {"lines": 285, "avg_line_length": 24.91, "nodes": 1208, "errors": 0, "source_hash": "50ff60251f2b695af7dfe5f42ad1434c6bcd62e395dda1986a5dc622d08933b5", "categorized_nodes": 818}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
4,838
c
//Copyright (C) 2020 <NAME> // //Licensed under the Apache License, Version 2.0 (the "License"); //you may not use this file except in compliance with the License. //You may obtain a copy of the License at // //http://www.apache.org/licenses/LICENSE-2.0 // //Unless required by applicable law or agreed to in writing, so...
40.31
39
(translation_unit) "//Copyright (C) 2020 <NAME>\n//\n//Licensed under the Apache License, Version 2.0 (the "License");\n//you may not use this file except in compliance with the License.\n//You may obtain a copy of the License at\n//\n//http://www.apache.org/licenses/LICENSE-2.0\n//\n//Unless required by applicable law...
365
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 40.31, "nodes": 269, "errors": 0, "source_hash": "b28a3642ec8eaef8fd33d473079c384f3d72bb3e592b2d4831d900aa3b08dd69", "categorized_nodes": 163}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,839
c
#include <brutal/debug.h> #include <embed/file.h> MaybeError embed_file_open(IoFile *, Str, FileInitFlags) { panic$("embed_file_open not implemented"); } MaybeError embed_file_create(IoFile *, Str) { panic$("embed_file_create not implemented"); } MaybeError embed_file_close(IoFile *) { panic$("embed_file...
24.27
26
(translation_unit) "#include <brutal/debug.h>\n#include <embed/file.h>\n\nMaybeError embed_file_open(IoFile *, Str, FileInitFlags)\n{\n panic$("embed_file_open not implemented");\n}\n\nMaybeError embed_file_create(IoFile *, Str)\n{\n panic$("embed_file_create not implemented");\n}\n\nMaybeError embed_file_close(I...
187
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 24.27, "nodes": 104, "errors": 0, "source_hash": "b748b5cb08d989e002530621bd68fe9f14ced91afc1fe1177f736ab81c1569c8", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
4,840
c
#ifndef _CALCULATE_SCORE_OPTIONS_H_ #define _CALCULATE_SCORE_OPTIONS_H_ #include <getopt.h> #include <string> #include <vector> #include <iostream> // Include the command line params configuration for weights #include "score_weights_options.h" using namespace std; #define DECOY_OPTION "decoy" #define DECOY_CHAR 'd'...
28.69
104
(translation_unit) "#ifndef _CALCULATE_SCORE_OPTIONS_H_\n#define _CALCULATE_SCORE_OPTIONS_H_\n\n#include <getopt.h>\n#include <string>\n#include <vector>\n#include <iostream>\n// Include the command line params configuration for weights\n#include "score_weights_options.h"\n\nusing namespace std;\n\n\n#define DECOY_OPTI...
501
4
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 28.69, "nodes": 305, "errors": 0, "source_hash": "3ba178f121f5aef8eb3e4cc43407dd6fbbfc3a12ebf6832637052c67fda52ff5", "categorized_nodes": 204}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,841
c
#include <stdio.h> /** * main - runs the all the code * * Description: Print size of various size * Return: Return 0 to exit function */ int main(void) { printf("Size of a char: %lu byte(s)\n", sizeof(char)); printf("Size of an int: %lu byte(s)\n", sizeof(int)); printf("Size of a long int: %lu byte(s)\n", sizeof(lon...
28.75
16
(translation_unit) "#include <stdio.h>\n/**\n* main - runs the all the code\n*\n* Description: Print size of various size\n* Return: Return 0 to exit function\n*/\nint main(void)\n{\n printf("Size of a char: %lu byte(s)\n", sizeof(char));\n printf("Size of an int: %lu byte(s)\n", sizeof(int));\n printf("Size of a long ...
124
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 28.75, "nodes": 58, "errors": 0, "source_hash": "27d1edd47f9014f32b81a090f569bbbc3251f809f87cc10aca6fb584b59d4d9a", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
4,842
c
#pragma once #define IMR_MSK (CNTR_CTRM | CNTR_RESETM)
26.5
2
(translation_unit) "#pragma once\n#define IMR_MSK (CNTR_CTRM | CNTR_RESETM)\n\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_def) "#define IMR_MSK (CNTR_CTRM | CNTR_RESETM)\n" (#define) "#define" (identifier) "IMR_MSK" (preproc_arg) "(CNTR_CTRM | C...
8
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 26.5, "nodes": 7, "errors": 0, "source_hash": "4e712e6d118d46dd39db4cd4907dd45a6b8ca8df6b0c321399b4e41880371310", "categorized_nodes": 2}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\...
4,843
c
/* Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the terms of version 2.1 of the GNU Lesser General Public License as published by the Free Software Foundation. This program is distributed in the hope tha...
30.09
105
(translation_unit) "/*\n\n Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved.\n\n This program is free software; you can redistribute it and/or modify it\n under the terms of version 2.1 of the GNU Lesser General Public License \n as published by the Free Software Foundation.\n\n This program is...
351
0
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 30.09, "nodes": 216, "errors": 0, "source_hash": "5391e1f5c5092a41698010f74dbcc6585fe19ed9e28b82dedc9d1181aee35c1b", "categorized_nodes": 143}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
4,844
c
/* Copyright 2014 Adobe Systems Incorporated (http://www.adobe.com/). All Rights Reserved. This software is licensed as OpenSource, under the Apache License, Version 2.0. This license is available at: http://opensource.org/licenses/Apache-2.0. */ /*********************************************************************** ...
35.35
46
(translation_unit) "/* Copyright 2014 Adobe Systems Incorporated (http://www.adobe.com/). All Rights Reserved.\nThis software is licensed as OpenSource, under the Apache License, Version 2.0. This license is available at: http://opensource.org/licenses/Apache-2.0. */\n/**************************************************...
142
3
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 35.35, "nodes": 91, "errors": 0, "source_hash": "aafa661a9d58c6fe5aad604b2ae200591a295799829fd11c110cfca90a7af3fd", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,845
c
// // NSFileManager+hrExt.h // HRCocoaTools // // Created by ZhangHeng on 2018/1/28. // #import <Foundation/Foundation.h> @interface NSFileManager (hrExt) - (NSString *)documentDir; - (NSString *)cacheDir; - (NSString *)tempDir; @end
18.75
12
(translation_unit) "//\n// NSFileManager+hrExt.h\n// HRCocoaTools\n//\n// Created by ZhangHeng on 2018/1/28.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NSFileManager (hrExt)\n\n- (NSString *)documentDir;\n\n- (NSString *)cacheDir;\n\n- (NSString *)tempDir;\n\n@end\n" (comment) "//" (comment) "// NSF...
60
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 18.75, "nodes": 36, "errors": 0, "source_hash": "da1de6b2537184cbcd7651e31b8bc3166af1b94eee36f884298c534d0749b41d", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
4,846
c
#ifndef BESTFSWALKER_H #define BESTFSWALKER_H #include "Walker.h" #include <queue> #include <vector> class CLessHeuristic { public: bool operator()( CGraphNode* lhs, CGraphNode* rhs ) const; }; class CBestFSWalker : public CWalker { public: CBestFSWalker(); virtual ~CBestFSWalker(); bool Step( ) override; privat...
19.26
27
(translation_unit) "#ifndef BESTFSWALKER_H\n#define BESTFSWALKER_H\n\n#include "Walker.h"\n#include <queue>\n#include <vector>\n\nclass CLessHeuristic\n{\npublic:\n bool operator()( CGraphNode* lhs, CGraphNode* rhs ) const;\n};\n\nclass CBestFSWalker : public CWalker\n{\npublic:\n CBestFSWalker();\n virtual ~CBestFSWal...
162
9
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 19.26, "nodes": 99, "errors": 0, "source_hash": "b7c325f4f561a7629ba7be37a45c821d28ba2ac6715b924c8e83d4567bfb6181", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,847
c
#include <sys/socket.h> #include <netinet/in.h> #include <netinet/tcp.h> #include <stdio.h> #include <stdatomic.h> #include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <errno.h> #include <bsd/stdlib.h> #include <pthread.h> #include <math.h> #include <time.h> struct client_details ...
27.95
261
(translation_unit) "#include <sys/socket.h>\n#include <netinet/in.h>\n#include <netinet/tcp.h>\n#include <stdio.h>\n\n#include <stdatomic.h>\n\n#include <unistd.h>\n#include <stdlib.h>\n#include <stdio.h>\n#include <string.h>\n#include <errno.h>\n\n#include <bsd/stdlib.h>\n#include <pthread.h>\n#include <math.h>\n#incl...
2,544
0
{"language": "c", "success": true, "metadata": {"lines": 261, "avg_line_length": 27.95, "nodes": 1513, "errors": 0, "source_hash": "a92093c66f1bc10e4181ccaa7fe6bf2e6e0966098297fe6e7df1cfc8d68b8ec3", "categorized_nodes": 1107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
4,848
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...
39.87
133
(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...
1,355
41
{"language": "c", "success": true, "metadata": {"lines": 133, "avg_line_length": 39.87, "nodes": 765, "errors": 0, "source_hash": "7d25d6a32994de5831589819e5ed9368b543b2b5b911eb9f67d9aa619f311fd4", "categorized_nodes": 542}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,849
c
#ifndef NET_H #define NET_H #include <arpa/inet.h> #endif
13.5
4
(translation_unit) "#ifndef NET_H\n#define NET_H\n\n#include <arpa/inet.h>\n\n#endif\n" (preproc_ifdef) "#ifndef NET_H\n#define NET_H\n\n#include <arpa/inet.h>\n\n#endif" (#ifndef) "#ifndef" (identifier) "NET_H" (preproc_def) "#define NET_H\n" (#define) "#define" (identifier) "NET_H" (prep...
11
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 13.5, "nodes": 10, "errors": 0, "source_hash": "1a4f2069d7eb4afe939b8e5f98c0f5f94f506676bb97da17bd1d92cea9439771", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef NET...
4,850
c
#ifndef __FORM_H__ #define __FORM_H__ #include "../main/interlecto.h" #endif
18.25
4
(translation_unit) "#ifndef __FORM_H__\n#define __FORM_H__\n#include "../main/interlecto.h"\n#endif\n" (preproc_ifdef) "#ifndef __FORM_H__\n#define __FORM_H__\n#include "../main/interlecto.h"\n#endif" (#ifndef) "#ifndef" (identifier) "__FORM_H__" (preproc_def) "#define __FORM_H__\n" (#define) "#defi...
14
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 18.25, "nodes": 10, "errors": 0, "source_hash": "f898040c5ca3a32804fef0391e15e9a70bcc671bca9ab864e8052855f047aca8", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __...
4,851
c
#ifndef CANVAS_H #define CANVAS_H #include <QWidget> #include <vector> #include <QPoint> #include "flaggedqpoint.h" #include "viewer.h" // The Canvas widged is where the user actually draws their picture. // It should contain the code neccessary to draw things, as well as // transmit them to an instance of Viewer. Th...
31.88
32
(translation_unit) "#ifndef CANVAS_H\n#define CANVAS_H\n\n#include <QWidget>\n#include <vector>\n#include <QPoint>\n#include "flaggedqpoint.h"\n#include "viewer.h"\n\n// The Canvas widged is where the user actually draws their picture.\n// It should contain the code neccessary to draw things, as well as\n// transmit th...
151
4
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 31.88, "nodes": 95, "errors": 0, "source_hash": "fe36bf66197310b447673b39bfed59a0bd70d85a0d393f87f29151dd0f348141", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,852
c
// // Created by vic on 16-7-5. // #ifndef OCTEL_UV_HELP_H #define OCTEL_UV_HELP_H #include <stdio.h> #include <stdlib.h> #include <assert.h> #include "uv.h" #define uv_fatal(e) { \ assert(0 != e); \ fprintf(stderr, "%s:%d - err:%s: %s\n", \ __FILE__, __LINE__, uv_err_name((e)), uv_st...
26.06
36
(translation_unit) "//\n// Created by vic on 16-7-5.\n//\n\n#ifndef OCTEL_UV_HELP_H\n#define OCTEL_UV_HELP_H\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <assert.h>\n#include "uv.h"\n\n#define uv_fatal(e) { \\n assert(0 != e); \\n fprintf(stderr, "%s:%d - err:%s: %s\n", \\n __FILE__...
228
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 26.06, "nodes": 140, "errors": 0, "source_hash": "afb38ebbe1d4911727210acce4de8ff4972fb1de6e4aedc206b322e65d37b778", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,853
c
#ifndef SimMuon_GEMDigitizer_GEMSignalModel_h #define SimMuon_GEMDigitizer_GEMSignalModel_h /** * \class GEMSignalModel * * Class for the GEM strip response simulation based on a very simple model * Originally comes from GEMSimpleModel * * \author <NAME> * \modified by <NAME> * \splitted by <NAME> */ #inclu...
31.4
42
(translation_unit) "#ifndef SimMuon_GEMDigitizer_GEMSignalModel_h\n#define SimMuon_GEMDigitizer_GEMSignalModel_h\n\n/** \n * \class GEMSignalModel\n *\n * Class for the GEM strip response simulation based on a very simple model\n * Originally comes from GEMSimpleModel\n *\n * \author <NAME>\n * \modified by <NAME>\n * ...
244
19
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 31.4, "nodes": 142, "errors": 0, "source_hash": "79fff8998eee1ce091f541707cbb47de86b27a8c5c75afb2fbc8b776c80f4498", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,854
c
// // MKZoomView.h // MapKit // // Created by <NAME> on 2/27/20. // Copyright © 2020 Apple, Inc. All rights reserved. // #import <MapKit/MKFoundation.h> #if MK_SUPPORTS_VIEW_CLASSES #if TARGET_OS_IPHONE #import <UIKit/UIKit.h> #else #import <AppKit/AppKit.h> #endif @class MKMapView; NS_ASSUME_NONNULL_BEGIN AP...
24.41
27
(translation_unit) "//\n// MKZoomView.h\n// MapKit\n//\n// Created by <NAME> on 2/27/20.\n// Copyright © 2020 Apple, Inc. All rights reserved.\n//\n\n#import <MapKit/MKFoundation.h>\n\n#if MK_SUPPORTS_VIEW_CLASSES\n\n#if TARGET_OS_IPHONE\n#import <UIKit/UIKit.h>\n#else\n#import <AppKit/AppKit.h>\n#endif\n\n@class M...
131
17
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 24.41, "nodes": 85, "errors": 0, "source_hash": "f930fc695d82861977d1736bce5d9c8361fdbf74b3fbf4ccb82fcc3c203e1ba4", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <M...
4,855
c
#ifndef HASHES_H #define HASHES_H #include <cstddef> #include <cstdint> #include "robin_hood.h" namespace hash { // Linux uses a noop hash template <typename T> struct Null { size_t operator()(T const& key) const { return static_cast<size_t>(key); } }; // Visual Studio uses a FNV1a implementation. ...
28.26
35
(translation_unit) "#ifndef HASHES_H\n#define HASHES_H\n\n#include <cstddef>\n#include <cstdint>\n\n#include "robin_hood.h"\n\nnamespace hash {\n\n// Linux uses a noop hash\ntemplate <typename T>\nstruct Null {\n size_t operator()(T const& key) const {\n return static_cast<size_t>(key);\n }\n};\n\n// Visua...
280
7
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 28.26, "nodes": 183, "errors": 0, "source_hash": "f24fd47ad9744e5dc637172dc173fef298ca1cb9fa1a43e22f3f8e5fcb88cf6d", "categorized_nodes": 122}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,856
c
#ifndef ENGINE_SHADER_H #define ENGINE_SHADER_H #include <iostream> #include <glm/glm.hpp> namespace Engine { class Shader { friend class Application; friend class Graphics; public: Shader(const char *v_path, const char *f_path); void Use(); void SetUniform(c...
29.37
27
(translation_unit) "#ifndef ENGINE_SHADER_H\n#define ENGINE_SHADER_H\n#include <iostream>\n#include <glm/glm.hpp>\n\nnamespace Engine\n{\n class Shader\n {\n friend class Application;\n friend class Graphics;\n\n public:\n\n Shader(const char *v_path, const char *f_path);\n\n vo...
244
10
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 29.37, "nodes": 153, "errors": 0, "source_hash": "fe6d24c5693c9900278d86045782d05e3d7a5c174cb8aa64706824ab92c510b9", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,857
c
// // M80ListDiffResult.h // M80TableViewComponent // // Created by amao on 2018/7/3. // #import <Foundation/Foundation.h> @interface M80ListDiffMove : NSObject - (instancetype)initWithFrom:(NSIndexPath *)from to:(NSIndexPath *)to; @property (nonatomic,strong) NSIndexPath *from; @prop...
31.24
21
(translation_unit) "//\n// M80ListDiffResult.h\n// M80TableViewComponent\n//\n// Created by amao on 2018/7/3.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface M80ListDiffMove : NSObject\n- (instancetype)initWithFrom:(NSIndexPath *)from\n to:(NSIndexPath *)to;\n\n@property (nonatomic,st...
181
27
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 31.24, "nodes": 123, "errors": 0, "source_hash": "f6eaa0789794d698e3fe870272970e2c094888121214965e263286b61429db79", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
4,858
c
// // Copyright (c) SRG SSR. All rights reserved. // // License information is available from the LICENSE file. // @import StoreKit; @import UIKit; NS_ASSUME_NONNULL_BEGIN @interface AppDelegate : UIResponder <SKStoreProductViewControllerDelegate, UIApplicationDelegate> @end NS_ASSUME_NONNULL_END
26.27
11
(translation_unit) "//\n// Copyright (c) SRG SSR. All rights reserved.\n//\n// License information is available from the LICENSE file.\n//\n\n@import StoreKit;\n@import UIKit;\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface AppDelegate : UIResponder <SKStoreProductViewControllerDelegate, UIApplicationDelegate>\n\n@end\n\nNS...
42
8
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 26.27, "nodes": 26, "errors": 0, "source_hash": "2836cd05eef81671e69e560237dd0a2122d89d6b5af897b820a369839d5f9afb", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nu...
4,859
c
// // DateUtil.h // xiangqu // // Created by 丁道骏 on 13-12-9. // Copyright (c) 2013年 Infinite Reader Ltd. All rights reserved. // #import <Foundation/Foundation.h> typedef NS_ENUM(NSUInteger, DateType) { DateTypeDefault = (1UL << 1),//输出全部年月日 DateTypeYearMonth = (1UL << 2),//只输出年月 DateTypeMonthDayHourMinute = (...
31.71
21
(translation_unit) "//\n// DateUtil.h\n// xiangqu\n//\n// Created by 丁道骏 on 13-12-9.\n// Copyright (c) 2013年 Infinite Reader Ltd. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\ntypedef NS_ENUM(NSUInteger, DateType) {\n DateTypeDefault = (1UL << 1),//输出全部年月日\n DateTypeYearMonth = (1UL << 2),//只输出年月...
169
18
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 31.71, "nodes": 110, "errors": 0, "source_hash": "385d720b8276428df634e862f5986a2504552b0316859eda542dff8bf2c5836f", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "<Foundat...
4,860
c
#include "stdio.h" #include "stdlib.h" #include "math.h" typedef float data_t; #define I 64 #define J 64 #define K 64 #define L 64 void dsa_kernel(data_t A[I][J][L], data_t B[L][K], data_t C[I][J][K]);
21.44
9
(translation_unit) "#include "stdio.h"\n#include "stdlib.h"\n#include "math.h"\n\ntypedef float data_t;\n#define I 64\n#define J 64\n#define K 64\n#define L 64\n\nvoid dsa_kernel(data_t A[I][J][L], data_t B[L][K], data_t C[I][J][K]);\n" (preproc_include) "#include "stdio.h"\n" (#include) "#include" (string_li...
91
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 21.44, "nodes": 59, "errors": 0, "source_hash": "9b7e248da8cadf2b7acf3d84b01c036ec734e5c8b841832bfd58152553d0f53b", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
4,861
c
#include <stdio.h> int main() { int year = 0; double Daphne = 100.0, Deirdre = 100.0; do { year++; Daphne += 10.0; Deirdre *= 1.05; } while (Daphne >= Deirdre); printf("At year %d, Daphne has %.4f dollars, while Deirdre has %.4f dollars.\n", year, Daphne, Deirdre)...
23.14
14
(translation_unit) "#include <stdio.h>\nint main()\n{\n int year = 0;\n double Daphne = 100.0, Deirdre = 100.0;\n do {\n year++;\n Daphne += 10.0;\n Deirdre *= 1.05;\n } while (Daphne >= Deirdre);\n printf("At year %d, Daphne has %.4f dollars, while Deirdre has %.4f dollars.\n", \n ...
86
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 23.14, "nodes": 51, "errors": 0, "source_hash": "439db867db30430cea0d02940d84b4ee84a2100fcc09e1c66133119bd19fe8e7", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
4,862
c
/* Automatically generated by create_config - do not modify */ #define TARGET_TILEGX 1 #define TARGET_NAME "tilegx" #define TARGET_TILEGX 1 #define CONFIG_USER_ONLY 1 #define CONFIG_QEMU_INTERP_PREFIX "/usr/gnemul/qemu-tilegx" #define CONFIG_LINUX_USER 1 #define CONFIG_I386_DIS 1
34.12
8
(translation_unit) "/* Automatically generated by create_config - do not modify */\n#define TARGET_TILEGX 1\n#define TARGET_NAME "tilegx"\n#define TARGET_TILEGX 1\n#define CONFIG_USER_ONLY 1\n#define CONFIG_QEMU_INTERP_PREFIX "/usr/gnemul/qemu-tilegx"\n#define CONFIG_LINUX_USER 1\n#define CONFIG_I386_DIS 1\n" (commen...
30
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 34.12, "nodes": 28, "errors": 0, "source_hash": "31ccb5f32eca7fef30d8f18b384f36fd6eb2c2f84d965e71091a56f80f749b3a", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define TARG...
4,863
c
#ifndef LIBREALUVC_OPTIONPARSE_H #define LIBREALUVC_OPTIONPARSE_H 1 // // option_parse.h - easy-to-use command-line parser // // <NAME>, Leap Motion, 2019-04-18. // // Copyright (c) Leap Motion 2019. All rights reserved. // #include <sstream> #include <string> namespace leap { using std::string; // ...
20.91
95
(translation_unit) "#ifndef LIBREALUVC_OPTIONPARSE_H \n#define LIBREALUVC_OPTIONPARSE_H 1 \n// \n// option_parse.h - easy-to-use command-line parser \n// \n// <NAME>, Leap Motion, 2019-04-18. \n// \n// Copyright (c) Leap Motion 2019. All rights reserved. \n// \n#include <sstream> \n#include <string> \n \nnamespace lea...
646
37
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 20.91, "nodes": 383, "errors": 0, "source_hash": "0e8dbe0f57635e6857ec3f01d3f6869d46b0bb846f9f87db0e6d7b3c355ed788", "categorized_nodes": 229}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,864
c
#ifndef GO_MOUSE_H #define GO_MOUSE_H #include "Math/Vectors.h" struct GLFWwindow; namespace go { class Mouse { public: Mouse() = delete; public: enum MouseButton { Left, Right }; public: static Vec2d& getPosition(void); static GObool isMousePressed(go::Mouse::MouseButton); static GObool isMous...
21.62
37
(translation_unit) "#ifndef GO_MOUSE_H\n#define GO_MOUSE_H\n\n#include "Math/Vectors.h"\n\nstruct GLFWwindow;\n\nnamespace go\n{\n\n class Mouse\n {\n public:\n Mouse() = delete;\n \n public: \n enum MouseButton\n { Left, Right };\n\n public:\n static Vec2d& getPosition(void);\n static GObool isMousePressed(go::Mo...
217
5
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 21.62, "nodes": 122, "errors": 0, "source_hash": "f06ef5450f162ee761644ad6a02dc7ec153e1f7889411a67e7aef7abf4fa7f27", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,865
c
#ifndef GAMECONSTANTS_H_ #define GAMECONSTANTS_H_ #include <random> #include <utility> // image IDs for the game objects const int IID_PLAYER = 0; const int IID_SALMONELLA = 1; const int IID_FOOD = 2; const int IID_ECOLI = 3; const int IID_SPRAY ...
34.69
70
(translation_unit) "#ifndef GAMECONSTANTS_H_\n#define GAMECONSTANTS_H_\n\n#include <random>\n#include <utility>\n\n// image IDs for the game objects\n\nconst int IID_PLAYER = 0;\nconst int IID_SALMONELLA = 1;\nconst int IID_FOOD = 2;\nconst int IID_ECOLI = ...
549
4
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 34.69, "nodes": 359, "errors": 0, "source_hash": "00edc42daeb67301349b209b287c3d7f4f9e8b2196fcc88a22ea90de5a34a1d0", "categorized_nodes": 190}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,866
c
/* * malloc.c -- * * Memory allocator. * Magic no longer contains its own version of malloc(), as all modern * operating systems have implementations which are as good or better. * * The main thing this file does is to define mallocMagic and friends. * freeMagic frees the previously requested memory ite...
32.4
138
(translation_unit) "/*\n * malloc.c --\n *\n * Memory allocator.\n * Magic no longer contains its own version of malloc(), as all modern\n * operating systems have implementations which are as good or better.\n *\n * The main thing this file does is to define mallocMagic and friends.\n * freeMagic frees the pre...
395
1
{"language": "c", "success": true, "metadata": {"lines": 138, "avg_line_length": 32.4, "nodes": 241, "errors": 0, "source_hash": "7eeb2ff4eb84a42bcb9a52175d9e07819107ab2ad895b6b2e4f7cb161defd9d1", "categorized_nodes": 144}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,867
c
#ifndef PONG_GUARD #define PONG_GUARD #include <iostream> #include <vector> #include <conio.h> #include <ctime> #include <map> #include <fstream> #include <Windows.h> #include "ConsoleGaming.h" #include "Vector2D.h" #include "menu.h" enum GameState { Menu, Playing, Paused, Settings, Instructions, About, Highscore }...
28.09
33
(translation_unit) "#ifndef PONG_GUARD\n#define PONG_GUARD\n\n#include <iostream>\n#include <vector>\n#include <conio.h>\n#include <ctime>\n#include <map>\n#include <fstream>\n#include <Windows.h>\n\n#include "ConsoleGaming.h"\n#include "Vector2D.h"\n#include "menu.h"\n\nenum GameState\n{\n Menu, Playing, Paused, Setti...
224
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 28.09, "nodes": 153, "errors": 0, "source_hash": "cfdbc8ea53ceb9b773584489c8a4403f377c0493f2ecf35217210d0a6ea9dc80", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,868
c
/* * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * The contents of this file constitute Original Code as defined in and * are subject to the Apple Public Source License Version 1.1 (the * "License"). You may not use this file except in compliance with the * L...
32.33
163
(translation_unit) "/*\n * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.\n *\n * @APPLE_LICENSE_HEADER_START@\n *\n * The contents of this file constitute Original Code as defined in and\n * are subject to the Apple Public Source License Version 1.1 (the\n * "License"). You may not use this file except ...
571
0
{"language": "c", "success": true, "metadata": {"lines": 163, "avg_line_length": 32.33, "nodes": 412, "errors": 0, "source_hash": "a5c2f472d1fe6ece76a84edd6a64fce020b1d41cbdb88c2240480b88956b2702", "categorized_nodes": 285}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,869
c
/* * find two repeating elements in a given array * approach 2: using hash array * * */ #include<stdio.h> #include<stdlib.h> #include<math.h> void doHashing(int *arr, int *hash, int n) { int i; for (i = 0; i < n; ++i) hash[arr[i]]++; } void getRepElements(int *hash, int n) { int i; for (i ...
20.57
30
(translation_unit) "/*\n * find two repeating elements in a given array\n * approach 2: using hash array *\n * */\n\n#include<stdio.h>\n#include<stdlib.h>\n#include<math.h>\n\nvoid doHashing(int *arr, int *hash, int n)\n{\n int i;\n for (i = 0; i < n; ++i)\n hash[arr[i]]++;\n}\n\nvoid getRepElements(int *h...
253
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 20.57, "nodes": 157, "errors": 0, "source_hash": "0c915b134308270877f244365ef8a450dd3aa19ea65b841e7366fc70700a189d", "categorized_nodes": 109}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,870
c
// // AppDelegate.h // DroppableViewTest // // Created by <NAME> on 25.03.12. // Copyright 2012 <NAME>. All rights reserved. // #import "TestViewController.h" @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (nonatomic,strong) UIWindow *window; @property (nonatomic,strong) TestViewControll...
25.31
13
(translation_unit) "//\n// AppDelegate.h\n// DroppableViewTest\n//\n// Created by <NAME> on 25.03.12.\n// Copyright 2012 <NAME>. All rights reserved.\n//\n\n\n#import "TestViewController.h"\n\n@interface AppDelegate : UIResponder <UIApplicationDelegate>\n\n@property (nonatomic,strong) UIWindow *window;\n@property (...
57
10
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 25.31, "nodes": 39, "errors": 0, "source_hash": "a41a40c5401f4e6e39a593ddc779f976029b1a4ecb545f1ffdfd739bc4bb8e08", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
4,871
c
#ifndef INPUT_SYSTEM_H #define INPUT_SYSTEM_H /* * Copyright (c) 2018-2019 Confetti Interactive Inc. * * This file is part of The-Forge * (see https://github.com/ConfettiFX/The-Forge). * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file *...
35.55
231
(translation_unit) "#ifndef INPUT_SYSTEM_H\n#define INPUT_SYSTEM_H\n/*\n * Copyright (c) 2018-2019 Confetti Interactive Inc.\n *\n * This file is part of The-Forge\n * (see https://github.com/ConfettiFX/The-Forge).\n *\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreem...
1,633
50
{"language": "c", "success": true, "metadata": {"lines": 231, "avg_line_length": 35.55, "nodes": 1082, "errors": 0, "source_hash": "8dd9aa2945ca62f0775183bb0b908c591086ce2633f28b1280d961a9414a461a", "categorized_nodes": 653}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
4,872
c
/* CompoundDistanceSensor.h - Integrate two Distance Sensor in a single sensor This Class helps to integrate two sensors that measure distance with diferent ranges in a single one, that provides a unique distance. For instructions, go to https://github.com/ivanseidel/Arduino-Sensors Created by <NAME>, June, 2...
24.44
78
(translation_unit) "/*\n CompoundDistanceSensor.h - Integrate two Distance Sensor in a single sensor\n\n This Class helps to integrate two sensors that measure distance with diferent\n ranges in a single one, that provides a unique distance.\n\n For instructions, go to https://github.com/ivanseidel/Arduino-Sensors\n\n...
390
6
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 24.44, "nodes": 230, "errors": 0, "source_hash": "4a30d787131a5e162ded236663972345fa9e69226b5c6f978367c375a2698656", "categorized_nodes": 168}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,873
c
// // InvitorDetailRequest.h // MedicineClient // // Created by xyg on 2017/12/5. // Copyright © 2017年 深圳乐易住智能科技股份有限公司. All rights reserved. // #import <Foundation/Foundation.h> @interface InvitorDetailHeader : NSObject @property (nonatomic, copy)NSString *target; @property (nonatomic, copy)NSString *method; ...
32.38
26
(translation_unit) "//\n// InvitorDetailRequest.h\n// MedicineClient\n//\n// Created by xyg on 2017/12/5.\n// Copyright © 2017年 深圳乐易住智能科技股份有限公司. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface InvitorDetailHeader : NSObject\n\n@property (nonatomic, copy)NSString *target;\n\n@property (n...
232
48
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 32.38, "nodes": 174, "errors": 0, "source_hash": "b28a5345ae074b46d7b65bbaedb65777899d3f8217c2a143236313be5abed52c", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "\n\n@int...
4,874
c
/* * handlers.h * * Created on: Apr 18, 2010 * Author: anizzomc */ #ifndef HANDLERS_H_ #define HANDLERS_H_ #include "types.h" void irqDispatcher(uint32_t irq); void int_08_hand(); #endif /* HANDLERS_H_ */
17
12
(translation_unit) "/*\n * handlers.h\n *\n * Created on: Apr 18, 2010\n * Author: anizzomc\n */\n\n#ifndef HANDLERS_H_\n#define HANDLERS_H_\n\n#include "types.h"\n\nvoid irqDispatcher(uint32_t irq);\n\nvoid int_08_hand();\n\n#endif /* HANDLERS_H_ */\n" (comment) "/*\n * handlers.h\n *\n * Created on: Apr 18, ...
35
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 17.0, "nodes": 23, "errors": 0, "source_hash": "e385ebad6850aea4f25ca7d792d62ae4752bfc69ae6658cda97f9b8085de0ac9", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef H...
4,875
c
#define MSG_PORTID 5555 #include <pthread.h> #include <sys/types.h> #include <sys/ipc.h> #include <sys/msg.h> #include <errno.h> #include <string.h> #include <stdio.h> struct Mymsgbuf { long mtype; char mtext[580]; // (Path(max:255) + Checksum(32) + 3 pad bytes)*2 }; static pthread_t handle; class msgThrea...
21.5
18
(translation_unit) "#define MSG_PORTID 5555\n#include <pthread.h>\n#include <sys/types.h>\n#include <sys/ipc.h>\n#include <sys/msg.h>\n#include <errno.h>\n#include <string.h>\n#include <stdio.h>\n\nstruct Mymsgbuf {\n long mtype;\n char mtext[580]; // (Path(max:255) + Checksum(32) + 3 pad bytes)*2\n};\n\nstatic...
84
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 21.5, "nodes": 53, "errors": 0, "source_hash": "92e34b3a047446e76dbbe7019953eeebe423f769201451be00e988985fa5d9a5", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define MSG...
4,876
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import "MMImageEditItem.h" @interface MMImageEditRectangleItem : MMImageEditItem { struct CGPath *_path; } @property(nonatomic) struct...
32.21
19
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.\n//\n\n#import "MMImageEditItem.h"\n\n@interface MMImageEditRectangleItem : MMImageEditItem\n{\n struct CGPath *_path;\...
164
12
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 32.21, "nodes": 100, "errors": 0, "source_hash": "3bfec577e1bc75a47a24a2e529dfa3f4d70cc3dae635c9403e984d9983d7c394", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
4,877
c
/* GLOBAL CONFIGURATION FILE FOR SYSTEM SETTINGS. */ //Default system display. //Options: // disp_OLED_128x64 // disp_OLED_96x96 #define CONFIG_SYSTEM_DEFAULT_DISPLAY disp_OLED_128x64
33
6
(translation_unit) "/* GLOBAL CONFIGURATION FILE FOR SYSTEM SETTINGS. */\n\n//Default system display.\n//Options: \n// disp_OLED_128x64\n// disp_OLED_96x96\n#define CONFIG_SYSTEM_DEFAULT_DISPLAY disp_OLED_128x64\n" (comment) "/* GLOBAL CONFIGURATION FILE FOR SYSTEM SETTINGS. */" (comment) "//Defa...
10
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 33.0, "nodes": 4, "errors": 0, "source_hash": "9a6765a08f74e6e40170b1878ff66bfa8bcdbd2aba4356a232c6898e2c1c0c50", "categorized_nodes": 1}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define CONFIG...
4,878
c
#include <stdio.h> int A,a,B,b,P; int main () { scanf("%d%d%d%d%d",&A,&a,&B,&b,&P); if (A<=P && B<=P && (A+B<=P || A<=b || B<=a)) printf("Yes\n"); else printf("No\n"); return 0; }
18.5
10
(translation_unit) "#include <stdio.h> \nint A,a,B,b,P; \nint main () \n{ \n scanf("%d%d%d%d%d",&A,&a,&B,&b,&P); \n if (A<=P && B<=P && (A+B<=P || A<=b || B<=a)) \n printf("Yes\n"); \n else printf("No\n"); \n return 0; \n} \n" (preproc_include) "#include <stdio.h> \n" (#include) "#include" (system_lib_string...
126
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 18.5, "nodes": 76, "errors": 0, "source_hash": "0eae4dfc1cdffee8fbe33d3ca15b4b2d67293d288ffafde19483c837580fd29d", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
4,879
c
// Copyright (c) 2018-2019 The EFramework 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, modi...
26.05
133
(translation_unit) "// Copyright (c) 2018-2019 The EFramework 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 right...
784
0
{"language": "c", "success": true, "metadata": {"lines": 133, "avg_line_length": 26.05, "nodes": 483, "errors": 0, "source_hash": "c3973d214d794c20f48f653ac320aba96422de598bd038d5ca698279966e8528", "categorized_nodes": 360}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,880
c
// // NSObject+property.h // JFExtension // // Created by linjianfang on 2017/1/16. // Copyright © 2017年 linjianfang. All rights reserved. // #import <Foundation/Foundation.h> @interface NSObject (property) + (NSArray *)properties; + (BOOL)isClassFromFoundation:(Class) c; @end
20.77
13
(translation_unit) "//\n// NSObject+property.h\n// JFExtension\n//\n// Created by linjianfang on 2017/1/16.\n// Copyright © 2017年 linjianfang. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NSObject (property)\n\n+ (NSArray *)properties;\n+ (BOOL)isClassFromFoundation:(Class) c;\n\n\n@e...
53
5
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 20.77, "nodes": 30, "errors": 0, "source_hash": "6954cd861adc7f52f3525efcc9419b43ea686e8f000eb517f59c5dfc28d0fe76", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
4,881
c
/* * C Program to Find 2 Nodes with Longest Distance and Display * using Inorder Traversal * 40 * /\ * 20 60 * /\ \ * 10 30 80 * \ * 90 */ #include <stdio.h> #include <stdlib.h> struct btnode { int value; struct btno...
21.48
101
(translation_unit) "/*\n * C Program to Find 2 Nodes with Longest Distance and Display\n * using Inorder Traversal\n * 40\n * /\\n * 20 60\n * /\ \\n * 10 30 80\n * \\n * 90\n */\n#include <stdio.h>\n#include <stdlib.h>\n\nstruct btn...
666
0
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 21.48, "nodes": 386, "errors": 0, "source_hash": "ce4f43247af428ead3810dfec5c52c2786e0799c3d8c43accb32aded154645f3", "categorized_nodes": 259}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,882
c
#pragma once #include <vector> #include "frc/Joystick.h" namespace Lib830 { class Gamepad { public: static constexpr float AXIS_THRESHOLD = 0.001; Gamepad() = delete; Gamepad(int port); virtual ~Gamepad(); bool ButtonState(int button); struct Event { enum EventType { BUTTON_EVENT, AXIS_EV...
20.45
31
(translation_unit) "#pragma once\n\n#include <vector>\n#include "frc/Joystick.h"\n\nnamespace Lib830 {\n\n class Gamepad {\n public:\n static constexpr float AXIS_THRESHOLD = 0.001;\n\n Gamepad() = delete;\n Gamepad(int port);\n virtual ~Gamepad();\n\n bool ButtonState(int button);\n\n struct Event {\n enum Eve...
195
7
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 20.45, "nodes": 119, "errors": 0, "source_hash": "2b2d457da54de51d7603dc44742e93c52a699a0551dc238cf66a92f651dce699", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
4,883
c
/* * $Id: $ * * A Wrapper Class for Rockchip Media Process Platform (MPP) * * Copyright (c) 2019-2020 FoilPlanet. All rights reserved. * */ #pragma once #include "rk_mpi.h" #include "mpp_env.h" #include "mpp_mem.h" #include "mpp_log.h" #include "mpp_time.h" #include "mpp_common.h" #ifdef MODULE_TAG # undef M...
28.44
117
(translation_unit) "/*\n * $Id: $\n *\n * A Wrapper Class for Rockchip Media Process Platform (MPP)\n *\n * Copyright (c) 2019-2020 FoilPlanet. All rights reserved.\n *\n */\n\n#pragma once\n\n#include "rk_mpi.h"\n\n#include "mpp_env.h"\n#include "mpp_mem.h"\n#include "mpp_log.h"\n#include "mpp_time.h"\n#include "mpp_c...
476
7
{"language": "c", "success": true, "metadata": {"lines": 117, "avg_line_length": 28.44, "nodes": 288, "errors": 0, "source_hash": "a435b7a87359ef16c96f66818fed786a3fe775eaf7ef0b0489da0fafe9517e7d", "categorized_nodes": 222}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
4,884
c
/************************************************************************* * * * YAP Prolog %W% %G% * * * Yap Prolog was developed at NCCUP - Universidade do Porto * * * * Copyright L.Damas, V.S.Costa and Universidade do Porto 1985-2003 * * * *************************************...
27.64
186
(translation_unit) "/*************************************************************************\n* *\n* YAP Prolog %W% %G%\n* *\n* Yap Prolog was developed at NCCUP - Universidade do Porto *\n* *\n* Copyright L.Damas, V.S.Costa and Universidade do Porto 1985-2003 *\n* *\n*********...
1,249
0
{"language": "c", "success": true, "metadata": {"lines": 186, "avg_line_length": 27.64, "nodes": 676, "errors": 0, "source_hash": "c0190318e5dce32e508a2ce2c715ed8c6fea8fe1e41eb752d59d83f2e85278dd", "categorized_nodes": 544}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,885
c
#if(HAS_STD_2X1_THRUSTERS) #ifndef __THRUSTERS_H_ #define __THRUSTERS_H_ #include <Arduino.h> #include "Device.h" #include "Pin.h" #define MOTOR_NEUTRAL = 1500 #define MOTOR_COUNT = 3 #if(HAS_STD_CAPE) #include "Cape.h" #endif #if(HAS_OROV_CONTROLLERBOARD_25) #include "controllerboard25.h" #endif class Thruster...
19.5
22
(translation_unit) "#if(HAS_STD_2X1_THRUSTERS)\n#ifndef __THRUSTERS_H_\n#define __THRUSTERS_H_\n#include <Arduino.h>\n#include "Device.h"\n#include "Pin.h"\n\n#define MOTOR_NEUTRAL = 1500\n#define MOTOR_COUNT = 3\n\n#if(HAS_STD_CAPE)\n #include "Cape.h"\n#endif\n\n#if(HAS_OROV_CONTROLLERBOARD_25)\n #include "controll...
118
2
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 19.5, "nodes": 73, "errors": 0, "source_hash": "ec0880a47f862789b091099db3ab7d7d8ea8f22946883a0693a3c9d4a2150c7f", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if(HAS_STD_...
4,886
c
/* * Copyright (C) Volition, Inc. 1999. All rights reserved. * * All source code herein is the property of Volition, Inc. You may not sell * or otherwise commercially exploit the source or things you created based on * the source. */ /* * $Logfile: /Freespace2/code/Network/stand_gui.h $ * $Revision: 307 $ *...
37.3
267
(translation_unit) "/*\n * Copyright (C) Volition, Inc. 1999. All rights reserved.\n *\n * All source code herein is the property of Volition, Inc. You may not sell \n * or otherwise commercially exploit the source or things you created based on\n * the source.\n */\n\n/*\n * $Logfile: /Freespace2/code/Network/stand_g...
681
0
{"language": "c", "success": true, "metadata": {"lines": 267, "avg_line_length": 37.3, "nodes": 411, "errors": 0, "source_hash": "5790348a17580e2bdb1eb20541a36ea34e6fe47c05371f0b8d8a8134a90e4df8", "categorized_nodes": 238}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,887
c
/** * @file ImageCommand.h * * @section LICENSE * * The MIT License * * @copyright Copyright (c) 2017 Intel Corporation * * 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 ...
38.56
98
(translation_unit) "/**\n * @file ImageCommand.h\n *\n * @section LICENSE\n *\n * The MIT License\n *\n * @copyright Copyright (c) 2017 Intel Corporation\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"),\n * t...
528
37
{"language": "c", "success": true, "metadata": {"lines": 98, "avg_line_length": 38.56, "nodes": 263, "errors": 0, "source_hash": "8e5a29428834c4eea88dacb57832856beb4fc9a60a7c3fa9d768a99dfdff3336", "categorized_nodes": 200}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
4,888
c
/* * QEMU PowerPC XIVE interrupt controller model * * Copyright (c) 2017-2019, IBM Corporation. * * This code is licensed under the GPL version 2 or later. See the * COPYING file in the top-level directory. */ #ifndef PPC_PNV_XIVE_H #define PPC_PNV_XIVE_H #include "hw/ppc/xive.h" struct PnvChip; #define TYPE...
32.84
73
(translation_unit) "/*\n * QEMU PowerPC XIVE interrupt controller model\n *\n * Copyright (c) 2017-2019, IBM Corporation.\n *\n * This code is licensed under the GPL version 2 or later. See the\n * COPYING file in the top-level directory.\n */\n\n#ifndef PPC_PNV_XIVE_H\n#define PPC_PNV_XIVE_H\n\n#include "hw/ppc/xive.h...
263
0
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 32.84, "nodes": 184, "errors": 0, "source_hash": "21ae0509915e62178a0ed020f1cd650610e9de981de35fdc8fd56975420ce6b4", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,889
c
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:42:55 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/Frameworks/QuickLook.framework/QuickLook * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>. */...
40
19
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Sunday, September 27, 2020 at 11:42:55 AM Mountain Standard Time\n* Operating System: Version 14.0 (Build 18A373)\n* Image Source: /System/Library/Frameworks/QuickLook.framework/QuickLook\n* classdump-dyld is licensed under GPLv3, Copyright ...
112
10
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 40.0, "nodes": 61, "errors": 0, "source_hash": "5ec04edfb5fc18e4f2f612a8e6c767140970b82e9349e9c739e212adb90fba70", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <Qu...
4,890
c
namespace CGAL { /*! \ingroup PkgKernelDKernelObjs An instance \f$ S\f$ of the data type `Sphere_d` is an oriented sphere in some \f$ d\f$-dimensional space. A sphere is defined by \f$ d+1\f$ points (class `Point_d<Kernel>`). We use \f$ A\f$ to denote the array of the defining points. A set \f$ A\f$ of defining point...
26.36
171
(translation_unit) "namespace CGAL {\n\n/*!\n\ingroup PkgKernelDKernelObjs\n\nAn instance \f$ S\f$ of the data type `Sphere_d` is an oriented sphere\nin some \f$ d\f$-dimensional space. A sphere is defined by \f$ d+1\f$ points\n(class `Point_d<Kernel>`). We use \f$ A\f$ to denote the array of the\ndefining points. A se...
395
19
{"language": "c", "success": true, "metadata": {"lines": 171, "avg_line_length": 26.36, "nodes": 241, "errors": 0, "source_hash": "fc664d492e3adc3f97329787cc891619cb6f31a48443c612d3bd040c66084433", "categorized_nodes": 156}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": ...
4,891
c
#include "stdio.h" int main() { float a[64],s; int i,j,d,k=1; scanf("%f", &a[0]); for(i=1 ; scanf("%f", &a[i])!=EOF ; i++) { d=i; for(j=0;j<i;j++) { if(a[i]==a[j]) { i--; break; } } if(d==i)k++; } printf("%d",k); for(j=0;j<i;j++) { w...
11.84
31
(translation_unit) "#include "stdio.h"\n\nint main()\n\n{\n float a[64],s;\n int i,j,d,k=1;\n\n scanf("%f", &a[0]);\n\n for(i=1 ; scanf("%f", &a[i])!=EOF ; i++)\n {\n\n d=i;\n for(j=0;j<i;j++)\n {\n if(a[i]==a[j])\n {\n i--;\n break;\n }\n }\n if(d==i)k++;\n\...
260
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 11.84, "nodes": 143, "errors": 0, "source_hash": "59a2e5d8edc34c691699dbdbd9eb1c347add39108d4f70a97ada8ef89205dc22", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,892
c
// // NamedLocation.h // interface/src/location // // Created by <NAME> on 2/1/14. // Copyright 2013 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #ifndef hifi_NamedLocation_h #define hifi_Na...
31.52
48
(translation_unit) "//\n// NamedLocation.h\n// interface/src/location\n//\n// Created by <NAME> on 2/1/14.\n// Copyright 2013 High Fidelity, Inc.\n//\n// Distributed under the Apache License, Version 2.0.\n// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html\n//\n\n#ifndef hifi_...
337
10
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 31.52, "nodes": 198, "errors": 0, "source_hash": "2f0a3ebc2fb0c7d345d6feb345b8f166d2b29fca3e209eabf43939fdf8e618cc", "categorized_nodes": 152}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,893
c
/** * @file fifo.h * Classical First In First Out buffer implementation */ #ifndef FIFO_H #define FIFO_H /********************* * INCLUDES *********************/ #include "misc_conf.h" #if USE_FIFO != 0 #include <stdint.h> #include <stddef.h> #include <stdbool.h> #include "dyn_mem.h" /********************...
27.11
91
(translation_unit) "/**\n * @file fifo.h\n * Classical First In First Out buffer implementation\n */\n\n#ifndef FIFO_H\n#define FIFO_H\n\n/*********************\n * INCLUDES\n *********************/\n#include "misc_conf.h"\n\n#if USE_FIFO != 0\n#include <stdint.h>\n#include <stddef.h>\n#include <stdbool.h>\n#inclu...
237
0
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 27.11, "nodes": 169, "errors": 0, "source_hash": "8355465b2ba1551618cecfc2dffd413e0d68d8d9947938630a1eb7e28074767b", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,894
c
// Copyright 2015-2018 The NATS Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to ...
37.38
60
(translation_unit) "// Copyright 2015-2018 The NATS Authors\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by a...
262
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 37.38, "nodes": 200, "errors": 0, "source_hash": "ab5f4a69bb794ff1f2baee481a4563e436513b56d66419e15716068799f4d8f2", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,895
c
#ifndef AI_SCRIPTS_H #define AI_SCRIPTS_H #include <SisterRay/SisterRay.h> #include <vector> typedef std::vector<u8> AIScript; typedef struct { u16 initScript; u16 mainScript; u16 genCounter; u16 deathCounter; u16 physCounter; u16 magCounter; u16 endBattle; u16 preActionScript; u1...
32.59
34
(translation_unit) "#ifndef AI_SCRIPTS_H\n#define AI_SCRIPTS_H\n\n#include <SisterRay/SisterRay.h>\n#include <vector>\n\ntypedef std::vector<u8> AIScript;\n\ntypedef struct {\n u16 initScript;\n u16 mainScript;\n u16 genCounter;\n u16 deathCounter;\n u16 physCounter;\n u16 magCounter;\n u16 endBatt...
248
6
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 32.59, "nodes": 161, "errors": 0, "source_hash": "7ce454b2b48b931c8c58a09d1ba263433c1933f7e98fdf844113e4ddcaf354a9", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,896
c
#ifndef UsrSprite_h #define UsrSprite_h #include "SpriteBase.h" class CUsrSprite : public SpriteBase { int score; public: CUsrSprite(int x, int y, int width, int height, int dx, int dy, ACL_Image *img, rect r1); CUsrSprite(CUsrSprite &sprite); ~CUsrSprite(); // void move(int x,int y); void move(...
17.23
26
(translation_unit) "#ifndef UsrSprite_h \n#define UsrSprite_h \n \n#include "SpriteBase.h" \n \nclass CUsrSprite : \n public SpriteBase \n{ \n int score; \npublic: \n CUsrSprite(int x, int y, int width, int height, int dx, int dy, ACL_Image *img, rect r1); \n CUsrSprite(CUsrSprite &sprite); \n ~CUsrSprite(); \n \n// vo...
165
8
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 17.23, "nodes": 108, "errors": 0, "source_hash": "0774ca87e3b02c79e5d67d919a9fe528fe1dccb0bc7e19bec1a6bd06f83a6e9a", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,897
c
#ifndef HGL_GUI_WIDGET_INCLUDE #define HGL_GUI_WIDGET_INCLUDE #include<hgl/type/RectScope.h> #include<hgl/math/Vector.h> namespace hgl { namespace gui { class ThemeEngine; enum Alignment { None =0x00, Left =0x01, Top =0x02, Righ...
38.79
56
(translation_unit) "#ifndef HGL_GUI_WIDGET_INCLUDE\n#define HGL_GUI_WIDGET_INCLUDE\n\n#include<hgl/type/RectScope.h>\n#include<hgl/math/Vector.h>\nnamespace hgl\n{\n namespace gui\n {\n class ThemeEngine;\n\n enum Alignment\n {\n None =0x00,\n Left =0x01,\n ...
409
13
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 38.79, "nodes": 257, "errors": 0, "source_hash": "ec67dfb46e18705c0ba23165dc1cf12e75ba1d41c5e5ac557dcfc405024a1720", "categorized_nodes": 178}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,898
c
// // MEDeallocBlockExecutor.h // METhemeKit // // Created by Yasin on 16/3/7. // Copyright © 2018年 wsl. All rights reserved. // /** * MEDeallocBlockExecutor初始化一个回调,在MEDeallocBlockExecutor释放的时候会进行回调 用于NSObject注销通知 * */ #import <Foundation/Foundation.h> typedef void(^DeallocBlock)(void); @interface DeallocB...
22.59
17
(translation_unit) "//\n// MEDeallocBlockExecutor.h\n// METhemeKit\n//\n// Created by Yasin on 16/3/7.\n// Copyright © 2018年 wsl. All rights reserved.\n//\n/**\n * MEDeallocBlockExecutor初始化一个回调,在MEDeallocBlockExecutor释放的时候会进行回调\n 用于NSObject注销通知\n *\n */\n\n#import <Foundation/Foundation.h>\ntypedef void(^Deallo...
55
6
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 22.59, "nodes": 31, "errors": 0, "source_hash": "08cc5dadb61abd409747bbfdefd0c290638dcd7217ba3042d22f872853cda12a", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ocBlock)(...
4,899