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
#define _XOPEN_SOURCE 700 #include <ctype.h> #include <curses.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> #define CTRL_C 3 #define BLANK_SPACE ' ' #define MISSED_SPACE '.' #define HIT_SPACE '!' #define COLUMNNAMES "ABCDEFGHIJKLMNOPQRSTUVWXYZ" #define MINSIZE 6...
19.96
243
(translation_unit) "#define _XOPEN_SOURCE 700\n#include <ctype.h>\n#include <curses.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <time.h>\n#include <unistd.h>\n\n#define CTRL_C 3\n#define BLANK_SPACE ' '\n#define MISSED_SPACE '.'\n#define HIT_SPACE '!'\n\n#define COLUMNNAMES "ABCDEFGHIJKL...
2,343
0
{"language": "c", "success": true, "metadata": {"lines": 243, "avg_line_length": 19.96, "nodes": 1407, "errors": 0, "source_hash": "8a92431616537260211606ec52d969d34c3b9d40bdd463ae851a44ede52c3c09", "categorized_nodes": 939}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#defin...
12,300
c
#ifndef FRMFRAMELESSWIDGET_H #define FRMFRAMELESSWIDGET_H #include <QWidget> class FramelessWidget; class FramelessWidget2; namespace Ui { class frmFramelessWidget; } class frmFramelessWidget : public QWidget { Q_OBJECT public: explicit frmFramelessWidget(QWidget *parent = 0); ~frmFramelessWidget(); p...
23.38
29
(translation_unit) "fndef FRMFRAMELESSWIDGET_H\n#define FRMFRAMELESSWIDGET_H\n\n#include <QWidget>\nclass FramelessWidget;\nclass FramelessWidget2;\n\nnamespace Ui {\nclass frmFramelessWidget;\n}\n\nclass frmFramelessWidget : public QWidget\n{\n Q_OBJECT\n\npublic:\n explicit frmFramelessWidget(QWidget *parent = ...
175
5
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 23.38, "nodes": 114, "errors": 0, "source_hash": "0876617263897ce94dab20ebca5e83522410443ba5bd3600d7098add48cdf77b", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef F...
12,301
c
#ifndef EFFECT_PARAM_WINDOW_H #define EFFECT_PARAM_WINDOW_H #include "windows.h" #include "src/effect_modules/effects.h" // Effect Parameters Window class class effect_param_window : public windows { public: virtual void draw() override; virtual void update() override; virtual all_windows get_window_id() ...
33.83
24
(translation_unit) "#ifndef EFFECT_PARAM_WINDOW_H\n#define EFFECT_PARAM_WINDOW_H\n\n#include "windows.h"\n#include "src/effect_modules/effects.h"\n\n// Effect Parameters Window class\nclass effect_param_window : public windows\n{\npublic:\n virtual void draw() override;\n virtual void update() override;\n virt...
175
9
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 33.83, "nodes": 121, "errors": 0, "source_hash": "378fc5703daf8313c761786424f63dc53c3314b4d5b5d7fba9f577647fa6c14c", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
12,302
c
#include "types.h" #include "user.h" #include "JVps.h" #define MAX_UPROC 20 //defines the max size of an array of uprocs int main(int argc, char *argv[]) { int entries_used = 0; struct uproc table[MAX_UPROC]; int i; entries_used = getprocs(MAX_UPROC, table); if(entries_used < 0){ printf(2, "Error: getpr...
29.91
23
(translation_unit) "#include "types.h"\n#include "user.h"\n#include "JVps.h"\n\n#define MAX_UPROC 20 //defines the max size of an array of uprocs\n\nint\nmain(int argc, char *argv[])\n{\n int entries_used = 0;\n struct uproc table[MAX_UPROC];\n int i;\n\n entries_used = getprocs(MAX_UPROC, table);\n\n if(entries_u...
245
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 29.91, "nodes": 137, "errors": 0, "source_hash": "e184ee901ed5c991d048f2074b1e49df6e33c7d688bbd5a8a3d5501f4cf7204e", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,303
c
/* stringmerge.c -- Given two sorted files of strings, it creates * a sorted file consisting of all their elements. * The names of the files are passed as command * line parameters. */ #include <stdio.h> #define MAXBUFFER 128 int getline(FILE * fd, char buff[], int nmax){ /* I...
25.36
77
(translation_unit) "/* stringmerge.c -- Given two sorted files of strings, it creates\n * a sorted file consisting of all their elements.\n * The names of the files are passed as command\n * line parameters.\n */\n\n#include <stdio.h>\n#define MAXBUFFER 128\n\nint getline(FILE * fd, cha...
722
0
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 25.36, "nodes": 406, "errors": 0, "source_hash": "3dab6f5d47f6f88e50715f3bb65754a554df67c41545a14a944f260493d15f60", "categorized_nodes": 282}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,304
c
/*! gcc -std=c89 -pedantic -Wall -g -o test2 test2.c libkdtree.a -lm */ /* Extended test program, contributed by <NAME> */ /* This version has been extended by <NAME>, and also hacked to run with simplescalar */ /* Use "COUNTSHELLS" for performance testing, enable PRINT and COUNT for correctness testing */ /* #defi...
30.44
206
(translation_unit) "/*! gcc -std=c89 -pedantic -Wall -g -o test2 test2.c libkdtree.a -lm */\n/* Extended test program, contributed by <NAME> */\n\n/* This version has been extended by <NAME>, and also hacked to run with simplescalar\n */\n\n/* Use "COUNTSHELLS" for performance testing, enable PRINT and COUNT for correc...
1,567
0
{"language": "c", "success": true, "metadata": {"lines": 206, "avg_line_length": 30.44, "nodes": 972, "errors": 0, "source_hash": "a4d0a2198124b42297c0709f9a9b8211288764fba44ca1711038fe168c508578", "categorized_nodes": 664}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
12,305
c
// // LeomaUIWebView.h // Leoma // // Created by CorpDev on 5/4/17. // Copyright © 2017年 Ctrip.Com (Hong Kong) Limited. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIWebView.h> #import "LeomaWebProtocol.h" @class LeomaWebViewPreference; @interface LeomaUIWebView : UIWebView<UIWebViewD...
34.29
14
(translation_unit) "//\n// LeomaUIWebView.h\n// Leoma\n//\n// Created by CorpDev on 5/4/17.\n// Copyright © 2017年 Ctrip.Com (Hong Kong) Limited. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIWebView.h>\n#import "LeomaWebProtocol.h"\n\n@class LeomaWebViewPreference;\n@interface Leom...
82
8
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 34.29, "nodes": 53, "errors": 0, "source_hash": "792127dd315e785cb38421f45f6aea0d3497d72b912b2947394ef0efcabda384", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
12,306
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "font.h" font* font_read(char* filename, int min_char, int char_width) { FILE* fp = fopen(filename, "r"); char line[10]; int width, height, depth; fscanf(fp, "%s\n", line); fprintf(stderr, "[%s]\n", line); if (strcmp(line, "P5") != 0) { ...
26.43
56
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include "font.h"\n\nfont* font_read(char* filename, int min_char, int char_width) {\n FILE* fp = fopen(filename, "r");\n char line[10];\n int width, height, depth;\n fscanf(fp, "%s\n", line);\n fprintf(stderr, "[%s]\n", line);\n if...
692
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 26.43, "nodes": 435, "errors": 0, "source_hash": "79e62c73d9360d713ce8a6a290176867625af677a3504f8c1646bcf52d21f534", "categorized_nodes": 310}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,307
c
// Copyright 2019 <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 writi...
29.8
44
(translation_unit) "// Copyright 2019 <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 applicab...
239
8
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 29.8, "nodes": 133, "errors": 0, "source_hash": "161efd2a4a1fa7c829f06f3043cd56eedb410ebaa93bd4e8c2eab28a50f0981a", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,308
c
/*************************************************************************** file : robot.h created : Sun Jan 30 22:59:40 CET 2000, 2002 copyright : (C) 2000 by <NAME> email : <EMAIL> version : $Id: robot.h,v 1.10 2006/02/20 20:18:...
38.69
91
(translation_unit) "/***************************************************************************\n\n file : robot.h\n created : Sun Jan 30 22:59:40 CET 2000, 2002\n copyright : (C) 2000 by <NAME>\n email : <EMAIL>\n version : $Id: robot....
339
0
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 38.69, "nodes": 263, "errors": 0, "source_hash": "9179e3d587514da48edfc0e0a1080c12391ac2012c50afedbec4b7d41bade075", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,309
c
// // ChatDataInfoModel.h // Blink Talk // // Created by Vicky on 2018/2/8. // Copyright © 2018年 Bailing Cloud. All rights reserved. // #import <Foundation/Foundation.h> @interface ChatDataInfoModel : NSObject @property (nonatomic, strong) NSString *userName; @property (nonatomic, strong) NSString *tunnelName; @...
30.5
18
(translation_unit) "//\n// ChatDataInfoModel.h\n// Blink Talk\n//\n// Created by Vicky on 2018/2/8.\n// Copyright © 2018年 Bailing Cloud. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface ChatDataInfoModel : NSObject\n\n@property (nonatomic, strong) NSString *userName;\n@property (nonatomic...
144
30
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 30.5, "nodes": 107, "errors": 0, "source_hash": "6dc35332300063ca21f1fa655818e7c00811a7adc4f88847e29fb7375a3f51b2", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
12,310
c
// // OKProfileViewController.h // Leaderboard // // Created by <NAME> on Jan/14/13. // Copyright (c) 2013 <NAME>. All rights reserved. // @class OKUserProfileImageView; @interface OKProfileViewController : UIViewController @property (strong, nonatomic) IBOutlet UIButton *unlinkBtn; @property (strong, nonatomic)...
32.64
14
(translation_unit) "//\n// OKProfileViewController.h\n// Leaderboard\n//\n// Created by <NAME> on Jan/14/13.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n@class OKUserProfileImageView;\n\n@interface OKProfileViewController : UIViewController\n\n@property (strong, nonatomic) IBOutlet UIButton *unlinkBt...
96
17
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 32.64, "nodes": 64, "errors": 0, "source_hash": "006c5edb1c5d05f7bc992bfaaf3ed8419884aed913b22176d9680db2be457edb", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nu...
12,311
c
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include "uimpl.h" void map(struct mapcont *mc) { if ( mc->mtype == MT1 ) { const uint32_t (*fun4)(uint32_t) = mc->fun; int i; #pragma omp parallel for for (i = 0; i < mc->param->size; ++i) { *(((ui...
27.32
53
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <stdint.h>\n\n#include "uimpl.h"\n\nvoid map(struct mapcont *mc)\n{\n if ( mc->mtype == MT1 )\n {\n const uint32_t (*fun4)(uint32_t) = mc->fun;\n int i;\n #pragma omp parallel for \n for (i = 0; i < mc->param->size; ...
606
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 27.32, "nodes": 394, "errors": 0, "source_hash": "4bf10af35fb0deb39fc441af9264b616b33e645d743aebf692cef72f3243edce", "categorized_nodes": 253}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,312
c
#ifndef GRAPH_CONNECTED_COMPONENTS_H #define GRAPH_CONNECTED_COMPONENTS_H #include "UndirectedGraph.h" #include <KrisLibrary/utils/unionfind.h> namespace Graph { class ConnectedComponents { public: template <class Node,class Edge> void Compute(const UndirectedGraph<Node,Edge>& G) { sets.Initialize(G.nodes.s...
38.62
32
(translation_unit) "#ifndef GRAPH_CONNECTED_COMPONENTS_H\n#define GRAPH_CONNECTED_COMPONENTS_H\n\n#include "UndirectedGraph.h"\n#include <KrisLibrary/utils/unionfind.h>\n\nnamespace Graph {\n\nclass ConnectedComponents\n{\n public:\n template <class Node,class Edge>\n void Compute(const UndirectedGraph<Node,Edge>& G)...
528
9
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 38.62, "nodes": 311, "errors": 0, "source_hash": "b55464be9dab8da64e3985df76826ba3369b8aeb9a1edd877dd40da6b6d313ce", "categorized_nodes": 224}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,313
c
enum struct Pointer_Mode { Message, Raw, Direct }; UNDERLYING_TYPE_META(Pointer_Mode, u8) IS_ENUM_META(Pointer_Mode) static Input_Pointer input_pointer; static bool input_pointer_enable = true; static Pointer_Mode pointer_position_mode = Pointer_Mode::Raw; static Pointer_Mode pointer_keys_mode = Pointer_Mode::...
34.32
117
(translation_unit) "enum struct Pointer_Mode {\n Message,\n Raw,\n Direct\n};\nUNDERLYING_TYPE_META(Pointer_Mode, u8)\nIS_ENUM_META(Pointer_Mode)\n\nstatic Input_Pointer input_pointer;\nstatic bool input_pointer_enable = true;\n\nstatic Pointer_Mode pointer_position_mode = Pointer_Mode::Raw;\nstatic Pointer_Mode pointe...
975
16
{"language": "c", "success": true, "metadata": {"lines": 117, "avg_line_length": 34.32, "nodes": 546, "errors": 0, "source_hash": "126838c99b7b384fc1075ffce58047f1c17dd8fad28167e015d0619492dc64cd", "categorized_nodes": 418}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": ...
12,314
c
// @doc SCREENDIALOG // $Id: ScreenDialog.h 1.3.1.1 2012/03/08 06:55:14EST 277133 Development 277133(2012/03/08 06:55:49EST) $ // @module ScreenDialog.h | // // Declaration of ScreenDialog. #if !defined(AFX_SCREENDIALOG_H__DD1EA815_E374_11D2_B3E9_00104B256866__INCLUDED_) #define AFX_SCREENDIALOG_H__DD1EA815_E37...
26.28
53
(translation_unit) "// @doc SCREENDIALOG \n// $Id: ScreenDialog.h 1.3.1.1 2012/03/08 06:55:14EST 277133 Development 277133(2012/03/08 06:55:49EST) $ \n// @module ScreenDialog.h | \n// \n// Declaration of ScreenDialog. \n \n#if !defined(AFX_SCREENDIALOG_H__DD1EA815_E374_11D2_B3E9_00104B256866__INCLUDED_) \n#define AFX_S...
149
4
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 26.28, "nodes": 85, "errors": 0, "source_hash": "d34a68b209bbc78215edef7322d95ef4a953692de758ee585172f82c93029444", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !define...
12,315
c
/* * POK header * * The following file is a part of the POK project. Any modification should * be made according to the POK licence. You CANNOT use this file or a part * of a file for your own project. * * For more information on the POK licence, please see our LICENCE FILE * * Pl...
32.87
83
(translation_unit) "/*\n * POK header\n *\n * The following file is a part of the POK project. Any modification should\n * be made according to the POK licence. You CANNOT use this file or a part\n * of a file for your own project.\n *\n * For more information on the POK licence, please se...
672
0
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 32.87, "nodes": 443, "errors": 0, "source_hash": "4ced3ee5cab1303a0c7a488319addabfb6c7d50ac81b88de01dc0590cda024a4", "categorized_nodes": 319}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef...
12,316
c
// // UploadImageManager.h // Dongdaemun // // Created by 刘伟 on 15/7/15. // Copyright (c) 2015年 sure. All rights reserved. // #import <Foundation/Foundation.h> @interface UploadImageManager : NSObject @property (nonatomic,assign) BOOL showProgressHUD; //多张图片上传完成 @property (nonatomic,copy) void (^completion)(Upl...
26.52
29
(translation_unit) "//\n// UploadImageManager.h\n// Dongdaemun\n//\n// Created by 刘伟 on 15/7/15.\n// Copyright (c) 2015年 sure. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface UploadImageManager : NSObject\n\n@property (nonatomic,assign) BOOL showProgressHUD;\n\n//多张图片上传完成\n@property (non...
166
20
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 26.52, "nodes": 111, "errors": 0, "source_hash": "6a0d1d6edfc6e0a2b548a77f6396b6097ccdd22e3a6ac295c27a5b89334a829d", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "t <Found...
12,317
c
// Copyright (c) 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROMEOS_DBUS_SYSTEM_CLOCK_SYSTEM_CLOCK_CLIENT_H_ #define CHROMEOS_DBUS_SYSTEM_CLOCK_SYSTEM_CLOCK_CLIENT_H_ #include <stdint.h> #include "ba...
42.99
76
(translation_unit) "// Copyright (c) 2013 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef CHROMEOS_DBUS_SYSTEM_CLOCK_SYSTEM_CLOCK_CLIENT_H_\n#define CHROMEOS_DBUS_SYSTEM_CLOCK_SYSTEM_CLOCK_CLIENT_H_\n\n#inclu...
454
21
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 42.99, "nodes": 276, "errors": 0, "source_hash": "3be2930ac3dcdc232829831c829c90cdf755d87412ebec8e62ae6c4587177c5f", "categorized_nodes": 179}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,318
c
/**************************************************************************** ** ** Copyright (C) 2017 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of Qt Creator. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accordance w...
37.58
64
(translation_unit) "/****************************************************************************\n**\n** Copyright (C) 2017 The Qt Company Ltd.\n** Contact: https://www.qt.io/licensing/\n**\n** This file is part of Qt Creator.\n**\n** Commercial License Usage\n** Licensees holding valid commercial Qt licenses may use ...
327
18
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 37.58, "nodes": 197, "errors": 0, "source_hash": "760cf814c796771415b4f3d4da9a0110bbdf28e3cebe3971910d1081f12beb92", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
12,319
c
#pragma once #include <cctype> #include "dxbc_common.h" #include "dxbc_decoder.h" #include "dxbc_enums.h" #include "dxbc_reader.h" namespace dxvk { /** * \brief Signature entry * * Stores the semantic name of an input or * output and the corresponding register. */ struct DxbcSgnEntry { std...
22.38
65
(translation_unit) "#pragma once\n\n#include <cctype>\n\n#include "dxbc_common.h"\n#include "dxbc_decoder.h"\n#include "dxbc_enums.h"\n#include "dxbc_reader.h"\n\nnamespace dxvk {\n \n /**\n * \brief Signature entry\n * \n * Stores the semantic name of an input or\n * output and the corresponding register.\n ...
284
14
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 22.38, "nodes": 151, "errors": 0, "source_hash": "535982fe26f799b5f6814d5c1bea535c2afd9958627dc507343275db1d45a781", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
12,320
c
//************************************ bs::framework - Copyright 2018 <NAME> **************************************// //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// #pragma once #include "BsNullPrerequisites.h" #include "Image/BsTexture.h" #...
39.67
61
(translation_unit) "//************************************ bs::framework - Copyright 2018 <NAME> **************************************//\n//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//\n#pragma once\n\n#include "BsNullPrerequisites.h"\n#incl...
467
34
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 39.67, "nodes": 293, "errors": 0, "source_hash": "0ce6b912239a6cab45e5d8bed0dbbaeb1e1d9be0aafc43f22b972ca80335f40d", "categorized_nodes": 186}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
12,321
c
/*! \ingroup PkgTDS3Concepts \cgalConcept \cgalRefines TriangulationDataStructure_3::Vertex The concept TriangulationDSVertexBase_3 describes the requirements for the vertex base class of a CGAL::Triangulation_data_structure_3<Vb,Cb>. Note that if the `CGAL::Triangulation_data_structure_3` is plugged into a triangu...
35.36
98
(translation_unit) "/*!\n\ingroup PkgTDS3Concepts\n\cgalConcept\n\n\cgalRefines TriangulationDataStructure_3::Vertex\n\nThe concept TriangulationDSVertexBase_3 describes the requirements for the vertex base class\nof a CGAL::Triangulation_data_structure_3<Vb,Cb>.\n\nNote that if the `CGAL::Triangulation_data_structure_...
189
8
{"language": "c", "success": true, "metadata": {"lines": 98, "avg_line_length": 35.36, "nodes": 102, "errors": 0, "source_hash": "d9ef8211e6a37c0a1c7ae305bd9b1768913ce971a951a33327043c64b8e56e2c", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "c...
12,322
c
#pragma once class DX11RendererImpl; class DX11Renderer { DX11RendererImpl *m_impl = nullptr; public: DX11Renderer(); ~DX11Renderer(); void* NewFrameToRenderTarget(void *deviceContext, int width, int height, const float *clear); void DrawTeapot(void *deviceContext, const float *viewProj...
26.15
13
(translation_unit) "#pragma once \n \nclass DX11RendererImpl; \nclass DX11Renderer \n{ \n DX11RendererImpl *m_impl = nullptr; \n \npublic: \n DX11Renderer(); \n ~DX11Renderer(); \n void* NewFrameToRenderTarget(void *deviceContext, int width, int height, const float *clear); \n void DrawTeapot(void *devic...
105
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 26.15, "nodes": 68, "errors": 0, "source_hash": "7a1b5233f8c4075ccf336eb611b427fad9b23dc55d91fc94c03cad5d6b3ff8f7", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
12,323
c
/* * This file is part of the coreboot project. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of the License. * * This program is distributed in the hope that it will be use...
35.67
30
(translation_unit) "/*\n * This file is part of the coreboot project.\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; version 2 of the License.\n *\n * This program is distributed in t...
113
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 35.67, "nodes": 83, "errors": 0, "source_hash": "0970271edd55fdc46cdb44f8d553f83c8e40683b95b6b29113c086c88de3fba4", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,324
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import <Foundation/Foundation.h> @class NSString; @interface CUIPSDLayerEffectComponent : NSObject { BOOL _visible; NSString *_name; } @property(retain) NSString *name; // @sy...
29.65
20
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import <Foundation/Foundation.h>\n\n@class NSString;\n\n@interface CUIPSDLayerEffectComponent : NSObject\n{\n BOOL _visible;\n NSString *_name;\n}\n\n@pro...
152
18
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 29.65, "nodes": 95, "errors": 0, "source_hash": "a75b0f7962e420379a0689eb733c1df78d66d4344a565c7a6bd1ccdb3b979fdd", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
12,325
c
/** * Copyright 2018-2019 Dynatrace LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
34.46
195
(translation_unit) "/**\n* Copyright 2018-2019 Dynatrace LLC\n*\n* Licensed under the Apache License, Version 2.0 (the "License");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by ...
795
44
{"language": "c", "success": true, "metadata": {"lines": 195, "avg_line_length": 34.46, "nodes": 383, "errors": 0, "source_hash": "958f3c9dea19fc3911ec975065b3cb55c4865087aa0fab5f3fafc7caa13119a7", "categorized_nodes": 262}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
12,326
c
// // TodoListTableViewController.h // Todo // @interface TodoListTableViewController -(IBAction) unwindToList:(UIStoryboardSegue *) segue; @end
20
7
(translation_unit) "//\n// TodoListTableViewController.h\n// Todo\n//\n\n@interface TodoListTableViewController\n\n-(IBAction) unwindToList:(UIStoryboardSegue *) segue;\n\n@end" (comment) "//" (comment) "// TodoListTableViewController.h" (comment) "// Todo" (comment) "//" (ERROR) "@interface TodoListTable...
28
4
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 20.0, "nodes": 15, "errors": 0, "source_hash": "cd91e96bfd4334ac9659529f2e492f18bb743f5614626f00a064cd94fb2c4115", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface TodoList...
12,327
c
#pragma once #ifndef TEXTURE_2D_H #define TEXTURE_2D_H #include "texture.h" #include <iostream> #include <string> class Texture2D : public Texture { public: Texture2D(const std::string& fileName, bool clamp = false); Texture2D(); ~Texture2D(); GLubyte* data; }; #endif //TEXTURE_2D_H
17
17
(translation_unit) "#pragma once \n#ifndef TEXTURE_2D_H \n#define TEXTURE_2D_H \n \n#include "texture.h" \n#include <iostream> \n#include <string> \n \nclass Texture2D : public Texture \n{ \npublic: \n Texture2D(const std::string& fileName, bool clamp = false); \n Texture2D(); \n ~Texture2D(); \n GLubyte* data; \n}; \n...
87
4
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 17.0, "nodes": 52, "errors": 0, "source_hash": "a11bb24414b0c2845ba9276a0e895516bd26e15606801d896f4f78f2698c536a", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
12,328
c
#ifndef SIMPARAMS_H #define SIMPARAMS_H #include "libs/nr3.h" struct SimParams { SimParams ( int argc , char *argv[] ) ; Int params_argc ; char **params_argv ; vector <string> param_names ; vector <string> param_types ; vector <string> param_values ; char* get_param ( string param_name ...
27.89
19
(translation_unit) "#ifndef SIMPARAMS_H\n#define SIMPARAMS_H\n\n#include "libs/nr3.h"\n\nstruct SimParams\n{\n SimParams ( int argc , char *argv[] ) ;\n\n Int params_argc ;\n char **params_argv ;\n\n vector <string> param_names ;\n vector <string> param_types ;\n vector <string> param_values ;\n\n ...
140
5
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 27.89, "nodes": 100, "errors": 0, "source_hash": "51879f9c3843c39ff2ed2355ee1f9dd9761d9f1ab51139ea2e2446c8fe316441", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
12,329
c
#pragma once struct HorizontalCollider { //Defines the left and right bounds for horizontal collision int offsetX = 0; int width = 0; bool isTrigger = false; };
19.62
8
(translation_unit) "#pragma once\nstruct HorizontalCollider\n{\n //Defines the left and right bounds for horizontal collision\n int offsetX = 0;\n int width = 0;\n bool isTrigger = false;\n};" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (struct_specifier) "struct Horiz...
33
3
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 19.62, "nodes": 24, "errors": 0, "source_hash": "383b7cdc7116a4a715423045b0c06f9ff8c7abbf90f49027c090f70abc3b67f8", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
12,330
c
// Copyright 2016 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #pragma once #include <vector> #include "ftl/macros.h" #include "escher/scene/object.h" namespace escher { // The model to render. // // TODO(jeffbrown...
35.45
31
(translation_unit) "// Copyright 2016 The Fuchsia Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#pragma once\n\n#include <vector>\n\n#include "ftl/macros.h"\n#include "escher/scene/object.h"\n\nnamespace escher {\n\n// The mode...
200
5
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 35.45, "nodes": 107, "errors": 0, "source_hash": "aced2f2da981723400026586cf9c546c8764ab87dfb5b0cc6f4c527549d75cf8", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
12,331
c
// Copyright 2020 The VGC Developers // See the COPYRIGHT file at the top-level directory of this distribution // and at https://github.com/vgc/vgc/blob/master/COPYRIGHT // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may o...
38.17
77
(translation_unit) "// Copyright 2020 The VGC Developers\n// See the COPYRIGHT file at the top-level directory of this distribution\n// and at https://github.com/vgc/vgc/blob/master/COPYRIGHT\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with ...
289
12
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 38.17, "nodes": 152, "errors": 0, "source_hash": "f93f97cd5075781f51ac306f096bec268502725cfa56d5cceb7bc2b7af51b365", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,332
c
/* File: ESP32Storage.h Author: <NAME> Date: 2016.09.05 Copyright 2016 Manuvr, Inc Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless requir...
36.61
51
(translation_unit) "/*\nFile: ESP32Storage.h\nAuthor: <NAME>\nDate: 2016.09.05\n\nCopyright 2016 Manuvr, Inc\n\nLicensed under the Apache License, Version 2.0 (the "License");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/lice...
279
2
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 36.61, "nodes": 182, "errors": 0, "source_hash": "7560a74440ec8b765aec5b0a6d9effc8bb3eed8bb96866401e99273c37a35b21", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,333
c
#ifndef _MATRIX_TEST_GROUP_H_ #define _MATRIX_TEST_GROUP_H_ /*--------------------------------------------------------------------------------*/ /* Declare Test Groups */ /*--------------------------------------------------------------------------------*/ JTEST_DECLARE_GROUP(matrix_tests); #endif /* _MATRIX_TEST_GROU...
45.57
7
(translation_unit) "#ifndef _MATRIX_TEST_GROUP_H_\n#define _MATRIX_TEST_GROUP_H_\n\n/*--------------------------------------------------------------------------------*/\n/* Declare Test Groups */\n/*--------------------------------------------------------------------------------*/\nJTEST_DECLARE_GROUP(matrix_tests);\n\...
20
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 45.57, "nodes": 11, "errors": 0, "source_hash": "389ee38fdcef4791fabe08e7697ad94f66d70033fcfd838b348273fdc8c3dadf", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _M...
12,334
c
// // ViewController.h // DesignPattern // // Created by 于鸿鹏 on 2021/3/2. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
14.5
10
(translation_unit) "//\n// ViewController.h\n// DesignPattern\n//\n// Created by 于鸿鹏 on 2021/3/2.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ViewController : UIViewController\n\n\n@end\n\n" (comment) "//" (comment) "// ViewController.h" (comment) "// DesignPattern" (comment) "//" (comment) "// Created...
21
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 14.5, "nodes": 12, "errors": 0, "source_hash": "e3131182dea024b3e04989a773be0a857ae663ac3b8e4bdb16eb354bbbb70af1", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "t <UIKit/UI...
12,335
c
// © 2021 Qualcomm Innovation Center, Inc. All rights reserved. // // SPDX-License-Identifier: BSD-3-Clause #include <stddef.h> #include <stdint.h> #include <types.h> #include <arch_def.h> #include "device_tree.h" #define ARGC 4 static char *argv[ARGC]; #define ENVC 1 static char *envp[ENVC] = { "rootvm" }; exter...
26.61
31
(translation_unit) "// © 2021 Qualcomm Innovation Center, Inc. All rights reserved.\n//\n// SPDX-License-Identifier: BSD-3-Clause\n\n#include <stddef.h>\n#include <stdint.h>\n\n#include <types.h>\n\n#include <arch_def.h>\n\n#include "device_tree.h"\n\n#define ARGC 4\nstatic char *argv[ARGC];\n#define ENVC 1\nstatic cha...
204
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 26.61, "nodes": 124, "errors": 0, "source_hash": "187411cc3eac041e568a1f9c2712f1c55d8e58d8f19ffa300dca124305941b87", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "inclu...
12,336
c
// // main.c // c-only-program // // not finished and not going to #include <stdio.h> #include <string.h> #include <time.h> #include <stdlib.h> #define MAX_SOL_TO_PRINT_wx 50 #define START_A_B_wx 2 #define MAXBASE 64 int base_wx; int width_wx; // int vis_wx[10]; //int *vis_wx; // if use dynamics; see below for ...
33.05
221
(translation_unit) "//\n// main.c\n// c-only-program\n//\n// not finished and not going to \n\n#include <stdio.h>\n#include <string.h>\n#include <time.h>\n#include <stdlib.h>\n\n#define MAX_SOL_TO_PRINT_wx 50\n#define START_A_B_wx 2\n#define MAXBASE 64\n\nint base_wx;\nint width_wx;\n\n// int vis_wx[10];\n\n//int *vi...
1,570
0
{"language": "c", "success": true, "metadata": {"lines": 221, "avg_line_length": 33.05, "nodes": 989, "errors": 0, "source_hash": "3104757c6b3f5c3a09e2a71e5b03705d169a69e74073dee6d72ec7fae392d528", "categorized_nodes": 670}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,337
c
#include "../include/sum_array.h" /* * Problem 1 from https://blog.svpino.com/2015/05/07/five-programming- * problems-every-software-engineer-should-be-able-to-solve-in-less-than-1-hour * * Write three functions that compute the sum of the numbers in a given * list using a for-loop, a while-loop, and recursion....
19.64
39
(translation_unit) "#include "../include/sum_array.h"\n\n/*\n * Problem 1 from https://blog.svpino.com/2015/05/07/five-programming-\n * problems-every-software-engineer-should-be-able-to-solve-in-less-than-1-hour\n * \n * Write three functions that compute the sum of the numbers in a given \n * list using a for-loop, a...
220
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 19.64, "nodes": 143, "errors": 0, "source_hash": "7b7848e958c23d679de7615825c1813ac3a639f9f086c29decdca5dd56bd70c1", "categorized_nodes": 96}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
12,338
c
#include <cairo.h> #include <cairo-script-interpreter.h> #include <stdio.h> #include <stdlib.h> static cairo_status_t write_func (void *closure, const unsigned char *data, unsigned int length) { if (fwrite (data, length, 1, closure) != 1) return CAIRO_STATUS_WRITE_ERROR; return CAIRO_STATUS_SUCCES...
22.22
63
(translation_unit) "#include <cairo.h>\n#include <cairo-script-interpreter.h>\n\n#include <stdio.h>\n#include <stdlib.h>\n\nstatic cairo_status_t\nwrite_func (void *closure,\n const unsigned char *data,\n unsigned int length)\n{\n if (fwrite (data, length, 1, closure) != 1)\n return CAIRO_STATUS_WRITE_ERROR;...
528
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 22.22, "nodes": 294, "errors": 0, "source_hash": "bf694e9e5e744d049533d7330d97fd4430c4313f6e1d327d7d5a4bc24c2111fa", "categorized_nodes": 217}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,339
c
/* ** EPITECH PROJECT, 2020 ** My Defender ** File description: ** Windows related function */ #include "include/function.h" typedef gameobject_t (*func)(map_t); const func tabl_func[4] = { &init_ennemi_0, &init_ennemi_1, &init_ennemi_2, &init_ennemi_3 }; char *path_from_round(int round) { char *...
24.69
55
(translation_unit) "/*\n** EPITECH PROJECT, 2020\n** My Defender\n** File description:\n** Windows related function\n*/\n\n#include "include/function.h"\n\ntypedef gameobject_t (*func)(map_t);\nconst func tabl_func[4] =\n{\n &init_ennemi_0,\n &init_ennemi_1,\n &init_ennemi_2,\n &init_ennemi_3\n};\n\nchar *p...
544
0
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 24.69, "nodes": 345, "errors": 0, "source_hash": "e1644d72893f080512e05d258f344ea5eb2289f75fa54514ee58503de1ac0767", "categorized_nodes": 256}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,340
c
#ifndef h_iomain_h #define h_iomain_h #define NOP __asm__("nop\n\t") /* nop - 1 cycle */ void blink_forever ( void ); #endif
16.12
8
(translation_unit) "#ifndef h_iomain_h\n#define h_iomain_h\n\n\n#define NOP __asm__("nop\n\t") /* nop - 1 cycle */\n\n\n\nvoid blink_forever ( void );\n\n\n#endif\n" (preproc_ifdef) "#ifndef h_iomain_h\n#define h_iomain_h\n\n\n#define NOP __asm__("nop\n\t") /* nop - 1 cycle */\n\n\n\nvoid blink_fore...
23
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 16.12, "nodes": 18, "errors": 0, "source_hash": "5ef081cf0d27a0bbba6e540c13490819da3bd8f8a0445e26d980362868bb20ff", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef h...
12,341
c
// // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 <NAME>. // #import <objc/NSObject.h> @class NSURLSessionTask; @interface NDPowerlogReporter : NSObject { NSURLSessionTask *_task; // 8 = 0x8 _Bool _hasSta...
38
22
(translation_unit) "//\n// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20).\n//\n// Copyright (C) 1997-2019 <NAME>.\n//\n\n#import <objc/NSObject.h>\n\n@class NSURLSessionTask;\n\n@interface NDPowerlogReporter : NSObject\n{\n NSURLSessionTask *_ta...
152
12
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 38.0, "nodes": 85, "errors": 0, "source_hash": "d8d7506e5eb0fb168836f5b441c1221e4ccb634fbd2156ba6eaf7daa5425bb73", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <o...
12,342
c
#ifndef MAILPRIVACY_TOOLS_PRIVATE_H #define MAILPRIVACY_TOOLS_PRIVATE_H #include <libetpan/mailmessage.h> #include <libetpan/mailprivacy_types.h> enum { NO_ERROR_PASSPHRASE = 0, ERROR_PASSPHRASE_COMMAND, ERROR_PASSPHRASE_FILE }; int mailprivacy_spawn_and_wait(char * command, char * passphrase, char * stdo...
28
13
(translation_unit) "#ifndef MAILPRIVACY_TOOLS_PRIVATE_H\n\n#define MAILPRIVACY_TOOLS_PRIVATE_H\n\n#include <libetpan/mailmessage.h>\n#include <libetpan/mailprivacy_types.h>\n\nenum {\n NO_ERROR_PASSPHRASE = 0,\n ERROR_PASSPHRASE_COMMAND,\n ERROR_PASSPHRASE_FILE\n};\n\nint mailprivacy_spawn_and_wait(char * command, c...
67
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 28.0, "nodes": 54, "errors": 0, "source_hash": "02f3fe8cd32b07455cb9bd25e18afd8e40c7d8629e88f82f5f3402ab341d2d00", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef M...
12,343
c
/* * Copyright (c) 2017 <NAME> * * SPDX-License-Identifier: Apache-2.0 */ #include <stdbool.h> #include <stdlib.h> #include <limits.h> #include "bs_tracing.h" #include "bs_oswrap.h" #include "bs_dump_files.h" #include "argparse.h" #include "NRF_hw_args.h" #include "bs_cmd_line.h" #include "bs_dynargs.h" #include "b...
26.78
162
(translation_unit) "/*\n * Copyright (c) 2017 <NAME>\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n#include <stdbool.h>\n#include <stdlib.h>\n#include <limits.h>\n#include "bs_tracing.h"\n#include "bs_oswrap.h"\n#include "bs_dump_files.h"\n#include "argparse.h"\n#include "NRF_hw_args.h"\n#include "bs_cmd_line.h"\n#...
1,152
0
{"language": "c", "success": true, "metadata": {"lines": 162, "avg_line_length": 26.78, "nodes": 618, "errors": 0, "source_hash": "d02f5673b4c5bfb7c602aa19822a2cff67ed6fd42a2eeeae6c88de2b9bdbb779", "categorized_nodes": 444}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,344
c
// // UIScrollView+Enhanced.h // MEKitObjC // // Created by <NAME> on 2015/03/20. // Copyright (c) 2015年 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface UIScrollView (Enhanced) /** @brief スクロールが止まっているか判定する @return YESならば止まっている,NOなら動いている */ -(BOOL)isScrollStopped; @end
18.67
15
(translation_unit) "//\n// UIScrollView+Enhanced.h\n// MEKitObjC\n//\n// Created by <NAME> on 2015/03/20.\n// Copyright (c) 2015年 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIScrollView (Enhanced)\n\n/**\n @brief スクロールが止まっているか判定する\n @return YESならば止まっている,NOなら動いている\n */\n-(BOOL)isScroll...
36
4
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 18.67, "nodes": 19, "errors": 0, "source_hash": "c0397882088facc05b023ca468659fdb95acc46692e441621e48ceab180a2f89", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <UI...
12,345
c
// // Copyright 2014 <NAME>, All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // or in the the file LICENSE-2.0.txt i...
25.79
48
(translation_unit) "//\n// Copyright 2014 <NAME>, All Rights Reserved.\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n// http://www.apache.org/licenses/LICENSE-2.0\n// or in the...
122
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 25.79, "nodes": 99, "errors": 0, "source_hash": "fd174dcdec8c6139fd96166e08a1b98272a3f7b7fdb843f9a588008d56f470be", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,346
c
/* * Copyright (C) 2018 Intel Corporation. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef HV_ARCH_H #define HV_ARCH_H #include <cpu.h> #include <gdt.h> #include <idt.h> #include <apicreg.h> #include <ioapic.h> #include <lapic.h> #include <msr.h> #include <io.h> #include <vcpu.h> #includ...
18.29
34
(translation_unit) "/*\n * Copyright (C) 2018 Intel Corporation. All rights reserved.\n *\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n#ifndef HV_ARCH_H\n#define HV_ARCH_H\n\n#include <cpu.h>\n#include <gdt.h>\n#include <idt.h>\n#include <apicreg.h>\n#include <ioapic.h>\n#include <lapic.h>\n#include <msr.h>\n#incl...
88
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 18.29, "nodes": 85, "errors": 0, "source_hash": "2c7899b34b88c3c4244296580354fa331143cef804e508a3c647abe5b0d63300", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,347
c
#ifndef USRMAIN_H #define USRMAIN_H #include <QWidget> #include <QListWidgetItem> #include "listitem.h" #include "moredetail.h" #include "manager.h" #include <QPainter> #include <QMouseEvent> QT_BEGIN_NAMESPACE namespace Ui { class UsrMain; } QT_END_NAMESPACE class UsrMain : public QDialog { Q_OBJECT public: ...
23.36
53
(translation_unit) "#ifndef USRMAIN_H\n#define USRMAIN_H\n\n#include <QWidget>\n#include <QListWidgetItem>\n#include "listitem.h"\n#include "moredetail.h"\n#include "manager.h"\n#include <QPainter>\n#include <QMouseEvent>\n\nQT_BEGIN_NAMESPACE\nnamespace Ui { class UsrMain; }\nQT_END_NAMESPACE\n\nclass UsrMain : public...
346
12
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 23.36, "nodes": 236, "errors": 0, "source_hash": "980b0b2d166c4fd8693e79937c2fc41b2d499276588dd1c6b42d17cec3fccf38", "categorized_nodes": 153}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,348
c
// Fill out your copyright notice in the Description page of Project Settings. #pragma once // c++ Header #include <thread> #include <string> #include <mutex> // ppl #include <concurrent_queue.h> #include "CustomClientInfo.h" #include "../../Protocol.hh" #include "Engine/Texture.h" #include "Engine/Texture2D.h" #i...
33.39
70
(translation_unit) "// Fill out your copyright notice in the Description page of Project Settings.\n\n#pragma once\n\n// c++ Header\n#include <thread>\n#include <string>\n#include <mutex>\n\n// ppl\n#include <concurrent_queue.h>\n\n#include "CustomClientInfo.h"\n#include "../../Protocol.hh"\n\n#include "Engine/Texture....
427
8
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 33.39, "nodes": 246, "errors": 0, "source_hash": "704787fd3ac21d27b7aebf4e58be2ffeea8c3738ca0c9656e61b84710acb17df", "categorized_nodes": 180}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
12,349
c
#include <unico.h> int put_unicop_utf16 (unsigned char character, unicop_utf16 *uniout){ int status = put_unicop_utf16_manually(character, uniout); if (status == UNICOS_NOT_ENOUGH_MEMORY){ size_t size = real_size_unicos(uniout->unicos); int status = extend_unicos(size * 2, uniout->unicos); if (status) ...
35.82
11
(translation_unit) "#include <unico.h>\n\nint put_unicop_utf16 (unsigned char character, unicop_utf16 *uniout){\n int status = put_unicop_utf16_manually(character, uniout);\n if (status == UNICOS_NOT_ENOUGH_MEMORY){\n size_t size = real_size_unicos(uniout->unicos);\n int status = extend_unicos(size * 2, uniout-...
111
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 35.82, "nodes": 73, "errors": 0, "source_hash": "cf4d60824235f20eed6830e715bfb0bbad6f29f7051db2103a25917952727bc6", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
12,350
c
// // SNAppDelegate.h // SNCocoapodsLib // // Created by sunnymoteng on 12/22/2016. // Copyright (c) 2016 sunnymoteng. All rights reserved. // @import UIKit; @interface SNAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
24.27
11
(translation_unit) "//\n// SNAppDelegate.h\n// SNCocoapodsLib\n//\n// Created by sunnymoteng on 12/22/2016.\n// Copyright (c) 2016 sunnymoteng. All rights reserved.\n//\n\n@import UIKit;\n\n@interface SNAppDelegate : UIResponder <UIApplicationDelegate>\n\n@property (strong, nonatomic) UIWindow *window;\n\n@end\n" ...
42
8
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 24.27, "nodes": 26, "errors": 0, "source_hash": "1038a04c90ab0e6decbf866c7fc897dc538b986c188d1acab615880fd3e3643d", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nu...
12,351
c
#include "../../../include/game/game_board/tetris_board_controller.h" #include <malloc.h> #include "../include/types/colours.h" #include "../include/game/game_board/tetris_board_view.h" #define BOARD_COLOUR BLACK struct _TetrisBoardController { TetrisBoard *board; TetrisBoardPiece *current_piece; }; static Poin...
36.78
136
(translation_unit) "#include "../../../include/game/game_board/tetris_board_controller.h"\n\n#include <malloc.h>\n#include "../include/types/colours.h"\n#include "../include/game/game_board/tetris_board_view.h"\n\n\n#define BOARD_COLOUR BLACK\n\nstruct _TetrisBoardController\n{\n TetrisBoard *board;\n TetrisBoardPiece ...
1,187
0
{"language": "c", "success": true, "metadata": {"lines": 136, "avg_line_length": 36.78, "nodes": 773, "errors": 0, "source_hash": "67c16fc1df10884c2c5c7ddb131d1a546a504c29d495d9b64d6de35bc88e7dbb", "categorized_nodes": 531}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,352
c
// ai_addon.h #ifndef AI_ADDON_H #define AI_ADDON_H #ifdef _WIN32 #pragma once #endif #include "tier1/utlvector.h" #include "baseanimating.h" #include "ai_agent.h" #include "ai_behavior.h" #include "player_pickup.h" #include "IEffects.h" class CAI_BaseNPC; #define INVALID_ADDON_ATTACHMENT_ID -1 int GetIDForAttach...
27.81
285
(translation_unit) "// ai_addon.h\n\n#ifndef AI_ADDON_H\n#define AI_ADDON_H\n#ifdef _WIN32\n#pragma once\n#endif\n\n#include "tier1/utlvector.h"\n\n#include "baseanimating.h"\n#include "ai_agent.h"\n#include "ai_behavior.h"\n#include "player_pickup.h"\n#include "IEffects.h"\n\nclass CAI_BaseNPC;\n\n#define INVALID_ADDO...
1,960
70
{"language": "c", "success": true, "metadata": {"lines": 285, "avg_line_length": 27.81, "nodes": 1143, "errors": 0, "source_hash": "45de13e2eb297122c812eb4cbdd195fd9111ca71d6dd978c7883b68df805a9ba", "categorized_nodes": 777}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
12,353
c
// // ViewController.h // WakeUp Sample // // Created by <NAME> on 11/17/16. // Copyright © 2016 PathSense. All rights reserved. // #import <MapKit/MapKit.h> #import <UIKit/UIKit.h> @interface ViewController : UIViewController @property (nonatomic, weak) IBOutlet MKMapView *mapView; @property (nonatomic, weak) I...
27.07
14
(translation_unit) "//\n// ViewController.h\n// WakeUp Sample\n//\n// Created by <NAME> on 11/17/16.\n// Copyright © 2016 PathSense. All rights reserved.\n//\n\n#import <MapKit/MapKit.h>\n#import <UIKit/UIKit.h>\n\n@interface ViewController : UIViewController\n\n@property (nonatomic, weak) IBOutlet MKMapView *mapVi...
73
10
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 27.07, "nodes": 47, "errors": 0, "source_hash": "5d05f26e13062484a1fe0cdb11ce9e4120fba422f4afa05c6b20cb3e07383062", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <M...
12,354
c
/* * Copyright (c) 2014, The Android Open Source Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, ...
34.29
87
(translation_unit) "/*\n * Copyright (c) 2014, The Android Open Source Project\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * * Redistributions of source code must retain the abo...
433
0
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 34.29, "nodes": 257, "errors": 0, "source_hash": "20e2e27a3579558adfe5e9ae5ef803ea540c6b138a1c47b4d9ae2b4ee395b5b7", "categorized_nodes": 172}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,355
c
#ifndef __TESTNGPP_SIMPLE_TEST_HIERARCHY_RUNNER_H #define __TESTNGPP_SIMPLE_TEST_HIERARCHY_RUNNER_H #include <testngpp/runner/TestHierarchyRunner.h> TESTNGPP_NS_START /////////////////////////////////////////////////////// struct TestHierarchyHandler; struct TestFixtureResultCollector; struct TestCaseRunner; stru...
32.52
21
(translation_unit) "#ifndef __TESTNGPP_SIMPLE_TEST_HIERARCHY_RUNNER_H\n#define __TESTNGPP_SIMPLE_TEST_HIERARCHY_RUNNER_H\n\n#include <testngpp/runner/TestHierarchyRunner.h>\n\nTESTNGPP_NS_START\n\n///////////////////////////////////////////////////////\n\nstruct TestHierarchyHandler;\nstruct TestFixtureResultCollector;...
92
2
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 32.52, "nodes": 62, "errors": 0, "source_hash": "d62a81b23a1ce5a296ab9be2cc0f26970c2d07f3ba068103971f97950cf35b76", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,356
c
// // Use this file to import your target's public headers that you would like to expose to Swift. // #import "KSReflection.h" #import "KSKVOController.h" #import "KSLoadController.h" #import "KSResponderChainController.h" #import "KSCopyController.h" #import "KSAssignController.h" #import "KSBarrierController.h"
30.6
10
(translation_unit) "//\n// Use this file to import your target's public headers that you would like to expose to Swift.\n//\n#import "KSReflection.h"\n#import "KSKVOController.h"\n#import "KSLoadController.h"\n#import "KSResponderChainController.h"\n#import "KSCopyController.h"\n#import "KSAssignController.h"\n#import...
25
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 30.6, "nodes": 21, "errors": 0, "source_hash": "38793577cc8ff9237b36ef23411f7614b03047f53073a2d18a6bfe024ccca5b9", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"K...
12,357
c
// Copyright 2004-present Facebook. All Rights Reserved. #pragma once #include "fboss/agent/hw/sai/tracer/SaiTracer.h" namespace facebook::fboss { sai_tam_api_t* wrappedTamApi(); SET_ATTRIBUTE_FUNC_DECLARATION(Tam); SET_ATTRIBUTE_FUNC_DECLARATION(TamEvent); SET_ATTRIBUTE_FUNC_DECLARATION(TamEventAction); SET_ATTRI...
37
10
(translation_unit) "// Copyright 2004-present Facebook. All Rights Reserved.\n\n#pragma once\n\n#include "fboss/agent/hw/sai/tracer/SaiTracer.h"\n\nnamespace facebook::fboss {\n\nsai_tam_api_t* wrappedTamApi();\n\nSET_ATTRIBUTE_FUNC_DECLARATION(Tam);\nSET_ATTRIBUTE_FUNC_DECLARATION(TamEvent);\nSET_ATTRIBUTE_FUNC_DECLAR...
64
1
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 37.0, "nodes": 34, "errors": 0, "source_hash": "faa18de0180772c4458d65ffdccfd13728ffbf8631e3bcd765dc5d0ce35e64a6", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
12,358
c
#pragma once #include "Oeipffmpeg.h" #include "OeipFree.h" #include <mutex> #include "FNetCommon.h" #include "FAudioPlay.h" //#include <future> //拉流 class OEIPFMDLL_EXPORT FRtmpInput :public FNetInput { public: FRtmpInput(); ~FRtmpInput(); public: bool bTempOpen = false; //音频播放处理 bool bPlayAudio = true; private:...
24.25
68
(translation_unit) "#pragma once\n\n#include "Oeipffmpeg.h"\n#include "OeipFree.h"\n#include <mutex>\n#include "FNetCommon.h"\n#include "FAudioPlay.h"\n//#include <future>\n\n//拉流\nclass OEIPFMDLL_EXPORT FRtmpInput :public FNetInput\n{\npublic:\n FRtmpInput();\n ~FRtmpInput();\npublic:\n bool bTempOpen = false;\n //音频播...
475
15
{"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 24.25, "nodes": 328, "errors": 0, "source_hash": "8b0149c78e0c44b14664aaef65cffeecde1cabbc6b6fac37f44fb5a9f54f3db0", "categorized_nodes": 198}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
12,359
c
#include "util.h" #include "rrrr_types.h" #include <stdio.h> #include <stdbool.h> #include <stdlib.h> #include <stdint.h> #include <stdbool.h> #include <stddef.h> #include <string.h> #include <time.h> /* buffer should always be at least 13 characters long, * including terminating null */ char *btimetext(rtime_t rt, ...
30.55
148
(translation_unit) "#include "util.h"\n#include "rrrr_types.h"\n#include <stdio.h>\n#include <stdbool.h>\n#include <stdlib.h>\n#include <stdint.h>\n#include <stdbool.h>\n#include <stddef.h>\n#include <string.h>\n#include <time.h>\n\n/* buffer should always be at least 13 characters long,\n * including terminating null\...
1,387
0
{"language": "c", "success": true, "metadata": {"lines": 148, "avg_line_length": 30.55, "nodes": 824, "errors": 0, "source_hash": "158e23f59a885a40b9a3e1f9e95dc5896a4cf148484a901c2dd4d42879e427c8", "categorized_nodes": 613}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,360
c
/** * \file * * \brief Unit tests for EIC driver. * * Copyright (c) 2012-2014 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page License * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: ...
30.62
168
(translation_unit) "/**\n * \file\n *\n * \brief Unit tests for EIC driver.\n *\n * Copyright (c) 2012-2014 Atmel Corporation. All rights reserved.\n *\n * \asf_license_start\n *\n * \page License\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that th...
481
0
{"language": "c", "success": true, "metadata": {"lines": 168, "avg_line_length": 30.62, "nodes": 264, "errors": 0, "source_hash": "f2bab66bfd0ada0dd70fed6adca051a5420177d75cbd48c98a2cc230b515502d", "categorized_nodes": 198}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,361
c
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif #import "ScreenShot.h" FOUNDATION_EXPORT double ScreenShotVersionNumber; FOUNDATION_EXPORT const unsigned char ScreenShotVer...
22.71
14
(translation_unit) "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#else\n#ifndef FOUNDATION_EXPORT\n#if defined(__cplusplus)\n#define FOUNDATION_EXPORT extern "C"\n#else\n#define FOUNDATION_EXPORT extern\n#endif\n#endif\n#endif\n\n#import "ScreenShot.h"\n\nFOUNDATION_EXPORT double ScreenShotVersionNumber;\nFOUNDATION_EXPOR...
55
1
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 22.71, "nodes": 45, "errors": 0, "source_hash": "8b228b07bff118260b289d100feb08166c5747600fe21957667ddca12b2edbab", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef _...
12,362
c
#define L8212_16_K_CONG_NODES 61 #define L8212_16_N_HEAD 0 #define L8212_16_N_NAME 1 #define L8212_16_N_COMMENT 2 #define L8212_16_N_FREQ 3 #define L8212_16_N_EXT_CLOCK_IN 4 #define L8212_16_N_STOP_TRIG 5 #define L8212_16_N_MEMORIES 6 #define L8212_16_N_HEADER 7 #define L8212_16_N_PTS 8 #define L8212_16_N_NOC 9 #define...
28.93
86
(translation_unit) "#define L8212_16_K_CONG_NODES 61\n#define L8212_16_N_HEAD 0\n#define L8212_16_N_NAME 1\n#define L8212_16_N_COMMENT 2\n#define L8212_16_N_FREQ 3\n#define L8212_16_N_EXT_CLOCK_IN 4\n#define L8212_16_N_STOP_TRIG 5\n#define L8212_16_N_MEMORIES 6\n#define L8212_16_N_HEADER 7\n#define L8212_16_N_PTS 8\n#d...
368
0
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 28.93, "nodes": 337, "errors": 0, "source_hash": "1724f99851761efef6e51eca96dd58917ca8b29950236737ee56d2d2a78d9387", "categorized_nodes": 119}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ...
12,363
c
/** \file scatter.h \brief Illumination and scattering transforms. */ #ifndef _STARRY_REFLECTED_SCATTER_H_ #define _STARRY_REFLECTED_SCATTER_H_ #include "../basis.h" #include "../utils.h" #include "oren_nayar.h" namespace starry { namespace reflected { namespace scatter { using namespace utils; template <typename...
32.12
220
(translation_unit) "/**\n\file scatter.h\n\brief Illumination and scattering transforms.\n\n*/\n\n#ifndef _STARRY_REFLECTED_SCATTER_H_\n#define _STARRY_REFLECTED_SCATTER_H_\n\n#include "../basis.h"\n#include "../utils.h"\n#include "oren_nayar.h"\n\nnamespace starry {\nnamespace reflected {\nnamespace scatter {\n\nusing...
2,496
30
{"language": "c", "success": true, "metadata": {"lines": 220, "avg_line_length": 32.12, "nodes": 1670, "errors": 0, "source_hash": "1bc7e6eaccdf84f2caa638faa5f8714045c9ecd68fd147827bf9cf9ef3235764", "categorized_nodes": 1163}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#if...
12,364
c
#pragma once #include <glm/glm.hpp> #include "../sprite.h" class MagicBall { public: MagicBall(const glm::vec2& position, const glm::vec2& direction, const float& speed) : m_Position(position), m_Direction(direction), m_Speed(speed), m_Sprite("res/FlyingEye/magicBall.png", position.x, position.y, 0.2f, fal...
25.9
31
(translation_unit) "#pragma once\n\n#include <glm/glm.hpp>\n#include "../sprite.h"\n\nclass MagicBall\n{\npublic:\n MagicBall(const glm::vec2& position, const glm::vec2& direction, const float& speed)\n :\n m_Position(position),\n m_Direction(direction),\n m_Speed(speed),\n m_Sprite("res/FlyingEye/magicBall.png", ...
273
10
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 25.9, "nodes": 149, "errors": 0, "source_hash": "5deaf39f9429bd5a37243cfc7e9e659d7aab3a3acebbd445bc2c73c7bb199119", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
12,365
c
/* Copyright (C) 1996-1997 Id Software, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in th...
27.54
123
(translation_unit) "/*\nCopyright (C) 1996-1997 Id Software, Inc.\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU General Public License\nas published by the Free Software Foundation; either version 2\nof the License, or (at your option) any later version.\n\nThis ...
807
0
{"language": "c", "success": true, "metadata": {"lines": 123, "avg_line_length": 27.54, "nodes": 534, "errors": 0, "source_hash": "1386ef31f7ba5157f07a6a7ccbe26c6c496439533e7b859da7edb87c95ba151e", "categorized_nodes": 358}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,366
c
#include <uv.h> void on_read(uv_fs_t *req); void on_open(uv_fs_t *req); void on_write(uv_fs_t *req);
24.25
4
(translation_unit) "#include <uv.h>\n\nvoid on_read(uv_fs_t *req);\nvoid on_open(uv_fs_t *req);\nvoid on_write(uv_fs_t *req);\n" (preproc_include) "#include <uv.h>\n" (#include) "#include" (system_lib_string) "<uv.h>" (declaration) "void on_read(uv_fs_t *req);" (primitive_type) "void" (function_decl...
43
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 24.25, "nodes": 33, "errors": 0, "source_hash": "72d61b5b0c1b93f219ef7f522e27ecf5dd1f64433f352af3a8ff7d1743d3a4fa", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
12,367
c
// // YYGOperationEditController.h // Ledger // // Created by Ян on 04.08.2018. // Copyright © 2018 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> #import "YYGOperationEditViewModel.h" @interface YYGOperationEditController : UITableViewController @property (nonatomic, strong) id<YYGOperationEditViewMode...
27.33
12
(translation_unit) "//\n// YYGOperationEditController.h\n// Ledger\n//\n// Created by Ян on 04.08.2018.\n// Copyright © 2018 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "YYGOperationEditViewModel.h"\n\n@interface YYGOperationEditController : UITableViewController\n\n@property (nonatomic, st...
41
7
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 27.33, "nodes": 28, "errors": 0, "source_hash": "351e8f4ab28b248ea34a70241f4f2b8fdb348f983c05966d6f9924b07c96732d", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
12,368
c
/*- * Copyright (c) 2009, Sun Microsystems, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * - Redistributions of source code must retain the above copyright notice, * this list o...
32.68
130
(translation_unit) "/*-\n * Copyright (c) 2009, Sun Microsystems, Inc.\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without \n * modification, are permitted provided that the following conditions are met:\n * - Redistributions of source code must retain the above copyright...
664
0
{"language": "c", "success": true, "metadata": {"lines": 130, "avg_line_length": 32.68, "nodes": 430, "errors": 0, "source_hash": "ee42afd97e1183b11f4209d3d79fd7231f8554211c6da613c1e71577d458e869", "categorized_nodes": 311}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if defi...
12,369
c
#pragma once #include <cstdint> constexpr uint32_t FP_MATH_CTRL0 = 0xafe200; constexpr uint32_t FP_MATH_CTRL1 = 0xafe201; constexpr uint32_t FP_MATH_CTRL2 = 0xafe202; constexpr uint32_t FP_MATH_CTRL3 = 0xafe203; constexpr uint32_t FP_MATH_MULT_STAT = 0xafe204; constexpr uint32_t FP_MATH_DIV_STAT = 0xafe205; constexpr...
30.94
35
(translation_unit) "#pragma once\n\n#include <cstdint>\n\nconstexpr uint32_t FP_MATH_CTRL0 = 0xafe200;\nconstexpr uint32_t FP_MATH_CTRL1 = 0xafe201;\nconstexpr uint32_t FP_MATH_CTRL2 = 0xafe202;\nconstexpr uint32_t FP_MATH_CTRL3 = 0xafe203;\nconstexpr uint32_t FP_MATH_MULT_STAT = 0xafe204;\nconstexpr uint32_t FP_MATH_D...
268
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 30.94, "nodes": 203, "errors": 0, "source_hash": "a08d98512ec3318a97dc95ba42272b53bf05840c01ae39ff3253dfdb4ab5e23d", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
12,370
c
// // DailyLeetCode.h // DailyLeetCode // // Created by <NAME> on 2021/6/21. // #import <Foundation/Foundation.h> //! Project version number for DailyLeetCode. FOUNDATION_EXPORT double DailyLeetCodeVersionNumber; //! Project version string for DailyLeetCode. FOUNDATION_EXPORT const unsigned char DailyLeetCodeVers...
38.08
12
(translation_unit) "//\n// DailyLeetCode.h\n// DailyLeetCode\n//\n// Created by <NAME> on 2021/6/21.\n//\n\n#import <Foundation/Foundation.h>\n\n//! Project version number for DailyLeetCode.\nFOUNDATION_EXPORT double DailyLeetCodeVersionNumber;\n\n//! Project version string for DailyLeetCode.\nFOUNDATION_EXPORT cons...
32
1
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 38.08, "nodes": 15, "errors": 0, "source_hash": "5c9c8a27b3a3a2d71b7bc836e260b4c8f26383657c8b4d66251ec9bcbf20f247", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
12,371
c
/* ** The external header for Input method. ** ** Copyright (C) 2007 Feynman Software ** ** All right reserved by Feynman Software. */ #ifndef __IME_H #define __IME_H #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #define NR_INPUT_METHOD_MAX 2 #define PTI_CASE_ABC 0x01 #define PTI_...
32.4
25
(translation_unit) "/*\n** The external header for Input method.\n**\n** Copyright (C) 2007 Feynman Software\n**\n** All right reserved by Feynman Software.\n*/\n\n#ifndef __IME_H\n #define __IME_H\n\n#ifdef __cplusplus\nextern "C" {\n#endif /* __cplusplus */\n\n#define NR_INPUT_METHOD_MAX 2\n\n#define PTI_CASE_ABC...
172
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 32.4, "nodes": 128, "errors": 0, "source_hash": "f3d21deb8fc0699f839660ae8508fd80d5ed3dd182e4192a4ae6a84d1738f866", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,372
c
// // Created by <NAME> on 2015/09/10 // Copyright 2013-2015 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 // #pragma once #ifndef hifi_ReadWriteLockable_h #define hifi_ReadWriteLockable_h #includ...
25.57
53
(translation_unit) "//\n// Created by <NAME> on 2015/09/10\n// Copyright 2013-2015 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#pragma once\n#ifndef hifi_ReadWriteLockable_h\n#define hi...
336
22
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 25.57, "nodes": 196, "errors": 0, "source_hash": "f124a341922f58a32d454d70768745851fc77b23d3a7447ea2e129010e135c7c", "categorized_nodes": 130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
12,373
c
/******************************************************************************* * File Name: Pin_3.c * Version 2.5 * * Description: * This file contains API to enable firmware control of a Pins component. * * Note: * ******************************************************************************** * Copyright 2008-2...
33.4
139
(translation_unit) "/*******************************************************************************\n* File Name: Pin_3.c \n* Version 2.5\n*\n* Description:\n* This file contains API to enable firmware control of a Pins component.\n*\n* Note:\n*\n**********************************************************************...
254
0
{"language": "c", "success": true, "metadata": {"lines": 139, "avg_line_length": 33.4, "nodes": 149, "errors": 0, "source_hash": "86ede75fd3af0be17d936fd43a8bb536944d11d3d55d51e14af5af586f424148", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,374
c
#include <stdio.h> #include <string.h> #include <math.h> /* dla atof() */ #define MAXOP 100 /* maks. rozmiar argumentu lub operatora */ #define NUMBER '0' /* sygnał znalezienia liczby */ #define NAME 'n' /* sygnał znalezienia nazwy */ int getop(char []); void push(double); double pop(void); void mathfnc(char [])...
23.49
68
(translation_unit) "#include <stdio.h>\n#include <string.h>\n#include <math.h> /* dla atof() */\n\n#define MAXOP 100 /* maks. rozmiar argumentu lub operatora */\n#define NUMBER '0' /* sygnał znalezienia liczby */\n#define NAME 'n' /* sygnał znalezienia nazwy */\n\nint getop(char []);\nvoid push(double);\ndouble po...
584
1
{"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 23.49, "nodes": 324, "errors": 0, "source_hash": "06d14d1c5c96ab9e8acd6e600a5a30c7f534cacacbd2c45840cddb6ddaa9562d", "categorized_nodes": 202}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,375
c
#ifndef VERSION_H #define VERSION_H //Compatibility layer for windows resource file. //int to String converter #define STR_HELPER(x) #x #define STR(x) STR_HELPER(x) #define MAJOR_VERSION 0 #define MINOR_VERSION 47 #define VERSION_CHARS "v" STR(MAJOR_VERSION) "." STR(MINOR_VERSION) "rc " __DATE__ " " __TIM...
23.79
14
(translation_unit) "#ifndef VERSION_H \n#define VERSION_H \n \n//Compatibility layer for windows resource file. \n \n//int to String converter \n#define STR_HELPER(x) #x \n#define STR(x) STR_HELPER(x) \n \n#define MAJOR_VERSION 0 \n#define MINOR_VERSION 47 \n#define VERSION_CHARS "v" STR(MAJOR_VERSION) "." STR(MINOR_VE...
39
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 23.79, "nodes": 31, "errors": 0, "source_hash": "589add901d98451882e9f0aa696057031b8c16d9508d8eb4f6f48c94af29e57f", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,376
c
// // PeopleJSONParse.h // People // // Created by <NAME> on 7/18/13. // Copyright (c) 2013 CI&T. All rights reserved. // #import <Foundation/Foundation.h> #import "PeopleColaborador+PopulateFromServiceResponse.h" @interface PeopleJSONParser : NSObject - (NSArray *)colaboradoresArrayFromSearchResponse:(id)servic...
30.38
13
(translation_unit) "//\n// PeopleJSONParse.h\n// People\n//\n// Created by <NAME> on 7/18/13.\n// Copyright (c) 2013 CI&T. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "PeopleColaborador+PopulateFromServiceResponse.h"\n\n@interface PeopleJSONParser : NSObject\n\n- (NSArray *)colaboradoresA...
61
6
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 30.38, "nodes": 35, "errors": 0, "source_hash": "39c7b6814c7563c91b1d8f8d84f3e02d74dc1204f7313d4a78c732de712d7499", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
12,377
c
// SPDX-FileCopyrightText: 2021 Open Energy Solutions Inc // // SPDX-License-Identifier: Apache-2.0 // // _ _ ______ _ _ _ _ _ _ _ // | \ | | | ____| | (_) | (_) | | | | // | \| | ___ | |__ __| |_| |_ _ _ __ __ _| | | | // | . ` |/ _ \ | __| / _` | | __| | '_...
33.02
52
(translation_unit) "// SPDX-FileCopyrightText: 2021 Open Energy Solutions Inc\n//\n// SPDX-License-Identifier: Apache-2.0\n\n// \n// _ _ ______ _ _ _ _ _ _ _\n// | \ | | | ____| | (_) | (_) | | | |\n// | \| | ___ | |__ __| |_| |_ _ _ __ __ _| | | |\n// | . ` |/ _...
217
8
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 33.02, "nodes": 96, "errors": 0, "source_hash": "17c1c411c636e6fdf8041e06aba8fd8336fd69bca87c57c897a85c970a9b7e88", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,378
c
#include <stdio.h> int main(void) { printf("%d\n", 8 / 5); printf("%d\n", -8 / 5); printf("%d\n", 8 / -5); printf("%d\n", -8 / -5); printf("\n\n"); printf("%d\n", 8 % 5); printf("%d\n", -8 % 5); printf("%d\n", 8 % -5); printf("%d\n", -8 % -5); return 0; }
20.14
14
(translation_unit) "#include <stdio.h>\n\nint main(void)\n{\n printf("%d\n", 8 / 5);\n printf("%d\n", -8 / 5);\n printf("%d\n", 8 / -5);\n printf("%d\n", -8 / -5);\n printf("\n\n");\n printf("%d\n", 8 % 5);\n printf("%d\n", -8 % 5);\n printf("%d\n", 8 % -5);\n printf("%d\n", -8 % -5);\n re...
168
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 20.14, "nodes": 90, "errors": 0, "source_hash": "49517e6757bca50de0748b559b249348c24565d6a6a935c08f8014fede878bc4", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
12,379
c
/* * Copyright (c) 2020, <NAME> <<EMAIL>> * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include <AK/Format.h> #include <AK/Platform.h> #include <AK/UFixedBigInt.h> #include <string.h> namespace UserspaceEmulator { template<typename T> class ValueAndShadowReference; template<typename T> class Value...
30.24
157
(translation_unit) "/*\n * Copyright (c) 2020, <NAME> <<EMAIL>>\n *\n * SPDX-License-Identifier: BSD-2-Clause\n */\n\n#pragma once\n\n#include <AK/Format.h>\n#include <AK/Platform.h>\n#include <AK/UFixedBigInt.h>\n#include <string.h>\n\nnamespace UserspaceEmulator {\n\ntemplate<typename T>\nclass ValueAndShadowReferenc...
1,600
100
{"language": "c", "success": true, "metadata": {"lines": 157, "avg_line_length": 30.24, "nodes": 1001, "errors": 0, "source_hash": "de97ffa750df9c53e0942836f423b14680d2dd237baff2b51a8afe20c9ce3b4f", "categorized_nodes": 676}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#prag...
12,380
c
#pragma once #include "types.h" #include "math/mat4.h" #include "geometry/transformable.h" #include "geometry/geombase.h" #include "geometry/geomparam.h" #include "scene/context.h" namespace AT_NAME { class sphere : public aten::geom<aten::transformable> { friend class TransformableFactory; public: ...
35.64
87
(translation_unit) "#pragma once\n\n#include "types.h"\n#include "math/mat4.h"\n#include "geometry/transformable.h"\n#include "geometry/geombase.h"\n#include "geometry/geomparam.h"\n#include "scene/context.h"\n\nnamespace AT_NAME\n{\n class sphere : public aten::geom<aten::transformable> {\n friend class Tran...
822
65
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 35.64, "nodes": 474, "errors": 0, "source_hash": "077083c307815df8fbc91f154e75708c8612824eee10bd8b186c734e21a79cc8", "categorized_nodes": 331}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
12,381
c
#include<stdio.h> #include<stdlib.h> #include<time.h> void swap(int *a, int *b) { /**a = *a ^ *b; *b = *a ^ *b; *a = *a ^ *b;*/ int temp = *a; *a = *b; *b = temp; } int patition(int *p, int lo, int hi) { int key = p[hi]; int i = lo - 1; for (int j = lo; j < hi; j++) { if(p[j] <= key) { i++; swap(&p...
16.82
181
(translation_unit) "#include<stdio.h>\n#include<stdlib.h>\n#include<time.h>\n\nvoid swap(int *a, int *b) {\n /**a = *a ^ *b;\n *b = *a ^ *b;\n *a = *a ^ *b;*/\n int temp = *a;\n *a = *b;\n *b = temp;\n}\n\nint patition(int *p, int lo, int hi) {\n \n int key = p[hi];\n int i = lo - 1;\n for (int j = lo; j < hi; j++) {\n...
701
0
{"language": "c", "success": true, "metadata": {"lines": 181, "avg_line_length": 16.82, "nodes": 351, "errors": 0, "source_hash": "f8bd58c438f9b2c4e6561293ac875ecc1a59844ec5f29279528e40b195117851", "categorized_nodes": 245}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
12,382
c
// // Copyright (c) 2008-2018 the Urho3D project. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, m...
33.02
183
(translation_unit) "//\n// Copyright (c) 2008-2018 the Urho3D project.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the "Software"), to deal\n// in the Software without restriction, including without limitation the rights\n...
822
7
{"language": "c", "success": true, "metadata": {"lines": 183, "avg_line_length": 33.02, "nodes": 606, "errors": 0, "source_hash": "1f97598e671b4e6ff3d10c364fba7cc7562253c66f5b3b763258784a0a477820", "categorized_nodes": 462}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
12,383
c
#include <stdio.h> #include <stdlib.h> #include <inttypes.h> #include "kiss_fft_serial.c" int main(int argc, char ** argv) { const int nfft = 65536; const int ndims = 1; const int isinverse = 0; const int numffts = 10; int nbytes; int i; kiss_fft_cpx * buf; kiss_fft_cpx * bufout; ...
26.83
29
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <inttypes.h>\n#include "kiss_fft_serial.c"\n\nint main(int argc, char ** argv) {\n\n const int nfft = 65536;\n\n const int ndims = 1;\n const int isinverse = 0;\n\n const int numffts = 10;\n\n int nbytes;\n int i;\n kiss_fft_cpx ...
276
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 26.83, "nodes": 168, "errors": 0, "source_hash": "28ed13341ec3e353fbe0a6d20ebfd09136de0356bf18db3d854a098b1f02d7bd", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,384
c
#import <UIKit/UIKit.h> @interface UIView (Extension) @property (nonatomic, assign) CGFloat sr_x; @property (nonatomic, assign) CGFloat sr_y; @property (nonatomic, assign) CGFloat sr_centerX; @property (nonatomic, assign) CGFloat sr_centerY; @property (nonatomic, assign) CGFloat sr_width; @property (nonatomic, assig...
39
11
(translation_unit) "#import <UIKit/UIKit.h>\n\n@interface UIView (Extension)\n\n@property (nonatomic, assign) CGFloat sr_x;\n@property (nonatomic, assign) CGFloat sr_y;\n@property (nonatomic, assign) CGFloat sr_centerX;\n@property (nonatomic, assign) CGFloat sr_centerY;\n@property (nonatomic, assign) CGFloat sr_width;\...
144
36
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 39.0, "nodes": 108, "errors": 0, "source_hash": "dbe9ecb973902e1caf3ef8b9f33792f527c3b7941d938f86d0c1c182c0752b19", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
12,385
c
#pragma once #include "voxel/voxel_Coord.h" #include "voxel/voxel_ChunkKey.h" #include "voxel/voxel_ChunkData.h" #include "voxel/voxel_Bound.h" namespace ld3d { namespace voxel { class ChunkManager : public std::enable_shared_from_this<ChunkManager> { public: typedef std::list<ChunkPtr, std_allocator_a...
38.07
58
(translation_unit) "#pragma once\n\n#include "voxel/voxel_Coord.h"\n#include "voxel/voxel_ChunkKey.h"\n#include "voxel/voxel_ChunkData.h"\n#include "voxel/voxel_Bound.h"\n\n\nnamespace ld3d\n{\n namespace voxel\n {\n \n class ChunkManager : public std::enable_shared_from_this<ChunkManager>\n {\n public:\n typedef...
631
47
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 38.07, "nodes": 357, "errors": 0, "source_hash": "8284d0fd95f8bf3741312546312b30181520716035e7de661342d2d4d48ce789", "categorized_nodes": 243}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
12,386
c
/******************************************************************************** * MIT License * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVE...
27.33
73
(translation_unit) "/********************************************************************************\n * MIT License\n *\n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND N...
505
9
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 27.33, "nodes": 309, "errors": 0, "source_hash": "1f302bba58a71a6248b58d68338cbbe3e850a2a197a3e7f013ed02dec427f6f3", "categorized_nodes": 233}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
12,387
c
// // DFBuildingHeaderView.h // rongwei // // Created by apple on 2019/10/21. // Copyright © 2019 zhangfuyu. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface DFBuildingHeaderView : UIView @property (nonatomic , strong) NSMutableArray *banaerArry; @property (nonatomic , strong)...
26.06
16
(translation_unit) "//\n// DFBuildingHeaderView.h\n// rongwei\n//\n// Created by apple on 2019/10/21.\n// Copyright © 2019 zhangfuyu. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface DFBuildingHeaderView : UIView\n\n@property (nonatomic , strong) NSMutableArray *banaerArr...
81
10
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 26.06, "nodes": 53, "errors": 0, "source_hash": "a14c2073712fbb5028c7fc7f027a277d542d1804f6a3c6f43c0f0d8f62d7c586", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
12,388
c
#pragma once #include <pthread.h> #ifdef __cplusplus extern "C" { #endif typedef struct { void* param; void (*thread)(void* param); pthread_t pthread; } kinc_thread_impl_t; #ifdef __cplusplus } #endif
12.71
17
(translation_unit) "#pragma once \n \n#include <pthread.h> \n \n#ifdef __cplusplus \nextern "C" { \n#endif \n \ntypedef struct { \n void* param; \n void (*thread)(void* param); \n pthread_t pthread; \n} kinc_thread_impl_t; \n \n#ifdef __cplusplus \n} \n#endif \n" (preproc_call) "#pragma once \n" (preproc...
63
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 12.71, "nodes": 45, "errors": 0, "source_hash": "6896a253ddecf4f0ced0f803548551f308cf8857ff4c8a616fb637d08bbd5c3f", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
12,389
c
#include "hellomake.h" int main(int argc, char *argv[]) { sayhello("world"); return 0; }
18.4
5
(translation_unit) "#include "hellomake.h"\n\nint main(int argc, char *argv[]) {\n sayhello("world");\n return 0;\n}" (preproc_include) "#include "hellomake.h"\n" (#include) "#include" (string_literal) ""hellomake.h"" (") """ (string_content) "hellomake.h" (") """ (function_definitio...
44
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 18.4, "nodes": 23, "errors": 0, "source_hash": "dba812e79ab1359c2ea20ce5e954818ab4a30baad380ae42fabdda7732b4ab3d", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
12,390
c
#pragma once #include "LibLsp/JsonRpc/RequestInMessage.h" #include "LibLsp/JsonRpc/lsResponseMessage.h" #include "LibLsp/lsp/lsTextDocumentPositionParams.h" #include "LibLsp/lsp/symbol.h" #include "LibLsp/lsp/lsAny.h" /** * The {@code textDocument/typeHierarchy} request is sent from the client to the * server to r...
37.56
106
(translation_unit) "#pragma once\n\n#include "LibLsp/JsonRpc/RequestInMessage.h"\n#include "LibLsp/JsonRpc/lsResponseMessage.h"\n#include "LibLsp/lsp/lsTextDocumentPositionParams.h"\n#include "LibLsp/lsp/symbol.h"\n#include "LibLsp/lsp/lsAny.h"\n/**\n * The {@code textDocument/typeHierarchy} request is sent from the c...
351
22
{"language": "c", "success": true, "metadata": {"lines": 106, "avg_line_length": 37.56, "nodes": 209, "errors": 0, "source_hash": "048dedc97d88b092332e2ba77f8918ef6dcbbdf2e4bd71e7e2beb0bd423cc9fc", "categorized_nodes": 162}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
12,391
c
#ifndef RATOM_NONLINKS_H #define RATOM_NONLINKS_H // // 1. Class NonLinKs solves the non-linear radial Kohn-Sham equation of the form // // (A) -\frac{1}{2} R_{n,L}''(r) + (V(r) + L*(L + 1)/(2 r^2) ) R_{n,L}(r) = \lambda_{n,L} R_{n,L}(r) // // 2. The linear radial Kohn-Sham equation is solved by KohnSham equati...
37.68
60
(translation_unit) "#ifndef RATOM_NONLINKS_H\n#define RATOM_NONLINKS_H\n\n\n//\n// 1. Class NonLinKs solves the non-linear radial Kohn-Sham equation of the form\n//\n// (A) -\frac{1}{2} R_{n,L}''(r) + (V(r) + L*(L + 1)/(2 r^2) ) R_{n,L}(r) = \lambda_{n,L} R_{n,L}(r)\n//\n// 2. The linear radial Kohn-Sham equation...
162
5
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 37.68, "nodes": 65, "errors": 0, "source_hash": "45bb786d6a5d29b1c3c14f06cff0b72c42f6a5cbe79bdaaedae6c87482236955", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,392
c
/* * World.h * * * Created by <NAME> on 29/03/08. * Copyright 2008 quantoaduro.com. All rights reserved. * */ #ifndef WORLD_H_INC #define WORLD_H_INC #include <string> #include "SDL_OpenGL.h" #include "Ascii.h" #include "Random.h" #include <math.h> #include "Monster.h" #include "SDL/SDL.h" #include "Di...
19.1
50
(translation_unit) "/*\n * World.h\n * \n *\n * Created by <NAME> on 29/03/08.\n * Copyright 2008 quantoaduro.com. All rights reserved.\n *\n */\n\n#ifndef WORLD_H_INC\n#define WORLD_H_INC \n\n#include <string>\n#include "SDL_OpenGL.h"\n#include "Ascii.h"\n\n#include "Random.h"\n#include <math.h>\n#include "Monste...
250
6
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 19.1, "nodes": 170, "errors": 0, "source_hash": "f4a19bef37370fa1d22b5884ac860c979eb94534b7099ed67e2fed8a4b0474e5", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
12,393
c
#ifndef ENTITY_H #define ENTITY_H #include "SmartPtr.h" class PaperWorld; class Body; class Collider2D; class Collision2D; typedef SmartPointerRef<class Entity> EntityRef; /** @brief The superclass for all game objects. Entity defines the */ class Entity : public SmartPointerBase { public: Entity() { setID(cur...
27.82
62
(translation_unit) "#ifndef ENTITY_H\n#define ENTITY_H\n\n#include "SmartPtr.h"\n\nclass PaperWorld;\nclass Body;\nclass Collider2D;\nclass Collision2D;\n\ntypedef SmartPointerRef<class Entity> EntityRef;\n\n/** @brief The superclass for all game objects.\n\nEntity defines the \n*/\nclass Entity : public SmartPointerBa...
325
16
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 27.82, "nodes": 176, "errors": 0, "source_hash": "793c5761cd6f96b52bf75caacae62c7cc0b5404217c69531774e632c291f28e4", "categorized_nodes": 121}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,394
c
// // MGFaceError.h // MGFaceDetection // // Created by megvii on 15/12/23. // Copyright © 2015Year megvii. All rights reserved. // #import <Foundation/Foundation.h> #import "LivenessDetector.h" #import "MGFaceQualityManager.h" /** * 照镜子成功返回的key */ static NSString *const MGFaceFinishKey = @"com.megvii.face.fin...
22.1
50
(translation_unit) "//\n// MGFaceError.h\n// MGFaceDetection\n//\n// Created by megvii on 15/12/23.\n// Copyright © 2015Year megvii. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "LivenessDetector.h"\n#import "MGFaceQualityManager.h"\n\n/**\n * 照镜子成功返回的key\n */\nstatic NSString *const MGFa...
143
21
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 22.1, "nodes": 84, "errors": 0, "source_hash": "e9f8ad5fa439ce775cd6e94025b243438b6e790a7000bd5fa01813f07eb1a804", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <Fo...
12,395
c
#pragma once GLuint LoadShaders(const char * vertex_file_path, const char * fragment_file_path);
47.5
2
(translation_unit) "#pragma once\n\nGLuint LoadShaders(const char * vertex_file_path, const char * fragment_file_path);\n\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (declaration) "GLuint LoadShaders(const char * vertex_file_path, const char * fragment_file_path);" ...
27
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 47.5, "nodes": 18, "errors": 0, "source_hash": "996f9abd0552036a18c8fff33a0fcffbaa437b304105a69c5429c0301aab725c", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once...
12,396
c
#ifndef __AP_HAL_EMPTY_STORAGE_H__ #define __AP_HAL_EMPTY_STORAGE_H__ #include <AP_HAL_Empty.h> class Empty::EmptyStorage : public AP_HAL::Storage { public: EmptyStorage(); void init(void *); uint8_t read_byte(uint16_t loc); uint16_t read_word(uint16_t loc); uint32_t read_dword(uint16_t loc); ...
35.76
17
(translation_unit) "#ifndef __AP_HAL_EMPTY_STORAGE_H__\n#define __AP_HAL_EMPTY_STORAGE_H__\n\n#include <AP_HAL_Empty.h>\n\nclass Empty::EmptyStorage : public AP_HAL::Storage {\npublic:\n EmptyStorage();\n void init(void *);\n uint8_t read_byte(uint16_t loc);\n uint16_t read_word(uint16_t loc);\n uint32_...
175
2
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 35.76, "nodes": 120, "errors": 0, "source_hash": "0ed2c8e6f092cf5f9a4e33e92eaa105f1dc855fc17e0e13d5dbaabb3aef9d158", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
12,397
c
#ifndef OS_FILE_CAPABILITY #define OS_FILE_CAPABILITY struct user_file_information{ int memory_body_id,file_window_id,map_length,right; CAPABILITY file_capability; }; #define COMPARE_USER_FILE_INFORMATION(s,d) \ ( \ ((s).memory_body_id==(d).memory_body_id) \ &&((s).file_window_id==(d).file_window_id) \ ...
58.79
19
(translation_unit) "#ifndef OS_FILE_CAPABILITY\n#define OS_FILE_CAPABILITY\n\nstruct user_file_information{\n int memory_body_id,file_window_id,map_length,right;\n CAPABILITY file_capability;\n};\n#define COMPARE_USER_FILE_INFORMATION(s,d) \\n( \\n ((s).memory_body_id==(d).memory_body_id) \\n &&((s).file_wind...
57
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 58.79, "nodes": 39, "errors": 0, "source_hash": "f1050c34c8249592d1e54029958c09ea0daa1ce6446fda5872e2ae06c88f33ad", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
12,398
c
/* Proto language runtime Bytecode definitions Copyright 1997-1999 <NAME> Licensed under the MIT License. See LICENSE file in project root. */ #ifndef __OPCODES_H__ #define __OPCODES_H__ #define INSTR(a, b) (((a) << 3) | (b)) // A-field enum { OP_UNARY0, OP_UNARY1, OP_UNARY2, OP_PU...
16.12
84
(translation_unit) "/*\n Proto language runtime\n\n Bytecode definitions\n\n Copyright 1997-1999 <NAME>\n Licensed under the MIT License. See LICENSE file in project root.\n*/\n\n#ifndef __OPCODES_H__\n#define __OPCODES_H__\n\n#define INSTR(a, b) (((a) << 3) | (b))\n\n// A-field\n\nenum {\n OP_UNARY0,\n ...
233
0
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 16.12, "nodes": 153, "errors": 0, "source_hash": "a222387e12a36eb0145b840f8aee58531df2c2315dc971a62388869f2e5c9e7e", "categorized_nodes": 148}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
12,399