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
/*---------------------------------------------------------------------- | gwutil.c | | This file contains various utility routines that may be used by gwnum | routines, prime95, or other consumers of gwnum. | | Copyright 2004-2019 Mersenne Research, Inc. All rights reserved. +---------------------------------------...
33.01
238
(translation_unit) "/*----------------------------------------------------------------------\n| gwutil.c\n|\n| This file contains various utility routines that may be used by gwnum\n| routines, prime95, or other consumers of gwnum.\n| \n| Copyright 2004-2019 Mersenne Research, Inc. All rights reserved.\n+------------...
1,883
0
{"language": "c", "success": true, "metadata": {"lines": 238, "avg_line_length": 33.01, "nodes": 1205, "errors": 0, "source_hash": "fca67bdf141316bd126b6eb11a21cb1e5dba25164d9fe2e33bbb832386e7f7ec", "categorized_nodes": 743}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
10,300
c
#include <string.h> double arithmetic(double a, double b, char *operator) { if (strcmp("add", operator) == 0) { return a + b; } else if (strcmp("subtract", operator) == 0) { return a - b; } else if (strcmp("multiply", operator) == 0) { return a * b; } else if (strcmp("divide", operator) ...
16.7
20
(translation_unit) "#include <string.h>\ndouble arithmetic(double a, double b, char *operator)\n{\n if (strcmp("add", operator) == 0)\n {\n return a + b;\n }\n else if (strcmp("subtract", operator) == 0)\n {\n return a - b;\n }\n else if (strcmp("multiply", operator) == 0)\n {\n return a * b;\n }\n e...
149
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 16.7, "nodes": 82, "errors": 0, "source_hash": "42203c9ffcae9e0d701d7b3014f9b69d0b7418769d09db10bb3d9b6f90c4f076", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
10,301
c
/* * ScopedLock.h : part of the Mace toolkit for building distributed systems * * Copyright (c) 2011, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are...
31.4
117
(translation_unit) "/* \n * ScopedLock.h : part of the Mace toolkit for building distributed systems\n * \n * Copyright (c) 2011, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>\n * All rights reserved.\n * \n * Redistribution and use in source and binary forms, with or wi...
254
3
{"language": "c", "success": true, "metadata": {"lines": 117, "avg_line_length": 31.4, "nodes": 131, "errors": 0, "source_hash": "d83c500b52082b1a028c7cd24bc1fe3d2924f2dc87361f547c5443515b6cd038", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,302
c
#include <stdint.h> #include <stdio.h> #include <string.h> int main() { int32_t i, j, m, p, c = 1; char n[21], r[21]; while (scanf("%d", &i) != EOF) { m = 11; while (i--) { scanf("%s %d", n, &p); if (p < m) { strncpy(r, n, sizeof(r)); ...
26.8
30
(translation_unit) "#include <stdint.h>\n#include <stdio.h>\n#include <string.h>\n\nint main() {\n int32_t i, j, m, p, c = 1;\n char n[21], r[21];\n\n while (scanf("%d", &i) != EOF) {\n m = 11;\n\n while (i--) {\n scanf("%s %d", n, &p);\n\n if (p < m) {\n strn...
318
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 26.8, "nodes": 175, "errors": 0, "source_hash": "fa9af1a2854379d3cb4f6c10ec0776acb09ab9c73a4307566c141abfc940c856", "categorized_nodes": 130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
10,303
c
#ifndef CONTROL_H #define CONTROL_H #include <QObject> class Control : public QObject { Q_OBJECT Q_PROPERTY(bool deleteOnClose READ deleteOnClose WRITE setDeleteOnClose NOTIFY deleteOnCloseChanged) public: explicit Control(QObject *parent = nullptr); virtual void onShow(); virtual void onClose(); virtual Co...
24
24
(translation_unit) "#ifndef CONTROL_H\n#define CONTROL_H\n\n#include <QObject>\n\nclass Control : public QObject\n{\n Q_OBJECT\n\n Q_PROPERTY(bool deleteOnClose READ deleteOnClose WRITE setDeleteOnClose NOTIFY deleteOnCloseChanged)\n\npublic:\n explicit Control(QObject *parent = nullptr);\n\n virtual void onShow();\n v...
164
12
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 24.0, "nodes": 110, "errors": 0, "source_hash": "e2a3481d56a24c2fd4d76a889f512dc201c78d5075d88f15cf71ed90a66549fa", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,304
c
/* $NetBSD: ipc_method.c,v 1.6 2013/11/27 20:52:24 christos Exp $ */ /*- * Copyright (c) 1996 * <NAME>. All rights reserved. * Copyright (c) 1996 * <NAME>. All rights reserved. * * See the LICENSE file for redistribution information. */ #include "config.h" #include <sys/types.h> #include <sys/queue.h> #inclu...
21.97
215
(translation_unit) "/* $NetBSD: ipc_method.c,v 1.6 2013/11/27 20:52:24 christos Exp $ */\n/*-\n * Copyright (c) 1996\n * <NAME>. All rights reserved.\n * Copyright (c) 1996\n * <NAME>. All rights reserved.\n *\n * See the LICENSE file for redistribution information.\n */\n\n#include "config.h"\n\n#include <sys/types....
1,984
21
{"language": "c", "success": true, "metadata": {"lines": 215, "avg_line_length": 21.97, "nodes": 1209, "errors": 0, "source_hash": "b53ecbba46f2045d50a4416aeb51152ba0338599313f9c5980e62d616244e5fa", "categorized_nodes": 905}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
10,305
c
#pragma once #include "library/sp.h" #include "library/strings.h" #include <vector> #include <map> namespace OpenApoc { class Image; class DoodadFrame { public: sp<Image> image; int time; }; class DoodadDef { private: DoodadDef(){}; friend class RulesLoader; public: UString ID; int lifetime; Vec2<int>...
14
26
(translation_unit) "#pragma once\n#include "library/sp.h"\n#include "library/strings.h"\n#include <vector>\n#include <map>\n\nnamespace OpenApoc\n{\n\nclass Image;\n\nclass DoodadFrame\n{\n public:\n sp<Image> image;\n int time;\n};\n\nclass DoodadDef\n{\n private:\n DoodadDef(){};\n friend class RulesLoader;\n\n pu...
120
2
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 14.0, "nodes": 65, "errors": 0, "source_hash": "31fa2f3e95e99acc56c626d806d9d78766d764f7deb03b95a9e04c5e2e4952ba", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
10,306
c
/******************************************************************************* * Copyright 2013-2021 Aerospike, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://ww...
35.2
174
(translation_unit) "/*******************************************************************************\n * Copyright 2013-2021 Aerospike, 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 Licen...
1,044
5
{"language": "c", "success": true, "metadata": {"lines": 174, "avg_line_length": 35.2, "nodes": 592, "errors": 0, "source_hash": "d40ce213f24fcd93bc5f38d6b160a107b642988c7323d70260986bcdea1457a7", "categorized_nodes": 417}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,307
c
#import <Foundation/Foundation.h> @interface NSString (XQueryComponents) - (NSString *)stringByDecodingURLFormat; - (NSString *)stringByEncodingURLFormat; - (NSMutableDictionary *)dictionaryFromQueryComponents; @end @interface NSURL (XQueryComponents) - (NSMutableDictionary *)queryComponents; @end @interface NSDicti...
31.33
12
(translation_unit) "#import <Foundation/Foundation.h>\n\n@interface NSString (XQueryComponents)\n- (NSString *)stringByDecodingURLFormat;\n- (NSString *)stringByEncodingURLFormat;\n- (NSMutableDictionary *)dictionaryFromQueryComponents;\n@end\n\n@interface NSURL (XQueryComponents)\n- (NSMutableDictionary *)queryCompone...
102
12
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 31.33, "nodes": 70, "errors": 0, "source_hash": "eac5aa8cfcf052a9478318b29074c40d34912d191bbfe08330114770339efdd7", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
10,308
c
// Copyright 2015 Google Inc. All Rights Reserved. // // Use of this source code is governed by a BSD-style license // that can be found in the COPYING file in the root of the source // tree. An additional intellectual property rights grant can be found // in the file PATENTS. All contributing project authors may // be...
40.07
73
(translation_unit) "// Copyright 2015 Google Inc. All Rights Reserved.\n//\n// Use of this source code is governed by a BSD-style license\n// that can be found in the COPYING file in the root of the source\n// tree. An additional intellectual property rights grant can be found\n// in the file PATENTS. All contributing ...
539
4
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 40.07, "nodes": 316, "errors": 0, "source_hash": "440f73d572bd174ed2aa3f4bd6577f18d7628d339e9d1e17b156c62c0da4008d", "categorized_nodes": 215}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,309
c
/* $NetBSD: cabsl.c,v 1.1 2014/10/10 00:48:18 christos Exp $ */ /* * Public domain. */ #include "../src/namespace.h" #include <complex.h> #include <math.h> long double cabsl(long double complex z) { return hypotl(__real__ z, __imag__ z); }
19.25
12
(translation_unit) "/* $NetBSD: cabsl.c,v 1.1 2014/10/10 00:48:18 christos Exp $ */\n\n/*\n * Public domain.\n */\n\n#include "../src/namespace.h"\n#include <complex.h>\n#include <math.h>\n\nlong double\ncabsl(long double complex z)\n{\n\n return hypotl(__real__ z, __imag__ z);\n}\n" (comment) "/* $NetBSD: cabsl.c,v ...
49
3
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 19.25, "nodes": 33, "errors": 0, "source_hash": "d9124d568f8e7058de4c468957383f91977b7da1eae8269875a59d6c74ccaace", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
10,310
c
#ifndef OCTOON_TEXT_WRITER_H_ #define OCTOON_TEXT_WRITER_H_ #include <string> #include <cstdint> #include <octoon/io/istream.h> namespace octoon { namespace io { class OCTOON_EXPORT TextWriter { public: TextWriter() noexcept; virtual ~TextWriter() noexcept; virtual void write(bool v) = 0; virtual...
34.36
58
(translation_unit) "#ifndef OCTOON_TEXT_WRITER_H_\n#define OCTOON_TEXT_WRITER_H_\n\n#include <string>\n#include <cstdint>\n#include <octoon/io/istream.h>\n\nnamespace octoon\n{\n namespace io\n {\n class OCTOON_EXPORT TextWriter\n {\n public:\n TextWriter() noexcept;\n virtual ~TextWriter() noexcept;\n\n virtu...
740
63
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 34.36, "nodes": 522, "errors": 0, "source_hash": "6a19086c3f16704bac9dafaa4e77927db4c8276abc29d92582d6644c03688eec", "categorized_nodes": 326}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,311
c
#ifndef ALIANALYSISTASKPROTONS_H #define ALIANALYSISTASKPROTONS_H //------------------------------------------------------------------------- // Class AliAnalysisTaskProton // This is the task for the baryon (proton) analysis // // Origin: <NAME> | <EMAIL> //---------------------------------------...
34.31
45
(translation_unit) "#ifndef ALIANALYSISTASKPROTONS_H\n#define ALIANALYSISTASKPROTONS_H\n\n//-------------------------------------------------------------------------\n// Class AliAnalysisTaskProton\n// This is the task for the baryon (proton) analysis\n//\n// Origin: <NAME> | <EMAIL>\n//-----------...
258
10
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 34.31, "nodes": 151, "errors": 0, "source_hash": "3285fc7d9cf4fd5e2c7ca7a2f3325c496a7a5116fcd7aee60cc7594923f2cf2b", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,312
c
/* SPDX-FileCopyrightText: 2021-2022 Comcast Cable Communications Management, LLC */ /* SPDX-License-Identifier: Apache-2.0 */ #include <CUnit/Basic.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "../src/utils.h" struct test_vector { const char *full; size_t len; ...
30.37
188
(translation_unit) "/* SPDX-FileCopyrightText: 2021-2022 Comcast Cable Communications Management, LLC */\n/* SPDX-License-Identifier: Apache-2.0 */\n#include <CUnit/Basic.h>\n#include <stdint.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#include "../src/utils.h"\n\n\nstruct test_vector {\n con...
1,832
0
{"language": "c", "success": true, "metadata": {"lines": 188, "avg_line_length": 30.37, "nodes": 1067, "errors": 0, "source_hash": "eb7107f539b0e1d2a326b843cd45a2683ff01b833dff8af529dfd762d564d79f", "categorized_nodes": 639}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
10,313
c
/* * Legal Notice * * This document and associated source code (the "Work") is a part of a * benchmark specification maintained by the TPC. * * The TPC reserves all right, title, and interest to the Work as provided * under U.S. and international laws, including without limitation all patent * and trademark rig...
29.73
166
(translation_unit) "/*\n * Legal Notice\n *\n * This document and associated source code (the "Work") is a part of a\n * benchmark specification maintained by the TPC.\n *\n * The TPC reserves all right, title, and interest to the Work as provided\n * under U.S. and international laws, including without limitation all ...
945
41
{"language": "c", "success": true, "metadata": {"lines": 166, "avg_line_length": 29.73, "nodes": 571, "errors": 0, "source_hash": "688b35380473877db6cebd2d0403043072410a3670efc0f4f48be85d19432fbd", "categorized_nodes": 395}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,314
c
/******************************************************* Mean Shift Analysis Library ============================================= The mean shift library is a collection of routines that use the mean shift algorithm. Using this algorithm, the necessary output will be generated needed to analyze ...
33.22
63
(translation_unit) "/*******************************************************\n\n Mean Shift Analysis Library\n =============================================\n\n The mean shift library is a collection of routines\n that use the mean shift algorithm. Using this algorithm,\n the necessary output will be ge...
112
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 33.22, "nodes": 57, "errors": 0, "source_hash": "4f781382eb6820d9f5dd9c5c519f0abdd7c018c41fffbc5f712bb94cdfcae09a", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,315
c
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CLOUD_PRINT_SERVICE_CLOUD_PRINT_SERVICE_H_ #define CLOUD_PRINT_SERVICE_CLOUD_PRINT_SERVICE_H_ #ifndef STRICT #define STRICT #endif #define _...
37.21
19
(translation_unit) "// Copyright (c) 2012 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef CLOUD_PRINT_SERVICE_CLOUD_PRINT_SERVICE_H_\n#define CLOUD_PRINT_SERVICE_CLOUD_PRINT_SERVICE_H_\n\n#ifndef STRICT\n#def...
45
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 37.21, "nodes": 38, "errors": 0, "source_hash": "5ca9640188411bffae69bde44aed7ab950fac7bdde2076e7a5751348e67359f9", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,316
c
#include "print_redir_uart.h" #ifdef USART_DEBUG /*printf retarget to UART*/ UART_HandleTypeDef* huart_debug; void APP_UART_DEBUG_Init(UART_HandleTypeDef* huart) { huart_debug = huart; } int _write(int file, char *ptr, int len) { HAL_UART_Transmit(huart_debug, ptr, len, 1000); //print the input ptr. r...
21.12
16
(translation_unit) "#include "print_redir_uart.h"\n\n\n#ifdef USART_DEBUG \n/*printf retarget to UART*/\nUART_HandleTypeDef* huart_debug;\n\nvoid APP_UART_DEBUG_Init(UART_HandleTypeDef* huart)\n{\n huart_debug = huart;\n}\n\n\nint _write(int file, char *ptr, int len)\n{\n HAL_UART_Transmit(huart_debug, ptr, len, ...
82
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 21.12, "nodes": 51, "errors": 0, "source_hash": "9f4c5748172599da1c3c55950f1a9d91ed7fee7fa6718c82cd2b19caf0254805", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
10,317
c
#include <stdio.h> #include <fcntl.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <errno.h> int main(int argc, char const *argv[]) { struct flock lock; int fd; if (-1 == (fd = open(argv[1], O_RDWR))) { perror(argv[1]); exit(1); } lock.l_type = F_WRLCK; lock.l_whence = SEEK_SET; lo...
22.91
33
(translation_unit) "#include <stdio.h>\n#include <fcntl.h>\n#include <unistd.h>\n#include <stdlib.h>\n#include <string.h>\n#include <errno.h>\n\nint main(int argc, char const *argv[]) {\n struct flock lock;\n int fd;\n\n if (-1 == (fd = open(argv[1], O_RDWR))) {\n perror(argv[1]);\n exit(1);\n }\n\n lock.l_type = F_W...
336
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 22.91, "nodes": 206, "errors": 0, "source_hash": "f88869a61b43d0557651e238ab249da90615d0122c6a3d14ff6e803b0f5e948c", "categorized_nodes": 156}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,318
c
#ifndef PAGESTACKFRAME_H #define PAGESTACKFRAME_H #include <stddef.h> #include "PageType.h" /** * @brief Holds information on displayed PageWidgets. * * A PageStackFrame can be used by the Navigator to keep track of which * PageWidget has been displayed and how many items it has pushed to the data stack. * * @...
23.93
28
(translation_unit) "#ifndef PAGESTACKFRAME_H\n#define PAGESTACKFRAME_H\n\n#include <stddef.h>\n#include "PageType.h"\n\n\n/**\n * @brief Holds information on displayed PageWidgets.\n *\n * A PageStackFrame can be used by the Navigator to keep track of which\n * PageWidget has been displayed and how many items it has pu...
120
4
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 23.93, "nodes": 73, "errors": 0, "source_hash": "f2ae9969b90c60b4cf2f41f63d0b3a06b81f07f9e008ead41938afe6d4889978", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,319
c
#pragma once #include <string> // Here we should run some scripts to build the files namespace Tools { // Run some scripts and stuff to build the chirp application void Build (std::string, std::string); }
24.88
8
(translation_unit) "#pragma once\n\n#include <string>\n\n// Here we should run some scripts to build the files\n\nnamespace Tools\n{\n // Run some scripts and stuff to build the chirp application\n void Build (std::string, std::string);\n}\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (prep...
36
2
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 24.88, "nodes": 20, "errors": 0, "source_hash": "e5586966871efa6a3016f5d14b97a1298e312159fb6dd6e8d91442d7bb3cf4d1", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
10,320
c
// // FooterCell.h // quizzapp // // Created by <NAME> on 24/09/13. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface FooterCell : UICollectionReusableView @end
19.4
10
(translation_unit) "//\n// FooterCell.h\n// quizzapp\n//\n// Created by <NAME> on 24/09/13.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface FooterCell : UICollectionReusableView\n\n@end\n" (comment) "//" (comment) "// FooterCell.h" (comment) "// quizzapp" (...
22
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.4, "nodes": 11, "errors": 0, "source_hash": "3fcc65f291af172ae6d9ad4ed06077bd11e7ba7b7e0146b91b80fb4b8ea8dfe7", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UI...
10,321
c
class AITargetCallbacksPlayer : AITargetCallbacks { void AITargetCallbacksPlayer(PlayerBase pPlayer) { m_Player = pPlayer; m_iHeadBoneIndex = m_Player.GetBoneIndexByName("Head"); m_iChestBoneIndex = m_Player.GetBoneIndexByName("Spine3"); } override vector GetHeadPositionWS() { if( m_iHeadBoneIndex !...
22.03
71
(translation_unit) "class AITargetCallbacksPlayer : AITargetCallbacks\n{\n void AITargetCallbacksPlayer(PlayerBase pPlayer)\n {\n m_Player = pPlayer;\n \n m_iHeadBoneIndex = m_Player.GetBoneIndexByName("Head");\n m_iChestBoneIndex = m_Player.GetBoneIndexByName("Spine3");\n }\n \n override vector GetHeadPositionWS()...
383
8
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 22.03, "nodes": 226, "errors": 0, "source_hash": "9154a0f1699ac322d4a0131f67c1b1d6d5aa9fec99cc4edf34c653ef1e7e1794", "categorized_nodes": 175}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "...
10,322
c
/* Copyright 2018 Alibaba Group Holding Limited. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law o...
36.1
30
(translation_unit) "/* Copyright 2018 Alibaba Group Holding Limited. All Rights Reserved.\n\nLicensed under the Apache License, Version 2.0 (the "License");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless ...
100
3
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 36.1, "nodes": 53, "errors": 0, "source_hash": "75009306ad1e3a07ae3d096ae199031f0b5ee4d81cb2ffd1f18f3037c8fa49fc", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef E...
10,323
c
#ifndef SPHERICALCOORDS_H_ #define SPHERICALCOORDS_H_ #include <QWidget> namespace Ui { class SphericalCoords; } #ifndef QJULIA_QT_PLUGIN #include "core/vector.h" #endif class SphericalCoords : public QWidget { Q_OBJECT public: explicit SphericalCoords(QWidget *parent = 0); ~SphericalCoords(); #ifndef QJUL...
21.93
29
(translation_unit) "#ifndef SPHERICALCOORDS_H_\n#define SPHERICALCOORDS_H_\n\n#include <QWidget>\n\nnamespace Ui {\nclass SphericalCoords;\n}\n\n#ifndef QJULIA_QT_PLUGIN\n#include "core/vector.h"\n#endif\n\nclass SphericalCoords : public QWidget {\n Q_OBJECT\npublic:\n explicit SphericalCoords(QWidget *parent = 0);\n...
178
8
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 21.93, "nodes": 112, "errors": 0, "source_hash": "eacd80c8616a01abc3019d0f5b439d7b5da63558c97b6a746dea66f723a6b616", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,324
c
//-*-C++-*- /*************************************************************************** * * Copyright (C) 2004 - 2016 by <NAME> * Licensed under the Academic Free License version 2.1 * ***************************************************************************/ // psrchive/Util/units/tostring.h #ifndef __TO...
26.29
141
(translation_unit) "//-*-C++-*-\n/***************************************************************************\n *\n * Copyright (C) 2004 - 2016 by <NAME>\n * Licensed under the Academic Free License version 2.1\n *\n ***************************************************************************/\n\n// psrchive/Util/un...
1,032
45
{"language": "c", "success": true, "metadata": {"lines": 141, "avg_line_length": 26.29, "nodes": 597, "errors": 0, "source_hash": "17bc07babd53e6b52649c0e29f6b959b6b039885a3bb41f928af7eac51a04f83", "categorized_nodes": 427}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,325
c
#ifndef __EMA_POINT_CLOUD_H__ #define __EMA_POINT_CLOUD_H__ #include "mesh/Mesh.h" #include "ema/EmaData.h" class EmaPointCloud{ private: const EmaData& emaData; public: EmaPointCloud(const EmaData& emaData) : emaData(emaData) { } Mesh from(const std::vector<std::string>& coilIds, const int& sampleIndex...
30.29
35
(translation_unit) "#ifndef __EMA_POINT_CLOUD_H__\n#define __EMA_POINT_CLOUD_H__\n\n#include "mesh/Mesh.h"\n#include "ema/EmaData.h"\n\nclass EmaPointCloud{\n\nprivate:\n\n const EmaData& emaData;\n\npublic:\n\n EmaPointCloud(const EmaData& emaData) : emaData(emaData) {\n\n }\n\n Mesh from(const std::vector<std::st...
360
16
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 30.29, "nodes": 198, "errors": 0, "source_hash": "d9a5249025158135397746bb800c09d2b4f623743c303269d7001a7e8ac5f0ad", "categorized_nodes": 148}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef __EMA_...
10,326
c
// // MentionsViewController.h // twitter // // Created by <NAME> on 7/1/21. // Copyright © 2021 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface MentionsViewController : UIViewController @end NS_ASSUME_NONNULL_END
20.75
12
(translation_unit) "//\n// MentionsViewController.h\n// twitter\n//\n// Created by <NAME> on 7/1/21.\n// Copyright © 2021 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface MentionsViewController : UIViewController\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//...
27
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 20.75, "nodes": 14, "errors": 0, "source_hash": "ae6f383e85f35524a599da139ca39a7219be976c37ef14d5f6da77e6f720d399", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UI...
10,327
c
#ifndef PIXELPICKER_H #define PIXELPICKER_H #include <OpenImageIO/imagebuf.h> #include <OpenImageIO/imagecache.h> #include <string> using namespace std; using namespace OIIO; #include <QDebug> #include "io/InputImageFormatChecker.h" #include "ImathVec.h" #include "ImathLimits.h" using namespace IMATH_INTERNAL_NA...
37.89
44
(translation_unit) "#ifndef PIXELPICKER_H\n#define PIXELPICKER_H\n\n#include <OpenImageIO/imagebuf.h>\n#include <OpenImageIO/imagecache.h>\n#include <string>\nusing namespace std;\n\nusing namespace OIIO;\n\n#include <QDebug>\n\n#include "io/InputImageFormatChecker.h"\n\n#include "ImathVec.h"\n\n\n#include "ImathLimits...
356
18
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 37.89, "nodes": 243, "errors": 0, "source_hash": "86b7df3d067ddc24be918a9f7123d13ddf6f08ac276a5124897c4a19351acd2b", "categorized_nodes": 154}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,328
c
// // AVIMTypedMessage.h // AVOSCloudIM // // Created by <NAME> on 1/8/15. // Copyright (c) 2014 LeanCloud Inc. All rights reserved. // #import "AVIMMessage.h" @class AVFile; @class AVGeoPoint; NS_ASSUME_NONNULL_BEGIN @protocol AVIMTypedMessageSubclassing <NSObject> @required /*! 子类实现此方法用于返回该类对应的消息类型 @return ...
28
58
(ERROR) "//\n// AVIMTypedMessage.h\n// AVOSCloudIM\n//\n// Created by <NAME> on 1/8/15.\n// Copyright (c) 2014 LeanCloud Inc. All rights reserved.\n//\n\n#import "AVIMMessage.h"\n\n@class AVFile;\n@class AVGeoPoint;\n\nNS_ASSUME_NONNULL_BEGIN\n\n@protocol AVIMTypedMessageSubclassing <NSObject>\n@required\n/*!\n 子类实...
266
29
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 28.0, "nodes": 169, "errors": 0, "source_hash": "4702569da46fd84de787d02317e20c265dce49aa9d39604e1989639db378f91c", "categorized_nodes": 103}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// AVIMTypedMessage.h...
10,329
c
//**************************************************************************** // // Copyright (c) ALTAP, spol. s r.o. All rights reserved. // // This is a part of the Altap Salamander SDK library. // // The SDK is provided "AS IS" and without warranty of any kind and // ALTAP EXPRESSLY DISCLAIMS ALL WARRANTIES, EXPRE...
29.88
49
(translation_unit) "//****************************************************************************\n//\n// Copyright (c) ALTAP, spol. s r.o. All rights reserved.\n//\n// This is a part of the Altap Salamander SDK library.\n//\n// The SDK is provided "AS IS" and without warranty of any kind and \n// ALTAP EXPRESSLY DISC...
195
0
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 29.88, "nodes": 116, "errors": 0, "source_hash": "fec21562f9a31d29a449a56f951bf1b3ae1f9b9c215b7da72c99946b24a60c10", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
10,330
c
/* Copyright(c) 2016-2019 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, subl...
38.44
73
(translation_unit) "/*\nCopyright(c) 2016-2019 <NAME>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge,...
474
14
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 38.44, "nodes": 283, "errors": 0, "source_hash": "79ad28af52a77cd1b725bfbc6b9994e8f4636017d653a9c026ebb2896fdddfd5", "categorized_nodes": 182}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
10,331
c
#define PGSIZE (4096) #include "types.h" #include "stat.h" #include "user.h" void worker(void *arg_ptr); volatile int global =1; int ppid; #define assert(x) if (x) {} else { \ printf(1, "%s: %d ", __FILE__, __LINE__); \ printf(1, "assert failed (%s)\n", # x); \ printf(1, "TEST FAILED\n"); \ kill(ppid); \ ...
21.3
40
(translation_unit) "#define PGSIZE (4096)\n#include "types.h"\n#include "stat.h"\n#include "user.h"\n\n\nvoid worker(void *arg_ptr);\nvolatile int global =1;\nint ppid;\n#define assert(x) if (x) {} else { \\n printf(1, "%s: %d ", __FILE__, __LINE__); \\n printf(1, "assert failed (%s)\n", # x); \\n printf(1, "TEST...
330
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 21.3, "nodes": 221, "errors": 0, "source_hash": "daa1aade83c84eb90212d63310cf82d6b1d03f1d2c7279f7ffffeb60da2514c8", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define P...
10,332
c
// slang-ir-link.h #pragma once #include "slang-compiler.h" namespace Slang { struct LinkedIR { RefPtr<IRModule> module; IRFunc* entryPoint; }; // Clone the IR values reachable from the given entry point // into the IR module associated with the specialization stat...
28.83
24
(translation_unit) "// slang-ir-link.h\n#pragma once\n\n#include "slang-compiler.h"\n\nnamespace Slang\n{\n struct LinkedIR\n {\n RefPtr<IRModule> module;\n IRFunc* entryPoint;\n };\n\n\n // Clone the IR values reachable from the given entry point\n // into the IR module asso...
79
1
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 28.83, "nodes": 52, "errors": 0, "source_hash": "8851370d0f9c3f38795152fd0a5c8d684fd1ab3d8cb60004c79eeef7985ceefe", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
10,333
c
/* Copyright 2021 Rose-Hulman */ #include <stdio.h> #include <pthread.h> #include <semaphore.h> #include <unistd.h> #include <stdbool.h> /** Imagine a group of friends are getting together to play music, but they are arriving at different times. Arriving can happen at any time (e.g. when some other friends are ...
25.75
118
(translation_unit) "/* Copyright 2021 Rose-Hulman */\n#include <stdio.h>\n#include <pthread.h>\n#include <semaphore.h>\n#include <unistd.h>\n#include <stdbool.h>\n\n/**\n Imagine a group of friends are getting together to play music, but\n they are arriving at different times. Arriving can happen at any\n time (e.g...
612
0
{"language": "c", "success": true, "metadata": {"lines": 118, "avg_line_length": 25.75, "nodes": 347, "errors": 0, "source_hash": "a8042cb50956432cf9427a43a7d80d15c9ed26eceee09010bdbe4f85059795b6", "categorized_nodes": 235}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,334
c
// Generated by HybirdPB CodeGenerator(1.1.6). DO NOT EDIT! // Generation date is 2017-03-21 15:51:26 #import <APProtocolBuffers/ProtocolBuffers.h> #import "UnionResourceBizType.pb.h" @class UnionResourceInfo; @class UnionResourceItem; @interface UnionResourceInfo : APDPBGeneratedMessage @property (r...
31.11
28
(translation_unit) "// Generated by HybirdPB CodeGenerator(1.1.6). DO NOT EDIT! \n// Generation date is 2017-03-21 15:51:26 \n \n#import <APProtocolBuffers/ProtocolBuffers.h> \n \n \n#import "UnionResourceBizType.pb.h" \n \n@class UnionResourceInfo; \n@class UnionResourceItem; \n \n@interface UnionResourceInfo : APDPBG...
217
49
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 31.11, "nodes": 166, "errors": 0, "source_hash": "a2bc40776232068d7868723116da6de5f6d55b0bedb7e06ddb8e6ba41b690a16", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
10,335
c
/* this ALWAYS GENERATED file contains the definitions for the interfaces */ /* File created by MIDL compiler version 5.01.0164 */ /* at Sat Dec 16 21:19:27 2006 */ /* Compiler settings for C:\Program Files\Microsoft Speech SDK 5.1\Samples\CPP\Engines\TTS\TtsEng.idl: Oicf (OptLev=i2), W1, Zp8, env=Win32, ms_ext,...
28.45
69
(translation_unit) "/* this ALWAYS GENERATED file contains the definitions for the interfaces */\n\n\n/* File created by MIDL compiler version 5.01.0164 */\n/* at Sat Dec 16 21:19:27 2006\n */\n/* Compiler settings for C:\Program Files\Microsoft Speech SDK 5.1\Samples\CPP\Engines\TTS\TtsEng.idl:\n Oicf (OptLev=i2), ...
220
7
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 28.45, "nodes": 145, "errors": 0, "source_hash": "58fda5ce79ec802dabaf844b97ee84b571e890c8eae0f4e7caa466d26ef65b10", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,336
c
extern EXPLOIT exploit[];
25
1
(translation_unit) "extern EXPLOIT exploit[];" (declaration) "extern EXPLOIT exploit[];" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "EXPLOIT" (array_declarator) "exploit[]" (identifier) "exploit" ([) "[" (]) "]" (;) ";"
10
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 25.0, "nodes": 6, "errors": 0, "source_hash": "01cac0074af76905327db345d546332cf69baabbb7ddea44431da69504a991bd", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern EXPLOIT...
10,337
c
#ifndef _paintown_enemy_guy_h #define _paintown_enemy_guy_h #include "character.h" #include "util/file-system.h" #include <string> #include <vector> class World; namespace Paintown{ class Object; class Enemy: public Character{ public: Enemy( ); Enemy( const char * filename ); Enemy( const Filesystem::AbsoluteP...
24.16
63
(translation_unit) "#ifndef _paintown_enemy_guy_h\n#define _paintown_enemy_guy_h\n\n#include "character.h"\n#include "util/file-system.h"\n\n#include <string>\n#include <vector>\n\nclass World;\n\nnamespace Paintown{\n\nclass Object;\nclass Enemy: public Character{\npublic:\n Enemy( ); \n Enemy( const char * filename )...
451
26
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 24.16, "nodes": 284, "errors": 0, "source_hash": "b6e07cbc164a45ec82368129f05c4fa495e0e1083b1aa0a67e67fe80421dc359", "categorized_nodes": 186}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,338
c
/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (C) 2016 NextThing Co * Copyright (C) 2016-2019 Bootlin * * Author: <NAME> <<EMAIL>> */ #ifndef _SUN4I_CSI_H_ #define _SUN4I_CSI_H_ #include <media/media-device.h> #include <media/v4l2-async.h> #include <media/v4l2-dev.h> #include <media/v4l2-device.h> #incl...
27.1
125
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0+ */\n/*\n * Copyright (C) 2016 NextThing Co\n * Copyright (C) 2016-2019 Bootlin\n *\n * Author: <NAME> <<EMAIL>>\n */\n\n#ifndef _SUN4I_CSI_H_\n#define _SUN4I_CSI_H_\n\n#include <media/media-device.h>\n#include <media/v4l2-async.h>\n#include <media/v4l2-dev.h>\n#i...
637
1
{"language": "c", "success": true, "metadata": {"lines": 125, "avg_line_length": 27.1, "nodes": 499, "errors": 0, "source_hash": "1bcbeb33522704f8e1308de00c7567550c5357c1f27dcbf5b4470aba2ebe1130", "categorized_nodes": 344}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,339
c
/* SPDX-License-Identifier: MIT */ #include "ringbuf.h" void ringbuf_init(ringbuf_t *ringbuf, ringbuf_element_t *buffer, size_t buffer_size) { ringbuf->buf = buffer; ringbuf->buffer_size = buffer_size; ringbuf->head = 0; ringbuf->tail = 0; } size_t ringbuf_push(ringbuf_t *ringbuf, const ringbuf_eleme...
30.7
54
(translation_unit) "/* SPDX-License-Identifier: MIT */\n\n#include "ringbuf.h"\n\nvoid ringbuf_init(ringbuf_t *ringbuf, ringbuf_element_t *buffer, size_t buffer_size) {\n ringbuf->buf = buffer;\n ringbuf->buffer_size = buffer_size;\n ringbuf->head = 0;\n ringbuf->tail = 0;\n}\n\nsize_t ringbuf_push(ringbuf_...
553
0
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 30.7, "nodes": 349, "errors": 0, "source_hash": "bde4d5c26d6e7d8d7e94faf1cd0dd4f330b0698ceeeb72b3fd242825fde2a653", "categorized_nodes": 264}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
10,340
c
#pragma once #include "math/types.h" #include "text_logger.h" // Convert to vector<uint8_t> template<typename T> Data ConvertTouint8_tVect(T element) { // Reinterpret element as array of 8-byte uint8_t uint8_t* uint8_t_array = reinterpret_cast<uint8_t *>(&element); // Create vector from the array cons...
26.84
61
(translation_unit) "#pragma once\n#include "math/types.h"\n#include "text_logger.h"\n\n\n// Convert to vector<uint8_t>\ntemplate<typename T>\nData ConvertTouint8_tVect(T element)\n{\n // Reinterpret element as array of 8-byte uint8_t\n uint8_t* uint8_t_array = reinterpret_cast<uint8_t *>(&element);\n // Create...
435
21
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 26.84, "nodes": 276, "errors": 0, "source_hash": "5d682183caeb3e6799ceef460ce0330785d47ccaf8ceec76c9b318611fcab06b", "categorized_nodes": 171}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
10,341
c
/* * Copyright (C) 2015 University of Oregon * * You may distribute under the terms of either the GNU General Public * License or the Apache License, as specified in the LICENSE file. * * For more information, see the LICENSE file. */ #ifndef INCprochandlerh #define INCprochandlerh #include <sys/types.h> #inc...
31.77
57
(translation_unit) "/*\n * Copyright (C) 2015 University of Oregon\n *\n * You may distribute under the terms of either the GNU General Public\n * License or the Apache License, as specified in the LICENSE file.\n *\n * For more information, see the LICENSE file.\n */\n\n#ifndef INCprochandlerh\n#define INCprochandler...
167
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 31.77, "nodes": 148, "errors": 0, "source_hash": "471847d71f7456542c11e241eef28dab76c229ea49cc8b89bf843f2b06e7fe7b", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,342
c
#ifndef PVCWINDOW_H #define PVCWINDOW_H #include "PVC.h" PHwnd pvcCreateWindow(char * title, PHwnd parent, int x, int y, int width, int height); bool pvcWndPreTranslateMessage(PHwnd hwnd, PMessage * msg); bool pvcWndTranslateMessage(PHwnd hwnd, PMessage * msg); void pvcSendMessage(PHwnd hwnd, PMessage msg); void ...
39.05
22
(translation_unit) "#ifndef PVCWINDOW_H\n#define PVCWINDOW_H\n\n#include "PVC.h"\n\nPHwnd pvcCreateWindow(char * title, PHwnd parent, int x, int y, int width, int height);\n\nbool pvcWndPreTranslateMessage(PHwnd hwnd, PMessage * msg);\n\nbool pvcWndTranslateMessage(PHwnd hwnd, PMessage * msg);\n\nvoid pvcSendMessage(PH...
294
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 39.05, "nodes": 220, "errors": 0, "source_hash": "9f75723753fb5b54ee77beb144eb0fa6425013fc595097df15e9b5b336969bf6", "categorized_nodes": 142}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,343
c
#pragma once #include "src/make_tmp_mdec.h" #include "src/copy_tmp_mdec.h" #include "src/add_tmp_mdec.h" #include "src/sub_tmp_mdec.h" #include "src/mul_tmp_mdec.h" #include "src/div_tmp_mdec.h" #include "src/abs_tmp_mdec.h" #include "src/cast_tmp_mdec.h" #include "src/compacted_tmp_mdec.h" #include "src/round_tmp_mdec...
28.77
13
(translation_unit) "#pragma once\n#include "src/make_tmp_mdec.h"\n#include "src/copy_tmp_mdec.h"\n#include "src/add_tmp_mdec.h"\n#include "src/sub_tmp_mdec.h"\n#include "src/mul_tmp_mdec.h"\n#include "src/div_tmp_mdec.h"\n#include "src/abs_tmp_mdec.h"\n#include "src/cast_tmp_mdec.h"\n#include "src/compacted_tmp_mdec.h"...
76
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 28.77, "nodes": 39, "errors": 0, "source_hash": "7be31a950ee1b963e18b1f292ae6280cf834a164c98aef0ab7c29d392c837b5b", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
10,344
c
#pragma once #include <QtWidgets/QMainWindow> #include <QJsonDocument> #include "ui_Posters.h" #include "moviedatabase.h" class Posters : public QMainWindow { Q_OBJECT public: Posters(QWidget *parent = Q_NULLPTR); ~Posters(); private: Ui::PostersClass ui; MovieDatabase* db; MovieDatabase* imageDownload; voi...
19.92
25
(translation_unit) "#pragma once\n\n#include <QtWidgets/QMainWindow>\n#include <QJsonDocument>\n#include "ui_Posters.h"\n#include "moviedatabase.h"\n\nclass Posters : public QMainWindow\n{\n Q_OBJECT\n\npublic:\n Posters(QWidget *parent = Q_NULLPTR);\n ~Posters();\n\nprivate:\n Ui::PostersClass ui;\n MovieDatabase* db;...
150
5
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 19.92, "nodes": 97, "errors": 0, "source_hash": "79d48941ca84510fee5b981c9528a88ef0ca0c3056d9723e2e6ad6e86048cc7b", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
10,345
c
// Copyright (c) 2017 Kage authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <jni.h> #include <time.h> #include "platform.h" #include "game.h" #include "graphics.h" #include "audio.h" #define STB_IMAGE_IMPLEMENTATION #includ...
30.72
115
(translation_unit) "// Copyright (c) 2017 Kage authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#include <jni.h>\n#include <time.h>\n\n#include "platform.h"\n#include "game.h"\n#include "graphics.h"\n#include "audio.h"\n\n#define ...
944
0
{"language": "c", "success": true, "metadata": {"lines": 115, "avg_line_length": 30.72, "nodes": 595, "errors": 0, "source_hash": "84d077d331ff8f3350f3808ff90abc5ace37a0e5eb39b97b9c6df1ad9d916769", "categorized_nodes": 433}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,346
c
//========================================================================= // Copyright (C) 2012 The Elastos Open Source Project // // 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 // // ...
33.86
43
(translation_unit) "//=========================================================================\n// Copyright (C) 2012 The Elastos Open Source Project\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...
136
4
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 33.86, "nodes": 62, "errors": 0, "source_hash": "ccdc162808e917e52c0b9330c4177eb61d75db32cf93465ad6182e01c1b9aaae", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,347
c
#include <stdio.h> int main() { float sum; float num; int num_given = 0; float average = 0; printf("Here you need to enter 5 numbers\n or more until 0 is given\n"); printf("Please enter your numbers:\n"); while (num > 0 || num_given == 0){ scanf("%f", &num); ...
17.69
29
(translation_unit) "#include <stdio.h> \n \nint main() { \n \n float sum; \n float num; \n int num_given = 0; \n float average = 0; \n \n printf("Here you need to enter 5 numbers\n or more until 0 is given\n"); \n printf("Please enter your numbers:\n"); \n \n while (num > 0 || num_given == 0){ \n ...
173
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 17.69, "nodes": 97, "errors": 0, "source_hash": "5add99efb1e268cc8f6e6d039968d49aceb154143c69a2885ac6b5310508a617", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
10,348
c
/* Database * * Copyright (c) 2019, <NAME> <musgrajw at uc dot mail dot edu> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above co...
36.91
160
(translation_unit) "/* Database\n *\n * Copyright (c) 2019, <NAME> <musgrajw at uc dot mail dot edu>\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 * * Redistributions of source c...
1,296
0
{"language": "c", "success": true, "metadata": {"lines": 160, "avg_line_length": 36.91, "nodes": 776, "errors": 0, "source_hash": "30a151d80c57593e597dfbd966bfc223d509eefca5c8aa290874c7c86ff7f48d", "categorized_nodes": 529}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,349
c
#ifndef H_WARDEN_PREDICATES #define H_WARDEN_PREDICATES #include "warden.h" static inline bool is_digit(char c) { return (c >= '0' && c <= '9'); } #endif
21.14
7
(translation_unit) "#ifndef H_WARDEN_PREDICATES\n#define H_WARDEN_PREDICATES\n\n#include "warden.h"\n\nstatic inline bool is_digit(char c) {\n return (c >= '0' && c <= '9');\n}\n\n#endif\n" (preproc_ifdef) "#ifndef H_WARDEN_PREDICATES\n#define H_WARDEN_PREDICATES\n\n#include "warden.h"\n\nstatic inline bool is_digit(...
53
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 21.14, "nodes": 38, "errors": 0, "source_hash": "f43ecde3e777c77828a94335bb05753353e3a3cf14d8e182a9bbbac74c8579d5", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef H...
10,350
c
/* * Copyright (C) 2021 Intel Corporation * * SPDX-License-Identifier: MIT * */ #pragma once #include <level_zero/zet_api.h> struct _zet_debug_session_handle_t {}; namespace L0 { struct Device; struct DebugSession : _zet_debug_session_handle_t { virtual ~DebugSession() = default; DebugSession() = dele...
35.58
24
(translation_unit) "/*\n * Copyright (C) 2021 Intel Corporation\n *\n * SPDX-License-Identifier: MIT\n *\n */\n\n#pragma once\n#include <level_zero/zet_api.h>\n\nstruct _zet_debug_session_handle_t {};\n\nnamespace L0 {\n\nstruct Device;\n\nstruct DebugSession : _zet_debug_session_handle_t {\n virtual ~DebugSession()...
212
8
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 35.58, "nodes": 128, "errors": 0, "source_hash": "4e54197714c0fd20241496c8d69e56c1f6bdfadc817ca5779e0164bbfeeed468", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
10,351
c
#pragma once #include <map> enum class MaterialRenderingContext { FORWARD, DEFERRED_OPAQUE, DEFERRED_TRANSPARENT }; class Material; class MaterialManager final { public: MaterialManager(const MaterialManager& other) = delete; MaterialManager(MaterialManager&& other) noexcept = delete; MaterialManager& operator...
36.72
29
(translation_unit) "#pragma once\n#include <map>\n\nenum class MaterialRenderingContext\n{\n FORWARD,\n DEFERRED_OPAQUE,\n DEFERRED_TRANSPARENT\n};\n\nclass Material;\n\nclass MaterialManager final\n{\npublic:\n MaterialManager(const MaterialManager& other) = delete;\n MaterialManager(MaterialManager&& other) noexcept ...
294
14
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 36.72, "nodes": 187, "errors": 0, "source_hash": "35f7690b771b3ecac93b391e6110566b55c83a71a4eedeab5388db2b0cb308ac", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
10,352
c
/** * iptables API * iptables API generated from iptables.yang * * OpenAPI spec version: 1.0.0 * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/polycube-network/swagger-codegen.git * branch polycube */ /* Do not edit this file manually */ /* * ChainStatsJsonObject.h ...
19.49
77
(translation_unit) "/**\n* iptables API\n* iptables API generated from iptables.yang\n*\n* OpenAPI spec version: 1.0.0\n*\n* NOTE: This class is auto generated by the swagger code generator program.\n* https://github.com/polycube-network/swagger-codegen.git\n* branch polycube\n*/\n\n\n/* Do not edit this file manually ...
309
17
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 19.49, "nodes": 169, "errors": 0, "source_hash": "776167bef5d537c7ee2e5c39eb9007ce679a59b731e409a238f9ec3e1eb69c83", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
10,353
c
//! @file //! //! Copyright (c) Memfault, Inc. //! See License.txt for details #include "fake_memfault_platform_time.h" #include <stdbool.h> typedef struct { bool enabled; sMemfaultCurrentTime time; } sMemfaultFakeTimerState; static sMemfaultFakeTimerState s_fake_timer_state; void fake_memfault_platform_time_e...
24.81
27
(translation_unit) "//! @file\n//!\n//! Copyright (c) Memfault, Inc.\n//! See License.txt for details\n\n#include "fake_memfault_platform_time.h"\n\n#include <stdbool.h>\n\ntypedef struct {\n bool enabled;\n sMemfaultCurrentTime time;\n} sMemfaultFakeTimerState;\n\nstatic sMemfaultFakeTimerState s_fake_timer_state;\n...
138
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 24.81, "nodes": 81, "errors": 0, "source_hash": "6e054083d9489c4d188c79350858a3f6206e6ffae1134b02ca4c3e214ed1f175", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
10,354
c
#ifndef DUSTGENUNITMINDDUST_H_INCLUDED #define DUSTGENUNITMINDDUST_H_INCLUDED #include <DustApi.h> namespace DustUnitMindNative { extern DustToken DustUnitNative; extern DustToken DustTypeModule; extern DustToken DustRefModuleAgents; extern DustToken DustRefModuleAlgorithms; extern DustToken DustTypeSe...
24.57
42
(translation_unit) "#ifndef DUSTGENUNITMINDDUST_H_INCLUDED \n#define DUSTGENUNITMINDDUST_H_INCLUDED \n \n#include <DustApi.h> \n \nnamespace DustUnitMindNative \n{ \nextern DustToken DustUnitNative; \n \nextern DustToken DustTypeModule; \nextern DustToken DustRefModuleAgents; \nextern DustToken DustRefModuleAlgorithms;...
158
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 24.57, "nodes": 126, "errors": 0, "source_hash": "882dc70590a9fc428a6190f7b1eeb9baf8d5157fb50fed26db552b483c620b83", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,355
c
#pragma once #include <core/RoPrerequisites.h> class RoCharacterServerData { public: };
13.67
6
(translation_unit) "#pragma once\n#include <core/RoPrerequisites.h>\n\nclass RoCharacterServerData\n{\npublic:\n};" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <core/RoPrerequisites.h>\n" (#include) "#include" (system_lib_string) "<c...
20
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 13.67, "nodes": 9, "errors": 0, "source_hash": "8462f23144a7c1a1d3680e5a8209694266cdf4d6063b299c9bc686b1dfff9ac5", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once...
10,356
c
/* * Copyright (C) 2003, 2004, 2005, 2006, 2007 * <NAME> <<EMAIL>>. * * This file is part of JamVM. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2, * or (at your opt...
37.28
54
(translation_unit) "/*\n * Copyright (C) 2003, 2004, 2005, 2006, 2007\n * <NAME> <<EMAIL>>.\n *\n * This file is part of JamVM.\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * as published by the Free Software Foundation; either v...
232
0
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 37.28, "nodes": 146, "errors": 0, "source_hash": "fda3fa9840c8ab5a9baef5fb6f287f7aac28ede51a53c80ca6ab6b4ce35eed7f", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,357
c
// // DataDownloader.h // Bluefruit Connect // // Created by <NAME> on 31/05/16. // Copyright © 2016 Adafruit. All rights reserved. // #import <Foundation/Foundation.h> @interface DataDownloader : NSObject // Download helper + (void)downloadDataFromURL:(NSURL *)url withCompletionHandler:(void (^)(NSData *))compl...
27
12
(translation_unit) "//\n// DataDownloader.h\n// Bluefruit Connect\n//\n// Created by <NAME> on 31/05/16.\n// Copyright © 2016 Adafruit. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface DataDownloader : NSObject\n\n// Download helper\n+ (void)downloadDataFromURL:(NSURL *)url withCompletion...
58
9
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 27.0, "nodes": 30, "errors": 0, "source_hash": "a214fbd85d0b589dbb6d50e2f38e93a08aa247f1a528bc59b72920b82acde666", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <Fo...
10,358
c
#pragma once #include <QtCore/QAbstractTableModel> #include <QtCore/QVector> #include <QtCore/QStringList> #include "SymbolSeeker.h" namespace SymSeek::QtUI { class SymbolsModel: public QAbstractTableModel { Q_OBJECT public: SymbolsModel(QObject * parent = nullptr); int rowCount(const QModelIndex &pare...
31.59
29
(translation_unit) "#pragma once\n\n#include <QtCore/QAbstractTableModel>\n#include <QtCore/QVector>\n#include <QtCore/QStringList>\n\n#include "SymbolSeeker.h"\n\nnamespace SymSeek::QtUI\n{\n\nclass SymbolsModel: public QAbstractTableModel\n{\n Q_OBJECT\n\npublic:\n SymbolsModel(QObject * parent = nullptr);\n ...
227
13
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 31.59, "nodes": 139, "errors": 0, "source_hash": "127c6a0a3dde90812d0138083b240a14df15779caceb2a74eecbe7e3cbbe8f71", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
10,359
c
#pragma once #include "once_consumable_stack.h" #include "small_unique_function.hpp" namespace portable_concurrency { inline namespace cxx14_v1 { namespace detail { using continuation = small_unique_function<void()>; extern template struct forward_list_deleter<continuation>; extern template class once_consumable_sta...
27.8
25
(translation_unit) "#pragma once\n\n#include "once_consumable_stack.h"\n#include "small_unique_function.hpp"\n\nnamespace portable_concurrency {\ninline namespace cxx14_v1 {\nnamespace detail {\n\nusing continuation = small_unique_function<void()>;\nextern template struct forward_list_deleter<continuation>;\nextern tem...
196
6
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 27.8, "nodes": 121, "errors": 0, "source_hash": "9af29f990192a6cc7486ca9fb1787c933216c4eb861fd2f162b4442452f3c347", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
10,360
c
/* * Copyright (c) 2015 Samsung Electronics Co., Ltd. * * Sensitive Data Protection * * 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. * * This program is distributed in the ho...
30.1
63
(translation_unit) "/*\n * Copyright (c) 2015 Samsung Electronics Co., Ltd.\n *\n * Sensitive Data Protection\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 * This pro...
404
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 30.1, "nodes": 234, "errors": 0, "source_hash": "d453304930b998decbd2a51032e02b06e8688db3f02ac1e6ae28db4887699b20", "categorized_nodes": 162}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
10,361
c
#pragma once EPI_GENREGION_BEGIN(include) #include "subfolder/Color.hxx" EPI_GENREGION_END(include) EPI_NAMESPACE_BEGIN() enum EMask : epiS32 { EPI_GENREGION_BEGIN(EMask) EMask_Value0 = (1 << 0), EMask_Value1 = (1 << 1), EMask_Value2 = (1 << 2), EMask_Value3 = (1 << 3), EMask_Value012 = EMask_Val...
30.6
89
(translation_unit) "#pragma once\n\nEPI_GENREGION_BEGIN(include)\n#include "subfolder/Color.hxx"\nEPI_GENREGION_END(include)\n\nEPI_NAMESPACE_BEGIN()\n\nenum EMask : epiS32\n{\nEPI_GENREGION_BEGIN(EMask)\n EMask_Value0 = (1 << 0),\n EMask_Value1 = (1 << 1),\n EMask_Value2 = (1 << 2),\n EMask_Value3 = (1 << ...
660
31
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 30.6, "nodes": 427, "errors": 0, "source_hash": "505bcd89ff0ef0a9e02414173ff01de806375cef480cfd51c4d062ca9529c1f0", "categorized_nodes": 307}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
10,362
c
#ifndef _RAPLCAP_CPUID_H_ #define _RAPLCAP_CPUID_H_ #ifdef __cplusplus extern "C" { #endif #pragma GCC visibility push(hidden) #define CPUID_VENDOR_ID_GENUINE_INTEL "GenuineIntel" /* * See: Software Developer's Manual, Volume 4 * See: https://en.wikichip.org/wiki/intel/cpuid */ //---- // Sandy Bridge is the fi...
35.24
85
(translation_unit) "#ifndef _RAPLCAP_CPUID_H_\n#define _RAPLCAP_CPUID_H_\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n#pragma GCC visibility push(hidden)\n\n#define CPUID_VENDOR_ID_GENUINE_INTEL "GenuineIntel"\n\n/* \n * See: Software Developer's Manual, Volume 4\n * See: https://en.wikichip.org/wiki/intel/cpuid\n */...
258
0
{"language": "c", "success": true, "metadata": {"lines": 85, "avg_line_length": 35.24, "nodes": 231, "errors": 0, "source_hash": "f589d461d235dbf2f06207e4f040a21d62b3b8adcc3e8a2cfc0724b4699fdae3", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,363
c
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
53.52
162
(translation_unit) "/*\n * CDDL HEADER START\n *\n * The contents of this file are subject to the terms of the\n * Common Development and Distribution License (the "License").\n * You may not use this file except in compliance with the License.\n *\n * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE...
442
0
{"language": "c", "success": true, "metadata": {"lines": 162, "avg_line_length": 53.52, "nodes": 432, "errors": 0, "source_hash": "91b93ac9c5a3a52e0ef169ad1d242a7726595eb23139a189fa0c5ed046cfa903", "categorized_nodes": 119}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,364
c
// Copyright 2009-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 #pragma once /* Make precision match SSE, at the cost of some performance */ #if !defined(__aarch64__) # define SSE2NEON_PRECISE_DIV 1 # define SSE2NEON_PRECISE_SQRT 1 #endif #include "sse2neon.h" __forceinline __m128 _mm_fmsub_ps(__m...
31.56
41
(translation_unit) "// Copyright 2009-2020 Intel Corporation\n// SPDX-License-Identifier: Apache-2.0\n\n#pragma once\n\n/* Make precision match SSE, at the cost of some performance */\n#if !defined(__aarch64__)\n# define SSE2NEON_PRECISE_DIV 1\n# define SSE2NEON_PRECISE_SQRT 1\n#endif\n\n#include "sse2neon.h"\n\n__fo...
292
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 31.56, "nodes": 192, "errors": 0, "source_hash": "bcfbd99c3be6142c5e507a7eb574509ade1bf774378e87aaff40e1e9cf7dd68b", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
10,365
c
#ifndef _HAR_H #define _HAR_H #include "resources/af.h" #include "resources/bk.h" #include "resources/animation.h" #include "game/protos/object.h" #include "game/objects/arena_constraints.h" #include "utils/list.h" // For debug texture stuff #ifdef DEBUGMODE #include "video/surface.h" #include "video/image.h" #endif ...
28.61
145
(translation_unit) "#ifndef _HAR_H\n#define _HAR_H\n\n#include "resources/af.h"\n#include "resources/bk.h"\n#include "resources/animation.h"\n#include "game/protos/object.h"\n#include "game/objects/arena_constraints.h"\n#include "utils/list.h"\n\n// For debug texture stuff\n#ifdef DEBUGMODE\n#include "video/surface.h"\...
793
0
{"language": "c", "success": true, "metadata": {"lines": 145, "avg_line_length": 28.61, "nodes": 554, "errors": 0, "source_hash": "ba2440bdb237edae90ebc818f857c01005f64ee9013ccd217d355d329ce732d0", "categorized_nodes": 391}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,366
c
/*! \file bcma_testcase_cmicd_sbusdma_batch.h * * Broadcom Sbus Dma Batch test case for CMICd. */ /* * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Copyright 2007-2020 Broadcom Inc. All rights reserved. */ #ifndef BCMA_T...
38.77
26
(translation_unit) "/*! \file bcma_testcase_cmicd_sbusdma_batch.h\n *\n * Broadcom Sbus Dma Batch test case for CMICd.\n */\n/*\n * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.\n * \n * Copyright 2007-2020 Broadcom Inc. All rights re...
39
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 38.77, "nodes": 29, "errors": 0, "source_hash": "e0453013a48fb7f286570a94a24977ec70c2e03a3e7f72977a297392603e2648", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,367
c
/*Author: <NAME>> Date:10/10/2020. Program to vreate a Command line calculator. */ #include <stdio.h> #include <string.h> #include <stdlib.h> int main(int argc, char *argv[]) { char *operation; int num1, num2; operation = argv[1]; num1 = atoi(argv[2]); num2 = atoi(argv[3]); if (strcmp(operation...
25.62
32
(translation_unit) "/*Author: <NAME>>\nDate:10/10/2020.\nProgram to vreate a Command line calculator.\n*/\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\nint main(int argc, char *argv[])\n{\n char *operation;\n int num1, num2;\n operation = argv[1];\n num1 = atoi(argv[2]);\n num2 = atoi(a...
267
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 25.62, "nodes": 145, "errors": 0, "source_hash": "5ed9a2483afe8f041722e75dc8dddb2f51517673dec549644c85d73a8965a930", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,368
c
// Copyright 2021, Beeri 15. All rights reserved. // Author: <NAME> (<EMAIL>) // #include <boost/fiber/scheduler.hpp> #include <string> namespace util { class ProactorBase; class FiberSchedAlgo; class FiberProps : public ::boost::fibers::fiber_properties { friend class FiberSchedAlgo; public: FiberProps(::boo...
37.79
63
(translation_unit) "// Copyright 2021, Beeri 15. All rights reserved.\n// Author: <NAME> (<EMAIL>)\n//\n#include <boost/fiber/scheduler.hpp>\n#include <string>\n\nnamespace util {\n\nclass ProactorBase;\nclass FiberSchedAlgo;\n\nclass FiberProps : public ::boost::fibers::fiber_properties {\n friend class FiberSchedAl...
541
31
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 37.79, "nodes": 316, "errors": 0, "source_hash": "7b3b20d6a54299270fd4370d18fa9b4511b07d526dbe92f2ed9303ed4034c87d", "categorized_nodes": 204}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,369
c
/* * FullCoreEnvironmentTest.h * MWorksCore * * Created by <NAME> on 9/19/06. * Copyright 2006 __MyCompanyName__. All rights reserved. * */ #ifndef _FULL_CORE_ENVIRONMENT_TEST_H_ #define _FULL_CORE_ENVIRONMENT_TEST_H_ #include <cppunit/TestCase.h> #include <cppunit/TestSuite.h> #include <cppunit/TestFixtur...
18.66
35
(translation_unit) "/*\n * FullCoreEnvironmentTest.h\n * MWorksCore\n *\n * Created by <NAME> on 9/19/06.\n * Copyright 2006 __MyCompanyName__. All rights reserved.\n *\n */\n\n#ifndef _FULL_CORE_ENVIRONMENT_TEST_H_\n#define _FULL_CORE_ENVIRONMENT_TEST_H_\n\n#include <cppunit/TestCase.h>\n#include <cppunit/TestSuit...
88
2
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 18.66, "nodes": 54, "errors": 0, "source_hash": "1a9ea51e2f641d975e2f223c808620cdb4afc05ec03a4feccfc18030d44e9925", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,370
c
/* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by <NAME>. */ #import "NSObject-Protocol.h" @class NSString; @protocol Xcode3BuildPhaseFiltering <NSObject> @property(readonly) BOOL hasSearchResults; @property(copy) NSString *searchString; @end ...
27.82
11
(translation_unit) "/*\n * Generated by class-dump 3.3.4 (64 bit).\n *\n * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by <NAME>.\n */\n\n#import "NSObject-Protocol.h"\n\n@class NSString;\n\n@protocol Xcode3BuildPhaseFiltering <NSObject>\n@property(readonly) BOOL hasSearchResults;\n@property(cop...
48
11
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 27.82, "nodes": 37, "errors": 0, "source_hash": "4c82762b918b8ed0578e16d04fb319cbdc83a65a3d396f76891130bd5168071b", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
10,371
c
#include "../../includes/minishell.h" /** * The function checks for the option n. It also checks for valid option n. * The option starts with '-' and can be followed by many 'n's. Anything * other than the format specified will result in 0. It it is the option n, * the 1 will be returned. **/ static int is_with_...
22.19
58
(translation_unit) "#include "../../includes/minishell.h"\n\n/**\n * The function checks for the option n. It also checks for valid option n.\n * The option starts with '-' and can be followed by many 'n's. Anything\n * other than the format specified will result in 0. It it is the option n,\n * the 1 will be returned....
367
0
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 22.19, "nodes": 204, "errors": 0, "source_hash": "726ee50967428f8208a47f88cdef9fe72220d0f601aca82d8f91355e81eb7581", "categorized_nodes": 157}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,372
c
struct S$TU0 { int x; }; struct S$TU1 { double y; };
8.5
6
(translation_unit) "struct S$TU0 {\n int x;\n};\n\nstruct S$TU1 {\n double y;\n};\n" (struct_specifier) "struct S$TU0 {\n int x;\n}" (struct) "struct" (type_identifier) "S$TU0" (field_declaration_list) "{\n int x;\n}" ({) "{" (field_declaration) "int x;" (primitive_type) "int" ...
23
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 8.5, "nodes": 12, "errors": 0, "source_hash": "e8995811f4f4520994bce659ebbfa5d96cb99557a496cd7a4b275f3f7bec909a", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "struct_specifier", "text": "struct S...
10,373
c
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
26.05
125
(translation_unit) "/*\n * CDDL HEADER START\n *\n * The contents of this file are subject to the terms of the\n * Common Development and Distribution License (the "License").\n * You may not use this file except in compliance with the License.\n *\n * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE...
515
0
{"language": "c", "success": true, "metadata": {"lines": 125, "avg_line_length": 26.05, "nodes": 406, "errors": 0, "source_hash": "8717354987e3453aa5dfe844c7b31ce015966babf9c579bd847ab0cd540919bc", "categorized_nodes": 248}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,374
c
/* tstrtoc -- test file for mpc_strtoc. Copyright (C) 2009, 2011 INRIA This file is part of GNU MPC. GNU MPC is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your o...
30.49
140
(translation_unit) "/* tstrtoc -- test file for mpc_strtoc.\n\nCopyright (C) 2009, 2011 INRIA\n\nThis file is part of GNU MPC.\n\nGNU MPC is free software; you can redistribute it and/or modify it under\nthe terms of the GNU Lesser General Public License as published by the\nFree Software Foundation; either version 3 o...
1,083
0
{"language": "c", "success": true, "metadata": {"lines": 140, "avg_line_length": 30.49, "nodes": 619, "errors": 0, "source_hash": "d943720cf1a689b52a58949223e3206d3679ef4da884f480af2b3f435d4b9bcb", "categorized_nodes": 408}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,375
c
// // GHPNewsFeedViewController.h // iGithub // // Created by <NAME> on 10.07.11. // Copyright 2011 Home. All rights reserved. // #import <UIKit/UIKit.h> #import "GHTableViewController.h" @interface GHPNewsFeedViewController : GHTableViewController <NSCoding> { @protected NSMutableArray *_events; } @property...
31.5
24
(translation_unit) "//\n// GHPNewsFeedViewController.h\n// iGithub\n//\n// Created by <NAME> on 10.07.11.\n// Copyright 2011 Home. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "GHTableViewController.h"\n\n@interface GHPNewsFeedViewController : GHTableViewController <NSCoding> {\n@protected\n NSMu...
187
24
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 31.5, "nodes": 118, "errors": 0, "source_hash": "8d15048c7c9333c3f08a255a8f679ac4a24efe60b610555caa52cdd598c2f575", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
10,376
c
/* ChibiOS - Copyright (C) 2006..2019 <NAME>. This file is part of ChibiOS. ChibiOS is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) an...
33.57
233
(translation_unit) "/*\n ChibiOS - Copyright (C) 2006..2019 <NAME>.\n\n This file is part of ChibiOS.\n\n ChibiOS is free software; you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation; either version 3 of the License,...
582
2
{"language": "c", "success": true, "metadata": {"lines": 233, "avg_line_length": 33.57, "nodes": 367, "errors": 0, "source_hash": "c3ac324d6475f83e33b825cf904d26b169554fb9eee9e53643e51302f2fe82c6", "categorized_nodes": 245}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef SBHOS...
10,377
c
#include <stdio.h> #include "test_header.h" int main() { printf("hello world!\n"); #ifdef REPLACE_FOR_GEN ___gen_print_selection(0); ___gen_print_selection(1); for (size_t sss = 0; sss < ___TOTAL_GEN; ++sss) { ___gen_print_selection(sss); } #endif /* REPLACE_FOR_GEN */ }
22.83
12
(translation_unit) "#include <stdio.h>\n\n#include "test_header.h"\n\nint main() {\n printf("hello world!\n");\n#ifdef REPLACE_FOR_GEN\n ___gen_print_selection(0);\n ___gen_print_selection(1);\n for (size_t sss = 0; sss < ___TOTAL_GEN; ++sss) {\n ___gen_print_selection(sss);\n }\n#endif /* REPLACE_FOR_GEN */\n}...
83
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 22.83, "nodes": 46, "errors": 0, "source_hash": "886a8c2e19df450b110ccdd0a3eb0f1021171e08eebd4b577ba25289f82ff841", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
10,378
c
// Copyright 2017 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef LIBCONTAINER_CONFIG_H_ #define LIBCONTAINER_CONFIG_H_ #include <vector> #include <base/callback_forward.h> #include <brillo/brillo_export.h> ...
38
32
(translation_unit) "// Copyright 2017 The Chromium OS Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef LIBCONTAINER_CONFIG_H_\n#define LIBCONTAINER_CONFIG_H_\n\n#include <vector>\n\n#include <base/callback_forward.h>\n#inc...
195
10
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 38.0, "nodes": 115, "errors": 0, "source_hash": "3d25c40d99ee9f27b9fac666868b837eb53fbd05873a2bff4b33fbb65b62d2c7", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,379
c
// // Copyright 2009 High Order Bit, Inc. All rights reserved. // #import <Foundation/Foundation.h> #import "Ticket.h" #import "TicketMetaData.h" #import "TicketComment.h" #import "LighthouseKey.h" @interface TicketCache : NSObject { NSString * query; NSUInteger numPages; NSMutableDictionary * tickets; ...
37.2
41
(ERROR) "//\n// Copyright 2009 High Order Bit, Inc. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "Ticket.h"\n#import "TicketMetaData.h"\n#import "TicketComment.h"\n#import "LighthouseKey.h"\n\n@interface TicketCache : NSObject\n{\n NSString * query;\n NSUInteger numPages;\n\n NSMutab...
356
11
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 37.2, "nodes": 214, "errors": 0, "source_hash": "2d5d4f0d0864bdc67a945746284a9c7825945bf9bf641a1961226e28e18f801f", "categorized_nodes": 124}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// Copyright 2009 Hig...
10,380
c
#pragma once #include <cmath> constexpr float kPi = 3.14159265358979323846f; template<typename T> constexpr int sign(T val) noexcept { return val >= T(0) ? 1 : -1; } /** * \brief Convert linear volume to decibels * \param volume linear volume * \return decibels */ inline float lin_to_db(float volume) noexcept {...
21.71
28
(translation_unit) "#pragma once\n#include <cmath>\n\nconstexpr float kPi = 3.14159265358979323846f;\n\ntemplate<typename T>\nconstexpr int sign(T val) noexcept\n{\n return val >= T(0) ? 1 : -1;\n}\n\n/**\n * \brief Convert linear volume to decibels\n * \param volume linear volume\n * \return decibels\n */\ninline floa...
161
4
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 21.71, "nodes": 113, "errors": 0, "source_hash": "2ed3f6ad5fbbafcee28f6648b344005fac098a334f6e6965e66aa74c119c9212", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
10,381
c
/* * Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved. * * NVIDIA CORPORATION and its licensors retain all intellectual property * and proprietary rights in and to this software, related documentation * and any modifications thereto. Any use, reproduction, disclosure or * distribution of this so...
32.15
72
(translation_unit) "/*\n * Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved.\n *\n * NVIDIA CORPORATION and its licensors retain all intellectual property\n * and proprietary rights in and to this software, related documentation\n * and any modifications thereto. Any use, reproduction, disclosure or\n...
713
44
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 32.15, "nodes": 433, "errors": 0, "source_hash": "b36606610d5adb27e8042600c08014ad6629c92a961c44878f8354d48a580fd1", "categorized_nodes": 298}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,382
c
/** * * @author goldolphin * 2015-05-02 12:47 */ #ifndef EVO_CHARACTER_H #define EVO_CHARACTER_H #include <errno.h> #include <stdbool.h> typedef int error_t; #define EOK 0 typedef unsigned char char_t; #define CHAR_END ((char_t)0) #define CHAR_COUNT 256 #endif //EVO_CHARACTER_H
17.31
16
(translation_unit) "/**\n * \n * @author goldolphin\n * 2015-05-02 12:47\n */\n#ifndef EVO_CHARACTER_H\n#define EVO_CHARACTER_H\n\n#include <errno.h>\n#include <stdbool.h>\n\ntypedef int error_t;\n#define EOK 0\n\ntypedef unsigned char char_t;\n#define CHAR_END ((char_t)0)\n#define CHAR_COUNT 256\n\n\n#endif //...
40
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 17.31, "nodes": 35, "errors": 0, "source_hash": "b02eda336e323dc739adbd05a6cd132c494b98de3f23aa5610dbfd678fad0395", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,383
c
#ifndef __LIBRARY_QCOM_SMEM_LIB_H__ #define __LIBRARY_QCOM_SMEM_LIB_H__ #include <Protocol/QcomSmem.h> RETURN_STATUS EFIAPI SmemImplLibInitialize(VOID); extern QCOM_SMEM_PROTOCOL *gSMEM; #endif
16.42
12
(translation_unit) "#ifndef __LIBRARY_QCOM_SMEM_LIB_H__ \n#define __LIBRARY_QCOM_SMEM_LIB_H__ \n \n#include <Protocol/QcomSmem.h> \n \nRETURN_STATUS \nEFIAPI \nSmemImplLibInitialize(VOID); \n \nextern QCOM_SMEM_PROTOCOL *gSMEM; \n \n#endif \n" (preproc_ifdef) "#ifndef __LIBRARY_QCOM_SMEM_LIB_H__ \n#define __LIBRARY_Q...
31
1
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 16.42, "nodes": 26, "errors": 0, "source_hash": "6bf37a325c82a53e670141243b08cff7b383365d0583867d589ff38cfd425916", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,384
c
/* Copyright (c) 2018-2019, Arm Limited and Contributors * Copyright (c) 2019, <NAME> * * SPDX-License-Identifier: Apache-2.0 * * 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 * * ht...
34.9
87
(translation_unit) "/* Copyright (c) 2018-2019, Arm Limited and Contributors\n * Copyright (c) 2019, <NAME>\n *\n * SPDX-License-Identifier: Apache-2.0\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 ...
591
36
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 34.9, "nodes": 344, "errors": 0, "source_hash": "376686eea6bd6ffe83c3738de9b4d16356bb7e0254b66a144822176403bbdb91", "categorized_nodes": 244}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
10,385
c
// Copyright 2020 The MACE Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by appl...
38.51
51
(translation_unit) "// Copyright 2020 The MACE Authors. All Rights Reserved.\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//...
301
15
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 38.51, "nodes": 179, "errors": 0, "source_hash": "63d3578554c0d285087571741e26f249cc096e2e6bbe3c2fe101c18decaa2045", "categorized_nodes": 127}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,386
c
#ifndef UTILITY_H #define UTILITY_H /* * MIT License * * Copyright (c) 2022 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation ...
36.8
49
(translation_unit) "#ifndef UTILITY_H\n#define UTILITY_H\n\n/*\n * MIT License\n *\n * Copyright (c) 2022 <NAME>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction,...
210
10
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 36.8, "nodes": 125, "errors": 0, "source_hash": "96a15964d10ff308effd677aebc8a3ce3eb4e7f473c5855b6f515c6ab821a808", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef UTILITY_...
10,387
c
#include <stdio.h> #include <pthread.h> #include <stdlib.h> #include <unistd.h> char* students[20]; long matric[20]; long i; long j; long count; long matricno; char stdname[20]; long j; /*add an array to output at the end*/ void *stdthread(void *vargp){ long *myid = (long *)vargp; long c; printf("Thread ID: %lu...
22.34
35
(translation_unit) "#include <stdio.h>\n#include <pthread.h>\n#include <stdlib.h>\n#include <unistd.h>\n\nchar* students[20];\nlong matric[20];\nlong i;\nlong j;\nlong count;\nlong matricno;\nchar stdname[20];\nlong j;\n/*add an array to output at the end*/\nvoid *stdthread(void *vargp){\n long *myid = (long *)vargp;\...
320
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 22.34, "nodes": 190, "errors": 0, "source_hash": "8ebc800bce147538ae2a11c9ff59ed7c639348f76887f59aa48d3c40a3771501", "categorized_nodes": 127}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,388
c
/* Copyright © 2016 <NAME> * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the “Software”), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribu...
26.83
254
(translation_unit) "/* Copyright © 2016 <NAME> \n * Permission is hereby granted, free of charge, to any person obtaining \n * a copy of this software and associated documentation files (the “Software”),\n * to deal in the Software without restriction, including without limitation \n * the rights to use, copy, modify, ...
1,543
0
{"language": "c", "success": true, "metadata": {"lines": 254, "avg_line_length": 26.83, "nodes": 922, "errors": 0, "source_hash": "01e7c58faa8e053621fd18ee3d24ca1a242c71ede5a5c205e0b949bebc0045f2", "categorized_nodes": 635}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "\"d...
10,389
c
/***************************************************************************** Licensed to Accellera Systems Initiative Inc. (Accellera) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Accellera licenses...
33.48
60
(translation_unit) "/*****************************************************************************\n\n Licensed to Accellera Systems Initiative Inc. (Accellera) under one or\n more contributor license agreements. See the NOTICE file distributed\n with this work for additional information regarding copyright ownersh...
171
7
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 33.48, "nodes": 91, "errors": 0, "source_hash": "0e512a5dcb426ddea2dae21e8ac3aca09c716398c1745d3c67a7df54050e84b8", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,390
c
/* * Copyright 2020, Data61, CSIRO (ABN 41 687 119 230) * * SPDX-License-Identifier: GPL-2.0-only */ #include <types.h> #include <machine/io.h> #include <api/faults.h> #include <api/syscall.h> #include <util.h> bool_t Arch_handleFaultReply(tcb_t *receiver, tcb_t *sender, word_t faultType) { switch (faultType)...
28.75
85
(translation_unit) "/*\n * Copyright 2020, Data61, CSIRO (ABN 41 687 119 230)\n *\n * SPDX-License-Identifier: GPL-2.0-only\n */\n\n#include <types.h>\n#include <machine/io.h>\n#include <api/faults.h>\n#include <api/syscall.h>\n#include <util.h>\n\nbool_t Arch_handleFaultReply(tcb_t *receiver, tcb_t *sender, word_t fau...
609
2
{"language": "c", "success": true, "metadata": {"lines": 85, "avg_line_length": 28.75, "nodes": 353, "errors": 0, "source_hash": "21edd6622240cec249ae190d0a5ff7c4250c0e6b490394a0b54582429fd27725", "categorized_nodes": 273}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,391
c
#ifndef MISSION_DEVICES_GYROHANDLER_H_ #define MISSION_DEVICES_GYROHANDLER_H_ #include "devicedefinitions/GyroPackets.h" #include <OBSWConfig.h> #include <fsfw/devicehandlers/DeviceHandlerBase.h> #include <fsfw/globalfunctions/PeriodicOperationDivider.h> /** * @brief Device Handler for the BMG250 Gyroscope d...
36.25
87
(ERROR) "#ifndef MISSION_DEVICES_GYROHANDLER_H_\n#define MISSION_DEVICES_GYROHANDLER_H_\n\n#include "devicedefinitions/GyroPackets.h"\n#include <OBSWConfig.h>\n\n#include <fsfw/devicehandlers/DeviceHandlerBase.h>\n#include <fsfw/globalfunctions/PeriodicOperationDivider.h>\n\n\n/**\n * @brief Device Handler for th...
508
23
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 36.25, "nodes": 353, "errors": 0, "source_hash": "4facdd40e01c4ace791da2087585251441bd10ce860c8f5d1e513ccdd8750b21", "categorized_nodes": 225}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef MISSION_DEVICES_G...
10,392
c
#ifndef _MASC_ITER_H_ #define _MASC_ITER_H_ #include <stdbool.h> #include <masc/iterable_class.h> typedef struct { Object; Iterable *iterable; void *priv; } Iter; extern const class *IterCls; void *next(Iter *self); void iter_del_obj(Iter *self); bool iter_is_last(Iter *self); int iter_get_idx(Ite...
17.62
21
(translation_unit) "#ifndef _MASC_ITER_H_\n#define _MASC_ITER_H_\n\n#include <stdbool.h>\n\n#include <masc/iterable_class.h>\n\n\ntypedef struct {\n Object;\n Iterable *iterable;\n void *priv;\n} Iter;\n\n\nextern const class *IterCls;\n\n\nvoid *next(Iter *self);\n \nvoid iter_del_obj(Iter *self);\nbool iter_...
120
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 17.62, "nodes": 90, "errors": 0, "source_hash": "ec3f157d370074c1824e3624b5f5a7c0f608c98509190eece2987db2c5c8949c", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,393
c
#pragma once #include <windows.h> #include <gl\GL.h> namespace RPRGUI { class Bar { public: Bar() { value = 0; } virtual void draw() { }; int getID() { return id; } int getValue() { return value; } virtual void updateCurrentBarFrame() { }; protected: int id; int...
12.48
25
(translation_unit) "#pragma once \n \n#include <windows.h> \n#include <gl\GL.h> \n \nnamespace RPRGUI \n{ \n class Bar \n { \n public: \n Bar() { value = 0; } \n \n virtual void draw() { }; \n \n int getID() { return id; } \n \n int getValue() { return value; } \n \n virtual void updateCurrentBarFrame() { }; ...
109
3
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 12.48, "nodes": 58, "errors": 0, "source_hash": "e554c61ffe8c137f609acea8b175239ccbe551a16e2e66876269297ee420fe52", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
10,394
c
#include "../Headers/P_Impressao.h" void ImprimeSistemaCompleto(Cpu* cpu, PcbTable *pcbTable, EstadoBloqueado *estadobloqueado, EstadoPronto *estadopronto){ printf("\n--Inicio impresssao do estado do sistema---\n\n"); ImprimirCPU(cpu); printf("\n\n"); ImprimePronto(estadopronto); printf("\n\n"); ImprimeBloq...
29.29
78
(translation_unit) "#include "../Headers/P_Impressao.h"\nvoid ImprimeSistemaCompleto(Cpu* cpu, PcbTable *pcbTable, EstadoBloqueado *estadobloqueado, EstadoPronto *estadopronto){\n printf("\n--Inicio impresssao do estado do sistema---\n\n");\n ImprimirCPU(cpu);\n printf("\n\n");\n ImprimePronto(estadopronto);\n pri...
764
0
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 29.29, "nodes": 433, "errors": 0, "source_hash": "feb846070f9ca817d2f7fd48ac7924527fdd5095ea6e6c695f1fbd1317251150", "categorized_nodes": 290}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,395
c
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Line 6 Linux USB driver * * Copyright (C) 2004-2010 <NAME> (<EMAIL>) */ #ifndef MIDIBUF_H #define MIDIBUF_H struct midi_buffer { unsigned char *buf; int size; int split; int pos_read, pos_write; int full; int command_prev; }; extern int line6_midibuf_bytes_u...
31.26
27
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0-only */\n/*\n * Line 6 Linux USB driver\n *\n * Copyright (C) 2004-2010 <NAME> (<EMAIL>)\n */\n\n#ifndef MIDIBUF_H\n#define MIDIBUF_H\n\nstruct midi_buffer {\n unsigned char *buf;\n int size;\n int split;\n int pos_read, pos_write;\n int full;\n int command_prev;\...
219
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 31.26, "nodes": 174, "errors": 0, "source_hash": "f4e5e3a986cd7760ee9f27d1d0284e651e1be4cf1ea2713887d0c0423d4e77a8", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,396
c
// // EEPageControlView.h // AgoraEducation // // Created by yangmoumou on 2019/10/23. // Copyright © 2019 Agora. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface EEPageControlView : UIView - (void)setSceneIndex:(NSInteger)sceneIndex sceneCount:(NSInteger)sceneCount; @end NS_...
24.62
13
(translation_unit) "//\n// EEPageControlView.h\n// AgoraEducation\n//\n// Created by yangmoumou on 2019/10/23.\n// Copyright © 2019 Agora. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface EEPageControlView : UIView\n\n- (void)setSceneIndex:(NSInteger)sceneIndex sceneCount...
56
5
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 24.62, "nodes": 32, "errors": 0, "source_hash": "9e440690ac3b3447387eb4d6bd5393938c9d4638c9fb113017243e74351b8ce3", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
10,397
c
#include "puts.h" void UARTSendString(char * str) { while (*str) { UARTSendByte(*str); str++; } } void UARTSend_uint8(uint8_t number) { uint8_t data; if(number > 99){ data = number / 100; number -= data * 100; UARTSendByte(data + 48); data = number / 10; number -= data * 10; UARTSendByte(data + 48...
17.41
29
(translation_unit) "#include "puts.h"\n\nvoid UARTSendString(char * str)\n{\n while (*str)\n {\n UARTSendByte(*str);\n str++;\n }\n}\nvoid UARTSend_uint8(uint8_t number)\n{\n uint8_t data;\n if(number > 99){\n data = number / 100;\n number -= data * 100;\n UARTSendByte(data + 48);\n data = number / 10;\n number ...
225
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 17.41, "nodes": 142, "errors": 0, "source_hash": "65d1c6f9e09fe8044f8a029579ab515e94e52a1234ec0d553b178f0e363f0c8d", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,398
c
// // PLCommon.h // PLMediaStreamingKit // // Created by WangSiyu on 8/7/16. // Copyright © 2016 Pili Engineering, Qiniu Inc. All rights reserved. // #ifndef PLCommon_h #define PLCommon_h #import "PLVideoCaptureConfiguration.h" #import "PLAudioCaptureConfiguration.h" #import "PLAudioEffectConfiguration.h" #import...
26.19
21
(translation_unit) "//\n// PLCommon.h\n// PLMediaStreamingKit\n//\n// Created by WangSiyu on 8/7/16.\n// Copyright © 2016 Pili Engineering, Qiniu Inc. All rights reserved.\n//\n\n#ifndef PLCommon_h\n#define PLCommon_h\n\n#import "PLVideoCaptureConfiguration.h"\n#import "PLAudioCaptureConfiguration.h"\n#import "PLAu...
49
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 26.19, "nodes": 29, "errors": 0, "source_hash": "daf38f7f428b399e86ca529dbf72410d131752772869342f3cf7faf5d7458bc3", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef P...
10,399