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
// 9 - Depois da liberação do governo para as mensalidades dos planos de saúde, as pessoas começaram a fazer pesquisas para descobrir um bom plano, não muito caro. Um vendedor de plano de saúde apresentou a tabela a seguir. // - Até 10 anos – R$30,00 // - Acima de 10 até 29 anos – R$60,00 // - Acima de 29 até 45 anos –...
35.47
34
(translation_unit) "// 9 - Depois da liberação do governo para as mensalidades dos planos de saúde, as pessoas começaram a fazer pesquisas para descobrir um bom plano, não muito caro. Um vendedor de plano de saúde apresentou a tabela a seguir.\n// - Até 10 anos – R$30,00\n// - Acima de 10 até 29 anos – R$60,00\n// - Ac...
236
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 35.47, "nodes": 125, "errors": 0, "source_hash": "a0493aff779cd391a7e6fbb49cc7e0e1032fd8f0e03f21c21d0da63310a7122e", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "main(...
79,200
c
/** * Copyright 2010-2016 Comcast Cable Communications Management, LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Un...
32.29
129
(translation_unit) "/**\n * Copyright 2010-2016 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/lic...
693
0
{"language": "c", "success": true, "metadata": {"lines": 129, "avg_line_length": 32.29, "nodes": 395, "errors": 0, "source_hash": "7a5f591f5fe786e545d60a1252cfc0d62d7d0313980e7f57da1c9b9124e34df1", "categorized_nodes": 266}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,201
c
/** * Regression test for <https://github.com/libgd/libgd/issues/338> * * We're testing that writing a PNG image with an unsupported quality * raises a GD_WARNING for the fatal libpng error, but not a GD_ERROR. * We also make sure, that the fatal libpng error is actually reported. * * See also ../jpeg/bug...
21.5
48
(translation_unit) "/** \n * Regression test for <https://github.com/libgd/libgd/issues/338> \n * \n * We're testing that writing a PNG image with an unsupported quality \n * raises a GD_WARNING for the fatal libpng error, but not a GD_ERROR. \n * We also make sure, that the fatal libpng error is actually reported. \n ...
194
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 21.5, "nodes": 110, "errors": 0, "source_hash": "fedce44bfc03f89b25250d1c2a1f980d7f4698d12262e5a31d94f36bdad5933c", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
79,202
c
#include "std__string.h" /** * @brief find the first occurence of a string. * str__find("abcde", "de") would return 3. * @param this the string to search in. * @param other the sequence to search for. * @return index of string if found, ERR (-1) if not found */ t_int_or_neg_as_err str__find(t_const_string this, ...
28
27
(translation_unit) "#include "std__string.h"\n\n/**\n * @brief find the first occurence of a string.\n * str__find("abcde", "de") would return 3.\n * @param this the string to search in.\n * @param other the sequence to search for.\n * @return index of string if found, ERR (-1) if not found\n */\nt_int_or_neg_as_err st...
174
1
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 28.0, "nodes": 108, "errors": 0, "source_hash": "6fafe5bd0889a2975b78e4a4d75ff84ffc408bd0a639a412ed136eb836446b93", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
79,203
c
#include <stdlib.h> #include <stdio.h> #include <mpi.h> #include <math.h> #include <string.h> #include <time.h> #include "header.h" #include "initEnergySpace.h" #include "bingham.h" #include "calcEnergy.h" #include "para_lbfgs.h" energySpace* energyDataPointer; binghamDataSpace* binghamDataPointer; mpi_comm_data* mpi...
24.4
245
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n#include <mpi.h>\n#include <math.h>\n#include <string.h>\n#include <time.h>\n#include "header.h"\n#include "initEnergySpace.h"\n#include "bingham.h"\n#include "calcEnergy.h"\n\n#include "para_lbfgs.h"\n\nenergySpace* energyDataPointer;\nbinghamDataSpace* bing...
2,366
0
{"language": "c", "success": true, "metadata": {"lines": 245, "avg_line_length": 24.4, "nodes": 1308, "errors": 0, "source_hash": "a5e5b53c6d2b38b2f525b68de9d9d0993194211bb8eb08915cb99fc066aa3353", "categorized_nodes": 961}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,204
c
#ifndef __EDITOR_H__ #define __EDITOR_H__ #include "SDL/SDL.h" #include "platform.h" #include "grassplatform.h" #include <string> #include "text.h" #include "player.h" #include "creature.h" #include "pomgob.h" #include "sbbflyer.h" #include "zombo.h" #include "blubber.h" #define MAPHEIGHTSTEP 100 #define MAPWIDTHSTEP...
32.64
159
(translation_unit) "#ifndef __EDITOR_H__\n#define __EDITOR_H__\n\n#include "SDL/SDL.h"\n#include "platform.h"\n#include "grassplatform.h"\n#include <string>\n#include "text.h"\n#include "player.h"\n#include "creature.h"\n#include "pomgob.h"\n#include "sbbflyer.h"\n#include "zombo.h"\n#include "blubber.h"\n\n#define MAP...
889
13
{"language": "c", "success": true, "metadata": {"lines": 159, "avg_line_length": 32.64, "nodes": 612, "errors": 0, "source_hash": "76f119b434c62a023e657b416d7f76d4487668515866b551925b6eb5ca433b5e", "categorized_nodes": 393}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
79,205
c
#include <stdio.h> #include <stdlib.h> #include <string.h>//strcpy /** An example for allocating memory dynamically **/ int main(){ char name[100];//Compiler automatically allocates 100 bytes of memory location. This is not very good use of memory. char *about; //A pointer for allocating memory strcpy(name, "Sta...
29.73
26
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>//strcpy\n\n/**\n\nAn example for allocating memory dynamically\n\n**/\n\n\nint main(){\n\nchar name[100];//Compiler automatically allocates 100 bytes of memory location. This is not very good use of memory.\nchar *about; //A pointer for al...
183
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 29.73, "nodes": 92, "errors": 0, "source_hash": "7de598ad7bdbc4bbfb82a2c4a31d28f071e1e3846f8b166fcb6fd0d6902732b3", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
79,206
c
#include "hal/soc/soc.h" #include "include.h" #include "spi_pub.h" int32_t hal_spi_init(spi_dev_t *spi) { int ret = 0; if (spi->config.mode == HAL_SPI_MODE_MASTER) { ret = bk_spi_dma_init(SPI_MODE_0 | SPI_MSB | SPI_MASTER, spi->config.freq, (struct spi_message *)spi->priv); } else if(spi->config.mode == HAL_SPI_...
32.81
72
(translation_unit) "#include "hal/soc/soc.h"\n#include "include.h"\n#include "spi_pub.h"\n\nint32_t hal_spi_init(spi_dev_t *spi)\n{\n int ret = 0;\n\n if (spi->config.mode == HAL_SPI_MODE_MASTER) {\n ret = bk_spi_dma_init(SPI_MODE_0 | SPI_MSB | SPI_MASTER, spi->config.freq, (struct spi_message *)spi->priv);\n } else i...
787
0
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 32.81, "nodes": 490, "errors": 0, "source_hash": "fd894cc5a12608187dc49568b099732338ca8d8699a4f702c13b7a9ef5f15fef", "categorized_nodes": 369}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,207
c
#ifndef _METERPRETER_COMMON_CHANNEL_H #define _METERPRETER_COMMON_CHANNEL_H #include "common_remote.h" struct _Channel; struct _ChannelBuffer; // Direct I/O operation modes (read/write/close) typedef enum { CHANNEL_DIO_MODE_OPEN = 0, CHANNEL_DIO_MODE_READ = 1, CHANNEL_DIO_MODE_WRITE = 2, CHANNEL_DIO_M...
38.39
109
(translation_unit) "#ifndef _METERPRETER_COMMON_CHANNEL_H\n#define _METERPRETER_COMMON_CHANNEL_H\n\n#include "common_remote.h"\n\nstruct _Channel;\nstruct _ChannelBuffer;\n\n// Direct I/O operation modes (read/write/close)\ntypedef enum\n{\n CHANNEL_DIO_MODE_OPEN = 0,\n CHANNEL_DIO_MODE_READ = 1,\n CHANNEL_DIO_...
791
0
{"language": "c", "success": true, "metadata": {"lines": 109, "avg_line_length": 38.39, "nodes": 579, "errors": 0, "source_hash": "7676020b4cbd48a57fc4a0cdf713b608221ed96211deaec91103337ab9ee4bf4", "categorized_nodes": 433}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
79,208
c
#ifndef OBJECTMENU_H #define OBJECTMENU_H #include "../ShipObjects/room.h" #include "unit.h" #include "../../texturemanager.h" #include "../object.h" #include "../UI/button.h" enum Mode { MODE_WALL, MODE_ROOM, MODE_UNIT }; class ObjectMenu : public Object { public: ObjectMenu(const sf::T...
25.55
31
(translation_unit) "#ifndef OBJECTMENU_H\n#define OBJECTMENU_H\n\n\n#include "../ShipObjects/room.h"\n#include "unit.h"\n\n#include "../../texturemanager.h"\n\n#include "../object.h"\n\n#include "../UI/button.h"\n\nenum Mode\n{\n MODE_WALL,\n MODE_ROOM,\n MODE_UNIT\n};\n\n\nclass ObjectMenu : public Object\n{\...
165
6
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 25.55, "nodes": 94, "errors": 0, "source_hash": "63afa79ede88bd9203e3c8dc08090e29569a87929f49be581e1dde78baf501d8", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,209
c
/** * Author: <NAME> * Date: May 2009 * * Read a circuit netlist in XML format and populate the netlist data structures for VPR */ #ifndef READ_NETLIST_H #define READ_NETLIST_H void read_netlist(INP const char *net_file, INP const t_arch *arch, OUTP int *L_num_blocks, OUTP struct s_block *b...
21.38
21
(translation_unit) "/** \n * Author: <NAME> \n * Date: May 2009 \n * \n * Read a circuit netlist in XML format and populate the netlist data structures for VPR \n */ \n \n#ifndef READ_NETLIST_H \n#define READ_NETLIST_H \n \nvoid read_netlist(INP const char *net_file, \n INP const t_arch *arch, \n OUTP int *L_num_bl...
96
6
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 21.38, "nodes": 72, "errors": 0, "source_hash": "d6d83e395cd481d363ab203c99ad67dd9be13ea2e2580693f3b66dd91afece43", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,210
c
// // RecordListTableViewController.h // vesta // // Created by <NAME> on 16/12/14. // Copyright (c) 2014 utt. All rights reserved. // #import <UIKit/UIKit.h> @interface RecordListTableViewController : UITableViewController @property (strong, nonatomic) NSString *cartopartyId; @end
25.09
11
(translation_unit) "//\n// RecordListTableViewController.h\n// vesta\n//\n// Created by <NAME> on 16/12/14.\n// Copyright (c) 2014 utt. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface RecordListTableViewController : UITableViewController\n\n@property (strong, nonatomic) NSString *cartopartyId;\n\n...
36
6
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 25.09, "nodes": 22, "errors": 0, "source_hash": "6c4e4772f9edb133e9b2541e1525af94605ce421ff5fa81b156a7bac73d45b55", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
79,211
c
/* ** EPITECH PROJECT, 2018 ** my_world_2018 ** File description: ** display_text.c */ #include "text.h" void display_text(void *adr, sfRenderWindow *window) { text_t *txt = adr; if (!window || !txt) return; sfRenderWindow_drawText(window, txt->text, NULL); }
17.93
14
(translation_unit) "/*\n** EPITECH PROJECT, 2018\n** my_world_2018\n** File description:\n** display_text.c\n*/\n\n#include "text.h"\n\nvoid display_text(void *adr, sfRenderWindow *window)\n{\n text_t *txt = adr;\n\n if (!window || !txt)\n return;\n sfRenderWindow_drawText(window, txt->text, NULL);\n}\n" (comment) "...
70
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 17.93, "nodes": 46, "errors": 0, "source_hash": "60961d7b4a781e5a539e7f8f9499436860a5c21702cf7b234dd656f8acdfedcf", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
79,212
c
#ifndef ULTIMATEUSERINTERFACE_H #define ULTIMATEUSERINTERFACE_H #include "src_global.h" #include "abstractultimateuserinterface.h" #include <QObject> namespace UltimateUserInterface { class SRCSHARED_EXPORT UltimateUserInterface : public QObject, public AbstractUltimateUserInterface { public: Ulti...
33
16
(translation_unit) "#ifndef ULTIMATEUSERINTERFACE_H\n#define ULTIMATEUSERINTERFACE_H\n\n#include "src_global.h"\n#include "abstractultimateuserinterface.h"\n#include <QObject>\n\nnamespace UltimateUserInterface {\n class SRCSHARED_EXPORT UltimateUserInterface : public QObject, public AbstractUltimateUserInterface\n ...
87
3
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 33.0, "nodes": 45, "errors": 0, "source_hash": "88e0eb16a603b0d15bc4c669e713007acbe6752412d515bb428a04734448a75c", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef U...
79,213
c
#ifndef KEY // lgtm [cpp/missing-header-guard] #error "KEY macro must be defined before including keys.inc.h" #endif KEY(Backspace, 8) KEY(Tab, 9) KEY(Enter, 13) KEY(ShiftKey, 16) KEY(CtrlKey, 17) KEY(AltKey, 18) KEY(CapsLock, 20) KEY(Esc, 27) KEY(Space, 32) KEY(PageUp, 33) KEY(PageDown, 34) KEY(End, 35) KEY(Home, 36...
17.48
105
(translation_unit) "#ifndef KEY // lgtm [cpp/missing-header-guard]\n#error "KEY macro must be defined before including keys.inc.h"\n#endif\n\n\nKEY(Backspace, 8)\nKEY(Tab, 9)\nKEY(Enter, 13)\nKEY(ShiftKey, 16)\nKEY(CtrlKey, 17)\nKEY(AltKey, 18)\nKEY(CapsLock, 20)\nKEY(Esc, 27)\nKEY(Space, 32)\nKEY(PageUp, 33)\nKEY(Page...
1,143
0
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 17.48, "nodes": 608, "errors": 0, "source_hash": "5deacd4f5d9a2ffb69f931eefb96a120dad82bd5a9c864a2f71d754fd6ba0c25", "categorized_nodes": 398}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
79,214
c
#include <stdio.h> #include <stdlib.h> #include <assert.h> typedef struct list { int key; struct list *next; } mlist; mlist *head; mlist* search_list(mlist *l, int k) { l = head; while(l!=NULL && l->key!=k) { l = l->next; } return l; } int delete_list(mlist *l) { mlist *tmp; tmp = head; if ...
13.52
64
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <assert.h>\n\ntypedef struct list \n{\n int key;\n struct list *next;\n} mlist;\n\nmlist *head;\n\nmlist* search_list(mlist *l, int k)\n{\n l = head;\n while(l!=NULL && l->key!=k)\n {\n l = l->next;\n }\n return l;\n}\n\nint delete_list(mli...
412
0
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 13.52, "nodes": 261, "errors": 0, "source_hash": "d984c1963a76f6f22397e00205a1d813fa2f8242b217d174d1b7d88f925c0103", "categorized_nodes": 189}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,215
c
/* * This file is part of b6b. * * Copyright 2017, 2018, 2020 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
30.44
165
(translation_unit) "/*\n * This file is part of b6b.\n *\n * Copyright 2017, 2018, 2020 <NAME>\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licens...
1,273
0
{"language": "c", "success": true, "metadata": {"lines": 165, "avg_line_length": 30.44, "nodes": 921, "errors": 0, "source_hash": "cd9133487492cdcac3d954a5f3bcbf9c22cbc52806ad815b3a2a7df3470637ff", "categorized_nodes": 648}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,216
c
/** *********************************************************************************************************************** * Copyright (c) 2020, China Mobile Communications Group Co.,Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with ...
30.33
111
(translation_unit) "/** \n *********************************************************************************************************************** \n * Copyright (c) 2020, China Mobile Communications Group Co.,Ltd. \n * \n * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file excep...
474
0
{"language": "c", "success": true, "metadata": {"lines": 111, "avg_line_length": 30.33, "nodes": 353, "errors": 0, "source_hash": "b29756e9bc7e635de26a0bd490dfc61ad9ce7875d1337f0b1b1a2dd2ef6f8354", "categorized_nodes": 235}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
79,217
c
#pragma once #include <Eigen/Geometry> class NuiKinfuFrame; class NuiKinfuFeedbackFrame; class NuiKinfuCameraState; class NuiKinfuTracker { public: virtual bool EstimatePose( NuiKinfuFrame* pFrame, NuiKinfuFeedbackFrame* pFeedbackFrame, NuiKinfuCameraState* pCameraState, Eigen::Affine3f *hint ) = 0; vir...
26.26
19
(translation_unit) "#pragma once\n\n#include <Eigen/Geometry>\n\nclass NuiKinfuFrame;\nclass NuiKinfuFeedbackFrame;\nclass NuiKinfuCameraState;\n\nclass NuiKinfuTracker\n{\npublic:\n virtual bool EstimatePose(\n NuiKinfuFrame* pFrame,\n NuiKinfuFeedbackFrame* pFeedbackFrame,\n NuiKinfuCameraState* pCameraState,\n E...
149
10
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 26.26, "nodes": 86, "errors": 0, "source_hash": "78e10a55d905ee5344218bf5667f375003852a218d862840379830c7006227f4", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
79,218
c
#ifndef IF2FACE_H #define IF2FACE_H #include "If2Face_global.h" class IF2FACESHARED_EXPORT If2Face { public: If2Face(); }; #endif // IF2FACE_H
13.55
11
(translation_unit) "#ifndef IF2FACE_H \n#define IF2FACE_H \n \n#include "If2Face_global.h" \n \nclass IF2FACESHARED_EXPORT If2Face { \npublic: \n If2Face(); \n}; \n \n#endif // IF2FACE_H \n" (preproc_ifdef) "#ifndef IF2FACE_H \n#define IF2FACE_H \n \n#include "If2Face_global.h" \n \nclass IF2FACESHARED_EXPORT If2F...
35
1
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 13.55, "nodes": 18, "errors": 0, "source_hash": "05705f86cb62607ab8f49bed34e5237e8a57d397676829e58b945a697324fcb6", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,219
c
/* SPDX-License-Identifier: BSD-3-Clause */ #include <string.h> #include "log.h" #include "tpm2_kdfa.h" #include "tpm2_openssl.h" TSS2_RC tpm2_kdfa(TPMI_ALG_HASH hash_alg, TPM2B *key, char *label, TPM2B *context_u, TPM2B *context_v, UINT16 bits, TPM2B_MAX_BUFFER *result_key) { TPM2B_DIGEST tpm2b_...
34.23
84
(translation_unit) "/* SPDX-License-Identifier: BSD-3-Clause */\n\n#include <string.h>\n\n#include "log.h"\n#include "tpm2_kdfa.h"\n#include "tpm2_openssl.h"\n\nTSS2_RC tpm2_kdfa(TPMI_ALG_HASH hash_alg, TPM2B *key, char *label,\n TPM2B *context_u, TPM2B *context_v, UINT16 bits,\n TPM2B_MAX_BUFFER *result_...
871
0
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 34.23, "nodes": 536, "errors": 0, "source_hash": "1d8edd1cf22e3463d9f0f844986e66f33edb7f58b1b8f87365c2dc9ae8a54d84", "categorized_nodes": 385}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,220
c
/* Copyright 2011-2018 Stratify Labs, Inc Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing,...
39.13
89
(translation_unit) "/*\n\nCopyright 2011-2018 Stratify Labs, Inc\n\nLicensed under the Apache License, Version 2.0 (the "License");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicabl...
225
0
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 39.13, "nodes": 209, "errors": 0, "source_hash": "b32b252af06227dc3da6b06b7782c2562d62ad20873330773c29be479934c238", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,221
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 <UIKit/UIToolbar.h> @class UIColor, UIView; @interface MTToolbar : UIToolbar { UIView *_separatorView; // 8 = 0x8 UIColor *_separatorCo...
36.2
20
(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 <UIKit/UIToolbar.h>\n\n@class UIColor, UIView;\n\n@interface MTToolbar : UIToolbar\n{\n UIView *_separatorView; // 8...
140
12
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 36.2, "nodes": 81, "errors": 0, "source_hash": "f3c62053d8a0597d5785be817d93986b9dd3bb7a8fd32455cd1a17d69406d5a1", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <U...
79,222
c
typedef int tipoItem; const int maxItens = 100; class fila{ private: int first, last; tipoItem *vet; public: fila(); ~fila(); bool isEmpty(); bool isFull(); void push(tipoItem item); tipoItem pop(); void print(); };
14.81
16
(translation_unit) "typedef int tipoItem;\nconst int maxItens = 100;\n\nclass fila{\n private:\n int first, last;\n tipoItem *vet;\n \n public:\n fila();\n ~fila();\n bool isEmpty();\n bool isFull();\n void push(tipoItem item);\n tipoItem pop();\n void print();\n};\n" (type_definition) "typede...
100
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 14.81, "nodes": 59, "errors": 0, "source_hash": "8119a58ff56284b2ce3cdc1c35a949c22da503b9b48d85abfba8e705bdc2c066", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "typede...
79,223
c
// // ModeShowView.h // acgn // // Created by Ares on 2018/3/13. // Copyright © 2018年 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @protocol ModeShowViewDelegate <NSObject> @optional - (void)clickModeShowButton:(id)sender; @end @interface ModeShowView : UIView @property (nonatomic, weak) id <ModeShowV...
33.58
24
(translation_unit) "//\n// ModeShowView.h\n// acgn\n//\n// Created by Ares on 2018/3/13.\n// Copyright © 2018年 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@protocol ModeShowViewDelegate <NSObject>\n@optional\n- (void)clickModeShowButton:(id)sender;\n@end\n\n@interface ModeShowView : UIView\n@prop...
235
31
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 33.58, "nodes": 159, "errors": 0, "source_hash": "10e6c6f8a0d2d031e5ead2be2da6c6df723f22958d466d28b26a114b3e0dcca8", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UI...
79,224
c
/* * Copyright (c) 2020 Raspberry Pi (Trading) Ltd. * * SPDX-License-Identifier: BSD-3-Clause */ #include "pico.h" #include "hardware/vreg.h" void vreg_set_voltage(enum vreg_voltage voltage) { hw_write_masked(&vreg_and_chip_reset_hw->vreg, voltage << VREG_AND_CHIP_RESET_VREG_VSEL_LSB, VREG_AND_CHIP_RESET_VREG...
32.3
10
(translation_unit) "/*\n * Copyright (c) 2020 Raspberry Pi (Trading) Ltd.\n *\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n#include "pico.h"\n#include "hardware/vreg.h"\n\nvoid vreg_set_voltage(enum vreg_voltage voltage) {\n hw_write_masked(&vreg_and_chip_reset_hw->vreg, voltage << VREG_AND_CHIP_RESET_VREG_VSEL...
49
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 32.3, "nodes": 28, "errors": 0, "source_hash": "2b0ed20e69324275582e49ee677c6c487095148466f733b06d281eef2e40052a", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
79,225
c
#ifndef LVGLFONTDATA_H #define LVGLFONTDATA_H #include <lvgl/lvgl.h> #include <QString> #include <QJsonObject> class LVGLFontData { public: LVGLFontData(const QString &name, const QString &codeName, uint8_t size, const lv_font_t *font); ~LVGLFontData(); static LVGLFontData *parse(const QString &fileName, uint8_t ...
27.34
29
(translation_unit) "#ifndef LVGLFONTDATA_H\n#define LVGLFONTDATA_H\n\n#include <lvgl/lvgl.h>\n#include <QString>\n#include <QJsonObject>\n\nclass LVGLFontData\n{\npublic:\n LVGLFontData(const QString &name, const QString &codeName, uint8_t size, const lv_font_t *font);\n ~LVGLFontData();\n\n static LVGLFontData *parse(...
231
10
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 27.34, "nodes": 135, "errors": 0, "source_hash": "cab7649578f802f75c4a0aee44431d3bdd9634149f4a364b16a996067837bc50", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,226
c
/* Copyright (c) 2019, MilanMijatov */ #include <stdlib.h> /* Standard linked list stack TODO: change to array based linked list stack */ struct stack { struct node *nxt; }; struct node { double a; struct node *nxt; }; int push(struct stack *stck, double a) { struct node *nxt = ma...
21.31
32
(translation_unit) "/* Copyright (c) 2019, MilanMijatov\n*/\n#include <stdlib.h>\n\n/* Standard linked list stack\n TODO: change to array based linked list stack */\n\nstruct stack {\n struct node *nxt;\n};\nstruct node {\n double a;\n struct node *nxt;\n};\n\nint push(struct stack *stck, double...
209
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 21.31, "nodes": 140, "errors": 0, "source_hash": "06d7b2546937c9923183e219a2afe8e874565c10f975f04309d3b0e22abe0721", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,227
c
// // TaoPPlStockSearchAPI.h // NewStock // // Created by 王迪 on 2017/3/7. // Copyright © 2017年 Willey. All rights reserved. // #import "APIRequest.h" @interface TaoPPlStockSearchAPI : APIRequest @property (nonatomic, copy) NSString *s; @property (nonatomic, strong) NSNumber *t; @property (nonatomic, strong) NSNu...
27.88
16
(translation_unit) "//\n// TaoPPlStockSearchAPI.h\n// NewStock\n//\n// Created by 王迪 on 2017/3/7.\n// Copyright © 2017年 Willey. All rights reserved.\n//\n\n#import "APIRequest.h"\n\n@interface TaoPPlStockSearchAPI : APIRequest\n\n@property (nonatomic, copy) NSString *s;\n@property (nonatomic, strong) NSNumber *t;\n...
126
26
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 27.88, "nodes": 92, "errors": 0, "source_hash": "ba21c721ac497e1d44428a3fddda33c791eeba95ccfcd829218934aa1e94ed35", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " \"APIReq...
79,228
c
#ifndef OMS_CONSUMER_INTERCEPTOR_H #define OMS_CONSUMER_INTERCEPTOR_H #include "smart_pointer.h" #include "Namespace.h" #include "Uncopyable.h" #include "Message.h" BEGIN_NAMESPACE_3(io, openmessaging, interceptor) /** * A {@code PushConsumerInterceptor} is used to intercept consume operations of push consu...
37.54
24
(translation_unit) "#ifndef OMS_CONSUMER_INTERCEPTOR_H\n#define OMS_CONSUMER_INTERCEPTOR_H\n\n#include "smart_pointer.h"\n#include "Namespace.h"\n#include "Uncopyable.h"\n#include "Message.h"\n\nBEGIN_NAMESPACE_3(io, openmessaging, interceptor)\n\n /**\n * A {@code PushConsumerInterceptor} is used to intercept c...
174
12
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 37.54, "nodes": 100, "errors": 0, "source_hash": "b4eac2478909eb386be36f0c4afde5eda14e2238548f133c3901887e2c18d608", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,229
c
/* * YMANativeAppInstallAd.h * * This file is a part of the Yandex Advertising Network. * * Version for iOS © 2016 YANDEX * * You may not use this file except in compliance with the License. * You may obtain a copy of the License at https://legal.yandex.com/partner_ch/ */ #import <Foundation/Foundation.h> #i...
37.17
35
(translation_unit) "/*\n * YMANativeAppInstallAd.h\n *\n * This file is a part of the Yandex Advertising Network.\n *\n * Version for iOS © 2016 YANDEX\n *\n * You may not use this file except in compliance with the License.\n * You may obtain a copy of the License at https://legal.yandex.com/partner_ch/\n */\n\n#impo...
81
13
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 37.17, "nodes": 57, "errors": 0, "source_hash": "243c0016b468d319564ec3ec099fd9ff2526e4ce6f5ee1c71271000df2275d7e", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
79,230
c
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROMEOS_COMPONENTS_SECURITY_TOKEN_PIN_CONSTANTS_H_ #define CHROMEOS_COMPONENTS_SECURITY_TOKEN_PIN_CONSTANTS_H_ // This header contains types rel...
33.81
32
(translation_unit) "// Copyright 2019 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef CHROMEOS_COMPONENTS_SECURITY_TOKEN_PIN_CONSTANTS_H_\n#define CHROMEOS_COMPONENTS_SECURITY_TOKEN_PIN_CONSTANTS_H_\n\n// Thi...
140
9
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 33.81, "nodes": 75, "errors": 0, "source_hash": "11ab318e867a7f510dd3811747366dd152efa3e11d426beb9512f412f0ca89f5", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef CHROMEOS...
79,231
c
/** BSD 3-Clause License This file is part of the code accompanying the paper Gradient-SDF: A Semi-Implicit Surface Representation for 3D Reconstruction by <NAME>*, <NAME>*, <NAME>, and <NAME> (* denotes equal contribution). Copyright (c) 2021, <NAME> and <NAME>. All rights reserved. Redistribution and use in source...
35.52
134
(translation_unit) "/**\nBSD 3-Clause License\n\nThis file is part of the code accompanying the paper\nGradient-SDF: A Semi-Implicit Surface Representation for 3D Reconstruction\nby <NAME>*, <NAME>*, <NAME>, and <NAME> (* denotes equal contribution).\n\nCopyright (c) 2021, <NAME> and <NAME>.\nAll rights reserved.\n\nRe...
1,115
36
{"language": "c", "success": true, "metadata": {"lines": 134, "avg_line_length": 35.52, "nodes": 710, "errors": 0, "source_hash": "e6402e1b0254d37c3c4a0cd8876a552a8e60045227d75c06f82aa1f825393c25", "categorized_nodes": 501}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
79,232
c
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:51:37 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/DataDetectorsUI.framework/DataDetectorsUI * classdump-dyld is licensed under GPLv3, Copyright © 2013...
33.71
28
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Sunday, September 27, 2020 at 11:51:37 AM Mountain Standard Time\n* Operating System: Version 14.0 (Build 18A373)\n* Image Source: /System/Library/PrivateFrameworks/DataDetectorsUI.framework/DataDetectorsUI\n* classdump-dyld is licensed unde...
225
6
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 33.71, "nodes": 116, "errors": 0, "source_hash": "88c9a87c5cd31c0138f46c2bb605c399fcfcaa0c21fbd52eecadeff8e27fdb45", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <...
79,233
c
/* MIT License Copyright (c) 2009 <NAME> This file is part of gmath. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, mo...
26.64
95
(translation_unit) "/*\nMIT License\n\nCopyright (c) 2009 <NAME>\n\nThis file is part of gmath.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitatio...
387
23
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 26.64, "nodes": 240, "errors": 0, "source_hash": "4b59e2504bcb0ff8dafdf088d19d64bc032056711c985b5740ab6326b7f7cedf", "categorized_nodes": 162}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,234
c
class JUCE_API rsMidiControllerModulatorModulePoly : public ModulatorModulePoly { public: rsMidiControllerModulatorModulePoly(CriticalSection* lockToUse, MetaParameterManager* metaManagerToUse = nullptr, ModulationManager* modManagerToUse = nullptr, rsVoiceManager* voiceManagerToUse = nullptr) : Mo...
40.62
74
(translation_unit) "class JUCE_API rsMidiControllerModulatorModulePoly : public ModulatorModulePoly\n{\n\npublic:\n\n rsMidiControllerModulatorModulePoly(CriticalSection* lockToUse,\n MetaParameterManager* metaManagerToUse = nullptr,\n ModulationManager* modManagerToUse = nullptr,\n rsVoiceManager* voiceManag...
220
4
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 40.62, "nodes": 130, "errors": 0, "source_hash": "abc3f45b8e38287d6c02b5b0853e5739c2a372d7c8fee82c4a7a59c10f2bed50", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "class JUC...
79,235
c
#pragma once //For use by hazel applications #include"Hazel/Application.h" #include "Hazel//Log.h" //---Entry Point------------- #include "Hazel/EntryPoint.h" //---------------------------
21.11
9
(translation_unit) "#pragma once \n \n//For use by hazel applications \n#include"Hazel/Application.h" \n#include "Hazel//Log.h" \n \n//---Entry Point------------- \n#include "Hazel/EntryPoint.h" \n//---------------------------" (preproc_call) "#pragma once \n" (preproc_directive) "#pragma" (preproc_arg) "once...
25
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 21.11, "nodes": 12, "errors": 0, "source_hash": "811c163ccdd7cf19e8bf70e4770eaace4e55b3360bdd8aa358d64dbe206663fe", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
79,236
c
/* UMSNH FIE Autor: <NAME> Compilacion: gcc -o holaMundo holaMundo.c Ejecucion: ./holaMundo */ #include <stdio.h> int main() { printf("Hola mundo"); return 0; }
11.33
15
(translation_unit) "/* \n UMSNH \n FIE \n Autor: <NAME> \n \n Compilacion: gcc -o holaMundo holaMundo.c \n Ejecucion: ./holaMundo \n*/ \n \n#include <stdio.h> \n \nint main() { \n printf("Hola mundo"); \n return 0; \n}" (comment) "/* \n UMSNH \n FIE \n Autor: <NAME> \n \n Compilacion: gcc -o holaMundo holaMundo.c \n ...
30
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 11.33, "nodes": 14, "errors": 0, "source_hash": "6b90aaefe109da8fce48c07c1ac4f23f7f9953d3a015766d494e939d739adb24", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
79,237
c
#include "../ClassHeader.h" TEST(PipeQueueTestAssignmentEqualTo, equal_true_empty) { PLS::PipeQueue<int> pipeA; PLS::PipeQueue<int> pipeB; ASSERT_NO_THROW(pipeA == pipeB); ASSERT_TRUE(pipeA == pipeB); ASSERT_TRUE(pipeB == pipeA); } TEST(PipeQueueTestAssignmentEqualTo, notEqual_false_empty) { ...
29.21
130
(ERROR) "#include "../ClassHeader.h"\n\n\nTEST(PipeQueueTestAssignmentEqualTo, equal_true_empty)\n{\n PLS::PipeQueue<int> pipeA;\n PLS::PipeQueue<int> pipeB;\n\n ASSERT_NO_THROW(pipeA == pipeB);\n ASSERT_TRUE(pipeA == pipeB);\n ASSERT_TRUE(pipeB == pipeA);\n}\n\n\nTEST(PipeQueueTestAssignmentEqualTo, not...
1,405
65
{"language": "c", "success": true, "metadata": {"lines": 130, "avg_line_length": 29.21, "nodes": 778, "errors": 0, "source_hash": "ed3df1d9d0c119b05745332c682f03bae49be70becc3d9641bb5cae67269e42d", "categorized_nodes": 553}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#include \"../ClassHeade...
79,238
c
// // Created by bbrabbit on 11/20/20. // #ifndef ZEST_ZEST_CFUNCTION_H #define ZEST_ZEST_CFUNCTION_H #include "zest_object.h" typedef int (*zest_CFunction)(zest_object*); #endif //ZEST_ZEST_CFUNCTION_H
24.38
8
(translation_unit) "//\n// Created by bbrabbit on 11/20/20.\n//\n\n#ifndef ZEST_ZEST_CFUNCTION_H\n#define ZEST_ZEST_CFUNCTION_H\n\n#include "zest_object.h"\n\ntypedef int (*zest_CFunction)(zest_object*);\n\n#endif //ZEST_ZEST_CFUNCTION_H\n" (comment) "//" (comment) "// Created by bbrabbit on 11/20/20." (comment) ...
36
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 24.38, "nodes": 23, "errors": 0, "source_hash": "742b3a76f4598e7b1b33e1994605b1d86f93ac1161bc002b701eec6bb84066c6", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef Z...
79,239
c
#pragma once #include "../UtilityDefinitions.h" #define SERIALIZED_VECTOR3(name) UEngine::VECTOR3 name{this, #name} #define SERIALIZED_VECTOR3_INIT(name, value) UEngine::VECTOR3 name{this, #name, value} namespace UEngine { struct Vector3 { float x{ 0 }; float y{ 0 }; float z{ 0 }; Vector3() = default; Ve...
30.5
113
(translation_unit) "#pragma once\n#include "../UtilityDefinitions.h"\n\n#define SERIALIZED_VECTOR3(name) UEngine::VECTOR3 name{this, #name}\n#define SERIALIZED_VECTOR3_INIT(name, value) UEngine::VECTOR3 name{this, #name, value}\n\nnamespace UEngine\n{\n struct Vector3\n {\n float x{ 0 };\n float y{ 0 };\n float z{ 0...
1,313
64
{"language": "c", "success": true, "metadata": {"lines": 113, "avg_line_length": 30.5, "nodes": 751, "errors": 0, "source_hash": "faf16ee60833a3636e92c5a01b52a97320950be109d1d059da949344f8f941bf", "categorized_nodes": 552}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
79,240
c
// // Copyright (c) Microsoft Corporation. All Rights Reserved // #pragma once #include <ntstatus.h> #define WIN32_NO_STATUS #include <windows.h> #include <devpkey.h> #include <devioctl.h> #include <verify.h>
20
10
(translation_unit) "//\n// Copyright (c) Microsoft Corporation. All Rights Reserved\n//\n\n#pragma once\n\n#include <ntstatus.h>\n#define WIN32_NO_STATUS\n\n#include <windows.h>\n#include <devpkey.h>\n#include <devioctl.h>\n\n#include <verify.h>\n" (comment) "//" (comment) "// Copyright (c) Microsoft Corporation. ...
25
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.0, "nodes": 21, "errors": 0, "source_hash": "c26c5bb81569c80701e021c3c36b800b92e4a27938b6bb24061156b25624a9e8", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
79,241
c
// // HitTestable.h // SimpleRayTracer // // Created by Sidharth on 12/13/17. // Copyright © 2017 whackylabs. All rights reserved. // #ifndef HitTestable_h #define HitTestable_h #include <array> #include <memory> #include <glm\glm.hpp> class Intersection; class Ray; class AABB; class HitTestable { public: vi...
24.1
21
(translation_unit) "//\n// HitTestable.h\n// SimpleRayTracer\n//\n// Created by Sidharth on 12/13/17.\n// Copyright © 2017 whackylabs. All rights reserved.\n//\n\n#ifndef HitTestable_h\n#define HitTestable_h\n#include <array>\n#include <memory>\n#include <glm\glm.hpp>\n\nclass Intersection;\nclass Ray;\nclass AABB;...
117
6
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 24.1, "nodes": 80, "errors": 0, "source_hash": "6c11a1e87b452c7c2c9b8c99c87c8246b20496c7a989815aea5d4926fa23e1c8", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef Hi...
79,242
c
#ifndef OUT_SHARED_FOCUS_H #define OUT_SHARED_FOCUS_H #include "HOI4World/SharedFocus.h" #include <ostream> namespace HoI4 { std::ostream& operator<<(std::ostream& output, const SharedFocus& focus); } #endif // OUT_SHARED_FOCUS_H
18.42
12
(translation_unit) "#ifndef OUT_SHARED_FOCUS_H\n#define OUT_SHARED_FOCUS_H\n\n\n\n#include "HOI4World/SharedFocus.h"\n#include <ostream>\n\n\n\nnamespace HoI4\n{\n\nstd::ostream& operator<<(std::ostream& output, const SharedFocus& focus);\n\n}\n\n\n\n#endif // OUT_SHARED_FOCUS_H" (preproc_ifdef) "#ifndef OUT_SHARED_F...
56
3
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 18.42, "nodes": 33, "errors": 0, "source_hash": "92fa01b4f33820e1adf745598b8ae702dddfb2f22921d70324f23fc3d083a6cf", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,243
c
#ifndef UTILS_H #define UTILS_H #include <stdio.h> #include <stdlib.h> #define TO_STR(X) #X #define STR(X) TO_STR(X) #define MAX(A, B) ((A) > (B) ? (A) : (B)) #define MIN(A, B) ((A) > (B) ? (B) : (A)) #define ELEMS(X) (sizeof((X)) / sizeof((X)[0])) #define ARR_ELEM(A, E) ((E) >= 0 && (size_t)(E) < ELEMS((A))) #def...
30.04
57
(translation_unit) "#ifndef UTILS_H\n#define UTILS_H\n\n#include <stdio.h>\n#include <stdlib.h>\n\n#define TO_STR(X) #X\n#define STR(X) TO_STR(X)\n\n#define MAX(A, B) ((A) > (B) ? (A) : (B))\n#define MIN(A, B) ((A) > (B) ? (B) : (A))\n\n#define ELEMS(X) (sizeof((X)) / sizeof((X)[0]))\n#define ARR_ELEM(A, E) ((E) >= 0 &...
496
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 30.04, "nodes": 353, "errors": 0, "source_hash": "d11f8690df7f17f783908d2ab7eb4171f74c501f744237be8619b2ff416ed089", "categorized_nodes": 185}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,244
c
/* * OLEFONT test program * * Copyright 2003 <NAME> * * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version...
33.07
56
(translation_unit) "/*\n * OLEFONT test program\n *\n * Copyright 2003 <NAME>\n *\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at y...
287
2
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 33.07, "nodes": 188, "errors": 0, "source_hash": "1b4ee3beb9ee37be8bc5e6a419fadb2f298f8ced3c958fd715eea79d81983810", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,245
c
/* SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include <tilck/kernel/fs/vfs_base.h> #include <tilck/kernel/sys_types.h> #include <tilck/kernel/list.h> typedef int (*func_create_per_handle_extra)(int minor, void *extra); typedef int (*func_on_dup_per_handle_extra)(int minor, void *extra); typedef void (*fun...
34.79
58
(translation_unit) "/* SPDX-License-Identifier: BSD-2-Clause */\n\n#pragma once\n#include <tilck/kernel/fs/vfs_base.h>\n#include <tilck/kernel/sys_types.h>\n#include <tilck/kernel/list.h>\n\ntypedef int (*func_create_per_handle_extra)(int minor, void *extra);\ntypedef int (*func_on_dup_per_handle_extra)(int minor, void...
447
0
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 34.79, "nodes": 318, "errors": 0, "source_hash": "8fe4e4d8464a6f249e7520761e50d60a3a0ca8ba7a5e9c44690cf753b85786e1", "categorized_nodes": 212}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
79,246
c
/* * Standard I/O Library Internals * Open file */ #include <stdio.h> #define CRMODE 0666 /* default access permissions on create */ FILE * _fopen(name, type, fp, fd) char *name, *type; register FILE *fp; register int fd; { extern int _fginit(); extern int _fpinit(); register int mode = 1; int truncate = 0, ...
17.63
59
(translation_unit) "/*\n * Standard I/O Library Internals\n * Open file\n */\n\n#include <stdio.h>\n\n#define CRMODE 0666 /* default access permissions on create */\n\nFILE *\n_fopen(name, type, fp, fd)\nchar *name,\n *type;\nregister FILE *fp;\nregister int fd;\n{\n extern int _fginit();\n extern int _fpinit();\n regi...
534
1
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 17.63, "nodes": 365, "errors": 0, "source_hash": "2fce19db94e64a9b861b85e01fd85eb5ecc4e1786d930b31c1e6d7526946d412", "categorized_nodes": 231}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,247
c
#include "types.h" #include "param.h" #include "memlayout.h" #include "riscv.h" #include "spinlock.h" #include "proc.h" #include "defs.h" #include "jail.h" struct jail jail[NJAIL]; int jailcfg(int jid, uint64 memlim, uint64 disklim, uint64 proclim) { if (myproc()->jail != 0) { // proc is in jail return -1; }...
23.11
61
(translation_unit) "#include "types.h"\n#include "param.h"\n#include "memlayout.h"\n#include "riscv.h"\n#include "spinlock.h"\n#include "proc.h"\n#include "defs.h"\n#include "jail.h"\n\nstruct jail jail[NJAIL];\n\nint\njailcfg(int jid, uint64 memlim, uint64 disklim, uint64 proclim) {\n if (myproc()->jail != 0) { // pr...
628
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 23.11, "nodes": 378, "errors": 0, "source_hash": "26fc8fb2aec339ffa47af3d5017144894d0de9340d9bb69d57feb50e34d95dee", "categorized_nodes": 300}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,248
c
// // GMRoomMacroModel.h // SuperGome // // Created by chenyh on 2019/1/29. // Copyright © 2019 Gome. All rights reserved. // #import <Foundation/Foundation.h> //获取房间列表 #define kRoomListUrl @"/v4/app/room/list" //查询家庭下的房间数量 #define kRoomCountUrl @"/v4/app/room/countRoomsByHouseId" //添加房间 #define kAddRoomUrl @"/v4/...
31.21
48
(translation_unit) "//\n// GMRoomMacroModel.h\n// SuperGome\n//\n// Created by chenyh on 2019/1/29.\n// Copyright © 2019 Gome. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n//获取房间列表\n#define kRoomListUrl @"/v4/app/room/list"\n//查询家庭下的房间数量\n#define kRoomCountUrl @"/v4/app/room/countRoomsByHouseId"\n...
114
3
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 31.21, "nodes": 85, "errors": 0, "source_hash": "9093540660f80b15130fa4eda884ed0ab07eeb0261e2d074df339ebd93dd6030", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
79,249
c
// // EntitiesBackupHandler.h // domain-server/src // // Created by <NAME> on 2/14/18. // Copyright 2018 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #ifndef hifi_EntitiesBackupHandler_h #de...
41.82
34
(translation_unit) "//\n// EntitiesBackupHandler.h\n// domain-server/src\n//\n// Created by <NAME> on 2/14/18.\n// Copyright 2018 High Fidelity, Inc.\n//\n// Distributed under the Apache License, Version 2.0.\n// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html\n//\n\n#ifndef h...
288
21
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 41.82, "nodes": 146, "errors": 0, "source_hash": "c4748c6457b22671f8b1d0e9e3009fa060302abd2f0d05cd8153b2b7062fb8dd", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,250
c
// // MWViewController.h // MWDatePicker // // Created by Marcus on 08.05.13. // Copyright (c) 2013 mw<EMAIL>. All rights reserved. // #import <UIKit/UIKit.h> #import "MWDatePicker.h" @interface MWViewController : UIViewController < MWPickerDelegate> @end
22.64
11
(translation_unit) "//\n// MWViewController.h\n// MWDatePicker\n//\n// Created by Marcus on 08.05.13.\n// Copyright (c) 2013 mw<EMAIL>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "MWDatePicker.h"\n\n@interface MWViewController : UIViewController < MWPickerDelegate>\n\n@end\n" (comment) "//" (c...
25
3
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 22.64, "nodes": 15, "errors": 0, "source_hash": "32675728ded5f4863be134be0ba8530227b14444f290ba4e5ded27cbbe0ed3ab", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <U...
79,251
c
#include <stdio.h> #include <stdlib.h> #include "debug.h" struct entry{ int value; //Data struct entry *next; //Pointer of type struct entry struct entry *prev; }; struct entry* add(struct entry*); struct entry* add(struct entry* last){ struct entry *p = malloc(sizeof(struct entry)); p->next = NUL...
20.82
33
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\n#include "debug.h"\n\nstruct entry{\n int value; //Data\n struct entry *next; //Pointer of type struct entry\n struct entry *prev;\n};\nstruct entry* add(struct entry*);\nstruct entry* add(struct entry* last){\n struct entry *p = malloc(sizeof(s...
315
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 20.82, "nodes": 203, "errors": 0, "source_hash": "306098820782c623862b9384204d971e446b6a1cde40423be00d1ee87a8d8f3b", "categorized_nodes": 153}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,252
c
// // AXMutableObserveProtocol.h // AXCollectionObserve // // Created by 小星星吃KFC on 2021/6/16. // #import <Foundation/Foundation.h> #import <ReactiveObjC/RACSignal.h> NS_ASSUME_NONNULL_BEGIN @protocol AXMutableObserveProtocol <NSObject> @required /// 值变化监听 /// @param handler 回调 -(void)ax_valueChangeObserve:(void...
26.14
21
(translation_unit) "//\n// AXMutableObserveProtocol.h\n// AXCollectionObserve\n//\n// Created by 小星星吃KFC on 2021/6/16.\n//\n\n#import <Foundation/Foundation.h>\n#import <ReactiveObjC/RACSignal.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@protocol AXMutableObserveProtocol <NSObject>\n\n@required\n/// 值变化监听\n/// @param handler 回...
108
13
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 26.14, "nodes": 71, "errors": 0, "source_hash": "1b544beacc264d6f48a58da8918f9fe32e2ff2defb4aaba68eabf82c6a5c3d15", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "<Foundati...
79,253
c
#ifndef _TOTIENT_H_ #define _TOTIENT_H_ /* * Calculates phi(n) using a recursive approach based on properties of phi(n) * * We require a primes[] containing all of the primes upto sqrt(n) * * if phi_cache is provided then we will set phi_cache[n] before returning * * n - number we want to calculate p...
37.77
26
(translation_unit) "#ifndef _TOTIENT_H_\n#define _TOTIENT_H_\n\n/*\n * Calculates phi(n) using a recursive approach based on properties of phi(n)\n *\n * We require a primes[] containing all of the primes upto sqrt(n)\n *\n * if phi_cache is provided then we will set phi_cache[n] before returning\n *\n * n -...
58
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 37.77, "nodes": 42, "errors": 0, "source_hash": "6c954711bcbaf784a644fa30acfa266c12a5ac86716ae2d7361aa6a7a1ec26ae", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,254
c
#include <stdio.h> int main() { while(1) { printf("请输入整形数据\n"); int a=0; scanf("%d",&a); printf("hello world %d\n",a); } return 0; }
8.76
17
(translation_unit) "nclude <stdio.h> \n \nint main() \n{ \n \n \n while(1) \n { \n \n printf("请输入整形数据\n"); \n int a=0; \n scanf("%d",&a); \n \n printf("hello world %d\n",a); \n } \n return 0; \n}" (preproc_include) "nclude <stdio.h> \n \n" (#include) "nclude <" (system_lib_string) "tdio.h> \n" (function_...
75
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 8.76, "nodes": 34, "errors": 0, "source_hash": "bb111929eeeb5c3c856c319911bcd723f0f3c6158f3c39e1fb6d55ca4b31c851", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "nclude ...
79,255
c
// // BGASaveTool.h // Lottery // // Created by bingoogol on 15/4/29. // Copyright (c) 2015年 bingoogolapple. All rights reserved. // #import <Foundation/Foundation.h> @interface BGASaveTool : NSObject + (void)setObject:(id)value forKey:(NSString *)defaultName; + (id)objectForKey:(NSString *)defaultName; @end
25.17
12
(translation_unit) "//\n// BGASaveTool.h\n// Lottery\n//\n// Created by bingoogol on 15/4/29.\n// Copyright (c) 2015年 bingoogolapple. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface BGASaveTool : NSObject\n\n+ (void)setObject:(id)value forKey:(NSString *)defaultName;\n\n+ (id)objectForKe...
67
7
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 25.17, "nodes": 39, "errors": 0, "source_hash": "e54f8a91159d546a8d56faf4b3ebdabec9304009f7a17e6695286d74f2e77290", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <Fo...
79,256
c
// BrokerException.h #pragma once #include <sstream> class BrokerException { public: BrokerException(const char* table, const char* operation, const char* errmsg) { std::string err(errmsg); std::ostringstream os; os << table << "\n" << operation << "\n" << err.c_str() << std::ends; msg = os.str(...
21
20
(translation_unit) "// BrokerException.h \n \n#pragma once \n \n#include <sstream> \n \nclass BrokerException { \npublic: \n BrokerException(const char* table, const char* operation, const char* errmsg) { \n std::string err(errmsg); \n std::ostringstream os; \n os << table << "\n" << operation << "\n" << err.c_str()...
161
8
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 21.0, "nodes": 93, "errors": 0, "source_hash": "b3193b84d3c257bf1252351dcab8ed6128fb9105be5872a9e57076937d070f69", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
79,257
c
#include <string.h> #include <ctype.h> #include <stdbool.h> #include "string_op.h" unsigned int str_sw(const char* lString, const char* rString) { unsigned int i; char lc, rc; for (i = 0; lString[i] != '\0'; i++) { lc = lString[i]; rc = rString[i]; if (rc == '\0') return 0; if (lc != rc) return i + ...
16.64
227
(translation_unit) "#include <string.h>\n#include <ctype.h>\n#include <stdbool.h>\n#include "string_op.h"\n\n\nunsigned int str_sw(const char* lString, const char* rString)\n{\n unsigned int i;\n char lc, rc;\n for (i = 0; lString[i] != '\0'; i++)\n {\n lc = lString[i];\n rc = rString[i];\n if (rc == '\0')\n retur...
1,808
0
{"language": "c", "success": true, "metadata": {"lines": 227, "avg_line_length": 16.64, "nodes": 1155, "errors": 0, "source_hash": "910087ad705fd611121f295a67a2a3b80ecfd8527c841e2e6744bb0ea860950f", "categorized_nodes": 762}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
79,258
c
/* * Copyright 2015 <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 w...
23.72
75
(translation_unit) "/*\n * Copyright 2015 <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 app...
420
0
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 23.72, "nodes": 266, "errors": 0, "source_hash": "037a8d96074da94229c829e05396dd28a5da2b6a4552334000e3b0b59f3a68a1", "categorized_nodes": 192}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,259
c
#include <ssm_ref.h> ssm_tx ssm_putv(ssm_id id, ssm_Haddr addr, struct iovec *iovs, int len, ssm_bits bits, ssm_cb cb, ssm_Fop flags) { return ssm_put(id, addr, ssm_iovs_mr(iovs, len), NULL, bits, cb, flags); }
41.6
5
(translation_unit) "#include <ssm_ref.h>\n\nssm_tx ssm_putv(ssm_id id, ssm_Haddr addr, struct iovec *iovs, int len, ssm_bits bits, ssm_cb cb, ssm_Fop flags)\n{\n return ssm_put(id, addr, ssm_iovs_mr(iovs, len), NULL, bits, cb, flags);\n}\n" (preproc_include) "#include <ssm_ref.h>\n" (#include) "#include" (sy...
74
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 41.6, "nodes": 49, "errors": 0, "source_hash": "2772aa2af9ea7276212c8f131070564cf064f15e7883b452248dd673b2224761", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
79,260
c
#pragma once #include <array> #include <stdint.h> #include <string> namespace gizmesh { struct GizmoSystem { struct gizmo_system_impl *m_impl = nullptr; GizmoSystem(); ~GizmoSystem(); // Clear geometry buffer and update internal `GizmoFrameState` data void begin(const std::array<float, 3> &camera_position...
34.53
38
(translation_unit) "#pragma once\n#include <array>\n#include <stdint.h>\n#include <string>\n\nnamespace gizmesh {\n\nstruct GizmoSystem {\n struct gizmo_system_impl *m_impl = nullptr;\n\n GizmoSystem();\n ~GizmoSystem();\n\n // Clear geometry buffer and update internal `GizmoFrameState` data\n void begin(const std...
379
25
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 34.53, "nodes": 228, "errors": 0, "source_hash": "0f4cb23702caf0b690d13adc6f9b8b1133d488302d738fe03c991480a83fbf8e", "categorized_nodes": 159}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
79,261
c
// license:BSD-3-Clause // copyright-holders:<NAME> /********************************************************************** Nintendo Family Computer & Entertainment System controller port emulation ********************************************************************** Known Issues: - Currently the FC...
37.83
78
(translation_unit) "// license:BSD-3-Clause\n// copyright-holders:<NAME>\n/**********************************************************************\n\n Nintendo Family Computer & Entertainment System controller port\n emulation\n\n**********************************************************************\n\n Known I...
574
32
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 37.83, "nodes": 346, "errors": 0, "source_hash": "ff238a7c564f90f48a82e78101d2278cf51eee2347e6ddd28429dccb27a2dbef", "categorized_nodes": 247}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,262
c
// // ViewController.h // CYCacheDemo // // Created by 成焱 on 2019/9/18. // Copyright © 2019 cheng.yan. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
17.73
11
(translation_unit) "//\n// ViewController.h\n// CYCacheDemo\n//\n// Created by 成焱 on 2019/9/18.\n// Copyright © 2019 cheng.yan. 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) "// CYCa...
22
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 17.73, "nodes": 12, "errors": 0, "source_hash": "23bf10546a8ad8ec0f14ed41ef7055476910bbff3277af34f256470cbcaef969", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "rt <UIKit/...
79,263
c
#ifdef __cplusplus #define EXTERNC extern "C" #include "cpucounters.h" #include "utils.h" #include "profile.h" #include "rtm.h" #include <iostream> #include <iomanip> #include <string.h> #include <assert.h> #include <unistd.h> #include <pthread.h> #else #define EXTERNC #endif /...
31.21
98
(translation_unit) "#ifdef __cplusplus\n#define EXTERNC extern "C"\n #include "cpucounters.h"\n #include "utils.h"\n #include "profile.h"\n #include "rtm.h"\n\n #include <iostream>\n #include <iomanip>\n #include <string.h>\n #include <assert.h>\n #include <unistd.h>\n #include <pthread.h>...
780
10
{"language": "c", "success": true, "metadata": {"lines": 98, "avg_line_length": 31.21, "nodes": 499, "errors": 0, "source_hash": "72787b73e56426d0b54951a67729520eb781ccf01a3e94d7dab4669bd191990c", "categorized_nodes": 363}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef...
79,264
c
#include "../matrix.h" int main(int argc, char const *argv[]) { if (argc != 4) { printf("Wrong number of arguments."); exit(EXIT_FAILURE); } double start, end; start = clock(); matrix m1 = read_matrix(argv[1]); matrix m2 = read_matrix(argv[2]); end = clock(); printf("...
27.48
21
(translation_unit) "#include "../matrix.h"\n\nint main(int argc, char const *argv[])\n{\n if (argc != 4) {\n printf("Wrong number of arguments.");\n exit(EXIT_FAILURE);\n }\n double start, end;\n\n start = clock();\n\n matrix m1 = read_matrix(argv[1]);\n matrix m2 = read_matrix(argv[2]);...
237
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 27.48, "nodes": 131, "errors": 0, "source_hash": "dd0ff9915b9ecd5bcf583d89123634bb0946366932ff0ba875674a7a85698c8c", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
79,265
c
// // VideoStatusBar.h // DiscoverMelody // // Created by xiaodw on 2018/1/25. // Copyright © 2018年 Beijing Discover Melody co., ltd. All rights reserved. // #import <Cocoa/Cocoa.h> @interface VideoStatusBar : NSControl -(void)startCountBegin:(double)begin Red:(double)red Warning:(double)warn End:(double)end; -(v...
29.93
14
(translation_unit) "//\n// VideoStatusBar.h\n// DiscoverMelody\n//\n// Created by xiaodw on 2018/1/25.\n// Copyright © 2018年 Beijing Discover Melody co., ltd. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n\n@interface VideoStatusBar : NSControl\n-(void)startCountBegin:(double)begin Red:(double)red Warning:(d...
120
8
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 29.93, "nodes": 68, "errors": 0, "source_hash": "1bb6d9ccb4f4a56abcaac7cc473d45479b08dd467ef608819c5f36cc58d7bce0", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Coc...
79,266
c
#pragma once #include "types.h" #include "sead/heap.h" #include "TeamColorMgr.h" namespace Cmn { class GfxSetting { public: static Cmn::GfxSetting* sInstance; u64 mUnk; sead::IDisposer mDisposer; Cmn::TeamColorMgr* mTeamColorMgr; void load(); void updateIn...
21.35
17
(translation_unit) "#pragma once\n\n#include "types.h"\n#include "sead/heap.h"\n#include "TeamColorMgr.h"\n\nnamespace Cmn\n{\n class GfxSetting {\n public:\n static Cmn::GfxSetting* sInstance;\n\n u64 mUnk;\n sead::IDisposer mDisposer;\n Cmn::TeamColorMgr* mTeamColorMgr;\n\n ...
103
4
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 21.35, "nodes": 59, "errors": 0, "source_hash": "88a68ee3e204280100e40c45ef9057c8518f72eaa4b812a6808a2b8332e0b5ff", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
79,267
c
#ifndef HAIL_TRANSFORMS_PASSDETAIL_H #define HAIL_TRANSFORMS_PASSDETAIL_H #include "mlir/Pass/Pass.h" #define GEN_PASS_CLASSES #include "Transforms/Passes.h.inc" #endif //HAIL_TRANSFORMS_PASSDETAIL_H
32.33
6
(translation_unit) "#ifndef HAIL_TRANSFORMS_PASSDETAIL_H\n#define HAIL_TRANSFORMS_PASSDETAIL_H\n\n#include "mlir/Pass/Pass.h"\n\n#define GEN_PASS_CLASSES\n#include "Transforms/Passes.h.inc"\n\n#endif //HAIL_TRANSFORMS_PASSDETAIL_H\n" (preproc_ifdef) "#ifndef HAIL_TRANSFORMS_PASSDETAIL_H\n#define HAIL_TRANSFORMS_PASSD...
24
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 32.33, "nodes": 16, "errors": 0, "source_hash": "8ce942abb415eda00d704e1a79e347ddaa6497d29d556a03cdfd878b617954ef", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef H...
79,268
c
#ifndef WRAPPER_H_INCLUDED #define WRAPPER_H_INCLUDED #include"function.h" int function_wrapper_init (function_list_t *function_list); void motor_wrapp (list_t *arg); void stop_wrapp (list_t *arg); #endif // WRAPPER_H_INCLUDED
31.57
7
(translation_unit) "#ifndef WRAPPER_H_INCLUDED\n#define WRAPPER_H_INCLUDED\n\n#include"function.h"\n\nint function_wrapper_init (function_list_t *function_list);\n\nvoid motor_wrapp (list_t *arg);\nvoid stop_wrapp (list_t *arg);\n\n#endif // WRAPPER_H_INCLUDED\n" (preproc_ifdef) "#ifndef WRAPPER_H_INCLUDED\n#define ...
54
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 31.57, "nodes": 40, "errors": 0, "source_hash": "58847de6b412b4bffe59a55be11d4e03ab7087d2623fab3026b7ee278d49ed13", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef W...
79,269
c
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. /** * Here are a number of profiling helper functions so we do not have to duplicate a lot of the glue * code everywhere. And we can have consistent naming for all our files. * */ #pragma once #include "CoreTypes.h" #include "Misc/AssertionMacros.h" #...
31.74
174
(translation_unit) "// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.\n\n/**\n * Here are a number of profiling helper functions so we do not have to duplicate a lot of the glue\n * code everywhere. And we can have consistent naming for all our files.\n *\n */\n\n#pragma once\n\n#include "CoreTypes.h"\n#inc...
971
35
{"language": "c", "success": true, "metadata": {"lines": 174, "avg_line_length": 31.74, "nodes": 563, "errors": 0, "source_hash": "76ae92b7d95a60941b1dca854e7d11526574ac784a583a8bf4663681d60c0818", "categorized_nodes": 404}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
79,270
c
#ifdef __OBJC__ #import <UIKit/UIKit.h> #endif FOUNDATION_EXPORT double Pods_TwitTestsVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_TwitTestsVersionString[];
27.5
6
(translation_unit) "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#endif\n\n\nFOUNDATION_EXPORT double Pods_TwitTestsVersionNumber;\nFOUNDATION_EXPORT const unsigned char Pods_TwitTestsVersionString[];\n\n" (preproc_ifdef) "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#endif" (#ifdef) "#ifdef" (identifier) "__OBJC__...
27
1
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 27.5, "nodes": 19, "errors": 0, "source_hash": "795a50458d9c3f9516bcece8f8d999e2648755779c2f0f3e1cdeab74499cdb15", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef __O...
79,271
c
#include <stdio.h> #include <stdlib.h> #include "header.h" int **citireV(int **v) { puts("introduceti o matrice de 2/2"); int i,j; v=(int**)malloc(SIZE*sizeof(int)); for(i=0;i<SIZE;++i) { v[i]=(int*)malloc(SIZE*sizeof(int)); } for(i=0;i<SIZE;++i) { for(j=0;j<SIZE;++j) { scanf("%d",&v[i][j]); } } r...
11.75
53
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include "header.h"\n\nint **citireV(int **v)\n{\n puts("introduceti o matrice de 2/2");\n int i,j;\n v=(int**)malloc(SIZE*sizeof(int));\n for(i=0;i<SIZE;++i)\n {\n v[i]=(int*)malloc(SIZE*sizeof(int));\n }\n for(i=0;i<SIZE;++i)\n {\n for(j=0;j<SIZE;++j)\n ...
427
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 11.75, "nodes": 248, "errors": 0, "source_hash": "4bebde700751d94e80ba809276411775405661bb7ebe79d78bd25c0c84e24b10", "categorized_nodes": 166}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,272
c
/* { dg-do compile } */ /* { dg-options "-std=gnu90 -Wc90-c99-compat" } */ __extension__ _Bool b; __extension__ _Complex double c = __builtin_complex (0.0, 0.0); __extension__ long long l; __extension__ struct A { int i; char a[]; }; __extension__ struct { long int b: 2; } s; __extension__ const const int i; __extensi...
25.64
25
(translation_unit) "/* { dg-do compile } */\n/* { dg-options "-std=gnu90 -Wc90-c99-compat" } */\n\n__extension__ _Bool b;\n__extension__ _Complex double c = __builtin_complex (0.0, 0.0);\n__extension__ long long l;\n__extension__ struct A { int i; char a[]; };\n__extension__ struct { long int b: 2; } s;\n__extension__ ...
262
1
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 25.64, "nodes": 177, "errors": 0, "source_hash": "5bf2b74b43fd5a7303139a11307bc2b0f6ef2da2bfc7c33bf2815614bb93716c", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "__extens...
79,273
c
// // HLAVImagePickerController.h // HLImagePickerExample // // Created by LHL on 2017/12/19. // #import <UIKit/UIKit.h> typedef void(^HLAVImagePickerBlock)(NSData *imageData ,UIImage *image); @interface HLAVImagePickerController : UIViewController @property (nonatomic, copy) HLAVImagePickerBlock imagePickerBloc...
28.45
11
(translation_unit) "//\n// HLAVImagePickerController.h\n// HLImagePickerExample\n//\n// Created by LHL on 2017/12/19.\n//\n\n#import <UIKit/UIKit.h>\n\ntypedef void(^HLAVImagePickerBlock)(NSData *imageData ,UIImage *image);\n\n@interface HLAVImagePickerController : UIViewController\n\n@property (nonatomic, copy) HLA...
58
7
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 28.45, "nodes": 39, "errors": 0, "source_hash": "e4a2739a31d9347030840989abd5ed6cca35bebfe57abd56cf41772143bdf6a3", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
79,274
c
/* Copyright 2018 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
29.57
88
(translation_unit) "/*\nCopyright 2018 Google LLC\n\nLicensed under the Apache License, Version 2.0 (the "License");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agree...
800
0
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 29.57, "nodes": 508, "errors": 0, "source_hash": "5237c1bc44232ca393f2bed3ddf6a4b4a22d8d65fbf7f6aa82521d2be12164e8", "categorized_nodes": 375}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ...
79,275
c
// Copyright 2019 DeepMind Technologies Ltd. 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 require...
33
38
(translation_unit) "// Copyright 2019 DeepMind Technologies Ltd. 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/LICENS...
191
10
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 33.0, "nodes": 107, "errors": 0, "source_hash": "1c7381d884f842dc2409b1af71b4d660bc159f0d677f0f5c58cd970923e139b5", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,276
c
// // DMUserCenterModule.h // DMAnimation // // Created by 张炯 on 2017/8/30. // Copyright © 2017年 张炯. All rights reserved. // #import <Foundation/Foundation.h> #import "DMApplicationDelegate.h" @interface DMUserCenterModule : NSObject<DMApplicationDelegate> @end
23.18
11
(translation_unit) "//\n// DMUserCenterModule.h\n// DMAnimation\n//\n// Created by 张炯 on 2017/8/30.\n// Copyright © 2017年 张炯. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "DMApplicationDelegate.h"\n\n@interface DMUserCenterModule : NSObject<DMApplicationDelegate>\n\n@end\n" (comment) "//...
28
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 23.18, "nodes": 18, "errors": 0, "source_hash": "52f6216ad6b7a706be2bf13aa01099d027d9e10e8999c5dca1e373e3f3d58047", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "undation/F...
79,277
c
#ifndef _INF_INT_H_ #define _INF_INT_H_ #include <iostream> using namespace std; class inf_int { private: char* digits; unsigned int length; bool thesign; // true if positive , false if negative. // ex) 15311111111111111 -> digits="11111111111111351", length=17, thesign=true; // ex) -12345555555555 ...
32.64
39
(translation_unit) "#ifndef _INF_INT_H_ \n#define _INF_INT_H_ \n \n#include <iostream> \nusing namespace std; \nclass inf_int \n{ \nprivate: \n char* digits; \n unsigned int length; \n bool thesign; // true if positive , false if negative. \n // ex) 15311111111111111 -> digits="11111111111111351", length=17, thesign=...
328
19
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 32.64, "nodes": 174, "errors": 0, "source_hash": "2c975726eedd749dcdb0a7632f0b9a5b386cea4b3fb7a06b7bc188f31ca95014", "categorized_nodes": 121}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
79,278
c
#ifndef LINALG_VECTOR_STDSTREAM_H_INCLUDED #define LINALG_VECTOR_STDSTREAM_H_INCLUDED #include <iostream> #include "vector.h" namespace LinAlg { // Interface // template<unsigned n, typename T> std::ostream& operator<<(std::ostream& a, const Vector<n, T>& b); template<unsigned n, typename T> std::istream& operator>...
33.9
21
(translation_unit) "#ifndef LINALG_VECTOR_STDSTREAM_H_INCLUDED\n#define LINALG_VECTOR_STDSTREAM_H_INCLUDED\n\n#include <iostream>\n#include "vector.h"\n\nnamespace LinAlg {\n\n// Interface //\n\ntemplate<unsigned n, typename T> std::ostream& operator<<(std::ostream& a, const Vector<n, T>& b);\ntemplate<unsigned n, type...
297
18
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 33.9, "nodes": 193, "errors": 0, "source_hash": "52cf67bae9b11828bc2347136dea873f8749f69063a5f443717d3671cb4bf985", "categorized_nodes": 148}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,279
c
#ifndef FTNOIR_FILTER_BASE_H #define FTNOIR_FILTER_BASE_H #include "ftnoir_filter_base_global.h" #include "ftnoir_tracker_base/ftnoir_tracker_base.h" #include <QString> #include <QList> #include <QFile> #include <QCoreApplication> #include <QMessageBox> #include <QSettings> struct IFilter { virtual ...
23.48
29
(translation_unit) "#ifndef FTNOIR_FILTER_BASE_H \n#define FTNOIR_FILTER_BASE_H \n \n#include "ftnoir_filter_base_global.h" \n#include "ftnoir_tracker_base/ftnoir_tracker_base.h" \n#include <QString> \n#include <QList> \n#include <QFile> \n#include <QCoreApplication> \n#include <QMessageBox> \n#include <QSettings> \n \...
161
11
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 23.48, "nodes": 116, "errors": 0, "source_hash": "7c936a1a6f8b9b5d2ab557fd7c3dff5180826d4f3c091c3f41291fff720b408e", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
79,280
c
/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkBloxPixel.h Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Insight Software Consortium. All rights reserved. See ITKCopyright.txt or http...
36.32
60
(translation_unit) "/*=========================================================================\n\n Program: Insight Segmentation & Registration Toolkit\n Module: itkBloxPixel.h\n Language: C++\n Date: $Date$\n Version: $Revision$\n\n Copyright (c) Insight Software Consortium. All rights reserved.\n ...
157
4
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 36.32, "nodes": 96, "errors": 0, "source_hash": "4fe541d89e37550e2c209087c09b97b7d0b12a4031399a4fce4dbe5079846861", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,281
c
// // KJDropDownMenuModel.h // KJMenuView // // Created by 杨科军 on 2019/2/25. // Copyright © 2019 杨科军. All rights reserved. // #import <Foundation/Foundation.h> #import "NSString+KJMenuSize.h" @interface KJDropDownMenuModel : NSObject // 行 @property (nonatomic, assign) NSInteger column; // 0 左边 1 右边 @property (n...
30.05
20
(translation_unit) "//\n// KJDropDownMenuModel.h\n// KJMenuView\n//\n// Created by 杨科军 on 2019/2/25.\n// Copyright © 2019 杨科军. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "NSString+KJMenuSize.h"\n\n@interface KJDropDownMenuModel : NSObject\n// 行\n@property (nonatomic, assign) NSInteger co...
121
20
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 30.05, "nodes": 77, "errors": 0, "source_hash": "ff3fbf5a8b5fa144857fe69d58e3dcb1a90e9a0188d27611b170b65e85bd04fb", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "dation/Fo...
79,282
c
/* Apache License 2.0 */ /* 文件:yd_tdes_cfb.c 作者:wzh 邮箱:<EMAIL> 简介:TDES算法模式CFB(Cipher Feedback)实现,详情参考《ANSI X9.52-1998》 版本:README.md定义 */ #include "yd_tdes_cfb.h" #include "yd_des_base.h" /* * TCFB-8位模式,加密(注:按字节加密,不用是8字节的倍数) * in: 待加密数据 * out:加密后数据 * key1:8字节密钥(注:只有三个密码不同时,才是三重DES) * k...
17.62
189
(translation_unit) "/* Apache License 2.0 */ \n \n/* \n 文件:yd_tdes_cfb.c \n 作者:wzh \n 邮箱:<EMAIL> \n 简介:TDES算法模式CFB(Cipher Feedback)实现,详情参考《ANSI X9.52-1998》 \n 版本:README.md定义 \n*/ \n \n#include "yd_tdes_cfb.h" \n#include "yd_des_base.h" \n \n \n/* \n * TCFB-8位模式,加密(注:按字节加密,不用是8字节的倍数) \n * in: 待加密数据 \n * out:加密后数据 \n * k...
1,008
0
{"language": "c", "success": true, "metadata": {"lines": 189, "avg_line_length": 17.62, "nodes": 583, "errors": 0, "source_hash": "841437a9cbb2eb7bf9f40fecd66b0886b5b2a4144b1f14cb9e0282ed55110ac0", "categorized_nodes": 414}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": " *\...
79,283
c
#ifndef SSU_LZSS_H_ #define SSU_LZSS_H_ /************************************************************************************** INCLUDE **************************************************************************************/ #include <stdint.h> #include <WiFiNINA.h> /*********************************************...
45.07
14
(translation_unit) "#ifndef SSU_LZSS_H_\n#define SSU_LZSS_H_\n\n/**************************************************************************************\n INCLUDE\n **************************************************************************************/\n\n#include <stdint.h>\n\n#include <WiFiNINA.h>\n\n/**************...
58
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 45.07, "nodes": 39, "errors": 0, "source_hash": "1bc762f4f4e4b1cc26fec1974262a1626e227ab242a3f12274e1faa664bcb03c", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,284
c
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the Apache 2.0 License. #pragma once #include "ccf/ds/logger.h" #include "ccf/version.h" #include "enclave/interface.h" #include <dlfcn.h> #include <filesystem> #ifdef CCHOST_SUPPORTS_SGX # include <ccf_u.h> # include <openenclave/bits/...
30.23
232
(translation_unit) "// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the Apache 2.0 License.\n#pragma once\n\n#include "ccf/ds/logger.h"\n#include "ccf/version.h"\n#include "enclave/interface.h"\n\n#include <dlfcn.h>\n#include <filesystem>\n\n#ifdef CCHOST_SUPPORTS_SGX\n# include <ccf_u....
1,380
49
{"language": "c", "success": true, "metadata": {"lines": 232, "avg_line_length": 30.23, "nodes": 782, "errors": 0, "source_hash": "b9e96c47ed89f240fbe17d7dbddbb1f11ddd5fe92cc83249ca8bbbe96c8b4c19", "categorized_nodes": 567}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
79,285
c
// // TB3DES.h // Turbo // // Created by Apple on 2018/3/10. // Copyright © 2018年 Apple. All rights reserved. // #import <Foundation/Foundation.h> @interface TB3DES : NSObject /** * 3DES 加密 * @param src 传入的明文 * @param key1 密钥1 * @param key2 密钥2 * @param key3 密钥3 * @return 加密后的密文 */ +(NSData *)encryp...
22.61
28
(translation_unit) "//\n// TB3DES.h\n// Turbo\n//\n// Created by Apple on 2018/3/10.\n// Copyright © 2018年 Apple. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface TB3DES : NSObject\n/**\n * 3DES 加密\n * @param src 传入的明文\n * @param key1 密钥1\n * @param key2 密钥2\n * @param key3 密钥3\n * ...
128
21
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 22.61, "nodes": 85, "errors": 0, "source_hash": "c625b15b5e770a08ebbf36b5d0a7c5a7e92257013b8a6fc2979bfe6b44c9a778", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
79,286
c
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. #pragma once #include <spectrum/Configuration.h> #include <spectrum/codecs/IDecompressor.h> #include <spectrum/core/Constants.h> #include...
37
81
(translation_unit) "// Copyright (c) Facebook, Inc. and its affiliates.\n//\n// This source code is licensed under the MIT license found in the\n// LICENSE file in the root directory of this source tree.\n\n#pragma once\n\n#include <spectrum/Configuration.h>\n#include <spectrum/codecs/IDecompressor.h>\n#include <spectr...
486
25
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 37.0, "nodes": 294, "errors": 0, "source_hash": "c93994fb5f684863331c25b2ef5cc06787b7f82aeec7fc33e441b72d9470ce6a", "categorized_nodes": 206}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
79,287
c
// GLShaderStorageBuffer.h // created on 2021/10/29 // author @zoloypzuo #pragma once #include "ZeloPrerequisites.h" #include "ZeloGLPrerequisites.h" #include "Core/RHI/Const/EAccessSpecifier.h" namespace Zelo { class GLShaderStorageBuffer { public: explicit GLShaderStorageBuffer(Core::RHI::EAccessSpecifier acce...
26.68
22
(translation_unit) "// GLShaderStorageBuffer.h\n// created on 2021/10/29\n// author @zoloypzuo\n#pragma once\n\n#include "ZeloPrerequisites.h"\n#include "ZeloGLPrerequisites.h"\n#include "Core/RHI/Const/EAccessSpecifier.h"\n\nnamespace Zelo {\nclass GLShaderStorageBuffer {\npublic:\n\n explicit GLShaderStorageBuffer...
141
6
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 26.68, "nodes": 80, "errors": 0, "source_hash": "b33a0e382695339ab42c47545936f55bc2f4fe522faecc629236b4c68a95b5b7", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
79,288
c
#ifndef _GSKE_FRAMEBUFFER_H_ #define _GSKE_FRAMEBUFFER_H_ #include "genesis.h" extern u8* GSKE_FrameBuffer; extern u16 GSKE_HLineOffsets[256]; void FB_init(); void FB_exit(); void FB_flip(); #endif
15.46
13
(translation_unit) "#ifndef _GSKE_FRAMEBUFFER_H_ \n#define _GSKE_FRAMEBUFFER_H_ \n \n#include "genesis.h" \n \nextern u8* GSKE_FrameBuffer; \nextern u16 GSKE_HLineOffsets[256]; \n \nvoid FB_init(); \nvoid FB_exit(); \nvoid FB_flip(); \n \n#endif \n" (preproc_ifdef) "#ifndef _GSKE_FRAMEBUFFER_H_ \n#define _GSKE_FRAMEB...
56
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 15.46, "nodes": 39, "errors": 0, "source_hash": "8b6cd8f50406b47e4cd185b64fa547d99a29c4e2f17abfaebc15bdd90988f494", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,289
c
// Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #pragma once #ifndef NDEBUG # include <cassert> #endif // NDEBUG #ifdef NDEBUG # define DEB...
36.42
24
(translation_unit) "// Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma\n// de Barcelona (UAB).\n//\n// This work is licensed under the terms of the MIT license.\n// For a copy, see <https://opensource.org/licenses/MIT>.\n\n#pragma once\n\n#ifndef NDEBUG\n# include <cassert>\n#endif // NDEBU...
101
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 36.42, "nodes": 74, "errors": 0, "source_hash": "7b102b880fe0ce0b7ba46ab74851881d9fee380e1692c69a09ea87e1a78d73e7", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
79,290
c
#pragma once namespace fm { class Time { public: static float dt; static float timeStamp; static float fixedTime; static float scale; }; }
14.45
11
(translation_unit) "#pragma once\n\nnamespace fm {\n \n class Time {\n public:\n static float dt;\n static float timeStamp;\n static float fixedTime;\n static float scale;\n };\n}" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (function_definition) ...
45
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 14.45, "nodes": 21, "errors": 0, "source_hash": "920f6077d41ab1a58aeaa835a90d23646a26f59e57730268cbc5b4b72ce8fd8d", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
79,291
c
#ifndef COMPONENTS_WEBSERVER_SRC_WEBSERVER_H_ #define COMPONENTS_WEBSERVER_SRC_WEBSERVER_H_ #include <string.h> #include <string> #include <iostream> #include <map> #include <memory> #include "esp_http_server.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/event_groups.h" #include "es...
26.15
26
(translation_unit) "#ifndef COMPONENTS_WEBSERVER_SRC_WEBSERVER_H_\n#define COMPONENTS_WEBSERVER_SRC_WEBSERVER_H_\n\n\n#include <string.h>\n#include <string>\n#include <iostream>\n#include <map>\n#include <memory>\n#include "esp_http_server.h"\n\n#include "freertos/FreeRTOS.h"\n#include "freertos/task.h"\n#include "free...
138
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 26.15, "nodes": 87, "errors": 0, "source_hash": "0474b26dbf2f2ef84a13031e2dd5ecfae49a19303ffa88f6525054f6596e6a23", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
79,292
c
/* Copyright (c) 2018 <NAME> (<EMAIL>). All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
33.33
203
(translation_unit) "/* Copyright (c) 2018 <NAME> (<EMAIL>). \n All rights reserved.\n\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are met:\n\n * Redistributions of source code must retain the above copyright notice, this\n ...
1,743
1
{"language": "c", "success": true, "metadata": {"lines": 203, "avg_line_length": 33.33, "nodes": 927, "errors": 0, "source_hash": "4d5f933ada0f358222f065e40dac9dad4a3a58de4b7f149a596877ee6a6cb8fb", "categorized_nodes": 678}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,293
c
// // uuid.h // xdag // // Created by <NAME> on 12/26/18. // Copyright © 2018 xrdavies. All rights reserved. // #ifndef uuid_h #define uuid_h #include <stdio.h> #define UUID4_LEN 37 #ifdef __cplusplus extern "C" { #endif extern int uuid(char *buf); #ifdef __cplusplus }; #endif #endif /* uuid_h */
14.95
19
(translation_unit) "//\n// uuid.h\n// xdag\n//\n// Created by <NAME> on 12/26/18.\n// Copyright © 2018 xrdavies. All rights reserved.\n//\n\n#ifndef uuid_h\n#define uuid_h\n\n#include <stdio.h>\n\n#define UUID4_LEN 37\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n extern int uuid(char *buf);\n#ifdef __cplusplus\n};\...
59
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 14.95, "nodes": 39, "errors": 0, "source_hash": "81ed2c8d780399f53496be162d9ac75664ab90c52b581ecd84b11d51f21f368a", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef u...
79,294
c
// // BlockTimer.h // TestProject // // Created by leilurong on 16/8/18. // Copyright © 2016年 leilurong. All rights reserved. // #import <Foundation/Foundation.h> #import <QuartzCore/QuartzCore.h> /** return:NO停止 repeatCount:block执行过的次数, timer:定时器对象 istimer:是否NSTimer */ typedef BOOL(^BlockTimerCallback)(NSInteger...
47.35
20
(translation_unit) "//\n// BlockTimer.h\n// TestProject\n//\n// Created by leilurong on 16/8/18.\n// Copyright © 2016年 leilurong. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <QuartzCore/QuartzCore.h>\n\n/** return:NO停止 repeatCount:block执行过的次数, timer:定时器对象 istimer:是否NSTimer */\ntypedef BOO...
201
18
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 47.35, "nodes": 124, "errors": 0, "source_hash": "4960ac651761a84d43dc0094207599813b61c6d6df7ab330b7de376a7272a4d5", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fo...
79,295
c
/* * args.c * * Licensed under MIT license * */ #include "args.h" #include "util.h" #include "text.h" #include <stdlib.h> #include <string.h> #include <stdio.h> int args_parse(struct args_s *args, const int argc, char **argv) { if (argc != 2) return (retstr(EXIT_FAILURE, ERR_ARGS, __FILE__, __LINE__)); ...
22.64
28
(translation_unit) "/*\n * args.c\n *\n * Licensed under MIT license\n *\n */\n\n#include "args.h"\n#include "util.h"\n#include "text.h"\n\n#include <stdlib.h>\n#include <string.h>\n#include <stdio.h>\n\nint args_parse(struct args_s *args, const int argc, char **argv)\n{\n if (argc != 2)\n return (retstr(EXIT_FAILU...
221
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 22.64, "nodes": 134, "errors": 0, "source_hash": "98dd0d40305add7466f2b3d7d0e8d2c10ef95b0f82223aeb6ead7f9e50594ae2", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
79,296
c
/* * File: all_native_events.c * Author: <NAME> * <EMAIL> * Mods: <Your name here> * <Your email here> */ /* This file hardware info and performs the following test: Attempts to add all available native events to an event set. This is a good preliminary way to validate native ev...
32.98
131
(translation_unit) "/*\n * File: all_native_events.c\n * Author: <NAME>\n * <EMAIL>\n * Mods: <Your name here>\n * <Your email here>\n */\n\n/* This file hardware info and performs the following test:\n Attempts to add all available native events to an event set.\n This is a good prelimi...
1,143
0
{"language": "c", "success": true, "metadata": {"lines": 131, "avg_line_length": 32.98, "nodes": 620, "errors": 0, "source_hash": "d56fc6e328411dac970665243d1fe3f36b662ddce4b07399bfaa4c63a40d6e06", "categorized_nodes": 452}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
79,297
c
#pragma once #include "volk.h" #include "graphics/assets/texture.h" #include "graphics/rhi/vulkan/buffer.h" struct StagingQueue; struct Image; struct TextureAllocInfo; struct TextureAllocator; struct Assets; //todo, TextureDesc and TextureAllocInfo, duplicate information struct Texture { TextureDesc desc; TextureA...
35.21
97
(translation_unit) "#pragma once\n\n#include "volk.h"\n#include "graphics/assets/texture.h"\n#include "graphics/rhi/vulkan/buffer.h"\n\nstruct StagingQueue;\nstruct Image;\nstruct TextureAllocInfo;\nstruct TextureAllocator;\nstruct Assets;\n\n//todo, TextureDesc and TextureAllocInfo, duplicate information\nstruct Textu...
683
17
{"language": "c", "success": true, "metadata": {"lines": 97, "avg_line_length": 35.21, "nodes": 441, "errors": 0, "source_hash": "48eb4df2efebb5c1a12d054d3ed32fd3ef6dcd1cf9a2b93a5db63f34ec2ff32d", "categorized_nodes": 341}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
79,298
c
//===----------------------------------------------------------------------===// // // Peloton // // query_to_operator_transformer.h // // Identification: src/include/optimizer/query_to_operator_transformer.h // // Copyright (c) 2015-16, Carnegie Mellon University Database Group // //===--------...
35.24
58
(translation_unit) "//===----------------------------------------------------------------------===//\n//\n// Peloton\n//\n// query_to_operator_transformer.h\n//\n// Identification: src/include/optimizer/query_to_operator_transformer.h\n//\n// Copyright (c) 2015-16, Carnegie Mellon University Dat...
491
41
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 35.24, "nodes": 306, "errors": 0, "source_hash": "b547ed195fd552f18703c712cbefbfaac5ba26b1224daa3fc6ff65f03221ee32", "categorized_nodes": 181}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
79,299