language
stringclasses
1 value
code
stringlengths
6
12.3k
avg_line_length
float64
2.79
91
line_count
float64
1
367
lang_specific_parse
stringlengths
60
1.08M
ast_node_count
int64
2
6.81k
num_errors
int64
0
499
universal_schema
stringlengths
799
825k
__index_level_0__
int64
0
81.2k
c
#ifndef __BU_MONEY_H__ #define __BU_MONEY_H__ #include "chipmunk/chipmunk.h" #include "gfc_vector.h" void spawn_money(int value, cpVect position); #endif
21.14
7
(translation_unit) "#ifndef __BU_MONEY_H__\n#define __BU_MONEY_H__\n\n#include "chipmunk/chipmunk.h"\n\n#include "gfc_vector.h"\n\nvoid spawn_money(int value, cpVect position);\n\n\n#endif\n" (preproc_ifdef) "#ifndef __BU_MONEY_H__\n#define __BU_MONEY_H__\n\n#include "chipmunk/chipmunk.h"\n\n#include "gfc_vector.h"\n...
35
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 21.14, "nodes": 24, "errors": 0, "source_hash": "509ac97400ce05eec77717a43f06f4b607cd65dd305c09eba4de25ebbd40e151", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
5,300
c
#pragma once #define USE_SIMD #define MUTIL_VECTORCALL __vectorcall #define MUTIL_INLINE inline #define MUTIL_FORCEINLINE __forceinline #define MUTIL_CONSTEXPR constexpr
27.33
6
(translation_unit) "#pragma once\n\n#define USE_SIMD\n\n#define MUTIL_VECTORCALL __vectorcall\n#define MUTIL_INLINE inline\n#define MUTIL_FORCEINLINE __forceinline\n#define MUTIL_CONSTEXPR constexpr\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_def) "#define ...
23
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 27.33, "nodes": 22, "errors": 0, "source_hash": "b8b167ca7ed7e0347bb4765e7b9c6a10c138476d2dd4b0084587f920e3929a90", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
5,301
c
// // ViewController.h // DemoApp // // Created by taiki on 12/3/13. // Copyright (c) 2013 yashigani. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController - (IBAction)showWarningTapped:(id)sender; @end
21.36
11
(translation_unit) "//\n// ViewController.h\n// DemoApp\n//\n// Created by taiki on 12/3/13.\n// Copyright (c) 2013 yashigani. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ViewController : UIViewController\n\n- (IBAction)showWarningTapped:(id)sender;\n\n@end\n" (comment) "//" (comment) "// ...
37
7
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 21.36, "nodes": 21, "errors": 0, "source_hash": "4eb8516d7e87c67912a85d1175e61b1c2f842970b75663acd4297719a470a263", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
5,302
c
#ifndef ALI_RDSREGION_CREATE_DATABASE_TYPESH #define ALI_RDSREGION_CREATE_DATABASE_TYPESH #include <stdio.h> #include <string> #include <vector> namespace aliyun { struct RdsRegionCreateDatabaseRequestType { std::string owner_id; std::string resource_owner_account; std::string resource_owner_id; std::...
26.25
20
(translation_unit) "#ifndef ALI_RDSREGION_CREATE_DATABASE_TYPESH \n#define ALI_RDSREGION_CREATE_DATABASE_TYPESH \n#include <stdio.h> \n#include <string> \n#include <vector> \nnamespace aliyun { \nstruct RdsRegionCreateDatabaseRequestType { \n std::string owner_id; \n std::string resource_owner_account; \n std::strin...
102
8
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 26.25, "nodes": 65, "errors": 0, "source_hash": "19d371abe2389a8465e1da5cf267ca419dc2d223857a4a8ffd64285bf0aa84c2", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,303
c
#include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <math.h> double ToRad(const double degree) { // cmath library in C++ // defines the constant // M_PI as the value of // pi accurate to 1e-30 double one_deg = M_PI / 180.0; return (one_deg * degree); } double ToDeg(doub...
27.46
52
(translation_unit) "#include <unistd.h> \n#include <stdlib.h> \n#include <stdio.h> \n#include <math.h> \n \n double ToRad(const double degree) \n{ \n // cmath library in C++ \n // defines the constant \n // M_PI as the value of \n // pi accurate to 1e-30 \n double one_deg = M_PI / 180.0; \n return (one_deg * de...
387
0
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 27.46, "nodes": 261, "errors": 0, "source_hash": "ec669b5bd9bf2eb4218a70e83eedcc856cef8b7fcad207aa168982d18e2bf229", "categorized_nodes": 167}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,304
c
#pragma once typedef enum { ENCIN_SUCCESS = 0, ENCIN_TASK_CREATION_FAILURE = -1, ENCIN_STACK_ACQUIRY_FAILURE = -2, ENCIN_JOB_SUBMISSION_FAILURE = -3, } encin_result; const char *encin_result_description(encin_result result);
29.12
8
(translation_unit) "#pragma once\n\ntypedef enum {\n\n ENCIN_SUCCESS = 0,\n\n ENCIN_TASK_CREATION_FAILURE = -1,\n\n ENCIN_STACK_ACQUIRY_FAILURE = -2,\n\n ENCIN_JOB_SUBMISSION_FAILURE = -3,\n\n} encin_result;\n\nconst char *encin_result_description(encin_result result);\n" (preproc_call) "#pragma once\n" ...
48
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 29.12, "nodes": 35, "errors": 0, "source_hash": "56799c3682f2a42f43aeb0aeb175fddd7422eac0bbcfcbaf34f1516c7641ecc6", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
5,305
c
/* * Copyright (c) 2017-2019 Cisco and/or its affiliates. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
34.37
119
(translation_unit) "/*\n * Copyright (c) 2017-2019 Cisco and/or its affiliates.\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at:\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *...
906
41
{"language": "c", "success": true, "metadata": {"lines": 119, "avg_line_length": 34.37, "nodes": 549, "errors": 0, "source_hash": "0050934d6e9417e9a3fd3a705d5e33d83e81ab78f2d2fb30e420090273dd3d53", "categorized_nodes": 399}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
5,306
c
// // MGSPreferencesController.h // Fragaria // // Created by Jonathan on 30/04/2010. // Copyright 2010 <EMAIL>. All rights reserved. // #import <Cocoa/Cocoa.h> #import <MGSFragaria/MGSFragaria.h> #import "DBPrefsWindowController.h" @interface MGSPreferencesController : DBPrefsWindowController { IBOutlet NSVi...
30.27
22
(translation_unit) "//\n// MGSPreferencesController.h\n// Fragaria\n//\n// Created by Jonathan on 30/04/2010.\n// Copyright 2010 <EMAIL>. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n#import <MGSFragaria/MGSFragaria.h>\n#import "DBPrefsWindowController.h"\n\n@interface MGSPreferencesController : DBPrefsWind...
93
7
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 30.27, "nodes": 64, "errors": 0, "source_hash": "79abfcf2038ca8c691ba5423b7259efe5cc09f65fe01474cf3250c6d4f7b91a8", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
5,307
c
#ifndef NM_SVG_MAP_H_ #define NM_SVG_MAP_H_ #include <nm_vector.h> enum { NM_SVG_STATE_UP, NM_SVG_STATE_DOWN, NM_SVG_STATE_ALL }; void nm_svg_map(const char *path, const nm_vect_t *veths, int state, const nm_str_t *layout, const nm_str_t *group); #endif /* NM_SVG_MAP_H_ */ /* vim:set ts=4 sw=4: ...
25.58
12
(translation_unit) "#ifndef NM_SVG_MAP_H_\n#define NM_SVG_MAP_H_\n\n#include <nm_vector.h>\n\nenum {\n NM_SVG_STATE_UP,\n NM_SVG_STATE_DOWN,\n NM_SVG_STATE_ALL\n};\n\nvoid nm_svg_map(const char *path, const nm_vect_t *veths,\n int state, const nm_str_t *layout, const nm_str_t *group);\n\n#endif /* NM_SV...
70
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 25.58, "nodes": 47, "errors": 0, "source_hash": "e48a9a7b875ea6957b501a15c65d045e1ae904880018a3ef4c4a2bd2c1929173", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,308
c
/* Copyright(c) 2010-2015 Intel Corporation. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of con...
31.08
97
(translation_unit) "/*\n Copyright(c) 2010-2015 Intel Corporation.\n All rights reserved.\n\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions\n are met:\n\n * Redistributions of source code must retain the above copyright\n ...
575
0
{"language": "c", "success": true, "metadata": {"lines": 97, "avg_line_length": 31.08, "nodes": 332, "errors": 0, "source_hash": "c5e18dd6752b7e324d85c0fd4595a03622ed2acc860e8e38b88f70259797e0cb", "categorized_nodes": 250}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,309
c
#include <assert.h> #include <stdio.h> #include "lista.h" int ListNumNodes(List_t lst) { if(lst == LIST_EMPTY) return 0; return 1 + ListNumNodes(LIST_TAIL(lst)); } List_t ListNodeCreate(int e, List_t tail) { List_t newL = (List_t ) malloc(sizeof(struct Node)); assert(newL); LIST_CONT(newL)...
19.25
32
(translation_unit) "#include <assert.h>\n#include <stdio.h>\n#include "lista.h"\n\nint ListNumNodes(List_t lst)\n{\n if(lst == LIST_EMPTY)\n return 0;\n return 1 + ListNumNodes(LIST_TAIL(lst));\n}\n\nList_t ListNodeCreate(int e, List_t tail)\n{\n List_t newL = (List_t ) malloc(sizeof(struct Node));\n ...
239
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 19.25, "nodes": 139, "errors": 0, "source_hash": "71217b4cfc894ce878a1664964561e9c1fbcb1df14bc21d0c4abe14f1333bfc2", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,310
c
#ifndef SYSTEM_OS_API_H #define SYSTEM_OS_API_H #endif //SYSTEM_OS_API_H
23.33
3
(translation_unit) "#ifndef SYSTEM_OS_API_H\n#define SYSTEM_OS_API_H\n\n#endif //SYSTEM_OS_API_H\n" (preproc_ifdef) "#ifndef SYSTEM_OS_API_H\n#define SYSTEM_OS_API_H\n\n#endif" (#ifndef) "#ifndef" (identifier) "SYSTEM_OS_API_H" (preproc_def) "#define SYSTEM_OS_API_H\n" (#define) "#define" (ide...
9
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 23.33, "nodes": 7, "errors": 0, "source_hash": "266bae6da5a5c0bc884c6c310bf78b26e845573f87d565d8f0cbd65ced2380ad", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef\tSY...
5,311
c
#ifndef FFT_H #define FFT_H #include "blst.h" #include <caml/custom.h> #include <caml/memory.h> #include <caml/mlvalues.h> #include <stdlib.h> #include <string.h> #define Blst_fr_val(v) (blst_fr *)Data_custom_val(v) #define Blst_g1_val(v) ((blst_p1 *)Data_custom_val(v)) #define Blst_g2_val(v) ((blst_p2 *)Data_custo...
44.29
24
(translation_unit) "#ifndef FFT_H\n#define FFT_H\n\n#include "blst.h"\n#include <caml/custom.h>\n#include <caml/memory.h>\n#include <caml/mlvalues.h>\n#include <stdlib.h>\n#include <string.h>\n\n#define Blst_fr_val(v) (blst_fr *)Data_custom_val(v)\n\n#define Blst_g1_val(v) ((blst_p1 *)Data_custom_val(v))\n\n#define Bls...
200
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 44.29, "nodes": 148, "errors": 0, "source_hash": "b036b4f3472b59532f1e8e8a5567e0211f42b8ad5f2cacda7265ba3b76fc38fc", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,312
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Mar 22 2020 01:47:48). // // Copyright (C) 1997-2019 <NAME>. // #import <SpringBoard/SBAWDMetricData.h> @class NSString; @interface SBAppBrightnessMetricData : SBAWDMetricData { NSString *_appBundleID; NSUInteger _brightness; NSUInte...
33.22
18
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Mar 22 2020 01:47:48).\n//\n// Copyright (C) 1997-2019 <NAME>.\n//\n\n#import <SpringBoard/SBAWDMetricData.h>\n\n@class NSString;\n\n@interface SBAppBrightnessMetricData : SBAWDMetricData\n{\n NSString *_appBundleID;\n NS...
94
14
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 33.22, "nodes": 58, "errors": 0, "source_hash": "ebc2a7d35140a866561d77341d59e1d2e65f26273992bc142d2ad1002f8566c3", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
5,313
c
/* wireshark_mime_data.h * * Wireshark - Network traffic analyzer * By <NAME> <<EMAIL>> * Copyright 1998 <NAME> * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef UI_QT_UTILS_WIRESHARK_MIME_DATA_H_ #define UI_QT_UTILS_WIRESHARK_MIME_DATA_H_ #include <QMimeData> class DisplayFilterMimeData: public QMimeD...
22.56
48
(ERROR) "/* wireshark_mime_data.h\n *\n * Wireshark - Network traffic analyzer\n * By <NAME> <<EMAIL>>\n * Copyright 1998 <NAME>\n *\n * SPDX-License-Identifier: GPL-2.0-or-later\n */\n\n#ifndef UI_QT_UTILS_WIRESHARK_MIME_DATA_H_\n#define UI_QT_UTILS_WIRESHARK_MIME_DATA_H_\n\n#include <QMimeData>\n\nclass DisplayFilter...
157
9
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 22.56, "nodes": 88, "errors": 0, "source_hash": "75795877891b8a8891eadbff75c6ca85b9024997954122b54e9e86d932b77df5", "categorized_nodes": 67}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "/* wireshark_mime_data.h\n ...
5,314
c
// // RevanAppDelegate.h // RevanMainModule // // Created by Revan on 11/27/2017. // Copyright (c) 2017 Revan. All rights reserved. // @import UIKit; @interface RevanAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
23.82
11
(translation_unit) "//\n// RevanAppDelegate.h\n// RevanMainModule\n//\n// Created by Revan on 11/27/2017.\n// Copyright (c) 2017 Revan. All rights reserved.\n//\n\n@import UIKit;\n\n@interface RevanAppDelegate : UIResponder <UIApplicationDelegate>\n\n@property (strong, nonatomic) UIWindow *window;\n\n@end\n" (com...
42
8
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 23.82, "nodes": 26, "errors": 0, "source_hash": "77a30bfe9668376723f7f4fa71a2a7312740c516c23be6359f62ecba10c61407", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nu...
5,315
c
#ifndef JSON_MESSAGE_T_POINTER_H_ #define JSON_MESSAGE_T_POINTER_H_ #include <string.h> #include <stddef.h> #include <stdint.h> #include <sstream> #include "jansson.h" #include "edge-rpc/rpc.h" class JsonMessageTPointer { char *data = NULL; size_t size; struct connection *connection; public: JsonMe...
32.88
68
(translation_unit) "#ifndef JSON_MESSAGE_T_POINTER_H_\n#define JSON_MESSAGE_T_POINTER_H_\n\n#include <string.h>\n#include <stddef.h>\n#include <stdint.h>\n#include <sstream>\n\n#include "jansson.h"\n#include "edge-rpc/rpc.h"\n\nclass JsonMessageTPointer {\n char *data = NULL;\n size_t size;\n struct connection...
672
15
{"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 32.88, "nodes": 420, "errors": 0, "source_hash": "cdaacd6a4405b2c63e2f9d32e4491fa3cb06e024b42138852cc6450ea73af6ea", "categorized_nodes": 282}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,316
c
// ====================================================================== // Computer Graphics Homework Solutions // Copyright (C) 2018 by <NAME> // // MainWindow.h - Header file for MainWindow class // // Written by: <NAME>, 2018 // ====================================================================== #ifndef MAINWI...
28.29
195
(translation_unit) "// ======================================================================\n// Computer Graphics Homework Solutions\n// Copyright (C) 2018 by <NAME>\n//\n// MainWindow.h - Header file for MainWindow class\n//\n// Written by: <NAME>, 2018\n// ===========================================================...
1,142
15
{"language": "c", "success": true, "metadata": {"lines": 195, "avg_line_length": 28.29, "nodes": 717, "errors": 0, "source_hash": "f30bc2d3cdeb8b2956de93c958c72b5b333ff9696b4d3edbea74747c05a7f63f", "categorized_nodes": 491}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
5,317
c
#pragma once #include <stdlib.h> /* Define struct containing data points */ struct element { size_t ID; // index of the node in original order of the data size_t cluster; // index of element's cluster double *values; // array of length M, element's data values size_t category; // index...
22.07
201
(translation_unit) "#pragma once\n#include <stdlib.h> \n\n/* Define struct containing data points */\nstruct element\n{\n size_t ID; // index of the node in original order of the data\n size_t cluster; // index of element's cluster\n double *values; // array of length M, element's data values\n ...
1,137
0
{"language": "c", "success": true, "metadata": {"lines": 201, "avg_line_length": 22.07, "nodes": 836, "errors": 0, "source_hash": "7b14a73e6309d98d4bfe461cb8589c950660ea56842f7c615291a0f0b5356ab0", "categorized_nodes": 498}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
5,318
c
/* A stripped down version of a quicksort algorithm by Bentley and McIlroy. It sorts an array of pointers to strings. <NAME> and <NAME>. Engineering a sort function. Software---Practice and Experience, 23(11):1249-1265, 1993. The code presented in this file has been tested with care but is not guara...
30.82
78
(translation_unit) "/*\n A stripped down version of a quicksort algorithm by Bentley\n and McIlroy. It sorts an array of pointers to strings.\n\n <NAME> and <NAME>. Engineering a sort function.\n Software---Practice and Experience, 23(11):1249-1265, 1993.\n\n The code presented in this file has been tested wi...
948
0
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 30.82, "nodes": 588, "errors": 0, "source_hash": "ac0e695a362831de1d8e178e8a37bb658ffd9749ab75076a5c1a0c3d6d6b3ad5", "categorized_nodes": 454}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,319
c
#include <linux/init.h> #include <linux/module.h> static int hello_init(void) { Printk(KERN_ALERT “Hello World Program 19BCB0047\n”); return 0; } static void dummy_exit(void) { Printk(KERN_ALERT “Good Bye! 19BCB0047\n”); } module_init(hello_init); module_exit(hello_exit);
20.29
14
(translation_unit) "#include <linux/init.h>\n#include <linux/module.h>\n\n\nstatic int hello_init(void)\n{\n Printk(KERN_ALERT “Hello World Program 19BCB0047\n”);\n return 0;\n}\n\nstatic void dummy_exit(void)\n{\n Printk(KERN_ALERT “Good Bye! 19BCB0047\n”);\n}\n\nmodule_init(hello_init);\nmodule_e...
89
8
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 20.29, "nodes": 56, "errors": 0, "source_hash": "71264ca64ac0b3e363798687b8ca58dfbb377b9be9066f8007552ac4dcbfd530", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,320
c
// // Use this file to import your target's public headers that you would like to expose to Swift. // #import "WBModel.h" #import "NSObject+YYModel.h" #import "WBStatusHelper.h" #import "CGImage+WebP.h"
28.14
7
(translation_unit) "//\n// Use this file to import your target's public headers that you would like to expose to Swift.\n//\n\n#import "WBModel.h"\n#import "NSObject+YYModel.h"\n#import "WBStatusHelper.h"\n#import "CGImage+WebP.h"\n" (comment) "//" (comment) "// Use this file to import your target's public header...
16
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 28.14, "nodes": 12, "errors": 0, "source_hash": "059d1f8e83a5d14f42ce25baf70909578fef1d84ebd869993aece47143aebf72", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"W...
5,321
c
#include <stdio.h> /*06.Write an expression that calculates rectangle’s * perimeter and area by given width and height. */ int main() { double width, height; printf("Width: "); scanf("%lf", &width); printf("Height: "); scanf("%lf", &height); double perimeter = 2 * (width + height); ...
24
18
(translation_unit) "#include <stdio.h>\n\n/*06.Write an expression that calculates rectangle’s \n * perimeter and area by given width and height. */\n\nint main() \n{\n double width, height;\n printf("Width: ");\n scanf("%lf", &width);\n printf("Height: ");\n scanf("%lf", &height);\n \n double peri...
131
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 24.0, "nodes": 69, "errors": 0, "source_hash": "f21fb90da5e3d08848d420702ebe9b7c44d591143d83fd69eba22275e0e56b1a", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
5,322
c
// // NSCache+Subscripting.h // DHFoundation // // Created by <NAME> on 17/06/2013. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN /** Adds subscripting support to NSCache */ // clang-format off @interface NSCache<KeyType, ObjectType> (Subscriptin...
23.43
28
(translation_unit) "//\n// NSCache+Subscripting.h\n// DHFoundation\n//\n// Created by <NAME> on 17/06/2013.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n/**\n Adds subscripting support to NSCache\n */\n// clang-format off\n@interface NSCach...
82
9
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 23.43, "nodes": 47, "errors": 0, "source_hash": "36a643816f8dc95d4f84098fc0a0d573849c829812c05167a5e6887280fc1a27", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
5,323
c
#pragma once #include <condition_variable> #include <mutex> #include <iostream> #include <csignal> static std::condition_variable _condition; static std::mutex _mutex; namespace reploid { class InterruptHandler { public: static void hookSIGINT() { signal(SIGINT, handleUserInterrupt); ...
28.56
27
(translation_unit) "#pragma once\n#include <condition_variable>\n#include <mutex>\n#include <iostream>\n#include <csignal>\n\nstatic std::condition_variable _condition;\nstatic std::mutex _mutex;\n\nnamespace reploid {\n class InterruptHandler {\n public:\n static void hookSIGINT() {\n signal(SI...
209
7
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 28.56, "nodes": 115, "errors": 0, "source_hash": "7771935128cecd58126c79bea89ee9d5fe27f057ef1041c80381227cabd4506b", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
5,324
c
// // TSWindowController.h // ThisService // // Created by Jesper on 2011-07-11. // Copyright 2011-2012 waffle software. All rights reserved. // BSD licensed - see license.txt for more information. // #import <Cocoa/Cocoa.h> #import "TSModeMatrix.h" #import "TSViewController.h" @interface TSWindowController : N...
30.29
24
(translation_unit) "//\n// TSWindowController.h\n// ThisService\n//\n// Created by Jesper on 2011-07-11.\n// Copyright 2011-2012 waffle software. All rights reserved.\n// BSD licensed - see license.txt for more information.\n//\n\n#import <Cocoa/Cocoa.h>\n\n#import "TSModeMatrix.h"\n#import "TSViewController.h"\n\...
135
13
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 30.29, "nodes": 85, "errors": 0, "source_hash": "9ac9e2c4c78873091f28eec815494b0a16aa64a8757c4f85128130036e3e751b", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
5,325
c
/* { dg-do compile } */ /* { dg-options "-mavx512pf -O2" } */ /* { dg-final { scan-assembler-times "vscatterpf1dps\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+\[^\n\]*\\)\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 2 } } */ #include <immintrin.h> volatile __m512i idx; volatile __mmask16 m16; int *base; void extern avx512pf_test (void) { _mm...
33.38
13
(translation_unit) "/* { dg-do compile } */\n/* { dg-options "-mavx512pf -O2" } */\n/* { dg-final { scan-assembler-times "vscatterpf1dps\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+\[^\n\]*\\)\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 2 } } */\n\n#include <immintrin.h>\n\nvolatile __m512i idx;\nvolatile __mmask16 m16;\nint *base;\n\nvoid exter...
69
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 33.38, "nodes": 42, "errors": 0, "source_hash": "13517df659c1e48d0e00c106c553a1f9dc5e29582095d90904ace95318d8bc24", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,326
c
#ifndef V8_OBJECT_H #define V8_OBJECT_H template<class T> class WrappedObject { public: WrappedObject(T p) : p(p),type(0) { } void setType(int type) { this->type = type; } int getType() { return type; } T unwrap() { return p; } private: T p; int type; }; #endif V8_OBJEC...
10.57
28
(translation_unit) "#ifndef V8_OBJECT_H \n#define V8_OBJECT_H \n \ntemplate<class T> \nclass WrappedObject { \npublic: \n \n WrappedObject(T p) : p(p),type(0) { \n } \n \n void setType(int type) { \n this->type = type; \n } \n \n int getType() { \n return type; \n } \n \n T unwrap() { \n return p; \n } \n \nprivate:...
120
6
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 10.57, "nodes": 70, "errors": 0, "source_hash": "95159f8d5e96f73988bd29a36f567d058158ad2b4a05ede3c9717cfd4510cb3d", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,327
c
#pragma once #include <iostream> #include <fstream> #include <vector> #include <map> #include <pblib/pb2cnf.h> namespace abstract_constraint { class constraint { private: protected: std::string name; std::vector< int32_t > variables; public: constraint(); constraint(std::vector< int32_t >& v...
24.6
58
(translation_unit) "#pragma once\n#include <iostream>\n#include <fstream>\n#include <vector>\n#include <map>\n#include <pblib/pb2cnf.h>\n\nnamespace abstract_constraint {\n\n class constraint {\n private:\n\n protected:\n std::string name;\n std::vector< int32_t > variables;\n\n public:\n constraint();\n ...
502
28
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 24.6, "nodes": 279, "errors": 0, "source_hash": "db4832d382bb4ca9d90a8bee109bb54552432ae531421ec2907a4a0035c27877", "categorized_nodes": 167}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
5,328
c
#include "wet_types.h" #include "lua.h" #include "lauxlib.h" #include "lualib.h" #include "whereami.h" #include <stdlib.h> #include "SDL.h" #include "../../lua_sdl2/luasdl2/src/window.h" static const u8 font_bits[16*48]={ 0x00,0x18,0x66,0x6c,0x18,0x00,0x70,0x18,0x0c,0x30,0x00,0x00,0x00,0x00,0x00,0x06, 0x00...
37.98
223
(translation_unit) "#include "wet_types.h"\n\n#include "lua.h"\n#include "lauxlib.h"\n#include "lualib.h"\n\n#include "whereami.h"\n\n#include <stdlib.h>\n\n\n\n#include "SDL.h"\n\n#include "../../lua_sdl2/luasdl2/src/window.h"\n\n\n\nstatic const u8 font_bits[16*48]={\n\n0x00,0x18,0x66,0x6c,0x18,0x00,0x70,0x18,0x0c,0x...
2,686
3
{"language": "c", "success": true, "metadata": {"lines": 223, "avg_line_length": 37.98, "nodes": 1445, "errors": 0, "source_hash": "dbb5c2614650a66e69ca532b44838d8de7f2637a72267bc17e22ee10439f4f9d", "categorized_nodes": 1245}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
5,329
c
#include <stdio.h> #include <stdlib.h> #include "CuTest.h" #define NBNET_IMPL #define NBN_LogInfo printf #define NBN_LogTrace printf #define NBN_LogDebug printf #define NBN_LogError printf #define NBN_Allocator malloc #define NBN_Deallocator free #include "../nbnet.h" typedef struct { float v1; float v2; ...
29.69
51
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\n#include "CuTest.h"\n\n#define NBNET_IMPL\n\n#define NBN_LogInfo printf\n#define NBN_LogTrace printf\n#define NBN_LogDebug printf\n#define NBN_LogError printf\n\n#define NBN_Allocator malloc\n#define NBN_Deallocator free\n\n#include "../nbnet.h"\n\ntypedef ...
477
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 29.69, "nodes": 296, "errors": 0, "source_hash": "ddf03cd4e2d01a0aa3da2e2b02c40caa5eff5ecc08c413438dcc7b09c3a9213b", "categorized_nodes": 206}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,330
c
// Copyright (C) 2019-2020 Zilliz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
33.59
66
(translation_unit) "// Copyright (C) 2019-2020 Zilliz. All rights reserved.\n//\n// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance\n// with the License. You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unle...
388
12
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 33.59, "nodes": 256, "errors": 0, "source_hash": "da05df8fa81ceb2f086bf30533714eaf85b600cb95c9f6783db1a72fa2617b0e", "categorized_nodes": 190}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
5,331
c
#ifndef UTIL_FILE_H #define UTIL_FILE_H #include <iterator> #include <string> namespace util { // forward declarations template <class T> class file_iterator; template <class T> class file_container; // TODO: implement random access iterator interface template <class T> class file_iterator : public std::itera...
23.8
66
(translation_unit) "#ifndef UTIL_FILE_H\n#define UTIL_FILE_H\n\n#include <iterator>\n#include <string>\n\nnamespace util\n{\n\n// forward declarations\ntemplate <class T>\nclass file_iterator;\ntemplate <class T>\nclass file_container;\n\n\n\n// TODO: implement random access iterator interface\ntemplate <class T>\nclas...
535
35
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 23.8, "nodes": 333, "errors": 0, "source_hash": "314e5c6ba5693f8b0ee94a36a2a08b26cea87b39869b566ab26940cc57ce1d47", "categorized_nodes": 219}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,332
c
#ifndef __COREWAR_CONF_H__ #define __COREWAR_CONF_H__ #define CWPIDMAP 1 #define CWRANDMT32 1 #if defined(ZEUS) && !(ZEUS) #undef ZEUS #endif #undef ZEUSHOVERTOOLTIP //#define ZEUSHOVERTOOLTIP 1 #if !defined(ZEUS) #undef ZEUS #undef ZEUSWINX11 #undef ZEUSWINEFL #else #define ZEUSWINX11 1 #defi...
20
19
(translation_unit) "#ifndef __COREWAR_CONF_H__\n#define __COREWAR_CONF_H__\n\n#define CWPIDMAP 1\n#define CWRANDMT32 1\n#if defined(ZEUS) && !(ZEUS)\n#undef ZEUS\n#endif\n#undef ZEUSHOVERTOOLTIP\n//#define ZEUSHOVERTOOLTIP 1\n#if !defined(ZEUS)\n#undef ZEUS\n#undef ZEUSWINX11\n#undef ZEUSWINEFL\n#els...
74
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 20.0, "nodes": 65, "errors": 0, "source_hash": "342eab318732b1da07995bbc2c19ea307c908e467efd0159f8842ed5f0502eb4", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
5,333
c
#include <stdio.h> #include <stdlib.h> // Estruturas struct node{ int key; struct node *left, *right; }; typedef struct node Node; // estrutura para usar um booleano typedef enum {false, true} bool; //Criação da ABB Node *newNode(int item){ Node* temp = (Node*)malloc((sizeof(Node))); temp->key = item; t...
24.72
195
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\n\n\n// Estruturas\n\nstruct node{\n int key;\n struct node *left, *right;\n\n};\ntypedef struct node Node;\n// estrutura para usar um booleano\ntypedef enum {false, true} bool;\n//Criação da ABB\n\nNode *newNode(int item){\n Node* temp = (Node*)malloc((s...
1,092
0
{"language": "c", "success": true, "metadata": {"lines": 195, "avg_line_length": 24.72, "nodes": 687, "errors": 0, "source_hash": "e7636c19021528f84e56c72fe432c267b92e14ff02094b637a6412d8f01379a7", "categorized_nodes": 461}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,334
c
/* MIT LICENSE Copyright (c) 2014-2020 Inertial Sense, Inc. - http://inertialsense.com 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 ...
36.04
189
(translation_unit) "/*\nMIT LICENSE\n\nCopyright (c) 2014-2020 Inertial Sense, Inc. - http://inertialsense.com\n\nPermission 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 witho...
755
42
{"language": "c", "success": true, "metadata": {"lines": 189, "avg_line_length": 36.04, "nodes": 458, "errors": 0, "source_hash": "528421a3a7475ff25fc732085ac939aa235d5d14d250a0d34a59a23af7c9c761", "categorized_nodes": 266}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
5,335
c
inherit "room/room"; object monster; reset(arg) { if(!monster) { monster = clone_object("/wizards/nalle/area2/monsters/leper"); move_object(monster, this_object()); } if(arg) return; add_exit("west","wizards/nalle/area2/d1"); add_exit("south","wizards/nalle/area2/necroshop"); add_exit("east","wiza...
27.27
30
(translation_unit) "inherit "room/room";\n\nobject monster;\n\nreset(arg) {\n if(!monster) {\n monster = clone_object("/wizards/nalle/area2/monsters/leper");\n move_object(monster, this_object());\n }\n if(arg) return;\n add_exit("west","wizards/nalle/area2/d1");\n add_exit("south","wizards/nalle/area2/necro...
236
2
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 27.27, "nodes": 100, "errors": 0, "source_hash": "31898a8d00635711f82b3d7e263f7622cc159399effe5b6dfb85f63eed8a72b5", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "concatenated_string", "text": "i...
5,336
c
// // DhamoFramework.h // DhamoFramework // // Created by <NAME> on 29/08/18. // Copyright © 2018 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for DhamoFramework. FOUNDATION_EXPORT double DhamoFrameworkVersionNumber; //! Project version string for DhamoFramework. FOUNDATION_...
38.62
13
(translation_unit) "//\n// DhamoFramework.h\n// DhamoFramework\n//\n// Created by <NAME> on 29/08/18.\n// Copyright © 2018 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n//! Project version number for DhamoFramework.\nFOUNDATION_EXPORT double DhamoFrameworkVersionNumber;\n\n//! Project version strin...
33
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 38.62, "nodes": 15, "errors": 0, "source_hash": "d4330cc53260141a0f714a46797e4c86a3abc7a125d068d2c8d9dd6f1c787244", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
5,337
c
// // HKMultiFileDownloader.h // HKMultiFileDownloader // // Created by HuangKai on 16/4/25. // Copyright © 2016年 HuangKai. All rights reserved. // #import <Foundation/Foundation.h> typedef void (^HKMultiFileCompletion)(NSError *error, NSData *data); @interface HKMultiFileDownloader : NSObject /** * 下载地址 */...
21.72
46
(translation_unit) "//\n// HKMultiFileDownloader.h\n// HKMultiFileDownloader\n//\n// Created by HuangKai on 16/4/25.\n// Copyright © 2016年 HuangKai. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\ntypedef void (^HKMultiFileCompletion)(NSError *error, NSData *data);\n\n\n@interface HKMultiFileDownlo...
172
24
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 21.72, "nodes": 111, "errors": 0, "source_hash": "7111f4781b09d1a94028f41d07322632fade72cb6715c4c3a016cd412192cb34", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fo...
5,338
c
#include<stdio.h> int main() { int n; printf("\nEnter The Number : "); scanf("%d",&n); int sum=0; int k=1; for(int i=1;i<=n;i++) { sum+=i*k; k*=-1; } printf("\n%d",sum); return 0; }
11.53
17
(translation_unit) "#include<stdio.h> \nint main() \n{ \n int n; \n printf("\nEnter The Number : "); \n scanf("%d",&n); \n int sum=0; \n int k=1; \n for(int i=1;i<=n;i++) \n { \n sum+=i*k; \n k*=-1; \n } \n \n printf("\n%d",sum); \n return 0; \n}" (preproc_include) "#include<stdio.h> \n" (#include) "#include" ...
114
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 11.53, "nodes": 67, "errors": 0, "source_hash": "7f25ceac96dc9dda635b4755684d006f6dcff4b3bf6ab24946ff95f6fbd21e5c", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
5,339
c
/* Copyright (c) 2017 - 2020 LiteSpeed Technologies Inc. See LICENSE. */ #include <inttypes.h> #include <stdio.h> #include <stdlib.h> #include "lsquic_int_types.h" #include "lsquic_qpack_exp.h" struct qpack_exp_record * lsquic_qpack_exp_new (void) { return calloc(1, sizeof(struct qpack_exp_record)); } void ls...
31.72
60
(translation_unit) "/* Copyright (c) 2017 - 2020 LiteSpeed Technologies Inc. See LICENSE. */\n#include <inttypes.h>\n#include <stdio.h>\n#include <stdlib.h>\n\n#include "lsquic_int_types.h"\n#include "lsquic_qpack_exp.h"\n\n\nstruct qpack_exp_record *\nlsquic_qpack_exp_new (void)\n{\n return calloc(1, sizeof(struct...
389
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 31.72, "nodes": 208, "errors": 0, "source_hash": "77dc1d8c9e08e9d9d566085227846301d16eb860f02f073434f8ad3af6dd7e6f", "categorized_nodes": 157}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,340
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" #import "PBCoding.h" @class NSMutableDictionary, NSString; @interface MPPageTemplateInfoContainer : NSObject <PBCoding> { unsigned int checkInterval; NSMut...
34.45
29
(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#import "PBCoding.h"\n\n@class NSMutableDictionary, NSString;\n\n@interface MPPageTemplateInfoContainer : NSObject <PBCoding>\n{\n uns...
271
27
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 34.45, "nodes": 172, "errors": 0, "source_hash": "f2eba93be134291a7bbbb09ca34c09a6dc4c50ef9d166d3bb4f42e170213e485", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
5,341
c
// Copyright (c) 2012 <NAME> <<EMAIL>> // Distributed under the Modified BSD License, see license.txt. #ifndef SCM_CL_CORE_CUDA_COMMAND_STREAM_H_INCLUDED #define SCM_CL_CORE_CUDA_COMMAND_STREAM_H_INCLUDED #include <boost/noncopyable.hpp> #include <cuda_runtime.h> #include <scm/core/memory.h> #include <scm/cl_core...
33.04
28
(translation_unit) "// Copyright (c) 2012 <NAME> <<EMAIL>>\n// Distributed under the Modified BSD License, see license.txt.\n\n#ifndef SCM_CL_CORE_CUDA_COMMAND_STREAM_H_INCLUDED\n#define SCM_CL_CORE_CUDA_COMMAND_STREAM_H_INCLUDED\n\n#include <boost/noncopyable.hpp>\n\n#include <cuda_runtime.h>\n\n#include <scm/core/mem...
114
7
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 33.04, "nodes": 67, "errors": 0, "source_hash": "2cc90afe2a852aa16bd249e963335b8adaca4a766bcfd5021f1c2acac5c82037", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef SCM_CL_C...
5,342
c
#pragma once #include "Dina/Graphic/Graphic.h" #include "Dina/Graphic/Font.h" #include "Dina/Graphic/Quad.h" #include <functional> namespace Dina { class DINA_API MenuItem { public: MenuItem(const char* text, const char* fontName, int fontSize, SDL_Color color, SDL_Color selectedColor); ~MenuItem(...
24.35
66
(translation_unit) "#pragma once \n#include "Dina/Graphic/Graphic.h" \n#include "Dina/Graphic/Font.h" \n#include "Dina/Graphic/Quad.h" \n#include <functional> \n \nnamespace Dina \n{ \n \n class DINA_API MenuItem \n { \n public: \n MenuItem(const char* text, const char* fontName, int fontSize, SDL_Color color, SDL_Col...
539
19
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 24.35, "nodes": 367, "errors": 0, "source_hash": "ac0bb693114d22f167dd369d3b81510bf0550141f98d3b27ced5651d629c456c", "categorized_nodes": 214}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
5,343
c
// Copyright information can be found in the file named COPYING // located in the root directory of this distribution. #ifndef _GUIDEBUGGER_H_ #define _GUIDEBUGGER_H_ #ifndef _GUIARRAYCTRL_H_ #include "gui/core/guiArrayCtrl.h" #endif class DbgFileView : public GuiArrayCtrl { private: typedef GuiArrayCtrl Paren...
29.25
61
(translation_unit) "// Copyright information can be found in the file named COPYING\n// located in the root directory of this distribution.\n\n#ifndef _GUIDEBUGGER_H_\n#define _GUIDEBUGGER_H_\n\n#ifndef _GUIARRAYCTRL_H_\n#include "gui/core/guiArrayCtrl.h"\n#endif\n\nclass DbgFileView : public GuiArrayCtrl\n{\n private...
430
6
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 29.25, "nodes": 272, "errors": 0, "source_hash": "64b932e584e3cdd8f1a03c905dac3eda603ba468ea972169d5913aee491b2579", "categorized_nodes": 192}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,344
c
#import <UIKit/UIKit.h> #import <MAMapKit/MAMapKit.h> #import <AMapFoundationKit/AMapFoundationKit.h> #import "MapHeaderView.h" #import "AMapRouteInfo.h" @interface TraceViewController : UIViewController<MAMapViewDelegate> - (id)initWithInfo:(AMapRouteInfo *)route traceTitle:(NSString *)title; @end
26.82
11
(translation_unit) "#import <UIKit/UIKit.h>\n#import <MAMapKit/MAMapKit.h>\n#import <AMapFoundationKit/AMapFoundationKit.h>\n#import "MapHeaderView.h"\n#import "AMapRouteInfo.h"\n \n \n@interface TraceViewController : UIViewController<MAMapViewDelegate>\n \n- (id)initWithInfo:(AMapRouteInfo *)route traceTitle:(NSString...
57
6
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 26.82, "nodes": 41, "errors": 0, "source_hash": "31985eca321c54ac16b04d6796e030c608801db0c8f05a1118bf677c9d0d198d", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
5,345
c
#ifdef E_TYPEDEFS #else #ifndef E_XKB_H #define E_XKB_H EAPI int e_xkb_init(void); EAPI int e_xkb_shutdown(void); EAPI void e_xkb_update(int); EAPI void e_xkb_layout_next(void); EAPI void e_xkb_layout_prev(void); EAPI E_Config_XKB_Layout *e_xkb_layout_get(void); EAPI void e_xkb_layout_set(const E_Config_XKB_Layout *cl...
40.25
20
(translation_unit) "#ifdef E_TYPEDEFS\n#else\n#ifndef E_XKB_H\n#define E_XKB_H\n\nEAPI int e_xkb_init(void);\nEAPI int e_xkb_shutdown(void);\nEAPI void e_xkb_update(int);\nEAPI void e_xkb_layout_next(void);\nEAPI void e_xkb_layout_prev(void);\nEAPI E_Config_XKB_Layout *e_xkb_layout_get(void);\nEAPI void e_xkb_layout_se...
243
13
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 40.25, "nodes": 180, "errors": 0, "source_hash": "b7aacaef5f62bede3326d998c4e252c94655c80e292628a53e6e79677ddb790d", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef...
5,346
c
/* Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. This program is distributed in the hope that it would...
36.67
136
(translation_unit) "/*\n\n Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved.\n\n This program is free software; you can redistribute it and/or modify it\n under the terms of version 2 of the GNU General Public License as\n published by the Free Software Foundation.\n\n This program is distribut...
1,397
0
{"language": "c", "success": true, "metadata": {"lines": 136, "avg_line_length": 36.67, "nodes": 780, "errors": 0, "source_hash": "1667a4eeae9488cd40bd097c89cec57e935fcd5ea4c3aa1051b9737c77f6dbec", "categorized_nodes": 608}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,347
c
#pragma once #ifndef __node_H__ #define __node_H__ #include <Interface/LogOutput/Logger.h> #include <string> #include <vector> class Node { protected: int node_id_; // node番号 std::string node_label_; // node name int heater_node_id_; // heater node番号 double temperature_; // 温度[K] d...
35.17
41
(translation_unit) "#pragma once\n\n#ifndef __node_H__\n#define __node_H__\n\n#include <Interface/LogOutput/Logger.h>\n\n#include <string>\n#include <vector>\n\nclass Node {\n protected:\n int node_id_; // node番号\n std::string node_label_; // node name\n int heater_node_id_; // heater node番号\n dou...
329
21
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 35.17, "nodes": 217, "errors": 0, "source_hash": "f5c311a2690dad40932595d9586597fb2db9e827381865f58238b06734ff4648", "categorized_nodes": 135}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
5,348
c
// // FCCollectionViewSectionModel.h // FCBaseKit // // Created by 石富才 on 2020/12/16. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import "FCBaseKitHeader.h" @class FCCollectionViewItemModel; @interface FCCollectionViewSectionModel : NSObject /** 事件集合 */ @property(nonatomic, strong)NSMutableDict...
33.48
90
(translation_unit) "//\n// FCCollectionViewSectionModel.h\n// FCBaseKit\n//\n// Created by 石富才 on 2020/12/16.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n#import "FCBaseKitHeader.h"\n\n@class FCCollectionViewItemModel;\n@interface FCCollectionViewSectionModel : NSObject\n\n/** 事件集合 */\n@prope...
631
131
{"language": "c", "success": true, "metadata": {"lines": 90, "avg_line_length": 33.48, "nodes": 453, "errors": 0, "source_hash": "33ecc61e2ea379baacd0cbe261494a6acf5fd054b7839056f2a1e8e191740755", "categorized_nodes": 246}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "t <Foun...
5,349
c
// // LGGBaseApi.h // LeoInitDemo // // Created by LeoGege on 3/15/21. // #import <YTKNetwork/YTKNetwork.h> NS_ASSUME_NONNULL_BEGIN @interface LGGBaseApi : YTKRequest @end NS_ASSUME_NONNULL_END
16.91
11
(translation_unit) "//\n// LGGBaseApi.h\n// LeoInitDemo\n//\n// Created by LeoGege on 3/15/21.\n//\n\n#import <YTKNetwork/YTKNetwork.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface LGGBaseApi : YTKRequest\n\n@end\n\nNS_ASSUME_NONNULL_END\n\n" (comment) "//" (comment) "// LGGBaseApi.h" (comment) "// LeoInitDemo" ...
26
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 16.91, "nodes": 15, "errors": 0, "source_hash": "a6c620430ad3446fd4b163022535768537167f66e74c7d92d5d4ab8102428f37", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Y...
5,350
c
#include <_ansi.h> #include <sys/types.h> #include <sys/stat.h> #include "sys/syscall.h" int errno; int __trap0 (int function, int p1, int p2, int p3); #define TRAP0(f, p1, p2, p3) __trap0(f, (int)(p1), (int)(p2), (int)(p3)) caddr_t _sbrk (int incr) { extern char end; /* Defined by the linker */ static char *h...
20.71
31
(translation_unit) "#include <_ansi.h>\n#include <sys/types.h>\n#include <sys/stat.h>\n#include "sys/syscall.h"\n\nint errno;\n\nint __trap0 (int function, int p1, int p2, int p3);\n\n#define TRAP0(f, p1, p2, p3) __trap0(f, (int)(p1), (int)(p2), (int)(p3))\n\ncaddr_t\n_sbrk (int incr)\n{\n extern char end; /* Defined...
211
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 20.71, "nodes": 138, "errors": 0, "source_hash": "b39dacff8580da683764607f545bdaea41ef39bc7aede5697fc9d665855bbf87", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
5,351
c
#pragma once #include "chromapch.h" #include "Event.h" namespace Chroma { /// @brief Event for when a key is pressed down. /// /// This event only occurs once per key press. /// @see KeyCodes.h for list of Key Codes. class CHROMA_API KeyEvent : public Event { public: /// @brief Gets the keycode of the key pr...
27.99
102
(translation_unit) "#pragma once\n\n#include "chromapch.h"\n#include "Event.h"\n\nnamespace Chroma\n{\n /// @brief Event for when a key is pressed down.\n ///\n /// This event only occurs once per key press.\n /// @see KeyCodes.h for list of Key Codes.\n class CHROMA_API KeyEvent : public Event\n {\n public:\n /// @br...
465
26
{"language": "c", "success": true, "metadata": {"lines": 102, "avg_line_length": 27.99, "nodes": 227, "errors": 0, "source_hash": "bb2c8d915632826b3b1a8f059b0f0dab9682df0525d93e76c8ead7fbfaaafad6", "categorized_nodes": 151}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
5,352
c
/****************************************************************************** * * Copyright (C) 2018 - 2019 Xilinx, Inc. All rights reserved. * * 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 Softw...
31.61
93
(translation_unit) "/******************************************************************************\n*\n* Copyright (C) 2018 - 2019 Xilinx, Inc. All rights reserved.\n*\n* Permission is hereby granted, free of charge, to any person obtaining a copy\n* of this software and associated documentation files (the "Software"...
150
0
{"language": "c", "success": true, "metadata": {"lines": 93, "avg_line_length": 31.61, "nodes": 118, "errors": 0, "source_hash": "49d511bcfb5371165f019af49f76800ae57a803a683cec0b8f6466e4e38cc9ad", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,353
c
/* AFE Firmware for smart home devices LICENSE: https://github.com/tschaban/AFE-Firmware/blob/master/LICENSE DOC: https://www.smartnydom.pl/afe-firmware-pl/ */ #ifndef _AFE_HTTP_COMMAND_Structure_h #define _AFE_HTTP_COMMAND_Structure_h #if defined(ARDUINO) && ARDUINO >= 100 #include "arduino.h" #else #include "WP...
24.88
17
(translation_unit) "/* AFE Firmware for smart home devices\n LICENSE: https://github.com/tschaban/AFE-Firmware/blob/master/LICENSE\n DOC: https://www.smartnydom.pl/afe-firmware-pl/ */\n\n#ifndef _AFE_HTTP_COMMAND_Structure_h\n#define _AFE_HTTP_COMMAND_Structure_h\n\n#if defined(ARDUINO) && ARDUINO >= 100\n#include "a...
77
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 24.88, "nodes": 51, "errors": 0, "source_hash": "44f53eaac2b6ec7e40b57c440f23aa9f5d984f1e98c269bc56389566953118f5", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,354
c
#ifndef PACMAN_DIFFICULTY_H #define PACMAN_DIFFICULTY_H #include <cstdint> /** * @brief Stores game difficulity configurations for different levels */ class Difficulty { public: /** * @brief Difficulity levels, higher is more difficult */ enum class Level { Level1, Level2, ...
21.11
36
(ERROR) "#ifndef PACMAN_DIFFICULTY_H\n#define PACMAN_DIFFICULTY_H\n\n\n#include <cstdint>\n\n/**\n * @brief Stores game difficulity configurations for different levels\n */\nclass Difficulty\n{\npublic:\n /**\n * @brief Difficulity levels, higher is more difficult\n */\n enum class Level\n {\n L...
101
6
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 21.11, "nodes": 52, "errors": 0, "source_hash": "bcdc2acf7005cd3d014d3b2c3deef78e0bb3d6baec5e01c57a4d6c20c71cfe48", "categorized_nodes": 36}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef PACMAN_DIFFICULTY_H...
5,355
c
#ifndef EXT_MPI_RAW_CODE_H_ #define EXT_MPI_RAW_CODE_H_ #ifdef __cplusplus extern "C" { #endif int ext_mpi_generate_raw_code(char *buffer_in, char *buffer_out); #ifdef __cplusplus } #endif #endif
16.82
11
(translation_unit) "#ifndef EXT_MPI_RAW_CODE_H_\n\n#define EXT_MPI_RAW_CODE_H_\n\n#ifdef __cplusplus\nextern "C"\n{\n#endif\n\nint ext_mpi_generate_raw_code(char *buffer_in, char *buffer_out);\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif\n" (preproc_ifdef) "#ifndef EXT_MPI_RAW_CODE_H_\n\n#define EXT_MPI_RAW_CODE_H_\n\n...
46
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 16.82, "nodes": 35, "errors": 0, "source_hash": "25d1f9276f2f7ff7793042df34c27806fecea7491eed1a74b5c5b5a6757c4e8d", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,356
c
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif #import "NBLSideSlipFilter.h" #import "NBLSSFCell.h" #import "NBLSSFGroup.h" #import "NBLSSFHeaderView.h" #import "NBLSSFItem...
24.53
19
(translation_unit) "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#else\n#ifndef FOUNDATION_EXPORT\n#if defined(__cplusplus)\n#define FOUNDATION_EXPORT extern "C"\n#else\n#define FOUNDATION_EXPORT extern\n#endif\n#endif\n#endif\n\n#import "NBLSideSlipFilter.h"\n#import "NBLSSFCell.h"\n#import "NBLSSFGroup.h"\n#import "NBLS...
70
1
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 24.53, "nodes": 60, "errors": 0, "source_hash": "508b39b9fca95c30929d9614747e90851749a803d76409e86e3cefd8151ff2e9", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef _...
5,357
c
/* This file is part of AWind library Copyright (c) 2014-2018 <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law ...
31.03
107
(translation_unit) "/*\nThis file is part of AWind library\n\nCopyright (c) 2014-2018 <NAME>\n\nLicensed under the Apache License, Version 2.0 (the "License"); you\nmay not use this file except in compliance with the License. You may\nobtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnl...
614
7
{"language": "c", "success": true, "metadata": {"lines": 107, "avg_line_length": 31.03, "nodes": 392, "errors": 0, "source_hash": "425abdd2abbfdfad47e7e44c0daeeb13a31f4b26eb586020babb24679bc8efd2", "categorized_nodes": 269}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
5,358
c
// // CodeImage.h // // Copyright © 2016年 孙凌锋. All rights reserved. // #import <UIKit/UIKit.h> @interface CodeImage : UIImage + (UIImage *)qrImageForString:(NSString *)string imageSize:(CGFloat)Imagesize logoImageSize:(CGFloat)waterImagesize; @end
26.78
9
(translation_unit) "//\n// CodeImage.h\n//\n// Copyright © 2016年 孙凌锋. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface CodeImage : UIImage\n+ (UIImage *)qrImageForString:(NSString *)string imageSize:(CGFloat)Imagesize logoImageSize:(CGFloat)waterImagesize;\n@end\n" (comment) "//" (comment) "// C...
58
6
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 26.78, "nodes": 35, "errors": 0, "source_hash": "fd852c6289368ca6950ba18cac76225d475226e6565550f07e99fc73cf5db705", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "UIKit/UIKi...
5,359
c
#pragma once #include "RandomNumber.h" #include "RandomVector.h" #include <iostream> double ** CreateRandomMatrix(int n); void PrintMatrix(double ** matrix, int size); void DeleteMatrix(double ** matrix, int size);
29.71
7
(translation_unit) "#pragma once\n#include "RandomNumber.h"\n#include "RandomVector.h"\n#include <iostream>\n\ndouble ** CreateRandomMatrix(int n);\nvoid PrintMatrix(double ** matrix, int size);\nvoid DeleteMatrix(double ** matrix, int size);" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (pre...
72
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 29.71, "nodes": 54, "errors": 0, "source_hash": "2a77b3bc0f77bd366a68706162ade3bd5e7e43668395590f089268fc9e13ab72", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
5,360
c
// // NSMenuItem+Additions.h // ColdBrew // // Created by <NAME> on 11/14/14. // Copyright (c) 2014 <NAME>. All rights reserved. // @import Cocoa; @interface NSMenuItem (Additions) + (instancetype)itemWithTitle:(NSString *)title target:(id)target action:(SEL)action; ...
23.77
13
(translation_unit) "//\n// NSMenuItem+Additions.h\n// ColdBrew\n//\n// Created by <NAME> on 11/14/14.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n\n@import Cocoa;\n\n@interface NSMenuItem (Additions)\n\n+ (instancetype)itemWithTitle:(NSString *)title\n target:(id)target\n ...
64
8
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 23.77, "nodes": 34, "errors": 0, "source_hash": "6b6a406854be56de9b6d753dfb4e03128268d4745a34eb7485866d2d9b88e50c", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nu...
5,361
c
/** @file AppleUserInterfaceTheme protocol Copyright (c) 2016-2018, vit9696. All rights reserved.<BR> Portions copyright (c) 2018, savvas. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distr...
28.3
89
(translation_unit) "/** @file\nAppleUserInterfaceTheme protocol\n\nCopyright (c) 2016-2018, vit9696. All rights reserved.<BR>\nPortions copyright (c) 2018, savvas. All rights reserved.<BR>\n\nThis program and the accompanying materials\nare licensed and made available under the terms and conditions of the BSD License\n...
380
4
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 28.3, "nodes": 230, "errors": 0, "source_hash": "ea751f0a6b800429c123a062fa20dc08d1b5377409b17d0039bf9e4ef5902038", "categorized_nodes": 174}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
5,362
c
/* * mip/cg.h * Copyright (C) Acorn Computers Ltd., 1988-1990. * Copyright (C) Codemist Ltd., 1987-1992. * Copyright (C) Advanced RISC Machines Limited, 1991-1992. * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ * Checkin $Date$ * Revising $Author$ */ #ifndef _cg_h #define _cg_h 1 #ifndef _def...
28.94
52
(translation_unit) "/*\n * mip/cg.h\n * Copyright (C) Acorn Computers Ltd., 1988-1990.\n * Copyright (C) Codemist Ltd., 1987-1992.\n * Copyright (C) Advanced RISC Machines Limited, 1991-1992.\n * SPDX-Licence-Identifier: Apache-2.0\n */\n\n/*\n * RCS $Revision$\n * Checkin $Date$\n * Revising $Author$\n */\n\n#ifndef _...
329
0
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 28.94, "nodes": 250, "errors": 0, "source_hash": "60e1211e03dae16376882f1aacdc9a957a2db9476518fbae5524e9452c0caee7", "categorized_nodes": 162}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,363
c
// // JJCategoryKit // // Created by <EMAIL> on 06/05/2019. // Copyright (c) 2019 <EMAIL>. All rights reserved. // #import <UIKit/UIKit.h> @interface UIView (Category) //把View加在Window上 - (void) addToWindow; @end @interface UIView (Screenshot) /** view截图 @param compressionQuality 图片的质量:0~1 @return 返回的图片 */ ...
19.9
48
(translation_unit) "//\n// JJCategoryKit\n//\n// Created by <EMAIL> on 06/05/2019.\n// Copyright (c) 2019 <EMAIL>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIView (Category)\n//把View加在Window上\n- (void) addToWindow;\n\n@end\n\n@interface UIView (Screenshot)\n\n/**\n view截图\n\n @param compress...
165
17
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 19.9, "nodes": 102, "errors": 0, "source_hash": "1602489b589f40611cf4398f4dd311c3b63758b10aaf42eb5d109fe36dbc2a17", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
5,364
c
/* * Copyright © 2018 AperLambda <<EMAIL>> * * This file is part of IonicLemon. * * Licensed under the MIT license. For more information, * see the LICENSE file. */ #ifndef IONICLEMON_LIBRARY_H #define IONICLEMON_LIBRARY_H #define IONICLEMON_VERSION_MAJOR 0 #define IONICLEMON_VERSION_MINOR 1 #define IONICLEMON...
24.28
54
(translation_unit) "/*\n * Copyright © 2018 AperLambda <<EMAIL>>\n *\n * This file is part of IonicLemon.\n *\n * Licensed under the MIT license. For more information,\n * see the LICENSE file.\n */\n\n#ifndef IONICLEMON_LIBRARY_H\n#define IONICLEMON_LIBRARY_H\n\n#define IONICLEMON_VERSION_MAJOR 0\n#define IONICLEMON_V...
248
11
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 24.28, "nodes": 166, "errors": 0, "source_hash": "95fbc9e12ad4017396b6fc41962ca297282f11312ba6bbba13319728525b6138", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef...
5,365
c
/*++ Copyright (c) Microsoft Corporation. All rights reserved. _WdfVersionBuild_ Module Name: SensorscxFuncEnum.h Abstract: Generated an enum of all WDF API functions Environment: kernel mode only Warning: manual changes to this file will be lost. --*/ #ifndef _SENSORSCXFUNCENUM_H_ #define _SENSORSC...
34.2
25
(translation_unit) "/*++\n\nCopyright (c) Microsoft Corporation. All rights reserved.\n\n_WdfVersionBuild_\n\nModule Name: SensorscxFuncEnum.h\n\nAbstract:\n Generated an enum of all WDF API functions\n\nEnvironment:\n kernel mode only\n\n Warning: manual changes to this file will be lost.\n--*/\n\n#ifndef _S...
71
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 34.2, "nodes": 55, "errors": 0, "source_hash": "8c3a5268f461245015acd3fa3ba65a7da7d70918d56277c2d9a88de153bcf950", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
5,366
c
// // UIBezierPath+BBDraw.h // BaoBao // // Created by yixiaoluo on 15/12/3. // Copyright © 2015年 yixiaoluo. All rights reserved. // #import <UIKit/UIKit.h> @interface UIBezierPath (BBDraw) + (instancetype)defaultDrawBezierPath; @end
20.64
11
(translation_unit) "//\n// UIBezierPath+BBDraw.h\n// BaoBao\n//\n// Created by yixiaoluo on 15/12/3.\n// Copyright © 2015年 yixiaoluo. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIBezierPath (BBDraw)\n\n+ (instancetype)defaultDrawBezierPath;\n\n@end\n" (comment) "//" (comment) "// UIBezie...
35
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 20.64, "nodes": 19, "errors": 0, "source_hash": "141e92a4732c03a0386e8be56584fb172fc0752d757158bb7d5be99fa21a9f49", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
5,367
c
/*$ Copyright (c) 2014-2017, Azel All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the follow...
26.09
135
(translation_unit) "/*$\nCopyright (c) 2014-2017, Azel\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n * Redistributions of source code must retain the above copyright\n notice, this list o...
722
0
{"language": "c", "success": true, "metadata": {"lines": 135, "avg_line_length": 26.09, "nodes": 491, "errors": 0, "source_hash": "13da5ae8b205a53f42fa22a0ce5c4672dc8d17bb4880398445ae286c62f03622", "categorized_nodes": 333}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,368
c
/* * include/asm-sh/cpu-sh4/freq.h * * Copyright (C) 2002, 2003 <NAME> * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. */ #ifndef __ASM_CPU_SH4_FREQ_H #define __ASM_CPU_SH4_FREQ_H #if def...
30.05
64
(translation_unit) "/*\n * include/asm-sh/cpu-sh4/freq.h\n *\n * Copyright (C) 2002, 2003 <NAME>\n *\n * This file is subject to the terms and conditions of the GNU General Public\n * License. See the file "COPYING" in the main directory of this archive\n * for more details.\n */\n#ifndef __ASM_CPU_SH4_FREQ_H\n#define...
261
0
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 30.05, "nodes": 236, "errors": 0, "source_hash": "6b121f0f7db4b34c92d8df071e889ef3e5530a1b0d17d0bc76bb2a5d3057798c", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,369
c
/* * Copyright 2014 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkPictureRecorder_DEFINED #define SkPictureRecorder_DEFINED #include "SkBBHFactory.h" #include "SkPicture.h" #include "SkRefCnt.h" #ifdef SK_BUILD_FOR_ANDROID_FRAMEW...
40.33
76
(translation_unit) "/*\n * Copyright 2014 Google Inc.\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#ifndef SkPictureRecorder_DEFINED\n#define SkPictureRecorder_DEFINED\n\n#include "SkBBHFactory.h"\n#include "SkPicture.h"\n#include "SkRefCnt.h"\n\n...
307
7
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 40.33, "nodes": 190, "errors": 0, "source_hash": "92edf185279791607782f10c66d8c6459f358bc98d909b382a9e5b5148bc9813", "categorized_nodes": 121}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,370
c
// -*- c++ -*- // Generated by gmmproc 2.47.3.1 -- DO NOT MODIFY! #ifndef _ATKMM_RANGE_H #define _ATKMM_RANGE_H #include <glibmm/ustring.h> #include <sigc++/sigc++.h> /* * Copyright (C) 2015 The atkmm Development Team * * This library is free software; you can redistribute it and/or * modify it under the terms o...
29.09
125
(translation_unit) "// -*- c++ -*-\n// Generated by gmmproc 2.47.3.1 -- DO NOT MODIFY!\n#ifndef _ATKMM_RANGE_H\n#define _ATKMM_RANGE_H\n\n\n#include <glibmm/ustring.h>\n#include <sigc++/sigc++.h>\n\n/*\n * Copyright (C) 2015 The atkmm Development Team\n *\n * This library is free software; you can redistribute it and/o...
446
33
{"language": "c", "success": true, "metadata": {"lines": 125, "avg_line_length": 29.09, "nodes": 264, "errors": 0, "source_hash": "8f8bca7f4db373037db9cbe86694d8b72ae9376476ff8a14799148f180398f17", "categorized_nodes": 173}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef _ATKM...
5,371
c
#include "coro.h" #include <stdlib.h> #include <stdio.h> struct creroutine *cre_main = 0; volatile struct creroutine *cre_current = 0; void switch_to_main(void) { struct creroutine *backup = (struct creroutine *)cre_current; cre_current = 0; swapcontext((ucontext_t *)&backup->context, (ucontext_t *)&cre_main->cont...
31.56
84
(translation_unit) "#include "coro.h"\n#include <stdlib.h>\n#include <stdio.h>\n\nstruct creroutine *cre_main = 0;\nvolatile struct creroutine *cre_current = 0;\n\nvoid switch_to_main(void) {\n struct creroutine *backup = (struct creroutine *)cre_current;\n cre_current = 0;\n swapcontext((ucontext_t *)&backup->context,...
950
0
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 31.56, "nodes": 593, "errors": 0, "source_hash": "70350b327d353574a5fab7037c4942ce4ef130b5843e92402b285edfcee16957", "categorized_nodes": 426}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,372
c
/* * CellProperty.h * * Created on: Apr 19, 2015 * Author: TheAnswer */ #ifndef CELLPROPERTY_H_ #define CELLPROPERTY_H_ #include "engine/engine.h" #include "templates/IffTemplate.h" #include "templates/collision/BaseBoundingVolume.h" #include "templates/appearance/FloorMesh.h" #include "templates/appearan...
22.44
98
(translation_unit) "/*\n * CellProperty.h\n *\n * Created on: Apr 19, 2015\n * Author: TheAnswer\n */\n\n#ifndef CELLPROPERTY_H_\n#define CELLPROPERTY_H_\n\n#include "engine/engine.h"\n\n#include "templates/IffTemplate.h"\n#include "templates/collision/BaseBoundingVolume.h"\n#include "templates/appearance/FloorMe...
614
24
{"language": "c", "success": true, "metadata": {"lines": 98, "avg_line_length": 22.44, "nodes": 337, "errors": 0, "source_hash": "7a785071bcacb68a96d238a92e25fe411fdcee3f354c0fd836363ef4d3171d0b", "categorized_nodes": 220}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,373
c
/******************************************************************************* * * Copyright (C) 2014-2018 Wave Computing, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source c...
32.02
171
(translation_unit) "/*******************************************************************************\n *\n * Copyright (C) 2014-2018 Wave Computing, Inc.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. ...
695
6
{"language": "c", "success": true, "metadata": {"lines": 171, "avg_line_length": 32.02, "nodes": 423, "errors": 0, "source_hash": "93a19e3d21419a4987ab8f66140dc11486aaf710a7ef527a52e4589ce8cd945a", "categorized_nodes": 311}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,374
c
#import <Foundation/Foundation.h> #import <Cordova/CDVPlugin.h> @interface ValuePay : CDVPlugin { } //接口方法, command.arguments[0]获取前端传递的参数 - (void)pay:(CDVInvokedUrlCommand*)command; @end
25.71
7
(translation_unit) "#import <Foundation/Foundation.h>\n#import <Cordova/CDVPlugin.h>\n\n@interface ValuePay : CDVPlugin {\n\n}\n\n//接口方法, command.arguments[0]获取前端传递的参数\n- (void)pay:(CDVInvokedUrlCommand*)command;\n\n@end\n" (preproc_call) "#import <Foundation/Foundation.h>\n" (preproc_directive) "#import" (pr...
43
7
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 25.71, "nodes": 28, "errors": 0, "source_hash": "e9644357bbfbd2e97757bbac88ceb0d9592647205f92524f9c0a477820b9ebdc", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
5,375
c
/////////////////////////////////////////////////////////////////////////////// // // Copyright (C) 2008-2015 <NAME> (Tonkikh) <<EMAIL>> // // See accompanyin...
20.88
331
(translation_unit) "///////////////////////////////////////////////////////////////////////////////\n// \n// Copyright (C) 2008-2015 <NAME> (Tonkikh) <<EMAIL>> \n// ...
2,771
57
{"language": "c", "success": true, "metadata": {"lines": 331, "avg_line_length": 20.88, "nodes": 1578, "errors": 0, "source_hash": "ac33f0981d4c05d90d9a9c4a4804c0477c8593c60a310c5af0cfb1d02bfd8a18", "categorized_nodes": 1114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#if...
5,376
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* findShifted.c :+: :+: :+: ...
29.29
56
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* findShifted.c ...
401
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 29.29, "nodes": 246, "errors": 0, "source_hash": "a5c8a815bc6dd2b08012f364f7125f6c720c77b26b4513e43414feabad035a7b", "categorized_nodes": 184}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,377
c
#ifndef _zlibDllConfig_h #define _zlibDllConfig_h /* #undef ZLIB_DLL */ #endif
18.75
4
(translation_unit) "#ifndef _zlibDllConfig_h\n#define _zlibDllConfig_h\n\n/* #undef ZLIB_DLL */\n\n#endif\n" (preproc_ifdef) "#ifndef _zlibDllConfig_h\n#define _zlibDllConfig_h\n\n/* #undef ZLIB_DLL */\n\n#endif" (#ifndef) "#ifndef" (identifier) "_zlibDllConfig_h" (preproc_def) "#define _zlibDllConfig_h\n...
9
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 18.75, "nodes": 7, "errors": 0, "source_hash": "2ace41bce8663cc719e854ae842b83e4ea2de092016fccf20230cd5e75505a49", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _zl...
5,378
c
/*- * Copyright (c) 1990 The Regents of the University of California. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
33.7
262
(translation_unit) "/*-\n * Copyright (c) 1990 The Regents of the University of California.\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must r...
1,368
3
{"language": "c", "success": true, "metadata": {"lines": 262, "avg_line_length": 33.7, "nodes": 890, "errors": 0, "source_hash": "82f08934de5f43fa389b2f9e573875c0d42edf25f4bcfbc8a8bdecb9c3d6e641", "categorized_nodes": 616}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if defin...
5,379
c
#ifndef DISPLAY_NULL_H #define DISPLAY_NULL_H #include "copper.h" copper_list_t *get_copper_null(void); void display_null_init(void); #endif
22.5
6
(translation_unit) "#ifndef DISPLAY_NULL_H\n#define DISPLAY_NULL_H\n\n#include "copper.h"\n\ncopper_list_t *get_copper_null(void);\nvoid display_null_init(void);\n\n#endif\n" (preproc_ifdef) "#ifndef DISPLAY_NULL_H\n#define DISPLAY_NULL_H\n\n#include "copper.h"\n\ncopper_list_t *get_copper_null(void);\nvoid display_n...
36
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 22.5, "nodes": 26, "errors": 0, "source_hash": "dd2bec60ea2fb22838386c149ea1e4e4f16b98052b102b88b0127d550cdc1e5e", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef DI...
5,380
c
#ifndef RANS_RANSDECODER_H #define RANS_RANSDECODER_H #include "Helper.h" class rANSDecoder { public: rANSDecoder() : state_(0) {} void Decode(const std::vector <uint8_t> &input_buffer, std::vector <uint8_t> &decoded_buffer); private: uint32_t state_; }; #endif //RANS_RANSDECODER_H
25.82
11
(translation_unit) "#ifndef RANS_RANSDECODER_H\n#define RANS_RANSDECODER_H\n\n#include "Helper.h"\n\nclass rANSDecoder {\npublic:\n rANSDecoder() : state_(0) {}\n\n void Decode(const std::vector <uint8_t> &input_buffer, std::vector <uint8_t> &decoded_buffer);\nprivate:\n uint32_t state_;\n};\n\n#endif //RANS_R...
82
3
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 25.82, "nodes": 46, "errors": 0, "source_hash": "ffcc49b410afaf33d1899eaa490c261d02c3f8e8ae5935ae36c7b23a9243d0d7", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,381
c
/* This file attempts to test the retired branches instruction */ /* performance counter PAPI_BR_INS */ /* by <NAME>, <<EMAIL>> */ /* This test seems to work on: */ /* + x86 */ /* + ARMv6 (Raspberry Pi) */ /* It is known to not work on: */ /* + ARMv7 (Pi2 CortexA7 Panda CortexA9 */ /* failure is odd, 1/3...
28.55
76
(translation_unit) "/* This file attempts to test the retired branches instruction */\n/* performance counter PAPI_BR_INS */\n\n/* by <NAME>, <<EMAIL>> */\n\n/* This test seems to work on: */\n/* + x86 */\n/* + ARMv6 (Raspberry Pi) */\n/* It is known to not work on: */\n/* + ARMv7 (Pi2 CortexA7 Panda CortexA...
638
0
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 28.55, "nodes": 354, "errors": 0, "source_hash": "a0d190b7ffebf2395f9228bb2236cdd5ad529ca95a8e9dc7f0b0ad0806d3fadd", "categorized_nodes": 262}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,382
c
#ifndef CLIENT_MANAGER_H #define CLIENT_MANAGER_H #include <string> #include <SimpleIni.h> #include "logger.h" class Client_Manager{ public: Client_Manager(Logger *logger); ~Client_Manager(); bool is_new(std::string user); bool is_admin(std::string user); void add(std::string user); private: C...
20.71
17
(translation_unit) "#ifndef CLIENT_MANAGER_H\n#define CLIENT_MANAGER_H\n\n#include <string>\n\n#include <SimpleIni.h>\n\n#include "logger.h"\n\nclass Client_Manager{\npublic:\n Client_Manager(Logger *logger);\n ~Client_Manager();\n bool is_new(std::string user);\n bool is_admin(std::string user);\n\n voi...
109
3
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 20.71, "nodes": 70, "errors": 0, "source_hash": "4d7fc48d4b0f9807f18a3b2da8905bba57356ae3c1f0bfa0e370fe1016184ba4", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,383
c
// // DBInit.h // iEnglish // // Created by Jacob on 16/3/20. // Copyright (c) 2016年 Jacob. All rights reserved. // #import <Foundation/Foundation.h> @interface DBInit : NSObject + (void)dbInit; @end
17.55
11
(translation_unit) "//\n// DBInit.h\n// iEnglish\n//\n// Created by Jacob on 16/3/20.\n// Copyright (c) 2016年 Jacob. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface DBInit : NSObject\n+ (void)dbInit;\n@end\n" (comment) "//" (comment) "// DBInit.h" (comment) "// iEnglish" (comme...
35
5
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 17.55, "nodes": 18, "errors": 0, "source_hash": "d85b8d5dbf644e9c9fca7c82874435f5db8c1e382006d33c0408ece56e0672b8", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <Fou...
5,384
c
/********************* */ /*! \file RowBoundTightenerFactory.h ** \verbatim ** Top contributors (to current version): ** <NAME> ** This file is part of the Marabou project. ** Copyright (c) 2017-2019 by the authors listed in the file AUTHORS ** in the top-l...
32.69
42
(translation_unit) "/********************* */\n/*! \file RowBoundTightenerFactory.h\n ** \verbatim\n ** Top contributors (to current version):\n ** <NAME>\n ** This file is part of the Marabou project.\n ** Copyright (c) 2017-2019 by the authors listed in the fil...
134
5
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 32.69, "nodes": 71, "errors": 0, "source_hash": "ee22949272e73cf4c9a8b8c2c2d32c4557c26d76f866529abde1f132e56686ab", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,385
c
#ifndef __MEMORY_VADDR_H__ #define __MEMORY_VADDR_H__ #include <common.h> static inline word_t vaddr_read(vaddr_t addr, int len) { word_t vaddr_read1(vaddr_t addr); word_t vaddr_read2(vaddr_t addr); word_t vaddr_read4(vaddr_t addr); word_t vaddr_read8(vaddr_t addr); switch (len) { case 1: return vaddr_r...
28.94
54
(translation_unit) "#ifndef __MEMORY_VADDR_H__\n#define __MEMORY_VADDR_H__\n\n#include <common.h>\n\nstatic inline word_t vaddr_read(vaddr_t addr, int len) {\n word_t vaddr_read1(vaddr_t addr);\n word_t vaddr_read2(vaddr_t addr);\n word_t vaddr_read4(vaddr_t addr);\n word_t vaddr_read8(vaddr_t addr);\n switch (len...
497
0
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 28.94, "nodes": 329, "errors": 0, "source_hash": "27645ac1d547d822970060c17f431cec5d75fec3801d5e22ff22fecc57ae0b68", "categorized_nodes": 263}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,386
c
/* Copyright (c) 2018 <EMAIL> Generate huge dense matrix using MPI IO The size is given by cmd line Usage: ./generate n1 n2 file params: n1, row n2, col file: output file NOTE: YOU MUST USE 81 PROCS TO RUN THIS PROGRAM THE FINAL MATRIX SIZE IS 9*n1 x 9*n2 THIS CODE IS UNDER MIT LICENCE. */ #includ...
24.53
159
(translation_unit) "/*\n Copyright (c) 2018 <EMAIL>\n Generate huge dense matrix using MPI IO\n The size is given by cmd line\n\n Usage:\n ./generate n1 n2 file\n params:\n n1, row \n n2, col\n file: output file\n NOTE:\n YOU MUST USE 81 PROCS TO RUN THIS PROGRAM\n THE FINAL MATRIX SIZE IS 9*n1 x 9*n2\n\n THIS CO...
1,491
0
{"language": "c", "success": true, "metadata": {"lines": 159, "avg_line_length": 24.53, "nodes": 888, "errors": 0, "source_hash": "932201b6b6f4d1f92fbf0a7a2d0997d28483505de2a9d6ab6eb518b98a99d078", "categorized_nodes": 607}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,387
c
// // ModelUserM.h // modelAchive // // Created by hbgl on 17/12/8. // Copyright © 2017年 cpf. All rights reserved. // #import <Foundation/Foundation.h> #import "ModelUser.h" @interface ModelUserM : NSObject<NSCoding> +(void)saving:(ModelUser*)user; +(ModelUser*)user; @end
20.31
13
(translation_unit) "//\n// ModelUserM.h\n// modelAchive\n//\n// Created by hbgl on 17/12/8.\n// Copyright © 2017年 cpf. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n#import "ModelUser.h"\n@interface ModelUserM : NSObject<NSCoding>\n+(void)saving:(ModelUser*)user;\n+(ModelUser*)user;\n@end\n" (c...
58
5
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 20.31, "nodes": 35, "errors": 0, "source_hash": "bf8a14586adbd59fd94dd16b104fea3a89bc6f6154c0c3392ad0023edc58b742", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
5,388
c
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef REMOTING_HOST_STATUS_SENDER_H_ #define REMOTING_HOST_STATUS_SENDER_H_ #include <string> #include "base/compiler_specific.h" #include "base/memor...
39.4
84
(translation_unit) "// Copyright 2013 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef REMOTING_HOST_STATUS_SENDER_H_\n#define REMOTING_HOST_STATUS_SENDER_H_\n\n#include <string>\n\n#include "base/compiler_spe...
423
20
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 39.4, "nodes": 239, "errors": 0, "source_hash": "df85c1d355d895cada390910c96139c1433d89ecc3b0ddd2e9bc481ffe217e86", "categorized_nodes": 175}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,389
c
// -*- Mode: c++ -*- #include <vector> template <class P, class T> class ProductDistribution { protected: std::vector<P*> distributions; public: ProductDistribution(std::vector<P*> distributions_) : distributions(distributions_) { } virtual ~ProductDistribution() {} virtual std::vecto...
24.38
34
(translation_unit) "// -*- Mode: c++ -*-\n#include <vector>\n\ntemplate <class P, class T>\nclass ProductDistribution\n{\nprotected:\n std::vector<P*> distributions;\npublic:\n ProductDistribution(std::vector<P*> distributions_)\n : distributions(distributions_)\n {\n }\n\n virtual ~ProductDistrib...
315
15
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 24.38, "nodes": 188, "errors": 0, "source_hash": "b95bcbacac814c2167b8b7444b65ff70ca4a7148bb4d3b6ffb5cc9c52a5a3063", "categorized_nodes": 127}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
5,390
c
/* * tclStrIdxTree.h -- * * Declarations of string index tries and other primitives currently * back-ported from tclSE. * * Copyright (c) 2016 <NAME> (aka sebres) * * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. */ #ifndef _...
28.48
145
(translation_unit) "/*\n * tclStrIdxTree.h --\n *\n * Declarations of string index tries and other primitives currently\n * back-ported from tclSE.\n *\n * Copyright (c) 2016 <NAME> (aka sebres)\n *\n * See the file "license.terms" for information on usage and redistribution\n * of this file, and for a DISCLAIMER OF A...
906
4
{"language": "c", "success": true, "metadata": {"lines": 145, "avg_line_length": 28.48, "nodes": 590, "errors": 0, "source_hash": "a2fc5f6253f23352438aa27f18debb84c81ce409971a3a4c3b3b75b9abcdad20", "categorized_nodes": 362}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
5,391
c
#ifndef HW_GPIO_GPIO_H_ #define HW_GPIO_GPIO_H_ // I/O access extern volatile unsigned *gpio; // GPIO setup macros. Always use INP_GPIO(x) before using OUT_GPIO(x) or // SET_GPIO_ALT(x,y) #define INP_GPIO(g) *(gpio+((g)/10)) &= ~(7 << (((g)%10)*3)) #define OUT_GPIO(g) *(gpio+((g)/10)) |= (1 << (((g)%10)*3)) #define ...
48.18
17
(translation_unit) "#ifndef HW_GPIO_GPIO_H_\n#define HW_GPIO_GPIO_H_\n\n// I/O access\nextern volatile unsigned *gpio;\n\n// GPIO setup macros. Always use INP_GPIO(x) before using OUT_GPIO(x) or\n// SET_GPIO_ALT(x,y)\n#define INP_GPIO(g) *(gpio+((g)/10)) &= ~(7 << (((g)%10)*3))\n#define OUT_GPIO(g) *(gpio+((g)/10)) |= ...
86
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 48.18, "nodes": 67, "errors": 0, "source_hash": "71a16cedcceaa0ffbc5ae66b602ebcfcf36d962c6808d51486b288321df128f9", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,392
c
/** * Copyright : falcon build system (c) 2014. * LICENSE : see accompanying LICENSE file for details. */ #ifndef FALCON_POSIX_SUBPROCESS_H_ #define FALCON_POSIX_SUBPROCESS_H_ #include <list> #include <memory> #include <mutex> #include <poll.h> #include <queue> #include <string> #include <vector> #include <unorder...
30.66
91
(translation_unit) "/**\n * Copyright : falcon build system (c) 2014.\n * LICENSE : see accompanying LICENSE file for details.\n */\n\n#ifndef FALCON_POSIX_SUBPROCESS_H_\n#define FALCON_POSIX_SUBPROCESS_H_\n\n#include <list>\n#include <memory>\n#include <mutex>\n#include <poll.h>\n#include <queue>\n#include <string>\n#...
392
13
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 30.66, "nodes": 231, "errors": 0, "source_hash": "54513a429e63feb58b3bb84010a29983e58e6e3413a75309d38651f7570ef6b0", "categorized_nodes": 170}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef FALCON...
5,393
c
#include <gdiplus/gdiplus.h> #include <gdiplus/gdiplusflat.h> #include <windows.h> #pragma comment(lib,"gdiplus")//very important // #pragma comment(lib,"user32") // #pragma comment(lib,"gdi32") //GDI+Flat // typedef struct _GdiplusStartupInput // { // unsigned int GdiplusVersion; // unsigned int DebugEventCal...
33.12
123
(translation_unit) "#include <gdiplus/gdiplus.h>\n#include <gdiplus/gdiplusflat.h>\n#include <windows.h>\n#pragma comment(lib,"gdiplus")//very important\n// #pragma comment(lib,"user32")\n// #pragma comment(lib,"gdi32")\n\n//GDI+Flat\n// typedef struct _GdiplusStartupInput\n// {\n // unsigned int GdiplusVersion;\n ...
830
3
{"language": "c", "success": true, "metadata": {"lines": 123, "avg_line_length": 33.12, "nodes": 459, "errors": 0, "source_hash": "f3810325dfd0937eca7916b4d9fbf6e2b1f96aadc5af0fb9f782202a6c174e53", "categorized_nodes": 342}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
5,394
c
/* Copyright 2014 <EMAIL> (<NAME>) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
34.12
50
(translation_unit) "/* Copyright 2014 <EMAIL> (<NAME>)\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required b...
90
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 34.12, "nodes": 64, "errors": 0, "source_hash": "46175d0bea0e7f0e38df6d882acfdf3e791e70c818327498cfde77982b8ebdaf", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
5,395
c
/** * @file accepter.h * @author sun-moon-star-star */ #ifndef SUN_PROTOCOL_PAXOS_ACCEPTER_H_ #define SUN_PROTOCOL_PAXOS_ACCEPTER_H_ #include "sun/protocol/paxos/code.h" #include "sun/protocol/paxos/struct.h" #include <memory> #include <unordered_map> namespace sun::protocol::paxos { class accepter { public: ...
32.52
33
(translation_unit) "/**\n * @file accepter.h\n * @author sun-moon-star-star\n */\n\n#ifndef SUN_PROTOCOL_PAXOS_ACCEPTER_H_\n#define SUN_PROTOCOL_PAXOS_ACCEPTER_H_\n\n#include "sun/protocol/paxos/code.h"\n#include "sun/protocol/paxos/struct.h"\n\n#include <memory>\n#include <unordered_map>\n\nnamespace sun::protocol::pa...
220
7
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 32.52, "nodes": 142, "errors": 0, "source_hash": "3036a42177745f6bc1efb88bb54462fbf7986f17dd126be79310c737edc77ef5", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
5,396
c
/* Test for anonymous structures and unions in C11. Test for invalid cases. */ /* { dg-do compile } */ /* { dg-options "-std=c11 -pedantic-errors" } */ typedef struct s0 { int i; } s0; struct s1 { int a; struct s0; /* { dg-error "declaration does not declare anything" } */ }; struct s2 { int a; s0; /*...
13.46
50
(translation_unit) "/* Test for anonymous structures and unions in C11. Test for invalid\n cases. */\n/* { dg-do compile } */\n/* { dg-options "-std=c11 -pedantic-errors" } */\n\ntypedef struct s0\n{\n int i;\n} s0;\n\nstruct s1\n{\n int a;\n struct s0; /* { dg-error "declaration does not declare anything" } */\...
151
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 13.46, "nodes": 83, "errors": 0, "source_hash": "698316ac6ebc99c1b123f6599d1fd6000ed38851ea777ecfb84ab81a09a352b5", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "typede...
5,397
c
/*- * This file is in the public domain. */ /* $FreeBSD: soc2013/dpl/head/sys/i386/include/pci_cfgreg.h 223605 2011-06-22 21:04:13Z jhb $ */ #include <x86/pci_cfgreg.h>
33.2
5
(translation_unit) "/*-\n * This file is in the public domain.\n */\n/* $FreeBSD: soc2013/dpl/head/sys/i386/include/pci_cfgreg.h 223605 2011-06-22 21:04:13Z jhb $ */\n\n#include <x86/pci_cfgreg.h>\n" (comment) "/*-\n * This file is in the public domain.\n */" (comment) "/* $FreeBSD: soc2013/dpl/head/sys/i386/includ...
6
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 33.2, "nodes": 3, "errors": 0, "source_hash": "3c44172ab5f88b2ec5f6b190071e7327b60194d910b4b6440e261d7a3fd4b762", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <...
5,398
c
// Copyright 2013-2016 Stanford University // // Licensed under the Apache License, Version 2.0 (the License); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
26.58
57
(translation_unit) "// Copyright 2013-2016 Stanford University\n//\n// Licensed under the Apache License, Version 2.0 (the License);\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless requ...
259
8
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 26.58, "nodes": 126, "errors": 0, "source_hash": "736ba98f294606f9bd4cd087713cd746b09dbfab36dd56ce51b38cbb8c8ae532", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
5,399