language
stringclasses
1 value
code
stringlengths
6
12.3k
avg_line_length
float64
2.79
91
line_count
float64
1
367
lang_specific_parse
stringlengths
60
1.08M
ast_node_count
int64
2
6.81k
num_errors
int64
0
499
universal_schema
stringlengths
799
825k
__index_level_0__
int64
0
81.2k
c
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/wafv2/WAFV2_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSVector.h> #include <aws/wafv2/model/RuleSummary.h> #include <utility> namespace Aws { template<typename RESULT...
38.85
94
(translation_unit) "*\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0.\n */\n\n#pragma once\n#include <aws/wafv2/WAFV2_EXPORTS.h>\n#include <aws/core/utils/memory/stl/AWSVector.h>\n#include <aws/wafv2/model/RuleSummary.h>\n#include <utility>\n\nnamespace Aw...
535
36
{"language": "c", "success": true, "metadata": {"lines": 94, "avg_line_length": 38.85, "nodes": 353, "errors": 0, "source_hash": "f122923a98c9113d44da068c5c3697539f0042206672edceaa79e0cc244859e7", "categorized_nodes": 224}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma o...
78,200
c
#include "aes.h" int encrypt( void* buffer, int buffer_len, /* Because the plaintext could include null bytes*/ char* IV, char* key, int key_len ){ MCRYPT td = mcrypt_module_open("rijndael-128", NULL, "cbc", NULL); int blocksize = mcrypt_enc_get_block_size(td); if( buffer_len % blocksize !=...
24.23
64
(translation_unit) "#include "aes.h"\n\nint encrypt(\n void* buffer,\n int buffer_len, /* Because the plaintext could include null bytes*/\n char* IV, \n char* key,\n int key_len \n){\n MCRYPT td = mcrypt_module_open("rijndael-128", NULL, "cbc", NULL);\n int blocksize = mcrypt_enc_get_block_size(td);\n...
356
0
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 24.23, "nodes": 209, "errors": 0, "source_hash": "bcdf28b37cfddcd5cfe9ffd5b5811d1d2c7ca25d342e70b5ef44917ee467189e", "categorized_nodes": 136}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,201
c
#include <stdio.h> #include <sys/xattr.h> #include <string.h> #include <stdlib.h> #include <openssl/bio.h> #include <openssl/evp.h> #define MAX_DIGEST_LENGTH 128 #define MD5_DIGEST_LENGTH 16 void craete_file(char *filename) { FILE *fp = NULL; fp = fopen(filename, "w+"); fprintf(fp, "this is a text for tes...
29.2
66
(translation_unit) "#include <stdio.h>\n#include <sys/xattr.h>\n#include <string.h>\n#include <stdlib.h>\n#include <openssl/bio.h>\n#include <openssl/evp.h>\n\n#define MAX_DIGEST_LENGTH 128\n#define MD5_DIGEST_LENGTH 16\n\nvoid craete_file(char *filename)\n{\n FILE *fp = NULL;\n fp = fopen(filename, "w+");\n f...
751
0
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 29.2, "nodes": 483, "errors": 0, "source_hash": "717b971b4b6cc0587aba951596171a894ad14cec2e7a471a906aa052a34e90f4", "categorized_nodes": 268}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
78,202
c
#pragma once #include "python/python_integration_obj.h" enum TrapFlag : uint32_t { TF_IN_STONE, TF_PC, TF_SPOTTED, TF_MAGICAL }; #pragma pack(push, 1) struct TrapDamage { DamageType type; uint32_t packedDice; }; struct Trap { int id; // last column in trap.tab seems to be the numeric trap id, stored in "cou...
26.77
35
(translation_unit) "#pragma once\n\n#include "python/python_integration_obj.h"\n\nenum TrapFlag : uint32_t {\n TF_IN_STONE,\n TF_PC,\n TF_SPOTTED,\n TF_MAGICAL\n};\n\n#pragma pack(push, 1)\nstruct TrapDamage {\n DamageType type;\n uint32_t packedDice;\n};\n\nstruct Trap {\n int id; // last column in trap.tab seems to b...
207
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 26.77, "nodes": 135, "errors": 0, "source_hash": "068518ff2f2173bad9f925ee5c3ece8fbb51cbe1849dbb85428011e79f316a99", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
78,203
c
#ifndef LIB_PINOCCIO_SCOUTHANDLER_H_ #define LIB_PINOCCIO_SCOUTHANDLER_H_ #include <Pinoccio.h> #include <ScoutHandler.h> #include "util/StringBuffer.h" class PinoccioScoutHandler { public: PinoccioScoutHandler(); ~PinoccioScoutHandler(); void setup(); void loop(); void announce(uint16_t group...
24.89
18
(translation_unit) "#ifndef LIB_PINOCCIO_SCOUTHANDLER_H_\n#define LIB_PINOCCIO_SCOUTHANDLER_H_\n\n#include <Pinoccio.h>\n#include <ScoutHandler.h>\n#include "util/StringBuffer.h"\n\nclass PinoccioScoutHandler {\n\n public:\n PinoccioScoutHandler();\n ~PinoccioScoutHandler();\n\n void setup();\n void loop()...
121
2
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 24.89, "nodes": 70, "errors": 0, "source_hash": "2d6b059eb6252a4dde022b416526424cb833616c13683bed8aed4bc46de5311a", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,204
c
/* this function will open the file and read the appropriate record, * then display it on the window in the approp. positions. */ #include <stdio.h> #include <curses.h> #include "contents.h" void display_record (win2, row, col, screen_num) WINDOW *win2; int row, col, screen_num; { WINDOW *win3; char choice; FILE ...
22.62
138
(translation_unit) "/* this function will open the file and read the appropriate record,\n * then display it on the window in the approp. positions.\n*/\n\n#include <stdio.h>\n#include <curses.h>\n#include "contents.h"\n\n\n\nvoid display_record (win2, row, col, screen_num)\nWINDOW *win2;\nint row, col, screen_num;\n\n...
1,274
0
{"language": "c", "success": true, "metadata": {"lines": 138, "avg_line_length": 22.62, "nodes": 672, "errors": 0, "source_hash": "4c62d836b174c75b73e7af8ec608755c9782d234a3e360b0bf7442c2174d9fe9", "categorized_nodes": 519}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,205
c
/* * The MIT License (MIT) * * Copyright (c) 2015 by <NAME> <<EMAIL>> * * 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 *...
27.72
297
(translation_unit) "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 by <NAME> <<EMAIL>>\n * \n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including witho...
2,376
0
{"language": "c", "success": true, "metadata": {"lines": 297, "avg_line_length": 27.72, "nodes": 1358, "errors": 0, "source_hash": "8226b7186d57797f7b8391710610a57c881f3aa9597946f715ae4780a381a69a", "categorized_nodes": 945}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
78,206
c
// // DownloadOperationManager.h // JETWebImage // // Created by ZengFanSheng on 2016/10/23. // Copyright © 2016年 HeiMa. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import "DownloaderOperation.h" @interface DownloadOperationManager : NSObject + (instancetype)sharedManager; ...
30.62
16
(translation_unit) "//\n// DownloadOperationManager.h\n// JETWebImage\n//\n// Created by ZengFanSheng on 2016/10/23.\n// Copyright © 2016年 HeiMa. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n#import "DownloaderOperation.h"\n\n@interface DownloadOperationManager : NSObject\...
92
11
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 30.62, "nodes": 60, "errors": 0, "source_hash": "8beb5852a38b2b3e369c4e02a8583c8ae42f3c446af256cdd463a07335ca6e19", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
78,207
c
/* * Copyright (c) Huawei Technologies Co., Ltd. 2017-2019. All rights reserved. * Description: Support for xhci dma ops * Author: Hisilicon * Create: 2017-07-12 * * This software is distributed under the terms of the GNU General * Public License ("GPL") as published by the Free Software Foundation, * either v...
33.02
45
(translation_unit) "/*\n * Copyright (c) Huawei Technologies Co., Ltd. 2017-2019. All rights reserved.\n * Description: Support for xhci dma ops\n * Author: Hisilicon\n * Create: 2017-07-12\n *\n * This software is distributed under the terms of the GNU General\n * Public License ("GPL") as published by the Free Softwa...
309
0
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 33.02, "nodes": 229, "errors": 0, "source_hash": "3fcec30068a89d9d815655b755e06bc3b8923ad58ffb6ccbbcf2ae233fe7711d", "categorized_nodes": 166}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,208
c
#include <assert.h> #include <pthread.h> #include <stdlib.h> #include "promise.h" struct promise { promise_callback on_success; promise_callback on_failure; void *passthrough; bool fulfilled; pthread_mutex_t lock; pthread_cond_t cond; bool success; void *result; promise_cleanup cleanup; }; promis...
32.81
73
(translation_unit) "#include <assert.h>\n#include <pthread.h>\n#include <stdlib.h>\n\n#include "promise.h"\n\nstruct promise {\n promise_callback on_success;\n promise_callback on_failure;\n void *passthrough;\n\n bool fulfilled;\n pthread_mutex_t lock;\n pthread_cond_t cond;\n\n bool success;\n void *result;\n...
743
0
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 32.81, "nodes": 463, "errors": 0, "source_hash": "f292a1c11fb4427891fced1a21c0838117ff15fafcc4e9c2365c73f45e6f15dd", "categorized_nodes": 342}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,209
c
#ifndef SUBSCRIBER_ #define SUBSCRIBER_ void subscriber_init(); void subscriber_exit(); #endif
18
5
(translation_unit) "#ifndef SUBSCRIBER_\n#define SUBSCRIBER_\nvoid subscriber_init();\nvoid subscriber_exit();\n#endif\n" (preproc_ifdef) "#ifndef SUBSCRIBER_\n#define SUBSCRIBER_\nvoid subscriber_init();\nvoid subscriber_exit();\n#endif" (#ifndef) "#ifndef" (identifier) "SUBSCRIBER_" (preproc_def) "#defi...
24
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 18.0, "nodes": 17, "errors": 0, "source_hash": "58d0241c75ff9c00cff86f227a9fcd2652dc9cae1a5213d2c76ee701ed08b9da", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef SU...
78,210
c
/* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
32.33
33
(translation_unit) "/*\n * Copyright (c) 2021 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless...
111
2
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 32.33, "nodes": 75, "errors": 0, "source_hash": "22dce38daad96403431fa2629e03100af3e68b4d924c91d65655d7a392c225c3", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef HDF_SECU...
78,211
c
// Verilated -*- C++ -*- // DESCRIPTION: Verilator output: Symbol table internal header // // Internal details; most calling programs do not need this header, // unless using verilator public meta comments. #ifndef VERILATED_VTEST__SYMS_H_ #define VERILATED_VTEST__SYMS_H_ // guard #include "verilated.h" // INCLUDE ...
32.04
27
(translation_unit) "// Verilated -*- C++ -*-\n// DESCRIPTION: Verilator output: Symbol table internal header\n//\n// Internal details; most calling programs do not need this header,\n// unless using verilator public meta comments.\n\n#ifndef VERILATED_VTEST__SYMS_H_\n#define VERILATED_VTEST__SYMS_H_ // guard\n\n#inclu...
140
2
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 32.04, "nodes": 75, "errors": 0, "source_hash": "29925f38b2f0d7fb30a9ecb0dfe41d70c377d48572eba8bfbe67f9dfe0be700d", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,212
c
/* * The Minix hardware interrupt system. * * This file contains routines for managing the interrupt * controller. * * put_irq_handler: register an interrupt handler. * rm_irq_handler: deregister an interrupt handler. * irq_handle: handle a hardware interrupt. * called ...
30.71
140
(translation_unit) "/*\n * The Minix hardware interrupt system.\n * \n * This file contains routines for managing the interrupt\n * controller.\n * \n * put_irq_handler: register an interrupt handler.\n * rm_irq_handler: deregister an interrupt handler.\n * irq_handle: handle a hardware interrupt.\n...
872
6
{"language": "c", "success": true, "metadata": {"lines": 140, "avg_line_length": 30.71, "nodes": 535, "errors": 0, "source_hash": "9bf7dc1063dbfad78c2bd0eefad68ebe32d9fe3769c103633d370f5e882e9e64", "categorized_nodes": 407}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,213
c
/** * Copyright 2020 <NAME>. Distributed under the MIT license. */ #ifndef WIDGET_MARKET_SINGLEWINNERRUNNERPRICES_H #define WIDGET_MARKET_SINGLEWINNERRUNNERPRICES_H #include "RunnerPrices.h" namespace greenthumb { namespace widget { namespace market { class SingleWinnerRunnerPrices : public RunnerPrices { pub...
31
23
(translation_unit) "/**\n * Copyright 2020 <NAME>. Distributed under the MIT license.\n */\n#ifndef WIDGET_MARKET_SINGLEWINNERRUNNERPRICES_H\n#define WIDGET_MARKET_SINGLEWINNERRUNNERPRICES_H\n\n#include "RunnerPrices.h"\n\nnamespace greenthumb {\nnamespace widget {\nnamespace market {\n\nclass SingleWinnerRunnerPrices...
120
4
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 31.0, "nodes": 73, "errors": 0, "source_hash": "3a9115c15947a730989263d204371c27964644f6173ce956d885eb178a5d8033", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef W...
78,214
c
// // TTListCell.h // TTDesktopNote // // Created by admin on 17/2/14. // Copyright © 2017年 admin. All rights reserved. // #import <UIKit/UIKit.h> @class TTNoteModel; @interface TTListCell : MGSwipeTableCell @property (nonatomic, strong) TTNoteModel *noteModel; //删除 @property (nonatomic, copy) void (^deleteBloc...
23
16
(translation_unit) "//\n// TTListCell.h\n// TTDesktopNote\n//\n// Created by admin on 17/2/14.\n// Copyright © 2017年 admin. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@class TTNoteModel;\n@interface TTListCell : MGSwipeTableCell\n\n@property (nonatomic, strong) TTNoteModel *noteModel;\n\n//删除\n@property...
96
16
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 23.0, "nodes": 64, "errors": 0, "source_hash": "9bf909232f2e0a7e6378e039d958b777eec193b0381fcd84b05642c48ca47377", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKi...
78,215
c
#pragma once #include <chrono> #include <map> #include <mutex> #include <string> #include "envoy/common/exception.h" #include "envoy/common/pure.h" #include "envoy/runtime/runtime.h" // TODO: We need to clear up expired states asynchronously somewhere. namespace Envoy { namespace Http { class StateStore{ publi...
37.25
75
(translation_unit) "#pragma once\n\n#include <chrono>\n#include <map>\n#include <mutex>\n#include <string>\n\n#include "envoy/common/exception.h"\n#include "envoy/common/pure.h"\n#include "envoy/runtime/runtime.h"\n\n// TODO: We need to clear up expired states asynchronously somewhere.\nnamespace Envoy {\nnamespace Htt...
483
32
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 37.25, "nodes": 252, "errors": 0, "source_hash": "fe03996da8aaff9ff041e2f2bd1ef61fe9e0f25083a729731f5f4df92a4a1375", "categorized_nodes": 184}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
78,216
c
// // OGStreamView.h // Pods // // Created by <NAME> on 2/13/16. // // #import <UIKit/UIKit.h> @class RTCMediaStream; @interface OGStreamView : UIView /** * @brief RTCMediaStream object used to render the the video */ @property(nonatomic, strong) RTCMediaStream* stream; /** * @brief Initializes and return...
21.46
28
(translation_unit) "//\n// OGStreamView.h\n// Pods\n//\n// Created by <NAME> on 2/13/16.\n//\n//\n\n#import <UIKit/UIKit.h>\n\n@class RTCMediaStream;\n\n\n\n@interface OGStreamView : UIView\n/**\n * @brief RTCMediaStream object used to render the the video\n */\n@property(nonatomic, strong) RTCMediaStream* stream;\...
78
10
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 21.46, "nodes": 45, "errors": 0, "source_hash": "8a71fb3ca13e825de005e25f229ca823d7f53a1a22fc71a12a53d7893cec9bfc", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
78,217
c
#ifndef INITRAWSOCK_H_ #define INITRAWSOCK_H_ extern int initrawsock(char *device,int promiscFlag,int ipOnly); #endif
28.5
4
(translation_unit) "#ifndef INITRAWSOCK_H_\n#define INITRAWSOCK_H_\n\nextern int initrawsock(char *device,int promiscFlag,int ipOnly);\n\n#endif\n" (preproc_ifdef) "#ifndef INITRAWSOCK_H_\n#define INITRAWSOCK_H_\n\nextern int initrawsock(char *device,int promiscFlag,int ipOnly);\n\n#endif" (#ifndef) "#ifndef" ...
31
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 28.5, "nodes": 25, "errors": 0, "source_hash": "844c3c492ac238b63e0c39b1c05f196f9a801a3295d96040b0dcbd3ed2fcedc8", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef IN...
78,218
c
#pragma once #ifndef __QUEUE_FROM_POINTER_H__ #define __QUEUE_FROM_POINTER_H__ typedef struct _Node { int data; _Node* next; }Node; typedef struct _Queue { int dataSize; _Node* front; }Queue; void Init(Queue* queue); void Push(Queue* queue, int data); int Pop(Queue* queue); int Peek(Queue* queue); void Print(Q...
16.68
19
(translation_unit) "#pragma once\n#ifndef __QUEUE_FROM_POINTER_H__\n#define __QUEUE_FROM_POINTER_H__\n\ntypedef struct _Node\n{\n int data;\n _Node* next;\n}Node;\n\ntypedef struct _Queue\n{\n int dataSize;\n _Node* front;\n}Queue;\n\nvoid Init(Queue* queue);\nvoid Push(Queue* queue, int data);\n\nint Pop(Queue* queue)...
120
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 16.68, "nodes": 91, "errors": 0, "source_hash": "000d81c78f8806d5cc22d35f69ae8c172dd0ff0afa9f5a17efa221dae801be8a", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
78,219
c
// // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 <NAME>. // #import <PodcastsUI/IMExpandingLabel.h> @interface IMExpandingLabel (MTAdditions) - (id)_font; // IMP=0x0000000100138eb4 - (unsigned long long)maximumNu...
40.83
12
(translation_unit) "//\n// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20).\n//\n// Copyright (C) 1997-2019 <NAME>.\n//\n\n#import <PodcastsUI/IMExpandingLabel.h>\n\n@interface IMExpandingLabel (MTAdditions)\n- (id)_font; // IMP=0x0000000100138eb4\n-...
88
7
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 40.83, "nodes": 48, "errors": 0, "source_hash": "b335c42aa1fb5c9fb757a0229c99d5df54ceae4103119922311b8067db40d9f9", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
78,220
c
// -*- c++ -*- // // <NAME> <<EMAIL>> // parasim // (c) 1998-2021 all rights reserved // code guard #if !defined(ampcor_correlators_forward_h) #define ampcor_correlators_forward_h // set up the namespace namespace ampcor::correlators { // the sequential worker template <class slcT, class offsetsT> class ...
19.71
21
(translation_unit) "// -*- c++ -*-\n//\n// <NAME> <<EMAIL>>\n// parasim\n// (c) 1998-2021 all rights reserved\n\n// code guard\n#if !defined(ampcor_correlators_forward_h)\n#define ampcor_correlators_forward_h\n\n\n// set up the namespace\nnamespace ampcor::correlators {\n // the sequential worker\n template <clas...
66
6
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 19.71, "nodes": 34, "errors": 0, "source_hash": "81f3a347a28f6257101d3e9bb413d46bf073b33cc852093bc7206feecec6630e", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !define...
78,221
c
/* * Copyright 2017 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writ...
29.05
123
(translation_unit) "/*\n * Copyright 2017 <NAME>\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applic...
1,046
0
{"language": "c", "success": true, "metadata": {"lines": 123, "avg_line_length": 29.05, "nodes": 642, "errors": 0, "source_hash": "3b89e71dd7633a66d520ab969532a11daaf02355ec6774c696d38c07763f1051", "categorized_nodes": 479}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,222
c
#ifndef protHeadArduino #define protHeadArduino #include <cstdio> #include <vector> #include <iostream> class arduino { public: void start(); void stop(); void read(); std::string output(); private: FILE* arduinoFile; std::vector<int> durations; }; #endif
14.53
17
(translation_unit) "#ifndef protHeadArduino\n#define protHeadArduino\n\n#include <cstdio>\n#include <vector>\n#include <iostream>\n\nclass arduino\n{\n\n public:\n void start();\n void stop();\n void read();\n std::string output();\n\n private:\n FILE* arduinoFile;\n std::vector<int> durations;\n\n};\n\n#endif\n" (pr...
88
2
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 14.53, "nodes": 56, "errors": 0, "source_hash": "b00119d11432a0617dea521bbef64cb9352e53245eb4343fa91702a26c6edbf2", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,223
c
/* * Copyright (c) <NAME>. All rights reserved. * See LICENSE file for details. */ #include <mpi.h> #include <adios.h> struct adiosstructinfo { char *transform; char *name; MPI_Comm comm; int rank; int nprocs; int tsteps; int ni, nj, nk; int is, cni, js, cnj, ks, cnk; float deltax, deltay, deltaz,...
29.54
37
(translation_unit) "/*\n* Copyright (c) <NAME>. All rights reserved.\n* See LICENSE file for details.\n*/\n\n\n#include <mpi.h>\n#include <adios.h>\n\nstruct adiosstructinfo {\n char *transform;\n char *name;\n MPI_Comm comm;\n int rank;\n int nprocs;\n int tsteps;\n int ni, nj, nk;\n int is, cni, js, cnj, ks,...
322
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 29.54, "nodes": 247, "errors": 0, "source_hash": "ad12402d485d1033a1243f11aa90946364078390a4393c4ee3db1f4426f4e7c0", "categorized_nodes": 149}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,224
c
#pragma once #include <vector> #include <SFML/Graphics.hpp> #include <SFML/System.hpp> #include <iostream> #include "Model.h" #include "Renderable.h" #include "GameState.h" #include "Map.h" class View { public: Model* model; sf::RenderWindow window; std::vector<Renderable*> renderables(); GameState gameState; ...
20.1
30
(translation_unit) "#pragma once\n#include <vector>\n#include <SFML/Graphics.hpp>\n#include <SFML/System.hpp>\n#include <iostream>\n\n#include "Model.h"\n#include "Renderable.h"\n#include "GameState.h"\n#include "Map.h"\n\nclass View \n{\npublic:\n Model* model;\n \n sf::RenderWindow window;\n std::vector<Renderable*> ...
203
10
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 20.1, "nodes": 122, "errors": 0, "source_hash": "cf2e6fa39834cae0db21d8627bda1033515a1e232fa6a0b67f493b5361f36dd0", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
78,225
c
#pragma once #include <Python.h> #include <memory> #include <vector> #include <THPP/THPP.h> namespace torch { struct TupleParser { TupleParser(PyObject* args, int num_args=-1); void parse(bool& x); void parse(int& x); void parse(double& x); void parse(std::unique_ptr<thpp::Tensor>& x); void parse(std::s...
23.52
23
(translation_unit) "#pragma once\n\n#include <Python.h>\n#include <memory>\n#include <vector>\n#include <THPP/THPP.h>\n\nnamespace torch {\n\nstruct TupleParser {\n TupleParser(PyObject* args, int num_args=-1);\n\n void parse(bool& x);\n void parse(int& x);\n void parse(double& x);\n void parse(std::unique_ptr<thp...
220
15
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 23.52, "nodes": 143, "errors": 0, "source_hash": "18ad5af145e491bbff146b24eff08f06eb3f276726cfd270046cf3a6b1f8d886", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
78,226
c
#ifndef _JESSICA_H # define _JESSICA_H 1 #include <config.h>/* The word, or double-word as the case may be. */ #if defined(JSE_NAN_T) # include <jsenan.h> #elif defined(JSE_PTR_T) # include <jseptr.h> #else # error "You must specify the type of JSE" #endif #endif /* _JESSICA_H */
24.55
11
(translation_unit) "#ifndef _JESSICA_H\n# define _JESSICA_H 1\n#include <config.h>/* The word, or double-word as the case may be. */\n\n#if defined(JSE_NAN_T)\n# include <jsenan.h>\n#elif defined(JSE_PTR_T)\n# include <jseptr.h>\n#else\n# error "You must specify the type of JSE"\n#endif\n#endif /* _JESSICA_H */\n" (p...
42
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 24.55, "nodes": 35, "errors": 0, "source_hash": "0e9b56fd5a584a76f9976990a6305c088fa212923b088c248026a88661baaa42", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,227
c
#include<stdio.h> #include<math.h> int main() { int a,b,c,d; float root1,root2; printf("enter the value of a(integer)"); scanf("%d",&a); printf("enter the value of b(integer)"); scanf("%d",&b); printf("enter the value of c(integer)"); scanf("%d",&c); if(a==0) { printf("this equation is not a ...
19.29
42
(translation_unit) "#include<stdio.h> \n#include<math.h> \nint main() \n{ \n int a,b,c,d; \n float root1,root2; \n printf("enter the value of a(integer)"); \n scanf("%d",&a); \n printf("enter the value of b(integer)"); \n scanf("%d",&b); \n printf("enter the value of c(integer)"); \n scanf("%d",&c); \n if(a==0) \n { \...
346
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 19.29, "nodes": 179, "errors": 0, "source_hash": "6e60cbf29342fc5e17dd4310e3b1ccc84f486c716422023cd62631e61059c651", "categorized_nodes": 133}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,228
c
using _STLP_VENDOR_CSTD::size_t; # ifndef _STLP_NO_CSTD_FUNCTION_IMPORTS # if defined(__MSL__) && __MC68K__ && !_No_BlockMove && __dest_os == __mac_os # undef memcpy # undef memmove inline void* memcpy(void* dst, const void* src, size_t len) { return _STLP_VENDOR_CSTD::__memcpy(dst, src, len); } in...
24.78
54
(translation_unit) "using _STLP_VENDOR_CSTD::size_t; \n \n# ifndef _STLP_NO_CSTD_FUNCTION_IMPORTS \n# if defined(__MSL__) && __MC68K__ && !_No_BlockMove && __dest_os == __mac_os \n# undef memcpy \n# undef memmove \ninline void* memcpy(void* dst, const void* src, size_t len) \n{ \n return _STLP_VENDOR_CSTD::__m...
350
25
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 24.78, "nodes": 237, "errors": 0, "source_hash": "496073e1ee9c843966c436ebc80cc86793152b2c9f60b3ff147638e50564aa98", "categorized_nodes": 159}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "using _S...
78,229
c
#pragma once #include <vector> #include <array> #include <boost/noncopyable.hpp> #include <boost/math/constants/constants.hpp> #include "../OpenGLInclude.h" #include "../VectorTypes.h" #include "ScreenTransform.h" #include "LayerPriority.h" #include "VisualBase.h" class RandomEngine; typedef std::array<GLfloat, 4> ...
32.27
83
(translation_unit) "#pragma once\n\n#include <vector>\n#include <array>\n#include <boost/noncopyable.hpp>\n#include <boost/math/constants/constants.hpp>\n\n#include "../OpenGLInclude.h"\n#include "../VectorTypes.h"\n#include "ScreenTransform.h"\n#include "LayerPriority.h"\n#include "VisualBase.h"\n\nclass RandomEngine;...
723
43
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 32.27, "nodes": 438, "errors": 0, "source_hash": "176a1e96b2af0c7c3b55d8b8ee1e782a5412dd3d08c9e33d58da3d7e6ce4854e", "categorized_nodes": 315}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
78,230
c
int main () { int i_p1476; int x1_p1477; int *x2_p1478; int *x3_p1479[3]; int **x4_p1480; int (*x5) (); x1_p1477 = ((int) i_p1476); x2_p1478 = ((int *) i_p1476); x4_p1480 = ((int **) x4_p1480); x5 = x5; }
16.31
13
(translation_unit) "int main ()\n{\n int i_p1476;\n int x1_p1477;\n int *x2_p1478;\n int *x3_p1479[3];\n int **x4_p1480;\n int (*x5) ();\n x1_p1477 = ((int) i_p1476);\n x2_p1478 = ((int *) i_p1476);\n x4_p1480 = ((int **) x4_p1480);\n x5 = x5;\n}\n" (function_definition) "int main ()\n{\n int i_p1476;\n i...
110
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 16.31, "nodes": 72, "errors": 0, "source_hash": "9766486f70c82bf8dce5a353b49658622ff18405ef3dee06333306a29531445e", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "in...
78,231
c
#ifndef grid_h_ #define grid_h_ //#include "utils.h" typedef struct{ double ***p; int n; double h; int lda; } GRID; typedef GRID *GRIDLIST; void init_rhs( GRID u); void init_border( GRID u ); void init_solution( GRID u ); void create_grid( GRID *grid, int n ); void free_grid( GRID *grid ); void create_grid_list( GR...
31.1
20
(translation_unit) "#ifndef grid_h_\n#define grid_h_\n\n//#include "utils.h"\n\ntypedef struct{ double ***p; int n; double h; int lda; } GRID;\ntypedef GRID *GRIDLIST;\n\nvoid init_rhs( GRID u);\nvoid init_border( GRID u );\nvoid init_solution( GRID u );\n\nvoid create_grid( GRID *grid, int n );\nvoid free_grid( GRID *...
231
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 31.1, "nodes": 172, "errors": 0, "source_hash": "090e368607133b55599d27f3066178c32d8cf017d7d4a0905552d6df44fcb04a", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,232
c
/* * Resizable, Scalable, Concurrent Hash Table * * Copyright (c) 2014 <NAME> <<EMAIL>> * Copyright (c) 2008-2014 <NAME> <<EMAIL>> * * Based on the following paper by <NAME>, <NAME> * and <NAME>: * https://www.usenix.org/legacy/event/atc11/tech/final_files/Triplett.pdf * * Code partially derived from nft_hash...
40.64
165
(translation_unit) "/*\n * Resizable, Scalable, Concurrent Hash Table\n *\n * Copyright (c) 2014 <NAME> <<EMAIL>>\n * Copyright (c) 2008-2014 <NAME> <<EMAIL>>\n *\n * Based on the following paper by <NAME>, <NAME>\n * and <NAME>:\n * https://www.usenix.org/legacy/event/atc11/tech/final_files/Triplett.pdf\n *\n * Code p...
734
4
{"language": "c", "success": true, "metadata": {"lines": 165, "avg_line_length": 40.64, "nodes": 523, "errors": 0, "source_hash": "a9378620ac47b6e7981c2c9b8995a10336cf31e58f8f543d00655498a5a7b4c3", "categorized_nodes": 337}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,233
c
// Copyright (c) Lawrence Livermore National Security, LLC and other VisIt // Project developers. See the top-level LICENSE file for dates and other // details. No copyright assignment is required to contribute to VisIt. #ifndef XMLEDITCODE_H #define XMLEDITCODE_H #include <QFrame> class XMLDocument; class QLineEd...
27.42
60
(translation_unit) "// Copyright (c) Lawrence Livermore National Security, LLC and other VisIt\n// Project developers. See the top-level LICENSE file for dates and other\n// details. No copyright assignment is required to contribute to VisIt.\n\n#ifndef XMLEDITCODE_H\n#define XMLEDITCODE_H\n\n#include <QFrame>\n\ncla...
277
7
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 27.42, "nodes": 161, "errors": 0, "source_hash": "15d1d48b94151132c4384c7ddfd20524a9f7facf16c3eaa12179b4abcc7a62ef", "categorized_nodes": 107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,234
c
// // MTRGMediaData.h // myTargetSDK 5.14.4 // // Created by Timur on 2/9/18. // Copyright (c) 2018 Mail.Ru Group. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN /** @discussion Class of media data */ @interface MTRGMediaData : NSObject /** @discussion URL of media data */ @property(n...
18.94
35
(translation_unit) "//\n// MTRGMediaData.h\n// myTargetSDK 5.14.4\n//\n// Created by Timur on 2/9/18.\n// Copyright (c) 2018 Mail.Ru Group. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n/**\n @discussion Class of media data\n */\n@interface MTRGMediaData : NSObject\n\n/**\n @discus...
98
13
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 18.94, "nodes": 61, "errors": 0, "source_hash": "ec57b1d38ebbaa90af0e33c5c5c7a14c310e574750960ca2cb78dd75753e008c", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
78,235
c
/* { dg-do run } */ #include <stdlib.h> const int MAX = 1800; void check (char *a, char *b, int N) { int i; for (i = 0; i < N; i++) if (a[i] != b[i]) abort (); } void init (char *a1, char *a2, int N) { char s = -1; int i; for (i = 0; i < N; i++) { a1[i] = s; a2[i] = i; s = ...
19.68
74
(translation_unit) "/* { dg-do run } */\n\n#include <stdlib.h>\n\nconst int MAX = 1800;\n\nvoid check (char *a, char *b, int N)\n{\n int i;\n for (i = 0; i < N; i++)\n if (a[i] != b[i])\n abort ();\n}\n\nvoid init (char *a1, char *a2, int N)\n{\n char s = -1;\n int i;\n for (i = 0; i < N; i++)\n {\n ...
765
0
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 19.68, "nodes": 502, "errors": 0, "source_hash": "3eff7f6ee9595aeae60018f9639389c1a9906e19d50e6e50908e5904aa9343ba", "categorized_nodes": 320}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,236
c
#ifndef __KF_CHANNEL_INTERFACE_H__ #define __KF_CHANNEL_INTERFACE_H__ #include "KFrame.h" namespace KFrame { class KFChannelInterface : public KFModule { public: // 登陆验证 virtual std::string AuthLogin( KFJson& request ) = 0; // 充值回调 virtual std::string AuthPay( uint32 chan...
31.37
19
(translation_unit) "fndef __KF_CHANNEL_INTERFACE_H__\n#define __KF_CHANNEL_INTERFACE_H__\n\n#include "KFrame.h"\n\nnamespace KFrame\n{\n class KFChannelInterface : public KFModule\n {\n public:\n // 登陆验证\n virtual std::string AuthLogin( KFJson& request ) = 0;\n\n // 充值回调\n virtual s...
100
5
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 31.37, "nodes": 59, "errors": 0, "source_hash": "727f99ab8cbed04f6a68f79403339c066445889c028e0f4d7a0a20deed46b1a1", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef __...
78,237
c
/* * SPAPR HV console * * Copyright (c) 2011 <NAME> <<EMAIL>>, IBM Corporation. * * 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. */ #ifndef spapr_hvcons_H #define spapr_hvcon...
27.13
15
(translation_unit) "/*\n * SPAPR HV console\n *\n * Copyright (c) 2011 <NAME> <<EMAIL>>, IBM Corporation.\n *\n * This program is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public License version 2 as published\n * by the Free Software Foundation.\n */\n\n#ifndef spap...
40
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 27.13, "nodes": 29, "errors": 0, "source_hash": "0d34b5460f58854b8e418b4fe37b9754f63397c0602797302a65bd20b7ba3ac2", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,238
c
#import <UIKit/UIKit.h> FOUNDATION_EXPORT double Pods_CNBasicDemoVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_CNBasicDemoVersionString[];
37
4
(translation_unit) "#import <UIKit/UIKit.h>\n\n\nFOUNDATION_EXPORT double Pods_CNBasicDemoVersionNumber;\nFOUNDATION_EXPORT const unsigned char Pods_CNBasicDemoVersionString[];\n\n" (preproc_call) "#import <UIKit/UIKit.h>\n" (preproc_directive) "#import" (preproc_arg) "<UIKit/UIKit.h>" (declaration) "FOUNDA...
23
1
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 37.0, "nodes": 15, "errors": 0, "source_hash": "8eaded20db2298e843f520660f093e98e929acaa48e8ddb30276b9ec326b3ded", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UI...
78,239
c
/****************************************************************** Copyright (C) 2019 - All Rights Reserved by 文 件 名 : keypresswidget.h --- 作 者 : Niyh(lynnhua) 论 坛 : http://www.firebbs.cn 编写日期 : 2019 说 明 : 历史纪录 : <作者> <日期> <版本> <内容> Niyh 2019 1.0.0 1 文件创建 ******...
24.93
43
(translation_unit) "/****************************************************************** \n Copyright (C) 2019 - All Rights Reserved by \n 文 件 名 : keypresswidget.h --- \n 作 者 : Niyh(lynnhua) \n 论 坛 : http://www.firebbs.cn \n 编写日期 : 2019 \n 说 明 : \n 历史纪录 : \n <作者> <日期> <版本> <内容> \n Niyh 2019...
195
3
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 24.93, "nodes": 133, "errors": 0, "source_hash": "39e7ad4095efc9f8ab0dbd7ee391537d7b9e5bbdbfc22133bd749a2a4d65a3b2", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "lude \"...
78,240
c
#ifndef example_maps_fps_LoadModels_h #define example_maps_fps_LoadModels_h #include "example_maps_fps/Globals.h" #include "glm/glm.hpp" namespace tp_maps { class Map; class ImageLayer; } namespace example_maps_fps { //################################################################################################...
50.08
25
(translation_unit) "#ifndef example_maps_fps_LoadModels_h\n#define example_maps_fps_LoadModels_h\n\n#include "example_maps_fps/Globals.h"\n\n#include "glm/glm.hpp"\n\nnamespace tp_maps\n{\nclass Map;\nclass ImageLayer;\n}\n\nnamespace example_maps_fps\n{\n\n//############################################################...
222
12
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 50.08, "nodes": 131, "errors": 0, "source_hash": "9ac6c0a405e6424e48696116c59bb541b93b20ea16b4fa0974c29b15024d0b44", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,241
c
#pragma once #include "UpnpDiscovery.h" #include "utils/ServiceThreadpool.h" class TcpAsyncStream; class UpnpPortMapping { public: UpnpPortMapping(asio::io_service& io_service); ~UpnpPortMapping(); enum class PortType { Tcp, Udp }; void mapActiveAdapters(uint16_t port, PortType type); void unmapMappedAdapters...
33.32
53
(translation_unit) "#pragma once\n\n#include "UpnpDiscovery.h"\n#include "utils/ServiceThreadpool.h"\n\nclass TcpAsyncStream;\n\nclass UpnpPortMapping\n{\npublic:\n\n UpnpPortMapping(asio::io_service& io_service);\n ~UpnpPortMapping();\n\n enum class PortType { Tcp, Udp };\n void mapActiveAdapters(uint16_t port, PortTy...
546
32
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 33.32, "nodes": 328, "errors": 0, "source_hash": "ab67da5151fd461ccac9efadcb1ccad05cf939910b042f9af404e1d7026983ed", "categorized_nodes": 229}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
78,242
c
#pragma once #include "disc.h" #include "sphere.h"
16
3
(translation_unit) "#pragma once\n#include "disc.h"\n#include "sphere.h"\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "disc.h"\n" (#include) "#include" (string_literal) ""disc.h"" (") """ (string_content) "disc.h" ...
16
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 16.0, "nodes": 9, "errors": 0, "source_hash": "04914d3af37f21164d921fdc911709867da3e0097b9ae202ecd517fb28379229", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\...
78,243
c
/* jconfigint.h. Customized for android on the basis of jconfigint.h.in. */ #ifndef __JCONFIGINT_H__ #define __JCONFIGINT_H__ /* libjpeg-turbo build number */ #define BUILD "" /* Compiler's inline keyword */ #undef inline /* How to obtain function inlining. */ #ifndef INLINE #ifndef TURBO_FOR_WINDOWS #defin...
30.98
47
(translation_unit) "/* jconfigint.h. Customized for android on the basis of jconfigint.h.in. */\n\n#ifndef __JCONFIGINT_H__\n#define __JCONFIGINT_H__\n\n/* libjpeg-turbo build number */\n#define BUILD ""\n\n/* Compiler's inline keyword */\n#undef inline\n\n/* How to obtain function inlining. */\n#ifndef INLINE\n #if...
138
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 30.98, "nodes": 113, "errors": 0, "source_hash": "5484380ecbc15bb61394b0adfa13ee060e9f345ae75409f4e758df6925864330", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,244
c
#include <stdio.h> int main(void) { int x, x2, x3, x4, x5, result; printf("Polynominal formula:\n\n \'((((3x + 2)x - 5)x - 1)x + 7)x -6\'\n\n"); printf("Enter value for x: "); scanf("%d", &x); x2 = x * x; x3 = x * x * x; x4 = x * x * x * x; x5 = x * x * x * x * x; result = ((((3 * x + ...
28.13
15
(translation_unit) "#include <stdio.h>\n\nint main(void)\n{\n int x, x2, x3, x4, x5, result;\n\n printf("Polynominal formula:\n\n \'((((3x + 2)x - 5)x - 1)x + 7)x -6\'\n\n");\n printf("Enter value for x: ");\n scanf("%d", &x);\n\n x2 = x * x;\n x3 = x * x * x;\n x4 = x * x * x * x;\n x5 = x * x * x *...
195
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 28.13, "nodes": 130, "errors": 0, "source_hash": "fef16fba5ff72667b7613d7d81d391b7215ba7dcc27f463b9d1311600178c5bb", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
78,245
c
// license:BSD-3-Clause // copyright-holders:<NAME> #pragma once #ifndef MAME_INCLUDES_VIP_H #define MAME_INCLUDES_VIP_H #include "bus/vip/byteio.h" #include "bus/vip/exp.h" #include "cpu/cosmac/cosmac.h" #include "imagedev/cassette.h" #include "imagedev/snapquik.h" #include "machine/ram.h" #include "sound/discrete.h...
28.77
113
(translation_unit) "// license:BSD-3-Clause\n// copyright-holders:<NAME>\n#pragma once\n\n#ifndef MAME_INCLUDES_VIP_H\n#define MAME_INCLUDES_VIP_H\n\n#include "bus/vip/byteio.h"\n#include "bus/vip/exp.h"\n#include "cpu/cosmac/cosmac.h"\n#include "imagedev/cassette.h"\n#include "imagedev/snapquik.h"\n#include "machine/r...
860
22
{"language": "c", "success": true, "metadata": {"lines": 113, "avg_line_length": 28.77, "nodes": 537, "errors": 0, "source_hash": "ec652458dcaab634d685ce9b96065a58c225cb486dacef8534c41fa961acd989", "categorized_nodes": 390}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
78,246
c
/* find_file.h - declaration of find_file function. * * find_file function searches through a directory tree calling a call_back on * each file. */ #ifndef FIND_FILE_H #define FIND_FILE_H #include "common_func.h" #ifdef __cplusplus extern "C" { #endif /* find_file options */ #define FIND_WALK_DEPTH_FIRST 1 #defi...
24.67
36
(translation_unit) "/* find_file.h - declaration of find_file function.\n *\n * find_file function searches through a directory tree calling a call_back on\n * each file.\n */\n#ifndef FIND_FILE_H\n#define FIND_FILE_H\n\n#include "common_func.h"\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n/* find_file options */\n#d...
162
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 24.67, "nodes": 120, "errors": 0, "source_hash": "21356940939935c7378072a54e533088649ed6cdeca3f970be0824a6ce766e98", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,247
c
#ifndef _WORLDLOADER_H_ #define _WORLDLOADER_H_ #include <string> #include <list> #include <map> #include <vector> #include "globals.h" WorldFormat getWorldFormat(const std::string& worldPath); bool scanWorldDirectory(const std::string& fromPath); bool loadTerrain(const std::string& fromPath, int &loadedChunks); bool...
33.36
45
(translation_unit) "#ifndef _WORLDLOADER_H_\n#define _WORLDLOADER_H_\n\n#include <string>\n#include <list>\n#include <map>\n#include <vector>\n#include "globals.h"\n\nWorldFormat getWorldFormat(const std::string& worldPath);\nbool scanWorldDirectory(const std::string& fromPath);\nbool loadTerrain(const std::string& fro...
384
22
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 33.36, "nodes": 232, "errors": 0, "source_hash": "eb99f365327c48c37560a479eab76ec3b710948e28c20fbd82779b5918cf05ac", "categorized_nodes": 169}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef _WORLD...
78,248
c
// // ViewController.h // RunLoopSource // // Created by etiantian on 2019/10/30. // Copyright © 2019 etiantian. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
18.64
11
(translation_unit) "//\n// ViewController.h\n// RunLoopSource\n//\n// Created by etiantian on 2019/10/30.\n// Copyright © 2019 etiantian. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ViewController : UIViewController\n\n\n@end\n\n" (comment) "//" (comment) "// ViewController.h" (comment)...
22
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 18.64, "nodes": 11, "errors": 0, "source_hash": "0f8f5bd574a1e28a919e73f368306e11d9b0970f43fd2c62d78cbe22937f36a6", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UI...
78,249
c
#pragma once #include <imgui.h> #include "Core/Core.h" #include "Core/Renderer/Renderer.h" namespace Hazy { //Defines taken out of imgui.h #define HZ_COLOR_R_SHIFT 0 #define HZ_COLOR_G_SHIFT 8 #define HZ_COLOR_B_SHIFT 16 #define HZ_COLOR_A_SHIFT 24 #define HZ_COLOR_A_MASK 0xFF000000 #define ...
40.64
33
(translation_unit) "ragma once\n\n#include <imgui.h>\n#include "Core/Core.h"\n\n#include "Core/Renderer/Renderer.h"\n\nnamespace Hazy\n{\n //Defines taken out of imgui.h\n #define HZ_COLOR_R_SHIFT 0\n #define HZ_COLOR_G_SHIFT 8\n #define HZ_COLOR_B_SHIFT 16\n #define HZ_COLOR_A_SHIFT 24\n #define HZ_COLOR_A...
279
10
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 40.64, "nodes": 194, "errors": 0, "source_hash": "6c3b779f93308efef260021d0f71662d416d221c9a31706d6d6558373e970120", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma o...
78,250
c
// // PostUserDetails.h // Drinder-ios // // Created by <NAME> on 8/3/20. // Copyright © 2020 <NAME>. All rights reserved. // #import "BaseBackendOperations.h" NS_ASSUME_NONNULL_BEGIN @interface PostUserDetailsOperation : BaseBackendOperations - (instancetype)initWithSession:(UserInfoSession *)session; @end NS_...
24.77
13
(translation_unit) "//\n// PostUserDetails.h\n// Drinder-ios\n//\n// Created by <NAME> on 8/3/20.\n// Copyright © 2020 <NAME>. All rights reserved.\n//\n\n#import "BaseBackendOperations.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface PostUserDetailsOperation : BaseBackendOperations\n- (instancetype)initWithSession:(Use...
47
5
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 24.77, "nodes": 26, "errors": 0, "source_hash": "921b209fb2a6bce4769fba939e6f9b15170bf7ce150c66566bef2390e73df89e", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"...
78,251
c
/* ISC license. */ #ifndef UNIRANDOM_H #define UNIRANDOM_H #include <skalibs/buffer.h> #include <skalibs/surf.h> #define RANDOMBUF_BUFSIZE 256 struct randombuf_s { char buf[RANDOMBUF_BUFSIZE] ; buffer b ; unsigned int nb : 1 ; } ; #define RANDOMBUF_ZERO { .buf = "", .b = BUFFER_INIT(0, -1, 0, 0), .nb = 0 } s...
32.59
44
(translation_unit) "/* ISC license. */\n\n#ifndef UNIRANDOM_H\n#define UNIRANDOM_H\n\n#include <skalibs/buffer.h>\n#include <skalibs/surf.h>\n\n#define RANDOMBUF_BUFSIZE 256\n\nstruct randombuf_s\n{\n char buf[RANDOMBUF_BUFSIZE] ;\n buffer b ;\n unsigned int nb : 1 ;\n} ;\n#define RANDOMBUF_ZERO { .buf = "", .b = BU...
368
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 32.59, "nodes": 282, "errors": 0, "source_hash": "edfa498505cf937698e22a1489e0252ed34342b19d9790206eebe9a09a4ea283", "categorized_nodes": 162}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,252
c
/* Tencent is pleased to support the open source community by making PhxPaxos available. Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the BSD 3-Clause License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the...
32.6
62
(translation_unit) "/*\nTencent is pleased to support the open source community by making \nPhxPaxos available.\nCopyright (C) 2016 THL A29 Limited, a Tencent company. \nAll rights reserved.\n\nLicensed under the BSD 3-Clause License (the "License"); you may \nnot use this file except in compliance with the License. Yo...
391
25
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 32.6, "nodes": 206, "errors": 0, "source_hash": "5e5f73220bed14c6d6fec4acfb34da445c155689c5bc5078b9a68fc406d82372", "categorized_nodes": 155}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
78,253
c
//--------------------------------------------------------------------------- #ifndef du_coneH #define du_coneH //--------------------------------------------------------------------------- #define DU_CONE_NUMVERTEX 18 #define DU_CONE_NUMFACES 32 #define DU_CONE_NUMLINES 24 extern ECORE_API Fvector du_cone_v...
31.23
13
(translation_unit) "//--------------------------------------------------------------------------- \n \n#ifndef du_coneH \n#define du_coneH \n//--------------------------------------------------------------------------- \n#define DU_CONE_NUMVERTEX 18 \n#define DU_CONE_NUMFACES 32 \n#define DU_CONE_NUMLINES 24 \n \nexter...
55
3
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 31.23, "nodes": 43, "errors": 0, "source_hash": "d504d9d9334921162eef4dac5682ab03d5513097f42086780085797ac58f0cfb", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,254
c
#include <stdlib.h> #include <stdio.h> #include <stdbool.h> #include <pthread.h> #include <errno.h> static void *start_routine(void *arg) { while (true) {} return NULL; } int main(int argc, char *argv[]) { if (argc != 2) { fprintf(stderr, "Usage: %s NR_THREADS", argv[0]); exit(EXIT_FAILURE)...
25.94
36
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n#include <stdbool.h>\n#include <pthread.h>\n#include <errno.h>\n\nstatic void *start_routine(void *arg) {\n while (true) {}\n return NULL;\n}\nint main(int argc, char *argv[]) {\n if (argc != 2) {\n fprintf(stderr, "Usage: %s NR_THREADS", argv...
321
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 25.94, "nodes": 178, "errors": 0, "source_hash": "b45b214b49d19ffb9c8d65ff8617c70450904a79c2902ab4fafd1bc243f1a691", "categorized_nodes": 124}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,255
c
/* * Copyright (c) 2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #pragma onc...
28.25
57
(translation_unit) "/*\n * Copyright (c) 2014, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same dire...
187
6
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 28.25, "nodes": 115, "errors": 0, "source_hash": "10350aa799b95b9aedbd0e9f3f91eb1fa4cd7eb0ba77aba1eb6572d2563ffe46", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
78,256
c
/** * @file robot.h * * @copyright 2017 3081 Staff, All rights reserved. * */ #ifndef SRC_ROBOT_H_ #define SRC_ROBOT_H_ /******************************************************************************* * Includes ******************************************************************************/ #include <string> ...
31.03
204
(translation_unit) "/**\n * @file robot.h\n *\n * @copyright 2017 3081 Staff, All rights reserved.\n *\n */\n\n#ifndef SRC_ROBOT_H_\n#define SRC_ROBOT_H_\n\n/*******************************************************************************\n * Includes\n *******************************************************************...
999
14
{"language": "c", "success": true, "metadata": {"lines": 204, "avg_line_length": 31.03, "nodes": 591, "errors": 0, "source_hash": "40499be646333ab4a4abc23e770ba21f3c587c9e9bb68a928ec3dae8f096cf6e", "categorized_nodes": 415}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,257
c
#if !defined(CETTY_LOGGING_LOGGER_H) #define CETTY_LOGGING_LOGGER_H /* * Copyright (c) 2010-2012 <NAME> (frankee.zhou at gmail dot com) * * Distributed under 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 Lic...
29.71
99
(translation_unit) "#if !defined(CETTY_LOGGING_LOGGER_H)\n#define CETTY_LOGGING_LOGGER_H\n\n/*\n * Copyright (c) 2010-2012 <NAME> (frankee.zhou at gmail dot com)\n *\n * Distributed under under the Apache License, version 2.0 (the "License").\n * you may not use this file except in compliance with the License.\n * You ...
701
37
{"language": "c", "success": true, "metadata": {"lines": 99, "avg_line_length": 29.71, "nodes": 387, "errors": 0, "source_hash": "0c36bd32c5ffea37a661db03189e80151283b3c2e1c593acd16b3baedeb5c9f4", "categorized_nodes": 263}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defi...
78,258
c
#include <kube_config.h> #include <apiClient.h> #include <CoreV1API.h> #include <malloc.h> #include <stdio.h> #include <errno.h> void create_a_pod(apiClient_t * apiClient) { char *namespace = "default"; v1_pod_t *podinfo = calloc(1, sizeof(v1_pod_t)); podinfo->api_version = strdup("v1"); podinfo->kind...
35.75
88
(translation_unit) "#include <kube_config.h>\n#include <apiClient.h>\n#include <CoreV1API.h>\n#include <malloc.h>\n#include <stdio.h>\n#include <errno.h>\n\nvoid create_a_pod(apiClient_t * apiClient)\n{\n char *namespace = "default";\n\n v1_pod_t *podinfo = calloc(1, sizeof(v1_pod_t));\n podinfo->api_version =...
833
0
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 35.75, "nodes": 503, "errors": 0, "source_hash": "3f31a90be323095d76a990ad78b4857a658a771aeb887456190ffe9b712b5948", "categorized_nodes": 314}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,259
c
/* * Booking_t.h * * Created on: Jun 25, 2017 * Author: uv */ #ifndef BOOKING_T_H_ #define BOOKING_T_H_ typedef unsigned int uint; using namespace std; class Booking_t { public: Booking_t(); Booking_t(uint _flighID, uint _seat, uint _passangerId, float _cost); virtual ~Booking_t(); float get...
23.37
43
(translation_unit) "/*\n * Booking_t.h\n *\n * Created on: Jun 25, 2017\n * Author: uv\n */\n\n#ifndef BOOKING_T_H_\n#define BOOKING_T_H_\n\n\ntypedef unsigned int uint;\nusing namespace std;\n\nclass Booking_t\n{\n\n public:\n\n Booking_t();\n Booking_t(uint _flighID, uint _seat, uint _passangerId, float _cost...
260
15
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 23.37, "nodes": 156, "errors": 0, "source_hash": "26b0e94dbcbd4f46c43d486aec834672d87ab0781803db639eb635fccca7cf38", "categorized_nodes": 109}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,260
c
/* $OpenBSD: cache.h,v 1.8 2016/01/05 05:27:54 visa Exp $ */ /* * Copyright (c) 2012 <NAME>. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * ...
35.57
81
(translation_unit) "/* $OpenBSD: cache.h,v 1.8 2016/01/05 05:27:54 visa Exp $ */\n\n/*\n * Copyright (c) 2012 <NAME>.\n *\n * Permission to use, copy, modify, and distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice a...
137
14
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 35.57, "nodes": 90, "errors": 0, "source_hash": "4afc2cf665c299c794e0e00476f43f0423372468660335e50f6f5c9715545581", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef\...
78,261
c
/* * arch/arm/mach-ixp2000/include/mach/memory.h * * Copyright (c) 2002 Intel Corp. * Copyright (c) 2003-2004 MontaVista Software, Inc. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Found...
41.91
23
(translation_unit) "/*\n * arch/arm/mach-ixp2000/include/mach/memory.h\n *\n * Copyright (c) 2002 Intel Corp.\n * Copyright (c) 2003-2004 MontaVista Software, Inc.\n *\n * This program is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public License as published by ...
68
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 41.91, "nodes": 54, "errors": 0, "source_hash": "69c4a742cea19d2cc81d7f500a5fa8994112caa11cc928f8fbf38d8197dd49db", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,262
c
#include <gtest/gtest.h> // includes from engine for test #include "Input/ButtonMap.h" #include "Events/InputEvent.h" class ButtonMapOneInput : public ::testing::Test { public: ButtonMapOneInput() : map(Parable::Input::ButtonMap(std::string("ButtonMapOneInput"), std::vector<Parable::Input::InputCode>({55}))) {} ...
28.85
26
(translation_unit) "#include <gtest/gtest.h>\n\n// includes from engine for test\n#include "Input/ButtonMap.h"\n#include "Events/InputEvent.h"\n\nclass ButtonMapOneInput : public ::testing::Test\n{\npublic:\n ButtonMapOneInput() : map(Parable::Input::ButtonMap(std::string("ButtonMapOneInput"), std::vector<Parable::I...
259
20
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 28.85, "nodes": 123, "errors": 0, "source_hash": "9ad43a0960247536dea867fdf3cd9da279ebef73f92ed90aa52a87f4aaf5b36a", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
78,263
c
// MIT License // Copyright (C) August 2016 Hotride #pragma once class CScreenshotBuilder { public: CScreenshotBuilder(); virtual ~CScreenshotBuilder(); void SaveScreen(); void SaveScreen(int x, int y, int width, int height); }; extern CScreenshotBuilder g_ScreenshotBuilder;
23.42
12
(translation_unit) " MIT License\n// Copyright (C) August 2016 Hotride\n\n#pragma once\n\nclass CScreenshotBuilder\n{\npublic:\n CScreenshotBuilder();\n virtual ~CScreenshotBuilder();\n\n void SaveScreen();\n void SaveScreen(int x, int y, int width, int height);\n};\n\nextern CScreenshotBuilder g_Screenshot...
71
1
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 23.42, "nodes": 42, "errors": 0, "source_hash": "63684a75fbb7d86c499388e7c4c92f42aa21a449a76cf99116bbf1928921e820", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma onc...
78,264
c
// // PassiveSkillCell.h // tup-tup // // Created by Александр on 27.02.16. // Copyright © 2016 Александр. All rights reserved. // #import <SpriteKit/SpriteKit.h> #import <Foundation/Foundation.h> @interface PassiveSkillCell : NSObject @property NSUInteger cellNumber; //то, что получится в итоге @pro...
37.29
28
(translation_unit) "//\n// PassiveSkillCell.h\n// tup-tup\n//\n// Created by Александр on 27.02.16.\n// Copyright © 2016 Александр. All rights reserved.\n//\n\n#import <SpriteKit/SpriteKit.h>\n#import <Foundation/Foundation.h>\n\n@interface PassiveSkillCell : NSObject\n\n@property NSUInteger cellNumber; ...
264
41
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 37.29, "nodes": 171, "errors": 0, "source_hash": "81ba77f536b566f349f8c0f06c65a19aabc274eee8093d13eb47d2f7c0c85706", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "SpriteKi...
78,265
c
/* * HandleAllocationTable.h * * Created on: Mar 29, 2016 * Author: <NAME> */ #ifndef INCLUDE_HAT_HANDLEALLOCATIONTABLE_H_ #define INCLUDE_HAT_HANDLEALLOCATIONTABLE_H_ #include <cstdint> #include <set> #include <sstream> #include <string> #include "BeetleTypes.h" typedef struct { uint16_t start; uint16...
23.32
60
(translation_unit) "/*\n * HandleAllocationTable.h\n *\n * Created on: Mar 29, 2016\n * Author: <NAME>\n */\n\n#ifndef INCLUDE_HAT_HANDLEALLOCATIONTABLE_H_\n#define INCLUDE_HAT_HANDLEALLOCATIONTABLE_H_\n\n#include <cstdint>\n#include <set>\n#include <sstream>\n#include <string>\n\n#include "BeetleTypes.h"\n\ntype...
274
10
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 23.32, "nodes": 166, "errors": 0, "source_hash": "65760a589a5938c643d4664e6b0c7015a6e2c5385abf549ec3f38da49f88e69a", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,266
c
/** * \file collisions.h Draws collisions in the World * \author <NAME> */ #ifndef _COLLISION_H_ #define _COLLISION_H_ #include <list> #include "drawable.h" namespace BEAST { /** * \addtogroup framework * @{ */ const unsigned int MAX_COLLISIONS = 200; class Collisions : public Drawable, public std::list<V...
18.35
31
(translation_unit) "/**\n * \file collisions.h Draws collisions in the World\n * \author <NAME>\n */\n\n#ifndef _COLLISION_H_\n#define _COLLISION_H_\n\n#include <list>\n\n#include "drawable.h"\n\nnamespace BEAST { \n\n/**\n * \addtogroup framework\n * @{\n */\n\nconst unsigned int MAX_COLLISIONS = 200;\n\nclass Collisi...
115
6
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 18.35, "nodes": 63, "errors": 0, "source_hash": "6d76819de89594f149e6db5b8152dbeca7085d5d4237ab0c8190a65d33636091", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,267
c
#include "game.h" void gameInit (game_st *game) { int i, j; game->side = WhiteSide; game->isOver = 0; game->winner = NoneSide; game->position.x = MAX_CELL_X / 2; game->position.y = MAX_CELL_Y / 2; for (i = 0; i < MAX_CELL_X; ++ i) { for (j = 0; j < MAX_CELL_Y; ++ j) { game->link[i][j] = 0; ...
26.96
147
(translation_unit) "#include "game.h"\n\n\nvoid gameInit (game_st *game) {\n int i, j;\n\n game->side = WhiteSide;\n game->isOver = 0;\n game->winner = NoneSide;\n game->position.x = MAX_CELL_X / 2;\n game->position.y = MAX_CELL_Y / 2;\n\n for (i = 0; i < MAX_CELL_X; ++ i) {\n for (j = 0; j < MAX_CELL_Y; ++ j...
1,614
0
{"language": "c", "success": true, "metadata": {"lines": 147, "avg_line_length": 26.96, "nodes": 990, "errors": 0, "source_hash": "e62093a585ed5edffd43dc368b4b31198b9c4acbbe745fcb6fe5a5273051176b", "categorized_nodes": 774}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,268
c
#include <resea/printf.h> #include <resea/syscall.h> #include <vprintf.h> static char printbuf[PRINT_BUF_SIZE]; static int head = 0; static int tail = 0; void printf_flush(void) { if (tail < head) { sys_console_write(&printbuf[tail], head - tail); tail = head; } else if (tail > head) { ...
30.63
35
(translation_unit) "#include <resea/printf.h>\n#include <resea/syscall.h>\n#include <vprintf.h>\n\nstatic char printbuf[PRINT_BUF_SIZE];\nstatic int head = 0;\nstatic int tail = 0;\n\nvoid printf_flush(void) {\n if (tail < head) {\n sys_console_write(&printbuf[tail], head - tail);\n tail = head;\n }...
329
1
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 30.63, "nodes": 199, "errors": 0, "source_hash": "6f4a5e9b37c1c02be88007134899dc265ccb3bad8e6efe7b0032f92710d57229", "categorized_nodes": 141}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,269
c
/** ****************************************************************************** * @file subghz_phy_app.h * @author MCD Application Team * @brief Header of application of the SubGHz_Phy Middleware ****************************************************************************** * @attention * * <h2...
45.66
107
(translation_unit) "/**\n ******************************************************************************\n * @file subghz_phy_app.h\n * @author MCD Application Team\n * @brief Header of application of the SubGHz_Phy Middleware\n ******************************************************************************\n...
352
0
{"language": "c", "success": true, "metadata": {"lines": 107, "avg_line_length": 45.66, "nodes": 258, "errors": 0, "source_hash": "90eb3997aa95350fc2e0f9e1eeb8525daefec7cb6d0a72ddc4204c8f9f8a01f9", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,270
c
// // KKBVipProduceCollectionCell.h // KaiKeBa // // Created by zddMac on 2019/12/12. // Copyright © 2019 kaikeba. All rights reserved. // #import <KKBLibrary/KKBBaseCollectionViewCell.h> NS_ASSUME_NONNULL_BEGIN @interface KKBVipProduceCollectionCell : KKBBaseCollectionViewCell @property (nonatomic, strong)UICo...
27.29
17
(translation_unit) "//\n// KKBVipProduceCollectionCell.h\n// KaiKeBa\n//\n// Created by zddMac on 2019/12/12.\n// Copyright © 2019 kaikeba. All rights reserved.\n//\n\n#import <KKBLibrary/KKBBaseCollectionViewCell.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface KKBVipProduceCollectionCell : KKBBaseCollectionViewCell\n\...
91
11
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 27.29, "nodes": 57, "errors": 0, "source_hash": "0e01dbf5aa8ce3f995347c31118c779212efac77e35d51d0e5df532b99ddaba0", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <K...
78,271
c
/* -------------------------------------------------------------------------- * * File TestScheduler.h * Author <NAME> * * -------------------------------------------------------------------------- * * Copyright (c) 2010-2013 cocos2d-x.org * * http://www.cocos2d-x...
30.79
247
(translation_unit) "/* --------------------------------------------------------------------------\n *\n * File TestScheduler.h\n * Author <NAME>\n * \n * --------------------------------------------------------------------------\n * \n * Copyright (c) 2010-2013 cocos2d-x.org\n *\n *...
1,732
71
{"language": "c", "success": true, "metadata": {"lines": 247, "avg_line_length": 30.79, "nodes": 1124, "errors": 0, "source_hash": "d8836cf8ba175783d237924a68ca5830af458643cb284ee2905db4822fadb2f2", "categorized_nodes": 815}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
78,272
c
# /* # * Created by <NAME> on 2021/10/5. # */ # # ifndef SS_RANGES_H_ # define SS_RANGES_H_ namespace ss { } // namespace ss # endif // SS_RANGES_H_
12.91
11
(translation_unit) "# /*\n# * Created by <NAME> on 2021/10/5.\n# */\n#\n# ifndef SS_RANGES_H_\n# define SS_RANGES_H_\n\nnamespace ss {\n\n\n\n\n} // namespace ss\n\n# endif // SS_RANGES_H_\n" (ERROR) "# /*\n# * Created by <NAME> on 2021/10/5.\n# */\n#" (ERROR) "# " (comment) "/*\n# * Created by <NAME> on...
20
3
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 12.91, "nodes": 13, "errors": 0, "source_hash": "ee8ab8d49a80556eadf65ff7b44b20906913f70f6a85e5e8b192ecfba51945cb", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "# /*\n# * Create...
78,273
c
/* * Удаление лотов с истекшим сроком хранения. * Лоты, имя которых начинается с точки, хранятся дольше. * * Copyright (C) 1991 <NAME>, <<EMAIL>>. * All rights reserved. */ # include <stdio.h> # include "config.h" # include "lang.h" # include "server.h" # define TMPFNAME "/tmp/dmxXXXXXX" char tmpf [] = TMPFNAM...
19.33
157
(translation_unit) "/*\n * Удаление лотов с истекшим сроком хранения.\n * Лоты, имя которых начинается с точки, хранятся дольше.\n *\n * Copyright (C) 1991 <NAME>, <<EMAIL>>.\n * All rights reserved.\n */\n\n# include <stdio.h>\n# include "config.h"\n# include "lang.h"\n# include "server.h"\n\n# define TMPFNAME "/tmp/d...
1,323
1
{"language": "c", "success": true, "metadata": {"lines": 157, "avg_line_length": 19.33, "nodes": 714, "errors": 0, "source_hash": "67b2754b3c2c7fb8719fe16799add32930e0b6a93a12439c3b912960b12a09c8", "categorized_nodes": 494}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "\n\...
78,274
c
#ifndef _KERNUTIL_H #define _KERNUTIL_H #include <sys/types.h> uint8 inb(uint16 port); uint16 inw(uint16 port); uint32 inl(uint16 port); void outb(uint16 port, uint8 value); void outw(uint16 port, uint16 value); void outl(uint16 port, uint32 value); void panic(const char *fmt, ...) __attribute__((noreturn)); void ...
32.26
19
(translation_unit) "#ifndef _KERNUTIL_H\n#define _KERNUTIL_H\n\n#include <sys/types.h>\n\nuint8 inb(uint16 port);\nuint16 inw(uint16 port);\nuint32 inl(uint16 port);\n\nvoid outb(uint16 port, uint8 value);\nvoid outw(uint16 port, uint16 value);\nvoid outl(uint16 port, uint32 value);\n\nvoid panic(const char *fmt, ...)...
219
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 32.26, "nodes": 150, "errors": 0, "source_hash": "2ef3073fe67aef501850ae93ba25ee10a3c63b487dbf023b1527dbfcb5c0eebf", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,275
c
#pragma once #include "sge_utils/math/vec3.h" #include "sge_utils/sge_utils.h" namespace sge { // Hermite cubic spline. See here: // https://math.stackexchange.com/questions/1270776/how-to-find-tangent-at-any-point-along-a-cubic-hermite-spline?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa ...
35.12
73
(translation_unit) "#pragma once\n\n#include "sge_utils/math/vec3.h"\n#include "sge_utils/sge_utils.h"\n\nnamespace sge {\n\n// Hermite cubic spline. See here:\n// https://math.stackexchange.com/questions/1270776/how-to-find-tangent-at-any-point-along-a-cubic-hermite-spline?utm_medium=organic&utm_source=google_rich_qa&...
1,141
0
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 35.12, "nodes": 879, "errors": 0, "source_hash": "d497b5e99617a3539e3fa1d22ea4c794a9e92b5cc5729c63e3b873ba99a77e39", "categorized_nodes": 574}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
78,276
c
/***********************/ /** get-locked-page.c **/ /***********************/ #define _SVID_SOURCE #include <sys/ipc.h> #include <sys/shm.h> #include <fcntl.h> #include <stdio.h> #include <assert.h> #include <string.h> #include "ensemble-support.h" void get_locked_page(void **logical_addr, unsigned long *physical_...
28.86
71
(translation_unit) "/***********************/\n/** get-locked-page.c **/\n/***********************/\n\n#define _SVID_SOURCE\n\n#include <sys/ipc.h>\n#include <sys/shm.h>\n#include <fcntl.h>\n#include <stdio.h>\n#include <assert.h>\n#include <string.h>\n\n#include "ensemble-support.h"\n\nvoid get_locked_page(void **logi...
536
0
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 28.86, "nodes": 338, "errors": 0, "source_hash": "ac52f87fc5613a9a8be6d7858af3d28b7cca953ec08f7aee88f0ae1212b26df2", "categorized_nodes": 235}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ...
78,277
c
/** * transform.c * * Copyright (c) 2016 <NAME>. * Subject to the MIT License. * * Inline definitions for transform.h. */ #include <math.h> #include "vector/vec3.h" #include "matrix/mat4.h" #include "transform.h" void cgm_set_ortho( cgm_mat4* m, float left, float right, float bottom, f...
25.87
228
(translation_unit) "/**\n * transform.c\n *\n * Copyright (c) 2016 <NAME>.\n * Subject to the MIT License.\n *\n * Inline definitions for transform.h.\n */\n\n#include <math.h>\n\n#include "vector/vec3.h"\n#include "matrix/mat4.h"\n#include "transform.h"\n\nvoid cgm_set_ortho(\n cgm_mat4* m,\n float left,...
2,642
0
{"language": "c", "success": true, "metadata": {"lines": 228, "avg_line_length": 25.87, "nodes": 1723, "errors": 0, "source_hash": "5b0c59ca1bc8e3a393fe887a55493e472b881719607681cb0f3556f936bb9dbc", "categorized_nodes": 1308}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
78,278
c
#include "Config.h" extern void runTest(Config c); extern void Main(Config& config);
27.33
3
(translation_unit) "#include "Config.h"\n\nextern void runTest(Config c);\nextern void Main(Config& config);" (preproc_include) "#include "Config.h"\n" (#include) "#include" (string_literal) ""Config.h"" (") """ (string_content) "Config.h" (") """ (declaration) "extern void runTest(Config ...
35
1
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 27.33, "nodes": 23, "errors": 0, "source_hash": "7c3cb5f08a1806296305d8e76b5ad42482b144a5cd35e4a623259007628de302", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
78,279
c
#ifndef APP_H #define APP_H #include <QObject> #include <QFile> #include <QStringList> #include "client.h" #include "comtranslator.h" #include "uibackend.h" #define SERVER_HOST "192.168.1.201" #define SERVER_PORT 5050 class App : public QObject { Q_OBJECT public: explicit App(QObject *parent = 0); void start(); ...
19.79
34
(translation_unit) "#ifndef APP_H\n#define APP_H\n\n#include <QObject>\n#include <QFile>\n#include <QStringList>\n#include "client.h"\n#include "comtranslator.h"\n#include "uibackend.h"\n\n#define SERVER_HOST "192.168.1.201"\n#define SERVER_PORT 5050\n\nclass App : public QObject\n{\n Q_OBJECT\npublic:\n explicit App(Q...
193
4
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 19.79, "nodes": 128, "errors": 0, "source_hash": "7762801144f8ed5a6aa78fd4d8642ce1d26d86271d126aa64bdf977786776e1e", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,280
c
version https://git-lfs.github.com/spec/v1 oid sha256:d3971ddc44e4a5b2f47333c924021244c4d6c321b7577ea30e9f4342258df132 size 1701
42
3
(translation_unit) "version https://git-lfs.github.com/spec/v1\noid sha256:d3971ddc44e4a5b2f47333c924021244c4d6c321b7577ea30e9f4342258df132\nsize 1701\n" (declaration) "version https://git-lfs.github.com/spec/v1\noid" (type_identifier) "version" (ERROR) "https:" (identifier) "https" (:) ":" (c...
15
2
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 42.0, "nodes": 10, "errors": 0, "source_hash": "1a4d512d99e776dfe83cc6ce287955da376e5356fc6de2f85dd2b23dfb3ef62f", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "version https...
78,281
c
// // NSNumber+CCChain.h // CCLocalLibrary // // Created by Elwinfrederick on 02/08/2017. // Copyright © 2017 冯明庆. All rights reserved. // #import <Foundation/Foundation.h> @interface NSNumber (CCChain) @property (nonatomic , copy , readonly) NSDecimalNumber *(^decimal)(); @end #pragma mark - ----- @interface...
45.61
23
(translation_unit) "//\n// NSNumber+CCChain.h\n// CCLocalLibrary\n//\n// Created by Elwinfrederick on 02/08/2017.\n// Copyright © 2017 冯明庆. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NSNumber (CCChain)\n\n@property (nonatomic , copy , readonly) NSDecimalNumber *(^decimal)();\n\n@end...
334
53
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 45.61, "nodes": 232, "errors": 0, "source_hash": "5b2a94b94d39a9f1e53899d2054b10c8e7ba7e8553b6f1a4e649c1ce35369a2b", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <Found...
78,282
c
// // PhotoView.h // aoyouHH // // Created by jinzelu on 15/4/30. // Copyright (c) 2015年 jinzelu. All rights reserved. // #import <UIKit/UIKit.h> //1. @protocol PYPhotoViewDelegate <NSObject> //点击图片时,隐藏图片浏览器 -(void)TapHiddenPhotoView; @end @interface PYPhotoView : UIView /** * 添加的图片 */ @property(nonatomic,...
19.46
28
(translation_unit) "//\n// PhotoView.h\n// aoyouHH\n//\n// Created by jinzelu on 15/4/30.\n// Copyright (c) 2015年 jinzelu. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n//1.\n@protocol PYPhotoViewDelegate <NSObject>\n\n//点击图片时,隐藏图片浏览器\n-(void)TapHiddenPhotoView;\n\n@end\n\n\n@interface PYPhotoView : UIView...
113
15
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 19.46, "nodes": 72, "errors": 0, "source_hash": "c795fc0c983b97a483c4840e1ba06724f65ba220761adcce8a9b2903fcce8ebe", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <UI...
78,283
c
/****************************************************************************** * Copyright (c) 2012 <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, includi...
37.56
70
(translation_unit) "/******************************************************************************\n * Copyright (c) 2012 <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\n * deal in the Software wit...
332
15
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 37.56, "nodes": 202, "errors": 0, "source_hash": "637a604a8514ea41681be227f78d199dad54c4faef3c98b19cc578c2a71fca59", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,284
c
/* See LICENSE file in root folder */ #ifndef ___EVENT_TARGET_H___ #define ___EVENT_TARGET_H___ #include "Module_Sequences.h" #include "Module_Gui.h" #include "Module_Script.h" namespace Elypse { namespace Sequences { template< typename T > struct EventTargetEnum; template<> struct EventTargetEnum< Ogre::S...
21.46
128
(translation_unit) "/*\nSee LICENSE file in root folder\n*/\n#ifndef ___EVENT_TARGET_H___\n#define ___EVENT_TARGET_H___\n\n#include "Module_Sequences.h"\n#include "Module_Gui.h"\n#include "Module_Script.h"\n\nnamespace Elypse\n{\n namespace Sequences\n {\n template< typename T >\n struct EventTargetEnum;\n\n templat...
793
73
{"language": "c", "success": true, "metadata": {"lines": 128, "avg_line_length": 21.46, "nodes": 503, "errors": 0, "source_hash": "3d2af59a0c24a7dce8eb4abf5057ef1152ccac21fc37789574a8088808f3b1b4", "categorized_nodes": 298}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,285
c
/** * @author ejrbuss * @date 2017 * * This file contains extraneous utility functions. */ #include <stdlib.h> #include <stdarg.h> #include <stdio.h> #include <string.h> #include <time.h> #include "util.h" static int DEBUG = 0; /** * Enable debug mode. */ void rdp_debug() { DEBUG = 1; } /** * Close the p...
21.42
204
(translation_unit) "/**\n * @author ejrbuss\n * @date 2017\n *\n * This file contains extraneous utility functions.\n */\n#include <stdlib.h>\n#include <stdarg.h>\n#include <stdio.h>\n#include <string.h>\n#include <time.h>\n#include "util.h"\n\nstatic int DEBUG = 0;\n\n/**\n * Enable debug mode.\n */\nvoid rdp_debug() ...
1,032
0
{"language": "c", "success": true, "metadata": {"lines": 204, "avg_line_length": 21.42, "nodes": 597, "errors": 0, "source_hash": "4fbea0f4d23a593fb03f9737034e2bebd1b828ba074ad3f4110a22bb2e1e8cfe", "categorized_nodes": 402}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,286
c
#ifndef HcalSimAlgos_HcalAmplifier_h #define HcalSimAlgos_HcalAmplifier_h #include "CalibFormats/CaloObjects/interface/CaloSamples.h" #include "CalibFormats/HcalObjects/interface/HcalCalibrationWidths.h" class CaloVSimParameterMap; class CaloVNoiseSignalGenerator; #include "SimCalorimetry/CaloSimAlgos/interface/Calo...
40.68
47
(translation_unit) "#ifndef HcalSimAlgos_HcalAmplifier_h\n#define HcalSimAlgos_HcalAmplifier_h\n \n#include "CalibFormats/CaloObjects/interface/CaloSamples.h"\n#include "CalibFormats/HcalObjects/interface/HcalCalibrationWidths.h"\nclass CaloVSimParameterMap;\nclass CaloVNoiseSignalGenerator;\n#include "SimCalorimetry/...
355
14
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 40.68, "nodes": 214, "errors": 0, "source_hash": "10ce4b42bad3f410367900a60425ce68803515654a0ba5eb46c371172a12b1d2", "categorized_nodes": 149}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,287
c
/* * Copyright (c) 2021 Telink Semiconductor * * SPDX-License-Identifier: Apache-2.0 */ #define DT_DRV_COMPAT telink_b91_flash_controller #define FLASH_SIZE DT_REG_SIZE(DT_INST(0, soc_nv_flash)) #include "flash.h" #include <zephyr/device.h> #include <zephyr/drivers/flash.h> /* driver data structure */ struct fl...
26.3
146
(translation_unit) "/*\n * Copyright (c) 2021 Telink Semiconductor\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\n#define DT_DRV_COMPAT telink_b91_flash_controller\n#define FLASH_SIZE DT_REG_SIZE(DT_INST(0, soc_nv_flash))\n\n#include "flash.h"\n#include <zephyr/device.h>\n#include <zephyr/drivers/flash.h>\n\n\n/* ...
944
3
{"language": "c", "success": true, "metadata": {"lines": 146, "avg_line_length": 26.3, "nodes": 559, "errors": 0, "source_hash": "588b89b39f857811320c30437b160c3079db529e3de89c4d6f87af5804e240ae", "categorized_nodes": 394}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ...
78,288
c
/* * VeiL Connect * VeiL VDI Client * Based on virt-viewer and freerdp * * Author: http://mashtab.org/ */ #include <config.h> #include <gio/gio.h> #include <gtk/gtk.h> #ifdef G_OS_WIN32 #include <minwindef.h> #include <windef.h> #include <wincred.h> #include <windows.h> #include <stdio.h> #include <tchar.h> #e...
39.16
206
(translation_unit) "/*\n * VeiL Connect\n * VeiL VDI Client\n * Based on virt-viewer and freerdp\n *\n * Author: http://mashtab.org/\n */\n\n#include <config.h>\n#include <gio/gio.h>\n#include <gtk/gtk.h>\n\n#ifdef G_OS_WIN32\n#include <minwindef.h>\n#include <windef.h>\n#include <wincred.h>\n\n#include <windows.h>\n#i...
1,838
7
{"language": "c", "success": true, "metadata": {"lines": 206, "avg_line_length": 39.16, "nodes": 1069, "errors": 0, "source_hash": "5ce8ad8d70a3c0d4f48506587dab0074b63eebb397bb4981a4b6ff30a2773052", "categorized_nodes": 733}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
78,289
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "_SSSScreenshotContentOverlayController.h" #import "PKCanvasViewDelegate.h" @class NSString, PKCanvasView, SSSBoundsFittingView; @interface _SSSScreenshotCanvasController : _SS...
39.89
28
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "_SSSScreenshotContentOverlayController.h"\n\n#import "PKCanvasViewDelegate.h"\n\n@class NSString, PKCanvasView, SSSBoundsFittingView;\n\n@interface _SSS...
240
21
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 39.89, "nodes": 144, "errors": 0, "source_hash": "dd2ea0765ad74a46e6e2828943d200bf20d6fe5047dde4e72fc2aae2ca2e309a", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
78,290
c
/** * Copyright (2017) Baidu Inc. 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 applica...
28.37
54
(translation_unit) "/**\n * Copyright (2017) Baidu Inc. 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 *\n...
76
0
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 28.37, "nodes": 51, "errors": 0, "source_hash": "28a5eb22b3edf6c17252c87b4f2e4b9e834d6449953e8cf7e8a872564e6629ed", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,291
c
//***************************************************************************** // //! @page xadc_testcase xadc register test //! //! File: @ref xadctest.c //! //! <h2>Description</h2> //! This module implements the test sequence for the xadc sub component.<br><br> //! - \p Board: NUC140 <br><br> //! - \p Last-Time(abo...
26.96
189
(translation_unit) "//*****************************************************************************\n//\n//! @page xadc_testcase xadc register test\n//!\n//! File: @ref xadctest.c\n//!\n//! <h2>Description</h2>\n//! This module implements the test sequence for the xadc sub component.<br><br>\n//! - \p Board: NUC140 <br...
521
0
{"language": "c", "success": true, "metadata": {"lines": 189, "avg_line_length": 26.96, "nodes": 200, "errors": 0, "source_hash": "1b1e4f03b4838bbb3b9702e631328f24891d3cc4bec9d32b8ee4111928ce76e2", "categorized_nodes": 138}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,292
c
#ifdef CONFIG_X86_32 # include "suspend_32.h" #else # include "suspend_64.h" #endif
15.8
5
(translation_unit) "#ifdef CONFIG_X86_32\n# include "suspend_32.h"\n#else\n# include "suspend_64.h"\n#endif\n" (preproc_ifdef) "#ifdef CONFIG_X86_32\n# include "suspend_32.h"\n#else\n# include "suspend_64.h"\n#endif" (#ifdef) "#ifdef" (identifier) "CONFIG_X86_32" (preproc_include) "# include "suspend_32.h...
19
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 15.8, "nodes": 12, "errors": 0, "source_hash": "cd9ea87440245bf6d401e48f24c6c8efd01278f4f9b311440256caae4ab7a2ef", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef CON...
78,293
c
#pragma once #ifdef __APPLE__ #include <OpenCL/cl.h> #include <OpenCL/cl_gl.h> #include <OpenCL/cl_gl_ext.h> #else #include <CL/cl.h> #include <CL/cl_gl.h> #endif
17.67
9
(translation_unit) "#pragma once\n\n#ifdef __APPLE__\n #include <OpenCL/cl.h>\n #include <OpenCL/cl_gl.h>\n #include <OpenCL/cl_gl_ext.h>\n#else\n #include <CL/cl.h>\n #include <CL/cl_gl.h>\n#endif\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_ifdef) "#ifdef ...
25
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 17.67, "nodes": 24, "errors": 0, "source_hash": "3150e3f652c83b9228eb7962d8c68ce839940dc9da3371293720bc531ad8174f", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
78,294
c
#pragma once #include <typeinfo> #include <vector> #include <Common/typeid_cast.h> #include <Parsers/DumpASTNode.h> namespace DB { /// Visits AST tree in depth, call functions for nodes according to Matcher type data. /// You need to define Data, visit() and needChildVisit() in Matcher class. template <typename Matc...
33.92
79
(translation_unit) "#pragma once\n\n#include <typeinfo>\n#include <vector>\n#include <Common/typeid_cast.h>\n#include <Parsers/DumpASTNode.h>\n\nnamespace DB\n{\n\n/// Visits AST tree in depth, call functions for nodes according to Matcher type data.\n/// You need to define Data, visit() and needChildVisit() in Matcher...
717
52
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 33.92, "nodes": 428, "errors": 0, "source_hash": "af7d32f49f7db55a04538af6275461841a53c4b3d3542aae87728f17136c367e", "categorized_nodes": 293}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
78,295
c
#include "lpc_client.h" static int lpc_client_init_args(header *head, va_list params); static int lpc_client_update_args(header *head, va_list params); char *lpc_init_connection(){ int fd = socket(AF_UNIX, SOCK_DGRAM, 0); CHECK((fd == -1), "socket", errno, QUIT); struct sockaddr_un server = {.sun_family = A...
35.9
157
(translation_unit) "#include "lpc_client.h"\n\nstatic int lpc_client_init_args(header *head, va_list params);\nstatic int lpc_client_update_args(header *head, va_list params);\n\nchar *lpc_init_connection(){\n int fd = socket(AF_UNIX, SOCK_DGRAM, 0);\n CHECK((fd == -1), "socket", errno, QUIT);\n\n struct sockaddr...
2,043
15
{"language": "c", "success": true, "metadata": {"lines": 157, "avg_line_length": 35.9, "nodes": 1198, "errors": 0, "source_hash": "9cbd5bf7eb67ccb9772246c6d545a77c2c0019d3ccd70299bfdd6c11e2337e4c", "categorized_nodes": 857}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,296
c
#ifndef SRV_SETTINGS_ #define SRV_SETTINGS_ //server settings #define DEFAULT_PORT 5555 #define MAX_PLAYERS 2048 #define BUFFER_LENGTH 255 //byte #endif
16.22
9
(translation_unit) "#ifndef SRV_SETTINGS_\n#define SRV_SETTINGS_\n\n\n//server settings\n#define DEFAULT_PORT 5555\n#define MAX_PLAYERS 2048\n#define BUFFER_LENGTH 255 //byte\n\n\n#endif" (preproc_ifdef) "#ifndef SRV_SETTINGS_\n#define SRV_SETTINGS_\n\n\n//server settings\n#define DEFAULT_PORT 5555\n#define MAX_PLAYE...
21
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 16.22, "nodes": 19, "errors": 0, "source_hash": "1434c450e8529a672b3fbe012f57854ec15c8ec974a66aa6eaee0448fe25f0cb", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef SR...
78,297
c
#pragma once #include "SimpleEngine/Core/Application.h" // --- Layers --- // #include "SimpleEngine/Core/ILayer.h"
27.75
4
(translation_unit) "#pragma once\n\n#include "SimpleEngine/Core/Application.h"\n\n// --- Layers --- //\n#include "SimpleEngine/Core/ILayer.h"" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "SimpleEngine/Core/Application.h"\n" (#include) "#...
17
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 27.75, "nodes": 9, "errors": 0, "source_hash": "f2fe7fdb51093ee1430b843273bd0a158194c657de7bd4a974d8346784063144", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once...
78,298
c
#ifndef FOGGOTOSTATEMENT_HXX #define FOGGOTOSTATEMENT_HXX class FogGotoStatement : public FogStatement { typedef FogStatement Super; typedef FogGotoStatement This; TYPEDECL_SINGLE(This, Super) FOGTOKEN_MEMBER_DECLS FOGTOKEN_LEAF_DECLS private: FogNameRef _label; private: This& mutate() ...
26.85
26
(translation_unit) "#ifndef FOGGOTOSTATEMENT_HXX\n#define FOGGOTOSTATEMENT_HXX\n\n\n\n\nclass FogGotoStatement : public FogStatement\n{\n typedef FogStatement Super;\n typedef FogGotoStatement This;\n TYPEDECL_SINGLE(This, Super)\n FOGTOKEN_MEMBER_DECLS\n FOGTOKEN_LEAF_DECLS\nprivate:\n FogNameRef _la...
191
13
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 26.85, "nodes": 110, "errors": 0, "source_hash": "9a4da2f518becb6bdc4fc0b02e7204ed62fbc9c570f88dc76be4d62023bf67ab", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,299