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
/* HEADER *********************************************************************************/ /*! \file Meta/MetaFunction/Impl/BooleanOpsImpl.h \author <NAME> (100%) \par email: <EMAIL> \brief Not, Or, And, XOR ... */ /* HEADER END ***************************************************************************...
18.69
58
(translation_unit) "/* HEADER *********************************************************************************/ \n/*! \n\file Meta/MetaFunction/Impl/BooleanOpsImpl.h \n\author <NAME> (100%) \n\par email: <EMAIL> \n\brief \n Not, Or, And, XOR ... \n \n*/ \n/* HEADER END **********************************************...
244
17
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 18.69, "nodes": 131, "errors": 0, "source_hash": "5ef55805aedfda127af5ccaab224755f46200471a360b94a2113c4176f30d57a", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
200
c
#include <libcgc.h> #include "libc.h" #define ACK_TRIES 3 size_t MY_TID = TID_K; size_t PIPE_RECV = tid2recvpipe(TID_K); char * STR_THREAD_NAME = "K"; char * consume_bytes(char **curr, char *end, size_t len); int syscall_dispatch(char **curr, char *end); int syscall_futex(unsigned char syscall, char **curr, char *e...
36.87
15
(translation_unit) "#include <libcgc.h>\n#include "libc.h"\n\n#define ACK_TRIES 3\n\nsize_t MY_TID = TID_K;\nsize_t PIPE_RECV = tid2recvpipe(TID_K);\nchar * STR_THREAD_NAME = "K";\n\nchar * consume_bytes(char **curr, char *end, size_t len);\n\nint syscall_dispatch(char **curr, char *end);\nint syscall_futex(unsigned ch...
207
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 36.87, "nodes": 159, "errors": 0, "source_hash": "9f04c8e1396562caa43ec18d95568b3a17ae3215e199e91bf856e9f47938ac57", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
201
c
/* * * Copyright (c) 2020 The University of Waikato, Hamilton, New Zealand. * * This file is part of netstinky-ids. * * Use of this source code is governed by a BSD-style * license that can be found in the LICENSE file or at * https://opensource.org/licenses/BSD-2-Clause * * */ /** @file * */ #ifndef SRC_I...
26.67
33
(translation_unit) "/*\n *\n * Copyright (c) 2020 The University of Waikato, Hamilton, New Zealand.\n *\n * This file is part of netstinky-ids.\n *\n * Use of this source code is governed by a BSD-style\n * license that can be found in the LICENSE file or at\n * https://opensource.org/licenses/BSD-2-Clause\n *\n *\n */...
58
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 26.67, "nodes": 44, "errors": 0, "source_hash": "2f4b6bc79150819caa084b21d052fd0e12da4430ab39291befd4b2d4cb5a66a7", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
202
c
#include<stdio.h> void cook(int (*ary)[5]) { int score = 0; int flag = 0; for (int i = 0; i < 5; i++) { for (int j = 0; j < 4; j++) { ary[i][4] += ary[i][j]; } if (ary[i][4] > score) { score = ary[i][4]; flag = i; } } printf("%d %d...
18.89
27
(translation_unit) "#include<stdio.h>\n\nvoid cook(int (*ary)[5])\n{\n int score = 0;\n int flag = 0;\n for (int i = 0; i < 5; i++) {\n for (int j = 0; j < 4; j++) {\n ary[i][4] += ary[i][j];\n }\n if (ary[i][4] > score) {\n score = ary[i][4];\n flag = i;\n...
273
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 18.89, "nodes": 160, "errors": 0, "source_hash": "05f330e1ab434aea3eddddabec711361585360f86be1579060b7019d7dbe92e1", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
203
c
// // Created by <NAME> on 28/12/2021. // #ifndef SFM_SCENE_RECONSTRUCTION_H #define SFM_SCENE_RECONSTRUCTION_H #include <set> #include "filters/filter.h" #include "triangulation/triangulator.h" #include "bundle-adjustment/bundle_adjuster.h" #include "image.h" #include "features.h" #include "camera.h" #include "matc...
39.53
58
(translation_unit) "//\n// Created by <NAME> on 28/12/2021.\n//\n\n#ifndef SFM_SCENE_RECONSTRUCTION_H\n#define SFM_SCENE_RECONSTRUCTION_H\n\n#include <set>\n#include "filters/filter.h"\n#include "triangulation/triangulator.h"\n#include "bundle-adjustment/bundle_adjuster.h"\n\n#include "image.h"\n#include "features.h"\n...
643
25
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 39.53, "nodes": 396, "errors": 0, "source_hash": "bb84924e9045419f9674e613716c267cae1c803c76bf3de6e2e836b3571e9886", "categorized_nodes": 293}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
204
c
///////////////////////////////////////////////////////////////////////////// // Name: wx/qt/colour.h // Purpose: wxColour class implementation for wxQt // Author: <NAME> // Created: 2010-05-12 // Copyright: (c) 2010 <NAME> // Licence: wxWindows licence ////////////////////////////////////////...
38.28
36
(translation_unit) "/////////////////////////////////////////////////////////////////////////////\n// Name: wx/qt/colour.h\n// Purpose: wxColour class implementation for wxQt\n// Author: <NAME>\n// Created: 2010-05-12\n// Copyright: (c) 2010 <NAME>\n// Licence: wxWindows licence\n/////////////...
332
18
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 38.28, "nodes": 171, "errors": 0, "source_hash": "028653fe062aef7d3a28c23d96d10635a63f4a8ba56b668b5d786f36f229cc29", "categorized_nodes": 119}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
205
c
#ifndef __QPSOLVER_H__ #define __QPSOLVER_H__ #include <stdbool.h> #include "matrix.h" #if VERBOSE_MESSAGE == 0 #define VERBOSE_PRINT(...) #else #define VERBOSE_PRINT(...) printf(__VA_ARGS__) #endif #if DEBUG_MESSAGE == 0 #define DEBUG_PRINT_MATRIX(...) #define DEBUG_PRINT_VAR(...) #define DEBUG_PRINT(...) #else #de...
30.19
86
(translation_unit) "#ifndef __QPSOLVER_H__\n#define __QPSOLVER_H__\n\n#include <stdbool.h>\n#include "matrix.h"\n\n#if VERBOSE_MESSAGE == 0\n#define VERBOSE_PRINT(...)\n#else\n#define VERBOSE_PRINT(...) printf(__VA_ARGS__)\n#endif\n\n#if DEBUG_MESSAGE == 0\n#define DEBUG_PRINT_MATRIX(...)\n#define DEBUG_PRINT_VAR(...)\...
503
0
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 30.19, "nodes": 377, "errors": 0, "source_hash": "c3874adfd0dcd9e3c8655ebac67181cec7784f6342f723160e5f2dd71a18abfb", "categorized_nodes": 222}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
206
c
--- conversion/minctoecat/machine_indep.c.orig 2012-09-24 17:35:36 UTC +++ conversion/minctoecat/machine_indep.c @@ -1,7 +1,11 @@ #include <stdlib.h> #include <string.h> +#include <arpa/inet.h> +#include <unistd.h> /* for swab() */ #include "ecat_write.h" +void swaw( short *from, short *to, int length); + #define...
25.46
13
(translation_unit) "--- conversion/minctoecat/machine_indep.c.orig 2012-09-24 17:35:36 UTC\n+++ conversion/minctoecat/machine_indep.c\n@@ -1,7 +1,11 @@\n #include <stdlib.h>\n #include <string.h>\n+#include <arpa/inet.h>\n+#include <unistd.h> /* for swab() */\n #include "ecat_write.h"\n \n+void swaw( short *from, short...
145
15
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 25.46, "nodes": 122, "errors": 0, "source_hash": "6ef612142728b6c49c7a651df26223c6c403fd4eef1886d99ccf3e3b1f0d389d", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "--- conversion/...
207
c
#include<stdio.h> int main(){ // int lenght=8, breadth=4; // int area = lenght*breadth; // printf("The area of the rectangle is %d", area); float lenght, breadth; printf("What is the value of the lenght? \n"); scanf("%f", &lenght); printf("What is the value of the breadth? \n"); s...
28.93
14
(translation_unit) "#include<stdio.h>\n\nint main(){\n // int lenght=8, breadth=4;\n // int area = lenght*breadth;\n \n // printf("The area of the rectangle is %d", area);\n\n float lenght, breadth;\n printf("What is the value of the lenght? \n");\n scanf("%f", &lenght);\n printf("What is the va...
97
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 28.93, "nodes": 44, "errors": 0, "source_hash": "0bce1f8e73dee65c1ccf22f182c99c60e81f5c521c89d589fefd44f6608a47a1", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
208
c
/* Copyright 2018 Canaan 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 agree...
27.57
239
(translation_unit) "/* Copyright 2018 Canaan Inc. \n * \n * Licensed under the Apache License, Version 2.0 (the "License"); \n * you may not use this file except in compliance with the License. \n * You may obtain a copy of the License at \n * \n * http://www.apache.org/licenses/LICENSE-2.0 \n * \n * Unless require...
1,507
0
{"language": "c", "success": true, "metadata": {"lines": 239, "avg_line_length": 27.57, "nodes": 827, "errors": 0, "source_hash": "83eac9474edb9a661cbf7cdabb6c6a9acb98326fe451688425cf5882224a85b6", "categorized_nodes": 603}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
209
c
#include <unistd.h> #include <errno.h> #include <stdlib.h> #include <sys/socket.h> #include <sys/ioctl.h> #include <bluetooth/bluetooth.h> #include <bluetooth/hci.h> #include <bluetooth/hci_lib.h> int set_flush_timeout(bdaddr_t *ba, int timeout) { int err = 0, dd; struct hci_conn_info_req *cr = 0; struct ...
28.2
56
(translation_unit) "#include <unistd.h>\n#include <errno.h>\n#include <stdlib.h>\n#include <sys/socket.h>\n#include <sys/ioctl.h>\n#include <bluetooth/bluetooth.h>\n#include <bluetooth/hci.h>\n#include <bluetooth/hci_lib.h>\n\nint set_flush_timeout(bdaddr_t *ba, int timeout)\n{\n int err = 0, dd;\n struct hci_con...
444
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 28.2, "nodes": 287, "errors": 0, "source_hash": "923be696886f663bd62797c3d2db03f21b6b8edce655fd31c2f972a32da94616", "categorized_nodes": 223}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
210
c
/* * File: paj6100u6_reg.h * Created Date: Tuesday, May 25th 2021, 10:45:35 am * Author: <NAME> * ----- * Last Modified: Sunday May 30th 2021 2:39:45 pm * Modified By: <NAME> at <<EMAIL>> * ----- * MIT License * * Copyright (c) 2021 Pixart Inc. * * Permission is hereby granted, free of charge, to any person...
29.52
135
(translation_unit) "/*\n * File: paj6100u6_reg.h\n * Created Date: Tuesday, May 25th 2021, 10:45:35 am\n * Author: <NAME>\n * -----\n * Last Modified: Sunday May 30th 2021 2:39:45 pm\n * Modified By: <NAME> at <<EMAIL>>\n * -----\n * MIT License\n *\n * Copyright (c) 2021 Pixart Inc.\n *\n * Permission is hereby grante...
407
0
{"language": "c", "success": true, "metadata": {"lines": 135, "avg_line_length": 29.52, "nodes": 236, "errors": 0, "source_hash": "9b790eb8f889fc897d9b6998f069b5d2fe28dffdbe5fb5a486af20b1978fbc80", "categorized_nodes": 162}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
211
c
// // SCPoiSearch.h // FindAFitting // // Created by SC on 16/5/10. // Copyright © 2016年 SDJY. All rights reserved. // #import <Foundation/Foundation.h> #import "SCAddress.h" typedef void (^SCPoiSearchBlock)(BOOL isSuccessed, NSMutableArray *addressArray, id additionalInfo); @interface SCPoiSearchUtil : NSObject...
47.65
17
(translation_unit) "//\n// SCPoiSearch.h\n// FindAFitting\n//\n// Created by SC on 16/5/10.\n// Copyright © 2016年 SDJY. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "SCAddress.h"\n\ntypedef void (^SCPoiSearchBlock)(BOOL isSuccessed, NSMutableArray *addressArray, id additionalInfo);\n\n@int...
188
16
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 47.65, "nodes": 117, "errors": 0, "source_hash": "0a4d32c32abb900acdece271314e593fcd16d2cd72f815ad880ce452958ecebb", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fo...
212
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...
37.09
242
(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....
1,672
19
{"language": "c", "success": true, "metadata": {"lines": 242, "avg_line_length": 37.09, "nodes": 1042, "errors": 0, "source_hash": "6ae8e509a52e81956230c2fc7140d876989f4d6b0955fdf76080451911622edb", "categorized_nodes": 779}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#prag...
213
c
// GPL v3 License // // CircuitCalculator/CircuitCalculator // Copyright (c) 2022 CircuitCalculator/CircuitScriptTokenKind.h // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either versi...
34.71
52
(translation_unit) " GPL v3 License\n// \n// CircuitCalculator/CircuitCalculator\n// Copyright (c) 2022 CircuitCalculator/CircuitScriptTokenKind.h\n// \n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software ...
297
15
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 34.71, "nodes": 148, "errors": 0, "source_hash": "e1bee47185606f1a59f439b8ed929e1e34c42a656755f6eb1acc0e7b83aa7d82", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma o...
214
c
#include <glib.h> #include <glib/gi18n.h> #include <string.h> #include "mdsfs.h" #include "blowfish.h" #include "encryption.h" #include "lockmgr.h" guint8 * mdsfs_lockmgr_keygen() { gint len = 48; guint8 *key, *ptr; /* allocate a memboy for 448 bits */ key = (guint8 *)g_new0(guint8, len + 1); /* seed */ srand...
21.85
81
(translation_unit) "#include <glib.h>\n#include <glib/gi18n.h>\n#include <string.h>\n\n#include "mdsfs.h"\n#include "blowfish.h"\n#include "encryption.h"\n#include "lockmgr.h"\n\nguint8 *\nmdsfs_lockmgr_keygen()\n{\n gint len = 48;\n guint8 *key, *ptr;\n\n /* allocate a memboy for 448 bits */\n key = (guint8 *)g_new0(g...
644
0
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 21.85, "nodes": 403, "errors": 0, "source_hash": "8496d7408225b50b8170da3a3d4f8c41548c4adbb01e07c6588766aa141d8641", "categorized_nodes": 285}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
215
c
#ifndef QNVSM_SELECTCOLORBUTTON_H #define QNVSM_SELECTCOLORBUTTON_H #include <QPushButton> class SelectColorButton: public QPushButton { Q_OBJECT public: explicit SelectColorButton(const QColor &color); void setColor(const QColor &color); const QColor& getColor() const; private slots: void chan...
25.2
15
(translation_unit) "#ifndef QNVSM_SELECTCOLORBUTTON_H\n#define QNVSM_SELECTCOLORBUTTON_H\n\n#include <QPushButton>\n\nclass SelectColorButton: public QPushButton {\n Q_OBJECT\n\npublic:\n explicit SelectColorButton(const QColor &color);\n\n void setColor(const QColor &color);\n const QColor& getColor() cons...
92
9
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 25.2, "nodes": 48, "errors": 0, "source_hash": "6468725466dc8c610d72e38d99d0b5c43b3cbb78131f01784338e27bba8ee043", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef Q...
216
c
/*============================================================================*/ /* VFLib: https://github.com/vinniefalco/VFLib Copyright (C) 2008 by <NAME> <<EMAIL>> This library contains portions of other open source products covered by separate licenses. Please see the corresponding source files for specif...
29.6
181
(translation_unit) "/*============================================================================*/\n/*\n VFLib: https://github.com/vinniefalco/VFLib\n\n Copyright (C) 2008 by <NAME> <<EMAIL>>\n\n This library contains portions of other open source products covered by\n separate licenses. Please see the correspond...
832
37
{"language": "c", "success": true, "metadata": {"lines": 181, "avg_line_length": 29.6, "nodes": 481, "errors": 0, "source_hash": "ee80885ed8401216ec17de69ccfba5e88c0e9d6e4c5de6bb548b309fa37efbf4", "categorized_nodes": 323}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
217
c
#pragma once #include "../Common/Common.h" namespace SerializeStruct { enum class ObjectType : uint8_t { JsonObject = 0, JsonArray = 1, String = 2, False = 3, True = 4, Null= 5, Int = 6, Float = 7 }; struct JsonObjectHeader { uint64 keyValueCount; }; struct JsonArrayHeader { uint64 elementCo...
12.64
28
(translation_unit) "#pragma once\n#include "../Common/Common.h"\nnamespace SerializeStruct\n{\n enum class ObjectType : uint8_t\n {\n JsonObject = 0,\n JsonArray = 1,\n String = 2,\n False = 3,\n True = 4,\n Null= 5,\n Int = 6,\n Float = 7\n };\n struct JsonObjectHeader\n {\n uint64 keyValueCount;\n };\n struc...
110
1
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 12.64, "nodes": 72, "errors": 0, "source_hash": "2ea1146f91fb7f54f323bca1407cac15a507d66e596bb56992f9ce5f40e42e76", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
218
c
#include "FreeRTOS.h" #include "task.h" // SSD2119 Display and Touch Drivers #include "SSD2119_Display.h" #include "SSD2119_Touch.h" // header file specific to task 2 #include "task2.h" #define SET 1U #define RESET 0U // Flags for the buttons and the timer int pedestrian_pressed = RES...
27.95
320
(translation_unit) "#include "FreeRTOS.h" \n#include "task.h" \n \n// SSD2119 Display and Touch Drivers \n#include "SSD2119_Display.h" \n#include "SSD2119_Touch.h" \n \n// header file specific to task 2 \n#include "task2.h" \n \n#define SET 1U \n#define RESET 0U \n \n// Flags for the buttons and the time...
1,760
0
{"language": "c", "success": true, "metadata": {"lines": 320, "avg_line_length": 27.95, "nodes": 975, "errors": 0, "source_hash": "ef076868906b4012e47b8547666bc50f30171e96a7769bd604086c600ece7466", "categorized_nodes": 679}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
219
c
/******************************************************************************* * Copyright 2015 MobileMan GmbH * www.mobileman.com * * 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 * ...
38.45
42
(translation_unit) "/*******************************************************************************\n * Copyright 2015 MobileMan GmbH\n * www.mobileman.com\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 ...
164
15
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 38.45, "nodes": 115, "errors": 0, "source_hash": "b6edc8e8dd5285e4f21023879b0cbd7520483e2ee6a7b0b6625e8da80410cd8a", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
220
c
#include "genname.h" #include "../pkg/package.h" #include "../ast/stringtab.h" #include "../ast/lexer.h" #include "../../libponyrt/mem/pool.h" #include <string.h> #include <assert.h> static void types_append(printbuf_t* buf, ast_t* elements); static void type_append(printbuf_t* buf, ast_t* type, bool first) { switc...
23.11
143
(translation_unit) "#include "genname.h"\n#include "../pkg/package.h"\n#include "../ast/stringtab.h"\n#include "../ast/lexer.h"\n#include "../../libponyrt/mem/pool.h"\n#include <string.h>\n#include <assert.h>\n\nstatic void types_append(printbuf_t* buf, ast_t* elements);\n\nstatic void type_append(printbuf_t* buf, ast_...
1,214
0
{"language": "c", "success": true, "metadata": {"lines": 143, "avg_line_length": 23.11, "nodes": 658, "errors": 0, "source_hash": "c5a10786a4986837c5b28e959b3494df03735dc803c0f545c1941ebbac25cee5", "categorized_nodes": 415}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
221
c
void printArray(int a[], int n){ int i; for(i=0;i<n;i++){ printf("%d\t",a[i]); } printf("\n-----------------------------------------------------\n"); }
21.57
7
(translation_unit) "void printArray(int a[], int n){\n int i;\n for(i=0;i<n;i++){\n printf("%d\t",a[i]);\n }\n printf("\n-----------------------------------------------------\n");\n}" (function_definition) "void printArray(int a[], int n){\n int i;\n for(i=0;i<n;i++){\n printf("%d\t",a[i]);\n }\n printf("\n--------...
76
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 21.57, "nodes": 41, "errors": 0, "source_hash": "b1df63b912d9b1c1525bff1c56839be7d58037f4e13d7344806012df32f082bc", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "voi...
222
c
// // ViewController.h // FIDLazyGet // // Created by Fidetro on 2017/4/19. // Copyright © 2017年 Fidetro. All rights reserved. // #import <Cocoa/Cocoa.h> @interface ViewController : NSViewController @end
18
11
(translation_unit) "//\n// ViewController.h\n// FIDLazyGet\n//\n// Created by Fidetro on 2017/4/19.\n// Copyright © 2017年 Fidetro. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n\n@interface ViewController : NSViewController\n\n\n@end\n\n" (comment) "//" (comment) "// ViewController.h" (comment) "// F...
22
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 18.0, "nodes": 12, "errors": 0, "source_hash": "2f5f976e234d10c91cc28aaabd7dbf6a875b9d6c028ac9284170984545dd631b", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Cocoa...
223
c
/* Test for some basic aspects of -traditional directive processing. */ /* { dg-do preprocess } */ #define HASH # HASH /* There is a #error directive. */ #error bad /* { dg-error "bad" } */ /* Directives with their #s indented are not recognized. */ #if 0 /* { dg-bogus "unterminated" } */ #wrong /* { dg-error...
30.73
15
(translation_unit) "/* Test for some basic aspects of -traditional directive processing. */\n\n/* { dg-do preprocess } */\n\n#define HASH #\nHASH\n\n/* There is a #error directive. */\n\n#error bad /* { dg-error "bad" } */\n\n/* Directives with their #s indented are not recognized. */\n #if 0 /* { dg-bogus "untermin...
52
1
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 30.73, "nodes": 40, "errors": 0, "source_hash": "2226548e75e295c78365530dff74046b96e0eb4d05377910e5176f8f1d01331a", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define HA...
224
c
#ifndef LOG4CPLUS_CONFIG_DEFINES_HXX #define LOG4CPLUS_CONFIG_DEFINES_HXX /* */ #ifdef HAVE_SYSLOG_H #define LOG4CPLUS_HAVE_SYSLOG_H #endif /* */ #ifdef HAVE_NETINET_IN_H #define LOG4CPLUS_HAVE_NETINET_IN_H #endif /* */ #ifdef HAVE_SYS_TYPES_H #define LOG4CPLUS_HAVE_SYS_TYPES_H #endif /* */ #ifdef HAVE_SYS_SOCKET_H...
21.32
111
(translation_unit) "#ifndef LOG4CPLUS_CONFIG_DEFINES_HXX\n#define LOG4CPLUS_CONFIG_DEFINES_HXX\n\n/* */\n#ifdef HAVE_SYSLOG_H\n#define LOG4CPLUS_HAVE_SYSLOG_H\n#endif\n\n/* */\n#ifdef HAVE_NETINET_IN_H\n#define LOG4CPLUS_HAVE_NETINET_IN_H\n#endif\n\n/* */\n#ifdef HAVE_SYS_TYPES_H\n#define LOG4CPLUS_HAVE_SYS_TYPES_H\n#e...
242
0
{"language": "c", "success": true, "metadata": {"lines": 111, "avg_line_length": 21.32, "nodes": 204, "errors": 0, "source_hash": "e8cf54dd13f226a4be1f150e2018399eedfca8ac99d0c0b2eda84aae94658a71", "categorized_nodes": 133}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
225
c
// // XXGJSycncNetKit.h // xxdcchat_ios // // Created by 刘朝龙 on 2017/3/19. // Copyright © 2017年 刘朝龙. All rights reserved. // #import <Foundation/Foundation.h> @interface XXGJSycncNetKit : NSObject #include "XXGJNetKitHeader.h" + (NSDictionary *)getCityFile; /** 查找一个群组 @param param 查找参数[1. group_id] */ + (N...
20.33
66
(translation_unit) "//\n// XXGJSycncNetKit.h\n// xxdcchat_ios\n//\n// Created by 刘朝龙 on 2017/3/19.\n// Copyright © 2017年 刘朝龙. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface XXGJSycncNetKit : NSObject\n#include "XXGJNetKitHeader.h"\n\n+ (NSDictionary *)getCityFile;\n\n/**\n 查找一个群组\n \n @...
227
20
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 20.33, "nodes": 143, "errors": 0, "source_hash": "8a443f7c83e7c30029f64123623691b22272cab9dd7763b026f6c8dea36e5c4f", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "tion/Fou...
226
c
/* * Copyright (C) 2017 XRADIO TECHNOLOGY CO., LTD. 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 above copyright * notice,...
34.34
92
(translation_unit) "/*\n * Copyright (C) 2017 XRADIO TECHNOLOGY CO., LTD. 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 source code must retain the above ...
576
0
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 34.34, "nodes": 380, "errors": 0, "source_hash": "a7daabc3d65f07a0367cf1d106d6d86866f20c2243b66c6cc44956dfa5483e26", "categorized_nodes": 223}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
227
c
// // Level.h // Hexagon // // Created by <NAME> on 7/12/15. // Copyright (c) 2015 Chi Corp. All rights reserved. // #import <SpriteKit/SpriteKit.h> #import "Tile.h" #import "CajunAlert.h" #import "ColorUtil.h" #import "StringUtil.h" @interface Level : NSObject { SKScene *scene; NSString *level_id; ...
20.26
31
(translation_unit) "//\n// Level.h\n// Hexagon\n//\n// Created by <NAME> on 7/12/15.\n// Copyright (c) 2015 Chi Corp. All rights reserved.\n//\n\n#import <SpriteKit/SpriteKit.h>\n#import "Tile.h"\n#import "CajunAlert.h"\n#import "ColorUtil.h"\n#import "StringUtil.h"\n\n@interface Level : NSObject\n{\n SKScene *s...
164
13
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 20.26, "nodes": 110, "errors": 0, "source_hash": "d602e544f4ad71ba8ef419c8266790a3d14ce96c972f60410321abeaf53480cf", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
228
c
// SPDX-License-Identifier: BSD-3-Clause // Copyright (c) 2020 <NAME> // All rights reserved. #pragma once #include <djvGL/Enum.h> #include <djvCore/RapidJSONFunc.h> #include <sstream> #include <vector> namespace djv { namespace GL { DJV_ENUM_HELPERS(SwapInterval); } // namespace UI DJV_E...
27.05
20
(translation_unit) "// SPDX-License-Identifier: BSD-3-Clause\n// Copyright (c) 2020 <NAME>\n// All rights reserved.\n\n#pragma once\n\n#include <djvGL/Enum.h>\n\n#include <djvCore/RapidJSONFunc.h>\n\n#include <sstream>\n#include <vector>\n\nnamespace djv\n{\n namespace GL\n {\n DJV_ENUM_HELPERS(SwapInterva...
110
8
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 27.05, "nodes": 56, "errors": 0, "source_hash": "1eb724902e9066c00dce4e7ccf2171f0191addc1980e42c755a5d2cc03d8c761", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
229
c
// // ScrollDragView.h // HorizontalScrollDrag // // Created by Simay on 16/4/28. // Copyright © 2016年 Simay. All rights reserved. // #import <UIKit/UIKit.h> @interface ScrollDragView : UIScrollView @property (nonatomic, assign) CGSize itemSize; @property (nonatomic, assign) UIEdgeInsets itemInsert;//上下左...
36.85
20
(translation_unit) "//\n// ScrollDragView.h\n// HorizontalScrollDrag\n//\n// Created by Simay on 16/4/28.\n// Copyright © 2016年 Simay. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ScrollDragView : UIScrollView\n\n@property (nonatomic, assign) CGSize itemSize;\n@property (nonatomic, assig...
141
28
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 36.85, "nodes": 94, "errors": 0, "source_hash": "c894380cf9cf81a8217a2d709a084c14f73f6f4351e8c57a8fcd2e2ec68d5183", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
230
c
// // AppDelegate.h // remember // // Created by Apple on 2017/5/7. // Copyright © 2017年 ZKC. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
20.75
12
(translation_unit) "//\n// AppDelegate.h\n// remember\n//\n// Created by Apple on 2017/5/7.\n// Copyright © 2017年 ZKC. 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.75, "nodes": 26, "errors": 0, "source_hash": "a1f7b5442b4d09ec7c084a55820f2fff4c28479133d0e77974a1772b9f7af2b1", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
231
c
/***************************************************************************//** * @file main.c * @brief Demonstrate how to implement a composite device.(Virtual com port and Mass storage device) * @version 2.0.0 * * @copyright (C) 2016 Nuvoton Technology Corp. All rights reserved. ***********************...
35.53
304
(translation_unit) "/***************************************************************************//**\n * @file main.c\n * @brief Demonstrate how to implement a composite device.(Virtual com port and Mass storage device)\n * @version 2.0.0\n *\n * @copyright (C) 2016 Nuvoton Technology Corp. All rights reserved....
1,882
0
{"language": "c", "success": true, "metadata": {"lines": 304, "avg_line_length": 35.53, "nodes": 1077, "errors": 0, "source_hash": "4053b6c36480fb330f40fdb545da0b69067cd3182dc436c5aaae2098c719067c", "categorized_nodes": 811}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
232
c
/* * Thursday, September 9th 2021 * * <NAME> - <EMAIL> * <NAME> - <EMAIL> * <NAME> - <EMAIL> * <NAME> - <EMAIL> * <NAME> - <EMAIL> * * Vrije Universiteit Amsterdam - Amsterdam, The Netherlands * */ #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <sys/types.h> #include <sys/stat.h> #incl...
28.34
65
(translation_unit) "/*\n * Thursday, September 9th 2021\n *\n * <NAME> - <EMAIL>\n * <NAME> - <EMAIL>\n * <NAME> - <EMAIL>\n * <NAME> - <EMAIL>\n * <NAME> - <EMAIL>\n *\n * Vrije Universiteit Amsterdam - Amsterdam, The Netherlands\n *\n */\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <stdint.h>\n#include <sys/t...
372
0
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 28.34, "nodes": 213, "errors": 0, "source_hash": "a732d19fc5038a7f511eda116dc34439728d8547e306ca607a2d8693edc618b0", "categorized_nodes": 162}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
233
c
#ifndef TOKEN_H #define TOKEN_H #include "location.h" #include <cassert> #include <string> #include <fstream> #include <cstdint> class Token { public: enum TokenType { // Values of different types Integer, Real, StringLiteral, Char, Boolean, // Type/var/const declarations: Type, Var, Packed, Arr...
16.56
169
(translation_unit) "#ifndef TOKEN_H\n#define TOKEN_H\n\n#include "location.h"\n\n#include <cassert>\n#include <string>\n#include <fstream>\n#include <cstdint>\n\n\nclass Token\n{\npublic:\n enum TokenType\n {\n // Values of different types\n Integer,\n Real,\n StringLiteral,\n Char,\n Boolean,\n\n // Type/var/con...
870
34
{"language": "c", "success": true, "metadata": {"lines": 169, "avg_line_length": 16.56, "nodes": 513, "errors": 0, "source_hash": "3feff6e8952aec7f8f6f36b73e33305777b3e8041228aed3605db45598e018f8", "categorized_nodes": 412}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
234
c
#include "ite/ite_mac.h" static struct mii_ioctl_data phy_reg = { CFG_NET_ETHERNET_PHY_ADDR, 0, 0, 0 }; #define phy_set_page(page) do { phy_reg.reg_num=31; phy_reg.val_write=page; iteMacIoctl(&phy_reg, IOCSMIIREG); } while(0) #define phy_reg_write(reg,val) do { phy_reg.reg_num=(reg); phy_reg.val_write=(val);...
27.96
181
(translation_unit) "nclude "ite/ite_mac.h"\n\n\n\nstatic struct mii_ioctl_data phy_reg = { CFG_NET_ETHERNET_PHY_ADDR, 0, 0, 0 };\n\n#define phy_set_page(page) do { phy_reg.reg_num=31; phy_reg.val_write=page; iteMacIoctl(&phy_reg, IOCSMIIREG); } while(0)\n#define phy_reg_write(reg,val) do { phy_reg.reg_num=(reg); ...
1,196
0
{"language": "c", "success": true, "metadata": {"lines": 181, "avg_line_length": 27.96, "nodes": 703, "errors": 0, "source_hash": "cec44b228433ea0ff2155912883009345fa63f2f5d124c30bc724c3008c813c7", "categorized_nodes": 449}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "ncl...
235
c
/** * Module date */ // Inclure l'interface Date.h #include "date.h" // Inclure les bibliothèques uniquement nécessaire à Date.c #include <stdio.h> #include <math.h> /** */ void initialiser(Date *date){ date->jour = 1; date->nomJour = JEUDI; date->mois = JAN; date->annee = 1970; } void convertir_v...
25.75
32
(translation_unit) "/**\n * Module date\n */\n\n// Inclure l'interface Date.h\n#include "date.h"\n\n// Inclure les bibliothèques uniquement nécessaire à Date.c\n#include <stdio.h>\n#include <math.h>\n\n/** */\nvoid initialiser(Date *date){\n date->jour = 1;\n date->nomJour = JEUDI;\n date->mois = JAN;\n da...
252
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 25.75, "nodes": 156, "errors": 0, "source_hash": "f46510694e5f04f5e940611b1fba9d8846825e2c9da31ed2e817302e29908241", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
236
c
/* * Copyright 2008-2019, Marvell International Ltd. * All Rights Reserved. * * Derived from: * http://www.kernel.org/pub/linux/libs/klibc/ */ /* * strcat.c */ #include <string.h> char *strcat(char *dst, const char *src) { strcpy(strchr(dst, '\0'), src); return dst; }
15.56
18
(translation_unit) "/* \n * Copyright 2008-2019, Marvell International Ltd. \n * All Rights Reserved. \n * \n * Derived from: \n * http://www.kernel.org/pub/linux/libs/klibc/ \n */ \n/* \n * strcat.c \n */ \n \n#include <string.h> \n \nchar *strcat(char *dst, const char *src) \n{ \n strcpy(strchr(dst, '\0'), src); \n r...
55
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 15.56, "nodes": 34, "errors": 0, "source_hash": "0a686c746e2d5c1fa090fd459d928ba21e15aee2d3c3418cce0d4b6a5c695478", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
237
c
#include<stdio.h> #include<stdlib.h> #include<string.h> #include"CStack.h" #include<ctype.h> int priority(char i){ if(i == '(') return 0; else if(i == '+' || i == '-') return 1; else if(i == '*' || i == '/') return 2; } void infixToPostfix(char arr[]){ char *i,x; Stack *top =...
21.2
50
(translation_unit) "#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n#include"CStack.h"\n#include<ctype.h>\nint priority(char i){\n if(i == '(')\n return 0;\n else if(i == '+' || i == '-')\n return 1;\n else if(i == '*' || i == '/')\n return 2;\n}\nvoid infixToPostfix(char arr[])...
474
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 21.2, "nodes": 288, "errors": 0, "source_hash": "49de2ce1b3f2741b1f4386e4537ef42c73641dd3b7082ce8ee10a84735e46097", "categorized_nodes": 188}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
238
c
/* * Copyright (c) 2002, Intel Corporation. All rights reserved. * Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com * This file is licensed under the GPL license. For the full content * of this license, see the COPYING file at the top level of this * source tree. * * Test that if clock_settime() ...
27.29
92
(translation_unit) "/* \n * Copyright (c) 2002, Intel Corporation. All rights reserved.\n * Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com\n * This file is licensed under the GPL license. For the full content\n * of this license, see the COPYING file at the top level of this \n * source tree.\n *\n * Te...
581
0
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 27.29, "nodes": 343, "errors": 0, "source_hash": "33f959ad8bcc5a25514120300d784f6ee91b092b91449978b19a98e05614005f", "categorized_nodes": 267}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
239
c
/* * coverage_stubs.c * * These stubs are needed to generate coverage from an embedded target. */ #include <stdio.h> #include <stddef.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <errno.h> #include "mgcov_stubs.h" // ==================================================================...
34.65
34
(translation_unit) "/*\n * coverage_stubs.c\n *\n * These stubs are needed to generate coverage from an embedded target.\n */\n#include <stdio.h>\n#include <stddef.h>\n#include <sys/types.h>\n#include <sys/stat.h>\n#include <unistd.h>\n#include <errno.h>\n#include "mgcov_stubs.h"\n// ==================================...
197
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 34.65, "nodes": 120, "errors": 0, "source_hash": "66c3ba166a4fe1d92048c9ca2dabb4a22b59d83f65d3e8583bd64e25f7b4052f", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
240
c
/* SPDX-License-Identifier: GPL-2.0-only */ /* * MTD splitter for ELF loader firmware partitions * * Copyright (C) 2020 <NAME> <<EMAIL>> * * 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 Foundat...
25.58
241
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0-only */\n/*\n * MTD splitter for ELF loader firmware partitions\n *\n * Copyright (C) 2020 <NAME> <<EMAIL>>\n *\n * This program is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public License as published by th...
1,592
1
{"language": "c", "success": true, "metadata": {"lines": 241, "avg_line_length": 25.58, "nodes": 1021, "errors": 0, "source_hash": "7c1702fb6330c9ad5a2a500d75843d0c6f89d8681daebda65a40b50826fa7d3b", "categorized_nodes": 765}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
241
c
#pragma once #include <LaunchCommandAbstractAssistant.h> class LaunchCommandFakeAssistant : public LaunchCommandAbstractAssistant { public: void setTarget(const QString& appImagePath, const QStringList& args) override { } void setLauncher(std::shared_ptr<AbstractLauncher> launcher) override { } ...
28.83
24
(translation_unit) "#pragma once\n\n#include <LaunchCommandAbstractAssistant.h>\n\nclass LaunchCommandFakeAssistant : public LaunchCommandAbstractAssistant {\npublic:\n\n void setTarget(const QString& appImagePath, const QStringList& args) override {\n\n }\n\n void setLauncher(std::shared_ptr<AbstractLauncher>...
170
8
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 28.83, "nodes": 98, "errors": 0, "source_hash": "248742c793b2f29c269d6060be4db81b86e41fb00e670a15672032c4124ae494", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
242
c
#ifndef __DATAFORMAT_H__ #define __DATAFORMAT_H__ #include <string.h> #include <stdio.h> #include <stdarg.h> unsigned char *data_format(const char *__restrict__ format, ...); #endif
25
7
(translation_unit) "#ifndef __DATAFORMAT_H__\n#define __DATAFORMAT_H__\n\n#include <string.h>\n#include <stdio.h>\n#include <stdarg.h>\n\nunsigned char *data_format(const char *__restrict__ format, ...);\n\n#endif\n" (preproc_ifdef) "#ifndef __DATAFORMAT_H__\n#define __DATAFORMAT_H__\n\n#include <string.h>\n#include ...
41
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 25.0, "nodes": 32, "errors": 0, "source_hash": "e91bb8418603921d63a06eb13fa8b82ea846d38924098c413bb269d259098a53", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __...
243
c
int removeDuplicates(int* nums, int numsSize){ if(numsSize == 0) return 0; int i = 0; //outer loop counter int j = 0; //medium loop counter for(j = 1; j<numsSize; j++){ if(nums[j] != nums[i]){ i++; nums[i] = nums[j]; } } return i+1; ...
18.71
17
(translation_unit) "int removeDuplicates(int* nums, int numsSize){\n if(numsSize == 0) return 0;\n \n int i = 0; //outer loop counter\n int j = 0; //medium loop counter\n \n \n for(j = 1; j<numsSize; j++){\n if(nums[j] != nums[i]){\n i++;\n nums[i] = nums[j];\n }...
119
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 18.71, "nodes": 73, "errors": 0, "source_hash": "71e9401f05956e525748a0a52ad95f61cb6d52dcf1ef7463adddf5cea9444484", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "in...
244
c
/* ********************************************************************** * File : MachineState.h * Author : peach * Date : 19 Dec 2017 ********************************************************************** */ /* * Machine states always have three basic functions: Initialize, enterState and iterateState....
34.04
23
(translation_unit) "/*\n **********************************************************************\n * File : MachineState.h\n * Author : peach\n * Date : 19 Dec 2017\n **********************************************************************\n */\n\n/*\n * Machine states always have three basic functions: Initialize,...
60
4
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 34.04, "nodes": 37, "errors": 0, "source_hash": "2f95726ace18db8977f21fd9e1dda4bfdd553dcdcc815ba0e9452d433495eb20", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
245
c
#pragma once #include "stdafx.h" #include "opencv2/imgproc/imgproc_c.h" class ImageIO { public: ImageIO(void); ~ImageIO(void); static IplImage* loadImage(char* path); };
14.91
11
(translation_unit) "#pragma once\n\n#include "stdafx.h"\n\n#include "opencv2/imgproc/imgproc_c.h"\n\nclass ImageIO\n{\npublic:\n ImageIO(void);\n ~ImageIO(void);\n\n static IplImage* loadImage(char* path);\n \n};\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_...
62
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 14.91, "nodes": 34, "errors": 0, "source_hash": "5365f945a41470d36b29cd3e043fe75a14de165373f909a4cf50f605b128cdff", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
246
c
/* * Copyright 2013, <NAME> <<EMAIL>>. * Copyright 2021, <NAME> <<EMAIL>>. * All rights reserved. Distributed under the terms of the MIT License. */ #ifndef PARAGRAPH_LAYOUT_H #define PARAGRAPH_LAYOUT_H #include <vector> #include <Font.h> #include <Referenceable.h> #include <String.h> #include "CharacterStyle.h"...
23.6
210
(translation_unit) "/*\n * Copyright 2013, <NAME> <<EMAIL>>.\n * Copyright 2021, <NAME> <<EMAIL>>.\n * All rights reserved. Distributed under the terms of the MIT License.\n */\n#ifndef PARAGRAPH_LAYOUT_H\n#define PARAGRAPH_LAYOUT_H\n\n#include <vector>\n\n#include <Font.h>\n#include <Referenceable.h>\n#include <String...
1,487
71
{"language": "c", "success": true, "metadata": {"lines": 210, "avg_line_length": 23.6, "nodes": 912, "errors": 0, "source_hash": "d12da5adf905b56a29651dd6162503e85e5f858e4983b96896944328492e08ae", "categorized_nodes": 671}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
247
c
// // BugButton.h // Thirstie // // Created by <NAME> on 11/23/13. // Copyright (c) 2013 Digital-Liquor-Delivery. All rights reserved. // #import <UIKit/UIKit.h> @class BugButton; @protocol BugButtonDelegate - (void)reportBug:(BugButton *)sender; @end @interface BugButton : UIButton @property (nonatomic, weak)...
27.15
20
(translation_unit) "//\n// BugButton.h\n// Thirstie\n//\n// Created by <NAME> on 11/23/13.\n// Copyright (c) 2013 Digital-Liquor-Delivery. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@class BugButton;\n\n@protocol BugButtonDelegate\n- (void)reportBug:(BugButton *)sender;\n@end\n\n@interface BugButton : U...
121
17
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 27.15, "nodes": 78, "errors": 0, "source_hash": "dbf6e8aa02733b3530747afd209d7e0d35161561a6b5dc5ba353155774f33c03", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
248
c
#ifndef __PANEL_EDIT_H__ #define __PANEL_EDIT_H__ #include "Panel.h" #ifndef GAMEMODE class PanelEdit : public Panel { public: PanelEdit(char* name); ~PanelEdit(); bool Draw(); }; #endif #endif
14.15
13
(translation_unit) "#ifndef __PANEL_EDIT_H__\n#define __PANEL_EDIT_H__\n\n#include "Panel.h"\n\n#ifndef GAMEMODE\n\nclass PanelEdit : public Panel\n{\npublic:\n\n PanelEdit(char* name);\n ~PanelEdit();\n\n bool Draw();\n};\n\n#endif\n\n#endif\n" (preproc_ifdef) "#ifndef __PANEL_EDIT_H__\n#define __PANEL_EDIT_H__\n\n#...
61
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 14.15, "nodes": 36, "errors": 0, "source_hash": "da4eabb23fef4a55c3d3695efffc3186df8327f620071d21bf7b69d3b23ed758", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
249
c
#ifndef __ESK8_MODEL_H__ #define __ESK8_MODEL_H__ #ifdef __cplusplus extern "C" { #endif #include "Arduino.h" #include "local_datatypes.h" #ifdef __cplusplus } #endif void convertToBytes(char *source, byte *destination, uint8_t length); void convertToCharArr(byte *source, char *destination, uint8_t length); voi...
32.8
20
(translation_unit) "#ifndef __ESK8_MODEL_H__\n#define __ESK8_MODEL_H__\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n#include "Arduino.h"\n#include "local_datatypes.h"\n\n#ifdef __cplusplus\n }\n#endif\n\n\nvoid convertToBytes(char *source, byte *destination, uint8_t length);\nvoid convertToCharArr(byte *source, char...
197
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 32.8, "nodes": 150, "errors": 0, "source_hash": "2db6f15fecf472b31f2c376c6c51aa146cff8f7f31bd02ad0f21aaaed32d4d0b", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
250
c
/** * @file ArmCollisionDetector.h * * @author <a href="mailto:<EMAIL>"><NAME></a> * ArmCollisionDetector: detect collisions with arms based on joint position deviation. */ #ifndef _ArmCollisionDetector_H_ #define _ArmCollisionDetector_H_ #include <ModuleFramework/Module.h> // representations #include <Representatio...
28.83
64
(translation_unit) "/**\n* @file ArmCollisionDetector.h\n*\n* @author <a href="mailto:<EMAIL>"><NAME></a>\n* ArmCollisionDetector: detect collisions with arms based on joint position deviation.\n*/\n\n#ifndef _ArmCollisionDetector_H_\n#define _ArmCollisionDetector_H_\n\n#include <ModuleFramework/Module.h>\n\n// represe...
307
4
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 28.83, "nodes": 181, "errors": 0, "source_hash": "be6b4b3603f73fcd5ca779529d36ff2f1a1d0762d723d6805d99b4b073720de2", "categorized_nodes": 138}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
251
c
#pragma once #include "MatrixHelper.h" #include <cstdint> namespace DX { class TextRenderer; enum class TextRenderer::AnchorPoint; } namespace DirectXGame { class GameMain; class Snake; enum class Snake::SnakeType; class ProgramHelper { public: struct PlayerConfig { std::string ...
26.61
56
(translation_unit) "#pragma once \n \n#include "MatrixHelper.h" \n#include <cstdint> \n \nnamespace DX \n{ \n class TextRenderer; \n enum class TextRenderer::AnchorPoint; \n} \n \nnamespace DirectXGame \n{ \n class GameMain; \n class Snake; \n enum class Snake::SnakeType; \n \n class ProgramHelper \n { \n public: \n s...
427
28
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 26.61, "nodes": 229, "errors": 0, "source_hash": "0f7f211dc37fae945267660fc64be70d32cbd571ddb672c93e0b72e11f9238a4", "categorized_nodes": 169}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
252
c
// Copyright 2011 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
37.31
95
(translation_unit) "// Copyright 2011 Google Inc. All Rights Reserved.\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// U...
547
22
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 37.31, "nodes": 320, "errors": 0, "source_hash": "9e802c85af45cf548d31cac67cf6b8d1d67a8c1fabfb1c894b820d9a242521dd", "categorized_nodes": 206}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
253
c
#include <std.h> inherit "/d/common/obj/weapon/mspear.c"; create() { ::create(); set_id(({"spear","mithril spear","mithril medium spear"})); set_name("mithril spear"); set_short("A mithril spear"); set_long("%^BOLD%^This short spear is tipped with"+ " a bright silvery mithril spearhead. It...
34.57
23
(translation_unit) "#include <std.h>\ninherit "/d/common/obj/weapon/mspear.c";\n\ncreate() {\n ::create();\n set_id(({"spear","mithril spear","mithril medium spear"}));\n set_name("mithril spear");\n set_short("A mithril spear");\n set_long("%^BOLD%^This short spear is tipped with"+\n " a bright s...
157
2
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 34.57, "nodes": 61, "errors": 0, "source_hash": "738782e5265d139e6d1de58c4bfd83a4d8b421cb4c23c0a3a1b4cdda524e9b34", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
254
c
/* * cubieboard emulation * * Copyright (C) 2013 <NAME> * Written by <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or * (at your op...
35.54
70
(translation_unit) "/*\n * cubieboard emulation\n *\n * Copyright (C) 2013 <NAME>\n * Written by <NAME> <<EMAIL>>\n *\n * This program is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public License as published by the\n * Free Software Foundation; either version 2 of th...
554
0
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 35.54, "nodes": 301, "errors": 0, "source_hash": "449c23717576d2f27722167b6ee991a4724576fbffd372ab3d3092cf5c36221b", "categorized_nodes": 228}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
255
c
#include<stdio.h> int a[100]; int n; void main() { int item,j,i,f=0,l=0,m,temp,min; printf("Enter number of elements\n"); scanf("%d",&n); printf("Enter elemets\n"); for(i=0;i<n;i++) { scanf("%d",&a[i]); } for(i=1;i<n;i++) { m=a[i]; for(j=i-1;j>=0;j--) { if(a[j]>m) a[j+1]=a[j]; else break;...
12.72
29
(translation_unit) "#include<stdio.h>\nint a[100];\nint n;\nvoid main()\n{\n int item,j,i,f=0,l=0,m,temp,min;\n printf("Enter number of elements\n");\n scanf("%d",&n);\n printf("Enter elemets\n");\n for(i=0;i<n;i++)\n {\n scanf("%d",&a[i]);\n }\n for(i=1;i<n;i++)\n {\n m=a[i];\n for(j=i-1;j>=0;j--)\n {\n if(a[j]>...
275
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 12.72, "nodes": 157, "errors": 0, "source_hash": "1b6d9fb950a7a7d0dc0a8962d4a7af3bd3eaf89e8f040d5feba2f5f78a692615", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
256
c
#include "mex.h" #include "blas.h" #include "conv2d.h" #define DEBUG 0 void inner_fv_term(int Np, int K, double *h, double *u, double *v, int Nedge, double *v1, double *v2, double *nx, double *ny, double *ds, signed char *EToR, double *rhs) { #ifdef _OPENMP #pr...
32.59
169
(translation_unit) "#include "mex.h"\n#include "blas.h"\n#include "conv2d.h"\n\n#define DEBUG 0\n\nvoid inner_fv_term(int Np, int K, double *h, double *u, double *v,\n int Nedge, double *v1, double *v2,\n double *nx, double *ny, double *ds,\n signed char *EToR, doub...
1,857
0
{"language": "c", "success": true, "metadata": {"lines": 169, "avg_line_length": 32.59, "nodes": 1209, "errors": 0, "source_hash": "1d44d210c31144883dad875ee8dab30078cc6a9eebc09ec12a1c48d3715f7d93", "categorized_nodes": 762}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
257
c
#pragma once #include <vector> #include "RuntimeLoader.h" #include "InterpreterCommon.h" namespace RolLang { class InterpreterStacktracer { struct StacktracerFrameInfo { RuntimeFunction* Function; std::size_t PC; std::size_t StackBase; NativeFunction Native; }; public: InterpreterStacktracer(RuntimeLoade...
20.05
61
(translation_unit) "#pragma once\n#include <vector>\n#include "RuntimeLoader.h"\n#include "InterpreterCommon.h"\n\nnamespace RolLang {\n\nclass InterpreterStacktracer\n{\n struct StacktracerFrameInfo\n {\n RuntimeFunction* Function;\n std::size_t PC;\n std::size_t StackBase;\n NativeFunction Native;\n };\n\npublic:...
475
14
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 20.05, "nodes": 280, "errors": 0, "source_hash": "55565dd52a06fdaba1a7529e63a04d4d12c924e088e11c8bdfd4dc90f9f9df57", "categorized_nodes": 199}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
258
c
/* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class com_crickettechnology_audio_Mixer */ #ifndef _Included_com_crickettechnology_audio_Mixer #define _Included_com_crickettechnology_audio_Mixer #ifdef __cplusplus extern "C" { #endif /* * Class: com_crickettechnology_audio_Mix...
29.6
89
(translation_unit) "/* DO NOT EDIT THIS FILE - it is machine generated */\n#include <jni.h>\n/* Header for class com_crickettechnology_audio_Mixer */\n\n#ifndef _Included_com_crickettechnology_audio_Mixer\n#define _Included_com_crickettechnology_audio_Mixer\n#ifdef __cplusplus\nextern "C" {\n#endif\n/*\n * Class: c...
294
0
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 29.6, "nodes": 205, "errors": 0, "source_hash": "0f7503981ba03cb5e90896f06d0558549d1baa3c65b6f6a8c7beec87d169e189", "categorized_nodes": 168}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
259
c
// // HYTopBottomClosePortalTransitionAnimationDirection.h // HYKit // // Created by ocean on 2017/8/9. // Copyright © 2017年 wuhaiyang. All rights reserved. // #import "HYPortalTransitionAnimation.h" @interface HYTopBottomClosePortalTransitionAnimationDirection : HYPortalTransitionAnimation @end
29.1
10
(translation_unit) "//\n// HYTopBottomClosePortalTransitionAnimationDirection.h\n// HYKit\n//\n// Created by ocean on 2017/8/9.\n// Copyright © 2017年 wuhaiyang. All rights reserved.\n//\n\n#import "HYPortalTransitionAnimation.h"\n\n@interface HYTopBottomClosePortalTransitionAnimationDirection : HYPortalTransitionAn...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 29.1, "nodes": 10, "errors": 0, "source_hash": "a05d3b71d7f1c76872168d5dff9f34aee01f696f5cce1fa75871e036305b0651", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"HYPo...
260
c
#ifndef PLUGIN_EXPORT_H #define PLUGIN_EXPORT_H #include <QtUiPlugin/QDesignerExportWidget> #include <QtDesigner/QDesignerFormWindowInterface> #include <QtDesigner/QDesignerFormEditorInterface> #include <QtDesigner/QDesignerPropertySheetExtension> #include <QtDesigner/QExtensionManager> #ifdef QT_PLUGIN #define PLUG...
31.69
13
(translation_unit) "#ifndef PLUGIN_EXPORT_H\n#define PLUGIN_EXPORT_H\n\n#include <QtUiPlugin/QDesignerExportWidget>\n\n#include <QtDesigner/QDesignerFormWindowInterface>\n#include <QtDesigner/QDesignerFormEditorInterface>\n#include <QtDesigner/QDesignerPropertySheetExtension>\n#include <QtDesigner/QExtensionManager>\n\...
38
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 31.69, "nodes": 35, "errors": 0, "source_hash": "c56e22a4b5e6349c8bb513e7d1124e0481ca78ccd4d37252ee9b12c9570376a4", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
261
c
long a; long b[10]; void func() { a = 2; b[3] = 5; commit; } void watcher_func() { a = 0; b[3] = 0; commitd; } void main() { runner func() using a, b[0,, 10]; runner watcher_func() watching a, b[0,, 10]; commit; }
10.95
19
(translation_unit) "long a;\nlong b[10];\n\nvoid func() {\n a = 2;\n b[3] = 5;\n commit;\n}\n\nvoid watcher_func() {\n a = 0;\n b[3] = 0;\n commitd;\n}\n\nvoid main() {\n runner func()\n using a, b[0,, 10];\n runner watcher_func()\n watching a, b[0,, 10];\n commit;\n}\n" (declaration) "long a;" (sized_type_spec...
128
4
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 10.95, "nodes": 74, "errors": 0, "source_hash": "9393d39e4cc4269187dbf2ab87d0fb7df62d704d4b2704edc1502f7ac4983648", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "long a;", ...
262
c
#pragma once namespace Ubpa::UECS { class World; class SystemMngr; class System; class EntityMngr; class Entity; class CmptPtr; class IListener { public: virtual void EnterWorld(const World*) = 0; virtual void ExistWorld(const World*) = 0; virtual void EnterSystemMngr(const SystemMngr*) = 0; virtual ...
30.83
24
(translation_unit) "#pragma once\n\nnamespace Ubpa::UECS {\n class World;\n class SystemMngr;\n class System;\n class EntityMngr;\n class Entity;\n class CmptPtr;\n\n class IListener {\n public:\n virtual void EnterWorld(const World*) = 0;\n virtual void ExistWorld(const World*) = 0;\n\n virtual void EnterSystemMngr...
277
13
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 30.83, "nodes": 191, "errors": 0, "source_hash": "e45760593c67ef3a3871232bbc4103232bb7881ea577e98fca4871e640ee2f74", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
263
c
// // UIImage+KMUtilities.h // Tun2Web // // Created by kevinma on 2016/10/20. // Copyright © 2016年 kevinma. All rights reserved. // #import <UIKit/UIKit.h> @interface UIImage (KMUtilities) + (UIImage *)bundleImageNamed:(NSString *)name; + (UIImage *)fixOrientation:(UIImage *)srcImg; - (UIImage *)normalizedImage...
24
13
(translation_unit) "//\n// UIImage+KMUtilities.h\n// Tun2Web\n//\n// Created by kevinma on 2016/10/20.\n// Copyright © 2016年 kevinma. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIImage (KMUtilities)\n\n+ (UIImage *)bundleImageNamed:(NSString *)name;\n+ (UIImage *)fixOrientation:(UIImage *)src...
80
7
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 24.0, "nodes": 50, "errors": 0, "source_hash": "931dd9d8265bcb9cc1e07c834a929d917c11211940bb20976f6188d9d463b63e", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKi...
264
c
/**************************************************************************** * * Copyright 2017 Samsung Electronics 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...
27.17
59
(translation_unit) "/****************************************************************************\n *\n * Copyright 2017 Samsung Electronics 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 obtai...
350
0
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 27.17, "nodes": 192, "errors": 0, "source_hash": "fa4e89dc5aebd23c426625e152bc1bbe126624ae071f2e1867c7147324a1a689", "categorized_nodes": 142}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
265
c
// // CBL_Shared.h // CouchbaseLite // // Created by <NAME> on 3/20/13. // Copyright (c) 2013 Couchbase, Inc. All rights reserved. // // #import <Foundation/Foundation.h> @class CBL_Server, MYReadWriteLock; /** Container for shared state between CBLDatabase instances that represent the same database file. API is...
34.14
35
(ERROR) "//\n// CBL_Shared.h\n// CouchbaseLite\n//\n// Created by <NAME> on 3/20/13.\n// Copyright (c) 2013 Couchbase, Inc. All rights reserved.\n//\n//\n\n#import <Foundation/Foundation.h>\n@class CBL_Server, MYReadWriteLock;\n\n\n/** Container for shared state between CBLDatabase instances that represent the same...
310
43
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 34.14, "nodes": 178, "errors": 0, "source_hash": "483b5e744b63c79f94e182987b857ef19b8bdffe49c6071067f0fbea157a1896", "categorized_nodes": 107}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// CBL_Shared.h\n// ...
266
c
#include "Problem.h" #include <stdio.h> #include <stdlib.h> void initQueenProblem(Problem* p,int newn ) { p->d=newDomain(newn); p->n = newn; p->c=malloc(sizeof(Constraint)*3*(p->n)*(p->n)-3*(p->n)); int compte = 0; for(int i = 0; i<p->n; i++) { for(int j=0; j<p->n; j++) { if(i!...
24.72
69
(translation_unit) "#include "Problem.h"\n#include <stdio.h>\n#include <stdlib.h>\n\n\nvoid initQueenProblem(Problem* p,int newn ) {\n p->d=newDomain(newn);\n p->n = newn;\n p->c=malloc(sizeof(Constraint)*3*(p->n)*(p->n)-3*(p->n));\n int compte = 0;\n for(int i = 0; i<p->n; i++) {\n for(int j=0; j...
686
0
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 24.72, "nodes": 406, "errors": 0, "source_hash": "9abdac15662159a0223cb3a77c75c8d298bd13c6f8e79fdf4ee65baac52e1589", "categorized_nodes": 310}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
267
c
/* * errorHandling.c * * Created on: 22 dic 2018 * Author: ugo */ #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include "errorHandling.h" void report_error(const char *msg, const char *file, int line_no, int use_perror) { fprintf(stderr,"[%s:%d] ",file,line_no); if(use_perror != 0) { ...
18.07
28
(translation_unit) "/*\n * errorHandling.c\n *\n * Created on: 22 dic 2018\n * Author: ugo\n */\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <pthread.h>\n#include "errorHandling.h"\n\n\nvoid report_error(const char *msg, const char *file, int line_no, int use_perror)\n{\n fprintf(stderr,"[%s:%d] ",file,li...
163
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 18.07, "nodes": 90, "errors": 0, "source_hash": "359b56a8ab60d1d97ee5c96f7e42fb8cc17eed35a454d08ae378fce3cf3cf2d6", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
268
c
#ifndef RANGE_SUM_OF_BST_H_ #define RANGE_SUM_OF_BST_H_ #include <stack> #include "tree-node.h" namespace solution { int rangeSumBST(TreeNode* root, int low, int high) { // direct // Runtime: 128 ms, faster than 42.77% of C++ online submissions for Range Sum of BST. // Memory Usage: 64.8 MB, less than 15.65% ...
27.07
41
(translation_unit) "#ifndef RANGE_SUM_OF_BST_H_\n#define RANGE_SUM_OF_BST_H_\n\n#include <stack>\n\n#include "tree-node.h"\n\nnamespace solution {\n\nint rangeSumBST(TreeNode* root, int low, int high) {\n // direct\n // Runtime: 128 ms, faster than 42.77% of C++ online submissions for Range Sum of BST.\n // Memory U...
402
8
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 27.07, "nodes": 255, "errors": 0, "source_hash": "7d730f34a6559eafbce75c6e609edb135fe5b39e17f99586327e9dbe1ca4d087", "categorized_nodes": 188}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
269
c
/** ************************************************************************* \fn ADM_inttype.h \brief Defint plaform agnostic var type copyright : (C) 2008 by mean ***************************************************************************/ #pragma once #include "AD...
27.56
59
(translation_unit) "/** *************************************************************************\n \fn ADM_inttype.h\n \brief Defint plaform agnostic var type\n \n copyright : (C) 2008 by mean\n \n ***************************************************************************/\...
196
0
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 27.56, "nodes": 167, "errors": 0, "source_hash": "766797e53aa5e233f600367724a4221c7becefaf384b6fb5f0fb8f1c90fccaa2", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
270
c
/*$ Copyright (c) 2014-2017, Azel All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the follow...
38.15
60
(translation_unit) "/*$\nCopyright (c) 2014-2017, Azel\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n * Redistributions of source code must retain the above copyright\n notice, this list o...
215
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 38.15, "nodes": 152, "errors": 0, "source_hash": "ffbdaabb8dfe33e21b865e0e7948f77b9506bc7082357deaeccf6aeb59b11026", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "MARKDAT...
271
c
// // SlideTransitionAnimator.h // SlideController // // Created by weuse_hao on 2018/9/3. // Copyright © 2018 weuse_hao. All rights reserved. // #import <UIKit/UIKit.h> typedef NS_ENUM(NSUInteger, SlideTransitionType) { SlideTransitionTypeModal, SlideTransitionTypePush, }; NS_ASSUME_NONNULL_BEGIN @inte...
33.53
19
(translation_unit) "//\n// SlideTransitionAnimator.h\n// SlideController\n//\n// Created by weuse_hao on 2018/9/3.\n// Copyright © 2018 weuse_hao. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\ntypedef NS_ENUM(NSUInteger, SlideTransitionType) {\n SlideTransitionTypeModal,\n SlideTransitionTypePush,\n}...
108
11
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 33.53, "nodes": 66, "errors": 0, "source_hash": "4754f4a356aeba0a4ff0bb351128b5d0bc3e9ba8eb2e8a42edda5957d2eddce7", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
272
c
// StrArray.h: interface for the CStrArray class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_STRARRAY_H__9F745161_BBA5_4006_8CA4_3F201B316DED__INCLUDED_) #define AFX_STRARRAY_H__9F745161_BBA5_4006_8CA4_3F201B316DED__INCLUDED_ #if _MSC_VER > 1000 #pragma once #e...
21.57
42
(translation_unit) "// StrArray.h: interface for the CStrArray class. \n// \n////////////////////////////////////////////////////////////////////// \n \n#if !defined(AFX_STRARRAY_H__9F745161_BBA5_4006_8CA4_3F201B316DED__INCLUDED_) \n#define AFX_STRARRAY_H__9F745161_BBA5_4006_8CA4_3F201B316DED__INCLUDED_ \n \n#if _MSC_V...
211
6
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 21.57, "nodes": 132, "errors": 0, "source_hash": "7a3de0264b4b3ee6217ebb18de53cd3f14990abf08027edfa722d7b4c9c9f98c", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defin...
273
c
#ifndef CATEGORY_BANK_INCLUDED #define CATEGORY_BANK_INCLUDED #include "minorGems/util/SimpleVector.h" typedef struct CategoryRecord { // object ID of parent object int parentID; // true if this category is a pattern // means parendID is a real gameplay object, and that we ad...
33.42
85
(translation_unit) "#ifndef CATEGORY_BANK_INCLUDED\n#define CATEGORY_BANK_INCLUDED\n\n#include "minorGems/util/SimpleVector.h"\n\n\ntypedef struct CategoryRecord {\n // object ID of parent object\n int parentID;\n \n // true if this category is a pattern\n // means parendID is a real ...
358
3
{"language": "c", "success": true, "metadata": {"lines": 85, "avg_line_length": 33.42, "nodes": 247, "errors": 0, "source_hash": "454ddaee1770c129bbbe6b694fa7501ad760bad3bd169864899496cae0fd4ccb", "categorized_nodes": 154}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
274
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/NeutrinoCore.framework/NeutrinoCore */ @interface NUEnumSetting : NUSetting { NSArray * _values; } @property (readonly) NSString *defaultValue; @property (readonly) NSArray *values; + (id)deserializeFromDictionary:(id)arg1 error:(out id*...
31.43
21
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/NeutrinoCore.framework/NeutrinoCore\n */\n\n@interface NUEnumSetting : NUSetting {\n NSArray * _values;\n}\n\n@property (readonly) NSString *defaultValue;\n@property (readonly) NSArray *values;\n\n+ (id)deserializeFromDic...
260
25
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 31.43, "nodes": 163, "errors": 0, "source_hash": "84961e0c36a56b512cd2aea3a8367fa0b6eb3505ecaffa348214cd8097100fb0", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": n...
275
c
/* * Copyright (c) 2014-2015 <NAME> <<EMAIL>> * * Distributed under the terms of the MIT license. * (See LICENSE.MIT or http://opensource.org/licenses/MIT) */ #ifndef _ZRAM_DATA_TYPES_H_ #define _ZRAM_DATA_TYPES_H_ #include <stdint.h> #include <sys/types.h> #include "globals.h" #include "config.h" enum { Z...
27.11
75
(translation_unit) "/*\n * Copyright (c) 2014-2015 <NAME> <<EMAIL>>\n *\n * Distributed under the terms of the MIT license.\n * (See LICENSE.MIT or http://opensource.org/licenses/MIT)\n */\n\n#ifndef _ZRAM_DATA_TYPES_H_\n#define _ZRAM_DATA_TYPES_H_\n\n#include <stdint.h>\n#include <sys/types.h>\n\n#include "globals.h"\...
388
0
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 27.11, "nodes": 264, "errors": 0, "source_hash": "5e4eb14b18ef5c372c8a3e95e9833e84c0f68823a3b4ccbfe6922197a9493a43", "categorized_nodes": 182}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
276
c
/*++ Copyright (c) 2011 Microsoft Corporation Module Name: bit_blaster_rewriter.h Abstract: Bit-blasting rewriter Author: Leonardo (leonardo) 2012-10-04 Notes: --*/ #pragma once #include "ast/ast.h" #include "util/obj_hashtable.h" #include "util/params.h" class bit_blaster_rewriter { struct im...
28.94
34
(translation_unit) "/*++\nCopyright (c) 2011 Microsoft Corporation\n\nModule Name:\n\n bit_blaster_rewriter.h\n\nAbstract:\n\n Bit-blasting rewriter\n\nAuthor:\n\n Leonardo (leonardo) 2012-10-04\n\nNotes:\n\n--*/\n#pragma once\n\n#include "ast/ast.h"\n#include "util/obj_hashtable.h"\n#include "util/params.h"\n...
263
15
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 28.94, "nodes": 162, "errors": 0, "source_hash": "073db41987daafd6babb00be7406bcae4832b4845e8ecad736cbbeac8e743b44", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
277
c
#include "task_led.h" #include "task_environmental.h" #include "ruuvi_driver_error.h" #include "ruuvi_interface_gpio.h" #include <stddef.h> static uint16_t m_activity_led; ruuvi_driver_status_t task_led_init(void) { ruuvi_driver_status_t err_code = RUUVI_DRIVER_SUCCESS; if(!ruuvi_interface_gpio_is_init()) { ...
31.47
53
(translation_unit) "#include "task_led.h"\n#include "task_environmental.h"\n#include "ruuvi_driver_error.h"\n#include "ruuvi_interface_gpio.h"\n#include <stddef.h>\n\nstatic uint16_t m_activity_led;\n\nruuvi_driver_status_t task_led_init(void)\n{\n ruuvi_driver_status_t err_code = RUUVI_DRIVER_SUCCESS;\n\n if(!ruuvi_...
353
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 31.47, "nodes": 218, "errors": 0, "source_hash": "6d7a3fb8f75595fee4973016c3bc065e199e0977e9deea04860976c68cb7100e", "categorized_nodes": 150}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
278
c
//-------------------------------------------------------------------------------------- // MemoryMapping.h // PIX Pluging for PIX Workshop GDC2007 // Copyright (c) Microsoft Corporation. All rights reserved. //-------------------------------------------------------------------------------------- #pragma once #ifndef ...
32.6
20
(translation_unit) "//--------------------------------------------------------------------------------------\n// MemoryMapping.h\n// PIX Pluging for PIX Workshop GDC2007\n// Copyright (c) Microsoft Corporation. All rights reserved.\n//-------------------------------------------------------------------------------------...
79
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 32.6, "nodes": 56, "errors": 0, "source_hash": "24d85c21cb848810e0702910ef32b29011418b38c17e369cbd7c515ebe5cfa48", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
279
c
// Copyright (c) 2009-2022 The Regents of the University of Michigan. // Part of HOOMD-blue, released under the BSD 3-Clause License. #ifndef __BOND_EVALUATOR_TETHER_H__ #define __BOND_EVALUATOR_TETHER_H__ #ifndef __HIPCC__ #include <string> #endif #include "hoomd/HOOMDMath.h" /*! \file EvaluatorBondTether.h \b...
31.81
172
(translation_unit) "// Copyright (c) 2009-2022 The Regents of the University of Michigan.\n// Part of HOOMD-blue, released under the BSD 3-Clause License.\n\n#ifndef __BOND_EVALUATOR_TETHER_H__\n#define __BOND_EVALUATOR_TETHER_H__\n\n#ifndef __HIPCC__\n#include <string>\n#endif\n\n#include "hoomd/HOOMDMath.h"\n\n/*! \f...
1,226
33
{"language": "c", "success": true, "metadata": {"lines": 172, "avg_line_length": 31.81, "nodes": 761, "errors": 0, "source_hash": "a5726314da3141617863c9c47084d1ab28b6e81f474df6b89bd49e83b7491616", "categorized_nodes": 570}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
280
c
/* * socket methods (mostly unimplemented) */ #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <fcntl.h> #include <unistd.h> #include <sys/ioctl.h> #include <sys/types.h> #include <sys/socket.h> static struct hostent _out_host = {0}; static struct in_addr * _out_host_vector[2]...
28.04
105
(translation_unit) "/*\n * socket methods (mostly unimplemented)\n */\n#include <stdio.h>\n#include <stdint.h>\n#include <stdlib.h>\n#include <string.h>\n#include <fcntl.h>\n#include <unistd.h>\n#include <sys/ioctl.h>\n#include <sys/types.h>\n#include <sys/socket.h>\n\n\nstatic struct hostent _out_host = {0};\nstatic s...
1,040
0
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 28.04, "nodes": 663, "errors": 0, "source_hash": "236de81df937644f9430a5e8525b8fe55fb5b7d1f61590d22ca94a6dda9ba29e", "categorized_nodes": 457}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
281
c
int f(int x) { if (x > 10) { sleep(5); } return x+1; }
11.5
6
(translation_unit) "int f(int x) {\n if (x > 10) {\n sleep(5);\n }\n return x+1;\n}\n\n" (function_definition) "int f(int x) {\n if (x > 10) {\n sleep(5);\n }\n return x+1;\n}" (primitive_type) "int" (function_declarator) "f(int x)" (identifier) "f" (parameter_list)...
41
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 11.5, "nodes": 23, "errors": 0, "source_hash": "cd04e1d5ebb4062518b1a9c818a83eccecedb93883755551f9425ec83cc5d5b4", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "int ...
282
c
#ifndef CLIENT_H #define CLIENT_H #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netdb.h> #include <unistd.h> #include <errno.h> #include <ctype.h> #include <string.h> #include <memory.h> #include <stdio.h> #include <stdlib.h> #include <dirent.h> #include <fcntl.h> /* ============...
26.18
66
(translation_unit) "#ifndef CLIENT_H\n#define CLIENT_H\n\n#include <sys/socket.h>\n#include <netinet/in.h>\n#include <arpa/inet.h>\n#include <netdb.h> \n\n#include <unistd.h>\n#include <errno.h>\n\n#include <ctype.h>\n#include <string.h>\n#include <memory.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <dirent.h>...
484
0
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 26.18, "nodes": 325, "errors": 0, "source_hash": "71bcb1b9707257b5a9b5b87602191b88a3ead564e5000f18f3baffb5f574e1e0", "categorized_nodes": 192}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
283
c
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty o...
39.7
199
(translation_unit) "/*===================================================================\n\nThe Medical Imaging Interaction Toolkit (MITK)\n\nCopyright (c) German Cancer Research Center,\nDivision of Medical and Biological Informatics.\nAll rights reserved.\n\nThis software is distributed WITHOUT ANY WARRANTY; without...
1,120
56
{"language": "c", "success": true, "metadata": {"lines": 199, "avg_line_length": 39.7, "nodes": 710, "errors": 0, "source_hash": "9b802995fc8ec886fd065f5664763f4f9c42b15c84593fd506510b64f07b038c", "categorized_nodes": 466}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
284
c
/* * Copyright (c) 2018 Liming,Deng <<EMAIL>> * Author: <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, ...
21.54
121
(translation_unit) "/*\n * Copyright (c) 2018 Liming,Deng <<EMAIL>>\n * Author: <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 limitat...
624
0
{"language": "c", "success": true, "metadata": {"lines": 121, "avg_line_length": 21.54, "nodes": 408, "errors": 0, "source_hash": "1185ff9a274d89af6ffdba6b4e51e24516513c34b799736f191b8d40688c8c69", "categorized_nodes": 280}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
285
c
/*! * @file main.c * @brief Altitude5 Click example * * # Description * This library contains API for Altitude 5 Click driver. * The demo application reads ADC value, calculate pressure and altitude. * * The demo application is composed of two sections : * * ## Application Init * Initializes I2C or analog dr...
31.35
82
(translation_unit) "/*!\n * @file main.c\n * @brief Altitude5 Click example\n *\n * # Description\n * This library contains API for Altitude 5 Click driver.\n * The demo application reads ADC value, calculate pressure and altitude.\n *\n * The demo application is composed of two sections :\n *\n * ## Application Init\n...
390
0
{"language": "c", "success": true, "metadata": {"lines": 82, "avg_line_length": 31.35, "nodes": 206, "errors": 0, "source_hash": "10257446a2568c2b4590eb0e4601b2faaa83ccf208d2d6ac2d633bde19a25c30", "categorized_nodes": 145}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "nclu...
286
c
#ifndef SERIALIZATION_LIBRARY #define SERIALIZATION_LIBRARY #include "std_include.h" #include <boost/serialization/split_free.hpp> #include <boost/serialization/vector.hpp> using namespace std; using namespace cv; BOOST_SERIALIZATION_SPLIT_FREE(Mat) namespace boost { namespace serialization { /** Se...
31.83
42
(translation_unit) "#ifndef SERIALIZATION_LIBRARY\n#define SERIALIZATION_LIBRARY\n\n#include "std_include.h"\n\n#include <boost/serialization/split_free.hpp>\n#include <boost/serialization/vector.hpp>\n\nusing namespace std;\nusing namespace cv;\n\nBOOST_SERIALIZATION_SPLIT_FREE(Mat)\nnamespace boost\n{\n namespace ...
334
14
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 31.83, "nodes": 206, "errors": 0, "source_hash": "1a1ca29c1f9a925dda27d72dea15716d9d91e3a65e500f3f4d07d9d8c1494e65", "categorized_nodes": 158}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
287
c
// // SelectCountryView.h // Connect // // Created by MoHuilin on 2016/12/6. // Copyright © 2016年 Connect - P2P Encrypted Instant Message. All rights reserved. // #import <UIKit/UIKit.h> @interface SelectCountryView : UIControl @property(strong, nonatomic) UILabel *countryInfoLabel; + (instancetype)viewWithCoun...
34.69
13
(ERROR) "//\n// SelectCountryView.h\n// Connect\n//\n// Created by MoHuilin on 2016/12/6.\n// Copyright © 2016年 Connect - P2P Encrypted Instant Message. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface SelectCountryView : UIControl\n\n@property(strong, nonatomic) UILabel *countryInfoLabel;\n\n+ (in...
76
7
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 34.69, "nodes": 46, "errors": 0, "source_hash": "a248959b06aef9d7960ed55dbdbbce39ba2ec657e37157d60511e2f5eea0c4a9", "categorized_nodes": 26}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// SelectCountryView.h...
288
c
// // ShowShareView.h // wecoo // // Created by 屈小波 on 2016/11/21. // Copyright © 2016年 屈小波. All rights reserved. // #import <UIKit/UIKit.h> @interface ShowShareView : UIView @property (nonatomic, strong) UIView *bgclickview; @property (nonatomic, strong) UIImageView *wechatImageView; @property (nonatomic, stro...
29.37
19
(translation_unit) "//\n// ShowShareView.h\n// wecoo\n//\n// Created by 屈小波 on 2016/11/21.\n// Copyright © 2016年 屈小波. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ShowShareView : UIView\n@property (nonatomic, strong) UIView *bgclickview;\n@property (nonatomic, strong) UIImageView *wechatImage...
153
32
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 29.37, "nodes": 111, "errors": 0, "source_hash": "1150bfedae3574d41ad71ac476d6bab84a2da482d4181cfaae5d8ff72f36beb2", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit.h>...
289
c
/* Copyright (C) 2016 <NAME>. All Rights Reserved. * Written by <NAME> (<EMAIL>) This file is part of Kung Foo Barracuda. Kung Foo Barracuda is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of th...
38.58
149
(translation_unit) "/*\nCopyright (C) 2016 <NAME>. All Rights Reserved.\n* Written by <NAME> (<EMAIL>)\n\nThis file is part of Kung Foo Barracuda.\n\nKung Foo Barracuda is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Founda...
1,482
62
{"language": "c", "success": true, "metadata": {"lines": 149, "avg_line_length": 38.58, "nodes": 876, "errors": 0, "source_hash": "e92ad4b40c40b11747722a6e0c84d20dfa41c3ddc1cd7859a0c7d8a85df5f5e5", "categorized_nodes": 656}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
290
c
#include "sliding_window.h" SlidingWindow SlidingWindow_create(uint16_t sequence_base, uint16_t window_size){ SlidingWindow window; window.sequence_base = sequence_base; window.sequence_max = window_size + 1; window.window_size = window_size; return window; } // Updates void SlidingWindow_upd...
34.82
17
(translation_unit) "#include "sliding_window.h"\n\nSlidingWindow SlidingWindow_create(uint16_t sequence_base, uint16_t window_size){\n SlidingWindow window;\n window.sequence_base = sequence_base;\n window.sequence_max = window_size + 1;\n window.window_size = window_size;\n \n return window;\n}\n\n//...
131
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 34.82, "nodes": 84, "errors": 0, "source_hash": "116e60ce2a8a5e96b90030d8eed3ed00ac66ec78161032c87b975482d670b554", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
291
c
/// @file system/diagnostics/file_version_info.h #ifndef _file_version_info_h_ #define _file_version_info_h_ #include "fwd.h" #include "system/string.h" namespace System { namespace Diagnostics { /// Provides information on file version. /// Objects of this class should only be allocated using System::MakeObject() ...
30.8
70
(translation_unit) "/// @file system/diagnostics/file_version_info.h\n#ifndef _file_version_info_h_\n#define _file_version_info_h_\n\n#include "fwd.h"\n#include "system/string.h"\n\nnamespace System { namespace Diagnostics { \n\n/// Provides information on file version.\n/// Objects of this class should only be allocat...
213
5
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 30.8, "nodes": 116, "errors": 0, "source_hash": "d593f31ca5785360f38d16bdbf89ca4654d02946bc6e9aa7e0be6ab04637ff13", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
292
c
/* This file is part of VoltDB. * Copyright (C) 2019 VoltDB Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later v...
35.82
66
(translation_unit) "/* This file is part of VoltDB.\n * Copyright (C) 2019 VoltDB Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (a...
324
7
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 35.82, "nodes": 194, "errors": 0, "source_hash": "dafff3e8ada86359a62b17d797098f4030302562779c4650db88681c16d21471", "categorized_nodes": 137}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
293
c
/********************************************************************** * * GEOS - Geometry Engine Open Source * http://geos.osgeo.org * * Copyright (C) 2020 <NAME> <<EMAIL>> * * This is free software; you can redistribute and/or modify it under * the terms of the GNU Lesser General Public Licence as published ...
33.97
160
(translation_unit) "/**********************************************************************\n *\n * GEOS - Geometry Engine Open Source\n * http://geos.osgeo.org\n *\n * Copyright (C) 2020 <NAME> <<EMAIL>>\n *\n * This is free software; you can redistribute and/or modify it under\n * the terms of the GNU Lesser General ...
570
24
{"language": "c", "success": true, "metadata": {"lines": 160, "avg_line_length": 33.97, "nodes": 346, "errors": 0, "source_hash": "1094d46b6b726d21993b8ff987b096b61419f42032ba5071bdc6e361e2070042", "categorized_nodes": 231}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
294
c
// // UIColor+Hexcolor.h // MTKIT // // Created by 鲁志刚 on 2017/9/26. // Copyright © 2017年 MTKIT. All rights reserved. // #import <UIKit/UIKit.h> #define HEXCOLOR(c) [UIColor colorWithRed:((c>>16)&0xFF)/255.0 green:((c>>8)&0xFF)/255.0 blue:(c&0xFF)/255.0 alpha:1.0] @interface UIColor_Hexcolor : UIColor @end
27.36
11
(translation_unit) "//\n// UIColor+Hexcolor.h\n// MTKIT\n//\n// Created by 鲁志刚 on 2017/9/26.\n// Copyright © 2017年 MTKIT. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#define HEXCOLOR(c) [UIColor colorWithRed:((c>>16)&0xFF)/255.0 green:((c>>8)&0xFF)/255.0 blue:(c&0xFF)/255.0 alpha:1.0]\n\n@interface UIColor...
27
3
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 27.36, "nodes": 16, "errors": 0, "source_hash": "89c53983795a1d07b4d808d621985b967125b5e4bc134810f1bb98c51108355b", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit/UIKi...
295
c
/* SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include <tilck/common/basic_defs.h> struct datetime { union { struct { u8 sec; /* Seconds (0-60) */ u8 min; /* Minutes (0-59) */ u8 hour; /* Hours (0-23) */ u8 weekday; /* Weekday (0-6, Sund...
32.42
19
(translation_unit) "/* SPDX-License-Identifier: BSD-2-Clause */\n\n#pragma once\n#include <tilck/common/basic_defs.h>\n\nstruct datetime {\n\n union {\n\n struct {\n u8 sec; /* Seconds (0-60) */\n u8 min; /* Minutes (0-59) */\n u8 hour; /* Hours (0-23) */\n u8 ...
100
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 32.42, "nodes": 64, "errors": 0, "source_hash": "f22676c6f101151b6dad2e16c30c79d5f9a99f7a481ad9785285205e507576c2", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
296
c
#include <stdio.h> #include <espressif/esp_wifi.h> #include <espressif/esp_sta.h> #include <esp/uart.h> #include <esp8266.h> #include <FreeRTOS.h> #include <task.h> #include <homekit/homekit.h> #include <homekit/characteristics.h> //#include "wifi.h" #include <wifi_config.h> #include "i2c/i2c.h" #include "bmp280/bmp28...
37.28
176
(translation_unit) "#include <stdio.h>\n#include <espressif/esp_wifi.h>\n#include <espressif/esp_sta.h>\n#include <esp/uart.h>\n#include <esp8266.h>\n#include <FreeRTOS.h>\n#include <task.h>\n\n#include <homekit/homekit.h>\n#include <homekit/characteristics.h>\n//#include "wifi.h"\n#include <wifi_config.h>\n#include "i...
1,610
6
{"language": "c", "success": true, "metadata": {"lines": 176, "avg_line_length": 37.28, "nodes": 896, "errors": 0, "source_hash": "256b068ba818904f54e38eaed99fff924921d207926b3b02ab07dea61b69c067", "categorized_nodes": 624}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
297
c
#ifndef _M68K_CHECKSUM_H #define _M68K_CHECKSUM_H /* * computes the checksum of a memory block at buff, length len, * and adds in "sum" (32-bit) * * returns a 32-bit number suitable for feeding into itself * or csum_tcpudp_magic * * this function must be called with even lengths, except * for the last fragment...
26.01
148
(translation_unit) "#ifndef _M68K_CHECKSUM_H\n#define _M68K_CHECKSUM_H\n\n/*\n * computes the checksum of a memory block at buff, length len,\n * and adds in "sum" (32-bit)\n *\n * returns a 32-bit number suitable for feeding into itself\n * or csum_tcpudp_magic\n *\n * this function must be called with even lengths, e...
1,009
0
{"language": "c", "success": true, "metadata": {"lines": 148, "avg_line_length": 26.01, "nodes": 595, "errors": 0, "source_hash": "1d62dd04905a57b6039a50a731b90570ffbc6124db2cfd3483b15c12af9dcdf7", "categorized_nodes": 334}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
298
c
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 150000 && __IPHONE_OS_VERSION_MAX_ALLOWED < 160000 #import "Xcode_13_0_XCTestCore_CDStructures.h" #import "Xcode_13_0_SharedHeader.h" #import <Foundation/Foundation.h> // // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 200...
36.05
19
(translation_unit) "#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 150000 && __IPHONE_OS_VERSION_MAX_ALLOWED < 160000\n\n#import "Xcode_13_0_XCTestCore_CDStructures.h"\n#import "Xcode_13_0_SharedHeader.h"\n#import <Foundation/Foundation.h>\n\n//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright ...
127
10
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 36.05, "nodes": 82, "errors": 0, "source_hash": "3384a469c342a2600ff0eb0c2cdbd6f693fe7e48ef18769104e79e1835965f27", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if __IPHON...
299