hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ec3bdcc5af887ba086db9ae3c637e9fe3731d529 | 855 | cpp | C++ | src/gamedata/formations.cpp | Kor-Hal/SisterRay | 4e8482525a5d7f77dee186f438ddb16523a61e7e | [
"BSD-3-Clause"
] | null | null | null | src/gamedata/formations.cpp | Kor-Hal/SisterRay | 4e8482525a5d7f77dee186f438ddb16523a61e7e | [
"BSD-3-Clause"
] | null | null | null | src/gamedata/formations.cpp | Kor-Hal/SisterRay | 4e8482525a5d7f77dee186f438ddb16523a61e7e | [
"BSD-3-Clause"
] | null | null | null | #include "formations.h"
#include "../impl.h"
SISTERRAY_API FormationData srGetFormation(u16 modFormationID, const char* modName) {
auto name = std::string(modName) + std::to_string(modFormationID);
return gContext.formations.getElement(name);
}
SISTERRAY_API void srAddFormation(FormationData formationData, u... | 37.173913 | 113 | 0.790643 | Kor-Hal |
ec3d72ac8ed58260b84faa5f2b758dfe7a64986d | 8,429 | cpp | C++ | ToolKit/Controls/Deprecated/XTOutBarCtrlTheme.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | 2 | 2018-03-30T06:40:08.000Z | 2022-02-23T12:40:13.000Z | ToolKit/Controls/Deprecated/XTOutBarCtrlTheme.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | null | null | null | ToolKit/Controls/Deprecated/XTOutBarCtrlTheme.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | 1 | 2020-08-11T05:48:02.000Z | 2020-08-11T05:48:02.000Z | // XTOutBarCtrlTheme.cpp: implementation of the CXTOutBarCtrlTheme class.
//
// This file is a part of the XTREME CONTROLS MFC class library.
// (c)1998-2011 Codejock Software, All Rights Reserved.
//
// THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE
// RE-DISTRIBUTED BY ANY MEANS WHATSOEVER WIT... | 26.75873 | 130 | 0.723455 | 11Zero |
ec3e17bff6330d41841ad86e8219857421661671 | 3,565 | cpp | C++ | src/test/TestSystem.cpp | innatewonder/mythril | 9f656a58650ac7a8c195b3868232983809205b68 | [
"MIT"
] | null | null | null | src/test/TestSystem.cpp | innatewonder/mythril | 9f656a58650ac7a8c195b3868232983809205b68 | [
"MIT"
] | null | null | null | src/test/TestSystem.cpp | innatewonder/mythril | 9f656a58650ac7a8c195b3868232983809205b68 | [
"MIT"
] | null | null | null | #include "CommonPrecompiled.h"
#include "CoreUtils.h"
#include "TestSystem.h"
#include "TestComponent.h"
#include "TestMath.h"
#include "TestNetworking.h"
namespace Test
{
TestSystem::TestSystem()
{}
TestSystem::~TestSystem()
{}
TEST(ObjectTest, Make_Destroy_Object)
{
EXPECT_EQ(0, Core::gCore->NumOb... | 21.220238 | 72 | 0.608976 | innatewonder |
ec40edc09bbd55395591c151fb7c2309c88c58c7 | 5,306 | hpp | C++ | include/util/types.hpp | wavefunction91/HAXX | e0c282b70ee009a2a01871979f505bcca89713ba | [
"BSD-3-Clause"
] | 6 | 2018-11-05T22:20:28.000Z | 2020-12-28T22:22:55.000Z | include/util/types.hpp | wavefunction91/HAXX | e0c282b70ee009a2a01871979f505bcca89713ba | [
"BSD-3-Clause"
] | null | null | null | include/util/types.hpp | wavefunction91/HAXX | e0c282b70ee009a2a01871979f505bcca89713ba | [
"BSD-3-Clause"
] | null | null | null | /*
* This file is a part of HAXX
*
* Copyright (c) 2017 David Williams-Young
* All rights reserved.
*
* See LICENSE.txt
*/
#ifndef __INCLUDED_UTIL_TYPES_HPP__
#define __INCLUDED_UTIL_TYPES_HPP__
namespace HAXX {
struct null_t {}; // Null struct to handle various situations
template <typename T... | 23.170306 | 80 | 0.615718 | wavefunction91 |
ec417dfd50cfb5bc6a527592cdd9fc96d30579ed | 692 | cc | C++ | src/platform/platform.cc | AnthonyBrunasso/test_games | 31354d2bf95aae9a880e7292bc78ad8577b3f09c | [
"MIT"
] | null | null | null | src/platform/platform.cc | AnthonyBrunasso/test_games | 31354d2bf95aae9a880e7292bc78ad8577b3f09c | [
"MIT"
] | null | null | null | src/platform/platform.cc | AnthonyBrunasso/test_games | 31354d2bf95aae9a880e7292bc78ad8577b3f09c | [
"MIT"
] | 2 | 2019-11-12T23:15:18.000Z | 2020-01-15T17:49:27.000Z | #pragma once
#if _WIN32
// Windows #defines min/max. This stops it from doing so.
#define NOMINMAX
// Reduce header size.
#define WIN32_LEAN_AND_MEAN
// Disable unneeded warnings.
// Warns about using %lu to printf uint64_t
#pragma warning(disable : 4477)
#endif
#include "common/macro.h"
#include "type.cc"
#include ... | 19.222222 | 57 | 0.75 | AnthonyBrunasso |
ec4468c1fabf68759c724aba021479c2fd0c9ece | 1,041 | cpp | C++ | VFrame/V3DBatchModelGroup.cpp | gamepopper/Vigilante-Game-Framework | 72db889de7d41c331b484f7bb230f78096bde2c5 | [
"MIT"
] | 80 | 2017-04-05T19:55:31.000Z | 2022-02-08T18:28:48.000Z | VFrame/V3DBatchModelGroup.cpp | gamepopper/Vigilante-Game-Framework | 72db889de7d41c331b484f7bb230f78096bde2c5 | [
"MIT"
] | 2 | 2017-04-09T13:11:28.000Z | 2018-06-04T19:46:08.000Z | VFrame/V3DBatchModelGroup.cpp | gamepopper/Vigilante-Game-Framework | 72db889de7d41c331b484f7bb230f78096bde2c5 | [
"MIT"
] | 5 | 2017-04-05T19:55:38.000Z | 2020-11-08T08:13:15.000Z | #include "V3DBatchModelGroup.h"
#ifndef VFRAME_NO_3D
#include "V3DCamera.h"
#include "V3DShader.h"
V3DBatchModelGroup::V3DBatchModelGroup(V3DObject* BaseObject, unsigned int MaxSize) : VGroup(MaxSize)
{
baseObject = BaseObject;
}
void V3DBatchModelGroup::Destroy()
{
VSUPERCLASS::Destroy();
delete baseObject;
}
v... | 25.390244 | 151 | 0.731988 | gamepopper |
ec455dfdd733e47d4985e79535db9a0a0095f36f | 1,707 | hpp | C++ | src/xalanc/XercesParserLiaison/XercesDOMFormatterWalker.hpp | rherardi/xml-xalan-c-src_1_10_0 | 24e6653a617a244e4def60d67b57e70a192a5d4d | [
"Apache-2.0"
] | null | null | null | src/xalanc/XercesParserLiaison/XercesDOMFormatterWalker.hpp | rherardi/xml-xalan-c-src_1_10_0 | 24e6653a617a244e4def60d67b57e70a192a5d4d | [
"Apache-2.0"
] | null | null | null | src/xalanc/XercesParserLiaison/XercesDOMFormatterWalker.hpp | rherardi/xml-xalan-c-src_1_10_0 | 24e6653a617a244e4def60d67b57e70a192a5d4d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 1999-2004 The Apache Software Foundation.
*
* 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 requir... | 21.884615 | 89 | 0.756883 | rherardi |
ec478fa570148f703e1691c582a3aa25fceb2127 | 482 | cpp | C++ | src/arg/detail/Token.cpp | jaredmpayne/arg | 2f6fd891f9ca2cd8d970df358909334545870b66 | [
"Apache-2.0"
] | null | null | null | src/arg/detail/Token.cpp | jaredmpayne/arg | 2f6fd891f9ca2cd8d970df358909334545870b66 | [
"Apache-2.0"
] | null | null | null | src/arg/detail/Token.cpp | jaredmpayne/arg | 2f6fd891f9ca2cd8d970df358909334545870b66 | [
"Apache-2.0"
] | null | null | null | #include "arg/detail/Token.hpp"
#include <string>
arg::detail::Token::Token(const std::string &value, LexType lex_type) :
_value(value), _lex_type(lex_type) { }
bool arg::detail::Token::operator==(const Token &other) const {
return this->lex_type() == other.lex_type() && this->value() == other.value();
}
const ... | 25.368421 | 82 | 0.678423 | jaredmpayne |
ec48a48536d13444b8d8162433196e1f181bc19a | 200 | cpp | C++ | MIT_CPP_2009/Classes/IntroClasses/Vehicle.cpp | AlexandrPirogov/MIT_CPP-1 | ec63b2fa9a65c1fcc29cc68fc66fe60c21add4c9 | [
"MIT"
] | 2 | 2021-09-20T09:40:13.000Z | 2021-09-20T09:40:35.000Z | Classes/IntroClasses/Vehicle.cpp | AlexandrPirogov/MIT_CPP | 6c9fa29be431f161472262e464d1377242013a0d | [
"MIT"
] | null | null | null | Classes/IntroClasses/Vehicle.cpp | AlexandrPirogov/MIT_CPP | 6c9fa29be431f161472262e464d1377242013a0d | [
"MIT"
] | 1 | 2021-09-09T14:51:34.000Z | 2021-09-09T14:51:34.000Z | #include "Vehicle.h"
void Vehicle::getModel(){
std::cout << "This is model " << this->model << std::endl;
};
void Vehicle::getInfo(){
std::cout << "This is Parent Vehicle " << std::endl;
}
| 15.384615 | 61 | 0.595 | AlexandrPirogov |
ec496d87b1c126fcd4a5015cd73e6f32fd729fd7 | 20,906 | cpp | C++ | old-prototypes/src/PrototypeFramework.cpp | davedissian/gl-graphics-prototypes | c68e84faf0a3129edfde95eaca73634f36cdf790 | [
"MIT"
] | 1 | 2016-06-04T01:15:15.000Z | 2016-06-04T01:15:15.000Z | old-prototypes/src/PrototypeFramework.cpp | davedissian/graphics-prototypes | c68e84faf0a3129edfde95eaca73634f36cdf790 | [
"MIT"
] | null | null | null | old-prototypes/src/PrototypeFramework.cpp | davedissian/graphics-prototypes | c68e84faf0a3129edfde95eaca73634f36cdf790 | [
"MIT"
] | null | null | null | /*
Prototype Framework
Copyright (c) 2013-2014 David Avedissian (avedissian.david@gmail.com)
Author: David Avedissian
*/
#include "PrototypeFramework.h"
Ogre::MaterialPtr cloneMaterial(const string& originalName, const string& newName)
{
return Ogre::MaterialManager::getSingleton().getByName(originalName)->c... | 32.974763 | 100 | 0.58543 | davedissian |
ec4b1f7a1f99fa016ae51bfb3a92b8b53d2a3d5c | 2,754 | cpp | C++ | antlisp/lib/varname/namespace.cpp | akindyakov/antlisp | 6a772dbdc728a031b1f8b25f9c7a6f7a168d0177 | [
"MIT"
] | 2 | 2018-03-22T19:42:17.000Z | 2018-03-29T04:07:33.000Z | antlisp/lib/varname/namespace.cpp | AKindyakov/antlisp | 6a772dbdc728a031b1f8b25f9c7a6f7a168d0177 | [
"MIT"
] | null | null | null | antlisp/lib/varname/namespace.cpp | AKindyakov/antlisp | 6a772dbdc728a031b1f8b25f9c7a6f7a168d0177 | [
"MIT"
] | null | null | null | #include "namespace.h"
namespace AntLisp {
template<>
std::string CellType<NamespacePtr>::toString() const {
return value_->toString();
}
template<>
ICellType::Ptr CellType<NamespacePtr>::copy() const {
return std::make_unique<CellType<NamespacePtr>>(
std::make_shared<Namespace>(value_->copy())
)... | 23.142857 | 61 | 0.585694 | akindyakov |
ec5339b8dcb83ec1b7314dcfab4522e89693a4d7 | 3,222 | hh | C++ | dune/gdt/operators/fv/datahandle.hh | tobiasleibner/dune-gdt | 5d3dc6c7f5fd66db78ebb294d7ee4803f8e0bf5b | [
"BSD-2-Clause"
] | null | null | null | dune/gdt/operators/fv/datahandle.hh | tobiasleibner/dune-gdt | 5d3dc6c7f5fd66db78ebb294d7ee4803f8e0bf5b | [
"BSD-2-Clause"
] | null | null | null | dune/gdt/operators/fv/datahandle.hh | tobiasleibner/dune-gdt | 5d3dc6c7f5fd66db78ebb294d7ee4803f8e0bf5b | [
"BSD-2-Clause"
] | null | null | null | #ifndef DUNE_GDT_OPERATORS_FV_DATAHANDLE_HH
#define DUNE_GDT_OPERATORS_FV_DATAHANDLE_HH
#include <dune/grid/common/datahandleif.hh>
namespace Dune {
namespace GDT {
template <class ReconstructedValuesType, class GridLayerType>
class ReconstructionDataHandle
: public Dune::CommDataHandleIF<ReconstructionDataHand... | 32.545455 | 117 | 0.721912 | tobiasleibner |
ec6539e12caf317522e6677366ccf003bd175302 | 768 | hpp | C++ | src/config/interfaces.hpp | project-trident/pc-firewall | ef08c96faff5bdb4b1d3c2341f35a65587512fba | [
"BSD-2-Clause"
] | 1 | 2019-12-10T03:51:34.000Z | 2019-12-10T03:51:34.000Z | src/config/interfaces.hpp | project-trident/pc-firewall | ef08c96faff5bdb4b1d3c2341f35a65587512fba | [
"BSD-2-Clause"
] | null | null | null | src/config/interfaces.hpp | project-trident/pc-firewall | ef08c96faff5bdb4b1d3c2341f35a65587512fba | [
"BSD-2-Clause"
] | null | null | null |
#ifndef __INTERFACES_H
#define __INTERFACES_H
#include <qstring.h>
#include <qprocess.h>
#include <vector>
class interfaces : public QObject
{
Q_OBJECT
private:
static interfaces *_instance;
std::vector<QString> _ifs;
interfaces ( void );
~interfaces ( void );
void load ( vo... | 16 | 57 | 0.588542 | project-trident |
ec6623be162a0cb7eb42868bfb90c0a02b0aaa30 | 3,734 | cpp | C++ | webots_ros2_driver/src/plugins/static/Ros2RangeFinder.cpp | TaoYibo1866/webots_ros2 | a72c164825663cebbfd27e0649ea51d3abf9bbed | [
"Apache-2.0"
] | 176 | 2019-09-06T07:02:05.000Z | 2022-03-27T12:41:10.000Z | webots_ros2_driver/src/plugins/static/Ros2RangeFinder.cpp | harshag37/webots_ros2 | 08a061e73e3b88d57cc27b662be0f907d8b9f15b | [
"Apache-2.0"
] | 308 | 2019-08-20T12:56:23.000Z | 2022-03-29T09:49:22.000Z | webots_ros2_driver/src/plugins/static/Ros2RangeFinder.cpp | harshag37/webots_ros2 | 08a061e73e3b88d57cc27b662be0f907d8b9f15b | [
"Apache-2.0"
] | 67 | 2019-11-03T00:58:09.000Z | 2022-03-18T07:11:28.000Z | // Copyright 1996-2021 Cyberbotics 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 law or agr... | 35.903846 | 125 | 0.695233 | TaoYibo1866 |
ec6637767355450fbd22575fca82b14fbff35b7d | 16,830 | cpp | C++ | FELICITY/Static_Codes/AHF/Unit_Test_src/test_2d_manifold_mesh_1.cpp | brianchowlab/BcLOV4-FEM | f54bd8efa0e0f2c7ca2de4a6688ef1a403376285 | [
"MIT"
] | null | null | null | FELICITY/Static_Codes/AHF/Unit_Test_src/test_2d_manifold_mesh_1.cpp | brianchowlab/BcLOV4-FEM | f54bd8efa0e0f2c7ca2de4a6688ef1a403376285 | [
"MIT"
] | null | null | null | FELICITY/Static_Codes/AHF/Unit_Test_src/test_2d_manifold_mesh_1.cpp | brianchowlab/BcLOV4-FEM | f54bd8efa0e0f2c7ca2de4a6688ef1a403376285 | [
"MIT"
] | null | null | null | /*
============================================================================================
This is a unit test for the AHF data structure implementation.
This example stores a 2-D manifold mesh (consisting of 4 triangles) that has
0 non-manifold edges and 0 non-manifold vertices. It also does some basic... | 36.907895 | 142 | 0.563755 | brianchowlab |
ec6648f334fd04b8a9546bc823dd96c82f67ef6f | 124 | cpp | C++ | src/VulkanLoader.cpp | FelixFifi/rtx-pathtracer | 9bf5616c47880e8fa536a822b39b9661bb666352 | [
"Zlib",
"Apache-2.0",
"MIT"
] | 5 | 2021-04-18T15:49:10.000Z | 2021-09-15T10:23:44.000Z | src/VulkanLoader.cpp | FelixFifi/rtx-pathtracer | 9bf5616c47880e8fa536a822b39b9661bb666352 | [
"Zlib",
"Apache-2.0",
"MIT"
] | 1 | 2021-12-27T12:11:53.000Z | 2021-12-27T12:11:53.000Z | src/VulkanLoader.cpp | FelixFifi/rtx-pathtracer | 9bf5616c47880e8fa536a822b39b9661bb666352 | [
"Zlib",
"Apache-2.0",
"MIT"
] | 2 | 2021-06-18T12:27:36.000Z | 2021-12-26T22:06:44.000Z | //
// Created by felixfifi on 05.05.20.
//
#include "VulkanLoader.h"
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE;
| 13.777778 | 51 | 0.774194 | FelixFifi |
ec68903e3137a902726a37dfffaec14a2b6e0217 | 5,086 | cpp | C++ | TetrisEngine/srcLib/block.cpp | mwthinker/MWetris | 8d7d75cade1eb44567e182b569ebf5af16b522d7 | [
"MIT"
] | null | null | null | TetrisEngine/srcLib/block.cpp | mwthinker/MWetris | 8d7d75cade1eb44567e182b569ebf5af16b522d7 | [
"MIT"
] | null | null | null | TetrisEngine/srcLib/block.cpp | mwthinker/MWetris | 8d7d75cade1eb44567e182b569ebf5af16b522d7 | [
"MIT"
] | null | null | null | #include "block.h"
#include <algorithm>
namespace tetris {
Block::Block(BlockType blockType, int startColumn, int lowestStartRow, int currentRotation)
: Block{blockType, startColumn, lowestStartRow} {
for (int i = 0; i < currentRotation; ++i) {
rotateLeft();
}
}
Block::Block(BlockType blockType, int st... | 30.824242 | 92 | 0.673024 | mwthinker |
ec6a25261804308c2c3e4ecefbc27d0b5f4b267d | 9,199 | cpp | C++ | Actor/Characters/Enemy/E3/EnemyE3.cpp | Bornsoul/Revenger_JoyContinue | 599716970ca87a493bf3a959b36de0b330b318f1 | [
"MIT"
] | null | null | null | Actor/Characters/Enemy/E3/EnemyE3.cpp | Bornsoul/Revenger_JoyContinue | 599716970ca87a493bf3a959b36de0b330b318f1 | [
"MIT"
] | null | null | null | Actor/Characters/Enemy/E3/EnemyE3.cpp | Bornsoul/Revenger_JoyContinue | 599716970ca87a493bf3a959b36de0b330b318f1 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "EnemyE3.h"
#include "Libraries/Components/AnimationMng/Cpt_AnimationMng.h"
#include "Kismet/KismetMathLibrary.h"
#include "Actor/Characters/Player/GBox/GBox.h"
#include "Libraries/Components/MaterialEffect/Cpt_MaterialEffect.h"
#... | 28.304615 | 171 | 0.749973 | Bornsoul |
ec702cbe9f1d97ef65c883da236fe22cb43b5c07 | 9,296 | cpp | C++ | cm-cuda/io.cpp | BeauJoh/HeCBench | 594b845171d686dc951971ce36ed59cf114dd2b4 | [
"BSD-3-Clause"
] | 25 | 2021-11-01T03:36:10.000Z | 2022-03-30T03:07:33.000Z | cm-cuda/io.cpp | BeauJoh/HeCBench | 594b845171d686dc951971ce36ed59cf114dd2b4 | [
"BSD-3-Clause"
] | 1 | 2021-12-14T11:04:14.000Z | 2021-12-14T13:22:32.000Z | cm-cuda/io.cpp | BeauJoh/HeCBench | 594b845171d686dc951971ce36ed59cf114dd2b4 | [
"BSD-3-Clause"
] | 8 | 2021-11-13T14:28:05.000Z | 2022-03-09T10:24:54.000Z | #include "utils.h"
//-----------------------------------------------------------------------------------
// USER INPUT FUNCTIONS
//-----------------------------------------------------------------------------------
/*
* Prompt the user to input the required number of random gene signatures used to assess significanc... | 36.3125 | 196 | 0.628657 | BeauJoh |
ec704eb3d4e7c4d02413b4cfdc8e209817f9e314 | 123 | cpp | C++ | ExodusImport/Source/ExodusImport/Private/JsonObjects/ResId.cpp | AldeRoberge/ProjectExodus | 74ecd6c8719e6365b51458c65954bff2910bc36e | [
"BSD-3-Clause"
] | 288 | 2019-04-02T08:02:59.000Z | 2022-03-28T23:53:28.000Z | ExodusImport/Source/ExodusImport/Private/JsonObjects/ResId.cpp | adamgoodrich/ProjectExodus | 29a9fa87f981ad41e3b323702dc2b0d4523889d8 | [
"BSD-3-Clause"
] | 54 | 2019-04-19T08:24:05.000Z | 2022-03-28T19:44:42.000Z | ExodusImport/Source/ExodusImport/Private/JsonObjects/ResId.cpp | adamgoodrich/ProjectExodus | 29a9fa87f981ad41e3b323702dc2b0d4523889d8 | [
"BSD-3-Clause"
] | 56 | 2019-04-07T03:55:39.000Z | 2022-03-20T04:54:57.000Z | #include "JsonImportPrivatePCH.h"
#include "ResId.h"
uint32 GetTypeHash(const ResId &id){
return (uint32)id.toIndex();
}
| 17.571429 | 36 | 0.739837 | AldeRoberge |
ec7414dd2224e715efdf6043e6211ea8cedf0687 | 103 | cpp | C++ | main.cpp | rtlayzell/math | 953bcdbb9d08f9e84df634034bc940989fcf9574 | [
"MIT"
] | null | null | null | main.cpp | rtlayzell/math | 953bcdbb9d08f9e84df634034bc940989fcf9574 | [
"MIT"
] | null | null | null | main.cpp | rtlayzell/math | 953bcdbb9d08f9e84df634034bc940989fcf9574 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector.hpp>
#include <angle.hpp>
int main(int, char**) {
return 0;
} | 10.3 | 23 | 0.650485 | rtlayzell |
3f3a77c530db26e2e54b7e71222110a882a1e8f7 | 5,739 | cpp | C++ | uart_dma/src/board_pins.cpp | Bergi84/vihaltests | f338e6aff3e389501dc8a018f1dbde862b7971a1 | [
"BSD-2-Clause"
] | null | null | null | uart_dma/src/board_pins.cpp | Bergi84/vihaltests | f338e6aff3e389501dc8a018f1dbde862b7971a1 | [
"BSD-2-Clause"
] | null | null | null | uart_dma/src/board_pins.cpp | Bergi84/vihaltests | f338e6aff3e389501dc8a018f1dbde862b7971a1 | [
"BSD-2-Clause"
] | null | null | null | /*
* file: board_pins.cpp (uart_dma)
* brief: UART DMA DEMO board specific initializations
* version: 1.00
* date: 2021-10-29
* authors: nvitya
*/
#include "board_pins.h"
#include "uartcomm.h"
unsigned pin_led_count = 1;
TGpioPin pin_led[MAX_LEDS] =
{
TGpioPin(),
TGpioPin(),
TGpioPin()... | 25.171053 | 96 | 0.647674 | Bergi84 |
3f4004f424f97a3d13369bb94e178bcc4d403c8b | 3,472 | cpp | C++ | wsettings/wsettingdirs2indexmodel.cpp | privet56/qDesktopSearch | 702aac770a11895e19180bd4ed2279c7a8ab64be | [
"Apache-2.0"
] | 10 | 2016-04-15T15:31:08.000Z | 2019-10-02T01:19:48.000Z | wsettings/wsettingdirs2indexmodel.cpp | privet56/qDesktopSearch | 702aac770a11895e19180bd4ed2279c7a8ab64be | [
"Apache-2.0"
] | null | null | null | wsettings/wsettingdirs2indexmodel.cpp | privet56/qDesktopSearch | 702aac770a11895e19180bd4ed2279c7a8ab64be | [
"Apache-2.0"
] | 5 | 2016-04-15T15:31:10.000Z | 2022-02-22T02:00:06.000Z | #include "wsettingdirs2indexmodel.h"
#include <QBrush>
#include <QIcon>
#include "globalinclude.h"
#include "str.h"
/*!
* Creates a model object with the given \a ds and \a parent.
*/
wsettingdirs2indexModel::wsettingdirs2indexModel(QObject *parent)
:QAbstractTableModel(parent),
m_pLog(nullptr)
{
}
/*!
... | 22.4 | 102 | 0.604263 | privet56 |
3f405cc13394ac4e29dabbf7a5098076e1acde35 | 5,525 | cpp | C++ | applications/paint/PaintTool.cpp | busybox11/skift | 778ae3a0dc5ac29d7de02200c49d3533e47854c5 | [
"MIT"
] | 2 | 2020-07-14T21:16:54.000Z | 2020-10-08T08:40:47.000Z | applications/paint/PaintTool.cpp | busybox11/skift | 778ae3a0dc5ac29d7de02200c49d3533e47854c5 | [
"MIT"
] | null | null | null | applications/paint/PaintTool.cpp | busybox11/skift | 778ae3a0dc5ac29d7de02200c49d3533e47854c5 | [
"MIT"
] | null | null | null | #include <libsystem/Assert.h>
#include <libsystem/Logger.h>
#include <libutils/Vector.h>
#include "paint/PaintDocument.h"
#include "paint/PaintTool.h"
void pencil_tool_mouse_event(PaintTool *tool, PaintDocument *document, Event event)
{
__unused(tool);
if (event.type == Event::MOUSE_MOVE || event.type == Eve... | 26.95122 | 113 | 0.618281 | busybox11 |
3f409b1856ff34a49b0bc168ed52b11858a94a50 | 222 | cpp | C++ | model.cpp | SsorryQaQ/Algorithm-competition | ee2ed79438ecaf15015d9b043d3e099cfa3829c5 | [
"MIT"
] | 1 | 2019-12-01T01:37:56.000Z | 2019-12-01T01:37:56.000Z | model.cpp | SsorryQaQ/Algorithm-competition | ee2ed79438ecaf15015d9b043d3e099cfa3829c5 | [
"MIT"
] | null | null | null | model.cpp | SsorryQaQ/Algorithm-competition | ee2ed79438ecaf15015d9b043d3e099cfa3829c5 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define _for(i,a,b) for (int i=(a);i<(b);i++)
#define _rep(i,a,b) for (int i=(a);i<=(b);i++)
using namespace std;
int readint(){
int x; scanf("%d",&x); return x;
}
int main(){
return 0;
} | 18.5 | 46 | 0.554054 | SsorryQaQ |
3f4ed9be0af37d6ef20903910a873e1dea10d994 | 1,835 | hpp | C++ | include/eve/module/real/core/function/regular/generic/ldexp.hpp | orao/eve | a8bdc6a9cab06d905e8749354cde63776ab76846 | [
"MIT"
] | null | null | null | include/eve/module/real/core/function/regular/generic/ldexp.hpp | orao/eve | a8bdc6a9cab06d905e8749354cde63776ab76846 | [
"MIT"
] | null | null | null | include/eve/module/real/core/function/regular/generic/ldexp.hpp | orao/eve | a8bdc6a9cab06d905e8749354cde63776ab76846 | [
"MIT"
] | null | null | null | //==================================================================================================
/**
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
**/
//==================================================================================================
#... | 32.192982 | 100 | 0.544959 | orao |
3f50d5193072992ff491a9e65f448724c3a5b792 | 14,796 | cpp | C++ | ixplugins/jsonrpc/JsonObject.cpp | algamza/ixwss | fc323df76754d9f8aa24a36a24f640378c9e86bb | [
"Unlicense"
] | 1 | 2020-02-11T02:42:31.000Z | 2020-02-11T02:42:31.000Z | ixplugins/jsonrpc/JsonObject.cpp | algamza/ixwss | fc323df76754d9f8aa24a36a24f640378c9e86bb | [
"Unlicense"
] | null | null | null | ixplugins/jsonrpc/JsonObject.cpp | algamza/ixwss | fc323df76754d9f8aa24a36a24f640378c9e86bb | [
"Unlicense"
] | null | null | null | /**
* @file JsonObject.cpp
* @author Group(SW_Browser) <gsw_browser@humaxdigital.com>
* @brief
*
* (c) 2017 Humax Co., Ltd.
* This program is produced by Humax Co., Ltd. ("Humax") and
* the proprietary Software of Humax and its licensors. Humax provides you, as an Authorized Licensee,
* non-assignable, non-tr... | 24.993243 | 137 | 0.662544 | algamza |
3f54fd87607f33197ed7270711ec3cca42827e86 | 990 | cpp | C++ | c++/Virtual_Base_class.cpp | zexhan17/Problem-Solving | 94a4d2181ada7152a584a7b03dcedef6c915e18f | [
"MIT"
] | null | null | null | c++/Virtual_Base_class.cpp | zexhan17/Problem-Solving | 94a4d2181ada7152a584a7b03dcedef6c915e18f | [
"MIT"
] | null | null | null | c++/Virtual_Base_class.cpp | zexhan17/Problem-Solving | 94a4d2181ada7152a584a7b03dcedef6c915e18f | [
"MIT"
] | null | null | null | /*
VIRTUAL BASE CLASSES
A class that is inherited by child classes using virtual keyword
is called virtual base class. The virtual base classes are necessary
in a situation where the member of base class is duplicated in multilevel inheritance.
*/
#include <iostream>
using namespace std;
/... | 21.521739 | 97 | 0.678788 | zexhan17 |
3f55f5f52fce8257a6133bb2878f695c96d4b36c | 30,111 | cpp | C++ | tests/nn_tests.cpp | adeobootpin/light-tensor | dfc2d19495848e773b7367427cf848e4ac30b29d | [
"MIT"
] | null | null | null | tests/nn_tests.cpp | adeobootpin/light-tensor | dfc2d19495848e773b7367427cf848e4ac30b29d | [
"MIT"
] | null | null | null | tests/nn_tests.cpp | adeobootpin/light-tensor | dfc2d19495848e773b7367427cf848e4ac30b29d | [
"MIT"
] | null | null | null | #include <iostream>
#include <chrono>
#include <float.h>
#include "lten.h"
int LoadMNISTImages(const char* pchFileName, float** ppfImages, int* piTotalImages);
int LoadMNISTLabels(const char* pchFileName, char** ppchLabels);
//-------------------------------------------------------------------------------
... | 27.348774 | 178 | 0.611803 | adeobootpin |
3f58d5bccc1d35a4b8b648d6f82f6f83ee5dbbfe | 2,483 | hpp | C++ | src/file/Util.hpp | hotwatermorning/Vst3SampleHost | 405f8f9ca89467de46ee3fd9b819503e556022e7 | [
"MIT"
] | 19 | 2019-09-15T11:35:11.000Z | 2021-12-02T12:27:09.000Z | src/file/Util.hpp | hotwatermorning/Vst3SampleHost | 405f8f9ca89467de46ee3fd9b819503e556022e7 | [
"MIT"
] | 3 | 2019-09-15T12:48:49.000Z | 2019-09-18T10:43:19.000Z | src/file/Util.hpp | hotwatermorning/Vst3SampleHost | 405f8f9ca89467de46ee3fd9b819503e556022e7 | [
"MIT"
] | 1 | 2021-08-27T23:07:27.000Z | 2021-08-27T23:07:27.000Z | #pragma once
#include <string>
#include <vector>
#include <optional>
#include <sstream>
#include "../device/DeviceType.hpp"
#include "../plugin/vst3/Vst3PluginFactory.hpp"
#include "../gui/PluginViewType.hpp"
#include "../app/OscillatorType.hpp"
NS_HWM_BEGIN
Int32 stoi_or(std::string const &str, Int32 default_value)... | 26.414894 | 101 | 0.701973 | hotwatermorning |
3f5962b79931093121d4303758388a7410c1ffdf | 3,284 | cpp | C++ | 438-find-all-anagrams-in-a-string/438-find-all-anagrams-in-a-string.cpp | ComputerScientist-01/SDE-Sheet | e0ebd6e6a21ed07ce0a1ae123f552e7a4da3ac3a | [
"MIT"
] | null | null | null | 438-find-all-anagrams-in-a-string/438-find-all-anagrams-in-a-string.cpp | ComputerScientist-01/SDE-Sheet | e0ebd6e6a21ed07ce0a1ae123f552e7a4da3ac3a | [
"MIT"
] | null | null | null | 438-find-all-anagrams-in-a-string/438-find-all-anagrams-in-a-string.cpp | ComputerScientist-01/SDE-Sheet | e0ebd6e6a21ed07ce0a1ae123f552e7a4da3ac3a | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> findAnagrams(string s, string p) {
//sliding window technique using my own template
int n = s.size(); //length of source string
int m = p.size(); //length of target string
//init an array or var to save the result as per the question re... | 37.318182 | 81 | 0.482034 | ComputerScientist-01 |
3f5f69882c487a14a530d9440da69b8ec252633d | 99 | hpp | C++ | source/utils.hpp | in1tiate/OoT3D_Randomizer | baa1f4a0f4a2e1aadec9547120b29d1617211f45 | [
"MIT"
] | 133 | 2020-08-25T20:27:08.000Z | 2022-03-28T04:38:44.000Z | source/utils.hpp | in1tiate/OoT3D_Randomizer | baa1f4a0f4a2e1aadec9547120b29d1617211f45 | [
"MIT"
] | 112 | 2020-11-27T18:51:33.000Z | 2022-03-28T21:58:21.000Z | source/utils.hpp | in1tiate/OoT3D_Randomizer | baa1f4a0f4a2e1aadec9547120b29d1617211f45 | [
"MIT"
] | 57 | 2020-08-24T08:54:39.000Z | 2022-03-27T18:08:51.000Z | #pragma once
#include <algorithm>
#include <string>
std::string RemoveLineBreaks(std::string s);
| 14.142857 | 44 | 0.747475 | in1tiate |
3f623ac4d3bd86e6c28225657cab32022928a474 | 360 | hpp | C++ | src/But/Log/Backend/NonPrintableTrimmer.hpp | el-bart/but | eee2e7e34dde415f4c87461f75c2bab38fc56407 | [
"BSD-3-Clause"
] | 27 | 2016-01-12T19:30:57.000Z | 2022-01-27T15:52:39.000Z | src/But/Log/Backend/NonPrintableTrimmer.hpp | el-bart/but | eee2e7e34dde415f4c87461f75c2bab38fc56407 | [
"BSD-3-Clause"
] | 4 | 2017-04-10T16:30:22.000Z | 2019-04-24T21:02:55.000Z | src/But/Log/Backend/NonPrintableTrimmer.hpp | el-bart/but | eee2e7e34dde415f4c87461f75c2bab38fc56407 | [
"BSD-3-Clause"
] | 2 | 2016-12-09T17:09:59.000Z | 2019-07-16T00:19:31.000Z | #pragma once
#include <array>
#include <string>
#include <cinttypes>
namespace But
{
namespace Log
{
namespace Backend
{
struct NonPrintableTrimmer final
{
NonPrintableTrimmer();
std::string operator()(std::string in) const
{
for(auto& e: in)
e = lut_[ (uint8_t)e ];
return in;
}
private:
con... | 11.612903 | 46 | 0.652778 | el-bart |
3f6a5237cf58e6cbf1214210f841b753b071dc6a | 3,906 | hpp | C++ | DGP/AxisAlignedBox3.hpp | sidch/DGP | 20a2d47563b6e36cd89bea0b1326e5267df8e9a6 | [
"BSD-3-Clause"
] | 14 | 2016-03-15T16:24:10.000Z | 2022-01-06T13:43:17.000Z | a3/src/DGP/AxisAlignedBox3.hpp | meetps/CS-749 | f1ddc4ed003b3a9f222f2a724d53076ddec697a6 | [
"MIT"
] | null | null | null | a3/src/DGP/AxisAlignedBox3.hpp | meetps/CS-749 | f1ddc4ed003b3a9f222f2a724d53076ddec697a6 | [
"MIT"
] | 5 | 2017-04-12T17:40:57.000Z | 2022-01-06T13:43:20.000Z | //============================================================================
//
// DGP: Digital Geometry Processing toolkit
// Copyright (C) 2016, Siddhartha Chaudhuri
//
// This software is covered by a BSD license. Portions derived from other
// works are covered by their respective licenses. For full licensing
// ... | 30.27907 | 125 | 0.566052 | sidch |
3f6b94d39409cea97b6afe617ca64ffba13ceedf | 17,031 | cpp | C++ | ToolKit/Chart/Types/XTPChartTypes.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | 2 | 2018-03-30T06:40:08.000Z | 2022-02-23T12:40:13.000Z | ToolKit/Chart/Types/XTPChartTypes.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | null | null | null | ToolKit/Chart/Types/XTPChartTypes.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | 1 | 2020-08-11T05:48:02.000Z | 2020-08-11T05:48:02.000Z | // XTPChartTypes.cpp
//
// This file is a part of the XTREME TOOLKIT PRO MFC class library.
// (c)1998-2011 Codejock Software, All Rights Reserved.
//
// THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE
// RE-DISTRIBUTED BY ANY MEANS WHATSOEVER WITHOUT THE EXPRESSED WRITTEN
// CONSENT OF CODEJOCK ... | 40.453682 | 115 | 0.697434 | 11Zero |
3f6beebf9679c937728810fac22739c31178c3ec | 386 | hpp | C++ | pythran/pythonic/include/numpy/array_equal.hpp | artas360/pythran | 66dad52d52be71693043e9a7d7578cfb9cb3d1da | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/include/numpy/array_equal.hpp | artas360/pythran | 66dad52d52be71693043e9a7d7578cfb9cb3d1da | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/include/numpy/array_equal.hpp | artas360/pythran | 66dad52d52be71693043e9a7d7578cfb9cb3d1da | [
"BSD-3-Clause"
] | null | null | null | #ifndef PYTHONIC_INCLUDE_NUMPY_ARRAYEQUAL_HPP
#define PYTHONIC_INCLUDE_NUMPY_ARRAYEQUAL_HPP
#include "pythonic/utils/proxy.hpp"
#include "pythonic/types/ndarray.hpp"
#include "pythonic/numpy/all.hpp"
namespace pythonic
{
namespace numpy
{
template <class U, class V>
bool array_equal(U const &u, V const ... | 17.545455 | 45 | 0.748705 | artas360 |
3f6f7d7f0cdb5415e678aaa66db993794286c42d | 1,532 | cpp | C++ | UnitTests/unit_tests_main.cpp | krulis-martin/Moccarduino | 3cb200ea6e3c271a664355ba5a26162fec8ec95d | [
"MIT"
] | 1 | 2021-01-22T00:57:15.000Z | 2021-01-22T00:57:15.000Z | UnitTests/unit_tests_main.cpp | krulis-martin/Moccarduino | 3cb200ea6e3c271a664355ba5a26162fec8ec95d | [
"MIT"
] | null | null | null | UnitTests/unit_tests_main.cpp | krulis-martin/Moccarduino | 3cb200ea6e3c271a664355ba5a26162fec8ec95d | [
"MIT"
] | null | null | null | #include "test.hpp"
#include <map>
#include <string>
#include <iostream>
using tests_t = const std::map<std::string, const MoccarduinoTest*>;
/**
* Check that given test name is on the argument list.
* More precisely, whether one of the given keywords (in arguments) is a substring of the name.
*/
bool on_list(con... | 26.413793 | 98 | 0.583551 | krulis-martin |
3f709a87c2abd7e403077a0384c290e058518a91 | 2,076 | cpp | C++ | ConsoleLog.cpp | EmuraDaisuke/iostream.OperationCheck | 37bc548bca79023cd7d2c99055e923520672ef51 | [
"Unlicense"
] | null | null | null | ConsoleLog.cpp | EmuraDaisuke/iostream.OperationCheck | 37bc548bca79023cd7d2c99055e923520672ef51 | [
"Unlicense"
] | null | null | null | ConsoleLog.cpp | EmuraDaisuke/iostream.OperationCheck | 37bc548bca79023cd7d2c99055e923520672ef51 | [
"Unlicense"
] | null | null | null |
#include <cstdio>
#include "./ConsoleLog.h"
ConsoleLog::~ConsoleLog() noexcept {}
ConsoleLog::ConsoleLog() :mp(ma){}
void ConsoleLog::Out() const noexcept { std::puts(ma); std::fflush(stdout); }
void ConsoleLog::Put() noexcept { Tail... | 56.108108 | 109 | 0.551541 | EmuraDaisuke |
3f75dcee1933da78259b2f3876233847c8c52e56 | 5,678 | cpp | C++ | OptiScada/devicemodbusethernet.cpp | optimasiti/optiscada | 12a9a49558160649d4ce7c665a85b4fa9d1e1fa2 | [
"MIT"
] | 2 | 2020-06-17T13:53:48.000Z | 2022-02-19T05:32:46.000Z | OptiScada/devicemodbusethernet.cpp | optimasiti/optiscada | 12a9a49558160649d4ce7c665a85b4fa9d1e1fa2 | [
"MIT"
] | null | null | null | OptiScada/devicemodbusethernet.cpp | optimasiti/optiscada | 12a9a49558160649d4ce7c665a85b4fa9d1e1fa2 | [
"MIT"
] | 1 | 2018-11-04T14:03:24.000Z | 2018-11-04T14:03:24.000Z | #include <QModbusTcpClient>
#include <QDateTime>
#include <QThread>
#include <QCoreApplication>
#include <QVariant>
#include <QMutexLocker>
#include "writecommand.h"
#include "devicemodbusethernet.h"
#include "modbuscommon.h"
#include "modbusmemory.h"
#include "log.h"
const int DeviceModbusEthernet::NumberOfRetries =... | 28.248756 | 235 | 0.647411 | optimasiti |
3f8859cc9bfa0f0c363eba2f2d3c47934d73adf0 | 2,337 | cpp | C++ | connections/SubunitConn.cpp | PetaVision/ObsoletePV | e99a42bf4292e944b252e144b5e07442b0715697 | [
"MIT"
] | null | null | null | connections/SubunitConn.cpp | PetaVision/ObsoletePV | e99a42bf4292e944b252e144b5e07442b0715697 | [
"MIT"
] | null | null | null | connections/SubunitConn.cpp | PetaVision/ObsoletePV | e99a42bf4292e944b252e144b5e07442b0715697 | [
"MIT"
] | null | null | null | /*
* LineSegments.cpp
*
* Created on: Jan 26, 2009
* Author: rasmussn
*/
#ifdef OBSOLETE // Use KernelConn or HyperConn and set the param "weightInitType" to "SubUnitWeight" in the params file
#include "SubunitConn.hpp"
#include "../io/io.h"
#include <assert.h>
#include <string.h>
namespace PV {
/**
* Th... | 23.138614 | 119 | 0.527172 | PetaVision |
3f8a4210c819759e66bedfe255903cc41b71d932 | 620 | cpp | C++ | codes/CodeForces/Round #228/cf388A.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/CodeForces/Round #228/cf388A.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/CodeForces/Round #228/cf388A.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
#include <string.h>
#include <algorithm>
using namespace std;
const int N = 105;
int n, cnt[N], tmp;
void init () {
int a;
tmp = 0;
scanf("%d", &n);
for (int i = 0; i < n; i++) {
scanf("%d", &a);
tmp = max(a, tmp);
cnt[a]++;
}
}
void set(int x, int c) {
if (x > tmp) return;
if (c > ... | 12.653061 | 33 | 0.480645 | JeraKrs |
3f94f720768a83a7f4c7a4fe8d4e86404d89f7d9 | 1,778 | cpp | C++ | src/dfm/overlay/impl/Message.cpp | dfm-official/dfm | 97f133aa87b17c760b90f2358d6ba10bc7ad9d1f | [
"ISC"
] | null | null | null | src/dfm/overlay/impl/Message.cpp | dfm-official/dfm | 97f133aa87b17c760b90f2358d6ba10bc7ad9d1f | [
"ISC"
] | null | null | null | src/dfm/overlay/impl/Message.cpp | dfm-official/dfm | 97f133aa87b17c760b90f2358d6ba10bc7ad9d1f | [
"ISC"
] | null | null | null |
#include <ripple/basics/safe_cast.h>
#include <ripple/overlay/Message.h>
#include <ripple/overlay/impl/TrafficCount.h>
#include <cstdint>
namespace ripple {
Message::Message (::google::protobuf::Message const& message, int type)
{
unsigned const messageBytes = message.ByteSize ();
assert (messageBytes != 0... | 21.166667 | 82 | 0.605174 | dfm-official |
3fa1e55debd8b766bd7fc91a64b1d93f55cc68d8 | 855 | cpp | C++ | Scripts/BasicEnemyAIScript/EnemyStateCooldown.cpp | solidajenjo/Engine | 409516f15e0f083e79b749b9c9184f2f04184325 | [
"MIT"
] | 10 | 2019-02-25T11:36:23.000Z | 2021-11-03T22:51:30.000Z | Scripts/BasicEnemyAIScript/EnemyStateCooldown.cpp | solidajenjo/Engine | 409516f15e0f083e79b749b9c9184f2f04184325 | [
"MIT"
] | 146 | 2019-02-05T13:57:33.000Z | 2019-11-07T16:21:31.000Z | Scripts/BasicEnemyAIScript/EnemyStateCooldown.cpp | FractalPuppy/Engine | 409516f15e0f083e79b749b9c9184f2f04184325 | [
"MIT"
] | 3 | 2019-11-17T20:49:12.000Z | 2020-04-19T17:28:28.000Z | #include "EnemyStateCooldown.h"
#include "BasicEnemyAIScript.h"
#include "EnemyControllerScript.h"
EnemyStateCooldown::EnemyStateCooldown(BasicEnemyAIScript* AIScript)
{
enemy = AIScript;
trigger = "Cooldown";
}
EnemyStateCooldown::~EnemyStateCooldown()
{
}
void EnemyStateCooldown::Enter()
{
enemy->enemyControl... | 18.586957 | 79 | 0.733333 | solidajenjo |
3faebeed6ed8fac2a6be16787de72cba1aee9bb4 | 620 | cpp | C++ | Corpos Editor/NewMapForms.cpp | Tomislaw/corpos | bf971cba98a92b8de68547d4f77252f645c9ef28 | [
"MIT"
] | null | null | null | Corpos Editor/NewMapForms.cpp | Tomislaw/corpos | bf971cba98a92b8de68547d4f77252f645c9ef28 | [
"MIT"
] | null | null | null | Corpos Editor/NewMapForms.cpp | Tomislaw/corpos | bf971cba98a92b8de68547d4f77252f645c9ef28 | [
"MIT"
] | null | null | null | #include "NewMapForms.h"
#include "CorposEditor.h"
#include "game\utility\Logger.hpp"
#include <QErrorMessage>
NewMapForms::NewMapForms(CorposEditor *callback)
: QWidget()
{
this->callback = callback;
ui.setupUi(this);
}
NewMapForms::~NewMapForms()
{
}
void NewMapForms::validate(QString v)
{
if (v.size() != 0)ui... | 20 | 74 | 0.719355 | Tomislaw |
3fb06f4f965f8a72420b08d8ac0828c48b596e48 | 206 | hpp | C++ | libs/gfxm/src/gfxm/mat4.hpp | janucaria/Molphene | e5374599512ff4400d04c7c16d79d3a111cc1911 | [
"MIT"
] | 3 | 2018-05-18T06:30:48.000Z | 2018-09-01T13:59:58.000Z | libs/gfxm/src/gfxm/mat4.hpp | janucaria/Molphene | e5374599512ff4400d04c7c16d79d3a111cc1911 | [
"MIT"
] | null | null | null | libs/gfxm/src/gfxm/mat4.hpp | janucaria/Molphene | e5374599512ff4400d04c7c16d79d3a111cc1911 | [
"MIT"
] | null | null | null | #ifndef MOLPHENE_GFXM_MAT4_HPP
#define MOLPHENE_GFXM_MAT4_HPP
#include <cppid/gm3d/mat4.hpp>
namespace molphene {
template<typename T>
using mat4 = cppid::gm3d::mat4<T>;
} // namespace molphene
#endif
| 14.714286 | 34 | 0.76699 | janucaria |
3fb3d4e77d8aece08c63d24c0fd9264f9a8a1aad | 7,346 | cpp | C++ | GLES3Renderer/GLES3Renderer/GfxProgram.cpp | LiangYue1981816/CrossEngine-GLES3Renderer | 8d092307c22164895c4f92395ef291c87f2811e6 | [
"Apache-2.0"
] | null | null | null | GLES3Renderer/GLES3Renderer/GfxProgram.cpp | LiangYue1981816/CrossEngine-GLES3Renderer | 8d092307c22164895c4f92395ef291c87f2811e6 | [
"Apache-2.0"
] | null | null | null | GLES3Renderer/GLES3Renderer/GfxProgram.cpp | LiangYue1981816/CrossEngine-GLES3Renderer | 8d092307c22164895c4f92395ef291c87f2811e6 | [
"Apache-2.0"
] | 1 | 2020-09-17T12:24:42.000Z | 2020-09-17T12:24:42.000Z | #include "stdio.h"
#include "stdlib.h"
#include "GfxUtils.h"
#include "GfxRenderer.h"
static size_t fsize(FILE *stream)
{
long pos;
size_t size;
pos = ftell(stream);
{
fseek(stream, 0, SEEK_END);
size = ftell(stream);
}
fseek(stream, pos, SEEK_SET);
return size;
}
static std::string LoadShader(const cha... | 23.246835 | 126 | 0.73278 | LiangYue1981816 |
3fb92271a4a10900af54b35b778c0fcf7c6a7836 | 1,287 | cpp | C++ | D3D11-Engine/src/VertexBuffer.cpp | BEASTSM96/D3D11 | d5bad6fb06ff0cba04df4422094425e29b95fdce | [
"MIT"
] | null | null | null | D3D11-Engine/src/VertexBuffer.cpp | BEASTSM96/D3D11 | d5bad6fb06ff0cba04df4422094425e29b95fdce | [
"MIT"
] | null | null | null | D3D11-Engine/src/VertexBuffer.cpp | BEASTSM96/D3D11 | d5bad6fb06ff0cba04df4422094425e29b95fdce | [
"MIT"
] | null | null | null | #include "VertexBuffer.h"
#include "RendererContext.h"
VertexBuffer::~VertexBuffer()
{
}
void VertexBuffer::Load( ID3D11Device* pDevice, void* pListVertices, uint32_t SizeVertex, uint32_t SizeList, void* ShaderByteCode, uint32_t SizeOfShader )
{
SAFE_RELEASE( m_pLayout );
SAFE_RELEASE( m_pBuffer );
D3D11_BUFFER... | 27.382979 | 154 | 0.750583 | BEASTSM96 |
3fbc2717f64d5d5cd6078e8a143be49ce15eb69e | 4,297 | cc | C++ | src/third_party/ceres/internal/ceres/cxsparse.cc | paulinus/libmv | 6656bde5aea4c715695fa98fca6e2b3417e82d76 | [
"MIT"
] | null | null | null | src/third_party/ceres/internal/ceres/cxsparse.cc | paulinus/libmv | 6656bde5aea4c715695fa98fca6e2b3417e82d76 | [
"MIT"
] | null | null | null | src/third_party/ceres/internal/ceres/cxsparse.cc | paulinus/libmv | 6656bde5aea4c715695fa98fca6e2b3417e82d76 | [
"MIT"
] | null | null | null | // Ceres Solver - A fast non-linear least squares minimizer
// Copyright 2012 Google Inc. All rights reserved.
// http://code.google.com/p/ceres-solver/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistr... | 32.55303 | 79 | 0.716779 | paulinus |
3fd307884189101b6e36e37392332c1047accef6 | 240 | cpp | C++ | Valtrook/Valtrook/FileWriter.cpp | animeenginedev/Valtrook | 10cf7332643765534f8a4263cc4e422c4356487b | [
"MIT"
] | null | null | null | Valtrook/Valtrook/FileWriter.cpp | animeenginedev/Valtrook | 10cf7332643765534f8a4263cc4e422c4356487b | [
"MIT"
] | null | null | null | Valtrook/Valtrook/FileWriter.cpp | animeenginedev/Valtrook | 10cf7332643765534f8a4263cc4e422c4356487b | [
"MIT"
] | null | null | null | #include "FileWriter.h"
namespace Val {
FileWriter::FileWriter(std::string path, std::string name) {
File.open((path + name).c_str(), std::fstream::out);
}
FileWriter::~FileWriter() {
if (File.is_open()) {
File.close();
}
}
} | 18.461538 | 61 | 0.633333 | animeenginedev |
3fdc25e71d5680c48f0be18d03feb358ef98da5b | 3,023 | cc | C++ | src/ui/layout_engine_test.cc | ambuc/latis | bab48431a563619cdb2d8dfee3fd588e98ff255f | [
"Apache-2.0"
] | 1 | 2020-05-03T18:18:39.000Z | 2020-05-03T18:18:39.000Z | src/ui/layout_engine_test.cc | ambuc/latis | bab48431a563619cdb2d8dfee3fd588e98ff255f | [
"Apache-2.0"
] | null | null | null | src/ui/layout_engine_test.cc | ambuc/latis | bab48431a563619cdb2d8dfee3fd588e98ff255f | [
"Apache-2.0"
] | 1 | 2020-04-18T01:57:07.000Z | 2020-04-18T01:57:07.000Z | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 21.592857 | 75 | 0.62653 | ambuc |
3fdf086c232b4352780aadbe15c57d18d379b67a | 433 | cpp | C++ | CAPSONGTO.cpp | phuongnam2002/testlib | a5cb8e2be7ac7a7e7dca7942a79ec20076f5d1aa | [
"MIT"
] | 2 | 2022-01-14T13:34:09.000Z | 2022-02-21T07:27:29.000Z | CAPSONGTO.cpp | phuongnam2002/testlib | a5cb8e2be7ac7a7e7dca7942a79ec20076f5d1aa | [
"MIT"
] | null | null | null | CAPSONGTO.cpp | phuongnam2002/testlib | a5cb8e2be7ac7a7e7dca7942a79ec20076f5d1aa | [
"MIT"
] | null | null | null | #include<stdio.h>
#include<math.h>
typedef long long ll;
const int N=1e6+3;
int ngto(int n)
{
if(n<2) return 0;
for(int i=2;i*i<=n;i++)
{
if(n%i==0) return 0;
}
return 1;
}
void xuly()
{
int n;
scanf("%d",&n);
for(int i=2;i<=n/2;i++)
{
int x=n-i;
if(ngto(i)&&ngto(x)) printf("%d %d ",i... | 13.121212 | 45 | 0.482679 | phuongnam2002 |
3fe3fdac0407e52cd049ebc21eac11bde4903faa | 283 | cpp | C++ | KeshUI/Public/KeshUI/KUICancellable.cpp | Daekesh/KeshUI | 9cae4a74aab5bd33c526fedcb76264a66414a0dd | [
"MIT"
] | 19 | 2015-03-12T20:30:42.000Z | 2021-12-08T18:33:25.000Z | KeshUI/Public/KeshUI/KUICancellable.cpp | Daekesh/KeshUI | 9cae4a74aab5bd33c526fedcb76264a66414a0dd | [
"MIT"
] | 4 | 2015-03-14T12:26:54.000Z | 2016-04-21T12:51:02.000Z | KeshUI/Public/KeshUI/KUICancellable.cpp | Daekesh/KeshUI | 9cae4a74aab5bd33c526fedcb76264a66414a0dd | [
"MIT"
] | 10 | 2015-03-12T15:04:06.000Z | 2020-06-30T18:52:26.000Z | // Copyright 2014-2015 Matt Chapman. All Rights Reserved.
#include "KeshUI/KeshUI.h"
#include "KeshUI/KUICancellable.h"
UKUICancellable::UKUICancellable( const class FObjectInitializer& oObjectInitializer )
: Super(oObjectInitializer)
{
}
void IKUICancellable::Cancel()
{
}
| 14.894737 | 86 | 0.766784 | Daekesh |
684762ce8154c0bc3e6535b5db5e10f811b8c3de | 2,344 | cpp | C++ | src/Engine/PieceTypes/ToriShogi/Goose.cpp | jweathers777/mShogi | 941cd4dc37e6e6210d4f993c96a553753e228b19 | [
"BSD-3-Clause"
] | 4 | 2015-12-24T04:52:48.000Z | 2021-11-09T11:31:36.000Z | src/Engine/PieceTypes/ToriShogi/Goose.cpp | jweathers777/mShogi | 941cd4dc37e6e6210d4f993c96a553753e228b19 | [
"BSD-3-Clause"
] | null | null | null | src/Engine/PieceTypes/ToriShogi/Goose.cpp | jweathers777/mShogi | 941cd4dc37e6e6210d4f993c96a553753e228b19 | [
"BSD-3-Clause"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////
// Name: Goose.cpp
// Description: Implementation for a class that represents a goose
// Created: 10/20/2004 01:21:22 Eastern Standard Time
// Last Updated: $Date$
// Revision: $Revision$
// Author: John Weathers
// Ema... | 32.109589 | 86 | 0.49616 | jweathers777 |
6848bd5c1fa06b3f96ad6e7c5cc1f6c278def6ee | 5,081 | hpp | C++ | GardenVexor/src/map/gridmap.hpp | kalsipp/vsxpanse | 7887d234312283ce1ace03bed610642b0c6f96b1 | [
"MIT"
] | null | null | null | GardenVexor/src/map/gridmap.hpp | kalsipp/vsxpanse | 7887d234312283ce1ace03bed610642b0c6f96b1 | [
"MIT"
] | null | null | null | GardenVexor/src/map/gridmap.hpp | kalsipp/vsxpanse | 7887d234312283ce1ace03bed610642b0c6f96b1 | [
"MIT"
] | null | null | null | #pragma once
#include <map>
#include <basics/vector2dint.hpp>
#include "gameobject.hpp"
#include "filesystem/resourcearchive.hpp"
#define GRIDMAPSIZE 1024
#define GRIDTILESIZE 32
/*-------------------------------------------------------
Represents a tile in the GridMap.
----------------------------------------------... | 36.553957 | 94 | 0.522338 | kalsipp |
684af639f7df4f21ea3683a94026921b6585f1d1 | 2,443 | hpp | C++ | include/codegen/include/Microsoft/Win32/IRegistryApi.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/Microsoft/Win32/IRegistryApi.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/Microsoft/Win32/IRegistryApi.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:09:38 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
#include "utils/il2cpp-utils.hpp"
// Completed includes
// Begin forward declar... | 45.240741 | 167 | 0.732296 | Futuremappermydud |
684e2b47b849f28f4194e97003916a5436e67a0b | 2,376 | hpp | C++ | src/Engine/MoveGenerator.hpp | jweathers777/mShogi | 941cd4dc37e6e6210d4f993c96a553753e228b19 | [
"BSD-3-Clause"
] | 4 | 2015-12-24T04:52:48.000Z | 2021-11-09T11:31:36.000Z | src/Engine/MoveGenerator.hpp | jweathers777/mShogi | 941cd4dc37e6e6210d4f993c96a553753e228b19 | [
"BSD-3-Clause"
] | null | null | null | src/Engine/MoveGenerator.hpp | jweathers777/mShogi | 941cd4dc37e6e6210d4f993c96a553753e228b19 | [
"BSD-3-Clause"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
// Name: MoveGenerator.hpp
// Description: Interface for class that generates moves for a board position
// Created: Apr 20, 2004 11:43:23 AM
// Author: John Weathers
// Email: hotanguish@hotmail.com
// Copyright... | 32.108108 | 80 | 0.452862 | jweathers777 |
684f3049a62ca219096912108e08f50a7835c70f | 6,522 | cpp | C++ | src/Cloud_optics.cpp | Chiil/rte-rrtmgp-cpp | b39b130c733b8a9633753398b57849826818b8c6 | [
"BSD-3-Clause"
] | null | null | null | src/Cloud_optics.cpp | Chiil/rte-rrtmgp-cpp | b39b130c733b8a9633753398b57849826818b8c6 | [
"BSD-3-Clause"
] | null | null | null | src/Cloud_optics.cpp | Chiil/rte-rrtmgp-cpp | b39b130c733b8a9633753398b57849826818b8c6 | [
"BSD-3-Clause"
] | null | null | null | /*
* This file is part of a C++ interface to the Radiative Transfer for Energetics (RTE)
* and Rapid Radiative Transfer Model for GCM applications Parallel (RRTMGP).
*
* The original code is found at https://github.com/RobertPincus/rte-rrtmgp.
*
* Contacts: Robert Pincus and Eli Mlawer
* email: rrtmgp@aer.com
*... | 35.835165 | 106 | 0.607176 | Chiil |
68527263f6d0d58744f8579527ab063e5a31f0d9 | 4,327 | hpp | C++ | library/src/conversion/rocsparse_gebsr2gebsr.hpp | scchan/rocSPARSE | 6efc875765236a91d6b07ef42446b1b46de661e0 | [
"MIT"
] | 44 | 2018-10-03T19:02:58.000Z | 2022-01-19T20:40:51.000Z | library/src/conversion/rocsparse_gebsr2gebsr.hpp | scchan/rocSPARSE | 6efc875765236a91d6b07ef42446b1b46de661e0 | [
"MIT"
] | 30 | 2019-06-03T16:34:01.000Z | 2022-03-14T19:21:19.000Z | library/src/conversion/rocsparse_gebsr2gebsr.hpp | scchan/rocSPARSE | 6efc875765236a91d6b07ef42446b1b46de661e0 | [
"MIT"
] | 45 | 2018-09-26T08:11:59.000Z | 2022-03-31T07:38:08.000Z | /*! \file */
/* ************************************************************************
* Copyright (c) 2020 Advanced Micro Devices, Inc.
*
* 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 Softwa... | 63.632353 | 100 | 0.431708 | scchan |
68530fd062126afe1b73f393fe8babe4d76252a6 | 5,044 | cxx | C++ | Libraries/ITK/Common/itkFilenameUtils.cxx | NifTK/NifTK | 2358b333c89ff1bba1c232eecbbcdc8003305dfe | [
"BSD-3-Clause"
] | 13 | 2018-07-28T13:36:38.000Z | 2021-11-01T19:17:39.000Z | Libraries/ITK/Common/itkFilenameUtils.cxx | NifTK/NifTK | 2358b333c89ff1bba1c232eecbbcdc8003305dfe | [
"BSD-3-Clause"
] | null | null | null | Libraries/ITK/Common/itkFilenameUtils.cxx | NifTK/NifTK | 2358b333c89ff1bba1c232eecbbcdc8003305dfe | [
"BSD-3-Clause"
] | 10 | 2018-08-20T07:06:00.000Z | 2021-07-07T07:55:27.000Z | /*=============================================================================
NifTK: A software platform for medical image computing.
Copyright (c) University College London (UCL). All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY o... | 23.460465 | 79 | 0.515662 | NifTK |
685f018452dc17270abcdb6b12663e8ff9d299b1 | 799 | cpp | C++ | Sources/EntitySystem/Entity/World.cpp | vit3k/entity_system | 5b00804bb772229cab90ea7de589faced98bc001 | [
"MIT"
] | null | null | null | Sources/EntitySystem/Entity/World.cpp | vit3k/entity_system | 5b00804bb772229cab90ea7de589faced98bc001 | [
"MIT"
] | null | null | null | Sources/EntitySystem/Entity/World.cpp | vit3k/entity_system | 5b00804bb772229cab90ea7de589faced98bc001 | [
"MIT"
] | null | null | null | #include "World.h"
#include "../Events/EntityUpdatedEvent.h"
#include "../Logger.h"
#include "../Engine.h"
EntitySP World::Create()
{
EntitySP entity(new Entity(this,entitySeq.Next()));
entities[entity->ID] = entity;
return entity;
}
void World::EntityUpdate(int id)
{
Engine::Instance().GetDispatcher()->Queue(Enti... | 22.194444 | 93 | 0.707134 | vit3k |
6864b90d618d48278b18fa5288789ce73e5f0f58 | 25,629 | hpp | C++ | include/NRGclasses.hpp | lgds/NRG_USP | ff66846e92498aa429cce6fc5793bec23ad03eb4 | [
"MIT"
] | 3 | 2015-09-21T20:58:45.000Z | 2019-03-20T01:21:41.000Z | include/NRGclasses.hpp | lgds/NRG_USP | ff66846e92498aa429cce6fc5793bec23ad03eb4 | [
"MIT"
] | null | null | null | include/NRGclasses.hpp | lgds/NRG_USP | ff66846e92498aa429cce6fc5793bec23ad03eb4 | [
"MIT"
] | null | null | null |
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/ublas/vector.hpp>
#include <boost/numeric/ublas/io.hpp>
#include <boost/numeric/ublas/matrix_proxy.hpp>
////using namespace boost::numeric::ublas;
extern "C"{
#include <cblas.h>
}
#include <gsl/gsl_integration.h>
#include <iostream>
#include <ioma... | 22.422572 | 154 | 0.670451 | lgds |
686970f7a4bc571bab16a5854bcec34a061af754 | 5,536 | cpp | C++ | moderngl/next/mgl/recorder.cpp | einarf/ModernGL | e4a7f53289043a0ac06130c67edc75b878484a0e | [
"MIT"
] | 1 | 2019-10-18T03:23:16.000Z | 2019-10-18T03:23:16.000Z | moderngl/next/mgl/recorder.cpp | einarf/ModernGL | e4a7f53289043a0ac06130c67edc75b878484a0e | [
"MIT"
] | null | null | null | moderngl/next/mgl/recorder.cpp | einarf/ModernGL | e4a7f53289043a0ac06130c67edc75b878484a0e | [
"MIT"
] | null | null | null | #include "recorder.hpp"
#include "context.hpp"
#include "internal/bytecode.hpp"
#include "internal/modules.hpp"
#include "internal/wrapper.hpp"
#include "internal/tools.hpp"
#include "internal/glsl.hpp"
PyTypeObject * MGLRecorder_class;
PyObject * MGLContext_meth_replay(MGLContext * self, PyObject * bytecode) {
... | 33.96319 | 108 | 0.695448 | einarf |
687345c3397a7900c69085eea45bad4b1691fc32 | 961 | cpp | C++ | src/common/aggregator.cpp | paolofrb/cotson | 1289b58ecc5d8279bc1124495ca0042f9586af11 | [
"MIT"
] | null | null | null | src/common/aggregator.cpp | paolofrb/cotson | 1289b58ecc5d8279bc1124495ca0042f9586af11 | [
"MIT"
] | null | null | null | src/common/aggregator.cpp | paolofrb/cotson | 1289b58ecc5d8279bc1124495ca0042f9586af11 | [
"MIT"
] | null | null | null | // (C) Copyright 2006-2009 Hewlett-Packard Development Company, L.P.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
// THE AUTHORS OR C... | 22.880952 | 77 | 0.71384 | paolofrb |
68747c42bf830d78e915ead8aa71da6ca7ae38fa | 10,919 | cc | C++ | Graphs/Geometry/RecursiveGrid.cc | TrevorShelton/cplot | 8bf40e94519cc4fd69b2e0677d3a3dcf8695245a | [
"MIT"
] | 32 | 2017-11-27T03:04:44.000Z | 2022-01-21T17:03:40.000Z | Graphs/Geometry/RecursiveGrid.cc | TrevorShelton/cplot | 8bf40e94519cc4fd69b2e0677d3a3dcf8695245a | [
"MIT"
] | 30 | 2017-11-10T09:47:16.000Z | 2018-11-21T22:36:47.000Z | Graphs/Geometry/RecursiveGrid.cc | TrevorShelton/cplot | 8bf40e94519cc4fd69b2e0677d3a3dcf8695245a | [
"MIT"
] | 20 | 2018-01-05T17:15:11.000Z | 2021-07-30T14:11:01.000Z | #include "RecursiveGrid.h"
#include <queue>
#include <cstring>
//----------------------------------------------------------------------------------------------------------------------
// Constructors
//---------------------------------------------------------------------------------------------------------------------... | 31.557803 | 145 | 0.446927 | TrevorShelton |
68797e39a7b5007027a919354bb318ef2b711a69 | 2,906 | cpp | C++ | src/CTile.cpp | wlue/codename_portal | c7409cf9e756417974a7f284ade0bba24026c212 | [
"MIT",
"Unlicense"
] | 1 | 2021-03-27T03:00:34.000Z | 2021-03-27T03:00:34.000Z | src/CTile.cpp | wlue/codename_portal | c7409cf9e756417974a7f284ade0bba24026c212 | [
"MIT",
"Unlicense"
] | null | null | null | src/CTile.cpp | wlue/codename_portal | c7409cf9e756417974a7f284ade0bba24026c212 | [
"MIT",
"Unlicense"
] | null | null | null |
#include "CTile.h"
#include "CPortal.h"
#include "CPlayer.h"
CTile::CTile(string _type, int _x, int _y) : CObject(_x, _y), type(_type)
{
Initialize();
}
CTile::~CTile()
{
Delete();
}
void CTile::Initialize()
{
listtil.push_back(this);
w = h = 32;
TileSettings();
}
void CTile::Delete()
{
RemoveElement<CTile*>... | 17.938272 | 113 | 0.628699 | wlue |
687a5c494ab31ef7cc673458fd0a5ffb12ea1f8d | 2,444 | cc | C++ | src/buffered-stream-socket.cc | afett/clingeling | e6f6810dde5a1076e70f261ef738ae8f4dbd4e54 | [
"BSD-2-Clause"
] | null | null | null | src/buffered-stream-socket.cc | afett/clingeling | e6f6810dde5a1076e70f261ef738ae8f4dbd4e54 | [
"BSD-2-Clause"
] | null | null | null | src/buffered-stream-socket.cc | afett/clingeling | e6f6810dde5a1076e70f261ef738ae8f4dbd4e54 | [
"BSD-2-Clause"
] | null | null | null | #include "buffered-stream-socket.h"
#include "posix/socket.h"
BufferedStreamSocket::BufferedStreamSocket(
EPoll::Ctrl & poller,
Posix::SocketFactory & socket_factory,
Posix::SocketAddress const& addr)
:
sendbuf_{4096},
recvbuf_{4096},
socket_(socket_factory.make_stream_socket({
Posix::SocketFactory::Params::D... | 24.19802 | 71 | 0.664894 | afett |
6882bca9b740a50a803c687495c2bd33ff29de5e | 1,433 | cpp | C++ | ABC188E_sequence_dp.cpp | pumbaacave/cppeers | 454d286bdc4a62b5082b40ac80bd8d625a367b56 | [
"Apache-2.0"
] | null | null | null | ABC188E_sequence_dp.cpp | pumbaacave/cppeers | 454d286bdc4a62b5082b40ac80bd8d625a367b56 | [
"Apache-2.0"
] | null | null | null | ABC188E_sequence_dp.cpp | pumbaacave/cppeers | 454d286bdc4a62b5082b40ac80bd8d625a367b56 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <sstream>
#include <vector>
#include <string>
#include <limits.h>
#include <iomanip>
#include <algorithm>
#include <numeric>
#include <functional>
#include <unordered_map>
#include <map>
#include <unordered_set>
#include <array>
#include <math.h>
#define rep(i, n) for (int i = 0; i < (n); ... | 21.38806 | 76 | 0.531752 | pumbaacave |
6888b42560113fed34540b4e167403525ab61ec3 | 1,410 | cpp | C++ | enemybullet.cpp | Loretac/ohlavache | 2cbe309433cca0f7a61d8c08f6f4f383dd934f10 | [
"MIT"
] | null | null | null | enemybullet.cpp | Loretac/ohlavache | 2cbe309433cca0f7a61d8c08f6f4f383dd934f10 | [
"MIT"
] | null | null | null | enemybullet.cpp | Loretac/ohlavache | 2cbe309433cca0f7a61d8c08f6f4f383dd934f10 | [
"MIT"
] | null | null | null | #include "enemybullet.h"
#include <QTimer>
/*********************************************************************
**
*********************************************************************/
void EnemyBullet::setBulletPix(QPixmap map)
{
QPixmap scaled = map.scaled(getWidth(),getHeight());
setPixmap(scaled);
... | 15.326087 | 71 | 0.562411 | Loretac |
688e96c51edbd75c5018d5fe7df6768d39ac5fd4 | 1,134 | h++ | C++ | include/taussig/algorithms/flat_map.h++ | rmartinho/taussig | 896903e7cf47e943eba1253d2448cf193c61e97b | [
"CC0-1.0"
] | null | null | null | include/taussig/algorithms/flat_map.h++ | rmartinho/taussig | 896903e7cf47e943eba1253d2448cf193c61e97b | [
"CC0-1.0"
] | null | null | null | include/taussig/algorithms/flat_map.h++ | rmartinho/taussig | 896903e7cf47e943eba1253d2448cf193c61e97b | [
"CC0-1.0"
] | 1 | 2020-07-09T19:41:00.000Z | 2020-07-09T19:41:00.000Z | // Taussig
//
// Written in 2013 by Martinho Fernandes <martinho.fernandes@gmail.com>
//
// To the extent possible under law, the author(s) have dedicated all copyright and related
// and neighboring rights to this software to the public domain worldwide. This software is
// distributed without any warranty.
//
// You ... | 30.648649 | 96 | 0.723986 | rmartinho |
688fd8fbd5cae4b587918b65f3ac6613136162dc | 7,957 | hpp | C++ | SU2-Quantum/SU2_CFD/include/integration/CIntegration.hpp | Agony5757/SU2-Quantum | 16e7708371a597511e1242f3a7581e8c4187f5b2 | [
"Apache-2.0"
] | null | null | null | SU2-Quantum/SU2_CFD/include/integration/CIntegration.hpp | Agony5757/SU2-Quantum | 16e7708371a597511e1242f3a7581e8c4187f5b2 | [
"Apache-2.0"
] | null | null | null | SU2-Quantum/SU2_CFD/include/integration/CIntegration.hpp | Agony5757/SU2-Quantum | 16e7708371a597511e1242f3a7581e8c4187f5b2 | [
"Apache-2.0"
] | 1 | 2021-12-03T06:40:08.000Z | 2021-12-03T06:40:08.000Z | /*!
* \file CIntegration.hpp
* \brief Declaration of the main routines to orchestrate space and time integration.
* \author F. Palacios, T. Economon
* \version 7.0.6 "Blackbird"
*
* SU2 Project Website: https://su2code.github.io
*
* The SU2 Project is maintained by the SU2 Foundation
* (http://su2foundation.o... | 44.205556 | 122 | 0.688073 | Agony5757 |
689287b03d0d10ab674b209febe6a54401da6f99 | 1,619 | cc | C++ | deeplearning/ml4pl/graphs/graphviz_converter_py.cc | island255/ProGraML | 6c4ea50639773009e7c287feb62c6994fa4f3445 | [
"Apache-2.0"
] | 1 | 2020-07-14T12:17:45.000Z | 2020-07-14T12:17:45.000Z | deeplearning/ml4pl/graphs/graphviz_converter_py.cc | island255/ProGraML | 6c4ea50639773009e7c287feb62c6994fa4f3445 | [
"Apache-2.0"
] | null | null | null | deeplearning/ml4pl/graphs/graphviz_converter_py.cc | island255/ProGraML | 6c4ea50639773009e7c287feb62c6994fa4f3445 | [
"Apache-2.0"
] | null | null | null | // A python binding for the C++ graphviz conversion routine.
//
// Copyright 2019-2020 the ProGraML authors.
//
// Contact Chris Cummins <chrisc.101@gmail.com>.
//
// 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 c... | 34.446809 | 77 | 0.742434 | island255 |
68a05bbd8d0c192f7676a8f9ec52b1feeb3a091a | 1,178 | cpp | C++ | HexGame/Engine/Graphics/View.cpp | kkorenev/HexGame | 33aae3b589f9c032056eab27be653caefbc22f1c | [
"MIT"
] | null | null | null | HexGame/Engine/Graphics/View.cpp | kkorenev/HexGame | 33aae3b589f9c032056eab27be653caefbc22f1c | [
"MIT"
] | null | null | null | HexGame/Engine/Graphics/View.cpp | kkorenev/HexGame | 33aae3b589f9c032056eab27be653caefbc22f1c | [
"MIT"
] | null | null | null | #include <Engine/Graphics/View.hpp>
View::View() :
center(glm::vec2(0.f)),
size(glm::vec2(1920.f, 1080.f)),
scale(1.f),
matrix(glm::mat4(1.f)),
dirty(true)
{
}
View::View(const glm::vec2& size) :
center(glm::vec2(0.f)),
size(size),
scale(1.f),
matrix(glm::mat4(1.f)),
dirty(true)
{
}
void View::setSize(con... | 14.365854 | 80 | 0.616299 | kkorenev |
68a4610a5b66548c03aecad85eb395290fbc53f4 | 512 | cpp | C++ | ftnoir_protocol_libevdev/ftnoir_protocol_libevdev_dialog.cpp | asarnow/opentrack | aed80a837d79eb6997435e062e5fbda0a140a715 | [
"ISC"
] | null | null | null | ftnoir_protocol_libevdev/ftnoir_protocol_libevdev_dialog.cpp | asarnow/opentrack | aed80a837d79eb6997435e062e5fbda0a140a715 | [
"ISC"
] | null | null | null | ftnoir_protocol_libevdev/ftnoir_protocol_libevdev_dialog.cpp | asarnow/opentrack | aed80a837d79eb6997435e062e5fbda0a140a715 | [
"ISC"
] | null | null | null | #include "ftnoir_protocol_libevdev.h"
#include "opentrack/plugin-api.hpp"
LibevdevControls::LibevdevControls()
{
ui.setupUi( this );
connect(ui.btnOK, SIGNAL(clicked()), this, SLOT(doOK()));
connect(ui.btnCancel, SIGNAL(clicked()), this, SLOT(doCancel()));
}
void LibevdevControls::doOK() {
save();
this->close();... | 18.962963 | 66 | 0.705078 | asarnow |
68a4c788264f3b50e1e3995b3aac7f8fa349d877 | 4,391 | cpp | C++ | src/misc/Timer.cpp | jmitchell24/cpp-utility-lib | 76e7bae9f07b741c409a282604a999ab86fc0702 | [
"Apache-2.0"
] | null | null | null | src/misc/Timer.cpp | jmitchell24/cpp-utility-lib | 76e7bae9f07b741c409a282604a999ab86fc0702 | [
"Apache-2.0"
] | null | null | null | src/misc/Timer.cpp | jmitchell24/cpp-utility-lib | 76e7bae9f07b741c409a282604a999ab86fc0702 | [
"Apache-2.0"
] | null | null | null | // Copyright 2013, James Mitchell, All rights reserved.
#define _CRT_SECURE_NO_WARNINGS
#include "Timer.hpp"
using namespace util;
using namespace std;
Duration::Duration()
: time(DefaultDuration::zero())
{}
Duration::Duration(std::time_t const time)
: time(Timer::Clock::from_time_t(time) - Timer::Clock::tim... | 35.41129 | 147 | 0.685493 | jmitchell24 |
68a4cd29b20ee961b7203aa3148535ce035a0c9e | 241 | cpp | C++ | Zerojudge/d485.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | 9 | 2017-10-08T16:22:03.000Z | 2021-08-20T09:32:17.000Z | Zerojudge/d485.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | null | null | null | Zerojudge/d485.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | 2 | 2018-01-15T16:35:44.000Z | 2019-03-21T18:30:04.000Z | #include <iostream>
#include <cmath>
using namespace std;
int main()
{
long long int a,b;
int c,d;
while(cin>>a>>b)
{
c=(b-b%2-(a+a%2))/2+1;
cout<<c<<endl;
}
return 0;
}
| 10.041667 | 31 | 0.431535 | w181496 |
68ab106785f007571d03880dfb962c62808631f1 | 1,117 | hpp | C++ | Sources/AGEngine/Graphic/DRBPointLight.hpp | Another-Game-Engine/AGE | d5d9e98235198fe580a43007914f515437635830 | [
"MIT"
] | 47 | 2015-03-29T09:44:25.000Z | 2020-11-30T10:05:56.000Z | Sources/AGEngine/Graphic/DRBPointLight.hpp | Another-Game-Engine/AGE | d5d9e98235198fe580a43007914f515437635830 | [
"MIT"
] | 313 | 2015-01-01T18:16:30.000Z | 2015-11-30T07:54:07.000Z | Sources/AGEngine/Graphic/DRBPointLight.hpp | Another-Game-Engine/AGE | d5d9e98235198fe580a43007914f515437635830 | [
"MIT"
] | 9 | 2015-06-07T13:21:54.000Z | 2020-08-25T09:50:07.000Z | #pragma once
#include "BFC/BFCCullableObject.hpp"
#include "BFCCullableTypes.hpp"
#include "AssetManagement\Instance\MeshInstance.hh"
namespace AGE
{
struct DRBPointLightData;
struct DRBPointLight : public BFCCullableObject
{
public:
DRBPointLight();
virtual glm::vec4 setBFCTransform(const glm::mat4 &trans... | 31.027778 | 91 | 0.743957 | Another-Game-Engine |
68b0adcd014e08499574ed21664b26e96fb5a914 | 1,949 | cpp | C++ | Graph Problems/BFS & DFS/UVA532 - Dungeon Master/Code.cpp | adelnobel/Training-for-ACM-ICPC-problems | 8030d24ab3ce1f50821b22647bf9195b41f932b1 | [
"MIT"
] | 1 | 2020-03-05T09:09:36.000Z | 2020-03-05T09:09:36.000Z | Graph Problems/BFS & DFS/UVA532 - Dungeon Master/Code.cpp | adelnobel/Training-for-ACM-ICPC-problems | 8030d24ab3ce1f50821b22647bf9195b41f932b1 | [
"MIT"
] | null | null | null | Graph Problems/BFS & DFS/UVA532 - Dungeon Master/Code.cpp | adelnobel/Training-for-ACM-ICPC-problems | 8030d24ab3ce1f50821b22647bf9195b41f932b1 | [
"MIT"
] | null | null | null | #include <vector>
#include <cstdio>
#include <cstring>
#include <queue>
#include <cctype>
#include <cmath>
#include <algorithm>
#include <iostream>
#include <bitset>
#include <map>
#include <complex>
#include <ctime>
#include <numeric>
#include <set>
using namespace std;
typedef long long ll;
int dz[] = {1, -1, 0, 0... | 21.417582 | 96 | 0.431503 | adelnobel |
68b1a069796a6be044bdbe66f97a8a58d2877366 | 12,428 | cpp | C++ | src/render/renderer.cpp | colintan95/gfx_engine | b873488141787825a78bf5a8d6de2679333554eb | [
"MIT"
] | null | null | null | src/render/renderer.cpp | colintan95/gfx_engine | b873488141787825a78bf5a8d6de2679333554eb | [
"MIT"
] | null | null | null | src/render/renderer.cpp | colintan95/gfx_engine | b873488141787825a78bf5a8d6de2679333554eb | [
"MIT"
] | null | null | null | #include "render/renderer.h"
#include <glm/glm.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/transform.hpp>
#include <cassert>
#include <cstddef>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <memory>
#include <new>
#include <optional>
#include <ut... | 33.319035 | 99 | 0.662778 | colintan95 |
68b1f6ece4b200cf036c3a643561f41e755eb260 | 850 | hh | C++ | src/core/event/InputEventHandler.hh | eddiehoyle/sevengine | 4f5bd2b16b1179784c831ef8a0d57ccecee0a92e | [
"MIT"
] | 1 | 2019-08-21T05:06:04.000Z | 2019-08-21T05:06:04.000Z | src/core/event/InputEventHandler.hh | eddiehoyle/sevengine | 4f5bd2b16b1179784c831ef8a0d57ccecee0a92e | [
"MIT"
] | null | null | null | src/core/event/InputEventHandler.hh | eddiehoyle/sevengine | 4f5bd2b16b1179784c831ef8a0d57ccecee0a92e | [
"MIT"
] | null | null | null | //
// Created by Eddie Hoyle on 14/09/16.
//
#ifndef SEV_INPUTHANDLER_HH
#define SEV_INPUTHANDLER_HH
#include <iostream>
#include <vector>
#include <queue>
#include "AbstractEvent.hh"
typedef std::queue < AbstractEvent* > EventQueue;
class InputEventHandler {
public:
InputEventHandler()
{
m_event... | 14.655172 | 50 | 0.595294 | eddiehoyle |
68b2511dffaad442afa47eddc0447b22a187895d | 568 | cpp | C++ | 173. Binary Search Tree Iterator.cpp | qinenergy/leetCode | 79f960795445470a16a4755b05aa05f99e5c616b | [
"MIT"
] | 3 | 2017-02-22T14:28:27.000Z | 2017-04-26T16:26:06.000Z | 173. Binary Search Tree Iterator.cpp | qinenergy/leetCode | 79f960795445470a16a4755b05aa05f99e5c616b | [
"MIT"
] | null | null | null | 173. Binary Search Tree Iterator.cpp | qinenergy/leetCode | 79f960795445470a16a4755b05aa05f99e5c616b | [
"MIT"
] | null | null | null | class BSTIterator {
public:
BSTIterator(TreeNode *root) {
_push(root);
}
/** @return whether we have a next smallest number */
bool hasNext() {
return !_stack.empty();
}
/** @return the next smallest number */
int next() {
auto node = _stack.top();
_stack.po... | 20.285714 | 57 | 0.521127 | qinenergy |
68b64f1f1b55fe5563887a5eb7da36008996dceb | 347 | cc | C++ | src/commands/APC.cc | jhhuh/imgui-terminal | 134f9cb6779738ecf00d6aba8315702986f71115 | [
"MIT"
] | 32 | 2017-09-19T07:25:29.000Z | 2022-03-21T08:21:48.000Z | src/commands/APC.cc | jhhuh/imgui-terminal | 134f9cb6779738ecf00d6aba8315702986f71115 | [
"MIT"
] | 1 | 2017-10-24T18:56:36.000Z | 2017-10-24T18:56:36.000Z | src/commands/APC.cc | jhhuh/imgui-terminal | 134f9cb6779738ecf00d6aba8315702986f71115 | [
"MIT"
] | 10 | 2017-10-18T05:08:14.000Z | 2022-03-21T09:29:04.000Z |
#include <terminal/Terminal.hh>
#include <algorithm> // min, max
namespace terminal {
// Application Program Command
// ECMA-48 8.3.2
bool
Terminal::APC(const std::string &p)
{
if (m_verbose)
log("APC");
// noop
// APC : <lots> ST DECEKBD extended keyboard repo... | 15.086957 | 70 | 0.570605 | jhhuh |
68bb49db9ed66b9268ba935756f86ba5534777f1 | 4,448 | cpp | C++ | test/feature/canvas_test.cpp | fuersten/sun_ray | b882d67cd9747f61b50def4c1414e7552ba917c0 | [
"BSD-3-Clause"
] | 2 | 2021-03-28T21:36:36.000Z | 2021-08-10T14:44:04.000Z | test/feature/canvas_test.cpp | fuersten/sun_ray | b882d67cd9747f61b50def4c1414e7552ba917c0 | [
"BSD-3-Clause"
] | null | null | null | test/feature/canvas_test.cpp | fuersten/sun_ray | b882d67cd9747f61b50def4c1414e7552ba917c0 | [
"BSD-3-Clause"
] | null | null | null | //
// tuple_test.cpp
// sun_ray_test
//
// Created by Lars-Christian Fürstenberg on 25.12.19.
// Copyright © 2019 Lars-Christian Fürstenberg. All rights reserved.
//
#include <sun_ray/feature/canvas.h>
#include <sstream>
#include <catch2/catch.hpp>
TEST_CASE("create canvas", "[canvas]")
{
SECTION("create can... | 28.151899 | 69 | 0.584982 | fuersten |
68bc1d3c85549ba8ed4d94583aa8ced473a5e2ef | 3,983 | cpp | C++ | Test/SourceCppGen/WorkflowAttributesReflection.cpp | vczh2/Workflow | 7ad7d53927ee66ae1df7d68b35e185ce9edcfcf1 | [
"RSA-MD"
] | 1 | 2018-10-17T16:00:38.000Z | 2018-10-17T16:00:38.000Z | Test/SourceCppGen/WorkflowAttributesReflection.cpp | vczh2/Workflow | 7ad7d53927ee66ae1df7d68b35e185ce9edcfcf1 | [
"RSA-MD"
] | null | null | null | Test/SourceCppGen/WorkflowAttributesReflection.cpp | vczh2/Workflow | 7ad7d53927ee66ae1df7d68b35e185ce9edcfcf1 | [
"RSA-MD"
] | null | null | null | /***********************************************************************
!!!!!! DO NOT MODIFY !!!!!!
Source: ../Resources/Codegen/WorkflowAttributes.txt
This file is generated by Workflow compiler
https://github.com/vczh-libraries
***********************************************************************/
#include "Wor... | 33.470588 | 228 | 0.710269 | vczh2 |
68d1d68d62e66c71dab062a174349b57c097200f | 530 | hpp | C++ | src/Node.hpp | wagnrd/SFMLApp | f24ca8c8d36ab928e847e2d2d929226a0e70505d | [
"Unlicense"
] | 4 | 2019-12-12T14:30:46.000Z | 2021-07-28T03:03:16.000Z | src/Node.hpp | wagnrd/SFMLApp | f24ca8c8d36ab928e847e2d2d929226a0e70505d | [
"Unlicense"
] | 1 | 2021-02-11T17:10:29.000Z | 2021-02-11T20:54:03.000Z | src/Node.hpp | wagnrd/SFMLApp | f24ca8c8d36ab928e847e2d2d929226a0e70505d | [
"Unlicense"
] | null | null | null | //
// Created by Denis Wagner on 1/14/19.
//
#ifndef PONG_NODE_HPP
#define PONG_NODE_HPP
#include <SFML/Window/Event.hpp>
#include <SFML/Graphics/RenderWindow.hpp>
#include "Application.hpp"
class Node {
protected:
Application* application;
Node * parent;
public:
void initChild( Application* appli... | 20.384615 | 60 | 0.692453 | wagnrd |
68d5acfae41b53ed4f58fc5808cdd56e1b19b57a | 10,639 | cpp | C++ | Compressed.cpp | Rki009/RiscV-Fast | 3c1e510f1c175cca7e7e43e854787726ba12a69c | [
"Unlicense"
] | null | null | null | Compressed.cpp | Rki009/RiscV-Fast | 3c1e510f1c175cca7e7e43e854787726ba12a69c | [
"Unlicense"
] | null | null | null | Compressed.cpp | Rki009/RiscV-Fast | 3c1e510f1c175cca7e7e43e854787726ba12a69c | [
"Unlicense"
] | null | null | null | //***************************************************************
// Compressed decoding
//***************************************************************
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <ctype.h>
#include <string>
#include "RiscVFast.h"
#include "Cpu.h"
Vliw* f... | 20.901768 | 98 | 0.553999 | Rki009 |
68e03d82ed5e22be73f8b5c257df2782c004b84d | 12,852 | cc | C++ | build/X86_MESI_Two_Level/python/m5/internal/param_EtherDevBase.py.cc | hoho20000000/gem5-fy | b59f6feed22896d6752331652c4d8a41a4ca4435 | [
"BSD-3-Clause"
] | null | null | null | build/X86_MESI_Two_Level/python/m5/internal/param_EtherDevBase.py.cc | hoho20000000/gem5-fy | b59f6feed22896d6752331652c4d8a41a4ca4435 | [
"BSD-3-Clause"
] | 1 | 2020-08-20T05:53:30.000Z | 2020-08-20T05:53:30.000Z | build/X86_MESI_Two_Level/python/m5/internal/param_EtherDevBase.py.cc | hoho20000000/gem5-fy | b59f6feed22896d6752331652c4d8a41a4ca4435 | [
"BSD-3-Clause"
] | null | null | null | #include "sim/init.hh"
namespace {
const uint8_t data_m5_internal_param_EtherDevBase[] = {
120,156,237,90,221,83,28,199,17,239,217,59,14,14,56,56,
196,55,66,102,101,9,9,127,8,36,59,74,156,88,81,217,
178,100,71,174,8,171,14,87,36,147,84,109,45,183,115,176,
232,110,247,106,119,144,116,46,120,136,113,62,... | 59.225806 | 93 | 0.666355 | hoho20000000 |
68f4601a4aeb1523be95b06737e1352a1413b7db | 1,888 | cc | C++ | Modulation/daqana/slowdaq.cc | pumar/Projects | 9d05c0fdf3dfc1b529f6fd3bd8318d5fc06c8a55 | [
"MIT"
] | null | null | null | Modulation/daqana/slowdaq.cc | pumar/Projects | 9d05c0fdf3dfc1b529f6fd3bd8318d5fc06c8a55 | [
"MIT"
] | null | null | null | Modulation/daqana/slowdaq.cc | pumar/Projects | 9d05c0fdf3dfc1b529f6fd3bd8318d5fc06c8a55 | [
"MIT"
] | null | null | null | #include <string>
#include <sstream>
#include <cstdio>
#include <cstdlib>
#include <unistd.h>
#include "driver.hh"
#include "sdaq.hh"
#include "sevent.hh"
#include "srootdriver.hh"
#include <TCanvas.h>
using namespace std;
//
// MAIN program
//
int main(int argc, char **argv)
{
// switches
int c = 0;
stri... | 27.362319 | 88 | 0.599576 | pumar |
68f4e547e0c764342b9d650c957e33c662b44244 | 728 | cpp | C++ | Binary trees/heightOfBT.cpp | PranavDherange/Data_Structures | 9962b5145f6b42d9317e2c328c2b3124f028ca70 | [
"MIT"
] | 2 | 2021-02-25T11:54:50.000Z | 2021-02-25T11:54:54.000Z | Binary trees/heightOfBT.cpp | PranavDherange/Data_Structures | 9962b5145f6b42d9317e2c328c2b3124f028ca70 | [
"MIT"
] | null | null | null | Binary trees/heightOfBT.cpp | PranavDherange/Data_Structures | 9962b5145f6b42d9317e2c328c2b3124f028ca70 | [
"MIT"
] | 1 | 2021-10-03T17:39:10.000Z | 2021-10-03T17:39:10.000Z | /*
Code : Height of Binary Tree
Given a binary tree, find and return the height of given tree.
Input format :
Nodes in the level order form (separated by space). If any node does not have left or right child, take -1 in its place
Output format :
Height
Constraints :
1 <= N <= 10^5
Sample Input :
10
9
4
-1
-1
5
... | 14.56 | 119 | 0.596154 | PranavDherange |
d0ffd2a59b1dfd41df67aac59edcc42f4e9fd2cf | 1,325 | hpp | C++ | proj/KSP/src/Utilities.hpp | bananu7/Arduino | 56769c0850a6da873c29a0ac78fa2e1133bb7cc7 | [
"MIT"
] | 1 | 2020-02-24T09:14:02.000Z | 2020-02-24T09:14:02.000Z | proj/KSP/src/Utilities.hpp | bananu7/Arduino | 56769c0850a6da873c29a0ac78fa2e1133bb7cc7 | [
"MIT"
] | 2 | 2016-11-20T18:43:59.000Z | 2016-11-20T18:44:11.000Z | proj/KSP/src/Utilities.hpp | bananu7/Arduino | 56769c0850a6da873c29a0ac78fa2e1133bb7cc7 | [
"MIT"
] | null | null | null | #pragma once
#include "Structure.h"
/*
inline void Indicators(VesselData const& VData) {
int caution = 0;
int warning = 0;
caution += VData.G > GCAUTION;
warning += VData.G > GWARN;
caution += VData.LiquidFuelS/VData.LiquidFuelTotS*100 < FUELCAUTION;
warning += VData.LiquidFuelS/VData.LiquidF... | 21.721311 | 72 | 0.658113 | bananu7 |
19023a59632b4f4a9de73bff7a5160c920f54d79 | 1,773 | hpp | C++ | include/OpenSpaceToolkit/Astrodynamics/Flight.hpp | oygx210/open-space-toolkit-astrodynamics | 81b76d78bbe76719a34801778d4fb685cc67648f | [
"Apache-2.0"
] | 13 | 2020-05-11T02:22:15.000Z | 2022-01-27T09:42:18.000Z | include/OpenSpaceToolkit/Astrodynamics/Flight.hpp | oygx210/open-space-toolkit-astrodynamics | 81b76d78bbe76719a34801778d4fb685cc67648f | [
"Apache-2.0"
] | 10 | 2018-09-11T05:27:04.000Z | 2020-01-06T03:48:28.000Z | include/OpenSpaceToolkit/Astrodynamics/Flight.hpp | open-space-collective/open-space-toolkit-astrodynamics | d709f5237f25e5ef40eafa5f87e39c00b8acbae1 | [
"Apache-2.0"
] | 4 | 2020-03-05T18:19:03.000Z | 2021-06-24T04:25:05.000Z | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// @project Open Space Toolkit ▸ Astrodynamics
/// @file OpenSpaceToolkit/Astrodynamics/Flight.hpp
/// @author Lucas Brémond <lucas@... | 45.461538 | 160 | 0.250987 | oygx210 |
1907a69bb7bba8c239fb313f1fcba7d10fee3ac0 | 1,550 | cpp | C++ | Hackerearth/Practice/Bob and Candies.cpp | coderanant/Competitive-Programming | 45076af7894251080ac616c9581fbf2dc49604af | [
"MIT"
] | 4 | 2019-06-04T11:03:38.000Z | 2020-06-19T23:37:32.000Z | Hackerearth/Practice/Bob and Candies.cpp | coderanant/Competitive-Programming | 45076af7894251080ac616c9581fbf2dc49604af | [
"MIT"
] | null | null | null | Hackerearth/Practice/Bob and Candies.cpp | coderanant/Competitive-Programming | 45076af7894251080ac616c9581fbf2dc49604af | [
"MIT"
] | null | null | null | /*coderanant*/
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define ll long long
#define f1(i,a,b) for(i=a;i<b;i++)
#define f2(i,a,b) for(i=a;i>=b;i--)
#define endl '\n'
#define pb push_back
#define gp " "
#define ff first
#define ss second
#define mp make_pair
const int mod=1000000007;
vecto... | 15.656566 | 82 | 0.523226 | coderanant |
1912c75c42d29f56b42fc8d7c75334aada01cddc | 955 | hpp | C++ | apps/openmw/mwmechanics/autocalcspell.hpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | apps/openmw/mwmechanics/autocalcspell.hpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | apps/openmw/mwmechanics/autocalcspell.hpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | #ifndef OPENMW_AUTOCALCSPELL_H
#define OPENMW_AUTOCALCSPELL_H
#include <cfloat>
#include <set>
#include <components/esm/loadspel.hpp>
#include <components/esm/loadskil.hpp>
#include <components/esm/loadrace.hpp>
namespace MWMechanics
{
/// Contains algorithm for calculating an NPC's spells based on stats
/// @note ... | 29.84375 | 123 | 0.781152 | Bodillium |
19140d889dc35d732742158cdf0a9bbe7bdf98c5 | 5,075 | cpp | C++ | testsrc/io_tests.cpp | sat-clique/cnfkit | 280605ef29c95df3d5b349d54b2410451a2f5564 | [
"X11"
] | null | null | null | testsrc/io_tests.cpp | sat-clique/cnfkit | 280605ef29c95df3d5b349d54b2410451a2f5564 | [
"X11"
] | null | null | null | testsrc/io_tests.cpp | sat-clique/cnfkit | 280605ef29c95df3d5b349d54b2410451a2f5564 | [
"X11"
] | null | null | null | #include <cnfkit/io.h>
#include <cnfkit/io/io_buf.h>
#include <cnfkit/io/io_libarchive.h>
#include <cnfkit/io/io_stdstream.h>
#include <cnfkit/io/io_zlib.h>
#include "test_utils.h"
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <filesystem>
#include <fstream>
#include <memory>
#include <sstream>
#includ... | 28.835227 | 100 | 0.731823 | sat-clique |
19194698392ffa0b61e8fbd0fec8d5b6185cb55f | 201 | cpp | C++ | cardigan.cpp | kazunetakahashi/poh7 | 8ebf03f7b5a9db5277006678d23d1a0044e91c99 | [
"MIT"
] | null | null | null | cardigan.cpp | kazunetakahashi/poh7 | 8ebf03f7b5a9db5277006678d23d1a0044e91c99 | [
"MIT"
] | null | null | null | cardigan.cpp | kazunetakahashi/poh7 | 8ebf03f7b5a9db5277006678d23d1a0044e91c99 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main() {
int n;
cin >> n;
int x = 1;
for (auto i = 1; i <= n; i++) {
x *= i;
}
cout << x << endl;
}
| 13.4 | 33 | 0.517413 | kazunetakahashi |
191f5f2f1b94bc9069767a0ce3573e45e54b6983 | 9,240 | cpp | C++ | Test/System/String.cpp | SimmyPeet/Axis | a58c073d13f74d0224fbfca34a4dcd4b9d0c6726 | [
"Apache-2.0"
] | 1 | 2022-01-23T14:51:51.000Z | 2022-01-23T14:51:51.000Z | Test/System/String.cpp | SimmyPeet/Axis | a58c073d13f74d0224fbfca34a4dcd4b9d0c6726 | [
"Apache-2.0"
] | null | null | null | Test/System/String.cpp | SimmyPeet/Axis | a58c073d13f74d0224fbfca34a4dcd4b9d0c6726 | [
"Apache-2.0"
] | 1 | 2022-01-10T21:01:54.000Z | 2022-01-10T21:01:54.000Z | #include <Axis/System>
#include <doctest.h>
using namespace Axis;
using namespace Axis::System;
DOCTEST_TEST_CASE("Axis string data structure : [Axis-System]")
{
DOCTEST_SUBCASE("`Axis::String` constructors")
{
DOCTEST_SUBCASE("Constructor")
{
// Default string (empty)
... | 36.09375 | 105 | 0.606169 | SimmyPeet |
1929904be94da08877b20a99828a66e40b39c52e | 739 | hpp | C++ | includes/eeros/core/Fault.hpp | ClaudiaVisentin/eeros-framework | 63739a2e33b0c5e9e573748fef675131c35181a6 | [
"Apache-2.0"
] | 10 | 2015-02-17T15:27:50.000Z | 2021-12-10T08:34:13.000Z | includes/eeros/core/Fault.hpp | ClaudiaVisentin/eeros-framework | 63739a2e33b0c5e9e573748fef675131c35181a6 | [
"Apache-2.0"
] | 6 | 2016-05-10T17:11:09.000Z | 2022-03-31T07:52:11.000Z | includes/eeros/core/Fault.hpp | ClaudiaVisentin/eeros-framework | 63739a2e33b0c5e9e573748fef675131c35181a6 | [
"Apache-2.0"
] | 13 | 2016-05-01T09:56:51.000Z | 2022-03-28T09:27:49.000Z | #ifndef ORG_EEROS_CORE_FAULT_HPP
#define ORG_EEROS_CORE_FAULT_HPP
#include <string>
#include <sstream>
#include <exception>
namespace eeros {
/**
* Base class for EEROS faults.
*/
class Fault : public std::exception {
public:
/**
* Default constructor for a fault.
*/
Fault();
/**
* Default con... | 16.422222 | 69 | 0.649526 | ClaudiaVisentin |
192ba54326ea53473d483f1b6bc0546a16236938 | 6,677 | cc | C++ | orb_object_slam/src/MapObject.cc | Aceralon/cube_slam | 1687e7cca6e77c96a507655c8dd6c1e7653535ae | [
"BSD-3-Clause"
] | 619 | 2018-10-31T00:04:33.000Z | 2022-03-28T13:25:41.000Z | orb_object_slam/src/MapObject.cc | Aceralon/cube_slam | 1687e7cca6e77c96a507655c8dd6c1e7653535ae | [
"BSD-3-Clause"
] | 48 | 2019-03-19T03:05:55.000Z | 2022-01-20T03:57:44.000Z | orb_object_slam/src/MapObject.cc | Aceralon/cube_slam | 1687e7cca6e77c96a507655c8dd6c1e7653535ae | [
"BSD-3-Clause"
] | 207 | 2018-10-31T02:02:09.000Z | 2022-03-30T08:25:36.000Z | #include "MapObject.h"
#include "KeyFrame.h"
#include "MapPoint.h"
#include "Map.h"
#include <Converter.h>
#include "mutex"
namespace ORB_SLAM2
{
using namespace std;
long int MapObject::nNextId = 0;
mutex MapObject::mGlobalMutex;
MapObject::MapObject(Map *pMap, bool update_index) : mbBad(false), mpMap(pMap)
{
if (... | 23.510563 | 151 | 0.736409 | Aceralon |
193094f3d7f28da998e67b90526c3ce73af0766a | 676 | cpp | C++ | ProyectoFinal-L1/cuenta.cpp | josedaviddubon/cpp | caa8db741065f3c6a7b9fc9dfddfb619a481c815 | [
"MIT"
] | null | null | null | ProyectoFinal-L1/cuenta.cpp | josedaviddubon/cpp | caa8db741065f3c6a7b9fc9dfddfb619a481c815 | [
"MIT"
] | null | null | null | ProyectoFinal-L1/cuenta.cpp | josedaviddubon/cpp | caa8db741065f3c6a7b9fc9dfddfb619a481c815 | [
"MIT"
] | null | null | null | #include <iostream>
#include "Includes/pinguino.h"
using namespace std;
void menu()
{
int opcion = 0;
while(true)
{
system("cls");
cout << "******";
cout << "PINGUINO";
cout << "*****";
cout << endl;
cout << endl;
cout << endl;
cout << "1- Agregar Precios y dividir cu... | 13.795918 | 61 | 0.457101 | josedaviddubon |
19332881fe050bf5c08e69096921dcd490f9f6cd | 1,169 | cpp | C++ | ee21/common/src/token.cpp | ygor-rezende/Expression-Evaluator | 52868ff11ce72a4ae6fa9a4052005c02f8485b3c | [
"FTL"
] | null | null | null | ee21/common/src/token.cpp | ygor-rezende/Expression-Evaluator | 52868ff11ce72a4ae6fa9a4052005c02f8485b3c | [
"FTL"
] | null | null | null | ee21/common/src/token.cpp | ygor-rezende/Expression-Evaluator | 52868ff11ce72a4ae6fa9a4052005c02f8485b3c | [
"FTL"
] | null | null | null | /*! \file token.cpp
\brief Token class implementation.
\author Garth Santor
\date 2021-10-29
\copyright Garth Santor, Trinh Han
=============================================================
Implementation of the Token class.
=============================================================
Revision History
----------... | 27.186047 | 90 | 0.55432 | ygor-rezende |
1939307ab598bc23f0a8a5891c75f10ef05429fe | 1,803 | hpp | C++ | external/include/SFGUI/SFGUI.hpp | JevinJ/ConnectFour | 3e131c9ff957c3ca108b6f79e8940ba3ae40e8d4 | [
"MIT"
] | 3 | 2018-09-09T01:50:13.000Z | 2018-09-09T01:50:31.000Z | external/include/SFGUI/SFGUI.hpp | JevinJ/ConnectFour | 3e131c9ff957c3ca108b6f79e8940ba3ae40e8d4 | [
"MIT"
] | null | null | null | external/include/SFGUI/SFGUI.hpp | JevinJ/ConnectFour | 3e131c9ff957c3ca108b6f79e8940ba3ae40e8d4 | [
"MIT"
] | 1 | 2021-04-30T13:49:57.000Z | 2021-04-30T13:49:57.000Z | #pragma once
#include <SFGUI/Config.hpp>
#include <SFML/Config.hpp>
namespace sf {
class Window;
class RenderWindow;
class RenderTexture;
}
namespace sfg {
class Renderer;
/** A class to shield us from evil SFML and MSVC.
*/
class SFGUI_API SFGUI {
public:
/** Constructor.
*/
SFGUI();
/** Dtor.
*/
... | 26.130435 | 111 | 0.687188 | JevinJ |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.