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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ce3761c6141bb4ed1abcc92b7b91d30584e23061 | 301 | cpp | C++ | src/sdm/utils/linear_programming/ndpomdp_naming.cpp | SDMStudio/sdms | 43a86973081ffd86c091aed69b332f0087f59361 | [
"MIT"
] | null | null | null | src/sdm/utils/linear_programming/ndpomdp_naming.cpp | SDMStudio/sdms | 43a86973081ffd86c091aed69b332f0087f59361 | [
"MIT"
] | null | null | null | src/sdm/utils/linear_programming/ndpomdp_naming.cpp | SDMStudio/sdms | 43a86973081ffd86c091aed69b332f0087f59361 | [
"MIT"
] | null | null | null | #include <sdm/utils/linear_programming/ndpomdp_naming.hpp>
namespace sdm
{
std::string NDPOMDPNaming::getTransitionName(const std::shared_ptr<State> &x, const std::shared_ptr<State> &y)
{
std::ostringstream oss;
oss << "tr:" << x << ":" << y;
return oss.str();
}
} | 27.363636 | 114 | 0.621262 | SDMStudio |
ce3a12a8fbe10c4c915dd603f022d69b38c4d3a1 | 6,604 | cpp | C++ | test/unit/MessageBuffer_test.cpp | mgukowsky/Omulator | 82e6d112ee09fa02cce8d0d4ad2e9077cc73e870 | [
"0BSD"
] | 1 | 2022-01-17T22:16:47.000Z | 2022-01-17T22:16:47.000Z | test/unit/MessageBuffer_test.cpp | mgukowsky/Omulator | 82e6d112ee09fa02cce8d0d4ad2e9077cc73e870 | [
"0BSD"
] | 14 | 2019-05-14T02:43:53.000Z | 2019-05-26T23:05:22.000Z | test/unit/MessageBuffer_test.cpp | mgukowsky/Omulator | 82e6d112ee09fa02cce8d0d4ad2e9077cc73e870 | [
"0BSD"
] | null | null | null | #include "omulator/msg/MessageBuffer.hpp"
#include "omulator/util/reinterpret.hpp"
#include <gtest/gtest.h>
#include <cmath>
#include <cstddef>
using omulator::U16;
using omulator::U32;
using omulator::U8;
using omulator::msg::MessageBuffer;
using omulator::util::reinterpret;
namespace {
constexpr int MAGIC = 42;
... | 44.621622 | 100 | 0.726075 | mgukowsky |
ce3b9f8bc7b42cacfd21af37d7c193993324ab96 | 1,052 | hpp | C++ | include/cond_check.hpp | MatthiasKillat/template_metaprogramming | a0f65d11052c317387d09a2fdf967cac2bb987a2 | [
"Apache-2.0"
] | null | null | null | include/cond_check.hpp | MatthiasKillat/template_metaprogramming | a0f65d11052c317387d09a2fdf967cac2bb987a2 | [
"Apache-2.0"
] | null | null | null | include/cond_check.hpp | MatthiasKillat/template_metaprogramming | a0f65d11052c317387d09a2fdf967cac2bb987a2 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <type_traits>
//some helper aliases/templates to make reasoning about what happens a little easier
template <bool Value = true>
using Boolean = std::integral_constant<bool, Value>;
using True = Boolean<true>;
using False = Boolean<false>;
template <typename Cond>
using TrueOrFail = typename st... | 29.222222 | 111 | 0.701521 | MatthiasKillat |
ce3c24bd470b1a00b64490111036387bd630ce2f | 3,725 | cpp | C++ | Sources/x10/xla_tensor/ops/xla_avg_pool.cpp | vguerra/swift-apis | 215c1380874c55d2f12ae81ce78968f9e25ed723 | [
"Apache-2.0"
] | 848 | 2019-02-12T00:27:29.000Z | 2022-01-26T04:41:50.000Z | Sources/x10/xla_tensor/ops/xla_avg_pool.cpp | BradLarson/swift-apis | 02f31d531cbbfbd72de2b2f288f24f8645ee5bcb | [
"Apache-2.0"
] | 698 | 2019-02-12T12:35:54.000Z | 2022-01-25T00:48:53.000Z | Sources/x10/xla_tensor/ops/xla_avg_pool.cpp | ProfFan/swift-apis | f51ee4618d652a2419e998bf9418ad80bda67454 | [
"Apache-2.0"
] | 181 | 2019-02-12T00:33:34.000Z | 2021-12-05T19:15:55.000Z | // Copyright 2020 TensorFlow Authors
//
// 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 agree... | 40.934066 | 79 | 0.656644 | vguerra |
ce3d505ecb23510ee8c55d106cfcec90f5cd6f75 | 106 | hpp | C++ | buildSystemTests/single_exec/code/inc/MyClass.hpp | iblis-ms/python_cmake_build_system | 9f52f004241c6e8efc4a036d5c58f67a6d40e7ec | [
"MIT"
] | null | null | null | buildSystemTests/single_exec/code/inc/MyClass.hpp | iblis-ms/python_cmake_build_system | 9f52f004241c6e8efc4a036d5c58f67a6d40e7ec | [
"MIT"
] | 6 | 2020-10-11T21:03:24.000Z | 2020-10-12T20:32:13.000Z | buildSystemTests/single_exec/code/inc/MyClass.hpp | iblis-ms/python_cmake_build_system | 9f52f004241c6e8efc4a036d5c58f67a6d40e7ec | [
"MIT"
] | null | null | null | #ifndef MY_CLASS_HPP_
#define MY_CLASS_HPP_
struct CMyClass {
void fun();
};
#endif // MY_CLASS_HPP_ | 13.25 | 23 | 0.726415 | iblis-ms |
ce45bae2fc9f82c959a4547d8432730acb3e384d | 15,261 | hpp | C++ | test/test_types.hpp | lingjf/h2un | 7735c2f07f58ea8b92a9e9608c9b45c98c94c670 | [
"Apache-2.0"
] | null | null | null | test/test_types.hpp | lingjf/h2un | 7735c2f07f58ea8b92a9e9608c9b45c98c94c670 | [
"Apache-2.0"
] | null | null | null | test/test_types.hpp | lingjf/h2un | 7735c2f07f58ea8b92a9e9608c9b45c98c94c670 | [
"Apache-2.0"
] | null | null | null |
#if defined __GNUC__ || defined __clang__
#pragma GCC diagnostic ignored "-Wunused-variable"
#pragma GCC diagnostic ignored "-Wunused-function"
#endif
extern char buffer[1024];
extern "C" {
int foobar0();
}
static int foobar0_fake()
{
return -1;
}
int foobar1(int a);
static int foobar1_fake(int a)
{
return -... | 35.163594 | 175 | 0.607169 | lingjf |
ce47fca96d5b02ef1201fbd8a6957389ba9fe8ee | 1,268 | cc | C++ | tests/test_integration_2d.cc | stvdwtt/adamantine | af396f02089a488a35146ab83234974ae465ada2 | [
"BSD-3-Clause"
] | null | null | null | tests/test_integration_2d.cc | stvdwtt/adamantine | af396f02089a488a35146ab83234974ae465ada2 | [
"BSD-3-Clause"
] | null | null | null | tests/test_integration_2d.cc | stvdwtt/adamantine | af396f02089a488a35146ab83234974ae465ada2 | [
"BSD-3-Clause"
] | null | null | null | /* Copyright (c) 2016 - 2020, the adamantine authors.
*
* This file is subject to the Modified BSD License and may not be distributed
* without copyright and license information. Please refer to the file LICENSE
* for the text and further information on this license.
*/
#define BOOST_TEST_MODULE Integration_2D
#... | 30.190476 | 78 | 0.713722 | stvdwtt |
ce49e472e8df388706447b5f15ebbd415c166ffa | 1,002 | cpp | C++ | Game/Source/Cores/TestCore.cpp | wobbier/portals | c9f603318137f80b773bab5aad12be265c17e846 | [
"MIT"
] | null | null | null | Game/Source/Cores/TestCore.cpp | wobbier/portals | c9f603318137f80b773bab5aad12be265c17e846 | [
"MIT"
] | null | null | null | Game/Source/Cores/TestCore.cpp | wobbier/portals | c9f603318137f80b773bab5aad12be265c17e846 | [
"MIT"
] | null | null | null | #include "TestCore.h"
#include "Components/Transform.h"
#include "Components/Camera.h"
#include "Engine/Input.h"
#include "Events/EventManager.h"
#include "optick.h"
#include "Engine/World.h"
#include "Components/Graphics/Model.h"
TestCore::TestCore() : Base(ComponentFilter().Requires<Transform>())
{
}
... | 18.90566 | 69 | 0.658683 | wobbier |
ce4a913d3b0cb97664f722fc1e8d752122a706a4 | 2,881 | hpp | C++ | src/include/portaudio/portaudioDuplex.hpp | elinjammal/opensmile | 0ae2da44e61744ff1aaa9bae2b95d747febb08de | [
"W3C"
] | 245 | 2020-10-24T16:27:13.000Z | 2022-03-31T03:01:11.000Z | src/include/portaudio/portaudioDuplex.hpp | elinjammal/opensmile | 0ae2da44e61744ff1aaa9bae2b95d747febb08de | [
"W3C"
] | 41 | 2021-01-13T11:30:42.000Z | 2022-01-14T14:36:11.000Z | src/include/portaudio/portaudioDuplex.hpp | elinjammal/opensmile | 0ae2da44e61744ff1aaa9bae2b95d747febb08de | [
"W3C"
] | 43 | 2020-12-11T15:28:19.000Z | 2022-03-20T11:55:58.000Z | /*F***************************************************************************
* This file is part of openSMILE.
*
* Copyright (c) audEERING GmbH. All rights reserved.
* See the file COPYING for details on license terms.
***************************************************************************E*/
/* openSMIL... | 25.27193 | 139 | 0.669212 | elinjammal |
ce4c7f43b84d2b460d9f9beadab57b8a36a1105e | 1,122 | cpp | C++ | engine/engine/render_system/render_system.cpp | phossc/game-engine | 7695ed2795cfe44aa295da2114dffc49f258af33 | [
"Zlib"
] | 1 | 2019-01-13T14:43:15.000Z | 2019-01-13T14:43:15.000Z | engine/engine/render_system/render_system.cpp | phossc/game-engine | 7695ed2795cfe44aa295da2114dffc49f258af33 | [
"Zlib"
] | null | null | null | engine/engine/render_system/render_system.cpp | phossc/game-engine | 7695ed2795cfe44aa295da2114dffc49f258af33 | [
"Zlib"
] | 1 | 2019-01-13T14:43:02.000Z | 2019-01-13T14:43:02.000Z | #include "engine/render_system/render_system.hpp"
#include "engine/core/profiler.hpp"
#include "engine/core/system.hpp"
#include "engine/update_priorities.hpp"
#include "glad/glad.h"
#include <cassert>
namespace engine {
void Render_system::activate() {
glClearColor(0.8f, 0.8f, 0.8f, 1.0f);
sys->update_sys... | 26.714286 | 73 | 0.721034 | phossc |
ce53554d719dd9023260a439fb8379b5023f734f | 1,633 | hpp | C++ | ext/src/java/awt/Container_AccessibleAWTContainer.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | ext/src/java/awt/Container_AccessibleAWTContainer.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | ext/src/java/awt/Container_AccessibleAWTContainer.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/rt.jar
#pragma once
#include <atomic>
#include <fwd-POI.hpp>
#include <java/awt/fwd-POI.hpp>
#include <java/awt/event/fwd-POI.hpp>
#include <java/beans/fwd-POI.hpp>
#include <javax/accessibility/fwd-POI.hpp>
#include <java/awt/... | 28.649123 | 97 | 0.753827 | pebble2015 |
ce594b71cd4b88e19a72e197efce997c98b9f5d6 | 15,592 | cpp | C++ | source/coolprj/lisp.cpp | pierrebestwork/owl-next | 94ba85e8b4dcb978f095b479f85fe4ba3af2fe4e | [
"Zlib"
] | null | null | null | source/coolprj/lisp.cpp | pierrebestwork/owl-next | 94ba85e8b4dcb978f095b479f85fe4ba3af2fe4e | [
"Zlib"
] | null | null | null | source/coolprj/lisp.cpp | pierrebestwork/owl-next | 94ba85e8b4dcb978f095b479f85fe4ba3af2fe4e | [
"Zlib"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////
//
// Copyright: Ferdinand Prantl, portions by Stcherbatchenko Andrei
// E-mail: prantl@ff.cuni.cz
//
// LISP (particularly AutoLISP) syntax highlighing definition
//
// You are free to use or modify this code to the following r... | 26.205042 | 182 | 0.40617 | pierrebestwork |
ce5ca3a37be366ff132c49a2351fe3b9d6531e52 | 2,052 | cpp | C++ | src/pool/executor_thread_pool.cpp | juruen/cavalieri | c3451579193fc8f081b6228ae295b463a0fd23bd | [
"MIT"
] | 54 | 2015-01-14T21:11:56.000Z | 2021-06-27T13:29:40.000Z | src/pool/executor_thread_pool.cpp | juruen/cavalieri | c3451579193fc8f081b6228ae295b463a0fd23bd | [
"MIT"
] | null | null | null | src/pool/executor_thread_pool.cpp | juruen/cavalieri | c3451579193fc8f081b6228ae295b463a0fd23bd | [
"MIT"
] | 10 | 2015-07-15T05:09:34.000Z | 2019-01-10T07:32:02.000Z | #include <glog/logging.h>
#include <pool/executor_thread_pool.h>
namespace {
const std::string k_exec_pool_service = "executor pool queue size";
const std::string k_exec_pool_desc = "number of pending tasks";
const size_t k_stop_attempts = 50;
const size_t k_stop_interval_check_ms = 100;
const size_t k_max_queue_siz... | 19.730769 | 73 | 0.649123 | juruen |
ce5d9b20ca0e1b4316efffb721be5acd3ce048a8 | 2,554 | cpp | C++ | Codeforces-Code/8VC Venture Cup 2016 - Final Round/G.cpp | PrayStarJirachi/Exercise-Code | 801a5926eccc971ab2182e5e99e3a0746bd6a7f0 | [
"MIT"
] | null | null | null | Codeforces-Code/8VC Venture Cup 2016 - Final Round/G.cpp | PrayStarJirachi/Exercise-Code | 801a5926eccc971ab2182e5e99e3a0746bd6a7f0 | [
"MIT"
] | null | null | null | Codeforces-Code/8VC Venture Cup 2016 - Final Round/G.cpp | PrayStarJirachi/Exercise-Code | 801a5926eccc971ab2182e5e99e3a0746bd6a7f0 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
const int MAXN = 4001;
int r, c, n, k, a[MAXN], p[MAXN], L[MAXN], R[MAXN], sA[MAXN], sB[MAXN], pA[MAXN], pB[MAXN];
std::pair<int, int> z[MAXN];
std::vector<int> d[MAXN];
long long answer;
bool cmp(const std::pair<int, int> &a, const std::pair<int, int> &b) {
return a.second < b.second;
}
v... | 25.54 | 91 | 0.434612 | PrayStarJirachi |
ce611cb18716c369627b86e45bceca05fc3a4c7e | 1,740 | hpp | C++ | src/solvers/agent_routing/AgentTask.hpp | tomcreutz/planning-templ | 55e35ede362444df9a7def6046f6df06851fe318 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T12:15:15.000Z | 2022-03-31T12:15:15.000Z | src/solvers/agent_routing/AgentTask.hpp | tomcreutz/planning-templ | 55e35ede362444df9a7def6046f6df06851fe318 | [
"BSD-3-Clause"
] | null | null | null | src/solvers/agent_routing/AgentTask.hpp | tomcreutz/planning-templ | 55e35ede362444df9a7def6046f6df06851fe318 | [
"BSD-3-Clause"
] | 1 | 2021-12-29T10:38:07.000Z | 2021-12-29T10:38:07.000Z | #ifndef TEMPL_AGENT_ROUTING_AGENT_TASK_HPP
#define TEMPL_AGENT_ROUTING_AGENT_TASK_HPP
#include <cstdint>
#include "../../symbols/constants/Location.hpp"
#include "../../solvers/temporal/Interval.hpp"
namespace templ {
namespace solvers {
namespace agent_routing {
typedef uint32_t TaskPriority;
typedef uint32_t TaskD... | 33.461538 | 100 | 0.744828 | tomcreutz |
ce6259027340728f6bba8d36f06a7b60a07a71e8 | 6,761 | cpp | C++ | SpatialGDK/Source/SpatialGDK/Private/Tests/SpatialView/AuthorityRecordTest.cpp | elizabethking2/UnrealGDK | e3a8aee7c71c6bd0c33f4f88c10b6725d8039d74 | [
"MIT"
] | 363 | 2018-07-30T12:57:42.000Z | 2022-03-25T14:30:28.000Z | SpatialGDK/Source/SpatialGDK/Private/Tests/SpatialView/AuthorityRecordTest.cpp | elizabethking2/UnrealGDK | e3a8aee7c71c6bd0c33f4f88c10b6725d8039d74 | [
"MIT"
] | 1,634 | 2018-07-30T14:30:25.000Z | 2022-03-03T01:55:15.000Z | SpatialGDK/Source/SpatialGDK/Private/Tests/SpatialView/AuthorityRecordTest.cpp | elizabethking2/UnrealGDK | e3a8aee7c71c6bd0c33f4f88c10b6725d8039d74 | [
"MIT"
] | 153 | 2018-07-31T13:45:02.000Z | 2022-03-03T05:20:24.000Z | // Copyright (c) Improbable Worlds Ltd, All Rights Reserved
#include "Tests/TestDefinitions.h"
#include "SpatialView/AuthorityRecord.h"
#define AUTHORITYRECORD_TEST(TestName) \
GDK_TEST(Core, AuthorityRecord, TestName)
using namespace SpatialGDK;
namespace
{
class AuthorityChangeRecordFixture
{
public:
const... | 46.308219 | 160 | 0.845289 | elizabethking2 |
ce6b700b7d210e0917bcaca2f5360e853a4caf6f | 2,186 | cpp | C++ | src/platform.cpp | dev2alert/node-samp-plugin | ad3bf531aacaae99b653154b0af2e6809429f212 | [
"MIT"
] | 2 | 2022-01-13T15:37:15.000Z | 2022-02-06T11:55:23.000Z | src/platform.cpp | dev2alert/node-samp-plugin | ad3bf531aacaae99b653154b0af2e6809429f212 | [
"MIT"
] | null | null | null | src/platform.cpp | dev2alert/node-samp-plugin | ad3bf531aacaae99b653154b0af2e6809429f212 | [
"MIT"
] | null | null | null | #include "platform.h"
#include "env.h"
#include "json.hpp"
namespace nodesamp {
Platform::Platform(const std::vector<std::string>& options, std::string path, const std::vector<std::string>& args): path(path) {
this->args.push_back("");
for(std::string option: options)
this->args.push_ba... | 31.681159 | 141 | 0.595608 | dev2alert |
ce6eac4783780cacc30f2eac52b346bbfa7db469 | 1,457 | cpp | C++ | aashishgahlawat/codeforces/B/834-B/834-B-32840837.cpp | aashishgahlawat/CompetetiveProgramming | 12d6b2682765ae05b622968b9a26b0b519e170aa | [
"MIT"
] | null | null | null | aashishgahlawat/codeforces/B/834-B/834-B-32840837.cpp | aashishgahlawat/CompetetiveProgramming | 12d6b2682765ae05b622968b9a26b0b519e170aa | [
"MIT"
] | null | null | null | aashishgahlawat/codeforces/B/834-B/834-B-32840837.cpp | aashishgahlawat/CompetetiveProgramming | 12d6b2682765ae05b622968b9a26b0b519e170aa | [
"MIT"
] | null | null | null | #include <iostream>
#include <bits/stdc++.h>
#include <math.h>
#include <string.h>
#include <algorithm>
#define endl '\n'
#define ll long long int
#define pb push_back
#define mp make_pair
#define foriter(it, x) for (__typeof((x).begin()) it = (x).begin(); it != (x).end(); it++)
using namespace std;
int mod=1000000007;... | 27.490566 | 95 | 0.586822 | aashishgahlawat |
ce7318de225a1db368a9b0c8d64199de117d9107 | 1,003 | hpp | C++ | third_party/boost/simd/function/sec.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | 6 | 2018-02-25T22:23:33.000Z | 2021-01-15T15:13:12.000Z | third_party/boost/simd/function/sec.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | null | null | null | third_party/boost/simd/function/sec.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | 7 | 2017-12-12T12:36:31.000Z | 2020-02-10T14:27:07.000Z | //==================================================================================================
/*!
@file
@copyright 2016 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
//=========================... | 22.288889 | 100 | 0.565304 | SylvainCorlay |
707153a6e4726f68eaa4fdea21e44b99dae2d71f | 14,212 | cpp | C++ | quantitative_finance/L2/benchmarks/MCAmericanEngineMultiKernel/src/main.cpp | Aperture-Electronic/Vitis_Libraries | e178d54f82c90f1a1e47f599f401f8cbf8df86d7 | [
"Apache-2.0"
] | 1 | 2020-10-27T07:37:10.000Z | 2020-10-27T07:37:10.000Z | quantitative_finance/L2/benchmarks/MCAmericanEngineMultiKernel/src/main.cpp | Aperture-Electronic/Vitis_Libraries | e178d54f82c90f1a1e47f599f401f8cbf8df86d7 | [
"Apache-2.0"
] | null | null | null | quantitative_finance/L2/benchmarks/MCAmericanEngineMultiKernel/src/main.cpp | Aperture-Electronic/Vitis_Libraries | e178d54f82c90f1a1e47f599f401f8cbf8df86d7 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 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.
* 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... | 37.010417 | 114 | 0.595835 | Aperture-Electronic |
707402dafbf6db8e7e3b3f05a70de164b09eeeea | 1,441 | hpp | C++ | liblumi/include/Matrix.hpp | Rertsyd/LumiRT | d562fd786f769b385bc051e2ea8bcd26162a9dc6 | [
"MIT"
] | null | null | null | liblumi/include/Matrix.hpp | Rertsyd/LumiRT | d562fd786f769b385bc051e2ea8bcd26162a9dc6 | [
"MIT"
] | null | null | null | liblumi/include/Matrix.hpp | Rertsyd/LumiRT | d562fd786f769b385bc051e2ea8bcd26162a9dc6 | [
"MIT"
] | null | null | null | /* ************************************************************************** */
/* ,, */
/* `7MMF' db `7MM"""Mq. MMP""MM""YMM */
/* MM MM `MM.P' MM `7 ... | 36.025 | 80 | 0.390007 | Rertsyd |
7075e1e7e10acf94d09cf6ff48955f05a6a9631f | 4,305 | cpp | C++ | batch/src/v20170312/model/Instance.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 43 | 2019-08-14T08:14:12.000Z | 2022-03-30T12:35:09.000Z | batch/src/v20170312/model/Instance.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 12 | 2019-07-15T10:44:59.000Z | 2021-11-02T12:35:00.000Z | batch/src/v20170312/model/Instance.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 28 | 2019-07-12T09:06:22.000Z | 2022-03-30T08:04:18.000Z | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... | 27.774194 | 137 | 0.688037 | suluner |
707741214e08d77199f8244fd2fe89ae5696f21c | 587 | cpp | C++ | src/Actions/Model/ModelDeleteAction.cpp | viveret/script-ai | 15f8dc561e55812de034bb729e83ff01bec61743 | [
"BSD-3-Clause"
] | null | null | null | src/Actions/Model/ModelDeleteAction.cpp | viveret/script-ai | 15f8dc561e55812de034bb729e83ff01bec61743 | [
"BSD-3-Clause"
] | null | null | null | src/Actions/Model/ModelDeleteAction.cpp | viveret/script-ai | 15f8dc561e55812de034bb729e83ff01bec61743 | [
"BSD-3-Clause"
] | null | null | null | #include "../Actions.hpp"
#include "../../Program.hpp"
#include "../../AIModelAdapter.hpp"
#include <iostream>
using namespace ScriptAI;
ModelDeleteAction::ModelDeleteAction(AIProgram *prog): MenuAction(prog) {
}
const char* ModelDeleteAction::label() {
return "model delete";
}
std::string ModelDeleteAction::des... | 20.241379 | 73 | 0.678024 | viveret |
7078a9eb480d1728bbcf836655ee08d8b10f50d7 | 1,816 | cc | C++ | scrummer2.cc | alexhairyman/scrummy | e6c0aa72930967895dccda8e5bea3372d9969e1f | [
"MIT"
] | null | null | null | scrummer2.cc | alexhairyman/scrummy | e6c0aa72930967895dccda8e5bea3372d9969e1f | [
"MIT"
] | null | null | null | scrummer2.cc | alexhairyman/scrummy | e6c0aa72930967895dccda8e5bea3372d9969e1f | [
"MIT"
] | 1 | 2019-01-16T16:50:26.000Z | 2019-01-16T16:50:26.000Z | /*
Copyright (c) 2012 Alex Herrmann alexhairyman@gmail.com
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,... | 41.272727 | 93 | 0.765419 | alexhairyman |
707b7103c26594505bd1802695743b3709cca465 | 4,317 | inl | C++ | iceoryx_posh/include/iceoryx_posh/internal/runtime/shared_memory_creator.inl | budrus/iceoryx | 77c84ae339db8aaedd3b34962474a13272cd59e7 | [
"Apache-2.0"
] | 1 | 2020-02-20T23:52:22.000Z | 2020-02-20T23:52:22.000Z | iceoryx_posh/include/iceoryx_posh/internal/runtime/shared_memory_creator.inl | michael-poehnl/iceoryx | 77c84ae339db8aaedd3b34962474a13272cd59e7 | [
"Apache-2.0"
] | null | null | null | iceoryx_posh/include/iceoryx_posh/internal/runtime/shared_memory_creator.inl | michael-poehnl/iceoryx | 77c84ae339db8aaedd3b34962474a13272cd59e7 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2019 by Robert Bosch GmbH. 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... | 37.53913 | 114 | 0.726199 | budrus |
707d1f44fcaf490c374f380c4a3ed254471773ec | 872 | cpp | C++ | test/classwork_test/03_assign_test/decisions_tests.cpp | acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-Irvingperez | 52f01b57eea81445f5ef13325969a8a1bd868c50 | [
"MIT"
] | null | null | null | test/classwork_test/03_assign_test/decisions_tests.cpp | acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-Irvingperez | 52f01b57eea81445f5ef13325969a8a1bd868c50 | [
"MIT"
] | null | null | null | test/classwork_test/03_assign_test/decisions_tests.cpp | acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-Irvingperez | 52f01b57eea81445f5ef13325969a8a1bd868c50 | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "catch.hpp"
//#include "loops.h"
#include "decision.h"
TEST_CASE("Verify Test Configuration", "verification") {
REQUIRE(true == true);
}
TEST_CASE("Verify Test Configuration for IF function ")
{
REQUIRE(get_le... | 32.296296 | 97 | 0.733945 | acc-cosc-1337-fall-2020 |
707e28817fd4752255ed94a3c57620a50c5e75e6 | 1,376 | hpp | C++ | viennacl/device_specific/builtin_database/matrix_axpy.hpp | denis14/ViennaCL-1.5.2 | fec808905cca30196e10126681611bdf8da5297a | [
"MIT"
] | null | null | null | viennacl/device_specific/builtin_database/matrix_axpy.hpp | denis14/ViennaCL-1.5.2 | fec808905cca30196e10126681611bdf8da5297a | [
"MIT"
] | null | null | null | viennacl/device_specific/builtin_database/matrix_axpy.hpp | denis14/ViennaCL-1.5.2 | fec808905cca30196e10126681611bdf8da5297a | [
"MIT"
] | null | null | null | #ifndef VIENNACL_DEVICE_SPECIFIC_BUILTIN_DATABASE_MATRIX_AXPY_HPP_
#define VIENNACL_DEVICE_SPECIFIC_BUILTIN_DATABASE_MATRIX_AXPY_HPP_
#include "viennacl/ocl/device_utils.hpp"
#include "viennacl/scheduler/forwards.h"
#include "viennacl/device_specific/forwards.h"
#include "viennacl/device_specific/builtin_database/co... | 27.52 | 93 | 0.817587 | denis14 |
708187f2f61e57848314f089193d38abe44b82e9 | 8,542 | cpp | C++ | src/Test_binaryCompare.cpp | leekt216/HElib | d2700ba62d2399213b5293686e715d01ad65e6c0 | [
"Apache-2.0"
] | 1 | 2022-02-14T02:37:58.000Z | 2022-02-14T02:37:58.000Z | homomorphic_evaluation/lib/helib_pack/src/test/Test_binaryCompare.cpp | dklee0501/Lobster | f2b73df9165c76e8b521d8ebd639d68321e3862b | [
"MIT"
] | 1 | 2017-05-16T09:26:15.000Z | 2017-05-16T09:26:15.000Z | homomorphic_evaluation/lib/helib_pack/src/test/Test_binaryCompare.cpp | dklee0501/Lobster | f2b73df9165c76e8b521d8ebd639d68321e3862b | [
"MIT"
] | 2 | 2019-02-01T11:34:34.000Z | 2021-11-27T14:49:27.000Z | /* Copyright (C) 2012-2017 IBM Corp.
* This program is 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... | 29.659722 | 79 | 0.602552 | leekt216 |
7088c3ce3731cd3b803ead4fb5e4c790e4826711 | 4,341 | hpp | C++ | include/synthizer/spatialization_math.hpp | wiresong/synthizer | d6fb7a5f9eb0c5760411eee29b12a10fdd7ad420 | [
"Unlicense"
] | 25 | 2020-09-05T18:21:21.000Z | 2021-12-05T02:47:42.000Z | include/synthizer/spatialization_math.hpp | wiresong/synthizer | d6fb7a5f9eb0c5760411eee29b12a10fdd7ad420 | [
"Unlicense"
] | 77 | 2020-07-08T23:33:46.000Z | 2022-03-19T05:34:26.000Z | include/synthizer/spatialization_math.hpp | wiresong/synthizer | d6fb7a5f9eb0c5760411eee29b12a10fdd7ad420 | [
"Unlicense"
] | 9 | 2020-07-08T18:16:53.000Z | 2022-03-02T21:35:28.000Z | #pragma once
#include "synthizer_constants.h"
#include <array>
#include <cmath>
namespace synthizer {
struct DistanceParams {
/* Distance is set by the user. */
double distance = 0.0;
double distance_ref = 1.0;
double distance_max = 50.0;
double rolloff = 1.0;
double closeness_boost = 0.0;
double clo... | 35.008065 | 118 | 0.717807 | wiresong |
708af932cf1a554ad106f91001d5c3861ee3a3ba | 1,371 | cpp | C++ | src/SFML View/Core/VerticalLayout.cpp | BenPyton/2D-Dungeon-Generator | 87d68926a72a73442e8355f7024154b403b8fd71 | [
"MIT"
] | 7 | 2019-01-24T07:48:19.000Z | 2022-02-14T03:31:22.000Z | src/SFML View/Core/VerticalLayout.cpp | BenPyton/2D-Dungeon-Generator | 87d68926a72a73442e8355f7024154b403b8fd71 | [
"MIT"
] | null | null | null | src/SFML View/Core/VerticalLayout.cpp | BenPyton/2D-Dungeon-Generator | 87d68926a72a73442e8355f7024154b403b8fd71 | [
"MIT"
] | 2 | 2019-01-24T07:11:48.000Z | 2022-02-14T03:31:23.000Z | /*
* @author PELLETIER Benoit
*
* @file VerticalLayout.cpp
*
* @date 02/11/2018
*
* @brief Define a vertical flow for ui
*
*/
#include "stdafx.h"
#include "VerticalLayout.h"
VerticalLayout::VerticalLayout(int x, int y, int width, int height)
: Layout(x, y, width, height), m_paddingLeft(0), m_paddingRight(0), m_paddi... | 23.237288 | 118 | 0.701678 | BenPyton |
708ca709e71a6db75d63e484922cca41ceb04d56 | 4,800 | cc | C++ | src/Serial.cc | bakterian/arduino-mock | e59117bd75d4e3f05f86249f70e8cea356b527ef | [
"0BSD"
] | 40 | 2015-02-03T03:51:06.000Z | 2022-03-22T11:42:48.000Z | src/Serial.cc | bakterian/arduino-mock | e59117bd75d4e3f05f86249f70e8cea356b527ef | [
"0BSD"
] | 14 | 2015-01-01T04:08:19.000Z | 2017-02-26T19:49:22.000Z | src/Serial.cc | bakterian/arduino-mock | e59117bd75d4e3f05f86249f70e8cea356b527ef | [
"0BSD"
] | 43 | 2015-01-21T05:45:18.000Z | 2022-01-31T14:08:30.000Z | // Copyright 2014 http://switchdevice.com
#include "arduino-mock/Serial.h"
static SerialMock* gSerialMock = NULL;
SerialMock* serialMockInstance() {
if(!gSerialMock) {
gSerialMock = new SerialMock();
}
return gSerialMock;
}
void releaseSerialMock() {
if(gSerialMock) {
delete gSerialMock;
gSerialM... | 21.333333 | 62 | 0.6575 | bakterian |
708f03c56398af90c7955dac56cb807b4eace1e6 | 1,216 | hpp | C++ | include/codegen/include/UnityEngine/UILineInfo.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/UnityEngine/UILineInfo.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/UnityEngine/UILineInfo.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:37 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
// Including type: System.ValueType
#include "System/ValueType.hpp"
#include "utils/il2cpp-utils.hpp"
// Co... | 33.777778 | 177 | 0.666118 | Futuremappermydud |
709067c1afb446c2fbf1b1ad263e4c530a40ac95 | 476 | cpp | C++ | aoj/ITP1_10_B.cpp | yu3mars/proconcpp | f951a8612e542b4ae974e61671dfff64f73ba3f0 | [
"MIT"
] | null | null | null | aoj/ITP1_10_B.cpp | yu3mars/proconcpp | f951a8612e542b4ae974e61671dfff64f73ba3f0 | [
"MIT"
] | null | null | null | aoj/ITP1_10_B.cpp | yu3mars/proconcpp | f951a8612e542b4ae974e61671dfff64f73ba3f0 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define REP(i,n) for(int i=0;i<(int)(n);i++)
#define ALL(x) (x).begin(),(x).end()
typedef long long ll;
typedef long double ld;
// const ld eps = 1e-12,
const ld pi = acos(-1.0);
// const ll inf = 1e12;
using namespace std;
int main() {
double a,b,c,s,l,h;
cin >> a>>b>>c;
c = c*pi/180;
... | 19.833333 | 58 | 0.556723 | yu3mars |
70950e4fa8a4929c6cc1a81327a4540faf997af4 | 6,904 | cpp | C++ | cocos2d/cocos/audio/android/PcmAudioService.cpp | otakuidoru/Connect | bcbc6d790c956fad435547c9484ea8fd6e5f794f | [
"MIT"
] | 141 | 2019-07-09T06:29:35.000Z | 2022-03-30T06:25:16.000Z | cocos2d/cocos/audio/android/PcmAudioService.cpp | otakuidoru/Connect | bcbc6d790c956fad435547c9484ea8fd6e5f794f | [
"MIT"
] | 16 | 2019-12-23T06:53:18.000Z | 2021-10-19T17:01:01.000Z | cocos2d/cocos/audio/android/PcmAudioService.cpp | otakuidoru/Connect | bcbc6d790c956fad435547c9484ea8fd6e5f794f | [
"MIT"
] | 47 | 2019-08-14T11:12:34.000Z | 2022-03-30T06:25:19.000Z | /****************************************************************************
Copyright (c) 2016 Chukong Technologies Inc.
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated docume... | 34.348259 | 116 | 0.677723 | otakuidoru |
709c69cad2fa198dfd6558457e66378db23cb28f | 2,276 | cpp | C++ | non_shared_substring.cpp | agaitanis/strings | 13688cc3e9007d0dadaf92feca198272e135fe60 | [
"MIT"
] | 2 | 2018-10-30T08:13:30.000Z | 2019-03-05T22:49:40.000Z | non_shared_substring.cpp | agaitanis/strings | 13688cc3e9007d0dadaf92feca198272e135fe60 | [
"MIT"
] | null | null | null | non_shared_substring.cpp | agaitanis/strings | 13688cc3e9007d0dadaf92feca198272e135fe60 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <cassert>
#include <iostream>
#include <queue>
#include <string>
#include <unordered_set>
#include <vector>
using namespace std;
#define LETTERS_NUM 6
struct Node {
Node () :
letter(' '),
is_text1(false),
is_text2(false),
prev(-1)
{
for (int i = 0; i < LETTERS_NUM; i++) {
... | 15.589041 | 61 | 0.56942 | agaitanis |
709cb81520e5dc1eca4c80fcf8168449a551ae53 | 2,805 | cpp | C++ | src/astro/low_thrust/lowThrustOptimisationSetup.cpp | kimonito98/tudat | c28f2a3e78b8492e2e054ad5e0d1f9ad785cd092 | [
"BSD-3-Clause"
] | null | null | null | src/astro/low_thrust/lowThrustOptimisationSetup.cpp | kimonito98/tudat | c28f2a3e78b8492e2e054ad5e0d1f9ad785cd092 | [
"BSD-3-Clause"
] | null | null | null | src/astro/low_thrust/lowThrustOptimisationSetup.cpp | kimonito98/tudat | c28f2a3e78b8492e2e054ad5e0d1f9ad785cd092 | [
"BSD-3-Clause"
] | null | null | null | /* Copyright (c) 2010-2018, Delft University of Technology
* All rigths reserved
*
* This file is part of the Tudat. Redistribution and use in source and
* binary forms, with or without modification, are permitted exclusively
* under the terms of the Modified BSD license. You should have received
*... | 35.506329 | 115 | 0.742602 | kimonito98 |
709ce43164d55378ca5e5a9331d35832659f7318 | 2,336 | hpp | C++ | include/Cursor.hpp | psx95/collaborative-text-editor | 457fee0c9aebf874e0ee3ac0a505220a7b493189 | [
"MIT"
] | null | null | null | include/Cursor.hpp | psx95/collaborative-text-editor | 457fee0c9aebf874e0ee3ac0a505220a7b493189 | [
"MIT"
] | null | null | null | include/Cursor.hpp | psx95/collaborative-text-editor | 457fee0c9aebf874e0ee3ac0a505220a7b493189 | [
"MIT"
] | 1 | 2021-04-30T17:51:44.000Z | 2021-04-30T17:51:44.000Z | //
// Created by psx95 on 11/16/20.
//
#ifndef COLLABORATIVE_TEXT_EDITOR_SRC_EDITOR_CURSOR_HPP_
#define COLLABORATIVE_TEXT_EDITOR_SRC_EDITOR_CURSOR_HPP_
#include <SFML/Graphics/RenderWindow.hpp>
// This class represents the visual cursor and is mainly responsible for maintaining the cursor's properties.
class Cursor ... | 32.444444 | 120 | 0.729452 | psx95 |
70a5d8706433f4e2bbb4553aaa4419a9184bfaa9 | 6,456 | cpp | C++ | libs/libupmq/transport/SimplePriorityMessageDispatchChannel.cpp | ivk-jsc/broker | 8f43d85f115d605aac9d5b5875ccecc0c54d3217 | [
"Apache-2.0"
] | 10 | 2019-10-31T14:36:01.000Z | 2022-02-25T13:47:23.000Z | libs/libupmq/transport/SimplePriorityMessageDispatchChannel.cpp | ivk-jsc/broker | 8f43d85f115d605aac9d5b5875ccecc0c54d3217 | [
"Apache-2.0"
] | 6 | 2019-11-07T14:55:50.000Z | 2021-03-03T09:31:35.000Z | libs/libupmq/transport/SimplePriorityMessageDispatchChannel.cpp | ivk-jsc/broker | 8f43d85f115d605aac9d5b5875ccecc0c54d3217 | [
"Apache-2.0"
] | 3 | 2019-11-07T14:23:33.000Z | 2020-11-05T18:35:16.000Z | /*
* Copyright 2014-present IVK JSC. 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 appl... | 30.597156 | 115 | 0.52246 | ivk-jsc |
70a8eeac396e22b487ee2ce7e7cb8455947bea78 | 7,281 | cc | C++ | src/glasgow_clique_solver.cc | KyleBurns/bigraph-stuff | a17db9566343a8cc21bb9192156534dbf1c7c85e | [
"MIT"
] | null | null | null | src/glasgow_clique_solver.cc | KyleBurns/bigraph-stuff | a17db9566343a8cc21bb9192156534dbf1c7c85e | [
"MIT"
] | null | null | null | src/glasgow_clique_solver.cc | KyleBurns/bigraph-stuff | a17db9566343a8cc21bb9192156534dbf1c7c85e | [
"MIT"
] | null | null | null | /* vim: set sw=4 sts=4 et foldmethod=syntax : */
#include "formats/read_file_format.hh"
#include "clique.hh"
#include "configuration.hh"
#include <boost/program_options.hpp>
#include <chrono>
#include <cstdlib>
#include <ctime>
#include <exception>
#include <iomanip>
#include <iostream>
#include <memory>
#include <o... | 35.691176 | 135 | 0.586458 | KyleBurns |
70aa81247916a1e9793565f730b8cb361430bb4b | 4,570 | cpp | C++ | PeteBrown.Devices.Midi/PeteBrown.Devices.Midi/MidiClockGenerator.cpp | Psychlist1972/Windows-10-MIDI-Library | a7b0390fea19407b168870480927678624d46c12 | [
"MIT"
] | 29 | 2016-08-11T12:34:37.000Z | 2022-03-31T00:25:54.000Z | PeteBrown.Devices.Midi/PeteBrown.Devices.Midi/MidiClockGenerator.cpp | SeYoungLee/Windows-10-MIDI-Library | a7b0390fea19407b168870480927678624d46c12 | [
"MIT"
] | 4 | 2017-04-28T18:53:03.000Z | 2020-12-03T13:09:02.000Z | PeteBrown.Devices.Midi/PeteBrown.Devices.Midi/MidiClockGenerator.cpp | SeYoungLee/Windows-10-MIDI-Library | a7b0390fea19407b168870480927678624d46c12 | [
"MIT"
] | 5 | 2016-08-11T14:41:48.000Z | 2021-09-26T13:34:20.000Z | #include "pch.h"
#include "MidiClockGenerator.h"
#include <Windows.h>
#include <tchar.h>
#include <collection.h>
using namespace PeteBrown::Devices::Midi;
using namespace Platform;
using namespace Platform::Collections;
using namespace Windows::Devices::Midi;
using namespace Windows::Foundation;
using namespace Wi... | 25.530726 | 127 | 0.694092 | Psychlist1972 |
70adeae6801ad10c9eaef7286ad8d8672a350cc1 | 284 | cpp | C++ | Lectures/Lecture5/stringConcatenation.cpp | Emin-Abdurahmanov/BasicsOfProgramming | 0742b1639170c81047a36ead989df29fdfcf6fba | [
"MIT"
] | 1 | 2021-11-12T13:11:22.000Z | 2021-11-12T13:11:22.000Z | Lectures/Lecture5/stringConcatenation.cpp | Emin-Abdurahmanov/BasicsOfProgramming | 0742b1639170c81047a36ead989df29fdfcf6fba | [
"MIT"
] | null | null | null | Lectures/Lecture5/stringConcatenation.cpp | Emin-Abdurahmanov/BasicsOfProgramming | 0742b1639170c81047a36ead989df29fdfcf6fba | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int main(int argc, char** argv) {
string sentence = "Hello";
string name;
cout << "Type your name please.\n";
cin >> name;
sentence = sentence + " ";
sentence += name;
cout << sentence;
return 0;
}
| 16.705882 | 37 | 0.609155 | Emin-Abdurahmanov |
70af95592aa562684f8aa09e857778d3849e119a | 27,071 | cpp | C++ | lib/Target/Mips/MicroMipsSizeReduction.cpp | URSec/Silhouette-Compiler-Legacy | 28b37f3617c5543a87537decc074b168f4803d87 | [
"Apache-2.0"
] | 938 | 2015-12-03T16:45:43.000Z | 2022-03-17T20:28:02.000Z | lib/Target/Mips/MicroMipsSizeReduction.cpp | URSec/Silhouette-Compiler-Legacy | 28b37f3617c5543a87537decc074b168f4803d87 | [
"Apache-2.0"
] | 127 | 2015-12-03T21:42:53.000Z | 2019-11-21T14:34:20.000Z | lib/Target/Mips/MicroMipsSizeReduction.cpp | URSec/Silhouette-Compiler-Legacy | 28b37f3617c5543a87537decc074b168f4803d87 | [
"Apache-2.0"
] | 280 | 2015-12-03T16:51:35.000Z | 2022-01-24T00:01:54.000Z | //=== MicroMipsSizeReduction.cpp - MicroMips size reduction pass --------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===-----------------------------... | 33.923559 | 80 | 0.672823 | URSec |
70b251881aebf9669a7c0a84430b4268a17be44e | 891 | cpp | C++ | Sonic.cpp | DaCao/Sonic | 0bc327b97560c83cb6cc22b2b2a1e399554194d8 | [
"MIT"
] | 2 | 2018-09-19T08:58:06.000Z | 2022-03-25T00:42:18.000Z | Sonic.cpp | brandon999/Sonic | 2f2b81b94c875b157e195b984a22629a638b2013 | [
"MIT"
] | null | null | null | Sonic.cpp | brandon999/Sonic | 2f2b81b94c875b157e195b984a22629a638b2013 | [
"MIT"
] | null | null | null | //
// Sonic.cpp
// Demo
//
// Created by Philadelphia Game Lab on 8/8/14.
// Copyright (c) 2014 Philadelphia Game Lab. All rights reserved.
//
#include "Sonic.h"
void Sonic::createWorld()
{
Sonic::cau = new CustomAudioUnit();
}
AudioObj* Sonic::addAudioObject(string wavFileName, VariableForLocation x, Variab... | 18.957447 | 120 | 0.695847 | DaCao |
70b582f0d8201e071d19dfe18081e57325afe730 | 7,646 | cpp | C++ | src/object_stores/MongoDBClient.cpp | akougkas/iris | ae8b077afa6cec7ce3ea845dc7caad9b5e105c9d | [
"Apache-2.0"
] | 1 | 2019-04-06T08:43:15.000Z | 2019-04-06T08:43:15.000Z | src/object_stores/MongoDBClient.cpp | akougkas/iris | ae8b077afa6cec7ce3ea845dc7caad9b5e105c9d | [
"Apache-2.0"
] | 1 | 2019-04-15T09:49:13.000Z | 2019-04-15T09:49:13.000Z | src/object_stores/MongoDBClient.cpp | akougkas/iris | ae8b077afa6cec7ce3ea845dc7caad9b5e105c9d | [
"Apache-2.0"
] | null | null | null | /******************************************************************************
*include files
******************************************************************************/
#include "MongoDBClient.h"
#include "../utils/tools/Buffer.h"
#include <mpi.h>
#include <bsoncxx/builder/basic/document.hpp>
#include <mongocxx/l... | 36.759615 | 101 | 0.575595 | akougkas |
70b6622b7b0545debb49eb0ae1152d2d8ed7c1d3 | 1,567 | hpp | C++ | include/oalplus/error/al.hpp | Extrunder/oglplus | c7c8266a1571d0b4c8b02d9c8ca6a7b6a6f51791 | [
"BSL-1.0"
] | 459 | 2016-03-16T04:11:37.000Z | 2022-03-31T08:05:21.000Z | include/oalplus/error/al.hpp | Extrunder/oglplus | c7c8266a1571d0b4c8b02d9c8ca6a7b6a6f51791 | [
"BSL-1.0"
] | 2 | 2016-08-08T18:26:27.000Z | 2017-05-08T23:42:22.000Z | include/oalplus/error/al.hpp | Extrunder/oglplus | c7c8266a1571d0b4c8b02d9c8ca6a7b6a6f51791 | [
"BSL-1.0"
] | 47 | 2016-05-31T15:55:52.000Z | 2022-03-28T14:49:40.000Z | /**
* @file oalplus/error/al.hpp
* @brief Declaration of OALplus' OpenAL exceptions
*
* @author Matus Chochlik
*
* Copyright 2010-2015 Matus Chochlik. Distributed under the Boost
* Software License, Version 1.0. (See accompanying file
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
... | 21.763889 | 68 | 0.749202 | Extrunder |
70baa52af3d2484fd19e3bffe73c7ab1b48b33c6 | 11,777 | cpp | C++ | src/factory/ImageFactory.cpp | menshiva/ascii-art-terminal | 798a479d691de462d5fdfc1e4b6ed9d603d80059 | [
"Apache-2.0"
] | 1 | 2021-12-05T21:19:17.000Z | 2021-12-05T21:19:17.000Z | src/factory/ImageFactory.cpp | menshiva/ascii-art-terminal | 798a479d691de462d5fdfc1e4b6ed9d603d80059 | [
"Apache-2.0"
] | null | null | null | src/factory/ImageFactory.cpp | menshiva/ascii-art-terminal | 798a479d691de462d5fdfc1e4b6ed9d603d80059 | [
"Apache-2.0"
] | null | null | null | #include "ImageFactory.hpp"
ImageFactory::ImageFactory() : grayscaleLevel(AsciiConsts::DEFAULT_GRAYSCALE_LEVEL) {}
ImageFactory::~ImageFactory() {
for (Image *img : images) delete img;
}
const std::vector<Image *> &ImageFactory::getAllImages() const {
return images;
}
bool ImageFactory::readImage() {
//... | 33.841954 | 113 | 0.491127 | menshiva |
70bd26fd4b5b5c4953cf605176a667339b759959 | 490 | hpp | C++ | Tools/RegistersGenerator/Msp432P401Y/BitsField/compe1bitsfield.hpp | snorkysnark/CortexLib | 0db035332ebdfbebf21ca36e5e04b78a5a908a49 | [
"MIT"
] | 22 | 2019-09-07T22:38:01.000Z | 2022-01-31T21:35:55.000Z | Tools/RegistersGenerator/Msp432P401Y/BitsField/compe1bitsfield.hpp | snorkysnark/CortexLib | 0db035332ebdfbebf21ca36e5e04b78a5a908a49 | [
"MIT"
] | null | null | null | Tools/RegistersGenerator/Msp432P401Y/BitsField/compe1bitsfield.hpp | snorkysnark/CortexLib | 0db035332ebdfbebf21ca36e5e04b78a5a908a49 | [
"MIT"
] | 9 | 2019-09-22T11:26:24.000Z | 2022-03-21T10:53:15.000Z | /*******************************************************************************
* Filename : compe1bitsfield.hpp
*
* Details : Enumerations related with COMP_E1 peripheral. This header file
* is auto-generated for MSP432P401Y device.
*
*
******************************************************... | 30.625 | 80 | 0.465306 | snorkysnark |
70bd544850adddc8f8af80216c2266d4d4250718 | 5,078 | cpp | C++ | test/unit-tests/coap-dispatcher-test.cpp | moducom/mc-coap | d77e5be89d6f7a08ecfa1929aaa49cb6ce2ae2ae | [
"MIT"
] | 1 | 2018-06-01T01:27:57.000Z | 2018-06-01T01:27:57.000Z | test/unit-tests/coap-dispatcher-test.cpp | moducom/mc-coap | d77e5be89d6f7a08ecfa1929aaa49cb6ce2ae2ae | [
"MIT"
] | null | null | null | test/unit-tests/coap-dispatcher-test.cpp | moducom/mc-coap | d77e5be89d6f7a08ecfa1929aaa49cb6ce2ae2ae | [
"MIT"
] | null | null | null | //
// Created by malachi on 12/27/17.
//
// 12/4/2019: OBSOLETE - using prior / unrealized dispatcher flavor (function pointer/virtual based)
// rather than newer embr subject-observer style
#include <catch.hpp>
#include <obsolete/coap-dispatcher.h>
#include "coap-uripath-dispatcher.h"
#include "test-data.h"
#include... | 27.748634 | 100 | 0.729618 | moducom |
70bd62b1b26a7f3b488c934a4cca26b575fc39fb | 9,929 | cc | C++ | src/dsp/arm/intrapred_filter_neon.cc | jbeich/libgav1 | a65020e665c2cf76651b50b6626c1baa61a5c718 | [
"Apache-2.0"
] | null | null | null | src/dsp/arm/intrapred_filter_neon.cc | jbeich/libgav1 | a65020e665c2cf76651b50b6626c1baa61a5c718 | [
"Apache-2.0"
] | null | null | null | src/dsp/arm/intrapred_filter_neon.cc | jbeich/libgav1 | a65020e665c2cf76651b50b6626c1baa61a5c718 | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 The libgav1 Authors
//
// 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 agre... | 32.34202 | 80 | 0.545674 | jbeich |
70c0a5ada1bfc5e3a621981fe9bd6ba9e92945af | 1,932 | cpp | C++ | src/pic.cpp | Codesmith512/Apex | c230c53ab8f32a5371dcf7b40d25fa9fbb85ac6b | [
"MIT"
] | 1 | 2021-04-01T09:34:26.000Z | 2021-04-01T09:34:26.000Z | src/pic.cpp | Codesmith512/Apex | c230c53ab8f32a5371dcf7b40d25fa9fbb85ac6b | [
"MIT"
] | null | null | null | src/pic.cpp | Codesmith512/Apex | c230c53ab8f32a5371dcf7b40d25fa9fbb85ac6b | [
"MIT"
] | null | null | null | #include "pic"
#include "interrupts"
#include "ports"
#define PIC1_CMD 0x20
#define PIC1_DATA 0x21
#define PIC2_CMD 0xa0
#define PIC2_DATA 0xa1
/** Enables the PIC, but with all IRQs masked */
void pic::initialize()
{
/* Initialization Command */
ports::out_8(PIC1_CMD, 0x11);
ports::io_wait();
ports::o... | 22.729412 | 94 | 0.65735 | Codesmith512 |
70c0ad65fa5ebbd91e9cb6ab1915806c109233f6 | 7,870 | cpp | C++ | src/src/test.cpp | jcleng/nix-kangle-3.5.13.2 | cc7bbaa429ada9a7eb7a023a152b6e2fc5defe3f | [
"MIT"
] | null | null | null | src/src/test.cpp | jcleng/nix-kangle-3.5.13.2 | cc7bbaa429ada9a7eb7a023a152b6e2fc5defe3f | [
"MIT"
] | null | null | null | src/src/test.cpp | jcleng/nix-kangle-3.5.13.2 | cc7bbaa429ada9a7eb7a023a152b6e2fc5defe3f | [
"MIT"
] | null | null | null | /*
* test.cpp
*
* Created on: 2010-5-31
* Author: keengo
*
* Copyright (c) 2010, NanChang BangTeng Inc
* All Rights Reserved.
*
* You may use the Software for free for non-commercial use
* under the License Restrictions.
*
* You may modify the source code(if being provieded) or interface
* of the Sof... | 25.973597 | 146 | 0.658196 | jcleng |
70c22245464a0233b7ea09a06ddecf41d2064596 | 2,325 | cc | C++ | lua/runtime/lua_runtime.cc | Alcanderian/ppl.nn | e127cf6dda87412bc9bb551da6aa5d29d7ca22fd | [
"Apache-2.0"
] | 2 | 2021-09-14T03:00:04.000Z | 2021-11-18T07:29:44.000Z | lua/runtime/lua_runtime.cc | Alcanderian/ppl.nn | e127cf6dda87412bc9bb551da6aa5d29d7ca22fd | [
"Apache-2.0"
] | 1 | 2021-12-20T11:04:17.000Z | 2021-12-20T11:04:17.000Z | lua/runtime/lua_runtime.cc | Alcanderian/ppl.nn | e127cf6dda87412bc9bb551da6aa5d29d7ca22fd | [
"Apache-2.0"
] | null | null | null | // 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 License, Version 2.0 (the
// "License"); you may... | 40.086207 | 117 | 0.664516 | Alcanderian |
70c2909bc97ac18f6f1d6ca2ec85c70004fc3edc | 58,861 | cpp | C++ | src/OutputFile.cpp | RemiMattheyDoret/SimBit | ed0e64c0abb97c6c889bc0adeec1277cbc6cbe43 | [
"MIT"
] | 11 | 2017-06-06T23:02:48.000Z | 2021-08-17T20:13:05.000Z | src/OutputFile.cpp | RemiMattheyDoret/SimBit | ed0e64c0abb97c6c889bc0adeec1277cbc6cbe43 | [
"MIT"
] | 1 | 2017-06-06T23:08:05.000Z | 2017-06-07T09:28:08.000Z | src/OutputFile.cpp | RemiMattheyDoret/SimBit | ed0e64c0abb97c6c889bc0adeec1277cbc6cbe43 | [
"MIT"
] | null | null | null | /*
Author: Remi Matthey-Doret
MIT License
Copyright (c) 2017 Remi Matthey-Doret
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 limit... | 36.996229 | 638 | 0.598529 | RemiMattheyDoret |
70c4aec7124fd496c7e8b08c826ab103414b6bd5 | 35,331 | cpp | C++ | src/core/dist_matrix/star_md.cpp | ahmadia/Elemental-1 | f9a82c76a06728e9e04a4316e41803efbadb5a19 | [
"BSD-3-Clause"
] | null | null | null | src/core/dist_matrix/star_md.cpp | ahmadia/Elemental-1 | f9a82c76a06728e9e04a4316e41803efbadb5a19 | [
"BSD-3-Clause"
] | null | null | null | src/core/dist_matrix/star_md.cpp | ahmadia/Elemental-1 | f9a82c76a06728e9e04a4316e41803efbadb5a19 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2009-2013, Jack Poulson
All rights reserved.
This file is part of Elemental and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause
*/
#include "elemental-lite.hpp"
namespace elem {
templa... | 33.809569 | 115 | 0.644222 | ahmadia |
70c912c728b318119c33e8cda2880a02a2410278 | 855 | cpp | C++ | test/unit/concepts/object/movable.cpp | cjdb/clang-concepts-ranges | 7019754e97c8f3863035db74de62004ae3814954 | [
"Apache-2.0"
] | 4 | 2019-03-02T01:09:07.000Z | 2019-10-16T15:46:21.000Z | test/unit/concepts/object/movable.cpp | cjdb/cjdb-ranges | 7019754e97c8f3863035db74de62004ae3814954 | [
"Apache-2.0"
] | 5 | 2019-11-29T12:23:55.000Z | 2019-12-14T13:03:00.000Z | test/unit/concepts/object/movable.cpp | cjdb/clang-concepts-ranges | 7019754e97c8f3863035db74de62004ae3814954 | [
"Apache-2.0"
] | 3 | 2020-06-08T18:27:28.000Z | 2021-03-27T17:49:46.000Z | // Copyright Casey Carter
//
// Use, modification and distribution is subject to 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)
//
// Derived from: https://github.com/caseycarter/cmcstl2
// Project home: https://github.com/c... | 30.535714 | 62 | 0.747368 | cjdb |
70c9a0ad80a4b478dd8bd564fa33e9309bc5f8e5 | 817 | hpp | C++ | src/database/kernels/xger/xger.hpp | vbkaisetsu/CLBlast | 441373c8fd1442cc4c024e59e7778b4811eb210c | [
"Apache-2.0"
] | null | null | null | src/database/kernels/xger/xger.hpp | vbkaisetsu/CLBlast | 441373c8fd1442cc4c024e59e7778b4811eb210c | [
"Apache-2.0"
] | null | null | null | src/database/kernels/xger/xger.hpp | vbkaisetsu/CLBlast | 441373c8fd1442cc4c024e59e7778b4811eb210c | [
"Apache-2.0"
] | 1 | 2020-09-09T21:04:21.000Z | 2020-09-09T21:04:21.000Z |
// =================================================================================================
// This file is part of the CLBlast project. The project is licensed under Apache Version 2.0. It
// is auto-generated by the 'scripts/database/database.py' Python script.
//
// This file populates the database with be... | 35.521739 | 100 | 0.599755 | vbkaisetsu |
70c9a5d535d3ccf3a44720dc282ec6a2dc50d46d | 7,001 | cpp | C++ | mod/vulkan/VulkanTexture.cpp | Lyatus/L | 0b594d722200d5ee0198b5d7b9ee72a5d1e12611 | [
"Unlicense"
] | 45 | 2018-08-24T12:57:38.000Z | 2021-11-12T11:21:49.000Z | mod/vulkan/VulkanTexture.cpp | Lyatus/L | 0b594d722200d5ee0198b5d7b9ee72a5d1e12611 | [
"Unlicense"
] | null | null | null | mod/vulkan/VulkanTexture.cpp | Lyatus/L | 0b594d722200d5ee0198b5d7b9ee72a5d1e12611 | [
"Unlicense"
] | 4 | 2019-09-16T02:48:42.000Z | 2020-07-10T03:50:31.000Z | #include "VulkanRenderer.h"
#include <string.h>
#include "VulkanBuffer.h"
using namespace L;
static void transition_layout(VulkanTexture* tex, VkCommandBuffer cmd_buffer, VkImageLayout new_layout) {
VkImageMemoryBarrier barrier = {};
barrier.sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER;
barrier.oldLayout = ... | 40.468208 | 138 | 0.783031 | Lyatus |
70cb4c8e7bb1362e74699611074c0954c4bd0e63 | 722 | hpp | C++ | include/tao/pq/internal/demangle.hpp | huzaifanazir/taopq | 8f939d33840f14d7c08311729745fe7bb8cd9898 | [
"BSL-1.0"
] | 69 | 2016-08-05T19:16:04.000Z | 2018-11-24T15:13:46.000Z | include/tao/pq/internal/demangle.hpp | huzaifanazir/taopq | 8f939d33840f14d7c08311729745fe7bb8cd9898 | [
"BSL-1.0"
] | 13 | 2016-11-24T16:42:28.000Z | 2018-09-11T18:55:40.000Z | include/tao/pq/internal/demangle.hpp | huzaifanazir/taopq | 8f939d33840f14d7c08311729745fe7bb8cd9898 | [
"BSL-1.0"
] | 13 | 2016-09-22T17:31:10.000Z | 2018-10-18T02:56:49.000Z | // Copyright (c) 2016-2022 Daniel Frey and Dr. Colin Hirsch
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
#ifndef TAO_PQ_INTERNAL_DEMANGLE_HPP
#define TAO_PQ_INTERNAL_DEMANGLE_HPP
#include <string>
#include <ty... | 24.896552 | 91 | 0.699446 | huzaifanazir |
70cdd7e1cbee6c60eeca96464f1c535a594e9792 | 1,224 | cpp | C++ | LeetCode/ThousandOne/0463-island_perimeter.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandOne/0463-island_perimeter.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandOne/0463-island_perimeter.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | #include "leetcode.hpp"
/* 463. 岛屿的周长
给定一个包含 0 和 1 的二维网格地图,其中 1 表示陆地 0 表示水域。
网格中的格子水平和垂直方向相连(对角线方向不相连)。整个网格被水完全包围,但其中恰好有一个岛屿(或者说,一个或多个表示陆地的格子相连组成的岛屿)。
岛屿中没有“湖”(“湖” 指水域在岛屿内部且不和岛屿周围的水相连)。格子是边长为 1 的正方形。网格为长方形,且宽度和高度均不超过 100 。计算这个岛屿的周长。
示例 :
输入:
[[0,1,0,0},
[1,1,1,0},
[0,1,0,0},
[1,1,0,0}}
输出: 16
解释: 它的周长是下面图片中的 1... | 18.830769 | 81 | 0.577614 | Ginkgo-Biloba |
70ce716e42597346c786920f7378b69a19fcd559 | 2,347 | hpp | C++ | include/Game/Game.hpp | darwin-s/nanocraft | dcb8b590fa3310b726529ab5e36b18893f6a3b1f | [
"Apache-2.0"
] | 2 | 2021-08-12T10:05:53.000Z | 2021-08-13T16:25:49.000Z | include/Game/Game.hpp | darwin-s/nanocraft | dcb8b590fa3310b726529ab5e36b18893f6a3b1f | [
"Apache-2.0"
] | null | null | null | include/Game/Game.hpp | darwin-s/nanocraft | dcb8b590fa3310b726529ab5e36b18893f6a3b1f | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 Sirbu Dan
//
// 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... | 26.977011 | 75 | 0.701321 | darwin-s |
70d2c517ca31ef38a4ad04cba199cc6cf1457bce | 710 | cpp | C++ | Sid's Contests/LeetCode contests/April Challenge/Rotate Image.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 14 | 2021-08-22T18:21:14.000Z | 2022-03-08T12:04:23.000Z | Sid's Contests/LeetCode contests/April Challenge/Rotate Image.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 1 | 2021-10-17T18:47:17.000Z | 2021-10-17T18:47:17.000Z | Sid's Contests/LeetCode contests/April Challenge/Rotate Image.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 5 | 2021-09-01T08:21:12.000Z | 2022-03-09T12:13:39.000Z | class Solution {
public:
void rotate(vector<vector<int>>& matrix) {
//OM GAN GANAPATHAYE NAMO NAMAH
//JAI SHRI RAM
//JAI BAJRANGBALI
//AMME NARAYANA, DEVI NARAYANA, LAKSHMI NARAYANA, BHADRE NARAYANA
for(int i = 0; i < matrix.size(); i++)
{
for(int j = 0... | 27.307692 | 73 | 0.416901 | Tiger-Team-01 |
70d529f5d2285b20a267995b35c49010d882a796 | 7,019 | cpp | C++ | src/petuum_ps/client/thread_table.cpp | ForrestGan/public | 2cada36c4b523cf80f16a4f0d0fdc01166a69df1 | [
"BSD-3-Clause"
] | null | null | null | src/petuum_ps/client/thread_table.cpp | ForrestGan/public | 2cada36c4b523cf80f16a4f0d0fdc01166a69df1 | [
"BSD-3-Clause"
] | null | null | null | src/petuum_ps/client/thread_table.cpp | ForrestGan/public | 2cada36c4b523cf80f16a4f0d0fdc01166a69df1 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2014, Sailing Lab
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of conditions an... | 35.449495 | 78 | 0.684855 | ForrestGan |
70d8fc7ab1e54c13ca01b0a32eb2dbce02dc6d8d | 2,260 | cpp | C++ | src/Components/DrawableEntity.cpp | charlieSewell/YOKAI | 4fb39975e58e9a49bc984bc6e844721a7ad9462e | [
"MIT"
] | null | null | null | src/Components/DrawableEntity.cpp | charlieSewell/YOKAI | 4fb39975e58e9a49bc984bc6e844721a7ad9462e | [
"MIT"
] | null | null | null | src/Components/DrawableEntity.cpp | charlieSewell/YOKAI | 4fb39975e58e9a49bc984bc6e844721a7ad9462e | [
"MIT"
] | null | null | null | #include "DrawableEntity.hpp"
#include "ImGuizmo.h"
DrawableEntity::DrawableEntity(GameObject* parent) : Component(parent), m_offset(1.0f){}
void DrawableEntity::Start()
{
if(m_parent->GetComponent<Transform>() == nullptr)
{
m_parent->AddComponent<Transform>();
}
}
void DrawableEntity::Update(floa... | 25.393258 | 148 | 0.679204 | charlieSewell |
70d930ee9828bfda90242514675ff30e149ff85c | 1,400 | cpp | C++ | libs/api/libbpf_object.cpp | dbarac/ebpf-for-windows | 5f5e2c0d1f031ceb41b11ba8d0e708a51cfba5d2 | [
"MIT"
] | 1 | 2021-07-27T21:46:52.000Z | 2021-07-27T21:46:52.000Z | libs/api/libbpf_object.cpp | dbarac/ebpf-for-windows | 5f5e2c0d1f031ceb41b11ba8d0e708a51cfba5d2 | [
"MIT"
] | 2 | 2021-07-28T16:48:31.000Z | 2021-08-12T22:32:26.000Z | libs/api/libbpf_object.cpp | dbarac/ebpf-for-windows | 5f5e2c0d1f031ceb41b11ba8d0e708a51cfba5d2 | [
"MIT"
] | 1 | 2021-07-27T21:41:59.000Z | 2021-07-27T21:41:59.000Z | // Copyright (c) Microsoft Corporation
// SPDX-License-Identifier: MIT
#include "api_internal.h"
#pragma warning(push)
#pragma warning(disable : 4200)
#include "libbpf.h"
#pragma warning(pop)
#include "libbpf_internal.h"
// This file implements APIs in LibBPF's libbpf.h and is based on code in external/libbpf/src/lib... | 23.728814 | 102 | 0.710714 | dbarac |
70d9d1eabc8a7f08cee0197efbe32ff9b2e03dae | 13,369 | cpp | C++ | src/dataView.cpp | jcjramos/QuodDB | 20da3727818c8c2f8f7da5cb1506d64cc6300f24 | [
"Apache-2.0"
] | null | null | null | src/dataView.cpp | jcjramos/QuodDB | 20da3727818c8c2f8f7da5cb1506d64cc6300f24 | [
"Apache-2.0"
] | null | null | null | src/dataView.cpp | jcjramos/QuodDB | 20da3727818c8c2f8f7da5cb1506d64cc6300f24 | [
"Apache-2.0"
] | null | null | null | /*------------------------------------------------------------------------------
Generic Symbian Data View
For DbMaster generated files
JCR 3.2004
------------------------------------------------------------------------------*/
#include "dataView.h"
#include "DbMaster.h"
#include <eikmen... | 25.759152 | 149 | 0.507517 | jcjramos |
70dd84c6cf607c378b54ab56e74d5d1f16b0db1d | 1,096 | cpp | C++ | Source/Packet.cpp | zcharli/snow-olsr | 3617044d3ad1a0541b346669bce76702f71f4d0c | [
"MIT"
] | 3 | 2018-08-08T22:31:52.000Z | 2019-12-17T14:02:59.000Z | Source/Packet.cpp | zcharli/snow-olsr | 3617044d3ad1a0541b346669bce76702f71f4d0c | [
"MIT"
] | null | null | null | Source/Packet.cpp | zcharli/snow-olsr | 3617044d3ad1a0541b346669bce76702f71f4d0c | [
"MIT"
] | null | null | null | //
// Created by czl on 03/04/16.
//
#include "Headers/Packet.h"
Packet::Packet(char* src, char* dst, char* messageBuffer, int header_offset = 0)
: mSource(src), mDestination(dst), mBuffer(messageBuffer), offset(header_offset) {
mAddress = NULL;
#if verbose
PRINTLN(Initialized a packet.)
#endif
}
... | 19.571429 | 86 | 0.663321 | zcharli |
70dd87e1a1f9d7fad32b8f181414d67f46db1826 | 666 | cpp | C++ | Cpp/fost-crypto/crypto.cpp | KayEss/fost-base | 05ac1b6a1fb672c61ba6502efea86f9c5207e28f | [
"BSL-1.0"
] | 2 | 2016-05-25T22:17:38.000Z | 2019-04-02T08:34:17.000Z | Cpp/fost-crypto/crypto.cpp | KayEss/fost-base | 05ac1b6a1fb672c61ba6502efea86f9c5207e28f | [
"BSL-1.0"
] | 5 | 2018-07-13T10:43:05.000Z | 2019-09-02T14:54:42.000Z | Cpp/fost-crypto/crypto.cpp | KayEss/fost-base | 05ac1b6a1fb672c61ba6502efea86f9c5207e28f | [
"BSL-1.0"
] | 1 | 2020-10-22T20:44:24.000Z | 2020-10-22T20:44:24.000Z | /**
Copyright 2015-2019 Red Anchor Trading Co. Ltd.
Distributed under the Boost Software License, Version 1.0.
See <http://www.boost.org/LICENSE_1_0.txt>
*/
#include "fost-crypto.hpp"
#include <fost/crypto.hpp>
const fostlib::module fostlib::c_fost_crypto(c_fost, "crypto");
bool fostlib::crypto_comp... | 25.615385 | 63 | 0.651652 | KayEss |
70e4eea0f08e109a000ecfdcaf66aeee95e0b63c | 1,747 | cpp | C++ | src/SumRootToLeafNumbers.cpp | harborn/LeetCode | 8488c0bcf306b8672492fd6220e496e335e2b9fe | [
"MIT"
] | null | null | null | src/SumRootToLeafNumbers.cpp | harborn/LeetCode | 8488c0bcf306b8672492fd6220e496e335e2b9fe | [
"MIT"
] | 1 | 2021-12-14T15:56:11.000Z | 2021-12-14T15:56:11.000Z | src/SumRootToLeafNumbers.cpp | harborn/LeetCode | 8488c0bcf306b8672492fd6220e496e335e2b9fe | [
"MIT"
] | null | null | null |
#include <iostream>
#include <string>
#include <vector>
using namespace std;
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};
vector<string> helper(TreeNode *root) {
vector<string> res;
if (root == NULL) return res;
vector<string> l = helper... | 16.798077 | 74 | 0.550086 | harborn |
70e85da2070f8aa2ffbab5515a01ddd3ad325324 | 4,333 | hpp | C++ | srcs/common/trackfragmentheaderbox.hpp | Reflectioner/heif | bdac2fc9c66d8c1e8994eaf81f1a5db116b863ab | [
"BSD-3-Clause"
] | null | null | null | srcs/common/trackfragmentheaderbox.hpp | Reflectioner/heif | bdac2fc9c66d8c1e8994eaf81f1a5db116b863ab | [
"BSD-3-Clause"
] | null | null | null | srcs/common/trackfragmentheaderbox.hpp | Reflectioner/heif | bdac2fc9c66d8c1e8994eaf81f1a5db116b863ab | [
"BSD-3-Clause"
] | null | null | null | /* This file is part of Nokia HEIF library
*
* Copyright (c) 2015-2020 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
*
* Contact: heif@nokia.com
*
* This software, including documentation, is protected by copyright controlled by Nokia Corporation and/ or its
* subsidiaries. All rights are r... | 37.678261 | 115 | 0.71567 | Reflectioner |
70e8f549e8e946eb4154cd5e6f923bca602682ee | 1,605 | cpp | C++ | solutions/715.range-module.246936325.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 78 | 2020-10-22T11:31:53.000Z | 2022-02-22T13:27:49.000Z | solutions/715.range-module.246936325.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | null | null | null | solutions/715.range-module.246936325.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 26 | 2020-10-23T15:10:44.000Z | 2021-11-07T16:13:50.000Z |
map<int, int>::iterator lower_bound2(map<int, int> &mp, int key) {
if (mp.empty())
return mp.end();
auto it = mp.lower_bound(key);
if (it->first == key)
return it;
if (it == mp.begin())
return mp.end();
it--;
return it;
}
class RangeModule {
map<int, int> mp;
public:
RangeModule() {}
... | 18.238636 | 67 | 0.522118 | satu0king |
70e8f90c6c3e07e93868054efb8cc9d6c8157ec3 | 2,546 | cpp | C++ | Userland/Libraries/LibWeb/Page/Page.cpp | xspager/serenity | 39b7fbfeb9e469b4089f5424dc61aa074023bb5a | [
"BSD-2-Clause"
] | 1 | 2022-03-29T16:59:10.000Z | 2022-03-29T16:59:10.000Z | Userland/Libraries/LibWeb/Page/Page.cpp | xspager/serenity | 39b7fbfeb9e469b4089f5424dc61aa074023bb5a | [
"BSD-2-Clause"
] | null | null | null | Userland/Libraries/LibWeb/Page/Page.cpp | xspager/serenity | 39b7fbfeb9e469b4089f5424dc61aa074023bb5a | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibWeb/HTML/BrowsingContext.h>
#include <LibWeb/Page/Page.h>
namespace Web {
Page::Page(PageClient& client)
: m_client(client)
{
m_top_level_browsing_context = HTML::BrowsingContext::creat... | 27.376344 | 134 | 0.761587 | xspager |
70f6733926fca4a255c4feab16fb5726d5bb021f | 928 | cpp | C++ | Engine/src/Platform/GraphicsAPI/OpenGL/glRenderCommand.cpp | Light3039/Light | cc4fc0293164ca48efdc833d0054d3ff8e60b65d | [
"Apache-2.0"
] | 23 | 2021-05-23T10:13:55.000Z | 2022-03-24T14:49:30.000Z | Engine/src/Platform/GraphicsAPI/OpenGL/glRenderCommand.cpp | Light3039/Light | cc4fc0293164ca48efdc833d0054d3ff8e60b65d | [
"Apache-2.0"
] | 1 | 2021-09-07T12:26:33.000Z | 2021-09-27T19:06:00.000Z | Engine/src/Platform/GraphicsAPI/OpenGL/glRenderCommand.cpp | Light3039/Light | cc4fc0293164ca48efdc833d0054d3ff8e60b65d | [
"Apache-2.0"
] | 3 | 2021-05-30T17:31:47.000Z | 2021-09-20T06:42:39.000Z | #include "glRenderCommand.h"
#include <glad/glad.h>
#include <GLFW/glfw3.h>
namespace Light {
glRenderCommand::glRenderCommand(GLFWwindow* windowHandle)
: m_WindowHandle(windowHandle)
{
}
void glRenderCommand::SwapBuffers()
{
glfwSwapBuffers(m_WindowHandle);
}
void glRenderCommand::ClearBackBuffer(const... | 21.090909 | 107 | 0.755388 | Light3039 |
70f6a6b33da51d752d26a912229ecf68ce6f6c75 | 4,181 | hpp | C++ | include/fl/model/transition/interface/transition_function.hpp | aeolusbot-tommyliu/fl | a50d0c9620a8f86e0cd14a5e22ee0f022d00bd02 | [
"MIT"
] | 17 | 2015-07-03T06:53:05.000Z | 2021-05-15T20:55:12.000Z | include/fl/model/transition/interface/transition_function.hpp | aeolusbot-tommyliu/fl | a50d0c9620a8f86e0cd14a5e22ee0f022d00bd02 | [
"MIT"
] | 3 | 2015-02-20T12:48:17.000Z | 2019-12-18T08:45:13.000Z | include/fl/model/transition/interface/transition_function.hpp | aeolusbot-tommyliu/fl | a50d0c9620a8f86e0cd14a5e22ee0f022d00bd02 | [
"MIT"
] | 15 | 2015-02-20T11:34:14.000Z | 2021-05-15T20:55:13.000Z | /*
* This is part of the fl library, a C++ Bayesian filtering library
* (https://github.com/filtering-library)
*
* Copyright (c) 2015 Max Planck Society,
* Autonomous Motion Department,
* Institute for Intelligent Systems
*
* This Source Code Form is subject to the terms of the MIT License (MIT).
... | 24.886905 | 79 | 0.602727 | aeolusbot-tommyliu |
70fb15234dadd1ac4f3cc6767647fb3298d2dca7 | 2,838 | cpp | C++ | src/lang/scope.cpp | dmcdougall/occa | 4cc784e86459c01c8821da0a02eea3ad4fb36ef5 | [
"MIT"
] | null | null | null | src/lang/scope.cpp | dmcdougall/occa | 4cc784e86459c01c8821da0a02eea3ad4fb36ef5 | [
"MIT"
] | null | null | null | src/lang/scope.cpp | dmcdougall/occa | 4cc784e86459c01c8821da0a02eea3ad4fb36ef5 | [
"MIT"
] | null | null | null | #include <occa/lang/scope.hpp>
#include <occa/lang/variable.hpp>
#include <occa/lang/type.hpp>
namespace occa {
namespace lang {
scope_t::scope_t() {}
scope_t::~scope_t() {
clear();
}
void scope_t::clear() {
freeKeywords(keywords, true);
}
scope_t scope_t::clone() const {
... | 25.567568 | 71 | 0.544397 | dmcdougall |
70ff2d1921c87b4c2c60a17372d7cbb52c94f4cb | 3,877 | cpp | C++ | MinimalDrawAMP.cpp | newpolaris/MinimalDrawAMP | 41d8d8361c9d64ebbf8b1a19e05d4f30000d1c85 | [
"Unlicense"
] | null | null | null | MinimalDrawAMP.cpp | newpolaris/MinimalDrawAMP | 41d8d8361c9d64ebbf8b1a19e05d4f30000d1c85 | [
"Unlicense"
] | null | null | null | MinimalDrawAMP.cpp | newpolaris/MinimalDrawAMP | 41d8d8361c9d64ebbf8b1a19e05d4f30000d1c85 | [
"Unlicense"
] | null | null | null | #include <amp.h>
#include <amp_graphics.h>
#include <d3dcommon.h>
#include <d3d11.h>
#include <atlcomcli.h>
#include "DirectXTK/WICTextureLoader.h"
#pragma comment(lib, "dxguid.lib")
#pragma comment(lib, "d3d11.lib")
#pragma comment(lib, "dxgi.lib")
int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
_In_... | 30.769841 | 127 | 0.66211 | newpolaris |
cb02ab44386a7e578d72c146c8fb2b199e348abe | 1,644 | cc | C++ | src/GeomModels/EdgeInverseLength.cc | lucydot/devsim | 2c69fcc05551bb50ca134490279e206cdeaf91a6 | [
"Apache-2.0"
] | 100 | 2015-02-02T23:47:38.000Z | 2022-03-15T06:15:15.000Z | src/GeomModels/EdgeInverseLength.cc | lucydot/devsim | 2c69fcc05551bb50ca134490279e206cdeaf91a6 | [
"Apache-2.0"
] | 75 | 2015-05-13T02:16:41.000Z | 2022-02-23T12:20:21.000Z | src/GeomModels/EdgeInverseLength.cc | lucydot/devsim | 2c69fcc05551bb50ca134490279e206cdeaf91a6 | [
"Apache-2.0"
] | 50 | 2015-10-28T17:24:24.000Z | 2022-03-30T17:48:46.000Z | /***
DEVSIM
Copyright 2013 Devsim 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 writing, soft... | 26.095238 | 82 | 0.747567 | lucydot |
cb02e9f700447b690d504acdccec7dfce4987bbc | 1,416 | hpp | C++ | libz/types/real64.hpp | kmc7468/zlang | 08f9ba5dab502224bea5baa6f7a78c546094b7d0 | [
"MIT"
] | 5 | 2017-01-11T03:20:57.000Z | 2017-01-15T11:20:30.000Z | libz/types/real64.hpp | kmc7468/zlang | 08f9ba5dab502224bea5baa6f7a78c546094b7d0 | [
"MIT"
] | null | null | null | libz/types/real64.hpp | kmc7468/zlang | 08f9ba5dab502224bea5baa6f7a78c546094b7d0 | [
"MIT"
] | null | null | null | #pragma once
#include "../utility.hpp"
#include "../variable.hpp"
#include "../exces/invalid_call.hpp"
#include <cmath>
#include <cstdint>
#include <memory>
#include <utility>
namespace libz::types
{
class real64 final : public instance
{
private:
double m_data = 0.0;
public:
inline real64()
: instance(t... | 22.47619 | 64 | 0.684322 | kmc7468 |
cb051db2720bc4dbc1bc0badd8a29a16f3b19a9d | 9,382 | cpp | C++ | src/examples/generic_primitive/main.cpp | tjachmann/visionaray | 5f181268c8da28c7d9b397300cc9759cec2bf7b3 | [
"MIT"
] | 416 | 2015-02-01T22:19:30.000Z | 2022-03-29T10:48:00.000Z | src/examples/generic_primitive/main.cpp | tjachmann/visionaray | 5f181268c8da28c7d9b397300cc9759cec2bf7b3 | [
"MIT"
] | 24 | 2015-06-26T17:48:08.000Z | 2021-11-06T00:20:58.000Z | src/examples/generic_primitive/main.cpp | tjachmann/visionaray | 5f181268c8da28c7d9b397300cc9759cec2bf7b3 | [
"MIT"
] | 39 | 2015-02-02T11:47:21.000Z | 2022-03-29T10:44:43.000Z | // This file is distributed under the MIT license.
// See the LICENSE file for details.
#include <chrono>
#include <iostream>
#include <memory>
#include <ostream>
#include <vector>
#include <GL/glew.h>
#include <visionaray/detail/platform.h>
#include <visionaray/cpu_buffer_rt.h>
#include <visionaray/generic_primiti... | 28.344411 | 100 | 0.551055 | tjachmann |
cb096e4ebdbb923b370f240351c604d35495e6f4 | 1,696 | cpp | C++ | lib/Basic/CXCodeGenOptions.cpp | Gnimuc/libclangex | 3d519fba37210d06578b10ea9bdb1d496be0e9d0 | [
"Apache-2.0",
"MIT-0",
"MIT"
] | 1 | 2022-01-11T00:49:42.000Z | 2022-01-11T00:49:42.000Z | lib/Basic/CXCodeGenOptions.cpp | Gnimuc/libclangex | 3d519fba37210d06578b10ea9bdb1d496be0e9d0 | [
"Apache-2.0",
"MIT-0",
"MIT"
] | 4 | 2021-08-01T06:07:06.000Z | 2022-02-04T14:14:15.000Z | lib/Basic/CXCodeGenOptions.cpp | Gnimuc/libclangex | 3d519fba37210d06578b10ea9bdb1d496be0e9d0 | [
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | #include "clang-ex/Basic/CXCodeGenOptions.h"
#include "clang/Basic/CodeGenOptions.h"
#include "llvm/Support/raw_ostream.h"
CXCodeGenOptions clang_CodeGenOptions_create(CXInit_Error *ErrorCode) {
CXInit_Error Err = CXInit_NoError;
std::unique_ptr<clang::CodeGenOptions> ptr = std::make_unique<clang::CodeGenOptions>(... | 36.085106 | 89 | 0.65625 | Gnimuc |
cb0a34fa3ea68fe0c9d9ed617abdf51a5ec6a377 | 1,832 | cpp | C++ | vislib/tests/clusterTest/PlainServer.cpp | azuki-monster/megamol | f5d75ae5630f9a71a7fbf81624bfd4f6b253c655 | [
"BSD-3-Clause"
] | 2 | 2020-10-16T10:15:37.000Z | 2021-01-21T13:06:00.000Z | vislib/tests/clusterTest/PlainServer.cpp | azuki-monster/megamol | f5d75ae5630f9a71a7fbf81624bfd4f6b253c655 | [
"BSD-3-Clause"
] | null | null | null | vislib/tests/clusterTest/PlainServer.cpp | azuki-monster/megamol | f5d75ae5630f9a71a7fbf81624bfd4f6b253c655 | [
"BSD-3-Clause"
] | 1 | 2021-01-28T01:19:54.000Z | 2021-01-28T01:19:54.000Z | /*
* PlainServer.cpp
*
* Copyright (C) 2008 by Universitaet Stuttgart (VIS). Alle Rechte vorbehalten.
*/
#include "PlainServer.h"
#include <iostream>
#include "vislib/net/cluster/clustermessages.h"
/*
* PlainServer::GetInstance
*/
PlainServer& PlainServer::GetInstance(void) {
static PlainServer *instance... | 19.698925 | 79 | 0.629913 | azuki-monster |
cb0e3af2988c8628f40695361d1d23bb9adc8c73 | 3,892 | cpp | C++ | Project1/cpp/src/system.cpp | ErlendLima/FYS4411 | e7221d9871e0e2fdaf7b9721fb414a9fad74022b | [
"MIT"
] | null | null | null | Project1/cpp/src/system.cpp | ErlendLima/FYS4411 | e7221d9871e0e2fdaf7b9721fb414a9fad74022b | [
"MIT"
] | null | null | null | Project1/cpp/src/system.cpp | ErlendLima/FYS4411 | e7221d9871e0e2fdaf7b9721fb414a9fad74022b | [
"MIT"
] | null | null | null | #include "system.hpp"
#include "InitialStates/initialstate.hpp"
#include "Hamiltonians/hamiltonian.hpp"
#include "WaveFunctions/wavefunction.hpp"
#include "particles.hpp"
#include "sampler.hpp"
#include <string>
#include <random>
#include <iostream>
#include <cmath>
double* System::stepBruteForce(int particle)
{
... | 22.49711 | 77 | 0.658787 | ErlendLima |
cb0f6675ad780987480e94d90e81048339558373 | 895 | cpp | C++ | src/Nazara/Shader/SpirvSectionBase.cpp | jayrulez/NazaraEngine | e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | null | null | null | src/Nazara/Shader/SpirvSectionBase.cpp | jayrulez/NazaraEngine | e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | null | null | null | src/Nazara/Shader/SpirvSectionBase.cpp | jayrulez/NazaraEngine | e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | null | null | null | // Copyright (C) 2022 Jérôme "Lynix" Leclercq (lynix680@gmail.com)
// This file is part of the "Nazara Engine - Shader module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/Shader/SpirvSectionBase.hpp>
#include <Nazara/Core/Endianness.hpp>
#include <Nazara/Shader/Debug.... | 22.948718 | 77 | 0.650279 | jayrulez |
cb152d81198207382384496bce3c971d7bfc5999 | 2,494 | cpp | C++ | ex01/ScavTrap.cpp | Igors78/cpp03 | 211de909cee642e63dca1bb273cb910c6cdf4104 | [
"Unlicense"
] | 3 | 2021-11-14T06:49:22.000Z | 2022-01-27T19:23:23.000Z | ex02/ScavTrap.cpp | Igors78/cpp03 | 211de909cee642e63dca1bb273cb910c6cdf4104 | [
"Unlicense"
] | null | null | null | ex02/ScavTrap.cpp | Igors78/cpp03 | 211de909cee642e63dca1bb273cb910c6cdf4104 | [
"Unlicense"
] | null | null | null | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ScavTrap.cpp :+: :+: :+: ... | 31.974359 | 80 | 0.463512 | Igors78 |
cb15b9c007ec330342fab3f7813b386b570cbe56 | 893 | cpp | C++ | Unrest-iOS/GameOverMenu.cpp | arvindrajayadav/unrest | d89f20e95fbcdef37a47ab1454b2479522a0e43f | [
"MIT"
] | 11 | 2020-08-04T08:37:46.000Z | 2022-03-31T22:35:15.000Z | CRAB/GameOverMenu.cpp | arvindrajayadav/unrest | d89f20e95fbcdef37a47ab1454b2479522a0e43f | [
"MIT"
] | 1 | 2020-12-16T16:51:52.000Z | 2020-12-18T06:35:38.000Z | Unrest-iOS/GameOverMenu.cpp | arvindrajayadav/unrest | d89f20e95fbcdef37a47ab1454b2479522a0e43f | [
"MIT"
] | 7 | 2020-08-04T09:34:20.000Z | 2021-09-11T03:00:16.000Z | #include "stdafx.h"
#include "GameOverMenu.h"
using namespace pyrodactyl::ui;
using namespace pyrodactyl::image;
void GameOverMenu::Load(rapidxml::xml_node<char> *node)
{
if (NodeValid(node))
{
if (NodeValid("bg", node))
bg.Load(node->first_node("bg"));
if (NodeValid("title", node))
{
rapidxml::xml_no... | 17.509804 | 86 | 0.646137 | arvindrajayadav |
cb16454aadb1194febe24d76e7eb60025498a12b | 764 | cpp | C++ | Challenge Array/MaximumSubarraySum4.cpp | sgpritam/cbcpp | 192b55d8d6930091d1ceb883f6dccf06735a391f | [
"MIT"
] | 2 | 2019-11-11T17:16:52.000Z | 2020-10-04T06:05:49.000Z | Challenge Array/MaximumSubarraySum4.cpp | codedevmdu/cbcpp | 85c94d81d6e491f67e3cc1ea12534065b7cde16e | [
"MIT"
] | null | null | null | Challenge Array/MaximumSubarraySum4.cpp | codedevmdu/cbcpp | 85c94d81d6e491f67e3cc1ea12534065b7cde16e | [
"MIT"
] | 4 | 2019-10-24T16:58:10.000Z | 2020-10-04T06:05:47.000Z | // C++ program to print largest contiguous array sum
#include<iostream>
#include<climits>
using namespace std;
int maxSubArraySum(int a[], int size)
{
int max_so_far = INT_MIN, max_ending_here = 0;
for (int i = 0; i < size; i++)
{
max_ending_here = max_ending_here + a[i];
if (m... | 19.589744 | 53 | 0.524869 | sgpritam |
0e11c85eca835a2034d76206a0b0424bf1c8988a | 2,018 | cc | C++ | lite/operators/unstack_op.cc | AIpioneer/Paddle-Lite | bd2a37468343e91b684d3ff1e3241be8de502ff6 | [
"Apache-2.0"
] | 1 | 2021-11-30T18:19:44.000Z | 2021-11-30T18:19:44.000Z | lite/operators/unstack_op.cc | AIpioneer/Paddle-Lite | bd2a37468343e91b684d3ff1e3241be8de502ff6 | [
"Apache-2.0"
] | null | null | null | lite/operators/unstack_op.cc | AIpioneer/Paddle-Lite | bd2a37468343e91b684d3ff1e3241be8de502ff6 | [
"Apache-2.0"
] | 2 | 2021-02-10T13:37:56.000Z | 2021-02-25T07:32:30.000Z | // Copyright (c) 2020 PaddlePaddle 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... | 29.246377 | 76 | 0.685332 | AIpioneer |
0e192263af379d9b47eb9e3ddfa77d8a0d0533e9 | 6,748 | cpp | C++ | src/Visioneer/Core/AnnotationRenderer.cpp | teplandr/Visioneer | 8aee849eabe9b3bd0dcb169c315733b550df63c9 | [
"MIT"
] | 6 | 2022-01-24T03:54:04.000Z | 2022-01-26T12:42:00.000Z | src/Visioneer/Core/AnnotationRenderer.cpp | teplandr/Visioneer | 8aee849eabe9b3bd0dcb169c315733b550df63c9 | [
"MIT"
] | null | null | null | src/Visioneer/Core/AnnotationRenderer.cpp | teplandr/Visioneer | 8aee849eabe9b3bd0dcb169c315733b550df63c9 | [
"MIT"
] | null | null | null | #include "AnnotationRenderer.h"
#include <unordered_map>
namespace Visioneer
{
static std::vector<const char*> ClassNamesCOCO
{
"person", "bicycle", "car", "motorcycle", "airplane", "bus", "train", "truck", "boat", "traffic light",
"fire hydrant", "stop sign", "parking meter", "bench", "bird", "cat", "dog", ... | 45.288591 | 160 | 0.686129 | teplandr |
0e1c4928d846bddc909d36645764899356cc1c8a | 7,988 | cpp | C++ | test_scripts/TestNative.cpp | chatra-lang/chatra | fdae457fcbd066ac8c0d44d6b763d4a18bf524f7 | [
"Apache-2.0"
] | 3 | 2019-10-14T12:25:23.000Z | 2021-01-06T17:53:17.000Z | test_scripts/TestNative.cpp | chatra-lang/chatra | fdae457fcbd066ac8c0d44d6b763d4a18bf524f7 | [
"Apache-2.0"
] | 3 | 2019-10-15T14:40:34.000Z | 2020-08-29T14:25:06.000Z | test_scripts/TestNative.cpp | chatra-lang/chatra | fdae457fcbd066ac8c0d44d6b763d4a18bf524f7 | [
"Apache-2.0"
] | null | null | null | /*
* Programming language 'Chatra' reference implementation
*
* Copyright(C) 2019-2020 Chatra Project Team
*
* 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... | 30.723077 | 117 | 0.641087 | chatra-lang |
0e1d3646327ed0aa2d49fde59e57973785f10d99 | 3,194 | hpp | C++ | libfma/include/fma/core/DataBlock.hpp | BenjaminSchulte/fma | df2aa5b0644c75dd34a92defeff9beaa4a32ffea | [
"MIT"
] | 14 | 2018-01-25T10:31:05.000Z | 2022-02-19T13:08:11.000Z | libfma/include/fma/core/DataBlock.hpp | BenjaminSchulte/fma | df2aa5b0644c75dd34a92defeff9beaa4a32ffea | [
"MIT"
] | 1 | 2020-12-24T10:10:28.000Z | 2020-12-24T10:10:28.000Z | libfma/include/fma/core/DataBlock.hpp | BenjaminSchulte/fma | df2aa5b0644c75dd34a92defeff9beaa4a32ffea | [
"MIT"
] | null | null | null | #ifndef __FMA_CORE_DATABLOCK_H__
#define __FMA_CORE_DATABLOCK_H__
#include <fma/types/Class.hpp>
#include <fma/types/RootModule.hpp>
namespace FMA {
class Project;
namespace plugin {
class MemoryBlock;
}
namespace core {
class DataBlockClass : public types::Class {
public:
static types::ClassPtr create(const typ... | 60.264151 | 166 | 0.811522 | BenjaminSchulte |
0e1f905292f7435188b808d1a82b3b997c057dc6 | 108 | cpp | C++ | bridge/src/World.cpp | olekristensen/oresund | acfd604bda68e7fec0d07e14530eee546e497386 | [
"MIT"
] | 1 | 2018-09-04T11:41:38.000Z | 2018-09-04T11:41:38.000Z | bridge/src/World.cpp | olekristensen/oresund | acfd604bda68e7fec0d07e14530eee546e497386 | [
"MIT"
] | null | null | null | bridge/src/World.cpp | olekristensen/oresund | acfd604bda68e7fec0d07e14530eee546e497386 | [
"MIT"
] | 1 | 2021-04-18T05:41:35.000Z | 2021-04-18T05:41:35.000Z | //
// World.cpp
// bridge
//
// Created by Johan Bichel Lindegaard on 8/30/18.
//
#include "World.hpp"
| 10.8 | 50 | 0.611111 | olekristensen |
0e1ff0b110f3c4d51d7cca6619a2f42ec2caff14 | 3,217 | cpp | C++ | lolCompiler/main.cpp | NeutralNoise/lol_script | 632b6a56c9caa3d44e93e2006cedec5d6730e3e2 | [
"MIT"
] | null | null | null | lolCompiler/main.cpp | NeutralNoise/lol_script | 632b6a56c9caa3d44e93e2006cedec5d6730e3e2 | [
"MIT"
] | null | null | null | lolCompiler/main.cpp | NeutralNoise/lol_script | 632b6a56c9caa3d44e93e2006cedec5d6730e3e2 | [
"MIT"
] | null | null | null | #include <iostream>
#include <regex>
#include <string>
#include "Tokenizer.h"
#include <vector>
#include <fstream>
#include "ParseTokens.h"
#include "AST.h"
//#include "ASTParser.h" // This isn't needed anymore i don't think.
//Check for key words
//TODO find a better place for this :D
void CheckTokenKeywords(const st... | 26.586777 | 97 | 0.635375 | NeutralNoise |
0e210411416f0bb81abc91ef24ce068d5e32737e | 1,319 | cpp | C++ | OsakaEngine/Hiccups.cpp | osakahq/OsakaEngine | 47dd0ec5b67a176c552441a25168ecb48b52e14b | [
"Zlib",
"MIT"
] | 2 | 2016-04-04T06:00:28.000Z | 2016-04-18T15:39:38.000Z | OsakaEngine/Hiccups.cpp | osakahq/OsakaEngine | 47dd0ec5b67a176c552441a25168ecb48b52e14b | [
"Zlib",
"MIT"
] | null | null | null | OsakaEngine/Hiccups.cpp | osakahq/OsakaEngine | 47dd0ec5b67a176c552441a25168ecb48b52e14b | [
"Zlib",
"MIT"
] | null | null | null | #include "stdafx.h"
#include "ConsoleColors.h"
#include "Hiccups.h"
namespace Osaka{
namespace RPGLib{
Hiccups::Hiccups(){
fills_in_array.reserve(15);
}
Hiccups::~Hiccups(){
}
void Hiccups::Frame(const int frame_ms){
if( frame_ms < 0 ){
throw std::exception("[Hiccups] frame_ms ... | 26.38 | 88 | 0.603487 | osakahq |
0e211990ecc427fa3242626bd062c6a9149f0413 | 245 | cpp | C++ | exemplos/char2.cpp | wllynilson/flash-clip-2018-2 | 09d20d67042376c51aec54503456cb38e55ecca4 | [
"MIT"
] | null | null | null | exemplos/char2.cpp | wllynilson/flash-clip-2018-2 | 09d20d67042376c51aec54503456cb38e55ecca4 | [
"MIT"
] | 1 | 2018-10-12T03:55:20.000Z | 2018-10-12T03:55:20.000Z | exemplos/char2.cpp | wllynilson/flash-clip-2018-2 | 09d20d67042376c51aec54503456cb38e55ecca4 | [
"MIT"
] | null | null | null | // char2.c
#include <iostream>
using namespace std;
int main() {
char caractere1 = 50;
char caractere2 = 41;
char caractere3 = caractere1 + caractere2;
cout << "Caractere: " << caractere3 << endl;
}
//Output: [ | 16.333333 | 49 | 0.587755 | wllynilson |
0e244bb51b9aa99a8e211f806a73864929a4a10a | 40,387 | cpp | C++ | Source/Urho3D/Navigation/DynamicNavigationMesh.cpp | TEAdvanced/Urho3D | c5c9c5ccccb0fee6283b2689fbb54155f017db72 | [
"MIT"
] | null | null | null | Source/Urho3D/Navigation/DynamicNavigationMesh.cpp | TEAdvanced/Urho3D | c5c9c5ccccb0fee6283b2689fbb54155f017db72 | [
"MIT"
] | null | null | null | Source/Urho3D/Navigation/DynamicNavigationMesh.cpp | TEAdvanced/Urho3D | c5c9c5ccccb0fee6283b2689fbb54155f017db72 | [
"MIT"
] | 1 | 2022-01-15T20:50:09.000Z | 2022-01-15T20:50:09.000Z | //
// Copyright (c) 2008-2022 the Urho3D project.
//
// 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, m... | 34.756454 | 134 | 0.646297 | TEAdvanced |
0e26bb1dcfd0676efcb7c02e271f663eb3b5b48f | 673 | cpp | C++ | livro/cap_02 (finalizado)/10_limite_de_credito.cpp | sueyvid/Atividade_de_programacao_cpp | 691941fc94125eddd4e5466862d5a1fe04dfb520 | [
"MIT"
] | null | null | null | livro/cap_02 (finalizado)/10_limite_de_credito.cpp | sueyvid/Atividade_de_programacao_cpp | 691941fc94125eddd4e5466862d5a1fe04dfb520 | [
"MIT"
] | null | null | null | livro/cap_02 (finalizado)/10_limite_de_credito.cpp | sueyvid/Atividade_de_programacao_cpp | 691941fc94125eddd4e5466862d5a1fe04dfb520 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
float saldo_inicial, debitos, creditos, limite_credito_autorizado;
saldo_inicial = 500;
debitos = 100;
creditos = 200;
limite_credito_autorizado = saldo_inicial - debitos - creditos;
cout << "Numero da conta: xxx-xxx-xxx" << endl
... | 32.047619 | 94 | 0.609212 | sueyvid |
0e273118fc1c494940d04d75b856e80c26c786d6 | 14,540 | cpp | C++ | src/core/processors/canvasprocessor.cpp | guillempd/inviwo | 4567a9750a1efc3a0416ceb0bcb25ba0e96620a1 | [
"BSD-2-Clause"
] | 349 | 2015-01-30T09:21:52.000Z | 2022-03-25T03:10:02.000Z | src/core/processors/canvasprocessor.cpp | guillempd/inviwo | 4567a9750a1efc3a0416ceb0bcb25ba0e96620a1 | [
"BSD-2-Clause"
] | 641 | 2015-09-23T08:54:06.000Z | 2022-03-23T09:50:55.000Z | src/core/processors/canvasprocessor.cpp | guillempd/inviwo | 4567a9750a1efc3a0416ceb0bcb25ba0e96620a1 | [
"BSD-2-Clause"
] | 124 | 2015-02-27T23:45:02.000Z | 2022-02-21T09:37:14.000Z | /*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2012-2021 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided th... | 41.542857 | 100 | 0.664305 | guillempd |
0e2b40ce351abeae00636d16cabbef609a4a692e | 2,174 | cc | C++ | learn/cpp_learn/template/Demo2.cc | qiuhoude/skynet_learn_dir | ae000c051cc44eb8f858fb5851fca16058b62410 | [
"MIT"
] | null | null | null | learn/cpp_learn/template/Demo2.cc | qiuhoude/skynet_learn_dir | ae000c051cc44eb8f858fb5851fca16058b62410 | [
"MIT"
] | null | null | null | learn/cpp_learn/template/Demo2.cc | qiuhoude/skynet_learn_dir | ae000c051cc44eb8f858fb5851fca16058b62410 | [
"MIT"
] | null | null | null | #include <cstring>
#include <iostream>
using namespace std;
// 在定义类型参数时我们使用了 class,而不是 typename
template <class T>
class CArray
{
private:
int size; //数组元素的个数
T *ptr; //指向动态分配的数组
public:
CArray(int s = 0);
CArray(CArray &a);
~CArray();
void push_back(const T &v); //用于在数组尾部添加一个元素v
... | 19.585586 | 58 | 0.484821 | qiuhoude |
0e2f6eea9d6c0da58dc93a7a6df739c4c711409c | 21,641 | cpp | C++ | src/eepp/ui/uimenu.cpp | SpartanJ/eepp | 21e8ae53af9bc5eb3fd1043376f2b3a4b3ff5fac | [
"MIT"
] | 37 | 2020-01-20T06:21:24.000Z | 2022-03-21T17:44:50.000Z | src/eepp/ui/uimenu.cpp | SpartanJ/eepp | 21e8ae53af9bc5eb3fd1043376f2b3a4b3ff5fac | [
"MIT"
] | null | null | null | src/eepp/ui/uimenu.cpp | SpartanJ/eepp | 21e8ae53af9bc5eb3fd1043376f2b3a4b3ff5fac | [
"MIT"
] | 9 | 2019-03-22T00:33:07.000Z | 2022-03-01T01:35:59.000Z | #include <eepp/graphics/drawablesearcher.hpp>
#include <eepp/graphics/font.hpp>
#include <eepp/ui/css/propertydefinition.hpp>
#include <eepp/ui/uiiconthememanager.hpp>
#include <eepp/ui/uimenu.hpp>
#include <eepp/ui/uipopupmenu.hpp>
#include <eepp/ui/uiscenenode.hpp>
#include <eepp/ui/uithememanager.hpp>
#include <pugi... | 28.701592 | 99 | 0.660644 | SpartanJ |
0e2ff3205bf320555738defdc319a2f9b81d3ea2 | 3,738 | cpp | C++ | core/storage/changes_trie/impl/storage_changes_tracker_impl.cpp | iceseer/kagome | a405921659cc19e9fdb851e5f13f1e607fdf8af4 | [
"Apache-2.0"
] | null | null | null | core/storage/changes_trie/impl/storage_changes_tracker_impl.cpp | iceseer/kagome | a405921659cc19e9fdb851e5f13f1e607fdf8af4 | [
"Apache-2.0"
] | null | null | null | core/storage/changes_trie/impl/storage_changes_tracker_impl.cpp | iceseer/kagome | a405921659cc19e9fdb851e5f13f1e607fdf8af4 | [
"Apache-2.0"
] | null | null | null | #include "storage/changes_trie/impl/storage_changes_tracker_impl.hpp"
#include "scale/scale.hpp"
#include "storage/changes_trie/impl/changes_trie.hpp"
OUTCOME_CPP_DEFINE_CATEGORY(kagome::storage::changes_trie,
StorageChangesTrackerImpl::Error,
e) {
using E = k... | 35.264151 | 79 | 0.688604 | iceseer |
0e385503db972714a2efe1c70a8694fe74c8d394 | 15,475 | cpp | C++ | rosplan_knowledge_base/src/KnowledgeBase.cpp | Emresav/ROSPlan | 22d2cad209242bc8d98fca7ab25c322265ae69a6 | [
"BSD-2-Clause"
] | null | null | null | rosplan_knowledge_base/src/KnowledgeBase.cpp | Emresav/ROSPlan | 22d2cad209242bc8d98fca7ab25c322265ae69a6 | [
"BSD-2-Clause"
] | null | null | null | rosplan_knowledge_base/src/KnowledgeBase.cpp | Emresav/ROSPlan | 22d2cad209242bc8d98fca7ab25c322265ae69a6 | [
"BSD-2-Clause"
] | 1 | 2018-10-02T12:30:52.000Z | 2018-10-02T12:30:52.000Z | #include "rosplan_knowledge_base/KnowledgeBase.h"
namespace KCL_rosplan {
/*-----------------*/
/* knowledge query */
/*-----------------*/
bool KnowledgeBase::queryKnowledge(rosplan_knowledge_msgs::KnowledgeQueryService::Request &req, rosplan_knowledge_msgs::KnowledgeQueryService::Response &res) {
res.all_t... | 38.115764 | 168 | 0.708562 | Emresav |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.