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
#include <stdlib.c> char *soma_gols(char* atual, char* proximo) { int acumulador; char numero[3]; acumulador = atoi(atual) + atoi(proximo); snprintf(numero,3,"%d",acumulador); return numero; }
21
9
(translation_unit) "#include <stdlib.c>\nchar *soma_gols(char* atual, char* proximo)\n{\n int acumulador;\n char numero[3];\n\n acumulador = atoi(atual) + atoi(proximo);\n snprintf(numero,3,"%d",acumulador);\n\n return numero;\n}\n" (preproc_include) "#include <stdlib.c>\n" (#include) "#include" (system_lib_s...
79
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 21.0, "nodes": 50, "errors": 0, "source_hash": "92d1774d1a14788fdedc01410d7e4652eac5d5430adacbfce71dd0fbdfcc9b25", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
400
c
// Copyright 2020 The Fuchsia 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 SRC_DEVELOPER_FORENSICS_FEEDBACK_DATA_SYSTEM_LOG_RECORDER_WRITER_H_ #define SRC_DEVELOPER_FORENSICS_FEEDBACK_DATA_SYSTEM_LOG_RECORDER_WRITER_H_ #i...
43.37
30
(translation_unit) "// Copyright 2020 The Fuchsia 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 SRC_DEVELOPER_FORENSICS_FEEDBACK_DATA_SYSTEM_LOG_RECORDER_WRITER_H_\n#define SRC_DEVELOPER_FORENSICS_FEEDBACK_DATA_SYSTEM_L...
154
4
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 43.37, "nodes": 84, "errors": 0, "source_hash": "ec61f922a4ac9de51a80b9d0855eb4d4bad929b7ea1d33b97cc59ca761c6beeb", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
401
c
// // UIView+YACOFrame.h // YACOBasicUIKit // // Created by 李亚飞 on 2020/5/13. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface UIView (YACOFrame) // x y @property (nonatomic, assign) CGFloat yaco_x; @property (nonatomic, assign) CGFloat yaco_y; // width height @property (nonatomic, assign) CGFloat ...
28.22
41
(translation_unit) "//\n// UIView+YACOFrame.h\n// YACOBasicUIKit\n//\n// Created by 李亚飞 on 2020/5/13.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface UIView (YACOFrame)\n\n// x y\n@property (nonatomic, assign) CGFloat yaco_x;\n@property (nonatomic, assign) CGFloat yaco_y;\n\n// width height\n...
251
49
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 28.22, "nodes": 165, "errors": 0, "source_hash": "4153e95cdad51058edea73a1dc17359a0a2a42d43400b3e33acbbe3cb9687a69", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "t <UIKit...
402
c
// // SubComponentC.h // Pods-SubComponentC_Example // // Created by 王磊 on 2019/7/9. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface SubComponentC : UIViewController @end NS_ASSUME_NONNULL_END
18.09
11
(translation_unit) "//\n// SubComponentC.h\n// Pods-SubComponentC_Example\n//\n// Created by 王磊 on 2019/7/9.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface SubComponentC : UIViewController\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" (comment) "// SubComponentC.h" (comment) "// ...
26
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 18.09, "nodes": 16, "errors": 0, "source_hash": "3a9582ffd550b9121475a948305e776b8e6d499f947feaeaf56c613fb220616d", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ort <UIKit...
403
c
// // Created by <NAME> on 6/21/17. // #ifndef SECUREKEYS_CONFIGURATIONS_H #define SECUREKEYS_CONFIGURATIONS_H #include <jni.h> #include <map> #include <string> #include "crypto/crypto_wrapper.h" /** * Class that holds information about the library configurations */ class Configurations { private: // AES infor...
30.46
39
(translation_unit) "//\n// Created by <NAME> on 6/21/17.\n//\n\n#ifndef SECUREKEYS_CONFIGURATIONS_H\n#define SECUREKEYS_CONFIGURATIONS_H\n\n#include <jni.h>\n#include <map>\n#include <string>\n#include "crypto/crypto_wrapper.h"\n\n/**\n * Class that holds information about the library configurations\n */\nclass Configu...
203
2
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 30.46, "nodes": 124, "errors": 0, "source_hash": "efee3e1521612582e795a0b27b8078d1c7f29a5b42cfc796e5cebaf04b941c1e", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
404
c
/* * Copyright 2006 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkSVGDefs_DEFINED #define SkSVGDefs_DEFINED #include "SkSVGGroup.h" class SkSVGDefs : public SkSVGGroup { DECLARE_SVG_INFO(Defs); virtua...
23.22
18
(translation_unit) "/*\n * Copyright 2006 The Android Open Source Project\n *\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n\n#ifndef SkSVGDefs_DEFINED\n#define SkSVGDefs_DEFINED\n\n#include "SkSVGGroup.h"\n\nclass SkSVGDefs : public SkSVGGroup {\n ...
65
4
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 23.22, "nodes": 38, "errors": 0, "source_hash": "73fdb41620459c2fa33447399ac0ffbf647703c52dff21f962b91d42f83dc246", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
405
c
#pragma once /*! * file parameter_loader.h * \brief Class Parameterloader parses the datablock and requests the params from multiverso server */ #include "multiverso.h" #include "data_block.h" #include "constant.h" #include "util.h" #include "logistic_regression.h" #include "log.h" class logistic_regre...
26.26
46
(translation_unit) "#pragma once \n \n/*! \n* file parameter_loader.h \n* \brief Class Parameterloader parses the datablock and requests the params from multiverso server \n*/ \n \n#include "multiverso.h" \n#include "data_block.h" \n#include "constant.h" \n#include "util.h" \n#include "logistic_regression.h" \n#include...
188
6
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 26.26, "nodes": 104, "errors": 0, "source_hash": "156ea3e730896cde128b0eac4922ae4e8d2807a7159b8e24b235a01447947741", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
406
c
#pragma once #include <string> #include <vector> #include <map> #include <set> #include <utility> using namespace std; struct TwoKey { char * str; long len; }; struct FileNode { char * str; long address; FileNode * next; }; class Util { public: static vector<string> ReadFromFile( const char* fileDir);...
27.39
36
(translation_unit) "#pragma once\n\n#include <string>\n#include <vector>\n#include <map>\n#include <set>\n#include <utility>\nusing namespace std;\n\nstruct TwoKey \n{\n char * str;\n long len;\n};\n\nstruct FileNode\n{\n char * str;\n long address;\n FileNode * next;\n};\n\nclass Util\n{\npublic:\n static vecto...
358
6
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 27.39, "nodes": 244, "errors": 0, "source_hash": "6a6d86f0062b93a08737b5e45bcec5214f972e36e3d7f3201c268010f21bbe10", "categorized_nodes": 160}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
407
c
#ifndef RSIGSLOT_H #define RSIGSLOT_H #include <memory> #include <unordered_map> #include <functional> namespace Redopera { /* 不支持多线程 */ class RSlot { public: template<typename Sloter> static void disableSlot(Sloter *sloter) { sloter->__RSLOT__.flag.reset(); } template<typename Sloter> ...
25.17
127
(translation_unit) "#ifndef RSIGSLOT_H\n#define RSIGSLOT_H\n\n#include <memory>\n#include <unordered_map>\n#include <functional>\n\nnamespace Redopera {\n\n/* 不支持多线程 */\n\nclass RSlot\n{\npublic:\n template<typename Sloter>\n static void disableSlot(Sloter *sloter)\n {\n sloter->__RSLOT__.flag.reset();\...
1,226
61
{"language": "c", "success": true, "metadata": {"lines": 127, "avg_line_length": 25.17, "nodes": 722, "errors": 0, "source_hash": "67cc307251c315e5207b83ff51708d0b2d99d6767302d50cdd9ded77eb99ed33", "categorized_nodes": 461}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
408
c
// // Created by <NAME> on 10/20/19. // #include <io.h> #include <memory.h> #include <stdio.h> #include <stdint.h> #include <errno.h> #include <string.h> void load_rom(char *filename) { FILE *file; uint8_t buffer[RAM_SIZE - PROG_OFFSET]; ssize_t filelen; file = fopen(filename, "rb"); if (file =...
23.08
36
(translation_unit) "//\n// Created by <NAME> on 10/20/19.\n//\n\n#include <io.h>\n#include <memory.h>\n\n#include <stdio.h>\n#include <stdint.h>\n#include <errno.h>\n#include <string.h>\n\n\nvoid load_rom(char *filename) {\n FILE *file;\n uint8_t buffer[RAM_SIZE - PROG_OFFSET];\n ssize_t filelen;\n\n file =...
268
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 23.08, "nodes": 148, "errors": 0, "source_hash": "abd1a723bb5898bb7ab229e1b813422446bac9bc4b306e93097704095c4eca56", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
409
c
/******************************** *Filename:binarytree.h * *Login:by932 * *AssignmentNo:ass5 * *DateLastModified:2/11/2014 * ********************************/ #include <iostream> #include <cstring> #include "linkedlist.h" using namespace std; // Definition of data contained in BinaryTree struct bnode...
25.52
48
(translation_unit) "/********************************\n*Filename:binarytree.h *\n*Login:by932 * \n*AssignmentNo:ass5 *\n*DateLastModified:2/11/2014 * \n********************************/\n#include <iostream>\n#include <cstring>\n#include "linkedlist.h"\nusing namespace std;\n// Definition of data contai...
264
9
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 25.52, "nodes": 152, "errors": 0, "source_hash": "c22df893d8c50ac3583f9686ac03248c311c0980600e313b7a28c0935e83fd47", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
410
c
/* The MIT License Copyright (c) 2008 <NAME> <<EMAIL>> 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...
29.09
87
(translation_unit) "/*\nThe MIT License\n\nCopyright (c) 2008 <NAME> <<EMAIL>>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto ...
600
0
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 29.09, "nodes": 361, "errors": 0, "source_hash": "39be210fbd162278249e8ddbf31c06728c8591bfe7b3444a5ee07b869f0c5736", "categorized_nodes": 245}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef...
411
c
#if !defined (UNINSTALLPARAMS_H) #define UNINSTALLPARAMS_H //------------------------------------ // // (c) Reliable Software, 1998 //------------------------------------ char const UninstallTitle [] = "The Code Co-op Uninstaller"; #endif
29
8
(translation_unit) "#if !defined (UNINSTALLPARAMS_H)\n#define UNINSTALLPARAMS_H\n//------------------------------------\n//\n// (c) Reliable Software, 1998\n//------------------------------------\n\nchar const UninstallTitle [] = "The Code Co-op Uninstaller";\n\n#endif\n" (preproc_if) "#if !defined (UNINSTALLPARAMS_...
34
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 29.0, "nodes": 19, "errors": 0, "source_hash": "0bc95555b02f9dba4c05a1d42466305750b6bb8fa88af73b9dd6be1cf2b393b1", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defined (...
412
c
// // Created by <NAME> on 2021-07-04. // #ifndef FIRMWARE_UICONTROLLER_H #define FIRMWARE_UICONTROLLER_H #include <SystemStatus.h> #include <Adafruit_SSD1306.h> class UIController { public: UIController(SystemStatus *status, Adafruit_SSD1306_Spi *display); [[noreturn]] void run(); private: SystemStatus...
22.41
17
(translation_unit) "//\n// Created by <NAME> on 2021-07-04.\n//\n\n#ifndef FIRMWARE_UICONTROLLER_H\n#define FIRMWARE_UICONTROLLER_H\n\n#include <SystemStatus.h>\n#include <Adafruit_SSD1306.h>\n\nclass UIController {\npublic:\n UIController(SystemStatus *status, Adafruit_SSD1306_Spi *display);\n [[noreturn]] void ...
73
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 22.41, "nodes": 48, "errors": 0, "source_hash": "81864ff0119264942ff53b5b69ca9d8c3dd5cc8b7732f2f335ad21db185fee7c", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
413
c
///////////////////////////////////////////////////////////////////////////// // Name: wx/palmos/frame.h // Purpose: wxFrame class // Author: <NAME> - minimal working wxPalmOS port // Modified by: // Created: 10/13/04 // RCS-ID: $Id: frame.h,v 1.6 2005/02/14 10:48:56 ABX Exp $ // Copyright: (...
36.48
86
(translation_unit) "/////////////////////////////////////////////////////////////////////////////\n// Name: wx/palmos/frame.h\n// Purpose: wxFrame class\n// Author: <NAME> - minimal working wxPalmOS port\n// Modified by:\n// Created: 10/13/04\n// RCS-ID: $Id: frame.h,v 1.6 2005/02/14 10:48:56 A...
536
32
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 36.48, "nodes": 331, "errors": 0, "source_hash": "532a89eb6d76f0790e110084ae7099cb479ae85a0010fad4d9add8767de02f10", "categorized_nodes": 217}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
414
c
/* Pango * pangofc-fontmap.h: Base fontmap type for fontconfig-based backends * * Copyright (C) 2003 Red Hat Software * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * v...
34.18
217
(translation_unit) "/* Pango\n * pangofc-fontmap.h: Base fontmap type for fontconfig-based backends\n *\n * Copyright (C) 2003 Red Hat Software\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Library General Public\n * License as published by the Free Softw...
431
10
{"language": "c", "success": true, "metadata": {"lines": 217, "avg_line_length": 34.18, "nodes": 337, "errors": 0, "source_hash": "8c9500df855ff745d593a7d1d3ba3c2ce8645f3ae4b76010a7e317774841e82a", "categorized_nodes": 220}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
415
c
#ifndef switches_included #define switches_included #define SW1 BIT0 /* switch1 is p1.3 */ #define SW2 BIT1 #define SW3 BIT2 #define SW4 BIT3 #define SWITCHES ((SW1) | (SW2) | (SW3) | (SW4)) /* switches on this board */ void switch_init(); void switch_interrupt_handler(); void checkMatch(); extern char switch1_sta...
34.58
12
(translation_unit) "#ifndef switches_included\n#define switches_included\n\n#define SW1 BIT0 /* switch1 is p1.3 */\n#define SW2 BIT1\n#define SW3 BIT2\n#define SW4 BIT3\n#define SWITCHES ((SW1) | (SW2) | (SW3) | (SW4)) /* switches on this board */\n\nvoid switch_init();\nvoid switch_interrupt_handler();\nvoid checkMa...
69
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 34.58, "nodes": 51, "errors": 0, "source_hash": "c45ea27517a502607176163b6ad8b27f048b9cd922bba221168d44afe21a4244", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
416
c
#pragma once #include <time.h> #include <iostream> #include <unistd.h> #include <sys/wait.h> #include <fcntl.h> #include <sys/resource.h> #define NUMBER_OF_PROCESSES 10 #define NUMBER_OF_PROCESS_EXECUTION 20 using namespace std; class BurstTime { private: static double** whenProcessEnd(char ***processes); stat...
24.61
18
(translation_unit) "#pragma once\n#include <time.h>\n#include <iostream>\n#include <unistd.h>\n#include <sys/wait.h>\n#include <fcntl.h>\n#include <sys/resource.h>\n#define NUMBER_OF_PROCESSES 10\n#define NUMBER_OF_PROCESS_EXECUTION 20\nusing namespace std;\n\nclass BurstTime {\nprivate:\n static double** whenProces...
117
1
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 24.61, "nodes": 85, "errors": 0, "source_hash": "bc189d2cd0af1bb6cf20b0ab7ac61fbde3f8c524c02bf82c19bccdf21babad4d", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
417
c
/** * Provides the mod_lwt HTTPD module for Apache. See LICENSE for license terms. */ #ifndef LWT_APACHE_INCLUDED #define LWT_APACHE_INCLUDED #include <apr_pools.h> #include <httpd.h> #include <lua.h> #define LWT_APACHE_MODULE "httpd.core" #define LWT_APACHE_REQUEST_REC "lwt_request_rec" #define LWT_APACHE_DEFERRE...
28.43
81
(translation_unit) "/**\n * Provides the mod_lwt HTTPD module for Apache. See LICENSE for license terms.\n */\n\n#ifndef LWT_APACHE_INCLUDED\n#define LWT_APACHE_INCLUDED\n\n#include <apr_pools.h>\n#include <httpd.h>\n#include <lua.h>\n\n#define LWT_APACHE_MODULE "httpd.core"\n#define LWT_APACHE_REQUEST_REC "lwt_request...
209
0
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 28.43, "nodes": 160, "errors": 0, "source_hash": "08f501dacca4228436ae60d946c820a07077d5e77fd1b3c27f6ea7f6bc59e91e", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
418
c
#ifndef __AAL_SERVICE_CLIENT_H__ #define __AAL_SERVICE_CLIENT_H__ #include <stdint.h> #include <sys/types.h> #include <binder/Binder.h> #include <utils/Singleton.h> #include <utils/StrongPointer.h> namespace android { class IAALService; class AALClient : public Singleton<AALClient> { friend class Singleton<AALC...
30.31
39
(translation_unit) "#ifndef __AAL_SERVICE_CLIENT_H__\n#define __AAL_SERVICE_CLIENT_H__\n\n#include <stdint.h>\n#include <sys/types.h>\n\n#include <binder/Binder.h>\n#include <utils/Singleton.h>\n#include <utils/StrongPointer.h>\n\nnamespace android {\n\nclass IAALService;\nclass AALClient : public Singleton<AALClient>\...
259
6
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 30.31, "nodes": 179, "errors": 0, "source_hash": "95547f643c1bc0138e0085a0a2fd9b64d1ebb16b9521b7dd7fddf2073a153212", "categorized_nodes": 133}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
419
c
// // FindzhinengModel.h // LoveBird // // Created by <NAME> on 2018/8/12. // Copyright © 2018年 shancheli. All rights reserved. // #import "AppBaseModel.h" @protocol FindzhinengModel; @interface FindzhinengDataModel :AppBaseModel @property (nonatomic, strong) NSMutableArray <FindzhinengModel>*data; @end @inter...
27.81
21
(translation_unit) "//\n// FindzhinengModel.h\n// LoveBird\n//\n// Created by <NAME> on 2018/8/12.\n// Copyright © 2018年 shancheli. All rights reserved.\n//\n\n#import "AppBaseModel.h"\n\n@protocol FindzhinengModel;\n@interface FindzhinengDataModel :AppBaseModel\n\n@property (nonatomic, strong) NSMutableArray <Find...
145
30
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 27.81, "nodes": 108, "errors": 0, "source_hash": "c3cf4b1f0a93314984df86d8d7df535ced923f8fe13575f9b19e44e0e1c6a81d", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"A...
420
c
/* * PanoramaGL library * Version 0.1 * Copyright (c) 2010 <NAME> <<EMAIL>> * * 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...
24.89
178
(translation_unit) "/* \n * PanoramaGL library \n * Version 0.1 \n * Copyright (c) 2010 <NAME> <<EMAIL>> \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.ap...
398
0
{"language": "c", "success": true, "metadata": {"lines": 178, "avg_line_length": 24.89, "nodes": 396, "errors": 0, "source_hash": "48716e45f12bcfb83477fe86ed9f9c810dec22b7ee325d2b5efc300c7cd30df9", "categorized_nodes": 109}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
421
c
// // Created by <NAME> on 4/5/17. // #pragma once #include "Command.h" #include "Thread.h" #include <list> #include <iostream> #include <map> #include <mutex> /** * Class to manange the various system commands. Commands injected into the CommandManager are run periodically until the command is done. Once the comma...
27.1
71
(translation_unit) "//\n// Created by <NAME> on 4/5/17.\n//\n\n#pragma once\n\n#include "Command.h"\n#include "Thread.h"\n#include <list>\n#include <iostream>\n#include <map>\n#include <mutex>\n\n/**\n * Class to manange the various system commands. Commands injected into the CommandManager are run periodically until t...
192
6
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 27.1, "nodes": 113, "errors": 0, "source_hash": "545ba18e13a3c7c935f2a4983928942d0f1012897c8098f4b75f8c3cae85ace9", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
422
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strtrim.c :+: :+: :+: ...
32.72
54
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* ft_strtrim.c ...
416
0
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 32.72, "nodes": 284, "errors": 0, "source_hash": "8e6ba2dad601a1efa0d4074d48c9c48ffa7b06376945c2cc26e863adf3c9357d", "categorized_nodes": 163}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
423
c
#ifndef __BIRD_H__ #define __BIRD_H__ #include "cocos2d.h" USING_NS_CC; class Bird: public Sprite { private: Action* _idle; Action* _swing; Action* _fly; static int _birdId; public: static Bird* create(); virtual bool init(); void idle(); void stop(); void fly(); CC_CONSTRUCTOR_A...
15.86
22
(translation_unit) "#ifndef __BIRD_H__\n#define __BIRD_H__\n\n#include "cocos2d.h"\n\nUSING_NS_CC;\n\nclass Bird: public Sprite\n{\nprivate:\n Action* _idle;\n Action* _swing;\n Action* _fly;\n static int _birdId;\n\npublic:\n static Bird* create();\n virtual bool init();\n void idle();\n void s...
125
2
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 15.86, "nodes": 74, "errors": 0, "source_hash": "f8aefa81f6f6f5a27db0c3881293f06c029f64fe688bba1cce8dc3ce60b50756", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
424
c
// // WFPhotosPreviewViewController.h // Wolf // // Created by Yoffie on 2020/8/21. // Copyright © 2020 com.mewe.party. All rights reserved. // #import <Photos/Photos.h> #import "WFAlbumItemModel.h" #import "WFAlbumTool.h" @interface WFPhotosPreviewViewController : UIViewController @property (nonatomic, strong)...
33.61
18
(translation_unit) "//\n// WFPhotosPreviewViewController.h\n// Wolf\n//\n// Created by Yoffie on 2020/8/21.\n// Copyright © 2020 com.mewe.party. All rights reserved.\n//\n\n#import <Photos/Photos.h>\n#import "WFAlbumItemModel.h"\n#import "WFAlbumTool.h"\n\n\n@interface WFPhotosPreviewViewController : UIViewControll...
117
23
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 33.61, "nodes": 85, "errors": 0, "source_hash": "1cb848c42f485e196135df12c75a6f4fc0d8e45fa52df598995b980fe9a6a7d6", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <P...
425
c
// // NSURLRequest+QSKit.h // Q Branch Standard Kit // // Created by <NAME> on 10/31/13. // Copyright (c) 2013 Q Branch LLC. All rights reserved. // @import Foundation; @interface NSURLRequest (QSKit) - (NSURL *)qs_loadingURL; /*Experimental. Returns nil if scheme isn't http or https (about:blank, for instanc...
22.43
14
(translation_unit) "//\n// NSURLRequest+QSKit.h\n// Q Branch Standard Kit\n//\n// Created by <NAME> on 10/31/13.\n// Copyright (c) 2013 Q Branch LLC. All rights reserved.\n//\n\n\n@import Foundation;\n\n\n@interface NSURLRequest (QSKit)\n\n\n- (NSURL *)qs_loadingURL; /*Experimental. Returns nil if scheme isn't http...
41
6
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 22.43, "nodes": 21, "errors": 0, "source_hash": "c60a14373e5ad53bcf9d0aeb54dca568c7a41a9a76461286509b17b73517b2a0", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nu...
426
c
/* primecheck.c */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "duktape.h" /* For brevity assumes a maximum file length of 16kB. */ static void push_file_as_string(duk_context *ctx, const char *filename) { FILE *f; size_t len; char buf[16384]; f = fopen(filename, "rb"); if ...
28.42
67
(translation_unit) "/* primecheck.c */\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include "duktape.h"\n\n/* For brevity assumes a maximum file length of 16kB. */\nstatic void push_file_as_string(duk_context *ctx, const char *filename) {\n FILE *f;\n size_t len;\n char buf[16384];\n\n f ...
654
0
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 28.42, "nodes": 350, "errors": 0, "source_hash": "64c3722730d3e7f8a1ee5948fe3e02812966b13177e004da7ba17511a20e574d", "categorized_nodes": 244}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
427
c
#include "minunit.h" #include <dlfcn.h> #include "statserve.h" #include <lcthw/bstrlib.h> #include <lcthw/ringbuffer.h> #include <assert.h> typedef struct LineTest { char *line; bstring result; char *description; } LineTest; int attempt_line(LineTest test) { int rc = -1; bstring result = NULL; ...
28.28
105
(translation_unit) "#include "minunit.h"\n#include <dlfcn.h>\n#include "statserve.h"\n#include <lcthw/bstrlib.h>\n#include <lcthw/ringbuffer.h>\n#include <assert.h>\n\ntypedef struct LineTest {\n char *line;\n bstring result;\n char *description;\n} LineTest;\n\nint attempt_line(LineTest test)\n{\n int rc =...
1,005
0
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 28.28, "nodes": 601, "errors": 0, "source_hash": "da25b59f056039bf702c28fd68efdd6c112751c12d16be615c750c62038e235d", "categorized_nodes": 394}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
428
c
// // YGXStatusBarHUD.h // 状态栏指示器01 // // Created by wolf -yuan on 16/8/19. // Copyright © 2016年 com.yuan. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> @interface YGXStatusBarHUD : NSObject + (void)showSuccess:(NSString *)msg; + (void)showError:(NSString *)msg; + (void)showLo...
25.82
17
(translation_unit) "//\n// YGXStatusBarHUD.h\n// 状态栏指示器01\n//\n// Created by wolf -yuan on 16/8/19.\n// Copyright © 2016年 com.yuan. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n#import <UIKit/UIKit.h>\n\n@interface YGXStatusBarHUD : NSObject\n+ (void)showSuccess:(NSString *)msg;\n+ (void)showErr...
138
17
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 25.82, "nodes": 87, "errors": 0, "source_hash": "d629e3383595f947faaaec611a6d18fb4e948a13f0618929c929aba286abd0c7", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "on/Founda...
429
c
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #ifndef offsetof #define offsetof(type, slot) ((int) ((char *) &(((type *) 0)->slot))) #endif #define sizeofslot(type, slot) (sizeof(((type *) 0)->slot)) #define stringify(x) #x #define indirect_stringify(x) stringify(x) #define SIGNEDP(x)...
30.21
42
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <stdint.h>\n#include <string.h>\n\n#ifndef offsetof\n#define offsetof(type, slot) ((int) ((char *) &(((type *) 0)->slot)))\n#endif\n#define sizeofslot(type, slot) (sizeof(((type *) 0)->slot))\n#define stringify(x) #x\n#define indirect_stringify(x) st...
394
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 30.21, "nodes": 222, "errors": 0, "source_hash": "53ef9200458c027037a0b93f8ea84cbdc1af306d934917ea13d051b929c795b4", "categorized_nodes": 148}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
430
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @class QQDynamicSearchTabBar; @protocol QQDynamicSearchTabBarDelegate <NSObject> @optional - (void)tabBar:(QQDynamicSearchTabBar *)arg1 didSelectIndex:(long long)a...
28.64
11
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n@class QQDynamicSearchTabBar;\n\n@protocol QQDynamicSearchTabBarDelegate <NSObject>\n\n@optional\n- (void)tabBar:(QQDynamicSearchTabBar *...
56
9
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 28.64, "nodes": 35, "errors": 0, "source_hash": "80a7590f9da561552f869b7d3310768587081b9d2bf2c2c67343ebcf28997d6b", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
431
c
// // CTMediator+CMoeMediatorModuleDetailActions.h // CMoeDetailCategoryModule_Example // // Created by drore on 2018/7/1. // Copyright © 2018年 <EMAIL>. All rights reserved. // #import <CTMediator/CTMediator.h> @interface CTMediator (CMoeMediatorModuleDetailActions) - (UIViewController *)CTMediator_viewControlle...
29.36
11
(translation_unit) "//\n// CTMediator+CMoeMediatorModuleDetailActions.h\n// CMoeDetailCategoryModule_Example\n//\n// Created by drore on 2018/7/1.\n// Copyright © 2018年 <EMAIL>. All rights reserved.\n//\n\n#import <CTMediator/CTMediator.h>\n\n@interface CTMediator (CMoeMediatorModuleDetailActions)\n\n- (UIViewContr...
37
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 29.36, "nodes": 21, "errors": 0, "source_hash": "75c9ceab7469a8027741527401887c891c58d0ef937343187ae991a87017b4ff", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <CTM...
432
c
// // SKWPeerOption.h // SKWPeer // #ifndef SKWPeer_SKWPeerOption_h #define SKWPeer_SKWPeerOption_h #import <Foundation/Foundation.h> /** Peer type */ typedef NS_ENUM(NSUInteger, SKWPeerTypeEnum) { /// skyway.io SKW_PEER_TYPE_SKYWAY = 0, /// peerjs.com SKW_PEER_TYPE_PEERJS = 1, }; /** Debug output level ...
28.2
61
(translation_unit) "//\n// SKWPeerOption.h\n// SKWPeer\n//\n\n#ifndef SKWPeer_SKWPeerOption_h\n#define SKWPeer_SKWPeerOption_h\n\n\n#import <Foundation/Foundation.h>\n\n/**\n Peer type\n */\ntypedef NS_ENUM(NSUInteger, SKWPeerTypeEnum)\n{\n /// skyway.io\n SKW_PEER_TYPE_SKYWAY = 0,\n /// peerjs.com\n SKW_PEER_TYPE_PE...
271
41
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 28.2, "nodes": 189, "errors": 0, "source_hash": "1028435a416674a4dafbbef0336e07b374f5107fb3cd816f5bd699d52b7409f1", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
433
c
#import "MOBProjection.h" @interface MOBProjectionEPSG4810 : MOBProjection @end
25.67
3
(translation_unit) "#import "MOBProjection.h"\n\n@interface MOBProjectionEPSG4810 : MOBProjection\n\n@end\n" (preproc_call) "#import "MOBProjection.h"\n" (preproc_directive) "#import" (preproc_arg) ""MOBProjection.h"" (ERROR) "@interface MOBProjectionEPSG4810 : MOBProjection\n\n@end" (ERROR) "@" (ty...
12
3
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 25.67, "nodes": 9, "errors": 0, "source_hash": "a382f2d5f804dec4449b077dd8345cf55081c82a00b04c29320cf55f05f3b186", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"MO...
434
c
/* * $ Copyright Cypress Semiconductor $ */ /** @file * * Bluetooth Management (BTM) Application Programming Interface * * The BTM consists of several management entities: * 1. Device Control - controls the local device * 2. Device Discovery - manages inquiries, discover database * 3. ACL Chann...
36.49
63
(translation_unit) "/*\n * $ Copyright Cypress Semiconductor $\n */\n\n/** @file\n *\n * Bluetooth Management (BTM) Application Programming Interface\n *\n * The BTM consists of several management entities:\n * 1. Device Control - controls the local device\n * 2. Device Discovery - manages inquiries, discover...
69
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 36.49, "nodes": 41, "errors": 0, "source_hash": "85079074647807a03d57af988977710f2a1d40b823ad922f81311a124aff55da", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
435
c
// // Created by Grant on 9/26/19. // #pragma once #ifndef __MASON_LOG_H #define __MASON_LOG_H #include <sstream> #include <iomanip> #include <iostream> #define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_TRACE #include "mason/mason.h" #ifdef MASON_ENABLE_LOGGING #include "spdlog/spdlog.h" #include "spdlog/sinks/stdout_col...
23.94
33
(translation_unit) "//\n// Created by Grant on 9/26/19.\n//\n\n#pragma once\n\n#ifndef __MASON_LOG_H\n#define __MASON_LOG_H\n\n#include <sstream>\n#include <iomanip>\n#include <iostream>\n\n#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_TRACE\n\n#include "mason/mason.h"\n\n#ifdef MASON_ENABLE_LOGGING\n\n#include "spdlog/spdl...
141
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 23.94, "nodes": 100, "errors": 0, "source_hash": "245e6373669c8a4dbaaa684c89616121f8cdf6b854e628dec2b38afb712027ce", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
436
c
#define SML_H //************************************************ // sml.h // CSCI 241 Assignment 4 // // Created by your-name (your-z-ID). //************************************************ // Input / Output Operations #define READ 11 #define WRITE 12 // Store / Load Operations #define STORE...
19.37
30
(translation_unit) "#define SML_H \n \n//************************************************ \n// sml.h \n// CSCI 241 Assignment 4 \n// \n// Created by your-name (your-z-ID). \n//************************************************ \n \n// Input / Output Operations \n#define READ 11 \n#define WRITE 12 \n \n// Store...
64
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 19.37, "nodes": 53, "errors": 0, "source_hash": "3f498cd44eaf547b3df017ac7c24b3d816ecf47ab03e40b5da5e4dbdca9cc065", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define SM...
437
c
#define MPICH_SKIP_MPICXX 1 #define OMPI_SKIP_MPICXX 1 #include "mpi4py.MPI.c"
26.33
3
(translation_unit) "#define MPICH_SKIP_MPICXX 1 \n#define OMPI_SKIP_MPICXX 1 \n#include "mpi4py.MPI.c" \n" (preproc_def) "#define MPICH_SKIP_MPICXX 1 \n" (#define) "#define" (identifier) "MPICH_SKIP_MPICXX" (preproc_arg) "1 " (preproc_def) "#define OMPI_SKIP_MPICXX 1 \n" (#define) "#define" (i...
15
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 26.33, "nodes": 11, "errors": 0, "source_hash": "b877e89c18a3105596fbae5084dfa8e6e881f89cf33bd87b0c79d92d1368d23b", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define MPIC...
438
c
/* * util.h * * Copyright (C) <NAME> * See LICENSE for details. * * Export utility functions and macros. * See the file RATIONALE for a short explanation of why this module was written. * * Reviewed 2001-07-23 * */ #ifndef PyOpenSSL_UTIL_H_ #define PyOpenSSL_UTIL_H_ #include <Python.h> #include <openssl/err...
28.52
124
(translation_unit) "/*\n * util.h\n *\n * Copyright (C) <NAME>\n * See LICENSE for details.\n *\n * Export utility functions and macros.\n * See the file RATIONALE for a short explanation of why this module was written.\n *\n * Reviewed 2001-07-23\n *\n */\n#ifndef PyOpenSSL_UTIL_H_\n#define PyOpenSSL_UTIL_H_\n\n#inclu...
666
0
{"language": "c", "success": true, "metadata": {"lines": 124, "avg_line_length": 28.52, "nodes": 418, "errors": 0, "source_hash": "a213cb2e9d01c093fa368b431a026b7e2130d7b63343a8d330b299ad5decc6c3", "categorized_nodes": 274}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
439
c
// // Created by lasagnaphil on 10/28/18. // #ifndef ALTMATH_MAT4_H #define ALTMATH_MAT4_H #include "vec4.h" template <typename T> struct mat4 { union { T m[4][4]; T p[16]; }; static mat4 identity() { mat4 m = {}; m.p[0] = m.p[5] = m.p[10] = m.p[15] = 1; return m;...
33.59
254
(translation_unit) "//\n// Created by lasagnaphil on 10/28/18.\n//\n\n#ifndef ALTMATH_MAT4_H\n#define ALTMATH_MAT4_H\n\n#include "vec4.h"\n\ntemplate <typename T>\nstruct mat4 {\n union {\n T m[4][4];\n T p[16];\n };\n\n static mat4 identity() {\n mat4 m = {};\n m.p[0] = m.p[5] = m....
5,478
65
{"language": "c", "success": true, "metadata": {"lines": 254, "avg_line_length": 33.59, "nodes": 3801, "errors": 0, "source_hash": "8248902c401a5d538b6bc5186af214e884857fb664aee2cddc37ff84f349d0eb", "categorized_nodes": 3084}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#if...
440
c
/* * Copyright (c) 2021, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <assert.h> #include <platform_def.h> #include <plat/arm/common/plat_arm.h> #include <plat/common/platform.h> #include <drivers/arm/sbsa.h> #if SPM_MM #include <services/spm_mm_partit...
25.42
148
(translation_unit) "/*\n * Copyright (c) 2021, ARM Limited and Contributors. All rights reserved.\n *\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n#include <assert.h>\n\n#include <platform_def.h>\n\n#include <plat/arm/common/plat_arm.h>\n#include <plat/common/platform.h>\n#include <drivers/arm/sbsa.h>\n\n#if SPM_M...
781
11
{"language": "c", "success": true, "metadata": {"lines": 148, "avg_line_length": 25.42, "nodes": 491, "errors": 0, "source_hash": "4e7625cbf25fe3936de857c1f346862e66f2c039e37b744724a51fa29d0b258a", "categorized_nodes": 291}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
441
c
#pragma once #include <vector> #define NUM_COLOUR_COMPONENTS 3; /* k-means is a clustering algorithm designed to group data points into clusters of similar points, and return the averaged "center" value of each cluster. The algorithm runs over the data set multiple times, assigning points to the nearest center, and ...
30.58
186
(translation_unit) "#pragma once\n\n#include <vector>\n\n#define NUM_COLOUR_COMPONENTS 3;\n\n/*\nk-means is a clustering algorithm designed to group data points into clusters of similar points,\nand return the averaged "center" value of each cluster. The algorithm runs over the data set\nmultiple times, assigning point...
1,640
15
{"language": "c", "success": true, "metadata": {"lines": 186, "avg_line_length": 30.58, "nodes": 1013, "errors": 0, "source_hash": "9cd49cae46f0fa3de24a703980fef40ba346c450136b4b2c572b2d33b2100afa", "categorized_nodes": 719}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#prag...
442
c
/* firehorse by <NAME> & <NAME>, Aleph Research */ #include "fh.h" /* * Copies all pages in the FireHorse context struct to their specified destanation */ STACKHOOK(pagecopy) { int i = 0; firehorse *fh = getcontext(); pcopy *p = fh->pc; page *pages = (page *)(&(p->npages)+1); D("pagecopy: n...
20.03
35
(translation_unit) "/*\nfirehorse\nby <NAME> & <NAME>, Aleph Research\n*/\n\n#include "fh.h"\n\n\n/*\n * Copies all pages in the FireHorse context struct to their specified destanation\n */\nSTACKHOOK(pagecopy)\n{\n int i = 0;\n \n firehorse *fh = getcontext();\n pcopy *p = fh->pc;\n\n \n page *pages = (page ...
245
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 20.03, "nodes": 146, "errors": 0, "source_hash": "3df199c0c660aefb75266f5084658df38be11615087ac33835cc8afaad83eb5f", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
443
c
/* // Licensed to DynamoBI Corporation (DynamoBI) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. DynamoBI licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may ...
36.58
53
(translation_unit) "/*\n// Licensed to DynamoBI Corporation (DynamoBI) under one\n// or more contributor license agreements. See the NOTICE file\n// distributed with this work for additional information\n// regarding copyright ownership. DynamoBI licenses this file\n// to you under the Apache License, Version 2.0 (th...
147
12
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 36.58, "nodes": 89, "errors": 0, "source_hash": "61a4d0bcdaf7059542d6f8f9b41d2b9cd88060e3c51d906291ccaebe05f0fff0", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
444
c
/* * Custom data loader module for node classification. */ template<typename T> void print_vector_of_pairs(std::vector<std::pair<T,T>> in_vec) { for(auto it : in_vec) std::cout << it.first << "," << it.second << "\n"; } template<typename T> void print_vector(std::vector<T> in_vec) { for(auto it :...
26.89
109
(translation_unit) "/*\n * Custom data loader module for node classification.\n */\n\ntemplate<typename T>\nvoid print_vector_of_pairs(std::vector<std::pair<T,T>> in_vec) \n{\n for(auto it : in_vec)\n std::cout << it.first << "," << it.second << "\n";\n}\n\ntemplate<typename T>\nvoid \nprint_vector(std::vecto...
862
53
{"language": "c", "success": true, "metadata": {"lines": 109, "avg_line_length": 26.89, "nodes": 519, "errors": 0, "source_hash": "ceb94623c96cc3e6bf06caa9e5f3fd2350cf72f98802307f33ea4832ebef8e03", "categorized_nodes": 348}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "template<type...
445
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/RelevanceEngine.framework/RelevanceEngine */ @interface _REConcreteFeature : REFeature { unsigned long long _featureType; NSString * _name; } - (void).cxx_destruct; - (long long)_bitCount; - (id)_rootFeatures; - (id)copyWithZone:(str...
28.56
18
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/RelevanceEngine.framework/RelevanceEngine\n */\n\n@interface _REConcreteFeature : REFeature {\n unsigned long long _featureType;\n NSString * _name;\n}\n\n- (void).cxx_destruct;\n- (long long)_bitCount;\n- (id)_rootFe...
177
11
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 28.56, "nodes": 109, "errors": 0, "source_hash": "fc40db09908a0d6c6c175b55375656ad49028d3a06eb1a17c93209d8f9489dbf", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": n...
446
c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2022, Intel Corporation */ /* * messages-ping-pong-common.c -- a common definitions for the 08 example */ #include <librpma.h> #include <inttypes.h> #include "messages-ping-pong-common.h" /* the maximum number of completions expected (1 of send + 1 of receive)...
27.94
62
(translation_unit) "// SPDX-License-Identifier: BSD-3-Clause\n/* Copyright 2022, Intel Corporation */\n\n/*\n * messages-ping-pong-common.c -- a common definitions for the 08 example\n */\n\n#include <librpma.h>\n#include <inttypes.h>\n\n#include "messages-ping-pong-common.h"\n\n/* the maximum number of completions exp...
481
0
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 27.94, "nodes": 290, "errors": 0, "source_hash": "6fc2cec1afa09b97d197f551e6329ab88e2b8faa2e7614fc292db303774d2919", "categorized_nodes": 208}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
447
c
/*RenDev#2616 File Selector Tool Copyright (C) 2021 RenDev Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. Permission is also granted to not credit the author in any way as long as you do not take credit for this piece of software....
33.91
129
(translation_unit) "/*RenDev#2616 File Selector Tool\n Copyright (C) 2021 RenDev\n\n Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.\n Permission is also granted to not credit the author in any way as long as you do not take credit\n fo...
1,190
62
{"language": "c", "success": true, "metadata": {"lines": 129, "avg_line_length": 33.91, "nodes": 840, "errors": 0, "source_hash": "3c9bb8c7bb0aa26fd79e969844258952d18630dad4764ac6e4b8e6f1ffe8b73c", "categorized_nodes": 544}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
448
c
#pragma once #include <string> #include <map> #include <SDL2/SDL.h> const std::string KEYBOARD_KEY_UP{"up"}; const std::string KEYBOARD_KEY_DOWN{"down"}; const std::string KEYBOARD_KEY_LEFT{"left"}; const std::string KEYBOARD_KEY_RIGHT{"right"}; const std::string KEYBOARD_KEY_SPACE{"space"}; const std::string KEYBOA...
33.29
97
(ERROR) "#pragma once\n\n#include <string>\n#include <map>\n\n#include <SDL2/SDL.h>\n\nconst std::string KEYBOARD_KEY_UP{"up"};\nconst std::string KEYBOARD_KEY_DOWN{"down"};\nconst std::string KEYBOARD_KEY_LEFT{"left"};\nconst std::string KEYBOARD_KEY_RIGHT{"right"};\nconst std::string KEYBOARD_KEY_SPACE{"space"};\ncon...
905
23
{"language": "c", "success": true, "metadata": {"lines": 97, "avg_line_length": 33.29, "nodes": 373, "errors": 0, "source_hash": "3e451756c28f83feebf9d98368219600719e754fba1eb39cbc375c6d073a52c4", "categorized_nodes": 243}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#pragma once\n\n#include ...
449
c
#include <clog.h> #undef TRACEPOINT_PROVIDER #define TRACEPOINT_PROVIDER CLOG_SEND_BUFFER_C #undef TRACEPOINT_PROBE_DYNAMIC_LINKAGE #define TRACEPOINT_PROBE_DYNAMIC_LINKAGE #undef TRACEPOINT_INCLUDE #define TRACEPOINT_INCLUDE "send_buffer.c.clog.h.lttng.h" #if !defined(DEF_CLOG_SEND_BUFFER_C) || defined(TRACEPOINT_HEA...
36.92
65
(translation_unit) "#include <clog.h>\n#undef TRACEPOINT_PROVIDER\n#define TRACEPOINT_PROVIDER CLOG_SEND_BUFFER_C\n#undef TRACEPOINT_PROBE_DYNAMIC_LINKAGE\n#define TRACEPOINT_PROBE_DYNAMIC_LINKAGE\n#undef TRACEPOINT_INCLUDE\n#define TRACEPOINT_INCLUDE "send_buffer.c.clog.h.lttng.h"\n#if !defined(DEF_CLOG_SEND_BUFFER_C...
164
0
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 36.92, "nodes": 127, "errors": 0, "source_hash": "fb2b25ef9cdd030c1e42909e84161067e52a1885d862972f5545e93e7698c4d9", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
450
c
#ifndef __SDL_TIMER_H__ #define __SDL_TIMER_H__ #include <SDL2/SDL.h> // fuente: http://lazyfoo.net/tutorials/SDL/23_advanced_timers/index.php class Timer { private: //The clock time when the timer started int mStartTicks; //The ticks stored when the timer was paused int mPausedTicks; //The t...
22.28
29
(translation_unit) "#ifndef __SDL_TIMER_H__\n#define __SDL_TIMER_H__\n\n#include <SDL2/SDL.h>\n\n// fuente: http://lazyfoo.net/tutorials/SDL/23_advanced_timers/index.php\n\nclass Timer {\n private:\n //The clock time when the timer started\n int mStartTicks;\n\n //The ticks stored when the timer was paused\n ...
121
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 22.28, "nodes": 69, "errors": 0, "source_hash": "1660d2b95aedf1222d45ccde1c388d5816004cfd446b2430febe2a1c1637ca35", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
451
c
// tiemuzhen.c // Last Modified by winder on May. 25 2001 inherit NPC; void create() { set_name("鐵木真",({"tie muzhen","tie","muzhen"})); set("gender","男性"); set("long","鐵木真是草原上的英雄。\n"); set("combat_exp", 300000); set("nickle","成吉思汗"); set("age", 35); set("qi", 200...
28.33
27
(translation_unit) "// tiemuzhen.c\n// Last Modified by winder on May. 25 2001\n\ninherit NPC;\nvoid create()\n{\n set_name("鐵木真",({"tie muzhen","tie","muzhen"}));\n set("gender","男性");\n set("long","鐵木真是草原上的英雄。\n");\n set("combat_exp", 300000);\n set("nickle","成吉思汗");\n set("a...
327
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 28.33, "nodes": 122, "errors": 0, "source_hash": "6ec074212af7b5d9906e95d948af58e3ccbcecaed8d770f99a3abef0746b0d6e", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "inherit N...
452
c
/*** * * Copyright (c) 1996-2002, Valve LLC. All rights reserved. * * This product contains software technology licensed from Id * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. * All Rights Reserved. * * Use, distribution, and modification of this source code and/or resulting * obje...
33.67
51
(translation_unit) "/***\n*\n* Copyright (c) 1996-2002, Valve LLC. All rights reserved.\n* \n* This product contains software technology licensed from Id \n* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. \n* All Rights Reserved.\n*\n* Use, distribution, and modification of this source co...
402
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 33.67, "nodes": 296, "errors": 0, "source_hash": "b1546e1fd061dffca181df7781bcdb7c93f34c8dd639b613c93074deb7fbd5b0", "categorized_nodes": 145}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defi...
453
c
/* * Copyright (c) 2003, Intel Corporation. All rights reserved. * Copyright (c) 2013, <NAME> <<EMAIL>> * * Created by: salwan.searty REMOVE-THIS AT intel DOT com * This file is licensed under the GPL license. For the full content * of this license, see the COPYING file at the top level of this * source tree. ...
24.18
40
(translation_unit) "/*\n * Copyright (c) 2003, Intel Corporation. All rights reserved.\n * Copyright (c) 2013, <NAME> <<EMAIL>>\n *\n * Created by: salwan.searty REMOVE-THIS AT intel DOT com\n * This file is licensed under the GPL license. For the full content\n * of this license, see the COPYING file at the top leve...
204
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 24.18, "nodes": 115, "errors": 0, "source_hash": "ebc9267e85cfd65c559065eb36824a6ebc0a51979f98b9be2563e03db8df39cf", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
454
c
// Copyright (c) 2011 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 PPAPI_SHARED_IMPL_FILE_TYPE_CONVERSION_H_ #define PPAPI_SHARED_IMPL_FILE_TYPE_CONVERSION_H_ #include "base/platform_file.h" #include "ppapi/c...
41.16
25
(translation_unit) "// Copyright (c) 2011 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 PPAPI_SHARED_IMPL_FILE_TYPE_CONVERSION_H_\n#define PPAPI_SHARED_IMPL_FILE_TYPE_CONVERSION_H_\n\n#include "base/platfor...
118
5
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 41.16, "nodes": 72, "errors": 0, "source_hash": "a35175e157207397336aede63141481ad5beac18dd1c4ba9f0e55a6039728342", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
455
c
// // EchatCommon.h // EchatCommon // // Created by mac on 2018/11/14. // Copyright © 2018年 mac. All rights reserved. // #import <UIKit/UIKit.h> #import "Echat_LocationVC.h" //! Project version number for EchatCommon. FOUNDATION_EXPORT double EchatCommonVersionNumber; //! Project version string for EchatCommon. F...
36.14
14
(translation_unit) "//\n// EchatCommon.h\n// EchatCommon\n//\n// Created by mac on 2018/11/14.\n// Copyright © 2018年 mac. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "Echat_LocationVC.h"\n//! Project version number for EchatCommon.\nFOUNDATION_EXPORT double EchatCommonVersionNumber;\n\n//! Project ...
36
1
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 36.14, "nodes": 19, "errors": 0, "source_hash": "1c1858c9852dd2d1ff7010259ff62b1feb4662d6d8d99a963a7b2049ccf77bc2", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
456
c
// Copyright (c) 2016-present, Rockset, Inc. All rights reserved. // #pragma once #ifdef USE_AWS #include <aws/core/Aws.h> namespace rocksdb { inline Aws::String ToAwsString(const std::string& s) { return Aws::String(s.data(), s.size()); } } // namepace rocksdb #endif /* USE_AWS */
25.18
11
(translation_unit) "// Copyright (c) 2016-present, Rockset, Inc. All rights reserved.\n//\n#pragma once\n#ifdef USE_AWS\n\n#include <aws/core/Aws.h>\n\nnamespace rocksdb {\ninline Aws::String ToAwsString(const std::string& s) {\n return Aws::String(s.data(), s.size());\n}\n\n} // namepace rocksdb\n\n#endif /* USE_A...
76
3
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 25.18, "nodes": 43, "errors": 0, "source_hash": "51c3ba04033025297e11a8843b406a9ebb8fdf3dcc5cebc28bbdb45e03cf0b7c", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
457
c
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/s3-crt/S3Crt_EXPORTS.h> namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace S3Crt { namespace Model { /*...
24.94
36
(translation_unit) "*\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0.\n */\n\n#pragma once\n#include <aws/s3-crt/S3Crt_EXPORTS.h>\n\nnamespace Aws\n{\nnamespace Utils\n{\nnamespace Xml\n{\n class XmlNode;\n} // namespace Xml\n} // namespace Utils\nnamespa...
148
8
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 24.94, "nodes": 81, "errors": 0, "source_hash": "01227f3a6db17e4a75aff446f1600bc12833ab1b67956e78b526f3186d56bc1b", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma onc...
458
c
// // ViewController.h // DKTemplate // // Created by bill on 2017/11/29. // Copyright © 2017年 bill. All rights reserved. // #import <UIKit/UIKit.h> #import "BaseViewController.h" @interface ViewController : BaseViewController @end
18.75
12
(translation_unit) "//\n// ViewController.h\n// DKTemplate\n//\n// Created by bill on 2017/11/29.\n// Copyright © 2017年 bill. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "BaseViewController.h"\n\n@interface ViewController : BaseViewController\n\n\n@end\n\n" (comment) "//" (comment) "// ViewCon...
25
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 18.75, "nodes": 15, "errors": 0, "source_hash": "03e3c9589e3a933d123ccc12a66e682945cb1a3b1fbbfee43721ef2029ab5a08", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKi...
459
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "UIView.h" @class NSString, QQVipDanmuColorModel, UIImageView; @interface QQVipDanmakuColorView : UIView { UIImageView *_lockView; _Bool _isSelected; _Bool _canUsed;...
38.38
26
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "UIView.h"\n\n@class NSString, QQVipDanmuColorModel, UIImageView;\n\n@interface QQVipDanmakuColorView : UIView\n{\n UIImageView *_lockView;\n _Bool...
215
23
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 38.38, "nodes": 139, "errors": 0, "source_hash": "1bcb74d29db804ac36e2999c8af7938d96b61ab1993cef1390eaf94161c5daaa", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
460
c
/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A P...
27.98
95
(translation_unit) "/*\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License version 2.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANT...
515
0
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 27.98, "nodes": 284, "errors": 0, "source_hash": "6646ac0d5449c1db73eb81b65d3804bacd615fb182fb1d830d622ca589bb1338", "categorized_nodes": 212}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ...
461
c
#include<stdio.h> int main() { char oper; double num1,num2; printf("Dwse arithmo praji arithmo\n"); scanf("%lf %c %lf", &num1, &oper, &num2); switch(oper) { case '+': printf("apotelesma = %.2lf", num1 + num2); break; case '-': printf("apotelesma = %.2lf", nu...
23.77
30
(translation_unit) "#include<stdio.h> \nint main() \n{ \n char oper; \n double num1,num2; \n printf("Dwse arithmo praji arithmo\n"); \n scanf("%lf %c %lf", &num1, &oper, &num2); \n switch(oper) \n { \n case '+': \n printf("apotelesma = %.2lf", num1 + num2); \n break; \n case '-': \n ...
213
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 23.77, "nodes": 117, "errors": 0, "source_hash": "a2931bd2284a17d484085f7e29f2298e175c86ae6ee006679a8bdbc003d6718d", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
462
c
#ifndef MATRIXGFX_H #define MATRIXGFX_H #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <time.h> #include <led-matrix-c.h> struct AnimationTimer { clock_t delayTicks; clock_t startTime; }; struct Anim { void (*init)(); int (*advance)(); void (*draw)(struct LedCanvas *); }; void initT...
26.93
99
(translation_unit) "#ifndef MATRIXGFX_H\n#define MATRIXGFX_H\n\n#include <stdbool.h>\n#include <stdint.h>\n#include <stdio.h>\n#include <time.h>\n\n#include <led-matrix-c.h>\n\nstruct AnimationTimer {\n clock_t delayTicks;\n clock_t startTime;\n};\n\nstruct Anim {\n void (*init)();\n int (*advance)();\n void (*dra...
854
0
{"language": "c", "success": true, "metadata": {"lines": 99, "avg_line_length": 26.93, "nodes": 657, "errors": 0, "source_hash": "686b4f4a71b7ae92185047f641b063a866b259d1e1bd1156046ad8163586b149", "categorized_nodes": 439}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
463
c
#include <stdio.h> #ifdef GFXLIB_ALLEGRO # ifdef USESDL # include <SDL.h> # include "sdl_allegro.h" # else # include <allegro.h> # endif #endif #include "widget.h" void wdgst_default() { // Sets default style int bg,tx,hl,sh; // bg=makeacol(184,184,224,255); // tx=makeacol(64,64,64,255); // hl=makeacol(...
23.55
199
(translation_unit) "#include <stdio.h>\n#ifdef GFXLIB_ALLEGRO\n# ifdef USESDL\n# include <SDL.h>\n# include "sdl_allegro.h"\n# else\n# include <allegro.h>\n# endif\n#endif\n#include "widget.h"\n\nvoid wdgst_default() {\n // Sets default style\n int bg,tx,hl,sh;\n// bg=makeacol(184,184,224,255);\n// tx=makeac...
2,027
6
{"language": "c", "success": true, "metadata": {"lines": 199, "avg_line_length": 23.55, "nodes": 1269, "errors": 0, "source_hash": "00e53f1fe16e4aeda9f4cb9c492c67f7e62ff3a0d3ad52d5881407407ad4d4e5", "categorized_nodes": 1004}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
464
c
#pragma once #include <LibCore/CLock.h> #include <AK/Badge.h> #include <AK/HashMap.h> #include <AK/OwnPtr.h> #include <AK/Vector.h> #include <AK/WeakPtr.h> #include <sys/select.h> #include <time.h> class CEvent; class CObject; class CNotifier; class CEventLoop { public: CEventLoop(); virtual ~CEventLoop(); ...
31.07
59
(translation_unit) "#pragma once\n\n#include <LibCore/CLock.h>\n#include <AK/Badge.h>\n#include <AK/HashMap.h>\n#include <AK/OwnPtr.h>\n#include <AK/Vector.h>\n#include <AK/WeakPtr.h>\n#include <sys/select.h>\n#include <time.h>\n\nclass CEvent;\nclass CObject;\nclass CNotifier;\n\nclass CEventLoop {\npublic:\n CEven...
532
32
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 31.07, "nodes": 314, "errors": 0, "source_hash": "5e1039ab9a9d158e8b785c8eb1ff738c35ab0bf79372e795b803b9b432ffa7ac", "categorized_nodes": 214}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
465
c
/// @file drawing/drawing2d/matrix_order.h #ifndef _matrix_order_h_ #define _matrix_order_h_ namespace System { namespace Drawing { namespace Drawing2D { /// Specifies the order of matrix transform operations. enum class MatrixOrder { /// The new operation is applied before the old operation. P...
32.38
13
(translation_unit) "/// @file drawing/drawing2d/matrix_order.h\n#ifndef _matrix_order_h_\n#define _matrix_order_h_\n\nnamespace System { namespace Drawing { namespace Drawing2D {\n /// Specifies the order of matrix transform operations.\n enum class MatrixOrder {\n /// The new operation is applied before t...
52
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 32.38, "nodes": 29, "errors": 0, "source_hash": "8a3473d27ae8abca0b4be16f96672066b96d9a19887f3b65e8d964c455cde9ea", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
466
c
#include <stdlib.h> #include <stddef.h> #include <stdint.h> #include <string.h> #include "sp_mem.h" static void *(*_sp_realloc)(void *ptr, size_t size) = (void *(*)(void*, size_t))realloc; void *sp_mem_init(sp_allocator_t alloc) { void *ptr = _sp_realloc; if (alloc) _sp_realloc = alloc; return ptr; } void *sp...
21.6
30
(translation_unit) "#include <stdlib.h>\n#include <stddef.h>\n#include <stdint.h>\n#include <string.h>\n\n#include "sp_mem.h"\n\nstatic void *(*_sp_realloc)(void *ptr, size_t size) =\n (void *(*)(void*, size_t))realloc;\n\nvoid *sp_mem_init(sp_allocator_t alloc) {\n void *ptr = _sp_realloc;\n if (alloc)\n _sp_realloc ...
275
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 21.6, "nodes": 188, "errors": 0, "source_hash": "4adcbc6f8984ff6f7374eb41bb351b6850451277ed1a7633471431b285b5e798", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
467
c
#pragma once #include "Button.h" //Size : 180 class BlankButton : public Button { public: BlankButton(int); BlankButton(int, int, int, int, int); virtual ~BlankButton(); };
17.27
11
(translation_unit) "#pragma once \n \n#include "Button.h" \n \n//Size : 180 \nclass BlankButton : public Button { \n public: \n BlankButton(int); \n BlankButton(int, int, int, int, int); \n virtual ~BlankButton(); \n};" (preproc_call) "#pragma once \n" (preproc_directive) "#pragma" (preproc_arg) "...
60
2
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 17.27, "nodes": 30, "errors": 0, "source_hash": "4c36bb4fdb243062fdd28373136faeec32a67449c9bdb2d47b62487ed2bae26b", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
468
c
// // MDRecordedAction.h // Midas // // Created by <NAME> on 28/06/16. // Copyright © 2016 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import "MDCoding.h" @interface MDRecordedAction : NSObject<MDCoding> -(instancetype)initWithViewController:(NSString*)viewController selector:(NSString*)s...
36.33
18
(translation_unit) "//\n// MDRecordedAction.h\n// Midas\n//\n// Created by <NAME> on 28/06/16.\n// Copyright © 2016 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n#import "MDCoding.h"\n\n@interface MDRecordedAction : NSObject<MDCoding>\n\n-(instancetype)initWithViewController:(NSString*)vi...
164
18
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 36.33, "nodes": 97, "errors": 0, "source_hash": "0bc99cd2a021d38732866d3085e9936f42cadf00241b048f6753940c6ee8806e", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
469
c
#pragma once /// /// /// namespace lucid { namespace units { /// Quantity /// /// an aspect of something to be measured template<int TI ,int LE, int MA, int TE, int CU, int AM, int IN> struct Quantity { enum { TIME = TI }; enum { LENGTH = LE }; enum { MASS = MA }; enum { TEMPERATURE =...
33.94
63
(translation_unit) "#pragma once\n\n///\n///\n///\n\nnamespace lucid {\nnamespace units {\n\n /// Quantity\n ///\n /// an aspect of something to be measured\n template<int TI ,int LE, int MA, int TE, int CU, int AM, int IN> struct Quantity\n {\n enum { TIME = TI };\n enum { LENGTH = LE };\n enum { ...
994
38
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 33.94, "nodes": 694, "errors": 0, "source_hash": "dfaad3b31ec62fd06ae482b0a992b67f9aa8f491e5011056773062b1fc4bd3ec", "categorized_nodes": 555}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
470
c
// // Common.h // BWDemo // // Created by wangzhi. on 2020/3/29. // Copyright © 2020 BTStudio. All rights reserved. // #ifndef Common_h #define Common_h #pragma mark - 文件引用 #import "BWConstant.h" #pragma mark - 不同服务器环境的配置 #define URL_HEAD_PRODUCT @"http://www.google.cn" #define URL_HEAD_DEVELOP @"htt...
41.94
34
(translation_unit) "//\n// Common.h\n// BWDemo\n//\n// Created by wangzhi. on 2020/3/29.\n// Copyright © 2020 BTStudio. All rights reserved.\n//\n\n#ifndef Common_h\n#define Common_h\n\n\n#pragma mark - 文件引用\n\n#import "BWConstant.h"\n\n\n#pragma mark - 不同服务器环境的配置\n\n#define URL_HEAD_PRODUCT @"http://www.google...
53
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 41.94, "nodes": 43, "errors": 0, "source_hash": "2c7bf2ac7d7431b781d1d43fe57489d26f650fb478cf705a1a7050e1c16df6ad", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef C...
471
c
#include "stdafx.h" #include <vector> class Exception { private: std::wstring _message; public: Exception(std::wstring const& message); void print(); }; struct ExplorerInfo { std::wstring path; std::wstring item; }; void verify(HRESULT result, std::wstring const& message); #define VERIFY(r) v...
23.9
20
(translation_unit) "#include "stdafx.h"\n#include <vector>\n\nclass Exception \n{\nprivate:\n std::wstring _message;\n\npublic:\n Exception(std::wstring const& message);\n\n void print();\n};\n\nstruct ExplorerInfo\n{\n std::wstring path;\n std::wstring item;\n};\n\nvoid verify(HRESULT result, std::wstri...
130
8
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 23.9, "nodes": 73, "errors": 0, "source_hash": "e5a00e73d69cf76e5f5253d0aeda9421d8efb8ea4aed1efa6dbde8f6fc64c108", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
472
c
#include "bar.h" #include "foo.h" int bar(int x) { return foo(x)-1; }
11.67
6
(translation_unit) "#include "bar.h"\n#include "foo.h"\n\nint bar(int x)\n{\n return foo(x)-1;\n}\n" (preproc_include) "#include "bar.h"\n" (#include) "#include" (string_literal) ""bar.h"" (") """ (string_content) "bar.h" (") """ (preproc_include) "#include "foo.h"\n" (#include) "...
38
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 11.67, "nodes": 22, "errors": 0, "source_hash": "d4e156bf15a6ee3c76c71640235232c7a16e26b311abad053cf7fb2143bf12d1", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
473
c
#ifndef _FW_FILEWATCHERIMPL_H #define _FW_FILEWATCHERIMPL_H #pragma once #include "FileWatcher.h" #define FILEWATCHER_PLATFORM_WIN32 1 #define FILEWATCHER_PLATFORM_LINUX 2 #define FILEWATCHER_PLATFORM_KQUEUE 3 #if defined(_WIN32) # define FILEWATCHER_PLATFORM FILEWATCHER_PLATFORM_WIN32 #elif defined(__APPLE_CC__) ...
35.64
44
(translation_unit) "#ifndef _FW_FILEWATCHERIMPL_H\n#define _FW_FILEWATCHERIMPL_H\n#pragma once\n\n#include "FileWatcher.h"\n\n#define FILEWATCHER_PLATFORM_WIN32 1\n#define FILEWATCHER_PLATFORM_LINUX 2\n#define FILEWATCHER_PLATFORM_KQUEUE 3\n\n#if defined(_WIN32)\n# define FILEWATCHER_PLATFORM FILEWATCHER_PLATFORM_WIN...
270
14
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 35.64, "nodes": 173, "errors": 0, "source_hash": "ff8572f26d5d014491171534a3b609d096d44eddc044b1bbecdcfd1b86771c1e", "categorized_nodes": 104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
474
c
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Linux/PA-RISC Project (http://www.parisc-linux.org/) * * Floating-point emulation code * Copyright (C) 2001 Hewlett-Packard (<NAME>) <<EMAIL>> */ #ifndef _MACHINE_FPU_INCLUDED /* allows multiple inclusion */ #define _MACHINE_FPU_INCLUDED #define PA83_FPU_FLAG...
41.52
27
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0-or-later */\n/*\n * Linux/PA-RISC Project (http://www.parisc-linux.org/)\n *\n * Floating-point emulation code\n * Copyright (C) 2001 Hewlett-Packard (<NAME>) <<EMAIL>>\n */\n\n#ifndef _MACHINE_FPU_INCLUDED /* allows multiple inclusion */\n#define _MACHINE_FPU_IN...
60
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 41.52, "nodes": 51, "errors": 0, "source_hash": "0dd07b0a016b490128a431efa2acd8febb2cdb4c361148fe85cdd720558f7d9f", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
475
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/Home.framework/Home */ @interface _HFCompoundConditionMatch : NSObject { HFCondition * _matchedCondition; NSArray * _matchedPredicates; } @property (nonatomic, retain) HFCondition *matchedCondition; @property (nonatomic, retain) NSArr...
33.81
16
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/Home.framework/Home\n */\n\n@interface _HFCompoundConditionMatch : NSObject {\n HFCondition * _matchedCondition;\n NSArray * _matchedPredicates;\n}\n\n@property (nonatomic, retain) HFCondition *matchedCondition;\n@prop...
149
14
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 33.81, "nodes": 93, "errors": 0, "source_hash": "63f8625a9052cf65056999013f8d1458142c83ce1c7453ed8b9910fb876330ff", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface _HFCo...
476
c
#pragma once #include "Account.h" class Checking : public Account { float m_MinimumBalance; public: using Account::Account; Checking(const std::string &name, float balance, float minbalance); ~Checking(); void Withdraw(float amount)override; float GetMinimumBalance()const; };
23.58
12
(translation_unit) "#pragma once \n#include "Account.h" \nclass Checking : \n public Account { \n float m_MinimumBalance; \npublic: \n using Account::Account; \n Checking(const std::string &name, float balance, float minbalance); \n ~Checking(); \n void Withdraw(float amount)override; \n float GetMinimumBalance()const;...
97
7
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 23.58, "nodes": 54, "errors": 0, "source_hash": "728e9aaeed3a5fb0c468f580f7ae9516d0715d551e9e73704f3bf86ef321175e", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
477
c
#pragma once #define DEFAULT_CLEAR_COLOR { 1.0f, 1.0f, 1.0f } /* Include GLFW implementation class */ #include"GLFW_window.h" #include"GLFW_event.h"
28.8
5
(translation_unit) "#pragma once\n\n#define DEFAULT_CLEAR_COLOR { 1.0f, 1.0f, 1.0f }\n\n/* Include GLFW implementation class */\n#include"GLFW_window.h"\n#include"GLFW_event.h"" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_def) "#define DEFAULT_CLEAR_COLOR { 1....
21
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 28.8, "nodes": 13, "errors": 0, "source_hash": "918759b14b95e6a40a84948d8fe43ef42d5503c2dc16ccf74fba14c3b43bca58", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once...
478
c
// // ZCClassifyViewModel.h // Bango // // Created by zchao on 2019/4/4. // Copyright © 2019 zchao. All rights reserved. // #import "ZCBaseViewModel.h" #import "ZCClassifyModel.h" NS_ASSUME_NONNULL_BEGIN @interface ZCClassifyViewModel : ZCBaseViewModel /** 分类页数据 */ @property(nonatomic, strong) RACCommand *clas...
22.44
18
(translation_unit) "//\n// ZCClassifyViewModel.h\n// Bango\n//\n// Created by zchao on 2019/4/4.\n// Copyright © 2019 zchao. All rights reserved.\n//\n\n#import "ZCBaseViewModel.h"\n#import "ZCClassifyModel.h"\n\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface ZCClassifyViewModel : ZCBaseViewModel\n\n/** 分类页数据 */\n@propert...
71
9
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 22.44, "nodes": 49, "errors": 0, "source_hash": "af219a52306ca6a9b17d50950ca21ba5cc66b187d0f9aa0dc083a2eaf17d63a2", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"...
479
c
/* * ========================= ViewingBox.h ========================== * -- tpr -- * CREATE -- 2019.01.22 * MODIFY -- * ---------------------------------------------------------- * camera.viewingBox * ------...
38.31
81
(ERROR) "/*\n * ========================= ViewingBox.h ==========================\n * -- tpr --\n * CREATE -- 2019.01.22\n * MODIFY -- \n * ----------------------------------------------------------\n * camera.viewi...
409
23
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 38.31, "nodes": 213, "errors": 0, "source_hash": "02d3f78c3b22e569ab38713ca3da68f5d9a32ea3be38cdb4f6f049a36006eb22", "categorized_nodes": 151}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "/*\n * ==================...
480
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/ChatKit.framework/ChatKit */ @interface CKSnapshotUtilities : NSObject + (void)_cacheSnapshotView:(id)arg1 forGUID:(id)arg2; + (void)_saveSnapshot:(id)arg1 url:(id)arg2; + (id)_snapshotAtURL:(id)arg1; + (id)_snapshotViewForGUID:(id)arg1; + (v...
38.18
11
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/ChatKit.framework/ChatKit\n */\n\n@interface CKSnapshotUtilities : NSObject\n\n+ (void)_cacheSnapshotView:(id)arg1 forGUID:(id)arg2;\n+ (void)_saveSnapshot:(id)arg1 url:(id)arg2;\n+ (id)_snapshotAtURL:(id)arg1;\n+ (id)_snaps...
141
13
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 38.18, "nodes": 80, "errors": 0, "source_hash": "c6b8bc88559646f3dbfa0ac138d244c2a2f989f59de662db8784900d5518adb7", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface CKSna...
481
c
/* do_mount.c */ /* should we perform the "mount" command, or should we instead manually inject the first getattr command? see comments in do_mount.c to see how this works. */ #define DO_MOUNT /* NFS mounting parameters */ #define FS_TYPE "nfs" #define FS_DIR "/i" #define FS_FLAGS (MNT_NOSUID | MNT_NOATIME | M...
34.59
22
(translation_unit) "/* do_mount.c */\n\n/* should we perform the "mount" command, or should we\n instead manually inject the first getattr command?\n see comments in do_mount.c to see how this works. */\n#define DO_MOUNT\n\n/* NFS mounting parameters */\n#define FS_TYPE "nfs"\n#define FS_DIR "/i"\n#define FS_FLAGS ...
47
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 34.59, "nodes": 36, "errors": 0, "source_hash": "08ab7cffc7c39ead15440fb2afe4d6efc249ca47b2c6dc1ee46636911ce52485", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define DO...
482
c
#pragma once #include <array> #include <bitset> #include <cpuid.h> #include <cstring> #include <iostream> #include <string> #include <vector> namespace faiss { class InstructionSet { public: static InstructionSet& GetInstance() { static InstructionSet inst; return inst; } private: ...
19.85
331
(ERROR) "#pragma once\n\n#include <array>\n#include <bitset>\n#include <cpuid.h>\n#include <cstring>\n#include <iostream>\n#include <string>\n#include <vector>\n\nnamespace faiss {\n\nclass InstructionSet {\n public:\n static InstructionSet&\n GetInstance() {\n static InstructionSet inst;\n return i...
2,194
30
{"language": "c", "success": true, "metadata": {"lines": 331, "avg_line_length": 19.85, "nodes": 1223, "errors": 0, "source_hash": "11c25f865107a905e88b97fce77156eac3234754046195ea3f3a16422d79d0a4", "categorized_nodes": 913}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#pragma once\n\n#includ...
483
c
// [Fog-Core] // // [License] // MIT, See COPYING file in package // [Guard] #ifndef _FOG_CORE_THREADING_THREAD_H #define _FOG_CORE_THREADING_THREAD_H // [Dependencies] #include <Fog/Core/Global/Global.h> #include <Fog/Core/Kernel/EventLoop.h> #include <Fog/Core/Threading/Atomic.h> #include <Fog/Core/Threading/Thread...
36.81
195
(translation_unit) "// [Fog-Core]\n//\n// [License]\n// MIT, See COPYING file in package\n\n// [Guard]\n#ifndef _FOG_CORE_THREADING_THREAD_H\n#define _FOG_CORE_THREADING_THREAD_H\n\n// [Dependencies]\n#include <Fog/Core/Global/Global.h>\n#include <Fog/Core/Kernel/EventLoop.h>\n#include <Fog/Core/Threading/Atomic.h>\n#i...
593
22
{"language": "c", "success": true, "metadata": {"lines": 195, "avg_line_length": 36.81, "nodes": 296, "errors": 0, "source_hash": "1f9ca35eb7c3584b45e1cef284371657bbab33d63e16c29f4c860db1444dc736", "categorized_nodes": 211}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
484
c
// // DepartmentService.h // hrm // // Created by on 4/18/16. // Copyright © 2016 Tuan_Quang. All rights reserved. // #import <Foundation/Foundation.h> #import "DepartmentDTO.h" @interface DepartmentService : NSObject - (NSMutableArray *)getAllDepartment; - (void)addDepartment: (DepartmentDTO *) department; @e...
23.54
13
(translation_unit) "//\n// DepartmentService.h\n// hrm\n//\n// Created by on 4/18/16.\n// Copyright © 2016 Tuan_Quang. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "DepartmentDTO.h"\n\n@interface DepartmentService : NSObject\n\n- (NSMutableArray *)getAllDepartment;\n- (void)addDepartment:...
53
6
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 23.54, "nodes": 29, "errors": 0, "source_hash": "aabd5e7e06d29f3ce7e8b9fbbf97beb294166820b122397e8c436a72e959126f", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
485
c
#define MAIN #include "include.h" /** forward decls */ static void usage(int ec); /** * Write usage informati0on and exit with 'ec' status. * * @param ec Error code. */ static void usage(int ec) { FILE *f = (ec) ? stderr : stdout; fprintf(f, "qotd v%s\n", QOTD_VERSION); fprintf(f, "Usage: qotd [COMMAND] [inde...
23.96
54
(translation_unit) "#define MAIN\n#include "include.h"\n\n/** forward decls */\nstatic void usage(int ec);\n\n/**\n * Write usage informati0on and exit with 'ec' status.\n *\n * @param ec Error code.\n */\nstatic void usage(int ec)\n{\n FILE *f = (ec) ? stderr : stdout;\n\n fprintf(f, "qotd v%s\n", QOTD_VERSION);\n fpr...
464
0
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 23.96, "nodes": 249, "errors": 0, "source_hash": "d77c4e5cecc7d7862a8041aa83420cd12ab81c1229363c125e521ea610a14bf2", "categorized_nodes": 164}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ...
486
c
#ifndef _iigen_utils_h #define _iigen_utils_h #include <stdio.h> #include <time.h> #include <stdarg.h> #include <unistd.h> #include <string.h> #include <stdlib.h> #include <assert.h> #include <sys/stat.h> #include <sys/types.h> #include <fcntl.h> // For logging // credit from https://github.com/drfeelngood/logger/ ...
25.78
114
(translation_unit) "#ifndef _iigen_utils_h\n#define _iigen_utils_h\n\n#include <stdio.h>\n#include <time.h>\n#include <stdarg.h>\n#include <unistd.h>\n#include <string.h>\n#include <stdlib.h>\n#include <assert.h>\n#include <sys/stat.h>\n#include <sys/types.h>\n#include <fcntl.h>\n\n\n\n// For logging\n// credit from ht...
792
0
{"language": "c", "success": true, "metadata": {"lines": 114, "avg_line_length": 25.78, "nodes": 574, "errors": 0, "source_hash": "b948ba97bd7e6e2d270064561fdbebe8d0a9e29d4a1a186be846c6c1b94a9e0e", "categorized_nodes": 346}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
487
c
/* llfuse.h Copyright © 2013 <NAME> <Nikolaus.org> This file is part of Python-LLFUSE. This work may be distributed under the terms of the GNU LGPL. */ #define PLATFORM_LINUX 1 #define PLATFORM_BSD 2 #define PLATFORM_DARWIN 3 #ifdef __linux__ #define PLATFORM PLATFORM_LINUX #elif __FreeBSD_kernel__&&__GLIBC__ #def...
24.22
36
(translation_unit) "/*\nllfuse.h\n\nCopyright © 2013 <NAME> <Nikolaus.org>\n\nThis file is part of Python-LLFUSE. This work may be distributed under\nthe terms of the GNU LGPL.\n*/\n\n\n#define PLATFORM_LINUX 1\n#define PLATFORM_BSD 2\n#define PLATFORM_DARWIN 3\n\n#ifdef __linux__\n#define PLATFORM PLATFORM_LINUX\n#eli...
110
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 24.22, "nodes": 98, "errors": 0, "source_hash": "3d2306e9f055f8a639f6bc5805f9a1ebca8ed44f8a46662070d3530be7348e55", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "define PLA...
488
c
/* Generated by RuntimeBrowser. */ @protocol QLPreviewControllerStateProtocolHostOnly <QLPreviewControllerStateProtocol> @required - (QLItem *)currentItem; - (void)remoteViewControllerWasInvalidated; @end
28.43
7
(translation_unit) "/* Generated by RuntimeBrowser.\n */\n\n@protocol QLPreviewControllerStateProtocolHostOnly <QLPreviewControllerStateProtocol>\n\n@required\n\n- (QLItem *)currentItem;\n- (void)remoteViewControllerWasInvalidated;\n\n@end\n" (comment) "/* Generated by RuntimeBrowser.\n */" (ERROR) "@protocol QLPre...
36
5
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 28.43, "nodes": 25, "errors": 0, "source_hash": "4a0b2d7e2bd5cd3e63d527d37390eb27069a8c4c168815a71781d8e00434e6cc", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@protocol QLPrevi...
489
c
/////////// // This file is a part of the ATools project // Some parts of code are the property of Microsoft, Qt or Aeonsoft // The rest is released without license and without any warranty /////////// #ifndef IMPORTUTILS_H #define IMPORTUTILS_H D3DXMATRIX ToD3DMatrix(const aiMatrix4x4& mat); int GenerateRandomID();...
33.36
11
(translation_unit) "///////////\n// This file is a part of the ATools project\n// Some parts of code are the property of Microsoft, Qt or Aeonsoft\n// The rest is released without license and without any warranty\n///////////\n\n#ifndef IMPORTUTILS_H\n#define IMPORTUTILS_H\n\nD3DXMATRIX ToD3DMatrix(const aiMatrix4x4& m...
52
2
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 33.36, "nodes": 28, "errors": 0, "source_hash": "ad7d9de94bf3a924da76766218249a9f5c906d73526f5aea4e8959ccd879c682", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
490
c
/*! \file Topological classification. Each foreground voxel of a 3D binary input image receives a label indicating its topological type. Possible types are the following: Output codes: <ul> <li> 1: interior point <li> 2: isolated point <li> 3: border point <li> 4: curve point <li> 5: curves junction <li> ...
23.44
301
(translation_unit) "/*! \file\n Topological classification.\n\nEach foreground voxel of a 3D binary input image receives a\nlabel indicating its topological type. Possible types are\nthe following:\n\nOutput codes:\n<ul>\n<li> 1: interior point\n<li> 2: isolated point\n<li> 3: border point\n<li> 4: curve point...
3,139
0
{"language": "c", "success": true, "metadata": {"lines": 301, "avg_line_length": 23.44, "nodes": 1790, "errors": 0, "source_hash": "5832a2f1dba0fb3da4b9ccc1ca23254d79e9cc99e3b4196356d86f2b79978d3e", "categorized_nodes": 1403}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
491
c
#include<stdio.H> main() { int a=10,b=20; a=a^b; b=b^a; a=a^b; printf("a= %d b=%d ",a,b); }
10.78
9
(translation_unit) "#include<stdio.H> \nmain() \n{ \n int a=10,b=20; \n a=a^b; \n b=b^a; \n a=a^b; \n printf("a= %d b=%d ",a,b); \n}" (preproc_include) "#include<stdio.H> \n" (#include) "#include" (system_lib_string) "<stdio.H>" (expression_statement) "main()" (call_expression) "main()" (identifi...
70
2
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 10.78, "nodes": 45, "errors": 0, "source_hash": "6e77fc10a5ad78edc73d152e6d070c1b7c643be8515729ea1b9e4ac5cc8fcb7c", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
492
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" __attribute__((visibility("hidden"))) @interface OspreyZlibDataCompressor : NSObject { struct z_stream_s _deflateStream; unsigned char _deflateBuffer[8192]; ...
25.35
17
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n__attribute__((visibility("hidden")))\n@interface OspreyZlibDataCompressor : NSObject\n{\n struct z_stream_s _deflateStream;\n unsi...
120
9
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 25.35, "nodes": 70, "errors": 0, "source_hash": "a82e2bbe471e77398e3229370c99be08c84c627df5cfe3e1d67b519271ebf14b", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
493
c
/*/-------------------------------------------------------------------------------------// Filename: LinkedBag.h Date: 10/19/2020 Description: LinkedBag ADT, with nodes implemented as instances of a private 'Node' struct type //------------------------...
27.8
41
(translation_unit) "/*/-------------------------------------------------------------------------------------//\n Filename: LinkedBag.h\n Date: 10/19/2020\n Description: LinkedBag ADT, with nodes implemented as \n instances of a private 'Node' struct type\n/...
235
17
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 27.8, "nodes": 134, "errors": 0, "source_hash": "9f87529f2d4ad76359f0e1f8083df5153b7e75412669f2e6e2bc83a5bd760c15", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
494
c
// pbrt is Copyright(c) 1998-2020 <NAME>, <NAME>, and <NAME>. // The pbrt source code is licensed under the Apache License, Version 2.0. // SPDX: Apache-2.0 #ifndef PBRT_FILTERS_H #define PBRT_FILTERS_H #include <pbrt/pbrt.h> #include <pbrt/base/filter.h> #include <pbrt/util/math.h> #include <pbrt/util/sampling.h> ...
33.14
202
(translation_unit) "// pbrt is Copyright(c) 1998-2020 <NAME>, <NAME>, and <NAME>.\n// The pbrt source code is licensed under the Apache License, Version 2.0.\n// SPDX: Apache-2.0\n\n#ifndef PBRT_FILTERS_H\n#define PBRT_FILTERS_H\n\n#include <pbrt/pbrt.h>\n\n#include <pbrt/base/filter.h>\n#include <pbrt/util/math.h>\n#i...
2,186
104
{"language": "c", "success": true, "metadata": {"lines": 202, "avg_line_length": 33.14, "nodes": 1320, "errors": 0, "source_hash": "4f6863d3a45c86e72f960ab9f1e09b7c5c61a664f21a3c7369da4df589ce267d", "categorized_nodes": 983}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
495
c
// This file is part of rscript. // rscript is licensed under the MIT LICENSE. For more info see the LICENSE file. #pragma once #include <rscript/datatypes/type.h> #include <rscript/datatypes/atom.h> #include <rscript/datatypes/list.h> #include <rscript/datatypes/vector.h> #include <rscript/datatypes/bool.h> #include...
36.4
25
(translation_unit) "// This file is part of rscript.\n// rscript is licensed under the MIT LICENSE. For more info see the LICENSE file.\n\n#pragma once\n\n#include <rscript/datatypes/type.h>\n#include <rscript/datatypes/atom.h>\n#include <rscript/datatypes/list.h>\n#include <rscript/datatypes/vector.h>\n#include <rscri...
141
5
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 36.4, "nodes": 101, "errors": 0, "source_hash": "e1f22d0b36e1e7eb2ee48e29f78d183f21dec80282b6e9584a177c4db64ec4a9", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
496
c
/*D*********************************************************** * Modul: API - give new table id * Returns a new and free ID * min. ID is 1 * * Copyright: yafra.org, Basel, Switzerland **************************************************************/ #include <mpmain.h> #include <mp...
31.84
115
(translation_unit) "/*D*********************************************************** \n * Modul: API - give new table id \n * Returns a new and free ID \n * min. ID is 1 \n * \n * Copyright: yafra.org, Basel, Switzerland \n **************************************************************/ \n#inclu...
791
0
{"language": "c", "success": true, "metadata": {"lines": 115, "avg_line_length": 31.84, "nodes": 446, "errors": 0, "source_hash": "b7f01ec58216d3b9b7a5affccf722216ff790655813c2225690e18b9b3429d91", "categorized_nodes": 285}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
497
c
/* SNEeSe, an Open Source Super NES emulator. Copyright (c) 1998-2015, <NAME>. Portions copyright (c) 1998-2003, <NAME>. Portions copyright (c) 2003-2004, <NAME>. Portions copyright (c) 2004-2005, Nach. ( http://nsrt.edgeemu.com/ ) Unzip Technology, copyright (c) 1998 <NAME>. zlib Technology ( www.gzip.org/zlib/ ), ...
32.95
111
(translation_unit) "/*\n\nSNEeSe, an Open Source Super NES emulator.\n\n\nCopyright (c) 1998-2015, <NAME>.\nPortions copyright (c) 1998-2003, <NAME>.\nPortions copyright (c) 2003-2004, <NAME>.\nPortions copyright (c) 2004-2005, Nach. ( http://nsrt.edgeemu.com/ )\nUnzip Technology, copyright (c) 1998 <NAME>.\nzlib Techn...
683
1
{"language": "c", "success": true, "metadata": {"lines": 111, "avg_line_length": 32.95, "nodes": 499, "errors": 0, "source_hash": "d6199954841912e26e2d45fe366686a75b81177e23cb7db529410214da848a15", "categorized_nodes": 281}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
498
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...
31.57
54
(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...
174
8
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 31.57, "nodes": 113, "errors": 0, "source_hash": "8ee48b3618f7296bc93f6c462e3b7f4fdf1dfb5f612d7b5ebcb5129a0551ab73", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
499