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 108 | 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 67k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ee4d9f0b7691083c31bb579d2302827c41934c55 | 231 | cpp | C++ | src/lib/Target/Target.cpp | cgsdfc/Optimize | f3a28ccd5caf01d2a306859d641a1cb5aa0d36f3 | [
"MIT"
] | 1 | 2019-07-13T16:40:47.000Z | 2019-07-13T16:40:47.000Z | src/lib/Target/Target.cpp | cgsdfc/simplecc | f3a28ccd5caf01d2a306859d641a1cb5aa0d36f3 | [
"MIT"
] | null | null | null | src/lib/Target/Target.cpp | cgsdfc/simplecc | f3a28ccd5caf01d2a306859d641a1cb5aa0d36f3 | [
"MIT"
] | null | null | null | #include "simplecc/Target/Target.h"
#include "simplecc/Target/MipsAssemblyWriter.h"
namespace simplecc {
void AssembleMips(const ByteCodeModule &M, std::ostream &O) {
MipsAssemblyWriter().Write(M, O);
}
} // namespace simplecc
| 23.1 | 61 | 0.753247 | cgsdfc |
ee4e95dae0f7382b4b69d466655d7eade51f829a | 12,371 | cxx | C++ | private/inet/mshtml/src/site/text/lsm2.cxx | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | 11 | 2017-09-02T11:27:08.000Z | 2022-01-02T15:25:24.000Z | private/inet/mshtml/src/site/text/lsm2.cxx | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | null | null | null | private/inet/mshtml/src/site/text/lsm2.cxx | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | 14 | 2019-01-16T01:01:23.000Z | 2022-02-20T15:54:27.000Z | /*
* LSM2.CXX -- CLSMeasurer class
*
* Authors:
* Sujal Parikh
* Chris Thrasher
* Paul Parker
*
* History:
* 2/27/98 sujalp created
*
* Copyright (c) 1997-1998 Microsoft Corporation. All rights reserved.
*/
#include "headers.hxx"
#ifndef X_LSM_HXX_
#define X_L... | 28.504608 | 118 | 0.551451 | King0987654 |
ee4f9451e5c2fe79d28325d67392fbca9a4a82f1 | 640 | cpp | C++ | src/arithmetic/extractor/field.cpp | r3c/tesca | e5ea2f4f2c4a35c47f38468a89f2f05038fb18d8 | [
"MIT"
] | 2 | 2016-06-01T14:44:21.000Z | 2018-05-04T11:55:02.000Z | src/arithmetic/extractor/field.cpp | r3c/tesca | e5ea2f4f2c4a35c47f38468a89f2f05038fb18d8 | [
"MIT"
] | 1 | 2021-03-21T11:36:18.000Z | 2021-03-21T14:49:17.000Z | src/arithmetic/extractor/field.cpp | r3c/tesca | e5ea2f4f2c4a35c47f38468a89f2f05038fb18d8 | [
"MIT"
] | null | null | null |
#include "field.hpp"
using namespace Glay;
using namespace Tesca::Provision;
using namespace Tesca::Storage;
using namespace std;
namespace Tesca
{
namespace Arithmetic
{
FieldExtractor::FieldExtractor (Int32u field, const string& name) :
field (field),
name (name)
{
}
string FieldExtractor::createN... | 16 | 69 | 0.690625 | r3c |
ee52087b5f15639c23b8b0853e576457605c9c47 | 4,953 | cpp | C++ | src/EDAF80/assignment1.cpp | 4onen/CG_Labs | ad6feb1aa0a301b8d2bf5a6e2dee0ca2d8948b89 | [
"MIT"
] | null | null | null | src/EDAF80/assignment1.cpp | 4onen/CG_Labs | ad6feb1aa0a301b8d2bf5a6e2dee0ca2d8948b89 | [
"MIT"
] | null | null | null | src/EDAF80/assignment1.cpp | 4onen/CG_Labs | ad6feb1aa0a301b8d2bf5a6e2dee0ca2d8948b89 | [
"MIT"
] | null | null | null | #include "config.hpp"
#include "core/FPSCamera.h"
#include "core/helpers.hpp"
#include "core/Log.h"
#include "core/LogView.h"
#include "core/Misc.h"
#include "core/node.hpp"
#include "core/ShaderProgramManager.hpp"
#include "core/WindowManager.hpp"
#include <imgui.h>
#include <external/imgui_impl_glfw_gl3.h>
#include... | 23.927536 | 121 | 0.689077 | 4onen |
ee55801fc43b3bf8df2fab55ee9f5b95846d4c04 | 27,701 | cpp | C++ | SOURCES/graphics/renderer/render3d.cpp | IsraelyFlightSimulator/Negev-Storm | 86de63e195577339f6e4a94198bedd31833a8be8 | [
"Unlicense"
] | 1 | 2021-02-19T06:06:31.000Z | 2021-02-19T06:06:31.000Z | src/graphics/renderer/render3d.cpp | markbb1957/FFalconSource | 07b12e2c41a93fa3a95b912a2433a8056de5bc4d | [
"BSD-2-Clause"
] | null | null | null | src/graphics/renderer/render3d.cpp | markbb1957/FFalconSource | 07b12e2c41a93fa3a95b912a2433a8056de5bc4d | [
"BSD-2-Clause"
] | 2 | 2019-08-20T13:35:13.000Z | 2021-04-24T07:32:04.000Z | /***************************************************************************\
Render3D.cpp
Scott Randolph
December 29, 1995
//JAM 08Jan04 - Begin Major Rewrite
\***************************************************************************/
#include <math.h>
#include "falclib/include/debuggr.h"
#include "... | 34.756587 | 156 | 0.599798 | IsraelyFlightSimulator |
ee565e6c7a32c2569ed862d38e6d729e39a3317d | 1,343 | cpp | C++ | test/test2.cpp | rpoisel/c-template | 42960a5a72d7ee89aee34601950b7639e8f58055 | [
"BSD-2-Clause"
] | 1 | 2021-03-16T09:28:06.000Z | 2021-03-16T09:28:06.000Z | test/test2.cpp | rpoisel/c-template | 42960a5a72d7ee89aee34601950b7639e8f58055 | [
"BSD-2-Clause"
] | null | null | null | test/test2.cpp | rpoisel/c-template | 42960a5a72d7ee89aee34601950b7639e8f58055 | [
"BSD-2-Clause"
] | 1 | 2021-03-16T09:28:09.000Z | 2021-03-16T09:28:09.000Z | #include <arithpp.h>
#include <catch2/catch.hpp>
#include <cmath>
#include <limits>
TEST_CASE("Assert empty calculator", "[require]")
{
Arith::Calculator calculator;
REQUIRE(calculator.add() == 0);
REQUIRE(std::isnan(calculator.divide()) == true);
}
TEST_CASE("Assert one element in calculator", "[require]")
{... | 21.66129 | 81 | 0.687267 | rpoisel |
ee56cafe19841d2937a8e7b75f728764ab3cd4ba | 1,551 | cpp | C++ | testy/udpbroadcaster/udpbroadcaster.cpp | Wiladams/netops | 80020d08b4fc1929ec51c5c8d3c138134dc97c04 | [
"MIT"
] | null | null | null | testy/udpbroadcaster/udpbroadcaster.cpp | Wiladams/netops | 80020d08b4fc1929ec51c5c8d3c138134dc97c04 | [
"MIT"
] | null | null | null | testy/udpbroadcaster/udpbroadcaster.cpp | Wiladams/netops | 80020d08b4fc1929ec51c5c8d3c138134dc97c04 | [
"MIT"
] | null | null | null | /*
Minimalist example of what's required to broadcast
UDP packets on a network.
You must minimally specify a port number
You must also specify an address. By default,
we're using the INADDR_BROADCAST address, so this
will hit every machine on the local area network.
It will probably be safer to use a local s... | 26.288136 | 71 | 0.728562 | Wiladams |
ee5905e963004179aac2b291e0f9385e244f0109 | 199 | cpp | C++ | Source/manipulator/manipulator.cpp | cypypccpy/UnrealRL | b0e7c8ea734ea17b38d18b9e5ea891b271ab03a7 | [
"Apache-2.0"
] | 2 | 2021-11-15T14:45:54.000Z | 2021-12-06T10:39:42.000Z | Source/manipulator/manipulator.cpp | cypypccpy/UnrealRL | b0e7c8ea734ea17b38d18b9e5ea891b271ab03a7 | [
"Apache-2.0"
] | null | null | null | Source/manipulator/manipulator.cpp | cypypccpy/UnrealRL | b0e7c8ea734ea17b38d18b9e5ea891b271ab03a7 | [
"Apache-2.0"
] | 1 | 2022-03-25T01:26:10.000Z | 2022-03-25T01:26:10.000Z | // Copyright Epic Games, Inc. All Rights Reserved.
#include "manipulator.h"
#include "Modules/ModuleManager.h"
IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, manipulator, "manipulator" );
| 28.428571 | 84 | 0.79397 | cypypccpy |
ee5a6300152593ba0fe16dc3d624875d5114a1c7 | 676 | cpp | C++ | test/src/Core/MouseCodes.cpp | meintte/MyGui | eabda6a8bb19886214db0ca04162f97c594d75a2 | [
"Unlicense"
] | null | null | null | test/src/Core/MouseCodes.cpp | meintte/MyGui | eabda6a8bb19886214db0ca04162f97c594d75a2 | [
"Unlicense"
] | null | null | null | test/src/Core/MouseCodes.cpp | meintte/MyGui | eabda6a8bb19886214db0ca04162f97c594d75a2 | [
"Unlicense"
] | null | null | null | #include <doctest/doctest.h>
#include <mygui/Core/MouseCodes.hpp>
#include <string>
TEST_CASE("MouseCodes") {
CHECK(mygui::Mouse::Button0 == 0);
CHECK(mygui::Mouse::Button1 == 1);
CHECK(mygui::Mouse::Button2 == 2);
CHECK(mygui::Mouse::Button3 == 3);
CHECK(mygui::Mouse::Button4 == 4);
CHECK(myg... | 35.578947 | 63 | 0.647929 | meintte |
ee5b933b80fa068deedfbf41a02a35173f5656e4 | 94 | cpp | C++ | source/Foo.cpp | davidgtl/GraphKat | ef711f3b510cb25ed59e3363f010e89948975806 | [
"MIT"
] | null | null | null | source/Foo.cpp | davidgtl/GraphKat | ef711f3b510cb25ed59e3363f010e89948975806 | [
"MIT"
] | null | null | null | source/Foo.cpp | davidgtl/GraphKat | ef711f3b510cb25ed59e3363f010e89948975806 | [
"MIT"
] | null | null | null | //
// Created by david on 10/02/2020.
//
#include "Foo.h"
Foo::Foo(Bar &bar) : bar(bar) {
}
| 10.444444 | 34 | 0.56383 | davidgtl |
ee5cc67843146500c633dc4746eb4a513675b191 | 4,859 | cc | C++ | myping/ping/tcp.cc | svcx8/myping | 8ae1c13a549865fa308c2f7ad7b2883344b5f41e | [
"MIT"
] | null | null | null | myping/ping/tcp.cc | svcx8/myping | 8ae1c13a549865fa308c2f7ad7b2883344b5f41e | [
"MIT"
] | null | null | null | myping/ping/tcp.cc | svcx8/myping | 8ae1c13a549865fa308c2f7ad7b2883344b5f41e | [
"MIT"
] | null | null | null | #include "tcp.hh"
#include "misc/net.hh"
using std::chrono::duration_cast;
using std::chrono::milliseconds;
using std::chrono::system_clock;
void SetNonBlocking(int socket) {
#ifdef _WIN32
u_long mode = 1;
ioctlsocket(socket, FIONBIO, &mode);
#else
int old_opt = fcntl(socket, F_GETFL);
int new_opt = ... | 33.510345 | 175 | 0.526446 | svcx8 |
ee5dfe031950bddbd59a07bf68e99b479465f67a | 54,936 | cc | C++ | src/connectivity/bluetooth/core/bt-host/l2cap/enhanced_retransmission_mode_tx_engine_unittest.cc | opensource-assist/fuschia | 66646c55b3d0b36aae90a4b6706b87f1a6261935 | [
"BSD-3-Clause"
] | 3 | 2020-08-02T04:46:18.000Z | 2020-08-07T10:10:53.000Z | src/connectivity/bluetooth/core/bt-host/l2cap/enhanced_retransmission_mode_tx_engine_unittest.cc | opensource-assist/fuschia | 66646c55b3d0b36aae90a4b6706b87f1a6261935 | [
"BSD-3-Clause"
] | 16 | 2020-09-04T19:01:11.000Z | 2021-05-28T03:23:09.000Z | src/connectivity/bluetooth/core/bt-host/l2cap/enhanced_retransmission_mode_tx_engine_unittest.cc | OpenTrustGroup/fuchsia | 647e593ea661b8bf98dcad2096e20e8950b24a97 | [
"BSD-3-Clause"
] | 1 | 2020-08-07T10:11:49.000Z | 2020-08-07T10:11:49.000Z | // Copyright 2019 The Fuchsia 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 "enhanced_retransmission_mode_tx_engine.h"
#include "gtest/gtest.h"
#include "lib/gtest/test_loop_fixture.h"
#include "src/connectivity/bluetooth... | 38.906516 | 100 | 0.73784 | opensource-assist |
ee5f55acd457d1553648e9afeb42e153e03e0d36 | 1,944 | hpp | C++ | interface/omni/ui/entity_widget_provider.hpp | daniel-kun/omni | ec9e0a2688677f53c3b4aa3b68f4f788a81e8a18 | [
"MIT"
] | 33 | 2015-03-21T04:12:45.000Z | 2021-04-18T21:44:33.000Z | interface/omni/ui/entity_widget_provider.hpp | daniel-kun/omni | ec9e0a2688677f53c3b4aa3b68f4f788a81e8a18 | [
"MIT"
] | null | null | null | interface/omni/ui/entity_widget_provider.hpp | daniel-kun/omni | ec9e0a2688677f53c3b4aa3b68f4f788a81e8a18 | [
"MIT"
] | 2 | 2016-03-05T12:57:05.000Z | 2017-09-12T10:11:52.000Z | #ifndef OMNI_UI_ENTITY_WIDGET_PROVIDER_HPP
#define OMNI_UI_ENTITY_WIDGET_PROVIDER_HPP
#include <omni/ui/ui.hpp>
#include <omni/ui/entity_widget_provider_base.hpp>
#include <QWidget>
#include <QKeyEvent>
#include <functional>
#include <string>
#include <memory>
namespace omni {
namespace core {
class context;
}
}
n... | 37.384615 | 176 | 0.745885 | daniel-kun |
ee613b51eab92b7025d94887bd9b5ee5c5ded2de | 394 | cpp | C++ | Engine/src/Assets/AssetManager.cpp | Vyraax/VulkanLab | 45aeaf576979684bc2a384a50aade276e64c601e | [
"MIT"
] | 1 | 2021-08-06T11:28:18.000Z | 2021-08-06T11:28:18.000Z | Engine/src/Assets/AssetManager.cpp | Vyraax/VulkanLab | 45aeaf576979684bc2a384a50aade276e64c601e | [
"MIT"
] | null | null | null | Engine/src/Assets/AssetManager.cpp | Vyraax/VulkanLab | 45aeaf576979684bc2a384a50aade276e64c601e | [
"MIT"
] | null | null | null | #include <iostream>
#include <filesystem>
#include "AssetManager.h"
#include "../Shaders/Shader.h"
namespace fs = std::filesystem;
AssetManager::AssetManager(const char* bin_path) {
this->root_dir = fs::canonical(fs::path(fs::current_path() / fs::path("../shaders/"))).string();
std::cout << "Shaders directory... | 24.625 | 100 | 0.675127 | Vyraax |
ee61a7fc6e312c8eb8c5dd3ed622b01ac5796678 | 1,474 | cpp | C++ | PhysicsMaybe/Sphere.cpp | ElectroBean/IntroToPhysics | 0609174025cda25fa78d86e6eb4650ff130b59ef | [
"MIT"
] | null | null | null | PhysicsMaybe/Sphere.cpp | ElectroBean/IntroToPhysics | 0609174025cda25fa78d86e6eb4650ff130b59ef | [
"MIT"
] | null | null | null | PhysicsMaybe/Sphere.cpp | ElectroBean/IntroToPhysics | 0609174025cda25fa78d86e6eb4650ff130b59ef | [
"MIT"
] | null | null | null | #include "Sphere.h"
#include "RigidBody.h"
#include <Renderer2D.h>
#include <Gizmos.h>
Sphere::Sphere(glm::vec2 position, glm::vec2 velocity, float mass, bool kinematic, float radius, float linearDrag, float angularDrag, float elasticity, glm::vec4 colour)
: RigidBody(SPHERE, position, velocity, 0, mass, kinematic, 0... | 26.8 | 169 | 0.713704 | ElectroBean |
ee6228c502b7222a8c230dc3c2c8546e66c39690 | 54,350 | cc | C++ | hookflash-core/webRTC/webRTC_ios/src/modules/video_coding/main/source/jitter_buffer.cc | ilin-in/OP | bf3e87d90008e2a4106ee70360fbe15b0d694e77 | [
"Unlicense"
] | 1 | 2020-02-19T09:55:55.000Z | 2020-02-19T09:55:55.000Z | hookflash-core/webRTC/webRTC_ios/src/modules/video_coding/main/source/jitter_buffer.cc | ilin-in/OP | bf3e87d90008e2a4106ee70360fbe15b0d694e77 | [
"Unlicense"
] | null | null | null | hookflash-core/webRTC/webRTC_ios/src/modules/video_coding/main/source/jitter_buffer.cc | ilin-in/OP | bf3e87d90008e2a4106ee70360fbe15b0d694e77 | [
"Unlicense"
] | null | null | null | /*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | 30.602477 | 82 | 0.606293 | ilin-in |
ee64c8ab261a9460de3a9153b9d166822cea5f97 | 975 | cpp | C++ | Graphs/no_of_connected_comp.cpp | git-elliot/competitive_programming_codes | b8b5646ae5074b453e7f1af982af174b9c4138e1 | [
"MIT"
] | 1 | 2021-06-20T17:28:54.000Z | 2021-06-20T17:28:54.000Z | Graphs/no_of_connected_comp.cpp | git-elliot/competitive_programming_codes | b8b5646ae5074b453e7f1af982af174b9c4138e1 | [
"MIT"
] | null | null | null | Graphs/no_of_connected_comp.cpp | git-elliot/competitive_programming_codes | b8b5646ae5074b453e7f1af982af174b9c4138e1 | [
"MIT"
] | null | null | null | // Find number of connected components in an undirected graph
#include <iostream>
#include <vector>
using namespace std;
vector<int> parent;
int find(int w){
if(w == parent[w]){
return w;
}
return find(parent[w]);
}
void doUnion(int u, int v){
int uP = find(u);
int vP = find(v);
par... | 17.727273 | 62 | 0.532308 | git-elliot |
ee661d5d99664556748e1f3d3c9946146b7ba652 | 14,177 | cpp | C++ | src/html.cpp | calsev/ork | 0247981395e28d68b3a446f62b2e426ea752a322 | [
"MIT"
] | null | null | null | src/html.cpp | calsev/ork | 0247981395e28d68b3a446f62b2e426ea752a322 | [
"MIT"
] | 4 | 2018-01-19T01:24:28.000Z | 2018-01-19T01:27:07.000Z | src/html.cpp | calsev/ork | 0247981395e28d68b3a446f62b2e426ea752a322 | [
"MIT"
] | null | null | null | /*
This file is part of the ORK library.
Full copyright and license terms can be found in the LICENSE.txt file.
*/
#include "ork/ork.hpp"
#define ORK_STL_INC_FILE <string>
#include "ork/core/stl_include.inl"
#define ORK_STL_INC_FILE <sstream>
#include "ork/core/stl_include.inl"
#include "ork/html.hpp"
namespace ork {... | 26.648496 | 131 | 0.533822 | calsev |
ee67959d94149b0b90f698e30424b7ac81b1807b | 1,214 | cpp | C++ | Submissions/Codeforces/186A.cpp | purhan/mindsport | d14fe8917c64b475589f494d98b74e99c9e064e5 | [
"MIT"
] | null | null | null | Submissions/Codeforces/186A.cpp | purhan/mindsport | d14fe8917c64b475589f494d98b74e99c9e064e5 | [
"MIT"
] | null | null | null | Submissions/Codeforces/186A.cpp | purhan/mindsport | d14fe8917c64b475589f494d98b74e99c9e064e5 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define fo(int, i, a, b) for (int i=a; i<(b); i++)
#define forev(int, i, b, a) for (int i = (b)-1; i >= a; i--)
#define uns unsigned
#define lli long long int
#define ld long double
#define all(x) ... | 25.291667 | 75 | 0.442339 | purhan |
ee691a9a0f0436a7916f89d82b7b286d86a6b921 | 643 | cpp | C++ | Leetcode/minimum-subsequence-in-non-increasing-order.cpp | gnomegeek/cp-submissions | c046be42876794d7cc6216db4e44a23c1174742d | [
"MIT"
] | null | null | null | Leetcode/minimum-subsequence-in-non-increasing-order.cpp | gnomegeek/cp-submissions | c046be42876794d7cc6216db4e44a23c1174742d | [
"MIT"
] | null | null | null | Leetcode/minimum-subsequence-in-non-increasing-order.cpp | gnomegeek/cp-submissions | c046be42876794d7cc6216db4e44a23c1174742d | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> minSubsequence(vector<int>& nums) {
sort(nums.begin(), nums.end());
int sum = 0;
for (int i = 0; i < nums.size(); i++) sum += nums[i];
int start = -1;
int curSum = 0;
for (int i = 0; i < nums.size(); i++) {
curSum +... | 24.730769 | 64 | 0.401244 | gnomegeek |
ee6cd880c16b6a3701d3fbcfc2bf8fe711c55e38 | 3,587 | hpp | C++ | data-struct/cht/ConvexHullTrickAddMonotone.hpp | shiomusubi496/library | 907f72eb6ee4ac6ef617bb359693588167f779e7 | [
"MIT"
] | 3 | 2021-11-04T08:45:12.000Z | 2021-11-29T08:44:26.000Z | data-struct/cht/ConvexHullTrickAddMonotone.hpp | shiomusubi496/library | 907f72eb6ee4ac6ef617bb359693588167f779e7 | [
"MIT"
] | null | null | null | data-struct/cht/ConvexHullTrickAddMonotone.hpp | shiomusubi496/library | 907f72eb6ee4ac6ef617bb359693588167f779e7 | [
"MIT"
] | null | null | null | #pragma once
#include "../../other/template.hpp"
template<class T = ll, bool is_max = false, class LargeT = __int128_t> class ConvexHullTrickAddMonotone {
protected:
struct Line {
T a, b;
bool is_query;
mutable ll nxt_a, nxt_b;
mutable bool has_nxt;
T get(T x) const { ret... | 35.514851 | 105 | 0.4954 | shiomusubi496 |
ee6f4dabcb2d3e0542f95058ed5d15eb2c10cf35 | 615 | cpp | C++ | unittest/ctable_test.cpp | Jamaika1/charls | 2abc1561925031b10f68666421315b2f3c63bbab | [
"BSD-3-Clause"
] | null | null | null | unittest/ctable_test.cpp | Jamaika1/charls | 2abc1561925031b10f68666421315b2f3c63bbab | [
"BSD-3-Clause"
] | null | null | null | unittest/ctable_test.cpp | Jamaika1/charls | 2abc1561925031b10f68666421315b2f3c63bbab | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) Team CharLS.
// SPDX-License-Identifier: BSD-3-Clause
#include "pch.h"
#include "util.h"
#include "../src/lookup_table.h"
using Microsoft::VisualStudio::CppUnitTestFramework::Assert;
using namespace charls;
// clang-format off
namespace CharLSUnitTest {
TEST_CLASS(ctable_test)
{
public:
TES... | 18.088235 | 65 | 0.642276 | Jamaika1 |
ee7020995470805c1885b07289c220a2404a81f6 | 8,650 | cc | C++ | errno.cc | rescrv/po6 | 7bd35b7cd9f6e49799852892c73d24d336de2275 | [
"BSD-3-Clause"
] | 16 | 2015-06-19T02:53:00.000Z | 2022-01-20T03:21:22.000Z | errno.cc | rescrv/po6 | 7bd35b7cd9f6e49799852892c73d24d336de2275 | [
"BSD-3-Clause"
] | 4 | 2015-02-18T15:28:36.000Z | 2017-09-03T20:07:16.000Z | errno.cc | rescrv/po6 | 7bd35b7cd9f6e49799852892c73d24d336de2275 | [
"BSD-3-Clause"
] | 12 | 2015-01-05T08:46:45.000Z | 2019-09-15T01:48:07.000Z | // Copyright (c) 2015, Robert Escriva
// 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 c... | 18.058455 | 79 | 0.728092 | rescrv |
ee70a56817215e31cfc441758b28dd7b5c6fdd6b | 30,012 | cpp | C++ | multimedia/directx/dplay/dvoice/dxvutils/sndutils.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | multimedia/directx/dplay/dvoice/dxvutils/sndutils.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | multimedia/directx/dplay/dvoice/dxvutils/sndutils.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*==========================================================================
*
* Copyright (C) 1999-2002 Microsoft Corporation. All Rights Reserved.
*
* File: sndutils.cpp
* Content:
* This module contains the implementation of sound related utility
* functions. Functions in this module manipulate... | 30.376518 | 167 | 0.666333 | npocmaka |
ee71cb77bdd00b1aca9632efe4b2f8605c379b3e | 688 | cpp | C++ | dynamic-prog/FARIDA.cpp | stepan-krivanek/spoj | 3a91d7e666fd6af5cb2a7978dc20318077e62850 | [
"MIT"
] | null | null | null | dynamic-prog/FARIDA.cpp | stepan-krivanek/spoj | 3a91d7e666fd6af5cb2a7978dc20318077e62850 | [
"MIT"
] | null | null | null | dynamic-prog/FARIDA.cpp | stepan-krivanek/spoj | 3a91d7e666fd6af5cb2a7978dc20318077e62850 | [
"MIT"
] | null | null | null | #include <iostream>
#define ll long long
using namespace std;
int main(){
int num_of_subjects;
cin >> num_of_subjects;
int num_of_monsters;
for (int subject = 1; subject <= num_of_subjects; subject++){
cin >> num_of_monsters;
ll int monster;
ll int take = 0;
l... | 23.724138 | 90 | 0.517442 | stepan-krivanek |
ee722ddf5b56d5772f624b45b67cadad3afb8208 | 11,200 | cpp | C++ | engine/src/ph/renderer/ImGuiRenderer.cpp | PetorSFZ/PhantasyEngine | befe8e9499b7fd93d8765721b6841337a57b0dd6 | [
"Zlib"
] | null | null | null | engine/src/ph/renderer/ImGuiRenderer.cpp | PetorSFZ/PhantasyEngine | befe8e9499b7fd93d8765721b6841337a57b0dd6 | [
"Zlib"
] | null | null | null | engine/src/ph/renderer/ImGuiRenderer.cpp | PetorSFZ/PhantasyEngine | befe8e9499b7fd93d8765721b6841337a57b0dd6 | [
"Zlib"
] | null | null | null | // Copyright (c) Peter Hillerström (skipifzero.com, peter@hstroem.se)
// For other contributors see Contributors.txt
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//... | 38.356164 | 107 | 0.754375 | PetorSFZ |
ee7579543308d2ff64eda343664c8333de5189a8 | 546 | cpp | C++ | src/core/Hit.cpp | nagato0614/pathtracing | 1295b6fb38a89ca15e4da240208b612a22cb45d2 | [
"MIT"
] | null | null | null | src/core/Hit.cpp | nagato0614/pathtracing | 1295b6fb38a89ca15e4da240208b612a22cb45d2 | [
"MIT"
] | 6 | 2018-09-16T14:16:51.000Z | 2018-09-16T14:33:22.000Z | src/core/Hit.cpp | nagato0614/Pathtracing | 1295b6fb38a89ca15e4da240208b612a22cb45d2 | [
"MIT"
] | null | null | null | //
// Created by 長井亨 on 2018/07/18.
//
#include "Hit.hpp"
namespace nagato {
Hit::Hit(float d, Vector3 p, Vector3 n, Object *sphere)
:
distance(d), point(p), normal(n), object(sphere) {
}
Hit::Hit() {
}
const float Hit::getDistance() const {
return distance;
... | 16.058824 | 62 | 0.53663 | nagato0614 |
ee7aae91ee59244d1f52cb2159e640d5b664f7bc | 9,667 | cpp | C++ | src/CommandLine.cpp | kernsuite-debian/amber | 5eaa39330968b5bad24b080f23691d5d8d358756 | [
"Apache-2.0"
] | null | null | null | src/CommandLine.cpp | kernsuite-debian/amber | 5eaa39330968b5bad24b080f23691d5d8d358756 | [
"Apache-2.0"
] | null | null | null | src/CommandLine.cpp | kernsuite-debian/amber | 5eaa39330968b5bad24b080f23691d5d8d358756 | [
"Apache-2.0"
] | null | null | null | // Copyright 2017 Netherlands Institute for Radio Astronomy (ASTRON)
// Copyright 2017 Netherlands eScience Center
//
// 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.apa... | 66.668966 | 354 | 0.726078 | kernsuite-debian |
ee7b90a444f24ed7dd35c3dd7d04460c185f6279 | 22,485 | cpp | C++ | OpenRobertaParent/RobotArdu/resources/hardware/additional/arduino/hardware/samd/1.6.20/cores/arduino/USB/USBCore.cpp | WGraterol64/robertalab | 368c970c06008c6b56e59e3df19daf6e00022ad9 | [
"Apache-2.0"
] | null | null | null | OpenRobertaParent/RobotArdu/resources/hardware/additional/arduino/hardware/samd/1.6.20/cores/arduino/USB/USBCore.cpp | WGraterol64/robertalab | 368c970c06008c6b56e59e3df19daf6e00022ad9 | [
"Apache-2.0"
] | null | null | null | OpenRobertaParent/RobotArdu/resources/hardware/additional/arduino/hardware/samd/1.6.20/cores/arduino/USB/USBCore.cpp | WGraterol64/robertalab | 368c970c06008c6b56e59e3df19daf6e00022ad9 | [
"Apache-2.0"
] | null | null | null | /*
Copyright (c) 2016 Arduino LLC. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
T... | 22.85061 | 140 | 0.696598 | WGraterol64 |
ee82252e4f79331e3af18e529f28cf25a25f0ed0 | 2,203 | cpp | C++ | ThunkLibs/libSDL2/libSDL2_Guest.cpp | duck-37/FEX | fbda0e7ba521d151d3448f5d664da6879686cff8 | [
"MIT"
] | null | null | null | ThunkLibs/libSDL2/libSDL2_Guest.cpp | duck-37/FEX | fbda0e7ba521d151d3448f5d664da6879686cff8 | [
"MIT"
] | null | null | null | ThunkLibs/libSDL2/libSDL2_Guest.cpp | duck-37/FEX | fbda0e7ba521d151d3448f5d664da6879686cff8 | [
"MIT"
] | null | null | null | #include <SDL2/SDL.h>
#include <SDL2/SDL_syswm.h>
#include <GL/glx.h>
#include <dlfcn.h>
#include <stdio.h>
#include <cstring>
#include <map>
#include <string>
#include <stdarg.h>
#include "common/Guest.h"
#include "thunks.inl"
#include "function_packs.inl"
#include "function_packs_public.inl"
LOAD_LIB(libSDL2)
#... | 33.378788 | 109 | 0.662279 | duck-37 |
ee825be7ed59f4d159cab9152ee4e6c01e053b1c | 1,899 | cpp | C++ | simulatorCore/src/glBlock.cpp | claytronics/visiblesim | 2762a88a23e50516d0f166dd9629f1ac7290fded | [
"Apache-2.0"
] | 4 | 2016-08-18T03:19:49.000Z | 2020-09-20T03:29:26.000Z | simulatorCore/src/glBlock.cpp | claytronics/visiblesim | 2762a88a23e50516d0f166dd9629f1ac7290fded | [
"Apache-2.0"
] | 2 | 2016-08-18T03:25:07.000Z | 2016-08-29T17:51:50.000Z | simulatorCore/src/glBlock.cpp | claytronics/visiblesim | 2762a88a23e50516d0f166dd9629f1ac7290fded | [
"Apache-2.0"
] | 3 | 2015-05-14T07:29:55.000Z | 2021-07-18T23:45:36.000Z | #include "glBlock.h"
#include <sstream>
#include "objLoader.h"
GlBlock::GlBlock(bID id):blockId(id) {
position[0] = 0.0;
position[1] = 0.0;
position[2] = 0.0;
color[0] = 0.5;
color[1] = 0.5;
color[2] = 0.5;
color[3] = 1.0;
isHighlighted = false;
}
GlBlock::GlBlock(bID id,const Vector3D &pos, const Vector3D ... | 20.419355 | 112 | 0.617167 | claytronics |
ee88d8839f6bf5d8ce143fdc88e75a258efb6a74 | 2,648 | cpp | C++ | CubeEngine/EngineSrc/Texture/TextureMgr.cpp | tangziwen/Cube-Engine | c79b878dcc7e2e382f4463ca63519627d6220afd | [
"MIT"
] | 360 | 2015-01-26T08:15:01.000Z | 2021-07-11T16:30:58.000Z | CubeEngine/EngineSrc/Texture/TextureMgr.cpp | multithread3/Cube-Engine | aa76db88fdace41b09cbfc51e5959a9686cca3f3 | [
"MIT"
] | 6 | 2015-03-09T09:15:07.000Z | 2020-07-06T01:34:00.000Z | CubeEngine/EngineSrc/Texture/TextureMgr.cpp | multithread3/Cube-Engine | aa76db88fdace41b09cbfc51e5959a9686cca3f3 | [
"MIT"
] | 41 | 2015-03-10T03:17:46.000Z | 2021-07-13T06:26:26.000Z | #include "TextureMgr.h"
#include <utility>
#include "Utility/log/Log.h"
namespace tzw {
Texture *TextureMgr::getByPath(std::string filePath, bool isNeedMipMap)
{
if (filePath.empty()) return nullptr;
auto result = m_texturePool.find(filePath);
if(result!=m_texturePool.end())
{
return result-... | 22.632479 | 125 | 0.629909 | tangziwen |
ee8bdbd14703200c0abba03f35df7f3c29f0c2b1 | 5,980 | cc | C++ | get-energy.cc | mhirki/rapl-tools | bf27fe416e7c93ea7f54904b47646a3471e8b910 | [
"MIT"
] | 8 | 2019-01-17T12:48:34.000Z | 2022-02-04T11:40:58.000Z | get-energy.cc | mhirki/rapl-tools | bf27fe416e7c93ea7f54904b47646a3471e8b910 | [
"MIT"
] | null | null | null | get-energy.cc | mhirki/rapl-tools | bf27fe416e7c93ea7f54904b47646a3471e8b910 | [
"MIT"
] | 2 | 2019-12-01T02:23:07.000Z | 2019-12-09T02:56:44.000Z | /*
* Measure the energy of executing another program.
* Code based on IgProf energy profiling module by Filip Nybäck.
*
* TODO:
* Use waitpid() instead of wait().
* Account for RAPL overflows.
*
* Author: Mikael Hirki <mikael.hirki@aalto.fi>
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#inc... | 27.813953 | 167 | 0.691304 | mhirki |
ee8d2481fa3ec70137fdeb4b8fcc3b83a23d4188 | 2,624 | cpp | C++ | src/main.cpp | IllidanS4/samp-compat | 91a7762f32d89fa3cab0d174546a6529e46dff27 | [
"MIT"
] | null | null | null | src/main.cpp | IllidanS4/samp-compat | 91a7762f32d89fa3cab0d174546a6529e46dff27 | [
"MIT"
] | null | null | null | src/main.cpp | IllidanS4/samp-compat | 91a7762f32d89fa3cab0d174546a6529e46dff27 | [
"MIT"
] | null | null | null | /*
# main.cpp
The "main" source file with most of the boilerplate code. Includes the
`NativesMain` header for initialising plugin-natives.
- `Supports` declares to the SA:MP server which features this plugin uses.
- `Load` is called when the plugin loads and sets up the `logprintf` function.
*/
#include <amx/amx.h>
... | 19.58209 | 83 | 0.716082 | IllidanS4 |
ee8e079de7f4afbd0ca4779cb9be34e2761d2f32 | 137 | cpp | C++ | docs/assets/playground/char_class_union.cpp | gkgoat1/lexy | 9c600fa906e81efbb3e34b8951ebc56809f2a0df | [
"BSL-1.0"
] | null | null | null | docs/assets/playground/char_class_union.cpp | gkgoat1/lexy | 9c600fa906e81efbb3e34b8951ebc56809f2a0df | [
"BSL-1.0"
] | null | null | null | docs/assets/playground/char_class_union.cpp | gkgoat1/lexy | 9c600fa906e81efbb3e34b8951ebc56809f2a0df | [
"BSL-1.0"
] | null | null | null | // INPUT:H123
struct production
{
static constexpr auto rule //
= dsl::identifier(dsl::ascii::upper / dsl::ascii::digit);
};
| 19.571429 | 65 | 0.635036 | gkgoat1 |
ee8f18afcecb0020ca5d313cabee7ebee4cb4e85 | 1,056 | cpp | C++ | ECE551-cpp/042_bits_arr/numToBits.cpp | yo1995/cht_Duke_courses | d889e85e677f419c67c12e78143f3e8143457944 | [
"MIT"
] | 8 | 2019-03-28T18:37:32.000Z | 2022-03-29T22:15:05.000Z | ECE551-cpp/042_bits_arr/numToBits.cpp | yo1995/cht_Duke_courses | d889e85e677f419c67c12e78143f3e8143457944 | [
"MIT"
] | null | null | null | ECE551-cpp/042_bits_arr/numToBits.cpp | yo1995/cht_Duke_courses | d889e85e677f419c67c12e78143f3e8143457944 | [
"MIT"
] | 13 | 2018-09-12T19:56:46.000Z | 2020-11-24T22:48:46.000Z | #include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
int getNthBit(uint32_t number, int bit) {
if (bit <0 || bit >= 32) {
printf("Bit %d is invalid\n", bit);
exit (EXIT_FAILURE);
}
return (number & (1<<bit)) != 0;
}
void numToBits(uint32_t * nums, int nNums, int * bits, int nBits) {
int i,j;
if(... | 19.924528 | 78 | 0.549242 | yo1995 |
ee91090d1aa9d27dc9332b8de85cb316ab57e015 | 8,277 | cpp | C++ | helperfunctions/filterHelpers/gpumle/GPUgenerateBlobs VS2013/GPUgenerateBlobs/mexFunction.cpp | qnano/smfish | 6f82c2a571d47336b4f5216e8a79395caec190af | [
"MIT"
] | null | null | null | helperfunctions/filterHelpers/gpumle/GPUgenerateBlobs VS2013/GPUgenerateBlobs/mexFunction.cpp | qnano/smfish | 6f82c2a571d47336b4f5216e8a79395caec190af | [
"MIT"
] | null | null | null | helperfunctions/filterHelpers/gpumle/GPUgenerateBlobs VS2013/GPUgenerateBlobs/mexFunction.cpp | qnano/smfish | 6f82c2a571d47336b4f5216e8a79395caec190af | [
"MIT"
] | 1 | 2021-01-18T11:17:25.000Z | 2021-01-18T11:17:25.000Z |
#include <stdio.h> /* for stderr */
#include <stdlib.h>
#include <iostream>
#include <string.h>
#include "mex.h"
#include "math.h"
#include "cuda_runtime.h"
#include "matrix.h"
#include "definitions.h"
#include "kernel.h"
extern void kernel_guassiansampleblobs_wrapper(dim3 dimGrid, dim3 dimBlock, int,int,int, float... | 33.922131 | 209 | 0.695663 | qnano |
ee9425fc42b56f5644c040b5b052deb2d31bc2ad | 1,096 | hpp | C++ | include/GlobalNamespace/SR.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/SR.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/SR.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Completed includes
// Type namespace:
namespace GlobalNamespace {
// Size: 0x10
... | 39.142857 | 107 | 0.652372 | darknight1050 |
ee956cf1556c07a179152771e0103e119e283038 | 14,786 | cpp | C++ | Code/Framework/AzToolsFramework/AzToolsFramework/UI/DocumentPropertyEditor/DocumentPropertyEditor.cpp | BreakerOfThings/o3de | f4c59f868c726470ec910623facd836047d059c3 | [
"Apache-2.0",
"MIT"
] | null | null | null | Code/Framework/AzToolsFramework/AzToolsFramework/UI/DocumentPropertyEditor/DocumentPropertyEditor.cpp | BreakerOfThings/o3de | f4c59f868c726470ec910623facd836047d059c3 | [
"Apache-2.0",
"MIT"
] | null | null | null | Code/Framework/AzToolsFramework/AzToolsFramework/UI/DocumentPropertyEditor/DocumentPropertyEditor.cpp | BreakerOfThings/o3de | f4c59f868c726470ec910623facd836047d059c3 | [
"Apache-2.0",
"MIT"
] | null | null | null | /*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "DocumentPropertyEditor.h"
#include <QLabel>
#include <QLineEdit>
#include <QVBoxLayout>
... | 42.245714 | 138 | 0.600027 | BreakerOfThings |
ee96685d4b1d0cea12e5ed0ad31f5b2b98dd200c | 4,718 | cpp | C++ | vm/drivers/cli.cpp | samleb/rubinius | 38eec1983b9b6739d7a552081e208aa433b99483 | [
"BSD-3-Clause"
] | 1 | 2016-05-09T10:45:38.000Z | 2016-05-09T10:45:38.000Z | vm/drivers/cli.cpp | samleb/rubinius | 38eec1983b9b6739d7a552081e208aa433b99483 | [
"BSD-3-Clause"
] | null | null | null | vm/drivers/cli.cpp | samleb/rubinius | 38eec1983b9b6739d7a552081e208aa433b99483 | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <fstream>
#include <sys/stat.h>
#include "vm/environment.hpp"
#include "vm/oop.hpp"
#include "vm/type_info.hpp"
#include "vm/exception.hpp"
using namespace std;
using namespace rubinius;
/* Loads the runtime kernel files. They're stored in /kernel.
* These files consist of classes nee... | 32.095238 | 80 | 0.633319 | samleb |
ee97070dd1aa511ba5b3855ccb16fd8b5e3351d6 | 3,336 | hpp | C++ | bmc_state_manager.hpp | msbarth/ibm-phosphor-state-manager | bce16c8e6d653f43a9dca5b05d9741ccdbb3ab5d | [
"Apache-2.0"
] | null | null | null | bmc_state_manager.hpp | msbarth/ibm-phosphor-state-manager | bce16c8e6d653f43a9dca5b05d9741ccdbb3ab5d | [
"Apache-2.0"
] | null | null | null | bmc_state_manager.hpp | msbarth/ibm-phosphor-state-manager | bce16c8e6d653f43a9dca5b05d9741ccdbb3ab5d | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "xyz/openbmc_project/State/BMC/server.hpp"
#include <linux/watchdog.h>
#include <sdbusplus/bus.hpp>
#include <functional>
namespace phosphor
{
namespace state
{
namespace manager
{
using BMCInherit = sdbusplus::server::object::object<
sdbusplus::xyz::openbmc_project::State::server::BMC>;... | 28.512821 | 74 | 0.639089 | msbarth |
ee9883d50c029ffa8aec2c438de71d0e1409e4ec | 130 | hxx | C++ | src/Providers/UNIXProviders/QueryCapabilities/UNIX_QueryCapabilities_LINUX.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | 1 | 2020-10-12T09:00:09.000Z | 2020-10-12T09:00:09.000Z | src/Providers/UNIXProviders/QueryCapabilities/UNIX_QueryCapabilities_LINUX.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | src/Providers/UNIXProviders/QueryCapabilities/UNIX_QueryCapabilities_LINUX.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | #ifdef PEGASUS_OS_LINUX
#ifndef __UNIX_QUERYCAPABILITIES_PRIVATE_H
#define __UNIX_QUERYCAPABILITIES_PRIVATE_H
#endif
#endif
| 10.833333 | 42 | 0.853846 | brunolauze |
ee9ad06223a193620c30a7c0344ac7a114660687 | 1,120 | cpp | C++ | dataset/test/1624B/8.cpp | Karina5005/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | 3 | 2022-02-15T00:29:39.000Z | 2022-03-15T08:36:44.000Z | dataset/test/1624B/8.cpp | Kira5005-code/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | null | null | null | dataset/test/1624B/8.cpp | Kira5005-code/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | null | null | null | #include <complex>
#include <queue>
#include <set>
#include <unordered_set>
#include <list>
#include <chrono>
#include <random>
#include <iostream>
#include <algorithm>
#include <cmath>
#include <string>
#include <vector>
#include <map>
#include <unordered_map>
#include <stack>
#include <array>
#include... | 20.740741 | 97 | 0.55625 | Karina5005 |
ee9ba9e52a3ff2f6095f356e87910124a4ba2d1c | 5,272 | cpp | C++ | AI/ObstacleAvoidance.cpp | tstaples/AI-VGP332 | b4df47e64b3a25060d5300bb6c3171947f4c509c | [
"MIT"
] | null | null | null | AI/ObstacleAvoidance.cpp | tstaples/AI-VGP332 | b4df47e64b3a25060d5300bb6c3171947f4c509c | [
"MIT"
] | null | null | null | AI/ObstacleAvoidance.cpp | tstaples/AI-VGP332 | b4df47e64b3a25060d5300bb6c3171947f4c509c | [
"MIT"
] | null | null | null | #include "ObstacleAvoidance.h"
#include "Agent.h"
#include "AIWorld.h"
namespace AI
{
ObstacleAvoidance::ObstacleAvoidance(Agent* pAgent, float weight)
: SteeringBehavior(pAgent, weight)
{
}
SVector2 ObstacleAvoidance::Update(float deltatime)
{
// todo: set bounding volume in character load.
// Get the transforma... | 34.913907 | 111 | 0.731032 | tstaples |
eea25dcdca81b713365256e88123e13734c81441 | 399 | cpp | C++ | Nebula-Storm/src/App.cpp | GalacticKittenSS/Nebula | 1620a1dab815d6721b1ae1e3e390ae16313309da | [
"Apache-2.0"
] | 3 | 2021-11-21T21:05:44.000Z | 2021-12-27T20:44:08.000Z | Nebula-Storm/src/App.cpp | GalacticKittenSS/Nebula | 1620a1dab815d6721b1ae1e3e390ae16313309da | [
"Apache-2.0"
] | null | null | null | Nebula-Storm/src/App.cpp | GalacticKittenSS/Nebula | 1620a1dab815d6721b1ae1e3e390ae16313309da | [
"Apache-2.0"
] | null | null | null | #include <Nebula.h>
#include <Nebula_EntryPoint.h>
#include "EditorLayer.h"
namespace Nebula {
class NebulaStorm : public Application {
public:
NebulaStorm(ApplicationCommandLineArgs args): Application("Nebula Storm", args) {
PushLayer(new EditorLayer());
}
~NebulaStorm() { }
};
Application* CreateAppl... | 21 | 83 | 0.739348 | GalacticKittenSS |
eea5d071de1039c97fa41edb0cfaf94d2dc5f739 | 1,337 | cpp | C++ | effective-modern-cpp/item39_multi.cpp | miaogen123/daily-coding | 5d7f463ad1fee5e512aeb36206526b53b9a781f6 | [
"MIT"
] | 19 | 2018-07-06T06:53:56.000Z | 2022-01-01T16:36:26.000Z | effective-modern-cpp/item39_multi.cpp | miaogen123/daily-coding | 5d7f463ad1fee5e512aeb36206526b53b9a781f6 | [
"MIT"
] | null | null | null | effective-modern-cpp/item39_multi.cpp | miaogen123/daily-coding | 5d7f463ad1fee5e512aeb36206526b53b9a781f6 | [
"MIT"
] | 17 | 2019-03-27T23:18:43.000Z | 2021-01-18T11:17:57.000Z | #include<iostream>
#include<vector>
#include<windows.h>
#include<atomic>
#include<thread>
#include<chrono>
#include<future>
using namespace std;
using namespace std::literals;
//
//以及多个线程之间使用shared_future
std::promise<void> commu_channel;
std::atomic<bool> poll_flag(false);
std::condition_variable cv;
void f()
{
... | 19.1 | 69 | 0.673897 | miaogen123 |
eea86c32bd28db9d839add2d0cfb13ef7a607c1b | 928 | cpp | C++ | arduino/hellospiffs/src/main.cpp | ricklon/kombuchamanager | 5ab11322637294e49a4f85c8cc65bdd780af806c | [
"Apache-2.0"
] | null | null | null | arduino/hellospiffs/src/main.cpp | ricklon/kombuchamanager | 5ab11322637294e49a4f85c8cc65bdd780af806c | [
"Apache-2.0"
] | null | null | null | arduino/hellospiffs/src/main.cpp | ricklon/kombuchamanager | 5ab11322637294e49a4f85c8cc65bdd780af806c | [
"Apache-2.0"
] | null | null | null | /*
Hello World SPIFFS
based of DFRObot Tutorial
https://www.dfrobot.com/blog-1111.html
*/
#include <Arduino.h>
#include "SPIFFS.h"
void setup() {
Serial.begin(115200);
if(!SPIFFS.begin(true)){
Serial.println("An Error has occurred while mounting SPIFFS");
return;
}
File file = SPIF... | 17.509434 | 74 | 0.578664 | ricklon |
eeab701031cf569d33514c1ac4220f3a1ac2d52b | 3,118 | cpp | C++ | src/main.cpp | pawREP/Glacier-Prim-IO | 5c6a512656e526b5c5d859623c3670eaa802d88f | [
"MIT"
] | 12 | 2020-04-03T00:00:16.000Z | 2022-03-09T11:40:48.000Z | src/main.cpp | pawREP/Glacier-Prim-IO | 5c6a512656e526b5c5d859623c3670eaa802d88f | [
"MIT"
] | 2 | 2020-04-12T03:10:09.000Z | 2020-05-10T22:24:45.000Z | src/main.cpp | pawREP/Glacier-Prim-IO | 5c6a512656e526b5c5d859623c3670eaa802d88f | [
"MIT"
] | 4 | 2020-04-10T03:06:05.000Z | 2021-09-30T06:03:30.000Z | #include "mainwindow.h"
#include "GlacierFormats.h"
#include <iostream>
#include <QApplication>
#include <QtConcurrent/qtconcurrentrun.h>
void initAppStyle() {
qApp->setStyle(QStyleFactory::create("Fusion"));
QPalette darkPalette;
darkPalette.setColor(QPalette::Window, QColor(53, 53, 53));
darkPalett... | 39.468354 | 121 | 0.716806 | pawREP |
eead54f4bba87a27acef158e255573de02dfcf37 | 2,068 | cpp | C++ | QSettingsDialog/core/qsettingsentry.cpp | cybik/QSettingsDialog | 106ab053f042d57a89acec49ddb348aaf2aec14d | [
"BSD-3-Clause"
] | 9 | 2017-04-18T06:10:49.000Z | 2022-03-28T14:35:07.000Z | QSettingsDialog/core/qsettingsentry.cpp | cybik/QSettingsDialog | 106ab053f042d57a89acec49ddb348aaf2aec14d | [
"BSD-3-Clause"
] | null | null | null | QSettingsDialog/core/qsettingsentry.cpp | cybik/QSettingsDialog | 106ab053f042d57a89acec49ddb348aaf2aec14d | [
"BSD-3-Clause"
] | 8 | 2016-12-23T08:24:23.000Z | 2022-02-18T01:54:15.000Z | #include "qsettingsentry.h"
#include "qsettingsentry_p.h"
#include <QThread>
#define d this->d_ptr
QSettingsEntry::QSettingsEntry(int displaytype, QSettingsLoader *loader) :
d_ptr(new QSettingsEntryPrivate(displaytype, loader))
{}
QSettingsEntry::QSettingsEntry(int displaytype, QSettingsLoader *loader, const QStrin... | 20.07767 | 167 | 0.747582 | cybik |
eead7264b40b36f4dc87ea386eedb960a958322b | 1,700 | cpp | C++ | Practice/2018/2018.12.16/SP-DIVCNTK.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | 4 | 2017-10-31T14:25:18.000Z | 2018-06-10T16:10:17.000Z | Practice/2018/2018.12.16/SP-DIVCNTK.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | Practice/2018/2018.12.16/SP-DIVCNTK.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<algorithm>
#include<cmath>
using namespace std;
#define ull unsigned long long
#define mem(Arr,x) memset(Arr,x,sizeof(Arr))
#define RG register
#define IL inline
const int maxN=101000;
const int inf=2147483647;
ull n,K,srt;
bool notprim... | 21.794872 | 78 | 0.58 | SYCstudio |
eeae7fd238aeeb0ea28c1039413c0ecc1f76b3d7 | 507 | hpp | C++ | lib/wedges/wedge.hpp | llpm/llpm | 47000202b2bb5f09cf739b9094f948744f6d72d2 | [
"Apache-2.0"
] | 1 | 2021-11-28T14:56:21.000Z | 2021-11-28T14:56:21.000Z | lib/wedges/wedge.hpp | llpm/llpm | 47000202b2bb5f09cf739b9094f948744f6d72d2 | [
"Apache-2.0"
] | null | null | null | lib/wedges/wedge.hpp | llpm/llpm | 47000202b2bb5f09cf739b9094f948744f6d72d2 | [
"Apache-2.0"
] | null | null | null | #ifndef __LLPM_WEDGES_WEDGE_HPP__
#define __LLPM_WEDGES_WEDGE_HPP__
#include <util/files.hpp>
namespace llpm {
// Fwd defs
class Module;
class Wedge {
public:
virtual ~Wedge() { }
virtual void writeModule(FileSet& fileset, Module* mod) = 0;
};
/**
* Specifies a class which wraps a module in another, usua... | 16.9 | 64 | 0.712032 | llpm |
eeb0a2314fe1a6c64d24e5dee64c0a0f92499f25 | 17,794 | cpp | C++ | source/Lib/CommonLib/ContextModelling.cpp | theambient/hhi_next_software | a99e39bad84ccde327c81e62dc2aa83fa73a295a | [
"BSD-3-Clause"
] | null | null | null | source/Lib/CommonLib/ContextModelling.cpp | theambient/hhi_next_software | a99e39bad84ccde327c81e62dc2aa83fa73a295a | [
"BSD-3-Clause"
] | null | null | null | source/Lib/CommonLib/ContextModelling.cpp | theambient/hhi_next_software | a99e39bad84ccde327c81e62dc2aa83fa73a295a | [
"BSD-3-Clause"
] | null | null | null | /* The copyright in this software is being made available under the BSD
* License, included below. This software may be subject to other third party
* and contributor rights, including patent rights, and no such rights are
* granted under this license.
*
* Copyright (c) 2010-2017, ITU/ISO/IEC
* All rights reserve... | 37.940299 | 168 | 0.621052 | theambient |
eeb16b553883c3e711070e8293e2d53f7dae71d6 | 288 | hpp | C++ | src/PointwiseFunctions/AnalyticSolutions/NewtonianEuler/Solutions.hpp | macedo22/spectre | 97b2b7ae356cf86830258cb5f689f1191fdb6ddd | [
"MIT"
] | 117 | 2017-04-08T22:52:48.000Z | 2022-03-25T07:23:36.000Z | src/PointwiseFunctions/AnalyticSolutions/NewtonianEuler/Solutions.hpp | GitHimanshuc/spectre | 4de4033ba36547113293fe4dbdd77591485a4aee | [
"MIT"
] | 3,177 | 2017-04-07T21:10:18.000Z | 2022-03-31T23:55:59.000Z | src/PointwiseFunctions/AnalyticSolutions/NewtonianEuler/Solutions.hpp | geoffrey4444/spectre | 9350d61830b360e2d5b273fdd176dcc841dbefb0 | [
"MIT"
] | 85 | 2017-04-07T19:36:13.000Z | 2022-03-01T10:21:00.000Z | // Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
namespace NewtonianEuler {
/*!
* \ingroup AnalyticSolutionsGroup
* \brief Holds classes implementing a solution to the Newtonian Euler system.
*/
namespace Solutions {}
} // namespace NewtonianEuler
| 22.153846 | 78 | 0.756944 | macedo22 |
eeb1c0ae7d7d873e462453b4edc1f0044994411f | 643 | cpp | C++ | euler/euler05.cpp | rla/old-code | 06aa69c3adef8434992410687d466dc42779e57b | [
"Ruby",
"MIT"
] | 2 | 2015-11-08T10:01:47.000Z | 2020-03-10T00:00:58.000Z | euler/euler05.cpp | rla/old-code | 06aa69c3adef8434992410687d466dc42779e57b | [
"Ruby",
"MIT"
] | null | null | null | euler/euler05.cpp | rla/old-code | 06aa69c3adef8434992410687d466dc42779e57b | [
"Ruby",
"MIT"
] | null | null | null | #include <iostream>
#include <stdlib.h>
/*
Ülesanne:
leida 10001. algarv alustades 2'st
Lahendus:
proovime jõumeetodil
Raivo Laanemets
*/
using namespace std;
int main(int argc, char *argv[])
{
int arv=3, b=3, k=1;
bool algarv;
do {
b=3;
algarv=true;
while(b<=arv... | 16.921053 | 93 | 0.541213 | rla |
eeb2595c15e215af9d108f10e63e0a2a7aca8c70 | 8,829 | cpp | C++ | jerome/npc/factories/WeightingFactory.cpp | leuski-ict/jerome | 6141a21c50903e98a04c79899164e7d0e82fe1c2 | [
"Apache-2.0"
] | 3 | 2018-06-11T10:48:54.000Z | 2021-05-30T07:10:15.000Z | jerome/npc/factories/WeightingFactory.cpp | leuski-ict/jerome | 6141a21c50903e98a04c79899164e7d0e82fe1c2 | [
"Apache-2.0"
] | null | null | null | jerome/npc/factories/WeightingFactory.cpp | leuski-ict/jerome | 6141a21c50903e98a04c79899164e7d0e82fe1c2 | [
"Apache-2.0"
] | null | null | null | //
// WeightingFactory.cpp
//
// Created by Anton Leuski on 9/1/15.
// Copyright (c) 2015 Anton Leuski & ICT/USC. All rights reserved.
//
// This file is part of Jerome.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// Yo... | 35.175299 | 98 | 0.643901 | leuski-ict |
eeb657c35074beacab88d2f7c50b17d4655916c3 | 179 | c++ | C++ | extra/xftp/xftp-client/supercontrol_exit.c++ | maciek-27/Rgp | d28b5522e640e4c7b951f6861d97cbe52b0a35c9 | [
"MIT"
] | null | null | null | extra/xftp/xftp-client/supercontrol_exit.c++ | maciek-27/Rgp | d28b5522e640e4c7b951f6861d97cbe52b0a35c9 | [
"MIT"
] | null | null | null | extra/xftp/xftp-client/supercontrol_exit.c++ | maciek-27/Rgp | d28b5522e640e4c7b951f6861d97cbe52b0a35c9 | [
"MIT"
] | null | null | null | #include "supercontrol.h++"
#include <cstdlib>
#include "client.h++"
#include "superduperclient.h++"
void xftpclient::SuperControl::Exit (Tokenizer & optns)
{
app.Exit();
}
| 14.916667 | 57 | 0.687151 | maciek-27 |
eeb7d5bb63d4585f6319ba12baf25c3fbaf09b13 | 1,945 | cpp | C++ | aws-cpp-sdk-appflow/source/model/UpsolverS3OutputFormatConfig.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2021-12-06T20:36:35.000Z | 2021-12-06T20:36:35.000Z | aws-cpp-sdk-appflow/source/model/UpsolverS3OutputFormatConfig.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-appflow/source/model/UpsolverS3OutputFormatConfig.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-12-30T04:25:33.000Z | 2021-12-30T04:25:33.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/appflow/model/UpsolverS3OutputFormatConfig.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespac... | 21.373626 | 90 | 0.752699 | perfectrecall |
eeb8c16b1ee43e8392f2e79fdc2253b928372354 | 8,661 | cc | C++ | src/DAF/AE/AESender.cc | Miguel-A/RinaSim | 70ff28dc05e8250ca28c438290cf8c08f8a94a23 | [
"MIT"
] | 1 | 2016-02-24T19:31:04.000Z | 2016-02-24T19:31:04.000Z | src/DAF/AE/AESender.cc | Miguel-A/RinaSim | 70ff28dc05e8250ca28c438290cf8c08f8a94a23 | [
"MIT"
] | null | null | null | src/DAF/AE/AESender.cc | Miguel-A/RinaSim | 70ff28dc05e8250ca28c438290cf8c08f8a94a23 | [
"MIT"
] | null | null | null | // The MIT License (MIT)
//
// Copyright (c) 2014-2016 Brno University of Technology, PRISTINE 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 wit... | 29.161616 | 92 | 0.583882 | Miguel-A |
eeb910648792ca5927ca049160a7f2e931de0bfc | 3,374 | cpp | C++ | src/analyze/anaylzeMZ.cpp | Alex4386/pe-parser | 45cf63e923adc66e914f913c0094ad3615e126c5 | [
"MIT-0"
] | 5 | 2019-08-20T14:04:32.000Z | 2020-10-06T10:32:52.000Z | src/analyze/anaylzeMZ.cpp | Alex4386/pe-parser | 45cf63e923adc66e914f913c0094ad3615e126c5 | [
"MIT-0"
] | 1 | 2019-06-11T03:35:13.000Z | 2019-06-11T06:31:13.000Z | src/analyze/anaylzeMZ.cpp | Alex4386/pe-parser | 45cf63e923adc66e914f913c0094ad3615e126c5 | [
"MIT-0"
] | 1 | 2019-05-27T21:21:32.000Z | 2019-05-27T21:21:32.000Z | #include "../common/common.hpp"
#include "../parser/parser.hpp"
#include "../common/options.hpp"
#include "analyze.hpp"
int analyzeMZ(MZParser mzParser, CommandLineOptions options) {
MZHeader parsedHeader = mzParser.mzHeader;
if (!options.outputAsJson) {
analyzeMZTerminal(parsedHeader);
} else {
analyze... | 52.71875 | 104 | 0.633669 | Alex4386 |
eebd14c6097aa7f5e7970c3f16d4346041f9694d | 5,459 | cpp | C++ | src_lib/csutil.cpp | serjinio/thesis_ana | 633a61dee56cf2cf4dcb67997ac87338537fb578 | [
"MIT"
] | null | null | null | src_lib/csutil.cpp | serjinio/thesis_ana | 633a61dee56cf2cf4dcb67997ac87338537fb578 | [
"MIT"
] | null | null | null | src_lib/csutil.cpp | serjinio/thesis_ana | 633a61dee56cf2cf4dcb67997ac87338537fb578 | [
"MIT"
] | null | null | null |
#include <csutil.hpp>
double
s13::ana::lab2cm_solid_angle_factor(double proton_cm_theta_rad,
DatasetType ds_type) {
const double p_he4_gamma_cm = 1.12654467394258;
const double p_he6_gamma_cm = 1.14966481938141;
double gamma = p_he4_gamma_cm;
if (ds_type == DatasetType::... | 38.174825 | 82 | 0.680528 | serjinio |
eebe79c6c6f524e7f66284e31053c5b8659a7fe1 | 8,998 | cpp | C++ | SJone/firmware/lib/L0_LowLevel/source/lpc_sys.cpp | jpan127/RJD-MP3 | 8659a12e46021882cce6202befa59d88afe4d7c2 | [
"MIT"
] | null | null | null | SJone/firmware/lib/L0_LowLevel/source/lpc_sys.cpp | jpan127/RJD-MP3 | 8659a12e46021882cce6202befa59d88afe4d7c2 | [
"MIT"
] | null | null | null | SJone/firmware/lib/L0_LowLevel/source/lpc_sys.cpp | jpan127/RJD-MP3 | 8659a12e46021882cce6202befa59d88afe4d7c2 | [
"MIT"
] | null | null | null | /*
* SocialLedge.com - Copyright (C) 2013
*
* This file is part of free software framework for embedded processors.
* You can use it and/or distribute it as long as this copyright header
* remains unmodified. The code is free for personal use and requires
* permission to use in a commer... | 37.491667 | 112 | 0.660369 | jpan127 |
eec0066e8515af438eb866eed0d8668214158c7c | 4,428 | cpp | C++ | sp/src/game/server/ai_condition.cpp | joshmartel/source-sdk-2013 | 524e87f708d6c30360613b1f65ee174deafa20f4 | [
"Unlicense"
] | 2,268 | 2015-01-01T19:31:56.000Z | 2022-03-31T20:15:31.000Z | sp/src/game/server/ai_condition.cpp | joshmartel/source-sdk-2013 | 524e87f708d6c30360613b1f65ee174deafa20f4 | [
"Unlicense"
] | 241 | 2015-01-01T15:26:14.000Z | 2022-03-31T22:09:59.000Z | sp/src/game/server/ai_condition.cpp | joshmartel/source-sdk-2013 | 524e87f708d6c30360613b1f65ee174deafa20f4 | [
"Unlicense"
] | 2,174 | 2015-01-01T08:18:05.000Z | 2022-03-31T10:43:59.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#include "cbase.h"
#include "stringregistry.h"
#include "ai_basenpc.h"
#include "ai_condition.h"
// memdbgon must be the last include file i... | 41.773585 | 89 | 0.746838 | joshmartel |
eec0dbdd299e7bcb80be5939c1bfe15d0e5b89db | 323 | cpp | C++ | examples/example_bindings.cpp | avilchess/carma | 32857b2ab70a0338d15c81fdaf30945ba238a32e | [
"Apache-2.0"
] | null | null | null | examples/example_bindings.cpp | avilchess/carma | 32857b2ab70a0338d15c81fdaf30945ba238a32e | [
"Apache-2.0"
] | null | null | null | examples/example_bindings.cpp | avilchess/carma | 32857b2ab70a0338d15c81fdaf30945ba238a32e | [
"Apache-2.0"
] | null | null | null | #include <pybind11/pybind11.h>
// include numpy header for usage of array_t
#include <pybind11/numpy.h>
namespace py = pybind11;
#include "manual_conversion.h"
#include "automatic_conversion.h"
PYBIND11_MODULE(carma_examples, m) {
bind_manual_example(m);
bind_update_example(m);
bind_automatic_example(m);... | 21.533333 | 44 | 0.758514 | avilchess |
eec2798f36b1875b318b67e27356e2438fc7d94c | 2,317 | cpp | C++ | src/game_components/Input.cpp | sgol13/boulder-dash | 140b7eac3c9f820e84abda07164d057c22540db9 | [
"MIT"
] | 5 | 2021-11-28T10:13:12.000Z | 2021-12-12T14:51:36.000Z | src/game_components/Input.cpp | sgol13/boulder-dash | 140b7eac3c9f820e84abda07164d057c22540db9 | [
"MIT"
] | null | null | null | src/game_components/Input.cpp | sgol13/boulder-dash | 140b7eac3c9f820e84abda07164d057c22540db9 | [
"MIT"
] | null | null | null | // Szymon Golebiowski
// Boulder Dash
#include "boulder-dash/game_components/Input.hpp"
bd::Input::Input(sf::RenderWindow &_window) : Engine(_window) {}
void bd::Input::processInputOperations() {
handleEvents();
if (!pause_game_) {
handleControl();
}
}
void bd::Input::handleEvents() {
sf:... | 22.495146 | 82 | 0.547259 | sgol13 |
eec54846508065fb7c8e441810362307fc52fdb9 | 60 | hpp | C++ | src/boost_geometry_multi_algorithms_intersection.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_geometry_multi_algorithms_intersection.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_geometry_multi_algorithms_intersection.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/geometry/multi/algorithms/intersection.hpp>
| 30 | 59 | 0.833333 | miathedev |
eec6a147cbfd28457442e9ac797b316555806a55 | 10,853 | cpp | C++ | src/lib/pubkey/pk_algs.cpp | clayne/botan | 1f16adea08c4c9bf3fb0fbf699d284cb48150898 | [
"BSD-2-Clause"
] | 2 | 2021-12-24T03:02:36.000Z | 2021-12-24T03:02:59.000Z | src/lib/pubkey/pk_algs.cpp | clayne/botan | 1f16adea08c4c9bf3fb0fbf699d284cb48150898 | [
"BSD-2-Clause"
] | 2 | 2021-12-22T15:41:22.000Z | 2021-12-22T15:42:20.000Z | src/lib/pubkey/pk_algs.cpp | clayne/botan | 1f16adea08c4c9bf3fb0fbf699d284cb48150898 | [
"BSD-2-Clause"
] | null | null | null | /*
* PK Key
* (C) 1999-2010,2016 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include <botan/pk_algs.h>
#include <botan/internal/parsing.h>
#if defined(BOTAN_HAS_RSA)
#include <botan/rsa.h>
#endif
#if defined(BOTAN_HAS_DSA)
#include <botan/dsa.h>
#endif
#if defined(BOT... | 26.088942 | 121 | 0.685433 | clayne |
eec6a2f21e18b45dcda30a71b4f26f955712f661 | 2,591 | cc | C++ | test/core/gprpp/examine_stack_test.cc | thiagoss/grpc | 3eb743ba4c9e38941aeac3a54420628b46335d20 | [
"Apache-2.0"
] | 3 | 2020-11-30T15:35:37.000Z | 2022-01-06T14:17:18.000Z | test/core/gprpp/examine_stack_test.cc | thiagoss/grpc | 3eb743ba4c9e38941aeac3a54420628b46335d20 | [
"Apache-2.0"
] | 54 | 2020-06-23T17:34:04.000Z | 2022-03-31T02:04:06.000Z | test/core/gprpp/examine_stack_test.cc | thiagoss/grpc | 3eb743ba4c9e38941aeac3a54420628b46335d20 | [
"Apache-2.0"
] | 12 | 2020-07-14T23:59:57.000Z | 2022-03-22T09:59:18.000Z | /*
*
* Copyright 2020 gRPC 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... | 30.482353 | 76 | 0.732536 | thiagoss |
eec6c98ef1163653d659d69f1693ed732156245e | 1,307 | cpp | C++ | platform/eSDK_LogAPI_V2.1.10/log4cpp/StringQueueAppender.cpp | chewaiwai/huaweicloud-sdk-c-obs | fbcd3dadd910c22af3a91aeb73ca0fee94d759fb | [
"Apache-2.0"
] | 22 | 2019-06-13T01:16:44.000Z | 2022-03-29T02:42:39.000Z | platform/eSDK_LogAPI_V2.1.10/log4cpp/StringQueueAppender.cpp | chewaiwai/huaweicloud-sdk-c-obs | fbcd3dadd910c22af3a91aeb73ca0fee94d759fb | [
"Apache-2.0"
] | 26 | 2019-09-20T06:46:05.000Z | 2022-03-11T08:07:14.000Z | platform/eSDK_LogAPI_V2.1.10/log4cpp/StringQueueAppender.cpp | chewaiwai/huaweicloud-sdk-c-obs | fbcd3dadd910c22af3a91aeb73ca0fee94d759fb | [
"Apache-2.0"
] | 14 | 2019-07-15T06:42:39.000Z | 2022-02-15T10:32:28.000Z | /*
* StringQueueAppender.cpp
*
* Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
* Copyright 2000, Bastiaan Bakker. All rights reserved.
*
* See the COPYING file for the terms of usage and distribution.
*/
#include "PortabilityImpl.hh"
#include "log4cpp/StringQueueAppender.hh"
name... | 22.534483 | 79 | 0.61974 | chewaiwai |
eec7a96a383fe7a664060d714dd948be14295b33 | 8,033 | cpp | C++ | src/qt/qtbase/src/corelib/doc/snippets/code/doc_src_qiterator.cpp | viewdy/phantomjs | eddb0db1d253fd0c546060a4555554c8ee08c13c | [
"BSD-3-Clause"
] | 1 | 2015-01-21T01:48:04.000Z | 2015-01-21T01:48:04.000Z | src/qt/qtbase/src/corelib/doc/snippets/code/doc_src_qiterator.cpp | mrampersad/phantomjs | dca6f77a36699eb4e1c46f7600cca618f01b0ac3 | [
"BSD-3-Clause"
] | null | null | null | src/qt/qtbase/src/corelib/doc/snippets/code/doc_src_qiterator.cpp | mrampersad/phantomjs | dca6f77a36699eb4e1c46f7600cca618f01b0ac3 | [
"BSD-3-Clause"
] | 1 | 2017-03-19T13:03:23.000Z | 2017-03-19T13:03:23.000Z | /****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the documentation of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** You may use this file under the terms ... | 19.08076 | 77 | 0.569775 | viewdy |
eecb0ad8d95d2e9dc558a674b6ca49095dba1708 | 3,522 | cpp | C++ | codeforces/B - Cubes/Wrong answer on test 5 (2).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/B - Cubes/Wrong answer on test 5 (2).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/B - Cubes/Wrong answer on test 5 (2).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Oct/03/2020 22:17
* solution_verdict: Wrong answer on test 5 language: GNU C++14
* run... | 27.515625 | 111 | 0.463941 | kzvd4729 |
eed2e403c7eea1cdb1eb76858afbe48226891011 | 1,534 | cpp | C++ | HackerRank Problems/Balanced Brackets/soultion.cpp | Kankona-C/Coding-Questions | 6416fb79ba5c499c97581258b287ccfab854af7a | [
"MIT"
] | 14 | 2020-10-06T07:52:25.000Z | 2021-01-22T15:01:03.000Z | HackerRank Problems/Balanced Brackets/soultion.cpp | Kankona-C/Coding-Questions | 6416fb79ba5c499c97581258b287ccfab854af7a | [
"MIT"
] | 18 | 2020-10-06T10:24:55.000Z | 2020-10-30T20:10:58.000Z | HackerRank Problems/Balanced Brackets/soultion.cpp | Kankona-C/Coding-Questions | 6416fb79ba5c499c97581258b287ccfab854af7a | [
"MIT"
] | 40 | 2020-10-06T09:54:10.000Z | 2021-02-20T19:20:09.000Z | // in this function i am checking if the brackets are balanced or not..if they are opeiing bracket i am pushing them in stack else if they are closing bracket i am poping top most element . at last if stack is empty print yes else no
#include <bits/stdc++.h>
using namespace std;
// isBalaced function to check
// Co... | 25.566667 | 233 | 0.508475 | Kankona-C |
eed3e7a5854fe72b4ef643886a99daa320c2e727 | 560 | cpp | C++ | Online Judges/UVA/12650/1833886_AC_12ms_0kB.cpp | moni-roy/COPC | f5918304815413c18574ef4af2e23a604bd9f704 | [
"MIT"
] | 4 | 2017-02-20T17:41:14.000Z | 2019-07-15T14:15:34.000Z | Online Judges/UVA/12650/1833886_AC_12ms_0kB.cpp | moni-roy/COPC | f5918304815413c18574ef4af2e23a604bd9f704 | [
"MIT"
] | null | null | null | Online Judges/UVA/12650/1833886_AC_12ms_0kB.cpp | moni-roy/COPC | f5918304815413c18574ef4af2e23a604bd9f704 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#define ld double
#define ll long long int
#define scldd(x,y) scanf("%lf%lf",&x,&y)
#define scld(x) scanf("%lf",&x)
#define scll(x,y) scanf("%lld%lld",&x,&y)
#define scl(x) scanf("%lld",&x)
using namespace std;
int main()
{
ll a,b,ar;
while(scll(a,b)==2)
{
map<ll,ll>mk;
for(ll i=1;i<=b... | 15.135135 | 41 | 0.494643 | moni-roy |
eed5a0939b1523d408d7065ff83dc28ac8038ea4 | 1,132 | hpp | C++ | Source/Gui/MainWindow.hpp | alvinahmadov/Dixter | 6f98f1e84192e1e43eee409bdee6b3dac75d6443 | [
"MIT"
] | 4 | 2018-12-06T01:20:50.000Z | 2019-08-04T10:19:23.000Z | Source/Gui/MainWindow.hpp | alvinahmadov/Dixter | 6f98f1e84192e1e43eee409bdee6b3dac75d6443 | [
"MIT"
] | null | null | null | Source/Gui/MainWindow.hpp | alvinahmadov/Dixter | 6f98f1e84192e1e43eee409bdee6b3dac75d6443 | [
"MIT"
] | null | null | null | /**
* Copyright (C) 2015-2019
* Author Alvin Ahmadov <alvin.dev.ahmadov@gmail.com>
*
* This file is part of Dixter Project
* License-Identifier: MIT License
* See README.md for more information.
*/
#pragma once
#include "WindowBase.hpp"
namespace Dixter
{
namespace Gui
{
class Panel;
class Transl... | 18.557377 | 101 | 0.674028 | alvinahmadov |
eed6f642bef3262feb6223e8b7a37f06093b6549 | 6,612 | cpp | C++ | tests/BufferPipeTest.cpp | Manuvr/ManuvrOS | e3a812c9b609ad69670ff2f8050a07bd423ebc78 | [
"Apache-2.0"
] | 5 | 2015-03-26T22:58:58.000Z | 2021-06-15T05:36:57.000Z | tests/BufferPipeTest.cpp | Manuvr/ManuvrOS | e3a812c9b609ad69670ff2f8050a07bd423ebc78 | [
"Apache-2.0"
] | 2 | 2016-09-26T09:25:58.000Z | 2017-08-03T05:27:24.000Z | tests/BufferPipeTest.cpp | Manuvr/ManuvrOS | e3a812c9b609ad69670ff2f8050a07bd423ebc78 | [
"Apache-2.0"
] | 2 | 2016-04-29T07:43:32.000Z | 2020-02-07T06:43:01.000Z | #include <cstdio>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <ctype.h>
#include <unistd.h>
#include <fstream>
#include <iostream>
#include <Platform/Platform.h>
#include "DataStructures/BufferPipe.h"
#include "Transports/BufferPipes/XportBridge/XportBridge.h"
class DummyTransport : public... | 29 | 101 | 0.624773 | Manuvr |
eed94336a762afe8f1e2cf259bceaf86d58c5ecf | 4,667 | hpp | C++ | libs/fnd/serialization/include/bksge/fnd/serialization/detail/load_dispatch.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/fnd/serialization/include/bksge/fnd/serialization/detail/load_dispatch.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/fnd/serialization/include/bksge/fnd/serialization/detail/load_dispatch.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file load_dispatch.hpp
*
* @brief load_dispatch の定義
*
* @author myoukaku
*/
#ifndef BKSGE_FND_SERIALIZATION_DETAIL_LOAD_DISPATCH_HPP
#define BKSGE_FND_SERIALIZATION_DETAIL_LOAD_DISPATCH_HPP
#include <bksge/fnd/serialization/detail/serialize_dispatch.hpp>
#include <bksge/fnd/serialization/ver... | 21.310502 | 100 | 0.664453 | myoukaku |
eed948a7eee4b293e0993f3301ae385fc5b23211 | 1,637 | cc | C++ | lib/src/resource.cc | puppetlabs/libral | 8f18f1022ef3676a3df6d13d6b483d2100c5bc97 | [
"Apache-2.0"
] | 68 | 2017-01-06T18:32:02.000Z | 2019-03-16T01:56:41.000Z | lib/src/resource.cc | puppetlabs-toy-chest/libral | 8f18f1022ef3676a3df6d13d6b483d2100c5bc97 | [
"Apache-2.0"
] | 41 | 2017-01-19T19:42:23.000Z | 2017-11-08T21:38:03.000Z | lib/src/resource.cc | puppetlabs-toy-chest/libral | 8f18f1022ef3676a3df6d13d6b483d2100c5bc97 | [
"Apache-2.0"
] | 15 | 2017-01-08T02:45:56.000Z | 2021-03-24T11:18:09.000Z | #include <libral/resource.hpp>
namespace libral {
bool resource::is_name(const std::string& key) const {
// This hardcodes namevar for now
return key == "name";
}
const value& resource::operator[](const std::string& key) const {
if (is_name(key)) {
throw std::invalid_argument {
"The n... | 25.184615 | 75 | 0.611484 | puppetlabs |
eed989a805c02eed03d7c14c8306bf81ff2b10c3 | 9,433 | hh | C++ | src/USRP.hh | drexelwireless/dragonradio | 885abd68d56af709e7a53737352641908005c45b | [
"MIT"
] | 8 | 2020-12-05T20:30:54.000Z | 2022-01-22T13:32:14.000Z | src/USRP.hh | drexelwireless/dragonradio | 885abd68d56af709e7a53737352641908005c45b | [
"MIT"
] | 3 | 2020-10-28T22:15:27.000Z | 2021-01-27T14:43:41.000Z | src/USRP.hh | drexelwireless/dragonradio | 885abd68d56af709e7a53737352641908005c45b | [
"MIT"
] | null | null | null | // Copyright 2018-2020 Drexel University
// Author: Geoffrey Mainland <mainland@drexel.edu>
#ifndef USRP_H_
#define USRP_H_
#include <atomic>
#include <deque>
#include <string>
#include <thread>
#include <uhd/usrp/multi_usrp.hpp>
#include "logging.hh"
#include "Clock.hh"
#include "IQBuffer.hh"
/** @brief A USRP. *... | 26.202778 | 81 | 0.618573 | drexelwireless |
eedbd43579d0656d45f4c8f578229fc1932df769 | 8,053 | cc | C++ | usr_local/src/festival/src/modules/hts_engine/fest2hts_engine.cc | parnurzeal/tts-tutorial | db11aed2adc5101cc6d06d1138f74d5f5afe666f | [
"Apache-2.0"
] | 30 | 2016-09-23T06:38:08.000Z | 2022-02-14T02:02:14.000Z | usr_local/src/festival/src/modules/hts_engine/fest2hts_engine.cc | xbsdsongnan/docker-festival | 1e1c50c8bbd92d47ecb7edc7a464aadad5b9a0d6 | [
"Apache-2.0"
] | 3 | 2020-06-05T18:09:02.000Z | 2021-06-10T20:06:02.000Z | usr_local/src/festival/src/modules/hts_engine/fest2hts_engine.cc | xbsdsongnan/docker-festival | 1e1c50c8bbd92d47ecb7edc7a464aadad5b9a0d6 | [
"Apache-2.0"
] | 13 | 2016-11-06T05:52:23.000Z | 2020-08-26T18:38:00.000Z | /* ----------------------------------------------------------------- */
/* The HMM-Based Speech Synthesis Module for Festival */
/* "festopt_hts_engine" developed by HTS Working Group */
/* http://hts-engine.sourceforge.net/ */
/* -----------------------------... | 36.438914 | 118 | 0.556935 | parnurzeal |
eedc7e0b05041c3e743fb143b219f6aaa77bc50c | 9,215 | cpp | C++ | DLL/RenderingHUD/rendering-hud.cpp | ClementDreptin/ModdingResources | e5e52285493bd138daf5db373753aaffccf1227a | [
"MIT"
] | null | null | null | DLL/RenderingHUD/rendering-hud.cpp | ClementDreptin/ModdingResources | e5e52285493bd138daf5db373753aaffccf1227a | [
"MIT"
] | null | null | null | DLL/RenderingHUD/rendering-hud.cpp | ClementDreptin/ModdingResources | e5e52285493bd138daf5db373753aaffccf1227a | [
"MIT"
] | null | null | null | #include "pch.h"
#include "..\Utils\Utils.h"
// HUD API structs and enums
enum he_type_t : int
{
HE_TYPE_FREE,
HE_TYPE_TEXT,
HE_TYPE_VALUE,
HE_TYPE_PLAYERNAME,
HE_TYPE_MATERIAL,
HE_TYPE_MAPNAME,
HE_TYPE_GAMETYPE,
HE_TYPE_TIMER_DOWN,
HE_TYPE_TIMER_UP,
HE_TYPE_TIMER_STATIC,
... | 29.347134 | 188 | 0.644276 | ClementDreptin |
4abe4ae483c2e1c7511f98865a754505aa151c7c | 5,956 | cpp | C++ | tracker_tests/src/epnp_test.cpp | clickcao/fato | d2de665e83f82ea1094f488102aba37a8cdd53bb | [
"BSD-3-Clause"
] | 1 | 2018-07-31T04:11:32.000Z | 2018-07-31T04:11:32.000Z | tracker_tests/src/epnp_test.cpp | clickcao/fato | d2de665e83f82ea1094f488102aba37a8cdd53bb | [
"BSD-3-Clause"
] | null | null | null | tracker_tests/src/epnp_test.cpp | clickcao/fato | d2de665e83f82ea1094f488102aba37a8cdd53bb | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2009, V. Lepetit, EPFL
// 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 conditio... | 31.347368 | 102 | 0.642377 | clickcao |
4ac02aae273428114c62b071a2417e29c378c34b | 991 | hpp | C++ | src/mlpack/core/math/log_add.hpp | tomjpsun/mlpack | 39b9a852c58b648ddb9b87a3d87aa3db2bacbf0a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2019-11-07T14:34:37.000Z | 2019-11-07T14:34:37.000Z | src/mlpack/core/math/log_add.hpp | tomjpsun/mlpack | 39b9a852c58b648ddb9b87a3d87aa3db2bacbf0a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2020-04-10T17:39:50.000Z | 2020-04-11T14:56:25.000Z | src/mlpack/core/math/log_add.hpp | tomjpsun/mlpack | 39b9a852c58b648ddb9b87a3d87aa3db2bacbf0a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | /**
* @file log_add.hpp
* @author Arash Abghari
*
* Functions for logarithmic addition.
*
* mlpack is free software; you may redistribute it and/or modify it under the
* terms of the 3-clause BSD license. You should have received a copy of the
* 3-clause BSD license along with mlpack. If not, see
* http://ww... | 21.543478 | 78 | 0.699294 | tomjpsun |
4ac3d42e885530bf12f77447317774694bda50ef | 3,855 | cpp | C++ | android/android/opengl/appkit/GLTextureStreamHost.cpp | naver/androidpp | d87b9c7e356872514a92bacd63ce18133fba5a18 | [
"BSD-3-Clause"
] | 5 | 2016-12-07T10:51:48.000Z | 2018-11-26T07:21:10.000Z | android/android/opengl/appkit/GLTextureStreamHost.cpp | naver/androidpp | d87b9c7e356872514a92bacd63ce18133fba5a18 | [
"BSD-3-Clause"
] | null | null | null | android/android/opengl/appkit/GLTextureStreamHost.cpp | naver/androidpp | d87b9c7e356872514a92bacd63ce18133fba5a18 | [
"BSD-3-Clause"
] | 5 | 2016-12-06T13:06:20.000Z | 2021-07-24T03:33:35.000Z | /*
* Copyright (C) 2016 Naver Corp. 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 ... | 32.394958 | 93 | 0.724514 | naver |
4ac445f3891caf4866ab3d9f4575bd66e461d1c1 | 17,738 | cpp | C++ | sample/src/VK/Sources/SssrSample.cpp | TheozZhh79/FidelityFX-SSSR | d9bfe98d43782c758e3c28b90754be209471dd96 | [
"MIT"
] | 126 | 2020-05-11T16:57:41.000Z | 2022-03-29T11:43:53.000Z | sample/src/VK/Sources/SssrSample.cpp | TheozZhh79/FidelityFX-SSSR | d9bfe98d43782c758e3c28b90754be209471dd96 | [
"MIT"
] | 1 | 2022-01-28T09:38:08.000Z | 2022-01-29T02:27:58.000Z | sample/src/VK/Sources/SssrSample.cpp | TheozZhh79/FidelityFX-SSSR | d9bfe98d43782c758e3c28b90754be209471dd96 | [
"MIT"
] | 14 | 2020-05-20T06:15:12.000Z | 2022-02-25T21:17:49.000Z | /**********************************************************************
Copyright (c) 2020 Advanced Micro Devices, Inc. All rights reserved.
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... | 31.064799 | 152 | 0.648664 | TheozZhh79 |
4ac53eaffb31abb49c585970a59e160b847f94d3 | 10,051 | cpp | C++ | logdevice/common/test/benchmarks/SequencerBatchingBenchmark.cpp | majra20/LogDevice | dea0df7991120d567354d7a29d832b0e10be7477 | [
"BSD-3-Clause"
] | 1 | 2019-12-18T09:07:45.000Z | 2019-12-18T09:07:45.000Z | logdevice/common/test/benchmarks/SequencerBatchingBenchmark.cpp | majra20/LogDevice | dea0df7991120d567354d7a29d832b0e10be7477 | [
"BSD-3-Clause"
] | null | null | null | logdevice/common/test/benchmarks/SequencerBatchingBenchmark.cpp | majra20/LogDevice | dea0df7991120d567354d7a29d832b0e10be7477 | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright (c) 2017-present, Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <atomic>
#include <chrono>
#include <thread>
#include <vector>
#include <foll... | 31.117647 | 80 | 0.662521 | majra20 |
4ac771e3679ec0f59d3c254c288ae677afb0ab4b | 1,345 | hpp | C++ | routing/checkpoints.hpp | Barysman/omim | 469632c879027ec38278ebda699415c28dbd79e0 | [
"Apache-2.0"
] | 1 | 2021-07-02T08:45:02.000Z | 2021-07-02T08:45:02.000Z | routing/checkpoints.hpp | Barysman/omim | 469632c879027ec38278ebda699415c28dbd79e0 | [
"Apache-2.0"
] | 1 | 2020-06-15T15:16:23.000Z | 2020-06-15T15:59:19.000Z | routing/checkpoints.hpp | maksimandrianov/omim | cbc5a80d09d585afbda01e471887f63b9d3ab0c2 | [
"Apache-2.0"
] | 1 | 2018-10-01T10:27:21.000Z | 2018-10-01T10:27:21.000Z | #pragma once
#include "geometry/point2d.hpp"
#include <string>
#include <utility>
#include <vector>
namespace routing
{
class Checkpoints final
{
public:
Checkpoints() = default;
Checkpoints(m2::PointD const & start, m2::PointD const & finish) : m_points({start, finish}) {}
explicit Checkpoints(std::vector<m2:... | 31.27907 | 97 | 0.705576 | Barysman |
4ac7c3c55c26329ff2bdc88a48551c5760a2c3c6 | 54 | cpp | C++ | templates/src/bar.cpp | mcqueen256/mql4dllft | 2b918da25efa8056eca967e4d40d07487f030ee8 | [
"MIT"
] | null | null | null | templates/src/bar.cpp | mcqueen256/mql4dllft | 2b918da25efa8056eca967e4d40d07487f030ee8 | [
"MIT"
] | 11 | 2017-07-11T22:26:44.000Z | 2017-07-20T04:14:54.000Z | templates/src/bar.cpp | mcqueen256/mql4dllft | 2b918da25efa8056eca967e4d40d07487f030ee8 | [
"MIT"
] | null | null | null | #include "Bar.hpp"
Bar::Bar() {
}
Bar::~Bar() {
} | 6 | 18 | 0.462963 | mcqueen256 |
4acab282d778b0dc51a38c4f29fc67826ab297e7 | 739 | cpp | C++ | Semester 2-2/CSE 2202 Numerical Method Lab/Lab 01/BisectionMethod.cpp | AKC23/AUST | 102fb96d79b45c826fb4eb467ba6a7798e1ab4f4 | [
"MIT"
] | null | null | null | Semester 2-2/CSE 2202 Numerical Method Lab/Lab 01/BisectionMethod.cpp | AKC23/AUST | 102fb96d79b45c826fb4eb467ba6a7798e1ab4f4 | [
"MIT"
] | null | null | null | Semester 2-2/CSE 2202 Numerical Method Lab/Lab 01/BisectionMethod.cpp | AKC23/AUST | 102fb96d79b45c826fb4eb467ba6a7798e1ab4f4 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <bits/stdc++.h>
#include <math.h>
using namespace std;
double f(float x)
{
// return (x*x*x - x -1);
return (tan(x)+x);
}
int main()
{
float a = 2, b = 2.1;
float root;
float f0, f1, f2;
if (f(a) * f(b) > 0)
{
printf("wrong gues... | 16.065217 | 37 | 0.345061 | AKC23 |
4acae05e90a409aabe41ac3c578007667de6f69d | 1,030 | cc | C++ | labs/evthrift/thrift_server.cc | sandeepsgangwar/evpp | 38f0e3e775072a268060a36b6c871a8475ed90bc | [
"BSD-3-Clause"
] | null | null | null | labs/evthrift/thrift_server.cc | sandeepsgangwar/evpp | 38f0e3e775072a268060a36b6c871a8475ed90bc | [
"BSD-3-Clause"
] | null | null | null | labs/evthrift/thrift_server.cc | sandeepsgangwar/evpp | 38f0e3e775072a268060a36b6c871a8475ed90bc | [
"BSD-3-Clause"
] | 3 | 2019-04-24T08:51:27.000Z | 2019-09-04T06:40:00.000Z | #include "thrift_server.h"
namespace evthrift {
ThriftServer::~ThriftServer() {}
void ThriftServer::serve() {
server_.SetMessageCallback(std::bind(&ThriftServer::OnMessage,
this, std::placeholders::_1,
std::placeholders::_2));
... | 26.410256 | 88 | 0.605825 | sandeepsgangwar |
4acb11d69ee5e8f334f47fafde82ab5c91ede3e0 | 7,835 | cc | C++ | packager/media/base/http_key_fetcher.cc | koln67/shaka-packager | 5b9fd409a5de502e8af2e46ee12840bd2226874d | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2020-05-13T17:47:27.000Z | 2021-06-17T15:00:16.000Z | packager/media/base/http_key_fetcher.cc | koln67/shaka-packager | 5b9fd409a5de502e8af2e46ee12840bd2226874d | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2022-02-10T12:40:20.000Z | 2022-02-10T12:40:20.000Z | packager/media/base/http_key_fetcher.cc | koln67/shaka-packager | 5b9fd409a5de502e8af2e46ee12840bd2226874d | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2022-01-29T15:55:14.000Z | 2022-01-29T15:55:14.000Z | // Copyright 2014 Google Inc. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include "packager/media/base/http_key_fetcher.h"
#include <curl/curl.h>
#include <gflags/gflags.... | 32.110656 | 84 | 0.66739 | koln67 |
4acb9e0c0b5a1b2e0b18274d5acb0f2cc60c828e | 24,090 | cpp | C++ | Products/DiffWorks/diffworks.cpp | TrevorDArcyEvans/DivingMagpieSoftware | 7ffcfef653b110e514d5db735d11be0aae9953ec | [
"MIT"
] | 1 | 2021-05-27T10:27:25.000Z | 2021-05-27T10:27:25.000Z | Products/DiffWorks/diffworks.cpp | TrevorDArcyEvans/Diving-Magpie-Software | 7ffcfef653b110e514d5db735d11be0aae9953ec | [
"MIT"
] | null | null | null | Products/DiffWorks/diffworks.cpp | TrevorDArcyEvans/Diving-Magpie-Software | 7ffcfef653b110e514d5db735d11be0aae9953ec | [
"MIT"
] | null | null | null | // -------------------------------------------------------------------
//
// Filename: DiffWorks.cpp
// Description: This defines the interface to SolidWorks and the
// initialization routines for the DLL.
//
// -------------------------------------------------------------------
// pre-compiled head... | 32.379032 | 172 | 0.52611 | TrevorDArcyEvans |
4acde5994af6af142394ab93acf9d67b6c2e8c3f | 1,986 | cc | C++ | cartographer/common/rate_timer_test.cc | linghusmile/Cartographer_- | 28be85c1af353efae802cebb299b8d2486fbd800 | [
"Apache-2.0"
] | 36 | 2017-01-17T10:19:30.000Z | 2022-02-13T09:11:51.000Z | cartographer/common/rate_timer_test.cc | linghusmile/Cartographer_- | 28be85c1af353efae802cebb299b8d2486fbd800 | [
"Apache-2.0"
] | 2 | 2019-06-26T06:01:49.000Z | 2019-08-02T04:27:27.000Z | cartographer/common/rate_timer_test.cc | linghusmile/Cartographer_- | 28be85c1af353efae802cebb299b8d2486fbd800 | [
"Apache-2.0"
] | 37 | 2016-10-09T01:52:45.000Z | 2022-01-22T10:51:54.000Z | /*
* Copyright 2016 The Cartographer 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... | 31.03125 | 75 | 0.712487 | linghusmile |
4acde62f9f0434f5e9bc4a846c5e84444d5e3efb | 1,210 | cpp | C++ | Difficulty 900/Mocha_and_Red_and_Blue.cpp | desmondweh29/A-Problem-A-Day | 135b21d21d74e6c716c9f7e36e8fa3a216f02727 | [
"MIT"
] | null | null | null | Difficulty 900/Mocha_and_Red_and_Blue.cpp | desmondweh29/A-Problem-A-Day | 135b21d21d74e6c716c9f7e36e8fa3a216f02727 | [
"MIT"
] | null | null | null | Difficulty 900/Mocha_and_Red_and_Blue.cpp | desmondweh29/A-Problem-A-Day | 135b21d21d74e6c716c9f7e36e8fa3a216f02727 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
// Question: https://codeforces.com/problemset/problem/1559/B
void solve()
{
int n;
cin >> n;
string a;
cin >> a;
string s1 = a;
string s2 = a;
if (a[0] == '?')
{
s1[0] = 'B';
s2[0] = 'R';
}
for (int i = 1; i < n; ... | 14.069767 | 61 | 0.261983 | desmondweh29 |
4acf2dee5ce71889a7f1345de64a210ff5321e3c | 1,129 | hpp | C++ | src/core/tests/util/float_util.hpp | pazamelin/openvino | b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48 | [
"Apache-2.0"
] | 2,406 | 2020-04-22T15:47:54.000Z | 2022-03-31T10:27:37.000Z | ngraph/test/util/float_util.hpp | thomas-yanxin/openvino | 031e998a15ec738c64cc2379d7f30fb73087c272 | [
"Apache-2.0"
] | 4,948 | 2020-04-22T15:12:39.000Z | 2022-03-31T18:45:42.000Z | ngraph/test/util/float_util.hpp | thomas-yanxin/openvino | 031e998a15ec738c64cc2379d7f30fb73087c272 | [
"Apache-2.0"
] | 991 | 2020-04-23T18:21:09.000Z | 2022-03-31T18:40:57.000Z | // Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <algorithm>
#include <bitset>
#include <cmath>
#include <limits>
#include <sstream>
#include "ngraph/ngraph.hpp"
namespace ngraph {
namespace test {
union FloatUnion {
FloatUnion() {
i = 0;
}
FloatUnio... | 18.508197 | 89 | 0.633304 | pazamelin |
4ad042b3c25eed4bf4366b794766f3757459652d | 23,384 | hpp | C++ | include/GlobalNamespace/MainSettingsModelSO.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/MainSettingsModelSO.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/MainSettingsModelSO.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: PersistentScriptableObject
#include "GlobalNamespace/PersistentScripta... | 52.313199 | 4,383 | 0.731996 | darknight1050 |
4ad308989037d81fec68b1f177b02b8c699e7396 | 2,907 | cpp | C++ | Source/AstralShipwright/Nova.cpp | arbonagw/AstralShipwright | 8a41015f23fa810ab79d72460f9ada2dd7e37852 | [
"BSD-3-Clause"
] | 59 | 2021-11-29T22:20:03.000Z | 2022-03-17T00:07:48.000Z | Source/AstralShipwright/Nova.cpp | arbonagw/AstralShipwright | 8a41015f23fa810ab79d72460f9ada2dd7e37852 | [
"BSD-3-Clause"
] | null | null | null | Source/AstralShipwright/Nova.cpp | arbonagw/AstralShipwright | 8a41015f23fa810ab79d72460f9ada2dd7e37852 | [
"BSD-3-Clause"
] | 4 | 2022-01-05T09:44:12.000Z | 2022-02-21T02:02:32.000Z | // Astral Shipwright - Gwennaël Arbona
#include "Nova.h"
#include "Game/NovaGameTypes.h"
#include "Engine.h"
IMPLEMENT_PRIMARY_GAME_MODULE(FNovaModule, AstralShipwright, "AstralShipwright");
#define LOCTEXT_NAMESPACE "AstralShipwright"
/*----------------------------------------------------
Debugging tools
----... | 25.060345 | 134 | 0.643619 | arbonagw |
4ad45c165ab0fc546ac9441a52969a47dfc6a5ba | 1,292 | cpp | C++ | aws-cpp-sdk-kinesis/source/model/ListTagsForStreamResult.cpp | Neusoft-Technology-Solutions/aws-sdk-cpp | 88c041828b0dbee18a297c3cfe98c5ecd0706d0b | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-kinesis/source/model/ListTagsForStreamResult.cpp | Neusoft-Technology-Solutions/aws-sdk-cpp | 88c041828b0dbee18a297c3cfe98c5ecd0706d0b | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-kinesis/source/model/ListTagsForStreamResult.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-12-30T04:25:33.000Z | 2021-12-30T04:25:33.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/kinesis/model/ListTagsForStreamResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aw... | 24.846154 | 114 | 0.740712 | Neusoft-Technology-Solutions |
4ad9625feae2e3e5c1786b78ceefe6760fb080a7 | 7,248 | cc | C++ | service/zookeeper_configuration_service.cc | sharpyfox/soa | 193cdae4e1412f09d655d8135c41f82225907099 | [
"Apache-2.0"
] | 1 | 2018-12-14T17:47:20.000Z | 2018-12-14T17:47:20.000Z | service/zookeeper_configuration_service.cc | sharpyfox/soa | 193cdae4e1412f09d655d8135c41f82225907099 | [
"Apache-2.0"
] | null | null | null | service/zookeeper_configuration_service.cc | sharpyfox/soa | 193cdae4e1412f09d655d8135c41f82225907099 | [
"Apache-2.0"
] | null | null | null | /** zookeeper_configuration_service.cc
Jeremy Barnes, 26 September 2012
Copyright (c) 2012 Datacratic Inc. All rights reserved.
Configuration service using Zookeeper.
*/
#include "zookeeper_configuration_service.h"
#include "soa/service/zookeeper.h"
#include "jml/utils/exc_assert.h"
#include <boost/algor... | 27.664122 | 79 | 0.545116 | sharpyfox |
4ada621e9b0d35e0fc2dc045239521f1cd592c27 | 13,933 | cc | C++ | src/fluid/fluidmsg/fluid/ofcommon/common.cc | lionelgo/openair-mme | 75bc0993613f61072342f5ae13dca28574253671 | [
"BSD-3-Clause"
] | 19 | 2020-04-25T15:51:52.000Z | 2021-11-24T04:51:02.000Z | src/fluid/fluidmsg/fluid/ofcommon/common.cc | lionelgo/openair-mme | 75bc0993613f61072342f5ae13dca28574253671 | [
"BSD-3-Clause"
] | 10 | 2020-09-09T09:54:20.000Z | 2021-04-27T20:47:52.000Z | src/fluid/fluidmsg/fluid/ofcommon/common.cc | lionelgo/openair-mme | 75bc0993613f61072342f5ae13dca28574253671 | [
"BSD-3-Clause"
] | 24 | 2020-05-31T01:41:12.000Z | 2022-01-16T17:06:35.000Z | #include "common.hh"
namespace fluid_msg {
PortCommon::PortCommon()
: hw_addr_(),
name_(),
config_(0),
state_(0),
curr_(0),
advertised_(0),
supported_(0),
peer_(0) {}
PortCommon::PortCommon(EthAddress hw_addr, std::string name, uint32_t config,
uin... | 34.317734 | 80 | 0.656355 | lionelgo |
4adaa86670c59bc14a5dbe6187bcbcbf5edb4862 | 19,835 | cpp | C++ | WindowsDesktop/Test/TestBoolArray.cpp | yumetodo/OpenSiv3D | ea191438ecbc64185f5df3d9f79dffc6757e4192 | [
"MIT"
] | 7 | 2020-04-26T11:06:02.000Z | 2021-09-05T16:42:31.000Z | WindowsDesktop/Test/TestBoolArray.cpp | yumetodo/OpenSiv3D | ea191438ecbc64185f5df3d9f79dffc6757e4192 | [
"MIT"
] | 10 | 2020-04-26T13:25:36.000Z | 2022-03-01T12:34:44.000Z | WindowsDesktop/Test/TestBoolArray.cpp | yumetodo/OpenSiv3D | ea191438ecbc64185f5df3d9f79dffc6757e4192 | [
"MIT"
] | 2 | 2020-05-11T08:23:23.000Z | 2020-08-08T12:33:30.000Z |
# include "Test.hpp"
# if defined(SIV3D_DO_TEST)
# include <Siv3D.hpp>
# include <ThirdParty/Catch2/catch.hpp>
TEST_CASE("BoolArray")
{
{
Array<bool> v;
REQUIRE(v.size() == 0);
}
{
Array<bool> v{};
REQUIRE(v.size() == 0);
}
{
Array<bool> v{ true };
REQUIRE(v.size() == 1);
}
{
Array<bool> v ... | 27.096995 | 130 | 0.532846 | yumetodo |
4adc33604e648353d6d2e5170a482ca0824e84ed | 8,353 | cpp | C++ | XMath/XErrHand/NT4ProcessInfo.cpp | koalefant/yasli | 2096ed8a59ae9c7da467d8de8f1eb811a989dc39 | [
"MIT"
] | 8 | 2021-07-08T18:06:33.000Z | 2022-01-17T18:29:57.000Z | XMath/XErrHand/NT4ProcessInfo.cpp | koalefant/yasli | 2096ed8a59ae9c7da467d8de8f1eb811a989dc39 | [
"MIT"
] | null | null | null | XMath/XErrHand/NT4ProcessInfo.cpp | koalefant/yasli | 2096ed8a59ae9c7da467d8de8f1eb811a989dc39 | [
"MIT"
] | 1 | 2021-12-31T15:52:56.000Z | 2021-12-31T15:52:56.000Z | /*----------------------------------------------------------------------
John Robbins - Microsoft Systems Journal Bugslayer Column
Windows NT 4.0 access functions for getting to process information.
Windows95 and NT5 can use TOOLHELP32.DLL.
------------------------------------------------------------------... | 38.851163 | 73 | 0.477912 | koalefant |