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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
91a9c1348dc635d93dbafa733e021becd8bdefa8 | 947 | hh | C++ | dune/ax1/acme1/configurations/cheeseburger/cheeseburger_initial.hh | pederpansen/dune-ax1 | 152153824d95755a55bdd4fba80686863e928196 | [
"BSD-3-Clause"
] | null | null | null | dune/ax1/acme1/configurations/cheeseburger/cheeseburger_initial.hh | pederpansen/dune-ax1 | 152153824d95755a55bdd4fba80686863e928196 | [
"BSD-3-Clause"
] | null | null | null | dune/ax1/acme1/configurations/cheeseburger/cheeseburger_initial.hh | pederpansen/dune-ax1 | 152153824d95755a55bdd4fba80686863e928196 | [
"BSD-3-Clause"
] | null | null | null | /*
* cheeseburger_initial.hh
*
* Created on: Jan 17, 2012
* Author: jpods
*/
#ifndef DUNE_AX1_CHEESEBURGER_INITIAL_HH
#define DUNE_AX1_CHEESEBURGER_INITIAL_HH
#include <dune/ax1/acme1/common/acme1_parametertree.hh>
template<typename GV, typename RF, int dim, typename CHEESEBURGER_CON>
class CheeseburgerIn... | 24.282051 | 73 | 0.722281 | pederpansen |
91acd56e5365b1e3af3fc180a693a9cc0ea8651e | 11,985 | cpp | C++ | ql/experimental/math/zigguratrng.cpp | fduffy/QuantLibAdjoint | d9d355db4f46824bb5e607e28381943aef994ed4 | [
"BSD-3-Clause"
] | 41 | 2016-03-19T02:31:54.000Z | 2022-01-20T13:23:20.000Z | ql/experimental/math/zigguratrng.cpp | fduffy/QuantLibAdjoint | d9d355db4f46824bb5e607e28381943aef994ed4 | [
"BSD-3-Clause"
] | 1 | 2015-02-02T20:32:43.000Z | 2015-02-02T20:32:43.000Z | ql/experimental/math/zigguratrng.cpp | fduffy/QuantLibAdjoint | d9d355db4f46824bb5e607e28381943aef994ed4 | [
"BSD-3-Clause"
] | 22 | 2016-03-17T14:14:36.000Z | 2022-03-28T10:33:19.000Z | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2010 Kakhkhor Abdijalilov
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute i... | 49.118852 | 82 | 0.63471 | fduffy |
91adcdba4fa018183a4f2ed498dd91b76134ada9 | 23,366 | cpp | C++ | groups/bdl/bdlbb/bdlbb_blobutil.cpp | AlisdairM/bde | bc65db208c32513aa545080f57090cc39c608be0 | [
"Apache-2.0"
] | 1 | 2022-01-23T11:31:12.000Z | 2022-01-23T11:31:12.000Z | groups/bdl/bdlbb/bdlbb_blobutil.cpp | AlisdairM/bde | bc65db208c32513aa545080f57090cc39c608be0 | [
"Apache-2.0"
] | null | null | null | groups/bdl/bdlbb/bdlbb_blobutil.cpp | AlisdairM/bde | bc65db208c32513aa545080f57090cc39c608be0 | [
"Apache-2.0"
] | null | null | null | // bdlbb_blobutil.cpp -*-C++-*-
// ----------------------------------------------------------------------------
// NOTICE
//
// This component is not up to date with current BDE coding standards, and
// should not be used as an example f... | 32.588563 | 79 | 0.55431 | AlisdairM |
91b8ad53e50ba550f70481dd0d761b3e0b93b85b | 1,372 | hh | C++ | src/arcana-linter/CodeFile.hh | project-arcana/tool-arcana-linter | 1524970c449e589e148becdbfaa52171394250a2 | [
"MIT"
] | null | null | null | src/arcana-linter/CodeFile.hh | project-arcana/tool-arcana-linter | 1524970c449e589e148becdbfaa52171394250a2 | [
"MIT"
] | null | null | null | src/arcana-linter/CodeFile.hh | project-arcana/tool-arcana-linter | 1524970c449e589e148becdbfaa52171394250a2 | [
"MIT"
] | null | null | null | #pragma once
#include <filesystem>
#include <string>
#include <vector>
#include <cppast/cpp_file.hpp>
#include "AstParser.hh"
namespace arclint
{
class CodeFile
{
public:
CodeFile(std::filesystem::path const& path);
void initialize(AstParser const& parser);
/// Whether this file failed to parse
[[... | 29.826087 | 123 | 0.697522 | project-arcana |
91bb30e29370a7a2b921f43669fc1200ab79c099 | 3,483 | cpp | C++ | Injector/injection.cpp | pTriangle/SimpleLoadLibraryDLLInjector | 81faafa9508f870053b15b630f034880664cf890 | [
"Apache-2.0"
] | 1 | 2017-01-03T20:09:59.000Z | 2017-01-03T20:09:59.000Z | Injector/injection.cpp | pTriangle/SimpleLoadLibraryDLLInjector | 81faafa9508f870053b15b630f034880664cf890 | [
"Apache-2.0"
] | null | null | null | Injector/injection.cpp | pTriangle/SimpleLoadLibraryDLLInjector | 81faafa9508f870053b15b630f034880664cf890 | [
"Apache-2.0"
] | null | null | null | #include "injection.h"
#include <Windows.h>
#include <TlHelp32.h>
#include <iostream>
#include <string>
#include <fstream>
#include <Psapi.h>
#include <tchar.h>
void main(int argc, char* argv[]) {
if (argc < 3){
printf("Usage: injector.exe [process_name] [dll_to_inject]");
}
else{
wchar_t process_name[MAX_PATH... | 35.181818 | 147 | 0.750215 | pTriangle |
91bbed6cef137e345531cdbb6f5958a892744725 | 4,318 | cpp | C++ | Vishv_GE/VGP334_Animation/01_ModelImport/GameState.cpp | InFaNsO/Vishv_GameEngine | e721afa899fb8715e52cdd67c2656ba6cce7ffed | [
"MIT"
] | 1 | 2021-12-19T02:06:12.000Z | 2021-12-19T02:06:12.000Z | Vishv_GE/VGP334_Animation/01_ModelImport/GameState.cpp | InFaNsO/Vishv_GameEngine | e721afa899fb8715e52cdd67c2656ba6cce7ffed | [
"MIT"
] | null | null | null | Vishv_GE/VGP334_Animation/01_ModelImport/GameState.cpp | InFaNsO/Vishv_GameEngine | e721afa899fb8715e52cdd67c2656ba6cce7ffed | [
"MIT"
] | null | null | null | #include "GameState.h"
using namespace Vishv;
using namespace Vishv::Graphics;
void GameState::Initialize()
{
mCameraPosition = { 0.0f, 0.0f, -30.0f };
mCamera.SetPosition(mCameraPosition);
mCamera.SetDirection({ 0.0f, 0.0f, 1.0f });
std::filesystem::path path = "../../Assets/Shaders/Texturing.fx";
mTexturePixe... | 29.77931 | 147 | 0.721862 | InFaNsO |
91bd10e6465c4e00917001c83ace21892f6ef7e0 | 491 | cpp | C++ | ch13/ex13_50_test.cpp | Direct-Leo/CppPrimer | 9d3993c7604377abc5a925c9fe6342ad3a062983 | [
"CC0-1.0"
] | null | null | null | ch13/ex13_50_test.cpp | Direct-Leo/CppPrimer | 9d3993c7604377abc5a925c9fe6342ad3a062983 | [
"CC0-1.0"
] | null | null | null | ch13/ex13_50_test.cpp | Direct-Leo/CppPrimer | 9d3993c7604377abc5a925c9fe6342ad3a062983 | [
"CC0-1.0"
] | null | null | null | /* Created by vleo on 21/11/17
* Copyright(c)2021 vleo. All rights reserved.
*
* ex13_48
*
*/
#include "ex13_50.h"
#include "ex13_50.cpp"
#include <iostream>
#include <vector>
using std::vector;
using std::cout; using std::endl;
int main()
{
vector<String> v;
//v.reserve(10); // if make it into effect... | 19.64 | 78 | 0.635438 | Direct-Leo |
91bfc45a4598fd0e49f7aa41be79d8cf629ed809 | 1,138 | cpp | C++ | IL2CPP/Il2CppOutputProject/IL2CPP/libil2cpp/icalls/mscorlib/System.Runtime.Remoting.Activation/ActivationServices.cpp | dngoins/AutographTheWorld-MR | 24e567c8030b73a6942e25b36b7370667c649b90 | [
"MIT"
] | 16 | 2018-10-13T12:29:06.000Z | 2022-02-25T14:56:47.000Z | IL2CPP/Il2CppOutputProject/IL2CPP/libil2cpp/icalls/mscorlib/System.Runtime.Remoting.Activation/ActivationServices.cpp | dngoins/AutographTheWorld-MR | 24e567c8030b73a6942e25b36b7370667c649b90 | [
"MIT"
] | 8 | 2020-03-10T23:11:09.000Z | 2020-03-14T01:19:32.000Z | IL2CPP/Il2CppOutputProject/IL2CPP/libil2cpp/icalls/mscorlib/System.Runtime.Remoting.Activation/ActivationServices.cpp | dngoins/AutographTheWorld-MR | 24e567c8030b73a6942e25b36b7370667c649b90 | [
"MIT"
] | 7 | 2020-06-09T13:16:30.000Z | 2021-11-01T15:28:04.000Z | #include "il2cpp-config.h"
#include "il2cpp-api.h"
#include "icalls/mscorlib/System.Runtime.Remoting.Activation/ActivationServices.h"
#include "il2cpp-object-internals.h"
#include "il2cpp-class-internals.h"
#include "il2cpp-runtime-metadata.h"
#include "vm/Image.h"
#include "vm/Class.h"
#include "vm/Exception.h"
names... | 24.212766 | 101 | 0.716169 | dngoins |
91c2b6bc5a09ddcad07bd053d46817aba38b8a05 | 1,091 | cpp | C++ | src/xray/editor/world/sources/property_color.cpp | ixray-team/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | 3 | 2021-10-30T09:36:14.000Z | 2022-03-26T17:00:06.000Z | src/xray/editor/world/sources/property_color.cpp | acidicMercury8/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | null | null | null | src/xray/editor/world/sources/property_color.cpp | acidicMercury8/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:08.000Z | 2022-03-26T17:00:08.000Z | ////////////////////////////////////////////////////////////////////////////
// Created : 10.12.2007
// Author : Dmitriy Iassenev
// Copyright (C) GSC Game World - 2009
////////////////////////////////////////////////////////////////////////////
#include "pch.h"
#include "property_color.h"
property_color::... | 23.212766 | 77 | 0.601283 | ixray-team |
91c766fd78ec3bca4a31e43970456a1b883f43a5 | 434 | cpp | C++ | FilterEffects/EnvelopeFilter.cpp | mhamilt/AudioEffectsSuite | bfa9a94f9bb57817b77ce8360e5afdb8e92bb076 | [
"MIT"
] | 12 | 2017-12-24T16:59:41.000Z | 2022-01-08T20:53:44.000Z | FilterEffects/EnvelopeFilter.cpp | mhamilt/AudioEffectsSuite | bfa9a94f9bb57817b77ce8360e5afdb8e92bb076 | [
"MIT"
] | null | null | null | FilterEffects/EnvelopeFilter.cpp | mhamilt/AudioEffectsSuite | bfa9a94f9bb57817b77ce8360e5afdb8e92bb076 | [
"MIT"
] | 9 | 2018-01-05T19:07:40.000Z | 2021-11-13T08:33:16.000Z | //
// EnvelopeFilter.cpp
// AudioEffectsSuite
//
// Created by admin on 12/01/2018.
// Copyright © 2018 AudioEffectsSuiteTeam. All rights reserved.
//
#ifndef EnvelopeFilter_hpp
#include "EnvelopeFilter.hpp"
double EnvelopeFilter::process(double sample)
{
setChebyICoefficients(0.001+envelopeFollower.envelope(2*s... | 22.842105 | 109 | 0.762673 | mhamilt |
91c7922a1f376565b2810ce6b5fc7f10bebeec0c | 572 | cpp | C++ | OpenTESArena/src/Interface/CommonUiController.cpp | TotalCaesar659/OpenTESArena | e72eda7a5e03869309b5ed7375f432d0ad826ff3 | [
"MIT"
] | null | null | null | OpenTESArena/src/Interface/CommonUiController.cpp | TotalCaesar659/OpenTESArena | e72eda7a5e03869309b5ed7375f432d0ad826ff3 | [
"MIT"
] | null | null | null | OpenTESArena/src/Interface/CommonUiController.cpp | TotalCaesar659/OpenTESArena | e72eda7a5e03869309b5ed7375f432d0ad826ff3 | [
"MIT"
] | null | null | null | #include "CommonUiController.h"
#include "../Game/Game.h"
#include "../Input/InputActionEvents.h"
void CommonUiController::onDebugInputAction(const InputActionCallbackValues &values)
{
if (values.performed)
{
auto &game = values.game;
auto &options = game.getOptions();
// Increment or wrap profiler level.
c... | 33.647059 | 135 | 0.767483 | TotalCaesar659 |
91c855de2f2bc702aaf94785a9a4d866c526ccfe | 24,319 | cpp | C++ | library/+spx/+fast/private/spx_lanbd.cpp | santoshmore85/sparse-plex | 1cb2b9f3051d6284adbe195abdc1a36c4541bdeb | [
"Apache-2.0"
] | 64 | 2016-09-09T09:27:43.000Z | 2022-02-24T05:49:37.000Z | library/+spx/+fast/private/spx_lanbd.cpp | indigits/sparse-plex | 1cb2b9f3051d6284adbe195abdc1a36c4541bdeb | [
"Apache-2.0"
] | null | null | null | library/+spx/+fast/private/spx_lanbd.cpp | indigits/sparse-plex | 1cb2b9f3051d6284adbe195abdc1a36c4541bdeb | [
"Apache-2.0"
] | 34 | 2015-07-05T12:09:56.000Z | 2022-03-21T02:31:58.000Z | #include "spx_lanbd.hpp"
#include "spx_qr.hpp"
#include "spx_svd.hpp"
namespace spx {
// Fudge factor for A norm estimate
const double FUDGE = 1.01;
const double m2 = 3.0 / 2;
const double n2 = 3.0 / 2;
LanczosBDOptions::LanczosBDOptions(double eps, int k) {
delta = sqrt(eps / k);
eta = pow(eps, 0.75) / sqrt... | 32.642953 | 117 | 0.48127 | santoshmore85 |
91cb1feda9908ec8ad633e6822c9ed04aef72c13 | 2,122 | cpp | C++ | src/QueryBuilder.cpp | clinekev11/liblifthttp | 558c698ea1272a7be6da1574fdcf3101e685ba77 | [
"Apache-2.0"
] | null | null | null | src/QueryBuilder.cpp | clinekev11/liblifthttp | 558c698ea1272a7be6da1574fdcf3101e685ba77 | [
"Apache-2.0"
] | null | null | null | src/QueryBuilder.cpp | clinekev11/liblifthttp | 558c698ea1272a7be6da1574fdcf3101e685ba77 | [
"Apache-2.0"
] | null | null | null | #include "lift/QueryBuilder.hpp"
#include "lift/Escape.hpp"
namespace lift {
auto QueryBuilder::SetScheme(
std::string_view scheme) -> QueryBuilder&
{
m_scheme = scheme;
return *this;
}
auto QueryBuilder::SetHostname(
std::string_view hostname) -> QueryBuilder&
{
m_hostname = hostname;
return... | 20.803922 | 62 | 0.573044 | clinekev11 |
91cf39876110993166f2b90293c9a9fb89db76b7 | 723 | cpp | C++ | tests/CompareVersionNumbersTest.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 43 | 2015-10-10T12:59:52.000Z | 2018-07-11T18:07:00.000Z | tests/CompareVersionNumbersTest.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | null | null | null | tests/CompareVersionNumbersTest.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 11 | 2015-10-10T14:41:11.000Z | 2018-07-28T06:03:16.000Z | #include "catch.hpp"
#include "CompareVersionNumbers.hpp"
TEST_CASE("Compare Version Numbers") {
CompareVersionNumbers s;
SECTION("Sample tests") {
REQUIRE(s.compareVersion("0.1", "1.1") == -1);
REQUIRE(s.compareVersion("1.1", "1.2") == -1);
REQUIRE(s.compareVersion("1.2", "13.37") == ... | 36.15 | 63 | 0.550484 | yanzhe-chen |
91d2bee86e5f9cf91c698e87c9213238c09e6f78 | 2,656 | hpp | C++ | mathutils/vector/util.hpp | rxnew/mathutils | 2e8e8c9c99f7cfdbcc4f972f5b68e37dd1fc4f0d | [
"MIT"
] | null | null | null | mathutils/vector/util.hpp | rxnew/mathutils | 2e8e8c9c99f7cfdbcc4f972f5b68e37dd1fc4f0d | [
"MIT"
] | null | null | null | mathutils/vector/util.hpp | rxnew/mathutils | 2e8e8c9c99f7cfdbcc4f972f5b68e37dd1fc4f0d | [
"MIT"
] | null | null | null | #pragma once
#include "vector.hpp"
#include "hyperrectangle.hpp"
namespace mathutils {
namespace vector_accessors {
template <int dim, class Real, class = std::enable_if_t<(dim >= 1)>>
auto get_x(Vector<dim, Real> const& vector) -> Real;
template <int dim, class Real, class = std::enable_if_t<(dim >= 2)>>
auto get_y(... | 54.204082 | 79 | 0.732681 | rxnew |
91d52d917a9afccc27731ffd05a66d311d0caad8 | 2,565 | cpp | C++ | src/sdl.cpp | trademarks/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | 8 | 2016-10-21T09:01:43.000Z | 2021-05-31T06:32:14.000Z | src/sdl.cpp | blackberry/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | null | null | null | src/sdl.cpp | blackberry/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | 4 | 2017-05-16T00:15:58.000Z | 2020-08-06T01:46:31.000Z | /* $Id$ */
/*
* This file is part of OpenTTD.
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without... | 21.737288 | 185 | 0.696686 | trademarks |
91dc179e42990acc69a43c32585db2f352909423 | 779 | cpp | C++ | GLES3Renderer/GLES3Renderer/GfxMaterialManager.cpp | LiangYue1981816/CrossEngine-GLES3Renderer | 8d092307c22164895c4f92395ef291c87f2811e6 | [
"Apache-2.0"
] | null | null | null | GLES3Renderer/GLES3Renderer/GfxMaterialManager.cpp | LiangYue1981816/CrossEngine-GLES3Renderer | 8d092307c22164895c4f92395ef291c87f2811e6 | [
"Apache-2.0"
] | null | null | null | GLES3Renderer/GLES3Renderer/GfxMaterialManager.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 "GfxMaterial.h"
#include "GfxMaterialManager.h"
CGfxMaterialManager::CGfxMaterialManager(void)
{
}
CGfxMaterialManager::~CGfxMaterialManager(void)
{
for (const auto &itMaterial : m_pMaterials) {
delete itMaterial.second;
}
m_pMaterials.clea... | 19 | 71 | 0.741977 | LiangYue1981816 |
91e449834ba089cc254ea3358a2afc460f56cdbe | 434 | cpp | C++ | competitive-programming/leetcode/Number-theory/count_primes.cpp | dushimsam/deep-dive-in-algorithms | 0c6a04b3115ba789ab4aca68cce51c9a3c3a075a | [
"MIT"
] | null | null | null | competitive-programming/leetcode/Number-theory/count_primes.cpp | dushimsam/deep-dive-in-algorithms | 0c6a04b3115ba789ab4aca68cce51c9a3c3a075a | [
"MIT"
] | null | null | null | competitive-programming/leetcode/Number-theory/count_primes.cpp | dushimsam/deep-dive-in-algorithms | 0c6a04b3115ba789ab4aca68cce51c9a3c3a075a | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int countPrimeNumbers(int n){
if(n <= 2) return 0;
vector<int> sieve(n,0);
sieve[0] = 1;
sieve[1] = 1;
for(int x=2;x<n;x++){
if(sieve[x])continue;
for(int u=x*2;u<n;u+=x){
sieve[u] = x;
}
}
int count = 0;
for(int i=2;i<n;i++)if(... | 14.466667 | 43 | 0.532258 | dushimsam |
91e8cc24e62e623b12c5c3b48aa397431b605197 | 2,000 | cpp | C++ | OfferReview/OfferReview/Sort/02_InsertSort/InsertSort.cpp | chm994483868/HMDailyLearningRecord | 95ff0a5347927ce4527bcdd70374e5be22bfc60d | [
"MIT"
] | 2 | 2021-06-26T08:07:04.000Z | 2021-08-03T06:05:40.000Z | OfferReview/OfferReview/Sort/02_InsertSort/InsertSort.cpp | chm994483868/HMDailyLearningRecord | 95ff0a5347927ce4527bcdd70374e5be22bfc60d | [
"MIT"
] | null | null | null | OfferReview/OfferReview/Sort/02_InsertSort/InsertSort.cpp | chm994483868/HMDailyLearningRecord | 95ff0a5347927ce4527bcdd70374e5be22bfc60d | [
"MIT"
] | null | null | null | //
// InsertSort.cpp
// OfferReview
//
// Created by CHM on 2020/8/4.
// Copyright © 2020 CHM. All rights reserved.
//
#include "InsertSort.hpp"
void InsertSort::insertSort(int nums[], int count) {
if (nums == nullptr || count <= 0) {
return;
}
for (int i = 1; i < count; ++i) {
fo... | 20.833333 | 64 | 0.489 | chm994483868 |
91e9009321683a85f019f0134d1774e81bba41f7 | 3,546 | hpp | C++ | extension/include/boost/di/extension/injections/shared_factory.hpp | szigetics/di | 48eccb76aee03f0eceafe9bf47a713a8c0e7d810 | [
"BSL-1.0"
] | 531 | 2016-01-28T21:51:28.000Z | 2020-06-23T10:59:52.000Z | extension/include/boost/di/extension/injections/shared_factory.hpp | szigetics/di | 48eccb76aee03f0eceafe9bf47a713a8c0e7d810 | [
"BSL-1.0"
] | 243 | 2016-02-11T14:28:01.000Z | 2020-06-22T08:53:13.000Z | extension/include/boost/di/extension/injections/shared_factory.hpp | szigetics/di | 48eccb76aee03f0eceafe9bf47a713a8c0e7d810 | [
"BSL-1.0"
] | 86 | 2016-02-01T21:49:15.000Z | 2020-06-17T14:38:53.000Z | //
// Copyright (c) 2012-2020 Kanstantsin Chernik
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#pragma once
#include <memory>
#include "boost/di.hpp"
#include "boost/di/extension/injections/extensible_inj... | 32.833333 | 125 | 0.737169 | szigetics |
91eb71f7a7c92990af1e1e3823a2cc010481986d | 377 | cpp | C++ | src/Compiler/interop/native_function_info.cpp | joakimthun/Elsa | 3be901149c1102d190dda1c7f3340417f03666c7 | [
"MIT"
] | 16 | 2015-10-12T14:24:45.000Z | 2021-07-20T01:56:04.000Z | src/Compiler/interop/native_function_info.cpp | haifenghuang/Elsa | 3be901149c1102d190dda1c7f3340417f03666c7 | [
"MIT"
] | null | null | null | src/Compiler/interop/native_function_info.cpp | haifenghuang/Elsa | 3be901149c1102d190dda1c7f3340417f03666c7 | [
"MIT"
] | 2 | 2017-11-12T01:39:09.000Z | 2021-07-20T01:56:09.000Z | #include "native_function_info.h"
namespace elsa {
namespace compiler {
NativeFunctionInfo::NativeFunctionInfo(const std::wstring& name, std::size_t index)
:
name_(name),
index_(index)
{}
const std::wstring& NativeFunctionInfo::get_name() const
{
return name_;
}
std::size_t NativeFunction... | 15.08 | 85 | 0.681698 | joakimthun |
91ebea1a9a1f84cb46ef7eefcc83ee2bfad9a616 | 625 | cpp | C++ | Game/debugstage.cpp | pmprog/TugOfWar | a09e76464a2a2a31f314fd995482c8d34a88c3ba | [
"MIT"
] | null | null | null | Game/debugstage.cpp | pmprog/TugOfWar | a09e76464a2a2a31f314fd995482c8d34a88c3ba | [
"MIT"
] | null | null | null | Game/debugstage.cpp | pmprog/TugOfWar | a09e76464a2a2a31f314fd995482c8d34a88c3ba | [
"MIT"
] | null | null | null |
#include "debugstage.h"
void DebugStage::Begin()
{
// AUDIO->PlayMusic( "resources/Paul Hannay (Feekzoid) - Last_Ninja_4_loader [1].ogg", true );
}
void DebugStage::Pause()
{
}
void DebugStage::Resume()
{
}
void DebugStage::Finish()
{
AUDIO->StopMusic();
}
void DebugStage::EventOccurred(Event *e)
{
if( e->Type... | 13.297872 | 95 | 0.6656 | pmprog |
91f3eb2651311a1c6ff7827679427ffe0995641f | 3,214 | cpp | C++ | src/streams/private/devices/stdio_device.cpp | aeon-engine/libaeon | e42b39e621dcd0a0fba05e1c166fc688288fb69b | [
"BSD-2-Clause"
] | 7 | 2017-02-19T16:22:16.000Z | 2021-03-02T05:47:39.000Z | src/streams/private/devices/stdio_device.cpp | aeon-engine/libaeon | e42b39e621dcd0a0fba05e1c166fc688288fb69b | [
"BSD-2-Clause"
] | 61 | 2017-05-29T06:11:17.000Z | 2021-03-28T21:51:44.000Z | src/streams/private/devices/stdio_device.cpp | aeon-engine/libaeon | e42b39e621dcd0a0fba05e1c166fc688288fb69b | [
"BSD-2-Clause"
] | 2 | 2017-05-28T17:17:40.000Z | 2017-07-14T21:45:16.000Z | // Distributed under the BSD 2-Clause License - Copyright 2012-2021 Robin Degen
#include <aeon/streams/devices/stdio_device.h>
#if (AEON_PLATFORM_OS_WINDOWS)
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#else
#include <aeon/common/term_colors.h>
#include <iostream>
#endif
namespace aeon::streams
{
stdio_device:... | 28.696429 | 120 | 0.630056 | aeon-engine |
91f51b2d5e0eb6a4fca796f82094bb1f6b73fd65 | 1,002 | cpp | C++ | third-party/Empirical/tests/config/config.cpp | koellingh/empirical-p53-simulator | aa6232f661e8fc65852ab6d3e809339557af521b | [
"MIT"
] | null | null | null | third-party/Empirical/tests/config/config.cpp | koellingh/empirical-p53-simulator | aa6232f661e8fc65852ab6d3e809339557af521b | [
"MIT"
] | null | null | null | third-party/Empirical/tests/config/config.cpp | koellingh/empirical-p53-simulator | aa6232f661e8fc65852ab6d3e809339557af521b | [
"MIT"
] | null | null | null | // This file is part of Empirical, https://github.com/mercere99/Empirical/, and is
// Copyright (C) Michigan State University, 2015. It is licensed
// under the MIT Software license; see doc/LICENSE
#define CATCH_CONFIG_MAIN
#include "third-party/Catch/single_include/catch2/catch.hpp"
#include <iostream>
#include <ma... | 24.439024 | 82 | 0.692615 | koellingh |
6204d574270f31e11ac5ed083e01251de2074cc2 | 11,647 | cpp | C++ | napi/interop.cpp | graeme-hill/snakebot | 21059e4b5e3153ada5e74ba2e1331c10b5142b2f | [
"MIT",
"Unlicense"
] | 8 | 2018-06-26T05:42:17.000Z | 2021-10-20T23:19:20.000Z | napi/interop.cpp | graeme-hill/snakebot | 21059e4b5e3153ada5e74ba2e1331c10b5142b2f | [
"MIT",
"Unlicense"
] | null | null | null | napi/interop.cpp | graeme-hill/snakebot | 21059e4b5e3153ada5e74ba2e1331c10b5142b2f | [
"MIT",
"Unlicense"
] | 5 | 2019-06-01T15:34:07.000Z | 2022-02-12T06:10:16.000Z | #include "interop.hpp"
#include <array>
#include <iostream>
napi_value Interop::_assertEqualFn;
napi_value Interop::_parseWorldFn;
napi_env Interop::_env;
void Interop::setCallbacks(napi_env env, napi_value assertEqualFn, napi_value parseWorldFn)
{
_env = env;
_assertEqualFn = assertEqualFn;
_parseWorldFn = parseW... | 31.909589 | 124 | 0.647034 | graeme-hill |
620624a0518492d1edd56b4a13bc5d0672a7ab59 | 250 | cc | C++ | BOJ/2193.cc | Yaminyam/Algorithm | fe49b37b4b310f03273864bcd193fe88139f1c01 | [
"MIT"
] | 1 | 2019-05-18T00:02:12.000Z | 2019-05-18T00:02:12.000Z | BOJ/2193.cc | siontama/Algorithm | bb419e0d4dd09682bd4542f90038b492ee232bd2 | [
"MIT"
] | null | null | null | BOJ/2193.cc | siontama/Algorithm | bb419e0d4dd09682bd4542f90038b492ee232bd2 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
long long d[91];
int main() {
int n;
scanf("%d", &n);
d[0] = 0;
d[1] = 1;
for (int i = 2; i <= n; i++)
{
d[i] = d[i - 1] + d[i - 2];
}
cout << d[n] << endl;
} | 13.888889 | 29 | 0.5 | Yaminyam |
6206432efb51bca78fde2fd3550a3fb841b1c105 | 95 | cpp | C++ | Projetos/AulaPratica01/main.cpp | chaua/programacao-avancada | 4f580006d6e7e79e1bb6b32a62702eda3daa5874 | [
"MIT"
] | 15 | 2018-04-05T00:15:01.000Z | 2022-03-26T00:08:32.000Z | Projetos/AulaPratica01/main.cpp | chaua/programacao-avancada | 4f580006d6e7e79e1bb6b32a62702eda3daa5874 | [
"MIT"
] | null | null | null | Projetos/AulaPratica01/main.cpp | chaua/programacao-avancada | 4f580006d6e7e79e1bb6b32a62702eda3daa5874 | [
"MIT"
] | 7 | 2018-03-23T00:11:56.000Z | 2020-05-05T02:55:44.000Z | #include "jogodavida.h"
int main() {
JogoDaVida jogo;
jogo.executa();
return 0;
} | 11.875 | 23 | 0.6 | chaua |
6211978e6f782b97ddb0e51bbc932c44ef2f0495 | 2,111 | hpp | C++ | test_runner/random_test_runner/include/random_test_runner/randomizers.hpp | WJaworskiRobotec/scenario_simulator_v2 | c23497ac8716dcefef20d4b5a4ff1185e01f48e6 | [
"Apache-2.0"
] | 45 | 2021-04-12T22:43:25.000Z | 2022-02-27T23:57:53.000Z | test_runner/random_test_runner/include/random_test_runner/randomizers.hpp | WJaworskiRobotec/scenario_simulator_v2 | c23497ac8716dcefef20d4b5a4ff1185e01f48e6 | [
"Apache-2.0"
] | 140 | 2021-04-13T04:28:19.000Z | 2022-03-30T12:44:32.000Z | test_runner/random_test_runner/include/random_test_runner/randomizers.hpp | WJaworskiRobotec/scenario_simulator_v2 | c23497ac8716dcefef20d4b5a4ff1185e01f48e6 | [
"Apache-2.0"
] | 13 | 2021-05-22T02:24:49.000Z | 2022-03-25T05:16:31.000Z | // Copyright 2015-2021 Tier IV, Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by app... | 32.476923 | 76 | 0.76883 | WJaworskiRobotec |
6211aefd57369d0626ed79395f8dffbb63712ad8 | 3,903 | cpp | C++ | service/sys_fstatfs.cpp | zukisoft/vm | 8da577329a295449ed1517bbf27cb489531b18ac | [
"MIT"
] | 2 | 2017-02-02T13:32:14.000Z | 2017-08-20T07:58:49.000Z | service/sys_fstatfs.cpp | zukisoft/vm | 8da577329a295449ed1517bbf27cb489531b18ac | [
"MIT"
] | null | null | null | service/sys_fstatfs.cpp | zukisoft/vm | 8da577329a295449ed1517bbf27cb489531b18ac | [
"MIT"
] | 2 | 2017-03-09T02:41:25.000Z | 2019-07-10T03:22:23.000Z | //-----------------------------------------------------------------------------
// Copyright (c) 2016 Michael G. Brehm
//
// 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 restricti... | 37.893204 | 103 | 0.67999 | zukisoft |
6216ce5a7d94ad0d4afa5bf9dbe6630b93e180ae | 2,134 | cpp | C++ | ds/abstract_factory/src/tests/test_abstract_factory.cpp | JekasObps/obps-data-structures | b0a3f5dabd354e1e80f387f7e12e3327bddc49a7 | [
"MIT"
] | null | null | null | ds/abstract_factory/src/tests/test_abstract_factory.cpp | JekasObps/obps-data-structures | b0a3f5dabd354e1e80f387f7e12e3327bddc49a7 | [
"MIT"
] | null | null | null | ds/abstract_factory/src/tests/test_abstract_factory.cpp | JekasObps/obps-data-structures | b0a3f5dabd354e1e80f387f7e12e3327bddc49a7 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <cstring>
#include <typeindex>
#include "abstract_factory.hpp"
using namespace obps;
class AbstractFactoryTest : public testing::Test
{
public:
////////////
class Base
{
public:
Base(const char * name) : m_name(name) {}
virtual ~Base() {};
virtu... | 21.128713 | 85 | 0.590909 | JekasObps |
6217822bcbf3563172366a063da3efb5a53575cf | 1,401 | cc | C++ | src/xenia/cpu/x64/x64_backend.cc | espes/xenia | 388c622ecd68947cd718309f62f8bde017fa1ab0 | [
"BSD-3-Clause"
] | 1 | 2018-12-07T12:09:33.000Z | 2018-12-07T12:09:33.000Z | src/xenia/cpu/x64/x64_backend.cc | espes/xenia | 388c622ecd68947cd718309f62f8bde017fa1ab0 | [
"BSD-3-Clause"
] | null | null | null | src/xenia/cpu/x64/x64_backend.cc | espes/xenia | 388c622ecd68947cd718309f62f8bde017fa1ab0 | [
"BSD-3-Clause"
] | null | null | null | /**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2013 Ben Vanik. All rights reserved. ... | 24.155172 | 79 | 0.558173 | espes |
621a3972d9751101b0258fd5aa609bccb56e3e5f | 3,176 | hpp | C++ | Axis.SystemBase/services/messaging/Metadata/Metadatum.hpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | 2 | 2021-07-23T08:49:54.000Z | 2021-07-29T22:07:30.000Z | Axis.SystemBase/services/messaging/Metadata/Metadatum.hpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | Axis.SystemBase/services/messaging/Metadata/Metadatum.hpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | #pragma once
#include "foundation/Axis.SystemBase.hpp"
#include "foundation/Assertion/Ascertainable.hpp"
#include "foundation/collections/Collectible.hpp"
namespace axis
{
namespace services
{
namespace messaging
{
namespace metadata
{
/******************************************************************... | 37.809524 | 141 | 0.379408 | renato-yuzup |
622023181174459673257f4a021ce7bad5dcf419 | 896 | cpp | C++ | src/BasicStructs.cpp | hamlyn-centre/daVinciToolTrack | 01f1a17abbe2859b70e323780ec69a112a8c7d7c | [
"BSD-3-Clause"
] | 2 | 2017-08-25T14:11:18.000Z | 2021-09-07T11:47:34.000Z | src/BasicStructs.cpp | magnumye/daVinciToolTrack | 01f1a17abbe2859b70e323780ec69a112a8c7d7c | [
"BSD-3-Clause"
] | null | null | null | src/BasicStructs.cpp | magnumye/daVinciToolTrack | 01f1a17abbe2859b70e323780ec69a112a8c7d7c | [
"BSD-3-Clause"
] | 6 | 2017-08-16T16:19:08.000Z | 2020-08-05T06:13:20.000Z | #include "BasicStructs.h"
void Feature::read(const cv::FileNode& fn)
{
cv::FileNodeIterator fni = fn.begin();
fni >> x >> y >> label;
}
void Feature::write(cv::FileStorage& fs) const
{
fs << "[:" << x << y << label << "]";
}
void Template::read(const cv::FileNode& fn)
{
width = fn["width"];
height = fn["he... | 20.837209 | 76 | 0.584821 | hamlyn-centre |
6220401b13d39948ac0cc114e654d187b3a22ee9 | 3,214 | hpp | C++ | src/PluginVis3D/Helper/IsosurfaceMouseOperation.hpp | voxie-viewer/voxie | d2b5e6760519782e9ef2e51f5322a3baa0cb1198 | [
"MIT"
] | 4 | 2016-06-03T18:41:43.000Z | 2020-04-17T20:28:58.000Z | src/PluginVis3D/Helper/IsosurfaceMouseOperation.hpp | voxie-viewer/voxie | d2b5e6760519782e9ef2e51f5322a3baa0cb1198 | [
"MIT"
] | null | null | null | src/PluginVis3D/Helper/IsosurfaceMouseOperation.hpp | voxie-viewer/voxie | d2b5e6760519782e9ef2e51f5322a3baa0cb1198 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2014-2022 The Voxie Authors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, mer... | 36.522727 | 80 | 0.74051 | voxie-viewer |
6225e556536bcc4838f0cb565c7b4d406c39c533 | 1,439 | hpp | C++ | include/gras/detail/chrono.hpp | guruofquality/gras | a93956bfc9884f9a1c53a16e12cd7e7cd86584c4 | [
"BSL-1.0"
] | 9 | 2015-07-24T15:10:14.000Z | 2021-11-08T13:18:20.000Z | include/gras/detail/chrono.hpp | guruofquality/gras | a93956bfc9884f9a1c53a16e12cd7e7cd86584c4 | [
"BSL-1.0"
] | 3 | 2015-02-02T01:57:26.000Z | 2018-07-20T04:52:09.000Z | include/gras/detail/chrono.hpp | guruofquality/gras | a93956bfc9884f9a1c53a16e12cd7e7cd86584c4 | [
"BSL-1.0"
] | 4 | 2015-01-12T23:12:49.000Z | 2021-09-23T18:10:58.000Z | // Copyright (C) by Josh Blum. See LICENSE.txt for licensing information.
#ifndef INCLUDED_GRAS_DETAIL_CHRONO_HPP
#define INCLUDED_GRAS_DETAIL_CHRONO_HPP
#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
#include <windows.h>
namespace gras
{
GRAS_FORCE_INLINE time_ticks_t time_now(void)
{
... | 19.186667 | 76 | 0.658096 | guruofquality |
62284547d624159669ef0382df2daec5bcfcb218 | 4,410 | cpp | C++ | assign7_s_f88/CharStackDriver.cpp | Shaneace89/CS2308-Assign7 | 7ab09120f0c45c11526a12cc7600d897fdeb2e4d | [
"MIT"
] | null | null | null | assign7_s_f88/CharStackDriver.cpp | Shaneace89/CS2308-Assign7 | 7ab09120f0c45c11526a12cc7600d897fdeb2e4d | [
"MIT"
] | null | null | null | assign7_s_f88/CharStackDriver.cpp | Shaneace89/CS2308-Assign7 | 7ab09120f0c45c11526a12cc7600d897fdeb2e4d | [
"MIT"
] | null | null | null | /*File Name: CharStackDriver.cpp
Author: Shane Fleming
Date: 04/21/16
Assignment Number: 7
CS 2308.257 Spring 2016
Instructor: Jill Seaman
Match Brackets using a Stack, */
#include "CharStack.h"
#include <iostream>
#include <fstream>
/******************************************************************
missi... | 27.911392 | 80 | 0.442857 | Shaneace89 |
622b637537d3e78df21b66be105e5931d2afd51e | 920 | cpp | C++ | 12.2. Pointers/main.cpp | joaovmalheiros/Exercicios-Para-Revisao-Cplusplus | b9d523f863fd112b2b7fe72142a7128d5d95badc | [
"MIT"
] | null | null | null | 12.2. Pointers/main.cpp | joaovmalheiros/Exercicios-Para-Revisao-Cplusplus | b9d523f863fd112b2b7fe72142a7128d5d95badc | [
"MIT"
] | null | null | null | 12.2. Pointers/main.cpp | joaovmalheiros/Exercicios-Para-Revisao-Cplusplus | b9d523f863fd112b2b7fe72142a7128d5d95badc | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
//Declaring Pointers
//Once dereferenced, the type needs to be known. And for that, the declaration of a pointer needs to include the data type
//the pointer is going to point to.
//This is not the type of the pointer itself, but the type of the data the pointer points to.
in... | 27.878788 | 122 | 0.680435 | joaovmalheiros |
622cb856a97aebdb5d20ccaa2a5c243e797c7e02 | 5,643 | cpp | C++ | src/archive/dlgoptions.cpp | KeyWorksRW/ttBld | d976bc38a1e657a5d023ef772da96cb1c0598b10 | [
"Apache-2.0",
"MIT"
] | null | null | null | src/archive/dlgoptions.cpp | KeyWorksRW/ttBld | d976bc38a1e657a5d023ef772da96cb1c0598b10 | [
"Apache-2.0",
"MIT"
] | 56 | 2020-06-05T13:27:37.000Z | 2021-10-31T18:05:44.000Z | src/archive/dlgoptions.cpp | KeyWorksRW/ttBld | d976bc38a1e657a5d023ef772da96cb1c0598b10 | [
"Apache-2.0",
"MIT"
] | null | null | null | /////////////////////////////////////////////////////////////////////////////
// Name: CTabOptions
// Purpose: IDDLG_OPTIONS dialog handler
// Author: Ralph Walden
// Copyright: Copyright (c) 2019-2020 KeyWorks Software (Ralph Walden)
// License: Apache License (see ../LICENSE)
/////////////////////////////... | 26.871429 | 93 | 0.57753 | KeyWorksRW |
622ed93d05ed1bf8bd43f94ac76148df1a1b4439 | 9,173 | cpp | C++ | examples/yolo/yolov3_detect.cpp | Maharshi-Aupera/Caffe1 | 6cab86c0ffe0a476cf82db5d7c2e3ec910b0677c | [
"BSD-2-Clause"
] | null | null | null | examples/yolo/yolov3_detect.cpp | Maharshi-Aupera/Caffe1 | 6cab86c0ffe0a476cf82db5d7c2e3ec910b0677c | [
"BSD-2-Clause"
] | 1 | 2020-02-18T18:09:26.000Z | 2020-02-18T18:09:26.000Z | examples/yolo/yolov3_detect.cpp | Maharshi-Aupera/Caffe1 | 6cab86c0ffe0a476cf82db5d7c2e3ec910b0677c | [
"BSD-2-Clause"
] | null | null | null | // This is a demo code for using a Yolo model to do detection.
// The code is modified from examples/cpp_classification/classification.cpp.
// Usage:
// ssd_detect [FLAGS] model_file weights_file list_file
//
// where model_file is the .prototxt file defining the network architecture, and
// weights_file is the .caf... | 35.280769 | 140 | 0.626186 | Maharshi-Aupera |
623032b862653e2011fac55af6764d0e288239b2 | 1,066 | cpp | C++ | aws-cpp-sdk-mwaa/source/model/CreateCliTokenResult.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-05T18:20:03.000Z | 2022-01-05T18:20:03.000Z | aws-cpp-sdk-mwaa/source/model/CreateCliTokenResult.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-mwaa/source/model/CreateCliTokenResult.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/mwaa/model/CreateCliTokenResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core... | 22.680851 | 108 | 0.754221 | perfectrecall |
9a902511b3660fb57f4934a67f6a9507a3e0401d | 1,241 | cc | C++ | 0394_Decode_String/0394.cc | LuciusKyle/LeetCode | 66c9090e5244b10eca0be50398764da2b4b48a6c | [
"Apache-2.0"
] | null | null | null | 0394_Decode_String/0394.cc | LuciusKyle/LeetCode | 66c9090e5244b10eca0be50398764da2b4b48a6c | [
"Apache-2.0"
] | null | null | null | 0394_Decode_String/0394.cc | LuciusKyle/LeetCode | 66c9090e5244b10eca0be50398764da2b4b48a6c | [
"Apache-2.0"
] | null | null | null |
#include <assert.h>
#include <string>
using std::string;
// s = "3[a]2[bc]", return "aaabcbc".
// s = "3[a2[c]]", return "accaccacc".
// s = "2[abc]3[cd]ef", return "abcabccdcdcdef".
class Solution {
public:
string decodeString(const string s) {
string rtn;
for(size_t i = 0; i < s.size(); ++i) {
if ... | 25.326531 | 68 | 0.563255 | LuciusKyle |
9a906d0a769b10ad3a648f3144d59a1d7d10d1aa | 7,299 | hpp | C++ | tests/math_test.hpp | jimmiebergmann/Guise | b6b16de961f4299e2384980db11a0a811f01eaf4 | [
"MIT"
] | 1 | 2020-09-06T10:35:58.000Z | 2020-09-06T10:35:58.000Z | tests/math_test.hpp | jimmiebergmann/Guise | b6b16de961f4299e2384980db11a0a811f01eaf4 | [
"MIT"
] | null | null | null | tests/math_test.hpp | jimmiebergmann/Guise | b6b16de961f4299e2384980db11a0a811f01eaf4 | [
"MIT"
] | null | null | null | #include "test.hpp"
#include "guise/math/vector.hpp"
#include "guise/math/matrix.hpp"
#include "guise/math/bounds.hpp"
using namespace Guise;
/*TEST(Vector, Vector2)
{
}
TEST(Matrix, Matrix44)
{
}*/
TEST(Bounds, Constructor)
{
{
{
Bounds2f bounds1 = { { 1.0f, 2.0f }, { 3.0f, 4.0f } };
... | 32.584821 | 92 | 0.490204 | jimmiebergmann |
9a942591d482643899230e43553001ffe9efc236 | 1,281 | hpp | C++ | include/burndown/string_segment.hpp | winsider/burndown | fe1242ead437002184d4062797a8c0387cdd7fcc | [
"MIT"
] | null | null | null | include/burndown/string_segment.hpp | winsider/burndown | fe1242ead437002184d4062797a8c0387cdd7fcc | [
"MIT"
] | null | null | null | include/burndown/string_segment.hpp | winsider/burndown | fe1242ead437002184d4062797a8c0387cdd7fcc | [
"MIT"
] | null | null | null | #pragma once
#include <iostream>
#include <string.h>
namespace ltc
{
namespace bd
{
class string_segment
{
public:
string_segment()
: m_ptr(nullptr), m_len(0)
{}
string_segment(const char * ptr, size_t len)
: m_ptr(ptr), m_len... | 25.62 | 97 | 0.473068 | winsider |
9a94fdb9845f11397b1ed29ab3d0d6d0d9dcd9ef | 17,516 | cpp | C++ | src/elix_html.cpp | lukesalisbury/elix | 171aedf7c925513408b785dde24c58bcee74acf3 | [
"Zlib"
] | 3 | 2015-04-14T13:14:34.000Z | 2020-01-31T04:02:35.000Z | src/elix_html.cpp | lukesalisbury/elix | 171aedf7c925513408b785dde24c58bcee74acf3 | [
"Zlib"
] | null | null | null | src/elix_html.cpp | lukesalisbury/elix | 171aedf7c925513408b785dde24c58bcee74acf3 | [
"Zlib"
] | null | null | null | /***********************************************************************************************************************
Copyright (c) Luke Salisbury
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held
liable for any damages arising from the use of this so... | 30.946996 | 216 | 0.611041 | lukesalisbury |
9a97c31ebeefff9596dded76f1157d2a87666f0a | 2,457 | cpp | C++ | OpenIRT/src/TextureManager.cpp | sglab/OpenIRT | 1a1522ed82f6bb26f1d40dc93024487869045ab2 | [
"BSD-2-Clause"
] | 2 | 2015-09-28T12:59:25.000Z | 2020-03-28T22:28:03.000Z | OpenIRT/src/TextureManager.cpp | sglab/OpenIRT | 1a1522ed82f6bb26f1d40dc93024487869045ab2 | [
"BSD-2-Clause"
] | 2 | 2018-10-26T12:17:53.000Z | 2018-11-09T07:04:17.000Z | OpenIRT/src/TextureManager.cpp | sglab/OpenIRT | 1a1522ed82f6bb26f1d40dc93024487869045ab2 | [
"BSD-2-Clause"
] | null | null | null | #include "defines.h"
#include "BitmapTexture.h"
#include "TextureManager.h"
using namespace irt;
TextureManager::TextureManager() {
lastError[0] = 0;
}
TextureManager::~TextureManager() {
clear();
}
BitmapTexture* TextureManager::loadTexture(const char *name) {
BitmapTexture *texPtr;
if (name == NULL)
return ... | 21.181034 | 111 | 0.680912 | sglab |
9aabbffe479761320b05bad29162810f856aff39 | 8,067 | cpp | C++ | qpu-lib/registers.cpp | Phantomical/rpi-qpulib | 71df39d91220ab96ef4f57ec79d90eca689efa11 | [
"MIT"
] | null | null | null | qpu-lib/registers.cpp | Phantomical/rpi-qpulib | 71df39d91220ab96ef4f57ec79d90eca689efa11 | [
"MIT"
] | null | null | null | qpu-lib/registers.cpp | Phantomical/rpi-qpulib | 71df39d91220ab96ef4f57ec79d90eca689efa11 | [
"MIT"
] | null | null | null |
#include "registers.h"
#include "mailbox.h"
#ifdef HAVE_DLFCN_H
#include <dlfcn.h>
#endif
namespace qpu
{
namespace reg
{
void* base_addr = nullptr;
uint32_t peri_addr = 0;
uint32_t peri_size = 0;
#ifdef HAVE_DLSYM_H
volatile void* map_base_addr()
{
if (!!base_addr)
return bas... | 34.474359 | 101 | 0.691583 | Phantomical |
9aabc59a0c3dded4a3944cd5b73d638f5de794de | 129 | cpp | C++ | Flick/src/Flick/Renderer/RendererAPI.cpp | firo1738/FLICK | a6ccb0f23c212d0f1b97f71520beb3a89be57f2d | [
"Apache-2.0"
] | null | null | null | Flick/src/Flick/Renderer/RendererAPI.cpp | firo1738/FLICK | a6ccb0f23c212d0f1b97f71520beb3a89be57f2d | [
"Apache-2.0"
] | null | null | null | Flick/src/Flick/Renderer/RendererAPI.cpp | firo1738/FLICK | a6ccb0f23c212d0f1b97f71520beb3a89be57f2d | [
"Apache-2.0"
] | null | null | null | #include "fipch.h"
#include "RendererAPI.h"
namespace Flick
{
RendererAPI::API RendererAPI::s_API = RendererAPI::API::OpenGL;
} | 18.428571 | 64 | 0.744186 | firo1738 |
9aac65032fe00285043fe9d66d10eeca5ecaa8f0 | 466 | cpp | C++ | 30DaysLeetCodeChallenge/April 16th 2020/Valid Parenthesis String.cpp | SAITARUN55/100DaysofCodeinC- | d52e683f52abc9bc633af7e15bb970882efc3788 | [
"MIT"
] | 4 | 2020-05-18T05:12:36.000Z | 2020-08-28T07:16:41.000Z | 30DaysLeetCodeChallenge/April 16th 2020/Valid Parenthesis String.cpp | SAITARUN55/100DaysofCodeinC- | d52e683f52abc9bc633af7e15bb970882efc3788 | [
"MIT"
] | null | null | null | 30DaysLeetCodeChallenge/April 16th 2020/Valid Parenthesis String.cpp | SAITARUN55/100DaysofCodeinC- | d52e683f52abc9bc633af7e15bb970882efc3788 | [
"MIT"
] | 5 | 2020-05-01T04:56:26.000Z | 2022-02-02T15:37:53.000Z | class Solution {
public:
bool checkValidString(string s) {
int bal = 0;
for( int i=0; i < s.length(); i++ ) {
if( s[i] == '(' || s[i] == '*' ) bal++;
else bal--;
if( bal < 0 ) return false;
}
if( bal == 0 ) return true;
bal = 0;
for( int i=s.length()-1; i >= 0; i... | 22.190476 | 47 | 0.39485 | SAITARUN55 |
9ab2161bf130cd5ff2dee29cab0385b11a6f58a2 | 739 | hpp | C++ | src/lepp3/CalibrationAggregator.hpp | am-lola/lepp3 | 7f92ce61bccad984e18ce86da0d8a1b9c48feb65 | [
"MIT"
] | 6 | 2017-01-16T10:41:56.000Z | 2020-10-09T09:13:30.000Z | src/lepp3/CalibrationAggregator.hpp | am-lola/lepp3 | 7f92ce61bccad984e18ce86da0d8a1b9c48feb65 | [
"MIT"
] | null | null | null | src/lepp3/CalibrationAggregator.hpp | am-lola/lepp3 | 7f92ce61bccad984e18ce86da0d8a1b9c48feb65 | [
"MIT"
] | 4 | 2015-08-07T13:07:32.000Z | 2021-08-03T03:18:33.000Z | #ifndef LEPP3_CALIBRATION_AGGREGATOR_H__
#define LEPP3_CALIBRATION_AGGREGATOR_H__
namespace lepp
{
/**
* An interface that all classes that wish to be notified of the largest plane
* detected by a CameraCalibrator need to implement.
*
* The member function ``update`` accepts a new list of obstacles
* found by th... | 25.482759 | 78 | 0.746955 | am-lola |
9ab21b9d83d8490d15e165b531fc14fa88e90668 | 1,640 | cpp | C++ | game/prefabs/AgrabahMarketStairsOnePrefab.cpp | Khuongnb1997/game-aladdin | 74b13ffcd623de0d6f799b0669c7e8917eef3b14 | [
"MIT"
] | 2 | 2017-11-08T16:27:25.000Z | 2018-08-10T09:08:35.000Z | game/prefabs/AgrabahMarketStairsOnePrefab.cpp | Khuongnb1997/game-aladdin | 74b13ffcd623de0d6f799b0669c7e8917eef3b14 | [
"MIT"
] | null | null | null | game/prefabs/AgrabahMarketStairsOnePrefab.cpp | Khuongnb1997/game-aladdin | 74b13ffcd623de0d6f799b0669c7e8917eef3b14 | [
"MIT"
] | 4 | 2017-11-08T16:25:30.000Z | 2021-05-23T06:14:59.000Z | #include "AgrabahMarketStairsOnePrefab.h"
#include "../Define.h"
USING_NAMESPACE_ALA;
ALA_CLASS_SOURCE_1(AgrabahMarketStairsOnePrefab, ala::PrefabV2)
void AgrabahMarketStairsOnePrefab::doInstantiate( ala::GameObject* object, std::istringstream& argsStream ) const {
// constants
vector<Vec2> position{
Vec2( ... | 27.79661 | 115 | 0.637805 | Khuongnb1997 |
9ab56911d0bf4101f70e5f4fc66d9e2e89cee2bb | 357 | hpp | C++ | src/Chat.hpp | Loonride/AltCraft | 96cec9fe0e5ffcdca9536e40b56509582bedd0df | [
"Apache-2.0"
] | null | null | null | src/Chat.hpp | Loonride/AltCraft | 96cec9fe0e5ffcdca9536e40b56509582bedd0df | [
"Apache-2.0"
] | null | null | null | src/Chat.hpp | Loonride/AltCraft | 96cec9fe0e5ffcdca9536e40b56509582bedd0df | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <vector>
#include <string>
struct TextModifier {
size_t offset;
size_t length;
enum {
Italic,
Bold,
Underline,
} type;
};
struct Chat {
std::vector<TextModifier> modifiers;
std::string text;
Chat(const std::string &str);
Chat() = default... | 14.28 | 40 | 0.588235 | Loonride |
9ab64c9ec619cb9f5c4a5e35694beeae4871bb77 | 18,263 | cpp | C++ | src/command/geo.cpp | Rafiot/ardb | b5aeeea211c8a1bbc7baf0b9f78005836bcbc0b2 | [
"BSD-3-Clause"
] | 1 | 2021-06-05T16:00:52.000Z | 2021-06-05T16:00:52.000Z | src/command/geo.cpp | byzhang/ardb | b5aeeea211c8a1bbc7baf0b9f78005836bcbc0b2 | [
"BSD-3-Clause"
] | null | null | null | src/command/geo.cpp | byzhang/ardb | b5aeeea211c8a1bbc7baf0b9f78005836bcbc0b2 | [
"BSD-3-Clause"
] | null | null | null | /*
*Copyright (c) 2013-2014, yinqiwen <yinqiwen@gmail.com>
*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 source code must retain the above copyright notice,
* t... | 38.287212 | 120 | 0.48935 | Rafiot |
9ab69eeff18edcbbda56e683fdcd7f677b388afc | 22,973 | cpp | C++ | OpenTESArena/src/Interface/AutomapPanel.cpp | faha223/OpenTESArena | ae8f704bd4d10a478aef890b26903bee1f5dd01f | [
"MIT"
] | null | null | null | OpenTESArena/src/Interface/AutomapPanel.cpp | faha223/OpenTESArena | ae8f704bd4d10a478aef890b26903bee1f5dd01f | [
"MIT"
] | null | null | null | OpenTESArena/src/Interface/AutomapPanel.cpp | faha223/OpenTESArena | ae8f704bd4d10a478aef890b26903bee1f5dd01f | [
"MIT"
] | null | null | null | #include <cmath>
#include <unordered_map>
#include <vector>
#include "SDL.h"
#include "AutomapPanel.h"
#include "CursorAlignment.h"
#include "GameWorldPanel.h"
#include "RichTextString.h"
#include "TextBox.h"
#include "../Game/CardinalDirection.h"
#include "../Game/CardinalDirectionName.h"
#include "../Game/Game.h"
#... | 32.17507 | 109 | 0.707744 | faha223 |
9ab75fc7b85c4cd78d5146b912b7ed0318a31e1c | 2,169 | cpp | C++ | try_analyze.cpp | Fisher-Wang/GraphPackaging | 6dd42f65a7d41cc1c5b679e4b41b0a3385e2c7fd | [
"MIT"
] | 1 | 2022-03-21T05:28:49.000Z | 2022-03-21T05:28:49.000Z | try_analyze.cpp | Fisher-Wang/GraphPackaging | 6dd42f65a7d41cc1c5b679e4b41b0a3385e2c7fd | [
"MIT"
] | null | null | null | try_analyze.cpp | Fisher-Wang/GraphPackaging | 6dd42f65a7d41cc1c5b679e4b41b0a3385e2c7fd | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <vector>
#include <algorithm>
#include <queue>
#include <cmath>
#include <list>
#include <climits>
#include <numeric>
#include <bitset>
#include "graph.h"
using namespace std;
const double INF_DOUBLE = 1e20;
double loss_prob = 0.2;
vector<int> edges[NODE_NUM_MAX];
int we... | 24.370787 | 156 | 0.608575 | Fisher-Wang |
9ab85454823f9890ad35b409437fdf02ca489f28 | 1,279 | cpp | C++ | c++/leetcode/0670-Maximum_Swap-M.cpp | levendlee/leetcode | 35e274cb4046f6ec7112cd56babd8fb7d437b844 | [
"Apache-2.0"
] | 1 | 2020-03-02T10:56:22.000Z | 2020-03-02T10:56:22.000Z | c++/leetcode/0670-Maximum_Swap-M.cpp | levendlee/leetcode | 35e274cb4046f6ec7112cd56babd8fb7d437b844 | [
"Apache-2.0"
] | null | null | null | c++/leetcode/0670-Maximum_Swap-M.cpp | levendlee/leetcode | 35e274cb4046f6ec7112cd56babd8fb7d437b844 | [
"Apache-2.0"
] | null | null | null | // 670 Maximum Swap
// https://leetcode.com/problems/maximum-swap
// version: 1; create time: 2020-02-08 14:50:16;
class Solution {
public:
int maximumSwap(int num) {
auto str = to_string(num);
/*
auto max_str = str;
const int n = str.size();
for (int i = n - 2; i >= 0; --i... | 24.596154 | 60 | 0.362783 | levendlee |
9abd5e0cd18a80010c70fd36834877402d03dd63 | 2,262 | cpp | C++ | Graphs 1/Code_All_Connected_Components.cpp | vineeth2281/Coding-Ninjas-Competitive-programming | 68bd2c7caa7442ef064189d00f5116d9843a2d66 | [
"MIT"
] | 1 | 2020-09-16T08:43:43.000Z | 2020-09-16T08:43:43.000Z | Graphs 1/Code_All_Connected_Components.cpp | vineeth2281/Coding-Ninjas-Competitive-programming | 68bd2c7caa7442ef064189d00f5116d9843a2d66 | [
"MIT"
] | null | null | null | Graphs 1/Code_All_Connected_Components.cpp | vineeth2281/Coding-Ninjas-Competitive-programming | 68bd2c7caa7442ef064189d00f5116d9843a2d66 | [
"MIT"
] | null | null | null | /* Given an undirected graph G(V,E), find and print all the connected components of the given graph G.
V is the number of vertices present in graph G and vertices are numbered from 0 to V-1.
E is the number of edges present in graph G.
You need to take input in main and create a function which should return all the con... | 20.752294 | 164 | 0.616269 | vineeth2281 |
9ac22c1d82df34fbe76d8c9b5c7e6d0a39b88c43 | 7,044 | cpp | C++ | KinectExplorer-D2D/NuiTiltAngleViewer.cpp | MxWang6/IET_GroupProject_YogaApp | a3f41ecae79a6fda787324dd00831ab20d1879fd | [
"MIT"
] | null | null | null | KinectExplorer-D2D/NuiTiltAngleViewer.cpp | MxWang6/IET_GroupProject_YogaApp | a3f41ecae79a6fda787324dd00831ab20d1879fd | [
"MIT"
] | null | null | null | KinectExplorer-D2D/NuiTiltAngleViewer.cpp | MxWang6/IET_GroupProject_YogaApp | a3f41ecae79a6fda787324dd00831ab20d1879fd | [
"MIT"
] | 1 | 2019-03-18T07:52:11.000Z | 2019-03-18T07:52:11.000Z | //------------------------------------------------------------------------------
// <copyright file="NuiTiltAngleViewer.cpp" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
#include "... | 30.23176 | 195 | 0.657297 | MxWang6 |
9ad25ca9bb19bd0d0f5d61cb24c5ef06b606366d | 311 | cpp | C++ | 268-missing-number/268-missing-number.cpp | ammar-sayed-taha/problem-solving | 9677a738c0cc30078f6450f40fcc26ba2a379a8b | [
"MIT"
] | null | null | null | 268-missing-number/268-missing-number.cpp | ammar-sayed-taha/problem-solving | 9677a738c0cc30078f6450f40fcc26ba2a379a8b | [
"MIT"
] | null | null | null | 268-missing-number/268-missing-number.cpp | ammar-sayed-taha/problem-solving | 9677a738c0cc30078f6450f40fcc26ba2a379a8b | [
"MIT"
] | null | null | null | class Solution {
public:
int missingNumber(vector<int>& nums) {
int counter = 0;
sort(nums.begin(), nums.end());
for(int& num: nums)
if(counter != num)
return counter;
else counter++;
return counter;
}
}; | 20.733333 | 42 | 0.453376 | ammar-sayed-taha |
9ae029eef9cfe5d4b234402a65f1143d743b16ea | 1,744 | hpp | C++ | Engine/BuildSystem/Target/BuildOptimization.hpp | GabyForceQ/PolluxEngine | 2dbc84ed1d434f1b6d794f775f315758f0e8cc49 | [
"BSD-3-Clause"
] | 3 | 2020-05-19T20:24:28.000Z | 2020-09-27T11:28:42.000Z | Engine/BuildSystem/Target/BuildOptimization.hpp | GabyForceQ/PolluxEngine | 2dbc84ed1d434f1b6d794f775f315758f0e8cc49 | [
"BSD-3-Clause"
] | 31 | 2020-05-27T11:01:27.000Z | 2020-08-08T15:53:23.000Z | Engine/BuildSystem/Target/BuildOptimization.hpp | GabyForceQ/PolluxEngine | 2dbc84ed1d434f1b6d794f775f315758f0e8cc49 | [
"BSD-3-Clause"
] | null | null | null | /*****************************************************************************************************************************
* Copyright 2020 Gabriel Gheorghe. All rights reserved.
* This code is licensed under the BSD 3-Clause "New" or "Revised" License
* License url: https://github.com/GabyForceQ/PolluxEngine/bl... | 34.88 | 127 | 0.693807 | GabyForceQ |
9ae0305c21e621d142d2ad27996ecd11aaec6c6a | 183 | hpp | C++ | Structural-patterns/1_Adapter/src/items/ball.hpp | PP189B/Design-patterns-practice | 3fd7f9a3fa85dcf1e48680662d9bc3ac41796b69 | [
"MIT"
] | null | null | null | Structural-patterns/1_Adapter/src/items/ball.hpp | PP189B/Design-patterns-practice | 3fd7f9a3fa85dcf1e48680662d9bc3ac41796b69 | [
"MIT"
] | null | null | null | Structural-patterns/1_Adapter/src/items/ball.hpp | PP189B/Design-patterns-practice | 3fd7f9a3fa85dcf1e48680662d9bc3ac41796b69 | [
"MIT"
] | null | null | null | #pragma once
#include "aitem.hpp"
namespace Items
{
struct Ball final : public AItem
{
uint32_t radius; //<radius in millimeters
}; //!struct Ball
} //!namespace Items | 14.076923 | 47 | 0.666667 | PP189B |
9ae0f65b7748e586eaefdc5816a47b2028255257 | 1,581 | cpp | C++ | cpp_02template_and_io/CN_05classtemplate.cpp | qianranow/cplusplus | bc17581a78c38f1735ad8108c6880b00cf2b0080 | [
"Apache-2.0"
] | null | null | null | cpp_02template_and_io/CN_05classtemplate.cpp | qianranow/cplusplus | bc17581a78c38f1735ad8108c6880b00cf2b0080 | [
"Apache-2.0"
] | null | null | null | cpp_02template_and_io/CN_05classtemplate.cpp | qianranow/cplusplus | bc17581a78c38f1735ad8108c6880b00cf2b0080 | [
"Apache-2.0"
] | null | null | null | //
// Created by qianranow on 2022/2/18.
//
#include <iostream>
#include <string>
using namespace std;
template<class NameType, class AgeType>
class Maker
{
public:
Maker(NameType name, AgeType age)
{
this->name = name;
this->age = age;
}
void printMaker()
{
cout << "Name:"... | 17.184783 | 69 | 0.570525 | qianranow |
9ae186cdbabaa79d2cc091979d72222a274a9158 | 1,701 | cpp | C++ | Fonctions/ATMapplication/ATMapplication/ATMapplication.cpp | Tonyg92x/CodeBeautyTutorial | 6fbedf0df4677199292b987ef63da15db5ad0c2c | [
"MIT"
] | 1 | 2022-03-10T03:24:24.000Z | 2022-03-10T03:24:24.000Z | Fonctions/ATMapplication/ATMapplication/ATMapplication.cpp | Tonyg92x/CodeBeautyTutorial | 6fbedf0df4677199292b987ef63da15db5ad0c2c | [
"MIT"
] | null | null | null | Fonctions/ATMapplication/ATMapplication/ATMapplication.cpp | Tonyg92x/CodeBeautyTutorial | 6fbedf0df4677199292b987ef63da15db5ad0c2c | [
"MIT"
] | 1 | 2022-03-10T03:26:14.000Z | 2022-03-10T03:26:14.000Z | // ATMapplication : Application that simulate an ATM machine.
// Author : Anthony Guay
// Date : 4/28/2021
// Credit : CodeBeaty tutorial @6:48
// https://www.youtube.com/watch?v=GQp1zzTwrIg&list=PLp1a4c4ujmk-SMeujXJcdpazIx0NAzThY&ab_channel=CodeBeauty
#include <iostream>
usi... | 29.327586 | 125 | 0.495003 | Tonyg92x |
9ae7ec8fb66106292ff6bbaffb926b7ff3086e8a | 6,248 | cpp | C++ | modules/tracktion_engine/3rd_party/airwindows/FathomFive/FathomFive.cpp | jbloit/tracktion_engine | b3fa7d6a3a404f64ae419abdf9c801d672cffb16 | [
"MIT",
"Unlicense"
] | 734 | 2018-11-16T09:39:40.000Z | 2022-03-30T16:56:14.000Z | modules/tracktion_engine/3rd_party/airwindows/FathomFive/FathomFive.cpp | jbloit/tracktion_engine | b3fa7d6a3a404f64ae419abdf9c801d672cffb16 | [
"MIT",
"Unlicense"
] | 100 | 2018-11-16T18:04:08.000Z | 2022-03-31T17:47:53.000Z | modules/tracktion_engine/3rd_party/airwindows/FathomFive/FathomFive.cpp | jbloit/tracktion_engine | b3fa7d6a3a404f64ae419abdf9c801d672cffb16 | [
"MIT",
"Unlicense"
] | 123 | 2018-11-16T15:51:50.000Z | 2022-03-29T12:21:27.000Z | /* ========================================
* FathomFive - FathomFive.h
* Copyright (c) 2016 airwindows, All rights reserved
* ======================================== */
#ifndef __FathomFive_H
#include "FathomFive.h"
#endif
AudioEffect* createEffectInstance(audioMasterCallback audioMaster) {return new FathomFiv... | 38.807453 | 104 | 0.683099 | jbloit |
9aea384e8d3dd7372226a83f30f18cbda27fac6c | 244 | cpp | C++ | judges/codeforces/exercises/brains_photos.cpp | eduardonunes2525/competitive-programming | 0f6bdc573b4d03d1ed20a2b77ec5388dca1ee47b | [
"MIT"
] | null | null | null | judges/codeforces/exercises/brains_photos.cpp | eduardonunes2525/competitive-programming | 0f6bdc573b4d03d1ed20a2b77ec5388dca1ee47b | [
"MIT"
] | 1 | 2018-10-17T11:53:02.000Z | 2018-10-17T11:54:42.000Z | judges/codeforces/exercises/brains_photos.cpp | eduardonunes2525/competitive-programming | 0f6bdc573b4d03d1ed20a2b77ec5388dca1ee47b | [
"MIT"
] | 1 | 2018-10-17T12:14:04.000Z | 2018-10-17T12:14:04.000Z | #include<bits/stdc++.h>
using namespace std;
int main(){
int n, m; cin >> n >> m;
int y = n*m;
char a;
while(y--){
cin >> a;
if(a!='W' && a!='B' && a!='G'){ cout << "#Color\n"; return 0; }
}
cout << "#Black&White\n";
return 0;
}
| 13.555556 | 65 | 0.483607 | eduardonunes2525 |
9aed3c16f21ed814e9dc00ababde8b45c72979be | 7,292 | cpp | C++ | source/particle.cpp | JROB774/santajam | 2f95ddeb99548c85d55bda04fa2e8c494796204b | [
"MIT"
] | null | null | null | source/particle.cpp | JROB774/santajam | 2f95ddeb99548c85d55bda04fa2e8c494796204b | [
"MIT"
] | null | null | null | source/particle.cpp | JROB774/santajam | 2f95ddeb99548c85d55bda04fa2e8c494796204b | [
"MIT"
] | null | null | null | GLOBAL std::map<std::string,ParticleBase> gParticles;
INTERNAL void InitParticles ()
{
gParticles.clear();
GonObject& gon = *GetAsset<AssetData>("particles");
if (gon.type != GonObject::FieldType::OBJECT)
{
LOG_ERROR(ERR_MAX, "Particle data not formatted as object!");
return;
}
... | 37.015228 | 142 | 0.56226 | JROB774 |
9af10c0ab32c6ec71935052029d7f6083d6833d8 | 5,438 | cpp | C++ | common/consumertable.cpp | kcudnik/sonic-swss-common | efd9b91068be2a34db91fa94b6c0933014cf5984 | [
"Apache-2.0"
] | null | null | null | common/consumertable.cpp | kcudnik/sonic-swss-common | efd9b91068be2a34db91fa94b6c0933014cf5984 | [
"Apache-2.0"
] | null | null | null | common/consumertable.cpp | kcudnik/sonic-swss-common | efd9b91068be2a34db91fa94b6c0933014cf5984 | [
"Apache-2.0"
] | null | null | null | #include "common/redisreply.h"
#include "common/consumertable.h"
#include "common/json.h"
#include "common/logger.h"
#include <stdio.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <iostream>
#include <system_error>
/* The database is already alive and kicking, no need for more than a seco... | 26.144231 | 107 | 0.554983 | kcudnik |
9af663c3b2265ea898fd1168e3792b99994a8d23 | 11,225 | cpp | C++ | Saturn/src/Saturn/ImGui/SceneHierarchyPanel.cpp | BEASTSM96/Saturn-Engine | a018f5602c1583ea4802154924fb0452d7582b8d | [
"MIT"
] | 17 | 2020-10-22T14:46:27.000Z | 2022-01-12T02:09:32.000Z | Saturn/src/Saturn/ImGui/SceneHierarchyPanel.cpp | BEASTSM96/Saturn-Engine | a018f5602c1583ea4802154924fb0452d7582b8d | [
"MIT"
] | null | null | null | Saturn/src/Saturn/ImGui/SceneHierarchyPanel.cpp | BEASTSM96/Saturn-Engine | a018f5602c1583ea4802154924fb0452d7582b8d | [
"MIT"
] | 2 | 2020-12-04T04:06:54.000Z | 2020-12-21T05:38:24.000Z | /********************************************************************************************
* *
* *
* ... | 30.669399 | 178 | 0.585033 | BEASTSM96 |
9afa11dfa09c7ddf88d4b4a8f1a07f091d4a627c | 3,643 | cpp | C++ | example/InstanceTrait/main.cpp | ssoft-hub/model-kit | 23a712194756978b785afd045ff7203d19d29d91 | [
"MIT"
] | null | null | null | example/InstanceTrait/main.cpp | ssoft-hub/model-kit | 23a712194756978b785afd045ff7203d19d29d91 | [
"MIT"
] | null | null | null | example/InstanceTrait/main.cpp | ssoft-hub/model-kit | 23a712194756978b785afd045ff7203d19d29d91 | [
"MIT"
] | null | null | null | #include <ModelKit/Featuring.h>
#include <iostream>
struct BaseType
{
};
struct DerivedType
: public BaseType
{
};
int main ( int /*argc*/, char ** /*argv*/ )
{
using namespace ::ScL;
::std::cout
<< "is_compatible< Instance< int >, Instance< int > >" << ::std::endl
<< true << " = "
... | 37.556701 | 90 | 0.573703 | ssoft-hub |
9afb1e894213bc41ab8304bec39cb4f622d203d2 | 8,479 | cpp | C++ | 3rdParty/occa/tests/src/lang/parser/typeLoading.cpp | krowe-alcf/nekBench | d314ca6b942076620dd7dab8f11df97be977c5db | [
"BSD-3-Clause"
] | null | null | null | 3rdParty/occa/tests/src/lang/parser/typeLoading.cpp | krowe-alcf/nekBench | d314ca6b942076620dd7dab8f11df97be977c5db | [
"BSD-3-Clause"
] | null | null | null | 3rdParty/occa/tests/src/lang/parser/typeLoading.cpp | krowe-alcf/nekBench | d314ca6b942076620dd7dab8f11df97be977c5db | [
"BSD-3-Clause"
] | null | null | null | #include "utils.hpp"
void testBaseTypeLoading();
void testPointerTypeLoading();
void testReferenceTypeLoading();
void testArrayTypeLoading();
void testVariableLoading();
void testArgumentLoading();
void testFunctionPointerLoading();
void testBaseTypeErrors();
void testPointerTypeErrors();
void testArrayTypeErrors();
... | 25.386228 | 72 | 0.607501 | krowe-alcf |
9afd61eaf982fca7c83235a0d4ec39e9cd8730b1 | 4,396 | cpp | C++ | samples/gl/MVP.cpp | kunka/SoftRender | 8089844e9ab00ab71ef1a820641ec07ae8df248d | [
"MIT"
] | 6 | 2019-01-25T08:41:14.000Z | 2021-08-22T07:06:11.000Z | samples/gl/MVP.cpp | kunka/SoftRender | 8089844e9ab00ab71ef1a820641ec07ae8df248d | [
"MIT"
] | null | null | null | samples/gl/MVP.cpp | kunka/SoftRender | 8089844e9ab00ab71ef1a820641ec07ae8df248d | [
"MIT"
] | 3 | 2019-01-25T08:41:16.000Z | 2020-09-04T06:04:29.000Z | //
// Created by huangkun on 02/04/2018.
//
#include "MVP.h"
#include "stb_image.h"
TEST_NODE_IMP_BEGIN
MVP::MVP() {
const char *vert = R"(
#version 330 core
layout (location = 0) in vec3 a_position;
layout (location = 1) in vec4 a_color;
layout (location = 2) in vec2 a_texCoord;
out vec4 ourColor;
out v... | 31.855072 | 115 | 0.608053 | kunka |
9afdf8450b856a91e7aa706a812ddf58a3e2af1d | 4,379 | cpp | C++ | Matrix2x2.cpp | Caliikha/MatrixVectorLib | d75e3059cd3715ecfb81e7ef566bf8ae219387ad | [
"BSD-2-Clause"
] | null | null | null | Matrix2x2.cpp | Caliikha/MatrixVectorLib | d75e3059cd3715ecfb81e7ef566bf8ae219387ad | [
"BSD-2-Clause"
] | null | null | null | Matrix2x2.cpp | Caliikha/MatrixVectorLib | d75e3059cd3715ecfb81e7ef566bf8ae219387ad | [
"BSD-2-Clause"
] | null | null | null | #include "Matrix2x2.h"
Matrix2x2 Matrix2x2::identity() {
Matrix2x2 resultMtrx = {};
resultMtrx.matrix[0][0] = 1;
resultMtrx.matrix[1][1] = 1;
return resultMtrx;
}
void Matrix2x2::printmtrx() {
for (int i = 0; i < Rows; i++) {
for (int j = 0; j < Cols; j++) {
std::cout << matrix... | 24.06044 | 81 | 0.530258 | Caliikha |
9afff995b2684fe507ee5dd1bc6b767d7a8ab378 | 8,421 | cpp | C++ | engines/ic3.cpp | yangy96/cosa2 | 84343a22d88b5f7e545956fe120e9410e14336ef | [
"BSD-3-Clause"
] | null | null | null | engines/ic3.cpp | yangy96/cosa2 | 84343a22d88b5f7e545956fe120e9410e14336ef | [
"BSD-3-Clause"
] | null | null | null | engines/ic3.cpp | yangy96/cosa2 | 84343a22d88b5f7e545956fe120e9410e14336ef | [
"BSD-3-Clause"
] | null | null | null | /********************* */
/*! \file ic3.h
** \verbatim
** Top contributors (to current version):
** Makai Mann, Ahmed Irfan
** This file is part of the pono project.
** Copyright (c) 2019 by the authors listed in the file AUTHORS
** in the top-level source directory) a... | 30.621818 | 86 | 0.62166 | yangy96 |
b104a57a094c58f421b1064c614bb3838c8a023f | 4,611 | cpp | C++ | src/Triangle.cpp | diegomacario/Manta-Ray-Tracer | 39fca8343f682ca318119ffd220af0234597bf9d | [
"MIT"
] | 124 | 2017-10-24T00:11:02.000Z | 2021-12-06T17:19:09.000Z | src/Triangle.cpp | diegomacario/Manta-Ray-Tracer | 39fca8343f682ca318119ffd220af0234597bf9d | [
"MIT"
] | 5 | 2017-10-24T21:11:47.000Z | 2020-03-19T19:34:15.000Z | src/Triangle.cpp | diegomacario/Manta-Ray-Tracer | 39fca8343f682ca318119ffd220af0234597bf9d | [
"MIT"
] | 6 | 2017-10-24T20:29:25.000Z | 2021-10-19T08:13:35.000Z | #include "Ray.h"
#include "Triangle.h"
Triangle::Triangle(const Point& vertexA, const Point& vertexB, const Point& vertexC, const Colour& ambient, Material* material)
: vertexA(vertexA)
, vertexB(vertexB)
, vertexC(vertexC)
, GeometricShape(ambient, material)
{
// Compute the normal
Vector ... | 30.946309 | 175 | 0.66298 | diegomacario |
b107ea699784c71edef8db1faa26748d1b002526 | 5,731 | cpp | C++ | MainVentana.cpp | joaconigro/QCalc | b79317ca017b2328bc239450c429b77fbffb4966 | [
"MIT"
] | 1 | 2017-05-24T19:50:24.000Z | 2017-05-24T19:50:24.000Z | MainVentana.cpp | joaconigro/QCalc | b79317ca017b2328bc239450c429b77fbffb4966 | [
"MIT"
] | null | null | null | MainVentana.cpp | joaconigro/QCalc | b79317ca017b2328bc239450c429b77fbffb4966 | [
"MIT"
] | 1 | 2019-11-12T16:00:00.000Z | 2019-11-12T16:00:00.000Z | #include "MainVentana.h"
#include "ui_MainVentana.h"
#include "OnePoint.h"
#include "AboutQCalc.h"
MainVentana::MainVentana(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainVentana),
onePoint(new mainWindow),
manyPoints(new TableView)
{
ui->setupUi(this);
//Agrega el widget de conversión... | 33.51462 | 116 | 0.720642 | joaconigro |
b10c79f326765acaa1bf7dc1720263d31cd23dc4 | 2,044 | cpp | C++ | aplechoserver/aplechoserver.m.cpp | camio/apl | f8bc9f37c38cf4a3a9dc05a39bcc064e3694b13c | [
"Apache-2.0"
] | null | null | null | aplechoserver/aplechoserver.m.cpp | camio/apl | f8bc9f37c38cf4a3a9dc05a39bcc064e3694b13c | [
"Apache-2.0"
] | null | null | null | aplechoserver/aplechoserver.m.cpp | camio/apl | f8bc9f37c38cf4a3a9dc05a39bcc064e3694b13c | [
"Apache-2.0"
] | null | null | null | #include <apltcp_channel.h>
#include <apltcp_server.h>
#include <asio/ts/internet.hpp> // asio::ip::tcp
#include <dplp_promise.h>
#include <iostream>
static dplp::Promise<> readAndLog(apltcp::channel c) {
return c.readUntil('\n')
.then([](const std::string &msg) { std::cout << msg << std::endl; })
.then(... | 38.566038 | 79 | 0.57045 | camio |
624024b35546ae6d598487118d3924b5a220a5da | 1,268 | hpp | C++ | psrdada_cpp/psrdada_to_sigproc_header.hpp | krajwade/psrdada_cpp | c2254461ae4756fba1ad7355a7535d7c6cfb70c9 | [
"MIT"
] | null | null | null | psrdada_cpp/psrdada_to_sigproc_header.hpp | krajwade/psrdada_cpp | c2254461ae4756fba1ad7355a7535d7c6cfb70c9 | [
"MIT"
] | 3 | 2020-02-15T12:57:36.000Z | 2020-04-08T14:48:57.000Z | psrdada_cpp/psrdada_to_sigproc_header.hpp | krajwade/psrdada_cpp | c2254461ae4756fba1ad7355a7535d7c6cfb70c9 | [
"MIT"
] | 5 | 2020-01-09T14:34:54.000Z | 2022-03-14T07:15:39.000Z | #ifndef PSRDADA_CPP_PSRDADA_TO_SIGPROC_HEADER_HPP
#define PSRDADA_CPP_PSRDADA_TO_SIGPROC_HEADER_HPP
#include "psrdada_cpp/raw_bytes.hpp"
#include "psrdada_cpp/common.hpp"
namespace psrdada_cpp {
template <class HandlerType>
class PsrDadaToSigprocHeader
{
public:
PsrDadaToSigprocHeader(HandlerType& handler);
... | 25.36 | 74 | 0.66877 | krajwade |
6242bf9071be29e6fd792ce53d02408ff7a0b8e3 | 4,034 | cpp | C++ | Demo/Triangle/Triangle.cpp | PearceXu/glfw | 1ecfced9afdc196c0b70b41606bd337971b306e9 | [
"Zlib"
] | null | null | null | Demo/Triangle/Triangle.cpp | PearceXu/glfw | 1ecfced9afdc196c0b70b41606bd337971b306e9 | [
"Zlib"
] | null | null | null | Demo/Triangle/Triangle.cpp | PearceXu/glfw | 1ecfced9afdc196c0b70b41606bd337971b306e9 | [
"Zlib"
] | null | null | null | // Triangle.cpp: 定义控制台应用程序的入口点。
#include <glad/gl.h>
#include <GLFW/glfw3.h>
#include <iostream>
// #pragma comment(linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"" )
void framebuffer_size_callback(GLFWwindow* window, int width, int height)
{
glViewport(0, 0, width, height);
}
void processInput(GLFWwi... | 23.869822 | 81 | 0.669807 | PearceXu |
62457892c7fb790224653cacbee766482a6da4fa | 197 | cpp | C++ | GEngine/GRendererInfra/GRiMaterial.cpp | hegaoxiang/new--- | 1c65dce79fa292ff8d2f79fb4cf9d8e207a82be1 | [
"Zlib"
] | null | null | null | GEngine/GRendererInfra/GRiMaterial.cpp | hegaoxiang/new--- | 1c65dce79fa292ff8d2f79fb4cf9d8e207a82be1 | [
"Zlib"
] | null | null | null | GEngine/GRendererInfra/GRiMaterial.cpp | hegaoxiang/new--- | 1c65dce79fa292ff8d2f79fb4cf9d8e207a82be1 | [
"Zlib"
] | null | null | null | #include "GRiMaterial.h"
void GRiMaterial::AddTexture(GRiTexture* tex)
{
pTextures.push_back(tex->UniqueFileName);
}
void GRiMaterial::AddTexture(std::string tex)
{
pTextures.push_back(tex);
}
| 16.416667 | 45 | 0.761421 | hegaoxiang |
6249101eb0f1687bc2af3ab7ba6dc8735529fccc | 2,811 | cpp | C++ | src/gene.cpp | alechaka/cognat | affd9f41cd1517eaf85c7c1860673e78685b15e1 | [
"MIT"
] | null | null | null | src/gene.cpp | alechaka/cognat | affd9f41cd1517eaf85c7c1860673e78685b15e1 | [
"MIT"
] | null | null | null | src/gene.cpp | alechaka/cognat | affd9f41cd1517eaf85c7c1860673e78685b15e1 | [
"MIT"
] | null | null | null | #include <QBrush>
#include <QColor>
#include <QCursor>
#include <QGraphicsSceneContextMenuEvent>
#include <QGraphicsSceneMouseEvent>
#include <QPainter>
#include <QPainterPath>
#include <QPen>
#include <QPointF>
#include <QPolygonF>
#include <QStyleOptionGraphicsItem>
#include "gene.h"
#include "graphicsscene.h"
#inclu... | 27.831683 | 102 | 0.596229 | alechaka |
624a685de79bbce9a9d06158ac341ae8ae605d0d | 2,465 | hpp | C++ | sources/Shared/Constants.hpp | frobino/urho3d-simple-multiplayer-shooter | 4397c58dfce15dff7d182787f0b2415e746405b7 | [
"MIT"
] | 4 | 2016-11-05T12:59:20.000Z | 2021-01-17T00:03:09.000Z | sources/Shared/Constants.hpp | frobino/urho3d-simple-multiplayer-shooter | 4397c58dfce15dff7d182787f0b2415e746405b7 | [
"MIT"
] | null | null | null | sources/Shared/Constants.hpp | frobino/urho3d-simple-multiplayer-shooter | 4397c58dfce15dff7d182787f0b2415e746405b7 | [
"MIT"
] | 2 | 2020-07-06T09:00:13.000Z | 2021-10-01T17:14:13.000Z | #pragma once
#include <Urho3D/Container/Str.h>
#include <Urho3D/Input/Input.h>
#include <Urho3D/AngelScript/Script.h>
void BindConstantsToAngelScript (Urho3D::Script *script);
namespace ServerConstants
{
const int PORT = 6391;
const float TIME_BEFORE_AUTOMATIC_NAMING = 1.0f;
const float MINIMUM_DISTANCE_BETWEEN_OBSTAC... | 31.202532 | 78 | 0.77931 | frobino |
62536dee49e4c690278b27baaf16cdc142c9182e | 7,521 | cpp | C++ | src/replay/lib/sounddriver/sounddriver_linux.cpp | PaulBatchelor/protrekkr | 0f93032913bf111b0721901691dd351a165c3d61 | [
"BSD-2-Clause"
] | 18 | 2016-09-18T15:59:59.000Z | 2022-03-14T12:21:51.000Z | src/replay/lib/sounddriver/sounddriver_linux.cpp | PaulBatchelor/protrekkr | 0f93032913bf111b0721901691dd351a165c3d61 | [
"BSD-2-Clause"
] | null | null | null | src/replay/lib/sounddriver/sounddriver_linux.cpp | PaulBatchelor/protrekkr | 0f93032913bf111b0721901691dd351a165c3d61 | [
"BSD-2-Clause"
] | 3 | 2018-04-14T14:52:03.000Z | 2021-02-09T02:19:52.000Z | // ------------------------------------------------------
// Protrekkr
// Based on Juan Antonio Arguelles Rius's NoiseTrekker.
//
// Copyright (C) 2008-2010 Franck Charlet.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided th... | 30.449393 | 120 | 0.590347 | PaulBatchelor |
625718ee0771f728f9aabdb6be918a11ef472e95 | 846 | cpp | C++ | BGE/State.cpp | KeithCa/BGE3 | e196be96859539970563689acf27042b6107f171 | [
"MIT"
] | 5 | 2015-11-05T05:54:04.000Z | 2020-07-24T11:56:41.000Z | BGE/State.cpp | KeithCa/BGE3 | e196be96859539970563689acf27042b6107f171 | [
"MIT"
] | null | null | null | BGE/State.cpp | KeithCa/BGE3 | e196be96859539970563689acf27042b6107f171 | [
"MIT"
] | 5 | 2015-08-25T15:45:56.000Z | 2021-03-18T10:32:20.000Z | #include "State.h"
#include "Game.h"
using namespace BGE;
// State Stuff
State::State(shared_ptr<StateMachine> owner)
{
this->owner = owner;
}
State::~State(void)
{
}
std::string BGE::State::Description()
{
throw std::logic_error("The method or operation is not implemented.");
}
StateMachine::StateMachine(void)... | 15.107143 | 71 | 0.702128 | KeithCa |
6257f929cf9100dfa52fa99c954f6b4ad8cab146 | 680 | cc | C++ | src/main/index/document_query.cc | tinro/RedGiant | 01cd9d8d13d5b5db581af771a51e32e5e96dba85 | [
"MIT"
] | 17 | 2016-05-30T07:20:45.000Z | 2021-08-16T07:40:42.000Z | src/main/index/document_query.cc | tinro/RedGiant | 01cd9d8d13d5b5db581af771a51e32e5e96dba85 | [
"MIT"
] | 13 | 2016-04-21T03:30:18.000Z | 2016-06-02T03:48:50.000Z | src/main/index/document_query.cc | tinro/RedGiant | 01cd9d8d13d5b5db581af771a51e32e5e96dba85 | [
"MIT"
] | 5 | 2016-05-24T11:49:13.000Z | 2016-06-06T09:22:17.000Z | #include "index/document_query.h"
#include <map>
#include <utility>
#include "core/query/dot_product_query.h"
#include "data/interm_query.h"
#include "data/query_request.h"
namespace redgiant {
DocumentQuery::DocumentQuery(const QueryRequest& request, const IntermQuery& interm_query)
: query_count_(request.get_quer... | 29.565217 | 106 | 0.770588 | tinro |
625acd3322b9585cc22f4f4cf636b14f5faf511b | 5,189 | cpp | C++ | tools/oled_cli/main.cpp | sixtyfive/lcdgfx | ef1a62fd4c86a7f5421c37065b6528634573f677 | [
"MIT"
] | 205 | 2019-09-03T02:30:28.000Z | 2022-03-31T16:21:40.000Z | tools/oled_cli/main.cpp | sixtyfive/lcdgfx | ef1a62fd4c86a7f5421c37065b6528634573f677 | [
"MIT"
] | 83 | 2019-11-03T13:20:00.000Z | 2022-03-31T21:01:20.000Z | tools/oled_cli/main.cpp | sixtyfive/lcdgfx | ef1a62fd4c86a7f5421c37065b6528634573f677 | [
"MIT"
] | 39 | 2019-10-09T15:26:14.000Z | 2022-02-23T02:33:48.000Z | /*
MIT License
Copyright (c) 2018, Alexey Dynda
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, ... | 28.048649 | 108 | 0.559645 | sixtyfive |
625c45d7d9d08bb5e96f7c9914771ae7fb28a0b6 | 7,375 | hpp | C++ | fon9/io/FdrSocket.hpp | fonwin/Plan | 3bfa9407ab04a26293ba8d23c2208bbececb430e | [
"Apache-2.0"
] | 21 | 2019-01-29T14:41:46.000Z | 2022-03-11T00:22:56.000Z | fon9/io/FdrSocket.hpp | fonwin/Plan | 3bfa9407ab04a26293ba8d23c2208bbececb430e | [
"Apache-2.0"
] | null | null | null | fon9/io/FdrSocket.hpp | fonwin/Plan | 3bfa9407ab04a26293ba8d23c2208bbececb430e | [
"Apache-2.0"
] | 9 | 2019-01-27T14:19:33.000Z | 2022-03-11T06:18:24.000Z | /// \file fon9/io/FdrSocket.hpp
/// \author fonwinz@gmail.com
#ifndef __fon9_io_FdrSocket_hpp__
#define __fon9_io_FdrSocket_hpp__
#include "fon9/io/FdrService.hpp"
#include "fon9/io/DeviceStartSend.hpp"
#include "fon9/io/DeviceRecvEvent.hpp"
#include "fon9/io/Socket.hpp"
namespace fon9 { namespace io {
class FdrSock... | 37.060302 | 104 | 0.640542 | fonwin |
6261e409c34df5874c5fc75f5a01fd987e0877ac | 70,568 | cpp | C++ | src/BenchmarkManager.cpp | 365andreas/X-Mem | f0d8b64a67647e0b1680d8739338245130b76286 | [
"MIT"
] | null | null | null | src/BenchmarkManager.cpp | 365andreas/X-Mem | f0d8b64a67647e0b1680d8739338245130b76286 | [
"MIT"
] | 24 | 2021-05-20T17:12:15.000Z | 2021-09-22T22:19:23.000Z | src/BenchmarkManager.cpp | 365andreas/X-Mem | f0d8b64a67647e0b1680d8739338245130b76286 | [
"MIT"
] | null | null | null | /* The MIT License (MIT)
*
* Copyright (c) 2014 Microsoft
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy,... | 46.243775 | 685 | 0.498597 | 365andreas |
6266009b191a491fd816b597a06b1b256bd29add | 2,309 | hpp | C++ | bg/date_utilities.hpp | bondgeek/pybg | 046a25074b78409c6d29302177aeac581ade90d1 | [
"Unlicense",
"MIT"
] | 1 | 2017-03-14T05:39:15.000Z | 2017-03-14T05:39:15.000Z | bg/date_utilities.hpp | bondgeek/pybg | 046a25074b78409c6d29302177aeac581ade90d1 | [
"Unlicense",
"MIT"
] | null | null | null | bg/date_utilities.hpp | bondgeek/pybg | 046a25074b78409c6d29302177aeac581ade90d1 | [
"Unlicense",
"MIT"
] | null | null | null | /*
* date_utilities.hpp
* QuantLibFun
*
* Created by BART MOSLEY on 5/16/12.
* Copyright 2012 BG Research LLC. All rights reserved.
*
* Note: daysMinMax & numSubPeriod copied from QuantLib library
* AmortizingFixedRateBond classes
*
*/
#ifndef DATE_UTILITIES_H
#define DATE_UTILITIES_H
... | 27.164706 | 65 | 0.566479 | bondgeek |
626744adfcc17bf19b2087a4e41046c1bd48f940 | 631 | cpp | C++ | 04_template_meta_programming/17_cpp11_meta_func_03.cpp | cpptt-book/2nd | d710af6df9ed2561bc7432be7b0b0b93dafecb0a | [
"CC0-1.0"
] | 17 | 2015-01-07T08:10:09.000Z | 2021-06-21T13:07:25.000Z | 04_template_meta_programming/17_cpp11_meta_func_03.cpp | cpptt-book/2nd | d710af6df9ed2561bc7432be7b0b0b93dafecb0a | [
"CC0-1.0"
] | null | null | null | 04_template_meta_programming/17_cpp11_meta_func_03.cpp | cpptt-book/2nd | d710af6df9ed2561bc7432be7b0b0b93dafecb0a | [
"CC0-1.0"
] | 5 | 2015-05-02T19:07:43.000Z | 2021-11-14T21:21:32.000Z | // Copyright (c) 2014
// Akira Takahashi, Fumiki Fukuda.
// Released under the CC0 1.0 Universal license.
#include <type_traits>
#include <utility>
template <int N>
struct int_ {};
// 再帰テンプレート
template <class T, int N,
typename std::enable_if<(N > 0)>::type* = nullptr>
auto add_pointer(T, int_<N>) -> decltype(add_... | 23.37037 | 87 | 0.656101 | cpptt-book |
626de33317d84fbffacb08f3ab0e7c15a1f98321 | 599 | cpp | C++ | toki/src/YasonLanguage.cpp | frankencode/fluxkit | 0436454f0791d8fddf8e0adc383ef7c54080245d | [
"BSD-3-Clause"
] | 3 | 2016-02-10T04:58:32.000Z | 2020-09-15T06:39:43.000Z | toki/src/YasonLanguage.cpp | frankencode/fluxkit | 0436454f0791d8fddf8e0adc383ef7c54080245d | [
"BSD-3-Clause"
] | null | null | null | toki/src/YasonLanguage.cpp | frankencode/fluxkit | 0436454f0791d8fddf8e0adc383ef7c54080245d | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2007-2015 Frank Mertens.
*
* Use of this source is governed by a BSD-style license that can be
* found in the LICENSE file.
*
*/
#include <flux/toki/Registry>
#include <flux/toki/YasonSyntax>
namespace flux {
namespace toki {
class YasonLanguage: public Language
{
private:
friend class R... | 18.71875 | 68 | 0.63773 | frankencode |
6271a8e4686ad09ee3cc4c7385210332541660d1 | 729 | hpp | C++ | src/editor_object.hpp | DeNiCoN/ComputerGraphicsLabs | ca02ea69b8dbc2ebeef1068779a0802babc95302 | [
"Unlicense"
] | null | null | null | src/editor_object.hpp | DeNiCoN/ComputerGraphicsLabs | ca02ea69b8dbc2ebeef1068779a0802babc95302 | [
"Unlicense"
] | null | null | null | src/editor_object.hpp | DeNiCoN/ComputerGraphicsLabs | ca02ea69b8dbc2ebeef1068779a0802babc95302 | [
"Unlicense"
] | null | null | null | #pragma once
#include <glm/glm.hpp>
#include <memory>
#include <vector>
#include <unordered_set>
#include <vulkan/vulkan.hpp>
class Engine;
class EditorObject
{
public:
explicit EditorObject(bool is_movable)
: is_movable(is_movable)
{}
virtual ~EditorObject() = default;
glm::vec3 position = {... | 21.441176 | 57 | 0.640604 | DeNiCoN |
6273ba46ba961395eec7410f12bd63f15e28812c | 13,277 | cpp | C++ | source/compiler0/code_builder_lib/cb_reference_checking.cpp | Panzerschrek/U-00DC-Sprache | eb677a66d178985433a62eb6b8a50ce2cdb14b1a | [
"BSD-3-Clause"
] | 45 | 2016-06-21T22:28:43.000Z | 2022-03-26T12:21:46.000Z | source/compiler0/code_builder_lib/cb_reference_checking.cpp | Panzerschrek/U-00DC-Sprache | eb677a66d178985433a62eb6b8a50ce2cdb14b1a | [
"BSD-3-Clause"
] | 6 | 2020-07-12T18:00:10.000Z | 2021-11-30T11:20:14.000Z | source/compiler0/code_builder_lib/cb_reference_checking.cpp | Panzerschrek/U-00DC-Sprache | eb677a66d178985433a62eb6b8a50ce2cdb14b1a | [
"BSD-3-Clause"
] | 5 | 2019-09-03T17:20:34.000Z | 2022-01-30T15:10:21.000Z | #include "../../lex_synt_lib_common/assert.hpp"
#include "keywords.hpp"
#include "error_reporting.hpp"
#include "code_builder.hpp"
namespace U
{
void CodeBuilder::ProcessFunctionParamReferencesTags(
CodeBuilderErrorsContainer& errors_container,
const Synt::FunctionType& func,
FunctionType& function_type,
const Sy... | 39.165192 | 211 | 0.776456 | Panzerschrek |
6275774320cd7912fa445474775cd8948ea36f85 | 3,617 | cpp | C++ | sources/test-ginnel/main.cpp | ucpu/cage | c7abf329d84a81a40ff11f93c6ce88290bb898ac | [
"MIT"
] | 23 | 2018-03-18T14:28:26.000Z | 2022-03-25T20:32:29.000Z | sources/test-ginnel/main.cpp | ucpu/cage | c7abf329d84a81a40ff11f93c6ce88290bb898ac | [
"MIT"
] | 8 | 2018-08-12T20:14:34.000Z | 2021-09-04T21:24:19.000Z | sources/test-ginnel/main.cpp | ucpu/cage | c7abf329d84a81a40ff11f93c6ce88290bb898ac | [
"MIT"
] | 2 | 2019-11-03T17:11:51.000Z | 2021-03-31T02:05:33.000Z | #include <cage-core/logger.h>
#include <cage-core/math.h>
#include <cage-core/ini.h>
#include <cage-core/process.h>
#include <cage-core/concurrent.h>
#include <cage-core/config.h>
#include <cage-core/debug.h>
using namespace cage;
void runServer();
void runClient();
namespace
{
struct Run : private Immovable
{
H... | 27.401515 | 141 | 0.666575 | ucpu |
6279ff4b6c605c7554a2194c60305726476f03d7 | 2,268 | hpp | C++ | src/DigitalSequencer/VoltageSequencer.hpp | clone45/voxglitch | 121d5fd7e4c94b86d5a25349134eee92970939d4 | [
"BSD-3-Clause"
] | 60 | 2020-01-02T15:56:47.000Z | 2022-03-25T21:28:53.000Z | src/DigitalSequencer/VoltageSequencer.hpp | clone45/voxglitch | 121d5fd7e4c94b86d5a25349134eee92970939d4 | [
"BSD-3-Clause"
] | 47 | 2020-01-02T08:49:55.000Z | 2022-03-11T18:26:33.000Z | src/DigitalSequencer/VoltageSequencer.hpp | clone45/voxglitch | 121d5fd7e4c94b86d5a25349134eee92970939d4 | [
"BSD-3-Clause"
] | 9 | 2020-01-19T19:57:23.000Z | 2022-03-01T11:29:02.000Z | struct VoltageSequencer : Sequencer
{
std::array<double, MAX_SEQUENCER_STEPS> sequence;
unsigned int voltage_range_index = 0; // see voltage_ranges in DigitalSequencer.h
unsigned int snap_division_index = 0;
bool sample_and_hold = false;
// constructor
VoltageSequencer()
{
sequence.fill(0.0... | 25.2 | 157 | 0.636684 | clone45 |
627d1050c76686194e86062707b6d4df9d419d5b | 4,693 | hpp | C++ | sciplot/specs/FrameSpecsOf.hpp | Overhatted/sciplot | ca0bd2ceb70e799d2d55ba7e28f6d73a5d3f2854 | [
"MIT"
] | 397 | 2019-01-13T13:05:11.000Z | 2022-03-27T09:30:27.000Z | sciplot/specs/FrameSpecsOf.hpp | Overhatted/sciplot | ca0bd2ceb70e799d2d55ba7e28f6d73a5d3f2854 | [
"MIT"
] | 76 | 2019-01-14T06:56:59.000Z | 2022-02-02T09:37:47.000Z | sciplot/specs/FrameSpecsOf.hpp | Overhatted/sciplot | ca0bd2ceb70e799d2d55ba7e28f6d73a5d3f2854 | [
"MIT"
] | 56 | 2019-01-13T16:00:18.000Z | 2022-03-25T14:12:36.000Z | // sciplot - a modern C++ scientific plotting library powered by gnuplot
// https://github.com/sciplot/sciplot
//
// Licensed under the MIT License <http://opensource.org/licenses/MIT>.
//
// Copyright (c) 2018-2021 Allan Leal
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this... | 31.92517 | 83 | 0.738334 | Overhatted |
628e7632219e56f0331d0d62a8b52f303989176b | 338 | cpp | C++ | ml/src/Serv_RegressionNormalizer.cpp | georgephilipp/cppgstd_legacy | e130860da7700aae42b915bc36a7efa4cae06d56 | [
"MIT"
] | null | null | null | ml/src/Serv_RegressionNormalizer.cpp | georgephilipp/cppgstd_legacy | e130860da7700aae42b915bc36a7efa4cae06d56 | [
"MIT"
] | null | null | null | ml/src/Serv_RegressionNormalizer.cpp | georgephilipp/cppgstd_legacy | e130860da7700aae42b915bc36a7efa4cae06d56 | [
"MIT"
] | null | null | null | /*
* File: RegressionNormalizer.cpp
* Author: gschoenh
*
* Created on December 6, 2013, 6:35 PM
*/
#include "stdafx.h"
#include <vector>
#include "RegressionNormalizer.h"
#include "RegressionGenerators.h"
#include <math.h>
#include "gstd/src/Primitives.h"
namespace msii810161816
{
namespace ml
{
... | 14.083333 | 39 | 0.653846 | georgephilipp |
629015327bf28b380403939a020847a855cfeed5 | 220 | cpp | C++ | cpp/aizu/qq.cpp | itohiro73/playground | ac7857575185c0a2195c44a4ff265f8e97ffb5cf | [
"MIT"
] | null | null | null | cpp/aizu/qq.cpp | itohiro73/playground | ac7857575185c0a2195c44a4ff265f8e97ffb5cf | [
"MIT"
] | null | null | null | cpp/aizu/qq.cpp | itohiro73/playground | ac7857575185c0a2195c44a4ff265f8e97ffb5cf | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int main(){
for (int i=1; i<=9; i++)
{
for (int j=1; j<=9; j++)
{
cout << i << 'x' << j << '=' << i*j << endl;
}
}
return 0;
} | 15.714286 | 56 | 0.368182 | itohiro73 |
6291b93b3d1cfa57de99b2248b8b6fc9faee4d01 | 1,246 | hpp | C++ | libcaf_openssl/caf/openssl/remote_actor.hpp | seewpx/actor-framework | 65ecf35317b81d7a211848d59e734f43483fe410 | [
"BSD-3-Clause"
] | 2,517 | 2015-01-04T22:19:43.000Z | 2022-03-31T12:20:48.000Z | libcaf_openssl/caf/openssl/remote_actor.hpp | seewpx/actor-framework | 65ecf35317b81d7a211848d59e734f43483fe410 | [
"BSD-3-Clause"
] | 894 | 2015-01-07T14:21:21.000Z | 2022-03-30T06:37:18.000Z | libcaf_openssl/caf/openssl/remote_actor.hpp | seewpx/actor-framework | 65ecf35317b81d7a211848d59e734f43483fe410 | [
"BSD-3-Clause"
] | 570 | 2015-01-21T18:59:33.000Z | 2022-03-31T19:00:02.000Z | // This file is part of CAF, the C++ Actor Framework. See the file LICENSE in
// the main distribution directory for license terms and copyright or visit
// https://github.com/actor-framework/actor-framework/blob/master/LICENSE.
#pragma once
#include <cstdint>
#include <set>
#include <string>
#include "caf/actor_con... | 31.948718 | 77 | 0.723917 | seewpx |
6292272d5b94befe3f23087adc7c731eb675e2b1 | 5,245 | cpp | C++ | teapoy/src/sni/epoll.cpp | lyramilk/teapoy | 5b450a243432b058512ed7b1c6f810cb0d207f91 | [
"Apache-2.0"
] | 1 | 2017-09-07T02:28:58.000Z | 2017-09-07T02:28:58.000Z | teapoy/src/sni/epoll.cpp | lyramilk/teapoy | 5b450a243432b058512ed7b1c6f810cb0d207f91 | [
"Apache-2.0"
] | null | null | null | teapoy/src/sni/epoll.cpp | lyramilk/teapoy | 5b450a243432b058512ed7b1c6f810cb0d207f91 | [
"Apache-2.0"
] | null | null | null | #include <libmilk/var.h>
#include <libmilk/log.h>
#include <libmilk/dict.h>
#include <libmilk/netaio.h>
#include <libmilk/scriptengine.h>
#include "script.h"
#include "sni_selector.h"
namespace lyramilk{ namespace teapoy{
class server_poll:public lyramilk::script::sclass,public lyramilk::io::aiopoll
{
lyramilk::l... | 31.407186 | 117 | 0.682745 | lyramilk |
629f0930e4186578d7e51913563e8094f96d8221 | 3,435 | cpp | C++ | Pandemic/EnterNameState.cpp | klapstoelpiloot/pandemic | 9a54d95e74c1e4a832f901449f007c29b37abb2b | [
"MIT"
] | 5 | 2021-12-28T19:07:27.000Z | 2022-02-10T16:14:08.000Z | Pandemic/EnterNameState.cpp | klapstoelpiloot/pandemic | 9a54d95e74c1e4a832f901449f007c29b37abb2b | [
"MIT"
] | 19 | 2021-12-14T12:11:46.000Z | 2022-02-03T10:47:12.000Z | Pandemic/EnterNameState.cpp | klapstoelpiloot/pandemic | 9a54d95e74c1e4a832f901449f007c29b37abb2b | [
"MIT"
] | null | null | null | #include "EnterNameState.h"
#include "MenuStateMachine.h"
#include "GameStateMachine.h"
#include "Main.h"
#define MAX_NAME_LEN 10
const char* EDIT_CHAR_LIST = "_ABCDEFGHIJKLMNOPQRSTUVWXYZ&";
EnterNameState::EnterNameState(GameStateMachine* _statemachine) :
statemachine(_statemachine),
charindex(0)
{
}
void EnterNa... | 25.257353 | 85 | 0.699563 | klapstoelpiloot |
62a5be266e253184239fec0286612fc26e90efe6 | 776 | cpp | C++ | acmicpcnet/2912.cpp | irresi/algostudy | 489739d641d6e36bbedf86be6391d1db27456585 | [
"MIT"
] | null | null | null | acmicpcnet/2912.cpp | irresi/algostudy | 489739d641d6e36bbedf86be6391d1db27456585 | [
"MIT"
] | null | null | null | acmicpcnet/2912.cpp | irresi/algostudy | 489739d641d6e36bbedf86be6391d1db27456585 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#define all(x) (x).begin(),(x).end()
using namespace std;
using ll = long long;
int n,c,arr[300003],m;
vector<int> lib[10003];
int main(){
ios_base::sync_with_stdio(0); cin.tie(0);
int i,j,a,b;
srand(time(NULL));
cin>>n>>c;
for(i=1;i<=n;i++){
cin>>arr[i];
lib[... | 22.823529 | 76 | 0.454897 | irresi |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.