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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0408638117463d127ffc06580bfb132404eccb0c | 1,550 | cpp | C++ | src/BSDFs/LambertianDiffuse.cpp | flashpoint493/AyaRay | 96a7c90ad908468084cb339d4adf3638b750ee82 | [
"MIT"
] | 1 | 2020-08-03T05:58:27.000Z | 2020-08-03T05:58:27.000Z | src/BSDFs/LambertianDiffuse.cpp | flashpoint493/AyaRay | 96a7c90ad908468084cb339d4adf3638b750ee82 | [
"MIT"
] | null | null | null | src/BSDFs/LambertianDiffuse.cpp | flashpoint493/AyaRay | 96a7c90ad908468084cb339d4adf3638b750ee82 | [
"MIT"
] | null | null | null | #include "LambertianDiffuse.h"
namespace Aya {
float LambertianDiffuse::evalInner(const Vector3 &wo, const Vector3 &wi, const SurfaceIntersection &intersection, ScatterType types) const {
if (CosTheta(wo) <= 0.f || !sameHemisphere(wo, wi))
return 0.0f;
return float(M_1_PI);
}
float LambertianDiffuse::pdfInne... | 31.632653 | 141 | 0.694194 | flashpoint493 |
041316d39b4039541ab4dd1f315bf033471fd86a | 28,523 | cpp | C++ | plugins/df3d.cpp | quietust/dfhack-23a | 6096c385cc70db363d8d680745d7da4a973b05d5 | [
"BSD-2-Clause"
] | 1 | 2017-09-28T04:55:05.000Z | 2017-09-28T04:55:05.000Z | plugins/df3d.cpp | quietust/dfhack-23a | 6096c385cc70db363d8d680745d7da4a973b05d5 | [
"BSD-2-Clause"
] | null | null | null | plugins/df3d.cpp | quietust/dfhack-23a | 6096c385cc70db363d8d680745d7da4a973b05d5 | [
"BSD-2-Clause"
] | 1 | 2016-04-16T04:40:16.000Z | 2016-04-16T04:40:16.000Z | // Make 23a more 3-dimensional
#include "Core.h"
#include "Console.h"
#include "Export.h"
#include "PluginManager.h"
#include "DataDefs.h"
#include "TileTypes.h"
#include "modules/Maps.h"
#include "modules/Gui.h"
#include "df/world.h"
#include "df/ui.h"
#include "df/map_block.h"
#include "df/mineral_cluster.h"
#inclu... | 33.321262 | 237 | 0.470918 | quietust |
041501804ce31489d27f3c1b48f54cb9bc241f23 | 557 | cpp | C++ | test/sized_tuple_t.cpp | knoepfel/sand | ed458be7eec27d4b68cb76c7a61f344bb77926bf | [
"Apache-2.0"
] | null | null | null | test/sized_tuple_t.cpp | knoepfel/sand | ed458be7eec27d4b68cb76c7a61f344bb77926bf | [
"Apache-2.0"
] | null | null | null | test/sized_tuple_t.cpp | knoepfel/sand | ed458be7eec27d4b68cb76c7a61f344bb77926bf | [
"Apache-2.0"
] | null | null | null | #include "meld/utilities/sized_tuple.hpp"
#include <concepts>
using namespace std;
using namespace meld;
int
main()
{
static_assert(same_as<sized_tuple<int, 3>, tuple<int, int, int>>);
static_assert(
same_as<concatenated_tuples<tuple<int>, sized_tuple<double, 4>, tuple<float, float>>,
tuple<int, ... | 29.315789 | 89 | 0.70018 | knoepfel |
041cebdfe20501993304051d1cd8f84a5a73ac1f | 761 | cpp | C++ | stm32/stm32f4/usb/UsbIrqViaSTM32F4.cpp | PhischDotOrg/stm32f4-common | 4b6b9c436018c89d3668c6ee107e97abb930bae2 | [
"MIT"
] | 1 | 2022-01-31T01:59:52.000Z | 2022-01-31T01:59:52.000Z | stm32/stm32f4/usb/UsbIrqViaSTM32F4.cpp | PhischDotOrg/stm32-common | 4b6b9c436018c89d3668c6ee107e97abb930bae2 | [
"MIT"
] | 5 | 2020-04-13T21:55:12.000Z | 2020-06-27T17:44:44.000Z | stm32/stm32f4/usb/UsbIrqViaSTM32F4.cpp | PhischDotOrg/stm32f4-common | 4b6b9c436018c89d3668c6ee107e97abb930bae2 | [
"MIT"
] | null | null | null | /*-
* $Copyright$
-*/
#include <usb/UsbCoreViaSTM32F4.hpp>
extern usb::stm32f4::UsbFullSpeedCore usbCore;
/*******************************************************************************
*
******************************************************************************/
#if defined(__cplusplus)
extern "C" {
#endif ... | 15.854167 | 80 | 0.52431 | PhischDotOrg |
041d6ffb97fa06100c0bb05a7b7ea782111ee8c2 | 1,177 | hpp | C++ | include/Mahi/FesExo/FesGprModel.hpp | mahilab/FES_Exo | 46b5f911048993eadaceaf51d50a8a0d2d523507 | [
"MIT"
] | null | null | null | include/Mahi/FesExo/FesGprModel.hpp | mahilab/FES_Exo | 46b5f911048993eadaceaf51d50a8a0d2d523507 | [
"MIT"
] | null | null | null | include/Mahi/FesExo/FesGprModel.hpp | mahilab/FES_Exo | 46b5f911048993eadaceaf51d50a8a0d2d523507 | [
"MIT"
] | null | null | null | #pragma once
#include <nlohmann/json.hpp>
#include <Mahi/FesExo/Kernels.hpp>
#include <Eigen/Dense>
template <typename T>
class FesGprModel
{
public:
/// constructor
FesGprModel(std::string json_filename);
~FesGprModel();
std::string name; // name of the model detailing muscle and joint
/// predic... | 40.586207 | 125 | 0.687341 | mahilab |
042310b23dcaf0e3086931a1085bc410e39aa57e | 3,024 | hpp | C++ | SDK/ARKSurvivalEvolved_Buff_TekPistolHelper_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_Buff_TekPistolHelper_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_Buff_TekPistolHelper_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_Buff_TekPistolHelper_classes.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Parameters
//-------------------------------------------------... | 51.254237 | 161 | 0.532077 | 2bite |
04237db04d28e0fd02d0c3d501ad7f431765c8b5 | 1,164 | cpp | C++ | src/marnav/nmea/wnc.cpp | ShadowTeolog/marnav | 094dd06a2b9e52591bc9c3879ea4b5cf34a92192 | [
"BSD-4-Clause"
] | null | null | null | src/marnav/nmea/wnc.cpp | ShadowTeolog/marnav | 094dd06a2b9e52591bc9c3879ea4b5cf34a92192 | [
"BSD-4-Clause"
] | null | null | null | src/marnav/nmea/wnc.cpp | ShadowTeolog/marnav | 094dd06a2b9e52591bc9c3879ea4b5cf34a92192 | [
"BSD-4-Clause"
] | null | null | null | #include "wnc.hpp"
#include "io.hpp"
namespace marnav
{
namespace nmea
{
constexpr sentence_id wnc::ID;
constexpr const char * wnc::TAG;
wnc::wnc()
: sentence(ID, TAG, talker_id::global_positioning_system)
{
}
wnc::wnc(talker talk, fields::const_iterator first, fields::const_iterator last)
: sentence(ID, TAG, talk... | 21.962264 | 80 | 0.714777 | ShadowTeolog |
54b5765153f87dd92df9bef7bf26dba27487670e | 4,090 | cpp | C++ | Crow/src/Platform/GraphicAPI/OpenGL/OpenGLFont.cpp | quesswho/Crow | c57df8fe6dc323acd2c5e7b14b0b65d34b4a6e94 | [
"Apache-2.0"
] | null | null | null | Crow/src/Platform/GraphicAPI/OpenGL/OpenGLFont.cpp | quesswho/Crow | c57df8fe6dc323acd2c5e7b14b0b65d34b4a6e94 | [
"Apache-2.0"
] | 5 | 2020-02-16T10:43:15.000Z | 2020-05-02T20:24:01.000Z | Crow/src/Platform/GraphicAPI/OpenGL/OpenGLFont.cpp | quesswho/Crow | c57df8fe6dc323acd2c5e7b14b0b65d34b4a6e94 | [
"Apache-2.0"
] | null | null | null | #include "Platform/GraphicAPI/OpenGL/OpenGLFont.h"
#include "Crow/Application.h"
#include <glad/glad.h>
namespace Crow {
namespace Platform {
OpenGLFont::OpenGLFont(const char* path)
{
BufferProperties bufferprop = {
{ "POSITION", 4 }
};
m_Shader = OpenGLShader::CreateFromSource("BasicFont", Appli... | 27.635135 | 182 | 0.651834 | quesswho |
54b64dd7d995bab853b10e9d42aaaa4c040a5ad3 | 466 | cpp | C++ | solutions/task2/if/sol02/main.cpp | pkasila/lbsu-mif-contest | ed6e44dd3f0d4f84a3b03f75fbacb8b742f9d16e | [
"BSD-3-Clause"
] | null | null | null | solutions/task2/if/sol02/main.cpp | pkasila/lbsu-mif-contest | ed6e44dd3f0d4f84a3b03f75fbacb8b742f9d16e | [
"BSD-3-Clause"
] | null | null | null | solutions/task2/if/sol02/main.cpp | pkasila/lbsu-mif-contest | ed6e44dd3f0d4f84a3b03f75fbacb8b742f9d16e | [
"BSD-3-Clause"
] | null | null | null | #include<fstream>
#include<string>
#include<vector>
using namespace std;
int32_t main() {
ifstream fin("input.txt");
ofstream fout("output.txt");
int n;
fin >> n;
vector<int> v;
v.push_back(0);
while (v.size() <= n) {
int m = v.size();
for (int j = 0; j < m; j++)
... | 16.642857 | 35 | 0.474249 | pkasila |
54c0fb1742feed3f8540f24447693bf9b61e8bfe | 10,579 | cpp | C++ | vqf/cpp/offline_vqf.cpp | dlaidig/vqf | 694eeb55031382d396f14a6c977c4ad2d940bf66 | [
"MIT"
] | 1 | 2021-11-13T17:33:55.000Z | 2021-11-13T17:33:55.000Z | vqf/cpp/offline_vqf.cpp | dlaidig/vqf | 694eeb55031382d396f14a6c977c4ad2d940bf66 | [
"MIT"
] | null | null | null | vqf/cpp/offline_vqf.cpp | dlaidig/vqf | 694eeb55031382d396f14a6c977c4ad2d940bf66 | [
"MIT"
] | null | null | null | // SPDX-FileCopyrightText: 2021 Daniel Laidig <laidig@control.tu-berlin.de>
//
// SPDX-License-Identifier: MIT
#include "offline_vqf.hpp"
#include <algorithm>
#include <limits>
#define _USE_MATH_DEFINES
#include <math.h>
#include <assert.h>
#define EPS std::numeric_limits<vqf_real_t>::epsilon()
#define NaN std::nume... | 34.347403 | 126 | 0.564231 | dlaidig |
54c14ccef20a4c73986f5b45a0ba0492c9c49a75 | 19,131 | cpp | C++ | src/demos/sensor/demo_SEN_HMMWV.cpp | Ruochun/chrono | 7b0f09242ef540ae56cfc8add3a5dc7985c654d2 | [
"BSD-3-Clause"
] | null | null | null | src/demos/sensor/demo_SEN_HMMWV.cpp | Ruochun/chrono | 7b0f09242ef540ae56cfc8add3a5dc7985c654d2 | [
"BSD-3-Clause"
] | null | null | null | src/demos/sensor/demo_SEN_HMMWV.cpp | Ruochun/chrono | 7b0f09242ef540ae56cfc8add3a5dc7985c654d2 | [
"BSD-3-Clause"
] | null | null | null | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2019 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... | 38.884146 | 120 | 0.606555 | Ruochun |
54d07a77237e5bf48882f960fc65a2712367eb39 | 240 | cpp | C++ | ejemplo_4_05.cpp | kikeqt/Curso_CPP | f67ceb64975905d64beff70b1248016b4e578e10 | [
"MIT"
] | null | null | null | ejemplo_4_05.cpp | kikeqt/Curso_CPP | f67ceb64975905d64beff70b1248016b4e578e10 | [
"MIT"
] | null | null | null | ejemplo_4_05.cpp | kikeqt/Curso_CPP | f67ceb64975905d64beff70b1248016b4e578e10 | [
"MIT"
] | null | null | null | #include <iostream>
int main(void) {
struct Punto {
int x, y;
Punto() {x = 0; y = 0;} // Constructor
} Punto1, Punto2;
std::cout << Punto1.x << "," << Punto1.y << std::endl; // 0,0
return EXIT_SUCCESS;
} | 20 | 66 | 0.508333 | kikeqt |
54d15dc6d7585ac4336d3ddc6fd7632a7d9c4cf4 | 1,591 | cpp | C++ | test/types/ds/test_fenwick_tree.cpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 2 | 2020-07-31T14:13:56.000Z | 2021-02-03T09:51:43.000Z | test/types/ds/test_fenwick_tree.cpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 28 | 2015-09-22T07:38:21.000Z | 2018-10-02T11:00:58.000Z | test/types/ds/test_fenwick_tree.cpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 2 | 2018-10-11T14:10:50.000Z | 2021-02-27T08:53:50.000Z | #include <boost/test/unit_test.hpp>
#include "types/ds/fenwick_tree.hpp"
BOOST_AUTO_TEST_SUITE(TestFenwickTree)
BOOST_AUTO_TEST_CASE(empty_ft)
{
Types::DS::FenwickTree<int> ft(1);
}
BOOST_AUTO_TEST_CASE(init_ft_with_values)
{
Types::DS::FenwickTree<int> ft({1, 2, 3, 4});
B... | 24.106061 | 53 | 0.515399 | iamantony |
54d1fb0de60b0c8b5564a5473209eceb988fb485 | 4,373 | cpp | C++ | third_party/niflib/src/obj/NiPSysBombModifier.cpp | tcoppex/dojima | e9e2da8097c6ca5359ea5a26714a044a3ee83fe8 | [
"Unlicense"
] | null | null | null | third_party/niflib/src/obj/NiPSysBombModifier.cpp | tcoppex/dojima | e9e2da8097c6ca5359ea5a26714a044a3ee83fe8 | [
"Unlicense"
] | null | null | null | third_party/niflib/src/obj/NiPSysBombModifier.cpp | tcoppex/dojima | e9e2da8097c6ca5359ea5a26714a044a3ee83fe8 | [
"Unlicense"
] | null | null | null | /* Copyright (c) 2006, NIF File Format Library and Tools
All rights reserved. Please see niflib.h for license. */
//-----------------------------------NOTICE----------------------------------//
// Some of this file is automatically filled in by a Python script. Only //
// add custom code in the designated areas o... | 32.154412 | 179 | 0.650126 | tcoppex |
54d4e6713b142e5a8a4458f25ef52e94c2b03b6a | 1,052 | cpp | C++ | acmicpcnet/1657.cpp | irresi/algostudy | 489739d641d6e36bbedf86be6391d1db27456585 | [
"MIT"
] | null | null | null | acmicpcnet/1657.cpp | irresi/algostudy | 489739d641d6e36bbedf86be6391d1db27456585 | [
"MIT"
] | null | null | null | acmicpcnet/1657.cpp | irresi/algostudy | 489739d641d6e36bbedf86be6391d1db27456585 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
const int inf=1e9+3;
#define all(x) (x).begin(),(x).end()
#define sync() {ios_base::sync_with_stdio(0); cin.tie(0);cout.tie(0);}
int n,m,score[5][5]={
10,8,7,5,1,
8,6,4,3,1,
7,4,3,2,1,
5,3,2,2,1,
1,1,1,1,0
};
char inp[1... | 23.909091 | 102 | 0.468631 | irresi |
54d645f8faac7ffcf4cab94dca07ba5bdeb16c74 | 1,706 | cpp | C++ | internal/bin/test_sparsetodense_tf.cpp | Guanmoyu/Tengine | 2628086834f5e25455d175df732713618c8445d9 | [
"Apache-2.0"
] | 2 | 2020-12-14T14:49:03.000Z | 2021-05-14T08:09:59.000Z | internal/bin/test_sparsetodense_tf.cpp | Guanmoyu/Tengine | 2628086834f5e25455d175df732713618c8445d9 | [
"Apache-2.0"
] | null | null | null | internal/bin/test_sparsetodense_tf.cpp | Guanmoyu/Tengine | 2628086834f5e25455d175df732713618c8445d9 | [
"Apache-2.0"
] | null | null | null | #include <unistd.h>
#include <iostream>
#include <algorithm>
#include <fstream>
#include <iomanip>
#include <vector>
#include <algorithm>
#include "tengine_operations.h"
#include "tengine_c_api.h"
#include "tengine_config.hpp"
int main(int argc, char* argv[])
{
init_tengine();
if(request_tengine_version("0.9... | 20.804878 | 68 | 0.529894 | Guanmoyu |
54d75643ed49c8edeeb18981bf491dd966e59a91 | 17,296 | cpp | C++ | src/shared/Database/Database.cpp | Ambal/mangos | 9833ce4e393ca36668751dbcc9dfcf7cae8ff4ff | [
"OpenSSL"
] | null | null | null | src/shared/Database/Database.cpp | Ambal/mangos | 9833ce4e393ca36668751dbcc9dfcf7cae8ff4ff | [
"OpenSSL"
] | null | null | null | src/shared/Database/Database.cpp | Ambal/mangos | 9833ce4e393ca36668751dbcc9dfcf7cae8ff4ff | [
"OpenSSL"
] | null | null | null | /*
* This file is part of the CMaNGOS Project. See AUTHORS file for Copyright information
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your o... | 27.025 | 134 | 0.620953 | Ambal |
54dd117877ed8beea3bd165feeca6632da137ed9 | 400 | cpp | C++ | atcoder/abc/abc_158/b.cpp | hsmtknj/programming-contest | b0d7f8a2d12fb031d3a802e6a4769cd6d2defcab | [
"MIT"
] | null | null | null | atcoder/abc/abc_158/b.cpp | hsmtknj/programming-contest | b0d7f8a2d12fb031d3a802e6a4769cd6d2defcab | [
"MIT"
] | null | null | null | atcoder/abc/abc_158/b.cpp | hsmtknj/programming-contest | b0d7f8a2d12fb031d3a802e6a4769cd6d2defcab | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
int main()
{
long long N, A, B;
std::cin >> N >> A >> B;
long long a, b;
a = N / (A + B);
b = N % (A + B);
//std::cout << a << ", " << b << std::endl;
long long num1, num2;
num1 = a * A;
if (b <= A)
num2 = b;
else
num2 = A;
... | 14.814815 | 47 | 0.4 | hsmtknj |
54e196ad436e11c131d88957c7d9fe6f379ff9bf | 19,416 | cpp | C++ | oxycleanedNoComments.cpp | mparsakia/oxycleaned-duel-calc | 9d34c7195a3bccefb9051c33de5e273ffc94aece | [
"Unlicense"
] | null | null | null | oxycleanedNoComments.cpp | mparsakia/oxycleaned-duel-calc | 9d34c7195a3bccefb9051c33de5e273ffc94aece | [
"Unlicense"
] | null | null | null | oxycleanedNoComments.cpp | mparsakia/oxycleaned-duel-calc | 9d34c7195a3bccefb9051c33de5e273ffc94aece | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <iomanip>
#include <string>
#include <cmath>
#include <chrono>
#include <random>
#include <thread>
#include <map>
#include <algorithm>
using namespace std;
using std::cout;
using std::cin;
random_device g_rd;
mt19937_64 g_mt(g_rd());
int... | 35.822878 | 1,121 | 0.560826 | mparsakia |
54e3f5f0c5d6d4b8320655de0e6af6edbea13417 | 2,146 | cpp | C++ | src/dfm/net/impl/RegisterSSLCerts.cpp | dfm-official/dfm | 97f133aa87b17c760b90f2358d6ba10bc7ad9d1f | [
"ISC"
] | null | null | null | src/dfm/net/impl/RegisterSSLCerts.cpp | dfm-official/dfm | 97f133aa87b17c760b90f2358d6ba10bc7ad9d1f | [
"ISC"
] | null | null | null | src/dfm/net/impl/RegisterSSLCerts.cpp | dfm-official/dfm | 97f133aa87b17c760b90f2358d6ba10bc7ad9d1f | [
"ISC"
] | null | null | null |
#include <ripple/net/RegisterSSLCerts.h>
#include <boost/predef.h>
#if BOOST_OS_WINDOWS
#include <boost/asio/ssl/error.hpp>
#include <boost/system/error_code.hpp>
#include <memory>
#include <openssl/err.h>
#include <openssl/ssl.h>
#include <openssl/x509.h>
#include <wincrypt.h>
#endif
namespace ripple {
void
registe... | 22.589474 | 80 | 0.591333 | dfm-official |
54ea25a6318152fd20775ff342cbd2f7e85d050a | 5,125 | cpp | C++ | 23_tessellation_shaders/gl_utils.cpp | AidanDelaney/antons_opengl_tutorials_book | f884ed655afb0e70d5757477d5f7453823b173c1 | [
"Info-ZIP"
] | 39 | 2015-03-18T12:12:52.000Z | 2021-07-10T01:02:43.000Z | 23_tessellation_shaders/gl_utils.cpp | madjestic/antons_opengl_tutorials_book | f884ed655afb0e70d5757477d5f7453823b173c1 | [
"Info-ZIP"
] | null | null | null | 23_tessellation_shaders/gl_utils.cpp | madjestic/antons_opengl_tutorials_book | f884ed655afb0e70d5757477d5f7453823b173c1 | [
"Info-ZIP"
] | 10 | 2015-02-23T12:10:35.000Z | 2021-06-23T18:59:07.000Z | #include "gl_utils.h"
#include <stdio.h>
#include <time.h>
#include <assert.h>
#include <string.h>
bool restart_gl_log () {
FILE* file = fopen (GL_LOG_FILE, "w");
if (!file) {
fprintf (
stderr,
"ERROR: could not open GL_LOG_FILE log file %s for writing\n",
GL_LOG_FILE
);
return false;
}
time_t now =... | 25.753769 | 76 | 0.685268 | AidanDelaney |
54eb9bbf8a0a8fb9b6bdca7bf12b7a18a25956f2 | 2,273 | cpp | C++ | Utils/Date/Convert.cpp | Ybalrid/orbiter | 7bed82f845ea8347f238011367e07007b0a24099 | [
"MIT"
] | 1,040 | 2021-07-27T12:12:06.000Z | 2021-08-02T14:24:49.000Z | Utils/Date/Convert.cpp | Ybalrid/orbiter | 7bed82f845ea8347f238011367e07007b0a24099 | [
"MIT"
] | 20 | 2021-07-27T12:25:22.000Z | 2021-08-02T12:22:19.000Z | Utils/Date/Convert.cpp | Ybalrid/orbiter | 7bed82f845ea8347f238011367e07007b0a24099 | [
"MIT"
] | 71 | 2021-07-27T14:19:49.000Z | 2021-08-02T05:51:52.000Z | // Copyright (c) Martin Schweiger
// Licensed under the MIT License
#include "Convert.h"
// transforms a date and time (UT) into MJD format
double date2mjd (struct tm *date)
{
int b;
int y = date->tm_year+1900;
int m = date->tm_mon;
int d = date->tm_mday;
double a = 10000.0*y + 100.0*m + d;
if (m <= 2) m ... | 28.4125 | 117 | 0.534976 | Ybalrid |
54ebf2f168b2ff1e419848f67585d756fed802c3 | 904 | cpp | C++ | heap_sort.cpp | lukaszplk/sorting_algorithms | f3c014b2e951db262835831a41aeb9cba540fd99 | [
"MIT"
] | null | null | null | heap_sort.cpp | lukaszplk/sorting_algorithms | f3c014b2e951db262835831a41aeb9cba540fd99 | [
"MIT"
] | null | null | null | heap_sort.cpp | lukaszplk/sorting_algorithms | f3c014b2e951db262835831a41aeb9cba540fd99 | [
"MIT"
] | null | null | null | #include<iostream>
#include <ctime>
using namespace std;
void swap(int *a, int *b)
{
int tmp = *a;
*a = *b;
*b = tmp;
}
void heapify( int i, int roz, int tab[10]){
int l,p,m;
l=2*i+1;
p=2*i+2;
m=i;
if((l<roz) && (tab[l]>tab[i])) m = l;
if((p<roz) && (tab[p]>tab[m])... | 17.384615 | 50 | 0.440265 | lukaszplk |
54ed2a02c1997a676f5303dd8b579eac8c78c3d1 | 5,239 | inl | C++ | Libraries/Zilch/ErrorDatabaseEnum.inl | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | 3 | 2022-02-11T10:34:33.000Z | 2022-02-24T17:44:17.000Z | Libraries/Zilch/ErrorDatabaseEnum.inl | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | null | null | null | Libraries/Zilch/ErrorDatabaseEnum.inl | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | null | null | null | // MIT Licensed (see LICENSE.md).
AttributeArgumentMustBeLiteral = 0,
AttributeNotComplete = 1, AttributesNotAttached = 2, AttributeTypeNotFound = 3,
BaseClassInitializerMustComeFirst = 4, BaseClassInitializerRequiresBaseClassInheritance = 5,
BaseClassMemberSameName = 6, BaseInitializerRequired = 7, BinaryO... | 98.849057 | 119 | 0.817522 | RyanTylerRae |
54ee71b96dc877b8a62ac89506f00a0ea658aede | 13,259 | cpp | C++ | ApexGameEngine/src/Platform/OpenGL/OpenGLTexture.cpp | xdevapps/ApexGameEngine | 4e9c232838eb718584643db69520a069c4657565 | [
"MIT"
] | 1 | 2021-02-13T08:53:36.000Z | 2021-02-13T08:53:36.000Z | ApexGameEngine/src/Platform/OpenGL/OpenGLTexture.cpp | xdevapps/ApexGameEngine | 4e9c232838eb718584643db69520a069c4657565 | [
"MIT"
] | 27 | 2020-05-29T20:03:03.000Z | 2022-02-25T03:27:26.000Z | ApexGameEngine/src/Platform/OpenGL/OpenGLTexture.cpp | xdevapps/ApexGameEngine | 4e9c232838eb718584643db69520a069c4657565 | [
"MIT"
] | null | null | null | #include "apex_pch.h"
#include "OpenGLTexture.h"
#include "Apex/Graphics/Renderer/Renderer.h"
#include "Apex/Utils/Utils.h"
#include "Apex/Core/FileSystem/FileSystem.h"
#include <glad/glad.h>
#include <stb_image.h>
namespace Apex {
using AF = TextureAccessFormat;
using IF = TextureInternalFormat;
using DT = Text... | 32.418093 | 148 | 0.680896 | xdevapps |
54f09c1012846173bdff62a8378953909c46ece4 | 1,332 | hpp | C++ | include/ei/details/inttemplate.hpp | Wumpf/Epsilon-Intersection | 9b7423f12057c690e617f51af60c4921c64b6ec5 | [
"MIT"
] | 1 | 2016-07-21T09:07:53.000Z | 2016-07-21T09:07:53.000Z | include/ei/details/inttemplate.hpp | Wumpf/Epsilon-Intersection | 9b7423f12057c690e617f51af60c4921c64b6ec5 | [
"MIT"
] | null | null | null | include/ei/details/inttemplate.hpp | Wumpf/Epsilon-Intersection | 9b7423f12057c690e617f51af60c4921c64b6ec5 | [
"MIT"
] | null | null | null | namespace details {
/// \brief Template construct to create integer types by a size value.
/// \details The specializations define signed and unsigned types derived
/// from a standard type. Using Int<2>::stype... will chose a
/// specialization with the required size automatically.
///
... | 30.976744 | 88 | 0.614114 | Wumpf |
54f560d2034d714e9cf1605dadcdaaadbcbef061 | 951 | hpp | C++ | src/utils/GameCollection.hpp | Witek902/Caissa | 07bb81e7cae23ea18bb44870d1c1eaa038ab0355 | [
"MIT"
] | 3 | 2022-01-11T22:37:06.000Z | 2022-01-18T17:40:48.000Z | src/utils/GameCollection.hpp | Witek902/Caissa | 07bb81e7cae23ea18bb44870d1c1eaa038ab0355 | [
"MIT"
] | 1 | 2021-11-12T00:38:30.000Z | 2021-11-12T00:38:30.000Z | src/utils/GameCollection.hpp | Witek902/Caissa | 07bb81e7cae23ea18bb44870d1c1eaa038ab0355 | [
"MIT"
] | null | null | null | #pragma once
#include "Stream.hpp"
#include "../backend/PositionUtils.hpp"
#include "../backend/Move.hpp"
#include "../backend/Game.hpp"
#include <string>
#include <mutex>
namespace GameCollection
{
struct Header
{
uint32_t magic;
};
#pragma pack(push, 1)
struct GameHeader
{
PackedPosition initialPosition... | 15.590164 | 86 | 0.696109 | Witek902 |
54f7076d20e949824e30b4de7bc38c24e32101a3 | 3,795 | hxx | C++ | projects/Phantom.Code/phantom/lang/CodeGenerator.hxx | vlmillet/Phantom.Code | 05ed65bc4a456e76da4b2d9da1fe3dabe64ba1b3 | [
"MIT"
] | null | null | null | projects/Phantom.Code/phantom/lang/CodeGenerator.hxx | vlmillet/Phantom.Code | 05ed65bc4a456e76da4b2d9da1fe3dabe64ba1b3 | [
"MIT"
] | null | null | null | projects/Phantom.Code/phantom/lang/CodeGenerator.hxx | vlmillet/Phantom.Code | 05ed65bc4a456e76da4b2d9da1fe3dabe64ba1b3 | [
"MIT"
] | null | null | null | #pragma once
// haunt {
// clang-format off
#include "CodeGenerator.h"
#if defined(_MSC_VER)
# pragma warning(push, 0)
#elif defined(__clang__)
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wall"
# pragma clang diagnostic ignored "-Wextra"
#endif
#include <phantom/namespace>
#include <... | 37.574257 | 142 | 0.618182 | vlmillet |
54f7670b421f74f91fb9160d49362d2bd7ee2102 | 9,380 | cc | C++ | src/ParserRR.cc | Black-Library/black-library-parsers | e5fa87d1066c0247e3636a51ff0b973c894c4aec | [
"MIT"
] | null | null | null | src/ParserRR.cc | Black-Library/black-library-parsers | e5fa87d1066c0247e3636a51ff0b973c894c4aec | [
"MIT"
] | null | null | null | src/ParserRR.cc | Black-Library/black-library-parsers | e5fa87d1066c0247e3636a51ff0b973c894c4aec | [
"MIT"
] | null | null | null | /**
* ParserRR.cc
*/
#include <iostream>
#include <FileOperations.h>
#include <LogOperations.h>
#include <TimeOperations.h>
#include <ParserRR.h>
namespace black_library {
namespace core {
namespace parsers {
namespace RR {
namespace BlackLibraryCommon = black_library::core::common;
ParserRR::ParserRR() :
... | 30.160772 | 164 | 0.674627 | Black-Library |
54f78a040d94ee203168765133e94345bd55dfa7 | 3,652 | cpp | C++ | ibtk/src/utilities/IBTK_MPI.cpp | hongk45/IBAMR | 698d419fc6688470a8b9400822ba893da9d07ae2 | [
"BSD-3-Clause"
] | null | null | null | ibtk/src/utilities/IBTK_MPI.cpp | hongk45/IBAMR | 698d419fc6688470a8b9400822ba893da9d07ae2 | [
"BSD-3-Clause"
] | 1 | 2020-11-30T14:22:45.000Z | 2020-12-01T21:28:24.000Z | ibtk/src/utilities/IBTK_MPI.cpp | hongk45/IBAMR | 698d419fc6688470a8b9400822ba893da9d07ae2 | [
"BSD-3-Clause"
] | null | null | null | // ---------------------------------------------------------------------
//
// Copyright (c) 2019 - 2019 by the IBAMR developers
// All rights reserved.
//
// This file is part of IBAMR.
//
// IBAMR is free software and is distributed under the 3-clause BSD
// license. The full text of the license can be found in the f... | 25.538462 | 100 | 0.584064 | hongk45 |
0703723c033856b01f7c3811404cf9ae5bd67501 | 5,499 | cpp | C++ | src/app/html_rsp.cpp | ashwin-nat/HTTP-file-sharing | decd37db40b72ce6cac441039826e089ea432c5b | [
"MIT"
] | null | null | null | src/app/html_rsp.cpp | ashwin-nat/HTTP-file-sharing | decd37db40b72ce6cac441039826e089ea432c5b | [
"MIT"
] | null | null | null | src/app/html_rsp.cpp | ashwin-nat/HTTP-file-sharing | decd37db40b72ce6cac441039826e089ea432c5b | [
"MIT"
] | null | null | null | #include "filesys.hpp"
#include "http.hpp"
#include "prog_options.hpp"
#include <iostream>
#include <sstream>
#include <vector>
#include <regex>
static void _fill_html_body (std::stringstream &ss, std::vector<FSEntry> &tree,
std::string &uri);
static std::string _get_parent_dir (std::string &path);
static void... | 25.696262 | 79 | 0.535552 | ashwin-nat |
0704a32b4e46d09d492dbec911cd69165a3e96e5 | 2,917 | hh | C++ | aeh/src/binary_io.hh | asielorz/aeh | 6dbcce0970a558fb7f164b8880a3e834f9f6c8c9 | [
"MIT"
] | null | null | null | aeh/src/binary_io.hh | asielorz/aeh | 6dbcce0970a558fb7f164b8880a3e834f9f6c8c9 | [
"MIT"
] | null | null | null | aeh/src/binary_io.hh | asielorz/aeh | 6dbcce0970a558fb7f164b8880a3e834f9f6c8c9 | [
"MIT"
] | null | null | null | #pragma once
#include "concepts.hh"
#include <cstdint>
#include <span>
#include <ios>
namespace aeh
{
//! Reads sizeof(T) bytes from is into t.
template <typename InputStream, aeh::is_trivially_copyable T> InputStream & read_binary(InputStream & is, T & t) noexcept;
//! Reads sizeof(T) * n bytes from os into an a... | 62.06383 | 142 | 0.750086 | asielorz |
070b6341b1607260db2fae3cc671567b16deb32e | 13,879 | cp | C++ | Sources_Common/Application/Preferences/CMatchItem.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 12 | 2015-04-21T16:10:43.000Z | 2021-11-05T13:41:46.000Z | Sources_Common/Application/Preferences/CMatchItem.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2015-11-02T13:32:11.000Z | 2019-07-10T21:11:21.000Z | Sources_Common/Application/Preferences/CMatchItem.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2015-01-12T08:49:12.000Z | 2021-03-27T09:11:10.000Z | /*
Copyright (c) 2007-2009 Cyrus Daboo. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unle... | 26.285985 | 128 | 0.661863 | mulberry-mail |
071497f7e33a9295972abb0fa7f84b6de4080ad0 | 2,598 | cpp | C++ | MORE CODING PLATFORMS/SPOJ/qtree5.cpp | Autoratch/CodeChef | 6937e6b442e19df90a65f772939db9ab1a07a1b3 | [
"Apache-2.0"
] | null | null | null | MORE CODING PLATFORMS/SPOJ/qtree5.cpp | Autoratch/CodeChef | 6937e6b442e19df90a65f772939db9ab1a07a1b3 | [
"Apache-2.0"
] | null | null | null | MORE CODING PLATFORMS/SPOJ/qtree5.cpp | Autoratch/CodeChef | 6937e6b442e19df90a65f772939db9ab1a07a1b3 | [
"Apache-2.0"
] | null | null | null | // https://www.spoj.com/problems/QTREE5/
#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 1;
const int K = 19;
int n,q;
vector<int> adj[N];
int pa[N],sz[N];
bool blocked[N];
int lv[N],dp[K][N];
set<pair<int,int> > s[N];
bool val[N];
void dfs(int u,int p){ sz[u] = 1; for(int v : adj[u]) if(v!=p and ... | 22.016949 | 103 | 0.446112 | Autoratch |
07198adda858e2d4efa739c76ab46030b54d8578 | 439 | cpp | C++ | Source/LEETAPIDEMO3/MyGameMode.cpp | LeetCoinTeam/UE4-Integrated-Demo | d72aa65b309459f90245897fe2733b6a9a6c6ad4 | [
"Apache-2.0"
] | 1 | 2016-02-20T23:18:08.000Z | 2016-02-20T23:18:08.000Z | Source/LEETAPIDEMO3/MyGameMode.cpp | LeetCoinTeam/UE4-Integrated-Demo | d72aa65b309459f90245897fe2733b6a9a6c6ad4 | [
"Apache-2.0"
] | null | null | null | Source/LEETAPIDEMO3/MyGameMode.cpp | LeetCoinTeam/UE4-Integrated-Demo | d72aa65b309459f90245897fe2733b6a9a6c6ad4 | [
"Apache-2.0"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "LEETAPIDEMO3.h"
#include "MyGameMode.h"
AMyGameMode::AMyGameMode()
{
// set default pawn class to our Blueprinted character
static ConstructorHelpers::FClassFinder<APawn> PlayerPawnBPClass(TEXT("/Game/ThirdPersonCPP/Blueprin... | 25.823529 | 128 | 0.781321 | LeetCoinTeam |
0719ef2b75c2abf715ddbb43a5c391d9af07382f | 574 | cpp | C++ | node_modules/lzz-gyp/lzz-source/smtc_LazyBaseSpec.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | 3 | 2019-09-18T16:44:33.000Z | 2021-03-29T13:45:27.000Z | node_modules/lzz-gyp/lzz-source/smtc_LazyBaseSpec.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | null | null | null | node_modules/lzz-gyp/lzz-source/smtc_LazyBaseSpec.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | 2 | 2019-03-29T01:06:38.000Z | 2019-09-18T16:44:34.000Z | // smtc_LazyBaseSpec.cpp
//
#include "smtc_LazyBaseSpec.h"
#ifndef LZZ_ENABLE_INLINE
#include "smtc_LazyBaseSpec.inl"
#endif
// semantic
#include "smtc_BaseSpec.h"
#define LZZ_INLINE inline
namespace smtc
{
LazyBaseSpec::LazyBaseSpec (Access access, bool is_virtual, NamePtr const & base_name, gram::BlockVector const... | 19.133333 | 123 | 0.719512 | SuperDizor |
0722eb28c833eeaa36021b771c04309f11db9984 | 1,661 | cpp | C++ | 9_sycl_of_hell/advanced_inferno/2_parallel_for_functor.cpp | kevin-harms/sycltrain | 4f2981172db69a1ffa2f95abec977141ffd08dd9 | [
"Apache-2.0"
] | 8 | 2019-06-10T08:49:20.000Z | 2021-02-14T17:35:30.000Z | 9_sycl_of_hell/advanced_inferno/2_parallel_for_functor.cpp | kevin-harms/sycltrain | 4f2981172db69a1ffa2f95abec977141ffd08dd9 | [
"Apache-2.0"
] | null | null | null | 9_sycl_of_hell/advanced_inferno/2_parallel_for_functor.cpp | kevin-harms/sycltrain | 4f2981172db69a1ffa2f95abec977141ffd08dd9 | [
"Apache-2.0"
] | 3 | 2019-06-06T22:07:52.000Z | 2020-01-14T21:17:02.000Z | #include "cxxopts.hpp"
#include <CL/sycl.hpp>
namespace sycl = cl::sycl;
class generator_kernel_hw {
public:
generator_kernel_hw(sycl::stream cout) : m_cout(cout) {}
void operator()(sycl::id<1> idx) {
m_cout << "Hello, World Functor: World rank " << idx << sycl::endl;
}
private:
sycl::stream m_cout;
};... | 27.229508 | 77 | 0.538832 | kevin-harms |
0723a30eff24573db2e96117e172315319eca733 | 2,896 | cpp | C++ | src/api/c/plot.cpp | JuliaComputing/arrayfire | 93427f09ff928f97df29c0e358c3fcf6b478bec6 | [
"BSD-3-Clause"
] | 1 | 2018-06-14T23:49:18.000Z | 2018-06-14T23:49:18.000Z | src/api/c/plot.cpp | JuliaComputing/arrayfire | 93427f09ff928f97df29c0e358c3fcf6b478bec6 | [
"BSD-3-Clause"
] | 1 | 2015-07-02T15:53:02.000Z | 2015-07-02T15:53:02.000Z | src/api/c/plot.cpp | JuliaComputing/arrayfire | 93427f09ff928f97df29c0e358c3fcf6b478bec6 | [
"BSD-3-Clause"
] | 1 | 2018-02-26T17:11:03.000Z | 2018-02-26T17:11:03.000Z | /*******************************************************
* Copyright (c) 2014, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
**********************************************... | 27.065421 | 105 | 0.586326 | JuliaComputing |
07284401ca39c76f80177b5bcb946362359ee93f | 3,128 | cxx | C++ | src-plugins/libs/vtkInria/vtkDataManagement/vtkDataManagerCallback.cxx | ocommowi/medInria-public | 9074e40c886881666e7a52c53309d8d28e35c0e6 | [
"BSD-4-Clause"
] | null | null | null | src-plugins/libs/vtkInria/vtkDataManagement/vtkDataManagerCallback.cxx | ocommowi/medInria-public | 9074e40c886881666e7a52c53309d8d28e35c0e6 | [
"BSD-4-Clause"
] | null | null | null | src-plugins/libs/vtkInria/vtkDataManagement/vtkDataManagerCallback.cxx | ocommowi/medInria-public | 9074e40c886881666e7a52c53309d8d28e35c0e6 | [
"BSD-4-Clause"
] | null | null | null | /*=========================================================================
medInria
Copyright (c) INRIA 2013. 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.
====... | 23.69697 | 92 | 0.646739 | ocommowi |
0728a44ac4b81cd9a9a474878f48163e57bd8794 | 1,396 | cpp | C++ | CarbonRender/Src/CRFileReader.cpp | lanyu8/CarbonRender | dcd0a5d53ee2c458ad53c4e690359c250219ee22 | [
"MIT"
] | 44 | 2017-07-23T08:38:19.000Z | 2022-03-27T02:53:10.000Z | CarbonRender/Src/CRFileReader.cpp | lanyu8/CarbonRender | dcd0a5d53ee2c458ad53c4e690359c250219ee22 | [
"MIT"
] | 2 | 2018-10-10T15:56:58.000Z | 2021-07-16T07:31:10.000Z | CarbonRender/Src/CRFileReader.cpp | lanyu8/CarbonRender | dcd0a5d53ee2c458ad53c4e690359c250219ee22 | [
"MIT"
] | 14 | 2018-06-08T09:19:55.000Z | 2022-03-17T08:04:57.000Z | #include "..\Inc\CRFileReader.h"
int FileReader::GetTextFileSize(char* fileName)
{
fstream file;
int size = 0;
file.open(fileName, ios::in);
while (file.get() != EOF)
{
size++;
}
file.close();
return size;
}
TextFile FileReader::XML2Text(xml_node<>* xmlDoc)
{
TextFile xmlData;
string xmlStr;
print(back... | 19.942857 | 65 | 0.678367 | lanyu8 |
072dc44b7d3c4d8db5683054e1a3f1256c3ee3bb | 2,342 | cpp | C++ | engine/effects/source/IdentifyEffect.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | 1 | 2020-05-24T22:44:03.000Z | 2020-05-24T22:44:03.000Z | engine/effects/source/IdentifyEffect.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | null | null | null | engine/effects/source/IdentifyEffect.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | null | null | null | #include "ActionManager.hpp"
#include "Creature.hpp"
#include "EffectTextKeys.hpp"
#include "IdentifyEffect.hpp"
#include "ItemFilterFactory.hpp"
#include "ItemIdentifier.hpp"
#include "Serialize.hpp"
using namespace std;
string IdentifyEffect::get_effect_identification_message(std::shared_ptr<Creature> creature) con... | 29.64557 | 160 | 0.738685 | sidav |
07344542baa7a45cd703d6e71a34d64410cc11fc | 1,674 | cpp | C++ | Study Material/mine/methods/string proccess.cpp | mohamedGamalAbuGalala/Practice | 2a5fa3bdaf995d0c304f04231e1a69e6960f72c8 | [
"MIT"
] | 1 | 2019-12-19T06:51:20.000Z | 2019-12-19T06:51:20.000Z | Study Material/mine/methods/string proccess.cpp | mohamedGamalAbuGalala/Practice | 2a5fa3bdaf995d0c304f04231e1a69e6960f72c8 | [
"MIT"
] | null | null | null | Study Material/mine/methods/string proccess.cpp | mohamedGamalAbuGalala/Practice | 2a5fa3bdaf995d0c304f04231e1a69e6960f72c8 | [
"MIT"
] | null | null | null | void split(const string &s, const char* delim, vector<string> & v) {
char * dup = strdup(s.c_str());
char * token = strtok(dup, delim);
while (token != NULL)
v.push_back(string(token)), token = strtok(NULL, delim);
free(dup);
}
/* example
vector<string> splited;
split("{gd},{fd}", " {,}", splited); splitted {... | 26.15625 | 79 | 0.622461 | mohamedGamalAbuGalala |
0737725a7a59fa6df6ff31bba2e9c0f1dca27a28 | 305 | cpp | C++ | 2d/kill_same_name/openacc/main.reference.cpp | realincubus/clang_plugin_tests | 018e22f37baaa7c072de8d455ad16057c953fd96 | [
"MIT"
] | null | null | null | 2d/kill_same_name/openacc/main.reference.cpp | realincubus/clang_plugin_tests | 018e22f37baaa7c072de8d455ad16057c953fd96 | [
"MIT"
] | null | null | null | 2d/kill_same_name/openacc/main.reference.cpp | realincubus/clang_plugin_tests | 018e22f37baaa7c072de8d455ad16057c953fd96 | [
"MIT"
] | null | null | null |
int main(int argc, char** argv){
int om_max = 1000;
int im_max = 500;
int x = 0;
if (om_max >= 1){
#pragma acc kernels
for (auto t1=0;t1<=om_max-1;++t1) {
x = 10;
for (auto t2=0;t2<=im_max-1;++t2) {
int x = 0;
x = -3;
}
}
}
return 0;
}
| 13.26087 | 39 | 0.445902 | realincubus |
07380765a2321b75b61330e3d1d8d0af7a9f6183 | 49,875 | cpp | C++ | UI/MdiEditor.cpp | liaojing/videomorphing | a96ddd00cabd75f83924d80d0ebecb0867f8322c | [
"MIT"
] | 21 | 2015-06-11T03:47:10.000Z | 2021-09-28T07:50:32.000Z | UI/MdiEditor.cpp | PeterZs/videomorphing | a96ddd00cabd75f83924d80d0ebecb0867f8322c | [
"MIT"
] | 1 | 2017-05-05T18:20:14.000Z | 2017-05-05T18:20:14.000Z | UI/MdiEditor.cpp | PeterZs/videomorphing | a96ddd00cabd75f83924d80d0ebecb0867f8322c | [
"MIT"
] | 12 | 2015-05-20T03:21:49.000Z | 2020-09-08T10:47:17.000Z | #include "MdiEditor.h"
#include "ExternalThread.h"
MdiEditor::MdiEditor(QApplication* app, QWidget *parent)
: QMainWindow(parent)
{
_app = app;
readyLabel=NULL;
new_pro=save_pro=mod_para=prev_stage=next_stage=NULL;
imageEditorL = new ImageEditor('l',parameters);
imageEditorR = new ImageEditor('r',parameters);
i... | 25 | 225 | 0.644491 | liaojing |
073d33535aa711becca9cdf2f973a00d30c1e463 | 7,367 | cpp | C++ | lib/test/ParticleTools/testListBox.cpp | rmrsk/Chombo-3.3 | f2119e396460c1bb19638effd55eb71c2b35119e | [
"BSD-3-Clause-LBNL"
] | null | null | null | lib/test/ParticleTools/testListBox.cpp | rmrsk/Chombo-3.3 | f2119e396460c1bb19638effd55eb71c2b35119e | [
"BSD-3-Clause-LBNL"
] | null | null | null | lib/test/ParticleTools/testListBox.cpp | rmrsk/Chombo-3.3 | f2119e396460c1bb19638effd55eb71c2b35119e | [
"BSD-3-Clause-LBNL"
] | 1 | 2021-04-13T19:06:43.000Z | 2021-04-13T19:06:43.000Z | #ifdef CH_LANG_CC
/*
* _______ __
* / ___/ / ___ __ _ / / ___
* / /__/ _ \/ _ \/ V \/ _ \/ _ \
* \___/_//_/\___/_/_/_/_.__/\___/
* Please refer to Copyright.txt, in Chombo's root directory.
*/
#endif
// Purpose:
//
// Test the ListBox data holder for particles
//
// Usage:
//... | 25.758741 | 112 | 0.491245 | rmrsk |
073ecb4388541c392815e4ae4a92e7d8d67f9ecb | 4,972 | cc | C++ | tests/fsm_retx_win.cc | YukunJ/Sponge-TCP-Protocol | 85af1055af278abf945fdf11449b14e699f0a5e9 | [
"Apache-2.0"
] | 8 | 2021-02-22T01:10:06.000Z | 2022-02-28T13:30:26.000Z | tests/fsm_retx_win.cc | YukunJ/Sponge-TCP-Protocol | 85af1055af278abf945fdf11449b14e699f0a5e9 | [
"Apache-2.0"
] | null | null | null | tests/fsm_retx_win.cc | YukunJ/Sponge-TCP-Protocol | 85af1055af278abf945fdf11449b14e699f0a5e9 | [
"Apache-2.0"
] | 7 | 2021-02-22T01:10:16.000Z | 2022-02-18T11:49:15.000Z | #include "fsm_retx.hh"
#include "tcp_config.hh"
#include "util.hh"
#include <algorithm>
#include <cstdlib>
#include <iostream>
using namespace std;
using State = TCPTestHarness::State;
int main() {
try {
TCPConfig cfg{};
cfg.recv_capacity = 65000;
auto rd = get_random_generator();
... | 37.666667 | 112 | 0.574819 | YukunJ |
0744d02db4a431cb49b300fc6df60b4c854e7d32 | 1,321 | cpp | C++ | src/ncx/test/test_detector.cpp | GK72/nexus | 3345d38a7e83a0847f5e57adca965a8fde55adda | [
"Unlicense"
] | null | null | null | src/ncx/test/test_detector.cpp | GK72/nexus | 3345d38a7e83a0847f5e57adca965a8fde55adda | [
"Unlicense"
] | null | null | null | src/ncx/test/test_detector.cpp | GK72/nexus | 3345d38a7e83a0847f5e57adca965a8fde55adda | [
"Unlicense"
] | null | null | null | #include <catch2/catch.hpp>
#include "detector.h"
struct S {
using type = void;
int member; // NOLINT
int func() { return 1; } // NOLINT
};
void freeFunc(int) {} // NOLINT
template <class T> using has_type = typename T::type;
template <class T> using has_no = typename ... | 32.219512 | 76 | 0.623013 | GK72 |
0745fb6ca2fe03fc5177e938f97e826b6c8334f3 | 724 | cpp | C++ | kernel/std/string.cpp | vitodtagliente/devos | 01f78ab151b4867bc67f56e803e8f35d6cfafe57 | [
"MIT"
] | 3 | 2017-07-30T18:08:01.000Z | 2018-01-31T22:53:41.000Z | kernel/std/string.cpp | vitodtagliente/devos | 01f78ab151b4867bc67f56e803e8f35d6cfafe57 | [
"MIT"
] | null | null | null | kernel/std/string.cpp | vitodtagliente/devos | 01f78ab151b4867bc67f56e803e8f35d6cfafe57 | [
"MIT"
] | null | null | null | #include <std/string.h>
int strlen(const char *str)
{
int retval;
for(retval = 0; *str != '\0'; str++) retval++;
return retval;
}
char *strcpy(char *dest, char *src) {
char *orig = dest;
while((*dest++ = *src++)!= '\0')
; // <<== Very important!!!
return orig;
}
int strcmp(const char ... | 16.837209 | 86 | 0.494475 | vitodtagliente |
0747c9f7e8f6ab183aeeb50f1722ff6bdd83c1aa | 24 | cpp | C++ | include/parser-combinators/combinators/one_or_more.cpp | kapows/parser-combinators | 39a45acb55531912ed73342ff28bc7badc46b4c3 | [
"MIT"
] | null | null | null | include/parser-combinators/combinators/one_or_more.cpp | kapows/parser-combinators | 39a45acb55531912ed73342ff28bc7badc46b4c3 | [
"MIT"
] | null | null | null | include/parser-combinators/combinators/one_or_more.cpp | kapows/parser-combinators | 39a45acb55531912ed73342ff28bc7badc46b4c3 | [
"MIT"
] | null | null | null | #include "one_or_more.h" | 24 | 24 | 0.791667 | kapows |
074abc16d2970fc2b2efba09eb640be9b860f5da | 391 | cpp | C++ | API/GameEngineContents/EnemyDeathEffect.cpp | chaewoon83/WinApiPortfolio | e0f024a66a253a7e5b11e228cf9d0da93ddcc5ef | [
"MIT"
] | null | null | null | API/GameEngineContents/EnemyDeathEffect.cpp | chaewoon83/WinApiPortfolio | e0f024a66a253a7e5b11e228cf9d0da93ddcc5ef | [
"MIT"
] | null | null | null | API/GameEngineContents/EnemyDeathEffect.cpp | chaewoon83/WinApiPortfolio | e0f024a66a253a7e5b11e228cf9d0da93ddcc5ef | [
"MIT"
] | null | null | null | #include "EnemyDeathEffect.h"
#include <windows.h>
#include <GameEngineBase/GameEngineWindow.h>
EnemyDeathEffect::EnemyDeathEffect()
{
}
EnemyDeathEffect::~EnemyDeathEffect()
{
}
void EnemyDeathEffect::Start()
{
SetPosition(GameEngineWindow::GetScale().Half());
SetScale({ 500,500 });
}
void EnemyDeathEffect::... | 13.482759 | 50 | 0.731458 | chaewoon83 |
074c68044c190e87d5ddc6e4a8be1b8049423e56 | 2,397 | cpp | C++ | Source/iop/ioman/HardDiskDevice.cpp | 6lackmag3/Play- | 6e399789906998e7be0699292f3835e433460d62 | [
"BSD-2-Clause"
] | 1,720 | 2015-01-03T15:53:43.000Z | 2022-03-30T00:38:04.000Z | Source/iop/ioman/HardDiskDevice.cpp | 6lackmag3/Play- | 6e399789906998e7be0699292f3835e433460d62 | [
"BSD-2-Clause"
] | 1,112 | 2015-01-03T08:45:24.000Z | 2022-03-31T14:06:08.000Z | Source/iop/ioman/HardDiskDevice.cpp | 6lackmag3/Play- | 6e399789906998e7be0699292f3835e433460d62 | [
"BSD-2-Clause"
] | 329 | 2015-01-27T08:58:06.000Z | 2022-03-28T18:45:05.000Z | #include "HardDiskDevice.h"
#include <cassert>
#include "AppConfig.h"
#include "PathUtils.h"
#include "PS2VM_Preferences.h"
#include "StringUtils.h"
using namespace Iop::Ioman;
CHardDiskDevice::CHardDiskDevice()
{
m_basePath = CAppConfig::GetInstance().GetPreferencePath(PREF_PS2_HDD_DIRECTORY);
//Seems that FFXI ne... | 22.613208 | 100 | 0.718398 | 6lackmag3 |
07501f0dce5dd0288e740e379d79ad07918a35c3 | 39,517 | cpp | C++ | test/code/scxsystemlib/disk/raidpal_test.cpp | snchennapragada/pal | 9ee3e116dc2fadb44efa0938de7f0b737784fe16 | [
"MIT"
] | 37 | 2016-04-14T20:06:15.000Z | 2019-05-06T17:30:17.000Z | test/code/scxsystemlib/disk/raidpal_test.cpp | snchennapragada/pal | 9ee3e116dc2fadb44efa0938de7f0b737784fe16 | [
"MIT"
] | 37 | 2016-03-11T20:47:11.000Z | 2019-04-01T22:53:04.000Z | test/code/scxsystemlib/disk/raidpal_test.cpp | snchennapragada/pal | 9ee3e116dc2fadb44efa0938de7f0b737784fe16 | [
"MIT"
] | 20 | 2016-05-26T23:53:01.000Z | 2019-05-06T08:54:08.000Z | /*--------------------------------------------------------------------------------
Copyright (c) Microsoft Corporation. All rights reserved.
*/
/**
\file
\brief Tests for the RAID PAL.
\date 2008-03-28 09:50:00
*/
/*---------------------------------------------------------... | 43.330044 | 259 | 0.624769 | snchennapragada |
0755915e2e8ef84c52cf0b8a28daf0b9c9900eca | 623 | cpp | C++ | leetcode251.cpp | SJTUGavinLiu/Leetcodes | 99d4010bc34e78d22e3c8b6436e4489a7d1338da | [
"MIT"
] | null | null | null | leetcode251.cpp | SJTUGavinLiu/Leetcodes | 99d4010bc34e78d22e3c8b6436e4489a7d1338da | [
"MIT"
] | null | null | null | leetcode251.cpp | SJTUGavinLiu/Leetcodes | 99d4010bc34e78d22e3c8b6436e4489a7d1338da | [
"MIT"
] | null | null | null | class Vector2D {
private:
vector<int> cache;
vector<int>::iterator iter;
public:
Vector2D(vector<vector<int>>& v) {
for(int i=0; i<v.size(); i++) {
for(int j=0; j<v[i].size(); j++) {
cache.push_back(v[i][j]);
}
}
iter = cache.begin();
}
... | 20.766667 | 64 | 0.497592 | SJTUGavinLiu |
075613dcec064238dcca6088af9fcc7d3535fae2 | 19,334 | hpp | C++ | src/include/sweet/sphere/SphereOperators_SphereDataComplex.hpp | valentinaschueller/sweet | 27e99c7a110c99deeadee70688c186d82b39ac90 | [
"MIT"
] | 6 | 2017-11-20T08:12:46.000Z | 2021-03-11T15:32:36.000Z | src/include/sweet/sphere/SphereOperators_SphereDataComplex.hpp | valentinaschueller/sweet | 27e99c7a110c99deeadee70688c186d82b39ac90 | [
"MIT"
] | 4 | 2018-02-02T21:46:33.000Z | 2022-01-11T11:10:27.000Z | src/include/sweet/sphere/SphereOperators_SphereDataComplex.hpp | valentinaschueller/sweet | 27e99c7a110c99deeadee70688c186d82b39ac90 | [
"MIT"
] | 12 | 2016-03-01T18:33:34.000Z | 2022-02-08T22:20:31.000Z | /*
* SPHOperatorsComplex.hpp
*
* Created on: 31 Aug 2016
* Author: Martin Schreiber <schreiberx@gmail.com>
*/
#ifndef SPHEREOPERATORS_COMPLEX_HPP_
#define SPHEREOPERATORS_COMPLEX_HPP_
#include <sweet/sphere/Convert_SphereDataPhysicalComplex_to_SphereDataPhysical.hpp>
#include <libmath/shtns_inc.hpp>
#inclu... | 22.351445 | 105 | 0.688735 | valentinaschueller |
075c21d17c48bd194645bfe914b9270139751400 | 414 | cpp | C++ | Chapter25/main.cpp | lixin-sxty/BigTalkDesignPatternForCpp | 8d766bfd05b9e30c626231bb5719638cd8c8893c | [
"MIT"
] | 1 | 2021-08-29T03:20:08.000Z | 2021-08-29T03:20:08.000Z | Chapter25/main.cpp | lixin-sxty/BigTalkDesignPatternForCpp | 8d766bfd05b9e30c626231bb5719638cd8c8893c | [
"MIT"
] | null | null | null | Chapter25/main.cpp | lixin-sxty/BigTalkDesignPatternForCpp | 8d766bfd05b9e30c626231bb5719638cd8c8893c | [
"MIT"
] | null | null | null | #include <iostream>
#include "mediator.h"
int main() {
UNSC* unsc = new UNSC();
Country* usa = new USA(unsc);
Country* iraq = new Iraq(unsc);
unsc->SetC1(usa);
unsc->SetC2(iraq);
usa->Declare("Do not develop nuclear weapons or start a war!");
iraq->Declare(
"We do not have nuclear weapons and we... | 18 | 77 | 0.647343 | lixin-sxty |
075f00cb956f458a972a9c71bee4e2ebb14cf503 | 539 | cpp | C++ | Main_Pro/MainWindow.cpp | ZaoHan415/GamePro | c27d7f0340c0553a40ca523b43406207dcffa204 | [
"MIT"
] | 8 | 2018-12-05T08:31:52.000Z | 2020-08-26T03:24:32.000Z | Main_Pro/MainWindow.cpp | ZaoHan415/GamePro | c27d7f0340c0553a40ca523b43406207dcffa204 | [
"MIT"
] | 4 | 2018-12-29T16:12:21.000Z | 2019-09-10T13:58:13.000Z | Main_Pro/MainWindow.cpp | ZaoHan415/GamePro | c27d7f0340c0553a40ca523b43406207dcffa204 | [
"MIT"
] | 2 | 2018-12-05T08:51:57.000Z | 2021-06-21T11:31:40.000Z | #include "MainWindow.h"
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
{
resize(800,600);
view = new QGraphicsView(this);
m_scene = new MainGameScene();
view->setScene(m_scene);
view->setGeometry(0,0,800,600);
view->show();
setFocus();
setFocusPolicy(Qt::ClickFocus);
... | 21.56 | 92 | 0.675325 | ZaoHan415 |
076084b1a2a71a2886ed422b5d16dc75e020c8f3 | 477 | cpp | C++ | ROHIT KUMAR SINGH (Hacktober Contribution)/HackerRank/Find_Digits.cpp | Anjali0206/Hacktoberfest-KIIT-2021 | 9b0b1f0e6d55f41c68f6172e4ecdea9bee9775fe | [
"MIT"
] | 8 | 2019-10-05T18:40:46.000Z | 2019-10-25T16:26:41.000Z | ROHIT KUMAR SINGH (Hacktober Contribution)/HackerRank/Find_Digits.cpp | Anjali0206/Hacktoberfest-KIIT-2021 | 9b0b1f0e6d55f41c68f6172e4ecdea9bee9775fe | [
"MIT"
] | 13 | 2020-09-30T19:27:29.000Z | 2021-09-08T02:31:48.000Z | ROHIT KUMAR SINGH (Hacktober Contribution)/HackerRank/Find_Digits.cpp | Anjali0206/Hacktoberfest-KIIT-2021 | 9b0b1f0e6d55f41c68f6172e4ecdea9bee9775fe | [
"MIT"
] | 84 | 2020-09-30T19:00:05.000Z | 2021-09-30T04:17:34.000Z | #include<bits/stdc++.h>
using namespace std;
int findDigits(int n) {
int c=0;
int no = n;
while(n!=0)
{
int a = n%10;
if(a==0)
{
}
else if(no%a==0)
{
c++;
}
n=n/10;
}
return c;
}
int main()
{
... | 14.029412 | 36 | 0.350105 | Anjali0206 |
79eac75d69097bb29c1160b05f9383d5dfd9bb53 | 90,529 | cpp | C++ | tools/klee/main.cpp | sysrel/SIFT | 32a952c9b5bcf576bbd91c6a7510182b6cb94748 | [
"Apache-2.0"
] | null | null | null | tools/klee/main.cpp | sysrel/SIFT | 32a952c9b5bcf576bbd91c6a7510182b6cb94748 | [
"Apache-2.0"
] | null | null | null | tools/klee/main.cpp | sysrel/SIFT | 32a952c9b5bcf576bbd91c6a7510182b6cb94748 | [
"Apache-2.0"
] | null | null | null | /* -*- mode: c++; c-basic-offset: 2; -*- */
//===-- main.cpp ------------------------------------------------*- C++ -*-===//
//
// The KLEE Symbolic Virtual Machine
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===---------... | 34.226465 | 246 | 0.594992 | sysrel |
79ee4a54ed601c6da1dd0ea5f3ab475f37676816 | 480 | hpp | C++ | include/detail/CoordinateTransformer.hpp | Tastyep/Hitbox-Builder-2D | ab86816005d7b7c44338bfa27975054b45e66cc3 | [
"MIT"
] | 15 | 2018-04-12T03:59:01.000Z | 2022-01-15T22:07:55.000Z | include/detail/CoordinateTransformer.hpp | Tastyep/Hitbox-Builder-2D | ab86816005d7b7c44338bfa27975054b45e66cc3 | [
"MIT"
] | null | null | null | include/detail/CoordinateTransformer.hpp | Tastyep/Hitbox-Builder-2D | ab86816005d7b7c44338bfa27975054b45e66cc3 | [
"MIT"
] | 1 | 2020-08-18T08:17:17.000Z | 2020-08-18T08:17:17.000Z | #ifndef HITBOX_BUILDER_DETAIL_COORDINATE_TRANSFORMER_HPP
#define HITBOX_BUILDER_DETAIL_COORDINATE_TRANSFORMER_HPP
#include <vector>
#include <SFML/Graphics/Sprite.hpp>
#include <SFML/System/Vector2.hpp>
#include "Types.hpp"
namespace HitboxBuilder {
namespace Detail {
void toCarthesian(const sf::Sprite& sprite, Po... | 22.857143 | 76 | 0.7875 | Tastyep |
79f4a38d66f202db07a6635daf4c97d26592e259 | 14,866 | cpp | C++ | src/preprocess.cpp | BioinfoSZU/CURC | af256131592e0f8ac1ab06442a49a6ab8686646f | [
"MIT"
] | null | null | null | src/preprocess.cpp | BioinfoSZU/CURC | af256131592e0f8ac1ab06442a49a6ab8686646f | [
"MIT"
] | null | null | null | src/preprocess.cpp | BioinfoSZU/CURC | af256131592e0f8ac1ab06442a49a6ab8686646f | [
"MIT"
] | null | null | null | /**
Software License:
-----------------
Copyright (c) 2021 Zexuan Zhu<zhuzx@szu.edu.cn>
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 right... | 46.45625 | 216 | 0.597202 | BioinfoSZU |
79f738a644067874cf76fc8b30b2b0f9c46bc09d | 3,602 | cpp | C++ | src/occa/internal/modes/opencl/memory.cpp | nnnunnn/occa | 2c77f219935846be3c6dee7fdd3cea5e349644c9 | [
"MIT"
] | 312 | 2015-07-02T09:02:09.000Z | 2022-03-30T16:13:23.000Z | src/occa/internal/modes/opencl/memory.cpp | nnnunnn/occa | 2c77f219935846be3c6dee7fdd3cea5e349644c9 | [
"MIT"
] | 520 | 2015-07-12T18:32:38.000Z | 2022-03-31T16:15:00.000Z | src/occa/internal/modes/opencl/memory.cpp | nnnunnn/occa | 2c77f219935846be3c6dee7fdd3cea5e349644c9 | [
"MIT"
] | 79 | 2015-07-22T22:10:56.000Z | 2022-03-17T09:07:01.000Z | #include <occa/internal/modes/opencl/buffer.hpp>
#include <occa/internal/modes/opencl/memory.hpp>
#include <occa/internal/modes/opencl/device.hpp>
#include <occa/internal/modes/opencl/utils.hpp>
#include <occa/internal/utils/sys.hpp>
namespace occa {
namespace opencl {
memory::memory(modeBuffer_t *modeBuffer_,
... | 34.970874 | 77 | 0.450305 | nnnunnn |
79f8e980192ca5910c9c63d0db4b60df3f79f879 | 629 | cpp | C++ | AATelloEngine/R_Model.cpp | jose-tello/TelloEngine | 37593701c5191cf766c872dda445505781d1f32e | [
"MIT"
] | null | null | null | AATelloEngine/R_Model.cpp | jose-tello/TelloEngine | 37593701c5191cf766c872dda445505781d1f32e | [
"MIT"
] | null | null | null | AATelloEngine/R_Model.cpp | jose-tello/TelloEngine | 37593701c5191cf766c872dda445505781d1f32e | [
"MIT"
] | null | null | null | #include "R_Model.h"
#include "ModelImporter.h"
ModelNode::ModelNode() :
uid(0),
parentId(0),
name(name),
meshId(-1),
materialId(-1)
{}
ModelNode::~ModelNode()
{
}
R_Model::R_Model(int uid, const char* assetPath, RESOURCE_TYPE type) : Resource(uid, assetPath, type)
{
}
R_Model::~R_Model()
{
modelNodes.clea... | 13.104167 | 101 | 0.693164 | jose-tello |
79fb22065dafc673460456d2ef555204221d16fd | 58 | cpp | C++ | src/XE.Graphics.GL.GLFW/demo/Ballblazer.cpp | fapablazacl/XE | 9a047af9ba1892711ee637a975bfdb4a0ed68e0e | [
"MIT"
] | null | null | null | src/XE.Graphics.GL.GLFW/demo/Ballblazer.cpp | fapablazacl/XE | 9a047af9ba1892711ee637a975bfdb4a0ed68e0e | [
"MIT"
] | 3 | 2019-02-20T02:27:21.000Z | 2019-02-20T03:00:56.000Z | src/XE.Graphics.GL.GLFW/demo/Ballblazer.cpp | fapablazacl/XE | 9a047af9ba1892711ee637a975bfdb4a0ed68e0e | [
"MIT"
] | null | null | null |
#include "Ballblazer.h"
int main2() {
return 0;
}
| 6.444444 | 23 | 0.568966 | fapablazacl |
79fe4689033d4e4302e7849c552f33c091db8c94 | 2,626 | cpp | C++ | src/Engine/Platform/CoreApplication.cpp | slavidodo/game-engine | 0be66b100648d28557b7755b4ab190e48cffce59 | [
"Apache-2.0"
] | 3 | 2020-02-29T05:50:59.000Z | 2020-06-17T14:16:20.000Z | src/Engine/Platform/CoreApplication.cpp | slavidodo/game-engine | 0be66b100648d28557b7755b4ab190e48cffce59 | [
"Apache-2.0"
] | 1 | 2020-04-23T16:36:31.000Z | 2020-04-23T16:36:31.000Z | src/Engine/Platform/CoreApplication.cpp | slavidodo/game-engine | 0be66b100648d28557b7755b4ab190e48cffce59 | [
"Apache-2.0"
] | 5 | 2020-04-18T08:58:37.000Z | 2020-10-06T12:14:42.000Z |
#include "pch.h"
#include "CoreApplication.h"
#include "Window.h"
#include "../Filesystem/ResourceManager.h"
#include "../Physics/PhysicsEngine.h"
#include "../Scene/SceneManager.h"
#include "../Physics/PSceneManager.h"
#include "../RHI/RHICommandList.h"
#include "../Globals.h"
CoreApplication gApplication;
bool C... | 25.745098 | 100 | 0.717441 | slavidodo |
0303c8e1f8187df446816124fb4a86d40dd40663 | 482 | cpp | C++ | 10.sumOfAllPrimes.cpp | coanj/ProjectEuler | a35fde7c690c5b686bee7da67b03d0c1436ce39f | [
"MIT"
] | null | null | null | 10.sumOfAllPrimes.cpp | coanj/ProjectEuler | a35fde7c690c5b686bee7da67b03d0c1436ce39f | [
"MIT"
] | null | null | null | 10.sumOfAllPrimes.cpp | coanj/ProjectEuler | a35fde7c690c5b686bee7da67b03d0c1436ce39f | [
"MIT"
] | null | null | null | /**
* This will return the sum of all primes
* up to 2000000.
*/
#include <iostream>
bool isPrime(int number){
if(number < 2) return false;
if(number == 2) return true;
if(number % 2 == 0) return false;
for(int i=3; (i*i)<=number; i+=2){
if(number % i == 0 ) return false;
}
return t... | 19.28 | 42 | 0.551867 | coanj |
0304bf528fd5513f2a939ba7d18aec9a315ef794 | 1,966 | cxx | C++ | reconstruction.cxx | sgorbuno/TrackML_CombinatorialTracker | 03cb40f27223d9b357d8c1cccc9edfc11534aa24 | [
"MIT"
] | 6 | 2018-08-19T21:02:16.000Z | 2020-12-31T14:09:54.000Z | reconstruction.cxx | sgorbuno/TrackML_CombinatorialTracker | 03cb40f27223d9b357d8c1cccc9edfc11534aa24 | [
"MIT"
] | 1 | 2021-06-01T22:30:11.000Z | 2021-06-01T22:30:11.000Z | reconstruction.cxx | sgorbuno/TrackML_CombinatorialTracker | 03cb40f27223d9b357d8c1cccc9edfc11534aa24 | [
"MIT"
] | 3 | 2018-08-26T16:14:03.000Z | 2019-02-05T12:12:37.000Z |
#include "Tracker.h"
#include "TString.h"
#include "TFile.h"
#include <iostream>
using namespace std;
int main()
{
bool analyseTruth = false;
const int nEvents = 1;
const int firstEvent=1000;
//TString dir = "../task/train_100_events/";
TString dir = "data/train_100_events/";
/*
const int n... | 21.369565 | 92 | 0.585453 | sgorbuno |
0305a989be16ac78261f27ad7a58c4af6f187e90 | 2,236 | cc | C++ | c++/csv_overload.cc | DevNaga/c_cpp_book | c08ac6c62a98c701d512ac432df77385b51af97b | [
"Apache-2.0"
] | 1 | 2020-11-25T02:06:23.000Z | 2020-11-25T02:06:23.000Z | c++/csv_overload.cc | madmax440/c_cpp_book | c08ac6c62a98c701d512ac432df77385b51af97b | [
"Apache-2.0"
] | null | null | null | c++/csv_overload.cc | madmax440/c_cpp_book | c08ac6c62a98c701d512ac432df77385b51af97b | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <vector>
#include <string>
#include <cstdio>
// csv class to write contents to the buffer
class csv_class {
private:
std::vector<std::string> rows; // list of rows
std::string cur_buf; // current row buffer
FILE *csv;
public:
// ctor
csv_clas... | 17.888 | 62 | 0.562165 | DevNaga |
0309073932ac0a3583548436a4118755330a87bb | 468 | hpp | C++ | src/Engine/Utils/Exceptions/GameLoadResourcesException.hpp | avraal/Projector | bb234f03ccf34ed829a130c664b7adad400653f4 | [
"Zlib"
] | null | null | null | src/Engine/Utils/Exceptions/GameLoadResourcesException.hpp | avraal/Projector | bb234f03ccf34ed829a130c664b7adad400653f4 | [
"Zlib"
] | null | null | null | src/Engine/Utils/Exceptions/GameLoadResourcesException.hpp | avraal/Projector | bb234f03ccf34ed829a130c664b7adad400653f4 | [
"Zlib"
] | null | null | null | //
// Created by andrew on 15.01.19.
//
#ifndef PROJECTOR_GAMELOADEXCEPTION_HPP
#define PROJECTOR_GAMELOADEXCEPTION_HPP
#include <exception>
#include <string>
class GameLoadResourcesException : public std::exception
{
private:
std::string message;
public:
GameLoadResourcesException(const std::string &message... | 21.272727 | 59 | 0.764957 | avraal |
030ae5dfdefb4faefbc366b4042fa5929701c88c | 2,348 | cc | C++ | src/exceptions/Dark_Arts_Exception.cc | pgmaginot/DARK_ARTS | f04b0a30dcac911ef06fe0916921020826f5c42b | [
"MIT"
] | null | null | null | src/exceptions/Dark_Arts_Exception.cc | pgmaginot/DARK_ARTS | f04b0a30dcac911ef06fe0916921020826f5c42b | [
"MIT"
] | null | null | null | src/exceptions/Dark_Arts_Exception.cc | pgmaginot/DARK_ARTS | f04b0a30dcac911ef06fe0916921020826f5c42b | [
"MIT"
] | null | null | null | #include "Dark_Arts_Exception.h"
Dark_Arts_Exception::Dark_Arts_Exception( EXCEPTION_TYPE ex_type , const std::string& ex_message )
{
switch(ex_type)
{
case INPUT:
{
error_message = "INPUT: ";
break;
}
case FEM:
{
error_message = "FEM: ";
break;
}
... | 18.935484 | 105 | 0.546422 | pgmaginot |
030d2f08e72ca63c7a7e8828ffbc86326a38bab2 | 7,687 | cpp | C++ | src/cs-gui/SpriteGui.cpp | bernstein/cosmoscout-vr | 4243384a0f96853dc12fc8e9d5862c9c37f7cadf | [
"MIT"
] | null | null | null | src/cs-gui/SpriteGui.cpp | bernstein/cosmoscout-vr | 4243384a0f96853dc12fc8e9d5862c9c37f7cadf | [
"MIT"
] | null | null | null | src/cs-gui/SpriteGui.cpp | bernstein/cosmoscout-vr | 4243384a0f96853dc12fc8e9d5862c9c37f7cadf | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////////////////////////
// This file is part of CosmoScout VR //
// and may be used under the terms of the MIT license. See the LICENSE file for details. //
// ... | 34.470852 | 112 | 0.424223 | bernstein |
030d69b045560850fb7ee5f170f16ec955a46d11 | 119 | hh | C++ | src/TMPL/Demo.hh | wawiesel/BOTG-SkeletonRepo | 27b99d7456fba1f23d91fab84762f5227f86131e | [
"MIT"
] | 1 | 2017-03-20T02:56:41.000Z | 2017-03-20T02:56:41.000Z | src/TMPL/Demo.hh | wawiesel/BOTG-SkeletonRepo | 27b99d7456fba1f23d91fab84762f5227f86131e | [
"MIT"
] | null | null | null | src/TMPL/Demo.hh | wawiesel/BOTG-SkeletonRepo | 27b99d7456fba1f23d91fab84762f5227f86131e | [
"MIT"
] | null | null | null | #ifndef BOTG_TEMPLATE_Demo_HH
#define BOTG_TEMPLATE_Demo_HH
namespace TMPL
{
int cxx_function(int j);
}//TMPL
#endif
| 11.9 | 29 | 0.798319 | wawiesel |
0316a05bbaf23198a37167cbfb4e79a284aeb49a | 3,078 | cpp | C++ | QueuePP/tests/ImageConversionService/Test.cpp | AntonPoturaev/QueuePP | 25ea571abdd62ab6409da6dbad5bfcd20898ffb1 | [
"Unlicense"
] | null | null | null | QueuePP/tests/ImageConversionService/Test.cpp | AntonPoturaev/QueuePP | 25ea571abdd62ab6409da6dbad5bfcd20898ffb1 | [
"Unlicense"
] | null | null | null | QueuePP/tests/ImageConversionService/Test.cpp | AntonPoturaev/QueuePP | 25ea571abdd62ab6409da6dbad5bfcd20898ffb1 | [
"Unlicense"
] | null | null | null | #include "Test.hpp"
#include <fstream>
#include <boost/interprocess/file_mapping.hpp>
#include <boost/interprocess/mapped_region.hpp>
#include <boost/filesystem/path.hpp>
#include <boost/filesystem/operations.hpp>
#include <Data/Data.hpp>
namespace Bluetooth { namespace CL {
namespace {
namespa... | 32.744681 | 95 | 0.632229 | AntonPoturaev |
031bf3d90faa65f3b123d48b6d935c6b2bfcc798 | 2,084 | cpp | C++ | hostApp/frames/FrameImageComboU.cpp | spetric/Lips | 5b70ab2d8692921ffc4de1d56d7e5da7736c9850 | [
"MIT"
] | 7 | 2019-11-16T05:27:22.000Z | 2022-01-18T06:53:30.000Z | hostApp/frames/FrameImageComboU.cpp | spetric/Lips | 5b70ab2d8692921ffc4de1d56d7e5da7736c9850 | [
"MIT"
] | null | null | null | hostApp/frames/FrameImageComboU.cpp | spetric/Lips | 5b70ab2d8692921ffc4de1d56d7e5da7736c9850 | [
"MIT"
] | 5 | 2020-01-02T06:06:20.000Z | 2021-04-08T01:30:08.000Z | //---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "FrameImageComboU.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link "AdvCombo"
#pragma link "cxClasses"
#pragma link "... | 32.061538 | 83 | 0.565259 | spetric |
031d4513d92f956cd88f0b352441923fb7a7c10e | 265 | hpp | C++ | libto25-solver/include/to25-solver/resultbase.hpp | jkesanen/to25-solver | 85a3808229157cd1576eebc8742256924afe6ef6 | [
"MIT"
] | null | null | null | libto25-solver/include/to25-solver/resultbase.hpp | jkesanen/to25-solver | 85a3808229157cd1576eebc8742256924afe6ef6 | [
"MIT"
] | null | null | null | libto25-solver/include/to25-solver/resultbase.hpp | jkesanen/to25-solver | 85a3808229157cd1576eebc8742256924afe6ef6 | [
"MIT"
] | null | null | null | #pragma once
#ifndef RESULTBASE_HPP
#define RESULTBASE_HPP
#include "board.hpp"
namespace to25 {
class ResultBase {
public:
virtual void addSolved(const Board& board) = 0;
virtual void addDeadEnd(const Board& board) = 0;
};
} // namespace to25
#endif
| 13.947368 | 52 | 0.716981 | jkesanen |
0324b71ce7705b15e185dda1e76a18a5c3599222 | 1,280 | hpp | C++ | fast_cgi/service.hpp | terrakuh/fast_cgi | 2f882a715677ec8f6047d2edb7548ff9b9fea1a6 | [
"MIT"
] | 2 | 2020-04-21T11:56:27.000Z | 2020-05-06T05:28:54.000Z | fast_cgi/service.hpp | terrakuh/fast_cgi | 2f882a715677ec8f6047d2edb7548ff9b9fea1a6 | [
"MIT"
] | null | null | null | fast_cgi/service.hpp | terrakuh/fast_cgi | 2f882a715677ec8f6047d2edb7548ff9b9fea1a6 | [
"MIT"
] | null | null | null | #ifndef FAST_CGI_SERVICE_HPP_
#define FAST_CGI_SERVICE_HPP_
#include "connector.hpp"
#include "detail/record.hpp"
#include "io/input_manager.hpp"
#include "io/reader.hpp"
#include "memory/allocator.hpp"
#include "role.hpp"
#include <array>
#include <functional>
#include <memory>
#include <thread>
#include <type_trait... | 26.666667 | 109 | 0.746094 | terrakuh |
032ecf35dab05549dfa57723c44d9c5b20ec5630 | 354 | cpp | C++ | Basic Classes/TFlags.cpp | poissonconsulting/RadCon | acbbb974ececbabddd3da91768744bf31982bf93 | [
"MIT"
] | 1 | 2021-12-26T13:32:52.000Z | 2021-12-26T13:32:52.000Z | Basic Classes/TFlags.cpp | joethorley/RadCon | acbbb974ececbabddd3da91768744bf31982bf93 | [
"MIT"
] | 1 | 2015-02-02T19:28:20.000Z | 2015-02-02T19:28:20.000Z | Basic Classes/TFlags.cpp | poissonconsulting/RadCon | acbbb974ececbabddd3da91768744bf31982bf93 | [
"MIT"
] | null | null | null | #include "TFlags.h"
bool TFlags::IsFlag (const Flags f) const
{
return ((bool)((f & fFlags) != 0));
}
void TFlags::SetFlag (const Flags f, const bool on) const
{
if (on)
((TFlags*)this)->fFlags = (fFlags | f);
else
((TFlags*)this)->fFlags = (fFlags & (~f));
}
TFlags::TFlags (void)
: fFlags (0)
{... | 354 | 354 | 0.567797 | poissonconsulting |
033019cc900978767faab2be28419d5f975ddde2 | 710 | cpp | C++ | src/device/controllerIntel.cpp | ISilence/delirium_cl | d54499af2556511eb47ae90b2420788ca914d314 | [
"MIT"
] | 2 | 2017-06-02T08:08:47.000Z | 2017-08-24T06:43:40.000Z | src/device/controllerIntel.cpp | ISilence/delirium_cl | d54499af2556511eb47ae90b2420788ca914d314 | [
"MIT"
] | 9 | 2016-11-17T18:46:30.000Z | 2017-05-13T20:16:50.000Z | src/device/controllerIntel.cpp | ISilence/delirium_cl | d54499af2556511eb47ae90b2420788ca914d314 | [
"MIT"
] | null | null | null | #if !defined(DLM_CL_SKIP_VENDOR_INTEL)
#include "dlm/env/macro.h"
DLM_CMODULE_START
#include "cl/cl_ext_intel.h"
DLM_CMODULE_END
#include "dlm/cl/device.hpp"
#include "dlm/cl/controllers.hpp"
using namespace dlmcl;
DeviceInfo IntelController::getInfo(cl_device_id device) noexcept
{
DeviceInfo info = GenericControl... | 27.307692 | 111 | 0.760563 | ISilence |
033aecd9a1bf1868804da6bead08b4488f98fef4 | 12,000 | cpp | C++ | BlitzSharp3D/blitz3d/loader_3ds.cpp | blitzimagine/BlitzSharp3D | 8bb122db92e17a685543b810700b8b47a2930f60 | [
"Zlib",
"BSD-3-Clause"
] | 8 | 2019-05-28T20:02:50.000Z | 2021-10-12T23:34:02.000Z | BlitzSharp3D/blitz3d/loader_3ds.cpp | blitzimagine/BlitzSharp3D | 8bb122db92e17a685543b810700b8b47a2930f60 | [
"Zlib",
"BSD-3-Clause"
] | null | null | null | BlitzSharp3D/blitz3d/loader_3ds.cpp | blitzimagine/BlitzSharp3D | 8bb122db92e17a685543b810700b8b47a2930f60 | [
"Zlib",
"BSD-3-Clause"
] | 1 | 2019-12-25T01:02:00.000Z | 2019-12-25T01:02:00.000Z |
#include "std.h"
#include "loader_3ds.h"
#include "meshmodel.h"
#include "animation.h"
extern gxRuntime* gx_runtime;
#ifdef BETA
#define _log( X ) gx_runtime->debugLog( (string(X)).c_str() );
#else
#define _log( X )
#endif
static filebuf in;
static int chunk_end;
static vector<int> parent_end;
static unsigned short... | 23.03263 | 156 | 0.636333 | blitzimagine |
033da0e825be46f8cf13f5435a16afd3cc602f75 | 3,847 | cpp | C++ | src/org/apache/poi/ss/usermodel/PageOrder.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/ss/usermodel/PageOrder.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/ss/usermodel/PageOrder.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /POI/java/org/apache/poi/ss/usermodel/PageOrder.java
#include <org/apache/poi/ss/usermodel/PageOrder.hpp>
#include <java/io/Serializable.hpp>
#include <java/lang/ArrayStoreException.hpp>
#include <java/lang/Comparable.hpp>
#include <java/lang/Enum.hpp>
#include <java/lang/IllegalArgumentException.hpp... | 27.283688 | 151 | 0.667013 | pebble2015 |
033e361090b3b88e9ae3574986807965ca414fb2 | 1,515 | cpp | C++ | 11396 - Claw Decomposition.cpp | abdullah1107/uva | 5c7107d41a586e30aa7cc91cd7498b82dbc506ee | [
"MIT"
] | null | null | null | 11396 - Claw Decomposition.cpp | abdullah1107/uva | 5c7107d41a586e30aa7cc91cd7498b82dbc506ee | [
"MIT"
] | null | null | null | 11396 - Claw Decomposition.cpp | abdullah1107/uva | 5c7107d41a586e30aa7cc91cd7498b82dbc506ee | [
"MIT"
] | null | null | null | /************Accepted**********/
#include<iostream>
#include<vector>
#include<cstdio>
#include<cstdlib>
#include<map>
#include<queue>
#include<string>
using namespace std;
vector<int>claw[305];
void clawDecomposition(int a)
{
queue<int>q;
q.push(a);
int Finder =0;
int taken[300]={0};
taken[a]=1;
... | 19.423077 | 46 | 0.385479 | abdullah1107 |
034323fdb9fe132c5ed524e6425dd9c777d73db2 | 89 | hpp | C++ | UEL/Lista 6 but its in cpp/headers.hpp | FlammaVulpes/random-crappy-stuff | c3fc38f8152393300ea6e8f4637c837a21379bd9 | [
"MIT"
] | null | null | null | UEL/Lista 6 but its in cpp/headers.hpp | FlammaVulpes/random-crappy-stuff | c3fc38f8152393300ea6e8f4637c837a21379bd9 | [
"MIT"
] | null | null | null | UEL/Lista 6 but its in cpp/headers.hpp | FlammaVulpes/random-crappy-stuff | c3fc38f8152393300ea6e8f4637c837a21379bd9 | [
"MIT"
] | null | null | null | void getGrades();
void calcMarks();
void calcAvg();
void calcStdDev();
void ex57();
| 14.833333 | 19 | 0.662921 | FlammaVulpes |
03433cc41a1ca7c0c2b07fe33b0ec379867a38b3 | 1,137 | cpp | C++ | aoapcbac2nd/example8-1_stacksofflapjacks.cpp | aoibird/pc | b72c0b10117f95d45e2e7423614343b5936b260a | [
"MIT"
] | null | null | null | aoapcbac2nd/example8-1_stacksofflapjacks.cpp | aoibird/pc | b72c0b10117f95d45e2e7423614343b5936b260a | [
"MIT"
] | null | null | null | aoapcbac2nd/example8-1_stacksofflapjacks.cpp | aoibird/pc | b72c0b10117f95d45e2e7423614343b5936b260a | [
"MIT"
] | null | null | null | // UVa 120
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
const int MAXN = 30; // [1, 30]
int P[MAXN+10]; // P[i] ~ [1, 100]
int N;
bool compare(int a, int b)
{
if (a > b) return true;
else return false;
}
v... | 16.014085 | 62 | 0.486368 | aoibird |
0344a2e78f0809c7157f92cb91166ddb18871b96 | 8,735 | cpp | C++ | Matricks/Source/PhysicsManager.cpp | sidu7/Matricks | a3f790d8f441568cc3b8172d96ce8e4f0e801b81 | [
"Apache-2.0"
] | null | null | null | Matricks/Source/PhysicsManager.cpp | sidu7/Matricks | a3f790d8f441568cc3b8172d96ce8e4f0e801b81 | [
"Apache-2.0"
] | null | null | null | Matricks/Source/PhysicsManager.cpp | sidu7/Matricks | a3f790d8f441568cc3b8172d96ce8e4f0e801b81 | [
"Apache-2.0"
] | null | null | null | /* Start Header -------------------------------------------------------
Copyright (C) 2019 DigiPen Institute of Technology.
Reproduction or disclosure of this file or its contents without the prior
written consent of DigiPen Institute of Technology is prohibited.
Author: Shantanu Chauhan
- End Header ------------------... | 34.800797 | 157 | 0.707728 | sidu7 |
0348fe5c00c8120f3b2a00fc5f5b99812db3e1ad | 2,335 | cpp | C++ | practice/CutTheTree.cpp | xenowits/cp | 963b3c7df65b5328d5ce5ef894a46691afefb98c | [
"MIT"
] | null | null | null | practice/CutTheTree.cpp | xenowits/cp | 963b3c7df65b5328d5ce5ef894a46691afefb98c | [
"MIT"
] | null | null | null | practice/CutTheTree.cpp | xenowits/cp | 963b3c7df65b5328d5ce5ef894a46691afefb98c | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define fori(i,a,b) for (long int i = a; i <= b ; ++i)
#define ford(i,a,b) for(long int i = a;i >= b ; --i)
#define mk make_pair
#define mod 1000000007
#define pb push_back
#define ll long long
#define rnd mt19937_64 rng(chrono::high_resolution_clock::now().time_since_epoch... | 22.238095 | 96 | 0.519914 | xenowits |
034c18273e8277e657c5621fc91580362c7630fc | 3,152 | cpp | C++ | tests/utests/nft/marshal_operation_tests.cpp | Scorum/Scorum | fb4aa0b0960119b97828865d7a5b4d0409af7876 | [
"MIT"
] | 1 | 2017-10-14T18:25:52.000Z | 2017-10-14T18:25:52.000Z | tests/utests/nft/marshal_operation_tests.cpp | Scorum/Scorum | fb4aa0b0960119b97828865d7a5b4d0409af7876 | [
"MIT"
] | null | null | null | tests/utests/nft/marshal_operation_tests.cpp | Scorum/Scorum | fb4aa0b0960119b97828865d7a5b4d0409af7876 | [
"MIT"
] | null | null | null | #include <boost/test/unit_test.hpp>
#include <scorum/chain/evaluators/create_game_round_evaluator.hpp>
#include <hippomocks.h>
#include <defines.hpp>
#include <boost/uuid/uuid_io.hpp>
#include "detail.hpp"
using ::detail::to_hex;
namespace {
using namespace scorum;
using namespace scorum::chain;
using namespace sc... | 35.818182 | 120 | 0.808058 | Scorum |
034c32258ed93779fb4b606361a6a4eee0e82678 | 4,519 | cpp | C++ | source/nina/private/internal/application/application.cpp | fpuma/Nina | dcbdae59f7ec66bc9070d214eea0622c8a023192 | [
"MIT"
] | null | null | null | source/nina/private/internal/application/application.cpp | fpuma/Nina | dcbdae59f7ec66bc9070d214eea0622c8a023192 | [
"MIT"
] | null | null | null | source/nina/private/internal/application/application.cpp | fpuma/Nina | dcbdae59f7ec66bc9070d214eea0622c8a023192 | [
"MIT"
] | null | null | null | #include <precompiledapplication.h>
#include "application.h"
#include <internal/application/window.h>
#include <SDL.h>
#include <SDL_ttf.h>
namespace puma::nina
{
constexpr s32 kSdlEventBufferSize = 10;
std::unique_ptr<IApplication> IApplication::create()
{
return std::make_unique<Application>(... | 26.89881 | 162 | 0.568931 | fpuma |
034cd13a2641be12cb2fac8ec5fe86c2372513d4 | 405 | cpp | C++ | Promo_2023_Projet_Mai/Promo_2023_Projet_Mai/SkillCheckManager.cpp | dev1ous/Jelly-War | 55353c1f111101a0286370236541b087fdf28d17 | [
"Apache-2.0"
] | null | null | null | Promo_2023_Projet_Mai/Promo_2023_Projet_Mai/SkillCheckManager.cpp | dev1ous/Jelly-War | 55353c1f111101a0286370236541b087fdf28d17 | [
"Apache-2.0"
] | null | null | null | Promo_2023_Projet_Mai/Promo_2023_Projet_Mai/SkillCheckManager.cpp | dev1ous/Jelly-War | 55353c1f111101a0286370236541b087fdf28d17 | [
"Apache-2.0"
] | null | null | null | #include "SkillCheckManager.h"
SkillCheckManager::SkillCheckManager()
{
m_sc.InitSkillCheck();
}
void SkillCheckManager::processEvents(const sf::Event& e)
{
}
void SkillCheckManager::update(const float& dt)
{
m_sc.GenerateRandomMove(dt);
m_sc.MovingSkillCheckBar(dt);
m_sc.RunSkillCheck(dt);
m_sc.Progression(dt)... | 16.875 | 57 | 0.765432 | dev1ous |
0354f94fe3a2e6e2073861b9ab492307c9062919 | 182 | hpp | C++ | engine/lang/expression.hpp | Venkster123/Zhetapi | 9a034392c06733c57d892afde300e90c4b7036f9 | [
"MIT"
] | 27 | 2020-06-05T15:39:31.000Z | 2022-01-07T05:03:01.000Z | engine/lang/expression.hpp | Venkster123/Zhetapi | 9a034392c06733c57d892afde300e90c4b7036f9 | [
"MIT"
] | 1 | 2021-02-12T04:51:40.000Z | 2021-02-12T04:51:40.000Z | engine/lang/expression.hpp | Venkster123/Zhetapi | 9a034392c06733c57d892afde300e90c4b7036f9 | [
"MIT"
] | 4 | 2021-02-12T04:39:55.000Z | 2021-11-15T08:00:06.000Z | #ifndef EXPRESSION_H_
#define EXPRESSION_H_
// Engine headers
#include "feeder.hpp"
#include "../core/enode.hpp"
namespace zhetapi {
Primitive parse_numeric(Feeder *);
}
#endif
| 12.133333 | 34 | 0.741758 | Venkster123 |
0359cd5caf032267bf503cfd8457061d1ab40b45 | 327 | hpp | C++ | vitis_hls_examples/slxplugin_loopinterchange_demo/slxplugin/examples/botda/split/botda.hpp | viraphol/HLS | 9de82acd6a8797b54038484e2bdd5a51dc133318 | [
"Apache-2.0"
] | 295 | 2021-02-27T08:42:52.000Z | 2022-03-27T14:38:55.000Z | vitis_hls_examples/slxplugin_loopinterchange_demo/slxplugin/examples/botda/split/botda.hpp | viraphol/HLS | 9de82acd6a8797b54038484e2bdd5a51dc133318 | [
"Apache-2.0"
] | 5 | 2021-03-09T17:00:12.000Z | 2022-03-23T22:44:00.000Z | vitis_hls_examples/slxplugin_loopinterchange_demo/slxplugin/examples/botda/split/botda.hpp | viraphol/HLS | 9de82acd6a8797b54038484e2bdd5a51dc133318 | [
"Apache-2.0"
] | 42 | 2021-02-26T07:49:39.000Z | 2022-01-13T23:07:42.000Z | // Copyright (C) 2020, Silexica GmbH, Lichtstr. 25, Cologne, Germany
// All rights reserved
#ifndef BOTDA_H
#define BOTDA_H
constexpr int Ns = 1136;
constexpr int M = 220;
float linearSVR(const float feature[M], const float support_vector[Ns][M],
const float multipliers[Ns], float bias);
#endif /* !BOTD... | 23.357143 | 74 | 0.703364 | viraphol |
035ab498622056ef46b17e09ebd311f85022a91d | 3,646 | hpp | C++ | include/ak_toolkit/only_when.hpp | tomrtc/explicit | c4722958022ef759faf43c332c6a6d9d967eb0dd | [
"BSL-1.0"
] | 208 | 2016-10-28T14:32:34.000Z | 2022-03-25T16:24:08.000Z | include/ak_toolkit/only_when.hpp | tomrtc/explicit | c4722958022ef759faf43c332c6a6d9d967eb0dd | [
"BSL-1.0"
] | 3 | 2017-04-29T09:47:08.000Z | 2017-12-20T07:21:47.000Z | include/ak_toolkit/only_when.hpp | tomrtc/explicit | c4722958022ef759faf43c332c6a6d9d967eb0dd | [
"BSL-1.0"
] | 12 | 2017-05-25T12:27:33.000Z | 2022-02-08T05:16:12.000Z | #ifndef AK_TOOLKIT_XPLICIT_ONLY_WHEN_HEADER_GUARD_
#define AK_TOOLKIT_XPLICIT_ONLY_WHEN_HEADER_GUARD_
#include <type_traits>
#include <utility>
namespace ak_toolkit {
namespace xplicit {
namespace only_when_ns {
#define AK_TOOLKIT_ENABLE_IF(...) typename ::std::enable_if<(__VA_ARGS__), bool>::type = true
template <... | 30.898305 | 128 | 0.651947 | tomrtc |
035d2f7ccdde44823de4910d33376efc4884593b | 1,016 | hpp | C++ | src/red4ext.dll/REDhook.hpp | rfuzzo/RED4ext | 0762b38b8f50bc128b87f3bf12eb9bce499e35c3 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | src/red4ext.dll/REDhook.hpp | rfuzzo/RED4ext | 0762b38b8f50bc128b87f3bf12eb9bce499e35c3 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | src/red4ext.dll/REDhook.hpp | rfuzzo/RED4ext | 0762b38b8f50bc128b87f3bf12eb9bce499e35c3 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | #pragma once
#include "Patterns.hpp"
template<typename T = void (*)()>
class REDhook : public renhook::inline_hook<T>
{
public:
REDhook() = default;
REDhook(uintptr_t aTargetAddress, uintptr_t aDetourAddress)
: renhook::inline_hook<T>(aTargetAddress, aDetourAddress)
{
}
REDhook(void* aTa... | 29.028571 | 116 | 0.69685 | rfuzzo |
24eb69c8535011d9286b440cb5dd35ea6806f669 | 6,376 | cpp | C++ | matlab/finufft_m.cpp | ludvigak/finufft | a4d442906fdaebfe944283ca9bd2be36a40e2b3a | [
"Apache-2.0"
] | 1 | 2019-11-05T22:46:04.000Z | 2019-11-05T22:46:04.000Z | matlab/finufft_m.cpp | zcgan/finufft | 05e70050ac9e418ff1ed46d2369209b63b0502fd | [
"Apache-2.0"
] | null | null | null | matlab/finufft_m.cpp | zcgan/finufft | 05e70050ac9e418ff1ed46d2369209b63b0502fd | [
"Apache-2.0"
] | null | null | null | // C-style interface to FINUFFT library that is used for MWRAP interface.
// Only double-precision is implemented.
// Note that no underscores can be used in the function names.
// We use doubles to rep big integers, since "long long" failed in mwrap.
// We tried reading MY_OMP_GET_MAX_THREADS() but since we're in MEX... | 36.434286 | 164 | 0.709536 | ludvigak |
24eb796f7057e55ee51a7bfbb396a6bdc234333d | 1,938 | cpp | C++ | source_code/gui/graphics/graphic_rectangle.cpp | tsrapnik/odessa | 506bdd3a604cc36c367f0761f0f3311c2ef4cfd3 | [
"Unlicense"
] | null | null | null | source_code/gui/graphics/graphic_rectangle.cpp | tsrapnik/odessa | 506bdd3a604cc36c367f0761f0f3311c2ef4cfd3 | [
"Unlicense"
] | null | null | null | source_code/gui/graphics/graphic_rectangle.cpp | tsrapnik/odessa | 506bdd3a604cc36c367f0761f0f3311c2ef4cfd3 | [
"Unlicense"
] | null | null | null | #include "graphic_rectangle.h"
graphic_rectangle::graphic_rectangle(rectangle bounding_box, color the_color)
{
this->bounding_box = bounding_box;
this->the_color = the_color;
}
void graphic_rectangle::set_bounding_box(rectangle new_bounding_box)
{
this->bounding_box = new_bounding_box;
}
col... | 34 | 144 | 0.686275 | tsrapnik |
24ef4415c3a315477a855e804542c02c7444573f | 1,034 | cpp | C++ | CodeForces/codeforces424B.cpp | bilibiliShen/CodeBank | 49a69b2b2c3603bf105140a9d924946ed3193457 | [
"MIT"
] | 1 | 2017-08-19T16:02:15.000Z | 2017-08-19T16:02:15.000Z | CodeForces/codeforces424B.cpp | bilibiliShen/CodeBank | 49a69b2b2c3603bf105140a9d924946ed3193457 | [
"MIT"
] | null | null | null | CodeForces/codeforces424B.cpp | bilibiliShen/CodeBank | 49a69b2b2c3603bf105140a9d924946ed3193457 | [
"MIT"
] | 1 | 2018-01-05T23:37:23.000Z | 2018-01-05T23:37:23.000Z | /****
*@author Shen
*@title B
*/
#include <iostream>
#include <cstdio>
#include <string>
#include <cstring>
#include <cmath>
#include <algorithm>
using namespace std;
struct city
{
int x, y, p;
double dist;
city(){}
void calcDistance()
{
dist = sqrt(double(x * x + y * y));
}
... | 15.666667 | 60 | 0.461315 | bilibiliShen |
24f00ddcbd708a336db38e21bd21cbe51a4591a3 | 7,511 | cc | C++ | benchmark/logging/PlatformPLNanolog.cc | BrentJiang/qtsf | 8c1139800052fa3e50863915e76ebcfb6ab5c78c | [
"Apache-2.0"
] | null | null | null | benchmark/logging/PlatformPLNanolog.cc | BrentJiang/qtsf | 8c1139800052fa3e50863915e76ebcfb6ab5c78c | [
"Apache-2.0"
] | null | null | null | benchmark/logging/PlatformPLNanolog.cc | BrentJiang/qtsf | 8c1139800052fa3e50863915e76ebcfb6ab5c78c | [
"Apache-2.0"
] | null | null | null | /* Copyright (c) 2016-2018 Stanford University
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR(... | 37 | 108 | 0.657569 | BrentJiang |
24f0dff43e878cf5d82bf6a64a1e7f0bc8baaba6 | 598 | cpp | C++ | Source/VoiceDuino.App/main.cpp | Grandbrain/VoiceDuino | edd47beab7967a19995bf80212d27ef4fdd9ef4c | [
"MIT"
] | 10 | 2018-03-19T13:23:48.000Z | 2021-06-01T07:18:41.000Z | Source/VoiceDuino.App/main.cpp | Grandbrain/VoiceDuino | edd47beab7967a19995bf80212d27ef4fdd9ef4c | [
"MIT"
] | 2 | 2018-07-19T08:45:54.000Z | 2021-12-25T15:31:23.000Z | Source/VoiceDuino.App/main.cpp | Grandbrain/VoiceDuino | edd47beab7967a19995bf80212d27ef4fdd9ef4c | [
"MIT"
] | 1 | 2020-11-17T17:06:15.000Z | 2020-11-17T17:06:15.000Z | #include <QApplication>
#include <QTranslator>
#include "window.h"
void Translate()
{
QLocale::Language lang = QLocale::system().language();
QStringList files;
if(lang == QLocale::Language::Russian) files.append(":/root/Resources/ru.qm");
else files.append(":/root/Resources/en.qm");
foreach (QStrin... | 23.92 | 82 | 0.637124 | Grandbrain |
24f1da4b4d7dbfe5c80e1a1e7b991fcc09a26908 | 17,192 | cpp | C++ | src/scripting/modules/bittorrent/torrent_handle_wrapper.cpp | hadouken/hadouken | bb89164f324bb6a2c4a17c0d39a28f7a7f40bea9 | [
"MIT"
] | 338 | 2015-01-09T06:29:33.000Z | 2022-02-28T22:48:37.000Z | src/scripting/modules/bittorrent/torrent_handle_wrapper.cpp | vktr/hadouken | bb89164f324bb6a2c4a17c0d39a28f7a7f40bea9 | [
"MIT"
] | 161 | 2015-01-08T21:14:10.000Z | 2020-08-31T12:53:17.000Z | src/scripting/modules/bittorrent/torrent_handle_wrapper.cpp | hadouken/hadouken | bb89164f324bb6a2c4a17c0d39a28f7a7f40bea9 | [
"MIT"
] | 76 | 2015-02-05T19:32:56.000Z | 2020-08-30T21:36:35.000Z | #include <hadouken/scripting/modules/bittorrent/torrent_handle_wrapper.hpp>
#include <hadouken/scripting/modules/bittorrent/announce_entry_wrapper.hpp>
#include <hadouken/scripting/modules/bittorrent/peer_info_wrapper.hpp>
#include <hadouken/scripting/modules/bittorrent/torrent_info_wrapper.hpp>
#include <hadouke... | 32.746667 | 117 | 0.669963 | hadouken |
24f6f0dba860deb3ada3879c038dd4536b0154ef | 4,129 | cpp | C++ | HW1/RW1A-Markose-117000269.cpp | markosej11/ENPM809Y-RWA-1 | f54f852ded015cc020e31d407e57df8b696bb954 | [
"MIT"
] | null | null | null | HW1/RW1A-Markose-117000269.cpp | markosej11/ENPM809Y-RWA-1 | f54f852ded015cc020e31d407e57df8b696bb954 | [
"MIT"
] | null | null | null | HW1/RW1A-Markose-117000269.cpp | markosej11/ENPM809Y-RWA-1 | f54f852ded015cc020e31d407e57df8b696bb954 | [
"MIT"
] | null | null | null | //Header files used
#include <iostream>
#include <array>
#include <vector>
#include <string.h>
using std :: cout ;
using std :: cin ;
using std :: endl ;
using std :: array ;
using std :: string ;
using std :: vector ;
int main() //program starts
{
int i,j; ... | 49.154762 | 223 | 0.487769 | markosej11 |
24fbcb4ddc2916d8df4cee9db1097d7fd4fbde32 | 6,376 | cpp | C++ | Sandbox/src/SandboxLayer.cpp | OKAY808/Terran | 5f07a94e1b76cf9d74e8cc0241ac8b75978a584f | [
"Apache-2.0"
] | 1 | 2021-12-22T08:03:32.000Z | 2021-12-22T08:03:32.000Z | Sandbox/src/SandboxLayer.cpp | OKAY808/Terran | 5f07a94e1b76cf9d74e8cc0241ac8b75978a584f | [
"Apache-2.0"
] | 9 | 2021-06-30T12:47:45.000Z | 2022-03-24T22:34:21.000Z | Sandbox/src/SandboxLayer.cpp | OKAY808/Terran | 5f07a94e1b76cf9d74e8cc0241ac8b75978a584f | [
"Apache-2.0"
] | null | null | null | #include "SandboxLayer.h"
#include <imgui.h>
#include <glm/mat4x4.hpp>
#include <glm/glm.hpp>
#include <glm/gtx/quaternion.hpp>
#include <math.h>
namespace TerranEngine
{
SandboxLayer::SandboxLayer()
: Layer("Sandbox Layer"),
m_Camera(Application::Get()->GetWindow().GetWidth() * 0.1f, Application::Get()->Get... | 24.617761 | 156 | 0.671424 | OKAY808 |
24fe2fb4651ba13829ecb62f41ad88aa7bfee728 | 3,283 | cpp | C++ | src/+cv/private/Utils_.cpp | zsj0577/mexopencv | 678ced73615f3581a0fe09823758446ff4ca3197 | [
"BSD-3-Clause"
] | null | null | null | src/+cv/private/Utils_.cpp | zsj0577/mexopencv | 678ced73615f3581a0fe09823758446ff4ca3197 | [
"BSD-3-Clause"
] | null | null | null | src/+cv/private/Utils_.cpp | zsj0577/mexopencv | 678ced73615f3581a0fe09823758446ff4ca3197 | [
"BSD-3-Clause"
] | null | null | null | /**
* @file Utils_.cpp
* @brief mex interface for some utilities and system functions
* @ingroup core
* @author Amro
* @date 2015
*/
#include "mexopencv.hpp"
using namespace std;
using namespace cv;
/**
* Main entry called from Matlab
* @param nlhs number of left-hand-side arguments
* @param plhs pointers to ... | 39.554217 | 77 | 0.610417 | zsj0577 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.