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
/* * Copyright (c) 2006-2018, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2018-03-27 Liuguang the first version. */ #ifndef __DRV_SPI_BUS_H__ #define __DRV_SPI_BUS_H__ #include <rtthread.h> #include <rtdevice.h> int rt...
25.65
17
(translation_unit) "/*\n * Copyright (c) 2006-2018, RT-Thread Development Team\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Change Logs:\n * Date Author Notes\n * 2018-03-27 Liuguang the first version.\n */\n \n#ifndef __DRV_SPI_BUS_H__ \n#define __DRV_SPI_BUS_H__ \n\n#include <rtthread.h...
50
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 25.65, "nodes": 36, "errors": 0, "source_hash": "08909342adb8baead7d71cf414c6370abce2b7f5433826e9c22c9513fa0ad9b1", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,600
c
#ifndef __KERNEL_LIST_H__ #define __KERNEL_LIST_H__ #ifdef __cplusplus #include <memory> namespace kernel { template <typename T> class List { public: struct Node; List() : mFirst(nullptr), mLast(nullptr) {} List(List&& other) noexcept : List() { swap(*this, other); ...
22.67
169
(translation_unit) "#ifndef __KERNEL_LIST_H__\n#define __KERNEL_LIST_H__\n\n#ifdef __cplusplus\n#include <memory>\n\nnamespace kernel\n{\n\ntemplate <typename T>\nclass List\n{\npublic:\n struct Node;\n List()\n : mFirst(nullptr),\n mLast(nullptr) {}\n List(List&& other) noexcept\n : Lis...
1,353
42
{"language": "c", "success": true, "metadata": {"lines": 169, "avg_line_length": 22.67, "nodes": 798, "errors": 0, "source_hash": "d84b8dd3f71322e6747aa08abf4ef81d1e1d544a7aa5745c9236a0f3d922d2b8", "categorized_nodes": 571}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
6,601
c
#ifndef __adaptor_common_h__ #define __adaptor_common_h__ 1 /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you u...
37.64
70
(translation_unit) "#ifndef __adaptor_common_h__\n#define __adaptor_common_h__ 1\n\n/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF lic...
255
0
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 37.64, "nodes": 184, "errors": 0, "source_hash": "387fee58326f3616d0bcfadba48a80715436d8731179da430f730d4db2afe66a", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,602
c
#include "MAX5380.h" #include "i2c_board.h" // Low-Power, 8-Bit DACs with 2-Wire Serial Interface in SOT23 // // https://datasheets.maximintegrated.com/en/ds/MAX5380-MAX5382.pdf #define PS_BOARD_COUNT 2 typedef __packed struct { uint8_t MAX5380_Address; } PS_Board_t; PS_Board_t PS_Boards[PS_BOARD_COUNT]; /******...
20.96
108
(translation_unit) "#include "MAX5380.h"\n#include "i2c_board.h"\n\n// Low-Power, 8-Bit DACs with 2-Wire Serial Interface in SOT23\n//\n// https://datasheets.maximintegrated.com/en/ds/MAX5380-MAX5382.pdf\n\n#define PS_BOARD_COUNT 2\n\ntypedef __packed struct {\n uint8_t MAX5380_Address;\n} PS_Board_t;\n\nPS_Board_t PS...
538
0
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 20.96, "nodes": 314, "errors": 0, "source_hash": "19d3b6ee1aa4678b53ce29a5ff6d59a7d717d3684ef5bab218ea443b6688e578", "categorized_nodes": 227}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,603
c
#ifndef PM3_BITLIB #define PM3_BITLIB #include <lua.h> int set_bit_library (lua_State *L); #endif /* PM3_BITLIB */
22
5
(translation_unit) "#ifndef PM3_BITLIB\n#define PM3_BITLIB\n\n#include <lua.h>\nint set_bit_library (lua_State *L);\n\n#endif /* PM3_BITLIB */\n" (preproc_ifdef) "#ifndef PM3_BITLIB\n#define PM3_BITLIB\n\n#include <lua.h>\nint set_bit_library (lua_State *L);\n\n#endif" (#ifndef) "#ifndef" (identifier) "PM3_BI...
25
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 22.0, "nodes": 20, "errors": 0, "source_hash": "b4c33b9a66f31c39cc2acd79501fb0cdf0d72cbdf52225226287a3116d2e59cc", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef PM...
6,604
c
#include <stdio.h> #include <bcm2835.h> int main() { if (!bcm2835_init()) return 1; int btns[8] = {23, 27, 22, 25, 9, 5, 8}; for(int i = 0; i < 8; i++) { bcm2835_gpio_fsel(btns[i], BCM2835_GPIO_FSEL_INPT); bcm2835_gpio_set_pud(btns[i], BCM2835_GPIO_PUD_UP); } printf("Push any button. To exit, press...
29.05
20
(translation_unit) "#include <stdio.h>\n#include <bcm2835.h>\n\nint main() {\n if (!bcm2835_init()) return 1;\n\n int btns[8] = {23, 27, 22, 25, 9, 5, 8};\n for(int i = 0; i < 8; i++) {\n bcm2835_gpio_fsel(btns[i], BCM2835_GPIO_FSEL_INPT);\n bcm2835_gpio_set_pud(btns[i], BCM2835_GPIO_PUD_UP);\n }\n\n printf(...
200
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 29.05, "nodes": 108, "errors": 0, "source_hash": "7f6183b75cdbecbe0c1a7a1c47d2c1e5f6a9ba522cbd70c005f058ed33f097c7", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
6,605
c
#include <uv.h> #include <stdio.h> #include <stdio.h> #include "context_arg.h" #include "main.h" extern aconf *ac; uint8_t check_ip_port(uv_tcp_t *client, context_arg *carg) { struct sockaddr_storage caddr = {0}; int caddr_len = sizeof(caddr);; uv_tcp_getpeername(client, (struct sockaddr*)&caddr, &caddr_len); char...
29.55
33
(translation_unit) "#include <uv.h>\n#include <stdio.h>\n#include <stdio.h>\n#include "context_arg.h"\n#include "main.h"\nextern aconf *ac;\n\nuint8_t check_ip_port(uv_tcp_t *client, context_arg *carg)\n{\n struct sockaddr_storage caddr = {0};\n int caddr_len = sizeof(caddr);;\n uv_tcp_getpeername(client, (struct socka...
362
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 29.55, "nodes": 220, "errors": 0, "source_hash": "6498d364099be1d4c3908b3a7292bcb8f9ad44b3f930d52bf0626a6299f68d7e", "categorized_nodes": 154}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,606
c
#ifndef MEMORYMANAGER_H #define MEMORYMANAGER_H #include <stddef.h> #include <stdint.h> #include <stdlib.h> void initializeMemoryManager(char *heap_base, size_t heap_size); void *malloc(uint64_t nbytes); void free(void *block); void memoryDump(); #endif
24.4
10
(translation_unit) "#ifndef MEMORYMANAGER_H\n#define MEMORYMANAGER_H\n\n#include <stddef.h>\n#include <stdint.h>\n#include <stdlib.h>\n\nvoid initializeMemoryManager(char *heap_base, size_t heap_size);\nvoid *malloc(uint64_t nbytes);\nvoid free(void *block);\nvoid memoryDump();\n\n#endif" (preproc_ifdef) "#ifndef MEM...
68
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 24.4, "nodes": 54, "errors": 0, "source_hash": "8238dc5d6edd6db413be657b0a6d168a3fae27e0681f1890cb8338ec860068e6", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef M...
6,607
c
/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- this file is part of rcssserver3D Fri May 9 2003 Copyright (C) 2002,2003 Koblenz University Copyright (C) 2003 RoboCup Soccer Server 3D Maintenance Group $Id$ This program is free software; you can redistribute it and/or modify it und...
26.97
123
(translation_unit) "/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*-\n\n this file is part of rcssserver3D\n Fri May 9 2003\n Copyright (C) 2002,2003 Koblenz University\n Copyright (C) 2003 RoboCup Soccer Server 3D Maintenance Group\n $Id$\n\n This program is free software; you can redistribut...
406
8
{"language": "c", "success": true, "metadata": {"lines": 123, "avg_line_length": 26.97, "nodes": 280, "errors": 0, "source_hash": "fbce434b762bb4ae67cf21eb82b26ee466644de1570a53bd24f64ed60ec47f41", "categorized_nodes": 178}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
6,608
c
// // YHDispatch_groupViewController.h // MyProject // // Created by 吕颜辉 on 2019/12/28. // Copyright © 2019 LYH-1140663172. All rights reserved. // #import "YHBaseViewController.h" NS_ASSUME_NONNULL_BEGIN @interface YHDispatch_groupViewController : YHBaseViewController @end NS_ASSUME_NONNULL_END
24.08
12
(translation_unit) "//\n// YHDispatch_groupViewController.h\n// MyProject\n//\n// Created by 吕颜辉 on 2019/12/28.\n// Copyright © 2019 LYH-1140663172. All rights reserved.\n//\n\n#import "YHBaseViewController.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface YHDispatch_groupViewController : YHBaseViewController\n\n@end\n\n...
27
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 24.08, "nodes": 16, "errors": 0, "source_hash": "ab2a284ddd340425b0bc99c6288614a6966c75f022a00c6c1c729f2bc5bf1cde", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " \"YHBaseV...
6,609
c
/****************************************************************************** * * Copyright 2017 Xaptum, 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 * * htt...
34.81
57
(translation_unit) "/******************************************************************************\n *\n * Copyright 2017 Xaptum, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the L...
138
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 34.81, "nodes": 102, "errors": 0, "source_hash": "ff3fb51ef38b31c1ef0beab2f7f4ef7a5e2b6617b23631f1ff064b30721127ec", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,610
c
// // Created by iskakoff on 21/08/16. // #ifndef HUBBARD_NSYMMETRY_H #define HUBBARD_NSYMMETRY_H #include <queue> #include "Symmetry.h" #include "Combination.h" namespace EDLib { namespace Symmetry { class NSymmetry : public Symmetry { public: class Sector { public: friend class NSymme...
31.71
136
(translation_unit) "//\n// Created by iskakoff on 21/08/16.\n//\n\n#ifndef HUBBARD_NSYMMETRY_H\n#define HUBBARD_NSYMMETRY_H\n\n\n#include <queue>\n#include "Symmetry.h"\n#include "Combination.h"\nnamespace EDLib {\n namespace Symmetry {\n class NSymmetry : public Symmetry {\n public:\n class Sector {\n ...
1,618
68
{"language": "c", "success": true, "metadata": {"lines": 136, "avg_line_length": 31.71, "nodes": 945, "errors": 0, "source_hash": "11e236af3991a1f5337661bce8d7e0510ea402c8ec8393446c2bef832ee29994", "categorized_nodes": 649}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
6,611
c
/* * Copyright (c) 2020 Nordic Semiconductor ASA * * SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic */ #include <zephyr.h> #include <event_manager.h> #define MODULE main #include "module_state_event.h" #include <logging/log.h> LOG_MODULE_REGISTER(MODULE); #define USB_SERIALNUMBER_TEMPLATE "PCA20035_%0...
28.07
29
(translation_unit) "/*\n * Copyright (c) 2020 Nordic Semiconductor ASA\n *\n * SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic\n */\n\n#include <zephyr.h>\n\n#include <event_manager.h>\n\n#define MODULE main\n#include "module_state_event.h"\n\n#include <logging/log.h>\nLOG_MODULE_REGISTER(MODULE);\n\n#define US...
170
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 28.07, "nodes": 92, "errors": 0, "source_hash": "0bb08d2cdf9e71f0adfc5f56c15cb2bf7c012bf3214dbe0a4cd5f158fff4bfa3", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
6,612
c
//===--- Handlers.h - Interfaces for receiving information ------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
31.68
65
(translation_unit) "//===--- Handlers.h - Interfaces for receiving information ------*- C++ -*-===//\n//\n// The LLVM Compiler Infrastructure\n//\n// This file is distributed under the University of Illinois Open Source\n// License. See LICENSE.TXT for details.\n//\n//===----------------------------...
333
18
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 31.68, "nodes": 184, "errors": 0, "source_hash": "f131133349908c5f0610b111b285ef78cdb4c8665e688111adc48c69384d1ae7", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,613
c
/* * BatteryTech * Copyright (c) 2010 Battery Powered Games LLC. * * This code is a component of BatteryTech and is subject to the 'BatteryTech * End User License Agreement'. Among other important provisions, this * license prohibits the distribution of source code to anyone other than * authorized parti...
28.59
51
(translation_unit) "/* \n * BatteryTech \n * Copyright (c) 2010 Battery Powered Games LLC. \n * \n * This code is a component of BatteryTech and is subject to the 'BatteryTech \n * End User License Agreement'. Among other important provisions, this \n * license prohibits the distribution of source code to anyone other...
227
5
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 28.59, "nodes": 158, "errors": 0, "source_hash": "56a4840a0ace93a920d673596aa46023d4baaf454a1d8130784f1cb8ae3d3fec", "categorized_nodes": 133}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,614
c
#pragma once #include <string> namespace baidu { namespace galaxy { void SetupLog(const std::string& name); } //namespace galaxy } //namespace baidu
20.29
7
(translation_unit) "#pragma once\n\n#include <string>\n\nnamespace baidu {\nnamespace galaxy {\n\nvoid SetupLog(const std::string& name);\n\n} //namespace galaxy\n} //namespace baidu\n\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <string>\...
39
1
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 20.29, "nodes": 22, "errors": 0, "source_hash": "ef6b535d2485ad15b71393b632df65055055af78decf0246c5ad327eb3e87601", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
6,615
c
// // AmaPlayerShellController.h // AmazingPlayer // // Created by JunMing on 2019/10/18. // Copyright © 2019 JMZhao. All rights reserved. // #import <UIKit/UIKit.h> #import "AmaPlayerShellControllerProtocol.h" NS_ASSUME_NONNULL_BEGIN @interface AmaPlayerShellController : UIView <AmaPlayerShellController_P> @end...
25.15
13
(translation_unit) "//\n// AmaPlayerShellController.h\n// AmazingPlayer\n//\n// Created by JunMing on 2019/10/18.\n// Copyright © 2019 JMZhao. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "AmaPlayerShellControllerProtocol.h"\nNS_ASSUME_NONNULL_BEGIN\n\n@interface AmaPlayerShellController : UIView <A...
35
4
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 25.15, "nodes": 20, "errors": 0, "source_hash": "c30ac712eb66d7381043179a7196212ee57da3d8f500aed087b1a4ded4524acf", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
6,616
c
// // Created by brok1n on 16-5-25. // #include <stdio.h> #define MAX_LEN 1000 int getLine( char line[], int len ); int charArrToInt( char ch[] ) { int result = 0; int i = 0; while ( ch[i] != '\0' ) { result = result * 10 + ch[i++] - '0'; } return result; } int charArrToIntByLe...
19.93
69
(translation_unit) "//\n// Created by brok1n on 16-5-25.\n//\n\n\n#include <stdio.h>\n\n\n#define MAX_LEN 1000\n\nint getLine( char line[], int len );\n\n\n\nint charArrToInt( char ch[] )\n{\n int result = 0;\n int i = 0;\n while ( ch[i] != '\0' )\n {\n result = result * 10 + ch[i++] - '0';\n }\n...
560
0
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 19.93, "nodes": 364, "errors": 0, "source_hash": "95a392ddebfc5b5ccdcacc0fc054400223060ee50f9d6b2a265aef63c0e7b3be", "categorized_nodes": 229}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,617
c
// // QGTabBarController.h // QGCollectionMenuDemo // // Created by 张如泉 on 16/4/8. // Copyright © 2016年 quange. All rights reserved. // #import <UIKit/UIKit.h> @interface QGTabBarController : UITabBarController @end
21
10
(translation_unit) "//\n// QGTabBarController.h\n// QGCollectionMenuDemo\n//\n// Created by 张如泉 on 16/4/8.\n// Copyright © 2016年 quange. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface QGTabBarController : UITabBarController\n\n@end\n" (comment) "//" (comment) "// QGTabBarController.h" (com...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.0, "nodes": 10, "errors": 0, "source_hash": "4725997dc04eadb647144f6a07613dc6a677c0968412ee1f89b09cf6cb907ebe", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit/UIKit...
6,618
c
#include <Optix/optixu/optixpp_namespace.h> #include <string> #include "../Scene/Mesh.h" class OptixTriMeshLoader { public: struct OptixGeometryAndTriMesh_t { optix::Geometry rtGeo; Scene::MeshPtr triMesh; }; static OptixGeometryAndTriMesh_t fromMeshData(Scene::MeshDataPtr data, optix::Context ...
23.81
16
(translation_unit) "#include <Optix/optixu/optixpp_namespace.h> \n#include <string> \n \n#include "../Scene/Mesh.h" \n \nclass OptixTriMeshLoader \n{ \npublic: \n struct OptixGeometryAndTriMesh_t \n { \n optix::Geometry rtGeo; \n Scene::MeshPtr triMesh; \n }; \n \n static OptixGeometryAndTriMesh_t fromMeshData(Scene:...
92
6
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 23.81, "nodes": 52, "errors": 0, "source_hash": "36287b55a6a478a74f8c460f9ec75eac05739a4c6cf18bd015b3d33202f2c16b", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
6,619
c
#include <stdlib.h> #include "bfs.h" struct _cse6230graph { int n_vertices; int **adj_matrix; }; int graph_create(size_t num_edges, const int64_t (*edges)[2], cse6230graph *graph) { cse6230graph g = NULL; g = (cse6230graph) malloc(sizeof(*g)); if (!g) return 1; // find edge with highest ID ...
27.75
101
(translation_unit) "#include <stdlib.h>\n#include "bfs.h"\n\nstruct _cse6230graph\n{\n int n_vertices;\n int **adj_matrix;\n};\n\n\nint graph_create(size_t num_edges, const int64_t (*edges)[2], cse6230graph *graph)\n{\n cse6230graph g = NULL;\n\n g = (cse6230graph) malloc(sizeof(*g));\n if (!g) return 1;...
969
0
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 27.75, "nodes": 601, "errors": 0, "source_hash": "9402b00758c8c053d981627e871befd9f00bf622e8441f38cd764eff06349531", "categorized_nodes": 414}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,620
c
/* * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. * See https://llvm.org/LICENSE.txt for license information. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception * */ /* clang-format off */ /** \file * Implements LIB3F getc function. */ /* must include ent3f.h AFTER io3...
20.03
33
(translation_unit) "/*\n * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.\n * See https://llvm.org/LICENSE.txt for license information.\n * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception\n *\n */\n\n/* clang-format off */\n\n/** \file\n * Implements LIB3F getc function. \n */\n\n...
165
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 20.03, "nodes": 98, "errors": 0, "source_hash": "4ee02a505539643ddb86439137cd4dea9a2fea828809ba2a1138fd2fb2151c2a", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
6,621
c
#pragma once char strcmp(const byte* s1, const byte* s2); void sendchar(byte b); byte strlen(const byte* s); void print(const byte* s); void println(const byte* s);
26.5
6
(translation_unit) "#pragma once\n\nchar strcmp(const byte* s1, const byte* s2);\nvoid sendchar(byte b);\nbyte strlen(const byte* s);\nvoid print(const byte* s);\nvoid println(const byte* s);\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (declaration) "char strcmp(con...
83
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 26.5, "nodes": 56, "errors": 0, "source_hash": "a770cbb4dc42a3d33db3e7e2fc63d1e9497f2588b4bc88953159e5da6a03408c", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
6,622
c
#include "test_c_interop_02b.h" double f_f64_f64(double x) { return x+1; } float f_f32_f32(float x) { return x+1; } int64_t f_i64_i64(int64_t x) { return x+1; } int32_t f_i32_i32(int32_t x) { return x+1; }
16.08
13
(translation_unit) "#include "test_c_interop_02b.h"\n\ndouble f_f64_f64(double x) {\n return x+1;\n}\n\nfloat f_f32_f32(float x) {\n return x+1;\n}\n\nint64_t f_i64_i64(int64_t x) {\n return x+1;\n}\n\nint32_t f_i32_i32(int32_t x) {\n return x+1;\n}\n" (preproc_include) "#include "test_c_interop_02b.h"\n"...
87
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 16.08, "nodes": 55, "errors": 0, "source_hash": "b135dc0c561a2b044d50fb2dbdae185f7b777a0eccd7c8e3284fa6dfa346b29e", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
6,623
c
// RUN: %clang_cc1 -no-opaque-pointers -triple sparcv9-unknown-unknown -emit-llvm %s -o - | FileCheck %s #include <stdarg.h> // CHECK-LABEL: define{{.*}} void @f_void() void f_void(void) {} // Arguments and return values smaller than the word size are extended. // CHECK-LABEL: define{{.*}} signext i32 @f_int_1(i32 n...
30.92
156
(translation_unit) "// RUN: %clang_cc1 -no-opaque-pointers -triple sparcv9-unknown-unknown -emit-llvm %s -o - | FileCheck %s\n#include <stdarg.h>\n\n// CHECK-LABEL: define{{.*}} void @f_void()\nvoid f_void(void) {}\n\n// Arguments and return values smaller than the word size are extended.\n\n// CHECK-LABEL: define{{.*}...
797
3
{"language": "c", "success": true, "metadata": {"lines": 156, "avg_line_length": 30.92, "nodes": 485, "errors": 0, "source_hash": "7862add9131781470f3526b90c46fbe371edcf109b3aadde967e4e4fd6669c92", "categorized_nodes": 351}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,624
c
// // AppUtils.h // CampusOfGLUt // // Created by HTC on 15/2/12. // Copyright (c) 2015年 HTC. All rights reserved. // #ifndef CampusOfGLUT_AppUtils_h #define CampusOfGLUT_AppUtils_h #define kAD_HIGHT 160 //RGBColor(66,156,249) //RGBColor(16,105,201) #define kAppMainColor RGBColor(66,156,249) #define RGBColor(a,b...
29.39
38
(translation_unit) "//\n// AppUtils.h\n// CampusOfGLUt\n//\n// Created by HTC on 15/2/12.\n// Copyright (c) 2015年 HTC. All rights reserved.\n//\n\n#ifndef CampusOfGLUT_AppUtils_h\n#define CampusOfGLUT_AppUtils_h\n\n#define kAD_HIGHT 160\n\n//RGBColor(66,156,249)\n//RGBColor(16,105,201)\n#define kAppMainColor RGBCol...
101
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 29.39, "nodes": 76, "errors": 0, "source_hash": "ed37f9561a01690c59549f892b880e411ab1fe3525b506fc051506651f6a97d4", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef Ca...
6,625
c
#ifndef globe_renderer_h #define globe_renderer_h #include "planet_renderer.h" #include "../math/quaternion.h" class Vector2; class Matrix3; class Tile; class Planet; class Globe_renderer : public Planet_renderer { public: Globe_renderer (); void set_matrix (); void draw_tile (const Tile*, const Matrix3&, const C...
28.79
28
(translation_unit) "#ifndef globe_renderer_h\n#define globe_renderer_h\n\n#include "planet_renderer.h"\n#include "../math/quaternion.h"\nclass Vector2;\nclass Matrix3;\nclass Tile;\nclass Planet;\n\nclass Globe_renderer : public Planet_renderer {\npublic:\n Globe_renderer ();\n\n void set_matrix ();\n void draw_tile (c...
256
15
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 28.79, "nodes": 128, "errors": 0, "source_hash": "3ca49387cfe6d47d7dcf94f667d1b6331be67e87d3747245d18aa4cb7c34c67f", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,626
c
#include <twobody/orientation.h> #include "../numtest.h" void orientation_test( double *params, int num_params, void *extra_args, struct numtest_ctx *test_ctx) { (void)extra_args; ASSERT(num_params == 3, ""); double i = params[0] * M_PI; double an = (ZEROF(i) || ZEROF(i - M_PI)) ? 0....
39.38
40
(translation_unit) "#include <twobody/orientation.h>\n\n#include "../numtest.h"\n\nvoid orientation_test(\n double *params,\n int num_params,\n void *extra_args,\n struct numtest_ctx *test_ctx) {\n (void)extra_args;\n ASSERT(num_params == 3, "");\n\n double i = params[0] * M_PI;\n double an = (Z...
513
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 39.38, "nodes": 309, "errors": 0, "source_hash": "3c6e919480a0b446d8553eb023ac952bbe36a9c5fa8ca75cb6b1322fd40d5848", "categorized_nodes": 219}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,627
c
#ifndef __NEU_PDU_H__ #define __NEU_PDU_H__ #include <stdint.h> #include <sys/uio.h> #ifdef __cpluscplus extern "C" { #endif // cmd - 16bits{|-1-|-3-|-12-|, -1- reqrsp, -3- type, -12- id } #define NEUPDU_REQRSP 0x8000 #define NEUPDU_TYPE 0x7000 #define NEUPDU_ID 0x0FFF enum { ...
31.88
56
(translation_unit) "#ifndef __NEU_PDU_H__\n#define __NEU_PDU_H__\n\n#include <stdint.h>\n#include <sys/uio.h>\n\n#ifdef __cpluscplus\nextern "C" {\n#endif\n\n// cmd - 16bits{|-1-|-3-|-12-|, -1- reqrsp, -3- type, -12- id }\n#define NEUPDU_REQRSP 0x8000\n#define NEUPDU_TYPE 0x7000\n#define NEUPDU_ID...
378
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 31.88, "nodes": 274, "errors": 0, "source_hash": "c01991df45bab844a5b91191d959ec36cfe4ab4777c401accb11a95e9640e875", "categorized_nodes": 175}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,628
c
/* ``Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribute...
28.07
67
(translation_unit) "/* ``Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writi...
273
0
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 28.07, "nodes": 171, "errors": 0, "source_hash": "77314e7ce4000ea734522acfb82f3f2d448e7156c7ee7301bb19f1b492bfd17d", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
6,629
c
/* Copyright 1994 by Abacus Research and * Development, Inc. All rights reserved. */ #include <stdio.h> #include <time.h> #include <assert.h> /* * NOTE: All the info here has been grabbed from rsys/hfs.h. * I don't expect this stuff to change, but you never know ... */ #if !defined(_MKVOL_INTERNAL_H_) #define...
27.76
189
(translation_unit) "/* Copyright 1994 by Abacus Research and\n * Development, Inc. All rights reserved.\n */\n\n#include <stdio.h>\n#include <time.h>\n#include <assert.h>\n/*\n * NOTE: All the info here has been grabbed from rsys/hfs.h.\n * I don't expect this stuff to change, but you never know ...\n */\n\n#if !def...
1,065
0
{"language": "c", "success": true, "metadata": {"lines": 189, "avg_line_length": 27.76, "nodes": 768, "errors": 0, "source_hash": "5b73f41cae562733ac4b4208fe66e6f69fa22af571cfa8af2f76091456435778", "categorized_nodes": 478}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,630
c
#pragma once #include <stdint.h> #define DISPLAY_WIDTH 128 #define DISPLAY_HEIGHT 296 extern uint8_t GLOBAL_framebuffer[DISPLAY_HEIGHT][DISPLAY_WIDTH / 8]; // this is Y (longer edge) --- ^^ ^^ --- this is X (shorter edge) void disp_init(void); void disp_clear(void); void disp_update(void); //...
36.4
10
(translation_unit) "#pragma once\n#include <stdint.h>\n\n#define DISPLAY_WIDTH 128\n#define DISPLAY_HEIGHT 296\n\nextern uint8_t GLOBAL_framebuffer[DISPLAY_HEIGHT][DISPLAY_WIDTH / 8];\n// this is Y (longer edge) --- ^^ ^^ --- this is X (shorter edge)\n\nvoid disp_init(void);\nvoid disp_clear(void...
74
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 36.4, "nodes": 54, "errors": 0, "source_hash": "6a0a74ab7622c80b0c6fe1630861e742c0f300ebe916b2d923ff01860579bfd4", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
6,631
c
#pragma once #include "udp_client.h" #include "order_message.h" #include <string> #include <cstdint> class ExecutionClient { public: ExecutionClient(uint16_t localPort, std::string remoteHost, uint16_t remotePort, IUDPClientHandler& handler); void SendOrder(OrderMessage); bool Poll() { return ...
18.22
23
(translation_unit) "#pragma once\n\n#include "udp_client.h"\n#include "order_message.h"\n\n#include <string>\n#include <cstdint>\n\nclass ExecutionClient\n{\npublic:\n ExecutionClient(uint16_t localPort,\n std::string remoteHost,\n uint16_t remotePort,\n IUDPClientHandler& handler);\n\n void SendOrder(Order...
119
4
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 18.22, "nodes": 70, "errors": 0, "source_hash": "7f0fa77de7c93be6f2abc3b6497c032473bcff1e178fcd87054b486e9f34b4f0", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
6,632
c
/** * @file * * @brief Interface for creation of different types of pnet packet * * @date 02.03.2012 * @author <NAME> */ #ifndef PNET_PACK_H_ #define PNET_PACK_H_ #include <util/array.h> #include <stdint.h> struct pnet_pack_desc { uint32_t type; struct pnet_pack * (*create)(void *, size_t size); void(*dest...
29.07
30
(translation_unit) "/**\n * @file\n *\n * @brief Interface for creation of different types of pnet packet\n *\n * @date 02.03.2012\n * @author <NAME>\n */\n\n#ifndef PNET_PACK_H_\n#define PNET_PACK_H_\n\n#include <util/array.h>\n#include <stdint.h>\n\nstruct pnet_pack_desc {\n uint32_t type;\n struct pnet_pack * (*crea...
147
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 29.07, "nodes": 109, "errors": 0, "source_hash": "c1087e6db35da71510bc20cf04058255955b1c799c4a68e8a6ca37ebbaf16887", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,633
c
/* SRC constants */ #define MAX_FIR_DELAY_SIZE 592 #define MAX_OUT_DELAY_SIZE 577 #define MAX_BLK_IN 25 #define MAX_BLK_OUT 25 #define NUM_IN_FS 6 #define NUM_OUT_FS 6 #define STAGE1_TIMES_MAX 21 #define STAGE2_TIMES_MAX 25 #define STAGE_BUF_SIZE 168 #define NUM_ALL_COEFFICIENTS 2184
24.91
11
(translation_unit) "/* SRC constants */\n#define MAX_FIR_DELAY_SIZE 592\n#define MAX_OUT_DELAY_SIZE 577\n#define MAX_BLK_IN 25\n#define MAX_BLK_OUT 25\n#define NUM_IN_FS 6\n#define NUM_OUT_FS 6\n#define STAGE1_TIMES_MAX 21\n#define STAGE2_TIMES_MAX 25\n#define STAGE_BUF_SIZE 168\n#define NUM_ALL_COEFFICIENTS 2184\n" ...
42
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 24.91, "nodes": 40, "errors": 0, "source_hash": "c4654177b1fd324bc94d16ae5916b267004bd7f1a90d5b95ccfe9617b151b10e", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define MA...
6,634
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* print_memory.c :+: :+: :+: ...
27.3
60
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* print_memory.c ...
432
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 27.3, "nodes": 260, "errors": 0, "source_hash": "6e48126d9649f648f30995935965bd6fc2a8924e9fc9441441b237185f61d347", "categorized_nodes": 177}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
6,635
c
// // Y_VolumeMAView.h // BTC-Kline // // Created by yate1996 on 16/5/3. // Copyright © 2016年 yate1996. All rights reserved. // #import <UIKit/UIKit.h> @class Y_KLineModel; @interface Y_VolumeMAView : UIView +(instancetype)view; -(void)maProfileWithModel:(Y_KLineModel *)model; @end
21.08
13
(translation_unit) "//\n// Y_VolumeMAView.h\n// BTC-Kline\n//\n// Created by yate1996 on 16/5/3.\n// Copyright © 2016年 yate1996. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n@class Y_KLineModel;\n@interface Y_VolumeMAView : UIView\n\n+(instancetype)view;\n\n-(void)maProfileWithModel:(Y_KLineModel *)model;\n...
54
8
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 21.08, "nodes": 34, "errors": 0, "source_hash": "b2b67ac345cdb54add3235bd3500f91513f15c150a342678b217137262c20e1a", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
6,636
c
#ifndef __ROUTINE_H__ #define __ROUTINE_H__ class GameObject; class Routine { public: Routine(); virtual ~Routine(); virtual void Update(double a_Deltatime) {}; virtual void Draw(GameObject* a_Camera) {}; virtual void Initialize() = 0; /* CleanUp */ // used to prevent deletion errors. // routines are to b...
30.83
29
(translation_unit) "#ifndef __ROUTINE_H__\n#define __ROUTINE_H__\n\nclass GameObject;\n\nclass Routine\n{\npublic:\n Routine();\n virtual ~Routine();\n\n virtual void Update(double a_Deltatime) {};\n\n virtual void Draw(GameObject* a_Camera) {};\n\n virtual void Initialize() = 0;\n\n /* CleanUp */\n // used to prevent ...
249
5
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 30.83, "nodes": 141, "errors": 0, "source_hash": "1e36a1859b6677f76e0f2607cd72ac62e9462a87b02868784f657a33274ec3a4", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,637
c
// // GuidancePageViewController.h // UgouAppios // // Created by LHW on 16/1/26. // Copyright © 2016年 靓萌服饰. All rights reserved. // #import <UIKit/UIKit.h> @protocol GuidancePagedelegate <NSObject> -(void)showHomePage:(UIViewController *)ViewController; @end @interface GuidancePageViewController : UIViewContr...
29.33
15
(translation_unit) "//\n// GuidancePageViewController.h\n// UgouAppios\n//\n// Created by LHW on 16/1/26.\n// Copyright © 2016年 靓萌服饰. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@protocol GuidancePagedelegate <NSObject>\n\n-(void)showHomePage:(UIViewController *)ViewController;\n\n@end\n\n@interface Guid...
91
14
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 29.33, "nodes": 62, "errors": 0, "source_hash": "cd4eaf65bc6d2a175e0369aefcd977dd79c2abd5408d66806245d60bcc04e2a2", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Kit/UIKit...
6,638
c
#pragma once #include "qstring.h" namespace model { // A detail namespace is one way of saying that its members are considered private. namespace detail { void serialize(); //QMap<QString, qint8> markerMap; QString path = "C:\\Qt\\quinary_id.qtag"; } /** Called once at the start of the application. Deser...
26.88
17
(translation_unit) "#pragma once\n\n#include "qstring.h"\n\nnamespace model\n{\n // A detail namespace is one way of saying that its members are considered private.\n namespace detail\n {\n void serialize();\n\n //QMap<QString, qint8> markerMap;\n QString path = "C:\\Qt\\quinary_id.qtag";\n }\n\n /** Called once at ...
92
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 26.88, "nodes": 57, "errors": 0, "source_hash": "4771ae3e544ec967a8770f78ea92b69cbdf697274e91eee0dc60f36aececff40", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
6,639
c
#include "sort_array.h" char* edges_locs(char* peaks, int numof_pks) // this function takes a vector of peaks (x-values) and // returns a new vector with edges. currently, it generates edges // as the midpoint between two peaks. int pkindex = 1; sort_array(peaks); int edge_locs[numof_pks]; while (pkindex < totalpks)...
32.07
14
(translation_unit) "#include "sort_array.h"\n\nchar* edges_locs(char* peaks, int numof_pks)\n// this function takes a vector of peaks (x-values) and\n// returns a new vector with edges. currently, it generates edges\n// as the midpoint between two peaks.\n\nint pkindex = 1;\nsort_array(peaks);\nint edge_locs[numof_pks]...
108
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 32.07, "nodes": 71, "errors": 0, "source_hash": "fcd360ab3268cc194807732d0f9588334776f744f8a50475241d5f74a53e5f33", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
6,640
c
#ifndef CSTRINGLOADER_H #define CSTRINGLOADER_H #include "Core/GameProject/CResourceStore.h" #include "Core/Resource/TResPtr.h" #include "Core/Resource/StringTable/CStringTable.h" #include <Common/EGame.h> class CStringLoader { CStringTable *mpStringTable; EGame mVersion; CStringLoader() {} void Load...
31.7
20
(translation_unit) "#ifndef CSTRINGLOADER_H\n#define CSTRINGLOADER_H\n\n#include "Core/GameProject/CResourceStore.h"\n#include "Core/Resource/TResPtr.h"\n#include "Core/Resource/StringTable/CStringTable.h"\n#include <Common/EGame.h>\n\nclass CStringLoader\n{\n CStringTable *mpStringTable;\n EGame mVersion;\n\n ...
149
5
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 31.7, "nodes": 88, "errors": 0, "source_hash": "f6ccf1e10cc05f1882c825a4654c4925d1e0053fce40d7eab0986096999642ac", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef C...
6,641
c
#pragma once #include <contrib/libs/openssl/include/openssl/bio.h> #include <library/openssl/compat/bio.h> // Remove after OpenSSL upgrade #include <library/openssl/holders/holder.h> namespace NOpenSSL { class TBioMethod : public THolder<BIO_METHOD, BIO_meth_new, BIO_meth_free, int, const char*> { public: TBioM...
33.48
21
(translation_unit) "#pragma once\n\n#include <contrib/libs/openssl/include/openssl/bio.h>\n\n#include <library/openssl/compat/bio.h> // Remove after OpenSSL upgrade\n#include <library/openssl/holders/holder.h>\n\nnamespace NOpenSSL {\n\nclass TBioMethod : public THolder<BIO_METHOD, BIO_meth_new, BIO_meth_free, int, con...
257
3
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 33.48, "nodes": 174, "errors": 0, "source_hash": "24f074f89c271ed463eecc6b5bc38fa3f3f1bfc2bbfc34800898c287d9d1d443", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
6,642
c
#include <stdlib.h> typedef struct tw_io tw_io; tw_io *tw_io_open(const char *filename, const char *mode); int tw_io_close(tw_io *io); size_t tw_io_read(tw_io *io, void *buffer, size_t size); size_t tw_io_write(tw_io *io, const void *buffer, size_t size); long tw_io_tell(tw_io *io); int tw_io_seek(tw_io *io, long off...
27
17
(translation_unit) "#include <stdlib.h>\n\ntypedef struct tw_io tw_io;\n\ntw_io *tw_io_open(const char *filename, const char *mode);\nint tw_io_close(tw_io *io);\nsize_t tw_io_read(tw_io *io, void *buffer, size_t size);\nsize_t tw_io_write(tw_io *io, const void *buffer, size_t size);\nlong tw_io_tell(tw_io *io);\nint t...
185
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 27.0, "nodes": 138, "errors": 0, "source_hash": "d42bcc248e1f047719256429606cb97582dd78c10b9a91a132b5ce27dfe93935", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
6,643
c
30 mtime=1639777085.436355983 30 atime=1639777086.347355983 30 ctime=1639777128.629355983
29
3
(translation_unit) "30 mtime=1639777085.436355983\n30 atime=1639777086.347355983\n30 ctime=1639777128.629355983\n" (ERROR) "30 mtime=1639777085.436355983\n30 atime=1639777086.347355983\n30 ctime=1639777128.629355983" (number_literal) "30" (assignment_expression) "mtime=1639777085.436355983\n30 atime=163977708...
17
2
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 29.0, "nodes": 16, "errors": 0, "source_hash": "e6591b4c0d23b844a3b265f3b91bf31e7428bbd5eebdbccf1ddce8f651297315", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "30 mtime=163977708...
6,644
c
// Copyright (c) 2017-2018 ARM Limited. All rights reserved. // SPDX-License-Identifier: BSD-3-Clause // // Original implementation by <NAME> @ ARM #include <assert.h> #include <stddef.h> #include <stdlib.h> #include "p64_clhlock.h" #include "build_config.h" #include "common.h" #include "arch.h" #include "os_abstrac...
25.66
92
(translation_unit) "// Copyright (c) 2017-2018 ARM Limited. All rights reserved.\n// SPDX-License-Identifier: BSD-3-Clause\n//\n// Original implementation by <NAME> @ ARM\n\n#include <assert.h>\n#include <stddef.h>\n#include <stdlib.h>\n\n#include "p64_clhlock.h"\n#include "build_config.h"\n\n#include "common.h"\n#incl...
555
0
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 25.66, "nodes": 348, "errors": 0, "source_hash": "825385a4f8973febbb968d236ccb6cbd9e37313e28917a7eada5c8b81edc5702", "categorized_nodes": 238}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,645
c
/*** * Copyright (C) Microsoft. All rights reserved. * Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. * * =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ * * stdafx.h * * Pre-compiled headers * * =-=-=-=...
30.12
16
(translation_unit) "/***\n * Copyright (C) Microsoft. All rights reserved.\n * Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.\n *\n * =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+\n *\n * stdafx.h\n *\n * Pre-co...
20
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 30.12, "nodes": 12, "errors": 0, "source_hash": "bf8e06f8beca58c85901769e1f7dfb2d01bedcd73e2d7b886cb67f38dedb071e", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
6,646
c
#ifndef __MACH_MUX_H #define __MACH_MUX_H struct iomux_pin; struct iomux_block; struct block_config; enum iomux_func { NORMAL = 0,/*blocks' function such as uart*/ GPIO, /*the function is the same as low power mode,but the driver strength and pull up or down can be set differently*/ LOWPOWER, /*if the block is fr...
27.54
78
(translation_unit) "#ifndef __MACH_MUX_H\n#define __MACH_MUX_H\n\nstruct iomux_pin;\nstruct iomux_block;\nstruct block_config;\n\nenum iomux_func {\n NORMAL = 0,/*blocks' function such as uart*/\n GPIO, /*the function is the same as low power mode,but the driver strength and pull up or down can be set differently*/\n ...
274
0
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 27.54, "nodes": 200, "errors": 0, "source_hash": "7faa66c291cf03af3765cfd3b3a3c851801ce5bd19ba6478597b75d4680db2ff", "categorized_nodes": 149}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,647
c
/* * code to keep track of registers */ #include "defs.h" #include "fns.h" int regdirty; /* * get/put registers * in our saved copies */ ulong rget(int r) { Reglist *rp; for (rp = mach->reglist; rp->rname; rp++) { if (rp->roffs == r) return (rp->rval); } dprint("rget: can't find reg %d\n", r); error(...
16.57
99
(translation_unit) "/*\n * code to keep track of registers\n */\n\n#include "defs.h"\n#include "fns.h"\n\nint regdirty;\n\n/*\n * get/put registers\n * in our saved copies\n */\nulong\nrget(int r)\n{\n Reglist *rp;\n\n for (rp = mach->reglist; rp->rname; rp++) {\n if (rp->roffs == r)\n return (rp->rval);\n }\n dprin...
662
0
{"language": "c", "success": true, "metadata": {"lines": 99, "avg_line_length": 16.57, "nodes": 380, "errors": 0, "source_hash": "f1d827c9cae79435264a4e38ed85ed0fd8f522ad0acae91ce0f94d80d453d175", "categorized_nodes": 288}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,648
c
//{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by dx_hw.rc // #define IDC_HAND_PTR 103 #define IDC_COLLIDE 104 #define IDI_ICON1 105 #define IDI_OSMO_ICON 105 #define IDC_HAND_CLOSE 148 #define...
32.55
22
(translation_unit) "//{{NO_DEPENDENCIES}}\n// Microsoft Visual C++ generated include file.\n// Used by dx_hw.rc\n//\n#define IDC_HAND_PTR 103\n#define IDC_COLLIDE 104\n#define IDI_ICON1 105\n#define IDI_OSMO_ICON 105\n#define IDC_HAND_CLOSE ...
63
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 32.55, "nodes": 56, "errors": 0, "source_hash": "d8e4e90a27395c1cbec76375b4cdc656dff0008775ce42c98683410c7873f24d", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ID...
6,649
c
/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you ...
28.34
87
(translation_unit) "/**\n *\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0...
500
18
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 28.34, "nodes": 286, "errors": 0, "source_hash": "42e80e73f52aa4597f361b58b5a3e0777cc511fc10475a92cdc81afd3e3fe7df", "categorized_nodes": 197}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
6,650
c
/* Copyright 2001, 2002 <NAME> (www.menie.org) stdarg version contributed by <NAME> This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at yo...
24.43
189
(translation_unit) "/*\n Copyright 2001, 2002 <NAME> (www.menie.org)\n stdarg version contributed by <NAME>\n\n This program is free software; you can redistribute it and/or modify\n it under the terms of the GNU Lesser General Public License as published by\n the Free Software Foundation; either version 2 of ...
1,690
0
{"language": "c", "success": true, "metadata": {"lines": 189, "avg_line_length": 24.43, "nodes": 1083, "errors": 0, "source_hash": "eda2f1d37678dd4e88f89f86566338cf933c5ba8b1a27ca13dfb41e9d38ce1df", "categorized_nodes": 663}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
6,651
c
/* Minimum error thresholding */ void thr_me(QImage *image); void histogram(QImage *image, long *hist); float s2 (int t); float s1 (int t); float u2 (int t); float u1 (int t); float P2 (int t); float P1 (int t); float J(int t); float flog (float x);
21.73
11
(translation_unit) "/* Minimum error thresholding */\nvoid thr_me(QImage *image);\nvoid histogram(QImage *image, long *hist);\nfloat s2 (int t);\nfloat s1 (int t);\nfloat u2 (int t);\nfloat u1 (int t);\nfloat P2 (int t);\nfloat P1 (int t);\nfloat J(int t);\nfloat flog (float x);\n\n\n\n\n\n\n" (comment) "/* Minimum e...
123
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 21.73, "nodes": 90, "errors": 0, "source_hash": "62ac7bc2e3f53e31989503dd5b1f9f305a830bc14426ca640956cacf55e71d6b", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "void thr_m...
6,652
c
#include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <sys/types.h> #include <sys/wait.h> int exec_cmd(char *argv[]) { pid_t pid; int rc; pid = fork(); if (pid == 0) { // child rc = execvp(argv[0], argv); if (rc < 0) { ...
22.31
26
(translation_unit) "#include <unistd.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <errno.h>\n#include <sys/types.h>\n#include <sys/wait.h>\n\nint exec_cmd(char *argv[])\n{\n pid_t pid;\n int rc;\n\n pid = fork();\n if (pid == 0) {\n // child\n rc = execvp(argv[0],...
175
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 22.31, "nodes": 102, "errors": 0, "source_hash": "09cd6810ad9f11bcf24d0c652e387864106191685f1251323fcee9b9f724b5fc", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
6,653
c
/** * @author <NAME> <<EMAIL>> * @date November 22, 2016 */ #ifndef WALKING_CONTROLLER_H #define WALKING_CONTROLLER_H #include "../engine/robot.h" #include "server.h" namespace mote { namespace walking { namespace networking { class Controller : public UDPServer { private: Robot &_robot; public: Controller(boo...
16.31
29
(translation_unit) "/**\n * @author <NAME> <<EMAIL>>\n * @date November 22, 2016\n */\n\n#ifndef WALKING_CONTROLLER_H\n#define WALKING_CONTROLLER_H\n\n#include "../engine/robot.h"\n#include "server.h"\n\nnamespace mote\n{\nnamespace walking\n{\nnamespace networking\n{\nclass Controller\n : public UDPServer\n{\nprivate:...
120
8
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 16.31, "nodes": 64, "errors": 0, "source_hash": "704a52f66b46852934f59e84447d235e36aad594d9af369cc4e24ea96b514fb3", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,654
c
#ifndef G_PARSER #define G_PARSER #endif
9.5
4
(translation_unit) "#ifndef G_PARSER\n#define G_PARSER\n\n\n\n#endif\n" (preproc_ifdef) "#ifndef G_PARSER\n#define G_PARSER\n\n\n\n#endif" (#ifndef) "#ifndef" (identifier) "G_PARSER" (preproc_def) "#define G_PARSER\n" (#define) "#define" (identifier) "G_PARSER" (#endif) "#endif"
8
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 9.5, "nodes": 7, "errors": 0, "source_hash": "17e82e2287c0552adc419b44fa97bee9fd2f81a9ca5c13dbc81b95679a5bd583", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef G_PAR...
6,655
c
/* * DialogWindow.h * * Copyright (c) 2015, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this...
22.74
227
(translation_unit) "/*\n * DialogWindow.h\n *\n * Copyright (c) 2015, <NAME>\n * All rights reserved.\n * \n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n * \n * 1. Redistributions of source code must retain the abo...
677
30
{"language": "c", "success": true, "metadata": {"lines": 227, "avg_line_length": 22.74, "nodes": 413, "errors": 0, "source_hash": "cc9ca8ccbf54c0df6d5056559e5c47d0e7766fc1d9a4af4464d57ade0b591111", "categorized_nodes": 271}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
6,656
c
#include<stdio.h> #include<pthread.h> void *fun(void *p) { int q; q=(int *)p; printf("\nInside Thread1."); printf("\nparameter from main thread is %d\n",q); pthread_exit(NULL); } int main() { pthread_t thread1; int arg=12; int ret; ret=pthread_create(&thread1,NULL,fun,(void*)arg); pthread_join(thre...
14.08
24
(translation_unit) "#include<stdio.h>\n#include<pthread.h>\n\nvoid *fun(void *p)\n{\n int q;\n q=(int *)p;\n \n printf("\nInside Thread1.");\n printf("\nparameter from main thread is %d\n",q);\n \n pthread_exit(NULL);\n \n}\n\nint main()\n{\n \n pthread_t thread1;\n int arg=12;\n int ret;\n ret=pthread_create(&thread1,...
153
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 14.08, "nodes": 94, "errors": 0, "source_hash": "941ee9de6e3a91db6318a7f14c1606512ff808d6068658961a7b17a608105515", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
6,657
c
/* *********************************************************************** * * dsGPIO.h - definitions/declarations for generic GPIO access * * Copyright (C) 2018 Dreamshader (aka <NAME>) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with...
30.39
100
(translation_unit) "/*\n ***********************************************************************\n *\n * dsGPIO.h - definitions/declarations for generic GPIO access\n *\n * Copyright (C) 2018 Dreamshader (aka <NAME>)\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this fi...
351
1
{"language": "c", "success": true, "metadata": {"lines": 100, "avg_line_length": 30.39, "nodes": 297, "errors": 0, "source_hash": "78926f97529d89fe161f23b80875a098290c46b10868374bbabad4ce3db94aff", "categorized_nodes": 169}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
6,658
c
#include "client/client.h" #include "examples/examples.pb.h" using namespace dsm; DECLARE_int32(shards); DECLARE_int32(iterations); DECLARE_int32(block_size); DECLARE_int32(edge_size); DECLARE_bool(build_graph); namespace dsm { template <> struct Marshal<Bucket> : public MarshalBase { static void mar...
26.5
18
(translation_unit) "#include "client/client.h" \n#include "examples/examples.pb.h" \n \nusing namespace dsm; \n \nDECLARE_int32(shards); \nDECLARE_int32(iterations); \nDECLARE_int32(block_size); \nDECLARE_int32(edge_size); \nDECLARE_bool(build_graph); \n \nnamespace dsm { \ntemplate <> \nstruct Marshal<Bucket> : public...
165
5
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 26.5, "nodes": 90, "errors": 0, "source_hash": "591e8d704d37b354345253e8a96aa54604b734b20ada30663f125e478df0f529", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
6,659
c
/* * aux_processing.h * * Created on: Jun 25, 2018 * Author: marciofernandescalil */ #ifndef AUX_PROCESSING_H_ #define AUX_PROCESSING_H_ #include <arduino.h> void millis_to_hours(uint32_t ms, char* hr_str); #endif /* AUX_PROCESSING_H_ */
21.64
11
(translation_unit) "/*\n * aux_processing.h\n *\n * Created on: Jun 25, 2018\n * Author: marciofernandescalil\n */\n\n#ifndef AUX_PROCESSING_H_\n#define AUX_PROCESSING_H_\n\n#include <arduino.h>\n\nvoid millis_to_hours(uint32_t ms, char* hr_str);\n\n#endif /* AUX_PROCESSING_H_ */\n" (comment) "/*\n * aux_proces...
30
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 21.64, "nodes": 23, "errors": 0, "source_hash": "4d8208afdd6639b2c0aab1437b63e0f9191b52d4a015db9c2103ab425e6181c8", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,660
c
/* Copyright (c) 2014 <NAME>. All rights reserved. * This file is part of the atproto AT protocol library * * Redistribution and use is permitted according to the conditions of the * 3-clause BSD license to be found in the LICENSE file. */ #ifndef DCE_TARGET_H #define DCE_TARGET_H #include "dce.h" extern void ...
38.13
15
(translation_unit) "/* Copyright (c) 2014 <NAME>. All rights reserved. \n * This file is part of the atproto AT protocol library\n *\n * Redistribution and use is permitted according to the conditions of the\n * 3-clause BSD license to be found in the LICENSE file.\n */\n\n#ifndef DCE_TARGET_H\n#define DCE_TARGET_H\n\n...
89
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 38.13, "nodes": 63, "errors": 0, "source_hash": "7f1fa3b0f27909f3070cbb0a3267103cfcbb7bf51bd05a07abde261edbfc334c", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,661
c
// // CommunityKit.h // WeGamersSDK // // Created by guopengzhang on 2019/7/30. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface CommunityKit : NSObject @end NS_ASSUME_NONNULL_END
17.73
11
(translation_unit) "//\n// CommunityKit.h\n// WeGamersSDK\n//\n// Created by guopengzhang on 2019/7/30.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface CommunityKit : NSObject\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" (comment) "// CommunityKit.h" (comment) "// WeGa...
26
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 17.73, "nodes": 15, "errors": 0, "source_hash": "1b4d9e0900c184f0662a60fe16fe77ee6c0fd916a32eb35c832e953048249bce", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
6,662
c
#include <bftcacore/dir_scan_util.h> #define DSU_LOG_ERR(FMT, ...) \ fprintf(stderr, "ERROR: (%s:%i), "FMT"\n", __FILE__, __LINE__, ##__VA_ARGS__); #define DSU_ASSERT_W_ERR_LOG(ASSERT, FMT, ...) \ if(!(ASSERT)) \ { \ DSU_LOG_ERR("ASSERTION ERROR: "FMT, ##__VA_ARGS__) \ assert(ASSER...
35.72
304
(translation_unit) "#include <bftcacore/dir_scan_util.h>\n\n#define DSU_LOG_ERR(FMT, ...) \\n fprintf(stderr, "ERROR: (%s:%i), "FMT"\n", __FILE__, __LINE__, ##__VA_ARGS__);\n\n#define DSU_ASSERT_W_ERR_LOG(ASSERT, FMT, ...) \\n if(!(ASSERT)) \\n { \\n DSU_LOG_ERR("ASSERTION ERROR: "FMT, ##__VA_ARGS_...
3,623
8
{"language": "c", "success": true, "metadata": {"lines": 304, "avg_line_length": 35.72, "nodes": 2217, "errors": 0, "source_hash": "a9ba8173dc1abb1d65e4ce61097ae99eb97c2f6fe11fb2983ea5f59dbec03348", "categorized_nodes": 1407}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
6,663
c
#pragma once #include<iostream> #include<memory> #include <stdexcept> namespace go { namespace internal { template<typename T, std::size_t Buffer_Size> class Circular_buffer { typedef T& reference; typedef const T& const_reference; typedef T* pointer; typedef const T* const_pointer; typedef declt...
17.05
111
(translation_unit) "#pragma once\n#include<iostream>\n#include<memory>\n#include <stdexcept>\nnamespace go\n{\n namespace internal\n {\n template<typename T, std::size_t Buffer_Size>\n class Circular_buffer\n {\n typedef T& reference;\n typedef const T& const_reference;\n typedef T* pointer;\n typedef const ...
713
26
{"language": "c", "success": true, "metadata": {"lines": 111, "avg_line_length": 17.05, "nodes": 388, "errors": 0, "source_hash": "0f3526e1a6db12a246f99c1181d194ff5ebe55faee7a5868734f88c5a87927cf", "categorized_nodes": 271}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
6,664
c
//---------------------------------------------------------------------------------------// // 概要: smooth内でいろいろ使う関数など // 更新: 2003 4/21 // //---------------------------------------------------------------------------------------// #ifndef __DEFINE_H #define __DEFINE_H // 型 // typedef unsigned char u_char; typedef u...
31.9
52
(translation_unit) "//---------------------------------------------------------------------------------------//\n// 概要: smooth内でいろいろ使う関数など\n// 更新: 2003 4/21\n// \n//---------------------------------------------------------------------------------------//\n\n#ifndef __DEFINE_H\n#define __DEFINE_H\n\n// 型 //\ntypedef uns...
205
4
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 31.9, "nodes": 127, "errors": 0, "source_hash": "e98dd213a86b75130f1f05bfdc42f0638f6f016b2fc7ed88b85ce63d1af948d1", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "INE_H\n\...
6,665
c
#include "util.h" /** * get_epoch_milis - calculates milliseconds passed since epoch time. * * RETURNS: * milliseconds since epoch */ unsigned long long get_epoch_milis() { struct timeval tv; gettimeofday(&tv, NULL); unsigned long long millisecondsSinceEpoch = (unsigned long long)(tv.tv_se...
23.8
105
(translation_unit) "#include "util.h"\n\n/**\n * get_epoch_milis - calculates milliseconds passed since epoch time. \n * \n * RETURNS:\n * milliseconds since epoch\n */\nunsigned long long get_epoch_milis()\n{\n struct timeval tv;\n\n gettimeofday(&tv, NULL);\n\n unsigned long long millisecondsSinceEpoch =\n ...
654
0
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 23.8, "nodes": 437, "errors": 0, "source_hash": "5dd9b6ef473431dd0fec7f04ce526bdaafadf40409b8ee93662ee546787e2936", "categorized_nodes": 251}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,666
c
// // DRReportRightImageTableViewCell.h // SPV // // Created by 黄梦炜 on 2019/2/21. // Copyright © 2019 训机. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface DRReportRightImageTableViewCell : UITableViewCell @end NS_ASSUME_NONNULL_END
18.43
14
(translation_unit) "//\n// DRReportRightImageTableViewCell.h\n// SPV\n//\n// Created by 黄梦炜 on 2019/2/21.\n// Copyright © 2019 训机. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface DRReportRightImageTableViewCell : UITableViewCell\n\n\n\n\n@end\n\nNS_ASSUME_NONNULL_END\n" ...
27
4
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 18.43, "nodes": 16, "errors": 0, "source_hash": "6e6b0eb4ebb4d65a1c5333d10dbc8ed266dcb6165ca33c95a6a956dc57c46b4d", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Kit/UIKit....
6,667
c
/* Copyright (c) by respective owners including Yahoo!, Microsoft, and individual contributors. All rights reserved. Released under a BSD license as described in the file LICENSE. */ #pragma once #include "baseline.h" //TODO: extend to handle CSOAA_LDF and WAP_LDF LEARNER::base_learner* cb_algs_setup(arguments& arg...
33.62
58
(translation_unit) "/*\nCopyright (c) by respective owners including Yahoo!, Microsoft, and\nindividual contributors. All rights reserved. Released under a BSD\nlicense as described in the file LICENSE.\n */\n#pragma once\n\n#include "baseline.h"\n\n//TODO: extend to handle CSOAA_LDF and WAP_LDF\nLEARNER::base_learner...
598
27
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 33.62, "nodes": 393, "errors": 0, "source_hash": "f405105a12d1ecfb9c9e3a3979aa061b7098d987748e67cfb18cd43a7c994a2a", "categorized_nodes": 270}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
6,668
c
// // AppBaseNavigationController.h // LoveBird // // Created by ShanCheli on 2017/7/7. // Copyright © 2017年 shancheli. All rights reserved. // #import <UIKit/UIKit.h> @interface AppBaseNavigationController : UINavigationController @property (nonatomic, assign) BOOL transparent; /** * 导航栏背景透明度值 */ @property...
23.53
17
(translation_unit) "//\n// AppBaseNavigationController.h\n// LoveBird\n//\n// Created by ShanCheli on 2017/7/7.\n// Copyright © 2017年 shancheli. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n\n@interface AppBaseNavigationController : UINavigationController\n\n@property (nonatomic, assign) BOOL transparent;...
69
14
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 23.53, "nodes": 45, "errors": 0, "source_hash": "42b7770b9a0e4579a7ff134e8fad90dbf4406e4d97b0522f9144bbb55099d53f", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
6,669
c
#include <stdio.h> int main() { double a, b, c, d, l, r; while (scanf("%.2lf %.2ld %.2lf %.2lf %.2lf %.2lf", &a, &b, &c, &d, &l, &r) != EOF) { } }
18.11
9
(translation_unit) "#include <stdio.h>\nint main()\n{\n double a, b, c, d, l, r;\n\n while (scanf("%.2lf %.2ld %.2lf %.2lf %.2lf %.2lf", &a, &b, &c, &d, &l, &r) != EOF)\n {\n \n }\n}" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (function_...
72
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 18.11, "nodes": 37, "errors": 0, "source_hash": "3d8a35fdcb8eb9042b8c798667ab85476bbef0c6edb83540c5787763ce1e2ccb", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
6,670
c
#include <string.h> void graphic_boot(uint16_t *graphics_buf, size_t graphics_buf_len) { memset(graphics_buf, 0x5a, graphics_buf_len); }
33.75
4
(translation_unit) "#include <string.h>\n\nvoid graphic_boot(uint16_t *graphics_buf, size_t graphics_buf_len) {\n memset(graphics_buf, 0x5a, graphics_buf_len);\n}\n" (preproc_include) "#include <string.h>\n" (#include) "#include" (system_lib_string) "<string.h>" (function_definition) "void graphic_boot(uin...
35
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 33.75, "nodes": 22, "errors": 0, "source_hash": "f4881cc5e8ba126b6b28856fefb330cb2c6f0e191c16cc1ebf4eeb37a9012f99", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
6,671
c
// // YULIBOAppDelegate.h // YLBNetwork // // Created by ProBobo on 11/18/2020. // Copyright (c) 2020 ProBobo. All rights reserved. // @import UIKit; @interface YULIBOAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
23.91
11
(translation_unit) "//\n// YULIBOAppDelegate.h\n// YLBNetwork\n//\n// Created by ProBobo on 11/18/2020.\n// Copyright (c) 2020 ProBobo. All rights reserved.\n//\n\n@import UIKit;\n\n@interface YULIBOAppDelegate : UIResponder <UIApplicationDelegate>\n\n@property (strong, nonatomic) UIWindow *window;\n\n@end\n" (co...
42
8
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 23.91, "nodes": 26, "errors": 0, "source_hash": "9d3a689a117e520417fe032a9a74d6e5ebe9a948cfe04d25756b091ec214ae65", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nu...
6,672
c
// // JKTableViewController.h // WekidsEducation // // Created by CodingIran on 2019/1/11. // Copyright © 2019 wekids. All rights reserved. // #import "JKViewController.h" NS_ASSUME_NONNULL_BEGIN /// 遵循协议可以直接获取到搜索的文字 @protocol JKTableViewSearchResultUpdating <NSObject> @required; - (void)searchResultsForTableVi...
34.27
44
(translation_unit) "//\n// JKTableViewController.h\n// WekidsEducation\n//\n// Created by CodingIran on 2019/1/11.\n// Copyright © 2019 wekids. All rights reserved.\n//\n\n#import "JKViewController.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n/// 遵循协议可以直接获取到搜索的文字\n@protocol JKTableViewSearchResultUpdating <NSObject>\n\n@requir...
228
30
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 34.27, "nodes": 144, "errors": 0, "source_hash": "f64eb97fb994dec534eab5206480cd10c68a38f2da7a601322a8e51e1ee8168c", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \...
6,673
c
// // UITextView+Extended.h // CSCategory // // Created by mac on 2017/7/5. // Copyright © 2017年 mac. All rights reserved. // #import <UIKit/UIKit.h> @interface UITextView (Extended)<UITextViewDelegate> /** 最大最小字体 (使用示例1-1) */ @property (nonatomic) CGFloat maxFontSize, minFontSize; @property (nonatomic, getter = ...
22.81
72
(translation_unit) "//\n// UITextView+Extended.h\n// CSCategory\n//\n// Created by mac on 2017/7/5.\n// Copyright © 2017年 mac. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UITextView (Extended)<UITextViewDelegate>\n/** 最大最小字体 (使用示例1-1) */\n@property (nonatomic) CGFloat maxFontSize, minFontSize;...
153
25
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 22.81, "nodes": 94, "errors": 0, "source_hash": "1e2c681e9a03edcaedeaae2f10313006b225ba1206925d2b48315aa533b6884e", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
6,674
c
#include "o4l_5x12.h"
21
1
(translation_unit) "#include "o4l_5x12.h"\n" (preproc_include) "#include "o4l_5x12.h"\n" (#include) "#include" (string_literal) ""o4l_5x12.h"" (") """ (string_content) "o4l_5x12.h" (") """
7
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 21.0, "nodes": 3, "errors": 0, "source_hash": "f8c779d82ffee27b47af61711dbf27222a154906f892d8ced2fa7af4ec3d5fdc", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \...
6,675
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <Eina.h> #include "net.h" #include "protocol.h" #include "packet.h" #include "sql.h" #include "hashing.h" #include "account.h" /* * Packet ID: 0x31 * Packet Name: sid_changepassword * * Direction: Client to Server * Used By: Diablo II, Diablo II...
30.55
124
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <Eina.h>\n\n#include "net.h"\n#include "protocol.h"\n#include "packet.h"\n#include "sql.h"\n#include "hashing.h"\n#include "account.h"\n\n/*\n * Packet ID: 0x31\n * Packet Name: sid_changepassword\n *\n * Direction: Client to Ser...
768
0
{"language": "c", "success": true, "metadata": {"lines": 124, "avg_line_length": 30.55, "nodes": 434, "errors": 0, "source_hash": "370db97315a257e2fb13d03249ccc528258350e806946be1f24c992497e23923", "categorized_nodes": 324}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
6,676
c
#ifndef MAP_H #define MAP_H #include <iostream> #include <string> #include <vector> #include <unordered_map> #include <boost/serialization/vector.hpp> #include <boost/serialization/unordered_map.hpp> #include "Floor.h" #include "Layer.h" #include "Room.h" #include "TileInfo.h" #include "../utility/Types.h" #include "...
22.73
41
(translation_unit) "#ifndef MAP_H\n#define MAP_H\n\n#include <iostream>\n#include <string>\n#include <vector>\n#include <unordered_map>\n#include <boost/serialization/vector.hpp>\n#include <boost/serialization/unordered_map.hpp>\n\n#include "Floor.h"\n#include "Layer.h"\n#include "Room.h"\n#include "TileInfo.h"\n#inclu...
292
23
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 22.73, "nodes": 181, "errors": 0, "source_hash": "bf0373f60fb7b97de48d952c545d76335d58f8e55dff8b4f5fa0095de8bd7b99", "categorized_nodes": 137}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,677
c
#include <stdio.h> int main() { int a, b, c, d; scanf("%d", &a); scanf("%d", &b); scanf("%d", &c); scanf("%d", &d); if (((b>c) & (d>a)) & (c+d>a+b) & ((c>0) & (d>0)) & (a % 2==0)) printf("Valores aceitos\n"); else printf ("Valores nao aceitos\n"); return (0); }
20.13
15
(translation_unit) "#include <stdio.h>\n\nint main() {\n int a, b, c, d;\n\n scanf("%d", &a);\n scanf("%d", &b);\n scanf("%d", &c);\n scanf("%d", &d);\n \n if (((b>c) & (d>a)) & (c+d>a+b) & ((c>0) & (d>0)) & (a % 2==0))\n printf("Valores aceitos\n");\n else\n printf ("Valores nao acei...
189
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 20.13, "nodes": 100, "errors": 0, "source_hash": "6acf9d5e5db9c4edabd3cfeb046cb1037227affe559de4a3b3df3aec8750cf21", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
6,678
c
/** * @file llkeyboardmacosx.h * @brief Handler for assignable key bindings * * $LicenseInfo:firstyear=2004&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2010, Linden Research, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU...
34.94
64
(translation_unit) "/** \n * @file llkeyboardmacosx.h\n * @brief Handler for assignable key bindings\n *\n * $LicenseInfo:firstyear=2004&license=viewerlgpl$\n * Second Life Viewer Source Code\n * Copyright (C) 2010, Linden Research, Inc.\n * \n * This library is free software; you can redistribute it and/or\n * modify ...
329
3
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 34.94, "nodes": 207, "errors": 0, "source_hash": "9946722727939109efca3b9ad61e93f62458ef70641145ad1fe9c5fd86825b73", "categorized_nodes": 160}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,679
c
#ifndef DEVICE_H #define DEVICE_H #include "core.h" typedef void DIR; struct dirent { char d_name[32]; uint32 d_size; }; typedef struct { char name[32]; int size; int start; } __attribute__ ((packed)) Romfile; struct stat { uchar st_dev; uint16 st_ino; uint16 st_mode; ucha...
21.76
140
(translation_unit) "#ifndef DEVICE_H \n#define DEVICE_H \n \n#include "core.h" \n \ntypedef void DIR; \n \nstruct dirent \n{ \n char d_name[32]; \n uint32 d_size; \n}; \n \ntypedef struct \n{ \n char name[32]; \n int size; \n int start; \n \n} __attribute__ ((packed)) Romfile; \n \nstruct stat \n{ \n uchar st_dev; \...
889
0
{"language": "c", "success": true, "metadata": {"lines": 140, "avg_line_length": 21.76, "nodes": 675, "errors": 0, "source_hash": "8a3e3dc817cefcd99a71bedfa4df8bf7ced1d8aa0c8901eb75dfee5b1d9823cc", "categorized_nodes": 322}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
6,680
c
/* ************************************************************************** */ /* LE - / */ /* / */ /* ft_strnstr.c .:: .:/ . .:: ...
31.61
49
(translation_unit) "/* ************************************************************************** */\n/* LE - / */\n/* / */\n/* ft_strnstr.c ...
316
0
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 31.61, "nodes": 186, "errors": 0, "source_hash": "dc87312fea1c674d8a766e7b29d67293cde3dd693b95d1c0fe3d62f418d2370d", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,681
c
#ifndef SPHERESIZINGFIELD_H #define SPHERESIZINGFIELD_H #include <cleaver/ScalarField.h> #include "SphereField.h" class SphereSizingField : public cleaver::FloatField { public: SphereSizingField(const SphereField* field); virtual double valueAt(double x, double y, double z) const; virtual double valueAt(...
30.8
15
(translation_unit) "#ifndef SPHERESIZINGFIELD_H\n#define SPHERESIZINGFIELD_H\n\n#include <cleaver/ScalarField.h>\n#include "SphereField.h"\n\nclass SphereSizingField : public cleaver::FloatField\n{\npublic:\n SphereSizingField(const SphereField* field);\n\n virtual double valueAt(double x, double y, double z) con...
123
9
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 30.8, "nodes": 71, "errors": 0, "source_hash": "5f4cb771725a0750873e88bb13d7a6d395c11a7c7c1f69c2cf149444682a5bc7", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef S...
6,682
c
#include <../private/storage/ResourcesDefs.h>
45
1
(translation_unit) "#include <../private/storage/ResourcesDefs.h>\n" (preproc_include) "#include <../private/storage/ResourcesDefs.h>\n" (#include) "#include" (system_lib_string) "<../private/storage/ResourcesDefs.h>"
4
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 45.0, "nodes": 3, "errors": 0, "source_hash": "da3142c1bc29a8a2de0548d85e66edd2b24ab96c6a54188dac2c2937f0dbb475", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <...
6,683
c
/* * File : padcofig.h * http://www.openloongson.org/forum.php * description: * pad multiplex for smart loong(ls1c) * Change Logs: * Date Author Notes * 2015-07-05 chinesebear first version */ #ifndef __PAD_H__ #define __PAD_H__ #include "ls1c.h" #define PAD_MUTI_FIRS...
22.72
25
(translation_unit) "/*\n * File : padcofig.h\n * http://www.openloongson.org/forum.php\n * description:\n * pad multiplex for smart loong(ls1c)\n * Change Logs:\n * Date Author Notes\n * 2015-07-05 chinesebear first version\n */\n\n\n#ifndef __PAD_H__\n#define __PAD_H__\n \n#inclu...
67
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 22.72, "nodes": 56, "errors": 0, "source_hash": "ff2960700ee417f9b92e8e825663a58bd4fd92bd765e915703f9f5529621fce8", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
6,684
c
// // LYModelFilterItem.h // LYModelFilter // // Created by LongYi on 16/10/23. // Copyright © 2016年 joylong. All rights reserved. // #import <Foundation/Foundation.h> #import "LYModelAttribute.h" typedef NS_ENUM(NSInteger, LYModelFilterItemEquationType) { LYModelFilterItemEquationTypeEqual, LYModelFilter...
35.89
36
(translation_unit) "//\n// LYModelFilterItem.h\n// LYModelFilter\n//\n// Created by LongYi on 16/10/23.\n// Copyright © 2016年 joylong. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "LYModelAttribute.h"\n\ntypedef NS_ENUM(NSInteger, LYModelFilterItemEquationType) {\n LYModelFilterItemEqua...
323
38
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 35.89, "nodes": 193, "errors": 0, "source_hash": "be327fd9b219094e1bce9afd188728e41dbc22d131b84664fc37915231d67410", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <F...
6,685
c
#ifndef __ANS_OPENCL_H__ #define __ANS_OPENCL_H__ #include <cassert> #include <cstdint> #include <vector> #include "ans.h" #include "histogram.h" #include "gpu.h" namespace ans { namespace ocl { // OpenCL decoder that can decode multiple interleaved rANS streams // provided that the following conditions are met...
35.42
59
(translation_unit) "#ifndef __ANS_OPENCL_H__\n#define __ANS_OPENCL_H__\n\n#include <cassert>\n#include <cstdint>\n#include <vector>\n\n#include "ans.h"\n#include "histogram.h"\n#include "gpu.h"\n\nnamespace ans {\nnamespace ocl {\n\n // OpenCL decoder that can decode multiple interleaved rANS streams\n // provided th...
527
31
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 35.42, "nodes": 313, "errors": 0, "source_hash": "00d01638fb7e875f9f09be588d0daf315107e9b2151802999ff1aa630c935b52", "categorized_nodes": 219}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,686
c
// // video_texture_cache.h // DTLiving // // Created by <NAME> on 2020/3/18. // Copyright © 2020 Dan Thought Studio. All rights reserved. // #ifndef DTLIVING_EFFECT_VIDEO_TEXTURE_CACHE_H_ #define DTLIVING_EFFECT_VIDEO_TEXTURE_CACHE_H_ #include "video_texture.h" #include <map> #include <list> #include <string> n...
23.41
34
(translation_unit) "//\n// video_texture_cache.h\n// DTLiving\n//\n// Created by <NAME> on 2020/3/18.\n// Copyright © 2020 Dan Thought Studio. All rights reserved.\n//\n\n#ifndef DTLIVING_EFFECT_VIDEO_TEXTURE_CACHE_H_\n#define DTLIVING_EFFECT_VIDEO_TEXTURE_CACHE_H_\n\n#include "video_texture.h"\n#include <map>\n#in...
171
3
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 23.41, "nodes": 110, "errors": 0, "source_hash": "94c5009c0e81a5fca40675133eaf5e9a2a24511f0816cf51cb451a40729d5f82", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef ...
6,687
c
#ifndef SF1R_LASER_CAT_DICTIONARY_H #define SF1R_LASER_CAT_DICTIONARY_H #include <boost/unordered_map.hpp> #include <boost/filesystem.hpp> #include <iostream> #include <util/singleton.h> #include <fstream> #include <glog/logging.h> namespace sf1r { namespace laser { namespace clustering { namespace type { /** * CatDi...
24.42
96
(translation_unit) "#ifndef SF1R_LASER_CAT_DICTIONARY_H\n#define SF1R_LASER_CAT_DICTIONARY_H\n#include <boost/unordered_map.hpp>\n#include <boost/filesystem.hpp>\n#include <iostream>\n#include <util/singleton.h>\n#include <fstream>\n#include <glog/logging.h>\n\nnamespace sf1r { namespace laser { namespace clustering { ...
685
32
{"language": "c", "success": true, "metadata": {"lines": 96, "avg_line_length": 24.42, "nodes": 383, "errors": 0, "source_hash": "0894089d4e9d8db9356387f2c191071da6dc460b9e3e062104a6d0e071d985a3", "categorized_nodes": 275}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,688
c
// // UserInfoViewController.h // UniBBS // // Created by fanyingming on 10/11/14. // Copyright (c) 2014 Peking University. All rights reserved. // #import <UIKit/UIKit.h> @interface UserInfoViewController : UITableViewController<UIActionSheetDelegate> @property (strong, nonatomic) NSString *userName; @property (...
29.83
12
(translation_unit) "//\n// UserInfoViewController.h\n// UniBBS\n//\n// Created by fanyingming on 10/11/14.\n// Copyright (c) 2014 Peking University. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UserInfoViewController : UITableViewController<UIActionSheetDelegate>\n@property (strong, nonatomic) ...
58
10
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 29.83, "nodes": 40, "errors": 0, "source_hash": "5207613bb529c233a69fb45a4070bd1413ac661561c4d2fc8fdd085f4373bc2d", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
6,689
c
/* * Souffle - A Datalog Compiler * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved * Licensed under the Universal Permissive License v 1.0 as shown at: * - https://opensource.org/licenses/UPL * - <souffle root>/licenses/SOUFFLE-UPL.txt */ /********************************************...
35.4
208
(ERROR) "/*\n * Souffle - A Datalog Compiler\n * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved\n * Licensed under the Universal Permissive License v 1.0 as shown at:\n * - https://opensource.org/licenses/UPL\n * - <souffle root>/licenses/SOUFFLE-UPL.txt\n */\n\n/***************************...
2,052
75
{"language": "c", "success": true, "metadata": {"lines": 208, "avg_line_length": 35.4, "nodes": 1156, "errors": 0, "source_hash": "43a57a8218dcfc43bc3df58e04f6fc9bbaf889f1711618629803b0de2cb0518e", "categorized_nodes": 823}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "/*\n * Souffle - A Datal...
6,690
c
/*! @file * @brief this file is part of the plugin library. * */ /* ============================================================================= * * * * Copyright 2006,2013 Vizrt Austria GmbH * *...
33.99
185
(translation_unit) "/*! @file\n * @brief this file is part of the plugin library.\n *\n */\n\n/* ============================================================================= *\n * *\n * Copyright 2006,2013 Vizrt Austria GmbH ...
902
11
{"language": "c", "success": true, "metadata": {"lines": 185, "avg_line_length": 33.99, "nodes": 563, "errors": 0, "source_hash": "36fadbf75168ae77f01f1580c0737105d7fd2360d9219dbddba6ab43170ac488", "categorized_nodes": 343}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if ! de...
6,691
c
// Copyright 2020, <NAME>. // Copyright 2020, <NAME>. // SPDX-License-Identifier: BSD-3-Clause #pragma once #include "utility_northstar.h" #include "../ns_hmd.h" #include <map> class OpticalSystem { public: OpticalSystem(){}; OpticalSystem(const OpticalSystem &_in); void LoadOpticalData(struct ns_3d_eye *eye)...
24.99
112
(translation_unit) "// Copyright 2020, <NAME>.\n// Copyright 2020, <NAME>.\n// SPDX-License-Identifier: BSD-3-Clause\n\n#pragma once\n\n#include "utility_northstar.h"\n#include "../ns_hmd.h"\n#include <map>\n\n\nclass OpticalSystem\n{\npublic:\n OpticalSystem(){};\n\n OpticalSystem(const OpticalSystem &_in);\n\n void\n...
851
19
{"language": "c", "success": true, "metadata": {"lines": 112, "avg_line_length": 24.99, "nodes": 551, "errors": 0, "source_hash": "1dbb773f5bfcdddbb9bedccb397d0c4ddd81a410711221f96c94f251363ffb9f", "categorized_nodes": 415}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
6,692
c
/* ** EPITECH PROJECT, 2017 ** set_local ** File description: ** set_local */ #include <string.h> #include "header_shell.h" #include "variable.h" void create_variable_local(shell_t *shell, char **cmd, unsigned int *i) { char *name = NULL; char *data = NULL; variable_t *var; if (cmd[*i] == NULL || cmd[*i][0] < 'A...
24.61
36
(translation_unit) "/*\n** EPITECH PROJECT, 2017\n** set_local\n** File description:\n** set_local\n*/\n\n#include <string.h>\n#include "header_shell.h"\n#include "variable.h"\n\nvoid create_variable_local(shell_t *shell, char **cmd, unsigned int *i)\n{\n char *name = NULL;\n char *data = NULL;\n variable_t *var;\n\n i...
409
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 24.61, "nodes": 281, "errors": 0, "source_hash": "76e07124b01465bb6271089b0f34e5f503ff60e6342e4bf82cfefd41dc5b7e1f", "categorized_nodes": 172}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,693
c
/* * Wi-Fi Protected Setup - UPnP AP functionality * Copyright (c) 2009, <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * Alternatively, this software may...
30.84
69
(translation_unit) "/*\n * Wi-Fi Protected Setup - UPnP AP functionality\n * Copyright (c) 2009, <NAME> <<EMAIL>>\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 version 2 as\n * published by the Free Software Foundation.\n *\n * Alte...
473
0
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 30.84, "nodes": 280, "errors": 0, "source_hash": "467184b61ca26129d50b590052e108575828eec3f71571e020cb20261ad42c74", "categorized_nodes": 216}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
6,694
c
// This file is a part of Julia. License is MIT: https://julialang.org/license #ifndef JL_PASSES_H #define JL_PASSES_H #include <llvm/IR/PassManager.h> #include <llvm/Transforms/Scalar/LoopPassManager.h> using namespace llvm; // Function Passes struct DemoteFloat16 : PassInfoMixin<DemoteFloat16> { PreservedAnal...
42.01
79
(translation_unit) "// This file is a part of Julia. License is MIT: https://julialang.org/license\n\n#ifndef JL_PASSES_H\n#define JL_PASSES_H\n\n#include <llvm/IR/PassManager.h>\n#include <llvm/Transforms/Scalar/LoopPassManager.h>\n\nusing namespace llvm;\n\n// Function Passes\nstruct DemoteFloat16 : PassInfoMixin<Dem...
925
74
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 42.01, "nodes": 528, "errors": 0, "source_hash": "c818d5a9c4329ae2f4cbbeb9e1589cdb29e94ae9e496bbb52168f6c35bc31368", "categorized_nodes": 372}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
6,695
c
#ifndef HEADERS_H_INCLUDED #define HEADERS_H_INCLUDED #include <assert.h> #include <boost/python.hpp> #include <hge.h> #endif // HEADERS_H_INCLUDED
18.62
8
(translation_unit) "#ifndef HEADERS_H_INCLUDED \n#define HEADERS_H_INCLUDED \n \n#include <assert.h> \n#include <boost/python.hpp> \n#include <hge.h> \n \n#endif // HEADERS_H_INCLUDED" (preproc_ifdef) "#ifndef HEADERS_H_INCLUDED \n#define HEADERS_H_INCLUDED \n \n#include <assert.h> \n#include <boost/python.hpp> \n#in...
18
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 18.62, "nodes": 16, "errors": 0, "source_hash": "f82520d247713c7df6494abb35d6372939bfe266c20cd3ef1ad734235d69090e", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef H...
6,696
c
#pragma once #include "XYZ.h" #include "offsets.h" /* *\ * * * MAYUMIY3 * * * \* */ class Entity // //Abstract Entity base class //You are not supposed to/you can't "construct Entities" as they are already in the games memory. You point to them and t...
24.5
115
(translation_unit) "#pragma once\n\n#include "XYZ.h"\n#include "offsets.h"\n\n\n/* *\\n * *\n * MAYUMIY3 *\n * *\n\* */\n\n\nclass Entity \n//\n//Abstract Entity base class\n//You are not supposed to/you can't "construct Entities" as they are already in the g...
596
14
{"language": "c", "success": true, "metadata": {"lines": 115, "avg_line_length": 24.5, "nodes": 343, "errors": 0, "source_hash": "44b3734f785d0173e3c93ff3a78a221b6318d7e1a9f3325ca245ed6584ac49c5", "categorized_nodes": 233}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
6,697
c
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. /*============================================================================= PackageUtilityWorkers.cpp: Declarations for structs and classes used by package commandlets. =============================================================================*/ #if...
34.2
92
(translation_unit) "// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.\n\n/*=============================================================================\n PackageUtilityWorkers.cpp: Declarations for structs and classes used by package commandlets.\n============================================================...
453
24
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 34.2, "nodes": 295, "errors": 0, "source_hash": "80438913e964080477e3741b08ba24ddc98fc7d1789d34e65556fd00196a85d2", "categorized_nodes": 195}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
6,698
c
/* * Description : University of Minho Imperative Programming 2017/2018 worksheet * 1 solved exercise 4. * Resolução do exercício 4 da ficha 1 de Programação Imperativa * 2017/2018 da Universidade do Minho. * Copyright : © Oracle, 2019 * License : MIT * Maintainer ...
31.56
18
(translation_unit) "/*\n * Description : University of Minho Imperative Programming 2017/2018 worksheet\n * 1 solved exercise 4.\n * Resolução do exercício 4 da ficha 1 de Programação Imperativa\n * 2017/2018 da Universidade do Minho.\n * Copyright : © Oracle, 2019\n * Licens...
118
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 31.56, "nodes": 78, "errors": 0, "source_hash": "9a123d63b411a3dd71eda811f69793c386c90c78f0f26da719e18bc2135a4c83", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "de <st...
6,699