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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5a8d018c900e756a6b7a299aa74211e2bb14b3f1 | 3,173 | cpp | C++ | DissertationExperiment/BASModule.cpp | jasondevans/dissertation | e0b6d1a7ff7fc94613f87c183a8dfdbf2a6464c4 | [
"MIT"
] | null | null | null | DissertationExperiment/BASModule.cpp | jasondevans/dissertation | e0b6d1a7ff7fc94613f87c183a8dfdbf2a6464c4 | [
"MIT"
] | null | null | null | DissertationExperiment/BASModule.cpp | jasondevans/dissertation | e0b6d1a7ff7fc94613f87c183a8dfdbf2a6464c4 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "BASModule.h"
#include "Util.h"
// Constructor.
BASModule::BASModule()
{
startInstructions = "Each item of this questionnaire is a statement that a person may either agree "
"with or disagree with. For each item, indicate how much you agree or disagree "
"with what the item says. "
... | 45.985507 | 115 | 0.731484 | jasondevans |
5a8ee7e0d162661c1f89ed6e5a29e485ebdb6c74 | 1,251 | cpp | C++ | Codeforces/723B - Text Document Analysis.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | Codeforces/723B - Text Document Analysis.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | Codeforces/723B - Text Document Analysis.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
int n;
string line;
cin >> n >> line;
// replace the '_', with spaces
for_each(line.begin(), line.end(), [](char &ch) {
if (ch == '_') ch = ' ';
});
vector<pair<int, int>> dup_pos;
int... | 25.02 | 77 | 0.502798 | naimulcsx |
5a916db1c82c71309a3e229efb397daf636f2f51 | 996 | cpp | C++ | Game/Source/Quest.cpp | aNnAm2606/PROJECT-II-BAKARA-SAN | 84bbc8cc9f7ea9f5b1b3ece4ea4053c74e7ece7f | [
"MIT"
] | null | null | null | Game/Source/Quest.cpp | aNnAm2606/PROJECT-II-BAKARA-SAN | 84bbc8cc9f7ea9f5b1b3ece4ea4053c74e7ece7f | [
"MIT"
] | 7 | 2022-03-19T21:14:34.000Z | 2022-03-19T21:53:13.000Z | Game/Source/Quest.cpp | aNnAm2606/PROJECT-II-BAKARA-SAN | 84bbc8cc9f7ea9f5b1b3ece4ea4053c74e7ece7f | [
"MIT"
] | 1 | 2022-03-08T12:25:02.000Z | 2022-03-08T12:25:02.000Z | #include "Quest.h"
#include "App.h"
#include "InventoryModule.h"
#include "BattleScene.h"
Quest::Quest()
{
p_QuestId = QuestModule::EQuest::EQUEST_NONE;
app->inventory->questOnAddCallbacks += QuestItemAction(&Quest::OnItemAdd, this);
app->inventory->questOnRemoveCallbacks += QuestItemAction(&Quest::OnItemRemove, t... | 25.538462 | 94 | 0.712851 | aNnAm2606 |
5a99a72cae8194a2197e3decc852a08daad03cfc | 3,788 | cpp | C++ | Bridge Edge in Graph.cpp | surbhii25/Graph | 76a101f393fefa05fa0b73ef1a0f646486b3a9ce | [
"MIT"
] | null | null | null | Bridge Edge in Graph.cpp | surbhii25/Graph | 76a101f393fefa05fa0b73ef1a0f646486b3a9ce | [
"MIT"
] | null | null | null | Bridge Edge in Graph.cpp | surbhii25/Graph | 76a101f393fefa05fa0b73ef1a0f646486b3a9ce | [
"MIT"
] | null | null | null | /*
Given an undirected graph of V vertices and E edges and another edge (c-d), the task is to find if the given edge is a bridge in graph, i.e., removing the edge disconnects
the graph.
An edge in an undirected connected graph is a bridge iff removing it disconnects the graph.
For a disconnected undirected graph, de... | 27.649635 | 172 | 0.56019 | surbhii25 |
5aa11938aad373f8ca6b233101599f57c79acde9 | 10,429 | cpp | C++ | source/core/geo/CoordinateTransformation.cpp | Wujingli/OpenWebGlobeDataProcessing | 932eaa00c81fc0571122bc618ade010fa255735e | [
"MIT"
] | null | null | null | source/core/geo/CoordinateTransformation.cpp | Wujingli/OpenWebGlobeDataProcessing | 932eaa00c81fc0571122bc618ade010fa255735e | [
"MIT"
] | null | null | null | source/core/geo/CoordinateTransformation.cpp | Wujingli/OpenWebGlobeDataProcessing | 932eaa00c81fc0571122bc618ade010fa255735e | [
"MIT"
] | 2 | 2019-06-08T15:59:26.000Z | 2021-02-06T08:13:01.000Z | /*******************************************************************************
# ____ __ __ _ _____ _ _ #
# / __ \ \ \ / / | | / ____| | | | #
# | | | |_ __ ___ _ __ \ /\ / /__| |__ | | __| | ___ | |__ ___ ... | 25.13012 | 127 | 0.513856 | Wujingli |
5aaaa4d07e6886e1ae56e78be45c7714d9f0ad83 | 2,806 | cpp | C++ | Game Engine/src/ShadowPassLayer.cpp | aprithul/Prengine | 7aff20bb73ab21e9e11dda1985e6b22992479f0d | [
"BSD-3-Clause"
] | 1 | 2019-10-08T05:20:30.000Z | 2019-10-08T05:20:30.000Z | Game Engine/src/ShadowPassLayer.cpp | aprithul/PrEngine | 7aff20bb73ab21e9e11dda1985e6b22992479f0d | [
"BSD-3-Clause"
] | null | null | null | Game Engine/src/ShadowPassLayer.cpp | aprithul/PrEngine | 7aff20bb73ab21e9e11dda1985e6b22992479f0d | [
"BSD-3-Clause"
] | null | null | null | #include "ShadowPassLayer.hpp"
#include "RendererOpenGL.hpp"
namespace PrEngine
{
ShadowPassLayer::ShadowPassLayer()
{
this->name = "Shadowpass";
}
void ShadowPassLayer::start()
{
}
void ShadowPassLayer::update()
{
Entity* camera... | 34.641975 | 154 | 0.558803 | aprithul |
5aae2fb613ba2f7a7d621901f7f7099914809798 | 5,782 | cpp | C++ | src/exec/AirWaves.cpp | LoganBarnes/AirWaves | c1d95643f59663c6397eef81a8c49fb9c9e8bec4 | [
"MIT"
] | 1 | 2021-07-07T12:17:59.000Z | 2021-07-07T12:17:59.000Z | src/exec/AirWaves.cpp | LoganBarnes/AirWaves | c1d95643f59663c6397eef81a8c49fb9c9e8bec4 | [
"MIT"
] | 2 | 2017-10-23T01:13:53.000Z | 2018-03-03T12:07:35.000Z | src/exec/AirWaves.cpp | LoganBarnes/AirWaves | c1d95643f59663c6397eef81a8c49fb9c9e8bec4 | [
"MIT"
] | null | null | null | // ////////////////////////////////////////////////////////////
// Created on 10/21/2017.
// Copyright (c) 2017. All rights reserved.
// ___________________________$$$$$$$\__________
// | $$\ $$\ $$ __$$\ | ||
// |_$$ |___$$ |_$$\______$$\__$$ |__$$ |_____|_||
// | $$ | $$ | $$$\ $$$ | $$$... | 32.852273 | 106 | 0.532861 | LoganBarnes |
5ab61dbbcf8d899c3ce55bd6e82c6688576687f7 | 396 | cpp | C++ | src/temoto_er_manager_node.cpp | temoto-framework/temoto_er_manager | abd720e8fa60ab63238ee96d1ebfd353c7201652 | [
"Apache-2.0"
] | null | null | null | src/temoto_er_manager_node.cpp | temoto-framework/temoto_er_manager | abd720e8fa60ab63238ee96d1ebfd353c7201652 | [
"Apache-2.0"
] | null | null | null | src/temoto_er_manager_node.cpp | temoto-framework/temoto_er_manager | abd720e8fa60ab63238ee96d1ebfd353c7201652 | [
"Apache-2.0"
] | null | null | null | #include "ros/ros.h"
#include "temoto_er_manager/temoto_er_manager.h"
#include "temoto_resource_registrar/temoto_logging.h"
//#include <sstream>
int main(int argc, char** argv)
{
TEMOTO_LOG_ATTR.initialize("er_manager");
ros::init(argc, argv, TEMOTO_LOG_ATTR.getSubsystemName());
// Create instance of process m... | 20.842105 | 60 | 0.739899 | temoto-framework |
5ab71f69366ffe390fb3490effcd583ef9930ea4 | 7,419 | cpp | C++ | library/lattice/test/src/usage_tetengo.lattice.viterbi_cpp.cpp | tetengo/tetengo | 66e0d03635583c25be4320171f3cc1e7f40a56e6 | [
"MIT"
] | null | null | null | library/lattice/test/src/usage_tetengo.lattice.viterbi_cpp.cpp | tetengo/tetengo | 66e0d03635583c25be4320171f3cc1e7f40a56e6 | [
"MIT"
] | 41 | 2021-06-25T14:20:29.000Z | 2022-01-16T02:50:50.000Z | library/lattice/test/src/usage_tetengo.lattice.viterbi_cpp.cpp | tetengo/tetengo | 66e0d03635583c25be4320171f3cc1e7f40a56e6 | [
"MIT"
] | null | null | null | /*! \file
\brief The usage of Viterbi search.
Copyright (C) 2019-2022 kaoru https://www.tetengo.org/
*/
#include "usage_tetengo.lattice.viterbi_cpp.hpp"
// [viterbi]
#include <algorithm>
#include <any>
#include <cassert>
#include <iterator>
#include <memory>
#include <string>
#include <utilit... | 39.887097 | 118 | 0.503841 | tetengo |
5ac62aa436914e05618216e226b45e69534a9e4f | 2,150 | cpp | C++ | engine/source/resources/ResourcesCache.cpp | lechkulina/RealmsOfSteel | adeb53295abfa236a273c2641f3f9f4d4c6110e1 | [
"Apache-2.0"
] | null | null | null | engine/source/resources/ResourcesCache.cpp | lechkulina/RealmsOfSteel | adeb53295abfa236a273c2641f3f9f4d4c6110e1 | [
"Apache-2.0"
] | null | null | null | engine/source/resources/ResourcesCache.cpp | lechkulina/RealmsOfSteel | adeb53295abfa236a273c2641f3f9f4d4c6110e1 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2017 Lech Kulina
*
* This file is part of the Realms Of Steel.
* For conditions of distribution and use, see copyright details in the LICENSE file.
*/
#include <resources/ResourcesCache.h>
#include "StaticResourcesCache.h"
ros::Factory<ros::ResourcesCache> ros::ResourcesCache::factory;
ros::Res... | 35.833333 | 101 | 0.654884 | lechkulina |
5ac9ec967c2c631b50297e87e47bbeac07526f5a | 1,888 | cpp | C++ | classes/Particle.cpp | kamilwojcik/cfluxim | 64b3e3f0ed09fc1b5ba55d9e020dcb0936e9793a | [
"MIT"
] | null | null | null | classes/Particle.cpp | kamilwojcik/cfluxim | 64b3e3f0ed09fc1b5ba55d9e020dcb0936e9793a | [
"MIT"
] | null | null | null | classes/Particle.cpp | kamilwojcik/cfluxim | 64b3e3f0ed09fc1b5ba55d9e020dcb0936e9793a | [
"MIT"
] | null | null | null | #include "Particle.h"
#include "Coords.h"
#include "Momentum.h"
#include <iostream>
////////////////////////////////////
//set
void Particle::SetPosition(Coords pos)
{
position=pos;
position.SetSystem(eCoordinateSystem::carthesian);
return;
}
void Particle::SetPosition(double x, double y, double ... | 16.136752 | 127 | 0.606992 | kamilwojcik |
62c0cde3bb42f636352c517ada50fbd762ac4c31 | 6,583 | cpp | C++ | bin/lvdtest/test__sst__NonNull.cpp | vdods/lvd | 864eaa25bdaddfc0dc7e788e693ebae3b42597be | [
"Apache-2.0"
] | null | null | null | bin/lvdtest/test__sst__NonNull.cpp | vdods/lvd | 864eaa25bdaddfc0dc7e788e693ebae3b42597be | [
"Apache-2.0"
] | null | null | null | bin/lvdtest/test__sst__NonNull.cpp | vdods/lvd | 864eaa25bdaddfc0dc7e788e693ebae3b42597be | [
"Apache-2.0"
] | null | null | null | // 2021.02.03 - Copyright Victor Dods - Licensed under Apache 2.0
#include "lvd/req.hpp"
#include "lvd/test.hpp"
// #include "lvd/type.hpp"
// #include "lvd/type_string_of.hpp"
#include "NonNull.hpp"
namespace lvd {
namespace sst {
struct FancyThing {
int x;
float y;
bool operator== (FancyThing const &o... | 34.830688 | 123 | 0.60322 | vdods |
62c2f8565fb7ed356604fb8ca94f86dd2cdb5638 | 174 | cpp | C++ | online-judges/leetcode/weekly_contests/weekly_contest_179/1376_Time Needed to Inform All Employees.cpp | zerefwayne/DSA | c767c8ffc52d8da260291217e4dfdd533c329c97 | [
"MIT"
] | 1 | 2020-10-02T01:54:07.000Z | 2020-10-02T01:54:07.000Z | online-judges/leetcode/weekly_contests/weekly_contest_179/1376_Time Needed to Inform All Employees.cpp | zerefwayne/data-structure-and-algorithms | c767c8ffc52d8da260291217e4dfdd533c329c97 | [
"MIT"
] | null | null | null | online-judges/leetcode/weekly_contests/weekly_contest_179/1376_Time Needed to Inform All Employees.cpp | zerefwayne/data-structure-and-algorithms | c767c8ffc52d8da260291217e4dfdd533c329c97 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
class Solution
{
public:
int numOfMinutes(int n, int headID, vector<int> &manager, vector<int> &informTime)
{
}
}; | 15.818182 | 86 | 0.66092 | zerefwayne |
62c33d59a4f08532def929a8b9aa9d6913e38ef0 | 1,802 | cpp | C++ | UVA/diminosFin.cpp | sourav025/algorithms-practices | 987932fe0b995c61fc40d1b5a7da18dce8492752 | [
"MIT"
] | null | null | null | UVA/diminosFin.cpp | sourav025/algorithms-practices | 987932fe0b995c61fc40d1b5a7da18dce8492752 | [
"MIT"
] | null | null | null | UVA/diminosFin.cpp | sourav025/algorithms-practices | 987932fe0b995c61fc40d1b5a7da18dce8492752 | [
"MIT"
] | null | null | null | #include<stdio.h>
#include<string.h>
#include<algorithm>
#include<iostream>
#include<vector>
using namespace std;
vector <int> v1[1000000],v2[1000000],res;
int vis[1000000],cnt,com[1000000],ans[1000000];
void reset(int n)
{
for(int i=0;i<=n;i++)
{
com[i]=0;
ans[i]=0;
//in[i... | 19.170213 | 48 | 0.324639 | sourav025 |
62c41e4d2e1efed177098d47a57bbe9d1f250c3f | 686 | cpp | C++ | cpp/template_disambiguator.cpp | ab396356/little_test_programs | 60dcd0b4ac7919ebf28b5cc5e4ea5c2292b83eb2 | [
"Unlicense"
] | null | null | null | cpp/template_disambiguator.cpp | ab396356/little_test_programs | 60dcd0b4ac7919ebf28b5cc5e4ea5c2292b83eb2 | [
"Unlicense"
] | null | null | null | cpp/template_disambiguator.cpp | ab396356/little_test_programs | 60dcd0b4ac7919ebf28b5cc5e4ea5c2292b83eb2 | [
"Unlicense"
] | null | null | null | //
// The `template` disambiguator for dependent names, C++98.
//
// http://en.cppreference.com/w/cpp/language/dependent_name
//
namespace
{
template <typename Obj>
class type_obj_cls
{
public:
template <typename Fail>
void type_fail_func() const
{
}
template <typename Ok>
void type_ok_func... | 15.953488 | 80 | 0.655977 | ab396356 |
62cc0a4a616b4b724ebc52c7a2a72579db34d28d | 9,634 | hpp | C++ | OptimCore/include/dynamicModel.hpp | fidelechevarria/DeepAero | db3c41e4991a6a345c6461110b8754f8c96c3cbb | [
"MIT"
] | null | null | null | OptimCore/include/dynamicModel.hpp | fidelechevarria/DeepAero | db3c41e4991a6a345c6461110b8754f8c96c3cbb | [
"MIT"
] | null | null | null | OptimCore/include/dynamicModel.hpp | fidelechevarria/DeepAero | db3c41e4991a6a345c6461110b8754f8c96c3cbb | [
"MIT"
] | 1 | 2020-03-24T15:07:03.000Z | 2020-03-24T15:07:03.000Z | /**
* \file dynamicModel.hpp
*
* TSIP state machine related functions
* The main workflow with the functions included in this file should be the following:\n
*
* \par Receiving TSIP
* NOTE: User should not care about the contents of TsipRx_t. There is no need to manually manipulate this struct by the end user.
... | 33.33564 | 130 | 0.434399 | fidelechevarria |
62cdc3f44b8a7b9dfc841063aed8bc67db87684d | 315 | hpp | C++ | src/GeniEngine/Renderer.hpp | maws/geniengine | 34329189a12e99a026b61eb21876f52d7bbbfde4 | [
"WTFPL"
] | null | null | null | src/GeniEngine/Renderer.hpp | maws/geniengine | 34329189a12e99a026b61eb21876f52d7bbbfde4 | [
"WTFPL"
] | null | null | null | src/GeniEngine/Renderer.hpp | maws/geniengine | 34329189a12e99a026b61eb21876f52d7bbbfde4 | [
"WTFPL"
] | null | null | null | #pragma once
#include "Node.hpp"
#include "Sprite.hpp"
#define NUM_NODES 1500
struct AsyncAsset;
namespace GeniEngine
{
class Renderer
{
public:
Renderer();
~Renderer();
void render();
private:
AsyncAsset* asset_;
Node* root_;
Node* master_;
Node* slave_;
Node* nodes[NUM_NODES];
};
} | 10.5 | 25 | 0.666667 | maws |
62d8069a9721d2a1f9ece5d66e18ad33fd388d77 | 85 | cpp | C++ | source/Pch.cpp | Leinnan/carpg | ff484f094abe381b0deec3c52ef33725f765ff1f | [
"MIT"
] | 19 | 2015-05-30T12:14:07.000Z | 2021-05-26T19:17:21.000Z | source/Pch.cpp | Leinnan/carpg | ff484f094abe381b0deec3c52ef33725f765ff1f | [
"MIT"
] | 402 | 2016-02-26T08:39:21.000Z | 2021-07-06T16:47:16.000Z | source/Pch.cpp | Leinnan/carpg | ff484f094abe381b0deec3c52ef33725f765ff1f | [
"MIT"
] | 21 | 2015-07-28T14:11:39.000Z | 2020-12-11T07:54:09.000Z | // file used to create Pre Compiled Header
#define PRECOMPILED_INFO
#include "Pch.h"
| 21.25 | 42 | 0.776471 | Leinnan |
62def24ef80fd9ec73e120f881ca8a4389f52399 | 427 | hpp | C++ | tsl/include/tsl/util/println.hpp | jeffrey-cochran/tsl | a9ae6fb2755fcbd1311c16e9faff87445419f7f0 | [
"Apache-2.0",
"MIT"
] | 4 | 2020-03-05T04:34:28.000Z | 2022-02-17T04:39:51.000Z | tsl/include/tsl/util/println.hpp | jeffrey-cochran/tsl | a9ae6fb2755fcbd1311c16e9faff87445419f7f0 | [
"Apache-2.0",
"MIT"
] | 47 | 2019-02-21T11:16:20.000Z | 2019-07-10T20:30:13.000Z | tsl/include/tsl/util/println.hpp | jovobe/tsl | 6c024a2325d1c6cb3019b4169a6f3f214a224587 | [
"Apache-2.0",
"MIT"
] | 4 | 2020-06-20T15:36:11.000Z | 2022-01-04T03:22:45.000Z | #ifndef TSL_PRINTLN_HPP
#define TSL_PRINTLN_HPP
#include <iostream>
#include <fmt/core.h>
using std::endl;
using fmt::print;
namespace tsl
{
/**
* @brief Prints the given string formated like `fmt::print` but adds a "\n" after it.
*/
template <typename S, typename... Args>
inline void println(const S& format_st... | 15.814815 | 86 | 0.679157 | jeffrey-cochran |
62e45a169aac7a840b40f384fa5572561ae9c918 | 1,885 | cpp | C++ | tools/tester/src/test/analysis/domains/numeric/numeric_api_builder.cpp | gdslang/summy | bd450278f18859eb94d1f30b7b878bbb1b94c42c | [
"Apache-2.0"
] | null | null | null | tools/tester/src/test/analysis/domains/numeric/numeric_api_builder.cpp | gdslang/summy | bd450278f18859eb94d1f30b7b878bbb1b94c42c | [
"Apache-2.0"
] | null | null | null | tools/tester/src/test/analysis/domains/numeric/numeric_api_builder.cpp | gdslang/summy | bd450278f18859eb94d1f30b7b878bbb1b94c42c | [
"Apache-2.0"
] | null | null | null | /*
* numeric_api_builder.cpp
*
* Created on: Mar 9, 2015
* Author: Julian Kranz
*/
#include <summy/test/analysis/domains/numeric_api_builder.h>
#include <summy/value_set/vs_finite.h>
using namespace summy;
using namespace analysis::api;
nab_lin::nab_lin(id_shared_t id) {
builder = [=]() {
num_var *va... | 21.666667 | 83 | 0.666313 | gdslang |
62e48cf49c76f725efd61d8e532a58b07eac430c | 1,006 | cpp | C++ | src/Scene/LightList.cpp | alekseyt/Cluster | 5a8d80faacc65445d44d87558975d7dee54b8b5e | [
"MIT"
] | null | null | null | src/Scene/LightList.cpp | alekseyt/Cluster | 5a8d80faacc65445d44d87558975d7dee54b8b5e | [
"MIT"
] | null | null | null | src/Scene/LightList.cpp | alekseyt/Cluster | 5a8d80faacc65445d44d87558975d7dee54b8b5e | [
"MIT"
] | null | null | null | #include "LightList.h"
#include <algorithm>
#include <glm/gtc/type_ptr.hpp>
bgfx::VertexDecl LightList::PointLightVertex::decl;
PointLightList::PointLightList() : buffer(BGFX_INVALID_HANDLE) {}
void PointLightList::init()
{
LightList::PointLightVertex::init();
buffer =
bgfx::createDynamicVertexBuffe... | 26.473684 | 120 | 0.677932 | alekseyt |
62e6877ab896b9db5c8a623d4489998701101132 | 2,181 | cpp | C++ | Framework/FrameworkTestScreen.cpp | jerryrox/RenkoSDLFramework | 0db6948c067b101a3702128e61d601dfe879aba1 | [
"MIT"
] | null | null | null | Framework/FrameworkTestScreen.cpp | jerryrox/RenkoSDLFramework | 0db6948c067b101a3702128e61d601dfe879aba1 | [
"MIT"
] | null | null | null | Framework/FrameworkTestScreen.cpp | jerryrox/RenkoSDLFramework | 0db6948c067b101a3702128e61d601dfe879aba1 | [
"MIT"
] | null | null | null | #ifdef _DEBUG
#include "FrameworkTestScreen.h"
#include "FrameworkTestButton.h"
#include "UIAnimatedSprite.h"
#include "MusicController.h"
#include "AudioManager.h"
#include "Transform.h"
#include "UITexture.h"
#include "UISprite.h"
#include "UILabel.h"
#include "Input.h"
FrameworkTestScreen::FrameworkTestScreen()
{... | 23.706522 | 83 | 0.724438 | jerryrox |
62e8970173e31a43b82aee1710390a2232079a8a | 251 | cpp | C++ | Source/Private/Setting/AndroidAttachThingSettings.cpp | Monocluar/AndroidAttachThing | 8dc1f3d472259aaadde63da832fadafce56e1d99 | [
"Apache-2.0"
] | null | null | null | Source/Private/Setting/AndroidAttachThingSettings.cpp | Monocluar/AndroidAttachThing | 8dc1f3d472259aaadde63da832fadafce56e1d99 | [
"Apache-2.0"
] | null | null | null | Source/Private/Setting/AndroidAttachThingSettings.cpp | Monocluar/AndroidAttachThing | 8dc1f3d472259aaadde63da832fadafce56e1d99 | [
"Apache-2.0"
] | null | null | null | #include "Setting/AndroidAttachThingSettings.h"
UAndroidAttachThingSettings::UAndroidAttachThingSettings(const FObjectInitializer& ObjectInitializer)
:Super(ObjectInitializer)
{
bWriteCalendarPermission = false;
bReadCalendarPermission = false;
} | 27.888889 | 101 | 0.85259 | Monocluar |
62e9de8904c85bb172bcf325dd7285545a75908c | 328 | cpp | C++ | CrashReporter/Main.cpp | LuxenBZH/ositools | e23e51039b8b32c944186aad16b64a7f0f610d5c | [
"MIT"
] | 192 | 2019-12-30T23:42:48.000Z | 2022-03-28T04:43:47.000Z | CrashReporter/Main.cpp | LuxenBZH/ositools | e23e51039b8b32c944186aad16b64a7f0f610d5c | [
"MIT"
] | 74 | 2020-01-13T21:46:09.000Z | 2022-03-19T14:53:40.000Z | CrashReporter/Main.cpp | Norbyte/bg3se | 209275d5c99d92c65f47c07906f4e9bdcf28a073 | [
"MIT"
] | 30 | 2019-10-24T23:26:38.000Z | 2022-03-26T22:11:25.000Z | #include "stdafx.h"
#include "CrashReporter.h"
int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
_In_opt_ HINSTANCE hPrevInstance,
_In_ LPWSTR lpCmdLine,
_In_ int nCmdShow)
{
CrashReporter reporter(GetCommandLineW());
reporter.Report();
retu... | 21.866667 | 54 | 0.60061 | LuxenBZH |
62f33cc9840cce05378d1814a15c579f461328ca | 7,172 | inl | C++ | RaychelEngine/include/Raychel/Core/RaychelMath/Impl/vec2Impl.inl | Weckyy702/RaychelCPU | a372ac0dfa3339cac19b06b11ec916ae275b67c0 | [
"MIT"
] | 4 | 2020-12-07T21:57:14.000Z | 2021-12-06T10:39:18.000Z | RaychelEngine/include/Raychel/Core/RaychelMath/Impl/vec2Impl.inl | Weckyy702/RaychelCPU | a372ac0dfa3339cac19b06b11ec916ae275b67c0 | [
"MIT"
] | null | null | null | RaychelEngine/include/Raychel/Core/RaychelMath/Impl/vec2Impl.inl | Weckyy702/RaychelCPU | a372ac0dfa3339cac19b06b11ec916ae275b67c0 | [
"MIT"
] | 2 | 2021-04-08T12:05:03.000Z | 2021-12-06T09:23:32.000Z | /**
*\file vec2Impl.inl
*\author weckyy702 (weckyy702@gmail.com)
*\brief Implementation for 2D vectors
*\date 2021-03-23
*
*MIT License
*Copyright (c) [2021] [Weckyy702 (weckyy702@gmail.com | https://github.com/Weckyy702)]
*Permission is hereby granted, free of charge, to any person obtaining a copy
*of this s... | 21.865854 | 114 | 0.596486 | Weckyy702 |
62f7c110422987bdf56f7b6f0533347c1efac870 | 2,111 | cpp | C++ | src/xray/maya_animation/sources/sisl/sh1922.cpp | ixray-team/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | 3 | 2021-10-30T09:36:14.000Z | 2022-03-26T17:00:06.000Z | src/xray/maya_animation/sources/sisl/sh1922.cpp | acidicMercury8/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | null | null | null | src/xray/maya_animation/sources/sisl/sh1922.cpp | acidicMercury8/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:08.000Z | 2022-03-26T17:00:08.000Z | #include "pch.h"
#define SH1922
#include "sislP.h"
#if defined(SISLNEEDPROTOTYPES)
void
sh1922(sisl_double et[],int im,int ik,sisl_double etau[],int in,sisl_double ea[],
int nfirst[],int nlast[],int *jstat)
#else
void sh1922(et,im,ik,etau,in,ea,nfirst,nlast,jstat)
sisl_double et[];
int im;
int... | 16.622047 | 87 | 0.495026 | ixray-team |
62fac4600fdd6a89b4d0eb319f49083d3c1bf9e1 | 1,757 | cpp | C++ | src/Entity.cpp | andrewd440/Atlas-ECS | e1b5889d6207abe577d71f841f3a02e6ab762062 | [
"MIT"
] | 8 | 2015-04-27T05:05:28.000Z | 2021-05-11T15:56:29.000Z | src/Entity.cpp | andrewd440/Atlas-ECS | e1b5889d6207abe577d71f841f3a02e6ab762062 | [
"MIT"
] | null | null | null | src/Entity.cpp | andrewd440/Atlas-ECS | e1b5889d6207abe577d71f841f3a02e6ab762062 | [
"MIT"
] | null | null | null | #include "Entity.h"
#include "EntityManager.h"
#include "Utilities.h"
#include "World.h"
#include "ComponentIdentifierManager.h"
#include <iostream>
namespace Atlas
{
Entity::Entity(World& world, ID id)
: mEntityManager(world.getEntityManager())
, mID(id)
, mIsActive(false)
, mComponentBits()
, mSystemBits(... | 17.22549 | 65 | 0.667615 | andrewd440 |
62fbbcbda48775aef5d339a5a921167d046b05df | 531 | hpp | C++ | github/polylogarithm/v322/src/Li3.hpp | gxusthjw/JPolylogarithm | fd5f4e82815d87793dc9099eaa8acbf4be89e8c2 | [
"Apache-2.0"
] | null | null | null | github/polylogarithm/v322/src/Li3.hpp | gxusthjw/JPolylogarithm | fd5f4e82815d87793dc9099eaa8acbf4be89e8c2 | [
"Apache-2.0"
] | null | null | null | github/polylogarithm/v322/src/Li3.hpp | gxusthjw/JPolylogarithm | fd5f4e82815d87793dc9099eaa8acbf4be89e8c2 | [
"Apache-2.0"
] | null | null | null | // ====================================================================
// This file is part of Polylogarithm.
//
// Polylogarithm is licenced under the GNU Lesser General Public
// License (GNU LGPL) version 3.
// ====================================================================
#pragma once
#include <complex>
na... | 26.55 | 71 | 0.538606 | gxusthjw |
62fcddfb8c023eefd196d5c2ea4cfb0b9efa27cc | 1,662 | cpp | C++ | tests/test_requests.cpp | Garcia6l20/cppcoro-http | 626e4fd39acc76d70f31b3b3f78dc070691a2c2d | [
"MIT"
] | 10 | 2020-09-30T15:11:58.000Z | 2022-02-15T10:50:17.000Z | tests/test_requests.cpp | Garcia6l20/cppcoro-http | 626e4fd39acc76d70f31b3b3f78dc070691a2c2d | [
"MIT"
] | 1 | 2021-01-01T14:43:47.000Z | 2021-01-11T04:29:20.000Z | tests/test_requests.cpp | Garcia6l20/cppcoro-http | 626e4fd39acc76d70f31b3b3f78dc070691a2c2d | [
"MIT"
] | 2 | 2021-02-10T01:54:13.000Z | 2021-04-01T05:47:58.000Z | #define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <cppcoro/http/http_request.hpp>
#include <cppcoro/http/http_response.hpp>
#include <cppcoro/task.hpp>
#include <cppcoro/sync_wait.hpp>
#include <cppcoro/when_all.hpp>
#include <cppcoro/is_awaitable.hpp>
#include <cppcoro/io_service.hpp>
#include <cppcoro/o... | 35.361702 | 82 | 0.513237 | Garcia6l20 |
1a0172d50a434985e10da1ac6bae2efaccf54d36 | 531 | cpp | C++ | src/Utils/IDGenerator/IDGenerator.cpp | QLaille/Queenside | 4d9e0f776cd7bb4ecc55686317ebca032032ccba | [
"MIT"
] | null | null | null | src/Utils/IDGenerator/IDGenerator.cpp | QLaille/Queenside | 4d9e0f776cd7bb4ecc55686317ebca032032ccba | [
"MIT"
] | null | null | null | src/Utils/IDGenerator/IDGenerator.cpp | QLaille/Queenside | 4d9e0f776cd7bb4ecc55686317ebca032032ccba | [
"MIT"
] | null | null | null | #include "IDGenerator.hpp"
namespace Queenside {
std::string generateClientID()
{
std::string id;
id = "C" + std::to_string(std::time(NULL));
id += std::to_string(std::rand() % 10000);
return (id);
}
std::string generateRoomID()
{
std::string id;
id = "R" + std::to_string(std::time(NULL));
id += std::... | 17.129032 | 45 | 0.608286 | QLaille |
1a01bff6c33858a05f0de54e90f9bb9944ea2057 | 2,639 | cpp | C++ | test/src/compression_codes_builder.test.cpp | hhsdev/huffman-compression | 5c538f54a37c5ada3117c92ec70428a01c75d113 | [
"MIT"
] | null | null | null | test/src/compression_codes_builder.test.cpp | hhsdev/huffman-compression | 5c538f54a37c5ada3117c92ec70428a01c75d113 | [
"MIT"
] | null | null | null | test/src/compression_codes_builder.test.cpp | hhsdev/huffman-compression | 5c538f54a37c5ada3117c92ec70428a01c75d113 | [
"MIT"
] | null | null | null | #include <cmath>
#include "./compression_codes_builder.hpp"
#include "catch.hpp"
class MockNode {
public:
MockNode(int frequency, char value)
: frequency(frequency),
value(value),
left(nullptr),
right(nullptr),
height(0) {
height = calculateHeight();
}
bool hasChar() c... | 25.133333 | 67 | 0.6169 | hhsdev |
1a068369e3e97607b0e524b0edc85a93d09be347 | 1,144 | cpp | C++ | src/autowiring/CurrentContextPusher.cpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 87 | 2015-01-18T00:43:06.000Z | 2022-02-11T17:40:50.000Z | src/autowiring/CurrentContextPusher.cpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 274 | 2015-01-03T04:50:49.000Z | 2021-03-08T09:01:09.000Z | src/autowiring/CurrentContextPusher.cpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 15 | 2015-09-30T20:58:43.000Z | 2020-12-19T21:24:56.000Z | // Copyright (C) 2012-2018 Leap Motion, Inc. All rights reserved.
#include "stdafx.h"
#include "CurrentContextPusher.h"
#include "GlobalCoreContext.h"
CurrentContextPusher::CurrentContextPusher(void):
m_prior(CoreContext::CurrentContextOrNull())
{}
CurrentContextPusher::CurrentContextPusher(CoreContext& context):
... | 26 | 96 | 0.768357 | CaseyCarter |
1a07bc6aa5cbbe7083e927d9c9ba94681b5954d2 | 49,746 | cpp | C++ | src/TopologyOracle.cpp | manuhalo/PLACeS | 1574a34a2a98468e72d072cc9d1f2b32fcee38f2 | [
"Apache-2.0"
] | null | null | null | src/TopologyOracle.cpp | manuhalo/PLACeS | 1574a34a2a98468e72d072cc9d1f2b32fcee38f2 | [
"Apache-2.0"
] | 1 | 2015-04-24T10:10:51.000Z | 2015-06-18T08:32:16.000Z | src/TopologyOracle.cpp | manuhalo/PLACeS | 1574a34a2a98468e72d072cc9d1f2b32fcee38f2 | [
"Apache-2.0"
] | null | null | null | #include "TopologyOracle.hpp"
#include "Scheduler.hpp"
#include "boost/random/discrete_distribution.hpp"
#include "boost/random/uniform_int.hpp"
#include <boost/lexical_cast.hpp>
#include <initializer_list>
#include <boost/random/mersenne_twister.hpp>
#include <cmath>
#define ILOUSESTL
#define IL_STD
#include "ilcplex/... | 47.649425 | 124 | 0.628855 | manuhalo |
1a0f22de7fbcec8180c6b15bc933cde7dbffd50b | 3,082 | cpp | C++ | src/TCPClient.cpp | mchresse/BeeIoT | 9289b9408168ddc223b073083f28e9c0aece5ede | [
"BSD-3-Clause"
] | null | null | null | src/TCPClient.cpp | mchresse/BeeIoT | 9289b9408168ddc223b073083f28e9c0aece5ede | [
"BSD-3-Clause"
] | null | null | null | src/TCPClient.cpp | mchresse/BeeIoT | 9289b9408168ddc223b073083f28e9c0aece5ede | [
"BSD-3-Clause"
] | 1 | 2020-12-22T18:55:22.000Z | 2020-12-22T18:55:22.000Z | //*******************************************************************
// TCPClient.cpp
// from Project https://github.com/mchresse/BeeIoT
//
// Description:
// TCP Client session Library
//
//-------------------------------------------------------------------
// Copyright (c) 2019-present, Randolph Esser
// All right... | 30.215686 | 106 | 0.630759 | mchresse |
1a115bbb9dd54b83f6bfc833625783b1a49e933f | 10,268 | cpp | C++ | Code/BBearEditor/Editor/FileSystem/BBFileSystemManager.cpp | xiaoxianrouzhiyou/BBearEditor | 0f1b779d87c297661f9a1e66d0613df43f5fe46b | [
"MIT"
] | 26 | 2021-06-30T02:19:30.000Z | 2021-07-23T08:38:46.000Z | Code/BBearEditor/Editor/FileSystem/BBFileSystemManager.cpp | lishangdian/BBearEditor-2.0 | 1f4b463ef756ed36cc15d10abae822efc400c4d7 | [
"MIT"
] | null | null | null | Code/BBearEditor/Editor/FileSystem/BBFileSystemManager.cpp | lishangdian/BBearEditor-2.0 | 1f4b463ef756ed36cc15d10abae822efc400c4d7 | [
"MIT"
] | 3 | 2021-09-01T08:19:30.000Z | 2021-12-28T19:06:40.000Z | #include "BBFileSystemManager.h"
#include "Render/BBOpenGLWidget.h"
#include "BBFileSystemDataManager.h"
#include "BBFolderTreeWidget.h"
#include "BBFileListWidget.h"
#include "BBFilePathBarWidget.h"
#include "Scene/BBSceneManager.h"
BBFileSystemManager::BBFileSystemManager(BBFolderTreeWidget *pFolderTreeWidget,
... | 34.92517 | 130 | 0.734612 | xiaoxianrouzhiyou |
1a1983da37bad19f34302c33792a75cd57bcb30a | 7,979 | hpp | C++ | src/include/concore/any_executor.hpp | lucteo/concore | ffbc3b8cead7498ddad601dcf357fa72529f81ad | [
"MIT"
] | 52 | 2020-05-23T21:34:33.000Z | 2022-02-23T03:06:50.000Z | src/include/concore/any_executor.hpp | lucteo/concore | ffbc3b8cead7498ddad601dcf357fa72529f81ad | [
"MIT"
] | null | null | null | src/include/concore/any_executor.hpp | lucteo/concore | ffbc3b8cead7498ddad601dcf357fa72529f81ad | [
"MIT"
] | 2 | 2021-05-06T18:41:25.000Z | 2021-07-24T03:50:42.000Z | /**
* @file any_executor.hpp
* @brief Defines the @ref concore::v1::any_executor "any_executor" class
*/
#pragma once
#include "task.hpp"
#include "_concepts/_concepts_executor.hpp"
#include "_cpo/_cpo_execute.hpp"
#include <functional>
#include <typeinfo>
#include <utility>
#include <cstddef>
#include <casse... | 32.971074 | 100 | 0.65146 | lucteo |
1a1a9fb47b1adf06ca5cabc79717c57e0143b54d | 546 | cpp | C++ | aliLuaTest/test_aliLuaExt_execPoolItem.cpp | hendrik-brower/ali | c9d8740fecdb486b7be00b4257ce6d79ea45aead | [
"MIT"
] | null | null | null | aliLuaTest/test_aliLuaExt_execPoolItem.cpp | hendrik-brower/ali | c9d8740fecdb486b7be00b4257ce6d79ea45aead | [
"MIT"
] | null | null | null | aliLuaTest/test_aliLuaExt_execPoolItem.cpp | hendrik-brower/ali | c9d8740fecdb486b7be00b4257ce6d79ea45aead | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include <aliLuaCore.hpp>
#include <aliLuaExt.hpp>
#include <aliLuaTest_util.hpp>
namespace {
using Item = aliLuaExt::ExecPoolItem;
using Future = aliLuaCore::Future;
using BPtr = aliLuaTest::Util::BPtr;
}
TEST(aliLuaExtExecPoolItem, general) {
BPtr bPtr(new bool(false));
... | 23.73913 | 48 | 0.648352 | hendrik-brower |
1a1baa3e2ce502e645f5c0c49e999c66d4f06726 | 1,292 | cpp | C++ | Examples/exMexicanHat.cpp | davidkleiven/VISA | 1b07197a3ea1f88c40e7d9249e08deee360ea814 | [
"MIT"
] | 2 | 2018-05-27T12:49:40.000Z | 2018-09-05T05:50:51.000Z | Examples/exMexicanHat.cpp | davidkleiven/VISA | 1b07197a3ea1f88c40e7d9249e08deee360ea814 | [
"MIT"
] | null | null | null | Examples/exMexicanHat.cpp | davidkleiven/VISA | 1b07197a3ea1f88c40e7d9249e08deee360ea814 | [
"MIT"
] | 1 | 2018-04-11T10:05:49.000Z | 2018-04-11T10:05:49.000Z | //#include "visualizer.hpp"
//#include "windowHandler.hpp"
#include "visa.hpp"
#include <armadillo>
#include <cmath>
#include <iostream>
using namespace std;
void mexicanHat( double freq, arma::mat &matrix );
int main( int argc, char** argv )
{
visa::WindowHandler plots;
try
{
visa::Colormaps::Colormap_t cm... | 22.666667 | 82 | 0.609133 | davidkleiven |
1a1c9a3bca883457bad218e63b5f309fba4d3b70 | 200 | cpp | C++ | 669A.cpp | seikhchilli/codeforces-problemset | 7b64c91ef9eb9e36b2931335ae131648de0de285 | [
"MIT"
] | 3 | 2021-09-01T13:27:29.000Z | 2021-09-24T12:35:37.000Z | 669A.cpp | seikhchilli/codeforces-problemset | 7b64c91ef9eb9e36b2931335ae131648de0de285 | [
"MIT"
] | null | null | null | 669A.cpp | seikhchilli/codeforces-problemset | 7b64c91ef9eb9e36b2931335ae131648de0de285 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int n;
cin>>n;
(n%3 == 0) ? cout<<(n/3 * 2)<<endl : cout<<(n/3 * 2 + 1)<<endl;
}
| 15.384615 | 65 | 0.56 | seikhchilli |
1a1e75cb9d2d07d6c324f77e7aac441c9aa5f6fe | 3,884 | cpp | C++ | Tefnout/src/Tefnout/Network/Address.cpp | JeremyBois/Tefnout | 3e0d79c96857a395d2f00a61bb25a49ce39c8c89 | [
"Apache-2.0",
"MIT"
] | null | null | null | Tefnout/src/Tefnout/Network/Address.cpp | JeremyBois/Tefnout | 3e0d79c96857a395d2f00a61bb25a49ce39c8c89 | [
"Apache-2.0",
"MIT"
] | null | null | null | Tefnout/src/Tefnout/Network/Address.cpp | JeremyBois/Tefnout | 3e0d79c96857a395d2f00a61bb25a49ce39c8c89 | [
"Apache-2.0",
"MIT"
] | null | null | null | #include "Tefnout/Core/Debug.hpp"
#include "TefnoutPCH.hpp"
#include "Address.hpp"
#include "Tefnout/Utility/BitsController.hpp"
#include <cstdint>
#include <cstring>
namespace Tefnout
{
namespace Network
{
// IpAddress
IpAddress::IpAddress() : m_type(IpType::v4), m_ip{{127, 0, 0, 1}}
{
}
IpAddress::IpAddress(std... | 23.682927 | 93 | 0.575438 | JeremyBois |
1a21ccb02efde0d72c699ba771a64375f61253a6 | 3,508 | cpp | C++ | 1-Introduction/1.4-Ad_Hoc_Problems/08-Interesting_Real_Life_Problems,_Harder/EdyJunior/00403.cpp | IFCE-CP/CP3-solutions | 1abcabd9a06968184a55d3b0414637019014694c | [
"MIT"
] | 1 | 2017-11-16T10:56:17.000Z | 2017-11-16T10:56:17.000Z | 1-Introduction/1.4-Ad_Hoc_Problems/08-Interesting_Real_Life_Problems,_Harder/EdyJunior/00403.cpp | IFCE-CP/CP3-solutions | 1abcabd9a06968184a55d3b0414637019014694c | [
"MIT"
] | null | null | null | 1-Introduction/1.4-Ad_Hoc_Problems/08-Interesting_Real_Life_Problems,_Harder/EdyJunior/00403.cpp | IFCE-CP/CP3-solutions | 1abcabd9a06968184a55d3b0414637019014694c | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
string alpha[] = { { ".***..****...****.****..*****.*****..****.*...*.*****...***.*...*.*.....*...*.*...*..***..****...***..****...****.*****.*...*.*...*.*...*.*...*.*...*.*****......." },
{ "*...*.*...*.*...*.*...*.*.....*.....*.....*...*...*......*..*... | 35.08 | 188 | 0.273945 | IFCE-CP |
1a25abae44681d034b25da43b57df5706c2b4203 | 2,278 | cpp | C++ | src/system.cpp | fstromback/mymake | 1ccb9adbc5a336e29ca222f11e9368cdd026ee1b | [
"MIT"
] | 3 | 2017-05-30T11:29:06.000Z | 2021-09-04T15:32:23.000Z | src/system.cpp | fstromback/mymake | 1ccb9adbc5a336e29ca222f11e9368cdd026ee1b | [
"MIT"
] | 5 | 2016-01-22T20:06:19.000Z | 2019-02-03T18:30:58.000Z | src/system.cpp | fstromback/mymake | 1ccb9adbc5a336e29ca222f11e9368cdd026ee1b | [
"MIT"
] | null | null | null | #include "std.h"
#include "system.h"
#include "env.h"
#ifdef WINDOWS
const char envSeparator = ';';
EnvData allocEnv(nat entries, nat totalCount) {
nat count = entries + totalCount + 1;
return new char[count];
}
void freeEnv(EnvData data) {
char *d = (char *)data;
delete []d;
}
bool readEnv(EnvData env, nat &p... | 16.507246 | 58 | 0.597015 | fstromback |
1a26699515c69cb419f6d6543056a7a005e9afcd | 2,764 | cpp | C++ | src/_leetcode/leet_713.cpp | turesnake/leetPractice | a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b | [
"MIT"
] | null | null | null | src/_leetcode/leet_713.cpp | turesnake/leetPractice | a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b | [
"MIT"
] | null | null | null | src/_leetcode/leet_713.cpp | turesnake/leetPractice | a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b | [
"MIT"
] | null | null | null | /*
* ====================== leet_713.cpp ==========================
* -- tpr --
* CREATE -- 2020.06.12
* MODIFY --
* ----------------------------------------------------------
* 713. 乘积小于K的子数组
*/
#include "inn... | 26.075472 | 95 | 0.341172 | turesnake |
1a27784030603a5b2ecb3f49896d9b6d3ea6671e | 849 | cpp | C++ | sparta/src/EdgeFactory.cpp | dingiso/map | 5f1a45c8d9416ca8ba070de3af996a5e5f8deec7 | [
"MIT"
] | 44 | 2019-12-13T06:39:13.000Z | 2022-03-29T23:09:28.000Z | sparta/src/EdgeFactory.cpp | dingiso/map | 5f1a45c8d9416ca8ba070de3af996a5e5f8deec7 | [
"MIT"
] | 222 | 2020-01-14T21:58:56.000Z | 2022-03-31T20:05:12.000Z | sparta/src/EdgeFactory.cpp | dingiso/map | 5f1a45c8d9416ca8ba070de3af996a5e5f8deec7 | [
"MIT"
] | 19 | 2020-01-03T19:03:22.000Z | 2022-01-09T08:36:20.000Z | // <EdgeFactory> -*- C++ -*-
#include <algorithm>
#include <memory>
#include <string>
#include <vector>
#include "sparta/kernel/Vertex.hpp"
#include "sparta/kernel/EdgeFactory.hpp"
namespace sparta
{
EdgeFactory::~EdgeFactory(){}
void EdgeFactory::removeEdge(const sparta::Edge* edge) {
auto ei = std::find_if(... | 20.214286 | 60 | 0.537102 | dingiso |
1a280a665ed46dff649851a2ae1d1e748f55ce9c | 472 | cpp | C++ | examples/001-hello-world/example.cpp | MichaelTrikergiotis/mtl-examples | ac95c85a7d73847a2331da8b54e382b23d8f0a05 | [
"MIT"
] | 2 | 2021-01-10T13:55:24.000Z | 2021-09-02T17:07:55.000Z | examples/001-hello-world/example.cpp | MichaelTrikergiotis/mtl-examples | ac95c85a7d73847a2331da8b54e382b23d8f0a05 | [
"MIT"
] | null | null | null | examples/001-hello-world/example.cpp | MichaelTrikergiotis/mtl-examples | ac95c85a7d73847a2331da8b54e382b23d8f0a05 | [
"MIT"
] | null | null | null | // hello world using the mtl by Michael Trikergiotis
// 09/11/2020
//
// A simple example of how to print something to the console using mtl.
//
// Copyright (c) Michael Trikergiotis. All Rights Reserved.
// Licensed under the MIT license. See LICENSE in the project root for license information.
#include "../mtl/cons... | 29.5 | 91 | 0.71822 | MichaelTrikergiotis |
1a284c613b3ea2b6e669a618e9c5f9b629b5de6f | 5,074 | cc | C++ | src/writer/hlsl/generator_impl_constructor_test.cc | jhanssen/tint | 30c1f25a7a4e180419444c12046348edb0f8fdd0 | [
"Apache-2.0"
] | null | null | null | src/writer/hlsl/generator_impl_constructor_test.cc | jhanssen/tint | 30c1f25a7a4e180419444c12046348edb0f8fdd0 | [
"Apache-2.0"
] | null | null | null | src/writer/hlsl/generator_impl_constructor_test.cc | jhanssen/tint | 30c1f25a7a4e180419444c12046348edb0f8fdd0 | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 The Tint Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 30.751515 | 79 | 0.705558 | jhanssen |
1a2d90a3df9b489409607f49fdfd0b7734369ec4 | 11,294 | cpp | C++ | libs/Aether/source/base/Element.cpp | tkgstrator/SeedHack | 227566d993bdea7a2851a8fc664b539186509697 | [
"MIT"
] | 1 | 2021-02-04T07:27:46.000Z | 2021-02-04T07:27:46.000Z | libs/Aether/source/base/Element.cpp | tkgstrator/SeedHack | 227566d993bdea7a2851a8fc664b539186509697 | [
"MIT"
] | null | null | null | libs/Aether/source/base/Element.cpp | tkgstrator/SeedHack | 227566d993bdea7a2851a8fc664b539186509697 | [
"MIT"
] | null | null | null | #include <algorithm>
#include "Aether/base/Element.hpp"
#include <limits>
// Border size of highlight
#define HIGHLIGHT_SIZE 6
namespace Aether {
Colour Element::hiBG = Colour{255, 255, 255, 255};
Colour Element::hiBorder = Colour{255, 255, 255, 255};
Colour Element::hiSel = Colour{255, 255, 255, 255};
... | 27.149038 | 219 | 0.489995 | tkgstrator |
1a2e9f03206c01f78219315962dfa73d5aa9f25b | 1,055 | hpp | C++ | src/include/espbot_profiler.hpp | quackmore/esp8266-library | 8d9a556b54567d2f1609e98df0a241dbc2622328 | [
"Beerware"
] | 5 | 2020-03-31T22:21:02.000Z | 2022-01-07T13:26:02.000Z | src/include/espbot_profiler.hpp | quackmore/esp8266-library | 8d9a556b54567d2f1609e98df0a241dbc2622328 | [
"Beerware"
] | null | null | null | src/include/espbot_profiler.hpp | quackmore/esp8266-library | 8d9a556b54567d2f1609e98df0a241dbc2622328 | [
"Beerware"
] | null | null | null | /*
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <quackmore-ff@yahoo.com> wrote this file. As long as you retain this notice
* you can do whatever you want with this stuff. If we meet some day, and you
* think this stuff is worth it, you... | 27.051282 | 85 | 0.557346 | quackmore |
1a3961efe7b2e93019943234c207d1b6c96bca9b | 2,468 | cpp | C++ | Source/Core/Upload/ServerSync.cpp | igor-sadchenko/image-uploader | d559aa0d7319660a93b036821b7b99cc53e70c7e | [
"Apache-2.0"
] | 107 | 2015-03-13T08:58:26.000Z | 2022-03-14T02:56:36.000Z | Source/Core/Upload/ServerSync.cpp | igor-sadchenko/image-uploader | d559aa0d7319660a93b036821b7b99cc53e70c7e | [
"Apache-2.0"
] | 285 | 2015-03-12T23:08:54.000Z | 2022-02-20T15:22:31.000Z | Source/Core/Upload/ServerSync.cpp | igor-sadchenko/image-uploader | d559aa0d7319660a93b036821b7b99cc53e70c7e | [
"Apache-2.0"
] | 40 | 2015-03-14T13:37:08.000Z | 2021-08-15T05:58:10.000Z | #include "ServerSync.h"
#include "Core/Logging.h"
#include "Core/ThreadSyncPrivate.h"
#include <map>
#include <atomic>
class ServerSyncPrivate: public ThreadSyncPrivate
{
public:
std::mutex loginMutex_;
std::atomic<bool> authPerformed_;
std::atomic<bool> authPerformedSuccess_;
std::map<std::string, s... | 22.642202 | 80 | 0.651135 | igor-sadchenko |
1a45e36cdd89342824203d929c174dfa15448a2e | 2,409 | cpp | C++ | LightOJ/LightOJ - 1255/Runtime Error (2).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | LightOJ/LightOJ - 1255/Runtime Error (2).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | LightOJ/LightOJ - 1255/Runtime Error (2).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: 2018-10-20 19:45:17
* solution_verdict: Runtime Error language: C++
* run... | 22.726415 | 111 | 0.450809 | kzvd4729 |
1a47475946d7afb9727d34af941e7c708b82ad37 | 1,031 | hpp | C++ | src/core/Window.hpp | Xnork/Project-Engine-SDL2 | c49b2c1d83373f027624b3e5ff2f52633100db73 | [
"MIT"
] | null | null | null | src/core/Window.hpp | Xnork/Project-Engine-SDL2 | c49b2c1d83373f027624b3e5ff2f52633100db73 | [
"MIT"
] | null | null | null | src/core/Window.hpp | Xnork/Project-Engine-SDL2 | c49b2c1d83373f027624b3e5ff2f52633100db73 | [
"MIT"
] | null | null | null | #ifndef WINDOW_H
#define WINDOW_H
#include <iostream>
#include <cstring>
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include "math/Vector2.hpp"
#include "utils/WindowOpenGLSetting.hpp"
#include "utils/Color.hpp"
#include "utils/Drawable.hpp"
using namespace std;
clas... | 21.93617 | 63 | 0.70999 | Xnork |
1a52985e34363f104bc9e5846d76f3fbdabb39bf | 145 | cpp | C++ | Preprocessor/doSomething.cpp | yishenli/learncpp | 734a3ef753b32a3252b731d7e370b808fcf79a6b | [
"MIT"
] | null | null | null | Preprocessor/doSomething.cpp | yishenli/learncpp | 734a3ef753b32a3252b731d7e370b808fcf79a6b | [
"MIT"
] | null | null | null | Preprocessor/doSomething.cpp | yishenli/learncpp | 734a3ef753b32a3252b731d7e370b808fcf79a6b | [
"MIT"
] | null | null | null | #include <iostream>
void doSomething()
{
#ifdef PRINT
std::cout << "Printing!";
#endif
#ifndef PRINT
std::cout << "Not printing!";
#endif
}
| 12.083333 | 31 | 0.648276 | yishenli |
1a5bf86624f52951d5887e939841e10dc32e84b6 | 1,338 | cpp | C++ | src/board.cpp | adamdadd/naughts_and_crosses | 3f838a11cf121c563dcb9c4ec8f1ee4a5d159f87 | [
"MIT"
] | null | null | null | src/board.cpp | adamdadd/naughts_and_crosses | 3f838a11cf121c563dcb9c4ec8f1ee4a5d159f87 | [
"MIT"
] | 2 | 2018-12-31T15:06:32.000Z | 2019-01-03T03:21:26.000Z | src/board.cpp | adamdadd/naughts_and_crosses | 3f838a11cf121c563dcb9c4ec8f1ee4a5d159f87 | [
"MIT"
] | null | null | null | #include "board.hpp"
class Board {
public:
std::vector<std::vector<std::string>> board_squares;
Board(int size) {
for (int r = 0; r < size; r++) {
std::vector<std::string> row;
for (int c = 0; c < size; c++) {
row.push_back(std::to_st... | 32.634146 | 108 | 0.441704 | adamdadd |
1a5c362b3166296779cd1275672423eb99234bfc | 2,726 | cpp | C++ | Changrui/C++/Kattis_Single_source_shortest path, non-negative weights.cpp | Kattis-Everyday/KattisSolutions | ac422563fd6b1c08e098a52e7fce06852f61c180 | [
"Apache-2.0"
] | null | null | null | Changrui/C++/Kattis_Single_source_shortest path, non-negative weights.cpp | Kattis-Everyday/KattisSolutions | ac422563fd6b1c08e098a52e7fce06852f61c180 | [
"Apache-2.0"
] | null | null | null | Changrui/C++/Kattis_Single_source_shortest path, non-negative weights.cpp | Kattis-Everyday/KattisSolutions | ac422563fd6b1c08e098a52e7fce06852f61c180 | [
"Apache-2.0"
] | null | null | null | //
// main.cpp
// Kattis_Single source shortest path, non-negative weights
//
// Created by mcr on 8/11/2020.
//
#pragma GCC optimize(3,"Ofast","inline")
//#include <bits/stdc++.h>
#include<iostream>
#include<sstream>
#include<iomanip>
#include<cmath>
# include <string.h>
#include<math.h>
#include<string>
#include<... | 18.8 | 82 | 0.526045 | Kattis-Everyday |
1a62fc6b74d1ab93485c89d51e637e6cf6abbf60 | 4,491 | cpp | C++ | libraries/net/stcp_socket.cpp | f3chain/fff | 707bb1f0791206fe8f1ed9d610c1b6efa34d8bab | [
"Apache-2.0"
] | null | null | null | libraries/net/stcp_socket.cpp | f3chain/fff | 707bb1f0791206fe8f1ed9d610c1b6efa34d8bab | [
"Apache-2.0"
] | null | null | null | libraries/net/stcp_socket.cpp | f3chain/fff | 707bb1f0791206fe8f1ed9d610c1b6efa34d8bab | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
*
* The MIT License
*
* 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... | 30.972414 | 116 | 0.698285 | f3chain |
1a65942d4ca2d60226603be2b4e1af9daf025d12 | 1,244 | cpp | C++ | game/server/entities/spawnpoints/CBaseDMStart.cpp | xalalau/HLEnhanced | f108222ab7d303c9ed5a8e81269f9e949508e78e | [
"Unlicense"
] | 83 | 2016-06-10T20:49:23.000Z | 2022-02-13T18:05:11.000Z | game/server/entities/spawnpoints/CBaseDMStart.cpp | xalalau/HLEnhanced | f108222ab7d303c9ed5a8e81269f9e949508e78e | [
"Unlicense"
] | 26 | 2016-06-16T22:27:24.000Z | 2019-04-30T19:25:51.000Z | game/server/entities/spawnpoints/CBaseDMStart.cpp | xalalau/HLEnhanced | f108222ab7d303c9ed5a8e81269f9e949508e78e | [
"Unlicense"
] | 58 | 2016-06-10T23:52:33.000Z | 2021-12-30T02:30:50.000Z | /***
*
* Copyright (c) 1996-2001, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* Use, distribution, and modification of this source code and/or resulting
* object ... | 28.272727 | 77 | 0.735531 | xalalau |
1a66780521c27f8fd368ce2c9384d14866ee0a7c | 1,761 | cpp | C++ | bftengine/tests/simpleKVBC/src/Comparators.cpp | ashsek/concord-rcanopus | f979821f40433cf62ad0afa5bdc507e372e1367d | [
"Apache-2.0"
] | null | null | null | bftengine/tests/simpleKVBC/src/Comparators.cpp | ashsek/concord-rcanopus | f979821f40433cf62ad0afa5bdc507e372e1367d | [
"Apache-2.0"
] | null | null | null | bftengine/tests/simpleKVBC/src/Comparators.cpp | ashsek/concord-rcanopus | f979821f40433cf62ad0afa5bdc507e372e1367d | [
"Apache-2.0"
] | 1 | 2021-12-11T00:27:46.000Z | 2021-12-11T00:27:46.000Z | // Concord
//
// Copyright (c) 2018 VMware, Inc. All Rights Reserved.
//
// This product is licensed to you under the Apache 2.0 license (the "License").
// You may not use this product except in compliance with the Apache 2.0
// License.
//
// This product may include a number of subcomponents with separate copyright
... | 25.157143 | 80 | 0.670074 | ashsek |
1a6a8d1f39ed92b43379f349700161750861726e | 507 | cpp | C++ | CodeForces-Contest/1515/B.cpp | Tech-Intellegent/CodeForces-Solution | 2f291a38b80b8ff2a2595b2e526716468ff26bf8 | [
"MIT"
] | 1 | 2022-01-23T07:18:07.000Z | 2022-01-23T07:18:07.000Z | CodeForces-Contest/1515/B.cpp | Tech-Intellegent/CodeForces-Solution | 2f291a38b80b8ff2a2595b2e526716468ff26bf8 | [
"MIT"
] | null | null | null | CodeForces-Contest/1515/B.cpp | Tech-Intellegent/CodeForces-Solution | 2f291a38b80b8ff2a2595b2e526716468ff26bf8 | [
"MIT"
] | 1 | 2022-02-05T11:53:04.000Z | 2022-02-05T11:53:04.000Z | #include<bits/stdc++.h>
using namespace std;
int f(int n) {
int k = sqrt(n);
while (k * k < n) ++k;
while (k * k > n) --k;
return k * k == n;
}
int32_t main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
int t; cin >> t;
while (t--) {
int n; cin >> n;
int ok = 0;
for (int i = 2; i <= n; i *=... | 16.354839 | 37 | 0.410256 | Tech-Intellegent |
2b2d42257ef38a995c8e3aa0c85bc336f28be579 | 21,669 | cpp | C++ | Samples/Win7Samples/sysmgmt/wmi/vc/security/security.cpp | windows-development/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 8 | 2017-04-30T17:38:27.000Z | 2021-11-29T00:59:03.000Z | Samples/Win7Samples/sysmgmt/wmi/vc/security/security.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | null | null | null | Samples/Win7Samples/sysmgmt/wmi/vc/security/security.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 2 | 2020-08-11T13:21:49.000Z | 2021-09-01T10:41:51.000Z | // **************************************************************************
//
// Copyright (c) Microsoft Corporation, All Rights Reserved
//
// File: Security.cpp
//
// Description:
// WMI Client Security Sample. This sample shows how various how to
// handle various DCOM security issues. In part... | 33.752336 | 119 | 0.551064 | windows-development |
2b329e351f95d0b465cb37c264f9e65d22cff9fc | 406 | hh | C++ | src/types/Nature.hh | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | src/types/Nature.hh | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | src/types/Nature.hh | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | #pragma once
#include <glow/fwd.hh>
#include "typed-geometry/types/pos.hh"
#include "types/Properties.hh"
#include <string>
namespace gamedev
{
// Enemies < 0
// Friends > 0
enum class NatureType
{
Undefined = 0,
Pine_0,
Pine_1,
Pine_2,
Pine_Stump_0,
Pine_Stump_1,
Pine_Dead_0,
Pine_Dead... | 14 | 38 | 0.640394 | rovedit |
2b32bef944821594af40d7b5ccd2c75b6a4e6683 | 7,711 | cpp | C++ | rocsolver/library/src/auxiliary/rocauxiliary_larfb.cpp | leekillough/rocSOLVER | a0fa2af65be983dcec60081ed618b0642867aef0 | [
"BSD-2-Clause"
] | null | null | null | rocsolver/library/src/auxiliary/rocauxiliary_larfb.cpp | leekillough/rocSOLVER | a0fa2af65be983dcec60081ed618b0642867aef0 | [
"BSD-2-Clause"
] | null | null | null | rocsolver/library/src/auxiliary/rocauxiliary_larfb.cpp | leekillough/rocSOLVER | a0fa2af65be983dcec60081ed618b0642867aef0 | [
"BSD-2-Clause"
] | null | null | null | /* ************************************************************************
* Copyright 2019-2020 Advanced Micro Devices, Inc.
* ************************************************************************ */
#include "rocauxiliary_larfb.hpp"
template <typename T>
rocblas_status rocsolver_larfb_impl(rocblas_handle hand... | 49.11465 | 126 | 0.379847 | leekillough |
2b354c768932816ee6882ec35f83d938f37f808b | 632 | cpp | C++ | Tugas1.cpp | stefanmanurung/Array-1-dan-2-Dimensi | d7c9172d9864320a64ed54653f993e4178884cde | [
"MIT"
] | 1 | 2021-10-05T11:32:36.000Z | 2021-10-05T11:32:36.000Z | Tugas1.cpp | stefanmanurung/Array-1-dan-2-Dimensi | d7c9172d9864320a64ed54653f993e4178884cde | [
"MIT"
] | null | null | null | Tugas1.cpp | stefanmanurung/Array-1-dan-2-Dimensi | d7c9172d9864320a64ed54653f993e4178884cde | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int max, min, n, i = 1, array[10];
cout << "Masukkan jumlah data: ";
cin >> n;
cout << "Masukkan " << n << " angka\n";
for (i = 0; i < n; i ++) {
cout << "Elemen ke-" <<(i+1) <<": ";
cin >> array[i];
}
max = array[0];
for(i = ... | 21.066667 | 57 | 0.424051 | stefanmanurung |
2b355f6e48b1f2ba3581b91a7d43fe87c3877da7 | 1,933 | cpp | C++ | src/mxml/parsing/PageLayoutHandler.cpp | dkun7944/mxml | 6450e7cab88eb6ee0ac469f437047072e1868ea4 | [
"MIT"
] | 18 | 2016-05-22T00:55:28.000Z | 2021-03-29T08:44:23.000Z | src/mxml/parsing/PageLayoutHandler.cpp | dkun7944/mxml | 6450e7cab88eb6ee0ac469f437047072e1868ea4 | [
"MIT"
] | 6 | 2017-05-17T13:20:09.000Z | 2018-10-22T20:00:57.000Z | src/mxml/parsing/PageLayoutHandler.cpp | dkun7944/mxml | 6450e7cab88eb6ee0ac469f437047072e1868ea4 | [
"MIT"
] | 14 | 2016-05-12T22:54:34.000Z | 2021-10-19T12:43:16.000Z | // Copyright © 2016 Venture Media Labs.
//
// This file is part of mxml. The full mxml copyright notice, including
// terms governing use, modification, and redistribution, is contained in the
// file LICENSE at the root of the source code distribution tree.
#include "PageLayoutHandler.h"
namespace mxml {
static con... | 42.021739 | 117 | 0.699948 | dkun7944 |
2b3601398e0d48f438fea6bc1fb56baf02504c84 | 266 | hpp | C++ | common/components/Color.hpp | linuxmao-org/shiru-plugins | 08853f99140012234649e67e5647906fda74f6cc | [
"WTFPL"
] | 11 | 2019-06-15T06:36:36.000Z | 2022-02-22T04:49:22.000Z | common/components/Color.hpp | nyxkn/shiru-plugins | 8088c04b94afb498cec6a14bd03c448936bf31e9 | [
"WTFPL"
] | 6 | 2019-06-15T14:04:49.000Z | 2019-11-27T15:35:13.000Z | common/components/Color.hpp | nyxkn/shiru-plugins | 8088c04b94afb498cec6a14bd03c448936bf31e9 | [
"WTFPL"
] | 2 | 2020-12-30T00:21:35.000Z | 2021-07-04T18:32:46.000Z | #pragma once
#include "Cairo.hpp"
#include <cstdint>
struct ColorRGBA {
uint8_t r, g, b, a;
};
inline void cairo_set_source_color(cairo_t *cr, const ColorRGBA &c)
{
double k = 1. / 255.;
cairo_set_source_rgba(cr, k * c.r, k * c.g, k * c.b, k * c.a);
}
| 19 | 67 | 0.62782 | linuxmao-org |
2b3a15d6246bad4753884e1445689db491e178c9 | 2,855 | cpp | C++ | aws-cpp-sdk-dynamodb/source/model/DestinationStatus.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-12T08:09:30.000Z | 2022-02-12T08:09:30.000Z | aws-cpp-sdk-dynamodb/source/model/DestinationStatus.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-dynamodb/source/model/DestinationStatus.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-12-30T04:25:33.000Z | 2021-12-30T04:25:33.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dynamodb/model/DestinationStatus.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Ut... | 31.032609 | 92 | 0.614011 | perfectrecall |
2b3a232bf37ed42f8e89cde8911e72bb246882d7 | 957 | cpp | C++ | scoped_allocator_usage_unittest.cpp | jyaif/snapshotable_allocator | 711dff8d6414265476bf8eb83eece563c0c183a8 | [
"MIT"
] | null | null | null | scoped_allocator_usage_unittest.cpp | jyaif/snapshotable_allocator | 711dff8d6414265476bf8eb83eece563c0c183a8 | [
"MIT"
] | null | null | null | scoped_allocator_usage_unittest.cpp | jyaif/snapshotable_allocator | 711dff8d6414265476bf8eb83eece563c0c183a8 | [
"MIT"
] | null | null | null | #include "application/memory/scoped_allocator_usage.h"
#include "application/memory/snapshotable_allocator.h"
#include "application/memory/snapshotable_allocator_impl.h"
#include "third_party/nex_test/src/test.h"
#include <cassert>
#include <cstdio>
NEX_TEST(Memory, ScopedAllocatorUsage) {
SnapshotableAllocatorImpl... | 23.925 | 66 | 0.69906 | jyaif |
2b3b4bc153d9704e2d27b0ad16967e2a0610a836 | 620 | cpp | C++ | chapter01/bubbleSort.cpp | wanghengg/Data_Structure | ba86b8a8e06bf07fae9fffc24197b2153414c433 | [
"Apache-2.0"
] | null | null | null | chapter01/bubbleSort.cpp | wanghengg/Data_Structure | ba86b8a8e06bf07fae9fffc24197b2153414c433 | [
"Apache-2.0"
] | null | null | null | chapter01/bubbleSort.cpp | wanghengg/Data_Structure | ba86b8a8e06bf07fae9fffc24197b2153414c433 | [
"Apache-2.0"
] | null | null | null | //
// Created by wangheng on 2020/5/10.
//
#include <iostream>
void bubbleSort(int A[], int n);
void swap(int&, int&);
int main() {
int a[5] = {3, 6, 2, 1, 4};
bubbleSort(a, sizeof(a) / sizeof(a[0]));
for (auto iter : a)
std::cout << iter << ' ';
return 0;
}
void bubbleSort(int A[], int n) {... | 18.787879 | 54 | 0.43871 | wanghengg |
2b3c72c28e11a292cb6387662a1f5005bf66bad2 | 1,067 | cpp | C++ | Homework 5/ayy9672_hw5_q2/ayy9672_hw5_q2/ayy9672_hw5_q2.cpp | SimplySaid/NYU-Tandon-Bridge | decc7e10f2f37ad714c8227fa6e3421316808473 | [
"MIT"
] | null | null | null | Homework 5/ayy9672_hw5_q2/ayy9672_hw5_q2/ayy9672_hw5_q2.cpp | SimplySaid/NYU-Tandon-Bridge | decc7e10f2f37ad714c8227fa6e3421316808473 | [
"MIT"
] | null | null | null | Homework 5/ayy9672_hw5_q2/ayy9672_hw5_q2/ayy9672_hw5_q2.cpp | SimplySaid/NYU-Tandon-Bridge | decc7e10f2f37ad714c8227fa6e3421316808473 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdlib>
#include <ctime>
int main() {
int tries = 0, guess = -1, randNumTarget;
int low = 1, high = 100;
bool numberGuessed = false;
std::srand(time(0));
randNumTarget = (rand() % 100) + 1;
std::cout << randNumTarget << "\n";
std::cout << "I thought of a number between 1 and 1... | 24.25 | 108 | 0.578257 | SimplySaid |
2b45644eecadcf7c7773c20d94470cb7446fe754 | 1,247 | hh | C++ | extern/typed-geometry/src/typed-geometry/types/scalars/interval.hh | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | extern/typed-geometry/src/typed-geometry/types/scalars/interval.hh | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | extern/typed-geometry/src/typed-geometry/types/scalars/interval.hh | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | #pragma once
#include <typed-geometry/detail/macros.hh>
#include <typed-geometry/feature/assert.hh>
#include <typed-geometry/functions/basic/constants.hh>
namespace tg
{
/// interval arithmetic
/// use #include <typed-geometry/feature/interval.hh> for all features
/// NOTE:
/// * intervals cannot be compared
/// ... | 28.340909 | 115 | 0.66239 | rovedit |
2b4864404d091a5409f8c66a8366fdc2a7437f2d | 5,909 | cpp | C++ | branch/old_angsys/angsys_beta2/tasks/tasks/task3/source/engine.cpp | ChuyX3/angsys | 89b2eaee866bcfd11e66efda49b38acc7468c780 | [
"Apache-2.0"
] | null | null | null | branch/old_angsys/angsys_beta2/tasks/tasks/task3/source/engine.cpp | ChuyX3/angsys | 89b2eaee866bcfd11e66efda49b38acc7468c780 | [
"Apache-2.0"
] | null | null | null | branch/old_angsys/angsys_beta2/tasks/tasks/task3/source/engine.cpp | ChuyX3/angsys | 89b2eaee866bcfd11e66efda49b38acc7468c780 | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include "engine.h"
#include "scenes/model_loader.h"
#if defined _DEBUG
#define new new(__FILE__, __LINE__)
#endif
using namespace d3d11;
double a1 = 0.0;
double a2 = 2.0 * M_PI / 3.0;
double a3 = 4.0 * M_PI / 3.0;
maths::float4x4 world_matrix;
maths::float4x4 view_matrix;
maths::float4x4 projectio... | 23.082031 | 106 | 0.701303 | ChuyX3 |
2b4da463c7d13b749424d84e39fd2d37bef131cc | 515 | cpp | C++ | 04_structs/bad_sort.cpp | anton0xf/stepik_cpp | fe87fff8523bc62c92b13dc8c0908b6d984aec43 | [
"MIT"
] | null | null | null | 04_structs/bad_sort.cpp | anton0xf/stepik_cpp | fe87fff8523bc62c92b13dc8c0908b6d984aec43 | [
"MIT"
] | null | null | null | 04_structs/bad_sort.cpp | anton0xf/stepik_cpp | fe87fff8523bc62c92b13dc8c0908b6d984aec43 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
int cnt = 0;
void swap(int &a, int &b) {
++cnt;
if (cnt % 4 == 0) {
int c = a;
a = b;
b = c;
}
}
void sort(vector <int> &a) {
int n = a.size();
for (int i = 0; i < n; ++i) {
for (int j = 0; j + 1 < n; ++j) {
if (a[j] > a[j + 1]) {
swap(a[... | 14.714286 | 44 | 0.425243 | anton0xf |
2b5209dfab9e2a9ef60db2047dee5b8dacca5e19 | 2,466 | cpp | C++ | src/saturn/crc.cpp | patrick-lafferty/saturn | 6dc36adb42ad9b647704dd19247423a522eeb551 | [
"BSD-3-Clause"
] | 26 | 2018-03-19T15:59:46.000Z | 2021-08-06T16:13:16.000Z | src/saturn/crc.cpp | patrick-lafferty/saturn | 6dc36adb42ad9b647704dd19247423a522eeb551 | [
"BSD-3-Clause"
] | 34 | 2018-01-21T17:43:29.000Z | 2020-06-27T02:00:53.000Z | src/saturn/crc.cpp | patrick-lafferty/saturn | 6dc36adb42ad9b647704dd19247423a522eeb551 | [
"BSD-3-Clause"
] | 3 | 2019-12-08T22:26:35.000Z | 2021-06-25T17:05:57.000Z | /*
Copyright (c) 2017, Patrick Lafferty
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, this list of conditions and the... | 35.73913 | 81 | 0.658962 | patrick-lafferty |
2b5312a60609af0dbfdb1f1045b29c7fa18b8374 | 245 | cpp | C++ | queue/997/test.cpp | ahban/CMU | 7d997362703f50e37eecb1c4404b91065cda7a26 | [
"BSD-2-Clause"
] | null | null | null | queue/997/test.cpp | ahban/CMU | 7d997362703f50e37eecb1c4404b91065cda7a26 | [
"BSD-2-Clause"
] | null | null | null | queue/997/test.cpp | ahban/CMU | 7d997362703f50e37eecb1c4404b91065cda7a26 | [
"BSD-2-Clause"
] | null | null | null | #include <iostream>
#include <queue>
using namespace std;
int main(){
std::queue<int> Q;
for (int i = 0; i < 10; i++){
Q.push(i);
}
while(!Q.empty()){
cout << Q.front() << " ";
Q.pop();
}
cout << endl;
return 0;
}
| 11.666667 | 31 | 0.493878 | ahban |
2b5815caf7c517b2ea5cd430cc7b4e8ca67c491f | 3,098 | cpp | C++ | source/material/SV_Phong.cpp | xzrunner/raytracing | c130691a92fab2cc9605f04534f42ca9b99e6fde | [
"MIT"
] | null | null | null | source/material/SV_Phong.cpp | xzrunner/raytracing | c130691a92fab2cc9605f04534f42ca9b99e6fde | [
"MIT"
] | null | null | null | source/material/SV_Phong.cpp | xzrunner/raytracing | c130691a92fab2cc9605f04534f42ca9b99e6fde | [
"MIT"
] | null | null | null | #include "raytracing/material/SV_Phong.h"
#include "raytracing/bxdf/SV_Lambertian.h"
#include "raytracing/bxdf/SV_GlossySpecular.h"
#include "raytracing/world/World.h"
#include "raytracing/light/Light.h"
#include "raytracing/texture/Texture.h"
#include "raytracing/utilities/ShadeRec.h"
namespace rt
{
SV_Phong::SV_Pho... | 23.648855 | 138 | 0.632343 | xzrunner |
2b5f848f7808aec45eabf80c0b179baa6ab534ae | 2,134 | cpp | C++ | ABC218/C_Shapes.cpp | tqa236/atcoder | 22a3ca1cf49da299f5623657aefbdc581b353224 | [
"MIT"
] | null | null | null | ABC218/C_Shapes.cpp | tqa236/atcoder | 22a3ca1cf49da299f5623657aefbdc581b353224 | [
"MIT"
] | null | null | null | ABC218/C_Shapes.cpp | tqa236/atcoder | 22a3ca1cf49da299f5623657aefbdc581b353224 | [
"MIT"
] | null | null | null |
#include <bits/stdc++.h>
using namespace std;
#define ar array
#define ll long long
const int MAX_N = 1e5 + 1;
const ll MOD = 1e9 + 7;
const ll INF = 1e9;
void solve()
{
}
vector<pair<int, int>> get_shape(vector<vector<char>> SS, int N)
{
vector<pair<int, int>> SS_shape;
int x, y;
bool first = true;
... | 22.229167 | 155 | 0.431584 | tqa236 |
2b66301e7442c3a73de22e0a32c2a312d8597c5f | 561 | cpp | C++ | src/DigitalReadGroup.cpp | tompatman/modplus | 8a56a81d4c1af1288e3145ad2c9ed232a1f96e00 | [
"MIT"
] | null | null | null | src/DigitalReadGroup.cpp | tompatman/modplus | 8a56a81d4c1af1288e3145ad2c9ed232a1f96e00 | [
"MIT"
] | null | null | null | src/DigitalReadGroup.cpp | tompatman/modplus | 8a56a81d4c1af1288e3145ad2c9ed232a1f96e00 | [
"MIT"
] | null | null | null |
#include "include/DigitalReadGroup.h"
namespace modplus {
DigitalReadGroup::DigitalReadGroup(uint8_t *dataStore, const Poco::UInt16 numRegisters)
:
_dataStore(dataStore)
{
_numRegisters = numRegisters;
}
DigitalReadGroup::~DigitalReadGroup()
{
}
Poco::Int16 DigitalReadGroup::readData(const Poco:... | 19.344828 | 129 | 0.73262 | tompatman |
2b712c62dfb2e99fb7b7357e4f2b010bf26eca7a | 389 | cpp | C++ | Ejercicios/Ejercicio37-Random/main.cpp | gaboleivamartinez/cpp | 61d1880d65884d4adf52afb9878ecfec9fba319d | [
"MIT"
] | null | null | null | Ejercicios/Ejercicio37-Random/main.cpp | gaboleivamartinez/cpp | 61d1880d65884d4adf52afb9878ecfec9fba319d | [
"MIT"
] | null | null | null | Ejercicios/Ejercicio37-Random/main.cpp | gaboleivamartinez/cpp | 61d1880d65884d4adf52afb9878ecfec9fba319d | [
"MIT"
] | null | null | null | #include <iostream>
#include<stdlib.h>
#include<time.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
int main(int argc, char** argv) {
int numero = 0;
srand(time(NULL));
for(int i=0;i<20;i++)
{
numero= rand()% 10... | 16.913043 | 101 | 0.604113 | gaboleivamartinez |
2b731b89d2f9c2836b25b22cff3af500d2edf516 | 12,998 | cpp | C++ | Utilities.cpp | cwreynolds/TexSyn | 5c8a26de87ce4142f8e6579fae19b43d93ac6be4 | [
"MIT"
] | 4 | 2020-04-08T01:38:38.000Z | 2020-08-26T04:54:28.000Z | Utilities.cpp | cwreynolds/TexSyn | 5c8a26de87ce4142f8e6579fae19b43d93ac6be4 | [
"MIT"
] | null | null | null | Utilities.cpp | cwreynolds/TexSyn | 5c8a26de87ce4142f8e6579fae19b43d93ac6be4 | [
"MIT"
] | 2 | 2020-08-26T05:29:59.000Z | 2021-11-09T03:12:47.000Z | //
// Utilities.cpp
// texsyn
//
// Created by Craig Reynolds on 12/16/19.
// Copyright © 2019 Craig Reynolds. All rights reserved.
//
#include "Utilities.h"
#include "Vec2.h"
// Perlin Noise
// Ken Perlin's 2002 "Improved Noise": http://mrl.nyu.edu/~perlin/noise/
// This code based on a transliteration by Malcol... | 42.89769 | 80 | 0.56678 | cwreynolds |
2b741864fc76c51b6e1de41eaa588a6b328ae475 | 6,571 | cxx | C++ | STEER/ESD/AliTriggerDescriptor.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | STEER/ESD/AliTriggerDescriptor.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | STEER/ESD/AliTriggerDescriptor.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | /**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... | 32.369458 | 111 | 0.651347 | AllaMaevskaya |
2b782ec2c74474d51a14733cc6be0c280f4eee9f | 4,244 | hpp | C++ | include/BGNet/Logging/Debug_ILogger.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/BGNet/Logging/Debug_ILogger.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/BGNet/Logging/Debug_ILogger.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: BGNet.Logging.Debug
#include "BGNet... | 51.13253 | 193 | 0.723139 | RedBrumbler |
2b7c0b102f68f41349e41487436ddc2bd2a0ce65 | 11,519 | cc | C++ | src/LeaseManagerTest.cc | XinzeChi/RAMCloud | fdc56415ca3424b40522d534a77aef0bc4f95c2b | [
"0BSD"
] | null | null | null | src/LeaseManagerTest.cc | XinzeChi/RAMCloud | fdc56415ca3424b40522d534a77aef0bc4f95c2b | [
"0BSD"
] | null | null | null | src/LeaseManagerTest.cc | XinzeChi/RAMCloud | fdc56415ca3424b40522d534a77aef0bc4f95c2b | [
"0BSD"
] | 1 | 2021-05-24T12:32:33.000Z | 2021-05-24T12:32:33.000Z | /* Copyright (c) 2014-2015 Stanford University
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR(... | 36.452532 | 80 | 0.698932 | XinzeChi |
2b8217df3afc85f6b4de8654fe2534b8a874a3b3 | 1,550 | cpp | C++ | PlacementQuestions/Amazon/infixtopostfix.cpp | UltraProton/Placement-Prepration | cc70f174c4410c254ce0469737a884fffdc81164 | [
"MIT"
] | null | null | null | PlacementQuestions/Amazon/infixtopostfix.cpp | UltraProton/Placement-Prepration | cc70f174c4410c254ce0469737a884fffdc81164 | [
"MIT"
] | 3 | 2020-05-08T18:02:51.000Z | 2020-05-09T08:37:35.000Z | PlacementQuestions/Amazon/infixtopostfix.cpp | UltraProton/PlacementPrep | cc70f174c4410c254ce0469737a884fffdc81164 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
char *intopost(string &in);
int main(int argc, char const *argv[])
{
/* code */
string in="";
cin>>in;
char *ans= intopost(in);
cout<<'x'<<endl;
string temp="";
for(int i=0;ans[i]!='\0';i++){
temp+=ans[i];
}
... | 18.023256 | 67 | 0.365161 | UltraProton |
2b83768c34927ad1b30a28ffbf572a23094a4e58 | 1,195 | cpp | C++ | mootube/mootube.cpp | chenhongqiao/OI-Solutions | 009a3c4b713b62658b835b52e0f61f882b5a6ffe | [
"MIT"
] | 1 | 2020-12-15T20:25:21.000Z | 2020-12-15T20:25:21.000Z | mootube/mootube.cpp | chenhongqiao/OI-Solutions | 009a3c4b713b62658b835b52e0f61f882b5a6ffe | [
"MIT"
] | null | null | null | mootube/mootube.cpp | chenhongqiao/OI-Solutions | 009a3c4b713b62658b835b52e0f61f882b5a6ffe | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define f first
#define s second
vector<pair<int, long long>> d[5005]; //First: index Second: relevance
int bfs(int fa, int k)
{
queue<pair<int, int>> q;
bool v[5005] = {false};
v[fa] = true;
q.push({fa, 2000000000});
int ans = 0;
while (!q.empty())
... | 22.980769 | 70 | 0.420084 | chenhongqiao |
2b897080932b2aebf10565d714975e9b5ab42c03 | 7,761 | cpp | C++ | src/log/Logger.cpp | shushengsky/coroutine | fe204974fb6a7254a7d333847d51ef2bc72b84ae | [
"MIT"
] | null | null | null | src/log/Logger.cpp | shushengsky/coroutine | fe204974fb6a7254a7d333847d51ef2bc72b84ae | [
"MIT"
] | null | null | null | src/log/Logger.cpp | shushengsky/coroutine | fe204974fb6a7254a7d333847d51ef2bc72b84ae | [
"MIT"
] | 1 | 2017-05-04T18:37:35.000Z | 2017-05-04T18:37:35.000Z | /*
* Logger.cpp
*
* Created on: 2015年5月11日
* Author: zhusheng
*/
#include "Logger.h"
#include <stdio.h>
#include <pthread.h>
#include <memory>
#include <string.h>
static const char HEX[] = "0123456789ABCDEF";
static const char* baseName(const char* path)
{
if (path)
{
const char* name = st... | 19.022059 | 102 | 0.451746 | shushengsky |
2b8971cd200a45d0902ec4adcd9735591263e0a6 | 6,619 | cpp | C++ | src/Element-Filter.cpp | Lester-Dowling/Simple-XML | 0ed4fdd317743bf788acf2adc2782ae90e3ca0e6 | [
"MIT"
] | null | null | null | src/Element-Filter.cpp | Lester-Dowling/Simple-XML | 0ed4fdd317743bf788acf2adc2782ae90e3ca0e6 | [
"MIT"
] | null | null | null | src/Element-Filter.cpp | Lester-Dowling/Simple-XML | 0ed4fdd317743bf788acf2adc2782ae90e3ca0e6 | [
"MIT"
] | null | null | null | /**
* @file Simple-XML/src/Element-Filter.cpp
* @date Started 2018-08-14
* @author Lester J. Dowling
*/
#include <stdexcept>
#include <iostream>
#include "Simple-XML/Element-Filter.hpp"
#define TRACE_ELEMENT_FILTER
#undef TRACE_ELEMENT_FILTER
#ifdef TRACE_ELEMENT_FILTER
#define __TRACER(args) std::cout << arg... | 29.15859 | 84 | 0.664149 | Lester-Dowling |
2b95718b00dbbf65fadf771947f9a4ab7490f461 | 477 | cpp | C++ | source/dodbm/operations/custom_sql.cpp | WopsS/dodbm | 053f0a6b90e1e081b07418a91cf1f3420d69e390 | [
"MIT"
] | 1 | 2021-02-19T07:22:21.000Z | 2021-02-19T07:22:21.000Z | source/dodbm/operations/custom_sql.cpp | WopsS/dodbm | 053f0a6b90e1e081b07418a91cf1f3420d69e390 | [
"MIT"
] | null | null | null | source/dodbm/operations/custom_sql.cpp | WopsS/dodbm | 053f0a6b90e1e081b07418a91cf1f3420d69e390 | [
"MIT"
] | null | null | null | #include <dodbm/operations/custom_sql.hpp>
#include <dodbm/exception.hpp>
dodbm::operations::custom_sql::custom_sql(const std::string& sql)
: m_sql(sql)
{
if (sql.empty())
{
throw dodbm::exception("Operation \"custom_sql\" require a vaild SQL command");
}
}
dodbm::operation::type dodbm::operat... | 21.681818 | 87 | 0.687631 | WopsS |
2b9d27987d0cf6f63f05de968fb4fc300c544b7b | 2,679 | hpp | C++ | kernel/window.hpp | hapo31/My-MikanOS | a21720980a0c1557320ca321f446451819529c54 | [
"Apache-2.0"
] | null | null | null | kernel/window.hpp | hapo31/My-MikanOS | a21720980a0c1557320ca321f446451819529c54 | [
"Apache-2.0"
] | null | null | null | kernel/window.hpp | hapo31/My-MikanOS | a21720980a0c1557320ca321f446451819529c54 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <optional>
#include <vector>
#include "frame_buffer.hpp"
#include "graphics.hpp"
#include "logger.hpp"
class Window : public PixelWriter {
public:
Window(int width, int height, PixelFormat shadow_format);
virtual ~Window() = default;
Window(const Window& rhs) = delete;
Window& operato... | 30.793103 | 80 | 0.713699 | hapo31 |
2ba7e72b0eac2a5bd70bb23fd00e747d163d55ca | 2,765 | cpp | C++ | CompileTimeStringNonFixedBufferSize.cpp | haxpor/cpp_st | 43d1492266c6e01e6e243c834fba26eedf1ab9f3 | [
"MIT"
] | 2 | 2021-06-10T22:05:01.000Z | 2021-09-17T08:21:20.000Z | CompileTimeStringNonFixedBufferSize.cpp | haxpor/cpp_st | 43d1492266c6e01e6e243c834fba26eedf1ab9f3 | [
"MIT"
] | null | null | null | CompileTimeStringNonFixedBufferSize.cpp | haxpor/cpp_st | 43d1492266c6e01e6e243c834fba26eedf1ab9f3 | [
"MIT"
] | 1 | 2020-02-25T04:26:52.000Z | 2020-02-25T04:26:52.000Z | /**
* Attempt to implement compile-time string type with non-fixed buffer size.
* Compare this to CompileTimeString.cpp.
*
* Note:
*
* - EXPLODE_STR_* macros needed to convert literal string into stream of individual character
* to be used for template argument as it doesn't support using literal string as tem... | 33.719512 | 103 | 0.706329 | haxpor |
2ba99ddf417477ad09652150a7180f652f205b60 | 559 | cpp | C++ | Engine/Core/AssetLibrary/AssetScene/AssetScene.cpp | gregory-vovchok/YEngine | e28552e52588bd90db01dd53e5fc817d0a26d146 | [
"BSD-2-Clause"
] | null | null | null | Engine/Core/AssetLibrary/AssetScene/AssetScene.cpp | gregory-vovchok/YEngine | e28552e52588bd90db01dd53e5fc817d0a26d146 | [
"BSD-2-Clause"
] | null | null | null | Engine/Core/AssetLibrary/AssetScene/AssetScene.cpp | gregory-vovchok/YEngine | e28552e52588bd90db01dd53e5fc817d0a26d146 | [
"BSD-2-Clause"
] | 1 | 2020-12-04T08:57:03.000Z | 2020-12-04T08:57:03.000Z | #include "AssetScene.h"
#include <Engine/Core/AssetLibrary/AssetLibrary.h>
AssetScene::AssetScene(void)
{}
AssetScene::~AssetScene(void)
{
Destroying();
}
void AssetScene::AddNodeEvent(MagicNode* _node)
{
ObjectBinaryTree::AddNodeEvent(_node);
if(IsReceiversExist(AssetLibrary::CREATE_OBJECT_MESSAGE)) { Send... | 15.108108 | 150 | 0.758497 | gregory-vovchok |
2bae51abc28e15cc84a8a7c235f21a2c63b3d227 | 225,390 | cpp | C++ | Blizzlike/ArcEmu/C++/InstanceScripts/Raid_BlackTemple.cpp | 499453466/Lua-Other | 43fd2b72405faf3f2074fd2a2706ef115d16faa6 | [
"Unlicense"
] | 2 | 2015-06-23T16:26:32.000Z | 2019-06-27T07:45:59.000Z | Blizzlike/ArcEmu/C++/InstanceScripts/Raid_BlackTemple.cpp | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | null | null | null | Blizzlike/ArcEmu/C++/InstanceScripts/Raid_BlackTemple.cpp | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | 3 | 2015-01-10T18:22:59.000Z | 2021-04-27T21:28:28.000Z | /*
* ArcScripts for ArcEmu MMORPG Server
* Copyright (C) 2009 ArcEmu Team <http://www.arcemu.org/>
* Copyright (C) 2008-2009 Sun++ Team <http://www.sunscripting.com/>
* Copyright (C) 2005-2007 Ascent Team <http://www.ascentemu.com/>
* Copyright (C) 2007-2008 Moon++ Team <http://www.moonplusplus.info/>
*
* This p... | 31.028359 | 416 | 0.690696 | 499453466 |
ad940581ae95afcc54c7266d2cdfa70e8b3d0f3c | 483 | hpp | C++ | FiniteElementMethod/prog/verification_on_poisson_equation/common/classes/mesh/Point.hpp | avelycure/ScientificWork | e3d137691d6eac2c1273551e3db4198dc0f6b7a0 | [
"MIT"
] | null | null | null | FiniteElementMethod/prog/verification_on_poisson_equation/common/classes/mesh/Point.hpp | avelycure/ScientificWork | e3d137691d6eac2c1273551e3db4198dc0f6b7a0 | [
"MIT"
] | null | null | null | FiniteElementMethod/prog/verification_on_poisson_equation/common/classes/mesh/Point.hpp | avelycure/ScientificWork | e3d137691d6eac2c1273551e3db4198dc0f6b7a0 | [
"MIT"
] | null | null | null | #pragma once
/**
* This class represents point of the mesh
* */
class Point
{
private:
double x;
double y;
public:
Point(double xP, double yP)
{
x = xP;
y = yP;
}
Point()
{
x = 0.0;
y = 0.0;
}
double getX()
{
return x;
}
doubl... | 11.780488 | 42 | 0.426501 | avelycure |
ad97346536316640cc313d42c2bbf8900e82a14c | 6,103 | hpp | C++ | include/decoder.hpp | operutka/alzw | 117fa7ae065ace7c5d35d90a0e9b3d2c8ed61a24 | [
"MIT"
] | null | null | null | include/decoder.hpp | operutka/alzw | 117fa7ae065ace7c5d35d90a0e9b3d2c8ed61a24 | [
"MIT"
] | null | null | null | include/decoder.hpp | operutka/alzw | 117fa7ae065ace7c5d35d90a0e9b3d2c8ed61a24 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2015 Perutka, Ondrej
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, merge, publish, distribute,... | 30.515 | 79 | 0.564968 | operutka |
ad9829aade23476f8caa13bcc2448531d176e82e | 3,237 | hpp | C++ | external/boost/futures/boost/futures/composite.hpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | 5 | 2015-09-15T16:24:14.000Z | 2021-08-12T11:05:55.000Z | external/boost/futures/boost/futures/composite.hpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | null | null | null | external/boost/futures/boost/futures/composite.hpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | 3 | 2016-11-17T04:38:38.000Z | 2021-04-10T17:23:52.000Z | /*=============================================================================
Copyright (c) 2001-2005 Joel de Guzman
Copyright (c) 2004-2005 Hartmut Kaiser
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_... | 28.901786 | 84 | 0.55607 | saga-project |
ad998d4439e67b884332f49a60cba0cce9d8a6e8 | 6,000 | cpp | C++ | src/MediaThumbnailWindow.cpp | membranesoftware/membrane-control | 103aee09a505df4a4984cb9d2867e8e750f01bcd | [
"BSD-3-Clause"
] | null | null | null | src/MediaThumbnailWindow.cpp | membranesoftware/membrane-control | 103aee09a505df4a4984cb9d2867e8e750f01bcd | [
"BSD-3-Clause"
] | null | null | null | src/MediaThumbnailWindow.cpp | membranesoftware/membrane-control | 103aee09a505df4a4984cb9d2867e8e750f01bcd | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2018-2021 Membrane Software <author@membranesoftware.com> https://membranesoftware.com
*
* 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... | 34.285714 | 167 | 0.766 | membranesoftware |
ad9cc74e4e19514fb21e8961e7f619b20d52f7d9 | 1,373 | cpp | C++ | src/Console/StreamBuffer.cpp | MidsummerNight/FOEDAG | 4bab24b9a96f1a34ad3bb4a29796bfa3ccb771a6 | [
"MIT"
] | null | null | null | src/Console/StreamBuffer.cpp | MidsummerNight/FOEDAG | 4bab24b9a96f1a34ad3bb4a29796bfa3ccb771a6 | [
"MIT"
] | null | null | null | src/Console/StreamBuffer.cpp | MidsummerNight/FOEDAG | 4bab24b9a96f1a34ad3bb4a29796bfa3ccb771a6 | [
"MIT"
] | null | null | null | /*
Copyright 2021 The Foedag team
GPL License
Copyright (c) 2021 The Open-Source FPGA Foundation
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option)... | 25.425926 | 69 | 0.726147 | MidsummerNight |
ad9ecb15fe6f1334a4fa95ff6b699172d6d200f6 | 6,399 | hpp | C++ | renderboi/toolbox/controls/control_event_translator.hpp | deqyra/GLSandbox | 40d641ebbf6af694e8640a584d283876d128748c | [
"MIT"
] | null | null | null | renderboi/toolbox/controls/control_event_translator.hpp | deqyra/GLSandbox | 40d641ebbf6af694e8640a584d283876d128748c | [
"MIT"
] | null | null | null | renderboi/toolbox/controls/control_event_translator.hpp | deqyra/GLSandbox | 40d641ebbf6af694e8640a584d283876d128748c | [
"MIT"
] | null | null | null | #ifndef RENDERBOI__TOOLBOX__CONTROLS__CONTROL_EVENT_TRANSLATOR_HPP
#define RENDERBOI__TOOLBOX__CONTROLS__CONTROL_EVENT_TRANSLATOR_HPP
#include <algorithm>
#include <iterator>
#include <map>
#include <memory>
#include <utility>
#include <vector>
#include <renderboi/window/gl_window.hpp>
#include <renderboi/window/inpu... | 34.589189 | 137 | 0.689483 | deqyra |
ad9ecf8f680a8590eaeb379dd6d4ba112981e13f | 1,003 | cc | C++ | src/Rotatable.cc | MikolasJanota/minibones | 5413f7a10e410fd88cbac53fb79c8df40cbde650 | [
"MIT"
] | 2 | 2019-06-03T08:19:50.000Z | 2019-09-20T03:10:23.000Z | src/Rotatable.cc | MikolasJanota/minibones | 5413f7a10e410fd88cbac53fb79c8df40cbde650 | [
"MIT"
] | null | null | null | src/Rotatable.cc | MikolasJanota/minibones | 5413f7a10e410fd88cbac53fb79c8df40cbde650 | [
"MIT"
] | null | null | null | /*
* File: Rotatable.cc
* Author: mikolas
* Created on: Tue, Feb 21, 2012 11:34:02 AM
* Copyright (C) 2012, Mikolas Janota
*/
#include "minisat_aux.hh"
#include "Rotatable.hh"
using Minisat::lit_Undef;
Rotatable::Rotatable(const CNF& _input_cnf)
: input_cnf(_input_cnf)
{}
void Rotatable::get_rotatables(const ... | 27.108108 | 85 | 0.664008 | MikolasJanota |
adace2e27d6fc6974fc645b6b7552e5cb156020a | 8,954 | cpp | C++ | UnitTests/Interval.cpp | Hexlord/PlayRho | a3a91554cf9b267894d06a996c5799a0479c5b5f | [
"Zlib"
] | 88 | 2017-07-13T18:12:40.000Z | 2022-03-23T03:43:11.000Z | UnitTests/Interval.cpp | Hexlord/PlayRho | a3a91554cf9b267894d06a996c5799a0479c5b5f | [
"Zlib"
] | 388 | 2017-07-13T04:32:09.000Z | 2021-11-10T20:59:23.000Z | UnitTests/Interval.cpp | Hexlord/PlayRho | a3a91554cf9b267894d06a996c5799a0479c5b5f | [
"Zlib"
] | 18 | 2017-07-20T16:14:57.000Z | 2021-06-20T07:17:23.000Z | /*
* Copyright (c) 2021 Louis Langholtz https://github.com/louis-langholtz/PlayRho
*
* 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 software.
*
* Permission is granted to anyone to use this... | 26.104956 | 94 | 0.491959 | Hexlord |
adb288d0653bd0aeb69749739248bd57e65d4730 | 1,649 | cpp | C++ | templateMethod/templateMethod.cpp | rededx/designPatterns_modernCpp | 51cfe79ceb05182f69b8a6186013134c2fd2013b | [
"MIT"
] | null | null | null | templateMethod/templateMethod.cpp | rededx/designPatterns_modernCpp | 51cfe79ceb05182f69b8a6186013134c2fd2013b | [
"MIT"
] | null | null | null | templateMethod/templateMethod.cpp | rededx/designPatterns_modernCpp | 51cfe79ceb05182f69b8a6186013134c2fd2013b | [
"MIT"
] | null | null | null | #include <iostream>
#include <memory>
/*
* AbstractClass
* implements a template method defining the skeleton of an algorithm
*/
class AbstractClass {
public:
virtual ~AbstractClass() = default;
void templateMethod() const {
primitiveOperation1();
primitiveOperation2();
primitive... | 25.369231 | 74 | 0.671316 | rededx |
adb32a9b3e93540c95a8cf2af617940d4f3f51c1 | 967 | cpp | C++ | PlatformerGame/Goal.cpp | Yoon-SeokJin/PlatformerGame | 3ef407df54cfb7419b27971a5738fd571df51073 | [
"MIT"
] | null | null | null | PlatformerGame/Goal.cpp | Yoon-SeokJin/PlatformerGame | 3ef407df54cfb7419b27971a5738fd571df51073 | [
"MIT"
] | null | null | null | PlatformerGame/Goal.cpp | Yoon-SeokJin/PlatformerGame | 3ef407df54cfb7419b27971a5738fd571df51073 | [
"MIT"
] | null | null | null | #include "Goal.hpp"
Goal::Goal(const Vec2<double>& pos, RoomIndex next_room) : Object(pos) {
sprite_info.sprite_index = SpriteIndex::goal;
this->next_room = next_room;
}
void Goal::step() {
if (room->key_flag == 1 && !cleared) {
for (Object* e : room->get_pool()) {
if (Player* p = dyna... | 40.291667 | 130 | 0.533609 | Yoon-SeokJin |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.