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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b98810f4870287f6a1e2fd2d0ce2ec0d8a238032 | 49 | hpp | C++ | src/boost_icl_type_traits_is_interval.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_icl_type_traits_is_interval.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_icl_type_traits_is_interval.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/icl/type_traits/is_interval.hpp>
| 24.5 | 48 | 0.816327 | miathedev |
b989391bcc15dae56e704806c1f0b06d8f6a6e6b | 1,979 | cpp | C++ | libcaf_core/src/detail/behavior_stack.cpp | dosuperuser/actor-framework | bee96d84bbc95414df5084b2d65f4886ba731558 | [
"BSL-1.0",
"BSD-3-Clause"
] | 4 | 2019-05-03T05:38:15.000Z | 2020-08-25T15:23:19.000Z | libcaf_core/src/detail/behavior_stack.cpp | jsiwek/actor-framework | 06cd2836f4671725cb7eaa22b3cc115687520fc1 | [
"BSL-1.0",
"BSD-3-Clause"
] | 1 | 2021-11-26T13:14:47.000Z | 2021-11-26T16:29:58.000Z | libcaf_core/src/detail/behavior_stack.cpp | jsiwek/actor-framework | 06cd2836f4671725cb7eaa22b3cc115687520fc1 | [
"BSL-1.0",
"BSD-3-Clause"
] | 3 | 2020-05-21T20:54:58.000Z | 2020-06-17T13:44:13.000Z | /******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
... | 43.021739 | 80 | 0.392623 | dosuperuser |
b98ea01e93cb6a724499e6b5e82477f600f8f582 | 868 | cpp | C++ | 7. Binary Search Tree/11-merge-two-binary-trees.cpp | dhruvaop/DSA | 188a0bf8a7e6e2ba9eb321bd5cda88739a5088a0 | [
"MIT"
] | 1 | 2021-09-08T09:19:48.000Z | 2021-09-08T09:19:48.000Z | 7. Binary Search Tree/11-merge-two-binary-trees.cpp | dhruvaop/DSA | 188a0bf8a7e6e2ba9eb321bd5cda88739a5088a0 | [
"MIT"
] | null | null | null | 7. Binary Search Tree/11-merge-two-binary-trees.cpp | dhruvaop/DSA | 188a0bf8a7e6e2ba9eb321bd5cda88739a5088a0 | [
"MIT"
] | null | null | null | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l... | 31 | 93 | 0.554147 | dhruvaop |
b98ede1bf9a620997c1490e99a5cacf351b688ef | 2,305 | cpp | C++ | src/cpp_mmds.cpp | dinarior/maotai | 9d7653f1452eecd5209c5abc311d28dbfaaef439 | [
"MIT"
] | 6 | 2019-10-12T10:23:06.000Z | 2020-09-30T23:18:21.000Z | src/cpp_mmds.cpp | dinarior/maotai | 9d7653f1452eecd5209c5abc311d28dbfaaef439 | [
"MIT"
] | 2 | 2022-01-30T22:00:09.000Z | 2022-01-30T22:00:18.000Z | src/cpp_mmds.cpp | dinarior/maotai | 9d7653f1452eecd5209c5abc311d28dbfaaef439 | [
"MIT"
] | 3 | 2020-02-19T14:32:41.000Z | 2020-09-30T23:18:23.000Z | #include <RcppArmadillo.h>
// [[Rcpp::depends(RcppArmadillo)]]
using namespace Rcpp;
using namespace arma;
using namespace std;
// [[Rcpp::export]]
arma::mat cpp_mmds(arma::mat& D, int ndim, int maxiter, double abstol){
// initialization with CMDS
int N = D.n_rows;
arma::mat D2 = arma::pow(D, 2.0);
arma::mat... | 26.802326 | 99 | 0.519306 | dinarior |
b98f9d5966848918a2b49a963078168e7d93bb38 | 1,504 | cpp | C++ | Punto2/cuerda.cpp | santiagohenao/SantiagoHenao_Taller5 | cdabc8d764b2890a54cdb45199b990c33a3a603f | [
"MIT"
] | null | null | null | Punto2/cuerda.cpp | santiagohenao/SantiagoHenao_Taller5 | cdabc8d764b2890a54cdb45199b990c33a3a603f | [
"MIT"
] | null | null | null | Punto2/cuerda.cpp | santiagohenao/SantiagoHenao_Taller5 | cdabc8d764b2890a54cdb45199b990c33a3a603f | [
"MIT"
] | null | null | null | #include <SFML/Graphics.hpp>
#include <SFML/Keyboard.hpp>
#include <iostream>
#include <vector>
#include <cmath>
#include <fstream>
#include <math.h>
using namespace std;
double T=40.;
double rho=10.;
double L=100.;
double tf=200.;
double dt=0.02; // Elección arbitraria
int main()
{
double c = sqrt(T/rho); // v... | 20.053333 | 110 | 0.549867 | santiagohenao |
b997bc9deef03fc971f5352e18cb694a4f16d69c | 2,866 | hpp | C++ | CSGOSimple/valve_sdk/interfaces/CClientState.hpp | StrafeTool/csgocheat | 94b3d8dd3b3041167c0b0872f9a605ccdfb6f207 | [
"MIT"
] | 1 | 2020-12-22T04:57:48.000Z | 2020-12-22T04:57:48.000Z | CSGOSimple/valve_sdk/interfaces/CClientState.hpp | StrafeTool/csgocheat | 94b3d8dd3b3041167c0b0872f9a605ccdfb6f207 | [
"MIT"
] | null | null | null | CSGOSimple/valve_sdk/interfaces/CClientState.hpp | StrafeTool/csgocheat | 94b3d8dd3b3041167c0b0872f9a605ccdfb6f207 | [
"MIT"
] | null | null | null | #pragma once
#include <cstdint>
// Created with ReClass.NET by KN4CK3R
#pragma pack(push, 1)
class INetChannel
{
public:
char pad_0000[20]; //0x0000
bool m_bProcessingMessages; //0x0014
bool m_bShouldDelete; //0x0015
char pad_0016[2]; //0x0016
int32_t m_nOutSequenceNr;... | 32.942529 | 113 | 0.736567 | StrafeTool |
b99a6d3dd56e5353dba52858940d4ead68e6b55f | 290 | cpp | C++ | ForYou.CodingInterviews/CPlus/ReadBook/ForYou.CodingInterviews.CPlusPlus.PrimerPlus014/Gunslinger.cpp | Gun-Killer/CodingInterviews | 0f06d9f7a79898fbce8a12726bd42077cf7ee071 | [
"MIT"
] | null | null | null | ForYou.CodingInterviews/CPlus/ReadBook/ForYou.CodingInterviews.CPlusPlus.PrimerPlus014/Gunslinger.cpp | Gun-Killer/CodingInterviews | 0f06d9f7a79898fbce8a12726bd42077cf7ee071 | [
"MIT"
] | null | null | null | ForYou.CodingInterviews/CPlus/ReadBook/ForYou.CodingInterviews.CPlusPlus.PrimerPlus014/Gunslinger.cpp | Gun-Killer/CodingInterviews | 0f06d9f7a79898fbce8a12726bd42077cf7ee071 | [
"MIT"
] | null | null | null | #include "Gunslinger.h"
Killer::Gunslinger::Gunslinger(string f_name, string s_name, int c)
:MyPerson14(f_name, s_name), gun_count(c)
{
}
double Killer::Gunslinger::Draw()
{
return 0.0;
}
void Killer::Gunslinger::Show()
{
MyPerson14::Show();
cout << gun_count << endl;
}
| 16.111111 | 67 | 0.665517 | Gun-Killer |
b9a480df1551583b75945e141ae8a9a0b5a4e85f | 158 | hpp | C++ | tests/headers/bitfield-linux-32.hpp | pcwalton/rust-bindgen | fae3dc180fef48cb806b4953bceffd7d15efe587 | [
"BSD-3-Clause"
] | 1,848 | 2018-11-22T06:08:21.000Z | 2022-03-31T10:54:10.000Z | tests/headers/bitfield-linux-32.hpp | pcwalton/rust-bindgen | fae3dc180fef48cb806b4953bceffd7d15efe587 | [
"BSD-3-Clause"
] | 845 | 2016-06-22T21:55:20.000Z | 2018-10-31T15:50:10.000Z | tests/headers/bitfield-linux-32.hpp | pcwalton/rust-bindgen | fae3dc180fef48cb806b4953bceffd7d15efe587 | [
"BSD-3-Clause"
] | 274 | 2018-11-23T17:46:29.000Z | 2022-03-27T04:52:37.000Z | // bindgen-flags: -- --target=i586-unknown-linux
typedef unsigned long long uint64_t;
struct Test {
uint64_t foo;
uint64_t x : 56;
uint64_t y : 8;
};
| 15.8 | 48 | 0.677215 | pcwalton |
b9aa6c9f4559a17bc046c8fe79028662540c8198 | 1,423 | hpp | C++ | include/eagine/ecs/storage_fwd.hpp | matus-chochlik/eagine-ecs | 51a43c5f814e8d916bd917ee2509924efa7f6f38 | [
"BSL-1.0"
] | 103 | 2015-10-15T07:09:22.000Z | 2022-03-20T03:39:32.000Z | include/eagine/ecs/storage_fwd.hpp | matus-chochlik/eagine-ecs | 51a43c5f814e8d916bd917ee2509924efa7f6f38 | [
"BSL-1.0"
] | 11 | 2015-11-25T11:39:49.000Z | 2021-06-18T08:06:06.000Z | include/eagine/ecs/storage_fwd.hpp | matus-chochlik/eagine-ecs | 51a43c5f814e8d916bd917ee2509924efa7f6f38 | [
"BSL-1.0"
] | 10 | 2016-02-28T00:13:20.000Z | 2021-09-06T05:21:38.000Z | /// @file
///
/// Copyright Matus Chochlik.
/// 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 EAGINE_ECS_STORAGE_FWD_HPP
#define EAGINE_ECS_STORAGE_FWD_HPP
namespace eagine::ecs {
template <typename... | 27.365385 | 77 | 0.80253 | matus-chochlik |
b9acbfb6456ebfbb795454d783a047208d037025 | 9,973 | cc | C++ | src/unittest/btree_sindex.cc | rethinkdb/rethinkdb-legacy | e9c37045b46a94a1c918eacf73cdab945a10601d | [
"Apache-2.0"
] | 64 | 2018-09-27T04:30:36.000Z | 2019-02-03T12:53:01.000Z | src/unittest/btree_sindex.cc | rethinkdb/rethinkdb-legacy | e9c37045b46a94a1c918eacf73cdab945a10601d | [
"Apache-2.0"
] | 10 | 2018-09-27T14:36:01.000Z | 2019-01-29T12:59:39.000Z | src/unittest/btree_sindex.cc | rethinkdb/rethinkdb-legacy | e9c37045b46a94a1c918eacf73cdab945a10601d | [
"Apache-2.0"
] | 10 | 2018-10-05T11:42:18.000Z | 2019-02-04T02:35:31.000Z | // Copyright 2010-2014 RethinkDB, all rights reserved.
#include "unittest/gtest.hpp"
#include "arch/io/disk.hpp"
#include "btree/operations.hpp"
#include "btree/reql_specific.hpp"
#include "buffer_cache/alt.hpp"
#include "buffer_cache/blob.hpp"
#include "buffer_cache/cache_balancer.hpp"
#include "containers/uuid.hpp"
... | 31.361635 | 92 | 0.553795 | rethinkdb |
b9ad232d5d3dacef7810023430d39d5295601b42 | 2,313 | hpp | C++ | random_graph/graph.hpp | NachiaVivias/library | 73091ddbb00bc59328509c8f6e662fea2b772994 | [
"CC0-1.0"
] | 69 | 2020-11-06T05:21:42.000Z | 2022-03-29T03:38:35.000Z | random_graph/graph.hpp | NachiaVivias/library | 73091ddbb00bc59328509c8f6e662fea2b772994 | [
"CC0-1.0"
] | 21 | 2020-07-25T04:47:12.000Z | 2022-02-01T14:39:29.000Z | random_graph/graph.hpp | NachiaVivias/library | 73091ddbb00bc59328509c8f6e662fea2b772994 | [
"CC0-1.0"
] | 9 | 2020-11-06T11:55:10.000Z | 2022-03-20T04:45:31.000Z | #pragma once
#include <algorithm>
#include <array>
#include <cassert>
#include <cstdint>
#include <functional>
#include <iostream>
#include <numeric>
#include <random>
#include <set>
#include <vector>
#include "random.hpp"
using namespace std;
// 辺の重みはlong long決め打ち
using W = long long;
// 辺の情報を格納する構造体
struct Edge ... | 21.416667 | 67 | 0.549503 | NachiaVivias |
b9afa21ca1558c6edd07dc6f0ecb8ab742bc7067 | 296 | cpp | C++ | c10e17/c10e17/c10e17.cpp | abicorios/MyCppExercises | e8ca408c1aac6a780eaf92018aa7da4fd692459a | [
"Unlicense"
] | null | null | null | c10e17/c10e17/c10e17.cpp | abicorios/MyCppExercises | e8ca408c1aac6a780eaf92018aa7da4fd692459a | [
"Unlicense"
] | null | null | null | c10e17/c10e17/c10e17.cpp | abicorios/MyCppExercises | e8ca408c1aac6a780eaf92018aa7da4fd692459a | [
"Unlicense"
] | null | null | null | // c10e17.cpp: определяет точку входа для консольного приложения.
//
#include "stdafx.h"
#include <iostream>
class One
{
public:
static double x;
};
double One::x = 3.1415;
class Two
{
public:
static double& y;
};
double&Two::y = One::x;
int main()
{
Two t;
std::cout << t.y<<std::endl;
}
| 11.84 | 65 | 0.648649 | abicorios |
b9b48aa83ab74d9513deb31768e906df33907744 | 790 | cpp | C++ | Viking/Source/Platform/OpenGL/OpenGLIndexBuffer.cpp | BartoszJakubZielonka/Viking | 560ad45ff66bd4e1a3ceaf3f8f7212cc95a0fbd8 | [
"Apache-2.0"
] | null | null | null | Viking/Source/Platform/OpenGL/OpenGLIndexBuffer.cpp | BartoszJakubZielonka/Viking | 560ad45ff66bd4e1a3ceaf3f8f7212cc95a0fbd8 | [
"Apache-2.0"
] | 14 | 2021-01-01T17:03:53.000Z | 2021-05-23T11:45:21.000Z | Viking/Source/Platform/OpenGL/OpenGLIndexBuffer.cpp | BartoszJakubZielonka/Viking | 560ad45ff66bd4e1a3ceaf3f8f7212cc95a0fbd8 | [
"Apache-2.0"
] | null | null | null | #include "vipch.h"
#include "Platform/OpenGL/OpenGLIndexBuffer.h"
#include "glad/gl.h"
#include "Viking/Renderer/Buffer.h"
namespace Viking
{
OpenGLIndexBuffer::OpenGLIndexBuffer(void* data, uint32_t count) : mCount(count)
{
mBuffer = Buffer::copy(data, count);
glCreateBuffers(1, &mRendererI... | 23.235294 | 92 | 0.683544 | BartoszJakubZielonka |
b9b81dae00aae8a07083aa0a2417e72619f45d84 | 7,216 | cpp | C++ | 2_4/out.cpp | k911mipt/made_2019_algo | 5c69073809f0369261b6ab70435209b9cd72c0bd | [
"MIT"
] | null | null | null | 2_4/out.cpp | k911mipt/made_2019_algo | 5c69073809f0369261b6ab70435209b9cd72c0bd | [
"MIT"
] | null | null | null | 2_4/out.cpp | k911mipt/made_2019_algo | 5c69073809f0369261b6ab70435209b9cd72c0bd | [
"MIT"
] | null | null | null | /*
# Задание 2_4. Скользящий максимум
| Ограничение времени | 2 секунды |
|---------------------|----------------------------------|
| Ограничение памяти | 5Mb |
| Ввод | стандартный ввод или input.txt |
| Вывод | стандартный в... | 32.358744 | 143 | 0.498614 | k911mipt |
b9b9102d5a0d19bb4368a4740ec4eff5b0ef4212 | 551 | hpp | C++ | win32/include/swt/widgets/Shell.hpp | deianvn/swt-plus-plus | e85236e8279b4e6f5993d94d1bd14e6fc7e1dd1b | [
"Apache-2.0"
] | null | null | null | win32/include/swt/widgets/Shell.hpp | deianvn/swt-plus-plus | e85236e8279b4e6f5993d94d1bd14e6fc7e1dd1b | [
"Apache-2.0"
] | null | null | null | win32/include/swt/widgets/Shell.hpp | deianvn/swt-plus-plus | e85236e8279b4e6f5993d94d1bd14e6fc7e1dd1b | [
"Apache-2.0"
] | null | null | null | #ifndef SWT_PLUS_PLUS_SHELL_HPP
#define SWT_PLUS_PLUS_SHELL_HPP
#include "Display.hpp"
#include "Widget.hpp"
#include <windows.h>
namespace swt
{
class Shell : public Widget
{
public:
Shell(Display* display);
Shell(Display* display, Widget* parent);
void show();
void setVi... | 19 | 48 | 0.642468 | deianvn |
b9ba98e200b357efba23f398d1e7b0c374193e95 | 5,233 | cpp | C++ | modules/task_2/vanyushkov_m_producer_consumer/producer_consumer.cpp | Stepakrap/pp_2021_autumn | 716803a14183172337d51712fb28fe8e86891a3d | [
"BSD-3-Clause"
] | 1 | 2021-12-09T17:20:25.000Z | 2021-12-09T17:20:25.000Z | modules/task_2/vanyushkov_m_producer_consumer/producer_consumer.cpp | Stepakrap/pp_2021_autumn | 716803a14183172337d51712fb28fe8e86891a3d | [
"BSD-3-Clause"
] | null | null | null | modules/task_2/vanyushkov_m_producer_consumer/producer_consumer.cpp | Stepakrap/pp_2021_autumn | 716803a14183172337d51712fb28fe8e86891a3d | [
"BSD-3-Clause"
] | 3 | 2022-02-23T14:20:50.000Z | 2022-03-30T09:00:02.000Z | // Copyright 2021 Vanyushkov Maxim
#include "../../../modules/task_2/vanyushkov_m_producer_consumer/producer_consumer.h"
#include <chrono> // NOLINT [build/c++11]
#include <thread> // NOLINT [build/c++11]
#include <random>
Consumer::Consumer() {
MPI_Scatter(nullptr, 0, MPI_INT, &resourcesCount, 1, MPI_INT, 0, MP... | 35.842466 | 111 | 0.602905 | Stepakrap |
b9c6d218fcbd62bb0a614e1439877715d124dc81 | 870 | cpp | C++ | serialize.cpp | apankrat/cpp-serializer | 3d7a66c5b641c96b3ebcea7085ca8e88aa560a92 | [
"BSD-2-Clause"
] | 38 | 2019-11-13T19:07:24.000Z | 2022-01-14T20:47:42.000Z | serialize.cpp | apankrat/cpp-serializer | 3d7a66c5b641c96b3ebcea7085ca8e88aa560a92 | [
"BSD-2-Clause"
] | null | null | null | serialize.cpp | apankrat/cpp-serializer | 3d7a66c5b641c96b3ebcea7085ca8e88aa560a92 | [
"BSD-2-Clause"
] | 4 | 2019-11-17T21:50:29.000Z | 2020-12-10T15:25:58.000Z | /*
* CPP Seializer - Fast and simple data serialization for C++.
*
* https://swapped.ch/cpp-serializer
*
* The code is distributed under terms of the BSD license.
* Copyright (c) 2019 Alex Pankratov. All rights reserved.
*/
#include "serialize.h"
void store_size(buffer & buf, size_t n)
{
/*
* va... | 18.510638 | 70 | 0.593103 | apankrat |
844fba905d7b0f422ac8b108f525c990b0ad18d4 | 9,249 | cc | C++ | phasta/phBC.cc | Thomas-Ulrich/core | 1c7bc7ff994c3570ab22b96d37be0c4c993e5940 | [
"BSD-3-Clause"
] | 138 | 2015-01-05T15:50:20.000Z | 2022-02-25T01:09:58.000Z | phasta/phBC.cc | Thomas-Ulrich/core | 1c7bc7ff994c3570ab22b96d37be0c4c993e5940 | [
"BSD-3-Clause"
] | 337 | 2015-08-07T18:24:58.000Z | 2022-03-31T14:39:03.000Z | phasta/phBC.cc | Thomas-Ulrich/core | 1c7bc7ff994c3570ab22b96d37be0c4c993e5940 | [
"BSD-3-Clause"
] | 70 | 2015-01-17T00:58:41.000Z | 2022-02-13T04:58:20.000Z | #include <PCU.h>
#include <lionPrint.h>
#include "phBC.h"
#ifdef HAVE_SIMMETRIX
#include "phAttrib.h"
#include <gmi_sim.h>
#endif
#include "phAxisymmetry.h"
#include <apf.h>
#include <apfMesh.h>
#include <fstream>
#include <sstream>
#include <cstring>
#include <gmi.h>
#include <pcu_util.h>
namespace ph {
bool BC::ope... | 25.980337 | 94 | 0.636717 | Thomas-Ulrich |
84511fb0aaed434564d66be2e4446621dcb2a5bd | 3,072 | cpp | C++ | ext/ruby_mapnik/_mapnik_polygon_symbolizer.rb.cpp | gravitystorm/Ruby-Mapnik | 6e878ca914116ffc3f897cdb3bc94cd0b3c15281 | [
"MIT"
] | 21 | 2015-02-04T17:22:57.000Z | 2021-12-30T22:08:47.000Z | ext/ruby_mapnik/_mapnik_polygon_symbolizer.rb.cpp | gravitystorm/Ruby-Mapnik | 6e878ca914116ffc3f897cdb3bc94cd0b3c15281 | [
"MIT"
] | 20 | 2015-04-14T16:43:53.000Z | 2019-10-01T16:18:50.000Z | ext/ruby_mapnik/_mapnik_polygon_symbolizer.rb.cpp | gravitystorm/Ruby-Mapnik | 6e878ca914116ffc3f897cdb3bc94cd0b3c15281 | [
"MIT"
] | 3 | 2015-05-27T11:27:50.000Z | 2020-09-09T09:36:24.000Z | /*****************************************************************************
Copyright (C) 2011 Elliot Laster
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 wit... | 34.133333 | 160 | 0.697266 | gravitystorm |
8453b085474e6c3c8aea53d729fd794a4b8ffb21 | 891 | cpp | C++ | BZOJ/3576/code.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | BZOJ/3576/code.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | BZOJ/3576/code.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#define maxn 110
#define maxm 100010
#include<cstring>
#define cls(a) memset(a,0,sizeof(a))
using namespace std;
int T,f,n;
int sg[maxm];
int getsg(int n){
if(sg[n]!=-1)return sg[n];
if(n<f)return 0;
bool hash[maxm];cls(hash);
for(int i=2,ne;i<=n;i=ne+1){
ne=min(n,n/(n/i));
... | 18.5625 | 51 | 0.564534 | sjj118 |
8453ccd9b568061a94dd73c2f4d8b3d45bb0c876 | 8,044 | cpp | C++ | src/Response.cpp | commshare/easyhttpcpp | 757ec75679c1cbc5f04c81a30133f4bcd3e780f4 | [
"MIT"
] | 147 | 2017-10-05T01:42:02.000Z | 2022-01-21T08:15:05.000Z | src/Response.cpp | commshare/easyhttpcpp | 757ec75679c1cbc5f04c81a30133f4bcd3e780f4 | [
"MIT"
] | 20 | 2018-05-17T01:55:16.000Z | 2021-04-20T07:27:00.000Z | src/Response.cpp | commshare/easyhttpcpp | 757ec75679c1cbc5f04c81a30133f4bcd3e780f4 | [
"MIT"
] | 32 | 2018-05-05T13:04:34.000Z | 2022-03-25T16:57:11.000Z | /*
* Copyright 2017 Sony Corporation
*/
#include "Poco/Net/HTTPResponse.h"
#include "easyhttpcpp/common/CoreLogger.h"
#include "easyhttpcpp/HttpException.h"
#include "easyhttpcpp/Response.h"
namespace easyhttpcpp {
static const std::string Tag = "Response";
Response::Response(Response::Builder& builder)
{
in... | 22.220994 | 107 | 0.709722 | commshare |
8454769551884732c98aacc4c3ebe5410a36ed0a | 2,515 | cc | C++ | src/pbnf/nblock.cc | jinnaiyuu/pbnf | d197723e7499a91e2c15042de243ccab2cb0f9d5 | [
"MIT"
] | 4 | 2019-03-19T17:31:33.000Z | 2022-01-08T12:27:33.000Z | src/pbnf/nblock.cc | jinnaiyuu/pbnf | d197723e7499a91e2c15042de243ccab2cb0f9d5 | [
"MIT"
] | null | null | null | src/pbnf/nblock.cc | jinnaiyuu/pbnf | d197723e7499a91e2c15042de243ccab2cb0f9d5 | [
"MIT"
] | 1 | 2019-04-26T08:17:22.000Z | 2019-04-26T08:17:22.000Z | // © 2014 the PBNF Authors under the MIT license. See AUTHORS for the list of authors.
/**
* \file nblock.cc
*
*
*
* \author Ethan Burns
* \date 2008-10-21
*/
#include <assert.h>
#include <limits>
#include <vector>
#include <set>
#include "nblock.h"
#include "../open_list.h"
#include "../queue_open_list.h"
#... | 20.614754 | 86 | 0.600795 | jinnaiyuu |
84551a31e56f2bff7cf8045054d725e0b6c554a7 | 1,029 | hpp | C++ | include/floor.hpp | kshitej/ct_math | 92c3dc22fc2f883dd6716594a68b57b09fd27978 | [
"MIT"
] | null | null | null | include/floor.hpp | kshitej/ct_math | 92c3dc22fc2f883dd6716594a68b57b09fd27978 | [
"MIT"
] | null | null | null | include/floor.hpp | kshitej/ct_math | 92c3dc22fc2f883dd6716594a68b57b09fd27978 | [
"MIT"
] | null | null | null |
#ifndef CT_MATH_FLOOR_HPP
#define CT_MATH_FLOOR_HPP
#include <helper_functions.hpp>
namespace floor_operator{
template <typename T>
constexpr int checkOperator (const T a){
return ( ( (a<T(0)) && (T(static_cast<long long int>(a)) != a)) ? 1 : 0);
}
template <typename T>
constexpr T floor... | 28.583333 | 87 | 0.626822 | kshitej |
845768316756b49531fa011d5bd9f5af8fd6a57b | 8,505 | cc | C++ | google/cloud/gameservices/game_server_deployments_client.cc | sydney-munro/google-cloud-cpp | 374b52e5cec78962358bdd5913d4118a47af1952 | [
"Apache-2.0"
] | 80 | 2017-11-24T00:19:45.000Z | 2019-01-25T10:24:33.000Z | google/cloud/gameservices/game_server_deployments_client.cc | sydney-munro/google-cloud-cpp | 374b52e5cec78962358bdd5913d4118a47af1952 | [
"Apache-2.0"
] | 1,579 | 2017-11-24T01:01:21.000Z | 2019-01-28T23:41:21.000Z | google/cloud/gameservices/game_server_deployments_client.cc | sydney-munro/google-cloud-cpp | 374b52e5cec78962358bdd5913d4118a47af1952 | [
"Apache-2.0"
] | 51 | 2017-11-24T00:56:11.000Z | 2019-01-18T20:35:02.000Z | // Copyright 2022 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | 44.763158 | 87 | 0.794121 | sydney-munro |
84586946d447d12cde36320cb43a64538eaca22e | 1,758 | cpp | C++ | src/reader.cpp | YaweiZhao/hybrid_svrg | f576e46f1169909f64692977fb1e68181533f4f0 | [
"MIT"
] | null | null | null | src/reader.cpp | YaweiZhao/hybrid_svrg | f576e46f1169909f64692977fb1e68181533f4f0 | [
"MIT"
] | null | null | null | src/reader.cpp | YaweiZhao/hybrid_svrg | f576e46f1169909f64692977fb1e68181533f4f0 | [
"MIT"
] | null | null | null | #include "reader.h"
#include "armadillo"
using namespace std;
using namespace arma;
namespace multiverso
{
namespace hybrid_logistic_regression
{
void Reader::GetSamples(arma::sp_mat& trn_x, arma::sp_mat& tst_x, arma::vec& trn_y, arma::vec& tst_y)
{
//const char*... | 48.833333 | 111 | 0.612628 | YaweiZhao |
845b4f62c3faabfaf32d017b8ea40974b107e15d | 1,410 | cpp | C++ | Problem451-500/p498_1.cpp | dingqunfei/LeetCode | c74a21ea56ee7b35308d2f387ef24ab29b031e24 | [
"Apache-2.0"
] | null | null | null | Problem451-500/p498_1.cpp | dingqunfei/LeetCode | c74a21ea56ee7b35308d2f387ef24ab29b031e24 | [
"Apache-2.0"
] | null | null | null | Problem451-500/p498_1.cpp | dingqunfei/LeetCode | c74a21ea56ee7b35308d2f387ef24ab29b031e24 | [
"Apache-2.0"
] | null | null | null | /**
* @file p498_1.cpp
* @brief
* @author dingqunfei (dqflying@gmail.com)
* @version 1.0
* @date 2021-09-09
*
* @copyright Copyright (c) 2021 DQFLYING
*
* @par :
*
*
* Date : 2021-09-09
* Version : 1.0
* Author : dqflying
* Lisence :
* Description :
*
*
*
*
*/
class... | 19.054054 | 61 | 0.27305 | dingqunfei |
845ebc29a5a2875f821cf4655e56d3c57c353694 | 13,630 | cpp | C++ | src/test/cli/parse_raw/project.cpp | moralismercatus/kmap | 6887780c2fbe795f07a81808ef31f11dad4f5043 | [
"MIT"
] | 1 | 2021-06-28T00:31:08.000Z | 2021-06-28T00:31:08.000Z | src/test/cli/parse_raw/project.cpp | moralismercatus/kmap | 6887780c2fbe795f07a81808ef31f11dad4f5043 | [
"MIT"
] | null | null | null | src/test/cli/parse_raw/project.cpp | moralismercatus/kmap | 6887780c2fbe795f07a81808ef31f11dad4f5043 | [
"MIT"
] | null | null | null | /******************************************************************************
* Author(s): Christopher J. Havlicek
*
* See LICENSE and CONTACTS.
******************************************************************************/
#include "../../master.hpp"
#include <boost/test/unit_test.hpp>
namespace utf ... | 46.360544 | 138 | 0.598899 | moralismercatus |
845f6ae163ca39308cabfe4df8cbb60aabe741fe | 2,201 | cpp | C++ | Source/moja.flint.configuration/src/configtile.cpp | moja-global/flint | 2c65c5808d908247ce8ee4d9f87f11c7dd57794e | [
"BSL-1.0"
] | null | null | null | Source/moja.flint.configuration/src/configtile.cpp | moja-global/flint | 2c65c5808d908247ce8ee4d9f87f11c7dd57794e | [
"BSL-1.0"
] | 1 | 2020-07-12T11:30:00.000Z | 2020-07-18T14:50:16.000Z | Source/moja.flint.configuration/src/configtile.cpp | moja-global/flint | 2c65c5808d908247ce8ee4d9f87f11c7dd57794e | [
"BSL-1.0"
] | null | null | null | #include "moja/flint/configuration/configtile.h"
#include "moja/flint/configuration/configblock.h"
#include "moja/flint/configuration/configurationexceptions.h"
#include <moja/mathex.h>
#include <boost/format.hpp>
#include <boost/format/group.hpp>
#include <iomanip>
namespace moja {
namespace flint {
... | 31.442857 | 109 | 0.628351 | moja-global |
8461cd96744beb3efa187be154d3a62a6f658886 | 35,738 | cpp | C++ | tests/unittests/HttpLruCacheStrategyUnitTest.cpp | commshare/easyhttpcpp | 757ec75679c1cbc5f04c81a30133f4bcd3e780f4 | [
"MIT"
] | 147 | 2017-10-05T01:42:02.000Z | 2022-01-21T08:15:05.000Z | tests/unittests/HttpLruCacheStrategyUnitTest.cpp | commshare/easyhttpcpp | 757ec75679c1cbc5f04c81a30133f4bcd3e780f4 | [
"MIT"
] | 20 | 2018-05-17T01:55:16.000Z | 2021-04-20T07:27:00.000Z | tests/unittests/HttpLruCacheStrategyUnitTest.cpp | commshare/easyhttpcpp | 757ec75679c1cbc5f04c81a30133f4bcd3e780f4 | [
"MIT"
] | 32 | 2018-05-05T13:04:34.000Z | 2022-03-25T16:57:11.000Z | /*
* Copyright 2017 Sony Corporation
*/
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "easyhttpcpp/common/CacheInfoWithDataSize.h"
#include "easyhttpcpp/common/CacheStrategyListener.h"
#include "MockCacheStrategyListener.h"
#include "HttpCacheInfo.h"
#include "HttpLruCacheStrategy.h"
using easyhttpcp... | 43.109771 | 147 | 0.770804 | commshare |
84630531eb7051886be8505052e553ad21a41e24 | 1,136 | cpp | C++ | src/filter.cpp | vzwGrey/filter-magic | 59e3ccc238716ab4b1b1b3ae560021e558f6718a | [
"MIT"
] | 5 | 2018-08-16T16:51:16.000Z | 2018-09-09T08:35:21.000Z | src/filter.cpp | vzwGrey/filter-magic | 59e3ccc238716ab4b1b1b3ae560021e558f6718a | [
"MIT"
] | null | null | null | src/filter.cpp | vzwGrey/filter-magic | 59e3ccc238716ab4b1b1b3ae560021e558f6718a | [
"MIT"
] | 1 | 2018-10-08T03:30:12.000Z | 2018-10-08T03:30:12.000Z | #include <filter.h>
using namespace cv;
void filter::greyscale(Mat &image) {
for (int y = 0; y < image.rows; y++) {
for (int x = 0; x < image.cols; x++ ) {
Vec3b &pixel = image.at<Vec3b>(x, y);
float avg = (pixel[0] + pixel[1] + pixel[2]) / 3;
for (int i = 0; i < 3; i++) pixel[i] = avg;
}
}
}
void fil... | 29.128205 | 72 | 0.580106 | vzwGrey |
84634ca51083d531955d6fb5c223e2e1792c4127 | 3,012 | cpp | C++ | OcularEditor/src/Widgets/Properties/Types/Arithmetic/UInt32Validator.cpp | ssell/OcularEngine | c80cc4fcdb7dd7ce48d3af330bd33d05312076b1 | [
"Apache-2.0"
] | 8 | 2017-01-27T01:06:06.000Z | 2020-11-05T20:23:19.000Z | OcularEditor/src/Widgets/Properties/Types/Arithmetic/UInt32Validator.cpp | ssell/OcularEngine | c80cc4fcdb7dd7ce48d3af330bd33d05312076b1 | [
"Apache-2.0"
] | 39 | 2016-06-03T02:00:36.000Z | 2017-03-19T17:47:39.000Z | OcularEditor/src/Widgets/Properties/Types/Arithmetic/UInt32Validator.cpp | ssell/OcularEngine | c80cc4fcdb7dd7ce48d3af330bd33d05312076b1 | [
"Apache-2.0"
] | 4 | 2019-05-22T09:13:36.000Z | 2020-12-01T03:17:45.000Z | /**
* Copyright 2014-2017 Steven T Sell (ssell@vertexfragment.com)
*
* 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 requir... | 34.62069 | 92 | 0.375498 | ssell |
846586f19dfd66b5a987ed04ec747e4cd40ff05f | 2,514 | cpp | C++ | tests/unit/learning/RankerTest.cpp | marcosfpr/ltrpp | fdcdcac874ce558df6a618ac5e4b6c4d92a62b9d | [
"MIT"
] | 1 | 2021-12-28T20:36:05.000Z | 2021-12-28T20:36:05.000Z | tests/unit/learning/RankerTest.cpp | marcosfpr/ranklibpp | bf7125c4af8bf6e37f3522d499185f79089aba66 | [
"MIT"
] | 19 | 2021-03-11T16:21:47.000Z | 2022-02-10T13:46:52.000Z | tests/unit/learning/RankerTest.cpp | marcosfpr/ltrpp | fdcdcac874ce558df6a618ac5e4b6c4d92a62b9d | [
"MIT"
] | null | null | null | #include <memory>
#include <vector>
#include <ltr.hpp>
#include <gtest/gtest.h>
using std::cout;
using std::unique_ptr;
using std::shared_ptr;
using std::vector;
using namespace ltr;
class MockRanker : public ltr::Ranker{
public:
MockRanker(DataSet dataset, vector<int> features, unique_ptr<MetricScorer... | 26.463158 | 90 | 0.641607 | marcosfpr |
8467739684a391d03d128cd2f56b6daf4547d723 | 2,001 | cpp | C++ | src/map.cpp | martin-tornqvist/sfrl | 802c218fbc468d4155681316834cba15b65b2723 | [
"MIT"
] | null | null | null | src/map.cpp | martin-tornqvist/sfrl | 802c218fbc468d4155681316834cba15b65b2723 | [
"MIT"
] | null | null | null | src/map.cpp | martin-tornqvist/sfrl | 802c218fbc468d4155681316834cba15b65b2723 | [
"MIT"
] | null | null | null | #include "map.hpp"
#include "rl_utils.hpp"
#include "fov.hpp"
void BoolMap::cells_with_value(const bool value, std::vector<P>& out)
{
to_vec((bool*)data,
value,
map_w,
map_h,
out);
}
namespace map
{
std::unique_ptr<Ter> ter[map_w][map_h];
std::vector< std::unique_ptr... | 17.707965 | 76 | 0.474763 | martin-tornqvist |
846878443cb01d7340f9ef75fcbca85fe58b9d8e | 3,099 | hpp | C++ | src/rtl/fiber/algorithm.hpp | TomCrypto/bowshock | 72725594254280d13b253e5c55a3bdc88c551d57 | [
"MIT"
] | 3 | 2017-09-05T09:43:00.000Z | 2017-09-13T10:19:14.000Z | src/rtl/fiber/algorithm.hpp | TomCrypto/bowshock | 72725594254280d13b253e5c55a3bdc88c551d57 | [
"MIT"
] | null | null | null | src/rtl/fiber/algorithm.hpp | TomCrypto/bowshock | 72725594254280d13b253e5c55a3bdc88c551d57 | [
"MIT"
] | 1 | 2021-03-01T17:35:41.000Z | 2021-03-01T17:35:41.000Z | #pragma once
/// @file
///
/// @brief Waitable fiber algorithmic primitives.
///
/// A *waitable fiber* is any functor that returns a \c waitable::status, regardless of the arguments it takes. Two
/// waitable fibers are *compatible* if they take the same argument types. A *fiber generator* is a functor that takes
///... | 34.433333 | 119 | 0.596321 | TomCrypto |
8469479a79dfa3566cc7a082734f30db468c0b73 | 43,963 | cpp | C++ | DarkGDK/Dark Basic Pro SDK/Shared/Q2BSP/CQ2BSP.cpp | dgavedissian/DBPro-CMake | 83e5b9505a8a068eec62bb8b5fc9dddbad08c3dd | [
"MIT"
] | null | null | null | DarkGDK/Dark Basic Pro SDK/Shared/Q2BSP/CQ2BSP.cpp | dgavedissian/DBPro-CMake | 83e5b9505a8a068eec62bb8b5fc9dddbad08c3dd | [
"MIT"
] | null | null | null | DarkGDK/Dark Basic Pro SDK/Shared/Q2BSP/CQ2BSP.cpp | dgavedissian/DBPro-CMake | 83e5b9505a8a068eec62bb8b5fc9dddbad08c3dd | [
"MIT"
] | null | null | null | #include "cQ2BSP.h"
#include ".\..\error\cerror.h"
#include "loader.h"
#include "textures.h"
#include "collision.h"
// Include Global Structure
#include ".\..\core\globstruct.h"
// Global Shared Data Pointer (passed in from core)
GlobStruct* g_pGlob = NULL;
bsp_header header;
bsp_model1* model_list1;
bsp_... | 26.168452 | 166 | 0.590474 | dgavedissian |
846d6e7237eb67f6c09a397566c9550023bbc7f8 | 1,253 | cpp | C++ | src/filter/OffsetMenu.cpp | midnightprioriem/Demiurge | 7d1a1139d7a09fb8cb0e44399bc5492ebe00fb3d | [
"MIT"
] | 6 | 2020-09-23T19:49:07.000Z | 2022-01-08T15:53:55.000Z | src/filter/OffsetMenu.cpp | midnightprioriem/Demiurge | 7d1a1139d7a09fb8cb0e44399bc5492ebe00fb3d | [
"MIT"
] | null | null | null | src/filter/OffsetMenu.cpp | midnightprioriem/Demiurge | 7d1a1139d7a09fb8cb0e44399bc5492ebe00fb3d | [
"MIT"
] | 1 | 2020-09-23T17:53:26.000Z | 2020-09-23T17:53:26.000Z | //
// Created by kuhlwein on 7/30/20.
//
#include "Project.h"
#include <imgui/imgui.h>
#include "OffsetMenu.h"
OffsetMenu::OffsetMenu() : InstantFilterModal("Offset (Add)") {}
void OffsetMenu::update_self(Project *p) {
if(ImGui::DragFloat("Value", &offset, 0.01f/10, 0, 0, "%.4f", 1.0f)) {
filter->run(p);
}
}
st... | 23.203704 | 115 | 0.680766 | midnightprioriem |
84700e9fffbecab548a3e836d83512a637e49fa5 | 390 | cpp | C++ | kattis/cpp/aaaah/main.cpp | JoeyCluett/supreme-chainsaw | 99e24a7d0cedd9a6943db5a9e58f990b86a07fed | [
"Unlicense"
] | 1 | 2020-02-05T19:18:02.000Z | 2020-02-05T19:18:02.000Z | kattis/cpp/aaaah/main.cpp | JoeyCluett/supreme-chainsaw | 99e24a7d0cedd9a6943db5a9e58f990b86a07fed | [
"Unlicense"
] | null | null | null | kattis/cpp/aaaah/main.cpp | JoeyCluett/supreme-chainsaw | 99e24a7d0cedd9a6943db5a9e58f990b86a07fed | [
"Unlicense"
] | null | null | null | #include <iostream>
using namespace std;
int main(int argc, char* argv[]) {
string current_yell, doctors_yell;
cin >> current_yell >> doctors_yell;
auto count_a = [](string& s) -> int {
int i = 0;
for(;s[i] == 'a'; i++)
;
return i;
};
cout << ((count_a(curren... | 19.5 | 81 | 0.528205 | JoeyCluett |
84710a08e1d2ac4e19e41afbddc716081ea76f5c | 31 | cpp | C++ | source/particleGenerator/particleGenerator.cpp | shivarao96/Breakout | cf7bd65e084521456a69f5da06aa8dcc6a685a4f | [
"MIT"
] | null | null | null | source/particleGenerator/particleGenerator.cpp | shivarao96/Breakout | cf7bd65e084521456a69f5da06aa8dcc6a685a4f | [
"MIT"
] | 4 | 2021-05-02T17:17:06.000Z | 2021-05-02T17:18:04.000Z | source/particleGenerator/particleGenerator.cpp | shivarao96/Breakout | cf7bd65e084521456a69f5da06aa8dcc6a685a4f | [
"MIT"
] | null | null | null | #include "particleGenerator.h"
| 15.5 | 30 | 0.806452 | shivarao96 |
84711469d97a14b5e157930feff4121fd9e8ce7d | 582 | cpp | C++ | ch13/ex13_26.cpp | 0iui0/Cpp-Primer | ff8530a202ac0340a3e8de6bb9726cf0516c50fc | [
"CC0-1.0"
] | null | null | null | ch13/ex13_26.cpp | 0iui0/Cpp-Primer | ff8530a202ac0340a3e8de6bb9726cf0516c50fc | [
"CC0-1.0"
] | null | null | null | ch13/ex13_26.cpp | 0iui0/Cpp-Primer | ff8530a202ac0340a3e8de6bb9726cf0516c50fc | [
"CC0-1.0"
] | null | null | null | //
// ex13_26.cpp
// Exercise 13.26
//
// Created by pezy on 1/19/15.
//
// Write your own version of the StrBlob class described in the previous exercise.
//
// @See ex12_22 and ex13_25
#include "ex13_26.h"
ConstStrBlobPtr StrBlob::begin() const // should add const
{
return ConstStrBlobPtr(*this);
}
Con... | 18.774194 | 83 | 0.664948 | 0iui0 |
8473352ec34c3f124c5a9a9a42ee914c47df37e7 | 1,365 | hpp | C++ | src/cpp/include/nodegui/QtWidgets/QColorDialog/ncolordialog.hpp | NeryHenrique/nodegui | 254b6a910928f512e57bc4bfab7dfadcd2073c84 | [
"MIT"
] | 1 | 2020-07-30T15:02:17.000Z | 2020-07-30T15:02:17.000Z | src/cpp/include/nodegui/QtWidgets/QColorDialog/ncolordialog.hpp | NeryHenrique/nodegui | 254b6a910928f512e57bc4bfab7dfadcd2073c84 | [
"MIT"
] | 5 | 2021-06-28T20:44:38.000Z | 2022-02-27T11:34:26.000Z | src/cpp/include/nodegui/QtWidgets/QColorDialog/ncolordialog.hpp | NeryHenrique/nodegui | 254b6a910928f512e57bc4bfab7dfadcd2073c84 | [
"MIT"
] | 1 | 2020-07-29T15:00:18.000Z | 2020-07-29T15:00:18.000Z | #pragma once
#include <QColorDialog>
#include "Extras/Export/export.h"
#include "QtGui/QColor/qcolor_wrap.h"
#include "QtWidgets/QDialog/qdialog_macro.h"
#include "core/NodeWidget/nodewidget.h"
#include "napi.h"
class DLL_EXPORT NColorDialog : public QColorDialog, public NodeWidget {
Q_OBJECT
NODEWIDGET_IMPLEMEN... | 33.292683 | 76 | 0.646886 | NeryHenrique |
84774da7e51edfd85316d74df662e8cef57ec0e8 | 4,236 | cpp | C++ | include/common_util.cpp | Marmiya/MarinaioDrone | a98490f946c0b45460e4525fc05f2ac14f9a4e09 | [
"MIT"
] | null | null | null | include/common_util.cpp | Marmiya/MarinaioDrone | a98490f946c0b45460e4525fc05f2ac14f9a4e09 | [
"MIT"
] | null | null | null | include/common_util.cpp | Marmiya/MarinaioDrone | a98490f946c0b45460e4525fc05f2ac14f9a4e09 | [
"MIT"
] | null | null | null | #include "common_util.h"
namespace comutil
{
std::string timeToString(std::chrono::system_clock::time_point t)
{
std::time_t time = std::chrono::system_clock::to_time_t(t);
std::string time_str = std::ctime(&time);
time_str.resize(time_str.size() - 1);
replace(time_str.begin(),... | 30.257143 | 108 | 0.59915 | Marmiya |
8478eee97d15bfa7afcb254bb1ae1f2419f46b01 | 448 | cpp | C++ | math/sharp_p_subset_sum/gen/small.cpp | tko919/library-checker-problems | 007a3ef79d1a1824e68545ab326d1523d9c05262 | [
"Apache-2.0"
] | 290 | 2019-06-06T22:20:36.000Z | 2022-03-27T12:45:04.000Z | math/sharp_p_subset_sum/gen/small.cpp | tko919/library-checker-problems | 007a3ef79d1a1824e68545ab326d1523d9c05262 | [
"Apache-2.0"
] | 536 | 2019-06-06T18:25:36.000Z | 2022-03-29T11:46:36.000Z | math/sharp_p_subset_sum/gen/small.cpp | tko919/library-checker-problems | 007a3ef79d1a1824e68545ab326d1523d9c05262 | [
"Apache-2.0"
] | 82 | 2019-06-06T18:17:55.000Z | 2022-03-21T07:40:31.000Z | #include "random.h"
#include <iostream>
#include <vector>
#include <cassert>
#include "../params.h"
using namespace std;
using ll = long long;
int main(int, char* argv[]) {
long long seed = atoll(argv[1]);
auto gen = Random(seed);
int N=1'000,T=1'000;
printf("%d %d\n", N,T);
for(... | 20.363636 | 39 | 0.53125 | tko919 |
847b6e015871a6a8a3a043058d5239e706342c89 | 153 | cpp | C++ | C++/exercise 03/SFML/SFML.cpp | daybson/SFML-EXERCISES | a03e926e9c0d9d925a7f2c8164831e46ef7a2ca7 | [
"Apache-2.0"
] | null | null | null | C++/exercise 03/SFML/SFML.cpp | daybson/SFML-EXERCISES | a03e926e9c0d9d925a7f2c8164831e46ef7a2ca7 | [
"Apache-2.0"
] | null | null | null | C++/exercise 03/SFML/SFML.cpp | daybson/SFML-EXERCISES | a03e926e9c0d9d925a7f2c8164831e46ef7a2ca7 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <SFML\Graphics.hpp>
#include "Game.h"
using namespace sf;
int main()
{
Game game("Teste SFML", Style::Default);
game.run();
};
| 12.75 | 41 | 0.673203 | daybson |
847c3571a592df4233c5aee55112ec605bcc9793 | 4,135 | hpp | C++ | c++/include/dbapi/driver/impl/dbapi_impl_result.hpp | OpenHero/gblastn | a0d6c1c288fe916ab85fc637a44cdd6e79ebd2a8 | [
"MIT"
] | 31 | 2016-12-09T04:56:59.000Z | 2021-12-31T17:19:10.000Z | c++/include/dbapi/driver/impl/dbapi_impl_result.hpp | OpenHero/gblastn | a0d6c1c288fe916ab85fc637a44cdd6e79ebd2a8 | [
"MIT"
] | 6 | 2017-03-10T17:25:13.000Z | 2021-09-22T15:49:49.000Z | c++/include/dbapi/driver/impl/dbapi_impl_result.hpp | OpenHero/gblastn | a0d6c1c288fe916ab85fc637a44cdd6e79ebd2a8 | [
"MIT"
] | 20 | 2015-01-04T02:15:17.000Z | 2021-12-03T02:31:43.000Z | #ifndef DBAPI_DRIVER_IMPL___DBAPI_IMPL_RESULT__HPP
#define DBAPI_DRIVER_IMPL___DBAPI_IMPL_RESULT__HPP
/* $Id: dbapi_impl_result.hpp 125482 2008-04-23 16:54:57Z ssikorsk $
* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* ... | 30.62963 | 79 | 0.647158 | OpenHero |
847db17c6ebf22b96df05c892a967a12332ed45a | 13,394 | hpp | C++ | include/GlobalNamespace/VRController.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/VRController.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/VRController.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: UnityEngine.MonoBehaviour
#... | 49.977612 | 182 | 0.728908 | RedBrumbler |
8481e255d09ec44f432b890f21267f33578e8cbd | 372 | cpp | C++ | 14_Sobrecarga_de_Funcoes.cpp | EriclysLima/Repositorio_Cpp | 8376aae89092bdd9152dc08d5b2ff7d6d733346b | [
"MIT"
] | null | null | null | 14_Sobrecarga_de_Funcoes.cpp | EriclysLima/Repositorio_Cpp | 8376aae89092bdd9152dc08d5b2ff7d6d733346b | [
"MIT"
] | null | null | null | 14_Sobrecarga_de_Funcoes.cpp | EriclysLima/Repositorio_Cpp | 8376aae89092bdd9152dc08d5b2ff7d6d733346b | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
void soma(int n1, int n2);
void soma();
int main(){
soma(20,30);
soma();
return 0;
}
void soma(int n1, int n2){
int re;
re=n1+n2;
cout<<"Soma de " << n1 << " com "<< n2 << " = " << re <<"\n";
}
void soma(){
int n1,n2,re;
n1=10;
n2=20;
re=n1+n2;
cout<<"Soma d... | 12 | 62 | 0.494624 | EriclysLima |
8485e002fd1cc5d6a36ed89bdd18b2d8192da336 | 1,139 | hpp | C++ | remote_core/remote_core/include/Command.hpp | DaveAMoore/remote_core | a46280a7cee5d52ca08d11ea2de518a7d5e12ca5 | [
"MIT"
] | null | null | null | remote_core/remote_core/include/Command.hpp | DaveAMoore/remote_core | a46280a7cee5d52ca08d11ea2de518a7d5e12ca5 | [
"MIT"
] | null | null | null | remote_core/remote_core/include/Command.hpp | DaveAMoore/remote_core | a46280a7cee5d52ca08d11ea2de518a7d5e12ca5 | [
"MIT"
] | null | null | null | //
// Command.hpp
// remote_core
//
// Created by David Moore on 11/7/18.
// Copyright © 2018 David Moore. All rights reserved.
//
#ifndef Command_hpp
#define Command_hpp
#include "Coding.hpp"
namespace RemoteCore {
class Command : public Coding {
private:
std::string localizedTitle;
std:... | 24.76087 | 125 | 0.589991 | DaveAMoore |
848f6214af983c53e58c726560e3adfed5772245 | 2,293 | inl | C++ | ThirdParty/Havok/include/Common/Base/Container/String/hkStringPtr.inl | wobbier/source3-engine | f59df759ee197aef5191cf13768c303c6ed17bf5 | [
"MIT"
] | 11 | 2016-08-02T03:40:36.000Z | 2022-03-15T13:41:29.000Z | ThirdParty/Havok/include/Common/Base/Container/String/hkStringPtr.inl | wobbier/source3-engine | f59df759ee197aef5191cf13768c303c6ed17bf5 | [
"MIT"
] | null | null | null | ThirdParty/Havok/include/Common/Base/Container/String/hkStringPtr.inl | wobbier/source3-engine | f59df759ee197aef5191cf13768c303c6ed17bf5 | [
"MIT"
] | 8 | 2017-03-17T05:59:25.000Z | 2021-02-27T08:51:46.000Z | /*
*
* Confidential Information of Telekinesys Research Limited (t/a Havok). Not for disclosure or distribution without Havok's
* prior written consent. This software contains code, techniques and know-how which is confidential and proprietary to Havok.
* Product and Trade Secret source code contains trade secrets ... | 31.847222 | 251 | 0.732665 | wobbier |
848f9135a29e0b3a247b8f517fb50a9a32be2cea | 1,143 | cpp | C++ | examples/queue/queue.cpp | balsini/metasim | e20a2313b18bb943d766dc1ecf3c61cf28d956f2 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | examples/queue/queue.cpp | balsini/metasim | e20a2313b18bb943d766dc1ecf3c61cf28d956f2 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | examples/queue/queue.cpp | balsini/metasim | e20a2313b18bb943d766dc1ecf3c61cf28d956f2 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | #include <stdlib.h>
#include "queue.hpp"
using namespace std;
using namespace MetaSim;
int main()
{
double lambda, mu;
cout << " ###### M/M/1 example ######\n\n";
cout << "Insert lambda : ";
cin >> lambda;
cout << "Insert mu : ";
cin >> mu;
if (la... | 23.8125 | 80 | 0.510061 | balsini |
8498ea2d46dc01ac9729981edacb75eb9bf1afc4 | 691 | hpp | C++ | include/RED4ext/Scripting/Natives/Generated/quest/InstancedCrowdControlNodeDefinition.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 42 | 2020-12-25T08:33:00.000Z | 2022-03-22T14:47:07.000Z | include/RED4ext/Scripting/Natives/Generated/quest/InstancedCrowdControlNodeDefinition.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 38 | 2020-12-28T22:36:06.000Z | 2022-02-16T11:25:47.000Z | include/RED4ext/Scripting/Natives/Generated/quest/InstancedCrowdControlNodeDefinition.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 20 | 2020-12-28T22:17:38.000Z | 2022-03-22T17:19:01.000Z | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/CName.hpp>
#include <RED4ext/Scripting/Natives/Generated/quest/DisableableNodeDefinition.hpp>
namespace RED4ext
{
namespace quest {
struct InstancedCrowdControlNodeDefinition : q... | 27.64 | 83 | 0.769899 | jackhumbert |
84a019c261b1eb958a5f14593c61803f1578a2ee | 14,604 | cpp | C++ | src/BFontBitmap.cpp | somaen/Wintermute-git | edd11774a2662c55f1ebd6386206a41da37bcd18 | [
"MIT"
] | 1 | 2015-08-15T21:51:37.000Z | 2015-08-15T21:51:37.000Z | src/BFontBitmap.cpp | somaen/Wintermute-git | edd11774a2662c55f1ebd6386206a41da37bcd18 | [
"MIT"
] | null | null | null | src/BFontBitmap.cpp | somaen/Wintermute-git | edd11774a2662c55f1ebd6386206a41da37bcd18 | [
"MIT"
] | null | null | null | /*
This file is part of WME Lite.
http://dead-code.org/redir.php?target=wmelite
Copyright (c) 2011 Jan Nedoma
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, includin... | 27.554717 | 392 | 0.60456 | somaen |
84a098451b5a7b8165a8ff67fd30b8fcf842d693 | 880 | cpp | C++ | LeetCode/cpp/748.cpp | ZintrulCre/LeetCode_Archiver | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 279 | 2019-02-19T16:00:32.000Z | 2022-03-23T12:16:30.000Z | LeetCode/cpp/748.cpp | ZintrulCre/LeetCode_Archiver | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 2 | 2019-03-31T08:03:06.000Z | 2021-03-07T04:54:32.000Z | LeetCode/cpp/748.cpp | ZintrulCre/LeetCode_Crawler | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 12 | 2019-01-29T11:45:32.000Z | 2019-02-04T16:31:46.000Z | class Solution {
public:
string shortestCompletingWord(string licensePlate, vector<string> &words) {
string ret;
int minLen = INT_MAX;
unordered_map<char, int> letters;
for (char l : licensePlate)
if ((l >= 'a' && l <= 'z') || (l >= 'A' && l <= 'Z'))
++let... | 30.344828 | 79 | 0.390909 | ZintrulCre |
84a40ab1a0e33243ab5355eee586941d17f23e03 | 368 | cpp | C++ | 905-sort-array-by-parity/905-sort-array-by-parity.cpp | Edith-panda/leetcode | 175b4cbcd25b95b4863d793c876719eabb94dafc | [
"Apache-2.0"
] | null | null | null | 905-sort-array-by-parity/905-sort-array-by-parity.cpp | Edith-panda/leetcode | 175b4cbcd25b95b4863d793c876719eabb94dafc | [
"Apache-2.0"
] | null | null | null | 905-sort-array-by-parity/905-sort-array-by-parity.cpp | Edith-panda/leetcode | 175b4cbcd25b95b4863d793c876719eabb94dafc | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
vector<int> sortArrayByParity(vector<int>& nums) {
int l = nums.size() - 1;
for (int i = 0; i < l; i++) {
if (nums[i] & 1) {
while (nums[l] & 1 and i < l)
l--;
swap(nums[i], nums[l]);
... | 23 | 54 | 0.355978 | Edith-panda |
84a80647c6a88d407626c4a7ac3dfadd7884c454 | 8,514 | cc | C++ | crypto/crypto_encryption_openssl.cc | diegows/wanproxy | c0ad933f7ca5ba44bafb7f44f25c4e720375ff14 | [
"BSD-2-Clause"
] | 3 | 2015-04-27T06:20:12.000Z | 2019-03-08T11:41:39.000Z | crypto/crypto_encryption_openssl.cc | diegows/wanproxy | c0ad933f7ca5ba44bafb7f44f25c4e720375ff14 | [
"BSD-2-Clause"
] | 1 | 2015-02-13T22:00:57.000Z | 2015-02-13T22:00:57.000Z | crypto/crypto_encryption_openssl.cc | diegows/wanproxy | c0ad933f7ca5ba44bafb7f44f25c4e720375ff14 | [
"BSD-2-Clause"
] | 4 | 2015-08-31T09:50:58.000Z | 2019-06-11T08:21:28.000Z | /*
* Copyright (c) 2010-2012 Juli Mallett. All rights reserved.
*
* 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 cond... | 28.959184 | 132 | 0.709302 | diegows |
84aa6722de1f12577e68f5017a7c6a7938a102cd | 820 | cpp | C++ | Codeforces/268A-games.cpp | SusmoySenGupta/online-judge-solutions | 8735a1bc71a05dc46255664c3ec6f47f042bfa6c | [
"MIT"
] | null | null | null | Codeforces/268A-games.cpp | SusmoySenGupta/online-judge-solutions | 8735a1bc71a05dc46255664c3ec6f47f042bfa6c | [
"MIT"
] | null | null | null | Codeforces/268A-games.cpp | SusmoySenGupta/online-judge-solutions | 8735a1bc71a05dc46255664c3ec6f47f042bfa6c | [
"MIT"
] | null | null | null | /*
author: Susmoy Sen Gupta
email: susmoy.cse@gmail.com
github: github.com/SusmoySenGupta
Judge: Codeforces
problem no: 268A
problem name: Games
problem link: https://codeforces.com/problemset/problem/268/A
Status: __Solved__
Solved at: Jul/24/2021 12:44
*/
#include <iostream>
#define INF (int)1e9
#define ... | 15.769231 | 62 | 0.585366 | SusmoySenGupta |
84ae795d7cfa42be96c3868831550d690f92a551 | 1,331 | hpp | C++ | source/lightspace/public/camera.hpp | gitbetter/Lightspace | b00a29e2aac64cfac87ca30d2d053559d84289df | [
"MIT"
] | null | null | null | source/lightspace/public/camera.hpp | gitbetter/Lightspace | b00a29e2aac64cfac87ca30d2d053559d84289df | [
"MIT"
] | null | null | null | source/lightspace/public/camera.hpp | gitbetter/Lightspace | b00a29e2aac64cfac87ca30d2d053559d84289df | [
"MIT"
] | null | null | null | #pragma once
#include "common.hpp"
#include "canvas.hpp"
#include "transform.hpp"
#include "ray.hpp"
namespace ls {
class camera
{
public:
camera( uint16_t width, uint16_t height, fpnum fov );
uint16_t width() const noexcept
{
return _width;
}
uint16_... | 18.486111 | 61 | 0.540195 | gitbetter |
84b39c2e1889b9348f51cf74f1938f2a522bda1a | 159 | cpp | C++ | viewify/src/consoleTest/Functions/console_test.cpp | ii887522/viewify | 2bd8ef48a63abeaeca73f7f532992ffb6122c76e | [
"MIT"
] | 1 | 2021-07-13T00:56:09.000Z | 2021-07-13T00:56:09.000Z | viewify/src/consoleTest/Functions/console_test.cpp | ii887522/viewify | 2bd8ef48a63abeaeca73f7f532992ffb6122c76e | [
"MIT"
] | null | null | null | viewify/src/consoleTest/Functions/console_test.cpp | ii887522/viewify | 2bd8ef48a63abeaeca73f7f532992ffb6122c76e | [
"MIT"
] | null | null | null | // Copyright ii887522
#ifdef CONSOLE_TEST
#define ALLOCATOR_IMPLEMENTATIONS
#include <nitro/nitro.h>
#define CATCH_CONFIG_MAIN
#include <catch.hpp>
#endif
| 13.25 | 33 | 0.792453 | ii887522 |
84b6d60e741e22543a9d08d0422f1d41c20c2c32 | 10,442 | cpp | C++ | VST3_SDK/public.sdk/source/vst/hosting/module.cpp | seawee1/RenderMan | 9a9132a6dc7b39753e575c5f3c583a6261555d86 | [
"Unlicense"
] | 283 | 2017-02-22T16:14:56.000Z | 2022-03-17T14:51:26.000Z | VST3_SDK/public.sdk/source/vst/hosting/module.cpp | seawee1/RenderMan | 9a9132a6dc7b39753e575c5f3c583a6261555d86 | [
"Unlicense"
] | 26 | 2017-07-14T20:29:33.000Z | 2022-03-28T07:58:16.000Z | VST3_SDK/public.sdk/source/vst/hosting/module.cpp | seawee1/RenderMan | 9a9132a6dc7b39753e575c5f3c583a6261555d86 | [
"Unlicense"
] | 38 | 2017-12-04T12:51:28.000Z | 2022-03-22T20:09:26.000Z | //-----------------------------------------------------------------------------
// Project : VST SDK
//
// Category : Helpers
// Filename : public.sdk/source/vst/hosting/module.cpp
// Created by : Steinberg, 08/2016
// Description : hosting module classes
//
//------------------------------------------------... | 36.638596 | 91 | 0.533806 | seawee1 |
84b7f70c3098992c3b8b8bb2743a3861427bdb6d | 1,518 | cpp | C++ | src/tsmm_single_bench.cpp | melven/pitts | 491f503a99a7d1161a27672955ae53ca6b5d3412 | [
"BSD-3-Clause"
] | 2 | 2021-12-31T08:28:17.000Z | 2022-01-12T14:48:49.000Z | src/tsmm_single_bench.cpp | melven/pitts | 491f503a99a7d1161a27672955ae53ca6b5d3412 | [
"BSD-3-Clause"
] | null | null | null | src/tsmm_single_bench.cpp | melven/pitts | 491f503a99a7d1161a27672955ae53ca6b5d3412 | [
"BSD-3-Clause"
] | null | null | null | #include "pitts_parallel.hpp"
#include "pitts_common.hpp"
#include "pitts_tensor2.hpp"
#include "pitts_tensor2_random.hpp"
#include "pitts_multivector.hpp"
#include "pitts_multivector_transform.hpp"
#include "pitts_multivector_random.hpp"
#include <iostream>
#include <charconv>
int main(int argc, char* argv[])
{
PI... | 27.6 | 93 | 0.631752 | melven |
84b82ef5de99d5eb205364266d0014856c891106 | 9,673 | cc | C++ | apps/snake_app.cc | CS126SP20/snake-pyanda2 | cde0003962ae17c2164ff59149b239f220415dda | [
"MIT"
] | null | null | null | apps/snake_app.cc | CS126SP20/snake-pyanda2 | cde0003962ae17c2164ff59149b239f220415dda | [
"MIT"
] | null | null | null | apps/snake_app.cc | CS126SP20/snake-pyanda2 | cde0003962ae17c2164ff59149b239f220415dda | [
"MIT"
] | null | null | null | // Copyright (c) 2020 CS126SP20. All rights reserved.
#include "snake_app.h"
#include <cinder/Font.h>
#include <cinder/Text.h>
#include <cinder/Vector.h>
#include <cinder/audio/Voice.h>
#include <cinder/audio/audio.h>
#include <cinder/gl/draw.h>
#include <cinder/gl/gl.h>
#include <gflags/gflags.h>
#include <rpc.h>
#i... | 27.876081 | 77 | 0.642613 | CS126SP20 |
84b94214f6f92c665ffc99e4576e7debd71c14fb | 1,515 | cpp | C++ | deps/CustomOps/MPI/MPI_Utils.cpp | ziyiyin97/ADCME.jl | 1c9b2c1ae63059d79a5a6a7b86eee64796868755 | [
"MIT"
] | 202 | 2019-06-12T18:42:20.000Z | 2022-03-24T16:56:46.000Z | deps/CustomOps/MPI/MPI_Utils.cpp | banren456/ADCME.jl | 2ed7a0801b6ed90f2236c3cde7a1dca825cbe897 | [
"MIT"
] | 46 | 2019-08-19T19:37:52.000Z | 2022-03-27T11:17:50.000Z | deps/CustomOps/MPI/MPI_Utils.cpp | banren456/ADCME.jl | 2ed7a0801b6ed90f2236c3cde7a1dca825cbe897 | [
"MIT"
] | 56 | 2019-07-30T05:50:55.000Z | 2022-03-28T02:41:07.000Z | #include "common.h"
#ifdef _WIN32
#define EXPORTED __declspec(dllexport)
#else
#define EXPORTED
#endif
extern "C" EXPORTED void mpi_init(){
int argc = 0;
int provided;
char**argv = {NULL};
MPI_Init_thread( NULL, NULL , MPI_THREAD_MULTIPLE, &provided);
}
extern "C" EXPORTED void mpi_finalize(){
MPI_Fin... | 21.956522 | 76 | 0.708911 | ziyiyin97 |
84b949f1db4678910e5a991cdaf7296bb7787d21 | 818 | cpp | C++ | minimal/ast/point_simple_vec4.cpp | HipaccVX/HipaccVX | 0d469748df11c95f916b5a70f0006878f8550e3c | [
"MIT"
] | 1 | 2021-06-08T08:58:54.000Z | 2021-06-08T08:58:54.000Z | minimal/ast/point_simple_vec4.cpp | HipaccVX/HipaccVX | 0d469748df11c95f916b5a70f0006878f8550e3c | [
"MIT"
] | 1 | 2021-11-13T14:55:55.000Z | 2021-11-13T14:55:55.000Z | minimal/ast/point_simple_vec4.cpp | HipaccVX/HipaccVX | 0d469748df11c95f916b5a70f0006878f8550e3c | [
"MIT"
] | null | null | null | #include "../../hipaVX/ast.hpp"
#include "../include/ast_gen.hpp"
// A simple point operator
int main(int argc, const char *argv[]) {
function_ast::ForEveryPixel kernel;
function_ast::Image in1, in2, in3, in4, out;
auto in_node1 = std::make_shared<function_ast::Image>(in1);
auto in_node2 = std::make_share... | 32.72 | 190 | 0.713936 | HipaccVX |
84ba4d3e66d56c10edfd6db83386dadc7b020ff4 | 645 | hpp | C++ | lib/ivmone/limits.hpp | ILCOINDevelopmentTeam/ivmone | e9ce7ace918567acbd06a8b7f4e83a0f8f27bf49 | [
"Apache-2.0"
] | 7 | 2021-11-06T15:24:44.000Z | 2022-03-10T02:11:27.000Z | lib/ivmone/limits.hpp | vetran86/ivmone | 0c2fd89880b0527a600293e4e96ad93e8831084b | [
"Apache-2.0"
] | null | null | null | lib/ivmone/limits.hpp | vetran86/ivmone | 0c2fd89880b0527a600293e4e96ad93e8831084b | [
"Apache-2.0"
] | 1 | 2021-11-06T15:24:49.000Z | 2021-11-06T15:24:49.000Z | // ivmone: Fast Ethereum Virtual Machine implementation
// Copyright 2019 The ivmone Authors.
// SPDX-License-Identifier: Apache-2.0
#pragma once
/// The maximum EVM bytecode size allowed by the Ethereum spec.
constexpr auto max_code_size = 0x6000;
/// The maximum base cost of any EVM instruction.
/// The value comes... | 37.941176 | 73 | 0.779845 | ILCOINDevelopmentTeam |
84bb1925af292268fa73456856d9f810d90af4b8 | 13,908 | cxx | C++ | PWGHF/vertexingHF/vHFML/AliHFMLVarHandlerNonPromptLc2V0bachelor.cxx | ilyafokin/AliPhysics | 7a0021a9d7ad4f0a9e52e0a13f9d3ca3b74c63d4 | [
"BSD-3-Clause"
] | 1 | 2019-11-11T17:55:08.000Z | 2019-11-11T17:55:08.000Z | PWGHF/vertexingHF/vHFML/AliHFMLVarHandlerNonPromptLc2V0bachelor.cxx | ilyafokin/AliPhysics | 7a0021a9d7ad4f0a9e52e0a13f9d3ca3b74c63d4 | [
"BSD-3-Clause"
] | null | null | null | PWGHF/vertexingHF/vHFML/AliHFMLVarHandlerNonPromptLc2V0bachelor.cxx | ilyafokin/AliPhysics | 7a0021a9d7ad4f0a9e52e0a13f9d3ca3b74c63d4 | [
"BSD-3-Clause"
] | 1 | 2022-01-24T11:11:09.000Z | 2022-01-24T11:11:09.000Z | // Copyright CERN. This software is distributed under the terms of the GNU
// General Public License v3 (GPL Version 3).
//
// See http://www.gnu.org/licenses/ for full licensing information.
//
// In applying this license CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an ... | 35.661538 | 161 | 0.629134 | ilyafokin |
84bcfd48e76202df6d92490c279c09da0df3b41d | 1,482 | hpp | C++ | src/gameworld/gameworld/other/fb/branchtaskcofig.hpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | 3 | 2021-12-16T13:57:28.000Z | 2022-03-26T07:50:08.000Z | src/gameworld/gameworld/other/fb/branchtaskcofig.hpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | null | null | null | src/gameworld/gameworld/other/fb/branchtaskcofig.hpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | 1 | 2022-03-26T07:50:11.000Z | 2022-03-26T07:50:11.000Z | #ifndef __BRANCH_TASK_FB_CONFIG__
#define __BRANCH_TASK_FB_CONFIG__
#include "servercommon/configcommon.h"
#include "servercommon/servercommon.h"
#include <map>
enum BRANCH_FB_TYPE
{
BRANCH_FB_TYPE_INVALID = 0,
BRANCH_FB_TYPE_1,
BRANCH_FB_TYPE_2,
BRANCH_FB_TYPE_3,
BRANCH_FB_TYPE_4,
BRANCH_FB_TYPE_5,
BRANCH_F... | 20.873239 | 125 | 0.77058 | mage-game |
84bd0f9a4c2bdcb5f836a6003495a9e7167f2d20 | 45,039 | cpp | C++ | src/com/xmat.cpp | onecoolx/xpoly | 0476208738795f7c23ea4b701e03ee7cd6d33e10 | [
"BSD-3-Clause"
] | 21 | 2015-02-01T11:28:39.000Z | 2021-11-12T06:44:53.000Z | src/com/xmat.cpp | onecoolx/xpoly | 0476208738795f7c23ea4b701e03ee7cd6d33e10 | [
"BSD-3-Clause"
] | 1 | 2016-02-19T03:21:39.000Z | 2017-02-13T03:11:21.000Z | src/com/xmat.cpp | onecoolx/xpoly | 0476208738795f7c23ea4b701e03ee7cd6d33e10 | [
"BSD-3-Clause"
] | 8 | 2015-03-02T11:09:25.000Z | 2021-12-09T06:10:44.000Z | /*@
Copyright (c) 2013-2014, Su Zhenyu steven.known@gmail.com
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list... | 26.571681 | 82 | 0.519883 | onecoolx |
84c060c6983d87c468d867a047923784966306b3 | 825 | cc | C++ | models/qsim/interrupt_handler/interrupt_handler.cc | Basseuph/manifold | 99779998911ed7e8b8ff6adacc7f93080409a5fe | [
"BSD-3-Clause"
] | 8 | 2016-01-22T18:28:48.000Z | 2021-05-07T02:27:21.000Z | models/qsim/interrupt_handler/interrupt_handler.cc | Basseuph/manifold | 99779998911ed7e8b8ff6adacc7f93080409a5fe | [
"BSD-3-Clause"
] | 3 | 2016-04-15T02:58:58.000Z | 2017-01-19T17:07:34.000Z | models/qsim/interrupt_handler/interrupt_handler.cc | Basseuph/manifold | 99779998911ed7e8b8ff6adacc7f93080409a5fe | [
"BSD-3-Clause"
] | 10 | 2015-12-11T04:16:55.000Z | 2019-05-25T20:58:13.000Z | #include "interrupt_handler.h"
using namespace std;
using namespace manifold;
using namespace manifold::kernel;
using namespace manifold::qsim_interrupt_handler;
interrupt_handler_t::interrupt_handler_t(Qsim::OSDomain *osd, manifold::kernel::Clock* clk) :
Qsim_osd(osd),
clock_cycle(0),
interval(1)
{
cl... | 23.571429 | 102 | 0.698182 | Basseuph |
84c3a26531a2fade543fac3dd3f06f1114c9d570 | 11,233 | cpp | C++ | vm/vm.cpp | marnen/rubinius | 05b3f9789d01bada0604a7f09921c956bc9487e7 | [
"BSD-3-Clause"
] | 1 | 2016-05-08T16:58:14.000Z | 2016-05-08T16:58:14.000Z | vm/vm.cpp | taf2/rubinius | 493bfa2351fc509ca33d3bb03991c2e9c2b6dafa | [
"BSD-3-Clause"
] | null | null | null | vm/vm.cpp | taf2/rubinius | 493bfa2351fc509ca33d3bb03991c2e9c2b6dafa | [
"BSD-3-Clause"
] | null | null | null | #include "vm.hpp"
#include "objectmemory.hpp"
#include "event.hpp"
#include "global_cache.hpp"
#include "llvm.hpp"
#include "vm/object_utils.hpp"
#include "builtin/class.hpp"
#include "builtin/contexts.hpp"
#include "builtin/fixnum.hpp"
#include "builtin/list.hpp"
#include "builtin/symbol.hpp"
#include "builtin/threa... | 25.822989 | 91 | 0.634648 | marnen |
84c79a4d4c15019af5f71b11e1d590e5fe7023b2 | 590 | cpp | C++ | Pangrams.cpp | mishrajiharsh219/most-basic-c-programs | 2be753ae6ac639d26e1a042e9ecf2da3a8c10be7 | [
"MIT"
] | null | null | null | Pangrams.cpp | mishrajiharsh219/most-basic-c-programs | 2be753ae6ac639d26e1a042e9ecf2da3a8c10be7 | [
"MIT"
] | null | null | null | Pangrams.cpp | mishrajiharsh219/most-basic-c-programs | 2be753ae6ac639d26e1a042e9ecf2da3a8c10be7 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define fastio
#define endl "\n"
using namespace std;
string pangrams(string s)
{
int arr[26] = {0};
for (char &c : s)
{
if (c >= 97 && c <= 122)
arr[c - 97] = 1;
else if (c >= 65 && c <= 90)
arr[c - 65] =... | 19.032258 | 39 | 0.410169 | mishrajiharsh219 |
84c7d1f1fcd91ccc0020336eb23d0f3ffb520459 | 508 | cpp | C++ | doc/examples/from_msgpack.cpp | EmapaSA/json | 03b568358e32b10af5ae218853cc3bffb9e53d8c | [
"MIT"
] | null | null | null | doc/examples/from_msgpack.cpp | EmapaSA/json | 03b568358e32b10af5ae218853cc3bffb9e53d8c | [
"MIT"
] | null | null | null | doc/examples/from_msgpack.cpp | EmapaSA/json | 03b568358e32b10af5ae218853cc3bffb9e53d8c | [
"MIT"
] | null | null | null | #include <iostream>
#include "json.hpp"
using json = nlohmann::json;
int main()
{
// create byte vector
std::vector<uint8_t> v = {0x82, 0xa7, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x63,
0x74, 0xc3, 0xa6, 0x73, 0x63, 0x68, 0x65, 0x6d,
0x61, 0x00
... | 25.4 | 77 | 0.519685 | EmapaSA |
84cbcb5a660a8d265851fa8c9e7f4d1b845eb54c | 10,270 | cxx | C++ | ParaViewCore/ServerManager/Rendering/vtkSMScalarBarWidgetRepresentationProxy.cxx | vbnhfylbh/ParaViewRUS | e65ea0edc5d23e593afecd623cbd047282f4c834 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2019-04-22T09:09:18.000Z | 2019-04-22T09:09:18.000Z | ParaViewCore/ServerManager/Rendering/vtkSMScalarBarWidgetRepresentationProxy.cxx | vbnhfylbh/ParaViewRUS | e65ea0edc5d23e593afecd623cbd047282f4c834 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | ParaViewCore/ServerManager/Rendering/vtkSMScalarBarWidgetRepresentationProxy.cxx | vbnhfylbh/ParaViewRUS | e65ea0edc5d23e593afecd623cbd047282f4c834 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2020-06-23T09:05:08.000Z | 2020-06-23T09:05:08.000Z | /*=========================================================================
Program: ParaView
Module: vtkSMScalarBarWidgetRepresentationProxy.cxx
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
This software is distrib... | 30.02924 | 96 | 0.601266 | vbnhfylbh |
84d8b5cc6a5629f9424e779ddb0c11c463fd6066 | 2,169 | cpp | C++ | tests/db/db4.cpp | romz-pl/upscaledb | 781206f75a9f49b67dc0cd2c0e191435e60f4693 | [
"Apache-2.0"
] | null | null | null | tests/db/db4.cpp | romz-pl/upscaledb | 781206f75a9f49b67dc0cd2c0e191435e60f4693 | [
"Apache-2.0"
] | 9 | 2018-05-05T08:01:58.000Z | 2018-05-07T19:10:01.000Z | tests/db/db4.cpp | romz-pl/upscaledb | 781206f75a9f49b67dc0cd2c0e191435e60f4693 | [
"Apache-2.0"
] | null | null | null | #include "gtest/gtest.h"
#include <ups/upscaledb.h>
#include <vector>
#include <string>
#include <algorithm>
#include "random_string.h"
TEST( db, record_number )
{
const uint16_t DATABASE_NAME = 1;
ups_status_t st;
ups_env_t *env = nullptr;
ups_db_t *db = nullptr;
ups_cursor_t *cursor = nullptr;... | 27.1125 | 94 | 0.615952 | romz-pl |
84dafd48a00d2f2d149ebf7ca19de87b63300c09 | 1,364 | hh | C++ | TrackerConditions/inc/Mu2eDetector.hh | NamithaChitrazee/Offline-1 | bcb6c74954f95dd48433d79a69d3ef3bdb99022e | [
"Apache-2.0"
] | null | null | null | TrackerConditions/inc/Mu2eDetector.hh | NamithaChitrazee/Offline-1 | bcb6c74954f95dd48433d79a69d3ef3bdb99022e | [
"Apache-2.0"
] | null | null | null | TrackerConditions/inc/Mu2eDetector.hh | NamithaChitrazee/Offline-1 | bcb6c74954f95dd48433d79a69d3ef3bdb99022e | [
"Apache-2.0"
] | null | null | null | #ifndef TrackerConditions_Mu2eDetector_hh
#define TrackerConditions_Mu2eDetector_hh
//
// This holds the straw geometry as a set of
// DetStrawElem, which is the format needed by BTrk.
// DetStrawElem has a pointer to a DetStrawType,
// which describes the material in a format BTrk needs, and
// a pointer to a Straw, i... | 27.836735 | 66 | 0.72654 | NamithaChitrazee |
84e0eb154cd9b75c6341e42c7c961605717f16f7 | 5,593 | cpp | C++ | util_test.cpp | omegaup/omegajail | 741e5828709ba896f09b70f65beb66169299f471 | [
"BSD-3-Clause"
] | null | null | null | util_test.cpp | omegaup/omegajail | 741e5828709ba896f09b70f65beb66169299f471 | [
"BSD-3-Clause"
] | 2 | 2018-10-09T14:03:30.000Z | 2022-02-22T14:36:41.000Z | util_test.cpp | omegaup/omegajail | 741e5828709ba896f09b70f65beb66169299f471 | [
"BSD-3-Clause"
] | 3 | 2017-10-16T02:08:38.000Z | 2018-10-09T13:18:17.000Z | #include <gtest/gtest.h>
#include <string>
#include <string_view>
#include <tuple>
#include <utility>
#include <vector>
#include "util.h"
TEST(UtilTest, StringPrintf) {
EXPECT_EQ(StringPrintf("%s %s", "hello", "world"), "hello world");
EXPECT_EQ(StringPrintf("%d %d", 0, 1), "0 1");
}
TEST(UtilTest, StringSplitB... | 27.825871 | 80 | 0.463615 | omegaup |
84e1106245dd818f6b72ccc1f14f70e6911fc2da | 3,291 | cpp | C++ | src/mpi.cpp | develancer/coulombo | 4e19a9f20d97427f2ba150f86e48bfc0d07ad555 | [
"CC-BY-4.0"
] | null | null | null | src/mpi.cpp | develancer/coulombo | 4e19a9f20d97427f2ba150f86e48bfc0d07ad555 | [
"CC-BY-4.0"
] | null | null | null | src/mpi.cpp | develancer/coulombo | 4e19a9f20d97427f2ba150f86e48bfc0d07ad555 | [
"CC-BY-4.0"
] | null | null | null | // Coulombo Ⓒ 2018
// [Computer Physics Communications] Różański & Zieliński:
// Efficient computation of Coulomb and exchange integrals for multi-million atom nanostructures
#include "mpi.hpp"
#include "throwf.hpp"
#define THROW_IF_FAILS(COMMAND) if (COMMAND) { throwfr("mpi::%s failed", __FUNCTION__); }
namespace mp... | 21.509804 | 115 | 0.684594 | develancer |
84e261f763c4ad7b454e6da70dceb0a84f607f17 | 165 | cc | C++ | test/multiprecision_test.cc | cirrostratus1/rules_boost | 8a084196b14a396b6d4ff7c928ffbb6621f0d32c | [
"Apache-2.0"
] | 214 | 2016-08-24T01:08:04.000Z | 2022-03-11T02:24:55.000Z | test/multiprecision_test.cc | cirrostratus1/rules_boost | 8a084196b14a396b6d4ff7c928ffbb6621f0d32c | [
"Apache-2.0"
] | 184 | 2017-01-20T22:43:28.000Z | 2022-03-07T16:26:45.000Z | test/multiprecision_test.cc | cirrostratus1/rules_boost | 8a084196b14a396b6d4ff7c928ffbb6621f0d32c | [
"Apache-2.0"
] | 258 | 2016-08-24T01:08:06.000Z | 2022-03-18T18:07:16.000Z | #include <boost/multiprecision/cpp_int.hpp>
int main()
{
boost::multiprecision::uint128_t a(123);
int b = 123;
if (a != b) {
return 1;
}
return 0;
}
| 12.692308 | 43 | 0.606061 | cirrostratus1 |
84e2a23382592ef68ff63d287349f08abeca1912 | 3,030 | cpp | C++ | 01_introductory_problems/06_number_spiral.cpp | hariharanragothaman/CSES | fa3478a71fbf66f695673e2a644d84084f6a3b90 | [
"MIT"
] | 1 | 2021-06-17T17:14:13.000Z | 2021-06-17T17:14:13.000Z | 01_introductory_problems/06_number_spiral.cpp | hariharanragothaman/CSES | fa3478a71fbf66f695673e2a644d84084f6a3b90 | [
"MIT"
] | null | null | null | 01_introductory_problems/06_number_spiral.cpp | hariharanragothaman/CSES | fa3478a71fbf66f695673e2a644d84084f6a3b90 | [
"MIT"
] | null | null | null | /* BEGIN HEADER FILES AND OTHER OPTIZATIONS */
#pragma GCC optimize("Ofast")
#include <iostream>
#include <fstream>
#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <chrono>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <fstream>
#include <sstream>
using namespac... | 21.956522 | 136 | 0.592079 | hariharanragothaman |
84e4edf645df153aae257a3d5d6d2adbd28106c3 | 21,008 | cpp | C++ | src/tutljob.cpp | taviso/mpgravity | f6a2a7a02014b19047e44db76ae551bd689c16ac | [
"BSD-3-Clause"
] | 9 | 2020-04-01T04:15:22.000Z | 2021-09-26T21:03:47.000Z | src/tutljob.cpp | taviso/mpgravity | f6a2a7a02014b19047e44db76ae551bd689c16ac | [
"BSD-3-Clause"
] | 17 | 2020-04-02T19:38:40.000Z | 2020-04-12T05:47:08.000Z | src/tutljob.cpp | taviso/mpgravity | f6a2a7a02014b19047e44db76ae551bd689c16ac | [
"BSD-3-Clause"
] | null | null | null | /*****************************************************************************/
/* SOURCE CONTROL VERSIONS */
/*---------------------------------------------------------------------------*/
/* ... | 27.24773 | 141 | 0.583159 | taviso |
84e6b7e8db539ae980be9e0e513da39e690dc9ec | 12,079 | cpp | C++ | operators/genericaggregate.cpp | damodar123/pythia-core | 6b90aafed40aa63185105a652b20c61fc5a4320d | [
"BSD-3-Clause"
] | null | null | null | operators/genericaggregate.cpp | damodar123/pythia-core | 6b90aafed40aa63185105a652b20c61fc5a4320d | [
"BSD-3-Clause"
] | null | null | null | operators/genericaggregate.cpp | damodar123/pythia-core | 6b90aafed40aa63185105a652b20c61fc5a4320d | [
"BSD-3-Clause"
] | null | null | null |
/*
* Copyright 2011, Pythia authors (see AUTHORS file).
* All rights reserved.
*
* 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... | 23.408915 | 90 | 0.680768 | damodar123 |
84e8345bff42ecb941ecc31f8d01488c7546cbe1 | 2,483 | cpp | C++ | dep/src/g3dlite/g3dmath.cpp | Ambal/mangos | 9833ce4e393ca36668751dbcc9dfcf7cae8ff4ff | [
"OpenSSL"
] | null | null | null | dep/src/g3dlite/g3dmath.cpp | Ambal/mangos | 9833ce4e393ca36668751dbcc9dfcf7cae8ff4ff | [
"OpenSSL"
] | null | null | null | dep/src/g3dlite/g3dmath.cpp | Ambal/mangos | 9833ce4e393ca36668751dbcc9dfcf7cae8ff4ff | [
"OpenSSL"
] | null | null | null | /**
@file g3dmath.cpp
@author Morgan McGuire, graphics3d.com
@created 2001-06-02
@edited 2004-02-24
*/
#include "G3D/g3dmath.h"
#include <cstdlib>
#include <cstring>
namespace G3D {
float gaussRandom(float mean, float stdev) {
// Using Box-Mueller method from http://www.taygeta.com/random/gaussian.h... | 22.572727 | 80 | 0.596456 | Ambal |
84e8af4d6a8b2ad9c841023cbbe966b1fff680c1 | 874 | hpp | C++ | include/ashera/algorithm.hpp | tbrekalo/ashera | 20c3e147e987df90381718ddc916059ca3b48f17 | [
"MIT"
] | 4 | 2022-01-17T10:24:02.000Z | 2022-01-31T19:49:40.000Z | include/ashera/algorithm.hpp | tbrekalo/ashera | 20c3e147e987df90381718ddc916059ca3b48f17 | [
"MIT"
] | null | null | null | include/ashera/algorithm.hpp | tbrekalo/ashera | 20c3e147e987df90381718ddc916059ca3b48f17 | [
"MIT"
] | null | null | null | #ifndef ASHERA_ALGORITHM_HPP_
#define ASHERA_ALGORITHM_HPP_
#include <cstdint>
#include <memory>
#include <vector>
#include "ashera/configs.hpp"
#include "biosoup/nucleic_acid.hpp"
#include "biosoup/overlap.hpp"
#include "thread_pool/thread_pool.hpp"
namespace ashera {
[[nodiscard]] auto FindSnpFreeOverlaps(
st... | 29.133333 | 78 | 0.742563 | tbrekalo |
84f09da80ef8719dcfbd383607edef06ca65e06a | 1,723 | cpp | C++ | libs/imagecolor/src/image/color/format_from_static.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/imagecolor/src/image/color/format_from_static.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/imagecolor/src/image/color/format_from_static.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/core/impl/export_function_instantiation.hpp>
#include <sge/image/color/enable_if_has_... | 45.342105 | 98 | 0.773651 | cpreh |
84f15b0c4f232ea519a681aa6def8cc8c35abea6 | 1,082 | cpp | C++ | day07/2.cpp | lvrcek/advent-of-code-2021 | 1fdfe96fb103ab9cac156c994b61913ab8813560 | [
"MIT"
] | 3 | 2021-12-04T19:37:22.000Z | 2022-01-02T23:12:12.000Z | day07/2.cpp | lvrcek/advent-of-code-2021 | 1fdfe96fb103ab9cac156c994b61913ab8813560 | [
"MIT"
] | null | null | null | day07/2.cpp | lvrcek/advent-of-code-2021 | 1fdfe96fb103ab9cac156c994b61913ab8813560 | [
"MIT"
] | 1 | 2021-12-07T18:51:56.000Z | 2021-12-07T18:51:56.000Z | #include <bits/stdc++.h>
std::vector<int> split(std::string s, std::string del) {
int start = 0;
int end = s.find(del);
std::vector<int> tokens;
while (end != -1) {
tokens.push_back(atoi(s.substr(start, end - start).c_str()));
start = end + del.size();
end = s.find(del, start);... | 27.05 | 69 | 0.54159 | lvrcek |
84f39ec9123feb203e716523cc8b9d0ac1f6152d | 1,311 | hpp | C++ | connections/MapReduceKernelConn.hpp | PetaVision/ObsoletePV | e99a42bf4292e944b252e144b5e07442b0715697 | [
"MIT"
] | null | null | null | connections/MapReduceKernelConn.hpp | PetaVision/ObsoletePV | e99a42bf4292e944b252e144b5e07442b0715697 | [
"MIT"
] | null | null | null | connections/MapReduceKernelConn.hpp | PetaVision/ObsoletePV | e99a42bf4292e944b252e144b5e07442b0715697 | [
"MIT"
] | null | null | null | /*
* MapReduceKernelConn.hpp
*
* Created on: Aug 16, 2013
* Author: garkenyon
*/
#ifndef MAPREDUCEKERNELCONN_HPP_
#define MAPREDUCEKERNELCONN_HPP_
#include "HyPerConn.hpp"
#include "../layers/Movie.hpp"
namespace PV {
class MapReduceKernelConn: public PV::HyPerConn {
public:
MapReduceKernelConn();
virt... | 27.893617 | 68 | 0.765065 | PetaVision |
84f4e248719fc86c0ab54c6a74ac1f3f9f6655ce | 5,028 | cpp | C++ | runtime/stdlib/llambda/base/vector.cpp | etaoins/llambda | a2a5c212ebb56701fa28649c377d0ddd8b67da0b | [
"Apache-2.0"
] | 68 | 2015-01-17T10:42:00.000Z | 2021-11-18T02:48:01.000Z | runtime/stdlib/llambda/base/vector.cpp | etaoins/llambda | a2a5c212ebb56701fa28649c377d0ddd8b67da0b | [
"Apache-2.0"
] | 15 | 2015-01-05T07:59:33.000Z | 2018-01-05T02:58:10.000Z | runtime/stdlib/llambda/base/vector.cpp | etaoins/llambda | a2a5c212ebb56701fa28649c377d0ddd8b67da0b | [
"Apache-2.0"
] | 7 | 2015-04-22T06:21:47.000Z | 2021-08-23T07:15:13.000Z | #include "binding/AnyCell.h"
#include "binding/VectorCell.h"
#include "binding/ProperList.h"
#include "binding/StringCell.h"
#include "binding/CharCell.h"
#include "core/error.h"
#include "core/World.h"
#include "unicode/UnicodeChar.h"
#include "util/rangeAssertions.h"
#include "util/StringCellBuilder.h"
using name... | 29.928571 | 135 | 0.726134 | etaoins |
84fbdb89923f4444f5b94606526b1ef5ab419748 | 75,711 | cpp | C++ | sdk/sdk/share/opencv/cxcore/src/cxconvert.cpp | doyaGu/C0501Q_HWJL01 | 07a71328bd9038453cbb1cf9c276a3dd1e416d63 | [
"MIT"
] | 1 | 2021-10-09T08:05:50.000Z | 2021-10-09T08:05:50.000Z | sdk/sdk/share/opencv/cxcore/src/cxconvert.cpp | doyaGu/C0501Q_HWJL01 | 07a71328bd9038453cbb1cf9c276a3dd1e416d63 | [
"MIT"
] | null | null | null | sdk/sdk/share/opencv/cxcore/src/cxconvert.cpp | doyaGu/C0501Q_HWJL01 | 07a71328bd9038453cbb1cf9c276a3dd1e416d63 | [
"MIT"
] | null | null | null | /*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... | 42.34396 | 98 | 0.349236 | doyaGu |
ebc9a823b152e2302133f4a1a378e3721c544f73 | 7,123 | hpp | C++ | viennashe/she/scattering/fixed_charge_scattering.hpp | FelipeSenra/viennashe-dev | 1b42f01b0826322c0b49a6fcf08fc0db5946e21f | [
"MIT"
] | 3 | 2020-05-07T14:38:52.000Z | 2021-05-30T09:43:18.000Z | viennashe/she/scattering/fixed_charge_scattering.hpp | FelipeSenra/viennashe-dev | 1b42f01b0826322c0b49a6fcf08fc0db5946e21f | [
"MIT"
] | 1 | 2021-05-02T13:50:52.000Z | 2021-05-03T03:49:51.000Z | viennashe/she/scattering/fixed_charge_scattering.hpp | FelipeSenra/viennashe-dev | 1b42f01b0826322c0b49a6fcf08fc0db5946e21f | [
"MIT"
] | 3 | 2020-05-07T14:39:07.000Z | 2021-05-08T12:15:26.000Z | #ifndef VIENNASHE_FIXED_CHARGE_SCATTERING_HPP
#define VIENNASHE_FIXED_CHARGE_SCATTERING_HPP
/* ============================================================================
Copyright (c) 2011-2014, Institute for Microelectronics,
Institute for Analysis and Scientific Computing,
... | 38.502703 | 155 | 0.592728 | FelipeSenra |
ebca680785cedfd665e8d09f5d4d83910f6b7ef0 | 18,001 | cxx | C++ | ThirdParty/Havok/include/Common/Compat/Patches/2010_1/hkbPatches_2010_1.cxx | wobbier/source3-engine | f59df759ee197aef5191cf13768c303c6ed17bf5 | [
"MIT"
] | 11 | 2016-08-02T03:40:36.000Z | 2022-03-15T13:41:29.000Z | ThirdParty/Havok/include/Common/Compat/Patches/2010_1/hkbPatches_2010_1.cxx | wobbier/source3-engine | f59df759ee197aef5191cf13768c303c6ed17bf5 | [
"MIT"
] | null | null | null | ThirdParty/Havok/include/Common/Compat/Patches/2010_1/hkbPatches_2010_1.cxx | wobbier/source3-engine | f59df759ee197aef5191cf13768c303c6ed17bf5 | [
"MIT"
] | 8 | 2017-03-17T05:59:25.000Z | 2021-02-27T08:51:46.000Z | /*
*
* Confidential Information of Telekinesys Research Limited (t/a Havok). Not for disclosure or distribution without Havok's
* prior written consent. This software contains code, techniques and know-how which is confidential and proprietary to Havok.
* Product and Trade Secret source code contains trade secrets ... | 47.496042 | 251 | 0.804678 | wobbier |
ebcb02b9f48ea740367b50ee9289d7d1d8cc655d | 33,991 | hpp | C++ | src/raman_elastic_scattering.hpp | Kirbologist/Raman-Scattering-Code-Conversion | 118a08238a2525f595c4b7d2b735dd37852fac6f | [
"MIT"
] | 1 | 2022-01-09T12:41:22.000Z | 2022-01-09T12:41:22.000Z | src/raman_elastic_scattering.hpp | Kirbologist/Raman-Scattering-Code-Conversion | 118a08238a2525f595c4b7d2b735dd37852fac6f | [
"MIT"
] | null | null | null | src/raman_elastic_scattering.hpp | Kirbologist/Raman-Scattering-Code-Conversion | 118a08238a2525f595c4b7d2b735dd37852fac6f | [
"MIT"
] | null | null | null | /*
This file is a part of Raman-Scattering-Code-Conversion.
<https://github.com/Kirbologist/Raman-Scattering-Code-Conversion>
Written by Siwan Li for the UQ School of Maths and Physics.
Copyright (C) 2021-2022 Siwan Li
This source code form is subject to the terms of the MIT License.
If a copy of the MIT Lice... | 49.477438 | 120 | 0.665853 | Kirbologist |
ebcecd4422dbf003d3976bc3e111146defb6883e | 1,217 | cpp | C++ | Greedy/KnapsackProblem.cpp | gaurav147-star/DSA-learning | 52625953e2b1421fdd550004df893b970aac9308 | [
"MIT"
] | 1 | 2022-02-15T12:53:00.000Z | 2022-02-15T12:53:00.000Z | Greedy/KnapsackProblem.cpp | gaurav147-star/DSA-learning | 52625953e2b1421fdd550004df893b970aac9308 | [
"MIT"
] | null | null | null | Greedy/KnapsackProblem.cpp | gaurav147-star/DSA-learning | 52625953e2b1421fdd550004df893b970aac9308 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
struct Item
{
int value;
int weight;
};
bool cmp(struct Item a, struct Item b)
{
double r1 = (double)a.value / (double)a.weight;
double r2 = (double)b.value / (double)b.weight;
return r1 > r2;
}
double fractionalKnapsack(int W, struct Item arr[], int n)... | 21.732143 | 82 | 0.515201 | gaurav147-star |
ebd2f00d93a62594ff30ce984b825e6fcc46ad6a | 6,267 | cpp | C++ | sycl/source/detail/builtins_common.cpp | jcranmer-intel/llvm-sycl | 45dbbd128e4793681ed9d40a3c018f44c17449ec | [
"Apache-2.0"
] | null | null | null | sycl/source/detail/builtins_common.cpp | jcranmer-intel/llvm-sycl | 45dbbd128e4793681ed9d40a3c018f44c17449ec | [
"Apache-2.0"
] | null | null | null | sycl/source/detail/builtins_common.cpp | jcranmer-intel/llvm-sycl | 45dbbd128e4793681ed9d40a3c018f44c17449ec | [
"Apache-2.0"
] | null | null | null | //==----------- builtins_common.cpp - SYCL built-in common functions -------==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 33.335106 | 80 | 0.674007 | jcranmer-intel |
ebd3503b92ffae5db016c3d62f9bd76e7cdd223c | 1,603 | cpp | C++ | AIEphys/src/TestRifle.cpp | squeenie/ProjectFakeDoctor | 914c34217fd538be3d0229c0c88d9a7f41ede63d | [
"MIT"
] | null | null | null | AIEphys/src/TestRifle.cpp | squeenie/ProjectFakeDoctor | 914c34217fd538be3d0229c0c88d9a7f41ede63d | [
"MIT"
] | null | null | null | AIEphys/src/TestRifle.cpp | squeenie/ProjectFakeDoctor | 914c34217fd538be3d0229c0c88d9a7f41ede63d | [
"MIT"
] | null | null | null | #include "TestRifle.h"
#include "Timer.h"
#include "Animation.h"
#include "Audio.h"
CTestRifle::CTestRifle()
{
m_CurrentAmmoCount = 8;
m_Condition = 1.0;
m_CurrentSpread = 30.0f;
m_MaxSpread = 200.0f;
m_AnimMuzzle = new CAnimation("./Images/Effects/Muzzle_Stock.png", 3, 3, 1, 24.0f, 32, 32);
m_AnimMuzzle->SetLo... | 17.053191 | 92 | 0.68247 | squeenie |
ebd6c48ae6983596cf1bd1074e0ee58466c9cb3b | 645 | cpp | C++ | 5.Inheritance/i-Design/Q3/Main.cpp | Concept-Team/e-box-UTA018 | a6caf487c9f27a5ca30a00847ed49a163049f67e | [
"MIT"
] | 26 | 2021-03-17T03:15:22.000Z | 2021-06-09T13:29:41.000Z | 5.Inheritance/i-Design/Q3/Main.cpp | Servatom/e-box-UTA018 | a6caf487c9f27a5ca30a00847ed49a163049f67e | [
"MIT"
] | 6 | 2021-03-16T19:04:05.000Z | 2021-06-03T13:41:04.000Z | 5.Inheritance/i-Design/Q3/Main.cpp | Concept-Team/e-box-UTA018 | a6caf487c9f27a5ca30a00847ed49a163049f67e | [
"MIT"
] | 42 | 2021-03-17T03:16:22.000Z | 2021-06-14T21:11:20.000Z | #include <iostream>
using namespace std;
#include "Developer.cpp"
int main()
{
string name,skills,role,gender;
int empId,experience;
cout<<"Enter the name"<<endl;
cin>>name;
cout<<"Enter the gender\n";
cin>>gender;
cout<<"Enter the experience"<<endl;
cin>>experience;
cou... | 24.807692 | 59 | 0.617054 | Concept-Team |
ebd88d88959d3b5959e7e9e38b90c510b5918895 | 359 | hpp | C++ | src/OneACPose/solver_one_ac_depth.hpp | eivan/one-ac-pose | 79451626238f47130578c18b65e37cabd7332de1 | [
"MIT"
] | 4 | 2020-07-31T19:12:44.000Z | 2022-02-22T14:34:48.000Z | src/OneACPose/solver_one_ac_depth.hpp | eivan/OneAC | 79451626238f47130578c18b65e37cabd7332de1 | [
"MIT"
] | null | null | null | src/OneACPose/solver_one_ac_depth.hpp | eivan/OneAC | 79451626238f47130578c18b65e37cabd7332de1 | [
"MIT"
] | null | null | null | #pragma once
#include "types.hpp"
namespace OneACPose {
void OneACD(
const Vec3& dst, const Vec3& src,
const Mat32& dst_diff, const Mat32& src_diff,
double& scale, Mat3& R, Vec3& t);
void OneACD_Umeyama(
const Vec3& dst, const Vec3& src,
const Mat32& dst_diff, const Mat32& src_diff,
... | 22.4375 | 50 | 0.649025 | eivan |
ebd8fa8e2bba5d694c71c184a88cd9a694edeba4 | 3,158 | cpp | C++ | DGEngine.core.modules/src/IfCondition.cpp | dgcor/DGEngine-Modules | 02bd3dab724b8d634b8054cbf079ca4f27a7a8dc | [
"Zlib"
] | 1 | 2021-08-19T10:24:40.000Z | 2021-08-19T10:24:40.000Z | DGEngine.core.modules/src/IfCondition.cpp | dgcor/DGEngine-Modules | 02bd3dab724b8d634b8054cbf079ca4f27a7a8dc | [
"Zlib"
] | null | null | null | DGEngine.core.modules/src/IfCondition.cpp | dgcor/DGEngine-Modules | 02bd3dab724b8d634b8054cbf079ca4f27a7a8dc | [
"Zlib"
] | 1 | 2021-08-19T10:24:47.000Z | 2021-08-19T10:24:47.000Z | module dgengine.ifcondition;
import dgengine.gameutils;
import dgengine.utils.regex;
import dgengine.utils.utils;
Variable IfCondition::getVariable(const Game& game, const VarOrPredicate& varOrPred)
{
if (holdsVariable(varOrPred) == true)
{
const auto& var = std::get<Variable>(varOrPred);
if (std::holds_alterna... | 21.053333 | 84 | 0.648828 | dgcor |
ebd9168c3d8e9aa18811beb54b7b1c7ed42c1d2d | 12,708 | cpp | C++ | Compiler/Analysis/SemanticAnalyser.cpp | coatest/emojicode | 1243c701333ce91199ecaaf83fe3ac5863b97d50 | [
"Artistic-2.0"
] | 2,963 | 2016-01-03T20:10:06.000Z | 2022-03-30T11:31:34.000Z | Compiler/Analysis/SemanticAnalyser.cpp | coatest/emojicode | 1243c701333ce91199ecaaf83fe3ac5863b97d50 | [
"Artistic-2.0"
] | 177 | 2016-01-05T20:36:08.000Z | 2022-03-24T19:22:54.000Z | Compiler/Analysis/SemanticAnalyser.cpp | coatest/emojicode | 1243c701333ce91199ecaaf83fe3ac5863b97d50 | [
"Artistic-2.0"
] | 221 | 2016-01-03T21:14:59.000Z | 2022-03-12T17:20:12.000Z | //
// Created by Theo Weidmann on 26.02.18.
//
#include "SemanticAnalyser.hpp"
#include "Compiler.hpp"
#include "FunctionAnalyser.hpp"
#include "AST/ASTExpr.hpp"
#include "Scoping/SemanticScoper.hpp"
#include "Types/TypeExpectation.hpp"
#include "Package/Package.hpp"
#include "ThunkBuilder.hpp"
#include "Types/Class.h... | 41.940594 | 120 | 0.60159 | coatest |
ebdaed0563729d654fb1fc07e90211ff0957cfee | 3,211 | cpp | C++ | src/EDefaultWriteRequest.cpp | cxxjava/cxxMina | bb13556c74409a2bbb026ee422c14bd83fe46c9e | [
"Apache-2.0"
] | 7 | 2016-08-25T14:22:36.000Z | 2020-05-25T17:27:51.000Z | src/EDefaultWriteRequest.cpp | cxxjava/cxxMina | bb13556c74409a2bbb026ee422c14bd83fe46c9e | [
"Apache-2.0"
] | 1 | 2018-07-11T12:37:55.000Z | 2018-07-12T00:05:33.000Z | src/EDefaultWriteRequest.cpp | cxxjava/cxxMina | bb13556c74409a2bbb026ee422c14bd83fe46c9e | [
"Apache-2.0"
] | 2 | 2017-06-09T01:22:36.000Z | 2021-09-29T16:27:58.000Z | /*
* EDefaultWriteRequest.cpp
*
* Created on: 2016-1-6
* Author: cxxjava@163.com
*/
#include "../inc/EDefaultWriteRequest.hh"
#include "../inc/EIoFutureListener.hh"
#include "../inc/EWriteFuture.hh"
namespace efc {
namespace eio {
class UnusedWriteFuture : public EWriteFuture {
public:
boolean isWritten(... | 19.820988 | 98 | 0.701028 | cxxjava |
ebdc4b3126e6753128ba95cba0eebbf49bcfc282 | 1,154 | cpp | C++ | dmoj/gfsso/contest-1/friendship_is_a_number.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | 1 | 2020-07-16T01:46:38.000Z | 2020-07-16T01:46:38.000Z | dmoj/gfsso/contest-1/friendship_is_a_number.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | null | null | null | dmoj/gfsso/contest-1/friendship_is_a_number.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | 1 | 2020-05-27T14:30:43.000Z | 2020-05-27T14:30:43.000Z | #include <algorithm>
#include <functional>
#include <iostream>
#include <vector>
using namespace std;
inline
void use_io_optimizations()
{
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
}
struct Programmer
{
unsigned int id;
long long friend_points;
};
bool operator>(const Programmer& left, con... | 19.233333 | 72 | 0.59792 | Rkhoiwal |
ebdde3a5d771cd6163d1b217e8d96c52219181db | 5,002 | cpp | C++ | recipes-cbc/cbc/cbc/examples/driver3.cpp | Justin790126/meta-coinor | 0180187c583b3a6fd0a8dac7c85ac1bd89bf8cc9 | [
"MIT"
] | null | null | null | recipes-cbc/cbc/cbc/examples/driver3.cpp | Justin790126/meta-coinor | 0180187c583b3a6fd0a8dac7c85ac1bd89bf8cc9 | [
"MIT"
] | null | null | null | recipes-cbc/cbc/cbc/examples/driver3.cpp | Justin790126/meta-coinor | 0180187c583b3a6fd0a8dac7c85ac1bd89bf8cc9 | [
"MIT"
] | null | null | null | // Copyright (C) 2007, International Business Machines
// Corporation and others. All Rights Reserved.
// This code is licensed under the terms of the Eclipse Public License (EPL).
#include <cassert>
#include <iomanip>
#include "CoinPragma.hpp"
#include "CbcModel.hpp"
#include "OsiClpSolverInterface.hpp"
#include "C... | 32.69281 | 144 | 0.619352 | Justin790126 |
ebde4587f80a604d8e0dbf4fffd4343ac303d224 | 3,102 | cpp | C++ | src/prod/src/data/txnreplicator/common/BackupVersion.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | 2,542 | 2018-03-14T21:56:12.000Z | 2019-05-06T01:18:20.000Z | src/prod/src/data/txnreplicator/common/BackupVersion.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | 994 | 2019-05-07T02:39:30.000Z | 2022-03-31T13:23:04.000Z | src/prod/src/data/txnreplicator/common/BackupVersion.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | 300 | 2018-03-14T21:57:17.000Z | 2019-05-06T20:07:00.000Z | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
using nam... | 21.393103 | 98 | 0.636364 | AnthonyM |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.