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
// Copyright 2020 The Tint Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed ...
39.26
68
(translation_unit) "// Copyright 2020 The Tint Authors.\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required ...
398
18
{"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 39.26, "nodes": 218, "errors": 0, "source_hash": "38e47f6e3b823475fcbb3975a4cd848ba9e37faa2f4220ac6be7c6bded83e7fc", "categorized_nodes": 150}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,400
c
#pragma once #include "abstracttrigger.h" class World; class TouchDamage : public AbstractTrigger { public: TouchDamage(Vob* parent, World &world, ZenLoad::zCVobData&& data, bool startup); private: void onTrigger(const TriggerEvent &evt) override; void tick(uint64_t dt) override; void takeDamage...
31.67
12
(translation_unit) "#pragma once\n\n#include "abstracttrigger.h"\n\nclass World;\n\nclass TouchDamage : public AbstractTrigger {\n public:\n TouchDamage(Vob* parent, World &world, ZenLoad::zCVobData&& data, bool startup);\n\n private:\n void onTrigger(const TriggerEvent &evt) override;\n void tick(uint64_t d...
119
7
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 31.67, "nodes": 71, "errors": 0, "source_hash": "0ccebbade239cfa970c6e5ab1e048ee4b326d08548c5b9e32bae8d9f8a8320e6", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
78,401
c
#include "DPM_Meausure.h" #include "../TIDriver/usci_b_i2c.h" void DPM_Measure_Setup(){ }
21.5
4
(translation_unit) "#include "DPM_Meausure.h"\n#include "../TIDriver/usci_b_i2c.h"\nvoid DPM_Measure_Setup(){\n}" (preproc_include) "#include "DPM_Meausure.h"\n" (#include) "#include" (string_literal) ""DPM_Meausure.h"" (") """ (string_content) "DPM_Meausure.h" (") """ (preproc_include) "#...
23
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 21.5, "nodes": 11, "errors": 0, "source_hash": "38203647a88f7b6857b33026716a685ab9ad33acb32da67ad8c49cf5fe6d6e3b", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include ...
78,402
c
/***************************************************************************** * File Name: prog.h * * Description: Global parameters and functions for programming module * *****************************************************************************/ #if !defined(__PROG_H) #define __PROG_H #include "PE_...
31.56
62
(translation_unit) "/*****************************************************************************\n* File Name: prog.h\n*\n* Description: Global parameters and functions for programming module\n*\n*****************************************************************************/\n#if !defined(__PROG_H)\n#def...
330
1
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 31.56, "nodes": 241, "errors": 0, "source_hash": "0b8f63a863b5c16422bf227aac83c815e40ba0bc11c0216f157bc803ffe34524", "categorized_nodes": 152}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defi...
78,403
c
#ifndef __INPUT_H__ #define __INPUT_H__ #include <vector> #include "Event.h" class Input { std::vector<int> inputList; int mouseX; int mouseY; public: Input(); ~Input(); bool addInput(const char* filename); bool addAllInputs(); void removeInput(int index); void removeAllInputs(); bool getEvent(Event...
18.11
18
(translation_unit) "#ifndef __INPUT_H__\n#define __INPUT_H__\n\n#include <vector>\n#include "Event.h"\n\nclass Input {\n std::vector<int> inputList;\n\n int mouseX;\n int mouseY;\n\npublic:\n Input();\n\n ~Input();\n\n bool addInput(const char* filename);\n\n bool addAllInputs();\n\n void removeInput(int index);\n\n vo...
122
2
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 18.11, "nodes": 75, "errors": 0, "source_hash": "6a5e6660311795cc4a65f1877355baaa5c6411c196b25f9719a58e869b3af8e0", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,404
c
#define PACKAGE_STRING "yasm 1.3.0" #define PACKAGE_VERSION "1.3.0"
33
2
(translation_unit) "#define PACKAGE_STRING "yasm 1.3.0"\n#define PACKAGE_VERSION "1.3.0"\n" (preproc_def) "#define PACKAGE_STRING "yasm 1.3.0"\n" (#define) "#define" (identifier) "PACKAGE_STRING" (preproc_arg) ""yasm 1.3.0"" (preproc_def) "#define PACKAGE_VERSION "1.3.0"\n" (#define) "#define" (...
9
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 33.0, "nodes": 8, "errors": 0, "source_hash": "bbf8494ff1013a467fe49aebdc77dc8f3e9818ae7f256a3a585ff8858336105b", "categorized_nodes": 2}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define PACKAG...
78,405
c
// // ZZTestToolBaseViewController.h // ZZTestTool // // Created by zanier on 2020/7/1. // Copyright © 2020 zanier. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN #ifdef HsGlobalDefine_h #import <HsBusinessEngine/HsBaseViewController.h> @interface ZZTestBaseViewController : HsBaseViewCon...
27.7
23
(translation_unit) "//\n// ZZTestToolBaseViewController.h\n// ZZTestTool\n//\n// Created by zanier on 2020/7/1.\n// Copyright © 2020 zanier. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n#ifdef HsGlobalDefine_h\n#import <HsBusinessEngine/HsBaseViewController.h>\n@interface ZZTest...
112
17
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 27.7, "nodes": 65, "errors": 0, "source_hash": "ab2ac1d340c1823229c9ad4b1380005d1bf6a5201950cd8b04944c0c040ca5c0", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UI...
78,406
c
// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will...
32.41
63
(translation_unit) "//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Lesser General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distribute...
352
8
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 32.41, "nodes": 199, "errors": 0, "source_hash": "d2c0add9501779f38f432c7018588508c98923c576c7270fbd8681a45ae60ebf", "categorized_nodes": 145}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,407
c
// // Created by sharon on 2/22/20. // #ifndef FINALHW1_ALCHOHOLICCUSTOMER_H #define FINALHW1_ALCHOHOLICCUSTOMER_H #include "Customer.h" class AlchoholicCustomer : public Customer { public: AlchoholicCustomer(std::string name, int id); virtual ~AlchoholicCustomer() = default; std::vector<int> order(cons...
23.79
19
(translation_unit) "//\n// Created by sharon on 2/22/20.\n//\n\n#ifndef FINALHW1_ALCHOHOLICCUSTOMER_H\n#define FINALHW1_ALCHOHOLICCUSTOMER_H\n\n\n#include "Customer.h"\n\nclass AlchoholicCustomer : public Customer {\npublic:\n AlchoholicCustomer(std::string name, int id);\n virtual ~AlchoholicCustomer() = default...
120
7
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 23.79, "nodes": 71, "errors": 0, "source_hash": "5bcbbde9247af14be49dd49f9c78357306b90eca5eaced52abf6c6f0a933766e", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,408
c
#ifndef PLATELETFORCEDEVICE_H_ #define PLATELETFORCEDEVICE_H_ #include <vector> typedef thrust::tuple<unsigned, bool> Tub; //tuple holding id of a node and if that node is within reach of the platelet //look up forward declaration if this doesn't make sense. struct NodeInfoVecs; struct WLCInfoVecs; str...
30.89
186
(translation_unit) "#ifndef PLATELETFORCEDEVICE_H_ \n#define PLATELETFORCEDEVICE_H_ \n \n#include <vector> \n \n \ntypedef thrust::tuple<unsigned, bool> Tub; //tuple holding id of a node and if that node is within reach of the platelet \n \n//look up forward declaration if this doesn't make sense. \nstruct NodeInfoVecs...
1,020
14
{"language": "c", "success": true, "metadata": {"lines": 186, "avg_line_length": 30.89, "nodes": 704, "errors": 0, "source_hash": "e0241fd73d906646930005a9ca145240770d4735f1538ba1bc85820dd90360eb", "categorized_nodes": 479}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef PLATE...
78,409
c
// Copyright (c) <NAME> /** @file rectangle_shape.h @brief Implements an NDC rectangle shape. */ #ifndef OGLWRAP_SHAPES_RECTANGLE_SHAPE_H_ #define OGLWRAP_SHAPES_RECTANGLE_SHAPE_H_ #include <set> #include <vector> #include "../buffer.h" #include "../context.h" #include "../vertex_array.h" #include "../vertex_att...
34.91
34
(translation_unit) "// Copyright (c) <NAME>\n\n/** @file rectangle_shape.h\n @brief Implements an NDC rectangle shape.\n*/\n\n#ifndef OGLWRAP_SHAPES_RECTANGLE_SHAPE_H_\n#define OGLWRAP_SHAPES_RECTANGLE_SHAPE_H_\n\n#include <set>\n#include <vector>\n#include "../buffer.h"\n#include "../context.h"\n#include "../vertex...
242
9
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 34.91, "nodes": 139, "errors": 0, "source_hash": "590c13ad790cae0c70ff621374c7b2b26ee7988a3e93a872c1d061b84f699b09", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,410
c
/* * MikroSDK - MikroE Software Development Kit * Copyright© 2020 MikroElektronika d.o.o. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without restriction, * including ...
31.33
296
(translation_unit) "/* \n * MikroSDK - MikroE Software Development Kit \n * Copyright© 2020 MikroElektronika d.o.o. \n * \n * Permission is hereby granted, free of charge, to any person \n * obtaining a copy of this software and associated documentation \n * files (the "Software"), to deal in the Software without re...
2,166
0
{"language": "c", "success": true, "metadata": {"lines": 296, "avg_line_length": 31.33, "nodes": 1446, "errors": 0, "source_hash": "8fea9085c07d67a7fe02401f3db75a1c1483f41a31910d3e497d7297c66df1db", "categorized_nodes": 1007}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "i...
78,411
c
/* Optimized string comparison. Copyright (C) 2001-2002, 2007, 2009-2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the Lice...
25.03
153
(translation_unit) "/* Optimized string comparison.\n Copyright (C) 2001-2002, 2007, 2009-2012 Free Software Foundation, Inc.\n\n This program is free software: you can redistribute it and/or modify it\n under the terms of the GNU Lesser General Public License as published\n by the Free Software Foundation; eit...
1,084
0
{"language": "c", "success": true, "metadata": {"lines": 153, "avg_line_length": 25.03, "nodes": 646, "errors": 0, "source_hash": "18a7850d12af0a1ac176b1325735137a703970be3c6629133aa7fd003229980d", "categorized_nodes": 446}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,412
c
#pragma once #include "IWindow.h" class TestWindow : public IWindow { public: TestWindow(); void Draw() override; uint32_t Tex = 0; };
14.1
10
(translation_unit) "#pragma once\n#include "IWindow.h"\nclass TestWindow :\n public IWindow\n{\npublic:\n TestWindow();\n void Draw() override;\n uint32_t Tex = 0;\n};\n\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "IWindow.h"\...
50
2
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 14.1, "nodes": 28, "errors": 0, "source_hash": "98342c95de97efe04382ca7eeb4fdf510c85b7272d1f149a25cb7f49e95d7a31", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
78,413
c
/*********************************************************************** Copyright (c) 2017, The OpenBRAS project authors. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of sou...
32.33
99
(translation_unit) "/***********************************************************************\n Copyright (c) 2017, The OpenBRAS project authors. All rights reserved.\n\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are\n met:\n\n...
448
11
{"language": "c", "success": true, "metadata": {"lines": 99, "avg_line_length": 32.33, "nodes": 237, "errors": 0, "source_hash": "29d638e782a49b21cb4f8b02508864301e7a3e8d81baa1d3cb9c62a2b315aba5", "categorized_nodes": 174}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,414
c
$NetBSD: patch-src_modules_timer_sdl_Timer.h,v 1.1 2018/09/30 19:10:11 maya Exp $ Match SDL1 include paths --- src/modules/timer/sdl/Timer.h.orig 2011-05-04 16:00:10.000000000 +0000 +++ src/modules/timer/sdl/Timer.h @@ -22,7 +22,7 @@ #define LOVE_TIMER_SDL_TIMER_H // SDL -#include <SDL.h> +#include <SDL/SDL.h> ...
26.31
13
(translation_unit) "$NetBSD: patch-src_modules_timer_sdl_Timer.h,v 1.1 2018/09/30 19:10:11 maya Exp $\n\nMatch SDL1 include paths\n\n--- src/modules/timer/sdl/Timer.h.orig 2011-05-04 16:00:10.000000000 +0000\n+++ src/modules/timer/sdl/Timer.h\n@@ -22,7 +22,7 @@\n #define LOVE_TIMER_SDL_TIMER_H\n \n // SDL\n-#include <S...
127
9
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 26.31, "nodes": 110, "errors": 0, "source_hash": "b7bb352b9935c52e0fb2fb145defe07c3b346c9bac3c217311fe67246a98c4d5", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "labeled_statement", "text": "$Ne...
78,415
c
// // EventFeedTableViewCell.h // medtree // // Created by tangshimi on 8/5/15. // Copyright (c) 2015 sam. All rights reserved. // #import "BaseCell.h" typedef NS_ENUM(NSInteger, EventFeedTableViewCellActionType) { EventFeedTableViewCellActionTypeHeadView, EventFeedTableViewCellActionTypeCommentView, ...
27.38
16
(translation_unit) "//\n// EventFeedTableViewCell.h\n// medtree\n//\n// Created by tangshimi on 8/5/15.\n// Copyright (c) 2015 sam. All rights reserved.\n//\n\n#import "BaseCell.h"\n\ntypedef NS_ENUM(NSInteger, EventFeedTableViewCellActionType) {\n EventFeedTableViewCellActionTypeHeadView,\n EventFeedTableVie...
43
6
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 27.38, "nodes": 22, "errors": 0, "source_hash": "ced76239ba4b02ea586b107e5b488a52b4dcf75899e04cb9005e3f425610f1e8", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
78,416
c
#ifndef EQUIPE_H #define EQUIPE_H #include "person.h" #include "club.h" /** * Un equipe est une entite qui fait parti d un club et qui contient des joueurs, * des gardiens et un capitaine */ class Equipe { private: Club* _club; int _nbrJoueurs; int _nbrGardiens; Joueur *_capitaine; public: /** * @params...
21.44
94
(translation_unit) "#ifndef EQUIPE_H\n#define EQUIPE_H\n\n#include "person.h"\n#include "club.h"\n\n/**\n * Un equipe est une entite qui fait parti d un club et qui contient des joueurs,\n * des gardiens et un capitaine\n */\nclass Equipe {\n\nprivate:\n Club* _club;\n int _nbrJoueurs;\n int _nbrGardiens;\n Joueur ...
411
12
{"language": "c", "success": true, "metadata": {"lines": 94, "avg_line_length": 21.44, "nodes": 233, "errors": 0, "source_hash": "98f30b244bd34ac5af18d758ed2ef732f9c7cde5bf5a978ee98434976c590ffc", "categorized_nodes": 165}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,417
c
#pragma once // vertex buffer object class VBO { public: VBO(const void* data, unsigned int size, GLenum drawmode = GL_STATIC_DRAW); ~VBO(); void Bind() const; void Unbind() const; GLuint GetID() { return vboID_; } private: GLuint vboID_; };
15.62
16
(translation_unit) "#pragma once \n \n// vertex buffer object \nclass VBO \n{ \npublic: \n VBO(const void* data, unsigned int size, GLenum drawmode = GL_STATIC_DRAW); \n ~VBO(); \n \n void Bind() const; \n void Unbind() const; \n \n GLuint GetID() { return vboID_; } \nprivate: \n GLuint vboID_; \n};" (preproc_call) "...
92
7
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 15.62, "nodes": 49, "errors": 0, "source_hash": "a7ee20a125fcd733e7c1ec4e3d44d77c28270777090ed9eacea05270c7814660", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
78,418
c
#ifndef __ModuleInput_H__ #define __ModuleInput_H__ #include "Module.h" #include "Globals.h" #include "SDL\include\SDL_scancode.h" typedef unsigned char Uint8; enum keystate { KEY_OUT = 0, KEY_PUSHED, KEY_PULLED, KEY_REPEAT, }; class ModuleInput : public Module { public: ModuleInput(); ~ModuleInput(); bool...
17.11
28
(translation_unit) "#ifndef __ModuleInput_H__\n#define __ModuleInput_H__\n\n#include "Module.h"\n#include "Globals.h"\n#include "SDL\include\SDL_scancode.h"\n\ntypedef unsigned char Uint8;\nenum keystate {\n KEY_OUT = 0,\n KEY_PUSHED,\n KEY_PULLED,\n KEY_REPEAT,\n};\n\n\nclass ModuleInput : public Module\n{\npublic:\n\...
149
1
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 17.11, "nodes": 89, "errors": 0, "source_hash": "d50995100ab204277ec78d4c2c8f5e9ccdaafe8fd016b219d9711874e13fdb10", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,419
c
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- #ifndef __javax_net_ssl_TrustManager__ #define __javax_net_ssl_TrustManager__ #pragma interface #include <java/lang/Object.h> extern "Java" { namespace javax { namespace net { namespace ssl { class TrustManager; }...
20.62
24
(translation_unit) "// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-\n\n#ifndef __javax_net_ssl_TrustManager__\n#define __javax_net_ssl_TrustManager__\n\n#pragma interface\n\n#include <java/lang/Object.h>\nextern "Java"\n{\n namespace javax\n {\n namespace net\n {\n namespace ssl\n {\n ...
107
5
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 20.62, "nodes": 50, "errors": 0, "source_hash": "ad1ec53c4ea8f4d019dc850cb611ba0dacd2e0d27bd390804bfb1c447fa4acd8", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,420
c
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */ /* * * (C) 2001 by Argonne National Laboratory. * See COPYRIGHT in top-level directory. */ #include "mpi.h" int main(int argc, char *argv[]) { int i, j; MPI_Status status; MPI_Init(&argc, &argv); MPI_Sendrecv(&i, 1, MPI_INT, 0...
24.75
16
(translation_unit) "/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */\n/*\n *\n * (C) 2001 by Argonne National Laboratory.\n * See COPYRIGHT in top-level directory.\n */\n#include "mpi.h"\n\nint main(int argc, char *argv[])\n{\n int i, j;\n MPI_Status status;\n\n MPI_Init(&argc, &argv);\n\...
105
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 24.75, "nodes": 55, "errors": 0, "source_hash": "61ca85034324c67440e95cf345a524f68085cd3d7a47208dd3b12b7bfb4463e7", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
78,421
c
#include <stdio.h> #include <assert.h> #include "evt_mbed.h" void on_handshake(evt_tls_t *tls, int status) { fprintf(stderr, "on handshake called\n"); } int main() { evt_config_t *cfg = evt_cfg_new(); evt_tls_t *client = evt_tls_client(); assert( client != NULL && "Test failed"); assert( client...
25.2
35
(translation_unit) "#include <stdio.h>\n#include <assert.h>\n\n#include "evt_mbed.h"\n\nvoid on_handshake(evt_tls_t *tls, int status)\n{\n fprintf(stderr, "on handshake called\n");\n}\n\n\nint main()\n{\n evt_config_t *cfg = evt_cfg_new();\n evt_tls_t *client = evt_tls_client();\n assert( client != NULL &&...
298
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 25.2, "nodes": 177, "errors": 0, "source_hash": "1819a7fa8c42899587f4a6f7788e3c766df1876fc255e7c550fe7be31c0fb44d", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
78,422
c
#include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #define numOfNumerals 10 void generateNum(int* secretNum, int n) { srand((unsigned int)time(NULL)); bool usedNumerals[numOfNumerals] = { false }; secretNum[0] = rand() % 9 + 1; usedNumerals[secretNum[0]]...
28.75
79
(translation_unit) "#include <stdbool.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <time.h>\n\n#define numOfNumerals 10\n\nvoid generateNum(int* secretNum, int n)\n{\n srand((unsigned int)time(NULL));\n\n bool usedNumerals[numOfNumerals] = { false };\n secretNum[0] = rand() % 9 + ...
836
0
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 28.75, "nodes": 501, "errors": 0, "source_hash": "f871970f20cc7d2a15cdc01a056cd14167e31497f4cb11dc6cddde24f8a29222", "categorized_nodes": 312}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,423
c
#ifndef QCocoaMessageBox_h__ #define QCocoaMessageBox_h__ #include <QtWidgets/QMessageBox> class QCocoaMessageBox : public QMessageBox { Q_OBJECT public: using QMessageBox::QMessageBox; bool isCheckBoxChecked() const; #ifdef Q_OS_MAC int exec() override; static QMessageBox::StandardButton critical( ...
40.94
32
(translation_unit) "#ifndef QCocoaMessageBox_h__\n#define QCocoaMessageBox_h__\n\n#include <QtWidgets/QMessageBox>\n\nclass QCocoaMessageBox : public QMessageBox\n{\n Q_OBJECT\n\npublic:\n using QMessageBox::QMessageBox;\n\n bool isCheckBoxChecked() const;\n\n#ifdef Q_OS_MAC\n int exec() override;\n\n static QMess...
343
36
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 40.94, "nodes": 191, "errors": 0, "source_hash": "3f31ba700ee59e45a91c1026393d53e744f6d22c1d378f675a6cdfb844127ec4", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,424
c
#include <stdio.h> #include <stdint.h> #include <inttypes.h> #include <string.h> #include <stdlib.h> #define RECIPE_MAX 1024*1024*2 int8_t recipes[RECIPE_MAX]; int main(int argc, char **argv) { size_t elf1, elf2, next; size_t limit = atoi(argv[1]); elf1 = 0; elf2 = 1; recipes[elf1] = 3; recipes[elf2] = 7; nex...
20.5
48
(translation_unit) "#include <stdio.h>\n#include <stdint.h>\n#include <inttypes.h>\n#include <string.h>\n#include <stdlib.h>\n\n#define RECIPE_MAX 1024*1024*2\nint8_t recipes[RECIPE_MAX];\n\nint main(int argc, char **argv) {\n size_t elf1, elf2, next;\n size_t limit = atoi(argv[1]);\n\n elf1 = 0;\n elf2 = 1;\n recipes[...
433
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 20.5, "nodes": 261, "errors": 0, "source_hash": "6200108b662d4e7627f72cce3d93a81a9f71d03d92e96815d8b8117dfcb9702a", "categorized_nodes": 191}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
78,425
c
// Copyright 2020 <NAME> // SPDX-License-Identifier: Apache-2.0 #ifndef __CORE_UTILS_BECH32_H__ #define __CORE_UTILS_BECH32_H__ #include <stdint.h> #include <stdlib.h> /** @addtogroup IOTA_C * @{ */ /** @addtogroup CORE * @{ */ /** @defgroup CORE_UTILS Core Utils * @{ */ /** @defgroup BECH32 Bech32 * @{ *...
23.05
83
(translation_unit) "// Copyright 2020 <NAME>\n// SPDX-License-Identifier: Apache-2.0\n\n#ifndef __CORE_UTILS_BECH32_H__\n#define __CORE_UTILS_BECH32_H__\n\n#include <stdint.h>\n#include <stdlib.h>\n\n/** @addtogroup IOTA_C\n * @{\n */\n\n/** @addtogroup CORE\n * @{\n */\n\n/** @defgroup CORE_UTILS Core Utils\n * @{\n *...
183
0
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 23.05, "nodes": 122, "errors": 0, "source_hash": "d1757e1f398d24e4be09bef199ba75f2ee8b085122bd5d235dd8f9021dca03c4", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,426
c
/* -*- c++ -*- */ //============================================================================= /** * @file cdr_op_ch.h * * $Id: cdr_op_ch.h 88828 2010-02-04 09:09:22Z johnnyw $ * * Concrete visitor for the Typedef class * This provides the code generation for the CDR operators of the Typedef * class ...
29.39
49
(translation_unit) "/* -*- c++ -*- */\n\n//=============================================================================\n/**\n * @file cdr_op_ch.h\n *\n * $Id: cdr_op_ch.h 88828 2010-02-04 09:09:22Z johnnyw $\n *\n * Concrete visitor for the Typedef class\n * This provides the code generation for the CDR operat...
150
7
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 29.39, "nodes": 97, "errors": 0, "source_hash": "2092433c10d9b9cb672112d6eb08b8ba8dfdb70a31e5e71fc53f29abed117a12", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,427
c
// // Created by <NAME> on 09.04.2021. // #ifndef ROVER_CONTEXT_H #define ROVER_CONTEXT_H #include <CoreContext.h> typedef boost::asio::io_service IoService; typedef std::shared_ptr<IoService> IoServicePtr; struct RaspberryContext : public CoreContext { IoServicePtr service; }; #endif //ROVER_CONTEXT_H
22.77
13
(translation_unit) "//\n// Created by <NAME> on 09.04.2021.\n//\n\n#ifndef ROVER_CONTEXT_H\n#define ROVER_CONTEXT_H\n\n#include <CoreContext.h>\n\ntypedef boost::asio::io_service IoService;\ntypedef std::shared_ptr<IoService> IoServicePtr;\n\nstruct RaspberryContext : public CoreContext {\n IoServicePtr service;\n};...
56
3
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 22.77, "nodes": 35, "errors": 0, "source_hash": "5a6dcf5fcbb423a42320d2064458fc9f3c4aa867f404764ce1959e1f7d48310e", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,428
c
// // UIButton+Block.h // LakalaClient // // Created by Apple on 2017/9/26. // Copyright © 2017年 LR. All rights reserved. // #import <UIKit/UIKit.h> typedef void (^ActionBlock)(void);//无返回值,无入参的block,应用在大多数位置 @interface UIButton (Block) /* * handleControlEvent:withBlock: * 使用block处理button事件 * 入参:event 触发类型 ...
25.2
20
(translation_unit) "//\n// UIButton+Block.h\n// LakalaClient\n//\n// Created by Apple on 2017/9/26.\n// Copyright © 2017年 LR. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\ntypedef void (^ActionBlock)(void);//无返回值,无入参的block,应用在大多数位置\n@interface UIButton (Block)\n/*\n * handleControlEvent:withBlock:\n * 使用bl...
66
7
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 25.2, "nodes": 38, "errors": 0, "source_hash": "1c684dab4c7786606595dd1878bf264f1de7efc8c730235ae9228ea3f9ebaa6d", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKi...
78,429
c
/* * util.h * * Utility definitions. * * Written & released by <NAME> <<EMAIL>> * * This is free and unencumbered software released into the public domain. * See the file COPYING for more details, or visit <http://unlicense.org>. */ #define ASSERT(p) if (!(p)) illegal(); typedef char bool_t; #define TRUE ...
32.59
133
(translation_unit) "/*\n * util.h\n * \n * Utility definitions.\n * \n * Written & released by <NAME> <<EMAIL>>\n * \n * This is free and unencumbered software released into the public domain.\n * See the file COPYING for more details, or visit <http://unlicense.org>.\n */\n\n#define ASSERT(p) if (!(p)) illegal();\n\nt...
996
0
{"language": "c", "success": true, "metadata": {"lines": 133, "avg_line_length": 32.59, "nodes": 704, "errors": 0, "source_hash": "f2ee8ff06677407520abaf9e4ae5b9da42cf90c82becebe4409debd1ff01431a", "categorized_nodes": 358}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_function_def", "text":...
78,430
c
#include <stdio.h> int main(){ int hi, mi, hf, mf, h=0, m=0; scanf("%d%d%d%d", &hi, &mi, &hf, &mf); if (hf < hi) hf +=24; else if (hf == hi && mf <= mi) hf+=24; if (mi > mf){ h=(hf-hi) -1; m=(mf-mi) + 60; } else{ h=(hf-hi); m=(mf-mi); } printf("O JOGO DUROU %...
20.53
17
(translation_unit) "#include <stdio.h>\n\nint main(){\n\n int hi, mi, hf, mf, h=0, m=0;\n scanf("%d%d%d%d", &hi, &mi, &hf, &mf);\n if (hf < hi) hf +=24;\n else if (hf == hi && mf <= mi) hf+=24;\n if (mi > mf){\n h=(hf-hi) -1;\n m=(mf-mi) + 60;\n }\n else{\n h=(hf-hi);\n m=(mf-m...
190
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 20.53, "nodes": 115, "errors": 0, "source_hash": "98647d459c0c5b84faab45949b8c00b135d46ebbe1f51058d1d8a7efa00531fa", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
78,431
c
/* * option.c */ #include "copyright.h" #include <stdio.h> #include <ctype.h> #include <sys/types.h> #include <sys/time.h> #include "Wlib.h" #include "defs.h" #include "xsg_defs.h" #include "struct.h" #include "localdata.h" static int notdone; /* not done flag */ static int newrecord; static int newclock = 1; s...
26.67
278
(translation_unit) "/*\n * option.c\n */\n#include "copyright.h"\n\n#include <stdio.h>\n#include <ctype.h>\n#include <sys/types.h>\n#include <sys/time.h>\n#include "Wlib.h"\n#include "defs.h"\n#include "xsg_defs.h"\n#include "struct.h"\n#include "localdata.h"\n\nstatic int notdone; /* not done flag */\nstatic int ne...
2,371
10
{"language": "c", "success": true, "metadata": {"lines": 278, "avg_line_length": 26.67, "nodes": 1338, "errors": 0, "source_hash": "2a494496a162cdfcb224f5fe613f6a854382cd957d88a8849975abb452789532", "categorized_nodes": 894}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
78,432
c
/****************************************************************************** * * @brief Real-ETMe counter (RTC) driver head file. * ******************************************************************************/ #ifndef RTC_H_ #define RTC_H_ #ifdef __cplusplus extern "C" { #endif /******************************...
34.55
200
(translation_unit) "/******************************************************************************\n*\n* @brief Real-ETMe counter (RTC) driver head file. \n*\n******************************************************************************/\n#ifndef RTC_H_\n#define RTC_H_\n#ifdef __cplusplus\nextern "C" {\n#endif\n/...
461
6
{"language": "c", "success": true, "metadata": {"lines": 200, "avg_line_length": 34.55, "nodes": 293, "errors": 0, "source_hash": "e2f4dca9ef10c86072785fe1c0f87380eba8b73430f1c477a531f9070e391e61", "categorized_nodes": 188}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,433
c
#pragma once namespace Ui { enum class PlaceholderState { hidden, avatar, privateChat, needJoin, pending, rejected, canceled, }; class ChatPlaceholderAvatar : public QWidget { Q_OBJECT public: ChatPlaceholderAvatar(QWid...
27.32
60
(translation_unit) "#pragma once\n\nnamespace Ui\n{\n enum class PlaceholderState\n {\n hidden,\n avatar,\n\n privateChat,\n\n needJoin,\n pending,\n rejected,\n canceled,\n };\n\n class ChatPlaceholderAvatar : public QWidget\n {\n Q_OBJECT\n\n p...
390
19
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 27.32, "nodes": 232, "errors": 0, "source_hash": "e4a6d244b2d1f1fc02fe0a14bb9555bef491a361956d3d67f5b773e84830f761", "categorized_nodes": 157}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
78,434
c
#ifndef TEST_PROLOGUE_H #define TEST_PROLOGUE_H #include <ren/GLSLShader.h> #include <ren/Program.h> #include <ren/Compiler.h> #include <ren/CompilationContext.h> #include <ren/Input.h> #include "TestFramework.h" using namespace ren; #define CHECK_COMPILE(source, VS, FS) \ { ...
27.88
26
(translation_unit) "#ifndef TEST_PROLOGUE_H\n#define TEST_PROLOGUE_H\n\n\n#include <ren/GLSLShader.h>\n#include <ren/Program.h>\n#include <ren/Compiler.h>\n#include <ren/CompilationContext.h>\n#include <ren/Input.h>\n#include "TestFramework.h"\nusing namespace ren;\n\n\n#define CHECK_COMPILE(source, VS, FS) \...
76
3
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 27.88, "nodes": 54, "errors": 0, "source_hash": "509e1a0820100170e983dc7fc82276dc5369306fed13bdc0a9513ba4a641e16a", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,435
c
#pragma once #include "ofMain.h" #include "ftToScalarShader.h" namespace flowTools { class ftToScalar { public: void allocate(int _width, int _height){ width = _width; height = _height; ScalarBuffer.allocate(width, height, GL_RGB16F); parameters.setName("to scalar"); parameters.add(scale.set(...
25.89
37
(translation_unit) "#pragma once\n\n#include "ofMain.h"\n#include "ftToScalarShader.h"\n\nnamespace flowTools {\n \n class ftToScalar {\n public:\n \n void allocate(int _width, int _height){\n width = _width;\n height = _height;\n ScalarBuffer.allocate(width, height, GL_RGB16F);\n parameters.setName("to scala...
353
3
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 25.89, "nodes": 192, "errors": 0, "source_hash": "38155f8f6be99d3136e5bf0e1a8b282c566a80d9973e88772f0a1add8f013049", "categorized_nodes": 144}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
78,436
c
// Gmsh - Copyright (C) 1997-2019 <NAME>, <NAME> // // See the LICENSE.txt file for license information. Please report all // issues on https://gitlab.onelab.info/gmsh/gmsh/issues. #ifndef SBOUNDING_BOX_3D_H #define SBOUNDING_BOX_3D_H #include <float.h> #include "SPoint3.h" #include "SVector3.h" #include "MVertex.h" ...
30.37
119
(translation_unit) "// Gmsh - Copyright (C) 1997-2019 <NAME>, <NAME>\n//\n// See the LICENSE.txt file for license information. Please report all\n// issues on https://gitlab.onelab.info/gmsh/gmsh/issues.\n\n#ifndef SBOUNDING_BOX_3D_H\n#define SBOUNDING_BOX_3D_H\n\n#include <float.h>\n#include "SPoint3.h"\n#include "SVe...
1,373
32
{"language": "c", "success": true, "metadata": {"lines": 119, "avg_line_length": 30.37, "nodes": 859, "errors": 0, "source_hash": "0e55ef99ee5bc569178c63e25b95aa1ee4eac00a638ee85bbf37e1d59f94c87f", "categorized_nodes": 617}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,437
c
#ifndef FRAME_HEADER_WRITER_H_INCLUDED #define FRAME_HEADER_WRITER_H_INCLUDED #include <vapoursynth/VapourSynth.h> #include <QObject> class FrameHeaderWriter : public QObject { Q_OBJECT public: FrameHeaderWriter(const VSAPI * a_cpVSAPI = nullptr, const VSVideoInfo * a_cpVideoInfo = nullptr, QObject * a_pPare...
35.08
26
(translation_unit) "#ifndef FRAME_HEADER_WRITER_H_INCLUDED\n#define FRAME_HEADER_WRITER_H_INCLUDED\n\n#include <vapoursynth/VapourSynth.h>\n\n#include <QObject>\n\nclass FrameHeaderWriter : public QObject\n{\n Q_OBJECT\n\npublic:\n\n FrameHeaderWriter(const VSAPI * a_cpVSAPI = nullptr,\n const VSVideoInfo * a_cpVideoI...
247
16
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 35.08, "nodes": 178, "errors": 0, "source_hash": "997fbbe97628b497e8c1d46bb15940d39b98dc36504febcd6aaf6ec51d5ac022", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,438
c
// Copyright (c) 2015-2016 darknetspace developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #pragma once #include <QAbstractItemModel> #include <QSortFilterProxyModel> #include "CurrencyAdapter.h" #include "Message....
32.25
63
(translation_unit) "// Copyright (c) 2015-2016 darknetspace developers\n// Distributed under the MIT/X11 software license, see the accompanying\n// file COPYING or http://www.opensource.org/licenses/mit-license.php.\n\n#pragma once\n\n#include <QAbstractItemModel>\n#include <QSortFilterProxyModel>\n\n#include "Currency...
522
30
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 32.25, "nodes": 300, "errors": 0, "source_hash": "a0e55911c7df61fbbad8567ada21f23e561afe69cf0b168b0c4fb3d8fde62b0c", "categorized_nodes": 224}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
78,439
c
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
35.05
39
(translation_unit) "/*\n* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or\n* its licensors.\n*\n* For complete copyright and license terms please see the LICENSE at the root of this\n* distribution (the "License"). All use of this software is governed by the License,\n* or, if provided,...
162
9
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 35.05, "nodes": 104, "errors": 0, "source_hash": "3d5f79486b0c6e72c2ff82d53c3c1aa9d214ad0b6f8a847fb6085f28a6b82497", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,440
c
/**************************************************************************** **************************************************************************** *** *** This header was automatically generated from a Linux kernel header *** of the same name, to make information necessary for userspace to *** call i...
32.42
105
(translation_unit) "/****************************************************************************\n ****************************************************************************\n ***\n *** This header was automatically generated from a Linux kernel header\n *** of the same name, to make information necessary for us...
344
0
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 32.42, "nodes": 342, "errors": 0, "source_hash": "c23a4eb3c33f554e94b190161c8c3a15b2ab5420cc203688286d72925db62287", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,441
c
#include "sysincludes.h" #include "msdos.h" #include "stream.h" #include "file.h" #include "mtoolsDirent.h" void initializeDirentry(direntry_t *entry, Stream_t *Dir) { entry->entry = -1; /* entry->parent = getDirentry(Dir);*/ entry->Dir = Dir; entry->beginSlot = 0; entry->endSlot = 0; } int isNotFound(direntry_t ...
19.63
106
(translation_unit) "#include "sysincludes.h"\n#include "msdos.h"\n#include "stream.h"\n#include "file.h"\n#include "mtoolsDirent.h"\n\nvoid initializeDirentry(direntry_t *entry, Stream_t *Dir)\n{\n entry->entry = -1;\n/* entry->parent = getDirentry(Dir);*/\n entry->Dir = Dir;\n entry->beginSlot = 0;\n entry->endSlot = ...
918
0
{"language": "c", "success": true, "metadata": {"lines": 106, "avg_line_length": 19.63, "nodes": 560, "errors": 0, "source_hash": "30086fb54f712205528ea50ca0662e276e5cf4da4c8ed42bcdd3b617f01aeef6", "categorized_nodes": 397}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,442
c
/* Copyright (c) 1998,2011-2012,2014 Apple Inc. All Rights Reserved. * * NOTICE: USE OF THE MATERIALS ACCOMPANYING THIS NOTICE IS SUBJECT * TO THE TERMS OF THE SIGNED "FAST ELLIPTIC ENCRYPTION (FEE) REFERENCE * SOURCE CODE EVALUATION AGREEMENT" BETWEEN APPLE, INC. AND THE * ORIGINAL LICENSEE THAT OBTAINED THESE M...
25.75
57
(translation_unit) "/* Copyright (c) 1998,2011-2012,2014 Apple Inc. All Rights Reserved.\n *\n * NOTICE: USE OF THE MATERIALS ACCOMPANYING THIS NOTICE IS SUBJECT\n * TO THE TERMS OF THE SIGNED "FAST ELLIPTIC ENCRYPTION (FEE) REFERENCE\n * SOURCE CODE EVALUATION AGREEMENT" BETWEEN APPLE, INC. AND THE\n * ORIGINAL LICEN...
128
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 25.75, "nodes": 93, "errors": 0, "source_hash": "a8a2232b2e3216a32acb88596e1a169933afbbe7522973610f62e0907d6834fe", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef\...
78,443
c
// CryEngine Header File. // Copyright (C), Crytek, 1999-2014. #ifndef __SENSEDINCLUSIONSET_H__ #define __SENSEDINCLUSIONSET_H__ #pragma once template <class T> class SensedInclusionSet { public: SensedInclusionSet( bool sense ) : m_sense(sense) {} void Set( const T& value, bool included ) { if (included != m...
17.86
36
(translation_unit) "// CryEngine Header File.\n// Copyright (C), Crytek, 1999-2014.\n\n\n#ifndef __SENSEDINCLUSIONSET_H__\n#define __SENSEDINCLUSIONSET_H__\n\n#pragma once\n\ntemplate <class T>\nclass SensedInclusionSet\n{\npublic:\n SensedInclusionSet( bool sense ) : m_sense(sense) {}\n\n void Set( const T& value, boo...
230
8
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 17.86, "nodes": 133, "errors": 0, "source_hash": "7eca979b619a3f775d36b13696fefef4991284d1fce6fbd12b47876a47221086", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,444
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/ChatKit.framework/ChatKit */ @interface CKPresentationControllerRootViewController : UIViewController { bool _allowsRotation; } @property (nonatomic) bool allowsRotation; - (bool)allowsRotation; - (void)setAllowsRotation:(bool)arg1; - (...
30.36
11
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/ChatKit.framework/ChatKit\n */\n\n@interface CKPresentationControllerRootViewController : UIViewController {\n bool _allowsRotation;\n}\n\n@property (nonatomic) bool allowsRotation;\n\n- (bool)allowsRotation;\n- (void)se...
71
9
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 30.36, "nodes": 43, "errors": 0, "source_hash": "ac448e180e8e886d4f143aff3bc424d1146291b6055763bb622ab959169e9066", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nu...
78,445
c
/* Copyright 2013 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
37.28
64
(translation_unit) "/*\nCopyright 2013 Google Inc. All Rights Reserved.\n\nLicensed under the Apache License, Version 2.0 (the "License");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by ap...
542
0
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 37.28, "nodes": 360, "errors": 0, "source_hash": "e52ed391e306b61a46325986f1e259b900c73cc43e0447296e917c18336e2e5b", "categorized_nodes": 243}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,446
c
#ifndef _CHECK_INT_H_ #define _CHECK_INT_H_ #include <stdio.h> #include <check.h> #include <limits.h> #include "../snprintf.h" #include "defines.h" SUITE *int_tests(void); #endif //_CHECK_INT_H_
20.67
9
(translation_unit) "#ifndef _CHECK_INT_H_\n#define _CHECK_INT_H_\n\n#include <stdio.h>\n#include <check.h>\n#include <limits.h>\n#include "../snprintf.h"\n#include "defines.h"\n\nSUITE *int_tests(void);\n\n#endif //_CHECK_INT_H_\n" (preproc_ifdef) "#ifndef _CHECK_INT_H_\n#define _CHECK_INT_H_\n\n#include <stdio.h>\n#...
42
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 20.67, "nodes": 31, "errors": 0, "source_hash": "5abc593d52bcf9df091f9a528a55dc57d9bd1b89a528c0617ba05cf94a61c118", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
78,447
c
// Copyright 2014 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef METRICS_UPLOADER_METRICS_HASHES_H_ #define METRICS_UPLOADER_METRICS_HASHES_H_ #include <string> namespace metrics { // Computes a uint64 has...
41.42
12
(translation_unit) "// Copyright 2014 The Chromium OS Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef METRICS_UPLOADER_METRICS_HASHES_H_\n#define METRICS_UPLOADER_METRICS_HASHES_H_\n\n#include <string>\n\nnamespace metric...
42
1
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 41.42, "nodes": 23, "errors": 0, "source_hash": "d6890e5d57485a6d4277780439f539fcfbe47091f5a5f7c5cc4bcc20dbd92abd", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,448
c
/* Generated by configure */ #ifndef config_h #define config_h #define HAVE_STDINT_H 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_UINT_LEAST32_T 1 #define HAVE_SYS_SELECT_H 1 #include "config2.h" #endif
21.22
9
(translation_unit) "/* Generated by configure */\n#ifndef config_h\n#define config_h\n\n#define HAVE_STDINT_H 1\n#define HAVE_SYS_TYPES_H 1\n#define HAVE_UINT_LEAST32_T 1\n#define HAVE_SYS_SELECT_H 1\n\n#include "config2.h"\n\n#endif\n" (comment) "/* Generated by configure */" (preproc_ifdef) "#ifndef config_h\n#de...
31
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 21.22, "nodes": 26, "errors": 0, "source_hash": "ce70ebdccd7f8a00eb0e09c045f43dd49390021411a78c8c62d64de6a2fdd7dd", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef c...
78,449
c
// Copyright 2015 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_COMPILER_STATE_VALUES_UTILS_H_ #define V8_COMPILER_STATE_VALUES_UTILS_H_ #include <array> #include "src/common/globals.h" #include "src/comp...
38.3
102
(ERROR) "// Copyright 2015 the V8 project authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef V8_COMPILER_STATE_VALUES_UTILS_H_\n#define V8_COMPILER_STATE_VALUES_UTILS_H_\n\n#include <array>\n#include "src/common/globals.h"\n...
902
30
{"language": "c", "success": true, "metadata": {"lines": 102, "avg_line_length": 38.3, "nodes": 583, "errors": 0, "source_hash": "8146fa9b310c5d3d4ddb052c0970ab917c4b70c92c9117fe0514f4ebad5465b4", "categorized_nodes": 349}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "// Copyright 2015 the V8 ...
78,450
c
#include "codegen/codegen.h" #include "pass/pass.h" #include "pkg/package.h" bool ponydoc_init(pass_opt_t* options, const char* pony_installation) { // TODO STA: // ponyc does this here //if(!codegen_llvm_init()) // return false; //i don't think we need it but leaving for now if(!codegen_pass_init(option...
29.95
38
(translation_unit) "#include "codegen/codegen.h"\n#include "pass/pass.h"\n#include "pkg/package.h"\n\nbool ponydoc_init(pass_opt_t* options, const char* pony_installation)\n{\n // TODO STA:\n // ponyc does this here\n //if(!codegen_llvm_init())\n // return false;\n //i don't think we need it but leaving for now\n...
244
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 29.95, "nodes": 138, "errors": 0, "source_hash": "c1a6cd86c074124c27a4a782d4271c7e7e56bbff964ecd65df62e2a0f6c530a2", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
78,451
c
#ifndef UTILITIES_SORTED_VECTOR_H #define UTILITIES_SORTED_VECTOR_H #include <vector> #include <algorithm> template <class T, class Comp = std::less<T>, class Allocator = typename std::vector<T>::allocator_type> class SortedVector: protected std::vector<T, Allocator> { using vector_t = std::vector<T, Allocator>; ...
35.84
296
(translation_unit) "#ifndef UTILITIES_SORTED_VECTOR_H\n#define UTILITIES_SORTED_VECTOR_H\n#include <vector>\n#include <algorithm>\n\n\ntemplate <class T, \n class Comp = std::less<T>,\n class Allocator = typename std::vector<T>::allocator_type>\nclass SortedVector: protected std::vector<T, Allocator>\n{\n using vector_...
4,401
319
{"language": "c", "success": true, "metadata": {"lines": 296, "avg_line_length": 35.84, "nodes": 2705, "errors": 0, "source_hash": "3a97d87926af2a56a4c3af74b4ae2fd1b130569e9ef6c40fa41582921c9ddf70", "categorized_nodes": 1908}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#if...
78,452
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* set_utils.c :+: :+: :+: ...
26
101
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* set_utils.c ...
921
0
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 26.0, "nodes": 599, "errors": 0, "source_hash": "9fabeebc3538d8bbad2d186d82916602ade7e6853103935251fea0ef77cbe2b5", "categorized_nodes": 411}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,453
c
#if defined(CUDA_DECLARE_STATIC) #define _extern static #elif defined(CUDA_DECLARE_EXPORT) #define _extern extern #else #define _extern #endif #define DECLARE_FUNC_CUDA_SIMPLE(function) \ _extern FT##function FUNC_CUDA(function); #define DECLARE_FUNC_CUDA_WITH_NULLPTR(function) \ _extern FT##function FUNC_CUDA(fun...
31.82
66
(translation_unit) "#if defined(CUDA_DECLARE_STATIC)\n#define _extern static\n#elif defined(CUDA_DECLARE_EXPORT)\n#define _extern extern\n#else\n#define _extern \n#endif\n\n#define DECLARE_FUNC_CUDA_SIMPLE(function) \\n _extern FT##function FUNC_CUDA(function);\n\n#define DECLARE_FUNC_CUDA_WITH_NULLPTR(function) \\n _e...
312
15
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 31.82, "nodes": 228, "errors": 0, "source_hash": "1a6996c79749a5c4fb98a7d57b313e3c1107377afced94c5e583e5141c16c64d", "categorized_nodes": 141}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if defin...
78,454
c
#ifndef QAD_H #define QAD_H #include <QObject> #include <QUrl> /** * @brief Represents an Ad */ class QAd : public QObject { Q_OBJECT Q_ENUMS(Format) Q_PROPERTY(Format format READ format WRITE setFormat NOTIFY formatChanged) Q_PROPERTY(QUrl url READ url WRITE setUrl NOTIFY urlChanged) Q_PROPER...
24.9
67
(translation_unit) "#ifndef QAD_H\n#define QAD_H\n\n#include <QObject>\n#include <QUrl>\n\n/**\n * @brief Represents an Ad\n */\nclass QAd : public QObject\n{\n Q_OBJECT\n\n Q_ENUMS(Format)\n\n Q_PROPERTY(Format format READ format WRITE setFormat NOTIFY formatChanged)\n Q_PROPERTY(QUrl url READ url WRITE se...
428
15
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 24.9, "nodes": 275, "errors": 0, "source_hash": "907310f7db1f0157740675340bdf208685584632438748f7058689c8aa2b95e0", "categorized_nodes": 219}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,455
c
// // FindViewController.h // LoveBird // // Created by ShanCheli on 2018/1/27. // Copyright © 2018年 shancheli. All rights reserved. // #import "AppBaseTableViewController.h" @interface FindViewController : AppBaseTableViewController @end
23.3
10
(translation_unit) "//\n// FindViewController.h\n// LoveBird\n//\n// Created by ShanCheli on 2018/1/27.\n// Copyright © 2018年 shancheli. All rights reserved.\n//\n\n#import "AppBaseTableViewController.h"\n\n@interface FindViewController : AppBaseTableViewController\n\n@end\n" (comment) "//" (comment) "// FindV...
22
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 23.3, "nodes": 12, "errors": 0, "source_hash": "2c39e05e58f89c7cbd58898b3919627b0515031b2dd36dd64e4f75deaa6e0361", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"AppB...
78,456
c
// // CommentHeaderView.h // GFBS // // Created by <NAME> on 17/7/2017. // Copyright © 2017 apple. All rights reserved. // #import <UIKit/UIKit.h> @interface CommentHeaderView : UIView @property (nonatomic, weak) IBOutlet UIView *view; @end
21.27
11
(translation_unit) "//\n// CommentHeaderView.h\n// GFBS\n//\n// Created by <NAME> on 17/7/2017.\n// Copyright © 2017 apple. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface CommentHeaderView : UIView\n\n@property (nonatomic, weak) IBOutlet UIView *view;\n\n@end\n" (comment) "//" (comment) "// ...
38
7
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 21.27, "nodes": 24, "errors": 0, "source_hash": "0d546f82308aa31bdce975bc191ed603677cfaa16a1e55590df4c97a3669b0ca", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
78,457
c
#ifndef _STRINGS_HH #define _STRINGS_HH #ifdef __cplusplus extern "C" { #define _restrict #else #define _restrict restrict #endif typedef unsigned int size_t; #ifndef __cplusplus typedef unsigned short wchar_t; #endif #define NULL ((void *)0) size_t strlen(const char* s); size_t wcslen(const wchar_t* s); char*...
18.92
26
(translation_unit) "#ifndef _STRINGS_HH\n#define _STRINGS_HH\n\n#ifdef __cplusplus\nextern "C" {\n#define _restrict \n#else\n#define _restrict restrict\n#endif\n typedef unsigned int size_t;\n#ifndef __cplusplus\n typedef unsigned short wchar_t;\n#endif\n\n#define NULL ((void *)0)\n\n size_t strlen(const char* s);\n si...
144
4
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 18.92, "nodes": 111, "errors": 0, "source_hash": "986e5fff3252474768cc61c8f5f94cd3ba3a54ed2a7ff4a5028190e9ebf23a9b", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,458
c
#include <zlib.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> // Heng Li klib #include "klib/kseq.h" #include "klib/kbtree.h" // kbtree struct typedef struct { char *key; int count; } elem_t; // initialize kbtree #define elem_cmp(a, b) (strcmp((a).key, ...
25.37
196
(translation_unit) "#include <zlib.h>\n#include <stdbool.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <unistd.h>\n\n// Heng Li klib\n#include "klib/kseq.h"\n#include "klib/kbtree.h"\n\n// kbtree struct\ntypedef struct {\n char *key;\n int count;\n} elem_t;\n\n// initialize kbtree\n#d...
1,886
0
{"language": "c", "success": true, "metadata": {"lines": 196, "avg_line_length": 25.37, "nodes": 1108, "errors": 0, "source_hash": "d4ddbadf2d895d6d16aee65cef7213d0548649599ad09caab74eb61d19d44924", "categorized_nodes": 760}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
78,459
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "DVTDocumentLocation.h" @class GTFActionModel, SKActionEditorNavigableRepresentedNode, SKNode; @interface SKDocumentLocation : DVTDocumentLocation { id _skobject; } - (void...
37.52
21
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "DVTDocumentLocation.h"\n\n@class GTFActionModel, SKActionEditorNavigableRepresentedNode, SKNode;\n\n@interface SKDocumentLocation : DVTDocumentLocation\...
180
22
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 37.52, "nodes": 110, "errors": 0, "source_hash": "08413e885a95baf7d60033fc6acfaa3978d5981667dc44dfb5e98740e34275ac", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
78,460
c
#pragma once #include <QWidget> #include <QFormLayout> #include <QStandardItemModel> #include <QDataWidgetMapper> #include "composer/package/form/visitor/VisitorInterface.h" #include "composer/package/form/visitor/AcceptorInterface.h" namespace composer_gui { namespace composer { namespace package { namespace form {...
23.87
30
(translation_unit) "#pragma once\n\n#include <QWidget>\n#include <QFormLayout>\n#include <QStandardItemModel>\n#include <QDataWidgetMapper>\n\n#include "composer/package/form/visitor/VisitorInterface.h"\n#include "composer/package/form/visitor/AcceptorInterface.h"\n\nnamespace composer_gui\n{\nnamespace composer\n{\nna...
160
6
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 23.87, "nodes": 91, "errors": 0, "source_hash": "ae0c1cb90320278f149f89162a49f93c94aa9016450337b974475514319753f5", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
78,461
c
/******************************************************************************* * * Program: Reverse Words demonstration * * Description: Example of reversing the words in a string in C. * * YouTube Lesson: https://www.youtube.com/watch?v=Jy5QILbHKVA * * Author: <NAME> @ https://portfoliocourses.com * **************...
30.63
63
(translation_unit) "/*******************************************************************************\n*\n* Program: Reverse Words demonstration\n* \n* Description: Example of reversing the words in a string in C.\n*\n* YouTube Lesson: https://www.youtube.com/watch?v=Jy5QILbHKVA \n*\n* Author: <NAME> @ https://portfolio...
276
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 30.63, "nodes": 162, "errors": 0, "source_hash": "a18567680333751878bf8c8644b28c21e4f9d4879aa8e3780fa8f28497704bc7", "categorized_nodes": 107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,462
c
/////////////////////////////////////////////////////////////////////////////////// // School: Brno University of Technology, Faculty of Information Technology // // Course: Formal Languages and Compilers // // Project: IFJ17 ...
33.65
75
(translation_unit) "///////////////////////////////////////////////////////////////////////////////////\n// School: Brno University of Technology, Faculty of Information Technology //\n// Course: Formal Languages and Compilers //\n// Project: IFJ17 ...
173
0
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 33.65, "nodes": 115, "errors": 0, "source_hash": "7439141b939f78fc7550cfc420e2cb306738839a020f7d46e89677eeae881fa6", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,463
c
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_ANDROID_CHROME_APPLICATION_H_ #define CHROME_BROWSER_ANDROID_CHROME_APPLICATION_H_ #include <jni.h> #include "base/macros.h" nam...
34.67
21
(translation_unit) "// Copyright 2013 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef CHROME_BROWSER_ANDROID_CHROME_APPLICATION_H_\n#define CHROME_BROWSER_ANDROID_CHROME_APPLICATION_H_\n\n#include <jni.h>\n\n...
79
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 34.67, "nodes": 34, "errors": 0, "source_hash": "afc1f3b9f3e352b1f1de56aba6812e435f7b344e50e5b412de1df292ac6d1065", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,464
c
/* Copyright 2015. The Regents of the University of California. * Copyright 2015-2016. <NAME>. * All rights reserved. Use of this source code is governed by * a BSD-style license which can be found in the LICENSE file. * * Authors: * 2014 <NAME> <<EMAIL>> * 2015-2016 <NAME> <<EMAIL>> */ #include <stdbool.h> #i...
31.27
196
(translation_unit) "/* Copyright 2015. The Regents of the University of California.\n * Copyright 2015-2016. <NAME>.\n * All rights reserved. Use of this source code is governed by\n * a BSD-style license which can be found in the LICENSE file.\n *\n * Authors:\n * 2014 <NAME> <<EMAIL>>\n * 2015-2016 <NAME> <<EMAIL>>\n...
1,919
10
{"language": "c", "success": true, "metadata": {"lines": 196, "avg_line_length": 31.27, "nodes": 1130, "errors": 0, "source_hash": "d7ce08416427b33b652c781a04b50f0cf618e28423cd8c31866e32cd9457c9d9", "categorized_nodes": 759}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
78,465
c
/* * This file is part of the Soletta (TM) Project * * Copyright (C) 2015 Intel Corporation. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.a...
32.72
144
(translation_unit) "/*\n * This file is part of the Soletta (TM) Project\n *\n * Copyright (C) 2015 Intel Corporation. All rights reserved.\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 Licens...
1,183
1
{"language": "c", "success": true, "metadata": {"lines": 144, "avg_line_length": 32.72, "nodes": 694, "errors": 0, "source_hash": "be65c5fa29789a9400e1a2b9967ed59fca9d97f347d6bc31667095348e73705d", "categorized_nodes": 513}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
78,466
c
/* Use common source from wlags49_h2 */ #include "../wlags49_h2/wl_enc.h"
36
2
(translation_unit) "/* Use common source from wlags49_h2 */\n#include "../wlags49_h2/wl_enc.h"\n" (comment) "/* Use common source from wlags49_h2 */" (preproc_include) "#include "../wlags49_h2/wl_enc.h"\n" (#include) "#include" (string_literal) ""../wlags49_h2/wl_enc.h"" (") """ (string_content)...
8
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 36.0, "nodes": 3, "errors": 0, "source_hash": "ff01565de0bb5bdb245f26e3bf549d44d4f9ab160267e66e6440d276af4f4551", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \...
78,467
c
// Animation names #define BODYFORPLAYER_ANIM_DEFAULT 0 // Color names // Patch names // Names of collision boxes #define BODYFORPLAYER_COLLISION_BOX_PART_NAME 0 // Attaching position names // Sound names
24.62
8
(translation_unit) "// Animation names\n#define BODYFORPLAYER_ANIM_DEFAULT 0\n\n// Color names\n\n// Patch names\n\n// Names of collision boxes\n#define BODYFORPLAYER_COLLISION_BOX_PART_NAME 0\n\n// Attaching position names\n\n// Sound names\n" (comment) "// Animation names" (preproc_def) "#define BODYFORPLAYER_ANI...
15
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 24.62, "nodes": 8, "errors": 0, "source_hash": "1d03bb7f872c7a212f7ad80a135497cd9d97213a2f5f0d70de5dc45cbffe0690", "categorized_nodes": 2}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define BODYF...
78,468
c
#ifndef _CONTEXT_H #define _CONTEXT_H #ifdef __ASM__ #define CTX_OFFSET_REG_0 0x0 #define CTX_OFFSET_REG_2 0x10 #define CTX_OFFSET_REG_4 0x20 #define CTX_OFFSET_REG_6 0x30 #define CTX_OFFSET_REG_8 0x40 #define CTX_OFFSET_REG_10 0x50 #define CTX_OFFSET_REG_12 0x60 #define CTX_OFFSET_REG_14 0x70 #define CTX_OFFSET_REG_...
24.05
38
(translation_unit) "#ifndef _CONTEXT_H\n#define _CONTEXT_H\n\n#ifdef __ASM__\n\n#define CTX_OFFSET_REG_0 0x0\n#define CTX_OFFSET_REG_2 0x10\n#define CTX_OFFSET_REG_4 0x20\n#define CTX_OFFSET_REG_6 0x30\n#define CTX_OFFSET_REG_8 0x40\n#define CTX_OFFSET_REG_10 0x50\n#define CTX_OFFSET_REG_12 0x60\n#define CTX_OFFSET_REG...
171
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 24.05, "nodes": 142, "errors": 0, "source_hash": "943e17f63e772925983552905e1dc1d4c1b46abcfa6bf3c6b6d1d39524b4eb07", "categorized_nodes": 69}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,469
c
#ifdef _MSC_VER #pragma once #endif #ifndef TIMER_H_33374EFC_A528_4DBB_B101_7A4B4F52E987 #define TIMER_H_33374EFC_A528_4DBB_B101_7A4B4F52E987 #include <thrust/detail/config.h> #if THRUST_DEVICE_SYSTEM == THRUST_DEVICE_SYSTEM_CUDA # include <cuda_runtime_api.h> # include <iostream> # include <string> #else # include ...
20.79
76
(translation_unit) "#ifdef _MSC_VER\n#pragma once\n#endif\n\n#ifndef TIMER_H_33374EFC_A528_4DBB_B101_7A4B4F52E987\n#define TIMER_H_33374EFC_A528_4DBB_B101_7A4B4F52E987\n\n#include <thrust/detail/config.h>\n\n#if THRUST_DEVICE_SYSTEM == THRUST_DEVICE_SYSTEM_CUDA\n# include <cuda_runtime_api.h>\n# include <iostream>\n# i...
449
13
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 20.79, "nodes": 274, "errors": 0, "source_hash": "78e284615ceb7855c6de7c50325c4efcd9dfa73d69049e357f6546f4500a87b2", "categorized_nodes": 194}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef...
78,470
c
#include <string.h> #include <ctype.h> #include <kylestructs.h> #include <sql_manager.h> #include <validation.h> // used for converting percent encoded chars to ASCII static short get_hex_char_val(char c); static char hex_to_char(const char* hex); static int decode(char* dest, const char* src, int max_len); // enco...
20.41
263
(translation_unit) "#include <string.h>\n#include <ctype.h>\n#include <kylestructs.h>\n\n#include <sql_manager.h>\n#include <validation.h>\n\n\n// used for converting percent encoded chars to ASCII\nstatic short get_hex_char_val(char c);\nstatic char hex_to_char(const char* hex);\nstatic int decode(char* dest, const ch...
1,764
0
{"language": "c", "success": true, "metadata": {"lines": 263, "avg_line_length": 20.41, "nodes": 1095, "errors": 0, "source_hash": "4b46e05839805cf5edfb4f42a59e0033f5582c43a3645f91ef738a731dd9c0ec", "categorized_nodes": 715}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
78,471
c
/* * Copyright (c) 2002, Intel Corporation. All rights reserved. * Created by: bing.wei.liu REMOVE-THIS AT intel DOT com * This file is licensed under the GPL license. For the full content * of this license, see the COPYING file at the top level of this * source tree. * Test that pthread_mutexattr_setprotocol(...
33.14
56
(translation_unit) "/*\n * Copyright (c) 2002, Intel Corporation. All rights reserved.\n * Created by: bing.wei.liu REMOVE-THIS AT intel DOT com\n * This file is licensed under the GPL license. For the full content\n * of this license, see the COPYING file at the top level of this\n * source tree.\n\n * Test that pth...
278
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 33.14, "nodes": 145, "errors": 0, "source_hash": "896d73e5df4b0ba6dadefa52c17f02245e456a7258bb5ebb6c40c2e722808650", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,472
c
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef MEDIA_FORMATS_MP2T_ES_PARSER_TEST_BASE_H_ #define MEDIA_FORMATS_MP2T_ES_PARSER_TEST_BASE_H_ #include <stddef.h> #include <stdint.h> #include <ss...
35.12
67
(translation_unit) "// Copyright 2014 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef MEDIA_FORMATS_MP2T_ES_PARSER_TEST_BASE_H_\n#define MEDIA_FORMATS_MP2T_ES_PARSER_TEST_BASE_H_\n\n#include <stddef.h>\n#incl...
338
13
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 35.12, "nodes": 197, "errors": 0, "source_hash": "7aa023ff1a04847ebf8116d851057876e4c6750110f1bcc8a0a0778c86d53bea", "categorized_nodes": 142}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,473
c
/* * Copyright 2015 Rockchip Electronics Co. LTD * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
34
220
(translation_unit) "/*\n * Copyright 2015 Rockchip Electronics Co. LTD\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * ...
2,518
0
{"language": "c", "success": true, "metadata": {"lines": 220, "avg_line_length": 34.0, "nodes": 1574, "errors": 0, "source_hash": "d93e516700215927d384330a178790360953dd0105a27785222ab8c7156b85d7", "categorized_nodes": 1277}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
78,474
c
// // PWPagination.h // // Copyright (c) 2013 Phunware Inc. All rights reserved. // #import <Foundation/Foundation.h> /** `PWPagination` objects encapsulate all pagination details associated with fetching an array of content objects. */ @interface PWPagination : NSObject /** The starting index for the returne...
27.6
40
(translation_unit) "//\n// PWPagination.h\n\n//\n// Copyright (c) 2013 Phunware Inc. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n/**\n `PWPagination` objects encapsulate all pagination details associated with fetching an array of content objects.\n */\n\n@interface PWPagination : NSObject\n\n/**\...
121
24
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 27.6, "nodes": 77, "errors": 0, "source_hash": "41c86b9090cc390ae4ba0135f1527ac38c85f29886bbacd5d3696c1ab863cc51", "categorized_nodes": 44}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
78,475
c
/** * @file matrix_transpose_internal.h * * @brief Internal implementation of matrix transposition * * @author <NAME> */ #ifdef _MSC_VER #pragma once #endif #ifndef LIGHTMAT_MATRIX_TRANSPOSE_INTERNAL_H_ #define LIGHTMAT_MATRIX_TRANSPOSE_INTERNAL_H_ #include <light_mat/common/memory.h> #include <light_mat/matri...
24.31
121
(translation_unit) "/**\n * @file matrix_transpose_internal.h\n *\n * @brief Internal implementation of matrix transposition\n *\n * @author <NAME>\n */\n\n#ifdef _MSC_VER\n#pragma once\n#endif\n\n#ifndef LIGHTMAT_MATRIX_TRANSPOSE_INTERNAL_H_\n#define LIGHTMAT_MATRIX_TRANSPOSE_INTERNAL_H_\n\n#include <light_mat/common/...
1,107
16
{"language": "c", "success": true, "metadata": {"lines": 121, "avg_line_length": 24.31, "nodes": 678, "errors": 0, "source_hash": "26eb2698ffe409813f3abadd5460838377a22f7f115245f782c26fd7ba26cb40", "categorized_nodes": 504}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifde...
78,476
c
/* * ***** BEGIN GPL LICENSE BLOCK ***** * * 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 d...
33.37
142
(translation_unit) "/*\n * ***** BEGIN GPL LICENSE BLOCK *****\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * as published by the Free Software Foundation; either version 2\n * of the License, or (at your option) any later versio...
741
0
{"language": "c", "success": true, "metadata": {"lines": 142, "avg_line_length": 33.37, "nodes": 517, "errors": 0, "source_hash": "43b611ab14742b1abe8d3dea7436ea395712aa7e5b117fdc071605ed30d8506f", "categorized_nodes": 363}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,477
c
//此源码被清华学神尹成大魔王专业翻译分析并修改 //尹成QQ77025077 //尹成微信18510341407 //尹成所在QQ群721929980 //尹成邮箱 <EMAIL> //尹成毕业于清华大学,微软区块链领域全球最有价值专家 //https://mvp.microsoft.com/zh-cn/PublicProfile/4033620 //版权所有(c)2009-2010 <NAME> //版权所有(c)2009-2018比特币核心开发者 //根据MIT软件许可证分发,请参见随附的 //文件复制或http://www.opensource.org/licenses/mit-license.php。 #ifndef ...
35.39
92
(translation_unit) "//此源码被清华学神尹成大魔王专业翻译分析并修改\n//尹成QQ77025077\n//尹成微信18510341407\n//尹成所在QQ群721929980\n//尹成邮箱 <EMAIL>\n//尹成毕业于清华大学,微软区块链领域全球最有价值专家\n//https://mvp.microsoft.com/zh-cn/PublicProfile/4033620\n//版权所有(c)2009-2010 <NAME>\n//版权所有(c)2009-2018比特币核心开发者\n//根据MIT软件许可证分发,请参见随附的\n//文件复制或http://www.opensource.org/licens...
732
40
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 35.39, "nodes": 513, "errors": 0, "source_hash": "480bd6106655be65fbbbb11230d185e7072028702e9c8bc9ed233cd5a4df358b", "categorized_nodes": 321}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "y>\n#include <...
78,478
c
/** * \file * \brief create child process library */ /* * Copyright (c) 2016, ETH Zurich. * All rights reserved. * * This file is distributed under the terms in the attached LICENSE file. * If you do not find this file, copies can be found by writing to: * ETH Zurich D-INFK, Universitaetsstrasse 6, CH-8092 Zu...
38.29
56
(translation_unit) "/**\n * \file\n * \brief create child process library\n */\n\n/*\n * Copyright (c) 2016, ETH Zurich.\n * All rights reserved.\n *\n * This file is distributed under the terms in the attached LICENSE file.\n * If you do not find this file, copies can be found by writing to:\n * ETH Zurich D-INFK, Uni...
380
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 38.29, "nodes": 287, "errors": 0, "source_hash": "d81b2e3cc15515e9ddc2a59c89d86884ce4774ba2aaf86dd26c1bbafe7af4980", "categorized_nodes": 212}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
78,479
c
/* GPIO Example This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include <stdio.h> #include...
35.64
194
(translation_unit) " GPIO Example\n\n This example code is in the Public Domain (or CC0 licensed, at your option.)\n\n Unless required by applicable law or agreed to in writing, this\n software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR\n CONDITIONS OF ANY KIND, either express or implied.\n*/\n#i...
1,357
0
{"language": "c", "success": true, "metadata": {"lines": 194, "avg_line_length": 35.64, "nodes": 719, "errors": 0, "source_hash": "d13afb28079825c81da24708b8f074d4c24a573cbbcd8bfc8c7a034fc52aae3d", "categorized_nodes": 553}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "ncl...
78,480
c
#include <stdlib.h> #include <sys/types.h> #include <sys/wait.h> #include <unistd.h> #define SLEEP_TIME 5 int main() { // 8 zombies for (int i = 0; i < 8; ++i) { if (fork() == 0) { // those children will die way before their parent exit(0); } } // 7 orphans ...
22.79
33
(translation_unit) "#include <stdlib.h>\n#include <sys/types.h>\n#include <sys/wait.h>\n#include <unistd.h>\n\n#define SLEEP_TIME 5\n\nint main()\n{\n // 8 zombies\n for (int i = 0; i < 8; ++i) {\n if (fork() == 0) {\n // those children will die way before their parent\n exit(0);\n ...
202
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 22.79, "nodes": 116, "errors": 0, "source_hash": "e8d526b77ebbb33fdd9f046e0eb0ff26aa7000e1102a3f10b9a5917ce1d69e7b", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
78,481
c
#ifndef __ZONE_H__ #define __ZONE_H__ #include "hnet.h" #include "nodedefine.h" #include "spin_mutex.h" #include "util.h" class Zone { public: static Zone& Instance() { static Zone g_instance; return g_instance; } bool Start(); inline int16_t Calc(int8_t service, int16_t zone, const std::string& key) { ret...
23.81
27
(translation_unit) "#ifndef __ZONE_H__\n#define __ZONE_H__\n#include "hnet.h"\n#include "nodedefine.h"\n#include "spin_mutex.h"\n#include "util.h"\n\nclass Zone {\npublic:\n static Zone& Instance() {\n static Zone g_instance;\n return g_instance;\n }\n\n bool Start();\n\n inline int16_t Calc(int8_t service, int16_t z...
234
5
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 23.81, "nodes": 131, "errors": 0, "source_hash": "44676a88d265ec9a103e20cb5e0882dd7d2185a15bab902bd0a268a7ca8f6531", "categorized_nodes": 92}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
78,482
c
#ifndef COM_B2RMPALETTE #define COM_B2RMPALETTE #include "csftypes.h" /*! The number of colours in the palette with colours for continuous classes. */ static const size_t b2rmPaletteSize = 200; /*! The maximum of the colour values. */ static const UINT2 b2rmColourMaxVal = 100; /*! The palette with col...
17.77
222
(translation_unit) "#ifndef COM_B2RMPALETTE\n#define COM_B2RMPALETTE\n\n\n\n#include "csftypes.h"\n\n\n\n/*!\n The number of colours in the palette with colours for continuous classes.\n*/\nstatic const size_t b2rmPaletteSize = 200;\n\n\n\n/*!\n The maximum of the colour values.\n*/\nstatic const UINT2 b2rmColourMaxV...
1,856
0
{"language": "c", "success": true, "metadata": {"lines": 222, "avg_line_length": 17.77, "nodes": 831, "errors": 0, "source_hash": "d4a1c2376a73f2433b2fe66032a2be31838cd2b5c099e5e6c9a019cba7aedda0", "categorized_nodes": 619}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
78,483
c
// // UIDocumentPickerViewController+NavigationBar.h // XXTExplorer // // Created by Zheng on 07/11/2017. // Copyright © 2017 Zheng. All rights reserved. // #import <UIKit/UIKit.h> @interface UIDocumentPickerViewController (NavigationBar) @end
23.8
10
(translation_unit) "//\n// UIDocumentPickerViewController+NavigationBar.h\n// XXTExplorer\n//\n// Created by Zheng on 07/11/2017.\n// Copyright © 2017 Zheng. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIDocumentPickerViewController (NavigationBar)\n\n@end\n" (comment) "//" (comment) "// ...
23
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 23.8, "nodes": 12, "errors": 0, "source_hash": "a16cd1ba5121d3a6de1c3c333e689f2228ee64f2ace37d290cf8b2fe694e01b0", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UIK...
78,484
c
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SERVICES_DEVICE_PUBLIC_CPP_TEST_SCOPED_NFC_OVERRIDER_H_ #define SERVICES_DEVICE_PUBLIC_CPP_TEST_SCOPED_NFC_OVERRIDER_H_ #include "mojo/public/cpp...
44.96
26
(translation_unit) "// Copyright 2021 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef SERVICES_DEVICE_PUBLIC_CPP_TEST_SCOPED_NFC_OVERRIDER_H_\n#define SERVICES_DEVICE_PUBLIC_CPP_TEST_SCOPED_NFC_OVERRIDER_H_\n...
147
6
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 44.96, "nodes": 75, "errors": 0, "source_hash": "62113de8335114f9d609ed7b96e9d0b7638304e4f989cbdd86cbc620d061996b", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,485
c
// // include IProgressListener interface // #ifdef _MIDL_USE_GUIDDEF_ #ifndef INITGUID #define INITGUID #include <guiddef.h> #undef INITGUID #else #include <guiddef.h> #endif #define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \ DEFINE_GUID(name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) ...
29.54
192
(translation_unit) "// \n// include IProgressListener interface \n// \n#ifdef _MIDL_USE_GUIDDEF_ \n \n#ifndef INITGUID \n#define INITGUID \n#include <guiddef.h> \n#undef INITGUID \n#else \n#include <guiddef.h> \n#endif \n \n#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \ \n DEFINE_GUID(name...
832
27
{"language": "c", "success": true, "metadata": {"lines": 192, "avg_line_length": 29.54, "nodes": 571, "errors": 0, "source_hash": "01e2d26e700e951b6e67cd8b1438725dfd5863b996fd03d67f4fde01c931c440", "categorized_nodes": 383}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifde...
78,486
c
#ifndef BitStringCrsOnePoint_h #define BitStringCrsOnePoint_h namespace BitString { /** * \ingroup bitstring genotypes * \brief BitString genotype: one point crossover operator */ class BitStringCrsOnePoint : public CrossoverOp { public: bool mate(GenotypeP gen1, GenotypeP gen2, GenotypeP child); bool initializ...
23.68
19
(translation_unit) "#ifndef BitStringCrsOnePoint_h\n#define BitStringCrsOnePoint_h\n\n\nnamespace BitString\n{\n\n/**\n * \ingroup bitstring genotypes\n * \brief BitString genotype: one point crossover operator\n */\nclass BitStringCrsOnePoint : public CrossoverOp\n{\npublic:\n bool mate(GenotypeP gen1, GenotypeP gen2,...
82
2
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 23.68, "nodes": 52, "errors": 0, "source_hash": "0aa4d56e793d4c7aa23082000a685007be00c8c9be58be4521f9337a9b4bbccb", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
78,487
c
// CGAskDetailAttrib.h // // 取角色的详细属性 // ////////////////////////////////////////////////////// #ifndef __CGASKDETAILATTRIB_H__ #define __CGASKDETAILATTRIB_H__ #include "Type.h" #include "Packet.h" #include "PacketFactory.h" namespace Packets { class CGAskDetailAttrib : public Packet { public: CGAskDetailAttri...
26.92
51
(translation_unit) "// CGAskDetailAttrib.h\n// \n// 取角色的详细属性\n// \n//////////////////////////////////////////////////////\n\n#ifndef __CGASKDETAILATTRIB_H__\n#define __CGASKDETAILATTRIB_H__\n\n#include "Type.h"\n#include "Packet.h"\n#include "PacketFactory.h"\n\nnamespace Packets\n{\nclass CGAskDetailAttrib : public Pa...
323
15
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 26.92, "nodes": 186, "errors": 0, "source_hash": "1eda954262c8d821d4c7f73d045c519a27edc42fc37037a066ffc16522b4322e", "categorized_nodes": 136}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ETAILA...
78,488
c
#pragma once #include "ILogger.h" struct LogChannelInfo { LogChannel m_id; std::string m_name; LogMode m_mode; LogChannelInfo(LogChannel id, const std::string& name, LogMode mode): m_id(id), m_name(name), m_mode(mode) {} }; class Logger : public ILogger { LogChannel LOGGER_OWN_CHANNEL; t...
25.43
42
(translation_unit) "#pragma once \n#include "ILogger.h" \n \nstruct LogChannelInfo \n{ \n LogChannel m_id; \n std::string m_name; \n LogMode m_mode; \n \n LogChannelInfo(LogChannel id, const std::string& name, LogMode mode): \n m_id(id), m_name(name), m_mode(mode) \n {} \n}; \n \nclass Logger : public ILogger \n{ \n ...
388
23
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 25.43, "nodes": 237, "errors": 0, "source_hash": "eb04903a23932b0cd4ac62200503677f3997cdefde2a05189ceee940d1579fa0", "categorized_nodes": 175}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
78,489
c
#include <stdio.h> #include <string.h> /* check if one string is a rotation of a nother meaning: can and nac will match. can and cna will not match. using strstr as a way to check for substring */ typedef char * bool; #define true "true"; #define false "false"; int length (char *string){ int count = 0; while(*s...
22.49
39
(translation_unit) "#include <stdio.h>\n#include <string.h>\n\n/*\ncheck if one string is a rotation of a nother meaning:\n\ncan and nac will match.\ncan and cna will not match.\n\nusing strstr as a way to check for substring\n*/\n\ntypedef char * bool;\n#define true "true";\n#define false "false";\n\nint length (char...
332
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 22.49, "nodes": 211, "errors": 0, "source_hash": "6f0214d4815bd601b6bdab07f56f57637f4fbc7cadfff517a836879ab13420c8", "categorized_nodes": 127}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,490
c
#pragma once #include "Sprite.h" class SpriteLoader { public: static Sprite *loadSprite(const char *path, int x, int y, int width, int height, Graphics *g); };
25.83
6
(translation_unit) "#pragma once\n\n#include "Sprite.h"\n\nclass SpriteLoader {\npublic:\n static Sprite *loadSprite(const char *path, int x, int y, int width, int height, Graphics *g);\n};\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "Spr...
62
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 25.83, "nodes": 38, "errors": 0, "source_hash": "8b8ef2bb7144d151896d185d45725b3e6cdd6f01650e09c33ddc6425d8889c3a", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
78,491
c
/* * File: queue.c * Author: sunixy * * Created on December 30, 2015, 3:43 PM */ #include "st_queue.h" int16_t init_queue(Queue *q, Message *address, uint16_t size) { if ((NULL == address) || (0 == size)) { return -1; } q->queue = address; q->size = size; q->head = q->tail = 0;...
18.38
39
(translation_unit) "/*\n * File: queue.c\n * Author: sunixy\n *\n * Created on December 30, 2015, 3:43 PM\n */\n#include "st_queue.h"\n\n \nint16_t init_queue(Queue *q, Message *address, uint16_t size) { \n if ((NULL == address) || (0 == size)) {\n return -1;\n }\n q->queue = address; \n q->size ...
288
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 18.38, "nodes": 185, "errors": 0, "source_hash": "304f20329dbf0624d0e1f40fb1b48b2388de1d06a1572c980909f0cbc7c862de", "categorized_nodes": 146}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,492
c
#pragma once #include <memory> #include <map> #include <hw/interfaces/IDragonMotorController.h> #include <hw/usages/MotorControllerUsage.h> typedef std::map <MotorControllerUsage::MOTOR_CONTROLLER_USAGE, std::shared_ptr<IDragonMotorController>> IDragonMotorControllerMap;
30.44
9
(translation_unit) "#pragma once \n \n#include <memory> \n#include <map> \n \n#include <hw/interfaces/IDragonMotorController.h> \n#include <hw/usages/MotorControllerUsage.h> \n \ntypedef std::map <MotorControllerUsage::MOTOR_CONTROLLER_USAGE, std::shared_ptr<IDragonMotorController>> IDragonMotorControllerMap; \n" (pr...
39
2
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 30.44, "nodes": 30, "errors": 0, "source_hash": "9f1469cf3cafccb98bf1179323a110550062e673ce082640d7f11f15eda30e1e", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma on...
78,493
c
#pragma once #include "si_base/gpu/gfx_graphics_state.h" namespace SI { class GfxGraphicsStateEx { public: GfxGraphicsStateEx(); ~GfxGraphicsStateEx(); void Initialize(const GfxGraphicsStateDesc& desc); void Terminate(); GfxGraphicsState& Get(){ return m_state; } const GfxGraphicsState& Get() const{...
22.24
17
(translation_unit) "ragma once\n\n#include "si_base/gpu/gfx_graphics_state.h"\n\nnamespace SI\n{\n class GfxGraphicsStateEx\n {\n public:\n GfxGraphicsStateEx();\n ~GfxGraphicsStateEx();\n\n void Initialize(const GfxGraphicsStateDesc& desc);\n void Terminate();\n\n GfxGraphicsState& Get(){ return m_state; }\n con...
111
3
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 22.24, "nodes": 57, "errors": 0, "source_hash": "3d04d1865d54468eb0ec01c071c441005d024ce9be8364c5769cd8dcb1aa9a09", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma onc...
78,494
c
#pragma once #include "bindable.h" namespace prev { class Uniform : public HandledObject<Uniform>, public Bindable { protected: Uniform() {} public: virtual ~Uniform() {} virtual void Bind() override = 0; virtual void UnBind() override = 0; //Shader type used by DirectX //ID3D11DeviceContext::VSSetC...
33.26
23
(translation_unit) "#pragma once\n\n#include "bindable.h"\n\nnamespace prev {\n\n class Uniform : public HandledObject<Uniform>, public Bindable {\n protected:\n Uniform() {}\n public:\n virtual ~Uniform() {}\n\n virtual void Bind() override = 0;\n virtual void UnBind() override = 0;\n\n //Shader type used by Dire...
204
14
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 33.26, "nodes": 131, "errors": 0, "source_hash": "82bbdd98e7550ba74701f184a00ee990bc15a46e380573ba0020ebd7cd1df7be", "categorized_nodes": 79}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
78,495
c
#include <stdio.h> #define N 100000 int binarysearch(int); int S[N],T,n,q; int main() { int cnt=0; scanf("%d",&n); for(int i=0;i<n;i++) scanf("%d",&S[i]); scanf("%d",&q); for(int i=0;i<q;i++){ scanf("%d",&T); if(binarysearch(T)) cnt++; } printf("%d\n",cnt); return 0; } int binarysearch(int num) { int lef...
15.96
28
(translation_unit) "#include <stdio.h>\n#define N 100000\nint binarysearch(int);\nint S[N],T,n,q;\nint main()\n{\n int cnt=0;\n scanf("%d",&n);\n for(int i=0;i<n;i++) scanf("%d",&S[i]);\n scanf("%d",&q);\n for(int i=0;i<q;i++){\n scanf("%d",&T);\n if(binarysearch(T)) cnt++;\n }\n printf("%d\n",cnt);\n return 0; \n}\...
295
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 15.96, "nodes": 173, "errors": 0, "source_hash": "0891263e9972f88b475c16726d52e78e972798e3be6444a6a1800409ad8a31cd", "categorized_nodes": 123}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
78,496
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import <ActionKit/FATObject.h> @class NSNumber, NSString; @interface EDAMClientUsageMetrics : FATObject { NSNumber *_sessions; NSString *_subjectConsumerKey; NSString *_sub...
35.3
20
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import <ActionKit/FATObject.h>\n\n@class NSNumber, NSString;\n\n@interface EDAMClientUsageMetrics : FATObject\n{\n NSNumber *_sessions;\n NSString *_subje...
140
14
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 35.3, "nodes": 86, "errors": 0, "source_hash": "d724c36b539cb22f626be6ea24118596310ab4101a94d8a547f2ef78f520c3d2", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <A...
78,497
c
void error(); void jumpout(); void scanargs(); void initialize(); void openinput(); boolean zinputln(); #define inputln(f) zinputln((textfile) (f)) boolean linesdontmatch(); void primethechangebuffer(); void checkchange(); void getline(); namepointer lookup(); void getnext(); void zflushbuffer(); #define flushbuffer(b,...
27.6
25
(translation_unit) "void error();\nvoid jumpout();\nvoid scanargs();\nvoid initialize();\nvoid openinput();\nboolean zinputln();\n#define inputln(f) zinputln((textfile) (f))\nboolean linesdontmatch();\nvoid primethechangebuffer();\nvoid checkchange();\nvoid getline();\nnamepointer lookup();\nvoid getnext();\nvoid zflus...
205
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 27.6, "nodes": 133, "errors": 0, "source_hash": "22830311cf245cf6e02ed826f7cedcf7ee7766510312efd261d1795e03756f6a", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "void error...
78,498
c
/* * Antelope Toolbox for Matlab * * Copyright (c) 2006 Lindquist Consulting, Inc. * All rights reserved. * * Written by Dr. <NAME>, Lindquist Consulting, Inc. * *...
29.05
58
(translation_unit) "/* \n * Antelope Toolbox for Matlab\n * \n * Copyright (c) 2006 Lindquist Consulting, Inc.\n * All rights reserved. \n * \n * Written by Dr. <NAME>, Lindqui...
289
2
{"language": "c", "success": true, "metadata": {"lines": 58, "avg_line_length": 29.05, "nodes": 159, "errors": 0, "source_hash": "da1bc1b1343512f25772fa2ba844e1634b90f6d9bd703ee5155fb2ff7e8070f4", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ...
78,499