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
/** * ArduinoSoftware_Arduino_IDE * * Copyright 2016 by <NAME> <<EMAIL>> * Copyright 2016 by <NAME> <<EMAIL>> * * Licensed under "The MIT License (MIT) - military use of this product is forbidden - V 0.2". * Some rights reserved. See LICENSE. * * @license "The MIT License (MIT) - military use of this produ...
24.55
38
(translation_unit) "/**\n * ArduinoSoftware_Arduino_IDE\n *\n * Copyright 2016 by <NAME> <<EMAIL>>\n * Copyright 2016 by <NAME> <<EMAIL>>\n *\n * Licensed under "The MIT License (MIT) - military use of this product is forbidden - V 0.2".\n * Some rights reserved. See LICENSE.\n *\n * @license "The MIT License (MIT)...
125
3
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 24.55, "nodes": 79, "errors": 0, "source_hash": "bf34bbd94b0dff4fc01bb708988450daa57a7de551904179433ccae3ddd6a034", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
11,200
c
/* Copyright (c) 2002,2004 <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and th...
40.19
53
(translation_unit) "/* Copyright (c) 2002,2004 <NAME>\n All rights reserved.\n\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are met:\n\n * Redistributions of source code must retain the above copyright\n notice, thi...
174
1
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 40.19, "nodes": 111, "errors": 0, "source_hash": "d49887611f02a1c03f271814bd30523d9106ed593cdb40fce75a4b2911549ea8", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defin...
11,201
c
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include "trcinspector.h" namespace Ui { class MainWindow; } class MainWindow : public QMainWindow { Q_OBJECT public: explicit MainWindow(QWidget *parent = 0); ~MainWindow(); public slots: void open(); void save(); void open...
17.8
25
(translation_unit) "#ifndef MAINWINDOW_H\n#define MAINWINDOW_H\n\n#include <QMainWindow>\n\n#include "trcinspector.h"\n\nnamespace Ui {\nclass MainWindow;\n}\n\n\nclass MainWindow : public QMainWindow\n{\n Q_OBJECT\n\npublic:\n explicit MainWindow(QWidget *parent = 0);\n ~MainWindow();\n\npublic slots:\n vo...
127
5
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 17.8, "nodes": 78, "errors": 0, "source_hash": "08ca77146993d3d182b2fd0929ebadb4a57a08ffb1455c13abd7a453a1107ea3", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef M...
11,202
c
/** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/DataAccessUI.framework/DataAccessUI */ @protocol UIModalViewDelegate <NSObject> @optional - (void)modalView:(id)view didDismissWithButtonIndex:(int)buttonIndex; - (void)modalView:(id)view willDismissWithButtonInde...
31.25
16
(translation_unit) "/**\n * This header is generated by class-dump-z 0.2b.\n *\n * Source: /System/Library/PrivateFrameworks/DataAccessUI.framework/DataAccessUI\n */\n\n\n\n\n@protocol UIModalViewDelegate <NSObject>\n@optional\n- (void)modalView:(id)view didDismissWithButtonIndex:(int)buttonIndex;\n- (void)modalView:(i...
137
13
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 31.25, "nodes": 79, "errors": 0, "source_hash": "ea5b497737c761e5d6dbf6df35adc3563e306b20d73242bb8a7e29d31687dfdd", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@protocol UIModa...
11,203
c
#ifndef MY_FRAME_WND_H #define MY_FRAME_WND_H #include <string> #include <afxwin.h> class MyFrameWnd : public CFrameWnd { using base = CFrameWnd; public: MyFrameWnd(std::wstring const& name); DECLARE_MESSAGE_MAP() void OnLButtonDown(UINT nFlags, CPoint point); void OnMouseMove(UINT nFlags, CPo...
21.46
24
(translation_unit) "#ifndef MY_FRAME_WND_H\n#define MY_FRAME_WND_H\n\n\n#include <string>\n#include <afxwin.h>\n\n\nclass MyFrameWnd : public CFrameWnd\n{\n using base = CFrameWnd;\n\npublic:\n MyFrameWnd(std::wstring const& name);\n\n DECLARE_MESSAGE_MAP()\n void OnLButtonDown(UINT nFlags, CPoint point);\n...
151
6
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 21.46, "nodes": 93, "errors": 0, "source_hash": "2683b38b299824a07fa62878ba4d8af16c4b83f8a08deaaa945f82319f2b93fe", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,204
c
#include <sys/stat.h> #include <fcntl.h> #include <ctype.h> #include <string.h> #include "libam/libam_log.h" const amlog_t default_log = { .level = UINT64_MAX, .component_mask = 0, .fd = 0 }; const amlog_t* dlog = &default_log; void amlog_init(amlog_t* log, char* filename) { if (log == NULL) return; memcpy(log,...
25.19
69
(translation_unit) "#include <sys/stat.h>\n#include <fcntl.h>\n#include <ctype.h>\n#include <string.h>\n\n#include "libam/libam_log.h"\n\nconst amlog_t default_log = { .level = UINT64_MAX, .component_mask = 0, .fd = 0 };\nconst amlog_t* dlog = &default_log;\n\nvoid amlog_init(amlog_t* log, char* filename)\n{\n if (log ...
773
0
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 25.19, "nodes": 480, "errors": 0, "source_hash": "d7e12189862b71cfd77dd0ccc50f617f7f58eb865c91bb22a8ebaaeda66129ec", "categorized_nodes": 318}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,205
c
#include <stdio.h> #include <string.h> #include <time.h> #include <unistd.h> #include <signal.h> #include "cjson/cJSON.h" #include "ws/client-server-protocol.h" static int interrupted = 0; static int opts = 0; static const struct lws_http_mount mount = { /* .mount_next */ NULL, /* linked-lis...
37.49
71
(translation_unit) "#include <stdio.h>\n#include <string.h>\n#include <time.h>\n#include <unistd.h>\n#include <signal.h>\n\n#include "cjson/cJSON.h"\n#include "ws/client-server-protocol.h"\n\nstatic int interrupted = 0;\nstatic int opts = 0;\n\nstatic const struct lws_http_mount mount = {\n /* .mount_next */ ...
507
0
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 37.49, "nodes": 266, "errors": 0, "source_hash": "6d93a7c1b0d1b029c7f630d0d1a4dab6a8c59039b2dfd58296311d9c5c5f82c1", "categorized_nodes": 188}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,206
c
/* This room must be loaded before the room at the other side of the door, or the codes will be messed out. (because of the random_door_code() call) */ inherit "room/room"; inherit "room/door"; reset(arg) { if (arg) { return; } short_desc = "Door room"; long_desc = "You are in the door room.\n"; add_exit("so...
29.06
18
(translation_unit) "/* This room must be loaded before the room at the other side of the door,\nor the codes will be messed out. (because of the random_door_code() call) */\n\ninherit "room/room";\ninherit "room/door";\n\nreset(arg) {\n if (arg) { return; }\n short_desc = "Door room";\n long_desc = "You are in the d...
144
2
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 29.06, "nodes": 54, "errors": 0, "source_hash": "02a9ab9ce9fe81dd1a019494d621eca186f64fded35a3673a466cbb52c3a2211", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "concatenated_string", "text": "in...
11,207
c
/* * OpenHMD - Free and Open Source API and drivers for immersive technology. * Copyright (C) 2013 <NAME>. * Copyright (C) 2013 <NAME>. * Distributed under the Boost 1.0 licence, see LICENSE for full text. */ /* Platform Specific Functions, Win32 Implementation */ #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN #defi...
22.65
83
(translation_unit) "/*\n * OpenHMD - Free and Open Source API and drivers for immersive technology.\n * Copyright (C) 2013 <NAME>.\n * Copyright (C) 2013 <NAME>.\n * Distributed under the Boost 1.0 licence, see LICENSE for full text.\n */\n\n/* Platform Specific Functions, Win32 Implementation */\n\n#ifdef _WIN32\n\n#d...
577
0
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 22.65, "nodes": 368, "errors": 0, "source_hash": "a4ba81f84281dc5be79e157417e66d6490b25d66db9bea9ea2a818c30e5d8a70", "categorized_nodes": 248}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef...
11,208
c
#include "application.h" #include "metroerr.h" #include "parser.h" #include "gval.h" Node* prs_factor() { if( prs_eat("(", 1) ) { Node* x = prs_expr(); prs_expect(")", 1); return x; } switch( ctx->cur->kind ) { case TOK_INT: case TOK_FLOAT: case TOK_CHAR: case TOK_STRING: { ...
24.29
143
(translation_unit) "#include "application.h"\n#include "metroerr.h"\n#include "parser.h"\n#include "gval.h"\n\nNode* prs_factor() {\n \n if( prs_eat("(", 1) ) {\n Node* x = prs_expr();\n prs_expect(")", 1);\n return x;\n }\n\n switch( ctx->cur->kind ) {\n case TOK_INT:\n case TOK_FLOAT:\n case TOK...
1,324
0
{"language": "c", "success": true, "metadata": {"lines": 143, "avg_line_length": 24.29, "nodes": 722, "errors": 0, "source_hash": "c45351c6c30417109f026cccd6e5ddd60cc93035daf6ca8203b9d8dd4b468d13", "categorized_nodes": 541}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
11,209
c
/* * Copyright 2012 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
36.64
122
(translation_unit) "/*\n * Copyright 2012 Google Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required b...
574
19
{"language": "c", "success": true, "metadata": {"lines": 122, "avg_line_length": 36.64, "nodes": 345, "errors": 0, "source_hash": "cbe58de94a7c9b76ba7bdcd42c2f21445bae20c5543c013c973e1398a0118684", "categorized_nodes": 235}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
11,210
c
#pragma once namespace WDHL { void BeginEventLoop(const bool &condition); void BeginEventLoop(); }
16.83
6
(translation_unit) "#pragma once\n\nnamespace WDHL\n{\n void BeginEventLoop(const bool &condition);\n void BeginEventLoop();\n}\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (function_definition) "namespace WDHL\n{\n void BeginEventLoop(const bool &condition)...
33
1
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 16.83, "nodes": 19, "errors": 0, "source_hash": "b3587fd28ee3e7a0e3f968db32802d61ac24550c3d1637264181e06c3420a325", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
11,211
c
/* * File name: CTransformation.h * Date: 2005/11/07 18:10 * Author: */ #ifndef __CTRANSFORMATION_H__ #define __CTRANSFORMATION_H__ #include <stdio.h> #include <math.h> #include <unistd.h> #include "CCircleDetect.h" #include <semaphore.h> #include "ros/ros.h" #include "mongodb_store/SetParam.h" typedef...
27.33
97
(translation_unit) "/*\n * File name: CTransformation.h\n * Date: 2005/11/07 18:10\n * Author: \n */\n\n#ifndef __CTRANSFORMATION_H__\n#define __CTRANSFORMATION_H__\n\n#include <stdio.h>\n#include <math.h>\n#include <unistd.h>\n#include "CCircleDetect.h"\n#include <semaphore.h> \n#include "ros/ros.h"\n#include ...
786
5
{"language": "c", "success": true, "metadata": {"lines": 97, "avg_line_length": 27.33, "nodes": 546, "errors": 0, "source_hash": "0cfa42753c903b1b9a340213b7ce42d959b89ec252fdba99b362a551b3f34412", "categorized_nodes": 382}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,212
c
/* * Copyright 2017-2021 Baidu Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
31.95
39
(translation_unit) "/*\n * Copyright 2017-2021 Baidu Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless require...
218
16
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 31.95, "nodes": 126, "errors": 0, "source_hash": "032fdba254dd5aa0e62cbc58e2cbf2789439e2fc029301818e0d2158b2a0b291", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
11,213
c
#ifndef EXTRASTRING_H #define EXTRASTRING_H #ifdef _MSC_VER #include "stdafx.h" //#include <atlstr.h> #include <afxmt.h> #include <string> #include <vector> #ifndef DllExport #ifndef PRIMA_DLL_IMPORT #define DllExport __declspec( dllexport ) #else #define DllExport __declspec( dllimport ) #endif #endif using...
25.93
108
(translation_unit) "#ifndef EXTRASTRING_H\n#define EXTRASTRING_H\n\n#ifdef _MSC_VER\n#include "stdafx.h"\n//#include <atlstr.h>\n#include <afxmt.h>\n#include <string>\n#include <vector>\n\n#ifndef DllExport\n #ifndef PRIMA_DLL_IMPORT\n #define DllExport __declspec( dllexport )\n #else\n #define DllExport __declspec( ...
835
27
{"language": "c", "success": true, "metadata": {"lines": 108, "avg_line_length": 25.93, "nodes": 516, "errors": 0, "source_hash": "d0d6aad42b4ba3f4cb5ce880ac2414a04085ee37441609bbd1fd0168b707ef5f", "categorized_nodes": 329}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
11,214
c
// // CoCoTheme.h // CoCoTheme // // Created by 陈明 on 2017/6/17. // Copyright © 2017年 CoCo. All rights reserved. // #import <UIKit/UIKit.h> #import <CoCoTheme/CoCoThemeManager.h> // ! Project version number for CoCoTheme. FOUNDATION_EXPORT double CoCoThemeVersionNumber; // ! Project version string for CoCoTheme...
35.93
14
(translation_unit) "//\n// CoCoTheme.h\n// CoCoTheme\n//\n// Created by 陈明 on 2017/6/17.\n// Copyright © 2017年 CoCo. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n#import <CoCoTheme/CoCoThemeManager.h>\n\n// ! Project version number for CoCoTheme.\nFOUNDATION_EXPORT double CoCoThemeVersionNumber;\n\n// ! P...
36
1
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 35.93, "nodes": 19, "errors": 0, "source_hash": "6c50578a6ce645a6c6155150369896e2314072e6707d257a705a43cbe5f7f9c0", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <UIKit/U...
11,215
c
//////////////////////////////////////////////////////////////////////////////// // // Filename: testb.h // // Project: Verilog Tutorial Example file // // Purpose: A wrapper providing a common interface to a clocked FPGA core // being exercised by Verilator. // // Creator: <NAME>, Ph.D. // Gisselquist Technology, L...
25.67
88
(translation_unit) "////////////////////////////////////////////////////////////////////////////////\n//\n// Filename: testb.h\n//\n// Project: Verilog Tutorial Example file\n//\n// Purpose: A wrapper providing a common interface to a clocked FPGA core\n// being exercised by Verilator.\n//\n// Creator: <NAME>, Ph.D.\...
497
14
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 25.67, "nodes": 276, "errors": 0, "source_hash": "4cadb035f7237b2941d727d9a755f38e09aae80776634321fb0055a3dfd41860", "categorized_nodes": 194}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,216
c
// // DYTabBarController.h // douyu // // Created by Minghao on 16/11/2. // Copyright © 2016年 Minghao. All rights reserved. // #import <UIKit/UIKit.h> @interface DYTabBarController : UITabBarController @end
20.1
10
(translation_unit) "//\n// DYTabBarController.h\n// douyu\n//\n// Created by Minghao on 16/11/2.\n// Copyright © 2016年 Minghao. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface DYTabBarController : UITabBarController\n\n@end\n" (comment) "//" (comment) "// DYTabBarController.h" (comment) "//...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.1, "nodes": 10, "errors": 0, "source_hash": "0e1f1ee16ba3da92bc531534d8d93c0a9213d6f655099aa7dc06286f7a6b82f0", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKit...
11,217
c
// // ZZChannelOutput.h // ZippyZap // // Created by <NAME> on 12/01/13. // Copyright (c) 2013, Pixelglow Software. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @protocol ZZChannelOutput - (uint32_t)offset; - (BOOL)seekToOffset:(uint32_t)offset error:(out NSError**)err...
24.1
20
(translation_unit) "//\n// ZZChannelOutput.h\n// ZippyZap\n//\n// Created by <NAME> on 12/01/13.\n// Copyright (c) 2013, Pixelglow Software. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@protocol ZZChannelOutput\n\n- (uint32_t)offset;\n- (BOOL)seekToOffset:(uint32_t)of...
135
16
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 24.1, "nodes": 86, "errors": 0, "source_hash": "5ce7af91767e6f4d63ee773491bbdd9c939871963f4cf4f1049ccedb2bf41fa4", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
11,218
c
// // DMAppDelegate.h // Demo // // Created by <NAME> on 1/30/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface DMAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
23
11
(translation_unit) "//\n// DMAppDelegate.h\n// Demo\n//\n// Created by <NAME> on 1/30/14.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface DMAppDelegate : UIResponder <UIApplicationDelegate>\n\n@property (strong, nonatomic) UIWindow *window;\n\n@end\n" (comment) "//...
39
6
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 23.0, "nodes": 25, "errors": 0, "source_hash": "e71d24eae4ed7368e80f18e6bb8c3096c0409cf22fbc6589e092aa5d21dc6eb7", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <U...
11,219
c
#pragma once #include <QObject> #include <QOpenGLWidget> #include "Camera.h" #include <QElapsedTimer> class GLWidget : public QOpenGLWidget { Q_OBJECT public: QElapsedTimer elapsed_timer; GLuint vao; TPSCamera tps_camera; FPSCamera fps_camera; double delta = 0.0; explicit GLWidget(QWidget* parent); ~GLWi...
28
26
(translation_unit) "#pragma once\n\n#include <QObject>\n#include <QOpenGLWidget>\n\n#include "Camera.h"\n#include <QElapsedTimer>\n\nclass GLWidget : public QOpenGLWidget {\n Q_OBJECT\n\npublic:\n QElapsedTimer elapsed_timer;\n GLuint vao;\n\n TPSCamera tps_camera;\n FPSCamera fps_camera;\n\n double delta = 0.0;\n\n ex...
206
5
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 28.0, "nodes": 148, "errors": 0, "source_hash": "1be2539601bcceca82d2b17bd51d61ca5e2c17bab95b5988e3d5214a6ec3fbbb", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
11,220
c
#pragma once #include <cstdio> #include <cstring> #include <cstdarg> #include <cstdlib> #include <cmath> #include <windows.h> #include <SDL.h> #include <SDL_syswm.h> #ifndef __WINDOWS__ #error "This Project is only running on windows platform" #endif // ! __WINDOWS__ #pragma warning(disable:4996)
18.88
16
(translation_unit) "ragma once \n \n#include <cstdio> \n#include <cstring> \n#include <cstdarg> \n#include <cstdlib> \n#include <cmath> \n#include <windows.h> \n#include <SDL.h> \n#include <SDL_syswm.h> \n \n#ifndef __WINDOWS__ \n#error "This Project is only running on windows platform" \n#endif // ! __WINDOWS__ \n \n...
39
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 18.88, "nodes": 37, "errors": 0, "source_hash": "e11096e9c8d8723aea90901e10438cc9da384abd5b0e547e337e84f264fe6ea9", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma onc...
11,221
c
// -------------------------------------------------------- // Dragon // Copyright(c) 2017 SeetaTech // Written by <NAME> // -------------------------------------------------------- #ifndef DRAGON_OPERATORS_NDARRAY_RESHAPE_OP_H_ #define DRAGON_OPERATORS_NDARRAY_RESHAPE_OP_H_ #include "core/operator.h" namespace drag...
31.3
33
(translation_unit) "// --------------------------------------------------------\n// Dragon\n// Copyright(c) 2017 SeetaTech\n// Written by <NAME>\n// --------------------------------------------------------\n\n#ifndef DRAGON_OPERATORS_NDARRAY_RESHAPE_OP_H_\n#define DRAGON_OPERATORS_NDARRAY_RESHAPE_OP_H_\n\n#include "cor...
251
13
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 31.3, "nodes": 143, "errors": 0, "source_hash": "0bc2f3f842033213e55f81db99210dd4c0346d963be9d45cc25e2d00871acc42", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,222
c
/******************************************************************************* Copyright (c) 2018, <NAME> <<EMAIL>>. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of sourc...
36.43
96
(translation_unit) "/*******************************************************************************\n Copyright (c) 2018, <NAME> <<EMAIL>>.\n All rights reserved.\n\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are met:\n\n ...
534
0
{"language": "c", "success": true, "metadata": {"lines": 96, "avg_line_length": 36.43, "nodes": 379, "errors": 0, "source_hash": "a10bea69712916fd59a3c2093da6ef93289bb2c268eac547b33e4cfaa5dcb75d", "categorized_nodes": 243}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,223
c
#pragma once #include "framework/logger.h" #include "library/colour.h" #include "library/sp.h" #include <vector> namespace OpenApoc { class RendererImageData; class Palette { public: std::vector<Colour> colours; sp<RendererImageData> rendererPrivateData; Palette(unsigned int size = 256, Colour initialColour =...
23.21
29
(translation_unit) "#pragma once\n\n#include "framework/logger.h"\n#include "library/colour.h"\n#include "library/sp.h"\n#include <vector>\n\nnamespace OpenApoc\n{\n\nclass RendererImageData;\n\nclass Palette\n{\n public:\n std::vector<Colour> colours;\n sp<RendererImageData> rendererPrivateData;\n\n Palette(unsigned ...
227
6
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 23.21, "nodes": 129, "errors": 0, "source_hash": "086d5486f8d78f36b8cbad6d41d0c5939dd841c7b0ab2d78b24a8df498b6c02a", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
11,224
c
#pragma once #include "Viking/Renderer/RendererAPI.h" namespace Viking { class RenderCommand { public: static void init() { sRendererAPI->init(); } static void setViewport(uint32_t x, uint32_t y, uint32_t width, uint32_t height) { sRendererAPI->setViewport(x, y...
33.16
32
(translation_unit) "#pragma once\n\n#include "Viking/Renderer/RendererAPI.h"\n\nnamespace Viking {\n class RenderCommand {\n public:\n static void init() {\n sRendererAPI->init();\n }\n\n static void setViewport(uint32_t x, uint32_t y, uint32_t width, uint32_t height) {\n ...
289
8
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 33.16, "nodes": 152, "errors": 0, "source_hash": "a88512c339cae834f28148f806a05bb4a02839800a7701262dc8e75cb062c5f1", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
11,225
c
#pragma once #include <exception> #include <stdexcept> #if defined _MSC_VER #if _MSC_VER >= 1900 #define NOEXCEPT noexcept #else #define NOEXCEPT #endif #else #define NOEXCEPT noexcept #endif class GameBoyException : public std::runtime_error{ public: GameBoyException(const std::string &s): std::runt...
23.16
37
(translation_unit) "#pragma once \n#include <exception> \n#include <stdexcept> \n \n#if defined _MSC_VER \n#if _MSC_VER >= 1900 \n#define NOEXCEPT noexcept \n#else \n#define NOEXCEPT \n#endif \n#else \n#define NOEXCEPT noexcept \n#endif \n \nclass GameBoyException : public std::runtime_error{ \npublic: \n GameBoyExcept...
259
13
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 23.16, "nodes": 147, "errors": 0, "source_hash": "118c5e02b2048335cee713872c7bb9a0ad235b989b97cd937c0857eefb65b62d", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
11,226
c
#ifndef NAVIE_MEMORY_C4D_H #define NAVIE_MEMORY_C4D_H #include "c4d_memory.h" #include "ge_sys_math.h" typedef maxon::Int32 Int32_C4D; typedef maxon::UInt32 uInt32_C4D; typedef maxon::Int64 Int64_C4D; typedef maxon::UInt64 uInt64_C4D; typedef maxon::Int Int_C4D; typedef maxon::UInt uInt_C4D; typedef maxon::Int16 In...
29.67
18
(translation_unit) "#ifndef NAVIE_MEMORY_C4D_H\n#define NAVIE_MEMORY_C4D_H\n\n#include "c4d_memory.h"\n#include "ge_sys_math.h"\n\ntypedef maxon::Int32 Int32_C4D;\ntypedef maxon::UInt32 uInt32_C4D;\ntypedef maxon::Int64 Int64_C4D;\ntypedef maxon::UInt64 uInt64_C4D;\ntypedef maxon::Int Int_C4D;\ntypedef maxon::UInt uI...
138
13
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 29.67, "nodes": 91, "errors": 0, "source_hash": "3f87ae4934528d58f85c8663b53449f4602351a42c789120d0933804b6f1caf4", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,227
c
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <string.h> #define TOTAL_REGISTER 15 #define RANDOM_PHONE_MAX 14 typedef struct{ int code; char *phone; float price; }Register; void fillRandomRegister(Register *aux); void generateRandomString(char randS[]); void belowAverage(Register aux...
35.26
54
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <time.h>\n#include <string.h>\n#define TOTAL_REGISTER 15\n#define RANDOM_PHONE_MAX 14\ntypedef struct{\n int code;\n char *phone;\n float price;\n}Register; \nvoid fillRandomRegister(Register *aux);\nvoid generateRandomString(char randS[])...
606
0
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 35.26, "nodes": 362, "errors": 0, "source_hash": "9f52f374a07a0d5b0d9147606a9cdfcf5942284788f147536d07082faeab1f06", "categorized_nodes": 241}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,228
c
/* * U-boot - bf533_linux.c * * Copyright (c) 2005 blackfin.uclinux.org * * (C) Copyright 2000-2004 * <NAME>, DENX Software Engineering, <EMAIL>. * * See file CREDITS for list of people who contributed to this * project. * * This program is free software; you can redistribute it and/or * modify it under the...
28.67
78
(translation_unit) "/*\n * U-boot - bf533_linux.c\n *\n * Copyright (c) 2005 blackfin.uclinux.org\n *\n * (C) Copyright 2000-2004\n * <NAME>, DENX Software Engineering, <EMAIL>.\n *\n * See file CREDITS for list of people who contributed to this\n * project.\n *\n * This program is free software; you can redistribute i...
420
0
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 28.67, "nodes": 278, "errors": 0, "source_hash": "7c28517a25390c04afe5f63df2e7a283320e80847e8e6e9ac8966cfa2bb17a9a", "categorized_nodes": 167}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,229
c
#define NEED_EVENTS #define NEED_REPLIES #include <X11/Xlibint.h> #include <X11/Xutil.h> #include <X11/extensions/Xext.h> #include "extutil.h" #include "NVCtrlLib.h" #include "nv_control.h" #if !defined(XTRHEADS) #warning XTRHEADS not defined -- this libXNVCtrl.a will not be thread safe! #endif static XExtensionInfo ...
29.91
298
(translation_unit) "#define NEED_EVENTS\n#define NEED_REPLIES\n#include <X11/Xlibint.h>\n#include <X11/Xutil.h>\n#include <X11/extensions/Xext.h>\n#include "extutil.h"\n#include "NVCtrlLib.h"\n#include "nv_control.h"\n\n#if !defined(XTRHEADS)\n#warning XTRHEADS not defined -- this libXNVCtrl.a will not be thread safe!\...
2,423
2
{"language": "c", "success": true, "metadata": {"lines": 298, "avg_line_length": 29.91, "nodes": 1514, "errors": 0, "source_hash": "4da7a9d1d05f91a2feeeb9a6dc8812c5a74cd1389e8bf3e94ae188eb46eb196a", "categorized_nodes": 1128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#defi...
11,230
c
// // HJResourceCipherGzip.h // Hydra Jelly Box // // Created by <NAME> on 2013. 10. 4. // Copyright (c) 2014, P9 SOFT, Inc. All rights reserved. // // Licensed under the MIT license. #import <Foundation/Foundation.h> #import <libkern/OSAtomic.h> #import <HJResourceManager/HJResourceCipherProtocol.h> @interface ...
30.36
14
(translation_unit) "//\n// HJResourceCipherGzip.h\n// Hydra Jelly Box\n//\n// Created by <NAME> on 2013. 10. 4.\n// Copyright (c) 2014, P9 SOFT, Inc. All rights reserved.\n//\n// Licensed under the MIT license.\n\n#import <Foundation/Foundation.h>\n#import <libkern/OSAtomic.h>\n#import <HJResourceManager/HJResourc...
44
6
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 30.36, "nodes": 29, "errors": 0, "source_hash": "0dc1c96c7ac67bd77c8e8082b5e7c6e52ac483b5bbd7c02327d5b505d89fd2a0", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
11,231
c
#ifndef CQSVGFeOffset_H #define CQSVGFeOffset_H #include <CQSVGObject.h> #include <CSVGFeOffset.h> class CQSVG; class CQSVGFeOffset : public CQSVGObject, public CSVGFeOffset { Q_OBJECT Q_PROPERTY(double dx READ getDX WRITE setDX) Q_PROPERTY(double dy READ getDY WRITE setDY) public: CQSVGFeOffset(CQSVG *sv...
28.07
14
(translation_unit) "#ifndef CQSVGFeOffset_H\n#define CQSVGFeOffset_H\n\n#include <CQSVGObject.h>\n#include <CSVGFeOffset.h>\n\nclass CQSVG;\n\nclass CQSVGFeOffset : public CQSVGObject, public CSVGFeOffset {\n Q_OBJECT\n\n Q_PROPERTY(double dx READ getDX WRITE setDX)\n Q_PROPERTY(double dy READ getDY WRITE setDY)\n\n...
101
5
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 28.07, "nodes": 67, "errors": 0, "source_hash": "7be457d712dd87c26b2b4929d412a272a097a3beb30c62be371fe01f22e91704", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,232
c
/** * @author <NAME> */ #include "bias_adjuster.h" /* Time constants in units of seconds. */ #define CONTROL_FREQUENCY 20000U #define CONTROL_PERIOD ((float)1.0f / CONTROL_FREQUENCY) #define INTERNAL_REFERENCE_VOLTAGE 1.21f #define ADC_FILTER_TC ...
29.86
185
(translation_unit) "/** \n * @author <NAME> \n */ \n \n#include "bias_adjuster.h" \n \n/* Time constants in units of seconds. */ \n#define CONTROL_FREQUENCY 20000U \n#define CONTROL_PERIOD ((float)1.0f / CONTROL_FREQUENCY) \n \n#define INTERNAL_REFERENCE_VOLTAGE 1.21f \n \n#de...
867
0
{"language": "c", "success": true, "metadata": {"lines": 185, "avg_line_length": 29.86, "nodes": 533, "errors": 0, "source_hash": "41ba150d250695217595fe4a68c288e1d25b14c765fdd9a106023a34a71d1231", "categorized_nodes": 348}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
11,233
c
#ifndef HaskinoSchedulerH #define HaskinoSchedulerH #include "HaskinoConfig.h" struct context_t; typedef struct block_status_t { uint16_t currPos; union { bool condition; int index; } info; } BLOCK_STATUS; typedef struct task_t { struct task_t *next; ...
25.33
51
(translation_unit) "#ifndef HaskinoSchedulerH\n#define HaskinoSchedulerH\n\n#include "HaskinoConfig.h"\n\nstruct context_t;\n\ntypedef struct block_status_t\n {\n uint16_t currPos;\n union \n {\n bool condition;\n int index;\n } info;\n } BLOCK_STATUS;\n\ntypedef struct task_t \n...
270
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 25.33, "nodes": 191, "errors": 0, "source_hash": "13b7e2e5d3069edf81e4992f5ca76abefb328453158e41c3d97aa651e228b5e7", "categorized_nodes": 133}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,234
c
#ifndef _TRANSACTION_ID_H_ #define _TRANSACTION_ID_H_ #include <cinttypes> /** * Represents the ID for a specific transaction */ struct TransactionID { const uint32_t value; explicit TransactionID(const uint32_t value) : value(value) { } TransactionID(const TransactionID& rhs) = default; inline uint32_t ...
34.05
21
(translation_unit) "#ifndef _TRANSACTION_ID_H_\n#define _TRANSACTION_ID_H_\n\n#include <cinttypes>\n\n/**\n * Represents the ID for a specific transaction\n */\nstruct TransactionID\n{\n const uint32_t value;\n\n explicit TransactionID(const uint32_t value)\n : value(value) {\n }\n\n TransactionID(const TransactionID...
201
13
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 34.05, "nodes": 117, "errors": 0, "source_hash": "4f5f38282828381c2d6710fd6ed9180948bc4434972a03f8ed494ac3e949b181", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
11,235
c
#pragma once #include "Config.h" extern "C" { bool __declspec(dllexport) InstallKDEMouseHook(CONFIG conf); void __declspec(dllexport) UninstallKDEMouseHook(); bool __declspec(dllexport) IsInstalled(); void __declspec(dllexport) SetConfig(CONFIG conf); } typedef bool (*InstallKDEMouseHook_t)(CONFIG); typedef void...
34.25
12
(translation_unit) "#pragma once\n\n#include "Config.h"\n\nextern "C" {\n bool __declspec(dllexport) InstallKDEMouseHook(CONFIG conf);\n void __declspec(dllexport) UninstallKDEMouseHook();\n bool __declspec(dllexport) IsInstalled();\n void __declspec(dllexport) SetConfig(CONFIG conf);\n}\n\ntypedef bool (*InstallKDEMou...
138
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 34.25, "nodes": 88, "errors": 0, "source_hash": "0add6b45080b920f38c04fa0c0bbfb2771a3d046566368fe5eca36876b9ca3ff", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
11,236
c
// // AlinkRNCollctionCellViewManager.h // Pods // // Created by 李春城 on 15/11/27. // // #import "RCTViewManager.h" @interface AKRNWaterfallCellManager : RCTViewManager @end
16.6
10
(translation_unit) "//\n// AlinkRNCollctionCellViewManager.h\n// Pods\n//\n// Created by 李春城 on 15/11/27.\n//\n//\n\n#import "RCTViewManager.h"\n\n@interface AKRNWaterfallCellManager : RCTViewManager\n\n@end\n" (comment) "//" (comment) "// AlinkRNCollctionCellViewManager.h" (comment) "// Pods" (comment) "/...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 16.6, "nodes": 10, "errors": 0, "source_hash": "26016e24f3b23e89703cbb2f6f281e4ca868b3715d9bb6e7a5a0d82cf55f584a", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "t \"RCTView...
11,237
c
// hash.h // Data structures to manage a hash table to relate arbitrary // keys to arbitrary values. A hash table allows efficient lookup // for the value given the key. // // I've only tested this implementation when both the key and the // value are primitive types (ints or pointers). There is no // guarantee ...
38.44
103
(translation_unit) "// hash.h\n// Data structures to manage a hash table to relate arbitrary\n// keys to arbitrary values. A hash table allows efficient lookup\n// for the value given the key.\n//\n// I've only tested this implementation when both the key and the\n// value are primitive types (ints or pointers). ...
646
24
{"language": "c", "success": true, "metadata": {"lines": 103, "avg_line_length": 38.44, "nodes": 369, "errors": 0, "source_hash": "75228f31845cb07c5a1119e7b76b7a17b2e37c5d2eab28ff166b43218a45cf0b", "categorized_nodes": 236}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
11,238
c
#pragma once #include <stdio.h> #include <list> #include "regions.h" #include "ccube.h" #include "cprocess.h" enum process_stages { COPY_DEVICE_DATACUBE_TO_HOST, COPY_HOST_DATACUBE_TO_DEVICE, D_CROP_DATACUBE_TO_SMALLEST_DIMENSION_SLICE, D_FFT, D_FFTSHIFT, D_GROW_DATACUBE_TO_LARGEST_DIMENSION_SLICE, D_IFFT, D...
24.45
62
(translation_unit) "#pragma once\n\n#include <stdio.h>\n#include <list>\n\n#include "regions.h"\n#include "ccube.h"\n#include "cprocess.h"\n\nenum process_stages {\n COPY_DEVICE_DATACUBE_TO_HOST,\n COPY_HOST_DATACUBE_TO_DEVICE,\n D_CROP_DATACUBE_TO_SMALLEST_DIMENSION_SLICE,\n D_FFT,\n D_FFTSHIFT,\n D_GROW_DATACUBE_TO_L...
398
6
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 24.45, "nodes": 252, "errors": 0, "source_hash": "7c32663bd04f26f681c1a7fc4246f744ffe26936e30e623a70e9c9398643d8b7", "categorized_nodes": 171}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
11,239
c
#include "spiffs.h" static spiffs fs; typedef signed int s32_t; typedef unsigned int u32_t; typedef signed short s16_t; typedef unsigned short u16_t; typedef signed char s8_t; typedef unsigned char u8_t; #define LOG_PAGE_SIZE 256 static u8_t spiffs_work_buf[LOG_PAGE_SIZE*2]; static u8_t spif...
26.78
58
(translation_unit) "#include "spiffs.h"\n\nstatic spiffs fs;\n\n typedef signed int s32_t;\n typedef unsigned int u32_t;\n typedef signed short s16_t;\n typedef unsigned short u16_t;\n typedef signed char s8_t;\n typedef unsigned char u8_t;\n\n#define LOG_PAGE_SIZE 256\n \n static u8_t spiffs_work_buf[LOG...
454
0
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 26.78, "nodes": 283, "errors": 0, "source_hash": "c81439732724d98d3dc665703dc5f0064bd6d21e5c08fce135469051a2c718f5", "categorized_nodes": 206}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,240
c
#pragma once #include "raylib.h" #include "raymath.h" #include <vector> #include <sstream> #include <iomanip> Rectangle ImageRec(const Image& img) { return { 0, 0, float(img.width), float(img.height)}; } struct IntRectangle { int x; int y; int width; int height; operator Rectangle() const...
23.48
86
(ERROR) "#pragma once\n\n#include "raylib.h"\n#include "raymath.h"\n#include <vector>\n#include <sstream>\n#include <iomanip>\n\n\n\nRectangle ImageRec(const Image& img)\n{\n return { 0, 0, float(img.width), float(img.height)};\n}\n\n\nstruct IntRectangle\n{\n int x;\n int y;\n int width;\n int height;\n...
743
32
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 23.48, "nodes": 463, "errors": 0, "source_hash": "ec74f78e2802035dfc0bd1eb3d4fbb4b010da85a4f032e5872b4dd93f931d25d", "categorized_nodes": 364}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#pragma once\n\n#include ...
11,241
c
#ifndef WAVESTRETCH_H #define WAVESTRETCH_H typedef struct input_args { char *input_file; char *output_file; int window_size; float stretch; } Args; #endif
18.56
9
(translation_unit) "#ifndef WAVESTRETCH_H\n#define WAVESTRETCH_H\n\ntypedef struct input_args {\n char *input_file;\n char *output_file;\n int window_size;\n float stretch;\n} Args;\n\n#endif\n" (preproc_ifdef) "#ifndef WAVESTRETCH_H\n#define WAVESTRETCH_H\n\ntypedef struct input_args {\n char *in...
38
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 18.56, "nodes": 29, "errors": 0, "source_hash": "e5a05bbf7c98b2c263937f48cd320eabc163b2fcf2b1d8db89339a4bf9086ad6", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef W...
11,242
c
#pragma once #include <Parsers/IAST_fwd.h> #include <Core/Types.h> namespace DB { ASTPtr tryGetTableOverride(const String & mapped_database, const String & table); }
22.71
7
(translation_unit) "#pragma once\n#include <Parsers/IAST_fwd.h>\n#include <Core/Types.h>\n\nnamespace DB\n{\nASTPtr tryGetTableOverride(const String & mapped_database, const String & table);\n}\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include ...
39
2
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 22.71, "nodes": 23, "errors": 0, "source_hash": "d90a230310872b9b051e0eefaf0bacf29b814e5faa469c3642a2c2f21f121ce8", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
11,243
c
#ifndef EYESPARK_ORTHOGRAPHICCAMERA_H #define EYESPARK_ORTHOGRAPHICCAMERA_H #include "../../node/camera/Camera.h" #include "../../util/Matrix4.h" class OrthographicCamera : public Camera { public: float size; OrthographicCamera(float size, float nearClip, float farClip) : Camera(nearClip, farClip) { ...
33.06
16
(translation_unit) "#ifndef EYESPARK_ORTHOGRAPHICCAMERA_H\n#define EYESPARK_ORTHOGRAPHICCAMERA_H\n\n#include "../../node/camera/Camera.h"\n#include "../../util/Matrix4.h"\n\nclass OrthographicCamera : public Camera {\npublic:\n float size;\n\n OrthographicCamera(float size, float nearClip, float farClip) : Camera...
120
5
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 33.06, "nodes": 69, "errors": 0, "source_hash": "fe58a535897cd75a90a8f9a865dfe84054e5b8a75b44761cedf7639ac9578b43", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,244
c
#ifndef _VIEW_H_ #define _VIEW_H_ /** * Displays an image. * * This implementation uses eog (Eye of Gnome) image viewer on Linux. * * @param char *file_name The path of the image to display. * * **Examples** * * bl_view_image("out.png"); */ void bl_view_image(char* file_name); /** * Displays a video. ...
18.7
27
(translation_unit) "#ifndef _VIEW_H_\n#define _VIEW_H_\n\n/**\n * Displays an image.\n *\n * This implementation uses eog (Eye of Gnome) image viewer on Linux.\n *\n * @param char *file_name The path of the image to display.\n *\n * **Examples**\n *\n * bl_view_image("out.png");\n */\nvoid bl_view_image(char* file_...
36
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 18.7, "nodes": 27, "errors": 0, "source_hash": "bfd09c9d0b2d56f7a71e7eba7394cd172726deeb03ee2934f31de0d4d30bca0e", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
11,245
c
// ____ ______ __ // / __ \ / ____// / // / /_/ // / / / // / ____// /___ / /___ PixInsight Class Library // /_/ \____//_____/ PCL 02.01.01.0784 // ---------------------------------------------------------------------------- // pcl/Rotation.h - Released 2016/02/21 20:22:12 UTC // ----------------...
35.16
268
(translation_unit) "// ____ ______ __\n// / __ \ / ____// /\n// / /_/ // / / /\n// / ____// /___ / /___ PixInsight Class Library\n// /_/ \____//_____/ PCL 02.01.01.0784\n// ----------------------------------------------------------------------------\n// pcl/Rotation.h - Released 2016/02/21 20:22:...
781
45
{"language": "c", "success": true, "metadata": {"lines": 268, "avg_line_length": 35.16, "nodes": 410, "errors": 0, "source_hash": "c1d2779dc3c5f07f918adb23c8225dd0474f7c2d87d8e7dd99d194449ed9d397", "categorized_nodes": 289}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
11,246
c
/* * $Id: ldap.h 1012 2008-03-26 00:44:22Z <EMAIL> $ * * ======================================================================== * Copyright 2006-2008 University of Washington * Copyright 2013-2015 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in ...
33.2
169
(translation_unit) "/*\n * $Id: ldap.h 1012 2008-03-26 00:44:22Z <EMAIL> $\n *\n * ========================================================================\n * Copyright 2006-2008 University of Washington\n * Copyright 2013-2015 <NAME>\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may ...
710
0
{"language": "c", "success": true, "metadata": {"lines": 169, "avg_line_length": 33.2, "nodes": 528, "errors": 0, "source_hash": "e4dd81d1edeb3d90847b306c4f1bff4a061077b48bae53dc2c107b2e3935e02f", "categorized_nodes": 270}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,247
c
/* * MIT License * * Copyright (c) 2016 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, pu...
33.22
49
(translation_unit) "/*\n* MIT License\n*\n* Copyright (c) 2016 <NAME>\n*\n* Permission is hereby granted, free of charge, to any person obtaining a copy\n* of this software and associated documentation files (the "Software"), to deal\n* in the Software without restriction, including without limitation the rights\n* to ...
154
1
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 33.22, "nodes": 81, "errors": 0, "source_hash": "b84fc808beb4b77bf8f7588e0f2685f63ff9396a85bd3e3f034129933fdfc3d5", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,248
c
// // GLCanvas.h // interface/src // // Created by <NAME> on 8/14/13. // Copyright 2013 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #ifndef hifi_GLCanvas_h #define hifi_GLCanvas_h #include...
25.29
45
(translation_unit) "//\n// GLCanvas.h\n// interface/src\n//\n// Created by <NAME> on 8/14/13.\n// Copyright 2013 High Fidelity, Inc.\n//\n// Distributed under the Apache License, Version 2.0.\n// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html\n//\n\n#ifndef hifi_GLCanvas_h\n#...
231
13
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 25.29, "nodes": 141, "errors": 0, "source_hash": "958a52ad6ccd3e773de72399dad67e7a74ad31638f3d161f5b581316a0415d14", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
11,249
c
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string> #include <vector> #include <unistd.h> #include <fcntl.h> #include <pthread.h> #include <openssl/des.h> #include "op.h" #include "lookup.h" #include "redlfsr.h" // A pair is a pointer to a Pico device and a stream PicoDrv *drv; int stream; s...
29.7
292
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <stdint.h>\n#include <string>\n#include <vector>\n#include <unistd.h>\n#include <fcntl.h>\n#include <pthread.h>\n#include <openssl/des.h>\n\n#include "op.h"\n#include "lookup.h"\n#include "redlfsr.h"\n\n// A pair is a pointer to a Pico device and a s...
3,009
3
{"language": "c", "success": true, "metadata": {"lines": 292, "avg_line_length": 29.7, "nodes": 1834, "errors": 0, "source_hash": "999787c0beb95ab8ea98260ac3d2b8dd68ff278b12e590dea31e5a5ebe6cc983", "categorized_nodes": 1314}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
11,250
c
#pragma once #include "Elys/Core/Timestep.h" #include "Elys/Renderer/OrthographicCamera.h" namespace Elys { struct ParticleProp { glm::vec2 Position; glm::vec2 Velocity, VelocityVariation; glm::vec4 ColorBegin, ColorEnd; float SizeBegin, SizeEnd, SizeVariation; float LifeTime = 1.0f; }; ...
19.62
47
(translation_unit) "#pragma once \n \n#include "Elys/Core/Timestep.h" \n#include "Elys/Renderer/OrthographicCamera.h" \n \nnamespace Elys { \n \n struct ParticleProp \n { \n glm::vec2 Position; \n glm::vec2 Velocity, VelocityVariation; \n glm::vec4 ColorBegin, ColorEnd; \n float SizeBegin, SizeEnd, SizeVariation; \...
250
16
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 19.62, "nodes": 162, "errors": 0, "source_hash": "9318f0f1963f788707aeba2db031d39cc7b9788840985f072a89d01c159aca8c", "categorized_nodes": 112}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
11,251
c
/* Name: bintest.c Purpose: Test driver for binary input/output formats from IMath. Author: <NAME> <http://spinning-yarns.org/michael/> Copyright (C) 2002-2008 <NAME>, All Rights Reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated d...
37.62
85
(translation_unit) "/*\n Name: bintest.c\n Purpose: Test driver for binary input/output formats from IMath.\n Author: <NAME> <http://spinning-yarns.org/michael/>\n\n Copyright (C) 2002-2008 <NAME>, All Rights Reserved.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of th...
688
0
{"language": "c", "success": true, "metadata": {"lines": 85, "avg_line_length": 37.62, "nodes": 364, "errors": 0, "source_hash": "69064e9253d025cfcb29ceb7656c8d47aa22fc214d44aa13c56f675f313f2be3", "categorized_nodes": 271}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,252
c
#ifndef RHMAP_H_INCLUDED #define RHMAP_H_INCLUDED #ifndef RHMAP_NO_STDINT #include <stddef.h> #include <stdint.h> #endif typedef struct rhmap_s { uint64_t *entries; uint32_t mask; uint32_t capacity; uint32_t size; } rhmap; typedef struct rhmap_iter_s { rhmap *map; uint32_t hash; uint32_t scan; } rhmap_iter;...
28.17
277
(ERROR) "#ifndef RHMAP_H_INCLUDED\n#define RHMAP_H_INCLUDED\n\n#ifndef RHMAP_NO_STDINT\n#include <stddef.h>\n#include <stdint.h>\n#endif\n\ntypedef struct rhmap_s {\n uint64_t *entries;\n uint32_t mask;\n\n uint32_t capacity;\n uint32_t size;\n} rhmap;\n\ntypedef struct rhmap_iter_s {\n rhmap *map;\n uint32_t hash;\n\n...
2,840
25
{"language": "c", "success": true, "metadata": {"lines": 277, "avg_line_length": 28.17, "nodes": 2047, "errors": 0, "source_hash": "9f026521c4df267ffe115fbef38065735d0a77a833f43d2376556f46f9755dbd", "categorized_nodes": 1308}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef RHMAP_H_INCLUD...
11,253
c
#pragma once #include "../common/macro.h" #include "../config/node.h" #include "../config/parser.h" #include "inner_thread.h" #include "data_set.h" #include "blocking_queue.h" #include "schedule.h" #include "inference_node.h" #include "schedule.h" using namespace std; namespace schedule { class MemoryCopyParam { ...
31.24
67
(ERROR) "#pragma once\n#include "../common/macro.h"\n#include "../config/node.h"\n#include "../config/parser.h"\n#include "inner_thread.h"\n#include "data_set.h"\n#include "blocking_queue.h"\n#include "schedule.h"\n#include "inference_node.h"\n#include "schedule.h"\n\nusing namespace std;\n\n\nnamespace schedule {\n\n ...
573
27
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 31.24, "nodes": 345, "errors": 0, "source_hash": "50972ddb6a9c1bee4f6b9fa8fc96550472ac219f0cb6cebe33c621c262f2e0ea", "categorized_nodes": 239}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#pragma once\n#include \"...
11,254
c
#ifndef OPS_COMMON_CORE_PLATFORM_H_ #define OPS_COMMON_CORE_PLATFORM_H_ #include "Compiler.h" // Platform #if OPS_COMPILER_MSC_VER >= 1310 #if defined(_WIN32) #define OPS_PLATFORM_IS_WIN32 1 #define OPS_PLATFORM_IS_UNIX 0 #else #error Win32 platform not detected (unsupported platform) #endif #endif #if OPS_...
28.11
46
(translation_unit) "#ifndef OPS_COMMON_CORE_PLATFORM_H_\n#define OPS_COMMON_CORE_PLATFORM_H_\n\n#include "Compiler.h"\n\n// Platform\n#if OPS_COMPILER_MSC_VER >= 1310\n #if defined(_WIN32)\n #define OPS_PLATFORM_IS_WIN32 1\n #define OPS_PLATFORM_IS_UNIX 0\n #else\n #error Win32 platform not detected (unsupported pla...
172
0
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 28.11, "nodes": 154, "errors": 0, "source_hash": "aa9d23622c5242728c59941232885f8c2864fc894eca969ad645e9691e3fdf08", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
11,255
c
#pragma once #include "RComponent.h" #include "Base/RRenderer.h" #include "../Events/REventListener.h" #include "../Events/RCustomEvents.h" #include "../Graphics/Buffers/Dynamic/RDynamicBufferAccess.h" #include <string> namespace At0::Ray { class CommandBuffer; class Material; class Texture; class DynamicBuff...
29.33
63
(translation_unit) "ragma once\n\n#include "RComponent.h"\n#include "Base/RRenderer.h"\n\n#include "../Events/REventListener.h"\n#include "../Events/RCustomEvents.h"\n#include "../Graphics/Buffers/Dynamic/RDynamicBufferAccess.h"\n\n#include <string>\n\n\nnamespace At0::Ray\n{\n class CommandBuffer;\n class Material;\n ...
286
15
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 29.33, "nodes": 187, "errors": 0, "source_hash": "ab4940b8f36dc65771769943b26c266ecb47cfde00d15a10bfaf74d2d7da72a3", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma o...
11,256
c
/* * Copyright (c) 2006-2010 <NAME> http://www.box2d.org * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this software for any purpose, ...
25.18
253
(translation_unit) "/* \n* Copyright (c) 2006-2010 <NAME> http://www.box2d.org \n* \n* This software is provided 'as-is', without any express or implied \n* warranty. In no event will the authors be held liable for any damages \n* arising from the use of this software. \n* Permission is granted to anyone to use this s...
1,809
3
{"language": "c", "success": true, "metadata": {"lines": 253, "avg_line_length": 25.18, "nodes": 1056, "errors": 0, "source_hash": "3aa6eae29813019fc08d5f3b31d31bbbd281b5b55b32e1c20d9bfadadfa960a7", "categorized_nodes": 857}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
11,257
c
#pragma once #include <atomic> #include <queue> #include <thread> #include <exception> #include <mutex> #include "utility.h" class ConcurrentQueue { private: porous::InputData* m_buffer; int m_size; std::mutex m_mtx; int m_front; int m_rear; int m_currentsize; ...
24.15
27
(translation_unit) "#pragma once\n#include <atomic>\n#include <queue>\n#include <thread>\n#include <exception>\n#include <mutex>\n#include "utility.h"\n\nclass ConcurrentQueue {\n private:\n porous::InputData* m_buffer;\n int m_size;\n std::mutex m_mtx;\n int m_front;\n int m_rear;...
186
8
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 24.15, "nodes": 113, "errors": 0, "source_hash": "6ea09aa541d66b8bfd4aaae2ff103c2dc4fa87132eb6bf3d0ad292b5d865d313", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
11,258
c
#include "ethernet.h" #include "ip.h" #include "arp.h" // 52:54:00:12:34:56 static uint8_t local_mac[ETHADDR_LEN] = { 0x52, 0x54, 0x00, 0x12, 0x34, 0x56 }; // static uint8_t local_mac[ETHADDR_LEN] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; static uint8_t broadcast_mac[ETHADDR_LEN] = { 0xFF, 0XFF, 0XFF, 0XFF, 0XFF, 0XFF...
32.24
46
(translation_unit) "#include "ethernet.h"\n#include "ip.h"\n#include "arp.h"\n\n// 52:54:00:12:34:56\nstatic uint8_t local_mac[ETHADDR_LEN] = { 0x52, 0x54, 0x00, 0x12, 0x34, 0x56 };\n// static uint8_t local_mac[ETHADDR_LEN] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };\nstatic uint8_t broadcast_mac[ETHADDR_LEN] = { 0xFF, 0...
551
0
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 32.24, "nodes": 309, "errors": 0, "source_hash": "02e48b14f6ea3e39c715485be68c2d870378cc863e72ebda446d9b30b46dad60", "categorized_nodes": 221}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,259
c
////////////////////////////////////////////////////////////////////////// // // pgAdmin III - PostgreSQL Tools // RCS-ID: $Id$ // Copyright (C) 2002 - 2010, The pgAdmin Development Team // This software is released under the Artistic Licence // // pgconfig.h - backend configuration classes // ////////////////////...
22.61
176
(translation_unit) "//////////////////////////////////////////////////////////////////////////\n//\n// pgAdmin III - PostgreSQL Tools\n// RCS-ID: $Id$\n// Copyright (C) 2002 - 2010, The pgAdmin Development Team\n// This software is released under the Artistic Licence\n//\n// pgconfig.h - backend configuration clas...
952
23
{"language": "c", "success": true, "metadata": {"lines": 176, "avg_line_length": 22.61, "nodes": 566, "errors": 0, "source_hash": "80de25df8c0c8dca62e364d694ca6072eb94dfb8cd51fcb1bb38bc2df03b7104", "categorized_nodes": 442}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
11,260
c
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* 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...
36.64
101
(translation_unit) "/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */\n/* vim: set ts=8 sts=2 et sw=2 tw=80: */\n/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at ht...
756
50
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 36.64, "nodes": 424, "errors": 0, "source_hash": "faca22746a6e76b91060d4851f9b26600d60e343e766d0f114a971840b9e2214", "categorized_nodes": 299}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
11,261
c
#ifndef QFRAMEBUTTONS_H #define QFRAMEBUTTONS_H //#include <AnimTimeline/animtimeline.h> #include "FormAnimTimeline.h" //#include <AnimTimeline/qwidgetruler.h> #include "qwidgetruler.h" #include <QFrame> #include <QPoint> #include <QScrollArea> #include <QToolButton> class QFrameButtons : public QFrame { Q_OBJEC...
27.42
36
(translation_unit) "#ifndef QFRAMEBUTTONS_H\n#define QFRAMEBUTTONS_H\n\n//#include <AnimTimeline/animtimeline.h>\n#include "FormAnimTimeline.h"\n//#include <AnimTimeline/qwidgetruler.h>\n#include "qwidgetruler.h"\n\n#include <QFrame>\n#include <QPoint>\n#include <QScrollArea>\n#include <QToolButton>\n\nclass QFrameButt...
242
6
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 27.42, "nodes": 172, "errors": 0, "source_hash": "f5358de838be9da3cc395655347a0b2f158b23826e56e37d5e4ece784409d36d", "categorized_nodes": 107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,262
c
// // DDCalculateImageValue.h // Camera_Test // // Created by wheng on 17/4/20. // Copyright © 2017年 admin. All rights reserved. // #import <UIKit/UIKit.h> #import <Foundation/Foundation.h> @interface DDCalculateImageValue : NSObject /**传入图片(image)、压缩的大小(不压缩是CGSizeZero)、返回的值value(百分制) BASIC_calculate imagePix...
30.21
19
(translation_unit) "//\n// DDCalculateImageValue.h\n// Camera_Test\n//\n// Created by wheng on 17/4/20.\n// Copyright © 2017年 admin. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import <Foundation/Foundation.h>\n\n@interface DDCalculateImageValue : NSObject\n\n/**传入图片(image)、压缩的大小(不压缩是CGSizeZero)、返回的值value...
81
7
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 30.21, "nodes": 50, "errors": 0, "source_hash": "20a9e0ec15623ed454b99ebf2902b03db884a0a456df7609f2dcfec448f36be6", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
11,263
c
#define BUFFER_LEN 200 #define REG_STR_LEN 100 #define NUM_LOG_CONF_TYPES 4 #define MAX_STR_LEN 300 typedef DWORD NEXTRET; #define NR_SUCCESS 0x00000000 #define NR_DONE 0x00000001 // no more configurations #define NR_INVALID 0x00000002 // invalid previous configuration // // ...
26.87
105
(translation_unit) "#define BUFFER_LEN 200 \n#define REG_STR_LEN 100 \n#define NUM_LOG_CONF_TYPES 4 \n#define MAX_STR_LEN 300 \n \ntypedef DWORD NEXTRET; \n \n#define NR_SUCCESS 0x00000000 \n#define NR_DONE 0x00000001 // no more configurations \n#define NR_INVALID 0x00000002 // invalid previo...
474
25
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 26.87, "nodes": 356, "errors": 0, "source_hash": "7e1942aac7ff0c483b9b8a16a65d5c8786730afdf066bf721f00447a79fdee38", "categorized_nodes": 269}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
11,264
c
// // libCalculator.h // EECalc2 // // Created by <NAME> on 2013/05/04. // Copyright (c) 2013年 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> typedef enum typCalcMode : NSUInteger { CALCMODE_DEC = 0, CALCMODE_HEX } typCalcMode; @interface libCalculator : NSObject { typCalcMode m_mode; NSU...
20.78
27
(translation_unit) "//\n// libCalculator.h\n// EECalc2\n//\n// Created by <NAME> on 2013/05/04.\n// Copyright (c) 2013年 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\ntypedef enum typCalcMode : NSUInteger {\n CALCMODE_DEC = 0,\n CALCMODE_HEX\n} typCalcMode;\n\n@interface libCalculator : NS...
140
10
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 20.78, "nodes": 75, "errors": 0, "source_hash": "e64ca20281015d8965eebd888960c67d6fdc514c810d596baaa0f8b0ef2e2a2a", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <Fo...
11,265
c
#ifndef _ROS_asv_msgs_Motor4Cmd_h #define _ROS_asv_msgs_Motor4Cmd_h #include <stdint.h> #include <string.h> #include <stdlib.h> #include "ros/msg.h" #include "std_msgs/Header.h" namespace asv_msgs { class Motor4Cmd : public ros::Msg { public: typedef std_msgs::Header _header_type; _header_type he...
32.79
131
(translation_unit) "#ifndef _ROS_asv_msgs_Motor4Cmd_h\n#define _ROS_asv_msgs_Motor4Cmd_h\n\n#include <stdint.h>\n#include <string.h>\n#include <stdlib.h>\n#include "ros/msg.h"\n#include "std_msgs/Header.h"\n\nnamespace asv_msgs\n{\n\n class Motor4Cmd : public ros::Msg\n {\n public:\n typedef std_msgs::Header ...
1,870
5
{"language": "c", "success": true, "metadata": {"lines": 131, "avg_line_length": 32.79, "nodes": 1249, "errors": 0, "source_hash": "c0c6b02d27c902c2bdee519006bcb4d0b7ebff3ad42d221035f4e5db3c101cd6", "categorized_nodes": 937}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
11,266
c
#ifndef SOGUIVIEWERP_H #define SOGUIVIEWERP_H // src\Inventor\Win\viewers\SoGuiViewerP.h. Generated from SoGuiViewerP.h.in by configure. /**************************************************************************\ * Copyright (c) <NAME> & Gas Technologies AS * All rights reserved. * * Redistribution and use in ...
37
177
(translation_unit) "#ifndef SOGUIVIEWERP_H\n#define SOGUIVIEWERP_H\n\n// src\Inventor\Win\viewers\SoGuiViewerP.h. Generated from SoGuiViewerP.h.in by configure.\n\n/**************************************************************************\\n * Copyright (c) <NAME> & Gas Technologies AS\n * All rights reserved.\n * \n...
949
18
{"language": "c", "success": true, "metadata": {"lines": 177, "avg_line_length": 37.0, "nodes": 631, "errors": 0, "source_hash": "2809ad9aaf0d40b37e050002053d619b5004809634c7e32b09e382b845091796", "categorized_nodes": 449}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,267
c
/* Copyright (c) 2014-2018, Linaro Limited * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ /** * @file * * Inline functions for ODP buffer mgmt routines - implementation internal */ #ifndef ODP_BUFFER_INLINES_H_ #define ODP_BUFFER_INLINES_H_ #ifdef __cplusplus extern "C" { #endif #in...
23.52
31
(translation_unit) "/* Copyright (c) 2014-2018, Linaro Limited\n * All rights reserved.\n *\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/**\n * @file\n *\n * Inline functions for ODP buffer mgmt routines - implementation internal\n */\n\n#ifndef ODP_BUFFER_INLINES_H_\n#define ODP_BUFFER_INLINES_H_\n\n#ifdef _...
135
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 23.52, "nodes": 92, "errors": 0, "source_hash": "0a683ebc02a8cd83b4dbc76e5a864cbab3c629cbf8d63b1461e80223ef414aa0", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,268
c
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_SCHEDULER_MAIN_THREAD_WIDGET_SCHEDULER_H_ #define THIRD_PARTY_BLINK_RENDERER_PLATFORM_SCHEDULER_MAIN_THREAD_WI...
44.22
27
(translation_unit) "// Copyright 2019 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_SCHEDULER_MAIN_THREAD_WIDGET_SCHEDULER_H_\n#define THIRD_PARTY_BLINK_RENDERER_PLATFORM...
165
8
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 44.22, "nodes": 95, "errors": 0, "source_hash": "2118f23fe2ae75c81272e0a2d72788c444b8dce89605a4ab435b125976919928", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,269
c
#include "nccmn.h" void mmesg ( char *messag, int *ilen, int *iret ) /************************************************************************ * mmesg * * * * This subroutine writes a frame title the metafile. * * * * mmesg ( messag, ilen, iret ) * * * * Input parameters: ...
25.76
41
(translation_unit) "#include "nccmn.h"\n\nvoid mmesg ( char *messag, int *ilen, int *iret )\n/************************************************************************\n * mmesg *\n * *\n * This subroutine writes a frame title the metafile. *\n * *\n * mmesg ( messag, ilen, iret ) *\n * ...
157
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 25.76, "nodes": 97, "errors": 0, "source_hash": "845d407027da5d5900a865d43e47710924513767a1c114028ddcb127d8e40b3f", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
11,270
c
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <esp_types.h> #include "gpio.h" #include "mqtt_current_relay_power_control.h" #define EQUIPMENT_PIN 17 #define IRRIGATION_PIN 16 /* explanation Relays are normally open When active the relay is off and the GPIO pin is pulled high...
21.57
93
(translation_unit) "#include <stdlib.h> \n#include <stdio.h> \n#include <string.h> \n#include <esp_types.h> \n#include "gpio.h" \n#include "mqtt_current_relay_power_control.h" \n \n#define EQUIPMENT_PIN 17 \n#define IRRIGATION_PIN 16 \n/* \n explanation Relays are normally open \n When active the relay is off and ...
342
0
{"language": "c", "success": true, "metadata": {"lines": 93, "avg_line_length": 21.57, "nodes": 213, "errors": 0, "source_hash": "0e33b26101a2e05543a5c3096e2821b444bee473f68d46c50a334e3a47db80bd", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,271
c
/* * Copyright (c) 2013, <NAME>. * * 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 copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL...
24.48
60
(translation_unit) "/*\n * Copyright (c) 2013, <NAME>.\n *\n * Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted,\n * provided that the above copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED "AS IS" AN...
215
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 24.48, "nodes": 148, "errors": 0, "source_hash": "c1012ad119ab1cb4a47781707993814e999df2436fac9357053ae279b999d9d4", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
11,272
c
#ifndef DhtSensor_h #define DhtSensor_h #include "Sensor.h" #include "Device.h" enum DhtType { dht11 = 11, dht22 = 22 }; class DhtSensor : public Sensor { public: DhtSensor(Device& device, DhtType dhtType) { _dhtType = dhtType; device.sensorMode = DhtShieldMode; }; void measure(); ...
24.82
22
(translation_unit) "#ifndef DhtSensor_h\n#define DhtSensor_h\n\n#include "Sensor.h"\n#include "Device.h"\n\nenum DhtType {\n dht11 = 11,\n dht22 = 22\n};\n\nclass DhtSensor : public Sensor { \n public:\n DhtSensor(Device& device, DhtType dhtType) {\n _dhtType = dhtType;\n device.sensorMode = DhtShieldM...
133
2
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 24.82, "nodes": 79, "errors": 0, "source_hash": "199a66feebae5a925d73c6b762cd6ae3d3843dc20254485ab16cf71d5792618b", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,273
c
#ifndef _TRNG_API_H_ #define _TRNG_API_H_ void trng_init(void); void trng_free(void); unsigned int trng_get_word(void); #endif /* _TRNG_API_H_ */
23.33
6
(translation_unit) "#ifndef _TRNG_API_H_\n#define _TRNG_API_H_\n\nvoid trng_init(void);\nvoid trng_free(void);\nunsigned int trng_get_word(void);\n\n#endif /* _TRNG_API_H_ */\n" (preproc_ifdef) "#ifndef _TRNG_API_H_\n#define _TRNG_API_H_\n\nvoid trng_init(void);\nvoid trng_free(void);\nunsigned int trng_get_word(void...
41
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 23.33, "nodes": 30, "errors": 0, "source_hash": "9b0cd9380fe00df76766456e091f9bbaf51f2cdb89555bf9a1b783c71e542165", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
11,274
c
#ifndef ethernet_h #define ethernet_h //#include <inttypes.h> #include "IPAddress.h" #include "WiFi.h" #include "esp_eth.h" #include "eth_phy/phy.h" #include "eth_phy/phy_lan8720.h" #define ETH_PHY_CONF phy_lan8720_default_ethernet_config #define ETH_PHY_ADDR PHY0 //#define PIN_PHY_POWER 17 #define PIN_SMI_MDC 23...
25.74
38
(translation_unit) "#ifndef ethernet_h\n#define ethernet_h\n\n//#include <inttypes.h>\n#include "IPAddress.h"\n#include "WiFi.h"\n#include "esp_eth.h"\n#include "eth_phy/phy.h"\n#include "eth_phy/phy_lan8720.h"\n\n#define ETH_PHY_CONF phy_lan8720_default_ethernet_config\n#define ETH_PHY_ADDR PHY0\n//#define PIN_PHY_P...
205
3
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 25.74, "nodes": 123, "errors": 0, "source_hash": "91fede628a221ab92a70f098f70f5c483d352147d4f015aece5d5d3a4456dece", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
11,275
c
#include <stdio.h> #include <stdbool.h> #include <stdlib.h> //FIXME /*************************** Example: Grammar: E --> i E' E' --> + i E' | e ***************************/ char l; bool E_alpha(); bool E_alpha_1(); bool E_alpha_2(); void error(){ printf("Error\n"); exit(-1); } // Match function bool match(char ...
16.35
65
(translation_unit) "#include <stdio.h>\n#include <stdbool.h>\n#include <stdlib.h>\n\n//FIXME\n\n/***************************\nExample:\nGrammar:\nE --> i E'\nE' --> + i E' | e\n***************************/\n\nchar l;\n\n\nbool E_alpha();\nbool E_alpha_1();\nbool E_alpha_2();\n\nvoid error(){\n printf("Error\n");\n exit...
392
0
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 16.35, "nodes": 222, "errors": 0, "source_hash": "feaa267faa46a57c3d48a5e9a61a5578cc0bf7ca6b663004bc84b7a0aa63ff02", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,276
c
/* -*- Mode: C; c-basic-offset:4 ; -*- */ /* * (C) 2008 by Argonne National Laboratory. * See COPYRIGHT in top-level directory. */ #include "hydra.h" #include "bsci.h" #include "common.h" HYD_status HYDT_bsci_launcher_sge_init(void) { HYDT_bsci_fns.query_env_inherit = HYDT_bscd_sge_query_env_inherit; ...
29.45
20
(translation_unit) "/* -*- Mode: C; c-basic-offset:4 ; -*- */\n/*\n * (C) 2008 by Argonne National Laboratory.\n * See COPYRIGHT in top-level directory.\n */\n\n#include "hydra.h"\n#include "bsci.h"\n#include "common.h"\n\nHYD_status HYDT_bsci_launcher_sge_init(void)\n{\n HYDT_bsci_fns.query_env_inherit = HYDT...
89
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 29.45, "nodes": 51, "errors": 0, "source_hash": "36517b5e315675467030511a30dba8b6bfd4eeaa4e8d7ba526a01f1b81eea095", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
11,277
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* dynamic_search.c :+: :+: :+: ...
30.04
47
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* dynamic_search.c ...
268
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 30.04, "nodes": 154, "errors": 0, "source_hash": "45bfd339d6432942ae5a9abb633084d05d89cbde115e9820c7544f4f11c8ac78", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,278
c
/*++ Copyright (c) 2019 changeofpace. All rights reserved. Use of this source code is governed by the MIT license. See the 'LICENSE' file for more information. --*/ #pragma once #include <Windows.h> #include "../Common/ioctl.h" //============================================================================= // Me...
25.03
63
(translation_unit) "/*++\n\nCopyright (c) 2019 changeofpace. All rights reserved.\n\nUse of this source code is governed by the MIT license. See the 'LICENSE' file\nfor more information.\n\n--*/\n\n#pragma once\n\n#include <Windows.h>\n\n#include "../Common/ioctl.h"\n\n//================================================...
226
22
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 25.03, "nodes": 152, "errors": 0, "source_hash": "0b2abad08ce6b67a1ff1af26944afb23c566aed708a44f4dda4161e08befb715", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
11,279
c
union R { int c; union R *p; }; extern union R *w[]; typedef struct { int t; } T; typedef struct { void *u; } U; union R *fn1 (void); void fn2 (int, const char *, union R *); void fn3 (void); int fn4 (union R *); void foo (U *x);
24.56
9
(translation_unit) "union R { int c; union R *p; };\nextern union R *w[];\ntypedef struct { int t; } T;\ntypedef struct { void *u; } U;\nunion R *fn1 (void);\nvoid fn2 (int, const char *, union R *);\nvoid fn3 (void);\nint fn4 (union R *);\nvoid foo (U *x);\n" (union_specifier) "union R { int c; union R *p; }" (u...
136
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 24.56, "nodes": 97, "errors": 0, "source_hash": "21acf4094864d99c0176357baaab4cecb45fb00f616e030f7eea725dc8d1db01", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "union_specifier", "text": "union R...
11,280
c
/*******************************************************************************/ /* Copyright (C) 1994 - 2015, Performance Dynamics Company */ /* */ /* This software is licensed as described in the file COPYING, which ...
36.98
99
(translation_unit) "/*******************************************************************************/\n/* Copyright (C) 1994 - 2015, Performance Dynamics Company */\n/* */\n/* This software is licensed as described in the f...
728
0
{"language": "c", "success": true, "metadata": {"lines": 99, "avg_line_length": 36.98, "nodes": 416, "errors": 0, "source_hash": "0bbbdb843390c497aac5a6fd850c014524d54bbda82b1566326b860445303ee3", "categorized_nodes": 290}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,281
c
#import <Flutter/Flutter.h> @interface PluginCodelabPlugin : NSObject<FlutterPlugin> @end
29
3
(translation_unit) "#import <Flutter/Flutter.h>\n\n@interface PluginCodelabPlugin : NSObject<FlutterPlugin>\n@end\n" (preproc_call) "#import <Flutter/Flutter.h>\n" (preproc_directive) "#import" (preproc_arg) "<Flutter/Flutter.h>" (ERROR) "@interface PluginCodelabPlugin : NSObject<FlutterPlugin>\n@end" (...
15
3
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 29.0, "nodes": 12, "errors": 0, "source_hash": "e1d0875c650ec67876c5a25629c243e87b838d45040aa49c41b16199e1229ebc", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Flu...
11,282
c
#include "stm32f4xx.h" #include "stm32f4xx_rcc.h" #include "stm32f4xx_gpio.h" #include <stdio.h> #include <math.h> #include "accelerometers/accelerometers.h" static void init_systick(); static void delay_ms(uint32_t n); static volatile uint32_t msTicks; // counts 1 ms timeTicks typedef struct _Status { int stage1...
28.8
150
(translation_unit) "#include "stm32f4xx.h"\n#include "stm32f4xx_rcc.h"\n#include "stm32f4xx_gpio.h"\n\n#include <stdio.h>\n#include <math.h>\n\n#include "accelerometers/accelerometers.h"\n\nstatic void init_systick();\nstatic void delay_ms(uint32_t n);\nstatic volatile uint32_t msTicks; // counts 1 ms timeTicks\n\ntype...
1,328
0
{"language": "c", "success": true, "metadata": {"lines": 150, "avg_line_length": 28.8, "nodes": 861, "errors": 0, "source_hash": "f588ce7f0246f5504a142426a225acf7842a5c669fe96b427407b50df7f50c4f", "categorized_nodes": 627}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
11,283
c
// Copyright 2016 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 COMPONENTS_MUS_WS_PLATFORM_SCREEN_IMPL_H_ #define COMPONENTS_MUS_WS_PLATFORM_SCREEN_IMPL_H_ #include <stdint.h> #include "base/callback.h" #incl...
32.59
29
(translation_unit) "// Copyright 2016 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 COMPONENTS_MUS_WS_PLATFORM_SCREEN_IMPL_H_\n#define COMPONENTS_MUS_WS_PLATFORM_SCREEN_IMPL_H_\n\n#include <stdint.h>\n\n#in...
128
5
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 32.59, "nodes": 66, "errors": 0, "source_hash": "d287c689beaf55e79fbcab13776fa1e22dca2ca1b92e79c93fe13963452c188d", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,284
c
#ifndef EXAMPLE_H #define EXAMPLE_H #include "../lfgui/lfgui_wrapper_qt.h" #include "../lfgui/slider.h" #include "../lfgui/button.h" #include "../common_sample_code.h" #include <QApplication> #include <QMainWindow> class Example : public QMainWindow { Q_OBJECT lfgui::wrapper_qt::gui* gui=0; public: Examp...
25.73
26
(translation_unit) "#ifndef EXAMPLE_H\n#define EXAMPLE_H\n\n#include "../lfgui/lfgui_wrapper_qt.h"\n#include "../lfgui/slider.h"\n#include "../lfgui/button.h"\n#include "../common_sample_code.h"\n\n#include <QApplication>\n#include <QMainWindow>\n\nclass Example : public QMainWindow\n{\n Q_OBJECT\n lfgui::wrapper...
180
8
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 25.73, "nodes": 93, "errors": 0, "source_hash": "31bb1e3d041c7818577fdaf45069128117407747f0b1d60dc4040a0fc39f7b2d", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,285
c
/* * Copyright 2020, WindTerm. * * 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 ...
23.89
65
(translation_unit) "/*\n * Copyright 2020, WindTerm.\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 ...
443
23
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 23.89, "nodes": 226, "errors": 0, "source_hash": "c9b8b507c3ce7c47d89fc5ec05986aa48bbbbe0015ecd2274532bc5973e6349a", "categorized_nodes": 147}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,286
c
//C++ /* ---------------------------------------------------- The Desktop Project ------------------ Copyright 2004 <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/li...
31.65
74
(translation_unit) "//C++\n\n/*\n----------------------------------------------------\nThe Desktop Project\n------------------\n\nCopyright 2004 <NAME>\n\nLicensed under the Apache License, Version 2.0 (the "License");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the Licen...
393
0
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 31.65, "nodes": 214, "errors": 0, "source_hash": "09861c9dd5a38e163b88237f1c5c4b25c25f917dfff274488b92bc152d76809e", "categorized_nodes": 141}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,287
c
// // CategoryTableViewCell2.h // Fresh_water_daily // // Created by lanou3g on 15/11/19. // Copyright © 2015年 <EMAIL>. All rights reserved. // #import <UIKit/UIKit.h> @interface CategoryTableViewCell2 : UITableViewCell @property (strong, nonatomic) IBOutlet UILabel *lab4Title; @end
25.18
11
(translation_unit) "//\n// CategoryTableViewCell2.h\n// Fresh_water_daily\n//\n// Created by lanou3g on 15/11/19.\n// Copyright © 2015年 <EMAIL>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface CategoryTableViewCell2 : UITableViewCell\n\n@property (strong, nonatomic) IBOutlet UILabel *lab4Title;\n@...
38
7
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 25.18, "nodes": 25, "errors": 0, "source_hash": "86b4e173e9e4ca1e5bf174900ff7788b86dddc2aeecfa55f1f53a21bbc395d57", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
11,288
c
/* Test that stack protection is done on chosen functions. */ /* { dg-do compile { target i?86-*-* x86_64-*-* rs6000-*-* s390x-*-* } } */ /* { dg-options "-O2 -fstack-protector-strong" } */ /* This test checks the presence of __stack_chk_fail function in assembler. * Compiler generates _stack_chk_fail_local (wrapper...
17.18
134
(translation_unit) "/* Test that stack protection is done on chosen functions. */\n\n/* { dg-do compile { target i?86-*-* x86_64-*-* rs6000-*-* s390x-*-* } } */\n/* { dg-options "-O2 -fstack-protector-strong" } */\n\n/* This test checks the presence of __stack_chk_fail function in assembler.\n * Compiler generates _sta...
747
0
{"language": "c", "success": true, "metadata": {"lines": 134, "avg_line_length": 17.18, "nodes": 456, "errors": 0, "source_hash": "ff4c2cfc4da955f1fe8f973b96ce0d93a0d08e0fd44a0c9d402531bc0a020a88", "categorized_nodes": 317}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
11,289
c
/* * broadvoice - a library for the BroadVoice 16 and 32 codecs * * bv16_tests.c - * * Adapted by <NAME> <<EMAIL>> from code which is * Copyright 2000-2009 Broadcom Corporation * * All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU L...
29.4
161
(translation_unit) "/*\n * broadvoice - a library for the BroadVoice 16 and 32 codecs\n *\n * bv16_tests.c - \n *\n * Adapted by <NAME> <<EMAIL>> from code which is\n * Copyright 2000-2009 Broadcom Corporation\n *\n * All rights reserved.\n *\n * This program is free software; you can redistribute it and/or modify\n * ...
1,138
0
{"language": "c", "success": true, "metadata": {"lines": 161, "avg_line_length": 29.4, "nodes": 631, "errors": 0, "source_hash": "2610fec171dc451a5a6bd05886458f06f371d3974928230f732ee8cdf2e056ce", "categorized_nodes": 432}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if defin...
11,290
c
// // ELNote.h // Elysium // // Created by <NAME> on 20/07/2008. // Copyright 2008 <NAME>. // See MIT-LICENSE for more information. // #import <Cocoa/Cocoa.h> #import "ELPlayable.h" @interface ELNote : ELPlayable { int number; int octave; NSString *name; NSString *tone; NSString *altern...
19.9
29
(translation_unit) "//\n// ELNote.h\n// Elysium\n//\n// Created by <NAME> on 20/07/2008.\n// Copyright 2008 <NAME>.\n// See MIT-LICENSE for more information.\n//\n\n#import <Cocoa/Cocoa.h>\n\n#import "ELPlayable.h"\n\n@interface ELNote : ELPlayable\n{\n int number;\n int octave;\n NSString *name;\n...
201
12
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 19.9, "nodes": 126, "errors": 0, "source_hash": "f8b5e1d3a538db0f29252c9e27f5f2d2445fdd060b70181b3cdf1c6176ef3b8d", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
11,291
c
/* * Copyright 2012 <NAME>, CRACS & INESC-TEC, DCC/FCUP * * 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 requir...
25.41
41
(translation_unit) "/*\n * Copyright 2012 <NAME>, CRACS & INESC-TEC, DCC/FCUP\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/LICEN...
100
4
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 25.41, "nodes": 57, "errors": 0, "source_hash": "03ceb79e75c82991e1758c5591dcd9033bf69d4abb830888295ddf7211e7bfba", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
11,292
c
// Copyright (c) 2015 fjz13. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. #pragma once #include "MedusaCorePreDeclares.h" #include "Core/Siren/SirenHeader.h" //SIREN_HEADER_INCLUDE_BEGIN //SIREN_HEADER_INCLUDE_END MEDUSA_BEGIN; class Str...
21.76
59
(translation_unit) "// Copyright (c) 2015 fjz13. All rights reserved.\n// Use of this source code is governed by a MIT-style\n// license that can be found in the LICENSE file.\n#pragma once\n#include "MedusaCorePreDeclares.h"\n#include "Core/Siren/SirenHeader.h"\n\n//SIREN_HEADER_INCLUDE_BEGIN\n//SIREN_HEADER_INCLUDE_E...
319
8
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 21.76, "nodes": 161, "errors": 0, "source_hash": "3faed3e04de4524cf6d5fa45db79e6b2e2d4f40d5f7e0c321f320cd718f63c7e", "categorized_nodes": 124}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
11,293
c
#ifndef SANDBOX_GRAPHICS_SHADERS_MATERIAL_SHADER_H_ #define SANDBOX_GRAPHICS_SHADERS_MATERIAL_SHADER_H_ #include "sandbox/graphics/render/ShaderProgram.h" #include "sandbox/graphics/RenderState.h" #include <iostream> namespace sandbox { class MaterialShader : public ShaderProgram { public: MaterialShader(); virtua...
30.93
42
(translation_unit) "#ifndef SANDBOX_GRAPHICS_SHADERS_MATERIAL_SHADER_H_\n#define SANDBOX_GRAPHICS_SHADERS_MATERIAL_SHADER_H_\n\n#include "sandbox/graphics/render/ShaderProgram.h"\n#include "sandbox/graphics/RenderState.h"\n#include <iostream>\n\nnamespace sandbox {\n\nclass MaterialShader : public ShaderProgram {\npubl...
389
20
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 30.93, "nodes": 201, "errors": 0, "source_hash": "1c45c0222eeb78c8610cccf10366b15daae4705082220f465ed928cf65ce462d", "categorized_nodes": 144}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
11,294
c
#if !defined(GLOBALS_H) #define GLOBALS_H #include <glib.h> /* gboolean and GMainLoop */ /* Global state */ // TODO FIXME not static extern int runtime_status; extern int container_status; extern int mainfd_stdin; extern int mainfd_stdout; extern int mainfd_stderr; extern int attach_socket_fd; extern int console_so...
24
20
(translation_unit) "#if !defined(GLOBALS_H)\n#define GLOBALS_H\n\n#include <glib.h> /* gboolean and GMainLoop */\n\n/* Global state */\n// TODO FIXME not static\nextern int runtime_status;\nextern int container_status;\n\nextern int mainfd_stdin;\nextern int mainfd_stdout;\nextern int mainfd_stderr;\n\nextern int attac...
102
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 24.0, "nodes": 82, "errors": 0, "source_hash": "aeccdaf2175e66d2ef1394052e37537818fac9e0d72ac9bc2952acb998318be8", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defined...
11,295
c
/* 152042 松下 旦 */ #include <stdio.h> #include <math.h> #include <stdlib.h> #define ROW 1 #define COL 12 double average(double *input, int input_size); double variance(double *input, int input_size); double standard_deviation(double *input, int input_size); double covariance(double *input1, double *input2, int input_s...
34.83
186
(translation_unit) "/* 152042 松下 旦 */\n\n#include <stdio.h>\n#include <math.h>\n#include <stdlib.h>\n#define ROW 1\n#define COL 12\n\ndouble average(double *input, int input_size);\ndouble variance(double *input, int input_size);\ndouble standard_deviation(double *input, int input_size);\ndouble covariance(double *inpu...
2,314
0
{"language": "c", "success": true, "metadata": {"lines": 186, "avg_line_length": 34.83, "nodes": 1447, "errors": 0, "source_hash": "fde1f9b35de79494f4c1805d1f20af00f7bef0c6c7fc79fcf0780d48f033a317", "categorized_nodes": 948}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "de...
11,296
c
/* * Copyright (c) 2017-2020 Cisco and/or its affiliates. * 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 appl...
31.62
131
(translation_unit) "/*\n * Copyright (c) 2017-2020 Cisco and/or its affiliates.\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 *...
793
0
{"language": "c", "success": true, "metadata": {"lines": 131, "avg_line_length": 31.62, "nodes": 494, "errors": 0, "source_hash": "fd539c583cde343501a1f83913b874a6884e2db14ebaea83d51274252036471c", "categorized_nodes": 340}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
11,297
c
//This program compares a Float and a Double //Example: Does float x = 3.0 equal double y= 3.0 // Answer: Yes or No //Example 2: Does float x =3.1 equal double y=3.1 // Answer: Yes or No //float x = 3.1 = 11.0001100110011.... //double y = 3.1 = 11.0001100110011.... //Compare the two, x == y ==> 11.0001 == 11.00011001...
20.61
23
(translation_unit) "//This program compares a Float and a Double\n//Example: Does float x = 3.0 equal double y= 3.0\n// Answer: Yes or No\n\n//Example 2: Does float x =3.1 equal double y=3.1\n// Answer: Yes or No\n\n//float x = 3.1 = 11.0001100110011....\n//double y = 3.1 = 11.0001100110011....\n//Compare the two, x ==...
81
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 20.61, "nodes": 39, "errors": 0, "source_hash": "6e66109a9b5b463cdbf0bac17353e75bd28f7f01967037beb443d0ea51fdb911", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
11,298
c
#pragma once #include <vector> // std::vector #include <algorithm> // std::swap /// <summary> /// Selection Sort - O(n^2) /// brings the smallest value to the front of the list then iterate through the remainder moving IDx up by 1 each time /// </summary> namespace SelectionSort { static void SelectionSort(std::...
26.37
27
(translation_unit) "#pragma once\n#include <vector> // std::vector\n#include <algorithm> // std::swap\n\n/// <summary>\n/// Selection Sort - O(n^2)\n/// brings the smallest value to the front of the list then iterate through the remainder moving IDx up by 1 each time \n/// </summary>\nnamespace SelectionSort\n{\n s...
177
2
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 26.37, "nodes": 104, "errors": 0, "source_hash": "193f9c09249c1e43b1a0a735e0ed18f5ac654b86962d4e1c5b8f8410f364f180", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
11,299