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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
392209b4255ab301e3a86595f36bfd8988a2a69a | 305 | cpp | C++ | Puzzles/01_using.cpp | egaburov/codevault | 1cad07aba42628a014bd91ad07d66f105614309c | [
"Apache-2.0"
] | null | null | null | Puzzles/01_using.cpp | egaburov/codevault | 1cad07aba42628a014bd91ad07d66f105614309c | [
"Apache-2.0"
] | null | null | null | Puzzles/01_using.cpp | egaburov/codevault | 1cad07aba42628a014bd91ad07d66f105614309c | [
"Apache-2.0"
] | null | null | null | #include <iostream>
int main()
{
#ifndef PART2
using namespace std;
#else
using std::cout;
using std::endl;
#endif
cout << "Hello, puzzling world!" << endl;
int cout;
cout = 10;
std::cout << "cout = " << cout << endl;
std::cout << "cout << 5 = " << (cout << 5) << endl;
return 0;
}
| 14.52381 | 54 | 0.554098 | egaburov |
3924056ad631b4acd0cd1e64fd8afe2c77aefdf5 | 1,091 | cpp | C++ | holdem/test/LYHoldemTrunk_tests.cpp | caiqingfeng/libpoker | a2c60884fc5c8e31455fb39e432c49e0df55956b | [
"Apache-2.0"
] | 1 | 2021-04-20T06:22:30.000Z | 2021-04-20T06:22:30.000Z | holdem/test/LYHoldemTrunk_tests.cpp | caiqingfeng/libpoker | a2c60884fc5c8e31455fb39e432c49e0df55956b | [
"Apache-2.0"
] | null | null | null | holdem/test/LYHoldemTrunk_tests.cpp | caiqingfeng/libpoker | a2c60884fc5c8e31455fb39e432c49e0df55956b | [
"Apache-2.0"
] | 2 | 2020-10-29T08:21:22.000Z | 2020-12-02T06:40:18.000Z | /*
* LYHoldemTrunk_tests.cpp
*
* Created on: 2013-7-5
* Author: caiqingfeng
*/
#include "src/LYHoldemTrunk.h"
#include "src/LYHoldemTable.h"
//#include "common/src/my_log.h"
#include <gtest/gtest.h>
#include <string>
using std::string;
class LYHoldemTrunk_tests : public ::testing::Test
{
protected:
v... | 21.392157 | 105 | 0.672777 | caiqingfeng |
392495d446dd59baed42e16d410910fa23022a25 | 4,144 | hpp | C++ | export/output_handler.hpp | simonpp/2dRidgeletBTE | 5d08cbb5c57fc276c7a528f128615d23c37ef6a0 | [
"BSD-3-Clause"
] | 1 | 2019-11-08T03:15:56.000Z | 2019-11-08T03:15:56.000Z | export/output_handler.hpp | simonpp/2dRidgeletBTE | 5d08cbb5c57fc276c7a528f128615d23c37ef6a0 | [
"BSD-3-Clause"
] | null | null | null | export/output_handler.hpp | simonpp/2dRidgeletBTE | 5d08cbb5c57fc276c7a528f128615d23c37ef6a0 | [
"BSD-3-Clause"
] | 1 | 2019-11-08T03:15:56.000Z | 2019-11-08T03:15:56.000Z | #pragma once
#include <boost/assert.hpp>
#include <boost/lexical_cast.hpp>
#include "base/buffered_output_array.hpp"
#include "base/coeff_array.hpp"
#include "export/hdf_writer.hpp"
#include "spectral/macroscopic_quantities.hpp"
#include "spectral/polar_to_nodal.hpp"
class OutputHandler
{
private:
template <int ... | 27.812081 | 97 | 0.611969 | simonpp |
3929ea94f6656bd60f5e0ba71183fd5b9ba13ec4 | 2,023 | cpp | C++ | Problems/StringManipulation.cpp | SimpleTechTalks/SimpleTechTalks | eefdb4cffc955f43535f4054d1558978ae0088e1 | [
"MIT"
] | null | null | null | Problems/StringManipulation.cpp | SimpleTechTalks/SimpleTechTalks | eefdb4cffc955f43535f4054d1558978ae0088e1 | [
"MIT"
] | null | null | null | Problems/StringManipulation.cpp | SimpleTechTalks/SimpleTechTalks | eefdb4cffc955f43535f4054d1558978ae0088e1 | [
"MIT"
] | null | null | null | /********************************************************************************
*
* Find Minimum number of operations required to convert string1 to string2.
* Only insert and delete character operations are allowed.
*
********************************************************************************/
#include ... | 25.2875 | 83 | 0.500741 | SimpleTechTalks |
392a772a9c0797b0bca9c9921c006396f93d22e9 | 796 | hpp | C++ | src/Scene.hpp | i-yam-jeremy/path-tracer | 21a44a2fb4867bc1b678e26f1884d2ff0d1ca5b3 | [
"MIT"
] | null | null | null | src/Scene.hpp | i-yam-jeremy/path-tracer | 21a44a2fb4867bc1b678e26f1884d2ff0d1ca5b3 | [
"MIT"
] | null | null | null | src/Scene.hpp | i-yam-jeremy/path-tracer | 21a44a2fb4867bc1b678e26f1884d2ff0d1ca5b3 | [
"MIT"
] | null | null | null | //
// Scene.hpp
// Path Tracer
//
// Created by Jeremy Berchtold on 12/8/19.
// Copyright © 2019 Jeremy Berchtold. All rights reserved.
//
#ifndef Scene_hpp
#define Scene_hpp
#include <vector>
#include <string>
#include <memory>
#include "Object.hpp"
/*
A 3D scene containing objects and path tracer settings.
... | 18.952381 | 64 | 0.650754 | i-yam-jeremy |
392b2fb33e3a5be846ecc071b3cfb99d05c11ae8 | 469 | cpp | C++ | hackerrank/c-tutorial-stringstream/main.cpp | Yash-Singh1/competitive-programming | 3b9d278ed8138ab614e2a3d748627db8f4a2cdbd | [
"MIT"
] | 1 | 2021-04-25T21:58:57.000Z | 2021-04-25T21:58:57.000Z | hackerrank/c-tutorial-stringstream/main.cpp | Yash-Singh1/competitive-programming | 3b9d278ed8138ab614e2a3d748627db8f4a2cdbd | [
"MIT"
] | null | null | null | hackerrank/c-tutorial-stringstream/main.cpp | Yash-Singh1/competitive-programming | 3b9d278ed8138ab614e2a3d748627db8f4a2cdbd | [
"MIT"
] | null | null | null | #include <sstream>
#include <vector>
#include <iostream>
using namespace std;
vector<int> parseInts(string str)
{
vector<int> ans;
stringstream ss(str);
char drop;
while (!ss.eof())
{
int next;
ss >> next;
ans.push_back(next);
ss >> drop;
}
return ans;
}
int main()
{
string str;
cin ... | 14.212121 | 43 | 0.577825 | Yash-Singh1 |
392bad9968b7b3e5042883a4263c61a0a1caff31 | 2,560 | cpp | C++ | random_walk/apps/node2vec.cpp | shixuansun/ThunderRW | 960bac187d797d5141f61d748e3f3b15c76e8991 | [
"MIT"
] | 20 | 2021-05-05T13:08:29.000Z | 2022-03-30T22:33:12.000Z | random_walk/apps/node2vec.cpp | shixuansun/ThunderRW | 960bac187d797d5141f61d748e3f3b15c76e8991 | [
"MIT"
] | null | null | null | random_walk/apps/node2vec.cpp | shixuansun/ThunderRW | 960bac187d797d5141f61d748e3f3b15c76e8991 | [
"MIT"
] | 2 | 2021-09-03T14:06:04.000Z | 2021-10-02T18:40:53.000Z | //
// Created by Shixuan Sun on 11/5/20.
//
#include "creeper_main.h"
HyperParameter g_para = {ExecutionMode::Dynamic, SamplingMethod::MaxWeightRejectionSampling, 0, {nullptr, 0}};
struct Node2Vec {
int l_;
double p_;
double q_;
double max_;
Graph* g_;
Node2Vec() {}
Node2Vec(int l, doub... | 23.925234 | 110 | 0.555078 | shixuansun |
392d035e4eacfc802fdd0b3c6c98823fa9cb55f5 | 12,537 | cpp | C++ | Common/C++/Helpers/CSR_OpenGLHelper.cpp | Jeanmilost/CompactStar | 1c1a416f3abddbe4690e4dfa537f748c31412256 | [
"MIT"
] | 4 | 2019-12-20T00:29:45.000Z | 2022-03-10T10:09:43.000Z | Common/C++/Helpers/CSR_OpenGLHelper.cpp | Jeanmilost/CompactStar | 1c1a416f3abddbe4690e4dfa537f748c31412256 | [
"MIT"
] | null | null | null | Common/C++/Helpers/CSR_OpenGLHelper.cpp | Jeanmilost/CompactStar | 1c1a416f3abddbe4690e4dfa537f748c31412256 | [
"MIT"
] | 3 | 2020-02-10T15:18:15.000Z | 2022-01-31T06:28:23.000Z | /****************************************************************************
* ==> CSR_OpenGLHelper ----------------------------------------------------*
****************************************************************************
* Description : This module provides an helper class for OpenGL *
* D... | 32.311856 | 132 | 0.534737 | Jeanmilost |
392dc469b9cfbc3279154ee1b903dd9d84afd062 | 1,289 | cc | C++ | common/clock_test.cc | sgorse12/cloud-spanner-emulator | 13ebb6d42867bfbc80224b4a74a896b683ae4555 | [
"Apache-2.0"
] | 179 | 2020-03-30T20:30:49.000Z | 2022-03-31T04:47:55.000Z | common/clock_test.cc | sgorse12/cloud-spanner-emulator | 13ebb6d42867bfbc80224b4a74a896b683ae4555 | [
"Apache-2.0"
] | 53 | 2020-08-31T15:14:30.000Z | 2022-03-30T21:28:36.000Z | common/clock_test.cc | sgorse12/cloud-spanner-emulator | 13ebb6d42867bfbc80224b4a74a896b683ae4555 | [
"Apache-2.0"
] | 26 | 2020-04-02T04:05:58.000Z | 2022-02-22T12:05:55.000Z | //
// Copyright 2020 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | 25.27451 | 75 | 0.72692 | sgorse12 |
392dea0213587683dc1a592a19996a6659ea79a6 | 2,769 | cpp | C++ | modules/task_1/voronin_a_multi_scalar/main.cpp | ImKonstant/pp_2020_autumn_engineer | c8ac69681201b63f5cf8b6c6cd790f48f037532a | [
"BSD-3-Clause"
] | 1 | 2020-10-30T13:49:58.000Z | 2020-10-30T13:49:58.000Z | modules/task_1/voronin_a_multi_scalar/main.cpp | ImKonstant/pp_2020_autumn_engineer | c8ac69681201b63f5cf8b6c6cd790f48f037532a | [
"BSD-3-Clause"
] | 2 | 2020-11-14T18:00:55.000Z | 2020-11-19T16:12:50.000Z | modules/task_1/voronin_a_multi_scalar/main.cpp | ImKonstant/pp_2020_autumn_engineer | c8ac69681201b63f5cf8b6c6cd790f48f037532a | [
"BSD-3-Clause"
] | 1 | 2020-10-14T19:37:21.000Z | 2020-10-14T19:37:21.000Z | // Copyright 2020 Voronin Aleksey
#include <gtest-mpi-listener.hpp>
#include <gtest/gtest.h>
#include <vector>
#include "./multi_scalar.h"
TEST(Parallel_Operations_MPI, Test_Scalar) {
int rank;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
std::vector<int> global_vec, second_global_vec;
const int count_size_ve... | 31.11236 | 93 | 0.724449 | ImKonstant |
393125001c7d34b4273e6fc167d0200adb3f9718 | 250 | cpp | C++ | 000/ISN/test_cpp/test-build/main.cpp | Tehcam/Studies | 69477a211d8c686473b171ad2fa4298ead2ee60d | [
"MIT"
] | null | null | null | 000/ISN/test_cpp/test-build/main.cpp | Tehcam/Studies | 69477a211d8c686473b171ad2fa4298ead2ee60d | [
"MIT"
] | null | null | null | 000/ISN/test_cpp/test-build/main.cpp | Tehcam/Studies | 69477a211d8c686473b171ad2fa4298ead2ee60d | [
"MIT"
] | null | null | null | /**********************************************/
// Sprod-CMachet
// Main
// Description
/**********************************************/
#include <iostream>
int main(){
std::cout << "Hello world !" << std::endl;
return 0;
}
// end // Main | 16.666667 | 48 | 0.348 | Tehcam |
393230aaba37636bb1ebe1f192eff6b8cd71ec0a | 2,122 | cpp | C++ | TLE2000/915c.cpp | Peppa-Peddler/graph-theory | ed022859a1378386d8dba4e7ade6a96a7d683827 | [
"MIT"
] | null | null | null | TLE2000/915c.cpp | Peppa-Peddler/graph-theory | ed022859a1378386d8dba4e7ade6a96a7d683827 | [
"MIT"
] | null | null | null | TLE2000/915c.cpp | Peppa-Peddler/graph-theory | ed022859a1378386d8dba4e7ade6a96a7d683827 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#define LL long long
#define PII pair<int, int>
#define VI vector<int>
#define PB push_back
#define PQ priority_queue
#define MP make_pair
#define F first
#define S second
#define MOD 1000000007
#define N6 1000006
#define N5 100005
#define N4 10004
#define N3 1003
#define PI 3.1415926535897... | 20.018868 | 45 | 0.409991 | Peppa-Peddler |
393676d32f988f298851c967d1aaa256d43ed1ed | 1,002 | cpp | C++ | Video/ScreenCapture/ScreenCapture.cpp | threedeyes/haiku_media_addons | 4efbbbf5d35949748f4e6fc1b79b7f4e854751d6 | [
"MIT"
] | 2 | 2022-01-17T21:24:25.000Z | 2022-01-18T03:30:50.000Z | Video/ScreenCapture/ScreenCapture.cpp | threedeyes/haiku_media_addons | 4efbbbf5d35949748f4e6fc1b79b7f4e854751d6 | [
"MIT"
] | null | null | null | Video/ScreenCapture/ScreenCapture.cpp | threedeyes/haiku_media_addons | 4efbbbf5d35949748f4e6fc1b79b7f4e854751d6 | [
"MIT"
] | null | null | null | /*
* Copyright 2021, Gerasim Troeglazov (3dEyes**), 3dEyes@gmail.com.
* All rights reserved.
* Distributed under the terms of the MIT License.
*/
#include "ScreenCapture.h"
ScreenCapture::ScreenCapture(BScreen *screen)
: BDirectWindow(BRect(-2, -2, -1, -1), "FakeDirectWindow",
B_NO_BORDER_WINDOW_LOOK, B_NORMAL... | 22.266667 | 67 | 0.736527 | threedeyes |
3938480a46fbabc224659c1d76fe309fd9f8e745 | 5,542 | hpp | C++ | src/sip-0x/Transaction.hpp | zanfire/sip-0x | de38b3ff782d2a63b69d7f785e2bd9ce7674abd5 | [
"Apache-2.0"
] | 1 | 2021-06-03T15:56:32.000Z | 2021-06-03T15:56:32.000Z | src/sip-0x/Transaction.hpp | zanfire/sip-0x | de38b3ff782d2a63b69d7f785e2bd9ce7674abd5 | [
"Apache-2.0"
] | 1 | 2015-08-05T05:51:49.000Z | 2015-08-05T05:51:49.000Z | src/sip-0x/Transaction.hpp | zanfire/sip-0x | de38b3ff782d2a63b69d7f785e2bd9ce7674abd5 | [
"Apache-2.0"
] | null | null | null | #if !defined(SIP0X_LOGIC_TRANSACTION_HPP__)
#define SIP0X_LOGIC_TRANSACTION_HPP__
//!
//! Copyright 2014-2015 Matteo Valdina
//!
//! 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
//!
//! ... | 36.946667 | 125 | 0.677373 | zanfire |
39391c73eacfe456824b5c6962b28f8cb6579e66 | 991 | cpp | C++ | liven/viewer.cpp | ivme/animated_algebra | eee6e7198af7236576c3aa7e16a9f229e101aa7f | [
"MIT"
] | null | null | null | liven/viewer.cpp | ivme/animated_algebra | eee6e7198af7236576c3aa7e16a9f229e101aa7f | [
"MIT"
] | null | null | null | liven/viewer.cpp | ivme/animated_algebra | eee6e7198af7236576c3aa7e16a9f229e101aa7f | [
"MIT"
] | null | null | null | #include "viewer.h"
#include "image.h"
#include "animation.h"
#include <iostream>
#include <string> // debug
using namespace liven;
void ascii_viewer::show(const ascii_image &img) {
// debug
// std::cout<< "ascii_viewer::_show(const ascii_image &img)" << std::endl;
// std::cout << "pixel_at(0,0) == " << std::to_st... | 22.522727 | 88 | 0.652876 | ivme |
393c9353a9bc19783550766d42f87c33fc8ad319 | 4,328 | cpp | C++ | qubus/src/performance_models/simple_statistical_performance_model.cpp | qubusproject/Qubus | 0feb8d6df00459c5af402545dbe7c82ee3ec4b7c | [
"BSL-1.0"
] | null | null | null | qubus/src/performance_models/simple_statistical_performance_model.cpp | qubusproject/Qubus | 0feb8d6df00459c5af402545dbe7c82ee3ec4b7c | [
"BSL-1.0"
] | null | null | null | qubus/src/performance_models/simple_statistical_performance_model.cpp | qubusproject/Qubus | 0feb8d6df00459c5af402545dbe7c82ee3ec4b7c | [
"BSL-1.0"
] | null | null | null | #include <hpx/config.hpp>
#include <qubus/performance_models/simple_statistical_performance_model.hpp>
#include <boost/accumulators/accumulators.hpp>
#include <boost/accumulators/statistics/count.hpp>
#include <boost/accumulators/statistics/error_of.hpp>
#include <boost/accumulators/statistics/error_of_mean.hpp>
#inc... | 28.662252 | 104 | 0.69085 | qubusproject |
393c9a196fb8403979bb61d4625ae836c6448eae | 2,466 | cpp | C++ | src/main.cpp | sinamoghimi73/Websocket-C- | a88dfa356813ec4f79563ad5a150a2abef76e6f9 | [
"MIT"
] | null | null | null | src/main.cpp | sinamoghimi73/Websocket-C- | a88dfa356813ec4f79563ad5a150a2abef76e6f9 | [
"MIT"
] | null | null | null | src/main.cpp | sinamoghimi73/Websocket-C- | a88dfa356813ec4f79563ad5a150a2abef76e6f9 | [
"MIT"
] | null | null | null | #include <boost/asio/connect.hpp>
#include <boost/asio/ip/tcp.hpp>
#include <boost/asio/ssl/stream.hpp>
#include <boost/beast/core.hpp>
#include <boost/beast/ssl.hpp>
#include <boost/beast/websocket.hpp>
#include <boost/beast/websocket/ssl.hpp>
#include <chrono>
#include <cstdlib>
#include <functional>
#include <iostre... | 32.88 | 80 | 0.541768 | sinamoghimi73 |
393cff4cac37901b6db221d6b1acd288ff4d814b | 833 | cpp | C++ | src/main.cpp | DanielNikkari/Tower-Defense-C- | 5245afc5ff96d9894c81e3e3fb4761616dceb391 | [
"MIT"
] | null | null | null | src/main.cpp | DanielNikkari/Tower-Defense-C- | 5245afc5ff96d9894c81e3e3fb4761616dceb391 | [
"MIT"
] | null | null | null | src/main.cpp | DanielNikkari/Tower-Defense-C- | 5245afc5ff96d9894c81e3e3fb4761616dceb391 | [
"MIT"
] | null | null | null | // Tower Defense Group 3 main.cpp
/*#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>*/
#include <iostream>
#include <string>
#include <filesystem>
#include "game.hpp"
#include "game.cpp" // Needed for Mac compiler to link
// Window dimentions
//int WINDOW_WIDTH = 1920;
//int WINDOW_HEIGHT = 1080;
int main()
... | 26.03125 | 128 | 0.703481 | DanielNikkari |
3940b21a41953fa74742e3d1b27e66770ae390ef | 340 | cpp | C++ | autovpnui/pch.cpp | teaglu/autovpn | a3b32b7d8c8589e3f578dc45557babea9f348d5a | [
"Apache-2.0"
] | null | null | null | autovpnui/pch.cpp | teaglu/autovpn | a3b32b7d8c8589e3f578dc45557babea9f348d5a | [
"Apache-2.0"
] | null | null | null | autovpnui/pch.cpp | teaglu/autovpn | a3b32b7d8c8589e3f578dc45557babea9f348d5a | [
"Apache-2.0"
] | null | null | null | /******************************************************************************
* This file, along with all other files and components of this project, is *
* subject to the Apache 2.0 license included at the root of the project. *
******************************************************************************/... | 42.5 | 80 | 0.367647 | teaglu |
394804dc8b6399719cca9fed5c4cff28626f1199 | 1,915 | cpp | C++ | Solution/Source/ObjectSystem/MovementComponent.cpp | TeeNik/GameEngine | 9a3893455f20e14f967e5df9b2168fa0f004c101 | [
"MIT"
] | null | null | null | Solution/Source/ObjectSystem/MovementComponent.cpp | TeeNik/GameEngine | 9a3893455f20e14f967e5df9b2168fa0f004c101 | [
"MIT"
] | null | null | null | Solution/Source/ObjectSystem/MovementComponent.cpp | TeeNik/GameEngine | 9a3893455f20e14f967e5df9b2168fa0f004c101 | [
"MIT"
] | null | null | null | #include "ObjectSystem/MovementComponent.hpp"
#include "Math/Math.h"
#include "ObjectSystem/Actor.hpp"
#include "SDL.h"
#include "Engine/Engine.hpp"
#include "Input/InputSystem.hpp"
MovementComponent::MovementComponent(Actor* o) :
Component(o),
angularSpeed(0),
forwardSpeed(0)
{
updateOrder = 10;
o-... | 27.753623 | 80 | 0.691906 | TeeNik |
3949bfa17b5358323f226439a7dcbe679f450c3a | 1,728 | hpp | C++ | modules/display/src/display_stream.hpp | Hairuijy/CNStream | 8f6ea30cf25acc45d042686acbbfb7c476ff32c5 | [
"Apache-2.0"
] | 1 | 2019-11-05T01:13:42.000Z | 2019-11-05T01:13:42.000Z | modules/display/src/display_stream.hpp | Hairuijy/CNStream | 8f6ea30cf25acc45d042686acbbfb7c476ff32c5 | [
"Apache-2.0"
] | null | null | null | modules/display/src/display_stream.hpp | Hairuijy/CNStream | 8f6ea30cf25acc45d042686acbbfb7c476ff32c5 | [
"Apache-2.0"
] | null | null | null | /*************************************************************************
* Copyright (C) [2019] by Cambricon, Inc. 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 a... | 30.315789 | 80 | 0.675926 | Hairuijy |
3949d3cb7b69d414e261447a7b2cbf7a8f33fb95 | 2,869 | cpp | C++ | .LHP/.Lop11/.HSG/.T.Minh/Week 5/BSEQ_S/BSEQ_S/BSEQ_S.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | .LHP/.Lop11/.HSG/.T.Minh/Week 5/BSEQ_S/BSEQ_S/BSEQ_S.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | .LHP/.Lop11/.HSG/.T.Minh/Week 5/BSEQ_S/BSEQ_S/BSEQ_S.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | #define LOCAL 1
//#define BUG
#include <iostream>
#include <iomanip>
#include <sstream>
#include <cstdio>
#include <cstdlib>
#include <cctype>
#include <algorithm>
#include <vector>
#include <stack>
#include <queue>
#include <deque>
#include <map>
#include <set>
#include <list>
#include <bitset>
#include <string>
#incl... | 24.521368 | 97 | 0.560125 | sxweetlollipop2912 |
3949efc7b28f4d4b18241ea99a67fcaf8168a85d | 2,310 | cpp | C++ | Codeforces/1263F/dp_tree.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2018-02-14T01:59:31.000Z | 2018-03-28T03:30:45.000Z | Codeforces/1263F/dp_tree.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | null | null | null | Codeforces/1263F/dp_tree.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2017-12-30T02:46:35.000Z | 2018-03-28T03:30:49.000Z | #include <bits/stdc++.h>
using namespace std;
#define SIZE 2010
class Edge {
public:
int to, next;
};
Edge edges[SIZE << 1];
int head[SIZE], edgesPt;
int conn[SIZE], siz[SIZE], dp[SIZE];
pair<int, int> rng[SIZE];
class Subt {
public:
int edgeNum, leftPt, rightPt;
bool operator < (const Subt & snd) const ... | 25.384615 | 100 | 0.534632 | codgician |
394ff8d1e6beb1261d25f29927946327594b4aee | 13,121 | cpp | C++ | src/main/cpp/kmeans_gen.cpp | ehsantn/data-analytics-benchmarks | db6ecf8c3e1d899a146ced47a8cc3e92b52fca69 | [
"BSD-2-Clause"
] | 1 | 2017-06-19T17:09:06.000Z | 2017-06-19T17:09:06.000Z | src/main/cpp/kmeans_gen.cpp | ehsantn/data-analytics-benchmarks | db6ecf8c3e1d899a146ced47a8cc3e92b52fca69 | [
"BSD-2-Clause"
] | null | null | null | src/main/cpp/kmeans_gen.cpp | ehsantn/data-analytics-benchmarks | db6ecf8c3e1d899a146ced47a8cc3e92b52fca69 | [
"BSD-2-Clause"
] | null | null | null | #include <random>
#include <mpi.h>
#include <stdint.h>
#include <float.h>
#include <limits.h>
#include <complex>
#include <math.h>
#include <stdio.h>
#include <iostream>
#include "/home/etotoni/.julia/v0.5/ParallelAccelerator/src/../deps/include/j2c-array.h"
#include "/home/etotoni/.julia/v0.5/ParallelAccelerator/src/.... | 38.031884 | 203 | 0.733633 | ehsantn |
3950b640ac4a20edbebea25deffc7a566ce0db1e | 1,433 | hpp | C++ | lib/cmrBase/Inc/cmrException.hpp | chiefmate1120/CMRobot_SW | 79eed3e7b1538b95e3a50b9ff300edc9501942f3 | [
"MIT"
] | 1 | 2021-12-15T14:54:14.000Z | 2021-12-15T14:54:14.000Z | lib/cmrBase/Inc/cmrException.hpp | chiefmate1120/CMRobot_SW | 79eed3e7b1538b95e3a50b9ff300edc9501942f3 | [
"MIT"
] | 1 | 2021-12-15T14:55:37.000Z | 2021-12-15T14:55:37.000Z | lib/cmrBase/Inc/cmrException.hpp | chiefmate1120/CMRobot_SW | 79eed3e7b1538b95e3a50b9ff300edc9501942f3 | [
"MIT"
] | 1 | 2021-07-25T12:32:32.000Z | 2021-07-25T12:32:32.000Z | /*
* cmrException.hpp
*
* Description: This file define the exception handler
*
* Author: Feijian.Ni
* Date: 2020.2.20
*
*/
#ifndef CMREXCEPTION_HPP_
#define CMREXCEPTION_HPP_
#include "baseStdLibs.hpp"
#include <assert.h>
namespace cmr {
//! error type define
enum cmrErrorType {
CMR_SUCCESS = 0,
CMR_FI... | 20.768116 | 78 | 0.700628 | chiefmate1120 |
39572ac1da76823a1f520845c45fd05d87a79fef | 24,585 | hpp | C++ | Source/AllProjects/Drivers/ZWave/ZWaveUSB3/Server/ZWaveUSB3S_ZStick.hpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 51 | 2020-12-26T18:17:16.000Z | 2022-03-15T04:29:35.000Z | Source/AllProjects/Drivers/ZWave/ZWaveUSB3/Server/ZWaveUSB3S_ZStick.hpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | null | null | null | Source/AllProjects/Drivers/ZWave/ZWaveUSB3/Server/ZWaveUSB3S_ZStick.hpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 4 | 2020-12-28T07:24:39.000Z | 2021-12-29T12:09:37.000Z | //
// FILE NAME: ZWaveUSB3S_ZStick.hpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 07/24/2017
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2020
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://opens... | 43.667851 | 92 | 0.57954 | MarkStega |
3957b27a6e8d37f1fb949a8736ca72ddbbf21051 | 1,047 | cpp | C++ | path_follower/src/utils/obstacle_cloud.cpp | sunarditay/gerona | 7ca6bb169571d498c4a2d627faddc8cbe590d2c9 | [
"BSD-3-Clause"
] | 296 | 2017-06-19T07:06:58.000Z | 2022-03-09T01:27:44.000Z | path_follower/src/utils/obstacle_cloud.cpp | sunarditay/gerona | 7ca6bb169571d498c4a2d627faddc8cbe590d2c9 | [
"BSD-3-Clause"
] | 29 | 2017-11-07T08:49:12.000Z | 2021-09-21T22:18:28.000Z | path_follower/src/utils/obstacle_cloud.cpp | sunarditay/gerona | 7ca6bb169571d498c4a2d627faddc8cbe590d2c9 | [
"BSD-3-Clause"
] | 117 | 2017-05-30T10:50:36.000Z | 2022-03-09T01:27:23.000Z | /// HEADER
#include <path_follower/utils/obstacle_cloud.h>
#include <pcl_ros/point_cloud.h>
#include <tf/tf.h>
ObstacleCloud::ObstacleCloud()
: cloud(new Cloud)
{}
ObstacleCloud::ObstacleCloud(const Cloud::Ptr& c)
: cloud(c)
{
}
ObstacleCloud::ObstacleCloud(const Cloud::ConstPtr& c)
: cloud(new Cloud(*c)... | 19.388889 | 99 | 0.65616 | sunarditay |
395821ee837c83876e394367c5069507c628c5c0 | 269 | cpp | C++ | Game/Game/Source/AI/Bot.cpp | jhlee94/Space_Farm-Power_of_Paint | 42c1d57c18b48b6a737b7ae463387f41c66eb3d3 | [
"MIT"
] | null | null | null | Game/Game/Source/AI/Bot.cpp | jhlee94/Space_Farm-Power_of_Paint | 42c1d57c18b48b6a737b7ae463387f41c66eb3d3 | [
"MIT"
] | null | null | null | Game/Game/Source/AI/Bot.cpp | jhlee94/Space_Farm-Power_of_Paint | 42c1d57c18b48b6a737b7ae463387f41c66eb3d3 | [
"MIT"
] | null | null | null | #pragma once
#include <Phyre.h>
#include <Navigation\PhyreNavigation.h>
#include "Bot.h"
//
// Bot implementation
//
// Description:
// The constructor for the Bot class.
Bot::Bot()
: m_navigationComponent(NULL)
, m_navigationTarget(NULL)
, m_worldMatrix(NULL)
{
} | 15.823529 | 39 | 0.717472 | jhlee94 |
395872c03155dd5a33aaaffec450ce2f5d97c2f6 | 198 | hpp | C++ | dep/jsonpath/gramma.hpp | costan225/jsonpath | 42d1d4099db1f3e8ceb3347c6df788ed6395ce47 | [
"MIT"
] | 2 | 2019-04-10T15:33:35.000Z | 2022-01-07T19:52:31.000Z | dep/jsonpath/gramma.hpp | costan225/jsonpath | 42d1d4099db1f3e8ceb3347c6df788ed6395ce47 | [
"MIT"
] | null | null | null | dep/jsonpath/gramma.hpp | costan225/jsonpath | 42d1d4099db1f3e8ceb3347c6df788ed6395ce47 | [
"MIT"
] | 2 | 2021-10-20T07:20:04.000Z | 2022-01-03T19:10:08.000Z | #ifndef __JSONPATH_GRAMMA_HPP__
#define __JSONPATH_GRAMMA_HPP__
#include "jsonpath_ast.hpp"
namespace costan {
bool compile(std::string src, ast::expression& exp, std::string& err);
}
#endif | 19.8 | 74 | 0.762626 | costan225 |
395ce4f22b062090265edac184bcd7bc9a21cf26 | 805 | cpp | C++ | src/Arc.cpp | CarstenHoyer/ofxCubicBezierToBiarc | d086430a99582d05e22445bad7f5d17508ae5bd8 | [
"MIT"
] | 2 | 2019-02-01T17:17:40.000Z | 2019-02-04T13:13:32.000Z | src/Arc.cpp | CarstenHoyer/ofxCubicBezierToBiarc | d086430a99582d05e22445bad7f5d17508ae5bd8 | [
"MIT"
] | null | null | null | src/Arc.cpp | CarstenHoyer/ofxCubicBezierToBiarc | d086430a99582d05e22445bad7f5d17508ae5bd8 | [
"MIT"
] | 1 | 2019-07-17T19:29:42.000Z | 2019-07-17T19:29:42.000Z | //
// Arc.cpp
// ofxCubicBezierToBiarc
//
// Created by Carsten Høyer on 31/01/2019.
//
#include "Arc.h"
#include <cmath>
Arc::Arc()
{
}
Arc::Arc(ofPoint _C, float _r, float _startAngle, float _sweepAngle, ofPoint _P1, ofPoint _P2, bool _cw)
{
C = _C;
r = _r;
startAngle = _startAngle;
sweepAn... | 16.428571 | 104 | 0.586335 | CarstenHoyer |
39634fe1d90ae2070324105e56da9d795402325b | 951 | hh | C++ | src/Titon/Io/Reader/XmlReader.hh | ciklon-z/framework | cbf44729173d3a83b91a2b0a217c6b3827512e44 | [
"BSD-2-Clause"
] | 206 | 2015-01-02T20:01:12.000Z | 2021-04-15T09:49:56.000Z | src/Titon/Io/Reader/XmlReader.hh | ciklon-z/framework | cbf44729173d3a83b91a2b0a217c6b3827512e44 | [
"BSD-2-Clause"
] | 44 | 2015-01-02T06:03:43.000Z | 2017-11-20T18:29:06.000Z | src/Titon/Io/Reader/XmlReader.hh | titon/framework | cbf44729173d3a83b91a2b0a217c6b3827512e44 | [
"BSD-2-Clause"
] | 27 | 2015-01-03T05:51:29.000Z | 2022-02-21T13:50:40.000Z | <?hh // strict
/**
* @copyright 2010-2015, The Titon Project
* @license http://opensource.org/licenses/bsd-license.php
* @link http://titon.io
*/
namespace Titon\Io\Reader;
use Titon\Io\ResourceMap;
use Titon\Io\Exception\ReadErrorException;
use Titon\Type\Xml;
/**
* A reader that loads its configu... | 22.116279 | 96 | 0.622503 | ciklon-z |
396c233dc9af373efdf76adadc24bbdb690300bf | 481 | cpp | C++ | test/filter/main.cpp | drugilsberg/functional-cpp | fd0b50a7ea4520fe50e92deb1aeff2495ba981e3 | [
"MIT"
] | 2 | 2019-02-06T13:05:59.000Z | 2019-02-22T10:16:32.000Z | test/filter/main.cpp | drugilsberg/functional-cpp | fd0b50a7ea4520fe50e92deb1aeff2495ba981e3 | [
"MIT"
] | null | null | null | test/filter/main.cpp | drugilsberg/functional-cpp | fd0b50a7ea4520fe50e92deb1aeff2495ba981e3 | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
#include<math.h>
#include "Functional.hpp"
#include<cassert>
using namespace std;
int main(){
vector<double> test={1.0, 1.2, 2.0, 2.3, 3.0};
function< bool(double) > func= [] (const double & element){return element<2.0;};
vector<double> expectedFilter={ 1.0, 1.2};
cout <<... | 20.913043 | 82 | 0.648649 | drugilsberg |
396ccc4c2842e1db684b3bd036eaafdb3621e842 | 1,799 | hpp | C++ | Palette.hpp | Cirras/eomap-classic | 7ba4f5208ce49aeacb17bc4ad016b278388485b8 | [
"Zlib"
] | 2 | 2020-11-02T08:23:11.000Z | 2020-11-03T18:14:51.000Z | Palette.hpp | Cirras/eomap-classic | 7ba4f5208ce49aeacb17bc4ad016b278388485b8 | [
"Zlib"
] | 4 | 2020-12-09T14:34:56.000Z | 2020-12-14T11:29:59.000Z | Palette.hpp | Cirras/eomap-classic | 7ba4f5208ce49aeacb17bc4ad016b278388485b8 | [
"Zlib"
] | 2 | 2020-12-09T12:40:10.000Z | 2020-12-14T20:52:10.000Z | #ifndef PALETTE_INCLUDED
#define PALETTE_INCLUDED
#include "common.hpp"
#include "GFX_Loader.hpp"
extern int shared_yoffs[7];
const bool floor_tiles[25] = { 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
extern const int num_tiles_spec;
extern const char *tiles_spec[1][48];
cl... | 17.298077 | 116 | 0.601445 | Cirras |
3972826602288b422d55773cf8135a91436fef10 | 1,860 | cpp | C++ | Volume_101(10100-10199)/10106.cpp | jay16213/UVA-practice | 0f4bfcf47861386f422405612fc01bc00944ca94 | [
"MIT"
] | null | null | null | Volume_101(10100-10199)/10106.cpp | jay16213/UVA-practice | 0f4bfcf47861386f422405612fc01bc00944ca94 | [
"MIT"
] | null | null | null | Volume_101(10100-10199)/10106.cpp | jay16213/UVA-practice | 0f4bfcf47861386f422405612fc01bc00944ca94 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
string in1, in2;
while(cin >> in1 >> in2)
{
//any number multiply 0 = 0
if(in1 == "0" || in2 == "0")
{
printf("0\n");
continue;
}
vector<int> x, y, ans;//ans = x * y
for(int i... | 27.352941 | 89 | 0.382258 | jay16213 |
3979828f59376c5ad77556e93a34a7a01f72a969 | 944 | cpp | C++ | 201912/3(30分).cpp | YiqinXiong/CSP_Practice | b5840117175f0370d4c1fbcc3c6ffd1fd337a04c | [
"MIT"
] | null | null | null | 201912/3(30分).cpp | YiqinXiong/CSP_Practice | b5840117175f0370d4c1fbcc3c6ffd1fd337a04c | [
"MIT"
] | null | null | null | 201912/3(30分).cpp | YiqinXiong/CSP_Practice | b5840117175f0370d4c1fbcc3c6ffd1fd337a04c | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <math.h>
#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <string.h>
using namespace std;
const int N = 105;
int n;
vector<string> equs;
bool solve(string s)
{
int equ_pos = s.find('=');
string left = s.substr(0, equ_pos);
string right = s.s... | 17.811321 | 67 | 0.471398 | YiqinXiong |
30290c7a16989177749b05ae6b0b902b8f514a95 | 12,880 | cc | C++ | tensorflow/tools/graph_transforms/fold_constants_lib.cc | tycho/tensorflow | 27767d8e9c1325979cf32ff5b81c10df9006fd57 | [
"Apache-2.0"
] | 2 | 2020-02-18T04:08:18.000Z | 2020-05-20T07:14:44.000Z | tensorflow/tools/graph_transforms/fold_constants_lib.cc | tycho/tensorflow | 27767d8e9c1325979cf32ff5b81c10df9006fd57 | [
"Apache-2.0"
] | 1 | 2018-10-26T20:01:34.000Z | 2018-10-26T20:01:34.000Z | tensorflow/tools/graph_transforms/fold_constants_lib.cc | tycho/tensorflow | 27767d8e9c1325979cf32ff5b81c10df9006fd57 | [
"Apache-2.0"
] | 3 | 2018-10-26T19:30:26.000Z | 2021-03-19T19:30:40.000Z | /* Copyright 2016 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | 39.630769 | 80 | 0.659938 | tycho |
30291f72bfce3e0ae14d999fa7127ed0b9385138 | 1,902 | cpp | C++ | leetcode_0001_0050/leetcode_0018_4sum.cpp | AlfengYuan/leetcode-cplusplus-offline | 602c3d531d984c6961d9eec2b051527e721b2123 | [
"MIT"
] | null | null | null | leetcode_0001_0050/leetcode_0018_4sum.cpp | AlfengYuan/leetcode-cplusplus-offline | 602c3d531d984c6961d9eec2b051527e721b2123 | [
"MIT"
] | null | null | null | leetcode_0001_0050/leetcode_0018_4sum.cpp | AlfengYuan/leetcode-cplusplus-offline | 602c3d531d984c6961d9eec2b051527e721b2123 | [
"MIT"
] | null | null | null | #include <iostream>
#include <set>
#include <vector>
#include <cstdlib>
#include <algorithm>
using namespace std;
class Solution {
public:
vector<vector<int>> fourSum(vector<int>& nums, int target) {
vector<vector<int>> Vres;
if(nums.size() < 4) return Vres;
set<vector<int>> res;
ve... | 26.788732 | 96 | 0.382229 | AlfengYuan |
3029dc1265efe9e11d9f0ed7f661ebf367e8d953 | 1,113 | cpp | C++ | _site/Competitive Programming/Codeforces/1136C.cpp | anujkyadav07/anuj-k-yadav.github.io | ac5cccc8cdada000ba559538cd84921437b3c5e6 | [
"MIT"
] | 1 | 2019-06-10T04:39:49.000Z | 2019-06-10T04:39:49.000Z | _site/Competitive Programming/Codeforces/1136C.cpp | anujkyadav07/anuj-k-yadav.github.io | ac5cccc8cdada000ba559538cd84921437b3c5e6 | [
"MIT"
] | 2 | 2021-09-27T23:34:07.000Z | 2022-02-26T05:54:27.000Z | _site/Competitive Programming/Codeforces/1136C.cpp | anujkyadav07/anuj-k-yadav.github.io | ac5cccc8cdada000ba559538cd84921437b3c5e6 | [
"MIT"
] | 3 | 2019-06-23T14:15:08.000Z | 2019-07-09T20:40:58.000Z | #include "bits/stdc++.h"
#ifdef PRINTERS
#include "printers.hpp"
using namespace printers;
#define tr(a) cerr<<#a<<" : "<<a<<endl
#else
#define tr(a)
#endif
#define ll long long
#define pb push_back
#define mp make_pair
#define pii pair<int,int>
#define vi vector<... | 18.55 | 44 | 0.487871 | anujkyadav07 |
302a101be5b8e36ad4b5a331a2be3f2f2e8b4123 | 2,020 | cpp | C++ | src/Parser/fq.cpp | frankandreace/GenoLight | 6aa3c4087b02dae8c4f5bec84617f49f08913025 | [
"MIT"
] | null | null | null | src/Parser/fq.cpp | frankandreace/GenoLight | 6aa3c4087b02dae8c4f5bec84617f49f08913025 | [
"MIT"
] | null | null | null | src/Parser/fq.cpp | frankandreace/GenoLight | 6aa3c4087b02dae8c4f5bec84617f49f08913025 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include "fq.hpp"
#include <limits>
#include <vector>
#include <fstream>
//costruttore
//https://stackoverflow.com/questions/50417435/why-cannot-i-initialize-a-ifstream-ref-from-constructor
fq::fq(const std::string &_path_fastq) :
fastq(_path_fastq)
{
if (_path_fastq != " ")
pa... | 23.488372 | 102 | 0.668812 | frankandreace |
302a2269f578a9e2dc5dffe2a2731e120938a33b | 304 | cpp | C++ | ControlClass.cpp | mls-m5/NoMaintenance | c54c702b658c6a3abe36ff2d175b5c923d4ca55f | [
"Apache-2.0"
] | null | null | null | ControlClass.cpp | mls-m5/NoMaintenance | c54c702b658c6a3abe36ff2d175b5c923d4ca55f | [
"Apache-2.0"
] | null | null | null | ControlClass.cpp | mls-m5/NoMaintenance | c54c702b658c6a3abe36ff2d175b5c923d4ca55f | [
"Apache-2.0"
] | null | null | null | /*
* ControlClass.cpp
*
* Created on: 29 jan 2013
* Author: mattias
*/
#include "ControlClass.h"
namespace Solid {
ControlClass::ControlClass() {
// TODO Auto-generated constructor stub
}
ControlClass::~ControlClass() {
// TODO Auto-generated destructor stub
}
} /* namespace Solid */
| 13.818182 | 40 | 0.674342 | mls-m5 |
3032674a0b03335f2365c8b382462dc5b0ab2806 | 3,097 | cpp | C++ | common/collectiontest1.cpp | mintomic/samples | c4acfa03ea98bcfe9ff67d97705e7486a92df45b | [
"BSD-3-Clause"
] | 56 | 2015-01-01T23:01:00.000Z | 2021-12-27T16:40:39.000Z | common/collectiontest1.cpp | mintomic/samples | c4acfa03ea98bcfe9ff67d97705e7486a92df45b | [
"BSD-3-Clause"
] | null | null | null | common/collectiontest1.cpp | mintomic/samples | c4acfa03ea98bcfe9ff67d97705e7486a92df45b | [
"BSD-3-Clause"
] | 14 | 2015-02-13T13:38:50.000Z | 2019-05-31T02:47:32.000Z | #include "collectiontest1.h"
#include "experiment.h"
#include <mintomic/mintomic.h>
#include <mintsystem/timer.h>
#include <mintpack/lwlogger.h>
#include <mintpack/threadsynchronizer.h>
#include <mintpack/random.h>
#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
//------------------------------------------... | 31.927835 | 125 | 0.560542 | mintomic |
303ad55a12c1a479d51c7ea6bcf054077f9f373b | 221 | cpp | C++ | src/main.cpp | LowSpecCorgi/Masochist-Discord | e67ed26d5085c06f919c7097459db6aaf309c2a3 | [
"MIT"
] | 4 | 2021-06-13T18:35:15.000Z | 2021-07-13T17:57:52.000Z | src/main.cpp | LowSpecCorgi/Masochist-Discord | e67ed26d5085c06f919c7097459db6aaf309c2a3 | [
"MIT"
] | null | null | null | src/main.cpp | LowSpecCorgi/Masochist-Discord | e67ed26d5085c06f919c7097459db6aaf309c2a3 | [
"MIT"
] | null | null | null | #include "client.hpp"
#include <fstream>
int main()
{
std::fstream file;
file.open("../.env", std::ios::in);
std::string token;
file >> token;
Client client(token);
client.run();
return 0;
} | 14.733333 | 39 | 0.570136 | LowSpecCorgi |
303cfbb94c8872723e7549f550d4e03addfbb268 | 3,506 | hpp | C++ | modules/logic/src/Logic/Itk/ImageToImageFilter/BinaryFunctorImageFilter/gmLogicItkLabelOverlayImageFilter.hpp | GraphMIC/GraphMIC | 8fc2aeb0143ee1292c6757f010fc9e8c68823e2b | [
"BSD-3-Clause"
] | 43 | 2016-04-11T11:34:05.000Z | 2022-03-31T03:37:57.000Z | modules/logic/src/Logic/Itk/ImageToImageFilter/BinaryFunctorImageFilter/gmLogicItkLabelOverlayImageFilter.hpp | kevinlq/GraphMIC | 8fc2aeb0143ee1292c6757f010fc9e8c68823e2b | [
"BSD-3-Clause"
] | 1 | 2016-05-17T12:58:16.000Z | 2016-05-17T12:58:16.000Z | modules/logic/src/Logic/Itk/ImageToImageFilter/BinaryFunctorImageFilter/gmLogicItkLabelOverlayImageFilter.hpp | kevinlq/GraphMIC | 8fc2aeb0143ee1292c6757f010fc9e8c68823e2b | [
"BSD-3-Clause"
] | 14 | 2016-05-13T20:23:16.000Z | 2021-12-20T10:33:19.000Z | #pragma once
#include "gmLogicItkBinaryFunctorImageFilter.hpp"
#include "gmLogicItkUtil.hpp"
#include <itkLabelOverlayImageFilter.h>
namespace gm
{
namespace Logic
{
namespace Itk
{
class LabelOverlayImageFilter : public BinaryFunctorImageFilter
{
public:
... | 43.825 | 125 | 0.491728 | GraphMIC |
304408d0512e9fdf5d26e0038615746b9e1e8668 | 5,313 | cpp | C++ | libEPLViz/src/baseModelView/TreeModelBase.cpp | epl-viz/EPL-Viz | 80d790110113f83da6845ce124997d13bfd45270 | [
"BSD-3-Clause"
] | 3 | 2017-01-23T13:29:21.000Z | 2021-03-08T17:40:42.000Z | libEPLViz/src/baseModelView/TreeModelBase.cpp | epl-viz/EPL-Viz | 80d790110113f83da6845ce124997d13bfd45270 | [
"BSD-3-Clause"
] | 4 | 2017-03-26T12:56:08.000Z | 2017-08-18T20:32:37.000Z | libEPLViz/src/baseModelView/TreeModelBase.cpp | epl-viz/EPL-Viz | 80d790110113f83da6845ce124997d13bfd45270 | [
"BSD-3-Clause"
] | null | null | null | /* Copyright (c) 2017, EPL-Vizards
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditi... | 27.386598 | 112 | 0.700546 | epl-viz |
304477779a928212c3fdb05b9b01e8ade699a97d | 825 | cpp | C++ | src/lib/VSegEngine.cpp | ca1773130n/SLIC-DBSCAN-CUDA | c9b543a80377e33e71771dbaaf002d5345fc9a7d | [
"MIT"
] | 21 | 2018-10-24T10:07:46.000Z | 2021-11-30T12:39:30.000Z | src/lib/VSegEngine.cpp | ca1773130n/SLIC-DBSCAN-CUDA | c9b543a80377e33e71771dbaaf002d5345fc9a7d | [
"MIT"
] | 3 | 2019-12-14T15:42:08.000Z | 2020-03-18T02:08:53.000Z | src/lib/VSegEngine.cpp | ca1773130n/SLIC-DBSCAN-CUDA | c9b543a80377e33e71771dbaaf002d5345fc9a7d | [
"MIT"
] | 6 | 2019-05-23T02:57:41.000Z | 2021-06-08T10:49:53.000Z | #include <sdbscan/VSegEngine.h>
namespace sdbscan {
VSegEngine::VSegEngine(const VSettings& inSettings) {
mSettings = inSettings;
}
VSegEngine::~VSegEngine() {
if (mSourceImg != NULL) delete mSourceImg;
if (mConvertedImg != NULL) delete mConvertedImg;
if (mIndexImg != NULL) delete mIndexImg;
if (mSpixelM... | 25.78125 | 77 | 0.73697 | ca1773130n |
304f948b9db0ca524caef8138541e9d590a452e4 | 4,567 | cc | C++ | nvm/nvm_leaf_index.cc | yunxiao3/nvmsilkstore | 41d12f6e50b71de5a951019f5d51240540c3de36 | [
"BSD-3-Clause"
] | null | null | null | nvm/nvm_leaf_index.cc | yunxiao3/nvmsilkstore | 41d12f6e50b71de5a951019f5d51240540c3de36 | [
"BSD-3-Clause"
] | null | null | null | nvm/nvm_leaf_index.cc | yunxiao3/nvmsilkstore | 41d12f6e50b71de5a951019f5d51240540c3de36 | [
"BSD-3-Clause"
] | null | null | null | #include <stdexcept>
#include "nvm_leaf_index.h"
#include "util/coding.h"
namespace leveldb {
namespace silkstore {
class NVMLeafIndexIterator: public Iterator {
public:
explicit NVMLeafIndexIterator(std::shared_ptr<kvdk::Iterator> iter){
iter_ = iter;
}
virtual bool Valid() const {
return iter_->Valid(); ... | 27.184524 | 85 | 0.6582 | yunxiao3 |
305bc44dd32d4b52bd38ffb24612c797595216a6 | 1,179 | cpp | C++ | FangameReader/ColorFadeAnimator.cpp | TheBiob/DeadSplit | 2e29bae2b86fa689ed9c28d345f2e8743b10c115 | [
"MIT"
] | 3 | 2019-04-02T19:23:35.000Z | 2021-04-30T03:57:15.000Z | FangameReader/ColorFadeAnimator.cpp | TheBiob/DeadSplit | 2e29bae2b86fa689ed9c28d345f2e8743b10c115 | [
"MIT"
] | 1 | 2018-07-10T22:34:41.000Z | 2018-07-10T22:52:43.000Z | FangameReader/ColorFadeAnimator.cpp | TheBiob/DeadSplit | 2e29bae2b86fa689ed9c28d345f2e8743b10c115 | [
"MIT"
] | 3 | 2020-12-28T19:06:07.000Z | 2021-01-30T10:09:56.000Z | #include <common.h>
#pragma hdrstop
#include <ColorFadeAnimator.h>
namespace Fangame {
CQuadInEasingFunction CColorFadeAnimator::inEasing;
CQuadOutEasingFunction CColorFadeAnimator::outEasing;
//////////////////////////////////////////////////////////////////////////
CColorFadeAnimator::CColorFadeAnimator( int _tar... | 26.795455 | 128 | 0.651399 | TheBiob |
305d3a5a58f1422834594501437a0a1f031ef78d | 6,884 | c++ | C++ | thirdparty/glut/progs/inventor/glutduck.c++ | ShiroixD/pag_zad_2 | cdb6ccf48402cf4dbf1284827a4e281d3b12a64b | [
"MIT"
] | 1 | 2019-01-11T13:55:53.000Z | 2019-01-11T13:55:53.000Z | thirdparty/glut/progs/inventor/glutduck.c++ | ShiroixD/pag_zad_2 | cdb6ccf48402cf4dbf1284827a4e281d3b12a64b | [
"MIT"
] | 1 | 2018-08-10T19:11:58.000Z | 2018-08-10T19:12:17.000Z | thirdparty/glut/progs/inventor/glutduck.c++ | ShiroixD/pag_zad_2 | cdb6ccf48402cf4dbf1284827a4e281d3b12a64b | [
"MIT"
] | null | null | null |
/* Copyright (c) Mark J. Kilgard, 1994. */
/* This program is freely distributable without licensing fees
and is provided without guarantee or warrantee expressed or
implied. This program is -not- in the public domain. */
/*
* Copyright (c) 1991-94 Silicon Graphics, Inc.
*
* Permission to use, copy, modif... | 23.656357 | 79 | 0.684631 | ShiroixD |
3068223a022e6743babbd188fb5a676f6730e957 | 447 | hpp | C++ | tools/material_munge/src/describe_material.hpp | SleepKiller/shaderpatch | 4bda848df0273993c96f1d20a2cf79161088a77d | [
"MIT"
] | 13 | 2019-03-25T09:40:12.000Z | 2022-03-13T16:12:39.000Z | tools/material_munge/src/describe_material.hpp | SleepKiller/shaderpatch | 4bda848df0273993c96f1d20a2cf79161088a77d | [
"MIT"
] | 110 | 2018-10-16T09:05:43.000Z | 2022-03-16T23:32:28.000Z | tools/material_munge/src/describe_material.hpp | SleepKiller/swbfii-shaderpatch | b49ce3349d4dd09b19237ff4766652166ba1ffd4 | [
"MIT"
] | 1 | 2020-02-06T20:32:50.000Z | 2020-02-06T20:32:50.000Z | #pragma once
#include "material_options.hpp"
#include "patch_material_io.hpp"
#pragma warning(push)
#pragma warning(disable : 4996)
#pragma warning(disable : 4127)
#include <yaml-cpp/yaml.h>
#pragma warning(pop)
namespace sp {
auto describe_material(const std::string_view name,
const YAML::N... | 23.526316 | 81 | 0.693512 | SleepKiller |
30689d076d4f026e3c067e58ebff2f48865527c2 | 5,327 | hpp | C++ | src/competitiveProgramming/headers/competitive/programming/graph/Graph.hpp | dareagle/competitive-programming | 4f92a09592b8e0cb4cbcc530681721a728902908 | [
"Apache-2.0"
] | 160 | 2016-05-27T14:26:38.000Z | 2022-03-06T19:30:00.000Z | src/competitiveProgramming/headers/competitive/programming/graph/Graph.hpp | dareagle/competitive-programming | 4f92a09592b8e0cb4cbcc530681721a728902908 | [
"Apache-2.0"
] | 7 | 2016-06-26T16:01:43.000Z | 2019-06-15T21:00:10.000Z | src/competitiveProgramming/headers/competitive/programming/graph/Graph.hpp | dareagle/competitive-programming | 4f92a09592b8e0cb4cbcc530681721a728902908 | [
"Apache-2.0"
] | 40 | 2016-06-28T11:06:13.000Z | 2021-12-01T14:48:28.000Z | #ifndef _GRAPH_GRAPH_INCLUDED
#define _GRAPH_GRAPH_INCLUDED
/**
* @author Manwe
*
* class that models a graph and allows to scan it in order to produce
* various results (just using <a
* href="https://en.wikipedia.org/wiki/Breadth-first_search">BFS</a> for
* now) Graph can be directed o... | 36.737931 | 203 | 0.697203 | dareagle |
3070e179768c73cd626c3f651e0cbd649b275d5c | 2,040 | cpp | C++ | src/midi-chrono/DigitPanel.cpp | nkshigeru/crossmidi | 5f4bf348853cd9362d7dbd02349289ab49e6ac08 | [
"MIT"
] | null | null | null | src/midi-chrono/DigitPanel.cpp | nkshigeru/crossmidi | 5f4bf348853cd9362d7dbd02349289ab49e6ac08 | [
"MIT"
] | null | null | null | src/midi-chrono/DigitPanel.cpp | nkshigeru/crossmidi | 5f4bf348853cd9362d7dbd02349289ab49e6ac08 | [
"MIT"
] | null | null | null | #include "DigitPanel.h"
wxBEGIN_EVENT_TABLE(DigitPanel, wxWindow)
EVT_PAINT(DigitPanel::OnPaint)
EVT_SET_FOCUS(DigitPanel::OnSetFocus)
EVT_KILL_FOCUS(DigitPanel::OnKillFocus)
EVT_CHAR(DigitPanel::OnChar)
wxEND_EVENT_TABLE()
static const wxColour BackgroundColor(60, 60, 60);
static const wxColour ForegroundColor(2... | 16.721311 | 114 | 0.677941 | nkshigeru |
3071701e8abe277941855f000c4ee0a042d16a52 | 221 | cpp | C++ | components/compiler/nullerrorhandler.cpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | components/compiler/nullerrorhandler.cpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | components/compiler/nullerrorhandler.cpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null |
#include "nullerrorhandler.hpp"
void Compiler::NullErrorHandler::report (const std::string& message, const TokenLoc& loc, Type type) {}
void Compiler::NullErrorHandler::report (const std::string& message, Type type) {} | 36.833333 | 103 | 0.760181 | Bodillium |
307337815be30d94d1f20881c1ce7c5d136d7d0a | 3,666 | cpp | C++ | Soomla/gates/CCWorldCompletionGate.cpp | markpetersen01/Cocos2D-game | 93e12850f3ecdfbda9c1ce60792b8e7b1c2bd4b8 | [
"Apache-2.0"
] | 14 | 2015-01-29T10:39:08.000Z | 2019-05-09T09:30:58.000Z | Soomla/gates/CCWorldCompletionGate.cpp | markpetersen01/Cocos2D-game | 93e12850f3ecdfbda9c1ce60792b8e7b1c2bd4b8 | [
"Apache-2.0"
] | 10 | 2015-02-09T07:48:33.000Z | 2017-03-17T10:24:20.000Z | Soomla/gates/CCWorldCompletionGate.cpp | markpetersen01/Cocos2D-game | 93e12850f3ecdfbda9c1ce60792b8e7b1c2bd4b8 | [
"Apache-2.0"
] | 13 | 2015-02-09T01:28:08.000Z | 2019-09-05T07:31:12.000Z | /*
Copyright (C) 2012-2014 Soomla Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, s... | 31.603448 | 161 | 0.651937 | markpetersen01 |
3075ae8bd122c717b012469c3986946244fe2b93 | 61 | cpp | C++ | src/core/Zobrist.cpp | AlexKent3141/OnePunchGo | a86caaf421c8122222f72316171702617c519d28 | [
"MIT"
] | 3 | 2018-05-14T12:32:19.000Z | 2021-04-20T23:11:56.000Z | src/core/Zobrist.cpp | AlexKent3141/OnePunchGo | a86caaf421c8122222f72316171702617c519d28 | [
"MIT"
] | 1 | 2018-03-30T18:44:49.000Z | 2018-03-31T15:57:49.000Z | src/core/Zobrist.cpp | AlexKent3141/OnePunchGo | a86caaf421c8122222f72316171702617c519d28 | [
"MIT"
] | null | null | null | #include "Zobrist.h"
Zobrist* Zobrist::_instance = nullptr;
| 15.25 | 38 | 0.737705 | AlexKent3141 |
30809a69e3f1c678ef802e3c0447131ca0a736bd | 11,634 | hpp | C++ | agency/future/always_ready_future.hpp | nerikhman/agency | 966ac59101f2fc3561a86b11874fbe8de361d0e4 | [
"BSD-3-Clause"
] | 129 | 2016-08-18T23:24:15.000Z | 2022-03-25T12:06:05.000Z | agency/future/always_ready_future.hpp | nerikhman/agency | 966ac59101f2fc3561a86b11874fbe8de361d0e4 | [
"BSD-3-Clause"
] | 86 | 2016-08-19T03:43:33.000Z | 2020-07-20T14:27:41.000Z | agency/future/always_ready_future.hpp | nerikhman/agency | 966ac59101f2fc3561a86b11874fbe8de361d0e4 | [
"BSD-3-Clause"
] | 23 | 2016-08-18T23:52:13.000Z | 2022-02-28T16:28:20.000Z | #pragma once
#include <agency/detail/config.hpp>
#include <agency/detail/requires.hpp>
#include <agency/detail/type_traits.hpp>
#include <agency/detail/utility.hpp>
#include <agency/experimental/variant.hpp>
#include <agency/experimental/optional.hpp>
#include <agency/future/future_traits/is_future.hpp>
#include <agen... | 25.625551 | 107 | 0.690562 | nerikhman |
3081591279821cde49ee9c31d28dea4cdeab86c1 | 4,992 | cpp | C++ | test_task_leisure_time.cpp | yecharlie/tk | 8157a393c1d9840793eb41098cb6e03cba6e4f54 | [
"MIT"
] | null | null | null | test_task_leisure_time.cpp | yecharlie/tk | 8157a393c1d9840793eb41098cb6e03cba6e4f54 | [
"MIT"
] | null | null | null | test_task_leisure_time.cpp | yecharlie/tk | 8157a393c1d9840793eb41098cb6e03cba6e4f54 | [
"MIT"
] | null | null | null | #include "tk.h"
#include <cstdlib> // rand()
#include <vector>
#include <sstream>
#include <fstream>
class customer;
class producer;
const int MIN_REQ_SEEDS = 300;
struct seeds : public tk::object
{
int count;
int pending() {return count == 0;}
void put(int n) {if ((count += n) == n) alert();}
int take() {
... | 21.333333 | 116 | 0.614383 | yecharlie |
30826b8fcc7ba9d7bbcad99539507ba66d8832f8 | 2,575 | cpp | C++ | src/ngfx/drawOps/DrawColorOp.cpp | kamranrad1993/ngfx | eeef60e3419a88371a97e8bc3109d2b35b82cc89 | [
"Apache-2.0",
"MIT-0",
"MIT"
] | 12 | 2021-04-03T16:50:22.000Z | 2022-03-18T07:14:14.000Z | src/ngfx/drawOps/DrawColorOp.cpp | kamranrad1993/ngfx | eeef60e3419a88371a97e8bc3109d2b35b82cc89 | [
"Apache-2.0",
"MIT-0",
"MIT"
] | 6 | 2021-05-06T21:02:19.000Z | 2022-02-14T11:57:27.000Z | src/ngfx/drawOps/DrawColorOp.cpp | kamranrad1993/ngfx | eeef60e3419a88371a97e8bc3109d2b35b82cc89 | [
"Apache-2.0",
"MIT-0",
"MIT"
] | 5 | 2021-06-11T20:15:37.000Z | 2022-03-18T07:14:21.000Z | /*
* Copyright 2020 GoPro Inc.
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache Licens... | 40.873016 | 81 | 0.706019 | kamranrad1993 |
3087837487d28cf748219f196d1e37e5f91059f2 | 1,230 | cpp | C++ | Source/Common/Logger/LoggerSeverity.cpp | gunstarpl/Game-Engine | b800ff84b4c5487a33a6c86fca6dcac1e584e223 | [
"Unlicense"
] | 10 | 2018-10-12T12:20:11.000Z | 2022-01-20T17:13:50.000Z | Source/Common/Logger/LoggerSeverity.cpp | gunstarpl/Game-Engine | b800ff84b4c5487a33a6c86fca6dcac1e584e223 | [
"Unlicense"
] | null | null | null | Source/Common/Logger/LoggerSeverity.cpp | gunstarpl/Game-Engine | b800ff84b4c5487a33a6c86fca6dcac1e584e223 | [
"Unlicense"
] | null | null | null | /*
Copyright (c) 2018-2021 Piotr Doan. All rights reserved.
Software distributed under the permissive MIT License.
*/
#include "Common/Logger/LoggerSeverity.hpp"
using namespace Logger;
const char* Logger::GetSeverityName(Severity::Type severity)
{
switch(severity)
{
case Severity::Trace: re... | 30.75 | 62 | 0.602439 | gunstarpl |
308f7713be1a912b99f1584a0e9a468c446bcea6 | 5,180 | hxx | C++ | content/c++/hiroshi-mikuriya_mac-welcome/letters.hxx | chabukan/3d_led_cube | cbf910c847141b2e4104eeec0b5ebcab8f8aa09b | [
"MIT"
] | 3 | 2017-07-10T08:13:35.000Z | 2017-07-28T04:57:44.000Z | content/c++/hiroshi-mikuriya_mac-welcome/letters.hxx | chabukan/3d_led_cube | cbf910c847141b2e4104eeec0b5ebcab8f8aa09b | [
"MIT"
] | 2 | 2017-07-12T05:11:07.000Z | 2018-01-04T03:07:29.000Z | content/c++/hiroshi-mikuriya_mac-welcome/letters.hxx | chabukan/3d_led_cube | cbf910c847141b2e4104eeec0b5ebcab8f8aa09b | [
"MIT"
] | 11 | 2017-07-10T04:52:59.000Z | 2021-04-07T05:43:10.000Z | {"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABDDDDDDDDDBAAAAFPPPPPPPPPPNDAADNPPPPPPPPPPPLBABLPPPPPPPPPPPJAABLPPPPPPPPPPMDAABLPPMEDDDDDDBAAABLPPLBAAAAAAAAAABLPPLBAAAAAAAAAABLPPLBAAAAAAAAAABLPPLBAAAAAAAAAABLPPMEDDBAAAAAAABLPPPPPPMCAAAAAABLPPPPPPPJAAAAAABLPPPPPPPLBAAAAABLPPPPPPNEAAAAAABLPPMEDDBAAAA... | 470.909091 | 517 | 0.988417 | chabukan |
309e6bf9bcb840ddb5d778acb88d30f8fd58cc15 | 4,443 | cpp | C++ | vkoo/src/core/DescriptorSetLayout.cpp | KaiSut0/interactive-hex-meshing | 187c926610ca5617f569405c23ab5a62b189e100 | [
"MIT"
] | 129 | 2021-09-07T17:15:18.000Z | 2022-02-28T08:59:02.000Z | vkoo/src/core/DescriptorSetLayout.cpp | KaiSut0/interactive-hex-meshing | 187c926610ca5617f569405c23ab5a62b189e100 | [
"MIT"
] | 2 | 2021-10-03T07:30:20.000Z | 2022-01-06T16:05:41.000Z | vkoo/src/core/DescriptorSetLayout.cpp | KaiSut0/interactive-hex-meshing | 187c926610ca5617f569405c23ab5a62b189e100 | [
"MIT"
] | 11 | 2021-09-08T11:29:09.000Z | 2022-03-17T08:39:50.000Z | #include "vkoo/core/DescriptorSetLayout.h"
#include "vkoo/core/Device.h"
#include "vkoo/core/ShaderModule.h"
namespace vkoo {
inline VkDescriptorType FindDescriptorType(ShaderResourceType resource_type,
bool dynamic) {
switch (resource_type) {
case ShaderResourceType::... | 34.710938 | 79 | 0.728562 | KaiSut0 |
30a02980ba6802483c61cd87c547110f359d34b5 | 2,621 | hpp | C++ | ufora/FORA/TypedFora/ABI/MutableVectorHandle.hpp | ufora/ufora | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | [
"Apache-2.0",
"CC0-1.0",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 571 | 2015-11-05T20:07:07.000Z | 2022-01-24T22:31:09.000Z | ufora/FORA/TypedFora/ABI/MutableVectorHandle.hpp | timgates42/ufora | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | [
"Apache-2.0",
"CC0-1.0",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 218 | 2015-11-05T20:37:55.000Z | 2021-05-30T03:53:50.000Z | ufora/FORA/TypedFora/ABI/MutableVectorHandle.hpp | timgates42/ufora | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | [
"Apache-2.0",
"CC0-1.0",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 40 | 2015-11-07T21:42:19.000Z | 2021-05-23T03:48:19.000Z | /***************************************************************************
Copyright 2015 Ufora Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licen... | 28.182796 | 89 | 0.700114 | ufora |
30a246cef07d874b5d004393b9bf8f04f95d676d | 23,321 | cpp | C++ | src/manipulator.cpp | s9rA16Bf4/B.O.A.T | ab8203bf43991c643fbea4e6fdf487185c3a4de7 | [
"MIT"
] | null | null | null | src/manipulator.cpp | s9rA16Bf4/B.O.A.T | ab8203bf43991c643fbea4e6fdf487185c3a4de7 | [
"MIT"
] | null | null | null | src/manipulator.cpp | s9rA16Bf4/B.O.A.T | ab8203bf43991c643fbea4e6fdf487185c3a4de7 | [
"MIT"
] | null | null | null | #include "manipulator.hpp"
bool manipulator::process(std::vector<std::string> parsedValues){
bool toReturn = false;
file fP;
builtInFunc bif;
for (unsigned int y = 0; y < parsedValues.size(); y++){
std::vector<std::string> splitLine = fP.split(parsedValues[y], " ");
for (unsigned int i = 0; i < splitL... | 49.408898 | 183 | 0.511642 | s9rA16Bf4 |
30a73ee04de69fe2ca492f82c325b75ac1f0b236 | 751 | cpp | C++ | 20200523_PAST3/b.cpp | miyalab/AtCoder | a57c8a6195463a9a8edd1c3ddd36cc56f145c60d | [
"MIT"
] | null | null | null | 20200523_PAST3/b.cpp | miyalab/AtCoder | a57c8a6195463a9a8edd1c3ddd36cc56f145c60d | [
"MIT"
] | null | null | null | 20200523_PAST3/b.cpp | miyalab/AtCoder | a57c8a6195463a9a8edd1c3ddd36cc56f145c60d | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
// 入出力の高速化
ios::sync_with_stdio(false);
cin.tie(nullptr);
// 表示精度変更
cout << fixed << setprecision(16);
int N, M, Q;
int s,n,m;
int point;
cin >> N >> M >> Q;
vector<vector<int>> ans(N+1,vector<int>(M+1));
// クエリ入力
for(i... | 18.775 | 50 | 0.366178 | miyalab |
dd6a1e72d88bd07d160e378dcbd57afc1830e4df | 2,396 | cpp | C++ | src/poScene/EventCenter.cpp | ZawaadulKarim/Cinder-poScene | 7e273d15a89f0a19d336e516017f910ef343f8f2 | [
"BSD-3-Clause"
] | 71 | 2015-08-07T16:54:15.000Z | 2021-11-07T06:10:22.000Z | src/poScene/EventCenter.cpp | ZawaadulKarim/Cinder-poScene | 7e273d15a89f0a19d336e516017f910ef343f8f2 | [
"BSD-3-Clause"
] | 19 | 2015-12-17T21:38:32.000Z | 2019-12-09T20:05:18.000Z | src/poScene/EventCenter.cpp | ZawaadulKarim/Cinder-poScene | 7e273d15a89f0a19d336e516017f910ef343f8f2 | [
"BSD-3-Clause"
] | 29 | 2015-08-11T19:57:11.000Z | 2021-05-06T20:25:50.000Z | /*
Copyright (c) 2015, Potion Design LLC
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the fo... | 35.235294 | 92 | 0.755426 | ZawaadulKarim |
dd6de117154db922f3587e5cad7bd882df9e1348 | 8,128 | hpp | C++ | sdl/Optimization/FeatureHypergraphPairs.hpp | sdl-research/hyp | d39f388f9cd283bcfa2f035f399b466407c30173 | [
"Apache-2.0"
] | 29 | 2015-01-26T21:49:51.000Z | 2021-06-18T18:09:42.000Z | sdl/Optimization/FeatureHypergraphPairs.hpp | hypergraphs/hyp | d39f388f9cd283bcfa2f035f399b466407c30173 | [
"Apache-2.0"
] | 1 | 2015-12-08T15:03:15.000Z | 2016-01-26T14:31:06.000Z | sdl/Optimization/FeatureHypergraphPairs.hpp | hypergraphs/hyp | d39f388f9cd283bcfa2f035f399b466407c30173 | [
"Apache-2.0"
] | 4 | 2015-11-21T14:25:38.000Z | 2017-10-30T22:22:00.000Z | // Copyright 2014-2015 SDL plc
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 33.726141 | 107 | 0.703002 | sdl-research |
dd732be1422bb4926de2d07a214f29f3cb29bccb | 2,050 | cpp | C++ | Adventure in a Maze - GFG/adventure-in-a-maze.cpp | sahib-pratap-singh/Leetcode | 0df2053dcf51c61c1d32ae2d20f58c11b2c25b24 | [
"MIT"
] | null | null | null | Adventure in a Maze - GFG/adventure-in-a-maze.cpp | sahib-pratap-singh/Leetcode | 0df2053dcf51c61c1d32ae2d20f58c11b2c25b24 | [
"MIT"
] | null | null | null | Adventure in a Maze - GFG/adventure-in-a-maze.cpp | sahib-pratap-singh/Leetcode | 0df2053dcf51c61c1d32ae2d20f58c11b2c25b24 | [
"MIT"
] | null | null | null | // { Driver Code Starts
#include<bits/stdc++.h>
using namespace std;
// } Driver Code Ends
class Solution {
#define N 1000000007
public:
bool moveRight(int a){
if(a == 1 || a == 3) return true;
return false;
}
bool moveDown(int a){
if(a != 1) return true;
return false;
}
vector<int> FindWays(vector<v... | 23.837209 | 85 | 0.450244 | sahib-pratap-singh |
dd7a4704470862257bc59f2cf184316925131f56 | 2,024 | cpp | C++ | src/filters/VoronoiFilter.cpp | dasl-/ofxFilterLibrary | 6e43d33b205f04706b72747e5b4ce7f45cab3e88 | [
"MIT"
] | 98 | 2015-01-28T23:23:06.000Z | 2021-03-27T16:29:17.000Z | src/filters/VoronoiFilter.cpp | dasl-/ofxFilterLibrary | 6e43d33b205f04706b72747e5b4ce7f45cab3e88 | [
"MIT"
] | 5 | 2015-04-17T17:19:21.000Z | 2017-10-27T15:46:55.000Z | src/filters/VoronoiFilter.cpp | dasl-/ofxFilterLibrary | 6e43d33b205f04706b72747e5b4ce7f45cab3e88 | [
"MIT"
] | 18 | 2015-07-23T02:44:31.000Z | 2020-02-24T12:52:15.000Z | //
// VoronoiFilter.cpp
// filterSandbox
//
// Created by Matthew Fargo on 2014/06/23.
//
//
#include "VoronoiFilter.h"
VoronoiFilter::VoronoiFilter(ofTexture & texture) : AbstractFilter(texture.getWidth(), texture.getHeight()) {
_name = "Voronoi";
_texture = texture;
for (int i=0; i<NUM_POINTS; i++) {... | 30.666667 | 109 | 0.511858 | dasl- |
dd7f17a6ce4b7ae61c5ebb39d303412c7b8df4c5 | 784 | cpp | C++ | ftnoir_protocol_wine/ftnoir_protocol_wine_dll.cpp | MaximeMorel/opentrack | d83db9c7cfd7ee12366032b9b0796dc63acdabb3 | [
"ISC"
] | null | null | null | ftnoir_protocol_wine/ftnoir_protocol_wine_dll.cpp | MaximeMorel/opentrack | d83db9c7cfd7ee12366032b9b0796dc63acdabb3 | [
"ISC"
] | null | null | null | ftnoir_protocol_wine/ftnoir_protocol_wine_dll.cpp | MaximeMorel/opentrack | d83db9c7cfd7ee12366032b9b0796dc63acdabb3 | [
"ISC"
] | null | null | null | #include "ftnoir_protocol_wine.h"
#include <QDebug>
#include "facetracknoir/global-settings.h"
FTNoIR_ProtocolDll::FTNoIR_ProtocolDll() {
}
FTNoIR_ProtocolDll::~FTNoIR_ProtocolDll()
{
}
////////////////////////////////////////////////////////////////////////////////
// Factory function that creates instances if the... | 30.153846 | 88 | 0.693878 | MaximeMorel |
dd83132ad9e7c5ddc5d3e68ee3061b1cb08505b6 | 598 | cpp | C++ | 01_Programming_Basics/01_Programming_Basics_with_C++/11_For_Loop_Exercise/07_Salary.cpp | Knightwalker/Knowledgebase | 00c6dea5e52c0d2b0fe0dc3b7b5c298d445f0161 | [
"MIT"
] | null | null | null | 01_Programming_Basics/01_Programming_Basics_with_C++/11_For_Loop_Exercise/07_Salary.cpp | Knightwalker/Knowledgebase | 00c6dea5e52c0d2b0fe0dc3b7b5c298d445f0161 | [
"MIT"
] | null | null | null | 01_Programming_Basics/01_Programming_Basics_with_C++/11_For_Loop_Exercise/07_Salary.cpp | Knightwalker/Knowledgebase | 00c6dea5e52c0d2b0fe0dc3b7b5c298d445f0161 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <iomanip>
using namespace std;
int main() {
int n = 0;
int salary = 0;
cin >> n >> salary;
cin.ignore();
for (int i = 0; i < n; i++) {
string website = "";
getline(cin, website);
if (website == "Facebook") {
salary -= 150;
} else if (w... | 16.162162 | 51 | 0.498328 | Knightwalker |
dd83c3ade54f0729203dfb4ccab6dc9588e6005e | 826 | hpp | C++ | cpp/gain-node.hpp | trxcllnt/webaudio-raub | 957d68c2612a3de88e50fb8655d3d700c5a6c001 | [
"MIT"
] | null | null | null | cpp/gain-node.hpp | trxcllnt/webaudio-raub | 957d68c2612a3de88e50fb8655d3d700c5a6c001 | [
"MIT"
] | null | null | null | cpp/gain-node.hpp | trxcllnt/webaudio-raub | 957d68c2612a3de88e50fb8655d3d700c5a6c001 | [
"MIT"
] | null | null | null | #ifndef _GAIN_NODE_HPP_
#define _GAIN_NODE_HPP_
#include <addon-tools.hpp>
#include "audio-node.hpp"
class GainNode : public AudioNode {
public:
~GainNode();
// Public V8 init
static void init(V8_VAR_OBJ target);
// Make a new instance from C++ land
static V8_VAR_OBJ getNew(V8_VAR_OBJ context);
// ... | 15.584906 | 50 | 0.739709 | trxcllnt |
dd879f9f84b93c3827ff135e4becb188a456aa89 | 352 | cpp | C++ | Observer/Observer/Viewers/RadioViewer.cpp | jayavardhanravi/DesignPatterns | aa6a37790f447c7caf69c6a1a9c6107074309a03 | [
"BSD-2-Clause"
] | 8 | 2020-01-23T23:20:40.000Z | 2022-01-08T13:04:08.000Z | Observer/Observer/Viewers/RadioViewer.cpp | jayavardhanravi/DesignPatterns | aa6a37790f447c7caf69c6a1a9c6107074309a03 | [
"BSD-2-Clause"
] | null | null | null | Observer/Observer/Viewers/RadioViewer.cpp | jayavardhanravi/DesignPatterns | aa6a37790f447c7caf69c6a1a9c6107074309a03 | [
"BSD-2-Clause"
] | 1 | 2020-01-28T14:27:54.000Z | 2020-01-28T14:27:54.000Z | #include "RadioViewer.h"
RadioViewer::RadioViewer(const std::string &name) : name_(name)
{
}
RadioViewer::~RadioViewer()
{
}
void RadioViewer::GetUpdates(const std::string& dataObtained)
{
dataObtained_ = dataObtained;
std::cout << "[RADIO] "<< name_ << " : " << dataObtained_ << std::endl;
}
std::string RadioView... | 16.761905 | 72 | 0.681818 | jayavardhanravi |
dd946ecdbff8bbc29fc41b829d5c1e4bdbaf93d4 | 443 | hpp | C++ | src/Surface.hpp | Seek/RayTracing | 24978d83a98d9c1c4d545cddfa38be9c6279663f | [
"MIT"
] | null | null | null | src/Surface.hpp | Seek/RayTracing | 24978d83a98d9c1c4d545cddfa38be9c6279663f | [
"MIT"
] | null | null | null | src/Surface.hpp | Seek/RayTracing | 24978d83a98d9c1c4d545cddfa38be9c6279663f | [
"MIT"
] | null | null | null | #ifndef SURFACE_HPP
#define SURFACE_HPP
#pragma once
#include "Ray.hpp"
#include "Transform.hpp"
#include "LocalSurface.hpp"
class Surface {
public:
Surface() {}
Surface(const Transform& _obj2world, const Transform& _world2obj)
: obj2world(_obj2world), world2obj(_world2obj) {}
virtual bool intersect(const Ray&... | 21.095238 | 96 | 0.744921 | Seek |
dd96b4bed6fa2b33e921124d6bd639f6628b9172 | 3,518 | cpp | C++ | MonoNative/mscorlib/System/Runtime/Serialization/Formatters/mscorlib_System_Runtime_Serialization_Formatters_IFieldInfo.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 7 | 2015-03-10T03:36:16.000Z | 2021-11-05T01:16:58.000Z | MonoNative/mscorlib/System/Runtime/Serialization/Formatters/mscorlib_System_Runtime_Serialization_Formatters_IFieldInfo.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 1 | 2020-06-23T10:02:33.000Z | 2020-06-24T02:05:47.000Z | MonoNative/mscorlib/System/Runtime/Serialization/Formatters/mscorlib_System_Runtime_Serialization_Formatters_IFieldInfo.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | null | null | null | #include <mscorlib/System/Runtime/Serialization/Formatters/mscorlib_System_Runtime_Serialization_Formatters_IFieldInfo.h>
#include <mscorlib/System/mscorlib_System_String.h>
#include <mscorlib/System/mscorlib_System_Type.h>
namespace mscorlib
{
namespace System
{
namespace Runtime
{
namespace Serialization
... | 46.906667 | 232 | 0.738772 | brunolauze |
dd9ee8829fdfde6e1febff2a3843705c52838dc1 | 540 | cpp | C++ | source/476.cpp | narikbi/LeetCode | 835215c21d1bd6820b20c253026bcb6f889ed3fc | [
"MIT"
] | 2 | 2017-02-28T11:39:13.000Z | 2019-12-07T17:23:20.000Z | source/476.cpp | narikbi/LeetCode | 835215c21d1bd6820b20c253026bcb6f889ed3fc | [
"MIT"
] | null | null | null | source/476.cpp | narikbi/LeetCode | 835215c21d1bd6820b20c253026bcb6f889ed3fc | [
"MIT"
] | null | null | null | //
// 476.cpp
// LeetCode
//
// Created by Narikbi on 15.02.17.
// Copyright © 2017 app.leetcode.kz. All rights reserved.
//
#include <stdio.h>
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <deque>
#include <queue>
#include <set>
using namespace std;
int findComplement(int... | 14.594595 | 58 | 0.585185 | narikbi |
dd9fd231b65c903c2ec0d15f77801eb7340660c9 | 2,467 | cpp | C++ | StackedPlot/src/StackedPlot.cpp | ofnode/openFrameworksDemos | ae7d2f9f43884ef54bec44420994c49e2bf8081a | [
"MIT"
] | 75 | 2015-02-03T14:42:44.000Z | 2021-09-17T00:54:56.000Z | StackedPlot/src/StackedPlot.cpp | ofnode/openFrameworksDemos | ae7d2f9f43884ef54bec44420994c49e2bf8081a | [
"MIT"
] | 1 | 2016-11-15T16:02:21.000Z | 2016-11-15T16:02:21.000Z | StackedPlot/src/StackedPlot.cpp | ofnode/openFrameworksDemos | ae7d2f9f43884ef54bec44420994c49e2bf8081a | [
"MIT"
] | 16 | 2015-05-05T19:17:09.000Z | 2018-08-15T11:57:46.000Z | #include "StackedPlot.h"
float sum(const vector<float>& x) {
float sum = 0;
for(int i = 0; i < x.size(); i++) {
sum += x[i];
}
return sum;
}
vector<float> divide(const vector<float>& x, float y) {
vector<float> out = x;
for(int i = 0; i < out.size(); i++) {
out[i] /= y;
}
... | 26.815217 | 93 | 0.566275 | ofnode |
dda031ae4dd3480aa28c59c63fd348dfdc237587 | 1,654 | hh | C++ | src/gmm/test/src/util.hh | juliia5m/knu_voice | 1f5d150ded23af4c152b8d20f1ab4ecec77b40e1 | [
"Apache-2.0"
] | 717 | 2015-01-03T15:25:46.000Z | 2022-03-30T12:45:45.000Z | src/gmm/test/src/util.hh | juliia5m/knu_voice | 1f5d150ded23af4c152b8d20f1ab4ecec77b40e1 | [
"Apache-2.0"
] | 91 | 2015-03-19T09:25:23.000Z | 2021-05-19T08:51:26.000Z | src/gmm/test/src/util.hh | juliia5m/knu_voice | 1f5d150ded23af4c152b8d20f1ab4ecec77b40e1 | [
"Apache-2.0"
] | 315 | 2015-01-21T00:06:00.000Z | 2022-03-29T08:13:36.000Z | /*
* $File: util.hh
* $Date: Tue Dec 24 16:46:50 2013 +0800
* $Author: Xinyu Zhou <zxytim[at]gmail[dot]com>
*/
#pragma once
#include "type.hh"
#include <cassert>
#include <vector>
using namespace std;
#if 0
static vector<real_t> random_vector(int dim, real_t range, Random &random) {
vector<real_t> vec(dim);
... | 21.480519 | 87 | 0.598549 | juliia5m |
ddaa6de0dc09a0c6d7d70588bc8a9f476b6cbf0f | 397 | hpp | C++ | include/bus.hpp | c1m5j/bpp | 669220ebfbee57822028d13fa3a5a48a3e73ee85 | [
"MIT"
] | 2 | 2021-07-30T14:46:04.000Z | 2021-07-30T14:58:52.000Z | include/bus.hpp | c1m5j/bpp | 669220ebfbee57822028d13fa3a5a48a3e73ee85 | [
"MIT"
] | 2 | 2021-07-30T13:13:18.000Z | 2021-07-30T13:42:50.000Z | include/bus.hpp | c1m5j/bpp | 669220ebfbee57822028d13fa3a5a48a3e73ee85 | [
"MIT"
] | 1 | 2021-07-30T13:03:12.000Z | 2021-07-30T13:03:12.000Z | #pragma once
/**
* A simple "system bus" which allows for interconnection between
* components, saving us passing pointers or references to each
* other every function call.
*/
class CPU;
class Display;
class Audio;
class Memory;
class Input;
class Bus {
public:
Bus();
~Bus();
Memory* memory;
C... | 15.88 | 65 | 0.649874 | c1m5j |
ddb3097015a120c4d0ae3b76f584c561ff429374 | 1,315 | hpp | C++ | src/fixie_lib/null_impl/context.hpp | vonture/fixie | 7fa1a6787ae26ee141a906fe39fb85c2e3cf4dfc | [
"MIT"
] | 7 | 2015-01-09T22:08:17.000Z | 2021-10-12T10:32:58.000Z | src/fixie_lib/null_impl/context.hpp | vonture/fixie | 7fa1a6787ae26ee141a906fe39fb85c2e3cf4dfc | [
"MIT"
] | 1 | 2015-08-19T07:51:53.000Z | 2015-08-19T07:51:53.000Z | src/fixie_lib/null_impl/context.hpp | vonture/fixie | 7fa1a6787ae26ee141a906fe39fb85c2e3cf4dfc | [
"MIT"
] | 5 | 2015-08-20T07:10:23.000Z | 2022-03-24T07:09:10.000Z | #ifndef _FIXIE_LIB_NULL_CONTEXT_HPP_
#define _FIXIE_LIB_NULL_CONTEXT_HPP_
#include "fixie_lib/context.hpp"
namespace fixie
{
namespace null_impl
{
class context : public fixie::context_impl
{
public:
virtual const fixie::caps& caps() override;
virtual const std:... | 36.527778 | 132 | 0.686692 | vonture |
ddc1c869618ff0a13d652fe6fd3d26f1dba5bf16 | 10,834 | hpp | C++ | example/ccana/source/ProjectConeETCC.hpp | goroyabu/anlpy | 2d5d65b898d31d69f990e973cbfdbabd8cb0a15c | [
"MIT"
] | null | null | null | example/ccana/source/ProjectConeETCC.hpp | goroyabu/anlpy | 2d5d65b898d31d69f990e973cbfdbabd8cb0a15c | [
"MIT"
] | null | null | null | example/ccana/source/ProjectConeETCC.hpp | goroyabu/anlpy | 2d5d65b898d31d69f990e973cbfdbabd8cb0a15c | [
"MIT"
] | null | null | null | /***
@file ProjectConeETCC.hpp
@date
@author User
@detail Automatically generated by mkanlproject
***/
#ifndef ProjectConeETCC_hpp
#define ProjectConeETCC_hpp
#include <tuple>
#include <TFile.h>
#include <TTree.h>
#include <TH2D.h>
#include <TH3F.h>
#include <TMath.h>
#include <TVector3.h>
#include... | 30.866097 | 135 | 0.53729 | goroyabu |
ddcfac6bbb06a1712fc7b742efe68a75f9acc3da | 3,420 | hxx | C++ | Modules/Core/include/selxInterfaceAcceptor.hxx | FBerendsen/SuperElastix-1 | 69d97589e34f6f2109621e917792ce18e32442fe | [
"Apache-2.0"
] | null | null | null | Modules/Core/include/selxInterfaceAcceptor.hxx | FBerendsen/SuperElastix-1 | 69d97589e34f6f2109621e917792ce18e32442fe | [
"Apache-2.0"
] | null | null | null | Modules/Core/include/selxInterfaceAcceptor.hxx | FBerendsen/SuperElastix-1 | 69d97589e34f6f2109621e917792ce18e32442fe | [
"Apache-2.0"
] | null | null | null | /*=========================================================================
*
* Copyright Leiden University Medical Center, Erasmus University Medical
* Center and contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License... | 42.222222 | 178 | 0.724854 | FBerendsen |
dddc4b62fb7d0812d0e57d625619d5f7535eaa39 | 151 | hpp | C++ | MeetingCodes/Meeting4/Square.hpp | SubhoB/spectre-cpp-basics | 0f581b879e83e88d1491b31e22aa447419d471a3 | [
"MIT"
] | 15 | 2020-06-01T19:48:57.000Z | 2021-11-01T07:33:42.000Z | MeetingCodes/Meeting4/Square.hpp | SubhoB/spectre-cpp-basics | 0f581b879e83e88d1491b31e22aa447419d471a3 | [
"MIT"
] | 1 | 2020-06-02T02:43:41.000Z | 2020-06-02T03:55:50.000Z | MeetingCodes/Meeting4/Square.hpp | SubhoB/spectre-cpp-basics | 0f581b879e83e88d1491b31e22aa447419d471a3 | [
"MIT"
] | 6 | 2020-06-23T22:36:56.000Z | 2021-06-14T14:46:49.000Z | #pragma once
#include "Rectangle.hpp"
class Square : public Rectangle {
public:
Square(double length) noexcept;
double Perimeter() noexcept;
};
| 15.1 | 33 | 0.728477 | SubhoB |
dddeeaf6474b1f0cfe3eec6b030994d2bf4b3cf1 | 2,603 | cc | C++ | src/simplesat/bin_algebra/binary_op.cc | evmaus/ClusterSAT | d26ff539fe9789611e9ecd8ef5c14a19e150105b | [
"Apache-2.0"
] | null | null | null | src/simplesat/bin_algebra/binary_op.cc | evmaus/ClusterSAT | d26ff539fe9789611e9ecd8ef5c14a19e150105b | [
"Apache-2.0"
] | null | null | null | src/simplesat/bin_algebra/binary_op.cc | evmaus/ClusterSAT | d26ff539fe9789611e9ecd8ef5c14a19e150105b | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 25.772277 | 78 | 0.644257 | evmaus |
50b45c10d785f44c98c6d89637b444c06d2f50c0 | 5,293 | cc | C++ | misc.cc | stealth/loaded | cebc149cdbdf2f1f21037518888f4c118adcc2dd | [
"BSD-4-Clause"
] | 4 | 2015-03-29T00:19:29.000Z | 2021-04-13T17:25:47.000Z | misc.cc | stealth/loaded | cebc149cdbdf2f1f21037518888f4c118adcc2dd | [
"BSD-4-Clause"
] | null | null | null | misc.cc | stealth/loaded | cebc149cdbdf2f1f21037518888f4c118adcc2dd | [
"BSD-4-Clause"
] | 2 | 2015-05-19T09:35:55.000Z | 2016-01-28T09:46:45.000Z | #include <cstdio>
#include <cerrno>
#include <stdint.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <unistd.h>
#include <map>
#include <sched.h>
#include "packet.h"
#include "strategy.h"
#include "config.h"
namespace loaded {
using namespace std;
unsigned short in_cksum (unsigned short *ptr, int nbytes)... | 21.51626 | 78 | 0.587191 | stealth |
50b675201c7d188aad4c09b66a394a2395df1a5c | 533 | cpp | C++ | BOJ_CPP/24077.cpp | tnsgh9603/BOJ_CPP | 432b1350f6c67cce83aec3e723e30a3c6b5dbfda | [
"MIT"
] | null | null | null | BOJ_CPP/24077.cpp | tnsgh9603/BOJ_CPP | 432b1350f6c67cce83aec3e723e30a3c6b5dbfda | [
"MIT"
] | null | null | null | BOJ_CPP/24077.cpp | tnsgh9603/BOJ_CPP | 432b1350f6c67cce83aec3e723e30a3c6b5dbfda | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define fastio ios::sync_with_stdio(0), cin.tie(0), cout.tie(0)
using namespace std;
int main() {
fastio;
int n, m, cnt = 0;
cin >> n >> m;
vector<int> v1(n), v2(m);
for (int i = 0; i < n; ++i) {
cin >> v1[i];
}
for (int i = 0; i < m; ++i) {
cin >> ... | 22.208333 | 63 | 0.439024 | tnsgh9603 |
50ba02646733afe87ea2144e5758957ea3201b57 | 223 | hpp | C++ | src/include/parser/tableref/list.hpp | mweisgut/duckdb | 4cff1d7957ce895dd9984a87aa20aef67f5986e6 | [
"MIT"
] | 1 | 2019-08-01T08:21:33.000Z | 2019-08-01T08:21:33.000Z | src/include/parser/tableref/list.hpp | mweisgut/duckdb | 4cff1d7957ce895dd9984a87aa20aef67f5986e6 | [
"MIT"
] | null | null | null | src/include/parser/tableref/list.hpp | mweisgut/duckdb | 4cff1d7957ce895dd9984a87aa20aef67f5986e6 | [
"MIT"
] | null | null | null | #include "parser/tableref/basetableref.hpp"
#include "parser/tableref/crossproductref.hpp"
#include "parser/tableref/joinref.hpp"
#include "parser/tableref/subqueryref.hpp"
#include "parser/tableref/table_function_ref.hpp"
| 37.166667 | 49 | 0.820628 | mweisgut |
50bcba3f3ddaf546a63f076f116a9318c3cb6709 | 1,714 | cpp | C++ | kernel/graphics/virtiogpu/GraphicsAdapter.cpp | emacodes/pranaOS | 963f2b5940ea94b153cf36780097740654fe6acd | [
"BSD-2-Clause"
] | null | null | null | kernel/graphics/virtiogpu/GraphicsAdapter.cpp | emacodes/pranaOS | 963f2b5940ea94b153cf36780097740654fe6acd | [
"BSD-2-Clause"
] | null | null | null | kernel/graphics/virtiogpu/GraphicsAdapter.cpp | emacodes/pranaOS | 963f2b5940ea94b153cf36780097740654fe6acd | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2021, Krisna Pranav
*
* SPDX-License-Identifier: BSD-2-Clause
*/
// includes
#include <kernel/bus/pci/IDs.h>
#include <kernel/graphics/console/GenericFramebufferConsole.h>
#include <kernel/graphics/GraphicsManagement.h>
#include <kernel/graphics/virtiogpu/GPU.h>
#include <kernel/graphics/virtiogp... | 29.050847 | 85 | 0.740373 | emacodes |
50c9f97b2a9d4b5c7f80d461d5fbb92b7edcc284 | 1,232 | hpp | C++ | src/Pipeline/SpirvBinary.hpp | tonyh-fff/swiftshader | f354daff5a2b882fc182c8377c826aa99b30f989 | [
"Apache-2.0"
] | 1,570 | 2016-06-30T10:40:04.000Z | 2022-03-31T01:47:33.000Z | src/Pipeline/SpirvBinary.hpp | tonyh-fff/swiftshader | f354daff5a2b882fc182c8377c826aa99b30f989 | [
"Apache-2.0"
] | 9 | 2017-01-16T07:09:08.000Z | 2020-08-25T18:28:59.000Z | src/Pipeline/SpirvBinary.hpp | tonyh-fff/swiftshader | f354daff5a2b882fc182c8377c826aa99b30f989 | [
"Apache-2.0"
] | 253 | 2016-06-30T18:57:10.000Z | 2022-03-25T03:57:40.000Z | // Copyright 2021 The SwiftShader Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required b... | 28 | 90 | 0.760552 | tonyh-fff |
50ca3443df3eb4d350b7a9da3a3671c62ced502b | 9,333 | cc | C++ | src/atlas/grid/detail/grid/LonLat.cc | twsearle/atlas | a1916fd521f9935f846004e6194f80275de4de83 | [
"Apache-2.0"
] | 67 | 2018-03-01T06:56:49.000Z | 2022-03-08T18:44:47.000Z | src/atlas/grid/detail/grid/LonLat.cc | twsearle/atlas | a1916fd521f9935f846004e6194f80275de4de83 | [
"Apache-2.0"
] | 93 | 2018-12-07T17:38:04.000Z | 2022-03-31T10:04:51.000Z | src/atlas/grid/detail/grid/LonLat.cc | twsearle/atlas | a1916fd521f9935f846004e6194f80275de4de83 | [
"Apache-2.0"
] | 33 | 2018-02-28T17:06:19.000Z | 2022-01-20T12:12:27.000Z | /*
* (C) Copyright 2013 ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an intergo... | 30.400651 | 119 | 0.525019 | twsearle |
50d159bbdb8f8e1ddc881f3506cb339555eac873 | 129 | inl | C++ | dependencies/glm/detail/func_geometric_simd.inl | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | dependencies/glm/detail/func_geometric_simd.inl | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | dependencies/glm/detail/func_geometric_simd.inl | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:3bce881d22b8d93090c786528e69892a0cf9fb1b0de6062d544685b1fdb37fb9
size 2693
| 32.25 | 75 | 0.883721 | realtehcman |
50d5756eeb67ec607a2648d89f278c01cb172ad1 | 3,808 | cpp | C++ | OpenGLBasics/Camera.cpp | LensPlaysGames/CMake_OpenGLBasics | 59e818b01376b6e72646245d2affbcc430489f81 | [
"MIT"
] | null | null | null | OpenGLBasics/Camera.cpp | LensPlaysGames/CMake_OpenGLBasics | 59e818b01376b6e72646245d2affbcc430489f81 | [
"MIT"
] | null | null | null | OpenGLBasics/Camera.cpp | LensPlaysGames/CMake_OpenGLBasics | 59e818b01376b6e72646245d2affbcc430489f81 | [
"MIT"
] | null | null | null | #include "Camera.h"
#include "Timer.h"
#include <glm/ext/matrix_transform.hpp>
#include <glm/ext/matrix_clip_space.hpp>
#include <glm/gtc/type_ptr.hpp>
Camera::Camera(int width, int height, glm::vec3 position) {
Width = width;
Height = height;
Position = position;
}
void Camera::Update(GLFWwindow* window... | 40.946237 | 114 | 0.646534 | LensPlaysGames |
50dada853c87460b2d0f714b4825e9135c6b0a78 | 804 | cpp | C++ | MesaDeRestaurante.cpp | nathaliamoreno/R2Q1-Lab-LP | eaf67f43838e92a5170d3efd1a9680b8670650aa | [
"Apache-2.0"
] | null | null | null | MesaDeRestaurante.cpp | nathaliamoreno/R2Q1-Lab-LP | eaf67f43838e92a5170d3efd1a9680b8670650aa | [
"Apache-2.0"
] | null | null | null | MesaDeRestaurante.cpp | nathaliamoreno/R2Q1-Lab-LP | eaf67f43838e92a5170d3efd1a9680b8670650aa | [
"Apache-2.0"
] | null | null | null | #include "MesaDeRestaurante.h"
#include <iostream>
using namespace std;
MesaDeRestaurante::MesaDeRestaurante(){
iAtual = 0;
}
void MesaDeRestaurante::adicionaAoPedido(Pedido p){
int i,q;
std::string str1, str2;
str2 = p.getDescricao();
for(i = 0; i < iAtual; i++){
str1 = pedido[i].getDescri... | 22.971429 | 66 | 0.575871 | nathaliamoreno |
50dbdc77dce0137632a7e18a6031fd238117e405 | 6,070 | cpp | C++ | Circuit/KeyboardView.cpp | Wang-Yue/Circu | a194bb904f9debab35d24eecb53c091556c17cd6 | [
"BSD-3-Clause"
] | 8 | 2018-08-24T01:31:38.000Z | 2021-03-01T14:57:59.000Z | Circuit/KeyboardView.cpp | Wang-Yue/Circu | a194bb904f9debab35d24eecb53c091556c17cd6 | [
"BSD-3-Clause"
] | 1 | 2019-12-08T13:43:19.000Z | 2019-12-13T03:36:16.000Z | Circuit/KeyboardView.cpp | Wang-Yue/Circuit | a194bb904f9debab35d24eecb53c091556c17cd6 | [
"BSD-3-Clause"
] | null | null | null | //
// KeyboardView.cpp
// CircuitApp
//
// Created by Yue Wang on 8/19/18.
// Copyright © 2018 Yue Wang. All rights reserved.
//
#include "KeyboardView.hpp"
#include "Pad.hpp"
#include "Scale.hpp"
#include <map>
static const Color kAvailableKeyColor(0x0000ffff);
static const Color kOctaveKeyColor(0x00ff00ff);
st... | 28.767773 | 92 | 0.635914 | Wang-Yue |
50dd032e62d19627d0574735eefe0cfb7a2408d0 | 100 | cpp | C++ | test/test_catch2/src/unit__failing_test.cpp | luisnuxx/formiga | 893a464eae3323ee6dcfe8c9c4b8f681783326c6 | [
"MIT"
] | 2 | 2018-02-18T20:11:00.000Z | 2019-12-01T14:21:19.000Z | test/test_catch2/src/unit__failing_test.cpp | luisnuxx/formiga | 893a464eae3323ee6dcfe8c9c4b8f681783326c6 | [
"MIT"
] | null | null | null | test/test_catch2/src/unit__failing_test.cpp | luisnuxx/formiga | 893a464eae3323ee6dcfe8c9c4b8f681783326c6 | [
"MIT"
] | null | null | null |
TEST_CASE( "stupid/1=2", "Prove that one equals 2" ){
int one = 1;
REQUIRE( one == 2 );
}
| 14.285714 | 53 | 0.54 | luisnuxx |
50e0ce3d3026acd3bf7438f3d1b07a3b860b0be2 | 6,360 | cpp | C++ | runtime/src/exc_engine/x64/unwind_handler.cpp | Shtan7/KTL | 9c0adf8fac2f0bb481060b7bbb15b1356089af3c | [
"MIT"
] | 38 | 2020-12-16T22:12:50.000Z | 2022-03-24T04:07:14.000Z | runtime/src/exc_engine/x64/unwind_handler.cpp | Shtan7/KTL | 9c0adf8fac2f0bb481060b7bbb15b1356089af3c | [
"MIT"
] | 165 | 2020-11-11T21:22:23.000Z | 2022-03-26T14:30:40.000Z | runtime/src/exc_engine/x64/unwind_handler.cpp | Shtan7/KTL | 9c0adf8fac2f0bb481060b7bbb15b1356089af3c | [
"MIT"
] | 5 | 2021-07-16T19:05:28.000Z | 2021-12-22T11:46:42.000Z | #include <bugcheck.hpp>
#include <cpu_context.hpp>
#include <symbol.hpp>
#define BREAK_IF_FALSE(cond) \
if (!(cond)) \
break
EXTERN_C ktl::crt::exc_engine::symbol __ImageBase;
namespace ktl::crt::exc_engine::x64 {
namespace pe {
template <typename Ty>
struct dir_header {
/*0x00*/ relative_virtu... | 29.719626 | 80 | 0.652516 | Shtan7 |
50e470b20732df9ff68ed9cb8f249f7b39440a73 | 706 | cpp | C++ | Snake2QT/Snake.cpp | PaulinaGacek/SnakeGame | 34352fe6fd956d3319f75fa826aaa00a3560254e | [
"MIT"
] | null | null | null | Snake2QT/Snake.cpp | PaulinaGacek/SnakeGame | 34352fe6fd956d3319f75fa826aaa00a3560254e | [
"MIT"
] | null | null | null | Snake2QT/Snake.cpp | PaulinaGacek/SnakeGame | 34352fe6fd956d3319f75fa826aaa00a3560254e | [
"MIT"
] | null | null | null | //
// Created by pauli on 02.06.2021.
//
#include "Snake.h"
void Snake::set_tail_X(size_t index, int position) {
//if(index >= length)
//throw std::invalid_argument("Invalid index");
x[index] = position;
}
void Snake::set_tail_Y(size_t index, int position) {
//if(index >= length)
... | 22.774194 | 56 | 0.601983 | PaulinaGacek |
50e843d7626b8f1d86417a69dc488eb726ddbd83 | 40,848 | hpp | C++ | src/AmsSort/GroupMsgToPeAssignment.hpp | mschimek/KaDiS | ac9c5755d325d1d373a188e6fc0733b12205a74d | [
"BSD-2-Clause"
] | 1 | 2019-04-26T15:50:58.000Z | 2019-04-26T15:50:58.000Z | src/AmsSort/GroupMsgToPeAssignment.hpp | mschimek/KaDiS | ac9c5755d325d1d373a188e6fc0733b12205a74d | [
"BSD-2-Clause"
] | null | null | null | src/AmsSort/GroupMsgToPeAssignment.hpp | mschimek/KaDiS | ac9c5755d325d1d373a188e6fc0733b12205a74d | [
"BSD-2-Clause"
] | null | null | null | /*****************************************************************************
* This file is part of the Project Karlsruhe Distributed Sorting Library
* (KaDiS).
*
* Copyright (c) 2019, Michael Axtmann <michael.axtmann@kit.edu>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with o... | 39.581395 | 185 | 0.55518 | mschimek |
50e8ee41caacdda0a250d42639c5595cf24aafe1 | 37 | cpp | C++ | examples/re2/foo.cpp | Costallat/hunter | dc0d79cb37b30cad6d6472d7143fe27be67e26d5 | [
"BSD-2-Clause"
] | 2,146 | 2015-01-10T07:26:58.000Z | 2022-03-21T02:28:01.000Z | examples/re2/foo.cpp | koinos/hunter | fc17bc391210bf139c55df7f947670c5dff59c57 | [
"BSD-2-Clause"
] | 1,778 | 2015-01-03T11:50:30.000Z | 2019-12-26T05:31:20.000Z | examples/re2/foo.cpp | koinos/hunter | fc17bc391210bf139c55df7f947670c5dff59c57 | [
"BSD-2-Clause"
] | 734 | 2015-03-05T19:52:34.000Z | 2022-02-22T23:18:54.000Z | #include <re2/re2.h>
int main() {
}
| 7.4 | 20 | 0.567568 | Costallat |
50f72987195c1135bc42e48dcc76495219ed1529 | 1,536 | hh | C++ | fluids/navier_stokes_2d.hh | jpanikulam/experiments | be36319a89f8baee54d7fa7618b885edb7025478 | [
"MIT"
] | 1 | 2019-04-14T11:40:28.000Z | 2019-04-14T11:40:28.000Z | fluids/navier_stokes_2d.hh | IJDykeman/experiments-1 | 22badf166b2ea441e953939463f751020b8c251b | [
"MIT"
] | 5 | 2018-04-18T13:54:29.000Z | 2019-08-22T20:04:17.000Z | fluids/navier_stokes_2d.hh | IJDykeman/experiments-1 | 22badf166b2ea441e953939463f751020b8c251b | [
"MIT"
] | 1 | 2018-12-24T03:45:47.000Z | 2018-12-24T03:45:47.000Z | #pragma once
#include "eigen.hh"
namespace jcc {
namespace fluids {
namespace plane {
struct SimulationConfig {
// Pressure constant
double rho = 1e3;
// Viscosity
double nu = 0.9;
// Grid spacing
double dx = 1e-2;
// Time step
double dt = 1e-5;
};
struct SimulationState {
Eigen::MatrixXd press... | 26.482759 | 115 | 0.64388 | jpanikulam |
50ff3f5cd2efc9b268d82004c17bec7bf0f3d781 | 907 | cpp | C++ | tcmplx-access-plus/api.cpp | codylico/text-complex-plus | 4d71d8ce86375cae69e326bfb7f9bb57768e508c | [
"Unlicense"
] | null | null | null | tcmplx-access-plus/api.cpp | codylico/text-complex-plus | 4d71d8ce86375cae69e326bfb7f9bb57768e508c | [
"Unlicense"
] | null | null | null | tcmplx-access-plus/api.cpp | codylico/text-complex-plus | 4d71d8ce86375cae69e326bfb7f9bb57768e508c | [
"Unlicense"
] | null | null | null | /*
* \file tcmplx-access-plus/api.cpp
* \brief API-wide declarations for text-complex
* \author Cody Licorish (svgmovement@gmail.com)
*/
#define TCMPLX_AP_WIN32_DLL_INTERNAL
#include "api.hpp"
namespace text_complex {
namespace access {
//BEGIN configurations
char const* api_version(void) noexcept {
... | 24.513514 | 53 | 0.641676 | codylico |
dd03b44d009fc81f3ad7faad733cef61912fedf1 | 993 | cpp | C++ | Molecularity/Tool/Tool_Convert.cpp | kyle-robinson/directx-game | ff5964a6edd3241b703409976f27d68205b9ddd3 | [
"CC-BY-4.0"
] | 1 | 2021-06-14T22:44:01.000Z | 2021-06-14T22:44:01.000Z | Molecularity/Tool/Tool_Convert.cpp | kyle-robinson/directx-game | ff5964a6edd3241b703409976f27d68205b9ddd3 | [
"CC-BY-4.0"
] | null | null | null | Molecularity/Tool/Tool_Convert.cpp | kyle-robinson/directx-game | ff5964a6edd3241b703409976f27d68205b9ddd3 | [
"CC-BY-4.0"
] | 1 | 2021-06-04T12:44:06.000Z | 2021-06-04T12:44:06.000Z | #include "stdafx.h"
#include "Tool_Convert.h"
Tool_Convert::Tool_Convert()
{
EnergyCost = 25;
CurrentType = BoxType::Mesh;
MaxNumber = 2;
MinNumber = 0;
ChangeCurrent( 0 );
}
Tool_Convert::~Tool_Convert()
{ }
void Tool_Convert::ChangeCurrent( int number )
{
if ( number > MaxNumber )
number = MinNumber;
else... | 17.12069 | 52 | 0.698892 | kyle-robinson |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.