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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fae2e8971649ef29d954ba9d7e0e184037343fcd | 491 | cpp | C++ | math/tetration_mod/gen/random.cpp | tko919/library-checker-problems | 007a3ef79d1a1824e68545ab326d1523d9c05262 | [
"Apache-2.0"
] | 290 | 2019-06-06T22:20:36.000Z | 2022-03-27T12:45:04.000Z | math/tetration_mod/gen/random.cpp | tko919/library-checker-problems | 007a3ef79d1a1824e68545ab326d1523d9c05262 | [
"Apache-2.0"
] | 536 | 2019-06-06T18:25:36.000Z | 2022-03-29T11:46:36.000Z | math/tetration_mod/gen/random.cpp | tko919/library-checker-problems | 007a3ef79d1a1824e68545ab326d1523d9c05262 | [
"Apache-2.0"
] | 82 | 2019-06-06T18:17:55.000Z | 2022-03-21T07:40:31.000Z | #include "random.h"
#include <iostream>
using namespace std;
using ll = long long;
int main(int, char* argv[]) {
long long seed = atoll(argv[1]);
auto gen = Random(seed);
int t = gen.uniform(1, 1000);
printf("%d\n", t);
for (int i = 0; i < t; i++) {
ll a = gen.uniform(0LL, 1'000'000'000L... | 22.318182 | 49 | 0.543788 | tko919 |
fae9c211baf5dcb54095693d6360e0d565b1ebdf | 3,205 | cc | C++ | DataStructuresAndAlgorithms/old_algo_code/DS/C++/Array/main.cc | DLonng/Go | a67ac6d6501f9fadadec6a6cf766d4b4a356d572 | [
"MIT"
] | 23 | 2020-04-10T01:53:46.000Z | 2021-12-31T03:43:10.000Z | DataStructuresAndAlgorithms/old_algo_code/DS/C++/Array/main.cc | DLonng/Go | a67ac6d6501f9fadadec6a6cf766d4b4a356d572 | [
"MIT"
] | 1 | 2020-12-10T07:08:37.000Z | 2021-04-14T07:47:01.000Z | DataStructuresAndAlgorithms/old_algo_code/DS/C++/Array/main.cc | DLonng/Go | a67ac6d6501f9fadadec6a6cf766d4b4a356d572 | [
"MIT"
] | 9 | 2020-04-05T11:49:22.000Z | 2021-11-04T10:23:37.000Z |
#include "cvector.h"
#include <iostream>
#include <cassert>
void test_print() {
cspace::CVector vec(10);
vec.Push(1);
vec.Push(2);
vec.Push(3);
vec.PrintVector();
}
void test_size() {
cspace::CVector vec(10);
assert(vec.size() == 0);
vec.Push(1);
vec.Push(2);
vec.Push(3);... | 17.139037 | 43 | 0.532605 | DLonng |
faea5af16d93a34b1c65f37d6648223a3ff22c70 | 9,788 | hpp | C++ | include/ironbeepp/connection.hpp | b1v1r/ironbee | 97b453afd9c3dc70342c6183a875bde22c9c4a76 | [
"Apache-2.0"
] | 148 | 2015-01-10T01:53:39.000Z | 2022-03-20T20:48:12.000Z | include/ironbeepp/connection.hpp | ErikHendriks/ironbee | 97b453afd9c3dc70342c6183a875bde22c9c4a76 | [
"Apache-2.0"
] | 8 | 2015-03-09T15:50:36.000Z | 2020-10-10T19:23:06.000Z | include/ironbeepp/connection.hpp | ErikHendriks/ironbee | 97b453afd9c3dc70342c6183a875bde22c9c4a76 | [
"Apache-2.0"
] | 46 | 2015-03-08T22:45:42.000Z | 2022-01-15T13:47:59.000Z | /*****************************************************************************
* Licensed to Qualys, Inc. (QUALYS) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* QUALYS licenses this file to You under ... | 24.592965 | 78 | 0.631794 | b1v1r |
faeab71bf12d01b90741d85608c874526118d5fb | 285 | cpp | C++ | src/dot.cpp | blauergrashalm/galaxy_server | 762c7f939ed1675c1fdbde15c8d1dbada22cfbef | [
"MIT"
] | 1 | 2020-04-07T17:35:31.000Z | 2020-04-07T17:35:31.000Z | src/dot.cpp | blauergrashalm/galaxy_server | 762c7f939ed1675c1fdbde15c8d1dbada22cfbef | [
"MIT"
] | 12 | 2020-04-08T13:45:52.000Z | 2020-06-02T09:45:42.000Z | src/dot.cpp | blauergrashalm/galaxy_server | 762c7f939ed1675c1fdbde15c8d1dbada22cfbef | [
"MIT"
] | null | null | null | #include "dot.hpp"
#include "field.hpp"
json Dot::toJson()
{
json dot;
dot["x"] = position.x;
dot["y"] = position.y;
for (auto it = fields.begin(); it != fields.end(); it++)
{
dot["fields"].push_back((*it)->id);
}
dot["id"] = id;
return dot;
}
| 17.8125 | 60 | 0.508772 | blauergrashalm |
faeb03cca28142b65668fd5cc48e90e6b35939c8 | 3,055 | cpp | C++ | tests/Engine/Math/Vector3.cpp | AntoineJT/NazaraEngine | e0b05a7e7a2779e20a593b4083b4a881cc57ce14 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | null | null | null | tests/Engine/Math/Vector3.cpp | AntoineJT/NazaraEngine | e0b05a7e7a2779e20a593b4083b4a881cc57ce14 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | null | null | null | tests/Engine/Math/Vector3.cpp | AntoineJT/NazaraEngine | e0b05a7e7a2779e20a593b4083b4a881cc57ce14 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | null | null | null | #include <Nazara/Math/Vector3.hpp>
#include <Catch/catch.hpp>
#include <Nazara/Math/Vector2.hpp>
#include <Nazara/Math/Vector4.hpp>
SCENARIO("Vector3", "[MATH][VECTOR3]")
{
GIVEN("Two same unit vector")
{
Nz::Vector3f firstUnit(1.f, 1.f, 1.f);
Nz::Vector3f secondUnit(Nz::Vector3i(Nz::Vector4i(1, 1, 1, 5)));
... | 25.247934 | 131 | 0.615712 | AntoineJT |
faebaad8eafe5c76d4ec89f4e2a333db0c5c8cec | 3,942 | cpp | C++ | icarus/tcpclient.cpp | Jusot/icarus | 1b908b0d7ff03d6ee088c94730acfef36101ef32 | [
"MIT"
] | 4 | 2019-04-01T10:49:54.000Z | 2020-12-24T11:46:45.000Z | icarus/tcpclient.cpp | Jusot/Icarus | 1b908b0d7ff03d6ee088c94730acfef36101ef32 | [
"MIT"
] | null | null | null | icarus/tcpclient.cpp | Jusot/Icarus | 1b908b0d7ff03d6ee088c94730acfef36101ef32 | [
"MIT"
] | 1 | 2019-04-04T02:36:29.000Z | 2019-04-04T02:36:29.000Z | #include <cassert>
#include "connector.hpp"
#include "tcpclient.hpp"
#include "eventloop.hpp"
#include "inetaddress.hpp"
#include "socketsfunc.hpp"
namespace icarus
{
TcpClient::TcpClient(EventLoop *loop, const InetAddress &server_addr, std::string name)
: loop_(loop)
, connector_(std::make_unique<Connector>(loop... | 21.9 | 87 | 0.625317 | Jusot |
faee715662cf26f2db0ab242376cf4af16425a18 | 1,165 | cpp | C++ | tests/RomanToIntegerTest.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 43 | 2015-10-10T12:59:52.000Z | 2018-07-11T18:07:00.000Z | tests/RomanToIntegerTest.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | null | null | null | tests/RomanToIntegerTest.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 11 | 2015-10-10T14:41:11.000Z | 2018-07-28T06:03:16.000Z | #include "catch.hpp"
#include "RomanToInteger.hpp"
TEST_CASE("Roman To Integer") {
RomanToInteger s;
SECTION("Base tests") {
REQUIRE(s.romanToInt("I") == 1);
REQUIRE(s.romanToInt("II") == 2);
REQUIRE(s.romanToInt("III") == 3);
REQUIRE(s.romanToInt("XL") == 40);
REQUIRE(... | 33.285714 | 49 | 0.547639 | yanzhe-chen |
faefcee01eb2ab2ef48a0675776cb5f58042a766 | 1,720 | hpp | C++ | android-31/android/inputmethodservice/InputMethodService_InputMethodSessionImpl.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-28/android/inputmethodservice/InputMethodService_InputMethodSessionImpl.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-30/android/inputmethodservice/InputMethodService_InputMethodSessionImpl.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #pragma once
#include "./AbstractInputMethodService_AbstractInputMethodSessionImpl.hpp"
class JArray;
namespace android::graphics
{
class Rect;
}
namespace android::inputmethodservice
{
class InputMethodService;
}
namespace android::os
{
class Bundle;
}
namespace android::view::inputmethod
{
class CursorAnchorInf... | 31.272727 | 261 | 0.797674 | YJBeetle |
faf0792514d28bfaa3975ccbb47597ba0a93f48e | 4,542 | cpp | C++ | src/tracks/playabletrack/notetrack/ui/NoteTrackVZoomHandle.cpp | luoxiao/audacity | afdcded32d50ff1fd4ed6f736ab1824d540ae4d2 | [
"CC-BY-3.0"
] | 1 | 2019-08-05T09:19:46.000Z | 2019-08-05T09:19:46.000Z | src/tracks/playabletrack/notetrack/ui/NoteTrackVZoomHandle.cpp | luoxiao/audacity | afdcded32d50ff1fd4ed6f736ab1824d540ae4d2 | [
"CC-BY-3.0"
] | null | null | null | src/tracks/playabletrack/notetrack/ui/NoteTrackVZoomHandle.cpp | luoxiao/audacity | afdcded32d50ff1fd4ed6f736ab1824d540ae4d2 | [
"CC-BY-3.0"
] | null | null | null | /**********************************************************************
Audacity: A Digital Audio Editor
NoteTrackVZoomHandle.cpp
Paul Licameli split from TrackPanel.cpp
**********************************************************************/
#include "../../../../Audacity.h"
#include "NoteTrackVZoomHandle.h"
#incl... | 26.87574 | 99 | 0.649053 | luoxiao |
faf4f5193a1d42e7a3cb5250faf0843d2d05d2f1 | 6,736 | cc | C++ | examples/Cassie/osc_jump/convert_traj_for_sim.cc | hanliumaozhi/dairlib | a74ae5b24efe708b6723e778bea6f4bb038e2951 | [
"BSD-3-Clause"
] | 1 | 2021-04-20T11:29:23.000Z | 2021-04-20T11:29:23.000Z | examples/Cassie/osc_jump/convert_traj_for_sim.cc | hanliumaozhi/dairlib | a74ae5b24efe708b6723e778bea6f4bb038e2951 | [
"BSD-3-Clause"
] | null | null | null | examples/Cassie/osc_jump/convert_traj_for_sim.cc | hanliumaozhi/dairlib | a74ae5b24efe708b6723e778bea6f4bb038e2951 | [
"BSD-3-Clause"
] | null | null | null | #include <drake/geometry/scene_graph.h>
#include <drake/multibody/parsing/parser.h>
#include <gflags/gflags.h>
#include "examples/Cassie/cassie_utils.h"
#include "multibody/multibody_utils.h"
#include "lcm/lcm_trajectory.h"
#include "drake/multibody/plant/multibody_plant.h"
using drake::geometry::SceneGraph;
using dra... | 39.857988 | 80 | 0.729513 | hanliumaozhi |
faf515fa1845530f9b2d92b143d9a9b03bfa1a17 | 13,329 | cpp | C++ | winston/external/asio/src/tests/unit/compose.cpp | danie1kr/winston | 18fe865dc59e8315cb1d85c6fa60c4ddeaf83202 | [
"MIT"
] | 172 | 2018-10-31T13:47:10.000Z | 2022-02-21T12:08:20.000Z | winston/external/asio/src/tests/unit/compose.cpp | danie1kr/winston | 18fe865dc59e8315cb1d85c6fa60c4ddeaf83202 | [
"MIT"
] | 51 | 2018-11-01T12:46:25.000Z | 2021-12-14T15:16:15.000Z | winston/external/asio/src/tests/unit/compose.cpp | danie1kr/winston | 18fe865dc59e8315cb1d85c6fa60c4ddeaf83202 | [
"MIT"
] | 72 | 2018-10-31T13:50:02.000Z | 2022-03-14T09:10:35.000Z | //
// compose.cpp
// ~~~~~~~~~~~
//
// Copyright (c) 2003-2021 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// 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)
//
// Disable autolinking for unit tests.
#if !d... | 24.016216 | 80 | 0.686548 | danie1kr |
faf5803b8c46550304e8e61d5d2c95dc41dcddb0 | 9,032 | cpp | C++ | tools/pe_bliss/pe_rebuilder.cpp | shackra/godot | 685384f4eb0a29f3415d44e4d284e368e2688673 | [
"CC-BY-3.0",
"MIT"
] | 1 | 2020-06-13T05:57:51.000Z | 2020-06-13T05:57:51.000Z | tools/pe_bliss/pe_rebuilder.cpp | shackra/godot | 685384f4eb0a29f3415d44e4d284e368e2688673 | [
"CC-BY-3.0",
"MIT"
] | null | null | null | tools/pe_bliss/pe_rebuilder.cpp | shackra/godot | 685384f4eb0a29f3415d44e4d284e368e2688673 | [
"CC-BY-3.0",
"MIT"
] | 1 | 2021-07-05T13:40:51.000Z | 2021-07-05T13:40:51.000Z | /*************************************************************************/
/* Copyright (c) 2015 dx, http://kaimi.ru */
/* */
/* Permission is hereby granted, free of charge, to any person */
/* obtaining a c... | 42.009302 | 176 | 0.721435 | shackra |
faf64ee32f5532d4eb6884b56363b40dba6e19e8 | 6,033 | cpp | C++ | libc/utils/benchmarks/LibcBenchmarkTest.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 34 | 2020-01-31T17:50:00.000Z | 2022-02-16T20:19:29.000Z | libc/utils/benchmarks/LibcBenchmarkTest.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 14 | 2020-02-03T23:39:51.000Z | 2021-07-20T16:24:25.000Z | libc/utils/benchmarks/LibcBenchmarkTest.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 6 | 2021-02-08T16:57:07.000Z | 2022-01-13T11:32:34.000Z | #include "LibcBenchmark.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/SmallVector.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include <chrono>
#include <limits>
#include <queue>
#include <vector>
using std::chrono::nanoseconds;
using ::testing::ElementsAre;
using ::testi... | 35.698225 | 79 | 0.698326 | medismailben |
fafa0ffbdd0a31cae636e9f4716305433a5b1a41 | 4,135 | cpp | C++ | include/utility/test/algorithm/sort.test.cpp | SakuraLife/utility | b9bf26198917b6dc415520f74eb3eebf8aa8195e | [
"Unlicense"
] | 2 | 2017-12-10T10:59:48.000Z | 2017-12-13T04:11:14.000Z | include/utility/test/algorithm/sort.test.cpp | SakuraLife/utility | b9bf26198917b6dc415520f74eb3eebf8aa8195e | [
"Unlicense"
] | null | null | null | include/utility/test/algorithm/sort.test.cpp | SakuraLife/utility | b9bf26198917b6dc415520f74eb3eebf8aa8195e | [
"Unlicense"
] | null | null | null | #define UTILITY_DEBUG
#include<cstdlib>
#include<cstdio>
#include<cassert>
#include<ctime>
#include<utility/container/vector.hpp>
#include<utility/algorithm/is_sorted.hpp>
#include<utility/algorithm/sort.hpp>
template<
typename _Tag = utility::algorithm::sort_tag::introspective_sort_tag
>
void sort_test(utility::si... | 28.321918 | 70 | 0.754051 | SakuraLife |
fafd3e422704ff61398329bf92a26a22e3d33fae | 37,450 | cpp | C++ | src/Components.cpp | pilif0/open-sea | b5d28c82d43547894f10f02b206a607f541ce864 | [
"MIT"
] | 4 | 2018-03-13T16:41:02.000Z | 2021-12-23T12:42:24.000Z | src/Components.cpp | pilif0/open-sea | b5d28c82d43547894f10f02b206a607f541ce864 | [
"MIT"
] | 21 | 2018-02-24T13:55:01.000Z | 2021-06-02T09:35:54.000Z | src/Components.cpp | pilif0/open-sea | b5d28c82d43547894f10f02b206a607f541ce864 | [
"MIT"
] | null | null | null | /** \file Components.cpp
* Component implementations
*
* \author Filip Smola
*/
#include <open-sea/Components.h>
#include <open-sea/Debug.h>
#include <open-sea/Model.h>
#include <open-sea/GL.h>
#include <imgui.h>
#include <glm/glm.hpp>
#include <stdexcept>
#include <random>
#include <algorithm>
namespace open_... | 35.837321 | 180 | 0.54 | pilif0 |
fafedb44c024c06ab46e9455b325a6456997bb17 | 659 | cpp | C++ | leetcode/problems/14.cpp | songhn233/ACM_Steps | 6f2edeca9bf4fc999a8148bc90b2d8d0e59d48fe | [
"CC0-1.0"
] | 1 | 2020-08-10T21:40:21.000Z | 2020-08-10T21:40:21.000Z | leetcode/problems/14最长公共前缀.cpp | songhn233/Algorithm-Packages | 56d6f3c2467c175ab8a19b82bdfb25fc881e2206 | [
"CC0-1.0"
] | null | null | null | leetcode/problems/14最长公共前缀.cpp | songhn233/Algorithm-Packages | 56d6f3c2467c175ab8a19b82bdfb25fc881e2206 | [
"CC0-1.0"
] | null | null | null | class Solution {
public:
string longestCommonPrefix(vector<string>& strs) {
if(!strs.size()) return "";
int lim=(int)strs[0].size();
int ans=0;
for(int i=0;i<strs.size();i++) lim=min(lim,(int)strs[i].size());
for(int len=0;len<lim;len++)
{
int flag=1;
... | 26.36 | 72 | 0.412747 | songhn233 |
4f025729a7dcb010bdadcb39ce99f409443265c4 | 664 | cpp | C++ | src/logging/checkpoint_manager_factory.cpp | 17zhangw/peloton | 484d76df9344cb5c153a2c361c5d5018912d4cf4 | [
"Apache-2.0"
] | 3 | 2018-01-08T01:06:17.000Z | 2019-06-17T23:14:36.000Z | src/logging/checkpoint_manager_factory.cpp | 17zhangw/peloton | 484d76df9344cb5c153a2c361c5d5018912d4cf4 | [
"Apache-2.0"
] | 5 | 2017-04-23T17:16:14.000Z | 2017-04-25T03:14:16.000Z | src/logging/checkpoint_manager_factory.cpp | 17zhangw/peloton | 484d76df9344cb5c153a2c361c5d5018912d4cf4 | [
"Apache-2.0"
] | 3 | 2018-02-25T23:30:33.000Z | 2018-04-08T10:11:42.000Z | //===----------------------------------------------------------------------===//
//
// Peloton
//
// checkpoint_manager_factory.cpp
//
// Identification: src/logging/checkpoint_manager_factory.cpp
//
// Copyright (c) 2015-16, Carnegie Mellon University Database Group
//
//===--------------------... | 27.666667 | 88 | 0.566265 | 17zhangw |
4f02f43d3d4b90036f71076db2839fab390e8a0e | 6,356 | cpp | C++ | SRC/domain/load/NodalThermalAction.cpp | steva44/OpenSees | 417c3be117992a108c6bbbcf5c9b63806b9362ab | [
"TCL"
] | 8 | 2019-03-05T16:25:10.000Z | 2020-04-17T14:12:03.000Z | SRC/domain/load/NodalThermalAction.cpp | steva44/OpenSees | 417c3be117992a108c6bbbcf5c9b63806b9362ab | [
"TCL"
] | null | null | null | SRC/domain/load/NodalThermalAction.cpp | steva44/OpenSees | 417c3be117992a108c6bbbcf5c9b63806b9362ab | [
"TCL"
] | 3 | 2019-09-21T03:11:11.000Z | 2020-01-19T07:29:37.000Z | /* ****************************************************************** **
** OpenSees - Open System for Earthquake Engineering Simulation **
** Pacific Earthquake Engineering Research Center **
** **
** ... | 28.375 | 144 | 0.540592 | steva44 |
4f04260bab906ab2065732a7e010e9fce8b83feb | 4,901 | hpp | C++ | third_party/omr/gc/base/ParallelSweepChunk.hpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | third_party/omr/gc/base/ParallelSweepChunk.hpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | third_party/omr/gc/base/ParallelSweepChunk.hpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* Copyright (c) 1991, 2015 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at https://w... | 30.823899 | 136 | 0.742093 | xiacijie |
4f0437cb67266296fc7aefed3565e03c80990162 | 725 | cpp | C++ | src_smartcontract_db/trx/transaction/SchemaObjectIdPublisher.cpp | alinous-core/codable-cash | 32a86a152a146c592bcfd8cc712f4e8cb38ee1a0 | [
"MIT"
] | 6 | 2019-01-06T05:02:39.000Z | 2020-10-01T11:45:32.000Z | src_smartcontract_db/trx/transaction/SchemaObjectIdPublisher.cpp | Codablecash/codablecash | 8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9 | [
"MIT"
] | 209 | 2018-05-18T03:07:02.000Z | 2022-03-26T11:42:41.000Z | src_smartcontract_db/trx/transaction/SchemaObjectIdPublisher.cpp | Codablecash/codablecash | 8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9 | [
"MIT"
] | 3 | 2019-07-06T09:16:36.000Z | 2020-10-15T08:23:28.000Z | /*
* SchemaObjectIdPublisher.cpp
*
* Created on: 2020/05/14
* Author: iizuka
*/
#include "trx/transaction/SchemaObjectIdPublisher.h"
#include "schema_table/schema/SchemaManager.h"
namespace codablecash {
SchemaObjectIdPublisher::SchemaObjectIdPublisher(SchemaManager* schema) {
this->schema = schema;
}
... | 20.714286 | 77 | 0.761379 | alinous-core |
4f058587b050cb1a19c9a0f6beeb8e8d690c1ef0 | 2,093 | cpp | C++ | src/util/logger.cpp | neuromancer85/Rack | 7e49a697d43bc204f68408779ac2015c66e7dd14 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 1 | 2019-04-14T20:18:06.000Z | 2019-04-14T20:18:06.000Z | src/util/logger.cpp | neuromancer85/Rack | 7e49a697d43bc204f68408779ac2015c66e7dd14 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | src/util/logger.cpp | neuromancer85/Rack | 7e49a697d43bc204f68408779ac2015c66e7dd14 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | #include "util/common.hpp"
#include "asset.hpp"
#include <stdarg.h>
namespace rack {
static FILE *logFile = NULL;
static std::chrono::high_resolution_clock::time_point startTime;
void loggerInit(bool devMode) {
startTime = std::chrono::high_resolution_clock::now();
if (devMode) {
logFile = stderr;
}
else {
... | 20.722772 | 106 | 0.679408 | neuromancer85 |
4f0708ea47732abeb881744baa66d5a0345c8601 | 122 | cpp | C++ | src/core/NormalColor.cpp | tody411/SimpleMeshViewer | 25aa62371bf815316244387cb1a69a27b47f80c0 | [
"MIT"
] | null | null | null | src/core/NormalColor.cpp | tody411/SimpleMeshViewer | 25aa62371bf815316244387cb1a69a27b47f80c0 | [
"MIT"
] | null | null | null | src/core/NormalColor.cpp | tody411/SimpleMeshViewer | 25aa62371bf815316244387cb1a69a27b47f80c0 | [
"MIT"
] | null | null | null |
/*!
\file NormalColor.cpp
\author Tody
NormalColor definition.
date 2015/12/20
*/
#include "NormalColor.h"
| 10.166667 | 25 | 0.655738 | tody411 |
4f0952950e4f169a4926327a6061edbe93969fce | 788 | cpp | C++ | 142. Linked List Cycle II.cpp | corn1ng/LeetCode-Solution | e7b6f77dd407c9a5cc8be43dc9b0e5d9bc185b95 | [
"Apache-2.0"
] | 6 | 2017-11-18T02:16:35.000Z | 2017-12-17T06:30:40.000Z | 142. Linked List Cycle II.cpp | corn1ng/LeetCode-Solution | e7b6f77dd407c9a5cc8be43dc9b0e5d9bc185b95 | [
"Apache-2.0"
] | null | null | null | 142. Linked List Cycle II.cpp | corn1ng/LeetCode-Solution | e7b6f77dd407c9a5cc8be43dc9b0e5d9bc185b95 | [
"Apache-2.0"
] | null | null | null | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
ListNode *detectCycle(ListNode *head) {
if (head == NULL || head->next == NULL)
{
return NULL;... | 21.297297 | 48 | 0.404822 | corn1ng |
4f09c0aa6d2ec11d5508db81927b6ae88aad240a | 15,873 | cpp | C++ | src/slib/ui/list_control_gtk.cpp | inogroup/SLib | 6c053c8f47f04240b8444eac5f316effdee2eb01 | [
"MIT"
] | 2 | 2021-07-29T18:29:25.000Z | 2021-09-07T08:51:14.000Z | src/slib/ui/list_control_gtk.cpp | inogroup/SLib | 6c053c8f47f04240b8444eac5f316effdee2eb01 | [
"MIT"
] | 1 | 2021-07-29T18:22:35.000Z | 2021-07-29T18:59:41.000Z | src/slib/ui/list_control_gtk.cpp | inogroup/SLib | 6c053c8f47f04240b8444eac5f316effdee2eb01 | [
"MIT"
] | 3 | 2021-07-29T17:08:12.000Z | 2021-12-14T06:21:41.000Z | /*
* Copyright (c) 2008-2018 SLIBIO <https://github.com/SLIBIO>
*
* 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
* ... | 29.780488 | 127 | 0.685882 | inogroup |
4f0b8e3e0b239f3021682ecde241ec91de0c91ef | 455 | cpp | C++ | src/iGPS/iGPSMain.cpp | mandad/moos-ivp-manda | 6bc81d14aba7c537b7932d6135eed7a5b39c3c52 | [
"MIT"
] | 9 | 2016-02-25T03:25:53.000Z | 2022-03-27T09:47:50.000Z | src/iGPS/iGPSMain.cpp | mandad/moos-ivp-manda | 6bc81d14aba7c537b7932d6135eed7a5b39c3c52 | [
"MIT"
] | null | null | null | src/iGPS/iGPSMain.cpp | mandad/moos-ivp-manda | 6bc81d14aba7c537b7932d6135eed7a5b39c3c52 | [
"MIT"
] | 4 | 2016-06-02T17:42:42.000Z | 2021-12-15T09:37:55.000Z | // $Header: /raid/cvs-server/REPOSITORY/software/MOOS/interface/general/iGPS/iGPSMain.cpp,v 5.1 2005/04/27 20:41:40 anrp Exp $
// copyright (2001-2003) Massachusetts Institute of Technology (pnewman et al.)
#include "GPSInstrument.h"
int main(int argc , char * argv[])
{
const char * sMissionFile = "Mission.moos";
... | 21.666667 | 126 | 0.70989 | mandad |
4f0dae6b71009e00599150edd26cf7a2a8e17a7d | 1,168 | cc | C++ | src/preload/child/spawn_strategy/chroot_fake.cc | TheEvilSkeleton/zypak | 51c8771bc6bb1f68e41663e01c487b414481c57e | [
"BSD-3-Clause"
] | 49 | 2019-11-25T02:29:23.000Z | 2022-03-31T05:28:18.000Z | src/preload/child/spawn_strategy/chroot_fake.cc | TheEvilSkeleton/zypak | 51c8771bc6bb1f68e41663e01c487b414481c57e | [
"BSD-3-Clause"
] | 21 | 2020-03-12T02:33:24.000Z | 2022-03-30T14:00:16.000Z | src/preload/child/spawn_strategy/chroot_fake.cc | TheEvilSkeleton/zypak | 51c8771bc6bb1f68e41663e01c487b414481c57e | [
"BSD-3-Clause"
] | 5 | 2020-09-27T11:53:53.000Z | 2022-03-23T19:20:07.000Z | // Copyright 2020 Endless Mobile, Inc.
// Portions copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Pretend that /proc/self/exe isn't accessible due to sandboxing.
#include <errno.h>
#include <fcntl.h>
... | 25.955556 | 95 | 0.699486 | TheEvilSkeleton |
4f10b650fd613a328f5facda87217c80389a95d8 | 54,793 | cpp | C++ | TelemetrySourcerer/TelemetrySourcerer.cpp | fcccode/TelemetrySourcerer | d90068aed05fb444b20de59c9935ba43f4daf0dc | [
"Apache-2.0"
] | 1 | 2021-06-15T16:51:21.000Z | 2021-06-15T16:51:21.000Z | TelemetrySourcerer/TelemetrySourcerer.cpp | W00t3k/TelemetrySourcerer | 3c29c86f49eab9f7bd630b1b0741bdf6f9189b68 | [
"Apache-2.0"
] | null | null | null | TelemetrySourcerer/TelemetrySourcerer.cpp | W00t3k/TelemetrySourcerer | 3c29c86f49eab9f7bd630b1b0741bdf6f9189b68 | [
"Apache-2.0"
] | 1 | 2020-10-23T04:04:16.000Z | 2020-10-23T04:04:16.000Z | #include <Windows.h>
#include <stdlib.h>
#include <string.h>
#include <tchar.h>
#include <commctrl.h>
#include <windowsx.h>
#include <strsafe.h>
#include <TlHelp32.h>
#include <string>
#include "TelemetrySourcerer.h"
#include "KmCallbacks.h"
#include "UmHooks.h"
#include "UmETW.h"
using namespace std;
// Global var... | 33.82284 | 165 | 0.56447 | fcccode |
4f12a2671100892beca4832941ba211623aca4ab | 1,538 | hpp | C++ | include/network/Client.hpp | raccoman/ft_irc | c510c70feeb193a7da6de995478bf75d25014f6e | [
"MIT"
] | 2 | 2022-03-03T22:28:13.000Z | 2022-03-09T10:17:16.000Z | include/network/Client.hpp | raccoman/ft_irc | c510c70feeb193a7da6de995478bf75d25014f6e | [
"MIT"
] | null | null | null | include/network/Client.hpp | raccoman/ft_irc | c510c70feeb193a7da6de995478bf75d25014f6e | [
"MIT"
] | null | null | null | #ifndef FT_IRC_CLIENT_HPP
# define FT_IRC_CLIENT_HPP
enum ClientState {
HANDSHAKE,
LOGIN,
PLAY,
DISCONNECTED
};
class Client;
#include <vector>
#include <string>
#include <sys/poll.h>
#include <sys/socket.h>
#include "utils.hpp"
#include "Channel.hpp"
class Client {
typedef std::vector<pollfd>::iterator pollf... | 18.756098 | 73 | 0.704811 | raccoman |
4f17469cfa992c7baf9e80d81660f488403846d1 | 33,733 | cpp | C++ | src/r_utility.cpp | protocultor/gzdoom | ec2c69e76abbd1eb48f2b7c5b1c0c1e22867f47c | [
"RSA-MD"
] | 1 | 2020-09-22T22:34:00.000Z | 2020-09-22T22:34:00.000Z | src/r_utility.cpp | protocultor/gzdoom | ec2c69e76abbd1eb48f2b7c5b1c0c1e22867f47c | [
"RSA-MD"
] | null | null | null | src/r_utility.cpp | protocultor/gzdoom | ec2c69e76abbd1eb48f2b7c5b1c0c1e22867f47c | [
"RSA-MD"
] | null | null | null | //-----------------------------------------------------------------------------
//
// Copyright 1993-1996 id Software
// Copyright 1994-1996 Raven Software
// Copyright 1999-2016 Randy Heit
// Copyright 2002-2016 Christoph Oelckers
//
// This program is free software: you can redistribute it and/or modify
// it under t... | 27.358475 | 195 | 0.582041 | protocultor |
4f1bea9165ac077f1d67cf85a7f116ae9d8c33d7 | 732 | cpp | C++ | src/Readers/GenMETReader.cpp | jjacob/AnalysisSoftware | 670513bcde9c3df46077f906246e912627ee251a | [
"Apache-2.0"
] | null | null | null | src/Readers/GenMETReader.cpp | jjacob/AnalysisSoftware | 670513bcde9c3df46077f906246e912627ee251a | [
"Apache-2.0"
] | null | null | null | src/Readers/GenMETReader.cpp | jjacob/AnalysisSoftware | 670513bcde9c3df46077f906246e912627ee251a | [
"Apache-2.0"
] | null | null | null | /*
* GenMETReader.cpp
*
* Created on: Jul 9, 2012
* Author: phzss
*/
#include "../../interface/Readers/GenMETReader.h"
namespace BAT {
GenMETReader::GenMETReader() :
exReader(),//
eyReader(),//
genMET_() {
}
GenMETReader::GenMETReader(TChainPointer input) :
exReader(input, "GenMET.ExTrue"), //
... | 16.636364 | 85 | 0.685792 | jjacob |
4f1c3eba82e7e3b0a78a6eb8bbf7a3ca78280a0e | 1,686 | cpp | C++ | src/knMotor/WheelGroupSample.cpp | hhutz/kn_wheel_group | 18ed3220bd46282ec9cbe38e8a573e6f2de49f05 | [
"NASA-1.3"
] | null | null | null | src/knMotor/WheelGroupSample.cpp | hhutz/kn_wheel_group | 18ed3220bd46282ec9cbe38e8a573e6f2de49f05 | [
"NASA-1.3"
] | null | null | null | src/knMotor/WheelGroupSample.cpp | hhutz/kn_wheel_group | 18ed3220bd46282ec9cbe38e8a573e6f2de49f05 | [
"NASA-1.3"
] | null | null | null | /* -*- C++ -*- *****************************************************************
* Copyright (c) 2013 United States Government as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* Licensed under the NASA Open Source Agreement, Version 1.3 (the "Lice... | 33.058824 | 80 | 0.541518 | hhutz |
b7b4cc2ceeaca61f766274be7fbc063959f1fd1f | 9,423 | cpp | C++ | src/plugins/opls/oplsatomtyper.cpp | quizzmaster/chemkit | 803e4688b514008c605cb5c7790f7b36e67b68fc | [
"BSD-3-Clause"
] | 34 | 2015-01-24T23:59:41.000Z | 2020-11-12T13:48:01.000Z | src/plugins/opls/oplsatomtyper.cpp | soplwang/chemkit | d62b7912f2d724a05fa8be757f383776fdd5bbcb | [
"BSD-3-Clause"
] | 4 | 2015-12-28T20:29:16.000Z | 2016-01-26T06:48:19.000Z | src/plugins/opls/oplsatomtyper.cpp | soplwang/chemkit | d62b7912f2d724a05fa8be757f383776fdd5bbcb | [
"BSD-3-Clause"
] | 17 | 2015-01-23T14:50:24.000Z | 2021-06-10T15:43:50.000Z | /******************************************************************************
**
** Copyright (C) 2009-2011 Kyle Lutz <kyle.r.lutz@gmail.com>
** All rights reserved.
**
** This file is a part of the chemkit project. For more information
** see <http://www.chemkit.org>.
**
** Redistribution and use in source and binar... | 38.304878 | 106 | 0.519898 | quizzmaster |
b7b8652b33682cdf1d93575f77c3fc2e073dd2ef | 602 | cpp | C++ | DEMCUASO.cpp | phuongnam2002/testlib | a5cb8e2be7ac7a7e7dca7942a79ec20076f5d1aa | [
"MIT"
] | 2 | 2022-01-14T13:34:09.000Z | 2022-02-21T07:27:29.000Z | DEMCUASO.cpp | phuongnam2002/testlib | a5cb8e2be7ac7a7e7dca7942a79ec20076f5d1aa | [
"MIT"
] | null | null | null | DEMCUASO.cpp | phuongnam2002/testlib | a5cb8e2be7ac7a7e7dca7942a79ec20076f5d1aa | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main ()
{
int n, m;
cin>>m>>n;
char Building[600][600];
for (int i=0; i<5*m+1; i++)
{
for (int j=0; j<5*n+1; j++)
{
cin>>Building[i][j];
}
}
int tt[]={0, 0, 0, 0, 0};
int t=0;
int dauI=1, dauJ=1;
for (int i=0; i<m; i++)
{
if (i!=0)... | 15.05 | 43 | 0.405316 | phuongnam2002 |
b7bab5d00a61006828984a29123eeb94d262d13e | 234 | inl | C++ | TAO/orbsvcs/performance-tests/RTEvent/lib/Implicit_Deactivator.inl | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 36 | 2015-01-10T07:27:33.000Z | 2022-03-07T03:32:08.000Z | TAO/orbsvcs/performance-tests/RTEvent/lib/Implicit_Deactivator.inl | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 2 | 2018-08-13T07:30:51.000Z | 2019-02-25T03:04:31.000Z | TAO/orbsvcs/performance-tests/RTEvent/lib/Implicit_Deactivator.inl | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 38 | 2015-01-08T14:12:06.000Z | 2022-01-19T08:33:00.000Z | /**
* @file Implicit_Deactivator.inl
*
* $Id: Implicit_Deactivator.inl 43909 2002-03-09 00:13:51Z coryan $
*
* @author Carlos O'Ryan <coryan@uci.edu>
*/
ACE_INLINE void
Implicit_Deactivator::release (void)
{
this->id_ = 0;
}
| 16.714286 | 68 | 0.683761 | cflowe |
b7bb751b14dbdb5e2313c7bafb7f8c13dd0c200b | 688 | hpp | C++ | include/cand/can.hpp | zenitheesc/CAND | f746b7fce2e63453f25dbb82810f461b4f05190e | [
"Unlicense"
] | null | null | null | include/cand/can.hpp | zenitheesc/CAND | f746b7fce2e63453f25dbb82810f461b4f05190e | [
"Unlicense"
] | 7 | 2021-11-20T16:31:42.000Z | 2022-02-23T14:09:13.000Z | include/cand/can.hpp | zenitheesc/cand | f746b7fce2e63453f25dbb82810f461b4f05190e | [
"Unlicense"
] | null | null | null | #pragma once
#include <cstring>
#include <iomanip>
#include <iostream>
#include <string>
#include <unistd.h>
#include <vector>
#include <net/if.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <linux/can.h>
#include <linux/can/raw.h>
class CAN {
private:
int m_fileDescriptor;
std::string m_interfac... | 20.235294 | 60 | 0.696221 | zenitheesc |
b7c0d771b0b5697979aaf28bc3fd464c46f851eb | 954 | cpp | C++ | PrCmp/LeetCode/w3e2.cpp | ayhon/CPPWorkspace | 57d6410236096ffa0bae20b88b3e330632edc928 | [
"MIT"
] | null | null | null | PrCmp/LeetCode/w3e2.cpp | ayhon/CPPWorkspace | 57d6410236096ffa0bae20b88b3e330632edc928 | [
"MIT"
] | null | null | null | PrCmp/LeetCode/w3e2.cpp | ayhon/CPPWorkspace | 57d6410236096ffa0bae20b88b3e330632edc928 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <stack>
#include <queue>
#include <string>
using namespace std;
bool checkValidString(string s) {
stack<pair<char, int>> pila;
deque<int> stars;
for(int i = 0; i < s.size(); i++) {
if(s[i] == '{') pila.push(make_pair(s[i], i));
else if (s[i] == '}') {
if(!pila... | 19.875 | 63 | 0.541929 | ayhon |
b7c825f624e2bd7eac8956f9f195c383a0d262cb | 2,888 | cpp | C++ | modules/gapi/src/api/kernels_video.cpp | tailsu/opencv | 743f1810c7ad4895b0df164395abfb54c9e8015d | [
"Apache-2.0"
] | 3 | 2020-06-18T07:35:48.000Z | 2021-06-14T15:34:25.000Z | modules/gapi/src/api/kernels_video.cpp | tailsu/opencv | 743f1810c7ad4895b0df164395abfb54c9e8015d | [
"Apache-2.0"
] | 3 | 2019-08-28T14:18:49.000Z | 2020-02-11T10:02:57.000Z | modules/gapi/src/api/kernels_video.cpp | tailsu/opencv | 743f1810c7ad4895b0df164395abfb54c9e8015d | [
"Apache-2.0"
] | 1 | 2021-04-20T08:12:22.000Z | 2021-04-20T08:12:22.000Z | // This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2020 Intel Corporation
#include "precomp.hpp"
#include <opencv2/gapi/video.hpp>
namespace cv { namespa... | 46.580645 | 90 | 0.441828 | tailsu |
b7cc715ec2ea825ba120709b548e5c4eb2a3696d | 32,912 | cpp | C++ | csgocheat/hacks/c_ragebot.cpp | garryhvh420/e_xyz | 668d8c8c2b7ccfc3bae9e321b1a50379a5e33ec9 | [
"Apache-2.0"
] | null | null | null | csgocheat/hacks/c_ragebot.cpp | garryhvh420/e_xyz | 668d8c8c2b7ccfc3bae9e321b1a50379a5e33ec9 | [
"Apache-2.0"
] | null | null | null | csgocheat/hacks/c_ragebot.cpp | garryhvh420/e_xyz | 668d8c8c2b7ccfc3bae9e321b1a50379a5e33ec9 | [
"Apache-2.0"
] | null | null | null |
#include "c_ragebot.h"
#include "c_aimhelper.h"
#include "c_trace_system.h"
#include "../utils/math.h"
#include "../sdk/c_weapon_system.h"
#include "../sdk/c_debug_overlay.h"
#include "c_prediction_system.h"
#include "c_antiaim.h"
#include "c_resolver.h"
#include "../menu/c_menu.h"
#include "../hacks/c_hitmarker.h"
v... | 31.953398 | 243 | 0.713934 | garryhvh420 |
b7ccc055fac9110813305fd35b7dd24ed67d8900 | 5,011 | cpp | C++ | test/test_state.cpp | stfnwong/smips | f305d24e16632b0a4907607386fc9d98f3d389b5 | [
"MIT"
] | null | null | null | test/test_state.cpp | stfnwong/smips | f305d24e16632b0a4907607386fc9d98f3d389b5 | [
"MIT"
] | null | null | null | test/test_state.cpp | stfnwong/smips | f305d24e16632b0a4907607386fc9d98f3d389b5 | [
"MIT"
] | null | null | null | /*
* TEST_STATE
* Unit tests for SMIPS CPU State structure
*
* Stefan Wong 2020
*/
#define CATCH_CONFIG_MAIN
#include "catch/catch.hpp"
#include <iostream>
#include <iomanip>
#include <vector>
#include <string>
// unit(s) under test
#include "State.hpp"
#include "Program.hpp"
// for assembly helper function
... | 25.566327 | 73 | 0.633407 | stfnwong |
b7ce06f1d48c7e1edfb14fe58053aedf6e6b4292 | 1,337 | cpp | C++ | oxygine/src/Font.cpp | sanyaade-teachings/oxygine-framework_back | 6bbc9ba40e2bfb6c27c2ac008a434244c57b6df6 | [
"MIT"
] | null | null | null | oxygine/src/Font.cpp | sanyaade-teachings/oxygine-framework_back | 6bbc9ba40e2bfb6c27c2ac008a434244c57b6df6 | [
"MIT"
] | null | null | null | oxygine/src/Font.cpp | sanyaade-teachings/oxygine-framework_back | 6bbc9ba40e2bfb6c27c2ac008a434244c57b6df6 | [
"MIT"
] | null | null | null | #include "Font.h"
#include "core/NativeTexture.h"
namespace oxygine
{
/*
int key2hash(int g)
{
int k = g;
if ((g & 0xC0) == 0xC0)
{
k = k >> 8;
}
k = k & 0x3f;
//log::messageln("key: %d hash: %d", g, k);
return k;
//return g;
}
*/
Font::Font():_size(0), _baselineDistance(0), _scaleFactor(1.0... | 15.729412 | 93 | 0.623785 | sanyaade-teachings |
b7ce090af68997617309ec3bc87022de75d8d4c5 | 1,358 | cpp | C++ | Source/Renderer/Framebuffer.cpp | RichierichorgYoutube/First | e1908df3743683424a1bbe2275c54a9089f2a462 | [
"Apache-2.0"
] | null | null | null | Source/Renderer/Framebuffer.cpp | RichierichorgYoutube/First | e1908df3743683424a1bbe2275c54a9089f2a462 | [
"Apache-2.0"
] | null | null | null | Source/Renderer/Framebuffer.cpp | RichierichorgYoutube/First | e1908df3743683424a1bbe2275c54a9089f2a462 | [
"Apache-2.0"
] | null | null | null | #include "Framebuffer.h"
#include <iostream>
GLuint g_FBO;
GLuint g_Tex;
GLuint g_RBO;
bool setupFrameBuffers(){
glGenFramebuffers(1, &g_FBO);
glBindFramebuffer(GL_FRAMEBUFFER, g_FBO);
//Render texture
glGenTextures(1, &g_Tex);
glBindTexture(GL_TEXTURE_2D, g_Tex);
glTexImage2D(GL_TEXT... | 30.863636 | 99 | 0.731222 | RichierichorgYoutube |
b7ce28795d72c30bcd582da19ecfd2bbd99ee28f | 15,428 | cpp | C++ | Engine/Source/Assets/Material.cpp | jkorn2324/jkornEngine | 5822f2a311ed62e6ca495919872f0f436d300733 | [
"MIT"
] | null | null | null | Engine/Source/Assets/Material.cpp | jkorn2324/jkornEngine | 5822f2a311ed62e6ca495919872f0f436d300733 | [
"MIT"
] | null | null | null | Engine/Source/Assets/Material.cpp | jkorn2324/jkornEngine | 5822f2a311ed62e6ca495919872f0f436d300733 | [
"MIT"
] | null | null | null | #include "EnginePCH.h"
#include "Material.h"
#include "JsonFileParser.h"
#include "JsonUtils.h"
#include "AssetSerializer.h"
#include "AssetManager.h"
#include "AssetCache.h"
#include "AssetMapper.h"
#include <rapidjson\stringbuffer.h>
namespace Engine
{
static ConstantBuffer* s_internalMaterialConstantBuffer = nu... | 26.692042 | 104 | 0.717332 | jkorn2324 |
b7d25d4fdfd33fa8369a9adfdd25ea05cccce789 | 10,593 | tcc | C++ | src/flens/symmetricmatrix.tcc | wmotte/toolkid | 2a8f82e1492c9efccde9a4935ce3019df1c68cde | [
"MIT"
] | null | null | null | src/flens/symmetricmatrix.tcc | wmotte/toolkid | 2a8f82e1492c9efccde9a4935ce3019df1c68cde | [
"MIT"
] | null | null | null | src/flens/symmetricmatrix.tcc | wmotte/toolkid | 2a8f82e1492c9efccde9a4935ce3019df1c68cde | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2007, Michael Lehn
*
* 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,... | 19.472426 | 82 | 0.608515 | wmotte |
b7da5088d7622a8874588da7d57077b61ee4e02d | 205 | hpp | C++ | random/shuffle_container.hpp | ankit6776/cplib-cpp | b9f8927a6c7301374c470856828aa1f5667d967b | [
"MIT"
] | 20 | 2021-06-21T00:18:54.000Z | 2022-03-17T17:45:44.000Z | random/shuffle_container.hpp | ankit6776/cplib-cpp | b9f8927a6c7301374c470856828aa1f5667d967b | [
"MIT"
] | 56 | 2021-06-03T14:42:13.000Z | 2022-03-26T14:15:30.000Z | random/shuffle_container.hpp | ankit6776/cplib-cpp | b9f8927a6c7301374c470856828aa1f5667d967b | [
"MIT"
] | 3 | 2019-12-11T06:45:45.000Z | 2020-09-07T13:45:32.000Z | #pragma once
#include <algorithm>
#include <chrono>
#include <random>
// CUT begin
std::mt19937 rng(std::chrono::steady_clock::now().time_since_epoch().count());
// std::shuffle(v.begin(), v.end(), rng);
| 22.777778 | 78 | 0.687805 | ankit6776 |
b7db576950dafc9c7f98fbaaeafab3897adc6511 | 88 | hpp | C++ | FFmpegServer/FFmpegYAGuiDroidCapture_PacketQueue/include/Common/Object.hpp | aalekhm/OpenFF | 9df23a21727f29a871f7239ccf15e3100ae9780e | [
"MIT"
] | null | null | null | FFmpegServer/FFmpegYAGuiDroidCapture_PacketQueue/include/Common/Object.hpp | aalekhm/OpenFF | 9df23a21727f29a871f7239ccf15e3100ae9780e | [
"MIT"
] | null | null | null | FFmpegServer/FFmpegYAGuiDroidCapture_PacketQueue/include/Common/Object.hpp | aalekhm/OpenFF | 9df23a21727f29a871f7239ccf15e3100ae9780e | [
"MIT"
] | null | null | null | #pragma once
template<typename T>
struct SPacket
{
T m_pData;
SPacket* m_pNext;
};
| 9.777778 | 20 | 0.704545 | aalekhm |
b7dc786a4ffac993a857123d5a525252eef56964 | 3,464 | cpp | C++ | lib/slikenet/Samples/CrashReporter/SendFileTo.cpp | TRUEPADDii/GothicMultiplayerLauncher | 1ae083a62c083fc99bb9b1358a223ae02174af3f | [
"WTFPL"
] | 2 | 2018-04-09T12:54:20.000Z | 2018-12-07T20:34:53.000Z | lib/slikenet/Samples/CrashReporter/SendFileTo.cpp | TRUEPADDii/GothicMultiplayerLauncher | 1ae083a62c083fc99bb9b1358a223ae02174af3f | [
"WTFPL"
] | 4 | 2018-04-10T23:28:47.000Z | 2021-05-16T20:35:21.000Z | lib/slikenet/Samples/CrashReporter/SendFileTo.cpp | TRUEPADDii/GothicMultiplayerLauncher | 1ae083a62c083fc99bb9b1358a223ae02174af3f | [
"WTFPL"
] | 3 | 2019-02-13T15:10:03.000Z | 2021-07-12T19:24:07.000Z | /*
* Original work: Copyright (c) 2014, Oculus VR, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* RakNet License.txt file in the licenses directory of this source tree. An additional grant
* of patent rights can be found in the RakNet Patents.txt file... | 28.393443 | 184 | 0.727771 | TRUEPADDii |
b7dd6a077e49a5a43f1548d3a4f1175fb294b5f1 | 1,402 | cpp | C++ | Easy/125_isPalindrome/125_isPalindrome/main.cpp | yangbingjie/Leetcode | 2f1e386cfb8b2d7d49cf0e7dcf0bce1c936e1916 | [
"MIT"
] | 1 | 2020-10-08T06:15:37.000Z | 2020-10-08T06:15:37.000Z | Easy/125_isPalindrome/125_isPalindrome/main.cpp | yangbingjie/Leetcode | 2f1e386cfb8b2d7d49cf0e7dcf0bce1c936e1916 | [
"MIT"
] | null | null | null | Easy/125_isPalindrome/125_isPalindrome/main.cpp | yangbingjie/Leetcode | 2f1e386cfb8b2d7d49cf0e7dcf0bce1c936e1916 | [
"MIT"
] | null | null | null | //
// main.cpp
// 125_isPalindrome
//
// Created by Bella Yang on 2019/10/15.
// Copyright © 2019 Bella Yang. All rights reserved.
//
#include <iostream>
#include <string>
using namespace std;
class Solution {
public:
bool isSame(char ch1, char ch2){
if (isChar(ch1) ^ isChar(ch2)) {
return ... | 25.490909 | 71 | 0.409415 | yangbingjie |
b7df2a6c877b4767b8bb6d2ddca849ced1e90ee1 | 3,909 | cpp | C++ | src/Event.cpp | irov/GOAP | f8d5f061537019fccdd143b232aa8a869fdb0b2d | [
"MIT"
] | 14 | 2016-10-07T21:53:02.000Z | 2021-12-13T02:57:19.000Z | src/Event.cpp | irov/GOAP | f8d5f061537019fccdd143b232aa8a869fdb0b2d | [
"MIT"
] | null | null | null | src/Event.cpp | irov/GOAP | f8d5f061537019fccdd143b232aa8a869fdb0b2d | [
"MIT"
] | 4 | 2016-09-01T10:06:29.000Z | 2021-12-13T02:57:20.000Z | /*
* Copyright (C) 2017-2019, Yuriy Levchenko <irov13@mail.ru>
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#include "Event.h"
#include "GOAP/EventProviderInterface.h"
#include "GOAP/StlAllocator.h"
#include <algorithm>
namespace GOAP... | 26.06 | 163 | 0.458173 | irov |
b7e0f7e05b98aa6f773744013e4cf0c614dfe08c | 2,670 | cpp | C++ | cpp/template_test.cpp | dibayendu/codekata | 4055af08d3e8fd373e3dd8107f5bde82c74fe92f | [
"MIT"
] | null | null | null | cpp/template_test.cpp | dibayendu/codekata | 4055af08d3e8fd373e3dd8107f5bde82c74fe92f | [
"MIT"
] | null | null | null | cpp/template_test.cpp | dibayendu/codekata | 4055af08d3e8fd373e3dd8107f5bde82c74fe92f | [
"MIT"
] | null | null | null | // To run the program, try the command below:
// g++ tempate_test.cpp -lgtest_main -lgtest
// This is a template unit testing file using googletest.
// This checks if the number is prime and its factorials.
#include <iostream>
#include <string>
#include <limits.h>
#include "gtest/gtest.h"
// Returns n! (the factoria... | 24.054054 | 75 | 0.657678 | dibayendu |
b7e3a93e0144f15aeac02011c61d2c20db5c71b0 | 395 | cpp | C++ | ZAPD/HighLevel/HLTexture.cpp | zbanks/ZAPD | a357277e412b5e8f0f2f0578c7d7d213e8744c8d | [
"MIT"
] | null | null | null | ZAPD/HighLevel/HLTexture.cpp | zbanks/ZAPD | a357277e412b5e8f0f2f0578c7d7d213e8744c8d | [
"MIT"
] | null | null | null | ZAPD/HighLevel/HLTexture.cpp | zbanks/ZAPD | a357277e412b5e8f0f2f0578c7d7d213e8744c8d | [
"MIT"
] | null | null | null | #include "HLTexture.h"
#include "../StringHelper.h"
HLTexture* HLTexture::FromPNG(std::string pngFilePath, HLTextureType texType)
{
// int32_t comp;
HLTexture* tex = new HLTexture();
tex->type = texType;
// tex->bmpRgba = (uint8_t*)stbi_load((pngFilePath).c_str(), (int32_t*)&tex->width,
// ... | 28.214286 | 85 | 0.635443 | zbanks |
b7e6c12b01031b53dc9cd82ceabda05ae7eeee86 | 2,074 | hpp | C++ | client/systems/adminPanel/dialog/markerLog.hpp | Exonical/Vanguard_Wasteland.cup_chernarus_A3 | ee8f51807847f35c924bb8bf701e863387b603b8 | [
"MIT"
] | 1 | 2020-07-23T13:49:05.000Z | 2020-07-23T13:49:05.000Z | client/systems/adminPanel/dialog/markerLog.hpp | Exonical/Vanguard_Wasteland.cup_chernarus_A3 | ee8f51807847f35c924bb8bf701e863387b603b8 | [
"MIT"
] | null | null | null | client/systems/adminPanel/dialog/markerLog.hpp | Exonical/Vanguard_Wasteland.cup_chernarus_A3 | ee8f51807847f35c924bb8bf701e863387b603b8 | [
"MIT"
] | null | null | null | // ******************************************************************************************
// * This project is licensed under the GNU Affero GPL v3. Copyright © 2016 A3Wasteland.com *
// ******************************************************************************************
// @file Name: markerLog.hpp
#define ... | 26.253165 | 102 | 0.563645 | Exonical |
b7ea14bebef43c6e0b4aae9f1f572d0768277454 | 6,589 | hxx | C++ | libbutl/char-scanner.hxx | build2/libbutl | 405dfa3e28ab71d4f6b5210faba0e3600070a0f3 | [
"MIT"
] | 6 | 2018-05-31T06:16:37.000Z | 2021-03-19T10:37:11.000Z | libbutl/char-scanner.hxx | build2/libbutl | 405dfa3e28ab71d4f6b5210faba0e3600070a0f3 | [
"MIT"
] | 3 | 2020-06-19T05:08:42.000Z | 2021-09-29T05:23:07.000Z | libbutl/char-scanner.hxx | build2/libbutl | 405dfa3e28ab71d4f6b5210faba0e3600070a0f3 | [
"MIT"
] | 1 | 2020-06-16T14:56:48.000Z | 2020-06-16T14:56:48.000Z | // file : libbutl/char-scanner.hxx -*- C++ -*-
// license : MIT; see accompanying LICENSE file
#pragma once
#include <string> // char_traits
#include <cassert>
#include <cstddef> // size_t
#include <cstdint> // uint64_t
#include <climits> // INT_*
#include <utility> // pair, make_pair()
#include <istream>
#i... | 26.676113 | 79 | 0.615116 | build2 |
b7f16117c343d641e1dc1375ef028ab26ede9c8f | 1,131 | hpp | C++ | code/binary/include/binary/implementations/simple_heap_buffer.hpp | afxres/binary-cxx | ef84b0d5324c5add5ea8a09340471efc6221f91f | [
"MIT"
] | 1 | 2019-11-21T06:37:04.000Z | 2019-11-21T06:37:04.000Z | code/binary/include/binary/implementations/simple_heap_buffer.hpp | afxres/binary-cxx | ef84b0d5324c5add5ea8a09340471efc6221f91f | [
"MIT"
] | null | null | null | code/binary/include/binary/implementations/simple_heap_buffer.hpp | afxres/binary-cxx | ef84b0d5324c5add5ea8a09340471efc6221f91f | [
"MIT"
] | 1 | 2019-11-26T16:47:56.000Z | 2019-11-26T16:47:56.000Z | #pragma once
#include "../abstract_buffer.hpp"
namespace mikodev::binary::implementations
{
class simple_heap_buffer final : public abstract_buffer
{
private:
byte_ptr buffer_;
simple_heap_buffer(byte_ptr buffer, length_t length) : abstract_buffer(length), buffer_(buffer) {}
public:
... | 29.763158 | 106 | 0.617153 | afxres |
b7f75cde29c555019fe4d1a335999f535cd63ac5 | 24,475 | cpp | C++ | Emscripten/G3MEmscripten/G3MEmscripten/NativeGL_Emscripten.cpp | glob3mobile/g3m | 2b2c6422f05d13e0855b1dbe4e0afed241184193 | [
"BSD-2-Clause"
] | 70 | 2015-02-06T14:39:14.000Z | 2022-01-07T08:32:48.000Z | Emscripten/G3MEmscripten/G3MEmscripten/NativeGL_Emscripten.cpp | glob3mobile/g3m | 2b2c6422f05d13e0855b1dbe4e0afed241184193 | [
"BSD-2-Clause"
] | 118 | 2015-01-21T10:18:00.000Z | 2018-10-16T15:00:57.000Z | Emscripten/G3MEmscripten/G3MEmscripten/NativeGL_Emscripten.cpp | glob3mobile/g3m | 2b2c6422f05d13e0855b1dbe4e0afed241184193 | [
"BSD-2-Clause"
] | 41 | 2015-01-10T22:29:27.000Z | 2021-06-08T11:56:16.000Z |
#include "NativeGL_Emscripten.hpp"
#include <emscripten/emscripten.h>
#include "G3M/GPUProgram.hpp"
#include "G3M/Matrix44D.hpp"
#include "G3M/GPUUniform.hpp"
#include "G3M/GPUAttributeVec3Float.hpp"
#include "G3M/GPUAttributeVec4Float.hpp"
#include "G3M/GPUAttributeVec2Float.hpp"
#include "FloatBuffer_Emscripten.... | 36.259259 | 130 | 0.638447 | glob3mobile |
b7f76ee615fa6414a03506ae65cb6c4f2609c086 | 10,480 | cpp | C++ | dev/Code/Sandbox/Plugins/CryDesigner/Core/SmoothingGroupManager.cpp | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 1,738 | 2017-09-21T10:59:12.000Z | 2022-03-31T21:05:46.000Z | dev/Code/Sandbox/Plugins/CryDesigner/Core/SmoothingGroupManager.cpp | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 427 | 2017-09-29T22:54:36.000Z | 2022-02-15T19:26:50.000Z | dev/Code/Sandbox/Plugins/CryDesigner/Core/SmoothingGroupManager.cpp | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 671 | 2017-09-21T08:04:01.000Z | 2022-03-29T14:30:07.000Z | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 31.854103 | 140 | 0.606966 | jeikabu |
b7f779cc464e7d28a2721bad28df55d3bc650144 | 320 | cpp | C++ | VTable/Multiple_Inheritance/Child.cpp | PanagiotisDrakatos/Memory-Management-and-Advanced-Debugging-techniques | d0b9c6f6a43ba64781c859175a092d86f1ab784d | [
"MIT"
] | 25 | 2019-02-01T00:57:50.000Z | 2020-12-21T04:40:21.000Z | VTable/Multiple_Inheritance/Child.cpp | PanagiotisDrakatos/Memory-Management-and-Advanced-Debugging-techniques | d0b9c6f6a43ba64781c859175a092d86f1ab784d | [
"MIT"
] | null | null | null | VTable/Multiple_Inheritance/Child.cpp | PanagiotisDrakatos/Memory-Management-and-Advanced-Debugging-techniques | d0b9c6f6a43ba64781c859175a092d86f1ab784d | [
"MIT"
] | 2 | 2019-02-01T04:08:01.000Z | 2019-11-09T16:07:26.000Z | #include "Mother.cpp"
#include "Father.cpp"
class Child : public Mother, public Father {
public:
Child(){cout<<"Child constructor was called "<<endl<<endl;}
virtual void ChildMethod() {cout<<"Child::ChildMethod()"<<endl;}
void FatherFoo() override {cout<<"Child::FatherFoo()"<<endl;}
int child_data;
};
| 29.090909 | 68 | 0.675 | PanagiotisDrakatos |
b7f891a7ba52853c9a643b7027f065ab819ad0e3 | 7,570 | cpp | C++ | src/guidance/segregated_intersection_classification.cpp | aweatherlycap1/osrm-backend | 31d6d74f90fa760aa8d1f312c2593dabcbc9a69b | [
"BSD-2-Clause"
] | null | null | null | src/guidance/segregated_intersection_classification.cpp | aweatherlycap1/osrm-backend | 31d6d74f90fa760aa8d1f312c2593dabcbc9a69b | [
"BSD-2-Clause"
] | null | null | null | src/guidance/segregated_intersection_classification.cpp | aweatherlycap1/osrm-backend | 31d6d74f90fa760aa8d1f312c2593dabcbc9a69b | [
"BSD-2-Clause"
] | 1 | 2019-09-23T22:49:07.000Z | 2019-09-23T22:49:07.000Z | #include "guidance/segregated_intersection_classification.hpp"
#include "extractor/intersection/coordinate_extractor.hpp"
#include "extractor/node_based_graph_factory.hpp"
#include "util/coordinate_calculation.hpp"
#include "util/name_table.hpp"
namespace osrm
{
namespace guidance
{
namespace RoadPriorityClass = ext... | 31.02459 | 100 | 0.561691 | aweatherlycap1 |
b7fe36fbf03d79dc8d8d22506dc21257c2ac1cb6 | 1,669 | inl | C++ | Shared/Base/Serialize/SerializableFactory.inl | LukaszByczynski/tbl-4edges | 11f8c2a1e40271c542321d9d4d0e4ed24cce92c8 | [
"MIT"
] | 21 | 2015-07-19T13:47:17.000Z | 2022-03-13T11:13:28.000Z | Shared/Base/Serialize/SerializableFactory.inl | theblacklotus/4edges | 11f8c2a1e40271c542321d9d4d0e4ed24cce92c8 | [
"MIT"
] | 1 | 2018-03-24T17:54:49.000Z | 2018-03-24T17:57:01.000Z | Shared/Base/Serialize/SerializableFactory.inl | jsvennevid/tbl-4edges | 11f8c2a1e40271c542321d9d4d0e4ed24cce92c8 | [
"MIT"
] | 2 | 2019-02-07T20:42:13.000Z | 2021-02-10T07:09:47.000Z | inline SerializableFactory::SerializableFactory(Identifier host, Identifier type, u32 size) : m_host(host), m_type(type), m_size(size), m_next(ms_first), m_structures(0)
{
ms_first = this;
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
inline... | 30.345455 | 169 | 0.388856 | LukaszByczynski |
4d0193949a4f54b9c93433b4fc7fda3cfd35e49b | 1,277 | cpp | C++ | chapter2/2_4.cpp | timmyjose-study/modern-cpp | 86168776612c0ebdf49ab1c9b9f44baa83f187d5 | [
"Unlicense"
] | null | null | null | chapter2/2_4.cpp | timmyjose-study/modern-cpp | 86168776612c0ebdf49ab1c9b9f44baa83f187d5 | [
"Unlicense"
] | null | null | null | chapter2/2_4.cpp | timmyjose-study/modern-cpp | 86168776612c0ebdf49ab1c9b9f44baa83f187d5 | [
"Unlicense"
] | null | null | null | // initializer lists
#include <iostream>
#include <vector>
#include <initializer_list>
class Foo {
public:
int value_a;
int value_b;
Foo(int a, int b): value_a(a), value_b(b) {}
};
// more uniform initialisation with C++11 (and newer)
class Bar {
public:
std::vector<i... | 24.09434 | 80 | 0.490995 | timmyjose-study |
4d0298f4fa6fda8ef4417337fa2be4ad2008f732 | 262 | hpp | C++ | src/reflection/define/native/big.hpp | dmilos/reflection | 0d190d4c625f80dab2d0fde10914365695d2bcc7 | [
"Apache-2.0"
] | 2 | 2020-09-04T13:11:04.000Z | 2021-01-28T02:39:38.000Z | src/reflection/define/native/big.hpp | dmilos/reflection | 0d190d4c625f80dab2d0fde10914365695d2bcc7 | [
"Apache-2.0"
] | 1 | 2018-12-31T10:01:19.000Z | 2018-12-31T10:01:19.000Z | src/reflection/define/native/big.hpp | dmilos/reflection | 0d190d4c625f80dab2d0fde10914365695d2bcc7 | [
"Apache-2.0"
] | 1 | 2020-09-04T11:00:15.000Z | 2020-09-04T11:00:15.000Z | #ifndef reflection_define_big
#define reflection_define_big
/*big\
big.hpp
block.hpp
file.hpp
member.hpp
vector.hpp
*/
//#define reflection__CLASS_MEMBER_big( member_name, class_original::asdas )
#endif
| 13.789474 | 91 | 0.629771 | dmilos |
4d02f7a69b42404f97d4e32c7ac8e422ae17de37 | 570 | cpp | C++ | CodeForces.com/regular_rounds/#341/C.cpp | mstrechen/cp | ffac439840a71f70580a0ef197e47479e167a0eb | [
"MIT"
] | null | null | null | CodeForces.com/regular_rounds/#341/C.cpp | mstrechen/cp | ffac439840a71f70580a0ef197e47479e167a0eb | [
"MIT"
] | null | null | null | CodeForces.com/regular_rounds/#341/C.cpp | mstrechen/cp | ffac439840a71f70580a0ef197e47479e167a0eb | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
double flowers[100001];
int main(){
ios::sync_with_stdio(false);
int n,tmp1,tmp2,p;
double all,ok;
double expected = 0;
cin >> n >> p;
for(int i = 0; i<n; i++)
{
cin >> tmp1 >> tmp2;
all = tmp2-tmp1+1;
ok = tmp2/p - (tmp1-1)/p;
flowers[i] = (double... | 21.923077 | 68 | 0.582456 | mstrechen |
4d031011c01c795dff15496ca7c080fcc9c4216d | 3,295 | cpp | C++ | src/foundation/GenericAdapterFactory.cpp | Bhaskers-Blu-Org2/pmod | 92e3c0ecff25763dcfabab0c1fb86d58e60cbb1a | [
"MIT"
] | 19 | 2019-06-16T02:29:24.000Z | 2022-03-01T23:20:25.000Z | src/foundation/GenericAdapterFactory.cpp | microsoft/pmod | 92e3c0ecff25763dcfabab0c1fb86d58e60cbb1a | [
"MIT"
] | null | null | null | src/foundation/GenericAdapterFactory.cpp | microsoft/pmod | 92e3c0ecff25763dcfabab0c1fb86d58e60cbb1a | [
"MIT"
] | 5 | 2019-11-03T11:40:25.000Z | 2020-08-05T14:56:13.000Z | /***
* Copyright (C) Microsoft. All rights reserved.
* Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
*
* File:GenericAdapterFactory.cpp
****/
#include "pch.h"
#include "GenericAdapterFactory.h"
using namespace foundation;
CGenericAdapterFactory::CG... | 31.380952 | 105 | 0.655235 | Bhaskers-Blu-Org2 |
4d03314e07ac0c437fd5fd456b39838e93693cde | 3,791 | cpp | C++ | capture/ximea-usb3/CamTool/xvpSample/sampleplugin.cpp | ruedijc/jetson-cam-utils | 29fb26892cc150f9679ad7d5c3220e38f733ab04 | [
"MIT"
] | 3 | 2021-02-28T10:09:54.000Z | 2022-02-24T09:21:18.000Z | capture/ximea-usb3/CamTool/xvpSample/sampleplugin.cpp | ruedijc/jetson-cam-utils | 29fb26892cc150f9679ad7d5c3220e38f733ab04 | [
"MIT"
] | null | null | null | capture/ximea-usb3/CamTool/xvpSample/sampleplugin.cpp | ruedijc/jetson-cam-utils | 29fb26892cc150f9679ad7d5c3220e38f733ab04 | [
"MIT"
] | null | null | null | #include "sampleplugin.h"
#include <xiRtti.h>
#include <AppDelegate.h>
#include <xiCoreVersion.h>
#include "NegativeChnbl.h"
#include "BayerPseudoColorsChnbl.h"
#include "MeanGrayMeasForm.h"
#include "FlipImageCnbl.h"
#include "CameraTriggerForm.h"
//------------------------------------------------------------------... | 35.764151 | 102 | 0.546294 | ruedijc |
4d03aa1751ee7f1900597876498ca1e4ba75bf36 | 29,654 | cpp | C++ | sources/VS/ThirdParty/wxWidgets/tests/arrays/arrays.cpp | Sasha7b9Work/S8-53M2 | fdc9cb5e3feb8055fd3f7885a6f6362f62ff6b6e | [
"MIT"
] | null | null | null | sources/VS/ThirdParty/wxWidgets/tests/arrays/arrays.cpp | Sasha7b9Work/S8-53M2 | fdc9cb5e3feb8055fd3f7885a6f6362f62ff6b6e | [
"MIT"
] | null | null | null | sources/VS/ThirdParty/wxWidgets/tests/arrays/arrays.cpp | Sasha7b9Work/S8-53M2 | fdc9cb5e3feb8055fd3f7885a6f6362f62ff6b6e | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
// Name: tests/arrays/arrays.cpp
// Purpose: wxArray unit test
// Author: Vadim Zeitlin, Wlodzimierz ABX Skiba
// Created: 2004-04-01
// Copyright: (c) 2004 Vadim Zeitlin, Wlodzimierz Skiba
////////////////////////////... | 35.010626 | 98 | 0.442504 | Sasha7b9Work |
4d0401bd5bb069de1dbc19d7e90723d4de2e9594 | 4,065 | cpp | C++ | build/cpp_test/src/haxe/CallStack.cpp | TomBebb/hxecs | 80620512df7b32d70f1b59facdf8f6349192a166 | [
"BSD-3-Clause"
] | null | null | null | build/cpp_test/src/haxe/CallStack.cpp | TomBebb/hxecs | 80620512df7b32d70f1b59facdf8f6349192a166 | [
"BSD-3-Clause"
] | null | null | null | build/cpp_test/src/haxe/CallStack.cpp | TomBebb/hxecs | 80620512df7b32d70f1b59facdf8f6349192a166 | [
"BSD-3-Clause"
] | null | null | null | // Generated by Haxe 3.4.7
#include <hxcpp.h>
#ifndef INCLUDED_Std
#include <Std.h>
#endif
#ifndef INCLUDED_haxe_CallStack
#include <haxe/CallStack.h>
#endif
#ifndef INCLUDED_haxe_StackItem
#include <haxe/StackItem.h>
#endif
namespace haxe{
void CallStack_obj::__construct() { }
Dynamic CallStack_obj::__CreateEmpty(... | 28.626761 | 108 | 0.717835 | TomBebb |
4d056b04fd4b4676573d90552810a11c624bf9d8 | 28,547 | cpp | C++ | src/tpe_flow_sc.cpp | duxingyi-charles/repulsive-curves | a2e7729357cf25de4147fbfaa17a039c57b13a7a | [
"MIT"
] | null | null | null | src/tpe_flow_sc.cpp | duxingyi-charles/repulsive-curves | a2e7729357cf25de4147fbfaa17a039c57b13a7a | [
"MIT"
] | null | null | null | src/tpe_flow_sc.cpp | duxingyi-charles/repulsive-curves | a2e7729357cf25de4147fbfaa17a039c57b13a7a | [
"MIT"
] | null | null | null | #include "tpe_flow_sc.h"
#include "utils.h"
#include "product/dense_matrix.h"
#include "circle_search.h"
namespace LWS {
TPEFlowSolverSC::TPEFlowSolverSC(PolyCurveNetwork* g, double a, double b) : constraint(g)
{
curveNetwork = g;
alpha = a;
beta = b;
ls_step_threshold = 1e-15... | 39.484094 | 148 | 0.600869 | duxingyi-charles |
4d07490d1ebef20ddff7a7ac3a8c0907087fe60f | 12,036 | hpp | C++ | third_party/qpoases/include/qpOASES/SparseSolver.hpp | Shamraev/motion_imitation | 9b9166436e4996e2a03b36d19f4f5422cde9c21e | [
"Apache-2.0"
] | 1,452 | 2019-06-21T15:02:55.000Z | 2022-03-31T14:44:18.000Z | third_party/qpoases/include/qpOASES/SparseSolver.hpp | Shamraev/motion_imitation | 9b9166436e4996e2a03b36d19f4f5422cde9c21e | [
"Apache-2.0"
] | 101 | 2020-09-02T00:36:25.000Z | 2021-12-04T23:40:32.000Z | third_party/qpoases/include/qpOASES/SparseSolver.hpp | Shamraev/motion_imitation | 9b9166436e4996e2a03b36d19f4f5422cde9c21e | [
"Apache-2.0"
] | 671 | 2019-06-30T03:34:25.000Z | 2022-03-31T08:57:22.000Z | /*
* This file is part of qpOASES.
*
* qpOASES -- An Implementation of the Online Active Set Strategy.
* Copyright (C) 2007-2017 by Hans Joachim Ferreau, Andreas Potschka,
* Christian Kirches et al. All rights reserved.
*
* qpOASES is free software; you can redistribute it and/or
* modify it under the terms of ... | 30.31738 | 202 | 0.659355 | Shamraev |
4d08b5284d3efcb5b6ff2e3be098baf74df4f8f6 | 788 | cpp | C++ | tests/test/lib/test_state.cpp | mkvoya/faasm | 6d85a5507a2ce10fcd0c486251e1d26c0e013e28 | [
"Apache-2.0"
] | 1 | 2020-04-21T07:33:42.000Z | 2020-04-21T07:33:42.000Z | test/lib/test_state.cpp | TNTtian/Faasm | 377f4235063a7834724cc750697d3e0280d4a581 | [
"Apache-2.0"
] | 4 | 2020-02-03T18:54:32.000Z | 2020-05-13T18:28:28.000Z | test/lib/test_state.cpp | TNTtian/Faasm | 377f4235063a7834724cc750697d3e0280d4a581 | [
"Apache-2.0"
] | null | null | null | #include <catch/catch.hpp>
#include <faasm/state.h>
using namespace faasm;
namespace tests {
TEST_CASE("Test masking doubles", "[state]") {
// Mask of zeros to start with
std::vector<uint8_t> byteMaskArray = {
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
... | 29.185185 | 111 | 0.52665 | mkvoya |
4d090488a69ffeede804578b578e88fac5c4d3d2 | 1,740 | cpp | C++ | STL/algorithm/transform.cpp | liangjisheng/C-Cpp | 8b33ba1f43580a7bdded8bb4ce3d92983ccedb81 | [
"MIT"
] | 5 | 2019-09-17T09:12:15.000Z | 2021-05-29T10:54:39.000Z | STL/algorithm/transform.cpp | liangjisheng/C-Cpp | 8b33ba1f43580a7bdded8bb4ce3d92983ccedb81 | [
"MIT"
] | null | null | null | STL/algorithm/transform.cpp | liangjisheng/C-Cpp | 8b33ba1f43580a7bdded8bb4ce3d92983ccedb81 | [
"MIT"
] | 2 | 2021-07-26T06:36:12.000Z | 2022-01-23T15:20:30.000Z | #include"iostream"
#include"vector"
#include"algorithm"
using namespace std;
// template<class InputIterator,class OutputIterator,class UnaryOperator>
// OutputIterator transform(InputIterator first1,InputIterator last,
// OutputIterator result,UnaryOperator op);
// template<class InputIterator1,class InputIter... | 23.513514 | 73 | 0.701724 | liangjisheng |
4d09296eadfb85f15d7076cb51c4a1090d1933c6 | 316 | cpp | C++ | C++/house-robber.cpp | black-shadows/LeetCode-Solutions | b1692583f7b710943ffb19b392b8bf64845b5d7a | [
"Fair",
"Unlicense"
] | 1 | 2020-04-16T08:38:14.000Z | 2020-04-16T08:38:14.000Z | house-robber.cpp | Jeevan-kumar-Raj/LeetCode-Solutions-Topicwise | f1111b4edd401a3fc47111993bd7250cf4dc76da | [
"MIT"
] | null | null | null | house-robber.cpp | Jeevan-kumar-Raj/LeetCode-Solutions-Topicwise | f1111b4edd401a3fc47111993bd7250cf4dc76da | [
"MIT"
] | 1 | 2021-12-25T14:48:56.000Z | 2021-12-25T14:48:56.000Z | // Time: O(n)
// Space: O(1)
class Solution {
public:
int rob(vector<int>& nums) {
int last = 0, result = 0;
for (const auto& i : nums) {
auto tmp = result;
result = max(last + i, result);
last = tmp;
}
return result;
}
};
| 19.75 | 44 | 0.427215 | black-shadows |
4d0c73022fef67c16d3d3c9df859a479c89e6cfd | 16,321 | cpp | C++ | src/peco/net/utils.cpp | littlepush/libpeco | c0ca92ddb7a70cd8183ade1ee0ec57fd534e280e | [
"MIT"
] | 1 | 2020-04-14T06:31:56.000Z | 2020-04-14T06:31:56.000Z | src/peco/net/utils.cpp | littlepush/libpeco | c0ca92ddb7a70cd8183ade1ee0ec57fd534e280e | [
"MIT"
] | null | null | null | src/peco/net/utils.cpp | littlepush/libpeco | c0ca92ddb7a70cd8183ade1ee0ec57fd534e280e | [
"MIT"
] | null | null | null | /*
utils.cpp
libpeco
2022-02-17
Push Chen
*/
/*
MIT License
Copyright (c) 2019 Push Chen
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 li... | 28.533217 | 79 | 0.650818 | littlepush |
4d0d82bae2f9dd6d6d98ffa8f784b71acb1bd515 | 2,100 | hpp | C++ | console/pong/Ball.hpp | piotrek-szczygiel/rpi-tetris | 1120b0ac024ef36f48a4fe67087e3e2c78cf83f8 | [
"MIT"
] | 4 | 2019-10-17T20:26:09.000Z | 2019-11-14T12:01:57.000Z | console/pong/Ball.hpp | piotrek-szczygiel/rpi-tetris | 1120b0ac024ef36f48a4fe67087e3e2c78cf83f8 | [
"MIT"
] | null | null | null | console/pong/Ball.hpp | piotrek-szczygiel/rpi-tetris | 1120b0ac024ef36f48a4fe67087e3e2c78cf83f8 | [
"MIT"
] | null | null | null | #pragma once
#include "ParticleSystem.hpp"
#include "Player.hpp"
#include <random>
#include <raylib.h>
namespace Pong {
constexpr float FRICTION { 0.8F };
constexpr float SPEED_FACTOR { 800.0F };
constexpr float SPEED_FACTOR_POWER_UP { 1050.0F };
constexpr float PARTICLES_DELAY { 0.035F };
constexpr float BALL_POWER... | 29.577465 | 90 | 0.667619 | piotrek-szczygiel |
4d0f14fa29ac19f33da798f7a7884ac3909d5d09 | 1,116 | cpp | C++ | 6. Heaps/buildHeap_in_O(N).cpp | suraj0803/DSA | 6ea21e452d7662e2351ee2a7b0415722e1bbf094 | [
"MIT"
] | null | null | null | 6. Heaps/buildHeap_in_O(N).cpp | suraj0803/DSA | 6ea21e452d7662e2351ee2a7b0415722e1bbf094 | [
"MIT"
] | null | null | null | 6. Heaps/buildHeap_in_O(N).cpp | suraj0803/DSA | 6ea21e452d7662e2351ee2a7b0415722e1bbf094 | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
using namespace std;
void print(vector<int> v){
for(int x:v){
cout<<x<<" ";
}
cout<<endl;
}
bool minHeap = false;
bool compare(int a, int b){
if(minHeap){
return a<b;
}
else{
return a>b;
}
}
int he... | 18 | 88 | 0.512545 | suraj0803 |
4d0f51aa1d5f7b021c68be77f15dbf700c45eca9 | 1,666 | cpp | C++ | PSME/agent/chassis/tests/session_test/session_test.cpp | opencomputeproject/HWMgmt-DeviceMgr-PSME | 2a00188aab6f4bef3776987f0842ef8a8ea972ac | [
"Apache-2.0"
] | 5 | 2021-10-07T15:36:37.000Z | 2022-03-01T07:21:49.000Z | PSME/agent/chassis/tests/session_test/session_test.cpp | opencomputeproject/DM-Redfish-PSME | 912f7b6abf5b5c2aae33c75497de4753281c6a51 | [
"Apache-2.0"
] | null | null | null | PSME/agent/chassis/tests/session_test/session_test.cpp | opencomputeproject/DM-Redfish-PSME | 912f7b6abf5b5c2aae33c75497de4753281c6a51 | [
"Apache-2.0"
] | 1 | 2021-03-24T19:37:58.000Z | 2021-03-24T19:37:58.000Z | /*!
* @brief Unit tests for generation of UUIDv5
*
* @copyright
* Copyright (c) 2015-2017 Intel Corporation
*
* @copyright
* 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
*
* @copyri... | 23.138889 | 75 | 0.717887 | opencomputeproject |
4d111ffeb2e0a3a19dc24f3fbeb20669e3612e91 | 261 | cpp | C++ | VisualStudioProjects/Assembler/Assembler/FileReader.cpp | nikolabebic95/AssemblerEmulator | 62ca04e4a176ec3765b95fb1610da23273a67693 | [
"MIT"
] | 1 | 2020-04-14T10:21:04.000Z | 2020-04-14T10:21:04.000Z | VisualStudioProjects/Assembler/Assembler/FileReader.cpp | nikolabebic95/AssemblerEmulator | 62ca04e4a176ec3765b95fb1610da23273a67693 | [
"MIT"
] | null | null | null | VisualStudioProjects/Assembler/Assembler/FileReader.cpp | nikolabebic95/AssemblerEmulator | 62ca04e4a176ec3765b95fb1610da23273a67693 | [
"MIT"
] | 1 | 2019-05-20T22:39:58.000Z | 2019-05-20T22:39:58.000Z | #include "FileReader.h"
#include "StringHelper.h"
namespace bnssassembler {
std::vector<std::string> FileReader::readAllLines(std::string filename) {
auto raw_file = StringHelper::fileToString(filename);
return StringHelper::split(raw_file, "\n");
}
}
| 21.75 | 74 | 0.739464 | nikolabebic95 |
4d1419b88b24596be819e55615be446ece598eca | 11,137 | cpp | C++ | kernel/platform/pc64/src/init/LoadRootsrv.cpp | tristanseifert/kush-os | 1ffd595aae8f3dc880e798eff72365b8b6c631f0 | [
"0BSD"
] | 4 | 2021-06-22T20:52:30.000Z | 2022-02-04T00:19:44.000Z | kernel/platform/pc64/src/init/LoadRootsrv.cpp | tristanseifert/kush-os | 1ffd595aae8f3dc880e798eff72365b8b6c631f0 | [
"0BSD"
] | null | null | null | kernel/platform/pc64/src/init/LoadRootsrv.cpp | tristanseifert/kush-os | 1ffd595aae8f3dc880e798eff72365b8b6c631f0 | [
"0BSD"
] | null | null | null | #include "tar.h"
#include "elf.h"
#include <platform.h>
#include <log.h>
#include <runtime/SmartPointers.h>
#include <mem/PhysicalAllocator.h>
#include <sched/Scheduler.h>
#include <sched/Task.h>
#include <sched/Thread.h>
#include <vm/Map.h>
#include <vm/MapEntry.h>
#include <bootboot.h>
extern "C" BOOTBOOT bootboo... | 32.852507 | 130 | 0.652779 | tristanseifert |
4d171633fc426c6964f2007ca7f7cf7f215cd24f | 396 | cpp | C++ | demo_with_an_image.cpp | yuki-inaho/stag | 89c5c648acae90375fb8ffc4bf9453f1b15cc835 | [
"MIT"
] | null | null | null | demo_with_an_image.cpp | yuki-inaho/stag | 89c5c648acae90375fb8ffc4bf9453f1b15cc835 | [
"MIT"
] | null | null | null | demo_with_an_image.cpp | yuki-inaho/stag | 89c5c648acae90375fb8ffc4bf9453f1b15cc835 | [
"MIT"
] | null | null | null | #include "Stag.h"
#include <opencv2/opencv.hpp>
int main() {
cv::Mat image = cv::imread("00000.png", cv::IMREAD_GRAYSCALE);
Stag stag(15, 7, true);
stag.detectMarkers(image);
stag.logResults("");
std::vector<Marker> markers = stag.getMarkerList();
cv::Mat result_image = stag.drawMarkersWithGrayImage(ima... | 20.842105 | 64 | 0.679293 | yuki-inaho |
4d18095825a90b5f380a9e80b607b58587b2bdd4 | 604 | cpp | C++ | CF/1614.cpp | jawahiir98/CP | a32566554949cd12a62151f90ac3b82b67275cac | [
"MIT"
] | null | null | null | CF/1614.cpp | jawahiir98/CP | a32566554949cd12a62151f90ac3b82b67275cac | [
"MIT"
] | null | null | null | CF/1614.cpp | jawahiir98/CP | a32566554949cd12a62151f90ac3b82b67275cac | [
"MIT"
] | null | null | null | /*
/\ In The Name Of Allah /\
Author : Jawahiir Nabhan
*/
#include <bits/stdc++.h>
#define pb push_back
using namespace std;
typedef long long ll;
const char nl = '\n';
int main()
{
int T; cin>> T;
while(T--)
{
int N,l,r,k; cin>> N >> l >> r >> k;
vector <int> a(N);
for(int ... | 20.133333 | 52 | 0.390728 | jawahiir98 |
4d18363789494a9ef59749044f51c4b812584f2e | 450 | cpp | C++ | src/app.cpp | ShaderKitty/geodesuka | 1578f2fe3e5a7102d2e314406c89a48132a71675 | [
"MIT"
] | 3 | 2021-08-07T15:11:35.000Z | 2021-11-17T18:59:45.000Z | src/app.cpp | ShaderKitty/geodesuka | 1578f2fe3e5a7102d2e314406c89a48132a71675 | [
"MIT"
] | null | null | null | src/app.cpp | ShaderKitty/geodesuka | 1578f2fe3e5a7102d2e314406c89a48132a71675 | [
"MIT"
] | null | null | null | #include <geodesuka/engine.h>
#include <geodesuka/core/app.h>
namespace geodesuka::core {
app::app(engine* aEngine, int argc, char* argv[]) {
this->Engine = aEngine;
}
// This is used engine side to generate thread for Application.
void app::run() {
// App is now ready to be run.
this->ExitApp.store(false... | 20.454545 | 64 | 0.673333 | ShaderKitty |
4d1ad0332c11dc690a87a9178325e4946dd8226f | 1,193 | cpp | C++ | 12085 Mobile Casanova.cpp | zihadboss/UVA-Solutions | 020fdcb09da79dc0a0411b04026ce3617c09cd27 | [
"Apache-2.0"
] | 86 | 2016-01-20T11:36:50.000Z | 2022-03-06T19:43:14.000Z | 12085 Mobile Casanova.cpp | Mehedishihab/UVA-Solutions | 474fe3d9d9ba574b97fd40ca5abb22ada95654a1 | [
"Apache-2.0"
] | null | null | null | 12085 Mobile Casanova.cpp | Mehedishihab/UVA-Solutions | 474fe3d9d9ba574b97fd40ca5abb22ada95654a1 | [
"Apache-2.0"
] | 113 | 2015-12-04T06:40:57.000Z | 2022-02-11T02:14:28.000Z | #include <iostream>
using namespace std;
unsigned int numbers[100005];
int main()
{
int N, T = 1;
while (cin >> N, N)
{
for (int i = 0; i < N; ++i)
cin >> numbers[i];
numbers[N] = 0; // Never common with the one before it
cout << "Case " << T++ << ":\n";
... | 27.744186 | 88 | 0.352054 | zihadboss |
4d1bd538e0ec3cf9a0267ebf936c173cfe01adda | 5,832 | cc | C++ | third_party/blink/renderer/core/html/parser/html_view_source_parser.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | third_party/blink/renderer/core/html/parser/html_view_source_parser.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | third_party/blink/renderer/core/html/parser/html_view_source_parser.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | /*
* Copyright (C) 2010 Google, Inc. 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... | 37.625806 | 80 | 0.717078 | zealoussnow |
4d1e87888a38c56943ddd8304fa9152f5b517c05 | 9,575 | cpp | C++ | DeviceCode/pal/OpenSSL/OpenSSL_1_0_0/crypto/asn1/a_strnid.cpp | Sirokujira/MicroFrameworkPK_v4_3 | a0d80b4fd8eeda6dbdb58f6f7beb4f07f7ef563e | [
"Apache-2.0"
] | 4 | 2019-01-21T11:47:53.000Z | 2020-06-09T02:14:15.000Z | DeviceCode/pal/OpenSSL/OpenSSL_1_0_0/crypto/asn1/a_strnid.cpp | yisea123/NetmfSTM32 | 62ddb8aa0362b83d2e73f3621a56593988e3620f | [
"Apache-2.0"
] | null | null | null | DeviceCode/pal/OpenSSL/OpenSSL_1_0_0/crypto/asn1/a_strnid.cpp | yisea123/NetmfSTM32 | 62ddb8aa0362b83d2e73f3621a56593988e3620f | [
"Apache-2.0"
] | 6 | 2017-11-09T11:48:10.000Z | 2020-05-24T09:43:07.000Z | /* a_strnid.c */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 1999.
*/
/* ====================================================================
* Copyright (c) 1999 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
*... | 32.679181 | 102 | 0.726475 | Sirokujira |
4d1ea956eaaea5c6e3865e987283b15556b26719 | 1,009 | hpp | C++ | test/comparison/earcut.hpp | pboyer/earcut.hpp | 4ad849c1eb3fa850465f6a14ba31fe03de714538 | [
"ISC"
] | 16 | 2020-12-27T16:38:06.000Z | 2022-03-19T23:29:50.000Z | test/comparison/earcut.hpp | pboyer/earcut.hpp | 4ad849c1eb3fa850465f6a14ba31fe03de714538 | [
"ISC"
] | null | null | null | test/comparison/earcut.hpp | pboyer/earcut.hpp | 4ad849c1eb3fa850465f6a14ba31fe03de714538 | [
"ISC"
] | null | null | null | #pragma once
#include <mapbox/earcut.hpp>
#include <array>
#include <memory>
#include <vector>
template <typename Coord, typename Polygon>
class EarcutTesselator {
public:
using Vertex = std::array<Coord, 2>;
using Vertices = std::vector<Vertex>;
EarcutTesselator(const Polygon &polygon_)
: polygo... | 22.931818 | 80 | 0.582755 | pboyer |
4d1ebb0fdc22eed23256330354b834c1a68c3295 | 6,664 | cc | C++ | drivers/bus_driver.cc | Aden-Q/visual-transit-system-simulator | 3ae48399139375ecc55ab3139230d01d3a4962f1 | [
"MIT"
] | null | null | null | drivers/bus_driver.cc | Aden-Q/visual-transit-system-simulator | 3ae48399139375ecc55ab3139230d01d3a4962f1 | [
"MIT"
] | null | null | null | drivers/bus_driver.cc | Aden-Q/visual-transit-system-simulator | 3ae48399139375ecc55ab3139230d01d3a4962f1 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <list>
#include <random>
#include <ctime>
#include <string> //convert int to string for names
#include "bus.h"
#include "passenger.h"
#include "random_passenger_generator.h"
#include "route.h"
#include "stop.h"
int main() {
int rounds = 50; //Number of rounds of g... | 38.520231 | 110 | 0.664916 | Aden-Q |
4d270d8fceded650098263a5ff502d5ac9d11ddf | 2,962 | hpp | C++ | ishtar/include/emit/TypeName.hpp | Djelnar/mana_lang | a50feb48bd4c7a7a321bd5f28e382cbad0c6ef09 | [
"MIT"
] | null | null | null | ishtar/include/emit/TypeName.hpp | Djelnar/mana_lang | a50feb48bd4c7a7a321bd5f28e382cbad0c6ef09 | [
"MIT"
] | null | null | null | ishtar/include/emit/TypeName.hpp | Djelnar/mana_lang | a50feb48bd4c7a7a321bd5f28e382cbad0c6ef09 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <fmt/format.h>
#include "compatibility.types.hpp"
#include "utils/string.split.hpp"
#include "utils/string.replace.hpp"
#include <map>
using namespace std;
struct TypeName;
static map<tuple<int, int, int>, TypeName*>* __TypeName_cache = nullptr;
struct TypeName
{
wstring ... | 29.326733 | 138 | 0.630655 | Djelnar |
4d28deb35221698a4eb4c16efc6fd23df8704f25 | 94,063 | cc | C++ | 0012_Integer_to_Roman/0012.cc | LuciusKyle/LeetCode | 66c9090e5244b10eca0be50398764da2b4b48a6c | [
"Apache-2.0"
] | null | null | null | 0012_Integer_to_Roman/0012.cc | LuciusKyle/LeetCode | 66c9090e5244b10eca0be50398764da2b4b48a6c | [
"Apache-2.0"
] | null | null | null | 0012_Integer_to_Roman/0012.cc | LuciusKyle/LeetCode | 66c9090e5244b10eca0be50398764da2b4b48a6c | [
"Apache-2.0"
] | null | null | null |
// Symbol Value
// I 1
// V 5
// X 10
// L 50
// C 100
// D 500
// M 1000
#include <assert.h>
#include <array>
#include <string>
#include <fstream>
using std::string;
char cheat_chart[][16] = { "","I", "II", "III", "IV", "V"... | 543.716763 | 1,498 | 0.648331 | LuciusKyle |
4d297430a48c4e706fb72fb72a3f98aebcd32ae8 | 16,035 | cpp | C++ | FGUI/widgets/form.cpp | Jacckii/fgui | 668d80b00c8c3e7908f5f67dd42260fe04ac01e4 | [
"MIT"
] | null | null | null | FGUI/widgets/form.cpp | Jacckii/fgui | 668d80b00c8c3e7908f5f67dd42260fe04ac01e4 | [
"MIT"
] | null | null | null | FGUI/widgets/form.cpp | Jacckii/fgui | 668d80b00c8c3e7908f5f67dd42260fe04ac01e4 | [
"MIT"
] | null | null | null | //
// FGUI - feature rich graphical user interface
//
// library includes
#include "form.hpp"
#include "groupbox.hpp"
namespace FGUI
{
void CForm::Render()
{
// handle input system
FGUI::INPUT.PullInput();
if (FGUI::INPUT.GetKeyPress(GetKey()))
{
// toggle main form on and off
SetState(!GetState());... | 26.115635 | 207 | 0.65488 | Jacckii |
4d2a1af1df214bd2662ea9af9f4330368f286590 | 5,329 | cpp | C++ | src/clReflectScan/Main.cpp | chip5441/clReflect | d366cced2fff9aefcfc5ec6a0c97ed6c827263eb | [
"MIT"
] | null | null | null | src/clReflectScan/Main.cpp | chip5441/clReflect | d366cced2fff9aefcfc5ec6a0c97ed6c827263eb | [
"MIT"
] | 1 | 2020-02-22T09:59:21.000Z | 2020-02-22T09:59:21.000Z | src/clReflectScan/Main.cpp | chip5441/clReflect | d366cced2fff9aefcfc5ec6a0c97ed6c827263eb | [
"MIT"
] | null | null | null |
//
// ===============================================================================
// clReflect
// -------------------------------------------------------------------------------
// Copyright (c) 2011-2012 Don Williamson & clReflect Authors (see AUTHORS file)
// Released under MIT License (see LICENSE file)
... | 28.497326 | 139 | 0.64346 | chip5441 |
4d2d672703c5773c83494c90ace77bba3c193a79 | 4,527 | hpp | C++ | include/Mahi/Gui/Transform.hpp | 1over/mahi-gui | a460f831d06746eb0e83555305a3eab174ee85b9 | [
"MIT"
] | 358 | 2020-03-22T05:30:25.000Z | 2022-03-29T13:20:18.000Z | include/Mahi/Gui/Transform.hpp | 1over/mahi-gui | a460f831d06746eb0e83555305a3eab174ee85b9 | [
"MIT"
] | 32 | 2020-03-25T13:16:28.000Z | 2022-02-07T21:58:41.000Z | include/Mahi/Gui/Transform.hpp | 1over/mahi-gui | a460f831d06746eb0e83555305a3eab174ee85b9 | [
"MIT"
] | 64 | 2020-03-22T16:56:59.000Z | 2022-03-19T13:50:18.000Z | // MIT License
//
// Copyright (c) 2020 Mechatronics and Haptic Interfaces Lab - Rice University
//
// 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 l... | 41.916667 | 91 | 0.726972 | 1over |
4d2de854dd84ca179d07c01cb4c557641fbd48ce | 1,125 | cpp | C++ | N0413-Arithmetic-Slices/solution1.cpp | loyio/leetcode | 366393c29a434a621592ef6674a45795a3086184 | [
"CC0-1.0"
] | null | null | null | N0413-Arithmetic-Slices/solution1.cpp | loyio/leetcode | 366393c29a434a621592ef6674a45795a3086184 | [
"CC0-1.0"
] | null | null | null | N0413-Arithmetic-Slices/solution1.cpp | loyio/leetcode | 366393c29a434a621592ef6674a45795a3086184 | [
"CC0-1.0"
] | 2 | 2022-01-25T05:31:31.000Z | 2022-02-26T07:22:23.000Z | //
// main.cpp
// LeetCode-Solution
//
// Created by Loyio Hex on 3/3/22.
//
#include <iostream>
#include <chrono>
#include <vector>
using namespace std;
using namespace std::chrono;
class Solution {
public:
int numberOfArithmeticSlices(vector<int>& nums) {
int len = nums.size();
if (len == 1)... | 21.226415 | 74 | 0.503111 | loyio |
4d320cb4168e07c288fbf2ffe2ffa85908102660 | 3,339 | cpp | C++ | src/SSAO/GBuffer.cpp | fqhd/Sokuban | 1b41fb6c6e7c865447824eaffce0dff8c7efafa4 | [
"MIT"
] | 1 | 2021-11-17T07:52:45.000Z | 2021-11-17T07:52:45.000Z | src/SSAO/GBuffer.cpp | fqhd/Sokuban | 1b41fb6c6e7c865447824eaffce0dff8c7efafa4 | [
"MIT"
] | null | null | null | src/SSAO/GBuffer.cpp | fqhd/Sokuban | 1b41fb6c6e7c865447824eaffce0dff8c7efafa4 | [
"MIT"
] | null | null | null | #include "GBuffer.hpp"
void GBuffer::init(unsigned int width, unsigned int height){
glGenFramebuffers(1, &m_fboID);
glBindFramebuffer(GL_FRAMEBUFFER, m_fboID);
// - position color buffer
glGenTextures(1, &m_positionTextureID);
glBindTexture(GL_TEXTURE_2D, m_positionTextureID);
glTexImag... | 37.1 | 105 | 0.758311 | fqhd |
4d323d3d506b5e0b8fc0f332ea46f44510846f2b | 589 | cc | C++ | src/graphics/lib/magma/src/magma_util/platform/linux/linux_platform_port.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | 210 | 2019-02-05T12:45:09.000Z | 2022-03-28T07:59:06.000Z | src/graphics/lib/magma/src/magma_util/platform/linux/linux_platform_port.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | 56 | 2021-06-03T03:16:25.000Z | 2022-03-20T01:07:44.000Z | src/graphics/lib/magma/src/magma_util/platform/linux/linux_platform_port.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | 73 | 2019-03-06T18:55:23.000Z | 2022-03-26T12:04:51.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 "magma_util/macros.h"
#include "platform_port.h"
namespace magma {
class LinuxPlatformPort : public PlatformPort {
public:
void Close() overr... | 24.541667 | 73 | 0.743633 | allansrc |
2ec0117ea59b42bc7d14cf7d64aef029254fcde2 | 12,084 | cpp | C++ | runtime/qrt/internal_compiler/xacc_internal_compiler.cpp | vetter/qcor | 6f86835737277a26071593bb10dd8627c29d74a3 | [
"BSD-3-Clause"
] | 59 | 2019-08-22T18:40:38.000Z | 2022-03-09T04:12:42.000Z | runtime/qrt/internal_compiler/xacc_internal_compiler.cpp | vetter/qcor | 6f86835737277a26071593bb10dd8627c29d74a3 | [
"BSD-3-Clause"
] | 137 | 2019-09-13T15:50:18.000Z | 2021-12-06T14:19:46.000Z | runtime/qrt/internal_compiler/xacc_internal_compiler.cpp | vetter/qcor | 6f86835737277a26071593bb10dd8627c29d74a3 | [
"BSD-3-Clause"
] | 26 | 2019-07-08T17:30:35.000Z | 2021-12-03T16:24:12.000Z | /*******************************************************************************
* Copyright (c) 2018-, UT-Battelle, LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the MIT License
* which accompanies this distribution.
*
* Contributors:
* Alexa... | 33.566667 | 81 | 0.638613 | vetter |
2ec02fda5fe7db14036fea086c6c492bcfbc1353 | 1,017 | cpp | C++ | programs/chapter_10/old/example_10_0/modules/pir/pir.cpp | epernia/arm_book | ffdd17618c2c7372cef338fc743f517bf6f0f42b | [
"BSD-3-Clause"
] | 2 | 2021-05-03T17:21:37.000Z | 2021-06-08T08:32:07.000Z | programs/chapter_10/old/example_10_0/modules/pir/pir.cpp | epernia/arm_book | ffdd17618c2c7372cef338fc743f517bf6f0f42b | [
"BSD-3-Clause"
] | null | null | null | programs/chapter_10/old/example_10_0/modules/pir/pir.cpp | epernia/arm_book | ffdd17618c2c7372cef338fc743f517bf6f0f42b | [
"BSD-3-Clause"
] | 2 | 2020-10-14T19:06:24.000Z | 2021-06-08T08:32:09.000Z | //=====[Libraries]=============================================================
#include "mbed.h"
#include "pir.h"
//=====[Declaration of private defines]======================================
//=====[Declaration of private data types]=====================================
//=====[Declaration and initialization of p... | 26.076923 | 79 | 0.496559 | epernia |
2ec12e9175f0a442ed2324081911c226e60a13f4 | 4,563 | cpp | C++ | src/hir_expand/erased_types.cpp | bjorn3/mrustc | 01f73e7894119405ab3f92b6191f044e491c9062 | [
"MIT"
] | 1,706 | 2015-01-18T11:01:10.000Z | 2022-03-31T00:31:54.000Z | src/hir_expand/erased_types.cpp | bjorn3/mrustc | 01f73e7894119405ab3f92b6191f044e491c9062 | [
"MIT"
] | 215 | 2015-03-26T10:31:36.000Z | 2022-03-13T02:04:13.000Z | src/hir_expand/erased_types.cpp | bjorn3/mrustc | 01f73e7894119405ab3f92b6191f044e491c9062 | [
"MIT"
] | 114 | 2015-03-26T10:29:02.000Z | 2022-03-21T20:59:37.000Z | /*
* MRustC - Rust Compiler
* - By John Hodge (Mutabah/thePowersGang)
*
* hir_expand/erased_types.cpp
* - HIR Expansion - Replace `impl Trait` with the real type
*/
#include <hir/visitor.hpp>
#include <hir/expr.hpp>
#include <hir_typeck/static.hpp>
#include <algorithm>
#include "main_bindings.hpp"
namespace {
... | 30.218543 | 172 | 0.526846 | bjorn3 |
2ec2130a3012d5f534b52827cbebfd8040e4ea68 | 3,624 | cxx | C++ | reflow/dtls_wrapper/DtlsFactory.cxx | dulton/reSipServer | ac4241df81c1e3eef2e678271ffef4dda1fc6747 | [
"Apache-2.0"
] | 1 | 2019-04-15T14:10:58.000Z | 2019-04-15T14:10:58.000Z | reflow/dtls_wrapper/DtlsFactory.cxx | dulton/reSipServer | ac4241df81c1e3eef2e678271ffef4dda1fc6747 | [
"Apache-2.0"
] | null | null | null | reflow/dtls_wrapper/DtlsFactory.cxx | dulton/reSipServer | ac4241df81c1e3eef2e678271ffef4dda1fc6747 | [
"Apache-2.0"
] | 2 | 2019-10-31T09:11:09.000Z | 2021-09-17T01:00:49.000Z | #ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef USE_SSL
#include <cassert>
#include <iostream>
#include <rutil/ssl/OpenSSLInit.hxx>
#include <openssl/e_os2.h>
#include <openssl/rand.h>
#include <openssl/err.h>
#include <openssl/crypto.h>
#include <openssl/ssl.h>
#include "DtlsFactory.hxx"
#include "DtlsSocke... | 26.452555 | 94 | 0.715232 | dulton |
2ec329002a0f52f0f7939833605fed1fad4d4a0d | 2,485 | cpp | C++ | test/op/Conv2DBackPropTest.cpp | z415073783/MNN | 62c5ca47964407508a5fa802582e648fc75eb0d9 | [
"Apache-2.0"
] | null | null | null | test/op/Conv2DBackPropTest.cpp | z415073783/MNN | 62c5ca47964407508a5fa802582e648fc75eb0d9 | [
"Apache-2.0"
] | 1 | 2021-09-07T09:13:03.000Z | 2021-09-07T09:13:03.000Z | test/op/Conv2DBackPropTest.cpp | z415073783/MNN | 62c5ca47964407508a5fa802582e648fc75eb0d9 | [
"Apache-2.0"
] | 1 | 2020-03-10T02:17:47.000Z | 2020-03-10T02:17:47.000Z | //
// Conv2DBackPropTest.cpp
// MNNTests
//
// Created by MNN on 2019/9/26.
// Copyright © 2018, Alibaba Group Holding Limited
//
#include "MNNTestSuite.h"
#include "Expr.hpp"
#include "ExprCreator.hpp"
#include "TestUtils.h"
using namespace MNN::Express;
class Conv2DBackPropTest : public MNNTestCase{
virtua... | 28.895349 | 83 | 0.452314 | z415073783 |
2ec774cda8bc0c4968f2af8f7889a45a276a657f | 1,307 | hpp | C++ | lib/src/audio/summer.hpp | tlalexander/stitchEm | cdff821ad2c500703e6cb237ec61139fce7bf11c | [
"MIT"
] | 182 | 2019-04-19T12:38:30.000Z | 2022-03-20T16:48:20.000Z | lib/src/audio/summer.hpp | tlalexander/stitchEm | cdff821ad2c500703e6cb237ec61139fce7bf11c | [
"MIT"
] | 107 | 2019-04-23T10:49:35.000Z | 2022-03-02T18:12:28.000Z | lib/src/audio/summer.hpp | tlalexander/stitchEm | cdff821ad2c500703e6cb237ec61139fce7bf11c | [
"MIT"
] | 59 | 2019-06-04T11:27:25.000Z | 2022-03-17T23:49:49.000Z | // Copyright (c) 2012-2017 VideoStitch SAS
// Copyright (c) 2018 stitchEm
//
// A class to sum audio blocks
#pragma once
#include "libvideostitch/audioBlock.hpp"
#include <sstream>
namespace VideoStitch {
namespace Audio {
Status sum(std::vector<AudioBlock> &blocks, AudioBlock &output) {
ChannelLayout layout = ... | 30.395349 | 113 | 0.671002 | tlalexander |
2ecb094e1ba006a1f49447c6b506ef888ebad477 | 417 | cpp | C++ | codeforces/Codeforces_Round_535_Div3/1108C.cpp | juseongkr/BOJ | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 7 | 2020-02-03T10:00:19.000Z | 2021-11-16T11:03:57.000Z | codeforces/Codeforces_Round_535_Div3/1108C.cpp | juseongkr/Algorithm-training | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 1 | 2021-01-03T06:58:24.000Z | 2021-01-03T06:58:24.000Z | codeforces/Codeforces_Round_535_Div3/1108C.cpp | juseongkr/Algorithm-training | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 1 | 2020-01-22T14:34:03.000Z | 2020-01-22T14:34:03.000Z | #include <iostream>
using namespace std;
int n;
string s;
string p[6] = {"RGB", "RBG", "BRG", "BGR", "GBR", "GRB"};
int main()
{
cin >> n >> s;
int ans = 1e9+7, idx = 0;
for (int i=0; i<6; ++i) {
int cnt = 0;
for (int j=0; j<n; ++j)
if (s[j] != p[i][j%3])
cnt++;
if (cnt < ans) {
ans = cnt;
idx ... | 13.9 | 57 | 0.453237 | juseongkr |
2ecb0e9f2302503b0c1a8944fbdaf30fe9cc14b5 | 7,820 | cpp | C++ | moai/src/zlcore/ZLFile.cpp | jjimenezg93/ai-pathfinding | e32ae8be30d3df21c7e64be987134049b585f1e6 | [
"MIT"
] | null | null | null | moai/src/zlcore/ZLFile.cpp | jjimenezg93/ai-pathfinding | e32ae8be30d3df21c7e64be987134049b585f1e6 | [
"MIT"
] | null | null | null | moai/src/zlcore/ZLFile.cpp | jjimenezg93/ai-pathfinding | e32ae8be30d3df21c7e64be987134049b585f1e6 | [
"MIT"
] | null | null | null | // Copyright (c) 2010-2011 Zipline Games, Inc. All Rights Reserved.
// http://getmoai.com
#include "pch.h"
#ifdef NACL
#include "NaClFile.h"
#endif
#include <zlcore/zl_util.h>
#include <zlcore/ZLFile.h>
#include <zlcore/ZLFileSystem.h>
#include <zlcore/ZLVirtualPath.h>
#include <zlcore/ZLZipStream.h>
#ifdef MOAI_COM... | 21.966292 | 113 | 0.438491 | jjimenezg93 |