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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5a0df98cd3869352ddeb9e0324dd0b075151423d | 476 | hpp | C++ | include/effect_diffusion_u.hpp | ipsch/kielflow | 54f3ac1903b17bb3f14e67c3cbba341dff55158a | [
"Apache-2.0"
] | null | null | null | include/effect_diffusion_u.hpp | ipsch/kielflow | 54f3ac1903b17bb3f14e67c3cbba341dff55158a | [
"Apache-2.0"
] | null | null | null | include/effect_diffusion_u.hpp | ipsch/kielflow | 54f3ac1903b17bb3f14e67c3cbba341dff55158a | [
"Apache-2.0"
] | null | null | null | #ifndef EFFECT_DIFFUSION_U_HPP_
#define EFFECT_DIFFUSION_U_HPP_
#include "effect_base.hpp"
#include "field.hpp"
#include "operations.hpp"
#include "OP_partial_derivative.hpp"
#include "IO.hpp" // ToDo : remove this
class effect_diffusion_u : public effect
{
public :
effect_diffusion_u(double temperature_ratio);
vo... | 18.307692 | 75 | 0.777311 | ipsch |
5a1e1dfe8a1e6547a6cc186c10f275f5dcf5aa2c | 4,685 | cpp | C++ | client/interfaces/inteface_manager.cpp | WhyWeStillHere/kalinin-tcp-console-game | 461f1acd56256ed18210bb3c362049ab5b5d2e7b | [
"MIT"
] | null | null | null | client/interfaces/inteface_manager.cpp | WhyWeStillHere/kalinin-tcp-console-game | 461f1acd56256ed18210bb3c362049ab5b5d2e7b | [
"MIT"
] | null | null | null | client/interfaces/inteface_manager.cpp | WhyWeStillHere/kalinin-tcp-console-game | 461f1acd56256ed18210bb3c362049ab5b5d2e7b | [
"MIT"
] | null | null | null | #include "../../lib/network_utilities/send_command.h"
#include "interface_manager.h"
#include <cctype>
InterfaceManager::InterfaceManager()
: in_interface_(terminal_), out_interface_(terminal_) {
terminal_.Init();
}
void InterfaceManager::Start() {
out_interface_.SetScene(ScreenScene::WELCOME_SCREEN);
out_... | 26.468927 | 92 | 0.632231 | WhyWeStillHere |
5a22aaf66a6457464ca3d8093aabe46afbf27d55 | 1,777 | cpp | C++ | main/recursion/recursive_sum.cpp | angelbeshirov/algorithms | 278640573080f8e1dd173a3eb3a0df1a9741a300 | [
"MIT"
] | null | null | null | main/recursion/recursive_sum.cpp | angelbeshirov/algorithms | 278640573080f8e1dd173a3eb3a0df1a9741a300 | [
"MIT"
] | null | null | null | main/recursion/recursive_sum.cpp | angelbeshirov/algorithms | 278640573080f8e1dd173a3eb3a0df1a9741a300 | [
"MIT"
] | null | null | null | /**
Link: https://www.hackerrank.com/challenges/recursive-digit-sum/problem
Description: Sum the digits recursively until there is only 1 digit left
@author angel.beshirov
**/
#include <bits/stdc++.h>
using namespace std;
vector<string> split_string(string);
long recDigitalRoot(long p) {
if(p < 10... | 20.193182 | 115 | 0.590884 | angelbeshirov |
5a2d641524a07a46dfddc9ddead165ec6ffe952a | 1,138 | cpp | C++ | LibSharpPhysX/Generated/PxHeightFieldFlag.cpp | Alan-FGR/SharpPhysX | 9b6b49d34c94e2fd165ff50795ae36b32149751b | [
"MIT"
] | 23 | 2019-03-17T17:35:06.000Z | 2022-01-12T01:54:43.000Z | LibSharpPhysX/Generated/PxHeightFieldFlag.cpp | Alan-FGR/SharpPhysX | 9b6b49d34c94e2fd165ff50795ae36b32149751b | [
"MIT"
] | 1 | 2019-05-10T22:14:33.000Z | 2019-05-10T22:48:29.000Z | LibSharpPhysX/Generated/PxHeightFieldFlag.cpp | Alan-FGR/SharpPhysX | 9b6b49d34c94e2fd165ff50795ae36b32149751b | [
"MIT"
] | 5 | 2019-03-17T17:36:03.000Z | 2021-08-06T06:42:58.000Z | // Generated by minBND 5.1.94.90 - © github.com/Alan-FGR
ES PxHeightFieldFlagsPtr PxHeightFieldFlagsPtr_operator_Ptr_Pipe_PxHeightFieldFlag_PxHeightFieldFlag_(physx::PxHeightFieldFlag::Enum wrp_a, physx::PxHeightFieldFlag::Enum wrp_b){
auto ret = ::physx::operator|(wrp_a, wrp_b);
auto heap = new char[sizeof Px... | 47.416667 | 178 | 0.780316 | Alan-FGR |
5a41630a45ee639e62ae02d0fa7763e8253d3c00 | 4,712 | cpp | C++ | executor/operator/ref/ref_logical.cpp | wangshankun/Tengine_Atlas | b5485039e72b4a624c795ff95d73eb6d719c7706 | [
"Apache-2.0"
] | 25 | 2018-12-09T09:31:56.000Z | 2021-08-12T10:32:19.000Z | executor/operator/ref/ref_logical.cpp | wangshankun/Tengine_Atlas | b5485039e72b4a624c795ff95d73eb6d719c7706 | [
"Apache-2.0"
] | 1 | 2022-03-31T03:33:42.000Z | 2022-03-31T03:33:42.000Z | executor/operator/ref/ref_logical.cpp | wangshankun/Tengine_Atlas | b5485039e72b4a624c795ff95d73eb6d719c7706 | [
"Apache-2.0"
] | 6 | 2018-12-16T01:18:42.000Z | 2019-09-18T07:29:56.000Z | #include <vector>
#include "data_type.hpp"
#include "kernel_registry.hpp"
#include "tengine_errno.hpp"
#include "logger.hpp"
#include "graph.hpp"
#include "node_ops.hpp"
#include "tensor_mem.hpp"
#include "operator/logical.hpp"
#include "kernel/logical/ref_logical_kernel.h"
namespace TEngine {
namespac... | 31 | 115 | 0.662564 | wangshankun |
5a4862951855456e28e7b4504f1ee3dc168a8e7f | 1,098 | hxx | C++ | stdxx/array.hxx | JeneLitsch/stdxx | c83fedb802baf523b654b5c39ba03d3425902948 | [
"MIT"
] | 1 | 2022-03-08T10:14:38.000Z | 2022-03-08T10:14:38.000Z | stdxx/array.hxx | JeneLitsch/stdxx | c83fedb802baf523b654b5c39ba03d3425902948 | [
"MIT"
] | 1 | 2022-03-11T11:43:31.000Z | 2022-03-11T23:18:06.000Z | stdxx/array.hxx | JeneLitsch/stdxx | c83fedb802baf523b654b5c39ba03d3425902948 | [
"MIT"
] | null | null | null | #pragma once
#include <array>
#include <vector>
#include <span>
template<typename T, std::size_t SIZE_L, std::size_t SIZE_R>
constexpr inline std::array<T, SIZE_L + SIZE_R> operator+(
const std::array<T, SIZE_L> & l,
const std::array<T, SIZE_R> & r) {
std::array<sf::Vertex, SIZE_L + SIZE_R> arr;
std::copy_n(l.begi... | 21.529412 | 63 | 0.647541 | JeneLitsch |
5a4deb7920b6acf884b531725f74490d86740de9 | 13,683 | cpp | C++ | LOT_ethercard/LOT_dhcp.cpp | hhk7734/sundries | 2979db941be25adc2be6eb1fd95838561135af62 | [
"MIT"
] | 1 | 2018-11-12T00:52:08.000Z | 2018-11-12T00:52:08.000Z | LOT_ethercard/LOT_dhcp.cpp | hhk7734/AVR_lib | 2979db941be25adc2be6eb1fd95838561135af62 | [
"MIT"
] | null | null | null | LOT_ethercard/LOT_dhcp.cpp | hhk7734/AVR_lib | 2979db941be25adc2be6eb1fd95838561135af62 | [
"MIT"
] | null | null | null | // DHCP look-up functions based on the udp client
// http://www.ietf.org/rfc/rfc2131.txt
//
// Author: Andrew Lindsay
// Rewritten and optimized by Jean-Claude Wippler, http://jeelabs.org/
//
// Rewritten dhcpStateMachine by Chris van den Hooven
// as to implement dhcp-renew when lease expires (jun 2012)
//
// Various ... | 34.293233 | 99 | 0.563473 | hhk7734 |
9901aa91820d933df809aa9c0c261e8397d09d5c | 198 | cc | C++ | kattis/pauleigon.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 506 | 2018-08-22T10:30:38.000Z | 2022-03-31T10:01:49.000Z | kattis/pauleigon.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 13 | 2019-08-07T18:31:18.000Z | 2020-12-15T21:54:41.000Z | kattis/pauleigon.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 234 | 2018-08-06T17:11:41.000Z | 2022-03-26T10:56:42.000Z | // https://open.kattis.com/problems/pauleigon
#include <iostream>
using namespace std;
int main() {
int n, p, q;
cin >> n >> p >> q;
cout << (((p + q) / n) % 2 ? "opponent\n" : "paul\n");
}
| 18 | 56 | 0.545455 | Ashindustry007 |
9904d9cbb4d1f3dfd49ab7dd16c9993bd9e1dfcc | 1,395 | cpp | C++ | modules/Memory.cpp | tyraindreams/EpicBasic | 6dc2d4fb567a8d0fef2db4ff80a17905e23af143 | [
"CC0-1.0"
] | null | null | null | modules/Memory.cpp | tyraindreams/EpicBasic | 6dc2d4fb567a8d0fef2db4ff80a17905e23af143 | [
"CC0-1.0"
] | null | null | null | modules/Memory.cpp | tyraindreams/EpicBasic | 6dc2d4fb567a8d0fef2db4ff80a17905e23af143 | [
"CC0-1.0"
] | null | null | null | // --------------------------------------------------------------------------------
//
// EpicBasic Memory Library
//
// --------------------------------------------------------------------------------
#define _ebP_AllocateMemory(Size) reinterpret_cast <char *> (malloc(Size))
const auto& _ebP... | 28.469388 | 95 | 0.598566 | tyraindreams |
9906f1d6055d2c12880e21b6cddb75fa64dd5daf | 6,077 | cc | C++ | Engine/spcCore/graphics/material/material.cc | marcellfischbach/SpiceEngine | e25e1e4145b7afaea9179bb8e33e4d184bd407c4 | [
"BSD-3-Clause"
] | null | null | null | Engine/spcCore/graphics/material/material.cc | marcellfischbach/SpiceEngine | e25e1e4145b7afaea9179bb8e33e4d184bd407c4 | [
"BSD-3-Clause"
] | 1 | 2021-09-09T12:51:56.000Z | 2021-09-09T12:51:56.000Z | Engine/spcCore/graphics/material/material.cc | marcellfischbach/SpiceEngine | e25e1e4145b7afaea9179bb8e33e4d184bd407c4 | [
"BSD-3-Clause"
] | null | null | null |
#include <spcCore/graphics/material/material.hh>
#include <spcCore/graphics/shading/ishader.hh>
#include <spcCore/graphics/shading/ishaderattribute.hh>
namespace spc
{
Material::Material()
: iMaterial()
, m_queue(eRenderQueue::Default)
{
SPC_CLASS_GEN_CONSTR;
for (Size i = 0; i < eRP_COUNT; i++)
{
m_... | 19.603226 | 117 | 0.657397 | marcellfischbach |
99084acf901603168c85bec56bf70380c91d05e7 | 218 | cpp | C++ | Buy_a_Shovel.cpp | seikhchilli/codeforces-problemset | 7b64c91ef9eb9e36b2931335ae131648de0de285 | [
"MIT"
] | 3 | 2021-09-01T13:27:29.000Z | 2021-09-24T12:35:37.000Z | Buy_a_Shovel.cpp | seikhchilli/codeforces-problemset | 7b64c91ef9eb9e36b2931335ae131648de0de285 | [
"MIT"
] | null | null | null | Buy_a_Shovel.cpp | seikhchilli/codeforces-problemset | 7b64c91ef9eb9e36b2931335ae131648de0de285 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int main(){
int n, k, i = 1;
cin>>n>>k;
int r = n;
while(true){
n = r * i;
if(n%10 == 0 || n%10 == k){
cout<<i<<endl;
return 0;
}
i++;
}
}
| 12.823529 | 31 | 0.43578 | seikhchilli |
990e552acf26871e0b45b4250981f739cd3e4491 | 7,817 | hpp | C++ | 1/Code/Source/Engine/String.hpp | Zakhar-V/Prototypes | 413a7ce9fdb2a6f3ba97a041f798c71351efc855 | [
"MIT"
] | null | null | null | 1/Code/Source/Engine/String.hpp | Zakhar-V/Prototypes | 413a7ce9fdb2a6f3ba97a041f798c71351efc855 | [
"MIT"
] | null | null | null | 1/Code/Source/Engine/String.hpp | Zakhar-V/Prototypes | 413a7ce9fdb2a6f3ba97a041f798c71351efc855 | [
"MIT"
] | null | null | null | #pragma once
#include "Container.hpp" // for Array<T>
#include <string>
namespace ge
{
//----------------------------------------------------------------------------//
// Defs
//----------------------------------------------------------------------------//
class String;
struct StringHash;
typedef ... | 40.713542 | 103 | 0.54228 | Zakhar-V |
990e976b23f7c564c8bfacbda9843e8898e41fd4 | 7,189 | cpp | C++ | Source/Borderlands/weapon/WeaponGraphic.cpp | yongaro/Borderlands | 39fbcf095400b53f4394cc115e59f40e59520484 | [
"Apache-2.0"
] | 1 | 2020-04-03T13:29:51.000Z | 2020-04-03T13:29:51.000Z | Source/Borderlands/weapon/WeaponGraphic.cpp | yongaro/Borderlands | 39fbcf095400b53f4394cc115e59f40e59520484 | [
"Apache-2.0"
] | null | null | null | Source/Borderlands/weapon/WeaponGraphic.cpp | yongaro/Borderlands | 39fbcf095400b53f4394cc115e59f40e59520484 | [
"Apache-2.0"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "WeaponGraphic.h"
#include "Borderlands.h"
#include "XmlParser.h"
TArray<FWeaponsParts*>* AWeaponGraphic::weaponsParts = NULL;
void AWeaponGraphic::defaultWeap(){
AWeaponGraphic::loadXML();
FWeaponsParts* pistols = AWeaponGra... | 39.718232 | 189 | 0.724997 | yongaro |
990ed2e1ae2262b608f12d2f9469ed18a81adea4 | 3,473 | cpp | C++ | nasa_rover/src/NasaRover.cpp | ptiwari0664/MarcRover | 6bae65b2597d8439b8c6a4e207e9d86075992613 | [
"Apache-2.0"
] | 1 | 2019-06-17T18:14:03.000Z | 2019-06-17T18:14:03.000Z | nasa_rover/src/NasaRover.cpp | ptiwari0664/MarcRover | 6bae65b2597d8439b8c6a4e207e9d86075992613 | [
"Apache-2.0"
] | null | null | null | nasa_rover/src/NasaRover.cpp | ptiwari0664/MarcRover | 6bae65b2597d8439b8c6a4e207e9d86075992613 | [
"Apache-2.0"
] | null | null | null | #include "nasa_rover/NasaRover.h"
/**
* @brief NasaRover::NasaRover
* @param position_x
* @param position_y
* @param Orientation
* @param Command
* @abstract Command dependent rover movement
*/
NasaRover::NasaRover(int position_x, int position_y,
char Orientation, std::string Command){
I... | 22.699346 | 84 | 0.615894 | ptiwari0664 |
990fc6979c38adc23c92ed1877b61fa159ea4ee3 | 2,827 | cc | C++ | cmd_cmakemaker/source/utility/settings_parser.cc | KarlJansson/CMakeMaker | 05ec25ca4ea196a50697e13f7756e7be79a08281 | [
"MIT"
] | null | null | null | cmd_cmakemaker/source/utility/settings_parser.cc | KarlJansson/CMakeMaker | 05ec25ca4ea196a50697e13f7756e7be79a08281 | [
"MIT"
] | null | null | null | cmd_cmakemaker/source/utility/settings_parser.cc | KarlJansson/CMakeMaker | 05ec25ca4ea196a50697e13f7756e7be79a08281 | [
"MIT"
] | null | null | null | #include "precomp.h"
#include "settings_parser.h"
void SettingsParser::ParseSettings(
std::string path, std::map<std::string, RepoSearcher::library>& libraries,
std::map<std::string, std::string>& other_settings) {
std::ifstream open(path);
if (!open.fail()) {
RepoSearcher::library tmp;
std::strin... | 39.263889 | 78 | 0.533428 | KarlJansson |
9911832105f69ed95c516634f4d85a6c42b45cb7 | 3,305 | cpp | C++ | signal_slot/message_bus.cpp | JohnJocoo/qtkoans | 87f6d005eadf985e4c39816579d800b25712c93f | [
"CC-BY-4.0"
] | null | null | null | signal_slot/message_bus.cpp | JohnJocoo/qtkoans | 87f6d005eadf985e4c39816579d800b25712c93f | [
"CC-BY-4.0"
] | null | null | null | signal_slot/message_bus.cpp | JohnJocoo/qtkoans | 87f6d005eadf985e4c39816579d800b25712c93f | [
"CC-BY-4.0"
] | null | null | null | #include "message_bus.h"
#include <vector>
#include <mutex>
static void registerMessageReceiver(MessageReceiver* receiver);
static void removeMessageReceiver(MessageReceiver* receiver);
MessageReceiver::MessageReceiver()
{
/**
* Call registerMessageReceiver(MessageReceiver*)
* for this object to receiv... | 20.401235 | 77 | 0.670197 | JohnJocoo |
991cd7d4e429b0f4d0327a07e0125a8fb7b88242 | 876 | cpp | C++ | test-catch/remove_if.cpp | daixtrose/gentle-intro-to-ranges | 1ab90dbe0b82ad241497076d40204e815daa0181 | [
"MIT"
] | 3 | 2018-05-17T16:58:17.000Z | 2018-09-24T08:01:03.000Z | test-catch/remove_if.cpp | daixtrose/gentle-intro-to-ranges | 1ab90dbe0b82ad241497076d40204e815daa0181 | [
"MIT"
] | null | null | null | test-catch/remove_if.cpp | daixtrose/gentle-intro-to-ranges | 1ab90dbe0b82ad241497076d40204e815daa0181 | [
"MIT"
] | null | null | null | #include <catch.hpp>
#include <range/v3/all.hpp>
#include <vector>
#include <iostream>
TEST_CASE("remove_if on sequence", "[filtering]")
{
std::vector<int> numbers{1, 2, 3, 4, 5, 6};
using ranges::view::remove_if;
using ranges::view::filter;
using ranges::not_fn;
auto is_odd = [](int i) {
... | 30.206897 | 79 | 0.618721 | daixtrose |
992236d05b3cd436ab1a3b80bd4a5a551b5bb51c | 1,627 | cpp | C++ | 2-ui-start/BasicWindowsSkeleton/SkeletonWindow.cpp | weliwita/CPPWindowsTutorial | 0bba092c20e1afad3434b521a21ae09573579cde | [
"Apache-2.0"
] | null | null | null | 2-ui-start/BasicWindowsSkeleton/SkeletonWindow.cpp | weliwita/CPPWindowsTutorial | 0bba092c20e1afad3434b521a21ae09573579cde | [
"Apache-2.0"
] | null | null | null | 2-ui-start/BasicWindowsSkeleton/SkeletonWindow.cpp | weliwita/CPPWindowsTutorial | 0bba092c20e1afad3434b521a21ae09573579cde | [
"Apache-2.0"
] | null | null | null | #include "Precompiled.h"
//#include <windows.h> // include the basic windows header file
typedef LRESULT(*message_callback)(HWND, WPARAM, LPARAM);
struct message_handler
{
UINT message;
message_callback handler;
};
static message_handler s_handlers[] = {
{
WM_PAINT, [](HWND window, WPARAM, ... | 21.12987 | 98 | 0.647818 | weliwita |
992b567323fedc15a6c58c83ba4149e3dfeca3d2 | 633 | cpp | C++ | imgui_plugin.cpp | bannid/CardGame | c5df2adb7a96df506fa24544cd8499076bb3ebbc | [
"Zlib"
] | null | null | null | imgui_plugin.cpp | bannid/CardGame | c5df2adb7a96df506fa24544cd8499076bb3ebbc | [
"Zlib"
] | null | null | null | imgui_plugin.cpp | bannid/CardGame | c5df2adb7a96df506fa24544cd8499076bb3ebbc | [
"Zlib"
] | null | null | null | #include "imgui_plugin.h"
#ifdef DEBUG
void ImguiInit(GLFWwindow * window){
IMGUI_CHECKVERSION();
ImGui::CreateContext();
ImGuiIO& io = ImGui::GetIO(); (void)io;
ImGui::StyleColorsDark();
ImGui_ImplGlfw_InitForOpenGL(window, true);
ImGui_ImplOpenGL3_Init("#version 330");
}
void ImguiNewFrame(){
... | 25.32 | 59 | 0.709321 | bannid |
992c0d48f4790918253707b1f85c6301b6c5b542 | 190 | hh | C++ | plugins/tuning-provider.hh | free-audio/clap-plugins | ed0ee9d74f7cb829575139a3f92bb169ce07e7c9 | [
"MIT"
] | 26 | 2021-11-29T10:51:39.000Z | 2022-03-24T02:48:06.000Z | plugins/tuning-provider.hh | free-audio/clap-plugins | ed0ee9d74f7cb829575139a3f92bb169ce07e7c9 | [
"MIT"
] | 3 | 2021-12-24T22:42:48.000Z | 2022-01-03T03:47:26.000Z | plugins/tuning-provider.hh | free-audio/clap-plugins | ed0ee9d74f7cb829575139a3f92bb169ce07e7c9 | [
"MIT"
] | 2 | 2021-11-02T13:52:13.000Z | 2021-12-18T18:39:17.000Z | #pragma once
#include <clap/clap.h>
namespace clap {
class TuningProvider {
public:
double getFreq(int16_t port, int16_t channel, int16_t key) const;
};
} // namespace clap
| 17.272727 | 71 | 0.684211 | free-audio |
992e42746924779b09724ea1aa24fe40c50efb9e | 531 | cpp | C++ | labs/6/Practice_01 - Introduction to OOP and structures/Solutions/Task4/main.cpp | triffon/oop-2019-20 | db199631d59ddefdcc0c8eb3d689de0095618f92 | [
"MIT"
] | 19 | 2020-02-21T16:46:50.000Z | 2022-01-26T19:59:49.000Z | labs/6/Practice_01 - Introduction to OOP and structures/Solutions/Task4/main.cpp | triffon/oop-2019-20 | db199631d59ddefdcc0c8eb3d689de0095618f92 | [
"MIT"
] | 1 | 2020-03-14T08:09:45.000Z | 2020-03-14T08:09:45.000Z | labs/6/Practice_01 - Introduction to OOP and structures/Solutions/Task4/main.cpp | triffon/oop-2019-20 | db199631d59ddefdcc0c8eb3d689de0095618f92 | [
"MIT"
] | 11 | 2020-02-23T12:29:58.000Z | 2021-04-11T08:30:12.000Z | #include <iostream>
#include "Screen.h"
int main() {
Screen screen, screen1;
enterScreen(screen);
enterScreen(screen1);
setColor(screen, Red);
printScreen(screen);
setColor(screen1, Yellow);
printScreen(screen1);
if(compareByInches(screen, screen1)) {
std::cout << "First scre... | 21.24 | 80 | 0.630885 | triffon |
993599f914eff603c20546c17120eee8a1798b8d | 15,283 | cpp | C++ | Final/Dataset/B2016_Z4_Z4/student1938.cpp | Team-PyRated/PyRated | 1df171c8a5a98977b7a96ee298a288314d1b1b96 | [
"MIT"
] | null | null | null | Final/Dataset/B2016_Z4_Z4/student1938.cpp | Team-PyRated/PyRated | 1df171c8a5a98977b7a96ee298a288314d1b1b96 | [
"MIT"
] | null | null | null | Final/Dataset/B2016_Z4_Z4/student1938.cpp | Team-PyRated/PyRated | 1df171c8a5a98977b7a96ee298a288314d1b1b96 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#include <vector>
#include <string>
#include <stdexcept>
#include <iomanip>
#include <algorithm>
#include <cstring>
#include <cstdio>
#include <memory>
class Datum{
int d,m,g;
public:
Datum(int dan, int mjesec, int godina){Postavi(dan,mjesec,godina);}
... | 43.916667 | 129 | 0.599686 | Team-PyRated |
993b667f3cf164a169cb861811c96e6bfff8bf21 | 1,160 | cpp | C++ | oop_ex55.cpp | 85105/HW | 2161a1a7ac1082a85454672d359c00f2d42ef21f | [
"MIT"
] | null | null | null | oop_ex55.cpp | 85105/HW | 2161a1a7ac1082a85454672d359c00f2d42ef21f | [
"MIT"
] | null | null | null | oop_ex55.cpp | 85105/HW | 2161a1a7ac1082a85454672d359c00f2d42ef21f | [
"MIT"
] | null | null | null | /*
oop_ex55.cpp
Constructor with default arguments
*/
#include <iostream>
using namespace std;
class Time
{
int hour;
int minute;
int second;
public:
Time(int h = 0, int m = 0, int s = 0) //equivalent to 4 constructors
{
hour = h;
minute = m;
second = s;
}
//Time(){}
void print12HR();
void print24H... | 14.683544 | 71 | 0.576724 | 85105 |
9940c5eaab68694147b0efe68329f4cf195ee189 | 695 | cpp | C++ | graph-source-code/34-D/7301985.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/34-D/7301985.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/34-D/7301985.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: GNU C++
#include <iostream>
#include <vector>
#include <algorithm>
#include <fstream>
#define MAX_N (5 * 1e4)
using namespace std;
int nodes[(int)MAX_N + 1];
int n, r1, r2;
void reverse(int act){
if(act == r1) return;
reverse(nodes[act]);
nodes[nodes[act]] = act;
}
int main(){
#ifdef APAAPA
f... | 12.87037 | 34 | 0.515108 | AmrARaouf |
99415f7066af57e48cf10431e07a4d82cf265bc0 | 67 | cpp | C++ | LineDrawer/Renderer.cpp | CampbellOwen/LineDrawerCPP | 35dce40aaa8304006158f6189f185d43ba9ecc13 | [
"MIT"
] | null | null | null | LineDrawer/Renderer.cpp | CampbellOwen/LineDrawerCPP | 35dce40aaa8304006158f6189f185d43ba9ecc13 | [
"MIT"
] | null | null | null | LineDrawer/Renderer.cpp | CampbellOwen/LineDrawerCPP | 35dce40aaa8304006158f6189f185d43ba9ecc13 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Renderer.h"
Renderer::~Renderer() {} | 16.75 | 24 | 0.686567 | CampbellOwen |
99445d03f4f1efe1c6410ad997d3c3c1cdca969c | 31,853 | cpp | C++ | build/linux-build/Sources/src/kha/internal/BytesBlob.cpp | HedgehogFog/TimeOfDeath | b78abacf940e1a88c8b987d99764ebb6876c5dc6 | [
"MIT"
] | null | null | null | build/linux-build/Sources/src/kha/internal/BytesBlob.cpp | HedgehogFog/TimeOfDeath | b78abacf940e1a88c8b987d99764ebb6876c5dc6 | [
"MIT"
] | null | null | null | build/linux-build/Sources/src/kha/internal/BytesBlob.cpp | HedgehogFog/TimeOfDeath | b78abacf940e1a88c8b987d99764ebb6876c5dc6 | [
"MIT"
] | null | null | null | // Generated by Haxe 4.0.0-preview.5
#include <hxcpp.h>
#ifndef INCLUDED_95f339a1d026d52c
#define INCLUDED_95f339a1d026d52c
#include "hxMath.h"
#endif
#ifndef INCLUDED_haxe_io_Bytes
#include <hxinc/haxe/io/Bytes.h>
#endif
#ifndef INCLUDED_kha_Resource
#include <hxinc/kha/Resource.h>
#endif
#ifndef INCLUDED_kha_interna... | 39.3733 | 201 | 0.662104 | HedgehogFog |
9951abda1234ba80f2b9ac3cb942540ddfc410b2 | 864 | cpp | C++ | src/utils/StreamUtils.cpp | bendem/SchoolStats | 59883f1ba1219d707fedf9a890c0357d2002a285 | [
"Unlicense"
] | null | null | null | src/utils/StreamUtils.cpp | bendem/SchoolStats | 59883f1ba1219d707fedf9a890c0357d2002a285 | [
"Unlicense"
] | null | null | null | src/utils/StreamUtils.cpp | bendem/SchoolStats | 59883f1ba1219d707fedf9a890c0357d2002a285 | [
"Unlicense"
] | null | null | null | #include "utils/StreamUtils.hpp"
List<string> StreamUtils::readLines(istream& is) {
List<string> lines;
string line;
while(is.peek() != EOF) {
getline(is, line, is.widen('\n'));
lines.add(line);
}
return lines;
}
string StreamUtils::read() {
string tmp;
getline(cin, tmp, ci... | 22.736842 | 71 | 0.53125 | bendem |
9953bc9b723f00bc2d2501aa952c8d6a2d16fbab | 944 | cpp | C++ | src/sim/Cache/TextureCacheGen.cpp | attila-sim/attila-sim | a64b57240b4e10dc4df7f21eff0232b28df09532 | [
"BSD-3-Clause"
] | 23 | 2016-01-14T04:47:13.000Z | 2022-01-13T14:02:08.000Z | src/sim/Cache/TextureCacheGen.cpp | attila-sim/attila-sim | a64b57240b4e10dc4df7f21eff0232b28df09532 | [
"BSD-3-Clause"
] | 2 | 2018-03-25T14:39:20.000Z | 2022-03-18T05:11:21.000Z | src/sim/Cache/TextureCacheGen.cpp | attila-sim/attila-sim | a64b57240b4e10dc4df7f21eff0232b28df09532 | [
"BSD-3-Clause"
] | 17 | 2016-02-13T05:35:35.000Z | 2022-03-24T16:05:40.000Z | /**************************************************************************
*
* Copyright (c) 2002 - 2011 by Computer Architecture Department,
* Universitat Politecnica de Catalunya.
* All rights reserved.
*
* The contents of this file may not b;e disclosed to third parties,
* copied or duplicated in any form, i... | 23.6 | 79 | 0.653602 | attila-sim |
995a35ae0a7a2a7cbdfaa4beca175ef3681ad2b3 | 1,050 | cpp | C++ | tests/LessRuleset_test.cpp | Ti-R/clessc | c822dedd077ff82395890d6c58f213d9a574d96c | [
"MIT"
] | 66 | 2015-02-07T09:08:30.000Z | 2021-12-06T17:07:45.000Z | tests/LessRuleset_test.cpp | Ti-R/clessc | c822dedd077ff82395890d6c58f213d9a574d96c | [
"MIT"
] | 30 | 2015-01-18T07:05:48.000Z | 2020-10-08T12:44:21.000Z | tests/LessRuleset_test.cpp | Ti-R/clessc | c822dedd077ff82395890d6c58f213d9a574d96c | [
"MIT"
] | 19 | 2015-10-19T12:59:19.000Z | 2021-12-06T17:07:49.000Z | #include <list>
#include <gtest/gtest.h>
#include <less/lessstylesheet/LessStylesheet.h>
#include <less/lessstylesheet/LessRuleset.h>
class LessRulesetTest : public ::testing::Test {
public:
LessSelector *selector;
LessStylesheet *stylesheet;
LessRuleset *ruleset;
virtual void SetUp() {
TokenList tokens;
... | 24.418605 | 73 | 0.687619 | Ti-R |
9963cd007e2e9ae08e947da0a767093464834b4d | 3,921 | cpp | C++ | gui/parameterwidget.cpp | julienlopez/QRocketLaunchSimulator | 132e979489b3b84a82c162df0209085d0a30fd8e | [
"MIT"
] | null | null | null | gui/parameterwidget.cpp | julienlopez/QRocketLaunchSimulator | 132e979489b3b84a82c162df0209085d0a30fd8e | [
"MIT"
] | 5 | 2015-02-19T09:25:15.000Z | 2015-02-19T14:43:20.000Z | gui/parameterwidget.cpp | julienlopez/QRocketLaunchSimulator | 132e979489b3b84a82c162df0209085d0a30fd8e | [
"MIT"
] | null | null | null | #include "parameterwidget.hpp"
#include <fstream>
#include <QApplication>
#include <QComboBox>
#include <QDir>
#include <QDoubleSpinBox>
#include <QHBoxLayout>
#include <QLabel>
#include <QPushButton>
ParameterWidget::ParameterWidget(QWidget* parent_) : QWidget(parent_)
{
loadRocketModels();
const int c_spacing = ... | 28.620438 | 85 | 0.742668 | julienlopez |
9965057eb46d6f5ed0c5f68b3b4d7430ff3b2ae0 | 129 | cpp | C++ | ros_ws/src/baxter_simulator/baxter_sim_controllers/src/baxter_velocity_controller.cpp | mesneym/Baxter-Arm-PP | fdbf86309bc64c31af105daa026b2f8519710129 | [
"MIT"
] | null | null | null | ros_ws/src/baxter_simulator/baxter_sim_controllers/src/baxter_velocity_controller.cpp | mesneym/Baxter-Arm-PP | fdbf86309bc64c31af105daa026b2f8519710129 | [
"MIT"
] | null | null | null | ros_ws/src/baxter_simulator/baxter_sim_controllers/src/baxter_velocity_controller.cpp | mesneym/Baxter-Arm-PP | fdbf86309bc64c31af105daa026b2f8519710129 | [
"MIT"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:c12d1ed4dddc7a6c05053633444d4467356eacc4e99f541da043b8a26841f8ce
size 7684
| 32.25 | 75 | 0.883721 | mesneym |
99669d364a97b542cc7d847b7430dce030f39c4c | 2,260 | cc | C++ | caveat/cache.cc | phaa-eu/cavatools | 581a7eee690a35265a30ea4c7089f3445cbd36f2 | [
"Apache-2.0"
] | null | null | null | caveat/cache.cc | phaa-eu/cavatools | 581a7eee690a35265a30ea4c7089f3445cbd36f2 | [
"Apache-2.0"
] | null | null | null | caveat/cache.cc | phaa-eu/cavatools | 581a7eee690a35265a30ea4c7089f3445cbd36f2 | [
"Apache-2.0"
] | 1 | 2021-08-13T20:02:18.000Z | 2021-08-13T20:02:18.000Z | #include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/syscall.h>
#include "cache.h"
#include "lru_fsm_1way.h"
#include "lru_fsm_2way.h"
#include "lru_fsm_3way.h"
#include "lru_fsm_4way.h"
cache_t::cache_t(const char* nam, int miss, int w, int lin, int row, bool writeable)
{
na... | 28.607595 | 88 | 0.615487 | phaa-eu |
9968f171a13b61b891cb5edac8ee9a6ffce122cc | 1,699 | cpp | C++ | source/plugin/PluginProcessor.cpp | ruurdadema/juce-bootstrap | 64dbb9f412a518ee5fe78327d7cedf4179adb5f7 | [
"MIT"
] | 2 | 2021-09-03T14:31:44.000Z | 2021-09-04T04:27:37.000Z | source/plugin/PluginProcessor.cpp | ruurdadema/juce-bootstrap | 64dbb9f412a518ee5fe78327d7cedf4179adb5f7 | [
"MIT"
] | null | null | null | source/plugin/PluginProcessor.cpp | ruurdadema/juce-bootstrap | 64dbb9f412a518ee5fe78327d7cedf4179adb5f7 | [
"MIT"
] | null | null | null | //
// Created by Ruurd Adema on 18/12/2020.
// Copyright (c) 2020 Owllab. All rights reserved.
//
#include "PluginProcessor.h"
#include "PluginEditor.h"
PluginProcessor::PluginProcessor() {}
PluginProcessor::~PluginProcessor() {}
void PluginProcessor::prepareToPlay (double, int) {}
void PluginProcessor::releaseRes... | 19.528736 | 101 | 0.745733 | ruurdadema |
996e983c98607304ddc5fd4abea57b06b667df3c | 297 | cpp | C++ | bagua-tensorflow/src/tf.cpp | TianyouLi/Inference-Library-for-JavaScript | 50686f240cb308d2dab9d30739fb953ce21aaff6 | [
"BSD-2-Clause"
] | 9 | 2017-04-18T02:37:15.000Z | 2020-01-03T07:21:14.000Z | bagua-tensorflow/src/tf.cpp | overmad/Inference-Library-for-JavaScript | 50686f240cb308d2dab9d30739fb953ce21aaff6 | [
"BSD-2-Clause"
] | 1 | 2017-05-15T11:39:30.000Z | 2017-05-15T11:42:06.000Z | bagua-tensorflow/src/tf.cpp | overmad/Inference-Library-for-JavaScript | 50686f240cb308d2dab9d30739fb953ce21aaff6 | [
"BSD-2-Clause"
] | 6 | 2017-04-20T07:00:12.000Z | 2020-01-03T07:21:15.000Z | #include "tf.h"
#include "opencv.h"
static NAN_MODULE_INIT(Init) {
Nan::HandleScope scope;
// Tensorflow
DataType::Init(target);
Tensor::Init(target);
Graph::Init(target);
Session::Init(target);
// Opencv
Mat::Init(target);
IO::Init(target);
}
NODE_MODULE(Tensorflow, Init);
| 15.631579 | 30 | 0.673401 | TianyouLi |
997b3512041069863be423a226cb7ec46f06fc1f | 2,796 | cpp | C++ | alica_tests/src/test/test_task_assignment.cpp | hendrik-skubch/alica | fe82928edf3a36df5f07a2258ff21d17ca8fa6d9 | [
"MIT"
] | null | null | null | alica_tests/src/test/test_task_assignment.cpp | hendrik-skubch/alica | fe82928edf3a36df5f07a2258ff21d17ca8fa6d9 | [
"MIT"
] | null | null | null | alica_tests/src/test/test_task_assignment.cpp | hendrik-skubch/alica | fe82928edf3a36df5f07a2258ff21d17ca8fa6d9 | [
"MIT"
] | null | null | null | #include "BehaviourCreator.h"
#include "ConditionCreator.h"
#include "ConstraintCreator.h"
#include "UtilityFunctionCreator.h"
#include "engine/AgentIDConstPtr.h"
#include "engine/AlicaClock.h"
#include "engine/AlicaEngine.h"
#include "engine/IRoleAssignment.h"
#include "engine/PlanBase.h"
#include "engine/PlanReposito... | 30.725275 | 101 | 0.687411 | hendrik-skubch |
5f53684a3659565a62924adf43e1fd427de57d21 | 761 | cpp | C++ | IndexBuffer.cpp | Timangar/Slow-Loris | fc2391380d4444648c68ce13f707142b5a826550 | [
"Apache-2.0"
] | null | null | null | IndexBuffer.cpp | Timangar/Slow-Loris | fc2391380d4444648c68ce13f707142b5a826550 | [
"Apache-2.0"
] | null | null | null | IndexBuffer.cpp | Timangar/Slow-Loris | fc2391380d4444648c68ce13f707142b5a826550 | [
"Apache-2.0"
] | null | null | null | #include "IndexBuffer.h"
#include "GLCall.h"
IndexBuffer::IndexBuffer(const unsigned int* Data, int SizeOfData)
{
GLCall(glGenBuffers(1, &ID));
GLCall(glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, ID));
GLCall(glBufferData(GL_ELEMENT_ARRAY_BUFFER, SizeOfData, Data, GL_STATIC_DRAW));
}
IndexBuffer::IndexBuffer()
{
unsigne... | 23.060606 | 83 | 0.7477 | Timangar |
5f54e7358e045f9341ed97e24796debcb0dd15eb | 704 | cpp | C++ | 1100/80/1185b.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 1 | 2020-07-03T15:55:52.000Z | 2020-07-03T15:55:52.000Z | 1100/80/1185b.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | null | null | null | 1100/80/1185b.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 3 | 2020-10-01T14:55:28.000Z | 2021-07-11T11:33:58.000Z | #include <iostream>
#include <string>
void answer(bool v)
{
constexpr const char* s[2] = { "NO", "YES" };
std::cout << s[v] << '\n';
}
void solve(const std::string& s, const std::string& t)
{
for (auto si = s.cbegin(), ti = t.cbegin(); ti != t.cend(); ++ti) {
if (*ti == *si) {
++si;
... | 14.978723 | 71 | 0.451705 | actium |
5f56e8fa2e43ad0f5a7fdb3abaef5d5e29311891 | 19,083 | cpp | C++ | compiler/visitors/typePropagationVisitor.cpp | cpi-lang/cpi | 17e6ca2a8a85dcdfa144b7d6ad52e6ad2b7c3847 | [
"MIT"
] | 4 | 2016-01-19T03:31:35.000Z | 2016-03-14T18:42:31.000Z | compiler/visitors/typePropagationVisitor.cpp | cpi-lang/cpi | 17e6ca2a8a85dcdfa144b7d6ad52e6ad2b7c3847 | [
"MIT"
] | 1 | 2016-01-31T18:21:57.000Z | 2016-01-31T18:21:57.000Z | compiler/visitors/typePropagationVisitor.cpp | cpi-lang/cpi | 17e6ca2a8a85dcdfa144b7d6ad52e6ad2b7c3847 | [
"MIT"
] | null | null | null | #include "visitor.h"
void TypePropagationVisitor::visitDeclaration(Declaration* d)
{
visit(d->type);
if (d->type->type != NodeType::NONE)
{
auto sanitizedInitialValue = sanitize(d->initialValue);
if (sanitizedInitialValue->type == NodeType::FUNCTION)
{
sanitizedInitialVa... | 31.490099 | 113 | 0.551276 | cpi-lang |
5f5a9060472651131fdf829fac2d5c1542f84593 | 413 | cpp | C++ | communication/src/client.cpp | yy738686337/sgx_project_v2 | 20a8db8a2aecac0aead50e00d3f8515c46b9af9a | [
"Apache-2.0"
] | null | null | null | communication/src/client.cpp | yy738686337/sgx_project_v2 | 20a8db8a2aecac0aead50e00d3f8515c46b9af9a | [
"Apache-2.0"
] | null | null | null | communication/src/client.cpp | yy738686337/sgx_project_v2 | 20a8db8a2aecac0aead50e00d3f8515c46b9af9a | [
"Apache-2.0"
] | null | null | null |
#include "client_handler.h"
#include "client.hpp"
void Client::run()
{
if(!workable) {
return ;
}
string addr = config.get<string>("server.addr");
int port = config.get<int>("server.port");
handler = make_shared<ClientHandler>(addr, port, shared_from_this());
std::thread server_handle... | 25.8125 | 87 | 0.668281 | yy738686337 |
5f5c0f0591817ecc30a3015cbd969550655c13a6 | 103 | cpp | C++ | 00_warmup/00_warmup_solutions/Hello World!.cpp | purple221/T-414-AFLV | 5aa215fd88a37e344a92cf98d5bc05653099444f | [
"CC-BY-4.0"
] | 1 | 2020-12-13T20:06:46.000Z | 2020-12-13T20:06:46.000Z | 00_warmup/00_warmup_solutions/Hello World!.cpp | purple221/T-414-AFLV | 5aa215fd88a37e344a92cf98d5bc05653099444f | [
"CC-BY-4.0"
] | null | null | null | 00_warmup/00_warmup_solutions/Hello World!.cpp | purple221/T-414-AFLV | 5aa215fd88a37e344a92cf98d5bc05653099444f | [
"CC-BY-4.0"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int main()
{
cout << "Hello World!";
}
| 11.444444 | 27 | 0.640777 | purple221 |
5f62f306250ad8df0125070dd88091bf5b6ad129 | 16,702 | cpp | C++ | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F7508-DISCO/Demonstrations/TouchGFX/Gui/generated/fonts/src/Font_ipaexg_18_4bpp.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F7508-DISCO/Demonstrations/TouchGFX/Gui/generated/fonts/src/Font_ipaexg_18_4bpp.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F7508-DISCO/Demonstrations/TouchGFX/Gui/generated/fonts/src/Font_ipaexg_18_4bpp.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | #include <touchgfx/hal/Types.hpp>
FONT_LOCATION_FLASH_PRAGMA
KEEP extern const uint8_t unicodes_ipaexg_18_4bpp[] FONT_LOCATION_FLASH_ATTRIBUTE =
{
// Unicode: [0x0046, aj39]
0xF4, 0xFF, 0xFF, 0xFF, 0x4C, 0xAF, 0x77, 0x77, 0x57, 0xF4, 0x04, 0x00, 0x00, 0x40, 0x4F, 0x00,
0x00, 0x00, 0xF4, 0x04, 0x00, 0x00, 0... | 81.872549 | 99 | 0.635613 | ramkumarkoppu |
5f64cd746c5e527fd4ae19a203866baacb212270 | 13,381 | hpp | C++ | src/js_results.hpp | rh389/realm-js-flat | 5f1e8cff11df9cc14560a17b74745e72b704a6c3 | [
"Apache-2.0"
] | null | null | null | src/js_results.hpp | rh389/realm-js-flat | 5f1e8cff11df9cc14560a17b74745e72b704a6c3 | [
"Apache-2.0"
] | null | null | null | src/js_results.hpp | rh389/realm-js-flat | 5f1e8cff11df9cc14560a17b74745e72b704a6c3 | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////
//
// Copyright 2016 Realm Inc.
//
// 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/li... | 41.172308 | 168 | 0.692026 | rh389 |
5f64f4782a30d2aa0a8591a9d7576f5cb4424cc2 | 2,872 | cpp | C++ | Src/LFramework/USB/Host/UsbHostManager.cpp | L-proger/LFramework | e43cd53c091465e015b2aef22f4b855e22308455 | [
"MIT"
] | 3 | 2020-07-25T18:39:29.000Z | 2021-11-07T08:36:19.000Z | Src/LFramework/USB/Host/UsbHostManager.cpp | L-proger/LFramework | e43cd53c091465e015b2aef22f4b855e22308455 | [
"MIT"
] | null | null | null | Src/LFramework/USB/Host/UsbHostManager.cpp | L-proger/LFramework | e43cd53c091465e015b2aef22f4b855e22308455 | [
"MIT"
] | null | null | null | #include <LFrameworkConfig.h>
#ifdef LF_USB_HOST
#include "UsbHostManager.h"
#include <initguid.h>
#include <Usbiodef.h>
#include <Windows.h>
#include <SetupAPI.h>
#include <stdexcept>
#include <regex>
UsbHostDeviceInfo UsbHostManager::getUsbDeviceInfo(const std::string& path){
UsbHostDeviceInfo result{};
... | 36.35443 | 179 | 0.687326 | L-proger |
5f697aad3c82db62f7f30b7dd7df09125570e70f | 10,533 | cc | C++ | attiny85/firmware/main.cc | pelikan400/humidityLogger | 58cc4f082b2e124f3894943a524fbd326b9f0c37 | [
"MIT"
] | null | null | null | attiny85/firmware/main.cc | pelikan400/humidityLogger | 58cc4f082b2e124f3894943a524fbd326b9f0c37 | [
"MIT"
] | null | null | null | attiny85/firmware/main.cc | pelikan400/humidityLogger | 58cc4f082b2e124f3894943a524fbd326b9f0c37 | [
"MIT"
] | null | null | null | /* Name: main.c
* Author: <insert your name here>
* Copyright: <insert your copyright message here>
* License: <insert your license reference here>
*/
#include <avr/io.h>
#include <avr/wdt.h>
#include <avr/interrupt.h> /* for sei() */
#include <avr/sleep.h>
#include <util/delay.h> /* for _delay_ms() */
#incl... | 32.409231 | 110 | 0.515523 | pelikan400 |
5f6cbaf158c0972b41bb3eabb83c8c68a505d12a | 3,465 | cpp | C++ | algorithms-and-data-structures/maximum-flow-minimum-cost/e_travelling_salemans_problem.cpp | nothingelsematters/university | 5561969b1b11678228aaf7e6660e8b1a93d10294 | [
"WTFPL"
] | 1 | 2018-06-03T17:48:50.000Z | 2018-06-03T17:48:50.000Z | algorithms-and-data-structures/maximum-flow-minimum-cost/e_travelling_salemans_problem.cpp | nothingelsematters/University | b1e188cb59e5a436731b92c914494626a99e1ae0 | [
"WTFPL"
] | null | null | null | algorithms-and-data-structures/maximum-flow-minimum-cost/e_travelling_salemans_problem.cpp | nothingelsematters/University | b1e188cb59e5a436731b92c914494626a99e1ae0 | [
"WTFPL"
] | 14 | 2019-04-07T21:27:09.000Z | 2021-12-05T13:37:25.000Z | #include <iostream>
#include <memory>
#include <queue>
#include <optional>
#include <limits>
#include <vector>
static constexpr long long INF = std::numeric_limits<long long>::max();
class edge {
public:
edge(size_t from, size_t to, long long capacity, long long cost, size_t reverse)
: from(from), to(to), cap... | 29.117647 | 105 | 0.52785 | nothingelsematters |
5f6db55e04d9eaca0de60868b922472d613dec21 | 961 | cpp | C++ | code/main.cpp | DonutLaser/laser-metronome | 6e256e32300fbaa1d330d9c07b6737ee436f7031 | [
"MIT"
] | null | null | null | code/main.cpp | DonutLaser/laser-metronome | 6e256e32300fbaa1d330d9c07b6737ee436f7031 | [
"MIT"
] | null | null | null | code/main.cpp | DonutLaser/laser-metronome | 6e256e32300fbaa1d330d9c07b6737ee436f7031 | [
"MIT"
] | null | null | null | #include "metronome.h"
#include "constants.h"
#include "../third_party/gui_window.h"
#if 0
#define GUI_DEBUG
#endif
GUI_MAIN {
#if defined (GUI_DEBUG)
wnd_create_console ();
#endif
gui_window window = wnd_create ("Laser Metronome", WINDOW_WIDTH, WINDOW_HEIGHT, false);
wnd_set_style (window, S_FIXEDSIZE);
window... | 22.880952 | 88 | 0.728408 | DonutLaser |
5f6ecd7f889ac329745248228d96e2cafa185bdf | 383 | cpp | C++ | jumping statement/continue statement/prime-or-composite.cpp | Rohan-Shakya/c-programs | a6191ab00ddafe4fc5e7a055958385baaf0156b6 | [
"MIT"
] | 2 | 2021-03-02T17:44:21.000Z | 2021-07-09T16:54:11.000Z | jumping statement/continue statement/prime-or-composite.cpp | Rohan-Shakya/c-programs | a6191ab00ddafe4fc5e7a055958385baaf0156b6 | [
"MIT"
] | 3 | 2020-09-11T04:44:34.000Z | 2020-10-06T15:48:47.000Z | jumping statement/continue statement/prime-or-composite.cpp | Rohan-Shakya/c-programs | a6191ab00ddafe4fc5e7a055958385baaf0156b6 | [
"MIT"
] | 5 | 2020-08-28T04:16:48.000Z | 2021-08-06T09:13:41.000Z | // WAP to find wheather the number entered by the user is prime or composite by using the concept of continue statement
#include<stdio.h>
#include<stdlib.h>
int main(){
int i, n;
printf("Enter a number:\n");
scanf("%d", &n);
for(i = 2; i< n; i++){
if(n % i != 0){
continue;
}
printf("Composite ... | 20.157895 | 120 | 0.592689 | Rohan-Shakya |
5f75a252192e1ab6abeb6255eb07a57c61a1ec3d | 2,224 | cpp | C++ | Practica_2/Motor2D/j1Player.cpp | JosepLleal/Practica-2-IDI | a24a904f805fb9a3ca74c2a9abef8c9be0177182 | [
"MIT"
] | null | null | null | Practica_2/Motor2D/j1Player.cpp | JosepLleal/Practica-2-IDI | a24a904f805fb9a3ca74c2a9abef8c9be0177182 | [
"MIT"
] | null | null | null | Practica_2/Motor2D/j1Player.cpp | JosepLleal/Practica-2-IDI | a24a904f805fb9a3ca74c2a9abef8c9be0177182 | [
"MIT"
] | 1 | 2019-03-11T19:33:24.000Z | 2019-03-11T19:33:24.000Z | #include "j1App.h"
#include "j1Collision.h"
#include "j1Scene.h"
#include "j1Map.h"
#include "j1Player.h"
#include "j1Scene.h"
#include "j1Input.h"
j1Player::j1Player(int x, int y, EntityType Type) : j1Entity(x, y, Type, 0, 0)
{
current_animation = NULL;
position.x = x;
position.y = y;
type = Type;
start_pos.x... | 20.036036 | 124 | 0.692896 | JosepLleal |
5f7bac5899cd88479e24f4963a09e96db35ccdbe | 996 | cpp | C++ | MegaBomberman/MegaBomberman/src/source/Audio.cpp | marcspoon07/SuperFantastics | 84d1f7af2567eecbe8f6a1cf87ddf38ad153d664 | [
"MIT"
] | null | null | null | MegaBomberman/MegaBomberman/src/source/Audio.cpp | marcspoon07/SuperFantastics | 84d1f7af2567eecbe8f6a1cf87ddf38ad153d664 | [
"MIT"
] | null | null | null | MegaBomberman/MegaBomberman/src/source/Audio.cpp | marcspoon07/SuperFantastics | 84d1f7af2567eecbe8f6a1cf87ddf38ad153d664 | [
"MIT"
] | null | null | null | #include "../headers/Audio.h"
#include "sdl.h"
#include "sdl_mixer.h"
Audio* Audio::pInstance = NULL;
Audio::Audio()
{
SDL_InitSubSystem(SDL_INIT_AUDIO);
Mix_OpenAudio(44100, MIX_DEFAULT_FORMAT, 2, 1024);
Mix_AllocateChannels(8);
mMusicChannel = -1;
mMusicVolume = 6;
}
Audio::~Audio()
{
}
int Audio::PlayAudi... | 17.785714 | 92 | 0.711847 | marcspoon07 |
5f7db17c92dfbdd4f62543b751d5cef6e606e3a1 | 49 | hpp | C++ | src/boost_spirit_home_karma_auxiliary.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_spirit_home_karma_auxiliary.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_spirit_home_karma_auxiliary.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/spirit/home/karma/auxiliary.hpp>
| 24.5 | 48 | 0.795918 | miathedev |
5f7f19c109e6d1cec181bbdee9b533cda77978f0 | 6,701 | cpp | C++ | src/Parsing/Language/OakStructDefinitionConstructor.cpp | OutOfTheVoid/OakC | 773934cc52bd4433f95c8c2de1ee231b8de4d0ad | [
"MIT"
] | 1 | 2017-04-11T16:33:37.000Z | 2017-04-11T16:33:37.000Z | src/Parsing/Language/OakStructDefinitionConstructor.cpp | OutOfTheVoid/OakC | 773934cc52bd4433f95c8c2de1ee231b8de4d0ad | [
"MIT"
] | null | null | null | src/Parsing/Language/OakStructDefinitionConstructor.cpp | OutOfTheVoid/OakC | 773934cc52bd4433f95c8c2de1ee231b8de4d0ad | [
"MIT"
] | null | null | null | #include <Parsing/Language/OakStructDefinitionConstructor.h>
#include <Parsing/Language/OakParsingUtils.h>
#include <Parsing/Language/OakASTTags.h>
#include <Parsing/ASTElement.h>
#include <Parsing/Language/OakTemplateDefinitionConstructor.h>
#include <Parsing/Language/OakStructBindingConstructor.h>
#include <Lexing/... | 23.932143 | 263 | 0.708103 | OutOfTheVoid |
5f868e5835285ccf1ff4e82e509fdd846e451d35 | 477 | cpp | C++ | object/attackableunits/building/objshop.cpp | HoDANG/OGLeague2 | 21efea8ea480972a6d686c4adefea03d57da5e9d | [
"MIT"
] | 1 | 2022-03-27T10:21:41.000Z | 2022-03-27T10:21:41.000Z | object/attackableunits/building/objshop.cpp | HoDANG/OGLeague2 | 21efea8ea480972a6d686c4adefea03d57da5e9d | [
"MIT"
] | null | null | null | object/attackableunits/building/objshop.cpp | HoDANG/OGLeague2 | 21efea8ea480972a6d686c4adefea03d57da5e9d | [
"MIT"
] | 3 | 2019-07-20T03:59:10.000Z | 2022-03-27T10:20:09.000Z | #include "objshop.h"
#include <string.h>
#include "stringutils.hpp"
#include "world.h"
#include "objectmanager.h"
ObjShop::ObjShop(World *world)
: ObjBuilding(world)
{
}
bool ObjShop::Load(std::string name)
{
if(!ObjBuilding::Load(name))
return false;
if(StringUtils::stringicmp(name, "chaos") >= ... | 20.73913 | 92 | 0.649895 | HoDANG |
5f8ba3d0f96b21e078c81acfdb41dea6188cf24f | 2,155 | hpp | C++ | prefix_trie.hpp | tblock007/boggle_ml | 2b3fef775f7fc836b7d3f96ea5a47b2c7b5e3fb2 | [
"Apache-2.0"
] | null | null | null | prefix_trie.hpp | tblock007/boggle_ml | 2b3fef775f7fc836b7d3f96ea5a47b2c7b5e3fb2 | [
"Apache-2.0"
] | null | null | null | prefix_trie.hpp | tblock007/boggle_ml | 2b3fef775f7fc836b7d3f96ea5a47b2c7b5e3fb2 | [
"Apache-2.0"
] | null | null | null | #ifndef PREFIX_TRIE_HPP
#define PREFIX_TRIE_HPP
#include <memory>
#include <string_view>
#include <vector>
namespace boggle {
// ********************************************************************************
/// <summary>
/// Represents one node of the PrefixTrie. Connections to other nodes represent
/// the lette... | 33.153846 | 84 | 0.561949 | tblock007 |
5f92196b6161f0dfc36d99ca4760113b3df1b9dd | 1,539 | hpp | C++ | include/ext/util/to_str_eam.hpp | extcpp/base | 26b1384cbbd5cb3171e4cd22c8eb5f09ec0c5732 | [
"MIT"
] | null | null | null | include/ext/util/to_str_eam.hpp | extcpp/base | 26b1384cbbd5cb3171e4cd22c8eb5f09ec0c5732 | [
"MIT"
] | 22 | 2019-10-15T20:47:02.000Z | 2020-01-26T20:26:19.000Z | include/ext/util/to_str_eam.hpp | extcpp/base | 26b1384cbbd5cb3171e4cd22c8eb5f09ec0c5732 | [
"MIT"
] | 1 | 2020-09-24T08:53:15.000Z | 2020-09-24T08:53:15.000Z | // Copyright - 2020 - Jan Christoph Uhde <Jan@UhdeJC.com>
// Please see LICENSE.md for license or visit https://github.com/extcpp/basics
#ifndef EXT_UTIL_TO_STR_EAM_HEADER
#define EXT_UTIL_TO_STR_EAM_HEADER
#include <ext/util/result.hpp>
#include <filesystem>
// convert types libext types to string or wirte them in s... | 29.596154 | 116 | 0.608187 | extcpp |
5f92ac6186f5a84dc12ec9393d8c5b9966c33376 | 8,514 | cpp | C++ | src/Front/Mainwindow-zones/mainwindow-addbreek.cpp | Igisid/Breeks-desktop | 0dfaa6ea64d1d2912a4aed9e1febb537b9a9eec6 | [
"Apache-2.0"
] | 10 | 2020-12-20T15:32:20.000Z | 2021-07-12T18:09:57.000Z | src/Front/Mainwindow-zones/mainwindow-addbreek.cpp | Igisid/Breeks-desktop | 0dfaa6ea64d1d2912a4aed9e1febb537b9a9eec6 | [
"Apache-2.0"
] | 2 | 2022-01-04T12:51:00.000Z | 2022-01-04T14:40:19.000Z | src/Front/Mainwindow-zones/mainwindow-addbreek.cpp | Igisid/Breeks-desktop | 0dfaa6ea64d1d2912a4aed9e1febb537b9a9eec6 | [
"Apache-2.0"
] | 3 | 2020-12-22T02:50:11.000Z | 2021-02-24T01:58:11.000Z | #include "Front/mainwindow.h"
void MainWindow::on_buttonAdd_2_clicked() {
if (ui->addBreekGB->isHidden() & breeksZonesCount_ < 30) {
ui->addBreekGB->show();
ui->emojiHub->showThis();
}
else if (!ui->addBreekGB->isHidden()) {
ui->emojiHub->showThis();
ui->addBreekGB->hide();
}
}
void MainWindow... | 34.330645 | 118 | 0.695678 | Igisid |
5f96af4009f9991981a4752e3e7660ad54f3b2c4 | 778 | hpp | C++ | libs/fnd/span/include/bksge/fnd/span/detail/is_span.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/fnd/span/include/bksge/fnd/span/detail/is_span.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/fnd/span/include/bksge/fnd/span/detail/is_span.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file is_span.hpp
*
* @brief is_span の定義
*
* @author myoukaku
*/
#ifndef BKSGE_FND_SPAN_DETAIL_IS_SPAN_HPP
#define BKSGE_FND_SPAN_DETAIL_IS_SPAN_HPP
#include <bksge/fnd/span/fwd/span_fwd.hpp>
#include <bksge/fnd/type_traits/bool_constant.hpp>
#include <bksge/fnd/type_traits/remove_cv.hpp>
#... | 18.97561 | 51 | 0.710797 | myoukaku |
5f972a976791a58041860c2f268086542ba549c3 | 20,606 | cpp | C++ | src/armnn/SubgraphView.cpp | Srivathsav-max/armnn-clone | af2daa6526623c91ee97f7141be4d1b07de92a48 | [
"MIT"
] | 1 | 2022-03-31T18:21:59.000Z | 2022-03-31T18:21:59.000Z | src/armnn/SubgraphView.cpp | Elm8116/armnn | e571cde8411803aec545b1070ed677e481f46f3f | [
"MIT"
] | null | null | null | src/armnn/SubgraphView.cpp | Elm8116/armnn | e571cde8411803aec545b1070ed677e481f46f3f | [
"MIT"
] | null | null | null | //
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include <armnn/backends/SubgraphView.hpp>
#include <Graph.hpp>
#include <armnn/utility/IgnoreUnused.hpp>
#include <armnn/utility/NumericCast.hpp>
#include <armnn/utility/PolymorphicDowncast.hpp>
#include <utility>
namespace ar... | 34.458194 | 118 | 0.662865 | Srivathsav-max |
5f99abda43a2bcf54b650f0a905ac48fe57c96d4 | 2,004 | hh | C++ | unittests/libtests/topology/data/MeshDataCohesive.hh | joegeisz/pylith | f74060b7b19d7e90abf8597bbe9250c96593c0ad | [
"MIT"
] | 1 | 2021-09-09T06:24:11.000Z | 2021-09-09T06:24:11.000Z | unittests/libtests/topology/data/MeshDataCohesive.hh | joegeisz/pylith | f74060b7b19d7e90abf8597bbe9250c96593c0ad | [
"MIT"
] | null | null | null | unittests/libtests/topology/data/MeshDataCohesive.hh | joegeisz/pylith | f74060b7b19d7e90abf8597bbe9250c96593c0ad | [
"MIT"
] | null | null | null | // -*- C++ -*-
//
// ======================================================================
//
// Brad T. Aagaard, U.S. Geological Survey
// Charles A. Williams, GNS Science
// Matthew G. Knepley, University of Chicago
//
// This code was developed as part of the Computational Infrastructure
// for Geodynamics (http://... | 28.628571 | 74 | 0.611776 | joegeisz |
5f9f92c566d8f5f31dfc10f064315ccb584a7b1f | 729 | cpp | C++ | abc/abc221/d.cpp | takanori536/atcoder | 9e10e5e09b39e064e14f03688c7cdddf6c13b505 | [
"CC0-1.0"
] | null | null | null | abc/abc221/d.cpp | takanori536/atcoder | 9e10e5e09b39e064e14f03688c7cdddf6c13b505 | [
"CC0-1.0"
] | null | null | null | abc/abc221/d.cpp | takanori536/atcoder | 9e10e5e09b39e064e14f03688c7cdddf6c13b505 | [
"CC0-1.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#include <atcoder/all>
using namespace atcoder;
#define rep(i, n) for (int i = 0; i < (n); i++)
using ll = long long;
int main()
{
int n;
cin >> n;
vector<pair<ll, int>> date;
rep (i, n)
{
int a, b;
cin >> a >> b;
date.push_back(... | 20.828571 | 62 | 0.471879 | takanori536 |
5f9fd27085660aeb04c299250867d8dbc86be6b4 | 459 | cpp | C++ | elections.cpp | De-Fau-Lt/Solutions | 2539f815ab5c77769b3e3cc00fe0e7a7ec940ad5 | [
"MIT"
] | null | null | null | elections.cpp | De-Fau-Lt/Solutions | 2539f815ab5c77769b3e3cc00fe0e7a7ec940ad5 | [
"MIT"
] | null | null | null | elections.cpp | De-Fau-Lt/Solutions | 2539f815ab5c77769b3e3cc00fe0e7a7ec940ad5 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main(){
int n,m;
scanf("%d %d", &n,&m);
int arr[n];
memset(arr,0,sizeof(arr));
int l_in=0;
for(int i=0;i<m;i++)
{
int arr2[n];
int x = -1;
for(int j=0;j<n;j++)
{
scanf("%d",&arr2[j]);
if(arr2[j] > x)
{
x = arr2[j];
l_in = j;
}
}
... | 11.769231 | 27 | 0.448802 | De-Fau-Lt |
5fa0d13e0fe95ea304ca5786858d1fcbb730b788 | 22,695 | hpp | C++ | tpls/pressio/include/pressio/WIP/rom/fom_states_management/rom_manager_fom_states_static.hpp | fnrizzi/pressio-demoapps | 6ff10bbcf4d526610580940753c9620725bff1ba | [
"BSD-3-Clause"
] | 29 | 2019-11-11T13:17:57.000Z | 2022-03-16T01:31:31.000Z | tpls/pressio/include/pressio/WIP/rom/fom_states_management/rom_manager_fom_states_static.hpp | fnrizzi/pressio-demoapps | 6ff10bbcf4d526610580940753c9620725bff1ba | [
"BSD-3-Clause"
] | 303 | 2019-09-30T10:15:41.000Z | 2022-03-30T08:24:04.000Z | tpls/pressio/include/pressio/WIP/rom/fom_states_management/rom_manager_fom_states_static.hpp | fnrizzi/pressio-demoapps | 6ff10bbcf4d526610580940753c9620725bff1ba | [
"BSD-3-Clause"
] | 4 | 2020-07-07T03:32:36.000Z | 2022-03-10T05:21:42.000Z | /*
//@HEADER
// ************************************************************************
//
// rom_manager_fom_states_static.hpp
// Pressio
// Copyright 2019
// National Technology & Engineering Solutions of Sandia, LLC (NTESS)
//
// Under the terms of Contract DE-... | 31.608635 | 92 | 0.668165 | fnrizzi |
5fa62795f60ca52ebda1decbfb6a48b35fc6745c | 360 | cpp | C++ | lib/src/Music/Listener.cpp | F4r3n/FarenMediaLibrary | 3f71054df7178ca79781b101ca2d58cd95a20a43 | [
"Apache-2.0"
] | 7 | 2016-09-09T16:43:15.000Z | 2021-06-16T22:32:33.000Z | lib/src/Music/Listener.cpp | F4r3n/FarenMediaLibrary | 3f71054df7178ca79781b101ca2d58cd95a20a43 | [
"Apache-2.0"
] | null | null | null | lib/src/Music/Listener.cpp | F4r3n/FarenMediaLibrary | 3f71054df7178ca79781b101ca2d58cd95a20a43 | [
"Apache-2.0"
] | 1 | 2020-01-05T19:22:32.000Z | 2020-01-05T19:22:32.000Z | #include <AL/al.h>
#include <AL/alc.h>
#include "Music/Listener.h"
using namespace fm;
Listener::Listener() {
alListener3f(AL_POSITION, 0, 0, 1.0f);
alListener3f(AL_VELOCITY, 0, 0, 0);
alListenerfv(AL_ORIENTATION, listenerOri);
}
void Listener::setPosition(math::Vector2f pos) {
alListener3f(AL_POSITION, pos.x, p... | 21.176471 | 48 | 0.713889 | F4r3n |
5fabb76c0bf1572fbea47ff11fbef360b5721947 | 3,140 | cpp | C++ | sources/demPerspect.cpp | DanielHsH/LenaKot | aab03b8d375df9308ee7f7b2e289b4f52732d8d6 | [
"Unlicense"
] | null | null | null | sources/demPerspect.cpp | DanielHsH/LenaKot | aab03b8d375df9308ee7f7b2e289b4f52732d8d6 | [
"Unlicense"
] | null | null | null | sources/demPerspect.cpp | DanielHsH/LenaKot | aab03b8d375df9308ee7f7b2e289b4f52732d8d6 | [
"Unlicense"
] | null | null | null | /****************************************************************************/
/**************************** demPerspect.cpp **************************/
/***************************************************************************/
/****************************************************************************/
// ... | 27.068966 | 164 | 0.497771 | DanielHsH |
5fafba3865dd74cbe2cc830a8ed283b3b97f09a2 | 12,159 | hpp | C++ | lib/data_structure/priority_queue/elmasry_pairing_heap.hpp | OIerTemplate/OIerTemplateLib | 72edc4128c074d54ddcb8454fd2dc6381e5225bc | [
"WTFPL"
] | 10 | 2020-10-29T03:27:38.000Z | 2022-01-20T15:24:48.000Z | lib/data_structure/priority_queue/elmasry_pairing_heap.hpp | ILSYT/OIerTemplateLib | 72edc4128c074d54ddcb8454fd2dc6381e5225bc | [
"WTFPL"
] | 1 | 2020-10-28T10:41:28.000Z | 2020-10-29T00:15:06.000Z | lib/data_structure/priority_queue/elmasry_pairing_heap.hpp | ILSYT/OIerTemplateLib | 72edc4128c074d54ddcb8454fd2dc6381e5225bc | [
"WTFPL"
] | 1 | 2020-11-26T09:36:18.000Z | 2020-11-26T09:36:18.000Z | #ifndef _OITL_DATA_STRUCTURE_PRIORITY_QUEUE_ELMASRY_PAIRING_HEAP_HPP
#define _OITL_DATA_STRUCTURE_PRIORITY_QUEUE_ELMASRY_PAIRING_HEAP_HPP //C++ Header elmasry_pairing_heap.hpp
#include<algorithm>
#include<set>
#include<queue>
#if defined(__has_include) && __has_include("../../utility/oitl_def.hpp")
#include"../../ut... | 26.664474 | 106 | 0.730817 | OIerTemplate |
5fb815cec9f1f4e093d5ecac39c270e7f72dec44 | 976 | cpp | C++ | solutions/AtCoder/agc034/B.cpp | yumeno-ukihashi/competitive-programming | 5cc3a7938b62133d8dc71a179cb11dfe985315d3 | [
"Unlicense"
] | null | null | null | solutions/AtCoder/agc034/B.cpp | yumeno-ukihashi/competitive-programming | 5cc3a7938b62133d8dc71a179cb11dfe985315d3 | [
"Unlicense"
] | null | null | null | solutions/AtCoder/agc034/B.cpp | yumeno-ukihashi/competitive-programming | 5cc3a7938b62133d8dc71a179cb11dfe985315d3 | [
"Unlicense"
] | null | null | null | #include<bits/stdc++.h>
#define REP(x,y,z) for(int x=y;x<=z;x++)
#define MSET(x,y) memset(x,y,sizeof(x))
#define M 200005
using namespace std;
int n;
char in[M];
int main()
{
while (~scanf("%s", in+1)) {
n = strlen(in+1);
long long ans = 0;
REP(i,1,n) if(in[i]=='A') {
int j = i-... | 25.025641 | 92 | 0.401639 | yumeno-ukihashi |
5fb821e1acf4fb959bab9b072911322b302e7861 | 3,276 | cpp | C++ | cli/src/compress.cpp | Golui/ansu | 5e1c74944c4a2a637f0cf9d0f8e3404cfb6e761a | [
"MIT"
] | null | null | null | cli/src/compress.cpp | Golui/ansu | 5e1c74944c4a2a637f0cf9d0f8e3404cfb6e761a | [
"MIT"
] | null | null | null | cli/src/compress.cpp | Golui/ansu | 5e1c74944c4a2a637f0cf9d0f8e3404cfb6e761a | [
"MIT"
] | null | null | null | #include "ansu.hpp"
#include "driver.hpp"
#include "io/archive.hpp"
#include <chrono>
#include <iomanip>
#include <iostream>
#include <stdio.h>
ANS::io::DataBuffer buffer;
ANS::io::MetaBuffer meta_buffer;
// NB Two variants needed due to the specifics of Vivado HLS testbench.
#ifdef SOFTWARE
# define compress_fun AN... | 26.208 | 71 | 0.655983 | Golui |
5fc07e57a12e0e37af68e35eb8ea3205bd4e502e | 171 | hpp | C++ | src/ast/expression.hpp | TakeOver/yet-another-try-to-make-useless-programming-language | 67f1d8b7b9a00b68e8ccd118d8f4cfc518f9cfec | [
"MIT"
] | null | null | null | src/ast/expression.hpp | TakeOver/yet-another-try-to-make-useless-programming-language | 67f1d8b7b9a00b68e8ccd118d8f4cfc518f9cfec | [
"MIT"
] | null | null | null | src/ast/expression.hpp | TakeOver/yet-another-try-to-make-useless-programming-language | 67f1d8b7b9a00b68e8ccd118d8f4cfc518f9cfec | [
"MIT"
] | null | null | null | #pragma once
namespace lambda{
class Expression: protected AstNode {
public:
Expression(){}
~Expression(){}
};
}
| 17.1 | 45 | 0.479532 | TakeOver |
5fcb3d0368c036de5dacb8a073ed907f9a499fc9 | 215 | cpp | C++ | Source/EndlessRunner/EndlessRunner.cpp | y3lousso/EndlessRunner | beddc50ba21e37e9256a0a742d6ebf57deac4c15 | [
"MIT"
] | null | null | null | Source/EndlessRunner/EndlessRunner.cpp | y3lousso/EndlessRunner | beddc50ba21e37e9256a0a742d6ebf57deac4c15 | [
"MIT"
] | null | null | null | Source/EndlessRunner/EndlessRunner.cpp | y3lousso/EndlessRunner | beddc50ba21e37e9256a0a742d6ebf57deac4c15 | [
"MIT"
] | 1 | 2018-09-08T20:30:39.000Z | 2018-09-08T20:30:39.000Z | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "EndlessRunner.h"
#include "Modules/ModuleManager.h"
IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, EndlessRunner, "EndlessRunner" );
| 30.714286 | 88 | 0.8 | y3lousso |
5fd66459168fe7c8069ac8b3d21d0be35b5e8729 | 1,738 | cpp | C++ | LabPractve/nn.cpp | sounishnath003/CPP-for-beginner | d4755ab4ae098d63c9a0666d8eb4d152106d4a20 | [
"MIT"
] | 4 | 2020-05-14T04:41:04.000Z | 2021-06-13T06:42:03.000Z | LabPractve/nn.cpp | sounishnath003/CPP-for-beginner | d4755ab4ae098d63c9a0666d8eb4d152106d4a20 | [
"MIT"
] | null | null | null | LabPractve/nn.cpp | sounishnath003/CPP-for-beginner | d4755ab4ae098d63c9a0666d8eb4d152106d4a20 | [
"MIT"
] | null | null | null | #include<iostream>
#include<bits/stdc++.h>
using namespace std ;
vector<int> v = {1,0,5,55,-8,44,-7,51,-78} ;
int vv[]{1, 0, 5, 55, -8, 44, -7, 51, -78};
void bubblesort(vector<int> &v) {
for (size_t i = 0; i < v.size() - 1; i++)
{
for(size_t j = 0; j<= v.size()-i-1; j++) {
... | 18.891304 | 51 | 0.344649 | sounishnath003 |
5fd6b3c657c690b220213fb6e01c413d1e79e129 | 3,597 | cpp | C++ | src/exposer/netsaver.cpp | carvalhomb/AdaptiveLix | d7054c5f96fae54dccef23e48760851b4981a109 | [
"CC0-1.0"
] | 1 | 2015-08-29T05:22:40.000Z | 2015-08-29T05:22:40.000Z | src/exposer/netsaver.cpp | carvalhomb/AdaptiveLix | d7054c5f96fae54dccef23e48760851b4981a109 | [
"CC0-1.0"
] | null | null | null | src/exposer/netsaver.cpp | carvalhomb/AdaptiveLix | d7054c5f96fae54dccef23e48760851b4981a109 | [
"CC0-1.0"
] | null | null | null | /*
* gameeventswrapper.cpp
*
* Created on: 23 Nov 2015
* Author: maira
*/
#include "../other/myalleg.h" //needs to come first to include the windows.h header in the beginning
#include <string>
#include <sstream>
#include <exception>
#include <Poco/Net/HTTPRequest.h>
#include <Poco/Exception.h>
#include <P... | 26.448529 | 110 | 0.680289 | carvalhomb |
5fdbfdd9f17a17bc3ac34067525f5f8edcba02c8 | 1,463 | hpp | C++ | Tree.hpp | cpp-tutor/pseudocode-compiler | 56452601551b939560eca5a5e49da009cc322f18 | [
"MIT"
] | null | null | null | Tree.hpp | cpp-tutor/pseudocode-compiler | 56452601551b939560eca5a5e49da009cc322f18 | [
"MIT"
] | null | null | null | Tree.hpp | cpp-tutor/pseudocode-compiler | 56452601551b939560eca5a5e49da009cc322f18 | [
"MIT"
] | null | null | null | #ifndef TREE_HPP
#define TREE_HPP
class Tree {
public:
Tree(Tree *l, Tree *r)
: left{ l }, right{ r } {}
Tree *link(Tree *next) {
if (right) {
throw std::runtime_error("cannot link");
}
return right = next;
}
virtual void emit() = 0;
protected:
Tree *left... | 23.222222 | 83 | 0.562543 | cpp-tutor |
5fe12e0e5306eb1f6d24cd50dc6ebce600f822f4 | 7,435 | cpp | C++ | src/hdf5/BaseTagHDF5.cpp | balint42/nix | 50f1de33b946b7b194c82fb0efd9b0cecba9ed54 | [
"BSD-4-Clause",
"BSD-3-Clause"
] | null | null | null | src/hdf5/BaseTagHDF5.cpp | balint42/nix | 50f1de33b946b7b194c82fb0efd9b0cecba9ed54 | [
"BSD-4-Clause",
"BSD-3-Clause"
] | null | null | null | src/hdf5/BaseTagHDF5.cpp | balint42/nix | 50f1de33b946b7b194c82fb0efd9b0cecba9ed54 | [
"BSD-4-Clause",
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2013, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include <nix/hdf5/BaseTagHDF5.hpp>
#inclu... | 31.773504 | 108 | 0.65649 | balint42 |
5fe1d7e5521d7e330391eac07e15a650aff340c6 | 1,444 | cpp | C++ | src/rectangle.cpp | merlinblack/hub_commander | 93feaab2aebd5d5c45b7237822b3b8b644ca9792 | [
"MIT"
] | null | null | null | src/rectangle.cpp | merlinblack/hub_commander | 93feaab2aebd5d5c45b7237822b3b8b644ca9792 | [
"MIT"
] | null | null | null | src/rectangle.cpp | merlinblack/hub_commander | 93feaab2aebd5d5c45b7237822b3b8b644ca9792 | [
"MIT"
] | null | null | null | #include "rectangle.h"
Rectangle::Rectangle(SDL_Color color, bool fill, SDL_Rect dest) :
color(color),
fill(fill),
destination(dest),
source({0,0,0,0}),
clip({0,0,0,0})
{
}
Rectangle::Rectangle(TexturePtr texture, int x, int y) :
texture(texture),
source({0,0,0,0}),
clip({0,0,0,0})
{
destination = {x, y, 0, ... | 19.253333 | 97 | 0.687673 | merlinblack |
5fe768c93a7ad0ef5775f3c9eea67220f0344194 | 120 | cpp | C++ | src/examples/macros.cpp | BrianTurza/Flash | 10e57c63e6b8e5c41f7342c7c5e339e0d705a96d | [
"MIT"
] | 4 | 2020-02-07T11:18:06.000Z | 2021-12-30T14:13:37.000Z | src/examples/macros.cpp | BrianTurza/Flash | 10e57c63e6b8e5c41f7342c7c5e339e0d705a96d | [
"MIT"
] | 1 | 2020-06-05T12:17:33.000Z | 2020-06-05T12:17:33.000Z | src/examples/macros.cpp | BrianTurza/Flash | 10e57c63e6b8e5c41f7342c7c5e339e0d705a96d | [
"MIT"
] | null | null | null | #include <iostream>
#define X 10
#define square n,n*n
int main() {
square(n,);
std::cout << X+5 << "\n";
return 0;
} | 13.333333 | 26 | 0.583333 | BrianTurza |
5feff2f7e1ad61b24a8749f0e99d503a2cd39213 | 11,373 | hxx | C++ | include/functional.hxx | cmbrandt/stl-algorithms | 9eb0bc664e8423fb066c29aa501a72f4e672be1d | [
"MIT"
] | null | null | null | include/functional.hxx | cmbrandt/stl-algorithms | 9eb0bc664e8423fb066c29aa501a72f4e672be1d | [
"MIT"
] | null | null | null | include/functional.hxx | cmbrandt/stl-algorithms | 9eb0bc664e8423fb066c29aa501a72f4e672be1d | [
"MIT"
] | null | null | null | #ifndef FUNCTIONAL_HXX
#define FUNCTIONAL_HXX
#include <utility.hxx>
namespace cmb {
//
// Declarations
template <class T = void> struct plus;
template <class T = void> struct minus;
template <class T = void> struct multiplies;
template <class T = void> struct divides;
template <class T = void> struc... | 17.605263 | 90 | 0.583839 | cmbrandt |
5ff3f68bed962f63c3896ed4968f0f20cf6753a0 | 8,504 | cpp | C++ | src/PathAlgorithm.cpp | rorywebdev/A-Pathfinding | c96cdce7eb4c38bdd0828e2db59fdbc401c86624 | [
"MIT"
] | 2 | 2019-08-10T13:57:05.000Z | 2021-06-18T09:16:02.000Z | src/PathAlgorithm.cpp | rorywebdev/A-Pathfinding | c96cdce7eb4c38bdd0828e2db59fdbc401c86624 | [
"MIT"
] | null | null | null | src/PathAlgorithm.cpp | rorywebdev/A-Pathfinding | c96cdce7eb4c38bdd0828e2db59fdbc401c86624 | [
"MIT"
] | null | null | null | #include "PathAlgorithm.h"
// Rory Clark
// https://rorywebdev.com
// 2016
// A* Pathfinding algorithm
// Used as a singular processing class, not for information storage
// Path objects are to be created and stored in parent classes but processed within here
// It sorts and modifies the relevant data and will always... | 25.848024 | 128 | 0.637112 | rorywebdev |
5ff5866eaa064a72c7e7372c02b54504c3a33ab3 | 1,051 | cpp | C++ | phoenix/qt/widget/horizontal-scroller.cpp | vgmtool/vgm2pre | f4f917df35d531512292541234a5c1722b8af96f | [
"MIT"
] | 21 | 2015-04-13T03:07:12.000Z | 2021-11-20T00:27:00.000Z | phoenix/qt/widget/horizontal-scroller.cpp | apollolux/hello-phoenix | 71510b5f329804c525a9576fb0367fe8ab2487cd | [
"MIT"
] | 2 | 2015-10-06T14:59:48.000Z | 2022-01-27T08:57:57.000Z | phoenix/qt/widget/horizontal-scroller.cpp | apollolux/hello-phoenix | 71510b5f329804c525a9576fb0367fe8ab2487cd | [
"MIT"
] | 2 | 2021-11-19T08:36:57.000Z | 2022-03-04T16:03:16.000Z | namespace phoenix {
Size pHorizontalScroller::minimumSize() {
return {0, 15};
}
void pHorizontalScroller::setLength(unsigned length) {
length += length == 0;
qtScroller->setRange(0, length - 1);
qtScroller->setPageStep(length >> 3);
}
void pHorizontalScroller::setPosition(unsigned position) {
qtScroller->s... | 23.886364 | 67 | 0.74215 | vgmtool |
5ff7074f698620b6f61d4b4b55bd0ccae1dc74d0 | 820 | hpp | C++ | src/app/ui/fintamath/widgets/FintamathWindow.hpp | VanderY/Fintamath | b2cd0574eef328c26b1111a778a0f355ee67f6be | [
"MIT"
] | 5 | 2021-08-28T18:53:33.000Z | 2022-01-28T09:41:17.000Z | src/app/ui/fintamath/widgets/FintamathWindow.hpp | VanderY/Fintamath | b2cd0574eef328c26b1111a778a0f355ee67f6be | [
"MIT"
] | 39 | 2022-01-25T15:13:14.000Z | 2022-03-31T15:19:40.000Z | src/app/ui/fintamath/widgets/FintamathWindow.hpp | VanderY/Fintamath | b2cd0574eef328c26b1111a778a0f355ee67f6be | [
"MIT"
] | 6 | 2021-08-15T12:27:24.000Z | 2022-03-30T13:27:21.000Z | #ifndef FINTAMATHWINDOW_HPP
#define FINTAMATHWINDOW_HPP
#include <QMainWindow>
#include <QSharedPointer>
#include <QString>
#include "models/CalculatorHandler.hpp"
#include "ui/ui_FintamathMainWindow.h"
class FintamathMainWindow : public QMainWindow {
Q_OBJECT
public:
explicit FintamathMainWindow(QWidget *paren... | 25.625 | 116 | 0.80122 | VanderY |
5ffb31acbac7b3d12a0ee6d0d52d05b50f02a866 | 2,053 | cpp | C++ | source/render/UpdateTask.cpp | xzrunner/sprite2 | 2d5d8c6b79a63871bdd6cfdcd4805946fde95921 | [
"MIT"
] | null | null | null | source/render/UpdateTask.cpp | xzrunner/sprite2 | 2d5d8c6b79a63871bdd6cfdcd4805946fde95921 | [
"MIT"
] | null | null | null | source/render/UpdateTask.cpp | xzrunner/sprite2 | 2d5d8c6b79a63871bdd6cfdcd4805946fde95921 | [
"MIT"
] | null | null | null | #include "sprite2/UpdateTask.h"
#include "sprite2/Actor.h"
#include "sprite2/UpdateParams.h"
#include "sprite2/ProxyHelper.h"
#include "sprite2/SymType.h"
#include "sprite2/Symbol.h"
#include <multitask/TaskStat.h>
namespace s2
{
UpdateTask::UpdateTask(const ActorPtr& actor, bool force)
: m_actor(actor)
, m_force(... | 23.067416 | 74 | 0.6415 | xzrunner |
5ffbf37f72b54a5e4fceb29a9ba1c8a92713e7d1 | 11,576 | cpp | C++ | src/tools/license-manager/product-manager-main.cpp | YAS-CODE/License-Manager | 8713ecbf8bfb62f743d3835be028efbc67f3e5d5 | [
"BSD-3-Clause"
] | 2 | 2020-04-26T06:26:16.000Z | 2021-08-21T18:21:56.000Z | src/tools/license-manager/product-manager-main.cpp | YAS-CODE/Open-source-dev | 8713ecbf8bfb62f743d3835be028efbc67f3e5d5 | [
"BSD-3-Clause"
] | null | null | null | src/tools/license-manager/product-manager-main.cpp | YAS-CODE/Open-source-dev | 8713ecbf8bfb62f743d3835be028efbc67f3e5d5 | [
"BSD-3-Clause"
] | 1 | 2021-08-05T15:11:35.000Z | 2021-08-05T15:11:35.000Z | // LicenseManagerConfig.cpp
// ~~~~~~~~~~
//
// Copyright (c) 2003-2008 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// 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)
//
#include <boost/asio.hpp>
#include <... | 33.360231 | 147 | 0.676486 | YAS-CODE |
5ffe15dc8f4c6ee8fcb89edbb07793576476d034 | 1,026 | cpp | C++ | LeetCode/100/1845.cpp | K-ona/C-_Training | d54970f7923607bdc54fc13677220d1b3daf09e5 | [
"Apache-2.0"
] | 1 | 2021-03-05T14:16:46.000Z | 2021-03-05T14:16:46.000Z | LeetCode/100/1845.cpp | K-ona/CPP-Training | aa312970505f67c270257c8a5816e89c10f2d1ce | [
"Apache-2.0"
] | null | null | null | LeetCode/100/1845.cpp | K-ona/CPP-Training | aa312970505f67c270257c8a5816e89c10f2d1ce | [
"Apache-2.0"
] | null | null | null | // created by Kona @VSCode
#include <algorithm>
#include <iostream>
#include <map>
#include <string>
#include <queue>
#include <vector>
#define LOCAL_TEST
typedef long long ll;
using std::cin;
using std::cout;
using std::endl;
using std::map;
using std::queue;
using std::string;
using std::vector;
class SeatManager {... | 18.654545 | 67 | 0.615984 | K-ona |
27005719db530f7740d798c6c2ced5cfde7bf033 | 3,667 | hpp | C++ | include/adm/elements/headphone_virtualise.hpp | IRT-Open-Source/libadm | 442f51229e760db1caca4b962bfaad58a9c7d9b8 | [
"Apache-2.0"
] | 14 | 2018-07-24T12:18:05.000Z | 2020-05-11T19:14:49.000Z | include/adm/elements/headphone_virtualise.hpp | IRT-Open-Source/libadm | 442f51229e760db1caca4b962bfaad58a9c7d9b8 | [
"Apache-2.0"
] | 19 | 2018-07-30T15:02:54.000Z | 2020-05-21T10:13:19.000Z | include/adm/elements/headphone_virtualise.hpp | IRT-Open-Source/libadm | 442f51229e760db1caca4b962bfaad58a9c7d9b8 | [
"Apache-2.0"
] | 7 | 2018-07-24T12:18:12.000Z | 2020-02-14T11:18:12.000Z | #pragma once
#include "adm/detail/named_type.hpp"
#include "adm/detail/auto_base.hpp"
#include "adm/detail/named_option_helper.hpp"
namespace adm {
/// @brief Tag for NamedType ::Bypass
struct BypassTag {};
/// @brief NamedType for bypass parameter
using Bypass = detail::NamedType<bool, BypassTag>;
/// @bri... | 31.612069 | 79 | 0.709845 | IRT-Open-Source |
2701e323ec0a9eb4fc8bb3e5de2cd7349ddb645d | 266 | hpp | C++ | gta_external/features/weapon_replacer/weapon_replacer.hpp | ArtseeN/FiveM-External-KEK | 297413bfcbc00d38fc24a427300a79f7990670a7 | [
"MIT"
] | 4 | 2022-02-15T15:49:54.000Z | 2022-03-14T05:40:37.000Z | gta_external/features/weapon_replacer/weapon_replacer.hpp | ArtseeN/FiveM-External-KEK | 297413bfcbc00d38fc24a427300a79f7990670a7 | [
"MIT"
] | null | null | null | gta_external/features/weapon_replacer/weapon_replacer.hpp | ArtseeN/FiveM-External-KEK | 297413bfcbc00d38fc24a427300a79f7990670a7 | [
"MIT"
] | null | null | null | #include "../../gta_external.hpp"
class c_weapon_replacer
{
public:
c_weapon_replacer();
void replace_pistol(uint64_t hash);
void replace_combat_pistol(uint64_t hash);
void replace_bat(uint64_t hash);
void replace_knife(uint64_t hash);
}; | 15.647059 | 44 | 0.714286 | ArtseeN |
27029454113e5189d450a1c3741eaf3ef28720a7 | 1,250 | hpp | C++ | Nacro/SDK/FN_ScoreBadgeProviderMission_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_ScoreBadgeProviderMission_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2022-01-01T22:51:59.000Z | 2022-01-08T16:14:15.000Z | Nacro/SDK/FN_ScoreBadgeProviderMission_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | #pragma once
// Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Parameters
//---------------------------------------------------------------------------
// Function ScoreBadgePro... | 34.722222 | 161 | 0.5104 | Milxnor |
dfd8ad56b71b501d7f5fbc2eff2d723f6c8de3d2 | 1,023 | hpp | C++ | src/night/string.hpp | waxers/wax-std | cbaf6d26b22044b4df3f753b8226ffdfb3eb16ea | [
"MIT"
] | 4 | 2021-10-04T18:46:21.000Z | 2021-10-05T11:53:23.000Z | src/night/string.hpp | waxers/wax-std | cbaf6d26b22044b4df3f753b8226ffdfb3eb16ea | [
"MIT"
] | null | null | null | src/night/string.hpp | waxers/wax-std | cbaf6d26b22044b4df3f753b8226ffdfb3eb16ea | [
"MIT"
] | 1 | 2021-10-04T20:55:20.000Z | 2021-10-04T20:55:20.000Z | #pragma once
#include <cstring>
#include <stdio.h>
#include <stdlib.h>
#include <core/alloc.hpp>
#include <core/intdefs.hpp>
namespace wax {
class String {
public:
String();
String(const char *str);
String(const String &str);
const char *c_str() const;
usize size() const;
void operator... | 19.673077 | 48 | 0.676442 | waxers |
dfe7ad7c7584a6380a4c35ff1f843c4590908d83 | 2,418 | cpp | C++ | src/lib/foundations/algebra_and_number_theory/cyclotomic_sets.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 15 | 2016-10-27T15:18:28.000Z | 2022-02-09T11:13:07.000Z | src/lib/foundations/algebra_and_number_theory/cyclotomic_sets.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 4 | 2019-12-09T11:49:11.000Z | 2020-07-30T17:34:45.000Z | src/lib/foundations/algebra_and_number_theory/cyclotomic_sets.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 15 | 2016-06-10T20:05:30.000Z | 2020-12-18T04:59:19.000Z | /*
* cyclotomic_sets.cpp
*
* Created on: Sep 30, 2021
* Author: betten
*/
#include "foundations.h"
using namespace std;
namespace orbiter {
namespace foundations {
cyclotomic_sets::cyclotomic_sets()
{
n = 0;
q = 0;
m = 0;
qm = 0;
Index = NULL;
S = NULL;
}
cyclotomic_sets::~cyclotomic_sets()
{
... | 15.803922 | 70 | 0.565757 | abetten |
dfe972d1c43c90e90bc52688fe5360b3dbfa4788 | 7,317 | cpp | C++ | src/main.cpp | SilverJun/SWING | 0a9c35d74b3ec75d349a14a59e4d731dbd016069 | [
"MIT"
] | 8 | 2017-07-17T16:12:20.000Z | 2021-02-20T13:18:33.000Z | src/main.cpp | SilverJun/SWING | 0a9c35d74b3ec75d349a14a59e4d731dbd016069 | [
"MIT"
] | null | null | null | src/main.cpp | SilverJun/SWING | 0a9c35d74b3ec75d349a14a59e4d731dbd016069 | [
"MIT"
] | 1 | 2020-02-19T06:51:03.000Z | 2020-02-19T06:51:03.000Z | #ifdef _WINDOWS
#define _CRT_SECURE_NO_WARNINGS
#pragma comment(lib, "../../lib/win/LLVMAArch64AsmParser.lib")
#pragma comment(lib, "../../lib/win/LLVMAArch64AsmPrinter.lib")
#pragma comment(lib, "../../lib/win/LLVMAArch64CodeGen.lib")
#pragma comment(lib, "../../lib/win/LLVMAArch64Desc.lib")
#pragma comment(lib, "..... | 49.77551 | 65 | 0.685937 | SilverJun |
dfe9e3b00c064a7cadb16819a04f7d4a19bf5932 | 846 | cpp | C++ | Quarter 4/Week 4/Sets_STL.cpp | nwatx/CS3-Independent-Study | 16b91d4e0503d10d825ae800c46ea9233cd5e066 | [
"MIT"
] | 1 | 2020-09-04T21:21:12.000Z | 2020-09-04T21:21:12.000Z | Quarter 4/Week 4/Sets_STL.cpp | nwatx/CS3-Independent-Study | 16b91d4e0503d10d825ae800c46ea9233cd5e066 | [
"MIT"
] | null | null | null | Quarter 4/Week 4/Sets_STL.cpp | nwatx/CS3-Independent-Study | 16b91d4e0503d10d825ae800c46ea9233cd5e066 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
const int mx = 2e5+1;
using vpi = vector<pair<int, int>>;
#define f first
#define s second
int main() {
// clock_t start = clock();
// setIO();
int n; cin >> n;
vpi v(n);
for(int i = 0; i < n; i++) {
int a, b; cin >> a >> b;
v[i] = {a, b}... | 20.634146 | 72 | 0.514184 | nwatx |
dfecf9c55c3777a2df048601820bb6ec05991c70 | 2,838 | hpp | C++ | Aphelion/Src/Aphelion/Core/Event/Event.hpp | antjowie/AphelionWeb | e616806844bb06914b32395b2e4998ac518b3773 | [
"MIT"
] | null | null | null | Aphelion/Src/Aphelion/Core/Event/Event.hpp | antjowie/AphelionWeb | e616806844bb06914b32395b2e4998ac518b3773 | [
"MIT"
] | null | null | null | Aphelion/Src/Aphelion/Core/Event/Event.hpp | antjowie/AphelionWeb | e616806844bb06914b32395b2e4998ac518b3773 | [
"MIT"
] | null | null | null | #pragma once
#include <sstream>
#include <string>
#include "Core.hpp"
#include "Helper.hpp"
/**
* Events are used to communicate between major systems that we want to keep
* decoupled. One example is input. Input events have to be abstracted since
* each platform likely requires it's own window implementation, whi... | 27.288462 | 80 | 0.691684 | antjowie |
dfeed247d79ea7349d5dc30e4b11df577c303e00 | 5,007 | cpp | C++ | source/common/textures/bitmap.cpp | bisk89/Raze | 1a2663f7ac84d4e4f472e0796b937447ee6fab6b | [
"RSA-MD"
] | 2 | 2020-03-26T10:11:17.000Z | 2021-01-19T08:16:48.000Z | source/common/textures/bitmap.cpp | bisk89/Raze | 1a2663f7ac84d4e4f472e0796b937447ee6fab6b | [
"RSA-MD"
] | null | null | null | source/common/textures/bitmap.cpp | bisk89/Raze | 1a2663f7ac84d4e4f472e0796b937447ee6fab6b | [
"RSA-MD"
] | null | null | null | /*
** bitmap.cpp
**
**---------------------------------------------------------------------------
** Copyright 2008-2019 Christoph Oelckers
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions
** are met:
*... | 35.013986 | 114 | 0.613142 | bisk89 |
dfef88427f51f9f56ad3371e3cf975f44c5610b1 | 249 | cpp | C++ | check_prime.cpp | Ashish2030/C-_Language_Code | 50b143124690249e5dbd4eaaddfb8a3dadf48f1f | [
"MIT"
] | 7 | 2021-05-05T00:14:39.000Z | 2021-05-16T07:10:06.000Z | check_prime.cpp | Ashish2030/C-_Language_Code | 50b143124690249e5dbd4eaaddfb8a3dadf48f1f | [
"MIT"
] | null | null | null | check_prime.cpp | Ashish2030/C-_Language_Code | 50b143124690249e5dbd4eaaddfb8a3dadf48f1f | [
"MIT"
] | 4 | 2021-05-17T07:54:57.000Z | 2021-06-29T15:36:54.000Z | #include<iostream>
using namespace std;
int main(){
int num;
cin>>num;
int i;
for(i=2;i<num;i++){
if(num%i==0){
cout<<"Not Prime"<<endl;
break;
}
}
if(i==num){
cout<<"Prime"<<endl;
}
return 0;
} | 9.576923 | 28 | 0.477912 | Ashish2030 |
dff026af1cd65828fcfab1e9db75c2362416227a | 2,932 | cpp | C++ | cph/platform/stm32/usb/CortexM4/usb_it.cpp | Loggi-pro/cph-lib | 4109dd1d3cc780c9f76aa54c2322bbdcbfdfea67 | [
"MIT"
] | null | null | null | cph/platform/stm32/usb/CortexM4/usb_it.cpp | Loggi-pro/cph-lib | 4109dd1d3cc780c9f76aa54c2322bbdcbfdfea67 | [
"MIT"
] | null | null | null | cph/platform/stm32/usb/CortexM4/usb_it.cpp | Loggi-pro/cph-lib | 4109dd1d3cc780c9f76aa54c2322bbdcbfdfea67 | [
"MIT"
] | null | null | null | #include "m4_usb.h"
#include <usbd_def.h>
#define USBD_VID 1155
#define USBD_LANGID_STRING 1033
#define USBD_PID_FS 22336
/** @defgroup USBD_DESC_Private_FunctionPrototypes USBD_DESC_Private_FunctionPrototypes
* @brief Private functions declaration.
* @{
*/
/** @defgroup USBD_DESC_Private_Fun... | 27.660377 | 88 | 0.702251 | Loggi-pro |
dff72eccb7d208cf35b1104e4758e683081bb73b | 4,339 | cpp | C++ | SocketTest/SocketTest/main.cpp | beijixing/C-SocketProtobuf | 2a56c5f76008970422f67b71a8c29f966d2ef855 | [
"MIT"
] | null | null | null | SocketTest/SocketTest/main.cpp | beijixing/C-SocketProtobuf | 2a56c5f76008970422f67b71a8c29f966d2ef855 | [
"MIT"
] | null | null | null | SocketTest/SocketTest/main.cpp | beijixing/C-SocketProtobuf | 2a56c5f76008970422f67b71a8c29f966d2ef855 | [
"MIT"
] | null | null | null | //
// main.cpp
// SocketTest
//
// Created by 郑光龙 on 15/5/24.
// Copyright (c) 2015年 郑光龙. All rights reserved.
//
#include <iostream>
#include<stdio.h>
#include<string.h> //strlen
#include<sys/socket.h>
#include<arpa/inet.h> //inet_addr
#include<unistd.h> //write
typedef struct _packageHead
{
int dataLe... | 30.992857 | 120 | 0.568334 | beijixing |
dffb4646b15d9d891e072de5ad32fa8844e6fa25 | 1,029 | cpp | C++ | applicationsSrc/sphereCatoms3D/sphereCatoms3D.cpp | claytronics/visiblesim | 2762a88a23e50516d0f166dd9629f1ac7290fded | [
"Apache-2.0"
] | 4 | 2016-08-18T03:19:49.000Z | 2020-09-20T03:29:26.000Z | applicationsSrc/sphereCatoms3D/sphereCatoms3D.cpp | claytronics/visiblesim | 2762a88a23e50516d0f166dd9629f1ac7290fded | [
"Apache-2.0"
] | 2 | 2016-08-18T03:25:07.000Z | 2016-08-29T17:51:50.000Z | applicationsSrc/sphereCatoms3D/sphereCatoms3D.cpp | claytronics/visiblesim | 2762a88a23e50516d0f166dd9629f1ac7290fded | [
"Apache-2.0"
] | 3 | 2015-05-14T07:29:55.000Z | 2021-07-18T23:45:36.000Z | /*
* csgCatoms3D.cpp
*
* Created on: 06 August 2015
* Author: Thadeu
*/
#include <iostream>
#include "catoms3DSimulator.h"
#include "catoms3DBlockCode.h"
#include "sphereCatoms3DBlockCode.h"
#include <ctime>
using namespace std;
using namespace Catoms3D;
int main(int argc, char **argv) {
cout << "\033[1;33m"... | 27.810811 | 87 | 0.672498 | claytronics |
dffdd3c3b9219fa4e5ad05aa70fc82f318243154 | 48 | hpp | C++ | src/boost_preprocessor_tuple_to_list.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_preprocessor_tuple_to_list.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_preprocessor_tuple_to_list.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/preprocessor/tuple/to_list.hpp>
| 24 | 47 | 0.8125 | miathedev |
dffe2accf21a03b7000e72200dc2a593954f9876 | 10,367 | cpp | C++ | data/190.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/190.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/190.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | int PP, Nktn,eIIJ,m3S9,TB,UEm,Dh,c4jd /**/,Z48Dg
,Dl , //
sb
,//t
qGjS,Qn23k ,G,
pp ,zQ7cPoEn
,
P9Hezp,z6Y
,
bu
, L
,F , KEsD
,D1u,NV, nSv9w ,Dd, Hp , ckF ,
MfI3B
,K69/*nLYB*/,w0E, EP ,
e6brbn
, LjqSR
,//iGyd
FkVP/*frt*/,
Hz ,a1 ,VyM
//y
, dZ1MV, Gf
,UR7hB,LPDw7 ,G2 ,
fkl2 ; void f_f0 () { vola... | 11.256243 | 85 | 0.474486 | TianyiChen |
5f0442f825c1ffa96a494c27ce0ce739bc0dcb7e | 1,542 | hpp | C++ | src/GameFinishedChecker.hpp | PiotrBatko/Gomoku | 05b2e51147378787530b4647beebff5d02b19efe | [
"Unlicense"
] | null | null | null | src/GameFinishedChecker.hpp | PiotrBatko/Gomoku | 05b2e51147378787530b4647beebff5d02b19efe | [
"Unlicense"
] | null | null | null | src/GameFinishedChecker.hpp | PiotrBatko/Gomoku | 05b2e51147378787530b4647beebff5d02b19efe | [
"Unlicense"
] | null | null | null | #ifndef GAMEFINISHEDCHECKER_HPP
#define GAMEFINISHEDCHECKER_HPP
#include <utility>
#include "Coordinates.hpp"
#include "PawnColor.hpp"
class Board;
class GameFinishedChecker
{
public:
GameFinishedChecker(const Board& board);
virtual ~GameFinishedChecker();
bool CheckIfGameFinished(Coordinates lastPlay... | 25.278689 | 80 | 0.712711 | PiotrBatko |
5f092903cf1c3718389d43d79f67a43db4d7f14c | 6,924 | cpp | C++ | example-logging/src/logging.cpp | hardmanko/ofxCX | 0d1276e4ba8c25a0803da7b03088da24d8871f38 | [
"MIT"
] | 7 | 2015-02-19T21:21:34.000Z | 2022-03-18T13:38:20.000Z | example-logging/src/logging.cpp | hardmanko/ofxCX | 0d1276e4ba8c25a0803da7b03088da24d8871f38 | [
"MIT"
] | null | null | null | example-logging/src/logging.cpp | hardmanko/ofxCX | 0d1276e4ba8c25a0803da7b03088da24d8871f38 | [
"MIT"
] | 4 | 2018-02-16T12:56:13.000Z | 2022-03-23T01:27:33.000Z | /* This example shows various features of the logging system in CX.
One feature is of the logging system is filtering of log messages, which is done based on
the severity of the messages, the module that created the message, and the output targets
to which messages are logged. All messages that are logged are assigne... | 52.454545 | 145 | 0.749278 | hardmanko |
5f0d94e50a03a23d2ec5844a71bbf6add676f266 | 851 | hpp | C++ | lib/Grid.hpp | pstefa1707/Conways-Game-Of-Life | 41c40a65626e819109cdd5ccb030b7e33c60f6cb | [
"MIT"
] | null | null | null | lib/Grid.hpp | pstefa1707/Conways-Game-Of-Life | 41c40a65626e819109cdd5ccb030b7e33c60f6cb | [
"MIT"
] | null | null | null | lib/Grid.hpp | pstefa1707/Conways-Game-Of-Life | 41c40a65626e819109cdd5ccb030b7e33c60f6cb | [
"MIT"
] | null | null | null | #include <vector>
#include "SFML/Graphics.hpp"
#include <iostream>
class Cell;
class Grid
{
private:
int _width;
int _height;
sf::Vector2f _cell_size;
int _get_neighbours(int& x_pos, int& y_pos);
public:
std::vector<sf::Vector2i> step();
int width();
int ... | 25.787879 | 80 | 0.566392 | pstefa1707 |
5f109c8bf9e4c1e5a8365092a27134c9b3a1a795 | 3,605 | cpp | C++ | esp/main/aaaos/aaa.cpp | binh8994/aaaos | f9d5fb5e8609fb822f88bb80e905acea131d726f | [
"MIT"
] | null | null | null | esp/main/aaaos/aaa.cpp | binh8994/aaaos | f9d5fb5e8609fb822f88bb80e905acea131d726f | [
"MIT"
] | null | null | null | esp/main/aaaos/aaa.cpp | binh8994/aaaos | f9d5fb5e8609fb822f88bb80e905acea131d726f | [
"MIT"
] | null | null | null | #include "aaa.h"
#include "aaa_log.h"
#include "task_list.h"
static const char *TAG = "AAA";
static SemaphoreHandle_t SemTasksStarted = NULL;
static uint32_t TaskTableLen = AAA_TASK_LIST_LEN;
static void printBanner(void)
{
printf("\r\n"
" _/_/ _/_/ _/_/ _/_/ _/_/_/ \r\n"
... | 27.310606 | 135 | 0.574202 | binh8994 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.