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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6adecafe2b758935fe01c35eb3c3f679b3d86ebe | 3,146 | cpp | C++ | catboost/cuda/cuda_lib/cuda_manager.cpp | mityada/test2 | 00df18ecbac8fb724c06b68474df067e81a3d7dd | [
"Apache-2.0"
] | null | null | null | catboost/cuda/cuda_lib/cuda_manager.cpp | mityada/test2 | 00df18ecbac8fb724c06b68474df067e81a3d7dd | [
"Apache-2.0"
] | null | null | null | catboost/cuda/cuda_lib/cuda_manager.cpp | mityada/test2 | 00df18ecbac8fb724c06b68474df067e81a3d7dd | [
"Apache-2.0"
] | 1 | 2018-08-06T14:13:12.000Z | 2018-08-06T14:13:12.000Z | #include "cuda_manager.h"
#include "cuda_profiler.h"
#include <catboost/cuda/cuda_lib/tasks_impl/single_host_memory_copy_tasks.h>
using namespace NCudaLib;
void TCudaManager::CreateProfiler() {
Profiler = new TCudaProfiler;
}
TCudaManager::~TCudaManager() {
Y_VERIFY(Profiler == nullptr, "Reset profile before... | 31.148515 | 104 | 0.641132 | mityada |
6adf152f2f8e2fc78e4b5a2d28a2b547d5c487dd | 2,602 | cpp | C++ | src/runtime_src/core/pcie/common/system_pcie.cpp | cellery/XRT | a5c908d18dd8cd99d922ec8c847f869477d21079 | [
"Apache-2.0"
] | null | null | null | src/runtime_src/core/pcie/common/system_pcie.cpp | cellery/XRT | a5c908d18dd8cd99d922ec8c847f869477d21079 | [
"Apache-2.0"
] | null | null | null | src/runtime_src/core/pcie/common/system_pcie.cpp | cellery/XRT | a5c908d18dd8cd99d922ec8c847f869477d21079 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2019 Xilinx, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may
* not use this file except in compliance with the License. A copy of the
* License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 28.911111 | 92 | 0.656034 | cellery |
6ae0da4e82f7f4bbb6f49165dad6999532ebeea9 | 211 | hpp | C++ | include/generic/math/algorithm.hpp | shikanle/gfx | 772db3ddd66c294beaf17319f6b3803abe3ce0df | [
"Apache-2.0"
] | 4 | 2022-01-06T14:06:03.000Z | 2022-01-07T01:13:58.000Z | include/generic/math/algorithm.hpp | shikanle/gfx | 772db3ddd66c294beaf17319f6b3803abe3ce0df | [
"Apache-2.0"
] | null | null | null | include/generic/math/algorithm.hpp | shikanle/gfx | 772db3ddd66c294beaf17319f6b3803abe3ce0df | [
"Apache-2.0"
] | null | null | null | #pragma once
namespace gfx {
namespace generic {
template <typename float_system>
class algorithm {
public:
typedef float_system float_system_t;
typedef typename float_system::float_t float_t;
};
}
}
| 14.066667 | 51 | 0.758294 | shikanle |
6ae1a9022737b064b4d83fedb92ce2e5ee877405 | 852 | cpp | C++ | ONLINE JUDGE/LeetCode/#84-Largest_area_Histogram.cpp | theneek14/C-plus-plus-Algorithms | ee265db0f24fcc91c8df0c5c584b651e07c4886e | [
"MIT"
] | 21 | 2020-10-03T03:57:19.000Z | 2022-03-25T22:41:05.000Z | ONLINE JUDGE/LeetCode/#84-Largest_area_Histogram.cpp | theneek14/C-plus-plus-Algorithms | ee265db0f24fcc91c8df0c5c584b651e07c4886e | [
"MIT"
] | 40 | 2020-10-02T07:02:34.000Z | 2021-10-30T16:00:07.000Z | ONLINE JUDGE/LeetCode/#84-Largest_area_Histogram.cpp | theneek14/C-plus-plus-Algorithms | ee265db0f24fcc91c8df0c5c584b651e07c4886e | [
"MIT"
] | 90 | 2020-10-02T07:06:22.000Z | 2022-03-25T22:41:17.000Z | //https://leetcode.com/problems/largest-rectangle-in-histogram/
class Solution {
public:
int largestRectangleArea(vector<int>& heights) {
stack<int>s;
int area_with_top=0;
int area=0;
int i=0;
int n=heights.size();
while(i<n){
if(s.empty() || heights[s.to... | 26.625 | 68 | 0.450704 | theneek14 |
6aebe6525be97d55d023b8dcf1e00f5e12668c45 | 3,278 | cpp | C++ | Source/bin/opennwa/print-stats.cpp | jusito/WALi-OpenNWA | 2bb4aca02c5a5d444fd038e8aa3eecd7d1ccbb99 | [
"MIT"
] | 15 | 2015-03-07T17:25:57.000Z | 2022-02-04T20:17:00.000Z | src/wpds/Source/bin/opennwa/print-stats.cpp | ucd-plse/mpi-error-prop | 4367df88bcdc4d82c9a65b181d0e639d04962503 | [
"BSD-3-Clause"
] | 1 | 2018-03-03T05:58:55.000Z | 2018-03-03T12:26:10.000Z | src/wpds/Source/bin/opennwa/print-stats.cpp | ucd-plse/mpi-error-prop | 4367df88bcdc4d82c9a65b181d0e639d04962503 | [
"BSD-3-Clause"
] | 15 | 2015-09-25T17:44:35.000Z | 2021-07-18T18:25:38.000Z | #include <iostream>
#include <vector>
#include <string>
#include <cstdlib>
#include <fstream>
#include "opennwa/Nwa.hpp"
#include "opennwa/NwaParser.hpp"
#include "opennwa/query/automaton.hpp"
using std::string;
using std::ifstream;
using std::ofstream;
using std::cout;
using std::cerr;
using std::endl... | 38.116279 | 97 | 0.458206 | jusito |
6aedd8614c34c50d9a153f367f5d6875ff09208c | 7,512 | cpp | C++ | tests/envelope/envelope_segment_tests.cpp | Frank-Krick/fr-musp | 4f8f8e4764fd411158e63e4b37d6285d8e1a2885 | [
"MIT"
] | null | null | null | tests/envelope/envelope_segment_tests.cpp | Frank-Krick/fr-musp | 4f8f8e4764fd411158e63e4b37d6285d8e1a2885 | [
"MIT"
] | null | null | null | tests/envelope/envelope_segment_tests.cpp | Frank-Krick/fr-musp | 4f8f8e4764fd411158e63e4b37d6285d8e1a2885 | [
"MIT"
] | null | null | null | #include <catch2/catch_test_macros.hpp>
#include <fr_musp/envelope/envelope_segment.h>
using namespace fr_musp::envelope;
using namespace std::chrono;
using namespace Catch;
TEST_CASE("The empty envelope segment") {
EnvelopeSegment envelopeSegment;
SECTION("Should be size 0") {
REQUIRE(envelopeSegme... | 30.536585 | 73 | 0.622737 | Frank-Krick |
6aeec1f47e524c8b0b28f947348e2e59f4cd7de3 | 1,177 | cpp | C++ | tests/utils/test_partitioning.cpp | FreshDISKANN/FreshDISKANN | c7750ed7ae2df202b3f3a98477199963245c8ba7 | [
"MIT"
] | 6 | 2020-10-13T11:30:53.000Z | 2021-12-03T15:50:15.000Z | tests/utils/test_partitioning.cpp | FreshDISKANN/FreshDISKANN | c7750ed7ae2df202b3f3a98477199963245c8ba7 | [
"MIT"
] | null | null | null | tests/utils/test_partitioning.cpp | FreshDISKANN/FreshDISKANN | c7750ed7ae2df202b3f3a98477199963245c8ba7 | [
"MIT"
] | 3 | 2020-10-13T11:30:55.000Z | 2021-12-02T14:29:42.000Z | //#include <distances.h>
//#include <indexing.h>
#include <index.h>
#include <math_utils.h>
#include "partition_and_pq.h"
// DEPRECATED: NEED TO REPROGRAM
int main(int argc, char** argv) {
auto s = std::chrono::high_resolution_clock::now();
if (argc != 8) {
std::cout << argv[0]
<< " format: dat... | 34.617647 | 80 | 0.598131 | FreshDISKANN |
6aef1dd615b2fcaa3338b0757aeccf81676b8146 | 845 | cpp | C++ | Aoba/src/Constraint/Constraint.cpp | KondoA9/OpenSiv3d-GUIKit | 355b2e7940bf00a8ef5fc3001243e450dccdeab9 | [
"MIT"
] | null | null | null | Aoba/src/Constraint/Constraint.cpp | KondoA9/OpenSiv3d-GUIKit | 355b2e7940bf00a8ef5fc3001243e450dccdeab9 | [
"MIT"
] | 32 | 2021-10-09T10:04:11.000Z | 2022-02-25T06:10:13.000Z | Aoba/src/Constraint/Constraint.cpp | athnomedical/Aoba | 355b2e7940bf00a8ef5fc3001243e450dccdeab9 | [
"MIT"
] | null | null | null | #include "Aoba/Constraint.hpp"
namespace s3d::aoba {
void Constraint::setConstraint(double constant, double multiplier) {
m_constant = constant;
m_multiplier = multiplier;
m_exists = true;
}
void Constraint::setConstraint(double* const watchingValue, double constant, double ... | 30.178571 | 109 | 0.623669 | KondoA9 |
6af04d8ebae37eb836509402d8cec780054ef609 | 6,081 | cpp | C++ | test/test_parallel.cpp | melven/pitts | 491f503a99a7d1161a27672955ae53ca6b5d3412 | [
"BSD-3-Clause"
] | 2 | 2021-12-31T08:28:17.000Z | 2022-01-12T14:48:49.000Z | test/test_parallel.cpp | melven/pitts | 491f503a99a7d1161a27672955ae53ca6b5d3412 | [
"BSD-3-Clause"
] | null | null | null | test/test_parallel.cpp | melven/pitts | 491f503a99a7d1161a27672955ae53ca6b5d3412 | [
"BSD-3-Clause"
] | null | null | null | #include <gtest/gtest.h>
#include "pitts_parallel.hpp"
namespace
{
// helper function to determine the currently default number of threads in a parallel region
int get_default_num_threads()
{
int numThreads = 1;
#pragma omp parallel
{
#pragma omp critical (PITTS_TEST_PARALLEL)
numThreads = omp_get_... | 25.766949 | 112 | 0.659924 | melven |
6af5230f6d4614cdc323851415a78e41522b15c9 | 1,431 | cpp | C++ | stm32f429-ram/Src/PAW_3D_Projection.cpp | sterowniki-robotow-projekt/main-repo | 744252ffa1cc05c18705d3ea5ec0b725f4b62759 | [
"MIT"
] | null | null | null | stm32f429-ram/Src/PAW_3D_Projection.cpp | sterowniki-robotow-projekt/main-repo | 744252ffa1cc05c18705d3ea5ec0b725f4b62759 | [
"MIT"
] | null | null | null | stm32f429-ram/Src/PAW_3D_Projection.cpp | sterowniki-robotow-projekt/main-repo | 744252ffa1cc05c18705d3ea5ec0b725f4b62759 | [
"MIT"
] | null | null | null | #include "PAW_3D_Projection.h"
PAW_Vector project_3D_to_2D(const PAW_Vector point_position)
{
PAW_Vector r_value(4);
PAW_Matrix P(4);
P = projection_matrix(0.0f, 239.0f, 0.0f, 319.0f, 160.0f, 0.0f);
PAW_Matrix Rx(4, 1.0f), Ry(4, 1.0f), Rz(4, 1.0f), Rx2(4, 1.0f);
Rx.to_rotation_matrix(y, z, 0 * 0.0f); //x r... | 30.446809 | 137 | 0.658281 | sterowniki-robotow-projekt |
6af6955d87d82480808275c49a9b88a2f00ee55e | 585 | hpp | C++ | include/ActuationSystem.hpp | AhmedHumais/flight_controller_temp | 2836b4f99b76e856ef0ba0e7ee673669c1c3db7b | [
"BSD-3-Clause"
] | null | null | null | include/ActuationSystem.hpp | AhmedHumais/flight_controller_temp | 2836b4f99b76e856ef0ba0e7ee673669c1c3db7b | [
"BSD-3-Clause"
] | null | null | null | include/ActuationSystem.hpp | AhmedHumais/flight_controller_temp | 2836b4f99b76e856ef0ba0e7ee673669c1c3db7b | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include "common_srv/MsgEmitter.hpp"
#include "common_srv/MsgReceiver.hpp"
#include "Actuator.hpp"
#include <vector>
#include "common_srv/Block.hpp"
class ActuationSystem : public MsgEmitter, public Block{
public:
virtual void receiveMsgData(DataMessage* t_msg) = 0;
ActuationSystem(std::ve... | 24.375 | 56 | 0.700855 | AhmedHumais |
6af9d02de8b6d27999b35e9b533fbd051c38b7b2 | 114 | cpp | C++ | unit_test/cuda/Test_Cuda_Batched_SerialMatUtil_Real.cpp | dialecticDolt/kokkos-kernels | 00189c0be23a70979aeaa162f0abd4c0e4d1c479 | [
"BSD-3-Clause"
] | 156 | 2017-03-01T23:38:10.000Z | 2022-03-27T21:28:03.000Z | unit_test/cuda/Test_Cuda_Batched_SerialMatUtil_Real.cpp | dialecticDolt/kokkos-kernels | 00189c0be23a70979aeaa162f0abd4c0e4d1c479 | [
"BSD-3-Clause"
] | 1,257 | 2017-03-03T15:25:16.000Z | 2022-03-31T19:46:09.000Z | unit_test/cuda/Test_Cuda_Batched_SerialMatUtil_Real.cpp | dialecticDolt/kokkos-kernels | 00189c0be23a70979aeaa162f0abd4c0e4d1c479 | [
"BSD-3-Clause"
] | 76 | 2017-03-01T17:03:59.000Z | 2022-03-03T21:04:41.000Z | #include "Test_Cuda.hpp"
#include "Test_Batched_SerialMatUtil.hpp"
#include "Test_Batched_SerialMatUtil_Real.hpp"
| 28.5 | 46 | 0.842105 | dialecticDolt |
1390a4ac5c31a33c204aaee203b53eca5dbe0338 | 2,539 | hpp | C++ | Includes/Rosetta/Battlegrounds/Cards/Card.hpp | Hearthstonepp/Hearthstonepp | ee17ae6de1ee0078dab29d75c0fbe727a14e850e | [
"MIT"
] | 62 | 2017-08-21T14:11:00.000Z | 2018-04-23T16:09:02.000Z | Includes/Rosetta/Battlegrounds/Cards/Card.hpp | Hearthstonepp/Hearthstonepp | ee17ae6de1ee0078dab29d75c0fbe727a14e850e | [
"MIT"
] | 37 | 2017-08-21T11:13:07.000Z | 2018-04-30T08:58:41.000Z | Includes/Rosetta/Battlegrounds/Cards/Card.hpp | Hearthstonepp/Hearthstonepp | ee17ae6de1ee0078dab29d75c0fbe727a14e850e | [
"MIT"
] | 10 | 2017-08-21T03:44:12.000Z | 2018-01-10T22:29:10.000Z | // Copyright (c) 2019 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
// We are making my contributions/submissions to this project solely in our
// personal capacity and are not conveying any rights to any intellectual
// property of any third parties.
#ifndef ROSETTASTONE_BATTLEGROUNDS_CARD_HPP
#define ROSETTASTONE_BATTL... | 28.211111 | 77 | 0.704608 | Hearthstonepp |
1392513fd74497e6282b84bbde11025458e2c6b8 | 8,437 | cpp | C++ | ui/src/audiobar.cpp | hveld/qlcplus | 1dd61a5a3a2c93d7fe88cd2a90574c4849b64829 | [
"Apache-2.0"
] | 1 | 2015-03-03T17:30:10.000Z | 2015-03-03T17:30:10.000Z | ui/src/audiobar.cpp | bjlupo/rcva_qlcplus | d367d33f5446c30d5201625e72946cc27f55ae5d | [
"Apache-2.0"
] | null | null | null | ui/src/audiobar.cpp | bjlupo/rcva_qlcplus | d367d33f5446c30d5201625e72946cc27f55ae5d | [
"Apache-2.0"
] | null | null | null | /*
Q Light Controller Plus
audiobar.cpp
Copyright (c) Massimo Callegari
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.txt
Unless r... | 27.937086 | 97 | 0.596065 | hveld |
139370d3d074b2d45342eca6ee94d72757b4e0ec | 3,654 | cpp | C++ | src/jc/JMap.cpp | andrelo1/gotobed-ae | 9b2001e89de0ac479e9b979f01fa3a6475c8cd79 | [
"MIT"
] | 1 | 2022-03-03T17:01:38.000Z | 2022-03-03T17:01:38.000Z | src/jc/JMap.cpp | andrelo1/gotobed-ae | 9b2001e89de0ac479e9b979f01fa3a6475c8cd79 | [
"MIT"
] | null | null | null | src/jc/JMap.cpp | andrelo1/gotobed-ae | 9b2001e89de0ac479e9b979f01fa3a6475c8cd79 | [
"MIT"
] | null | null | null | #include "JMap.h"
#include "jcapistorage.h"
namespace jc::JMap
{
using ApiStorage = jc::api::detail::Storage;
std::int32_t object(void* a_domain)
{
return ApiStorage::get().JMap_object(a_domain);
}
std::int32_t getInt(void* a_domain, std::int32_t a_obj, RE::BSFixedString a_key, std::int32_t a_default)
{
re... | 31.230769 | 123 | 0.735632 | andrelo1 |
139880d9c286eb56c01c125e9c8f234ee9328a71 | 1,632 | hpp | C++ | module-utils/log/api/log/debug.hpp | GravisZro/MuditaOS | 4230da15e69350c3ef9e742ec587e5f70154fabd | [
"BSL-1.0"
] | 369 | 2021-11-10T09:20:29.000Z | 2022-03-30T06:36:58.000Z | module-utils/log/api/log/debug.hpp | GravisZro/MuditaOS | 4230da15e69350c3ef9e742ec587e5f70154fabd | [
"BSL-1.0"
] | 149 | 2021-11-10T08:38:35.000Z | 2022-03-31T23:01:52.000Z | module-utils/log/api/log/debug.hpp | GravisZro/MuditaOS | 4230da15e69350c3ef9e742ec587e5f70154fabd | [
"BSL-1.0"
] | 41 | 2021-11-10T08:30:37.000Z | 2022-03-29T08:12:46.000Z | // Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#define DEBUG_APPLICATION_MANAGEMENT 0 /// show verbose logs in ApplicationManager
#define DEBUG_SCOPED_TIMINGS 0 /// show timings in measured functions
#define D... | 70.956522 | 116 | 0.723652 | GravisZro |
139e6c379b1a3be486138727e769472c69ff126c | 998 | hpp | C++ | include/XP++/Exceptions/XPException.hpp | Andy260/xp-plus-plus | 48f469d333eb50c0d7a4c914644217639084fda6 | [
"MIT"
] | null | null | null | include/XP++/Exceptions/XPException.hpp | Andy260/xp-plus-plus | 48f469d333eb50c0d7a4c914644217639084fda6 | [
"MIT"
] | null | null | null | include/XP++/Exceptions/XPException.hpp | Andy260/xp-plus-plus | 48f469d333eb50c0d7a4c914644217639084fda6 | [
"MIT"
] | null | null | null | #pragma once
// STL includes
#include <exception>
#include <string>
namespace XP
{
/// <summary>
/// Thrown when an error was encountered while calling X-Plane SDK functions
/// </summary>
class XPException : public std::exception
{
public:
/// <summary>
/// Constructs new a XPException
/// </summary>
/... | 26.263158 | 83 | 0.690381 | Andy260 |
13aa76b5e45608ad84cea2bdfb10da10f39159d2 | 6,280 | cpp | C++ | src/reyes/reyes_virtual_machine/not_equal.cpp | cwbaker/sweet_render | 259830adba09fabe4de2eef3537f4a95828965d3 | [
"MIT"
] | 9 | 2019-01-10T21:37:24.000Z | 2021-05-26T23:59:05.000Z | src/reyes/reyes_virtual_machine/not_equal.cpp | cwbaker/sweet_render | 259830adba09fabe4de2eef3537f4a95828965d3 | [
"MIT"
] | null | null | null | src/reyes/reyes_virtual_machine/not_equal.cpp | cwbaker/sweet_render | 259830adba09fabe4de2eef3537f4a95828965d3 | [
"MIT"
] | 1 | 2018-09-05T01:40:09.000Z | 2018-09-05T01:40:09.000Z | //
// not_equal.cpp
// Copyright (c) Charles Baker. All rights reserved.
//
#include "not_equal.hpp"
#include "Dispatch.hpp"
#include "Instruction.hpp"
#include <reyes/assert.hpp>
namespace reyes
{
void not_equal_u1u1( int* result, const float* lhs, const float* rhs, unsigned int /*length*/ )
{
result[0] = lhs[0... | 27.423581 | 100 | 0.516401 | cwbaker |
13aac82aaf1ba28bd4dcdb9f906f134ccc9a9eac | 314 | hpp | C++ | framework/MatrixInterpolation.hpp | aosterthun/rgbdri | 8e513172f512c902f7d6d8631c7580b5b62277c4 | [
"MIT"
] | null | null | null | framework/MatrixInterpolation.hpp | aosterthun/rgbdri | 8e513172f512c902f7d6d8631c7580b5b62277c4 | [
"MIT"
] | null | null | null | framework/MatrixInterpolation.hpp | aosterthun/rgbdri | 8e513172f512c902f7d6d8631c7580b5b62277c4 | [
"MIT"
] | null | null | null | #ifndef GLM_MATRIXINTERPOLATION_H
#define GLM_MATRIXINTERPOLATION_H
#define GLM_FORCE_RADIANS
#include <glm/glm.hpp>
#include <glm/gtc/quaternion.hpp>
#include <glm/gtc/matrix_transform.hpp>
glm::mat4 interpolate(const glm::mat4& a, const glm::mat4& b, float t);
#endif // #ifndef GLM_MATRIXINTERPOLATION_H
| 19.625 | 71 | 0.780255 | aosterthun |
13ac348230a5f4c53e58a86c9009f598b0734dc6 | 690 | cpp | C++ | source/mazegenerator/DistanceGrid.cpp | danielplawrence/MazeGeneration | d9d0e878c94226aa379e6ee2a2681f1c99b2f792 | [
"Unlicense"
] | null | null | null | source/mazegenerator/DistanceGrid.cpp | danielplawrence/MazeGeneration | d9d0e878c94226aa379e6ee2a2681f1c99b2f792 | [
"Unlicense"
] | null | null | null | source/mazegenerator/DistanceGrid.cpp | danielplawrence/MazeGeneration | d9d0e878c94226aa379e6ee2a2681f1c99b2f792 | [
"Unlicense"
] | null | null | null |
#include <mazegenerator/DistanceGrid.h>
#include <algorithm>
std::tuple<int, int, int, int, Color> DistanceGrid::contentsOf(CellPtr cell, int cellSize) {
if (distances == nullptr) {
return {};
}
auto location = cell->getLocation();
auto x1 = location.second * cellSize;
auto y1 = location.first * cellSi... | 30 | 92 | 0.646377 | danielplawrence |
13ad1f3cb8a403eddb1d3563f437812f2230cb6c | 3,188 | cpp | C++ | Ouroboros/Source/oLauncher/oLauncher.cpp | jiangzhu1212/oooii | fc00ff81e74adaafd9c98ba7c055f55d95a36e3b | [
"MIT"
] | null | null | null | Ouroboros/Source/oLauncher/oLauncher.cpp | jiangzhu1212/oooii | fc00ff81e74adaafd9c98ba7c055f55d95a36e3b | [
"MIT"
] | null | null | null | Ouroboros/Source/oLauncher/oLauncher.cpp | jiangzhu1212/oooii | fc00ff81e74adaafd9c98ba7c055f55d95a36e3b | [
"MIT"
] | null | null | null | // Copyright (c) 2014 Antony Arciuolo. See License.txt regarding use.
#include <oBase/throw.h>
#include <oString/opttok.h>
#include <oGUI/msgbox.h>
//#include <oPlatform/oVersionUpdate.h>
using namespace ouro;
static option sCmdOptions[] =
{
{ 'w', "launcher-wait", "process-id", "Wait for process to ter... | 33.557895 | 276 | 0.668758 | jiangzhu1212 |
13ae6c1d193c6b9c313226f1722ce9b72f6f5b0e | 1,625 | cpp | C++ | CF/contests/670d2/d.cpp | death-shadow/Competitive-Coding-Solutions | fc4f7cbcac275d263f3356e2cc901e676b97c257 | [
"MIT"
] | 2 | 2019-07-12T14:56:19.000Z | 2020-05-01T20:04:41.000Z | CF/contests/670d2/d.cpp | death-shadow/Competitive-Coding-Solutions | fc4f7cbcac275d263f3356e2cc901e676b97c257 | [
"MIT"
] | 7 | 2020-09-21T16:52:23.000Z | 2020-11-07T09:12:24.000Z | CF/contests/670d2/d.cpp | death-shadow/Competitive-Coding-Solutions | fc4f7cbcac275d263f3356e2cc901e676b97c257 | [
"MIT"
] | 5 | 2020-10-01T16:51:49.000Z | 2020-10-02T06:00:56.000Z | #include <bits/stdc++.h>
#define FAST_IO ios_base::sync_with_stdio(false); cin.tie(NULL)
#define endl "\n"
#define CPrint(c) for(auto i:(c)) { cout<<i<<" "; } nl
#define eb emplace_back
#define ef emplace_front
#define pb push_back
#define pf push_front
#define popb pop_back
#define popf pop_front
#define mp ... | 22.260274 | 105 | 0.626462 | death-shadow |
13affb5f7fd1824bbfae9033c7b7dd8f3a4c2865 | 82,300 | cpp | C++ | external/openglcts/modules/common/glcPackedDepthStencilTests.cpp | tarceri/VK-GL-CTS | 22389a0e44f458492f594ca0553a5a67cf6c7ada | [
"Apache-2.0"
] | 20 | 2019-04-18T07:37:34.000Z | 2022-02-02T21:43:47.000Z | external/openglcts/modules/common/glcPackedDepthStencilTests.cpp | tarceri/VK-GL-CTS | 22389a0e44f458492f594ca0553a5a67cf6c7ada | [
"Apache-2.0"
] | 11 | 2019-10-21T13:39:41.000Z | 2021-11-05T08:11:54.000Z | external/openglcts/modules/common/glcPackedDepthStencilTests.cpp | tarceri/VK-GL-CTS | 22389a0e44f458492f594ca0553a5a67cf6c7ada | [
"Apache-2.0"
] | 1 | 2021-12-03T18:11:36.000Z | 2021-12-03T18:11:36.000Z | /*-------------------------------------------------------------------------
* OpenGL Conformance Test Suite
* -----------------------------
*
* Copyright (c) 2017 The Khronos Group Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the L... | 29.721921 | 117 | 0.728493 | tarceri |
13b2390b822b62ab1474de3490808be550991b84 | 1,550 | cpp | C++ | ipc/src/platform/win32/win_semaphore.cpp | c-liang/inter-process-communication | 3ce322a425808f6c7ab180b335cbf4cdc02f121a | [
"MIT"
] | 1 | 2021-01-05T08:50:57.000Z | 2021-01-05T08:50:57.000Z | ipc/src/platform/win32/win_semaphore.cpp | c-liang/inter-process-communication | 3ce322a425808f6c7ab180b335cbf4cdc02f121a | [
"MIT"
] | null | null | null | ipc/src/platform/win32/win_semaphore.cpp | c-liang/inter-process-communication | 3ce322a425808f6c7ab180b335cbf4cdc02f121a | [
"MIT"
] | null | null | null | #include "win_semaphore.h"
#include "pch.h"
_IPC_BEGIN
Semaphore::Semaphore(std::wstring const& const name) : semaphore_name(name) {}
Semaphore::~Semaphore() {
this->close();
}
auto Semaphore::create() -> HRESULT {
// disable security
SECURITY_ATTRIBUTES sa;
SECURITY_DESCRIPTOR sd;
InitializeSecurityDescri... | 25 | 80 | 0.694839 | c-liang |
13b43e0aea82e83147f200372dead373675e5bfa | 9,048 | cpp | C++ | VS2005/GeneralCtrl/DxButton.cpp | cuongquay/led-matrix-display | 6dd0e3be9ee23862610dab7b0d40970c6900e5e4 | [
"Apache-2.0"
] | null | null | null | VS2005/GeneralCtrl/DxButton.cpp | cuongquay/led-matrix-display | 6dd0e3be9ee23862610dab7b0d40970c6900e5e4 | [
"Apache-2.0"
] | null | null | null | VS2005/GeneralCtrl/DxButton.cpp | cuongquay/led-matrix-display | 6dd0e3be9ee23862610dab7b0d40970c6900e5e4 | [
"Apache-2.0"
] | 1 | 2020-06-13T08:34:26.000Z | 2020-06-13T08:34:26.000Z | // DxButton.cpp : implementation file
//
#include "stdafx.h"
#include "DxButton.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDxButton
CDxButton::CDxButton()
{
m_... | 22.790932 | 99 | 0.65252 | cuongquay |
13b785434c604bb265b59a736c395c088dbb5539 | 5,658 | cpp | C++ | recolumn.cpp | shawnw/unicode-text-utils | 9bf33bfe367c0bf81f1574bb632fe38747af6668 | [
"MIT"
] | null | null | null | recolumn.cpp | shawnw/unicode-text-utils | 9bf33bfe367c0bf81f1574bb632fe38747af6668 | [
"MIT"
] | null | null | null | recolumn.cpp | shawnw/unicode-text-utils | 9bf33bfe367c0bf81f1574bb632fe38747af6668 | [
"MIT"
] | null | null | null | /*
* Copyright © 2021 Shawn Wagner
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the “Software”), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish,... | 29.015385 | 80 | 0.610817 | shawnw |
13b7896a8048225540c73ee7b5c88a6c9598b4c5 | 2,874 | hpp | C++ | source/nth_fibonacci_number.hpp | pawel-kieliszczyk/algorithms | 0703ec99ce9fb215709b56fb0eefbdd576c71ed2 | [
"MIT"
] | null | null | null | source/nth_fibonacci_number.hpp | pawel-kieliszczyk/algorithms | 0703ec99ce9fb215709b56fb0eefbdd576c71ed2 | [
"MIT"
] | null | null | null | source/nth_fibonacci_number.hpp | pawel-kieliszczyk/algorithms | 0703ec99ce9fb215709b56fb0eefbdd576c71ed2 | [
"MIT"
] | null | null | null | #ifndef PK_NTHFIBONACCINUMBER_HPP
#define PK_NTHFIBONACCINUMBER_HPP
#include <algorithm>
namespace pk
{
int nth_fibonacci_number(int n)
{
if(n == 0)
return 0;
int m_prev[2][2] = {{1, 0}, {0, 1}};
int m_next[2][2];
int (*m_prev_p)[2] = m_prev;
int (*m_next_p)[2] = m_next;
int c_n... | 27.371429 | 103 | 0.504175 | pawel-kieliszczyk |
13b81957e3c23335c4e4f5dfeae6f4c204624eb5 | 10,759 | cpp | C++ | project/source/game/panels/SaveLoadPanel.cpp | ntnt/carpg | f26c43c76d39f2ec2c51bd929f1b85f3c5197337 | [
"MIT"
] | 1 | 2016-04-30T15:34:11.000Z | 2016-04-30T15:34:11.000Z | project/source/game/panels/SaveLoadPanel.cpp | ntnt/carpg | f26c43c76d39f2ec2c51bd929f1b85f3c5197337 | [
"MIT"
] | null | null | null | project/source/game/panels/SaveLoadPanel.cpp | ntnt/carpg | f26c43c76d39f2ec2c51bd929f1b85f3c5197337 | [
"MIT"
] | 1 | 2018-11-30T23:32:58.000Z | 2018-11-30T23:32:58.000Z | #include "Pch.h"
#include "GameCore.h"
#include "SaveLoadPanel.h"
#include "SaveState.h"
#include "Language.h"
#include "KeyStates.h"
#include "Class.h"
#include "Scrollbar.h"
#include "Net.h"
#include "World.h"
#include "Level.h"
#include "Game.h"
#include "GlobalGui.h"
#include "GetTextDialog.h"
#include "GameMenu.h"... | 25.555819 | 115 | 0.549215 | ntnt |
13b822e2ff9202767f156fd5308495b394ca2378 | 241 | hpp | C++ | src/adjustment/rotate.hpp | corneliusyan/Protoshop | 66fb204554822e6da6416f495622a2b7d5be73ec | [
"MIT"
] | 1 | 2020-09-23T19:18:23.000Z | 2020-09-23T19:18:23.000Z | src/adjustment/rotate.hpp | corneliusyan/Protoshop | 66fb204554822e6da6416f495622a2b7d5be73ec | [
"MIT"
] | null | null | null | src/adjustment/rotate.hpp | corneliusyan/Protoshop | 66fb204554822e6da6416f495622a2b7d5be73ec | [
"MIT"
] | 2 | 2020-09-15T13:52:59.000Z | 2021-12-15T02:44:36.000Z | #ifndef PROTOSHOP_ADJUSTMENT_ROTATE
#define PROTOSHOP_ADJUSTMENT_ROTATE
#include "base.hpp"
class AdjustmentRotate : public Adjustment {
public:
static void rotate90CCW(Image* target);
static void rotate90CW(Image* target);
};
#endif
| 18.538462 | 44 | 0.792531 | corneliusyan |
13ba4210c70a9164a07606e01c1b43e3e9a45206 | 10,144 | cpp | C++ | Chapter16/FDMCPPBOOK2004/ParabolicFDM.cpp | alamlam1982/fincpp | 470469d35d90fc0fde96f119e329aedbc5f68f89 | [
"CECILL-B"
] | null | null | null | Chapter16/FDMCPPBOOK2004/ParabolicFDM.cpp | alamlam1982/fincpp | 470469d35d90fc0fde96f119e329aedbc5f68f89 | [
"CECILL-B"
] | null | null | null | Chapter16/FDMCPPBOOK2004/ParabolicFDM.cpp | alamlam1982/fincpp | 470469d35d90fc0fde96f119e329aedbc5f68f89 | [
"CECILL-B"
] | null | null | null | // parabolicFDM.cpp
//
// Finite difference method for Parabolic PDE.
//
// Last modification dates:
//
// 2000-7-30 DD kick-off code. The member 'theta' is for a future version
// 2000-8-1 DD more improvements, specific use of Array code
// 2000-8-2 DD getting ready for Robert and Jasmin
// 2001-1-30 DD debugging and ... | 26.554974 | 121 | 0.651518 | alamlam1982 |
13bc7c9db02a800bd632b458194e37aabdeca05f | 3,760 | cpp | C++ | VST3 SDK/public.sdk/samples/vst/mda-vst3/source/mdaRingModProcessor.cpp | jagilley/MrsWatson | dd00b6a3740cce4bf7c10d3342d4742c7d1b4836 | [
"BSD-2-Clause"
] | 2 | 2020-10-25T09:03:03.000Z | 2021-06-24T13:20:01.000Z | VST3 SDK/public.sdk/samples/vst/mda-vst3/source/mdaRingModProcessor.cpp | jagilley/MrsWatson | dd00b6a3740cce4bf7c10d3342d4742c7d1b4836 | [
"BSD-2-Clause"
] | null | null | null | VST3 SDK/public.sdk/samples/vst/mda-vst3/source/mdaRingModProcessor.cpp | jagilley/MrsWatson | dd00b6a3740cce4bf7c10d3342d4742c7d1b4836 | [
"BSD-2-Clause"
] | 1 | 2021-12-18T06:30:51.000Z | 2021-12-18T06:30:51.000Z | /*
* mdaRingModProcessor.cpp
* mda-vst3
*
* Created by Arne Scheffler on 6/14/08.
*
* mda VST Plug-ins
*
* Copyright (c) 2008 Paul Kellett
*
* 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... | 29.606299 | 464 | 0.577394 | jagilley |
13c0bf59bb43fd5df9396767cca156db76a4f24a | 793 | cpp | C++ | src/SFECS/TagManager.cpp | allindevelopers/sfecs | f6ce97dbd5e3bcf90475c3d68bf33211db7a2fbe | [
"Zlib"
] | 1 | 2022-03-19T14:00:38.000Z | 2022-03-19T14:00:38.000Z | src/SFECS/TagManager.cpp | iamandrewluca/sfecs | f6ce97dbd5e3bcf90475c3d68bf33211db7a2fbe | [
"Zlib"
] | null | null | null | src/SFECS/TagManager.cpp | iamandrewluca/sfecs | f6ce97dbd5e3bcf90475c3d68bf33211db7a2fbe | [
"Zlib"
] | 1 | 2020-09-23T20:12:30.000Z | 2020-09-23T20:12:30.000Z | #include "SFECS/TagManager.hpp"
//#include "Manager.hpp"
#include "SFECS/Entity.hpp"
namespace sfecs {
TagManager::TagManager() {
//this->world = &world;
}
Entity& TagManager::getEntity(const std::string tag) {
return *tagByEntity[tag];
}
bool TagManager::isSubscribed(const std::string tag) {
return (tag... | 18.44186 | 56 | 0.656999 | allindevelopers |
13c6d47b53ee75816edaac3d4ad9dd683851b300 | 6,770 | cc | C++ | bootid-logger/bootid_logger.cc | dgreid/platform2 | 9b8b30df70623c94f1c8aa634dba94195343f37b | [
"BSD-3-Clause"
] | 4 | 2020-07-24T06:54:16.000Z | 2021-06-16T17:13:53.000Z | bootid-logger/bootid_logger.cc | dgreid/platform2 | 9b8b30df70623c94f1c8aa634dba94195343f37b | [
"BSD-3-Clause"
] | 1 | 2021-04-02T17:35:07.000Z | 2021-04-02T17:35:07.000Z | bootid-logger/bootid_logger.cc | dgreid/platform2 | 9b8b30df70623c94f1c8aa634dba94195343f37b | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2020 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <deque>
#include <fstream>
#include <sstream>
#include <string>
#include <utility>
#include <fcntl.h>
#include <stdio.h>
#include <sys/file.h... | 29.692982 | 79 | 0.666765 | dgreid |
13c88010fdb10ed41197f7db26bbc1c62f2434b7 | 1,522 | hpp | C++ | src/jadx/api/JadxArgs.hpp | oyamoh-brian/pyjadx | ecdd9f9e5e70de7fe4168ed028a27b667170ef32 | [
"Apache-2.0"
] | 3 | 2021-06-17T03:07:33.000Z | 2022-02-12T14:12:12.000Z | src/jadx/api/JadxArgs.hpp | oyamoh-brian/pyjadx | ecdd9f9e5e70de7fe4168ed028a27b667170ef32 | [
"Apache-2.0"
] | null | null | null | src/jadx/api/JadxArgs.hpp | oyamoh-brian/pyjadx | ecdd9f9e5e70de7fe4168ed028a27b667170ef32 | [
"Apache-2.0"
] | 5 | 2020-09-24T09:42:30.000Z | 2021-06-04T12:03:20.000Z | /* Copyright 2018 R. Thomas
*
* 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 wr... | 25.79661 | 78 | 0.724047 | oyamoh-brian |
13c8d65fb112b1531bb586ac9d78aad167bb2c1b | 73,447 | cpp | C++ | smallvm/runtime/builtinmethods.cpp | mobadarah/kalimat-lang | 9eb6c64dd5380efaf863b619a506ebf000be7fd9 | [
"Apache-2.0"
] | 6 | 2021-07-05T15:35:33.000Z | 2022-03-25T21:21:43.000Z | smallvm/runtime/builtinmethods.cpp | anasawad/kalimat | 830cbe9ddde13865bc1f77a2f74efd3dac3b58cc | [
"Apache-2.0"
] | null | null | null | smallvm/runtime/builtinmethods.cpp | anasawad/kalimat | 830cbe9ddde13865bc1f77a2f74efd3dac3b58cc | [
"Apache-2.0"
] | 1 | 2022-03-25T21:15:33.000Z | 2022-03-25T21:15:33.000Z | /**************************************************************************
** The Kalimat programming language
** Copyright 2010 Mohamed Samy Ali - samy2004@gmail.com
** This project is released under the Apache License version 2.0
** as described in the included license.txt file
*************************... | 32.398324 | 125 | 0.626588 | mobadarah |
13c9ea198c307d2022e1ff3d0e5f3797e3150574 | 550 | cpp | C++ | samples/snippets/cpp/VS_Snippets_Data/Classic WebData XmlDocument.PreserveWhitespace Example/CPP/source.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 421 | 2018-04-01T01:57:50.000Z | 2022-03-28T15:24:42.000Z | samples/snippets/cpp/VS_Snippets_Data/Classic WebData XmlDocument.PreserveWhitespace Example/CPP/source.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 5,797 | 2018-04-02T21:12:23.000Z | 2022-03-31T23:54:38.000Z | samples/snippets/cpp/VS_Snippets_Data/Classic WebData XmlDocument.PreserveWhitespace Example/CPP/source.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 1,482 | 2018-03-31T11:26:20.000Z | 2022-03-30T22:36:45.000Z |
// <Snippet1>
#using <System.Xml.dll>
using namespace System;
using namespace System::IO;
using namespace System::Xml;
int main()
{
//Load XML data which includes white space, but ignore
//any white space in the file.
XmlDocument^ doc = gcnew XmlDocument;
doc->PreserveWhitespace = false... | 22 | 58 | 0.636364 | hamarb123 |
13cb1f57f15f7fc9675cc13b4e8d934bb7121c62 | 7,934 | cpp | C++ | Firmware/or_firmware/ideas/ideas.cpp | razanskylab/Quadrature_Decoder_Board | d12b3d4c3254913a3005cdd44f546e1326324a30 | [
"MIT"
] | null | null | null | Firmware/or_firmware/ideas/ideas.cpp | razanskylab/Quadrature_Decoder_Board | d12b3d4c3254913a3005cdd44f546e1326324a30 | [
"MIT"
] | 2 | 2020-10-25T16:15:04.000Z | 2020-10-31T16:30:16.000Z | Firmware/or_firmware/ideas/ideas.cpp | razanskylab/Quadrature_Decoder_Board | d12b3d4c3254913a3005cdd44f546e1326324a30 | [
"MIT"
] | null | null | null | #include "teensy_lib.h"
// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
void setup_io_pins() {
for (uint8_t i=0; i<8; i++)
{
pinMode(pinTable[i],INPUT_PULLUP);
}
pinMode(HCTL_RST_PIN, OUTPUT);
pinMode(HCTL_OE_PIN, OUTPUT);
pinMode(HCTL_SEL_PIN, OUTPUT);
pinMode(BUSY... | 33.618644 | 88 | 0.582052 | razanskylab |
13cd91429a6fa92865fb68a00bd30cce641f2a30 | 5,774 | cpp | C++ | FTSE/GenericPatcher.cpp | melindil/FTSE | c0b54194900ac45ce1ecc778d838a72d09278bab | [
"MIT"
] | 3 | 2019-10-05T15:51:12.000Z | 2021-01-08T21:58:48.000Z | FTSE/GenericPatcher.cpp | melindil/FTSE | c0b54194900ac45ce1ecc778d838a72d09278bab | [
"MIT"
] | 2 | 2021-06-04T13:42:16.000Z | 2021-07-27T10:38:38.000Z | FTSE/GenericPatcher.cpp | melindil/FTSE | c0b54194900ac45ce1ecc778d838a72d09278bab | [
"MIT"
] | 2 | 2018-07-03T11:31:11.000Z | 2021-06-16T21:05:38.000Z | /* MIT License
Copyright (c) 2018 melindil
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distr... | 25.436123 | 116 | 0.663665 | melindil |
13cdd59b5541a4979404d583295c43a6e54f437a | 489 | cpp | C++ | book/cpp_templates/tmplbook/traits/issame.cpp | houruixiang/day_day_learning | 208f70a4f0a85dd99191087835903d279452fd54 | [
"MIT"
] | null | null | null | book/cpp_templates/tmplbook/traits/issame.cpp | houruixiang/day_day_learning | 208f70a4f0a85dd99191087835903d279452fd54 | [
"MIT"
] | null | null | null | book/cpp_templates/tmplbook/traits/issame.cpp | houruixiang/day_day_learning | 208f70a4f0a85dd99191087835903d279452fd54 | [
"MIT"
] | null | null | null | #include "issame.hpp"
#include <iostream>
template<typename T>
void fooImpl(T, TrueType)
{
std::cout << "fooImpl(T,true) for int called\n";
}
template<typename T>
void fooImpl(T, FalseType)
{
std::cout << "fooImpl(T,false) for other type called\n";
}
template<typename T>
void foo(T t)
{
fooImpl(t, IsSameT<T,in... | 18.111111 | 78 | 0.654397 | houruixiang |
13d0f09f3ba3d762677475c6ae521a23e837b8e1 | 3,265 | hpp | C++ | src/scanner/scanner-input.hpp | aaron-michaux/giraffe | 457b55d80f6d21616a5c40232c2f68ee9e2c8335 | [
"MIT"
] | null | null | null | src/scanner/scanner-input.hpp | aaron-michaux/giraffe | 457b55d80f6d21616a5c40232c2f68ee9e2c8335 | [
"MIT"
] | null | null | null | src/scanner/scanner-input.hpp | aaron-michaux/giraffe | 457b55d80f6d21616a5c40232c2f68ee9e2c8335 | [
"MIT"
] | null | null | null |
#pragma once
#include <unistd.h>
namespace giraffe
{
class ScannerInputInterface
{
public:
virtual ~ScannerInputInterface() = default;
/// How should this input be referred to?
virtual string_view name() const noexcept = 0;
/// Reads up to `max_size` bytes, placing them in `buffer`, returning amount
... | 27.436975 | 99 | 0.600919 | aaron-michaux |
13d5d7c5f1969b0607a11091b16d5afe79451999 | 1,541 | cpp | C++ | examples/01-BasicVertexBuffer.cpp | dgavedissian/dgfx | cdb0b2f6cf9c2df5712ec49195549f40313860ea | [
"MIT"
] | 3 | 2021-01-01T08:53:42.000Z | 2022-01-29T18:55:34.000Z | examples/01-BasicVertexBuffer.cpp | dgavedissian/dgfx | cdb0b2f6cf9c2df5712ec49195549f40313860ea | [
"MIT"
] | null | null | null | examples/01-BasicVertexBuffer.cpp | dgavedissian/dgfx | cdb0b2f6cf9c2df5712ec49195549f40313860ea | [
"MIT"
] | 1 | 2021-09-09T19:49:35.000Z | 2021-09-09T19:49:35.000Z | /*
* Dawn Graphics
* Written by David Avedissian (c) 2017-2020 (git@dga.dev)
*/
#include "Common.h"
class BasicVertexBuffer : public Example {
public:
VertexBufferHandle vb_;
ProgramHandle program_;
void start() override {
// Load shaders.
auto vs =
util::loadShader(r, Shade... | 29.634615 | 97 | 0.573653 | dgavedissian |
13df73b74d0d82429f4e3fc0a0e9925f98b2d67d | 31,415 | cpp | C++ | src/server/frame/ipfilter.cpp | jvirkki/heliod | efdf2d105e342317bd092bab2d727713da546174 | [
"BSD-3-Clause"
] | 13 | 2015-10-09T05:59:20.000Z | 2021-11-12T10:38:51.000Z | src/server/frame/ipfilter.cpp | JamesLinus/heliod | efdf2d105e342317bd092bab2d727713da546174 | [
"BSD-3-Clause"
] | null | null | null | src/server/frame/ipfilter.cpp | JamesLinus/heliod | efdf2d105e342317bd092bab2d727713da546174 | [
"BSD-3-Clause"
] | 6 | 2016-05-23T10:53:29.000Z | 2019-12-13T17:57:32.000Z | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
*
* THE BSD LICENSE
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistribut... | 28.276328 | 89 | 0.641286 | jvirkki |
13e02daa0ce747eb0f3bf815d0d72948c9840267 | 675 | hpp | C++ | yazol_test/hpp/Utilities/Memory/TestStruct64.hpp | Meraz/yazol | caa0de3bd6ceb35c3e7e78f7807f3b32ea2c0bc5 | [
"MIT"
] | 2 | 2017-05-13T16:58:47.000Z | 2017-06-11T15:55:20.000Z | UnitTest/Include/Utilities/Memory/TestStruct64.hpp | Meraz/ssp15 | 452d08ebd10db50d9563c1cf97699571889ab18f | [
"MIT"
] | null | null | null | UnitTest/Include/Utilities/Memory/TestStruct64.hpp | Meraz/ssp15 | 452d08ebd10db50d9563c1cf97699571889ab18f | [
"MIT"
] | 1 | 2020-03-23T15:42:06.000Z | 2020-03-23T15:42:06.000Z | #pragma once
#include <gtest/gtest.h>
struct TestStruct64
{
float f1 = 1;
float f2 = f1 + f1;
float f3 = f2 + f2;
float f4 = f3 + f3;
float f5 = f4 + f4;
float f6 = f5 + f5;
float f7 = f6 + f6;
float f8 = f7 + f7;
float f9 = f8 + f8;
float f10 = f9 + f9;
float f11 = f10 + f1... | 18.75 | 45 | 0.562963 | Meraz |
13e04c7138379bd352e4cf96701c44320e5266f5 | 1,584 | cpp | C++ | Testing/FlowGraphTesting.cpp | IvarJonsson/Project-Unknown | 4675b41bbb5e90135c7bf3aded2c2e262b50f351 | [
"BSL-1.0"
] | null | null | null | Testing/FlowGraphTesting.cpp | IvarJonsson/Project-Unknown | 4675b41bbb5e90135c7bf3aded2c2e262b50f351 | [
"BSL-1.0"
] | null | null | null | Testing/FlowGraphTesting.cpp | IvarJonsson/Project-Unknown | 4675b41bbb5e90135c7bf3aded2c2e262b50f351 | [
"BSL-1.0"
] | null | null | null | // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
/*************************************************************************
-------------------------------------------------------------------------
History:
- 06:06:2009 Created by Federico Rebora
***********************************************... | 31.68 | 139 | 0.66351 | IvarJonsson |
13e13ad5f9df4b47a1116195a510dba3ada4e849 | 2,874 | cpp | C++ | ENgine/Support/ImGuiHelper.cpp | ENgineE777/OakEngine | 6890fc89a0e9d151e7a0bcc1c276c13594616e9a | [
"Zlib"
] | 13 | 2020-12-02T02:13:29.000Z | 2022-03-11T06:14:54.000Z | ENgine/Support/ImGuiHelper.cpp | ENgineE777/OakEngine | 6890fc89a0e9d151e7a0bcc1c276c13594616e9a | [
"Zlib"
] | null | null | null | ENgine/Support/ImGuiHelper.cpp | ENgineE777/OakEngine | 6890fc89a0e9d151e7a0bcc1c276c13594616e9a | [
"Zlib"
] | null | null | null | #include "ImGuiHelper.h"
#include "Root/Files/Files.h"
#include <filesystem>
#include "Root/Root.h"
namespace Oak::ImGuiHelper
{
ImVec4 Vec4ToImVec4(Math::Vector4 value)
{
return ImVec4(value.x, value.y, value.z, value.w);
}
Math::Vector4 ImVec4ToVec4(ImVec4 value)
{
return Math::Vector4(value.x, value.y, va... | 21.938931 | 145 | 0.634656 | ENgineE777 |
13e39628c9cc954562a6c4893815d9e714eed223 | 573 | hpp | C++ | Kernel/include/platform/x86_64/page_fault_interrupt_handler.hpp | foxostro/FlapjackOS | 34bd2cc9b0983b917a089efe2055ca8f78d56d9a | [
"BSD-2-Clause"
] | null | null | null | Kernel/include/platform/x86_64/page_fault_interrupt_handler.hpp | foxostro/FlapjackOS | 34bd2cc9b0983b917a089efe2055ca8f78d56d9a | [
"BSD-2-Clause"
] | null | null | null | Kernel/include/platform/x86_64/page_fault_interrupt_handler.hpp | foxostro/FlapjackOS | 34bd2cc9b0983b917a089efe2055ca8f78d56d9a | [
"BSD-2-Clause"
] | null | null | null | #ifndef FLAPJACKOS_KERNEL_INCLUDE_PLATFORM_X86_64_PAGE_FAULT_INTERRUPT_HANDLER_HPP
#define FLAPJACKOS_KERNEL_INCLUDE_PLATFORM_X86_64_PAGE_FAULT_INTERRUPT_HANDLER_HPP
#include "generic_interrupt_handler.hpp"
#include "interrupt_parameters.hpp"
namespace x86_64 {
class PageFaultInterruptHandler : public GenericInterru... | 30.157895 | 87 | 0.86562 | foxostro |
13eb0edd6163e12728933ed90a8d82fb7b6ef503 | 985 | cpp | C++ | src/main/sendmail.cpp | ondra-novak/loginsrv | 10043c26b2056767c0dab685001d925cbb1661c5 | [
"MIT"
] | null | null | null | src/main/sendmail.cpp | ondra-novak/loginsrv | 10043c26b2056767c0dab685001d925cbb1661c5 | [
"MIT"
] | null | null | null | src/main/sendmail.cpp | ondra-novak/loginsrv | 10043c26b2056767c0dab685001d925cbb1661c5 | [
"MIT"
] | null | null | null | /*
* sendmail.cpp
*
* Created on: 11. 3. 2020
* Author: ondra
*/
#include <regex>
#include "sendmail.h"
SendMail::SendMail(const std::string &sendmail_path):sendmail_path(sendmail_path) {
}
bool is_email_valid(const std::string& email)
{
const std::regex pattern ("[-a-zA-Z0-9.+_]+@[a-z0-9A-Z-]+(\\.[a... | 27.361111 | 104 | 0.650761 | ondra-novak |
13f12aa48930205d365af59691866cb3bd99ea52 | 7,324 | cpp | C++ | src/hssh/local_topological/area_detection/voronoi/search.cpp | h2ssh/Vulcan | cc46ec79fea43227d578bee39cb4129ad9bb1603 | [
"MIT"
] | 6 | 2020-03-29T09:37:01.000Z | 2022-01-20T08:56:31.000Z | src/hssh/local_topological/area_detection/voronoi/search.cpp | h2ssh/Vulcan | cc46ec79fea43227d578bee39cb4129ad9bb1603 | [
"MIT"
] | 1 | 2021-03-05T08:00:50.000Z | 2021-03-05T08:00:50.000Z | src/hssh/local_topological/area_detection/voronoi/search.cpp | h2ssh/Vulcan | cc46ec79fea43227d578bee39cb4129ad9bb1603 | [
"MIT"
] | 11 | 2019-05-13T00:04:38.000Z | 2022-01-20T08:56:38.000Z | /* Copyright (C) 2010-2019, The Regents of The University of Michigan.
All rights reserved.
This software was developed as part of the The Vulcan project in the Intelligent Robotics Lab
under the direction of Benjamin Kuipers, kuipers@umich.edu. Use of this code is governed by an
MIT-style License that can be foun... | 36.257426 | 120 | 0.643091 | h2ssh |
13f5359d3a8a6640411efc97a88bb2d19632530f | 594 | cpp | C++ | Chapter-4-Making-Decisions/4.13 The Conditional Operator/Checkpoint/4.26.cpp | jesushilarioh/DelMarCSi.cpp | 6dd7905daea510452691fd25b0e3b0d2da0b06aa | [
"MIT"
] | 3 | 2019-02-02T16:59:48.000Z | 2019-02-28T14:50:08.000Z | Chapter-4-Making-Decisions/4.13 The Conditional Operator/Checkpoint/4.26.cpp | jesushilariohernandez/DelMarCSi.cpp | 6dd7905daea510452691fd25b0e3b0d2da0b06aa | [
"MIT"
] | null | null | null | Chapter-4-Making-Decisions/4.13 The Conditional Operator/Checkpoint/4.26.cpp | jesushilariohernandez/DelMarCSi.cpp | 6dd7905daea510452691fd25b0e3b0d2da0b06aa | [
"MIT"
] | 4 | 2020-04-10T17:22:17.000Z | 2021-11-04T14:34:00.000Z | /********************************************************************
*
* Checkpoint 4.26
*
* What will the following program display?
*
* Jesus Hilario Hernandez
* February 13, 2018
*
********************************************************************/
#include <iostream>
using namespace std;
int main()
{
... | 22 | 69 | 0.430976 | jesushilarioh |
13f635d6305300891e75cdb348712e302030e1cd | 234 | hpp | C++ | src/abstractgl/api/opengl/shader/enum/vertex_shader.hpp | the-last-willy/abstractgl-api-opengl | 8e6f5a93a85072a030aee2ea56fc2073f72df539 | [
"MIT"
] | null | null | null | src/abstractgl/api/opengl/shader/enum/vertex_shader.hpp | the-last-willy/abstractgl-api-opengl | 8e6f5a93a85072a030aee2ea56fc2073f72df539 | [
"MIT"
] | null | null | null | src/abstractgl/api/opengl/shader/enum/vertex_shader.hpp | the-last-willy/abstractgl-api-opengl | 8e6f5a93a85072a030aee2ea56fc2073f72df539 | [
"MIT"
] | null | null | null | #pragma once
namespace agl::api::opengl {
struct EnumVertexShader {
static constexpr auto _enum = GL_VERTEX_SHADER;
constexpr
operator GLenum() const noexcept {
return _enum;
}
} constexpr VERTEX_SHADER;
}
| 15.6 | 51 | 0.692308 | the-last-willy |
13fac257ffbd905374ccaa2b22242ca2d45e5a52 | 2,221 | cpp | C++ | test/test_psnr.cpp | bodhisatan/video_codec_evaluation | ad0560de0dd02732d1a0b7a24da988dfca9f5757 | [
"Apache-2.0"
] | 1 | 2021-06-18T01:57:56.000Z | 2021-06-18T01:57:56.000Z | test/test_psnr.cpp | bodhisatan/video_codec_evaluation | ad0560de0dd02732d1a0b7a24da988dfca9f5757 | [
"Apache-2.0"
] | null | null | null | test/test_psnr.cpp | bodhisatan/video_codec_evaluation | ad0560de0dd02732d1a0b7a24da988dfca9f5757 | [
"Apache-2.0"
] | 1 | 2020-09-01T02:55:27.000Z | 2020-09-01T02:55:27.000Z | #include <iostream>
#include <vector>
#include <string>
#include <boost/filesystem.hpp>
#include <unistd.h>
#include <stdio.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <stdint.h>
#include <cstring>
#include <cmath>
#include <complex>
#include <iomanip>
#inc... | 26.129412 | 81 | 0.568213 | bodhisatan |
cd04e81a5eaf7ba0415d368d5bec431b760529d3 | 2,361 | cpp | C++ | AmberEngine/src/AmberEngine/LowRenderer/Camera.cpp | maxbrundev/AmberEngine | e2d57fe673102c48ef34e32cca4c262bdde4e912 | [
"MIT"
] | 19 | 2018-09-28T20:35:25.000Z | 2022-02-22T02:52:09.000Z | AmberEngine/src/AmberEngine/LowRenderer/Camera.cpp | maxbrundev/AmberEngine | e2d57fe673102c48ef34e32cca4c262bdde4e912 | [
"MIT"
] | 2 | 2018-10-01T21:55:37.000Z | 2020-11-07T06:18:32.000Z | AmberEngine/src/AmberEngine/LowRenderer/Camera.cpp | maxbrundev/AmberEngine | e2d57fe673102c48ef34e32cca4c262bdde4e912 | [
"MIT"
] | null | null | null | #include "Amberpch.h"
#include "AmberEngine/LowRenderer/Camera.h"
AmberEngine::LowRenderer::Camera::Camera()
: m_clearColor(0.0f, 0.0f, 0.0f), m_yaw(-90.0f), m_pitch(0.0f), m_fov(45.0f), m_near(0.1f), m_far(100.0f)
{
UpdateCameraVectors();
}
void AmberEngine::LowRenderer::Camera::UpdateCameraVectors()
{
glm::vec... | 24.091837 | 135 | 0.745023 | maxbrundev |
cd08b7a711d58d9b9f425678acc6e90f3699a8cb | 3,246 | cpp | C++ | 3rd_party/zpp-1.0-alpha/Util.cpp | julienlopez/Eu4SaveAnalyzer | ab888a28a68b06889afd5c2de6c20798e1c3b5bc | [
"MIT"
] | null | null | null | 3rd_party/zpp-1.0-alpha/Util.cpp | julienlopez/Eu4SaveAnalyzer | ab888a28a68b06889afd5c2de6c20798e1c3b5bc | [
"MIT"
] | null | null | null | 3rd_party/zpp-1.0-alpha/Util.cpp | julienlopez/Eu4SaveAnalyzer | ab888a28a68b06889afd5c2de6c20798e1c3b5bc | [
"MIT"
] | null | null | null | /*
**
** $id:$
**
** File: util.cpp -- utility functions for ZPP library.
**
** Copyright (C) 1999 Michael Cuddy, Fen's Ende Software. All Rights Reserved
** modifications Copyright (C) 2000-2003 Eero Pajarre
**
** check http://zpp-library.sourceforge.net for latest version
**
** Permission is hereby granted, free of c... | 27.74359 | 81 | 0.687924 | julienlopez |
cd0c3faf602121db4fa82b346f58b88b6ebdc44a | 160 | cpp | C++ | CSE 225L Data Structures and Algorithms/Resources/Codes Previous/Spring-2019-CSE225 1/HW3_10(Stack Linked List)/main(13).cpp | diptu/Teaching | 20655bb2c688ae29566b0a914df4a3e5936a2f61 | [
"MIT"
] | null | null | null | CSE 225L Data Structures and Algorithms/Resources/Codes Previous/Spring-2019-CSE225 1/HW3_10(Stack Linked List)/main(13).cpp | diptu/Teaching | 20655bb2c688ae29566b0a914df4a3e5936a2f61 | [
"MIT"
] | null | null | null | CSE 225L Data Structures and Algorithms/Resources/Codes Previous/Spring-2019-CSE225 1/HW3_10(Stack Linked List)/main(13).cpp | diptu/Teaching | 20655bb2c688ae29566b0a914df4a3e5936a2f61 | [
"MIT"
] | null | null | null | #include"StackType.h"
#include"StackType.cpp"
using namespace std;
int main()
{
ReadString(ifile);
InfixToPostfixCon();
Print();
getchar();
return 0;
}
| 10.666667 | 23 | 0.69375 | diptu |
998117e96e2aa0ef31cd5a6af8898d06c3638056 | 4,546 | cpp | C++ | Code.v05-00/src/Core/Vortex.cpp | MIT-LAE/APCEMM | 2954bca64ec1c13552830d467d404dbe627ef71a | [
"MIT"
] | 2 | 2022-03-21T20:49:37.000Z | 2022-03-22T17:25:31.000Z | Code.v05-00/src/Core/Vortex.cpp | MIT-LAE/APCEMM | 2954bca64ec1c13552830d467d404dbe627ef71a | [
"MIT"
] | null | null | null | Code.v05-00/src/Core/Vortex.cpp | MIT-LAE/APCEMM | 2954bca64ec1c13552830d467d404dbe627ef71a | [
"MIT"
] | 1 | 2022-03-21T20:50:50.000Z | 2022-03-21T20:50:50.000Z | /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* */
/* Aircraft Plume Chemistry, Emission and Microphysics Model */
/* (APCEMM) */
/* ... | 31.136986 | 136 | 0.476023 | MIT-LAE |
9981fcdfd217a037ef4bbc8c246c5d3e1f0b4481 | 1,915 | hpp | C++ | meta/for_each.hpp | monocle-ai/putils | 49298d3ab1f07934923d599db0036ad90f233a34 | [
"MIT"
] | null | null | null | meta/for_each.hpp | monocle-ai/putils | 49298d3ab1f07934923d599db0036ad90f233a34 | [
"MIT"
] | 5 | 2020-07-30T21:23:04.000Z | 2020-07-31T23:32:47.000Z | meta/for_each.hpp | monocle-ai/putils | 49298d3ab1f07934923d599db0036ad90f233a34 | [
"MIT"
] | 3 | 2020-07-29T22:14:56.000Z | 2020-07-30T17:32:49.000Z | #pragma once
#include "type.hpp"
#include "fwd.hpp"
#define putils_macro_comma ,
namespace putils {
// For each `T` in `Types` call `f(putils::meta::type<T>)`
// `T` can then be recovered by using putils_wrapped_type
// For instance:
// ```
// putils::for_each_type<int, double>([](auto && t) {
// using T = ... | 27.753623 | 94 | 0.579634 | monocle-ai |
99830468b7d11b6e03399a723f25af0009430872 | 36,555 | cpp | C++ | perf/perf_dynamic_table.cpp | matthewbeckler/nkit | 5d1cfc7b38617c46dd35055d2917f2f74b969bec | [
"Apache-2.0"
] | 1 | 2020-02-07T11:56:21.000Z | 2020-02-07T11:56:21.000Z | perf/perf_dynamic_table.cpp | matthewbeckler/nkit | 5d1cfc7b38617c46dd35055d2917f2f74b969bec | [
"Apache-2.0"
] | null | null | null | perf/perf_dynamic_table.cpp | matthewbeckler/nkit | 5d1cfc7b38617c46dd35055d2917f2f74b969bec | [
"Apache-2.0"
] | 1 | 2019-10-30T19:51:31.000Z | 2019-10-30T19:51:31.000Z | /*
Copyright 2010-2014 Boris T. Darchiev (boris.darchiev@gmail.com)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required... | 28.05449 | 108 | 0.621201 | matthewbeckler |
9983a02523ae94b25678482f5dbb37ef2431f748 | 502 | cpp | C++ | uva/893.cpp | larc/competitive_programming | deccd7152a14adf217c58546d1cf8ac6b45f1c52 | [
"MIT"
] | 1 | 2019-05-23T19:05:39.000Z | 2019-05-23T19:05:39.000Z | uva/893.cpp | larc/oremor | deccd7152a14adf217c58546d1cf8ac6b45f1c52 | [
"MIT"
] | null | null | null | uva/893.cpp | larc/oremor | deccd7152a14adf217c58546d1cf8ac6b45f1c52 | [
"MIT"
] | null | null | null | #include <cstdio>
inline bool leap(size_t y)
{
return !(y % 400) || (!(y % 4) && (y % 100));
}
inline size_t month(size_t m, size_t y)
{
if(m == 2) return leap(y) ? 29 : 28;
if(m == 4 || m == 6 || m == 9 || m == 11) return 30;
return 31;
}
int main()
{
size_t p, d, m, y, dd, mm, yy, rd, rm;
while(scanf("%ld %l... | 17.310345 | 75 | 0.462151 | larc |
998607d27a2b09f69d678c63ba34b6803bd4abfc | 3,058 | cpp | C++ | Tray.cpp | Wumpf/SteamMeUp | 61446352ad9843b5ce6815c44b0665cd1c88c0d9 | [
"MIT"
] | null | null | null | Tray.cpp | Wumpf/SteamMeUp | 61446352ad9843b5ce6815c44b0665cd1c88c0d9 | [
"MIT"
] | null | null | null | Tray.cpp | Wumpf/SteamMeUp | 61446352ad9843b5ce6815c44b0665cd1c88c0d9 | [
"MIT"
] | null | null | null | #include <Windows.h>
#include "Log.h"
#include "SteamMeUp.h"
#include "resource.h"
#define TRAY_CALLBACK_MESSAGE (WM_USER + 200)
#define TRAY_CONTEXMENU_STEAMBIGPIC (WM_USER + 401)
#define TRAY_CONTEXMENU_STEAM (WM_USER + 402)
#define TRAY_CONTEXMENU_EXIT (WM_USER + 403)
namespace
{
HMENU hPopupMenu;
HWND hWnd;
... | 27.061947 | 176 | 0.734467 | Wumpf |
9986162fa57494ee5bcec4d84776c609fa455ea6 | 26,262 | cpp | C++ | original_source/src/items.cpp | RichardMarks/sawd-revival | 670aff96e81b6cedf706fa891ca4d2b57ebdc4b4 | [
"MIT"
] | null | null | null | original_source/src/items.cpp | RichardMarks/sawd-revival | 670aff96e81b6cedf706fa891ca4d2b57ebdc4b4 | [
"MIT"
] | null | null | null | original_source/src/items.cpp | RichardMarks/sawd-revival | 670aff96e81b6cedf706fa891ca4d2b57ebdc4b4 | [
"MIT"
] | null | null | null |
/*
SAWD Small ASCII Walk-around Demo (C) Copyright 2008, CCPS Solutions
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 option) any later version.
... | 32.868586 | 83 | 0.360064 | RichardMarks |
998deac9dbd924cb26f34102a230e157a6772414 | 526 | cpp | C++ | codeforces/701/a.cpp | AadityaJ/Spoj | 61664c1925ef5bb072a3fe78fb3dac4fb68d77a1 | [
"MIT"
] | null | null | null | codeforces/701/a.cpp | AadityaJ/Spoj | 61664c1925ef5bb072a3fe78fb3dac4fb68d77a1 | [
"MIT"
] | null | null | null | codeforces/701/a.cpp | AadityaJ/Spoj | 61664c1925ef5bb072a3fe78fb3dac4fb68d77a1 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
using namespace std;
bool touched[103];
int printSearch(int *arr,int n,int ele){
int i;
for(i=1;(i<=n && arr[i]!=ele) || touched[i]!=0;i++);
touched[i]=1;
return i;
}
int main(int argc, char const *argv[]) {
int n,arr[103],temp[103];
cin>>n;
for(int i... | 25.047619 | 84 | 0.558935 | AadityaJ |
998e14ed07f898b45d5b1eae682e2457e247f5fd | 1,506 | cpp | C++ | lab6/Circuit.cpp | carinaioana/oop-2022 | b2cd27a40f95b2ca549bba0cb9c2a55921c8ca0d | [
"MIT"
] | null | null | null | lab6/Circuit.cpp | carinaioana/oop-2022 | b2cd27a40f95b2ca549bba0cb9c2a55921c8ca0d | [
"MIT"
] | null | null | null | lab6/Circuit.cpp | carinaioana/oop-2022 | b2cd27a40f95b2ca549bba0cb9c2a55921c8ca0d | [
"MIT"
] | null | null | null | #include "Circuit.h"
#include "Dacia.h"
#include "Mercedes.h"
#include "Ford.h"
#include "Mazda.h"
#include "Toyota.h"
#include "Car.h"
#include <vector>
#include <iostream>
void Circuit::SetLength(float l) {
this->length = l;
}
void Circuit::SetWeather(Weather w) {
this->weather = w;
}
void Circuit::AddCar(Car* ... | 28.415094 | 126 | 0.623506 | carinaioana |
998f58df6a594396a0288e36adf362be84cd985e | 35,061 | cpp | C++ | DyssolMainWindow/Dyssol.cpp | FlowsheetSimulation/Dyssol-open | 557d57d959800868e1b3fd161b26cad16481382b | [
"BSD-3-Clause"
] | 7 | 2020-12-02T02:54:31.000Z | 2022-03-08T20:37:46.000Z | DyssolMainWindow/Dyssol.cpp | FlowsheetSimulation/Dyssol-open | 557d57d959800868e1b3fd161b26cad16481382b | [
"BSD-3-Clause"
] | 33 | 2021-03-26T12:20:18.000Z | 2022-02-23T11:37:56.000Z | DyssolMainWindow/Dyssol.cpp | FlowsheetSimulation/Dyssol-open | 557d57d959800868e1b3fd161b26cad16481382b | [
"BSD-3-Clause"
] | 6 | 2020-07-17T08:17:37.000Z | 2022-02-24T13:45:16.000Z | /* Copyright (c) 2020, Dyssol Development Team. All rights reserved. This file is part of Dyssol. See LICENSE file for license information. */
#include "Dyssol.h"
#include "StatusWindow.h"
#include "AboutWindow.h"
#include "ScriptExporter.h"
#include "FileSystem.h"
#include "DyssolStringConstants.h"
#include "... | 48.967877 | 283 | 0.709535 | FlowsheetSimulation |
999000843154b495752896330056fdbb948c91cb | 848 | hh | C++ | src/core/include/chase/utilities/UtilityFunctions.hh | chase-cps/chase | 87db0754bf0eaa94beb10c355794b6d3c6d9e883 | [
"BSD-3-Clause"
] | 4 | 2019-06-15T15:33:37.000Z | 2022-02-10T19:10:50.000Z | src/core/include/chase/utilities/UtilityFunctions.hh | chase-cps/chase | 87db0754bf0eaa94beb10c355794b6d3c6d9e883 | [
"BSD-3-Clause"
] | null | null | null | src/core/include/chase/utilities/UtilityFunctions.hh | chase-cps/chase | 87db0754bf0eaa94beb10c355794b6d3c6d9e883 | [
"BSD-3-Clause"
] | 3 | 2018-02-02T18:14:48.000Z | 2021-01-31T12:18:25.000Z | /**
* @author <a href="mailto:michele.lora@univr.it">Michele Lora</a>
* @date 11/21/2019
* This project is released under the 3-Clause BSD License.
*
*/
#pragma once
#include <vector>
#include <list>
#include <string>
namespace chase
{
/// \todo Document it!!!
template< typename T >
v... | 21.2 | 72 | 0.571934 | chase-cps |
9998ceca97a817bbfb946fbd05e4e6f4b58d4c89 | 6,682 | cpp | C++ | src/collisionDetection/test/RayVsPlaneTest.cpp | Robograde/Robograde | 2c9a7d0b8250ec240102d504127f5c54532cb2b0 | [
"Zlib"
] | 5 | 2015-10-11T10:22:39.000Z | 2019-07-24T10:09:13.000Z | src/collisionDetection/test/RayVsPlaneTest.cpp | Robograde/Robograde | 2c9a7d0b8250ec240102d504127f5c54532cb2b0 | [
"Zlib"
] | null | null | null | src/collisionDetection/test/RayVsPlaneTest.cpp | Robograde/Robograde | 2c9a7d0b8250ec240102d504127f5c54532cb2b0 | [
"Zlib"
] | null | null | null | /**************************************************
Zlib Copyright 2015 Ola Enberg
***************************************************/
#include <gtest/gtest.h>
#include "../volume/Ray.h"
#include "../volume/Plane.h"
#include "../detection/IntersectionTestLookupTable.h"
using glm::vec3;
TEST( CollisionTests, RayVsP... | 31.370892 | 116 | 0.702335 | Robograde |
99a0753b4771d939c747ecc609e07c735eaf893c | 13,267 | cpp | C++ | modules/tracktion_engine/3rd_party/airwindows/Focus/FocusProc.cpp | jbloit/tracktion_engine | b3fa7d6a3a404f64ae419abdf9c801d672cffb16 | [
"MIT",
"Unlicense"
] | 734 | 2018-11-16T09:39:40.000Z | 2022-03-30T16:56:14.000Z | modules/tracktion_engine/3rd_party/airwindows/Focus/FocusProc.cpp | jbloit/tracktion_engine | b3fa7d6a3a404f64ae419abdf9c801d672cffb16 | [
"MIT",
"Unlicense"
] | 100 | 2018-11-16T18:04:08.000Z | 2022-03-31T17:47:53.000Z | modules/tracktion_engine/3rd_party/airwindows/Focus/FocusProc.cpp | jbloit/tracktion_engine | b3fa7d6a3a404f64ae419abdf9c801d672cffb16 | [
"MIT",
"Unlicense"
] | 123 | 2018-11-16T15:51:50.000Z | 2022-03-29T12:21:27.000Z | /* ========================================
* Focus - Focus.h
* Copyright (c) 2016 airwindows, All rights reserved
* ======================================== */
#ifndef __Focus_H
#include "Focus.h"
#endif
void Focus::processReplacing(float **inputs, float **outputs, VstInt32 sampleFrames)
{
float* in1 = in... | 46.550877 | 118 | 0.56584 | jbloit |
99a2a08f3001b30c684ca712865606c3c7b0c336 | 600 | cpp | C++ | src/Particle.cpp | towa7bc/SFMLParticleAnimation | 685cc0fc12a8b40ea7dc682f468de4962cb2ae93 | [
"Unlicense"
] | null | null | null | src/Particle.cpp | towa7bc/SFMLParticleAnimation | 685cc0fc12a8b40ea7dc682f468de4962cb2ae93 | [
"Unlicense"
] | null | null | null | src/Particle.cpp | towa7bc/SFMLParticleAnimation | 685cc0fc12a8b40ea7dc682f468de4962cb2ae93 | [
"Unlicense"
] | null | null | null | //
// Created by Michael Wittmann on 05/06/2020.
//
#include "Particle.hpp"
#include <SFML/Graphics/PrimitiveType.hpp> // for Points
#include <SFML/Graphics/RenderTarget.hpp> // for RenderTarget
namespace app {
void Particle::draw(sf::RenderTarget &target, sf::RenderStates states) const {
target.draw(&draw_ver... | 27.272727 | 78 | 0.728333 | towa7bc |
99a365de7422f1a18975644823c97142882c4a72 | 1,885 | hpp | C++ | ML_Weapons/CFG/cfgRecoils.hpp | linus-berg/Mafia-Life | d9b7678c02738e8e555ebf068fa4c0e5170ffa5e | [
"MIT"
] | null | null | null | ML_Weapons/CFG/cfgRecoils.hpp | linus-berg/Mafia-Life | d9b7678c02738e8e555ebf068fa4c0e5170ffa5e | [
"MIT"
] | null | null | null | ML_Weapons/CFG/cfgRecoils.hpp | linus-berg/Mafia-Life | d9b7678c02738e8e555ebf068fa4c0e5170ffa5e | [
"MIT"
] | 2 | 2019-08-31T19:04:38.000Z | 2022-03-29T02:59:43.000Z | #define Xcoef (0.001)
#define Ycoef (0.004)
#define LynxXcoef (0.003)
#define LynxYcoef (0.008)
class cfgRecoils
{
recoil_single_Test_rifle_01[]=
{
0,0,0,
0.03, 36.943*(Xcoef)*(0.3), 3.587*(Ycoef)*(3),
0.03, 31.817*(Xcoef)*(0.5), 1.251*(Ycoef)*(3.4),
0.03, 19.755*(Xcoef)*(0.7), 0.764*(Ycoef)*(3.8),
0.06, 7... | 31.949153 | 52 | 0.517772 | linus-berg |
99a94de9fec99a1f9fe70da5cbb6722f71d6fa36 | 594 | hpp | C++ | frame/message.hpp | joydit/solidframe | 0539b0a1e77663ac4c701a88f56723d3e3688e8c | [
"BSL-1.0"
] | null | null | null | frame/message.hpp | joydit/solidframe | 0539b0a1e77663ac4c701a88f56723d3e3688e8c | [
"BSL-1.0"
] | null | null | null | frame/message.hpp | joydit/solidframe | 0539b0a1e77663ac4c701a88f56723d3e3688e8c | [
"BSL-1.0"
] | null | null | null | // frame/message.hpp
//
// Copyright (c) 2013 Valentin Palade (vipalade @ gmail . com)
//
// This file is part of SolidFrame framework.
//
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.
//
#ifndef SOLID_FRAME_SIGNA... | 19.16129 | 89 | 0.739057 | joydit |
99aaa798f6f2e9110767ba49b98ef332ba4e5105 | 49,213 | cpp | C++ | dualarm_controller/Control/Controller.cpp | hyujun/DualArm_Sim | 5a0eea7cfec45b4db8f097dbcfb101ecdc1ce7e1 | [
"MIT"
] | 2 | 2021-03-26T04:41:02.000Z | 2021-12-10T13:36:59.000Z | dualarm_controller/Control/Controller.cpp | hyujun/DualArm_Sim | 5a0eea7cfec45b4db8f097dbcfb101ecdc1ce7e1 | [
"MIT"
] | null | null | null | dualarm_controller/Control/Controller.cpp | hyujun/DualArm_Sim | 5a0eea7cfec45b4db8f097dbcfb101ecdc1ce7e1 | [
"MIT"
] | 2 | 2021-03-26T04:41:02.000Z | 2021-03-26T04:43:26.000Z | /*
* Controller.cpp
*
* Created on: 2019. 5. 15.
* Author: Junho Park
*/
#include "Controller.h"
#include <utility>
namespace HYUControl {
Controller::Controller():m_Jnum(6)
{
this->pManipulator = nullptr;
}
Controller::Controller(std::shared_ptr<SerialManipulator> Manipulator)
{
t... | 32.612989 | 231 | 0.586248 | hyujun |
99ac9b88f6a6f083188018865b7f9971b4126a5b | 4,588 | cpp | C++ | src/gui/tagsystem.cpp | P-Sc/Pirateers | 440e477d33bbbcd79d291700c369f74fd0a6cc7d | [
"MIT"
] | null | null | null | src/gui/tagsystem.cpp | P-Sc/Pirateers | 440e477d33bbbcd79d291700c369f74fd0a6cc7d | [
"MIT"
] | null | null | null | src/gui/tagsystem.cpp | P-Sc/Pirateers | 440e477d33bbbcd79d291700c369f74fd0a6cc7d | [
"MIT"
] | null | null | null | #include "tagsystem.h"
#include <SFML/Graphics.hpp>
#include "graphics/textures.h"
/**
* @brief Pfeilrotation berechnen
* @param shipPos Position des Schiffes
* @return Nötige Rotation für den Pfeil
*/
float TagSystem::getArrowAngle(sf::Vector2f shipPos) {
sf::Vector2f dir = shipPos - cameraCenter;
return ... | 39.213675 | 95 | 0.645597 | P-Sc |
99acdd6768b4e7fabc5f494c26ceff05d3c7708a | 7,808 | cc | C++ | Kernel/CG/Coordinates/XYZ.cc | gustavo-castillo-bautista/Mercury | eeb402ccec8e487652229d4595c46ec84f6aefbb | [
"BSD-3-Clause"
] | null | null | null | Kernel/CG/Coordinates/XYZ.cc | gustavo-castillo-bautista/Mercury | eeb402ccec8e487652229d4595c46ec84f6aefbb | [
"BSD-3-Clause"
] | null | null | null | Kernel/CG/Coordinates/XYZ.cc | gustavo-castillo-bautista/Mercury | eeb402ccec8e487652229d4595c46ec84f6aefbb | [
"BSD-3-Clause"
] | null | null | null | //Copyright (c) 2013-2020, The MercuryDPM Developers Team. All rights reserved.
//For the list of developers, see <http://www.MercuryDPM.org/Team>.
//
//Redistribution and use in source and binary forms, with or without
//modification, are permitted provided that the following conditions are met:
// * Redistributions ... | 39.04 | 101 | 0.712602 | gustavo-castillo-bautista |
99ada3ad22ec0443d474129f91af9ec8abbf082f | 3,261 | cpp | C++ | src/leakfile.cpp | isRyven/map-compiler | c2f22acf6c02c33fea2609e0b69521eaf91a7033 | [
"MIT"
] | 3 | 2018-02-14T16:02:45.000Z | 2019-02-27T13:31:12.000Z | src/leakfile.cpp | isRyven/map-compiler | c2f22acf6c02c33fea2609e0b69521eaf91a7033 | [
"MIT"
] | 30 | 2018-02-12T13:49:48.000Z | 2018-10-19T17:23:15.000Z | src/leakfile.cpp | isRyven/map-compiler | c2f22acf6c02c33fea2609e0b69521eaf91a7033 | [
"MIT"
] | 1 | 2018-02-13T16:26:16.000Z | 2018-02-13T16:26:16.000Z | /* -------------------------------------------------------------------------------
Copyright (C) 1999-2007 id Software, Inc. and contributors.
For a list of contributors, see the accompanying CONTRIBUTORS file.
This file is part of GtkRadiant.
GtkRadiant is free software; you can redistribute it and/or m... | 26.088 | 85 | 0.570377 | isRyven |
99b051ec3a0824dad01eb83782653abcac73785e | 1,724 | cpp | C++ | test/common/managed_pointer_test.cpp | AndiLynn/terrier | 6002f8a902d3d0d19bc67998514098f8b41ca264 | [
"MIT"
] | null | null | null | test/common/managed_pointer_test.cpp | AndiLynn/terrier | 6002f8a902d3d0d19bc67998514098f8b41ca264 | [
"MIT"
] | null | null | null | test/common/managed_pointer_test.cpp | AndiLynn/terrier | 6002f8a902d3d0d19bc67998514098f8b41ca264 | [
"MIT"
] | null | null | null | #include "common/managed_pointer.h"
#include <iostream>
#include <memory>
#include <sstream>
#include <string>
#include "gtest/gtest.h"
namespace terrier {
// NOLINTNEXTLINE
TEST(ManagedPointerTests, EqualityTest) {
std::string val0 = "abcde";
char *raw_ptr0 = val0.data();
std::string val1 = "12345";
char *ra... | 26.121212 | 67 | 0.693735 | AndiLynn |
99be5822baaf3b0f8080da7c58c3748be606b9df | 1,888 | cpp | C++ | test/test_shader.cpp | taylor-santos/roguelike | 67913a3c1a56b82c3bc260fde08ae91409ce024b | [
"MIT"
] | null | null | null | test/test_shader.cpp | taylor-santos/roguelike | 67913a3c1a56b82c3bc260fde08ae91409ce024b | [
"MIT"
] | 10 | 2021-05-08T06:20:20.000Z | 2021-12-30T02:12:28.000Z | test/test_shader.cpp | taylor-santos/roguelike | 67913a3c1a56b82c3bc260fde08ae91409ce024b | [
"MIT"
] | null | null | null | //
// Created by taylor-santos on 5/24/2021 at 21:34.
//
#include "shader.h"
#include "doctest/doctest.h"
#include "glfw.h"
TEST_SUITE_BEGIN("Shader");
#ifndef DISABLE_RENDER_TESTS
TEST_CASE("SyntaxError") {
GLFW::Window::get(500, 500, "window");
CHECK_THROWS(Shader("this is a syntax error", Shader::Type::... | 29.968254 | 75 | 0.514301 | taylor-santos |
99be82b82df547ad0809a8c9020cbe594ce0134f | 652 | hpp | C++ | SpellChecker/SpellChecker/SpellChecking/Header/SpellChecker.hpp | TomColdenhoff/SpellChecker | 3c0e54afdc3b06d07790034bdb70e755b4d96d24 | [
"MIT"
] | null | null | null | SpellChecker/SpellChecker/SpellChecking/Header/SpellChecker.hpp | TomColdenhoff/SpellChecker | 3c0e54afdc3b06d07790034bdb70e755b4d96d24 | [
"MIT"
] | null | null | null | SpellChecker/SpellChecker/SpellChecking/Header/SpellChecker.hpp | TomColdenhoff/SpellChecker | 3c0e54afdc3b06d07790034bdb70e755b4d96d24 | [
"MIT"
] | null | null | null | //
// SpellChecker.hpp
// SpellChecker
//
// Created by Tom Coldenhoff on 14/01/2020.
// Copyright © 2020 Tom Coldenhoff. All rights reserved.
//
#ifndef SpellChecker_hpp
#define SpellChecker_hpp
#include "SpellChecker.h"
#include "WordDictionaryNode.h"
#include <string>
namespace spellchecker::spellchecking {
... | 22.482759 | 82 | 0.753067 | TomColdenhoff |
99c00a4d48915814f7718f0c2edce6fe141cb9d3 | 2,709 | cpp | C++ | src/common/buses/usb/USBTransferHelper.cpp | ska/SeaBreeze | 09aac3e764867825f51f75c519a025a863d03590 | [
"MIT"
] | null | null | null | src/common/buses/usb/USBTransferHelper.cpp | ska/SeaBreeze | 09aac3e764867825f51f75c519a025a863d03590 | [
"MIT"
] | null | null | null | src/common/buses/usb/USBTransferHelper.cpp | ska/SeaBreeze | 09aac3e764867825f51f75c519a025a863d03590 | [
"MIT"
] | 1 | 2020-07-03T08:36:47.000Z | 2020-07-03T08:36:47.000Z | /***************************************************//**
* @file USBTransferHelper.cpp
* @date February 2009
* @author Ocean Optics, Inc.
*
* LICENSE:
*
* SeaBreeze Copyright (C) 2014, Ocean Optics Inc
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software a... | 34.291139 | 82 | 0.680694 | ska |
99c3d099d46d35826f75b5935bf579301b2b9f3a | 6,479 | cc | C++ | libtransport/src/auth/signer.cc | manang/hicn | 006c9aec768d5ff80fed0bf36cc51990f7fa1d8e | [
"Apache-2.0"
] | null | null | null | libtransport/src/auth/signer.cc | manang/hicn | 006c9aec768d5ff80fed0bf36cc51990f7fa1d8e | [
"Apache-2.0"
] | null | null | null | libtransport/src/auth/signer.cc | manang/hicn | 006c9aec768d5ff80fed0bf36cc51990f7fa1d8e | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2017-2021 Cisco and/or its affiliates.
* 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 appl... | 31 | 80 | 0.73607 | manang |
99c4f806134e61afce3dfc85fd6091d6ccba7e20 | 6,372 | cpp | C++ | src/core/queueContext.cpp | gflegar/pal | 93d6aba82af14ae57ae6d84a4cf0cca3d9aa8c6b | [
"MIT"
] | 268 | 2017-12-22T11:03:10.000Z | 2022-03-31T15:37:31.000Z | src/core/queueContext.cpp | gflegar/pal | 93d6aba82af14ae57ae6d84a4cf0cca3d9aa8c6b | [
"MIT"
] | 79 | 2017-12-22T12:26:52.000Z | 2022-03-30T13:06:30.000Z | src/core/queueContext.cpp | gflegar/pal | 93d6aba82af14ae57ae6d84a4cf0cca3d9aa8c6b | [
"MIT"
] | 92 | 2017-12-22T12:21:16.000Z | 2022-03-29T22:34:17.000Z | /*
***********************************************************************************************************************
*
* Copyright (c) 2016-2021 Advanced Micro Devices, Inc. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associ... | 39.092025 | 120 | 0.598399 | gflegar |
99cd0727fda0596bf5e00dd39f02734dc08ededa | 17,850 | cpp | C++ | src/finiteVolume/processes/speciesTransport.cpp | kolosret/ablate | 755089ab5e39388d9cda8dedac5a45ba1b016dd5 | [
"BSD-3-Clause"
] | null | null | null | src/finiteVolume/processes/speciesTransport.cpp | kolosret/ablate | 755089ab5e39388d9cda8dedac5a45ba1b016dd5 | [
"BSD-3-Clause"
] | null | null | null | src/finiteVolume/processes/speciesTransport.cpp | kolosret/ablate | 755089ab5e39388d9cda8dedac5a45ba1b016dd5 | [
"BSD-3-Clause"
] | null | null | null | #include "speciesTransport.hpp"
#include "finiteVolume/compressibleFlowFields.hpp"
#include "utilities/mathUtilities.hpp"
ablate::finiteVolume::processes::SpeciesTransport::SpeciesTransport(std::shared_ptr<eos::EOS> eosIn, std::shared_ptr<fluxCalculator::FluxCalculator> fluxCalcIn,
... | 52.810651 | 200 | 0.651317 | kolosret |
99cd1a4611c31fc13b0e7ed9ce5ae73a13cd1f05 | 190 | hpp | C++ | src/parser/script/ScriptParser.hpp | AlexeyGurevsky/bbtube | d7329b52cec08cdc80c521e8f3d4f5de746639e7 | [
"Apache-2.0"
] | 15 | 2020-07-13T03:51:10.000Z | 2022-03-16T13:56:28.000Z | src/parser/script/ScriptParser.hpp | AlexeyGurevsky/bbtube | d7329b52cec08cdc80c521e8f3d4f5de746639e7 | [
"Apache-2.0"
] | 2 | 2021-01-07T20:31:29.000Z | 2021-12-15T21:20:34.000Z | src/parser/script/ScriptParser.hpp | AlexeyGurevsky/bbtube | d7329b52cec08cdc80c521e8f3d4f5de746639e7 | [
"Apache-2.0"
] | 4 | 2020-08-15T01:52:31.000Z | 2022-03-16T13:56:30.000Z | #ifndef SCRIPTPARSER_HPP_
#define SCRIPTPARSER_HPP_
#include "ScriptData.hpp"
class ScriptParser
{
public:
static ScriptData parse(QString script);
};
#endif /* SCRIPTPARSER_HPP_ */
| 13.571429 | 44 | 0.763158 | AlexeyGurevsky |
99cfeeb7ca614431fde10e995b9ed4a8cac1ee98 | 2,226 | cpp | C++ | TouchMindLib/touchmind/util/OSVersionChecker.cpp | yohei-yoshihara/TouchMind | 3ad878aacde7322ae7c4f94d462e0a2d4a24d3fa | [
"MIT"
] | 15 | 2015-07-10T05:03:27.000Z | 2021-06-08T08:24:46.000Z | TouchMindLib/touchmind/util/OSVersionChecker.cpp | yohei-yoshihara/TouchMind | 3ad878aacde7322ae7c4f94d462e0a2d4a24d3fa | [
"MIT"
] | null | null | null | TouchMindLib/touchmind/util/OSVersionChecker.cpp | yohei-yoshihara/TouchMind | 3ad878aacde7322ae7c4f94d462e0a2d4a24d3fa | [
"MIT"
] | 10 | 2015-01-04T01:23:56.000Z | 2020-12-29T11:35:47.000Z | #include "StdAfx.h"
#include <strsafe.h>
#include "touchmind/logging/Logging.h"
#include "touchmind/util/OSVersionChecker.h"
#include <VersionHelpers.h>
touchmind::util::OSVersion touchmind::util::OSVersionChecker::GetOSVersion() {
if (IsWindows7OrGreater()) {
return OSVersion_Windows7;
} else if (IsWindowsVis... | 32.735294 | 85 | 0.704852 | yohei-yoshihara |
99d02c5369de3bc72a4972d1887bea45fbb04834 | 9,433 | cpp | C++ | lib/RoomLayout.cpp | frasercrmck/LevelSyn | 549e24447e07ef2d325da5bd5decb0e9ad783037 | [
"BSD-3-Clause"
] | null | null | null | lib/RoomLayout.cpp | frasercrmck/LevelSyn | 549e24447e07ef2d325da5bd5decb0e9ad783037 | [
"BSD-3-Clause"
] | null | null | null | lib/RoomLayout.cpp | frasercrmck/LevelSyn | 549e24447e07ef2d325da5bd5decb0e9ad783037 | [
"BSD-3-Clause"
] | null | null | null |
#include "RoomLayout.h"
unsigned CRoomLayout::GetNumOfVertices() {
unsigned numOfVertices = 0;
for (unsigned i = 0; i < GetNumOfRooms(); i++) {
numOfVertices += m_rooms[i].GetNumOfVertices();
}
return numOfVertices;
}
unsigned CRoomLayout::GetNumOfEdges() {
unsigned numOfEdges = 0;
for (unsigned i = ... | 35.066914 | 80 | 0.601717 | frasercrmck |
99d1effd5e653c56cf316395290f636e65727f49 | 11,688 | hpp | C++ | optlib/include/ArgParser.hpp | radj307/307lib | 16c5052481b2414ee68beeb7746c006461e8160f | [
"MIT"
] | 1 | 2021-12-09T20:01:21.000Z | 2021-12-09T20:01:21.000Z | optlib/include/ArgParser.hpp | radj307/307lib | 16c5052481b2414ee68beeb7746c006461e8160f | [
"MIT"
] | null | null | null | optlib/include/ArgParser.hpp | radj307/307lib | 16c5052481b2414ee68beeb7746c006461e8160f | [
"MIT"
] | null | null | null | #pragma once
#include <ArgContainer.hpp>
#include <str.hpp>
#include <var.hpp>
#include <vector>
#include <concepts>
namespace opt {
using StrVec = std::vector<std::string>;
static struct {
/// @brief Defines valid argument prefix delimiters. By default, only '-' characters are accepted, however on windows forwa... | 50.16309 | 311 | 0.68027 | radj307 |
99d41aea8798baa57332d1f404ff490082d44c22 | 20,368 | cpp | C++ | export/release/macos/obj/src/PauseSubState.cpp | tikycookies/KE1.3.1Week7Bulid | 4c51f87f87510f3d1289fa292215e67e09cf109b | [
"Apache-2.0"
] | null | null | null | export/release/macos/obj/src/PauseSubState.cpp | tikycookies/KE1.3.1Week7Bulid | 4c51f87f87510f3d1289fa292215e67e09cf109b | [
"Apache-2.0"
] | null | null | null | export/release/macos/obj/src/PauseSubState.cpp | tikycookies/KE1.3.1Week7Bulid | 4c51f87f87510f3d1289fa292215e67e09cf109b | [
"Apache-2.0"
] | null | null | null | // Generated by Haxe 4.2.2
#include <hxcpp.h>
#ifndef INCLUDED_Alphabet
#include <Alphabet.h>
#endif
#ifndef INCLUDED_Controls
#include <Controls.h>
#endif
#ifndef INCLUDED_CoolUtil
#include <CoolUtil.h>
#endif
#ifndef INCLUDED_MainMenuState
#include <MainMenuState.h>
#endif
#ifndef INCLUDED_MusicBeatState
#include <M... | 41.398374 | 239 | 0.713325 | tikycookies |
99d6829dce868bdbb3ac1e4949d7fa7b9730bea3 | 1,784 | cpp | C++ | src/core/exceptions.cpp | florianbehrens/DeCoF2 | 7d7c0e62c1773fe9fc6d245301fa28eb7e9c7865 | [
"Apache-2.0"
] | 2 | 2015-08-05T02:02:00.000Z | 2020-12-10T05:51:10.000Z | src/core/exceptions.cpp | florianbehrens/DeCoF2 | 7d7c0e62c1773fe9fc6d245301fa28eb7e9c7865 | [
"Apache-2.0"
] | 33 | 2015-07-29T12:11:17.000Z | 2020-07-11T13:16:00.000Z | src/core/exceptions.cpp | florianbehrens/DeCoF2 | 7d7c0e62c1773fe9fc6d245301fa28eb7e9c7865 | [
"Apache-2.0"
] | 6 | 2016-03-08T14:41:46.000Z | 2020-07-09T12:56:52.000Z | /*
* Copyright (c) 2014 Florian Behrens
*
* 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 ... | 26.626866 | 107 | 0.735987 | florianbehrens |
99d89a1f86153a1352696b0a72b5daa2a804796b | 11,381 | cpp | C++ | planning/freespace_planning_algorithms/src/astar_search.cpp | tzhong518/autoware.universe | 580565a24ff9af8c86006905681f3d1036c8724a | [
"Apache-2.0"
] | null | null | null | planning/freespace_planning_algorithms/src/astar_search.cpp | tzhong518/autoware.universe | 580565a24ff9af8c86006905681f3d1036c8724a | [
"Apache-2.0"
] | null | null | null | planning/freespace_planning_algorithms/src/astar_search.cpp | tzhong518/autoware.universe | 580565a24ff9af8c86006905681f3d1036c8724a | [
"Apache-2.0"
] | null | null | null | // Copyright 2015-2019 Autoware Foundation
//
// 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 ... | 30.759459 | 100 | 0.715315 | tzhong518 |
99d900dec8334d8daefcbcdb8dbf61de033aa636 | 1,359 | cpp | C++ | plugin/jsbindings/manual/jsb_pluginx_extension_registration.cpp | CocosRobot/cocos2d-x | 1a527ea331363cfe108b5e2f0ac04a61f8883527 | [
"Zlib",
"libtiff",
"BSD-2-Clause",
"Apache-2.0",
"MIT",
"Libpng",
"curl",
"BSD-3-Clause"
] | 1 | 2016-05-12T11:12:19.000Z | 2016-05-12T11:12:19.000Z | plugin/jsbindings/manual/jsb_pluginx_extension_registration.cpp | nghialv/cocos2d-x | b44da014d2cc7e40689c4f28051e4877c6da3a8a | [
"Zlib",
"libtiff",
"BSD-2-Clause",
"Apache-2.0",
"MIT",
"Libpng",
"curl",
"BSD-3-Clause"
] | null | null | null | plugin/jsbindings/manual/jsb_pluginx_extension_registration.cpp | nghialv/cocos2d-x | b44da014d2cc7e40689c4f28051e4877c6da3a8a | [
"Zlib",
"libtiff",
"BSD-2-Clause",
"Apache-2.0",
"MIT",
"Libpng",
"curl",
"BSD-3-Clause"
] | null | null | null | #include "jsb_pluginx_extension_registration.h"
#include "jsb_pluginx_manual_iap.h"
static jsval anonEvaluate(JSContext *cx, JSObject *thisObj, const char* string) {
jsval out;
if (JS_EvaluateScript(cx, thisObj, string, strlen(string), "(string)", 1, &out) == JS_TRUE) {
return out;
}
return JSV... | 39.970588 | 161 | 0.743194 | CocosRobot |
99db806d4d15bfe7004dd7ebe64f20046db00fde | 2,356 | cpp | C++ | DISE_Server/src/Environment.cpp | castroaj/CPP_ROBUST_DISTRIBUTED_SYMMETRIC-KEY_ENCRYPTION | 054dcccd0f2413bba815b9161544e3b884bbfb11 | [
"Apache-2.0"
] | 1 | 2021-04-12T01:23:53.000Z | 2021-04-12T01:23:53.000Z | DISE_Server/src/Environment.cpp | castroaj/CPP_ROBUST_DISTRIBUTED_SYMMETRIC-KEY_ENCRYPTION | 054dcccd0f2413bba815b9161544e3b884bbfb11 | [
"Apache-2.0"
] | null | null | null | DISE_Server/src/Environment.cpp | castroaj/CPP_ROBUST_DISTRIBUTED_SYMMETRIC-KEY_ENCRYPTION | 054dcccd0f2413bba815b9161544e3b884bbfb11 | [
"Apache-2.0"
] | 1 | 2021-05-16T07:11:46.000Z | 2021-05-16T07:11:46.000Z | #include "../hdr/Environment.h"
Environment::Environment()
{
set_compromised(false);
}
Environment::~Environment()
{
}
void Environment::print_environment()
{
using namespace std;
cout << "ENVIRONMENT:" << endl;
cout << "\tThread Count: " << threadCount << endl;
cout << "\tMachi... | 26.772727 | 90 | 0.471562 | castroaj |
99dfc50b4158042e6d5efc01c78c7f0c42195ed1 | 15,586 | cpp | C++ | packages/websocket/src/Endpoint.cpp | aaronchongth/soss_v2 | b531c2046e24684670a4a2ea2fd3c134fcba0591 | [
"Apache-2.0"
] | null | null | null | packages/websocket/src/Endpoint.cpp | aaronchongth/soss_v2 | b531c2046e24684670a4a2ea2fd3c134fcba0591 | [
"Apache-2.0"
] | null | null | null | packages/websocket/src/Endpoint.cpp | aaronchongth/soss_v2 | b531c2046e24684670a4a2ea2fd3c134fcba0591 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2019 Open Source Robotics Foundation
*
* 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 appl... | 30.924603 | 80 | 0.582767 | aaronchongth |
99e1f5c832739d48cde45bb0df9897c4ec2275f2 | 482 | hpp | C++ | include/cage/http_request.hpp | pancpp/cage | 3a4eb5e3b6d40e6dee8e61bf984c83bf336e5999 | [
"BSL-1.0"
] | null | null | null | include/cage/http_request.hpp | pancpp/cage | 3a4eb5e3b6d40e6dee8e61bf984c83bf336e5999 | [
"BSL-1.0"
] | null | null | null | include/cage/http_request.hpp | pancpp/cage | 3a4eb5e3b6d40e6dee8e61bf984c83bf336e5999 | [
"BSL-1.0"
] | null | null | null | /**
* COPYRIGHT (C) 2020 Leyuan Pan ALL RIGHTS RESERVED.
*
* @brief Conversion between beast http and cage http messages.
* @author Leyuan Pan
* @date Oct 06, 2020
*/
#ifndef CAGE_HTTP_REQUEST_HPP_
#define CAGE_HTTP_REQUEST_HPP_
#include "boost/beast/http/message.hpp"
#include "boost/beast/http/string_body.hpp"
... | 21.909091 | 65 | 0.736515 | pancpp |
99e261bb14b4403a69f54d9b08dcf67c65edda30 | 108 | cpp | C++ | RTEngine/PCG/test-high/check-pcg64_k1024_fast.cpp | RootinTootinCoodin/RTEngine | 916354d8868f6eca5675390071e3ec93df497ed3 | [
"MIT"
] | 613 | 2015-01-27T09:47:36.000Z | 2022-03-17T20:26:02.000Z | third_party/pcg/test-high/check-pcg64_k1024_fast.cpp | Zephilinox/Enki | 5f405fec9ae0f3c3344a99fbee590d76ed4dbe55 | [
"MIT"
] | 59 | 2015-03-12T23:11:48.000Z | 2022-03-31T08:24:52.000Z | third_party/pcg/test-high/check-pcg64_k1024_fast.cpp | Zephilinox/Enki | 5f405fec9ae0f3c3344a99fbee590d76ed4dbe55 | [
"MIT"
] | 104 | 2015-02-24T16:25:17.000Z | 2022-03-22T09:55:51.000Z | #define RNG pcg64_k1024_fast
#define TWO_ARG_INIT 0
#define AWKWARD_128BIT_CODE 1
#include "pcg-test.cpp"
| 15.428571 | 29 | 0.805556 | RootinTootinCoodin |
99e3cd0ed2ef72b24b43d22b3934e9d2b12f891d | 4,722 | cpp | C++ | CPVulkan/Trampoline.cpp | MatthewSmit/CPVulkan | d96f2f6db4cbbabcc41c2023a48ec63d1950dec0 | [
"MIT"
] | 1 | 2019-11-13T00:47:05.000Z | 2019-11-13T00:47:05.000Z | CPVulkan/Trampoline.cpp | MatthewSmit/CPVulkan | d96f2f6db4cbbabcc41c2023a48ec63d1950dec0 | [
"MIT"
] | null | null | null | CPVulkan/Trampoline.cpp | MatthewSmit/CPVulkan | d96f2f6db4cbbabcc41c2023a48ec63d1950dec0 | [
"MIT"
] | null | null | null | #include "Trampoline.h"
// ReSharper disable CppUnusedIncludeDirective
#include "CommandBuffer.h"
#include "Device.h"
#include "Instance.h"
#include "PhysicalDevice.h"
#include "Queue.h"
#define CONCAT_IMPL(x, y) x##y
#define MACRO_CONCAT(x, y) CONCAT_IMPL(x, y)
#ifdef _MSC_VER
# define GET_ARG_COUNT(_, ...) INT... | 69.441176 | 439 | 0.626006 | MatthewSmit |
99e661e87df4b855ac57d42d331879f91de9791c | 3,874 | hpp | C++ | cpp/src/core/dubinswind.hpp | arthur-bit-monnot/fire-rs-saop | 321e16fceebf44e8e97b482c24f37fbf6dd7d162 | [
"BSD-2-Clause"
] | 13 | 2018-11-19T15:51:23.000Z | 2022-01-16T11:24:21.000Z | cpp/src/core/dubinswind.hpp | fire-rs-laas/fire-rs-saop | 321e16fceebf44e8e97b482c24f37fbf6dd7d162 | [
"BSD-2-Clause"
] | 14 | 2017-10-12T16:19:19.000Z | 2018-03-12T12:07:56.000Z | cpp/src/core/dubinswind.hpp | fire-rs-laas/fire-rs-saop | 321e16fceebf44e8e97b482c24f37fbf6dd7d162 | [
"BSD-2-Clause"
] | 4 | 2018-03-12T12:28:55.000Z | 2021-07-07T18:32:17.000Z | /* Copyright (c) 2018, CNRS-LAAS
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 following di... | 35.87037 | 119 | 0.67811 | arthur-bit-monnot |
99e999cb2bafedb3bd16d9e5c8c12cb22b522e24 | 1,605 | hpp | C++ | src/systems/physics/physics_task.hpp | vi3itor/Blunted2 | 318af452e51174a3a4634f3fe19b314385838992 | [
"Unlicense"
] | 56 | 2020-07-22T22:11:06.000Z | 2022-03-09T08:11:43.000Z | GameplayFootball/src/systems/physics/physics_task.hpp | ElsevierSoftwareX/SOFTX-D-20-00016 | 48c28adb72aa167a251636bc92111b3c43c0be67 | [
"MIT"
] | 9 | 2021-04-22T07:06:25.000Z | 2022-01-22T12:54:52.000Z | GameplayFootball/src/systems/physics/physics_task.hpp | ElsevierSoftwareX/SOFTX-D-20-00016 | 48c28adb72aa167a251636bc92111b3c43c0be67 | [
"MIT"
] | 20 | 2017-11-07T16:52:32.000Z | 2022-01-25T02:42:48.000Z | // written by bastiaan konings schuiling 2008 - 2014
// this work is public domain. the code is undocumented, scruffy, untested, and should generally not be used for anything important.
// i do not offer support, so don't ask. to be used for inspiration :)
#ifndef _HPP_SYSTEMS_PHYSICS_TASK
#define _HPP_SYSTEMS_PHYSICS... | 22.928571 | 195 | 0.704673 | vi3itor |
99f11e1787d02c32e8387f7bee594e5d5a325a7e | 1,425 | cpp | C++ | insensitive-palindrome/solution.cpp | devcbandung/clashofcode-testdata-and-solution | fc0a9a85552ec15691018ec24e6020fdb5424ebd | [
"MIT"
] | 5 | 2020-06-28T07:20:05.000Z | 2020-07-01T08:13:08.000Z | insensitive-palindrome/solution.cpp | devcbandung/clashofcode-testdata-and-solution | fc0a9a85552ec15691018ec24e6020fdb5424ebd | [
"MIT"
] | null | null | null | insensitive-palindrome/solution.cpp | devcbandung/clashofcode-testdata-and-solution | fc0a9a85552ec15691018ec24e6020fdb5424ebd | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
// Program kita akan tetap benar jika kita menggunakan toLowerCase
char toUpperCase(char c) {
// Jika c sudah upper-case, maka tidak perlu ubah apa-apa
if ('A' <= c && c <= 'Z') {
return c;
}
// Jika c bukan upper-case, maka asumsikan c adalah lower-case.
// ... | 29.6875 | 107 | 0.630877 | devcbandung |
99f3f735ac14ac41dee94f6848db8fa91d52f157 | 9,235 | cpp | C++ | Cores/Mednafen/mednafen/src/pce_fast/huc.cpp | ianclawson/Provenance | e9cc8c57f41a4d122a998cf53ffd69b1513d4205 | [
"BSD-3-Clause"
] | 3,459 | 2015-01-07T14:07:09.000Z | 2022-03-25T03:51:10.000Z | Cores/Mednafen/mednafen/src/pce_fast/huc.cpp | ianclawson/Provenance | e9cc8c57f41a4d122a998cf53ffd69b1513d4205 | [
"BSD-3-Clause"
] | 1,046 | 2018-03-24T17:56:16.000Z | 2022-03-23T08:13:09.000Z | Cores/Mednafen/mednafen/src/pce_fast/huc.cpp | ianclawson/Provenance | e9cc8c57f41a4d122a998cf53ffd69b1513d4205 | [
"BSD-3-Clause"
] | 549 | 2015-01-07T14:07:15.000Z | 2022-01-07T16:13:05.000Z | /* Mednafen - Multi-system Emulator
*
* Portions of this file Copyright (C) 2004 Ki
*
* 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 optio... | 22.746305 | 197 | 0.653817 | ianclawson |
99f64b6766c922beb97bc9a7656c3dd73f4402ea | 25,148 | cpp | C++ | src/pgen/exp_SedovTaylor.cpp | roarkhabegger/athena-public-version | 3446d2f4601c1dbbfd7a98d4f53335d97e21e195 | [
"BSD-3-Clause"
] | null | null | null | src/pgen/exp_SedovTaylor.cpp | roarkhabegger/athena-public-version | 3446d2f4601c1dbbfd7a98d4f53335d97e21e195 | [
"BSD-3-Clause"
] | null | null | null | src/pgen/exp_SedovTaylor.cpp | roarkhabegger/athena-public-version | 3446d2f4601c1dbbfd7a98d4f53335d97e21e195 | [
"BSD-3-Clause"
] | null | null | null | //========================================================================================
// Athena++ astrophysical MHD code
// Copyright(C) 2014 James M. Stone <jmstone@princeton.edu> and other code contributors
// Licensed under the 3-clause BSD License, see LICENSE file for details
//===============================... | 35.620397 | 143 | 0.513401 | roarkhabegger |
99fcf1d356a972ef915670d0f29c696130c9ffb7 | 2,640 | cpp | C++ | Axis.CommonLibrary/application/output/collectors/summarizers/SummaryNodeVelocityCollector.cpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | 2 | 2021-07-23T08:49:54.000Z | 2021-07-29T22:07:30.000Z | Axis.CommonLibrary/application/output/collectors/summarizers/SummaryNodeVelocityCollector.cpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | Axis.CommonLibrary/application/output/collectors/summarizers/SummaryNodeVelocityCollector.cpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | #include "SummaryNodeVelocityCollector.hpp"
#include <assert.h>
#include "domain/elements/Node.hpp"
#include "domain/analyses/NumericalModel.hpp"
namespace aaocs = axis::application::output::collectors::summarizers;
namespace aaoc = axis::application::output::collectors;
namespace aaor = axis::application::output::rec... | 40 | 102 | 0.659848 | renato-yuzup |
8201fb56e961368defa50ec1093fde45507f9e71 | 483 | cpp | C++ | src/gkom/World.cpp | akowalew/mill-opengl | 91ef11e6cdbfe691e0073d9883e42c0a29d29b45 | [
"MIT"
] | null | null | null | src/gkom/World.cpp | akowalew/mill-opengl | 91ef11e6cdbfe691e0073d9883e42c0a29d29b45 | [
"MIT"
] | null | null | null | src/gkom/World.cpp | akowalew/mill-opengl | 91ef11e6cdbfe691e0073d9883e42c0a29d29b45 | [
"MIT"
] | null | null | null | #include "gkom/World.hpp"
#include <cassert>
#include "gkom/Logging.hpp"
#include "gkom/Entity.hpp"
namespace gkom {
World::World()
: logger_(Logging::getLogger("World"))
{
logger_("Initialized");
}
World::~World() = default;
Entity* World::createEntity()
{
logger_("Creating new entity...");
const auto& enti... | 14.636364 | 72 | 0.677019 | akowalew |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.