hexsha stringlengths 40 40 | size int64 19 11.4M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 270 | max_stars_repo_name stringlengths 5 110 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count float64 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 3 270 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 9 | max_issues_count float64 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 3 270 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 9 | max_forks_count float64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 19 11.4M | avg_line_length float64 1.93 229k | max_line_length int64 12 688k | alphanum_fraction float64 0.07 0.99 | matches listlengths 1 10 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a2e546d7916b3d0cf317c060ba3dc45fe95b5c3d | 2,876 | cpp | C++ | VC2012Samples/Windows 8 samples/C++/Windows 8 app samples/ControlChannelTrigger StreamWebSocket sample (Windows 8)/C++/ControlChannelTriggerWithStreamWebSocket/ScenarioList.xaml.cpp | alonmm/VCSamples | 6aff0b4902f5027164d593540fcaa6601a0407c3 | [
"MIT"
] | 300 | 2019-05-09T05:32:33.000Z | 2022-03-31T20:23:24.000Z | VC2012Samples/Windows 8 samples/C++/Windows 8 app samples/ControlChannelTrigger StreamWebSocket sample (Windows 8)/C++/ControlChannelTriggerWithStreamWebSocket/ScenarioList.xaml.cpp | JaydenChou/VCSamples | 9e1d4475555b76a17a3568369867f1d7b6cc6126 | [
"MIT"
] | 9 | 2016-09-19T18:44:26.000Z | 2018-10-26T10:20:05.000Z | VC2012Samples/Windows 8 samples/C++/Windows 8 app samples/ControlChannelTrigger StreamWebSocket sample (Windows 8)/C++/ControlChannelTriggerWithStreamWebSocket/ScenarioList.xaml.cpp | JaydenChou/VCSamples | 9e1d4475555b76a17a3568369867f1d7b6cc6126 | [
"MIT"
] | 633 | 2019-05-08T07:34:12.000Z | 2022-03-30T04:38:28.000Z | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
... | 37.842105 | 151 | 0.682197 | [
"object"
] |
a2ea07918d522b724be24a1d7ead3b7cd9b0e11d | 9,962 | cpp | C++ | minimal.cpp | eruffaldi/minOgreAR | e79ebfb0dd8983e9598b0daf7362135d0b65d46e | [
"Apache-2.0"
] | null | null | null | minimal.cpp | eruffaldi/minOgreAR | e79ebfb0dd8983e9598b0daf7362135d0b65d46e | [
"Apache-2.0"
] | null | null | null | minimal.cpp | eruffaldi/minOgreAR | e79ebfb0dd8983e9598b0daf7362135d0b65d46e | [
"Apache-2.0"
] | 1 | 2020-12-14T11:33:10.000Z | 2020-12-14T11:33:10.000Z | /**
Minimal AR, see also VISP vpAROgre
1) pick named monitor fullscreen
2) background image
3) camera from intrinsics
4) mesh rendered flat
*/
#include <Ogre.h>
#include <Eigen/Dense>
#include "capture.hpp"
using namespace Ogre;
void setVisionCameraProjection(Ogre::Camera *camera, int w, int h, float n, float... | 36.094203 | 145 | 0.617246 | [
"mesh"
] |
a2f895b9141f47147202662697046b29eccbfe7f | 1,123 | cpp | C++ | leetcode/840. Magic Squares In Grid/s1.cpp | zhuohuwu0603/leetcode_cpp_lzl124631x | 6a579328810ef4651de00fde0505934d3028d9c7 | [
"Fair"
] | 787 | 2017-05-12T05:19:57.000Z | 2022-03-30T12:19:52.000Z | leetcode/840. Magic Squares In Grid/s1.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | 8 | 2020-03-16T05:55:38.000Z | 2022-03-09T17:19:17.000Z | leetcode/840. Magic Squares In Grid/s1.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | 247 | 2017-04-30T15:07:50.000Z | 2022-03-30T09:58:57.000Z | // OJ: https://leetcode.com/problems/magic-squares-in-grid/
// Author: github.com/lzl124631x
// Time: O(MN)
// Space: O(1)
class Solution {
private:
bool isMagic(vector<vector<int>>& grid, int x, int y) {
if (grid[x + 1][y + 1] != 5) return false;
int cnt[9] = {0};
for (int i = 0; i < 3; ++i... | 33.029412 | 63 | 0.401603 | [
"vector"
] |
a2f95c92885c5cf4d81d0ed2025c3f41625cfce1 | 24,986 | cpp | C++ | scheduler.cpp | MUST-Quick-Fry/Process-Scheduler | da4de596fd05f4d75eb3e7067807f6971d296478 | [
"MIT"
] | 2 | 2021-09-04T03:39:22.000Z | 2021-09-08T03:29:00.000Z | Process-Scheduler/Scheduler/scheduler.cpp | MUST-Quick-Fry/Process-Scheduler | da4de596fd05f4d75eb3e7067807f6971d296478 | [
"MIT"
] | null | null | null | Process-Scheduler/Scheduler/scheduler.cpp | MUST-Quick-Fry/Process-Scheduler | da4de596fd05f4d75eb3e7067807f6971d296478 | [
"MIT"
] | 1 | 2021-09-03T02:43:35.000Z | 2021-09-03T02:43:35.000Z | #include "project.h"
#include <stdio.h>
#include <iostream>
#include <algorithm>
#include <vector>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <algorithm>
#include <iomanip>
#include <queue>
#include <math.h>
using namespace Proj... | 28.490308 | 148 | 0.380813 | [
"vector"
] |
a2fb3f3f655d1aaaf8c353b2a83c0811036077c1 | 2,350 | cpp | C++ | src/theory/builtin/theory_builtin_rewriter.cpp | FabianWolff/cvc4-debian | e38afe6cb10bdb79f0bae398b9605e4deae7578f | [
"BSL-1.0"
] | null | null | null | src/theory/builtin/theory_builtin_rewriter.cpp | FabianWolff/cvc4-debian | e38afe6cb10bdb79f0bae398b9605e4deae7578f | [
"BSL-1.0"
] | null | null | null | src/theory/builtin/theory_builtin_rewriter.cpp | FabianWolff/cvc4-debian | e38afe6cb10bdb79f0bae398b9605e4deae7578f | [
"BSL-1.0"
] | null | null | null | /********************* */
/*! \file theory_builtin_rewriter.cpp
** \verbatim
** Top contributors (to current version):
** Morgan Deters, Dejan Jovanovic, Tim King
** This file is part of the CVC4 project.
** Copyright (c) 2009-2016 by the authors listed in t... | 30.921053 | 80 | 0.630213 | [
"vector"
] |
0c06a039f29feab8f5dea214f612d10e740fad17 | 14,254 | hxx | C++ | Cores/Stella/PVStella/Stella/StellaCore/src/stella/FSNode.hxx | werminghoff/Provenance | de61b4a64a3eb8e2774e0a8ed53488c6c7aa6cb2 | [
"BSD-3-Clause"
] | 3,459 | 2015-01-07T14:07:09.000Z | 2022-03-25T03:51:10.000Z | Cores/Stella/PVStella/Stella/StellaCore/src/stella/FSNode.hxx | werminghoff/Provenance | de61b4a64a3eb8e2774e0a8ed53488c6c7aa6cb2 | [
"BSD-3-Clause"
] | 1,046 | 2018-03-24T17:56:16.000Z | 2022-03-23T08:13:09.000Z | Cores/Stella/PVStella/Stella/StellaCore/src/stella/FSNode.hxx | werminghoff/Provenance | de61b4a64a3eb8e2774e0a8ed53488c6c7aa6cb2 | [
"BSD-3-Clause"
] | 549 | 2015-01-07T14:07:15.000Z | 2022-01-07T16:13:05.000Z | //============================================================================
//
// SSSS tt lll lll
// SS SS tt ll ll
// SS tttttt eeee ll ll aaaa
// SSSS tt ee ee ll ll aa
// SS tt eeeeee ll ll aaaaa -- "An Atari 2600 VCS Emula... | 36.177665 | 119 | 0.656307 | [
"object"
] |
0c0d67e438b339d5229312606beebde1b9cf1179 | 7,484 | cpp | C++ | test/LockFreeQueue.cpp | cestlascorpion/Scorpion | c7175a0279f8d1eba2be7ba1758ddcd8fec25073 | [
"MIT"
] | null | null | null | test/LockFreeQueue.cpp | cestlascorpion/Scorpion | c7175a0279f8d1eba2be7ba1758ddcd8fec25073 | [
"MIT"
] | null | null | null | test/LockFreeQueue.cpp | cestlascorpion/Scorpion | c7175a0279f8d1eba2be7ba1758ddcd8fec25073 | [
"MIT"
] | null | null | null | #include "MPMCQueue.h"
#include "MPSCQueue.h"
#include "SPSCQueue.h"
#include <atomic>
#include <chrono>
#include <cstddef>
#include <memory>
#include <thread>
#include <vector>
using namespace std;
using namespace chrono;
using namespace scorpion;
constexpr const size_t kQueueSize = 1024;
constexpr const size_t kPr... | 26.44523 | 119 | 0.536879 | [
"vector"
] |
0c0fd04f8f90470f71b0270491a1ebb283bac4a1 | 1,692 | cpp | C++ | homecontrol-learning/programManager.cpp | andreasfertl/homecontrol-learning | d7874a8b8124791ace3d7e7bb93085746cfd603f | [
"MIT"
] | null | null | null | homecontrol-learning/programManager.cpp | andreasfertl/homecontrol-learning | d7874a8b8124791ace3d7e7bb93085746cfd603f | [
"MIT"
] | null | null | null | homecontrol-learning/programManager.cpp | andreasfertl/homecontrol-learning | d7874a8b8124791ace3d7e7bb93085746cfd603f | [
"MIT"
] | null | null | null | #include <thread>
#include <chrono>
#include <atomic>
#include "programManager.h"
#include "logging.h"
#include "seriealizeFunctions.h"
#include "thread.h"
#include "iTread.h"
#include "queuedLogger.h"
class programManagerImpl {
public:
programManagerImpl() :
m_Run(true),
m_QueuedLogger(),
m_MyLogger(m_Queued... | 19.905882 | 125 | 0.624113 | [
"vector"
] |
0c1342e6752e4901d0cd1e21fe64c611ed6df60a | 12,486 | cpp | C++ | src/mist/it/SymmetricDelta.cpp | andbanman/mist | 2546fb41bccea1f89a43dbdbed7ce3a257926b54 | [
"MIT"
] | null | null | null | src/mist/it/SymmetricDelta.cpp | andbanman/mist | 2546fb41bccea1f89a43dbdbed7ce3a257926b54 | [
"MIT"
] | 4 | 2021-03-30T21:40:44.000Z | 2021-11-08T18:54:34.000Z | src/mist/it/SymmetricDelta.cpp | andbanman/mist | 2546fb41bccea1f89a43dbdbed7ce3a257926b54 | [
"MIT"
] | null | null | null | #include <stdexcept>
#include "it/SymmetricDelta.hpp"
using namespace mist;
using namespace mist::it;
using sub2 = SymmetricDelta::sub_calc_2d;
using sub3 = SymmetricDelta::sub_calc_3d;
using sub4 = SymmetricDelta::sub_calc_4d;
void
compute_2d(EntropyCalculator& ecalc, Variable::indexes const& vars, SymmetricDelta:... | 32.515625 | 110 | 0.585135 | [
"vector"
] |
0c18a3488bb6dc6518222fee73c2a655687e30df | 1,422 | cpp | C++ | src/app/shmurp/System/Collision.cpp | FranzPoize/shmurp | 354a70fd89d0cdd9b4336961ad01d1567ac22474 | [
"Unlicense"
] | 1 | 2021-04-06T08:48:31.000Z | 2021-04-06T08:48:31.000Z | src/app/shmurp/System/Collision.cpp | FranzPoize/shmurp | 354a70fd89d0cdd9b4336961ad01d1567ac22474 | [
"Unlicense"
] | null | null | null | src/app/shmurp/System/Collision.cpp | FranzPoize/shmurp | 354a70fd89d0cdd9b4336961ad01d1567ac22474 | [
"Unlicense"
] | 1 | 2021-03-31T13:17:54.000Z | 2021-03-31T13:17:54.000Z | #include "Collision.h"
#include <Components/Health.h>
namespace ad {
Collision::Collision(aunteater::Engine &aEngine,
EventQueue<shmurp::event::Impact> & aImpactEvents) :
mEngine(aEngine),
mImpactEvents(aImpactEvents),
mColliders(mEngine)
{}
void Collision::update(const aunteater:... | 27.882353 | 99 | 0.615331 | [
"geometry"
] |
0c1bdf708435f6d81ed76627b5cb49c24cd209f9 | 13,869 | hpp | C++ | include/eepp/graphics/csprite.hpp | dogtwelve/eepp | dd672ff0e108ae1e08449ca918dc144018fb4ba4 | [
"MIT"
] | null | null | null | include/eepp/graphics/csprite.hpp | dogtwelve/eepp | dd672ff0e108ae1e08449ca918dc144018fb4ba4 | [
"MIT"
] | null | null | null | include/eepp/graphics/csprite.hpp | dogtwelve/eepp | dd672ff0e108ae1e08449ca918dc144018fb4ba4 | [
"MIT"
] | null | null | null | #ifndef EE_GRAPHICSCSPRITE_HPP
#define EE_GRAPHICSCSPRITE_HPP
#include <eepp/graphics/base.hpp>
#include <eepp/graphics/ctexturefactory.hpp>
#include <eepp/graphics/csubtexture.hpp>
#include <eepp/graphics/ctextureatlas.hpp>
namespace EE { namespace Graphics {
/** @brief A Sprite controller class, can hold and contr... | 34.414392 | 244 | 0.702718 | [
"render",
"object",
"vector"
] |
0c280c4a5c075507a4e8acd753ecc522078b6eec | 15,467 | cpp | C++ | C++/Solution.cpp | niyaoyao/leetcode-practice | 9377e14824d52b589fc9379a350c9f6c97c4c834 | [
"MIT"
] | 1 | 2019-12-26T02:11:38.000Z | 2019-12-26T02:11:38.000Z | C++/Solution.cpp | niyaoyao/leetcode-practice | 9377e14824d52b589fc9379a350c9f6c97c4c834 | [
"MIT"
] | null | null | null | C++/Solution.cpp | niyaoyao/leetcode-practice | 9377e14824d52b589fc9379a350c9f6c97c4c834 | [
"MIT"
] | null | null | null | // Solution.cpp
#include "Solution.h"
#include <cmath>
void printMap (std::map<char, int> stringMap) {
for (auto &v : stringMap) {
cout << v.first;
}
cout << "\n";
for (auto &v : stringMap) {
cout << v.second << " ";
}
cout << "\n" << endl;
}
vector<int> Solution::twoSum(vector<int>& nums, in... | 24.987076 | 228 | 0.477339 | [
"vector"
] |
0c328595ea42fce9308702f5309656d4a511191f | 1,103 | cpp | C++ | jobs/source/UpdateJobExecutionSubscriptionRequest.cpp | chsajjwal/aws-iot-device-sdk-cpp-v2 | 4cce62fc5f35589c3476f3542329ac4fa56722ec | [
"Apache-2.0"
] | 11 | 2019-03-14T06:20:44.000Z | 2019-10-14T21:55:17.000Z | jobs/source/UpdateJobExecutionSubscriptionRequest.cpp | chsajjwal/aws-iot-device-sdk-cpp-v2 | 4cce62fc5f35589c3476f3542329ac4fa56722ec | [
"Apache-2.0"
] | 50 | 2019-02-22T08:34:49.000Z | 2019-11-21T03:44:11.000Z | jobs/source/UpdateJobExecutionSubscriptionRequest.cpp | chsajjwal/aws-iot-device-sdk-cpp-v2 | 4cce62fc5f35589c3476f3542329ac4fa56722ec | [
"Apache-2.0"
] | 7 | 2019-02-28T17:32:18.000Z | 2019-09-27T18:02:46.000Z | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*
* This file is generated
*/
#include <aws/iotjobs/UpdateJobExecutionSubscriptionRequest.h>
namespace Aws
{
namespace Iotjobs
{
void UpdateJobExecutionSubscriptionRequest::LoadFromObject(
... | 27.575 | 110 | 0.640979 | [
"object"
] |
0c35dfc7fffdb3ee7f9cee510c6f470025548423 | 1,871 | cpp | C++ | day16/CPP/day16_A.cpp | prabhigupta/instaBlog | 02f219ea278d85c7799d739294c664aa5a47719a | [
"Apache-2.0"
] | null | null | null | day16/CPP/day16_A.cpp | prabhigupta/instaBlog | 02f219ea278d85c7799d739294c664aa5a47719a | [
"Apache-2.0"
] | 1 | 2021-12-25T19:22:09.000Z | 2021-12-25T19:22:09.000Z | day16/CPP/day16_A.cpp | prabhigupta/AOC2021 | 02f219ea278d85c7799d739294c664aa5a47719a | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int final_answer = 0;
vector<int> hex_to_bin(string &hex){
vector<int> answer;
for(auto i : hex){
int value;
if('0' <= i && i <= '9'){
value = i - '0';
}
else{
value = 10 + i - 'A';
}
vector<int> dummy;
for(int i = 0; i < 4; i++){
dummy.push_bac... | 18.71 | 59 | 0.575094 | [
"vector"
] |
0c3a3621f8d92f51a1e7337d4ac68948ef266f52 | 6,248 | cpp | C++ | src/concurrency/lock_manager.cpp | star013/peloton | 0e1c5f32fde00529f19f7ff5f5e7d5b4979f06ef | [
"Apache-2.0"
] | null | null | null | src/concurrency/lock_manager.cpp | star013/peloton | 0e1c5f32fde00529f19f7ff5f5e7d5b4979f06ef | [
"Apache-2.0"
] | null | null | null | src/concurrency/lock_manager.cpp | star013/peloton | 0e1c5f32fde00529f19f7ff5f5e7d5b4979f06ef | [
"Apache-2.0"
] | null | null | null | //===----------------------------------------------------------------------===//
//
// Peloton
//
// lock_manager.cpp
//
// Identification: src/concurrency/lock_manager.cpp
//
// Copyright (c) 2015-18, Carnegie Mellon University Database Group
//
//===--------------------------------------------... | 30.038462 | 80 | 0.661172 | [
"object"
] |
0c3b0b482aa9b632e138141682b63effc430d054 | 14,120 | cpp | C++ | src/DakotaGraphics.cpp | jnnccc/Dakota-orb | 96488e723be9c67f0f85be8162b7af52c312b770 | [
"MIT"
] | null | null | null | src/DakotaGraphics.cpp | jnnccc/Dakota-orb | 96488e723be9c67f0f85be8162b7af52c312b770 | [
"MIT"
] | null | null | null | src/DakotaGraphics.cpp | jnnccc/Dakota-orb | 96488e723be9c67f0f85be8162b7af52c312b770 | [
"MIT"
] | null | null | null | /* _______________________________________________________________________
DAKOTA: Design Analysis Kit for Optimization and Terascale Applications
Copyright 2014 Sandia Corporation.
This software is distributed under the GNU Lesser General Public License.
For more information, see the README file in t... | 37.255937 | 80 | 0.662535 | [
"object",
"3d"
] |
0c3e80c8926f06a5264fcfdcefdce34b0ba45400 | 7,696 | cpp | C++ | ReactAndroid/build/third-party-ndk/folly/folly/io/async/test/EventHandlerTest.cpp | kimwoongkyu/react-native-0-36-1-woogie | 4fb2d44945a6305ae3ca87be3872f9432d16f1fb | [
"BSD-3-Clause"
] | 199 | 2016-09-08T03:44:56.000Z | 2022-03-19T04:18:30.000Z | ReactAndroid/build/third-party-ndk/folly/folly/io/async/test/EventHandlerTest.cpp | kimwoongkyu/react-native-0-36-1-woogie | 4fb2d44945a6305ae3ca87be3872f9432d16f1fb | [
"BSD-3-Clause"
] | 50 | 2016-09-07T23:44:14.000Z | 2022-02-16T16:50:25.000Z | ReactAndroid/build/third-party-ndk/folly/folly/io/async/test/EventHandlerTest.cpp | kimwoongkyu/react-native-0-36-1-woogie | 4fb2d44945a6305ae3ca87be3872f9432d16f1fb | [
"BSD-3-Clause"
] | 67 | 2016-09-19T10:18:45.000Z | 2022-02-16T09:42:47.000Z | /*
* Copyright 2016 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 28.294118 | 80 | 0.590956 | [
"vector"
] |
0c3f2507148dc1ea577b9618c5b9db2ea83f29b8 | 1,040 | cpp | C++ | attn/attn_main.cpp | openbmc/openpower-hw-diags | d94291aa2f3248cd829b29a91caa137b24aea5e1 | [
"Apache-2.0"
] | null | null | null | attn/attn_main.cpp | openbmc/openpower-hw-diags | d94291aa2f3248cd829b29a91caa137b24aea5e1 | [
"Apache-2.0"
] | 1 | 2021-05-05T14:27:26.000Z | 2021-05-06T20:46:56.000Z | attn/attn_main.cpp | openbmc/openpower-hw-diags | d94291aa2f3248cd829b29a91caa137b24aea5e1 | [
"Apache-2.0"
] | null | null | null | #include <attn/attn_monitor.hpp>
namespace attn
{
/**
* @brief Attention handler application main()
*/
int attnDaemon(Config* i_config)
{
int rc = 0; // assume success
gpiod_line* line; // gpio line to monitor
boost::asio::io_service io; // async io monitoring service
// GPIO line configuration (... | 22.12766 | 77 | 0.630769 | [
"vector"
] |
0c403443f065feca88776b2fad73675669c7b33a | 4,403 | cpp | C++ | ui/luxrender2/advancedinfowidget.cpp | LuxRender/LuxRays | edb001ddeb744b534f6fe98c7b789d4635196718 | [
"Apache-2.0"
] | null | null | null | ui/luxrender2/advancedinfowidget.cpp | LuxRender/LuxRays | edb001ddeb744b534f6fe98c7b789d4635196718 | [
"Apache-2.0"
] | null | null | null | ui/luxrender2/advancedinfowidget.cpp | LuxRender/LuxRays | edb001ddeb744b534f6fe98c7b789d4635196718 | [
"Apache-2.0"
] | null | null | null | /***************************************************************************
* Copyright (C) 1998-2013 by authors (see AUTHORS.txt) *
* *
* This file is part of LuxRender. *
* ... | 39.666667 | 105 | 0.546446 | [
"solid"
] |
0c405a90d8dde79e48379ab90ad2837f74f56592 | 452 | hpp | C++ | gui/include/templates/TabBrowser.hpp | alex999990009/ample | 71336c2fb69748b8c2f27a6810e7cc047cbab359 | [
"MIT"
] | 33 | 2020-03-03T11:52:16.000Z | 2022-01-12T01:47:45.000Z | gui/include/templates/TabBrowser.hpp | alex999990009/ample | 71336c2fb69748b8c2f27a6810e7cc047cbab359 | [
"MIT"
] | 3 | 2020-04-06T10:00:04.000Z | 2021-11-07T13:02:38.000Z | gui/include/templates/TabBrowser.hpp | alex999990009/ample | 71336c2fb69748b8c2f27a6810e7cc047cbab359 | [
"MIT"
] | 7 | 2020-01-24T22:54:26.000Z | 2020-12-07T04:50:57.000Z | #pragma once
namespace ample::gui
{
template <class T>
TabObjectBrowser<T>::TabObjectBrowser(std::shared_ptr<T> object)
: _browserTarget(object) {}
template <class T>
std::shared_ptr<T> TabObjectBrowser<T>::browserTarget() const noexcept
{
return _browserTarget;
}
template <class T>
std::shared_ptr<filing::N... | 21.52381 | 99 | 0.752212 | [
"object"
] |
0c474a99801f08f82134b030faaa5b781557da0f | 585 | cc | C++ | elang/vm/machine_code_function.cc | eval1749/elang | 5208b386ba3a3e866a5c0f0271280f79f9aac8c4 | [
"Apache-2.0"
] | 1 | 2018-01-27T22:40:53.000Z | 2018-01-27T22:40:53.000Z | elang/vm/machine_code_function.cc | eval1749/elang | 5208b386ba3a3e866a5c0f0271280f79f9aac8c4 | [
"Apache-2.0"
] | 1 | 2016-01-29T00:54:49.000Z | 2016-01-29T00:54:49.000Z | elang/vm/machine_code_function.cc | eval1749/elang | 5208b386ba3a3e866a5c0f0271280f79f9aac8c4 | [
"Apache-2.0"
] | null | null | null | // Copyright 2014-2015 Project Vogue. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "elang/vm/machine_code_function.h"
#include "base/logging.h"
namespace elang {
namespace vm {
MachineCodeFunction::MachineCodeFunction(
Entr... | 24.375 | 73 | 0.736752 | [
"vector"
] |
0c47eca06dfa3b1e2fb49e71b25c819b9c77cabf | 7,907 | hpp | C++ | bitstream.hpp | pboutan/u3d | 18d1b1997b5cb24bd6ca2ac52413b0a2c4812289 | [
"Unlicense"
] | null | null | null | bitstream.hpp | pboutan/u3d | 18d1b1997b5cb24bd6ca2ac52413b0a2c4812289 | [
"Unlicense"
] | null | null | null | bitstream.hpp | pboutan/u3d | 18d1b1997b5cb24bd6ca2ac52413b0a2c4812289 | [
"Unlicense"
] | null | null | null | #pragma once
#include <cstdio>
#include <iostream>
#include <fstream>
#include <vector>
#include <string.h>
#include "types.hpp"
namespace U3D
{
enum ContextEnum {
cZero = 0, cShading, cDiffuseCount, cDiffuseColorSign, cColorDiffR, cColorDiffG, cColorDiffB, cColorDiffA, cSpecularCount,
cSpecularColorSign, c... | 32.273469 | 131 | 0.564184 | [
"vector"
] |
0c480a4f56cd49f8012a274495c6345eb96249e8 | 8,887 | cpp | C++ | temporal_monitor/src/main.cpp | kyberszittya/safety-critical-robotics | 7638a262da3740e07e2301a4438ee2339dd7d12f | [
"BSD-3-Clause"
] | null | null | null | temporal_monitor/src/main.cpp | kyberszittya/safety-critical-robotics | 7638a262da3740e07e2301a4438ee2339dd7d12f | [
"BSD-3-Clause"
] | null | null | null | temporal_monitor/src/main.cpp | kyberszittya/safety-critical-robotics | 7638a262da3740e07e2301a4438ee2339dd7d12f | [
"BSD-3-Clause"
] | null | null | null | /*
* main.cpp
*
* Created on: Sep 10, 2019
* Author: kyberszittya
*/
#include <limits>
#include <memory>
#include <ros/ros.h>
#include <Eigen/Dense>
#include <autoware_msgs/CloudClusterArray.h>
#include <autoware_msgs/Lane.h>
#include <autoware_msgs/LaneArray.h>
#include <geometry_msgs/PoseStamped.h>
#inclu... | 35.548 | 134 | 0.76415 | [
"object",
"transform"
] |
0c48f5b6e97ea9b895bc23f46fdf6f1be0ca021e | 334 | cpp | C++ | Source/NIIC/Private/NightSphereInheritance.cpp | ameyghan/Night | fb84d69ee9c7a804bc0671c7308b20cc79b0e65d | [
"MIT"
] | null | null | null | Source/NIIC/Private/NightSphereInheritance.cpp | ameyghan/Night | fb84d69ee9c7a804bc0671c7308b20cc79b0e65d | [
"MIT"
] | null | null | null | Source/NIIC/Private/NightSphereInheritance.cpp | ameyghan/Night | fb84d69ee9c7a804bc0671c7308b20cc79b0e65d | [
"MIT"
] | null | null | null | #include "NightSphereInheritance.h"
ANightSphereInheritance::ANightSphereInheritance(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
}
void ANightSphereInheritance::OnConstruction(const FTransform& Transform)
{
Super::OnConstruction(Transform);
}
void ANightSphereInheritance::Used(APawn* P... | 17.578947 | 93 | 0.811377 | [
"transform"
] |
0c49f1c8ec0e7f91d9b1bf7e418837b7948cf8e9 | 2,291 | cpp | C++ | Source/Interpolant.cpp | BlueLort/Lort-Renderer | f0698af318e7b17a363dd31d5c9ee8870527fe0c | [
"MIT"
] | 3 | 2019-08-23T10:59:40.000Z | 2021-12-25T21:32:41.000Z | Source/Interpolant.cpp | BlueLort/Software-Renderer | f0698af318e7b17a363dd31d5c9ee8870527fe0c | [
"MIT"
] | null | null | null | Source/Interpolant.cpp | BlueLort/Software-Renderer | f0698af318e7b17a363dd31d5c9ee8870527fe0c | [
"MIT"
] | 1 | 2022-03-29T15:37:49.000Z | 2022-03-29T15:37:49.000Z | #include "Interpolant.h"
/*
p0-----p4
/| \ /
/ | p1
/ | /
/ p3
/ /
/ / <----- assume that is a line
/ /
//
p3
*/
///INTERPOLATING ACCORDING TO THE SHAPE ABOVE...
// p1,p2,p3,p4 same line.... | 34.19403 | 114 | 0.574858 | [
"shape"
] |
31c0917edb1b0d5aba61758d14b991bf455d5861 | 822 | cpp | C++ | Template/Template/CastleVania/GCamera.cpp | funny622/Game2020Plus | 50dad4afe2d3dd538fec4ffe7d4f652d3d226901 | [
"MIT"
] | null | null | null | Template/Template/CastleVania/GCamera.cpp | funny622/Game2020Plus | 50dad4afe2d3dd538fec4ffe7d4f652d3d226901 | [
"MIT"
] | null | null | null | Template/Template/CastleVania/GCamera.cpp | funny622/Game2020Plus | 50dad4afe2d3dd538fec4ffe7d4f652d3d226901 | [
"MIT"
] | null | null | null | #include "GCamera.h"
GCamera::GCamera()
{
viewport.x = 1;
viewport.y = G_ScreenHeight;
}
void GCamera::SetSizeMap(int _max, int _min)
{
_maxSize = _max;
_minSize = _min;
}
D3DXVECTOR2 GCamera::Transform(int x, int y)
{
D3DXMATRIX matrix;
D3DXMatrixIdentity (&matrix);
matrix._22 = -1;
matrix._41 = -viewport.x... | 18.681818 | 66 | 0.709246 | [
"transform"
] |
31c110f4083a476dd40c3ccd1246fa4cc66443a7 | 5,918 | cxx | C++ | Pando/src/JobQueue.cxx | jjzhang166/Pando | ab9b37eeaefdd6ee06b38b590e1fa60912e7aca9 | [
"FSFAP"
] | null | null | null | Pando/src/JobQueue.cxx | jjzhang166/Pando | ab9b37eeaefdd6ee06b38b590e1fa60912e7aca9 | [
"FSFAP"
] | null | null | null | Pando/src/JobQueue.cxx | jjzhang166/Pando | ab9b37eeaefdd6ee06b38b590e1fa60912e7aca9 | [
"FSFAP"
] | null | null | null | // SciTE - Scintilla based Text Editor
/** @file JobQueue.cxx
** Define job queue
**/
// SciTE & Scintilla copyright 1998-2003 by Neil Hodgson <neilh@scintilla.org>
// Copyright 2007 by Neil Hodgson <neilh@scintilla.org>, from April White <april_white@sympatico.ca>
// The License.txt file describes the conditions und... | 30.193878 | 141 | 0.647178 | [
"vector"
] |
31c716feda5deb95cd421602376b33b7b76a803a | 1,663 | hpp | C++ | __unit_tests/gv_framework_unit_test/unit_test_gesture_2d.hpp | dragonsn/gv_game_engine | dca6c1fb1f8d96e9a244f157a63f8a69da084b0f | [
"MIT"
] | 2 | 2018-12-03T13:17:31.000Z | 2020-04-08T07:00:02.000Z | __unit_tests/gv_framework_unit_test/unit_test_gesture_2d.hpp | dragonsn/gv_game_engine | dca6c1fb1f8d96e9a244f157a63f8a69da084b0f | [
"MIT"
] | null | null | null | __unit_tests/gv_framework_unit_test/unit_test_gesture_2d.hpp | dragonsn/gv_game_engine | dca6c1fb1f8d96e9a244f157a63f8a69da084b0f | [
"MIT"
] | null | null | null | #include "gv_base/gesture/gv_gesture.h"
namespace unit_test_gesture_2d
{
int tick_count = 0;
class gv_unit_test_gesture_2d : public gv_unit_test_with_renderer
{
public:
gv_int m_max_frame;
gv_bool m_drag_started;
gvt_array< gv_vector2 > path;
gv_gesture gesture;
gv_string last_gesture;
gv_float last_score;
virtu... | 22.780822 | 88 | 0.678292 | [
"render"
] |
31d3733d40e1fef0446b6ba75902621bb066d331 | 2,764 | cpp | C++ | external/mesh-fusion/libfusioncpu/fusion.cpp | FooVizDevs/occupancy_networks | 8668618123449cbd77ddb539e1902682b738086d | [
"MIT"
] | 801 | 2019-05-04T19:14:54.000Z | 2022-03-29T08:47:12.000Z | external/mesh-fusion/libfusioncpu/fusion.cpp | FooVizDevs/occupancy_networks | 8668618123449cbd77ddb539e1902682b738086d | [
"MIT"
] | 106 | 2019-05-05T15:27:07.000Z | 2022-03-22T23:01:23.000Z | external/mesh-fusion/libfusioncpu/fusion.cpp | FooVizDevs/occupancy_networks | 8668618123449cbd77ddb539e1902682b738086d | [
"MIT"
] | 202 | 2019-05-05T08:42:30.000Z | 2022-03-29T08:47:15.000Z | #include "fusion.h"
#include <cmath>
#include <vector>
#if defined(_OPENMP)
#include <omp.h>
#endif
template <typename FusionFunctorT>
void fusion_cpu(const Views& views, const FusionFunctorT functor, float vx_size, int n_threads, Volume& vol) {
int vx_res3 = vol.depth_ * vol.height_ * vol.width_;
#if defined(_O... | 38.929577 | 191 | 0.700434 | [
"vector"
] |
31d407fc1507a0f84824a298e249c0f621867b07 | 8,335 | cpp | C++ | common/src/math/algebra/point/Point3.cpp | petitg1987/urchinEngine | a14a57ac49a19237d748d2eafc7c2a38a45b95d6 | [
"BSL-1.0"
] | 18 | 2020-06-12T00:04:46.000Z | 2022-01-11T14:56:19.000Z | common/src/math/algebra/point/Point3.cpp | petitg1987/urchinEngine | a14a57ac49a19237d748d2eafc7c2a38a45b95d6 | [
"BSL-1.0"
] | null | null | null | common/src/math/algebra/point/Point3.cpp | petitg1987/urchinEngine | a14a57ac49a19237d748d2eafc7c2a38a45b95d6 | [
"BSL-1.0"
] | 6 | 2020-08-16T15:58:41.000Z | 2022-03-05T13:17:50.000Z | #include <math/algebra/point/Point3.h>
namespace urchin {
template<class T> Point3<T>::Point3() :
X(0), Y(0), Z(0) {
}
template<class T> Point3<T>::Point3(T Xu, T Yu, T Zu) :
X(Xu), Y(Yu), Z(Zu) {
}
template<class T> Point3<T>::Point3(const Point2<T>& p, T Zu) :
... | 32.431907 | 105 | 0.55009 | [
"vector"
] |
31dafa94bb5e8c155e6811ae823325291a2d65d5 | 4,557 | cpp | C++ | tests/horner_evaluation_test.cpp | mtao/core | 91f9bc6e852417989ed62675e2bb372e6afc7325 | [
"MIT"
] | null | null | null | tests/horner_evaluation_test.cpp | mtao/core | 91f9bc6e852417989ed62675e2bb372e6afc7325 | [
"MIT"
] | 4 | 2020-04-18T16:16:05.000Z | 2020-04-18T16:17:36.000Z | tests/horner_evaluation_test.cpp | mtao/core | 91f9bc6e852417989ed62675e2bb372e6afc7325 | [
"MIT"
] | null | null | null | #include <iostream>
#include <array>
#include <mtao/algebra/horner_evaluation.hpp>
#include "mtao/geometry/grid/grid_utils.h"
#include <Eigen/Dense>
#include <iterator>
int main() {
std::array<int,3> coeffs{{1,1,0}};
for(int i = 0; i < 10; ++i) {
std::cout << mtao::algebra::horner_evaluate(i,coeffs) ... | 33.755556 | 124 | 0.44503 | [
"geometry"
] |
31db47bcf4a9e46af8f55a23d0e79b77a078ef00 | 5,578 | hpp | C++ | src/xor/container/xor_queue.hpp | tum-db/partitioned-filters | 56c20102715a442cbec9ecb732d41de15b31c828 | [
"MIT"
] | 5 | 2021-08-16T17:48:45.000Z | 2022-03-10T22:53:54.000Z | src/xor/container/xor_queue.hpp | tum-db/partitioned-filters | 56c20102715a442cbec9ecb732d41de15b31c828 | [
"MIT"
] | null | null | null | src/xor/container/xor_queue.hpp | tum-db/partitioned-filters | 56c20102715a442cbec9ecb732d41de15b31c828 | [
"MIT"
] | null | null | null | #pragma once
#include <cstdint>
#include <cstddef>
#include <bloom/bloom_parameter.hpp>
#include "xor_set.hpp"
namespace filters::nxor {
template<Variant variant, typename Hasher, typename Vector, typename Addresser>
struct XorQueue {
};
template<typename Hasher, typename Vector, typename Addresser>... | 33.005917 | 100 | 0.529222 | [
"vector"
] |
31dcf44465e4bdccbd26a470a045d3c3ff3baffc | 88,552 | cpp | C++ | com/netfx/src/clr/jit/il/lclvars.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | com/netfx/src/clr/jit/il/lclvars.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | com/netfx/src/clr/jit/il/lclvars.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | // ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XX ... | 29.458417 | 126 | 0.492784 | [
"object"
] |
31e301d9901566d44f67d27a43261e062cf86878 | 1,045 | cpp | C++ | src/debug_gui/types/pose2d.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/debug_gui/types/pose2d.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/debug_gui/types/pose2d.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | #include "beat/src/pose2d.hpp"
#include "debug_gui/types/vector.hpp"
#include "../../imgui/imgui.h"
#include "../indent.hpp"
#include "../entry_field.hpp"
#include "../spacing.hpp"
namespace rev {
namespace debug {
namespace inner {
namespace {
const char *lb_pose2d = "Pose2D",
*lb_offset = "Offset",
... | 21.770833 | 42 | 0.566507 | [
"vector"
] |
31ead736c86b6b4bbe2423d8a10de1f24096325a | 7,710 | cpp | C++ | src/particle_filter.cpp | RaulDa/CarND-Kidnapped-Vehicle-P8 | fd20f5ece8655bcdc6a8e7f2622c973403bcf7f6 | [
"MIT"
] | null | null | null | src/particle_filter.cpp | RaulDa/CarND-Kidnapped-Vehicle-P8 | fd20f5ece8655bcdc6a8e7f2622c973403bcf7f6 | [
"MIT"
] | null | null | null | src/particle_filter.cpp | RaulDa/CarND-Kidnapped-Vehicle-P8 | fd20f5ece8655bcdc6a8e7f2622c973403bcf7f6 | [
"MIT"
] | null | null | null | /*
* particle_filter.cpp
*
* Created on: Dec 12, 2016
* Author: Tiffany Huang / Raul Davila
*/
#include <random>
#include <algorithm>
#include <iostream>
#include <numeric>
#include <math.h>
#include <iostream>
#include <sstream>
#include <string>
#include <iterator>
#include "particle_filter.h"
using na... | 30.717131 | 174 | 0.70869 | [
"vector"
] |
31ed0b3697aadc568723c89380202081a1117439 | 9,688 | cpp | C++ | Shaders.cpp | tszalay/darkvis | 1513ada5ea7af9702f16adf0215a7cc9df1ad4d4 | [
"MIT"
] | null | null | null | Shaders.cpp | tszalay/darkvis | 1513ada5ea7af9702f16adf0215a7cc9df1ad4d4 | [
"MIT"
] | null | null | null | Shaders.cpp | tszalay/darkvis | 1513ada5ea7af9702f16adf0215a7cc9df1ad4d4 | [
"MIT"
] | null | null | null | #include <string>
#include "Render.h"
// This file contains the shader program code for all shaders
string FRAG_LOGSCALE = "\
/* the input floating-point buffer texture */ \
uniform sampler2D src; \
/* and the color table texture */ \
uniform sampler2D ctable; \
\
uniform vec2 logminscl; \
u... | 30.275 | 73 | 0.491123 | [
"render",
"transform"
] |
31f12f1828774d118c2b32d435c20a130e3887c4 | 9,285 | hpp | C++ | include/processing.hpp | frc5431/Copernicus | f68dda55231b2d6503f8f87425f4150df0176918 | [
"MIT"
] | null | null | null | include/processing.hpp | frc5431/Copernicus | f68dda55231b2d6503f8f87425f4150df0176918 | [
"MIT"
] | null | null | null | include/processing.hpp | frc5431/Copernicus | f68dda55231b2d6503f8f87425f4150df0176918 | [
"MIT"
] | null | null | null | /*------------------------------------------------------------------------------||
| |
| Copyright (C) 2017 by Titan Robotics |
| License Date: 01/23/2017 ... | 52.162921 | 244 | 0.709208 | [
"object",
"vector"
] |
ee0497d6547db13c6f761f03496093aa031a7ae6 | 667 | cpp | C++ | source/scene/node.cpp | LavenSun/LSRViewer | 615dcb63ec913c40bdfba6b1096365c6a0391206 | [
"MIT"
] | 1 | 2021-05-18T01:38:52.000Z | 2021-05-18T01:38:52.000Z | source/scene/node.cpp | LavenSun/LSRViewer | 615dcb63ec913c40bdfba6b1096365c6a0391206 | [
"MIT"
] | null | null | null | source/scene/node.cpp | LavenSun/LSRViewer | 615dcb63ec913c40bdfba6b1096365c6a0391206 | [
"MIT"
] | null | null | null | #include <scene/node.h>
#include <scene/scene.h>
namespace chaf
{
Node::Node(Scene& scene, const std::string& name) :
scene{ scene },
name{ name },
handle{ scene.registry.create() }
{
}
void Node::setParent(Node& node)
{
parent = &node;
}
void Node::addChild(Node& node)
{
children.push_back(&node);... | 13.895833 | 52 | 0.643178 | [
"vector"
] |
ee05e062c9d78784e7d18ef789e1d3bbb21019ec | 2,541 | cpp | C++ | src/Boid.cpp | nventuro/boids | 468b3deba2be2a5a4ff47c5808b2538d7aa71a27 | [
"MIT"
] | 1 | 2019-12-30T16:30:40.000Z | 2019-12-30T16:30:40.000Z | src/Boid.cpp | nventuro/boids | 468b3deba2be2a5a4ff47c5808b2538d7aa71a27 | [
"MIT"
] | null | null | null | src/Boid.cpp | nventuro/boids | 468b3deba2be2a5a4ff47c5808b2538d7aa71a27 | [
"MIT"
] | null | null | null | #include "Boid.h"
#include "ofMath.h"
#include "ofGraphics.h"
#include "Behaviour.h"
#include <ctgmath>
Boid::Boid(BoidMisc::Type type, const std::vector<Behaviour*> &behaviours):
type(type), config(Config::boids_by_type[type]), behaviours(behaviours)
{
id = getNextID();
pos.x = ofRandom(Config::width);... | 21.533898 | 134 | 0.624557 | [
"vector"
] |
ee104591ba5860ce9ac09085c3281dcda0d1b9b7 | 382 | cpp | C++ | cpp_source/ch15/text_query/main.cpp | nhyilin/Cpp_Primer_Practice | f66beedaa138d08b7a1ab6f590ccc1112c49b372 | [
"MIT"
] | null | null | null | cpp_source/ch15/text_query/main.cpp | nhyilin/Cpp_Primer_Practice | f66beedaa138d08b7a1ab6f590ccc1112c49b372 | [
"MIT"
] | null | null | null | cpp_source/ch15/text_query/main.cpp | nhyilin/Cpp_Primer_Practice | f66beedaa138d08b7a1ab6f590ccc1112c49b372 | [
"MIT"
] | null | null | null |
#include <iostream>
#include <string>
#include <vector>
#include <memory>
#include <fstream>
#include "queryresult.h"
#include "textquery.h"
#include "query_base.h"
#include "query.h"
#include "andquery.h"
#include "orquery.h"
int main()
{
std::ifstream file("storyDataFile.txt");
TextQuery tQuery(file);
... | 14.148148 | 44 | 0.662304 | [
"vector"
] |
ee15b304c2aa7596e86a3c3a15a7319332d08112 | 2,542 | cpp | C++ | main.cpp | pyth/tabs_player | 12ff22f03afad6dc164f530f04e698d2dabe682e | [
"MIT"
] | 1 | 2020-03-09T08:54:23.000Z | 2020-03-09T08:54:23.000Z | main.cpp | pyth/tabs_player | 12ff22f03afad6dc164f530f04e698d2dabe682e | [
"MIT"
] | null | null | null | main.cpp | pyth/tabs_player | 12ff22f03afad6dc164f530f04e698d2dabe682e | [
"MIT"
] | null | null | null | #include <iostream>
#include <chrono>
#include <thread>
#include <fstream>
#include <vector>
#include <string>
#ifdef __linux__
#include <AL/al.h>
#include <AL/alut.h>
#elif WIN32
#include <al.h>
#include <alut.h>
#endif
#include "notes.h"
static void play(std::vector<ALfloat>& freq, ALfloat dur... | 23.109091 | 79 | 0.59284 | [
"vector"
] |
ee2821141c55192227e5d23bbd68183f05c4fa0b | 2,570 | hpp | C++ | OcularCore/include/Performance/ProfilerNode.hpp | ssell/OcularEngine | c80cc4fcdb7dd7ce48d3af330bd33d05312076b1 | [
"Apache-2.0"
] | 8 | 2017-01-27T01:06:06.000Z | 2020-11-05T20:23:19.000Z | OcularCore/include/Performance/ProfilerNode.hpp | ssell/OcularEngine | c80cc4fcdb7dd7ce48d3af330bd33d05312076b1 | [
"Apache-2.0"
] | 39 | 2016-06-03T02:00:36.000Z | 2017-03-19T17:47:39.000Z | OcularCore/include/Performance/ProfilerNode.hpp | ssell/OcularEngine | c80cc4fcdb7dd7ce48d3af330bd33d05312076b1 | [
"Apache-2.0"
] | 4 | 2019-05-22T09:13:36.000Z | 2020-12-01T03:17:45.000Z | /**
* Copyright 2014-2017 Steven T Sell (ssell@vertexfragment.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | 32.125 | 114 | 0.531907 | [
"vector"
] |
0c58c5f4f918da3b1b65f1ef2301c6460db79f6a | 40,404 | hpp | C++ | include/Lucena-Utilities/lulFeatureSetup.hpp | bitweeder/Lucena-Utilities | e651cb55557cc785b7a75e0a12c4acb34d0dc5f4 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | include/Lucena-Utilities/lulFeatureSetup.hpp | bitweeder/Lucena-Utilities | e651cb55557cc785b7a75e0a12c4acb34d0dc5f4 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | include/Lucena-Utilities/lulFeatureSetup.hpp | bitweeder/Lucena-Utilities | e651cb55557cc785b7a75e0a12c4acb34d0dc5f4 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | /*------------------------------------------------------------------------------
Lucena Utilities Library
“FeatureSetup.hpp”
Copyright © 2018 Lucena
All Rights Reserved
This file is distributed under the University of Illinois Open Source
License. See license/License.txt for details.
lulFeatureSetup.hpp is a ... | 43.351931 | 80 | 0.780344 | [
"vector"
] |
0c5a43a6fa94b69ede9964ebaa5c96cbb5560e55 | 950 | cpp | C++ | src/action/ActionGroup.cpp | kevinkraft/RTS_3 | c75c3652650bd0a9610058d414ad562b9b5325c1 | [
"MIT"
] | 1 | 2020-05-17T09:02:27.000Z | 2020-05-17T09:02:27.000Z | src/action/ActionGroup.cpp | kevinkraft/RTS_3 | c75c3652650bd0a9610058d414ad562b9b5325c1 | [
"MIT"
] | null | null | null | src/action/ActionGroup.cpp | kevinkraft/RTS_3 | c75c3652650bd0a9610058d414ad562b9b5325c1 | [
"MIT"
] | null | null | null | #include "ActionGroup.h"
#include "Action.h"
#include <vector>
#include <algorithm>
ActionGroup::ActionGroup()
{}
ActionGroup::~ActionGroup()
{
for(std::vector<Action*>::iterator it = mActions.begin(); it != mActions.end(); ++it)
{
delete (*it);
}
}
void ActionGroup::appendAction(Action* act)
{
std... | 18.269231 | 101 | 0.661053 | [
"vector"
] |
0c615ea6e8305ca4e9e1f7492e170f89ea36f8a8 | 1,018 | cpp | C++ | 2nd/174_dungeon_game.cpp | buptlxb/leetcode | b641419de040801c4f54618d7ee26edcf10ee53c | [
"BSD-3-Clause"
] | null | null | null | 2nd/174_dungeon_game.cpp | buptlxb/leetcode | b641419de040801c4f54618d7ee26edcf10ee53c | [
"BSD-3-Clause"
] | null | null | null | 2nd/174_dungeon_game.cpp | buptlxb/leetcode | b641419de040801c4f54618d7ee26edcf10ee53c | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <vector>
#include <map>
#include <algorithm>
using namespace std;
class Solution {
public:
typedef vector<vector<int> >::size_type sz_t;
int calculateMinimumHP(vector<vector<int> >& dungeon) {
if (dungeon.empty())
return 0;
vector<vector<int> > dp(dunge... | 29.085714 | 111 | 0.490177 | [
"vector"
] |
0c66b2791c94e630d0cb9cec119fd41bea19fb80 | 4,586 | cpp | C++ | libs/ml/benchmark/metrics/metrics.cpp | chr15murray/ledger | 85be05221f19598de8c6c58652139a1f2d9e362f | [
"Apache-2.0"
] | 96 | 2018-08-23T16:49:05.000Z | 2021-11-25T00:47:16.000Z | libs/ml/benchmark/metrics/metrics.cpp | chr15murray/ledger | 85be05221f19598de8c6c58652139a1f2d9e362f | [
"Apache-2.0"
] | 1,011 | 2018-08-17T12:25:21.000Z | 2021-11-18T09:30:19.000Z | libs/ml/benchmark/metrics/metrics.cpp | chr15murray/ledger | 85be05221f19598de8c6c58652139a1f2d9e362f | [
"Apache-2.0"
] | 65 | 2018-08-20T20:05:40.000Z | 2022-02-26T23:54:35.000Z | //------------------------------------------------------------------------------
//
// Copyright 2018-2020 Fetch.AI Limited
//
// 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
//
// ... | 46.795918 | 94 | 0.73986 | [
"vector"
] |
0c6de0b6590bfe8eb6c0c5c4c0078445cc63acee | 4,356 | cpp | C++ | Netcode/Graphics/DX12/DX12Common.cpp | tyekx/netcode | c46fef1eeb33ad029d0c262d39309dfa83f76c4d | [
"MIT"
] | null | null | null | Netcode/Graphics/DX12/DX12Common.cpp | tyekx/netcode | c46fef1eeb33ad029d0c262d39309dfa83f76c4d | [
"MIT"
] | null | null | null | Netcode/Graphics/DX12/DX12Common.cpp | tyekx/netcode | c46fef1eeb33ad029d0c262d39309dfa83f76c4d | [
"MIT"
] | null | null | null | #include "DX12Common.h"
#include "DX12Includes.h"
#include <Netcode/Utility.h>
#include <sstream>
#include <cstdlib>
#include <cstdio>
#include <cstdarg>
#include <string>
#include <comdef.h>
namespace Netcode::Graphics::DX12 {
void DebugPrintBlob(com_ptr<ID3DBlob> blob) {
if(blob != nullptr) {
OutputDebugSt... | 27.396226 | 86 | 0.706382 | [
"model"
] |
0c762b5855b0498ba7e6de22e790edbb41c4c133 | 13,100 | cpp | C++ | src/mame/drivers/hexion.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 26 | 2015-03-31T06:25:51.000Z | 2021-12-14T09:29:04.000Z | src/mame/drivers/hexion.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | null | null | null | src/mame/drivers/hexion.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 10 | 2015-03-27T05:45:51.000Z | 2022-02-04T06:57:36.000Z | // license:BSD-3-Clause
// copyright-holders:Nicola Salmoria
/***************************************************************************
Hexion (GX122) (c) 1992 Konami
driver by Nicola Salmoria
Notes:
- The board has a 052591, which is used for protection in Thunder Cross and
S.P.Y. In this game, however, the onl... | 36.797753 | 245 | 0.68771 | [
"3d"
] |
0c8a1b740f2fcd57b73a86d5459c0126d1b65766 | 3,821 | cpp | C++ | src/RiboseMobilizer.cpp | MadCatX/molmodel | 5abde979e1780dcc61a4b05affcba6e116250585 | [
"MIT"
] | null | null | null | src/RiboseMobilizer.cpp | MadCatX/molmodel | 5abde979e1780dcc61a4b05affcba6e116250585 | [
"MIT"
] | 1 | 2020-12-09T16:45:16.000Z | 2020-12-09T16:56:52.000Z | src/RiboseMobilizer.cpp | MadCatX/molmodel | 5abde979e1780dcc61a4b05affcba6e116250585 | [
"MIT"
] | 4 | 2020-06-23T18:24:37.000Z | 2021-04-29T14:44:25.000Z | /* -------------------------------------------------------------------------- *
* SimTK Core: SimTK Simbody(tm) *
* -------------------------------------------------------------------------- *
* This is part of the SimTK Core biosimulation toolkit originating from *
... | 53.816901 | 115 | 0.582047 | [
"vector"
] |
0c925d1661d6374cabdb00f1ac43331a7e8db77f | 9,915 | cpp | C++ | src/vendors/OceanOptics/protocols/obp/exchanges/OBPTransaction.cpp | ska/SeaBreeze | 09aac3e764867825f51f75c519a025a863d03590 | [
"MIT"
] | null | null | null | src/vendors/OceanOptics/protocols/obp/exchanges/OBPTransaction.cpp | ska/SeaBreeze | 09aac3e764867825f51f75c519a025a863d03590 | [
"MIT"
] | null | null | null | src/vendors/OceanOptics/protocols/obp/exchanges/OBPTransaction.cpp | ska/SeaBreeze | 09aac3e764867825f51f75c519a025a863d03590 | [
"MIT"
] | 1 | 2020-07-03T08:36:47.000Z | 2020-07-03T08:36:47.000Z | /***************************************************//**
* @file OBPTransaction.cpp
* @date March 2011
* @author Ocean Optics, Inc.
*
* All messages in the Ocean Binary Protocol begin with
* a standard 64-byte header. It is always safe to read
* 64 bytes for the start of a new transfer from a device
* t... | 36.054545 | 101 | 0.607161 | [
"vector"
] |
0c95a0ba46c91a489e4124a0f715ab78ee947c48 | 1,806 | cpp | C++ | leetcode.com/Weekly Contest 215/4/better.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | 1 | 2020-08-20T11:02:49.000Z | 2020-08-20T11:02:49.000Z | leetcode.com/Weekly Contest 215/4/better.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | null | null | null | leetcode.com/Weekly Contest 215/4/better.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | 1 | 2022-01-01T23:23:13.000Z | 2022-01-01T23:23:13.000Z | // ref:
// https://leetcode.com/problems/maximize-grid-happiness/discuss/936081/C%2B%2B-5D-DP
#include <cstring>
#include <iostream>
#include <vector>
using namespace std;
int dp[25][7][7][64][64] = {};
class Solution {
public:
int nCost(int m, int n, int i, int j, int mask_in, int mask_ex, int d) {
int diff =... | 34.075472 | 85 | 0.512182 | [
"vector"
] |
0c9a961954572e86f59d954de04ecf8b3ae36036 | 660 | cpp | C++ | example/ordinary_least_squares_cpp/main.cpp | NewYaroslav/xalgorithms | ffb9abc6107bed496382b053f333c40fab61a700 | [
"MIT"
] | null | null | null | example/ordinary_least_squares_cpp/main.cpp | NewYaroslav/xalgorithms | ffb9abc6107bed496382b053f333c40fab61a700 | [
"MIT"
] | null | null | null | example/ordinary_least_squares_cpp/main.cpp | NewYaroslav/xalgorithms | ffb9abc6107bed496382b053f333c40fab61a700 | [
"MIT"
] | null | null | null | #include <iostream>
#include "ordinary_least_squares.hpp"
using namespace std;
struct point2D {
double x;
double y;
point2D(double xIn, double yIn) {
x = xIn;
y = yIn;
}
};
int main()
{
cout << "Hello world!" << endl;
std::vector<point2D> vPoint;
const int NUM_POINT = 10;
... | 21.290323 | 87 | 0.543939 | [
"vector"
] |
0ca5d30aa0ed1624bca39fa18dcc7fc32bc743f8 | 2,061 | cpp | C++ | libs/sge_engine/src/sge_engine/GameObject.cpp | Alekssasho/sge_source | 2db4ae08f7b3434d32dd9767fe1136234cb70b83 | [
"MIT"
] | null | null | null | libs/sge_engine/src/sge_engine/GameObject.cpp | Alekssasho/sge_source | 2db4ae08f7b3434d32dd9767fe1136234cb70b83 | [
"MIT"
] | null | null | null | libs/sge_engine/src/sge_engine/GameObject.cpp | Alekssasho/sge_source | 2db4ae08f7b3434d32dd9767fe1136234cb70b83 | [
"MIT"
] | null | null | null | #include "sge_engine/TypeRegister.h"
#include "sge_utils/utils/strings.h"
#include "Actor.h"
namespace sge {
//--------------------------------------------------------------------
// struct Object
//--------------------------------------------------------------------
// clang-format off
DefineTypeId(GameObject, 20'... | 26.088608 | 106 | 0.630762 | [
"object",
"vector"
] |
0ca91323d18664162c87a0a9496e6b0acda7a4f3 | 2,093 | cpp | C++ | src/lib/materials/dielectric.cpp | Manu343726/raytracer | eb868034ea5c62c49b54608c6ad7815c24aaedd5 | [
"MIT"
] | 4 | 2019-06-12T11:25:59.000Z | 2021-05-23T13:35:05.000Z | src/lib/materials/dielectric.cpp | Manu343726/raytracer | eb868034ea5c62c49b54608c6ad7815c24aaedd5 | [
"MIT"
] | null | null | null | src/lib/materials/dielectric.cpp | Manu343726/raytracer | eb868034ea5c62c49b54608c6ad7815c24aaedd5 | [
"MIT"
] | 1 | 2019-11-03T04:00:18.000Z | 2019-11-03T04:00:18.000Z | #include <raytracer/debug/profile.hpp>
#include <raytracer/hitable.hpp>
#include <raytracer/materials/dielectric.hpp>
#include <raytracer/math.hpp>
#include <fmt/format.h>
#include <fmt/ostream.h>
#include <spdlog/spdlog.h>
using namespace rt;
using namespace rt::materials;
float schlick(const float cosine, const f... | 23 | 80 | 0.626374 | [
"vector"
] |
0caad49ac537e969ac3137a18e63074ab5cbbbb9 | 553 | hpp | C++ | src/format-slip39.hpp | maaku/bc-seedtool-cli | e7cf7555b8d775954c2a8e5bf1f5963fa2f42dde | [
"BSD-2-Clause-Patent"
] | null | null | null | src/format-slip39.hpp | maaku/bc-seedtool-cli | e7cf7555b8d775954c2a8e5bf1f5963fa2f42dde | [
"BSD-2-Clause-Patent"
] | null | null | null | src/format-slip39.hpp | maaku/bc-seedtool-cli | e7cf7555b8d775954c2a8e5bf1f5963fa2f42dde | [
"BSD-2-Clause-Patent"
] | null | null | null | //
// format-slip39.hpp
//
// Copyright © 2020 by Blockchain Commons, LLC
// Licensed under the "BSD-2-Clause Plus Patent License"
//
#pragma once
#include <bc-slip39/bc-slip39.h>
#include <vector>
#include "format.hpp"
#include "utils.hpp"
class FormatSLIP39 : public Format {
public:
FormatSLIP39();
... | 19.75 | 57 | 0.712477 | [
"vector"
] |
0cab4696802e1900e349ce87851cba0c30d0fec4 | 8,825 | cpp | C++ | src_dualcontouring/DCGridHermiteData.cpp | hushanming/UrbanReconstruction | 8b058349fd860ea9029623a92d705dd93a4e4878 | [
"MIT"
] | 94 | 2017-07-20T05:32:07.000Z | 2022-03-02T03:38:54.000Z | src_dualcontouring/DCGridHermiteData.cpp | GucciPrada/UrbanReconstruction | 8b058349fd860ea9029623a92d705dd93a4e4878 | [
"MIT"
] | 3 | 2017-09-12T00:07:05.000Z | 2020-03-08T21:12:36.000Z | src_dualcontouring/DCGridHermiteData.cpp | GucciPrada/UrbanReconstruction | 8b058349fd860ea9029623a92d705dd93a4e4878 | [
"MIT"
] | 38 | 2017-07-25T06:00:52.000Z | 2022-03-19T10:01:06.000Z | #include "StdAfx.h"
#include "DCGrid.h"
//////////////////////////////////////////////////////////////////////////
// HermiteData functions
//////////////////////////////////////////////////////////////////////////
void CDCGrid::ComputeHermiteData_XY()
{
for ( int i = 0; i < m_nHDSideNumber; i++ ) {
for ( int j = ... | 32.444853 | 143 | 0.571558 | [
"vector"
] |
0cae7ed8b31d11a58e11b2a66391c37a5365b148 | 3,612 | cpp | C++ | tests/libace/Class.cpp | xguerin/ace | ad6e1bc4cb4f10d6cf5b782f623ec0eef13e000b | [
"MIT"
] | 5 | 2016-06-14T17:56:47.000Z | 2022-02-10T19:54:25.000Z | tests/libace/Class.cpp | xguerin/ace | ad6e1bc4cb4f10d6cf5b782f623ec0eef13e000b | [
"MIT"
] | 42 | 2016-06-21T20:48:22.000Z | 2021-03-23T15:20:51.000Z | tests/libace/Class.cpp | xguerin/ace | ad6e1bc4cb4f10d6cf5b782f623ec0eef13e000b | [
"MIT"
] | 1 | 2016-10-02T02:58:49.000Z | 2016-10-02T02:58:49.000Z | /**
* Copyright (c) 2016 Xavier R. Guerin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, p... | 31.408696 | 80 | 0.697398 | [
"vector",
"model"
] |
0caedb1cc171b7edfb831216229f8eb71010459a | 9,528 | cc | C++ | src/bigint/div-burnikel.cc | EXHades/v8 | 5fe0aa3bc79c0a9d3ad546b79211f07105f09585 | [
"BSD-3-Clause"
] | 20,995 | 2015-01-01T05:12:40.000Z | 2022-03-31T21:39:18.000Z | src/bigint/div-burnikel.cc | Andrea-MariaDB-2/v8 | a0f0ebd7a876e8cb2210115adbfcffe900e99540 | [
"BSD-3-Clause"
] | 333 | 2020-07-15T17:06:05.000Z | 2021-03-15T12:13:09.000Z | src/bigint/div-burnikel.cc | Andrea-MariaDB-2/v8 | a0f0ebd7a876e8cb2210115adbfcffe900e99540 | [
"BSD-3-Clause"
] | 4,523 | 2015-01-01T15:12:34.000Z | 2022-03-28T06:23:41.000Z | // Copyright 2021 the V8 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.
// Burnikel-Ziegler division.
// Reference: "Fast Recursive Division" by Christoph Burnikel and Joachim
// Ziegler, found at http://cr.yp.to/bib/1998/bu... | 34.028571 | 80 | 0.589001 | [
"object",
"vector"
] |
0cb4a52b3d1c2b4bfbf822f7b58ab03babff57ed | 4,355 | hpp | C++ | src/cppmat/fix_regular_vector.hpp | tdegeus/cppmatrix | a6738a2c8be4c6e83b499b54bd874a3d3ee05000 | [
"MIT"
] | 6 | 2017-05-05T15:44:36.000Z | 2019-01-19T09:58:47.000Z | src/cppmat/fix_regular_vector.hpp | tdegeus/cppmatrix | a6738a2c8be4c6e83b499b54bd874a3d3ee05000 | [
"MIT"
] | 32 | 2017-08-31T08:04:09.000Z | 2019-10-21T15:42:01.000Z | src/cppmat/fix_regular_vector.hpp | tdegeus/cppmatrix | a6738a2c8be4c6e83b499b54bd874a3d3ee05000 | [
"MIT"
] | 2 | 2018-08-03T09:08:32.000Z | 2022-01-25T07:38:25.000Z | /* =================================================================================================
(c - MIT) T.W.J. de Geus (Tom) | tom@geus.me | www.geus.me | github.com/tdegeus/cppmat
================================================================================================= */
#ifndef CPPMAT_FIX_REGULAR_V... | 31.330935 | 100 | 0.297589 | [
"vector"
] |
0cb7d488c7ee730720a20d413591eda0b6b55031 | 1,386 | cc | C++ | solutions/hackerrank/projecteuler/euler011.cc | zwliew/ctci | 871f4fc957be96c6d0749d205549b7b35dc53d9e | [
"MIT"
] | 4 | 2020-11-07T14:38:02.000Z | 2022-01-03T19:02:36.000Z | solutions/hackerrank/projecteuler/euler011.cc | zwliew/ctci | 871f4fc957be96c6d0749d205549b7b35dc53d9e | [
"MIT"
] | 1 | 2019-04-17T06:55:14.000Z | 2019-04-17T06:55:14.000Z | solutions/hackerrank/projecteuler/euler011.cc | zwliew/ctci | 871f4fc957be96c6d0749d205549b7b35dc53d9e | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<vector<int>> grid(20, vector<int>(20));
for (int i = 0; i < 20; ++i) {
for (int j = 0; j < 20; ++j) {
cin >> grid[i][j];
}
}
int best = 0;
for (int i = 0; i < 20; ++i) {
int endi = i + 4;
... | 25.2 | 50 | 0.289322 | [
"vector"
] |
0cbb462da7f8c854f5902807010aa3e246e2ed4b | 705 | cpp | C++ | src/model/GatewayStatus.cpp | tacr-iotcloud/server | c46fd292843acf25b3f03d927e6ed32bd9d05732 | [
"BSD-3-Clause"
] | 1 | 2020-09-30T06:41:47.000Z | 2020-09-30T06:41:47.000Z | src/model/GatewayStatus.cpp | tacr-iotcloud/server | c46fd292843acf25b3f03d927e6ed32bd9d05732 | [
"BSD-3-Clause"
] | null | null | null | src/model/GatewayStatus.cpp | tacr-iotcloud/server | c46fd292843acf25b3f03d927e6ed32bd9d05732 | [
"BSD-3-Clause"
] | null | null | null | #include "model/GatewayStatus.h"
using namespace std;
using namespace Poco;
using namespace Poco::Net;
using namespace BeeeOn;
void GatewayStatus::setLastChanged(const Nullable<DateTime> &at)
{
m_lastChanged = at;
}
Nullable<DateTime> GatewayStatus::lastChanged() const
{
return m_lastChanged;
}
void GatewayStatus... | 16.785714 | 64 | 0.774468 | [
"model"
] |
0cbf3387dc9083fb5029ca626ea91a24c96ca258 | 6,145 | cpp | C++ | Server/relatko-ba-graph-52fc092b557e/test/impl/02creating_deleting_graph.cpp | RadoslavSmarzik/graph-editor | 7441f4768269131e5e9636819f1bf27ae9d6013d | [
"MIT"
] | null | null | null | Server/relatko-ba-graph-52fc092b557e/test/impl/02creating_deleting_graph.cpp | RadoslavSmarzik/graph-editor | 7441f4768269131e5e9636819f1bf27ae9d6013d | [
"MIT"
] | null | null | null | Server/relatko-ba-graph-52fc092b557e/test/impl/02creating_deleting_graph.cpp | RadoslavSmarzik/graph-editor | 7441f4768269131e5e9636819f1bf27ae9d6013d | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include "implementation.h"
using namespace ba_graph;
class CreatingDeletingGraphFixture : public ::testing::Test {
protected:
Vertex v1, v2;
Edge e1, e2;
void TearDown() override {
}
void SetUp() override {
v1 = createV();
v2 = createV();
e1 =... | 29.68599 | 116 | 0.574776 | [
"object"
] |
0cd0b4f66215858d9198fa4df6ae4b7a2186eb2b | 28,632 | cpp | C++ | Sources/MouCaGraphicEngine/source/Engine3DXMLLoaderCommand.cpp | Rominitch/MouCaLab | d8c24de479b1bc11509df8456e0071d394fbeab9 | [
"Unlicense"
] | null | null | null | Sources/MouCaGraphicEngine/source/Engine3DXMLLoaderCommand.cpp | Rominitch/MouCaLab | d8c24de479b1bc11509df8456e0071d394fbeab9 | [
"Unlicense"
] | null | null | null | Sources/MouCaGraphicEngine/source/Engine3DXMLLoaderCommand.cpp | Rominitch/MouCaLab | d8c24de479b1bc11509df8456e0071d394fbeab9 | [
"Unlicense"
] | null | null | null | #include "Dependencies.h"
#include "MouCaGraphicEngine/include/Engine3DXMLLoader.h"
#include "MouCaGraphicEngine/include/Engine3DXMLHelper.h"
#include <LibVulkan/include/VKContextDevice.h>
#include <LibVulkan/include/VKCommand.h>
#include <LibVulkan/include/VKCommandBufferSurface.h>
#include <LibVulkan/include/VKDesc... | 48.20202 | 246 | 0.604324 | [
"vector"
] |
7b4a7645c1efe28012f4d7821dbae9d85b7aaf71 | 2,011 | cpp | C++ | src/enemy.cpp | obliviateandsurrender/PacmanKiller | 65740b9e251c59231d447850899052e7e0d76f6c | [
"MIT"
] | null | null | null | src/enemy.cpp | obliviateandsurrender/PacmanKiller | 65740b9e251c59231d447850899052e7e0d76f6c | [
"MIT"
] | null | null | null | src/enemy.cpp | obliviateandsurrender/PacmanKiller | 65740b9e251c59231d447850899052e7e0d76f6c | [
"MIT"
] | null | null | null | #include "enemy.h"
#include "main.h"
#include "math.h"
Enemy::Enemy(float x, float y, float radius, float xspeed, color_t color) {
this->position = glm::vec3(x, y, 0);
this->rotation = 0;
this->radius = radius;
this->color = color;
this->xspeed = xspeed;
const int n = 360;
const int reqd =... | 29.144928 | 97 | 0.607658 | [
"object",
"model"
] |
7b4acd353ccd9d5c16b129ee687610a054c513dc | 13,867 | cpp | C++ | module/record/src/record/PlayerRecorder.cpp | Khoronus/StoreData | 067c64cc0e240412fab99759fab5b88083d0dbe0 | [
"MIT"
] | null | null | null | module/record/src/record/PlayerRecorder.cpp | Khoronus/StoreData | 067c64cc0e240412fab99759fab5b88083d0dbe0 | [
"MIT"
] | null | null | null | module/record/src/record/PlayerRecorder.cpp | Khoronus/StoreData | 067c64cc0e240412fab99759fab5b88083d0dbe0 | [
"MIT"
] | null | null | null | /* @file PlayerRecorder.cpp
* @brief Body of the class which performs all the main functions.
*
* @section LICENSE
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AN... | 37.579946 | 126 | 0.634528 | [
"vector"
] |
7b4f7dbb516d67b87799747883d8846d657279db | 69,544 | cxx | C++ | main/chart2/source/view/axes/VCartesianAxis.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/chart2/source/view/axes/VCartesianAxis.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/chart2/source/view/axes/VCartesianAxis.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 41.668065 | 185 | 0.611627 | [
"shape",
"vector",
"3d"
] |
7b589dff689dc8d2b32858d5dc290345b499cb5c | 2,083 | cpp | C++ | codes/HDU/hdu3065.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/HDU/hdu3065.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/HDU/hdu3065.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <queue>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
typedef long long ll;
const int maxn = 50005;
const int sigma_size = 256;
struct Aho_Corasick {
int sz, g[maxn][sigma_size];
int tag[maxn], fail[maxn], last[maxn];
int cnt[1... | 15.900763 | 52 | 0.506961 | [
"vector"
] |
7b5da6e840236876c2bd123bd754a70b8f055cf7 | 5,010 | hpp | C++ | PSME/application/tests/rest/model/handler/mocks.hpp | opencomputeproject/HWMgmt-DeviceMgr-PSME | 2a00188aab6f4bef3776987f0842ef8a8ea972ac | [
"Apache-2.0"
] | 5 | 2021-10-07T15:36:37.000Z | 2022-03-01T07:21:49.000Z | PSME/application/tests/rest/model/handler/mocks.hpp | opencomputeproject/HWMgmt-DeviceMgr-PSME | 2a00188aab6f4bef3776987f0842ef8a8ea972ac | [
"Apache-2.0"
] | null | null | null | PSME/application/tests/rest/model/handler/mocks.hpp | opencomputeproject/HWMgmt-DeviceMgr-PSME | 2a00188aab6f4bef3776987f0842ef8a8ea972ac | [
"Apache-2.0"
] | 1 | 2022-03-01T07:21:51.000Z | 2022-03-01T07:21:51.000Z | /*!
* @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
*
* @copyright
* http://www.apache.org/licenses/LICENSE-... | 25.05 | 86 | 0.658882 | [
"object",
"vector",
"model"
] |
7b628e39cebd20d709698428dfe1fe6ed33050e5 | 2,133 | cpp | C++ | partialmodel_hrt/test_multires_octree.cpp | irvingvasquez/vpl | 1a6e88353395ca0e43a0c4d0d6b38f7c7e2925f7 | [
"BSD-3-Clause"
] | 12 | 2017-05-11T13:07:20.000Z | 2021-11-22T15:48:10.000Z | partialmodel_hrt/test_multires_octree.cpp | irvingvasquez/vpl | 1a6e88353395ca0e43a0c4d0d6b38f7c7e2925f7 | [
"BSD-3-Clause"
] | 1 | 2017-11-19T21:29:51.000Z | 2017-11-19T21:29:51.000Z | partialmodel_hrt/test_multires_octree.cpp | irvingvasquez/vpl | 1a6e88353395ca0e43a0c4d0d6b38f7c7e2925f7 | [
"BSD-3-Clause"
] | 5 | 2017-05-11T07:57:01.000Z | 2021-11-22T16:44:37.000Z | #include <iostream>
#include <string>
//#include <stdio.h>
#include <octomap/octomap.h>
#include <octomap/math/Utils.h>
#include "coctreevpl.h"
using namespace std;
using namespace octomap;
int main(int argc, char **argv) {
//##############################################################
COctreeVPL t... | 23.966292 | 108 | 0.591655 | [
"vector"
] |
7b6516f4d9d2b6bba28d7aa57befbc5ffb4d9519 | 409 | hpp | C++ | leetcode/2157/graph.hpp | mkmark/leetcode | 638a9d37fb3223107d2852ce493d831996a7649e | [
"MIT"
] | null | null | null | leetcode/2157/graph.hpp | mkmark/leetcode | 638a9d37fb3223107d2852ce493d831996a7649e | [
"MIT"
] | null | null | null | leetcode/2157/graph.hpp | mkmark/leetcode | 638a9d37fb3223107d2852ce493d831996a7649e | [
"MIT"
] | null | null | null | /*
author: mark@mkmark.net
*/
#include <bits/stdc++.h>
using namespace std;
class graph {
int n;
vector<vector<int>> adj;
vector<int> grp;
vector<int> grp_size;
vector<int> value;
void dfs(int v, vector<int>& grp, int gid);
public:
graph(int n);
graph(int n, vector<int>& val);
in... | 17.041667 | 47 | 0.601467 | [
"vector"
] |
7b6552265ba2100c650b2e37a6a4621bf625259f | 1,458 | hpp | C++ | src/SegmentTree.hpp | rajyan/library | abad203321e34b87a248e02f5ae84a0899f6c4fd | [
"MIT"
] | null | null | null | src/SegmentTree.hpp | rajyan/library | abad203321e34b87a248e02f5ae84a0899f6c4fd | [
"MIT"
] | 8 | 2019-08-18T18:23:37.000Z | 2021-01-21T00:20:00.000Z | src/SegmentTree.hpp | rajyan/library | abad203321e34b87a248e02f5ae84a0899f6c4fd | [
"MIT"
] | null | null | null | #pragma once
#include <cassert>
#include <vector>
#include "Monoid.hpp"
#include "clz.hpp"
using namespace std;
template<class M>
class SegmentTree {
using T = typename M::type;
using vt = typename M::vt;
public:
explicit SegmentTree(const int &n_)
: n(n_), lg(64 - clz(n)), sz(1 << lg),
... | 25.137931 | 71 | 0.440329 | [
"vector"
] |
7b65fc13c672babcfe0f69e3e081bc6761b08624 | 23,300 | cpp | C++ | Code/Tools/FBuild/FBuildCore/Protocol/Server.cpp | qq573011406/FASTBuild_UnrealEngine | 29c49672f82173a903cb32f0e4656e2fd07ebef2 | [
"MIT"
] | 30 | 2020-07-15T06:16:55.000Z | 2022-02-10T21:37:52.000Z | Code/Tools/FBuild/FBuildCore/Protocol/Server.cpp | qq573011406/FASTBuild_UnrealEngine | 29c49672f82173a903cb32f0e4656e2fd07ebef2 | [
"MIT"
] | 1 | 2020-10-19T22:12:03.000Z | 2020-10-19T22:12:03.000Z | Code/Tools/FBuild/FBuildCore/Protocol/Server.cpp | qq573011406/FASTBuild_UnrealEngine | 29c49672f82173a903cb32f0e4656e2fd07ebef2 | [
"MIT"
] | 12 | 2020-09-16T17:39:34.000Z | 2021-08-17T11:32:37.000Z | // Server.cpp
//------------------------------------------------------------------------------
// Includes
//------------------------------------------------------------------------------
#include "Server.h"
#include "Protocol.h"
#include "Tools/FBuild/FBuildCore/FLog.h"
#include "Tools/FBuild/FBuildCore/Helpers/Tool... | 32.678822 | 134 | 0.548197 | [
"object"
] |
7b6d7bfe44c07d86b06631f09c662b4da2426e26 | 5,788 | hpp | C++ | DemoApps/Vulkan/Triangle/source/Triangle.hpp | alexvonduar/gtec-demo-framework | 6f8a7e429d0e15242ba64eb4cb41bfc2dd7dc749 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | DemoApps/Vulkan/Triangle/source/Triangle.hpp | alexvonduar/gtec-demo-framework | 6f8a7e429d0e15242ba64eb4cb41bfc2dd7dc749 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | DemoApps/Vulkan/Triangle/source/Triangle.hpp | alexvonduar/gtec-demo-framework | 6f8a7e429d0e15242ba64eb4cb41bfc2dd7dc749 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | #ifndef VULKAN_TRIANGLE_TRIANGLE_HPP
#define VULKAN_TRIANGLE_TRIANGLE_HPP
/****************************************************************************************************************************************************
* Copyright 2021 NXP
* All rights reserved.
*
* Redistribution and use in source and binary ... | 34.86747 | 150 | 0.683138 | [
"mesh",
"object",
"vector"
] |
7b6f3804fd53ec4bb0ff0cd6e31f6fc9144ac607 | 13,789 | cpp | C++ | Intermediate/Build/Win64/UE4Editor/Inc/Pacman/PacmanPlayer.gen.cpp | A-Yu-cn/ue4_demo_pacman | 60aa91d23e770199be7d12b5db4cced0a2154f52 | [
"MIT"
] | null | null | null | Intermediate/Build/Win64/UE4Editor/Inc/Pacman/PacmanPlayer.gen.cpp | A-Yu-cn/ue4_demo_pacman | 60aa91d23e770199be7d12b5db4cced0a2154f52 | [
"MIT"
] | null | null | null | Intermediate/Build/Win64/UE4Editor/Inc/Pacman/PacmanPlayer.gen.cpp | A-Yu-cn/ue4_demo_pacman | 60aa91d23e770199be7d12b5db4cced0a2154f52 | [
"MIT"
] | null | null | null | // Copyright Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
========================================================================... | 65.976077 | 744 | 0.848647 | [
"object"
] |
7b75dbc8cbde254cf6b02ead073b2a2907685dc3 | 453 | hpp | C++ | cleContextManager.hpp | StRigaud/swig-sandbox | 27d3cb111201f333f2ba7d3be7b4cac2f9265244 | [
"Apache-2.0"
] | null | null | null | cleContextManager.hpp | StRigaud/swig-sandbox | 27d3cb111201f333f2ba7d3be7b4cac2f9265244 | [
"Apache-2.0"
] | null | null | null | cleContextManager.hpp | StRigaud/swig-sandbox | 27d3cb111201f333f2ba7d3be7b4cac2f9265244 | [
"Apache-2.0"
] | null | null | null | #ifndef __cleContextManager_h
#define __cleContextManager_h
#include "clic.hpp"
#include <vector>
namespace clic
{
class ContextManager
{
private:
cl::Context m_Context;
public:
ContextManager() =default;
ContextManager(cl::Device);
ContextManager(std::vector<cl::Device>);
~ContextManager... | 15.1 | 44 | 0.699779 | [
"vector"
] |
7b76f20031ab0deed7b42baee4013dade2774591 | 17,028 | cpp | C++ | src/sort.cpp | waderly/ardb | 9f2460cf747dc2c238eda065b7a1f9371399fa7b | [
"BSD-3-Clause"
] | 1 | 2015-11-05T18:35:53.000Z | 2015-11-05T18:35:53.000Z | src/sort.cpp | waderly/ardb | 9f2460cf747dc2c238eda065b7a1f9371399fa7b | [
"BSD-3-Clause"
] | null | null | null | src/sort.cpp | waderly/ardb | 9f2460cf747dc2c238eda065b7a1f9371399fa7b | [
"BSD-3-Clause"
] | null | null | null | /*
*Copyright (c) 2013-2013, yinqiwen <yinqiwen@gmail.com>
*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,
* ... | 32.25 | 120 | 0.41649 | [
"object",
"vector"
] |
7b82ab50ceca5bc87408d0842186b6b6c167765a | 3,713 | cpp | C++ | Source/Renderer/SeaRenderable.cpp | hipiPan/effects | d9003f71e6fb485d054fb198cfdf5b944e2e158f | [
"MIT"
] | 2 | 2019-10-14T14:48:29.000Z | 2019-10-14T15:45:25.000Z | Source/Renderer/SeaRenderable.cpp | hipiPan/effects | d9003f71e6fb485d054fb198cfdf5b944e2e158f | [
"MIT"
] | null | null | null | Source/Renderer/SeaRenderable.cpp | hipiPan/effects | d9003f71e6fb485d054fb198cfdf5b944e2e158f | [
"MIT"
] | null | null | null | #include "Renderer/SeaRenderable.h"
#include "Renderer/Renderer.h"
#include "Resources/Mesh.h"
#include "Resources/Material.h"
#include "Scene/Components/CSea.h"
#include "Core/Utility/FileUtility.h"
EFFECTS_NAMESPACE_BEGIN
SeaRenderable::SeaRenderable(CSea* csea){
mCSea = csea;
mType = RenderableType::SEA;
... | 31.735043 | 118 | 0.712901 | [
"mesh"
] |
7b873346e43692a27eb887933f14d1df42e7a9c2 | 1,430 | cpp | C++ | examples/signal/connection.cpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | examples/signal/connection.cpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | examples/signal/connection.cpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | // Copyright Carl Philipp Reh 2009 - 2018.
// 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)
//! [signal_connection]
#include <fcppt/container/make.hpp>
#include <fcppt/signal/auto_connection... | 15.376344 | 65 | 0.692308 | [
"object"
] |
7b966d71891d9395fa2830c94623bd76f0ee9b1b | 2,035 | hh | C++ | hackt_docker/hackt/src/Object/inst/pint_instance.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/Object/inst/pint_instance.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/Object/inst/pint_instance.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | /**
\file "Object/inst/pint_instance.hh"
$Id: pint_instance.hh,v 1.3 2006/10/18 01:19:39 fang Exp $
*/
#ifndef __HAC_OBJECT_INST_PINT_INSTANCE_H__
#define __HAC_OBJECT_INST_PINT_INSTANCE_H__
#include <cassert>
#include <iosfwd>
#include "Object/expr/types.hh"
#include "util/boolean_types.hh"
namespace HAC {
names... | 23.125 | 79 | 0.657002 | [
"object"
] |
7ba891d970ee6da977ec6dd592175960dca3ded5 | 3,014 | cpp | C++ | Equity/Transaction.cpp | jambolo/Equity | e9f142aec8c5292406b32633fd714c26cf7fd6cd | [
"MIT"
] | null | null | null | Equity/Transaction.cpp | jambolo/Equity | e9f142aec8c5292406b32633fd714c26cf7fd6cd | [
"MIT"
] | null | null | null | Equity/Transaction.cpp | jambolo/Equity | e9f142aec8c5292406b32633fd714c26cf7fd6cd | [
"MIT"
] | null | null | null | #include "Transaction.h"
#include "equity/Script.h"
#include "p2p/Serialize.h"
#include "utility/Endian.h"
#include "utility/Utility.h"
#include <nlohmann/json.hpp>
using json = nlohmann::json;
using namespace Equity;
Equity::Transaction::Input::Input(json const & json)
: txid(json["txid"])
, outputIndex(js... | 25.982759 | 110 | 0.637359 | [
"object",
"vector"
] |
7baadec925628b43ae9c97c7801fdeb7dfc9ce19 | 900 | cpp | C++ | Strings/String simulation/longest_common_prefix.cpp | srjhnd/InterviewBit-Solutions | 578c9cb4096fb832f68f44fc43bbe69c228e4c9e | [
"MIT"
] | null | null | null | Strings/String simulation/longest_common_prefix.cpp | srjhnd/InterviewBit-Solutions | 578c9cb4096fb832f68f44fc43bbe69c228e4c9e | [
"MIT"
] | null | null | null | Strings/String simulation/longest_common_prefix.cpp | srjhnd/InterviewBit-Solutions | 578c9cb4096fb832f68f44fc43bbe69c228e4c9e | [
"MIT"
] | null | null | null | /*
Problem:
Longest Common Prefix:
Given the array of strings A,
you need to find the longest string S which is the prefix of ALL the strings
in the array.
Longest common prefix for a pair of strings S1 and S2 is the longest string
S which is the prefix of both S1 and S2.
For Example,... | 20 | 80 | 0.593333 | [
"vector"
] |
7baf5e647938277e8dbc86cf6ca3583fc001232c | 4,520 | cpp | C++ | draw_blocks.cpp | Charptr0/Sorting-Algorithm-Visualizer | 0c20de884792da9acfa9000007aee2c18dee557f | [
"Apache-2.0"
] | null | null | null | draw_blocks.cpp | Charptr0/Sorting-Algorithm-Visualizer | 0c20de884792da9acfa9000007aee2c18dee557f | [
"Apache-2.0"
] | null | null | null | draw_blocks.cpp | Charptr0/Sorting-Algorithm-Visualizer | 0c20de884792da9acfa9000007aee2c18dee557f | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <SFML/Graphics.hpp>
#include <SFML/System/Clock.hpp>
#include <SFML/System/Time.hpp>
#include <ctime>
#include <vector>
#include <stdlib.h>
#include "constants.cpp"
#include "Text_Manager/text.cpp"
using std::vector;
sf::Clock GlobalClock;
int Number_of_comparsions = 0;
Text ComparsionText(std:... | 31.388889 | 116 | 0.64115 | [
"vector"
] |
7bb000cee40a6c13fdde751acc4941acfd8e84ed | 577 | cxx | C++ | Algorithms/Search/minimum-loss.cxx | will-crawford/HackerRank | 74965480ee6a51603eb320e5982b0943fdaf1302 | [
"MIT"
] | null | null | null | Algorithms/Search/minimum-loss.cxx | will-crawford/HackerRank | 74965480ee6a51603eb320e5982b0943fdaf1302 | [
"MIT"
] | null | null | null | Algorithms/Search/minimum-loss.cxx | will-crawford/HackerRank | 74965480ee6a51603eb320e5982b0943fdaf1302 | [
"MIT"
] | null | null | null | #include <cmath>
#include <cstdio>
#include <limits>
#include <vector>
#include <set>
#include <iostream>
#include <algorithm>
using namespace std;
const int64_t MaxLoss = numeric_limits<int64_t>::max();
int main() {
int n; cin >> n;
set<int64_t> prior; int64_t pi, loss, best = MaxLoss;
cin >> pi; prior.i... | 22.192308 | 60 | 0.558059 | [
"vector"
] |
7bb92706b006e492813417bdc496cb872f13c4d9 | 16,584 | cpp | C++ | sqlines-studio3/src/mainwindowpresenter.cpp | 1newstar/sqlines | 7887a10d00f0d92aea34001c9f2b3bcc872d39f6 | [
"Apache-2.0"
] | 299 | 2016-03-19T14:50:39.000Z | 2022-03-25T05:43:52.000Z | sqlines-studio3/src/mainwindowpresenter.cpp | ChrisYuan/sqlines | f82176f154a158105f655d71fb7934dd0ee1c82f | [
"Apache-2.0"
] | 47 | 2016-11-30T23:52:59.000Z | 2021-05-17T10:04:45.000Z | sqlines-studio3/src/mainwindowpresenter.cpp | ChrisYuan/sqlines | f82176f154a158105f655d71fb7934dd0ee1c82f | [
"Apache-2.0"
] | 149 | 2016-03-15T15:06:06.000Z | 2022-03-16T14:38:45.000Z | /**
* Copyright (c) 2021 SQLines
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 35.896104 | 104 | 0.647311 | [
"model"
] |
7bba4048ca3afa6e6d14a9eb16921cf4e70c04fc | 2,678 | cpp | C++ | src/DrawGL2D.cpp | stnoh/cvgl | ada5e459edf3cb84abaae33a6312eb4b8f2ef883 | [
"MIT"
] | null | null | null | src/DrawGL2D.cpp | stnoh/cvgl | ada5e459edf3cb84abaae33a6312eb4b8f2ef883 | [
"MIT"
] | 1 | 2020-12-07T08:14:32.000Z | 2020-12-07T08:14:32.000Z | src/DrawGL2D.cpp | stnoh/cvgl | ada5e459edf3cb84abaae33a6312eb4b8f2ef883 | [
"MIT"
] | null | null | null | /******************************************************************************
Helper for OpenCV image handling with GL
Author: Seung-Tak Noh (seungtak.noh [at] gmail.com)
******************************************************************************/
#include "cvgl/DrawGL2D.h"
#include <glm/ext.hpp>
namespace cvgl {... | 31.880952 | 87 | 0.616131 | [
"model"
] |
7bbaacb7e758338ff4091c6cafacdebcb4d02f84 | 138,205 | cpp | C++ | reference_decoders/HM-4.0/source/Lib/TLibCommon/TComTrQuant.cpp | gabrieldiego/VideoAnalyzer | 34890d408820688dc25d7596547859052c9ce673 | [
"Apache-2.0"
] | null | null | null | reference_decoders/HM-4.0/source/Lib/TLibCommon/TComTrQuant.cpp | gabrieldiego/VideoAnalyzer | 34890d408820688dc25d7596547859052c9ce673 | [
"Apache-2.0"
] | null | null | null | reference_decoders/HM-4.0/source/Lib/TLibCommon/TComTrQuant.cpp | gabrieldiego/VideoAnalyzer | 34890d408820688dc25d7596547859052c9ce673 | [
"Apache-2.0"
] | 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-2011, ITU/ISO/IEC
* All rights reser... | 31.568068 | 388 | 0.554618 | [
"vector",
"model",
"transform"
] |
7bc17d7b9e4fc086f410932944c4439151125288 | 572 | cpp | C++ | CODECHEF/TILED.cpp | aqfaridi/Competitve-Programming-Codes | d055de2f42d3d6bc36e03e67804a1dd6b212241f | [
"MIT"
] | null | null | null | CODECHEF/TILED.cpp | aqfaridi/Competitve-Programming-Codes | d055de2f42d3d6bc36e03e67804a1dd6b212241f | [
"MIT"
] | null | null | null | CODECHEF/TILED.cpp | aqfaridi/Competitve-Programming-Codes | d055de2f42d3d6bc36e03e67804a1dd6b212241f | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cstring>
#include <sstream>
#include <vector>
#include <iomanip>
#include <cmath>
using namespace std;
typedef long long LL;
typedef pair<int,int> pii;
#define MAX 1000010
#define MOD 1000000007
int fib[MAX];
void fibo()
{
fib[1] = 1;
f... | 15.459459 | 41 | 0.575175 | [
"vector"
] |
dcf40c9961f335151bee51dcf202c27e3d937a96 | 6,054 | cpp | C++ | src/tests/TestJsonDpaApiRaw/TestJsonDpaApiRaw.cpp | iqrfsdk/iqrf-gateway-daemon | 8875a9a0bf67003fc7115a59af12ab12d591b487 | [
"Apache-2.0"
] | 1 | 2021-04-28T07:34:14.000Z | 2021-04-28T07:34:14.000Z | src/tests/TestJsonDpaApiRaw/TestJsonDpaApiRaw.cpp | iqrf/iqrf-gateway-daemon | adf8585749afefb01f274d5b70959d500d35bd6c | [
"Apache-2.0"
] | 1 | 2019-10-31T13:29:55.000Z | 2019-10-31T13:29:55.000Z | src/tests/TestJsonDpaApiRaw/TestJsonDpaApiRaw.cpp | iqrf/iqrf-gateway-daemon | adf8585749afefb01f274d5b70959d500d35bd6c | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2015-2021 IQRF Tech s.r.o.
* Copyright 2019-2021 MICRORISC s.r.o.
*
* 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
*... | 25.652542 | 281 | 0.640403 | [
"shape"
] |
dcf44b77bbec2f084ba6dfb729b1578564fb3db9 | 18,260 | cpp | C++ | Engine/Src/SFEngineDLL/Java/JniUtil.cpp | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | 1 | 2020-06-20T07:35:25.000Z | 2020-06-20T07:35:25.000Z | Engine/Src/SFEngineDLL/Java/JniUtil.cpp | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | null | null | null | Engine/Src/SFEngineDLL/Java/JniUtil.cpp | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
//
// CopyRight (c) 2016 StormForge
//
// Author : KyungKun Ko
//
// Description : Basic android application
//
//
////////////////////////////////////////////////////////////////////////////////
#include "SFEngineDLLPCH.h... | 39.017094 | 257 | 0.722289 | [
"object"
] |
0d129692029dafb4dba52e070ef1073c90eb35eb | 5,785 | cpp | C++ | leadd/cpp_core/LEADD/ConvertToReconstruction.cpp | etijskens/LEADD | 93ac83dfcdeb7f069145e50bccc85bfc3b1d8a33 | [
"MIT"
] | null | null | null | leadd/cpp_core/LEADD/ConvertToReconstruction.cpp | etijskens/LEADD | 93ac83dfcdeb7f069145e50bccc85bfc3b1d8a33 | [
"MIT"
] | null | null | null | leadd/cpp_core/LEADD/ConvertToReconstruction.cpp | etijskens/LEADD | 93ac83dfcdeb7f069145e50bccc85bfc3b1d8a33 | [
"MIT"
] | null | null | null | #include <iostream>
#include <boost/serialization/list.hpp>
#include <boost/program_options.hpp>
#include <GraphMol/FileParsers/MolSupplier.h>
#include "Fragmentation.hpp"
#include "Reconstruction.hpp"
ReconstructedMol ConvertToReconstructedMol(const RDKit::ROMol& mol, bool fragment_rings, bool names_as_scores,... | 45.551181 | 139 | 0.718928 | [
"vector"
] |
0d1955c37dab5cdccca4a52ce8cbf5c78fa95316 | 3,122 | cc | C++ | aegis/src/model/DescribeStratetyDetailResult.cc | sdk-team/aliyun-openapi-cpp-sdk | d0e92f6f33126dcdc7e40f60582304faf2c229b7 | [
"Apache-2.0"
] | 3 | 2020-01-06T08:23:14.000Z | 2022-01-22T04:41:35.000Z | aegis/src/model/DescribeStratetyDetailResult.cc | sdk-team/aliyun-openapi-cpp-sdk | d0e92f6f33126dcdc7e40f60582304faf2c229b7 | [
"Apache-2.0"
] | null | null | null | aegis/src/model/DescribeStratetyDetailResult.cc | sdk-team/aliyun-openapi-cpp-sdk | d0e92f6f33126dcdc7e40f60582304faf2c229b7 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | 36.302326 | 118 | 0.754004 | [
"model"
] |
0d1b80472a8cf1912bd9e9a384d8e2acbab1b7f3 | 270,756 | cpp | C++ | lua-bindings/lua_imgui_auto.cpp | gloomyzen/cocos2d-x-imgui | 5ec858cb6de5fc04b3b83d24d2052e26de1766a7 | [
"MIT"
] | null | null | null | lua-bindings/lua_imgui_auto.cpp | gloomyzen/cocos2d-x-imgui | 5ec858cb6de5fc04b3b83d24d2052e26de1766a7 | [
"MIT"
] | null | null | null | lua-bindings/lua_imgui_auto.cpp | gloomyzen/cocos2d-x-imgui | 5ec858cb6de5fc04b3b83d24d2052e26de1766a7 | [
"MIT"
] | null | null | null | #include "lua_imgui_auto.hpp"
#include "imgui_lua.hpp"
#include "lua_conversion.hpp"
#include "scripting/lua-bindings/manual/tolua_fix.h"
#include "scripting/lua-bindings/manual/LuaBasicConversions.h"
#ifdef COCOS2D_DEBUG
#undef COCOS2D_DEBUG
#endif // COCOS2D_DEBUG
namespace imgui
{
namespace ImGui
{
using nam... | 29.645899 | 151 | 0.641445 | [
"render",
"object",
"vector"
] |
0d1d880eef372f2d3230754052ffa97b653ae57e | 3,138 | cpp | C++ | v3d_main/neuron_annotator/utility/Icons.cpp | lens-biophotonics/v3d_external | 44ff3b60a297a96eaa77ca092e0de9af5c990ed3 | [
"MIT"
] | 39 | 2015-05-10T23:23:03.000Z | 2022-01-26T01:31:30.000Z | v3d_main/neuron_annotator/utility/Icons.cpp | lens-biophotonics/v3d_external | 44ff3b60a297a96eaa77ca092e0de9af5c990ed3 | [
"MIT"
] | 13 | 2016-03-04T05:29:23.000Z | 2021-02-07T01:11:10.000Z | v3d_main/neuron_annotator/utility/Icons.cpp | lens-biophotonics/v3d_external | 44ff3b60a297a96eaa77ca092e0de9af5c990ed3 | [
"MIT"
] | 44 | 2015-11-11T07:30:59.000Z | 2021-12-26T16:41:21.000Z | #include "Icons.h"
#include "../entity_model/Entity.h"
Icons::Icons()
{
}
QVariant Icons::getCachedIcon(const QString & filename)
{
if (cache.contains(filename)) return cache.value(filename, QVariant());
QString path = ":/neuron_annotator/resources/";
path.append(filename);
QIcon icon(path);
cache... | 27.286957 | 171 | 0.578713 | [
"3d"
] |
0d1f04079ed2c2755b040572e919be371b11c198 | 6,965 | cc | C++ | third_party/blink/renderer/core/frame/remote_frame_client_impl.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | third_party/blink/renderer/core/frame/remote_frame_client_impl.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | third_party/blink/renderer/core/frame/remote_frame_client_impl.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2014 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.
#include "third_party/blink/renderer/core/frame/remote_frame_client_impl.h"
#include <memory>
#include "third_party/blink/public/web/web_remote_frame_cli... | 34.825 | 82 | 0.746447 | [
"geometry"
] |
0d2692903dd6b7952285b851b63db11bd9daab5a | 1,228 | cc | C++ | kernel/disk.cc | Anton-Cao/sv6 | f525c4d588d3cfe750867990902b882cd4a21fad | [
"MIT-0"
] | 147 | 2015-01-13T08:56:18.000Z | 2022-03-10T06:49:25.000Z | kernel/disk.cc | Anton-Cao/sv6 | f525c4d588d3cfe750867990902b882cd4a21fad | [
"MIT-0"
] | 1 | 2018-05-12T11:46:14.000Z | 2018-05-12T11:46:14.000Z | kernel/disk.cc | Anton-Cao/sv6 | f525c4d588d3cfe750867990902b882cd4a21fad | [
"MIT-0"
] | 34 | 2015-01-06T12:36:58.000Z | 2021-09-23T17:56:22.000Z | #include "types.h"
#include "kernel.hh"
#include "disk.hh"
#include "vector.hh"
#include <cstring>
static static_vector<disk*, 64> disks;
void
disk_register(disk* d)
{
cprintf("disk_register: %s: %ld bytes: %s\n",
d->dk_busloc, d->dk_nbytes, d->dk_model);
disks.push_back(d);
}
static void
disk_test(dis... | 15.74359 | 58 | 0.620521 | [
"vector"
] |
0d269cdf951ddc1f5f5435876345f930b79adb45 | 3,478 | cpp | C++ | cabot/src/safety/tf_speed_control_nodelet.cpp | CMU-cabot/cabot | b53874abd2804f23f62dcc8ff97a5ee39d3fe48c | [
"MIT"
] | 14 | 2020-12-05T17:15:57.000Z | 2022-02-09T05:51:09.000Z | cabot/src/safety/tf_speed_control_nodelet.cpp | CMU-cabot/cabot | b53874abd2804f23f62dcc8ff97a5ee39d3fe48c | [
"MIT"
] | 22 | 2021-02-25T06:56:23.000Z | 2022-03-16T13:15:45.000Z | cabot/src/safety/tf_speed_control_nodelet.cpp | CMU-cabot/cabot | b53874abd2804f23f62dcc8ff97a5ee39d3fe48c | [
"MIT"
] | 7 | 2021-01-05T16:07:59.000Z | 2022-03-24T02:48:14.000Z | // Copyright (c) 2020 Carnegie Mellon 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 limitation the rights
// to use, copy, modify, m... | 31.333333 | 117 | 0.682289 | [
"transform"
] |
0d274c2fb8d51bd36c5dde6d81c2d6905ec6dbb8 | 1,133 | cpp | C++ | 500-600/565.cpp | Thomaw/Project-Euler | bcad5d8a1fd3ebaa06fa52d92d286607e9372a8d | [
"MIT"
] | null | null | null | 500-600/565.cpp | Thomaw/Project-Euler | bcad5d8a1fd3ebaa06fa52d92d286607e9372a8d | [
"MIT"
] | null | null | null | 500-600/565.cpp | Thomaw/Project-Euler | bcad5d8a1fd3ebaa06fa52d92d286607e9372a8d | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
typedef unsigned __int64 u64;
typedef unsigned __int128 u128;
#define L 100000000000
#define L1 320000
#define M 2017
#define L2 (L/M)
u64 inv(u64 n,u64 m=M){return n>1?m/n*(m-inv(m%n,m))%m:1;}
unsigned char np[L1],np2[L2];
u64 ... | 30.621622 | 96 | 0.524272 | [
"vector"
] |
0d29accbcbac25f21d161ccb3438fc94c934c375 | 2,736 | cpp | C++ | shared_from_this/main.cpp | Mizux/snippets | 69c4a5b7e79108824e5fa8a47235c8a36f28295c | [
"Apache-2.0"
] | null | null | null | shared_from_this/main.cpp | Mizux/snippets | 69c4a5b7e79108824e5fa8a47235c8a36f28295c | [
"Apache-2.0"
] | null | null | null | shared_from_this/main.cpp | Mizux/snippets | 69c4a5b7e79108824e5fa8a47235c8a36f28295c | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <memory>
struct Good : std::enable_shared_from_this<Good> {
std::shared_ptr<Good> getptr() { return shared_from_this(); }
~Good() { std::cout << "Good::~Good() called\n"; }
};
struct Base {
std::shared_ptr<Base> getptr() { return std::shared_ptr<Base>(this); }
~Base() { std::cout << "... | 36 | 78 | 0.634137 | [
"object"
] |
0d3869cf84c39574d37cf624824973d1880eb982 | 2,225 | cpp | C++ | Source/ANGLE/common/string_utils.cpp | wpbest/xpf | cb54ad82a8c6f675f2d5bc840a78f66f03de65e2 | [
"MIT"
] | 2 | 2015-12-12T23:42:56.000Z | 2019-08-06T04:03:54.000Z | Source/ANGLE/common/string_utils.cpp | wpbest/XPF | cb54ad82a8c6f675f2d5bc840a78f66f03de65e2 | [
"MIT"
] | null | null | null | Source/ANGLE/common/string_utils.cpp | wpbest/XPF | cb54ad82a8c6f675f2d5bc840a78f66f03de65e2 | [
"MIT"
] | null | null | null | //
// Copyright 2015 The ANGLE 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.
//
// string_utils:
// String helper functions.
//
#include "string_utils.h"
#include <fstream>
#include <sstream>
namespace angle
{
void Spl... | 23.924731 | 96 | 0.592809 | [
"vector"
] |
0d3fd41625f464d69ff71624b7acf5f6bb074bf3 | 27,839 | cpp | C++ | vnpy/api/oes/vnoes/generated_files/generated_functions_3.cpp | howyu88/vnpy2 | c8ae445823dc1f71abda1a79fae7d4be3dd92dd4 | [
"MIT"
] | 323 | 2015-11-21T14:45:29.000Z | 2022-03-16T08:54:37.000Z | vnpy/api/oes/vnoes/generated_files/generated_functions_3.cpp | howyu88/vnpy2 | c8ae445823dc1f71abda1a79fae7d4be3dd92dd4 | [
"MIT"
] | 9 | 2017-03-21T08:26:21.000Z | 2021-08-23T06:41:17.000Z | vnpy/api/oes/vnoes/generated_files/generated_functions_3.cpp | howyu88/vnpy2 | c8ae445823dc1f71abda1a79fae7d4be3dd92dd4 | [
"MIT"
] | 148 | 2016-09-26T03:25:39.000Z | 2022-02-06T14:43:48.000Z | #include "config.h"
#include <iostream>
#include <string>
#include <pybind11/pybind11.h>
#include <pybind11/functional.h>
#include <pybind11/stl.h>
#include <c2py/c2py.hpp>
#include "module.hpp"
#include "wrappers.hpp"
#include "generated_functions.h"
#include "oes_api/oes_api.h"
#include "mds_api/mds_api.h"
void ... | 54.161479 | 113 | 0.775926 | [
"object"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.