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
#define ILLEGAL_INSTRUCTION 6 #define GENERAL_PROTECTION_FAULT 0xd #define PM (I.msw&1) #define CPL (I.sregs[CS]&3) #define IOPL ((I.flags&0x3000)>>12) static void i80286_trap2(int number); static void i80286_interrupt_descriptor(UINT16 number); static void i80286_code_descriptor(UINT16 selector, UINT16 offset); stat...
39.82
11
(translation_unit) "#define ILLEGAL_INSTRUCTION 6\n#define GENERAL_PROTECTION_FAULT 0xd\n\n#define PM (I.msw&1)\n#define CPL (I.sregs[CS]&3)\n#define IOPL ((I.flags&0x3000)>>12)\n\nstatic void i80286_trap2(int number);\nstatic void i80286_interrupt_descriptor(UINT16 number);\nstatic void i80286_code_descriptor(UINT16 s...
117
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 39.82, "nodes": 80, "errors": 0, "source_hash": "275c3eca28fea03f1ee9d0de02dfa782e10cc21a97d02f507544bb52fea05ac4", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define IL...
80,400
c
#include <stdio.h> #include <stdlib.h> int StrLen(char *string) { int i; for (i = 0; string[i] != '\0'; ++i); return i; } int StrCmp(char *string1, char *string2) { int a, i, maior, x, y; a = 0; x = StrLen(string1); y = StrLen(string2); maior = x; if(maior < y) maior ...
16.43
37
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\nint StrLen(char *string)\n{\n\n int i;\n\n for (i = 0; string[i] != '\0'; ++i);\n return i;\n}\n\nint StrCmp(char *string1, char *string2)\n{\n\n int a, i, maior, x, y;\n\n a = 0;\n\n x = StrLen(string1);\n y = StrLen(string2);\n\n m...
268
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 16.43, "nodes": 164, "errors": 0, "source_hash": "d539ef2e320871f094c96b12bf923a122b1e1881d5d47e0a72d09922c5c95b40", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
80,401
c
// // ASScreenRecorder.h // ScreenRecorder // // Created by <NAME> on 23/04/2014. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> typedef void (^VideoCompletionBlock)(void); @protocol ASScreenRecorderDelegate; @interface ASScreenRecorder : NSObject @...
35.44
55
(translation_unit) "//\n// ASScreenRecorder.h\n// ScreenRecorder\n//\n// Created by <NAME> on 23/04/2014.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\ntypedef void (^VideoCompletionBlock)(void);\n@protocol ASScreenRecorderDelegate;\n\n@interf...
243
46
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 35.44, "nodes": 161, "errors": 0, "source_hash": "a66f629f4d7653d433098846b6aedfe2a326ec6687068284b39cc9cbeadb6bf8", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
80,402
c
#ifndef ARK_CORE_UTIL_SHARED_PTR_UTIL_H_ #define ARK_CORE_UTIL_SHARED_PTR_UTIL_H_ #include "core/base/delegate.h" #include "core/types/shared_ptr.h" namespace ark { class SharedPtrUtil { public: template<typename T, typename U> static sp<T> as(const sp<U>& ptr) { const sp<T> directConvertedPtr = ptr.temp...
29.32
19
(translation_unit) "#ifndef ARK_CORE_UTIL_SHARED_PTR_UTIL_H_\n#define ARK_CORE_UTIL_SHARED_PTR_UTIL_H_\n\n#include "core/base/delegate.h"\n#include "core/types/shared_ptr.h"\n\nnamespace ark {\n\nclass SharedPtrUtil {\npublic:\n template<typename T, typename U> static sp<T> as(const sp<U>& ptr) {\n const sp<T...
166
7
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 29.32, "nodes": 105, "errors": 0, "source_hash": "194477cc17cc165ba5794802a83c0c698c29b0c1c91157a657f30b61323b1cf4", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
80,403
c
/* File: main.c Author: <NAME> License: MIT MIT License Copyright (c) 2017-2022 <NAME> <<EMAIL>> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including withou...
32.22
226
(translation_unit) "/*\n\n File: main.c\n Author: <NAME>\n License: MIT\n\n\n MIT License\n\n Copyright (c) 2017-2022 <NAME> <<EMAIL>>\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the "Software"), to deal\n in the Software with...
1,406
0
{"language": "c", "success": true, "metadata": {"lines": 226, "avg_line_length": 32.22, "nodes": 782, "errors": 0, "source_hash": "6bd82c4296897a6c2ad64037e0382b93c638b2c4fa4924410db364cd0d797669", "categorized_nodes": 594}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
80,404
c
#include "lokoinc.h" #include "lokostatus.h" #include "lokocmd.h" #include "lokocvinc.h" namespace loko{ class LokoCvCore{ public: LokoCvCore(); ~LokoCvCore(); bool Handle(LokoCmd * cmd, cv::Mat matsrc, cv::Mat &matdst); }; }
20.17
12
(translation_unit) "#include "lokoinc.h"\n#include "lokostatus.h"\n#include "lokocmd.h"\n\n#include "lokocvinc.h"\n\nnamespace loko{\n\nclass LokoCvCore{\n public:\n LokoCvCore();\n ~LokoCvCore();\n\n bool Handle(LokoCmd * cmd, cv::Mat matsrc, cv::Mat &matdst);\n};\n\n}" (preproc_include) "#in...
88
2
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 20.17, "nodes": 46, "errors": 0, "source_hash": "8e3fb87369644db40d235ef78eff08715bf973f485ce83b0244872c6d9f3e80c", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
80,405
c
/* MIT License Copyright (c) 2021 SAE Institute Geneva Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, pu...
37.86
72
(translation_unit) "/*\nMIT License\n\nCopyright (c) 2021 SAE Institute Geneva\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto ...
471
35
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 37.86, "nodes": 253, "errors": 0, "source_hash": "993eb8c92c7255ae8afa8b1d80166d7a9a0dcc9097534064d816b059e5ecc33f", "categorized_nodes": 166}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
80,406
c
#pragma once // from SDL_mouse.h #define MOUSE_BUTTON(X) (1 << ((X)-1)) #define MOUSE_BUTTON_LEFT 1 #define MOUSE_BUTTON_MIDDLE 2 #define MOUSE_BUTTON_RIGHT 3 #define MOUSE_BUTTON_X1 4 #define MOUSE_BUTTON_X2 5 #define MOUSE_BUTTON_LMASK MOUSE_BUTTON(V2D_BUTTON_LEFT) #define MOUSE_BUTTON_...
33.9
20
(translation_unit) "#pragma once\n\n// from SDL_mouse.h\n#define MOUSE_BUTTON(X) (1 << ((X)-1))\n#define MOUSE_BUTTON_LEFT 1\n#define MOUSE_BUTTON_MIDDLE 2\n#define MOUSE_BUTTON_RIGHT 3\n#define MOUSE_BUTTON_X1 4\n#define MOUSE_BUTTON_X2 5\n#define MOUSE_BUTTON_LMASK MOUSE_BUTTON(V2D_BUTTO...
82
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 33.9, "nodes": 70, "errors": 0, "source_hash": "573e2d97945b987b7e2ad8e6bf18296dd6c4f95ff3a1e05c34cb5b88d93eb2e6", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
80,407
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @class NSDate, NSDictionary, NSError, NSString, OSALog; @interface PCCJob : NSObject { OSALog *_package; NSError *_errObj; NSString *_jid; NSString ...
36.58
31
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n@class NSDate, NSDictionary, NSError, NSString, OSALog;\n\n@interface PCCJob : NSObject\n{\n OSALog *_package;\n NSError *_errObj;\...
335
35
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 36.58, "nodes": 218, "errors": 0, "source_hash": "09586d54528a95d1ed274be6e4ec6ada6e78dc9d794d18979fe3deb156c2be1f", "categorized_nodes": 136}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
80,408
c
/* * File: PPFnGetProperty.h * Copyright (C) 2008 The Institute for System Programming of the Russian Academy of Sciences (ISP RAS) */ #ifndef __PPFNGETPROPERTY_H #define __PPFNGETPROPERTY_H #include "common/sedna.h" #include "tr/executor/base/PPBase.h" class PPFnGetProperty : public PPIterator { private: PP...
26.89
28
(translation_unit) "/*\n * File: PPFnGetProperty.h\n * Copyright (C) 2008 The Institute for System Programming of the Russian Academy of Sciences (ISP RAS)\n */\n\n#ifndef __PPFNGETPROPERTY_H\n#define __PPFNGETPROPERTY_H\n\n#include "common/sedna.h"\n#include "tr/executor/base/PPBase.h"\n\nclass PPFnGetProperty : publ...
156
8
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 26.89, "nodes": 99, "errors": 0, "source_hash": "1305db630378eaf10bd995f351363e4b833e6bb0aa5e072b256af63a25db6ee9", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
80,409
c
// // EMMessage+PushKit.h // EaseMobCallKit // // Created by 杜洁鹏 on 2020/8/13. // Copyright © 2020 djp. All rights reserved. // #import <Hyphenate/Hyphenate.h> NS_ASSUME_NONNULL_BEGIN @interface EMMessage (PushKit) + (void)sendPushKitCallMessageToUser:(NSString *)aUsername myNickname:(N...
27.47
15
(translation_unit) "//\n// EMMessage+PushKit.h\n// EaseMobCallKit\n//\n// Created by 杜洁鹏 on 2020/8/13.\n// Copyright © 2020 djp. All rights reserved.\n//\n\n#import <Hyphenate/Hyphenate.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface EMMessage (PushKit)\n+ (void)sendPushKitCallMessageToUser:(NSString *)aUsername\n ...
78
6
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 27.47, "nodes": 46, "errors": 0, "source_hash": "fa4ce84a0d9eb81c5335e21e2106a3bc7b5fbe8071643219b7a459c66c2ce2fa", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <Hyphena...
80,410
c
/** * @cond ___LICENSE___ * * Copyright (c) 2016-2018 Zefiros Software. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights ...
38.76
110
(translation_unit) "/**\n * @cond ___LICENSE___\n *\n * Copyright (c) 2016-2018 Zefiros Software.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including with...
747
17
{"language": "c", "success": true, "metadata": {"lines": 110, "avg_line_length": 38.76, "nodes": 466, "errors": 0, "source_hash": "db29c707a2ffabc5a360841941b9375e3b3437da188e0eac7a930e0eb9368ff8", "categorized_nodes": 330}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
80,411
c
// // Created by peter on 3/28/15. // #ifndef WORD_BRAIN_SOLVER_READER_H #define WORD_BRAIN_SOLVER_READER_H #include "Board.h" #include <memory> class Reader { public: Reader() {} virtual ~Reader() {} virtual std::unique_ptr<Board> getBoard()=0; virtual const std::vector<int>& getWordLengths()=0; }; ...
22.53
15
(translation_unit) "//\n// Created by peter on 3/28/15.\n//\n\n#ifndef WORD_BRAIN_SOLVER_READER_H\n#define WORD_BRAIN_SOLVER_READER_H\n\n#include "Board.h"\n#include <memory>\n\nclass Reader {\npublic:\n Reader() {}\n virtual ~Reader() {}\n virtual std::unique_ptr<Board> getBoard()=0;\n virtual const std::v...
94
4
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 22.53, "nodes": 55, "errors": 0, "source_hash": "3dd49e661b4ab5d97b99f86964c6e0e283ce6689a97a7fa540f61a8b3c100afb", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
80,412
c
// -*- mode: c++; tab-width: 4; indent-tabs-mode: t; c-file-style: "stroustrup"; -*- // vi:set ts=4 sts=4 sw=4 noet : // Copyright 2008, The TPIE development team // // This file is part of TPIE. // // TPIE is free software: you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public ...
36.51
59
(translation_unit) "// -*- mode: c++; tab-width: 4; indent-tabs-mode: t; c-file-style: "stroustrup"; -*-\n// vi:set ts=4 sts=4 sw=4 noet :\n// Copyright 2008, The TPIE development team\n// \n// This file is part of TPIE.\n// \n// TPIE is free software: you can redistribute it and/or modify it under\n// the terms of the...
101
0
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 36.51, "nodes": 46, "errors": 0, "source_hash": "6da4b81b616c4cbcec18d092b8f54e69e028d6dee6ebafb79f28bf0168c54793", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
80,413
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "utils.h" #define INTEGER 0 #define VARCHAR 1 #define TIMESTAMP 2 #define NUMERIC 3 #define MAXLINESIZE 1024 int getyear(int date); int getmonth(int date); int getday(int date); void table_gen(long long nrows, Stringlist wlist,int numcols, int *co...
35.69
188
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#include "utils.h"\n\n#define INTEGER 0\n#define VARCHAR 1\n#define TIMESTAMP 2\n#define NUMERIC 3\n\n#define MAXLINESIZE 1024\n\nint getyear(int date);\nint getmonth(int date);\nint getday(int date);\n\nvoid table_gen(long long nrows, ...
2,240
0
{"language": "c", "success": true, "metadata": {"lines": 188, "avg_line_length": 35.69, "nodes": 1357, "errors": 0, "source_hash": "bbe7a8fdf90b8e398ef3e2c8899b8e889cedccff5fc0a5393866064ba5882352", "categorized_nodes": 964}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
80,414
c
#ifndef DSA_SDK_ACK_MESSAGE_H #define DSA_SDK_ACK_MESSAGE_H #if defined(_MSC_VER) #pragma once #endif #include "base_message.h" namespace dsa { class AckMessage final : public Message { public: AckMessage(const uint8_t* data, size_t size); AckMessage(); void set_ack(int32_t ack) { _ack = ack; }; int32_t ge...
26.1
21
(translation_unit) "#ifndef DSA_SDK_ACK_MESSAGE_H\n#define DSA_SDK_ACK_MESSAGE_H\n\n#if defined(_MSC_VER)\n#pragma once\n#endif\n\n#include "base_message.h"\n\nnamespace dsa {\nclass AckMessage final : public Message {\n public:\n AckMessage(const uint8_t* data, size_t size);\n AckMessage();\n\n void set_ack(int32_t...
169
6
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 26.1, "nodes": 99, "errors": 0, "source_hash": "e784068601753bcce8cd835a250d68a24d187da1e101abb13afcbfd458d27491", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef D...
80,415
c
// // Created by ooooo on 2020/4/11. // #ifndef CPP_055_1__SOLUTION3_H_ #define CPP_055_1__SOLUTION3_H_ #include "TreeNode.h" #include <queue> /** * dfs */ class Solution { public: int maxDepth(TreeNode *root) { if (!root) return 0; return max(maxDepth(root->left), maxDepth(root->right)) + 1; } }; #e...
18.28
18
(translation_unit) "//\n// Created by ooooo on 2020/4/11.\n//\n#ifndef CPP_055_1__SOLUTION3_H_\n#define CPP_055_1__SOLUTION3_H_\n\n#include "TreeNode.h"\n#include <queue>\n\n/**\n * dfs\n */\nclass Solution {\n public:\n\n int maxDepth(TreeNode *root) {\n if (!root) return 0;\n return max(maxDepth(root->left), m...
90
1
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 18.28, "nodes": 52, "errors": 0, "source_hash": "acb2706d030a7aa0c7401c3234166f878473562d618bc05c4456cd5028cf8889", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
80,416
c
#pragma once // File automatically generated by mapry. DO NOT EDIT OR APPEND! namespace some { namespace graph { struct SomeGraph; // defines some object graph. struct SomeGraph { // defines some float. double some_float_gt_0_lt_100 = 0.0; // defines some float. double some_float_ge_0_le_100 = 0.0; //...
26.39
18
(translation_unit) "#pragma once\n\n// File automatically generated by mapry. DO NOT EDIT OR APPEND!\n\n\n\nnamespace some {\nnamespace graph {\n\nstruct SomeGraph;\n\n// defines some object graph.\nstruct SomeGraph {\n // defines some float.\n double some_float_gt_0_lt_100 = 0.0;\n\n // defines some float.\n doubl...
56
3
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 26.39, "nodes": 33, "errors": 0, "source_hash": "397d29ac2180a7dc8d1160b26f5fa426cda872eb84c70d89026cb4a46de26345", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
80,417
c
/****************************************************************************/ /* */ /* */ /* This code and any software associated is covered by */ ...
31.83
54
(translation_unit) "/****************************************************************************/ \n/* */ \n/* */ \n/* This code and any software associated is covered by ...
178
1
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 31.83, "nodes": 123, "errors": 0, "source_hash": "b75b9fc023582ffabbcbb306c79353849b2283b49327cbec05f956fd5e4c2ec7", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
80,418
c
// // NSString+StripHTML.h // Golfarenan // // Created by <NAME> on 2013-07-02. // Copyright (c) 2013 Apping AB. All rights reserved. // #import <Foundation/Foundation.h> @interface NSString (APFoundation) /* Strips everything that looks like a HTML tag */ - (NSString *)ap_stringByStrippingHTML; - (NSUInteger...
24.18
17
(translation_unit) "//\n// NSString+StripHTML.h\n// Golfarenan\n//\n// Created by <NAME> on 2013-07-02.\n// Copyright (c) 2013 Apping AB. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NSString (APFoundation)\n\n/*\n Strips everything that looks like a HTML tag\n */\n- (NSString *)ap_st...
81
6
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 24.18, "nodes": 47, "errors": 0, "source_hash": "56a71da39f5da8602d661e2d740a2fe204ffb55a31cd90f1c6d8ec4ea726b629", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
80,419
c
#ifndef QT_SANDBOX_CONFIGURATION_H_ #define QT_SANDBOX_CONFIGURATION_H_ #include <memory> #include <vector> #include <QObject> #include <QSettings> #include <QMetaType> #include <QFileSystemWatcher> #include <QDebug> #include <ui.h> #define GOS_CONFIGURATION_FILE_PATH "configuration.ini" namespace qt { namespace s...
27.8
59
(translation_unit) "#ifndef QT_SANDBOX_CONFIGURATION_H_\n#define QT_SANDBOX_CONFIGURATION_H_\n\n#include <memory>\n#include <vector>\n\n#include <QObject>\n#include <QSettings>\n#include <QMetaType>\n#include <QFileSystemWatcher>\n#include <QDebug>\n\n#include <ui.h>\n\n#define GOS_CONFIGURATION_FILE_PATH "configuratio...
462
29
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 27.8, "nodes": 277, "errors": 0, "source_hash": "db58bc0e2aaf975b1681f63ef784ae8cfa3ac4e8de6346b924ae88b6bc4ddddb", "categorized_nodes": 186}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
80,420
c
#ifndef SP2_COLLISION_3D_CAPSULE_H #define SP2_COLLISION_3D_CAPSULE_H #include <sp2/collision/3d/shape.h> namespace sp { namespace collision { class Capsule3D : public Shape3D { public: enum class Direction { X, Y, Z }; Capsule3D(Direction direction, double radius, double height); private: ...
22.41
22
(translation_unit) "#ifndef SP2_COLLISION_3D_CAPSULE_H\n#define SP2_COLLISION_3D_CAPSULE_H\n\n#include <sp2/collision/3d/shape.h>\n\nnamespace sp {\nnamespace collision {\n\nclass Capsule3D : public Shape3D\n{\npublic:\n enum class Direction\n {\n X, Y, Z\n };\n\n Capsule3D(Direction direction, doubl...
105
7
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 22.41, "nodes": 62, "errors": 0, "source_hash": "c790745c545b35c92ce178bddbc5956a656e24bfd05c6ca5b4df12764708bf0b", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef SP2_COLL...
80,421
c
/** * Copyright <NAME> 2007 - 2015. * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) * * $Id: ITCLib::include/sys/mutex.h$ * * EMail: <EMAIL> * **/ #ifndef __USERLAND_MUTEX_H__ #define __USERLA...
25.95
120
(translation_unit) "/**\n * Copyright <NAME> 2007 - 2015.\n * Distributed under the Boost Software License, Version 1.0.\n * (See accompanying file LICENSE_1_0.txt or copy at\n * http://www.boost.org/LICENSE_1_0.txt)\n * \n * $Id: ITCLib::include/sys/mutex.h$\n * \n * EMail: <EMAIL>\n * \n **/\n\n#ifndef __USE...
800
46
{"language": "c", "success": true, "metadata": {"lines": 120, "avg_line_length": 25.95, "nodes": 414, "errors": 0, "source_hash": "cee8bbc370af4036dee91d25b453033dede0c0c2a3330bda9ae12071a9c52f60", "categorized_nodes": 286}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef __USE...
80,422
c
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI_ASM_X86_KVMI_H #define _UAPI_ASM_X86_KVMI_H /* * KVM introspection - x86 specific structures and definitions */ #include <asm/kvm.h> #define KVM_HC_XEN_HVM_OP_GUEST_REQUEST_VM_EVENT 24 struct kvmi_event_arch { __u8 mode; /* 2, 4 or 8 *...
16.67
177
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */\n#ifndef _UAPI_ASM_X86_KVMI_H\n#define _UAPI_ASM_X86_KVMI_H\n\n/*\n * KVM introspection - x86 specific structures and definitions\n */\n\n#include <asm/kvm.h>\n\n#define KVM_HC_XEN_HVM_OP_GUEST_REQUEST_VM_EVENT 24\n\nstruct kvmi_event_ar...
707
0
{"language": "c", "success": true, "metadata": {"lines": 177, "avg_line_length": 16.67, "nodes": 463, "errors": 0, "source_hash": "6f3bbbd2c2e52e37a5dad282dab4bda54604d99f789b92945eaecdd62a0707c2", "categorized_nodes": 438}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
80,423
c
//##################################################################### // Copyright 2004-2005, <NAME>, <NAME>. // This file is part of PhysBAM whose distribution is governed by the license contained in the accompanying file PHYSBAM_COPYRIGHT.txt. //##################################################################### ...
20.86
117
(translation_unit) "//#####################################################################\n// Copyright 2004-2005, <NAME>, <NAME>.\n// This file is part of PhysBAM whose distribution is governed by the license contained in the accompanying file PHYSBAM_COPYRIGHT.txt.\n//###############################################...
763
37
{"language": "c", "success": true, "metadata": {"lines": 117, "avg_line_length": 20.86, "nodes": 415, "errors": 0, "source_hash": "9f5c5dda18160643c545200871bbf8ee46119e5896668f8224d6a83338df5f4e", "categorized_nodes": 279}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
80,424
c
/*++ Copyright (c) 1985 - 1999, Microsoft Corporation Module Name: tmode.c Abstract: Console input and output mode test program Author: <NAME> (thereses) 4-Oct-1991 Revision History: --*/ #include "precomp.h" #pragma hdrstop #pragma hdrstop #define UNPROCESSED_LENGTH 7 #def...
30.64
196
(translation_unit) "/*++ \n \nCopyright (c) 1985 - 1999, Microsoft Corporation \n \nModule Name: \n \n tmode.c \n \nAbstract: \n \n Console input and output mode test program \n \nAuthor: \n \n <NAME> (thereses) 4-Oct-1991 \n \nRevision History: \n \n--*/ \n#include "precomp.h" \n#pragma hdrstop \n#pragma hdrs...
1,287
0
{"language": "c", "success": true, "metadata": {"lines": 196, "avg_line_length": 30.64, "nodes": 622, "errors": 0, "source_hash": "148ee0056b23d7c111279a6a9fe5ed37603d813e7756af53b6bba760f73bc0fd", "categorized_nodes": 442}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
80,425
c
#ifndef OlcbStream_h #define OlcbStream_h /** * Class for handling OpenLCB Streams * * This combines Receiver and Transmitter for now; * perhaps they need to be refactored separately later. *<p> * Basic state machine handles transmission and reception. *<p> * This implementation works with the protocol buffers...
26.14
29
(translation_unit) "#ifndef OlcbStream_h\n#define OlcbStream_h\n\n/**\n * Class for handling OpenLCB Streams\n *\n * This combines Receiver and Transmitter for now;\n * perhaps they need to be refactored separately later.\n *<p>\n * Basic state machine handles transmission and reception.\n *<p>\n * This implementation ...
124
2
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 26.14, "nodes": 84, "errors": 0, "source_hash": "2d608e679e25ee941540faa58bf9661a6b38188e88559bcceb52c516e8f33f3d", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
80,426
c
#include"stdio.h" #include"5a.h" int main() { char parenthesis_sequence[100]; int number_of_inputs = 0; scanf("%d", &number_of_inputs); for(int counter = 0; counter < number_of_inputs; ++ counter) { scanf("%s", parenthesis_sequence); printf("%d\n", match_parenthesis(parenthesis_sequence)); } return 0; }
25.25
12
(translation_unit) "#include"stdio.h"\n#include"5a.h"\nint main() {\n char parenthesis_sequence[100];\n int number_of_inputs = 0;\n scanf("%d", &number_of_inputs);\n for(int counter = 0; counter < number_of_inputs; ++ counter) {\n scanf("%s", parenthesis_sequence);\n printf("%d\n", match_parenthesis(parenthesis_seque...
111
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 25.25, "nodes": 58, "errors": 0, "source_hash": "2910c402b5817cc9a9ae9acbaca46bf97782fc6e1200fc856e8b8047cd891619", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
80,427
c
#ifndef ALIVFRIENDEVENT_H #define ALIVFRIENDEVENT_H #include "Rtypes.h" #include "TObject.h" #include "AliVMisc.h" class AliVfriendTrack; class AliVVZEROfriend; class AliESDVZEROfriend; //_____________________________________________________________________________ class AliVfriendEvent: public TObject { public: Al...
36.18
44
(translation_unit) "#ifndef ALIVFRIENDEVENT_H\n#define ALIVFRIENDEVENT_H\n\n#include "Rtypes.h"\n#include "TObject.h"\n#include "AliVMisc.h"\nclass AliVfriendTrack;\nclass AliVVZEROfriend;\nclass AliESDVZEROfriend;\n\n//_____________________________________________________________________________\nclass AliVfriendEvent...
373
24
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 36.18, "nodes": 224, "errors": 0, "source_hash": "29a9f11ee754353d2c9df1f9c6fd09c0cac0de2f474dc66b8e5517a5e3332bfd", "categorized_nodes": 147}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
80,428
c
#include <unistd.h> #include <stdlib.h> #include <kstring.h> #include <dev/devserv.h> #include <vfs/vfs.h> #include <vfs/fs.h> #include <syscall.h> #include <device.h> typedef struct { uint32_t size; int32_t dirty; void* data; } node_data_t; static int32_t sramdisk_write(int32_t pid, int32_t fd, void* buf, uint32_...
23.44
124
(translation_unit) "#include <unistd.h>\n#include <stdlib.h>\n#include <kstring.h>\n#include <dev/devserv.h>\n#include <vfs/vfs.h>\n#include <vfs/fs.h>\n#include <syscall.h>\n#include <device.h>\n\ntypedef struct {\n uint32_t size;\n int32_t dirty;\n void* data;\n} node_data_t;\n\nstatic int32_t sramdisk_write(int32_t ...
1,189
0
{"language": "c", "success": true, "metadata": {"lines": 124, "avg_line_length": 23.44, "nodes": 764, "errors": 0, "source_hash": "b36c66bccb7f769d924bb8b7efa730386953a5ed71d8b5e97792ccf2e1e8ff3b", "categorized_nodes": 536}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
80,429
c
// // Generated by the J2ObjC translator. DO NOT EDIT! // source: android/libcore/luni/src/main/java/java/util/concurrent/ScheduledFuture.java // #ifndef _JavaUtilConcurrentScheduledFuture_H_ #define _JavaUtilConcurrentScheduledFuture_H_ #include "J2ObjC_header.h" #include "java/util/concurrent/Delayed.h" #include...
45.29
14
(translation_unit) "//\n// Generated by the J2ObjC translator. DO NOT EDIT!\n// source: android/libcore/luni/src/main/java/java/util/concurrent/ScheduledFuture.java\n//\n\n#ifndef _JavaUtilConcurrentScheduledFuture_H_\n#define _JavaUtilConcurrentScheduledFuture_H_\n\n#include "J2ObjC_header.h"\n#include "java/util/c...
61
5
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 45.29, "nodes": 38, "errors": 0, "source_hash": "7883c86bcd6702ad0574e321c2adbad6e4de11794e5b234c30130b49672a26be", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
80,430
c
#ifndef HA8711DB6_A489_48BC_817B_90A3C1A227D5 #define HA8711DB6_A489_48BC_817B_90A3C1A227D5 #include "cctest/base/symbol.h" #include "cctest/core/test_fixture.h" #include "cctest/auto/auto_test_hook.h" /////////////////////////////////////////////////////////////// #define __HOOK_NAME CCTEST_UNIQUE_NAME(HookObject) ...
47.75
12
(translation_unit) "#ifndef HA8711DB6_A489_48BC_817B_90A3C1A227D5\n#define HA8711DB6_A489_48BC_817B_90A3C1A227D5\n\n#include "cctest/base/symbol.h"\n#include "cctest/core/test_fixture.h"\n#include "cctest/auto/auto_test_hook.h"\n\n///////////////////////////////////////////////////////////////\n#define __HOOK_NAME CCTE...
41
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 47.75, "nodes": 26, "errors": 0, "source_hash": "3a84780fb95bc0b5322c5c4855ecf5b2295f0e8fb06db943cee195f02354624f", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
80,431
c
/** * Mojang Authentication API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: 2020-06-05 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * D...
25.8
46
(translation_unit) "/**\n * Mojang Authentication API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: 2020-06-05\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https:/...
201
10
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 25.8, "nodes": 120, "errors": 0, "source_hash": "f8ab75d31fdb34c26f08007b3b689f70f7c904cf656e6105305c655b68400511", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
80,432
c
#ifndef BUFFER_H_ #define BUFFER_H_ #include "loader/glad.h" #include <SDL2/SDL.h> #include <SDL2/SDL_opengl.h> #include <stdexcept> #include <vector> #include "resource.h" #include "vertex.h" /** * Enumerates the different types of buffers */ enum class BufferType { Vertex, Index, }; /** * Enumerates t...
24.94
72
(translation_unit) "#ifndef BUFFER_H_\n#define BUFFER_H_\n\n#include "loader/glad.h"\n#include <SDL2/SDL.h>\n#include <SDL2/SDL_opengl.h>\n\n#include <stdexcept>\n#include <vector>\n\n#include "resource.h"\n#include "vertex.h"\n\n/**\n * Enumerates the different types of buffers\n */\nenum class BufferType {\n Verte...
404
14
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 24.94, "nodes": 222, "errors": 0, "source_hash": "3a3e56f93d13bb5e947c1a5eff5c5ec3db64f2900a32e3bd54381e9946605ed8", "categorized_nodes": 159}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef BUFFER...
80,433
c
#include "stdafx.h" #pragma once using namespace System; namespace CefSharp { public ref class LoadCompletedEventArgs : EventArgs { String^ _url; public: LoadCompletedEventArgs(String^ url) : _url(url) {} property String^ Url { String^ get() { return _url; } } }; ...
26.67
15
(translation_unit) "#include "stdafx.h"\n#pragma once\n\nusing namespace System;\n\nnamespace CefSharp\n{\n public ref class LoadCompletedEventArgs : EventArgs\n {\n String^ _url;\n\n public:\n LoadCompletedEventArgs(String^ url)\n : _url(url) {}\n\n property String^ Url { Strin...
116
7
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 26.67, "nodes": 69, "errors": 0, "source_hash": "10e1c67d2580817f6ef402464e03d4580c7a2d126508b60f97d54c21ce6f2dbc", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
80,434
c
#pragma once #include "IEnumString.h"
18
2
(translation_unit) "#pragma once\n\n#include "IEnumString.h"" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "IEnumString.h"" (#include) "#include" (string_literal) ""IEnumString.h"" (") """ (string_content) "IEnumString.h" ...
10
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 18.0, "nodes": 6, "errors": 0, "source_hash": "2f04a9a5490e8876704aa24aa37dfc9410790a62a0112da0790d3409854a4a82", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\...
80,435
c
/* This file is part of libmicrohttpd (C) 2007 <NAME> and <NAME> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your op...
39.85
52
(translation_unit) "/*\n This file is part of libmicrohttpd\n (C) 2007 <NAME> and <NAME>\n\n This library is free software; you can redistribute it and/or\n modify it under the terms of the GNU Lesser General Public\n License as published by the Free Software Foundation; either\n version 2.1 of ...
162
0
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 39.85, "nodes": 126, "errors": 0, "source_hash": "c5f98f3092327f4f85bd5417669b94249bd9c358a6e993d58f83e8f14fc7584a", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
80,436
c
#ifndef _RTC_H_ #define _RTC_H_ // ds1302 connection #define ds1302_PORT PORTB #define ds1302_DDR DDRB #define ds1302_PIN PINB #define rst 7 #define clk 6 #define io 0 #define rst_1() ds1302_PORT |= (1<<rst); #define rst_0() ds1302_PORT &= ~ (1<<rst); #define clk_1() ds1302_PORT |= (1<<clk); #define clk_0() ds1302_POR...
23.14
71
(translation_unit) "#ifndef _RTC_H_\n#define _RTC_H_\n// ds1302 connection\n#define ds1302_PORT PORTB\n#define ds1302_DDR DDRB\n#define ds1302_PIN PINB\n#define rst 7\n#define clk 6\n#define io 0\n\n#define rst_1() ds1302_PORT |= (1<<rst);\n#define rst_0() ds1302_PORT &= ~ (1<<rst);\n#define clk_1() ds1302_PORT |= (1<<...
433
0
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 23.14, "nodes": 364, "errors": 0, "source_hash": "2373ddfbe64918e2807cab967ab6d1bbe7d17e52014a5e6145dab7a3123a33db", "categorized_nodes": 157}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
80,437
c
/* * Copyright (C) 2017 <NAME> * * Author: <NAME> * * This file is part of GnuTLS. * * GnuTLS is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) an...
29.3
60
(translation_unit) "/*\n * Copyright (C) 2017 <NAME>\n *\n * Author: <NAME>\n *\n * This file is part of GnuTLS.\n *\n * GnuTLS is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the Licen...
263
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 29.3, "nodes": 145, "errors": 0, "source_hash": "680bdbb27f4df85a28e5516c17bbe9e02e59eaece969d7421f46ec799845e909", "categorized_nodes": 112}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef ...
80,438
c
//////////////////////////////////////////////////////////////////////////////// // // Binary heap using arrays // // Element type must have: default constructor, copy ctor, operator=, operator< // //////////////////////////////////////////////////////////////////////////////// // <EMAIL> 9/2003 #ifndef _Heap_h #def...
25.77
47
(translation_unit) "////////////////////////////////////////////////////////////////////////////////\n//\n// Binary heap using arrays\n//\n// Element type must have: default constructor, copy ctor, operator=, operator<\n//\n////////////////////////////////////////////////////////////////////////////////\n\n// <EMAIL> 9...
337
15
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 25.77, "nodes": 212, "errors": 0, "source_hash": "863a7af50f4ace72a79b84723001976b4e6ffcd832f6959441ecf753df344807", "categorized_nodes": 143}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
80,439
c
/* Boolector: Satisfiability Modulo Theories (SMT) solver. * * Copyright (C) 2007-2021 by the authors listed in the AUTHORS file. * * This file is part of Boolector. * See COPYING for more information on using this software. */ #ifndef BTORASS_H_INCLUDED #define BTORASS_H_INCLUDED #include <stdbool.h> #incl...
35.61
88
(translation_unit) "/* Boolector: Satisfiability Modulo Theories (SMT) solver.\n *\n * Copyright (C) 2007-2021 by the authors listed in the AUTHORS file.\n *\n * This file is part of Boolector.\n * See COPYING for more information on using this software.\n */\n\n#ifndef BTORASS_H_INCLUDED\n#define BTORASS_H_INCLUDE...
514
0
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 35.61, "nodes": 385, "errors": 0, "source_hash": "1d604bcd6a453e6fa65fb7e81ed66c389434a85c9dd8616620ce50645c949cb0", "categorized_nodes": 218}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
80,440
c
#ifndef DMZ_FILE_CACHE_DOT_H #define DMZ_FILE_CACHE_DOT_H #include <dmzRuntimeRTTINamed.h> #include <dmzTypesString.h> namespace dmz { //! FileCache interface name. const char FileCacheInterfaceName[] = "FileCacheInterface"; enum FileCacheResultEnum { CacheFileFound = 1, //!< File found. Unknow...
31.81
70
(translation_unit) "#ifndef DMZ_FILE_CACHE_DOT_H\n#define DMZ_FILE_CACHE_DOT_H\n\n#include <dmzRuntimeRTTINamed.h>\n#include <dmzTypesString.h>\n\nnamespace dmz {\n\n //! FileCache interface name.\n const char FileCacheInterfaceName[] = "FileCacheInterface";\n\n enum FileCacheResultEnum {\n CacheFileFound = ...
471
26
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 31.81, "nodes": 252, "errors": 0, "source_hash": "adcf1876986bcec2cc2686389793754fda4b3133d210281f240798d838f1c5e0", "categorized_nodes": 172}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
80,441
c
#include <stdio.h> #include <stdlib.h> #include <sys/ipc.h> #include <sys/msg.h> #define MSGSZ 128 typedef struct msgbuf { long mtype; char mtext [MSGSZ]; } message_buf; void print_usage(); int main(int argc, char** argv){ FILE * fp; int msqid; key_t key; message_buf rbuf; int bool_print = 1; // printf("%d"...
17.34
56
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <sys/ipc.h>\n#include <sys/msg.h>\n\n#define MSGSZ 128\n\ntypedef struct msgbuf {\n long mtype;\n char mtext [MSGSZ];\n} message_buf;\n\n\nvoid print_usage();\nint main(int argc, char** argv){\n FILE * fp;\n int msqid;\n key_t key;\n message_buf rbuf...
420
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 17.34, "nodes": 225, "errors": 0, "source_hash": "cabe8f4e65005a5b8aba6cc924fd9aec3f94e4768570ff6edfea3219d3daa9b6", "categorized_nodes": 163}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
80,442
c
/*++ Copyright (c) 2015 <NAME> Module Name: UserApi.h Abstract: This file defines the interface for the library to control the driver Environment: User mode only --*/ #ifndef __USERAPI_H #define __USERAPI_H #ifdef __cplusplus extern "C" { #endif extern HRESULT WINAPI GetValue( __out PULONG Val ); #i...
17.79
19
(translation_unit) "/*++\n\nCopyright (c) 2015 <NAME>\n\nModule Name:\n\n UserApi.h\n\nAbstract:\n\n This file defines the interface for the library to control the driver\n\nEnvironment:\n\n User mode only\n\n--*/\n#ifndef __USERAPI_H\n#define __USERAPI_H\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\nextern HRES...
46
2
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 17.79, "nodes": 34, "errors": 0, "source_hash": "e2dcc38e451e25ed638e59b9b10027441d61f23f37a8641b733573e03252f21c", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
80,443
c
// Copyright Epic Games, Inc. All Rights Reserved. #pragma once #include "CoreMinimal.h" #include "GameFramework/Character.h" #include "TP_SideScrollerCharacter.generated.h" UCLASS(config=Game) class ATP_SideScrollerCharacter : public ACharacter { GENERATED_BODY() /** Side view camera */ UPROPERTY(...
30.73
51
(translation_unit) "// Copyright Epic Games, Inc. All Rights Reserved. \n \n#pragma once \n \n#include "CoreMinimal.h" \n#include "GameFramework/Character.h" \n#include "TP_SideScrollerCharacter.generated.h" \n \nUCLASS(config=Game) \nclass ATP_SideScrollerCharacter : public ACharacter \n{ \n GENERATED_BODY() \n \n /**...
318
13
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 30.73, "nodes": 188, "errors": 0, "source_hash": "7413726402c289f27bc7a6ba67cc3e269737e25d5991af7abf5d02331b17211f", "categorized_nodes": 128}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
80,444
c
// // WLBaseRefreshService.h // wlive // // Created by Fane on 2020/7/7. // Copyright © 2020 wcsz. All rights reserved. // #import "WLBaseService.h" #import "WLEmptyView.h" #import "WLBaseServiceHeader.h" NS_ASSUME_NONNULL_BEGIN #pragma - 分页的请求 @interface WLBaseRefreshService : WLBaseService // 带分页请求的类, 使用此初始化...
28.23
39
(translation_unit) "//\n// WLBaseRefreshService.h\n// wlive\n//\n// Created by Fane on 2020/7/7.\n// Copyright © 2020 wcsz. All rights reserved.\n//\n\n#import "WLBaseService.h"\n#import "WLEmptyView.h"\n#import "WLBaseServiceHeader.h"\nNS_ASSUME_NONNULL_BEGIN\n\n\n\n#pragma - 分页的请求\n@interface WLBaseRefreshService...
271
28
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 28.23, "nodes": 170, "errors": 0, "source_hash": "cfbff5c6fdd8a468f7b0c61828346ddbeb4bd75c150fb4da74be5a66a05e2113", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \...
80,445
c
#include <stdio.h> const int size = 5; int main(void) { int list[size], odd = 0, even = 0, negative = 0, positive = 0; for(int i = 0; i < size; i++) scanf("%d", &list[i]); for(int i = 0; i < size; i++) { if(list[i] < 0 && list[i] % 2 == 0) { negative++; even...
28.07
30
(translation_unit) "#include <stdio.h>\n\nconst int size = 5; \n\nint main(void) {\n int list[size], odd = 0, even = 0, negative = 0, positive = 0;\n\n for(int i = 0; i < size; i++) \n scanf("%d", &list[i]);\n \n for(int i = 0; i < size; i++) {\n if(list[i] < 0 && list[i] % 2 == 0) {\n ...
345
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 28.07, "nodes": 206, "errors": 0, "source_hash": "a56c06b4948970ddb40cb7a47864b2ae09ffd250edf9e76c1269bac3dbe0b170", "categorized_nodes": 142}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
80,446
c
#pragma once #include <core.h> #include <QDoubleSpinBox> #include <userinterface.qt.controls/ValueWidget.h> namespace nspace{ class DoubleSpinBoxWidget : public ValueWidget{ Q_OBJECT; private: QDoubleSpinBox * _spinbox; public: DoubleSpinBoxWidget(QWidget * parent); public slots: ...
21.75
20
(translation_unit) "#pragma once \n \n#include <core.h> \n#include <QDoubleSpinBox> \n#include <userinterface.qt.controls/ValueWidget.h> \n \nnamespace nspace{ \n class DoubleSpinBoxWidget : public ValueWidget{ \n Q_OBJECT; \n private: \n QDoubleSpinBox * _spinbox; \n public: \n DoubleSpinBoxWidget(QWidget ...
91
3
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 21.75, "nodes": 55, "errors": 0, "source_hash": "1c8681d8c419a1dfe0aaaaba097f0a8bed8975353b265f65662af0ba825fd96d", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
80,447
c
/* * A swapon(8)/swapoff(8) for Linux 0.99. * swapon.c,v 1.1.1.1 1993/11/18 08:40:51 jrs Exp */ #include "sundries.h" /* Nonzero for chatty (-v). This is a nonstandard flag (not in BSD). */ int verbose = 0; extern char version[]; static char *program_name; static struct option longopts[] = { { "all", 0, 0, 'a...
20.37
91
(translation_unit) "/*\n * A swapon(8)/swapoff(8) for Linux 0.99.\n * swapon.c,v 1.1.1.1 1993/11/18 08:40:51 jrs Exp\n */\n\n#include "sundries.h"\n\n/* Nonzero for chatty (-v). This is a nonstandard flag (not in BSD). */\nint verbose = 0;\n\nextern char version[];\nstatic char *program_name;\nstatic struct option lo...
710
0
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 20.37, "nodes": 416, "errors": 0, "source_hash": "6ecf7e2639e7059b3c87e4099ab245874d8f282bd1dffd151a39e3765a381b1a", "categorized_nodes": 257}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
80,448
c
/* * Copyright (C) 2007 The Android Open Source Project * * 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 app...
30.55
172
(translation_unit) "/*\n * Copyright (C) 2007 The Android Open Source Project\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...
697
2
{"language": "c", "success": true, "metadata": {"lines": 172, "avg_line_length": 30.55, "nodes": 408, "errors": 0, "source_hash": "788ff5d22a8bfd73d5552f4067bc4ae91831aaecf77cc5448f34212fd5a0ebae", "categorized_nodes": 336}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
80,449
c
// // UIImage+TYQRCode.h // TuyaCommunityKitSample // // Copyright (c) 2014-2021 Tuya Inc. (https://developer.tuya.com/) // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface UIImage (TYQRCode) + (UIImage *)ty_qrCodeWithString:(NSString *)str width:(CGFloat)width; @end NS_ASSUME_NONNULL_END
24.25
12
(translation_unit) "//\n// UIImage+TYQRCode.h\n// TuyaCommunityKitSample\n//\n// Copyright (c) 2014-2021 Tuya Inc. (https://developer.tuya.com/)\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface UIImage (TYQRCode)\n\n+ (UIImage *)ty_qrCodeWithString:(NSString *)str width:(CGFloat)width;\n\n@end...
59
5
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 24.25, "nodes": 35, "errors": 0, "source_hash": "b416e18a12148fd4309487b18308752a233f29cb83f47df2a1e22089b3e8b700", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
80,450
c
#pragma once #include "geometrycentral/pointcloud/point_cloud.h" #include "geometrycentral/pointcloud/point_position_geometry.h" #include "geometrycentral/surface/embedded_geometry_interface.h" #include "geometrycentral/surface/surface_point.h" #include <tuple> namespace geometrycentral { namespace pointcloud { std...
41.77
13
(translation_unit) "#pragma once\n\n#include "geometrycentral/pointcloud/point_cloud.h"\n#include "geometrycentral/pointcloud/point_position_geometry.h"\n#include "geometrycentral/surface/embedded_geometry_interface.h"\n#include "geometrycentral/surface/surface_point.h"\n\n#include <tuple>\n\nnamespace geometrycentral ...
105
5
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 41.77, "nodes": 65, "errors": 0, "source_hash": "7ce5b69aef2d0778d88429d68e45651a12b728550ee275c0ec3db62349b876ce", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
80,451
c
/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef TimerData_DEFINED #define TimerData_DEFINED #include "SkString.h" #include "SkTemplates.h" #ifdef SK_BUILD_FOR_WIN #pragma warning(push) #pragma warning(disa...
31.66
71
(translation_unit) "/*\n * Copyright 2012 Google Inc.\n *\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n#ifndef TimerData_DEFINED\n#define TimerData_DEFINED\n\n#include "SkString.h"\n#include "SkTemplates.h"\n\n#ifdef SK_BUILD_FOR_WIN\n #pragma warn...
257
3
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 31.66, "nodes": 177, "errors": 0, "source_hash": "aca0f0c8ab99e0cbc25628e6b7c1b94f4cbbf4f4faea89bf4b832d10cfdb41a7", "categorized_nodes": 127}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
80,452
c
/* * ion/shortcut.h * * Copyright (c) <NAME> 2002 * See the included file LICENSE for details. */ #ifndef INCLUDED_SHORTCUT_H #define INCLUDED_SHORTCUT_H #include <X11/keysym.h> #include "function.h" #include "client.h" #include "wedln.h" extern bool shortcut_is_valid(int cut); extern void shortcut_remove(int ...
23.5
20
(translation_unit) "/*\n * ion/shortcut.h\n *\n * Copyright (c) <NAME> 2002\n * See the included file LICENSE for details.\n */\n\n#ifndef INCLUDED_SHORTCUT_H\n#define INCLUDED_SHORTCUT_H\n\n#include <X11/keysym.h>\n#include "function.h"\n#include "client.h"\n#include "wedln.h"\n\n\nextern bool shortcut_is_valid(int cu...
106
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 23.5, "nodes": 78, "errors": 0, "source_hash": "d944e6b62334cd24e64c8b02ea86e811b40f1e2fbeb31854912009717e016f13", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef I...
80,453
c
/** GUI themes. Copyright (c) 2018 <NAME> */ #include <fmedia.h> #include <gui-winapi/gui.h> #include <FF/gui/loader.h> #include <FF/data/conf-copy.h> #include <FFOS/process.h> #define dbglog0(...) fmed_dbglog(core, NULL, "gui", __VA_ARGS__) #define errlog0(...) fmed_errlog(core, NULL, "gui", __VA_ARGS__) #define ...
25.49
166
(translation_unit) "/** GUI themes.\nCopyright (c) 2018 <NAME> */\n\n#include <fmedia.h>\n#include <gui-winapi/gui.h>\n#include <FF/gui/loader.h>\n#include <FF/data/conf-copy.h>\n#include <FFOS/process.h>\n\n\n#define dbglog0(...) fmed_dbglog(core, NULL, "gui", __VA_ARGS__)\n#define errlog0(...) fmed_errlog(core, NUL...
1,516
4
{"language": "c", "success": true, "metadata": {"lines": 166, "avg_line_length": 25.49, "nodes": 869, "errors": 0, "source_hash": "66a3eae266bafe4daa1a499c11ac869ff30df69344ae1d98c95752ff1ba751b1", "categorized_nodes": 621}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
80,454
c
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: CLCD Manages the Logitech G-Series Gaming Keyboard LCD // // $NoKeywords: $ //=============================================================================// #ifndef HUD_LCD_H #define HUD_LCD_H #ifdef _WIN32 #pragma once #endif ...
28.76
218
(translation_unit) "//========= Copyright Valve Corporation, All rights reserved. ============//\n//\n// Purpose: CLCD Manages the Logitech G-Series Gaming Keyboard LCD\n//\n// $NoKeywords: $\n//=============================================================================//\n#ifndef HUD_LCD_H\n#define HUD_LCD_H\n#ifdef...
1,399
35
{"language": "c", "success": true, "metadata": {"lines": 218, "avg_line_length": 28.76, "nodes": 906, "errors": 0, "source_hash": "d1f15e9627a36fc793e28614d96b48d48989b18823490352cfaabf32aaf91e01", "categorized_nodes": 590}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
80,455
c
#ifndef MiniAppManager_h #define MiniAppManager_h #include <mitkCommon.h> struct MiniAppManager { public: typedef int (*MiniAppFunction)(int argc, char* argv[]); public: static MiniAppManager* GetInstance(); // Attention: Name of the miniApp must be the last argument!!! // it will be cut off from...
32.81
26
(translation_unit) "#ifndef MiniAppManager_h\n#define MiniAppManager_h\n\n#include <mitkCommon.h>\n\nstruct MiniAppManager\n{\n\npublic:\n\n typedef int (*MiniAppFunction)(int argc, char* argv[]);\n\npublic:\n\n static MiniAppManager* GetInstance();\n\n // Attention: Name of the miniApp must be the last argume...
147
7
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 32.81, "nodes": 88, "errors": 0, "source_hash": "cb6a6a566700a85473ca07a5465b62e022eaba0bfa6ee6fcd7d9d30d1768f515", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
80,456
c
/* * kalmanFilter.h * * Created on: Feb 8, 2018 * Author: <NAME> */ #ifndef INC_FLIGHT_KALMANFILTER_H_ #define INC_FLIGHT_KALMANFILTER_H_ #endif /* INC_FLIGHT_KALMANFILTER_H_ */
14.77
13
(translation_unit) "/* \n * kalmanFilter.h \n * \n * Created on: Feb 8, 2018 \n * Author: <NAME> \n */ \n \n#ifndef INC_FLIGHT_KALMANFILTER_H_ \n#define INC_FLIGHT_KALMANFILTER_H_ \n \n \n \n#endif /* INC_FLIGHT_KALMANFILTER_H_ */ \n" (comment) "/* \n * kalmanFilter.h \n * \n * Created on: Feb 8, 2018 \n * ...
10
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 14.77, "nodes": 7, "errors": 0, "source_hash": "f900a0ebb0bdfad9f1577f0db039a506232dc3b8b989499fdee027fa4e309413", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef IN...
80,457
c
/* * hardware.h - Rutines hardware per manegar els accesos a baix nivell */ #ifndef __HARDWARE_H__ #define __HARDWARE_H__ #include <types.h> DWord get_eflags(void); void set_eflags(void); void set_idt_reg(Register * idt); void set_gdt_reg(Register * gdt); void set_ldt_reg(Selector ldt); void set_task_reg(Selector ...
22.61
36
(translation_unit) "/*\n * hardware.h - Rutines hardware per manegar els accesos a baix nivell\n */\n\n#ifndef __HARDWARE_H__\n#define __HARDWARE_H__\n\n#include <types.h>\n\nDWord get_eflags(void);\nvoid set_eflags(void);\nvoid set_idt_reg(Register * idt);\nvoid set_gdt_reg(Register * gdt);\nvoid set_ldt_reg(Selector ...
129
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 22.61, "nodes": 94, "errors": 0, "source_hash": "811ea0d886019a563c7cc19c40a4ef8788f8735b1b0cdbee4ceddf81b9a4ed6f", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
80,458
c
#ifndef __LIBSGM_CONFIG_H__ #define __LIBSGM_CONFIG_H__ /* #undef LIBSGM_SHARED */ #define LIBSGM_VERSION #define LIBSGM_VERSION_MAJOR #define LIBSGM_VERSION_MINOR #define LIBSGM_VERSION_PATCH /* #undef BUILD_OPENCV_WRAPPER */ #endif // __LIBSGM_CONFIG_H__
28
9
(translation_unit) "#ifndef __LIBSGM_CONFIG_H__\n#define __LIBSGM_CONFIG_H__\n\n/* #undef LIBSGM_SHARED */\n\n#define LIBSGM_VERSION \n#define LIBSGM_VERSION_MAJOR \n#define LIBSGM_VERSION_MINOR \n#define LIBSGM_VERSION_PATCH \n\n/* #undef BUILD_OPENCV_WRAPPER */\n\n#endif // __LIBSGM_CONFIG_H__\n" (preproc_ifdef) "#...
19
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 28.0, "nodes": 15, "errors": 0, "source_hash": "b9be80c19341f757a0222073bef167bbef3714d4cb05f091e8468e9add483e2d", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __L...
80,459
c
#include <stdio.h> #include <stdlib.h> #include <string.h> void stringup(char destino[],char origem []) { destino=strupr(origem); printf("%s", destino); } int main() { char s1[200],s2[200]; puts("Digite um texto:"); gets(s1); stringup(s2,s1); return 0; }
16.69
16
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\nvoid stringup(char destino[],char origem [])\n{\n destino=strupr(origem);\n printf("%s", destino);\n}\nint main()\n{\n char s1[200],s2[200];\n puts("Digite um texto:");\n gets(s1);\n\n stringup(s2,s1);\n\n return 0;\n...
114
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 16.69, "nodes": 62, "errors": 0, "source_hash": "98a2490563cb9e1e4aadf0aaef3a1b57cbf9c73b727318579873aa3a9495f680", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
80,460
c
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_TEST_REPORT_BODY_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_TEST_REPORT_BODY_H_ #include "third_party...
43.95
21
(translation_unit) "// Copyright 2018 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_TEST_REPORT_BODY_H_\n#define THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_TEST_REPORT_BODY_...
141
9
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 43.95, "nodes": 72, "errors": 0, "source_hash": "5d50cfb6cdea75a1820b20bf046eae3eac9f84a4c762fe3b4ff119edbdd3129f", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
80,461
c
#ifndef COLORS_H_INCLUDED #define COLORS_H_INCLUDED #define TRICOLOR_VOLUME_BAR extern int attr_mixer_frame; extern int attr_mixer_text; extern int attr_mixer_active; extern int attr_ctl_frame; extern int attr_ctl_mute; extern int attr_ctl_nomute; extern int attr_ctl_capture; extern int attr_ctl_nocapture; extern int...
25.9
29
(translation_unit) "#ifndef COLORS_H_INCLUDED\n#define COLORS_H_INCLUDED\n\n#define TRICOLOR_VOLUME_BAR\n\nextern int attr_mixer_frame;\nextern int attr_mixer_text;\nextern int attr_mixer_active;\nextern int attr_ctl_frame;\nextern int attr_ctl_mute;\nextern int attr_ctl_nomute;\nextern int attr_ctl_capture;\nextern in...
158
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 25.9, "nodes": 132, "errors": 0, "source_hash": "2a2077ffe11757de98d0a3f844e3d75f078a68040a70de14b0a0218a19b9c820", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
80,462
c
#pragma once #include <cstdlib> #include <cstdint> #include <cstring> #include <utility> template <typename Type> class StaticSizedAlloc { public: StaticSizedAlloc(std::size_t max_allocs) : m_MaxAllocs(max_allocs) { if (max_allocs == 0) { throw false; } m_Memory = static_cast<uint8_t *>...
24.07
225
(translation_unit) "#pragma once\n\n#include <cstdlib>\n#include <cstdint>\n#include <cstring>\n#include <utility>\n\ntemplate <typename Type>\nclass StaticSizedAlloc\n{\npublic:\n StaticSizedAlloc(std::size_t max_allocs) :\n m_MaxAllocs(max_allocs)\n {\n if (max_allocs == 0)\n {\n throw false;\n }\n...
2,019
57
{"language": "c", "success": true, "metadata": {"lines": 225, "avg_line_length": 24.07, "nodes": 1268, "errors": 0, "source_hash": "739a4d2caaa839c4dc071788a6576de0025c9cb31c506f5bb9dc340cd29a585f", "categorized_nodes": 827}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#prag...
80,463
c
/*s: portfns_concurrency.h */ // taslock.c int lock(Lock*); void unlock(Lock*); void ilock(Lock*); void iunlock(Lock*); int canlock(Lock*); // ref.c long incref(Ref*); long decref(Ref*); // qlock.c void qlock(QLock*); void qunlock(QLock*); int canqlock(QLock*); void rlock(RWlock*); void runlock(RWlock*); int can...
23.23
39
(translation_unit) "/*s: portfns_concurrency.h */\n// taslock.c\nint lock(Lock*);\nvoid unlock(Lock*);\nvoid ilock(Lock*);\nvoid iunlock(Lock*);\nint canlock(Lock*);\n\n// ref.c\nlong incref(Ref*);\nlong decref(Ref*);\n\n// qlock.c\nvoid qlock(QLock*);\nvoid qunlock(QLock*);\nint canqlock(QLock*);\n\nvoid rlock(RWlo...
279
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 23.23, "nodes": 195, "errors": 0, "source_hash": "6c7b2f41044f78714908c8204f12b8a9bedbacf1b5be0e3501c4e70eff54b4c3", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "int loc...
80,464
c
#include <libpcc_limits.h>
26
1
(translation_unit) "#include <libpcc_limits.h>\n" (preproc_include) "#include <libpcc_limits.h>\n" (#include) "#include" (system_lib_string) "<libpcc_limits.h>"
4
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 26.0, "nodes": 3, "errors": 0, "source_hash": "2acf6f71a6d6987ba601cfe19169d8b6e54971f8ff2effb6a570a35a3d567e21", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <...
80,465
c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2020, Intel Corporation */ /* * client.c -- a client of the messages-ping-pong example * * Please see README.md for a detailed description of this example. */ #include <librpma.h> #include <limits.h> #include <inttypes.h> #include <stdlib.h> #include <stdio.h>...
27.61
152
(translation_unit) "// SPDX-License-Identifier: BSD-3-Clause\n/* Copyright 2020, Intel Corporation */\n\n/*\n * client.c -- a client of the messages-ping-pong example\n *\n * Please see README.md for a detailed description of this example.\n */\n\n#include <librpma.h>\n#include <limits.h>\n#include <inttypes.h>\n#inclu...
1,091
0
{"language": "c", "success": true, "metadata": {"lines": 152, "avg_line_length": 27.61, "nodes": 654, "errors": 0, "source_hash": "58fcb170264b7ca9b8fca0e09530ee86bdaed4800164ce489ba78ff654e0a745", "categorized_nodes": 445}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
80,466
c
#pragma once namespace visNET{ class DLLEXPORT Packet { const uint32_t PacketSizeLength = sizeof(uint32_t); std::vector<uint8_t> m_Data; uint32_t m_Cursor; enum PSTATES { PS_INVALID, PS_CLEAR, PS_WRITABLE, PS_INRECEIVE, PS_READABLE, } m_PacketState; void setState(PSTATES packetState) { m...
29.18
147
(translation_unit) "#pragma once\n\nnamespace visNET{\n class DLLEXPORT Packet {\n const uint32_t PacketSizeLength = sizeof(uint32_t);\n\n std::vector<uint8_t> m_Data;\n uint32_t m_Cursor;\n\n enum PSTATES {\n PS_INVALID,\n PS_CLEAR,\n PS_WRITABLE,\n PS_INRECEIVE,\n PS_READABLE,\n } m_PacketState;\n\n v...
1,592
22
{"language": "c", "success": true, "metadata": {"lines": 147, "avg_line_length": 29.18, "nodes": 919, "errors": 0, "source_hash": "1e797bed35a8ae4d4c875f53f4852828aa1cb635e3e85630748d93aca9deb559", "categorized_nodes": 593}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
80,467
c
#include <snow.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> typedef struct { char* buf; uint32_t buf_len; uint32_t len; } str_t; void redraw(str_t* text_buf, const str_t* input_buf); void draw_cursor(uint32_t x, uint32_t y); str_t* str_new(const char* str); void str_fre...
30.42
249
(translation_unit) "#include <snow.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <ctype.h>\n\ntypedef struct {\n char* buf;\n uint32_t buf_len;\n uint32_t len;\n} str_t;\n\nvoid redraw(str_t* text_buf, const str_t* input_buf);\nvoid draw_cursor(uint32_t x, uint32_t y);\nstr_t* str_...
2,360
0
{"language": "c", "success": true, "metadata": {"lines": 249, "avg_line_length": 30.42, "nodes": 1496, "errors": 0, "source_hash": "415c8957d3ba57f586e1e0fe876a0c0f81701d4d10fa23d0959126434dc7f8b7", "categorized_nodes": 991}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
80,468
c
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
39.43
91
(translation_unit) "/*=========================================================================\n *\n * Copyright Insight Software Consortium\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 ...
290
17
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 39.43, "nodes": 184, "errors": 0, "source_hash": "bc40556d7e44d691c1d6320874a95e2cd2d7c492a0414ecb7dad0b701450f475", "categorized_nodes": 123}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
80,469
c
// // HTTPInterfaceManager+Config.h // Xiuxiu // // Created by Mac on 15/7/3. // Copyright (c) 2015年 <EMAIL>. All rights reserved. // #import "HTTPInterfaceManager.h" /** * Extend for configuation fetch * */ @interface HTTPInterfaceManager (Config) /** * 全局配置接口,应该在app启动时候拉取 * * @param userInfo 透传信息 * @re...
24.85
26
(translation_unit) "//\n// HTTPInterfaceManager+Config.h\n// Xiuxiu\n//\n// Created by Mac on 15/7/3.\n// Copyright (c) 2015年 <EMAIL>. All rights reserved.\n//\n\n#import "HTTPInterfaceManager.h"\n\n/**\n * Extend for configuation fetch\n *\n */\n@interface HTTPInterfaceManager (Config)\n\n/**\n * 全局配置接口,应该在app启动时候...
131
18
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 24.85, "nodes": 83, "errors": 0, "source_hash": "41a21c916d6e353adb5efbbe5350e5bcbcf6294d81e8bd4702ef8e4c3ee41077", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport \"H...
80,470
c
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "GameFramework/Actor.h" #include "CameraDirector.generated.h" UCLASS() class UE4_DEMO_API ACameraDirector : public AActor { GENERATED_BODY() public: // Sets default values for this actor...
26.57
30
(translation_unit) "// Fill out your copyright notice in the Description page of Project Settings.\n\n#pragma once\n\n#include "CoreMinimal.h"\n#include "GameFramework/Actor.h"\n#include "CameraDirector.generated.h"\n\nUCLASS()\nclass UE4_DEMO_API ACameraDirector : public AActor\n{\n GENERATED_BODY()\n \npublic: \n // ...
182
8
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 26.57, "nodes": 101, "errors": 0, "source_hash": "b5a7e17cda4883e470b58147c6ef544495fd4118e619b859317fe07ba24e0078", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
80,471
c
/** * \file test/Common.h * * Created on: 04 Apr 2017 * Author: <NAME> */ #include "test/gtest/gtest.h" #include "test/gmock/gmock.h" #include "Common.h"
17.33
9
(translation_unit) "/**\n * \file test/Common.h\n *\n * Created on: 04 Apr 2017\n * Author: <NAME>\n */\n\n#include "test/gtest/gtest.h"\n#include "test/gmock/gmock.h"\n#include "Common.h"\n" (comment) "/**\n * \file test/Common.h\n *\n * Created on: 04 Apr 2017\n * Author: <NAME>\n */" (preproc_include...
20
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 17.33, "nodes": 9, "errors": 0, "source_hash": "b381cbbd1034a3b84bc0787e0ff23f281e6e5d8ad2de84bc95a901140b6bed5e", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include ...
80,472
c
// // YsyPopHelper.h // YsyPopHelperDemo // // Created by LH on 8/31/20. // Copyright © 2020 ysyplay. All rights reserved. // #import <UIKit/UIKit.h> #import "YsyPopMacro.h" NS_ASSUME_NONNULL_BEGIN @interface YsyPopHelper : UIView /** * 初始化方法 * @param customView 自定义弹窗 * @param popStyle 显示样式 * @param ...
26.39
44
(translation_unit) "//\n// YsyPopHelper.h\n// YsyPopHelperDemo\n//\n// Created by LH on 8/31/20.\n// Copyright © 2020 ysyplay. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "YsyPopMacro.h"\nNS_ASSUME_NONNULL_BEGIN\n\n@interface YsyPopHelper : UIView\n/**\n * 初始化方法\n * @param customView 自定义弹窗\n * ...
228
22
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 26.39, "nodes": 135, "errors": 0, "source_hash": "d0dd5a30f0cd378aa12aae684f4b19af00a417c460faec2e56da3ec441a4d1f7", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <...
80,473
c
#include "hopfield.h" #include <time.h> int main(void) { srand((unsigned int) time(NULL)); Entree * entree = NULL; entree = (Entree*) malloc(sizeof(Entree)); initialise_entree(entree, NB_MOTIF); conversion_binaire(entree, 1); Reseau * reseau = NULL; reseau = (Reseau *) malloc(sizeof(Reseau)); initialise...
24.43
42
(translation_unit) "#include "hopfield.h"\n#include <time.h>\n\nint main(void)\n{\n srand((unsigned int) time(NULL));\n\n Entree * entree = NULL;\n\n entree = (Entree*) malloc(sizeof(Entree));\n\n initialise_entree(entree, NB_MOTIF);\n\n conversion_binaire(entree, 1);\n\n Reseau * reseau = NULL;\n\n reseau = (Reseau *)...
426
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 24.43, "nodes": 231, "errors": 0, "source_hash": "7a72ccb12fd22154487b32f18967e27dd61662686a71982c5b9da5005003628b", "categorized_nodes": 152}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
80,474
c
#define __YAX__ #define NDEBUG #include <string.h> #include <sys/stat.h> #include <sys/types.h> #include <codas/bit.h> #include <yax/errorcodes.h> #include <yax/lock.h> #include <yax/openflags.h> #include "fs/conn.h" #include "fs/iofs.h" #include "mem/malloc.h" #include "multitask.h" #include "pic.h" #include "port.h" ...
19.22
154
(translation_unit) "#define __YAX__\n#define NDEBUG\n#include <string.h>\n#include <sys/stat.h>\n#include <sys/types.h>\n#include <codas/bit.h>\n#include <yax/errorcodes.h>\n#include <yax/lock.h>\n#include <yax/openflags.h>\n#include "fs/conn.h"\n#include "fs/iofs.h"\n#include "mem/malloc.h"\n#include "multitask.h"\n#i...
1,431
0
{"language": "c", "success": true, "metadata": {"lines": 154, "avg_line_length": 19.22, "nodes": 919, "errors": 0, "source_hash": "8024dce2ffe53bd54798c7fd63986ac76820dd64ec5e38aefe24a355fb6a82e3", "categorized_nodes": 624}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define...
80,475
c
// Dynalib IO interface // Author: <NAME> <<EMAIL>> #ifndef DYNALIB_IO_H #define DYNALIB_IO_H #include "return_code.h" #include <stdint.h> namespace dynalib { class IO { public: virtual ~IO(); virtual void reset(); virtual ReturnCode startTransmit(); virtual bool writeByte(uint8_t data) = 0; virtual bool wr...
22.71
21
(translation_unit) "// Dynalib IO interface\n// Author: <NAME> <<EMAIL>>\n\n#ifndef DYNALIB_IO_H\n#define DYNALIB_IO_H\n\n#include "return_code.h"\n\n#include <stdint.h>\n\nnamespace dynalib\n{\n\nclass IO\n{\npublic:\n virtual ~IO();\n\n virtual void reset();\n virtual ReturnCode startTransmit();\n\n virtual bool writ...
152
7
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 22.71, "nodes": 109, "errors": 0, "source_hash": "d1456b64be60bad5a28dcdd9bf19afd77de21a36494e7f7c969c67cc1832a1ec", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
80,476
c
/** * @file tc.h * @brief Provides Transparent Clock logic. * @note Copyright (C) 2018 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, ...
33.86
93
(translation_unit) "/**\n * @file tc.h\n * @brief Provides Transparent Clock logic.\n * @note Copyright (C) 2018 <NAME> <<EMAIL>>\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either...
197
0
{"language": "c", "success": true, "metadata": {"lines": 93, "avg_line_length": 33.86, "nodes": 151, "errors": 0, "source_hash": "97c71a889de0237eabbe226011bb1060dce37bd8c90f7734e87e3e2cd6aecf0e", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
80,477
c
/*! * @file portable_delay.c * @brief Portable Delay/Sleep functions * @author <NAME> * @date 2014/12/20 */ #ifdef __linux /* Linux needs this for POSIX compatibility */ #ifndef _POSIX_C_SOURCE #define _POSIX_C_SOURCE 199506L #endif /* of !_POSIX_C_SOURCE */ #endif /* of __linux */ #ifdef __unix__ #include <sys/...
18.39
90
(translation_unit) "/*!\n * @file portable_delay.c\n * @brief Portable Delay/Sleep functions\n * @author <NAME>\n * @date 2014/12/20\n */\n\n#ifdef __linux\n/* Linux needs this for POSIX compatibility */\n#ifndef _POSIX_C_SOURCE\n#define _POSIX_C_SOURCE 199506L\n#endif /* of !_POSIX_C_SOURCE */\n#endif /* of __linux */...
498
0
{"language": "c", "success": true, "metadata": {"lines": 90, "avg_line_length": 18.39, "nodes": 330, "errors": 0, "source_hash": "143dbcb213bb51e10d859ae056948e667bb3b7c0da326807a319872b521827ab", "categorized_nodes": 232}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef...
80,478
c
#ifndef PITCHANDROLL_H #define PITCHANDROLL_H #include "vector.h" /** * The purpose of this class is to calculate the pitch and roll after a number * of rotations around the X, Y and Z axis. The class also accepts a vector * describing "up" and a weight. The purpose of the "up" vector is to address * the drift ca...
31.32
65
(translation_unit) "#ifndef PITCHANDROLL_H\n#define PITCHANDROLL_H\n\n#include "vector.h"\n\n/**\n * The purpose of this class is to calculate the pitch and roll after a number\n * of rotations around the X, Y and Z axis. The class also accepts a vector\n * describing "up" and a weight. The purpose of the "up" vector i...
126
0
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 31.32, "nodes": 76, "errors": 0, "source_hash": "f7a0c047e562fbeed589ef9b3acab7043fe2696f342fd0ad15082814248da741", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
80,479
c
/* -*- C++ -*- */ // Signal router. #ifndef _EVENT_ANALYZER_H #define _EVENT_ANALYZER_H #include "ace/Stream.h" #if !defined (ACE_LACKS_PRAGMA_ONCE) # pragma once #endif /* ACE_LACKS_PRAGMA_ONCE */ #include "ace/Module.h" #include "ace/Task.h" #if defined (ACE_HAS_THREADS) class Event_Analyzer : ...
22.11
35
(translation_unit) "/* -*- C++ -*- */ \n// Signal router. \n \n#ifndef _EVENT_ANALYZER_H \n#define _EVENT_ANALYZER_H \n \n#include "ace/Stream.h" \n \n#if !defined (ACE_LACKS_PRAGMA_ONCE) \n# pragma once \n#endif /* ACE_LACKS_PRAGMA_ONCE */ \n \n#include "ace/Module.h" \n#include "ace/Task.h" \n \n#if defined (ACE_HAS_...
208
10
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 22.11, "nodes": 142, "errors": 0, "source_hash": "897825acb74eb35eb098296774b383f2aa0430d625f7b46409dd846b61f90e02", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
80,480
c
#pragma once #include <cstdint> uint32_t murmur_hash(const void * key, int len, uint32_t seed); uint64_t murmur_hash_64(const void * key, uint32_t len, uint64_t seed);
41
4
(translation_unit) "#pragma once\n\n#include <cstdint>\n\nuint32_t murmur_hash(const void * key, int len, uint32_t seed);\nuint64_t murmur_hash_64(const void * key, uint32_t len, uint64_t seed);\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include...
53
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 41.0, "nodes": 38, "errors": 0, "source_hash": "17afa03bda2ff8a01404daf80a183867cc40ad86a861af8280fb34465800a199", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
80,481
c
#include <assert.h> #include <math.h> #include <stdlib.h> #include "vector.h" Vector * vector_new (double x, double y, double z) { Vector *new = malloc (sizeof (Vector)); new->x = x; new->y = y; new->z = z; return new; } Vector * vector_copy (Vector *a) { Vector *new = malloc (sizeof (Vector)); new-...
18.31
83
(translation_unit) "#include <assert.h>\n#include <math.h>\n#include <stdlib.h>\n\n#include "vector.h"\n\nVector *\nvector_new (double x, double y, double z)\n{\n Vector *new = malloc (sizeof (Vector));\n\n new->x = x;\n new->y = y;\n new->z = z;\n\n return new;\n}\n\nVector *\nvector_copy (Vector *a)\n{\n Vector...
742
0
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 18.31, "nodes": 503, "errors": 0, "source_hash": "ae255721b985c77cb18bf5859d35fabe5342acaf86e8af2b00c764a1c7ec4b33", "categorized_nodes": 372}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
80,482
c
#pragma once #include "LiberoMath.h" #include <string> // - 40 for windowed mode #define WINDOWED_VERTICAL_CUTOFF 40 #define MENUBAR_VERTICAL_CUTOFF 20 namespace Libero { namespace CoreSettings { static std::string m_VersionName = "v1.0"; static std::string m_WindowName = "Libero Engine " + m_VersionName; sta...
33.6
20
(translation_unit) "#pragma once\n#include "LiberoMath.h"\n#include <string>\n\n// - 40 for windowed mode\n#define WINDOWED_VERTICAL_CUTOFF 40\n#define MENUBAR_VERTICAL_CUTOFF 20\n\nnamespace Libero\n{\n namespace CoreSettings\n {\n static std::string m_VersionName = "v1.0";\n static std::string m_WindowName = "Liber...
177
6
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 33.6, "nodes": 108, "errors": 0, "source_hash": "bae08609fce1bbfd1eb834d2672aa8f80ac60257aecef99dfc7fe4ef3a0654c0", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
80,483
c
#pragma once #include "VertexProcessor.h" #include "Renderer.h" #include "Vertex.h" class ConstColorVP : public VertexProcessor { void updateTransforms(Renderer &renderer) { _mvMat = renderer.getModelViewMatrix(); _mvpMat = renderer.getViewportMatrix() * renderer.getProjectionMatrix() * _mvMat; ...
35.87
30
(translation_unit) "#pragma once\n\n#include "VertexProcessor.h"\n#include "Renderer.h"\n#include "Vertex.h"\n\nclass ConstColorVP : public VertexProcessor {\n void updateTransforms(Renderer &renderer) {\n _mvMat = renderer.getModelViewMatrix();\n _mvpMat = renderer.getViewportMatrix() * renderer.getPr...
453
2
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 35.87, "nodes": 301, "errors": 0, "source_hash": "ad87e8d441bad323864384d898ca52c6fc624445b765af276ab1d3333212c3c4", "categorized_nodes": 217}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
80,484
c
/* * Copyright (c) 2013, The University of Oxford * 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 ...
37.49
94
(translation_unit) "/*\n * Copyright (c) 2013, The University of Oxford\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n * 1. Redistributions of source code must retain the above copyrigh...
350
19
{"language": "c", "success": true, "metadata": {"lines": 94, "avg_line_length": 37.49, "nodes": 222, "errors": 0, "source_hash": "449eb829ba61a74d896aacf262de0c7aad82e8a59c3cfce3662de611c917a724", "categorized_nodes": 149}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
80,485
c
#ifndef _GENCANONICALBASIS_GF2N_H #define _GENCANONICALBASIS_GF2N_H #include "matrix_gf2n.h" void PQCLEAN_GEMSSBLUE128_CLEAN_genCanonicalBasis_gf2n(vec_gf2n alpha_vec); #endif
24.43
7
(translation_unit) "#ifndef _GENCANONICALBASIS_GF2N_H\n#define _GENCANONICALBASIS_GF2N_H\n#include "matrix_gf2n.h"\n\n\n\nvoid PQCLEAN_GEMSSBLUE128_CLEAN_genCanonicalBasis_gf2n(vec_gf2n alpha_vec);\n\n\n#endif\n" (preproc_ifdef) "#ifndef _GENCANONICALBASIS_GF2N_H\n#define _GENCANONICALBASIS_GF2N_H\n#include "matrix_g...
25
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 24.43, "nodes": 18, "errors": 0, "source_hash": "0646a59a7ef769479047b9ceb0d58e378548c65a8907c1e02e377c93084f1545", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
80,486
c
/* * Copyright (c) 2020, <NAME> <<EMAIL>> * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include <AK/String.h> namespace Web { class Origin { public: Origin() { } Origin(const String& protocol, const String& host, u16 port) : m_protocol(protocol) , m_host(host) , m_po...
27.95
44
(translation_unit) "/*\n * Copyright (c) 2020, <NAME> <<EMAIL>>\n *\n * SPDX-License-Identifier: BSD-2-Clause\n */\n\n#pragma once\n\n#include <AK/String.h>\n\nnamespace Web {\n\nclass Origin {\npublic:\n Origin() { }\n Origin(const String& protocol, const String& host, u16 port)\n : m_protocol(protocol)\n...
441
19
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 27.95, "nodes": 237, "errors": 0, "source_hash": "ae656f6d1b3dfcdd9dc1cf7612825fe20693985ce140f227d61c7b960fb5d8e6", "categorized_nodes": 167}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
80,487
c
#pragma once #include "LayerDx11.h" class ResizeLayerDx11 : public ResizeLayer,public LayerDx11 { public: ResizeLayerDx11(); ~ResizeLayerDx11(); protected: virtual void onParametChange(ResizeParamet oldT) override; virtual bool initHlsl() override; virtual void onInitLayer() override; };
23.5
12
(translation_unit) "#pragma once\n#include "LayerDx11.h"\n\nclass ResizeLayerDx11 : public ResizeLayer,public LayerDx11\n{\npublic:\n ResizeLayerDx11();\n ~ResizeLayerDx11();\nprotected:\n virtual void onParametChange(ResizeParamet oldT) override;\n virtual bool initHlsl() override;\n virtual void onInitLayer() overrid...
86
7
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 23.5, "nodes": 49, "errors": 0, "source_hash": "1be1b64d06355e598930954f237d06905fe086cb87d3f723001a308aac08867c", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
80,488
c
#ifndef _OPENGL_FONT_ENGINE_DEFAULT_H_ #define _OPENGL_FONT_ENGINE_DEFAULT_H_ #include "font_engine.h" #include <cstdint> #include <memory> namespace opengl { class FontEngineDefault final : public FontEngine { public: virtual ~FontEngineDefault( ) noexcept; virtual bool Initialize( ) noe...
25.76
49
(translation_unit) "#ifndef _OPENGL_FONT_ENGINE_DEFAULT_H_ \n#define _OPENGL_FONT_ENGINE_DEFAULT_H_ \n \n#include "font_engine.h" \n \n#include <cstdint> \n#include <memory> \n \nnamespace opengl \n{ \n \nclass FontEngineDefault final : \n public FontEngine \n{ \npublic: \n virtual ~FontEngineDefault( ) noexcept; \...
252
10
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 25.76, "nodes": 156, "errors": 0, "source_hash": "a75be9d214baa8e97a3f4df77506b4bf7b6cfbd9cec64f35a6e9f0700821f817", "categorized_nodes": 119}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
80,489
c
/************************************************************************* * COPYRIGHT (C) Mylex Corporation 1992-1998 * * * * This software is furnished under a license and may be used and copied * * only in ...
30.18
129
(translation_unit) "/************************************************************************* \n * COPYRIGHT (C) Mylex Corporation 1992-1998 * \n * * \n * This software is furnished under a license and may be used and c...
411
0
{"language": "c", "success": true, "metadata": {"lines": 129, "avg_line_length": 30.18, "nodes": 286, "errors": 0, "source_hash": "a1541e9a3eafcf9b2625c7932f9b5d726a2abe9e6c4fa29341db7856e37479dc", "categorized_nodes": 227}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
80,490
c
#pragma once // Example showing swapped elements: // temp | list(5, 4, 3, 2, 1) // -------------------------- // 5 | 4 <-> 5, 3, 2, 1 // 5 | 4, 3 <-> 5, 2, 1 // 5 | 4, 3, 2 <-> 5, 1 // 5 | 4, 3, 2, 1 <-> 5 // 4 | 3 <-> 4, 2, 1, 5 // 4 | 3, 2 <-> 4, 1, 5 /...
28.6
35
(translation_unit) "#pragma once\n\n// Example showing swapped elements:\n// temp | list(5, 4, 3, 2, 1)\n// --------------------------\n// 5 | 4 <-> 5, 3, 2, 1\n// 5 | 4, 3 <-> 5, 2, 1\n// 5 | 4, 3, 2 <-> 5, 1\n// 5 | 4, 3, 2, 1 <-> 5\n// 4 | 3 <-> 4, 2, 1, 5\n// ...
176
5
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 28.6, "nodes": 108, "errors": 0, "source_hash": "926b3a046c55e04ee287e974fd83331ff57a88aefb72fc0b73bec7d48efcb37b", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
80,491
c
#ifndef TIMERCOMMON_H_INCLUDED #define TIMERCOMMON_H_INCLUDED #include "detail/_time.h" #ifdef WIN32 #include <objbase.h> #else #include <uuid/uuid.h> #endif typedef struct stConfigTimer { int servId; int msgId; struct timeval_a tmBegin; int invl; int type; char addr[128]; public: bool oper...
28.03
59
(translation_unit) "#ifndef TIMERCOMMON_H_INCLUDED\n#define TIMERCOMMON_H_INCLUDED\n#include "detail/_time.h"\n#ifdef WIN32\n#include <objbase.h>\n#else\n#include <uuid/uuid.h>\n#endif\n\ntypedef struct stConfigTimer\n{\n int servId;\n int msgId;\n struct timeval_a tmBegin;\n int invl;\n int type;\n c...
559
19
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 28.03, "nodes": 326, "errors": 0, "source_hash": "b5e4d18990185374c5fe65f4a80ebd57bd505a318e16a154cd10a438aa701adf", "categorized_nodes": 269}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
80,492
c
#ifndef SONG_FILE_H #define SONG_FILE_H #include "engine/audio_effect.h" #include "engine/song.h" class SongFile { Song *song; AudioEffectFactory *fx_factory; public: struct MissingPlugin { String provider; String id; }; Error save(const String &p_path); Error load(const String &p_path, List<MissingPlugin...
31.68
19
(translation_unit) "#ifndef SONG_FILE_H\n#define SONG_FILE_H\n\n#include "engine/audio_effect.h"\n#include "engine/song.h"\n\nclass SongFile {\n Song *song;\n AudioEffectFactory *fx_factory;\n\npublic:\n struct MissingPlugin {\n String provider;\n String id;\n };\n\n Error save(const String &p_path);\n Error load(con...
186
8
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 31.68, "nodes": 122, "errors": 0, "source_hash": "f86e1c6718dabebade8f9cb92d0d8209dbf6b1fcd3d06508c41792d1975457e2", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
80,493
c
/************************************************************************* * Copyright (c) 2015, Synopsys, Inc. * * All rights reserved. * * * * Redistribution and...
34.66
213
(translation_unit) "/*************************************************************************\n* Copyright (c) 2015, Synopsys, Inc. *\n* All rights reserved. *\n* ...
1,203
9
{"language": "c", "success": true, "metadata": {"lines": 213, "avg_line_length": 34.66, "nodes": 790, "errors": 0, "source_hash": "51c50f6d57f7e870a0dbc41f7b16b73dd14a1aa7f9f8583479791bfe7769af16", "categorized_nodes": 482}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
80,494
c
/* * Assignment: Programming Assignment 5(pa5) * Programmer: <NAME> * CruzId: tfu6 * Student id: 1600058 */ #ifndef GRAPH_H_INCLUDED #define GRAPH_H_INCLUDED #define NIL 0 #define UNDEF -1 #include"List.h" //*** Constructors-Destructors ***/ typedef struct GraphObj* Graph; Graph newGraph(int n); void freeGraph(Gr...
30.72
32
(translation_unit) "/*\n * Assignment: Programming Assignment 5(pa5)\n * Programmer: <NAME>\n * CruzId: tfu6\n * Student id: 1600058\n */\n#ifndef GRAPH_H_INCLUDED\n#define GRAPH_H_INCLUDED\n#define NIL 0\n#define UNDEF -1\n#include"List.h"\n\n//*** Constructors-Destructors ***/\ntypedef struct GraphObj* Graph;\nGraph ...
262
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 30.72, "nodes": 188, "errors": 0, "source_hash": "1efe628b0228a8aaf6bb1db1fdac0c6af1f5de964888a4ce75486e430295f23d", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
80,495
c
/* * Copyright (c) 2014 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
34.71
35
(translation_unit) "/*\n * Copyright (c) 2014 <NAME>\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by ...
78
4
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 34.71, "nodes": 43, "errors": 0, "source_hash": "e12b17bbdf61d67b850a34a4da5618bbde7f17efe07764d15191aee94f857612", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
80,496
c
// // NSDictionary+MMS.h // MMShared // // Created by <NAME> on 18/09/2017. // Copyright © 2017 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import <MMShared/MMSDefines.h> NS_ASSUME_NONNULL_BEGIN @interface NSDictionary<__covariant KeyType, __covariant ObjectType> (MMS) @property (readonly...
45.64
22
(translation_unit) "//\n// NSDictionary+MMS.h\n// MMShared\n//\n// Created by <NAME> on 18/09/2017.\n// Copyright © 2017 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <MMShared/MMSDefines.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface NSDictionary<__covariant KeyType, __covariant Objec...
144
16
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 45.64, "nodes": 93, "errors": 0, "source_hash": "ae6d7a1e7533460f5a75bb7d77dd625c28dc9014ed50b659148d7b7e70300278", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
80,497
c
// // MZM3U8DownLoaderSDK.h // MZM3U8DownLoaderSDK // // Created by 李风 on 2020/3/25. // Copyright © 2020 <EMAIL>. All rights reserved. // #import <Foundation/Foundation.h> //! Project version number for MZM3U8DownLoaderSDK. FOUNDATION_EXPORT double MZM3U8DownLoaderSDKVersionNumber; //! Project version string for...
41.07
14
(translation_unit) "//\n// MZM3U8DownLoaderSDK.h\n// MZM3U8DownLoaderSDK\n//\n// Created by 李风 on 2020/3/25.\n// Copyright © 2020 <EMAIL>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n//! Project version number for MZM3U8DownLoaderSDK.\nFOUNDATION_EXPORT double MZM3U8DownLoaderSDKVersionNumber;\...
36
1
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 41.07, "nodes": 19, "errors": 0, "source_hash": "a799a64c8c23b2e940c3041397d9c78c70ad3b0fc7b619cacf789d926614d727", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "rt <Found...
80,498
c
#include <aubio.h> int main (void) { uint_t n = 10; // compute n times uint_t win_s = 1024; // window size uint_t hop_s = 256; // hop size // create some vectors fvec_t * in = new_fvec (hop_s); // input buffer cvec_t * fftgrain = new_cvec (win_s); // fft norm and phase cvec_t * cstead = new_cve...
32.96
47
(translation_unit) "#include <aubio.h>\n\nint main (void)\n{\n uint_t n = 10; // compute n times\n uint_t win_s = 1024; // window size\n uint_t hop_s = 256; // hop size\n\n // create some vectors\n fvec_t * in = new_fvec (hop_s); // input buffer\n cvec_t * fftgrain = new_cvec (win_s); // fft norm and phase...
385
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 32.96, "nodes": 232, "errors": 0, "source_hash": "49947ad3a68eae2e2888fe88c6c1ba5ff9b92700f80ef35ed8d52b4f766ab5c8", "categorized_nodes": 154}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
80,499