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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5405e7f7f447438e019d324dae1f6190b9fc8177 | 2,346 | cpp | C++ | engine/ui/gGUIListbox.cpp | huseyinged1k/GlistEngine | 8f37ea2b1168c3cbc7be5ea211aa3898c29ab2ef | [
"Apache-2.0"
] | null | null | null | engine/ui/gGUIListbox.cpp | huseyinged1k/GlistEngine | 8f37ea2b1168c3cbc7be5ea211aa3898c29ab2ef | [
"Apache-2.0"
] | null | null | null | engine/ui/gGUIListbox.cpp | huseyinged1k/GlistEngine | 8f37ea2b1168c3cbc7be5ea211aa3898c29ab2ef | [
"Apache-2.0"
] | null | null | null | /*
* gGUIListbox.cpp
*
* Created on: Feb 5, 2022
* Author: noyan
*/
#include "gGUIListbox.h"
#include "gBaseApp.h"
#include "gBaseCanvas.h"
gGUIListbox::gGUIListbox() {
lineh = 24;
minlinenum = 5;
linenum = 0;
totalh = linenum * lineh;
minboxh = minlinenum * lineh;
listboxh = minboxh;
maxlinenum = ... | 25.78022 | 146 | 0.683717 | huseyinged1k |
54115bea7657b185305f873e87c261b4bfe052ee | 1,708 | cpp | C++ | src/tools.cpp | jainSamkit/Sensor-Fusion_EKF | 1e543e12cc535238d11f420953bd8b9d2050ede7 | [
"MIT"
] | null | null | null | src/tools.cpp | jainSamkit/Sensor-Fusion_EKF | 1e543e12cc535238d11f420953bd8b9d2050ede7 | [
"MIT"
] | null | null | null | src/tools.cpp | jainSamkit/Sensor-Fusion_EKF | 1e543e12cc535238d11f420953bd8b9d2050ede7 | [
"MIT"
] | null | null | null | #include <iostream>
#include "tools.h"
#include <cmath>
using Eigen::VectorXd;
using Eigen::MatrixXd;
using std::vector;
using namespace std;
Tools::Tools() {}
Tools::~Tools() {}
VectorXd Tools::CalculateRMSE(const vector<VectorXd> &estimations,
const vector<VectorXd> &ground_truth) {
... | 18.565217 | 69 | 0.594848 | jainSamkit |
5424998e6a9b18076c5e85305477e5febc560128 | 31,268 | cpp | C++ | xiablo/Plugins/SketchFabPlugin/Source/SketchfabAssetBrowser/Private/Commons/SketchfabTask.cpp | jing-interactive/ucd | 8fc8722291f086a0c0037a94d11c14562375e862 | [
"MIT"
] | 1 | 2022-02-02T23:36:07.000Z | 2022-02-02T23:36:07.000Z | xiablo/Plugins/SketchFabPlugin/Source/SketchfabAssetBrowser/Private/Commons/SketchfabTask.cpp | jing-interactive/ucd | 8fc8722291f086a0c0037a94d11c14562375e862 | [
"MIT"
] | null | null | null | xiablo/Plugins/SketchFabPlugin/Source/SketchfabAssetBrowser/Private/Commons/SketchfabTask.cpp | jing-interactive/ucd | 8fc8722291f086a0c0037a94d11c14562375e862 | [
"MIT"
] | null | null | null | // Copyright 2018 Sketchfab, Inc. All Rights Reserved.
#include "SketchfabTask.h"
#include "HAL/RunnableThread.h"
#include "Editor/EditorPerProjectUserSettings.h"
#include "Dom/JsonObject.h"
#include "Serialization/JsonReader.h"
#include "Serialization/JsonWriter.h"
#include "Serialization/JsonSerializer.h"
#include <... | 27.843277 | 165 | 0.715268 | jing-interactive |
542708321e48c6722546b774aefc04a6e86fa443 | 4,445 | hpp | C++ | include/codegen/include/GlobalNamespace/DisappearingArrowController.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/GlobalNamespace/DisappearingArrowController.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/GlobalNamespace/DisappearingArrowController.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... | 37.991453 | 146 | 0.733183 | Futuremappermydud |
542977c2b88e21d499849e6890fdf214006815a9 | 740 | cpp | C++ | chap6/chap6-1.1.cpp | liangzai90/Amazing-Algorithm-With-C | d1e992517eafd9197075d85591ed5270d945b5e3 | [
"Apache-2.0"
] | null | null | null | chap6/chap6-1.1.cpp | liangzai90/Amazing-Algorithm-With-C | d1e992517eafd9197075d85591ed5270d945b5e3 | [
"Apache-2.0"
] | null | null | null | chap6/chap6-1.1.cpp | liangzai90/Amazing-Algorithm-With-C | d1e992517eafd9197075d85591ed5270d945b5e3 | [
"Apache-2.0"
] | null | null | null | /*
数学趣题(=)
连续整数固定和问题
*/
#include <iostream>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <time.h>
#include <vector>
using namespace std;
void cntnsIntSum(int n)
{
int j=0,sum = 0;
for (int i = 1; i < n; i++) //控制起点的选择,从1到n-1
{
j = i - 1;
while (sum < n) //从起点向后顺序累... | 11.212121 | 46 | 0.539189 | liangzai90 |
542b058edf3a0fe27f276768a3b9b4b57dd39141 | 917 | cpp | C++ | HazelGameEngine/src/Hazel/Renderer/Buffer.cpp | duo131/Hazel_practice | 04eeec2550b9536e7b8a565d67630c1d2a669991 | [
"Apache-2.0"
] | null | null | null | HazelGameEngine/src/Hazel/Renderer/Buffer.cpp | duo131/Hazel_practice | 04eeec2550b9536e7b8a565d67630c1d2a669991 | [
"Apache-2.0"
] | null | null | null | HazelGameEngine/src/Hazel/Renderer/Buffer.cpp | duo131/Hazel_practice | 04eeec2550b9536e7b8a565d67630c1d2a669991 | [
"Apache-2.0"
] | null | null | null | #include "hzpch.h"
#include "Buffer.h"
#include "Renderer.h"
#include "Platform/OpenGL/OpenGLBuffer.h"
namespace Hazel {
VertexBuffer* VertexBuffer::Create(float* vertices, uint32_t size)
{
switch (Renderer::GetRedererAPI())
{
case RendererAPI::API::NONE:
HZ_CORE_ASSERT(false, "RendererAPI not support");
... | 22.365854 | 67 | 0.718648 | duo131 |
f9abc7cac5d5fb992b23a3e811475d036e696853 | 4,742 | cc | C++ | LuoGu/3380.cc | DesZou/Eros | f49c9ce1dfe193de8199163286afc28ff8c52eef | [
"MIT"
] | 1 | 2017-10-12T13:49:10.000Z | 2017-10-12T13:49:10.000Z | LuoGu/3380.cc | DesZou/Eros | f49c9ce1dfe193de8199163286afc28ff8c52eef | [
"MIT"
] | null | null | null | LuoGu/3380.cc | DesZou/Eros | f49c9ce1dfe193de8199163286afc28ff8c52eef | [
"MIT"
] | 1 | 2017-10-12T13:49:38.000Z | 2017-10-12T13:49:38.000Z | /*
* luogu3380
*
* 标解应该有平衡树,用带修改主席树实现查前驱后继就怪怪的。
* 但是主席树够强啊,跑得还特别快。(比较快)
* */
#include <cstdio>
#include <iostream>
#include <algorithm>
#include <limits>
#include <iostream>
using std::cin;
using std::cout;
using std::cerr;
template<class T>
bool chkmin(T &a, const T &b) { return a > b? a = b, 1 : 0; }
template... | 26.79096 | 76 | 0.420498 | DesZou |
f9ac58b344e3e5afab1308c9a504d9b6568e1bc3 | 1,906 | cpp | C++ | src/Imperial.cpp | JohnBobSmith/ConvertIt | 4b2393f7aecdc12f69820f2b41b1a6617cd62f5d | [
"MIT"
] | 1 | 2019-01-27T21:43:29.000Z | 2019-01-27T21:43:29.000Z | src/Imperial.cpp | JohnBobSmith/convertit-git | 4b2393f7aecdc12f69820f2b41b1a6617cd62f5d | [
"MIT"
] | null | null | null | src/Imperial.cpp | JohnBobSmith/convertit-git | 4b2393f7aecdc12f69820f2b41b1a6617cd62f5d | [
"MIT"
] | null | null | null | #include "../include/Conversions.h"
#include "../include/Imperial.h"
#include <iostream>
float Imperial::convAcresToHectares(float acres)
{
float hectares = acres * 0.404685642;
return hectares;
}
float Imperial::convMilesToKilometers(float miles)
{
//Do not divide by 0
if (miles == 0) {
miles... | 21.41573 | 81 | 0.63851 | JohnBobSmith |
f9ad46bb0d2c8388bad8c833fc8ffbd08c52aa07 | 475 | cpp | C++ | ccc-2016/q3.cpp | dvychen/ccc-practice | fdad9255e204b38abba0684e989d092b8979391b | [
"MIT"
] | null | null | null | ccc-2016/q3.cpp | dvychen/ccc-practice | fdad9255e204b38abba0684e989d092b8979391b | [
"MIT"
] | null | null | null | ccc-2016/q3.cpp | dvychen/ccc-practice | fdad9255e204b38abba0684e989d092b8979391b | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
using namespace std;
int main() {
// Input
int N, M;
cin >> N;
cin >> M;
int phoplaces[M];
for (int i = 0; i < M; i++) {
cin >> phoplaces[i];
}
int roads[N-1][2];
for (int i = 0; i < N-1; i++) {
cin >> roads[i][0];
cin >> roads[i][1];
}
// Sol... | 16.37931 | 36 | 0.517895 | dvychen |
f9ae681db932c4f65d2bcb5c44b2c836a725e6d8 | 3,528 | cpp | C++ | Spark/ResourceFactory.cpp | MickAlmighty/SparkRenderer | 0e30e342c7cf4003da54e9ce191fead647a868eb | [
"MIT"
] | 1 | 2022-02-15T19:50:01.000Z | 2022-02-15T19:50:01.000Z | Spark/ResourceFactory.cpp | MickAlmighty/SparkRenderer | 0e30e342c7cf4003da54e9ce191fead647a868eb | [
"MIT"
] | null | null | null | Spark/ResourceFactory.cpp | MickAlmighty/SparkRenderer | 0e30e342c7cf4003da54e9ce191fead647a868eb | [
"MIT"
] | null | null | null | #include "ResourceFactory.h"
#include "Resource.h"
#include "ResourceIdentifier.h"
#include "ResourceLoader.h"
#include "Shader.h"
namespace spark::resourceManagement
{
std::map<std::string, std::function<std::shared_ptr<Resource>(const std::shared_ptr<ResourceIdentifier>& ri)>>
ResourceFactory::resourceCreationF... | 42.506024 | 136 | 0.702381 | MickAlmighty |
f9b01bd81fa4407f38711e48c245b09ce246b474 | 165 | cc | C++ | firstCubes.cc | TheSaltimbanqi/FOPR | 8ff4fb40f0ee3ba90bbbccc9565279bed6e22400 | [
"MIT"
] | null | null | null | firstCubes.cc | TheSaltimbanqi/FOPR | 8ff4fb40f0ee3ba90bbbccc9565279bed6e22400 | [
"MIT"
] | null | null | null | firstCubes.cc | TheSaltimbanqi/FOPR | 8ff4fb40f0ee3ba90bbbccc9565279bed6e22400 | [
"MIT"
] | null | null | null | #include <iostream>
int main()
{
int n=0;
std::cin >> n;
for(int i=0;i<n;++i)
{
std::cout << i*i*i << ',';
}
std::cout << n*n*n<<'\n';
return 0;
}
| 12.692308 | 30 | 0.442424 | TheSaltimbanqi |
f9b5f0d0f4fca35fe6b26b6dd336d81ee6c49290 | 2,526 | cpp | C++ | tests/testThreadsafeQueue.cpp | ToniRV/threadsafe_queue | a1cdc880baffe08656abe14d09576c57cc7ce910 | [
"MIT"
] | 1 | 2019-01-13T14:58:03.000Z | 2019-01-13T14:58:03.000Z | tests/testThreadsafeQueue.cpp | ToniRV/threadsafe_queue | a1cdc880baffe08656abe14d09576c57cc7ce910 | [
"MIT"
] | null | null | null | tests/testThreadsafeQueue.cpp | ToniRV/threadsafe_queue | a1cdc880baffe08656abe14d09576c57cc7ce910 | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include <chrono>
#include <string>
#include <iostream>
#include <thread>
#include "ThreadsafeQueue.h"
void consumer(ThreadsafeQueue<std::string>& q,
const std::atomic_bool& kill_switch) {
while (!kill_switch) {
std::string msg = "No msg!";
if (q.popBlocking(msg)) {
... | 26.3125 | 79 | 0.603721 | ToniRV |
f9bfd8fa90d216e76e878725f4562e982bf09543 | 11,314 | cpp | C++ | Modules/LogicServerMultipleClient/muliple_yslim.cpp | alanzw/FGCG | 9819ff9c543cf52bfac16655d1d30417291b5d4c | [
"Apache-2.0"
] | 13 | 2016-10-24T11:39:12.000Z | 2021-04-11T13:24:05.000Z | Modules/LogicServerMultipleClient/muliple_yslim.cpp | zhangq49/sharerender | 9819ff9c543cf52bfac16655d1d30417291b5d4c | [
"Apache-2.0"
] | 1 | 2017-07-28T06:29:00.000Z | 2017-07-28T06:29:00.000Z | Modules/LogicServerMultipleClient/muliple_yslim.cpp | zhangq49/sharerender | 9819ff9c543cf52bfac16655d1d30417291b5d4c | [
"Apache-2.0"
] | 4 | 2018-06-05T03:39:06.000Z | 2020-06-06T04:44:20.000Z | #include "muliple_yslim.h"
#include <assert.h>
#include <stdlib.h>
#define eps (1e-3)
#define Bound_Constraint 1e14
#include <time.h>
YSlim::YSlim() {
vertices.clear();
faces.clear();
quadrics.clear();
pack_vertex_time_ = 0;
decimate_time_ = 0;
vert_cnt_ = -1;
while(!errors.empty()) errors.pop();
}
YSlim... | 22.582834 | 121 | 0.582287 | alanzw |
f9c24aa44976e2d68d17cb76eb00ff41c92d8af3 | 1,220 | hxx | C++ | src/control/genai/c_avoid_edge.hxx | AltSysrq/Abendstern | 106e1ad2457f7bfd90080eecf49a33f6079f8e1e | [
"BSD-3-Clause"
] | null | null | null | src/control/genai/c_avoid_edge.hxx | AltSysrq/Abendstern | 106e1ad2457f7bfd90080eecf49a33f6079f8e1e | [
"BSD-3-Clause"
] | null | null | null | src/control/genai/c_avoid_edge.hxx | AltSysrq/Abendstern | 106e1ad2457f7bfd90080eecf49a33f6079f8e1e | [
"BSD-3-Clause"
] | 1 | 2022-01-29T11:54:41.000Z | 2022-01-29T11:54:41.000Z | /**
* @file
* @author Jason Lingle
* @brief Contains the AvoidEdgeCortex reflex
*/
/*
* c_avoid_edge.hxx
*
* Created on: 01.11.2011
* Author: jason
*/
#ifndef C_AVOID_EDGE_HXX_
#define C_AVOID_EDGE_HXX_
#include "ci_nil.hxx"
#include "ci_field.hxx"
#include "ci_self.hxx"
#include "cortex.hxx"
/**
* ... | 20.333333 | 92 | 0.686885 | AltSysrq |
f9d1353c35718f2f0dd430c1cf0f445477f01684 | 544 | cpp | C++ | ModelClasses/FlyObjects/UsefulClassesForLA/angle.cpp | Yegres5/diploma | eea15d195cd1b8dfe16bd6810f012af435416cb7 | [
"MIT"
] | 3 | 2019-12-18T07:11:54.000Z | 2021-01-12T08:26:59.000Z | ModelClasses/FlyObjects/UsefulClassesForLA/angle.cpp | Yegres5/diploma | eea15d195cd1b8dfe16bd6810f012af435416cb7 | [
"MIT"
] | null | null | null | ModelClasses/FlyObjects/UsefulClassesForLA/angle.cpp | Yegres5/diploma | eea15d195cd1b8dfe16bd6810f012af435416cb7 | [
"MIT"
] | null | null | null | #include "angle.h"
#include "QtMath"
Angle::Angle(double value):check(true),value(value)
{}
void Angle::incValue(const double incVal)
{
value += incVal;
if (check){
while(value>=M_PI*2)
value -= M_PI*2;
while(value<0)
value += M_PI*2;
}
}
double Angle::getValue() co... | 16.484848 | 52 | 0.580882 | Yegres5 |
f9da0fb8ae1c74729ac133c1f604e03de6ae945d | 707 | hpp | C++ | IComponent.hpp | rectoria/2017_NanoTekSpice | 793ba675dba90a7e05cfe8946c12e62aa2c17ba2 | [
"MIT"
] | null | null | null | IComponent.hpp | rectoria/2017_NanoTekSpice | 793ba675dba90a7e05cfe8946c12e62aa2c17ba2 | [
"MIT"
] | null | null | null | IComponent.hpp | rectoria/2017_NanoTekSpice | 793ba675dba90a7e05cfe8946c12e62aa2c17ba2 | [
"MIT"
] | null | null | null | /*
** EPITECH PROJECT, 2018
** IComponent
** File description:
** oui
*/
#pragma once
#include <iostream>
#include <string>
namespace nts
{
enum Tristate {
UNDEFINED = (-true),
TRUE = true,
FALSE = false
};
enum C_TYPE {
C_INPUT,
C_OUTPUT,
C_CLOCK,
C_TRUE,
C_FALSE,
C_4001,
C_4008,
C_4011,
... | 13.596154 | 55 | 0.625177 | rectoria |
f9da8676ba30e05629c961544707aa60b70865e2 | 1,760 | cpp | C++ | src/neuron_factory.cpp | mupimenov/ga4nn | 94309212c941c75496b347b8667e3788ffb09455 | [
"MIT"
] | null | null | null | src/neuron_factory.cpp | mupimenov/ga4nn | 94309212c941c75496b347b8667e3788ffb09455 | [
"MIT"
] | null | null | null | src/neuron_factory.cpp | mupimenov/ga4nn | 94309212c941c75496b347b8667e3788ffb09455 | [
"MIT"
] | null | null | null | /*
COPYRIGHT (c) 2016 Mikhail Pimenov
MIT License
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish... | 36.666667 | 72 | 0.796023 | mupimenov |
f9db1d36e8681d880aa044ae6697d741d964db02 | 3,822 | cpp | C++ | source/AnimIK.cpp | xzrunner/model | e801f3cbfa0f5e7c190eec1e5286843f6cd68492 | [
"MIT"
] | null | null | null | source/AnimIK.cpp | xzrunner/model | e801f3cbfa0f5e7c190eec1e5286843f6cd68492 | [
"MIT"
] | null | null | null | source/AnimIK.cpp | xzrunner/model | e801f3cbfa0f5e7c190eec1e5286843f6cd68492 | [
"MIT"
] | null | null | null | #include "model/AnimIK.h"
#include "model/ModelInstance.h"
#include "model/SkeletalAnim.h"
#include "model/Model.h"
#include <SM_Matrix.h>
#include <SM_Calc.h>
namespace
{
sm::mat4 get_rot_inv(const sm::mat4& mat)
{
auto inv = mat;
inv.x[12] = inv.x[13] = inv.x[14] = 0;
return inv.Inverted();
}
}
namespace mode... | 28.522388 | 114 | 0.636054 | xzrunner |
f9e67b8d7e767b7750cb6ae3199f6c01ffa85d8e | 1,504 | cpp | C++ | project/src/data_types.cpp | GabrielLins64/Study_of_Cpp | 80e519560d5f66f0188b2bbe3525e2a31357cc16 | [
"MIT"
] | null | null | null | project/src/data_types.cpp | GabrielLins64/Study_of_Cpp | 80e519560d5f66f0188b2bbe3525e2a31357cc16 | [
"MIT"
] | null | null | null | project/src/data_types.cpp | GabrielLins64/Study_of_Cpp | 80e519560d5f66f0188b2bbe3525e2a31357cc16 | [
"MIT"
] | null | null | null | #include <data_types.hpp>
template <typename T>
void showTypeInfo(const char* tp_name)
{
std::cout << "~~~~~~~~~ X ~~~~~~~~~ X ~~~~~~~~~" << std::endl;
std::cout << "Type: " << tp_name << std::endl;
std::cout << "Size of " << typeid(T).name() << ": " << sizeof(T) << " bytes" << std::endl;
std::cout << ... | 44.235294 | 94 | 0.603059 | GabrielLins64 |
f9e6e5e746764bf9bf07076bae831e8bd4157b80 | 702 | cpp | C++ | projecteuler/2.cpp | itsjaysuthar/CPpractice | 820cf84ea7079ef3b34a604fd56672811f64f4dc | [
"MIT"
] | null | null | null | projecteuler/2.cpp | itsjaysuthar/CPpractice | 820cf84ea7079ef3b34a604fd56672811f64f4dc | [
"MIT"
] | null | null | null | projecteuler/2.cpp | itsjaysuthar/CPpractice | 820cf84ea7079ef3b34a604fd56672811f64f4dc | [
"MIT"
] | null | null | null | //---------------------------------------------------------------------------------------
//-------------------Author : itsjaysuthar ----------------------------------------------
//---------------------------------------------------------------------------------------
#include<bits/stdc++.h>
using namespace std;
int... | 22.645161 | 89 | 0.339031 | itsjaysuthar |
f9ef9bad4666c8500d428823d458369d20b118bd | 776 | cpp | C++ | Engine/Src/SFCore/Object/SFObject.cpp | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | 1 | 2020-06-20T07:35:25.000Z | 2020-06-20T07:35:25.000Z | Engine/Src/SFCore/Object/SFObject.cpp | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | null | null | null | Engine/Src/SFCore/Object/SFObject.cpp | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
//
// CopyRight (c) 2016 Kyungkun Ko
//
// Author : KyungKun Ko
//
// Description : Shared pointer
//
////////////////////////////////////////////////////////////////////////////////
#include "SFCorePCH.h"
#include "SFTypedefs.h"
#incl... | 15.836735 | 80 | 0.456186 | blue3k |
f9f35cbcea9379357cac7d517b4b2c88afc4368a | 256 | cpp | C++ | ch11/copy3.cpp | bashell/CppStandardLibrary | 2aae03019288132c911036aeb9ba36edc56e510b | [
"MIT"
] | null | null | null | ch11/copy3.cpp | bashell/CppStandardLibrary | 2aae03019288132c911036aeb9ba36edc56e510b | [
"MIT"
] | null | null | null | ch11/copy3.cpp | bashell/CppStandardLibrary | 2aae03019288132c911036aeb9ba36edc56e510b | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <algorithm>
#include <iterator>
using namespace std;
int main()
{
copy(istream_iterator<string>(cin),
istream_iterator<string>(),
ostream_iterator<string>(cout, "\n"));
return 0;
}
| 17.066667 | 47 | 0.65625 | bashell |
f9f768cdb16235f7a64f13326b95209ea44bb130 | 50,796 | cpp | C++ | mcgs.cpp | lstange/mcgs | bfce487095c42b3a8c54c8e10aebcd2189a02c62 | [
"MIT"
] | 1 | 2017-04-21T22:53:08.000Z | 2017-04-21T22:53:08.000Z | mcgs.cpp | lstange/mcgs | bfce487095c42b3a8c54c8e10aebcd2189a02c62 | [
"MIT"
] | null | null | null | mcgs.cpp | lstange/mcgs | bfce487095c42b3a8c54c8e10aebcd2189a02c62 | [
"MIT"
] | 1 | 2021-01-11T04:03:42.000Z | 2021-01-11T04:03:42.000Z | /* mcgs.cpp
Monte-Carlo simulation of group sizes under bivariate (possibly contaminated) normal distribution
Requirements:
sudo apt-get install libboost-all-dev
Building:
g++ -O3 -Wall -Wextra -std=c++11 -march=native -g -o mcgs mcgs.cpp
*/
#include <vector>
#include <map>
#include <cmath>
#include <... | 33.68435 | 128 | 0.53518 | lstange |
f9fe622f490c688aae03ab6c3f339d6e918d668c | 4,917 | cpp | C++ | Freesia/src/Platform/X11/X11Window.cpp | Htrap19/Freesia | df030b1981effd59f7856e6af7178b4a1667f8cd | [
"Apache-2.0"
] | 2 | 2021-12-27T15:07:55.000Z | 2022-01-04T20:10:33.000Z | Freesia/src/Platform/X11/X11Window.cpp | Htrap19/Freesia | df030b1981effd59f7856e6af7178b4a1667f8cd | [
"Apache-2.0"
] | null | null | null | Freesia/src/Platform/X11/X11Window.cpp | Htrap19/Freesia | df030b1981effd59f7856e6af7178b4a1667f8cd | [
"Apache-2.0"
] | null | null | null | //
// Created by Htrap19 on 12/1/21.
//
#include "X11Window.h"
#include <GLFW/glfw3.h>
#include "Freesia/Core/Log.h"
#include "Freesia/Core/Assert.h"
#include "Freesia/Events/WindowEvent.h"
#include "Freesia/Events/KeyEvent.h"
#include "Freesia/Events/MouseEvent.h"
namespace Freesia
{
static uint8_t s_GLFWWindow... | 28.587209 | 115 | 0.538133 | Htrap19 |
e600839598c526cabb9604007b6869de0785c3ed | 281 | cpp | C++ | apps/CoreApp/gtest/VisitTest.cpp | FleX-d/Core | b1d44e57dbe24cc20aa82fb249976fa31e88c098 | [
"BSD-3-Clause"
] | null | null | null | apps/CoreApp/gtest/VisitTest.cpp | FleX-d/Core | b1d44e57dbe24cc20aa82fb249976fa31e88c098 | [
"BSD-3-Clause"
] | null | null | null | apps/CoreApp/gtest/VisitTest.cpp | FleX-d/Core | b1d44e57dbe24cc20aa82fb249976fa31e88c098 | [
"BSD-3-Clause"
] | 3 | 2018-05-09T11:50:33.000Z | 2018-07-24T08:13:17.000Z | #include <cstdlib>
#include <iostream>
#include <gtest/gtest.h>
#include "Visitor.h"
TEST(Visitor, Test)
{
flexd::core::Visitor v;
flexd::core::UnfreezRequest_t r=new flexd::core::UnfreezRequest("Snake","1.01");
v.visit(r);
r->accept(v);
ASSERT_TRUE(true);
}
| 18.733333 | 84 | 0.654804 | FleX-d |
e6028456bb37a7d2a1f0b3ca8a61589bd75c9869 | 7,359 | cpp | C++ | src/mapper/InfoNES_Mapper_248.cpp | jay-kumogata/InfoNES | 045dd572123753cd53bbbcd387b70a66d0a8562c | [
"Apache-2.0"
] | 6 | 2019-05-10T02:09:55.000Z | 2021-09-16T09:10:14.000Z | src/mapper/InfoNES_Mapper_248.cpp | b004004/InfoNES-1 | 045dd572123753cd53bbbcd387b70a66d0a8562c | [
"Apache-2.0"
] | null | null | null | src/mapper/InfoNES_Mapper_248.cpp | b004004/InfoNES-1 | 045dd572123753cd53bbbcd387b70a66d0a8562c | [
"Apache-2.0"
] | 1 | 2019-05-10T16:02:51.000Z | 2019-05-10T16:02:51.000Z | /*===================================================================*/
/* */
/* Mapper 248 : Bao Qing Tian */
/* */
/*==========================... | 31.182203 | 85 | 0.478326 | jay-kumogata |
e603043db54419c5422ac825c315a50e7c05a467 | 1,506 | cpp | C++ | libs/ml/src/utilities/utils.cpp | chr15murray/ledger | 85be05221f19598de8c6c58652139a1f2d9e362f | [
"Apache-2.0"
] | 96 | 2018-08-23T16:49:05.000Z | 2021-11-25T00:47:16.000Z | libs/ml/src/utilities/utils.cpp | chr15murray/ledger | 85be05221f19598de8c6c58652139a1f2d9e362f | [
"Apache-2.0"
] | 1,011 | 2018-08-17T12:25:21.000Z | 2021-11-18T09:30:19.000Z | libs/ml/src/utilities/utils.cpp | chr15murray/ledger | 85be05221f19598de8c6c58652139a1f2d9e362f | [
"Apache-2.0"
] | 65 | 2018-08-20T20:05:40.000Z | 2022-02-26T23:54:35.000Z | //------------------------------------------------------------------------------
//
// Copyright 2018-2020 Fetch.AI Limited
//
// 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
//
// ... | 31.375 | 91 | 0.61753 | chr15murray |
e60f5fd18b9e17c8033c5c0067bdd054e82ee589 | 19 | cpp | C++ | Liatris/src/liapch.cpp | briandl2000/LiatrisPublic | a4960eacc73b31e967e3716c7ce2dbfbc62a9925 | [
"Apache-2.0"
] | null | null | null | Liatris/src/liapch.cpp | briandl2000/LiatrisPublic | a4960eacc73b31e967e3716c7ce2dbfbc62a9925 | [
"Apache-2.0"
] | null | null | null | Liatris/src/liapch.cpp | briandl2000/LiatrisPublic | a4960eacc73b31e967e3716c7ce2dbfbc62a9925 | [
"Apache-2.0"
] | null | null | null | #include "liapch.h" | 19 | 19 | 0.736842 | briandl2000 |
e61f86bfabe4ba4077201bc671d3230610a5424b | 1,058 | cpp | C++ | detail/max_points_on_a_line.cpp | zhangxin23/leetcode | 4c8fc60e59448045a3e880caaedd0486164e68e7 | [
"MIT"
] | 1 | 2015-07-15T07:31:42.000Z | 2015-07-15T07:31:42.000Z | detail/max_points_on_a_line.cpp | zhangxin23/leetcode | 4c8fc60e59448045a3e880caaedd0486164e68e7 | [
"MIT"
] | null | null | null | detail/max_points_on_a_line.cpp | zhangxin23/leetcode | 4c8fc60e59448045a3e880caaedd0486164e68e7 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
/**
* Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.
* */
//Definition for a point.
struct Point {
int x;
int y;
Point() : x(0), y(0) {}
Point(int a, int b) : x(a), y(b) {}
};
class Solution {
p... | 23.511111 | 102 | 0.442344 | zhangxin23 |
e61fac05108799d28b167071b69bdcacbdd39d24 | 5,543 | hpp | C++ | private/inc/smartx/IasSmartXPriv.hpp | juimonen/SmartXbar | 033f521a5dba5bce5e097df9c98af5b2cc2636dd | [
"BSD-3-Clause"
] | 5 | 2018-11-05T07:37:58.000Z | 2022-03-04T06:40:09.000Z | private/inc/smartx/IasSmartXPriv.hpp | juimonen/SmartXbar | 033f521a5dba5bce5e097df9c98af5b2cc2636dd | [
"BSD-3-Clause"
] | null | null | null | private/inc/smartx/IasSmartXPriv.hpp | juimonen/SmartXbar | 033f521a5dba5bce5e097df9c98af5b2cc2636dd | [
"BSD-3-Clause"
] | 7 | 2018-12-04T07:32:19.000Z | 2021-02-17T11:28:28.000Z | /*
* Copyright (C) 2018 Intel Corporation.All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/**
* @file IasSmartXPriv.hpp
* @date 2015
* @brief
*/
#ifndef IASSMARTXPRIV_HPP_
#define IASSMARTXPRIV_HPP_
#include "avbaudiomodules/audio/common/IasAudioCommonTypes.hpp"
#include "avbaudiomodule... | 32.798817 | 135 | 0.674725 | juimonen |
e6216afde3140c7d5f5eb00c46d364bf5736445e | 50,687 | cpp | C++ | src/plugins/legacy/polygonRoi/polygonRoiToolBox.cpp | dmargery/medInria-public | c232dbdf9353e14ec6e5184349ef1e523def0b76 | [
"BSD-4-Clause"
] | null | null | null | src/plugins/legacy/polygonRoi/polygonRoiToolBox.cpp | dmargery/medInria-public | c232dbdf9353e14ec6e5184349ef1e523def0b76 | [
"BSD-4-Clause"
] | null | null | null | src/plugins/legacy/polygonRoi/polygonRoiToolBox.cpp | dmargery/medInria-public | c232dbdf9353e14ec6e5184349ef1e523def0b76 | [
"BSD-4-Clause"
] | null | null | null | /*=========================================================================
medInria
Copyright (c) INRIA 2013 - 2019. All rights reserved.
See LICENSE.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.... | 33.656707 | 210 | 0.598378 | dmargery |
e624a89710befc48421b040d0e9cc7b05070d8ec | 1,093 | cpp | C++ | carmen_hardware/firmware/test/test_control_loop.cpp | AndriyPt/carmen | 1b6beb70492604e41a079ea4054c68c0c8f30bdd | [
"MIT"
] | 2 | 2019-12-25T21:41:17.000Z | 2020-03-03T16:14:20.000Z | carmen_hardware/firmware/test/test_control_loop.cpp | AndriyPt/carmen | 1b6beb70492604e41a079ea4054c68c0c8f30bdd | [
"MIT"
] | null | null | null | carmen_hardware/firmware/test/test_control_loop.cpp | AndriyPt/carmen | 1b6beb70492604e41a079ea4054c68c0c8f30bdd | [
"MIT"
] | 1 | 2019-12-19T15:37:31.000Z | 2019-12-19T15:37:31.000Z | #include <gtest/gtest.h>
#include <gmock/gmock.h>
#include "gmock-global/gmock-global.h"
#include <string>
#include "error.h"
#include <stdexcept>
#include "control_loop.h"
#include "osal.h"
#include "osal_control_loop.h"
using ::testing::NotNull;
using ::testing::Gt;
using ::testing::Throw;
MOCK_GLOBAL_FUNC3(generat... | 30.361111 | 111 | 0.792315 | AndriyPt |
e62c4db52e4f6990efa423f87f09922b8ff86823 | 288 | hpp | C++ | Libraries/Macaronlib/include/Macaronlib/MemoryUtils/Memcpy.hpp | Plunkerusr/podsOS | b68e2ebdaa4eb99366dea6cc5509ba0c92c3601a | [
"MIT"
] | null | null | null | Libraries/Macaronlib/include/Macaronlib/MemoryUtils/Memcpy.hpp | Plunkerusr/podsOS | b68e2ebdaa4eb99366dea6cc5509ba0c92c3601a | [
"MIT"
] | null | null | null | Libraries/Macaronlib/include/Macaronlib/MemoryUtils/Memcpy.hpp | Plunkerusr/podsOS | b68e2ebdaa4eb99366dea6cc5509ba0c92c3601a | [
"MIT"
] | null | null | null | #pragma once
#include "../Common.hpp"
#ifdef __i386__
#include "Memcpy.x86.hpp"
#else
#include "Memcpy.aarch32.hpp"
#endif
[[gnu::always_inline]] inline void inline_memcpy(void* write, const void* read, size_t count)
{
inline_memcpy_impl((char*)write, (const char*)read, count);
}
| 19.2 | 93 | 0.71875 | Plunkerusr |
e62c7f3a2fd6c3b36805a11b0d19925998feb42f | 1,093 | hpp | C++ | Source/Runtime/Core/Public/Math/Util.hpp | Othereum/NoEngineGame | e3c9c9a330ba8e724cd96f98355b556d24e73d9d | [
"MIT"
] | 23 | 2020-05-21T06:25:29.000Z | 2021-04-06T03:37:28.000Z | Source/Runtime/Core/Public/Math/Util.hpp | Othereum/NoEngineGame | e3c9c9a330ba8e724cd96f98355b556d24e73d9d | [
"MIT"
] | 72 | 2020-06-09T04:46:27.000Z | 2020-12-07T03:20:51.000Z | Source/Runtime/Core/Public/Math/Util.hpp | Othereum/NoEngineGame | e3c9c9a330ba8e724cd96f98355b556d24e73d9d | [
"MIT"
] | 4 | 2020-06-10T02:23:54.000Z | 2022-03-28T07:22:08.000Z | #pragma once
#include "Angle.hpp"
#include "Quat.hpp"
#include "Vector.hpp"
namespace otm
{
template <class Float>
Angle<RadR> V2HFov(Angle<RadR> vfov, Vector<Float, 2> scr)
{
return 2 * Atan(Tan(vfov / 2) * (scr[0] / scr[1]));
}
template <class Float>
Angle<RadR> H2VFov(Angle<RadR> hfov, Vector<Float, 2> scr)
{
... | 25.418605 | 112 | 0.644099 | Othereum |
e63311d87857445431058ea980d30bb66ebfdd20 | 3,337 | hpp | C++ | include/crypto/RSA.hpp | Jonas4420/Crypto | 4fda1854c838407e6cbfb0ffaf862609eaac203a | [
"MIT"
] | null | null | null | include/crypto/RSA.hpp | Jonas4420/Crypto | 4fda1854c838407e6cbfb0ffaf862609eaac203a | [
"MIT"
] | null | null | null | include/crypto/RSA.hpp | Jonas4420/Crypto | 4fda1854c838407e6cbfb0ffaf862609eaac203a | [
"MIT"
] | null | null | null | #ifndef CRYPTO_RSA_H
#define CRYPTO_RSA_H
#include "crypto/BigNum.hpp"
#include <stdexcept>
#include <utility>
#include <cstring>
namespace Crypto
{
class RSA
{
public:
class RSAPublicKey
{
public:
RSAPublicKey(const BigNum&, const BigNum&);
RSAPublicKey(const uint8_t*, std::size_t);
bool ope... | 26.070313 | 106 | 0.679652 | Jonas4420 |
e63f92383882e87835d459f23c6d683e669ea5e2 | 533 | cpp | C++ | leetcode/832. Flipping an Image/s1.cpp | joycse06/LeetCode-1 | ad105bd8c5de4a659c2bbe6b19f400b926c82d93 | [
"Fair"
] | 1 | 2021-02-09T11:38:51.000Z | 2021-02-09T11:38:51.000Z | leetcode/832. Flipping an Image/s1.cpp | contacttoakhil/LeetCode-1 | 9bb9b5aa9ace836b86a752eb796b3dfcb21ee44c | [
"Fair"
] | null | null | null | leetcode/832. Flipping an Image/s1.cpp | contacttoakhil/LeetCode-1 | 9bb9b5aa9ace836b86a752eb796b3dfcb21ee44c | [
"Fair"
] | 1 | 2021-03-25T17:11:14.000Z | 2021-03-25T17:11:14.000Z | // OJ: https://leetcode.com/problems/flipping-an-image/
// Author: github.com/lzl124631x
// Time: O(MN)
// Space: O(1)
class Solution {
public:
vector<vector<int>> flipAndInvertImage(vector<vector<int>>& A) {
if (A.empty() || A[0].empty()) return {};
int M = A.size(), N = A[0].size();
vector... | 29.611111 | 68 | 0.469043 | joycse06 |
e63fcf88f1ae019c35869e70de7bb87a0d35e1c6 | 447 | cpp | C++ | cpp02/cpp02_func_overload.cpp | ValentinoVizner/CPP_OpenCV_Playground | 809fa501e056cddeb9e0af3cb7f0ba0925f389d0 | [
"MIT"
] | null | null | null | cpp02/cpp02_func_overload.cpp | ValentinoVizner/CPP_OpenCV_Playground | 809fa501e056cddeb9e0af3cb7f0ba0925f389d0 | [
"MIT"
] | null | null | null | cpp02/cpp02_func_overload.cpp | ValentinoVizner/CPP_OpenCV_Playground | 809fa501e056cddeb9e0af3cb7f0ba0925f389d0 | [
"MIT"
] | null | null | null | /*
Function overloading
Compiler infers a function from arguments
Cannot overload based on return type
Return type plays no role at all
GOOGLE-STYLE Avoid non-obvious overloads
*/
#include <iostream>
#include <string>
std::string Func(int num) {
return "int";
}
std::string Func(const std::string& str) {
retur... | 19.434783 | 44 | 0.673378 | ValentinoVizner |
e64188e0832cfbc98ffd24e2f1dfa29db3d41edd | 11,810 | hxx | C++ | include/vigra/copyimage.hxx | sstefan/vigra | f8826fa4de4293efb95582367f4bf42cc8ba8c11 | [
"MIT"
] | 1 | 2017-01-23T11:27:56.000Z | 2017-01-23T11:27:56.000Z | include/vigra/copyimage.hxx | tikroeger/vigra | 981d1ebc3ee85464a0d2ace693ad41606b475e2f | [
"MIT"
] | null | null | null | include/vigra/copyimage.hxx | tikroeger/vigra | 981d1ebc3ee85464a0d2ace693ad41606b475e2f | [
"MIT"
] | 3 | 2015-12-09T13:47:13.000Z | 2019-04-06T21:28:59.000Z | /************************************************************************/
/* */
/* Copyright 1998-2002 by Ullrich Koethe */
/* */
/* This file is p... | 35.572289 | 90 | 0.5663 | sstefan |
e648354366e8082a48a7da3291c0151de9e5c0b9 | 11,639 | cpp | C++ | 2021-01/16/opengl-win32.cpp | tsherif/sketches | c4bb4ec367f6e66d5a859f265ee48e04a4a9bb47 | [
"MIT"
] | 2 | 2020-06-03T17:49:35.000Z | 2020-07-09T06:02:50.000Z | 2021-01/16/opengl-win32.cpp | tsherif/sketches | c4bb4ec367f6e66d5a859f265ee48e04a4a9bb47 | [
"MIT"
] | 8 | 2022-02-13T19:46:39.000Z | 2022-02-27T10:05:10.000Z | 2021-01/16/opengl-win32.cpp | tsherif/sketches | c4bb4ec367f6e66d5a859f265ee48e04a4a9bb47 | [
"MIT"
] | null | null | null | #define WIN32_LEAN_AND_MEAN
#define _USE_MATH_DEFINES
#define SOGL_MAJOR_VERSION 4
#define SOGL_MINOR_VERSION 5
#define SOGL_IMPLEMENTATION_WIN32
#define STB_IMAGE_IMPLEMENTATION
#include "../../lib/simple-opengl-loader.h"
#include <windows.h>
#include <cstdint>
#include <cmath>
#include <cstdio>
#include <cstring>
#in... | 30.548556 | 168 | 0.635622 | tsherif |
e648f4b19265d069a4cc22deb6204fb151c07b2e | 513 | cpp | C++ | src/771 Jewels and Stones.cpp | LL-Pengfei/LL-Pengfei-Leetcode-Solutions | 3ae358877bdb943bef67a55372ce7f04d2881072 | [
"MIT"
] | null | null | null | src/771 Jewels and Stones.cpp | LL-Pengfei/LL-Pengfei-Leetcode-Solutions | 3ae358877bdb943bef67a55372ce7f04d2881072 | [
"MIT"
] | null | null | null | src/771 Jewels and Stones.cpp | LL-Pengfei/LL-Pengfei-Leetcode-Solutions | 3ae358877bdb943bef67a55372ce7f04d2881072 | [
"MIT"
] | null | null | null | //771. Jewels and Stones
//https://leetcode.com/problems/jewels-and-stones/
class Solution {
public:
int numJewelsInStones(string J, string S) {
const char* jc = J.c_str();
const char* sc = S.c_str();
unordered_set<char> jewel;
for (int i = 0; i < J.size(); ++i) {
jewel.... | 25.65 | 58 | 0.500975 | LL-Pengfei |
e649623eb9887f7a5b6341fd717e9d9b6e686b23 | 589 | cpp | C++ | Main/Sun.cpp | ThomasGITH/OpenGL-Engine | b2800f5abf0a5c437a4731a5b6ed43bafcbf776f | [
"Apache-2.0"
] | 1 | 2019-11-06T23:46:38.000Z | 2019-11-06T23:46:38.000Z | Main/Sun.cpp | ThomasGITH/OpenGL-code | b2800f5abf0a5c437a4731a5b6ed43bafcbf776f | [
"Apache-2.0"
] | 1 | 2021-08-29T20:59:30.000Z | 2021-08-29T20:59:30.000Z | Main/Sun.cpp | ThomasGITH/OpenGL-code | b2800f5abf0a5c437a4731a5b6ed43bafcbf776f | [
"Apache-2.0"
] | null | null | null | #include "Sun.h"
Sun::Sun(glm::vec3 colour, GLfloat ambientIntensity, glm::vec3 direction, GLfloat diffuseIntensity)
{
this->colour = colour;
this->ambientIntensity = ambientIntensity;
this->direction = direction;
this->diffuseIntensity = diffuseIntensity;
setLightType(DIRECTIONAL);
}
void Sun::Up... | 26.772727 | 190 | 0.745331 | ThomasGITH |
e6497a329bd794e4de5d07efcd7802f5769db7c5 | 10,955 | cpp | C++ | src/sdl/graphic.cpp | mwthinker/CppSdl2 | 0433a4f984b1c0e7e6a96303ee4d55cc9430343e | [
"MIT"
] | 3 | 2019-08-18T19:22:39.000Z | 2021-08-29T15:45:37.000Z | src/sdl/graphic.cpp | mwthinker/CppSdl2 | 0433a4f984b1c0e7e6a96303ee4d55cc9430343e | [
"MIT"
] | null | null | null | src/sdl/graphic.cpp | mwthinker/CppSdl2 | 0433a4f984b1c0e7e6a96303ee4d55cc9430343e | [
"MIT"
] | null | null | null | #include "graphic.h"
#include <glm/gtx/rotate_vector.hpp>
#include <glm/gtx/component_wise.hpp>
#include <glm/gtx/vector_angle.hpp>
#include <array>
namespace {
struct GlScopedState {
GlScopedState() {
glGetIntegerv(GL_TEXTURE_BINDING_2D, &texture);
glGetIntegerv(GL_ACTIVE_TEXTURE, &activeTexture);
glGe... | 30.772472 | 158 | 0.67403 | mwthinker |
e64bd002587ebf7f4f4990f8fe1dbe480a63d00d | 401 | hpp | C++ | library/ATF/GUILD_BATTLE__CGuildBattleStateListVtbl.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/GUILD_BATTLE__CGuildBattleStateListVtbl.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/GUILD_BATTLE__CGuildBattleStateListVtbl.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
START_ATF_NAMESPACE
namespace GUILD_BATTLE
{
struct CGuildBattleStateListVtbl
{
void (WINAPIV *SetNextState)(struct CGuildBattleStat... | 25.0625 | 108 | 0.703242 | lemkova |
e64cb12c245cf767199f730e8cf9beea9b444d01 | 848 | cpp | C++ | libs_common/vds_transactions/transactions/store_block_transaction.cpp | SuperOyuncuNW/vds | 87a40059150fb2523f10da9ed1a63b75ac0d531c | [
"MIT"
] | 2 | 2018-02-16T00:27:04.000Z | 2018-06-16T02:53:47.000Z | libs_common/vds_transactions/transactions/store_block_transaction.cpp | SuperOyuncuNW/vds | 87a40059150fb2523f10da9ed1a63b75ac0d531c | [
"MIT"
] | 1 | 2018-07-20T04:18:00.000Z | 2018-07-21T12:04:57.000Z | libs_common/vds_transactions/transactions/store_block_transaction.cpp | SuperOyuncuNW/vds | 87a40059150fb2523f10da9ed1a63b75ac0d531c | [
"MIT"
] | 12 | 2017-07-16T12:01:52.000Z | 2022-03-16T20:36:57.000Z | /*
Copyright (c) 2017, Vadim Malyshev, lboss75@gmail.com
All rights reserved
*/
#include "stdafx.h"
#include "store_block_transaction.h"
vds::expected<vds::transactions::store_block_transaction> vds::transactions::store_block_transaction::create(
const const_data_buffer& owner_id,
const const_data_buffer& object_... | 27.354839 | 109 | 0.759434 | SuperOyuncuNW |
e651fc9900b2c48f75af2248a9c70d71390f2909 | 4,012 | cpp | C++ | src/light.cpp | PegasusEpsilon/Barony | 6311f7e5da4835eaea65a95b5cc258409bb0dfa4 | [
"FTL",
"Zlib",
"MIT"
] | 373 | 2016-06-28T06:56:46.000Z | 2022-03-23T02:32:54.000Z | src/light.cpp | PegasusEpsilon/Barony | 6311f7e5da4835eaea65a95b5cc258409bb0dfa4 | [
"FTL",
"Zlib",
"MIT"
] | 361 | 2016-07-06T19:09:25.000Z | 2022-03-26T14:14:19.000Z | src/light.cpp | PegasusEpsilon/Barony | 6311f7e5da4835eaea65a95b5cc258409bb0dfa4 | [
"FTL",
"Zlib",
"MIT"
] | 129 | 2016-06-29T09:02:49.000Z | 2022-01-23T09:56:06.000Z | /*-------------------------------------------------------------------------------
BARONY
File: light.cpp
Desc: light spawning code
Copyright 2013-2016 (c) Turning Wheel LLC, all rights reserved.
See LICENSE for details.
-------------------------------------------------------------------------------*/
#include ... | 24.463415 | 151 | 0.45339 | PegasusEpsilon |
e65224fda2e1aab14002e6a7e83c3043a7d6f82d | 1,642 | cpp | C++ | MonoNative.Tests/mscorlib/System/Text/mscorlib_System_Text_EncoderFallbackBuffer_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 7 | 2015-03-10T03:36:16.000Z | 2021-11-05T01:16:58.000Z | MonoNative.Tests/mscorlib/System/Text/mscorlib_System_Text_EncoderFallbackBuffer_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 1 | 2020-06-23T10:02:33.000Z | 2020-06-24T02:05:47.000Z | MonoNative.Tests/mscorlib/System/Text/mscorlib_System_Text_EncoderFallbackBuffer_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | null | null | null | // Mono Native Fixture
// Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// Namespace: System.Text
// Name: EncoderFallbackBuffer
// C++ Typed Name: mscorlib::System::Text::EncoderFallbackBuffer
#include <gtest/gtest.h>
#include <mscorlib/System/Text/mscorlib_System_Text_Encoder... | 20.78481 | 126 | 0.7162 | brunolauze |
e65447a2c87b48a6cafdd0ffaff7436edaa4fa41 | 142 | cpp | C++ | src/xr_3da/xrGame/TargetAssault.cpp | ixray-team/ixray-b2945 | ad5ef375994ee9cd790c4144891e9f00e7efe565 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:19.000Z | 2022-03-26T17:00:19.000Z | src/xr_3da/xrGame/TargetAssault.cpp | ixray-team/ixray-b2945 | ad5ef375994ee9cd790c4144891e9f00e7efe565 | [
"Linux-OpenIB"
] | null | null | null | src/xr_3da/xrGame/TargetAssault.cpp | ixray-team/ixray-b2945 | ad5ef375994ee9cd790c4144891e9f00e7efe565 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:21.000Z | 2022-03-26T17:00:21.000Z | #include "stdafx.h"
#include "targetassault.h"
CTargetAssault::CTargetAssault(void)
{
}
CTargetAssault::~CTargetAssault(void)
{
}
| 12.909091 | 38 | 0.697183 | ixray-team |
e655e97ea240a2648c9d9fb388a84dfe3a9aa11d | 270 | cpp | C++ | src/Main.cpp | david-carrera/language-optimization | 961b33e0259e9ec9be50bbe7877d47360129b48d | [
"MIT"
] | null | null | null | src/Main.cpp | david-carrera/language-optimization | 961b33e0259e9ec9be50bbe7877d47360129b48d | [
"MIT"
] | null | null | null | src/Main.cpp | david-carrera/language-optimization | 961b33e0259e9ec9be50bbe7877d47360129b48d | [
"MIT"
] | null | null | null | #include <ParameterCollection.hpp>
#include <LexicalMatrixCSVGenerator.hpp>
int main(int argc, char *argv[]) {
ParameterCollection params;
params.parse(argc, argv);
LexicalMatrixCSVGenerator csv(params);
csv.generate();
return EXIT_SUCCESS;
}
| 20.769231 | 42 | 0.714815 | david-carrera |
e657b5b7b7372232a5aa2fd24ffb0c781e073deb | 6,215 | hpp | C++ | src/pyco_tree/pico_tree/_pyco_tree/map_straits.hpp | Jaybro/pico_tree | c6f7fb798b60452add7d0e940c4a7737cd72a992 | [
"MIT"
] | 23 | 2020-07-19T23:03:01.000Z | 2022-03-07T15:06:26.000Z | src/pyco_tree/pico_tree/_pyco_tree/map_straits.hpp | Jaybro/pico_tree | c6f7fb798b60452add7d0e940c4a7737cd72a992 | [
"MIT"
] | 1 | 2021-01-26T16:53:16.000Z | 2021-01-26T23:20:54.000Z | src/pyco_tree/pico_tree/_pyco_tree/map_straits.hpp | Jaybro/pico_tree | c6f7fb798b60452add7d0e940c4a7737cd72a992 | [
"MIT"
] | 4 | 2021-03-04T14:03:28.000Z | 2021-05-27T05:36:40.000Z | #pragma once
#include <pico_tree/core.hpp>
namespace pico_tree {
template <typename Scalar_, int Dim_>
class PointMap;
namespace internal {
template <typename Scalar_, int Dim_>
class PointMapBase {
public:
static_assert(
Dim_ == kDynamicDim || Dim_ > 0,
"SPATIAL_DIMENSION_MUST_DYNAMIC_OR_LARGER_THA... | 31.388889 | 80 | 0.721802 | Jaybro |
e657e3d1bdcd9d9c608190baf3291280f46c8898 | 18,780 | hpp | C++ | templates/riscv-csr.hpp | five-embeddev/riscv-csr-access | 998876885bf6fced2095d034972c82a9bb878ae0 | [
"Unlicense"
] | 2 | 2021-06-15T03:16:52.000Z | 2022-03-06T15:23:39.000Z | templates/riscv-csr.hpp | five-embeddev/riscv-csr-access | 998876885bf6fced2095d034972c82a9bb878ae0 | [
"Unlicense"
] | null | null | null | templates/riscv-csr.hpp | five-embeddev/riscv-csr-access | 998876885bf6fced2095d034972c82a9bb878ae0 | [
"Unlicense"
] | null | null | null | /*
Register access classes for RISC-V system registers.
SPDX-License-Identifier: Unlicense
https://five-embeddev.com/
*/
#ifndef RISCV_CSR_HPP
#define RISCV_CSR_HPP
#include <cstdint>
// ------------------------------------------------------------------------
// Base and common classes
namespace riscv {
... | 41.733333 | 105 | 0.456816 | five-embeddev |
e658f300d2b7229d81969c983cd015dfec01adc2 | 6,096 | cpp | C++ | cpp/libs/src/opendnp3/outstation/Database.cpp | sidhoda/dnp3 | 0469f308cb3321e8f5b57ccc2e26a34eb430941c | [
"Apache-2.0"
] | null | null | null | cpp/libs/src/opendnp3/outstation/Database.cpp | sidhoda/dnp3 | 0469f308cb3321e8f5b57ccc2e26a34eb430941c | [
"Apache-2.0"
] | null | null | null | cpp/libs/src/opendnp3/outstation/Database.cpp | sidhoda/dnp3 | 0469f308cb3321e8f5b57ccc2e26a34eb430941c | [
"Apache-2.0"
] | null | null | null | /*
* Licensed to Green Energy Corp (www.greenenergycorp.com) under one or
* more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
* Green Energy Corp licenses this file to you under the Apache License,
* Version 2.0 (the "Lic... | 25.721519 | 141 | 0.739009 | sidhoda |
e6595de9170536bc7a187bee370ae363cca68d1c | 1,013 | cpp | C++ | SimpleEngine3D/core/graphic/shadow_buffer.cpp | lukaszlipski/SimpleEngine3D | 8fd81ff17512eed7f84e0b18e94c1a7f9754f573 | [
"Apache-2.0"
] | 1 | 2021-08-31T01:45:11.000Z | 2021-08-31T01:45:11.000Z | SimpleEngine3D/core/graphic/shadow_buffer.cpp | lukaszlipski/SimpleEngine3D | 8fd81ff17512eed7f84e0b18e94c1a7f9754f573 | [
"Apache-2.0"
] | null | null | null | SimpleEngine3D/core/graphic/shadow_buffer.cpp | lukaszlipski/SimpleEngine3D | 8fd81ff17512eed7f84e0b18e94c1a7f9754f573 | [
"Apache-2.0"
] | null | null | null | #include "shadow_buffer.h"
#include "../system/graphics.h"
namespace SE3D
{
ShadowBuffer::ShadowBuffer(int32 width, int32 height)
: m_Width(width), m_Height(height), m_DepthMap(width, height, TextureSettings(ImageFormat::DEPTH_COMPONENT, InternalFormat::DEPTH_COMPONENT, ImageType::FLOAT, TextureFilter::NEAREST, Te... | 25.974359 | 246 | 0.766041 | lukaszlipski |
e65d6c3a2f5f8039b408a9aa2c3cba65c31d766f | 2,183 | cpp | C++ | Day3/Part2/main.cpp | jgomezselles/aoc_2021 | 6901a4a249263d328ae43934f099a276b7ef0b41 | [
"MIT"
] | null | null | null | Day3/Part2/main.cpp | jgomezselles/aoc_2021 | 6901a4a249263d328ae43934f099a276b7ef0b41 | [
"MIT"
] | null | null | null | Day3/Part2/main.cpp | jgomezselles/aoc_2021 | 6901a4a249263d328ae43934f099a276b7ef0b41 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <string>
#include <bitset>
#include <vector>
#include <algorithm>
void remove_with_ones(std::vector<std::bitset<12>> &res, const size_t i)
{
res.erase(std::remove_if(res.begin(), res.end(),
[i](std::bitset<12> bs)
... | 21.83 | 73 | 0.457169 | jgomezselles |
e661e70c94cf2cdfcaf2361a0897bc29c2092b31 | 4,125 | hpp | C++ | Project/Engine/Include/Engine/Application.hpp | lcomstive/PhysicsAssignment | 67a3d1e94411b9cf7350c5cb10d9d7aa33d205f0 | [
"MIT"
] | null | null | null | Project/Engine/Include/Engine/Application.hpp | lcomstive/PhysicsAssignment | 67a3d1e94411b9cf7350c5cb10d9d7aa33d205f0 | [
"MIT"
] | null | null | null | Project/Engine/Include/Engine/Application.hpp | lcomstive/PhysicsAssignment | 67a3d1e94411b9cf7350c5cb10d9d7aa33d205f0 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <chrono>
#include <glm/glm.hpp> // Maths library
#include <glad/glad.h> // Modern OpenGL loader
#include <GLFW/glfw3.h> // Window & input handling
#include <Engine/Log.hpp> // Console logging
#include <Engine/Input.hpp> // Handles keyboard & mouse input
#include <Engine/Scene.... | 25.78125 | 149 | 0.675394 | lcomstive |
e66418a9b23fd517c7f61465c2e635661535614f | 325 | cpp | C++ | Vulkan Renderer/main.cpp | Javernus/3D-Engine | 8fe6fc7464153cd57086cf8264547cd0573d5e44 | [
"MIT"
] | null | null | null | Vulkan Renderer/main.cpp | Javernus/3D-Engine | 8fe6fc7464153cd57086cf8264547cd0573d5e44 | [
"MIT"
] | null | null | null | Vulkan Renderer/main.cpp | Javernus/3D-Engine | 8fe6fc7464153cd57086cf8264547cd0573d5e44 | [
"MIT"
] | null | null | null | //
// main.cpp
// Vulkan Renderer
//
// Created by Jake Jongejans on 13/11/2021.
//
#include "main.hpp"
#include "VKRenderer/VKRenderer.hpp"
int main() {
VKRenderer app;
try {
app.run();
} catch (const std::exception& e) {
std::cerr << e.what() << std::endl;
return EXIT_FAILURE;
}
return EXIT_SUCCES... | 14.130435 | 44 | 0.627692 | Javernus |
e66f0fa259a39793b2ae63c2fb7ae8e900527e45 | 2,642 | cpp | C++ | DeusServer/SerializableSkillComponent.cpp | Suliac/ProjectDeusServer | b7af922a6bc2596c733665898b6aefd989bf2270 | [
"MIT"
] | null | null | null | DeusServer/SerializableSkillComponent.cpp | Suliac/ProjectDeusServer | b7af922a6bc2596c733665898b6aefd989bf2270 | [
"MIT"
] | null | null | null | DeusServer/SerializableSkillComponent.cpp | Suliac/ProjectDeusServer | b7af922a6bc2596c733665898b6aefd989bf2270 | [
"MIT"
] | null | null | null | #include "SerializableSkillComponent.h"
namespace DeusServer
{
SerializableSkillComponent::SerializableSkillComponent(Id componentId, GameObjectComponent::EComponentType componentType, const std::shared_ptr<const DeusCore::SkillInfos> originValue, uint32_t originMs, const std::shared_ptr<const DeusCore::SkillInfo... | 35.702703 | 297 | 0.768357 | Suliac |
e670dec6e454099e0a9dc7eb0759a5773384b956 | 2,482 | cpp | C++ | Chapter_4_Graph/SSSP/kattis_hidingplaces.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | 2 | 2021-12-29T04:12:59.000Z | 2022-03-30T09:32:19.000Z | Chapter_4_Graph/SSSP/kattis_hidingplaces.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | null | null | null | Chapter_4_Graph/SSSP/kattis_hidingplaces.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | 1 | 2022-03-01T06:12:46.000Z | 2022-03-01T06:12:46.000Z | /* Kattis - hidingplaces
This is probably the most basic of knightmove questions, if not for the fact that we have to do
conversion from the file and rank indexing to regular 0 indexing, do the BFS, then convert back, then
custom sort.
Also, apparently kattis allows for extra trailing spaces in the output, thats good ... | 26.978261 | 101 | 0.49033 | BrandonTang89 |
e6778d97e671ada2f0976b5baa662e4701c87135 | 1,361 | cpp | C++ | 10803.cpp | felikjunvianto/kfile-uvaoj-submissions | 5bd8b3b413ca8523abe412b0a0545f766f70ce63 | [
"MIT"
] | null | null | null | 10803.cpp | felikjunvianto/kfile-uvaoj-submissions | 5bd8b3b413ca8523abe412b0a0545f766f70ce63 | [
"MIT"
] | null | null | null | 10803.cpp | felikjunvianto/kfile-uvaoj-submissions | 5bd8b3b413ca8523abe412b0a0545f766f70ce63 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cmath>
#include <iostream>
#include <string>
#include <cstring>
#include <algorithm>
#include <vector>
#include <utility>
#include <stack>
#include <queue>
#include <map>
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define pi 2*acos(0.0)
#de... | 20.014706 | 66 | 0.540044 | felikjunvianto |
e679d70d54a0fcbb3c941c844d34f522ab6a4eaa | 6,529 | cc | C++ | tests/catch/unit/memory/hipDrvPtrGetAttributes.cc | FMarno/HIP | f0e03e9d45d9ad2c15bf5ec4d44452f17216ade8 | [
"MIT"
] | null | null | null | tests/catch/unit/memory/hipDrvPtrGetAttributes.cc | FMarno/HIP | f0e03e9d45d9ad2c15bf5ec4d44452f17216ade8 | [
"MIT"
] | null | null | null | tests/catch/unit/memory/hipDrvPtrGetAttributes.cc | FMarno/HIP | f0e03e9d45d9ad2c15bf5ec4d44452f17216ade8 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2022 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 limitation the rights
to use, copy, m... | 36.887006 | 116 | 0.704855 | FMarno |
e67abb269c958091646df8d5140bd5812ed897cc | 1,766 | cpp | C++ | core/src/jni/jni/AlgorandAssetAmount.cpp | hlafet-ledger/lib-ledger-core | 44d21837e51cb6dfdecb4af4a674cae0aee9f06d | [
"MIT"
] | 92 | 2016-11-13T01:28:34.000Z | 2022-03-25T01:11:37.000Z | core/src/jni/jni/AlgorandAssetAmount.cpp | hlafet-ledger/lib-ledger-core | 44d21837e51cb6dfdecb4af4a674cae0aee9f06d | [
"MIT"
] | 242 | 2016-11-28T11:13:09.000Z | 2022-03-04T13:02:53.000Z | core/src/jni/jni/AlgorandAssetAmount.cpp | hlafet-ledger/lib-ledger-core | 44d21837e51cb6dfdecb4af4a674cae0aee9f06d | [
"MIT"
] | 91 | 2017-06-20T10:35:28.000Z | 2022-03-09T14:15:40.000Z | // AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from idl.djinni
#include "AlgorandAssetAmount.hpp" // my header
#include "Marshal.hpp"
namespace djinni_generated {
AlgorandAssetAmount::AlgorandAssetAmount() = default;
AlgorandAssetAmount::~AlgorandAssetAmount() = default;
auto AlgorandAsse... | 50.457143 | 126 | 0.614949 | hlafet-ledger |
e67f8eae922ecebafa302959f5728e3139707edd | 8,547 | hpp | C++ | include/utility/container/detail/tripair_helper.hpp | SakuraLife/utility | b9bf26198917b6dc415520f74eb3eebf8aa8195e | [
"Unlicense"
] | 2 | 2017-12-10T10:59:48.000Z | 2017-12-13T04:11:14.000Z | include/utility/container/detail/tripair_helper.hpp | SakuraLife/utility | b9bf26198917b6dc415520f74eb3eebf8aa8195e | [
"Unlicense"
] | null | null | null | include/utility/container/detail/tripair_helper.hpp | SakuraLife/utility | b9bf26198917b6dc415520f74eb3eebf8aa8195e | [
"Unlicense"
] | null | null | null |
#ifndef __UTILITY_CONTAINER_DETAIL_TRIPAIR_HELPER__
#define __UTILITY_CONTAINER_DETAIL_TRIPAIR_HELPER__
#include<utility/trait/type/transform/decay.hpp>
#include<utility/trait/type/transform/add_cv.hpp>
#include<utility/trait/type/releations/is_convertible.hpp>
#include<utility/trait/type/features/is_constructible.hp... | 36.063291 | 73 | 0.64315 | SakuraLife |
e681e16bf5bf7ed559c5abf4f6d4eafc2f6cda2f | 469 | cpp | C++ | competitive_programming/learning_c++/primer/3_vectors/begin_end_functions_arrays.cpp | CristoferNava/Algorithms-and-DataStructures | ab561bcaf9ac31feaaf32463f08c3162188c3b3f | [
"MIT"
] | null | null | null | competitive_programming/learning_c++/primer/3_vectors/begin_end_functions_arrays.cpp | CristoferNava/Algorithms-and-DataStructures | ab561bcaf9ac31feaaf32463f08c3162188c3b3f | [
"MIT"
] | null | null | null | competitive_programming/learning_c++/primer/3_vectors/begin_end_functions_arrays.cpp | CristoferNava/Algorithms-and-DataStructures | ab561bcaf9ac31feaaf32463f08c3162188c3b3f | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int nums[] = {1, 2, 3, 4, 5};
int *b = begin(nums); // pointer to the first element in nums
int *e = end(nums); // pointer one past the last element in nums
// As with iterators, subtracting two pointers give us the distance between
// those p... | 27.588235 | 79 | 0.601279 | CristoferNava |
e68268a099699aa3cfe4473b22331e8865e358a2 | 8,661 | cpp | C++ | tc 160+/PokerDeck.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 3 | 2015-05-25T06:24:37.000Z | 2016-09-10T07:58:00.000Z | tc 160+/PokerDeck.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | null | null | null | tc 160+/PokerDeck.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 5 | 2015-05-25T06:24:40.000Z | 2021-08-19T19:22:29.000Z | #include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
#include <cctype>
#include <map>
#include <utility>
using namespace std;
#define DBG(X) cerr << (#X) << ' ' << (X)
#define DBG_NL(X) cerr << (#X) << ' ... | 32.683019 | 389 | 0.535042 | ibudiselic |
e6889d43ca3f66d591c89c81dbcabfc9cd1932b8 | 1,835 | cpp | C++ | src/UI/dialog.cpp | YeWenting/Travel-Simulation-System | 8c146d2e576ae2ec0e641eb531f19de59bc36e44 | [
"MIT"
] | 5 | 2016-04-09T12:37:46.000Z | 2021-06-11T00:31:57.000Z | src/UI/dialog.cpp | YeWenting/Travel-Simulation-System | 8c146d2e576ae2ec0e641eb531f19de59bc36e44 | [
"MIT"
] | 1 | 2016-04-09T13:09:02.000Z | 2016-04-10T08:02:02.000Z | src/UI/dialog.cpp | YeWenting/Travel-Simulation-System | 8c146d2e576ae2ec0e641eb531f19de59bc36e44 | [
"MIT"
] | 2 | 2016-04-16T07:41:23.000Z | 2020-05-11T02:25:59.000Z | #include "dialog.h"
#include "ui_dialog.h"
#include<sstream>
Dialog::Dialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::Dialog)
{
ui->setupUi(this);
setAttribute(Qt::WA_DeleteOnClose);
init_connection();
}
Dialog::~Dialog()
{
delete ui;
}
void Dialog::accept()
{
... | 22.654321 | 98 | 0.549864 | YeWenting |
e698c88c999f622f63a87478b82b1c9728968999 | 475 | cpp | C++ | code/pkg_Core/Modules/LogWriter/Plugin.cpp | xiaobazhang/plugin | d84ae4c678e8bb44e5c936446984499e1aaa1fac | [
"Apache-1.1"
] | null | null | null | code/pkg_Core/Modules/LogWriter/Plugin.cpp | xiaobazhang/plugin | d84ae4c678e8bb44e5c936446984499e1aaa1fac | [
"Apache-1.1"
] | null | null | null | code/pkg_Core/Modules/LogWriter/Plugin.cpp | xiaobazhang/plugin | d84ae4c678e8bb44e5c936446984499e1aaa1fac | [
"Apache-1.1"
] | null | null | null | // x3c - C++ PluginFramework
#include <UtilFunc/PluginInc.h>
#include "LogObserver.h"
static CLogObserver* s_pObserver = NULL;
OUTAPI bool x3InitializePlugin()
{
if (!s_pObserver)
{
s_pObserver = new CLogObserver;
}
return true;
}
OUTAPI void x3UninitializePlugin()
{
x3::SafeDelete(s_pOb... | 15.322581 | 40 | 0.665263 | xiaobazhang |
e6a3db95057ce60d4c6eea2d0b13007f5e9be0bf | 532 | cpp | C++ | src/15000/15993.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | 8 | 2018-04-12T15:54:09.000Z | 2020-06-05T07:41:15.000Z | src/15000/15993.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | src/15000/15993.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define MOD 1000000009
using namespace std;
int dp[2][100001];
bool v[2][100001];
int solve(int c, int n)
{
if(n<=0) return 0;
if(v[c][n]) return dp[c][n];
v[c][n]=1;
return dp[c][n]=(((solve(!c, n-1)+solve(!c, n-2))%MOD)+solve(!c, n-3))%MOD;
}
int main()
{
ios_base::sync_with_stdio(0);
... | 17.16129 | 76 | 0.528195 | upple |
e6a4d7441199393783a2c18446c7ae71361c853d | 16,416 | cc | C++ | wrspice/devlib/vbic/vbicnois.cc | wrcad/xictools | f46ba6d42801426739cc8b2940a809b74f1641e2 | [
"Apache-2.0"
] | 73 | 2017-10-26T12:40:24.000Z | 2022-03-02T16:59:43.000Z | wrspice/devlib/vbic/vbicnois.cc | chris-ayala/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | 12 | 2017-11-01T10:18:22.000Z | 2022-03-20T19:35:36.000Z | wrspice/devlib/vbic/vbicnois.cc | chris-ayala/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | 34 | 2017-10-06T17:04:21.000Z | 2022-02-18T16:22:03.000Z |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... | 48.712166 | 107 | 0.428119 | wrcad |
e6b0f9b285cee58270e611e03c61e8cba7430b00 | 838 | cpp | C++ | libs/core/src/to_std_wstring_locale.cpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 13 | 2015-02-21T18:35:14.000Z | 2019-12-29T14:08:29.000Z | libs/core/src/to_std_wstring_locale.cpp | cpreh/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 5 | 2016-08-27T07:35:47.000Z | 2019-04-21T10:55:34.000Z | libs/core/src/to_std_wstring_locale.cpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 8 | 2015-01-10T09:22:37.000Z | 2019-12-01T08:31:12.000Z | // Copyright Carl Philipp Reh 2009 - 2021.
// 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 <fcppt/public_config.hpp>
#include <fcppt/string_view.hpp>
#include <fcppt/to_std_wstring_... | 26.1875 | 61 | 0.743437 | freundlich |
e6b2d28353e5261b9b859241d03a3bb940724a03 | 1,648 | hh | C++ | src/context/StateMovingUnit.hh | zermingore/warevolved | efd0c506658ce6e4ecb6c7eb5bb7d620bc05fd52 | [
"MIT"
] | 1 | 2019-09-23T18:16:27.000Z | 2019-09-23T18:16:27.000Z | src/context/StateMovingUnit.hh | zermingore/warevolved | efd0c506658ce6e4ecb6c7eb5bb7d620bc05fd52 | [
"MIT"
] | 2 | 2018-11-12T18:48:03.000Z | 2018-11-15T21:10:02.000Z | src/context/StateMovingUnit.hh | zermingore/warevolved | efd0c506658ce6e4ecb6c7eb5bb7d620bc05fd52 | [
"MIT"
] | null | null | null | /**
* \file
* \date November 25, 2016
* \author Zermingore
* \brief StateMovingUnit class declaration
*/
#ifndef STATE_MOVING_UNIT_HH_
# define STATE_MOVING_UNIT_HH_
# include <memory>
# include <context/State.hh>
# include <common/using.hh> // Coords
class PathFinding;
namespace graphics {
class Sprite;
}
... | 18.942529 | 72 | 0.679005 | zermingore |
e6b4327a4cd97178a2ff00bf7aa3cee6b639ecdb | 758 | hpp | C++ | src/common/interfaces/views/imaineditorview.hpp | squeevee/Addle | 20ec4335669fbd88d36742f586899d8416920959 | [
"MIT"
] | 3 | 2020-03-05T06:36:51.000Z | 2020-06-20T03:25:02.000Z | src/common/interfaces/views/imaineditorview.hpp | squeevee/Addle | 20ec4335669fbd88d36742f586899d8416920959 | [
"MIT"
] | 13 | 2020-03-11T17:43:42.000Z | 2020-12-11T03:36:05.000Z | src/common/interfaces/views/imaineditorview.hpp | squeevee/Addle | 20ec4335669fbd88d36742f586899d8416920959 | [
"MIT"
] | 1 | 2020-09-28T06:53:46.000Z | 2020-09-28T06:53:46.000Z | /**
* Addle source code
* @file
* @copyright Copyright 2020 Eleanor Hawk
* @copyright Modification and distribution permitted under the terms of the
* MIT License. See "LICENSE" for full details.
*/
#ifndef IMAINEDITORVIEW_HPP
#define IMAINEDITORVIEW_HPP
#include "itoplevelview.hpp"
#include "interfaces/traits... | 21.055556 | 76 | 0.76781 | squeevee |
e6ba2a3fb9f784b7124c4612b3d4a873d3f9e1e3 | 1,762 | cpp | C++ | aws-cpp-sdk-migrationhubstrategy/source/model/SourceCodeRepository.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-migrationhubstrategy/source/model/SourceCodeRepository.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2021-10-14T16:57:00.000Z | 2021-10-18T10:47:24.000Z | aws-cpp-sdk-migrationhubstrategy/source/model/SourceCodeRepository.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/migrationhubstrategy/model/SourceCodeRepository.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
nam... | 19.577778 | 74 | 0.745743 | perfectrecall |
e6bac368660258c06e8b44bb7f52dc6001ee7af2 | 3,495 | cpp | C++ | HashTable.cpp | dsackinger/dht | 896acace326d45de1f5be472f3cc1a05fd66ee0d | [
"MIT"
] | null | null | null | HashTable.cpp | dsackinger/dht | 896acace326d45de1f5be472f3cc1a05fd66ee0d | [
"MIT"
] | null | null | null | HashTable.cpp | dsackinger/dht | 896acace326d45de1f5be472f3cc1a05fd66ee0d | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////////////////
// HashTable.cpp
//
// Copyright (C) 2018 Dan Sackinger - All Rights Reserved
// You may use, distribute and modify this code under the
// terms of the MIT license.
//
// Implementation of the HashTable class
#include "HashTable.h"
#include <... | 22.403846 | 80 | 0.656938 | dsackinger |
e6bbfa58d18b07a370e618d1c78e0b853d670b96 | 14,889 | cpp | C++ | Frameworks/SnoizeMIDISpy/Driver/MessagePortBroadcaster.cpp | anthroid/MIDIApps | 0ff430c0188deb1cfc530e1a8566506d59d5750c | [
"BSD-3-Clause"
] | 449 | 2015-01-04T21:06:04.000Z | 2022-03-23T09:28:51.000Z | Frameworks/SnoizeMIDISpy/Driver/MessagePortBroadcaster.cpp | anthroid/MIDIApps | 0ff430c0188deb1cfc530e1a8566506d59d5750c | [
"BSD-3-Clause"
] | 74 | 2015-01-04T08:30:22.000Z | 2022-03-31T01:16:39.000Z | Frameworks/SnoizeMIDISpy/Driver/MessagePortBroadcaster.cpp | anthroid/MIDIApps | 0ff430c0188deb1cfc530e1a8566506d59d5750c | [
"BSD-3-Clause"
] | 90 | 2015-01-04T21:06:12.000Z | 2022-01-29T18:16:21.000Z | /*
Copyright (c) 2001-2004, Kurt Revis. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the fol... | 38.572539 | 755 | 0.735845 | anthroid |
e6bc41e102a376e94d419d0802de927946cb7ca3 | 9,892 | cpp | C++ | droneBrainROSModule/src/source/thisswarmagentinterface.cpp | MorS25/cvg_quadrotor_swarm | da75d02049163cf65fd7305bc46a16359a851c7c | [
"BSD-3-Clause"
] | null | null | null | droneBrainROSModule/src/source/thisswarmagentinterface.cpp | MorS25/cvg_quadrotor_swarm | da75d02049163cf65fd7305bc46a16359a851c7c | [
"BSD-3-Clause"
] | null | null | null | droneBrainROSModule/src/source/thisswarmagentinterface.cpp | MorS25/cvg_quadrotor_swarm | da75d02049163cf65fd7305bc46a16359a851c7c | [
"BSD-3-Clause"
] | null | null | null | #include "thisswarmagentinterface.h"
ThisSwarmAgentInterface::ThisSwarmAgentInterface() :
state_estimator( std::string(MODULE_NAME_ODOMETRY_STATE_ESTIMATOR), ModuleNames::ODOMETRY_STATE_ESTIMATOR),
trajectory_controller( std::string(MODULE_NAME_TRAJECTORY_CONTROLLER), ModuleNames::TRAJECTORY_CONTROLLER),
a... | 36.367647 | 155 | 0.720077 | MorS25 |
e6c1a420231a3ef8f358941530bd1eda60aba980 | 639 | hpp | C++ | Include/Display.hpp | ShannonHG/CHIP-8-Emulator | 37a69e031d276c3ec0d170c34bcaac0450a91d7e | [
"MIT"
] | 6 | 2021-03-11T13:35:45.000Z | 2022-01-25T06:40:44.000Z | Include/Display.hpp | ShannonHG/CHIP-8-Emulator | 37a69e031d276c3ec0d170c34bcaac0450a91d7e | [
"MIT"
] | null | null | null | Include/Display.hpp | ShannonHG/CHIP-8-Emulator | 37a69e031d276c3ec0d170c34bcaac0450a91d7e | [
"MIT"
] | null | null | null | #pragma once
#include <cstdint>
#include <SDL.h>
namespace SHG
{
class Display
{
public:
static const int LOW_RES_SCREEN_WIDTH = 64;
static const int LOW_RES_SCREEN_HEIGHT = 32;
static const int LOW_RES_PIXEL_COUNT = LOW_RES_SCREEN_WIDTH * LOW_RES_SCREEN_HEIGHT;
Display(int width, int height);
void Clea... | 19.96875 | 86 | 0.72144 | ShannonHG |
e6c4d69dd59045432fb9cebaf42b40ccbb8669da | 149 | cpp | C++ | debug.cpp | negram/kopete_mrim | c75c28a451e17b14edbe4dcd1ff8b261273473a5 | [
"BSD-2-Clause"
] | null | null | null | debug.cpp | negram/kopete_mrim | c75c28a451e17b14edbe4dcd1ff8b261273473a5 | [
"BSD-2-Clause"
] | 1 | 2017-01-16T05:37:28.000Z | 2018-10-22T06:30:29.000Z | debug.cpp | negram/kopete_mrim | c75c28a451e17b14edbe4dcd1ff8b261273473a5 | [
"BSD-2-Clause"
] | null | null | null | #include <kdebug.h>
#include "debug.h"
int kdeDebugArea() {
static int area = KDebug::registerArea("kopete (kopete_mrim)");
return area;
}
| 16.555556 | 67 | 0.671141 | negram |
e6c6bc332b584f46948901690c1427923bcbcec7 | 5,877 | cpp | C++ | cmake-build-debug/mechanisms/allen_catalogue.cpp | anstaf/arbsimd | c4ba87b02b26a47ef33d0a3eba78a4f330c88073 | [
"BSD-3-Clause"
] | null | null | null | cmake-build-debug/mechanisms/allen_catalogue.cpp | anstaf/arbsimd | c4ba87b02b26a47ef33d0a3eba78a4f330c88073 | [
"BSD-3-Clause"
] | null | null | null | cmake-build-debug/mechanisms/allen_catalogue.cpp | anstaf/arbsimd | c4ba87b02b26a47ef33d0a3eba78a4f330c88073 | [
"BSD-3-Clause"
] | null | null | null | // Automatically generated by:
// ../../mechanisms/generate_catalogue -A arbor -I /Users/antonaf/arbor-ws/arbsimd/cmake-build-debug/mechanisms/generated/allen -o /Users/antonaf/arbor-ws/arbsimd/cmake-build-debug/mechanisms/allen_catalogue.cpp -B multicore -C allen -N arb::allen_catalogue CaDynamics Ca_HVA Ca_LVA Ih Im ... | 72.555556 | 340 | 0.797686 | anstaf |
e6ca39ece54612000b643c2dbbdf036fc11a55b1 | 14,705 | cpp | C++ | tket/tests/test_ArchitectureAwareSynthesis.cpp | CQCL/tket | 3f3d7c24d9a6c9cfd85966c13dcccc8a13f92adb | [
"Apache-2.0"
] | 104 | 2021-09-15T08:16:25.000Z | 2022-03-28T21:19:00.000Z | tket/tests/test_ArchitectureAwareSynthesis.cpp | CQCL/tket | 3f3d7c24d9a6c9cfd85966c13dcccc8a13f92adb | [
"Apache-2.0"
] | 109 | 2021-09-16T17:14:22.000Z | 2022-03-29T06:48:40.000Z | tket/tests/test_ArchitectureAwareSynthesis.cpp | CQCL/tket | 3f3d7c24d9a6c9cfd85966c13dcccc8a13f92adb | [
"Apache-2.0"
] | 8 | 2021-10-02T13:47:34.000Z | 2022-03-17T15:36:56.000Z | // Copyright 2019-2022 Cambridge Quantum Computing
//
// 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... | 39.52957 | 78 | 0.63033 | CQCL |
e6cbad994f70ad28aa9e8b8d49677ae9879b62d9 | 1,249 | cpp | C++ | Contest Volumes/Volume 100/10070 - Leap Year or Not Leap Year and ...cpp | Md-Shamim-Ahmmed/UVA-Online-Judge-Problems-Solution | 2334edb153a134aebb883b57d8b4faf0cb859331 | [
"MIT"
] | null | null | null | Contest Volumes/Volume 100/10070 - Leap Year or Not Leap Year and ...cpp | Md-Shamim-Ahmmed/UVA-Online-Judge-Problems-Solution | 2334edb153a134aebb883b57d8b4faf0cb859331 | [
"MIT"
] | null | null | null | Contest Volumes/Volume 100/10070 - Leap Year or Not Leap Year and ...cpp | Md-Shamim-Ahmmed/UVA-Online-Judge-Problems-Solution | 2334edb153a134aebb883b57d8b4faf0cb859331 | [
"MIT"
] | null | null | null | #include<cstring>
#include<sstream>
#include<iostream>
#include<algorithm>
#include<bits/stdc++.h>
#define FOR(i, len) for(int i = 0; i < len; i++)
#define br "\n"
using namespace std;
int main()
{
string str;
int p = 0;
while (cin >> str)
{
int test4, test15, test55, test100, test400;
int huluculu = 0, buluku... | 20.145161 | 51 | 0.508407 | Md-Shamim-Ahmmed |
e6d8f10ce875061afe20c782d4e8875b98f3267f | 524 | cpp | C++ | Algorithms/Math/Permutation_and_Combination/prev_permutation.cpp | TheMartian73/Data-Structure-and-Algorithm | 8a37ad3f5d3cfc65b02240c4a5b2bdd30763143e | [
"MIT"
] | null | null | null | Algorithms/Math/Permutation_and_Combination/prev_permutation.cpp | TheMartian73/Data-Structure-and-Algorithm | 8a37ad3f5d3cfc65b02240c4a5b2bdd30763143e | [
"MIT"
] | 3 | 2020-07-02T15:42:05.000Z | 2020-07-06T19:49:52.000Z | Algorithms/Math/Permutation_and_Combination/prev_permutation.cpp | TheMartian73/Data-Structure-and-Algorithm | 8a37ad3f5d3cfc65b02240c4a5b2bdd30763143e | [
"MIT"
] | 2 | 2020-07-26T14:21:02.000Z | 2020-10-01T08:36:37.000Z | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
bool PrevPermutation(string &str) {
int n = str.size();
int i = n - 1;
while(i && str[i - 1] <= str[i])
i--;
if (!i) return false;
int j = i + 1;
while(j < n && str[i - 1] >= str[j])
j++;
swap(str[i - 1], str[j-1]... | 16.903226 | 47 | 0.540076 | TheMartian73 |
e6da19e42f0003fda0fba76afe32142263699f86 | 258 | tpp | C++ | BCC__BCC36B__P[3]__HenriqueMarcuzzo_2046334/impl/semantica-testes/sema-005.tpp | hmarcuzzo/compiler_project | 2463d19c2b81ba28a943974828e8bb5954424cac | [
"Apache-2.0"
] | null | null | null | BCC__BCC36B__P[3]__HenriqueMarcuzzo_2046334/impl/semantica-testes/sema-005.tpp | hmarcuzzo/compiler_project | 2463d19c2b81ba28a943974828e8bb5954424cac | [
"Apache-2.0"
] | null | null | null | BCC__BCC36B__P[3]__HenriqueMarcuzzo_2046334/impl/semantica-testes/sema-005.tpp | hmarcuzzo/compiler_project | 2463d19c2b81ba28a943974828e8bb5954424cac | [
"Apache-2.0"
] | 4 | 2020-12-11T10:12:37.000Z | 2021-11-01T18:34:25.000Z | {Erro: Chamada à função 'func' com número de parâmetros menor que o declarado}
{Erro: Função principal deveria retornar inteiro, mas retorna vazio}
inteiro func(inteiro: x, inteiro: y)
retorna(x + y)
fim
inteiro principal()
inteiro: a
a := func(10)
fim
| 21.5 | 78 | 0.736434 | hmarcuzzo |
5c8658717285470ab2efbbcacc3a69010673e072 | 282 | cpp | C++ | test/text_charconv_helper_test.cpp | PazerOP/stuff | 8ef31153dce1c9593d59fe7fb731fca4d15f3fa6 | [
"MIT"
] | null | null | null | test/text_charconv_helper_test.cpp | PazerOP/stuff | 8ef31153dce1c9593d59fe7fb731fca4d15f3fa6 | [
"MIT"
] | 4 | 2020-01-04T02:26:00.000Z | 2020-04-19T10:46:50.000Z | test/text_charconv_helper_test.cpp | PazerOP/stuff | 8ef31153dce1c9593d59fe7fb731fca4d15f3fa6 | [
"MIT"
] | null | null | null | #include "catch2/repo/single_include/catch2/catch.hpp"
#ifdef __cpp_lib_to_chars
#include "mh/text/charconv_helper.hpp"
TEST_CASE("charconv helpers", "[text][charconv_helper]")
{
std::string test;
test << "Hello" << " world" << " !";
REQUIRE(test == "Hello world !");
}
#endif
| 21.692308 | 56 | 0.691489 | PazerOP |
5c8718f61f9d4e71130bc73302e3dbfbbdc35d1a | 1,640 | cpp | C++ | src/tests/IPFSTest.cpp | blockfrost/blockfrost-arduino | 04525e01dd535c167cc97232670809cac2575ee3 | [
"Apache-2.0"
] | 7 | 2021-12-15T12:11:21.000Z | 2022-01-25T13:29:04.000Z | src/tests/IPFSTest.cpp | blockfrost/blockfrost-arduino | 04525e01dd535c167cc97232670809cac2575ee3 | [
"Apache-2.0"
] | null | null | null | src/tests/IPFSTest.cpp | blockfrost/blockfrost-arduino | 04525e01dd535c167cc97232670809cac2575ee3 | [
"Apache-2.0"
] | null | null | null |
#include "types/IPFS.h"
using namespace Blockfrost;
#include <string>
#include <list>
#include <unity.h>
#include "bourne/json.hpp"
void test_IPFSAdd() {
std::string raw =
"{"
" \"name\": \"README.md\","
" \"ipfs_hash\": \"QmZbHqiCxKEVX7QfijzJTkZiSi3WEVTcvANgNAWzDYgZDr\","
" \"size\": \"125297\... | 26.451613 | 98 | 0.678049 | blockfrost |
5c89ddf65373f3ad4432e3e31c66f72211ef4b6a | 768 | cpp | C++ | CGES/src/texture.cpp | Nao-Shirotsu/Embree_CGES | 6f70984a49c9bf4ad94ed1496ac2dbc314889de8 | [
"Apache-2.0"
] | 2 | 2020-09-25T15:02:23.000Z | 2020-11-27T05:28:20.000Z | CGES/src/texture.cpp | Nao-Shirotsu/Embree-CGES | 6f70984a49c9bf4ad94ed1496ac2dbc314889de8 | [
"Apache-2.0"
] | 30 | 2020-02-26T02:55:30.000Z | 2020-10-18T18:00:12.000Z | CGES/src/texture.cpp | Nao-Shirotsu/Embree-CGES | 6f70984a49c9bf4ad94ed1496ac2dbc314889de8 | [
"Apache-2.0"
] | null | null | null | #include "texture.hpp"
#include "util_texture.hpp"
#include <algorithm>
namespace cges {
Texture::Texture(const char* const filePath)
: m_imageBuffer(tex::LoadFromFile(filePath)) {}
Texture::Texture(const ColorRGBA singleColor)
: m_imageBuffer(1, 1) {
m_imageBuffer[0][0] = singleColor;
}
C... | 27.428571 | 96 | 0.705729 | Nao-Shirotsu |
5c8ec15c46a9e230dc6bc444adbfea30b478cf6e | 2,695 | cpp | C++ | src_test/blockchain/trx/test_transaction_sig.cpp | alinous-core/codable-cash | 32a86a152a146c592bcfd8cc712f4e8cb38ee1a0 | [
"MIT"
] | 1 | 2020-10-15T08:24:35.000Z | 2020-10-15T08:24:35.000Z | src_test/blockchain/trx/test_transaction_sig.cpp | Codablecash/codablecash | 8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9 | [
"MIT"
] | null | null | null | src_test/blockchain/trx/test_transaction_sig.cpp | Codablecash/codablecash | 8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9 | [
"MIT"
] | null | null | null | /*
* test_transaction_sig.cpp
*
* Created on: 2022/03/23
* Author: iizuka
*/
#include "test_utils/t_macros.h"
#include "numeric/BigInteger.h"
#include "bc_address/BlockchainAddressManager.h"
#include "bc_address/BlockchainAddress.h"
#include "base/StackRelease.h"
#include "bc_trx/Transaction.h"
#includ... | 25.186916 | 88 | 0.740631 | alinous-core |
5c942fb923a7063c43faf233f73e183f21e1cce6 | 3,001 | cpp | C++ | maku/render/kernel32_hooker.cpp | shileiyu/maku | be07aa6f804c387aafbd79cdf952bd6a93c18771 | [
"MIT"
] | 10 | 2015-04-09T01:43:28.000Z | 2021-03-29T15:59:01.000Z | maku/render/kernel32_hooker.cpp | shileiyu/maku | be07aa6f804c387aafbd79cdf952bd6a93c18771 | [
"MIT"
] | null | null | null | maku/render/kernel32_hooker.cpp | shileiyu/maku | be07aa6f804c387aafbd79cdf952bd6a93c18771 | [
"MIT"
] | 1 | 2020-07-02T03:52:56.000Z | 2020-07-02T03:52:56.000Z | //without this macro that will lead to confilcit with winsock2 header
//we define it ourself.
#include "kernel32_hooker.h"
#include "detours\detours.h"
#include "detours\detours_ext.h"
#include "ddraw_hooker.h"
//#include "d3d8_hooker.h"
#include "d3d9_hooker.h"
#include "dxgi_hooker.h"
#include "dinput_hooker.h"
#in... | 26.794643 | 73 | 0.634455 | shileiyu |
5ca0f9475a316d1055fd7c7f7093a013e9bc338f | 18,628 | cpp | C++ | src/Wax9.cpp | redpaperheart/Wax9 | 1d3be081727c8aa30f42ea05028e78a9026130cb | [
"Unlicense"
] | 3 | 2016-02-25T15:39:05.000Z | 2019-08-28T20:37:41.000Z | src/Wax9.cpp | redpaperheart/Wax9 | 1d3be081727c8aa30f42ea05028e78a9026130cb | [
"Unlicense"
] | 1 | 2015-02-06T16:51:31.000Z | 2015-04-24T18:20:21.000Z | src/Wax9.cpp | redpaperheart/Wax9 | 1d3be081727c8aa30f42ea05028e78a9026130cb | [
"Unlicense"
] | null | null | null | /*
Created by Adrià Navarro at Red Paper Heart
Copyright (c) 2015, Red Paper Heart
All rights reserved.
This code is designed for use with the Cinder C++ library, http://libcinder.org
To contact Red Paper Heart, email hello@redpaperheart.com or tweet @redpaperhearts
Redistribution and use in source and bi... | 35.015038 | 191 | 0.528989 | redpaperheart |
5ca25b39293854bdcddc2d8d92c5550b052b0b1f | 1,620 | hpp | C++ | ABC_Shadow_cpp/ABCShadow.hpp | quentinl-c/ABC_Shadow_cpp | d65c188703f98d419f006d29c7d8c39e2e1341a8 | [
"MIT"
] | null | null | null | ABC_Shadow_cpp/ABCShadow.hpp | quentinl-c/ABC_Shadow_cpp | d65c188703f98d419f006d29c7d8c39e2e1341a8 | [
"MIT"
] | null | null | null | ABC_Shadow_cpp/ABCShadow.hpp | quentinl-c/ABC_Shadow_cpp | d65c188703f98d419f006d29c7d8c39e2e1341a8 | [
"MIT"
] | null | null | null | //
// ABCShadow.hpp
// ABC_Shadow_cpp
//
// Created by Quentin on 13/01/2020.
// Copyright © 2020 Quentin. All rights reserved.
//
#ifndef ABCShadow_hpp
#define ABCShadow_hpp
#include <iostream>
#include <fstream>
#include "MCMCSim.hpp"
#include "PottsModel.hpp"
#include "RandomGen.hpp"
#include "Stats.hpp"
usin... | 22.191781 | 59 | 0.592593 | quentinl-c |
5caf519e61b79260de483b73f9707c12e7d10ca3 | 5,129 | cpp | C++ | sample/plural_test.cpp | mjukel/spiritless_po | 3a7dc0155aeab627b10ffaf64101590b3cc9f2f3 | [
"BSL-1.0"
] | null | null | null | sample/plural_test.cpp | mjukel/spiritless_po | 3a7dc0155aeab627b10ffaf64101590b3cc9f2f3 | [
"BSL-1.0"
] | null | null | null | sample/plural_test.cpp | mjukel/spiritless_po | 3a7dc0155aeab627b10ffaf64101590b3cc9f2f3 | [
"BSL-1.0"
] | null | null | null | /* sample/plural_test.cpp
Copyright (c) 2019 OOTA, Masato
spiritless_po is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
spiritless_po is d... | 37.992593 | 89 | 0.371027 | mjukel |
5cb58b742662b16686efa7fc4f06e29cdf8c145a | 758 | hpp | C++ | GaiaBehaviorTree/Decorators/If.hpp | GaiaCommittee/GaiaBehaviorTree | dee16450f340024e72e035888a4c1c8e38413795 | [
"MIT"
] | null | null | null | GaiaBehaviorTree/Decorators/If.hpp | GaiaCommittee/GaiaBehaviorTree | dee16450f340024e72e035888a4c1c8e38413795 | [
"MIT"
] | null | null | null | GaiaBehaviorTree/Decorators/If.hpp | GaiaCommittee/GaiaBehaviorTree | dee16450f340024e72e035888a4c1c8e38413795 | [
"MIT"
] | null | null | null | #pragma once
#include "ConditionalDecorator.hpp"
namespace Gaia::BehaviorTree::Decorators
{
/**
* @brief Behavior decorated by If will only be executed when condition of If returns Result::Success.
*/
class If : public ConditionalDecorator
{
REFLECT_TYPE(Gaia::BehaviorTree::Decorators, C... | 30.32 | 106 | 0.613456 | GaiaCommittee |
5cb7812d5746169d432ce9c54fd2e3857b93e5b7 | 1,118 | hpp | C++ | matrix.hpp | a12n/rematrix | e539a5573a99665ba7b21e1c2114508060dcd163 | [
"MIT"
] | 2 | 2022-01-15T16:27:05.000Z | 2022-01-15T16:48:03.000Z | matrix.hpp | a12n/rematrix | e539a5573a99665ba7b21e1c2114508060dcd163 | [
"MIT"
] | null | null | null | matrix.hpp | a12n/rematrix | e539a5573a99665ba7b21e1c2114508060dcd163 | [
"MIT"
] | null | null | null | #ifndef REMATRIX_MATRIX_HPP
#define REMATRIX_MATRIX_HPP
#include <cmath>
#include "decl.hpp"
namespace rematrix {
using vec3 = array<float, 3>;
using vec4 = array<float, 4>;
using mat4 = array<vec4, 4>;
inline const mat4 identity{
{ { 1.0f, 0.0f, 0.0f, 0.0f },
{ 0.0f, 1.0f, 0.0f, 0.0f },
{ 0.0f, 0.... | 21.09434 | 67 | 0.54025 | a12n |
5cbc9fc3706029aac642e2e5769aae34233a6368 | 395 | hpp | C++ | cpp/include/ITimer.hpp | skydiveuas/skylync | 73db7fe4593e262a1fc1a7b61c18190275abe723 | [
"MIT"
] | 1 | 2018-06-06T20:33:28.000Z | 2018-06-06T20:33:28.000Z | cpp/include/ITimer.hpp | skydiveuas/skylync | 73db7fe4593e262a1fc1a7b61c18190275abe723 | [
"MIT"
] | null | null | null | cpp/include/ITimer.hpp | skydiveuas/skylync | 73db7fe4593e262a1fc1a7b61c18190275abe723 | [
"MIT"
] | 1 | 2020-07-31T03:39:15.000Z | 2020-07-31T03:39:15.000Z | #ifndef ITIMER_HPP
#define ITIMER_HPP
#include <functional>
namespace sl
{
class ITimer
{
public:
typedef std::function<void(void)> Task;
typedef size_t Milisec;
virtual ~ITimer();
virtual void callEvery(const Milisec interval, Task task) = 0;
virtual void callAfter(const Milisec timeout, Task ... | 15.192308 | 66 | 0.683544 | skydiveuas |
5cbe1b10a50be180d101cc9788d70f0c11e6e42a | 4,446 | cpp | C++ | geopdf/src/ossimGeoPdfReaderFactory.cpp | dardok/ossim-plugins | 3406ffed9fcab88fe4175b845381611ac4122c81 | [
"MIT"
] | 12 | 2016-09-09T01:24:12.000Z | 2022-01-09T21:45:58.000Z | geopdf/src/ossimGeoPdfReaderFactory.cpp | dardok/ossim-plugins | 3406ffed9fcab88fe4175b845381611ac4122c81 | [
"MIT"
] | 5 | 2016-02-04T16:10:40.000Z | 2021-06-29T05:00:29.000Z | geopdf/src/ossimGeoPdfReaderFactory.cpp | dardok/ossim-plugins | 3406ffed9fcab88fe4175b845381611ac4122c81 | [
"MIT"
] | 20 | 2015-11-17T11:46:22.000Z | 2021-11-12T19:23:54.000Z | //----------------------------------------------------------------------------
//
// License: See top level LICENSE.txt file
//
// Author: Mingjie Su
//
// Description: Factory for OSSIM GeoPdf reader using kakadu library.
//----------------------------------------------------------------------------
// $Id: ossimGeo... | 25.699422 | 113 | 0.694107 | dardok |
5cbf1d44160834b551076d95d8e5ed5a9e9cad94 | 407 | cpp | C++ | apronin_task_3/func_sim/main.cpp | MIPT-ILab/mipt-mips-old-branches | a4e17025999b15d423601cf38a84234c5c037b33 | [
"MIT"
] | 1 | 2018-03-04T21:28:20.000Z | 2018-03-04T21:28:20.000Z | apronin_task_3/func_sim/main.cpp | MIPT-ILab/mipt-mips-old-branches | a4e17025999b15d423601cf38a84234c5c037b33 | [
"MIT"
] | null | null | null | apronin_task_3/func_sim/main.cpp | MIPT-ILab/mipt-mips-old-branches | a4e17025999b15d423601cf38a84234c5c037b33 | [
"MIT"
] | null | null | null | #include <func_sim.h>
#include <func_instr.h>
#include <elf_parser.h>
#include <iostream>
#include <stdlib.h>
using namespace std;
int main( int argc, char** argv) {
if ( argc != 3)
{
cout << "WRONG NUMBER OF ARGUMENT" << endl;
return -1;
}
else
{
MIPS* mips... | 18.5 | 52 | 0.515971 | MIPT-ILab |
5cbf46b5c4c00e632bf7fe0c30d2ea9bc05e0e7f | 14,814 | cpp | C++ | src/hair/main.cpp | nyorain/tokonoma | b3a4264ef4f9f40487c2f3280812bf7513b914bb | [
"MIT"
] | 23 | 2019-07-11T14:47:39.000Z | 2021-12-24T09:56:24.000Z | src/hair/main.cpp | nyorain/tokonoma | b3a4264ef4f9f40487c2f3280812bf7513b914bb | [
"MIT"
] | null | null | null | src/hair/main.cpp | nyorain/tokonoma | b3a4264ef4f9f40487c2f3280812bf7513b914bb | [
"MIT"
] | 4 | 2021-04-06T18:20:43.000Z | 2022-01-15T09:20:45.000Z | #include <tkn/singlePassApp.hpp>
#include <tkn/bits.hpp>
#include <tkn/render.hpp>
#include <tkn/types.hpp>
#include <tkn/geometry.hpp>
#include <argagg.hpp>
#include <vpp/trackedDescriptor.hpp>
#include <vpp/pipeline.hpp>
#include <vpp/queue.hpp>
#include <vpp/submit.hpp>
#include <vpp/commandAllocator.hpp>
#include ... | 30.109756 | 91 | 0.570609 | nyorain |
5cc1435e8d4257af0b823a1f2c22ec1e599a417f | 2,850 | cpp | C++ | samples/RapaPololuMaestroViewer/Main.cpp | jbitoniau/RapaPololuMaestro | d30b0af2108486ddaa9f8ebd4d2c4f48ff821f2b | [
"MIT"
] | 14 | 2015-12-29T09:42:55.000Z | 2021-04-06T07:27:22.000Z | samples/RapaPololuMaestroViewer/Main.cpp | jbitoniau/RapaPololuMaestro | d30b0af2108486ddaa9f8ebd4d2c4f48ff821f2b | [
"MIT"
] | 1 | 2016-01-14T10:54:11.000Z | 2016-01-14T13:12:45.000Z | samples/RapaPololuMaestroViewer/Main.cpp | jbitoniau/RapaPololuMaestro | d30b0af2108486ddaa9f8ebd4d2c4f48ff821f2b | [
"MIT"
] | 10 | 2015-10-06T10:16:44.000Z | 2022-03-14T16:22:56.000Z | /*
The MIT License (MIT) (http://opensource.org/licenses/MIT)
Copyright (c) 2015 Jacques Menuet
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... | 35.185185 | 122 | 0.729474 | jbitoniau |
5cc4cd6d682eeb2569822a86c0c859e1d5fd51ce | 564 | cpp | C++ | Chapter 4/4.35 factorial (B)/4.35 factorial (B)/main.cpp | MarvelousAudio/CPlusPlus-How-to-program-tenth-edition | a667b080938cf964909d79b272f0d863adc300e0 | [
"MIT"
] | null | null | null | Chapter 4/4.35 factorial (B)/4.35 factorial (B)/main.cpp | MarvelousAudio/CPlusPlus-How-to-program-tenth-edition | a667b080938cf964909d79b272f0d863adc300e0 | [
"MIT"
] | null | null | null | Chapter 4/4.35 factorial (B)/4.35 factorial (B)/main.cpp | MarvelousAudio/CPlusPlus-How-to-program-tenth-edition | a667b080938cf964909d79b272f0d863adc300e0 | [
"MIT"
] | null | null | null | //
// main.cpp
// 4.35 factorial (B)
//
// Created by ben haywood on 7/1/20.
// Copyright © 2020 ben haywood. All rights reserved.
//
#include <iostream>
using namespace std;
int main(int argc, const char * argv[]) {
// insert code here...
double e = 2.0;
int input;
cout << "Enter a n... | 17.090909 | 99 | 0.515957 | MarvelousAudio |
5ccd120511d39f1e310e1c62b985a731ec536030 | 2,997 | cpp | C++ | graph-source-code/508-D/9606367.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/508-D/9606367.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/508-D/9606367.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: MS C++
#include<iostream>
#include<algorithm>
#include<vector>
#include<string>
using namespace std;
int const N = 100000;
int n, degIn[N], degOut[N], rnd;
string s;
vector<int> e[N], ans;
vector<char> out;
int get(char c)
{
if(c >= '0' && c <= '9')
return c - '0';
if... | 19.089172 | 61 | 0.397064 | AmrARaouf |
5cd29e22eaf0d3b3e415ca91ff06f6c984adacc8 | 2,817 | cpp | C++ | src/hydra.cpp | pascscha/hydra | 5c301ec9a7a91935f90497558326333afa7b179c | [
"BSD-3-Clause"
] | null | null | null | src/hydra.cpp | pascscha/hydra | 5c301ec9a7a91935f90497558326333afa7b179c | [
"BSD-3-Clause"
] | null | null | null | src/hydra.cpp | pascscha/hydra | 5c301ec9a7a91935f90497558326333afa7b179c | [
"BSD-3-Clause"
] | null | null | null | #include <cstdio>
#include <cstdlib>
#include <exception>
#include <stdexcept>
#include "constants.h"
#include "common.h"
#include "formula.h"
#include "parser.h"
#include "lexer.h"
#include "util.h"
#include "visitors.h"
#include "monitor.h"
#include "trie.h"
Formula *getAST(const char *formula)
{
Formula *fmla... | 21.022388 | 87 | 0.527867 | pascscha |
5cd2d5cbfb17133f8edf22df48d8b5837fce7e27 | 2,881 | hpp | C++ | lib/Engine/Resources/ResourcePath.hpp | psiberx/cp2077-archive-xl | 5e476978d3128980099c2a2aea5258b38b5f3558 | [
"MIT"
] | 7 | 2021-12-03T08:34:26.000Z | 2022-01-29T20:22:59.000Z | lib/Engine/Resources/ResourcePath.hpp | psiberx/cp2077-archivexl | 5e476978d3128980099c2a2aea5258b38b5f3558 | [
"MIT"
] | null | null | null | lib/Engine/Resources/ResourcePath.hpp | psiberx/cp2077-archivexl | 5e476978d3128980099c2a2aea5258b38b5f3558 | [
"MIT"
] | null | null | null | #pragma once
#include <cstdint>
#include <RED4ext/Hashing/FNV1a.hpp>
namespace
{
constexpr char ToLower(const char c)
{
return (c >= 'A' && c <= 'Z') ? c + ('a' - 'A') : c;
}
}
namespace Engine
{
// TODO: Move to RED4ext.SDK
struct ResourcePath
{
constexpr ResourcePath(uint64_t aHash = 0) noexcept
: ... | 21.340741 | 72 | 0.511975 | psiberx |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.