language
stringclasses
1 value
code
stringlengths
6
12.3k
avg_line_length
float64
2.79
91
line_count
float64
1
367
lang_specific_parse
stringlengths
60
1.08M
ast_node_count
int64
2
6.81k
num_errors
int64
0
499
universal_schema
stringlengths
799
825k
__index_level_0__
int64
0
81.2k
c
#include <zephyr.h> #include <sys/printk.h> #include <device.h> #include <drivers/i2c.h> #define TEMP_I2C_ADDR 0x48 // Trial and error, doesn't match documentation uint32_t cfg = I2C_SPEED_SET(I2C_SPEED_FAST) | I2C_MODE_MASTER; const struct device *i2c_dev = DEVICE_DT_GET(DT_NODELABEL(i2c2)); void main(void) { ...
25.52
61
(translation_unit) "#include <zephyr.h>\n#include <sys/printk.h>\n#include <device.h>\n#include <drivers/i2c.h>\n\n#define TEMP_I2C_ADDR 0x48 // Trial and error, doesn't match documentation\n\nuint32_t cfg = I2C_SPEED_SET(I2C_SPEED_FAST) | I2C_MODE_MASTER;\n\nconst struct device *i2c_dev = DEVICE_DT_GET(DT_NODELABEL(i2...
320
0
{"language": "c", "success": true, "metadata": {"lines": 61, "avg_line_length": 25.52, "nodes": 165, "errors": 0, "source_hash": "2adb4db108338692291614e46550f217d6f67da99f858fb66cb3a3a237f490a0", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,800
c
#include<stdio.h> #include<fcntl.h> main() { FILE *fs; fs=fopen("a.txt","w"); write(3,"PORST",5); fprintf(fs,"A"); lseek(3,2,SEEK_SET); fflush(fs); write(3,"Z",1); }
12.83
12
(translation_unit) "#include<stdio.h>\n#include<fcntl.h>\nmain()\n{\nFILE *fs;\nfs=fopen("a.txt","w");\nwrite(3,"PORST",5);\nfprintf(fs,"A");\nlseek(3,2,SEEK_SET);\nfflush(fs);\nwrite(3,"Z",1);\n}\n" (preproc_include) "#include<stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_inclu...
105
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 12.83, "nodes": 49, "errors": 0, "source_hash": "3ab6c9b7094321ed4422beb7d337a6e43b88716bbeb4dffe2d5dc5bb6e05be70", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
1,801
c
#pragma once #include "SHPreDefine.h" #include "SHTypes.h" #include "SHUtilities.h"
20
4
(translation_unit) "#pragma once\n\n#include "SHPreDefine.h"\n#include "SHTypes.h"\n#include "SHUtilities.h"" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "SHPreDefine.h"\n" (#include) "#include" (string_literal) ""SHPreDefine.h"" ...
22
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 20.0, "nodes": 12, "errors": 0, "source_hash": "3502f26138d07d7d03c523ac5e309011d9895ea227b7934e9fa1640a53533dcc", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma onc...
1,802
c
// // GTAPIStub.h // godtools // // Created by <NAME> on 5/20/15. // Copyright (c) 2015 <NAME>. All rights reserved. // #import "GTAPI.h" @interface GTAPIStub : GTAPI @end
16.6
10
(translation_unit) "//\n// GTAPIStub.h\n// godtools\n//\n// Created by <NAME> on 5/20/15.\n// Copyright (c) 2015 <NAME>. All rights reserved.\n//\n\n#import "GTAPI.h"\n\n@interface GTAPIStub : GTAPI\n\n@end\n" (comment) "//" (comment) "// GTAPIStub.h" (comment) "// godtools" (comment) "//" (comment) "//...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 16.6, "nodes": 9, "errors": 0, "source_hash": "a01b0f07327f0f83e56cc696de168a420180e6aff6d545e8ff42036e16cce5cc", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"GT...
1,803
c
#pragma once #include "SVONNavigationPath.generated.h" UENUM(BlueprintType) enum class ESVONPathCostType : uint8 { Manhattan, Euclidean }; USTRUCT(BlueprintType) struct FSVONPathPoint { GENERATED_BODY() FSVONPathPoint() : myPosition(FVector()) , myLayer(-1) { } FSVONPathPoint(const FVector& aPosition, in...
23.17
47
(translation_unit) "#pragma once\n#include "SVONNavigationPath.generated.h"\n\nUENUM(BlueprintType)\nenum class ESVONPathCostType : uint8\n{\n Manhattan,\n Euclidean\n};\n\nUSTRUCT(BlueprintType)\nstruct FSVONPathPoint\n{\n GENERATED_BODY()\n \n FSVONPathPoint()\n : myPosition(FVector())\n , myLayer(-1)\n {\n }\n FSV...
317
13
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 23.17, "nodes": 174, "errors": 0, "source_hash": "197b7a2b6446203bece48474f8b948c9cb8cb7c331cce3d80ef31b5755146c4f", "categorized_nodes": 118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
1,804
c
/* * Copyright 2022 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/license.html...
37.83
107
(translation_unit) "/*\n* Copyright 2022 The OpenSSL Project Authors. All Rights Reserved.\n*\n* Licensed under the Apache License 2.0 (the "License"). You may not use\n* this file except in compliance with the License. You can obtain a copy\n* in the file LICENSE in the source distribution or at\n* https://www.opens...
262
0
{"language": "c", "success": true, "metadata": {"lines": 107, "avg_line_length": 37.83, "nodes": 182, "errors": 0, "source_hash": "8b5f59ffb21c2e08b9e322d69baf7dd10d98d6cf544a525bfc8c7ab692d9b036", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
1,805
c
#include <stdio.h> #include <stdlib.h> /* * This example offers a brief introduction to the data directive. The * data directive allows the programmer to explicitly mark variables to be * transferred to or from the accelerator. This serves as a performance * optimization by eliminating redundant or unnecessary mem...
25.1
50
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\n/*\n * This example offers a brief introduction to the data directive. The\n * data directive allows the programmer to explicitly mark variables to be\n * transferred to or from the accelerator. This serves as a performance\n * optimization by eliminating r...
352
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 25.1, "nodes": 227, "errors": 0, "source_hash": "73490d54da7139ecff50eefef01cc735ad104ba69e571ea4e7bc23500993fbbf", "categorized_nodes": 133}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
1,806
c
// Copyright (c) 2015-2016 Nuxi, https://nuxi.nl/ // // SPDX-License-Identifier: BSD-2-Clause #include <common/locale.h> #include <common/mbstate.h> #include <strings.h> #include <wctype.h> static wint_t fetchchar(const char **s, size_t *n, mbstate_t *mb, locale_t locale) { const struct lc_...
27.06
35
(translation_unit) "// Copyright (c) 2015-2016 Nuxi, https://nuxi.nl/\n//\n// SPDX-License-Identifier: BSD-2-Clause\n\n#include <common/locale.h>\n#include <common/mbstate.h>\n\n#include <strings.h>\n#include <wctype.h>\n\nstatic wint_t fetchchar(const char **s, size_t *n, mbstate_t *mb,\n locale...
316
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 27.06, "nodes": 202, "errors": 0, "source_hash": "0ea9e7b8d4e724c609dbef83419a646bb8544fe8e3af75e1c906fc4bb3ebdc80", "categorized_nodes": 148}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,807
c
#pragma once #define TILE_SIZE_IN_PIXELS 8 #define MAX_LIGHTS_PER_TILE 1024 struct gpu_caustics_input_buffer { f32 Time; }; struct tiled_deferred_globals { // TODO: Move to camera? m4 InverseProjection; v2 ScreenSize; u32 GridSizeX; u32 GridSizeY; }; struct tiled_deferred_state { vk_line...
26.57
56
(translation_unit) "#pragma once\n\n#define TILE_SIZE_IN_PIXELS 8\n#define MAX_LIGHTS_PER_TILE 1024\n\nstruct gpu_caustics_input_buffer\n{\n f32 Time;\n};\n\nstruct tiled_deferred_globals\n{\n // TODO: Move to camera?\n m4 InverseProjection;\n v2 ScreenSize;\n u32 GridSizeX;\n u32 GridSizeY;\n};\n\nst...
199
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 26.57, "nodes": 144, "errors": 0, "source_hash": "bf654e1b3ba09bdde2ef010531ff4a452b60feff9c42cc3190065634410fdf9a", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
1,808
c
#ifndef IMAGE_AUX_H_ #define IMAGE_AUX_H_ #define MAX_SIZE 24 #define MIN_SIZE 4 typedef struct { float x_size; float y_size; float z_size; float data3D[MAX_SIZE][MAX_SIZE][MAX_SIZE]; }image_t; typedef struct { float size; float data1D[MAX_SIZE]; }array_t; #endif
15.94
16
(translation_unit) "#ifndef IMAGE_AUX_H_\n#define IMAGE_AUX_H_\n#define MAX_SIZE 24\n#define MIN_SIZE 4\n\n\n\ntypedef struct {\n float x_size;\n float y_size;\n float z_size;\n float data3D[MAX_SIZE][MAX_SIZE][MAX_SIZE];\n}image_t;\n\ntypedef struct {\n float size;\n float data1D[MAX_SIZE];\n}array_t;\n\n#endif\n" (...
74
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 15.94, "nodes": 51, "errors": 0, "source_hash": "975d4ab26098642acab43effa1df57e6f2c74ea2dfe4a5fdd41813a846a10fec", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,809
c
#pragma once #include <vector> struct HDRImageLite { public: HDRImageLite(); HDRImageLite(int w, int h, int channels, const float* data); ~HDRImageLite(); inline int width() const { return m_width; } inline int height() const { return m_height; } inline int channels() const { return m_channels; } co...
31.91
22
(translation_unit) "#pragma once\n\n#include <vector>\n\nstruct HDRImageLite\n{\npublic:\n\n HDRImageLite();\n HDRImageLite(int w, int h, int channels, const float* data);\n ~HDRImageLite();\n\n inline int width() const { return m_width; }\n inline int height() const { return m_height; }\n inline int channels() ...
261
17
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 31.91, "nodes": 159, "errors": 0, "source_hash": "5efbf4c2ba6a8fbc458ed0bf4c889171d968f91ca82adb23d11df41bf6bc3aa5", "categorized_nodes": 96}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
1,810
c
// // CxVision.h // CxVision // // Created by <NAME> on 7/6/19. // Copyright © 2019 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> //! Project version number for CxVision. FOUNDATION_EXPORT double CxVisionVersionNumber; //! Project version string for CxVision. FOUNDATION_EXPORT const unsigned ...
36
13
(translation_unit) "//\n// CxVision.h\n// CxVision\n//\n// Created by <NAME> on 7/6/19.\n// Copyright © 2019 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n//! Project version number for CxVision.\nFOUNDATION_EXPORT double CxVisionVersionNumber;\n\n//! Project version string for CxVision.\...
33
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 36.0, "nodes": 15, "errors": 0, "source_hash": "e9c6594b547da06a2dd60adbd9077cdec4a0d9978c908b024a18bc209eca5a34", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <Fo...
1,811
c
#include <stdio.h> int main() { unsigned int i1 = 0x01; unsigned int i2 = *(unsigned char *)&i1; if (i1 == i2) { printf("LITTLE ENDIAN\n"); } else { printf("BIG ENDIAN\n"); } return 0; }
18.15
13
(translation_unit) "#include <stdio.h> \n \nint main() { \n unsigned int i1 = 0x01; \n unsigned int i2 = *(unsigned char *)&i1; \n \n if (i1 == i2) { \n printf("LITTLE ENDIAN\n"); \n } else { \n printf("BIG ENDIAN\n"); \n } \n return 0; \n} \n" (preproc_include) "#include <stdi...
90
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 18.15, "nodes": 53, "errors": 0, "source_hash": "582b8debc5a01cd48bcde48d8899330fbf4d61589747ebffabae131e0787ab11", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
1,812
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/CloudKitDaemon.framework/CloudKitDaemon */ @interface CKDResetUserPrivacySettingsURLRequest : CKDURLRequest - (int)operationType; - (id)requestDidParseProtobufObject:(id)arg1; - (id)requestOperationClasses; - (id)requestOperations; - (bool)re...
33.8
10
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/CloudKitDaemon.framework/CloudKitDaemon\n */\n\n@interface CKDResetUserPrivacySettingsURLRequest : CKDURLRequest\n\n- (int)operationType;\n- (id)requestDidParseProtobufObject:(id)arg1;\n- (id)requestOperationClasses;\n- (id)...
69
5
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 33.8, "nodes": 40, "errors": 0, "source_hash": "462cd34448d58d6823da2ddd2babddca3fbd4d28f6b5500e93b978c72ea24ba1", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface CKDRes...
1,813
c
#define NULL ((void*)0) typedef unsigned long size_t; // Customize by platform. typedef long intptr_t; typedef unsigned long uintptr_t; typedef long scalar_t__; // Either arithmetic or pointer type. /* By default, we understand bool (as a convenience). */ typedef int bool; #define false 0 #define true 1 /* Forward d...
27.73
286
(translation_unit) "#define NULL ((void*)0)\ntypedef unsigned long size_t; // Customize by platform.\ntypedef long intptr_t; typedef unsigned long uintptr_t;\ntypedef long scalar_t__; // Either arithmetic or pointer type.\n/* By default, we understand bool (as a convenience). */\ntypedef int bool;\n#define false 0\n#...
2,381
0
{"language": "c", "success": true, "metadata": {"lines": 286, "avg_line_length": 27.73, "nodes": 1548, "errors": 0, "source_hash": "da43bd4e70416a9bb6132cca37f8eab72ffbb0b80f77c46e6acb950ec35971c8", "categorized_nodes": 1014}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#defi...
1,814
c
#ifndef VSHEETS_H #define VSHEETS_H #include <vgui/VGUI.h> #include <vgui/IInput.h> #include <vgui/IPanel.h> #include <vgui/ISurface.h> #include "ienginevgui.h" #include "vgui_controls/Controls.h" #include <vgui_controls/propertydialog.h> #include <vgui_controls/propertysheet.h> #include <vgui_controls/propertypage....
27.68
57
(translation_unit) "fndef VSHEETS_H\n#define VSHEETS_H\n\n#include <vgui/VGUI.h>\n#include <vgui/IInput.h>\n#include <vgui/IPanel.h>\n#include <vgui/ISurface.h>\n#include "ienginevgui.h"\n\n#include "vgui_controls/Controls.h"\n#include <vgui_controls/propertydialog.h>\n#include <vgui_controls/propertysheet.h>\n#include...
281
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 27.68, "nodes": 163, "errors": 0, "source_hash": "ba418c0a9105e60ec0b441fd5d450ffecb9c87c01145441da32d20d33b5d47e7", "categorized_nodes": 161}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef ...
1,815
c
/* include servproc */ #include "unpipc.h" void servproc(void *cookie, char *dataptr, size_t datasize, door_desc_t *descptr, size_t ndesc) { long arg, result; door_cred_t info; /* 4obtain and print client credentials */ Door_cred(&info); printf("euid = %ld, ruid = %ld, pid = %ld\n", (long) info.dc_euid...
25.03
33
(translation_unit) "/* include servproc */\n#include "unpipc.h"\n\nvoid\nservproc(void *cookie, char *dataptr, size_t datasize,\n door_desc_t *descptr, size_t ndesc)\n{\n long arg, result;\n door_cred_t info;\n \n /* 4obtain and print client credentials */\n Door_cred(&info);\n printf("euid = %ld, ruid = %ld, pid = ...
294
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 25.03, "nodes": 172, "errors": 0, "source_hash": "52934b932d80dc62a97e83ec063c0f5f40f12ba3fc72a4ec24fb9e9592ce6fb3", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,816
c
#ifndef __motor_h #define __motor_h #include "sys.h" void Motor_Init(void); int motor_abs(int p); #endif
17.33
6
(translation_unit) "#ifndef __motor_h \n#define __motor_h \n#include "sys.h" \nvoid Motor_Init(void); \nint motor_abs(int p); \n#endif \n \n" (preproc_ifdef) "#ifndef __motor_h \n#define __motor_h \n#include "sys.h" \nvoid Motor_Init(void); \nint motor_abs(int p); \n#endif" (#ifndef) "#ifndef" (identifier) "_...
35
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 17.33, "nodes": 25, "errors": 0, "source_hash": "82345668644eef3b5de7a28ec166b1420627de9608cd4e0021ea1fc1c4aff88f", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
1,817
c
#pragma once #include "EdGraph/EdGraphNode.h" #include "DialogNodes.h" #include "QaDSEdGraphNode.h" #include "DialogEditorNodes.generated.h" class UEdGraphPin; class FXmlNode; FORCEINLINE void operator<<(FXmlWriteNode& node, const FXmlWriteTuple<FDialogPhraseEvent>& tuple); FORCEINLINE void operator<<(FXmlWriteNode&...
36.4
80
(translation_unit) "#pragma once\n\n#include "EdGraph/EdGraphNode.h"\n#include "DialogNodes.h"\n#include "QaDSEdGraphNode.h"\n#include "DialogEditorNodes.generated.h"\n\nclass UEdGraphPin;\nclass FXmlNode;\n\nFORCEINLINE void operator<<(FXmlWriteNode& node, const FXmlWriteTuple<FDialogPhraseEvent>& tuple);\nFORCEINLINE...
711
41
{"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 36.4, "nodes": 432, "errors": 0, "source_hash": "1c85ff53232d1f3484cebc948fa4ae02df6d449e52698ed2be6aca77cd67680e", "categorized_nodes": 313}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
1,818
c
#define BACKGROUND_LOOP_TEST #include "example.c"
24
2
(translation_unit) "#define BACKGROUND_LOOP_TEST\n#include "example.c"\n" (preproc_def) "#define BACKGROUND_LOOP_TEST\n" (#define) "#define" (identifier) "BACKGROUND_LOOP_TEST" (preproc_include) "#include "example.c"\n" (#include) "#include" (string_literal) ""example.c"" (") """ (string...
10
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 24.0, "nodes": 6, "errors": 0, "source_hash": "6f445d6451fbc57480714a06eaf3938d1db1dc7a38a3f5d21ed5ee8759d309c8", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define BACKGR...
1,819
c
//===- DIALineNumber.h - DIA implementation of IPDBLineNumber ---*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
36.91
34
(translation_unit) "//===- DIALineNumber.h - DIA implementation of IPDBLineNumber ---*- C++ -*-===//\n//\n// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.\n// See https://llvm.org/LICENSE.txt for license information.\n// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception\n//\n//===-...
191
6
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 36.91, "nodes": 104, "errors": 0, "source_hash": "3cbceec2d08f19db4a38ed9ec7303a087b1b4c590105ce1cd3cc37824487e141", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,820
c
#ifndef GAMMA_WIN32_D3DUTILS_H #define GAMMA_WIN32_D3DUTILS_H #include "../Gamma.h" #include "../Window/Window.h" #include <Windows.h> #include <string> namespace Gamma { namespace Win32 { GAMMA_API HWND GetWindowHandle(SDL_Window* window); GAMMA_API HWND GetWindowHandle(Window* window); GAMMA_API std::str...
28.29
14
(translation_unit) "#ifndef GAMMA_WIN32_D3DUTILS_H\n#define GAMMA_WIN32_D3DUTILS_H\n\n#include "../Gamma.h"\n#include "../Window/Window.h"\n\n#include <Windows.h>\n\n#include <string>\n\nnamespace Gamma {\n\n namespace Win32 {\n\n GAMMA_API HWND GetWindowHandle(SDL_Window* window);\n GAMMA_API HWND GetWindowHandle(Wi...
92
4
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 28.29, "nodes": 62, "errors": 0, "source_hash": "e30fe28c281449ce703b7bb75b5fd2d2e64eb71212492e5e6c961b138c0af766", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,821
c
/** * \file * * \brief Empty user application template * */ /** * \mainpage User Application template doxygen documentation * * \par Empty user application template * * This is a bare minimum user application template. * * For documentation of the board, go \ref group_common_boards "here" for a link * to ...
25.79
48
(translation_unit) "/**\n * \file\n *\n * \brief Empty user application template\n *\n */\n\n/**\n * \mainpage User Application template doxygen documentation\n *\n * \par Empty user application template\n *\n * This is a bare minimum user application template.\n *\n * For documentation of the board, go \ref group_comm...
85
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 25.79, "nodes": 38, "errors": 0, "source_hash": "ea4adfbf960b59009c2b7e77ad2420f6fab4996ef7883d3d22c85007740e51e9", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
1,822
c
/* // Bibliotece de matrizes 2D alocadas dinamicamente, versao 1 // Sistemas Operativos, DEI/IST/ULisboa 2017-18 */ #ifndef MATRIX_2D_H #define MATRIX_2D_H typedef struct int_matrix_2d { int n_l; int n_c; double *data; } DoubleMatrix2D; DoubleMatrix2D* dm2dNew(int lines, int columns); void d...
41.27
22
(translation_unit) "/*\n// Bibliotece de matrizes 2D alocadas dinamicamente, versao 1\n// Sistemas Operativos, DEI/IST/ULisboa 2017-18\n*/\n\n#ifndef MATRIX_2D_H\n#define MATRIX_2D_H\n\ntypedef struct int_matrix_2d {\n int n_l;\n int n_c;\n double *data;\n} DoubleMatrix2D;\n\nDoubleMatrix2D* dm2dNew(int line...
205
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 41.27, "nodes": 153, "errors": 0, "source_hash": "3633b88a6b4aa3c302550d07b3dc029b40f43e0556d656dc7404b26e82142173", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,823
c
#pragma once #include <llvm/IR/LLVMContext.h> #include <vector> namespace ebc { class EmbeddedFile; } namespace mull { class Bitcode; class progress_counter; class Diagnostics; class LoadBitcodeFromBinaryTask { public: using In = std::vector<std::unique_ptr<ebc::EmbeddedFile>>; using Out = std::vector<std::un...
28.62
21
(translation_unit) "#pragma once\n\n#include <llvm/IR/LLVMContext.h>\n\n#include <vector>\n\nnamespace ebc {\nclass EmbeddedFile;\n}\n\nnamespace mull {\n\nclass Bitcode;\nclass progress_counter;\nclass Diagnostics;\n\nclass LoadBitcodeFromBinaryTask {\npublic:\n using In = std::vector<std::unique_ptr<ebc::EmbeddedFil...
177
9
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 28.62, "nodes": 105, "errors": 0, "source_hash": "0893251258ef30f5ce7ecebfc19c53efa44c76b5cad09ed05717991844799e21", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
1,824
c
//! \file //! Action class declaration #pragma once #include "Command.h" #include <string> #include <vector> //! Describes an action performable by an ActiveUnit class Action { public: Action() { } Action(int id, int len); unsigned int ID; std::string Name; //! Commands for performing this action std::vector<C...
21.35
20
(translation_unit) "//! \file\n//! Action class declaration\n#pragma once\n\n#include "Command.h"\n#include <string>\n#include <vector>\n\n//! Describes an action performable by an ActiveUnit\nclass Action\n{\npublic:\n Action() { }\n Action(int id, int len);\n\n unsigned int ID;\n std::string Name;\n //! Commands for ...
92
4
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 21.35, "nodes": 53, "errors": 0, "source_hash": "36916c5481462060cc838d9bc24d653e5521c7f35cb0bcad3f4522301c265ec1", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
1,825
c
#ifndef ObjectSpaceRender_included #define ObjectSpaceRender_included #pragma once #ifdef DEBUG class IObjectSpaceRender { public: virtual ~IObjectSpaceRender() {;} virtual void Copy (IObjectSpaceRender &_in) = 0; virtual void dbgRender() = 0; virtual void dbgAddSphere(const Fsphere &sphere, u32 col...
20.25
20
(translation_unit) "#ifndef ObjectSpaceRender_included \n#define ObjectSpaceRender_included \n#pragma once \n \n#ifdef DEBUG \n \nclass IObjectSpaceRender \n{ \npublic: \n virtual ~IObjectSpaceRender() {;} \n virtual void Copy (IObjectSpaceRender &_in) = 0; \n \n virtual void dbgRender() = 0; \n virtual void dbgAddSphe...
110
6
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 20.25, "nodes": 72, "errors": 0, "source_hash": "9a4b8d8f18e2648101f7d23a0b55a66d02daa5726c1cb24db853234c739aef5f", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,826
c
/***************************************************************************** * @file taskDataAcquisition.c * * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR ...
36.17
87
(translation_unit) "/*****************************************************************************\n * @file taskDataAcquisition.c\n *\n * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY\n * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE\n * IMPLIED WARRANTIES OF MERCHANTAB...
290
0
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 36.17, "nodes": 127, "errors": 0, "source_hash": "c1bc1de807601971c87fee8b356798d2e1934a6495eb0e54fef035bc1c8b754a", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
1,827
c
#include <stdio.h> #include <string.h> #include <stdlib.h> #include "common.h" #include "keymap.h" #include "platform.h" #include "table.h" #include "logic_store.h" #define key_table_set(n_, k_) \ do { \ i32 k = k_; \ table_set(keymap, (n_), &k); \ } while (0) extern struct logic_store* logic_store; void keym...
25.7
74
(translation_unit) "#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n\n#include "common.h"\n#include "keymap.h"\n#include "platform.h"\n#include "table.h"\n#include "logic_store.h"\n\n#define key_table_set(n_, k_) \\n do { \\n i32 k = k_; \\n table_set(keymap, (n_), &k); \\n } while (0)\n\nextern struct ...
773
8
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 25.7, "nodes": 460, "errors": 0, "source_hash": "6299ea401f2d7abec337a2cdc4e8e01546f3ded690100ecf07022fb9fadac67f", "categorized_nodes": 327}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
1,828
c
// // NormalActionCreator.h // Pods // // Created by jpmac on 2017/1/9. // // #import "ActionsCreatorFactory.h" @interface NormalActionCreator : ActionsCreatorFactory +(instancetype)get; /** * 不需要携带数据,不需要操作类型;只适用于一个tag中,单一的post操作 */ -(void)post:(NSString*)__tag; /** * 不需要携带数据,需要操作类型;适用于一个tag中,有2个以上的post操作 ...
20
31
(translation_unit) "//\n// NormalActionCreator.h\n// Pods\n//\n// Created by jpmac on 2017/1/9.\n//\n//\n\n#import "ActionsCreatorFactory.h"\n\n@interface NormalActionCreator : ActionsCreatorFactory\n\n\n+(instancetype)get;\n\n/**\n * 不需要携带数据,不需要操作类型;只适用于一个tag中,单一的post操作\n */\n-(void)post:(NSString*)__tag;\n\n/**\n ...
139
15
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 20.0, "nodes": 82, "errors": 0, "source_hash": "acfac31bb32f5d76fed2eead2fa804ede9e8155a62d774e5797297eb6db25343", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
1,829
c
#pragma once #include <network/gameserver/service_base.hpp> namespace CytxGame { using namespace cytx; struct battle_server_info { int update_time = 1000; bool use_custom_delta = false; float custom_delta = 0.02f; META(update_time, use_custom_delta, custom_delta); }; ...
26.92
24
(translation_unit) "#pragma once\n#include <network/gameserver/service_base.hpp>\n\nnamespace CytxGame\n{\n using namespace cytx;\n\n struct battle_server_info\n {\n int update_time = 1000;\n bool use_custom_delta = false;\n float custom_delta = 0.02f;\n META(update_time, use_custom...
146
8
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 26.92, "nodes": 80, "errors": 0, "source_hash": "88a876f623ecb3cceab3fbd3d2a39467b0d4d310cef151830357bd9265ce5a3f", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
1,830
c
#pragma once #include "ofEvent.h" #include "ofEventUtils.h" #include "ofxLiquidEvent.h" // LambdaEvent basically just merges ofEvent and ofxLiquidEvent into one, so people // can use their preferred method (lambda or instance/method listener) to hook into the event template<typename Type> class LambdaEvent : public o...
37.26
131
(translation_unit) "#pragma once\n\n#include "ofEvent.h"\n#include "ofEventUtils.h"\n#include "ofxLiquidEvent.h"\n\n// LambdaEvent basically just merges ofEvent and ofxLiquidEvent into one, so people\n// can use their preferred method (lambda or instance/method listener) to hook into the event\ntemplate<typename Type>\...
1,464
99
{"language": "c", "success": true, "metadata": {"lines": 131, "avg_line_length": 37.26, "nodes": 945, "errors": 0, "source_hash": "a35f053d157ed3af2dc9f33e85ae305df818a46d877abc6d84992d52dced413e", "categorized_nodes": 628}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
1,831
c
// // CustomButton.h // ParentChildEducation // // Created by zlan.zhang on 15/5/15. // Copyright (c) 2015年 <EMAIL>. All rights reserved. // #import <UIKit/UIKit.h> @interface CustomButton : UIButton @property (nonatomic, strong) id customInfo; @end
22.09
11
(translation_unit) "//\n// CustomButton.h\n// ParentChildEducation\n//\n// Created by zlan.zhang on 15/5/15.\n// Copyright (c) 2015年 <EMAIL>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface CustomButton : UIButton\n\n@property (nonatomic, strong) id customInfo;\n\n@end\n" (comment) "//" (comme...
34
6
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 22.09, "nodes": 21, "errors": 0, "source_hash": "cc477efd12c985032372e4ee745ff1ef3cf4a46d7a5cbcad92e8a167d4d9e4ff", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport <UI...
1,832
c
// File: /std/prop_logic.c // Purpose: generic heirachic property setting mechanism // History: // 92-05-01 Buddha@TMI-2 Written for object properties // 93-03-17 Pallando@Tabor Cleaned up code and modularised. // 93-06-08 Pallando@Nightmare Used for material properties static nomask mix...
26.02
45
(translation_unit) "// File: /std/prop_logic.c\n// Purpose: generic heirachic property setting mechanism\n// History:\n// 92-05-01 Buddha@TMI-2 Written for object properties\n// 93-03-17 Pallando@Tabor Cleaned up code and modularised.\n// 93-06-08 Pallando@Nightmare Used for material prop...
429
5
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 26.02, "nodes": 246, "errors": 0, "source_hash": "e42f3567a4ff93ffbc504e35dd986dc9dd39ba71340a0c9443b2722491ad1356", "categorized_nodes": 199}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "...
1,833
c
#pragma once #include <gtest/gtest.h> #include "test_defs.h" #include "auxl/metrics.h" TEST(auxl, metrics_register_get_set) { swm::util::Metrics metrics; ASSERT_NO_THROW(metrics.register_double_value(32, "double")); ASSERT_NO_THROW(metrics.update_double_value(32, 2.0)); ASSERT_EQ(metrics.double_value(32), 2...
36.26
103
(translation_unit) "#pragma once\n\n#include <gtest/gtest.h>\n\n#include "test_defs.h"\n#include "auxl/metrics.h"\n\nTEST(auxl, metrics_register_get_set) {\n swm::util::Metrics metrics;\n ASSERT_NO_THROW(metrics.register_double_value(32, "double"));\n ASSERT_NO_THROW(metrics.update_double_value(32, 2.0));\n ASSERT_...
1,563
37
{"language": "c", "success": true, "metadata": {"lines": 103, "avg_line_length": 36.26, "nodes": 833, "errors": 0, "source_hash": "7eb090c4b9d19e94c441c7a913a3cb38a3d667071176d942bf0ee0d77ac652da", "categorized_nodes": 627}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
1,834
c
/* * inspector.h * * Created on: 29. 3. 2021 * Author: ondra */ #ifndef SRC_DOCDB_SRC_DOCDBLIB_INSPECTOR_H_ #define SRC_DOCDB_SRC_DOCDBLIB_INSPECTOR_H_ #include <map> #include "db.h" namespace docdb { class InspectorServer; ///Inspects database using web interface /** It is hard to inspect running da...
32.13
223
(translation_unit) "/*\n * inspector.h\n *\n * Created on: 29. 3. 2021\n * Author: ondra\n */\n\n#ifndef SRC_DOCDB_SRC_DOCDBLIB_INSPECTOR_H_\n#define SRC_DOCDB_SRC_DOCDBLIB_INSPECTOR_H_\n#include <map>\n\n#include "db.h"\n\nnamespace docdb {\n\n\n\nclass InspectorServer;\n\n\n///Inspects database using web interf...
1,862
114
{"language": "c", "success": true, "metadata": {"lines": 223, "avg_line_length": 32.13, "nodes": 1075, "errors": 0, "source_hash": "65a935369f3a39d114e7c2915f61257aafb130972a11fe46b4b009c9f6d0fbb2", "categorized_nodes": 777}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
1,835
c
// // ChooseCell.h // OptionalShares // // Created by mac on 16/2/8. // Copyright © 2016年 xjw. All rights reserved. // #import <UIKit/UIKit.h> @class ChooseModel; @interface ChooseCell : UITableViewCell @property (assign, nonatomic) BOOL isChoose; @property (assign, nonatomic) BOOL isRound; @property (assign, no...
33.67
21
(translation_unit) "//\n// ChooseCell.h\n// OptionalShares\n//\n// Created by mac on 16/2/8.\n// Copyright © 2016年 xjw. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@class ChooseModel;\n@interface ChooseCell : UITableViewCell\n\n@property (assign, nonatomic) BOOL isChoose;\n@property (assign, nonatomic) B...
215
39
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 33.67, "nodes": 160, "errors": 0, "source_hash": "a1505664628457419875b7c6ea32d9e7e4749fc0b804f633c530064ebae2efde", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UI...
1,836
c
#include "wntr_delay.h" void wntr_delay_us(uint32_t microseconds) { (void)(microseconds); }
45
2
(translation_unit) "#include "wntr_delay.h"\n\nvoid wntr_delay_us(uint32_t microseconds) { (void)(microseconds); }\n" (preproc_include) "#include "wntr_delay.h"\n" (#include) "#include" (string_literal) ""wntr_delay.h"" (") """ (string_content) "wntr_delay.h" (") """ (function_definition) ...
31
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 45.0, "nodes": 16, "errors": 0, "source_hash": "0575aba2ac877992abe020e90395d9307d8c74fbd68b48fe450994abbb43d520", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
1,837
c
/* * * $Header: /disc9/sniff/repository/BNRProlog/xsource/RCS/ProWindows.h,v 1.1 1995/09/22 11:27:33 harrisja Exp $ * * $Log: ProWindows.h,v $ * Revision 1.1 1995/09/22 11:27:33 harrisja * Initial version. * * */ #ifndef _H_ProWindows #define _H_ProWindows #include "ProMenus.h" #include "ProText.h" /* Windo...
30.33
84
(translation_unit) "/*\n*\n* $Header: /disc9/sniff/repository/BNRProlog/xsource/RCS/ProWindows.h,v 1.1 1995/09/22 11:27:33 harrisja Exp $\n*\n* $Log: ProWindows.h,v $\n * Revision 1.1 1995/09/22 11:27:33 harrisja\n * Initial version.\n *\n*\n*/\n\n#ifndef _H_ProWindows\n#define _H_ProWindows\n\n#include "ProMenus....
434
0
{"language": "c", "success": true, "metadata": {"lines": 84, "avg_line_length": 30.33, "nodes": 312, "errors": 0, "source_hash": "417d1c2bfbc1172b541bd938d465fb86863342cee963b12a65f3d6a3ba93eb00", "categorized_nodes": 242}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,838
c
/* $Id: DrvAudioVRDE.h $ */ /** @file * VirtualBox driver interface to VRDE backend. */ /* * Copyright (C) 2014-2018 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * you can redistribute it and/or modif...
37.37
51
(translation_unit) "/* $Id: DrvAudioVRDE.h $ */\n/** @file\n * VirtualBox driver interface to VRDE backend.\n */\n\n/*\n * Copyright (C) 2014-2018 Oracle Corporation\n *\n * This file is part of VirtualBox Open Source Edition (OSE), as\n * available from http://www.virtualbox.org. This file is free software;\n * you ca...
312
3
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 37.37, "nodes": 207, "errors": 0, "source_hash": "123cac6f621638f04675474f9f4618b8e8e24cc4276ca1d76c071538c37c619b", "categorized_nodes": 141}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,839
c
/* * namedb.c -- common namedb operations. * * Copyright (c) 2001-2020, NLnet Labs. All rights reserved. * * See LICENSE for the license. * */ /* incomplete implementation of namedb used for testing */ #include "config.h" #include <assert.h> #include <ctype.h> #include <limits.h> #include <string.h> #include...
29.09
269
(translation_unit) "/*\n * namedb.c -- common namedb operations.\n *\n * Copyright (c) 2001-2020, NLnet Labs. All rights reserved.\n *\n * See LICENSE for the license.\n *\n */\n\n/* incomplete implementation of namedb used for testing */\n\n#include "config.h"\n\n#include <assert.h>\n#include <ctype.h>\n#include <limi...
2,319
3
{"language": "c", "success": true, "metadata": {"lines": 269, "avg_line_length": 29.09, "nodes": 1496, "errors": 0, "source_hash": "1be007177c62da7c590ec25f27c45a2cb237748a1f07076a5fd2b99bfc35eb3c", "categorized_nodes": 1036}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
1,840
c
// // CustomFlowLayoutCell.h // DemoCollection // // Created by 许龙 on 16/4/28. // Copyright © 2016年 许龙. All rights reserved. // #import <UIKit/UIKit.h> @interface CustomFlowLayoutCell : UICollectionViewCell @property (nonatomic, weak ) IBOutlet UIImageView *contentImageView;/**< 要显示的图片 */ @end
26.27
11
(translation_unit) "//\n// CustomFlowLayoutCell.h\n// DemoCollection\n//\n// Created by 许龙 on 16/4/28.\n// Copyright © 2016年 许龙. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface CustomFlowLayoutCell : UICollectionViewCell\n\n@property (nonatomic, weak ) IBOutlet UIImageView *contentImageView;/**< ...
39
7
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 26.27, "nodes": 25, "errors": 0, "source_hash": "90d747292d699ac511617a676bbc024f453c6d406e7e22d622ceeff6d6cdc4d7", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Kit/UIKit...
1,841
c
/* Aranea * Copyright (c) 2011-2012, <NAME> * See LICENSE file for copyright and license details. */ #ifndef ARANEA_CLIENT_H_ #define ARANEA_CLIENT_H_ #include <aranea/types.h> /** Allocate memory for a client. */ struct client_t *client_new(); /** Reset status of the client object to reuse it for another conne...
29.57
30
(translation_unit) "/* Aranea\n * Copyright (c) 2011-2012, <NAME>\n * See LICENSE file for copyright and license details.\n */\n\n#ifndef ARANEA_CLIENT_H_\n#define ARANEA_CLIENT_H_\n\n#include <aranea/types.h>\n\n/** Allocate memory for a client.\n */\nstruct client_t *client_new();\n\n/** Reset status of the client ob...
133
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 29.57, "nodes": 100, "errors": 0, "source_hash": "4b22bbe9accca5c448daa9b273ca4b6a8a823c4f9cd312a3a7479f5eae872636", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,842
c
/* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. */ #pragma once typedef struct { int hours, minutes; float seconds; } HoursMinutesSeconds; typedef struct { HoursMinutesSeconds utc_time; float latitude; // Degrees North. Rang...
30.44
36
(translation_unit) "/* \nCopyright (c) Microsoft Corporation. All rights reserved. \nLicensed under the MIT License. \n*/ \n \n#pragma once \n \n \ntypedef struct \n{ \n int hours, minutes; \n float seconds; \n} HoursMinutesSeconds; \n \n \ntypedef struct \n{ \n HoursMinutesSeconds utc_time; \n float latitu...
104
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 30.44, "nodes": 65, "errors": 0, "source_hash": "97f5751a85fd5ac3a01d609493902aab41c5907d11af768d9d2962ff1654cd81", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
1,843
c
#ifndef __SCOUT__TCP__SERVER__H__ #define __SCOUT__TCP__SERVER__H__ /***********************/ /** Network Configs **/ /***********************/ #define SCOUT_PORT 0x2562 #define SCOUT_LOADER_PORT 0x2561 #define SCOUT_LISTEN_BACKLOG 5 #define SCOUT_TCP_MAX_MESSAGE 0x1000 #include...
23.83
104
(translation_unit) "#ifndef __SCOUT__TCP__SERVER__H__ \n#define __SCOUT__TCP__SERVER__H__ \n \n/***********************/ \n/** Network Configs **/ \n/***********************/ \n \n#define SCOUT_PORT 0x2562 \n#define SCOUT_LOADER_PORT 0x2561 \n#define SCOUT_LISTEN_BACKLOG 5 \n#define SCOUT_TCP_MA...
193
0
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 23.83, "nodes": 141, "errors": 0, "source_hash": "b81045bdf9a2eb9841ebfaa79fb897dc738e2767e80427b85777f4141d4fe2bc", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,844
c
// // PhotonChatTransmitModel.h // PhotonIM // // Created by Bruce on 2019/7/31. // Copyright © 2019 Bruce. All rights reserved. // #import "PhotonBaseModel.h" #import "PhotonMessageCenter.h" NS_ASSUME_NONNULL_BEGIN @interface PhotonChatTransmitModel : PhotonBaseModel @end NS_ASSUME_NONNULL_END
22.08
13
(translation_unit) "//\n// PhotonChatTransmitModel.h\n// PhotonIM\n//\n// Created by Bruce on 2019/7/31.\n// Copyright © 2019 Bruce. All rights reserved.\n//\n\n#import "PhotonBaseModel.h"\n#import "PhotonMessageCenter.h"\nNS_ASSUME_NONNULL_BEGIN\n\n@interface PhotonChatTransmitModel : PhotonBaseModel\n\n@end\n\nNS...
30
4
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 22.08, "nodes": 16, "errors": 0, "source_hash": "ae8b6ea59a7cf3ee26e257081680b60888bccc7dc46e53f0deb4c244be81cd18", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"...
1,845
c
/* $Id$ */ /* * Copyright (c) 2019 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE A...
28.56
156
(translation_unit) "/* $Id$ */\n/*\n * Copyright (c) 2019 <NAME> <<EMAIL>>\n *\n * Permission to use, copy, modify, and distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE I...
1,241
0
{"language": "c", "success": true, "metadata": {"lines": 156, "avg_line_length": 28.56, "nodes": 716, "errors": 0, "source_hash": "613c4f5670747d7a093b3918d05b6b37d8b64d245fe0f3b4e72cba3c762776e1", "categorized_nodes": 552}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
1,846
c
/* Copyright (c) 2017-2019 ARM Limited * * SPDX-License-Identifier: Apache-2.0 * * 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 * *...
31.4
188
(translation_unit) "/* Copyright (c) 2017-2019 ARM Limited\n *\n * SPDX-License-Identifier: Apache-2.0\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.or...
1,084
0
{"language": "c", "success": true, "metadata": {"lines": 188, "avg_line_length": 31.4, "nodes": 706, "errors": 0, "source_hash": "1a2d88f046a476b8ce0270dda32e177c5d8807495c2bad0087e7fefc636154e4", "categorized_nodes": 372}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,847
c
#pragma once #include <pybind11/pybind11.h> #include <isce3/cuda/core/Device.h> void addbinding(pybind11::class_<isce3::cuda::core::Device>&);
34.75
4
(translation_unit) "#pragma once\n\n#include <pybind11/pybind11.h>\n\n#include <isce3/cuda/core/Device.h>\n\nvoid addbinding(pybind11::class_<isce3::cuda::core::Device>&);\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <pybind11/pybind11.h>\...
38
2
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 34.75, "nodes": 25, "errors": 0, "source_hash": "c9a4b2fcfd6177c299e8069c3680f21a9e981bbb57f6957cdf8c113535fb2ea3", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
1,848
c
// // SkyS3ManifestData.h // TestS3 // // Created by <NAME> on 12/7/14. // Copyright (c) 2014 justadreamer. All rights reserved. // #import <Foundation/Foundation.h> @interface SkyS3ResourceData : NSObject @property (nonatomic,strong) NSString *name; @property (nonatomic,strong) NSString *etag; @property (nonatomi...
35.82
17
(ERROR) "//\n// SkyS3ManifestData.h\n// TestS3\n//\n// Created by <NAME> on 12/7/14.\n// Copyright (c) 2014 justadreamer. All rights reserved.\n//\n#import <Foundation/Foundation.h>\n\n@interface SkyS3ResourceData : NSObject\n@property (nonatomic,strong) NSString *name;\n@property (nonatomic,strong) NSString *etag;...
134
24
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 35.82, "nodes": 92, "errors": 0, "source_hash": "7a047f030492590baad759ee9956ec488b98c3620b37dfeb678b5462b4b595dd", "categorized_nodes": 49}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// SkyS3ManifestData.h...
1,849
c
/* Copyright (c) 2013 <NAME> Licensed under the Apache License, Version 2.0. See the LICENSE text file for details. */ #pragma once namespace Mago { class IRegisterSet; struct Reg { const wchar_t* Name; uint16_t FullReg; uint8_t Length; ...
26.02
124
(translation_unit) "/* \n Copyright (c) 2013 <NAME> \n \n Licensed under the Apache License, Version 2.0. \n See the LICENSE text file for details. \n*/ \n \n#pragma once \n \nnamespace Mago \n{ \n class IRegisterSet; \n \n struct Reg \n { \n const wchar_t* Name; \n uint16_t FullReg...
589
28
{"language": "c", "success": true, "metadata": {"lines": 124, "avg_line_length": 26.02, "nodes": 393, "errors": 0, "source_hash": "219725e918a680d5a85b29ea821ba057f44d828e3598f76cfc48d02d8c458212", "categorized_nodes": 243}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
1,850
c
/** ****************************************************************************** * Xenia : Xbox 360 Emulator Research Project * ****************************************************************************** * Copyright 2013 <NAME>. All rights reserved. *...
29.21
34
(translation_unit) "/**\n ******************************************************************************\n * Xenia : Xbox 360 Emulator Research Project *\n ******************************************************************************\n * Copyright 2013 <NAME>. All rights reserved. ...
154
3
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 29.21, "nodes": 105, "errors": 0, "source_hash": "ee3c86d453149690e7289b9abe3e8cc44158343f2c375cbe62d2ef6a3ff5978a", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,851
c
// -*- c++ -*- /* * Copyright 2018-present ifm electronic, gmbh * Copyright 2017 Love Park Robotics, LLC * SPDX-License-Identifier: Apache-2.0 */ #ifndef __IFM3D_TOOLS_CP_APP_H__ #define __IFM3D_TOOLS_CP_APP_H__ #include <string> #include <ifm3d/tools/cmdline_app.h> namespace ifm3d { /** * Concrete implemen...
24.96
24
(translation_unit) "// -*- c++ -*-\n/*\n * Copyright 2018-present ifm electronic, gmbh\n * Copyright 2017 Love Park Robotics, LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n#ifndef __IFM3D_TOOLS_CP_APP_H__\n#define __IFM3D_TOOLS_CP_APP_H__\n\n#include <string>\n#include <ifm3d/tools/cmdline_app.h>\n\nnamespace ifm...
90
5
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 24.96, "nodes": 49, "errors": 0, "source_hash": "59db1f4239fea34a55e6fe008f8952ed1102700ec24e2bd14d01dba468c09a9f", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,852
c
struct cmd_table cmd_2nd_tbl[]; struct cmd_table cmd_3rd_tbl[]; #define CMD_TBL_STATUS CMD_TBL_ENTRY( \ "status", 6, cmd_status, \ "status - status message", \ cmd_2nd_tbl, cmd_main_tbl \ ), #define CMD_TBL_INFO CMD_TBL_ENTRY( \ "info", 4, cmd_info, \ "info - Command i info", \ cmd_3rd_tbl, cmd_2nd_...
24.89
38
(translation_unit) "struct cmd_table cmd_2nd_tbl[];\nstruct cmd_table cmd_3rd_tbl[];\n\n#define CMD_TBL_STATUS CMD_TBL_ENTRY( \\n "status", 6, cmd_status, \\n "status - status message", \\n cmd_2nd_tbl, cmd_main_tbl \\n),\n\n#define CMD_TBL_INFO CMD_TBL_ENTRY( \\n "info", 4, cmd_info, \\n "info - Command i ...
183
2
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 24.89, "nodes": 134, "errors": 0, "source_hash": "132c2523becd601c75c9a869b3e01a1f8cac3df3515217db007be404f9351755", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "struct cm...
1,853
c
// // HMCacheManager+Number.h // HMCache // // Created by 李宪 on 21/1/2017. // Copyright © 2017 李宪. All rights reserved. // #import "HMCacheManager.h" @interface HMCacheManager (Number) /** * Boolean convenient methods. */ - (void)cacheBool:(BOOL)boolean forKey:(NSString *)key; - (void)cacheBool:(BOOL)boolean f...
36.76
45
(translation_unit) "//\n// HMCacheManager+Number.h\n// HMCache\n//\n// Created by 李宪 on 21/1/2017.\n// Copyright © 2017 李宪. All rights reserved.\n//\n\n#import "HMCacheManager.h"\n\n@interface HMCacheManager (Number)\n\n/**\n * Boolean convenient methods.\n */\n- (void)cacheBool:(BOOL)boolean forKey:(NSString *)key...
580
59
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 36.76, "nodes": 357, "errors": 0, "source_hash": "0486a9c57f1f19848fe5c071b594a847949c7cee05adfbd50e9434fd472c8791", "categorized_nodes": 201}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "HMCache...
1,854
c
#include <std.h> #include "../farm.h" inherit WORKROOM; void create(){ ::create(); set_exits(([ "west" : ROOMDIR"work4", "north" : ROOMDIR"work6", ])); }
17.33
9
(translation_unit) "#include <std.h>\n#include "../farm.h"\ninherit WORKROOM;\n void create(){ \n ::create();\n set_exits(([ "west" : ROOMDIR"work4",\n "north" : ROOMDIR"work6",\n ]));\n}" (preproc_include) "#include <std.h>\n" (#include) "#include" (system_lib_string) "<std.h>" (preproc_include) "#inc...
73
3
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 17.33, "nodes": 32, "errors": 0, "source_hash": "452aa3180b01c22cfe32736864ab619d42f2cf67b991bc0272fbeeb50f2a8d38", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
1,855
c
#include<stdio.h> #include<conio.h> /* This function used to find mininum of given number */ int min(int x, int y) { return (x<=y)? x : y; } /* Returns index of x if present, else returns -1 */ int fibonaccianSearch(int arr[], int x, int n) { /* Here fibonacci numbers are initializing*/ int fbK2 ...
25.72
74
(translation_unit) "#include<stdio.h>\n#include<conio.h>\n /* This function used to find mininum of given number */\n int min(int x, int y)\n {\n return (x<=y)? x : y;\n }\n /* Returns index of x if present, else returns -1 */\n int fibonaccianSearch(int arr[], int x, int n)\n {\n /* Here fibonacci numbers are...
487
0
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 25.72, "nodes": 286, "errors": 0, "source_hash": "7baec0aa3327c5ec82353a5656f94a895dffdee73d3d4439c1329a8557ec1e36", "categorized_nodes": 205}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,856
c
#ifndef GXX_EVENT_FLAG_H #define GXX_EVENT_FLAG_H #include <gxx/event/delegate.h> namespace gxx { namespace event { /*class flag { public: virtual void set() = 0; virtual void clr() = 0; virtual bool setted() = 0; };*/ class action_flag { bool f_en = false; bool d_en; gxx::action act; ...
15.13
45
(translation_unit) "#ifndef GXX_EVENT_FLAG_H\n#define GXX_EVENT_FLAG_H\n\n#include <gxx/event/delegate.h>\n\nnamespace gxx {\n namespace event {\n /*class flag {\n public:\n virtual void set() = 0;\n virtual void clr() = 0;\n virtual bool setted() = 0;\n };*/\n\n class action_flag {\n bool f_en = false;\n ...
218
5
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 15.13, "nodes": 126, "errors": 0, "source_hash": "9a1294e5143a788282182791cdbd37124905a03cf6d9d0be341cd781285cb115", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,857
c
#include "graph.h" #include "Heap.h" #include "stack.h" #include <limits.h> #include <stdio.h> #include <stdlib.h> //returns a stack data type with top element being next node to travel from src to reach dest most effectively Stack dijikstra(struct Graph *graph, int src, int dest) { //Signifies the num...
32.55
112
(translation_unit) "#include "graph.h" \n#include "Heap.h" \n#include "stack.h" \n#include <limits.h> \n#include <stdio.h> \n#include <stdlib.h> \n \n//returns a stack data type with top element being next node to travel from src to reach dest most effectively \nStack dijikstra(struct Graph *graph, int src, int dest) \...
499
0
{"language": "c", "success": true, "metadata": {"lines": 112, "avg_line_length": 32.55, "nodes": 293, "errors": 0, "source_hash": "5fb96510bbdd49ba44f0d15dc8f3014e1616fd771fb9ce49b82c932e61e74595", "categorized_nodes": 222}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
1,858
c
// // Created by martijn on 1/20/16. // #ifndef SWIRLI_WASHINGMACHINE_H #define SWIRLI_WASHINGMACHINE_H #include "Door.h" #include "HeatingUnit.h" #include "Motor.h" #include "Pump.h" #include "SignalLed.h" #include "SoapDispenser.h" #include "TemperatureSensor.h" #include "WaterLevelSensor.h" #include "WaterValve.h"...
27.59
123
(ERROR) "//\n// Created by martijn on 1/20/16.\n//\n\n#ifndef SWIRLI_WASHINGMACHINE_H\n#define SWIRLI_WASHINGMACHINE_H\n\n#include "Door.h"\n#include "HeatingUnit.h"\n#include "Motor.h"\n#include "Pump.h"\n#include "SignalLed.h"\n#include "SoapDispenser.h"\n#include "TemperatureSensor.h"\n#include "WaterLevelSensor.h"\...
389
11
{"language": "c", "success": true, "metadata": {"lines": 123, "avg_line_length": 27.59, "nodes": 171, "errors": 0, "source_hash": "bb81e9035727e9f9def16e7907e50a456f919171d010dc0030ac04f70c3a6f96", "categorized_nodes": 153}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// Created by martij...
1,859
c
#include "ravi_profile.h" #include <lstate.h> #include <stdint.h> #if RAVI_BYTECODE_PROFILING_ENABLED #ifdef _WIN32 #include <windows.h> /* The number of nanoseconds in one second. */ #define UV__NANOSEC 1000000000 /* Interval (in seconds) of the high-resolution clock. */ static double hrtime_interval_ = 0; void...
33
63
(translation_unit) "#include "ravi_profile.h"\n\n#include <lstate.h>\n\n#include <stdint.h>\n\n#if RAVI_BYTECODE_PROFILING_ENABLED\n#ifdef _WIN32\n\n#include <windows.h>\n\n/* The number of nanoseconds in one second. */\n#define UV__NANOSEC 1000000000\n\n/* Interval (in seconds) of the high-resolution clock. */\nstatic...
520
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 33.0, "nodes": 332, "errors": 0, "source_hash": "4ba6c03730d2199260caa1bd5d2095a640c5d19adef62b081879e72a47593908", "categorized_nodes": 227}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
1,860
c
#ifndef __SHADERLOADER__ #define __SHADERLOADER__ #include <glad/glad.h> #include <string> #include <vector> class ShaderLoader{ public: ShaderLoader(); ShaderLoader(std::string shaderFolder); ~ShaderLoader(); void addShaderPath(std::string newPath) { shaderPaths.push_back(newPath); } std::vec...
32.13
31
(translation_unit) "#ifndef __SHADERLOADER__\n#define __SHADERLOADER__\n\n#include <glad/glad.h>\n\n#include <string>\n#include <vector>\n\nclass ShaderLoader{\npublic:\n ShaderLoader();\n ShaderLoader(std::string shaderFolder);\n ~ShaderLoader();\n\n void addShaderPath(std::string newPath) { shaderPaths.p...
328
10
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 32.13, "nodes": 186, "errors": 0, "source_hash": "3029d06acb32ffc88edb7da1d53d8fbcb3e50705ca43b713c3f9919327e6d28a", "categorized_nodes": 133}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,861
c
// Usage : ./client (server's ip addr) (server's port) // Example : ./client 192.168.56.101 9999 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <unistd.h> // size of buffer for receiving data packets #de...
26.73
60
(translation_unit) "// Usage : ./client (server's ip addr) (server's port)\n// Example : ./client 192.168.56.101 9999\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <sys/types.h>\n#include <sys/socket.h>\n#include <netinet/in.h>\n#include <arpa/inet.h>\n#include <unistd.h>\n\n// size of buffe...
393
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 26.73, "nodes": 219, "errors": 0, "source_hash": "fd977f4438fe7c4142fa5204d1758b13652cb2bdeeb05ff30b91de883746a4e4", "categorized_nodes": 167}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,862
c
/* * 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, or (at your option) any later version. * * This program is distributed in the hope that it will be use...
25.15
60
(translation_unit) "/*\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License as\n * published by the Free Software Foundation; either version 2 of\n * the License, or (at your option) any later version.\n *\n * This program is distributed in th...
269
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 25.15, "nodes": 171, "errors": 0, "source_hash": "0da6888323c3371edf45119a96912e6bf6c5ace3780610b914a87183532d75b3", "categorized_nodes": 109}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,863
c
#ifndef XV6_WRAPPER_H #define XV6_WRAPPER_H #include "types.h" #include "user.h" #include <stdarg.h> #ifndef NO_BOOL typedef unsigned char bool; #define true ((unsigned char)1) #define false ((unsigned char)0) #endif typedef char int8_t; typedef unsigned char uint8_t; typedef short int16_t; typedef unsigned short u...
26.74
70
(translation_unit) "#ifndef XV6_WRAPPER_H\n#define XV6_WRAPPER_H\n\n#include "types.h"\n#include "user.h"\n#include <stdarg.h>\n\n#ifndef NO_BOOL\ntypedef unsigned char bool;\n#define true ((unsigned char)1)\n#define false ((unsigned char)0)\n#endif\n\ntypedef char int8_t;\ntypedef unsigned char uint8_t;\ntypedef shor...
723
0
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 26.74, "nodes": 493, "errors": 0, "source_hash": "5324cd13c608af40504fdab07a77f45d0483485087ab1c7b22a2fea16c64b6e5", "categorized_nodes": 314}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,864
c
/* * (C) Copyright 1996- ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an interg...
40.15
33
(translation_unit) "/*\n * (C) Copyright 1996- ECMWF.\n *\n * This software is licensed under the terms of the Apache Licence Version 2.0\n * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.\n * In applying this licence, ECMWF does not waive the privileges and immunities\n * granted to it by virtue ...
182
12
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 40.15, "nodes": 89, "errors": 0, "source_hash": "e7f50376c329cee9deb68646509449ee239cb9bcda7dcf191e6f3ab09f680493", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,865
c
// // PPCSettingsViewController.h // Peercoin Wallet // // Created by <NAME> on 15/02/2018. // Copyright © 2018 <NAME>. All rights reserved. // #import "PPCViewController.h" @interface PPCSettingsViewController : PPCViewController @end
23
10
(translation_unit) "//\n// PPCSettingsViewController.h\n// Peercoin Wallet\n//\n// Created by <NAME> on 15/02/2018.\n// Copyright © 2018 <NAME>. All rights reserved.\n//\n\n#import "PPCViewController.h"\n\n@interface PPCSettingsViewController : PPCViewController\n\n@end\n" (comment) "//" (comment) "// PPCSetti...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 23.0, "nodes": 9, "errors": 0, "source_hash": "68ae4b39732b49595d61efc0e45b708de87a3a14a3d78993dad33fd72e99ecd6", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"PPC...
1,866
c
/* === This file is part of Calamares - <https://calamares.io> === * * SPDX-FileCopyrightText: 2014 <NAME> <<EMAIL>> * SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>> * SPDX-License-Identifier: GPL-3.0-or-later * * Calamares is Free Software: see the License-Identifier above. * */ #ifndef WELCOMEPAGE_H #...
29.12
65
(translation_unit) "/* === This file is part of Calamares - <https://calamares.io> ===\n *\n * SPDX-FileCopyrightText: 2014 <NAME> <<EMAIL>>\n * SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>\n * SPDX-License-Identifier: GPL-3.0-or-later\n *\n * Calamares is Free Software: see the License-Identifier above.\n *\n...
300
18
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 29.12, "nodes": 176, "errors": 0, "source_hash": "7e725fce37c95d0c887bb5182451c1a5194efe358da5a13ddf7f4465a9187f74", "categorized_nodes": 118}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef WELCOM...
1,867
c
#ifndef PHP_PORTABLE_H #define PHP_PORTABLE_H #if PHP_MAJOR_VERSION < 7 struct _zend_string { char *val; int len; int persistent; }; typedef struct _zend_string zend_string; #define RETURN_NEW_STR(s) RETURN_STRINGL(s->val,s->len,0); static zend_always_inline zend_string *zend_string_alloc(int len, int persis...
31.58
33
(translation_unit) "#ifndef PHP_PORTABLE_H\n#define PHP_PORTABLE_H\n\n#if PHP_MAJOR_VERSION < 7\n\nstruct _zend_string {\n char *val;\n int len;\n int persistent;\n};\ntypedef struct _zend_string zend_string;\n\n#define RETURN_NEW_STR(s) RETURN_STRINGL(s->val,s->len,0);\n\nstatic zend_always_inline zend_string *zen...
235
1
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 31.58, "nodes": 170, "errors": 0, "source_hash": "a3573bbebbd6d5dae0288806abc66b019c973bf47001c1a0f6c9871f89cdb9ca", "categorized_nodes": 107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,868
c
/* PR c/68833 */ /* { dg-do compile } */ /* { dg-options "-Werror=missing-format-attribute" } */ #include <stdarg.h> void foo (const char *fmt, ...) { va_list ap; va_start (ap, fmt); __builtin_vprintf (fmt, ap); /* { dg-error "candidate" "printf attribute warning" } */ va_end (ap); } /* { dg-prune-output "tr...
25.08
13
(translation_unit) "/* PR c/68833 */\n/* { dg-do compile } */\n/* { dg-options "-Werror=missing-format-attribute" } */\n\n#include <stdarg.h>\n\nvoid\nfoo (const char *fmt, ...)\n{\n va_list ap;\n va_start (ap, fmt);\n __builtin_vprintf (fmt, ap); /* { dg-error "candidate" "printf attribute warning" } */\n va_end (...
61
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 25.08, "nodes": 30, "errors": 0, "source_hash": "7ea8b837c8ba346178cd6cbdbcd6e93a4ec95c8eb6ba57879aec8be4c52b96a5", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
1,869
c
// // HYOpenURLService.h // HYOpenURLService // // Created by HansonYang on 16/12/30. // Copyright © 2016年 HansonYang. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> // 常用key #define Hanson_WebViewControler @"WebView" @interface HYOpenURLService : NSObject typedef id (^HYMa...
30
35
(translation_unit) "//\n// HYOpenURLService.h\n// HYOpenURLService\n//\n// Created by HansonYang on 16/12/30.\n// Copyright © 2016年 HansonYang. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n\n// 常用key\n#define Hanson_WebViewControler @"WebView"\n\n\n@interface HYOpenURLSe...
296
37
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 30.0, "nodes": 196, "errors": 0, "source_hash": "160e3ced7eb32d811bcd55b52f0e4c0e62afc7b45d987493a74799eeb7163bec", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <Fo...
1,870
c
#ifndef HAP_ACCESSORY_SET #define HAP_ACCESSORY_SET #include "hapDefines.h" #include "net/ConnectionInfo.h" #include <atomic> #include <cstdint> #include <mutex> #include <string> #include <vector> namespace hap { class AccessorySet { public: static AccessorySet& getInstance(); uint16_t accessoriesCount(); Acc...
24.68
28
(translation_unit) "#ifndef HAP_ACCESSORY_SET\n#define HAP_ACCESSORY_SET\n\n#include "hapDefines.h"\n#include "net/ConnectionInfo.h"\n\n#include <atomic>\n#include <cstdint>\n#include <mutex>\n#include <string>\n#include <vector>\n\nnamespace hap {\n\nclass AccessorySet {\npublic:\n static AccessorySet& getInstance();\...
194
9
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 24.68, "nodes": 115, "errors": 0, "source_hash": "96d56258012e4cbbb063b17828cefcf316e438ad75d7e0cfcae2764fe40bdfc6", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,871
c
#include <stdio.h> #define NDEBUG #include "dbg.h" #include "mazeGameStructs.h" #include "maze.h" #include "map.h" int main() { Cell cellArray[MAP_SIZE][MAP_SIZE]; Maze *maze = cellArray; generateMaze(maze); Position currentPosition; currentPosition.x = 0; currentPosition.y = 0; cha...
22.89
36
(translation_unit) "#include <stdio.h>\n\n#define NDEBUG\n\n#include "dbg.h"\n#include "mazeGameStructs.h"\n#include "maze.h"\n#include "map.h"\n\n\nint main()\n{\n Cell cellArray[MAP_SIZE][MAP_SIZE];\n Maze *maze = cellArray;\n generateMaze(maze);\n \n Position currentPosition;\n currentPosition.x = ...
223
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 22.89, "nodes": 131, "errors": 0, "source_hash": "03b91f49feb5820acee10e5d6d6b09ad573aa8ac3a9004e6439c286586f2fc9e", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
1,872
c
#pragma once #ifdef SAKURA_PLATAFORM_WINDOWS extern Sakura::Application* Sakura::CreateApplication(); int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE, PWSTR pCmdLine, int nCmdShow) { FILE* fp; AllocConsole(); freopen_s(&fp, "CONIN$", "r", stdin); freopen_s(&fp, "CONOUT$", "w", stdout); Sakura::Application* a...
26.57
14
(translation_unit) "#pragma once\n\n#ifdef SAKURA_PLATAFORM_WINDOWS\n\nextern Sakura::Application* Sakura::CreateApplication();\n\nint WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE, PWSTR pCmdLine, int nCmdShow)\n{\n FILE* fp;\n AllocConsole();\n freopen_s(&fp, "CONIN$", "r", stdin);\n freopen_s(&fp, "CONOUT$", "w", s...
146
4
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 26.57, "nodes": 82, "errors": 0, "source_hash": "7741d06da977ac1c090b6901d40ffa6636a0629f9f450febc953ae59f5b9eb46", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
1,873
c
#ifndef TIMER_H #define TIMER_H #include <timer_types.h> #define RDTSC(cpu_c) \ __asm__ volatile("xor %%eax,%%eax\n\t" \ "cpuid\n\t" \ "rdtsc\n\t" \ "movl %%eax, %0\n\t" \ "movl %%edx, %1\n\t" \ : "=r" ((cpu_c).int32.lo), ...
38.5
40
(translation_unit) "#ifndef TIMER_H\n#define TIMER_H\n\n#include <timer_types.h>\n\n#define RDTSC(cpu_c) \\n __asm__ volatile("xor %%eax,%%eax\n\t" \\n "cpuid\n\t" \\n "rdtsc\n\t" \\n "movl %%eax, %0\n\t" \\n "movl %%edx, %1\n\t" \\n ...
206
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 38.5, "nodes": 149, "errors": 0, "source_hash": "f3e1527a07b989061521c597134c3f81a11f0321973a4f82ad66e484f91e84eb", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,874
c
#pragma once class Static_Camera : public GV_Camera { public: Static_Camera(uint32_t _width, uint32_t _height, glm::vec3 _Distince); Static_Camera(uint32_t _width, uint32_t _height, glm::vec3 _Distince, GV_Obj* _Player); ~Static_Camera(); void SetUpCustomPosition(glm::vec3 _Pos); void SetUpCustomPosition(float _x...
27.59
17
(translation_unit) "#pragma once\nclass Static_Camera : public GV_Camera\n{\npublic:\n Static_Camera(uint32_t _width, uint32_t _height, glm::vec3 _Distince);\n Static_Camera(uint32_t _width, uint32_t _height, glm::vec3 _Distince, GV_Obj* _Player);\n ~Static_Camera();\n\n void SetUpCustomPosition(glm::vec3 _Pos);\n void...
162
11
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 27.59, "nodes": 103, "errors": 0, "source_hash": "e8182f4c4630513f8b69b047f461cfbbbae44b71fd8405971124a3104617da26", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
1,875
c
#pragma once #ifdef __cplusplus extern "C" { #endif #define PWM_NUM_CHANNELS 12 void Pwm_init(void); void Pwm_start(void); void Pwm_set(int channel, float value); void Pwm_set_raw(int channel, float red, float green); #ifdef __cplusplus } #endif
15.12
17
(translation_unit) "#pragma once \n \n#ifdef __cplusplus \nextern "C" \n{ \n#endif \n \n#define PWM_NUM_CHANNELS 12 \n \n void Pwm_init(void); \n void Pwm_start(void); \n void Pwm_set(int channel, float value); \n void Pwm_set_raw(int channel, float red, float green); \n \n#ifdef __cplusplus \n} \n#endif \n" (pre...
81
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 15.12, "nodes": 59, "errors": 0, "source_hash": "4539dac79edd97b638d726abe30e9200702d951e62bdb575d3d53cee7fbcf676", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
1,876
c
/* * <NAME> * * uuid.h * * A simple UUID implementation. It is important to note that this IS different than Windows' GUID implementation in * terms of byte order; uuids are in network-byte-order. The total number of bits is the same however, so the two types * CAN be converted; they'll just represent different ...
33.55
192
(translation_unit) "/*\n * <NAME>\n *\n * uuid.h\n *\n * A simple UUID implementation. It is important to note that this IS different than Windows' GUID implementation in\n * terms of byte order; uuids are in network-byte-order. The total number of bits is the same however, so the two types\n * CAN be converted; they'l...
1,433
74
{"language": "c", "success": true, "metadata": {"lines": 192, "avg_line_length": 33.55, "nodes": 852, "errors": 0, "source_hash": "7a8a411db726eb66a7e6fa6991dc5522b1581fe40c4595b5b5d98df6250c8215", "categorized_nodes": 563}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
1,877
c
#pragma once #include <EntityX.h> namespace Engine { class UserSystem : public System<UserSystem> { /*** Constants ***/ /*** Ctors ***/ public: UserSystem(EntityManager& es); ~UserSystem(); /*** Fields ***/ /*** Methods ***/ public: void Update(EntityManager& es, EventManager& events, TimeDelta dt)...
18.65
17
(translation_unit) "#pragma once\n\n#include <EntityX.h>\n\nnamespace Engine\n{\n class UserSystem : public System<UserSystem>\n {\n /*** Constants ***/\n /*** Ctors ***/\n public:\n UserSystem(EntityManager& es);\n ~UserSystem();\n\n /*** Fields ***/\n /*** Methods ***/\n public:\n void Update(EntityManager& es...
83
4
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 18.65, "nodes": 44, "errors": 0, "source_hash": "dd3cde209ce5ba45c49980439fa9fe951a11fc1ea7b1b14c54a4ecd33b9f387d", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
1,878
c
/* ---------- * pg_trace.h * * Definitions for the PostgreSQL tracing framework * * Copyright (c) 2006-2012, PostgreSQL Global Development Group * * src/include/pg_trace.h * ---------- */ #ifndef PG_TRACE_H #define PG_TRACE_H #include "utils/probes.h" /* pgrminclude ignore */ #endif /* PG_TRACE_H */
21.14
14
(translation_unit) "/* ----------\n * pg_trace.h\n *\n * Definitions for the PostgreSQL tracing framework\n *\n * Copyright (c) 2006-2012, PostgreSQL Global Development Group\n *\n * src/include/pg_trace.h\n * ----------\n */\n\n#ifndef PG_TRACE_H\n#define PG_TRACE_H\n\n#include "utils/probes.h" /* pgrminclude ignore *...
17
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 21.14, "nodes": 10, "errors": 0, "source_hash": "bd68f70c70451fbe8f439f1bc4ab795fbf508e2260d37d689fc074116a91e1f3", "categorized_nodes": 8}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef P...
1,879
c
#ifndef LQDETECT_H #define LQDETECT_H #include "memcached/extension_loggers.h" #define DETECT_LONG_QUERY #define LONGQ_STAT_STRLEN 300 #define LONGQ_STANDARD_DEFAULT 4000 /* defulat detect standard */ #define LONGQ_RANGE_SIZE (31*2+10*2) #define LONGQ_EXPLICIT_STOP 0 /* stop by u...
33.96
51
(translation_unit) "#ifndef LQDETECT_H\n#define LQDETECT_H\n\n#include "memcached/extension_loggers.h"\n\n#define DETECT_LONG_QUERY\n#define LONGQ_STAT_STRLEN 300\n#define LONGQ_STANDARD_DEFAULT 4000 /* defulat detect standard */\n#define LONGQ_RANGE_SIZE (31*2+10*2)\n\n\n#define LONGQ_EXPLICIT_...
299
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 33.96, "nodes": 217, "errors": 0, "source_hash": "dc39c6808b5aa73f611182afc0d1affe8d69269cff6b0e8dad9771f544052ccc", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,880
c
// // MOBIMUserManager.h // MOBIMDemo // // Created by hower on 2017/10/18. // Copyright © 2017年 MOB. All rights reserved. // #import <Foundation/Foundation.h> #import "MOBIMUserModel.h" #import "MOBIMUser.h" #import "MOBIMGroupModel.h" #import "MOBIMVCard.h" typedef void (^MOBIMUserGetCompletionBlock)(MOBIMUser ...
24.88
148
(ERROR) "//\n// MOBIMUserManager.h\n// MOBIMDemo\n//\n// Created by hower on 2017/10/18.\n// Copyright © 2017年 MOB. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "MOBIMUserModel.h"\n#import "MOBIMUser.h"\n#import "MOBIMGroupModel.h"\n#import "MOBIMVCard.h"\n\ntypedef void (^MOBIMUserGetComp...
885
70
{"language": "c", "success": true, "metadata": {"lines": 148, "avg_line_length": 24.88, "nodes": 596, "errors": 0, "source_hash": "ebd453aedeecd9ef60d89b877d5af4d06a75869b35054ae8529632835b33d489", "categorized_nodes": 302}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// MOBIMUserManager...
1,881
c
#include <std.h> inherit ROOM; void create() { ::create(); set_terrain(MARSH); set_travel(RUTTED_TRACK); set_property("light", 2); set_short("The Marsh Path"); set("day long", @GIL %^ORANGE%^This is the path leading into the Deep, Dark Marsh. Looking Northwest and Southeast the path leads deeper into the...
33.48
40
(translation_unit) "#include <std.h>\ninherit ROOM;\n\nvoid create()\n{\n ::create();\n set_terrain(MARSH);\n set_travel(RUTTED_TRACK);\n set_property("light", 2);\n set_short("The Marsh Path");\n set("day long",\n@GIL\n%^ORANGE%^This is the path leading into the Deep, Dark Marsh.\nLooking Northwest and Southea...
368
16
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 33.48, "nodes": 231, "errors": 0, "source_hash": "334158bc3e9e7e3362dab44c3cc4a9d66f42ecd53f97785b5f3721e5bbc49644", "categorized_nodes": 183}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,882
c
#include <stdio.h> void switcher(long a, long b, long c, long *dest) { long val; switch(a){ case 5: c = b^15; case 0: val = c+112; break; case 2: case 7: val = (b+c)<<2; break; case 4: val = a; break; default: val = b; ...
14.04
28
(translation_unit) "#include <stdio.h>\n\nvoid switcher(long a, long b, long c, long *dest)\n{\n long val;\n switch(a){\n case 5:\n c = b^15;\n case 0:\n val = c+112;\n break;\n case 2:\n case 7:\n val = (b+c)<<2;\n break;\n case 4:\n val = a;\n brea...
172
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 14.04, "nodes": 118, "errors": 0, "source_hash": "5a15d1ca3f16619d1f1bd86d27ac8b1a85046852dc592332002af8b80824c442", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
1,883
c
#ifndef __TESTNGPP_STRING_TO_OPTIONS_H #define __TESTNGPP_STRING_TO_OPTIONS_H #include <list> #include <string> #include <testngpp/testngpp.h> TESTNGPP_NS_START struct StringToOptions { typedef std::pair<int, char**> CArgs; static int getNumberOfArgsInString(const std::string& s); static CArgs parse(cons...
24.64
14
(translation_unit) "#ifndef __TESTNGPP_STRING_TO_OPTIONS_H\n#define __TESTNGPP_STRING_TO_OPTIONS_H\n\n#include <list>\n#include <string>\n\n#include <testngpp/testngpp.h>\n\nTESTNGPP_NS_START\n\nstruct StringToOptions\n{\n typedef std::pair<int, char**> CArgs;\n\n static int getNumberOfArgsInString(const std::strin...
89
6
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 24.64, "nodes": 58, "errors": 0, "source_hash": "4b896ed73505c0389424d5d63fe7a11a83248bf510e04adc5c065c76733ad6af", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,884
c
/* * Copyright 2017 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/license.h...
30.6
129
(translation_unit) "/*\n * Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the "License"). You may not use\n * this file except in compliance with the License. You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.op...
1,050
0
{"language": "c", "success": true, "metadata": {"lines": 129, "avg_line_length": 30.6, "nodes": 527, "errors": 0, "source_hash": "20ee8a2d2e2b32dfc4ab87988a6c637e9d32cc312ff24d867f3d0889b321ff02", "categorized_nodes": 424}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,885
c
#pragma once #include "cocos2d.h" #include "AtlasLoader.h" using namespace cocos2d; using namespace std; typedef enum { ACTION_STATE_IDLE, ACTION_STATE_FLY, ACTION_STATE_DIE } ActionState; const int BIRD_SPRITE_TAG = 10000; class BirdSprite : public Sprite { public: static BirdSprite *getInstan...
14.12
52
(translation_unit) "#pragma once \n#include "cocos2d.h" \n#include "AtlasLoader.h" \n \nusing namespace cocos2d; \nusing namespace std; \n \ntypedef enum { \n ACTION_STATE_IDLE, \n ACTION_STATE_FLY, \n ACTION_STATE_DIE \n} ActionState; \n \nconst int BIRD_SPRITE_TAG = 10000; \n \nclass BirdSprite : public Sprite { \npu...
211
4
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 14.12, "nodes": 136, "errors": 0, "source_hash": "abf8d7ae0be5ef31c2e2abd0053f5f87e15c2c4efcc4fe0ed0584584e765ea63", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
1,886
c
/* +----------------------------------------------------------------------+ | uopz | +----------------------------------------------------------------------+ | Copyright (c) <NAME> 2016-2019 | +-------------------...
29.94
277
(translation_unit) "/*\n +----------------------------------------------------------------------+\n | uopz |\n +----------------------------------------------------------------------+\n | Copyright (c) <NAME> 2016-2019 ...
2,079
0
{"language": "c", "success": true, "metadata": {"lines": 277, "avg_line_length": 29.94, "nodes": 1102, "errors": 0, "source_hash": "d8cfdd5bf147f8fb7d9892541470de0f835edf1d3e7352c5e943159a6329b52f", "categorized_nodes": 814}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
1,887
c
/*++ Copyright (c) Microsoft Corporation Module Name: power.c Abstract: This module contains the code that handles the power IRPs for the serial driver. Environment: Kernel mode --*/ #include "precomp.h" #if defined(EVENT_TRACING) #include "power.tmh" #endif PCHAR DbgDevicePowerString( ...
35.68
238
(translation_unit) "/*++\n\nCopyright (c) Microsoft Corporation\n\nModule Name:\n\n power.c\n\nAbstract:\n\n This module contains the code that handles the power IRPs for the serial\n driver.\n\nEnvironment:\n\n Kernel mode\n\n--*/\n\n#include "precomp.h"\n\n\n#if defined(EVENT_TRACING)\n#include "power.tmh...
1,039
10
{"language": "c", "success": true, "metadata": {"lines": 238, "avg_line_length": 35.68, "nodes": 561, "errors": 0, "source_hash": "c982087428cdd449088759cc60e124fd5fe699607b2a85ff7e90aa0b7eab7cbb", "categorized_nodes": 457}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
1,888
c
/*========================================================================= Program: Visualization Toolkit Module: vtkMesaFreeTypeTextMapper.h Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distribu...
39.54
52
(translation_unit) "/*=========================================================================\n\n Program: Visualization Toolkit\n Module: vtkMesaFreeTypeTextMapper.h\n\n Copyright (c) <NAME>, <NAME>, <NAME>\n All rights reserved.\n See Copyright.txt or http://www.kitware.com/Copyright.htm for details.\n\n ...
221
6
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 39.54, "nodes": 122, "errors": 0, "source_hash": "e72a8b2bcbf8317f4347e18df80aef71b1b6ee2e9e4e6ca4166db1af6c48d3c8", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,889
c
/* Header file for `utilities.c` * Utility functions for the MRT module. * * For Dartmouth COSC 60 Lab 3; * By <NAME>, April 2020. */ #ifndef _utilities_h #define _utilities_h /* the djb2 hash function * reference: http://www.cse.yorku.ca/~oz/hash.html * * expects the str to be NULL-terminated */ unsigned l...
21.62
16
(translation_unit) "/* Header file for `utilities.c`\n * Utility functions for the MRT module.\n * \n * For Dartmouth COSC 60 Lab 3;\n * By <NAME>, April 2020.\n */\n\n#ifndef _utilities_h\n#define _utilities_h\n\n/* the djb2 hash function\n * reference: http://www.cse.yorku.ca/~oz/hash.html\n *\n * expects the str to ...
26
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 21.62, "nodes": 19, "errors": 0, "source_hash": "ff7f77f577a9de5df115ce0acde84695f1ad4e708df0991ae090748033d232c0", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,890
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import <objc/NSObject.h> @interface FIRAuthSettings : NSObject { _Bool _appVerificationDisabledForTesting; } @property(nonatomic, gett...
37.46
13
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.\n//\n\n#import <objc/NSObject.h>\n\n@interface FIRAuthSettings : NSObject\n{\n _Bool _appVerificationDisabledForTesting...
57
7
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 37.46, "nodes": 33, "errors": 0, "source_hash": "d48105cfb39167263e61f0c01e96d96f9871ac6bded6ad71994c9a190e7b9be3", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
1,891
c
#pragma once #include<string> #include<iostream> #define black 0 #define red 1 // Inspiration: Ms. Resch's lecture on Red-Black Trees // https://gist.github.com/derka6391/7b7463ac36a9fb04bea0668397d41d23 struct RBNode { std::string gameStr; char points; bool color = black; RBNode * left; RBNode * right; RBNode *...
31.7
27
(translation_unit) "#pragma once\n#include<string>\n#include<iostream>\n#define black 0\n#define red 1\n\n// Inspiration: Ms. Resch's lecture on Red-Black Trees\n// https://gist.github.com/derka6391/7b7463ac36a9fb04bea0668397d41d23\nstruct RBNode\n{\n std::string gameStr;\n char points;\n bool color = black;\n RBNode *...
307
10
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 31.7, "nodes": 229, "errors": 0, "source_hash": "264f7f2bb5808e3414410c7b38f40e9001feb69455ced77bdaf3be2ecc3d0b74", "categorized_nodes": 142}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
1,892
c
#pragma once #include "Hazel/Renderer/VertexArray.h" namespace Hazel { class OpenGLVertexArray: public VertexArray { public: OpenGLVertexArray(); virtual ~OpenGLVertexArray(); virtual void Bind() const override; virtual void Unbind() const override; virtual void AddVertexBuffer(const std::shared_ptr<Ver...
36.3
23
(translation_unit) "#pragma once\n#include "Hazel/Renderer/VertexArray.h"\n\nnamespace Hazel\n{\n class OpenGLVertexArray: public VertexArray\n {\n public:\n OpenGLVertexArray();\n virtual ~OpenGLVertexArray();\n\n virtual void Bind() const override;\n virtual void Unbind() const override;\n\n virtual void AddVert...
224
10
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 36.3, "nodes": 131, "errors": 0, "source_hash": "81837c986a28106cc371aab3760037ad0e876a0de52974ef4670652fbbcc3821", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
1,893
c
/* * Copyright (C) <NAME> * Copyright (C) Nginx, Inc. */ #ifndef _NGX_REGEX_H_INCLUDED_ #define _NGX_REGEX_H_INCLUDED_ #include <ngx_config.h> #include <ngx_core.h> #include <pcre.h> #define NGX_REGEX_NO_MATCHED PCRE_ERROR_NOMATCH /* -1 */ #define NGX_REGEX_CASELESS PCRE_CASELESS typedef struct { ...
24.98
45
(translation_unit) "/*\n * Copyright (C) <NAME>\n * Copyright (C) Nginx, Inc.\n */\n\n\n#ifndef _NGX_REGEX_H_INCLUDED_\n#define _NGX_REGEX_H_INCLUDED_\n\n\n#include <ngx_config.h>\n#include <ngx_core.h>\n\n#include <pcre.h>\n\n\n#define NGX_REGEX_NO_MATCHED PCRE_ERROR_NOMATCH /* -1 */\n\n#define NGX_REGEX_CASELESS ...
187
0
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 24.98, "nodes": 142, "errors": 0, "source_hash": "224584d780bbd6d3305e25347ac68fd34b90b3c60dce6b39e2002ea3f194d227", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,894
c
#include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <ctype.h> #include <string.h> //#include "config.h" #include "nrf_drv_twi.h" #include "nrf_gpio.h" #include "app_error.h" #include "nrf.h" #include "bsp.h" #include "app_util_platform.h" #define NRF_LOG_MODULE_NAME "APP" #include "nrf_log.h" #include ...
29.63
102
(translation_unit) "#include <stdbool.h>\n#include <stdint.h>\n#include <stdio.h>\n#include <ctype.h>\n#include <string.h>\n//#include "config.h"\n#include "nrf_drv_twi.h"\n#include "nrf_gpio.h"\n#include "app_error.h"\n#include "nrf.h"\n#include "bsp.h"\n#include "app_util_platform.h"\n#define NRF_LOG_MODULE_NAME "APP...
874
0
{"language": "c", "success": true, "metadata": {"lines": 102, "avg_line_length": 29.63, "nodes": 500, "errors": 0, "source_hash": "a9a9bf042339fee65639dc6848077da06cbc188ce09f1ae52b1899a7a10b292d", "categorized_nodes": 379}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
1,895
c
#include <stdio.h> int main() { int n,m; int q; int i; scanf("%d",&q); for(i=0;i<q;i++) { scanf("%d %d",&n,&m); if(n == m+1) { printf("second\n"); continue; } n = n%(m+1); if((m - n) >= 0 && (m-n) <= m && n!=0) printf("first\n"); else printf("second\n"); } }
12.27
22
(translation_unit) "#include <stdio.h>\n\nint main()\n{\n int n,m;\n int q;\n int i;\n scanf("%d",&q);\n for(i=0;i<q;i++)\n {\n scanf("%d %d",&n,&m);\n if(n == m+1)\n {\n printf("second\n");\n continue;\n }\n n = n%(m+1);\n if((m - n) >= 0 && (m-n) <= m && n!=0)\n printf("first\n");\n else\n printf("seco...
186
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 12.27, "nodes": 108, "errors": 0, "source_hash": "975d4917679faa07e57acd7d01de1bd6ef9c10de555ee3cb70d0071c6bf6d380", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
1,896
c
#ifndef QUEUE_MESSAGE_H_ #define QUEUE_MESSAGE_H_ #define KEY_ROLL_OVER 6 namespace fex { enum class MessageType { PRESS, RELEASE, DELAY, LAYER_SWITCH, MOUSE_MOVE_LEFT_RIGHT, MOUSE_MOVE_UP_DOWN, MOUSE_SCROLL_LEFT_RIGHT, MOUSE_SCROLL_UP_DOWN, ...
21.93
40
(translation_unit) "#ifndef QUEUE_MESSAGE_H_\n#define QUEUE_MESSAGE_H_\n\n#define KEY_ROLL_OVER 6\n\nnamespace fex\n{\n enum class MessageType \n {\n PRESS,\n RELEASE,\n DELAY,\n LAYER_SWITCH,\n MOUSE_MOVE_LEFT_RIGHT,\n MOUSE_MOVE_UP_DOWN,\n MOUSE_SCROLL_LEFT_RIGHT...
135
2
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 21.93, "nodes": 90, "errors": 0, "source_hash": "db5af56f286ec243c98379e54cff10134c777f266b5d82d5fe9dcd8a5ce874ca", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef QUEUE_ME...
1,897
c
#pragma once #define GLM_FORCE_RADIANS #include <thirdparty/glm/glm.hpp> namespace hmk { class Camera { public: Camera(); const glm::vec3& getPosition() const; void setPosition(const glm::vec3 &_position); void offsetPosition(const glm::vec3 &offset); float getFov() const; void setFov(float ...
28.13
38
(translation_unit) "#pragma once\n#define GLM_FORCE_RADIANS\n#include <thirdparty/glm/glm.hpp>\n\nnamespace hmk {\n\nclass Camera {\npublic:\n Camera();\n\n const glm::vec3& getPosition() const;\n void setPosition(const glm::vec3 &_position);\n void offsetPosition(const glm::vec3 &offset);\n\n float getF...
310
11
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 28.13, "nodes": 176, "errors": 0, "source_hash": "32f7c954c291d7ad650308ba282b1321bdb7cbac2232b07641da37d20028755c", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
1,898
c
#include "ttf2mesh/ttf2mesh.h"
30
1
(translation_unit) "#include "ttf2mesh/ttf2mesh.h"" (preproc_include) "#include "ttf2mesh/ttf2mesh.h"" (#include) "#include" (string_literal) ""ttf2mesh/ttf2mesh.h"" (") """ (string_content) "ttf2mesh/ttf2mesh.h" (") """
7
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 30.0, "nodes": 3, "errors": 0, "source_hash": "48e664848230c6cf7fa53fbd2b6505ba75dae6af8076bb2379b2fef18f653bed", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \...
1,899