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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7c58e5f186694bb171931cf1d8266e2c31118507 | 3,303 | cpp | C++ | tests/test_transpose/test_transpose.cpp | mablanchard/Fastor | f5ca2f608bdfee34833d5008a93a3f82ce42ddef | [
"MIT"
] | 424 | 2017-05-15T14:34:30.000Z | 2022-03-29T08:58:22.000Z | tests/test_transpose/test_transpose.cpp | manodeep/Fastor | aefce47955dd118f04e7b36bf5dbb2d86997ff8f | [
"MIT"
] | 150 | 2016-12-23T10:08:12.000Z | 2022-01-16T03:53:45.000Z | tests/test_transpose/test_transpose.cpp | manodeep/Fastor | aefce47955dd118f04e7b36bf5dbb2d86997ff8f | [
"MIT"
] | 43 | 2017-09-20T19:47:24.000Z | 2022-02-22T21:12:49.000Z | #include <Fastor/Fastor.h>
using namespace Fastor;
#define Tol 1e-12
#define BigTol 1e-5
#define HugeTol 1e-2
template<typename T, size_t M, size_t N>
Tensor<T,N,M> transpose_ref(const Tensor<T,M,N>& a) {
Tensor<T,N,M> out;
for (size_t i=0; i<M; ++i) {
for (size_t j=0; j<N; ++j) {
out(j,... | 22.02 | 93 | 0.518619 | mablanchard |
7c5b8418e332dc639e4c9bc7b60fde9c073c2ce7 | 204 | cpp | C++ | src/main.cpp | JoseLuisC99/GraphDB | 63735389e0637746333b404583ae8e54ea309497 | [
"MIT"
] | null | null | null | src/main.cpp | JoseLuisC99/GraphDB | 63735389e0637746333b404583ae8e54ea309497 | [
"MIT"
] | null | null | null | src/main.cpp | JoseLuisC99/GraphDB | 63735389e0637746333b404583ae8e54ea309497 | [
"MIT"
] | null | null | null | #include <iostream>
#include "graph/Vertex.hpp"
#include "graph/Edge.hpp"
#include "graph/Graph.hpp"
using namespace std;
int main(int argc, char** argv) {
cout << "GraphDB" << endl;
return 0;
} | 18.545455 | 33 | 0.666667 | JoseLuisC99 |
7c630c5a5847b69203f8ac94a8f6d844da57a24c | 528 | cpp | C++ | chapter-15/Program 1.cpp | JahanzebNawaz/Introduction-to-C-plus-plus-CPP-Chapter-Exercises | dc3cd3a0091686580aa8414f3d021fe5bb7bb513 | [
"MIT"
] | null | null | null | chapter-15/Program 1.cpp | JahanzebNawaz/Introduction-to-C-plus-plus-CPP-Chapter-Exercises | dc3cd3a0091686580aa8414f3d021fe5bb7bb513 | [
"MIT"
] | null | null | null | chapter-15/Program 1.cpp | JahanzebNawaz/Introduction-to-C-plus-plus-CPP-Chapter-Exercises | dc3cd3a0091686580aa8414f3d021fe5bb7bb513 | [
"MIT"
] | null | null | null | /* program of inheritance */
#include<iostream>
#include<conio.h>
using namespace std;
class move
{
protected:
int position;
public:
move()
{
position=0;
}
void forward()
{
position++;
}
void show()
{
cout<<" Position = "<<position<<endl;
}
... | 11.234043 | 43 | 0.486742 | JahanzebNawaz |
7c637803e72b33ad45f5566aabf2d06ddf7c949e | 37,796 | cc | C++ | Code/BBearEditor/Engine/Serializer/BBMaterial.pb.cc | xiaoxianrouzhiyou/BBearEditor | 0f1b779d87c297661f9a1e66d0613df43f5fe46b | [
"MIT"
] | 26 | 2021-06-30T02:19:30.000Z | 2021-07-23T08:38:46.000Z | Code/BBearEditor/Engine/Serializer/BBMaterial.pb.cc | xiaoxianrouzhiyou/BBearEditor-2.0 | 0f1b779d87c297661f9a1e66d0613df43f5fe46b | [
"MIT"
] | null | null | null | Code/BBearEditor/Engine/Serializer/BBMaterial.pb.cc | xiaoxianrouzhiyou/BBearEditor-2.0 | 0f1b779d87c297661f9a1e66d0613df43f5fe46b | [
"MIT"
] | 3 | 2021-09-01T08:19:30.000Z | 2021-12-28T19:06:40.000Z | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: BBMaterial.proto
#include "BBMaterial.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/descriptor.h>
#includ... | 40.904762 | 172 | 0.707324 | xiaoxianrouzhiyou |
7c65564d6a6d4b54ed3b7a5ababd4394bff7452b | 201 | cpp | C++ | 3-C-And-CPlusPlus-Interview/3-6-CPlusPlusTest/3-6-4-Test4.cpp | wuping5719/JustFun | 18140dc1ee314ac8b87d7a95271e4ed2ddf7acd5 | [
"MIT"
] | 6 | 2016-05-25T05:23:00.000Z | 2021-10-04T09:31:28.000Z | 3-C-And-CPlusPlus-Interview/3-6-CPlusPlusTest/3-6-4-Test4.cpp | wuping5719/JustFun | 18140dc1ee314ac8b87d7a95271e4ed2ddf7acd5 | [
"MIT"
] | null | null | null | 3-C-And-CPlusPlus-Interview/3-6-CPlusPlusTest/3-6-4-Test4.cpp | wuping5719/JustFun | 18140dc1ee314ac8b87d7a95271e4ed2ddf7acd5 | [
"MIT"
] | 2 | 2016-10-15T17:59:31.000Z | 2018-06-06T09:44:35.000Z | #include "stdafx.h"
#include<stdio.h>
#include<stdlib.h>
void main()
{
int a=-3;
unsigned int b=2;
long c=a+b;
printf("%ld\n",c);
int x=10;
int y=10;
x=y=++y;
printf("%d %d",x,y);
}
| 11.823529 | 24 | 0.542289 | wuping5719 |
7c6932698dcd328d5f0ea9a9641c7efacd43d132 | 2,841 | cpp | C++ | cpp/recursionAlgorithms.cpp | chaohan/code-samples | 0ae7da954a36547362924003d56a8bece845802c | [
"MIT"
] | null | null | null | cpp/recursionAlgorithms.cpp | chaohan/code-samples | 0ae7da954a36547362924003d56a8bece845802c | [
"MIT"
] | null | null | null | cpp/recursionAlgorithms.cpp | chaohan/code-samples | 0ae7da954a36547362924003d56a8bece845802c | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/ublas/assignment.hpp>
#include <boost/math/special_functions/binomial.hpp>
namespace recursionAlgorithms
{
using namespace std;
using namespace boost::numeric::ublas;
/*9.1
... | 30.548387 | 91 | 0.489968 | chaohan |
7c72de651605385eff7faae5b93f30321a5953b8 | 7,805 | cpp | C++ | D&D Wrath of Silumgar/Motor2D/UIBar.cpp | Wilhelman/DD-Shadow-over-Mystara | d4303ad87cc442414c0facb71ce9cd5564b51039 | [
"MIT"
] | 3 | 2019-06-21T04:40:16.000Z | 2020-07-07T13:09:53.000Z | D&D Wrath of Silumgar/Motor2D/UIBar.cpp | Wilhelman/DD-Shadow-over-Mystara | d4303ad87cc442414c0facb71ce9cd5564b51039 | [
"MIT"
] | 56 | 2018-05-07T10:30:08.000Z | 2018-05-15T08:27:06.000Z | D&D Wrath of Silumgar/Motor2D/UIBar.cpp | Wilhelman/DD-Shadow-over-Mystara | d4303ad87cc442414c0facb71ce9cd5564b51039 | [
"MIT"
] | 3 | 2019-01-03T17:24:57.000Z | 2019-05-04T08:49:12.000Z | #include "ctApp.h"
#include "UIBar.h"
#include "ctLog.h"
#include "ctInput.h"
#include "ctPerfTimer.h"
UIBar::UIBar(int x, int y, int max_capacity, UI_Type type, ctModule* callback, Entity* entity, UIElement* parent) : UIElement(x, y, type, parent)
{
this->entity = entity;
this->callback = callback;
bar_type = type... | 31.095618 | 155 | 0.678796 | Wilhelman |
7c72e74f787e49768ff10fe148f2314d278fd7a0 | 1,991 | cpp | C++ | src/source/DRV_STATUS.cpp | ManuelMcLure/TMCStepper | c425c40f0adfa24c1c21ce7d6428bcffc2c921ae | [
"MIT"
] | 336 | 2018-03-26T13:51:46.000Z | 2022-03-21T21:58:47.000Z | src/source/DRV_STATUS.cpp | ManuelMcLure/TMCStepper | c425c40f0adfa24c1c21ce7d6428bcffc2c921ae | [
"MIT"
] | 218 | 2017-07-28T06:13:53.000Z | 2022-03-26T16:41:21.000Z | src/source/DRV_STATUS.cpp | ManuelMcLure/TMCStepper | c425c40f0adfa24c1c21ce7d6428bcffc2c921ae | [
"MIT"
] | 176 | 2018-09-11T22:16:27.000Z | 2022-03-26T13:04:03.000Z | #include "TMCStepper.h"
#include "TMC_MACROS.h"
#define GET_REG(NS, SETTING) NS::DRV_STATUS_t r{0}; r.sr = DRV_STATUS(); return r.SETTING
uint32_t TMC2130Stepper::DRV_STATUS() { return read(DRV_STATUS_t::address); }
uint16_t TMC2130Stepper::sg_result(){ GET_REG(TMC2130_n, sg_result); }
bool TMC2130Stepper::fsactive... | 51.051282 | 89 | 0.692617 | ManuelMcLure |
7c7472c04ab1ade0a573cefb0c73da8759b41c18 | 5,786 | hpp | C++ | utility/common.hpp | joydit/solidframe | 0539b0a1e77663ac4c701a88f56723d3e3688e8c | [
"BSL-1.0"
] | null | null | null | utility/common.hpp | joydit/solidframe | 0539b0a1e77663ac4c701a88f56723d3e3688e8c | [
"BSL-1.0"
] | null | null | null | utility/common.hpp | joydit/solidframe | 0539b0a1e77663ac4c701a88f56723d3e3688e8c | [
"BSL-1.0"
] | null | null | null | // utility/common.hpp
//
// Copyright (c) 2007, 2008 Valentin Palade (vipalade @ gmail . com)
//
// This file is part of SolidFrame framework.
//
// 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.
//
#ifndef UTILITY_CO... | 20.230769 | 89 | 0.636709 | joydit |
7c7a0027366c78fc4135120f217b0a26563d406d | 1,243 | hpp | C++ | src/details/std_includes.hpp | spanishgum/leetcode-driver | 71883bcdca946684133fbf263a1186f1758ef594 | [
"MIT"
] | null | null | null | src/details/std_includes.hpp | spanishgum/leetcode-driver | 71883bcdca946684133fbf263a1186f1758ef594 | [
"MIT"
] | null | null | null | src/details/std_includes.hpp | spanishgum/leetcode-driver | 71883bcdca946684133fbf263a1186f1758ef594 | [
"MIT"
] | null | null | null | #ifndef LEET_STD_INCLUDES
#define LEET_STD_INCLUDES
// Utilities
#include <any>
#include <bitset>
#include <chrono>
#include <cstddef>
#include <cstdlib>
#include <ctime>
#include <functional>
#include <initializer_list>
#include <optional>
#include <tuple>
#include <utility>
#include <variant>
// Numeric limits
#inc... | 15.345679 | 29 | 0.730491 | spanishgum |
7c7a1d21ea3255ef6f49069dd2d2f724ec0f54d9 | 474 | cpp | C++ | Source/Pickup/BodyPickup.cpp | thatguyabass/Kill-O-Byte-Source | 0d4dfea226514161bb9799f55359f91da0998256 | [
"Apache-2.0"
] | 2 | 2016-12-13T19:13:10.000Z | 2017-08-14T04:46:52.000Z | Source/Pickup/BodyPickup.cpp | thatguyabass/Kill-O-Byte-Source | 0d4dfea226514161bb9799f55359f91da0998256 | [
"Apache-2.0"
] | null | null | null | Source/Pickup/BodyPickup.cpp | thatguyabass/Kill-O-Byte-Source | 0d4dfea226514161bb9799f55359f91da0998256 | [
"Apache-2.0"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "Snake_Project.h"
#include "BodyPickup.h"
#include "SnakeCharacter/SnakeLink.h"
ABodyPickup::ABodyPickup(const class FObjectInitializer& PCIP)
: Super(PCIP)
{
BodyCount = 1;
PrimaryActorTick.bCanEverTick = true;
}
void ABodyP... | 19.75 | 78 | 0.729958 | thatguyabass |
75aca9ce130ac4b59f5fa9339df6ad748481735b | 1,623 | cpp | C++ | tests/madoka/topic.cpp | cre-ne-jp/irclog2json | 721f9c6f247ae9d972dff8c1b3befa36bb1e062e | [
"MIT"
] | null | null | null | tests/madoka/topic.cpp | cre-ne-jp/irclog2json | 721f9c6f247ae9d972dff8c1b3befa36bb1e062e | [
"MIT"
] | 8 | 2019-08-26T22:57:37.000Z | 2021-09-11T17:35:50.000Z | tests/madoka/topic.cpp | cre-ne-jp/irclog2json | 721f9c6f247ae9d972dff8c1b3befa36bb1e062e | [
"MIT"
] | null | null | null | #define _XOPEN_SOURCE
#include <doctest/doctest.h>
#include <ctime>
#include <picojson.h>
#include "message/madoka_line_parser.h"
#include "message/message_base.h"
#include "tests/test_helper.h"
TEST_CASE("Madoka TOPIC") {
using irclog2json::message::MadokaLineParser;
struct tm tm_date {};
strptime("1999-... | 22.232877 | 72 | 0.637708 | cre-ne-jp |
75bbf795200ee302081f4ab835ab59176362c83d | 461 | hpp | C++ | engine/utility/type/Color.hpp | zhec9/nemo | b719b89933ce722a14355e7ed825a76dea680501 | [
"MIT"
] | null | null | null | engine/utility/type/Color.hpp | zhec9/nemo | b719b89933ce722a14355e7ed825a76dea680501 | [
"MIT"
] | null | null | null | engine/utility/type/Color.hpp | zhec9/nemo | b719b89933ce722a14355e7ed825a76dea680501 | [
"MIT"
] | null | null | null | #pragma once
#include <SFML/Graphics/Color.hpp>
namespace nemo
{
struct BorderColor {
sf::Color v_;
};
struct BackgroundColor {
sf::Color v_;
};
struct TextColor {
sf::Color v_;
};
struct TextBoxColors
{
BorderColor border_;
BackgroundColor backgnd_;
TextColor text_;
TextBoxColors(const BorderCo... | 13.171429 | 72 | 0.696312 | zhec9 |
75c18c6cd22c7100d9932b21c1e61c08c544bc5d | 880 | cpp | C++ | 1SST/7LW/7task_6.cpp | AVAtarMod/University | 3c784a1e109b7a6f6ea495278ec3dc126258625a | [
"BSD-3-Clause"
] | 1 | 2021-07-31T06:55:08.000Z | 2021-07-31T06:55:08.000Z | 1SST/7LW/7task_6.cpp | AVAtarMod/University-C | e516aac99eabbcbe14d897239f08acf6c8e146af | [
"BSD-3-Clause"
] | 1 | 2020-11-25T12:00:11.000Z | 2021-01-13T08:51:52.000Z | 1SST/7LW/7task_6.cpp | AVAtarMod/University-C | e516aac99eabbcbe14d897239f08acf6c8e146af | [
"BSD-3-Clause"
] | null | null | null | // Даны два натуральных числа A и B (A < B). Написать функцию, выводящую все числа из диапазона [A; B], которые делятся на свою наибольшую цифру. Для поиск наибольшей цифры числа реализовать отдельную функцию
#include <iostream>
int maxDigitInNumber(int number);
int main(){
printf("\n\nВведите А и B через пробел... | 27.5 | 209 | 0.619318 | AVAtarMod |
75cff7cc71e9cbc6e1c6da336bd2c926ccbfb761 | 2,371 | cpp | C++ | test/dldist_test.cpp | namreeb/string_algorithms | a91ac5752538bd06d02c390a96e831d4b084bf7d | [
"MIT"
] | null | null | null | test/dldist_test.cpp | namreeb/string_algorithms | a91ac5752538bd06d02c390a96e831d4b084bf7d | [
"MIT"
] | null | null | null | test/dldist_test.cpp | namreeb/string_algorithms | a91ac5752538bd06d02c390a96e831d4b084bf7d | [
"MIT"
] | null | null | null | /*
* MIT License
*
* Copyright (c) 2019 namreeb ([email protected]) http://github.com/namreeb/string_algorithms
*
* 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, i... | 36.476923 | 111 | 0.645297 | namreeb |
75d15718c760e3149f547fc246fb041a3dd0a22c | 2,923 | hpp | C++ | Box2D/Dynamics/JointAtty.hpp | louis-langholtz/Box2D | 7c74792bf177cf36640d735de2bba0225bf7f852 | [
"Zlib"
] | 32 | 2016-10-20T05:55:04.000Z | 2021-11-25T16:34:41.000Z | Box2D/Dynamics/JointAtty.hpp | louis-langholtz/Box2D | 7c74792bf177cf36640d735de2bba0225bf7f852 | [
"Zlib"
] | 50 | 2017-01-07T21:40:16.000Z | 2018-01-31T10:04:05.000Z | Box2D/Dynamics/JointAtty.hpp | louis-langholtz/Box2D | 7c74792bf177cf36640d735de2bba0225bf7f852 | [
"Zlib"
] | 7 | 2017-02-09T10:02:02.000Z | 2020-07-23T22:49:04.000Z | /*
* Original work Copyright (c) 2006-2011 Erin Catto http://www.box2d.org
* Modified work Copyright (c) 2017 Louis Langholtz https://github.com/louis-langholtz/Box2D
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* ar... | 32.842697 | 116 | 0.640096 | louis-langholtz |
75d6e972d9a4b3e2aa3bcfe07af269cf53758571 | 2,378 | cpp | C++ | cpp/module1_prac/main.cpp | FinancialEngineerLab/bootstrappingSwapCurve | 2b2e7b92b6a945ecf09c78f53b53227afe580195 | [
"MIT"
] | null | null | null | cpp/module1_prac/main.cpp | FinancialEngineerLab/bootstrappingSwapCurve | 2b2e7b92b6a945ecf09c78f53b53227afe580195 | [
"MIT"
] | null | null | null | cpp/module1_prac/main.cpp | FinancialEngineerLab/bootstrappingSwapCurve | 2b2e7b92b6a945ecf09c78f53b53227afe580195 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <vector>
#include <iomanip>
#include "utilities.hpp"
#include "curvebuilder.hpp"
using namespace std;
int main()
{
ifstream infile;
infile.open("data.txt");
double x;
int mark = 1;
vector<curveUtils> bondSeries;
vector<curveUtils>::iterator bondSer... | 29.358025 | 158 | 0.586207 | FinancialEngineerLab |
75d7330ef3ae13d656f42931b16afae3e2ee5a5a | 4,300 | cpp | C++ | XsGameEngine/src/Renderer/OpenGL_Renderer/OpenGL_Renderer.cpp | XsAndre-L/XsGameEngine-REF | 82bbb6424c9b63e0ccf381bd73c0beabce0da141 | [
"Apache-2.0"
] | null | null | null | XsGameEngine/src/Renderer/OpenGL_Renderer/OpenGL_Renderer.cpp | XsAndre-L/XsGameEngine-REF | 82bbb6424c9b63e0ccf381bd73c0beabce0da141 | [
"Apache-2.0"
] | null | null | null | XsGameEngine/src/Renderer/OpenGL_Renderer/OpenGL_Renderer.cpp | XsAndre-L/XsGameEngine-REF | 82bbb6424c9b63e0ccf381bd73c0beabce0da141 | [
"Apache-2.0"
] | null | null | null | #include "OpenGL_Renderer.h"
#pragma region Public Functions
int OpenGL_Renderer::init_OpenGL_Renderer(GLFWwindow* newWindow)
{
window = newWindow;
int gladStatus = gladLoadGLLoader((GLADloadproc)glfwGetProcAddress);
if (gladStatus == 0)
{
printf("Glad initialization failed!");
glfwDestroyWindow(newWindow);
... | 27.741935 | 197 | 0.75093 | XsAndre-L |
75d7d2c124375ff010f8e56e4f3b08c7be2174a2 | 849 | cpp | C++ | src/algorithms/warmup/TimeConversion.cpp | notoes/HackerRankChallenges | 95f280334846a57cfc8433662a1ed0de2aacc3e9 | [
"MIT"
] | null | null | null | src/algorithms/warmup/TimeConversion.cpp | notoes/HackerRankChallenges | 95f280334846a57cfc8433662a1ed0de2aacc3e9 | [
"MIT"
] | null | null | null | src/algorithms/warmup/TimeConversion.cpp | notoes/HackerRankChallenges | 95f280334846a57cfc8433662a1ed0de2aacc3e9 | [
"MIT"
] | null | null | null | /*
https://www.hackerrank.com/challenges/time-conversion
Given a time in AM/PM format, convert it to military (2424-hour) time.
*/
#include <iostream>
#include <iomanip>
#include <sstream>
using namespace std;
int string_to_int( const string& str )
{
stringstream stream(str);
int res;
return (str... | 22.945946 | 92 | 0.603062 | notoes |
75e5d14fbcb52d1ad2af711a5fc2503d16dce2aa | 556 | cpp | C++ | src/examples/06_module/01_bank/atm.cpp | acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-blacksea2003 | c3e3c7e5d08cd1b397346d209095f67714f76689 | [
"MIT"
] | null | null | null | src/examples/06_module/01_bank/atm.cpp | acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-blacksea2003 | c3e3c7e5d08cd1b397346d209095f67714f76689 | [
"MIT"
] | null | null | null | src/examples/06_module/01_bank/atm.cpp | acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-blacksea2003 | c3e3c7e5d08cd1b397346d209095f67714f76689 | [
"MIT"
] | null | null | null | //atm.cpp
#include "atm.h"
using std::cout; using std::cin;
ATM::ATM()
{
customers.push_back(Customer(1, "john doe"));
customers.push_back(Customer(2, "mary doe"));
customers.push_back(Customer(3, "john hancock"));
customers.push_back(Customer(4, "mary hancock"));
}
void scan_card()
{
cout<<"e... | 20.592593 | 85 | 0.656475 | acc-cosc-1337-fall-2020 |
75ea5655890fd577b72626602b66c3d853426fa5 | 616 | cpp | C++ | src/common/onRead.cpp | LeandreBl/Subprocess | b45320878ca43ae0058676c93222be4a46ac8cd1 | [
"Apache-2.0"
] | 4 | 2020-12-10T20:22:53.000Z | 2021-11-08T08:24:49.000Z | src/common/onRead.cpp | LeandreBl/Subprocess | b45320878ca43ae0058676c93222be4a46ac8cd1 | [
"Apache-2.0"
] | null | null | null | src/common/onRead.cpp | LeandreBl/Subprocess | b45320878ca43ae0058676c93222be4a46ac8cd1 | [
"Apache-2.0"
] | 1 | 2021-11-08T08:33:22.000Z | 2021-11-08T08:33:22.000Z | #include <assert.h>
#include "Process.hpp"
namespace lp {
void Process::onReadStdout(
const std::function<void(Process &process, std::stringstream &stream)> &callback) noexcept
{
onRead(Stdout, callback);
}
void Process::onReadStderr(
const std::function<void(Process &process, std::stringstream &str... | 26.782609 | 98 | 0.699675 | LeandreBl |
75efbcc08d8d0e3ee914dc8da19344269d439dca | 868 | hpp | C++ | src/designpattern/Interpret.hpp | brucexia1/DesignPattern | 09dab7aaa4e3d72b64467efe3906e4e504e220c4 | [
"MIT"
] | null | null | null | src/designpattern/Interpret.hpp | brucexia1/DesignPattern | 09dab7aaa4e3d72b64467efe3906e4e504e220c4 | [
"MIT"
] | null | null | null | src/designpattern/Interpret.hpp | brucexia1/DesignPattern | 09dab7aaa4e3d72b64467efe3906e4e504e220c4 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
using namespace std;
class ContextIpt;
class AbstractExpression
{
public:
virtual ~AbstractExpression();
virtual void Interpret(const ContextIpt& c) = 0;
protected:
AbstractExpression();
};
class TerminalExpression:public AbstractExpression
{
public:
Termi... | 18.083333 | 67 | 0.708525 | brucexia1 |
75f0e03b43ef4d956d8b7cf47e2e63accf57452e | 6,655 | hpp | C++ | Include/LibYT/GenericFormatter.hpp | MalteDoemer/YeetOS2 | 82be488ec1ed13e6558af4e248977dad317b3b85 | [
"BSD-2-Clause"
] | null | null | null | Include/LibYT/GenericFormatter.hpp | MalteDoemer/YeetOS2 | 82be488ec1ed13e6558af4e248977dad317b3b85 | [
"BSD-2-Clause"
] | null | null | null | Include/LibYT/GenericFormatter.hpp | MalteDoemer/YeetOS2 | 82be488ec1ed13e6558af4e248977dad317b3b85 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright 2021 Malte Dömer
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclai... | 27.729167 | 115 | 0.518407 | MalteDoemer |
75f1bc7ff426f5f916c96191f9b8b555070793bb | 113 | cpp | C++ | src/ace/ACE_wrappers/ACEXML/common/Element_Def_Builder.cpp | wfnex/OpenBRAS | b8c2cd836ae85d5307f7f5ca87573b964342bb49 | [
"BSD-3-Clause"
] | 8 | 2017-06-05T08:56:27.000Z | 2020-04-08T16:50:11.000Z | src/ace/ACE_wrappers/ACEXML/common/Element_Def_Builder.cpp | wfnex/OpenBRAS | b8c2cd836ae85d5307f7f5ca87573b964342bb49 | [
"BSD-3-Clause"
] | null | null | null | src/ace/ACE_wrappers/ACEXML/common/Element_Def_Builder.cpp | wfnex/OpenBRAS | b8c2cd836ae85d5307f7f5ca87573b964342bb49 | [
"BSD-3-Clause"
] | 17 | 2017-06-05T08:54:27.000Z | 2021-08-29T14:19:12.000Z | #include "ACEXML/common/Element_Def_Builder.h"
ACEXML_Element_Def_Builder::~ACEXML_Element_Def_Builder ()
{
}
| 14.125 | 58 | 0.80531 | wfnex |
75f867193418ac6fda899f1462b53aaf2c76eb50 | 316 | cpp | C++ | Baekjoon Online Judge/1 ~ 9999/2501/boj-2501.cpp | kesakiyo/Competitive-Programming | e42331b28c3d8c10bd4853c8fa0ebbfc58dfa033 | [
"MIT"
] | 1 | 2019-05-17T16:16:43.000Z | 2019-05-17T16:16:43.000Z | Baekjoon Online Judge/1 ~ 9999/2501/boj-2501.cpp | kesakiyo/Competitive-Programming | e42331b28c3d8c10bd4853c8fa0ebbfc58dfa033 | [
"MIT"
] | null | null | null | Baekjoon Online Judge/1 ~ 9999/2501/boj-2501.cpp | kesakiyo/Competitive-Programming | e42331b28c3d8c10bd4853c8fa0ebbfc58dfa033 | [
"MIT"
] | null | null | null | /*
Copyright(c) 2019. Minho Cheon. All rights reserved.
*/
#include <iostream>
using namespace std;
int main() {
int n, k;
cin >> n >> k;
int cnt = 0;
for (int i = 1 ; i <= n ; ++i) {
if (n % i == 0) {
++cnt;
if (cnt == k) {
cout << i << endl;
return 0;
}
}
}
cout << 0 << endl;
} | 12.64 | 56 | 0.46519 | kesakiyo |
75ff34fbbb9647902584e07132df7b43d76b229a | 878 | cpp | C++ | chapter08/chapter08_ex08.cpp | TingeOGinge/stroustrup_ppp | bb69533fff8a8f1890c8c866bae2030eaca1cf8b | [
"MIT"
] | 170 | 2015-05-02T18:08:38.000Z | 2018-07-31T11:35:17.000Z | chapter08/chapter08_ex08.cpp | TingeOGinge/stroustrup_ppp | bb69533fff8a8f1890c8c866bae2030eaca1cf8b | [
"MIT"
] | 7 | 2017-01-16T02:25:20.000Z | 2018-07-20T12:57:30.000Z | chapter08/chapter08_ex08.cpp | TingeOGinge/stroustrup_ppp | bb69533fff8a8f1890c8c866bae2030eaca1cf8b | [
"MIT"
] | 105 | 2015-05-28T11:52:19.000Z | 2018-07-17T14:11:25.000Z | // Chapter 08, exercise 08: write simple function randint() to produce random
// numbers
// Exercise 09: write function that produces random number in a given range
#include "../lib_files/std_lib_facilities.h"
#include<climits>
unsigned int X_n = 0;
// initialise seed with clock
void init_seed()
{
X_n = 66779;
}... | 19.511111 | 77 | 0.628702 | TingeOGinge |
2f137773e438c14119bec747174ff6cbb6d7e89e | 1,308 | cpp | C++ | 131_Palindrome_Partitioning.cpp | AvadheshChamola/LeetCode | b0edabfa798c4e204b015f4c367bfc5acfbd8277 | [
"MIT"
] | null | null | null | 131_Palindrome_Partitioning.cpp | AvadheshChamola/LeetCode | b0edabfa798c4e204b015f4c367bfc5acfbd8277 | [
"MIT"
] | null | null | null | 131_Palindrome_Partitioning.cpp | AvadheshChamola/LeetCode | b0edabfa798c4e204b015f4c367bfc5acfbd8277 | [
"MIT"
] | null | null | null | /*
131. Palindrome Partitioning
Medium
Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s.
A palindrome string is a string that reads the same backward as forward.
Example 1:
Input: s = "aab"
Output: [["a","a","b"],["aa","b"]]
Ex... | 25.647059 | 139 | 0.552752 | AvadheshChamola |
2f16d0d651ce51c3da4780057264f884aacf19cc | 6,354 | cpp | C++ | master/core/third/cxxtools/demo/rpcserver.cpp | importlib/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | 4 | 2017-12-04T08:22:48.000Z | 2019-10-26T21:44:59.000Z | master/core/third/cxxtools/demo/rpcserver.cpp | isuhao/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | null | null | null | master/core/third/cxxtools/demo/rpcserver.cpp | isuhao/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | 4 | 2017-12-04T08:22:49.000Z | 2018-12-27T03:20:31.000Z | /*
* Copyright (C) 2009,2011 Tommi Maekitalo
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* As... | 35.497207 | 82 | 0.64542 | importlib |
2f1ea34e1ec57d9bf981a0ff47629286ebdb1b2d | 1,010 | cpp | C++ | src/cpu.cpp | KhaledYassin/CppND-System-Monitor-Project-Updated | 9830ca4f7b877151b5c987b23d7682215363abdb | [
"MIT"
] | null | null | null | src/cpu.cpp | KhaledYassin/CppND-System-Monitor-Project-Updated | 9830ca4f7b877151b5c987b23d7682215363abdb | [
"MIT"
] | null | null | null | src/cpu.cpp | KhaledYassin/CppND-System-Monitor-Project-Updated | 9830ca4f7b877151b5c987b23d7682215363abdb | [
"MIT"
] | null | null | null | #include "cpu.h"
#include <algorithm>
#include <cstdlib>
#include <iterator>
#include <map>
#include <string>
#include <utility>
#include <vector>
#include "processor.h"
const std::string CPU::kProcessesName = "processes";
const std::string CPU::kRunningProcessesName = "procs_running";
CPU::CPU(const std::string na... | 28.857143 | 77 | 0.709901 | KhaledYassin |
2f2094af3f619c1ac5179d0720e71d505601969b | 1,134 | cpp | C++ | C++/merge_sort.cpp | Shubham56-droid/DataStruture-and-algroithms-in-C- | d6e9f7a669bfe35fb05d97150f2e9aaacd4b53a2 | [
"MIT"
] | 80 | 2021-10-05T08:30:07.000Z | 2022-03-04T19:42:53.000Z | C++/merge_sort.cpp | Shubham56-droid/DataStruture-and-algroithms-in-C- | d6e9f7a669bfe35fb05d97150f2e9aaacd4b53a2 | [
"MIT"
] | 182 | 2021-10-05T08:50:50.000Z | 2022-01-31T17:53:04.000Z | C++/merge_sort.cpp | Shubham56-droid/DataStruture-and-algroithms-in-C- | d6e9f7a669bfe35fb05d97150f2e9aaacd4b53a2 | [
"MIT"
] | 104 | 2021-10-05T08:45:31.000Z | 2022-01-24T10:16:37.000Z | #include <bits/stdc++.h>
using namespace std;
void merge(int *arr, int l, int mid, int r)
{
int n1 = mid - l + 1, n2 = r - mid;
int a[n1], b[n2];
for (int i = 0; i < n1; i++)
{
a[i] = arr[l + i];
}
for (int i = 0; i < n2; i++)
{
b[i] = arr[mid + 1 + i];
}
int i = 0, j... | 18.590164 | 44 | 0.354497 | Shubham56-droid |
2f20a05df79a73a1d0c5be0b2c1734c021acba4b | 5,479 | hh | C++ | source/Utilities/shared/CalibrationYaml.hh | DArpinoRobotics/libmultisense | d3ed760c26762eabf3d9875a2379ff435b4f4be3 | [
"Unlicense"
] | null | null | null | source/Utilities/shared/CalibrationYaml.hh | DArpinoRobotics/libmultisense | d3ed760c26762eabf3d9875a2379ff435b4f4be3 | [
"Unlicense"
] | null | null | null | source/Utilities/shared/CalibrationYaml.hh | DArpinoRobotics/libmultisense | d3ed760c26762eabf3d9875a2379ff435b4f4be3 | [
"Unlicense"
] | null | null | null | /**
* @file shared/CalibrationYaml.hh
*
* Copyright 2013
* Carnegie Robotics, LLC
* 4501 Hatfield Street, Pittsburgh, PA 15201
* http://www.carnegierobotics.com
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the foll... | 25.602804 | 121 | 0.548275 | DArpinoRobotics |
2f2116da52f0819186c50970bd8dc5b4ce95ad6b | 857 | cpp | C++ | src/util/os_structs.cpp | dulingzhi/D2RMH | f3c079fb72234bfba84c9c5251f1c82fc8e5cdb2 | [
"MIT"
] | 125 | 2021-10-31T05:55:12.000Z | 2022-03-30T09:15:29.000Z | src/util/os_structs.cpp | dulingzhi/D2RMH | f3c079fb72234bfba84c9c5251f1c82fc8e5cdb2 | [
"MIT"
] | 93 | 2021-10-31T11:19:37.000Z | 2022-03-31T13:25:54.000Z | src/util/os_structs.cpp | dulingzhi/D2RMH | f3c079fb72234bfba84c9c5251f1c82fc8e5cdb2 | [
"MIT"
] | 57 | 2021-10-30T08:45:05.000Z | 2022-03-30T04:11:21.000Z | /*
* Copyright (c) 2021 Soar Qin<[email protected]>
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
*/
#include "os_structs.h"
extern "C" {
#if defined(_M_IX86)
NtWow64QueryInformationProcess64Proc NtWow64Quer... | 25.969697 | 112 | 0.770128 | dulingzhi |
2f241a83937550facec49079a4c99c4ee60e0fce | 2,451 | cpp | C++ | cccc/tests/lexer/location_spec.cpp | DasNaCl/old-university-projects | af1c82afec4805ea672e0c353369035b394cb69d | [
"Apache-2.0"
] | null | null | null | cccc/tests/lexer/location_spec.cpp | DasNaCl/old-university-projects | af1c82afec4805ea672e0c353369035b394cb69d | [
"Apache-2.0"
] | null | null | null | cccc/tests/lexer/location_spec.cpp | DasNaCl/old-university-projects | af1c82afec4805ea672e0c353369035b394cb69d | [
"Apache-2.0"
] | null | null | null | #include <test_suite.hpp>
#include <gtest/gtest.h>
#define MYTEST(Y) TEST(lexer_locations, locations_ ## Y)
using namespace mhc4;
static const std::string f = "location.c";
const test_suite ts(f);
std::ostream& operator<<(std::ostream& os, const token& tok)
{
return os << tok.to_string();
}
MYTEST(lf_0)
{
... | 21.690265 | 71 | 0.585883 | DasNaCl |
2f2c9683ffc93dc586d8d2eb08f1a7fd96ae2473 | 2,441 | cpp | C++ | rescan_file_task.cpp | tim77/qt-virustotal-uploader | d616ab0d709ff3be2eeb062d76e2338d8c2d22dd | [
"Apache-2.0"
] | 227 | 2015-04-16T03:23:15.000Z | 2022-03-28T15:54:04.000Z | rescan_file_task.cpp | tim77/qt-virustotal-uploader | d616ab0d709ff3be2eeb062d76e2338d8c2d22dd | [
"Apache-2.0"
] | 10 | 2016-04-30T18:19:43.000Z | 2021-11-17T01:41:30.000Z | rescan_file_task.cpp | tim77/qt-virustotal-uploader | d616ab0d709ff3be2eeb062d76e2338d8c2d22dd | [
"Apache-2.0"
] | 75 | 2015-03-17T16:29:00.000Z | 2022-03-05T09:19:14.000Z | /*
Copyright 2014 VirusTotal S.L. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | 26.824176 | 103 | 0.671856 | tim77 |
2f377ec0c59dcc50e6f5c659ac7ef33dcd8d4643 | 2,835 | cpp | C++ | JTS/CF-B/SPOJ-TOE1/test.cpp | rahulsrma26/ol_codes | dc599f5b70c14229a001c5239c366ba1b990f68b | [
"MIT"
] | 2 | 2019-03-18T16:06:10.000Z | 2019-04-07T23:17:06.000Z | JTS/CF-B/SPOJ-TOE1/test.cpp | rahulsrma26/ol_codes | dc599f5b70c14229a001c5239c366ba1b990f68b | [
"MIT"
] | null | null | null | JTS/CF-B/SPOJ-TOE1/test.cpp | rahulsrma26/ol_codes | dc599f5b70c14229a001c5239c366ba1b990f68b | [
"MIT"
] | 1 | 2019-03-18T16:06:52.000Z | 2019-03-18T16:06:52.000Z | // Date : 2019-03-27
// Author : Rahul Sharma
// Problem : https://www.spoj.com/problems/TOE1/
#include <iostream>
#include <string>
#include <cmath>
#include <unordered_set>
#include <vector>
using namespace std;
unordered_set<string> bs;
void gen(string& b, int m = 9) {
if (!m) {
bs.insert(b);
... | 25.088496 | 71 | 0.332275 | rahulsrma26 |
2f3a585f8c11acc29e89a9df2c33acfef6177282 | 3,328 | cpp | C++ | Kiwano/base/Object.cpp | nomango96/Kiwano | 51b4078624fcd6370aa9c30eb5048a538cd1877c | [
"MIT"
] | 1 | 2019-07-17T03:25:52.000Z | 2019-07-17T03:25:52.000Z | Kiwano/base/Object.cpp | nomango96/Kiwano | 51b4078624fcd6370aa9c30eb5048a538cd1877c | [
"MIT"
] | null | null | null | Kiwano/base/Object.cpp | nomango96/Kiwano | 51b4078624fcd6370aa9c30eb5048a538cd1877c | [
"MIT"
] | null | null | null | // Copyright (c) 2016-2018 Kiwano - Nomango
//
// 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,... | 21.470968 | 105 | 0.669772 | nomango96 |
2f458e81dce4bc144b554479b1386b6fc5291401 | 2,124 | cpp | C++ | Game/Game.cpp | dwarfcrank/FantasyQuest | e5a35a8631dc056db8ffbc114354244b1530eaa6 | [
"MIT"
] | 1 | 2020-05-09T20:03:04.000Z | 2020-05-09T20:03:04.000Z | Game/Game.cpp | dwarfcrank/FantasyQuest | e5a35a8631dc056db8ffbc114354244b1530eaa6 | [
"MIT"
] | null | null | null | Game/Game.cpp | dwarfcrank/FantasyQuest | e5a35a8631dc056db8ffbc114354244b1530eaa6 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "Game.h"
#include "Common.h"
#include "InputMap.h"
#include "Renderer.h"
#include "Transform.h"
#include "Mesh.h"
#include "File.h"
#include "Scene.h"
#include "Camera.h"
#include "Math.h"
#include <SDL2/SDL.h>
#include <fmt/format.h>
#include <type_traits>
#include <d3d11.h>... | 25.285714 | 90 | 0.629473 | dwarfcrank |
2f466dd0f7ac366d24718c6c25d6899f434d4072 | 8,206 | cpp | C++ | Tissue/ias_TissueIO.cpp | torressancheza/ias | a63cbf4798ce3c91d4282ac25808970c1f272a5a | [
"MIT"
] | 2 | 2021-04-08T06:24:31.000Z | 2022-03-31T10:07:15.000Z | Tissue/ias_TissueIO.cpp | torressancheza/ias | a63cbf4798ce3c91d4282ac25808970c1f272a5a | [
"MIT"
] | null | null | null | Tissue/ias_TissueIO.cpp | torressancheza/ias | a63cbf4798ce3c91d4282ac25808970c1f272a5a | [
"MIT"
] | null | null | null | // **************************************************************************************************
// ias - Interacting Active Surfaces
// Project homepage: https://github.com/torressancheza/ias
// Copyright (c) 2020 Alejandro Torres-Sanchez, Max Kerr Winter and Guillaume Salbreux
// *****************... | 35.991228 | 213 | 0.469413 | torressancheza |
2f492448200f371994c36eebc26cdc03494638b8 | 1,284 | cpp | C++ | src/tMain.cpp | veljkolazic17/DOS_threads | 0f5c065850143469862f1f5cb69d076a4dbd986c | [
"MIT"
] | null | null | null | src/tMain.cpp | veljkolazic17/DOS_threads | 0f5c065850143469862f1f5cb69d076a4dbd986c | [
"MIT"
] | null | null | null | src/tMain.cpp | veljkolazic17/DOS_threads | 0f5c065850143469862f1f5cb69d076a4dbd986c | [
"MIT"
] | null | null | null | /*
* tMain.cpp
*
* Created on: Jul 1, 2021
* Author: OS1
*/
#include "../h/tMain.h"
#include "../h/ttools.h"
#include "../h/IVTEntry.h"
#include "../h/Iterator.h"
unsigned tMain::started = 0;
int userMain(int args,char* argv[]);
void tMain::run(){
this->retback = userMain(args,argv);
}... | 18.882353 | 63 | 0.61838 | veljkolazic17 |
2f4f64ca40b575480983d6d30bc1ac115aee7c6e | 5,563 | hpp | C++ | cpp/include/eop/intrinsics.hpp | asefahmed56/elements-of-programming | 2176d4a086ad52d73f1dc3c0cd7a97351766efd7 | [
"MIT"
] | 1 | 2020-04-09T06:16:48.000Z | 2020-04-09T06:16:48.000Z | cpp/include/eop/intrinsics.hpp | asefahmed56/elements-of-programming | 2176d4a086ad52d73f1dc3c0cd7a97351766efd7 | [
"MIT"
] | null | null | null | cpp/include/eop/intrinsics.hpp | asefahmed56/elements-of-programming | 2176d4a086ad52d73f1dc3c0cd7a97351766efd7 | [
"MIT"
] | null | null | null | #ifndef EOP_INTRINSICS_HPP
#define EOP_INTRINSICS_HPP
#include "concepts.hpp"
namespace eop
{
/**
* @brief Method for construction
*
* Precondition: $v$ refers to raw memory, not an object
* Postcondition: $v$ is in a partially-formed state
*
* @tparam ContainerType A container to ... | 32.723529 | 81 | 0.621967 | asefahmed56 |
016c679fcde0745331f83466ad7d22c792f30040 | 2,678 | cpp | C++ | frequency.cpp | scross99/cryptanalysis-gui | a3149972f1877889172bee9e969f3dc8b243e6ae | [
"MIT"
] | null | null | null | frequency.cpp | scross99/cryptanalysis-gui | a3149972f1877889172bee9e969f3dc8b243e6ae | [
"MIT"
] | null | null | null | frequency.cpp | scross99/cryptanalysis-gui | a3149972f1877889172bee9e969f3dc8b243e6ae | [
"MIT"
] | null | null | null | #include <wx/wx.h>
#include <wx/listctrl.h>
#include <cstdlib>
#include <iostream>
#include "frequency.h"
#include "ids.h"
#include "english.h"
BEGIN_EVENT_TABLE(WA_Frequency, wxPanel)
EVT_TEXT(frequency_txt, WA_Frequency::on_txt_changed)
END_EVENT_TABLE()
WA_Frequency::WA_Frequency(wxWindow * parent... | 27.050505 | 105 | 0.616878 | scross99 |
017157ae72a7def5c133dd4127665f444dda75e7 | 2,625 | cpp | C++ | src/AppLines/b3CopyProperty.cpp | stmork/blz3 | 275e24681cb1493319cd0a50e691feb86182f6f0 | [
"BSD-3-Clause"
] | null | null | null | src/AppLines/b3CopyProperty.cpp | stmork/blz3 | 275e24681cb1493319cd0a50e691feb86182f6f0 | [
"BSD-3-Clause"
] | null | null | null | src/AppLines/b3CopyProperty.cpp | stmork/blz3 | 275e24681cb1493319cd0a50e691feb86182f6f0 | [
"BSD-3-Clause"
] | 1 | 2022-01-07T15:58:38.000Z | 2022-01-07T15:58:38.000Z | /*
**
** $Filename: b3CopyProperty.cpp $
** $Release: Dortmund 2005 $
** $Revision$
** $Date$
** $Author$
** $Developer: Steffen A. Mork $
**
** Blizzard III - Select shape property copy modes
**
** (C) Copyright 2005 Steffen A. Mork
** All Rights Reserved
**
**
*/
/***********************************************... | 23.4375 | 78 | 0.508571 | stmork |
017294bdd75e366ade8483a96b4009bdd8b258bd | 723 | cpp | C++ | Train/Sheet/Sheet-B/extra/extra 01 - 15/09.[Decoding].cpp | mohamedGamalAbuGalala/Practice | 2a5fa3bdaf995d0c304f04231e1a69e6960f72c8 | [
"MIT"
] | 1 | 2019-12-19T06:51:20.000Z | 2019-12-19T06:51:20.000Z | Train/Sheet/Sheet-B/extra/extra 01 - 15/09.[Decoding].cpp | mohamedGamalAbuGalala/Practice | 2a5fa3bdaf995d0c304f04231e1a69e6960f72c8 | [
"MIT"
] | null | null | null | Train/Sheet/Sheet-B/extra/extra 01 - 15/09.[Decoding].cpp | mohamedGamalAbuGalala/Practice | 2a5fa3bdaf995d0c304f04231e1a69e6960f72c8 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
void fl() {
#ifndef ONLINE_JUDGE
freopen("in.txt", "r", stdin);
// freopen("ot.txt", "w", stdout);
#else
// freopen("jumping.in", "r", stdin); // HERE
#endif
}
////////////////////////////////////////////////////////////////////////////////////////////////
// snippet :: ... | 20.083333 | 96 | 0.410788 | mohamedGamalAbuGalala |
0173df37d6ce5df5d2b00719a7859743b786c0f8 | 2,393 | cpp | C++ | src/tibb/src/Modules/UI/BlackBerry/ProgressBar/TiUIProgressBarProxy.cpp | ssaracut/titanium_mobile_blackberry | 952a8100086dcc625584e33abc2dc03340cbb219 | [
"Apache-2.0"
] | 3 | 2015-03-07T15:41:18.000Z | 2015-11-05T05:07:45.000Z | src/tibb/src/Modules/UI/BlackBerry/ProgressBar/TiUIProgressBarProxy.cpp | ssaracut/titanium_mobile_blackberry | 952a8100086dcc625584e33abc2dc03340cbb219 | [
"Apache-2.0"
] | 1 | 2015-04-12T11:50:33.000Z | 2015-04-12T21:13:19.000Z | src/tibb/src/Modules/UI/BlackBerry/ProgressBar/TiUIProgressBarProxy.cpp | ssaracut/titanium_mobile_blackberry | 952a8100086dcc625584e33abc2dc03340cbb219 | [
"Apache-2.0"
] | 5 | 2015-01-13T17:14:41.000Z | 2015-05-25T16:54:26.000Z | /**
* Appcelerator Titanium Mobile
* Copyright (c) 2014 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
#include "TiUIProgressBarProxy.h"
#include "TiUIProgressBar.h"
namespace TiUI {
TiUI... | 22.364486 | 84 | 0.754283 | ssaracut |
01749a8cb48abff3e178b53309c6b048c7c420eb | 10,913 | cpp | C++ | test/quantile_bai_unittest.cpp | gostevehoward/quantile-cs | 12bad0fe9843e1a7263f667f95933c3d28825d87 | [
"MIT"
] | 1 | 2019-11-27T18:40:38.000Z | 2019-11-27T18:40:38.000Z | test/quantile_bai_unittest.cpp | gostevehoward/quantilecs | 12bad0fe9843e1a7263f667f95933c3d28825d87 | [
"MIT"
] | null | null | null | test/quantile_bai_unittest.cpp | gostevehoward/quantilecs | 12bad0fe9843e1a7263f667f95933c3d28825d87 | [
"MIT"
] | null | null | null | #include <random>
#include "quantile_bai.h"
#include "gtest/gtest.h"
namespace {
TEST(BanditModelTest, Bernoulli) {
std::mt19937_64 rng(123);
auto model = BanditModel::NITHBernoulli(2, .5, .1);
double draw = model.sample_arm(0, rng);
EXPECT_TRUE(draw == 0.0 || draw == 1.0);
}
TEST(BanditModelTest, Uniform)... | 30.313889 | 78 | 0.652525 | gostevehoward |
017749506f9ca6e648e0c0787bacc0178bd9e649 | 14,148 | cpp | C++ | opt/nomad/src/Algos/Mads/Poll.cpp | scikit-quant/scikit-quant | 397ab0b6287f3815e9bcadbfadbe200edbee5a23 | [
"BSD-3-Clause-LBNL"
] | 31 | 2019-02-05T16:39:18.000Z | 2022-03-11T23:14:11.000Z | opt/nomad/src/Algos/Mads/Poll.cpp | scikit-quant/scikit-quant | 397ab0b6287f3815e9bcadbfadbe200edbee5a23 | [
"BSD-3-Clause-LBNL"
] | 20 | 2020-04-13T09:22:53.000Z | 2021-08-16T16:14:13.000Z | opt/nomad/src/Algos/Mads/Poll.cpp | scikit-quant/scikit-quant | 397ab0b6287f3815e9bcadbfadbe200edbee5a23 | [
"BSD-3-Clause-LBNL"
] | 6 | 2020-04-21T17:43:47.000Z | 2021-03-10T04:12:34.000Z | /*---------------------------------------------------------------------------------*/
/* NOMAD - Nonlinear Optimization by Mesh Adaptive Direct Search - */
/* */
/* NOMAD - Version 4 has been created by ... | 39.741573 | 147 | 0.556192 | scikit-quant |
0177b1a5e739a0eef4cbf6ab6f8e3cbcd699183c | 4,671 | cpp | C++ | tests/filemanager/copy.cpp | sugawaray/filemanager | 3dcb908d4c1e0c36de0c60e1b2e1291eec986cb1 | [
"MIT"
] | null | null | null | tests/filemanager/copy.cpp | sugawaray/filemanager | 3dcb908d4c1e0c36de0c60e1b2e1291eec986cb1 | [
"MIT"
] | null | null | null | tests/filemanager/copy.cpp | sugawaray/filemanager | 3dcb908d4c1e0c36de0c60e1b2e1291eec986cb1 | [
"MIT"
] | null | null | null | #include <iostream>
#include <nomagic.h>
#include "move_copy_test.h"
#include "copy.h"
using fm::filemanager::test::Copy_test;
START_TEST(should_copy_a_file_to_a_file)
{
Copy_test test;
test.test_should_move_or_copy_a_file_to_a_file();
}
END_TEST
START_TEST(should_copy_a_file_to_a_filepath)
{
Copy_test test;
tes... | 24.97861 | 72 | 0.863413 | sugawaray |
018e76deee8bdabaf65f1b68d555a51946186eaa | 1,508 | cpp | C++ | paxos/acceptor.cpp | plsmaop/SLOG | bcf5775fdb756d73e56265835020517f6f7b79a7 | [
"MIT"
] | 26 | 2020-01-31T18:12:44.000Z | 2022-02-07T01:46:07.000Z | paxos/acceptor.cpp | plsmaop/SLOG | bcf5775fdb756d73e56265835020517f6f7b79a7 | [
"MIT"
] | 17 | 2020-01-30T20:40:35.000Z | 2021-12-22T18:43:21.000Z | paxos/acceptor.cpp | plsmaop/SLOG | bcf5775fdb756d73e56265835020517f6f7b79a7 | [
"MIT"
] | 6 | 2019-12-24T15:30:45.000Z | 2021-07-06T19:47:30.000Z | #include "paxos/acceptor.h"
#include "paxos/simulated_multi_paxos.h"
namespace slog {
using internal::Envelope;
using internal::Request;
using internal::Response;
Acceptor::Acceptor(SimulatedMultiPaxos& sender) : sender_(sender), ballot_(0) {}
void Acceptor::HandleRequest(const internal::Envelope& req) {
switch ... | 32.085106 | 105 | 0.732095 | plsmaop |
018f628d208b152da9e47284a479d912d22f2f03 | 453 | cpp | C++ | src/platform.cpp | matias310396/sonic | 0bfbdd02ad1f1bff04b74b913199b9b7bc45c343 | [
"MIT"
] | null | null | null | src/platform.cpp | matias310396/sonic | 0bfbdd02ad1f1bff04b74b913199b9b7bc45c343 | [
"MIT"
] | null | null | null | src/platform.cpp | matias310396/sonic | 0bfbdd02ad1f1bff04b74b913199b9b7bc45c343 | [
"MIT"
] | null | null | null | #include "../include/platform.hpp"
using namespace engine;
void Platform::on_event(GameEvent game_event){
std::string event_name = game_event.game_event_name;
Image* platform_image = dynamic_cast<Image*>(images[0]);
if(event_name == "MOVE_LEFT" && !GameObject::on_limit_of_level){
position.first += 10;
... | 23.842105 | 73 | 0.706402 | matias310396 |
019228dfe8b5d4b0bb0029b7bcac44bbf217b8af | 893 | cpp | C++ | 1237/src.cpp | sabingoyek/uva-online-judge | 78be271d440ff3b9b1b038fb83343ba46ea60843 | [
"MIT"
] | null | null | null | 1237/src.cpp | sabingoyek/uva-online-judge | 78be271d440ff3b9b1b038fb83343ba46ea60843 | [
"MIT"
] | null | null | null | 1237/src.cpp | sabingoyek/uva-online-judge | 78be271d440ff3b9b1b038fb83343ba46ea60843 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
int T;
scanf("%d", &T);
while(T--){
int D, Q, L, H;
string M;
vector<pair<string, pair<int, int>>> db;
scanf("%d", &D);
while(D--){
cin >> M >> L >> H;
db.push_back(make_pair(M, make_pair(L,H)));
}
/*fo... | 16.537037 | 91 | 0.469205 | sabingoyek |
0194c378e1a5adc0f8e2c33bc437e8560f28e74b | 314 | hpp | C++ | include/chip8/memory/stack.hpp | lance21/chip8 | 6797755845b73ee1a6be5c7b3970cb1c271a114b | [
"MIT"
] | null | null | null | include/chip8/memory/stack.hpp | lance21/chip8 | 6797755845b73ee1a6be5c7b3970cb1c271a114b | [
"MIT"
] | null | null | null | include/chip8/memory/stack.hpp | lance21/chip8 | 6797755845b73ee1a6be5c7b3970cb1c271a114b | [
"MIT"
] | null | null | null | #ifndef STACK_HPP
#define STACK_HPP
#include <cstdint>
namespace chip8 {
namespace memory {
class Stack {
private:
uint8_t stack_pointer_;
uint16_t stack_[16];
public:
Stack();
uint8_t getStackPointer() const;
uint16_t pop();
void push( const uint16_t return_address);
};
}
}
#endif
| 12.076923 | 46 | 0.687898 | lance21 |
019585181381bdc8accf87cc69e80e64ac949e34 | 1,069 | hpp | C++ | Lib/Chip/ATSAM3N0B.hpp | operativeF/Kvasir | dfbcbdc9993d326ef8cc73d99129e78459c561fd | [
"Apache-2.0"
] | null | null | null | Lib/Chip/ATSAM3N0B.hpp | operativeF/Kvasir | dfbcbdc9993d326ef8cc73d99129e78459c561fd | [
"Apache-2.0"
] | null | null | null | Lib/Chip/ATSAM3N0B.hpp | operativeF/Kvasir | dfbcbdc9993d326ef8cc73d99129e78459c561fd | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <cstdint>
#include <Chip/CM3/Atmel/ATSAM3N0B/SPI.hpp>
#include <Chip/CM3/Atmel/ATSAM3N0B/TC0.hpp>
#include <Chip/CM3/Atmel/ATSAM3N0B/TWI0.hpp>
#include <Chip/CM3/Atmel/ATSAM3N0B/TWI1.hpp>
#include <Chip/CM3/Atmel/ATSAM3N0B/PWM.hpp>
#include <Chip/CM3/Atmel/ATSAM3N0B/USART0.hpp>
#include <Chip/CM3... | 41.115385 | 46 | 0.776427 | operativeF |
01a1e24acf88e53592372de597bff526883fba94 | 15,802 | hpp | C++ | SDK/ARKSurvivalEvolved_Deathworm_AnimBlueprint_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_Deathworm_AnimBlueprint_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_Deathworm_AnimBlueprint_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_Deathworm_AnimBlueprint_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//-------------------------------------------------... | 121.553846 | 208 | 0.611378 | 2bite |
01a80cbbc25aa7a4dd190bfaf3af3a6b5f94bf54 | 5,543 | cpp | C++ | test_apps/STM32Cube_FW_F4_V1.24.0/Projects/STM32F429I-Discovery/Demonstrations/TouchGFX/Gui/gui/src/live_data_display_screen/CityInfo.cpp | hwiwonl/ACES | 9b9a6766a177c531384b863854459a7e016dbdcc | [
"NCSA"
] | null | null | null | test_apps/STM32Cube_FW_F4_V1.24.0/Projects/STM32F429I-Discovery/Demonstrations/TouchGFX/Gui/gui/src/live_data_display_screen/CityInfo.cpp | hwiwonl/ACES | 9b9a6766a177c531384b863854459a7e016dbdcc | [
"NCSA"
] | null | null | null | test_apps/STM32Cube_FW_F4_V1.24.0/Projects/STM32F429I-Discovery/Demonstrations/TouchGFX/Gui/gui/src/live_data_display_screen/CityInfo.cpp | hwiwonl/ACES | 9b9a6766a177c531384b863854459a7e016dbdcc | [
"NCSA"
] | null | null | null | /**
******************************************************************************
* This file is part of the TouchGFX 4.10.0 distribution.
*
* <h2><center>© Copyright (c) 2018 STMicroelectronics.
* All rights reserved.</center></h2>
*
* This software component is licensed by ST under Ultimate Libert... | 35.305732 | 160 | 0.707379 | hwiwonl |
01aa903c12681817cb94b6eee532b1dd17fd3171 | 660 | cpp | C++ | test/testRandom.cpp | htran118/MD-MS-CG | 80a3104101348d1c599ecc0a1e08aec855fc70a9 | [
"MIT"
] | null | null | null | test/testRandom.cpp | htran118/MD-MS-CG | 80a3104101348d1c599ecc0a1e08aec855fc70a9 | [
"MIT"
] | null | null | null | test/testRandom.cpp | htran118/MD-MS-CG | 80a3104101348d1c599ecc0a1e08aec855fc70a9 | [
"MIT"
] | null | null | null | #include <iostream>
#include <random>
#include <cmath>
using namespace std;
int NUMROL = 10000;
int NUMBIN = 100;
int BINSZE = 0.1;
int main() {
default_random_engine ENGINE;
normal_distribution<float> norm(0.0, 1.0);
int rand[NUMBIN], rSqr[NUMBIN];
float rVal, rSqT = 0;
for(int i = 0; i < NUMBIN; ++i)
... | 20 | 64 | 0.566667 | htran118 |
01ab1caa9d18c97066657389a92ab8e27e3a9e95 | 1,282 | cpp | C++ | Nidrobb/Unitests/ToolboxTest.cpp | elias-hanna/Nidrobb | 9de4b1bd63384a7c5969537be594f3248fd5c41b | [
"MIT"
] | null | null | null | Nidrobb/Unitests/ToolboxTest.cpp | elias-hanna/Nidrobb | 9de4b1bd63384a7c5969537be594f3248fd5c41b | [
"MIT"
] | null | null | null | Nidrobb/Unitests/ToolboxTest.cpp | elias-hanna/Nidrobb | 9de4b1bd63384a7c5969537be594f3248fd5c41b | [
"MIT"
] | null | null | null | #define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE ToolboxTest
#include <boost/test/unit_test.hpp>
#include "../Toolbox.hpp"
BOOST_AUTO_TEST_SUITE (CreateRect)
BOOST_AUTO_TEST_CASE (Positive)
{
int x = 10, y=20, w = 30, h=40;
SDL_Rect* r = createRect(x,y,w,h);
BOOST_REQUIRE(r != nullptr); //Bloquant
BOOST_REQ... | 19.424242 | 73 | 0.652886 | elias-hanna |
01aca3435e599ebfcee6deb9b9daeeae63e33674 | 20,234 | cpp | C++ | test/rocprim/test_block_reduce.cpp | saadrahim/rocPRIM | 4c8bc629b298f33e0c0df07b61f9b30503a84f27 | [
"MIT"
] | null | null | null | test/rocprim/test_block_reduce.cpp | saadrahim/rocPRIM | 4c8bc629b298f33e0c0df07b61f9b30503a84f27 | [
"MIT"
] | null | null | null | test/rocprim/test_block_reduce.cpp | saadrahim/rocPRIM | 4c8bc629b298f33e0c0df07b61f9b30503a84f27 | [
"MIT"
] | null | null | null | // MIT License
//
// Copyright (c) 2017 Advanced Micro Devices, Inc. All rights reserved.
//
// 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 limitati... | 34.64726 | 105 | 0.661708 | saadrahim |
01acc91ff0f87252de65216ec877bd878fbbb682 | 913 | cpp | C++ | src/IsoGame/Play/Rooms/ShooterRoom.cpp | Harry09/IsoGame | 7320bee14197b66a96f432d4071537b3bb892c13 | [
"MIT"
] | null | null | null | src/IsoGame/Play/Rooms/ShooterRoom.cpp | Harry09/IsoGame | 7320bee14197b66a96f432d4071537b3bb892c13 | [
"MIT"
] | null | null | null | src/IsoGame/Play/Rooms/ShooterRoom.cpp | Harry09/IsoGame | 7320bee14197b66a96f432d4071537b3bb892c13 | [
"MIT"
] | null | null | null | #include "ShooterRoom.h"
#include <Common\Random.h>
#include <Play\Objects\Entities\Enemies\Shooter.h>
#include <Play\Objects\Rock.h>
ShooterRoom::ShooterRoom(Map *parent, const sf::Vector2i &pos)
: Room(parent, pos)
{
m_isRoomClear = false;
m_roomType = Room::ENEMY;
auto playZone = GetPlayZone();
Random rand... | 21.738095 | 77 | 0.67908 | Harry09 |
01af6663d4e513c5d9e6eb067655257b87986187 | 2,282 | cpp | C++ | LeetCodeCPP/212. Word Search II/main.cpp | 18600130137/leetcode | fd2dc72c0b85da50269732f0fcf91326c4787d3a | [
"Apache-2.0"
] | 1 | 2019-03-29T03:33:56.000Z | 2019-03-29T03:33:56.000Z | LeetCodeCPP/212. Word Search II/main.cpp | 18600130137/leetcode | fd2dc72c0b85da50269732f0fcf91326c4787d3a | [
"Apache-2.0"
] | null | null | null | LeetCodeCPP/212. Word Search II/main.cpp | 18600130137/leetcode | fd2dc72c0b85da50269732f0fcf91326c4787d3a | [
"Apache-2.0"
] | null | null | null | //
// main.cpp
// 212. Word Search II
//
// Created by admin on 2019/6/13.
// Copyright © 2019年 liu. All rights reserved.
//
#include <iostream>
#include <vector>
#include <string>
using namespace std;
class TrieNode{
public:
TrieNode *next[26];
string word;
TrieNode(){
word="";
m... | 23.525773 | 107 | 0.468449 | 18600130137 |
01af913d446d653333760ee24a0a8a473afc85dc | 3,400 | hpp | C++ | include/codegen/include/GlobalNamespace/PlayerHeightSettingsController.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/GlobalNamespace/PlayerHeightSettingsController.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/GlobalNamespace/PlayerHeightSettingsController.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: UnityEngine.MonoBehaviour
#include "UnityEngine/MonoBeh... | 35.051546 | 111 | 0.726471 | Futuremappermydud |
01afe0535cfe3ca9df69abddfc03bbfe3764613f | 7,739 | cpp | C++ | tests/src/types/src/types_test.cpp | hymanat/Karabiner-Elements | af955113ee0a5990ba52a467cad43a9f590b2e79 | [
"Unlicense"
] | 1 | 2021-11-09T10:28:50.000Z | 2021-11-09T10:28:50.000Z | tests/src/types/src/types_test.cpp | bland328/Karabiner-Elements | 328df25e09837cd29023def17d552830bf6cdba2 | [
"Unlicense"
] | null | null | null | tests/src/types/src/types_test.cpp | bland328/Karabiner-Elements | 328df25e09837cd29023def17d552830bf6cdba2 | [
"Unlicense"
] | null | null | null | #include <catch2/catch.hpp>
#include "types.hpp"
TEST_CASE("make_key_code") {
REQUIRE(krbn::make_key_code("spacebar") == krbn::key_code::spacebar);
REQUIRE(krbn::make_key_code("unknown") == std::nullopt);
REQUIRE(krbn::make_key_code_name(krbn::key_code::spacebar) == std::string("spacebar"));
REQUIRE(krbn::mak... | 46.90303 | 159 | 0.70513 | hymanat |
01b1224e96bd6bea7444be3a10d1e36c64bd2b44 | 168 | hpp | C++ | lib/language_framework.hpp | s9rA16Bf4/language_framework | 231b3a615be88f080329c98bfc46502e9d3777e6 | [
"MIT"
] | null | null | null | lib/language_framework.hpp | s9rA16Bf4/language_framework | 231b3a615be88f080329c98bfc46502e9d3777e6 | [
"MIT"
] | null | null | null | lib/language_framework.hpp | s9rA16Bf4/language_framework | 231b3a615be88f080329c98bfc46502e9d3777e6 | [
"MIT"
] | null | null | null | #ifndef MAIN_HPP
#define MAIN_HPP 1
#define FRAMEWORK_VERSION "1.0"
#include "custom.hpp"
// Base headers
#include "interpreter.hpp"
#include "function.hpp"
#endif
| 12.923077 | 31 | 0.744048 | s9rA16Bf4 |
01ba0c69d7e84f272c22ff4df5725eef1e7bee88 | 346 | hpp | C++ | approach_boost_serialization/bus_group_ser.hpp | noahleft/serialization | 731ebcee68339960308a86b25cf3c11ba815043e | [
"MIT"
] | null | null | null | approach_boost_serialization/bus_group_ser.hpp | noahleft/serialization | 731ebcee68339960308a86b25cf3c11ba815043e | [
"MIT"
] | null | null | null | approach_boost_serialization/bus_group_ser.hpp | noahleft/serialization | 731ebcee68339960308a86b25cf3c11ba815043e | [
"MIT"
] | null | null | null |
#ifndef BUS_GROUP_SER_HPP
#define BUS_GROUP_SER_HPP
#include "bus_group.hpp"
#include "bus_route_ser.hpp"
#include <boost/serialization/vector.hpp>
namespace boost {
namespace serialization {
template<class Archive>
void serialize(Archive & ar, bus_group & obj, const unsigned int version) {
ar & obj.... | 18.210526 | 79 | 0.725434 | noahleft |
01cba97435271210885bf306469f7fe834e61162 | 1,133 | hpp | C++ | modules/services/pathfinder_cpp/bld/fsa.hpp | memristor/mep2 | bc5cddacba3d740f791f3454b8cb51bda83ce202 | [
"MIT"
] | 5 | 2018-11-27T15:15:00.000Z | 2022-02-10T21:44:13.000Z | modules/services/pathfinder_cpp/fsa.hpp | memristor/mep2 | bc5cddacba3d740f791f3454b8cb51bda83ce202 | [
"MIT"
] | 2 | 2018-10-20T15:48:40.000Z | 2018-11-20T05:11:33.000Z | modules/services/pathfinder_cpp/fsa.hpp | memristor/mep2 | bc5cddacba3d740f791f3454b8cb51bda83ce202 | [
"MIT"
] | 1 | 2020-02-07T12:44:47.000Z | 2020-02-07T12:44:47.000Z | #ifndef FSA_H
#define FSA_H
#include <cstring>
#include <iostream>
template <class T, int N = 100>
class FixedSizeAllocator
{
private:
struct FSAElem {
T userElement;
FSAElem *pNext;
};
FSAElem *m_pFirstFree;
int m_pMemory[(sizeof(FSAElem) * N) / sizeof(int) + 1];
public:
FixedSizeAllocator(bool clear_m... | 21.377358 | 86 | 0.633716 | memristor |
01d47a71ae639e745b34f274d99721d93d2b7a23 | 2,900 | cpp | C++ | Queue/Deque_Using_Circular_Array.cpp | susantabiswas/placementPrep | 22a7574206ddc63eba89517f7b68a3d2f4d467f5 | [
"MIT"
] | 19 | 2018-12-02T05:59:44.000Z | 2021-07-24T14:11:54.000Z | Queue/Deque_Using_Circular_Array.cpp | susantabiswas/placementPrep | 22a7574206ddc63eba89517f7b68a3d2f4d467f5 | [
"MIT"
] | null | null | null | Queue/Deque_Using_Circular_Array.cpp | susantabiswas/placementPrep | 22a7574206ddc63eba89517f7b68a3d2f4d467f5 | [
"MIT"
] | 13 | 2019-04-25T16:20:00.000Z | 2021-09-06T19:50:04.000Z | //Circular linked list using Array
#include<iostream>
#include<vector>
using namespace std;
struct CLL{
vector<int> arr;
int rear = -1;
int beg = -1;
int n = 0;
CLL(int n){
arr.resize(n);
this->n = n;
}
};
bool isFull(CLL* head){
if( head->beg == head->rear+1 ||
head->beg == 0 && head->rear == head->n-1)... | 20.714286 | 76 | 0.574828 | susantabiswas |
01dcf6d7a7b9d9eb39557865ab2878023d65ec3a | 1,931 | cpp | C++ | src/Engine/UI/ListGUI.cpp | BclEx/h3ml | acfcccbdadcffa7b2c1794393a26359ad7c8479b | [
"MIT"
] | null | null | null | src/Engine/UI/ListGUI.cpp | BclEx/h3ml | acfcccbdadcffa7b2c1794393a26359ad7c8479b | [
"MIT"
] | null | null | null | src/Engine/UI/ListGUI.cpp | BclEx/h3ml | acfcccbdadcffa7b2c1794393a26359ad7c8479b | [
"MIT"
] | null | null | null | #include "ListGUILocal.h"
void ListGUILocal::StateChanged()
{
if (!_stateUpdates)
return;
int i;
for (i = 0; i < Num(); i++)
_gui->SetStateString(va("%s_item_%i", _name.c_str(), i), (*this)[i].c_str());
for (i = Num(); i < _water; i++)
_gui->SetStateString(va("%s_item_%i", m_name.c_str(), i), "");
_water = ... | 20.542553 | 94 | 0.640601 | BclEx |
01dea22851ce7efe9a2305c72028f7b12edadc08 | 5,978 | hpp | C++ | src/util/raft/node.hpp | vipinsun/opencbdc-tx | 724f307548f92676423e98d7f2c1bfc2c66f79ef | [
"MIT"
] | 1 | 2022-02-07T22:36:36.000Z | 2022-02-07T22:36:36.000Z | src/util/raft/node.hpp | vipinsun/opencbdc-tx | 724f307548f92676423e98d7f2c1bfc2c66f79ef | [
"MIT"
] | null | null | null | src/util/raft/node.hpp | vipinsun/opencbdc-tx | 724f307548f92676423e98d7f2c1bfc2c66f79ef | [
"MIT"
] | null | null | null | // Copyright (c) 2021 MIT Digital Currency Initiative,
// Federal Reserve Bank of Boston
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef OPENCBDC_TX_SRC_RAFT_NODE_H_
#define OPENCBDC_TX_SRC_RAFT_NODE_H... | 43.007194 | 84 | 0.620442 | vipinsun |
01e311d5e32d8ad2ab4cf442fdd81a5f30d2f25c | 781 | cpp | C++ | POINTMEE.cpp | Himanshu1801/codechef | 100785c10f49e5200e82e68f10d7a6213b31b821 | [
"Apache-2.0"
] | null | null | null | POINTMEE.cpp | Himanshu1801/codechef | 100785c10f49e5200e82e68f10d7a6213b31b821 | [
"Apache-2.0"
] | null | null | null | POINTMEE.cpp | Himanshu1801/codechef | 100785c10f49e5200e82e68f10d7a6213b31b821 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin>>t;
while(t--)
{
int n;
int x[n],y[n];
int count=0,k,a,b;
cin>>n;
for (int i = 0; i < n; i++)
{
cin>>x[i];
cin>>y[i];
}
for (int i = 0; i < n; i++)
{
if (/* condition */)
... | 16.617021 | 36 | 0.289373 | Himanshu1801 |
5434c523ba9205b5e96f81960fd54474a4ec1f6d | 4,893 | cpp | C++ | cpp/godot-cpp/src/gen/VisualScriptPropertyGet.cpp | GDNative-Gradle/proof-of-concept | 162f467430760cf959f68f1638adc663fd05c5fd | [
"MIT"
] | 1 | 2021-03-16T09:51:00.000Z | 2021-03-16T09:51:00.000Z | cpp/godot-cpp/src/gen/VisualScriptPropertyGet.cpp | GDNative-Gradle/proof-of-concept | 162f467430760cf959f68f1638adc663fd05c5fd | [
"MIT"
] | null | null | null | cpp/godot-cpp/src/gen/VisualScriptPropertyGet.cpp | GDNative-Gradle/proof-of-concept | 162f467430760cf959f68f1638adc663fd05c5fd | [
"MIT"
] | null | null | null | #include "VisualScriptPropertyGet.hpp"
#include <core/GodotGlobal.hpp>
#include <core/CoreTypes.hpp>
#include <core/Ref.hpp>
#include <core/Godot.hpp>
#include "__icalls.hpp"
namespace godot {
VisualScriptPropertyGet::___method_bindings VisualScriptPropertyGet::___mb = {};
void VisualScriptPropertyGet::___ini... | 46.160377 | 227 | 0.816677 | GDNative-Gradle |
54351f4440753e19b57f08ecd4efe7a84ee98cb3 | 1,011 | cpp | C++ | kakao_test_2017/A.cpp | sjnov11/Coding-Tests | 8f98723f842357ee771f3842d46211bc9d92ff29 | [
"MIT"
] | null | null | null | kakao_test_2017/A.cpp | sjnov11/Coding-Tests | 8f98723f842357ee771f3842d46211bc9d92ff29 | [
"MIT"
] | null | null | null | kakao_test_2017/A.cpp | sjnov11/Coding-Tests | 8f98723f842357ee771f3842d46211bc9d92ff29 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstring>
using namespace std;
void go(int n, int arr1[], int arr2[]) {
int map1[16][16], map2[16][16];
memset(map1, 0, sizeof(int) * 16 * 16);
memset(map2, 0, sizeof(int) * 16 * 16);
for (int i = 0; i < n; i++) {
cout << "row " << i << endl;
for (int j = 0; j < n; j++) {
cout... | 21.0625 | 67 | 0.431256 | sjnov11 |
54426de9ef2b728b2868e7a5316d38c2af5cac61 | 974 | cpp | C++ | Engine/Source/Runtime/EcsFramework/Component/Camera/Old/OrthographicCamera.cpp | hebohang/HEngine | 82f40797a7cfabaa11aeeb7797fba70551d18017 | [
"MIT"
] | null | null | null | Engine/Source/Runtime/EcsFramework/Component/Camera/Old/OrthographicCamera.cpp | hebohang/HEngine | 82f40797a7cfabaa11aeeb7797fba70551d18017 | [
"MIT"
] | null | null | null | Engine/Source/Runtime/EcsFramework/Component/Camera/Old/OrthographicCamera.cpp | hebohang/HEngine | 82f40797a7cfabaa11aeeb7797fba70551d18017 | [
"MIT"
] | null | null | null | #include "hepch.h"
#include "OrthographicCamera.h"
#include <glm/gtc/matrix_transform.hpp>
namespace HEngine
{
OrthographicCamera::OrthographicCamera(float left, float right, float bottom, float top)
: mProjectionMatrix(glm::ortho(left, right, bottom, top, -1.0f, 1.0f)), mViewMatrix(1.0f)
{
mV... | 34.785714 | 97 | 0.678645 | hebohang |
5444a52093a712adccddf081f06a8f4564d37db6 | 12,633 | cpp | C++ | FrameSkippingFilter.cpp | CSIR-RTVC/FrameSkippingFilter | a907161384b0bbe670dabcf2b78ad57bd348ec1b | [
"BSD-3-Clause"
] | null | null | null | FrameSkippingFilter.cpp | CSIR-RTVC/FrameSkippingFilter | a907161384b0bbe670dabcf2b78ad57bd348ec1b | [
"BSD-3-Clause"
] | null | null | null | FrameSkippingFilter.cpp | CSIR-RTVC/FrameSkippingFilter | a907161384b0bbe670dabcf2b78ad57bd348ec1b | [
"BSD-3-Clause"
] | 1 | 2021-01-08T18:26:49.000Z | 2021-01-08T18:26:49.000Z | /** @file
MODULE : FrameSkippingFilter
FILE NAME : FrameSkippingFilter.cpp
DESCRIPTION : This filter skips a specified number of frames depending on the parameter denoted by "skipFrame"
LICENSE: Software License Agreement (BSD License)
Copyright (c) 2014, CSIR
All rights reserved... | 27.949115 | 204 | 0.675849 | CSIR-RTVC |
544516bca1bac9c8226de0bed344538bd0577e45 | 5,681 | cpp | C++ | Dot_Engine/src/Dot/LevelEditor/LevelEditor.cpp | Bodka0904/Dot_Engine | 1db28c56eeecefaed8aa3f1d87932765d5b16dd4 | [
"Apache-2.0"
] | null | null | null | Dot_Engine/src/Dot/LevelEditor/LevelEditor.cpp | Bodka0904/Dot_Engine | 1db28c56eeecefaed8aa3f1d87932765d5b16dd4 | [
"Apache-2.0"
] | 7 | 2019-06-04T06:28:21.000Z | 2019-06-05T05:49:55.000Z | Dot_Engine/src/Dot/LevelEditor/LevelEditor.cpp | Bodka0904/Dot_Engine | 1db28c56eeecefaed8aa3f1d87932765d5b16dd4 | [
"Apache-2.0"
] | null | null | null | #include "stdafx.h"
#include "LevelEditor.h"
#include "Dot/Renderer/RenderSystem.h"
#include "Dot/Core/Input.h"
#include "Dot/Core/AssetManager.h"
namespace Dot {
LevelEditor::LevelEditor()
{
m_Default = std::make_shared<DefaultUI>();
m_TerrainEditor = std::make_shared<TerrainEditorUI>();
m_DefaultID = GuiApp... | 45.448 | 219 | 0.655694 | Bodka0904 |
5445d64b96580e2ea8b77dda8289c0189275a2f2 | 3,615 | cpp | C++ | Arduino/oneM2M/examples/ThingPlug_oneM2M_SDK/src/SRA/GetTime.cpp | SKT-ThingPlug/thingplug-device-sdk-C | fcb12ee172265f882787cc993bd6c5bbe9d876cf | [
"Apache-2.0"
] | 9 | 2017-06-14T11:19:09.000Z | 2020-04-11T08:01:06.000Z | Arduino/oneM2M/examples/ThingPlug_oneM2M_SDK/src/SRA/GetTime.cpp | SKT-ThingPlug/thingplug-device-sdk-C | fcb12ee172265f882787cc993bd6c5bbe9d876cf | [
"Apache-2.0"
] | null | null | null | Arduino/oneM2M/examples/ThingPlug_oneM2M_SDK/src/SRA/GetTime.cpp | SKT-ThingPlug/thingplug-device-sdk-C | fcb12ee172265f882787cc993bd6c5bbe9d876cf | [
"Apache-2.0"
] | 15 | 2017-04-17T00:17:20.000Z | 2021-06-26T04:12:39.000Z | /**
* @file getTime.cpp
*
* @brief Arduino get Time API
*
* Copyright (C) 2016. SPTek,All Rights Reserved.
* Written 2016,by SPTek
*/
#include <Arduino.h>
#include <SPI.h>
#include <Ethernet.h>
#include <EthernetUdp.h>
#include <TimeLib.h>
#include "GetTime.h"
EthernetUDP Udp;
unsigned int localPort = 8888; ... | 26.386861 | 84 | 0.636515 | SKT-ThingPlug |
544883955e804df11c3ec0c3d75b36934ff48805 | 3,592 | cpp | C++ | modules/voting/voting.cpp | Clyde-Beep/sporks-test | c760d68c23a12dcc5c1a48ee0fc5e26c344f5c07 | [
"Apache-2.0"
] | null | null | null | modules/voting/voting.cpp | Clyde-Beep/sporks-test | c760d68c23a12dcc5c1a48ee0fc5e26c344f5c07 | [
"Apache-2.0"
] | null | null | null | modules/voting/voting.cpp | Clyde-Beep/sporks-test | c760d68c23a12dcc5c1a48ee0fc5e26c344f5c07 | [
"Apache-2.0"
] | null | null | null | /************************************************************************************
*
* Sporks, the learning, scriptable Discord bot!
*
* Copyright 2019 Craig Edwards <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with t... | 35.564356 | 146 | 0.639477 | Clyde-Beep |
544b77d96f7fff2b482d1abc1c2720a9f259ee1c | 202 | cpp | C++ | qtglgame/mainwindow.cpp | Darkness-ua/cube-labyrinth-game | 3b0b8971e20dfb17a63fb21e08c61f5d2b4c85b2 | [
"Unlicense"
] | null | null | null | qtglgame/mainwindow.cpp | Darkness-ua/cube-labyrinth-game | 3b0b8971e20dfb17a63fb21e08c61f5d2b4c85b2 | [
"Unlicense"
] | null | null | null | qtglgame/mainwindow.cpp | Darkness-ua/cube-labyrinth-game | 3b0b8971e20dfb17a63fb21e08c61f5d2b4c85b2 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include "mainwindow.h"
#include "window.h"
using namespace std;
MainWindow::MainWindow()
{
setWindowTitle(tr("QT GLGame"));
setCentralWidget(new Window(this));
}
| 10.631579 | 39 | 0.678218 | Darkness-ua |
544d342b8f19e6d2d4bcc3802decf00f46005130 | 566 | hpp | C++ | cannon/utils/class_forward.hpp | cannontwo/cannon | 4be79f3a6200d1a3cd26c28c8f2250dbdf08f267 | [
"MIT"
] | null | null | null | cannon/utils/class_forward.hpp | cannontwo/cannon | 4be79f3a6200d1a3cd26c28c8f2250dbdf08f267 | [
"MIT"
] | 46 | 2021-01-12T23:03:52.000Z | 2021-10-01T17:29:01.000Z | cannon/utils/class_forward.hpp | cannontwo/cannon | 4be79f3a6200d1a3cd26c28c8f2250dbdf08f267 | [
"MIT"
] | null | null | null | #pragma once
#ifndef CANNON_UTILS_CLASS_FORWARD_H
#define CANNON_UTILS_CLASS_FORWARD_H
/*!
* \file cannon/utils/class_forward.hpp
* \brief File containing class forward macro.
*/
#include <memory>
/*!
* \def CANNON_CLASS_FORWARD
* \brief Macro that forward declares a class, <Class>Ptr, <Class>ConstPtr.
*/
#de... | 25.727273 | 75 | 0.651943 | cannontwo |
544da4164e82942921678c6efe91b09e5dbe30fc | 3,877 | cpp | C++ | c++/src/algo/winmask/seq_masker_ostat_ascii.cpp | OpenHero/gblastn | a0d6c1c288fe916ab85fc637a44cdd6e79ebd2a8 | [
"MIT"
] | 31 | 2016-12-09T04:56:59.000Z | 2021-12-31T17:19:10.000Z | c++/src/algo/winmask/seq_masker_ostat_ascii.cpp | OpenHero/gblastn | a0d6c1c288fe916ab85fc637a44cdd6e79ebd2a8 | [
"MIT"
] | 6 | 2017-03-10T17:25:13.000Z | 2021-09-22T15:49:49.000Z | c++/src/algo/winmask/seq_masker_ostat_ascii.cpp | OpenHero/gblastn | a0d6c1c288fe916ab85fc637a44cdd6e79ebd2a8 | [
"MIT"
] | 20 | 2015-01-04T02:15:17.000Z | 2021-12-03T02:31:43.000Z | /* $Id: seq_masker_ostat_ascii.cpp 183994 2010-02-23 20:20:11Z morgulis $
* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
* This software/database is a "United States... | 36.92381 | 80 | 0.522569 | OpenHero |
54516c9b4b8be7b382d990a59303084266303a4e | 29,680 | cpp | C++ | parser/parser.cpp | rdffg/bcaa_importer | f92e0b39673b5c557540154d4567c53a15adadcd | [
"Apache-2.0"
] | null | null | null | parser/parser.cpp | rdffg/bcaa_importer | f92e0b39673b5c557540154d4567c53a15adadcd | [
"Apache-2.0"
] | 2 | 2019-05-07T22:49:31.000Z | 2021-08-20T20:03:53.000Z | parser/parser.cpp | rdffg/bcaa_importer | f92e0b39673b5c557540154d4567c53a15adadcd | [
"Apache-2.0"
] | null | null | null | #include <string.h>
#include <fstream>
#include "parser.h"
#include "DataAdvice-pimpl.h"
#include "DataAdvice-pskel.h"
#include "model/dataadvice.h"
#include "runtypeparser.h"
#include <QApplication>
#include <QFileInfo>
#include <QDebug>
#include "QDjango.h"
#include "saveerror.h"
Parser::Parser(QString filePath, QOb... | 41.980198 | 138 | 0.519474 | rdffg |
5451aa66c0eca9573d252c8fd44441d31c5295f9 | 1,351 | cpp | C++ | QtChartsDemo/PieChart/widget.cpp | mahuifa/QMDemo | 430844c0167c7374550c6133b38c5e8485f506d6 | [
"Apache-2.0"
] | null | null | null | QtChartsDemo/PieChart/widget.cpp | mahuifa/QMDemo | 430844c0167c7374550c6133b38c5e8485f506d6 | [
"Apache-2.0"
] | null | null | null | QtChartsDemo/PieChart/widget.cpp | mahuifa/QMDemo | 430844c0167c7374550c6133b38c5e8485f506d6 | [
"Apache-2.0"
] | null | null | null | #include "widget.h"
#include <QPieSeries>
QT_CHARTS_USE_NAMESPACE // 引入命名空间,必须放在ui_widget.h前
#include "ui_widget.h"
Widget::Widget(QWidget *parent)
: QWidget(parent)
, ui(new Ui::Widget)
{
ui->setupUi(this);
this->setWindowTitle("QtCharts绘图-饼图Demo");
initChart();
}
Widget::~Widget()
{
dele... | 30.022222 | 100 | 0.571429 | mahuifa |
54523956a8077c86a3c7c26a0225ee22dcaf5ffb | 551 | cpp | C++ | EquilibriumPointInArray/main.cpp | Kapil706/GeeksForGeeks.Cpp- | 3251fe2caf29e485656626d758058bd968e50ae1 | [
"MIT"
] | 1 | 2019-07-31T16:47:51.000Z | 2019-07-31T16:47:51.000Z | EquilibriumPointInArray/main.cpp | Kapil706/GeeksForGeeks.Cpp- | 3251fe2caf29e485656626d758058bd968e50ae1 | [
"MIT"
] | null | null | null | EquilibriumPointInArray/main.cpp | Kapil706/GeeksForGeeks.Cpp- | 3251fe2caf29e485656626d758058bd968e50ae1 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int EqPoint(int arr[],int n){
int sum=0;
for(int i=0;i<n;i++){
sum += arr[i];
}
int l_sum=0;
for(int i=0;i<n;i++){
if(l_sum==sum-arr[i]){
return i+1;
}
l_sum += arr[i];
sum -= arr[i];
}
... | 8.746032 | 42 | 0.395644 | Kapil706 |
5454c944abe007f82b0e3871a02707b18b713dd0 | 457 | hpp | C++ | core/world/filter/Filter.hpp | PlatformerTeam/mad | 8768e3127a0659f1d831dcb6c96ba2bb71c30795 | [
"MIT"
] | 2 | 2022-02-21T08:23:02.000Z | 2022-03-17T10:01:40.000Z | core/world/filter/Filter.hpp | PlatformerTeam/mad | 8768e3127a0659f1d831dcb6c96ba2bb71c30795 | [
"MIT"
] | 43 | 2022-02-21T13:07:08.000Z | 2022-03-22T11:02:16.000Z | core/world/filter/Filter.hpp | PlatformerTeam/mad | 8768e3127a0659f1d831dcb6c96ba2bb71c30795 | [
"MIT"
] | null | null | null | #ifndef MAD_CORE_WORLD_FILTER_FILTER_HPP
#define MAD_CORE_WORLD_FILTER_FILTER_HPP
#include <world/entity/Entity.hpp>
#include <memory>
#include <vector>
namespace mad::core {
struct Filter {
enum class Type {
Id,
True
};
explicit Filter(Type new_type) : type(new... | 15.233333 | 57 | 0.621444 | PlatformerTeam |
5457dd67633d2d84e3c2f7bd495184dbb65e145b | 5,683 | cpp | C++ | addons/support/config.cpp | Krzyciu/A3CS | b7144fc9089b5ded6e37cc1fad79b1c2879521be | [
"MIT"
] | 1 | 2020-06-07T00:45:49.000Z | 2020-06-07T00:45:49.000Z | addons/support/config.cpp | Krzyciu/A3CS | b7144fc9089b5ded6e37cc1fad79b1c2879521be | [
"MIT"
] | 27 | 2020-05-24T11:09:56.000Z | 2020-05-25T12:28:10.000Z | addons/support/config.cpp | Krzyciu/A3CS | b7144fc9089b5ded6e37cc1fad79b1c2879521be | [
"MIT"
] | 2 | 2020-05-31T08:52:45.000Z | 2021-04-16T23:16:37.000Z | #include "script_component.hpp"
class CfgPatches {
class ADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"a3cs_common", "A3_Ui_F"};
author = ECSTRING(main,Author);
authors[] = {"SzwedzikPL"... | 47.756303 | 138 | 0.575224 | Krzyciu |
54625f75629de7448fb5f77430590b478a8f81b1 | 1,469 | cpp | C++ | plugins/d3d9/src/vf/convert/role_visitor.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | plugins/d3d9/src/vf/convert/role_visitor.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | plugins/d3d9/src/vf/convert/role_visitor.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// 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 <sge/d3d9/d3dinclude.hpp>
#include <sge/d3d9/vf/convert/role_visitor.hpp>
#include <sge/re... | 34.162791 | 98 | 0.741321 | cpreh |
5464f3a43593c2dabe316c95b9d88be08176250f | 956 | cpp | C++ | NewFramework/HelitWing.cpp | lhthang1998/Megaman_X3_DirectX | 2c695fefad81c37a7872cc79c78d0de3ff6db9ca | [
"MIT"
] | null | null | null | NewFramework/HelitWing.cpp | lhthang1998/Megaman_X3_DirectX | 2c695fefad81c37a7872cc79c78d0de3ff6db9ca | [
"MIT"
] | null | null | null | NewFramework/HelitWing.cpp | lhthang1998/Megaman_X3_DirectX | 2c695fefad81c37a7872cc79c78d0de3ff6db9ca | [
"MIT"
] | null | null | null | #include "HelitWing.h"
HelitWing::HelitWing() {
}
HelitWing::HelitWing(MObject* _helit)
{
helit = _helit;
dirRight = helit->dirRight;
x = helit->x + OFFSET_X * dirRight;
y = helit->y + OFFSET_Y;
anim = new Animation(5, 0, 4, ANIM_DELAY);
char s[50];
for (int i = 0; i < 5; i++) {
sprintf_s(s, "sprites/helit... | 22.232558 | 152 | 0.670502 | lhthang1998 |
546c2676acfcf8921ae40ab6ae1866e2afd2d448 | 2,512 | cpp | C++ | development/Common/Utility/source/Logger/YLog.cpp | eglowacki/zloty | 9c864ae0beb1ac64137a096795261768b7fc6710 | [
"MIT"
] | null | null | null | development/Common/Utility/source/Logger/YLog.cpp | eglowacki/zloty | 9c864ae0beb1ac64137a096795261768b7fc6710 | [
"MIT"
] | 44 | 2018-06-28T03:01:44.000Z | 2022-03-20T19:53:00.000Z | development/Common/Utility/source/Logger/YLog.cpp | eglowacki/zloty | 9c864ae0beb1ac64137a096795261768b7fc6710 | [
"MIT"
] | null | null | null | #include "Logger/YLog.h"
#include "App/AppUtilities.h"
#include "StringHelpers.h"
#include "Platform/Support.h"
#include "Debugging/DevConfiguration.h"
#include "Time/GameClock.h"
#include <fstream>
#include "YagetVersion.h"
#if YAGET_LOG_ENABLED == 1
YAGET_COMPILE_GLOBAL_SETTINGS("Log Included")
#else
YAGET_... | 28.545455 | 132 | 0.620223 | eglowacki |
5471f48d27aadd1d69d1278ad6cb364b8864f37c | 31,485 | cpp | C++ | SU2-Quantum/Common/src/fem/fem_gauss_jacobi_quadrature.cpp | Agony5757/SU2-Quantum | 16e7708371a597511e1242f3a7581e8c4187f5b2 | [
"Apache-2.0"
] | null | null | null | SU2-Quantum/Common/src/fem/fem_gauss_jacobi_quadrature.cpp | Agony5757/SU2-Quantum | 16e7708371a597511e1242f3a7581e8c4187f5b2 | [
"Apache-2.0"
] | null | null | null | SU2-Quantum/Common/src/fem/fem_gauss_jacobi_quadrature.cpp | Agony5757/SU2-Quantum | 16e7708371a597511e1242f3a7581e8c4187f5b2 | [
"Apache-2.0"
] | 1 | 2021-12-03T06:40:08.000Z | 2021-12-03T06:40:08.000Z | /*!
* \file fem_gauss_jacobi_quadrature.cpp
* \brief Functions to compute the points and weights for the Gauss-Jacobi
quadrature rules. All the functions in this file are based on the
program JACOBI_RULE of John Burkardt.
* \author E. van der Weide
* \version 7.0.6 "Blackbird"
*
* SU2 Project ... | 25.934926 | 117 | 0.512307 | Agony5757 |
547256a644e198048b62b52d9ff88db2097ccb1c | 41,567 | cpp | C++ | src/virtualMachine/VirtualMachine.cpp | Suru-09/Compilation-Tehniques | cbfc5f5a47d786287d7a75e68814de113e3d0375 | [
"MIT"
] | null | null | null | src/virtualMachine/VirtualMachine.cpp | Suru-09/Compilation-Tehniques | cbfc5f5a47d786287d7a75e68814de113e3d0375 | [
"MIT"
] | null | null | null | src/virtualMachine/VirtualMachine.cpp | Suru-09/Compilation-Tehniques | cbfc5f5a47d786287d7a75e68814de113e3d0375 | [
"MIT"
] | null | null | null | #include "VirtualMachine.hpp"
VirtualMachine::~VirtualMachine() {
// delete stack_ptr;
// delete stack_ptr;
}
VirtualMachine::VirtualMachine()
: stack_ptr(nullptr),
stack_after(nullptr),
n_globals(0),
class_name("VirtualMachine")
{
logger = Logger{class_name};
}
void VirtualMachine::push_... | 45.083514 | 139 | 0.371713 | Suru-09 |
547273f87b4a527486b33e099b397f92371445ba | 901 | cpp | C++ | Code/AutomatedTests/HeaderBlockTokenTest.cpp | ProgramMax/maxGif | de509a1512dd56015c7f044bfc177ae662e57694 | [
"BSD-3-Clause"
] | 1 | 2016-11-13T17:50:10.000Z | 2016-11-13T17:50:10.000Z | Code/AutomatedTests/HeaderBlockTokenTest.cpp | ProgramMax/maxGif | de509a1512dd56015c7f044bfc177ae662e57694 | [
"BSD-3-Clause"
] | 23 | 2016-11-13T18:41:42.000Z | 2017-12-27T13:58:07.000Z | Code/AutomatedTests/HeaderBlockTokenTest.cpp | ProgramMax/maxGif | de509a1512dd56015c7f044bfc177ae662e57694 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2016, The maxGif Contributors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <max/Testing/TestSuite.hpp>
#include <maxGif/Parsing/Tokens.hpp>
#include <vector>
int main() {
auto TestSuite = max::Testing::TestSuite( "... | 30.033333 | 91 | 0.711432 | ProgramMax |
5479ccd289b973d5ace94630955cc67960d6fddd | 242 | cpp | C++ | etc/config/src/EXPORT_KEYWORD.cpp | Hower91/Apache-C-Standard-Library-4.2.x | 4d9011d60dbb38b3ff80dcfe54dccd3a4647d9d3 | [
"Apache-2.0"
] | null | null | null | etc/config/src/EXPORT_KEYWORD.cpp | Hower91/Apache-C-Standard-Library-4.2.x | 4d9011d60dbb38b3ff80dcfe54dccd3a4647d9d3 | [
"Apache-2.0"
] | null | null | null | etc/config/src/EXPORT_KEYWORD.cpp | Hower91/Apache-C-Standard-Library-4.2.x | 4d9011d60dbb38b3ff80dcfe54dccd3a4647d9d3 | [
"Apache-2.0"
] | null | null | null | // checking for the export keyword
// NOTE: test EXPORT.cpp links with EXPORT_KEYOWRD.o and expects
// to find a definition of the function template below there
export
template <class T>
T exported_function_template (T t)
{
return t;
}
| 20.166667 | 64 | 0.752066 | Hower91 |
548055c5c726bfd5487e71523b054ca6fe96ffb4 | 768 | hpp | C++ | libs/gui/impl/include/sge/gui/impl/style/spacing.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/gui/impl/include/sge/gui/impl/style/spacing.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/gui/impl/include/sge/gui/impl/style/spacing.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// 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)
#ifndef SGE_GUI_IMPL_STYLE_SPACING_HPP_INCLUDED
#define SGE_GUI_IMPL_STYLE_SPACING_HPP_INCLUDED
#i... | 29.538462 | 99 | 0.740885 | cpreh |
548a79c421b09c5cdcc9aa9c505d904cc625f10e | 2,795 | cpp | C++ | OneCodeTeam/How to create a SDI with Multi-Views in MFC/[C++]-How to create a SDI with Multi-Views in MFC/C++/MFCSDIAppln/MFCSDIApplnView.cpp | zzgchina888/msdn-code-gallery-microsoft | 21cb9b6bc0da3b234c5854ecac449cb3bd261f29 | [
"MIT"
] | 2 | 2022-01-21T01:40:58.000Z | 2022-01-21T01:41:10.000Z | OneCodeTeam/How to create a SDI with Multi-Views in MFC/[C++]-How to create a SDI with Multi-Views in MFC/C++/MFCSDIAppln/MFCSDIApplnView.cpp | zzgchina888/msdn-code-gallery-microsoft | 21cb9b6bc0da3b234c5854ecac449cb3bd261f29 | [
"MIT"
] | 1 | 2022-03-15T04:21:41.000Z | 2022-03-15T04:21:41.000Z | OneCodeTeam/How to create a SDI with Multi-Views in MFC/[C++]-How to create a SDI with Multi-Views in MFC/C++/MFCSDIAppln/MFCSDIApplnView.cpp | zzgchina888/msdn-code-gallery-microsoft | 21cb9b6bc0da3b234c5854ecac449cb3bd261f29 | [
"MIT"
] | null | null | null | /****************************** Module Header ******************************\
* Module Name: MFCSDIApplnView.cpp
* Project: MFCSDIAppln
* Copyright (c) Microsoft Corporation.
*
* This is Main View.
*
* This source is subject to the Microsoft Public License.
* See http://www.microsoft.com/en-us/openness/licenses.a... | 23.487395 | 85 | 0.729159 | zzgchina888 |
548dd46e2289357b2682171fe2f3d589bbdefe1c | 1,295 | cpp | C++ | Deitel/Chapter12/exercises/12.09/ex_1209.cpp | SebastianTirado/Cpp-Learning-Archive | fb83379d0cc3f9b2390cef00119464ec946753f4 | [
"MIT"
] | 19 | 2019-09-15T12:23:51.000Z | 2020-06-18T08:31:26.000Z | Deitel/Chapter12/exercises/12.09/ex_1209.cpp | eirichan/CppLearingArchive | 07a4baf63f0765d41eb0cc6d32a4c9d2ae1d5bac | [
"MIT"
] | 15 | 2021-12-07T06:46:03.000Z | 2022-01-31T07:55:32.000Z | Deitel/Chapter12/exercises/12.09/ex_1209.cpp | eirichan/CppLearingArchive | 07a4baf63f0765d41eb0cc6d32a4c9d2ae1d5bac | [
"MIT"
] | 13 | 2019-06-29T02:58:27.000Z | 2020-05-07T08:52:22.000Z | /*
* =====================================================================================
*
* Filename:
*
* Description:
*
* Version: 1.0
* Created: Thanks to github you know it
* Revision: none
* Compiler: g++
*
* Author: Mahmut Erdem ÖZGEN m.erdemozgen... | 27.553191 | 88 | 0.433977 | SebastianTirado |
5490715eab05b16a29adef8834ad61db35612d76 | 635 | cpp | C++ | VC2010Samples/ComTypeLibfor7/dcom/atldraw/preatldr.cpp | alonmm/VCSamples | 6aff0b4902f5027164d593540fcaa6601a0407c3 | [
"MIT"
] | 300 | 2019-05-09T05:32:33.000Z | 2022-03-31T20:23:24.000Z | VC2010Samples/ComTypeLibfor7/dcom/atldraw/preatldr.cpp | JaydenChou/VCSamples | 9e1d4475555b76a17a3568369867f1d7b6cc6126 | [
"MIT"
] | 9 | 2016-09-19T18:44:26.000Z | 2018-10-26T10:20:05.000Z | VC2010Samples/ComTypeLibfor7/dcom/atldraw/preatldr.cpp | JaydenChou/VCSamples | 9e1d4475555b76a17a3568369867f1d7b6cc6126 | [
"MIT"
] | 633 | 2019-05-08T07:34:12.000Z | 2022-03-30T04:38:28.000Z | // preatldr.cpp : source file that includes just the standard includes
// ATLDraw.pch will be the pre-compiled header
// preatldr.obj will contain the pre-compiled type information
#include "preatldr.h"
LONG g_cObjCnt;
void dump_com_error(_com_error &e)
{
_tprintf(_T("Oops - hit an error!\n"));
_tprintf(_T... | 33.421053 | 70 | 0.68189 | alonmm |
549382a8825cf8cd8e0f2d62c6c0c15a4542fbcc | 318 | inl | C++ | node_modules/lzz-gyp/lzz-source/smtc_CreateDtorBaseName.inl | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | 3 | 2019-09-18T16:44:33.000Z | 2021-03-29T13:45:27.000Z | node_modules/lzz-gyp/lzz-source/smtc_CreateDtorBaseName.inl | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | null | null | null | node_modules/lzz-gyp/lzz-source/smtc_CreateDtorBaseName.inl | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | 2 | 2019-03-29T01:06:38.000Z | 2019-09-18T16:44:34.000Z | // smtc_CreateDtorBaseName.inl
//
#ifdef LZZ_ENABLE_INLINE
#define LZZ_INLINE inline
#else
#define LZZ_INLINE
#endif
namespace smtc
{
LZZ_INLINE BaseNamePtr createDtorBaseName (util::Loc const & loc, util::Ident const & ident)
{
return createDtorBaseName (loc, util::Ident (), ident);
}
}
#undef LZZ_INLINE
| 18.705882 | 94 | 0.745283 | SuperDizor |
5499fe18223882ee1792d4083a10b2eac2be9b94 | 3,521 | hpp | C++ | argholder.hpp | degarashi/spinner | 6c0d5dbdcde962a36de28cdc867478e2a715b689 | [
"MIT"
] | null | null | null | argholder.hpp | degarashi/spinner | 6c0d5dbdcde962a36de28cdc867478e2a715b689 | [
"MIT"
] | null | null | null | argholder.hpp | degarashi/spinner | 6c0d5dbdcde962a36de28cdc867478e2a715b689 | [
"MIT"
] | null | null | null | #pragma once
#include <type_traits>
#include <cassert>
namespace spn {
struct none_t{};
//! rvalue-reference wrapper
template <class T>
struct _RRef {
T& value;
_RRef(T& v): value(v) {}
_RRef(const _RRef& r): value(r.value) {}
int get() { return 0; }
operator T& () { return value; }
};
template <class ... | 33.216981 | 133 | 0.628515 | degarashi |
549b05c7f97acd0d48578db2fee40efd3401dc63 | 5,660 | cpp | C++ | csl/cslbase/utf8check.cpp | arthurcnorman/general | 5e8fef0cc7999fa8ab75d8fdf79ad5488047282b | [
"BSD-2-Clause"
] | null | null | null | csl/cslbase/utf8check.cpp | arthurcnorman/general | 5e8fef0cc7999fa8ab75d8fdf79ad5488047282b | [
"BSD-2-Clause"
] | null | null | null | csl/cslbase/utf8check.cpp | arthurcnorman/general | 5e8fef0cc7999fa8ab75d8fdf79ad5488047282b | [
"BSD-2-Clause"
] | null | null | null | // utfcheck.cpp Copyright (C) 2016-2020 Codemist
//
// This is a pretty silly program! It looks at Unicode characters and tests
// when case-folding can change the number of utf-8 bytes needed to encode
// them. At least in the default locales I have set up on my own Mac and
// Linux systems... | 40.428571 | 82 | 0.514664 | arthurcnorman |
549b3ed789af7653d7eadacb42cd9ff98e5605be | 4,034 | hpp | C++ | rmvmath/matrix/affinematrix3x3/operator/TAffineMatrix3x3_operator_mul.hpp | vitali-kurlovich/RMMath | a982b89e5db08e9cd16cb08e92839a315b6198dc | [
"MIT"
] | null | null | null | rmvmath/matrix/affinematrix3x3/operator/TAffineMatrix3x3_operator_mul.hpp | vitali-kurlovich/RMMath | a982b89e5db08e9cd16cb08e92839a315b6198dc | [
"MIT"
] | null | null | null | rmvmath/matrix/affinematrix3x3/operator/TAffineMatrix3x3_operator_mul.hpp | vitali-kurlovich/RMMath | a982b89e5db08e9cd16cb08e92839a315b6198dc | [
"MIT"
] | null | null | null | //
// Created by Vitali Kurlovich on 1/13/16.
//
#ifndef RMVECTORMATH_TAFFINEMATRIX3X3_OPERATOR_MUL_HPP
#define RMVECTORMATH_TAFFINEMATRIX3X3_OPERATOR_MUL_HPP
#include "../TAffineMatrix3x3_def.hpp"
#include "../func/TAffineMatrix3x3_func_mul.hpp"
#include "../func/TAffineMatrix3x3_func_mulvec.hpp"
namespace rmmat... | 29.021583 | 126 | 0.587506 | vitali-kurlovich |
549f7add891c354e05c87513df8fcd43a6c06037 | 1,957 | cpp | C++ | algorithms/graph/kruskals_mst_algorithm.cpp | sureshmangs/Code | de91ffc7ef06812a31464fb40358e2436734574c | [
"MIT"
] | 16 | 2020-06-02T19:22:45.000Z | 2022-02-05T10:35:28.000Z | algorithms/graph/kruskals_mst_algorithm.cpp | codezoned/Code | de91ffc7ef06812a31464fb40358e2436734574c | [
"MIT"
] | null | null | null | algorithms/graph/kruskals_mst_algorithm.cpp | codezoned/Code | de91ffc7ef06812a31464fb40358e2436734574c | [
"MIT"
] | 2 | 2020-08-27T17:40:06.000Z | 2022-02-05T10:33:52.000Z | #include<bits/stdc++.h>
using namespace std;
struct Edge {
int src, dst, weight;
};
class DisjointSet {
unordered_map<int, int> parent;
public:
void makeSet(int V){
// create V disjoint sets (one for each vertex)
for(int i = 0; i < V; i++)
parent[i] = i;
}
// Find the root of the set in which element k... | 20.819149 | 201 | 0.599387 | sureshmangs |
54a1523fda2e54a274eeb38d617b589861a732e0 | 1,740 | cpp | C++ | OJ/LeetCode/leetcode/problems/938.cpp | ONGOING-Z/DataStructure | 9099393d1c7dfabc3e2939586ea6d1d254631eb2 | [
"MIT"
] | null | null | null | OJ/LeetCode/leetcode/problems/938.cpp | ONGOING-Z/DataStructure | 9099393d1c7dfabc3e2939586ea6d1d254631eb2 | [
"MIT"
] | 2 | 2021-10-31T10:05:45.000Z | 2022-02-12T15:17:53.000Z | OJ/LeetCode/leetcode/938.cpp | ONGOING-Z/Learn-Algorithm-and-DataStructure | 3a512bd83cc6ed5035ac4550da2f511298b947c0 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <vector>
using namespace std;
/* Leetcode */
/* 题目信息 */
/*
*938. Range Sum of BST
Given the root node of a binary search tree, return the sum of values of all nodes with value between L and R (inclusive).
The binary search tree is guaranteed to have unique values.
Example 1:
Input: root... | 23.513514 | 123 | 0.584483 | ONGOING-Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.