language
stringclasses
1 value
code
stringlengths
6
12.3k
avg_line_length
float64
2.79
91
line_count
float64
1
367
lang_specific_parse
stringlengths
60
1.08M
ast_node_count
int64
2
6.81k
num_errors
int64
0
499
universal_schema
stringlengths
799
825k
__index_level_0__
int64
0
81.2k
c
/* * Copyright 2005 <NAME> <<EMAIL>> * Copyright (C) 2006 Apple Computer, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice...
36.14
91
(translation_unit) "/*\n * Copyright 2005 <NAME> <<EMAIL>>\n * Copyright (C) 2006 Apple Computer, Inc.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n *\n * 1. Redistributions of source code must retain the ...
695
34
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 36.14, "nodes": 425, "errors": 0, "source_hash": "d6deea883496d7ff8b59654a2ab7528ec7b5df73dabc8deda4540ae9c32d965b", "categorized_nodes": 304}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,600
c
/* * libaio engine * * IO engine using the Linux native aio interface. * */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <assert.h> #include <libaio.h> #include "../fio.h" struct libaio_data { io_context_t aio_ctx; struct io_event *aio_events; struct iocb **iocbs; st...
25.82
266
(translation_unit) "/*\n * libaio engine\n *\n * IO engine using the Linux native aio interface.\n *\n */\n#include <stdio.h>\n#include <stdlib.h>\n#include <unistd.h>\n#include <errno.h>\n#include <assert.h>\n#include <libaio.h>\n\n#include "../fio.h"\n\nstruct libaio_data {\n io_context_t aio_ctx;\n struct io_event *...
2,395
4
{"language": "c", "success": true, "metadata": {"lines": 266, "avg_line_length": 25.82, "nodes": 1555, "errors": 0, "source_hash": "59d1d20985730d4e34a544edfbe62d55a7e979c83f8485b7187f16b273c0919c", "categorized_nodes": 1153}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
13,601
c
#include "syscall.h" #define NULL 0 int main() { char *executable, *prog2; int exitS=1; executable="matmult.coff"; char *arg[1]; arg[0]=executable; int id; id = exec(executable,1,arg); int jId; jId = join(id,&exitS); if(jId==0){ printf("joined process %d\n",id);} exit(0); return 1; }
14.74
19
(translation_unit) "#include "syscall.h"\n\n#define NULL 0\nint\nmain()\n{\n char *executable, *prog2;\n int exitS=1;\n executable="matmult.coff";\n char *arg[1];\n arg[0]=executable;\n int id;\n id = exec(executable,1,arg);\n int jId;\n jId = join(id,&exitS);\n if(jId==0){\n printf("joined process %d\n",id);}\n exit(...
143
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 14.74, "nodes": 85, "errors": 0, "source_hash": "4e0470f1174492117992c0762e95eb1ce90e8e98d3bfe0dc3cf0a246cc79167a", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
13,602
c
// Copyright Contributors to the OpenVDB Project // SPDX-License-Identifier: MPL-2.0 /*! \file ForEach.h \author <NAME> \date August 24, 2020 \brief A unified wrapper for tbb::parallel_for and a naive std::thread analog */ #ifndef NANOVDB_FOREACH_H_HAS_BEEN_INCLUDED #define NANOVDB_FOREACH_H_HAS_BE...
37.15
60
(translation_unit) "// Copyright Contributors to the OpenVDB Project\n// SPDX-License-Identifier: MPL-2.0\n\n/*!\n \file ForEach.h\n\n \author <NAME>\n\n \date August 24, 2020\n\n \brief A unified wrapper for tbb::parallel_for and a naive std::thread analog\n*/\n\n#ifndef NANOVDB_FOREACH_H_HAS_BEEN_INCLUDED...
453
24
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 37.15, "nodes": 264, "errors": 0, "source_hash": "febf22674e0170baced383f8d4471c6e164f46dbd4240078cc42ee874339fca6", "categorized_nodes": 192}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef NANOVD...
13,603
c
// Copyright 2021 <NAME> <<EMAIL>> // SPDX-License-Identifier: ISC // Tests basic functionality of, and access to, the world. #undef NDEBUG #include "pugl/pugl.h" #include <assert.h> #include <stdint.h> int main(void) { PuglWorld* const world = puglNewWorld(PUGL_PROGRAM, 0); PuglView* const view = puglNewVie...
27.96
25
(translation_unit) "// Copyright 2021 <NAME> <<EMAIL>>\n// SPDX-License-Identifier: ISC\n\n// Tests basic functionality of, and access to, the world.\n\n#undef NDEBUG\n\n#include "pugl/pugl.h"\n\n#include <assert.h>\n#include <stdint.h>\n\nint\nmain(void)\n{\n PuglWorld* const world = puglNewWorld(PUGL_PROGRAM, 0);\n ...
155
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 27.96, "nodes": 92, "errors": 0, "source_hash": "8e377d9857f6d563abb55a9f3f0a0383617af0f0f27f2e502853dae732baf99a", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#undef ND...
13,604
c
/* Copyright (c) 2020, VSB - Technical University of Ostrava and Graz University of Technology 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 copyr...
32.03
94
(translation_unit) "/*\nCopyright (c) 2020, VSB - Technical University of Ostrava and Graz University of\nTechnology\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n* Redistributions of source code ...
236
12
{"language": "c", "success": true, "metadata": {"lines": 94, "avg_line_length": 32.03, "nodes": 120, "errors": 0, "source_hash": "8e6e523f2080e10d3142b10ebdd08caf372729fb5a3b940b01f4d4cd69c6211f", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "def INC...
13,605
c
#include "matrix.h" void matrix3x3_transpose(double out[3][3], double in[3][3]){ int i,j; double tmp[3][3]; for(i=0;i<3;i++) for(j=0;j<3;j++) tmp[i][j]=in[j][i]; for(i=0;i<3;i++) for(j=0;j<3;j++) out[i][j] = tmp[i][j]; } void matrix3x3_inverse(double out[3][3], ...
26.06
69
(translation_unit) "#include "matrix.h"\n\nvoid matrix3x3_transpose(double out[3][3], double in[3][3]){\n int i,j;\n double tmp[3][3];\n for(i=0;i<3;i++)\n for(j=0;j<3;j++)\n tmp[i][j]=in[j][i];\n for(i=0;i<3;i++)\n for(j=0;j<3;j++)\n out[i][j] = tmp[i][j];\n}\n\nvoid mat...
1,046
0
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 26.06, "nodes": 665, "errors": 0, "source_hash": "74b3d8eb57fbb888f01acbe2e36a0bfdab3ed63b4e7426700a3862a59bf1cb32", "categorized_nodes": 478}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,606
c
/********** Copyright 1990 Regents of the University of California. All rights reserved. Author: 1985 <NAME> Modified: 2000 AlansFixes This function is obsolete (was used by an old sensitivity analysis) **********/ /* Pretty print the sensitivity info for all the MOS3 * devices in the circuit. */ #i...
37.4
53
(translation_unit) "/**********\nCopyright 1990 Regents of the University of California. All rights reserved.\nAuthor: 1985 <NAME>\nModified: 2000 AlansFixes\n\nThis function is obsolete (was used by an old sensitivity analysis)\n**********/\n\n /* Pretty print the sensitivity info for all the MOS3 \n * devices...
455
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 37.4, "nodes": 235, "errors": 0, "source_hash": "12e393cd5ccacedc366f822a79cfd06adb471b02a6ea30afb0aece6b84c6f412", "categorized_nodes": 171}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
13,607
c
#pragma once #include "vmprof.h" #ifdef VMPROF_WINDOWS #include <Python.h> // CPython 3.6 defines all the inttypes for us, we do not need the msiinttypes // library for that version or any newer! #if (PY_VERSION_HEX < 0x3060000) #include "msiinttypes/inttypes.h" #include "msiinttypes/stdint.h" #endif #else #include...
39.78
41
(translation_unit) "#pragma once\n\n#include "vmprof.h"\n\n#ifdef VMPROF_WINDOWS\n\n#include <Python.h>\n// CPython 3.6 defines all the inttypes for us, we do not need the msiinttypes\n// library for that version or any newer!\n#if (PY_VERSION_HEX < 0x3060000)\n#include "msiinttypes/inttypes.h"\n#include "msiinttypes/s...
106
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 39.78, "nodes": 78, "errors": 0, "source_hash": "b0c8a798e31a3e3a8fd8aee09e6c28320e301230361fd7b2f3198174ecafbf35", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,608
c
#pragma once class CDS3Controller : public CSCPController { public: static const DWORD CollectionSize = 1; public: CDS3Controller(DWORD dwIndex); protected: virtual void FormatReport(void); virtual void XInputMapState(void); };
18.5
12
(translation_unit) "#pragma once\n\nclass CDS3Controller : public CSCPController\n{\npublic:\n\n static const DWORD CollectionSize = 1;\n\npublic:\n\n CDS3Controller(DWORD dwIndex);\n \nprotected:\n\n virtual void FormatReport(void);\n\n virtual void XInputMapState(void);\n};\n" (preproc_call) "#pragma once\n" (p...
71
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 18.5, "nodes": 42, "errors": 0, "source_hash": "d4c12e586c407570f72f5e4c88d5a847f218d8b6db83242601ee4e7ee50f5f31", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
13,609
c
/****************************************************************************** * @file stack.h * @author <NAME> * @email <EMAIL> * @date 2021-06-17 * @copyright Copyright 2021 <NAME> * @license MIT License * @brief mugglec stack *******************************...
26.97
113
(translation_unit) "/******************************************************************************\n * @file stack.h\n * @author <NAME>\n * @email <EMAIL>\n * @date 2021-06-17\n * @copyright Copyright 2021 <NAME>\n * @license MIT License\n * @brief mugglec stack\n ***...
256
7
{"language": "c", "success": true, "metadata": {"lines": 113, "avg_line_length": 26.97, "nodes": 183, "errors": 0, "source_hash": "35308c1f9c36ca2461dc73a52ca66c905229e96fb6df459ae5f8399e25732153", "categorized_nodes": 127}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
13,610
c
#ifndef IMGUI_MARKUP_SRC_OBJECTS_CONTAINER_H_ #define IMGUI_MARKUP_SRC_OBJECTS_CONTAINER_H_ #include "imgui_markup/objects/common/object.h" namespace imgui_markup { struct Container : public Object { Container(std::string id, Object* parent); Container& operator=(const Container& other); void Update();...
29.31
13
(translation_unit) "#ifndef IMGUI_MARKUP_SRC_OBJECTS_CONTAINER_H_\n#define IMGUI_MARKUP_SRC_OBJECTS_CONTAINER_H_\n\n#include "imgui_markup/objects/common/object.h"\n\nnamespace imgui_markup\n{\n\nstruct Container : public Object\n{\n Container(std::string id, Object* parent);\n\n Container& operator=(const Contai...
82
5
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 29.31, "nodes": 48, "errors": 0, "source_hash": "53369269b4c59e8ee2068dfb85f057cbca36a7f4e51219f97a6c82c0c3756821", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,611
c
/* * huffman_coder - Encode/Decode files using Huffman encoding. * http://huffman.sourceforge.net * Copyright (C) 2003 <NAME>; Gauss Interprise, Inc * * 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 ...
28.69
51
(translation_unit) "/* \n * huffman_coder - Encode/Decode files using Huffman encoding. \n * http://huffman.sourceforge.net \n * Copyright (C) 2003 <NAME>; Gauss Interprise, Inc \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 ...
151
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 28.69, "nodes": 119, "errors": 0, "source_hash": "9d3ca7ff363963a576e12e4e8d82e4c07c0d7ebd8ef9ea04755cb2695dc869bd", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
13,612
c
#pragma once /* ==========================DISCLAYMER=========================== This header provides with all the underlying system pointers and should not be changed or could cause unexpected behavior. If these pointers are needed then they should be requested by the engine and not recieved from here. However if the...
30.78
160
(translation_unit) "#pragma once\n/*\n==========================DISCLAYMER===========================\n\n This header provides with all the underlying system\npointers and should not be changed or could cause unexpected\nbehavior. If these pointers are needed then they should be\nrequested by the engine and not recieve...
648
17
{"language": "c", "success": true, "metadata": {"lines": 160, "avg_line_length": 30.78, "nodes": 453, "errors": 0, "source_hash": "bc1cfb94b99d9582d7e71e131f108e3c4d548e6914874aabc8f40e435f26cef1", "categorized_nodes": 264}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
13,613
c
/** * stm32_l433xx.c */ #include "generic_hal.h" #include "usb_device.h" ADC_HandleTypeDef hadc1; I2C_HandleTypeDef hi2c1; LPTIM_HandleTypeDef hlptim1; void Error_Handler(void) { __asm__("BKPT"); } /** * @brief System Clock Configuration * @retval None */ void SystemClock_Config(void) { RCC_OscInitTyp...
30.34
212
(translation_unit) "/**\n * stm32_l433xx.c\n */\n\n#include "generic_hal.h"\n#include "usb_device.h"\n\nADC_HandleTypeDef hadc1;\nI2C_HandleTypeDef hi2c1;\nLPTIM_HandleTypeDef hlptim1;\n\nvoid Error_Handler(void)\n{\n __asm__("BKPT");\n}\n\n/**\n * @brief System Clock Configuration\n * @retval None\n */\nvoid Sys...
1,314
0
{"language": "c", "success": true, "metadata": {"lines": 212, "avg_line_length": 30.34, "nodes": 777, "errors": 0, "source_hash": "ad5ebb33cb898893973035b9563b9ce50f5989e94b9c9c61dae9a15259830a93", "categorized_nodes": 636}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
13,614
c
/* Test of filtering of data through a subprocess. Copyright (C) 2009, 2010 Free Software Foundation, Inc. Written by <NAME> <<EMAIL>>, 2009. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Founda...
29.75
93
(translation_unit) "/* Test of filtering of data through a subprocess.\n Copyright (C) 2009, 2010 Free Software Foundation, Inc.\n Written by <NAME> <<EMAIL>>, 2009.\n\n This program is free software: you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n ...
659
0
{"language": "c", "success": true, "metadata": {"lines": 93, "avg_line_length": 29.75, "nodes": 421, "errors": 0, "source_hash": "a0c35c2740ccc261dc9f889b995c5d444c1112781a5ebeea34692546a5f58ae9", "categorized_nodes": 278}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,615
c
// GameProcNationSelect.h: interface for the CGameProcNationSelect class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_GAMEPROCNATIONSELECT_H__83F05883_F45C_4119_BD8F_EBF2C2CF0A29__INCLUDED_) #define AFX_GAMEPROCNATIONSELECT_H__83F05883_F45C_4119_BD8F_EBF2C2CF0A29__INCLUDE...
31.77
26
(translation_unit) "// GameProcNationSelect.h: interface for the CGameProcNationSelect class.\n//\n//////////////////////////////////////////////////////////////////////\n\n#if !defined(AFX_GAMEPROCNATIONSELECT_H__83F05883_F45C_4119_BD8F_EBF2C2CF0A29__INCLUDED_)\n#define AFX_GAMEPROCNATIONSELECT_H__83F05883_F45C_4119_B...
142
2
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 31.77, "nodes": 85, "errors": 0, "source_hash": "9771ff9ab40c8ad6bd44c1e415b2bca85ef5abb20b5aaedd2f7a590dee5b01ee", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !define...
13,616
c
//+-------------------------------------------------------------------------- // // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A // PARTICULAR PURPOSE. // ...
30.44
62
(translation_unit) "//+-------------------------------------------------------------------------- \n// \n// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF \n// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO \n// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A \n// ...
156
3
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 30.44, "nodes": 78, "errors": 0, "source_hash": "c15eaf1c07234ca4b142d07603378d1f1ec6f430b6685eb7c1422238515e773a", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,617
c
// // JHNetworkModule.h // JHNetworkModule // // Created by 狄烨 . on 2019/4/28. // Copyright © 2019 HU. All rights reserved. // #ifndef JHNetworkModule_h #define JHNetworkModule_h #import "JHNetworkConst.h" #import "JHNetworking.h" #import "JHRequest.h" #import "JHBaseModel.h" #import "JHNetworkConfig.h" #endif /* ...
21.67
15
(translation_unit) "//\n// JHNetworkModule.h\n// JHNetworkModule\n//\n// Created by 狄烨 . on 2019/4/28.\n// Copyright © 2019 HU. All rights reserved.\n//\n\n#ifndef JHNetworkModule_h\n#define JHNetworkModule_h\n#import "JHNetworkConst.h"\n#import "JHNetworking.h"\n#import "JHRequest.h"\n#import "JHBaseModel.h"\n#imp...
31
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 21.67, "nodes": 22, "errors": 0, "source_hash": "245d100bd437d43ec50356efc09904e47e0788b33312b69b5aab7939f30278a8", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ef JHNet...
13,618
c
/* Editor Settings: expandtabs and use 4 spaces for indentation * ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: * */ /* * Copyright © BeyondTrust Software 2004 - 2019 * All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compli...
32.69
248
(translation_unit) "/* Editor Settings: expandtabs and use 4 spaces for indentation\n * ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: *\n */\n\n/*\n * Copyright © BeyondTrust Software 2004 - 2019\n * All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not u...
1,389
0
{"language": "c", "success": true, "metadata": {"lines": 248, "avg_line_length": 32.69, "nodes": 864, "errors": 0, "source_hash": "aeef2a16a757da9655bd8b3c92ff088bdeea6904fceff47647df35ab1a200437", "categorized_nodes": 598}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "inc...
13,619
c
#ifndef TRITONSORT_RESOURCE_QUEUE_TEST_H #define TRITONSORT_RESOURCE_QUEUE_TEST_H #include <stdint.h> #include "third-party/googletest.h" class ResourceQueueTest : public ::testing::Test { protected: void testStealFrom(uint64_t sourceQueueSize, uint64_t destQueueSize, uint64_t numSourceElement...
41.25
12
(translation_unit) "#ifndef TRITONSORT_RESOURCE_QUEUE_TEST_H\n#define TRITONSORT_RESOURCE_QUEUE_TEST_H\n\n#include <stdint.h>\n\n#include "third-party/googletest.h"\n\nclass ResourceQueueTest : public ::testing::Test {\nprotected:\n void testStealFrom(uint64_t sourceQueueSize, uint64_t destQueueSize,\n ...
73
1
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 41.25, "nodes": 45, "errors": 0, "source_hash": "aa830cdb9e7a244cd08af75adf85e2dc8eddcc52bc0283c4419295bee05fbc5d", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,620
c
#ifndef SILVIA_MODES_H #define SILVIA_MODES_H #define MODE_OFF 4 #define MODE_PID 0 #define MODE_MANUAL 1 #define MODE_AUTOTUNE 2 #define MODE_CLEAN 3 #endif // SILVIA_MODES_H
21
8
(translation_unit) "#ifndef SILVIA_MODES_H\n#define SILVIA_MODES_H\n\n#define MODE_OFF 4\n#define MODE_PID 0\n#define MODE_MANUAL 1\n#define MODE_AUTOTUNE 2\n#define MODE_CLEAN 3\n\n#endif // SILVIA_MODES_H" (preproc_ifdef) "#ifndef SILVIA_MODES_H\n#define SILVIA_MODES_H\n\n#define MODE_OFF 4\n#define MODE_PID 0\n#de...
29
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 21.0, "nodes": 27, "errors": 0, "source_hash": "8f0ca013dee0010d6088bf5776184336971a84d8d2cc145644ea6d494290de67", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef SI...
13,621
c
#pragma once #include "../text/ctextfragment.h" #include <vector> class QIODevice; class CTxtFileDecoder { public: static QString readDataAndDecodeText(QIODevice& device); };
13.77
13
(translation_unit) "#pragma once \n \n#include "../text/ctextfragment.h" \n \n#include <vector> \n \nclass QIODevice; \n \nclass CTxtFileDecoder \n{ \npublic: \n static QString readDataAndDecodeText(QIODevice& device); \n}; \n" (preproc_call) "#pragma once \n" (preproc_directive) "#pragma" (preproc_arg) "once...
43
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 13.77, "nodes": 22, "errors": 0, "source_hash": "ce7560204a5ebea800d192ce478d0f3b29c0898b8fcb4be0d3e20e1bbd41dc44", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,622
c
#ifndef COLORPAIR_H__ #define COLORPAIR_H__ #include "MajorColor.h" #include "MinorColor.h" const int MAX_COLORPAIR_NAME_CHARS = 16; typedef struct { enum MajorColor majorColor; enum MinorColor minorColor; } ColorPair; #endif
22.4
10
(translation_unit) "#ifndef COLORPAIR_H__\n#define COLORPAIR_H__\n\n#include "MajorColor.h"\n#include "MinorColor.h"\n\nconst int MAX_COLORPAIR_NAME_CHARS = 16;\n\ntypedef struct {\n enum MajorColor majorColor;\n enum MinorColor minorColor;\n} ColorPair;\n\n#endif" (preproc_ifdef) "#ifndef COLORPAIR_H__\n#defin...
50
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 22.4, "nodes": 34, "errors": 0, "source_hash": "110e4775c4f4ed369bc7505030b5d58b7360072961ae4fb622e23bcf19911104", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef C...
13,623
c
#include <time.h> #include <sys/time.h> #include <math.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "time_stats.h" void time_stats_init (time_stats_t *ts) { memset (&ts->last_start, 0, sizeof (struct timeval)); ts->name = 0; ts->n = 0; ts->head = 0; ts->stats_done_at_n ...
28.74
188
(translation_unit) "#include <time.h>\n#include <sys/time.h>\n#include <math.h>\n#include <stdlib.h>\n#include <string.h>\n#include <unistd.h>\n\n#include "time_stats.h"\n\n\nvoid time_stats_init (time_stats_t *ts)\n{\n memset (&ts->last_start, 0, sizeof (struct timeval));\n ts->name = 0;\n ts->n = 0;\n ts-...
1,833
0
{"language": "c", "success": true, "metadata": {"lines": 188, "avg_line_length": 28.74, "nodes": 1149, "errors": 0, "source_hash": "0b13e3027552a3287d5bf58fa4d4a124dbd7d0a316e229a6e4857e3359152695", "categorized_nodes": 815}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
13,624
c
// // TimeCode.h // VirtualMachine // // Created by <NAME> on 26/06/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #ifndef VirtualMachine_TimeCode_h #define VirtualMachine_TimeCode_h #include <string> #include <assert.h> #include <sys/time.h> #include <sstream> #include "../Data/StringOperations.h" ...
25.5
189
(translation_unit) "//\n// TimeCode.h\n// VirtualMachine\n//\n// Created by <NAME> on 26/06/14.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n\n#ifndef VirtualMachine_TimeCode_h\n#define VirtualMachine_TimeCode_h\n\n#include <string>\n#include <assert.h>\n\n#include <sys/time.h>\n\n#include <sstream>\n\n...
1,457
79
{"language": "c", "success": true, "metadata": {"lines": 189, "avg_line_length": 25.5, "nodes": 878, "errors": 0, "source_hash": "54a84d12355268bf6a968b23479e4475a6839682c3f248e5769dc202f9526dc5", "categorized_nodes": 621}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,625
c
// // Démineur Classic // https://github.com/rogez/demineur-classic // // MIT License - Copyright (C) 2020 <NAME> (rogez.net) // This file is subject to the terms and conditions defined in // file "LICENSE", which is part of this source code package. #pragma once #include "common.h" // GAME void game_init(); void...
25.64
14
(translation_unit) "// \n// Démineur Classic \n// https://github.com/rogez/demineur-classic\n// \n// MIT License - Copyright (C) 2020 <NAME> (rogez.net)\n// This file is subject to the terms and conditions defined in\n// file "LICENSE", which is part of this source code package.\n\n#pragma once\n\n#include "common.h"\n...
50
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 25.64, "nodes": 26, "errors": 0, "source_hash": "494865bf716cdff986cdfdb820bf73e603af7fca5670906b5d85e7930b568450", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "pragma on...
13,626
c
/* Copyright 2018 SiFive, Inc */ /* SPDX-License-Identifier: Apache-2.0 */ #include <metal/machine/platform.h> #include <metal/drivers/sifive_fu540-c000_l2.h> #define L2_CONFIG_WAYS_SHIFT 8 #define L2_CONFIG_WAYS_MASK (0xFF << L2_CONFIG_WAYS_SHIFT) #ifdef CONFIG_SIFIVE_FU540_C000_L2 static void metal_driver_...
40.67
63
(translation_unit) "/* Copyright 2018 SiFive, Inc */\n/* SPDX-License-Identifier: Apache-2.0 */\n\n#include <metal/machine/platform.h>\n#include <metal/drivers/sifive_fu540-c000_l2.h>\n\n#define L2_CONFIG_WAYS_SHIFT 8\n#define L2_CONFIG_WAYS_MASK (0xFF << L2_CONFIG_WAYS_SHIFT)\n\n#ifdef CONFIG_SIFIVE_FU540_C000_...
459
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 40.67, "nodes": 297, "errors": 0, "source_hash": "b9f91dff1b6503a26ea221a20cac77dbfa9094f8135ef2d89ca5ea3e8419a8f5", "categorized_nodes": 203}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,627
c
#ifndef __CR_SYSFS_PARSE_H__ #define __CR_SYSFS_PARSE_H__ #define SYSFS_AUFS "/sys/fs/aufs/" #define SBINFO_LEN (3 + 16 + 1) /* si_%lx */ #define SBINFO_PATH_LEN (sizeof SYSFS_AUFS + SBINFO_LEN) /* /sys/fs/aufs/<sbinfo> */ #define AUFSBR_PATH_LEN (SBINFO_PATH_LEN + 6 + 1) /* /sys/fs/aufs/<sbinfo>/br%3d */ struct mo...
44
12
(translation_unit) "#ifndef __CR_SYSFS_PARSE_H__\n#define __CR_SYSFS_PARSE_H__\n\n#define SYSFS_AUFS "/sys/fs/aufs/"\n#define SBINFO_LEN (3 + 16 + 1) /* si_%lx */\n#define SBINFO_PATH_LEN (sizeof SYSFS_AUFS + SBINFO_LEN) /* /sys/fs/aufs/<sbinfo> */\n#define AUFSBR_PATH_LEN (SBINFO_PATH_LEN + 6 + 1) /* /sys/fs/aufs/<s...
86
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 44.0, "nodes": 69, "errors": 0, "source_hash": "614da00f08f6918d10947afc24e8ade999b2f2f4db32f818b1d1ab9590a3dc49", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
13,628
c
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #pragma once namespace Manage...
39.93
27
(translation_unit) "// ------------------------------------------------------------\n// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.\n// ------------------------------------------------------------\n\n#prag...
148
14
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 39.93, "nodes": 72, "errors": 0, "source_hash": "d4cf80dda7eed2a93e0fac1873b55ecee18839e0b37177f9defef6fa21dd5bdc", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,629
c
#include "./tree.c" int in_order_traverse(node_t tree) { node_t p; p = tree->lchild; while (p != tree) { while (p->ltag == link) p = p->lchild; printf("%c", p->data); while (p->rtag == thread && p->rchild != tree) { p = p->rchild; printf("%c", p->data); } p = p->rchild; } return 0; }
17.18
17
(translation_unit) "#include "./tree.c"\n\nint in_order_traverse(node_t tree)\n{\n node_t p;\n p = tree->lchild;\n while (p != tree) {\n while (p->ltag == link)\n p = p->lchild;\n printf("%c", p->data);\n while (p->rtag == thread && p->rchild != tree) {\n p = p->rchild;\n printf("%c", p->data);\n }\n p = p->...
144
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 17.18, "nodes": 84, "errors": 0, "source_hash": "f6a4e94691763570954748b9a3b0dd1b073e99b0214349cd6b88094d666d171b", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
13,630
c
#ifndef LISTMODEL_H #define LISTMODEL_H #include <QAbstractItemModel> #include <QModelIndex> #include <QVariant> class ListItem; class TagMngrListModel : public QAbstractItemModel { Q_OBJECT public: TagMngrListModel(const QString &data, QObject *parent = 0); ~TagMngrListModel(); QVariant data(const...
37.46
37
(translation_unit) "#ifndef LISTMODEL_H\n#define LISTMODEL_H\n\n#include <QAbstractItemModel>\n#include <QModelIndex>\n#include <QVariant>\n\nclass ListItem;\n\nclass TagMngrListModel : public QAbstractItemModel\n{\n Q_OBJECT\n\npublic:\n TagMngrListModel(const QString &data, QObject *parent = 0);\n ~TagMngrLi...
372
27
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 37.46, "nodes": 210, "errors": 0, "source_hash": "aa1344f21186b7546f0da75d71a6fe385e983b00fd2c85841bcd7a16f97ed34e", "categorized_nodes": 145}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,631
c
#ifndef ACTIVEBACTERIA_H_ #define ACTIVEBACTERIA_H_ #include "Bacteria.h" #define ACTIVE_ADULT_AGE_MULTIPLIER 0.5 #define ACTIVE_CURRENT_AGE_MULTIPLIER 2 #define ACTIVE_EATING_RATE_MULTIPLIER 0.5 /* ActiveBacteria * * A bacteria that consumes food twice as fast as the eatingRate * and its actual adult age is half ...
27.86
80
(translation_unit) "#ifndef ACTIVEBACTERIA_H_\n#define ACTIVEBACTERIA_H_\n#include "Bacteria.h"\n#define ACTIVE_ADULT_AGE_MULTIPLIER 0.5\n#define ACTIVE_CURRENT_AGE_MULTIPLIER 2\n#define ACTIVE_EATING_RATE_MULTIPLIER 0.5\n\n\n/* ActiveBacteria\n *\n * A bacteria that consumes food twice as fast as the eatingRate\n * an...
195
14
{"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 27.86, "nodes": 110, "errors": 0, "source_hash": "efb3a3ac6756fe0a301985dcde1bcf65e3191e749747c4a7e3b42ad7cc682185", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
13,632
c
/** * @file lv_ex_get_started.h * */ #ifndef LV_EX_GET_STARTED_H #define LV_EX_GET_STARTED_H #ifdef __cplusplus extern "C" { #endif /********************* * INCLUDES *********************/ /********************* * DEFINES *********************/ /********************** * TYPEDEFS ***********...
19.45
31
(translation_unit) "/**\n * @file lv_ex_get_started.h\n *\n */\n\n#ifndef LV_EX_GET_STARTED_H\n#define LV_EX_GET_STARTED_H\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n/*********************\n * INCLUDES\n *********************/\n\n/*********************\n * DEFINES\n *********************/\n\n/************...
65
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 19.45, "nodes": 41, "errors": 0, "source_hash": "8ade75f1c4a98e05bf6e546f77f0b36121c1bb4e17beede204bb8fced3c041da", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,633
c
#include <stdio.h> main() { int carry,i,j,k; long long n; int b[100]; while(scanf("%lld",&n)!=EOF) { j=0; if(n<0) { break; } while(n!=0) { b[j]=n%3; n=n/3; j++; } if(j>0) { ...
14.06
35
(translation_unit) "#include <stdio.h>\n\n\n\nmain()\n{\n int carry,i,j,k;\n long long n;\n int b[100];\n\n while(scanf("%lld",&n)!=EOF)\n {\n j=0;\n if(n<0)\n {\n break;\n }\n while(n!=0)\n {\n b[j]=n%3;\n n=n/3;\n j++...
206
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 14.06, "nodes": 111, "errors": 0, "source_hash": "e8b33197d07e8d647a88ce654899e7dd903f8ad4e91d561de747ff3368e118f9", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
13,634
c
#ifndef OPENBHOS_OBJECT_H #define OPENBHOS_OBJECT_H #include "stdint.h" #include "config.h" #include "link.h" #include "stdarg.h" #define public #define private //max object size alloc from heap, if object size bigger than //it , the object will alloc from pmm. #define MAX_OBJECT_SIZE_FORM_HEAP PAGE_SIZE struct objec...
25.67
79
(translation_unit) "#ifndef OPENBHOS_OBJECT_H\n#define OPENBHOS_OBJECT_H\n\n#include "stdint.h"\n#include "config.h"\n#include "link.h"\n#include "stdarg.h"\n\n#define public\n#define private\n//max object size alloc from heap, if object size bigger than\n//it , the object will alloc from pmm.\n#define MAX_OBJECT_SIZE_...
393
0
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 25.67, "nodes": 277, "errors": 0, "source_hash": "84c68c0105c606190f51e41097725ea4cbe0d4c425cfca4202d937cb569980eb", "categorized_nodes": 187}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,635
c
// // Created by <NAME> on 12/31/21. // #ifndef STARTER_H #define STARTER_H #define PROJECT_NAME "Mr. Jack" #define CREATOR "<NAME>" #define MR_JACK_DATA "mr_jack_game.data" #define MR_JACK_Z_DATA "mr_jack_game_z.data" int start(); int start_jack(int player1, int player2, int x, int y); int start_game(); int start_m...
27.73
15
(translation_unit) "//\n// Created by <NAME> on 12/31/21.\n//\n\n#ifndef STARTER_H\n#define STARTER_H\n\n#define PROJECT_NAME "Mr. Jack"\n#define CREATOR "<NAME>"\n#define MR_JACK_DATA "mr_jack_game.data"\n#define MR_JACK_Z_DATA "mr_jack_game_z.data"\n\nint start();\nint start_jack(int player1, int player2, int x, int ...
109
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 27.73, "nodes": 81, "errors": 0, "source_hash": "e9463a1d3916a9c772be415fe12cd560cf1b7a1bff8143a0fd906bf3d78f7bee", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,636
c
#pragma once #include "common/dynamic_buffer.h" #include "smart_coro.h" #include <sys/socket.h> #include <unistd.h> int smart_routine_start(void *(*fn)(void *), void *args); int smart_routine_yield(); int smart_routine_resume(smartroutine::SmartCoro *coro); // TODO: Maybe hook glibc api int smart_socket(int domain, ...
45.94
16
(translation_unit) "#pragma once\n#include "common/dynamic_buffer.h"\n#include "smart_coro.h"\n#include <sys/socket.h>\n#include <unistd.h>\nint smart_routine_start(void *(*fn)(void *), void *args);\n\nint smart_routine_yield();\n\nint smart_routine_resume(smartroutine::SmartCoro *coro);\n\n// TODO: Maybe hook glibc ap...
230
4
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 45.94, "nodes": 163, "errors": 0, "source_hash": "b783cf813b710a84b877d34064c9891c205781117151893afa3455ee43095054", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
13,637
c
/*** * * Copyright (c) 1999, Valve LLC. All rights reserved. * * This product contains software technology licensed from Id * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. * All Rights Reserved. * * Use, distribution, and modification of this source code and/or resulting * object co...
33.96
27
(translation_unit) "/***\n*\n* Copyright (c) 1999, Valve LLC. All rights reserved.\n* \n* This product contains software technology licensed from Id \n* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. \n* All Rights Reserved.\n*\n* Use, distribution, and modification of this source code an...
123
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 33.96, "nodes": 90, "errors": 0, "source_hash": "e9c09092fb1c0ec7c004681395e0110a5fa20dfac7887d01a57a252d242ff424", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,638
c
// // TRIBroadcasterDelegate.h // Presentation // // Created by Adrian on 15/11/13. // Copyright (c) 2013 Trifork GmbH. All rights reserved. // @import Foundation; @class TRIBroadcaster; @protocol TRIBroadcasterDelegate <NSObject> @optional - (void)broadcasterIsReady:(TRIBroadcaster *)broadcaster; - (void)br...
23.67
15
(translation_unit) "//\n// TRIBroadcasterDelegate.h\n// Presentation\n//\n// Created by Adrian on 15/11/13.\n// Copyright (c) 2013 Trifork GmbH. All rights reserved.\n//\n\n@import Foundation;\n\n@class TRIBroadcaster;\n\n\n\n@protocol TRIBroadcasterDelegate <NSObject>\n\n@optional\n\n- (void)broadcasterIsReady:(TR...
68
12
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 23.67, "nodes": 40, "errors": 0, "source_hash": "48908fc82ca86014a5636fc0a1b2a811f88923216922fa8fe3bd3fc8b15e6934", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nu...
13,639
c
// Copyright (c) 2020 CS126SP20. All rights reserved. #ifndef FINALPROJECT_APPS_MYAPP_H_ #define FINALPROJECT_APPS_MYAPP_H_ #include <cinder/app/App.h> #include <cinder/gl/Shader.h> #include <cinder/gl/Texture.h> #include <mylibrary/engine.h> #include "cinder/audio/Voice.h" #include <chrono> namespace myapp { const ...
29.11
64
(translation_unit) "// Copyright (c) 2020 CS126SP20. All rights reserved.\n\n#ifndef FINALPROJECT_APPS_MYAPP_H_\n#define FINALPROJECT_APPS_MYAPP_H_\n\n#include <cinder/app/App.h>\n#include <cinder/gl/Shader.h>\n#include <cinder/gl/Texture.h>\n#include <mylibrary/engine.h>\n#include "cinder/audio/Voice.h"\n#include <chr...
562
36
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 29.11, "nodes": 324, "errors": 0, "source_hash": "9de9c99ad150922b4edd6ab6ebefddf3bf15d9ca8a4bb79a5658ab988ef64b67", "categorized_nodes": 212}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,640
c
//此源码被清华学神尹成大魔王专业翻译分析并修改 //尹成QQ77025077 //尹成微信18510341407 //尹成所在QQ群721929980 //尹成邮箱 <EMAIL> //尹成毕业于清华大学,微软区块链领域全球最有价值专家 //https://mvp.microsoft.com/zh-cn/PublicProfile/4033620 //———————————————————————————————————————————————————————————————————————————————————————————————————————————————— /* 此文件是Rippled的一部分:https...
32.63
78
(translation_unit) "//此源码被清华学神尹成大魔王专业翻译分析并修改\n//尹成QQ77025077\n//尹成微信18510341407\n//尹成所在QQ群721929980\n//尹成邮箱 <EMAIL>\n//尹成毕业于清华大学,微软区块链领域全球最有价值专家\n//https://mvp.microsoft.com/zh-cn/PublicProfile/4033620\n//————————————————————————————————————————————————————————————————————————————————————————————————————————————————\n/...
524
38
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 32.63, "nodes": 353, "errors": 0, "source_hash": "53b924d54bb5c96cf592304265bf3cb330f9266e8a2a8a07efbf33384d03a4f1", "categorized_nodes": 242}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "=\n ...
13,641
c
// Copyright (c) 2019 <NAME> <<EMAIL>> // // This software may be modified and distributed under the terms // of the MIT license. See the LICENSE file for details. #pragma once #include <memory> #include <string> #include <netinet/in.h> class Bytes; class UdpHandler { public: virtual ~UdpHandler() = default; vir...
27.77
26
(translation_unit) "// Copyright (c) 2019 <NAME> <<EMAIL>>\n//\n// This software may be modified and distributed under the terms\n// of the MIT license. See the LICENSE file for details.\n\n#pragma once\n#include <memory>\n#include <string>\n#include <netinet/in.h>\n\nclass Bytes;\n\nclass UdpHandler {\npublic:\n virt...
157
8
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 27.77, "nodes": 99, "errors": 0, "source_hash": "5a26b728e4da16703a81a70131fd19a3159acfb20268c7d9661a3a87c061de87", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,642
c
#include <stdio.h> #include <string.h> #include <windows.h> char *str_replace(char *orig, char *rep, char *with) { char *result; char *ins; char *tmp; int len_rep; int len_with; int len_front; int count; if (!orig || !rep) return NULL; len_rep = strlen(rep); if (len_rep...
24.09
55
(translation_unit) "#include <stdio.h>\n#include <string.h>\n#include <windows.h>\n\nchar *str_replace(char *orig, char *rep, char *with) {\n char *result;\n char *ins;\n char *tmp;\n int len_rep;\n int len_with;\n int len_front;\n int count;\n\n if (!orig || !rep)\n return NULL;\n len...
544
4
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 24.09, "nodes": 352, "errors": 0, "source_hash": "47eabbe72fb53f8d2ce49d7f6aec3892ac0ea655d1f8898c7f7dda23b13fe052", "categorized_nodes": 232}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,643
c
// // Created by Daryl on 6/4/17. // #ifndef P9_BST_H #define P9_BST_H #include <iostream> template <typename T> class BSTNode; template <typename T> class BST { private: BSTNode<T> *root; // functions void push(const T& data, BSTNode<T>* node); void pop(T& data, BSTNode<T>*& node); public: BST(); ~B...
17.14
36
(translation_unit) "//\n// Created by Daryl on 6/4/17.\n//\n\n#ifndef P9_BST_H\n#define P9_BST_H\n\n#include <iostream>\n\ntemplate <typename T>\nclass BSTNode;\n\ntemplate <typename T>\nclass BST\n{\nprivate:\n BSTNode<T> *root;\n\n // functions\n\n void push(const T& data, BSTNode<T>* node);\n void pop(T& data, B...
268
15
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 17.14, "nodes": 172, "errors": 0, "source_hash": "d9b20ca6b40aa67bfdfec1b60453a0ec69028adbaecb56d1eb37837d328fd368", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,644
c
<% if is_int && !is_object %> typedef double seq_data_t; <% else %> typedef dtype seq_data_t; <% end %> <% if is_object %> typedef size_t seq_count_t; <% else %> typedef double seq_count_t; <% end %> typedef struct { seq_data_t beg; seq_data_t step; seq_count_t count; } seq_opt_t; static void <%=c_iter%>...
24.56
85
(translation_unit) "<% if is_int && !is_object %>\ntypedef double seq_data_t;\n<% else %>\ntypedef dtype seq_data_t;\n<% end %>\n\n<% if is_object %>\ntypedef size_t seq_count_t;\n<% else %>\ntypedef double seq_count_t;\n<% end %>\n\ntypedef struct {\n seq_data_t beg;\n seq_data_t step;\n seq_count_t count;\n}...
656
26
{"language": "c", "success": true, "metadata": {"lines": 85, "avg_line_length": 24.56, "nodes": 425, "errors": 0, "source_hash": "0b483778b701287d547bf4d3e67d8ea8a55cca8693b08903ed8b5e6c67da1e08", "categorized_nodes": 255}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "<% if is_int &...
13,645
c
// // FXTextView.h // testControl // // Created by Aka on 2019/10/1. // Copyright © 2019 Aka. All rights reserved. // #import <Cocoa/Cocoa.h> NS_ASSUME_NONNULL_BEGIN @interface FXTextView : NSTextView @end NS_ASSUME_NONNULL_END
18.33
12
(translation_unit) "//\n// FXTextView.h\n// testControl\n//\n// Created by Aka on 2019/10/1.\n// Copyright © 2019 Aka. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface FXTextView : NSTextView\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" (comment) "// FXTextView...
27
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 18.33, "nodes": 14, "errors": 0, "source_hash": "31c25b02c0fc9fae12e282ac39416f047fe5f324f74b3b92bda6714c0dcd0198", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <Co...
13,646
c
#ifndef AVLTREE_INDEX_H #define AVLTREE_INDEX_H #include "avltree.h" #include "index_interface.h" using std::ifstream; class AvlTree_Index : public Index_Interface{ public: AvlTree_Index(); void load_Index(); word& search_Index(word&); void insert_In_Index(word&, stri...
20.3
23
(translation_unit) "#ifndef AVLTREE_INDEX_H \n#define AVLTREE_INDEX_H \n \n#include "avltree.h" \n#include "index_interface.h" \n \nusing std::ifstream; \n \nclass AvlTree_Index : public Index_Interface{ \n public: \n AvlTree_Index(); \n void load_Index(); \n word& search_Index(word&); \n ...
121
8
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 20.3, "nodes": 65, "errors": 0, "source_hash": "4a1925c203d33760d0e1446ae02c72fd37564d9fa681e6ddfc377452fa50ca77", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef A...
13,647
c
#ifndef CODEGEN_GENCONTROL_H #define CODEGEN_GENCONTROL_H #include <platform.h> #include "codegen.h" PONY_EXTERN_C_BEGIN LLVMValueRef gen_seq(compile_t* c, ast_t* ast); LLVMValueRef gen_if(compile_t* c, ast_t* ast); LLVMValueRef gen_iftype(compile_t* c, ast_t* ast); LLVMValueRef gen_while(compile_t* c, ast_t* ast...
40.32
25
(translation_unit) "#ifndef CODEGEN_GENCONTROL_H\n#define CODEGEN_GENCONTROL_H\n\n#include <platform.h>\n#include "codegen.h"\n\nPONY_EXTERN_C_BEGIN\n\nLLVMValueRef gen_seq(compile_t* c, ast_t* ast);\n\nLLVMValueRef gen_if(compile_t* c, ast_t* ast);\n\nLLVMValueRef gen_iftype(compile_t* c, ast_t* ast);\n\nLLVMValueRef ...
289
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 40.32, "nodes": 224, "errors": 0, "source_hash": "aca6449cc21eea20774df72f7e1e2bbea6d53f76a24c5ecbc4824683e8cd773d", "categorized_nodes": 152}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,648
c
/** * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <string> #include <unordered_map> #include <vector> namespace fl { namespace...
30.46
41
(translation_unit) "/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n#pragma once\n\n#include <string>\n#include <unordered_map>\n#include <v...
334
21
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 30.46, "nodes": 206, "errors": 0, "source_hash": "aa7bf9cd3ed2bbe3605e465586743e11ccec6fdf4c55debc783201d832e6d1ee", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
13,649
c
/* * StringIdManager.h * * Created on: Sep 21, 2010 * Author: dannuic */ #ifndef STRINGIDMANAGER_H_ #define STRINGIDMANAGER_H_ #include "server/zone/objects/scene/variables/StringId.h" namespace server { namespace zone { namespace managers { namespace stringid { class StringIdManager : public Logger, pub...
22.5
30
(translation_unit) "/*\n * StringIdManager.h\n *\n * Created on: Sep 21, 2010\n * Author: dannuic\n */\n\n#ifndef STRINGIDMANAGER_H_\n#define STRINGIDMANAGER_H_\n\n#include "server/zone/objects/scene/variables/StringId.h"\n\nnamespace server {\nnamespace zone {\nnamespace managers {\nnamespace stringid {\n\nclass...
153
9
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 22.5, "nodes": 84, "errors": 0, "source_hash": "164a1df8f2414696a98fc33efab186dc1d75839ae81cf89c3183c604ae381e5e", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef S...
13,650
c
#ifndef GENERALSETTINGS_H #define GENERALSETTINGS_H #include <QSettings> #include <QApplication> #include <QDebug> #include <QDir> class ClientSettings; class GeneralSettings { friend class GeneralSettingsInstance; public: static GeneralSettings* getInstance(); ~GeneralSettings(); void reInit(...
26.54
35
(translation_unit) "#ifndef GENERALSETTINGS_H\n#define GENERALSETTINGS_H\n\n#include <QSettings>\n#include <QApplication>\n#include <QDebug>\n#include <QDir>\n\nclass ClientSettings;\n\nclass GeneralSettings { \n friend class GeneralSettingsInstance;\n\npublic:\n static GeneralSettings* getInstance();\n\n ~...
232
2
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 26.54, "nodes": 146, "errors": 0, "source_hash": "d821f5c5d4d5d0625deb87da6cfe481c9f89165b0234c627d4b79c744938ef9b", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,651
c
#ifdef E_TYPEDEFS typedef struct _E_Event_Desklock E_Event_Desklock; typedef Eina_Bool (*E_Desklock_Show_Cb)(void); typedef void (*E_Desklock_Hide_Cb)(void); typedef enum _E_Desklock_Background_Method { E_DESKLOCK_BACKGROUND_METHOD_THEME_DESKLOCK = 0, E_DESKLOCK_BACKGROUND_METHOD_THEME, E_DESKLOCK_BACKGRO...
31.64
64
(translation_unit) "#ifdef E_TYPEDEFS\n\ntypedef struct _E_Event_Desklock E_Event_Desklock;\ntypedef Eina_Bool (*E_Desklock_Show_Cb)(void);\ntypedef void (*E_Desklock_Hide_Cb)(void);\n\ntypedef enum _E_Desklock_Background_Method {\n E_DESKLOCK_BACKGROUND_METHOD_THEME_DESKLOCK = 0,\n E_DESKLOCK_BACKGROUND_METHOD_T...
417
13
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 31.64, "nodes": 300, "errors": 0, "source_hash": "ea1b4db006739ee580f6aa5c12f9e9202f7c900c5b9fc75dfc336b5acd27d8b7", "categorized_nodes": 219}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef...
13,652
c
#pragma once #include <glm/glm.hpp> namespace TM { class Ray { public: glm::vec3 Origin; glm::vec3 Direction; float Limit; Ray(); Ray(glm::vec3 origin, glm::vec3 dir); float Intersects(glm::vec3 v0, glm::vec3 v1, glm::vec3 v2); }; }
18.08
13
(translation_unit) "#pragma once\n\n#include <glm/glm.hpp>\n\nnamespace TM {\n class Ray {\n public:\n glm::vec3 Origin;\n glm::vec3 Direction;\n float Limit;\n\n Ray();\n Ray(glm::vec3 origin, glm::vec3 dir);\n\n float Intersects(glm::vec3 v0, glm::vec3 v1, glm::vec3 v2);\n };\n}" (preproc_call) "#pragma once\...
104
7
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 18.08, "nodes": 59, "errors": 0, "source_hash": "81d7170bcad44044b35ef24c1ecb079c2c66d15fb985a6ac053508d0ec0362f5", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,653
c
/* * Copyright (c) 2019,2020 Linaro Limited * * SPDX-License-Identifier: Apache-2.0 */ #include <stdarg.h> #include "psa/error.h" #include "psa/initial_attestation.h" #include "psa/protected_storage.h" #ifdef __cplusplus extern "C" { #endif /** * @brief Logs PSA response messages other than PSA_SUCCESS for deb...
25.21
29
(translation_unit) "/*\n * Copyright (c) 2019,2020 Linaro Limited\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\n#include <stdarg.h>\n\n#include "psa/error.h"\n#include "psa/initial_attestation.h"\n#include "psa/protected_storage.h"\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n/**\n * @brief Logs PSA response me...
73
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 25.21, "nodes": 45, "errors": 0, "source_hash": "281feb62d7d71ccc7b91ca7460a0c75d581a44b7440a225ed1150e501822842f", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
13,654
c
// // NMLViewController.h // Auto Layout Is a Unicorn // // Created by <NAME> on 3/4/14. // Copyright (c) 2014 Nice Mohawk Limited. All rights reserved. // #import <UIKit/UIKit.h> @interface NMLViewController : UIViewController @end
22.7
10
(translation_unit) "//\n// NMLViewController.h\n// Auto Layout Is a Unicorn\n//\n// Created by <NAME> on 3/4/14.\n// Copyright (c) 2014 Nice Mohawk Limited. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface NMLViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// NMLViewCont...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 22.7, "nodes": 9, "errors": 0, "source_hash": "74d5b2558cc2f636e2b4da372fde91039639ae274df533348525f14f995b367e", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UIK...
13,655
c
// // FileTableViewCell.h // CustomKMLPlayer // // Created by <NAME> on 03.06.15. // Copyright (c) 2015 PeLa. All rights reserved. // #import <UIKit/UIKit.h> @class FileSystemItem; @interface FileSystemTableViewCell : UITableViewCell - (void)update:(FileSystemItem*)item; @end
16.81
16
(translation_unit) "//\n// FileTableViewCell.h\n// CustomKMLPlayer\n//\n// Created by <NAME> on 03.06.15.\n// Copyright (c) 2015 PeLa. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n\n@class FileSystemItem;\n\n\n@interface FileSystemTableViewCell : UITableViewCell\n\n\n- (void)update:(FileSystemItem*)item;\...
46
7
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 16.81, "nodes": 24, "errors": 0, "source_hash": "7534750c38fbb24da45401c679df24a975f7eda7a24b7225b503ad8a69608bd1", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
13,656
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @class CSSearchableIndex; @interface INUpcomingMediaManager : NSObject { CSSearchableIndex *_index; } + (id)sharedManager; + (id)mediaQueue; @property(readonly...
35.48
23
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n@class CSSearchableIndex;\n\n@interface INUpcomingMediaManager : NSObject\n{\n CSSearchableIndex *_index;\n}\n\n+ (id)sharedManager;\n...
250
24
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 35.48, "nodes": 149, "errors": 0, "source_hash": "9add688768f7486f7fb0faed5e12cc105dce969e3c4f80b14a9ee12dbdaf1b4b", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
13,657
c
#ifndef _FFT_H #define _FFT_H #include "macros.h" typedef struct _COMPLEX { double real; double imag; } COMPLEX, *PCOMPLEX; COMPLEX* _cdecl fft(COMPLEX* f, uint32_t n, int32_t s); COMPLEX* realfft(COMPLEX* f, uint32_t n, int32_t s); #endif
21.64
11
(translation_unit) "#ifndef _FFT_H\n#define _FFT_H\n\n#include "macros.h"\n\ntypedef struct _COMPLEX {\n double real;\n double imag;\n} COMPLEX, *PCOMPLEX;\n\n\n\nCOMPLEX* _cdecl fft(COMPLEX* f, uint32_t n, int32_t s);\nCOMPLEX* realfft(COMPLEX* f, uint32_t n, int32_t s);\n\n#endif" (preproc_ifdef) "#ifndef _FF...
83
3
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 21.64, "nodes": 61, "errors": 0, "source_hash": "643755dbd6dc141eb5ea99bc9238a016b2a4d5119b98254622d143c4481ec7da", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,658
c
#include <ext2.h> #include <kstring.h> static int32_t search(INODE *ip, const char *name, read_block_func_t read_block, char* buf) { int32_t i; char c, *cp; DIR *dp; for (i=0; i<12; i++){ if ( ip->i_block[i] ){ read_block(ip->i_block[i], buf); dp = (DIR *)buf; cp = buf; while (cp < &buf[SDC_BLOCK_...
22.72
108
(translation_unit) "#include <ext2.h>\n#include <kstring.h>\n\nstatic int32_t search(INODE *ip, const char *name, read_block_func_t read_block, char* buf) {\n int32_t i; \n char c, *cp;\n DIR *dp;\n\n for (i=0; i<12; i++){\n if ( ip->i_block[i] ){\n read_block(ip->i_block[i], buf);\n dp = (DIR *)buf;\n cp = buf...
1,085
0
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 22.72, "nodes": 687, "errors": 0, "source_hash": "a6b607fe1dd897f209d574594c0989ccb3a60f33158718cdd8ead01406ec40ce", "categorized_nodes": 470}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
13,659
c
// Copyright (c) 2000 Max-Planck-Institute Saarbruecken (Germany). // All rights reserved. // // This file is part of CGAL (www.cgal.org). // You can redistribute it and/or modify it under the terms of the GNU // General Public License as published by the Free Software Foundation, // either version 3 of the License, o...
31.2
59
(translation_unit) "// Copyright (c) 2000 Max-Planck-Institute Saarbruecken (Germany).\n// All rights reserved.\n//\n// This file is part of CGAL (www.cgal.org).\n// You can redistribute it and/or modify it under the terms of the GNU\n// General Public License as published by the Free Software Foundation,\n// either v...
275
19
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 31.2, "nodes": 146, "errors": 0, "source_hash": "859aa9edfaa58d942f8f3e6bf100cbb4b662fac165f5832304001b56e3890296", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,660
c
// Copyright <NAME> & <NAME> 2010-2012. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef IGLOO_CONSTRAINTS_H #define IGLOO_CONSTRAINTS_H #include "containsconstraint.h" #i...
32.41
22
(translation_unit) "// Copyright <NAME> & <NAME> 2010-2012. \n// Distributed under the Boost Software License, Version 1.0. \n// (See accompanying file LICENSE_1_0.txt or copy at \n// http://www.boost.org/LICENSE_1_0.txt) \n \n#ifndef IGLOO_CONSTRAINTS_H \n#define IGLOO_CONSTRAINTS_H \n \n#include ...
84
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 32.41, "nodes": 43, "errors": 0, "source_hash": "fabaf72afa46526f6aa3a9f572966335f7a6ac5c9cf02f4ebec34822efb4b52a", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,661
c
/* * CoreVideo video output driver * * Copyright (c) 2005 <NAME> <<EMAIL>> * * This file is part of MPlayer. * * MPlayer is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License...
30.19
80
(translation_unit) "/*\n * CoreVideo video output driver\n *\n * Copyright (c) 2005 <NAME> <<EMAIL>>\n *\n * This file is part of MPlayer.\n *\n * MPlayer is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; ei...
521
40
{"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 30.19, "nodes": 322, "errors": 0, "source_hash": "aa9afceec0631909f658bfd1fa5a81c6a973e88285dc5fd40d29b70d6eb64e23", "categorized_nodes": 184}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,662
c
#include "Ft_Esd.h" #include "Ft_Esd_ScrollPanel.h" #include "Ft_Esd_Layout.h" #include "Ft_Esd_Dl.h" #include "Ft_Esd_TouchArea.h" #include <stdlib.h> extern Ft_Gpu_Hal_Context_t *Ft_Esd_Host; #define FT_ESD_SCROLLPANEL_SCISSOR 2 ESD_METHOD(Ft_Esd_ScrollPanel_Update_Scroll, Context = Ft_Esd_ScrollPanel) void Ft_Es...
30.22
143
(translation_unit) "#include "Ft_Esd.h"\n#include "Ft_Esd_ScrollPanel.h"\n#include "Ft_Esd_Layout.h"\n#include "Ft_Esd_Dl.h"\n#include "Ft_Esd_TouchArea.h"\n\n#include <stdlib.h>\n\nextern Ft_Gpu_Hal_Context_t *Ft_Esd_Host;\n\n#define FT_ESD_SCROLLPANEL_SCISSOR 2\n\nESD_METHOD(Ft_Esd_ScrollPanel_Update_Scroll, Context ...
1,299
0
{"language": "c", "success": true, "metadata": {"lines": 143, "avg_line_length": 30.22, "nodes": 860, "errors": 0, "source_hash": "c6e228c6f56a2c6c4e1b1ba735b4a7a689a2410792c084ad1af03d01fdd39976", "categorized_nodes": 658}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
13,663
c
// // QRViewController.h // mbp_purse // // Created by 刘彬 on 16/7/26. // Copyright © 2016年 刘彬. All rights reserved. // #import <UIKit/UIKit.h> #import "QRView.h" @interface QRViewController : UIViewController<AVCaptureMetadataOutputObjectsDelegate> @property(nonatomic,strong)QRView *qrView; @property (nonatomic,co...
28.86
14
(translation_unit) "//\n// QRViewController.h\n// mbp_purse\n//\n// Created by 刘彬 on 16/7/26.\n// Copyright © 2016年 刘彬. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "QRView.h"\n@interface QRViewController : UIViewController<AVCaptureMetadataOutputObjectsDelegate>\n@property(nonatomic,strong)QRView *...
95
11
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 28.86, "nodes": 63, "errors": 0, "source_hash": "e7fe6b1f09885e6880b9fe44981dd16a67958ec5dad9707419a45041b65eff7f", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Kit/UIKit...
13,664
c
#ifndef LINKEDLIST_H #define LINKEDLIST_H #ifndef FALLOC_H # error must include falloc #endif #ifndef CORE_H # include "Core.h" #endif namespace System { template <typename T> class LinkedList; template <typename T> class LinkedListNode { friend class LinkedList<T>; private: LinkedList<...
27.12
307
(translation_unit) "#ifndef LINKEDLIST_H \n#define LINKEDLIST_H \n \n#ifndef FALLOC_H \n# error must include falloc \n#endif \n#ifndef CORE_H \n# include "Core.h" \n#endif \n \nnamespace System { \n \n template <typename T> \n class LinkedList; \n \n template <typename T> \n class LinkedListNode \n { \n friend class Li...
2,211
34
{"language": "c", "success": true, "metadata": {"lines": 307, "avg_line_length": 27.12, "nodes": 1428, "errors": 0, "source_hash": "1a3165848b595d441e2595a4c2822bc185a7b161093831e2ee30e6d900003106", "categorized_nodes": 1004}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#if...
13,665
c
/* PR target/24284 */ /* { dg-do compile { target sparc*-*-* } } */ /* { dg-options "-O -g" } */ void do_run(void *ip) { char dummy[8192]; __asm__("" : : "g"(dummy)); goto *ip; }
19.56
9
(translation_unit) "/* PR target/24284 */\n/* { dg-do compile { target sparc*-*-* } } */\n/* { dg-options "-O -g" } */\n\nvoid do_run(void *ip)\n{\n char dummy[8192];\n\n __asm__("" : : "g"(dummy));\n\n goto *ip;\n}\n" (comment) "/* PR target/24284 */" (comment) "/* { dg-do compile { target sparc*-*-* } } */" ...
54
1
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 19.56, "nodes": 27, "errors": 0, "source_hash": "85c723afad439866c1487345d43c1276b66896c9009f70bfc5c7715f5b55c3ed", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "voi...
13,666
c
/** * \copyright * Copyright (c) 2012-2016, OpenGeoSys Community (http://www.opengeosys.org) * Distributed under a Modified BSD License. * See accompanying file LICENSE.txt or * http://www.opengeosys.org/project/license * */ #ifndef MESHLIB_POINTRULE1_H_ #define MESHLIB_POIN...
38.22
54
(translation_unit) "/**\n * \copyright\n * Copyright (c) 2012-2016, OpenGeoSys Community (http://www.opengeosys.org)\n * Distributed under a Modified BSD License.\n * See accompanying file LICENSE.txt or\n * http://www.opengeosys.org/project/license\n *\n */\n\n#ifndef MESHLIB_POINT...
267
4
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 38.22, "nodes": 137, "errors": 0, "source_hash": "2844e1a5fc391f521eee4aae540465c08ab2fa18d511759766a9bc4d151bad80", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
13,667
c
#pragma once /* * Notify the systemd service manager about service status changes. * * See `sd_notify(3)` for usage information. */ void epicsSystemdNotify(char const* state); /* * Tells the systemd service manager that service startup is finished. * * This should be used with a `Type=notify` systemd service. ...
27.2
25
(translation_unit) "#pragma once\n\n/*\n * Notify the systemd service manager about service status changes.\n *\n * See `sd_notify(3)` for usage information.\n */\nvoid epicsSystemdNotify(char const* state);\n\n/*\n * Tells the systemd service manager that service startup is finished.\n *\n * This should be used with a...
53
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 27.2, "nodes": 34, "errors": 0, "source_hash": "fc757e158ce78af577017ff6e7ca75732a906d2b42f5aea0a95b57a89871978c", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
13,668
c
// // SignUpViewController_NEW.h // SocialCar // // Created by <NAME> (CERTH) on 11/09/17. // Copyright © 2017 CERTH. All rights reserved. // #import <UIKit/UIKit.h> #import <Google/SignIn.h> #import "SharedProfileData.h" #import "SharedDriverProfileData.h" #import "MenuTabBarController.h" #import "ProfileDataVi...
34.29
35
(translation_unit) "//\n// SignUpViewController_NEW.h\n// SocialCar\n//\n// Created by <NAME> (CERTH) on 11/09/17.\n// Copyright © 2017 CERTH. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import <Google/SignIn.h>\n#import "SharedProfileData.h"\n#import "SharedDriverProfileData.h"\n\n#import "MenuTabBarCon...
238
23
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 34.29, "nodes": 165, "errors": 0, "source_hash": "2d8cc02137d86602262221216c120f0112fd883d9e6dcfc30c1c25543226bf3c", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <...
13,669
c
#pragma once #include "GeometryBase.h" class Triangle : public GeometryBase { public: Triangle() = delete; explicit Triangle(XYZ p0, XYZ p1, XYZ p2); virtual ~Triangle() = default; Triangle(const Triangle& rhs) = delete; Triangle(Triangle&& rhs) = default; Triangle& operator=(const Triangle&)...
35.18
28
(translation_unit) "#pragma once\n\n#include "GeometryBase.h"\n\nclass Triangle : public GeometryBase\n{\npublic:\n Triangle() = delete;\n explicit Triangle(XYZ p0, XYZ p1, XYZ p2);\n virtual ~Triangle() = default;\n\n Triangle(const Triangle& rhs) = delete;\n Triangle(Triangle&& rhs) = default;\n Tri...
282
16
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 35.18, "nodes": 178, "errors": 0, "source_hash": "4eb7f46583c0ad890124ebe232df80b291599af11a7e5c0c52f637a718dc6488", "categorized_nodes": 123}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
13,670
c
#pragma once inline void CRASH_ASSERT(bool isOk) { if ( isOk ) return; int* crashVal = 0; *crashVal = 0xDEADBEEF; } template <typename T> struct is_shared_ptr { const static bool value = false; }; template <typename T> struct is_shared_ptr<std::shared_ptr<T> > { const static bool value = true; }; template <...
18.24
33
(translation_unit) "#pragma once\n\ninline void CRASH_ASSERT(bool isOk)\n{\n if ( isOk )\n return;\n\n int* crashVal = 0;\n *crashVal = 0xDEADBEEF;\n}\n\ntemplate <typename T>\nstruct is_shared_ptr\n{\n const static bool value = false;\n};\n\ntemplate <typename T>\nstruct is_shared_ptr<std::shared_ptr<T> >\n{\n const ...
238
20
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 18.24, "nodes": 162, "errors": 0, "source_hash": "2b3d6e3a88d2c698b78ecd05910650cb31aac6ca9f54ee0ea536efa59c255e4c", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
13,671
c
/* * ===================================================================================== * Filename: mainwindow.h * Description: * Created: 2014-02-01 18:31 * Author: <NAME> (<EMAIL>) * Company: XMementoIT Limited (<EMAIL>) * ===================================...
28.05
21
(translation_unit) "/*\n * =====================================================================================\n * Filename: mainwindow.h\n * Description: \n * Created: 2014-02-01 18:31\n * Author: <NAME> (<EMAIL>)\n * Company: XMementoIT Limited (<EMAIL>)\n * ========...
55
3
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 28.05, "nodes": 33, "errors": 0, "source_hash": "81db1bbb37e7b5cb4ac2459335fe913c61a7ccd4da1970fa47513759df6bde30", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,672
c
// // FlyingItemParser.h // FlyingEnglish // // Created by BE_Air on 10/1/13. // Copyright (c) 2013 <NAME>. All rights reserved. // typedef void (^ItemParserCompletionBlock)(NSArray *itemList,NSInteger allRecordCount); typedef void (^ItemParserFailureBlock)(NSError *error); #import <Foundation/Foundation.h> @int...
33.65
17
(translation_unit) "//\n// FlyingItemParser.h\n// FlyingEnglish\n//\n// Created by BE_Air on 10/1/13.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\ntypedef void (^ItemParserCompletionBlock)(NSArray *itemList,NSInteger allRecordCount);\ntypedef void (^ItemParserFailureBlock)(NSError *error);\n\n#import ...
143
15
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 33.65, "nodes": 92, "errors": 0, "source_hash": "4f5f4c837dead7b45c459e2d1add83e382e6d11eeb3641bc1b7807dd7356a0df", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "typede...
13,673
c
#pragma once #include "init.h" int SocketPair(SOCKET socks[2], bool overlapped, bool cloexec=false); static inline int SocketPair(SOCKET socks[2]) { return SocketPair(socks, false, false); }
31.5
6
(translation_unit) "#pragma once\n\n#include "init.h"\n\nint SocketPair(SOCKET socks[2], bool overlapped, bool cloexec=false);\n\nstatic inline int SocketPair(SOCKET socks[2]) {\n return SocketPair(socks, false, false);\n}\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once...
72
1
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 31.5, "nodes": 44, "errors": 0, "source_hash": "8f65beb4a236361ba63921e7f2c98435f0f3560363f8925e4e014ee0ba3c7838", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
13,674
c
#ifndef MISAKA_ASYNCLOGGING_H #define MISAKA_ASYNCLOGGING_H #include "Mutex.h" #include "Condition.h" #include "CountDownLatch.h" #include "Thread.h" #include "noncopyable.h" #include "LogStream.h" #include <atomic> #include <memory> #include <vector> namespace Misaka { class AsyncLogging : noncopyable { public: A...
19.47
60
(translation_unit) "#ifndef MISAKA_ASYNCLOGGING_H\n#define MISAKA_ASYNCLOGGING_H\n\n#include "Mutex.h"\n#include "Condition.h"\n#include "CountDownLatch.h"\n#include "Thread.h"\n#include "noncopyable.h"\n#include "LogStream.h"\n\n#include <atomic>\n#include <memory>\n#include <vector>\n\nnamespace Misaka\n{\n\nclass As...
369
14
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 19.47, "nodes": 222, "errors": 0, "source_hash": "e3c93ebadcdc8d97fecc41e1cef7e80da1a3570c9cf20c84048521fa006308a1", "categorized_nodes": 160}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,675
c
#ifndef PARANOIA_WRITER_H #define PARANOIA_WRITER_H #include <iostream> #include <sstream> #include "msg_queue.h" #include "events/process_event.h" #include "procfs_cache.h" enum class OutputFormat { TEXT, JSON }; class ProcessEventWriter { public: explicit ProcessEventWriter(ProcFSCache& cache, const OutputForm...
31.39
18
(translation_unit) "#ifndef PARANOIA_WRITER_H\n#define PARANOIA_WRITER_H\n\n#include <iostream>\n#include <sstream>\n\n#include "msg_queue.h"\n#include "events/process_event.h"\n#include "procfs_cache.h"\n\nenum class OutputFormat { TEXT, JSON };\n\nclass ProcessEventWriter {\n public:\n explicit ProcessEventWriter(Pr...
159
8
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 31.39, "nodes": 95, "errors": 0, "source_hash": "0bc942094e4666c8d1dbab30838dfb4ad153b14f54c0a4ab688be05a5ee35234", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef PARANOIA...
13,676
c
/* PROJECT: Yarra Engine AUTHORS: <NAME>, Melbourne Australia COPYRIGHT: Yarra Engine 2008-2011, ZenYes Pty Ltd DESCRIPTION: Render definitions and data structures. */ #ifndef __YARRA_RENDER_DEFINITIONS_H__ #define __YARRA_RENDER_DEFINITIONS_H__ /***************************************************************...
26.74
158
(translation_unit) "/* PROJECT: Yarra Engine\n AUTHORS: <NAME>, Melbourne Australia\n COPYRIGHT: Yarra Engine 2008-2011, ZenYes Pty Ltd\n DESCRIPTION: Render definitions and data structures. \n*/\n\n#ifndef __YARRA_RENDER_DEFINITIONS_H__\n#define __YARRA_RENDER_DEFINITIONS_H__\n\n/**********************************...
670
3
{"language": "c", "success": true, "metadata": {"lines": 158, "avg_line_length": 26.74, "nodes": 358, "errors": 0, "source_hash": "cf266d86e55981791cd3fcec69c52e1ca0e54004b952c40914bc83da5723cbb6", "categorized_nodes": 265}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
13,677
c
/*******************************************************/ /* CUDF solver: leximax_combiner.h */ /* a concrete class for a leximax order combiner */ /* (c) <NAME> (UNSA-CNRS) 2009,2010,2011 */ /*******************************************************/ #ifndef __LEXIMAX_COMBINER_H #define _...
38.47
45
(translation_unit) "/*******************************************************/\n/* CUDF solver: leximax_combiner.h */\n/* a concrete class for a leximax order combiner */\n/* (c) <NAME> (UNSA-CNRS) 2009,2010,2011 */\n/*******************************************************/\n\n\n#ifndef __LE...
266
3
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 38.47, "nodes": 161, "errors": 0, "source_hash": "a6a0f8522424427598b89e3c059171c6ab1d626cf6172c8bfa9dfeefbc563842", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,678
c
#ifndef TABS_PROCESSES_H #define TABS_PROCESSES_H #include "status.h" #include <gtkmm/box.h> #include <gtkmm/builder.h> #include <gtkmm/scrolledwindow.h> #include <gtkmm/searchentry.h> #include <gtkmm/treemodel.h> #include <gtkmm/treemodelcolumn.h> #include <gtkmm/treestore.h> #include <gtkmm/treeview.h> #include <me...
25.59
27
(translation_unit) "#ifndef TABS_PROCESSES_H\n#define TABS_PROCESSES_H\n\n#include "status.h"\n\n#include <gtkmm/box.h>\n#include <gtkmm/builder.h>\n#include <gtkmm/scrolledwindow.h>\n#include <gtkmm/searchentry.h>\n#include <gtkmm/treemodel.h>\n#include <gtkmm/treemodelcolumn.h>\n#include <gtkmm/treestore.h>\n#include...
154
7
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 25.59, "nodes": 96, "errors": 0, "source_hash": "fd457cd826b9026a16e242127a9c86227bd1e445aedfc4f9d5cb78ea539936f6", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,679
c
// Copyright (c) 2018-2019, <NAME>. For more information see 'LICENSE' #pragma once #include "scene/Renderer/Enums.h" #include "scene/Math/AABB.h" #include "scene/Math/Sphere.h" namespace FG { // // Viewport interface // class IViewport : public std::enable_shared_from_this<IViewport> { // interface public...
23.61
23
(translation_unit) "// Copyright (c) 2018-2019, <NAME>. For more information see 'LICENSE'\n\n#pragma once\n\n#include "scene/Renderer/Enums.h"\n#include "scene/Math/AABB.h"\n#include "scene/Math/Sphere.h"\n\nnamespace FG\n{\n\n //\n // Viewport interface\n //\n\n class IViewport : public std::enable_shared_from_this<...
120
6
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 23.61, "nodes": 64, "errors": 0, "source_hash": "54419d5081bfd298c20e16dd9b395e570c4ab5281223e40c408b669dc7a37e01", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,680
c
/* * Copyright (C) 2018 <NAME> <<EMAIL>> * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @ingroup boards_common_silabs_drivers_pic * @{ * * @file * @brief Implementati...
24.37
68
(translation_unit) "/*\n * Copyright (C) 2018 <NAME> <<EMAIL>>\n *\n * This file is subject to the terms and conditions of the GNU Lesser\n * General Public License v2.1. See the file LICENSE in the top level\n * directory for more details.\n */\n\n/**\n * @ingroup boards_common_silabs_drivers_pic\n * @{\n *\n * @f...
221
0
{"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 24.37, "nodes": 129, "errors": 0, "source_hash": "626242559eee3c3c68af820d62d9b7971f64b6532e844ee0a050672ed44091ec", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
13,681
c
// // HHListExtension.h // HHListExtension // // Created by basalaev on 10.08.2018. // Copyright © 2018 Heads and Hands. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for HHListExtension. FOUNDATION_EXPORT double HHListExtensionVersionNumber; //! Project version string for HHListExte...
40.15
13
(translation_unit) "//\n// HHListExtension.h\n// HHListExtension\n//\n// Created by basalaev on 10.08.2018.\n// Copyright © 2018 Heads and Hands. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n//! Project version number for HHListExtension.\nFOUNDATION_EXPORT double HHListExtensionVersionNumber;\n\n//! Proj...
33
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 40.15, "nodes": 15, "errors": 0, "source_hash": "1d0dd91be450513d2d4b6f345f7930efb8bccc5a2594f1c5d4396dfd3f575516", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
13,682
c
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
30.92
83
(translation_unit) "/*\n * CDDL HEADER START\n *\n * The contents of this file are subject to the terms of the\n * Common Development and Distribution License (the "License").\n * You may not use this file except in compliance with the License.\n *\n * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE...
413
0
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 30.92, "nodes": 244, "errors": 0, "source_hash": "b92d90c2ce1fa11a59975f4f4af415b83a5917d371763d9663ae301c58719f49", "categorized_nodes": 199}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,683
c
#pragma once #ifndef __restrict__ #define __restrict__ #endif struct Grid { int n_fine; int n_coarse; int n_basis; int * support; // n_basis elements int * celltypes; // n_basis elements int * offsets; // n_coarse + 1 elements }; struct ConnMatrix { int n_i; int n_conn; double * conn; // n_i x n_c int * j_...
17.95
22
(translation_unit) "#pragma once\n#ifndef __restrict__\n#define __restrict__ \n#endif\nstruct Grid\n{\n int n_fine;\n int n_coarse;\n int n_basis;\n int * support; // n_basis elements\n int * celltypes; // n_basis elements\n int * offsets; // n_coarse + 1 elements\n};\n\nstruct ConnMatrix\n{\n int n_i;\n int n_conn;\n...
95
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 17.95, "nodes": 67, "errors": 0, "source_hash": "cac2f9502f22dc4c2df123ce3aeeb95a6bdcd87a22af2b7496277de043b6cc4f", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,684
c
// // See also http://cocoadays.blogspot.jp/2010/08/mime-type.html // and https://github.com/xcatsan/iOS-Sample-Code/tree/2010-08-10/UUTypeSample // #import <Foundation/Foundation.h> @interface DPUTIUtil : NSObject + (NSString*)pathExtensionFromMIMEType:(NSString*)MIMEType; + (NSString*)MIMETypeFromPath:(NSStrin...
35.53
15
(translation_unit) "//\n// See also http://cocoadays.blogspot.jp/2010/08/mime-type.html\n// and https://github.com/xcatsan/iOS-Sample-Code/tree/2010-08-10/UUTypeSample\n//\n\n\n#import <Foundation/Foundation.h>\n\n\n@interface DPUTIUtil : NSObject\n\n+ (NSString*)pathExtensionFromMIMEType:(NSString*)MIMEType;\n+ (NSS...
141
19
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 35.53, "nodes": 87, "errors": 0, "source_hash": "54ddfb04b472ed4a4d31ae7bb9e433d08c620e734d147895e9235214914f0ebb", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
13,685
c
///<NAME> //Sudoku Solver //See LICENSE for license information. // // #include "sudoku.h" int main() { board b; initialize(&b); display(&b); if(solve(&b)) { printf("\nSolved!\n"); } else { printf("\nNot Solvable.. Double check input.\n"); } display(&b); if (!dups(&b)) { printf("\nNo dups\n"); } els...
14
31
(translation_unit) "///<NAME>\n//Sudoku Solver\n//See LICENSE for license information.\n//\n//\n#include "sudoku.h"\n\nint main() {\n board b;\n initialize(&b);\n display(&b); \n if(solve(&b)) {\n printf("\nSolved!\n");\n }\n else {\n printf("\nNot Solvable.. Double check input.\n");\n }\n display(&b);\n\n if (!dups(...
205
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 14.0, "nodes": 91, "errors": 0, "source_hash": "d1c3a9f4fa094a9b233b1f36eb95e04169cc80177ea62dc7c97397d27c74df44", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
13,686
c
#include <stdlib.h> #include <stdio.h> #include <errno.h> #include <string.h> #include <stddef.h> #include <unistd.h> int roll_file(const char *file, int nkeep) { char *from = NULL, *to = NULL; from = malloc(strlen(file) + 1 + 20); to = malloc(strlen(file) + 1 + 20); sprintf(from, "%s.%d", file, nke...
23.88
24
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n#include <errno.h>\n#include <string.h>\n#include <stddef.h>\n\n#include <unistd.h>\n\nint roll_file(const char *file, int nkeep)\n{\n char *from = NULL, *to = NULL;\n\n from = malloc(strlen(file) + 1 + 20);\n to = malloc(strlen(file) + 1 + 20);\n\n ...
244
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 23.88, "nodes": 143, "errors": 0, "source_hash": "9c3f8dba818d971d1d8e08fb93b4d537a9b51023c5e5150f15867f83b0c40251", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
13,687
c
#pragma once #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <shlobj.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdexcept>
20.22
9
(translation_unit) "ragma once \n#define WIN32_LEAN_AND_MEAN \n#include <windows.h> \n#include <shlobj.h> \n#include <stdarg.h> \n#include <stdio.h> \n#include <stdlib.h> \n#include <string.h> \n#include <stdexcept> \n" (preproc_call) "ragma once \n#d" (preproc_directive) "ragma o" (preproc_arg) "ce \n#" (p...
28
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 20.22, "nodes": 27, "errors": 0, "source_hash": "40d0b8052159d6f102ce0872cafdb63be34056c0e2fa492ffb3b358461d7b54c", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma once...
13,688
c
#include<stdio.h> int main() { int n,i,j,a,b; scanf("%d",&n); for(i=0,j=n+1;i==0;j++){ i=0; for(a=2,b=0;a<=j-1;a++){ if(j%a==0) b++;} if(b==0){ printf("%d",j); i=1;} } return 0; }
11.18
17
(translation_unit) "#include<stdio.h>\nint main()\n{\n int n,i,j,a,b;\n scanf("%d",&n);\n for(i=0,j=n+1;i==0;j++){\n i=0;\n for(a=2,b=0;a<=j-1;a++){\n if(j%a==0)\n b++;}\n if(b==0){\n printf("%d",j);\n i=1;}\n \n }\n return 0;\n}" (preproc_include) "#include<stdio.h>\n" (#include) "#include" (sys...
157
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 11.18, "nodes": 94, "errors": 0, "source_hash": "cce2f3244f425cbdbe806eee5e868553ecd01f57fcddfa340f530034b25f6b03", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
13,689
c
#pragma once class Color; class OSWindow; class Renderable; class String; class Texture; class Vector2; class Vector3; #include "Engine/Core/String/DynamicString.h" class UI { public: enum EFlags { Flags_None = 0, NewFrameFlags_HasMainMenuBar = 1 << 0, NewFrameFlags_HasStatusBar = 1 << 1, WindowFla...
43.76
100
(translation_unit) "#pragma once\n\nclass Color;\nclass OSWindow;\nclass Renderable;\nclass String;\nclass Texture;\nclass Vector2;\nclass Vector3;\n\n#include "Engine/Core/String/DynamicString.h"\n\nclass UI\n{\npublic:\n enum EFlags\n {\n Flags_None = 0,\n\n NewFrameFlags_HasMainMenuBar = 1 << 0,\n NewFrameFl...
1,433
95
{"language": "c", "success": true, "metadata": {"lines": 100, "avg_line_length": 43.76, "nodes": 928, "errors": 0, "source_hash": "e3a8bc005631396f4042fc04dea90a5069d52aea6c76f81594eb1634c016ce04", "categorized_nodes": 622}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
13,690
c
/** * Professor <NAME> * <<EMAIL>> * <<EMAIL>> * Exemplo de uma Lista Encadeada */ #include <stdio.h> #include <stdlib.h> typedef struct Node{ int value; struct Node* next; } Node; Node* start(){ return NULL; } Node * insert(Node* list, int value){ Node *new = (Node*) malloc (sizeof(Node)); ...
18.69
243
(translation_unit) "/** \n* Professor <NAME> \n* <<EMAIL>> \n* <<EMAIL>> \n* Exemplo de uma Lista Encadeada \n*/ \n \n#include <stdio.h> \n#include <stdlib.h> \n \ntypedef struct Node{ \n int value; \n struct Node* next; \n} Node; \n \nNode* start(){ \n return NULL; \n} \n \nNode * insert(Node* list, int value){ \n Nod...
1,909
0
{"language": "c", "success": true, "metadata": {"lines": 243, "avg_line_length": 18.69, "nodes": 1180, "errors": 0, "source_hash": "b6f0a46d2de184b18b0df9935340f80c2521f3309faa18694da2de99a6101484", "categorized_nodes": 743}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
13,691
c
// SPDX-License-Identifier: GPL-2.0+ /* * MIPI-DSI Samsung s6d16d0 panel driver. This is a 864x480 * AMOLED panel with a command-only DSI interface. */ #include <drm/drm_modes.h> #include <drm/drm_mipi_dsi.h> #include <drm/drm_panel.h> #include <drm/drm_print.h> #include <linux/gpio/consumer.h> #include <linux/reg...
26.6
221
(translation_unit) "// SPDX-License-Identifier: GPL-2.0+\n/*\n * MIPI-DSI Samsung s6d16d0 panel driver. This is a 864x480\n * AMOLED panel with a command-only DSI interface.\n */\n\n#include <drm/drm_modes.h>\n#include <drm/drm_mipi_dsi.h>\n#include <drm/drm_panel.h>\n#include <drm/drm_print.h>\n\n#include <linux/gpio/...
1,636
1
{"language": "c", "success": true, "metadata": {"lines": 221, "avg_line_length": 26.6, "nodes": 1012, "errors": 0, "source_hash": "03fe86a8811d5c397523b8334ad3e0561287e3425eb4a80fa6e980c3c01941b7", "categorized_nodes": 749}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
13,692
c
/* * Copyright 2020 Bloomberg Finance LP * * 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 a...
37.1
61
(translation_unit) "/*\n * Copyright 2020 Bloomberg Finance LP\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 re...
232
11
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 37.1, "nodes": 122, "errors": 0, "source_hash": "829d40b3694ccde7aff998678db6380f03d6ae87edf0e6b9cb0f719fee43b043", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,693
c
#ifndef PARSER_H #define PARSER_H #include <vector> #include <sstream> #include "Node.h" #include "Program.h" #include "Lexer.h" class Parser { public: Parser(std::wstringstream& str); Program parse(); Token skipEmptyLines(); Node *begin(); std::vector<Node*> declarations(); Node *declaratio...
22.55
31
(translation_unit) "#ifndef PARSER_H\n#define PARSER_H\n#include <vector>\n#include <sstream>\n#include "Node.h"\n#include "Program.h"\n#include "Lexer.h"\n\nclass Parser\n{\npublic:\n Parser(std::wstringstream& str);\n\n Program parse();\n\n Token skipEmptyLines();\n\n Node *begin();\n std::vector<Node*...
261
9
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 22.55, "nodes": 166, "errors": 0, "source_hash": "c78f6db64c405b8372b3b9afb4be203ea26dde4ac61aec927a9ceac7bfbe8dc4", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,694
c
/* * tooltip.h * tooltip for every key. * * wangjian<<EMAIL>> * 2008-7-24. */ #define TTW_W 30 #define TTW_H 42 #define TTW_MASK_R 0xff #define TTW_MASK_G 0x0 #define TTW_MASK_B 0x0 #define TTW_PAL_LEN 256 #define MSG_SETCHAR MSG_USER + 10 typedef struct { /* b...
23
28
(translation_unit) "/*\n * tooltip.h\n * tooltip for every key.\n *\n * wangjian<<EMAIL>>\n * 2008-7-24.\n */\n\n#define TTW_W 30\n#define TTW_H 42\n\n#define TTW_MASK_R 0xff\n#define TTW_MASK_G 0x0\n#define TTW_MASK_B 0x0\n\n#define TTW_PAL_LEN 256\n\n#define MSG_SETCHAR MSG_...
112
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 23.0, "nodes": 83, "errors": 0, "source_hash": "e862468c8482b74310acf1dfa77ecc2e8b2825d136f711e103ba082f04cb53a3", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define TTW...
13,695
c
// Copyright (c) 2015 <NAME> <EMAIL> // This software is provided 'as-is' under the zlib License, see the LICENSE.txt file. // This notice and the license may not be removed or altered from any source distribution. #ifndef MK_WIDGETS_H_INCLUDED #define MK_WIDGETS_H_INCLUDED /* mk headers */ #include <Object/mkType...
29.67
43
(translation_unit) "// Copyright (c) 2015 <NAME> <EMAIL>\n// This software is provided 'as-is' under the zlib License, see the LICENSE.txt file.\n// This notice and the license may not be removed or altered from any source distribution.\n\n#ifndef MK_WIDGETS_H_INCLUDED\n#define MK_WIDGETS_H_INCLUDED\n\n/* mk headers...
320
17
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 29.67, "nodes": 152, "errors": 0, "source_hash": "d7c496eddf9302b84ec52a0ad64978560ccd5417d8a207a4cfdc9b7f48d4b040", "categorized_nodes": 127}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,696
c
/* -*- c++ -*- */ //============================================================================= /** * @file structure_ch.h * * $Id: structure_ch.h 88828 2010-02-04 09:09:22Z johnnyw $ * * Concrete visitor for the Structure class * This one provides code generation for the structure in the client header....
29.26
35
(translation_unit) "/* -*- c++ -*- */\n\n//=============================================================================\n/**\n * @file structure_ch.h\n *\n * $Id: structure_ch.h 88828 2010-02-04 09:09:22Z johnnyw $\n *\n * Concrete visitor for the Structure class\n * This one provides code generation for the st...
68
2
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 29.26, "nodes": 37, "errors": 0, "source_hash": "46ec7fa0081fcd655b80bc240647ddd9e6945db1a7f5d799de32ac4547f31a72", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,697
c
/* * Copyright (C) 2009 <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. * * This library is di...
34.25
32
(translation_unit) "/*\n * Copyright (C) 2009 <NAME>\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 your option) any later version...
72
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 34.25, "nodes": 44, "errors": 0, "source_hash": "8a0b4f2a8585c7bb5d8551eb6d18331c170156970db87a6c4ee4bb141cdf55d9", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,698
c
/* * FastaEntry.h * Created on March 18th 2018 * Author: <NAME> * * A single FASTA entry for the use of FastaReader. * */ #ifndef FASTAENTRY_H_ #define FASTAENTRY_H_ #include <string> class FastaEntry { public: std::string id; std::string seq; FastaEntry(std::string id_, std::string seq_) ...
16.64
25
(translation_unit) "/*\n * FastaEntry.h\n * Created on March 18th 2018\n * Author: <NAME>\n *\n * A single FASTA entry for the use of FastaReader.\n *\n */\n\n#ifndef FASTAENTRY_H_\n#define FASTAENTRY_H_\n\n#include <string>\n\nclass FastaEntry {\n\npublic:\n\n std::string id;\n std::string seq;\n\n Fasta...
113
4
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 16.64, "nodes": 61, "errors": 0, "source_hash": "30e10d8d76fa4de46b212a9395012857b24ca30ed79a0197df09165d4a405ae2", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,699