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 __SP_SPPACKINGSTRATEGY_H__ #define __SP_SPPACKINGSTRATEGY_H__ #include <vector> #include <utility> #include "PackingStrategy.h" namespace RECTPACKING { using namespace std; class Layout; class SPPackingStrategy : public PackingStrategy { public: SPPackingStrategy():PackingStrategy() {} ~SPPackingStrategy(...
23.84
19
(translation_unit) "#ifndef __SP_SPPACKINGSTRATEGY_H__\n#define __SP_SPPACKINGSTRATEGY_H__\n#include <vector>\n#include <utility>\n#include "PackingStrategy.h"\n\nnamespace RECTPACKING {\nusing namespace std;\n\nclass Layout;\nclass SPPackingStrategy : public PackingStrategy\n{\npublic:\n SPPackingStrategy():PackingSt...
113
5
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 23.84, "nodes": 64, "errors": 0, "source_hash": "48287c68c98ef40ba1838780884162baf6857e94fe31ffe6404f8af39c5f4fbe", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,000
c
/* * location_provider.h * Location Provider feature * * Created by <NAME> (<EMAIL>) at 2014-12-26 * Copyright 2014 (c) www.robopeak.com */ #pragma once #include <rpos/rpos_config.h> #include "artifact_provider/feature.h"
21.2
10
(translation_unit) "/*\n* location_provider.h\n* Location Provider feature\n*\n* Created by <NAME> (<EMAIL>) at 2014-12-26\n* Copyright 2014 (c) www.robopeak.com\n*/\n\n#pragma once\n\n#include <rpos/rpos_config.h>\n\n#include "artifact_provider/feature.h"\n" (comment) "/*\n* location_provider.h\n* Location Provider ...
14
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.2, "nodes": 9, "errors": 0, "source_hash": "ee42c37e2715a2810e7f81e44924b1c8d82c2f5720bf67e959fd0ff674622fe4", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once...
4,001
c
#include <stdio.h> int main(){ int tempoGasto, veloMedia; double litrosGastos; scanf("%d%d", &tempoGasto, &veloMedia); litrosGastos = ((tempoGasto * veloMedia)/12.0); printf("%.3lf\n", litrosGastos); return 0; }
25.22
9
(translation_unit) "#include <stdio.h>\n\nint main(){\n int tempoGasto, veloMedia;\n double litrosGastos;\n\n scanf("%d%d", &tempoGasto, &veloMedia);\n\n litrosGastos = ((tempoGasto * veloMedia)/12.0);\n\n printf("%.3lf\n", litrosGastos);\n return 0;\n}\n" (preproc_include) "#include <stdio.h>\n" ...
79
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 25.22, "nodes": 43, "errors": 0, "source_hash": "444c3e95354314021ebcbbb8ea747bce801295a3b79777b4c82c48818cd9db9c", "categorized_nodes": 33}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
4,002
c
#ifndef GETSCHEDULERESPONSE_H #define GETSCHEDULERESPONSE_H #include "response.h" class GetScheduleResponse : public Response { Q_OBJECT public: GetScheduleResponse(QObject *parent = 0) : Response(parent) { } bool fillFromVariant(const QVariantMap &variant); ScheduleDefinitionList tasks(...
23.33
18
(translation_unit) "#ifndef GETSCHEDULERESPONSE_H\n#define GETSCHEDULERESPONSE_H\n\n#include "response.h"\n\nclass GetScheduleResponse : public Response\n{\n Q_OBJECT\n\npublic:\n GetScheduleResponse(QObject *parent = 0)\n : Response(parent)\n {\n }\n\n bool fillFromVariant(const QVariantMap &variant)...
95
5
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 23.33, "nodes": 53, "errors": 0, "source_hash": "ee28e6246cd49c531c18134b083c2d3d258111ee969da49066a8a4f2005a40a2", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,003
c
#ifndef HAISHINKIT_KT_IMAGEREADER_H #define HAISHINKIT_KT_IMAGEREADER_H #include "Kernel.h" #include <media/NdkImageReader.h> namespace Graphics { class ImageReader { public: AImageReader_ImageListener *listener; ANativeWindow *GetWindow(); AHardwareBuffer *GetLatestBuffer(); ...
29.27
22
(translation_unit) "#ifndef HAISHINKIT_KT_IMAGEREADER_H\n#define HAISHINKIT_KT_IMAGEREADER_H\n\n#include "Kernel.h"\n#include <media/NdkImageReader.h>\n\nnamespace Graphics {\n class ImageReader {\n public:\n AImageReader_ImageListener *listener;\n\n ANativeWindow *GetWindow();\n\n AHardwareB...
149
4
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 29.27, "nodes": 102, "errors": 0, "source_hash": "c17e918daad05365eac33575005353372c523e300022fd170764fe0f71c71917", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,004
c
// // TKWebScriptMessageHandler.h // EattaClient // // Created by YueWen on 2017/8/30. // Copyright © 2017年 ryden. All rights reserved. // #import <Foundation/Foundation.h> #import "RITLWebViewController.h" NS_ASSUME_NONNULL_BEGIN @import WebKit; /// 默认的ScriptMessageHandler @interface RITLWebScriptMessageHandl...
23.32
19
(translation_unit) "//\n// TKWebScriptMessageHandler.h\n// EattaClient\n//\n// Created by YueWen on 2017/8/30.\n// Copyright © 2017年 ryden. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "RITLWebViewController.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@import WebKit;\n\n\n/// 默认的ScriptMessageHandler\...
60
10
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 23.32, "nodes": 42, "errors": 0, "source_hash": "92d9ecf0eb1d9ade1aeca2f3d14ef7aa9f26e5dec283f4821cdbcd4b9d2c8d82", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fou...
4,005
c
/* * djnn v2 * * The copyright holders for the contents of this file are: * Ecole Nationale de l'Aviation Civile, France (2020) * See file "license.terms" for the rights and conditions * defined by copyright holders. * * * Contributors: * <NAME> <<EMAIL>> * */ #pragma once #include "base/co...
29.75
128
(translation_unit) "/*\n * djnn v2\n *\n * The copyright holders for the contents of this file are:\n * Ecole Nationale de l'Aviation Civile, France (2020)\n * See file "license.terms" for the rights and conditions\n * defined by copyright holders.\n *\n *\n * Contributors:\n * <NAME> <<EMAIL>>\n *\n */\...
967
51
{"language": "c", "success": true, "metadata": {"lines": 128, "avg_line_length": 29.75, "nodes": 576, "errors": 0, "source_hash": "b25498bdc8b76afbf4f910a104a65311698a87423f6d1bdee24b9510eab17a5b", "categorized_nodes": 399}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
4,006
c
/* * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
38.31
133
(translation_unit) "/*\n * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.\n *\n * Use of this source code is governed by a BSD-style license\n * that can be found in the LICENSE file in the root of the source\n * tree. An additional intellectual property rights grant can be found\n * in the fi...
792
66
{"language": "c", "success": true, "metadata": {"lines": 133, "avg_line_length": 38.31, "nodes": 514, "errors": 0, "source_hash": "40fd75dea9f190fbdd4a6ca33949b7db5410764d099fddab4a55fb6ebf68fb95", "categorized_nodes": 323}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,007
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #define MAX 10 #define VAL 5 struct empl{ char name[100]; int id; }; void mergesort(struct empl *s,char sortby,int order,int low,int high); void merge(struct empl *s,char sortby,int order,int low,int mid,int high); void menu(); void...
24.59
208
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <time.h>\n\n#define MAX 10 \n#define VAL 5\n\nstruct empl{\n\n char name[100];\n int id;\n\n};\n\nvoid mergesort(struct empl *s,char sortby,int order,int low,int high);\nvoid merge(struct empl *s,char sortby,int order,int low,...
1,966
0
{"language": "c", "success": true, "metadata": {"lines": 208, "avg_line_length": 24.59, "nodes": 1171, "errors": 0, "source_hash": "ca22003c9cb1870f015a3ad190146f8284ff95c6b737e6f9f808a45bc363468e", "categorized_nodes": 833}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
4,008
c
// // DQViewController.h // test // // Created by jasonmar on 06/09/2019. // Copyright (c) 2019 jasonmar. All rights reserved. // @import UIKit; @interface DQViewController : UIViewController @end
19.1
10
(translation_unit) "//\n// DQViewController.h\n// test\n//\n// Created by jasonmar on 06/09/2019.\n// Copyright (c) 2019 jasonmar. All rights reserved.\n//\n\n@import UIKit;\n\n@interface DQViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// DQViewController.h" (comment) "// test" (c...
22
5
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.1, "nodes": 10, "errors": 0, "source_hash": "8c6ae62dff7f2dad698c295d706421e414983a47818520fe60b7cb24f2d2177f", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": null...
4,009
c
/* * Copyright (c) 1992, 1993, 1996 * Berkeley Software Design, Inc. 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 * ...
31.17
277
(translation_unit) "/*\n * Copyright (c) 1992, 1993, 1996\n * Berkeley Software Design, Inc. 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 ret...
2,127
0
{"language": "c", "success": true, "metadata": {"lines": 277, "avg_line_length": 31.17, "nodes": 1412, "errors": 0, "source_hash": "ebf470a131b61053b243cfb8df7d68743ae60de68208f62f751bb95f44fb136f", "categorized_nodes": 894}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
4,010
c
/**************************************************************************** ** Copyright (c) 2021 <NAME> ** ** Permission is hereby granted, free of charge, to any person obtaining a ** copy of this software and associated documentation files (the "Software"), ** to deal in the Software without restriction, including...
32.9
72
(translation_unit) "/****************************************************************************\n** Copyright (c) 2021 <NAME>\n**\n** Permission is hereby granted, free of charge, to any person obtaining a\n** copy of this software and associated documentation files (the "Software"),\n** to deal in the Software witho...
181
9
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 32.9, "nodes": 113, "errors": 0, "source_hash": "b118e1b5a36b26ae2fc1e8e42f865e8dc296c2b1a04e955d15cc8dc5b76ea451", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,011
c
#pragma once #include "irpluginobject.h" #include "ControlHolderWnd.h" #define NUM_OB_EVENTS 12 class CListCtrlObject : public CIRPluginObject { public: CListCtrlObject(void); virtual ~CListCtrlObject(void); virtual void GetDefaultSize(SIZE* pSize) {pSize->cx=250;pSize->cy=250;}; virtual BOOL IsWind...
31.94
85
(translation_unit) "#pragma once \n#include "irpluginobject.h" \n#include "ControlHolderWnd.h" \n \n#define NUM_OB_EVENTS 12 \n \nclass CListCtrlObject : \n public CIRPluginObject \n{ \npublic: \n CListCtrlObject(void); \n virtual ~CListCtrlObject(void); \n virtual void GetDefaultSize(SIZE* pSize) {pSize->cx=250;pSize-...
745
28
{"language": "c", "success": true, "metadata": {"lines": 85, "avg_line_length": 31.94, "nodes": 480, "errors": 0, "source_hash": "26ba08f3af2351c13b63a5bf89929d8e08dc534b1a81a946c25970dfb5562d1a", "categorized_nodes": 369}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
4,012
c
/* ISC license. */ #include <unistd.h> #include <errno.h> #include <skalibs/allreadwrite.h> #include <skalibs/djbunix.h> #define BSIZE 65536 off_t fd_catn (int from, int to, off_t n) { off_t w = 0 ; char buf[BSIZE] ; while (n >= BSIZE) { ssize_t r = fd_read(from, buf, BSIZE) ; if (r == -1) return w ...
20.11
27
(translation_unit) "/* ISC license. */\n\n#include <unistd.h>\n#include <errno.h>\n\n#include <skalibs/allreadwrite.h>\n#include <skalibs/djbunix.h>\n\n#define BSIZE 65536\n\noff_t fd_catn (int from, int to, off_t n)\n{\n off_t w = 0 ;\n char buf[BSIZE] ;\n while (n >= BSIZE)\n {\n ssize_t r = fd_read(from, buf,...
213
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 20.11, "nodes": 135, "errors": 0, "source_hash": "e627959a41a173cbdbbe302000e5e2f42387146f550e02023e037ded181465bf", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,013
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import <Intents/INCodableAttributeMetadata.h> @class NSArray, NSString; @interface INCodableFileAttributeMetadata : INCodableAttributeMetadata { NSString *_type; NSArray *_cust...
33.14
22
(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 <Intents/INCodableAttributeMetadata.h>\n\n@class NSArray, NSString;\n\n@interface INCodableFileAttributeMetadata : INCodableAttributeMetadata\n{\n NSS...
187
18
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 33.14, "nodes": 111, "errors": 0, "source_hash": "f6608821d5f5d6445cb21df40af205413dc4f116bf0d91b9c3b44cb99bbfa3a8", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
4,014
c
/* * Extended Euclidean Algorithm * * Author: <NAME> * * Given two integers, return their gcd and the cofactors to form the * gcd as a linear combination. * * a*s + b*t = gcd(a,b) * */ #include <stdio.h> #include <assert.h> int gcd(int a, int b, int *s, int *t) { int r, r1, r2, a1, a2, b1, b2, q; int A ...
15.81
58
(translation_unit) "/*\n * Extended Euclidean Algorithm\n *\n * Author: <NAME>\n *\n * Given two integers, return their gcd and the cofactors to form the\n * gcd as a linear combination.\n *\n * a*s + b*t = gcd(a,b)\n *\n */\n\n#include <stdio.h>\n#include <assert.h>\n\nint gcd(int a, int b, int *s, int *t)\n{\n int r...
411
0
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 15.81, "nodes": 264, "errors": 0, "source_hash": "db468882cb2951633ab4ea2229e9e338c18c2e39b1c96ed5dfe86aab348fe659", "categorized_nodes": 194}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,015
c
#ifndef TRIANGLE_H #define TRIANGLE_H #include "../core/shape.h" #include "../mesh/triangle_mesh.h" namespace rt3{ /// Represents a single triangle. class Triangle : public Shape { private: shared_ptr<const Point3f> vert[3]; shared_ptr<const Normal3f> n[3]; shared_ptr<TriangleMesh> mesh; //!< This is the **in...
38.32
44
(translation_unit) "#ifndef TRIANGLE_H\n#define TRIANGLE_H\n\n#include "../core/shape.h"\n#include "../mesh/triangle_mesh.h"\n\nnamespace rt3{\n\n/// Represents a single triangle.\nclass Triangle : public Shape {\nprivate:\n shared_ptr<const Point3f> vert[3];\n shared_ptr<const Normal3f> n[3];\n\n shared_ptr<Triangl...
405
25
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 38.32, "nodes": 246, "errors": 0, "source_hash": "0c09c9182fad683ae16145c2b4b2f163a5cdf2ad6dd2097643942f249dab6a6b", "categorized_nodes": 176}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef TRIANG...
4,016
c
// // LocationHeaderView.h // Until Off // // Created by dasdom on 19.09.13. // Copyright (c) 2013 dasdom. All rights reserved. // #import <UIKit/UIKit.h> @interface LocationHeaderView : UICollectionReusableView @end
21.1
10
(translation_unit) "//\n// LocationHeaderView.h\n// Until Off\n//\n// Created by dasdom on 19.09.13.\n// Copyright (c) 2013 dasdom. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface LocationHeaderView : UICollectionReusableView\n\n@end\n" (comment) "//" (comment) "// LocationHeaderView.h" (co...
22
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.1, "nodes": 11, "errors": 0, "source_hash": "4e07db50c7143da6609eda1929073902d3f1862613a631e70108a5b6027d8c02", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UI...
4,017
c
#pragma once #ifndef OOSL_VM_H #define OOSL_VM_H #include "../memory/memory_register.h" #include "../memory/memory_collection.h" #include "interrupt/interrupt_handlers.h" #include "instruction_set.h" #include "instructions_section.h" namespace oosl{ namespace assembler{ enum class vm_state : unsigned int{ ni...
40.04
56
(translation_unit) "#pragma once\n\n#ifndef OOSL_VM_H\n#define OOSL_VM_H\n\n#include "../memory/memory_register.h"\n#include "../memory/memory_collection.h"\n\n#include "interrupt/interrupt_handlers.h"\n\n#include "instruction_set.h"\n#include "instructions_section.h"\n\nnamespace oosl{\n namespace assembler{\n enum c...
455
17
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 40.04, "nodes": 278, "errors": 0, "source_hash": "499bf55f2ee1125a0a2a22cb8d44e075b6fb3d18793dd3abc7060495dd053500", "categorized_nodes": 193}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
4,018
c
/******************************************************************************* * Copyright 2005-2020 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apa...
31.8
60
(translation_unit) "/*******************************************************************************\n* Copyright 2005-2020 Intel Corporation\n*\n* Licensed under the Apache License, Version 2.0 (the "License");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License ...
181
2
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 31.8, "nodes": 107, "errors": 0, "source_hash": "e65cff4d26834923fe6b87c12a21bc8eb69df58983e35531a58ae741edafc0ec", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
4,019
c
/* * Copyright (c) [2019] Huawei Technologies Co.,Ltd.All rights reserved. * * OpenArkCompiler is licensed under the Mulan PSL v1. * You can use this software according to the terms and conditions of the Mulan PSL v1. * You may obtain a copy of Mulan PSL v1 at: * * http://license.coscl.org.cn/MulanPSL * * ...
27.79
207
(translation_unit) "/*\n * Copyright (c) [2019] Huawei Technologies Co.,Ltd.All rights reserved.\n *\n * OpenArkCompiler is licensed under the Mulan PSL v1.\n * You can use this software according to the terms and conditions of the Mulan PSL v1.\n * You may obtain a copy of Mulan PSL v1 at:\n *\n * http://license.c...
1,362
59
{"language": "c", "success": true, "metadata": {"lines": 207, "avg_line_length": 27.79, "nodes": 756, "errors": 0, "source_hash": "b918399d94cca12463727ca21e3750d6903916c18361e6fdd368565154128fba", "categorized_nodes": 519}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,020
c
// // BugKitSystemStateView.h // BugKitExample // // Created by lujh on 2018/6/5. // Copyright © 2018年 lujh. All rights reserved. // #import <UIKit/UIKit.h> @interface BugKitSystemStateView : UIView /* */ @property (copy, nonatomic) NSArray *menuItemsNameArray,*menuBackgroundColorsArray; /* */ @property (assign...
29.35
23
(translation_unit) "//\n// BugKitSystemStateView.h\n// BugKitExample\n//\n// Created by lujh on 2018/6/5.\n// Copyright © 2018年 lujh. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface BugKitSystemStateView : UIView\n\n/* */\n@property (copy, nonatomic) NSArray *menuItemsNameArray,*menuBackgroundColo...
176
29
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 29.35, "nodes": 122, "errors": 0, "source_hash": "370d3a2ba3f3e3321554a39adfae3bd1ff43401675bfd5ca17f890efde612324", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UI...
4,021
c
#ifndef FusionEKF_H_ #define FusionEKF_H_ #include "measurement_package.h" #include "Eigen/Dense" #include <vector> #include <string> #include <fstream> #include "kalman_filter.h" #include "tools.h" class FusionEKF { public: /** * Constructor. */ FusionEKF(); /** * Destructor. */ virtual ~FusionEKF()...
21.38
58
(translation_unit) "#ifndef FusionEKF_H_\n#define FusionEKF_H_\n\n#include "measurement_package.h"\n#include "Eigen/Dense"\n#include <vector>\n#include <string>\n#include <fstream>\n#include "kalman_filter.h"\n#include "tools.h"\n\nclass FusionEKF {\npublic:\n /**\n * Constructor.\n */\n FusionEKF();\n\n /**\n * ...
191
6
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 21.38, "nodes": 111, "errors": 0, "source_hash": "fbe6b90f8aa8c985d292d7097643fbb302e82bbd1118b268ce28550d42758022", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,022
c
char CJPAT_Packet[1508] = {}; void build_packet(int port, char *packet) { memcpy(packet, CJPAT_Packet, sizeof(CJPAT_Packet)); }
34.25
4
(translation_unit) "char CJPAT_Packet[1508] = {};\nvoid build_packet(int port, char *packet) {\n memcpy(packet, CJPAT_Packet, sizeof(CJPAT_Packet)); \n}\n" (declaration) "char CJPAT_Packet[1508] = {};" (primitive_type) "char" (init_declarator) "CJPAT_Packet[1508] = {}" (array_declarator) "CJP...
50
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 34.25, "nodes": 29, "errors": 0, "source_hash": "ab06501f3d82a41bc9f2e8dbd546ba8cf7f0bb39a077b3566e82721d911fb78e", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "char CJPAT_...
4,023
c
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: GC based lobby. Matchmaking assigns players to a lobby // //============================================================================= #ifndef LOBBY_H #define LOBBY_H #ifdef _WIN32 #pragma once #endif #include "playerg...
38.13
39
(translation_unit) "//========= Copyright Valve Corporation, All rights reserved. ============//\n//\n// Purpose: GC based lobby. Matchmaking assigns players to a lobby\n// \n//=============================================================================\n\n#ifndef LOBBY_H\n#define LOBBY_H\n#ifdef _WIN32\n#pragma o...
349
19
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 38.13, "nodes": 192, "errors": 0, "source_hash": "34e47c65bc699935c0335d7bcbf303ee977c862bf68afb60a35b3f94eef85fe6", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,024
c
// -*- C++ -*- #ifndef _opt_pipeline_pipeline_pass_h_ #define _opt_pipeline_pipeline_pass_h_ #include "opt/pass.h" namespace iroha { namespace opt { namespace loop { class LoopBlock; } // namespace loop namespace pipeline { class PipelinePass : public Pass { public: virtual ~PipelinePass(); static Pass *Creat...
24.23
22
(translation_unit) "// -*- C++ -*-\n#ifndef _opt_pipeline_pipeline_pass_h_\n#define _opt_pipeline_pipeline_pass_h_\n\n#include "opt/pass.h"\n\nnamespace iroha {\nnamespace opt {\nnamespace loop {\nclass LoopBlock;\n} // namespace loop\nnamespace pipeline {\n\nclass PipelinePass : public Pass {\n public:\n virtual ~Pi...
128
5
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 24.23, "nodes": 71, "errors": 0, "source_hash": "85c816e58d1b7b60ace45749c1e156a8d001effdb7b182196362afa1ccced0dd", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,025
c
//======== Copyright � 1996-2008, Valve Corporation, All rights reserved. =========// // // Purpose: // // $NoKeywords: $ //=================================================================================// #ifndef SDK_CLASSMENU_H #define SDK_CLASSMENU_H #include <classmenu.h> #include <vgui_controls/EditablePanel....
26.15
114
(translation_unit) "//======== Copyright � 1996-2008, Valve Corporation, All rights reserved. =========//\n//\n// Purpose: \n//\n// $NoKeywords: $\n//=================================================================================//\n\n#ifndef SDK_CLASSMENU_H\n#define SDK_CLASSMENU_H\n\n#include <classmenu.h>\n#includ...
741
36
{"language": "c", "success": true, "metadata": {"lines": 114, "avg_line_length": 26.15, "nodes": 463, "errors": 0, "source_hash": "d341c6e19cc691400d8cadce0d6b98b93d177c0203f5e62804444d412266ec1f", "categorized_nodes": 319}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef...
4,026
c
/* uio_helper.h UIO helper functions - header file. Copyright (C) 2007 <NAME> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope ...
35.16
57
(translation_unit) "/*\n uio_helper.h\n UIO helper functions - header file.\n\n Copyright (C) 2007 <NAME>\n\n This program is free software; you can redistribute it and/or modify\n it under the terms of the GNU General Public License version 2 as\n published by the Free Software Foundation.\n\n This progr...
313
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 35.16, "nodes": 241, "errors": 0, "source_hash": "f3a7c30c276649b079f16ca427676e7e6505c52da062d902086b60dad9692269", "categorized_nodes": 151}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,027
c
////////////////////////////////////////////////////////////////////// // // Copyright (c) 2006, <NAME> // You may distribute under the terms of the Artistic License. // // Amis - A maximum entropy estimator // // Author: <NAME> (<EMAIL>) // $Id: Array.h,v 1.1.1.1 2008-07-28 19:25:53 kyoshida Exp $ // ////////////...
24.1
136
(translation_unit) "//////////////////////////////////////////////////////////////////////\n//\n// Copyright (c) 2006, <NAME>\n// You may distribute under the terms of the Artistic License.\n//\n// Amis - A maximum entropy estimator\n//\n// Author: <NAME> (<EMAIL>)\n// $Id: Array.h,v 1.1.1.1 2008-07-28 19:25:53 ky...
1,176
25
{"language": "c", "success": true, "metadata": {"lines": 136, "avg_line_length": 24.1, "nodes": 692, "errors": 0, "source_hash": "414c5946b1c5962353d837fa582f737e95682eafc468817c01496119b958e782", "categorized_nodes": 469}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,028
c
// // UIView+WebCacheoperationStudy.h // ThirdLibStudy // // Created by dujia on 16/7/30. // Copyright © 2016年 dujia. All rights reserved. // #import <UIKit/UIKit.h> @interface UIView (WebCacheoperationStudy) - (void)sd_study_setImageLoadOperation:(id)operation forKey:(NSString *)key; - (void)sd_study_removeImag...
31.92
13
(translation_unit) "//\n// UIView+WebCacheoperationStudy.h\n// ThirdLibStudy\n//\n// Created by dujia on 16/7/30.\n// Copyright © 2016年 dujia. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIView (WebCacheoperationStudy)\n- (void)sd_study_setImageLoadOperation:(id)operation forKey:(NSString *)ke...
89
10
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 31.92, "nodes": 54, "errors": 0, "source_hash": "b4c70aa624fab65cb739afd3ae22bb668f3405c4b522daa8fd22a5d61e35f14b", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
4,029
c
/* * menu/browser.h * * Dies enthaelt die erweiterten LevelBrowser-Klassen, naemlich den Browser * fuer den Einzelspielermodus sowie den Levelauswaehler im Netzwerk. * * Ferner ist hier der ReplayBrowser definiert, auch wenn seine Funktionen * nicht in der brow_sin.cpp, sondern in der brow_rep.cpp definiert sind...
30.19
73
(translation_unit) "/*\n * menu/browser.h\n *\n * Dies enthaelt die erweiterten LevelBrowser-Klassen, naemlich den Browser\n * fuer den Einzelspielermodus sowie den Levelauswaehler im Netzwerk.\n *\n * Ferner ist hier der ReplayBrowser definiert, auch wenn seine Funktionen\n * nicht in der brow_sin.cpp, sondern in der ...
438
27
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 30.19, "nodes": 240, "errors": 0, "source_hash": "aef447723e7272c78de662a9c3816dff48c436b79255542acf3e2e7205117402", "categorized_nodes": 173}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
4,030
c
int __attribute__((weak)) foo(void) { return 1; }
16
3
(translation_unit) "int __attribute__((weak)) foo(void) {\n return 1;\n}\n" (function_definition) "int __attribute__((weak)) foo(void) {\n return 1;\n}" (primitive_type) "int" (attribute_specifier) "__attribute__((weak))" (__attribute__) "__attribute__" (() "(" (argument_list) "(weak)" ...
25
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 16.0, "nodes": 13, "errors": 0, "source_hash": "b5b624eb403b8f86107474e06ee10700ca725c06134ca1ac08d33892fb8fd5fa", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "int _...
4,031
c
/* * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
34.39
144
(translation_unit) "/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by...
943
38
{"language": "c", "success": true, "metadata": {"lines": 144, "avg_line_length": 34.39, "nodes": 528, "errors": 0, "source_hash": "a2c35367651b6507ee40342138ced5a7b745d85b2008eaf0ea1fc2488a8dc05e", "categorized_nodes": 383}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
4,032
c
#include "libmcu/posix/semaphore.h" #include "FreeRTOS.h" #include "semphr.h" #include "libmcu/compiler.h" #define SEM_MAX 0x7FFFU struct semaphore { SemaphoreHandle_t handle; }; int sem_init(sem_t *sem, int LIBMCU_UNUSED pshared, unsigned int value) { struct semaphore *psem = (struct semaphore *)sem; psem->h...
26.51
55
(translation_unit) "#include "libmcu/posix/semaphore.h"\n#include "FreeRTOS.h"\n#include "semphr.h"\n#include "libmcu/compiler.h"\n\n#define SEM_MAX 0x7FFFU\n\nstruct semaphore {\n SemaphoreHandle_t handle;\n};\n\nint sem_init(sem_t *sem, int LIBMCU_UNUSED pshared, unsigned int value)\n{\n struct semaphore *psem = (...
547
1
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 26.51, "nodes": 391, "errors": 0, "source_hash": "994f0a221079f59318474bd9f896e3dbcb70c8e7684b8efd0b52e010d5467cb0", "categorized_nodes": 258}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,033
c
// Copyright (c) 2004-2022 <NAME> et al. // // This file is part of TNL - Template Numerical Library (https://tnl-project.org/) // // SPDX-License-Identifier: MIT /* * TODO: further variations to explore: * * [5] <NAME> and <NAME>, "Reliable updated * residuals in hybrid Bi-CG methods", Computing 56 (2), 141-1...
37.13
136
(translation_unit) "// Copyright (c) 2004-2022 <NAME> et al.\n//\n// This file is part of TNL - Template Numerical Library (https://tnl-project.org/)\n//\n// SPDX-License-Identifier: MIT\n\n/*\n * TODO: further variations to explore:\n *\n * [5] <NAME> and <NAME>, "Reliable updated\n * residuals in hybrid Bi-CG met...
430
24
{"language": "c", "success": true, "metadata": {"lines": 136, "avg_line_length": 37.13, "nodes": 264, "errors": 0, "source_hash": "5cb85aa786b944fb20bf6433cb559e4c9e69b1f6cb163f07cde94ebaa23f38fe", "categorized_nodes": 180}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
4,034
c
#pragma once namespace ast { enum EnumAccessKey { KEY }; template <typename T1, typename T2 = T1, typename T3 = T2, typename T4 = T3, typename T5 = T4, typename T6 = T5, typename T7 = T6, typename T8 = T7, typename T9 = T8, typename T10 = T9> class AccessKey { friend T1; friend T2; friend T3; friend T4; frie...
18.54
26
(translation_unit) "#pragma once\n\nnamespace ast\n{\n\nenum EnumAccessKey\n{\n KEY\n};\n\ntemplate <typename T1, typename T2 = T1, typename T3 = T2, typename T4 = T3, typename T5 = T4,\n typename T6 = T5, typename T7 = T6, typename T8 = T7, typename T9 = T8, typename T10 = T9>\n class AccessKey\n{\n friend T1;\n frien...
208
13
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 18.54, "nodes": 148, "errors": 0, "source_hash": "c09daa1e0cf70918856921e87064779cc08ce58d0b25e8edcf439aef288891c7", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
4,035
c
#ifndef PROJECTMGR_H #define PROJECTMGR_H #include <QFile> #include <QList> #include <QMap> #include <QObject> #include "singleton.h" class ProjectMgr : public QObject { Q_OBJECT public: explicit ProjectMgr(QObject *parent = 0); bool ReadProjFile(); bool ReadProjFile(QString proj_dir, QString proj_na...
25.5
28
(translation_unit) "#ifndef PROJECTMGR_H\n#define PROJECTMGR_H\n\n#include <QFile>\n#include <QList>\n#include <QMap>\n#include <QObject>\n#include "singleton.h"\n\nclass ProjectMgr : public QObject\n{\n Q_OBJECT\npublic:\n explicit ProjectMgr(QObject *parent = 0);\n\n bool ReadProjFile();\n bool ReadProjFi...
175
5
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 25.5, "nodes": 123, "errors": 0, "source_hash": "e873232e89d97597aa64bb779dd7669a5de1a2d1b3f7bc4a77ee96f6c0a5cf06", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,036
c
#pragma once #include "../EntityComponentSystem/Component.h" #include "../EntityComponentSystem/Entity.h" #include "HierarchyParent.h" #define DEFAULT_THICKNESS 1 class HierarchyNode : public Component, public HierarchyParent { public: explicit HierarchyNode(EntityID ownerEntityID) : Component(ownerEntityID) { }...
39.85
20
(translation_unit) "#pragma once\n\n#include "../EntityComponentSystem/Component.h"\n#include "../EntityComponentSystem/Entity.h"\n#include "HierarchyParent.h"\n\n#define DEFAULT_THICKNESS 1\n\nclass HierarchyNode : public Component, public HierarchyParent\n{\npublic:\n explicit HierarchyNode(EntityID ownerEntityID)...
160
7
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 39.85, "nodes": 109, "errors": 0, "source_hash": "6a93ed41521d407c116f4336d8c18779f84c64053fa182ca769896d8dac099f2", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
4,037
c
#ifndef STANDARD_DB_H #define STANDARD_DB_H #include "db.h" #include "metadata.h" #include "standard_profile.h" #include <stdio.h> struct standard_db { struct db super; struct imm_abc abc; struct imm_code code; }; enum rc standard_db_openr(struct standard_db *db, FILE *restrict fd); enum rc standard_db...
32.86
21
(translation_unit) "#ifndef STANDARD_DB_H\n#define STANDARD_DB_H\n\n#include "db.h"\n#include "metadata.h"\n#include "standard_profile.h"\n#include <stdio.h>\n\nstruct standard_db\n{\n struct db super;\n\n struct imm_abc abc;\n struct imm_code code;\n};\n\nenum rc standard_db_openr(struct standard_db *db, FILE...
189
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 32.86, "nodes": 144, "errors": 0, "source_hash": "76e72bcf5b477bbe44eb2bb6e077b4c06500f110f933ed5f59d1c7e665045dc3", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,038
c
#include "pthread_makelwp.h" #include "rumprunposix_makelwp.h" int pthread__makelwp(void (*start)(void *), void *arg, void *private, void *stack_base, size_t stack_size, unsigned long flags, lwpid_t *lid) { return rumprunposix_makelwp(start, arg, private, stack_base, stack_size, flags, lid); }
32.56
9
(translation_unit) "#include "pthread_makelwp.h"\n#include "rumprunposix_makelwp.h"\n\nint\npthread__makelwp(void (*start)(void *), void *arg, void *private,\n void *stack_base, size_t stack_size, unsigned long flags, lwpid_t *lid)\n{\n\n return rumprunposix_makelwp(start, arg, private,\n stack_base, stack_size, fl...
94
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 32.56, "nodes": 60, "errors": 0, "source_hash": "d6920c42901e3c8b6e30d814876fa9f81cf94167161d4b8e12c56743a9ad1113", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
4,039
c
// Copyright 2017 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #ifndef FXJS_XFA_CJX_MODEL_H_ #define FXJS_XFA_CJX_MODEL_H_ #include "fxjs/CJ...
32.36
22
(translation_unit) "// Copyright 2017 PDFium 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// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com\n\n#ifndef FXJS_XFA_CJX_MODEL_H_\n#define FXJS_XFA_CJX_...
128
2
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 32.36, "nodes": 65, "errors": 0, "source_hash": "d6d2728777bf0f9b10cb1e62d8cf875c03787555d972fe88c4d191dfe1cb62b1", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,040
c
#include <stdio.h> int main(){ int n,i; scanf("%d", &n); for(i=1;i<=10000;i++){ if(i%n==2){ printf("%d\n", i); } } return 0; }
10.85
13
(translation_unit) "#include <stdio.h> \n \nint main(){ \n int n,i; \n scanf("%d", &n); \n \n for(i=1;i<=10000;i++){ \n if(i%n==2){ \n printf("%d\n", i); \n } \n } \n return 0; \n} \n" (preproc_include) "#include <stdio.h> \n" (#include) "#include" (system_lib_string) "<stdio.h>" (function_definition) ...
88
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 10.85, "nodes": 47, "errors": 0, "source_hash": "70dbbde08ae59f623cf3ddaf9136240a3f2bdb58524f0450c09f77a2652f553e", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
4,041
c
/* * Copyright (C) 1989-2015, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of cond...
25.27
233
(translation_unit) "/*\n * Copyright (C) 1989-2015, <NAME>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are\n * met:\n *\n * 1. Redistributions of source code must retain the above copyright not...
1,325
0
{"language": "c", "success": true, "metadata": {"lines": 233, "avg_line_length": 25.27, "nodes": 828, "errors": 0, "source_hash": "297d59ecefa26387cc8c78b41db82140210963411cf63b6a64f0f8b0617dbe0f", "categorized_nodes": 650}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,042
c
/* ---------------------------------------------------------------------- * Project: NMSIS DSP Library * Title: riscv_logsumexp_f64.c * Description: LogSumExp * * $Date: 23 April 2021 * $Revision: V1.9.0 * * Target Processor: RISC-V Cores * -----------------------------------------------...
26.02
65
(translation_unit) "/* ----------------------------------------------------------------------\n * Project: NMSIS DSP Library\n * Title: riscv_logsumexp_f64.c\n * Description: LogSumExp\n *\n * $Date: 23 April 2021\n * $Revision: V1.9.0\n *\n * Target Processor: RISC-V Cores\n * ------------------...
125
0
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 26.02, "nodes": 78, "errors": 0, "source_hash": "090242168eb13cc6a45ba8d1fb5d7e000b36e4016bfd0abdbe28149567363d9f", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
4,043
c
/* * libc/gen/decvax_d.c */ /* * decvax_d(double *ddp, double *idp) * Convert double from IEEE format to DECVAX format. * idp points to an IEEE format double to convert. * ddp points to a destination for the converted DECVAX value; * ddp may be identical to idp for in-place conversion. * Returns 0 on success, ...
32
50
(translation_unit) "/*\n * libc/gen/decvax_d.c\n */\n\n/*\n * decvax_d(double *ddp, double *idp)\n * Convert double from IEEE format to DECVAX format.\n * idp points to an IEEE format double to convert.\n * ddp points to a destination for the converted DECVAX value;\n * ddp may be identical to idp for in-place conversi...
690
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 32.0, "nodes": 399, "errors": 0, "source_hash": "a8d1b4bdb8ef94ed1f13cb21375acf6fdd9aee1da78764697c5326430da0fa95", "categorized_nodes": 320}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "i...
4,044
c
#include "stack.h" void overflow(void) { printf("stack overflow\n"); exit(EXIT_FAILURE); } void underflow(void) { printf("stack underflow\n"); exit(EXIT_FAILURE); } void make_empty(Stack s) { s->top = 0; } void push(Stack s, int i) { if(is_full(s)) { overflow(); return; } s->contents[s->...
12.32
41
(translation_unit) "#include "stack.h"\n\nvoid overflow(void)\n{\n printf("stack overflow\n");\n exit(EXIT_FAILURE);\n}\n\nvoid underflow(void)\n{\n printf("stack underflow\n");\n exit(EXIT_FAILURE);\n}\n\nvoid make_empty(Stack s)\n{\n s->top = 0;\n}\n\nvoid push(Stack s, int i)\n{\n if(is_full(s))\n {\n over...
258
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 12.32, "nodes": 148, "errors": 0, "source_hash": "17929375e8f33ce95f640a0fbea6b0a32c0dd3e7824f2ff545befb91bf741227", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,045
c
// // AppDebugPanel.h // AppDebugPanel // // Created by alexej_ne on 12/03/2019. // Copyright © 2019 BCS. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for AppDebugPanel. FOUNDATION_EXPORT double AppDebugPanelVersionNumber; //! Project version string for AppDebugPanel. FOUNDATION_EXP...
38.23
13
(translation_unit) "//\n// AppDebugPanel.h\n// AppDebugPanel\n//\n// Created by alexej_ne on 12/03/2019.\n// Copyright © 2019 BCS. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n//! Project version number for AppDebugPanel.\nFOUNDATION_EXPORT double AppDebugPanelVersionNumber;\n\n//! Project version string ...
33
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 38.23, "nodes": 15, "errors": 0, "source_hash": "59dc47e8c7fbdb416e5b2088feced32acecb209b178d482ec166fc3ab6e62226", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
4,046
c
/* * Copyright © 2008 <NAME> * Copyright © 2008 <NAME> * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that * the above copyright notice appear in all copies and that both that * copyright notice and this perm...
28.14
327
(translation_unit) "/*\n * Copyright © 2008 <NAME>\n * Copyright © 2008 <NAME>\n *\n * Permission to use, copy, modify, distribute, and sell this software and its\n * documentation for any purpose is hereby granted without fee, provided that\n * the above copyright notice appear in all copies and that both that\n * cop...
1,410
0
{"language": "c", "success": true, "metadata": {"lines": 327, "avg_line_length": 28.14, "nodes": 1065, "errors": 0, "source_hash": "62e1165ee83b437ed6ee337fd2605ee7be9c8b226d5d570b335c0790fc804bf7", "categorized_nodes": 692}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fnde...
4,047
c
/* * loader.h * * Created on: 19.06.2017 * Author: sabrinarosmann */ #ifndef KERNEL_SYSTEMMODULES_LOADER_LOADER_H_ #define KERNEL_SYSTEMMODULES_LOADER_LOADER_H_ #include <inttypes.h> #include "kernel/systemModules/processManagement/processManager.h" #include "kernel/systemModules/loader/intelHe...
24.36
28
(translation_unit) "/* \n * loader.h \n * \n * Created on: 19.06.2017 \n * Author: sabrinarosmann \n */ \n \n#ifndef KERNEL_SYSTEMMODULES_LOADER_LOADER_H_ \n#define KERNEL_SYSTEMMODULES_LOADER_LOADER_H_ \n \n#include <inttypes.h> \n#include "kernel/systemModules/processManagement/processManager.h" \n#include "ker...
83
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 24.36, "nodes": 57, "errors": 0, "source_hash": "64e416f19a61d6462865cac65b1d8c5c6c1929e6bb78f21990265067dc73c898", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,048
c
// // Created by byter on 5/24/18. // #ifndef THREE_PP_TRACKINGPROPERTY_H #define THREE_PP_TRACKINGPROPERTY_H namespace three { namespace quick { template <typename Value> class TrackingPropertyBase { protected: bool _isSet = false; Value _value; public: explicit TrackingPropertyBase(const Value &init) : _val...
32.71
52
(translation_unit) "//\n// Created by byter on 5/24/18.\n//\n\n#ifndef THREE_PP_TRACKINGPROPERTY_H\n#define THREE_PP_TRACKINGPROPERTY_H\n\nnamespace three {\nnamespace quick {\n\ntemplate <typename Value> class TrackingPropertyBase\n{\nprotected:\n bool _isSet = false;\n Value _value;\n\npublic:\n explicit TrackingP...
617
44
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 32.71, "nodes": 356, "errors": 0, "source_hash": "e1eb79c7b84880dfa8b2dd6936cadce3e7af55b4ad31b9e80dcbdae221d16e6b", "categorized_nodes": 229}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef THREE_...
4,049
c
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:52:52 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/WeatherAnalytics.framework/WeatherAnalytics * classdump-dyld is licensed under GPLv3, Copyright © 20...
43.71
21
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Sunday, September 27, 2020 at 11:52:52 AM Mountain Standard Time\n* Operating System: Version 14.0 (Build 18A373)\n* Image Source: /System/Library/PrivateFrameworks/WeatherAnalytics.framework/WeatherAnalytics\n* classdump-dyld is licensed un...
148
14
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 43.71, "nodes": 88, "errors": 0, "source_hash": "00b64045e546597dabb613da77525356dd5e5bfcd436097bc025f46994f92183", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <l...
4,050
c
void makeAckPackage(char* buffer, unsigned short blockNum);
59
1
(translation_unit) "void makeAckPackage(char* buffer, unsigned short blockNum);\n" (declaration) "void makeAckPackage(char* buffer, unsigned short blockNum);" (primitive_type) "void" (function_declarator) "makeAckPackage(char* buffer, unsigned short blockNum)" (identifier) "makeAckPackage" (parame...
20
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 59.0, "nodes": 15, "errors": 0, "source_hash": "0e4b1fd784ee61681e6762778d471997143034445418b5a2484ecf3828f41b03", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "void makeAckP...
4,051
c
/** * This header is generated by class-dump-z 0.2-0. * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3. * * Source: (null) */ #import "VKMCollectionCell.h" #import "VKClient-Structs.h" @class MarketGalleryImageView, UILabel, VKDomainWithCustomCellClass; @protocol VKImageFilter; __attribute...
36.3
37
(translation_unit) "/**\n * This header is generated by class-dump-z 0.2-0.\n * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3.\n *\n * Source: (null)\n */\n\n#import "VKMCollectionCell.h"\n#import "VKClient-Structs.h"\n\n@class MarketGalleryImageView, UILabel, VKDomainWithCustomCellClass;\n@proto...
394
31
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 36.3, "nodes": 242, "errors": 0, "source_hash": "d1381fad8f76949be77f878d3be2bdcb76a449f9b8235b29fadd9f04733feb2d", "categorized_nodes": 145}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
4,052
c
#ifndef BONNE_NUIT_GAME_H #define BONNE_NUIT_GAME_H #include <list> #include <iostream> #include "Player.h" #include "Board.h" #include "../utils/Observable.h" #include "GameState.h" class Game : public Observable { private: int firstPlayer_; std::list<Observer *> observers; GameState gameState_; Pl...
24.32
139
(translation_unit) "#ifndef BONNE_NUIT_GAME_H\n#define BONNE_NUIT_GAME_H\n\n\n#include <list>\n#include <iostream>\n#include "Player.h"\n#include "Board.h"\n#include "../utils/Observable.h"\n#include "GameState.h"\n\nclass Game : public Observable {\n\nprivate:\n int firstPlayer_;\n std::list<Observer *> observer...
420
12
{"language": "c", "success": true, "metadata": {"lines": 139, "avg_line_length": 24.32, "nodes": 257, "errors": 0, "source_hash": "d8e4ad7bb586b83144b21ef8e54b3380a6f713fd9f719b089c09be5884f43dca", "categorized_nodes": 166}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,053
c
inherit ROOM; void create() { set("short", "松林"); set("long", @LONG 這裏是圓月山莊後園一片密密的松木林,四周一片寂靜。松針落 的遍地都是,幾乎把整個小路鋪成了條軟軟的鬆毯,不知名的野兔偷 偷逃過,小路旁就是條靜靜流淌的小溪,溪水上漂浮着松針黃葉,蕩 開枝葉,依稀可看到溪水碧綠如鏡,清澈見底。 LONG ); set("outdoors", "wansong"); set("type","forest"); set("exits",([ "east":__...
23
26
(translation_unit) "inherit ROOM;\nvoid create()\n{\n set("short", "松林"); \n set("long", @LONG\n這裏是圓月山莊後園一片密密的松木林,四周一片寂靜。松針落\n的遍地都是,幾乎把整個小路鋪成了條軟軟的鬆毯,不知名的野兔偷\n偷逃過,小路旁就是條靜靜流淌的小溪,溪水上漂浮着松針黃葉,蕩\n開枝葉,依稀可看到溪水碧綠如鏡,清澈見底。\nLONG );\n set("outdoors", "wansong");\n set("type","forest");\n set("exi...
231
16
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 23.0, "nodes": 103, "errors": 0, "source_hash": "1fd42af23d7721a51e5d6fb850d94e9fa172bf032d5517160d8233415d269767", "categorized_nodes": 74}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "inherit RO...
4,054
c
#ifndef LUASOURCE_H #define LUASOURCE_H #include "OpenAL.h" class LuaSource { private: ALuint source; float x; float y; float z; float vx; float vy; float vz; float dx; float dy; float dz; bool is_looping; float pitch; float gain; float max_distance; float rolloff_factor; float reference_distance; fl...
17.67
39
(translation_unit) "#ifndef LUASOURCE_H\n#define LUASOURCE_H\n\n#include "OpenAL.h"\n\nclass LuaSource {\nprivate:\n ALuint source;\n float x;\n float y;\n float z;\n float vx;\n float vy;\n float vz;\n float dx;\n float dy;\n float dz;\n bool is_looping;\n float pitch;\n float gain;\n float max_distance;\n float rollo...
239
1
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 17.67, "nodes": 163, "errors": 0, "source_hash": "b8b98978bae528e219406adef17bd5a3f876a324150f3e097b6b31a0ab549a2b", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,055
c
#ifndef _BB_H_ #define _BB_H_ #include "chpl.h" #include <vector> #include "stlUtil.h" class BitVec; class Expr; class SymExpr; class Stmt; class Symbol; class FnSymbol; // A pseudo-singleton. // Each basic block contains a list of expressions, in and out edges and an index. // The goto and label maps persist only b...
38.19
59
(translation_unit) "#ifndef _BB_H_\n#define _BB_H_\n\n#include "chpl.h"\n#include <vector>\n#include "stlUtil.h"\n\nclass BitVec;\nclass Expr;\nclass SymExpr;\nclass Stmt;\nclass Symbol;\nclass FnSymbol;\n\n// A pseudo-singleton.\n// Each basic block contains a list of expressions, in and out edges and an index.\n// Th...
583
34
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 38.19, "nodes": 401, "errors": 0, "source_hash": "ca5b5b4fde18e7a598bc50933811c4a812aa3fe14f6f4eed3353148576415835", "categorized_nodes": 227}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,056
c
#include <string.h> #include <ctype.h> enum EDIT_FUNCS { COLLAPSE, COMPRESS, LOWERCASE, TRIM, UNCOMMENT, UPCASE }; struct { char *item; short func; } EDIT_ITEM_INFO[] = { { "COLLAPSE", COLLAPSE }, { "COMPRESS", COMPRESS }, { "LOWERCASE", LOWERCASE }, { "TRIM", TRIM, }, { "UNCOMMENT", UNCOMMENT }, { "UPCASE",...
21.87
123
(translation_unit) "#include <string.h>\n#include <ctype.h>\n\nenum EDIT_FUNCS { COLLAPSE, COMPRESS, LOWERCASE, TRIM, UNCOMMENT, UPCASE };\n\nstruct {\n char *item;\n short func;\n} EDIT_ITEM_INFO[] = {\n { "COLLAPSE", COLLAPSE },\n { "COMPRESS", COMPRESS },\n { "LOWERCASE", LOWERCASE },\n { "TRIM", TRIM, },\n { "UNCOM...
1,274
0
{"language": "c", "success": true, "metadata": {"lines": 123, "avg_line_length": 21.87, "nodes": 820, "errors": 0, "source_hash": "c8407ddc4474e724ffb6ccd5304d68478964e3ebce546c5df7eac94c290686f7", "categorized_nodes": 526}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,057
c
// SRA's custom header file including additional functions #include "sra_board.h" // pointer to a character array static const char* TAG_SWITCH_CONTROL_MOTOR = "switch_control"; // main driver function void drive_task(void *arg) { /* activate gpio pins SWITCH_1, SWITCH_2, SWITCH_3, SWITCH_4 .. * switches coo...
32.87
95
(translation_unit) "// SRA's custom header file including additional functions\n#include "sra_board.h"\n\n// pointer to a character array\nstatic const char* TAG_SWITCH_CONTROL_MOTOR = "switch_control"; \n\n// main driver function\nvoid drive_task(void *arg)\n{\n /*\n activate gpio pins SWITCH_1, SWITCH_2, SWITCH_3,...
325
0
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 32.87, "nodes": 145, "errors": 0, "source_hash": "c6c604ad51c9aa3cf9be2e39c253915d24c35a4f4d2c87a671d7131ace42d313", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,058
c
/** * This header is generated by class-dump-z 0.2-0. * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3. * * Source: (null) */ #import "VKRenderable.h" @class VKIdentity; __attribute__((visibility("hidden"))) @interface VKDomain : VKRenderable { VKIdentity* _iden; } @property(retain, nonat...
25.65
23
(translation_unit) "/**\n * This header is generated by class-dump-z 0.2-0.\n * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3.\n *\n * Source: (null)\n */\n\n#import "VKRenderable.h"\n\n@class VKIdentity;\n\n__attribute__((visibility("hidden")))\n@interface VKDomain : VKRenderable {\n VKIdentity*...
201
17
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 25.65, "nodes": 115, "errors": 0, "source_hash": "8914a9d86e015a9ed97e30651cb81d6710e22131c50a1cbeec9c1b831d769a91", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
4,059
c
#ifndef _GL_WINDOW_H #define _GL_WINDOW_H #include <FL/Fl.H> #include <FL/Fl_Gl_Window.H> #include <FL/Fl_Window.H> #include <FL/Fl_Slider.H> #include <FL/Fl_Button.H> #include <FL/Fl_Gl_Window.H> #include <FL/gl.h> #include <FL/Fl_Browser.H> #include "Frame.h" #include "StringTable.h" #include "LabelTable.h" struct ...
25.82
85
(translation_unit) "#ifndef _GL_WINDOW_H\n#define _GL_WINDOW_H\n\n#include <FL/Fl.H>\n#include <FL/Fl_Gl_Window.H>\n#include <FL/Fl_Window.H>\n#include <FL/Fl_Slider.H>\n#include <FL/Fl_Button.H>\n#include <FL/Fl_Gl_Window.H>\n#include <FL/gl.h>\n#include <FL/Fl_Browser.H>\n#include "Frame.h"\n#include "StringTable.h"\...
654
14
{"language": "c", "success": true, "metadata": {"lines": 85, "avg_line_length": 25.82, "nodes": 446, "errors": 0, "source_hash": "5abb522c266c1d4440d20e918b76be126e59b432ad15fdcabcdf995531eb6cc6", "categorized_nodes": 317}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,060
c
/* PIPS-NLP * * Authors: <NAME> * * (C) 2015 Argonne National Laboratory */ #ifndef AMPLFUNCNEW_H #define AMPLFUNCNEW_H #include "asl_pfgh.h" double Ampl_Eval_Obj(ASL_pfgh *asl_, double *varsX); void Ampl_Eval_Cons(ASL_pfgh...
34.52
21
(translation_unit) "/* PIPS-NLP * \n * Authors: <NAME> * \n * (C) 2015 Argonne National Laboratory */ \n \n#ifndef AMPLFUNCNEW_H \n#define AMPLFUNCNEW_H \n \n#include "asl_pfgh.h" \n \ndouble Ampl_Eval_Obj(ASL_pfgh *asl_, double *varsX); ...
187
1
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 34.52, "nodes": 146, "errors": 0, "source_hash": "46bb1185123a14ad4a7e59b8f60b8e8c97504bf9daae34b5254e670141e3c16d", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,061
c
#ifndef _PLDAPLUS_MODEL_H_ #define _PLDAPLUS_MODEL_H_ #include "mpi.h" #include "document.h" #include "model.h" #define PLDAPLUS_MAX_POOL_SIZE 100 // The PLDAPLUS_TAG_xxxx facilities, which is used for packing and // parsing different types of MPI tags. #define PLDAPLUS_TAG_LENGTH 2 #define PLDAPLUS_TAG_FETCH 0 #de...
37.88
65
(translation_unit) "#ifndef _PLDAPLUS_MODEL_H_\n#define _PLDAPLUS_MODEL_H_\n\n#include "mpi.h"\n\n#include "document.h"\n#include "model.h"\n\n#define PLDAPLUS_MAX_POOL_SIZE 100\n\n// The PLDAPLUS_TAG_xxxx facilities, which is used for packing and\n// parsing different types of MPI tags.\n#define PLDAPLUS_TAG_LENGTH 2\...
381
18
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 37.88, "nodes": 242, "errors": 0, "source_hash": "60a2f8d5807be621651ce451e6f0e7a109f49dd7bf6293ae72fe0b6175332e22", "categorized_nodes": 142}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,062
c
14 uid=311598 27 mtime=1430738578.208251 27 atime=1430738578.206251
21.67
3
(translation_unit) "14 uid=311598\n27 mtime=1430738578.208251\n27 atime=1430738578.206251\n" (ERROR) "14 uid=311598\n27 mtime=1430738578.208251\n27 atime=1430738578.206251" (number_literal) "14" (assignment_expression) "uid=311598\n27 mtime=1430738578.208251\n27 atime=1430738578.206251" (identifier) "ui...
17
2
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 21.67, "nodes": 16, "errors": 0, "source_hash": "ee0ea6154eaaf35b7da4447810388acc1511ed58b70527f4c5b0e7eed02f6c8f", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "14 uid=311598\n27...
4,063
c
// -*- C++ -*- //============================================================================= /** * @file XML_Util.h * * Initially contains a function to escape strings for use in XML files. * * $Id: XML_Util.h 80826 2008-03-04 14:51:23Z wotte $ * * @author <NAME> <<EMAIL>> */ //========================...
34
24
(translation_unit) "// -*- C++ -*-\n\n//=============================================================================\n/**\n * @file XML_Util.h\n *\n * Initially contains a function to escape strings for use in XML files.\n *\n * $Id: XML_Util.h 80826 2008-03-04 14:51:23Z wotte $\n *\n * @author <NAME> <<EMAIL>>\...
93
4
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 34.0, "nodes": 53, "errors": 0, "source_hash": "d6fdedbcb0e6092e1a70354a078749c37be7abee9a66a5056809053997a90f47", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
4,064
c
/* * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef IO_STM32IMAGE_H #define IO_STM32IMAGE_H #include <drivers/io/io_driver.h> #include <drivers/partition/partition.h> #define MAX_LBA_SIZE 512 #define MAX_PART_NAME_SIZE (EFI_NAMELEN + 1...
29.28
25
(translation_unit) "/*\n * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.\n *\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n#ifndef IO_STM32IMAGE_H\n#define IO_STM32IMAGE_H\n\n#include <drivers/io/io_driver.h>\n#include <drivers/partition/partition.h>\n\n#define MAX_LBA_SIZE 512\n#define MA...
97
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 29.28, "nodes": 70, "errors": 0, "source_hash": "d1dad7e2a02ccb2d7240cb3b1137c805e82db5b82bca4ed04ed25ed7bc246696", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,065
c
#pragma once #include "ducky.h" #include "ldMaterial.h" #include "building.h" using namespace ducky; using namespace graphics; using namespace io; using namespace core; class GridMap; class MoneyManagement; class Builder : public Component { public: Builder(Shader* shader, Mesh* plane, Texture2D* white); ~Builder...
22.97
37
(translation_unit) "#pragma once\n\n#include "ducky.h"\n#include "ldMaterial.h"\n#include "building.h"\n\nusing namespace ducky;\nusing namespace graphics;\nusing namespace io;\nusing namespace core;\n\nclass GridMap;\nclass MoneyManagement;\n\nclass Builder : public Component\n{\npublic:\n Builder(Shader* shader, Mesh...
264
7
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 22.97, "nodes": 173, "errors": 0, "source_hash": "6fd543fc03d821be97467c6d32b4d2ade8a3ba63ee833b07d8267e60d7932399", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
4,066
c
// // NSObject+MJExtension.h // QXProject // // Created by monda on 2019/12/13. // Copyright © 2019 monda. All rights reserved. // #import <UIKit/UIKit.h> #import "MTWordStyle.h" #import "MTBorderStyle.h" @interface NSIndexPath(MJExtension) @end @interface UIColor(MJExtension) @end @interface UIImage(MJExtensio...
27.19
16
(translation_unit) "//\n// NSObject+MJExtension.h\n// QXProject\n//\n// Created by monda on 2019/12/13.\n// Copyright © 2019 monda. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "MTWordStyle.h"\n#import "MTBorderStyle.h"\n\n@interface NSIndexPath(MJExtension) @end\n\n@interface UIColor(MJExtension) @...
90
24
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 27.19, "nodes": 67, "errors": 0, "source_hash": "bff73548501f38bcc9c4b2298142cf746f19feabb1eb8ad5ec021c48a0374cfc", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
4,067
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // @class NSObject<OS_dispatch_queue>; @protocol ROCKInvocationCustomization @optional @property(readonly, nonatomic) NSObject<OS_dispatch_queue> *rock_invocationQueue; @property(readonly,...
33.09
11
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n@class NSObject<OS_dispatch_queue>;\n\n@protocol ROCKInvocationCustomization\n\n@optional\n@property(readonly, nonatomic) NSObject<OS_dispatch_queue> *rock_invoc...
65
15
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 33.09, "nodes": 48, "errors": 0, "source_hash": "61a9a78f7c2a255566a941ebda383bb76dc78b86623e64237d8ca8270497e4c8", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nu...
4,068
c
#ifndef EDITCOMPUTERSDIALOG_H #define EDITCOMPUTERSDIALOG_H #include "domain.h" #include <QDialog> namespace Ui { class editcomputersdialog; } class editcomputersdialog : public QDialog { Q_OBJECT public: explicit editcomputersdialog(QWidget *parent = 0); ~editcomputersdialog(); void prepareEdit(QStr...
27.52
23
(translation_unit) "#ifndef EDITCOMPUTERSDIALOG_H\n#define EDITCOMPUTERSDIALOG_H\n#include "domain.h"\n#include <QDialog>\n\nnamespace Ui {\nclass editcomputersdialog;\n}\n\nclass editcomputersdialog : public QDialog\n{\n Q_OBJECT\n\npublic:\n explicit editcomputersdialog(QWidget *parent = 0);\n ~editcomputers...
155
10
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 27.52, "nodes": 91, "errors": 0, "source_hash": "94a136fbe578a68a10a16dc4357df7f2204dea07284a000c0c285aa5e20c5976", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,069
c
/* readperm(): Read the Permissions file, looking for the entry that matches * our system. Continue reading and concatenating until we * hit EOF or the next MACHINE line. */ #include <stdio.h> #include <string.h> #include <ctype.h> #define MAX 175 #define PERMISSIONS "/usr/lib/uucp/Permissions" /* fields neede...
29.3
182
(translation_unit) "/* readperm(): Read the Permissions file, looking for the entry that matches\n * our system. Continue reading and concatenating until we\n * hit EOF or the next MACHINE line.\n */\n\n#include <stdio.h>\n#include <string.h>\n#include <ctype.h>\n\n#define MAX 175\n#define PERMISSIONS "/usr/lib/uucp...
1,400
3
{"language": "c", "success": true, "metadata": {"lines": 182, "avg_line_length": 29.3, "nodes": 795, "errors": 0, "source_hash": "b7d1dd58ce9b72788e5907a1d41e8e5048e0f4d981fe1a13ea98302241d565a2", "categorized_nodes": 505}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,070
c
#ifndef MF_API_H__ #define MF_API_H__ #include "mf_socket.h" #include "mf_topomgr.h" #include "mf_devicemgr.h" #include "mf_msg_parser.h" #include "mf_timer.h" #include "mf_msg_handler.h" #include "./httpserver/cgi.h" //#include "mf_controller.h" void mf_controller_init() { parse_thread_start(WORKER_THREADS_NUM); s...
23.21
28
(translation_unit) "#ifndef MF_API_H__\n#define MF_API_H__\n\n#include "mf_socket.h"\n#include "mf_topomgr.h"\n#include "mf_devicemgr.h"\n#include "mf_msg_parser.h"\n#include "mf_timer.h"\n#include "mf_msg_handler.h"\n#include "./httpserver/cgi.h"\n//#include "mf_controller.h"\n\nvoid mf_controller_init()\n{\n parse_th...
162
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 23.21, "nodes": 88, "errors": 0, "source_hash": "212d8424d49d14892bec4fd2b95bb5df5489cc18d53a1d6675a4ac8e8362523b", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,071
c
#ifndef __FACE_LEARNING_H #define __FACE_LEARNING_H #include "tiny_cnn/tiny_cnn.h" #include <string> #include <vector> std::string test_tinycnn( const std::vector<tiny_cnn::vec_t>& in_data, const std::vector<tiny_cnn::label_t>& labels, int max_label, const tiny_cnn::vec_t& test_data, int b...
21.34
29
(translation_unit) "#ifndef __FACE_LEARNING_H \n#define __FACE_LEARNING_H \n \n#include "tiny_cnn/tiny_cnn.h" \n#include <string> \n#include <vector> \n \nstd::string test_tinycnn( \n const std::vector<tiny_cnn::vec_t>& in_data, \n const std::vector<tiny_cnn::label_t>& labels, int max_label, \n const tiny_cnn...
188
10
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 21.34, "nodes": 114, "errors": 0, "source_hash": "95d54b3b099ff4640d9b4ece83c701b083da7a403af62cefbacf13648eb87c9e", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,072
c
/** * This header is generated by class-dump-z 0.2a. * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3. * * Source: (null) */ @protocol MMMusicPlayerExt @optional -(void)onForceStopMusic; -(void)onPlayPreviousMusic; -(void)onPlayNextMusic; -(void)onMusicPlayStatusChanged; -(void)onLevelMete...
21.8
15
(translation_unit) "/**\n * This header is generated by class-dump-z 0.2a.\n * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3.\n *\n * Source: (null)\n */\n\n\n\n@protocol MMMusicPlayerExt\n@optional\n-(void)onForceStopMusic;\n-(void)onPlayPreviousMusic;\n-(void)onPlayNextMusic;\n-(void)onMusicPla...
69
6
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 21.8, "nodes": 41, "errors": 0, "source_hash": "2377d1c79e7943a583e09d1970e9385b434bd06484dc9f29d7c0a5184afece25", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@protocol MMMusic...
4,073
c
/* Mouse Switching Software for Linux and Unix based operating systems BSD 3-Clause License Copyright (c) 2020, WEY Technology AG 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 ...
36.71
79
(translation_unit) "/*\nMouse Switching Software\nfor Linux and Unix based operating systems\n\nBSD 3-Clause License\n\nCopyright (c) 2020, WEY Technology AG\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions ar...
335
0
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 36.71, "nodes": 196, "errors": 0, "source_hash": "2b176a3ecc037c69ec12ea18d1ac8913eea2bf0e0aa142bdf70eabebf81b877b", "categorized_nodes": 151}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,074
c
// // ZDHDesignMethodsViewControllerViewModel.h // ZhiDa_Home // // Created by apple on 15/11/30. // Copyright (c) 2015年 软碟技术. All rights reserved. // #import <Foundation/Foundation.h> @interface ZDHDesignMethodsViewControllerViewModel : NSObject @property (strong, nonatomic) NSArray *dataImageArray; @property (s...
38.56
16
(ERROR) "//\n// ZDHDesignMethodsViewControllerViewModel.h\n// ZhiDa_Home\n//\n// Created by apple on 15/11/30.\n// Copyright (c) 2015年 软碟技术. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface ZDHDesignMethodsViewControllerViewModel : NSObject\n@property (strong, nonatomic) NSArray *dataImag...
126
20
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 38.56, "nodes": 79, "errors": 0, "source_hash": "75e6bb47d881f71ee892a12ac9f47233d9a12cf18df84e1e23472f92e124ffb6", "categorized_nodes": 45}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// ZDHDesignMethodsVie...
4,075
c
// #define tdbg #define use_spinlock // Wrapper around pthreads #include <pthread.h> #if 0 typedef pthread_t cthread_t; typedef pthread_mutex_t cthread_mutex_t; typedef pthread_attr_t cthread_attr_t; typedef pthread_mutexattr_t cthread_mutexattr_t; typedef pthread_cond_t cthread_cond_t; typedef pthread_condattr_t...
26.29
168
(translation_unit) "// \n\n#define tdbg\n\n#define use_spinlock\n\n// Wrapper around pthreads\n\n#include <pthread.h>\n\n#if 0\ntypedef pthread_t cthread_t;\ntypedef pthread_mutex_t cthread_mutex_t;\ntypedef pthread_attr_t cthread_attr_t;\ntypedef pthread_mutexattr_t cthread_mutexattr_t;\ntypedef pthread_cond_t cthread...
1,087
0
{"language": "c", "success": true, "metadata": {"lines": 168, "avg_line_length": 26.29, "nodes": 751, "errors": 0, "source_hash": "8f8481e0a696962fe7dc5f3450b57f994c566f63d3df0b0b60160e6ae559162c", "categorized_nodes": 504}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
4,076
c
// // UIButton+BWExtension.h // BWExtensionKit // // Created by BowenLi on 2020/8/20. // #import <UIKit/UIKit.h> typedef NS_ENUM(NSInteger, BWImagePosition) { BWImagePositionLeft, // 图片在左,文字在右,默认 BWImagePositionRight, // 图片在右,文字在左 BWImagePositionTop, // 图片在上,文字在下 BWImagePositionBottom // 图片在下,...
28.84
37
(ERROR) "//\n// UIButton+BWExtension.h\n// BWExtensionKit\n//\n// Created by BowenLi on 2020/8/20.\n//\n\n#import <UIKit/UIKit.h>\n\ntypedef NS_ENUM(NSInteger, BWImagePosition) {\n \n BWImagePositionLeft, // 图片在左,文字在右,默认\n BWImagePositionRight, // 图片在右,文字在左\n BWImagePositionTop, // 图片在上,文字在下\n BWImage...
189
18
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 28.84, "nodes": 108, "errors": 0, "source_hash": "22001dd75cb41e4fcd8023209108d6bd4a6ebb40f545b9f118b480d95334ea81", "categorized_nodes": 67}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// UIButton+BWExtensi...
4,077
c
//---------------------------------------------------------- -*- Mode: C++ -*- // $Id$ // // Created 2010/06/22 // Author: <NAME> // // Copyright 2010-2012,2016 Quantcast Corporation. All rights reserved. // // This file is part of Kosmos File System (KFS). // // Licensed under the Apache License, Version 2.0 // (the "...
31.79
239
(translation_unit) "//---------------------------------------------------------- -*- Mode: C++ -*-\n// $Id$\n//\n// Created 2010/06/22\n// Author: <NAME>\n//\n// Copyright 2010-2012,2016 Quantcast Corporation. All rights reserved.\n//\n// This file is part of Kosmos File System (KFS).\n//\n// Licensed under the Apache ...
1,320
56
{"language": "c", "success": true, "metadata": {"lines": 239, "avg_line_length": 31.79, "nodes": 762, "errors": 0, "source_hash": "70c38e92dc8c0682df8c880aead6a06424e7a61cc66f31181026032e21459163", "categorized_nodes": 568}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,078
c
struct integers { int *data; size_t length; }
12.5
4
(translation_unit) "struct integers {\n int *data;\n size_t length;\n}\n" (struct_specifier) "struct integers {\n int *data;\n size_t length;\n}" (struct) "struct" (type_identifier) "integers" (field_declaration_list) "{\n int *data;\n size_t length;\n}" ({) "{" (field_declar...
18
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 12.5, "nodes": 11, "errors": 0, "source_hash": "66ae35cf32c8ef33510b384e9da1a2fba6c94729d9f1914e42ab5d685205465a", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "struct_specifier", "text": "struct i...
4,079
c
#include "main.h" #include "cuboid.h" #include "cylinder.h" #ifndef FUELUP_H #define FUELUP_H class Fuelup { public: Fuelup() {} Fuelup(float x, float y, float z); glm::vec3 position; float rotation; bool exist; void draw(glm::mat4 VP); Cuboid body, handle; Cylinder cap; private: VAO *object; }; #...
15.1
20
(translation_unit) "#include "main.h"\n#include "cuboid.h"\n#include "cylinder.h"\n\n#ifndef FUELUP_H\n#define FUELUP_H\n\nclass Fuelup\n{\npublic:\n Fuelup() {}\n Fuelup(float x, float y, float z);\n glm::vec3 position;\n float rotation;\n bool exist;\n void draw(glm::mat4 VP);\n Cuboid body, handle;\n Cylinde...
115
5
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 15.1, "nodes": 69, "errors": 0, "source_hash": "9e9a5cc5460225726d93728a93317e2c326b67eca79efa18837986ba29220782", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
4,080
c
#ifndef _RESOURCE_MGR_H_ #define _RESOURCE_MGR_H_ #ifdef _WIN32 #ifdef resource_EXPORTS #define RES_API __declspec(dllexport) #define RES_FUNC_API extern "C" __declspec( dllexport ) #define RES_GLOBAL_API extern __declspec( dllexport ) #elif defined(_LIB) #define RES_API #define RES_FUNC_API extern "C" #define RES_GL...
26.52
33
(translation_unit) "#ifndef _RESOURCE_MGR_H_\n#define _RESOURCE_MGR_H_\n\n#ifdef _WIN32\n#ifdef resource_EXPORTS\n#define RES_API __declspec(dllexport)\n#define RES_FUNC_API extern "C" __declspec( dllexport )\n#define RES_GLOBAL_API extern __declspec( dllexport )\n#elif defined(_LIB)\n#define RES_API\n#define RES_FUNC...
111
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 26.52, "nodes": 104, "errors": 0, "source_hash": "4c88f739c91da0b003db6e2cc34a3628a35d8c7d4ac0a98cbcb069cf7a238a28", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,081
c
/****************************************************************************** * * Copyright(c) 2007 - 2011 Realtek Corporation. 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 b...
26.05
94
(translation_unit) "/****************************************************************************** \n * \n * Copyright(c) 2007 - 2011 Realtek Corporation. 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 L...
363
10
{"language": "c", "success": true, "metadata": {"lines": 94, "avg_line_length": 26.05, "nodes": 269, "errors": 0, "source_hash": "9fa972a0af0f0154e91098754a0fe400abedd17fc8067271d0c08be7a22fa810", "categorized_nodes": 196}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,082
c
#ifndef inventoneFPS_h #define inventoneDHT_h #define ON true #define OFF false class inventoneFPS { public: inventoneFPS(uint8_t rx_pin, uint8_t tx_pin); void setupFPS(); //void turnLED(bool state); int searchFreeID(); bool enrollFinger(int ID); //int findFingerID(...
21.07
15
(translation_unit) "#ifndef inventoneFPS_h\n#define inventoneDHT_h\n\n#define ON true\n#define OFF false\n\nclass inventoneFPS\n{\n public:\n inventoneFPS(uint8_t rx_pin, uint8_t tx_pin);\n void setupFPS();\n //void turnLED(bool state);\n int searchFreeID();\n bool enrollFinger(int...
70
1
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 21.07, "nodes": 45, "errors": 0, "source_hash": "a7136cbb789c41493acc578c2f5afade7d2099ffe32b12fd3c95fe0604ed5aea", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,083
c
#include <unistd.h> #include <sys/wait.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> // int main() // { // char c = 'c'; // if(c>' ' && c<'~'){ // printf("The char is %c", c); // } // else{ // printf("no"); // } // return 0; // } // int main(int argc, char* const...
25.85
101
(translation_unit) "#include <unistd.h>\n#include <sys/wait.h>\n#include <fcntl.h>\n#include <stdio.h>\n#include <stdlib.h>\n\n// int main()\n// {\n// char c = 'c';\n// if(c>' ' && c<'~'){\n// printf("The char is %c", c);\n// }\n// else{\n// printf("no");\n// }\n// return 0;\n// ...
430
0
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 25.85, "nodes": 212, "errors": 0, "source_hash": "1f1e3e3826e06f605c1d9c157137ddb2033b338c89b6ac398624fea7834d7abc", "categorized_nodes": 153}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
4,084
c
// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em // with input from lifecycle_msgs:msg/Transition.idl // generated code does not contain a copyright notice #ifndef LIFECYCLE_MSGS__MSG__TRANSITION__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ #define LIFECYCLE_MSGS__MSG__TRANSITION__RO...
40.41
32
(translation_unit) "// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em\n// with input from lifecycle_msgs:msg/Transition.idl\n// generated code does not contain a copyright notice\n#ifndef LIFECYCLE_MSGS__MSG__TRANSITION__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_\n#define LIFECYCLE_M...
124
2
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 40.41, "nodes": 82, "errors": 0, "source_hash": "38befa1c1c2bfb4747c72991915ed9a418e80133bb69bcd16ffbbf545d1271c0", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,085
c
/** @file Copyright (c) 2020, <NAME> Copyright (c) 2016, <NAME> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bs...
26.76
95
(translation_unit) "/** @file\n\n Copyright (c) 2020, <NAME>\n Copyright (c) 2016, <NAME>\n\n This program and the accompanying materials\n are licensed and made available under the terms and conditions of the BSD License\n which accompanies this distribution. The full text of the license may be found at\n http:...
309
22
{"language": "c", "success": true, "metadata": {"lines": 95, "avg_line_length": 26.76, "nodes": 258, "errors": 0, "source_hash": "7382abffe07808637e295bc469b04c624475b1c6268320ad678185eb7e2ba1eb", "categorized_nodes": 178}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,086
c
#pragma once void test_pieces_pool(void); void test_pieces_pool_multi_threading(void);
28
3
(translation_unit) "#pragma once\n\nvoid test_pieces_pool(void);\n\nvoid test_pieces_pool_multi_threading(void);\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (declaration) "void test_pieces_pool(void);" (primitive_type) "void" (function_declarator) "test_piec...
24
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 28.0, "nodes": 17, "errors": 0, "source_hash": "f66fa376994ed665808c0dac9ad40da76abbac37ea4733d16298d98f34ca187f", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once...
4,087
c
/** * @Filename: EECS_388_Program_Base_Fa18.c * @Author: Dr. <NAME> * @Email: <EMAIL> * @Modified By: <NAME> and <NAME> * @Email: <EMAIL> * @Email: <EMAIL> * @Created: October 4th, 2018 [1:02pm] * @Modified: October 18th, 2018 [6:53am] * @Version: 2.0.0 * * @Description: Periodically read and report accele...
33.11
62
(translation_unit) "/**\n* @Filename: EECS_388_Program_Base_Fa18.c\n* @Author: Dr. <NAME>\n* @Email: <EMAIL>\n* @Modified By: <NAME> and <NAME>\n* @Email: <EMAIL>\n* @Email: <EMAIL>\n* @Created: October 4th, 2018 [1:02pm]\n* @Modified: October 18th, 2018 [6:53am]\n* @Version: 2.0.0\n*\n* @Description: Peri...
384
0
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 33.11, "nodes": 216, "errors": 0, "source_hash": "033cb9844fa83ddca003a0f1f479e6771bbe099d51c63ecfeaeca5cd42d9f673", "categorized_nodes": 142}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
4,088
c
/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
34.5
32
(translation_unit) "/*\n * Copyright 2011 Google Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by app...
206
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 34.5, "nodes": 116, "errors": 0, "source_hash": "0276912f67f2cdf65271dfcea11cccd140eb876bf73b328b2927818172f6b50a", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "struct sta...
4,089
c
#ifndef SRC_GET_INCHI_DATA_H_ #define SRC_GET_INCHI_DATA_H_ /* get_inchi_data.h * Copyright 2014 Cubane Canada, Inc. * * Released under the MIT license -- see MIT-LICENSE for details */ #include "inchi_dll/inchi_api.h" struct GetINCHIData { static const int INCHIKEY_SIZE = 28; GetINCHIData(); ~GetINCHIData...
23.32
19
(translation_unit) "#ifndef SRC_GET_INCHI_DATA_H_\n#define SRC_GET_INCHI_DATA_H_\n/* get_inchi_data.h\n * Copyright 2014 Cubane Canada, Inc.\n *\n * Released under the MIT license -- see MIT-LICENSE for details\n */\n\n#include "inchi_dll/inchi_api.h"\n\nstruct GetINCHIData {\n static const int INCHIKEY_SIZE = 28;\n\n...
80
2
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 23.32, "nodes": 50, "errors": 0, "source_hash": "91297cacb1cc4c993463afb2e7351f8732d967eac750e89b897187f9d03668f6", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,090
c
#include <stdio.h> int main() { float y, x; int n; scanf("%f %d", &x, &n); y = 1; int i; for(i = 0; i < n; ++i) { y = y * x; } printf("%.2f^%d = %.2f", x, n, y); return 0; }
13.23
13
(translation_unit) "#include <stdio.h>\n\nint main() {\n float y, x;\n int n;\n scanf("%f %d", &x, &n);\n y = 1;\n int i;\n for(i = 0; i < n; ++i) {\n y = y * x;\n }\n printf("%.2f^%d = %.2f", x, n, y);\n return 0;\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<std...
103
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 13.23, "nodes": 58, "errors": 0, "source_hash": "273a7fc7424b992fe18210cc7dadc3722140805cd7676b6774e9324cc4e71b4f", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
4,091
c
// tbrowse.h - table browser (CSV) #ifndef __QLIB_TBROWSE_H #define __QLIB_TBROWSE_H #include <qlib/dbfield.h> #include <qlib/csv.h> #define QTB_MAXFIELD 20 class QTableBrowser { protected: QDBField *field[QTB_MAXFIELD]; QCSVFile *csv; int fields; // From which field is the contents int fieldIndex[QTB_MA...
22.25
28
(translation_unit) "// tbrowse.h - table browser (CSV)\n\n#ifndef __QLIB_TBROWSE_H\n#define __QLIB_TBROWSE_H\n\n#include <qlib/dbfield.h>\n#include <qlib/csv.h>\n\n#define QTB_MAXFIELD 20\n\nclass QTableBrowser\n{\n protected:\n QDBField *field[QTB_MAXFIELD];\n QCSVFile *csv;\n int fields;\n // From which field is ...
183
2
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 22.25, "nodes": 124, "errors": 0, "source_hash": "2114ec27b0e1edf29ff0978d7858c1490345f8a5f34e5c6c3ea8db2fe872c65b", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,092
c
//===-- MPITypes.h - Functionality to model MPI concepts --------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
36.15
55
(translation_unit) "//===-- MPITypes.h - Functionality to model MPI concepts --------*- C++ -*-===//\n//\n// The LLVM Compiler Infrastructure\n//\n// This file is distributed under the University of Illinois Open Source\n// License. See LICENSE.TXT for details.\n//\n//===----------------------------...
278
14
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 36.15, "nodes": 141, "errors": 0, "source_hash": "9b9ed65804aee4c6e032aee39508401796c38f4f5431db812b75b4552b435ff3", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,093
c
// // Copyright (c) 2008-present, Meitu, Inc. // All rights reserved. // // This source code is licensed under the license found in the LICENSE file in // the root directory of this source tree. // // Created on: 15/09/2017 // Created by: EuanC // #if __has_include(<MTGLDebug/MTGLDebug.h>) FOUNDATION_EXPORT double MT...
25.67
18
(translation_unit) "//\n// Copyright (c) 2008-present, Meitu, Inc.\n// All rights reserved.\n//\n// This source code is licensed under the license found in the LICENSE file in\n// the root directory of this source tree.\n//\n// Created on: 15/09/2017\n// Created by: EuanC\n//\n\n\n#if __has_include(<MTGLDebug/MTGLDebug...
57
4
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 25.67, "nodes": 34, "errors": 0, "source_hash": "07c74e64620adae2fd37a9b65c202080de8d1b4be9ec73ac9c21b65c1a8a0965", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#if __has_includ...
4,094
c
#pragma once #include <cassert> #include <list> #include <map> #include <algorithm> /* Templated Graph class designed to work with a generic solver function. If T is POD, then it is copy-safe. */ template<typename T> class Graph { public: struct Edge { size_t self; ...
28.88
113
(translation_unit) "#pragma once \n#include <cassert> \n#include <list> \n#include <map> \n#include <algorithm> \n \n/* \n Templated Graph class designed to work with a generic solver function. \n If T is POD, then it is copy-safe. \n*/ \n \ntemplate<typename T> \nclass Graph \n{ \npublic: \n struct Edge \...
905
36
{"language": "c", "success": true, "metadata": {"lines": 113, "avg_line_length": 28.88, "nodes": 537, "errors": 0, "source_hash": "6b7df292c9a2b0e71bf301d44ecaec4b11b12a47173fc158931b6c7f140bc1f3", "categorized_nodes": 391}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
4,095
c
#ifndef UTILS_H #define UTILS_H #include <ctime> #include <string> #include <utility> static bool globalVerbosity = false; /** * Helper method that optionally prints a message depending on the verbosity * of this object * @param text string of the message to display */ void DebugPrint(std::string text); /** * H...
31.92
38
(translation_unit) "#ifndef UTILS_H\n#define UTILS_H\n\n#include <ctime>\n#include <string>\n#include <utility>\n\nstatic bool globalVerbosity = false;\n/**\n * Helper method that optionally prints a message depending on the verbosity\n * of this object\n * @param text string of the message to display\n */\nvoid DebugP...
135
9
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 31.92, "nodes": 87, "errors": 0, "source_hash": "0af4d7128db189db5503e39173a9c48f7e60d978d0c02a05ded468a619970980", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
4,096
c
/** @file Copyright (c) 2016 - 2017, Socionext Inc. All rights reserved.<BR> Copyright (c) 2017, Linaro, Ltd. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #ifndef OGMA_BASIC_ACCESS_H #define OGMA_BASIC_ACCESS_H #include "ogma_internal.h" static __inline void ogma_w...
22.61
46
(translation_unit) "/** @file \n \n Copyright (c) 2016 - 2017, Socionext Inc. All rights reserved.<BR> \n Copyright (c) 2017, Linaro, Ltd. All rights reserved.<BR> \n \n SPDX-License-Identifier: BSD-2-Clause-Patent \n \n**/ \n \n#ifndef OGMA_BASIC_ACCESS_H \n#define OGMA_BASIC_ACCESS_H \n \n#include "ogma_internal.h...
182
0
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 22.61, "nodes": 121, "errors": 0, "source_hash": "222761e38de231bec06b585f09e94fbff83cd65f1e6ea8ba400fefecb206f607", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
4,097
c
#ifndef __DISPLAYOBJECT_H__ #define __DISPLAYOBJECT_H__ #include "FGUIMacros.h" #include "Node.h" #include "NGraphics.h" NS_FGUI_BEGIN class RenderContext; class HitTestContext; class IHitTest; class FGUI_IMPEXP DisplayObject : public Node { public: CREATE_FUNC(DisplayObject); float getX(...
29.35
174
(translation_unit) "#ifndef __DISPLAYOBJECT_H__ \n#define __DISPLAYOBJECT_H__ \n \n#include "FGUIMacros.h" \n#include "Node.h" \n#include "NGraphics.h" \n \nNS_FGUI_BEGIN \n \nclass RenderContext; \nclass HitTestContext; \nclass IHitTest; \n \nclass FGUI_IMPEXP DisplayObject : public Node \n{ \npublic: \n CREATE_FUN...
1,505
55
{"language": "c", "success": true, "metadata": {"lines": 174, "avg_line_length": 29.35, "nodes": 922, "errors": 0, "source_hash": "3e6d076a3f85fc79d1e180628240458b24e89e5b8a16e24a5feeeeaabd207b48", "categorized_nodes": 617}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
4,098
c
/* * Copyright (C) 2015, <NAME> * TU Darmstadt - Graphics, Capture and Massively Parallel Computing * All rights reserved. * * This software may be modified and distributed under the terms * of the BSD 3-Clause license. See the LICENSE.txt file for details. */ #ifndef SCENE_OVERVIEW_HEADER #define SCENE_OVERVIE...
25.44
50
(translation_unit) "/*\n * Copyright (C) 2015, <NAME>\n * TU Darmstadt - Graphics, Capture and Massively Parallel Computing\n * All rights reserved.\n *\n * This software may be modified and distributed under the terms\n * of the BSD 3-Clause license. See the LICENSE.txt file for details.\n */\n\n#ifndef SCENE_OVERVIEW...
286
8
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 25.44, "nodes": 179, "errors": 0, "source_hash": "1d07bf46b74f400049166d000de7f88009ac268d5f6bbeb80cb3f0b2a656e8c9", "categorized_nodes": 119}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
4,099