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
#pragma once #include "Map.h" namespace Game { extern std::vector<Object*> objects; extern BioMap::map_t map; void main(); typedef enum { OBJT_DUDE, OBJT_CITY, OBJT_STRUCTURE, } ObjectType; struct Object { uint8_t x; uint8_t y; virtual bool autoUpdate(); virtual boo...
11.38
32
(translation_unit) "#pragma once \n#include "Map.h" \n \nnamespace Game \n{ \n extern std::vector<Object*> objects; \n \n extern BioMap::map_t map; \n \n void main(); \n \n typedef enum \n { \n OBJT_DUDE, \n OBJT_CITY, \n OBJT_STRUCTURE, \n } ObjectType; \n \n struct Object \n { \n uint8_t x; \n uint8_t y; \n \n ...
123
6
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 11.38, "nodes": 81, "errors": 0, "source_hash": "08df9866355ff1e94056bbd913d28d2f9d6e6928448528cbf5ee1b449042d3f1", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
1,000
c
// // YCXBannerPhotoProtocol.h // YCXBannerViewDemo // // Created by 牛萌 on 15/12/17. // Copyright © 2015年 self.Aster0id. All rights reserved. // #import <Foundation/Foundation.h> /// 通知:图片加载完成 UIKIT_EXTERN NSString *const kYCXBannerPhotoLoadingDidEndNotification; /// 通知:图片加载进度 UIKIT_EXTERN NSString *const kYCXB...
24.45
22
(translation_unit) "//\n// YCXBannerPhotoProtocol.h\n// YCXBannerViewDemo\n//\n// Created by 牛萌 on 15/12/17.\n// Copyright © 2015年 self.Aster0id. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n\n/// 通知:图片加载完成\nUIKIT_EXTERN NSString *const kYCXBannerPhotoLoadingDidEndNotification;\n\n/// 通知:图片加载进度\...
84
8
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 24.45, "nodes": 53, "errors": 0, "source_hash": "f8e3450120f0bbe4fd516a9b8f34a1267751284e901a13dddf1268eb04813639", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <Foundat...
1,001
c
#include <stdio.h> #define maiuscula(c) ((c)>=65 && (c)<=90) int main (void){ char x; printf("Caractere? "); scanf("%c", &x); printf("Maiuscula? %s\n", maiuscula(x) ? "sim" : "nao"); return 0; }
21.22
9
(translation_unit) "#include <stdio.h>\n#define maiuscula(c) ((c)>=65 && (c)<=90)\n\nint main (void){\n char x;\n printf("Caractere? ");\n scanf("%c", &x);\n printf("Maiuscula? %s\n", maiuscula(x) ? "sim" : "nao");\n return 0;\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_st...
88
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 21.22, "nodes": 44, "errors": 0, "source_hash": "48fe201f3d938e6633f4cfc4e090b5c71631cf35fa82a7d8516777d144725fa3", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
1,002
c
#ifndef DOOR_H #define DOOR_H #include <QGraphicsPixmapItem> class Door : public QGraphicsItem { public: Door(); }; #endif // DOOR_H
13.89
9
(translation_unit) "#ifndef DOOR_H\n#define DOOR_H\n\n#include <QGraphicsPixmapItem>\n\nclass Door : public QGraphicsItem\n{\npublic:\n Door();\n};\n\n#endif // DOOR_H\n" (preproc_ifdef) "#ifndef DOOR_H\n#define DOOR_H\n\n#include <QGraphicsPixmapItem>\n\nclass Door : public QGraphicsItem\n{\npublic:\n Door();\n};\n\...
34
1
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 13.89, "nodes": 18, "errors": 0, "source_hash": "acf13ae31e5896dfc85797304b709e1d55bd1230f9854107794cd037fad9eac3", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef D...
1,003
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/UserNotificationsUIKit.framework/UserNotificationsUIKit */ @interface NCVibrantHighContrastStyling : NCVibrantStyling - (double)alpha; - (id)blendMode; - (id)color; - (long long)style; @end
28.56
9
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/UserNotificationsUIKit.framework/UserNotificationsUIKit\n */\n\n@interface NCVibrantHighContrastStyling : NCVibrantStyling\n\n- (double)alpha;\n- (id)blendMode;\n- (id)color;\n- (long long)style;\n\n@end\n" (comment) "/* G...
55
4
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 28.56, "nodes": 33, "errors": 0, "source_hash": "b46c5315d2eebb9ebdd61cd89060f1124d4705091f08ee9ce66ceadf14766814", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface NCVibr...
1,004
c
#pragma once #include <memory> #include <vector> #include <glm/glm.hpp> #include "../Buffer/GraphicsBuffer.h" #include "../Shader/ShaderModule.h" #include "../Texture/FrameBuffer.h" #include "BlendFactor.h" #include "BlendMode.h" #include "DepthTestMode.h" #include "FaceCullMode.h" #include "GeometryLayout.h" #includ...
37.8
45
(translation_unit) "#pragma once\n\n#include <memory>\n#include <vector>\n#include <glm/glm.hpp>\n\n#include "../Buffer/GraphicsBuffer.h"\n#include "../Shader/ShaderModule.h"\n#include "../Texture/FrameBuffer.h"\n#include "BlendFactor.h"\n#include "BlendMode.h"\n#include "DepthTestMode.h"\n#include "FaceCullMode.h"\n#i...
371
28
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 37.8, "nodes": 250, "errors": 0, "source_hash": "1d71275b3e0e8ab335fafd09922200df7afd606b74dec9d7cb86ace29578639b", "categorized_nodes": 179}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
1,005
c
/* * Blacklist Copyright 2013 Regents of the University of Michigan * * 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 */ #include "blacklist.h"...
28.43
258
(translation_unit) "/*\n * Blacklist Copyright 2013 Regents of the University of Michigan\n *\n * Licensed under the Apache License, Version 2.0 (the "License"); you may not\n * use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n ...
1,967
0
{"language": "c", "success": true, "metadata": {"lines": 258, "avg_line_length": 28.43, "nodes": 1117, "errors": 0, "source_hash": "009e6616e5ddaa76fb66080c7e7d89021d312c4f51f9bbeb5f6fc71fffcbec02", "categorized_nodes": 783}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
1,006
c
#pragma once #include <cgv/math/fvec.h> #include "rectangle_renderer.h" #include "placeable.h" #include "plane.h" using namespace cgv::render; namespace vr { namespace room { // simple wrapper for drawable and placable class virtual_display : public drawable, public placeable { public: struct intersection ...
27.96
47
(translation_unit) "#pragma once\n\n#include <cgv/math/fvec.h>\n#include "rectangle_renderer.h"\n\n#include "placeable.h"\n#include "plane.h"\n\nusing namespace cgv::render;\n\nnamespace vr {\nnamespace room {\n // simple wrapper for drawable and placable\n class virtual_display : public drawable, public placeable \n {...
392
23
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 27.96, "nodes": 229, "errors": 0, "source_hash": "b5c9c718c803cbdc865c295be25d89507ed7600b0100803dffc0305f02708aab", "categorized_nodes": 156}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
1,007
c
/* * RingDriver.h * * Created on: 5.11.2013 * Author: <NAME> */ #ifndef RINGDRIVER_H_ #define RINGDRIVER_H_ /** * Controls PWM output to give correct amount of power to transistors driving * magnet-below subsystem's electromagnet ring. * * Currently, only controls one output pin to be used for all magn...
23.27
44
(translation_unit) "/*\n * RingDriver.h\n *\n * Created on: 5.11.2013\n * Author: <NAME>\n */\n\n#ifndef RINGDRIVER_H_\n#define RINGDRIVER_H_\n\n/**\n * Controls PWM output to give correct amount of power to transistors driving\n * magnet-below subsystem's electromagnet ring.\n *\n * Currently, only controls one ...
71
1
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 23.27, "nodes": 38, "errors": 0, "source_hash": "12e7ec628a44722c93f9475be7e2b62769b51d854a77b35f555b233b7c33fd15", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,008
c
/* * File: * mod_order.h * Author(s): * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * Description: * Module to force transactions to commit in order. * * Copyright (c) 2007-2014. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License ...
26.84
49
(translation_unit) "/*\n * File:\n * mod_order.h\n * Author(s):\n * <NAME> <<EMAIL>>\n * <NAME> <<EMAIL>>\n * Description:\n * Module to force transactions to commit in order.\n *\n * Copyright (c) 2007-2014.\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of ...
41
0
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 26.84, "nodes": 27, "errors": 0, "source_hash": "15e46e8ff178da146b754b469a6c24826fce8b0487f1e4a3925fd9f0db5a8c4c", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,009
c
/* * Exceptions.h * MachOView * * Created by psaghelyi on 20/07/2010. * */ #import "MachOLayout.h" @interface MachOLayout (Exceptions) - (MVNode *)createCFINode:(MVNode *)parent caption:(NSString *)caption location:(uint32_t)location length:(uint32_t)length;...
32.36
25
(translation_unit) "/*\n * Exceptions.h\n * MachOView\n *\n * Created by psaghelyi on 20/07/2010.\n *\n */\n\n#import "MachOLayout.h"\n\n@interface MachOLayout (Exceptions)\n\n- (MVNode *)createCFINode:(MVNode *)parent\n caption:(NSString *)caption\n location:(uint32_t)location\n ...
167
18
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 32.36, "nodes": 105, "errors": 0, "source_hash": "ac005b9180c2f92d3adc6f1e686bebaea3697df25caeff051510ea55e402f2d8", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
1,010
c
/** * @file RBJFilter.h * @author <NAME> * @copyright 2012 <NAME> */ #ifndef RBJFILTER_H_ #define RBJFILTER_H_ #include "Error.h" #include "FilterTypes.h" #ifdef __cplusplus extern "C" { #endif /** Opaque RBJFilter structure */ typedef struct RBJFilter RBJFilter; typedef struct RBJFilterD RB...
22.74
165
(translation_unit) "/** \n * @file RBJFilter.h \n * @author <NAME> \n * @copyright 2012 <NAME> \n */ \n \n#ifndef RBJFILTER_H_ \n#define RBJFILTER_H_ \n \n#include "Error.h" \n#include "FilterTypes.h" \n \n#ifdef __cplusplus \nextern "C" { \n#endif \n \n \n/** Opaque RBJFilter structure */ \ntypedef struct RBJFilter RB...
374
0
{"language": "c", "success": true, "metadata": {"lines": 165, "avg_line_length": 22.74, "nodes": 274, "errors": 0, "source_hash": "c71299786816c5f7c1d3945523927151997dcdd20101454b4d0ab5d2feb61e74", "categorized_nodes": 194}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
1,011
c
/* * Intel Low Power Subsystem clocks. * * Copyright (C) 2013, Intel Corporation * Authors: <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software ...
25.21
19
(translation_unit) "/*\n * Intel Low Power Subsystem clocks.\n *\n * Copyright (C) 2013, Intel Corporation\n * Authors: <NAME> <<EMAIL>>\n * <NAME> <<EMAIL>>\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 version 2 as\n * pu...
45
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 25.21, "nodes": 31, "errors": 0, "source_hash": "873105630949e140e0760ad9231dabacd9b137f06f4013b1ebacc745739bfe56", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,012
c
#ifndef BYZ_UI_H #define BYZ_UI_H #include "core/input_keycodes.h" #include "core/list.h" #include <stdbool.h> #define g_option_name_max_size 32 struct Colour; enum YesNoCommand { YES = KEYCODE_y, NO = KEYCODE_n }; void draw_textbox(int x, int y, int w, int h, struct Colour* fg, struct Colour* bg, const ...
31.25
20
(translation_unit) "#ifndef BYZ_UI_H\n#define BYZ_UI_H\n\n#include "core/input_keycodes.h"\n#include "core/list.h"\n\n#include <stdbool.h>\n\n#define g_option_name_max_size 32\n\nstruct Colour;\n\nenum YesNoCommand\n{\n YES = KEYCODE_y,\n NO = KEYCODE_n\n};\n\nvoid draw_textbox(int x, int y, int w, int h, struct...
213
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 31.25, "nodes": 158, "errors": 0, "source_hash": "60e6d062c0bb6654a0ef1c9dc4a32764dff9d3c15a7c05c910d5d1807cb27d68", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,013
c
#ifndef INCLUDED_ETERMAL_HEADER_FONT_H #define INCLUDED_ETERMAL_HEADER_FONT_H #include "include/terminal/render/Font.h" #endif
30.75
4
(translation_unit) "#ifndef INCLUDED_ETERMAL_HEADER_FONT_H\n#define INCLUDED_ETERMAL_HEADER_FONT_H\n\n#include "include/terminal/render/Font.h"\n\n#endif\n" (preproc_ifdef) "#ifndef INCLUDED_ETERMAL_HEADER_FONT_H\n#define INCLUDED_ETERMAL_HEADER_FONT_H\n\n#include "include/terminal/render/Font.h"\n\n#endif" (#ifn...
14
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 30.75, "nodes": 10, "errors": 0, "source_hash": "652369bcc5e8b761dd4ebe7a40183942b5ba4cb74d5e70632a0a18ed191aea7b", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef IN...
1,014
c
/* ARPACK++ v1.0 8/1/1997 c++ interface to ARPACK code. MODULE NMatrixA.h Class template for the matrix | T -I | |-I T -I | A = | -I T | | ... -I| ...
25.31
86
(translation_unit) "/*\n ARPACK++ v1.0 8/1/1997\n c++ interface to ARPACK code.\n\n MODULE NMatrixA.h\n Class template for the matrix\n\n | T -I |\n |-I T -I |\n A = | -I T |\n | ... ...
743
11
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 25.31, "nodes": 497, "errors": 0, "source_hash": "c5e547eb3c8ea0c1911d35d009af5a87b0cf49e0ccf437059c622d76dc0150de", "categorized_nodes": 361}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,015
c
/* Copyright 2014-2017 Rsyn * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
33.23
48
(translation_unit) "/* Copyright 2014-2017 Rsyn\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by appli...
188
6
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 33.23, "nodes": 126, "errors": 0, "source_hash": "27923e4fae468220f6902663dbde5aed13da2b7b3c7df9b5a46d9fdf8b63d30c", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,016
c
#include <sys/stat.h> #include <sys/wait.h> #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <string.h> #include <unistd.h> static char *argv0; static int single(int argc, char *argv[]) { char size[256], target[4096], source[4096]; char *p; ssize_t r; int fd; p = strchr(argv[0], 'x'); if (!p)...
26.1
168
(translation_unit) "#include <sys/stat.h>\n#include <sys/wait.h>\n#include <errno.h>\n#include <fcntl.h>\n#include <stdio.h>\n#include <string.h>\n#include <unistd.h>\n\nstatic char *argv0;\n\n\nstatic int\nsingle(int argc, char *argv[])\n{\n char size[256], target[4096], source[4096];\n char *p;\n ssize_t r;\n int fd;...
2,077
0
{"language": "c", "success": true, "metadata": {"lines": 168, "avg_line_length": 26.1, "nodes": 1145, "errors": 0, "source_hash": "01c8dba1b8110d3653e50d97190cbd5584ec46abaf1cf565255f7eb668ca4698", "categorized_nodes": 857}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
1,017
c
// // SPNetworkController.h // Snowplow // // Copyright (c) 2013-2021 Snowplow Analytics Ltd. All rights reserved. // // This program is licensed to you under the Apache License Version 2.0, // and you may not use this file except in compliance with the Apache License // Version 2.0. You may obtain a copy of the ...
34.78
45
(translation_unit) "//\n// SPNetworkController.h\n// Snowplow\n//\n// Copyright (c) 2013-2021 Snowplow Analytics Ltd. All rights reserved.\n//\n// This program is licensed to you under the Apache License Version 2.0,\n// and you may not use this file except in compliance with the Apache License\n// Version 2.0. Y...
124
20
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 34.78, "nodes": 79, "errors": 0, "source_hash": "fb5c821d0a5c47d7fe5b001ccb0596e28bd01d486e7e42213525e132f05b8e69", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
1,018
c
#pragma once #include <utility> struct ALLEGRO_BITMAP; enum class EnemyState { WALKING, FALLING, CLIMBING, DYING }; struct Enemy { int pos_row = 0; int pos_col = 0; double pos_row_exact = 0.5; double pos_col_exact = 0.5; ALLEGRO_BITMAP* image = nullptr; ALLEGRO_BITMAP* imag...
22.12
25
(translation_unit) "#pragma once\n\n#include <utility>\n\nstruct ALLEGRO_BITMAP;\n\nenum class EnemyState\n{\n WALKING,\n FALLING,\n CLIMBING,\n DYING\n};\n\nstruct Enemy\n{\n int pos_row = 0;\n int pos_col = 0;\n\n double pos_row_exact = 0.5;\n double pos_col_exact = 0.5;\n\n ALLEGRO_BITMAP*...
136
14
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 22.12, "nodes": 101, "errors": 0, "source_hash": "72e74cc91c6e521967ed761effa0ef299a05b823d7134d9c22fe699d7d93575f", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
1,019
c
/* * Copyright (C) 2017 Southern Storm Software, Pty Ltd. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, ...
36
123
(translation_unit) "/*\n * Copyright (C) 2017 Southern Storm Software, Pty Ltd.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a\n * copy of this software and associated documentation files (the "Software"),\n * to deal in the Software without restriction, including without limitation\n *...
191
0
{"language": "c", "success": true, "metadata": {"lines": 123, "avg_line_length": 36.0, "nodes": 126, "errors": 0, "source_hash": "31752a429eaf23729b71878fa53386fe0b3466babfea19f652a440af059971ab", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,020
c
// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2018, <NAME> <<EMAIL>> */ #include <common.h> #include <log.h> #include <acpi/acpi_table.h> #include <asm/io.h> #include <asm/tables.h> static struct acpi_rsdp *acpi_valid_rsdp(struct acpi_rsdp *rsdp) { if (strncmp((char *)rsdp, RSDP_SIG, sizeof(RSDP_SIG) - 1...
29.77
87
(translation_unit) "// SPDX-License-Identifier: GPL-2.0+\n/*\n * Copyright (C) 2018, <NAME> <<EMAIL>>\n */\n\n#include <common.h>\n#include <log.h>\n#include <acpi/acpi_table.h>\n#include <asm/io.h>\n#include <asm/tables.h>\n\nstatic struct acpi_rsdp *acpi_valid_rsdp(struct acpi_rsdp *rsdp)\n{\n if (strncmp((char *)rsd...
733
0
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 29.77, "nodes": 455, "errors": 0, "source_hash": "d92410e32b17cf2b6266f4aff99ba53124bbb286767104dd838544e0d4569b7d", "categorized_nodes": 285}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,021
c
#ifndef HYDROFARM_H_ #define HYDROFARM_H_ /** * Select what module should be supported */ #define RTC_MODULE 0 // #define TM1637_MODULE 1 // #define NRF_MODULE 1//TODO: linker has problem when set to 0 #define WATER_FLOW_MODULE 1// #define LIGHT_SENSOR_MODULE 1// #define SOIL_MODULE 1// #define PERIOD_TO_RUN_PROCE...
25.68
69
(translation_unit) "#ifndef HYDROFARM_H_\n#define HYDROFARM_H_\n\n/**\n * Select what module should be supported\n */\n#define RTC_MODULE 0 //\n#define TM1637_MODULE 1 //\n#define NRF_MODULE 1//TODO: linker has problem when set to 0\n#define WATER_FLOW_MODULE 1//\n#define LIGHT_SENSOR_MODULE 1//\n#define SOIL_MODULE 1/...
315
4
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 25.68, "nodes": 244, "errors": 0, "source_hash": "a062be74c0da94299bb11c03cc0a09e8163c9d119eeecd48ff9f8e566b43d97a", "categorized_nodes": 130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,022
c
// // WriteWordViewController.h // ZO // // Created by JiFeng on 16/3/7. // Copyright © 2016年 jeffssss. All rights reserved. // #import <UIKit/UIKit.h> @interface WriteWordViewController : UIViewController @property(nonatomic,copy) NSString *nameString; @end
23.36
11
(translation_unit) "//\n// WriteWordViewController.h\n// ZO\n//\n// Created by JiFeng on 16/3/7.\n// Copyright © 2016年 jeffssss. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface WriteWordViewController : UIViewController\n\n@property(nonatomic,copy) NSString *nameString;\n\n@end\n" (comment)...
36
6
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 23.36, "nodes": 23, "errors": 0, "source_hash": "2f39a4a92574caf6a3b7d92b15e278c40c8c45a4667fa0a224dd3bf0f6507988", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
1,023
c
#pragma once #include <vector> #include "IInverseProblem.h" #include "GridUtils.h" namespace ar { /** * \brief Solve for young's modulus using the Adjoint Method */ class InverseProblem_Adjoint_YoungsModulus : public IInverseProblem { private: real initialYoungsModulus; ...
36.22
69
(translation_unit) "#pragma once\n\n#include <vector>\n\n#include "IInverseProblem.h"\n#include "GridUtils.h"\n\nnamespace ar {\n\n /**\n * \brief Solve for young's modulus using the Adjoint Method\n */\n class InverseProblem_Adjoint_YoungsModulus :\n public IInverseProblem\n {\n private:\n ...
450
24
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 36.22, "nodes": 269, "errors": 0, "source_hash": "ef37da174dd92af727d72aa60c4a02cc6dc4655e74ed0ac7afc4b377e6ab78aa", "categorized_nodes": 196}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
1,024
c
#ifndef ELLIPTIC_CURVE_POINT_COUNTING_H #define ELLIPTIC_CURVE_POINT_COUNTING_H #include "fmpz.h" #include "fmpz_poly.h" #include "fmpz_mod_poly.h" #include "ModularPolynomial.h" #include "EllipticCurve.h" #include "EllipticCurveArithmetic.h" /*********************************** * SEA: Counting rational points *...
33.74
70
(translation_unit) "#ifndef ELLIPTIC_CURVE_POINT_COUNTING_H\n#define ELLIPTIC_CURVE_POINT_COUNTING_H\n\n#include "fmpz.h"\n#include "fmpz_poly.h"\n#include "fmpz_mod_poly.h"\n\n#include "ModularPolynomial.h"\n\n#include "EllipticCurve.h"\n#include "EllipticCurveArithmetic.h"\n\n/***********************************\n * ...
300
0
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 33.74, "nodes": 192, "errors": 0, "source_hash": "4aa7ff988d59ed71e3e3815759495b5c40552c5335116148063a52691a4200ed", "categorized_nodes": 150}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,025
c
// MIT License // // Copyright (c) 2018 <NAME> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merg...
24.1
88
(translation_unit) "// MIT License\n//\n// Copyright (c) 2018 <NAME>\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the "Software"), to deal\n// in the Software without restriction, including without limitation the rights\n//...
484
1
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 24.1, "nodes": 253, "errors": 0, "source_hash": "6cfda26f3ff8d3a93a52fac2deda54b577bfaf7317c0c23a9e2da06f2b6f7ca0", "categorized_nodes": 196}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,026
c
#ifndef FILESHAREWIDGET_H #define FILESHAREWIDGET_H #include "mainwindow.h" #include <QListWidgetItem> class PropData: public QObjectUserData { public: QString mSender; QString filePath; }; class FileShareWidget : public QListWidgetItem, public QObject { public: FileShareWidget(); FileShareWidget(co...
26.11
19
(translation_unit) "#ifndef FILESHAREWIDGET_H\n#define FILESHAREWIDGET_H\n\n#include "mainwindow.h"\n\n#include <QListWidgetItem>\n\nclass PropData: public QObjectUserData {\npublic:\n QString mSender;\n QString filePath;\n};\n\nclass FileShareWidget : public QListWidgetItem, public QObject\n{\npublic:\n FileS...
117
7
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 26.11, "nodes": 65, "errors": 0, "source_hash": "aa976bf15989573a2511c8f4e10d3f74d8186f580cd129bbdbafdfda42e74556", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,027
c
#ifndef APSIS_GEOMETRY_CIRCLE_H #define APSIS_GEOMETRY_CIRCLE_H #include "apsis/geometry/point.h" #include "apsis/geometry/rectangle.h" #include "apsis/geometry/line.h" namespace Apsis { namespace Geometry { struct Circle { public: Point position; float radius; bool intersects(Ci...
27.17
23
(translation_unit) "#ifndef APSIS_GEOMETRY_CIRCLE_H\n#define APSIS_GEOMETRY_CIRCLE_H\n\n#include "apsis/geometry/point.h"\n#include "apsis/geometry/rectangle.h"\n#include "apsis/geometry/line.h"\n\nnamespace Apsis {\n namespace Geometry {\n struct Circle {\n public:\n Point position;\n float rad...
170
1
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 27.17, "nodes": 119, "errors": 0, "source_hash": "11c7760f20c1cbd28a1ca2f2aeeb01fd85f499c52632875431938af8b4e92eaa", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,028
c
/* * buf.h * * Created on: Apr 18, 2017 * Author: warlo */ #ifndef XV6CPP_BUF_H_ #define XV6CPP_BUF_H_ #include "device.h" #include <sys\types.h> #include "list.h" #include "device.h" #include "bitmap.h" #define TRASHY_SLEEP namespace xv6 { struct device; using buf_head = tailq_head<class buf>; class buf...
29.3
306
(translation_unit) "/*\n * buf.h\n *\n * Created on: Apr 18, 2017\n * Author: warlo\n */\n\n#ifndef XV6CPP_BUF_H_\n#define XV6CPP_BUF_H_\n\n#include "device.h"\n#include <sys\types.h>\n#include "list.h"\n#include "device.h"\n#include "bitmap.h"\n#define TRASHY_SLEEP\nnamespace xv6 {\nstruct device;\n using buf_he...
2,882
72
{"language": "c", "success": true, "metadata": {"lines": 306, "avg_line_length": 29.3, "nodes": 1723, "errors": 0, "source_hash": "fe72d7ab1e1bdb2d93eef818a3f174c9a92d958270469a373fe6bdc816bf4028", "categorized_nodes": 1180}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
1,029
c
// // OTAnnotationToolbarView+Animation.h // // Copyright © 2016 Tokbox, Inc. All rights reserved. // #import "OTAnnotationToolbarView.h" @interface OTAnnotationToolbarView (Animation) - (void)moveSelectionShadowViewTo:(UIButton *)sender; - (void)showColorPickerView; - (void)dismissColorPickerViewWithAniamtion:(BO...
29.45
11
(translation_unit) "//\n// OTAnnotationToolbarView+Animation.h\n//\n// Copyright © 2016 Tokbox, Inc. All rights reserved.\n//\n\n#import "OTAnnotationToolbarView.h"\n\n@interface OTAnnotationToolbarView (Animation)\n\n- (void)moveSelectionShadowViewTo:(UIButton *)sender;\n- (void)showColorPickerView;\n- (void)dismiss...
67
6
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 29.45, "nodes": 37, "errors": 0, "source_hash": "cfc069ffff12c80aec315fc851f219b2e225a71f69e464f16d8ca081f8fe625f", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"...
1,030
c
/* ----------------------------------------------------------------------------- * Component Name: Gyroscope * Parent Component: Sensors * Author(s): <NAME> * Purpose: Keep track of the angular motion of the telescope. * * ----------------------------------------------------------------------------- */ #include...
28.85
52
(translation_unit) "/* -----------------------------------------------------------------------------\n * Component Name: Gyroscope\n * Parent Component: Sensors\n * Author(s): <NAME>\n * Purpose: Keep track of the angular motion of the telescope.\n *\n * -----------------------------------------------------------------...
330
0
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 28.85, "nodes": 197, "errors": 0, "source_hash": "9f248a2c4d939052eee81f2a8811e4ad890eef9d8e9329458f4847c3f75e18f4", "categorized_nodes": 146}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,031
c
/* * llib little C library * BSD licence * Copyright <NAME>, 2013 */ #ifndef __LLIB_STR_H #define __LLIB_STR_H #include "obj.h" #include <string.h> #include <stdarg.h> // easier to type ;) typedef const char * str_t; enum {STR_ALL=1024,STR_ANY=2048,STR_PAT=4096}; #ifndef STRLOOKUP_DEFINED typedef char *(*StrLookup)...
36.68
65
(translation_unit) "/*\n* llib little C library\n* BSD licence\n* Copyright <NAME>, 2013\n*/\n\n#ifndef __LLIB_STR_H\n#define __LLIB_STR_H\n#include "obj.h"\n#include <string.h>\n#include <stdarg.h>\n\n// easier to type ;)\ntypedef const char * str_t;\n\nenum {STR_ALL=1024,STR_ANY=2048,STR_PAT=4096};\n\n#ifndef STRLOOK...
913
0
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 36.68, "nodes": 690, "errors": 0, "source_hash": "47719087b509f5acb375aadd8ea351cb398fade021e537016cf51212df5224e5", "categorized_nodes": 385}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,032
c
#ifndef SCREANVIEW_H_INCLUDED #define SCREANVIEW_H_INCLUDED #define SCREAN_WIDTH 80 #define SCREAN_HEIGTH 30 #endif // SCREANVIEW_H_INCLUDED
27.2
5
(translation_unit) "#ifndef SCREANVIEW_H_INCLUDED\n#define SCREANVIEW_H_INCLUDED\n\n#define SCREAN_WIDTH 80\n#define SCREAN_HEIGTH 30\n\n#endif // SCREANVIEW_H_INCLUDED\n" (preproc_ifdef) "#ifndef SCREANVIEW_H_INCLUDED\n#define SCREANVIEW_H_INCLUDED\n\n#define SCREAN_WIDTH 80\n#define SCREAN_HEIGTH 30\n\n#endif" ...
17
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 27.2, "nodes": 15, "errors": 0, "source_hash": "05ddb380ebf0b3443d52720757b6ec3ce7255df9ccfbf90799fb15fa326b94b5", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef SCR...
1,033
c
#pragma once #include "SirEngine/memory/cpu/threeSizesPool.h" #include <cassert> namespace SirEngine { /* This is a simple resizable vector which reflects the kind of usage I do in the engine, not many features hopefully faster at both runtime(debug) and compilation. You can only use POD data, and or structu...
29.71
142
(translation_unit) "#pragma once \n#include "SirEngine/memory/cpu/threeSizesPool.h" \n#include <cassert> \n \nnamespace SirEngine { \n \n/* \nThis is a simple resizable vector which reflects the kind of usage I do in the \nengine, not many features hopefully faster at both runtime(debug) and \ncompilation. You can only...
963
24
{"language": "c", "success": true, "metadata": {"lines": 142, "avg_line_length": 29.71, "nodes": 563, "errors": 0, "source_hash": "0b8c80d13e47d99cc2e2017bdcc181bdf64f81464f5b879cb1dfd0ac7384cc82", "categorized_nodes": 377}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
1,034
c
// // Message.h // MessagingKit // // Created by <NAME> on 2014-09-17. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> #import <CoreLocation/CoreLocation.h> #import "DBMessagingKitConstants.h" @interface Message : NSObject @property (strong, nonatomic) NSString *sentByUserID; @prop...
31.15
20
(translation_unit) "//\n// Message.h\n// MessagingKit\n//\n// Created by <NAME> on 2014-09-17.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import <CoreLocation/CoreLocation.h>\n\n#import "DBMessagingKitConstants.h"\n\n@interface Message : NSObject\n\n@property (strong, nonat...
134
20
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 31.15, "nodes": 93, "errors": 0, "source_hash": "2409d0adf7aec48886e384c3064462881c11bb3983d7756b8f458abaf3a044b8", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
1,035
c
#pragma once #include <functional> #include <core/event.h> #include <core/types.h> #include <graphics/opengl/opengl_context.h> #include <graphics/painter.h> #include <graphics/service/video_service.h> #include <window/window.h> namespace kairos { enum class game_state { not_initialized, running, paused, stopped, te...
29.55
38
(translation_unit) "#pragma once\n\n#include <functional>\n\n#include <core/event.h>\n#include <core/types.h>\n#include <graphics/opengl/opengl_context.h>\n#include <graphics/painter.h>\n#include <graphics/service/video_service.h>\n#include <window/window.h>\n\nnamespace kairos {\n\nenum class game_state { not_initiali...
287
18
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 29.55, "nodes": 195, "errors": 0, "source_hash": "e21f13bbe3f55cf8da5d3fd3787c95c24c326212d963ac79621a38ad122acc46", "categorized_nodes": 140}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
1,036
c
/*numPass=5, numTotal=5 Verdict:ACCEPTED, Visibility:1, Input:"4 34 13 42 14", ExpOutput:"NO ", Output:"NO" Verdict:ACCEPTED, Visibility:1, Input:"4 11 2 18 2", ExpOutput:"YES ", Output:"YES" Verdict:ACCEPTED, Visibility:1, Input:"8 1 21 34 45 53 65 71 8", ExpOutput:"NO ", Output:"NO" Verdict:ACCEPTED, Visibility:0, In...
15.69
48
(translation_unit) "/*numPass=5, numTotal=5\nVerdict:ACCEPTED, Visibility:1, Input:"4\n34 13 42 14", ExpOutput:"NO\n", Output:"NO"\nVerdict:ACCEPTED, Visibility:1, Input:"4\n11 2 18 2", ExpOutput:"YES\n", Output:"YES"\nVerdict:ACCEPTED, Visibility:1, Input:"8\n1 21 34 45 53 65 71 8", ExpOutput:"NO\n", Output:"NO"\nVerd...
240
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 15.69, "nodes": 137, "errors": 0, "source_hash": "933986886d10d75800de3ab0bb62794b662fb9af8ac57a534a7678da2f0f655c", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,037
c
#include <fixpp/versions/v44/messages.h> #include <fixpp/versions/v44/dict.h>
38
2
(translation_unit) "#include <fixpp/versions/v44/messages.h>\n#include <fixpp/versions/v44/dict.h>\n" (preproc_include) "#include <fixpp/versions/v44/messages.h>\n" (#include) "#include" (system_lib_string) "<fixpp/versions/v44/messages.h>" (preproc_include) "#include <fixpp/versions/v44/dict.h>\n" (#in...
7
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 38.0, "nodes": 6, "errors": 0, "source_hash": "bdba7aca0b3fdc951f7793df53e19f88ea5de5f3bd3ad3b66e633ae902fd4a4d", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <...
1,038
c
#ifndef CONTEXT_H #define CONTEXT_H #include <SDL2/SDL.h> #include <stdbool.h> enum { GRID_TYPE_NONE, GRID_TYPE_X, GRID_TYPE_O }; struct context { bool running; int current_player; int grid[9]; SDL_Window *window; SDL_Renderer *renderer; SDL_Texture *texture_grid; SDL_Texture *texture_o; SDL...
19.48
23
(translation_unit) "#ifndef CONTEXT_H\n#define CONTEXT_H\n\n#include <SDL2/SDL.h>\n#include <stdbool.h>\n\nenum {\n GRID_TYPE_NONE,\n GRID_TYPE_X,\n GRID_TYPE_O\n};\n\nstruct context {\n bool running;\n int current_player;\n int grid[9];\n\n SDL_Window *window;\n SDL_Renderer *renderer;\n\n SDL_Texture *textur...
125
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 19.48, "nodes": 94, "errors": 0, "source_hash": "132c6f95ca7e3f021fae6338da647989437e5deace8b3913d5e0043756b44277", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,039
c
/* * libcassava/util.h * vim: set cin ts=4 sw=4 et cc=81: * * Copyright (c) 2011-2012 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all...
32.83
54
(translation_unit) "/*\n * libcassava/util.h\n * vim: set cin ts=4 sw=4 et cc=81:\n *\n * Copyright (c) 2011-2012 <NAME> <<EMAIL>>\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this per...
60
0
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 32.83, "nodes": 44, "errors": 0, "source_hash": "45e60ec9ee380100be775fe14ef6bb0ddb326910549c082db618fddbd8b24598", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,040
c
/** * @file cut.h * @brief Function prototypes for cutting graphs * @author <NAME> <<EMAIL>> * Copyright 2013-2014, <NAME> * @version 1 * @date 2014-01-26 */ #ifndef BOWSTRING_CUT_H #define BOWSTRING_CUT_H #include "base.h" /****************************************************************************...
25.89
65
(translation_unit) "/**\n * @file cut.h\n * @brief Function prototypes for cutting graphs\n * @author <NAME> <<EMAIL>>\n * Copyright 2013-2014, <NAME>\n * @version 1\n * @date 2014-01-26\n */\n\n\n\n\n#ifndef BOWSTRING_CUT_H\n#define BOWSTRING_CUT_H\n\n\n\n\n#include "base.h"\n\n\n\n\n/*********************************...
114
0
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 25.89, "nodes": 80, "errors": 0, "source_hash": "dc58d0cbc0af4fe3fcbf12cfcd7cc8effdedf0747b3a6e9bc944d8d949d2839e", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,041
c
// // WXEventModule.h // LIcaiWeex // // Created by zhangshupeng on 2016/11/7. // Copyright © 2016年 sym. All rights reserved. // #import <Foundation/Foundation.h> #import <WeexSDK/WXEventModuleProtocol.h> #import <WeexSDK/WXModuleProtocol.h> @interface WXEventModule : NSObject <WXEventModuleProtocol, WXModuleProt...
26.42
12
(translation_unit) "//\n// WXEventModule.h\n// LIcaiWeex\n//\n// Created by zhangshupeng on 2016/11/7.\n// Copyright © 2016年 sym. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <WeexSDK/WXEventModuleProtocol.h>\n#import <WeexSDK/WXModuleProtocol.h>\n\n@interface WXEventModule : NSObject <WXE...
31
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 26.42, "nodes": 21, "errors": 0, "source_hash": "f9d2f7230fa1fd9b6748d11fbe3710231e98a21e8335a45729aad9371df9e6a4", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Foun...
1,042
c
#ifndef STDLIB_ERR_H #define STDLIB_ERR_H #include "obxc.h" void stdlib_err_Char_(OBXC_INTEGER ch_); void stdlib_err_Hex_(OBXC_INTEGER i_); void stdlib_err_Int_(OBXC_INTEGER i_,OBXC_INTEGER n_); void stdlib_err_Ln_(); void stdlib_err_Real_(OBXC_REAL x_,OBXC_INTEGER n_); void stdlib_err_String_(OBXC_BYTE str_[],OBXC_...
18.47
19
(translation_unit) "#ifndef STDLIB_ERR_H\n#define STDLIB_ERR_H\n#include "obxc.h"\n\n\n\nvoid\nstdlib_err_Char_(OBXC_INTEGER ch_);\nvoid\nstdlib_err_Hex_(OBXC_INTEGER i_);\nvoid\nstdlib_err_Int_(OBXC_INTEGER i_,OBXC_INTEGER n_);\nvoid\nstdlib_err_Ln_();\nvoid\nstdlib_err_Real_(OBXC_REAL x_,OBXC_INTEGER n_);\nvoid\nstdl...
100
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 18.47, "nodes": 70, "errors": 0, "source_hash": "b47976db46f8c81f1c0315ea0c583e120f63d1725cb2d9cfe2ad7ca170adc894", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,043
c
// // Apptimize+Appboy.h // Apptimize // // Created by <NAME> on 11/11/16. // Copyright © 2016 Apptimize, Inc. All rights reserved. // #import <Foundation/Foundation.h> @interface Apptimize (Appboy) /** Do not call this method! This method is specifically for the Appboy SDK integration with the Apptimize SDK a...
25.75
16
(translation_unit) "//\n// Apptimize+Appboy.h\n// Apptimize\n//\n// Created by <NAME> on 11/11/16.\n// Copyright © 2016 Apptimize, Inc. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface Apptimize (Appboy)\n\n/**\n Do not call this method! This method is specifically for the\n Appboy SDK in...
42
6
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 25.75, "nodes": 23, "errors": 0, "source_hash": "02613189ce2b40293b4fb8725843a64da0ac931f0fa44fd918542795cefb2600", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
1,044
c
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "Components/StaticMeshComponent.h" #include "TankTrack.generated.h" class ASprungWheel; /** * TankTrack is used to set maximum driving force, and to apply forces to the tank */ UCLASS( met...
29.19
26
(translation_unit) "// Fill out your copyright notice in the Description page of Project Settings.\n\n#pragma once\n\n#include "CoreMinimal.h"\n#include "Components/StaticMeshComponent.h"\n#include "TankTrack.generated.h"\n\nclass ASprungWheel;\n\n/**\n * TankTrack is used to set maximum driving force, and to apply for...
145
5
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 29.19, "nodes": 82, "errors": 0, "source_hash": "80b111ff7ec1b9af9cc9b170a0fe62d6c3796bccdb09a27089097f33b6eb6852", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
1,045
c
// // Created by xiaob on 2020/1/1. // #ifndef BASE_COLLECTION_MAP_H #define BASE_COLLECTION_MAP_H #include "collection_base.h" #include "collection_vector.h" #include <map> namespace dex_ir{ template<class T> class CollectionMap : public CollectionBase { public: CollectionMap() = default; ~Co...
38.78
50
(translation_unit) "//\n// Created by xiaob on 2020/1/1.\n//\n\n#ifndef BASE_COLLECTION_MAP_H\n#define BASE_COLLECTION_MAP_H\n\n#include "collection_base.h"\n#include "collection_vector.h"\n#include <map>\nnamespace dex_ir{\n template<class T> class CollectionMap : public CollectionBase {\n public:\n Colle...
468
16
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 38.78, "nodes": 281, "errors": 0, "source_hash": "a755ac8cc539d00581445d70931fef82fadcc95f5bdd7a1bf06f2276da349440", "categorized_nodes": 192}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,046
c
/* * Likelihood diff due to merge * Copyright (C) 2014 <NAME> * All rights reserved. * * This Source Code Form is subject to the terms of the Mozilla * Public License, v. 2.0. If a copy of the MPL was not * distributed with this file, You can obtain one at * http://mozilla.org/MPL/2.0/. * * Author: <NAM...
23.47
149
(translation_unit) "/*\n * Likelihood diff due to merge\n * Copyright (C) 2014 <NAME>\n * All rights reserved.\n *\n * This Source Code Form is subject to the terms of the Mozilla \n * Public License, v. 2.0. If a copy of the MPL was not\n * distributed with this file, You can obtain one at\n * http://mozilla.org/...
1,436
1
{"language": "c", "success": true, "metadata": {"lines": 149, "avg_line_length": 23.47, "nodes": 910, "errors": 0, "source_hash": "2312b885eed87184f1dec938e407aa60c2c2bf216c2845e77680650d8377a1e4", "categorized_nodes": 707}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
1,047
c
/* * Copyright (C) 2020 Nippon Telegraph and Telephone Corporation. * 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 re...
36.61
72
(translation_unit) "/*\n * Copyright (C) 2020 Nippon Telegraph and Telephone Corporation.\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/...
441
23
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 36.61, "nodes": 255, "errors": 0, "source_hash": "a367b9d7db878c0961e14afd9115f951a378f8012ffaaac85ff33e4753dd412f", "categorized_nodes": 190}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,048
c
/************************************************************** * * chaseMusic, 8 bit, 11025Hz, * 1 channel, 1524639 bytes/channel * Total Size: 1 * 1524639 + 4 (header) = 1524683 bytes * * Generated by wav2c v1.0 from: * /Users/madisonhoover/Desktop/gba-programming/M03_MadisonHoover copy/chaseMusic.wav * Ti...
34.71
17
(translation_unit) "/**************************************************************\n * \n * chaseMusic, 8 bit, 11025Hz,\n * 1 channel, 1524639 bytes/channel\n * Total Size: 1 * 1524639 + 4 (header) = 1524683 bytes\n * \n * Generated by wav2c v1.0 from:\n * /Users/madisonhoover/Desktop/gba-programming/M03_MadisonHoover...
32
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 34.71, "nodes": 24, "errors": 0, "source_hash": "41cdf07d00b1860aedf2be3185070be761d9c90c0b9afa87189a7dbbbec88149", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,049
c
#include <io/vid.h> #include <intr.h> void hand_doublefault(void) __noreturn; void hand_doublefault() { kprintf("Encountered a double-fault, halting!"); intr_disable(); while(1) intr_hlt(); }
24.5
8
(translation_unit) "#include <io/vid.h>\n#include <intr.h>\n\nvoid hand_doublefault(void) __noreturn;\n\nvoid hand_doublefault() {\n kprintf("Encountered a double-fault, halting!");\n intr_disable();\n while(1) intr_hlt();\n}\n" (preproc_include) "#include <io/vid.h>\n" (#include) "#include" (system_...
60
1
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 24.5, "nodes": 32, "errors": 0, "source_hash": "550db3928080d4db59961a0a1e951e62e4d2417140d85b323a64e46e0ec1f5cd", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
1,050
c
#pragma once #include <vector> #include <map> #define ulong unsigned long long class FastBoundedFibonacci { public: FastBoundedFibonacci(); ulong CalculateBoundedFibonacci(ulong); private: static std::vector<std::vector<ulong> > multiplyMatrices(std::vector<std::vector<unsigned long long>>, std::vector<std::vector...
40
17
(translation_unit) "#pragma once\n#include <vector>\n#include <map>\n#define ulong unsigned long long\n\nclass FastBoundedFibonacci\n{\npublic:\n FastBoundedFibonacci();\n ulong CalculateBoundedFibonacci(ulong);\n\nprivate:\n static std::vector<std::vector<ulong> > multiplyMatrices(std::vector<std::vector<unsigned long...
275
14
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 40.0, "nodes": 178, "errors": 0, "source_hash": "3f64e7aa0ff21fbbd1413bc9e29472a8ce626b5123057ae07559cbee41e37a2d", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
1,051
c
/* * Copyright (c) 2013 <NAME> <<EMAIL>> * * BSD Simplified License. * For information on usage and redistribution, and for a DISCLAIMER OF ALL * WARRANTIES, see the file, "LICENSE.txt," in this distribution. * * See https://github.com/danomatika/PdParty for documentation * */ @interface Externals : NSObject ...
28.79
14
(translation_unit) "/*\n * Copyright (c) 2013 <NAME> <<EMAIL>>\n *\n * BSD Simplified License.\n * For information on usage and redistribution, and for a DISCLAIMER OF ALL\n * WARRANTIES, see the file, "LICENSE.txt," in this distribution.\n *\n * See https://github.com/danomatika/PdParty for documentation\n *\n */\n@in...
24
4
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 28.79, "nodes": 13, "errors": 0, "source_hash": "5880cd779afae65f24f24ddc22dd46d6c5255e758926006150cf054ebdf56e63", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface Extern...
1,052
c
#include <math.h> #include "mex.h" /* isParetoSetMember returns the logical Pareto membership of a set of points. synopsis: membership = isParetoSetMember(objectiveMatrix) powered by <NAME> <EMAIL> for compiling type mex -DranSHR3 isparetosetMember.c * *% Copyright 2014 % % ...
23.55
103
(translation_unit) "#include <math.h>\n#include "mex.h"\n\n\n/*\n isParetoSetMember returns the logical Pareto membership of a set of points.\n\n synopsis: membership = isParetoSetMember(objectiveMatrix)\n\n powered by <NAME>\n \n <EMAIL>\n \n for compiling type \n\n mex -DranSHR3 isparetosetM...
585
0
{"language": "c", "success": true, "metadata": {"lines": 103, "avg_line_length": 23.55, "nodes": 378, "errors": 0, "source_hash": "265f442ea511094596e7495ec99fea11b85bd7c9375d2660770c2d9e6cec5891", "categorized_nodes": 260}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
1,053
c
#include <stdint.h> #include <string.h> #include "sysendian.h" static void blkcpy(void * dest, const void * src, size_t len) { size_t * D = (size_t *) dest; const size_t * S = (const size_t *) src; size_t L = len / sizeof(size_t); size_t i; for (i = 0; i < L; i++) D[i] = S[i]; } stati...
35.81
241
(translation_unit) "#include <stdint.h>\n#include <string.h>\n#include "sysendian.h"\n\n\nstatic void\nblkcpy(void * dest, const void * src, size_t len)\n{\n size_t * D = (size_t *) dest;\n const size_t * S = (const size_t *) src;\n size_t L = len / sizeof(size_t);\n size_t i;\n\n for (i = 0; i < L; i+...
2,001
2
{"language": "c", "success": true, "metadata": {"lines": 241, "avg_line_length": 35.81, "nodes": 1198, "errors": 0, "source_hash": "0b051e41ee8e03b64c4b776d3ab5959924def6c1395adeb51050053014bd5bd3", "categorized_nodes": 864}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
1,054
c
#include "sqlite3ext.h" SQLITE_EXTENSION_INIT1 #include <assert.h> #include <stdlib.h> #include <string.h> #include <stdio.h> // https://en.wikipedia.org/wiki/Determination_of_the_day_of_the_week static int dayofweek(int y, int m, int d) { static int t[] = {0, 3, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4}; y -= m < 3; ...
27.4
110
(translation_unit) "#include "sqlite3ext.h"\nSQLITE_EXTENSION_INIT1\n#include <assert.h>\n#include <stdlib.h>\n#include <string.h>\n#include <stdio.h>\n\n// https://en.wikipedia.org/wiki/Determination_of_the_day_of_the_week\nstatic int dayofweek(int y, int m, int d) {\n static int t[] = {0, 3, 2, 5, 0, 3, 5, 1, 4, 6...
1,062
5
{"language": "c", "success": true, "metadata": {"lines": 110, "avg_line_length": 27.4, "nodes": 681, "errors": 0, "source_hash": "5f2e4f119c44ba9ff4daafefc99340a708c5806f9e14bc3d7ffc88b39281003a", "categorized_nodes": 462}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,055
c
#ifndef vm_h #define vm_h #include "chunk.h" #include "common.h" typedef struct { int vars[3]; //a-0 b-1 c-3 bool defined[3]; } vars; typedef struct { Chunk* chunk; uint8_t* ip; int stack[256]; int* stackTop; bool runtimeError; vars variableList; } VM; void initVM(); void...
16.94
31
(translation_unit) "#ifndef vm_h \n#define vm_h \n\n#include "chunk.h"\n#include "common.h"\n\ntypedef struct {\n int vars[3]; //a-0 b-1 c-3 \n bool defined[3];\n} vars;\n\n typedef struct { \n Chunk* chunk;\n uint8_t* ip;\n\n int stack[256];\n int* stackTop; \n\n bool runtimeError;\n vars variableLis...
159
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 16.94, "nodes": 107, "errors": 0, "source_hash": "536b7e6ba4206410aa9299c0a84637ec5af0cace862215720a1532d2864bd53c", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,056
c
#ifndef PATH_PLANNING_BEHAVIORPLANER_H #define PATH_PLANNING_BEHAVIORPLANER_H #include <vector> using namespace std; class BehaviorPlaner { public: BehaviorPlaner(); virtual ~BehaviorPlaner(); vector<double> CalcBehavior(vector<vector<double>> sensor_fusion, double car_s, double car_d); private: ...
42.54
26
(translation_unit) "#ifndef PATH_PLANNING_BEHAVIORPLANER_H\n#define PATH_PLANNING_BEHAVIORPLANER_H\n\n#include <vector>\n\nusing namespace std;\n\nclass BehaviorPlaner {\npublic:\n BehaviorPlaner();\n\n virtual ~BehaviorPlaner();\n\n vector<double> CalcBehavior(vector<vector<double>> sensor_fusion, double car_...
265
14
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 42.54, "nodes": 189, "errors": 0, "source_hash": "2310b16067a7302c4093836870d32f130f2b2548df67302a4a68020e826fbbf6", "categorized_nodes": 118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,057
c
// // LabelTableViewCell.h // PSWeChat // // Created by <NAME> on 2017/4/19. // Copyright © 2017年 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface LabelTableViewCell : UITableViewCell - (void)configureLeftLabelText: (NSString *)leftLabelText rightLabeltext: (NSString *)rightLabeltext; @end
27.45
11
(translation_unit) "//\n// LabelTableViewCell.h\n// PSWeChat\n//\n// Created by <NAME> on 2017/4/19.\n// Copyright © 2017年 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface LabelTableViewCell : UITableViewCell\n\n- (void)configureLeftLabelText: (NSString *)leftLabelText rightLabeltext: (NSSt...
47
7
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 27.45, "nodes": 29, "errors": 0, "source_hash": "e1bb85f16ceeb40b3ef4f3d4614f8e5f4011fc37d147cd81df1827ee44e9697e", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
1,058
c
/* * Copyright Regents of the University of Minnesota, 2015. This software is released under the following license: http://opensource.org/licenses/GPL-2.0 * Source code originally developed at the University of Minnesota Interactive Visualization Lab (http://ivlab.cs.umn.edu). * * Code author(s): * <NAME> (dtor...
36.57
44
(translation_unit) "/*\n * Copyright Regents of the University of Minnesota, 2015. This software is released under the following license: http://opensource.org/licenses/GPL-2.0\n * Source code originally developed at the University of Minnesota Interactive Visualization Lab (http://ivlab.cs.umn.edu).\n *\n * Code auth...
254
10
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 36.57, "nodes": 178, "errors": 0, "source_hash": "d2e0355e6ace7b8b2211038f9f013105f45877bad5ea1e6679a99a3895ed5d4c", "categorized_nodes": 127}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,059
c
// -*- C++ -*- #ifndef _GPS_SINGLE_POINT_POSITION_SOLVER_H_ #define _GPS_SINGLE_POINT_POSITION_SOLVER_H_ #include "PositionSolverBase.h" #include <jama.h> class SinglePointPositionSolver : public PositionSolverBase { public: // state = (x,y,z,ct) [m] SinglePointPositionSolver(int max_iter, ...
36.76
59
(translation_unit) "// -*- C++ -*-\n\n#ifndef _GPS_SINGLE_POINT_POSITION_SOLVER_H_\n#define _GPS_SINGLE_POINT_POSITION_SOLVER_H_\n\n#include "PositionSolverBase.h"\n#include <jama.h>\n\nclass SinglePointPositionSolver : public PositionSolverBase {\npublic:\n // state = (x,y,z,ct) [m]\n SinglePointPositionSolver(i...
731
23
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 36.76, "nodes": 438, "errors": 0, "source_hash": "7957559af3b1f91a7b335f2b5e23f5168b664fe53f0414826d296adca8c6930b", "categorized_nodes": 305}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,060
c
#include <linux/kernel.h> #include <linux/module.h> #include <linux/init.h> #include <linux/device.h> #include <linux/platform_device.h> extern u32 PTP_INIT_01_API(void); static ssize_t track_vsram_show(struct device_driver *driver, char *buf) { return 0; } static ssize_t track_vsram_store(struct device_driver *...
27.46
85
(translation_unit) "#include <linux/kernel.h>\n#include <linux/module.h>\n#include <linux/init.h>\n#include <linux/device.h>\n#include <linux/platform_device.h>\n\nextern u32 PTP_INIT_01_API(void);\n\nstatic ssize_t track_vsram_show(struct device_driver *driver, char *buf)\n{\n return 0;\n}\n\nstatic ssize_t track_v...
671
0
{"language": "c", "success": true, "metadata": {"lines": 85, "avg_line_length": 27.46, "nodes": 392, "errors": 0, "source_hash": "1cf2ab8f14b5b7a2174894358b2638d3797ba184f99c683140db0a08d102d622", "categorized_nodes": 278}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,061
c
/* * Copyright (C) 2019-2021 Data Ductus AB * * 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, this list of conditions and the following disc...
32.32
195
(translation_unit) "/*\n * Copyright (C) 2019-2021 Data Ductus AB\n *\n * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice, this list of conditio...
1,236
0
{"language": "c", "success": true, "metadata": {"lines": 195, "avg_line_length": 32.32, "nodes": 832, "errors": 0, "source_hash": "3ce6c7a47a6ef59a2f47fd6240bd1bb207261c46cb85cee62fabd9ee6ffb999c", "categorized_nodes": 593}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
1,062
c
// // NSNotificationCenter+Sender.h // ZTCarOwner // // Created by ZWL on 2018/8/23. // Copyright © 2018 ZWL. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface NSNotificationCenter (Sender) - (void)postNotificationName:(NSNotificationName)aName sender:(nullable Class)a...
40.8
15
(translation_unit) "//\n// NSNotificationCenter+Sender.h\n// ZTCarOwner\n//\n// Created by ZWL on 2018/8/23.\n// Copyright © 2018 ZWL. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface NSNotificationCenter (Sender)\n\n- (void)postNotificationName:(NSNotificationN...
147
12
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 40.8, "nodes": 87, "errors": 0, "source_hash": "0b4a402aa5c6735453eb9bfe3130ccadcdc055a578eb42c20d1df0aed2ccd38c", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <Fo...
1,063
c
/* * Copyright (c) 2016 <NAME>, <NAME> * The file is distributed under the MIT license * The license is available in the LICENSE file or at https://github.com/boulangg/phoenix/blob/master/LICENSE */ #include <stdio.h> #include "io.h" int vsscanf(const char* s, const char* format, va_list arg) { FILE str; bufToF...
30.15
13
(translation_unit) "/*\n * Copyright (c) 2016 <NAME>, <NAME>\n * The file is distributed under the MIT license\n * The license is available in the LICENSE file or at https://github.com/boulangg/phoenix/blob/master/LICENSE\n */\n\n#include <stdio.h>\n#include "io.h"\n\nint vsscanf(const char* s, const char* format, va_l...
92
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 30.15, "nodes": 56, "errors": 0, "source_hash": "aa2d88856d5f02c6176d2d7cd5aa1116e8d545b4d165676f6dc3aafa1d8d899f", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
1,064
c
// license:BSD-3-Clause // copyright-holders:AJR /********************************************************************** PolyMorphic Systems Disk Controller **********************************************************************/ #ifndef MAME_BUS_S100_POLYFDC_H #define MAME_BUS_S100_POLYFDC_H #pragma once #incl...
38.45
11
(translation_unit) "// license:BSD-3-Clause\n// copyright-holders:AJR\n/**********************************************************************\n\n PolyMorphic Systems Disk Controller\n\n**********************************************************************/\n\n#ifndef MAME_BUS_S100_POLYFDC_H\n#define MAME_BUS_S100_P...
31
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 38.45, "nodes": 18, "errors": 0, "source_hash": "3ca2dd455c16e0c16f778986c03731a4217041894077ee8ca1f6f49496dc19da", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,065
c
#define SSID_NERDLAB "FILL SSID NERDLAB" #define PASSWORD_NERDLAB "FILL PASSWORD <PASSWORD>" #define SSID_PRIVATE "FILL SSID PRIVATE" #define PASSWORD_PRIVATE "FILL PASSWORD PRIVATE" #define MQTT_SERVER "FILL MQTT SERVER IP"
44
5
(translation_unit) "#define SSID_NERDLAB "FILL SSID NERDLAB"\n#define PASSWORD_NERDLAB "FILL PASSWORD <PASSWORD>"\n\n#define SSID_PRIVATE "FILL SSID PRIVATE"\n#define PASSWORD_PRIVATE "FILL PASSWORD PRIVATE"\n#define MQTT_SERVER "FILL MQTT SERVER IP"\n" (preproc_def) "#define SSID_NERDLAB "FILL SSID NERDLAB"\n" (...
21
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 44.0, "nodes": 20, "errors": 0, "source_hash": "a9ac02f3c9d2052c936d98329e6157d9a2246a5f4e2b83ac9b6342f28c850c48", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define SSID_...
1,066
c
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef REMOTING_HOST_HOST_WINDOW_H_ #define REMOTING_HOST_HOST_WINDOW_H_ #include "base/macros.h" #include "base/memory/ref_counted.h" #include "base/me...
39.27
33
(translation_unit) "// Copyright 2013 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef REMOTING_HOST_HOST_WINDOW_H_\n#define REMOTING_HOST_HOST_WINDOW_H_\n\n#include "base/macros.h"\n#include "base/memory/ref_...
173
8
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 39.27, "nodes": 88, "errors": 0, "source_hash": "83173d9a79e70e8f864425faa3d01551b56471e6073573be354134cda990715f", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,067
c
// // UIView+FKAutoLayout.h // gaibianjia // // Created by QFish on 9/16/15. // Copyright (c) 2015 Geek Zoo Studio. All rights reserved. // #import <UIKit/UIKit.h> #ifndef LessThanOrEqual #define LessThanOrEqual #undef LessThanOrEqual #endif #ifndef Equal #define Equal #undef Equal #endif #ifndef GreaterThanOrE...
25.84
129
(translation_unit) "//\n// UIView+FKAutoLayout.h\n// gaibianjia\n//\n// Created by QFish on 9/16/15.\n// Copyright (c) 2015 Geek Zoo Studio. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n#ifndef LessThanOrEqual\n#define LessThanOrEqual\n#undef LessThanOrEqual\n#endif\n#ifndef Equal\n#define Equal\n#undef ...
380
5
{"language": "c", "success": true, "metadata": {"lines": 129, "avg_line_length": 25.84, "nodes": 327, "errors": 0, "source_hash": "bb72cd80751ca186b68b55e50f2e1d260e6e83d1f2ec908c1c9810eec57f024e", "categorized_nodes": 194}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#impor...
1,068
c
#ifndef PARAMETER_CONTEXT_MENU_H #define PARAMETER_CONTEXT_MENU_H /// COMPONENT #include <csapex_qt/export.h> #include <csapex/view/utility/context_menu_handler.h> /// PROJECT #include <csapex/param/param_fwd.h> #include <csapex/utility/delegate.h> /// SYSTEM #include <functional> namespace csapex { class CSAPEX_QT...
30.08
24
(translation_unit) "#ifndef PARAMETER_CONTEXT_MENU_H\n#define PARAMETER_CONTEXT_MENU_H\n\n/// COMPONENT\n#include <csapex_qt/export.h>\n#include <csapex/view/utility/context_menu_handler.h>\n\n/// PROJECT\n#include <csapex/param/param_fwd.h>\n#include <csapex/utility/delegate.h>\n\n/// SYSTEM\n#include <functional>\n\n...
166
14
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 30.08, "nodes": 96, "errors": 0, "source_hash": "bb576c0b8898613d53fd145f3a7306cfe880d193fa844b7b8b2f0703c4a7c709", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,069
c
#include <stdio.h> main(void) { printf("test\n"); return 0; }
9.67
6
(translation_unit) "#include <stdio.h>\n\nmain(void)\n{\n printf("test\n");\n return 0;\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (function_definition) "main(void)\n{\n printf("test\n");\n return 0;\n}" (type_identifier) "main" (parenthesize...
29
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 9.67, "nodes": 14, "errors": 0, "source_hash": "232054eace5dd2c53b6fa99b4a3ce9585bff6acc00e2f80e0dcad5a91b2d259f", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
1,070
c
// // DetailsViewController.h // NearbyApp // // Created by <NAME> on 6/24/13. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> #import <MapKit/MapKit.h> #import <CoreLocation/CoreLocation.h> #import <iAd/iAd.h> @interface DetailsViewController : UIViewController <MKMapViewDelegate, U...
28.4
30
(translation_unit) "//\n// DetailsViewController.h\n// NearbyApp\n//\n// Created by <NAME> on 6/24/13.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import <MapKit/MapKit.h>\n#import <CoreLocation/CoreLocation.h>\n#import <iAd/iAd.h>\n\n@interface DetailsViewController : UIVie...
211
26
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 28.4, "nodes": 144, "errors": 0, "source_hash": "65c59f698d5a7995f800c2166c52d852500fc088a9899b73943181b4bb23ca6d", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
1,071
c
#ifndef __j1GUI_H__ #define __j1GUI_H__ #include "j1Module.h" #include "p2Point.h" #include <vector> #include <string> #define CURSOR_WIDTH 2 struct SDL_Texture; struct SDL_Rect; class UI_element; enum UI_Type; // --------------------------------------------------- class j1Gui : public j1Module { public: j1Gui();...
30.62
63
(translation_unit) "#ifndef __j1GUI_H__\n#define __j1GUI_H__\n\n#include "j1Module.h"\n#include "p2Point.h"\n#include <vector>\n#include <string>\n\n#define CURSOR_WIDTH 2\n\nstruct SDL_Texture;\nstruct SDL_Rect;\nclass UI_element;\nenum UI_Type;\n\n// ---------------------------------------------------\nclass j1Gui : ...
547
15
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 30.62, "nodes": 363, "errors": 0, "source_hash": "2f5fba07d8d6e63932d528e3aac19ac9b040549280bbaad3758a52eb499ae887", "categorized_nodes": 248}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,072
c
// // Moneo.h // Moneo // // Created by <NAME> on 17/01/2019. // Copyright © 2019 TAON. All rights reserved. // #import <Cocoa/Cocoa.h> //! Project version number for Moneo. FOUNDATION_EXPORT double MoneoVersionNumber; //! Project version string for Moneo. FOUNDATION_EXPORT const unsigned char MoneoVersionString...
33.06
16
(translation_unit) "//\n// Moneo.h\n// Moneo\n//\n// Created by <NAME> on 17/01/2019.\n// Copyright © 2019 TAON. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n\n//! Project version number for Moneo.\nFOUNDATION_EXPORT double MoneoVersionNumber;\n\n//! Project version string for Moneo.\nFOUNDATION_EXPORT cons...
42
1
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 33.06, "nodes": 21, "errors": 0, "source_hash": "873df24882bcac77058592f66403fe9cff7123f80e561b058173afa1bf256ff1", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <C...
1,073
c
#ifndef __PYISTREAM_H__ #define __PYISTREAM_H__ #include "PythonCOM.h" #include "PythonCOMServer.h" ///////////////////////////////////////////////////////////////////////////// // class class PYCOM_EXPORT PyIStream : public PyIUnknown { public: MAKE_PYCOM_CTOR(PyIStream); static PyComTypeObject type; ...
34.1
78
(translation_unit) "#ifndef __PYISTREAM_H__\n#define __PYISTREAM_H__\n\n#include "PythonCOM.h"\n#include "PythonCOMServer.h"\n\n/////////////////////////////////////////////////////////////////////////////\n// class\n\nclass PYCOM_EXPORT PyIStream : public PyIUnknown {\n public:\n MAKE_PYCOM_CTOR(PyIStream);\n ...
680
15
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 34.1, "nodes": 447, "errors": 0, "source_hash": "f94a2b5e08cc9a5801b0286f21ce438330d89b616b1ad0a803105a31c0db1f6e", "categorized_nodes": 288}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,074
c
// // PBEntry.h // Photoblogs // // Created by <NAME> on 11-02-15. // Copyright 2011 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import "FMDatabase.h" #import "GDataEntryReaderEntry.h" #import "PBPhoto.h" @class PBSubscription; @interface PBEntry : NSObject { } @property (nonatomic...
34.6
53
(translation_unit) "//\n// PBEntry.h\n// Photoblogs\n//\n// Created by <NAME> on 11-02-15.\n// Copyright 2011 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n#import "FMDatabase.h"\n#import "GDataEntryReaderEntry.h"\n#import "PBPhoto.h"\n\n\n@class PBSubscription;\n\n@interface PBEntry : NS...
541
50
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 34.6, "nodes": 340, "errors": 0, "source_hash": "0ee49759127a0d2317ee5c71882df974831a0b4b9f75efb25900d4f1ba44b46d", "categorized_nodes": 200}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
1,075
c
#pragma once namespace ifopt{ /** * @brief Upper and lower bound for optimization variables and constraints. */ struct Bounds{ Bounds(double lower = 0.0, double upper = 0.0) { lower_ = lower; upper_ = upper; } double lower_; double upper_; Bounds operator+(double scalar){ ...
24.98
40
(translation_unit) "#pragma once\n\nnamespace ifopt{\n\n/**\n * @brief Upper and lower bound for optimization variables and constraints.\n */\nstruct Bounds{\n\n Bounds(double lower = 0.0, double upper = 0.0)\n {\n lower_ = lower;\n upper_ = upper;\n }\n\n double lower_;\n double upper_;\n\...
276
15
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 24.98, "nodes": 177, "errors": 0, "source_hash": "52e9ecc0d8907bbde4eee768bdc71dc4dad5c9a79da6ca496cb35b9a879cf7c9", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
1,076
c
#ifndef IN_H #define IN_H #include <QWidget> #include <QMessageBox> #include <QDebug> namespace Ui { class in; } class in : public QWidget { Q_OBJECT public: explicit in(QWidget *parent = nullptr); ~in(); private slots: void on_confirm_clicked(); void on_cancel_clicked(); void on_clear_c...
16.4
25
(translation_unit) "fndef IN_H\n#define IN_H\n\n#include <QWidget>\n#include <QMessageBox>\n#include <QDebug>\n\nnamespace Ui {\nclass in;\n}\n\nclass in : public QWidget\n{\n Q_OBJECT\n\npublic:\n explicit in(QWidget *parent = nullptr);\n ~in();\n\nprivate slots:\n void on_confirm_clicked();\n\n void on...
139
5
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 16.4, "nodes": 86, "errors": 0, "source_hash": "eac16ef4c6c49e20bebd794bc30cece073a9cd8dcfa240fde0a2dd9f6d597117", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef IN_...
1,077
c
// // UIColor+Extend.h // ph // // Created by 常玉龙 on 2017/6/24. // Copyright © 2017年 cat. All rights reserved. // #import <UIKit/UIKit.h> @interface UIColor (Extend) + (UIColor*) colorWithHex:(NSInteger)hexValue; @end
19.18
11
(translation_unit) "//\n// UIColor+Extend.h\n// ph\n//\n// Created by 常玉龙 on 2017/6/24.\n// Copyright © 2017年 cat. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIColor (Extend)\n\n+ (UIColor*) colorWithHex:(NSInteger)hexValue;\n\n@end\n" (comment) "//" (comment) "// UIColor+Extend.h" (co...
43
5
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 19.18, "nodes": 24, "errors": 0, "source_hash": "69561daf790383d8bc37b815a0107b470b39fddb3f3f0639e3681754835bf675", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit/UIK...
1,078
c
#include<stdio.h> int main() { int n; printf("enter mark : "); scanf("%d",&n); if(n>=85&&n<=100) { printf("Grade A"); } if(n>=70&&n<=84) { printf("Grade B"); } if(n>=55&&n<=69) { printf("Grade C"); } if(n>=40&&n<=54) { ...
14.32
28
(translation_unit) "#include<stdio.h>\nint main()\n{\n int n;\n printf("enter mark : ");\n scanf("%d",&n);\n if(n>=85&&n<=100)\n {\n printf("Grade A");\n }\n if(n>=70&&n<=84)\n {\n printf("Grade B");\n }\n if(n>=55&&n<=69)\n {\n printf("Grade C");\n...
187
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 14.32, "nodes": 97, "errors": 0, "source_hash": "84c2c94485fb29b11fa1871c10c67642ed99cb747e0c45427213dc4bd67aee31", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
1,079
c
#include <stdio.h> int fred(int p) { printf("yo %d\n", p); return 42; } int (*f)(int) = &fred; /* To test what this is supposed to test the destination function (fprint here) must not be called directly anywhere in the test. */ int (*fprintfptr)(FILE *, const char *, ...) = &fprintf; int main() { fprin...
24.75
16
(translation_unit) "#include <stdio.h>\n\nint fred(int p)\n{\n printf("yo %d\n", p);\n return 42;\n}\n\nint (*f)(int) = &fred;\n\n/* To test what this is supposed to test the destination function\n (fprint here) must not be called directly anywhere in the test. */\nint (*fprintfptr)(FILE *, const char *, ...) = ...
129
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 24.75, "nodes": 73, "errors": 0, "source_hash": "46fb89e945ec120c27a1c8babd1d4d852406d45bd41d7e3f62da77972386a0f8", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
1,080
c
bool searchMatrix(int** matrix, int matrixSize, int* matrixColSize, int target) { if (matrixSize == 0 || *matrixColSize == 0) {return false;} int head = 0, tail = matrixSize * *matrixColSize - 1; while (head <= tail) { int mid = (head + tail) / 2; int midValue = matrix[mid / *matrixColSize][...
34.88
16
(translation_unit) "bool searchMatrix(int** matrix, int matrixSize, int* matrixColSize, int target) {\n if (matrixSize == 0 || *matrixColSize == 0) {return false;}\n int head = 0, tail = matrixSize * *matrixColSize - 1;\n while (head <= tail) {\n int mid = (head + tail) / 2;\n int midValue = matr...
195
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 34.88, "nodes": 134, "errors": 0, "source_hash": "a3032cd3eb6f01da2d32eda3dd04828f8e42216a3c0ebacfb72df387dd72f9bc", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "b...
1,081
c
#ifndef _FIB_BN_H #define _FIB_BN_H #include <linux/types.h> typedef struct _bn { unsigned long long length; unsigned long long *num; } bn_t; bool bn_new(bn_t *bn_ptr, unsigned long long length); bool bn_znew(bn_t *bn_ptr, unsigned long long length); void bn_free(bn_t *bn_ptr); bool bn_zrenew(bn_t *bn_ptr,...
38.04
23
(translation_unit) "#ifndef _FIB_BN_H\n#define _FIB_BN_H\n#include <linux/types.h>\n\ntypedef struct _bn {\n unsigned long long length;\n unsigned long long *num;\n} bn_t;\n\nbool bn_new(bn_t *bn_ptr, unsigned long long length);\n\nbool bn_znew(bn_t *bn_ptr, unsigned long long length);\n\nvoid bn_free(bn_t *bn_pt...
354
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 38.04, "nodes": 270, "errors": 0, "source_hash": "722c0c3f2bc23d574d372833e03cd0d77d80ea444e490a1a145f5d89e90b0697", "categorized_nodes": 159}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,082
c
/* * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2022-03-16 tyx first implementation */ #include "cb_string.h" long cb_strcmp(const char* s1, const char* s2) { long r = 0; while ((r = *s1 - *s2++) == 0 && *s1++); return r; }
20.64
14
(translation_unit) "/*\n * SPDX-License-Identifier: Apache-2.0\n *\n * Change Logs:\n * Date Author Notes\n * 2022-03-16 tyx first implementation\n */\n\n#include "cb_string.h"\n\nlong cb_strcmp(const char* s1, const char* s2)\n{\n long r = 0;\n\n while ((r = *s1 - *s2++) == 0 && *s1+...
79
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 20.64, "nodes": 54, "errors": 0, "source_hash": "a25f6986acd453107ebf1706d4bb1f926b67ac68b6a07dc8bed8f604bca6c9df", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
1,083
c
#ifdef CRC32_CASTAGNOLI #include "../include/crc32c.h" #define CRC_PREFIX(FUNC) CRC32C_ ## FUNC #else #include "../include/crc32.h" #define CRC_PREFIX(FUNC) CRC32_ ## FUNC #endif #define TEST_STRING "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\n" #include <stdio.h> #include <assert.h> int ma...
23.79
28
(translation_unit) "#ifdef CRC32_CASTAGNOLI \n#include "../include/crc32c.h" \n#define CRC_PREFIX(FUNC) CRC32C_ ## FUNC \n#else \n#include "../include/crc32.h" \n#define CRC_PREFIX(FUNC) CRC32_ ## FUNC \n#endif \n \n#define TEST_STRING "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\n" \n \n \n#include <stdio.h>...
207
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 23.79, "nodes": 129, "errors": 0, "source_hash": "bc353aded79ca37f6e4bbf343154453c75879975d82d5109658958da416ce94b", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef ...
1,084
c
// Copyright (c) 2017 <NAME> // // This software is released under the MIT License. // https://opensource.org/licenses/MIT #ifndef _CARDINAL_STDARG_H #define _CARDINAL_STDARG_H typedef __builtin_va_list va_list; #define va_start(v, l) __builtin_va_start(v, l) #define va_end(v) __builtin_va_end(v) #define va_arg(v, l)...
31.92
12
(translation_unit) "// Copyright (c) 2017 <NAME>\n//\n// This software is released under the MIT License.\n// https://opensource.org/licenses/MIT\n#ifndef _CARDINAL_STDARG_H\n#define _CARDINAL_STDARG_H\n\ntypedef __builtin_va_list va_list;\n\n#define va_start(v, l) __builtin_va_start(v, l)\n#define va_end(v) __builtin_...
55
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 31.92, "nodes": 38, "errors": 0, "source_hash": "a13e3699bfa20e5a4e372f5f25dace66407cd777c965bc05a3219220b243fdb9", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,085
c
#include <stdio.h> #include <stdlib.h> #include <string.h> int ft_atoi_base(char *str, char *base); int main(int i , char *str[]) { if (i == 3) printf("ft_atoi_base |%d\n",ft_atoi_base(str[1],str[2])); return 0; }
19
11
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\nint ft_atoi_base(char *str, char *base);\nint main(int i , char *str[])\n{\n \n if (i == 3)\n printf("ft_atoi_base |%d\n",ft_atoi_base(str[1],str[2]));\n return 0;\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#inclu...
93
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 19.0, "nodes": 60, "errors": 0, "source_hash": "9d136bcf45f6bfc7a6878e2b349538fc4e1e9cc1a7e86abd8c0e6cd81a74935e", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
1,086
c
// // RankItem.h // Boss // // Created by 孙昕 on 15/11/24. // Copyright © 2015年 孙昕. All rights reserved. // #import <LazyTableBaseItem.h> @interface RankItem : LazyTableBaseItem @property (strong,nonatomic) NSString* name; @property (strong,nonatomic) NSString* photo; @property (assign,nonatomic) NSInteger score; @...
23.85
13
(translation_unit) "//\n// RankItem.h\n// Boss\n//\n// Created by 孙昕 on 15/11/24.\n// Copyright © 2015年 孙昕. All rights reserved.\n//\n\n#import <LazyTableBaseItem.h>\n@interface RankItem : LazyTableBaseItem\n@property (strong,nonatomic) NSString* name;\n@property (strong,nonatomic) NSString* photo;\n@property (assi...
72
14
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 23.85, "nodes": 51, "errors": 0, "source_hash": "4932d8b63952e1b10ba7278c296292c968091811ae616e80ec35b346b531387d", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "zyTableBa...
1,087
c
#ifndef _ENGINE_COMMON_MINIMAL_WIND_TESTER_H_ #define _ENGINE_COMMON_MINIMAL_WIND_TESTER_H_ #include "physical/physics/wind/Wind.h" #include "core/math/random/Random.h" #include "core/math/Math.h" #include "core/time/time.h" class MinimalWindTester : public CBaseWindTester { public: MinimalWindTester ( void ) : ...
26.58
60
(translation_unit) "#ifndef _ENGINE_COMMON_MINIMAL_WIND_TESTER_H_\n#define _ENGINE_COMMON_MINIMAL_WIND_TESTER_H_\n\n#include "physical/physics/wind/Wind.h"\n#include "core/math/random/Random.h"\n#include "core/math/Math.h"\n#include "core/time/time.h"\n\nclass MinimalWindTester : public CBaseWindTester\n{\npublic:\n Mi...
391
25
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 26.58, "nodes": 214, "errors": 0, "source_hash": "fbc45bcceeea7f11b0d14603f2a026f06d8f7139d44a7850fb6e76f895c110f7", "categorized_nodes": 168}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,088
c
#include <stdlib.h> #include <stdio.h> #include "test.h" TestResult * Result_new(int retval, char *msg) { TestResult *result = (TestResult *) malloc(sizeof(TestResult)); result->retval = retval; result->msg = String_wrap(msg); return result; } Test * Test_new(String *name, test_cb func) { Test ...
22.57
30
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n\n#include "test.h"\n\nTestResult * Result_new(int retval, char *msg) {\n TestResult *result = (TestResult *) malloc(sizeof(TestResult));\n\n result->retval = retval;\n result->msg = String_wrap(msg);\n\n return result;\n}\n\nTest * Test_new(Strin...
247
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 22.57, "nodes": 162, "errors": 0, "source_hash": "f2196f03b4fcb376cf626a06b18e3951ddbeeac7d7cee97c874de699a35beb32", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,089
c
/*++ Copyright (c) 1991 Microsoft Corporation Module Name: rtreplac.c Abstract: NT level registry api test program, basic non-error paths. Perform an NtReplaceKey call to replace a registry hive. rtreplac <KeyPath> <NewHiveName> <BackupOldHiveName> Example: rtrep...
19.6
198
(translation_unit) "/*++ \n \nCopyright (c) 1991 Microsoft Corporation \n \nModule Name: \n \n rtreplac.c \n \nAbstract: \n \n NT level registry api test program, basic non-error paths. \n \n Perform an NtReplaceKey call to replace a registry hive. \n \n rtreplac <KeyPath> <NewHiveName> <BackupOldHiveName...
742
0
{"language": "c", "success": true, "metadata": {"lines": 198, "avg_line_length": 19.6, "nodes": 423, "errors": 0, "source_hash": "03f4735944eb6380a8685381672c449347d580ec908c437980ae58e1346d1d43", "categorized_nodes": 318}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,090
c
#include "basedefs.h" #include <istream> #include <locale> #include <streambuf> #include <memory> #include <climits> #include <ostream> #include <fstream> #include <string_view> #if FILESYSTEM_CPP17 #include <filesystem> #endif #ifndef TEXT_STREAMS_H_ #define TEXT_STREAMS_H_ struct resource_locator { unsigned colum...
29.18
201
(translation_unit) "#include "basedefs.h"\n#include <istream>\n#include <locale>\n#include <streambuf>\n#include <memory>\n#include <climits>\n#include <ostream>\n\n#include <fstream>\n#include <string_view>\n#if FILESYSTEM_CPP17\n#include <filesystem>\n#endif\n\n#ifndef TEXT_STREAMS_H_\n#define TEXT_STREAMS_H_\n\nstru...
2,129
140
{"language": "c", "success": true, "metadata": {"lines": 201, "avg_line_length": 29.18, "nodes": 1273, "errors": 0, "source_hash": "a9d2547eedf0f9b6a65628c09c0b75e2e31b05d5c333e221acee8feb24f0715f", "categorized_nodes": 889}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
1,091
c
/* * PwmLed.h * * Created on: May 14, 2021 * Author: <NAME> */ #ifndef SRC_PWMLED_H_ #define SRC_PWMLED_H_ #include "stm32f4xx_hal.h" class CPwmLed { protected: GPIO_TypeDef *LedPort; uint16_t LedPin; int Mode, Period, Duty; int Pulses, CountPulse, CountPeriod; public: CPwmLe...
19.79
29
(translation_unit) "/* \n * PwmLed.h \n * \n * Created on: May 14, 2021 \n * Author: <NAME> \n */ \n \n#ifndef SRC_PWMLED_H_ \n#define SRC_PWMLED_H_ \n \n#include "stm32f4xx_hal.h" \n \nclass CPwmLed \n{ \nprotected: \n GPIO_TypeDef *LedPort; \n uint16_t LedPin; \n int Mode, Period, Duty; \n int Pulses, Count...
131
1
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 19.79, "nodes": 83, "errors": 0, "source_hash": "94b68f874117dad97be471a71af32858b94dd3ed11fbdf2b64b3b774aa35c11d", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,092
c
#ifndef GDT_H #define GDT_H #include "int.h" typedef struct { uint16_t limit_low; /* 24bits for the base address of the segment */ uint16_t base_low; uint8_t base_middle; /* Bit 7 = is segment present? Bits 5 and 6 = descriptor privilege level - ring 0 -> 3 Bit 4 = descriptor type Bit 0 to...
25.71
34
(translation_unit) "#ifndef GDT_H\n#define GDT_H\n\n#include "int.h"\n\ntypedef struct {\n uint16_t limit_low;\n\n /* 24bits for the base address of the segment */\n uint16_t base_low;\n uint8_t base_middle;\n\n /*\n Bit 7 = is segment present?\n Bits 5 and 6 = descriptor privilege level - ring 0 -> 3\n B...
94
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 25.71, "nodes": 57, "errors": 0, "source_hash": "db9a33db1f982694261dc469f9b48fa63687de337cbce34694d145e3393a66ab", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,093
c
// // DidaAppDelegate.h // DidaTestPod // // Created by yacoo on 04/09/2018. // Copyright (c) 2018 yacoo. All rights reserved. // @import UIKit; @interface DidaAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
23.27
11
(translation_unit) "//\n// DidaAppDelegate.h\n// DidaTestPod\n//\n// Created by yacoo on 04/09/2018.\n// Copyright (c) 2018 yacoo. All rights reserved.\n//\n\n@import UIKit;\n\n@interface DidaAppDelegate : UIResponder <UIApplicationDelegate>\n\n@property (strong, nonatomic) UIWindow *window;\n\n@end\n" (comment) ...
42
8
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 23.27, "nodes": 26, "errors": 0, "source_hash": "2a65484efce9134ac6ccff3aacc5f94b282eb2c4ad66428b3d9c28e09ac25a99", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nu...
1,094
c
// // OCAppDelegate.h // NSObjectBindingsDemo // // Created by <NAME> on 12-03-21. // Copyright (c) 2012 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @class OCViewController; @interface OCAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @property (str...
27.46
13
(translation_unit) "//\n// OCAppDelegate.h\n// NSObjectBindingsDemo\n//\n// Created by <NAME> on 12-03-21.\n// Copyright (c) 2012 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@class OCViewController;\n\n@interface OCAppDelegate : UIResponder <UIApplicationDelegate>\n\n@property (strong, nonatomic)...
64
12
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 27.46, "nodes": 44, "errors": 0, "source_hash": "1a7e36451ff0b31356342f70fc6f48fc022738f40c5ad2c426a69e9c7459ba71", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
1,095
c
#ifndef __PROTOCOLVARIANT_H__ #define __PROTOCOLVARIANT_H__ namespace Transfer { enum class ProtocolVariant { UNKNOWN = 0, HTTP_1, HTTP_2 }; } #endif
13.82
11
(translation_unit) "#ifndef __PROTOCOLVARIANT_H__\n#define __PROTOCOLVARIANT_H__\n\nnamespace Transfer\n{\n enum class ProtocolVariant {\n UNKNOWN = 0,\n HTTP_1,\n HTTP_2\n };\n}\n#endif\n" (preproc_ifdef) "#ifndef __PROTOCOLVARIANT_H__\n#define __PROTOCOLVARIANT_H__\n\nnamespace Transfer\n{\n enum class Pro...
36
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 13.82, "nodes": 22, "errors": 0, "source_hash": "b9da1733728744f67c5917eb8b3f6ffa738c8d99bb618b1016214c19b9b4d07b", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,096
c
/* Copyright 2018, UCAR/Unidata See COPYRIGHT file for copying and redistribution conditions. */ /* This file is the same as nc_test4/test_filter.c */ /*! \file Example program for write then read of a variable using bzip2 compression. \ingroup tutorial This is an example which creates a file with a variable t...
27.56
257
(translation_unit) "/*\n Copyright 2018, UCAR/Unidata\n See COPYRIGHT file for copying and redistribution conditions.\n*/\n/*\nThis file is the same as nc_test4/test_filter.c \n*/\n\n/*! \file\nExample program for write then read of a variable using bzip2 compression.\n\n\ingroup tutorial\n\nThis is an example which ...
1,842
1
{"language": "c", "success": true, "metadata": {"lines": 257, "avg_line_length": 27.56, "nodes": 1044, "errors": 0, "source_hash": "35ca761d132e28f75771b8c2a180b5eac7a64169157c260737233620de086242", "categorized_nodes": 703}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
1,097
c
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //***************************************************************************** //***************************************************************************** #ifndef __PROFILER_H__ #define __PROFILER_H__ #include ...
25.97
197
(translation_unit) "// ==++== \n// \n// Copyright (c) Microsoft Corporation. All rights reserved. \n// \n// ==--== \n//***************************************************************************** \n//***************************************************************************** \n \n#ifndef __PROFILER_H__ \n#defin...
805
5
{"language": "c", "success": true, "metadata": {"lines": 197, "avg_line_length": 25.97, "nodes": 514, "errors": 0, "source_hash": "4fdb8472ba46570f710b956f82f861923cad869acd31b1d9dfd19fb41dbc9e8e", "categorized_nodes": 401}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
1,098
c
#define PLUGIN_VERSION_MAJOR 1 #define PLUGIN_VERSION_MINOR 2 #define PLUGIN_VERSION_DATE "2016-06-14"
33.33
3
(translation_unit) "#define PLUGIN_VERSION_MAJOR 1\n#define PLUGIN_VERSION_MINOR 2\n#define PLUGIN_VERSION_DATE "2016-06-14"\n" (preproc_def) "#define PLUGIN_VERSION_MAJOR 1\n" (#define) "#define" (identifier) "PLUGIN_VERSION_MAJOR" (preproc_arg) "1" (preproc_def) "#define PLUGIN_VERSION_MINOR 2\n" ...
13
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 33.33, "nodes": 12, "errors": 0, "source_hash": "6b02eee82b515581a354390378fc34932714866b1305701a490b3e0997a84e97", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define PLUG...
1,099