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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c7b91e3142328590d0a305e58709326aa002a521 | 38,426 | cc | C++ | src/paths/AssemblyCleanupTools.cc | bayolau/discovar | 9e472aca13670e40ab2234b89c8afd64875c58bf | [
"MIT"
] | null | null | null | src/paths/AssemblyCleanupTools.cc | bayolau/discovar | 9e472aca13670e40ab2234b89c8afd64875c58bf | [
"MIT"
] | null | null | null | src/paths/AssemblyCleanupTools.cc | bayolau/discovar | 9e472aca13670e40ab2234b89c8afd64875c58bf | [
"MIT"
] | 1 | 2021-11-28T21:35:27.000Z | 2021-11-28T21:35:27.000Z | ///////////////////////////////////////////////////////////////////////////////
// SOFTWARE COPYRIGHT NOTICE AGREEMENT //
// This software and its documentation are copyright (2011) by the //
// Broad Institute. All rights are reserved. This software is supplied //
... | 35.253211 | 170 | 0.592463 | bayolau |
c7bbb0a147bc75aa65e0234f9b46e003970d8cda | 9,058 | cpp | C++ | src/GenModel.cpp | StebQC/GenModel | 6590293cd541ebb3bba1e73b04c6d014dfc633f2 | [
"MIT"
] | null | null | null | src/GenModel.cpp | StebQC/GenModel | 6590293cd541ebb3bba1e73b04c6d014dfc633f2 | [
"MIT"
] | null | null | null | src/GenModel.cpp | StebQC/GenModel | 6590293cd541ebb3bba1e73b04c6d014dfc633f2 | [
"MIT"
] | null | null | null | #include "GenModel.h"
//#include "SqlCaller.h"
#include <math.h>
#include <time.h>
GenModel::GenModel()
{
version = "genmodellean-0.0.15 build 0001";
hassolution = false;
bcreated = false;
binit = false;
nc = 0;
nr = 0;
solverdata = NULL;
}
double GenModel::FindConstraintMaxLhs(long row)
... | 20.493213 | 128 | 0.596048 | StebQC |
c7c44bed3f2564f4702ed6c4515175a6825623c5 | 7,900 | cpp | C++ | src/stan/language/ast_def.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 1 | 2019-09-06T15:53:17.000Z | 2019-09-06T15:53:17.000Z | src/stan/language/ast_def.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 8 | 2019-01-17T18:51:16.000Z | 2019-01-17T18:51:39.000Z | src/stan/language/ast_def.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | null | null | null | #ifndef STAN_LANG_AST_DEF_CPP
#define STAN_LANG_AST_DEF_CPP
#include "stan/language/ast.hpp"
#include "stan/language/ast/fun/bare_type_is_data_vis_def.hpp"
#include "stan/language/ast/fun/bare_type_order_id_vis_def.hpp"
#include "stan/language/ast/fun/bare_type_set_is_data_vis_def.hpp"
#include "stan/language/ast/fun/... | 55.244755 | 73 | 0.826329 | alashworth |
c7c9ca4378f7e79de21c67be42dea9eb9a293b84 | 1,809 | hpp | C++ | MineClone/src/World/Blocks/Block.hpp | Harry09/MineClone | ee893640b7570c38b5930569e2e67a18a5afce53 | [
"MIT"
] | null | null | null | MineClone/src/World/Blocks/Block.hpp | Harry09/MineClone | ee893640b7570c38b5930569e2e67a18a5afce53 | [
"MIT"
] | null | null | null | MineClone/src/World/Blocks/Block.hpp | Harry09/MineClone | ee893640b7570c38b5930569e2e67a18a5afce53 | [
"MIT"
] | 1 | 2020-09-02T10:36:39.000Z | 2020-09-02T10:36:39.000Z | #pragma once
#include <memory>
#include <vector>
#include <glm/vec2.hpp>
#include <glm/vec3.hpp>
#include "BlockMesh.hpp"
#include "Maths/Coords.hpp"
class ChunkSegment;
class Block
{
public:
static constexpr int BlockFaceCount = static_cast<int>(BlockFace::Size);
protected:
ChunkSegment& _chunk;
coords::Loca... | 22.333333 | 107 | 0.722499 | Harry09 |
c7cfc4d8a7c98de1980110212c8fd4f4f656f25a | 4,927 | cpp | C++ | osrm-backend/src/engine/engine.cpp | shiyuan/osrm | ce730ce5e471870b86b460c09051cd301476ef07 | [
"MIT"
] | 1 | 2017-04-15T22:58:23.000Z | 2017-04-15T22:58:23.000Z | src/engine/engine.cpp | zummach/osrm | 7ab1b0893729064aa35b29d78cec605eb9831433 | [
"BSD-2-Clause"
] | 1 | 2019-11-21T09:59:27.000Z | 2019-11-21T09:59:27.000Z | osrm-ch/src/engine/engine.cpp | dingchunda/osrm-backend | 8750749b83bd9193ca3481c630eefda689ecb73c | [
"BSD-2-Clause"
] | null | null | null | #include "engine/api/route_parameters.hpp"
#include "engine/engine.hpp"
#include "engine/engine_config.hpp"
#include "engine/status.hpp"
#include "engine/plugins/match.hpp"
#include "engine/plugins/nearest.hpp"
#include "engine/plugins/table.hpp"
#include "engine/plugins/tile.hpp"
#include "engine/plugins/trip.hpp"
#i... | 33.97931 | 110 | 0.733509 | shiyuan |
c7d021bca8c0f014831ab539c537d48241ef27ec | 855 | cpp | C++ | Old Files/SingleRoad_Square/alpha_sq.cpp | karenl7/stlhj | c3f35aefe81e2f6c721e4723ba4d07930b2661e7 | [
"MIT"
] | 6 | 2019-01-30T00:11:55.000Z | 2022-03-09T02:44:51.000Z | Old Files/SingleRoad_Square/alpha_sq.cpp | StanfordASL/stlhj | c3f35aefe81e2f6c721e4723ba4d07930b2661e7 | [
"MIT"
] | null | null | null | Old Files/SingleRoad_Square/alpha_sq.cpp | StanfordASL/stlhj | c3f35aefe81e2f6c721e4723ba4d07930b2661e7 | [
"MIT"
] | 4 | 2018-09-08T00:16:55.000Z | 2022-03-09T02:44:54.000Z | void alpha_sq(
beacls::FloatVec& alpha,
beacls::FloatVec xs,
FLOAT_TYPE dim,
const size_t numel,
FLOAT_TYPE alpha_offset,
FLOAT_TYPE length){
if (dim == 0){
std::transform(xs.cbegin(), xs.cend(), alpha.begin(),
[alpha_offset, length](const auto &xs_i) {
return 1- s... | 31.666667 | 88 | 0.604678 | karenl7 |
c7d413983e1c4fa4031ac193ad74a471a07255e1 | 31,837 | cpp | C++ | share/prototypes/bootstrap-redux/basecode/language/core/parser/parser.cpp | basecode-lang/bootstrap | 8e787e4fa66438e01897a67a026557f9fe7d5b57 | [
"MIT"
] | 32 | 2018-05-14T23:26:54.000Z | 2020-06-14T10:13:20.000Z | basecode/language/core/parser/parser.cpp | blockspacer/bootstrap-redux | 2d0e0d7d2b1f6f203c3dd01f6929805042db8ec7 | [
"MIT"
] | 79 | 2018-08-01T11:50:45.000Z | 2020-11-17T13:40:06.000Z | basecode/language/core/parser/parser.cpp | blockspacer/bootstrap-redux | 2d0e0d7d2b1f6f203c3dd01f6929805042db8ec7 | [
"MIT"
] | 14 | 2021-01-08T05:05:19.000Z | 2022-03-27T14:56:56.000Z | // ----------------------------------------------------------------------------
// ____ _
// | _\ | |
// | |_)| __ _ ___ ___ ___ ___ __| | ___ TM
// | _< / _` / __|/ _ \/ __/ _ \ / _` |/ _ \
// | |_)| (_| \__ \ __/ (_| (_) | (_| | __/
// |____/\__,_|___/... | 36.385143 | 100 | 0.493106 | basecode-lang |
93a87647d6418306fc902f4418cb4125cef44ff0 | 1,683 | hpp | C++ | System.Windows.Forms/include/Switch/System/Windows/Forms/FormBorderStyle.hpp | kkptm/CppLikeCSharp | b2d8d9da9973c733205aa945c9ba734de0c734bc | [
"MIT"
] | 4 | 2021-10-14T01:43:00.000Z | 2022-03-13T02:16:08.000Z | System.Windows.Forms/include/Switch/System/Windows/Forms/FormBorderStyle.hpp | kkptm/CppLikeCSharp | b2d8d9da9973c733205aa945c9ba734de0c734bc | [
"MIT"
] | null | null | null | System.Windows.Forms/include/Switch/System/Windows/Forms/FormBorderStyle.hpp | kkptm/CppLikeCSharp | b2d8d9da9973c733205aa945c9ba734de0c734bc | [
"MIT"
] | 2 | 2022-03-13T02:16:06.000Z | 2022-03-14T14:32:57.000Z | /// @file
/// @brief Contains Switch::System::Windows::Forms::BorderStyle enum.
#pragma once
#include <Switch/System/Enum.hpp>
namespace Switch {
namespace System {
namespace Windows {
namespace Forms {
/// @brief Specifies the border styles for a form.
enum class FormBorderStyle {
... | 33.66 | 132 | 0.639929 | kkptm |
93aed6408e1594864ceb8cde169762462cd38966 | 5,248 | cpp | C++ | SDK/PUBG_ReplayEditorStepperWidget_functions.cpp | realrespecter/PUBG-FULL-SDK | 5e2b0f103c74c95d2329c4c9dfbfab48aa0da737 | [
"MIT"
] | 7 | 2019-03-06T11:04:52.000Z | 2019-07-10T20:00:51.000Z | SDK/PUBG_ReplayEditorStepperWidget_functions.cpp | realrespecter/PUBG-FULL-SDK | 5e2b0f103c74c95d2329c4c9dfbfab48aa0da737 | [
"MIT"
] | null | null | null | SDK/PUBG_ReplayEditorStepperWidget_functions.cpp | realrespecter/PUBG-FULL-SDK | 5e2b0f103c74c95d2329c4c9dfbfab48aa0da737 | [
"MIT"
] | 10 | 2019-03-06T11:53:46.000Z | 2021-02-18T14:01:11.000Z | // PUBG FULL SDK - Generated By Respecter (5.3.4.11 [06/03/2019]) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "PUBG_ReplayEditorStepperWidget_parameters.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Functions
//----------------------------------... | 30.870588 | 206 | 0.780869 | realrespecter |
93b19508039e9c7acd3fd32dae05e5fd7cf2933f | 35 | cpp | C++ | src/gui/gui.cpp | lchsk/knight-libs | 14cb06e4092bf78abd7a5d0d5313b10236ee8926 | [
"MIT"
] | null | null | null | src/gui/gui.cpp | lchsk/knight-libs | 14cb06e4092bf78abd7a5d0d5313b10236ee8926 | [
"MIT"
] | null | null | null | src/gui/gui.cpp | lchsk/knight-libs | 14cb06e4092bf78abd7a5d0d5313b10236ee8926 | [
"MIT"
] | null | null | null | #include "gui.hpp"
namespace K {}
| 8.75 | 18 | 0.657143 | lchsk |
93b6cd6f6932802b8424570691e10e609b4f97ed | 10,715 | hpp | C++ | include/memoria/prototypes/bt/container/bt_c_leaf_variable.hpp | victor-smirnov/memoria | c36a957c63532176b042b411b1646c536e71a658 | [
"BSL-1.0",
"Apache-2.0",
"OLDAP-2.8",
"BSD-3-Clause"
] | 2 | 2021-07-30T16:54:24.000Z | 2021-09-08T15:48:17.000Z | include/memoria/prototypes/bt/container/bt_c_leaf_variable.hpp | victor-smirnov/memoria | c36a957c63532176b042b411b1646c536e71a658 | [
"BSL-1.0",
"Apache-2.0",
"OLDAP-2.8",
"BSD-3-Clause"
] | null | null | null | include/memoria/prototypes/bt/container/bt_c_leaf_variable.hpp | victor-smirnov/memoria | c36a957c63532176b042b411b1646c536e71a658 | [
"BSL-1.0",
"Apache-2.0",
"OLDAP-2.8",
"BSD-3-Clause"
] | 2 | 2020-03-14T15:15:25.000Z | 2020-06-15T11:26:56.000Z |
// Copyright 2015 Victor Smirnov
//
// 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... | 26.522277 | 122 | 0.602706 | victor-smirnov |
93b8ae2ccb30914bf41e94c39d0ab0d2910f05d0 | 818 | cpp | C++ | codeforces/D - Minimum Triangulation/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/D - Minimum Triangulation/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/D - Minimum Triangulation/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Mar/22/2019 21:42
* solution_verdict: Accepted language: GNU C++14
* run... | 43.052632 | 111 | 0.360636 | kzvd4729 |
93b9f51c946aa792d1050b0463bb5d673cc7ac2a | 6,155 | cpp | C++ | src/dio.cpp | johnsonjason/RVDbg | 63790440d3089bf74985171947483f5bfbcbe06b | [
"MIT"
] | 16 | 2019-09-05T01:12:21.000Z | 2022-01-10T12:33:31.000Z | src/dio.cpp | longmode/RVDbg | 63790440d3089bf74985171947483f5bfbcbe06b | [
"MIT"
] | null | null | null | src/dio.cpp | longmode/RVDbg | 63790440d3089bf74985171947483f5bfbcbe06b | [
"MIT"
] | 3 | 2018-09-07T08:51:26.000Z | 2019-01-06T07:39:13.000Z | #include "stdafx.h"
#include "dio.h"
/*++
Routine Description:
Initializes WSA data / Winsock
Parameters:
None
Return Value:
None
--*/
void dio::InitializeNetwork()
{
WSAData WsaData;
WSAStartup(MAKEWORD(2, 2), &WsaData);
}
/*++
Routine Description:
Starts the Debug Server, which interfaces with the D... | 23.314394 | 120 | 0.740374 | johnsonjason |
93bf148cd21c563abccc25de1deed48e7822c07d | 1,142 | cpp | C++ | gui/shapes/Line.cpp | TrapGameStudio/MouseTraps | 1160f8b6ef865b180f418bd6d83f40d59d938130 | [
"MIT"
] | null | null | null | gui/shapes/Line.cpp | TrapGameStudio/MouseTraps | 1160f8b6ef865b180f418bd6d83f40d59d938130 | [
"MIT"
] | null | null | null | gui/shapes/Line.cpp | TrapGameStudio/MouseTraps | 1160f8b6ef865b180f418bd6d83f40d59d938130 | [
"MIT"
] | 1 | 2020-04-19T23:20:25.000Z | 2020-04-19T23:20:25.000Z | #include "Line.h"
/// <summary>
/// Construct a line from 2 Points.
/// </summary>
/// <param name="p1">point 1</param>
/// <param name="p2">point 2</param>
Line::Line(Point* p1, Point* p2) {
this->p1 = p1;
this->p2 = p2;
}
/// <summary>
/// Construct a line from the coordinate of 2 points.
/// </summary>
//... | 22.84 | 93 | 0.595447 | TrapGameStudio |
93bf946d7e2beedad2beb2e86aceadfcfc7eaa1d | 1,385 | cpp | C++ | tutorial/more_basics/Expressions.cpp | luanics/cpp-illustrated | 6049de2119a53d656a63b65d9441e680355ef196 | [
"MIT"
] | null | null | null | tutorial/more_basics/Expressions.cpp | luanics/cpp-illustrated | 6049de2119a53d656a63b65d9441e680355ef196 | [
"MIT"
] | null | null | null | tutorial/more_basics/Expressions.cpp | luanics/cpp-illustrated | 6049de2119a53d656a63b65d9441e680355ef196 | [
"MIT"
] | null | null | null | #include "luanics/testing/Tutorial.hpp"
#include <type_traits>
BEGIN_CHAPTER(Expressions)
// As a reminder...
// Decltype
//
// X (input) -> decltype(X) (output)
// =================================================
// identifier of type T -> T
// ----------------------------------------... | 31.477273 | 71 | 0.587004 | luanics |
93c1749c635261908f933ed879fa893a9326b5b1 | 1,539 | cpp | C++ | apps/opencs/model/world/idtableproxymodel.cpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | apps/opencs/model/world/idtableproxymodel.cpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | apps/opencs/model/world/idtableproxymodel.cpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null |
#include "idtableproxymodel.hpp"
#include <vector>
#include "idtablebase.hpp"
void CSMWorld::IdTableProxyModel::updateColumnMap()
{
mColumnMap.clear();
if (mFilter)
{
std::vector<int> columns = mFilter->getReferencedColumns();
const IdTableBase& table = dynamic_cast<const IdTableBase&>... | 27.482143 | 99 | 0.708902 | Bodillium |
93c3aaaf2f479fd8e17c86dc5e96d16e699a4d43 | 1,197 | cpp | C++ | Source/Windows/GithubIssuesWindow.cpp | humdingerb/Issues | 115ac2c3bc04e2f967fc884fa3fd7eb46aea6bbf | [
"MIT"
] | null | null | null | Source/Windows/GithubIssuesWindow.cpp | humdingerb/Issues | 115ac2c3bc04e2f967fc884fa3fd7eb46aea6bbf | [
"MIT"
] | null | null | null | Source/Windows/GithubIssuesWindow.cpp | humdingerb/Issues | 115ac2c3bc04e2f967fc884fa3fd7eb46aea6bbf | [
"MIT"
] | null | null | null | /*
* Copyright 2015 Your Name <your@email.address>
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "GithubIssuesWindow.h"
#include "GithubRepository.h"
#include "Constants.h"
#include "IssuesContainerView.h"
#include <interface/MenuBar.h>
#include <interface/MenuItem.h>
#include... | 25.468085 | 96 | 0.785297 | humdingerb |
93c3ea338ec81545bc85c39ee99a047e03304c99 | 4,013 | cpp | C++ | test/separator_test.cpp | thm-mni-ii/sea | 3d3f63c3d17ab91f0aaada3c4315ba98367a3460 | [
"MIT"
] | 17 | 2019-01-03T11:17:31.000Z | 2021-10-31T19:19:41.000Z | test/separator_test.cpp | thm-mni-ii/sea | 3d3f63c3d17ab91f0aaada3c4315ba98367a3460 | [
"MIT"
] | 106 | 2018-03-03T16:37:17.000Z | 2020-08-31T09:24:52.000Z | test/separator_test.cpp | thm-mni-ii/sea | 3d3f63c3d17ab91f0aaada3c4315ba98367a3460 | [
"MIT"
] | 4 | 2018-05-21T13:30:01.000Z | 2019-06-12T07:43:43.000Z | #include <sealib/flow/separator.h>
#include <gtest/gtest.h>
#include <sealib/iterator/dfs.h>
#include <cstdio>
#include <cstdlib>
#include <random>
#include <sealib/collection/bitset.h>
#include <sealib/graph/graphcreator.h>
namespace Sealib {
static uint64_t n = 50;
static uint64_t deg = 4;
TEST(SeparatorTest, VSep... | 31.108527 | 80 | 0.468727 | thm-mni-ii |
93cbf0c0d0f9d7ce039184dff6cd44601027bdcf | 2,818 | cpp | C++ | dependencies-include/nxogre/src/NxOgreSimpleShape.cpp | bach74/Lisa | 6f79b909f734883cd05a0ccf8679199ae2e301cf | [
"MIT",
"Unlicense"
] | 2 | 2016-06-23T21:20:19.000Z | 2020-03-25T15:01:07.000Z | dependencies-include/nxogre/src/NxOgreSimpleShape.cpp | bach74/Lisa | 6f79b909f734883cd05a0ccf8679199ae2e301cf | [
"MIT",
"Unlicense"
] | null | null | null | dependencies-include/nxogre/src/NxOgreSimpleShape.cpp | bach74/Lisa | 6f79b909f734883cd05a0ccf8679199ae2e301cf | [
"MIT",
"Unlicense"
] | null | null | null | /** \file NxOgreSimpleShape.cpp
* \see NxOgreSimpleShape.h
* \version 1.0-21
*
* \licence NxOgre a wrapper for the PhysX physics library.
* Copyright (C) 2005-8 Robin Southern of NxOgre.org http://www.nxogre.org
* This library is free software; you can redistribute it and/or
* ... | 32.767442 | 87 | 0.529808 | bach74 |
93d0c017e4c6a664c47d05878b8e336acba64bb3 | 762 | cpp | C++ | chtho/logging/tests/LogFile_test.cpp | WineChord/chtho | f43c56a1c2faf83e5f48361ca1b06366ce061aab | [
"MIT"
] | null | null | null | chtho/logging/tests/LogFile_test.cpp | WineChord/chtho | f43c56a1c2faf83e5f48361ca1b06366ce061aab | [
"MIT"
] | null | null | null | chtho/logging/tests/LogFile_test.cpp | WineChord/chtho | f43c56a1c2faf83e5f48361ca1b06366ce061aab | [
"MIT"
] | null | null | null | // Copyright (c) 2021 Qizhou Guo
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
#include "chtho/logging/Logger.h"
#include "chtho/logging/LogFile.h"
#include <memory>
#include <unistd.h>
std::unique_ptr<chtho::LogFile> logfile;
void outputFunc(const char* msg, int le... | 27.214286 | 72 | 0.678478 | WineChord |
93d6a97b2033a24daea2f1994741410bf62ec338 | 27,263 | cpp | C++ | DesktopSharing/xop/RtmpConnection.cpp | JungleZy/DesktopSharing | b8d551a50a3abad8f54db9e5a74d778725422f22 | [
"MIT"
] | 502 | 2018-06-12T14:48:54.000Z | 2022-03-31T07:33:00.000Z | DesktopSharing/xop/RtmpConnection.cpp | JungleZy/DesktopSharing | b8d551a50a3abad8f54db9e5a74d778725422f22 | [
"MIT"
] | 37 | 2018-11-23T20:43:27.000Z | 2021-12-24T07:39:17.000Z | DesktopSharing/xop/RtmpConnection.cpp | JungleZy/DesktopSharing | b8d551a50a3abad8f54db9e5a74d778725422f22 | [
"MIT"
] | 198 | 2018-06-13T13:19:05.000Z | 2022-03-30T07:32:20.000Z | #include "RtmpConnection.h"
#include "RtmpServer.h"
#include "RtmpPublisher.h"
#include "RtmpClient.h"
#include "net/Logger.h"
#include <random>
using namespace xop;
RtmpConnection::RtmpConnection(std::shared_ptr<RtmpServer> rtmp_server, TaskScheduler *task_scheduler, SOCKET sockfd)
: RtmpConnection(task_s... | 28.788807 | 138 | 0.658732 | JungleZy |
93de959e2074203e27e6365e684acc22f4415261 | 1,320 | cc | C++ | test/lazy_string_unittest.cc | Mercy1101/my_log | 593dddc9cc4d7b6f2fa51176c7f83429fe43c266 | [
"MIT"
] | null | null | null | test/lazy_string_unittest.cc | Mercy1101/my_log | 593dddc9cc4d7b6f2fa51176c7f83429fe43c266 | [
"MIT"
] | null | null | null | test/lazy_string_unittest.cc | Mercy1101/my_log | 593dddc9cc4d7b6f2fa51176c7f83429fe43c266 | [
"MIT"
] | null | null | null | /// Copyright (c) 2019,2020 Lijiancong. All rights reserved.
///
/// Use of this source code is governed by a MIT license
/// that can be found in the License file.
#include "my_log/lazy_string.hpp"
#include <catch2/catch.hpp>
#include "profiler.hpp"
TEST_CASE("lazy_string", "[my_log][lazy_string]") {
{
PROFI... | 32.195122 | 80 | 0.567424 | Mercy1101 |
93ded1ddca3b29d61cdea4317793aac8c7ebece8 | 4,247 | cpp | C++ | src/Solver/g2oEdgeSE3Self.cpp | zjcs/PKVIO | 7e26df3f3ee5bf0f44624c2ce94e15d33bb5544b | [
"Unlicense"
] | null | null | null | src/Solver/g2oEdgeSE3Self.cpp | zjcs/PKVIO | 7e26df3f3ee5bf0f44624c2ce94e15d33bb5544b | [
"Unlicense"
] | null | null | null | src/Solver/g2oEdgeSE3Self.cpp | zjcs/PKVIO | 7e26df3f3ee5bf0f44624c2ce94e15d33bb5544b | [
"Unlicense"
] | null | null | null | #include "g2oEdgeSE3Self.h"
#include "g2o/core/factory.h"
#include "g2o/stuff/macros.h"
namespace g2o
{
using namespace std;
using namespace Eigen;
//G2O_REGISTER_TYPE_GROUP(expmap2);
//G2O_REGISTER_TYPE(EDGE_SE3:EXPMAP2, EdgeSE3ProjectXYZRight2);
//G2O_REGISTER_TYPE(EDGE_SE3:EXPMAP2, EdgeSE3ProjectXYZRight);
//Edg... | 26.879747 | 87 | 0.579703 | zjcs |
93e0c4ff2741f421254fd37d5e6b3a1d59563211 | 17,835 | cpp | C++ | src/interpreter/library/fn_d3d.cpp | Grossley/opengml | bc3494aae64092f1c32a16361fd781249e2ea630 | [
"MIT"
] | 26 | 2019-07-18T04:45:08.000Z | 2022-03-13T09:52:04.000Z | src/interpreter/library/fn_d3d.cpp | Grossley/opengml | bc3494aae64092f1c32a16361fd781249e2ea630 | [
"MIT"
] | 6 | 2021-09-10T00:48:00.000Z | 2021-11-27T22:00:48.000Z | src/interpreter/library/fn_d3d.cpp | Grossley/opengml | bc3494aae64092f1c32a16361fd781249e2ea630 | [
"MIT"
] | 9 | 2019-07-26T06:32:53.000Z | 2022-01-12T14:38:59.000Z | #include "libpre.h"
#include "fn_d3d.h"
#include "libpost.h"
#include "ogm/interpreter/Variable.hpp"
#include "ogm/common/error.hpp"
#include "ogm/common/util.hpp"
#include "ogm/interpreter/Executor.hpp"
#include "ogm/interpreter/execute.hpp"
#include "ogm/interpreter/display/Display.hpp"
#include "ogm/geometry/Ve... | 28.309524 | 165 | 0.579591 | Grossley |
93e29e69d75f79963091765e46bd1442850b7342 | 9,026 | cpp | C++ | TerrainApps/mfcSimple/mfcSimpleView.cpp | nakijun/vtp | 7bd2b2abd3a3f778a32ba30be099cfba9b892922 | [
"MIT"
] | 4 | 2019-02-08T13:51:26.000Z | 2021-12-07T13:11:06.000Z | TerrainApps/mfcSimple/mfcSimpleView.cpp | nakijun/vtp | 7bd2b2abd3a3f778a32ba30be099cfba9b892922 | [
"MIT"
] | null | null | null | TerrainApps/mfcSimple/mfcSimpleView.cpp | nakijun/vtp | 7bd2b2abd3a3f778a32ba30be099cfba9b892922 | [
"MIT"
] | 7 | 2017-12-03T10:13:17.000Z | 2022-03-29T09:51:18.000Z | // mfcSimpleView.cpp : implementation of the CSimpleView class
//
// Copyright (c) 2001-2011 Virtual Terrain Project
// Free for all uses, see license.txt for details.
//
#include "stdafx.h"
#include "mfcSimple.h"
#include "mfcSimpleDoc.h"
#include "mfcSimpleView.h"
bool CreateScene();
void CleanupScene();
// Heade... | 22.341584 | 95 | 0.697762 | nakijun |
93e41e4c8ed8de172b7afef1dc5f178b4cb946b7 | 61 | cpp | C++ | source/UI/ui_test.cpp | JakobEliasWagner/pomodoro-timer | a5ebda06645d135af4258e9b814ef364f5685541 | [
"Unlicense"
] | null | null | null | source/UI/ui_test.cpp | JakobEliasWagner/pomodoro-timer | a5ebda06645d135af4258e9b814ef364f5685541 | [
"Unlicense"
] | null | null | null | source/UI/ui_test.cpp | JakobEliasWagner/pomodoro-timer | a5ebda06645d135af4258e9b814ef364f5685541 | [
"Unlicense"
] | null | null | null | //
// Created by jakob on 09.03.22.
//
#include "ui_test.h"
| 10.166667 | 32 | 0.606557 | JakobEliasWagner |
93ee5c32a90cbbca01bd8e10ead090cb35bca096 | 2,547 | cpp | C++ | source/lib/src/mohansella/serial/Writer.cpp | mohansella/simple-kvstore | af9948f0a0e4247526ae03f4d639c548c9474837 | [
"MIT"
] | null | null | null | source/lib/src/mohansella/serial/Writer.cpp | mohansella/simple-kvstore | af9948f0a0e4247526ae03f4d639c548c9474837 | [
"MIT"
] | null | null | null | source/lib/src/mohansella/serial/Writer.cpp | mohansella/simple-kvstore | af9948f0a0e4247526ae03f4d639c548c9474837 | [
"MIT"
] | null | null | null | #include <mohansella/serial/Writer.hpp>
#include <mohansella/serial/ByteSerialType.hpp>
namespace mohansella::serial
{
Writer::Writer()
{
}
Writer::~Writer()
{
}
Writer & Writer::putNull()
{
std::uint8_t nullEnVal = ByteSerialType::BSTYPE_NULL;
return this->putRaw(&nullEnVal, sizeof(nullEnVal));
}
... | 22.147826 | 96 | 0.699647 | mohansella |
93fbd1cd77defbec19e6d6eca525cbf1fd17a207 | 1,142 | cpp | C++ | Source/Parser/CursorType.cpp | JoinCAD/CPP-Reflection | 61163369b6b3b370c4ce726dbf8e60e441723821 | [
"MIT"
] | 540 | 2015-09-18T09:44:57.000Z | 2022-03-25T07:23:09.000Z | Source/Parser/CursorType.cpp | yangzhengxing/CPP-Reflection | 43ec755b7a5c62e3252c174815c2e44727e11e72 | [
"MIT"
] | 16 | 2015-09-23T06:37:43.000Z | 2020-04-10T15:40:08.000Z | Source/Parser/CursorType.cpp | yangzhengxing/CPP-Reflection | 43ec755b7a5c62e3252c174815c2e44727e11e72 | [
"MIT"
] | 88 | 2015-09-21T15:12:32.000Z | 2021-11-30T14:07:34.000Z | /* ----------------------------------------------------------------------------
** Copyright (c) 2016 Austin Brunkhorst, All Rights Reserved.
**
** CursorType.cpp
** --------------------------------------------------------------------------*/
#include "Precompiled.h"
#include "CursorType.h"
CursorType::CursorType(co... | 21.148148 | 79 | 0.636602 | JoinCAD |
93fe47ce8471d35d96cef8d98a26a89b7ffeee5d | 6,890 | hpp | C++ | Tools/RegistersGenerator/Msp432P401Y/fpbregisters.hpp | snorkysnark/CortexLib | 0db035332ebdfbebf21ca36e5e04b78a5a908a49 | [
"MIT"
] | 22 | 2019-09-07T22:38:01.000Z | 2022-01-31T21:35:55.000Z | Tools/RegistersGenerator/Msp432P401Y/fpbregisters.hpp | snorkysnark/CortexLib | 0db035332ebdfbebf21ca36e5e04b78a5a908a49 | [
"MIT"
] | null | null | null | Tools/RegistersGenerator/Msp432P401Y/fpbregisters.hpp | snorkysnark/CortexLib | 0db035332ebdfbebf21ca36e5e04b78a5a908a49 | [
"MIT"
] | 9 | 2019-09-22T11:26:24.000Z | 2022-03-21T10:53:15.000Z | /*******************************************************************************
* Filename : fpbregisters.hpp
*
* Details : FPB. This header file is auto-generated for MSP432P401Y
* device.
*
*
*******************************************************************************/
#if !defined(FPB... | 45.03268 | 103 | 0.720755 | snorkysnark |
9e04e6a1bc1c0c4ccca074bc22c05654112324e0 | 1,286 | cpp | C++ | SDK/ARKSurvivalEvolved_ProjPoop_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_ProjPoop_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_ProjPoop_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | // ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_ProjPoop_parameters.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Functions
//-------------------------------------------------------------------------... | 22.561404 | 107 | 0.657076 | 2bite |
9e19d40f52f3c9036579b96e536cb9f6b674affe | 6,670 | cc | C++ | src/circuit/circuit_data.cc | hyraxZK/libpws | cc1b7dfdafb3d01b025cdb72ed83379d205a0147 | [
"Apache-2.0"
] | null | null | null | src/circuit/circuit_data.cc | hyraxZK/libpws | cc1b7dfdafb3d01b025cdb72ed83379d205a0147 | [
"Apache-2.0"
] | null | null | null | src/circuit/circuit_data.cc | hyraxZK/libpws | cc1b7dfdafb3d01b025cdb72ed83379d205a0147 | [
"Apache-2.0"
] | 1 | 2020-01-16T07:49:03.000Z | 2020-01-16T07:49:03.000Z | #include <cassert>
#include <sstream>
#include <stdint.h>
#include <iostream>
#include <cerrno>
#include <stdexcept>
#include "circuit_data.hh"
#include "debug_utils.hh"
#include "mpnops.hh"
#include "prng.hh"
#include "utility.hh"
using namespace std;
static Prng &prng = Prng::global;
#define RETURN_IF_FALSE(file,... | 20.778816 | 101 | 0.651724 | hyraxZK |
9e1a6c046f4714f9791f3fe5c29602670e14269b | 2,596 | cpp | C++ | engine/graphics/graphics_bootstrapper.cpp | JellevanCampen/pugvania | 1f964f70b05565adea6c5c55c2c2bae5cac52d53 | [
"MIT"
] | null | null | null | engine/graphics/graphics_bootstrapper.cpp | JellevanCampen/pugvania | 1f964f70b05565adea6c5c55c2c2bae5cac52d53 | [
"MIT"
] | 24 | 2016-09-26T14:54:31.000Z | 2017-02-16T14:01:58.000Z | engine/graphics/graphics_bootstrapper.cpp | JellevanCampen/pugvania | 1f964f70b05565adea6c5c55c2c2bae5cac52d53 | [
"MIT"
] | null | null | null | #include "graphics_bootstrapper.h"
#include "engine.h"
#include "graphics_glfw.h"
namespace engine {
void GraphicsBootstrapper::CameraMove(Point2Df position)
{
g_log("Calling bootstrapper function (graphics subsystem call before the graphics subsystem was bootstrapped): " __FUNCTION__, log::kError);
}
void Graphi... | 39.938462 | 194 | 0.780046 | JellevanCampen |
9e23bf60256db25ca0e0d7bcff0e5d946ea581d3 | 2,262 | cpp | C++ | using-cpp-standard-template-libraries-master/Chapter 10/Ex10_02.cpp | ai-chen2050/book-code | 74676efa50ef9e8a4a40b97978d9d42f18070102 | [
"MIT"
] | null | null | null | using-cpp-standard-template-libraries-master/Chapter 10/Ex10_02.cpp | ai-chen2050/book-code | 74676efa50ef9e8a4a40b97978d9d42f18070102 | [
"MIT"
] | null | null | null | using-cpp-standard-template-libraries-master/Chapter 10/Ex10_02.cpp | ai-chen2050/book-code | 74676efa50ef9e8a4a40b97978d9d42f18070102 | [
"MIT"
] | null | null | null | // Ex10_02.cpp
// Dropping bricks safely from a tall building using valarray objects
#include <numeric> // For iota()
#include <iostream> // For standard streams
#include <iomanip> // For stream manipulators... | 46.163265 | 98 | 0.549514 | ai-chen2050 |
9e278f92c4dfe47b1b62a04badfa953a67cb3cb1 | 8,336 | cpp | C++ | SFMLTemplate/Model.cpp | Altelus/Monkey-Racers | 421529bf4084f53485750041ccde6f6b96f6a861 | [
"Xnet",
"X11"
] | 2 | 2015-10-27T08:36:36.000Z | 2020-03-28T12:59:24.000Z | SFMLTemplate/Model.cpp | Altelus/Monkey-Racers | 421529bf4084f53485750041ccde6f6b96f6a861 | [
"Xnet",
"X11"
] | null | null | null | SFMLTemplate/Model.cpp | Altelus/Monkey-Racers | 421529bf4084f53485750041ccde6f6b96f6a861 | [
"Xnet",
"X11"
] | null | null | null | #include "Engine.h"
#include <exception>
Model::Model()
{
isLoaded = false;
scale = Vec3 (1,1,1);
originOffsetPos = Vec3 (0,0,0);
forward = Vec3 (0,0,-1);
strafe = Vec3 (1,0,0);
up = Vec3 (0,1,0);
azemuth = elevation = 0;
vbo = new cbmini::cbfw::VertexBuffer;
SetModelType(MODEL_TYPE_VTN);
}
Model::Model... | 22.408602 | 118 | 0.65547 | Altelus |
9e27eff4653398d4b0f1275a816157112be950ae | 2,540 | hpp | C++ | sm_value_store/include/sm/value_store/VerboseValueStore.hpp | christian-rauch/schweizer_messer | 9b8f99f4387e7a8f4105e54b27f22ecee5ea0cd0 | [
"BSD-3-Clause"
] | 35 | 2017-12-07T15:13:02.000Z | 2021-11-07T19:51:05.000Z | sm_value_store/include/sm/value_store/VerboseValueStore.hpp | christian-rauch/schweizer_messer | 9b8f99f4387e7a8f4105e54b27f22ecee5ea0cd0 | [
"BSD-3-Clause"
] | 48 | 2015-01-01T21:18:18.000Z | 2017-07-30T08:43:05.000Z | sm_value_store/include/sm/value_store/VerboseValueStore.hpp | christian-rauch/schweizer_messer | 9b8f99f4387e7a8f4105e54b27f22ecee5ea0cd0 | [
"BSD-3-Clause"
] | 13 | 2015-02-03T15:54:40.000Z | 2017-10-08T17:10:43.000Z | #ifndef VALUE_STORE_VERBOSEVALUESTORE_HPP_
#define VALUE_STORE_VERBOSEVALUESTORE_HPP_
#include <memory>
#include <functional>
#include "ValueStore.hpp"
namespace sm {
namespace value_store {
namespace internal {
template <typename Base>
class VerboseValueStoreT : public Base {
public:
VerboseValueStoreT(std::shar... | 39.076923 | 145 | 0.761811 | christian-rauch |
9e28b647d6be0108ec5cf3b748952e7cba7ccf33 | 1,184 | cpp | C++ | src/PeerPluginStatus.cpp | JoystreamClassic/joystream-node | 2450382bb937abdd959b460791c25f2d8f127168 | [
"MIT"
] | null | null | null | src/PeerPluginStatus.cpp | JoystreamClassic/joystream-node | 2450382bb937abdd959b460791c25f2d8f127168 | [
"MIT"
] | 9 | 2017-11-14T06:05:50.000Z | 2018-07-08T18:21:17.000Z | src/PeerPluginStatus.cpp | JoystreamClassic/joystream-node | 2450382bb937abdd959b460791c25f2d8f127168 | [
"MIT"
] | 4 | 2017-11-14T06:04:17.000Z | 2018-08-24T07:39:00.000Z | /**
* Copyright (C) JoyStream - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* Written by Bedeho Mender <bedeho.mender@gmail.com>, February 3 2017
*/
#include "PeerPluginStatus.hpp"
#include "libtorrent-node/utils.hpp"
#include "libt... | 28.190476 | 105 | 0.743243 | JoystreamClassic |
9e2a2ebc48b598f7e024e3c514d81206030298da | 1,046 | cpp | C++ | Rozi/UchitelskiSustav/main.cpp | slaviborisov/shu.bg | 1ed9a65fff1512d18a3e4cde90030abb450f0d9f | [
"Apache-2.0"
] | null | null | null | Rozi/UchitelskiSustav/main.cpp | slaviborisov/shu.bg | 1ed9a65fff1512d18a3e4cde90030abb450f0d9f | [
"Apache-2.0"
] | null | null | null | Rozi/UchitelskiSustav/main.cpp | slaviborisov/shu.bg | 1ed9a65fff1512d18a3e4cde90030abb450f0d9f | [
"Apache-2.0"
] | null | null | null | #include "uchitelski-sustav.h"
#include <iostream>
using namespace std;
int main()
{
system("chcp 1251");
CUSustav uchSustav;
int c;
do {
cout <<endl;
cout << "0. Изход от програмата"<<endl;
cout << "1. Добавяне на нов учител"<<endl;
cout << "2. Покажи учител"<<endl;
cout << "... | 28.27027 | 85 | 0.607075 | slaviborisov |
9e2f7022a5c361fccb22e9da1eef03fc9bd9f980 | 570,872 | cpp | C++ | src/server/game/Entities/Unit/Unit.cpp | Zone-Emu/ZoneEmuCataclysm | 6277efff6cb5adfe8b7a718bf376e81609fa9a6c | [
"OpenSSL"
] | 1 | 2019-03-23T19:32:57.000Z | 2019-03-23T19:32:57.000Z | src/server/game/Entities/Unit/Unit.cpp | Zone-Emu/ZoneEmuCataclysm | 6277efff6cb5adfe8b7a718bf376e81609fa9a6c | [
"OpenSSL"
] | null | null | null | src/server/game/Entities/Unit/Unit.cpp | Zone-Emu/ZoneEmuCataclysm | 6277efff6cb5adfe8b7a718bf376e81609fa9a6c | [
"OpenSSL"
] | null | null | null | /*
* Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.com/>
*
* Copyright (C) 2008 - 2012 Trinity <http://www.trinitycore.org/>
*
* Copyright (C) 2010 - 2012 ArkCORE <http://www.arkania.net/>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General P... | 29.441568 | 236 | 0.67334 | Zone-Emu |
9e34d01349b16f9e2820ca49771f3456afea1baa | 4,632 | cpp | C++ | shirabeengine/shirabeengine/modules/core/code/source/serialization/jsonobjectserializer.cpp | BoneCrasher/ShirabeEngine | 39b3aa2c5173084d59b96b7f60c15207bff0ad04 | [
"MIT"
] | 5 | 2019-12-02T12:28:57.000Z | 2021-04-07T21:21:13.000Z | shirabeengine/shirabeengine/modules/core/code/source/serialization/jsonobjectserializer.cpp | BoneCrasher/ShirabeEngine | 39b3aa2c5173084d59b96b7f60c15207bff0ad04 | [
"MIT"
] | null | null | null | shirabeengine/shirabeengine/modules/core/code/source/serialization/jsonobjectserializer.cpp | BoneCrasher/ShirabeEngine | 39b3aa2c5173084d59b96b7f60c15207bff0ad04 | [
"MIT"
] | 1 | 2020-01-09T14:25:42.000Z | 2020-01-09T14:25:42.000Z | #include <iostream>
#include "SEPUtil/Documents/JSON.h"
#include "SEPCore/ObjectModel/SR_SEPCore_Object.h"
#include "SEPCore/ObjectModel/SR_SEPCore_Property.h"
#include "SEPCore/ObjectModel/Serialization/SR_SEPCore_JSONObjectSerializer.h"
namespace sr {
namespace serialization {
using namespace sr::documents;
... | 37.658537 | 169 | 0.470207 | BoneCrasher |
9e3dee3c83418b383fa2f716ac4e8937f64ca1ca | 720 | cpp | C++ | Rotor.cpp | FreddieLindsey/ic_year_2_cpp_enigma | d7efebed5a135e46c09e18873f2ba2630c2e1701 | [
"MIT"
] | null | null | null | Rotor.cpp | FreddieLindsey/ic_year_2_cpp_enigma | d7efebed5a135e46c09e18873f2ba2630c2e1701 | [
"MIT"
] | null | null | null | Rotor.cpp | FreddieLindsey/ic_year_2_cpp_enigma | d7efebed5a135e46c09e18873f2ba2630c2e1701 | [
"MIT"
] | null | null | null | #include "Rotor.hpp"
Rotor::Rotor(string file_content)
: map_encode(ALPHABET_SIZE), map_decode(ALPHABET_SIZE), offset(0) {
// Initialise
istringstream content(file_content);
string num;
// Set map to input file given
for (int i = 0; i < ALPHABET_SIZE; i++) {
getline(content, num, INPUT_DELIM);
i... | 26.666667 | 78 | 0.665278 | FreddieLindsey |
9e47ccaf7a7e2f41444b1879b89d0d60f96a3852 | 2,037 | cpp | C++ | Pinball_Project/ModuleWindow.cpp | rastabrandy02/Pinball_Project_Physics_2 | 60de6903882e29f7fb919ebc4eb0f92130a15afb | [
"MIT"
] | null | null | null | Pinball_Project/ModuleWindow.cpp | rastabrandy02/Pinball_Project_Physics_2 | 60de6903882e29f7fb919ebc4eb0f92130a15afb | [
"MIT"
] | null | null | null | Pinball_Project/ModuleWindow.cpp | rastabrandy02/Pinball_Project_Physics_2 | 60de6903882e29f7fb919ebc4eb0f92130a15afb | [
"MIT"
] | 1 | 2022-02-09T19:46:39.000Z | 2022-02-09T19:46:39.000Z | #include "Globals.h"
#include "Application.h"
#include "ModuleWindow.h"
ModuleWindow::ModuleWindow(Application* app, bool start_enabled) : Module(app, start_enabled)
{
window = NULL;
screen_surface = NULL;
}
// Destructor
ModuleWindow::~ModuleWindow()
{
}
// Called before render is available
bool ModuleWindow::In... | 19.037383 | 107 | 0.693667 | rastabrandy02 |
eafc3169eba604acdb2d92cceed49073fc30be40 | 6,958 | cpp | C++ | packages/+GT/GenericTargetCode/source/GenericTarget/SignalObjectDoubles.cpp | RobertDamerius/GenericTarget | 6b26793c2d580797ac8104ca5368987cbb570ef8 | [
"MIT"
] | 1 | 2021-02-02T09:01:24.000Z | 2021-02-02T09:01:24.000Z | packages/+GT/GenericTargetCode/source/GenericTarget/SignalObjectDoubles.cpp | RobertDamerius/GenericTarget | 6b26793c2d580797ac8104ca5368987cbb570ef8 | [
"MIT"
] | null | null | null | packages/+GT/GenericTargetCode/source/GenericTarget/SignalObjectDoubles.cpp | RobertDamerius/GenericTarget | 6b26793c2d580797ac8104ca5368987cbb570ef8 | [
"MIT"
] | 2 | 2021-02-02T09:01:45.000Z | 2021-10-02T13:08:16.000Z | #include <SignalObjectDoubles.hpp>
#include <Console.hpp>
#include <SimulinkInterface.hpp>
#include <SignalManager.hpp>
#include <Common.hpp>
SignalObjectDoubles::SignalObjectDoubles(){
this->numSamplesPerFile = 0;
this->numSignals = 0;
this->labels = "";
this->started = false;
this->filename = ""... | 34.445545 | 217 | 0.617275 | RobertDamerius |
eafd77087c1c81b106f4c7fcc8b6ced67bfdbc1d | 16,496 | cpp | C++ | src/zimg/depth/dither_avx2.cpp | dubhater/zimg | 59ca0556789656a439f32b4cdfc8e26db32b8252 | [
"WTFPL"
] | null | null | null | src/zimg/depth/dither_avx2.cpp | dubhater/zimg | 59ca0556789656a439f32b4cdfc8e26db32b8252 | [
"WTFPL"
] | null | null | null | src/zimg/depth/dither_avx2.cpp | dubhater/zimg | 59ca0556789656a439f32b4cdfc8e26db32b8252 | [
"WTFPL"
] | null | null | null | #ifdef ZIMG_X86
#include <cstdint>
#include <immintrin.h>
#ifdef __clang__
#include <x86intrin.h>
#endif
#include "common/align.h"
#include "common/ccdep.h"
#define HAVE_CPU_SSE2
#define HAVE_CPU_AVX2
#include "common/x86util.h"
#undef HAVE_CPU_SSE2
#undef HAVE_CPU_AVX2
namespace zimg {
namespace depth {
namesp... | 32.093385 | 137 | 0.701443 | dubhater |
d80066e417bd53da3def109bc4936bb747115a6c | 60 | cpp | C++ | LoveLiveWallpaper/src/IPointerUp.cpp | Juvwxyz/LoveLiveWallpaper | a0eeac941b5ccd53af538192cb92b7df049839c4 | [
"MIT"
] | 2 | 2020-05-09T00:13:06.000Z | 2020-05-25T05:49:40.000Z | LoveLiveWallpaper/src/IPointerUp.cpp | Juvwxyz/LoveLiveWallpaper | a0eeac941b5ccd53af538192cb92b7df049839c4 | [
"MIT"
] | null | null | null | LoveLiveWallpaper/src/IPointerUp.cpp | Juvwxyz/LoveLiveWallpaper | a0eeac941b5ccd53af538192cb92b7df049839c4 | [
"MIT"
] | 1 | 2020-05-25T05:49:44.000Z | 2020-05-25T05:49:44.000Z | #include "IPointerUp.h"
LLWP::IPointerUp::IPointerUp()
{
}
| 10 | 30 | 0.7 | Juvwxyz |
d8010d8b2e5a912437b2d9292b01bfc1732a2f0f | 3,502 | hpp | C++ | include/RED4ext/Scripting/Natives/Generated/AtmosphereAreaSettings.hpp | flibX0r/RED4ext.SDK | 18d075ef7559e35d8b02dc2e00a03ccc7ff4d77b | [
"MIT"
] | 42 | 2020-12-25T08:33:00.000Z | 2022-03-22T14:47:07.000Z | include/RED4ext/Scripting/Natives/Generated/AtmosphereAreaSettings.hpp | flibX0r/RED4ext.SDK | 18d075ef7559e35d8b02dc2e00a03ccc7ff4d77b | [
"MIT"
] | 38 | 2020-12-28T22:36:06.000Z | 2022-02-16T11:25:47.000Z | include/RED4ext/Scripting/Natives/Generated/AtmosphereAreaSettings.hpp | flibX0r/RED4ext.SDK | 18d075ef7559e35d8b02dc2e00a03ccc7ff4d77b | [
"MIT"
] | 20 | 2020-12-28T22:17:38.000Z | 2022-03-22T17:19:01.000Z | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/NativeTypes.hpp>
#include <RED4ext/Scripting/Natives/Generated/HDRColor.hpp>
#include <RED4ext/Scripting/Natives/Generated/IAreaSettings.hpp>
namespace RED4ext
{
struct CBitmapTex... | 39.348315 | 65 | 0.729298 | flibX0r |
d807cd0ff6bf9012a57b42dc97e65526bd31f6f3 | 1,053 | cpp | C++ | 232ImplementQueueUsingStacks.cpp | yuyangh/LeetCode | 5d81cbd975c0c1f2bbca0cb25cefe361a169e460 | [
"MIT"
] | 1 | 2020-10-11T08:10:53.000Z | 2020-10-11T08:10:53.000Z | 232ImplementQueueUsingStacks.cpp | yuyangh/LeetCode | 5d81cbd975c0c1f2bbca0cb25cefe361a169e460 | [
"MIT"
] | null | null | null | 232ImplementQueueUsingStacks.cpp | yuyangh/LeetCode | 5d81cbd975c0c1f2bbca0cb25cefe361a169e460 | [
"MIT"
] | null | null | null | #include "LeetCodeLib.h"
class MyQueue {
public:
/** Initialize your data structure here. */
stack<int> reverse, order;
MyQueue() {
}
/** Push element x to the back of queue. */
void push(int x) {
restoreReverseElements();
reverse.push(x);
}
/** Removes the element from in front of queue and return... | 18.803571 | 76 | 0.617284 | yuyangh |
d807d13dac6afc0d3daf1edd4ea8b1ded5b83f7b | 790 | cpp | C++ | 17-database-xml/17-13/myxmlstream/main.cpp | Franklin-Qi/qtcreator-example | 5d573f961c3255fbf740991996f935092cc62018 | [
"MIT"
] | null | null | null | 17-database-xml/17-13/myxmlstream/main.cpp | Franklin-Qi/qtcreator-example | 5d573f961c3255fbf740991996f935092cc62018 | [
"MIT"
] | null | null | null | 17-database-xml/17-13/myxmlstream/main.cpp | Franklin-Qi/qtcreator-example | 5d573f961c3255fbf740991996f935092cc62018 | [
"MIT"
] | null | null | null | #include <QCoreApplication>
#include <QFile>
#include <QXmlStreamReader>
#include <QXmlStreamWriter>
#include <QDebug>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
QFile file("../myxmlstream/my2.xml");
if (!file.open(QFile::WriteOnly | QFile::Text))
{
qDebug(... | 23.235294 | 56 | 0.620253 | Franklin-Qi |
d809305893b9a98d5d664f8379a5c24bb29c0a46 | 2,323 | cc | C++ | src/proto/core/entity-system/interface.cc | kcpikkt/proto | 2d7458c2ce2f571303de040f660137dc0a1d33de | [
"MIT"
] | null | null | null | src/proto/core/entity-system/interface.cc | kcpikkt/proto | 2d7458c2ce2f571303de040f660137dc0a1d33de | [
"MIT"
] | null | null | null | src/proto/core/entity-system/interface.cc | kcpikkt/proto | 2d7458c2ce2f571303de040f660137dc0a1d33de | [
"MIT"
] | null | null | null | #include "proto/core/entity-system/interface.hh"
namespace proto {
// for doing things, that are usually done compile time, runtime
// i.e. type erasure at its best
struct _Runtime {
template<size_t I>
using CompAt = typename CompTList::template at_t<I>;
// get
template<t... | 32.71831 | 89 | 0.530779 | kcpikkt |
d80da73ddb700e879f1359d3387ef87b329bd11e | 1,275 | cc | C++ | TrkFitter/TrkDeadMaker.cc | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | TrkFitter/TrkDeadMaker.cc | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | TrkFitter/TrkDeadMaker.cc | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | //--------------------------------------------------------------------------
// File and Version Information:
// $Id: TrkDeadMaker.cc 104 2010-01-15 12:13:14Z stroili $
//
// Description:
//
// Environment:
// Software developed for the BaBar Detector at the SLAC B-Factory.
//
// Authors: Steve Schaffner
//
/... | 32.692308 | 76 | 0.370196 | brownd1978 |
d810e3d06ba7e8c537f455c21dbe790b83752c4a | 33 | hh | C++ | build/ARM/arch/registers.hh | magnuram/edelsten5 | 63de812a22142f07fa48c253636e5c96156d4da9 | [
"BSD-3-Clause"
] | null | null | null | build/ARM/arch/registers.hh | magnuram/edelsten5 | 63de812a22142f07fa48c253636e5c96156d4da9 | [
"BSD-3-Clause"
] | null | null | null | build/ARM/arch/registers.hh | magnuram/edelsten5 | 63de812a22142f07fa48c253636e5c96156d4da9 | [
"BSD-3-Clause"
] | null | null | null | #include "arch/arm/registers.hh"
| 16.5 | 32 | 0.757576 | magnuram |
d811e05fd7042c828b95a833e7567ea334f31190 | 29,688 | cpp | C++ | Libraries/RobsJuceModules/rosic/legacy/AggressorOscSection.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 34 | 2017-04-19T18:26:02.000Z | 2022-02-15T17:47:26.000Z | Libraries/RobsJuceModules/rosic/legacy/AggressorOscSection.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 307 | 2017-05-04T21:45:01.000Z | 2022-02-03T00:59:01.000Z | Libraries/RobsJuceModules/rosic/legacy/AggressorOscSection.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 4 | 2017-09-05T17:04:31.000Z | 2021-12-15T21:24:28.000Z | #include "AggressorOscSection.h"
//construction/destruction
AggressorOscSection::AggressorOscSection()
{
//init member variables:
slideTime = 0.5; //init slieTime to 0.5 seconds
sampleRate = 44100;
slideSamples = slideTime*sampleRate;
slideSampCount = 0;
syncMode = 0;
modulationMode = 0;
cur... | 27.849906 | 110 | 0.737301 | RobinSchmidt |
d8161240d9a11919311d33cf5afd9081d4138df2 | 3,710 | hpp | C++ | modules/core/gallery/include/nt2/gallery/functions/gallery_impl/invhilb.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 34 | 2017-05-19T18:10:17.000Z | 2022-01-04T02:18:13.000Z | modules/core/gallery/include/nt2/gallery/functions/gallery_impl/invhilb.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/core/gallery/include/nt2/gallery/functions/gallery_impl/invhilb.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 7 | 2017-12-02T12:59:17.000Z | 2021-07-31T12:46:14.000Z | //==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... | 33.423423 | 87 | 0.437197 | psiha |
d81b16346a72dceed10f671c098d126f6f86c10c | 221 | hpp | C++ | include/jln/mp.hpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | 9 | 2020-07-04T16:46:13.000Z | 2022-01-09T21:59:31.000Z | include/jln/mp.hpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | null | null | null | include/jln/mp.hpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | 1 | 2021-05-23T13:37:40.000Z | 2021-05-23T13:37:40.000Z | #pragma once
#include <jln/mp/algorithm.hpp>
#include <jln/mp/error.hpp>
#include <jln/mp/functional.hpp>
#include <jln/mp/list.hpp>
#include <jln/mp/number.hpp>
#include <jln/mp/utility.hpp>
#include <jln/mp/value.hpp>
| 22.1 | 32 | 0.728507 | jonathanpoelen |
d81e696d806073560d7545b44687dfc400d1ce63 | 1,874 | cpp | C++ | src/ping_pong.cpp | duclos-cavalcanti/OpenMPI-Tutorial | 5a1adeac3e0aaf9eae3e478b8479e5ddcdf08055 | [
"MIT"
] | null | null | null | src/ping_pong.cpp | duclos-cavalcanti/OpenMPI-Tutorial | 5a1adeac3e0aaf9eae3e478b8479e5ddcdf08055 | [
"MIT"
] | null | null | null | src/ping_pong.cpp | duclos-cavalcanti/OpenMPI-Tutorial | 5a1adeac3e0aaf9eae3e478b8479e5ddcdf08055 | [
"MIT"
] | null | null | null | // Author: Wes Kendall
// Copyright 2011 www.mpitutorial.com
// This code is provided freely with the tutorials on mpitutorial.com. Feel
// free to modify it for your own use. Any distribution of the code must
// either provide a link to www.mpitutorial.com or keep this header intact.
//
// Ping pong example with MPI_S... | 27.970149 | 78 | 0.65635 | duclos-cavalcanti |
d820d5cb1a2fd4de7e367b5ff1c59aee6347e408 | 3,835 | hh | C++ | source/include/Algorithm/Calorimetry/HoughTransformAlgorithm.hh | rete/Baboon | e5b2cfe6b9e5b5a41c2c68feda84b8df109eb086 | [
"FSFAP"
] | null | null | null | source/include/Algorithm/Calorimetry/HoughTransformAlgorithm.hh | rete/Baboon | e5b2cfe6b9e5b5a41c2c68feda84b8df109eb086 | [
"FSFAP"
] | null | null | null | source/include/Algorithm/Calorimetry/HoughTransformAlgorithm.hh | rete/Baboon | e5b2cfe6b9e5b5a41c2c68feda84b8df109eb086 | [
"FSFAP"
] | null | null | null | /*
*
* HoughTransformAlgorithm.hh header template generated by fclass
* Creation date : Thu Mar 14 21:55:13 2013
* Copyright (c) CNRS / IPNL
* All Right Reserved.
*
* Use and copying of these libraries and preparation of derivative works
* based upon these libraries are permitted. Any copy of these libraries
*... | 17.75463 | 104 | 0.669622 | rete |
d829a305b5cf67d1a528e2212a9ee3910ce0443b | 1,485 | cpp | C++ | src/World/World.cpp | cristianglezm/AntFarm | df7551621ad6eda6dae43a2ede56222500be1ae1 | [
"Apache-2.0"
] | null | null | null | src/World/World.cpp | cristianglezm/AntFarm | df7551621ad6eda6dae43a2ede56222500be1ae1 | [
"Apache-2.0"
] | 1 | 2016-03-13T10:55:21.000Z | 2016-03-13T10:55:21.000Z | src/World/World.cpp | cristianglezm/AntFarm | df7551621ad6eda6dae43a2ede56222500be1ae1 | [
"Apache-2.0"
] | null | null | null | #include <World/World.hpp>
namespace ant{
World::World()
: id(0)
, eventQueue(std::make_shared<EventQueue>())
, entityManager(std::make_shared<EntityManager>())
, systemManager(std::make_unique<SystemManager>()){}
World::World(int id)
: id(id)
, eventQueue(std::make_shared<EventQueue>()... | 33.75 | 123 | 0.660606 | cristianglezm |
d82fb1ca4994fdfb13d600c1456309668abfb87b | 103 | cpp | C++ | src/examples/06_module/01_bank/customer.cpp | acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-Grecia1813 | f356c1ed8f6e75b9e9d6164747a5c199bead8c95 | [
"MIT"
] | null | null | null | src/examples/06_module/01_bank/customer.cpp | acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-Grecia1813 | f356c1ed8f6e75b9e9d6164747a5c199bead8c95 | [
"MIT"
] | null | null | null | src/examples/06_module/01_bank/customer.cpp | acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-Grecia1813 | f356c1ed8f6e75b9e9d6164747a5c199bead8c95 | [
"MIT"
] | null | null | null | //customer.cpp
#include "customer.h"
Demo::Demo()
{
cout << "2. Now the constructor is running\n";
} | 14.714286 | 48 | 0.650485 | acc-cosc-1337-fall-2020 |
d834f7a7a0796bddd9d752b80cca8a55eb26e282 | 3,440 | cpp | C++ | Graph/310. Minimum Height Trees/main.cpp | Minecodecraft/LeetCode-Minecode | 185fd6efe88d8ffcad94e581915c41502a0361a0 | [
"MIT"
] | 1 | 2021-11-19T19:58:33.000Z | 2021-11-19T19:58:33.000Z | Graph/310. Minimum Height Trees/main.cpp | Minecodecraft/LeetCode-Minecode | 185fd6efe88d8ffcad94e581915c41502a0361a0 | [
"MIT"
] | null | null | null | Graph/310. Minimum Height Trees/main.cpp | Minecodecraft/LeetCode-Minecode | 185fd6efe88d8ffcad94e581915c41502a0361a0 | [
"MIT"
] | 2 | 2021-11-26T12:47:27.000Z | 2022-01-13T16:14:46.000Z | //
// main.cpp
// 310. Minimum Height Trees
//
// Created by 边俊林 on 2019/11/13.
// Copyright © 2019 边俊林. All rights reserved.
//
#include <map>
#include <set>
#include <queue>
#include <string>
#include <stack>
#include <vector>
#include <cstdio>
#include <numeric>
#include <cstdlib>
#include <utility>
#include <i... | 24.571429 | 73 | 0.451163 | Minecodecraft |
d8352c55a668b2a9e176f2bd98cdb41746e4a0d7 | 3,938 | cxx | C++ | test/test_utility.cxx | cmbrandt/stl-algorithms | 9eb0bc664e8423fb066c29aa501a72f4e672be1d | [
"MIT"
] | null | null | null | test/test_utility.cxx | cmbrandt/stl-algorithms | 9eb0bc664e8423fb066c29aa501a72f4e672be1d | [
"MIT"
] | null | null | null | test/test_utility.cxx | cmbrandt/stl-algorithms | 9eb0bc664e8423fb066c29aa501a72f4e672be1d | [
"MIT"
] | null | null | null | #include <array>
#include <iostream>
#include <utility.hxx>
#include <test_helpers.hxx>
#include <test_utility.hxx>
void test_utility()
{
int fail = 0;
fail = test_swap(fail);
fail = test_exchange(fail);
fail = test_forward(fail);
fail = test_move(fail);
fail = test_move_if_noexcept(fail);
if (fail ==... | 20.298969 | 79 | 0.466988 | cmbrandt |
d83a1e36cb59e58725c9d29e38d2b894d0e82387 | 1,134 | cpp | C++ | source/core.cpp | henrygouk/nnet | dd33ce43852d2deb33e6495c0c1b1ba2227d2aa5 | [
"BSD-3-Clause"
] | 1 | 2018-10-12T01:33:23.000Z | 2018-10-12T01:33:23.000Z | source/core.cpp | henrygouk/nnet | dd33ce43852d2deb33e6495c0c1b1ba2227d2aa5 | [
"BSD-3-Clause"
] | 4 | 2015-07-21T02:24:13.000Z | 2016-07-06T10:06:31.000Z | source/core.cpp | henrygouk/nnet | dd33ce43852d2deb33e6495c0c1b1ba2227d2aa5 | [
"BSD-3-Clause"
] | 2 | 2016-07-06T08:56:01.000Z | 2018-03-04T02:55:29.000Z | #include <cstring>
#include <mm_malloc.h>
#include <nnet/types.hpp>
nnet_float *nnet_malloc(size_t length)
{
return (nnet_float *)_mm_malloc(sizeof(nnet_float) * length, 32);
}
void nnet_free(nnet_float *ptr)
{
_mm_free(ptr);
}
void nnet_shuffle_instances(nnet_float *features, nnet_float *labels, size_t length, s... | 30.648649 | 124 | 0.737213 | henrygouk |
d83b223c6b3268602c1be98587d5769b27e9b1c1 | 634 | cc | C++ | test/lib/nut_Test_Particle.cc | losalamos/NuT | 5c6e03c45a380ae24ea9ee8bc2e68c3748ddd4e0 | [
"BSD-3-Clause"
] | 4 | 2015-01-01T13:47:53.000Z | 2016-03-31T01:56:43.000Z | test/lib/nut_Test_Particle.cc | losalamos/NuT | 5c6e03c45a380ae24ea9ee8bc2e68c3748ddd4e0 | [
"BSD-3-Clause"
] | 1 | 2019-05-08T16:21:43.000Z | 2019-05-14T17:20:19.000Z | test/lib/nut_Test_Particle.cc | lanl/NuT | 5c6e03c45a380ae24ea9ee8bc2e68c3748ddd4e0 | [
"BSD-3-Clause"
] | 4 | 2017-06-21T20:26:30.000Z | 2020-03-19T07:05:00.000Z | // T. M. Kelley (c) 2011 LANS LLC
#include "Particle.hh"
#include "RNG.hh"
#include "gtest/gtest.h"
#include "meshes/mesh_common/Vector.h"
TEST(nut_Particle, instantiation)
{
// for a very simple test, we can use a totally bogus RNG
typedef uint32_t rng_t;
typedef double fp_t;
using Vector = nut_mesh::Vector... | 18.647059 | 59 | 0.652997 | losalamos |
d83c80cd46a0f68e4e9d5774401f5ddc453b84d9 | 2,859 | cpp | C++ | net/socket/SocketAddress.cpp | w20089527/Net | ca40f0d4a5aa94c64abb8ccc7306bc66bdf12584 | [
"MIT"
] | 1 | 2019-08-10T20:29:13.000Z | 2019-08-10T20:29:13.000Z | net/socket/SocketAddress.cpp | whrool/Net | ca40f0d4a5aa94c64abb8ccc7306bc66bdf12584 | [
"MIT"
] | null | null | null | net/socket/SocketAddress.cpp | whrool/Net | ca40f0d4a5aa94c64abb8ccc7306bc66bdf12584 | [
"MIT"
] | null | null | null | // The MIT License (MIT)
//
// Copyright(c) 2015 huan.wang
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files(the "Software"),
// to deal in the Software without restriction, including without limitation the rights
// to use, ... | 28.59 | 130 | 0.693949 | w20089527 |
d844f0cf73b3ac22ab589bfd4bca3af1cfb12a9e | 335 | cpp | C++ | source/dynamic_static/vulkan/framebuffer-utilities.cpp | dynamic-static/Dynamic_Static.Graphics | b4fcf3c53519d3a63448aa7d9a90e07ec68d69d4 | [
"MIT"
] | 3 | 2017-11-20T15:42:41.000Z | 2020-05-02T22:05:39.000Z | source/dynamic_static/vulkan/framebuffer-utilities.cpp | DynamicStatic/Dynamic_Static.Graphics | b4fcf3c53519d3a63448aa7d9a90e07ec68d69d4 | [
"MIT"
] | null | null | null | source/dynamic_static/vulkan/framebuffer-utilities.cpp | DynamicStatic/Dynamic_Static.Graphics | b4fcf3c53519d3a63448aa7d9a90e07ec68d69d4 | [
"MIT"
] | null | null | null |
/*
==========================================
Copyright (c) 2021 dynamic_static
Licensed under the MIT license
http://opensource.org/licenses/MIT
==========================================
*/
#include "dynamic_static/vulkan/framebuffer-utilities.hpp"
namespace dst {
namespace vk {
} // namespace vk
} //... | 19.705882 | 58 | 0.531343 | dynamic-static |
d8466183e691dba7d2b2345b07a478a3e7372dcf | 12,130 | cpp | C++ | src/ossim/util/ossimSlopeUtil.cpp | rkanavath/ossim18 | d2e8204d11559a6a868755a490f2ec155407fa96 | [
"MIT"
] | null | null | null | src/ossim/util/ossimSlopeUtil.cpp | rkanavath/ossim18 | d2e8204d11559a6a868755a490f2ec155407fa96 | [
"MIT"
] | null | null | null | src/ossim/util/ossimSlopeUtil.cpp | rkanavath/ossim18 | d2e8204d11559a6a868755a490f2ec155407fa96 | [
"MIT"
] | 1 | 2019-09-25T00:43:35.000Z | 2019-09-25T00:43:35.000Z | //*******************************************************************
// Copyright (C) 2000 ImageLinks Inc.
//
// License: MIT
//
// See LICENSE.txt file in the top level directory for more details.
//
// Author: Oscar Kramer
//
//*******************************************************************
// $Id: ossimSlopeU... | 32.346667 | 100 | 0.662737 | rkanavath |
d84b98c24c424c30b717045c425aeaf4f67144fc | 941 | cpp | C++ | Leetcode/res/Binary Tree Paths/1.cpp | AllanNozomu/CompetitiveProgramming | ac560ab5784d2e2861016434a97e6dcc44e26dc8 | [
"MIT"
] | 1 | 2022-03-04T16:06:41.000Z | 2022-03-04T16:06:41.000Z | Leetcode/res/Binary Tree Paths/1.cpp | AllanNozomu/CompetitiveProgramming | ac560ab5784d2e2861016434a97e6dcc44e26dc8 | [
"MIT"
] | null | null | null | Leetcode/res/Binary Tree Paths/1.cpp | AllanNozomu/CompetitiveProgramming | ac560ab5784d2e2861016434a97e6dcc44e26dc8 | [
"MIT"
] | null | null | null | \*
Author: allannozomu
Runtime: 4 ms
Memory: 11.5 MB*\
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
void binaryTreecPathsRec(TreeNode* root... | 27.676471 | 88 | 0.563231 | AllanNozomu |
d851b73d72148dc84f24876dd7036dca78269130 | 9,947 | cpp | C++ | ortc/services/cpp/services_DHPublicKey.cpp | ortclib/ortclib-services-cpp | f770d97044b1ffbff04b61fa1488eedc8ddc66e4 | [
"BSD-2-Clause"
] | 2 | 2016-10-12T09:16:32.000Z | 2016-10-13T03:49:47.000Z | ortc/services/cpp/services_DHPublicKey.cpp | ortclib/ortclib-services-cpp | f770d97044b1ffbff04b61fa1488eedc8ddc66e4 | [
"BSD-2-Clause"
] | 2 | 2017-11-24T09:18:45.000Z | 2017-11-24T09:20:53.000Z | ortc/services/cpp/services_DHPublicKey.cpp | ortclib/ortclib-services-cpp | f770d97044b1ffbff04b61fa1488eedc8ddc66e4 | [
"BSD-2-Clause"
] | null | null | null | /*
Copyright (c) 2014, Hookflash Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the fol... | 39.472222 | 113 | 0.41701 | ortclib |
d85306e3e2c87156f925039aeee4b27cf7bb7a15 | 3,509 | cc | C++ | test/unit/Eval/EvalSubgoalTest.cc | mnowotnik/fovris | 82f692743fa6c96fef05041e686d716b03c22f07 | [
"BSD-3-Clause"
] | 4 | 2017-01-04T17:22:55.000Z | 2018-12-08T02:10:18.000Z | test/unit/Eval/EvalSubgoalTest.cc | Mike-Now/fovris | 82f692743fa6c96fef05041e686d716b03c22f07 | [
"BSD-3-Clause"
] | null | null | null | test/unit/Eval/EvalSubgoalTest.cc | Mike-Now/fovris | 82f692743fa6c96fef05041e686d716b03c22f07 | [
"BSD-3-Clause"
] | 1 | 2022-03-24T05:26:13.000Z | 2022-03-24T05:26:13.000Z | #include "KB/KBHeadLiteral.h"
#include "Eval/EvalSubgoal.h"
#include "Eval/TestUtils.h"
#include "thirdparty/Catch/include/catch.hpp"
#include <string>
using namespace fovris;
TEST_CASE("Check subgoal evaluation result", "[EvalSubgoal]") {
// given
unsigned relId = 0xDEADBEEF;
KBRelation relation{
... | 34.401961 | 78 | 0.588487 | mnowotnik |
d858b4d2863db23ed4f62818c5eaf13a6d571930 | 2,115 | cpp | C++ | uppsrc/ide/Debuggers/GdbUtils.cpp | UltimateScript/Forgotten | ac59ad21767af9628994c0eecc91e9e0e5680d95 | [
"BSD-3-Clause"
] | null | null | null | uppsrc/ide/Debuggers/GdbUtils.cpp | UltimateScript/Forgotten | ac59ad21767af9628994c0eecc91e9e0e5680d95 | [
"BSD-3-Clause"
] | null | null | null | uppsrc/ide/Debuggers/GdbUtils.cpp | UltimateScript/Forgotten | ac59ad21767af9628994c0eecc91e9e0e5680d95 | [
"BSD-3-Clause"
] | null | null | null | #include "GdbUtils.h"
#include <memory>
#include <ide/Core/Logger.h>
#include <ide/Common/CommandLineOptions.h>
using namespace Upp;
One<IGdbUtils> GdbUtilsFactory::Create()
{
#if defined(PLATFORM_WIN32)
return MakeOne<GdbWindowsUtils>();
#elif defined(PLATFORM_POSIX)
return MakeOne<GdbPosixUtils>();
... | 24.593023 | 120 | 0.661466 | UltimateScript |
d8711fe5a8b2142a73751d6580651b63e075013b | 9,749 | cpp | C++ | src/wrappers/src/mfx_gst_frame_constructor.cpp | AntonGrishin/gstreamer-plugins | 6d86897e02b525da4bf1d3f8b4bb6472cc72eb2b | [
"BSD-3-Clause"
] | 20 | 2016-08-06T02:31:53.000Z | 2022-01-24T13:29:41.000Z | src/wrappers/src/mfx_gst_frame_constructor.cpp | AntonGrishin/gstreamer-plugins | 6d86897e02b525da4bf1d3f8b4bb6472cc72eb2b | [
"BSD-3-Clause"
] | 5 | 2016-08-01T15:35:36.000Z | 2021-07-15T10:33:59.000Z | src/wrappers/src/mfx_gst_frame_constructor.cpp | AntonGrishin/gstreamer-plugins | 6d86897e02b525da4bf1d3f8b4bb6472cc72eb2b | [
"BSD-3-Clause"
] | 14 | 2016-08-18T23:42:06.000Z | 2021-05-16T22:06:59.000Z | /**********************************************************************************
Copyright (C) 2005-2019 Intel Corporation. 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 sourc... | 28.673529 | 122 | 0.637296 | AntonGrishin |
d871c04714b3c998d4d0f8f20d2f85a9bd6f8ce3 | 206 | cpp | C++ | Object Oriented Algo Design in C++/practice/height_heap.cpp | aishwaryamallampati/BTech-IIITDM | 4cfc25a4e6e066b848361cb92770cad3260c7d48 | [
"MIT"
] | null | null | null | Object Oriented Algo Design in C++/practice/height_heap.cpp | aishwaryamallampati/BTech-IIITDM | 4cfc25a4e6e066b848361cb92770cad3260c7d48 | [
"MIT"
] | null | null | null | Object Oriented Algo Design in C++/practice/height_heap.cpp | aishwaryamallampati/BTech-IIITDM | 4cfc25a4e6e066b848361cb92770cad3260c7d48 | [
"MIT"
] | null | null | null | int height(int i,int size)
{
int l,r;
if(i>size)
return 0;
else
{
l=height(2*i,size);
r=height(((2*i)+1),size);
if(l>r)
{
l=l+1;
return l;
}
else
{
r=r+1;
return r;
}
}
}
| 9.363636 | 27 | 0.475728 | aishwaryamallampati |
d872dad72aa20ff0381e61a47744ec79c79d5686 | 4,281 | hpp | C++ | src/nnfusion/core/kernels/cpu/eigen/softmax.hpp | lynex/nnfusion | 6332697c71b6614ca6f04c0dac8614636882630d | [
"MIT"
] | 639 | 2020-09-05T10:00:59.000Z | 2022-03-30T08:42:39.000Z | src/nnfusion/core/kernels/cpu/eigen/softmax.hpp | QPC-database/nnfusion | 99ada47c50f355ca278001f11bc752d1c7abcee2 | [
"MIT"
] | 252 | 2020-09-09T05:35:36.000Z | 2022-03-29T04:58:41.000Z | src/nnfusion/core/kernels/cpu/eigen/softmax.hpp | QPC-database/nnfusion | 99ada47c50f355ca278001f11bc752d1c7abcee2 | [
"MIT"
] | 104 | 2020-09-05T10:01:08.000Z | 2022-03-23T10:59:13.000Z | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#pragma once
#include "../cpu_kernel_emitter.hpp"
#include "nnfusion/core/operators/generic_op/generic_op.hpp"
namespace nnfusion
{
namespace kernels
{
namespace cpu
{
template <typename ElementType>
... | 38.223214 | 100 | 0.443354 | lynex |
d874fed91ddb84f034e8e97d57a87d232bd6e028 | 2,108 | hpp | C++ | Core/DescriptorSet.hpp | Shmaug/vkCAVE | e502aedaf172047557f0454acb170a46b9d350f8 | [
"MIT"
] | 2 | 2019-10-01T22:55:47.000Z | 2019-10-04T20:25:29.000Z | Core/DescriptorSet.hpp | Shmaug/vkCAVE | e502aedaf172047557f0454acb170a46b9d350f8 | [
"MIT"
] | null | null | null | Core/DescriptorSet.hpp | Shmaug/vkCAVE | e502aedaf172047557f0454acb170a46b9d350f8 | [
"MIT"
] | null | null | null | #pragma once
#include <Util/Util.hpp>
class Device;
class Texture;
class Buffer;
class Sampler;
class DescriptorSet {
public:
ENGINE_EXPORT DescriptorSet(const std::string& name, Device* device, VkDescriptorSetLayout layout);
ENGINE_EXPORT ~DescriptorSet();
ENGINE_EXPORT void CreateStorageBufferDescriptor(Buffer... | 45.826087 | 168 | 0.833491 | Shmaug |
d875c03131f5d23004d3af46de9f475a03d9e566 | 2,102 | cc | C++ | TC-programs/STUFF/sort_excitationsa.cc | sklinkusch/scripts | a717cadb559db823a0d5172545661d5afa2715e7 | [
"MIT"
] | null | null | null | TC-programs/STUFF/sort_excitationsa.cc | sklinkusch/scripts | a717cadb559db823a0d5172545661d5afa2715e7 | [
"MIT"
] | null | null | null | TC-programs/STUFF/sort_excitationsa.cc | sklinkusch/scripts | a717cadb559db823a0d5172545661d5afa2715e7 | [
"MIT"
] | null | null | null | # include <iostream>
# include <fstream>
# include <string.h>
# include <stdio.h>
# include <stdlib.h>
# include <sstream>
# include <math.h>
using namespace std;
void swap_line(int &froma, int &toa, double &coeffa, int &fromb, int &tob, double &coeffb){
int tempfrom, tempto;
double tempcoeff;
tempfrom = ... | 26.607595 | 103 | 0.519029 | sklinkusch |
f21d904334a6c51d4a57974b32bc4313dfb92ad1 | 1,929 | hpp | C++ | src/pyprx/visualization/three_js_group_py.hpp | aravindsiv/ML4KP | 064015a7545e1713cbcad3e79807b5cec0849f54 | [
"MIT"
] | 3 | 2021-05-31T11:28:03.000Z | 2021-05-31T13:49:30.000Z | src/pyprx/visualization/three_js_group_py.hpp | aravindsiv/ML4KP | 064015a7545e1713cbcad3e79807b5cec0849f54 | [
"MIT"
] | 1 | 2021-09-03T09:39:32.000Z | 2021-12-10T22:17:56.000Z | src/pyprx/visualization/three_js_group_py.hpp | aravindsiv/ML4KP | 064015a7545e1713cbcad3e79807b5cec0849f54 | [
"MIT"
] | 2 | 2021-09-03T09:17:45.000Z | 2021-10-04T15:52:58.000Z | #include <iostream>
#include <boost/python.hpp>
#include "prx/visualization/three_js_group.hpp"
void (prx::three_js_group_t::*update_vis_infos_1_1)(prx::info_geometry_t, const prx::trajectory_t&, std::string, prx::space_t*, std::string color) = &prx::three_js_group_t::add_vis_infos;
void (prx::three_js_group_t::*upd... | 53.583333 | 191 | 0.6817 | aravindsiv |
f22dfd860b4d10bf32ddef2f1593e46d9b44ea93 | 3,276 | cpp | C++ | src/util/node.cpp | markhary/ctci | eb96014b779e2a7eca1229644300bae18caf328d | [
"Unlicense"
] | 1 | 2021-11-17T16:50:54.000Z | 2021-11-17T16:50:54.000Z | src/util/node.cpp | markhary/ctci | eb96014b779e2a7eca1229644300bae18caf328d | [
"Unlicense"
] | null | null | null | src/util/node.cpp | markhary/ctci | eb96014b779e2a7eca1229644300bae18caf328d | [
"Unlicense"
] | 1 | 2020-06-15T13:54:04.000Z | 2020-06-15T13:54:04.000Z | // Node object
//
#include <iostream>
#include <vector>
#include <gtest/gtest.h>
#include "args.h"
#include "macros.h"
#include "util/node.h"
using namespace std;
using namespace ctci;
using namespace ctci::util;
TEST(Node, Initialize)
{
int value = 5;
Node<int> node(value);
ASSERT_EQ(node.value, val... | 25.395349 | 106 | 0.654762 | markhary |
f2460ca1daec1f6e64ac04dc64574fc70288c57d | 2,121 | hpp | C++ | include/open-bo-api-crc64.hpp | sokoliko/open-bo-api | ddcad19163532543ad13a0398f0b0119e55d4c3d | [
"MIT"
] | 6 | 2020-02-09T06:40:03.000Z | 2021-09-08T09:38:19.000Z | include/open-bo-api-crc64.hpp | sokoliko/open-bo-api | ddcad19163532543ad13a0398f0b0119e55d4c3d | [
"MIT"
] | 3 | 2020-02-28T11:30:43.000Z | 2020-06-05T12:50:33.000Z | include/open-bo-api-crc64.hpp | sokoliko/open-bo-api | ddcad19163532543ad13a0398f0b0119e55d4c3d | [
"MIT"
] | 7 | 2020-03-24T22:31:25.000Z | 2021-11-24T17:13:56.000Z | /*
* open-bo-api - C++ API for working with binary options brokers
*
* Copyright (c) 2020 Elektro Yar. Email: git.electroyar@gmail.com
*
* 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 withou... | 32.630769 | 89 | 0.704856 | sokoliko |
f24a6059fe50be8a4a5f21d303f9a8b110248f99 | 233 | cpp | C++ | src/caller/executor/executor.cpp | czhj/caller | 1f749bc039e731478a2a2f766445b8a14ac13063 | [
"MIT"
] | 1 | 2022-03-09T01:02:25.000Z | 2022-03-09T01:02:25.000Z | src/caller/executor/executor.cpp | czhj/caller | 1f749bc039e731478a2a2f766445b8a14ac13063 | [
"MIT"
] | null | null | null | src/caller/executor/executor.cpp | czhj/caller | 1f749bc039e731478a2a2f766445b8a14ac13063 | [
"MIT"
] | null | null | null | #include <caller/executor/executor.hpp>
CALLER_BEGIN
ExecutionContext::ExecutionContext()
{
}
ExecutionContext::~ExecutionContext()
{
}
Executor::Executor()
{
}
Executor::~Executor()
{
}
CALLER_END
| 8.961538 | 40 | 0.643777 | czhj |
f24f3f3faf0695de76ce2b2b4d575af04e5f9c12 | 70,427 | hpp | C++ | Evolutionary_Strategy_Vulkan.hpp | Harri-Renney/Survival_of_the_Synthesis-GPU_Accelerated_Frequency_Modulation_Parameter_Matcher | c70f8f2f2961148a7639fad05b3cf0d87f895c0c | [
"MIT"
] | null | null | null | Evolutionary_Strategy_Vulkan.hpp | Harri-Renney/Survival_of_the_Synthesis-GPU_Accelerated_Frequency_Modulation_Parameter_Matcher | c70f8f2f2961148a7639fad05b3cf0d87f895c0c | [
"MIT"
] | null | null | null | Evolutionary_Strategy_Vulkan.hpp | Harri-Renney/Survival_of_the_Synthesis-GPU_Accelerated_Frequency_Modulation_Parameter_Matcher | c70f8f2f2961148a7639fad05b3cf0d87f895c0c | [
"MIT"
] | null | null | null | #ifndef EVOLUTIONARY_STRATEGY_VULKAN_HPP
#define EVOLUTIONARY_STRATEGY_VULKAN_HPP
#include <math.h>
#include <array>
#include <random>
#include <chrono>
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
//Graphic math types and functions//
#include <glm\glm.hpp>
#include "Evolutionary_Strategy.hpp"
#include "Benc... | 48.738408 | 458 | 0.799906 | Harri-Renney |
f25211b062c96bd4607d269177d7eee4e4c09c4a | 7,227 | cpp | C++ | Final/Dataset/B2016_Z2_Z3/student4982.cpp | Team-PyRated/PyRated | 1df171c8a5a98977b7a96ee298a288314d1b1b96 | [
"MIT"
] | null | null | null | Final/Dataset/B2016_Z2_Z3/student4982.cpp | Team-PyRated/PyRated | 1df171c8a5a98977b7a96ee298a288314d1b1b96 | [
"MIT"
] | null | null | null | Final/Dataset/B2016_Z2_Z3/student4982.cpp | Team-PyRated/PyRated | 1df171c8a5a98977b7a96ee298a288314d1b1b96 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdexcept>
#include <vector>
#include <deque>
#include <type_traits>
#include <cmath>
#include <algorithm>
#include <iomanip>
int SumaCifara(long long int x)
{
int suma=0;
while(x!=0)
{
suma+=std::abs(x%10);
x=x/10;
}
return suma;
}
int SumaDjelilaca(long lon... | 22.100917 | 164 | 0.5705 | Team-PyRated |
f255aecf55b084a234b0747fedf0e3de15bf4980 | 7,619 | cpp | C++ | Necromancer/Terrain.cpp | myffx36/RenderingEngine | 38df29966b3126744fb40c2a97775ae44cea92f9 | [
"MIT"
] | null | null | null | Necromancer/Terrain.cpp | myffx36/RenderingEngine | 38df29966b3126744fb40c2a97775ae44cea92f9 | [
"MIT"
] | null | null | null | Necromancer/Terrain.cpp | myffx36/RenderingEngine | 38df29966b3126744fb40c2a97775ae44cea92f9 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Terrain.h"
const float height_base = 200.0f;
namespace Necromancer {
Terrain::Terrain(const char* file_name, ID3D11Device* device)
{
std::fstream terrain_file;
terrain_file.open(file_name, std::ios::binary | std::ios::in);
terrain_file.seekg(0, std::ios::beg);
auto start_poi... | 35.110599 | 88 | 0.708229 | myffx36 |
f25c4187bd60703c16fbcb4709293a8ec00f1145 | 101 | cpp | C++ | code/code-complete/test.cpp | peter-can-talk/cpp-london | e232bf98f28b1d8b56af3af23d43a3f565221ab0 | [
"MIT"
] | 3 | 2017-02-20T23:24:47.000Z | 2019-09-09T19:15:07.000Z | code/code-complete/test.cpp | peter-can-talk/cpp-london-2017 | e232bf98f28b1d8b56af3af23d43a3f565221ab0 | [
"MIT"
] | null | null | null | code/code-complete/test.cpp | peter-can-talk/cpp-london-2017 | e232bf98f28b1d8b56af3af23d43a3f565221ab0 | [
"MIT"
] | null | null | null | struct X {
/**
* foo does things.
*/
void foo(int x) {
}
};
int main() {
X x;
x.
}
| 7.214286 | 21 | 0.405941 | peter-can-talk |
f26663b27836b964aeaa957327dbff9365075dc0 | 12,757 | cpp | C++ | bin/windows/cpp/obj/src/openfl/display/Tilesheet.cpp | DrSkipper/twogames | 916e8af6cd45cf85fbca4a6ea8ee12e24dd6689b | [
"MIT"
] | null | null | null | bin/windows/cpp/obj/src/openfl/display/Tilesheet.cpp | DrSkipper/twogames | 916e8af6cd45cf85fbca4a6ea8ee12e24dd6689b | [
"MIT"
] | null | null | null | bin/windows/cpp/obj/src/openfl/display/Tilesheet.cpp | DrSkipper/twogames | 916e8af6cd45cf85fbca4a6ea8ee12e24dd6689b | [
"MIT"
] | null | null | null | #include <hxcpp.h>
#ifndef INCLUDED_flash_Lib
#include <flash/Lib.h>
#endif
#ifndef INCLUDED_flash_display_BitmapData
#include <flash/display/BitmapData.h>
#endif
#ifndef INCLUDED_flash_display_Graphics
#include <flash/display/Graphics.h>
#endif
#ifndef INCLUDED_flash_display_IBitmapDrawable
#include <flash/display/IB... | 35.143251 | 300 | 0.767108 | DrSkipper |
f26b97db07cd2c2457a94eb2ed16d8becd085010 | 963 | cpp | C++ | package/statistics/statistics_gateway/deprecated/btp_deprecated_gateway_multiton.cpp | mambaru/wfc_core | 0c3e7fba82a9bb1580582968efae02ef7fabc87a | [
"MIT"
] | null | null | null | package/statistics/statistics_gateway/deprecated/btp_deprecated_gateway_multiton.cpp | mambaru/wfc_core | 0c3e7fba82a9bb1580582968efae02ef7fabc87a | [
"MIT"
] | 5 | 2019-12-06T01:01:01.000Z | 2021-04-20T21:16:34.000Z | package/statistics/statistics_gateway/deprecated/btp_deprecated_gateway_multiton.cpp | mambaru/wfc_core | 0c3e7fba82a9bb1580582968efae02ef7fabc87a | [
"MIT"
] | null | null | null | //
// Author: Vladimir Migashko <migashko@gmail.com>, (C) 2013-2015
//
// Copyright: See COPYING file that comes with this distribution
//
#include "btp_deprecated_gateway_multiton.hpp"
#include "btp_deprecated_gateway.hpp"
#include <wfc/module/multiton.hpp>
#include <wfc/module/instance.hpp>
#include <wfc/name.hpp>
... | 20.934783 | 66 | 0.695742 | mambaru |
f26c536c9a9135d1e2875932cd0d32332bcb451f | 3,571 | cpp | C++ | game-emu-common/src/binarytreememorymap.cpp | Dudejoe870/game-emu | 153b7f9b7bc56042cc6d41187688aa1d9a612830 | [
"MIT"
] | 1 | 2022-03-28T21:03:10.000Z | 2022-03-28T21:03:10.000Z | game-emu-common/src/binarytreememorymap.cpp | Dudejoe870/game-emu | 153b7f9b7bc56042cc6d41187688aa1d9a612830 | [
"MIT"
] | null | null | null | game-emu-common/src/binarytreememorymap.cpp | Dudejoe870/game-emu | 153b7f9b7bc56042cc6d41187688aa1d9a612830 | [
"MIT"
] | null | null | null | #include <game-emu/common/physicalmemorymap.h>
namespace GameEmu::Common
{
PhysicalMemoryMap::Entry* BinaryTreeMemoryMap::Map(u8* hostReadMemory, u8* hostWriteMemory, u64 size, u64 baseAddress,
Entry::ReadEventFunction readEvent, Entry::WriteEventFunction writeEvent)
{
entries.push_back(Entry(baseAddress &addres... | 25.147887 | 150 | 0.720806 | Dudejoe870 |
f26e1bf69404f9ff4878ce369c1a86cdd8c60546 | 5,364 | hpp | C++ | patterns/2020_10_19/prefab/include/prefab/IEntity.hpp | liff-engineer/articles | ad3386ef9cda5083793f485e309a9f85ab36f664 | [
"MIT"
] | 2 | 2020-12-01T06:44:41.000Z | 2021-11-22T06:07:52.000Z | patterns/2020_10_19/prefab/include/prefab/IEntity.hpp | liff-engineer/articles | ad3386ef9cda5083793f485e309a9f85ab36f664 | [
"MIT"
] | null | null | null | patterns/2020_10_19/prefab/include/prefab/IEntity.hpp | liff-engineer/articles | ad3386ef9cda5083793f485e309a9f85ab36f664 | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include <tuple>
#include <memory>
#include "IComponent.hpp"
namespace prefab
{
//用来操作tuple的foreach算法
template <typename Tuple, typename F, std::size_t ...Indices>
void for_each_impl(Tuple&& tuple, F&& f, std::index_sequence<Indices...>) {
using swallow = int[];
... | 27.228426 | 89 | 0.543624 | liff-engineer |
f271842da1c802a66058f6006e2a868b865d0c12 | 2,388 | hpp | C++ | include/Network/Session.hpp | Lisoph/MORL | f1c4f9a1c16df236495666fd46d76da6ac9a32af | [
"MIT"
] | 1 | 2015-05-24T17:20:06.000Z | 2015-05-24T17:20:06.000Z | include/Network/Session.hpp | Lisoph/MORL | f1c4f9a1c16df236495666fd46d76da6ac9a32af | [
"MIT"
] | 1 | 2015-05-15T20:29:58.000Z | 2015-05-15T20:29:58.000Z | include/Network/Session.hpp | Lisoph/MORL | f1c4f9a1c16df236495666fd46d76da6ac9a32af | [
"MIT"
] | null | null | null | #pragma once
#include "UdpSocket.hpp"
#include "IPEndpoint.hpp"
#include "Network/SessionState.hpp"
#include <cstdint>
#include <functional>
#include <stack>
namespace MORL {
class Game;
namespace Network {
class Session;
class StateNotRunning : public SessionState {
public:
StateNotRunning(S... | 22.528302 | 66 | 0.588358 | Lisoph |
f27a190e89511dc1e7eaf4ac352322b7f0cc9244 | 9,108 | cpp | C++ | src/Player.cpp | osbixaodaunb/RGBender-2.0 | 9c5e33cba50541b8288e29f56562820b3d7b0e55 | [
"MIT"
] | 4 | 2017-05-15T19:33:28.000Z | 2017-05-15T23:33:04.000Z | src/Player.cpp | osbixaodaunb/RGBender-2.0 | 9c5e33cba50541b8288e29f56562820b3d7b0e55 | [
"MIT"
] | 4 | 2017-10-04T14:29:18.000Z | 2017-10-04T14:43:52.000Z | src/Player.cpp | unbgames/RGBender | 9c5e33cba50541b8288e29f56562820b3d7b0e55 | [
"MIT"
] | 4 | 2017-05-15T19:33:37.000Z | 2017-08-18T14:12:41.000Z | #include "Player.h"
#include "SDLGameObject.h"
#include "LoaderParams.h"
#include "InputHandler.h"
#include "Bullet.h"
#include "Game.h"
#include "Log.h"
#include "Enemy.h"
#include "PlayState.h"
#include "Physics.h"
#include "AudioManager.h"
#include "GameOverState.h"
#include "Childmaiden.h"
#include "Timer.h"
#incl... | 26.553936 | 181 | 0.664361 | osbixaodaunb |
f27b70324b23c204b5ef974c72beaadd47255450 | 414 | cpp | C++ | lecture5/task_6.cpp | zaneta-skiba/cpp | b02ce4252f9cf894370358fded7cfbfa3a317ead | [
"MIT"
] | null | null | null | lecture5/task_6.cpp | zaneta-skiba/cpp | b02ce4252f9cf894370358fded7cfbfa3a317ead | [
"MIT"
] | null | null | null | lecture5/task_6.cpp | zaneta-skiba/cpp | b02ce4252f9cf894370358fded7cfbfa3a317ead | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int main()
{
string names[4];
cout << "Enter 4 names:" << endl;
for (int i = 0; i < 4; i++) // user enters the names
{
cout << "name " << i+1 <<": ";
cin >> names[i];
}
for (int i = 0; i < 4; i++)
{
cout <<... | 15.923077 | 79 | 0.417874 | zaneta-skiba |
f27be8659b0b452d8f4a3c58fde153b08c488f8c | 101 | hpp | C++ | source/windows.hpp | phwitti/elevate | 00e4718bcfbf2d5490a3059451d850d17c30d9b0 | [
"Unlicense"
] | 4 | 2021-02-24T23:50:18.000Z | 2021-08-08T11:56:49.000Z | src/shared/windows.hpp | phwitti/cmdhere | a8e7635780b043efb3e220c65366255d8529b615 | [
"Unlicense"
] | null | null | null | src/shared/windows.hpp | phwitti/cmdhere | a8e7635780b043efb3e220c65366255d8529b615 | [
"Unlicense"
] | null | null | null | #ifndef __PW_WINDOWS_HPP__
#define __PW_WINDOWS_HPP__
#define NOMINMAX
#include <Windows.h>
#endif
| 12.625 | 26 | 0.811881 | phwitti |
f27f8336710722dff65995ed0278c5e1a93f3a07 | 926 | cpp | C++ | ITK19_Summer_Training _2021/PreQNOI/21_08_21/e.cpp | hoanghai1803/CP_Training | 03495a21509fb3ab7fc64674b9a1b0c7d4327ecb | [
"MIT"
] | 4 | 2021-08-25T10:53:32.000Z | 2021-09-30T03:25:50.000Z | ITK19_Summer_Training _2021/PreQNOI/21_08_21/e.cpp | hoanghai1803/CP_Training | 03495a21509fb3ab7fc64674b9a1b0c7d4327ecb | [
"MIT"
] | null | null | null | ITK19_Summer_Training _2021/PreQNOI/21_08_21/e.cpp | hoanghai1803/CP_Training | 03495a21509fb3ab7fc64674b9a1b0c7d4327ecb | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
long long x, y, l, r;
cin >> x >> y >> l >> r;
long long powX = 1, powY = 1;
vector<long long> vecX, vecY, vecSum;
while (1) {
vecX.push_back(powX);
if (r / x < powX)
break;
powX *= x;
}
while (... | 21.045455 | 79 | 0.413607 | hoanghai1803 |
f28194fb10280e78290c1e8fd063a8815c6bae80 | 209 | cpp | C++ | src/stream/DirectStream.cpp | Lyatus/L | 0b594d722200d5ee0198b5d7b9ee72a5d1e12611 | [
"Unlicense"
] | 45 | 2018-08-24T12:57:38.000Z | 2021-11-12T11:21:49.000Z | src/stream/DirectStream.cpp | Lyatus/L | 0b594d722200d5ee0198b5d7b9ee72a5d1e12611 | [
"Unlicense"
] | null | null | null | src/stream/DirectStream.cpp | Lyatus/L | 0b594d722200d5ee0198b5d7b9ee72a5d1e12611 | [
"Unlicense"
] | 4 | 2019-09-16T02:48:42.000Z | 2020-07-10T03:50:31.000Z | #include "DirectStream.h"
#include "../container/Buffer.h"
using namespace L;
Buffer DirectStream::read_into_buffer() {
Buffer buffer(size());
seek(0);
read(buffer, buffer.size());
return buffer;
}
| 16.076923 | 41 | 0.69378 | Lyatus |
f28b6c86a411b6fa3e1472f751d8e4235d6aa694 | 1,294 | cpp | C++ | src/Editor/Dynamic/Fields/TexturePathEditor.cpp | Tristeon/Tristeon | 9052e87b743f1122ed4c81952f2bffda96599447 | [
"MIT"
] | 32 | 2018-06-16T20:50:15.000Z | 2022-03-26T16:57:15.000Z | src/Editor/Dynamic/Fields/TexturePathEditor.cpp | Tristeon/Tristeon2D | 9052e87b743f1122ed4c81952f2bffda96599447 | [
"MIT"
] | 2 | 2018-10-07T17:41:39.000Z | 2021-01-08T03:14:19.000Z | src/Editor/Dynamic/Fields/TexturePathEditor.cpp | Tristeon/Tristeon2D | 9052e87b743f1122ed4c81952f2bffda96599447 | [
"MIT"
] | 9 | 2018-06-12T21:00:58.000Z | 2021-01-08T02:18:30.000Z | #include "TexturePathEditor.h"
#include <qboxlayout.h>
#include <qdir.h>
#include <qfiledialog.h>
#include <Settings.h>
#include <AssetManagement/AssetDatabase.h>
namespace TristeonEditor
{
TexturePathEditor::TexturePathEditor(const nlohmann::json& pValue, const std::function<void(nlohmann::json)>& pCallback) : Abs... | 31.560976 | 178 | 0.697836 | Tristeon |
f290e9b9e1dfe6750502d56b139da0c12d11eefb | 2,707 | cpp | C++ | competitive_programming_3/2_data_structures_and_libraries/2.3_Non-Linear_DS_with_Built-in_Libraries/map(treemap)/978_Lemmings_Battle.cpp | FranciscoPigretti/onlinejudge_solutions | ec9368ade1faa403d0d26ad9321b030e128ae099 | [
"MIT"
] | null | null | null | competitive_programming_3/2_data_structures_and_libraries/2.3_Non-Linear_DS_with_Built-in_Libraries/map(treemap)/978_Lemmings_Battle.cpp | FranciscoPigretti/onlinejudge_solutions | ec9368ade1faa403d0d26ad9321b030e128ae099 | [
"MIT"
] | null | null | null | competitive_programming_3/2_data_structures_and_libraries/2.3_Non-Linear_DS_with_Built-in_Libraries/map(treemap)/978_Lemmings_Battle.cpp | FranciscoPigretti/onlinejudge_solutions | ec9368ade1faa403d0d26ad9321b030e128ae099 | [
"MIT"
] | null | null | null | #include <iostream> // cin, cout
#include <set>
#include <iterator>
using namespace std;
int main() {
int test_cases;
scanf("%d", &test_cases);
int B, SG, SB, current;
multiset <int, greater <int> > greens, blues;
multiset <int, greater <int> > temp_greens, temp_blues;
mult... | 27.907216 | 70 | 0.362763 | FranciscoPigretti |
f294481ff7e6dc8c20b6e4ea9d130ef1c07a09a1 | 12,105 | cpp | C++ | runtests.cpp | fguitton/mdipp | a79d207daa3bf6b2b730653d39cd270cf6295859 | [
"BSD-3-Clause"
] | 2 | 2017-11-01T16:45:16.000Z | 2021-02-24T08:29:14.000Z | runtests.cpp | fguitton/mdipp | a79d207daa3bf6b2b730653d39cd270cf6295859 | [
"BSD-3-Clause"
] | null | null | null | runtests.cpp | fguitton/mdipp | a79d207daa3bf6b2b730653d39cd270cf6295859 | [
"BSD-3-Clause"
] | 2 | 2018-03-22T16:40:51.000Z | 2018-07-16T13:05:10.000Z | #include <fstream>
#include <iostream>
#include <memory>
#include <Eigen/Dense>
#include "datatypes.hpp"
#include "utility.hpp"
std::default_random_engine generator;
template<typename T>
void
writeCsvMatrix (std::ostream &fd,
const Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic> &data,
const Eigen::VectorXi &a... | 26.546053 | 86 | 0.585378 | fguitton |
f29fee79be5f44a0dd5e04a95fd2201638ea63c1 | 4,862 | cpp | C++ | src/ECS/Systems/UpdateEntityPositionSystem.cpp | novuscore/NovusCore-World | 4c0639e251cac9ae0cef601b814c575a1bfb4f2e | [
"MIT"
] | null | null | null | src/ECS/Systems/UpdateEntityPositionSystem.cpp | novuscore/NovusCore-World | 4c0639e251cac9ae0cef601b814c575a1bfb4f2e | [
"MIT"
] | null | null | null | src/ECS/Systems/UpdateEntityPositionSystem.cpp | novuscore/NovusCore-World | 4c0639e251cac9ae0cef601b814c575a1bfb4f2e | [
"MIT"
] | 2 | 2021-12-20T22:16:11.000Z | 2022-03-10T20:59:10.000Z | #include "UpdateEntityPositionSystem.h"
#include <entt.hpp>
#include <tracy/Tracy.hpp>
#include <Utils/DebugHandler.h>
#include "../../Utils/ServiceLocator.h"
#include "../Components/Singletons/MapSingleton.h"
#include "../Components/Network/ConnectionComponent.h"
#include <Gameplay/Network/PacketWriter.h>
#include <... | 37.4 | 127 | 0.567668 | novuscore |
f2a21670e5d0d880491c390727879e089abf1476 | 7,027 | cpp | C++ | Operations/albaOpImporterLandmark.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | 9 | 2018-11-19T10:15:29.000Z | 2021-08-30T11:52:07.000Z | Operations/albaOpImporterLandmark.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | Operations/albaOpImporterLandmark.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2018-06-10T22:56:29.000Z | 2019-12-12T06:22:56.000Z | /*=========================================================================
Program: ALBA (Agile Library for Biomedical Applications)
Module: albaOpImporterLandmark
Authors: Daniele Giunchi, Simone Brazzale
Copyright (c) BIC
All rights reserved. See Copyright.txt or
This software is distributed WITHOUT ANY W... | 25.18638 | 128 | 0.588587 | IOR-BIC |
f2a96756f9c5581c82820de3bde9780e0eaad7de | 3,500 | cpp | C++ | 09/smoke_basin.t.cpp | ComicSansMS/AdventOfCode2021 | 60902d14c356c3375266703e85aca991241afc84 | [
"Unlicense"
] | null | null | null | 09/smoke_basin.t.cpp | ComicSansMS/AdventOfCode2021 | 60902d14c356c3375266703e85aca991241afc84 | [
"Unlicense"
] | null | null | null | 09/smoke_basin.t.cpp | ComicSansMS/AdventOfCode2021 | 60902d14c356c3375266703e85aca991241afc84 | [
"Unlicense"
] | null | null | null | #include <smoke_basin.hpp>
#include <catch.hpp>
#include <sstream>
TEST_CASE("Smoke Basin")
{
char const sample_input[] = "2199943210" "\n"
"3987894921" "\n"
"9856789892" "\n"
"8767896789" "\n"
... | 31.25 | 69 | 0.369429 | ComicSansMS |
f2ae2ff61ab14da82b661a799256e159355fbb26 | 1,054 | cpp | C++ | Source/PracticeVeter/Characters/Animations/BaseCharacterAnimInstance.cpp | mile634/ExperimentalUE | 20a7b13af43c79e7b53920b25b451da9212429e3 | [
"MIT"
] | null | null | null | Source/PracticeVeter/Characters/Animations/BaseCharacterAnimInstance.cpp | mile634/ExperimentalUE | 20a7b13af43c79e7b53920b25b451da9212429e3 | [
"MIT"
] | null | null | null | Source/PracticeVeter/Characters/Animations/BaseCharacterAnimInstance.cpp | mile634/ExperimentalUE | 20a7b13af43c79e7b53920b25b451da9212429e3 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "BaseCharacterAnimInstance.h"
#include "PracticeVeter/Characters/BaseCharacter.h"
#include "PracticeVeter/Components/MovementComponents/MyBaseCharacterMovementComponent.h"
void UBaseCharacterAnimInstance::NativeBeginPlay()
{
Su... | 31.939394 | 113 | 0.805503 | mile634 |
f2b21addfdadd2d17c3507ad5a4b634ba8889390 | 741 | cpp | C++ | DataStructure/c++/Linked-list/Remove loop in Linked List.cpp | Sauradip07/DataStructures-and-Algorithm | d782e2e5cf2caedce7202c4aac43ee0ca3a0c285 | [
"MIT"
] | 17 | 2021-09-13T14:50:29.000Z | 2022-01-07T10:53:35.000Z | DataStructure/c++/Linked-list/Remove loop in Linked List.cpp | Manish4Kumar/DataStructures-and-Algorithm | 7f3b156af8b380a0a2785782e6437a6cc5835448 | [
"MIT"
] | 15 | 2021-10-01T04:13:32.000Z | 2021-11-05T07:49:55.000Z | DataStructure/c++/Linked-list/Remove loop in Linked List.cpp | Manish4Kumar/DataStructures-and-Algorithm | 7f3b156af8b380a0a2785782e6437a6cc5835448 | [
"MIT"
] | 11 | 2021-09-23T14:37:03.000Z | 2021-11-04T13:22:17.000Z | Remove loop in Linked List : https://practice.geeksforgeeks.org/problems/remove-loop-in-linked-list/1#
solution:
void removeLoop(Node* head)
{
Node* low=head;
Node* high=head;
while(low!=NULL and high!=NULL and high->next!=NULL){
low=low->next;
high=high-... | 25.551724 | 102 | 0.453441 | Sauradip07 |
f2b290c54fb16b4f60d60b2c9d8596e02023abc1 | 2,542 | cxx | C++ | periphery/gpio.cxx | trotill/11parts_CPP | 53a69d516fdcb5c92b591b5dadc49dfdd2a3b26b | [
"MIT"
] | null | null | null | periphery/gpio.cxx | trotill/11parts_CPP | 53a69d516fdcb5c92b591b5dadc49dfdd2a3b26b | [
"MIT"
] | null | null | null | periphery/gpio.cxx | trotill/11parts_CPP | 53a69d516fdcb5c92b591b5dadc49dfdd2a3b26b | [
"MIT"
] | null | null | null | /*
* gpio.cxx
*
* Created on: 30 июля 2014 г.
* Author: root
*/
#include "gpio.h"
eErrorTp GpioInInit(u8 gpio)
{
string str;
str= "echo \"" + intToString(gpio) + "\"> /sys/class/gpio/export";
printf("%s\n",str.c_str());
system(str.c_str());
str= "echo \"in\" > /sys/class/gpio/gpio"+intToString(gpio)+... | 21.542373 | 103 | 0.623131 | trotill |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.