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
#ifndef SERVEDEV_H #define SERVEDEV_H #include<QTcpServer> #include"mainwindow.h" class MainWindow; class servedev : public QTcpServer { public: Q_OBJECT public: servedev(MainWindow* pHelloServer,QObject *parent=0); MainWindow* m_pHelloWindow; private slots...
25.48
21
(translation_unit) "#ifndef SERVEDEV_H\n#define SERVEDEV_H\n#include<QTcpServer>\n#include"mainwindow.h"\nclass MainWindow;\nclass servedev : public QTcpServer\n{\npublic:\n\n Q_OBJECT\n\n public:\n servedev(MainWindow* pHelloServer,QObject *parent=0);\n MainWindow* m_pHelloW...
118
5
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 25.48, "nodes": 75, "errors": 0, "source_hash": "16a384020cf330196e8a9a883ecd12dc7f8f5ba290d0726f06915ef61265542d", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,000
c
// // Created by <NAME> on 6/18/17. // #ifndef STAR_TERM_H #define STAR_TERM_H #include "config.h" #include "ooio.h" typedef struct special_class *specialClassPo; typedef struct _program_label_ *labelPo; typedef struct normal_term *normalPo; typedef struct term_record **ptrPo, *termPo; /* pointer to a struct...
34.31
45
(translation_unit) "//\n// Created by <NAME> on 6/18/17.\n//\n\n#ifndef STAR_TERM_H\n#define STAR_TERM_H\n\n#include "config.h"\n#include "ooio.h"\n\ntypedef struct special_class *specialClassPo;\n\ntypedef struct _program_label_ *labelPo;\n\ntypedef struct normal_term *normalPo;\n\ntypedef struct term_record **ptrPo, ...
481
0
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 34.31, "nodes": 355, "errors": 0, "source_hash": "a1b32b1e558571fd8956fb2a1e21b778d5732e41a46559c755e0a39c3b2a7bec", "categorized_nodes": 282}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,001
c
/* * BitMapPic.h * hog2 * * Created by <NAME> on 3/4/11. * Copyright 2011 NS Software. All rights reserved. * */ #ifndef BITMAPPIC_H #define BITMAPPIC_H #include <stdio.h> #include <vector> #ifndef WIN32 #include <stdint.h> #endif #ifdef WIN32 #include "pstdint.h" #endif struct BitMapHeader { BitMapHeade...
25.39
110
(translation_unit) "/*\n * BitMapPic.h\n * hog2\n *\n * Created by <NAME> on 3/4/11.\n * Copyright 2011 NS Software. All rights reserved.\n *\n */\n\n#ifndef BITMAPPIC_H\n#define BITMAPPIC_H\n\n#include <stdio.h>\n#include <vector>\n#ifndef WIN32\n#include <stdint.h>\n#endif\n#ifdef WIN32\n#include "pstdint.h"\n#en...
436
25
{"language": "c", "success": true, "metadata": {"lines": 110, "avg_line_length": 25.39, "nodes": 234, "errors": 0, "source_hash": "6c67a294aa1581ec1d580f1476637f6737b2cb9a763a70f725adf41485dee89c", "categorized_nodes": 136}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,002
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* msh_env_all.c :+: :+: :+: ...
35.4
43
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* msh_env_all.c ...
76
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 35.4, "nodes": 38, "errors": 0, "source_hash": "e269541651934d126d35fa0902cd70e9fb8569083cdff0db6aee124a9eab937f", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
10,003
c
#pragma once #include "project.h" #include "rftl/cstdint" namespace RF::logging { /////////////////////////////////////////////////////////////////////////////// enum Severity : uint64_t { RF_SEV_TRACE = 1 << 0, RF_SEV_DEBUG = 1 << 1, RF_SEV_INFO = 1 << 2, RF_SEV_WARNING = 1 << 3, RF_SEV_ERROR = 1 << 4, RF_SE...
35
39
(translation_unit) "#pragma once\n#include "project.h"\n\n#include "rftl/cstdint"\n\n\nnamespace RF::logging {\n///////////////////////////////////////////////////////////////////////////////\n\nenum Severity : uint64_t\n{\n RF_SEV_TRACE = 1 << 0,\n RF_SEV_DEBUG = 1 << 1,\n RF_SEV_INFO = 1 << 2,\n RF_SEV_WARNING = 1 <<...
203
1
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 35.0, "nodes": 162, "errors": 0, "source_hash": "9ffcf1efcaac856d0cc8c010b9da65dcb29af8e0aa768409d7ddbd244228969b", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
10,004
c
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <unistd.h> static long long fib_fast_doub(long long k) { int bin_k[10]; int count = 0; while (k) { bin_k[count] = k % 2; k = k >> 1; count++; } long long int a = 0, b = 1; for (int i = c...
22.92
61
(translation_unit) "#include <math.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <time.h>\n#include <unistd.h>\n\n\nstatic long long fib_fast_doub(long long k)\n{\n int bin_k[10];\n int count = 0;\n while (k) {\n bin_k[count] = k % 2;\n k = k >> 1;\n count++;\n }\n long long ...
585
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 22.92, "nodes": 372, "errors": 0, "source_hash": "7a350a0f4ec475fe7487db20373e8054a06d5cf49ec34eb6b6fa27d3a8efe79c", "categorized_nodes": 272}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,005
c
/** * Copyright (c) 2020 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, di...
36.1
50
(translation_unit) "/**\n * Copyright (c) 2020 <NAME>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, ...
264
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 36.1, "nodes": 174, "errors": 0, "source_hash": "a81256c80ce10974088b1e33677da9cdedafe8acf73004b1aa059ad05012e7a6", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
10,006
c
/* * * Copyright (C) 2016, Open Connections GmbH * All rights reserved. See COPYRIGHT file for details. * * This software and supporting documentation are maintained by * * OFFIS e.V. * R&D Division Health * Escherweg 2 * D-26121 Oldenburg, Germany * * * Module: dcmfg * * Author: <NAM...
36.56
131
(translation_unit) "/*\n *\n * Copyright (C) 2016, Open Connections GmbH\n * All rights reserved. See COPYRIGHT file for details.\n *\n * This software and supporting documentation are maintained by\n *\n * OFFIS e.V.\n * R&D Division Health\n * Escherweg 2\n * D-26121 Oldenburg, Germany\n *\n *\n * Mo...
331
20
{"language": "c", "success": true, "metadata": {"lines": 131, "avg_line_length": 36.56, "nodes": 178, "errors": 0, "source_hash": "d921748d21a06898d2d992972319b559a51362c985978bb9df642ca5fcfded92", "categorized_nodes": 142}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,007
c
// The shell which you're using (bash, zsh, fish etc etc) void shell() { print("", "Shell", std::getenv("SHELL")); }
22.8
5
(translation_unit) "// The shell which you're using (bash, zsh, fish etc etc)\n\nvoid shell()\n{\n print("", "Shell", std::getenv("SHELL"));\n}" (comment) "// The shell which you're using (bash, zsh, fish etc etc)" (function_definition) "void shell()\n{\n print("", "Shell", std::getenv("SHELL"));\n}" (primiti...
42
1
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 22.8, "nodes": 16, "errors": 0, "source_hash": "7449a73ca278616d3ad0f7170057f11e3d4df55645908b3fe63fbabd0dfaac66", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "void...
10,008
c
/* * (C) Copyright 1996- ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an interg...
30.97
35
(translation_unit) "/*\n * (C) Copyright 1996- ECMWF.\n *\n * This software is licensed under the terms of the Apache Licence Version 2.0\n * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.\n * In applying this licence, ECMWF does not waive the privileges and immunities\n * granted to it by virtue ...
105
2
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 30.97, "nodes": 53, "errors": 0, "source_hash": "913d65a2a22f4852d679468b4c5928dbf516b6c919a82dd061d34a429d370017", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,009
c
/* SPDX-License-Identifier: GPL-2.0-only */ /* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved. */ #ifndef _DPU_HW_CTL_H #define _DPU_HW_CTL_H #include "dpu_hw_mdss.h" #include "dpu_hw_util.h" #include "dpu_hw_catalog.h" #include "dpu_hw_sspp.h" #include "dpu_hw_blk.h" /** * dpu_ctl_mode_sel: In...
30.04
203
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0-only */\n/* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.\n */\n\n#ifndef _DPU_HW_CTL_H\n#define _DPU_HW_CTL_H\n\n#include "dpu_hw_mdss.h"\n#include "dpu_hw_util.h"\n#include "dpu_hw_catalog.h"\n#include "dpu_hw_sspp.h"\n#include "dpu_hw_blk....
737
2
{"language": "c", "success": true, "metadata": {"lines": 203, "avg_line_length": 30.04, "nodes": 521, "errors": 0, "source_hash": "ff54099d8976ed96b9d45637e24c809482775393df9e67bab46a8790b782dbc2", "categorized_nodes": 354}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
10,010
c
#include <stdlib.h> #include <stdio.h> #include <assert.h> #include <wayland-server.h> #include "region.h" #include "macros.h" #include "resources/resources.h" static void wl_cb_region_add(struct wl_client *client, struct wl_resource *resource, int32_t x, int32_t y, int32_t width, int32_t height) { (void)client; ...
30.4
45
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n#include <assert.h>\n#include <wayland-server.h>\n#include "region.h"\n#include "macros.h"\n#include "resources/resources.h"\n\nstatic void\nwl_cb_region_add(struct wl_client *client, struct wl_resource *resource, int32_t x, int32_t y, int32_t width, int32_t ...
390
0
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 30.4, "nodes": 241, "errors": 0, "source_hash": "43945bf1f41b6e1206329e3a540efeee01a777ee8d9029b5f1bfddb994c1bb9d", "categorized_nodes": 184}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
10,011
c
#include <stdarg.h> #include <WString.h> void tracef(const __FlashStringHelper *fmt, ... ); void tracef(const char *fmt, ... ); void trace(const __FlashStringHelper *str); void trace(const char *str);
32.5
6
(translation_unit) "#include <stdarg.h>\n#include <WString.h>\n\nvoid tracef(const __FlashStringHelper *fmt, ... );\nvoid tracef(const char *fmt, ... );\nvoid trace(const __FlashStringHelper *str);\nvoid trace(const char *str);\n\n" (preproc_include) "#include <stdarg.h>\n" (#include) "#include" (system_lib_s...
73
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 32.5, "nodes": 46, "errors": 0, "source_hash": "da3ec1a9fa5e2c4dd639fc84594fa2b44932d451689efb08d6f465077220c4e9", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
10,012
c
/* * Copyright (C) 2017 NEC Corporation */ #ifndef NECBAAS_NBHTTPREQUESTMETHOD_H #define NECBAAS_NBHTTPREQUESTMETHOD_H namespace necbaas { /** * HTTPリクエストメソッド. */ enum class NbHttpRequestMethod { HTTP_REQUEST_TYPE_GET, /*!< GET */ HTTP_REQUEST_TYPE_POST, /*!< POST */ HTTP_REQUEST_TYPE_PUT, ...
25.35
17
(translation_unit) "/*\n * Copyright (C) 2017 NEC Corporation\n */\n\n#ifndef NECBAAS_NBHTTPREQUESTMETHOD_H\n#define NECBAAS_NBHTTPREQUESTMETHOD_H\n\nnamespace necbaas {\n\n/**\n * HTTPリクエストメソッド.\n */\nenum class NbHttpRequestMethod {\n HTTP_REQUEST_TYPE_GET, /*!< GET */\n HTTP_REQUEST_TYPE_POST, /*!< POS...
43
2
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 25.35, "nodes": 23, "errors": 0, "source_hash": "1ac7ae97fce5592111b12bb4471904032255cd334e1c90bfe386d0cd37b7b9a3", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef NECBAAS_...
10,013
c
#pragma once #include <windows.h> #include <iostream> #include "sslPublic.h" using namespace std; class Pinduoduo { public: static int isPinduoduo(string url, string host); static int replyPinduoduo(char*recvBuffer, int len, int buflimit, LPSSLPROXYPARAM http); };
21.42
12
(translation_unit) "#pragma once\n\n#include <windows.h>\n#include <iostream>\n#include "sslPublic.h"\n\nusing namespace std;\n\n\n\n\nclass Pinduoduo {\npublic:\n static int isPinduoduo(string url, string host);\n\n static int replyPinduoduo(char*recvBuffer, int len, int buflimit, LPSSLPROXYPARAM http);\n\n};" (prep...
77
1
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 21.42, "nodes": 50, "errors": 0, "source_hash": "5eb4e6cb384de3a800b8ea22e0e687f9f1d1249f96e62e7e538867f15bec1b0c", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
10,014
c
#include<iostream> #include<stdlib.h> using namespace std; struct node { int data; struct node* nptr; }* front= NULL; struct node* rear=NULL; int dequeue() { int x; if(front==rear) { x=front->data; front=rear=NULL; } else front=front->nptr; return x; } void enqueue(int x) { str...
12.02
45
(translation_unit) "#include<iostream> \n#include<stdlib.h> \nusing namespace std; \n \nstruct node \n{ \n int data; \n struct node* nptr; \n}* front= NULL; \nstruct node* rear=NULL; \n \nint dequeue() \n{ int x; \n if(front==rear) \n { \n x=front->data; \n front=rear=NULL; \n } \n else \n front=front->nptr; \n ret...
248
1
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 12.02, "nodes": 167, "errors": 0, "source_hash": "6d8a2e527366a1851feae614e4f65d4909b13d6ca5479958f059f56f40e87f3f", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,015
c
#ifndef EVENTS_H #define EVENTS_H //////////////////////////////////////////////////////////////////////////////// // An event queue Class for PixelVFO. //////////////////////////////////////////////////////////////////////////////// // define the VFOevents enum Event { event_None, event_Down, event_Up, event...
26.15
40
(translation_unit) "#ifndef EVENTS_H\n#define EVENTS_H\n\n////////////////////////////////////////////////////////////////////////////////\n// An event queue Class for PixelVFO.\n////////////////////////////////////////////////////////////////////////////////\n\n// define the VFOevents\nenum Event\n{\n event_None,\n ...
204
1
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 26.15, "nodes": 129, "errors": 0, "source_hash": "1957b8e340ba12b524883578dae50f2283fe9b53b6547f73a5357d7ec017202a", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,016
c
/// @file main.c /// @copyright BSD 2-clause. See LICENSE.txt for the complete license text. /// @author <NAME> /// @brief The main function is used for testing the hashtable library, /// and also provides example code. #include "hashtable.h" #include "test.h" #include "timer.h" #include <string.h> #include <s...
35.05
117
(translation_unit) "/// @file main.c\n/// @copyright BSD 2-clause. See LICENSE.txt for the complete license text.\n/// @author <NAME>\n/// @brief The main function is used for testing the hashtable library,\n/// and also provides example code.\n\n#include "hashtable.h"\n#include "test.h"\n#include "timer.h"\n\n#...
1,504
0
{"language": "c", "success": true, "metadata": {"lines": 117, "avg_line_length": 35.05, "nodes": 840, "errors": 0, "source_hash": "e4e0bd001304a6185e3b0f36cc4f0ca3bcdc49be4e6d34adb2875d2a14dd3373", "categorized_nodes": 596}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,017
c
/** * licensed to the apache software foundation (asf) under one * or more contributor license agreements. see the notice file * distributed with this work for additional information * regarding copyright ownership. the asf licenses this file * to you under the apache license, version 2.0 (the * "license"); you...
34.65
52
(translation_unit) "/**\n * licensed to the apache software foundation (asf) under one\n * or more contributor license agreements. see the notice file\n * distributed with this work for additional information\n * regarding copyright ownership. the asf licenses this file\n * to you under the apache license, version 2....
331
22
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 34.65, "nodes": 167, "errors": 0, "source_hash": "0307b05f0873b729d20d99ccc481a88d014ff3b7f95aa00fd6cdaf1c8f8e6bb0", "categorized_nodes": 123}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
10,018
c
#pragma once #ifndef btc_miner_h__ #define btc_miner_h__ #include <limits> class IBTCMiner { static constexpr float TRANSACTION_FEES = 0.0000001f; protected: float get_btc() { return mining(); } private: float mining() { auto secred_fn = [](float value)->float { const si...
23.26
27
(translation_unit) "#pragma once\n#ifndef btc_miner_h__\n#define btc_miner_h__\n\n#include <limits>\n\nclass IBTCMiner\n{\n static constexpr float TRANSACTION_FEES = 0.0000001f;\n\nprotected:\n float get_btc() { return mining(); }\n\nprivate:\n float mining() \n {\n auto secred_fn = [](float value)->...
176
6
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 23.26, "nodes": 107, "errors": 0, "source_hash": "e1aaad6364814dd734e79e9155a7f75efa7c277a22a4dbae8a5932905761e5f6", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
10,019
c
/** * @file SenseHat.h * @date 4 mars 2018 * @version 1.2 * @authors <NAME> <NAME> <NAME> * @details Classe SenseHat : Gestion de la carte SenseHat * @version 1.3 * @date 30 July 2019 * @authors <NAME> bug fixes, method translation to English and Temperature Measurement adjustments required for the Raspberry for a true...
34.15
157
(translation_unit) "/**\n* @file SenseHat.h\n* @date 4 mars 2018\n* @version 1.2\n* @authors <NAME> <NAME> <NAME>\n* @details Classe SenseHat : Gestion de la carte SenseHat\n* @version 1.3\n* @date 30 July 2019\n* @authors <NAME> bug fixes, method translation to English and Temperature Measurement adjustments required ...
1,497
48
{"language": "c", "success": true, "metadata": {"lines": 157, "avg_line_length": 34.15, "nodes": 1010, "errors": 0, "source_hash": "42b893d69b8fe4f1f299c04a758d0a27790f06c462398ec2a7c1428d8cd28a3d", "categorized_nodes": 631}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
10,020
c
#ifndef BUFFERED_ASYNCHRONOUS_READER_H #define BUFFERED_ASYNCHRONOUS_READER_H #include <functional> #include <memory> namespace RoutingKit{ class BufferedAsynchronousReader{ public: BufferedAsynchronousReader(); template<class Source> BufferedAsynchronousReader(Source&source): BufferedAsynchronousReader(source....
37.48
25
(translation_unit) "#ifndef BUFFERED_ASYNCHRONOUS_READER_H\n#define BUFFERED_ASYNCHRONOUS_READER_H\n\n#include <functional>\n#include <memory>\n\nnamespace RoutingKit{\n\nclass BufferedAsynchronousReader{\npublic:\n BufferedAsynchronousReader();\n template<class Source>\n BufferedAsynchronousReader(Source&source):\n B...
243
11
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 37.48, "nodes": 149, "errors": 0, "source_hash": "d877bf8826124e1762f28d27c09647eef8e20fe2d67c72d56ec8a221dca62211", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,021
c
/* * The MIT License * * Copyright 2019 Palmtree Software. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, co...
35.13
111
(translation_unit) "\n * The MIT License\n *\n * Copyright 2019 Palmtree Software.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation ...
775
38
{"language": "c", "success": true, "metadata": {"lines": 111, "avg_line_length": 35.13, "nodes": 522, "errors": 0, "source_hash": "68cd75dc95e6fe7ba550e3217468b70ce879b2ae7ee711a4f47df1151a37d793", "categorized_nodes": 354}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma ...
10,022
c
#pragma once #include <stdbool.h> #include <stdint.h> typedef struct passgen_version_t { uint8_t maj; uint8_t min; uint8_t rev; } passgen_version_t; /// Returns the version of passgen. passgen_version_t passgen_version(); /// Returns a pointer to a string representing the current version. const char *passgen_v...
31.69
16
(translation_unit) "#pragma once\n#include <stdbool.h>\n#include <stdint.h>\n\ntypedef struct passgen_version_t {\n uint8_t maj;\n uint8_t min;\n uint8_t rev;\n} passgen_version_t;\n\n/// Returns the version of passgen.\npassgen_version_t passgen_version();\n\n/// Returns a pointer to a string representing the curre...
77
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 31.69, "nodes": 51, "errors": 0, "source_hash": "2ba7be2d1be163aa3df0895ddc975a3e7be54f415cbc9239de9ce017f54fc525", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
10,023
c
#pragma once // TextDialog dialog class TextDialog : public CDialogEx { DECLARE_DYNAMIC(TextDialog) public: TextDialog(CWnd* pParent = nullptr); // standard constructor virtual ~TextDialog(); // Dialog Data #ifdef AFX_DESIGN_TIME enum { IDD = IDD_TEXTDIALOG }; #endif protected: virtual void DoDataExchange(...
20.74
19
(translation_unit) "#pragma once\n\n\n// TextDialog dialog\n\nclass TextDialog : public CDialogEx\n{\n DECLARE_DYNAMIC(TextDialog)\n\npublic:\n TextDialog(CWnd* pParent = nullptr); // standard constructor\n virtual ~TextDialog();\n\n// Dialog Data\n#ifdef AFX_DESIGN_TIME\n enum { IDD = IDD_TEXTDIALOG };\n#endif\n\npr...
103
5
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 20.74, "nodes": 63, "errors": 0, "source_hash": "34851b978cf2809761740e098bf36056aec4be2028848a42a34b781b5c61162d", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
10,024
c
#ifndef OPENOMF_H #define OPENOMF_H #include "game/protos/scene.h" int openomf_create(scene *scene); #endif // OPENOMF_H
23.2
5
(translation_unit) "#ifndef OPENOMF_H\n#define OPENOMF_H\n\n#include "game/protos/scene.h"\n\nint openomf_create(scene *scene);\n\n#endif // OPENOMF_H\n" (preproc_ifdef) "#ifndef OPENOMF_H\n#define OPENOMF_H\n\n#include "game/protos/scene.h"\n\nint openomf_create(scene *scene);\n\n#endif" (#ifndef) "#ifndef" ...
28
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 23.2, "nodes": 20, "errors": 0, "source_hash": "266244582afb0d91e7f80a9424a748832d59b57e942baf9c983b72e5f220fce8", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef OP...
10,025
c
/**************************************************************************** * * Copyright (c) 2007-2008 Broadcom Corporation * * Unless you and Broadcom execute a separate written software license * agreement governing use of this software, this software is licensed to you * under the terms of the GNU Gener...
31.61
96
(translation_unit) "/****************************************************************************\n*\n* Copyright (c) 2007-2008 Broadcom Corporation\n*\n* Unless you and Broadcom execute a separate written software license\n* agreement governing use of this software, this software is licensed to you\n* under ...
484
0
{"language": "c", "success": true, "metadata": {"lines": 96, "avg_line_length": 31.61, "nodes": 349, "errors": 0, "source_hash": "46363ea3558a89ee2c52de20e35545371337cecda78fedc4f027e320cad49241", "categorized_nodes": 280}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,026
c
#import <Flutter/Flutter.h> @interface SharedpreferencesPlugin : NSObject<FlutterPlugin> @end
30.33
3
(translation_unit) "#import <Flutter/Flutter.h>\n\n@interface SharedpreferencesPlugin : NSObject<FlutterPlugin>\n@end\n" (preproc_call) "#import <Flutter/Flutter.h>\n" (preproc_directive) "#import" (preproc_arg) "<Flutter/Flutter.h>" (ERROR) "@interface SharedpreferencesPlugin : NSObject<FlutterPlugin>\n@en...
15
3
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 30.33, "nodes": 12, "errors": 0, "source_hash": "6f50d73cba922907caca8fa43fdb2383f94fdb971c54e2d2ddb64d6540d59736", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Fl...
10,027
c
/* $OpenBSD: _catgets.c,v 1.5 2005/08/05 13:03:00 espie Exp $ */ /* * Written by <NAME>, 10/05/94 * Public domain. */ #include <sys/cdefs.h> #ifdef __indr_reference __indr_reference(_catgets,catgets); #else #include <nl_types.h> extern char * _catgets(nl_catd, int, int, const char *); char * catgets(nl_catd cat...
23.18
17
(translation_unit) "/* $OpenBSD: _catgets.c,v 1.5 2005/08/05 13:03:00 espie Exp $ */\n/*\n * Written by <NAME>, 10/05/94\n * Public domain.\n */\n\n#include <sys/cdefs.h>\n\n#ifdef __indr_reference\n__indr_reference(_catgets,catgets);\n#else\n\n#include <nl_types.h>\n\nextern char * _catgets(nl_catd, int, int, const ch...
98
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 23.18, "nodes": 65, "errors": 0, "source_hash": "ac70ca3de95c6340f0b69df8f7d9fe6b2adbf1cf62b5ada0a8ecbaf358e67475", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
10,028
c
// // AppDelegate.h // dashan // // Created by ManYuen on 2/27/17. // Copyright © 2017 Yuen. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
20.67
12
(translation_unit) "//\n// AppDelegate.h\n// dashan\n//\n// Created by ManYuen on 2/27/17.\n// Copyright © 2017 Yuen. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface AppDelegate : UIResponder <UIApplicationDelegate>\n\n@property (strong, nonatomic) UIWindow *window;\n\n\n@end\n\n" (comment) "//"...
39
6
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 20.67, "nodes": 25, "errors": 0, "source_hash": "87a86c187a28662f6ff9db8a7fa9553cb158a45ad3e1ce26eef2377adce5879b", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
10,029
c
#include <avr/io.h> #include <stdint.h> #include "adc.h" // set MUXA / MUXB pins to correct bank #define ADC_SETBANK(n) {PORTL = (PORTL & ~0xc0) | ((n) << 6);} #define MUX_MASK (_BV(PL6) | _BV(PL7)) void adc_init() { DDRL |= MUX_MASK; // MUXA and MUXB are outputs PORTL &= ~MUX_MASK; // bank number for externa...
33.5
28
(translation_unit) "#include <avr/io.h>\n#include <stdint.h>\n\n#include "adc.h"\n\n// set MUXA / MUXB pins to correct bank\n#define ADC_SETBANK(n) {PORTL = (PORTL & ~0xc0) | ((n) << 6);}\n\n#define MUX_MASK (_BV(PL6) | _BV(PL7))\n\nvoid adc_init() {\n DDRL |= MUX_MASK; // MUXA and MUXB are outputs\n PORTL &= ~MUX_M...
212
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 33.5, "nodes": 124, "errors": 0, "source_hash": "8b36e6fdbb599a4cd94e572911e4466694cbf73a2e809e150c26004339104729", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
10,030
c
//============================================================================= /** * @file ButcherDocument.h * * $Id$ * * @author <NAME> <<EMAIL>> * @date 2007-12-02 */ //============================================================================= #ifndef __BVIEW_BUTCHERDOCUMENT_H__ #define __BVIEW_BU...
34.78
41
(translation_unit) "//=============================================================================\n/**\n * @file ButcherDocument.h\n *\n * $Id$\n *\n * @author <NAME> <<EMAIL>>\n * @date 2007-12-02\n */\n//=============================================================================\n#ifndef __BVIEW_BUTCHERD...
236
11
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 34.78, "nodes": 143, "errors": 0, "source_hash": "c7a81f814df35bed0e231e8f4585f754741c16420c9eeeecdea64c1d8c879ec8", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,031
c
#pragma once #include <cstring> #include "sfbxTypes.h" namespace sfbx { // call resize() if Cont has. otherwise do nothing. template <class Cont> inline void resize(Cont& dst, size_t n) { if constexpr (has_resize<Cont>) { dst.resize(n); } } template<class T, sfbxRestrict(std::is_pointer_v<T>)> inline...
24.97
133
(translation_unit) "#pragma once\n#include <cstring>\n#include "sfbxTypes.h"\n\nnamespace sfbx {\n\n// call resize() if Cont has. otherwise do nothing.\ntemplate <class Cont>\ninline void resize(Cont& dst, size_t n)\n{\n if constexpr (has_resize<Cont>) {\n dst.resize(n);\n }\n}\n\ntemplate<class T, sfbxRes...
1,417
121
{"language": "c", "success": true, "metadata": {"lines": 133, "avg_line_length": 24.97, "nodes": 866, "errors": 0, "source_hash": "d80ca9b96d964e9e27fa66f7a2db09d711c441595fa08c5573264e7e44548580", "categorized_nodes": 596}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
10,032
c
#pragma once typedef struct { int hour; int minutes; char company[64]; char city[64]; int terminal; int delay; } fly;
12.78
9
(translation_unit) "#pragma once\ntypedef struct {\n int hour;\n int minutes;\n char company[64];\n char city[64];\n int terminal;\n int delay;\n} fly;\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (type_definition) "typedef struct {\n int hour;\n int minutes;\n char ...
45
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 12.78, "nodes": 30, "errors": 0, "source_hash": "cbd4b05a427153033daae1f4fee14cbd927987dbde7e3de692e7cdc53e41ba28", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
10,033
c
/* Simple implementation of Biquad filters -- <NAME> * * Based on the work Cookbook formulae for audio EQ biquad filter coefficients --------------------------------------------------------- by <NAME>, <EMAIL> a.k.a. <EMAIL> * Available on the web at http://www.smartelectronix.com/musicdsp/text/filters005...
22.12
177
(translation_unit) "/* Simple implementation of Biquad filters -- <NAME> \n* \n* Based on the work \n \nCookbook formulae for audio EQ biquad filter coefficients \n--------------------------------------------------------- \nby <NAME>, <EMAIL> a.k.a. <EMAIL> \n \n* Available on the web at \n \nhttp://www.smartelectroni...
1,354
0
{"language": "c", "success": true, "metadata": {"lines": 177, "avg_line_length": 22.12, "nodes": 983, "errors": 0, "source_hash": "0c1555442903864a2d40417a01dd9a85cdb585d036fc9257394e4da7d4f42d0b", "categorized_nodes": 728}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,034
c
#include <stdio.h> #include <string.h> #include <barrelfish/barrelfish.h> #include "common.h" #define USE_DEFWAITSET 1 #define NO_COPY_MOVE_BACK 1 #define NO_COPY_MOVE_BACK_WITH_COPY 0 #define DEBUG(x...) do {} while (0) //#define DEBUG(x...) debug_printf("echo: " x) #define BUFSZ 0x1000 #define NUMBUFS 500 stati...
35.63
176
(translation_unit) "#include <stdio.h>\n#include <string.h>\n#include <barrelfish/barrelfish.h>\n\n#include "common.h"\n\n#define USE_DEFWAITSET 1\n\n#define NO_COPY_MOVE_BACK 1\n#define NO_COPY_MOVE_BACK_WITH_COPY 0\n\n#define DEBUG(x...) do {} while (0)\n//#define DEBUG(x...) debug_printf("echo: " x)\n\n#define BUFSZ...
1,682
1
{"language": "c", "success": true, "metadata": {"lines": 176, "avg_line_length": 35.63, "nodes": 994, "errors": 0, "source_hash": "13a2352ac4782936504d333cb96dec069f01c2fe264ca5c93c62754773328afc", "categorized_nodes": 706}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,035
c
#include "xvmaininc.h" #include "ftnbridge.h" /************************************************************************/ /* C-Callable Version: zinside - test if given point inside specified polygon*/ /************************************************************************/ int zinside( point, corner, n) float point...
35.83
12
(translation_unit) "#include "xvmaininc.h"\n#include "ftnbridge.h"\n\n/************************************************************************/\n/* C-Callable Version: zinside - test if given point inside specified polygon*/\n/************************************************************************/\n\nint zinside( po...
74
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 35.83, "nodes": 41, "errors": 0, "source_hash": "c51a8f146dffe8cba4ed53dd9f2f0950b5873350bec6a2fbc9ccd36b04d26314", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
10,036
c
/* * Copyright (c) 2015, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef __SOC_CSS_H__ #define __SOC_CSS_H__ /* * Utility functions for ARM CSS SoCs */ void soc_css_init_nic400(void); void soc_css_init_pcie(void); static inline void soc_css_security_setup...
20.16
19
(translation_unit) "/*\n * Copyright (c) 2015, ARM Limited and Contributors. All rights reserved.\n *\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n#ifndef __SOC_CSS_H__\n#define __SOC_CSS_H__\n\n/*\n * Utility functions for ARM CSS SoCs\n */\nvoid soc_css_init_nic400(void);\nvoid soc_css_init_pcie(void);\n\nstatic...
61
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 20.16, "nodes": 36, "errors": 0, "source_hash": "6569183e7562cea910bbc87ea01efe2f6019810e83f225f943b3f15c6b9c0702", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,037
c
// // UIDevice+HLToolkit.h // HLToolKit // // Created by hailong on 2018/9/7. // Copyright © 2018年 HL. All rights reserved. // #import <UIKit/UIKit.h> @interface UIDevice (HLToolkit) // Available device memory in MB @property(readonly) double availableMemory; + (NSString *)ipAddress; + (void)changeOrientation:(...
22.2
69
(translation_unit) "//\n// UIDevice+HLToolkit.h\n// HLToolKit\n//\n// Created by hailong on 2018/9/7.\n// Copyright © 2018年 HL. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIDevice (HLToolkit)\n// Available device memory in MB\n@property(readonly) double availableMemory;\n\n+ (NSString *)ipAdd...
174
8
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 22.2, "nodes": 102, "errors": 0, "source_hash": "17dfa5c6b7faf2250685cfc9646728869c47399894c5bdba7e0b3dfe9e68212f", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
10,038
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "SBUISettings.h" @interface SBProximitySettings : SBUISettings { double _initialBacklightDebounceDuration; double _subsequentBacklightDebounceDuration; } + (id)settingsC...
40.5
16
(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 "SBUISettings.h"\n\n@interface SBProximitySettings : SBUISettings\n{\n double _initialBacklightDebounceDuration;\n double _subsequentBacklightDebou...
81
11
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 40.5, "nodes": 50, "errors": 0, "source_hash": "07caf1b88363a8e5056c7519c7d38ce6779034202f6feb0125b2ded617fb4950", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
10,039
c
/* cpc.c Amstrad CPC 464/6128 and KC Compact. No disc emulation. */ #include "common.h" #define CHIPS_IMPL #include "chips/z80.h" #include "chips/ay38910.h" #include "chips/i8255.h" #include "chips/mc6845.h" #include "chips/am40010.h" #include "chips/upd765.h" #include "chips/clk.h" #include "chips/kbd.h" #inc...
33.32
238
(translation_unit) "/*\n cpc.c\n\n Amstrad CPC 464/6128 and KC Compact. No disc emulation.\n*/\n#include "common.h"\n#define CHIPS_IMPL\n#include "chips/z80.h"\n#include "chips/ay38910.h"\n#include "chips/i8255.h"\n#include "chips/mc6845.h"\n#include "chips/am40010.h"\n#include "chips/upd765.h"\n#include "chips/c...
2,051
2
{"language": "c", "success": true, "metadata": {"lines": 238, "avg_line_length": 33.32, "nodes": 1171, "errors": 0, "source_hash": "9207bf6a48e1b9106de01fb400c414cdff4f24cdffd3c335a45765811c3cc317", "categorized_nodes": 803}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
10,040
c
int fibonacci(int age) { int i1 = 0; int i2 = 1; int i3 = 2; int hold = 0; while(i2 < age) { hold = i1; i1 = i2; i2 = hold + i1; i3 += i2; } return i3; }
13.19
16
(translation_unit) "int fibonacci(int age)\n{\n int i1 = 0;\n int i2 = 1;\n int i3 = 2;\n int hold = 0;\n while(i2 < age)\n {\n hold = i1;\n i1 = i2;\n i2 = hold + i1;\n i3 += i2;\n \n }\n return i3;\n}\n\n" (function_definition) "int fibonacci(int age)\n{\n ...
85
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 13.19, "nodes": 59, "errors": 0, "source_hash": "40e912fe528e28a33b5c2f8867413a9ff8bb1dd20478d2567b6fa02c936b613a", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "in...
10,041
c
/* SPDX-License-Identifier: BSD-2-Clause */ /* * Copyright (c) 2009 Citrix Systems, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the a...
32.55
137
(translation_unit) "/* SPDX-License-Identifier: BSD-2-Clause */\n/*\n * Copyright (c) 2009 Citrix Systems, Inc. All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of so...
745
0
{"language": "c", "success": true, "metadata": {"lines": 137, "avg_line_length": 32.55, "nodes": 420, "errors": 0, "source_hash": "8b1c8557ee7e234572ab7fc35c7a73c1a06f35e20d8b97d8e0d3f953cfe418a5", "categorized_nodes": 295}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,042
c
#ifndef __COMMON_CCOMPAT_H__ #define __COMMON_CCOMPAT_H__ #include <common/_ccompat.h> #endif /* ! defined (__COMMON_CCOMPAT_H__) */
32.25
4
(translation_unit) "#ifndef __COMMON_CCOMPAT_H__\n#define __COMMON_CCOMPAT_H__\n#include <common/_ccompat.h>\n#endif /* ! defined (__COMMON_CCOMPAT_H__) */\n" (preproc_ifdef) "#ifndef __COMMON_CCOMPAT_H__\n#define __COMMON_CCOMPAT_H__\n#include <common/_ccompat.h>\n#endif" (#ifndef) "#ifndef" (identifier) "__...
12
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 32.25, "nodes": 10, "errors": 0, "source_hash": "90f21f8dd0ebb449a9c12c2e512ee41149e982ea8c44d91b2e15d54c8f79ea54", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef\t_...
10,043
c
/* component.h */ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software <http://www.openldap.org/>. * * Copyright 2004-2019 The OpenLDAP Foundation. * Portions Copyright 2004 by IBM Corporation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are...
32.42
71
(translation_unit) "/* component.h */\n/* $OpenLDAP$ */\n/* This work is part of OpenLDAP Software <http://www.openldap.org/>.\n *\n * Copyright 2004-2019 The OpenLDAP Foundation.\n * Portions Copyright 2004 by IBM Corporation.\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or ...
167
0
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 32.42, "nodes": 129, "errors": 0, "source_hash": "c02ccf5a7181c8353e34daa20944d829672983199024589ab749e7079d86c9a1", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,044
c
#include <stdbool.h> bool blake2b(const char *in, const uint8_t len, unsigned char *out);
30
3
(translation_unit) "#include <stdbool.h> \n \nbool blake2b(const char *in, const uint8_t len, unsigned char *out);" (preproc_include) "#include <stdbool.h> \n" (#include) "#include" (system_lib_string) "<stdbool.h>" (declaration) "bool blake2b(const char *in, const uint8_t len, unsigned char *out);" (pr...
33
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 30.0, "nodes": 23, "errors": 0, "source_hash": "cf9e22fbd520b51b75c7c5f4adf1bb74358b6db3084dd2a582b162727b6a69c4", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
10,045
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // @class NSError, NSURL, SMCopyEngineCopier; @protocol SMCopyEngineDelegate - (void)copyFailedToCopyFile:(NSURL *)arg1; @optional - (void)estimatedTimeRemainingChanged:(double)arg1; - (vo...
36.18
17
(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@class NSError, NSURL, SMCopyEngineCopier;\n\n@protocol SMCopyEngineDelegate\n- (void)copyFailedToCopyFile:(NSURL *)arg1;\n\n@optional\n- (void)estimatedTimeRema...
181
24
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 36.18, "nodes": 108, "errors": 0, "source_hash": "e8a33c0e820c526c34a2b2a81b06caec01219af00262bca1b71dca9429e163f6", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@class NSError,...
10,046
c
#ifndef __BOARD_H__ #define __BOARD_H__ #include <stdint.h> #include <string> #include <bitset> #include "BitBoard.h" #define MAX_PASSES 64 #define P_BLACK 0 #define P_WHITE 1 #define MOVE_PASS 64 #define MOVE_INVALID 65 #define STACK_SIZE 128 // May as well be safe. typedef struct OthelloMove_s { unsigned ch...
28.2
83
(translation_unit) "#ifndef __BOARD_H__\n#define __BOARD_H__\n\n#include <stdint.h>\n\n#include <string>\n\n#include <bitset>\n\n#include "BitBoard.h"\n\n#define MAX_PASSES 64\n\n#define P_BLACK 0\n#define P_WHITE 1\n\n#define MOVE_PASS 64\n#define MOVE_INVALID 65\n\n#define STACK_SIZE 128 // May as well be safe.\n\nty...
614
22
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 28.2, "nodes": 372, "errors": 0, "source_hash": "4247ff09db2564961941f8195dc5bccc0ab67d1b85b680e7066381007faed4e0", "categorized_nodes": 221}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,047
c
/*! * @file vxdualscene.h * @brief Dual processor 3D scene display. * * Distributes display traversal and rendering across two threads * to leverage dual processor machines. * * @author <NAME> * @ingroup vixen * @internal * * @see vxscene.h */ #pragma once namespace Vixen { #ifndef VX_NOTHREAD /*! * @...
23.66
38
(translation_unit) "/*!\n * @file vxdualscene.h\n * @brief Dual processor 3D scene display.\n *\n * Distributes display traversal and rendering across two threads\n * to leverage dual processor machines.\n *\n * @author <NAME>\n * @ingroup vixen\n * @internal\n *\n * @see vxscene.h\n */\n#pragma once\n\nnamespace Vixen...
91
4
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 23.66, "nodes": 49, "errors": 0, "source_hash": "f2a0b40d47cd43f49749fbe305ed3c0a575f78f65bb023c0c57d8c892574e8f7", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
10,048
c
#ifndef GIMAGE_H #define GIMAGE_H #include <QPixmap> #include <QImage> #include <opencv2/core/mat.hpp> #include "itkImage.h" #include "imageconverter.h" class GImage { public: GImage(); ~GImage(); typedef itk::Image<unsigned char, 2> ItkImageType; void setImage(QPixmap qPixmap); void setImage(Q...
22.57
37
(translation_unit) "#ifndef GIMAGE_H\n#define GIMAGE_H\n\n#include <QPixmap>\n#include <QImage>\n#include <opencv2/core/mat.hpp>\n#include "itkImage.h"\n#include "imageconverter.h"\n\n\nclass GImage\n{\npublic:\n GImage();\n ~GImage();\n\n typedef itk::Image<unsigned char, 2> ItkImageType;\n\n void setImage...
262
10
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 22.57, "nodes": 161, "errors": 0, "source_hash": "4f314520e81e9a501c0791ba85e733a32f423d29b65a1304830c3af68e0331d8", "categorized_nodes": 118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,049
c
/********************************************************************** * LeechCraft - modular cross-platform feature rich internet client. * Copyright (C) 2006-2014 <NAME> * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0....
33.39
28
(translation_unit) "/**********************************************************************\n * LeechCraft - modular cross-platform feature rich internet client.\n * Copyright (C) 2006-2014 <NAME>\n *\n * Distributed under the Boost Software License, Version 1.0.\n * (See accompanying file LICENSE or copy at https://w...
151
11
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 33.39, "nodes": 81, "errors": 0, "source_hash": "cccb4a7d383c7827555d92d65bfd9f9363127b5bb2294ff479a77282810969ca", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
10,050
c
/* * Copyright 2020 <NAME> for Accelovant * * This file is subject to the terms and conditions of the MIT License. See the * file LICENSE in the top level directory for more details. * SPDX-License-Identifier: MIT */ /* Includes *******************************************************************/ #include <st...
32.28
75
(translation_unit) "/*\n * Copyright 2020 <NAME> for Accelovant\n *\n * This file is subject to the terms and conditions of the MIT License. See the\n * file LICENSE in the top level directory for more details.\n * SPDX-License-Identifier: MIT\n */\n\n/* Includes *****************************************************...
530
0
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 32.28, "nodes": 318, "errors": 0, "source_hash": "93d9b679472f141bca47271ae95283c78baacd8c247ad487d40066f3e1843acb", "categorized_nodes": 229}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,051
c
// Copyright (c) .NET Foundation and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include "pal.h" class sdk_resolver_t { public: static bool resolve_sdk_dotnet_path( const pal::string_t& dotnet_root, pal:...
35.56
16
(translation_unit) "// Copyright (c) .NET Foundation and contributors. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n#include "pal.h"\n\nclass sdk_resolver_t\n{\npublic:\n static bool resolve_sdk_dotnet_path(\n const pal::string_...
113
7
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 35.56, "nodes": 61, "errors": 0, "source_hash": "36d710d76557f7fb5a6595227c03e6c67d9cbd60856bebe1564c33b9ff304c94", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
10,052
c
/* * Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * 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 ...
23.43
261
(translation_unit) "/*\n * Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES)\n *\n * This file is part of Orfeo Toolbox\n *\n * https://www.orfeo-toolbox.org/\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.\...
897
40
{"language": "c", "success": true, "metadata": {"lines": 261, "avg_line_length": 23.43, "nodes": 488, "errors": 0, "source_hash": "ba1a373c04e48a7ac48245bc08cbe5e13cc156ef30df6d344142a6ab7087dca8", "categorized_nodes": 320}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef mvdHi...
10,053
c
#include "types.h" #include "x86.h" #include "defs.h" #include "date.h" #include "param.h" #include "memlayout.h" #include "mmu.h" #include "proc.h" #include "pstat.h" int sys_settickets(void) { int num_tickets; if (argint(0, &num_tickets) < 0) return -1; settickets(num_tickets); return 0; } int sys_g...
16.31
162
(translation_unit) "#include "types.h"\n#include "x86.h"\n#include "defs.h"\n#include "date.h"\n#include "param.h"\n#include "memlayout.h"\n#include "mmu.h"\n#include "proc.h"\n#include "pstat.h"\n\n\nint\nsys_settickets(void)\n{\n int num_tickets;\n if (argint(0, &num_tickets) < 0)\n return -1;\n \n settickets(...
1,133
0
{"language": "c", "success": true, "metadata": {"lines": 162, "avg_line_length": 16.31, "nodes": 647, "errors": 0, "source_hash": "c22814d712ae063649ce51b18c5180d25ea747dd43f34decf829faed882e9897", "categorized_nodes": 454}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,054
c
// // LRSNetwokingErrorReponse.h // LRSNetworking // // Created by <NAME> on 2022/2/15. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @class LRSNetworkOperation; typedef NS_ENUM(NSUInteger, LRSNetwokingErrorMessageType) { LRSNetwokingErrorMessageTypeToast, LRSNetwokingErrorMessageTypeDialog...
34.41
29
(translation_unit) "//\n// LRSNetwokingErrorReponse.h\n// LRSNetworking\n//\n// Created by <NAME> on 2022/2/15.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@class LRSNetworkOperation;\ntypedef NS_ENUM(NSUInteger, LRSNetwokingErrorMessageType) {\n LRSNetwokingErrorMessageTypeToast,\n ...
234
30
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 34.41, "nodes": 149, "errors": 0, "source_hash": "1e81f6d2a14c953a2dbb7b85672006da6a5813863d59772decf254ae4cfc595f", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
10,055
c
//--------------------------------------------------------------------------------------------------------------------- // Copyright 2017, 2018 Purdue University, <NAME>, <NAME> // // Redistribution and use in source and binary forms, with or without modification, are permitted provided that the // following condition...
35.9
157
(translation_unit) "//---------------------------------------------------------------------------------------------------------------------\n// Copyright 2017, 2018 Purdue University, <NAME>, <NAME>\n//\n// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the ...
666
31
{"language": "c", "success": true, "metadata": {"lines": 157, "avg_line_length": 35.9, "nodes": 388, "errors": 0, "source_hash": "a4d238572cae4e1b92030e0c34a8ccbca662eaa93a45a04faf8eeeca00a8eaa2", "categorized_nodes": 275}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,056
c
//===--- RDPEmitter.h - LLtool recursive descent parser emitter -*- C++ -*-===// // // Part of the M2Lang Project, under the Apache License v2.0 with // LLVM Exceptions. See LICENSE file for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===-----------------------------------------...
30.91
23
(translation_unit) "//===--- RDPEmitter.h - LLtool recursive descent parser emitter -*- C++ -*-===//\n//\n// Part of the M2Lang Project, under the Apache License v2.0 with\n// LLVM Exceptions. See LICENSE file for license information.\n// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception\n//\n//===---------------...
73
3
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 30.91, "nodes": 35, "errors": 0, "source_hash": "405a3806ddc6a540699e0775d29f18d5981a717fae58427a08f726d6a9b341ad", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,057
c
// Copyright (c) 2012 Hasso-Plattner-Institut fuer Softwaresystemtechnik GmbH. All rights reserved. #pragma once #include <helper/types.h> #include "cereal/cereal.hpp" namespace hyrise { namespace tx { struct TXContext { using id_t = transaction_id_t; transaction_id_t tid = UNKNOWN; transaction_id_t lastCid =...
31.86
22
(translation_unit) "// Copyright (c) 2012 Hasso-Plattner-Institut fuer Softwaresystemtechnik GmbH. All rights reserved.\n#pragma once\n\n#include <helper/types.h>\n#include "cereal/cereal.hpp"\n\nnamespace hyrise {\nnamespace tx {\n\nstruct TXContext {\n using id_t = transaction_id_t;\n\n transaction_id_t tid = UNKNO...
186
13
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 31.86, "nodes": 111, "errors": 0, "source_hash": "9e672a1ac20946d21020a908e76f97cde51ed348b7238dce2205eeb86557143d", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
10,058
c
/* * Copyright (c) 2020 Samsung Electronics Co., Ltd. All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unle...
34.24
33
(translation_unit) "/*\n * Copyright (c) 2020 Samsung Electronics Co., Ltd. All Rights Reserved\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/lice...
65
2
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 34.24, "nodes": 36, "errors": 0, "source_hash": "20cda02f02bb837625fec02f1e90a6e78ad8ce12a60901ea3ae8f45c40c5b892", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,059
c
/* SCCS Id: @(#)dprintf.c 3.1 94/01/29 */ /* Copyright (c) <NAME>, 1993. */ /* NetHack may be freely redistributed. See license for details. */ #include "hack.h" #include "macwin.h" static Boolean KeyDown (unsigned short code) { unsigned char keys [16]; GetKeys ((void *) keys); return ((keys [code >> 3] >...
24.07
41
(translation_unit) "/* SCCS Id: @(#)dprintf.c 3.1 94/01/29 */\n/* Copyright (c) <NAME>, 1993. */\n/* NetHack may be freely redistributed. See license for details. */\n\n#include "hack.h"\n#include "macwin.h"\n\nstatic Boolean\nKeyDown (unsigned short code) {\nunsigned char keys [16];\n\n GetKeys ((void *) keys...
348
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 24.07, "nodes": 198, "errors": 0, "source_hash": "bbc48a5b179910fc028a157338b7d56d00630cf9a2026ce9e776aff9cd4147c3", "categorized_nodes": 146}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,060
c
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_VIEWS_PERMISSION_BUBBLE_PERMISSION_PROMPT_IMPL_H_ #define CHROME_BROWSER_UI_VIEWS_PERMISSION_BUBBLE_PERMISSION_PROMPT_IMPL_H_ #...
38.36
28
(translation_unit) "// Copyright 2014 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef CHROME_BROWSER_UI_VIEWS_PERMISSION_BUBBLE_PERMISSION_PROMPT_IMPL_H_\n#define CHROME_BROWSER_UI_VIEWS_PERMISSION_BUBBLE_PER...
180
4
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 38.36, "nodes": 103, "errors": 0, "source_hash": "0776b726b2a53a704d33c121ce10ed1e31f7bf2e4b950e2c8ddc3d05821bfa58", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,061
c
/************************************************************************************** Filename: ir_parse_forbidden_info.h Revised: Date: 2016-10-05 Revision: Revision: 1.0 Description: This file provides algorithms for forbidden area of AC code Revision log: * 2016-10-05: created by strawmanbo...
31.4
20
(translation_unit) "/**************************************************************************************\nFilename: ir_parse_forbidden_info.h\nRevised: Date: 2016-10-05\nRevision: Revision: 1.0\n\nDescription: This file provides algorithms for forbidden area of AC code\n\nRevision log:\n* 2016-...
56
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 31.4, "nodes": 40, "errors": 0, "source_hash": "868678fa00fa9d28d0e902f3e6d42007eb0f221f0609ddfa2098e5f1fadd12a8", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
10,062
c
typedef struct node *link; struct node { Item item; link next; }; link NEW(Item, link); link init(int); void show(link); link sort(link);
14.78
9
(translation_unit) "typedef struct node *link;\nstruct node {\n Item item;\n link next;\n};\n\nlink NEW(Item, link);\n\nlink init(int);\n\nvoid show(link);\n\nlink sort(link);\n" (type_definition) "typedef struct node *link;" (typedef) "typedef" (struct_specifier) "struct node" (struct) "struct" ...
68
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 14.78, "nodes": 47, "errors": 0, "source_hash": "6a1ef1d9494680eb36a5a3ba51ecb89e02ecc8aa0af4b950239b0c44259bbdc1", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "typedef...
10,063
c
// // SDLSoftButtonTransitionOperation.h // SmartDeviceLink // // Created by <NAME> on 4/25/19. // Copyright © 2019 smartdevicelink. All rights reserved. // #import <Foundation/Foundation.h> #import "SDLAsynchronousOperation.h" @class SDLSoftButtonCapabilities; @class SDLSoftButtonObject; @protocol SDLConnectio...
40.22
32
(translation_unit) "//\n// SDLSoftButtonTransitionOperation.h\n// SmartDeviceLink\n//\n// Created by <NAME> on 4/25/19.\n// Copyright © 2019 smartdevicelink. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n#import "SDLAsynchronousOperation.h"\n\n@class SDLSoftButtonCapabilities;\n@class SDLSoftButt...
124
20
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 40.22, "nodes": 83, "errors": 0, "source_hash": "57fb6a8fc07ffe554395b1121b72917034252145d9b5b568520c8a2c68dc24ea", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
10,064
c
/* Copyright 2022 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
29.94
35
(translation_unit) "/*\n Copyright 2022 Google LLC\n\nLicensed under the Apache License, Version 2.0 (the "License");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or ag...
152
4
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 29.94, "nodes": 97, "errors": 0, "source_hash": "a6d4632046604e0540966395b3776fad5363354035c6b04d0b1d5155651381b8", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
10,065
c
//<NAME>, nUSP: 11369767 //<NAME>, nUSP: 11796594 #include "ORDENACAO.h" void ORDENACAO(int c) { // Lê nome os nomes dos arquivos e dos campos que vão ser procurados char arq_desordenado[30], arq_ordenado[50], campo_ordenacao[30]; scanf(" %s", arq_desordenado); scanf(" %s", arq_ordenado); scanf("...
35.22
63
(translation_unit) "//<NAME>, nUSP: 11369767\n//<NAME>, nUSP: 11796594\n\n#include "ORDENACAO.h"\n\nvoid ORDENACAO(int c) {\n\n // Lê nome os nomes dos arquivos e dos campos que vão ser procurados\n char arq_desordenado[30], arq_ordenado[50], campo_ordenacao[30];\n scanf(" %s", arq_desordenado);\n scanf(" %...
501
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 35.22, "nodes": 270, "errors": 0, "source_hash": "5e4acb6d3c2f9c750b17a525e0385ae4681cb3e4aa68f161612d35274c03647b", "categorized_nodes": 179}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,066
c
/* Copyright (c) 2007-2008 <NAME> <<EMAIL>> Copyright (c) 2007-2008 Center for Bioinformatics, University of Hamburg Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear ...
31.06
155
(translation_unit) "/*\n Copyright (c) 2007-2008 <NAME> <<EMAIL>>\n Copyright (c) 2007-2008 Center for Bioinformatics, University of Hamburg\n\n Permission to use, copy, modify, and distribute this software for any\n purpose with or without fee is hereby granted, provided that the above\n copyright notice and this...
1,329
0
{"language": "c", "success": true, "metadata": {"lines": 155, "avg_line_length": 31.06, "nodes": 751, "errors": 0, "source_hash": "c32075fe6a124207b56963c82a3b6b6f1d5f12049e8d1ea7fddb8b28047d81f9", "categorized_nodes": 518}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,067
c
/* Copyright (c) 2015-2015 Cisco Systems, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writ...
27.91
74
(translation_unit) "/*\nCopyright (c) 2015-2015 Cisco Systems, Inc.\n\nLicensed under the Apache License, Version 2.0 (the "License");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applic...
397
8
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 27.91, "nodes": 255, "errors": 0, "source_hash": "83f27678ea81f2c0ac31fbedb9a2a91d4a8a2b176516ddffba034cc811bf2140", "categorized_nodes": 162}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,068
c
#pragma once #include <stdint.h> #include <ctime> #include <memory> #include <string> #include <vector> struct ConveyorPosition { uint32_t fileIndex; uint32_t id; uint64_t offset; std::time_t ts; }; struct ConveyorCursor { virtual ConveyorPosition getStart() = 0; virtual ConveyorPosition getEnd...
31.19
108
(translation_unit) "#pragma once\n\n#include <stdint.h>\n\n#include <ctime>\n#include <memory>\n#include <string>\n#include <vector>\n\nstruct ConveyorPosition {\n uint32_t fileIndex;\n uint32_t id;\n uint64_t offset;\n std::time_t ts;\n};\n\nstruct ConveyorCursor {\n virtual ConveyorPosition getStart() =...
569
55
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 31.19, "nodes": 388, "errors": 0, "source_hash": "37de6258205b750eae41522414de7af1cdbd385582abbc92ef68a002ddee4137", "categorized_nodes": 270}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
10,069
c
/* *INDENT-OFF* */ /* THIS FILE IS GENERATED */ /* A register protocol for GDB, the GNU debugger. Copyright (C) 2001-2013 Free Software Foundation, Inc. This file is part of GDB. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as p...
30.86
115
(translation_unit) "/* *INDENT-OFF* */ /* THIS FILE IS GENERATED */\n\n/* A register protocol for GDB, the GNU debugger.\n Copyright (C) 2001-2013 Free Software Foundation, Inc.\n\n This file is part of GDB.\n\n This program is free software; you can redistribute it and/or modify\n it under the terms of the GNU...
1,159
0
{"language": "c", "success": true, "metadata": {"lines": 115, "avg_line_length": 30.86, "nodes": 430, "errors": 0, "source_hash": "aa89f49d23f51313e0957b289de64e4282cde56b3e58bb12751f9b4db30b096f", "categorized_nodes": 318}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,070
c
// // NESkinBackgroundImageView.h // SkinManager // // Created by hzyuxiaohua on 2018/11/8. // Copyright © 2018 XOYO. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface NESkinBackgroundImageView : UIImageView - (void)setBackgroundImage:(UIImage *)image UI_APPEARANCE_SELECTOR; @e...
25.15
13
(translation_unit) "//\n// NESkinBackgroundImageView.h\n// SkinManager\n//\n// Created by hzyuxiaohua on 2018/11/8.\n// Copyright © 2018 XOYO. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface NESkinBackgroundImageView : UIImageView\n\n- (void)setBackgroundImage:(UIImage *...
49
6
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 25.15, "nodes": 28, "errors": 0, "source_hash": "57fe83d303dff178566c03fabdc6ee566a4582835df91981b589a3333683c433", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
10,071
c
#ifndef PURPLEMESA_ASTVISITOR_H #define PURPLEMESA_ASTVISITOR_H #include <memory> #include "AstVisitType.h" class TraversalFilter; class ShowAll; class ArchitectureNode; class AssignNode; class CaseNode; class EntityDeclarationNode; class GenericNode; class IdentifierNode; class IntegerNode; class LiteralCharacterNo...
36.71
58
(translation_unit) "#ifndef PURPLEMESA_ASTVISITOR_H\n#define PURPLEMESA_ASTVISITOR_H\n\n#include <memory>\n#include "AstVisitType.h"\n\nclass TraversalFilter;\nclass ShowAll;\n\nclass ArchitectureNode;\nclass AssignNode;\nclass CaseNode;\nclass EntityDeclarationNode;\nclass GenericNode;\nclass IdentifierNode;\nclass In...
620
24
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 36.71, "nodes": 361, "errors": 0, "source_hash": "347c4cbc20c236d3e217e2b7831f2bdad7f1818d42617538ede2be9265e6ef57", "categorized_nodes": 301}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef PURPLE...
10,072
c
// // Created by jkorn on 8/15/2021. // #pragma once #include "GameUIButton.h" #include "Tower.h" #include <string> namespace TowerDefense { class BuildingUISelectButton : public GameUIButton { public: explicit BuildingUISelectButton(class BuildingUI* buildingUI); public: void SetT...
34.15
27
(translation_unit) "//\n// Created by jkorn on 8/15/2021.\n//\n\n#pragma once\n\n#include "GameUIButton.h"\n#include "Tower.h"\n\n#include <string>\n\nnamespace TowerDefense\n{\n\n class BuildingUISelectButton : public GameUIButton\n {\n public:\n explicit BuildingUISelectButton(class BuildingUI* buildi...
197
13
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 34.15, "nodes": 109, "errors": 0, "source_hash": "b45be89632a68b30bf8e3a984dd92469cf6fc718cd888e3c2447b81e13b2c449", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
10,073
c
/* Bacula(R) - The Network Backup Solution Copyright (C) 2000-2017 <NAME> The original author of Bacula is <NAME>, with contributions from many others, a complete list can be found in the file AUTHORS. You may use this file and others of this release according to the license defined in the LICENSE ...
30.69
140
(translation_unit) "/*\n Bacula(R) - The Network Backup Solution\n\n Copyright (C) 2000-2017 <NAME>\n\n The original author of Bacula is <NAME>, with contributions\n from many others, a complete list can be found in the file AUTHORS.\n\n You may use this file and others of this release according to the\n li...
913
2
{"language": "c", "success": true, "metadata": {"lines": 140, "avg_line_length": 30.69, "nodes": 515, "errors": 0, "source_hash": "b583f516a43624820d5314a09e2a084d8437cbba9d4a87e1745dbbd5a127ad4f", "categorized_nodes": 364}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,074
c
#ifndef _MADARA_GENERIC_FILTERS_H_ #define _MADARA_GENERIC_FILTERS_H_ /** * @file GenericFilters.h * @author <NAME> <<EMAIL>> * * This file contains generic filters that developers can use to filter * knowledge::KnowledgeRecord classes in common ways. **/ #include <string> #include <vector> #include <map> #in...
36.55
71
(translation_unit) "#ifndef _MADARA_GENERIC_FILTERS_H_\n#define _MADARA_GENERIC_FILTERS_H_\n\n/**\n * @file GenericFilters.h\n * @author <NAME> <<EMAIL>>\n *\n * This file contains generic filters that developers can use to filter\n * knowledge::KnowledgeRecord classes in common ways.\n **/\n\n#include <string>\n#inclu...
227
16
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 36.55, "nodes": 134, "errors": 0, "source_hash": "1b1fe9e503f65baff45bd58df9eb5f05634acdaf42638181a80b6ab6f3fac6c2", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,075
c
/** MADT table parser Copyright (c) 2016 - 2018, ARM Limited. All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://o...
29.43
313
(translation_unit) "/** \n MADT table parser \n \n Copyright (c) 2016 - 2018, ARM Limited. All rights reserved. \n This program and the accompanying materials \n are licensed and made available under the terms and conditions of the BSD License \n which accompanies this distribution. The full text of the license m...
2,211
9
{"language": "c", "success": true, "metadata": {"lines": 313, "avg_line_length": 29.43, "nodes": 1203, "errors": 0, "source_hash": "12267944c28a6897826974cbec0fc1e6eb5cfec19797af336d385d35c9e666cf", "categorized_nodes": 517}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
10,076
c
#pragma once #include <map> #include <string> namespace sltbench { //! Build option-to-value map from command line args std::map<std::string, std::string> BuildProgramOptions(int argc, char **argv); } // namespace sltbench
27
8
(translation_unit) "#pragma once\n\n#include <map>\n#include <string>\n\n\nnamespace sltbench {\n\n//! Build option-to-value map from command line args\nstd::map<std::string, std::string> BuildProgramOptions(int argc, char **argv);\n\n} // namespace sltbench\n" (preproc_call) "#pragma once\n" (preproc_directive) ...
55
2
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 27.0, "nodes": 37, "errors": 0, "source_hash": "3e94517d774ceb17e2b4021f8b6b8c69f5a7348de1353f8f6284b591274d767f", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
10,077
c
#ifndef WIN_DEF #define WIN_DEF #include <WinSock2.h> #include <windows.h> #include <time.h> #include "ae.h" #ifndef zmalloc #define zmalloc malloc #endif // !zmalloc #ifndef zfree #define zfree free #endif #ifndef zrealloc #define zrealloc realloc #endif typedef INT64 time_t; int gettimeofday(struct timeval *tp, vo...
18.17
18
(translation_unit) "#ifndef WIN_DEF\n#define WIN_DEF\n\n#include <WinSock2.h>\n#include <windows.h>\n#include <time.h>\n#include "ae.h"\n#ifndef zmalloc\n#define zmalloc malloc\n#endif // !zmalloc\n\n#ifndef zfree\n#define zfree free\n#endif\n\n#ifndef zrealloc\n#define zrealloc realloc\n#endif\ntypedef INT64 time_t;\n...
75
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 18.17, "nodes": 64, "errors": 0, "source_hash": "42261724b6611c67215e4c5360621f4e5ac1a23fb0c1135cafd976700ca923f7", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
10,078
c
/*============================================================================= * This is a part of the yLib Software Development Kit. * Copyright (C) 1998-2000 YEAsoft Inc. * All rights reserved. *============================================================================= * This program is free software; you ca...
37.11
107
(translation_unit) "/*=============================================================================\n * This is a part of the yLib Software Development Kit.\n * Copyright (C) 1998-2000 YEAsoft Inc.\n * All rights reserved.\n *=============================================================================\n * This program...
422
15
{"language": "c", "success": true, "metadata": {"lines": 107, "avg_line_length": 37.11, "nodes": 269, "errors": 0, "source_hash": "98bad618dd7296b479f65e5163085893962b442875764e06bd21910345733c10", "categorized_nodes": 195}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,079
c
#ifndef _CUSTOM_GENERATOR_H__ #define _CUSTOM_GENERATOR_H__ #include <iostream> #include "UnorientedGraphValuedEdge.hpp" void GenerateToStream(); void GenerateToStream(std::ostream& outstr, std::istream& instr); UnorientedGraphValuedEdge<double>* GenerateGraph(unsigned int size, int percentage); UnorientedGraphValued...
42.6
10
(translation_unit) "#ifndef _CUSTOM_GENERATOR_H__\n#define _CUSTOM_GENERATOR_H__\n\n#include <iostream>\n#include "UnorientedGraphValuedEdge.hpp"\n\nvoid GenerateToStream();\nvoid GenerateToStream(std::ostream& outstr, std::istream& instr);\nUnorientedGraphValuedEdge<double>* GenerateGraph(unsigned int size, int percen...
111
5
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 42.6, "nodes": 78, "errors": 0, "source_hash": "9d471c7abfe3ee82143e90d070327c6e27cbe7419e780dde45dafb62d5ba3763", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
10,080
c
#pragma once // logger.h enum LoggerType { LT_CONSOLE = 0, LT_FILE, LT_BOTH, LT_SIZE }; // Logger Interface void logger_init(); void logger_release(); void logger_output(const char* format, ...);
15.67
12
(translation_unit) "#pragma once\n\n// logger.h\nenum LoggerType {\n LT_CONSOLE = 0,\n LT_FILE,\n LT_BOTH,\n LT_SIZE\n};\n\n// Logger Interface\n\nvoid logger_init();\nvoid logger_release();\n\nvoid logger_output(const char* format, ...);" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc...
60
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 15.67, "nodes": 37, "errors": 0, "source_hash": "7aaad9e7251ff4573827c9e423c24058727dafd0d6b3e46601d6a45296fe3eb7", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
10,081
c
#ifndef __PLANES_POSITIONS_VIEW_MODEL__ #define __PLANES_POSITIONS_VIEW_MODEL__ #include <QJsonObject> #include "plane.h" struct PlanesPositionsViewModel { long int m_GameId; long int m_RoundId; long int m_OwnUserId; long int m_OpponentUserId; int m_Plane1X; int m_Plane1Y; Plane::Orientat...
27.21
47
(translation_unit) "#ifndef __PLANES_POSITIONS_VIEW_MODEL__\n#define __PLANES_POSITIONS_VIEW_MODEL__\n\n#include <QJsonObject>\n#include "plane.h"\n\n\nstruct PlanesPositionsViewModel {\n long int m_GameId;\n long int m_RoundId;\n long int m_OwnUserId;\n long int m_OpponentUserId;\n int m_Plane1X;\n i...
405
44
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 27.21, "nodes": 244, "errors": 0, "source_hash": "b8be3e801bad818c97fa61c9359711ea604b3dfb65dedfb60f53c867db3ca9fb", "categorized_nodes": 174}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,082
c
// // MonthViewHelper.h // nexusapp // // Created by <NAME> on 10/10/13. // // #import <Foundation/Foundation.h> #import "CalendarMonthView.h" #import "EntryList.h" #import "CalendarViewPresenterDelegate.h" @interface MonthViewHelper : NSObject <CalendarMonthViewDelegate, UI...
35.79
24
(translation_unit) "//\n// MonthViewHelper.h\n// nexusapp\n//\n// Created by <NAME> on 10/10/13.\n//\n//\n\n#import <Foundation/Foundation.h>\n#import "CalendarMonthView.h"\n#import "EntryList.h"\n#import "CalendarViewPresenterDelegate.h"\n\n@interface MonthViewHelper : NSObject <CalendarMonthViewDelegate,\n ...
200
21
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 35.79, "nodes": 133, "errors": 0, "source_hash": "f156dcd67546666341bab063f1133e63d511c9f358d611f0944f1695dd7abda1", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
10,083
c
// // ChangeInputMethod.h // Compact Identity Setup // // Created by <NAME> on 31/03/20. // Copyright © 2020 CoreBits Software Solutions Pvt Ltd. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface ChangeInputMethod : NSObject +(void)updatePluginNameInLogin; @end NS_AS...
24.46
13
(translation_unit) "//\n// ChangeInputMethod.h\n// Compact Identity Setup\n//\n// Created by <NAME> on 31/03/20.\n// Copyright © 2020 CoreBits Software Solutions Pvt Ltd. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface ChangeInputMethod : NSObject\n\n+(void)upd...
37
4
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 24.46, "nodes": 20, "errors": 0, "source_hash": "a94515343aa423722c812658a183c8532cc34771daff49ca17d3fdbcd5a1d6c0", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
10,084
c
/*========================================================================= Program: OsiriX Copyright (c) OsiriX Team All rights reserved. Distributed under GNU - GPL See http://www.osirix-viewer.com/copyright.html for details. This software is distributed WITHOUT ANY WARRANTY; without even t...
33.99
87
(translation_unit) "/*=========================================================================\n Program: OsiriX\n\n Copyright (c) OsiriX Team\n All rights reserved.\n Distributed under GNU - GPL\n \n See http://www.osirix-viewer.com/copyright.html for details.\n\n This software is distributed WITHOUT ANY ...
768
60
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 33.99, "nodes": 510, "errors": 0, "source_hash": "ff4783d73a2b88e96940069a185febbc35256ca76460cd3f629180eeb578ed53", "categorized_nodes": 284}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
10,085
c
//******************************************************************************** // // LC89821x Interface module // // Program Name : AfInter.c // Design : Rex.Tang // History : First edition 2013.07.13 Rex.Tang // // Description : User needs to complete the interface functions //*******************...
34.45
92
(translation_unit) "//********************************************************************************\n//\n// LC89821x Interface module\n//\n// Program Name : AfInter.c\n// Design : Rex.Tang\n// History : First edition 2013.07.13 Rex.Tang\n//\n// Description : User needs to complete the interface fun...
594
1
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 34.45, "nodes": 363, "errors": 0, "source_hash": "49fc48784af369c729ae62b5f1917bd3914803dd661e59920a3b9458df0b72b9", "categorized_nodes": 256}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef...
10,086
c
#pragma once namespace Offset { #ifndef SKYRIMVR constexpr REL::ID TESObjectBOOK_Read{ 17439 }; constexpr REL::ID GetSkillName{ 26561 }; #else constexpr REL::Offset TESObjectBOOK_Read{ 0x0023B240 }; constexpr REL::Offset GetSkillName{ 0x003F0AE0 }; #endif }
22.82
11
(ERROR) "#pragma once\n\nnamespace Offset\n{\n#ifndef SKYRIMVR\n constexpr REL::ID TESObjectBOOK_Read{ 17439 };\n constexpr REL::ID GetSkillName{ 26561 };\n#else\n constexpr REL::Offset TESObjectBOOK_Read{ 0x0023B240 };\n constexpr REL::Offset GetSkillName{ 0x003F0AE0 };\n#endif\n}\n" (preproc_call) "#pragma once\n" ...
72
9
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 22.82, "nodes": 41, "errors": 0, "source_hash": "7723b072de44b3b19ef3ccfe504c97683cce05ca2b46ae85467ed3f9672859ab", "categorized_nodes": 28}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#pragma once\n\nnamespace O...
10,087
c
/* * HCA demuxer * Copyright (c) 2020 <NAME> * * This file is part of FFmpeg. * * FFmpeg 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)...
33.29
104
(translation_unit) "/*\n * HCA demuxer\n * Copyright (c) 2020 <NAME>\n *\n * This file is part of FFmpeg.\n *\n * FFmpeg 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...
919
0
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 33.29, "nodes": 586, "errors": 0, "source_hash": "216e6b311cbf60d453cc49f8db0ca233a98ee6afdc5972c4ed9dd374d6ed3e98", "categorized_nodes": 405}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
10,088
c
/* Generated by RuntimeBrowser. */ @protocol MDLMeshBuffer <NSObject, NSCopying> @required - (<MDLMeshBufferAllocator> *)allocator; - (void)fillData:(NSData *)arg1 offset:(unsigned long long)arg2; - (unsigned long long)length; - (MDLMeshBufferMap *)map; - (unsigned long long)type; - (<MDLMeshBufferZone> *)zone; @e...
28
11
(translation_unit) "/* Generated by RuntimeBrowser.\n */\n\n@protocol MDLMeshBuffer <NSObject, NSCopying>\n\n@required\n\n- (<MDLMeshBufferAllocator> *)allocator;\n- (void)fillData:(NSData *)arg1 offset:(unsigned long long)arg2;\n- (unsigned long long)length;\n- (MDLMeshBufferMap *)map;\n- (unsigned long long)type;\n- ...
111
13
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 28.0, "nodes": 75, "errors": 0, "source_hash": "526d1490db7ace7fbb94203ac370e3ae3ac5c39cb3f82606cd8f363195bbd124", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@protocol MDLMesh...
10,089
c
#ifndef _INPUT_CONVOLUTIONS_H_ #define _INPUT_CONVOLUTIONS_H_ #include <inttypes.h> typedef struct { unsigned sample_count; int32_t samples[]; } Int32Signal; Int32Signal *Int32Signal_Alloc(unsigned sample_count); void Int32Signal_Free(Int32Signal *signal); // x: the input signal // h: the impulse response // ret...
32.94
33
(translation_unit) "#ifndef _INPUT_CONVOLUTIONS_H_\n#define _INPUT_CONVOLUTIONS_H_\n\n#include <inttypes.h>\n\ntypedef struct\n{\n unsigned sample_count;\n int32_t samples[];\n\n} Int32Signal;\n\nInt32Signal *Int32Signal_Alloc(unsigned sample_count);\nvoid Int32Signal_Free(Int32Signal *signal);\n\n// x: the input signa...
218
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 32.94, "nodes": 149, "errors": 0, "source_hash": "aa0e00d812a64e648c89bd8ac069963f23ce6db300c812c0b82699bb550e9498", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,090
c
/** * Divides two numbers */ #include <stdio.h> #include <stdlib.h> // for the exit function #include <assert.h> // for the assert function // call to divide function with two parameters double divide(int num1, int num2); void test(void); int main(void) { int num1, num2; double output; test(); pr...
23.74
39
(translation_unit) "/**\n * Divides two numbers\n */\n\n#include <stdio.h>\n#include <stdlib.h> // for the exit function\n#include <assert.h> // for the assert function\n\n// call to divide function with two parameters\ndouble divide(int num1, int num2);\nvoid test(void);\n\nint main(void)\n{\n int num1, num2;\n ...
269
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 23.74, "nodes": 147, "errors": 0, "source_hash": "b4356a9812d1fe388dcec7fb00e18380979f6dc6570fec445abb98de88ff4764", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,091
c
/* * Copyright (c) 2015, 2016 Oracle and/or its affiliates. All rights reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; version 2 of the * License. * * This program is distrib...
36.95
41
(translation_unit) "/*\n * Copyright (c) 2015, 2016 Oracle and/or its affiliates. All rights reserved.\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License as\n * published by the Free Software Foundation; version 2 of the\n * License.\n *...
229
9
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 36.95, "nodes": 160, "errors": 0, "source_hash": "eb7361e3b78dbf3fc7854e0d96fe2d0f5c132347c48425612dfd130f73fce4af", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
10,092
c
/* * Test PAPI with fork() and exec(). */ #include <sys/time.h> #include <sys/types.h> #include <sys/wait.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include "papi.h" #include "papi_test.h" #define MAX_EVENTS 3 int Event[MAX_EVENTS] = { PAPI_TOT_CYC, PAPI_FP_INS, ...
25.29
203
(translation_unit) "/*\n * Test PAPI with fork() and exec().\n */\n\n#include <sys/time.h>\n#include <sys/types.h>\n#include <sys/wait.h>\n#include <errno.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <unistd.h>\n#include "papi.h"\n#include "papi_test.h"\n\n#define MAX_EVENTS 3\n\nint Event[MAX_EVENTS] = {\n ...
1,879
0
{"language": "c", "success": true, "metadata": {"lines": 203, "avg_line_length": 25.29, "nodes": 1033, "errors": 0, "source_hash": "8a596fafdec1d9fb2818ea029a040630b776864c5ebede2df5c29c326a9f7a6d", "categorized_nodes": 734}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
10,093
c
/**WinCThreads threads.h * * MIT License * * Copyright (c) 2019-2020 Berrysoft * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation t...
37.99
147
(translation_unit) "/**WinCThreads threads.h\n * \n * MIT License\n * \n * Copyright (c) 2019-2020 Berrysoft\n * \n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, in...
1,191
87
{"language": "c", "success": true, "metadata": {"lines": 147, "avg_line_length": 37.99, "nodes": 970, "errors": 0, "source_hash": "0cb23af1f0834cfcfb3452e325606cf29b742e30d5381da9ee49e664db5a2730", "categorized_nodes": 635}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
10,094
c
#include <std.h> inherit ROOM; #include "../areadefs.h" void create() { ::create(); set_terrain(HUT); set_travel(FRESH_BLAZE); set_property("light",2); set_property("outdoors",1); set_short("Sandy beach on the Isle of Attaya."); set_long(" You are standing on the beach. On an island to...
37.34
35
(translation_unit) "#include <std.h>\n\ninherit ROOM;\n#include "../areadefs.h"\n\nvoid create() {\n ::create();\n set_terrain(HUT);\n set_travel(FRESH_BLAZE);\n set_property("light",2);\n set_property("outdoors",1);\n set_short("Sandy beach on the Isle of Attaya.");\n set_long("\n You are stand...
345
9
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 37.34, "nodes": 208, "errors": 0, "source_hash": "f775c5addf424514be6ddd80fd8a22ec3fe9b055833c91e78e1e0793fc5c7874", "categorized_nodes": 179}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,095
c
// // JSListener.h // JJ_Class_Demo // // Created by Jay on 16/4/25. // Copyright © 2016年 JJ. All rights reserved. // #import <Foundation/Foundation.h> #import <JavaScriptCore/JavaScriptCore.h> @protocol WebviewClickListener <JSExport> - (void)setShareContent:(NSString *)shareUrl :(NSString *)title; - (void)set...
30.45
22
(translation_unit) "//\n// JSListener.h\n// JJ_Class_Demo\n//\n// Created by Jay on 16/4/25.\n// Copyright © 2016年 JJ. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <JavaScriptCore/JavaScriptCore.h>\n\n@protocol WebviewClickListener <JSExport>\n\n- (void)setShareContent:(NSString *)shareUrl...
188
22
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 30.45, "nodes": 126, "errors": 0, "source_hash": "1441edc822fc2c3fba5f34d2b77dd7845658e42810f2da015e3e53fbb627b2ab", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fo...
10,096
c
#include <linux/kernel.h> #include <linux/init.h> #include <linux/types.h> #include <linux/device.h> #include <linux/workqueue.h> #include <linux/module.h> #include <linux/platform_device.h> #include <linux/power_supply.h> #include <linux/delay.h> #include <linux/kthread.h> #include <linux/slab.h> #include <linux/debug...
32.54
79
(translation_unit) "#include <linux/kernel.h>\n#include <linux/init.h>\n#include <linux/types.h>\n#include <linux/device.h>\n#include <linux/workqueue.h>\n#include <linux/module.h>\n#include <linux/platform_device.h>\n#include <linux/power_supply.h>\n#include <linux/delay.h>\n#include <linux/kthread.h>\n#include <linux...
704
0
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 32.54, "nodes": 418, "errors": 0, "source_hash": "fe39e1ef202c77efbf7352a1c7efcd690345034d346452973ad5caf3e91d0efe", "categorized_nodes": 321}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
10,097
c
// // GlobalMethod+Authority.h // 乐销 // // Created by 隋林栋 on 2017/6/16. // Copyright © 2017年 ping. All rights reserved. // #import "GlobalMethod.h" //权限类型 typedef NS_ENUM(NSUInteger, AUTHORITY_TYPE) { AUTHORITY_PHOTO, AUTHORITY_CAMERA, AUTHORITY_ADDRESSBOOK, AUTHORITY_MIC, AUTHORITY_LOCAL,//没写...
23.19
42
(translation_unit) "//\n// GlobalMethod+Authority.h\n// 乐销\n//\n// Created by 隋林栋 on 2017/6/16.\n// Copyright © 2017年 ping. All rights reserved.\n//\n\n#import "GlobalMethod.h"\n\n//权限类型\ntypedef NS_ENUM(NSUInteger, AUTHORITY_TYPE) {\n AUTHORITY_PHOTO,\n AUTHORITY_CAMERA,\n AUTHORITY_ADDRESSBOOK,\n AUTH...
275
30
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 23.19, "nodes": 157, "errors": 0, "source_hash": "0e9fe19389b3224323d8a622f71ef2ad26b03aef6f0502f11bac8ab84073a41c", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "alMethod...
10,098
c
/** @file Key shimming code Copyright (c) 2018, vit9696. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.o...
22.9
72
(translation_unit) "/** @file \n Key shimming code \n \nCopyright (c) 2018, vit9696. All rights reserved.<BR> \nThis program and the accompanying materials \nare licensed and made available under the terms and conditions of the BSD License \nwhich accompanies this distribution. The full text of the license may be fou...
188
21
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 22.9, "nodes": 158, "errors": 0, "source_hash": "20329afe3b62bf7c0093512af45eb719067171efd99877cf929007180836b8d9", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
10,099